]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix testcases with required but unreferenced functions and variables
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9370fd51
AB
12020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * frame.c (inside_main_func): Check full symbols as well as
4 minimal symbols.
5
59c8a30b
JB
62020-10-09 Joel Brobecker <brobecker@adacore.com>
7
8 * ada-lang.c (advance_wild_match): Rewrite the function's
9 description. Change the type of target0, t0 and t1 to char.
10
7c184d33
TT
112020-10-09 Tom Tromey <tromey@adacore.com>
12
13 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
14
5c4258f4
TT
152020-10-09 Tom Tromey <tromey@adacore.com>
16
17 * ada-lang.h (ada_encode): Return std::string.
18 * ada-lang.c (ada_encode_1): Return std::string.
19 (ada_encode): Likewise.
20 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
21 Update.
22 * ada-exp.y (block_lookup, write_var_or_type): Update.
23
3d87245c
HD
242020-10-09 Hannes Domani <ssbssa@yahoo.de>
25
26 PR exp/26714
27 * printcmd.c (print_formatted): Handle void results as
28 unformatted prints.
29
bbb826f5
AB
302020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
31
32 * arch/aarch32.c (aarch32_create_target_description): Release the
33 target_desc_up as late as possible.
34 * arch/aarch64.c (aarch64_create_target_description): Likewise.
35 * arch/amd64.c (amd64_create_target_description): Likewise.
36 * arch/arc.c (arc_create_target_description): Return a
37 target_desc_up, don't release it.
38 * arch/arc.h (arc_create_target_description): Update declaration.
39 (arc_lookup_target_description): Move target_desc_up into the
40 cache, and return a borrowed pointer.
41 * arch/arm.c (arm_create_target_description): Release the
42 target_desc_up as late as possible.
43 * arch/i386.c (i386_create_target_description): Likewise.
44 * arch/riscv.h (riscv_create_target_description): Update
45 declaration to match definition.
46 * arch/tic6x.c (tic6x_create_target_description): Release the
47 target_desc_up as late as possible.
48
361cb219
AB
492020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
50
51 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
52 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
53
f5c4b229
JV
542020-10-09 Jan Vrany <jan.vrany@labware.com>
55
56 * source.c (directory_command): Notify observers that "directories"
57 parameter has changed.
58
b2701685
TT
592020-10-08 Tom Tromey <tom@tromey.com>
60
61 * cli/cli-cmds.c (print_disassembly): Style function name and
62 addresses. Add _() wrappers.
63
ada508b6
SV
642020-10-08 Shahab Vahedi <shahab@synopsys.com>
65
66 * NEWS: Mention ARC support in GDBserver.
67
51a948fd
AB
682020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
69
70 * arch/aarch32.c (aarch32_create_target_description): Release
71 unique_ptr returned from allocate_target_description.
72 * arch/aarch64.c (aarch64_create_target_description): Likewise.
73 * arch/amd64.c (amd64_create_target_description): Likewise.
74 * arch/arc.c (arc_create_target_description): Likewise.
75 * arch/arm.c (arm_create_target_description): Likewise.
76 * arch/i386.c (i386_create_target_description): Likewise.
77 * arch/riscv.c (riscv_create_target_description): Update return
78 type. Handle allocate_target_description returning a unique_ptr.
79 (riscv_lookup_target_description): Update to handle unique_ptr.
80 * arch/tic6x.c (tic6x_create_target_description): Release
81 unique_ptr returned from allocate_target_description.
82 * features/microblaze-with-stack-protect.c: Regenerate.
83 * features/microblaze.c: Regenerate.
84 * features/mips-dsp-linux.c: Regenerate.
85 * features/mips-linux.c: Regenerate.
86 * features/mips64-dsp-linux.c: Regenerate.
87 * features/mips64-linux.c: Regenerate.
88 * features/nds32.c: Regenerate.
89 * features/nios2.c: Regenerate.
90 * features/or1k.c: Regenerate.
91 * features/rs6000/powerpc-32.c: Regenerate.
92 * features/rs6000/powerpc-32l.c: Regenerate.
93 * features/rs6000/powerpc-403.c: Regenerate.
94 * features/rs6000/powerpc-403gc.c: Regenerate.
95 * features/rs6000/powerpc-405.c: Regenerate.
96 * features/rs6000/powerpc-505.c: Regenerate.
97 * features/rs6000/powerpc-601.c: Regenerate.
98 * features/rs6000/powerpc-602.c: Regenerate.
99 * features/rs6000/powerpc-603.c: Regenerate.
100 * features/rs6000/powerpc-604.c: Regenerate.
101 * features/rs6000/powerpc-64.c: Regenerate.
102 * features/rs6000/powerpc-64l.c: Regenerate.
103 * features/rs6000/powerpc-7400.c: Regenerate.
104 * features/rs6000/powerpc-750.c: Regenerate.
105 * features/rs6000/powerpc-860.c: Regenerate.
106 * features/rs6000/powerpc-altivec32.c: Regenerate.
107 * features/rs6000/powerpc-altivec32l.c: Regenerate.
108 * features/rs6000/powerpc-altivec64.c: Regenerate.
109 * features/rs6000/powerpc-altivec64l.c: Regenerate.
110 * features/rs6000/powerpc-e500.c: Regenerate.
111 * features/rs6000/powerpc-e500l.c: Regenerate.
112 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
113 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
114 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
115 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
116 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
117 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
118 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
119 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
120 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
121 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
122 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
123 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
124 * features/rs6000/powerpc-vsx32.c: Regenerate.
125 * features/rs6000/powerpc-vsx32l.c: Regenerate.
126 * features/rs6000/powerpc-vsx64.c: Regenerate.
127 * features/rs6000/powerpc-vsx64l.c: Regenerate.
128 * features/rs6000/rs6000.c: Regenerate.
129 * features/rx.c: Regenerate.
130 * features/s390-gs-linux64.c: Regenerate.
131 * features/s390-linux32.c: Regenerate.
132 * features/s390-linux32v1.c: Regenerate.
133 * features/s390-linux32v2.c: Regenerate.
134 * features/s390-linux64.c: Regenerate.
135 * features/s390-linux64v1.c: Regenerate.
136 * features/s390-linux64v2.c: Regenerate.
137 * features/s390-te-linux64.c: Regenerate.
138 * features/s390-tevx-linux64.c: Regenerate.
139 * features/s390-vx-linux64.c: Regenerate.
140 * features/s390x-gs-linux64.c: Regenerate.
141 * features/s390x-linux64.c: Regenerate.
142 * features/s390x-linux64v1.c: Regenerate.
143 * features/s390x-linux64v2.c: Regenerate.
144 * features/s390x-te-linux64.c: Regenerate.
145 * features/s390x-tevx-linux64.c: Regenerate.
146 * features/s390x-vx-linux64.c: Regenerate.
147 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
148 from allocate_target_description.
149 * target-descriptions.c (allocate_target_description): Update
150 return type.
151 (print_c_tdesc::visit_pre): Release unique_ptr returned from
152 allocate_target_description.
153
485c47e5
TT
1542020-10-07 Tom Tromey <tromey@adacore.com>
155
156 * unittests/search-memory-selftests.c: New file.
157 * Makefile.in (SELFTESTS_SRCS): Add
158 unittests/search-memory-selftests.c.
159
3a135a91
TT
1602020-10-07 Tom Tromey <tromey@adacore.com>
161
162 PR gdb/16930:
163 * findcmd.c (_initialize_mem_search): Mention that the range is
164 inclusive.
165
4a72de73
TT
1662020-10-07 Tom Tromey <tromey@adacore.com>
167
168 * target.h (simple_search_memory): Don't declare.
169 * target.c (simple_search_memory): Move to gdbsupport.
170 (default_search_memory): Update.
171 * remote.c (remote_target::search_memory): Update.
172
a038ffd8
SM
1732020-10-07 Simon Marchi <simon.marchi@efficios.com>
174
175 * Makefile.in (COMPILE): Add CXXFLAGS.
176 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
177 (check-headers): Add CXXFLAGS.
178
cc463201
AK
1792020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
180
181 * arc-linux-tdep.h: New file.
182 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
183 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
184 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
185 arc_linux_gregset, arc_linux_v2_regset,
186 arc_linux_iterate_over_regset_sections,
187 arc_linux_core_read_description): Implement.
188 (arc_linux_init_osabi): Set iterate_over_regset_sections.
189 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
190 (arc_gdbarch_features_create): Add.
191 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
192
e4bd363f
SV
1932020-10-07 Shahab Vahedi <shahab@synopsys.com>
194
195 * arch/arc.h: Rename "arc_gdbarch_features" to
196 "arc_arch_features".
197 * arc-tdep.h: Likewise.
198 * arc-tdep.c: Likewise.
199
b68bef99
TBA
2002020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
201
202 * infcmd.c (attach_command): Remove the redundant call to
203 `clear_proceed_status`.
204
4641551a
KR
2052020-10-07 Kamil Rytarowski <n54@gmx.com>
206
207 * nat/netbsd-nat.c (write_memory, read_memory): Update.
208
91e5e8db
KR
2092020-10-07 Kamil Rytarowski <n54@gmx.com>
210
211 * nat/netbsd-nat.c (write_memory, read_memory): Add.
212 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
213 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
214
64c03bdb
SM
2152020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
216
217 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
218 (_initialize_break_catch_sig): Don't allocate array.
219
31a8f60f
AB
2202020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
221
222 * symtab.c (find_pc_line): Return unmapped addresses when the
223 requested address is also unmapped.
224
9e6dbd8b
SM
2252020-10-05 Simon Marchi <simon.marchi@efficios.com>
226
227 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
228 tui/tui-out.h.
229
a1d217e8
SM
2302020-10-05 Simon Marchi <simon.marchi@efficios.com>
231
232 * amd64-windows-tdep.c (amd64_windows_return_value): Use
233 type::is_vector instead of TYPE_VECTOR.
234
7d144117
SM
2352020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
236
237 * auto-load.c (auto_load_objfile_script_1): Don't use
238 debugfile_holder as temporary variable when stripping drive
239 letter.
240
cd096ec8
HD
2412020-10-05 Hannes Domani <ssbssa@yahoo.de>
242
243 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
244 Add TYPE_CODE_COMPLEX.
245 (amd64_windows_return_value): Fix types returned via XMM0.
246
b58e7f72
AH
2472020-10-05 Alan Hayward <alan.hayward@arm.com>
248
249 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
250 AArch64/ARM maintainers.
251
8d378f27
SM
2522020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
253
254 * NEWS: Mention set/show debug event-loop.
255
d5519913
TT
2562020-10-02 Tom Tromey <tromey@adacore.com>
257
258 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
259 REG_EXTENDED.
260
18b67edc
SM
2612020-10-02 Simon Marchi <simon.marchi@efficios.com>
262
263 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
264 * procfs.c (procfs_inferior_created): Remove.
265 (_initialize_procfs): Don't register procfs_inferior_created.
266
6b01403b
SM
2672020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
268
269 * async-event.c (invoke_async_signal_handlers): Add debug
270 print.
271 (check_async_event_handlers): Likewise.
272 * event-top.c (show_debug_event_loop): New function.
273 (_initialize_event_top): Register "set debug event-loop"
274 setting.
275
ba988419
SM
2762020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
277
278 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
279 * debug.h: Remove.
280 * infrun.c: Include gdbsupport/common-debug.h.
281 * linux-nat.c: Likewise.
282
db20ebdf
SM
2832020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
284
285 * async-event.h (create_async_signal_handler): Add name
286 parameter.
287 (create_async_event_handler): Likewise.
288 * async-event.c (struct async_signal_handler) <name>: New field.
289 (struct async_event_handler) <name>: New field.
290 (create_async_signal_handler): Assign name.
291 (create_async_event_handler): Assign name.
292 * event-top.c (async_init_signals): Pass name when creating
293 handler.
294 * infrun.c (_initialize_infrun): Likewise.
295 * record-btrace.c (record_btrace_push_target): Likewise.
296 * record-full.c (record_full_open): Likewise.
297 * remote-notif.c (remote_notif_state_allocate): Likewise.
298 * remote.c (remote_target::open_1): Likewise.
299 * tui/tui-win.c (tui_initialize_win): Likewise.
300
2554f6f5
SM
3012020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
302
303 * async-event.c (initialize_async_signal_handlers): Pass name to
304 add_file_handler
305 * event-top.c (ui_register_input_event_handler): Likewise.
306 * linux-nat.c (linux_nat_target::async): Likewise.
307 * run-on-main-thread.c (_initialize_run_on_main_thread):
308 Likewise
309 * ser-base.c (reschedule): Likewise.
310 (ser_base_async): Likewise.
311 * tui/tui-io.c: Likewise.
312 * top.h (struct ui) <num>: New field.
313 * top.c (highest_ui_num): New variable.
314 (ui::ui): Initialize num.
315
a7aba266
SM
3162020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
317
318 * observable.h <inferior_created>: Remove parameters. Update all
319 listeners.
320 * inferior.h (post_create_inferior): Remove target parameter.
321 Update all callers.
322
048fde1e 3232020-10-02 Nitika Achra <Nitika.Achra@amd.com>
324
325 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
326 and DW_MACRO_undef_strx.
327 (dwarf_decode_macros): Likewise
328 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
329 which is the value of DW_AT_str_offsets_base.
330 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
331 str_offsets_base.
332
064280be
KR
3332020-10-01 Kamil Rytarowski <n54@gmx.com>
334
335 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
336
6ff33035
KR
3372020-10-01 Kamil Rytarowski <n54@gmx.com>
338
339 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
340 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
341
1eb6eb79
KR
3422020-10-01 Kamil Rytarowski <n54@gmx.com>
343
344 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
345
95eb9e54
TV
3462020-09-30 Tom de Vries <tdevries@suse.de>
347
348 PR symtab/26683
349 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
350
cae21f8e
TT
3512020-09-30 Tom Tromey <tromey@adacore.com>
352
353 * dwarf2/read.c (handle_variant): Use constant_value.
354
529908cb
TT
3552020-09-29 Tom Tromey <tom@tromey.com>
356
357 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
358 (read_file_scope, dwarf2_get_pc_bounds)
359 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
360 (read_structure_type, handle_struct_member_die)
361 (read_enumeration_type, read_array_type, read_set_type)
362 (read_tag_pointer_type, read_tag_reference_type)
363 (read_subroutine_type, read_base_type, read_subrange_type)
364 (read_full_die_1, partial_die_info::read)
365 (partial_die_info::read, by, new_symbol)
366 (dwarf2_const_value_data, dwarf2_const_value_attr)
367 (dump_die_shallow, dwarf2_fetch_constant_bytes)
368 (prepare_one_comp_unit): Update.
369 * dwarf2/attribute.h (DW_UNSND): Remove.
370
c45bc3f8
TT
3712020-09-29 Tom Tromey <tom@tromey.com>
372
373 * dwarf2/read.c (read_func_scope, prototyped_function_p)
374 (read_subroutine_type, partial_die_info::read)
375 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
376 (dwarf2_add_member_fn): Update.
377 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
378 * dwarf2/attribute.c (attribute::as_boolean): New method.
379
23dca5c3
TT
3802020-09-29 Tom Tromey <tom@tromey.com>
381
382 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
383 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
384 method.
385 * dwarf2/attribute.c (attribute::as_virtuality): New method.
386
52c14d11
TT
3872020-09-29 Tom Tromey <tom@tromey.com>
388
389 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
390 the attribute's form.
391
e8e5c158
TT
3922020-09-29 Tom Tromey <tom@tromey.com>
393
394 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
395 (dwarf2_add_member_fn): Update.
396 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
397 * dwarf2/attribute.c (attribute::defaulted): New method, from
398 is_valid_DW_AT_defaulted.
399
d4df075e
TT
4002020-09-29 Tom Tromey <tom@tromey.com>
401
402 * dwarf2/read.c (dw2_get_file_names_reader)
403 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
404 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
405 (dwarf2_symbol_mark_computed): Use as_unsigned.
406 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
407 method.
408 <form_is_section_offset>: Update comment.
409
bf23a268
TT
4102020-09-29 Tom Tromey <tom@tromey.com>
411
412 * dwarf2/read.c (dwarf2_access_attribute): Rename from
413 dwarf2_default_access_attribute. Look up attribute.
414 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
415 Update.
416
7a5f294d
TT
4172020-09-29 Tom Tromey <tom@tromey.com>
418
419 * dwarf2/read.c (skip_one_die): Update.
420 (read_full_die_1): Change how reprocessing is done.
421 (partial_die_info::read): Update.
422 (read_attribute_value): Remove need_reprocess parameter.
423 (read_attribute): Likewise.
424 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
425 New method.
426
36d378cf
TT
4272020-09-29 Tom Tromey <tom@tromey.com>
428
429 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
430 (dwarf2_const_value_attr, dump_die_shallow)
431 (dwarf2_fetch_constant_bytes): Update.
432 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
433 comment.
434 <set_address>: New method.
435 (DW_ADDR): Remove.
436 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
437 (attribute::as_string, attribute::as_address): Add assert.
438
fe56917a
TT
4392020-09-29 Tom Tromey <tom@tromey.com>
440
441 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
442 (read_attribute_reprocess, read_attribute_value): Update.
443 (read_attribute): Clear requires_reprocessing.
444 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
445 form_requires_reprocessing>: New methods.
446 <string_init>: Clear requires_reprocessing.
447 <set_unsigned_reprocess>: New method.
448 <name>: Shrink by one bit.
449 <requires_reprocessing>: New member.
450 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
451 method.
452
414ad644
TT
4532020-09-29 Tom Tromey <tom@tromey.com>
454
455 * dwarf2/read.c (read_attribute_value): Update.
456 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
457 set_unsigned>: New methods.
458 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
459
1bc397c5
TT
4602020-09-29 Tom Tromey <tom@tromey.com>
461
462 * dwarf2/read.c (get_alignment, read_array_order)
463 (read_attribute_value, dwarf2_const_value_attr)
464 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
465 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
466 New methods.
467 (DW_SND): Remove.
468
630ed6b9
TT
4692020-09-29 Tom Tromey <tom@tromey.com>
470
471 * dwarf2/read.c (read_attribute_value, lookup_die_type)
472 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
473 Update.
474 * dwarf2/attribute.h (struct attribute) <as_signature,
475 set_signature>: New methods.
476 (DW_SIGNATURE): Remove.
477
9d2246fc
TT
4782020-09-29 Tom Tromey <tom@tromey.com>
479
480 * dwarf2/read.c (read_call_site_scope)
481 (handle_data_member_location, dwarf2_add_member_fn)
482 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
483 (partial_die_info::read, read_attribute_value)
484 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
485 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
486 (dwarf2_symbol_mark_computed): Update.
487 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
488 methods.
489 (DW_BLOCK): Remove.
490 * dwarf2/attribute.c (attribute::form_is_block): Add
491 DW_FORM_data16.
492
c6481205
TT
4932020-09-29 Tom Tromey <tom@tromey.com>
494
495 * dwarf2/read.c (read_cutu_die_from_dwo)
496 (read_attribute_reprocess, read_attribute_value, read_attribute)
497 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
498 (dwarf2_fetch_constant_bytes): Update.
499 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
500 <set_string_noncanonical, set_string_canonical>: New methods.
501 <string_is_canonical>: Update comment.
502 <canonical_string_p>: Add assert.
503 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
504 * dwarf2/attribute.c (attribute::form_is_string): New method.
505 (attribute::string): Use it.
506
3b64bf15
TT
5072020-09-29 Tom Tromey <tom@tromey.com>
508
509 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
510 (dump_die_shallow): Use canonical_string_p.
511 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
512 method.
513
2c830f54
TT
5142020-09-29 Tom Tromey <tom@tromey.com>
515
516 * dwarf2/read.c (partial_die_info::read)
517 (dwarf2_const_value_attr, anonymous_struct_prefix, )
518 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
519 attribute::as_string.
520
6c412691
TT
5212020-09-29 Tom Tromey <tom@tromey.com>
522
523 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
524 DW_ADDR.
525 (attribute::string): Don't use DW_STRING.
526 (attribute::get_ref_die_offset): Don't use DW_UNSND.
527 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
528
95f982e5
TT
5292020-09-29 Tom Tromey <tom@tromey.com>
530
531 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
532 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
533 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
534 * dwarf2/attribute.h (struct attribute): Rename methods.
535 * dwarf2/attribute.c (attribute::as_address): Rename from
536 value_as_address.
537 (attribute::as_string): Rename from value_as_string.
538
f800b00e
TT
5392020-09-29 Tom Tromey <tom@tromey.com>
540
541 * dwarf2/read.c (partial_die_info::read) <case
542 DW_AT_linkage_name>: Use value_as_string.
543 (dwarf2_string_attr): Use value_as_string.
544 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
545 method.
546 * dwarf2/attribute.c (attribute::value_as_string): New method.
547
de38d64a
PA
5482020-09-29 Pedro Alves <pedro@palves.net>
549
550 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
551 defined before using '#pragma GCC diagnostic' instead of checking
552 __clang__.
553
9aed480c
TT
5542020-09-28 Tom Tromey <tom@tromey.com>
555
556 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
557 (handle_signal_stop): Update.
558 * procfs.c (procfs_target::insert_watchpoint): Update.
559 * target.h (target_have_steppable_watchpoint): Now a function.
560
8a3ecb79
TT
5612020-09-28 Tom Tromey <tom@tromey.com>
562
563 * infrun.c (set_schedlock_func): Update.
564 * target.h (target_can_lock_scheduler): Now a function.
565
55f6301a
TT
5662020-09-28 Tom Tromey <tom@tromey.com>
567
568 * inferior.h (class inferior) <has_execution>: Update.
569 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
570 * valops.c (find_function_in_inferior)
571 (value_allocate_space_in_inferior): Update.
572 * top.c (kill_or_detach): Update.
573 * target.c (target_preopen, set_target_permissions): Update.
574 (target_has_execution_current): Remove.
575 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
576 Update.
577 * solib.c (update_solib_list, reload_shared_libraries): Update.
578 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
579 * solib-dsbt.c (enable_break): Update.
580 * score-tdep.c (score7_fetch_inst): Update.
581 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
582 Update.
583 * remote.c (remote_target::start_remote)
584 (remote_target::remote_check_symbols, remote_target::open_1)
585 (remote_target::remote_detach_1, remote_target::verify_memory)
586 (remote_target::xfer_partial, remote_target::read_description)
587 (remote_target::get_min_fast_tracepoint_insn_len): Update.
588 * record-full.c (record_full_open_1): Update.
589 * record-btrace.c (record_btrace_target_open): Update.
590 * objc-lang.c (lookup_objc_class, lookup_child_selector)
591 (value_nsstring): Update.
592 * linux-thread-db.c (add_thread_db_info)
593 (thread_db_find_new_threads_silently, check_thread_db_callback)
594 (try_thread_db_load_1, record_thread): Update.
595 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
596 Update.
597 * linux-fork.c (checkpoint_command): Update.
598 * infrun.c (set_non_stop, set_observer_mode)
599 (check_multi_target_resumption, for_each_just_stopped_thread)
600 (maybe_remove_breakpoints, normal_stop)
601 (class infcall_suspend_state): Update.
602 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
603 (info_program_command, attach_command): Update.
604 * infcall.c (call_function_by_hand_dummy): Update.
605 * inf-loop.c (inferior_event_handler): Update.
606 * gcore.c (gcore_command, derive_heap_segment): Update.
607 * exec.c (exec_file_command): Update.
608 * eval.c (evaluate_subexp): Update.
609 * compile/compile.c (compile_to_object): Update.
610 * cli/cli-dump.c (restore_command): Update.
611 * breakpoint.c (update_watchpoint)
612 (update_inserted_breakpoint_locations)
613 (insert_breakpoint_locations, get_bpstat_thread): Update.
614 * target.h (target_has_execution): Remove macro.
615 (target_has_execution_current): Don't declare.
616 (target_has_execution): Rename from target_has_execution_1. Add
617 argument default.
618
05374cfd
TT
6192020-09-28 Tom Tromey <tom@tromey.com>
620
621 * mi/mi-main.c (exec_reverse_continue)
622 (mi_cmd_list_target_features): Update.
623 * infrun.c (set_exec_direction_func): Update.
624 * target.c (default_execution_direction): Update.
625 * reverse.c (exec_reverse_once): Update.
626 * target.h (target_can_execute_reverse): Now a function.
627
9dccd06e
TT
6282020-09-28 Tom Tromey <tom@tromey.com>
629
630 * tui/tui-regs.c (tui_get_register)
631 (tui_data_window::show_registers): Update.
632 * thread.c (scoped_restore_current_thread::restore)
633 (scoped_restore_current_thread::scoped_restore_current_thread):
634 Update.
635 * regcache-dump.c (regcache_print): Update.
636 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
637 Update.
638 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
639 * mep-tdep.c (current_me_module, current_options): Update.
640 * linux-thread-db.c (thread_db_load): Update.
641 * infcmd.c (registers_info, info_vector_command)
642 (info_float_command): Update.
643 * ia64-tdep.c (ia64_frame_prev_register)
644 (ia64_sigtramp_frame_prev_register): Update.
645 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
646 * gcore.c (derive_stack_segment): Update.
647 * frame.c (get_current_frame, has_stack_frames): Update.
648 * findvar.c (language_defn::read_var_value): Update.
649 * arm-tdep.c (arm_pc_is_thumb): Update.
650 * target.c (target_has_registers): Rename from
651 target_has_registers_1.
652 * target.h (target_has_registers): Remove macro.
653 (target_has_registers): Rename from target_has_registers_1.
654
841de120
TT
6552020-09-28 Tom Tromey <tom@tromey.com>
656
657 * windows-tdep.c (tlb_make_value): Update.
658 * tui/tui-regs.c (tui_data_window::show_registers): Update.
659 * thread.c (scoped_restore_current_thread::restore)
660 (scoped_restore_current_thread::scoped_restore_current_thread)
661 (thread_command): Update.
662 * stack.c (backtrace_command_1, frame_apply_level_command)
663 (frame_apply_all_command, frame_apply_command): Update.
664 * infrun.c (siginfo_make_value, restore_infcall_control_state):
665 Update.
666 * gcore.c (derive_stack_segment): Update.
667 * frame.c (get_current_frame, has_stack_frames): Update.
668 * auxv.c (info_auxv_command): Update.
669 * ada-tasks.c (ada_build_task_list): Update.
670 * target.c (target_has_stack): Rename from target_has_stack_1.
671 * target.h (target_has_stack): Remove macro.
672 (target_has_stack): Rename from target_has_stack_1.
673
a739972c
TT
6742020-09-28 Tom Tromey <tom@tromey.com>
675
676 * target.c (target_has_memory): Rename from target_has_memory_1.
677 * tui/tui-regs.c (tui_data_window::show_registers): Update.
678 * thread.c (scoped_restore_current_thread::restore)
679 (scoped_restore_current_thread::scoped_restore_current_thread):
680 Update.
681 * frame.c (get_current_frame, has_stack_frames): Update.
682 * target.h (target_has_memory): Remove macro.
683 (target_has_memory): Rename from target_has_memory_1.
684
5b8a4776
TT
6852020-09-28 Tom Tromey <tom@tromey.com>
686
687 * target.c (target_has_all_memory_1): Remove.
688 * target.h (target_has_all_memory): Remove define.
689 (target_has_all_memory_1): Don't declare.
690
bd356ec6
SM
6912020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
692
693 * ser-base.c: Adjust comments formatting.
694
2c72d5e5
TT
6952020-09-27 Tom Tromey <tom@tromey.com>
696
697 PR tui/25342:
698 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
699
35a98237
TT
7002020-09-27 Tom Tromey <tom@tromey.com>
701
702 PR tui/25342:
703 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
704
9e820dec
TT
7052020-09-27 Tom Tromey <tom@tromey.com>
706
707 * unittests/tui-selftests.c: Update.
708 * tui/tui-winsource.h (struct tui_source_window_base)
709 <extra_margin, show_line_number, refresh_pad>: New methods.
710 <m_max_length, m_pad>: New members.
711 (tui_copy_source_line): Update.
712 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
713 first_col, line_width, ndigits parameters. Add length.
714 (tui_source_window_base::show_source_line): Write to pad. Line
715 number now 0-based.
716 (tui_source_window_base::refresh_pad): New method.
717 (tui_source_window_base::show_source_content): Write to pad. Call
718 refresh_pad.
719 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
720 not refill.
721 (tui_source_window_base::update_exec_info): Call
722 show_line_number.
723 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
724 method.
725 <m_digits>: New member.
726 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
727 and m_max_length.
728 (tui_source_window::show_line_number): New method.
729 * tui/tui-io.h (tui_puts): Fix comment.
730 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
731 m_max_length.
732
c15c15c8
TT
7332020-09-27 Tom Tromey <tom@tromey.com>
734
735 * tui/tui-winsource.c
736 (tui_source_window_base::set_is_exec_point_at): Don't call
737 show_source_line.
738
149830c1
TT
7392020-09-27 Tom Tromey <tom@tromey.com>
740
741 * python/py-tui.c (class tui_py_window) <refresh_window>: New
742 method.
743 <erase>: Update.
744 <cursor_x, cursor_y>: Remove.
745 <m_inner_window>: New member.
746 (tui_py_window::rerender): Create inner window.
747 (tui_py_window::output): Write to inner window.
748
8f9929bb
GR
7492020-09-26 Gareth Rees <grees@undo.io> (tiny change)
750
751 PR python/26586
752 * cli/cli-script.c (execute_control_commands): don't set
753 instream to nullptr here as this breaks the from_tty argument
754 to gdb.execute in Python.
755 (execute_user_command): set instream to nullptr here instead.
756
956bdb59
SM
7572020-09-25 Simon Marchi <simon.marchi@efficios.com>
758
759 * infrun.h (infrun_debug_printf): Fix formatting.
760 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
761
3b93626b
SJ
7622020-09-25 Saagar Jha <saagar@saagarjha.com>
763
764 * compile/compile-object-load.h (struct munmap_list): Add
765 explicitly-defined move constructor.
766
b551a89f
TT
7672020-09-24 Tom Tromey <tromey@adacore.com>
768
769 PR tui/26638:
770 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
771 method.
772 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
773 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
774 (tui_prev_win): Rewrite.
775
99bb393f
HD
7762020-09-23 Hannes Domani <ssbssa@yahoo.de>
777
778 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
779 in WOW64 processes as SIGINT.
780 * nat/windows-nat.h: Make wow64_process a shared variable.
781 * windows-nat.c: Remove static wow64_process variable.
782
20a5fcbd
TT
7832020-09-23 Tom Tromey <tom@tromey.com>
784
785 PR symtab/25470:
786 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
787 offset and bit size.
788 * printcmd.c (print_scalar_formatted): Handle zero-length
789 integer.
790 (print_scalar_formatted): Use bit_size_differs_p.
791 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
792 constant.
793 (union type_specific): <int_stuff>: New member.
794 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
795 methods.
796 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
797 TYPE_SPECIFIC_FIELD.
798 (recursive_dump_type, copy_type_recursive): Update.
799 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
800 DW_AT_data_bit_offset.
801
bac51ab7
TT
8022020-09-23 Tom Tromey <tom@tromey.com>
803
804 * utils.h (class gdb_argv): Add move operators.
805 <append>: New methods.
806 * compile/compile.c (build_argc_argv): Remove.
807 (compile_args_argc): Remove.
808 (compile_args_argv): Change type.
809 (set_compile_args): Simplify.
810 (append_args): Remove.
811 (filter_args): Remove argcp parameter.
812 (get_args): Return gdb_argv. Simplify.
813 (compile_to_object): Update.
814
92677124
TT
8152020-09-23 Tom Tromey <tom@tromey.com>
816
817 * compile/compile-object-run.c (do_module_cleanup)
818 <~do_module_cleanup> :Remove.
819 (do_module_cleanup): Update.
820 * compile/compile-object-load.h (struct munmap_list): Add move
821 assignment operator.
822 <source_file>: Now a std::string.
823 <munmap_list>: Rename. No longer a pointer.
824 * compile/compile-object-load.c (struct setup_sections_data): Add
825 constructor.
826 <setup_one_section>: Declare.
827 <munmap_list>: Move earlier.
828 <m_bfd>: New member.
829 <m_last_size, m_last_section_first, m_last_prot,
830 m_last_max_alignment>: Rename, add initializers where needed.
831 (setup_sections_data::setup_one_section): Rename from
832 setup_sections. Update.
833 (compile_object_load): Update. Don't use bfd_map_over_sections.
834
e616f60a
TT
8352020-09-23 Tom Tromey <tom@tromey.com>
836
837 * compile/compile-object-run.c (struct do_module_cleanup): Add
838 parameters to constructor. Update destructor.
839 <source_file, scope, scope_data, out_value_type, out_value_addr,
840 munmap_list_head, objfile_name_string>: Remove.
841 <module>: New member.
842 (do_module_cleanup): Update.
843 (compile_object_run): Update.
844
e947a848
TT
8452020-09-23 Tom Tromey <tom@tromey.com>
846
847 * compile/compile.c (eval_compile_command): Update.
848 * compile/compile-object-run.h (compile_object_run): Take a
849 compile_module_up.
850 * compile/compile-object-run.c (compile_object_run): Take a
851 compile_module_up.
852 * compile/compile-object-load.h (struct compile_module): Add
853 constructor, destructor.
854 (compile_module_up): New typedef.
855 (compile_object_load): Return compile_object_up.
856 * compile/compile-object-load.c (compile_object_load): Return
857 compile_module_up.
858
0dbf6ee6
TT
8592020-09-23 Tom Tromey <tom@tromey.com>
860
861 * compile/compile-object-run.c (struct do_module_cleanup): Add
862 constructor, destructor.
863 <objfile_name_string>: Don't use struct hack.
864 (do_module_cleanup): Use delete.
865 (compile_object_run): Use new.
866
ebe824f5
TT
8672020-09-23 Tom Tromey <tom@tromey.com>
868
869 * compile/compile-cplus-types.c
870 (compile_cplus_convert_struct_or_union): Use std::vector.
871 (compile_cplus_convert_func): Likewise.
872 * compile/compile-c-types.c (convert_func): Use std::vector.
873
5dd918d9
TT
8742020-09-21 Tom Tromey <tromey@adacore.com>
875
876 * sparc-tdep.c (sparc32_skip_prologue): Use
877 skip_prologue_using_sal.
878
5486c517
TT
8792020-09-19 Tom Tromey <tom@tromey.com>
880
881 * symfile.c (add_section_size_callback): Remove.
882 (load_one_section): Rename from load_section_callback. Change
883 parameters.
884 (generic_load): Use foreach.
885
8a6bb1d1
TT
8862020-09-19 Tom Tromey <tom@tromey.com>
887
888 * exec.c (add_to_section_table): Remove.
889 (build_section_table): Use foreach.
890
08f93a1a
TT
8912020-09-19 Tom Tromey <tom@tromey.com>
892
893 * elfread.c (elf_locate_sections): Change parameters.
894 (elf_symfile_read): Use foreach.
895
03cd72b8
TT
8962020-09-19 Tom Tromey <tom@tromey.com>
897
898 * cli/cli-dump.c (struct callback_data): Remove.
899 (restore_one_section): Rename from restore_section_callback.
900 Change parameters.
901 (restore_binary_file): Change parameters.
902 (restore_command): Use foreach.
903
f4f2b85f
TT
9042020-09-19 Tom Tromey <tom@tromey.com>
905
906 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
907 (gcore_copy_callback): Likewise.
908 (gcore_memory_sections): Use foreach.
909
b35c1d1c
TT
9102020-09-19 Tom Tromey <tom@tromey.com>
911
912 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
913 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
914 parameters.
915 (generic_elf_osabi_sniffer): Use foreach.
916 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
917 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
918
5bb6e9dd
TT
9192020-09-19 Tom Tromey <tom@tromey.com>
920
921 * dwarf2/read.c (locate_dwz_sections): Change parameters.
922 (dwarf2_get_dwz_file): Use foreach.
923 (dwarf2_locate_dwo_sections): Change parameters.
924 (open_and_init_dwo_file): Use foreach.
925 (dwarf2_locate_common_dwp_sections): Change parameters.
926 (open_and_init_dwp_file): Use foreach.
927
ad7277da
TT
9282020-09-19 Tom Tromey <tom@tromey.com>
929
930 * symfile.h: (find_lowest_section): Don't declare.
931 * symfile.c (find_lowest_section): Now static. Change
932 parameters.
933 (struct place_section_arg): Remove.
934 (place_section): Change parameters.
935 (addr_info_make_relative): Use foreach.
936 (symfile_dummy_outputs): Remove.
937 (default_symfile_relocate): Use foreach.
938
cb814f2e
TT
9392020-09-19 Tom Tromey <tom@tromey.com>
940
941 * objfiles.c (add_to_objfile_sections): Rename from
942 add_to_objfile_sections_full.
943 (add_to_objfile_sections): Remove.
944 (build_objfile_section_table): Use foreach.
945
3cabfd26
TT
9462020-09-19 Tom Tromey <tom@tromey.com>
947
948 * stap-probe.c (get_stap_base_address_1): Remove.
949 (get_stap_base_address): Use foreach.
950
1ce51eb5
TT
9512020-09-19 Tom Tromey <tom@tromey.com>
952
953 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
954 parameters.
955 (gdb_bfd_close_or_warn): Use foreach.
956
a190fabb
TT
9572020-09-19 Tom Tromey <tom@tromey.com>
958
959 * corelow.c (add_to_thread_list): Change parameters.
960 (core_target_open): Use foreach.
961
cafb0d81
TT
9622020-09-19 Tom Tromey <tom@tromey.com>
963
964 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
965 existing function.
966
c8d5abea
AB
9672020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
968
969 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
970 for arrays.
971
6d816919
AB
9722020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
973
974 * eval.c: Remove 'f-lang.h' include.
975 (value_f90_subarray): Moved to f-lang.c.
976 (eval_call): Renamed to...
977 (evaluate_subexp_do_call): ...this, is no longer static, header
978 comment moved into header file.
979 (evaluate_funcall): Update call to eval_call.
980 (skip_undetermined_arglist): Moved to f-lang.c.
981 (fortran_value_subarray): Likewise.
982 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
983 moved to evaluate_subexp_f.
984 (calc_f77_array_dims): Moved to f-lang.c
985 * expprint.c (print_subexp_funcall): New function.
986 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
987 moved to print_subexp_f, OP_FUNCALL uses new function.
988 (dump_subexp_body_funcall): New function.
989 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
990 moved to dump_subexp_f, OP_FUNCALL uses new function.
991 * expression.h (evaluate_subexp_do_call): Declare.
992 * f-lang.c (value_f90_subarray): Moved from eval.c.
993 (skip_undetermined_arglist): Likewise.
994 (calc_f77_array_dims): Likewise.
995 (fortran_value_subarray): Likewise.
996 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
997 (operator_length_f): Likewise.
998 (print_subexp_f): Likewise.
999 (dump_subexp_body_f): Likewise.
1000 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1001 declaration of this operation to here.
1002 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1003 support moved to operator_length_f.
1004 * parser-defs.h (dump_subexp_body_funcall): Declare.
1005 (print_subexp_funcall): Declare.
1006 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1007 fortran-operator.def.
1008
8c37706a
AB
10092020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1010
1011 * eval.c (fortran_value_subarray): New function, content is taken
1012 from...
1013 (evaluate_subexp_standard): ...here, in two places. Now arrays
1014 and strings both call the new function.
1015 (calc_f77_array_dims): Add header comment, handle strings.
1016
14f9473c
VC
10172020-09-18 Victor Collod <vcollod@nvidia.com>
1018
1019 PR gdb/26635
1020 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1021 (i386_analyze_prologue): Call i386_skip_endbr.
1022
b60cea74
TT
10232020-09-18 Tom Tromey <tromey@adacore.com>
1024
1025 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1026 (windows_nat_target::wait): Update.
1027 * target/wait.h (enum target_wait_flag): New. Use
1028 DEF_ENUM_FLAGS_TYPE.
1029 * target/target.h (target_wait): Change type of options.
1030 * target.h (target_options_to_string, default_target_wait):
1031 Update.
1032 (struct target_ops) <wait>: Change type of options.
1033 * target.c (target_wait, default_target_wait, do_option): Change
1034 type of "options".
1035 (target_options_to_string): Likewise.
1036 * target-delegates.c: Rebuild.
1037 * target-debug.h (target_debug_print_target_wait_flags): Rename
1038 from target_debug_print_options.
1039 * sol-thread.c (class sol_thread_target) <wait>: Update.
1040 (sol_thread_target::wait): Update.
1041 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1042 (rs6000_nat_target::wait): Update.
1043 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1044 Update.
1045 (remote_target::wait_ns, remote_target::wait_as): Change type of
1046 "options".
1047 (remote_target::wait): Update.
1048 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1049 (gdbsim_target::wait): Update.
1050 * record-full.c (class record_full_base_target) <wait>: Update.
1051 (record_full_wait_1): Change type of "options".
1052 (record_full_base_target::wait): Update.
1053 * record-btrace.c (class record_btrace_target) <wait>: Update.
1054 (record_btrace_target::wait): Update.
1055 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1056 Update.
1057 (ravenscar_thread_target::wait): Update.
1058 * procfs.c (class procfs_target) <wait>: Update.
1059 (procfs_target::wait): Update.
1060 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1061 * obsd-nat.c (obsd_nat_target::wait): Update.
1062 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1063 (nto_procfs_target::wait): Update.
1064 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1065 * nbsd-nat.c (nbsd_wait): Change type of "options".
1066 (nbsd_nat_target::wait): Update.
1067 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1068 (thread_db_target::wait): Update.
1069 * linux-nat.h (class linux_nat_target) <wait>: Update.
1070 * linux-nat.c (linux_nat_target::wait): Update.
1071 (linux_nat_wait_1): Update.
1072 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1073 "options".
1074 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1075 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1076 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1077 (go32_nat_target::wait): Update.
1078 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1079 * gnu-nat.c (gnu_nat_target::wait): Update.
1080 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1081 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1082 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1083 * darwin-nat.c (darwin_nat_target::wait): Update.
1084 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1085 (bsd_uthread_target::wait): Update.
1086 * aix-thread.c (class aix_thread_target) <wait>: Update.
1087 (aix_thread_target::wait): Update.
1088
0295dde6
AB
10892020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1090
1091 * compile/compile-object-run.c (create_copied_type_recursive): New
1092 function.
1093 (compile_object_run): Use new function.
1094
d3483b43
JT
10952020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1096
1097 * NEWS: Mention x86_64 Cygwin core file support.
1098
e7d612ad
JT
10992020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1100
1101 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1102 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1103
aff9d387
JT
11042020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1105
62a5151b
JT
1106 * windows-tdep.h: Add prototypes.
1107 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1108 (i386_windows_core_pid_to_str): Move and rename ...
1109 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1110 (windows_core_pid_to_str): ... and here.
1111 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1112
11132020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1114 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1115 (amd64_windows_init_abi_common): ... and register.
1116
7d155da3
JT
11172020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1118
1119 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1120 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1121
e8ef12b9
PA
11222020-09-18 Pedro Alves <pedro@palves.net>
1123
1124 PR gdb/26631
1125 * thread.c (thread_find_command): Switch inferior before calling
1126 target methods.
1127
c1e1314d
TT
11282020-09-17 Tom Tromey <tromey@adacore.com>
1129
1130 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1131 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1132 (tdesc_arch_data_up): New typedef.
1133 (tdesc_use_registers, tdesc_data_alloc): Update.
1134 (tdesc_data_cleanup): Don't declare.
1135 * target-descriptions.c (tdesc_data_alloc): Return a
1136 tdesc_arch_data_up.
1137 (tdesc_arch_data_deleter::operator()): Rename from
1138 tdesc_data_cleanup. Change argument type.
1139 (tdesc_use_registers): Change early_data to an rvalue reference.
1140 (tdesc_use_registers): Don't use delete.
1141 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1142 * s390-tdep.c (s390_gdbarch_init): Update.
1143 * rx-tdep.c (rx_gdbarch_init): Update.
1144 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1145 * riscv-tdep.c (riscv_gdbarch_init): Update.
1146 * or1k-tdep.c (or1k_gdbarch_init): Update.
1147 * nios2-tdep.c (nios2_gdbarch_init): Update.
1148 * nds32-tdep.c (nds32_gdbarch_init): Update.
1149 * mips-tdep.c (mips_gdbarch_init): Update.
1150 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1151 * m68k-tdep.c (m68k_gdbarch_init): Update.
1152 * i386-tdep.c (i386_gdbarch_init): Update.
1153 * arm-tdep.c (arm_gdbarch_init): Update.
1154 * arc-tdep.c (arc_tdesc_init): Update.
1155 (arc_gdbarch_init): Update.
1156 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1157
0363df3d
HD
11582020-09-17 Hannes Domani <ssbssa@yahoo.de>
1159
1160 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1161 for WOW64 processes.
1162
280a9412
TT
11632020-09-17 Tom Tromey <tom@tromey.com>
1164
1165 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1166
6108fd18
TT
11672020-09-17 Tom Tromey <tom@tromey.com>
1168
1169 * value.c (preserve_values): Update.
1170 * python/py-type.c (save_objfile_types): Update.
1171 * guile/scm-type.c (save_objfile_types): Update.
1172 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1173 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1174 * compile/compile-object-run.c (compile_object_run): Update.
1175
fa9b1164
TT
11762020-09-17 Tom Tromey <tom@tromey.com>
1177
1178 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1179 Remove.
1180 <m_table>: Now htab_up.
1181 * typeprint.c (typedef_hash_table::recursively_update)
1182 (typedef_hash_table::add_template_parameters)
1183 (typedef_hash_table::typedef_hash_table): Update.
1184 (typedef_hash_table::~typedef_hash_table): Remove.
1185 (typedef_hash_table::typedef_hash_table)
1186 (typedef_hash_table::find_global_typedef)
1187 (typedef_hash_table::find_typedef): Update.
1188
eb53f105
TT
11892020-09-17 Tom Tromey <tom@tromey.com>
1190
1191 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1192
7a8a5d47
TT
11932020-09-17 Tom Tromey <tom@tromey.com>
1194
1195 * linespec.c (class decode_compound_collector)
1196 <~decode_compound_collector>: Remove.
1197 <m_unique_syms>: Now htab_up.
1198 (decode_compound_collector::operator ()): Update.
1199 (class symtab_collector) <~symtab_collector>: Remove.
1200 <m_symtab_table>: Now htab_up.
1201 (symtab_collector::operator ()): Update.
1202
99032cfc
TT
12032020-09-17 Tom Tromey <tom@tromey.com>
1204
1205 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1206 (filename_seen_cache::clear): Update.
1207 (~filename_seen_cache): Remove.
1208 (filename_seen_cache::seen): Update.
1209 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1210 htab_up.
1211 <~filename_seen_cache>: Remove.
1212 <traverse>: Update.
1213
32580f6d
TT
12142020-09-17 Tom Tromey <tom@tromey.com>
1215
1216 * completer.c (completion_tracker::discard_completions)
1217 (completion_tracker::~completion_tracker)
1218 (completion_tracker::maybe_add_completion)
1219 (completion_tracker::remove_completion)
1220 (completion_tracker::recompute_lowest_common_denominator)
1221 (completion_tracker::build_completion_result): Update.
1222 * completer.h (class completion_tracker) <have_completions>:
1223 Update.
1224 <m_entries_hash>: Now htab_up.
1225
c1fb9836
TT
12262020-09-17 Tom Tromey <tom@tromey.com>
1227
1228 * breakpoint.c (ambiguous_names_p): Use htab_up.
1229
88f07206
TT
12302020-09-17 Tom Tromey <tom@tromey.com>
1231
1232 * auto-load.c (struct auto_load_pspace_info)
1233 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1234 <loaded_script_files, loaded_script_texts>: Change type to
1235 htab_up.
1236 (~auto_load_pspace_info) Remove.
1237 (init_loaded_scripts_info, maybe_add_script_file)
1238 (maybe_add_script_text, auto_load_info_scripts): Update.
1239
9519b2ee
TT
12402020-09-17 Tom Tromey <tromey@adacore.com>
1241
1242 * c-exp.y (name_obstack): Now static.
1243
d2cd4113
CC
12442020-09-17 Chungyi Chi <demonic@csie.io>
1245
1246 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1247
b650a282
SM
12482020-09-16 Simon Marchi <simon.marchi@efficios.com>
1249
1250 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1251 (add_solib_catchpoint): Likewise.
1252 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1253 to bool.
1254 (add_solib_catchpoint): Change int parameter/variable to bool.
1255 (catch_load_or_unload): Likewise.
1256 (init_catchpoint): Likewise.
1257 (create_fork_vfork_event_catchpoint): Likewise.
1258 (catch_fork_command_1): Likewise.
1259 (catch_exec_command_1): Likewise.
1260
4d0bcfcf
SM
12612020-09-16 Simon Marchi <simon.marchi@efficios.com>
1262
1263 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1264 Change instance_flags to m_instance_flags.
1265
fe830662
TT
12662020-09-16 Tom Tromey <tromey@adacore.com>
1267
1268 PR gdb/26598:
1269 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1270
fe5ddfc3
JB
12712020-09-16 John Baldwin <jhb@FreeBSD.org>
1272
1273 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1274 PL_FLAG_EXEC.
1275 (fbsd_nat_target::insert_exec_catchpoint)
1276 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1277 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1278 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1279
e911c666
JB
12802020-09-16 John Baldwin <jhb@FreeBSD.org>
1281
1282 * configure.ac: Remove check for kinfo_getvmmap().
1283 * configure, config.in: Regenerate.
1284 * fbsd-nat.c (fbsd_read_mapping): Remove
1285 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1286 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1287 kinfo_get_vmmap() are always present.
1288
1f17d372
JB
12892020-09-16 John Baldwin <jhb@FreeBSD.org>
1290
1291 * fbsd-nat.c: Always include support for
1292 TARGET_OBJECT_SIGNAL_INFO.
1293
bcb1da7f
JB
12942020-09-16 John Baldwin <jhb@FreeBSD.org>
1295
1296 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1297 sysctl and remove procfs fallback.
1298
5515f729
JB
12992020-09-16 John Baldwin <jhb@FreeBSD.org>
1300
1301 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1302 * fbsd-nat.h: Likewise.
1303
da1df1db
TBA
13042020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1305
1306 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1307 argument.
1308
0e25e767
AB
13092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1310
1311 * ada-lang.c (ada_language_data): Delete.
1312 (ada_language): Remove references to ada_language_data.
1313 * c-lang.c (c_language_data): Delete.
1314 (c_language): Remove references to c_language_data.
1315 (cplus_language_data): Delete.
1316 (cplus_language): Remove references to cplus_language_data.
1317 (asm_language_data): Delete.
1318 (asm_language): Remove references to asm_language_data.
1319 (minimal_language_data): Delete.
1320 (minimal_language): Remove references to minimal_language_data.
1321 * d-lang.c (d_language_data): Delete.
1322 (d_language): Remove references to d_language_data.
1323 * f-lang.c (f_language_data): Delete.
1324 (f_language): Remove references to f_language_data.
1325 * go-lang.c (go_language_data): Delete.
1326 (go_language): Remove references to go_language_data.
1327 * language.c (unknown_language_data): Delete.
1328 (unknown_language): Remove references to unknown_language_data.
1329 (auto_language_data): Delete.
1330 (auto_language): Remove references to auto_language_data.
1331 * language.h (language_data): Delete struct.
1332 (language_defn): No longer inherit from language_data.
1333 * m2-lang.c (m2_language_data): Delete.
1334 (m2_language): Remove references to m2_language_data.
1335 * objc-lang.c (objc_language_data): Delete.
1336 (objc_language): Remove references to objc_language_data.
1337 * opencl-lang.c (opencl_language_data): Delete.
1338 (opencl_language): Remove references to opencl_language_data.
1339 * p-lang.c (pascal_language_data): Delete.
1340 (pascal_language): Remove references to pascal_language_data.
1341 * rust-lang.c (rust_language_data): Delete.
1342 (rust_language): Remove references to rust_language_data.
1343
b7c6e27d
AB
13442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1345
1346 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1347 initializer.
1348 (ada_language::opcode_print_table): New member function.
1349 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1350 (c_language::opcode_print_table): New member function.
1351 (cplus_language_data): Remove la_op_print_tab initializer.
1352 (cplus_language::opcode_print_table): New member function.
1353 (asm_language_data): Remove la_op_print_tab initializer.
1354 (asm_language::opcode_print_table): New member function.
1355 (minimal_language_data): Remove la_op_print_tab initializer.
1356 (minimal_language::opcode_print_table): New member function.
1357 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1358 (d_language::opcode_print_table): New member function.
1359 * expprint.c (print_subexp_standard): Update call to
1360 opcode_print_table.
1361 (op_string): Likewise.
1362 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1363 (f_language::opcode_print_table): New member function.
1364 * go-lang.c (go_language_data): Remove la_op_print_tab
1365 initializer.
1366 (go_language::opcode_print_table): New member function.
1367 * language.c (unknown_language_data): Remove la_op_print_tab
1368 initializer.
1369 (unknown_language::opcode_print_table): New member function.
1370 (auto_language_data): Remove la_op_print_tab initializer.
1371 (auto_language::opcode_print_table): New member function.
1372 * language.h (language_data): Remove la_op_print_tab field.
1373 (language_defn::opcode_print_table): Declare new member function.
1374 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1375 initializer.
1376 (m2_language::opcode_print_table): New member function.
1377 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1378 initializer.
1379 (objc_language::opcode_print_table): New member function.
1380 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1381 initializer.
1382 (opencl_language::opcode_print_table): New member function.
1383 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1384 initializer.
1385 (pascal_language::opcode_print_table): New member function.
1386 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1387 initializer.
1388 (rust_language::opcode_print_table): New member function.
1389
5aba6ebe
AB
13902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1391
1392 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1393 (ada_language::expression_ops): New member function.
1394 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1395 (c_language::expression_ops): New member function.
1396 (cplus_language_data): Remove la_exp_desc initializer.
1397 (cplus_language::expression_ops): New member function.
1398 (asm_language_data): Remove la_exp_desc initializer.
1399 (asm_language::expression_ops): New member function.
1400 (minimal_language_data): Remove la_exp_desc initializer.
1401 (minimal_language::expression_ops): New member function.
1402 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1403 (d_language::expression_ops): New member function.
1404 * eval.c (evaluate_subexp): Update call to expression_ops.
1405 * expprint.c (print_subexp): Likewise.
1406 (op_name): Likewise.
1407 (dump_subexp_body): Likewise.
1408 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1409 (f_language::expression_ops): New member function.
1410 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1411 (go_language::expression_ops): New member function.
1412 * language.c (language_defn::expression_ops): New function.
1413 (unknown_language_data): Remove la_exp_desc initializer.
1414 (auto_language_data): Likewise.
1415 * language.h (language_data): Remove la_exp_desc field.
1416 (language_defn::expression_ops): Declare new member function.
1417 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1418 (m2_language::expression_ops): New member function.
1419 * objc-lang.c (objc_language_data): Remove la_exp_desc
1420 initializer.
1421 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1422 initializer.
1423 (opencl_language::expression_ops): New member function.
1424 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1425 * parse.c (operator_length): Update call to expression_ops.
1426 (exp_iterate): Likewise.
1427 * rust-lang.c (rust_language_data): Remove la_exp_desc
1428 initializer.
1429 (ruse_language::expression_ops): New member function.
1430
b63a3f3f
AB
14312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1432
1433 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1434 initializer.
1435 (ada_language::varobj_ops): New member function.
1436 * c-lang.c (c_language_data): Remove la_varobj_ops
1437 initializer.
1438 (cplus_language_data): Likewise.
1439 (cplus_language::varobj_ops): New member function.
1440 (asm_language_data): Remove la_varobj_ops initializer.
1441 (minimal_language_data): Likewise.
1442 * d-lang.c (d_language_data): Likewise.
1443 * f-lang.c (f_language_data): Likewise.
1444 * go-lang.c (go_language_data): Likewise.
1445 * language.c (language_defn::varobj_ops): New function.
1446 (unknown_language_data): Remove la_varobj_ops
1447 initializer.
1448 (auto_language_data): Likewise.
1449 * language.h (language_data): Remove la_varobj_ops field.
1450 (language_defn::varobj_ops): Declare new member function.
1451 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1452 * objc-lang.c (objc_language_data): Likewise.
1453 * opencl-lang.c (opencl_language_data): Likewise.
1454 * p-lang.c (pascal_language_data): Likewise.
1455 * rust-lang.c (rust_language_data): Likewise.
1456 * varobj.c (varobj_create): Update call to varobj_ops.
1457 * varobj.h (default_varobj_ops): Delete define.
1458
1ac14a04
AB
14592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1460
1461 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1462 initializer.
1463 * c-lang.c (c_language_data): Likewise.
1464 (c_language::macro_expansion): New member function.
1465 (cplus_language_data): Likewise.
1466 (cplus_language::macro_expansion): New member function.
1467 (asm_language_data): Likewise.
1468 (asm_language::macro_expansion): New member function.
1469 (minimal_language_data): Likewise.
1470 (minimal_language::macro_expansion): New member function.
1471 * d-lang.c (d_language_data): Remove la_macro_expansion
1472 initializer.
1473 * f-lang.c (f_language_data): Likewise.
1474 * go-lang.c (go_language_data): Likewise.
1475 * language.c (unknown_language_data): Likewise.
1476 (auto_language_data): Likewise.
1477 * language.h (language_data): Remove la_macro_expansion field.
1478 (language_defn::macro_expansion): New member function.
1479 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1480 initializer.
1481 * objc-lang.c (objc_language_data): Likewise.
1482 (objc_language::macro_expansion): New member function.
1483 * opencl-lang.c (opencl_language_data): Likewise.
1484 (opencl_language::macro_expansion): New member function.
1485 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1486 initializer.
1487 * rust-lang.c (rust_language_data): Likewise.
1488 * symtab.c (default_collect_symbol_completion_matches_break_on):
1489 Update call to macro_expansion.
1490
3a3440fb
AB
14912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1492
1493 * ada-lang.c (ada_language_data): Remove la_array_ordering
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 * dwarf2/read.c (read_array_order): Update for call to
1501 array_ordering.
1502 * f-lang.c (f_language_data): Remove la_array_ordering
1503 initializer.
1504 (f_language::array_ordering): New member function.
1505 * go-lang.c (go_language_data): Remove la_array_ordering
1506 initializer.
1507 * language.c (unknown_language_data): Likewise.
1508 (auto_language_data): Likewise.
1509 * language.h (language_data): Delete la_array_ordering field.
1510 (language_defn::array_ordering): New member function.
1511 * m2-lang.c (m2_language_data): Remove la_array_ordering
1512 initializer.
1513 * objc-lang.c (objc_language_data): Likewise.
1514 * opencl-lang.c (opencl_language_data): Likewise.
1515 * p-lang.c (pascal_language_data): Likewise.
1516 * rust-lang.c (rust_language_data): Likewise.
1517
0d201fa4
AB
15182020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1519
1520 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1521 initializer.
1522 * c-lang.c (c_language_data): Likewise.
1523 (cplus_language_data): Likewise.
1524 (asm_language_data): Likewise.
1525 (minimal_language_data): Likewise.
1526 * d-lang.c (d_language_data): Likewise.
1527 * f-lang.c (f_language_data): Likewise.
1528 (f_language::case_sensitivity): New member function.
1529 * go-lang.c (go_language_data): Remove la_case_sensitivity
1530 initializer.
1531 * language.c (enum case_mode): Moved here from language.h.
1532 (case_mode): Make static.
1533 (show_case_command): Update for case_sensitivity being a method.
1534 (set_case_command): Likewise.
1535 (set_range_case): Likewise.
1536 (unknown_language_data): Remove la_case_sensitivity initializer.
1537 (auto_language_data): Likewise.
1538 * language.h (case_mode): Delete, move enum declaration to
1539 language.c.
1540 (language_data): Delete la_case_sensitivity field.
1541 (language_defn::case_sensitivity): New member function.
1542 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1543 initializer.
1544 * objc-lang.c (objc_language_data): Likewise.
1545 * opencl-lang.c (opencl_language_data): Likewise.
1546 * p-lang.c (pascal_language_data): Likewise.
1547 * rust-lang.c (rust_language_data): Likewise.
1548
efdf6a73
AB
15492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1550
1551 * ada-lang.c (ada_language_data): Remove la_range_check
1552 initializer.
1553 * c-lang.c (c_language_data): Likewise.
1554 (cplus_language_data): Likewise.
1555 (asm_language_data): Likewise.
1556 (minimal_language_data): Likewise.
1557 * d-lang.c (d_language_data): Likewise.
1558 * f-lang.c (f_language_data): Likewise.
1559 (f_language::range_checking_on_by_default): New member function.
1560 * go-lang.c (go_language_data): Remove la_range_check initializer.
1561 * language.c (enum range_mode): Moved here from language.h.
1562 (range_mode): Made static.
1563 (show_range_command): Update to use
1564 range_checking_on_by_default.
1565 (set_range_command): Likewise.
1566 (set_range_case): Likewise.
1567 (unknown_language_data): Remove la_range_check initializer.
1568 (auto_language_data): Likewise.
1569 * language.h (range_mode): Delete. Enum definition moved to
1570 language.c.
1571 (language_data): Remove la_range_check field.
1572 (language_defn::range_checking_on_by_default): New member
1573 function.
1574 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1575 (m2_language::range_checking_on_by_default): New member function.
1576 * objc-lang.c (objc_language_data): Remove la_range_check
1577 initializer.
1578 * opencl-lang.c (opencl_language_data): Likewise.
1579 * p-lang.c (pascal_language_data): Likewise.
1580 (pascal_language::range_checking_on_by_default): New member
1581 function.
1582 * rust-lang.c (rust_language_data): Remove la_range_check
1583 initializer.
1584 (rust_language::range_checking_on_by_default): New member
1585 function.
1586
bf92aec5
AB
15872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1588
1589 * dwarf2/read.c (dwarf2_physname): Remove special case for
1590 language_go.
1591 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1592 member function.
1593
d3355e4d
AB
15942020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1595
1596 * ada-lang.c (ada_language_data): Remove
1597 la_store_sym_names_in_linkage_form_p initializer.
1598 (ada_language::store_sym_names_in_linkage_form_p): New member
1599 function.
1600 * c-lang.c (c_language_data): Remove
1601 la_store_sym_names_in_linkage_form_p initializer.
1602 (c_language::store_sym_names_in_linkage_form_p): New member
1603 function.
1604 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1605 initializer.
1606 (asm_language_data): Likewise.
1607 (asm_language::store_sym_names_in_linkage_form_p): New member
1608 function.
1609 (minimal_language_data): Remove
1610 la_store_sym_names_in_linkage_form_p initializer.
1611 (minimal_language::store_sym_names_in_linkage_form_p): New member
1612 function.
1613 * d-lang.c (d_language_data): Remove
1614 la_store_sym_names_in_linkage_form_p initializer.
1615 * dwarf2/read.c (dwarf2_physname): Update call to
1616 store_sym_names_in_linkage_form_p.
1617 * f-lang.c (f_language_data): Remove
1618 la_store_sym_names_in_linkage_form_p initializer.
1619 * go-lang.c (go_language_data): Remove
1620 la_store_sym_names_in_linkage_form_p initializer.
1621 * language.c (unknown_language_data): Remove
1622 la_store_sym_names_in_linkage_form_p initializer.
1623 (unknown_language::store_sym_names_in_linkage_form_p): New member
1624 function.
1625 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1626 initializer.
1627 (auto_language::store_sym_names_in_linkage_form_p): New member
1628 function.
1629 * language.h (language_data): Remove
1630 la_store_sym_names_in_linkage_form_p member variable.
1631 (language_defn::store_sym_names_in_linkage_form_p): New member
1632 function.
1633 * m2-lang.c (m2_language_data): Remove
1634 la_store_sym_names_in_linkage_form_p initializer.
1635 * objc-lang.c (objc_language_data): Likewise.
1636 * opencl-lang.c (opencl_language_data): Likewise.
1637 * p-lang.c (pascal_language_data): Likewise.
1638 * rust-lang.c (rust_language_data): Likewise.
1639
22c12a6c
AB
16402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1641
1642 * ada-lang.c (ada_language_data): Remove string_lower_bound
1643 initializer.
1644 * c-lang.c (c_language_data): Likewise.
1645 (cplus_language_data): Likewise.
1646 (asm_language_data): Likewise.
1647 (minimal_language_data): Likewise.
1648 * d-lang.c (d_language_data): Likewise.
1649 * f-lang.c (f_language_data): Likewise.
1650 * go-lang.c (go_language_data): Likewise.
1651 * language.c (unknown_language_data): Likewise.
1652 (auto_language_data): Likewise.
1653 * language.h (language_data): Remove string_lower_bound field.
1654 (language_defn::string_lower_bound): New member function.
1655 * m2-lang.c (m2_language_data): Remove string_lower_bound
1656 initializer.
1657 (m2_language::string_lower_bound): New member function.
1658 * objc-lang.c (objc_language_data): Remove string_lower_bound
1659 initializer.
1660 * opencl-lang.c (opencl_language_data): Likewise.
1661 * p-lang.c (pascal_language_data): Likewise.
1662 * rust-lang.c (rust_language_data): Likewise.
1663 * valops.c (value_cstring): Update call to string_lower_bound.
1664 (value_string): Likewise.
1665 * value.c (allocate_repeated_value): Likewise.
1666
1c236ddd
AB
16672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1668
1669 * valops.c (value_repeat): Fix incorrect argument name in comment.
1670
67bd3fd5
AB
16712020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1672
1673 * ada-lang.c (ada_language_data): Remove c_style_arrays
1674 initializer.
1675 (ada_language::c_style_arrays_p): New member fuction.
1676 * c-lang.c (c_language_data): Remove c_style_arrays
1677 initializer.
1678 (cplus_language_data): Likewise.
1679 (asm_language_data): Likewise.
1680 (minimal_language_data): Likewise.
1681 * d-lang.c (d_language_data): Likewise.
1682 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1683 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1684 (f_language::c_style_arrays_p): New member function.
1685 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1686 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1687 * language.c (unknown_language_data): Remove c_style_arrays
1688 initializer.
1689 (auto_language_data): Likewise.
1690 * language.h (language_data): Remove c_style_arrays field.
1691 (language_defn::c_style_arrays_p): New member function.
1692 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1693 (m2_language::c_style_arrays_p): New member function.
1694 * objc-lang.c (objc_language_data): Remove c_style_arrays
1695 initializer.
1696 * opencl-lang.c (opencl_language_data): Likewise.
1697 * p-lang.c (pascal_language_data): Likewise.
1698 * rust-lang.c (rust_language_data): Likewise.
1699 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1700 and update local variable to a bool.
1701 * valops.c (value_cast): Update call to c_style_arrays_p.
1702 (value_array): Likewise.
1703 * value.c (coerce_array): Likewise.
1704
85967615
AB
17052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1706
1707 * ada-lang.c (ada_language_data): Remove la_language initializer.
1708 * c-lang.c (c_language_data): Likewise.
1709 (cplus_language_data): Likewise.
1710 (asm_language_data): Likewise.
1711 (minimal_language_data): Likewise.
1712 * d-lang.c (d_language_data): Likewise.
1713 * f-lang.c (f_language_data): Likewise.
1714 * go-lang.c (go_language_data): Likewise.
1715 * language.c (unknown_language_data): Likewise.
1716 (auto_language_data): Likewise.
1717 * language.h (language_data): Remove la_language field.
1718 (language_defn::language_defn): Initialise la_language field.
1719 (language_defn::la_language): New member variable.
1720 * m2-lang.c (m2_language_data): Remove la_language field.
1721 * objc-lang.c (objc_language_data): Likewise.
1722 * opencl-lang.c (opencl_language_data): Likewise.
1723 * p-lang.c (pascal_language_data): Likewise.
1724 * rust-lang.c (rust_language_data): Likewise.
1725
e171d6f1
AB
17262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1727
1728 * ada-lang.c (ada_extensions): Delete, moved into
1729 ada_language::filename_extensions.
1730 (ada_language_data): Remove la_filename_extensions initializer.
1731 (ada_language::filename_extensions): New member function.
1732 * c-lang.c (c_extensions): Delete, moved into
1733 c_language::filename_extensions.
1734 (c_language_data): Remove la_filename_extensions initializer.
1735 (c_language::filename_extensions): New member function.
1736 (cplus_extensions): Delete, moved into
1737 cplus_language::filename_extensions.
1738 (cplus_language_data): Remove la_filename_extensions initializer.
1739 (cplus_language::filename_extensions): New member function.
1740 (asm_extensions): Delete, moved into
1741 asm_language::filename_extensions.
1742 (asm_language_data): Remove la_filename_extensions initializer.
1743 (asm_language::filename_extensions): New member function.
1744 (minimal_language_data): Remove la_filename_extensions
1745 initializer.
1746 * d-lang.c (d_extensions): Delete, moved into
1747 d_language::filename_extensions.
1748 (d_language_data): Remove la_filename_extensions initializer.
1749 (d_language::filename_extensions): New member function.
1750 * f-lang.c (f_extensions): Delete, moved into
1751 f_language::filename_extensions.
1752 (f_language_data): Remove la_filename_extensions initializer.
1753 (f_language::filename_extensions): New member function.
1754 * go-lang.c (go_language_data): Remove la_filename_extensions
1755 initializer.
1756 * language.c (add_set_language_command): Update now that
1757 filename_extensions returns a vector.
1758 (unknown_language_data): Remove la_filename_extensions
1759 initializer.
1760 (auto_language_data): Likewise.
1761 * language.h (language_data): Remove la_filename_extensions field.
1762 (language_defn::filename_extensions): New member function.
1763 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1764 initializer.
1765 * objc-lang.c (objc_extensions): Delete, moved into
1766 objc_language::filename_extensions.
1767 (objc_language_data): Remove la_filename_extensions initializer.
1768 (objc_language::filename_extensions): New member function.
1769 * opencl-lang.c (opencl_language_data): Remove
1770 la_filename_extensions initializer.
1771 * p-lang.c (pascal_extensions): Delete, moved into
1772 pascal_language::filename_extensions.
1773 (pascal_language_data): Remove la_filename_extensions initializer.
1774 (pascal_language::filename_extensions): New member function.
1775 * rust-lang.c (rust_extensions): Delete, moved into
1776 rust_language::filename_extensions.
1777 (rust_language_data): Remove la_filename_extensions initializer.
1778 (rust_language::filename_extensions): New member function.
1779 * symfile.c (add_filename_language): Add new assert.
1780
6f7664a9
AB
17812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1782
1783 * ada-lang.c (ada_language_data): Remove la_name and
1784 la_natural_name initializers.
1785 (ada_language::name): New member function.
1786 (ada_language::natural_name): New member function.
1787 * c-lang.c (c_language_data): Remove la_name and
1788 la_natural_name initializers.
1789 (c_language::name): New member function.
1790 (c_language::natural_name): New member function.
1791 (cplus_language_data): Remove la_name and
1792 la_natural_name initializers.
1793 (cplus_language::name): New member function.
1794 (cplus_language::natural_name): New member function.
1795 (asm_language_data): Remove la_name and
1796 la_natural_name initializers.
1797 (asm_language::name): New member function.
1798 (asm_language::natural_name): New member function.
1799 (minimal_language_data): Remove la_name and
1800 la_natural_name initializers.
1801 (minimal_language::name): New member function.
1802 (minimal_language::natural_name): New member function.
1803 * compile/compile.c (compile_to_object): Update call to
1804 lanugage_defn::name.
1805 * d-lang.c (d_language_data): Remove la_name and
1806 la_natural_name initializers.
1807 (d_language::name): New member function.
1808 (d_language::natural_name): New member function.
1809 * expprint.c (print_subexp_standard): Update call to
1810 language_defn::name.
1811 (dump_raw_expression): Likewise
1812 (dump_prefix_expression): Likewise.
1813 * f-lang.c (f_language_data): Remove la_name and
1814 la_natural_name initializers.
1815 (f_language::name): New member function.
1816 (f_language::natural_name): New member function.
1817 * go-lang.c (go_language_data): Remove la_name and
1818 la_natural_name initializers.
1819 (go_language::name): New member function.
1820 (go_language::natural_name): New member function.
1821 * language.c (show_language_command): Update call to
1822 language_defn::name.
1823 (set_language_command): Likewise.
1824 (language_enum): Likewise.
1825 (language_str): Likewise.
1826 (add_set_language_command): Likewise, use
1827 language_defn::natural_name in the doc string.
1828 (unknown_language_data): Remove la_name and
1829 la_natural_name initializers.
1830 (unknown_language::name): New member function.
1831 (unknown_language::natural_name): New member function.
1832 (auto_language_data): Remove la_name and
1833 la_natural_name initializers.
1834 (auto_language::name): New member function.
1835 (auto_language::natural_name): New member function.
1836 (language_lookup_primitive_type_as_symbol): Update call to
1837 language_defn::name.
1838 * language.h (language_data): Remove la_name and la_natural_name
1839 member variables.
1840 (language_defn::name): New member function.
1841 (language_defn::natural_name): New member function.
1842 * m2-lang.c (m2_language_data): Remove la_name and
1843 la_natural_name initializers.
1844 (m2_language::name): New member function.
1845 (m2_language::natural_name): New member function.
1846 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1847 language_defn::natural_name.
1848 * objc-lang.c (objc_language_data): Remove la_name and
1849 la_natural_name initializers.
1850 (objc_language::name): New member function.
1851 (objc_language::natural_name): New member function.
1852 * opencl-lang.c (opencl_language_data): Remove la_name and
1853 la_natural_name initializers.
1854 (opencl_language::name): New member function.
1855 (opencl_language::natural_name): New member function.
1856 * p-lang.c (pascal_language_data): Remove la_name and
1857 la_natural_name initializers.
1858 (pascal_language::name): New member function.
1859 (pascal_language::natural_name): New member function.
1860 * rust-lang.c (rust_language_data): Remove la_name and
1861 la_natural_name initializers.
1862 (rust_language::name): New member function.
1863 (rust_language::natural_name): New member function.
1864 * symtab.c (lookup_language_this): Update call to
1865 language_defn::name.
1866
5bae7c4e
AB
18672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1868
1869 * ada-lang.c (ada_language_data): Remove la_name_of_this
1870 initializer.
1871 * ax-gdb.c (gen_expr): Update call to name_of_this.
1872 * c-exp.y (classify_name): Likewise.
1873 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1874 (cplus_language_data): Likewise.
1875 (cplus_language::name_of_this): New member function.
1876 (asm_language_data): Remove la_name_of_this initializer.
1877 (minimal_language_data): Likewise.
1878 * d-lang.c (d_language_data): Likewise.
1879 (d_language::name_of_this): New member function.
1880 * expprint.c (print_subexp_standard): Update call to name_of_this.
1881 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1882 * go-lang.c (go_language_data): Likewise.
1883 * language.c (unknown_language_data): Likewise.
1884 (unknown_language::name_of_this): New member function.
1885 (auto_language_data): Remove la_name_of_this initializer.
1886 (auto_language::name_of_this): New member function.
1887 * language.h (language_data): Delete la_name_of_this member
1888 variable.
1889 (language_defn::name_of_this): New member function.
1890 * m2-lang.c (m2_language_data): Remove la_name_of_this
1891 initializer.
1892 * objc-lang.c (objc_language_data): Likewise.
1893 (objc_language::name_of_this): New member function.
1894 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1895 initializer.
1896 * p-lang.c (pascal_language_data): Likewise.
1897 (pascal_language::name_of_this): New member function.
1898 * rust-lang.c (rust_language_data): Remove la_name_of_this
1899 initializer.
1900 * symtab.c (lookup_language_this): Update call to name_of_this.
1901 (lookup_symbol_aux): Likewise.
1902 * valops.c (value_of_this): Likewise.
1903
22e3f3ed
AB
19042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1905
1906 * ada-lang.c (ada_language_data): Remove
1907 la_struct_too_deep_ellipsis initializer.
1908 (ada_language::struct_too_deep_ellipsis): New member function.
1909 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1910 initializer.
1911 (cplus_language_data): Likewise.
1912 (asm_language_data): Likewise.
1913 (minimal_language_data): Likewise.
1914 * cp-valprint.c (cp_print_value): Update call to
1915 struct_too_deep_ellipsis.
1916 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1917 initializer.
1918 * f-lang.c (f_language_data): Likewise.
1919 (f_language::struct_too_deep_ellipsis): New member function.
1920 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1921 initializer.
1922 * language.c (unknown_language_data): Likewise.
1923 (auto_language_data): Likewise.
1924 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1925 member variable.
1926 (language_defn::struct_too_deep_ellipsis): New member function.
1927 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1928 initializer.Q
1929 * objc-lang.c (objc_language_data): Likewise.
1930 * opencl-lang.c (opencl_language_data): Likewise.
1931 * p-lang.c (pascal_language_data): Likewise.
1932 * rust-lang.c (rust_language_data): Likewise.
1933 * valprint.c (val_print_check_max_depth): Update call to
1934 struct_too_deep_ellipsis.
1935
ed29e1c7
FW
19362020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1937
1938 * MAINTAINERS (Write After Approval): Add myself.
1939
12d8f940
TT
19402020-09-15 Tom Tromey <tom@tromey.com>
1941
1942 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1943 Remove.
1944
6b5a7bc7
TT
19452020-09-15 Tom Tromey <tom@tromey.com>
1946
1947 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1948 and TYPE_CODE_METHODPTR cases.
1949 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1950 (c_value_print_inner): Update.
1951 * valprint.c (generic_value_print_memberptr): New function, from
1952 c_value_print_memberptr.
1953 (generic_value_print): Use it. Call cplus_print_method_ptr.
1954
47f0e2ff
TT
19552020-09-15 Tom Tromey <tromey@adacore.com>
1956
1957 * python/python-internal.h (PyInt_FromLong): Remove define.
1958 * python/py-value.c (convert_value_from_python): Use
1959 gdb_py_object_from_longest.
1960 * python/py-type.c (typy_get_code): Use
1961 gdb_py_object_from_longest.
1962 * python/py-symtab.c (salpy_get_line): Use
1963 gdb_py_object_from_longest.
1964 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1965 gdb_py_object_from_longest.
1966 * python/py-record.c (recpy_gap_reason_code): Use
1967 gdb_py_object_from_longest.
1968 * python/py-record-btrace.c (recpy_bt_insn_size)
1969 (recpy_bt_func_level, btpy_list_count): Use
1970 gdb_py_object_from_longest.
1971 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1972 gdb_py_object_from_longest. Fix error handling.
1973 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1974 gdb_py_object_from_longest.
1975 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1976 gdb_py_object_from_longest.
1977 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1978 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1979 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1980
512116ce
TT
19812020-09-15 Tom Tromey <tromey@adacore.com>
1982
1983 * python/python.c (gdbpy_parameter_value): Use
1984 gdb_py_object_from_ulongest.
1985
4ab1029c
TT
19862020-09-15 Tom Tromey <tromey@adacore.com>
1987
1988 * python/py-infevents.c (create_register_changed_event_object):
1989 Use gdb_py_object_from_longest.
1990 * python/py-exitedevent.c (create_exited_event_object): Use
1991 gdb_py_object_from_longest.
1992
062534d4
TT
19932020-09-15 Tom Tromey <tromey@adacore.com>
1994
1995 * python/python.c (gdbpy_parameter_value): Use
1996 gdb_py_object_from_longest.
1997 * python/py-type.c (convert_field, typy_range): Use
1998 gdb_py_object_from_longest.
1999 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2000 gdb_py_object_from_longest.
2001 * python/py-lazy-string.c (stpy_get_length): Use
2002 gdb_py_object_from_longest.
2003 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2004 gdb_py_object_from_longest.
2005 * python/py-infevents.c (create_memory_changed_event_object): Use
2006 gdb_py_object_from_longest.
2007 * python/py-inferior.c (infpy_get_num): Use
2008 gdb_py_object_from_longest.
2009 (infpy_get_pid): Likewise.
2010
d1cab987
TT
20112020-09-15 Tom Tromey <tromey@adacore.com>
2012
2013 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2014 defines.
2015 * python/py-value.c (valpy_long): Use
2016 gdb_py_object_from_ulongest.
2017 * python/py-symtab.c (salpy_get_pc): Use
2018 gdb_py_object_from_ulongest.
2019 (salpy_get_last): Likewise.
2020 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2021 gdb_py_object_from_ulongest.
2022 * python/py-lazy-string.c (stpy_get_address): Use
2023 gdb_py_object_from_ulongest.
2024 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2025 * python/py-arch.c (archpy_disassemble): Use
2026 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2027 error handling.
2028
4bde49dc
TT
20292020-09-15 Tom Tromey <tromey@adacore.com>
2030
2031 * python/python-internal.h (gdb_py_long_from_longest): Remove
2032 defines.
2033 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2034 * python/py-type.c (convert_field, typy_get_sizeof): Use
2035 gdb_py_object_from_longest.
2036 * python/py-record-btrace.c (btpy_list_index): Use
2037 gdb_py_object_from_longest.
2038
37431074
TT
20392020-09-15 Tom Tromey <tromey@adacore.com>
2040
2041 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2042 * python/py-record.c (recpy_element_number): Use
2043 gdb_py_object_from_longest.
2044 (recpy_gap_number): Likewise.
2045
cbe25684
TT
20462020-09-15 Tom Tromey <tromey@adacore.com>
2047
2048 * top.c (ui::ui): Update.
2049 (highest_ui_num): Remove.
2050 * top.h (struct ui) <num>: Remove.
2051
db92ac45
TT
20522020-09-15 Tom Tromey <tromey@adacore.com>
2053
2054 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2055 * ui-style.c (ansi_regex_text): Now array.
2056 * rust-exp.y (number_regex_text): Now array.
2057 * linespec.c (linespec_quote_characters): Now array.
2058 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2059 Now arrays.
2060
d2b31b67
SM
20612020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2062
2063 * debuginfod-support.c (debuginfod_client_deleter): New.
2064 (debuginfod_client_up): New.
2065 (debuginfod_init): Return debuginfod_client_up.
2066 (debuginfod_source_query): Adjust.
2067 (debuginfod_debuginfo_query): Adjust.
2068
3246bd8e
SM
20692020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2070
2071 * debuginfod-support.c (debuginfod_source_query): Use
2072 make_unique_xstrdup.
2073
10242f36
SM
20742020-09-14 Simon Marchi <simon.marchi@efficios.com>
2075
2076 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2077 with `type::instance_flags`.
2078
e1044e6a
MM
20792020-09-14 Michael Mullin <masmullin@gmail.com>
2080
2081 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2082 Remove baton parameter.
2083
04902b09
PA
20842020-09-14 Pedro Alves <pedro@palves.net>
2085
2086 * Makefile.in (SELFTESTS_SRCS): Add
2087 unittests/enum-flags-selftests.c.
2088 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2089 btrace_function_flags instead of enum btrace_function_flag.
2090 * compile/compile-c-types.c (convert_qualified): Use
2091 enum_flags::raw.
2092 * compile/compile-cplus-symbols.c (convert_one_symbol)
2093 (convert_symbol_bmsym):
2094 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2095 (compile_cplus_convert_struct_or_union_methods)
2096 (compile_cplus_instance::convert_qualified_base):
2097 * go-exp.y (parse_string_or_char): Add cast to int.
2098 * unittests/enum-flags-selftests.c: New file.
2099 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2100 type to btrace_thread_flags from btrace_thread_flag.
2101 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2102 local's type to btrace_thread_flags from btrace_thread_flag. Add
2103 cast in DEBUG call.
2104
69896a2c
PA
21052020-09-14 Pedro Alves <pedro@palves.net>
2106
2107 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2108 * gdbtypes.c (address_space_name_to_int): Rename to ...
2109 (address_space_name_to_type_instance_flags): ... this.
2110 (address_space_int_to_name): Rename to ...
2111 (address_space_type_instance_flags_to_name): ... this.
2112 * gdbtypes.h (address_space_name_to_int): Rename to ...
2113 (address_space_name_to_type_instance_flags): ... this.
2114 (address_space_int_to_name): Rename to ...
2115 (address_space_type_instance_flags_to_name): ... this.
2116 * type-stack.c (type_stack::insert): Adjust to rename.
2117 * type-stack.h (type_stack::insert): Likewise.
2118
314ad88d
PA
21192020-09-14 Pedro Alves <pedro@palves.net>
2120 Andrew Burgess <andrew.burgess@embecosm.com>
2121
2122 * avr-tdep.c (avr_address_class_type_flags): Return
2123 type_instance_flags.
2124 (avr_address_class_type_flags_to_name): Take a
2125 type_instance_flags.
2126 (avr_address_class_name_to_type_flags): Return bool and take a
2127 type_instance_flags.
2128 * d-lang.c (build_d_types): Use type::set_instance_flags.
2129 * ft32-tdep.c (ft32_address_class_type_flags): Return
2130 type_instance_flags.
2131 (ft32_address_class_type_flags_to_name): Take a
2132 type_instance_flags.
2133 (ft32_address_class_name_to_type_flags): Return bool and take a
2134 type_instance_flags.
2135 (ft32_gdbarch_init): Use type::set_instance_flags.
2136 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2137 * gdbarch.h, gdbarch.c: Regenerate.
2138 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2139 (address_class_name_to_type_flags): Use type_instance_flags and
2140 bool.
2141 * gdbtypes.c (address_space_name_to_int)
2142 (address_space_int_to_name, make_qualified_type): Use
2143 type_instance_flags.
2144 (make_qualified_type): Use type_instance_flags and
2145 type::set_instance_flags.
2146 (make_type_with_address_space, make_cv_type, make_vector_type)
2147 (check_typedef): Use type_instance_flags.
2148 (recursive_dump_type): Cast type_instance_flags to unsigned for
2149 printing.
2150 (copy_type_recursive): Use type::set_instance_flags.
2151 (gdbtypes_post_init): Use type::set_instance_flags.
2152 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2153 <m_instance_flags>: ... this.
2154 <instance_flags, set_instance_flags>: New methods.
2155 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2156 (SET_TYPE_INSTANCE_FLAGS): New.
2157 (address_space_name_to_int, address_space_int_to_name)
2158 (make_type_with_address_space): Pass flags using
2159 type_instance_flags instead of int.
2160 * stabsread.c (cleanup_undefined_types_noname): Use
2161 type::set_instance_flags.
2162 * s390-tdep.c (s390_address_class_type_flags): Return
2163 type_instance_flags.
2164 (s390_address_class_type_flags_to_name): Take a
2165 type_instance_flags.
2166 (s390_address_class_name_to_type_flags): Return bool and take a
2167 type_instance_flags.
2168 * type-stack.c (type_stack::follow_types): Use
2169 type_instance_flags.
2170 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2171
27087b7f
TT
21722020-09-14 Tom Tromey <tromey@adacore.com>
2173
2174 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2175 * x86-tdep.c (x86_is_thunk_register_name)
2176 (x86_in_indirect_branch_thunk): Update.
2177 * sparc64-tdep.c (sparc64_fpu_register_names)
2178 (sparc64_cp0_register_names, sparc64_register_names)
2179 (sparc64_pseudo_register_names): Now const.
2180 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2181 cp0_registers_num>: Now const.
2182 * sparc-tdep.c (sparc_core_register_names)
2183 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2184 (sparc32_pseudo_register_names): Now const.
2185 (validate_tdesc_registers): Update.
2186 * rust-lang.c (rust_extensions): Now const.
2187 * p-lang.c (p_extensions): Now const.
2188 * objc-lang.c (objc_extensions): Now const.
2189 * nto-tdep.c (nto_thread_state_str): Now const.
2190 * moxie-tdep.c (moxie_register_names): Now const.
2191 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2192 Now const.
2193 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2194 (mips_linux_reg_names): Now const.
2195 (mips_gdbarch_init): Update.
2196 * microblaze-tdep.c (microblaze_register_names): Now const.
2197 * m68k-tdep.c (m68k_register_names): Now const.
2198 * m32r-tdep.c (m32r_register_names): Now const.
2199 * ia64-tdep.c (ia64_register_names): Now const.
2200 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2201 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2202 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2203 ymm_avx512_register_names, pkeys_register_names>: Now const.
2204 * i386-tdep.c (i386_register_names, i386_zmm_names)
2205 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2206 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2207 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2208 * f-lang.c (f_extensions): Now const.
2209 * d-lang.c (d_extensions): Now const.
2210 * csky-tdep.c (csky_register_names): Now const.
2211 * charset.c (default_charset_names, charset_enum): Now const.
2212 (_initialize_charset): Update.
2213 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2214 const.
2215 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2216 (bsd_uthread_solib_loaded): Update.
2217 (bsd_uthread_state): Now const.
2218 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2219 (amd64_ymm_avx512_names, amd64_ymmh_names)
2220 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2221 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2222 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2223 (amd64_dword_names): Now const.
2224 * agent.c (can_use_agent_enum): Now const.
2225 * ada-tasks.c (task_states, long_task_states): Now const.
2226 * ada-lang.c (known_runtime_file_name_patterns)
2227 (known_auxiliary_function_name_patterns, attribute_names)
2228 (standard_exc, ada_extensions): Now const.
2229
89806626
SM
22302020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2231
2232 * bcache.h (struct bcache) <bcache>: Remove constructor.
2233 <m_hash_function, m_compare_function>: Remove.
2234 <~bcache>: Make virtual.
2235 <compare>: Remove static method, introduce virtual method.
2236 <default_hash>: Remove.
2237 <hash>: New virtual method.
2238 * bcache.c (bcache::expand_hash_table): Update.
2239 (bcache::insert): Update.
2240 (bcache::hash): New.
2241 (bcache::compare): Update comment and parameter names.
2242 * gdbtypes.c (types_deeply_equal): Update.
2243 * psymtab.h (struct psymbol_bcache): New struct.
2244 (class psymtab_storage) <psymtab_storage>: Make default.
2245 <psymbol_cache>: Change type to psymbol_bcache.
2246 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2247 (psymbol_hash): Change to...
2248 (psymbol_bcache::hash): ... this.
2249 (psymbol_compare): Change to...
2250 (psymbol_bcache::compare): ... this.
2251
677c92fe
SM
22522020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2253
2254 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2255 checking for initial lwp.
2256
3eba3a01
TT
22572020-09-14 Tom Tromey <tromey@adacore.com>
2258
2259 * m68k-tdep.c (m68k_extract_return_value): Use
2260 pointer_result_regnum.
2261 (m68k_store_return_value): Likewise.
2262 (m68k_reg_struct_return_p): Handle vectors and arrays.
2263 (m68k_return_value): Handle arrays.
2264 (m68k_svr4_return_value): Fix single-element aggregate handling.
2265 Handle long double. Adjust for embedded ABI.
2266 (m68k_svr4_init_abi): Set pointer_result_regnum.
2267 (m68k_embedded_init_abi): New function.
2268 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2269 (m68k_osabi_sniffer): New function.
2270 (_initialize_m68k_tdep): Register osabi sniffer.
2271 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2272 member.
2273
33f4dd48
SM
22742020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2275
2276 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2277 with gdb::unique_xmalloc_ptr<char>.
2278
8400a90d
SM
22792020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2280
2281 * xml-support.h (xml_fetch_another): Change type to be a
2282 function_view.
2283 (xml_process_xincludes): Remove baton parameter.
2284 (xml_fetch_content_from_file): Change baton parameter to
2285 dirname.
2286 * xml-support.c (struct xinclude_parsing_data)
2287 <xinclude_parsing_data>: Remove baton parameter.
2288 <fetcher_baton>: Remove.
2289 (xinclude_start_include): Adjust.
2290 (xml_process_xincludes): Adjust.
2291 (xml_fetch_content_from_file): Replace baton parameter with
2292 dirname.
2293 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2294 (xml_init_syscalls_info): Use a lambda.
2295 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2296 (file_read_description_xml): Use a lambda.
2297 (fetch_available_features_from_target): Change baton parameter
2298 to target_ops.
2299 (target_read_description_xml): Use a lambda.
2300 (target_fetch_description_xml): Use a lambda.
2301 (string_read_description_xml): Update.
2302
04f5bab2
SM
23032020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2304
2305 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2306 uses with type::endianity_is_not_default.
2307
db558e34
SM
23082020-09-14 Simon Marchi <simon.marchi@efficios.com>
2309
2310 * gdbtypes.h (struct type) <endianity_is_not_default,
2311 set_endianity_is_not_default>: New methods.
2312 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2313 type::endianity_is_not_default, change all write call sites to
2314 use type::set_endianity_is_not_default.
2315
22c4c60c
SM
23162020-09-14 Simon Marchi <simon.marchi@efficios.com>
2317
2318 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2319 uses with type::is_fixed_instance.
2320
9cdd0d12
SM
23212020-09-14 Simon Marchi <simon.marchi@efficios.com>
2322
2323 * gdbtypes.h (struct type) <is_fixed_instance,
2324 set_is_fixed_instance>: New methods.
2325 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2326 write call sites to use type::set_is_fixed_instance.
2327
0becda7a
SM
23282020-09-14 Simon Marchi <simon.marchi@efficios.com>
2329
2330 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2331 uses with type::is_gnu_ifunc.
2332
03cc7249
SM
23332020-09-14 Simon Marchi <simon.marchi@efficios.com>
2334
2335 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2336 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2337 use type::set_is_gnu_ifunc.
2338
3f46044c
SM
23392020-09-14 Simon Marchi <simon.marchi@efficios.com>
2340
2341 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2342 uses with type::stub_is_supported.
2343
9baccff6
SM
23442020-09-14 Simon Marchi <simon.marchi@efficios.com>
2345
2346 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2347 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2348 use type::set_stub_is_supported.
2349
bd63c870
SM
23502020-09-14 Simon Marchi <simon.marchi@efficios.com>
2351
2352 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2353 uses with type::is_vector.
2354
2062087b
SM
23552020-09-14 Simon Marchi <simon.marchi@efficios.com>
2356
2357 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2358 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2359 use type::set_is_vector.
2360
a409645d
SM
23612020-09-14 Simon Marchi <simon.marchi@efficios.com>
2362
2363 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2364 uses with type::has_varargs.
2365
1d6286ed
SM
23662020-09-14 Simon Marchi <simon.marchi@efficios.com>
2367
2368 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2369 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2370 use type::set_has_varargs.
2371
7f9f399b
SM
23722020-09-14 Simon Marchi <simon.marchi@efficios.com>
2373
2374 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2375 uses with type::is_prototyped.
2376
27e69b7a
SM
23772020-09-14 Simon Marchi <simon.marchi@efficios.com>
2378
2379 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2380 New methods.
2381 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2382 call sites to use type::set_is_prototyped.
2383
d2183968
SM
23842020-09-14 Simon Marchi <simon.marchi@efficios.com>
2385
2386 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2387 uses with type::target_is_stub.
2388
8f53807e
SM
23892020-09-14 Simon Marchi <simon.marchi@efficios.com>
2390
2391 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2392 New methods.
2393 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2394 sites to use type::set_target_is_stub.
2395
e46d3488
SM
23962020-09-14 Simon Marchi <simon.marchi@efficios.com>
2397
2398 * gdbtypes.h (TYPE_STUB): Remove, replace all
2399 uses with type::is_stub.
2400
b4b73759
SM
24012020-09-14 Simon Marchi <simon.marchi@efficios.com>
2402
2403 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2404 (TYPE_STUB): Use type::is_stub, change all write call sites to
2405 use type::set_is_stub.
2406
20ce4123
SM
24072020-09-14 Simon Marchi <simon.marchi@efficios.com>
2408
2409 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2410 type::has_no_signedness.
2411
15152a54
SM
24122020-09-14 Simon Marchi <simon.marchi@efficios.com>
2413
2414 * gdbtypes.h (struct type) <has_no_signedness,
2415 set_has_no_signedness>: New methods.
2416 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2417 call sites to use type::set_has_no_signedness.
2418
c6d940a9
SM
24192020-09-14 Simon Marchi <simon.marchi@efficios.com>
2420
2421 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2422 type::is_unsigned.
2423
653223d3
SM
24242020-09-14 Simon Marchi <simon.marchi@efficios.com>
2425
2426 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2427 methods.
2428 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2429 sites to use type::set_is_unsigned.
2430
55ea94da 24312020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2432 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2433
e851246a
SM
2434 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2435 pointer and stack frame offset when unwinding.
55ea94da 2436
6791b117
PA
24372020-09-13 Pedro Alves <pedro@palves.net>
2438
2439 * NEWS: Document "-break-insert --qualified".
2440 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2441
77f2120b
PA
24422020-09-13 Pedro Alves <pedro@palves.net>
2443
2444 * linespec.c (classify_mtype, compare_msyms): Delete.
2445 (search_minsyms_for_name): Remove classification logic. Instead
2446 filter out trampoline symbols if we also found an external
2447 function of the same name.
2448
ed6a896c
JB
24492020-09-13 Joel Brobecker <brobecker@adacore.com>
2450
2451 * NEWS: Create a new section for the next release branch.
2452 Rename the section of the current branch, now that it has
2453 been cut.
2454
32aea73e
JB
24552020-09-13 Joel Brobecker <brobecker@adacore.com>
2456
2457 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2458 * version.in: Bump version to 11.0.50.DATE-git.
2459
8087c3fa
JB
24602020-09-12 Joel Brobecker <brobecker@adacore.com>
2461
2462 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2463
2a67f09d
FW
24642020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2465 Felix Willgerodt <Felix.Willgerodt@intel.com>
2466
2467 * gdbarch.sh: Added bfloat16 type.
2468 * gdbarch.c: Regenerated.
2469 * gdbarch.h: Regenerated.
2470 * gdbtypes.c (floatformats_bfloat16): New struct.
2471 (gdbtypes_post_init): Add builtin_bfloat16.
2472 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2473 (floatformats_bfloat16): New struct.
2474 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2475 (i386_ymm_type): Add field "v16_bfloat16"
2476 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2477 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2478 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2479 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2480 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2481 * features/i386/64bit-avx512.c: Regenerated.
2482 * features/i386/64bit-sse.xml: Add bfloat16 type.
2483 * features/i386/64bit-sse.c: Regenerated.
2484
1347d111
FW
24852020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2486
2487 * i386-tdep.c (i386_zmm_type): Fix field names.
2488 (i386_ymm_type): Fix field names.
2489
7a4e8e7d
TBA
24902020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2491
2492 * breakpoint.c: Fix typo in the help message of the
2493 "set breakpoint condition-evaluation" command.
2494
cf4ac4be
KR
24952020-09-10 Kamil Rytarowski <n54@gmx.com>
2496
2497 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2498 * (nbsd_nat_target::pid_to_exec_file)
2499 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2500 (nbsd_nat_target::post_startup_inferior)
2501 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2502 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2503 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2504 * (nbsd_thread_lister): Remove.
2505
f404573e
KR
25062020-09-10 Kamil Rytarowski <n54@gmx.com>
2507
2508 * fork-inferior.c (startup_inferior): Avoid double free.
2509
1ccb2c17
KR
25102020-09-10 Kamil Rytarowski <n54@gmx.com>
2511
2512 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2513 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2514
feedfcc7
KR
25152020-09-10 Kamil Rytarowski <n54@gmx.com>
2516
2517 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2518 * netbsd-nat.c: Include <sys/ptrace.h>.
2519 * (netbsd_nat::enable_proc_events): Add.
2520
c489f8c6
KR
25212020-09-10 Kamil Rytarowski <n54@gmx.com>
2522
2523 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2524 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2525 (netbsd_nat::for_each_thread): Add.
2526 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2527 "gdbsupport/common-debug.h".
2528 * (netbsd_nat::netbsd_thread_lister)
2529 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2530 (netbsd_nat::for_each_thread): Add.
2531
330662f6
KR
25322020-09-10 Kamil Rytarowski <n54@gmx.com>
2533
2534 * netbsd-nat.h: Include <unistd.h>.
2535 * (netbsd_nat::pid_to_exec_file): Add.
2536 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2537 * (netbsd_nat::pid_to_exec_file) Add.
2538
70b67307
KR
25392020-09-10 Kamil Rytarowski <n54@gmx.com>
2540
2541 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2542
99cf6da6
KR
25432020-09-10 Kamil Rytarowski <n54@gmx.com>
2544
2545 * netbsd-nat.h: New file.
2546 * netbsd-nat.c: Likewise.
2547
1b788fb6
TT
25482020-09-09 Tom Tromey <tromey@adacore.com>
2549
2550 * ada-lang.c (remove_extra_symbols): Do not increment when
2551 removing an element
2552
03b0a45f
TT
25532020-09-08 Tom Tromey <tromey@adacore.com>
2554
2555 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2556
3cae4447
TT
25572020-09-08 Tom Tromey <tromey@adacore.com>
2558
2559 PR win32/25302:
2560 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2561 (gdb_bfd_init_data): New function.
2562 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2563
7f08fd51
TBA
25642020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2565
2566 * infrun.c (fetch_inferior_event): Use
2567 `switch_to_target_no_thread` to switch the target.
2568
3e6ff933
TT
25692020-09-06 Tom Tromey <tom@tromey.com>
2570
2571 * symfile.h (dwarf2_free_objfile): Don't declare.
2572
e56798df
AKS
25732020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2574
2575 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2576 to match 16 byte real/complex type generated by Flang compiler.
2577
8f5c6526
TV
25782020-09-03 Tom de Vries <tdevries@suse.de>
2579
2580 PR breakpoint/26546
2581 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2582 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2583
c5065df0
SM
25842020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2585
2586 * maint.c (index_digits): New function.
2587 (struct maint_print_section_data): Remove.
2588 (print_bfd_section_info): Remove print_data parameter, add arg
2589 and index_digits.
2590 (print_objfile_section_info): Likewise.
2591 (print_bfd_section_info_maybe_relocated): Likewise (plus
2592 objfile).
2593 (maintenance_info_sections): Adjust calls.
2594
02c6f3f1
TT
25952020-09-02 Tom Tromey <tromey@adacore.com>
2596
2597 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2598 for null pointers.
2599 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2600
ef5e5b0b
SM
26012020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2602
2603 * bcache.h (struct bcache) <insert>: Change type of `added` to
2604 pointer to bool.
2605 * bcache.c (bcache::insert): Likewise.
2606 * gdbtypes.c (check_types_worklist): Adjust.
2607 * psymtab.c (add_psymbol_to_bcache): Adjust.
2608
973695d6
KB
26092020-08-31 Kevin Buettner <kevinb@redhat.com>
2610
2611 * corelow.c (unordered_set): Include.
2612 (class core_target): Add field 'm_core_unavailable_mappings'.
2613 (core_target::build_file_mappings): Print only one warning
2614 per inaccessible file. Add unavailable/broken mappings
2615 to m_core_unavailable_mappings.
2616 (core_target::xfer_partial): Call...
2617 (core_target::xfer_memory_via_mappings): New method.
2618
264fc0e2
SM
26192020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2620
2621 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2622 type to bool.
2623
2de01bdb
SM
26242020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2625
2626 * dwarf2/read.c (struct field_info): Fix indentation.
2627
f3bd50f1
SM
26282020-08-31 Simon Marchi <simon.marchi@efficios.com>
2629
2630 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2631 ordering in comment.
2632 * frame.c (frame_id_eq): Fix indentation.
2633
22b9b4b0
SL
26342020-08-31 Scott Linder <scott@scottlinder.com>
2635 Simon Marchi <simon.marchi@efficios.com>
2636
2637 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2638 inline frame ids in outer frame.
2639
84154d16
SM
26402020-08-31 Simon Marchi <simon.marchi@efficios.com>
2641
2642 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2643 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2644 (outer_frame_id): Use FID_STACK_OUTER instead of
2645 FID_STACK_INVALID.
2646 (frame_id_p): Don't check for outer_frame_id.
2647
8efaf6b3
SM
26482020-08-31 Simon Marchi <simon.marchi@efficios.com>
2649
2650 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2651 regnum/frame in value. Call allocate_value_lazy.
2652 * frame.c (frame_unwind_register_value): Use
2653 val_print_not_saved.
2654
fe1fe7ea
SM
26552020-08-31 Simon Marchi <simon.marchi@efficios.com>
2656
2657 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2658
f7c7700d
PA
26592020-08-29 Pedro Alves <pedro@palves.net>
2660
2661 * progspace.c (print_program_space): Use all_inferiors. Switch to
2662 the inferior before calling target_pid_to_str.
2663
e0814aae
TT
26642020-08-28 Tom Tromey <tom@tromey.com>
2665
2666 * xcoffread.c (xcoff_end_psymtab): Update comment.
2667 * dbxread.c (dbx_end_psymtab): Update comment.
2668
626d2320
TV
26692020-08-28 Tom de Vries <tdevries@suse.de>
2670
2671 PR breakpoint/26544
2672 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2673 event_location.
2674 (create_breakpoint): Same.
2675 (base_breakpoint_decode_location): Same.
2676 (bkpt_create_sals_from_location): Same.
2677 (bkpt_decode_location): Same.
2678 (bkpt_probe_create_sals_from_location): Same.
2679 (bkpt_probe_decode_location): Same.
2680 (tracepoint_create_sals_from_location): Same.
2681 (tracepoint_decode_location): Same.
2682 (tracepoint_probe_decode_location): Same.
2683 (strace_marker_create_sals_from_location): Same.
2684 (strace_marker_decode_location): Same.
2685 (create_sals_from_location_default): Same.
2686 (decode_location_default): Same.
2687 * breakpoint.h (struct breakpoint_ops): Same.
2688 (create_breakpoint): Same.
2689 * linespec.h (decode_line_full): Same.
2690 * linespec.c (decode_line_full): Same. Throw error if
2691 result.size () == 0.
2692
df631783
PA
26932020-08-27 Pedro Alves <pedro@palves.net>
2694
2695 PR gdb/26524
2696 * breakpoint.c (until_break_fsm) <location_breakpoint,
2697 caller_breakpoint>: Delete fields.
2698 <breakpoints>: New field.
2699 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2700 two individual breakpoints.
2701 (until_break_fsm::should_stop): Loop over breakpoints in the
2702 breakpoint vector.
2703 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2704 vector.
2705 (until_break_command): Handle location expanding into multiple
2706 sals.
2707
b2b38aa4
PA
27082020-08-27 Pedro Alves <pedro@palves.net>
2709
2710 PR gdb/26523
2711 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2712 bp_until breakpoints user-specified locations. Update intro
2713 comment.
2714
b886559f
SM
27152020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2716
2717 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2718 gdb_bfd_sections): New.
2719 * maint.c (print_bfd_section_info): Change param type to
2720 maint_print_section_data.
2721 (print_objfile_section_info): Likewise.
2722 (print_bfd_section_info_maybe_relocated): Likewise.
2723 (maintenance_info_sections): Use gdb_bfd_sections.
2724
4c6e63bf
SV
27252020-08-25 Shahab Vahedi <shahab@synopsys.com>
2726
2727 * MAINTAINERS: Add ARC target and maintainer.
2728
8d7f0635
AK
27292020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2730
2731 * configure.tgt: ARC support for GNU/Linux.
2732 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2733 * arc-linux-tdep.c: New file.
2734 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2735 * arc-tdep.c (arc_write_pc): Use it.
2736
fdd8731b
SV
27372020-08-25 Shahab Vahedi <shahab@synopsys.com>
2738
2739 * arc-tdep.c (arc_check_for_hardware_loop): New.
2740 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2741
22459524
SV
27422020-08-25 Shahab Vahedi <shahab@synopsys.com>
2743
2744 * arc-tdep.h: Include "gdbarch.h".
2745
995d3a19
SV
27462020-08-25 Shahab Vahedi <shahab@synopsys.com>
2747
2748 * arch/arc.h
2749 (arc_gdbarch_features): New class to stir the selection of target XML.
2750 (arc_create_target_description): Use FEATURES to choose XML target.
2751 (arc_lookup_target_description): Use arc_create_target_description
2752 to create _new_ target descriptions or return the already created
2753 ones if the FEATURES is the same.
2754 * arch/arc.c: Implementation of prototypes described above.
2755 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2756 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2757 * arc-tdep.c (*_feature_name): Make feature names consistent.
2758 (arc_register_feature): A new struct to hold information about
2759 registers of a particular target/feature.
2760 (arc_check_tdesc_feature): Check if XML provides registers in
2761 compliance with ARC_REGISTER_FEATURE structs.
2762 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2763 (determine_*_reg_feature_set): Which feature name to look for.
2764 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2765 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2766 to expected ISA enums to be used in arc_gdbarch_features structs.
2767 * features/Makefile (FEATURE_XMLFILES): Add new files.
2768 * gdb/features/arc/v1-aux.c: New file.
2769 * gdb/features/arc/v1-aux.xml: Likewise.
2770 * gdb/features/arc/v1-core.c: Likewise.
2771 * gdb/features/arc/v1-core.xml: Likewise.
2772 * gdb/features/arc/v2-aux.c: Likewise.
2773 * gdb/features/arc/v2-aux.xml: Likewise.
2774 * gdb/features/arc/v2-core.c: Likewise.
2775 * gdb/features/arc/v2-core.xml: Likewise.
2776 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2777
3945d2d7
GM
27782020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2779 Andrew Burgess <andrew.burgess@embecosm.com>
2780
2781 PR m2/26372
fc5d6901 2782 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2783 an assert. Remove single element array indexing pattern as the
2784 MULTI_SUBSCRIPT support will handle this case too.
2785
2677f2d3
SM
27862020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2787
2788 * value.h (valprint_check_validity): Move declaration from
2789 here...
2790 * valprint.h (valprint_check_validity): ... to here.
2791
c426fddb
SM
27922020-08-24 Simon Marchi <simon.marchi@efficios.com>
2793
2794 * debug.h: New file.
2795 * debug.c (debug_prefixed_vprintf): New function.
2796 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2797 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2798
1eb8556f
SM
27992020-08-24 Simon Marchi <simon.marchi@efficios.com>
2800
2801 * infrun.h (infrun_debug_printf_1): New function declaration.
2802 (infrun_debug_printf): New macro.
2803 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2804 throughout.
2805 (infrun_debug_printf): New function.
2806 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2807 (handle_jit_event): Likewise.
2808
b8fff44e
MW
28092020-08-21 Mark Wielaard <mark@klomp.org>
2810
2811 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2812
d19c3068
SM
28132020-08-22 Simon Marchi <simon.marchi@efficios.com>
2814
2815 * frame.c (enum class frame_id_status): New.
2816 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2817 (fprintf_frame): Update.
2818 (compute_frame_id): Set frame id status to "computing" on entry.
2819 Set it back to "not_computed" on failure and to "computed" on
2820 success.
2821 (get_frame_id): Assert the frame id is not being computed.
2822 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2823 (create_new_frame): Likewise.
2824 (frame_cleanup_after_sniffer): Update assert.
2825
b70e516e
SM
28262020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2827
2828 * regcache.c (pid_ptid_regcache_map): New type.
2829 (target_ptid_regcache_map): Remove.
2830 (target_pid_ptid_regcache_map): New type.
2831 (regcaches): Change type to target_pid_ptid_regcache_map.
2832 (get_thread_arch_aspace_regcache): Update.
2833 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2834 case.
2835 (regcaches_size): Update.
2836 (regcache_count): Update.
2837 (registers_changed_ptid_target_pid_test): New.
2838 (_initialize_regcache): Register new test.
2839
cdd9148a
SM
28402020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2841
2842 * regcache.c (regcache_count): New.
2843 (struct regcache_test_data): New.
2844 (regcache_test_data_up): New.
2845 (populate_regcaches_for_test): New.
2846 (regcaches_test): Remove.
2847 (get_thread_arch_aspace_regcache_test): New.
2848 (registers_changed_ptid_all_test): New.
2849 (registers_changed_ptid_target_test): New.
2850 (registers_changed_ptid_target_ptid_test): New.
2851 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2852 (_initialize_regcache): Register new tests.
2853
dd125343
SM
28542020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2855
2856 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2857 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2858 gdbarch and aspace parameter. Use current inferior's aspace.
2859 Validate regcache's arch value.
2860 (regcaches_test): Update.
2861
3ee93972
SM
28622020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2863
2864 * regcache.c (regcaches_test): Call registers_changed.
2865
33bf4c5c
TBA
28662020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2867
2868 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2869
c2fd7fae
AKS
28702020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2871
2872 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2873 to find the end of prologue for flang compiled binaries.
2874 * arm-tdep.c (arm_skip_prologue): Likewise.
2875 * i386-tdep.c (i386_skip_prologue): Likewise.
2876 * producer.c (producer_is_llvm): New function.
2877 (producer_parsing_tests): Added new tests for clang/flang.
2878 * producer.h (producer_is_llvm): New declaration.
2879
9327494e
SM
28802020-08-18 Simon Marchi <simon.marchi@efficios.com>
2881
2882 * linux-nat.c (linux_nat_debug_printf): New function.
2883 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2884
d138725a
AM
28852020-08-18 Aaron Merey <amerey@redhat.com>
2886
2887 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2888 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2889 (CLIBS): Add DEBUGINFOD_LIBS.
2890
f9b11e6b
ST
28912020-08-17 Sergei Trofimovich <siarheit@google.com>
2892
2893 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2894 'gdbarch_num_regs'.
2895
3ae7ab99
TT
28962020-08-17 Tom Tromey <tromey@adacore.com>
2897
2898 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2899 ada_get_decoded_value returns NULL.
2900
b017825f
TT
29012020-08-17 Tom Tromey <tromey@adacore.com>
2902
2903 * python/py-inferior.c (infpy_search_memory): Use
2904 gdb_py_object_from_ulongest.
2905 * python/py-infevents.c (create_inferior_call_event_object)
2906 (create_memory_changed_event_object): Use
2907 gdb_py_object_from_ulongest.
2908 * python/py-linetable.c (ltpy_entry_get_pc): Use
2909 gdb_py_object_from_ulongest.
2910
7635cf79
SM
29112020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2912
2913 * loc.c (class symbol_needs_eval_context): Fix indentation.
2914
f54be24b
SM
29152020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2916
2917 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2918 bool.
2919
53d5a2a5
TV
29202020-08-17 Tom de Vries <tdevries@suse.de>
2921
2922 PR gdb/26393
2923 * gdbtypes.c (dump_dynamic_prop): New function.
2924 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2925
547ce8f0
TV
29262020-08-15 Tom de Vries <tdevries@suse.de>
2927
2928 PR backtrace/26390
2929 * stack.c (print_frame_args): Temporarily set the selected
2930 frame to FRAME while printing the frame's arguments.
2931
6ea815e7
PFC
29322020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2933
2934 PR breakpoints/26385
2935 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2936 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2937
6e562fa3
PFC
29382020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2939
2940 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2941 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2942 and >= to check return value instead of == -1 and != -1.
2943
d369b608
SM
29442020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2945
2946 * utils.h (class gdb_argv) <as_array_view>: New method.
2947 * utils.c (gdb_argv_as_array_view_test): New.
2948 (_initialize_utils): Register selftest.
2949 * maint.c (maintenance_selftest): Use the new method.
2950
b31488a3
KR
29512020-08-13 Kamil Rytarowski <n54@gmx.com>
2952
2953 * target.h (supports_dumpcore, dumpcore): New
2954 function declarations.
2955 * target.c (supports_dumpcore, dumpcore): New
2956 functions.
2957 * target-delegates.c: Rebuild.
2958 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2959 and target_dumpcore ().
2960
002a3166
AM
29612020-08-13 Aaron Merey <amerey@redhat.com>
2962
2963 * debuginfod-support.c: Replace global variables with user_data.
2964
ece5bc8a
SM
29652020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2966
2967 * maint.c (maintenance_selftest): Split args and pass array_view
2968 to run_tests.
2969
6d8a0a5e
LM
29702020-08-12 Luis Machado <luis.machado@linaro.org>
2971
2972 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2973 type's length.
2974 Use %s and pulongest to print the length.
2975
7cf663a9
PA
29762020-08-12 Pedro Alves <palves@redhat.com>
2977
2978 * NEWS: Move "Multi-target debugging support" item to the
2979 "Changes since GDB 9" section.
2980
27c7b875
PA
29812020-08-12 Pedro Alves <palves@redhat.com>
2982
2983 PR gdb/26336
2984 * progspace.c (program_space::remove_objfile): Invalidate the
2985 frame cache.
2986
1796a2a1
TV
29872020-08-11 Tom de Vries <tdevries@suse.de>
2988
2989 * MAINTAINERS: Mark ms1 as deleted.
2990
f8e3fe0d
LM
29912020-08-10 Luis Machado <luis.machado@linaro.org>
2992
2993 PR gdb/26310
2994
2995 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2996 act accordingly.
2997 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2998 movz/str/stur/stp skipping behavior.
2999
cc308722
LM
30002020-08-10 Luis Machado <luis.machado@linaro.org>
3001
3002 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3003 struct user_sve_header instead of struct sve_context.
3004
041d9819
SM
30052020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3006
3007 * read.h (dwarf2_fetch_die_loc_sect_off,
3008 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3009 `void *` parameter with function_view.
3010 * read.c (dwarf2_fetch_die_loc_sect_off,
3011 dwarf2_fetch_die_loc_cu_off): Likewise.
3012 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3013 (per_cu_dwarf_call): Adjust.
3014 (get_frame_address_in_block_wrapper): Remove.
3015 (indirect_synthetic_pointer): Adjust.
3016 (get_ax_pc): Remove.
3017 (dwarf2_compile_expr_to_ax): Adjust.
3018
38f8aa06
TV
30192020-08-08 Tom de Vries <tdevries@suse.de>
3020
3021 PR build/26344
3022 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3023 constructor.
3024 * regcache.c (get_thread_arch_aspace_regcache): Same.
3025
a52b3ae2
TT
30262020-08-07 Tom Tromey <tromey@adacore.com>
3027
3028 * ravenscar-thread.c
3029 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3030 New method.
3031 (ravenscar_thread_target::wait): Check
3032 runtime_initialized.
3033 (ravenscar_thread_target::prepare_to_store)
3034 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3035 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3036 (ravenscar_thread_target::stopped_by_watchpoint)
3037 (ravenscar_thread_target::stopped_data_address)
3038 (ravenscar_thread_target::core_of_thread): Use
3039 scoped_restore_current_thread and
3040 set_base_thread_from_ravenscar_task.
3041
0e29517d
TT
30422020-08-07 Tom Tromey <tromey@adacore.com>
3043
3044 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3045
592f9bd7
TT
30462020-08-07 Tom Tromey <tromey@adacore.com>
3047
3048 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3049 update_inferior_ptid before update_thread_list.
3050 (temporarily_change_regcache_ptid): New class.
3051 (ravenscar_thread_target::fetch_registers)
3052 (ravenscar_thread_target::store_registers)
3053 (ravenscar_thread_target::prepare_to_store): Use base thread when
3054 forwarding operation.
3055
39e2018a
TT
30562020-08-07 Tom Tromey <tromey@adacore.com>
3057
3058 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3059 "is_pid" case.
3060
2080266b
TT
30612020-08-07 Tom Tromey <tromey@adacore.com>
3062
3063 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3064 New methods.
3065 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3066 first.
3067 (ravenscar_thread_target::add_thread): Rename from
3068 ravenscar_add_thread.
3069 (ravenscar_thread_target::update_thread_list): Use a lambda.
3070 (ravenscar_thread_target::xfer_partial): New method.
3071
78c02f21
TT
30722020-08-07 Tom Tromey <tromey@adacore.com>
3073
3074 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3075 gdb::function_view.
3076 (iterate_over_live_ada_tasks): Change type of argument.
3077 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3078 of argument.
3079
d5d833af
TT
30802020-08-07 Tom Tromey <tromey@adacore.com>
3081
3082 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3083 Remove.
3084 (ravenscar_thread_target::extra_thread_info): Remove.
3085 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3086 defer to target beneath for non-Ravenscar threads.
3087
a8ac85bb
TT
30882020-08-07 Tom Tromey <tromey@adacore.com>
3089
3090 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3091 get_base_thread_from_ravenscar_task>: Now methods.
3092 <m_cpu_map>: New member.
3093 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3094 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3095 (ravenscar_thread_target::task_is_currently_active): Update.
3096 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3097 Now a method.
3098 (ravenscar_thread_target::add_active_thread): Put initial thread
3099 into the m_cpu_map.
3100
550ab58d
TT
31012020-08-07 Tom Tromey <tromey@adacore.com>
3102
3103 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3104 event_ptid.
3105
e9546579
TT
31062020-08-07 Tom Tromey <tromey@adacore.com>
3107
3108 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3109 runtime_initialized.
3110
3d4470e5
TT
31112020-08-07 Tom Tromey <tromey@adacore.com>
3112
3113 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3114 add_active_thread.
3115 (ravenscar_thread_target::add_active_thread): Now public.
3116 (ravenscar_inferior_created): Call add_active_thread after pushing
3117 the target.
3118
888bdb2b
SM
31192020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3120
3121 * regcache.c (ptid_regcache_map): New type.
3122 (target_ptid_regcache_map): New type.
3123 (regcaches): Change type to target_ptid_regcache_map.
3124 (get_thread_arch_aspace_regcache): Update to regcaches' new
3125 type.
3126 (regcache_thread_ptid_changed): Likewise.
3127 (registers_changed_ptid): Likewise.
3128 (regcaches_size): Likewise.
3129 (regcaches_test): Update.
3130 (regcache_thread_ptid_changed): Update.
3131 * regcache.h (regcache_up): New type.
3132 * gdbsupport/ptid.h (hash_ptid): New struct.
3133
b161a60d
SM
31342020-08-07 Simon Marchi <simon.marchi@efficios.com>
3135
3136 * observable.h (thread_ptid_changed): Add parameter
3137 `process_stratum_target *`.
3138 * infrun.c (infrun_thread_ptid_changed): Add parameter
3139 `process_stratum_target *` and use it.
3140 (selftests): New namespace.
3141 (infrun_thread_ptid_changed): New function.
3142 (_initialize_infrun): Register selftest.
3143 * regcache.c (regcache_thread_ptid_changed): Add parameter
3144 `process_stratum_target *` and use it.
3145 (regcache_thread_ptid_changed): New function.
3146 (_initialize_regcache): Register selftest.
3147 * thread.c (thread_change_ptid): Pass target to
3148 thread_ptid_changed observable.
3149
d2854d8d
CT
31502020-08-06 Caroline Tice <cmtice@google.com>
3151
fe4c3d43
SM
3152 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3153 (struct dwp_sections): Update field comments. Add loclists and
3154 rnglists fields.
3155 (struct virtual_v2_dwo_sections): Rename struct to
3156 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3157 size & offset fields for loclists and rnglists.
3158 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3159 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3160 skipping dummy type units.
3161 (create_dwp_hash_table): Update the large comment above the function to
3162 discuss Version 5 DWP files as well, with references. Update all the
3163 version checks in the function to check for version 5 as well. Add new
3164 section at the end to create dwp hash table for version 5.
3165 (create_dwp_v2_section): Rename function to
3166 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3167 Add V5 to error message text.
3168 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3169 into calls to create_dwp_v2_or_v5_section.
3170 (create_dwo_unit_in_dwp_v5): New function.
3171 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3172 check for version2; add else clause to handle version 5.
3173 (open_and_init_dwo_file): Add code to check dwarf version & only call
3174 create_debug_types_hash_table (with sections.types) if version is not 5;
3175 else call create_debug_type_hash_table, with sections.info.
3176 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3177 version 5.
3178 (dwarf2_locate_v5_dwp_sections): New function.
3179 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3180 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3181
159ed7d9
SM
31822020-08-06 Simon Marchi <simon.marchi@efficios.com>
3183
3184 * regcache.h (class regcache): Remove friend
3185 registers_changed_ptid.
3186 <regcache_thread_ptid_changed>: Remove.
3187 <regcaches>: Remove.
3188 * regcache.c (regcache::regcaches): Rename to...
3189 (regcaches): ... this. Make static.
3190 (get_thread_arch_aspace_regcache): Update.
3191 (regcache::regcache_thread_ptid_changed): Rename to...
3192 (regcache_thread_ptid_changed): ... this. Update.
3193 (class regcache_access): Remove.
3194 (regcaches_test): Update.
3195 (_initialize_regcache): Update.
3196 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3197 <forward_list>.
3198
174981ae
SM
31992020-08-06 Simon Marchi <simon.marchi@efficios.com>
3200
3201 * regcache.h (class regcache) <current_regcache>: Rename to...
3202 <regcaches>: ... this. Move doc here.
3203 * regcache.c (regcache::current_regcache) Rename to...
3204 (regcache::regcaches): ... this. Move doc to header.
3205 (get_thread_arch_aspace_regcache): Update.
3206 (regcache::regcache_thread_ptid_changed): Update.
3207 (registers_changed_ptid): Update.
3208 (class regcache_access) <current_regcache_size>: Rename to...
3209 <regcaches_size>: ... this.
3210 (current_regcache_test): Rename to...
3211 (regcaches_test): ... this.
3212 (_initialize_regcache): Update.
3213
ed908db6
VC
32142020-08-06 Victor Collod <vcollod@nvidia.com>
3215
3216 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3217
b5582ab7
KB
32182020-08-05 Kevin Buettner <kevinb@redhat.com>
3219
3220 * corelow.c (core_target::build_file_mappings): Don't output
3221 null pathname in warning.
3222
ea946b86
SM
32232020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3224
3225 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3226 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3227 gdb.dwarf2/dw2-single-line-discriminators.exp,
3228 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3229
57d02173
TT
32302020-08-05 Tom Tromey <tromey@adacore.com>
3231
3232 PR rust/26197:
3233 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3234 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3235 Fix off-by-one and type size errors in ordinary case.
3236
5555c86d
TV
32372020-08-05 Tom de Vries <tdevries@suse.de>
3238
3239 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3240 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3241
97916bfe
SM
32422020-08-04 Simon Marchi <simon.marchi@efficios.com>
3243
3244 * frame.h (frame_id_p): Return bool.
3245 (frame_id_artificial_p): Return bool.
3246 (frame_id_eq): Return bool.
3247 (has_stack_frames): Return bool.
3248 (get_selected_frame): Fix typo in comment.
3249 (get_frame_pc_if_available): Return bool.
3250 (get_frame_address_in_block_if_available): Return bool.
3251 (get_frame_func_if_available): Return bool.
3252 (read_frame_register_unsigned): Return bool.
3253 (get_frame_register_bytes): Return bool.
3254 (safe_frame_unwind_memory): Return bool.
3255 (deprecated_frame_register_read): Return bool.
3256 (frame_unwinder_is): Return bool.
3257 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3258 bool.
3259 <this_id::p>: Likewise.
3260 <prev_p>: Likewise.
3261 (frame_stash_add): Return bool.
3262 (get_frame_id): Use bool.
3263 (frame_id_build_special) Use bool.
3264 (frame_id_build_unavailable_stack): Use bool.
3265 (frame_id_build): Use bool.
3266 (frame_id_p): Return bool, use true/false instead of 1/0.
3267 (frame_id_artificial_p): Likewise.
3268 (frame_id_eq): Likewise.
3269 (frame_id_inner): Likewise.
3270 (get_frame_func_if_available): Likewise.
3271 (read_frame_register_unsigned): Likewise.
3272 (deprecated_frame_register_read): Likewise.
3273 (get_frame_register_bytes): Likewise.
3274 (has_stack_frames): Likewise.
3275 (inside_main_func): Likewise.
3276 (inside_entry_func): Likewise.
3277 (get_frame_pc_if_available): Likewise.
3278 (get_frame_address_in_block_if_available): Likewise.
3279 (frame_unwinder_is): Likewise.
3280 (safe_frame_unwind_memory): Likewise.
3281 (frame_unwind_arch): Likewise.
3282
fedfee88
SM
32832020-08-04 Simon Marchi <simon.marchi@efficios.com>
3284
3285 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3286 type to cached_copy_status.
3287 (fprintf_frame): Adjust.
3288 (get_frame_func_if_available): Adjust.
3289 (frame_cleanup_after_sniffer): Adjust.
3290
6cfa9b59
MW
32912020-08-04 Mark Wielaard <mark@klomp.org>
3292
3293 * MAINTAINERS (Write After Approval): Update email address.
3294
66d6346b
SM
32952020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3296
3297 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3298 dynamic_prop::const_val.
3299
8a6d5e35
SM
33002020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3301
3302 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3303 dynamic_prop::kind.
3304
51d6067d
SM
33052020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3306
3307 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3308
b26e2ae7
JM
33092020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3310
3311 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3312
39791af2
JM
33132020-08-04 Weimin Pan <weimin.pan@oracle.com>
3314 Jose E. Marchesi <jose.marchesi@oracle.com>
3315
3316 * configure.tgt: Add entry for bpf-*-*.
3317 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3318 (ALLDEPFILES): Add bpf-tdep.c.
3319 * bpf-tdep.c: New file.
3320 * MAINTAINERS: Add bpf target and maintainer.
3321 * NEWS: Mention the support for the new target.
3322
521894aa
TV
33232020-08-04 Tom de Vries <tdevries@suse.de>
3324
3325 PR symtab/23270
3326 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3327 Error.
3328
5d6356e9
JB
33292020-08-03 John Baldwin <jhb@FreeBSD.org>
3330
3331 * syscalls/freebsd.xml: Regenerate.
3332
0cf82b81
JB
33332020-08-03 John Baldwin <jhb@FreeBSD.org>
3334
3335 * syscalls/update-freebsd.sh: Fix usage and year range.
3336
8f34b746
TV
33372020-08-03 Tom de Vries <tdevries@suse.de>
3338
3339 PR symtab/26333
3340 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3341 DW_LNE_lo_user/DW_LNE_hi_user range.
3342
5e500d33
SM
33432020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3344
3345 PR ada/26318
3346 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3347 kind.
3348
78319c15
TBA
33492020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3350
3351 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3352
4c55e970
TBA
33532020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3354
3355 * breakpoint.c (set_breakpoint_condition): Update the condition
3356 expressions after checking that the input condition string parses
3357 successfully and does not contain junk at the end.
3358
1e620590
TBA
33592020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3360
3361 * breakpoint.c (set_breakpoint_condition): Update the
3362 condition string after parsing the new condition successfully.
3363
c8693053
RO
33642020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3365
3366 * proc-api.c (_STRUCTURED_PROC): Don't define.
3367 * proc-events.c: Likewise.
3368 * proc-flags.c: Likewise.
3369 * proc-why.c: Likewise.
3370 * procfs.c: Likewise.
3371
3372 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3373 * configure, config.in: Regenerate.
3374
5a99adb8
TV
33752020-07-30 Tom de Vries <tdevries@suse.de>
3376
3377 PR build/26320
3378 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3379 m_red/m_green/m_blue in a union.
3380
8ba83e91
TV
33812020-07-29 Tom de Vries <tdevries@suse.de>
3382
3383 PR tdep/26280
3384 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3385
f75a0693
AB
33862020-07-28 Tom Tromey <tromey@adacore.com>
3387
3388 PR symtab/26270:
3389 * symtab.h (find_pc_partial_function_sym): Declare.
3390 * cli/cli-cmds.c (disassemble_command): Use
3391 find_pc_partial_function_sym. Check asm_demangle.
3392 * blockframe.c (cache_pc_function_sym): New global.
3393 (cache_pc_function_name): Remove.
3394 (clear_pc_function_cache): Update.
3395 (find_pc_partial_function_sym): New function, from
3396 find_pc_partial_function.
3397 (find_pc_partial_function): Rewrite using
3398 find_pc_partial_function_sym.
3399
16f3242c
TT
34002020-07-28 Tom Tromey <tromey@adacore.com>
3401
3402 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3403 help. Add usage.
3404
4888741a
TT
34052020-07-28 Tom Tromey <tromey@adacore.com>
3406
3407 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3408 <DW_OP_GNU_variable_value>: Cast to address type.
3409
4d46f402
KR
34102020-07-28 Kamil Rytarowski <n54@gmx.com>
3411
3412 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3413 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3414 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3415 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3416 (nbsd_get_siginfo_type): New.
3417 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3418 (_initialize_nbsd_tdep): New.
3419
d70f978b
L
34202020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3421
3422 PR binutils/26301
3423 * configure: Regenerated.
3424
377170fa
L
34252020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3426
3427 PR binutils/26301
3428 * configure: Regenerated.
3429
43d5901d
AB
34302020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3431
3432 * python/py-frame.c: Remove 'user-regs.h' include.
3433 (frapy_read_register): Rewrite to make use of
3434 gdbpy_parse_register_id.
3435 * python/py-registers.c (gdbpy_parse_register_id): New function,
3436 moved here from python/py-unwind.c. Updated the return type, and
3437 also accepts register descriptor objects.
3438 * python/py-unwind.c: Remove 'user-regs.h' include.
3439 (pyuw_parse_register_id): Moved to python/py-registers.c.
3440 (unwind_infopy_add_saved_register): Update to use
3441 gdbpy_parse_register_id.
3442 (pending_framepy_read_register): Likewise.
3443 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3444
14fa8fb3
AB
34452020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3446
3447 * python/py-registers.c: Add 'user-regs.h' include.
3448 (register_descriptor_iter_find): New function.
3449 (register_descriptor_iterator_object_methods): New static global
3450 methods array.
3451 (register_descriptor_iterator_object_type): Add pointer to methods
3452 array.
3453
ddce1758
JB
34542020-07-27 John Baldwin <jhb@FreeBSD.org>
3455
3456 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3457 for all architectures on FreeBSD 11.3 and later.
3458
a4089f52
TT
34592020-07-27 Tom Tromey <tromey@adacore.com>
3460
3461 * gcore.h (load_corefile): Don't declare.
3462
95420d30
TV
34632020-07-27 Tom de Vries <tdevries@suse.de>
3464
3465 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3466 * config.in: Regenerate.
3467 * configure: Regenerate.
3468
05a6b8c2
EZ
34692020-07-26 Eli Zaretskii <eliz@gnu.org>
3470
3471 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3472 ws2tcpip.h. When checking whether socklen_t type is defined, use
3473 ws2tcpip.h if it is available and sys/socket.h isn't.
3474 * configure: Regenerate.
3475 * config.in: Regenerate.
3476
e79eb02f
AB
34772020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3478
3479 PR fortran/23051
3480 PR fortran/26139
3481 * valops.c (value_ind): Pass address to
3482 readjust_indirect_value_type.
3483 * value.c (readjust_indirect_value_type): Make parameter
3484 non-const, and add extra address parameter. Resolve original type
3485 before using it.
3486 * value.h (readjust_indirect_value_type): Update function
3487 signature and comment.
3488
876518dd
TV
34892020-07-25 Tom de Vries <tdevries@suse.de>
3490
3491 PR symtab/26243
3492 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3493 entries.
3494
f6720b1c
AM
34952020-07-24 Aaron Merey <amerey@redhat.com>
3496
3497 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3498 * configure: Rebuild.
3499
513487e1
KB
35002020-07-23 Kevin Buettner <kevinb@redhat.com>
3501
3502 PR corefiles/26294
3503 * corelow.c (_initialize_corelow): Add period to help text
3504 for "maintenance print core-file-backed-mappings".
3505
e7bc9db8
PA
35062020-07-23 Pedro Alves <pedro@palves.net>
3507
3508 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3509 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3510 meanwhile.
3511 * frame.c (frame_cache_generation, get_frame_cache_generation):
3512 New.
3513 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3514 (get_prev_frame_if_no_cycle): On exception, don't touch
3515 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3516 * frame.h (get_frame_cache_generation): Declare.
3517
90fcc466
TV
35182020-07-23 Tom de Vries <tdevries@suse.de>
3519
3520 PR tui/26282
3521 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3522 New default constructor.
3523
78344df7
AB
35242020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3525
3526 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3527 exclude non-statement entries.
3528
b089853a
KB
35292020-07-22 Kevin Buettner <kevinb@redhat.com>
3530
3531 * NEWS (New commands): Mention new command
3532 "maintenance print core-file-backed-mappings".
3533
09c2f5d4
KB
35342020-07-22 Kevin Buettner <kevinb@redhat.com>
3535
3536 * corelow.c (gdbcmd.h): Include.
3537 (core_target::info_proc_mappings): New method.
3538 (get_current_core_target): New function.
3539 (maintenance_print_core_file_backed_mappings): New function.
3540 (_initialize_corelow): Add core-file-backed-mappings to
3541 "maint print" commands.
3542
9c5ec5c2 35432020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3544
9c5ec5c2
KB
3545 * linux-tdep.c (dump_note_entry_p): New function.
3546 (linux_dump_mapping_p_ftype): New typedef.
3547 (linux_find_memory_regions_full): Add new parameter,
3548 should_dump_mapping_p.
3549 (linux_find_memory_regions): Adjust call to
3550 linux_find_memory_regions_full.
3551 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3552 call to linux_find_memory_regions_full.
3553
db082f59
KB
35542020-07-22 Kevin Buettner <kevinb@redhat.com>
3555
3556 * corelow.c (solist.h, unordered_map): Include.
3557 (class core_target): Add field m_core_file_mappings and
3558 method build_file_mappings.
3559 (core_target::core_target): Call build_file_mappings.
3560 (core_target::~core_target): Free memory associated with
3561 m_core_file_mappings.
3562 (core_target::build_file_mappings): New method.
3563 (core_target::xfer_partial): Use m_core_file_mappings
3564 for memory transfers.
3565 * linux-tdep.c (linux_read_core_file_mappings): New
3566 function.
3567 (linux_core_info_proc_mappings): Rewrite to use
3568 linux_read_core_file_mappings.
3569 (linux_init_abi): Register linux_read_core_file_mappings.
3570
7e183d27
KB
35712020-07-22 Kevin Buettner <kevinb@redhat.com>
3572
3573 * arch-utils.c (default_read_core_file_mappings): New function.
3574 * arch-utils.c (default_read_core_file_mappings): Declare.
3575 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3576 * gdbarch.h, gdbarch.c: Regenerate.
3577
2735d421
KB
35782020-07-22 Kevin Buettner <kevinb@redhat.com>
3579
3580 PR corefiles/25631
3581 * corelow.c (core_target:xfer_partial): Revise
3582 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3583 case after first checking the stratum beneath the core
3584 target.
3585 (has_all_memory): Return true.
3586 * target.c (raw_memory_xfer_partial): Revise comment
3587 regarding use of has_all_memory.
3588
e56cb451
KB
35892020-07-22 Kevin Buettner <kevinb@redhat.com>
3590
3591 * exec.h (section_table_xfer_memory): Revise declaration,
3592 replacing section name parameter with an optional callback
3593 predicate.
3594 * exec.c (section_table_xfer_memory): Likewise.
3595 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3596 of section_table_xfer_memory.
3597
32fa152e
TT
35982020-07-22 Tom Tromey <tromey@adacore.com>
3599
3600 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3601 lookup_symbol_search_name.
3602
a67a1c41
AB
36032020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3604
3605 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3606 redundant local variable.
3607 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3608 reference, not pointer, update code accordingly.
3609
a7b4ff4f
SM
36102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3611 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3612
3613 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3614 * jit.c (jit_breakpoint_re_set_internal): Use the
3615 `skip_jit_symbol_lookup` field.
3616
2340e834
SM
36172020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3618 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3619
3620 * jit.c (jit_read_descriptor): Define the descriptor address once,
3621 use twice.
3622 (jit_breakpoint_deleted): Move the declaration of the loop variable
3623 `iter` into the loop header.
3624 (jit_breakpoint_re_set_internal): Move the declaration of the local
3625 variable `objf_data` to the first point of definition.
3626 (jit_event_handler): Move the declaration of local variables
3627 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3628 Rename `objf` to `jited`.
3629
c1072906
SM
36302020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3631
3632 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3633 Remove.
3634 * jit.c (get_jiter_objfile_data): Update.
3635
c8474dc3
TBA
36362020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3637 Simon Marchi <simon.marchi@polymtl.ca>
3638
3639 * jit.c (struct jit_program_space_data): Remove.
3640 (jit_program_space_key): Remove.
3641 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3642 stuff.
3643 (get_jit_program_space_data): Remove.
3644 (jit_breakpoint_deleted): Iterate on all of the program space's
3645 objfiles.
3646 (jit_inferior_init): Likewise.
3647 (jit_breakpoint_re_set_internal): Likewise. Also change return
3648 type to void.
3649 (jit_breakpoint_re_set): Pass current_program_space to
3650 jit_breakpoint_re_set_internal.
3651
77208eb7
SM
36522020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3653
3654 * jit.h (struct jiter_objfile_data) <cached_code_address,
3655 jit_breakpoint>: Move to here from ...
3656 * jit.c (jit_program_space_data): ... here.
3657 (jiter_objfile_data::~jiter_objfile_data): Update.
3658 (jit_breakpoint_deleted): Update.
3659 (jit_breakpoint_re_set_internal): Update.
3660
8c1c720f
SM
36612020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3662
3663 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3664 checks.
3665 (jit_read_descriptor): Remove NULL check.
3666 (jit_event_handler): Add an assertion.
3667
0e74a041
SM
36682020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3669
3670 * jit.h (struct jit_objfile_data): Split into...
3671 (struct jiter_objfile_data): ... this ...
3672 (struct jited_objfile_data): ... and this.
3673 * objfiles.h (struct objfile) <jit_data>: Remove.
3674 <jiter_data, jited_data>: New fields.
3675 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3676 (jiter_objfile_data::~jiter_objfile_data): ... this.
3677 (get_jit_objfile_data): Rename to ...
3678 (get_jiter_objfile_data): ... this.
3679 (add_objfile_entry): Update.
3680 (jit_read_descriptor): Use get_jiter_objfile_data.
3681 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3682 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3683 (jit_inferior_exit_hook): Use objfile's jited_data field.
3684
238b5c9f
SM
36852020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3686
3687 * jit.h: Forward-declare `struct minimal_symbol`.
3688 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3689 constructor, destructor, and an objfile* field.
3690 * jit.c (jit_objfile_data): Remove.
3691 (struct jit_objfile_data): Migrate from here to jit.h.
3692 (jit_objfile_data::~jit_objfile_data): New destructor
3693 implementation with code moved from free_objfile_data.
3694 (free_objfile_data): Delete.
3695 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3696 (jit_find_objf_with_entry_addr): Ditto.
3697 (jit_inferior_exit_hook): Ditto.
3698 (_initialize_jit): Remove the call to
3699 register_objfile_data_with_cleanup.
3700 * objfiles.h (struct objfile) <jit_data>: New field.
3701
fe053b9e
TBA
37022020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3703
3704 * jit.h: Forward-declare `struct objfile`.
3705 (jit_event_handler): Add a second parameter, the JITer objfile.
3706 * jit.c (jit_read_descriptor): Change the signature to take the
3707 JITer objfile as an argument instead of the jit_program_space_data.
3708 (jit_inferior_init): Update the call to jit_read_descriptor.
3709 (jit_event_handler): Use the new JITer objfile argument when calling
3710 jit_read_descriptor.
3711 * breakpoint.c (handle_jit_event): Update the call to
3712 jit_event_handler to pass the JITer objfile.
3713
4cec0c66
JB
37142020-07-21 John Baldwin <jhb@FreeBSD.org>
3715
3716 * gdbarch.c: Regenerate.
3717 * gdbarch.h: Regenerate.
3718 * gdbarch.sh (handle_segmentation_fault): Remove method.
3719 * infrun.c (handle_segmentation_fault): Remove.
3720 (print_signal_received_reason): Remove call to
3721 handle_segmentation_fault.
3722
0e42f66a
JB
37232020-07-21 John Baldwin <jhb@FreeBSD.org>
3724
3725 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3726 Rename to sparc64_linux_report_signal_info and add siggnal
3727 argument.
3728 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3729 instead of sparc64_linux_handle_segmentation_fault.
3730
77bdfeb2
JB
37312020-07-21 John Baldwin <jhb@FreeBSD.org>
3732
3733 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3734 i386_linux_report_signal_info instead of
3735 i386_linux_handle_segmentation_fault.
3736 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3737 to i386_linux_report_signal_info and add siggnal argument.
3738 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3739 of i386_linux_handle_segmentation_fault.
3740 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3741 to i386_linux_report_signal_info and add siggnal argument.
3742
ad97bfc5
JB
37432020-07-21 John Baldwin <jhb@FreeBSD.org>
3744
3745 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3746 hook if present.
3747
272bb05c
JB
37482020-07-21 John Baldwin <jhb@FreeBSD.org>
3749
3750 * gdbarch.c: Regenerate.
3751 * gdbarch.h: Regenerate.
3752 * gdbarch.sh (report_signal_info): New method.
3753 * infrun.c (print_signal_received_reason): Invoke gdbarch
3754 report_signal_info hook if present.
3755
baf8791e
AB
37562020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3757
3758 * python/py-registers.c : Add 'unordered_map' include.
3759 (gdbpy_new_reggroup): Renamed to...
3760 (gdbpy_get_reggroup): ...this. Update to only create register
3761 group descriptors when needed.
3762 (gdbpy_reggroup_iter_next): Update.
3763
f7306dac
AB
37642020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3765
3766 * python/py-registers.c (gdbpy_register_object_data): New static
3767 global.
3768 (gdbpy_register_object_data_init): New function.
3769 (gdbpy_new_register_descriptor): Renamed to...
3770 (gdbpy_get_register_descriptor): ...this, and update to reuse
3771 existing register descriptors where possible.
3772 (gdbpy_register_descriptor_iter_next): Update.
3773 (gdbpy_initialize_registers): Register new gdbarch data.
3774
05c309a8
SM
37752020-07-21 Simon Marchi <simon.marchi@efficios.com>
3776
3777 * linux-nat.c (stopped_pids): Make static.
3778
d1fd641e
SM
37792020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3780
3781 PR ada/26235
3782 * gdbtypes.c (ada_discrete_type_low_bound,
3783 ada_discrete_type_high_bound): Handle undefined bounds.
3784
1de14d77
KR
37852020-07-21 Kamil Rytarowski <n54@gmx.com>
3786
3787 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3788 declaration.
3789 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3790 function.
3791
ed810cc7
JB
37922020-07-20 John Baldwin <jhb@FreeBSD.org>
3793
3794 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3795 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3796 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3797 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3798 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3799 method.
3800
ae5369e7
LC
38012020-07-20 Ludovic Courtès <ludo@gnu.org>
3802
3803 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3804 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3805 which are deprecated in Guile 3.0.
3806 * configure.ac (try_guile_versions): Add "guile-3.0".
3807 * configure (try_guile_versions): Regenerate.
3808 * NEWS: Update entry.
3809
68cf161c
LC
38102020-07-20 Ludovic Courtès <ludo@gnu.org>
3811 Doug Evans <dje@google.com>
3812
3813 PR gdb/21104
3814 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3815 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3816 USING_GUILE_BEFORE_2_2.
3817 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3818 Change type to 'scm_t_port_type *'.
3819 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3820 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3821 parameter and honor it. Update callers.
3822 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3823 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3824 functions.
3825 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3826 USING_GUILE_BEFORE_2_2.
3827 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3828 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3829 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3830 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3831 and 'SCM_PORT_TYPE'.
3832 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3833 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3834 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3835 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3836 [!USING_GUILE_BEFORE_2_2]: New functions.
3837 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3838 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3839 'gdbscm_memory_port_read'.
3840 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3841 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3842 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3843 function.
3844 (ioscm_init_memory_port): Remove.
3845 (ioscm_init_memory_port_stream): New function
3846 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3847 function.
3848 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3849 Return scm_from_uint (0).
3850 (gdbscm_set_memory_port_read_buffer_size_x)
3851 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3852 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3853 Return scm_from_uint (0).
3854 (gdbscm_set_memory_port_write_buffer_size_x)
3855 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3856 * configure.ac (try_guile_versions): Add "guile-2.2".
3857 * configure: Regenerate.
3858 * NEWS: Add entry.
3859
aee91db3
TT
38602020-07-18 Tom Tromey <tom@tromey.com>
3861
3862 * linux-nat.c (linux_multi_process): Remove.
3863 (linux_nat_target::supports_multi_process): Return true.
3864
0e267416
AB
38652020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3866
3867 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3868 (riscv_lookup_target_description): Return pointer out of
3869 unique_ptr.
3870 * target-descriptions.c (allocate_target_description): Add
3871 comment.
3872 (target_desc_deleter::operator()): Likewise.
3873 * target-descriptions.h (struct target_desc_deleter): Moved to
3874 gdbsupport/tdesc.h.
3875 (target_desc_up): Likewise.
3876
f80c8ec4
TT
38772020-07-17 Tom Tromey <tromey@adacore.com>
3878
3879 * linux-nat.c (linux_nat_target::supports_non_stop)
3880 (linux_nat_target::always_non_stop_p): Use "true".
3881 (linux_nat_target::supports_disable_randomization): Use "true" and
3882 "false".
3883
d0ce17d8
CT
38842020-07-16 Caroline Tice <cmtice@google.com>
3885
3886 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3887 (RNGLIST_HEADER_SIZE64): New constant definition.
3888 (struct dwop_section_names): Add rnglists_dwo.
3889 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3890 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3891 (struct dwo_sections): Add rnglists field.
3892 (read_attribut_reprocess): Add tag parameter.
3893 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3894 (cu_debug_rnglists_section): New function (decl & definition).
3895 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3896 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3897 die whose range is being checked; get rnglist section from
3898 cu_debug_rnglists_section, to get from either objfile or dwo file as
3899 appropriate. Add cases for DW_RLE_base_addressx,
3900 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3901 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3902 test inside if-condition and updating complaint message.
3903 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3904 dwarf2_rnglists_process.
3905 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3906 dwarf2_ranges_process.
3907 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3908 need_ranges_base and update comment appropriately. Also pass die tag
3909 to dwarf2_ranges_read.
3910 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3911 need_ranges_base and update comment appropriately. Also pass die tag
3912 to dwarf2_ranges_process.
3913 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3914 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3915 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3916 need_ranges_base and update comment appropriately. Also pass die tag
3917 to read_attribute_reprocess and dwarf2_ranges_read.
3918 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3919 and update function comment appropriately.
3920 (read_loclist_index): Call read_loclists_rnglists_header instead of
3921 read_loclist_header.
3922 (read_rnglist_index): New function.
3923 (read_attribute_reprocess): Add tag parameter. Add code for
3924 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3925 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3926
3dcc261c
AB
39272020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3928
3929 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3930 being resolved.
3931
ccb9eba6
AB
39322020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3933
3934 * arch-utils.c (show_architecture): Update formatting of messages.
3935
cf88be68
SM
39362020-07-12 Simon Marchi <simon.marchi@efficios.com>
3937
3938 * gdbtypes.h (struct type) <bounds>: Handle array and string
3939 types.
3940 * ada-lang.c (assign_aggregate): Use type::bounds on
3941 array/string type.
3942 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3943 * c-varobj.c (c_number_of_children): Likewise.
3944 (c_describe_child): Likewise.
3945 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3946 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3947 (f_type_print_base): Likewise.
3948 * f-valprint.c (f77_array_offset_tbl): Likewise.
3949 (f77_get_upperbound): Likewise.
3950 (f77_print_array_1): Likewise.
3951 * guile/scm-type.c (gdbscm_type_range): Likewise.
3952 * m2-typeprint.c (m2_array): Likewise.
3953 (m2_is_long_set_of_type): Likewise.
3954 * m2-valprint.c (get_long_set_bounds): Likewise.
3955 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3956 * python/py-type.c (typy_range): Likewise.
3957 * rust-lang.c (rust_internal_print_type): Likewise.
3958 * type-stack.c (type_stack::follow_types): Likewise.
3959 * valarith.c (value_subscripted_rvalue): Likewise.
3960 * valops.c (value_cast): Likewise.
3961
509971ae
SM
39622020-07-12 Simon Marchi <simon.marchi@efficios.com>
3963
3964 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3965 callers to use the equivalent accessor methods.
3966
107406b7
SM
39672020-07-12 Simon Marchi <simon.marchi@efficios.com>
3968
3969 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3970 (struct type) <bit_stride>: New method.
3971 (TYPE_BIT_STRIDE): Remove.
3972 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3973
bb789949
SM
39742020-07-12 Simon Marchi <simon.marchi@efficios.com>
3975
3976 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3977 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3978 callers to use the equivalent accessor methods instead.
3979
39498edb
SM
39802020-07-12 Simon Marchi <simon.marchi@efficios.com>
3981
3982 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3983 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3984 callers to use the equivalent accessor methods instead.
3985
3b606f38
SM
39862020-07-12 Simon Marchi <simon.marchi@efficios.com>
3987
3988 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3989 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3990 to use dynamic_prop::kind.
3991
064d9cb9
SM
39922020-07-12 Simon Marchi <simon.marchi@efficios.com>
3993
3994 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3995 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3996 to get the bound property's kind and check against
3997 PROP_UNDEFINED.
3998
5537ddd0
SM
39992020-07-12 Simon Marchi <simon.marchi@efficios.com>
4000
4001 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4002 all callers to use type::range_bounds followed by
4003 dynamic_prop::{low,high}.
4004
8c2e4e06
SM
40052020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4006
4007 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4008 const_val, set_const_val, baton, set_locexpr, set_loclist,
4009 set_addr_offset, variant_parts, set_variant_parts,
4010 original_type, set_original_type>: New methods.
4011 <kind>: Rename to...
4012 <m_kind>: ... this. Update all users to use the new methods
4013 instead.
4014 <data>: Rename to...
4015 <m_data>: ... this. Update all users to use the new methods
4016 instead.
4017
7c6f2712
SM
40182020-07-12 Simon Marchi <simon.marchi@efficios.com>
4019
4020 * gdbtypes.c (get_discrete_bounds): Return failure if
4021 the range type's bounds are not both defined and constant
4022 values.
4023 (get_array_bounds): Update comment. Remove undefined bound check.
4024
599088e3
SM
40252020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4026
4027 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4028 the type::bounds method directly.
4029
c4dfcb36
SM
40302020-07-12 Simon Marchi <simon.marchi@efficios.com>
4031
4032 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4033 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4034 are used to set the range type's bounds to use set_bounds.
4035
0a278aa7
PW
40362020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4037
4038 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4039
cce20f10
PA
40402020-07-10 Pedro Alves <pedro@palves.net>
4041
4042 * gdbthread.h (inferior_ref): Define.
4043 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4044 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4045 * thread.c
4046 (scoped_restore_current_thread::restore):
4047 Adjust to gdb::ref_ptr.
4048 (scoped_restore_current_thread::~scoped_restore_current_thread):
4049 Remove manual decref handling.
4050 (scoped_restore_current_thread::scoped_restore_current_thread):
4051 Adjust to use
4052 inferior_ref::new_reference/thread_info_ref::new_reference.
4053 Incref the thread before calling get_frame_id instead of after.
4054 Let TARGET_CLOSE_ERROR propagate.
4055
6d7aa592
PA
40562020-07-10 Pedro Alves <pedro@palves.net>
4057
4058 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4059 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4060 NOT_AVAILABLE_ERROR.
4061 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4062 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4063
b3e3a4c1
SM
40642020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4065 Pedro Alves <pedro@palves.net>
4066
4067 PR gdb/26199
4068 * infrun.c (threads_are_resumed_pending_p): Delete.
4069 (do_target_wait): Remove threads_are_executing and
4070 threads_are_resumed_pending_p checks from the inferior_matches
4071 lambda. Update comments.
4072
d6cc5d98
PA
40732020-07-10 Pedro Alves <pedro@palves.net>
4074
4075 PR gdb/26199
4076 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4077 executing threads.
4078
7d3badc6
PA
40792020-07-10 Pedro Alves <pedro@palves.net>
4080
4081 PR gdb/26199
4082 * infrun.c (handle_no_resumed): Handle multiple targets.
4083
42bd97a6
PA
40842020-07-10 Pedro Alves <pedro@palves.net>
4085
4086 PR gdb/26199
4087 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4088 target_is_async_p.
4089
43667cc6
PA
40902020-07-10 Pedro Alves <pedro@palves.net>
4091
4092 PR gdb/26199
4093 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4094 threads, not all threads.
4095
96118d11
PA
40962020-07-10 Pedro Alves <pedro@palves.net>
4097
4098 PR gdb/26199
4099 * remote.c (remote_target::open_1): Pass remote target pointer as
4100 data to create_async_event_handler.
4101 (remote_async_inferior_event_handler): Mark async event handler
4102 before returning if the remote target still has either pending
4103 events or unacknowledged notifications.
4104
54904d81
JB
41052020-07-10 John Baldwin <jhb@FreeBSD.org>
4106
4107 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4108 declaration.
4109 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4110 function.
4111
f37e5866
JB
41122020-07-09 John Baldwin <jhb@FreeBSD.org>
4113
4114 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4115 inferior_ptid.
4116
fc238d4a
JB
41172020-07-09 John Baldwin <jhb@FreeBSD.org>
4118
4119 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4120 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4121 AT_FREEBSD_PS_STRINGS.
4122
6e2469ff
HD
41232020-07-08 Hannes Domani <ssbssa@yahoo.de>
4124
4125 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4126 of debugfile path on Windows.
4127
d1076c41
JB
41282020-07-08 John Baldwin <jhb@FreeBSD.org>
4129
4130 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4131 argument to 'data'.
4132
15f3b077
TT
41332020-07-08 Tom Tromey <tromey@adacore.com>
4134
4135 * ada-lang.c (ada_exception_message_1): Use read_memory.
4136
9fc501fd
AB
41372020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4138
4139 PR python/22748
4140 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4141 special handling for inline frames.
4142 * findvar.c (value_of_register_lazy): Skip inline frames when
4143 creating lazy register values.
4144 * frame.c (frame_id_computed_p): Delete definition.
4145 * frame.h (frame_id_computed_p): Delete declaration.
4146
64cb3757
AB
41472020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4148
4149 * NEWS: Mention additions to Python API.
4150 * python/py-arch.c (archpy_register_groups): New function.
4151 (arch_object_methods): Add 'register_groups' method.
4152 * python/py-registers.c (reggroup_iterator_object): New struct.
4153 (reggroup_object): New struct.
4154 (gdbpy_new_reggroup): New function.
4155 (gdbpy_reggroup_to_string): New function.
4156 (gdbpy_reggroup_name): New function.
4157 (gdbpy_reggroup_iter): New function.
4158 (gdbpy_reggroup_iter_next): New function.
4159 (gdbpy_new_reggroup_iterator): New function
4160 (gdbpy_initialize_registers): Register new types.
4161 (reggroup_iterator_object_type): Define new Python type.
4162 (gdbpy_reggroup_getset): New static global.
4163 (reggroup_object_type): Define new Python type.
4164 * python/python-internal.h
4165
0f767f94
AB
41662020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4167
4168 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4169 * python/py-arch.c (archpy_registers): New function.
4170 (arch_object_methods): Add 'registers' method.
4171 * python/py-registers.c: New file.
4172 * python/python-internal.h
4173 (gdbpy_new_register_descriptor_iterator): Declare.
4174 (gdbpy_initialize_registers): Declare.
4175 * python/python.c (do_start_initialization): Call
4176 gdbpy_initialize_registers.
4177 * NEWS: Mention additions to the Python API.
4178
87dbc774
AB
41792020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4180
4181 * NEWS: Mention new Python API method.
4182 * python/py-unwind.c (pending_framepy_architecture): New function.
4183 (pending_frame_object_methods): Add architecture method.
4184
3bc98c0c
AB
41852020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4186
4187 * gdbarch.c: Regenerate.
4188 * gdbarch.h: Regenerate.
4189 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4190 (gdbarch_data): Use internal_error for the case where
4191 deprecated_set_gdbarch_data was originally needed.
4192 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4193 and use passed in obstack.
4194 (libunwind_frame_set_descr): Should no longer get back NULL from
4195 gdbarch_data.
4196 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4197 type.
4198 * user-regs.c (user_regs_init): Update parameters, and use passed
4199 in obstack.
4200 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4201 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4202
d8cc8af6
TV
42032020-07-06 Tom de Vries <tdevries@suse.de>
4204
4205 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4206 End-Of-Sequence in lte_is_less_than.
4207 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4208 "gdb: Don't reorder line table entries too much when sorting".
4209
947f7597
TV
42102020-07-06 Tom de Vries <tdevries@suse.de>
4211
4212 PR tui/26205
4213 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4214
1e7c1b22
TV
42152020-07-05 Tom de Vries <tdevries@suse.de>
4216
4217 PR build/26187
4218 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4219 std::uncaught_exceptions instead of deprecated
4220 std::uncaught_exception.
4221
a36158ec
SM
42222020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4223
4224 * macroexp.h (macro_stringify): Return
4225 gdb::unique_xmalloc_ptr<char>.
4226 * macroexp.c (macro_stringify): Likewise.
4227 * macrotab.c (fixup_definition): Update.
4228
14d960c8
SM
42292020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4230
4231 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4232 (lex_one_token): Update.
4233 * macroexp.c (struct macro_buffer) <release>: Return
4234 gdb::unique_xmalloc_ptr<char>.
4235 (macro_stringify): Update.
4236 (macro_expand): Update.
4237 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4238 * macroexp.h (macro_expand_next): Likewise.
4239
211d5b1c
SM
42402020-07-02 Simon Marchi <simon.marchi@efficios.com>
4241
4242 * macroexp.h (macro_lookup_ftype): Remove.
4243 (macro_expand, macro_expand_once, macro_expand_next): Remove
4244 lookup function parameters, add scope parameter.
4245 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4246 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4247 * macroscope.h (standard_macro_lookup): Change parameter type
4248 to macro_scope.
4249 * macroscope.c (standard_macro_lookup): Likewise.
4250 * c-exp.y (lex_one_token): Update.
4251 * macrocmd.c (macro_expand_command): Likewise.
4252 (macro_expand_once_command): Likewise.
4253
b1a35af2
SM
42542020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4255
4256 * inf-loop.c (inferior_event_handler): Remove client_data param.
4257 * inf-loop.h (inferior_event_handler): Likewise.
4258 * infcmd.c (step_1): Adjust.
4259 * infrun.c (proceed): Adjust.
4260 (fetch_inferior_event): Remove client_data param.
4261 (infrun_async_inferior_event_handler): Adjust.
4262 * infrun.h (fetch_inferior_event): Remove `void *` param.
4263 * linux-nat.c (handle_target_event): Adjust.
4264 * record-btrace.c (record_btrace_handle_async_inferior_event):
4265 Adjust.
4266 * record-full.c (record_full_async_inferior_event_handler):
4267 Adjust.
4268 * remote.c (remote_async_inferior_event_handler): Adjust.
4269
1cdf9e33
TT
42702020-07-01 Tom Tromey <tom@tromey.com>
4271
4272 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4273 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4274
32c1e210
TT
42752020-07-01 Tom Tromey <tom@tromey.com>
4276
4277 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4278 tui_gen_win_info.
4279 (tui_win_info::make_window): Merge with
4280 tui_gen_win_info::make_window.
4281 (tui_win_info::make_visible): Move from tui_gen_win_info.
4282 * tui/tui-win.c (tui_win_info::max_width): Move from
4283 tui_gen_win_info.
4284 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4285 type.
4286 <window_factory>: Likewise.
4287 * tui/tui-layout.c (tui_win_info::resize): Move from
4288 tui_gen_win_info.
4289 (make_standard_window): Change return type.
4290 (get_locator_window, tui_get_window_by_name): Likewise.
4291 (tui_layout_window::apply): Remove a cast.
4292 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4293 (struct tui_win_info): Merge with tui_gen_win_info.
4294 (struct tui_gen_win_info): Remove.
4295
a30cb6da
TT
42962020-07-01 Tom Tromey <tom@tromey.com>
4297
4298 * tui/tui-stack.h (struct tui_locator_window): Derive from
4299 tui_win_info.
4300 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4301 <can_box>: New method.
4302
1eb2161f
TT
43032020-07-01 Tom Tromey <tom@tromey.com>
4304
4305 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4306
7134f2eb
TT
43072020-07-01 Tom Tromey <tom@tromey.com>
4308
4309 * tui/tui-regs.c (tui_data_window::display_registers_from)
4310 (tui_data_window::display_registers_from)
4311 (tui_data_window::first_data_item_displayed)
4312 (tui_data_window::delete_data_content_windows): Update.
4313 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4314 Remove.
4315 (tui_data_window::check_register_values): Update.
4316 (tui_data_item_window::rerender): Add parameters. Update.
4317 (tui_data_item_window::refresh_window): Remove.
4318 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4319 virtual.
4320 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4321 tui_gen_win_info.
4322 <refresh_window, max_height, min_height>: Remove.
4323 <rerender>: Add parameters.
4324 <x, y, visible>: New members.
4325 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4326 <m_item_width>: New member.
4327
22b7b041
TT
43282020-07-01 Tom Tromey <tom@tromey.com>
4329
4330 * tui/tui-regs.c (tui_data_window::show_register_group)
4331 (tui_data_window::check_register_values): Update.
4332 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4333 from item_no.
4334
c9753adb
TT
43352020-07-01 Tom Tromey <tom@tromey.com>
4336
4337 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4338 useless "if".
4339
9ab26b4a
TT
43402020-07-01 Tom Tromey <tom@tromey.com>
4341
4342 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4343 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4344
e555083f
TT
43452020-07-01 Tom Tromey <tom@tromey.com>
4346
4347 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4348 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4349 (struct tui_line_or_address): Move from tui-data.h.
4350 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4351 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4352 (tui_cmd_window, tui_source_window_base, tui_source_window)
4353 (tui_disasm_window): Don't declare.
4354 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4355 to tui-winsource.h.
4356 (SINGLE_KEY): Move to tui-stack.c.
4357
7a02bab7
TT
43582020-07-01 Tom Tromey <tom@tromey.com>
4359
4360 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4361 std::string.
4362 * tui/tui-regs.c (class tab_expansion_file): New.
4363 (tab_expansion_file::write): New method.
4364 (tui_register_format): Change return type. Use
4365 tab_expansion_file.
4366 (tui_get_register, tui_data_window::display_registers_from)
4367 (tui_data_item_window::rerender): Update.
4368 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4369 * tui/tui-io.c (tui_expand_tabs): Remove.
4370
ea68593b
TT
43712020-07-01 Tom Tromey <tom@tromey.com>
4372
4373 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4374
a8caed5d
FS
43752020-07-01 Fangrui Song <maskray@google.com>
4376
4377 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4378
9cdf9820
AKS
43792020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4380
4381 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4382 forms for DW_AT_associated and DW_AT_allocated attributes,
4383 which is already checked in function attr_to_dynamic_prop.
4384
a1520ad8
TT
43852020-06-30 Tom Tromey <tromey@adacore.com>
4386
4387 * dwarf2/read.c (quirk_rust_enum): Correctly call
4388 alloc_rust_variant for default-less enum.
4389
5ac58899
TT
43902020-06-30 Tom Tromey <tromey@adacore.com>
4391
4392 PR build/26183:
4393 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4394 gdb::to_string.
4395
19b187a9
SM
43962020-06-29 Simon Marchi <simon.marchi@efficios.com>
4397
4398 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4399 * gdbarch.h: Re-generate.
4400
cd4c4c07
TT
44012020-06-28 Tom Tromey <tom@tromey.com>
4402
4403 * command.h (cmd_types): Remove.
4404 (cmd_type): Don't declare.
4405 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4406 typedef.
4407 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4408 * cli/cli-decode.c (cmd_type): Remove.
4409
05779d57
PA
44102020-06-27 Pedro Alves <palves@redhat.com>
4411
4412 * fork-child.c (prefork_hook): Adjust.
4413 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4414 Delete.
4415 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4416 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4417 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4418 Remove declarations.
4419 (struct inferior) <set_tty, tty>: New methods.
4420 (struct inferior) <terminal>: Rename to ...
4421 (struct inferior) <m_terminal>: ... this and make private.
4422 * main.c (captured_main_1): Adjust.
4423 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4424 (mi_cmd_inferior_tty_show): Adjust.
4425 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4426 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4427
1776e3e5
NA
44282020-06-26 Nick Alcock <nick.alcock@oracle.com>
4429
4430 * configure.ac: Add --enable-libctf: handle --disable-static
4431 properly.
4432 * acinclude.m4: sinclude ../config/enable.m4.
4433 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4434 (LIBCTF): Substitute in.
4435 (CTF_DEPS): New, likewise.
4436 (CLIBS): libctf needs symbols from libbfd: move earlier.
4437 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4438 flags.
4439 * ctfread.c: Surround in ENABLE_LIBCTF.
4440 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4441 * configure: Regenerate.
4442 * config.in: Likewise.
4443
58373b80
SM
44442020-06-25 Simon Marchi <simon.marchi@efficios.com>
4445
4446 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4447
277474ee
SM
44482020-06-25 Simon Marchi <simon.marchi@efficios.com>
4449
4450 * inferior.h (struct inferior) <terminal>: Change type to
4451 gdb::unique_xmalloc_ptr<char>.
4452 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4453 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4454 field, adjust to unique pointer.
4455 (get_inferior_io_terminal): Adjust to unique pointer.
4456
6d74da72
AB
44572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4458
4459 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4460 registers, not just the known core set of registers.
4461
2e52d038
AB
44622020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4463
4464 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4465 fflags, frm, and fcsr registers.
4466 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4467 restore groups.
4468 (riscv_tdesc_unknown_reg): New function.
4469 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4470 tdesc_use_registers.
4471 * riscv-tdep.h (struct gdbarch_tdep): Add
4472 unknown_csrs_first_regnum, unknown_csrs_count,
4473 duplicate_fflags_regnum, duplicate_frm_regnum, and
4474 duplicate_fcsr_regnum fields.
4475
be64fd07
AB
44762020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4477
4478 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4479 callback, use the callback (when not null) to help number unknown
4480 registers.
4481 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4482 (tdesc_use_registers): Add extra parameter to declaration.
4483
3b9fce96
AB
44842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4485
4486 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4487 in the file.
4488 (class riscv_pending_register_alias): Likewise.
4489 (riscv_register_feature::register_info): Change 'required_p' field
4490 to 'required', and change its type. Add 'check' member function.
4491 (riscv_register_feature::register_info::check): Define new member
4492 function.
4493 (riscv_xreg_feature): Change initialisation of 'required' field.
4494 (riscv_freg_feature): Likewise.
4495 (riscv_virtual_feature): Likewise.
4496 (riscv_csr_feature): Likewise.
4497 (riscv_check_tdesc_feature): Take extra parameter, the csr
4498 tdesc_feature, rewrite the function to use the new
4499 riscv_register_feature::register_info::check function.
4500 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4501
865bad26
AB
45022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4503
4504 * features/Makefile: Remove all references to the deleted files
4505 below.
4506 * features/riscv/32bit-csr.c: Deleted.
4507 * features/riscv/32bit-csr.xml: Deleted.
4508 * features/riscv/64bit-csr.c: Deleted.
4509 * features/riscv/64bit-csr.xml: Deleted.
4510 * features/riscv/rebuild-csr-xml.sh: Deleted.
4511
ed69cbc8
AB
45122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4513
4514 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4515 whitespace error for declaration of names member variable.
4516 (struct riscv_register_feature): Add new prefer_first_name member
4517 variable, and fix whitespace error in declaration of registers.
4518 (riscv_xreg_feature): Initialize prefer_first_name field.
4519 (riscv_freg_feature): Likewise.
4520 (riscv_virtual_feature): Likewise.
4521 (riscv_csr_feature): Likewise.
4522 (riscv_register_name): Expand on comments. Remove register name
4523 modifications for CSR and virtual registers.
4524
4445e8f5
AB
45252020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4526
4527 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4528 errors.
4529
767a879e
AB
45302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4531
4532 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4533 riscv-opc.h.
4534 (class riscv_pending_register_alias): New class.
4535 (riscv_check_tdesc_feature): Take vector of pending aliases and
4536 populate it as appropriate.
4537 (riscv_setup_register_aliases): Delete.
4538 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4539 to riscv_check_tdesc_feature in all cases. Use the vector to
4540 create the register aliases.
4541
bb6e55f3
RO
45422020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4543
4544 * sol2-tdep.c (sol2_static_transform_name): Remove.
4545 (sol2_init_abi): Don't register it.
4546 * gdbarch.sh (static_transform_name): Remove.
4547 * gdbarch.c, gdbarch.h: Regenerate.
4548
4549 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4550 gdbarch_static_transform_name.
4551 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4552 * stabsread.c (define_symbol) <'X'>: Remove.
4553 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4554 handling.
4555 <'V'>: Likewise.
4556 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4557 <'S'>: Remove call to gdbarch_static_transform_name.
4558
c6d36836
RO
45592020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4560
4561 * procfs.c (procfs_pre_trace): New function.
4562 (procfs_target::create_inferior): Pass it to fork_inferior.
4563
a7e6196b
RO
45642020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4565
4566 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4567 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4568 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4569 sol2-tdep.o, sparc-sol2-tdep.o.
4570 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4571 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4572 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4573 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4574
d412e696
RO
45752020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4576
4577 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4578 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4579 Call sol2_init_abi.
4580 Remove calls to set_gdbarch_skip_solib_resolver,
4581 set_gdbarch_core_pid_to_str.
4582 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4583 (i386_sol2_static_transform_name): Remove.
4584 (i386_sol2_init_abi): Call sol2_init_abi.
4585 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4586 set_gdbarch_static_transform_name,
4587 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4588 Use sol2_sigtramp_p.
4589 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4590 (sol2_sigtramp_p): New function.
4591 (sol2_static_transform_name): New function.
4592 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4593 (sol2_init_abi): New function.
4594 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4595 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4596 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4597 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4598 (sparc_sol2_static_transform_name): Remove.
4599 (sparc32_sol2_init_abi): Call sol2_init_abi.
4600 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4601 set_gdbarch_static_transform_name,
4602 set_gdbarch_skip_solib_resolver,
4603 set_gdbarch_core_pid_to_str.
4604 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4605 (sparc_sol2_static_transform_name): Remove
4606 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4607 call sol2_sigtramp_p.
4608 (sparc64_sol2_init_abi): Call sol2_init_abi.
4609 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4610 set_gdbarch_static_transform_name,
4611 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4612
a8654e7d
PW
46132020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4614
4615 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4616 * exec.c (validate_exec_file): If from_tty, set both
4617 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4618 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4619 and from_tty, unconditionally ask a confirmation.
4620
caa7fd04
AB
46212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4622
4623 * target-descriptions.c (tdesc_architecture_name): Protect against
4624 NULL pointer dereference.
4625 (maint_print_xml_tdesc_cmd): New function.
4626 (_initialize_target_descriptions): Register new 'maint print
4627 xml-tdesc' command and give it the filename completer.
4628 * NEWS: Mention new 'maint print xml-tdesc' command.
4629
fbf42f4e
AB
46302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4631
4632 * target-descriptions.c (class tdesc_compatible_info): New class.
4633 (struct target_desc): Change type of compatible vector.
4634 (tdesc_compatible_p): Update for change in type of
4635 target_desc::compatible.
4636 (tdesc_compatible_info_list): New function.
4637 (tdesc_compatible_info_arch_name): New function.
4638 (tdesc_add_compatible): Update for change in type of
4639 target_desc::compatible.
4640 (print_c_tdesc::visit_pre): Likewise.
4641
20821f4e
AB
46422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4643
4644 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4645 whitespace to underscore.
4646 (maint_print_c_tdesc_cmd): Use fake filename for target
4647 descriptions that came from the target.
4648 (_initialize_target_descriptions): Add filename command completion
4649 for 'maint print c-tdesc'.
4650
1fb5ee62
SM
46512020-06-23 Simon Marchi <simon.marchi@efficios.com>
4652
4653 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4654 lines.
4655
fc3ecb3e
SM
46562020-06-23 Simon Marchi <simon.marchi@efficios.com>
4657
4658 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4659 lines.
4660 (dwarf2_find_location_expression): Likewise.
4661 (call_site_parameter_matches): Likewise.
4662 (dwarf2_compile_expr_to_ax): Likewise.
4663 (disassemble_dwarf_expression): Likewise.
4664 (loclist_describe_location): Likewise.
4665
236ef034
PA
46662020-06-23 Pedro Alves <palves@redhat.com>
4667
4668 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4669 progspace-and-thread.h. Include scoped-mock-context.h instead.
4670 (register_to_value_test): Use scoped_mock_context.
4671 * regcache.c: Include "scoped-mock-context.h".
4672 (cooked_read_test): Don't error out if a target is already pushed.
4673 Use scoped_mock_context. Adjust.
4674 * scoped-mock-context.h: New file.
4675
39e7ecca
AB
46762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4677
4678 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4679 initializer.
4680 (ada_language::is_string_type_p): New member function.
4681 * c-lang.c (c_language_data): Delete la_is_string_type_p
4682 initializer.
4683 (cplus_language_data): Likewise.
4684 (asm_language_data): Likewise.
4685 (minimal_language_data): Likewise.
4686 * d-lang.c (d_language_data): Likewise.
4687 * f-lang.c (f_is_string_type_p): Delete function, implementation
4688 moved to f_language::is_string_type_p.
4689 (f_language_data): Delete la_is_string_type_p initializer.
4690 (f_language::is_string_type_p): New member function,
4691 implementation from f_is_string_type_p.
4692 * go-lang.c (go_is_string_type_p): Delete function, implementation
4693 moved to go_language::is_string_type_p.
4694 (go_language_data): Delete la_is_string_type_p initializer.
4695 (go_language::is_string_type_p): New member function,
4696 implementation from go_is_string_type_p.
4697 * language.c (language_defn::is_string_type_p): Define new member
4698 function.
4699 (default_is_string_type_p): Make static, add comment copied from
4700 header file.
4701 (unknown_language_data): Delete la_is_string_type_p initializer.
4702 (unknown_language::is_string_type_p): New member function.
4703 (auto_language_data): Delete la_is_string_type_p initializer.
4704 (auto_language::is_string_type_p): New member function.
4705 * language.h (language_data): Delete la_is_string_type_p field.
4706 (language_defn::is_string_type_p): Declare new function.
4707 (default_is_string_type_p): Delete desclaration, move comment to
4708 definition.
4709 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4710 moved to m2_language::is_string_type_p.
4711 (m2_language_data): Delete la_is_string_type_p initializer.
4712 (m2_language::is_string_type_p): New member function,
4713 implementation from m2_is_string_type_p.
4714 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4715 initializer.
4716 * opencl-lang.c (opencl_language_data): Likewise.
4717 * p-lang.c (pascal_is_string_type_p): Delete function,
4718 implementation moved to pascal_language::is_string_type_p.
4719 (pascal_language_data): Delete la_is_string_type_p initializer.
4720 (pascal_language::is_string_type_p): New member function,
4721 implementation from pascal_is_string_type_p.
4722 * rust-lang.c (rust_is_string_type_p): Delete function,
4723 implementation moved to rust_language::is_string_type_p.
4724 (rust_language_data): Delete la_is_string_type_p initializer.
4725 (rust_language::is_string_type_p): New member function,
4726 implementation from rust_is_string_type_p.
4727 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4728 is_string_type_p.
4729
4ffc13fb
AB
47302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4731
4732 * ada-lang.c (ada_language_data): Delete la_print_typedef
4733 initializer.
4734 (ada_language::print_typedef): New member function.
4735 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4736 (cplus_language_data): Likewise.
4737 (asm_language_data): Likewise.
4738 (minimal_language_data): Likewise.
4739 * d-lang.c (d_language_data): Likewise.
4740 * f-lang.c (f_language_data): Likewise.
4741 (f_language::print_typedef): New member function.
4742 * go-lang.c (go_language_data): Delete la_print_typedef
4743 initializer.
4744 * language.c (language_defn::print_typedef): Define member
4745 function.
4746 (unknown_language_data): Delete la_print_typedef initializer.
4747 (unknown_language::print_typedef): New member function.
4748 (auto_language_data): Delete la_print_typedef initializer.
4749 (auto_language::print_typedef): New member function.
4750 * language.h (language_data): Delete la_print_typedef field.
4751 (language_defn::print_typedef): Declare new member function.
4752 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4753 (default_print_typedef): Delete declaration.
4754 * m2-lang.c (m2_language_data): Delete la_print_typedef
4755 initializer.
4756 (m2_language::print_typedef): New member function.
4757 * objc-lang.c (objc_language_data): Delete la_print_typedef
4758 initializer.
4759 * opencl-lang.c (opencl_language_data): Likewise.
4760 * p-lang.c (pascal_language_data): Likewise.
4761 (pascal_language::print_typedef): New member function.
4762 * rust-lang.c (rust_print_typedef): Delete function,
4763 implementation moved to rust_language::print_typedef.
4764 (rust_language): Delete la_print_typedef initializer.
4765 (rust_language::print_typedef): New member function,
4766 implementation from rust_print_typedef.
4767 * typeprint.c (default_print_typedef): Delete.
4768
d711ee67
AB
47692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4770
4771 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4772 (ada_language::printstr): New member function.
4773 * c-lang.c (c_language_data): Delete la_printstr initializer.
4774 (cplus_language_data): Likewise.
4775 (asm_language_data): Likewise.
4776 (minimal_language_data): Likewise.
4777 * d-lang.c (d_language_data): Likewise.
4778 * f-lang.c (f_printstr): Rename to f_language::printstr.
4779 (f_language_data): Delete la_printstr initializer.
4780 (f_language::printstr): New member function, implementation from
4781 f_printstr.
4782 * go-lang.c (go_language_data): Delete la_printstr initializer.
4783 * language.c (language_defn::printstr): Define new member
4784 function.
4785 (unk_lang_printstr): Delete.
4786 (unknown_language_data): Delete la_printstr initializer.
4787 (unknown_language::printstr): New member function.
4788 (auto_language_data): Delete la_printstr initializer.
4789 (auto_language::printstr): New member function.
4790 * language.h (language_data): Delete la_printstr field.
4791 (language_defn::printstr): Declare new member function.
4792 (LA_PRINT_STRING): Update call to printstr.
4793 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4794 (m2_language_data): Delete la_printstr initializer.
4795 (m2_language::printstr): New member function, implementation from
4796 m2_printstr.
4797 * objc-lang.c (objc_language_data): Delete la_printstr
4798 initializer.
4799 * opencl-lang.c (opencl_language_data): Likewise.
4800 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4801 (pascal_language_data): Delete la_printstr initializer.
4802 (pascal_language::printstr): New member function, implementation
4803 from pascal_printstr.
4804 * p-lang.h (pascal_printstr): Delete declaration.
4805 * rust-lang.c (rust_printstr): Update header comment.
4806 (rust_language_data): Delete la_printstr initializer.
4807 (rust_language::printstr): New member function.
4808
52b50f2c
AB
48092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4810
4811 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4812 (ada_language::printchar): New member function.
4813 * c-lang.c (c_language_data): Delete la_printchar initializer.
4814 (cplus_language_data): Likewise.
4815 (asm_language_data): Likewise.
4816 (minimal_language_data): Likewise.
4817 * d-lang.c (d_language_data): Likewise.
4818 * f-lang.c (f_printchar): Rename to f_language::printchar.
4819 (f_language_data): Delete la_printchar initializer.
4820 (f_language::printchar): New member function, implementation from
4821 f_printchar.
4822 * go-lang.c (go_language_data): Delete la_printchar initializer.
4823 * language.c (unk_lang_printchar): Delete.
4824 (language_defn::printchar): Define new member function.
4825 (unknown_language_data): Delete la_printchar initializer.
4826 (unknown_language::printchar): New member function.
4827 (auto_language_data): Delete la_printchar initializer.
4828 (auto_language::printchar): New member function.
4829 * language.h (language_data): Delete la_printchar field.
4830 (language_defn::printchar): Declare new member function.
4831 (LA_PRINT_CHAR): Update call to printchar.
4832 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4833 (m2_language::printchar): New member function.
4834 * objc-lang.c (objc_language_data): Delete la_printchar
4835 initializer.
4836 * opencl-lang.c (opencl_language_data): Likewise.
4837 * p-lang.c (pascal_language_data): Delete la_printchar
4838 initializer.
4839 (pascal_language::printchar): New member function.
4840 * rust-lang.c (rust_printchar): Rename to
4841 rust_language::printchar.
4842 (rust_language_data): Delete la_printchar initializer.
4843 (rust_language::printchar): New member function, implementation
4844 from rust_printchar.
4845
ec8cec5b
AB
48462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4847
4848 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4849 (ada_language_data): Delete la_emitchar initializer.
4850 (ada_language::emitchar): New member function, implementation from
4851 emit_char.
4852 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4853 (cplus_language_data): Likewise.
4854 (asm_language_data): Likewise.
4855 (minimal_language_data): Likewise.
4856 * d-lang.c (d_language_data): Likewise.
4857 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4858 (f_language_data): Delete la_emitchar initializer.
4859 (f_language::emitchar): New member function, implementation from
4860 f_emit_char.
4861 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4862 * language.c (unk_lang_emit_char): Delete.
4863 (language_defn::emitchar): New member function definition.
4864 (unknown_language_data): Delete la_emitchar initializer.
4865 (unknown_language::emitchar): New member function.
4866 (auto_language_data): Delete la_emitchar initializer.
4867 (auto_language::emitchar): New member function.
4868 * language.h (language_data): Delete la_emitchar field.
4869 (language_defn::emitchar): New member field declaration.
4870 (LA_EMIT_CHAR): Update call to emitchar.
4871 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4872 (m2_language_data): Delete la_emitchar initializer.
4873 (m2_language::emitchar): New member function, implementation from
4874 m2_emit_char.
4875 * objc-lang.c (objc_language_data): Delete la_emitchar
4876 initializer.
4877 * opencl-lang.c (opencl_language_data): Likewise.
4878 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4879 (pascal_language_data): Delete la_emitchar initializer.
4880 (pascal_language::emitchar): New member function, implementation
4881 from pascal_emit_char.
4882 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4883 (rust_language_data): Delete la_emitchar initializer.
4884 (rust_language::emitchar): New member function, implementation
4885 from rust_emitchar.
4886
1bf9c363
AB
48872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4888
4889 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4890 (ada_language_data): Delete la_post_parser initializer.
4891 (ada_language::post_parser): New member function.
4892 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4893 (cplus_language_data): Likewise.
4894 (asm_language_data): Likewise.
4895 (minimal_language_data): Likewise.
4896 * d-lang.c (d_language_data): Likewise.
4897 * f-lang.c (f_language_data): Likewise.
4898 * go-lang.c (go_language_data): Likewise.
4899 * language.c (unknown_language_data): Likewise.
4900 (auto_language_data): Likewise.
4901 * language.h (language_data): Delete la_post_parser field.
4902 (language_defn::post_parser): New member function.
4903 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4904 * objc-lang.c (objc_language_data): Likewise.
4905 * opencl-lang.c (opencl_language_data): Likewise.
4906 * p-lang.c (pascal_language_data): Likewise.
4907 * parse.c (parse_exp_in_context): Update call to post_parser.
4908 (null_post_parser): Delete definition.
4909 * parser-defs.h (null_post_parser): Delete declaration.
4910 * rust-lang.c (rust_language_data): Delete la_post_parser
4911 initializer.
4912
87afa652
AB
49132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4914
4915 * ada-lang.c (parse): Rename to ada_language::parser.
4916 (ada_language_data): Delete la_parser initializer.
4917 (ada_language::parser): New member function, implementation from
4918 parse.
4919 * c-lang.c (c_language_data): Delete la_parser initializer.
4920 (cplus_language_data): Likewise.
4921 (asm_language_data): Likewise.
4922 (minimal_language_data): Likewise.
4923 * d-lang.c (d_language_data): Likewise.
4924 (d_language::parser): New member function.
4925 * f-lang.c (f_language_data): Delete la_parser initializer.
4926 (f_language::parser): New member function.
4927 * go-lang.c (go_language_data): Delete la_parser initializer.
4928 (go_language::parser): New member function.
4929 * language.c (unk_lang_parser): Delete.
4930 (language_defn::parser): Define new member function.
4931 (unknown_language_data): Delete la_parser initializer.
4932 (unknown_language::parser): New member function.
4933 (auto_language_data): Delete la_parser initializer.
4934 (auto_language::parser): New member function.
4935 * language.h (language_data): Delete la_parser field.
4936 (language_defn::parser): Declare new member function.
4937 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4938 (m2_language::parser): New member function.
4939 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4940 * opencl-lang.c (opencl_language_data): Likewise.
4941 * p-lang.c (pascal_language_data): Likewise.
4942 (pascal_language::parser): New member function.
4943 * parse.c (parse_exp_in_context): Update call to parser.
4944 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4945 (rust_language::parser): New member function.
4946
37825800
AB
49472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4948
4949 * top.c (print_gdb_configuration): Print --with-python-libdir
4950 configuration value.
4951
5b860c93
PW
49522020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4953
4954 * NEWS: Mention change to the alias command.
4955
cf00cd6f
PW
49562020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4957
4958 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4959 (alias_command_completer)
4960 (make_alias_options_def_group): New functions.
4961 (alias_opts, alias_option_defs): New struct and array.
4962 (alias_usage_error): Update usage.
4963 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4964 Use option framework.
4965 (_initialize_cli_cmds): Update alias command help.
4966 Update aliases command help.
4967 (show_user):
4968 Add NULL for new default_args lookup_cmd argument.
4969 (valid_command_p): Rename to validate_aliased_command.
4970 Add NULL for new default_args lookup_cmd argument. Verify that the
4971 aliased_command has no default args.
4972 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4973 (lookup_cmd_1, lookup_cmd): New argument default_args.
4974 (add_alias_cmd):
4975 Add NULL for new default_args lookup_cmd argument.
4976 (print_help_for_command): Show default args under the layout
4977 alias some_alias = some_aliased_cmd some_alias_default_arg.
4978 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4979 xfree default_args in destructor.
4980 * cli/cli-script.c (process_next_line, do_define_command):
4981 Add NULL for new default_args lookup_cmd argument.
4982 * command.h: Declare new default_args argument in lookup_cmd
4983 and lookup_cmd_1.
4984 * completer.c (complete_line_internal_1):
4985 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4986 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4987 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4988 Likewise.
4989 * infcmd.c (_initialize_infcmd): Likewise.
4990 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4991 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4992 * python/py-param.c (add_setshow_generic): Likewise.
4993 * remote.c (_initialize_remote): Likewise.
4994 * top.c (execute_command): Prepend default_args if command has some.
4995 (set_verbose):
4996 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4997 * tracepoint.c (validate_actionline, encode_actions_1):
4998 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4999
bd920864
TBA
50002020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5001
5002 * jit.c (jit_read_descriptor): Use bool as the return type.
5003 (jit_breakpoint_re_set_internal): Use bool as the return type.
5004 Invert the return value logic; return true if the jit breakpoint
5005 has been successfully initialized.
5006 (jit_inferior_init): Update the call to
5007 jit_breakpoint_re_set_internal.
5008
f8098322
PA
50092020-06-22 Pedro Alves <palves@redhat.com>
5010
5011 PR gdb/25939
5012 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5013 Use the current inferior instead. Don't return
5014 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5015 wait again.
5016 * sol-thread.c (sol_thread_target::wait): Don't reference
5017 inferior_ptid.
5018 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5019 (sol_update_thread_list_callback): Use the current inferior's pid
5020 instead of inferior_ptid.
5021
196535a6
RO
50222020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5023
5024 * procfs.c: Cleanup many comments.
5025
5026 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5027 (AFTER_WATCHFLAG): Replace by value.
5028
5029 (MAIN_PROC_NAME_FORMAT): Inline ...
5030 (create_procinfo): ... here.
5031
5032 (procfs_debug_inferior): Remove SYS_exec handling.
5033 (syscall_is_exec): Likewise.
5034 (procfs_set_exec_trap): Likewise.
5035
5036 (syscall_is_lwp_exit): Inline in callers.
5037 (syscall_is_exit): Likewise.
5038 (syscall_is_exec): Likewise.
5039 (syscall_is_lwp_create): Likewise.
5040
5041 (invalidate_cache): Remove #if 0 code.
5042
5043 (make_signal_thread_runnable): Remove.
5044 (procfs_target::resume): Remove #if 0 code.
5045
cf6f3e86
RO
50462020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5047
5048 PR gdb/25939
5049 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5050 call ...
5051 (procfs_target::create_inferior): ... here.
5052
48e9cc84
PW
50532020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5054
5055 * exec.c (validate_exec_file): Ensure the build-id is up to
5056 date by calling reopen_exec_file (that checks file timestamp
5057 to decide to re-read the file).
5058
3922b302
PA
50592020-06-18 Pedro Alves <palves@redhat.com>
5060
5061 PR gdb/25412
5062 * gdbthread.h (delete_thread, delete_thread_silent)
5063 (find_thread_ptid): Update comments.
5064 * thread.c (current_thread_): New global.
5065 (is_current_thread): Move higher, and reimplement.
5066 (inferior_thread): Reimplement.
5067 (set_thread_exited): Use bool. Add assertions.
5068 (add_thread_silent): Simplify thread-reuse handling by always
5069 calling delete_thread.
5070 (delete_thread): Remove intro comment.
5071 (find_thread_ptid): Skip exited threads.
5072 (switch_to_thread_no_regs): Write to current_thread_.
5073 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5074 INFERIOR_PTID. Clear current_thread_.
5075
6dbdab44
PA
50762020-06-18 Pedro Alves <palves@redhat.com>
5077
5078 * aix-thread.c (pd_update): Use switch_to_thread.
5079
2da4b788
PA
50802020-06-18 Pedro Alves <palves@redhat.com>
5081
5082 * ravenscar-thread.c (ravenscar_thread_target): Update.
5083 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5084 (ravenscar_thread_target::add_active_thread): ... this. Don't
5085 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5086 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5087
50838d1b
PA
50882020-06-18 Pedro Alves <palves@redhat.com>
5089
5090 * nat/windows-nat.c (current_windows_thread): Remove.
5091 * nat/windows-nat.h (current_windows_thread): Remove.
5092 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5093 Adjust.
5094 (display_selectors): Adjust to fetch the current
5095 windows_thread_info based on inferior_ptid.
5096 (fake_create_process): No longer write to current_windows_thread.
5097 (windows_nat_target::get_windows_debug_event):
5098 Don't set inferior_ptid or current_windows_thread.
5099 (windows_nat_target::wait): Adjust to not rely on
5100 current_windows_thread.
5101 (do_initial_windows_stuff): Now a method of windows_nat_target.
5102 Switch to the last_ptid thread.
5103 (windows_nat_target::attach): Adjust.
5104 (windows_nat_target::detach): Use switch_to_no_thread instead of
5105 writing to inferior_ptid directly.
5106 (windows_nat_target::create_inferior): Adjust.
5107
31ce04e9
PA
51082020-06-18 Pedro Alves <palves@redhat.com>
5109
5110 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5111
1ee1a363
PA
51122020-06-18 Pedro Alves <palves@redhat.com>
5113
5114 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5115 after creating it, instead of writing to inferior_ptid. Don't
5116 write to inferior_ptid.
5117
6d350754
PA
51182020-06-18 Pedro Alves <palves@redhat.com>
5119
5120 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5121
5d971d48
PA
51222020-06-18 Pedro Alves <palves@redhat.com>
5123
5124 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5125 it, instead of writing to inferior_ptid.
5126
86e57d1b
PA
51272020-06-18 Pedro Alves <palves@redhat.com>
5128
5129 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5130 to inferior_ptid.
5131
f2e1c129
PA
51322020-06-18 Pedro Alves <palves@redhat.com>
5133
5134 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5135 instead of writing to inferior_ptid directly.
5136
60db1b85
PA
51372020-06-18 Pedro Alves <palves@redhat.com>
5138
5139 * corelow.c (core_target::close): Use switch_to_no_thread instead
5140 of writing to inferior_ptid directly.
5141 (add_to_thread_list, core_target_open): Use switch_to_thread
5142 instead of writing to inferior_ptid directly.
5143
fe7d6a8d
PA
51442020-06-18 Pedro Alves <palves@redhat.com>
5145
5146 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5147 inferior_ptid.
5148 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5149 inferior_ptid.
5150 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5151 inferior_ptid directly.
5152 (darwin_nat_target::init_thread_list): Switch to thread, instead
5153 of writing to inferior_ptid.
5154 (darwin_nat_target::attach): Don't write to inferior_ptid.
5155 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5156
975f8708
PA
51572020-06-18 Pedro Alves <palves@redhat.com>
5158
5159 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5160 thread.
5161 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5162 Instead use switch_to_thread.
5163 (gnu_nat_target::detach): Use switch_to_no_thread
5164 instead of writing to inferior_ptid directly. Used passed-in
5165 inferior instead of looking up the inferior by pid.
5166
1a204730
PA
51672020-06-18 Pedro Alves <palves@redhat.com>
5168
5169 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5170 inferior_ptid.
5171
ebe84f23
PA
51722020-06-18 Pedro Alves <palves@redhat.com>
5173
5174 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5175 inferior_ptid.
5176 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5177 thread.
5178 (nto_procfs_target::detach): Avoid referencing
5179 inferior_ptid. Use switch_to_no_thread instead of writing to
5180 inferior_ptid directly.
5181 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5182 instead of writing to inferior_ptid directly.
5183 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5184 to thread.
5185
191f02e5
PA
51862020-06-18 Pedro Alves <palves@redhat.com>
5187
5188 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5189 after creating it, instead of writing to inferior_ptid.
5190 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5191 to inferior_ptid directly.
5192 (gdbsim_target::wait): Don't write to inferior_ptid.
5193
0ac55310
PA
51942020-06-18 Pedro Alves <palves@redhat.com>
5195
5196 * remote.c (remote_target::remote_notice_new_inferior): Use
5197 switch_to_thread instead of writing to inferior_ptid directly.
5198 (remote_target::add_current_inferior_and_thread): Use
5199 switch_to_no_thread instead of writing to inferior_ptid directly.
5200 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5201 and switch_to_thread instead of using set_current_inferior or
5202 writing to inferior_ptid directly.
5203
5233f39b
PA
52042020-06-18 Pedro Alves <palves@redhat.com>
5205
5206 * tracectf.c (ctf_target_open): Switch to added thread instead of
5207 writing to inferior_ptid directly.
5208 (ctf_target::close): Use switch_to_no_thread instead of writing to
5209 inferior_ptid directly.
5210
087e161b
PA
52112020-06-18 Pedro Alves <palves@redhat.com>
5212
5213 * tracefile-tfile.c (tfile_target_open): Don't write to
5214 inferior_ptid directly, instead switch to added thread.
5215 (tfile_target::close): Use switch_to_no_thread instead of writing
5216 to inferior_ptid directly.
5217
7fb43e53
PA
52182020-06-18 Pedro Alves <palves@redhat.com>
5219
5220 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5221 (procfs_target::detach): Use switch_to_no_thread
5222 instead of writing to inferior_ptid directly.
5223 (do_attach): Change return type to void. Switch to the added
5224 thread.
5225 (procfs_target::create_inferior): Switch to the added thread.
5226 (procfs_do_thread_registers): Don't write to inferior_ptid.
5227
18493a00
PA
52282020-06-18 Pedro Alves <palves@redhat.com>
5229
5230 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5231 of writing to inferior_ptid.
5232 (scoped_restore_exited_inferior): Delete.
5233 (handle_vfork_child_exec_or_exit): Simplify using
5234 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5235 instead of writing to inferior_ptid.
5236 (THREAD_STOPPED_BY): Delete.
5237 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5238 (thread_stopped_by_hw_breakpoint): Delete.
5239 (save_waitstatus): Use
5240 scoped_restore_current_thread+switch_to_thread, and call
5241 target_stopped_by_watchpoint instead of
5242 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5243 instead of thread_stopped_by_sw_breakpoint, and
5244 target_stopped_by_hw_breakpoint instead of
5245 thread_stopped_by_hw_breakpoint.
5246 (handle_inferior_event)
5247 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5248 inferior_ptid directly, nor
5249 set_current_inferior/set_current_program_space. Use
5250 switch_to_thread / switch_to_inferior_no_thread instead.
5251
a0776b13
PA
52522020-06-18 Pedro Alves <palves@redhat.com>
5253
5254 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5255 instead of writing to inferior_ptid.
5256
6155c136
PA
52572020-06-18 Pedro Alves <palves@redhat.com>
5258
5259 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5260 added thread.
5261 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5262 to the added thread.
5263 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5264 instead of writing to inferior_ptid.
5265
c5316fc6
PA
52662020-06-18 Pedro Alves <palves@redhat.com>
5267
5268 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5269 (register_to_value_test): Mock a program_space too. Heap-allocate
5270 the address space. Don't write to inferior_ptid. Use
5271 switch_to_thread instead.
5272
8df01799
PA
52732020-06-18 Pedro Alves <palves@redhat.com>
5274
5275 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5276 Delete.
5277 (find_signalled_thread()): New, factored out from
5278 linux_make_corefile_notes and adjusted to handle exited threads.
5279 (linux_make_corefile_notes): Adjust to use the new
5280 find_signalled_thread.
5281
41792d68
PA
52822020-06-18 Pedro Alves <palves@redhat.com>
5283
5284 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5285 of saving/restoring inferior_ptid.
5286
612f258a
TT
52872020-06-17 Tom Tromey <tom@tromey.com>
5288
5289 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5290 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5291 declare.
5292 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5293
efb763a5
SM
52942020-06-15 Simon Marchi <simon.marchi@efficios.com>
5295
5296 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5297 of partial symtabs.
5298
2951f6c0
SM
52992020-06-17 Simon Marchi <simon.marchi@efficios.com>
5300
5301 * regformats/reg-arm.dat: Remove.
5302 * regformats/reg-bfin.dat: Remove.
5303 * regformats/reg-cris.dat: Remove.
5304 * regformats/reg-crisv32.dat: Remove.
5305 * regformats/reg-m32r.dat: Remove.
5306 * regformats/reg-tilegx.dat: Remove.
5307 * regformats/reg-tilegx32.dat: Remove.
5308
7d458ea5
SM
53092020-06-17 Simon Marchi <simon.marchi@efficios.com>
5310
5311 * features/Makefile (WHICH): Remove arm files.
5312 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5313 * regformats/arm/arm-with-neon.dat: Remove.
5314 * regformats/arm/arm-with-vfpv2.dat: Remove.
5315 * regformats/arm/arm-with-vfpv3.dat: Remove.
5316
3af96c0d
SM
53172020-06-17 Simon Marchi <simon.marchi@efficios.com>
5318
5319 * features/Makefile (XMLTOC): Remove rx.xml.
5320
b25e22fd
PA
53212020-06-17 Pedro Alves <palves@redhat.com>
5322
5323 * gdbthread.h (thread_control_state) <trap_expected> Update
5324 comments.
5325
a78a19b1
AB
53262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5327
5328 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5329 ada_language::lookup_symbol_nonlocal.
5330 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5331 (ada_language::lookup_symbol_nonlocal): New member function,
5332 implementation from ada_lookup_symbol_nonlocal.
5333 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5334 initializer.
5335 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5336 initializer.
5337 (cplus_language::lookup_symbol_nonlocal): New member function.
5338 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5339 (minimal_language_data) Likewise.
5340 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5341 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5342 initializer.
5343 (d_language::lookup_symbol_nonlocal): New member function.
5344 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5345 initializer.
5346 (f_language::lookup_symbol_nonlocal): New member function.
5347 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5348 initializer.
5349 * language.c (unknown_language_data): Likewise.
5350 (auto_language_data): Likewise.
5351 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5352 field.
5353 (language_defn::lookup_symbol_nonlocal): New member function.
5354 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5355 initializer.
5356 * objc-lang.c (objc_language_data): Likewise.
5357 * opencl-lang.c (opencl_language_data): Likewise.
5358 * p-lang.c (pascal_language_data): Likewise.
5359 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5360 rust_language::lookup_symbol_nonlocal.
5361 (rust_language_data): Delete la_lookup_symbol_nonlocal
5362 initializer.
5363 (rust_language::lookup_symbol_nonlocal): New member function,
5364 implementation from rust_lookup_symbol_nonlocal.
5365 * symtab.c (lookup_symbol_aux): Update call to
5366 lookup_symbol_nonlocal.
5367 (basic_lookup_symbol_nonlocal): Rename to...
5368 (language_defn::lookup_symbol_nonlocal): ...this, and update
5369 header comment. Remove language_defn parameter, and replace with
5370 uses of `this'.
5371 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5372
ebe2334e
AB
53732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5374
5375 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5376 initializer.
5377 (ada_language::value_print_inner): New member function.
5378 * c-lang.c (c_language_data): Delete la_value_print_inner
5379 initializer.
5380 (cplus_language_data): Likewise.
5381 (asm_language_data): Likewise.
5382 (minimal_language_data): Likewise.
5383 * d-lang.c (d_language_data): Likewise.
5384 (d_language::value_print_inner): New member function.
5385 * f-lang.c (f_language_data): Delete la_value_print_inner
5386 initializer.
5387 (f_language::value_print_inner): New member function.
5388 * f-lang.h (f_value_print_innner): Rename to...
5389 (f_value_print_inner): ...this (note spelling of 'inner').
5390 * f-valprint.c (f_value_print_innner): Rename to...
5391 (f_value_print_inner): ...this (note spelling of 'inner').
5392 * go-lang.c (go_language_data): Delete la_value_print_inner
5393 initializer.
5394 (go_language::value_print_inner): New member function.
5395 * language.c (language_defn::value_print_inner): Define new member
5396 function.
5397 (unk_lang_value_print_inner): Delete.
5398 (unknown_language_data): Delete la_value_print_inner initializer.
5399 (unknown_language::value_print_inner): New member function.
5400 (auto_language_data): Delete la_value_print_inner initializer.
5401 (auto_language::value_print_inner): New member function.
5402 * language.h (language_data): Delete la_value_print_inner field.
5403 (language_defn::value_print_inner): Delcare new member function.
5404 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5405 initializer.
5406 (m2_language::value_print_inner): New member function.
5407 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5408 initializer.
5409 * opencl-lang.c (opencl_language_data): Likewise.
5410 * p-lang.c (pascal_language_data): Likewise.
5411 (pascal_language::value_print_inner): New member function.
5412 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5413 initializer.
5414 (rust_language::value_print_inner): New member function.
5415 * valprint.c (do_val_print): Update call to value_print_inner.
5416
a1d1fa3e
AB
54172020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5418
5419 * ada-lang.c (ada_language_data): Delete la_value_print
5420 initializer.
5421 (ada_language::value_print): New member function.
5422 * c-lang.c (c_language_data): Delete la_value_print initializer.
5423 (cplus_language_data): Likewise.
5424 (asm_language_data): Likewise.
5425 (minimal_language_data): Likewise.
5426 * d-lang.c (d_language_data): Likewise.
5427 * f-lang.c (f_language_data): Likewise.
5428 * go-lang.c (go_language_data): Likewise.
5429 * language.c (unk_lang_value_print): Delete.
5430 (language_defn::value_print): Define new member function.
5431 (unknown_language_data): Delete la_value_print initializer.
5432 (unknown_language::value_print): New member function.
5433 (auto_language_data): Delete la_value_print initializer.
5434 (auto_language::value_print): New member function.
5435 * language.h (language_data): Delete la_value_print field.
5436 (language_defn::value_print): Declare new member function.
5437 (LA_VALUE_PRINT): Update call to value_print.
5438 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5439 * objc-lang.c (objc_language_data): Likewise.
5440 * opencl-lang.c (opencl_language_data): Likewise.
5441 * p-lang.c (pascal_language_data): Likewise.
5442 (pascal_language::value_print): New member function.
5443 * rust-lang.c (rust_language_data): Delete la_value_print
5444 initializer.
5445
f16a9f57
AB
54462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5447
5448 * ada-lang.c (ada_watch_location_expression): Rename to
5449 ada_language::watch_location_expression.
5450 (ada_language_data): Delete la_watch_location_expression
5451 initializer.
5452 (ada_language::watch_location_expression): New member function,
5453 implementation from ada_watch_location_expression.
5454 * breakpoint.c (watch_command_1): Update call to
5455 watch_location_expression.
5456 * c-lang.c (c_watch_location_expression): Rename to
5457 language_defn::watch_location_expression.
5458 (c_language_data): Delete la_watch_location_expression
5459 initializer.
5460 (cplus_language_data): Likewise.
5461 (asm_language_data): Likewise.
5462 (minimal_language_data): Likewise.
5463 * c-lang.h (c_watch_location_expression): Delete declaration.
5464 * d-lang.c (d_language_data): Delete la_watch_location_expression
5465 initializer.
5466 * f-lang.c (f_language_data): Likewise.
5467 * go-lang.c (go_language_data): Likewise.
5468 * language.c (language_defn::watch_location_expression): Member
5469 function implementation from c_watch_location_expression.
5470 (unknown_language_data): Delete la_watch_location_expression
5471 initializer.
5472 (auto_language_data): Likewise.
5473 * language.h (language_data): Delete la_watch_location_expression
5474 field.
5475 (language_defn::watch_location_expression): Declare new member
5476 function.
5477 * m2-lang.c (m2_language_data): Delete
5478 la_watch_location_expression initializer.
5479 * objc-lang.c (objc_language_data): Likewise.
5480 * opencl-lang.c (opencl_language_data): Likewise.
5481 * p-lang.c (pascal_language_data): Likewise.
5482 * rust-lang.c (rust_watch_location_expression): Rename to
5483 rust_language::watch_location_expression.
5484 (rust_language_data): Delete la_watch_location_expression
5485 initializer.
5486 (rust_language::watch_location_expression): New member function,
5487 implementation from rust_watch_location_expression.
5488
7e56227d
AB
54892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5490
5491 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5492 ada_language::collect_symbol_completion_matches.
5493 (ada_language_data): Delete la_collect_symbol_completion_matches
5494 initializer.
5495 (ada_language::collect_symbol_completion_matches): New member
5496 function, implementation from
5497 ada_collect_symbol_completion_matches.
5498 * c-lang.c (c_language_data): Delete
5499 la_collect_symbol_completion_matches initializer.
5500 (cplus_language_data): Likewise.
5501 (asm_language_data): Likewise.
5502 (minimal_language_data): Likewise.
5503 * d-lang.c (d_language_data): Likewise.
5504 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5505 f_language::collect_symbol_completion_matches.
5506 (f_language_data): Delete la_collect_symbol_completion_matches
5507 initializer.
5508 (f_language::collect_symbol_completion_matches) New member
5509 function, implementation from f_collect_symbol_completion_matches.
5510 * go-lang.c (go_language_data): Delete
5511 la_collect_symbol_completion_matches initializer.
5512 * language.c (unknown_language_data): Likewise.
5513 (auto_language_data): Likewise.
5514 * language.h (language_data): Delete
5515 la_collect_symbol_completion_matches field.
5516 (language_defn::collect_symbol_completion_matches): New member
5517 function.
5518 * m2-lang.c (m2_language_data): Delete
5519 la_collect_symbol_completion_matches initializer.
5520 * objc-lang.c (objc_language_data): Likewise.
5521 * opencl-lang.c (opencl_language_data): Likewise.
5522 * p-lang.c (pascal_language_data): Likewise.
5523 * rust-lang.c (rust_language_data): Likewise.
5524 * symtab.c (default_collect_symbol_completion_matches): Delete.
5525 (collect_symbol_completion_matches): Update call to
5526 collect_symbol_completion_matches.
5527 (collect_symbol_completion_matches_type): Likewise.
5528 * symtab.h (default_collect_symbol_completion_matches): Delete
5529 declaration.
5530
53fc67f8
AB
55312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5532
5533 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5534 (ada_language_data): Delete la_word_break_characters initializer.
5535 (ada_language::word_break_characters): New member function.
5536 * c-lang.c (c_language_data): Delete la_word_break_characters
5537 initializer.
5538 (cplus_language_data): Likewise.
5539 (asm_language_data): Likewise.
5540 (minimal_language_data): Likewise.
5541 * completer.c: Update global comment.
5542 (advance_to_expression_complete_word_point): Update call to
5543 word_break_characters.
5544 (complete_files_symbols): Likewise.
5545 (complete_line_internal_1): Likewise.
5546 (default_completer_handle_brkchars): Likewise.
5547 (skip_quoted_chars): Likewise.
5548 * d-lang.c (d_language_data): Delete la_word_break_characters
5549 initializer.
5550 * f-lang.c (f_word_break_characters): Delete.
5551 (f_language_data): Delete la_word_break_characters initializer.
5552 (f_language::word_break_characters): New member function.
5553 * go-lang.c (go_language_data): Delete la_word_break_characters
5554 initializer.
5555 * language.c (unknown_language_data): Likewise.
5556 (auto_language_data): Likewise.
5557 * language.h (default_word_break_characters): Move declaration to
5558 earlier in the file.
5559 (language_data): Delete la_word_break_characters field.
5560 (language_defn::word_break_characters): New member function.
5561 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5562 initializer.
5563 * objc-lang.c (objc_language_data): Likewise.
5564 * opencl-lang.c (opencl_language_data): Likewise.
5565 * p-lang.c (pascal_language_data): Likewise.
5566 * rust-lang.c (rust_language_data): Likewise.
5567
c9debfb9
AB
55682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5569
5570 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5571 (ada_language_data): Delete la_get_symbol_name_matcher
5572 initializer.
5573 (language_defn::get_symbol_name_matcher_inner): New member
5574 function.
5575 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5576 initializer.
5577 (cplus_language_data): Likewise.
5578 (cplus_language::get_symbol_name_matcher_inner): New member
5579 function.
5580 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5581 (minimal_language_data): Likewise.
5582 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5583 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5584 initializer.
5585 * dictionary.c (iter_match_first_hashed): Update call to
5586 get_symbol_name_matcher.
5587 (iter_match_next_hashed): Likewise.
5588 (iter_match_next_linear): Likewise.
5589 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5590 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5591 initializer.
5592 (f_language::get_symbol_name_matcher_inner): New member function.
5593 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5594 initializer.
5595 * language.c (default_symbol_name_matcher): Update header comment,
5596 make static.
5597 (language_defn::get_symbol_name_matcher): New definition.
5598 (language_defn::get_symbol_name_matcher_inner): Likewise.
5599 (get_symbol_name_matcher): Delete.
5600 (unknown_language_data): Delete la_get_symbol_name_matcher
5601 initializer.
5602 (auto_language_data): Likewise.
5603 * language.h (language_data): Delete la_get_symbol_name_matcher
5604 field.
5605 (language_defn::get_symbol_name_matcher): New member function.
5606 (language_defn::get_symbol_name_matcher_inner): Likewise.
5607 (default_symbol_name_matcher): Delete declaration.
5608 * linespec.c (find_methods): Update call to
5609 get_symbol_name_matcher.
5610 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5611 initializer.
5612 * minsyms.c (lookup_minimal_symbol): Update call to
5613 get_symbol_name_matcher.
5614 (iterate_over_minimal_symbols): Likewise.
5615 * objc-lang.c (objc_language_data): Delete
5616 la_get_symbol_name_matcher initializer.
5617 * opencl-lang.c (opencl_language_data): Likewise.
5618 * p-lang.c (pascal_language_data): Likewise.
5619 * psymtab.c (psymbol_name_matches): Update call to
5620 get_symbol_name_matcher.
5621 * rust-lang.c (rust_language_data): Delete
5622 la_get_symbol_name_matcher initializer.
5623 * symtab.c (symbol_matches_search_name): Update call to
5624 get_symbol_name_matcher.
5625 (compare_symbol_name): Likewise.
5626
9a49ad8c
AB
56272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5628
5629 * ada-lang.c (ada_language_data): Delete la_compute_program
5630 initializer.
5631 * c-lang.c (c_language_data): Likewise.
5632 (c_language::compute_program): New member function.
5633 (cplus_language_data): Delete la_compute_program initializer.
5634 (cplus_language::compute_program): New member function.
5635 (asm_language_data): Delete la_compute_program initializer.
5636 (minimal_language_data): Likewise.
5637 * c-lang.h (c_compute_program): Update comment.
5638 (cplus_compute_program): Likewise.
5639 * compile/compile-c-support.c (c_compute_program): Likewise.
5640 (cplus_compute_program): Likewise.
5641 * compile/compile.c (compile_to_object): Update call to
5642 la_compute_program.
5643 * d-lang.c (d_language_data): Delete la_compute_program
5644 initializer.
5645 * f-lang.c (f_language_data): Likewise.
5646 * go-lang.c (go_language_data): Likewise.
5647 * language.c (unknown_language_data): Likewise.
5648 (auto_language_data): Likewise.
5649 * language.h (language_data): Delete la_compute_program field.
5650 (language_defn::compute_program): New member function.
5651 * m2-lang.c (m2_language_data): Delete la_compute_program
5652 initializer.
5653 * objc-lang.c (objc_language_data): Likewise.
5654 * opencl-lang.c (opencl_language_data): Likewise.
5655 * p-lang.c (pascal_language_data): Likewise.
5656 * rust-lang.c (rust_language_data): Likewise.
5657
eff93b4d
AB
56582020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5659
5660 * ada-lang.c (ada_language_data) Delete
5661 la_class_name_from_physname initializer.
5662 * c-lang.c (c_language_data): Likewise.
5663 (cplus_language_data): Likewise.
5664 (cplus_language::class_name_from_physname): New member function.
5665 (asm_language_data): Delete la_class_name_from_physname
5666 initializer.
5667 (minimal_language_data): Likewise.
5668 * d-lang.c (d_language_data): Likewise.
5669 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5670 method on language_defn class.
5671 (guess_full_die_structure_name): Likewise.
5672 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5673 initializer.
5674 * go-lang.c (go_language_data): Likewise.
5675 * language.c (language_class_name_from_physname): Delete.
5676 (unk_lang_class_name): Delete.
5677 (unknown_language_data): Delete la_class_name_from_physname
5678 initializer.
5679 (auto_language_data): Likewise.
5680 * language.h (language_data): Delete la_class_name_from_physname
5681 field.
5682 (language_defn::class_name_from_physname): New function.
5683 (language_class_name_from_physname): Delete declaration.
5684 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5685 initializer.
5686 * objc-lang.c (objc_language_data): Likewise.
5687 * opencl-lang.c (opencl_language_data): Likewise.
5688 * p-lang.c (pascal_language_data): Likewise.
5689 * rust-lang.c (rust_language_data): Likewise.
5690
de543742
TT
56912020-06-16 Tom Tromey <tom@tromey.com>
5692
5693 * tui/tui-data.h (STATUS_NAME): New macro.
5694 * tui/tui-layout.c (tui_remove_some_windows)
5695 (initialize_known_windows, tui_register_window)
5696 (tui_layout_split::remove_windows, initialize_layouts)
5697 (tui_new_layout_command): Don't use hard-coded window names.
5698
a350efd4
TT
56992020-06-16 Tom Tromey <tom@tromey.com>
5700
5701 PR tui/25348:
5702 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5703 tui_initialize_readline. Only run once. Call rl_initialize.
5704 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5705 tui_initialize_readline.
5706 * tui/tui-io.c (tui_setup_io): Call
5707 tui_ensure_readline_initialized.
5708 * tui/tui-interp.c (tui_interp::init): Update.
5709
39ec0490
TT
57102020-06-16 Tom Tromey <tom@tromey.com>
5711
5712 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5713 Also preserve the status window.
5714
d2d1ea20
TT
57152020-06-16 Tom Tromey <tom@tromey.com>
5716
5717 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5718 where m_window==nullptr.
5719
66920317
TT
57202020-06-15 Tom Tromey <tromey@adacore.com>
5721
5722 * windows-nat.c (windows_nat::handle_output_debug_string):
5723 Update.
5724 (windows_nat::handle_ms_vc_exception): Update.
5725 * target.h (target_read_string): Change API.
5726 * target.c (target_read_string): Change API.
5727 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5728 Update.
5729 * solib-frv.c (frv_current_sos): Update.
5730 * solib-dsbt.c (dsbt_current_sos): Update.
5731 * solib-darwin.c (darwin_current_sos): Update.
5732 * linux-thread-db.c (inferior_has_bug): Update.
5733 * expprint.c (print_subexp_standard): Update.
5734 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5735 (ada_exception_message_1): Update.
5736
a5d871dd
TT
57372020-06-15 Tom Tromey <tromey@adacore.com>
5738
5739 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5740
670e35fa
TT
57412020-06-15 Tom Tromey <tromey@adacore.com>
5742
5743 * valprint.c (read_string): Update comment.
5744 * target.c (MIN): Remove.
5745 (target_read_string): Rewrite.
5746
f5272a3b
TT
57472020-06-15 Tom Tromey <tromey@adacore.com>
5748
5749 * corefile.c (read_memory_string): Remove.
5750 * ada-valprint.c (ada_value_print_ptr): Update.
5751 * ada-lang.h (ada_tag_name): Change return type.
5752 * ada-lang.c (type_from_tag): Update.
5753 (ada_tag_name_from_tsd): Change return type. Use
5754 target_read_string.
5755 (ada_tag_name): Likewise.
5756 * gdbcore.h (read_memory_string): Don't declare.
5757
2c074f49
HD
57582020-06-14 Hannes Domani <ssbssa@yahoo.de>
5759
5760 * symtab.c (rbreak_command): Ignore Windows drive colon.
5761
6a17d503
SM
57622020-06-12 Simon Marchi <simon.marchi@efficios.com>
5763
5764 * NEWS: Mention removed GDBserver host support.
5765
453c733f
NC
57662020-06-12 Nelson Chu <nelson.chu@sifive.com>
5767
5768 * features/riscv/rebuild-csr-xml.sh: Updated.
5769
2b4e6a3f
TT
57702020-06-11 Tom Tromey <tom@tromey.com>
5771
5772 PR gdb/18318:
5773 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5774
4412332f
JG
57752020-06-09 Jonny Grant <jg@jguk.org>
57762020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5777
5778 * main.c (captured_main_1): Don't print new line after help.
5779 (print_gdb_help): add mailing list and IRC channel information
5780 to --help. Add new lines between items in the footer. Remove
5781 quotes around bug url.
5782
2f33032a
KS
57832020-06-11 Keith Seitz <keiths@redhat.com>
5784
5785 PR gdb/21356
5786 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5787 Resolve typedefs for type length calculations.
5788
7ab96794
TV
57892020-06-10 Tom de Vries <tdevries@suse.de>
5790
5791 PR ada/24713
5792 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5793 (write_psymbols): Enable .gdb_index for ada.
5794 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5795 ada.
5796
e5f3ece2
TV
57972020-06-10 Tom de Vries <tdevries@suse.de>
5798
5799 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5800 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5801 namei" instead of "const char *name" argument.
5802 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5803 dw2_symtab_iter_init.
5804
940da03e
SM
58052020-06-08 Simon Marchi <simon.marchi@efficios.com>
5806
5807 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5808 to use type::field and field::type instead.
5809
b6cdac4b
SM
58102020-06-08 Simon Marchi <simon.marchi@efficios.com>
5811
5812 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5813 to use field::type instead.
5814
5d14b6e5
SM
58152020-06-08 Simon Marchi <simon.marchi@efficios.com>
5816
5817 * gdbtypes.h (struct field) <type, set_type>: New methods.
5818 Rename `type` field to...
5819 <m_type>: ... this. Change references throughout to use type or
5820 set_type methods.
5821 (FIELD_TYPE): Use field::type. Change call sites that modify
5822 the field's type to use field::set_type instead.
5823
3d967001
SM
58242020-06-08 Simon Marchi <simon.marchi@efficios.com>
5825
5826 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5827 to use type::index_type instead.
5828
262abc0d
SM
58292020-06-08 Simon Marchi <simon.marchi@efficios.com>
5830
5831 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5832 methods.
5833 (TYPE_INDEX_TYPE): Use type::index_type.
5834 * gdbtypes.c (create_array_type_with_stride): Likewise.
5835
82836c92
TT
58362020-06-07 Tom Tromey <tom@tromey.com>
5837
5838 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5839 parameter.
5840 (generic_value_print): Update.
5841
940dace9
AB
58422020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5843
5844 Revert commit 982a38f60b0.
5845 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5846
982a38f6
AB
58472020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5848
5849 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5850 avoid use after free.
5851
82f06518
TV
58522020-06-05 Tom de Vries <tdevries@suse.de>
5853
5854 * NEWS: Fix typos.
5855
f8c41851
SM
58562020-06-04 Simon Marchi <simon.marchi@efficios.com>
5857
5858 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5859 the per_bfd object.
5860 (dwarf2_read_debug_names): Likewise.
5861 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5862 object when re-using a per_bfd object with an index.
5863
f9b5d5ea
TV
58642020-06-03 Tom de Vries <tdevries@suse.de>
5865
5866 PR symtab/26046
5867 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5868 children for C++.
5869 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5870 DW_TAG_subprogram.
5871
f6eee2d0
AB
58722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5873
5874 * ada-lang.c (ada_language_data): Delete skip_trampoline
5875 initializer.
5876 * c-lang.c (c_language_data): Likewise.
5877 (cplus_language_data): Likewise.
5878 (cplus_language::skip_trampoline): New member function.
5879 (asm_language_data): Delete skip_trampoline initializer.
5880 (minimal_language_data): Likewise.
5881 * d-lang.c (d_language_data): Likewise.
5882 * f-lang.c (f_language_data): Likewise.
5883 * go-lang.c (go_language_data): Likewise.
5884 * language.c (unk_lang_trampoline): Delete function.
5885 (skip_language_trampoline): Update.
5886 (unknown_language_data): Delete skip_trampoline initializer.
5887 (auto_language_data): Likewise.
5888 * language.h (language_data): Delete skip_trampoline field.
5889 (language_defn::skip_trampoline): New function.
5890 * m2-lang.c (m2_language_data): Delete skip_trampoline
5891 initializer.
5892 * objc-lang.c (objc_skip_trampoline): Delete function, move
5893 implementation to objc_language::skip_trampoline.
5894 (objc_language_data): Delete skip_trampoline initializer.
5895 (objc_language::skip_trampoline): New member function with
5896 implementation from objc_skip_trampoline.
5897 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5898 initializer.
5899 * p-lang.c (pascal_language_data): Likewise.
5900 * rust-lang.c (rust_language_data): Likewise.
5901
0a50df5d
AB
59022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5903
5904 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5905 (ada_language::demangle): New member function.
5906 * c-lang.c (c_language_data): Delete la_demangle initializer.
5907 (cplus_language_data): Delete la_demangle initializer.
5908 (cplus_language::demangle): New member function.
5909 (asm_language_data): Delete la_demangle initializer.
5910 (minimal_language_data): Delete la_demangle initializer.
5911 * d-lang.c (d_language_data): Delete la_demangle initializer.
5912 (d_language::demangle): New member function.
5913 * f-lang.c (f_language_data): Delete la_demangle initializer.
5914 (f_language::demangle): New member function.
5915 * go-lang.c (go_language_data): Delete la_demangle initializer.
5916 (go_language::demangle): New member function.
5917 * language.c (language_demangle): Update.
5918 (unk_lang_demangle): Delete.
5919 (unknown_language_data): Delete la_demangle initializer.
5920 (unknown_language::demangle): New member function.
5921 (auto_language_data): Delete la_demangle initializer.
5922 (auto_language::demangle): New member function.
5923 * language.h (language_data): Delete la_demangle field.
5924 (language_defn::demangle): New function.
5925 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5926 * objc-lang.c (objc_language_data): Delete la_demangle
5927 initializer.
5928 (objc_language::demangle): New member function.
5929 * opencl-lang.c (opencl_language_data): Delete la_demangle
5930 initializer.
5931 * p-lang.c (pascal_language_data): Likewise.
5932 * rust-lang.c (rust_language_data): Likewise.
5933 (rust_language::demangle): New member function.
5934
fbfb0a46
AB
59352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5936
5937 * ada-lang.c (ada_language_data): Delete la_print_type
5938 initializer.
5939 (ada_language::print_type): New member function.
5940 * c-lang.c (c_language_data): Delete la_print_type initializer.
5941 (c_language::print_type): New member function.
5942 (cplus_language_data): Delete la_print_type initializer.
5943 (cplus_language::print_type): New member function.
5944 (asm_language_data): Delete la_print_type initializer.
5945 (asm_language::print_type): New member function.
5946 (minimal_language_data): Delete la_print_type initializer.
5947 (minimal_language::print_type): New member function.
5948 * d-lang.c (d_language_data): Delete la_print_type initializer.
5949 (d_language::print_type): New member function.
5950 * f-lang.c (f_language_data): Delete la_print_type initializer.
5951 (f_language::print_type): New member function.
5952 * go-lang.c (go_language_data): Delete la_print_type initializer.
5953 (go_language::print_type): New member function.
5954 * language.c (unk_lang_print_type): Delete.
5955 (unknown_language_data): Delete la_print_type initializer.
5956 (unknown_language::print_type): New member function.
5957 (auto_language_data): Delete la_print_type initializer.
5958 (auto_language::print_type): New member function.
5959 * language.h (language_data): Delete la_print_type field.
5960 (language_defn::print_type): New function.
5961 (LA_PRINT_TYPE): Update.
5962 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5963 (m2_language::print_type): New member function.
5964 * objc-lang.c (objc_language_data): Delete la_print_type
5965 initializer.
5966 (objc_language::print_type): New member function.
5967 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5968 to opencl_language::print_type.
5969 (opencl_language_data): Delete la_print_type initializer.
5970 (opencl_language::print_type): New member function, implementation
5971 from opencl_print_type.
5972 * p-lang.c (pascal_language_data): Delete la_print_type
5973 initializer.
5974 (pascal_language::print_type): New member function.
5975 * rust-lang.c (rust_print_type): Delete, implementation moved to
5976 rust_language::print_type.
5977 (rust_language_data): Delete la_print_type initializer.
5978 (rust_language::print_type): New member function, implementation
5979 from rust_print_type.
5980
6f827019
AB
59812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5982
5983 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5984 implementation moves to...
5985 (ada_language::sniff_from_mangled_name): ...here. Update return
5986 type.
5987 (ada_language_data): Delete la_sniff_from_mangled_name
5988 initializer.
5989 * c-lang.c (c_language_data): Likewise.
5990 (cplus_language_data): Likewise.
5991 (cplus_language::sniff_from_mangled_name): New member function,
5992 implementation taken from gdb_sniff_from_mangled_name.
5993 (asm_language_data): Delete la_sniff_from_mangled_name
5994 initializer.
5995 (minimal_language_data): Likewise.
5996 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5997 implementation moves to cplus_language::sniff_from_mangled_name.
5998 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5999 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6000 moves to...
6001 (d_language::sniff_from_mangled_name): ...here.
6002 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6003 * f-lang.c (f_language_data): Likewise.
6004 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6005 moves to...
6006 (go_language::sniff_from_mangled_name): ...here.
6007 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6008 * language.c (language_sniff_from_mangled_name): Delete.
6009 (unknown_language_data): Delete la_sniff_from_mangled_name
6010 initializer.
6011 (auto_language_data): Likewise.
6012 * language.h (language_data): Delete la_sniff_from_mangled_name
6013 field.
6014 (language_defn::sniff_from_mangled_name): New function.
6015 (language_sniff_from_mangled_name): Delete declaration.
6016 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6017 field.
6018 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6019 implementation moves to...
6020 (objc_language::sniff_from_mangled_name): ...here.
6021 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6022 * opencl-lang.c (opencl_language_data): Likewise.
6023 * p-lang.c (pascal_language_data): Likewise.
6024 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6025 implementation moves to...
6026 (rust_language::sniff_from_mangled_name): ...here.
6027 (rust_language_data): Delete la_sniff_from_mangled_name
6028 initializer.
6029 * symtab.c (symbol_find_demangled_name): Call
6030 sniff_from_mangled_name member function.
6031
fb8006fd
AB
60322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6033
6034 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6035 initializer.
6036 * c-lang.c (c_language_data): Likewise.
6037 (cplus_language_data): Likewise.
6038 (cplus_language::search_name_hash): New member function.
6039 (asm_language_data): Delete la_search_name_hash initializer.
6040 (minimal_language_data): Likewise.
6041 * d-lang.c (d_language_data): Likewise.
6042 * dictionary.c (default_search_name_hash): Rename to...
6043 (language_defn::search_name_hash): ...this.
6044 * f-lang.c (f_language_data): Likewise.
6045 (f_language::search_name_hash): New member function.
6046 * go-lang.c (go_language_data): Delete la_search_name_hash
6047 initializer.
6048 * language.c (unknown_language_data): Likewise.
6049 (auto_language_data): Likewise.
6050 * language.h (struct language_data): Delete la_search_name_hash
6051 field.
6052 (language_defn::search_name_hash): Declare new member function.
6053 (default_search_name_hash): Delete declaration.
6054 * m2-lang.c (m2_language_data): Delete la_search_name_hash
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 * symtab.c (search_name_hash): Update call.
6061
8e25bafe
AB
60622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6063
6064 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6065 initializer.
6066 * c-lang.c (class compile_instance): Declare.
6067 (c_language_data): Delete la_get_compile_instance initializer.
6068 (c_language::get_compile_instance): New member function.
6069 (cplus_language_data): Delete la_get_compile_instance initializer.
6070 (cplus_language::get_compile_instance): New member function.
6071 (asm_language_data): Delete la_get_compile_instance initializer.
6072 (minimal_language_data): Likewise.
6073 * c-lang.h (c_get_compile_context): Update comment.
6074 (cplus_get_compile_context): Update comment.
6075 * compile/compile.c (compile_to_object): Update calls, don't rely
6076 on function pointer being NULL.
6077 * d-lang.c (d_language_data): Delete la_get_compile_instance
6078 initializer.
6079 * f-lang.c (f_language_data): Likewise.
6080 * go-lang.c (go_language_data): Likewise.
6081 * language.c (unknown_language_data): Likewise.
6082 (auto_language_data): Likewise.
6083 * language.h (language_data): Delete la_get_compile_instance field.
6084 (language_defn::get_compile_instance): New member function.
6085 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6086 initializer.
6087 * objc-lang.c (objc_language_data): Likewise.
6088 * opencl-lang.c (opencl_language_data): Likewise.
6089 * p-lang.c (pascal_language_data): Likewise.
6090 * rust-lang.c (rust_language_data): Likewise.
6091
4009ee92
AB
60922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6093
6094 * ada-lang.c (ada_add_all_symbols): Update comment.
6095 (ada_iterate_over_symbols): Delete, move implementation to...
6096 (ada_language::iterate_over_symbols): ...here, a new member
6097 function, rewrite to use range based for loop.
6098 (ada_language_data): Delete la_iterate_over_symbols initializer.
6099 * c-lang.c (c_language_data): Likewise.
6100 (cplus_language_data): Likewise.
6101 (asm_language_data): Likewise.
6102 (minimal_language_data): Likewise.
6103 * d-lang.c (d_language_data): Likewise.
6104 * f-lang.c (f_language_data): Likewise.
6105 * go-lang.c (go_language_data): Likewise.
6106 * language.c (unknown_language_data): Likewise.
6107 (auto_language_data): Likewise.
6108 * language.h (language_data): Delete la_iterate_over_symbols field.
6109 (language_defn::iterate_over_symbols): New member function.
6110 (LA_ITERATE_OVER_SYMBOLS): Update.
6111 * linespec.c (iterate_over_all_matching_symtabs): Update.
6112 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6113 initializer.
6114 * objc-lang.c (objc_language_data): Likewise.
6115 * opencl-lang.c (opencl_language_data): Likewise.
6116 * p-lang.c (pascal_language_data): Likewise.
6117 * rust-lang.c (rust_language_data): Likewise.
6118
54f4ca46
AB
61192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6120
6121 * ada-lang.c (ada_language_data): Delete
6122 la_lookup_transparent_type initializer.
6123 * c-lang.c (c_language_data): Likewise.
6124 (cplus_language_data): Likewise.
6125 (cplus_language::lookup_transparent_type): New member function.
6126 (asm_language_data): Delete la_lookup_transparent_type
6127 initializer.
6128 (minimal_language_data): Likewise.
6129 * d-lang.c (d_language_data): Likewise.
6130 * f-lang.c (f_language_data): Likewise.
6131 * go-lang.c (go_language_data): Likewise.
6132 * language.c (unknown_language_data): Likewise.
6133 (auto_language_data): Likewise.
6134 * language.h (struct language_data): Delete
6135 la_lookup_transparent_type field.
6136 (language_defn::lookup_transparent_type): New member function.
6137 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6138 initializer.
6139 * objc-lang.c (objc_language_data): Likewise.
6140 * opencl-lang.c (opencl_language_data): Likewise.
6141 * p-lang.c (pascal_language_data): Likewise.
6142 * rust-lang.c (rust_language_data): Likewise.
6143 * symtab.c (symbol_matches_domain): Update call.
6144
1fb314aa
AB
61452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6146
6147 * ada-lang.c (ada_language_arch_info): Delete function, move
6148 implementation to...
6149 (ada_language::language_arch_info): ...here, a new member
6150 function.
6151 (ada_language_data): Delete la_language_arch_info.
6152 * c-lang.c (c_language_data): Likewise.
6153 (c_language::language_arch_info): New member function.
6154 (cplus_language_arch_info): Delete function, move
6155 implementation to...
6156 (cplus_language::language_arch_info): ...here, a new member
6157 function.
6158 (cplus_language_data): Delete la_language_arch_info.
6159 (asm_language_data): Likewise.
6160 (asm_language::language_arch_info): New member function.
6161 (minimal_language_data): Delete la_language_arch_info.
6162 (minimal_language::language_arch_info): New member function.
6163 * d-lang.c (d_language_arch_info): Delete function, move
6164 implementation to...
6165 (d_language::language_arch_info): ...here, a new member
6166 function.
6167 (d_language_data): Delete la_language_arch_info.
6168 * f-lang.c (f_language_arch_info): Delete function, move
6169 implementation to...
6170 (f_language::language_arch_info): ...here, a new member
6171 function.
6172 (f_language_data): Delete la_language_arch_info.
6173 * go-lang.c (go_language_arch_info): Delete function, move
6174 implementation to...
6175 (go_language::language_arch_info): ...here, a new member
6176 function.
6177 (go_language_data): Delete la_language_arch_info.
6178 * language.c (unknown_language_data): Likewise.
6179 (unknown_language::language_arch_info): New member function.
6180 (auto_language_data): Delete la_language_arch_info.
6181 (auto_language::language_arch_info): New member function.
6182 (language_gdbarch_post_init): Update call to
6183 la_language_arch_info.
6184 * language.h (language_data): Delete la_language_arch_info
6185 function pointer.
6186 (language_defn::language_arch_info): New function.
6187 * m2-lang.c (m2_language_arch_info): Delete function, move
6188 implementation to...
6189 (m2_language::language_arch_info): ...here, a new member
6190 function.
6191 (m2_language_data): Delete la_language_arch_info.
6192 * objc-lang.c (objc_language_arch_info): Delete function, move
6193 implementation to...
6194 (objc_language::language_arch_info): ...here, a new member
6195 function.
6196 (objc_language_data): Delete la_language_arch_info.
6197 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6198 implementation to...
6199 (opencl_language::language_arch_info): ...here, a new member
6200 function.
6201 (opencl_language_data): Delete la_language_arch_info.
6202 * p-lang.c (pascal_language_arch_info): Delete function, move
6203 implementation to...
6204 (pascal_language::language_arch_info): ...here, a new member
6205 function.
6206 (pascal_language_data): Delete la_language_arch_info.
6207 * rust-lang.c (rust_language_arch_info): Delete function, move
6208 implementation to...
6209 (rust_language::language_arch_info): ...here, a new member
6210 function.
6211 (rust_language_data): Delete la_language_arch_info.
6212
48448202
AB
62132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6214
6215 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6216 initializer.
6217 * c-lang.c (c_language_data): Likewise.
6218 (cplus_language_data): Likewise.
6219 (cplus_language::pass_by_reference_info): New method.
6220 (asm_language_data): Delete la_pass_by_reference initializer.
6221 (minimal_language_data): Likewise.
6222 * cp-abi.c (cp_pass_by_reference): Remove use of
6223 default_pass_by_reference.
6224 * d-lang.c (d_language_data): Likewise.
6225 * f-lang.c (f_language_data): Likewise.
6226 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6227 default_pass_by_reference.
6228 * go-lang.c (go_language_data): Likewise.
6229 * language.c (language_pass_by_reference): Update.
6230 (default_pass_by_reference): Delete.
6231 (unknown_language_data): Delete la_pass_by_reference
6232 initializer.
6233 (auto_language_data): Likewise.
6234 * language.h (struct language_data): Delete la_pass_by_reference
6235 field.
6236 (language_defn::pass_by_reference_info): New member function.
6237 (default_pass_by_reference): Delete declaration.
6238 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6239 initializer.
6240 * objc-lang.c (objc_language_data): Likewise.
6241 * opencl-lang.c (opencl_language_data): Likewise.
6242 * p-lang.c (pascal_language_data): Likewise.
6243 * rust-lang.c (rust_language_data): Likewise.
6244
15e5fd35
AB
62452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6246
6247 * ada-lang.c (ada_read_var_value): Delete function, move
6248 implementation to...
6249 (ada_language::read_var_value): ...here.
6250 (ada_language_data): Delete la_read_var_value initializer.
6251 * c-lang.c (c_language_data): Likewise.
6252 (cplus_language_data): Likewise.
6253 (minimal_language_data): Likewise.
6254 * d-lang.c (d_language_data): Likewise.
6255 * f-lang.c (f_language_data): Likewise.
6256 * findvar.c (default_read_var_value): Rename to...
6257 (language_defn::read_var_value): ...this.
6258 * findvar.c (read_var_value): Update header comment, and change to
6259 call member function instead of function pointer.
6260 * go-lang.c (go_language_data): Likewise.
6261 * language.c (unknown_language_data): Delete la_read_var_value
6262 initializer.
6263 (auto_language_data): Likewise.
6264 * language.h (struct language_data): Delete la_read_var_value
6265 field.
6266 (language_defn::read_var_value): New member function.
6267 (default_read_var_value): Delete declaration.
6268 * m2-lang.c (m2_language_data): Delete la_read_var_value
6269 initializer.
6270 * objc-lang.c (objc_language_data): Likewise.
6271 * opencl-lang.c (opencl_language_data): Likewise.
6272 * p-lang.c (pascal_language_data): Likewise.
6273 * rust-lang.c (rust_language_data): Likewise.
6274 * value.h (default_read_var_value): Delete declaration.
6275
5bd40f2a
AB
62762020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6277
6278 * ada-lang.c (ada_print_array_index): Delete function, move
6279 implementation to...
6280 (ada_language::print_array_index): ...here.
6281 (ada_language_data): Delete la_print_array_index initializer.
6282 * c-lang.c (c_language_data): Likewise.
6283 (cplus_language_data): Likewise.
6284 (minimal_language_data): Likewise.
6285 * d-lang.c (d_language_data): Likewise.
6286 * f-lang.c (f_language_data): Likewise.
6287 * go-lang.c (go_language_data): Likewise.
6288 * language.c (default_print_array_index): Delete function, move
6289 implementation to...
6290 (language_defn::print_array_index): ...here.
6291 (unknown_language_data): Delete la_print_array_index initializer.
6292 (auto_language_data): Likewise.
6293 * language.h (struct language_data): Delete la_print_array_index
6294 field.
6295 (language_defn::print_array_index): New member function.
6296 (LA_PRINT_ARRAY_INDEX): Update.
6297 (default_print_array_index): Delete declaration.
6298 * m2-lang.c (m2_language_data): Delete la_print_array_index
6299 initializer.
6300 * objc-lang.c (objc_language_data): Likewise.
6301 * opencl-lang.c (opencl_language_data): Likewise.
6302 * p-lang.c (pascal_language_data): Likewise.
6303 * rust-lang.c (rust_language_data): Likewise.
6304
0874fd07
AB
63052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6306
6307 * gdb/ada-lang.c (ada_language_defn): Convert to...
6308 (ada_language_data): ...this.
6309 (class ada_language): New class.
6310 (ada_language_defn): New static global.
6311 * gdb/c-lang.c (c_language_defn): Convert to...
6312 (c_language_data): ...this.
6313 (class c_language): New class.
6314 (c_language_defn): New static global.
6315 (cplus_language_defn): Convert to...
6316 (cplus_language_data): ...this.
6317 (class cplus_language): New class.
6318 (cplus_language_defn): New static global.
6319 (asm_language_defn): Convert to...
6320 (asm_language_data): ...this.
6321 (class asm_language): New class.
6322 (asm_language_defn): New static global.
6323 (minimal_language_defn): Convert to...
6324 (minimal_language_data): ...this.
6325 (class minimal_language): New class.
6326 (minimal_language_defn): New static global.
6327 * gdb/d-lang.c (d_language_defn): Convert to...
6328 (d_language_data): ...this.
6329 (class d_language): New class.
6330 (d_language_defn): New static global.
6331 * gdb/f-lang.c (f_language_defn): Convert to...
6332 (f_language_data): ...this.
6333 (class f_language): New class.
6334 (f_language_defn): New static global.
6335 * gdb/go-lang.c (go_language_defn): Convert to...
6336 (go_language_data): ...this.
6337 (class go_language): New class.
6338 (go_language_defn): New static global.
6339 * gdb/language.c (unknown_language_defn): Remove declaration.
6340 (current_language): Initialize to nullptr, real initialization is
6341 moved to _initialize_language.
6342 (languages): Delete global.
6343 (language_defn::languages): Define.
6344 (set_language_command): Use language_defn::languages.
6345 (set_language): Likewise.
6346 (range_error): Likewise.
6347 (language_enum): Likewise.
6348 (language_def): Likewise.
6349 (add_set_language_command): Use language_def::languages for the
6350 language list, and language_def to lookup language pointers.
6351 (skip_language_trampoline): Use language_defn::languages.
6352 (unknown_language_defn): Convert to...
6353 (unknown_language_data): ...this.
6354 (class unknown_language): New class.
6355 (unknown_language_defn): New static global.
6356 (auto_language_defn): Convert to...
6357 (auto_language_data): ...this.
6358 (class auto_language): New class.
6359 (auto_language_defn): New static global.
6360 (language_gdbarch_post_init): Use language_defn::languages.
6361 (_initialize_language): Initialize current_language.
6362 * gdb/language.h (struct language_defn): Rename to...
6363 (struct language_data): ...this.
6364 (struct language_defn): New.
6365 (auto_language_defn): Delete.
6366 (unknown_language_defn): Delete.
6367 (minimal_language_defn): Delete.
6368 (ada_language_defn): Delete.
6369 (asm_language_defn): Delete.
6370 (c_language_defn): Delete.
6371 (cplus_language_defn): Delete.
6372 (d_language_defn): Delete.
6373 (f_language_defn): Delete.
6374 (go_language_defn): Delete.
6375 (m2_language_defn): Delete.
6376 (objc_language_defn): Delete.
6377 (opencl_language_defn): Delete.
6378 (pascal_language_defn): Delete.
6379 (rust_language_defn): Delete.
6380 * gdb/m2-lang.c (m2_language_defn): Convert to...
6381 (m2_language_data): ...this.
6382 (class m2_language): New class.
6383 (m2_language_defn): New static global.
6384 * gdb/objc-lang.c (objc_language_defn): Convert to...
6385 (objc_language_data): ...this.
6386 (class objc_language): New class.
6387 (objc_language_defn): New static global.
6388 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6389 (opencl_language_data): ...this.
6390 (class opencl_language): New class.
6391 (opencl_language_defn): New static global.
6392 * gdb/p-lang.c (pascal_language_defn): Convert to...
6393 (pascal_language_data): ...this.
6394 (class pascal_language): New class.
6395 (pascal_language_defn): New static global.
6396 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6397 language pointer, update comment format.
6398 * gdb/rust-lang.c (rust_language_defn): Convert to...
6399 (rust_language_data): ...this.
6400 (class rust_language): New class.
6401 (rust_language_defn): New static global.
6402
1313c56e
AB
64032020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6404
6405 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6406 member variable.
6407 <m_stmt_at_address>: New member variable.
6408 (lnp_state_machine::record_line): Don't record some lines, update
6409 tracking of is_stmt at the same address.
6410 (lnp_state_machine::lnp_state_machine): Initialise new member
6411 variables.
6412
b7ed9f3d
ST
64132020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6414
6415 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6416 "-include gnu-nat-mig.h".
6417 * gnu-nat-mig.h: New file.
6418 * gnu-nat.c: Include "gnu-nat-mig.h".
6419 (exc_server, msg_reply_server, notify_server,
6420 process_reply_server): Remove declarations.
6421
14a8ad62
ST
64222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6423
6424 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6425 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6426 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6427 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6428 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6429 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6430 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6431 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6432 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6433 to gnu_nat_target class.
6434 * gnu-nat.c: Likewise.
6435 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6436 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6437 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6438 object.
6439 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6440 instead of `gnu_target'.
6441
0af5e106
ST
64422020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6443
6444 * i386-gnu-tdep.c: Include "gdbcore.h"
6445 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6446 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6447 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6448 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6449 i386_gnu_sigcontext_addr): New functions
6450 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6451 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6452 tdep.
6453
078f2fc9
ST
64542020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6455
6456 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6457 before fork_inferior call. Avoid calling it if target_is_pushed returns
6458 true.
6459
53dff92c
ST
64602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6461
6462 * gnu-nat.h (gnu_target): New variable declaration.
6463 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6464 gnu_target.
6465 * gnu-nat.c (gnu_target): New variable.
6466 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6467 add_thread_silent, and add_thread calls.
6468 (gnu_nat_target::create_inferior): Pass gnu_target to
6469 add_thread_silent, thread_change_ptid call.
6470 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6471 call.
6472
5a8b8627
ST
64732020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6474
6475 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6476 (gnu_nat_target::find_memory_regions): Remove unused
6477 `old_address' variable.
6478
366f550a
ST
64792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6480
6481 * gnu-nat.c: Include "gdbarch.h".
6482
f14871bf
ST
64832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6484
6485 * reply_mig_hack.awk (Error return): Cast function through
6486 void *, to bypass compiler function call check.
6487
c6887cfb
ST
64882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6489
6490 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6491 $(srcdir)/reply_mig_hack.awk.
6492
6930bffe
ST
64932020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6494
6495 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6496
112c22ed
JG
64972020-05-30 Jonny Grant <jg@jguk.org>
6498
6499 * configure.ac (ACX_BUGURL): change bug URL to https.
6500
f68f85b5
PA
65012020-05-30 Pedro Alves <palves@redhat.com>
6502
6503 * cp-support.c (replace_typedefs_template): New.
6504 (replace_typedefs_qualified_name): Handle
6505 DEMANGLE_COMPONENT_TEMPLATE.
6506
976ca316
SM
65072020-05-29 Simon Marchi <simon.marchi@efficios.com>
6508
6509 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6510 dwarf2/index-cache.h, dwarf2/index-write.c,
6511 dwarf2/index-write.h, dwarf2/line-header.c,
6512 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6513 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6514 variables and fields from `dwarf2_per_objfile` to just
6515 `per_objfile` throughout.
6516
989ade05
SM
65172020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6518
6519 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6520 <push_dwarf_reg_entry_value>: Add comment.
6521
c47bae85
KB
65222020-05-28 Kevin Buettner <kevinb@redhat.com>
6523 Keith Seitz <keiths@redhat.com>
6524
6525 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6526 instead of PyEval_ReleaseLock.
6527 (class gdbpy_gil): Move to earlier in file.
6528 (finalize_python): Set gdb_python_initialized.
6529 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6530 when not initialized.
6531
44486dcf
SM
65322020-05-28 Simon Marchi <simon.marchi@efficios.com>
6533
6534 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6535 <push_dwarf_reg_entry_value>: Remove assert. Override
6536 per_objfile with caller_per_objfile.
6537
f030440d
TV
65382020-05-28 Tom de Vries <tdevries@suse.de>
6539
6540 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6541 PR gold/15646 workaround to symbol kind "type".
6542
f0fbb768
TT
65432020-05-27 Tom Tromey <tromey@adacore.com>
6544
6545 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6546
af0b2a3e
TT
65472020-05-27 Tom Tromey <tromey@adacore.com>
6548
6549 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6550 Use htab_find_with_hash.
6551 <add_abbrev>: Remove "abbrev_number" parameter.
6552 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6553 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6554 (hash_abbrev): Add comment.
6555 (abbrev_table::lookup_abbrev): Move to header file.
6556 (abbrev_table::read): Update.
6557
7d00ffec
TT
65582020-05-27 Tom Tromey <tromey@adacore.com>
6559
6560 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6561 method.
6562 <canonical_name>: New member.
6563 <raw_name>: Rename from "name".
6564 (partial_die_info): Initialize canonical_name.
6565 (scan_partial_symbols): Check raw_name.
6566 (partial_die_parent_scope, partial_die_full_name)
6567 (add_partial_symbol, add_partial_subprogram)
6568 (add_partial_enumeration, load_partial_dies): Use "name" method.
6569 (partial_die_info::name): New method.
6570 (partial_die_info::read, guess_partial_die_structure_name)
6571 (partial_die_info::fixup): Update.
6572
697bba18
TT
65732020-05-27 Tom Tromey <tromey@adacore.com>
6574
6575 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6576 <get_ref_die_offset>: Inline.
6577 <get_ref_die_offset_complaint>: New method.
6578 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6579 (attribute::get_ref_die_offset_complaint): Rename from
6580 get_ref_die_offset. Just issue complaint.
6581
c17ace43
HD
65822020-05-27 Hannes Domani <ssbssa@yahoo.de>
6583
6584 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6585
96445f0b
HD
65862020-05-27 Hannes Domani <ssbssa@yahoo.de>
6587
6588 * exec.c (exec_file_attach): Use errno value of first openp failure.
6589
ac637ec3
HD
65902020-05-27 Hannes Domani <ssbssa@yahoo.de>
6591
6592 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6593 Don't close thread handle.
6594
17ee85fc
TT
65952020-05-27 Tom Tromey <tom@tromey.com>
6596 Simon Marchi <simon.marchi@efficios.com>
6597
6598 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6599 shared_ptr.
6600 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6601 member.
6602 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6603 dwarf2_per_bfd_objfile_data_key>: New globals.
6604 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6605 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6606 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6607 shared.
6608 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6609 short-circuit when sharing.
6610 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6611 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6612
39b16f87
SM
66132020-05-27 Simon Marchi <simon.marchi@efficios.com>
6614
6615 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6616 to...
6617 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6618 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6619
fcf23d5b
SM
66202020-05-27 Simon Marchi <simon.marchi@efficios.com>
6621
6622 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6623 build_name_components, find_name_components_bounds>:
6624 Add per_objfile parameter.
6625 (struct mapped_index) <symbol_name_at>: Likewise.
6626 (struct mapped_debug_names): Remove constructor.
6627 <dwarf2_per_objfile>: Remove field.
6628 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6629 (mapped_index_base::find_name_components_bounds,
6630 mapped_index_base::build_name_components,
6631 dw2_expand_symtabs_matching_symbol): Likewise.
6632 (class mock_mapped_index) <symbol_name_at>: Likewise.
6633 (check_match): Likewise.
6634 (check_find_bounds_finds): Likewise.
6635 (test_mapped_index_find_name_component_bounds): Update.
6636 (CHECK_MATCH): Update.
6637 (dw2_expand_symtabs_matching): Update.
6638 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6639 per_objfile parameter.
6640 <find_vec_in_debug_names>: Likewise.
6641 <m_per_objfile>: New field.
6642 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6643 parameter.
6644 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6645 (dw2_debug_names_iterator::next): Update.
6646 (dw2_debug_names_lookup_symbol): Update.
6647 (dw2_debug_names_expand_symtabs_for_function): Update.
6648 (dw2_debug_names_map_matching_symbols): Update.
6649 (dw2_debug_names_expand_symtabs_matching): Update.
6650 (dwarf2_read_debug_names): Update.
6651
7188ed02
SM
66522020-05-27 Simon Marchi <simon.marchi@efficios.com>
6653
6654 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6655 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6656 move to dwarf2_per_objfile.
6657 <read_in_chain>: Remove.
6658 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6659 remove_all_cus, age_comp_units>: New methods.
6660 <m_dwarf2_cus>: New member.
6661 (struct dwarf2_per_cu_data) <cu>: Remove.
6662 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6663 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6664 moved to methods of dwarf2_per_objfile.
6665 (dwarf2_clear_marks): Remove.
6666 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6667 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6668 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6669 (dwarf2_per_objfile::remove_all_cus): New.
6670 (class free_cached_comp_units) <~free_cached_comp_units>:
6671 Update.
6672 (load_cu): Update.
6673 (dw2_do_instantiate_symtab): Adjust.
6674 (fill_in_sig_entry_from_dwo_entry): Adjust.
6675 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6676 (cutu_reader::cutu_reader): Likewise.
6677 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6678 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6679 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6680 and dwarf2_per_objfile::age_comp_units.
6681 (load_partial_comp_unit): Update.
6682 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6683 (process_queue): Likewise.
6684 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6685 backlink.
6686 (dwarf2_read_addr_index): Likewise.
6687 (follow_die_offset): Likewise.
6688 (dwarf2_fetch_die_loc_sect_off): Likewise.
6689 (dwarf2_fetch_constant_bytes): Likewise.
6690 (dwarf2_fetch_die_type_sect_off): Likewise.
6691 (follow_die_sig_1): Likewise.
6692 (load_full_type_unit): Likewise.
6693 (read_signatured_type): Likewise.
6694 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6695 (dwarf2_cu::~dwarf2_cu): Remove.
6696 (dwarf2_per_objfile::get_cu): New.
6697 (dwarf2_per_objfile::set_cu): New.
6698 (age_cached_comp_units): Rename to...
6699 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6700 to std::unordered_map.
6701 (free_one_cached_comp_unit): Rename to...
6702 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6703 to std::unordered_map.
6704 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6705 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6706 a dwarf2_per_objfile in data.
6707 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6708 (dwarf2_clear_marks): Remove.
6709
2e671100
SM
67102020-05-27 Simon Marchi <simon.marchi@efficios.com>
6711
6712 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6713 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6714 (init_tu_and_read_dwo_dies): Likewise.
6715 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6716 (cutu_reader::cutu_reader): Likewise.
6717 (load_partial_comp_unit): Likewise.
6718 (process_psymtab_comp_unit): Update.
6719 (build_type_psymtabs_1): Update.
6720 (process_skeletonless_type_unit): Update.
6721 (load_full_comp_unit): Update.
6722 (find_partial_die): Update.
6723 (dwarf2_read_addr_index): Update.
6724 (read_signatured_type): Update.
6725
2e6a9f79
SM
67262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6727
6728 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6729 m_header_read_in>: New fields.
6730 <get_header>: New method.
6731 * dwarf2/read.c (per_cu_header_read_in): Remove.
6732 (dwarf2_per_cu_data::get_header): New.
6733 (dwarf2_per_cu_data::addr_size): Update.
6734 (dwarf2_per_cu_data::offset_size): Update.
6735 (dwarf2_per_cu_data::ref_addr_size): Update.
6736
1b555f17
SM
67372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6738
6739 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6740 (dw2_do_instantiate_symtab): Update.
6741 (queue_and_load_all_dwo_tus): Change parameter from
6742 dwarf2_per_cu_data to dwarf2_cu.
6743 (dwarf2_fetch_die_loc_sect_off): Update.
6744 (dwarf2_fetch_constant_bytes): Update.
6745 (dwarf2_fetch_die_type_sect_off): Update.
6746
8fc0b21d
SM
67472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6748
6749 * dwarf2/read.c (process_full_comp_unit,
6750 process_full_type_unit): Remove per_cu, per_objfile paramters.
6751 Add dwarf2_cu parameter.
6752 (process_queue): Update.
6753
168c9250
SM
67542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6755
6756 * dwarf2/read.c (create_cu_from_index_list): Replace
6757 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6758 (create_cus_from_index_list): Likewise.
6759 (create_cus_from_index): Likewise.
6760 (create_signatured_type_table_from_index): Likewise.
6761 (create_cus_from_debug_names_list): Likewise.
6762 (create_cus_from_debug_names): Likewise.
6763 (dwarf2_read_gdb_index): Update.
6764 (dwarf2_read_debug_names): Update.
6765
e286671b
TT
67662020-05-27 Tom Tromey <tom@tromey.com>
6767 Simon Marchi <simon.marchi@efficios.com>
6768
6769 * dwarf2/read.h (struct dwarf2_per_objfile)
6770 <get_type_for_signatured_type, set_type_for_signatured_type>:
6771 New methods.
6772 <m_type_map>: New member.
6773 (struct signatured_type) <type>: Remove.
6774 * dwarf2/read.c
6775 (dwarf2_per_objfile::get_type_for_signatured_type,
6776 dwarf2_per_objfile::set_type_for_signatured_type): New.
6777 (get_signatured_type): Use new methods.
6778
8adb8487
TT
67792020-05-27 Tom Tromey <tom@tromey.com>
6780 Simon Marchi <simon.marchi@efficios.com>
6781
6782 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6783 (struct dwarf2_per_objfile) <type_units>: New member.
6784 <get_type_unit_group_unshareable>: New method.
6785 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6786 num_symtabs, symtabs>: Remove; move to
6787 type_unit_group_unshareable.
6788 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6789 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6790 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6791
127bbf4b
SM
67922020-05-27 Simon Marchi <simon.marchi@efficios.com>
6793
6794 * dwarf2/read.h (struct dwarf2_per_cu_data):
6795 <dwarf2_per_objfile>: Remove.
6796 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6797 dwarf2_per_objfile.
6798 (create_signatured_type_table_from_index): Likewise.
6799 (create_signatured_type_table_from_debug_names): Likewise.
6800 (create_debug_type_hash_table): Likewise.
6801 (fill_in_sig_entry_from_dwo_entry): Likewise.
6802 (create_type_unit_group): Likewise.
6803 (read_comp_units_from_section): Likewise.
6804 (create_cus_hash_table): Likewise.
6805
f6e649dd
SM
68062020-05-27 Simon Marchi <simon.marchi@efficios.com>
6807
6808 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6809 dwarf2_per_cu_data::dwarf2_per_objfile.
6810 (compute_compunit_symtab_includes): Likewise.
6811 (dwarf2_cu::start_symtab): Likewise.
6812
aa66c379
SM
68132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6814
6815 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6816 parameter.
6817 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6818 (read_namespace_alias): Update.
6819 (lookup_die_type): Update.
6820 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6821 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6822 Update.
6823 (disassemble_dwarf_expression): Update.
6824
120ce1b5
SM
68252020-05-27 Simon Marchi <simon.marchi@efficios.com>
6826
6827 * dwarf2/read.h (struct dwarf2_queue_item): Add
6828 dwarf2_per_objfile parameter, assign new parameter.
6829 <per_objfile>: New field.
6830 * dwarf2/read.c (free_one_cached_comp_unit): Add
6831 dwarf2_per_objfile parameter.
6832 (queue_comp_unit): Likewise.
6833 (dw2_do_instantiate_symtab): Update.
6834 (process_psymtab_comp_unit): Update.
6835 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6836 (process_imported_unit_die): Update.
6837 (queue_and_load_dwo_tu): Update.
6838 (follow_die_offset): Update.
6839 (follow_die_sig_1): Update.
6840
9f47c707
SM
68412020-05-27 Simon Marchi <simon.marchi@efficios.com>
6842
6843 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6844 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6845 (read_call_site_scope): Assign per_objfile.
6846 (dwarf2_per_cu_data::objfile): Remove.
6847 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6848 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6849 dwarf2_per_objfile parameter.
6850 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6851 dwarf2_per_objfile parameter.
6852 (dwarf_expr_reg_to_entry_parameter): Add output
6853 dwarf2_per_objfile parameter.
6854 (locexpr_get_frame_base): Update.
6855 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6856 <push_dwarf_reg_entry_value>: Update.
6857 <call_site_to_target_addr>: Update.
6858 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6859 parameter.
6860 (value_of_dwarf_reg_entry): Update.
6861 (rw_pieced_value): Update.
6862 (indirect_synthetic_pointer): Update.
6863 (dwarf2_evaluate_property): Update.
6864 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6865 parameter.
6866 (locexpr_read_variable): Update.
6867 (locexpr_get_symbol_read_needs): Update.
6868 (loclist_read_variable): Update.
6869
14095eb3
SM
68702020-05-27 Simon Marchi <simon.marchi@efficios.com>
6871
6872 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6873 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6874 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6875 parameter.
6876 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6877 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6878 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6879 parameter.
6880 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6881 sect_variable_value): Add dwarf2_per_objfile parameter.
6882 (class dwarf_evaluate_loc_desc) <dwarf_call,
6883 dwarf_variable_value>: Update.
6884 (fetch_const_value_from_synthetic_pointer): Add
6885 dwarf2_per_objfile parameter.
6886 (fetch_const_value_from_synthetic_pointer): Update.
6887 (coerced_pieced_ref): Update.
6888 (class symbol_needs_eval_context) <dwarf_call,
6889 dwarf_variable_value>: Update.
6890 (dwarf2_compile_expr_to_ax): Update.
6891
3c3cd3d4
SM
68922020-05-27 Simon Marchi <simon.marchi@efficios.com>
6893
6894 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6895 parameter.
6896 (dwarf2_evaluate_loc_desc_full): Update.
6897
82ca3f51
SM
68982020-05-27 Simon Marchi <simon.marchi@efficios.com>
6899
6900 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6901 parameter.
6902 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6903 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6904 dwarf2_per_objfile parameter.
6905 (decode_debug_loc_dwo_addresses): Likewise.
6906 (dwarf2_find_location_expression): Update.
6907 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6908 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6909 parameter.
6910 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6911 parameter.
6912 (locexpr_describe_location_1): Likewise.
6913 (locexpr_describe_location): Update.
6914
4b167ea1
SM
69152020-05-27 Simon Marchi <simon.marchi@efficios.com>
6916
6917 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6918 Remove.
6919 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6920 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6921 (dwarf2_compile_property_to_c): Update.
6922 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6923 use text offset from objfile.
6924 (locexpr_tracepoint_var_ref): Update.
6925 (locexpr_generate_c_location): Update.
6926 (loclist_describe_location): Update.
6927 (loclist_tracepoint_var_ref): Update.
6928 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6929 dwarf2_per_objfile parameter.
6930 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6931 use text offset from objfile.
6932 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6933
89b07335
SM
69342020-05-27 Simon Marchi <simon.marchi@efficios.com>
6935
6936 * dwarf2/expr.h (struct dwarf_expr_context)
6937 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6938 <offset>: Remove.
6939 <per_objfile>: New member.
6940 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6941 dwarf2_per_objfile parameter. Don't set offset, set
6942 per_objfile.
6943 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6944 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6945 a dwarf2_per_objfile object instead of an offset.
6946 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6947 constructor.
6948 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6949 to dwarf2_expr_executor constructor. Don't set offset.
6950 (dwarf2_fetch_cfa_info): Update.
6951 (struct dwarf2_frame_cache) <text_offset>: Remove.
6952 <per_objfile>: New field.
6953 (dwarf2_frame_cache): Update.
6954 (dwarf2_frame_prev_register): Update.
6955 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6956 <dwarf_evaluate_loc_desc>: Add constructor.
6957 (dwarf2_evaluate_loc_desc_full): Update.
6958 (dwarf2_locexpr_baton_eval): Update.
6959 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6960 Add constructor.
6961 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6962
293e7e51
SM
69632020-05-27 Simon Marchi <simon.marchi@efficios.com>
6964
6965 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6966 addr_sized_int_type>: Move to dwarf2_cu.
6967 <int_type>: Move to dwarf2_per_objfile.
6968 (struct dwarf2_per_objfile) <int_type>: Move here.
6969 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6970 addr_sized_int_type>: Move here.
6971 (read_func_scope): Update.
6972 (read_array_type): Update.
6973 (read_tag_string_type): Update.
6974 (attr_to_dynamic_prop): Update.
6975 (dwarf2_per_cu_data::int_type): Rename to...
6976 (dwarf2_per_objfile::int_type): ... this.
6977 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6978 (dwarf2_cu::addr_sized_int_type): ... this.
6979 (read_subrange_type): Update.
6980 (dwarf2_per_cu_data::addr_type): Rename to...
6981 (dwarf2_cu::addr_type): ... this.
6982 (set_die_type): Update.
6983
64874a40
SM
69842020-05-27 Simon Marchi <simon.marchi@efficios.com>
6985
6986 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6987 data through per_cu->cu.
6988
4ab09049
SM
69892020-05-27 Simon Marchi <simon.marchi@efficios.com>
6990
6991 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6992 dwarf2_per_cu_data parameter fo dwarf2_cu.
6993 (lookup_dwo_type_unit): Likewise.
6994 (read_cutu_die_from_dwo): Likewise.
6995 (lookup_dwo_unit): Likewise.
6996 (open_and_init_dwo_file): Likewise.
6997 (lookup_dwo_cutu): Likewise.
6998 (lookup_dwo_comp_unit): Likewise.
6999 (lookup_dwo_type_unit): Likewise.
7000 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7001 (cutu_reader::cutu_reader): Update.
7002
47b14e86
SM
70032020-05-27 Simon Marchi <simon.marchi@efficios.com>
7004
7005 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7006 parameter.
7007 (process_full_type_unit): Likewise.
7008 (process_queue): Update.
7009
43182c09
SM
70102020-05-27 Simon Marchi <simon.marchi@efficios.com>
7011
7012 * dwarf2/read.c (recursively_compute_inclusions): Add
7013 dwarf2_per_objfile parameter.
7014 (compute_compunit_symtab_includes): Likewise.
7015 (process_cu_includes): Update.
7016
7aa104c4
SM
70172020-05-27 Simon Marchi <simon.marchi@efficios.com>
7018
7019 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7020 parameter.
7021 (create_type_unit_group): Update.
7022 (process_psymtab_comp_unit_reader): Update.
7023 (build_type_psymtabs_reader): Update.
7024
e3beb21d
SM
70252020-05-27 Simon Marchi <simon.marchi@efficios.com>
7026
7027 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7028 object through m_this_cu->cu.
7029
d460f660
SM
70302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7031
7032 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7033 the info parameter.
7034 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7035
ab432490
SM
70362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7037
7038 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7039 per_objfile parameter.
7040 (load_full_type_unit): Add per_objfile parameter.
7041 (read_signatured_type): Likewise.
7042 (load_full_comp_unit): Likewise.
7043 (load_cu): Likewise.
7044 (dw2_do_instantiate_symtab): Likewise.
7045 (dw2_get_file_names): Likewise.
7046 (dw2_map_symtabs_matching_filename): Update.
7047 (dw_expand_symtabs_matching_file_matcher): Update.
7048 (dw2_map_symbol_filenames): Update.
7049 (process_psymtab_comp_unit): Add per_objfile parameter.
7050 (build_type_psymtabs_1): Update.
7051 (process_skeletonless_type_unit): Update.
7052 (dwarf2_build_psymtabs_hard): Update.
7053 (load_partial_comp_unit): Add per_objfile parameter.
7054 (scan_partial_symbols): Update.
7055 (load_full_comp_unit): Add per_objfile parameter.
7056 (process_imported_unit_die): Update.
7057 (create_cus_hash_table): Update.
7058 (find_partial_die): Update.
7059 (dwarf2_read_addr_index): Update.
7060 (follow_die_offset): Update.
7061 (dwarf2_fetch_die_loc_sect_off): Update.
7062 (dwarf2_fetch_constant_bytes): Update.
7063 (dwarf2_fetch_die_type_sect_off): Update.
7064 (follow_die_sig_1): Update.
7065 (load_full_type_unit): Add per_objfile parameter.
7066 (read_signatured_type): Likewise.
7067
313bad1b
SM
70682020-05-27 Simon Marchi <simon.marchi@efficios.com>
7069
7070 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7071 of objfile_name.
7072
c3699833
SM
70732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7074
7075 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7076 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7077 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7078 field.
7079 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7080 (create_cus_from_index): Update.
7081 (dwarf2_read_gdb_index): Update.
7082 (create_cus_from_debug_names): Update.
7083 (dwarf2_read_debug_names): Update.
7084 (get_abbrev_section_for_cu): Update.
7085 (create_all_comp_units): Update.
7086 (read_attribute_value): Update.
7087 (get_debug_line_section): Update.
7088 * dwarf2/index-cache.c (index_cache::store): Update.
7089 * dwarf2/index-write.c (save_gdb_index_command): Update.
7090 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7091
1859c670
SM
70922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7093
7094 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7095 member.
7096 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7097 dwarf2_per_cu_data::per_bfd.
7098 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7099 (create_type_unit_group): Likewise.
7100 (queue_comp_unit): Remove reference to
7101 per_cu->dwarf2_per_objfile.
7102 (maybe_queue_comp_unit): Likewise.
7103 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7104 (create_cus_hash_table): Assign new field.
7105
5e22e966
SM
71062020-05-27 Simon Marchi <simon.marchi@efficios.com>
7107
7108 * dwarf2/read.c: Replace
7109 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7110 dwarf2_cu->per_objfile throughout.
7111
97a1449a
SM
71122020-05-27 Simon Marchi <simon.marchi@efficios.com>
7113
7114 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7115 parameter, don't use per_cu->dwarf2_per_objfile.
7116 (dw2_instantiate_symtab): Likewise.
7117 (dw2_find_last_source_symtab): Update.
7118 (dw2_map_expand_apply): Update.
7119 (dw2_lookup_symbol): Update.
7120 (dw2_expand_symtabs_for_function): Update.
7121 (dw2_expand_all_symtabs): Update.
7122 (dw2_expand_symtabs_with_fullname): Update.
7123 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7124 don't use per_cu->dwarf2_per_objfile.
7125 (dw2_expand_marked_cus): Update.
7126 (dw2_find_pc_sect_compunit_symtab): Update.
7127 (dw2_debug_names_lookup_symbol): Update.
7128 (dw2_debug_names_expand_symtabs_for_function): Update.
7129 (dw2_debug_names_map_matching_symbols): Update.
7130 (dwarf2_psymtab::expand_psymtab): Update.
7131
9e021579
SM
71322020-05-27 Simon Marchi <simon.marchi@efficios.com>
7133
7134 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7135 <per_objfile>: New member.
7136 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7137 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7138 call to dwarf2_cu.
7139 (cutu_reader::cutu_reader): Update.
7140 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7141
ae090bdb
SM
71422020-05-27 Simon Marchi <simon.marchi@efficios.com>
7143
7144 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7145 struct dwarf2_per_objfile.
7146 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7147 dwarf2_per_bfd.
7148 * dwarf2/read.c (set_die_type): Update.
7149 (get_die_type_at_offset): Update.
7150
af758d11
SM
71512020-05-27 Tom Tromey <tom@tromey.com>
7152 Simon Marchi <simon.marchi@efficios.com>
7153
7154 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7155 method.
7156 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7157 get_symtab, set_symtab>: New methods.
7158 <m_symtabs>: New field.
7159 (struct dwarf2_psymtab): Derive from partial_symtab.
7160 <readin_p, get_compunit_symtab>: Declare methods.
7161 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7162 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7163 New methods.
7164 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7165 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7166 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7167 (dw2_symtab_iter_next, dw2_print_stats)
7168 (dw2_expand_symtabs_with_fullname)
7169 (dw2_expand_symtabs_matching_one)
7170 (dw_expand_symtabs_matching_file_matcher)
7171 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7172 (dw2_debug_names_iterator::next)
7173 (dw2_debug_names_map_matching_symbols)
7174 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7175 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7176 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7177 New methods.
7178 (get_compunit_symtab, process_full_comp_unit)
7179 (process_full_type_unit): Update.
7180 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7181
5989a64e
SM
71822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7183
7184 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7185 then introduce a new dwarf2_per_objfile type.
7186 <read_line_string>: Move to the new dwarf2_per_objfile type.
7187 <objfile>: Likewise.
7188 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7189 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7190 dwarf2_per_objfile->per_bfd.
7191 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7192 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7193 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7194 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7195 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7196 (dwarf2_per_objfile::locate_sections): Rename to...
7197 (dwarf2_per_bfd::locate_sections): ... this.
7198 (dwarf2_per_objfile::get_cutu): Rename to...
7199 (dwarf2_per_bfd::get_cutu): ... this.
7200 (dwarf2_per_objfile::get_cu): Rename to...
7201 (dwarf2_per_bfd::get_cu): ... this.
7202 (dwarf2_per_objfile::get_tu): Rename to...
7203 (dwarf2_per_bfd::get_tu): ... this.
7204 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7205 (dwarf2_per_bfd::allocate_per_cu): ... this.
7206 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7207 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7208 (get_gdb_index_contents_ftype): Change parameter from
7209 dwarf2_per_objfile to dwarf2_per_bfd.
7210 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7211 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7212
a50264ba
TT
72132020-05-27 Tom Tromey <tom@tromey.com>
7214 Simon Marchi <simon.marchi@efficios.com>
7215
7216 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7217 (allocate_piece_closure): Set "per_objfile" member.
7218 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7219 (locexpr_describe_location, loclist_describe_location): Use new
7220 member.
7221 * dwarf2/read.c (read_call_site_scope)
7222 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7223 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7224 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7225 handle_data_member_location): Set per_objfile member.
7226 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7227 member.
7228 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7229
d3473f0c
TT
72302020-05-27 Tom Tromey <tom@tromey.com>
7231
7232 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7233 allocate_signatured_type>: Declare new methods.
7234 <m_num_psymtabs>: New member.
7235 (struct dwarf2_per_cu_data) <index>: New member.
7236 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7237 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7238 (create_cu_from_index_list): Use allocate_per_cu.
7239 (create_signatured_type_table_from_index)
7240 (create_signatured_type_table_from_debug_names)
7241 (create_debug_type_hash_table, add_type_unit)
7242 (read_comp_units_from_section): Use allocate_signatured_type.
7243
5717c425
TT
72442020-05-27 Tom Tromey <tom@tromey.com>
7245
7246 * psymtab.c (partial_map_expand_apply)
7247 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7248 (psym_lookup_global_symbol_language)
7249 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7250 (psym_print_stats, psym_expand_symtabs_for_function)
7251 (psym_map_symbol_filenames, psym_map_matching_symbols)
7252 (psym_expand_symtabs_matching)
7253 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7254 (maintenance_check_psymtabs): Update.
7255 * psympriv.h (struct partial_symtab) <readin_p,
7256 get_compunit_symtab>: Add objfile parameter.
7257 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7258 Likewise.
7259 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7260 get_compunit_symtab>: Likewise.
7261 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7262
45940949
TT
72632020-05-27 Tom Tromey <tom@tromey.com>
7264
7265 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7266 member.
7267 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7268 (create_cu_from_index_list)
7269 (create_signatured_type_table_from_index)
7270 (create_signatured_type_table_from_debug_names)
7271 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7272 (dwarf2_create_include_psymtab)
7273 (create_debug_type_hash_table, add_type_unit)
7274 (create_type_unit_group, read_comp_units_from_section)
7275 (dwarf2_compute_name, create_cus_hash_table)
7276 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7277 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7278 obstack.
7279 (dw2_get_real_path): Likewise. Change argument to
7280 dwarf2_per_objfile.
7281
f8c6d152
LM
72822020-05-27 Luis Machado <luis.machado@linaro.org>
7283
7284 PR tdep/26000
7285 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7286 for ldrd (immediate).
7287
e98d2e6d
PW
72882020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7289
7290 * command.h: Add comment giving the name of class_tui.
7291 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7292 create the fake command for the help for class_tui.
7293
53a47a3e
TT
72942020-05-26 Tom Tromey <tromey@adacore.com>
7295
7296 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7297 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7298 (val_atr): New function.
7299 (value_val_atr): Use it.
7300 * ada-valprint.c (print_optional_low_bound): Change low bound
7301 handling for enums.
7302 (val_print_packed_array_elements): Don't call discrete_position.
7303 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7304 discrete_position for enum types.
7305 * language.c (default_print_array_index): Change type.
7306 * language.h (struct language_defn) <la_print_array_index>: Add
7307 index_type parameter, change type of index_value.
7308 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7309 (default_print_array_index): Update.
7310 * valprint.c (maybe_print_array_index): Don't call
7311 value_from_longest. Update.
7312 (value_print_array_elements): Don't call discrete_position.
7313
0bc2354b
TT
73142020-05-26 Tom Tromey <tromey@adacore.com>
7315
7316 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7317 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7318
1218a4bf
CDA
73192020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7320
7321 PR gdb/13519
7322 * avr-tdep.c (avr_integer_to_address): Return data or code
7323 address accordingly to the second 'type' argument of the
7324 function.
7325
92651b1d
MW
73262020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7327
7328 * infcmd.c, inferior.h: (construct_inferior_arguments):
7329 Moved function from here to gdbsupport/common-inferior.{h,cc}
7330
0a4f5f8c
TT
73312020-05-23 Tom Tromey <tom@tromey.com>
7332
7333 Revert commit eca1f90c:
7334 * NEWS: Remove entry for completion styling.
7335 * completer.c (_rl_completion_prefix_display_length): Move
7336 declaration later.
7337 (gdb_fnprint): Revert.
7338 (gdb_display_match_list_1): Likewise.
7339 * cli/cli-style.c (completion_prefix_style)
7340 (completion_difference_style, completion_suffix_style): Remove.
7341 (_initialize_cli_style): Revert.
7342 * cli/cli-style.h (completion_prefix_style)
7343 (completion_difference_style, completion_suffix_style): Don't
7344 declare.
7345
e08bd6c5
PA
73462020-05-24 Pedro Alves <palves@redhat.com>
7347
7348 * symtab.c (completion_list_add_name): Return boolean indication
7349 of whether the symbol matched.
7350 (completion_list_add_symbol): Don't try to remove C++ aliases if
7351 the symbol didn't match in the first place.
7352 * symtab.h (completion_list_add_name): Return bool.
7353
ceacbf6e
SM
73542020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7355
7356 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7357 type::field.
7358
26f16254
JB
73592020-05-23 Joel Brobecker <brobecker@adacore.com>
7360
7361 GDB 9.2 released.
7362
eca1f90c
TT
73632020-05-23 Tom Tromey <tom@tromey.com>
7364
7365 * NEWS: Add entry for completion styling.
7366 * completer.c (_rl_completion_prefix_display_length): Move
7367 declaration earlier.
7368 (gdb_fnprint): Use completion_style.
7369 (gdb_display_match_list_1): Likewise.
7370 * cli/cli-style.c (completion_prefix_style)
7371 (completion_difference_style, completion_suffix_style): New
7372 globals.
7373 (_initialize_cli_style): Register new globals.
7374 * cli/cli-style.h (completion_prefix_style)
7375 (completion_difference_style, completion_suffix_style): Declare.
7376
51e2cfa2
PA
73772020-05-23 Pedro Alves <palves@redhat.com>
7378
7379 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7380 (parse_escape): Use ISDIGIT instead of isdigit.
7381 (puts_debug): Use gdb_isprint instead of isprint.
7382 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7383 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7384 ISSPACE instead of isspace.
7385 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7386 instead of isspace.
7387 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7388 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7389 instead of isxdigit and ISDIGIT instead of isdigit.
7390
80fc5e77
SM
73912020-05-22 Simon Marchi <simon.marchi@efficios.com>
7392
7393 * gdbtypes.h (struct type) <field>: New method.
7394 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7395 or type::field.
7396
3cabb6b0
SM
73972020-05-22 Simon Marchi <simon.marchi@efficios.com>
7398
7399 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7400 (TYPE_FIELDS): Use type::fields. Change all call sites that
7401 modify the propery to use type::set_fields instead.
7402
1f704f76
SM
74032020-05-22 Simon Marchi <simon.marchi@efficios.com>
7404
7405 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7406 type::num_fields instead.
7407
5e33d5f4
SM
74082020-05-22 Simon Marchi <simon.marchi@efficios.com>
7409
7410 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7411 methods.
7412 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7413 that modify the number of fields to use type::set_num_fields
7414 instead.
7415
9392ebb3
TT
74162020-05-22 Tom Tromey <tromey@adacore.com>
7417
7418 * compile/compile-object-load.h (munmap_list_free): Don't
7419 declare.
7420
7c13f4e8
AB
74212020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7422
7423 * annotate.c (annotate_source_line): Update return type, add call
7424 to update current symtab and line.
7425 * annotate.h (annotate_source_line): Update return type, and
7426 extend header comment.
7427 * source.c (info_line_command): Check annotation_level before
7428 calling annotate_source_line.
7429 * stack.c (print_frame_info): If calling annotate_source_line
7430 returns true, then don't print any other source line information.
7431
aa370940
SM
74322020-05-21 Simon Marchi <simon.marchi@efficios.com>
7433
7434 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7435
84d53fa9
SM
74362020-05-21 Simon Marchi <simon.marchi@efficios.com>
7437
7438 * coffread.c (patch_type): Remove NULL check before xfree.
7439 * corefile.c (set_gnutarget): Likewise.
7440 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7441 * exec.c (build_section_table): Likewise.
7442 * remote.c (remote_target::pass_signals): Likewise.
7443 * utils.c (n_spaces): Likewise.
7444 * cli/cli-script.c (document_command): Likewise.
7445 * i386-windows-tdep.c (core_process_module_section): Likewise.
7446 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7447
9d428aae
SM
74482020-05-20 Simon Marchi <simon.marchi@efficios.com>
7449
7450 * symfile.c (reread_symbols): Clear objfile's section_offsets
7451 vector and section indices, re-compute them by calling
7452 sym_offsets.
7453
250106a7
TT
74542020-05-20 Tom Tromey <tromey@adacore.com>
7455
7456 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7457 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7458
9a0bacfb
TV
74592020-05-20 Tom de Vries <tdevries@suse.de>
7460
7461 PR symtab/25833
7462 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7463
7b958a48
AM
74642020-05-20 Alan Modra <amodra@gmail.com>
7465
7466 PR 25993
7467 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7468 bfd_set_filename.
7469 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7470 passed to bfd_set_filename.
7471 * symfile-mem.c (add_vsyscall_page): Likewise for string
7472 passed to symbol_file_add_from_memory.
7473 (symbol_file_add_from_memory): Make name param a const char* and
7474 don't strdup.
7475
c7e97679
AM
74762020-05-20 Alan Modra <amodra@gmail.com>
7477
7478 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7479 rather than accessing bfd->filename directly.
7480 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7481 and use bfd_section_name.
7482 * dwarf2/frame.c (decode_frame_entry): Likewise.
7483 * exec.c (exec_set_section_address): Likewise.
7484 * solib-aix.c (solib_aix_bfd_open): Likewise.
7485 * stap-probe.c (get_stap_base_address): Likewise.
7486 * symfile.c (reread_symbols): Likewise.
7487
563c591b
TT
74882020-05-19 Tom Tromey <tromey@adacore.com>
7489
7490 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7491
f408d82c
SM
74922020-05-19 Simon Marchi <simon.marchi@efficios.com>
7493
7494 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7495
98c59b52
PA
74962020-05-19 Pedro Alves <palves@redhat.com>
7497
7498 * NEWS (set exec-file-mismatch): Adjust entry.
7499 * exec.c: Include "build-id.h".
7500 (validate_exec_file): Try to match build IDs instead of filenames.
7501 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7502 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7503 and pass down 'warn_if_slow'.
7504 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7505 gdb_bfd_open_closure to pass it down.
7506 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7507
4111f652
PA
75082020-05-19 Pedro Alves <palves@redhat.com>
7509
7510 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7511 * target.c (target_fileio_open_1): Rename to target_fileio_open
7512 and make extern. Use bool.
7513 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7514 (target_fileio_read_alloc_1): Adjust.
7515 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7516 (target_fileio_open_warn_if_slow): Delete declaration.
7517
ad80db5b
PA
75182020-05-19 Pedro Alves <palves@redhat.com>
7519
7520 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7521 Adjust all callers.
7522
1d6ce4d3
YS
75232020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7524
7525 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7526 whether disp is negative.
7527
9005fbbb
SM
75282020-05-19 Simon Marchi <simon.marchi@efficios.com>
7529
7530 * symfile.h (struct symfile_segment_data)
7531 <~symfile_segment_data>: Remove.
7532 <segment_info>: Change to std::vector.
7533 * symfile.c (default_symfile_segments): Update.
7534 * elfread.c (elf_symfile_segments): Update.
7535
68b888ff
SM
75362020-05-19 Simon Marchi <simon.marchi@efficios.com>
7537
7538 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7539 <segments>: New.
7540 <segment_bases, segment_sizes>: Remove.
7541 * symfile.c (default_symfile_segments): Update.
7542 * elfread.c (elf_symfile_segments): Update.
7543 * remote.c (remote_target::get_offsets): Update.
7544 * solib-target.c (solib_target_relocate_section_addresses):
7545 Update.
7546
62982abd
SM
75472020-05-19 Simon Marchi <simon.marchi@efficios.com>
7548
7549 * symfile.h (struct symfile_segment_data): Initialize fields.
7550 <~symfile_segment_data>: Add.
7551 (symfile_segment_data_up): New.
7552 (struct sym_fns) <sym_segments>: Return a
7553 symfile_segment_data_up.
7554 (default_symfile_segments): Return a symfile_segment_data_up.
7555 (free_symfile_segment_data): Remove.
7556 (get_symfile_segment_data): Return a symfile_segment_data_up.
7557 * symfile.c (default_symfile_segments): Likewise.
7558 (get_symfile_segment_data): Likewise.
7559 (free_symfile_segment_data): Remove.
7560 (symfile_find_segment_sections): Update.
7561 * elfread.c (elf_symfile_segments): Return a
7562 symfile_segment_data_up.
7563 * remote.c (remote_target::get_offsets): Update.
7564 * solib-target.c (solib_target_relocate_section_addresses):
7565 Update.
7566 * symfile-debug.c (debug_sym_segments): Return a
7567 symfile_segment_data_up.
7568
7f204339
RO
75692020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7570
e52a0f1b
RO
7571 PR build/25981
7572 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7573 Hardcode register numbers.
7574
7f204339
RO
7575 PR build/25981
7576 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7577 procfs_find_LDT_entry): Remove.
7578 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7579 procfs_find_LDT_entry): Remove.
7580 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7581 Remove.
7582
7f32a4d5
PA
75832020-05-17 Pedro Alves <palves@redhat.com>
7584 Andrew Burgess <andrew.burgess@embecosm.com>
7585 Keno Fischer <keno@juliacomputing.com>
7586
7587 PR gdb/25741
7588 * breakpoint.c (build_target_condition_list): Update comments.
7589 (build_target_command_list): Update comments and skip matching
7590 locations.
7591 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7592 a separate function. Simplify "set breakpoint auto-hw off"
7593 handling.
7594 (insert_breakpoints): Update comment.
7595 (tracepoint_locations_match): New parameter. For breakpoints,
7596 compare location types too, if the caller wants to.
7597 (handle_automatic_hardware_breakpoints): New functions.
7598 (bp_location_is_less_than): Also sort by location type and
7599 hardware breakpoint length.
7600 (update_global_location_list): Handle "set breakpoint auto-hw on"
7601 here.
7602 (update_breakpoint_locations): Ask breakpoint_locations_match to
7603 ignore location types.
7604
7d93a1e0
SM
76052020-05-16 Simon Marchi <simon.marchi@efficios.com>
7606
7607 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7608 type::name instead.
7609
d0e39ea2
SM
76102020-05-16 Simon Marchi <simon.marchi@efficios.com>
7611
7612 * gdbtypes.h (struct type) <name, set_name>: New methods.
7613 (TYPE_CODE): Use type::name. Change all call sites used to set
7614 the name to use type::set_name instead.
7615
2dab0c7b
TT
76162020-05-16 Tom Tromey <tom@tromey.com>
7617
7618 * top.c (quit_force): Update.
7619 * infrun.c (handle_no_resumed): Update.
7620 * top.h (all_uis): New function.
7621 (ALL_UIS): Remove.
7622
59f7bd8d
SM
76232020-05-16 Simon Marchi <simon.marchi@efficios.com>
7624
7625 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7626
9bf058f0
PA
76272020-05-16 Pedro Alves <palves@redhat.com>
7628
7629 * ia64-linux-nat.c
7630 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7631 Declare method.
7632 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7633
8f86ae1a
SM
76342020-05-15 Simon Marchi <simon.marchi@efficios.com>
7635
7636 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7637 (sparc64_adi_info): Likewise.
7638
d6bc0792
TT
76392020-05-15 Tom Tromey <tom@tromey.com>
7640
7641 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7642 block_objfile.
7643 (lookup_objfile_from_block): Remove.
7644 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7645 (lookup_global_symbol): Use block_objfile.
7646 * symtab.h (lookup_objfile_from_block): Don't declare.
7647 * printcmd.c (clear_dangling_display_expressions): Use
7648 block_objfile.
7649 * parse.c (operator_check_standard): Use block_objfile.
7650
8c14c3a3
TT
76512020-05-15 Tom Tromey <tom@tromey.com>
7652
7653 * language.c (language_alloc_type_symbol): Set
7654 SYMBOL_SECTION.
7655 * symtab.c (initialize_objfile_symbol): Remove.
7656 (allocate_symbol): Remove.
7657 (allocate_template_symbol): Remove.
7658 * dwarf2/read.c (fixup_go_packaging): Use "new".
7659 (new_symbol): Use "new".
7660 (read_variable): Don't call initialize_objfile_symbol. Use
7661 "new".
7662 (read_func_scope): Use "new".
7663 * xcoffread.c (process_xcoff_symbol): Don't call
7664 initialize_objfile_symbol.
7665 (SYMBOL_DUP): Remove.
7666 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7667 "new".
7668 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7669 (allocate_template_symbol): Don't declare.
7670 (struct symbol): Add copy constructor. Change defaults.
7671 * jit.c (finalize_symtab): Use "new".
7672 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7673 Use "new".
7674 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7675 (common_block_end): Use "new".
7676 * mdebugread.c (parse_symbol): Use "new".
7677 (new_symbol): Likewise.
7678
5b4a1a8d
PW
76792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7680
7681 * NEWS: Mention changes to help and apropos.
7682
57b4f16e
PW
76832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7684
7685 * command.h (enum command_class): Improve comments, document
7686 that class_alias is for user-defined aliases, give the class
7687 name for each class, remove unused class_xdb.
7688 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7689 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7690 by a precise class.
7691 * infcmd.c (_initialize_infcmd): Likewise.
7692 * reverse.c (_initialize_reverse): Likewise.
7693 * stack.c (_initialize_stack): Likewise.
7694 * symfile.c (_initialize_symfile): Likewise.
7695 * tracepoint.c (_initialize_tracepoint): Likewise.
7696
7c05caf7
PW
76972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7698
7699 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7700 when their aliased command is traversed.
7701 (help_cmd): Add fput_command_names_styled call to
7702 output command name and aliases when command has an alias.
7703
3b3aaacb
PW
77042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7705
7706 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7707 * cli/cli-decode.c (help_cmd_list): Declare as static,
7708 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7709 a command together with the command.
7710 (fput_command_name_styled, fput_command_names_styled): New functions.
7711 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7712 fput_command_name_styled.
7713 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7714 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7715
7aa1b46f
PW
77162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7717
7718 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7719 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7720 * command.h (cmd_show_list): Likewise.
7721 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7722 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7723
89bcba74
PW
77242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7725
7726 * unittests/command-def-selftests.c (traverse_command_structure):
7727 Verify all commands of a list have the same prefix command and
7728 that only the top cmdlist commands have a null prefix.
7729
3f4d92eb
PW
77302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7731
7732 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7733 as prefix, not one of its aliases.
7734 (set_cmd_prefix): Remove.
7735 (do_add_cmd): Centralize the setting of the prefix of a command, when
7736 command is defined after its full chain of prefix commands.
7737 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7738 (add_setshow_cmd_full): Likewise.
7739 (update_prefix_field_of_prefixed_commands): New function.
7740 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7741 update_prefix_field_of_prefixed_commands.
7742 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7743 addresses of remote_set_cmdlist and remote_show_cmdlist given
7744 as argument, not the address of an argument.
7745 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7746 * gdb/remote.c (_initialize_remote): Likewise.
7747
0605465f
PW
77482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7749
7750 * cli/cli-cmds.c (alias_command): Check for an existing alias
7751 using lookup_cmd_composition, as valid_command_p is too strict
7752 and forbids aliases that are the prefix of an existing alias
7753 or command.
7754 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7755 command is properly recognised as a valid command.
7756
58e6ac70
PW
77572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7758
7759 * unittests/help-doc-selftests.c: Rename to
7760 unittests/command-def-selftests.c
7761 * unittests/command-def-selftests.c (help_doc_tests): Update some
7762 comments.
7763 (command_structure_tests, traverse_command_structure): New namespace
7764 and function.
7765 (command_structure_invariants_tests): New function.
7766 (_initialize_command_def_selftests) Renamed from
7767 _initialize_help_doc_selftests, register command_structure_invariants
7768 selftest.
7769
a7b9ceb8
PW
77702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7771
7772 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7773 an alias of 'show'.
7774
b2188a06
JB
77752020-05-15 Joel Brobecker <brobecker@adacore.com>
7776
7777 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7778 ada_is_fixed_point_type. Update all callers.
7779 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7780 all callers.
7781 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7782 Update all callers.
7783 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7784 print_fixed_point_type. Update all callers.
7785 * ada-valprint.c (ada_value_print_num): Replace call to
7786 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7787
a51951c2
KB
77882020-05-14 Kevin Buettner <kevinb@redhat.com>
7789
7790 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7791 processors.
7792 (cpu_supports_bts): Add CV_AMD case.
7793
29d6859f
LM
77942020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7795 Simon Marchi <simon.marchi@efficios.com>
7796
7797 * infrun.c (stop_all_threads): Collect multiple wait events at
7798 each pass.
7799
78134374
SM
78002020-05-14 Simon Marchi <simon.marchi@efficios.com>
7801
7802 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7803 type::code instead.
7804
67607e24
SM
78052020-05-14 Simon Marchi <simon.marchi@efficios.com>
7806
7807 * gdbtypes.h (struct type) <code, set_code>: New methods.
7808 (TYPE_CODE): Use type::code. Change all call sites used to set
7809 the code to use type::set_code instead.
7810
a05575d3
TBA
78112020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7812 Tom de Vries <tdevries@suse.de>
7813 Pedro Alves <palves@redhat.com>
7814
7815 PR threads/25478
7816 * infrun.c (stop_all_threads): Do NOT ignore
7817 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7818 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7819 received.
7820 (handle_no_resumed): Remove code handling a live inferior with no
7821 threads.
7822 * remote.c (has_single_non_exited_thread): New.
7823 (remote_target::update_thread_list): Do not delete a thread if is
7824 the last thread of the process.
7825 * thread.c (thread_select): Call delete_exited_threads instead of
7826 prune_threads.
7827
6ad82919
TBA
78282020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7829
7830 * infrun.c (stop_all_threads): Enable/disable thread events of all
7831 targets. Move a debug message denoting the end of the function
7832 into the SCOPED_EXIT block.
7833
d890404b
TBA
78342020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7835
7836 * process-stratum-target.h: Include <set>.
7837 (all_non_exited_process_targets, switch_to_target_no_thread): New
7838 function declarations.
7839 * process-stratum-target.c (all_non_exited_process_targets)
7840 (switch_to_target_no_thread): New function implementations.
7841
293b3ebc
TBA
78422020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7843
7844 * infrun.c (handle_inferior_event): Extract out a piece of code
7845 into...
7846 (mark_non_executing_threads): ...this new function.
7847
7ca9b62a
TBA
78482020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7849
7850 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7851 use.
7852
fc75c28b
TBA
78532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7854
7855 * regcache.c (regcache_read_pc_protected): New function
7856 implementation that returns 0 if the PC cannot read via
7857 'regcache_read_pc'.
7858 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7859 instead of 'regcache_read_pc'.
7860 (keep_going_pass_signal): Ditto.
7861
a89febbd
TT
78622020-05-13 Tom Tromey <tromey@adacore.com>
7863
7864 * ada-lang.c (align_value): Remove.
7865 (ada_template_to_fixed_record_type_1): Use align_up.
7866
f7e23710
TBA
78672020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7868
7869 * async-event.c: Update the copyright year.
7870 * async-event.h: Update the copyright year.
7871
02ff80c2
SM
78722020-05-12 Simon Marchi <simon.marchi@efficios.com>
7873
7874 * objfiles.h (is_addr_in_objfile,
7875 shared_objfile_contains_address_p): Return bool.
7876 * objfile.c (is_addr_in_objfile,
7877 shared_objfile_contains_address_p): Return bool.
7878
4fd6c7e8
TT
78792020-05-11 Tom Tromey <tromey@adacore.com>
7880
7881 * cli/cli-cmds.c (info_command): Restore.
7882 (_initialize_cli_cmds): Use add_prefix_command for "info".
7883 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7884
5eb68a39
TT
78852020-05-11 Tom Tromey <tromey@adacore.com>
7886
7887 * ada-lang.c (ada_value_primitive_field): Now public.
7888 * ada-lang.h (ada_value_primitive_field): Declare.
7889 * ada-valprint.c (print_field_values): Use
7890 ada_value_primitive_field for wrapper fields.
7891
7666722f
TV
78922020-05-11 Tom de Vries <tdevries@suse.de>
7893
7894 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7895 MODULE_DOMAIN.
7896
3ee6bb11
TV
78972020-05-11 Tom de Vries <tdevries@suse.de>
7898
7899 PR symtab/25941
7900 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7901 with length 0, if not gdb-produced.
7902 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7903
43434996
TV
79042020-05-09 Tom de Vries <tdevries@suse.de>
7905
7906 PR gdb/25955
7907 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7908 calculation.
7909
2f78cffc
TT
79102020-05-09 Tom Tromey <tom@tromey.com>
7911
7912 * top.c (server_command): Now bool.
7913 * top.h (server_command): Now bool.
7914
4f7bc5ed
TT
79152020-05-08 Tom Tromey <tromey@adacore.com>
7916
7917 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7918 already being processed.
7919
8be4b118
TT
79202020-05-08 Tom Tromey <tom@tromey.com>
7921
7922 * printcmd.c (struct display) <next>: Remove.
7923 <display>: New constructor.
7924 <exp_string>: Now a std::string.
7925 <enabled_p>: Now a bool.
7926 (display_number): Move definition earlier.
7927 (displays): Rename from display_chain. Now a std::vector.
7928 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7929 (display_command): Update.
7930 (do_one_display, disable_display)
7931 (enable_disable_display_command, do_enable_disable_display):
7932 Update.
7933 (free_display): Remove.
7934 (clear_displays): Rewrite.
7935 (delete_display): Update.
7936 (map_display_numbers): Use function_view. Remove "data"
7937 parameter. Update.
7938 (do_delete_display): Remove.
7939 (undisplay_command): Update.
7940 (do_one_display, do_displays, disable_display)
7941 (info_display_command): Update.
7942 (do_enable_disable_display): Remove.
7943 (enable_disable_display_command)
7944 (clear_dangling_display_expressions): Update.
7945
94c93c35
TT
79462020-05-08 Tom Tromey <tom@tromey.com>
7947
7948 * symtab.c (set_symbol_cache_size)
7949 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7950 (maintenance_print_symbol_cache_statistics): Update.
7951 * symmisc.c (print_symbol_bcache_statistics)
7952 (print_objfile_statistics, maintenance_print_objfiles)
7953 (maintenance_info_symtabs, maintenance_check_symtabs)
7954 (maintenance_expand_symtabs, maintenance_info_line_tables):
7955 Update.
7956 * symfile-debug.c (set_debug_symfile): Update.
7957 * source.c (forget_cached_source_info): Update.
7958 * python/python.c (gdbpy_progspaces): Update.
7959 * psymtab.c (maintenance_info_psymtabs): Update.
7960 * probe.c (parse_probes): Update.
7961 * linespec.c (iterate_over_all_matching_symtabs)
7962 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7963 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7964 * exec.c (exec_target::close): Update.
7965 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7966 * breakpoint.c (print_one_breakpoint_location)
7967 (create_longjmp_master_breakpoint)
7968 (create_std_terminate_master_breakpoint): Update.
7969 * progspace.c (program_spaces): Now a std::vector.
7970 (maybe_new_address_space): Update.
7971 (add_program_space): Remove.
7972 (program_space::program_space): Update.
7973 (remove_program_space): Update.
7974 (number_of_program_spaces): Remove.
7975 (print_program_space, update_address_spaces): Update.
7976 * progspace.h (program_spaces): Change type.
7977 (ALL_PSPACES): Remove.
7978 (number_of_program_spaces): Don't declare.
7979 (struct program_space) <next>: Remove.
7980
a1fd1ac9
TT
79812020-05-08 Tom Tromey <tom@tromey.com>
7982
7983 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7984 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7985 (enable_break): Update.
7986 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7987 (frv_fdpic_find_canonical_descriptor): Update.
7988 (frv_fetch_objfile_link_map): Update.
7989 * progspace.c (program_space::free_all_objfiles): Update.
7990 (program_space::solibs): New method.
7991 * progspace.h (struct program_space) <solibs>: New method.
7992 * solist.h (master_so_list): Don't declare.
7993 (ALL_SO_LIBS): Remove.
7994 * solib.h (so_list_head): Remove.
7995 (update_solib_list): Update comment.
7996 * solib.c (master_so_list): Remove.
7997 (solib_used, update_solib_list, solib_add)
7998 (info_sharedlibrary_command, clear_solib)
7999 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8000
38eae084
TT
80012020-05-08 Tom Tromey <tom@tromey.com>
8002
8003 * extension.c (extension_languages): Now a std::array.
8004 (ALL_EXTENSION_LANGUAGES): Remove.
8005 (get_ext_lang_defn, get_ext_lang_of_file)
8006 (eval_ext_lang_from_control_command): Update.
8007 (finish_ext_lang_initialization)
8008 (auto_load_ext_lang_scripts_for_objfile)
8009 (ext_lang_type_printers::ext_lang_type_printers)
8010 (apply_ext_lang_type_printers)
8011 (ext_lang_type_printers::~ext_lang_type_printers)
8012 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8013 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8014 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8015 (get_matching_xmethod_workers, ext_lang_colorize)
8016 (ext_lang_before_prompt): Update.
8017 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8018
596dc4ad
TT
80192020-05-08 Tom Tromey <tom@tromey.com>
8020
8021 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8022 overload.
8023 <swap_string, m_string>: Remove.
8024 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8025 Update.
8026 * stabsread.c (define_symbol, read_type): Update.
8027 * linespec.c (find_linespec_symbols): Update.
8028 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8029 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8030 * dbxread.c (read_dbx_symtab): Update.
8031 * cp-support.h (cp_canonicalize_string_full)
8032 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8033 Return unique_xmalloc_ptr.
8034 * cp-support.c (inspect_type): Update.
8035 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8036 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8037 Likewise.
8038 * c-typeprint.c (print_name_maybe_canonical): Update.
8039 * break-catch-throw.c (check_status_exception_catchpoint):
8040 Update.
8041
bf4cb9be
TV
80422020-05-08 Tom de Vries <tdevries@suse.de>
8043
8044 * infrun.c (follow_fork): Copy current_line and current_symtab to
8045 child thread.
8046
a1b68f28
SM
80472020-05-07 Simon Marchi <simon.marchi@efficios.com>
8048
8049 * async-event.c (struct async_signal_handler, struct
8050 async_event_handler): Reformat, remove typedef.
8051
98d48915
SM
80522020-05-07 Simon Marchi <simon.marchi@efficios.com>
8053
8054 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8055 access thistype->main_type->dyn_prop_list directly.
8056
7aa91313
SM
80572020-05-07 Simon Marchi <simon.marchi@efficios.com>
8058
8059 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8060 (remove_dyn_prop): Remove. Update all users to use
8061 type::remove_dyn_prop.
8062 * gdbtypes.c (remove_dyn_prop): Rename to...
8063 (type::remove_dyn_prop): ... this.
8064
5c54719c
SM
80652020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8066
8067 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8068 (add_dyn_prop): Remove. Update all users to use
8069 type::add_dyn_prop.
8070 * gdbtypes.c (add_dyn_prop): Rename to...
8071 (type::add_dyn_prop): ... this.
8072
24e99c6c
SM
80732020-05-07 Simon Marchi <simon.marchi@efficios.com>
8074
8075 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8076 (get_dyn_prop): Remove. Update all users to use
8077 type::dyn_prop.
8078 * gdbtypes.c (get_dyn_prop): Rename to...
8079 (type::dyn_prop): ... this.
8080
0d4bf016
SM
80812020-05-06 Simon Marchi <simon.marchi@efficios.com>
8082
8083 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8084
ac4a4f1c
SM
80852020-05-06 Simon Marchi <simon.marchi@efficios.com>
8086
8087 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8088 instruction, skip it if it's there.
8089
a3bbacc1
SM
80902020-05-05 Simon Marchi <simon.marchi@efficios.com>
8091
8092 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8093
c3236f84
SM
80942020-05-04 Simon Marchi <simon.marchi@efficios.com>
8095
8096 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8097 * gdbtypes.c (recursive_dump_type): Remove use of
8098 TYPE_INCOMPLETE.
8099
3b6acaee
TT
81002020-05-03 Tom Tromey <tom@tromey.com>
8101
8102 * breakpoint.c (catch_command, tcatch_command): Remove.
8103 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8104 add_show_prefix_cmd.
8105 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8106 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8107 Remove.
8108 (add_internal_problem_command): Use add_basic_prefix_cmd,
8109 add_show_prefix_cmd.
8110 * mips-tdep.c (set_mipsfpu_command): Remove.
8111 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8112 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8113 (_initialize_index_cache): Use add_basic_prefix_cmd.
8114 * memattr.c (dummy_cmd): Remove.
8115 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8116 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8117 (_initialize_tui_win): Use add_basic_prefix_cmd,
8118 add_show_prefix_cmd.
8119 * cli/cli-logging.c (set_logging_command): Remove.
8120 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8121 add_show_prefix_cmd.
8122 (show_logging_command): Remove.
8123 * target.c (target_command): Remove.
8124 (add_target): Use add_basic_prefix_cmd.
8125
a51119cd
HD
81262020-05-02 Hannes Domani <ssbssa@yahoo.de>
8127
8128 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8129
652fc23a 81302020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8131
652fc23a
PW
8132 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8133 info_command.
8134
117539e6
KR
81352020-04-30 Kamil Rytarowski <n54@gmx.com>
8136
8137 * nbsd-nat.c (nbsd_enable_proc_events)
8138 (nbsd_nat_target::post_startup_inferior): Add.
8139 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8140 (nbsd_nat_target::update_thread_list): Rewrite.
8141 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8142 "PTRACE_LWP_CREATE".
8143 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8144
102e38eb 81452020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8146
102e38eb
PW
8147 * stack.c (_initialize_stack): Remove duplicated creation
8148 of "frame" command and "f" alias.
8149
ee9d1e5f
HD
81502020-04-30 Hannes Domani <ssbssa@yahoo.de>
8151
8152 PR gdb/18706
8153 * gdbtypes.c (check_typedef): Calculate size of array of
8154 stubbed type.
8155
627c7fb8
HD
81562020-04-30 Hannes Domani <ssbssa@yahoo.de>
8157
8158 PR gdb/15559
8159 * i386-tdep.c (i386_push_dummy_call): Call
8160 i386_thiscall_push_dummy_call.
8161 (i386_thiscall_push_dummy_call): New function.
8162 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8163 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8164 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8165
ffc2844e
SM
81662020-04-29 Simon Marchi <simon.marchi@efficios.com>
8167
8168 * gdbarch.sh (do_read): Add shellcheck disable directive for
8169 warning SC2162.
8170
1207375d
SM
81712020-04-29 Simon Marchi <simon.marchi@efficios.com>
8172
8173 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8174 "referenced but not assigned" warning.
8175
9fdb2916
SM
81762020-04-29 Simon Marchi <simon.marchi@efficios.com>
8177
8178 * gdbarch.sh: Remove code that sets fallbackdefault.
8179
759cea5e
SM
81802020-04-29 Simon Marchi <simon.marchi@efficios.com>
8181
8182 * gdbarch.sh: Use shell operators && and || instead of
8183 -a and -o.
8184
cb02ab24
SM
81852020-04-29 Simon Marchi <simon.marchi@efficios.com>
8186
8187 * gdbarch.sh: Use $(...) instead of `...`.
8188
a6fc5ffc
SM
81892020-04-29 Simon Marchi <simon.marchi@efficios.com>
8190
8191 * gdbarch.sh: Use double quotes around variables.
8192
8d113d13
SM
81932020-04-29 Simon Marchi <simon.marchi@efficios.com>
8194
8195 * gdbarch.sh: Use %s with printf, instead of variables in the
8196 format string.
8197
ed6acedd
TT
81982020-04-29 Tom Tromey <tromey@adacore.com>
8199
8200 PR ada/25875:
8201 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8202 type fields here.
8203 (read_enumeration_type): Call
8204 update_enumeration_type_from_children later. Update comments.
8205 (process_enumeration_scope): Don't create type fields.
8206
b68b1b58
KR
82072020-04-29 Kamil Rytarowski <n54@gmx.com>
8208
8209 * nbsd-tdep.c: Include "xml-syscall.h".
8210 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8211
f94b2e03
KR
82122020-04-29 Kamil Rytarowski <n54@gmx.com>
8213
8214 * nbsd-nat.c: Include "sys/wait.h".
8215 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8216 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8217 (nbsd_nat_target::remove_exec_catchpoint)
8218 (nbsd_nat_target::set_syscall_catchpoint): Add.
8219 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8220 (nbsd_nat_target::insert_exec_catchpoint)
8221 (nbsd_nat_target::remove_exec_catchpoint)
8222 (nbsd_nat_target::set_syscall_catchpoint): Add.
8223 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8224 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8225 `nbsd_get_syscall_number'.
8226
fc49bc72
TT
82272020-04-29 Tom Tromey <tom@tromey.com>
8228
8229 * stack.c (print_block_frame_labels): Remove.
8230
d642b692
HD
82312020-04-29 Hannes Domani <ssbssa@yahoo.de>
8232
8233 PR gdb/17320
8234 * ada-valprint.c (val_print_packed_array_elements): Move array
8235 end bracket to new line.
8236 (ada_val_print_string): Remove extra spaces before first array
8237 element.
8238 * c-valprint.c (c_value_print_array): Likewise.
8239 * m2-valprint.c (m2_print_array_contents): Likewise.
8240 (m2_value_print_inner): Likewise.
8241 * p-valprint.c (pascal_value_print_inner): Likewise.
8242 * valprint.c (generic_val_print_array): Likewise.
8243 (value_print_array_elements): Move first array element and array
8244 end bracket to new line.
8245
ea90f227
TV
82462020-04-29 Tom de Vries <tdevries@suse.de>
8247
8248 PR symtab/25889
8249 * linespec.c (find_method): Fix ix calculation.
8250
4498ef4f
KR
82512020-04-28 Kamil Rytarowski <n54@gmx.com>
8252
8253 * syscalls/update-netbsd.sh: New file.
8254 * syscalls/netbsd.xml: Regenerate.
8255 * data-directory/Makefile.in: Register `netbsd.xml' in
8256 `SYSCALLS_FILES'.
8257
a55e30b5
SM
82582020-04-28 Simon Marchi <simon.marchi@efficios.com>
8259
8260 * syscalls/update-freebsd.sh: Add double quotes.
8261
2b2fbab8
TT
82622020-04-28 Tom Tromey <tom@tromey.com>
8263
8264 * NEWS: Update.
8265 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8266 (cmdpy_init): Allow class_tui.
8267
a65189c9
TV
82682020-04-28 Mark Williams <mark@myosotissp.com>
8269
8270 PR gdb/24480
8271 * dwarf2read.c: Add missing assingments to list_in_scope when
8272 start_symtab was already called.
8273
1b95cdb7
SM
82742020-04-28 Simon Marchi <simon.marchi@efficios.com>
8275
8276 PR gdb/25881
8277 * dwarf2/read.c (offset_map_type): Use
8278 gdb:hash_enum<sect_offset> as hash function.
8279
15cd93d0
TV
82802020-04-28 Tom de Vries <tdevries@suse.de>
8281
8282 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8283 with DW_AT_signature.
8284
1eb39914
SM
82852020-04-27 Simon Marchi <simon.marchi@efficios.com>
8286
8287 * configure.ac: Remove check for fs_base/gs_base in
8288 user_regs_struct.
8289 * configure: Re-generate.
8290 * config.in: Re-generate.
8291 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8292 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8293 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8294
991a3e2e
LM
82952020-04-27 Luis Machado <luis.machado@linaro.org>
8296
8297 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8298 problematic inline frame unwinding situation.
8299 * frame.c (frame_id_computed_p): New function.
8300 * frame.h (frame_id_computed_p): New prototype.
8301
361ba0e8
TT
83022020-04-26 Tom Tromey <tom@tromey.com>
8303
8304 * command.h (enum command_class) <class_pseudo>: Remove.
8305
bc3609fd
PW
83062020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8307
8308 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8309 and whitespace.
8310
b9771db7
KR
83112020-04-25 Kamil Rytarowski <n54@gmx.com>
8312
ec16513e
SM
8313 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8314 `PT_GET_PROCESS_STATE' block.
b9771db7 8315
7151c1af
TT
83162020-04-24 Tom Tromey <tom@tromey.com>
8317
8318 * symtab.h (symbol_get_demangled_name): Don't declare.
8319 * symtab.c (symbol_get_demangled_name): Remove.
8320 (general_symbol_info::natural_name)
8321 (general_symbol_info::demangled_name): Update.
8322
906bb4c5
TT
83232020-04-24 Tom Tromey <tom@tromey.com>
8324
8325 PR rust/25025:
8326 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8327
bcfe6157
TT
83282020-04-24 Tom Tromey <tom@tromey.com>
8329
8330 PR symtab/12707:
8331 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8332 exists.
8333 (new_symbol): Likewise.
8334 * compile/compile-object-load.c (get_out_value_type): Use
8335 symbol_matches_search_name.
8336
f049a313
TT
83372020-04-24 Tom Tromey <tom@tromey.com>
8338
8339 * dwarf2/read.c (add_partial_symbol): Do not call
8340 compute_and_set_names.
8341
76e288d1
TT
83422020-04-24 Tom Tromey <tom@tromey.com>
8343
8344 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8345 overload.
8346
2467f4f6
TT
83472020-04-24 Tom Tromey <tom@tromey.com>
8348
8349 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8350 (add_psymbol_to_list): New overload. Make old overload call new
8351 one.
8352 * psympriv.h (add_psymbol_to_list): New overload.
8353
e61108c9
TT
83542020-04-24 Tom Tromey <tom@tromey.com>
8355
8356 * dwarf2/read.c (partial_die_info::read) <case
8357 DW_AT_linkage_name>: Use value_as_string.
8358 (dwarf2_string_attr): Use value_as_string.
8359 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8360 method.
8361 * dwarf2/attribute.c (attribute::value_as_string): New method.
8362
8c87a452
TT
83632020-04-24 Tom Tromey <tom@tromey.com>
8364
8365 * symtab.c (general_symbol_info::natural_name)
8366 (general_symbol_info::demangled_name): Check for language_rust.
8367
787de330
TT
83682020-04-24 Tom Tromey <tom@tromey.com>
8369
8370 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8371 (dwarf2_physname): ... from here.
8372 (partial_die_info::read): Add Rust "{" hack.
8373
ff985671
TT
83742020-04-24 Tom Tromey <tom@tromey.com>
8375
8376 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8377 method.
8378 (symbol_set_demangled_name): Don't declare.
8379 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8380 symbol_set_demangled_name.
8381 (general_symbol_info::set_language)
8382 (general_symbol_info::compute_and_set_names): Update.
8383 * minsyms.c (minimal_symbol_reader::install): Update.
8384 * dwarf2/read.c (new_symbol): Update.
8385
1acda803
TT
83862020-04-24 Tom Tromey <tromey@adacore.com>
8387
8388 PR python/23662:
8389 * python/py-type.c (convert_field): Handle
8390 FIELD_LOC_KIND_DWARF_BLOCK.
8391 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8392 (typy_get_dynamic): Nw function.
8393 (type_object_getset): Add "dynamic".
8394 * NEWS: Add entry.
8395
d656f129
TT
83962020-04-24 Tom Tromey <tromey@adacore.com>
8397
8398 * ada-typeprint.c (print_choices, print_variant_part)
8399 (print_record_field_types_dynamic): New functions.
8400 (print_record_field_types): Use print_record_field_types_dynamic.
8401
7d79de9a
TT
84022020-04-24 Tom Tromey <tromey@adacore.com>
8403
8404 * dwarf2/read.c (handle_data_member_location): New overload.
8405 (dwarf2_add_field): Use it.
8406 (decode_locdesc): Add "computed" parameter. Update comment.
8407 * gdbtypes.c (is_dynamic_type_internal): Also look for
8408 FIELD_LOC_KIND_DWARF_BLOCK.
8409 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8410 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8411 virtual base classes.
8412 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8413 FIELD_LOC_KIND_DWARF_BLOCK.
8414
f8e89861
TT
84152020-04-24 Tom Tromey <tromey@adacore.com>
8416
8417 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8418 * gdbtypes.c (is_dynamic_type_internal): Check
8419 TYPE_HAS_DYNAMIC_LENGTH.
8420 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8421 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8422 New macros.
8423 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8424 constant.
8425
9c6a1327
TT
84262020-04-24 Tom Tromey <tromey@adacore.com>
8427
8428 * dwarf2/read.c (struct variant_field): Rewrite.
8429 (struct variant_part_builder): New.
8430 (struct nextfield): Remove "variant" field. Add "offset".
8431 (struct field_info): Add "current_variant_part" and
8432 "variant_parts".
8433 (alloc_discriminant_info): Remove.
8434 (alloc_rust_variant): New function.
8435 (quirk_rust_enum): Update.
8436 (dwarf2_add_field): Set "offset" member. Don't handle
8437 DW_TAG_variant_part.
8438 (offset_map_type): New typedef.
8439 (convert_variant_range, create_one_variant)
8440 (create_one_variant_part, create_variant_parts)
8441 (add_variant_property): New functions.
8442 (dwarf2_attach_fields_to_type): Call add_variant_property.
8443 (read_structure_type): Don't handle DW_TAG_variant_part.
8444 (handle_variant_part, handle_variant): New functions.
8445 (handle_struct_member_die): Use them.
8446 (process_structure_scope): Don't handle variant parts.
8447 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8448 (struct discriminant_info): Remove.
8449 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8450 (struct main_type) <flag_discriminated_union>: Remove.
8451 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8452 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8453 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8454 Update.
8455 * valops.c (value_union_variant): Remove.
8456 * value.h (value_union_variant): Don't declare.
8457
b249d2c2
TT
84582020-04-24 Tom Tromey <tromey@adacore.com>
8459
8460 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8461 (ada_value_primitive_packed_val): Update.
8462 * ada-valprint.c (ada_value_print_1): Update.
8463 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8464 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8465 just an address. Use evaluate_for_locexpr_baton.
8466 (dwarf2_evaluate_property): Update.
8467 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8468 array_view.
8469 * findvar.c (default_read_var_value): Update.
8470 * gdbtypes.c (compute_variant_fields_inner)
8471 (resolve_dynamic_type_internal): Update.
8472 (resolve_dynamic_type): Change type of valaddr parameter.
8473 * gdbtypes.h (resolve_dynamic_type): Update.
8474 * valarith.c (value_subscripted_rvalue): Update.
8475 * value.c (value_from_contents_and_address): Update.
8476
61122aa9
TT
84772020-04-24 Tom Tromey <tromey@adacore.com>
8478
8479 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8480 "push_initial_value" parameter.
8481 (dwarf2_evaluate_property): Likewise.
8482 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8483
ef83a141
TT
84842020-04-24 Tom Tromey <tromey@adacore.com>
8485
8486 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8487 (variant::matches, compute_variant_fields_recurse)
8488 (compute_variant_fields_inner, compute_variant_fields): New
8489 functions.
8490 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8491 Use resolved_type after type is made.
8492 (operator==): Add new cases.
8493 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8494 (struct discriminant_range, struct variant, struct variant_part):
8495 New.
8496 (union dynamic_prop_data) <variant_parts, original_type>: New
8497 members.
8498 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8499 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8500 constants.
8501 * value.c (unpack_bits_as_long): Now public.
8502 * value.h (unpack_bits_as_long): Declare.
8503
675127ec
TT
85042020-04-24 Tom Tromey <tromey@adacore.com>
8505
8506 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8507 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8508
9852ceef
HD
85092020-04-24 Hannes Domani <ssbssa@yahoo.de>
8510
8511 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8512
7632c6ce
KR
85132020-04-24 Kamil Rytarowski <n54@gmx.com>
8514
8515 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8516 (remove_fork_catchpoint, post_startup_inferior)
8517 (post_attach): Move...
8518 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8519 (remove_fork_catchpoint, post_startup_inferior)
8520 (post_attach): ...here.
8521 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8522 (remove_fork_catchpoint, post_startup_inferior)
8523 (post_attach): Move...
8524 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8525 (remove_fork_catchpoint, post_startup_inferior)
8526 (post_attach): ...here.
8527
7be2bb4f
TT
85282020-04-24 Tom Tromey <tromey@adacore.com>
8529
8530 * nat/windows-nat.h (struct windows_thread_info)
8531 <pc_adjusted>: New member.
8532 * windows-nat.c (windows_fetch_one_register): Check
8533 pc_adjusted.
8534 (windows_nat_target::get_windows_debug_event)
8535 (windows_nat_target::wait): Set pc_adjusted.
8536
f80cb3b4
TV
85372020-04-24 Tom de Vries <tdevries@suse.de>
8538
8539 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8540 Run gdb-add-index inside temp dir.
8541
29514b87
TT
85422020-04-23 Tom Tromey <tromey@adacore.com>
8543
8544 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8545 in loop.
8546
5939967b
LM
85472020-04-23 Luis Machado <luis.machado@linaro.org>
8548
8549 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8550 get_frame_register instead of gdbarch_unwind_pc.
8551
70bc38f5
TV
85522020-04-23 Tom de Vries <tdevries@suse.de>
8553
8554 * symtab.c (lookup_global_symbol): Prefer def over decl.
8555
de82891c
TV
85562020-04-23 Tom de Vries <tdevries@suse.de>
8557
8558 PR symtab/25807
8559 * block.c (best_symbol, better_symbol): Promote to external.
8560 * block.h (best_symbol, better_symbol): Declare.
8561 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8562 decl.
8563
ecc6c606
TT
85642020-04-23 Tom Tromey <tromey@adacore.com>
8565
8566 PR ada/25837:
8567 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8568 "const char *", not a "const std::string &".
8569 <name_and_matcher::operator==>: Update.
8570 * unittests/lookup_name_info-selftests.c: Change type of
8571 "result".
8572
740480b8
TT
85732020-04-23 Tom Tromey <tom@tromey.com>
8574
8575 * inferior.h (iterate_over_inferiors): Don't declare.
8576 * inferior.c (iterate_over_inferiors): Remove.
8577 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8578 Remove.
8579 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8580 use iterate_over_inferiors.
8581 (darwin_resume_inferior_it)
8582 (struct resume_inferior_threads_param)
8583 (darwin_resume_inferior_threads_it): Remove.
8584 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8585
ae3ab1f0
TV
85862020-04-23 Tom de Vries <tdevries@suse.de>
8587
8588 * blockframe.c (find_pc_partial_function): Use
8589 find_pc_sect_compunit_symtab rather than
8590 objfile->sf->qf->find_pc_sect_compunit_symtab.
8591
317d2668
TV
85922020-04-22 Tom de Vries <tdevries@suse.de>
8593
8594 PR symtab/25764
8595 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8596 in psymtabs.
8597
eea9e357
TV
85982020-04-22 Tom de Vries <tdevries@suse.de>
8599
8600 PR symtab/25801
8601 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8602 symtabs.
8603
3d5afab3
TV
86042020-04-22 Tom de Vries <tdevries@suse.de>
8605
8606 PR symtab/25700
8607 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8608 CU if already created.
8609
d43b7a2d
TBA
86102020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8611
8612 * infrun.c (displaced_step_fixup): Switch to the event_thread
8613 before calling displaced_step_restore, not after.
8614
d89edf9b
MM
86152020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8616
8617 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8618 its inferior is not recorded by us.
8619 (record_btrace_target_open): Replace call to
8620 all_non_exited_threads () with call to current_inferior
8621 ()->non_exited_threads ().
8622 (record_btrace_target::stop_recording): Likewise.
8623 (record_btrace_target::close): Likewise.
8624 (record_btrace_target::wait): Likewise.
8625 (record_btrace_target::record_stop_replaying): Likewise.
8626
5897fd49
MM
86272020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8628
8629 * btrace.c (btrace_enable): Throw an error on double enables and
8630 when enabling recording fails.
8631 (btrace_disable): Throw an error if the thread is not recorded.
8632
1a476b6d
MM
86332020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8634
8635 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8636 request if we do not have a thread_info.
8637
4778a5f8
TV
86382020-04-21 Tom de Vries <tdevries@suse.de>
8639
8640 PR gdb/25471
8641 * thread.c
8642 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8643 exception in get_frame_id.
8644
0fa7617d
TT
86452020-04-20 Tom Tromey <tromey@adacore.com>
8646
8647 * python/python.c (struct gdbpy_event): Mark move constructor as
8648 noexcept.
8649 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8650 constructor as noexcept.
8651 * completer.h (struct completion_result): Mark move constructor as
8652 noexcept.
8653 * completer.c (completion_result::completion_result): Use
8654 initialization style. Don't call reset_match_list.
8655
ad23bda0
MS
86562020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8657
8658 * MAINTAINERS (Write After Approval): Add myself.
8659
45e1f031
TT
86602020-04-18 Tom Tromey <tom@tromey.com>
8661
8662 * windows-tdep.c (init_w32_command_list)
8663 (w32_prefix_command_valid): Restore.
8664 (_initialize_windows_tdep): Call init_w32_command_list.
8665
08feed99
TT
86662020-04-18 Tom Tromey <tom@tromey.com>
8667
8668 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8669 * value.c (value_fn_field): Update.
8670 * valops.c (find_function_in_inferior)
8671 (value_allocate_space_in_inferior): Update.
8672 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8673 Update.
8674 * tui/tui-source.c (tui_source_window::set_contents): Update.
8675 * symtab.c (lookup_global_or_static_symbol)
8676 (find_function_start_sal_1, skip_prologue_sal)
8677 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8678 * symmisc.c (dump_msymbols, dump_symtab_1)
8679 (maintenance_print_one_line_table): Update.
8680 * symfile.c (init_entry_point_info, section_is_mapped)
8681 (list_overlays_command, simple_read_overlay_table)
8682 (simple_overlay_update_1): Update.
8683 * stap-probe.c (handle_stap_probe): Update.
8684 * stabsread.c (dbx_init_float_type, define_symbol)
8685 (read_one_struct_field, read_enum_type, read_range_type): Update.
8686 * source.c (info_line_command): Update.
8687 * python/python.c (gdbpy_source_objfile_script)
8688 (gdbpy_execute_objfile_script): Update.
8689 * python/py-type.c (save_objfile_types): Update.
8690 * python/py-objfile.c (py_free_objfile): Update.
8691 * python/py-inferior.c (python_new_objfile): Update.
8692 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8693 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8694 (maintenance_check_psymtabs): Update.
8695 * printcmd.c (info_address_command): Update.
8696 * objfiles.h (struct objfile) <arch>: New method, from
8697 get_objfile_arch.
8698 (get_objfile_arch): Don't declare.
8699 * objfiles.c (get_objfile_arch): Remove.
8700 (filter_overlapping_sections): Update.
8701 * minsyms.c (msymbol_is_function): Update.
8702 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8703 (output_nondebug_symbol): Update.
8704 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8705 (mdebug_expand_psymtab): Update.
8706 * machoread.c (macho_add_oso_symfile): Update.
8707 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8708 Update.
8709 * linux-fork.c (checkpoint_command): Update.
8710 * linespec.c (convert_linespec_to_sals): Update.
8711 * jit.c (finalize_symtab): Update.
8712 * infrun.c (insert_exception_resume_from_probe): Update.
8713 * ia64-tdep.c (ia64_find_unwind_table): Update.
8714 * hppa-tdep.c (internalize_unwinds): Update.
8715 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8716 Update.
8717 * gcore.c (call_target_sbrk): Update.
8718 * elfread.c (record_minimal_symbol, elf_symtab_read)
8719 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8720 (elf_gnu_ifunc_resolve_by_got): Update.
8721 * dwarf2/read.c (create_addrmap_from_index)
8722 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8723 (read_debug_names_from_section)
8724 (process_psymtab_comp_unit_reader, add_partial_symbol)
8725 (add_partial_subprogram, process_full_comp_unit)
8726 (read_file_scope, read_func_scope, read_lexical_block_scope)
8727 (read_call_site_scope, dwarf2_ranges_read)
8728 (dwarf2_record_block_ranges, dwarf2_add_field)
8729 (mark_common_block_symbol_computed, read_tag_pointer_type)
8730 (read_tag_string_type, dwarf2_init_float_type)
8731 (dwarf2_init_complex_target_type, read_base_type)
8732 (partial_die_info::read, partial_die_info::read)
8733 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8734 (dwarf2_fetch_die_loc_sect_off): Update.
8735 * dwarf2/loc.c (dwarf2_find_location_expression)
8736 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8737 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8738 (dwarf2_loc_desc_get_symbol_read_needs)
8739 (locexpr_describe_location_piece, locexpr_describe_location_1)
8740 (loclist_describe_location): Update.
8741 * dwarf2/index-write.c (write_debug_names): Update.
8742 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8743 * dtrace-probe.c (dtrace_process_dof): Update.
8744 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8745 (process_one_symbol): Update.
8746 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8747 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8748 (coff_read_enum_type): Update.
8749 * cli/cli-cmds.c (edit_command, list_command): Update.
8750 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8751 * breakpoint.c (create_overlay_event_breakpoint)
8752 (create_longjmp_master_breakpoint)
8753 (create_std_terminate_master_breakpoint)
8754 (create_exception_master_breakpoint, get_sal_arch): Update.
8755 * block.c (block_gdbarch): Update.
8756 * annotate.c (annotate_source_line): Update.
8757
0743fc83
TT
87582020-04-17 Tom Tromey <tromey@adacore.com>
8759
8760 * auto-load.c (show_auto_load_cmd): Remove.
8761 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8762 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8763 (maintenance_print_arc_command): Remove.
8764 * tui/tui-win.c (tui_command): Remove.
8765 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8766 * tui/tui-layout.c (tui_layout_command): Remove.
8767 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8768 * python/python.c (user_set_python, user_show_python): Remove.
8769 (_initialize_python): Use add_basic_prefix_cmd,
8770 add_show_prefix_cmd.
8771 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8772 (install_gdb_commands): Use add_basic_prefix_cmd,
8773 add_show_prefix_cmd.
8774 (info_guile_command): Remove.
8775 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8776 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8777 add_show_prefix_cmd.
8778 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8779 Remove do_set and do_show parameters.
8780 * cli/cli-style.c (set_style, show_style): Remove.
8781 (_initialize_cli_style): Use add_basic_prefix_cmd,
8782 add_show_prefix_cmd.
8783 (cli_style_option::add_setshow_commands): Remove do_set and
8784 do_show parameters.
8785 (cli_style_option::add_setshow_commands): Use
8786 add_basic_prefix_cmd, add_show_prefix_cmd.
8787 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8788 (set_style_name): Remove.
8789 * cli/cli-dump.c (dump_command, append_command): Remove.
8790 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8791 (tekhex_dump_command, binary_dump_command)
8792 (binary_append_command): Remove.
8793 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8794 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8795 (init_w32_command_list): Remove; move into ...
8796 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8797 * valprint.c (set_print, show_print, set_print_raw)
8798 (show_print_raw): Remove.
8799 (_initialize_valprint): Use add_basic_prefix_cmd,
8800 add_show_prefix_cmd.
8801 * typeprint.c (set_print_type, show_print_type): Remove.
8802 (_initialize_typeprint): Use add_basic_prefix_cmd,
8803 add_show_prefix_cmd.
8804 * record.c (set_record_command, show_record_command): Remove.
8805 (_initialize_record): Use add_basic_prefix_cmd,
8806 add_show_prefix_cmd.
8807 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8808 add_show_prefix_cmd.
8809 (info_command, show_command, set_debug, show_debug): Remove.
8810 * top.h (set_history, show_history): Don't declare.
8811 * top.c (set_history, show_history): Remove.
8812 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8813 (unset_tdesc_cmd): Remove.
8814 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8815 add_show_prefix_cmd.
8816 * symtab.c (info_module_command): Remove.
8817 (_initialize_symtab): Use add_basic_prefix_cmd.
8818 * symfile.c (overlay_command): Remove.
8819 (_initialize_symfile): Use add_basic_prefix_cmd.
8820 * sparc64-tdep.c (info_adi_command): Remove.
8821 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8822 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8823 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8824 add_show_prefix_cmd.
8825 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8826 (_initialize_serial): Use add_basic_prefix_cmd,
8827 add_show_prefix_cmd.
8828 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8829 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8830 add_show_prefix_cmd.
8831 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8832 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8833 add_show_prefix_cmd.
8834 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8835 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8836 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8837 add_show_prefix_cmd.
8838 * remote.c (remote_command, set_remote_cmd): Remove.
8839 (_initialize_remote): Use add_basic_prefix_cmd.
8840 * record-full.c (set_record_full_command)
8841 (show_record_full_command): Remove.
8842 (_initialize_record_full): Use add_basic_prefix_cmd,
8843 add_show_prefix_cmd.
8844 * record-btrace.c (cmd_set_record_btrace)
8845 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8846 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8847 (cmd_show_record_btrace_pt): Remove.
8848 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8849 add_show_prefix_cmd.
8850 * ravenscar-thread.c (set_ravenscar_command)
8851 (show_ravenscar_command): Remove.
8852 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8853 add_show_prefix_cmd.
8854 * mips-tdep.c (show_mips_command, set_mips_command)
8855 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8856 add_show_prefix_cmd.
8857 * maint.c (maintenance_command, maintenance_info_command)
8858 (maintenance_check_command, maintenance_print_command)
8859 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8860 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8861 add_show_prefix_cmd.
8862 (show_per_command_cmd): Remove.
8863 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8864 Remove.
8865 (maintenance_show_test_settings_cmd): Remove.
8866 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8867 add_show_prefix_cmd.
8868 * maint-test-options.c (maintenance_test_options_command):
8869 Remove.
8870 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8871 * macrocmd.c (macro_command): Remove
8872 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8873 * language.c (set_check, show_check): Remove.
8874 (_initialize_language): Use add_basic_prefix_cmd,
8875 add_show_prefix_cmd.
8876 * infcmd.c (unset_command): Remove.
8877 (_initialize_infcmd): Use add_basic_prefix_cmd.
8878 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8879 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8880 add_show_prefix_cmd.
8881 * go32-nat.c (go32_info_dos_command): Remove.
8882 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8883 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8884 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8885 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8886 (_initialize_frame): Use add_basic_prefix_cmd,
8887 add_show_prefix_cmd.
8888 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8889 (_initialize_dcache): Use add_basic_prefix_cmd,
8890 add_show_prefix_cmd.
8891 * cp-support.c (maint_cplus_command): Remove.
8892 (_initialize_cp_support): Use add_basic_prefix_cmd.
8893 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8894 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8895 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8896 add_basic_prefix_cmd, add_show_prefix_cmd.
8897 * breakpoint.c (save_command): Remove.
8898 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8899 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8900 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8901 add_show_prefix_cmd.
8902 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8903 (set_ada_command, show_ada_command): Remove.
8904 (_initialize_ada_language): Use add_basic_prefix_cmd,
8905 add_show_prefix_cmd.
8906 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8907
3557f442
KR
89082020-04-16 Kamil Rytarowski <n54@gmx.com>
8909
8910 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8911 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8912
16197208
SM
89132020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8914
8915 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8916 warning messages.
8917
00ac85d3
SM
89182020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8919
8920 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8921 import table is not at beginning of .idata section.
8922
381ce63f
PA
89232020-04-16 Pedro Alves <palves@redhat.com>
8924
8925 * inferior.c (delete_inferior): Use delete operator directly
8926 instead of delete_program_space.
8927 * progspace.c (add_program_space): New, factored out from
8928 program_space::program_space.
8929 (remove_program_space): New, factored out from
8930 delete_program_space.
8931 (program_space::program_space): Remove intro comment. Rewrite.
8932 (program_space::~program_space): Remove intro comment. Call
8933 remove_program_space.
8934 (delete_program_space): Delete.
8935 * progspace.h (program_space::program_space): Make explicit. Move
8936 intro comment here, adjusted.
8937 (program_space::~program_space): Move intro comment here,
8938 adjusted.
8939 (delete_program_space): Remove.
8940
a010605f
TT
89412020-04-16 Tom Tromey <tromey@adacore.com>
8942
8943 * windows-nat.c (windows_nat::handle_access_violation): New
8944 function.
8945 * nat/windows-nat.h (handle_access_violation): Declare.
8946 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8947 windows-nat.c. Call handle_access_violation.
8948
efba5c23
TV
89492020-04-16 Tom de Vries <tdevries@suse.de>
8950
8951 PR symtab/25791
8952 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8953 CUs without psymtab.
8954
97ed802d
KB
89552020-04-16 Kevin Buettner <kevinb@redhat.com>
8956
8957 * python/python.c (do_start_initialization): Don't call
8958 PyEval_InitThreads for Python 3.9 and beyond.
8959
c7d64809
KR
89602020-04-15 Kamil Rytarowski <n54@gmx.com>
8961
8962 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8963 thread functions.
8964 (obsd_nat_target::wait): Likewise.
8965
ce127a96
TT
89662020-04-15 Tom Tromey <tromey@adacore.com>
8967
8968 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8969 (DEBUG_EXCEPT): Use debug_printf.
8970
99f1bc6a
AB
89712020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8972
8973 * completer.c (class completion_tracker::completion_hash_entry)
8974 <hash_name>: New member function.
8975 (completion_tracker::discard_completions): New callback to hash a
8976 completion_hash_entry, pass this to htab_create_alloc.
8977
a0e9b532
JT
89782016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8979
8980 * windows-nat.c (windows_make_so): Warn rather than stopping with
8981 an error if realpath() fails.
8982
06ca5dd4
KR
89832020-04-14 Kamil Rytarowski <n54@gmx.com>
8984
8985 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8986 (nbsd_nat_target::info_proc): Add do_status.
8987
194d088f
TV
89882020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8989 Tom de Vries <tdevries@suse.de>
8990
8991 PR symtab/25718
8992 * psympriv.h (struct partial_symtab::read_symtab)
8993 (struct partial_symtab::expand_psymtab)
8994 (struct partial_symtab::read_dependencies): Update comments.
8995 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8996 read_symtab for includer.
8997 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8998 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8999 (struct dwarf2_include_psymtab::m_readin): Remove.
9000 (struct dwarf2_include_psymtab::includer): New member function.
9001 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9002
c1a66c06
TV
90032020-04-14 Tom de Vries <tdevries@suse.de>
9004
9005 PR symtab/25720
9006 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9007 with NULL symbol_matcher and lookup_name.
9008 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9009 and lookup_name.
9010 * dwarf2/read.c (dw2_expand_symtabs_matching)
9011 (dw2_debug_names_expand_symtabs_matching): Same.
9012 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9013 Make lookup_name a pointer. Update comment.
9014 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9015 lookup_name being a pointer.
9016 * symfile.c (expand_symtabs_matching): Same.
9017 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9018 * linespec.c (iterate_over_all_matching_symtabs): Same.
9019
400b5eca
TT
90202020-04-13 Tom Tromey <tom@tromey.com>
9021
9022 * run-on-main-thread.c: Update include.
9023 * unittests/main-thread-selftests.c: Update include.
9024 * tui/tui-win.c: Update include.
9025 * tui/tui-io.c: Update include.
9026 * tui/tui-interp.c: Update include.
9027 * tui/tui-hooks.c: Update include.
9028 * top.h: Update include.
9029 * top.c: Update include.
9030 * ser-base.c: Update include.
9031 * remote.c: Update include.
9032 * remote-notif.c: Update include.
9033 * remote-fileio.c: Update include.
9034 * record-full.c: Update include.
9035 * record-btrace.c: Update include.
9036 * python/python.c: Update include.
9037 * posix-hdep.c: Update include.
9038 * mingw-hdep.c: Update include.
9039 * mi/mi-main.c: Update include.
9040 * mi/mi-interp.c: Update include.
9041 * main.c: Update include.
9042 * linux-nat.c: Update include.
9043 * interps.c: Update include.
9044 * infrun.c: Update include.
9045 * inf-loop.c: Update include.
9046 * event-top.c: Update include.
9047 * event-loop.c: Move to ../gdbsupport/.
9048 * event-loop.h: Move to ../gdbsupport/.
9049 * async-event.h: Update include.
9050 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9051
93b54c8e
TT
90522020-04-13 Tom Tromey <tom@tromey.com>
9053
9054 * tui/tui-win.c: Include async-event.h.
9055 * remote.c: Include async-event.h.
9056 * remote-notif.c: Include async-event.h.
9057 * record-full.c: Include async-event.h.
9058 * record-btrace.c: Include async-event.h.
9059 * infrun.c: Include async-event.h.
9060 * event-top.c: Include async-event.h.
9061 * event-loop.h: Move some declarations to async-event.h.
9062 * event-loop.c: Don't include ser-event.h or top.h. Move some
9063 code to async-event.c.
9064 * async-event.h: New file.
9065 * async-event.c: New file.
9066 * Makefile.in (COMMON_SFILES): Add async-event.c.
9067 (HFILES_NO_SRCDIR): Add async-event.h.
9068
c1cd3163
TT
90692020-04-13 Tom Tromey <tom@tromey.com>
9070
9071 * utils.c (flush_streams): New function.
9072 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9073
29f2bf4f
TT
90742020-04-13 Tom Tromey <tom@tromey.com>
9075
9076 * event-loop.c (handle_file_event): Use warning, not
9077 printf_unfiltered.
9078
98029d02
TT
90792020-04-13 Tom Tromey <tom@tromey.com>
9080
9081 * event-loop.c: Include <chrono>.
9082
06cc9596
TT
90832020-04-13 Tom Tromey <tom@tromey.com>
9084
9085 * gdb_select.h: Move to ../gdbsupport/.
9086 * event-loop.c: Update include path.
9087 * top.c: Update include path.
9088 * ser-base.c: Update include path.
9089 * ui-file.c: Update include path.
9090 * ser-tcp.c: Update include path.
9091 * guile/scm-ports.c: Update include path.
9092 * posix-hdep.c: Update include path.
9093 * ser-unix.c: Update include path.
9094 * gdb_usleep.c: Update include path.
9095 * mingw-hdep.c: Update include path.
9096 * inflow.c: Update include path.
9097 * infrun.c: Update include path.
9098 * event-top.c: Update include path.
9099
8ae8e197
TT
91002020-04-13 Tom Tromey <tom@tromey.com>
9101
9102 * configure: Rebuild.
9103 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9104
58cf28e8
TT
91052020-04-13 Tom Tromey <tom@tromey.com>
9106
9107 * event-loop.h (start_event_loop): Don't declare.
9108 * event-loop.c (start_event_loop): Move...
9109 * main.c (start_event_loop): ...here. Now static.
9110
b7f999ae
SDJ
91112020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9112
9113 * MAINTAINERS: Update my email address.
9114
1085dfd4
KR
91152020-04-12 Kamil Rytarowski <n54@gmx.com>
9116
9117 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9118 IP_ALL.
9119
49d1d1f5
KR
91202020-04-12 Kamil Rytarowski <n54@gmx.com>
9121
9122 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9123 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9124
b4848d2a
KR
91252020-04-12 Kamil Rytarowski <n54@gmx.com>
9126
9127 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9128 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9129
51c133d5
KR
91302020-04-12 Kamil Rytarowski <n54@gmx.com>
9131
9132 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9133
54b8cbd0
KR
91342020-04-11 Kamil Rytarowski <n54@gmx.com>
9135
9136 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9137 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9138 (nbsd_nat_target::info_proc): New functions.
9139 * nbsd-nat.c (kinfo_get_vmmap): New function.
9140 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9141 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9142 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9143 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9144 functions.
9145 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9146 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9147 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9148 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9149 (KINFO_VME_FLAG_GROWS_DOWN): New.
9150
cf83625d
AS
91512020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9152
9153 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9154 bit shift.
9155
0c4311ab
TT
91562020-04-10 Tom Tromey <tromey@adacore.com>
9157
9158 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9159
3e65b3e9
TT
91602020-04-10 Tom Tromey <tromey@adacore.com>
9161
9162 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9163 separate debug files.
9164
13302e95
HD
91652020-04-10 Hannes Domani <ssbssa@yahoo.de>
9166
9167 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9168 Move to...
9169 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9170 ... here.
9171 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9172 Check for STATUS_WX86_BREAKPOINT.
9173 (windows_nat_target::wait): Same.
9174
bdfc1e8a
TV
91752020-04-10 Tom de Vries <tdevries@suse.de>
9176
9177 PR cli/25808
9178 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9179
f4460aec
SM
91802020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9181
9182 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9183 (Write After Approval): Remove Tom de Vries.
9184
a25198bb
BE
91852020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9186
9187 revert partially:
9188 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9189
aac66a4c
SM
9190 * buildsym.c (record_line): Fix undefined behavior and preserve
9191 lines at eof.
a25198bb 9192
206c98a6
KR
91932020-04-09 Kamil Rytarowski <n54@gmx.com>
9194
9195 * auxv.h (svr4_auxv_parse): New.
9196 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9197 and generic_auxv_parse.
9198 (svr4_auxv_parse): Add.
9199 * obsd-tdep.c: Include "auxv.h".
9200 (obsd_auxv_parse): Remove.
9201 (obsd_init_abi): Remove comment.
9202 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9203 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9204 * nbsd-tdep.c: Include "auxv.h".
9205 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9206
71fbdbaf
TT
92072020-04-08 Tom Tromey <tromey@adacore.com>
9208
9209 * nat/windows-nat.h (last_wait_event): Don't declare.
9210 (wait_for_debug_event): Update comment.
9211 * nat/windows-nat.c (last_wait_event): Now static.
9212
2c1d95e8
TT
92132020-04-08 Tom Tromey <tromey@adacore.com>
9214
9215 * windows-nat.c (wait_for_debug_event): Move to
9216 nat/windows-nat.c.
9217 * nat/windows-nat.h (wait_for_debug_event): Declare.
9218 * nat/windows-nat.c (wait_for_debug_event): Move from
9219 windows-nat.c. No longer static.
9220
d2977bc4
TT
92212020-04-08 Tom Tromey <tromey@adacore.com>
9222
9223 * windows-nat.c (get_windows_debug_event): Use
9224 fetch_pending_stop.
9225 * nat/windows-nat.h (fetch_pending_stop): Declare.
9226 * nat/windows-nat.c (fetch_pending_stop): New function.
9227
e758e19c
TT
92282020-04-08 Tom Tromey <tromey@adacore.com>
9229
9230 * windows-nat.c (windows_continue): Use matching_pending_stop and
9231 continue_last_debug_event.
9232 * nat/windows-nat.h (matching_pending_stop)
9233 (continue_last_debug_event): Declare.
9234 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9235 (matching_pending_stop, continue_last_debug_event): New
9236 functions.
9237
8d30e395
TT
92382020-04-08 Tom Tromey <tromey@adacore.com>
9239
9240 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9241 (handle_exception_result): Move to nat/windows-nat.h.
9242 (DEBUG_EXCEPTION_SIMPLE): Remove.
9243 (windows_nat::handle_ms_vc_exception): New function.
9244 (handle_exception): Move to nat/windows-nat.c.
9245 (get_windows_debug_event): Update.
9246 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9247 nat/windows-nat.c.
9248 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9249 (handle_exception_result): Move from windows-nat.c.
9250 (handle_exception): Declare.
9251 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9252 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9253 windows-nat.c.
9254
29de418d
TT
92552020-04-08 Tom Tromey <tromey@adacore.com>
9256
9257 * windows-nat.c (exception_count, event_count): Remove.
9258 (handle_exception, get_windows_debug_event)
9259 (do_initial_windows_stuff): Update.
9260
a816ba18
TT
92612020-04-08 Tom Tromey <tromey@adacore.com>
9262
9263 * windows-nat.c (windows_nat::handle_load_dll)
9264 (windows_nat::handle_unload_dll): Rename. No longer static.
9265 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9266 Declare.
9267
a00caa12
TT
92682020-04-08 Tom Tromey <tromey@adacore.com>
9269
9270 * complaints.h (stop_whining): Declare at top-level.
9271 (complaint): Don't declare stop_whining.
9272
d41b524f
TT
92732020-04-08 Tom Tromey <tromey@adacore.com>
9274
9275 * windows-nat.c (windows_nat::handle_output_debug_string):
9276 Rename. No longer static.
9277 * nat/windows-nat.h (handle_output_debug_string): Declare.
9278
3c76026d
TT
92792020-04-08 Tom Tromey <tromey@adacore.com>
9280
9281 * windows-nat.c (current_process_handle, current_process_id)
9282 (main_thread_id, last_sig, current_event, last_wait_event)
9283 (current_windows_thread, desired_stop_thread_id, pending_stops)
9284 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9285 (display_selectors, fake_create_process)
9286 (get_windows_debug_event): Update.
9287 * nat/windows-nat.h (current_process_handle, current_process_id)
9288 (main_thread_id, last_sig, current_event, last_wait_event)
9289 (current_windows_thread, desired_stop_thread_id, pending_stops)
9290 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9291 * nat/windows-nat.c (current_process_handle, current_process_id)
9292 (main_thread_id, last_sig, current_event, last_wait_event)
9293 (current_windows_thread, desired_stop_thread_id, pending_stops)
9294 (siginfo_er): New globals. Move from windows-nat.c.
9295
9d8679cc
TT
92962020-04-08 Tom Tromey <tromey@adacore.com>
9297
9298 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9299 (handle_load_dll): Update.
9300 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9301
28688adf
TT
93022020-04-08 Tom Tromey <tromey@adacore.com>
9303
9304 * windows-nat.c (enum thread_disposition_type): Move to
9305 nat/windows-nat.h.
9306 (windows_nat::thread_rec): Rename from thread_rec. No longer
9307 static.
9308 (windows_add_thread, windows_nat_target::fetch_registers)
9309 (windows_nat_target::store_registers, handle_exception)
9310 (windows_nat_target::resume, get_windows_debug_event)
9311 (windows_nat_target::get_tib_address)
9312 (windows_nat_target::thread_name)
9313 (windows_nat_target::thread_alive): Update.
9314 * nat/windows-nat.h (enum thread_disposition_type): Move from
9315 windows-nat.c.
9316 (thread_rec): Declare.
9317
4834dad0
TT
93182020-04-08 Tom Tromey <tromey@adacore.com>
9319
9320 * windows-nat.c: Add "using namespace".
9321 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9322 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9323
65bafd5b
TT
93242020-04-08 Tom Tromey <tromey@adacore.com>
9325
9326 * nat/windows-nat.h (struct windows_thread_info): Declare
9327 destructor.
9328 * nat/windows-nat.c (~windows_thread_info): New.
9329
0a4afda3
TT
93302020-04-08 Tom Tromey <tromey@adacore.com>
9331
9332 PR gdb/22992
9333 * windows-nat.c (current_event): Update comment.
9334 (last_wait_event, desired_stop_thread_id): New globals.
9335 (struct pending_stop): New.
9336 (pending_stops): New global.
9337 (windows_nat_target) <stopped_by_sw_breakpoint>
9338 <supports_stopped_by_sw_breakpoint>: New methods.
9339 (windows_fetch_one_register): Add assertions. Adjust PC.
9340 (windows_continue): Handle pending stops. Suspend other threads
9341 when stepping. Use last_wait_event
9342 (wait_for_debug_event): New function.
9343 (get_windows_debug_event): Use wait_for_debug_event. Handle
9344 pending stops. Queue spurious stops.
9345 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9346 (windows_nat_target::kill): Use wait_for_debug_event.
9347 * nat/windows-nat.h (struct windows_thread_info)
9348 <stopped_at_software_breakpoint>: New field.
9349 * nat/windows-nat.c (windows_thread_info::resume): Clear
9350 stopped_at_software_breakpoint.
9351
8e61ebec
TT
93522020-04-08 Tom Tromey <tromey@adacore.com>
9353
9354 * windows-nat.c (enum thread_disposition_type): New.
9355 (thread_rec): Replace "get_context" parameter with "disposition";
9356 change type.
9357 (windows_add_thread, windows_nat_target::fetch_registers)
9358 (windows_nat_target::store_registers, handle_exception)
9359 (windows_nat_target::resume, get_windows_debug_event)
9360 (windows_nat_target::get_tib_address)
9361 (windows_nat_target::thread_name)
9362 (windows_nat_target::thread_alive): Update.
9363
98a03287
TT
93642020-04-08 Tom Tromey <tromey@adacore.com>
9365
9366 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9367 (windows_continue): Use windows_continue::resume.
9368 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9369 resume>: Declare new methods.
9370 * nat/windows-nat.c: New file.
9371 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9372
7c7411bc
TT
93732020-04-08 Tom Tromey <tromey@adacore.com>
9374
9375 * windows-nat.c (windows_add_thread, windows_delete_thread)
9376 (windows_nat_target::fetch_registers)
9377 (windows_nat_target::store_registers, fake_create_process)
9378 (windows_nat_target::resume, windows_nat_target::resume)
9379 (get_windows_debug_event, windows_nat_target::wait)
9380 (windows_nat_target::pid_to_str)
9381 (windows_nat_target::get_tib_address)
9382 (windows_nat_target::get_ada_task_ptid)
9383 (windows_nat_target::thread_name)
9384 (windows_nat_target::thread_alive): Use lwp, not tid.
9385
2950fdf7
TT
93862020-04-08 Tom Tromey <tromey@adacore.com>
9387
9388 * windows-nat.c (handle_exception)
9389 (windows_nat_target::thread_name): Update.
9390 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9391 <name>: Now unique_xmalloc_ptr.
9392
62fe396b
TT
93932020-04-08 Tom Tromey <tromey@adacore.com>
9394
9395 * windows-nat.c (thread_rec)
9396 (windows_nat_target::fetch_registers): Update.
9397 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9398 Update comment.
9399 <debug_registers_changed, reload_context>: Now bool.
9400
e9534bd2
TT
94012020-04-08 Tom Tromey <tromey@adacore.com>
9402
9403 * windows-nat.c (windows_add_thread): Use new.
9404 (windows_init_thread_list, windows_delete_thread): Use delete.
9405 (get_windows_debug_event): Update.
9406 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9407 destructor, and initializers.
9408
ae1f8880
TT
94092020-04-08 Tom Tromey <tromey@adacore.com>
9410
9411 * windows-nat.c (struct windows_thread_info): Remove.
9412 * nat/windows-nat.h: New file.
9413
55a1e039
TT
94142020-04-08 Tom Tromey <tromey@adacore.com>
9415
9416 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9417 (thread_rec, windows_add_thread, windows_delete_thread)
9418 (windows_continue): Update.
9419
93366324
TT
94202020-04-08 Tom Tromey <tromey@adacore.com>
9421
9422 * windows-nat.c (struct windows_thread_info): Remove typedef.
9423 (thread_head): Remove.
9424 (thread_list): New global.
9425 (thread_rec, windows_add_thread, windows_init_thread_list)
9426 (windows_delete_thread, windows_continue): Update.
9427
0f2265e2
SM
94282020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9429
9430 * windows-tdep.h (windows_init_abi): Add comment.
9431 (cygwin_init_abi): New declaration.
9432 * windows-tdep.c: Split signal enumeration in two, one for
9433 Windows and one for Cygwin.
9434 (windows_gdb_signal_to_target): Only deal with signal of the
9435 Windows OS ABI.
9436 (cygwin_gdb_signal_to_target): New function.
9437 (windows_init_abi): Rename to windows_init_abi_common, don't set
9438 gdb_signal_to_target gdbarch method. Add new new function with
9439 this name.
9440 (cygwin_init_abi): New function.
9441 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9442 comment. Don't call windows_init_abi.
9443 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9444 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9445 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9446 i386_windows_init_abi_common, don't call windows_init_abi. Add
9447 a new function of this name.
9448 (i386_cygwin_init_abi): New function.
9449 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9450 OS ABI Cygwin.
9451
3810f182
SM
94522020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9453
9454 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9455 parameter.c.
9456 (dwarf2_read_gdb_index): Update.
9457
063f8e80
KR
94582020-04-07 Kamil Rytarowski <n54@gmx.com>
9459
9460 * nbsd-tdep.c: Include "objfiles.h".
9461 (nbsd_skip_solib_resolver): New.
9462 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9463
85a9510c 94642020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9465
9466 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9467 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9468 with DW_LLE_base_addressx are being emitted in DWARFv5.
9469 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9470 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9471 unsigned integer.
9472
9fc3eaae 94732020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9474
9475 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9476 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9477 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9478 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9479 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9480 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9481 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9482
9483
41144253 94842020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9485
9486 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9487 (read_loclist_index): New function definition.
9488 (lookup_loclist_base): New function definition.
9489 (read_loclist_header): New function definition.
9490 (dwarf2_cu): Add loclist_base and loclist_header field.
9491 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9492 (read_full_die_1): Read the value of DW_AT_loclists_base.
9493 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9494 (read_attribute_value): Handle DW_FORM_loclistx.
9495 (skip_one_die): Handle DW_FORM_loclistx.
9496 (loclist_header): New structure declaration.
9497 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9498
9f4e76a4
SM
94992020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9500
9501 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9502 constructor. Remove `addr` parameter from other constructor and
9503 add `per_cu` parameter.
9504 * dwarf2/read.c (create_partial_symtab): Update.
9505
25c11aca
TV
95062020-04-07 Tom de Vries <tdevries@suse.de>
9507
9508 PR symtab/25796
9509 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9510 (partial_die_info::fixup): Inherit has_const_value.
9511
5707e24b
TV
95122020-04-07 Tom de Vries <tdevries@suse.de>
9513
9514 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9515 symbols without address.
9516
05f00e22
KR
95172020-04-06 Kamil Rytarowski <n54@gmx.com>
9518
9519 * nbsd-nat.h (struct thread_info): Add forward declaration.
9520 (nbsd_nat_target::thread_alive): Add.
9521 (nbsd_nat_target::thread_name): Likewise.
9522 (nbsd_nat_target::update_thread_list): Likewise.
9523 (update_thread_list::post_attach): Likewise.
9524 (post_attach::pid_to_str): Likewise.
9525 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9526 (nbsd_thread_lister): Add.
9527 (nbsd_nat_target::thread_alive): Likewise.
9528 (nbsd_nat_target::thread_name): Likewise.
9529 (nbsd_add_threads): Likewise.
9530 (update_thread_list::post_attach): Likewise.
9531 (nbsd_nat_target::update_thread_list): Likewise.
9532 (post_attach::pid_to_str): Likewise.
9533
6ee448cc
TT
95342020-04-06 Tom Tromey <tromey@adacore.com>
9535
9536 * ada-valprint.c (print_variant_part): Extract the variant field.
9537 (print_field_values): Use the field as the outer value when
9538 recursing.
9539
dea34e8c
TT
95402020-04-06 Tom Tromey <tromey@adacore.com>
9541
9542 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9543 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9544 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9545 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9546 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9547
93689ce9
TT
95482020-04-06 Tom Tromey <tromey@adacore.com>
9549
9550 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9551 TYPE_CODE_ERROR.
9552
79743962
KR
95532020-04-06 Kamil Rytarowski <n54@gmx.com>
9554
9555 * nbsd-tdep.c: Include "gdbarch.h".
9556 Define enum with NetBSD signal numbers.
9557 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9558 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9559 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9560 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9561 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9562 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9563 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9564 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9565 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9566 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9567 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9568 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9569
9e7c9a03
HD
95702020-04-03 Hannes Domani <ssbssa@yahoo.de>
9571
9572 PR gdb/25325
9573 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9574
d9e49b61
TT
95752020-04-03 Tom Tromey <tromey@adacore.com>
9576
9577 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9578 Read constant block.
9579
e0fc5c3f
SM
95802020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9581
9582 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9583 (gdb_bfd_get_full_section_contents): New declaration.
9584 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9585 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9586 gdb_bfd_get_full_section_contents.
9587
e2ff18a0
SM
95882020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9589
9590 * exec.c (build_section_table): Replace internal_error with
9591 gdb_assert.
9592 (section_table_xfer_memory_partial): Likewise.
9593 * mdebugread.c (parse_partial_symbols): Likewise.
9594 * psymtab.c (lookup_partial_symbol): Likewise.
9595 * utils.c (wrap_here): Likewise.
9596
0830d301
TT
95972020-04-02 Tom Tromey <tromey@adacore.com>
9598
9599 * f-lang.c (build_fortran_types): Use arch_type to initialize
9600 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9601
e7da7f8f
TT
96022020-04-02 Tom Tromey <tromey@adacore.com>
9603
9604 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9605 of attributes.
9606
c90d28ac
AB
96072020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9608 Bernd Edlinger <bernd.edlinger@hotmail.de>
9609 Tom Tromey <tromey@adacore.com>
9610
9611 * buildsym.c (buildsym_compunit::record_line): Remove
9612 deduplication code.
9613
1aa98955
TV
96142020-04-02 Tom de Vries <tdevries@suse.de>
9615
9616 PR ada/24671
9617 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9618
d3214198
TV
96192020-04-02 Tom de Vries <tdevries@suse.de>
9620
9621 * dwarf2/read.c (dwarf2_gdb_index_functions,
9622 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9623 NULL.
9624 * psymtab.c (psym_lookup_global_symbol_language): New function.
9625 (psym_functions): Init psym_lookup_global_symbol_language with
9626 psym_lookup_global_symbol_language.
9627 * symfile-debug.c (debug_sym_quick_functions): Init
9628 lookup_global_symbol_language with NULL.
9629 * symfile.c (set_initial_language): Remove fixme comment.
9630 * symfile.h (struct quick_symbol_functions): Add
9631 lookup_global_symbol_language.
9632 * symtab.c (find_quick_global_symbol_language): New function.
9633 (find_main_name): Use find_quick_global_symbol_language.
9634
2836752f
SM
96352020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9636
9637 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9638
64dc2d4b
BE
96392020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9640
9641 * buildsym.c (record_line): Fix undefined behavior and preserve
9642 lines at eof.
9643
bbe3dc41
BE
96442020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9645
9646 * buildsym.c (record_line): Fix the resizing condition.
9647
6b4a335b
TT
96482020-04-01 Tom Tromey <tom@tromey.com>
9649
9650 * value.h (value_literal_complex): Add comment.
9651 * valops.c (value_literal_complex): Refer to value.h.
9652
3638a098
TT
96532020-04-01 Tom Tromey <tom@tromey.com>
9654
9655 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9656 (scalar_type): New rule, from typebase.
9657 (typebase): Use scalar_type. Recognize complex types.
9658 (field_name): Handle FLOAT_KEYWORD.
9659 (ident_tokens): Add _Complex and __complex__.
9660
c34e8714
TT
96612020-04-01 Tom Tromey <tom@tromey.com>
9662
9663 PR exp/25299:
9664 * valarith.c (promotion_type, complex_binop): New functions.
9665 (scalar_binop): Handle complex numbers. Use promotion_type.
9666 (value_pos, value_neg, value_complement): Handle complex numbers.
9667
fa649bb7
TT
96682020-04-01 Tom Tromey <tom@tromey.com>
9669
9670 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9671 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9672 (parse_number): Handle complex numbers.
9673
981c08ce
TT
96742020-04-01 Tom Tromey <tom@tromey.com>
9675
9676 * c-valprint.c (c_decorations): Change complex suffix to "i".
9677
4c99290d
TT
96782020-04-01 Tom Tromey <tom@tromey.com>
9679
9680 * valprint.c (generic_value_print_complex): Use accessors.
9681 * value.h (value_real_part, value_imaginary_part): Declare.
9682 * valops.c (value_real_part, value_imaginary_part): New
9683 functions.
9684 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9685
5b930b45
TT
96862020-04-01 Tom Tromey <tom@tromey.com>
9687
9688 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9689 (read_range_type): Update.
9690 * mdebugread.c (basic_type): Update.
9691 * go-lang.c (build_go_types): Use init_complex_type.
9692 * gdbtypes.h (struct main_type) <complex_type>: New member.
9693 (init_complex_type): Update.
9694 (arch_complex_type): Don't declare.
9695 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9696 Make name if none given. Use alloc_type_copy. Look for cached
9697 complex type.
9698 (arch_complex_type): Remove.
9699 (gdbtypes_post_init): Use init_complex_type.
9700 * f-lang.c (build_fortran_types): Use init_complex_type.
9701 * dwarf2/read.c (read_base_type): Update.
9702 * d-lang.c (build_d_types): Use init_complex_type.
9703 * ctfread.c (read_base_type): Update.
9704
53cccef1
TBA
97052020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9706
9707 * infrun.c (stop_all_threads): Update assertion, plus when
9708 stopping threads, take into account that we might be trying
9709 to stop an all-stop target.
9710 (stop_waiting): Call 'stop_all_threads' if there exists a
9711 non-stop target.
9712
a0714d30
TBA
97132020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9714
9715 * target.h (exists_non_stop_target): New function declaration.
9716 * target.c (exists_non_stop_target): New function.
9717
60e22c1e
HD
97182020-04-01 Hannes Domani <ssbssa@yahoo.de>
9719
9720 PR gdb/24789
9721 * eval.c (is_integral_or_integral_reference): New function.
9722 (evaluate_subexp_standard): Allow integer references in
9723 pointer arithmetic.
9724
e139a727
TBA
97252020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9726
9727 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9728 check for no ptid in the stop reply when the target is non-stop.
9729
e0802d59
TT
97302020-04-01 Tom Tromey <tromey@adacore.com>
9731
9732 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9733 "name" parameter to rvalue reference. Initialize m_name_holder.
9734 <lookup_name_info>: New overloads.
9735 <name>: Return gdb::string_view.
9736 <c_str>: New method.
9737 <make_ignore_params>: Update.
9738 <search_name_hash>: Update.
9739 <language_lookup_name>: Return const char *.
9740 <m_name>: Change type.
9741 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9742 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9743 (lookup_name_info::match_any): Update.
9744 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9745 Update.
9746 * minsyms.c (linkage_name_str): Update.
9747 * language.c (default_symbol_name_matcher): Update.
9748 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9749 Update.
9750 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9751 (ada_lookup_name_info::ada_lookup_name_info): Update.
9752 (literal_symbol_name_matcher): Update.
9753
8c072cb6
TT
97542020-04-01 Tom Tromey <tromey@adacore.com>
9755
9756 * psymtab.c (psymtab_search_name): Remove function.
9757 (psym_lookup_symbol): Create search name and lookup name here.
9758 (lookup_partial_symbol): Remove "name" parameter; add
9759 lookup_name.
9760 (psym_expand_symtabs_for_function): Update.
9761
6f29a534
TT
97622020-03-31 Joel Jones <joelkevinjones@gmail.com>
9763
9764 PR tui/25597:
9765 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9766
af62665e
TT
97672020-03-31 Tom Tromey <tromey@adacore.com>
9768
9769 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9770 memcpy.
9771
d1a89da5
NC
97722020-03-30 Nelson Chu <nelson.chu@sifive.com>
9773
9774 * features/riscv/32bit-csr.xml: Regenerated.
9775 * features/riscv/64bit-csr.xml: Regenerated.
9776
d8af9068
TT
97772020-03-30 Tom Tromey <tromey@adacore.com>
9778
9779 * ada-valprint.c (print_variant_part): Update.
9780 * ada-lang.h (ada_which_variant_applies): Update.
9781 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9782 outer_valaddr parameters; replace with "outer" value parameter.
9783 (to_fixed_variant_branch_type): Update.
9784
227c0bf4
PFC
97852020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9786
9787 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9788 <list>. Remove inclusion of observable.h.
9789 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9790 (struct arch_lwp_info): New struct.
9791 (class ppc_linux_dreg_interface): New class.
9792 (struct ppc_linux_process_info): New struct.
9793 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9794 <low_new_clone, low_forget_process, low_prepare_to_resume>
9795 <copy_thread_dreg_state, mark_thread_stale>
9796 <mark_debug_registers_changed, register_hw_breakpoint>
9797 <clear_hw_breakpoint, register_wp, clear_wp>
9798 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9799 <num_memory_accesses, get_trigger_type>
9800 <create_watchpoint_request, hwdebug_point_cmp>
9801 <init_arch_lwp_info, get_arch_lwp_info>
9802 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9803 methods.
9804 <struct ptid_hash>: New inner struct.
9805 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9806 members.
9807 (saved_dabr_value, hwdebug_info, max_slots_number)
9808 (struct hw_break_tuple, struct thread_points, ppc_threads)
9809 (have_ptrace_hwdebug_interface)
9810 (hwdebug_find_thread_points_by_tid)
9811 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9812 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9813 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9814 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9815 use m_dreg_interface.
9816 (hwdebug_point_cmp): Change to...
9817 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9818 reference arguments instead of pointers.
9819 (ppc_linux_nat_target::ranged_break_num_registers): Use
9820 m_dreg_interface.
9821 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9822 m_dreg_interface. Call register_hw_breakpoint.
9823 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9824 m_dreg_interface. Call clear_hw_breakpoint.
9825 (get_trigger_type): Change to...
9826 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9827 comment.
9828 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9829 use m_dreg_interface. Call register_hw_breakpoint.
9830 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9831 use m_dreg_interface. Call clear_hw_breakpoint.
9832 (can_use_watchpoint_cond_accel): Change to...
9833 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9834 method. Update comment, use m_dreg_interface and
9835 m_process_info.
9836 (calculate_dvc): Change to...
9837 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9838 m_dreg_interface.
9839 (num_memory_accesses): Change to...
9840 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9841 (check_condition): Change to...
9842 (ppc_linux_nat_target::check_condition): ...this method.
9843 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9844 comment, use m_dreg_interface.
9845 (create_watchpoint_request): Change to...
9846 (ppc_linux_nat_target::create_watchpoint_request): ...this
9847 method. Use m_dreg_interface.
9848 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9849 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9850 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9851 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9852 (ppc_linux_nat_target::low_forget_process)
9853 (ppc_linux_nat_target::low_new_fork)
9854 (ppc_linux_nat_target::low_new_clone)
9855 (ppc_linux_nat_target::low_delete_thread)
9856 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9857 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9858 only call mark_thread_stale.
9859 (ppc_linux_thread_exit): Remove.
9860 (ppc_linux_nat_target::stopped_data_address): Change to...
9861 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9862 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9863 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9864 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9865 comment. Call low_stopped_data_address.
9866 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9867 m_dreg_interface.
9868 (ppc_linux_nat_target::masked_watch_num_registers): Use
9869 m_dreg_interface.
9870 (ppc_linux_nat_target::copy_thread_dreg_state)
9871 (ppc_linux_nat_target::mark_thread_stale)
9872 (ppc_linux_nat_target::mark_debug_registers_changed)
9873 (ppc_linux_nat_target::register_hw_breakpoint)
9874 (ppc_linux_nat_target::clear_hw_breakpoint)
9875 (ppc_linux_nat_target::register_wp)
9876 (ppc_linux_nat_target::clear_wp)
9877 (ppc_linux_nat_target::init_arch_lwp_info)
9878 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9879 (_initialize_ppc_linux_nat): Remove observer callback.
9880
4db10d8f
PFC
98812020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9882
9883 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9884 (ppc_linux_nat_target::auxv_parse)
9885 (ppc_linux_nat_target::read_description)
9886 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9887 Move up.
9888
1310c1b0
PFC
98892020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9890
9891 * linux-nat.h (low_new_clone): New method.
9892 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9893
69b037c3
SM
98942020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9895
9896 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9897 (dbx_expand_psymtab): ... this.
9898 (start_psymtab): Update.
9899 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9900 (mdebug_expand_psymtab): ... this.
9901 (parse_partial_symbols): Update.
9902 (new_psymtab): Update.
9903 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9904 (xcoff_expand_psymtab): ... this.
9905 (xcoff_start_psymtab): Update.
9906
48993951
SM
99072020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9908
9909 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9910 <expand_dependencies>: ... this.
9911 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9912 (partial_symtab::expand_dependencies): ... this.
9913 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9914 Update.
9915 (dwarf2_psymtab::expand_psymtab): Update.
9916 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9917 * mdebugread.c (psymtab_to_symtab_1): Update.
9918 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9919
3ad83046
SM
99202020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9921
9922 * psympriv.h (discard_psymtab): Remove.
9923 * dbxread.c (dbx_end_psymtab): Update.
9924 * xcoffread.c (xcoff_end_psymtab): Update.
9925
4d1b9ab6
TT
99262020-03-28 Tom Tromey <tom@tromey.com>
9927
9928 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9929 comment.
9930
f1749218
TT
99312020-03-28 Tom Tromey <tom@tromey.com>
9932
9933 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9934
ebea7626
HD
99352020-03-27 Hannes Domani <ssbssa@yahoo.de>
9936
9937 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9938
a879b4d5
JB
99392020-03-26 John Baldwin <jhb@FreeBSD.org>
9940
9941 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9942
0826b30a
TT
99432020-03-26 Tom Tromey <tom@tromey.com>
9944
9945 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9946 (mark_common_block_symbol_computed, read_tag_string_type)
9947 (attr_to_dynamic_prop, read_subrange_type): Update.
9948 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9949 to be methods on struct attribute.
9950 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9951 (read_call_site_scope, partial_die_info::read)
9952 (partial_die_info::read, lookup_die_type, follow_die_ref):
9953 Update.
9954 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9955 from dwarf2_get_ref_die_offset.
9956 (attribute::constant_value): New method, from
9957 dwarf2_get_attr_constant_value.
9958 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9959 Declare method.
9960 <constant_value>: New method.
9961
2b2558bf
TT
99622020-03-26 Tom Tromey <tom@tromey.com>
9963
9964 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9965 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9966 (dwarf_type_encoding_name): Move to stringify.c.
9967 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9968 * dwarf2/stringify.c: New file.
9969 * dwarf2/stringify.h: New file.
9970
eeb64781
TT
99712020-03-26 Tom Tromey <tom@tromey.com>
9972
9973 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9974 Rewrite.
9975
a39fdb41
TT
99762020-03-26 Tom Tromey <tom@tromey.com>
9977
9978 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9979 methods.
9980 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9981 (lookup_ranges_base): Likewise.
9982 (read_cutu_die_from_dwo, read_full_die_1): Update.
9983
436c571c
TT
99842020-03-26 Tom Tromey <tom@tromey.com>
9985
9986 * dwarf2/read.c (read_import_statement, read_file_scope)
9987 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9988 (read_lexical_block_scope, read_call_site_scope)
9989 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9990 (handle_struct_member_die, process_structure_scope)
9991 (update_enumeration_type_from_children)
9992 (process_enumeration_scope, read_array_type, read_common_block)
9993 (read_namespace, read_module, read_subroutine_type): Update.
9994 (sibling_die): Remove.
9995
052c8bb8
TT
99962020-03-26 Tom Tromey <tom@tromey.com>
9997
9998 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9999 (build_type_psymtabs_reader, read_structure_type)
10000 (read_enumeration_type, read_full_die_1): Update.
10001 (dwarf2_attr_no_follow): Move to die.h.
10002 * dwarf2/die.h (struct die_info) <attr>: New method.
10003
2b24b6e4
TT
100042020-03-26 Tom Tromey <tom@tromey.com>
10005
10006 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10007 <base_address>: Now an optional.
10008 (dwarf2_find_base_address, dwarf2_rnglists_process)
10009 (dwarf2_ranges_process, fill_in_loclist_baton)
10010 (dwarf2_symbol_mark_computed): Update.
10011
c2d50fd0
TT
100122020-03-26 Tom Tromey <tom@tromey.com>
10013
10014 * dwarf2/read.c (struct die_info): Move to die.h.
10015 * dwarf2/die.h: New file.
10016
0df7ad3a
TT
100172020-03-26 Tom Tromey <tom@tromey.com>
10018
10019 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10020 * dwarf2/read.c
10021 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10022 Move to line-header.c.
10023 (read_checked_initial_length_and_offset, read_formatted_entries):
10024 Likewise.
10025 (dwarf_decode_line_header): Split into two.
10026 * dwarf2/line-header.c
10027 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10028 Move from read.c.
10029 (read_checked_initial_length_and_offset, read_formatted_entries):
10030 Likewise.
10031 (dwarf_decode_line_header): New function, split from read.c.
10032
86c0bb4c
TT
100332020-03-26 Tom Tromey <tom@tromey.com>
10034
10035 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10036 Declare method.
10037 * dwarf2/read.c (read_attribute_value): Update.
10038 (dwarf2_per_objfile::read_line_string): Rename from
10039 read_indirect_line_string.
10040 (read_formatted_entries): Update.
10041
2ef46c2f
TT
100422020-03-26 Tom Tromey <tom@tromey.com>
10043
10044 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10045 variable.
10046
4f9c1eda
TT
100472020-03-26 Tom Tromey <tom@tromey.com>
10048
10049 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10050 const.
10051 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10052 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10053 parameter const.
10054
5a0e026f
TT
100552020-03-26 Tom Tromey <tom@tromey.com>
10056
10057 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10058 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10059 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10060 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10061
8844c11b
TT
100622020-03-26 Tom Tromey <tom@tromey.com>
10063
10064 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10065 file_names_size, file_full_name, file_file_name>: Use const.
10066 <file_name_at, file_names>: Add const overload.
10067 * dwarf2/line-header.c (line_header::file_file_name)
10068 (line_header::file_full_name): Update.
10069
c90ec28a
TT
100702020-03-26 Tom Tromey <tom@tromey.com>
10071
10072 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10073 (macro_start_file, consume_improper_spaces)
10074 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10075 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10076 (dwarf_decode_macros): Move to macro.c.
10077 * dwarf2/macro.c: New file.
10078 * dwarf2/macro.h: New file.
10079 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10080
4f44ae6c
TT
100812020-03-26 Tom Tromey <tom@tromey.com>
10082
10083 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10084 method.
10085 * dwarf2/section.c: New method. From
10086 read_indirect_string_at_offset_from.
10087 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10088 (read_indirect_string_at_offset_from): Move to section.c.
10089 (read_indirect_string_at_offset): Rewrite.
10090 (read_indirect_line_string_at_offset): Remove.
10091 (read_indirect_string, read_indirect_line_string)
10092 (dwarf_decode_macro_bytes): Update.
10093
a0194fa8
TT
100942020-03-26 Tom Tromey <tom@tromey.com>
10095
10096 * dwarf2/section.h (struct dwarf2_section_info)
10097 <overload_complaint>: Declare.
10098 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10099 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10100 Rename from dwarf2_section_buffer_overflow_complaint.
10101 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10102 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10103
3d27bbdb
TT
101042020-03-26 Tom Tromey <tom@tromey.com>
10105
10106 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10107 Declare.
10108 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10109 Move from read.c.
10110 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10111 to section.c.
10112
9eac9650
TT
101132020-03-26 Tom Tromey <tom@tromey.com>
10114
10115 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10116
bf80d710
TT
101172020-03-26 Tom Tromey <tom@tromey.com>
10118
10119 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10120 "builder".
10121 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10122 parameter.
10123 (dwarf_decode_macros): Update.
10124
0314b390
TT
101252020-03-26 Tom Tromey <tom@tromey.com>
10126
10127 * dwarf2/read.c (read_attribute_value): Update.
10128 (read_indirect_string_from_dwz): Move to dwz.c; change into
10129 method.
10130 (dwarf_decode_macro_bytes): Update.
10131 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10132 * dwarf2/dwz.c: New file.
10133 * Makefile.in (COMMON_SFILES): Add dwz.c.
10134
9fda78b6
TT
101352020-03-26 Tom Tromey <tom@tromey.com>
10136
10137 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10138 * dwarf2/read.c: Add include.
10139 * dwarf2/index-write.c: Add include.
10140 * dwarf2/index-cache.c: Add include.
10141 * dwarf2/dwz.h: New file.
10142
33aa3c10
TT
101432020-03-25 Tom Tromey <tom@tromey.com>
10144
10145 * compile/compile-object-load.c (get_out_value_type): Mention
10146 correct symbol name in error message.
10147
d503b685
HD
101482020-03-25 Hannes Domani <ssbssa@yahoo.de>
10149
10150 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10151
7b1eff95
TV
101522020-03-25 Tom de Vries <tdevries@suse.de>
10153
10154 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10155 * symmisc.c (dump_symtab_1): Print user and includes fields.
10156 (maintenance_info_symtabs): Same.
10157
dd895392
AB
101582020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10159
10160 PR gdb/25534
10161 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10162 (riscv_regcache_cooked_write): New function.
10163 (riscv_push_dummy_call): Use new function.
10164 (riscv_return_value): Likewise.
10165
5ab2fbf1
SM
101662020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10167
10168 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10169 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10170 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10171 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10172 * infrun.c (follow_fork): Likewise.
10173 (follow_fork_inferior): Likewise.
10174 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10175 * linux-nat.h (class linux_nat_target): Likewise.
10176 * remote.c (class remote_target) <follow_fork>: Likewise.
10177 (remote_target::follow_fork): Likewise.
10178 * target-delegates.c: Re-generate.
10179 * target.c (default_follow_fork): Likewise.
10180 (target_follow_fork): Likewise.
10181 * target.h (struct target_ops) <follow_fork>: Likewise.
10182 (target_follow_fork): Likewise.
10183
a64fafb5
TV
101842020-03-24 Tom de Vries <tdevries@suse.de>
10185
10186 * psymtab.c (maintenance_info_psymtabs): Print user field.
10187
fe26d3a3
TT
101882020-03-20 Tom Tromey <tromey@adacore.com>
10189
10190 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10191 const.
10192 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10193 const.
10194
c884cc46
SM
101952020-03-20 Simon Marchi <simon.marchi@efficios.com>
10196
10197 * ptrace.m4: Don't check for ptrace declaration.
10198 * config.in: Re-generate.
10199 * configure: Re-generate.
10200 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10201 not defined.
10202
1ff700c2
KR
102032020-03-20 Kamil Rytarowski <n54@gmx.com>
10204
10205 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10206 `PTRACE_TYPE_RET'.
10207 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10208 * sparc-nat.c (gdb_ptrace): Likewise.
10209 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10210
f7d4f0b1
TT
102112020-03-20 Tom Tromey <tromey@adacore.com>
10212
10213 * c-exp.y (lex_one_token): Fix assert.
10214
f67210ff
TT
102152020-03-20 Tom Tromey <tromey@adacore.com>
10216
10217 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10218 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10219 strncpy call.
10220
1773be9e
TT
102212020-03-20 Tom Tromey <tromey@adacore.com>
10222
10223 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10224
70304be9
TT
102252020-03-20 Tom Tromey <tromey@adacore.com>
10226
10227 * ada-valprint.c (print_variant_part): Remove parameters; switch
10228 to value-based API.
10229 (print_field_values): Likewise.
10230 (ada_val_print_struct_union): Likewise.
10231 (ada_value_print_1): Update.
10232
9faa006d
KR
102332020-03-20 Kamil Rytarowski <n54@gmx.com>
10234
10235 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10236 nbsd_nat_target instead of inf_ptrace_target.
10237 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10238 nbsd_nat_target.
10239
4a90f062
KR
102402020-03-20 Kamil Rytarowski <n54@gmx.com>
10241
10242 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10243 it to the ptrace call.
10244 * (store_registers): Likewise.
10245
102462020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10247
10248 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10249 it to the ptrace call.
10250 * (store_registers): Likewise.
10251
2d07da27
LM
102522020-03-19 Luis Machado <luis.machado@linaro.org>
10253
10254 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10255 valid, fetch vg value from ptrace.
10256
f09db380
KR
102572020-03-19 Kamil Rytarowski <n54@gmx.com>
10258 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10259 * inf-ptrace.c: Likewise.
10260 * (gdb_ptrace): Add.
10261 * (inf_ptrace_target::resume): Update.
10262 * (inf_ptrace_target::xfer_partial): Likewise.
10263 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10264 * (inf_ptrace_peek_poke): Update.
10265
fcc7376e
KR
102662020-03-19 Kamil Rytarowski <n54@gmx.com>
10267
10268 * x86-bsd-nat.c (gdb_ptrace): New.
10269 * (x86bsd_dr_set): Add new argument `ptid'.
10270 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10271 x86bsd_dr_set_addr): Update.
10272
cada5fc9
AB
102732020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10274
10275 * remote.c (remote_target::process_stop_reply): Handle events for
10276 all threads differently.
10277
19a2740f
AB
102782020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10279
10280 * completer.c (completion_tracker::remove_completion): Define new
10281 function.
10282 * completer.h (completion_tracker::remove_completion): Declare new
10283 function.
10284 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10285 when adding a C++ function symbol.
10286
724fd9ba
AB
102872020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10288
10289 * completer.c (completion_tracker::completion_hash_entry): Define
10290 new class.
10291 (advance_to_filename_complete_word_point): Call
10292 recompute_lowest_common_denominator.
10293 (completion_tracker::completion_tracker): Call discard_completions
10294 to setup the hash table.
10295 (completion_tracker::discard_completions): Allow for being called
10296 from the constructor, pass new equal function, and element deleter
10297 when constructing the hash table. Initialise new class member
10298 variables.
10299 (completion_tracker::maybe_add_completion): Remove use of
10300 m_entries_vec, and store more information into m_entries_hash.
10301 (completion_tracker::recompute_lcd_visitor): New function, most
10302 content taken from...
10303 (completion_tracker::recompute_lowest_common_denominator):
10304 ...here, this now just visits each item in the hash calling the
10305 above visitor.
10306 (completion_tracker::build_completion_result): Remove use of
10307 m_entries_vec, call recompute_lowest_common_denominator.
10308 * completer.h (completion_tracker::have_completions): Remove use
10309 of m_entries_vec.
10310 (completion_tracker::completion_hash_entry): Declare new class.
10311 (completion_tracker::recompute_lowest_common_denominator): Change
10312 function signature.
10313 (completion_tracker::recompute_lcd_visitor): Declare new function.
10314 (completion_tracker::m_entries_vec): Delete.
10315 (completion_tracker::m_entries_hash): Initialize to NULL.
10316 (completion_tracker::m_lowest_common_denominator_valid): New
10317 member variable.
10318 (completion_tracker::m_lowest_common_denominator_max_length): New
10319 member variable.
10320
5a82b8a1
KR
103212020-03-17 Kamil Rytarowski <n54@gmx.com>
10322
10323 * regformats/regdef.h: Put reg in gdb namespace.
10324
fb516a69
KR
103252020-03-17 Kamil Rytarowski <n54@gmx.com>
10326
10327 * i386-bsd-nat.c (gdb_ptrace): New.
10328 * (i386bsd_fetch_inferior_registers,
10329 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10330 * (i386bsd_fetch_inferior_registers,
10331 i386bsd_store_inferior_registers) Use gdb_ptrace.
10332
1c0aa1fb
KR
103332020-03-17 Kamil Rytarowski <n54@gmx.com>
10334
10335 * amd64-bsd-nat.c (gdb_ptrace): New.
10336 * (amd64bsd_fetch_inferior_registers,
10337 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10338 * (amd64bsd_fetch_inferior_registers,
10339 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10340
5ccd2fb7
KR
103412020-03-17 Kamil Rytarowski <n54@gmx.com>
10342
10343 * user-regs.c (user_reg::read): Rename to...
10344 (user_reg::xread): ...this.
10345 * (append_user_reg): Rename argument `read' to `xread'.
10346 * (user_reg_add_builtin): Likewise.
10347 * (user_reg_add): Likewise.
10348 * (value_of_user_reg): Likewise.
10349
2108a63a
KR
103502020-03-17 Kamil Rytarowski <n54@gmx.com>
10351
10352 * sparc-nat.c (gdb_ptrace): New.
10353 * sparc-nat.c (sparc_fetch_inferior_registers)
10354 (sparc_store_inferior_registers) Remove obsolete comment.
10355 * sparc-nat.c (sparc_fetch_inferior_registers)
10356 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10357 * sparc-nat.c (sparc_fetch_inferior_registers)
10358 (sparc_store_inferior_registers) Use gdb_ptrace.
10359
a225c9a8
KR
103602020-03-17 Kamil Rytarowski <n54@gmx.com>
10361
10362 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10363 it to the ptrace call.
10364 * sh-nbsd-nat.c (store_registers): Likewise.
10365
98097623
KR
103662020-03-17 Kamil Rytarowski <n54@gmx.com>
10367
10368 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10369 nbsd_nat_target instead of inf_ptrace_target.
10370 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10371 nbsd_nat_target.
10372
9e38d619
KR
103732020-03-17 Kamil Rytarowski <n54@gmx.com>
10374
10375 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10376
a2ecbe9f
KR
103772020-03-17 Kamil Rytarowski <n54@gmx.com>
10378
10379 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10380 <sys/sysctl.h>.
10381 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10382
58990295
TV
103832020-03-17 Tom de Vries <tdevries@suse.de>
10384
10385 PR gdb/23710
10386 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10387 fields.
10388 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10389 fields.
10390 (process_imported_unit_die): Skip import of c++ CUs.
10391
771dd3a8
TT
103922020-03-16 Tom Tromey <tom@tromey.com>
10393
10394 * p-valprint.c (pascal_object_print_value): Initialize
10395 base_value.
10396
817a7585
AK
103972020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10398 Shahab Vahedi <shahab@synopsys.com>
10399
10400 * Makefile.in: Add arch/arc.o
10401 * configure.tgt: Likewise.
10402 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10403 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10404 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10405 * arc-tdep.h (arc_read_description): Add proto type.
10406 * arch/arc.c: New file.
10407 * arch/arc.h: Likewise.
10408 * features/Makefile: Replace old target descriptions with new.
10409 * features/arc-arcompact.c: Remove.
10410 * features/arc-arcompact.xml: Likewise.
10411 * features/arc-v2.c: Likewise
10412 * features/arc-v2.xml: Likewise
10413 * features/arc/aux-arcompact.xml: New file.
10414 * features/arc/aux-v2.xml: Likewise.
10415 * features/arc/core-arcompact.xml: Likewise.
10416 * features/arc/core-v2.xml: Likewise.
10417 * features/arc/aux-arcompact.c: Generate.
10418 * features/arc/aux-v2.c: Likewise.
10419 * features/arc/core-arcompact.c: Likewise.
10420 * features/arc/core-v2.c: Likewise.
10421 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10422
67430cd0
TT
104232020-03-16 Tom Tromey <tromey@adacore.com>
10424
10425 PR gdb/25663:
10426 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10427 putting value into bcache.
10428
30efb6c7
SM
104292020-03-16 Simon Marchi <simon.marchi@efficios.com>
10430
10431 PR gdb/21500
10432 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10433 to...
10434 (amd64_windows_init_abi_common): ... this. Don't set size of
10435 long type.
10436 (amd64_windows_init_abi): New function.
10437 (amd64_cygwin_init_abi): New function.
10438 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10439 the Cygwin OS ABI.
10440 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10441 comment.
10442
8db52437
SM
104432020-03-16 Simon Marchi <simon.marchi@efficios.com>
10444
10445 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10446 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10447 (pe_import_directory_entry): New struct type.
10448 (is_linked_with_cygwin_dll): New function.
10449 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10450 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10451 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10452
5982a56a
SM
104532020-03-16 Simon Marchi <simon.marchi@efficios.com>
10454
10455 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10456 i386_cygwin_core_osabi_sniffer.
10457
7a1998df
SM
104582020-03-16 Simon Marchi <simon.marchi@efficios.com>
10459
10460 * i386-cygwin-tdep.c: Rename to...
10461 * i386-windows-tdep.c: ... this.
10462 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10463 i386-windows-tdep.c.
10464 * configure.tgt: Likewise.
10465
053205cc
SM
104662020-03-16 Simon Marchi <simon.marchi@efficios.com>
10467
10468 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10469 * osabi.c (gdb_osabi_names): Add "Windows".
10470 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10471 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10472 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10473 i386_cygwin_osabi_sniffer.
10474 (_initialize_i386_cygwin_tdep): Register OS ABI
10475 GDB_OSABI_WINDOWS for i386.
10476 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10477 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10478 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10479 for x86-64.
10480 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10481 when the target matches '*-*-mingw*'.
10482
fe4b2ee6
SM
104832020-03-16 Simon Marchi <simon.marchi@efficios.com>
10484
10485 * defs.h (enum gdb_osabi): Move to...
10486 * osabi.h (enum gdb_osabi): ... here.
10487 * gdbarch.sh: Include osabi.h in gdbarch.h.
10488 * gdbarch.h: Re-generate.
10489
cb9b645d
SM
104902020-03-16 Simon Marchi <simon.marchi@efficios.com>
10491
10492 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10493 function.
10494 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10495
3293bbaf
TT
104962020-03-14 Tom Tromey <tom@tromey.com>
10497
10498 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10499 for C++.
10500 (c_type_print_modifier): Likewise. Add "language" parameter.
10501 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10502 (c_type_print_base_1): Update.
10503 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10504 constants.
10505 * type-stack.c (type_stack::insert): Handle tp_atomic and
10506 tp_restrict.
10507 (type_stack::follow_type_instance_flags): Likewise.
10508 (type_stack::follow_types): Likewise. Merge type-following code.
10509 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10510 (space_identifier, cv_with_space_id)
10511 (const_or_volatile_or_space_identifier_noopt)
10512 (const_or_volatile_or_space_identifier): Remove.
10513 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10514 rules.
10515 (ptr_operator, typebase): Update.
10516 (enum token_flag) <FLAG_C>: New constant.
10517 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10518 "_Atomic".
10519 (lex_one_token): Handle FLAG_C.
10520
154151a6
KR
105212020-03-14 Kamil Rytarowski <n54@gmx.com>
10522
10523 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10524 it to the ptrace call.
10525 * m68k-bsd-nat.c (store_registers): Likewise.
10526
bc107784
KR
105272020-03-14 Kamil Rytarowski <n54@gmx.com>
10528
10529 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10530 gdb_byte *.
10531 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10532 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10533 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10534
01a80117
KR
105352020-03-14 Kamil Rytarowski <n54@gmx.com>
10536
10537 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10538 nbsd_nat_target instead of inf_ptrace_target.
10539 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10540 nbsd_nat_target.
10541
f90280ca
KR
105422020-03-14 Kamil Rytarowski <n54@gmx.com>
10543
10544 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10545 register_t.
10546
6def66f1
KR
105472020-03-14 Kamil Rytarowski <n54@gmx.com>
10548
10549 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10550 it to the ptrace call.
10551 * alpha-bsd-nat.c (store_registers): Likewise.
10552
66eaca97
KR
105532020-03-14 Kamil Rytarowski <n54@gmx.com>
10554
10555 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10556 includes.
10557 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10558 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10559 fill_fpregset): Likewise.
10560
4fed520b
KR
105612020-03-14 Kamil Rytarowski <n54@gmx.com>
10562
10563 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10564 nbsd_nat_target instead of inf_ptrace_target.
10565 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10566 nbsd_nat_target.
10567
2190cf06
KR
105682020-03-14 Kamil Rytarowski <n54@gmx.com>
10569
10570 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10571 register_t.
10572
75c56d3d
KR
105732020-03-14 Kamil Rytarowski <n54@gmx.com>
10574
10575 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10576 it to the ptrace call.
10577 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10578 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10579 * arm-nbsd-nat.c (store_register): Likewise.
10580 * arm-nbsd-nat.c (store_regs): Likewise.
10581 * arm-nbsd-nat.c (store_fp_register): Likewise.
10582 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10583
6018d381
KR
105842020-03-14 Kamil Rytarowski <n54@gmx.com>
10585
10586 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10587 nbsd_nat_target instead of inf_ptrace_target.
10588 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10589 nbsd_nat_target.
10590
013f99f0
KR
105912020-03-14 Kamil Rytarowski <n54@gmx.com>
10592
10593 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10594 it to the ptrace call.
10595 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10596
12753073
KR
105972020-03-14 Kamil Rytarowski <n54@gmx.com>
10598
6227b330
KR
10599 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10600 it to the ptrace call.
10601 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10602
106032020-03-14 Kamil Rytarowski <n54@gmx.com>
10604
10605 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10606 gdb_byte *.
12753073
KR
10607 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10608
d5be5fa4
KR
106092020-03-14 Kamil Rytarowski <n54@gmx.com>
10610
10611 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10612 instead of inf_ptrace_target.
10613 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10614 nbsd_nat_target.
10615
8110f842
KR
106162020-03-14 Kamil Rytarowski <n54@gmx.com>
10617
10618 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10619 register_t.
10620
52feded7
KR
106212020-03-14 Kamil Rytarowski <n54@gmx.com>
10622
10623 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10624 register_t.
10625
25567eee
KR
106262020-03-14 Kamil Rytarowski <n54@gmx.com>
10627
10628 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10629 register_t.
10630
426a9c18
TT
106312020-03-13 Tom Tromey <tom@tromey.com>
10632
10633 * value.h (val_print): Don't declare.
10634 * valprint.h (val_print_array_elements)
10635 (val_print_scalar_formatted, generic_val_print): Don't declare.
10636 * valprint.c (generic_val_print_array): Take a struct value.
10637 (generic_val_print_ptr, generic_val_print_memberptr)
10638 (generic_val_print_bool, generic_val_print_int)
10639 (generic_val_print_char, generic_val_print_complex)
10640 (generic_val_print): Remove.
10641 (generic_value_print): Update.
10642 (do_val_print): Remove unused parameters. Don't call
10643 la_val_print.
10644 (val_print): Remove.
10645 (common_val_print): Update. Don't call value_check_printable.
10646 (val_print_scalar_formatted, val_print_array_elements): Remove.
10647 * rust-lang.c (rust_val_print): Remove.
10648 (rust_language_defn): Update.
10649 * p-valprint.c (pascal_val_print): Remove.
10650 (pascal_value_print_inner): Update.
10651 (pascal_object_print_val_fields, pascal_object_print_val):
10652 Remove.
10653 (pascal_object_print_static_field): Update.
10654 * p-lang.h (pascal_val_print): Don't declare.
10655 * p-lang.c (pascal_language_defn): Update.
10656 * opencl-lang.c (opencl_language_defn): Update.
10657 * objc-lang.c (objc_language_defn): Update.
10658 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10659 * m2-lang.h (m2_val_print): Don't declare.
10660 * m2-lang.c (m2_language_defn): Update.
10661 * language.h (struct language_defn) <la_val_print>: Remove.
10662 * language.c (unk_lang_value_print_inner): Rename. Change
10663 argument types.
10664 (unknown_language_defn, auto_language_defn): Update.
10665 * go-valprint.c (go_val_print): Remove.
10666 * go-lang.h (go_val_print): Don't declare.
10667 * go-lang.c (go_language_defn): Update.
10668 * f-valprint.c (f_val_print): Remove.
10669 * f-lang.h (f_value_print): Don't declare.
10670 * f-lang.c (f_language_defn): Update.
10671 * d-valprint.c (d_val_print): Remove.
10672 * d-lang.h (d_value_print): Don't declare.
10673 * d-lang.c (d_language_defn): Update.
10674 * cp-valprint.c (cp_print_value_fields)
10675 (cp_print_value_fields_rtti, cp_print_value): Remove.
10676 (cp_print_static_field): Update.
10677 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10678 (c_val_print_struct, c_val_print_union, c_val_print_int)
10679 (c_val_print_memberptr, c_val_print): Remove.
10680 * c-lang.h (c_val_print_array, cp_print_value_fields)
10681 (cp_print_value_fields_rtti): Don't declare.
10682 * c-lang.c (c_language_defn, cplus_language_defn)
10683 (asm_language_defn, minimal_language_defn): Update.
10684 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10685 (ada_val_print_enum): Take a struct value.
10686 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10687 (ada_val_print): Remove.
10688 (ada_value_print_1): Update.
10689 (printable_val_type): Remove.
10690 * ada-lang.h (ada_val_print): Don't declare.
10691 * ada-lang.c (ada_language_defn): Update.
10692
42331a1e
TT
106932020-03-13 Tom Tromey <tom@tromey.com>
10694
10695 * valprint.c (do_val_print): Update.
10696 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10697 a struct value.
10698 (value_to_value_object_no_release): Declare.
10699 * python/py-value.c (value_to_value_object_no_release): New
10700 function.
10701 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10702 struct value.
10703 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10704 function.
10705 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10706 a struct value.
10707 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10708 Declare.
10709 (gdbscm_apply_val_pretty_printer): Take a struct value.
10710 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10711 value.
10712 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10713 value.
10714 * extension-priv.h (struct extension_language_ops)
10715 <apply_val_pretty_printer>: Take a struct value.
10716 * cp-valprint.c (cp_print_value): Create a struct value.
10717 (cp_print_value): Update.
10718
3a916a97
TT
107192020-03-13 Tom Tromey <tom@tromey.com>
10720
10721 * ada-valprint.c (print_field_values): Call common_val_print.
10722
b59eac37
TT
107232020-03-13 Tom Tromey <tom@tromey.com>
10724
10725 * ada-valprint.c (val_print_packed_array_elements): Remove
10726 bitoffset and val parameters. Call common_val_print.
10727 (ada_val_print_string): Remove offset, address, and original_value
10728 parameters.
10729 (ada_val_print_array): Update.
10730 (ada_value_print_array): New function.
10731 (ada_value_print_1): Call it.
10732
03371129
TT
107332020-03-13 Tom Tromey <tom@tromey.com>
10734
10735 * ada-valprint.c (ada_value_print): Use common_val_print.
10736
2e088f8b
TT
107372020-03-13 Tom Tromey <tom@tromey.com>
10738
10739 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10740
39ef85a8
TT
107412020-03-13 Tom Tromey <tom@tromey.com>
10742
10743 * ada-valprint.c (ada_value_print_num): New function.
10744 (ada_value_print_1): Use it.
10745
b9fa6e07
TT
107462020-03-13 Tom Tromey <tom@tromey.com>
10747
10748 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10749
416595d6
TT
107502020-03-13 Tom Tromey <tom@tromey.com>
10751
10752 * ada-valprint.c (ada_value_print_ptr): New function.
10753 (ada_value_print_1): Use it.
10754
5b5e15ec
TT
107552020-03-13 Tom Tromey <tom@tromey.com>
10756
10757 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10758 call common_val_print.
10759 (ada_val_print_1): Update.
10760 (ada_value_print_1): New function.
10761 (ada_value_print_inner): Rewrite.
10762
fbf54e75
TT
107632020-03-13 Tom Tromey <tom@tromey.com>
10764
10765 * cp-valprint.c (cp_print_value_fields): Update.
10766 (cp_print_value): New function.
10767
64b653ca
TT
107682020-03-13 Tom Tromey <tom@tromey.com>
10769
10770 * m2-valprint.c (m2_value_print_inner): Use
10771 cp_print_value_fields.
10772 * cp-valprint.c (cp_print_value_fields): New function.
10773 * c-valprint.c (c_value_print_struct): New function.
10774 (c_value_print_inner): Use c_value_print_struct.
10775 * c-lang.h (cp_print_value_fields): Declare.
10776
6999f067
TT
107772020-03-13 Tom Tromey <tom@tromey.com>
10778
10779 * c-valprint.c (c_value_print_array): New function.
10780 (c_value_print_inner): Use it.
10781
ce80b8bd
TT
107822020-03-13 Tom Tromey <tom@tromey.com>
10783
10784 * c-valprint.c (c_value_print_memberptr): New function.
10785 (c_value_print_inner): Use it.
10786
2faac269
TT
107872020-03-13 Tom Tromey <tom@tromey.com>
10788
10789 * c-valprint.c (c_value_print_int): New function.
10790 (c_value_print_inner): Use it.
10791
da3e2c29
TT
107922020-03-13 Tom Tromey <tom@tromey.com>
10793
10794 * c-valprint.c (c_value_print_ptr): New function.
10795 (c_value_print_inner): Use it.
10796
50836231
TT
107972020-03-13 Tom Tromey <tom@tromey.com>
10798
10799 * c-valprint.c (c_value_print_inner): Rewrite.
10800
4f412b6e
TT
108012020-03-13 Tom Tromey <tom@tromey.com>
10802
10803 * valprint.c (generic_value_print_complex): New function.
10804 (generic_value_print): Use it.
10805
f5354008
TT
108062020-03-13 Tom Tromey <tom@tromey.com>
10807
10808 * valprint.c (generic_val_print_float): Don't call
10809 val_print_scalar_formatted.
10810 (generic_val_print, generic_value_print): Update.
10811
3eec3b05
TT
108122020-03-13 Tom Tromey <tom@tromey.com>
10813
10814 * valprint.c (generic_value_print_char): New function
10815 (generic_value_print): Use it.
10816
fdddfccb
TT
108172020-03-13 Tom Tromey <tom@tromey.com>
10818
10819 * valprint.c (generic_value_print_int): New function.
10820 (generic_value_print): Use it.
10821
6dde7521
TT
108222020-03-13 Tom Tromey <tom@tromey.com>
10823
10824 * valprint.c (generic_value_print_bool): New function.
10825 (generic_value_print): Use it.
10826
4112d2e6
TT
108272020-03-13 Tom Tromey <tom@tromey.com>
10828
10829 * valprint.c (generic_val_print_func): Simplify.
10830 (generic_val_print, generic_value_print): Update.
10831
65786af6
TT
108322020-03-13 Tom Tromey <tom@tromey.com>
10833
10834 * valprint.c (generic_val_print_flags): Remove.
10835 (generic_val_print, generic_value_print): Update.
10836 (val_print_type_code_flags): Add original_value parameter.
10837
40f3ce18
TT
108382020-03-13 Tom Tromey <tom@tromey.com>
10839
10840 * valprint.c (generic_val_print): Update.
10841 (generic_value_print): Update.
10842 * valprint.c (generic_val_print_enum): Don't call
10843 val_print_scalar_formatted.
10844
2a5b130b
TT
108452020-03-13 Tom Tromey <tom@tromey.com>
10846
10847 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10848 * valprint.c (generic_value_print_ptr): New function.
10849
abc66ce9
TT
108502020-03-13 Tom Tromey <tom@tromey.com>
10851
10852 * valprint.c (generic_value_print): Rewrite.
10853
07a32858
TT
108542020-03-13 Tom Tromey <tom@tromey.com>
10855
10856 * p-valprint.c (pascal_object_print_value_fields)
10857 (pascal_object_print_value): New functions.
10858
64d64d3a
TT
108592020-03-13 Tom Tromey <tom@tromey.com>
10860
10861 * p-valprint.c (pascal_value_print_inner): Rewrite.
10862
6a95a1f5
TT
108632020-03-13 Tom Tromey <tom@tromey.com>
10864
10865 * f-valprint.c (f_value_print_innner): Rewrite.
10866
59fcdac6
TT
108672020-03-13 Tom Tromey <tom@tromey.com>
10868
10869 * m2-valprint.c (m2_print_unbounded_array): New overload.
10870 (m2_print_unbounded_array): Update.
10871 (m2_print_array_contents): Take a struct value.
10872 (m2_value_print_inner): Rewrite.
10873
d133c3e1
TT
108742020-03-13 Tom Tromey <tom@tromey.com>
10875
10876 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10877 (d_value_print_inner): New function.
10878 * d-lang.h (d_value_print_inner): Declare.
10879 * d-lang.c (d_language_defn): Use d_value_print_inner.
10880
23b0f06b
TT
108812020-03-13 Tom Tromey <tom@tromey.com>
10882
10883 * go-valprint.c (go_value_print_inner): New function.
10884 * go-lang.h (go_value_print_inner): Declare.
10885 * go-lang.c (go_language_defn): Use go_value_print_inner.
10886
5f56f7cb
TT
108872020-03-13 Tom Tromey <tom@tromey.com>
10888
10889 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10890 API.
10891 (rust_val_print): Rewrite.
10892 (rust_value_print_inner): New function, from rust_val_print.
10893 (rust_language_defn): Use rust_value_print_inner.
10894
26792ee0
TT
108952020-03-13 Tom Tromey <tom@tromey.com>
10896
10897 * ada-valprint.c (ada_value_print_inner): New function.
10898 * ada-lang.h (ada_value_print_inner): Declare.
10899 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10900
24051bbe
TT
109012020-03-13 Tom Tromey <tom@tromey.com>
10902
10903 * f-valprint.c (f_value_print_innner): New function.
10904 * f-lang.h (f_value_print_innner): Declare.
10905 * f-lang.c (f_language_defn): Use f_value_print_innner.
10906
c0941be6
TT
109072020-03-13 Tom Tromey <tom@tromey.com>
10908
10909 * p-valprint.c (pascal_value_print_inner): New function.
10910 * p-lang.h (pascal_value_print_inner): Declare.
10911 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10912
62c4663d
TT
109132020-03-13 Tom Tromey <tom@tromey.com>
10914
10915 * m2-valprint.c (m2_value_print_inner): New function.
10916 * m2-lang.h (m2_value_print_inner): Declare.
10917 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10918
62182190
TT
109192020-03-13 Tom Tromey <tom@tromey.com>
10920
10921 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10922 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10923 * c-valprint.c (c_value_print_inner): New function.
10924 * c-lang.h (c_value_print_inner): Declare.
10925 * c-lang.c (c_language_defn, cplus_language_defn)
10926 (asm_language_defn, minimal_language_defn): Use
10927 c_value_print_inner.
10928
1e592a8a
TT
109292020-03-13 Tom Tromey <tom@tromey.com>
10930
10931 * p-valprint.c (pascal_object_print_value_fields): Now static.
10932 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10933
7fe471e9
TT
109342020-03-13 Tom Tromey <tom@tromey.com>
10935
10936 * c-valprint.c (c_val_print_array): Simplify.
10937
d121c6ce
TT
109382020-03-13 Tom Tromey <tom@tromey.com>
10939
10940 * valprint.c (value_print_array_elements): New function.
10941 * valprint.h (value_print_array_elements): Declare.
10942
4dba70ee
TT
109432020-03-13 Tom Tromey <tom@tromey.com>
10944
10945 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10946 * mips-tdep.c (mips_print_register): Use
10947 value_print_scalar_formatted.
10948
4f9ae810
TT
109492020-03-13 Tom Tromey <tom@tromey.com>
10950
10951 * valprint.h (value_print_scalar_formatted): Declare.
10952 * valprint.c (value_print_scalar_formatted): New function.
10953
156bfec9
TT
109542020-03-13 Tom Tromey <tom@tromey.com>
10955
10956 * valprint.h (generic_value_print): Declare.
10957 * valprint.c (generic_value_print): New function.
10958
2b4e573d
TT
109592020-03-13 Tom Tromey <tom@tromey.com>
10960
10961 * valprint.c (do_val_print): Call la_value_print_inner, if
10962 available.
10963 * rust-lang.c (rust_language_defn): Update.
10964 * p-lang.c (pascal_language_defn): Update.
10965 * opencl-lang.c (opencl_language_defn): Update.
10966 * objc-lang.c (objc_language_defn): Update.
10967 * m2-lang.c (m2_language_defn): Update.
10968 * language.h (struct language_defn) <la_value_print_inner>: New
10969 member.
10970 * language.c (unknown_language_defn, auto_language_defn): Update.
10971 * go-lang.c (go_language_defn): Update.
10972 * f-lang.c (f_language_defn): Update.
10973 * d-lang.c (d_language_defn): Update.
10974 * c-lang.c (c_language_defn, cplus_language_defn)
10975 (asm_language_defn, minimal_language_defn): Update.
10976 * ada-lang.c (ada_language_defn): Update.
10977
a1f6a07c
TT
109782020-03-13 Tom Tromey <tom@tromey.com>
10979
10980 * c-valprint.c (c_value_print): Use common_val_print.
10981
410cf315
TT
109822020-03-13 Tom Tromey <tom@tromey.com>
10983
10984 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10985
72a45c93
TT
109862020-03-13 Tom Tromey <tom@tromey.com>
10987
10988 * f-valprint.c (f77_print_array_1, f_val_print): Use
10989 common_val_print.
10990
040f66bd
TT
109912020-03-13 Tom Tromey <tom@tromey.com>
10992
10993 * riscv-tdep.c (riscv_print_one_register_info): Use
10994 common_val_print.
10995
a6e05a6c
TT
109962020-03-13 Tom Tromey <tom@tromey.com>
10997
10998 * mi/mi-main.c (output_register): Use common_val_print.
10999
3444c526
TT
110002020-03-13 Tom Tromey <tom@tromey.com>
11001
11002 * infcmd.c (default_print_one_register_info): Use
11003 common_val_print.
11004
c2a44efe
TT
110052020-03-13 Tom Tromey <tom@tromey.com>
11006
11007 * valprint.h (common_val_print_checked): Declare.
11008 * valprint.c (common_val_print_checked): New function.
11009 * stack.c (print_frame_arg): Use common_val_print_checked.
11010
b0c26e99
TT
110112020-03-13 Tom Tromey <tom@tromey.com>
11012
11013 * valprint.c (do_val_print): New function, from val_print.
11014 (val_print): Use do_val_print.
11015 (common_val_print): Use do_val_print.
11016
ce3acbe9
TT
110172020-03-13 Tom Tromey <tom@tromey.com>
11018
11019 * valprint.c (value_print): Use scoped_value_mark.
11020
96c7f873
TV
110212020-03-13 Tom de Vries <tdevries@suse.de>
11022
11023 PR symtab/25646
11024 * psymtab.c (partial_symtab::partial_symtab): Don't set
11025 globals_offset and statics_offset. Push element onto
11026 current_global_psymbols and current_static_psymbols stacks.
11027 (concat): New function.
11028 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11029 element from current_global_psymbols and current_static_psymbols
11030 stacks. Concat popped elements to global_psymbols and
11031 static_symbols.
11032 (add_psymbol_to_list): Use current_global_psymbols and
11033 current_static_psymbols stacks.
11034 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11035 current_static_psymbols fields.
11036
6ba0a321
CB
110372020-03-12 Christian Biesinger <cbiesinger@google.com>
11038
11039 * corelow.c (sniff_core_bfd): Remove.
11040 (class core_target) <m_core_vec>: Remove.
11041 (core_target::core_target): Update.
11042 (core_file_fns): Remove.
11043 (deprecated_add_core_fns): Remove.
11044 (default_core_sniffer): Remove.
11045 (sniff_core_bfd): Remove.
11046 (default_check_format): Remove.
11047 (gdb_check_format): Remove.
11048 (core_target_open): Update.
11049 (core_target::get_core_register_section): Update.
11050 (get_core_registers_cb): Update.
11051 (core_target::fetch_registers): Update.
11052 * gdbcore.h (struct core_fns): Remove.
11053 (deprecated_add_core_fns): Remove.
11054 (default_core_sniffer): Remove.
11055 (default_check_format): Remove.
11056
227031b2
TT
110572020-03-12 Tom Tromey <tom@tromey.com>
11058
11059 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11060 CORE_ADDR.
11061 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11062
53807e9f
TT
110632020-03-12 Tom Tromey <tom@tromey.com>
11064
11065 * remote.c (remote_target::download_tracepoint)
11066 (remote_target::enable_tracepoint)
11067 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11068 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11069 sprintf_vma.
11070
64f25102
TT
110712020-03-12 Tom Tromey <tom@tromey.com>
11072
11073 * symfile-mem.c: Update CORE_ADDR size assert.
11074
272cd5a3
SM
110752020-03-12 Simon Marchi <simon.marchi@efficios.com>
11076
11077 * selftest.m4: Move to gdbsupport/.
11078 * acinclude.m4: Update path to selftest.m4.
11079
74cd3f9d
SM
110802020-03-12 Simon Marchi <simon.marchi@efficios.com>
11081
11082 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11083 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11084 gdbarch-selfselftests.c and selftest-arch.c.
11085 (SUBDIR_UNITTESTS_OBS): Rename to...
11086 (SELFTESTS_OBS): ... this.
11087 (COMMON_SFILES): Remove disasm-selftests.c and
11088 gdbarch-selftests.c.
11089 * configure.ac: Don't add selftest-arch.{c,o} to
11090 CONFIG_{SRCS,OBS}.
11091 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11092 preprocessor conditions.
11093
db6878ac
SM
110942020-03-12 Simon Marchi <simon.marchi@efficios.com>
11095
11096 * configure.ac: Don't source bfd/development.sh.
11097 * selftest.m4: Modify comment.
11098 * configure: Re-generate.
11099
4d696a5c
SM
111002020-03-12 Simon Marchi <simon.marchi@efficios.com>
11101
11102 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11103 not "true" or "false".
11104 * configure: Re-generate.
11105
8dd8e1c7
CB
111062020-03-12 Christian Biesinger <cbiesinger@google.com>
11107
11108 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11109 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11110 renamed to arm_nbsd_supply_gregset.
11111 (fetch_register): Update to call arm_nbsd_supply_gregset.
11112 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11113 (arm_netbsd_nat_target::fetch_registers): Update.
11114 (fetch_elfcore_registers): Removed.
11115 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11116 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11117 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11118 not require NetBSD system headers.
11119 (arm_nbsd_regset): New struct.
11120 (arm_nbsd_iterate_over_regset_sections): New function.
11121 (arm_netbsd_init_abi_common): Updated to call
11122 set_gdbarch_iterate_over_regset_sections.
11123 * arm-nbsd-tdep.h: New file.
11124
dd69bf7a
KB
111252020-03-11 Kevin Buettner <kevinb@redhat.com>
11126
11127 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11128 recursion.
11129
a0761e34
SM
111302020-03-11 Simon Marchi <simon.marchi@efficios.com>
11131
11132 * configure: Re-generate.
11133
e7a82140
TT
111342020-03-11 Tom Tromey <tromey@adacore.com>
11135
11136 * ada-typeprint.c (print_choices): Fix comment.
11137
dcc050c8
AB
111382020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11139
11140 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11141 previous item in the list, when the list has no items.
11142
1c33af77
TV
111432020-03-11 Tom de Vries <tdevries@suse.de>
11144
11145 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11146 PROP_LOCLIST handling code.
11147
8c95582d
AB
111482020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11149
11150 * buildsym-legacy.c (record_line): Pass extra parameter to
11151 record_line.
11152 * buildsym.c (buildsym_compunit::record_line): Take an extra
11153 parameter, reduce duplication in the line table, and record the
11154 is_stmt flag in the line table.
11155 * buildsym.h (buildsym_compunit::record_line): Add extra
11156 parameter.
11157 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11158 non-statement lines.
11159 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11160 this to the symtab builder.
11161 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11162 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11163 through to dwarf_record_line_1.
11164 * infrun.c (process_event_stop_test): When stepping, don't stop at
11165 a non-statement instruction, and only refresh the step info when
11166 we land in the middle of a line's range. Also add an extra
11167 comment.
11168 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11169 field.
11170 * record-btrace.c (btrace_find_line_range): Only record lines
11171 marked as is-statement.
11172 * stack.c (frame_show_address): Show the frame address if we are
11173 in a non-statement sal.
11174 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11175 (maintenance_print_one_line_table): Print a header for the is_stmt
11176 column, and include is_stmt information in the output.
11177 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11178 preference to non-statements.
11179 (find_pcs_for_symtab_line): Prefer is-statement entries.
11180 (find_line_common): Likewise.
11181 * symtab.h (struct linetable_entry): Add is_stmt field.
11182 (struct symtab_and_line): Likewise.
11183 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11184 arranging the line table.
11185
e4003a34
TV
111862020-03-07 Tom de Vries <tdevries@suse.de>
11187
11188 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11189 DIE.
11190
e8932576
TT
111912020-03-07 Tom Tromey <tom@tromey.com>
11192
11193 * valops.c (value_literal_complex): Remove obsolete comment.
11194 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11195 comment.
11196
29734269
SM
111972020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11198
11199 * infrun.h: Forward-declare thread_info.
11200 (set_step_info): Add thread_info parameter, add doc.
11201 * infrun.c (set_step_info): Add thread_info parameter, move doc
11202 to header.
11203 * infrun.c (process_event_stop_test): Pass thread to
11204 set_step_info call.
11205 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11206 set_step_info.
11207 (prepare_one_step): Add thread_info parameter, pass it to
11208 set_step_frame and prepare_one_step (recursive) call.
11209 (step_1): Pass thread to prepare_one_step call.
11210 (step_command_fsm::should_stop): Pass thread to
11211 prepare_one_step.
11212 (until_next_fsm): Pass thread to set_step_frame call.
11213 (finish_command): Pass thread to set_step_info call.
11214
b7d64b29
HD
112152020-03-06 Hannes Domani <ssbssa@yahoo.de>
11216
11217 * windows-tdep.c (windows_solib_create_inferior_hook):
11218 Check if inferior is running.
11219
09f2921c
TV
112202020-03-06 Tom de Vries <tdevries@suse.de>
11221
11222 * NEWS: Fix "the the".
11223 * ctfread.c: Same.
11224
fd760e79
TV
112252020-03-06 Tom de Vries <tdevries@suse.de>
11226
11227 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11228
20ea4a60
AB
112292020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11230
11231 * .dir-locals.el: Add a comment referencing the other copies of
11232 this file.
11233
0afbabf0
JB
112342020-03-05 John Baldwin <jhb@FreeBSD.org>
11235
11236 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11237 psargs.
11238
842806cb
TBA
112392020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11240
11241 * .gitattributes: New file.
11242
be1e3d3e
TT
112432020-03-04 Tom Tromey <tom@tromey.com>
11244
11245 * symmisc.c (print_symbol_bcache_statistics)
11246 (print_objfile_statistics): Update.
11247 * symfile.c (allocate_symtab): Use intern.
11248 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11249 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11250 macro_cache>: Remove.
11251 <string_cache>: New member.
11252 (struct objfile) <intern>: New methods.
11253 * elfread.c (elf_symtab_read): Use intern.
11254 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11255 (dwarf2_compute_name, dwarf2_physname)
11256 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11257 names.
11258 (guess_partial_die_structure_name): Update.
11259 (partial_die_info::fixup): Intern name.
11260 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11261 name.
11262 (dwarf2_name): Intern name. Update.
11263 * buildsym.c (buildsym_compunit::get_macro_table): Use
11264 string_cache.
11265
4e7625fd
TT
112662020-03-04 Tom Tromey <tom@tromey.com>
11267
11268 * jit.c (bfd_open_from_target_memory): Make "target" const.
11269 * corefile.c (gnutarget): Now const.
11270 * gdbcore.h (gnutarget): Now const.
11271
46f9f931
HD
112722020-03-04 Hannes Domani <ssbssa@yahoo.de>
11273
11274 * NEWS: Mention support for WOW64 processes.
11275 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11276 (amd64_windows_segment_register_p): Remove static.
11277 (_initialize_amd64_windows_nat): Update.
11278 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11279 * i386-windows-nat.c (context_offset): Update.
11280 (i386_mappings): Rename and remove static.
11281 (i386_windows_segment_register_p): Remove static.
11282 (_initialize_i386_windows_nat): Update.
11283 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11284 (STATUS_WX86_SINGLE_STEP): New macro.
11285 (EnumProcessModulesEx): New macro.
11286 (Wow64SuspendThread): New macro.
11287 (Wow64GetThreadContext): New macro.
11288 (Wow64SetThreadContext): New macro.
11289 (Wow64GetThreadSelectorEntry): New macro.
11290 (windows_set_context_register_offsets): Add static.
11291 (windows_set_segment_register_p): Likewise.
11292 (windows_add_thread): Adapt for WOW64 processes.
11293 (windows_fetch_one_register): Likewise.
11294 (windows_nat_target::fetch_registers): Likewise.
11295 (windows_store_one_register): Likewise.
11296 (display_selector): Likewise.
11297 (display_selectors): Likewise.
11298 (handle_exception): Likewise.
11299 (windows_continue): Likewise.
11300 (windows_nat_target::resume): Likewise.
11301 (windows_add_all_dlls): Likewise.
11302 (do_initial_windows_stuff): Likewise.
11303 (windows_nat_target::attach): Likewise.
11304 (windows_get_exec_module_filename): Likewise.
11305 (windows_nat_target::create_inferior): Likewise.
11306 (windows_xfer_siginfo): Likewise.
11307 (_initialize_loadable): Initialize Wow64SuspendThread,
11308 Wow64GetThreadContext, Wow64SetThreadContext,
11309 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11310 * windows-nat.h (windows_set_context_register_offsets):
11311 Remove declaration.
11312 (windows_set_segment_register_p): Likewise.
11313 (i386_windows_segment_register_p): Add declaration.
11314 (amd64_windows_segment_register_p): Likewise.
11315
440cf44e
LM
113162020-03-04 Luis Machado <luis.machado@linaro.org>
11317
11318 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11319 in "info registers" for AArch64/ARM.
11320
11321 The change caused "info registers" to not print GPR's.
11322
11323 gdb/ChangeLog:
11324
11325 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11326
11327 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11328 when reg->group is empty and reggroup is not.
11329
1009d92f
TT
113302020-03-03 Tom Tromey <tromey@adacore.com>
11331
11332 * dwarf2/frame.c (struct dwarf2_frame_cache)
11333 <checked_tailcall_bottom, entry_cfa_sp_offset,
11334 entry_cfa_sp_offset_p>: Remove members.
11335 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11336 (dwarf2_frame_prev_register): Don't call
11337 dwarf2_tailcall_sniffer_first.
11338 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11339 * frame-unwind.c (add_unwinder): New fuction.
11340 (frame_unwind_init): Use it. Add tailcall unwinder.
11341
5e5d66b6
AB
113422020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11343 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11344
11345 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11346 value should be printed as true.
11347
584cf46d
HD
113482020-03-03 Hannes Domani <ssbssa@yahoo.de>
11349
11350 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11351 (windows_init_abi): Set and use windows_so_ops.
11352
7b973adc
SDJ
113532020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11354
11355 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11356 when verifying if dealing with a convenience variable.
11357
bb7b70ab
LM
113582020-03-03 Luis Machado <luis.machado@linaro.org>
11359
11360 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11361
9822cb57
SM
113622020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11363
11364 * infrun.c (gdbarch_supports_displaced_stepping): New.
11365 (use_displaced_stepping): Break up conditions in smaller pieces.
11366 Use gdbarch_supports_displaced_stepping.
11367 (displaced_step_prepare_throw): Use
11368 gdbarch_supports_displaced_stepping.
11369
63e163f2
AB
113702020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11371
11372 * NEWS: Mention new behaviour of the history filename.
11373 * top.c (write_history_p): Add comment.
11374 (show_write_history_p): Add header comment, give a different
11375 message when history writing is on, but the history filename is
11376 empty.
11377 (history_filename): Add comment.
11378 (history_filename_empty): New function.
11379 (show_history_filename): Add header comment, give a different
11380 message when the filename is empty.
11381 (init_history): Compare history_filename against nullptr, and only
11382 read history if the filename is not empty.
11383 (set_history_filename): Add header comment, and only make
11384 non-empty filenames absolute.
11385 (init_main): Make the filename argument to 'set history filename'
11386 optional.
11387
81b86b97
CB
113882020-03-02 Christian Biesinger <cbiesinger@google.com>
11389
11390 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11391 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11392 (fetch_fp_register): Update.
11393 (fetch_fp_regs): Update.
11394 (store_fp_register): Update.
11395 (store_fp_regs): Update.
11396 (arm_netbsd_nat_target::read_description): New function.
11397 (fetch_elfcore_registers): Update.
11398
24ed6739
AB
113992020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11400
11401 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11402 general_thread if the stop reply is missing a thread-id.
11403 (remote_target::process_stop_reply): Use the first non-exited
11404 thread if the target didn't pass a thread-id.
11405 * infrun.c (do_target_wait): Move call to
11406 switch_to_inferior_no_thread to ....
11407 (do_target_wait_1): ... here.
11408
a84bb2a0
JT
114092020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11410
11411 * debuginfod-support.c: Include defs.h first.
11412
658dadf0
TV
114132020-02-28 Tom de Vries <tdevries@suse.de>
11414
11415 * symfile.c (set_initial_language): Use default language for lookup.
11416
4ebe4877
SM
114172020-02-28 Simon Marchi <simon.marchi@efficios.com>
11418
11419 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11420 reader variable, pass `this` to read_cutu_die_from_dwo.
11421
e5da1139
AM
114222020-02-27 Aaron Merey <amerey@redhat.com>
11423
11424 * source.c (open_source_file): Check for nullptr when computing
11425 srcpath.
11426
317f7127
TT
114272020-02-27 Tom Tromey <tromey@adacore.com>
11428
11429 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11430 member.
11431 (dwarf2_add_field): Don't update nfields.
11432 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11433
3104d9ee
AB
114342020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11435
11436 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11437 abs.
11438
b83470bf
TT
114392020-02-26 Tom Tromey <tom@tromey.com>
11440
11441 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11442 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11443 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11444 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11445 per_cu_data.
11446
edfe0a0c
TT
114472020-02-26 Tom Tromey <tom@tromey.com>
11448
11449 * dwarf2/index-write.c (psym_index_map): Change type.
11450 (add_address_entry_worker, write_one_signatured_type)
11451 (recursively_count_psymbols, recursively_write_psymbols)
11452 (class debug_names, psyms_seen_size, write_gdbindex)
11453 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11454
0d79cdc4
AM
114552020-02-26 Aaron Merey <amerey@redhat.com>
11456
11457 * Makefile.in: Handle optional debuginfod support.
11458 * NEWS: Update.
11459 * README: Add --with-debuginfod summary.
11460 * config.in: Regenerate.
11461 * configure: Regenerate.
11462 * configure.ac: Handle optional debuginfod support.
11463 * debuginfod-support.c: debuginfod helper functions.
11464 * debuginfod-support.h: Ditto.
11465 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11466 summary.
11467 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11468 when a dwz file cannot be found.
11469 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11470 debuginfo file cannot be found.
11471 * source.c (open_source_file): Query debuginfod servers when a
11472 source file cannot be found.
11473 * top.c (print_gdb_configuration): Include
11474 --{with,without}-debuginfod in the output.
11475
b65ce565
JG
114762020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11477
11478 * thread.c (thr_try_catch_cmd): Print thread name.
11479
d4c9a4f8
SM
114802020-02-26 Simon Marchi <simon.marchi@efficios.com>
11481
11482 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11483 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11484 dwarf2_fetch_die_type_sect_off): Move to...
11485 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11486 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11487 dwarf2_fetch_die_type_sect_off): ... here.
11488 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11489 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11490 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11491
0dce4280
TV
114922020-02-26 Tom de Vries <tdevries@suse.de>
11493
11494 PR gdb/25603
11495 * symfile.c (set_initial_language): Exit-early if
11496 language_mode == language_mode_manual.
11497
450a1bfc
SM
114982020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11499
11500 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11501 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11502 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11503
9e80cfa1
AB
115042020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11505
11506 * gdbtypes.c (create_array_type_with_stride): Handle negative
11507 array strides.
11508 * valarith.c (value_subscripted_rvalue): Likewise.
11509
09624f1f
LM
115102020-02-25 Luis Machado <luis.machado@linaro.org>
11511
11512 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11513
8cb5117c
SM
115142020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11515
11516 * loc.h (dwarf2_get_die_type): Move to...
11517 * read.h (dwarf2_get_die_type): ... here.
11518 * read.c (dwarf2_get_die_type): Move doc to header.
11519
c325c44e
JB
115202020-02-25 Joel Brobecker <brobecker@adacore.com>
11521
11522 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11523 'gnulib/Makefile.in' to the list.
11524
4ac93832
TT
115252020-02-24 Tom Tromey <tom@tromey.com>
11526
11527 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11528 Remove.
11529 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11530 XOBNEWVEC.
11531
197400e8
TT
115322020-02-24 Tom Tromey <tom@tromey.com>
11533
11534 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11535 New method.
11536 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11537 (dw2_do_instantiate_symtab, dw2_get_file_names)
11538 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11539
76935768
TT
115402020-02-24 Tom Tromey <tom@tromey.com>
11541
11542 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11543 make_scoped_restore.
11544 (dwarf2_psymtab::read_symtab): Don't clear
11545 reading_partial_symbols.
11546
a88ef40d
TV
115472020-02-24 Tom de Vries <tdevries@suse.de>
11548
11549 PR gdb/25592
11550 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11551
c9af6521
TV
115522020-02-24 Tom de Vries <tdevries@suse.de>
11553
11554 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11555 commands layout next/prev/regs.
11556
5707a07a
TT
115572020-02-22 Tom Tromey <tom@tromey.com>
11558
11559 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11560 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11561
3b0fb49e
TT
115622020-02-22 Tom Tromey <tom@tromey.com>
11563
11564 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11565
283be8bf
TT
115662020-02-22 Tom Tromey <tom@tromey.com>
11567
11568 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11569 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11570 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11571 * tui/tui.c (_initialize_tui): Add usage text.
11572
ca793b96
TT
115732020-02-22 Tom Tromey <tom@tromey.com>
11574
11575 * tui/tui-win.c (tui_set_focus_command)
11576 (tui_set_win_height_command): Use error_no_arg.
11577 (_initialize_tui_win): Update help text.
11578 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11579
432b5c40
TT
115802020-02-22 Tom Tromey <tom@tromey.com>
11581
11582 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11583 * tui/tui-disasm.h (struct tui_disasm_window)
11584 <display_start_addr>: Declare.
11585 * tui/tui-source.h (struct tui_source_window)
11586 <display_start_addr>: Declare.
11587 * tui/tui-winsource.h (struct tui_source_window_base)
11588 <show_source_line, display_start_addr>: New methods.
11589 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11590 Rename and move to protected section.
11591 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11592 (tui_source_window_base::do_erase_source_content): Update.
11593 (tui_source_window_base::show_source_line): Now a method.
11594 (tui_source_window_base::show_source_content)
11595 (tui_source_window_base::tui_source_window_base)
11596 (tui_source_window_base::rerender)
11597 (tui_source_window_base::refill)
11598 (tui_source_window_base::do_scroll_horizontal)
11599 (tui_source_window_base::set_is_exec_point_at)
11600 (tui_source_window_base::update_breakpoint_info)
11601 (tui_source_window_base::update_exec_info): Update.
11602 * tui/tui-source.c (tui_source_window::set_contents)
11603 (tui_source_window::showing_source_p)
11604 (tui_source_window::do_scroll_vertical)
11605 (tui_source_window::location_matches_p)
11606 (tui_source_window::line_is_displayed): Update.
11607 (tui_source_window::display_start_addr): New method.
11608 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11609 (tui_disasm_window::do_scroll_vertical)
11610 (tui_disasm_window::location_matches_p): Update.
11611 (tui_disasm_window::display_start_addr): New method.
11612
01b1af32
TT
116132020-02-22 Tom Tromey <tom@tromey.com>
11614
11615 * NEWS: Add entry for gdb.register_window_type.
11616 * tui/tui-layout.h (window_factory): New typedef.
11617 (tui_register_window): Declare.
11618 * tui/tui-layout.c (saved_tui_windows): New global.
11619 (tui_apply_current_layout): Use it.
11620 (tui_register_window): New function.
11621 * python/python.c (do_start_initialization): Call
11622 gdbpy_initialize_tui.
11623 (python_GdbMethods): Add "register_window_type" function.
11624 * python/python-internal.h (gdbpy_register_tui_window)
11625 (gdbpy_initialize_tui): Declare.
11626 * python/py-tui.c: New file.
11627 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11628
fc96d20b
TT
116292020-02-22 Tom Tromey <tom@tromey.com>
11630
11631 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11632
935c78c0
TT
116332020-02-22 Tom Tromey <tom@tromey.com>
11634
11635 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11636 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11637 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11638 (tui_set_win_focus_to): Move from tui-win.c.
11639
0240c8f1
TT
116402020-02-22 Tom Tromey <tom@tromey.com>
11641
11642 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11643 functions.
11644 (known_window_types): New global.
11645 (tui_get_window_by_name): Reimplement.
11646 (initialize_known_windows): New function.
11647 (validate_window_name): Rewrite.
11648 (_initialize_tui_layout): Call initialize_known_windows.
11649
fdb01f0c
TT
116502020-02-22 Tom Tromey <tom@tromey.com>
11651
11652 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11653 Remove constants.
11654 * tui/tui-winsource.h (struct tui_source_window_base)
11655 <tui_source_window_base>: Remove parameter.
11656 * tui/tui-winsource.c
11657 (tui_source_window_base::tui_source_window_base): Remove
11658 parameter.
11659 (tui_source_window_base::refill): Update.
11660 * tui/tui-stack.h (struct tui_locator_window)
11661 <tui_locator_window>: Update.
11662 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11663 Default the constructor.
11664 * tui/tui-regs.h (struct tui_data_item_window)
11665 <tui_data_item_window>: Default the constructor.
11666 (struct tui_data_window) <tui_data_window>: Likewise.
11667 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11668 Default the constructor.
11669 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11670 Default the constructor.
11671 <type>: Remove.
11672 (struct tui_win_info) <tui_win_info>: Default the constructor.
11673 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11674 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11675 Default the constructor.
11676
865a5aec
TT
116772020-02-22 Tom Tromey <tom@tromey.com>
11678
11679 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11680 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11681 * tui/tui-win.c (tui_resize_all): Don't call
11682 tui_delete_invisible_windows.
11683 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11684 done.
11685 (tui_set_layout): Update.
11686 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11687 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11688 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11689
e098d18c
TT
116902020-02-22 Tom Tromey <tom@tromey.com>
11691
11692 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11693 correctly.
11694
eb9c8874
TT
116952020-02-22 Tom Tromey <tom@tromey.com>
11696
11697 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11698
7eed1a8e
TT
116992020-02-22 Tom Tromey <tom@tromey.com>
11700
11701 * tui/tui-winsource.h (struct tui_source_window_iterator)
11702 <inner_iterator>: New etytypedef.
11703 <tui_source_window_iterator>: Take "end" parameter.
11704 <tui_source_window_iterator>: Take iterator.
11705 <operator*, advance>: Update.
11706 <m_iter>: Change type.
11707 <m_end>: New field.
11708 (struct tui_source_windows) <begin, end>: Update.
11709 * tui/tui-layout.c (tui_windows): New global.
11710 (tui_apply_current_layout): Clear tui_windows.
11711 (tui_layout_window::apply): Update tui_windows.
11712 * tui/tui-data.h (tui_windows): Declare.
11713 (all_tui_windows): Now inline function.
11714 (class tui_window_iterator, struct all_tui_windows): Remove.
11715
7c043ba6
TT
117162020-02-22 Tom Tromey <tom@tromey.com>
11717
11718 PR tui/17850:
11719 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11720 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11721 "height" argument.
11722 (class tui_layout_window) <get_sizes>: Likewise.
11723 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11724 argument.
11725 <get_sizes>: Add "height" argument.
11726 <m_vertical>: New field.
11727 * tui/tui-layout.c (tui_layout_split::clone): Update.
11728 (tui_layout_split::get_sizes): Add "height" argument.
11729 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11730 (tui_new_layout_command): Parse "-horizontal".
11731 (_initialize_tui_layout): Update help string.
11732 (tui_layout_split::specification): Add "-horizontal" when needed.
11733 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11734 argument.
11735 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11736 New methods.
11737
6bc56648
TT
117382020-02-22 Tom Tromey <tom@tromey.com>
11739
11740 * tui/tui-layout.h (enum tui_adjust_result): New.
11741 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11742 (class tui_layout_window) <adjust_size>: Return
11743 tui_adjust_result. Rewrite.
11744 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11745 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11746
c22fef7e
TT
117472020-02-22 Tom Tromey <tom@tromey.com>
11748
11749 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11750 parameter and return types.
11751 (class tui_layout_base) <specification>: Add "depth".
11752 (class tui_layout_window) <specification>: Add "depth".
11753 (class tui_layout_split) <specification>: Add "depth".
11754 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11755 and return types.
11756 (tui_new_layout_command): Parse sub-layouts.
11757 (_initialize_tui_layout): Update help string.
11758 (tui_layout_window::specification): Add "depth".
11759 (add_layout_command): Update.
11760
ee325b61
TT
117612020-02-22 Tom Tromey <tom@tromey.com>
11762
11763 * NEWS: Add "tui new-layout" item.
11764 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11765 Add new-layout command to help text.
11766 (validate_window_name): New function.
11767 (tui_new_layout_command): New function.
11768 (_initialize_tui_layout): Register "new-layout".
11769 (tui_layout_window::specification): New method.
11770 (tui_layout_window::specification): New method.
11771 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11772 method.
11773 (class tui_layout_window) <specification>: New method.
11774 (class tui_layout_split) <specification>: New method.
11775
416eb92d
TT
117762020-02-22 Tom Tromey <tom@tromey.com>
11777
11778 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11779 * tui/tui-win.c (window_name_completer): Update comment.
11780 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11781 Declare method.
11782 (class tui_layout_window) <replace_window>: Likewise.
11783 (class tui_layout_split) <replace_window>: Likewise.
11784 (tui_set_layout): Don't declare.
11785 (tui_set_initial_layout): Declare function.
11786 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11787 (asm_regs_layout): New globals.
11788 (tui_current_layout, show_layout): Remove.
11789 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11790 (find_layout, tui_apply_layout): New function.
11791 (layout_completer): Remove.
11792 (tui_next_layout): Reimplement.
11793 (tui_next_layout_command): New function.
11794 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11795 (tui_regs_layout): Reimplement.
11796 (tui_regs_layout_command): New function.
11797 (extract_display_start_addr): Rewrite.
11798 (next_layout, prev_layout): Remove.
11799 (tui_layout_window::replace_window): New method.
11800 (tui_layout_split::replace_window): New method.
11801 (destroy_layout): New function.
11802 (layout_list): New global.
11803 (add_layout_command): New function.
11804 (initialize_layouts): Update.
11805 (tui_layout_command): New function.
11806 (_initialize_tui_layout): Install "layout" commands.
11807 * tui/tui-data.h (enum tui_layout_type): Remove.
11808 (tui_current_layout): Don't declare.
11809
0dbc2fc7
TT
118102020-02-22 Tom Tromey <tom@tromey.com>
11811
11812 * tui/tui-regs.c (tui_reg_layout): Remove.
11813 (tui_reg_command): Use tui_regs_layout.
11814 * tui/tui-layout.h (tui_reg_command): Declare.
11815 * tui/tui-layout.c (tui_reg_command): New function.
11816
5afe342e
TT
118172020-02-22 Tom Tromey <tom@tromey.com>
11818
11819 * tui/tui.c (tui_rl_delete_other_windows): Call
11820 tui_remove_some_windows.
11821 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11822 Declare method.
11823 (class tui_layout_window) <remove_windows>: New method.
11824 (class tui_layout_split) <remove_windows>: Declare.
11825 (tui_remove_some_windows): Declare.
11826 * tui/tui-layout.c (tui_remove_some_windows): New function.
11827 (tui_layout_split::remove_windows): New method.
11828
427326a8
TT
118292020-02-22 Tom Tromey <tom@tromey.com>
11830
11831 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11832 * tui/tui-layout.h (tui_next_layout): Declare.
11833 * tui/tui-layout.c (tui_next_layout): New function.
11834
3fe12b6d
TT
118352020-02-22 Tom Tromey <tom@tromey.com>
11836
11837 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11838 correct coordinates.
11839
59b8b5d2
TT
118402020-02-22 Tom Tromey <tom@tromey.com>
11841
11842 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11843 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11844 DATA_WIN case.
11845
2a3d458b
TT
118462020-02-22 Tom Tromey <tom@tromey.com>
11847
11848 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11849 TUI_DISASM_WIN, not tui_win_list.
11850
3f0cbb04
TT
118512020-02-22 Tom Tromey <tom@tromey.com>
11852
11853 * valprint.c (generic_val_print_enum_1)
11854 (val_print_type_code_flags): Style member names.
11855 * rust-lang.c (val_print_struct, rust_print_enum)
11856 (rust_print_struct_def, rust_internal_print_type): Style member
11857 names.
11858 * p-valprint.c (pascal_object_print_value_fields): Style member
11859 names. Only call fprintf_symbol_filtered for static members.
11860 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11861 * f-valprint.c (f_val_print): Style member names.
11862 * f-typeprint.c (f_type_print_base): Style member names.
11863 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11864 call fprintf_symbol_filtered for static members.
11865 (cp_print_class_member): Style member names.
11866 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11867 member names.
11868 * ada-valprint.c (ada_print_scalar): Style enum names.
11869 (ada_val_print_enum): Likewise.
11870 * ada-typeprint.c (print_enum_type): Style enum names.
11871
d4d947ae
TT
118722020-02-21 Tom Tromey <tom@tromey.com>
11873
11874 * psympriv.h (struct partial_symtab): Update comment.
11875
e94e944b
TT
118762020-02-21 Tom Tromey <tromey@adacore.com>
11877
11878 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11879 type is CORE_ADDR.
11880
1eb73179
TV
118812020-02-21 Tom de Vries <tdevries@suse.de>
11882
11883 PR gdb/25534
11884 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11885 if dependencies[i]->user != NULL.
11886
4f180d53
AT
118872020-02-21 Ali Tamur <tamur@google.com>
11888
11889 * dwarf2/read.c (dwarf2_name): Add null check.
11890
22b6cd70
TT
118912020-02-20 Tom Tromey <tom@tromey.com>
11892
11893 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11894 ">=", in binary search.
11895 (dwarf2_find_containing_comp_unit): New overload.
11896 (run_test): New self-test.
11897 (_initialize_dwarf2_read): Register new test.
11898
bd0cf5a6
NC
118992020-02-20 Nelson Chu <nelson.chu@sifive.com>
11900
11901 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11902 * riscv-tdep.h: Likewise.
11903 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11904 rv32-only CSR.
11905 * features/riscv/64bit-csr.xml: Regenerated.
11906
3f702acd
SDJ
119072020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11908 Tom Tromey <tom@tromey.com>
11909
11910 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11911 of 'fputc_unfiltered'.
11912 (putchar_unfiltered): Call 'fputc_unfiltered'.
11913 (fputc_unfiltered): Call 'fputs_unfiltered'.
11914
d13c7322
AB
119152020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11916
11917 * config.in: Regenerate.
11918 * configure: Regenerate.
11919 * configure.ac: Add --with-python-libdir option.
11920 * main.c: Use WITH_PYTHON_LIBDIR.
11921
869d8950
TT
119222020-02-19 Tom Tromey <tom@tromey.com>
11923
11924 * symtab.c (general_symbol_info::compute_and_set_names): Use
11925 obstack_strndup. Simplify call to symbol_set_demangled_name.
11926
298e9637
SM
119272020-02-19 Simon Marchi <simon.marchi@efficios.com>
11928
11929 * dwarf2/read.c (allocate_signatured_type_table,
11930 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11931 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11932 Remove objfile parameter, update all callers.
11933
08410482
DE
119342020-02-19 Doug Evans <dje@google.com>
11935
11936 PR rust/25535
11937 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11938 rust_enum_variant calculation.
11939
dfdeeca1
TT
119402020-02-19 Tom Tromey <tromey@adacore.com>
11941
11942 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11943
2ef5453b
TT
119442020-02-19 Tom Tromey <tromey@adacore.com>
11945
11946 * ada-lang.c (cache_symbol): Use obstack_strdup.
11947
9f1528a1
AB
119482020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11949
11950 * configure: Regenerate.
11951
d3c22fa8
TT
119522020-02-19 Tom Tromey <tromey@adacore.com>
11953
11954 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11955 NULL check.
11956
bf84f706
MR
119572020-02-19 Maciej W. Rozycki <macro@wdc.com>
11958
11959 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11960
d1c9b20f
AB
119612020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11962
11963 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11964 if GDBSERVER is not defined.
11965 (riscv_tdesc_cache): Likewise, also store const target_desc.
11966 (STATIC_IN_GDB): Define.
11967 (riscv_create_target_description): Update declaration with
11968 STATIC_IN_GDB.
11969 (riscv_lookup_target_description): New function, only define if
11970 GDBSERVER is not defined.
11971 * arch/riscv.h (riscv_create_target_description): Declare only
11972 when GDBSERVER is defined.
11973 (riscv_lookup_target_description): New declaration when GDBSERVER
11974 is not defined.
11975 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11976 (riscv_linux_read_features): ...this, and return
11977 riscv_gdbarch_features instead of target_desc.
11978 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11979 (riscv_linux_read_description): Rename to...
11980 (riscv_linux_read_features): ...this.
11981 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11982 Update to use riscv_gdbarch_features and
11983 riscv_lookup_target_description.
11984 * riscv-tdep.c (riscv_find_default_target_description): Use
11985 riscv_lookup_target_description instead of
11986 riscv_create_target_description.
11987
373d7ac0
SM
119882020-02-18 Simon Marchi <simon.marchi@efficios.com>
11989
11990 * valprint.c (generic_val_print_enum_1): When printing a flag
11991 enum with value 0 and there is no enumerator with value 0, print
11992 just "0" instead of "(unknown: 0x0)".
11993
b29a2df0
SM
119942020-02-18 Simon Marchi <simon.marchi@efficios.com>
11995
11996 * valprint.c (generic_val_print_enum_1): Print unknown part of
11997 flag enum in hex.
11998
6740f0cc
SM
119992020-02-18 Simon Marchi <simon.marchi@efficios.com>
12000
12001 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12002 flag enums to contain duplicate enumerators.
12003 * valprint.c (generic_val_print_enum_1): Update comment.
12004
edd45eb0
SM
120052020-02-18 Simon Marchi <simon.marchi@efficios.com>
12006
12007 * dwarf2/read.c: Include "count-one-bits.h".
12008 (update_enumeration_type_from_children): If an enumerator has
12009 multiple bits set, don't treat the enumeration as a "flag enum".
12010 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12011 of flag enums have 0 or 1 bit set.
12012
6d0cf446
BE
120132020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12014
12015 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12016 conversion.
12017 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12018 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12019 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12020 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12021 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12022
7001c1b7
SM
120232020-02-18 Simon Marchi <simon.marchi@efficios.com>
12024
12025 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12026
fdb61c6c
SM
120272020-02-14 Simon Marchi <simon.marchi@efficios.com>
12028
12029 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12030 displaced_step_closure_up.
12031 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12032 (struct displaced_step_closure_up):
12033 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12034 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12035 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12036 Likewise.
12037 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12038 * gdbarch.c, gdbarch.h: Re-generate.
12039 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12040 displaced_step_closure_up.
12041 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12042 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12043 * infrun.h (displaced_step_closure_up): New type alias.
12044 (struct displaced_step_inferior_state) <step_closure>: Change
12045 type to displaced_step_closure_up.
12046 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12047 displaced_step_closure_up.
12048 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12049
a4a38eb4
TT
120502020-02-14 Tom Tromey <tom@tromey.com>
12051
12052 * minidebug.c (gnu_debug_key): New global.
12053 (find_separate_debug_file_in_section): Use it.
12054
e8217e61
SM
120552020-02-14 Simon Marchi <simon.marchi@efficios.com>
12056
12057 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12058 std::unique_ptr.
12059 * gdbarch.c: Re-generate.
12060 * gdbarch.h: Re-generate.
12061 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12062 change.
12063 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12064 type to std::unique_ptr.
12065 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12066 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12067 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12068 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12069 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12070 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12071 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12072 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12073 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12074
d8d83535
SM
120752020-02-14 Simon Marchi <simon.marchi@efficios.com>
12076
12077 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12078 std::unique_ptr.
12079 (displaced_step_clear): Rename to...
12080 (displaced_step_reset): ... this. Just call displaced->reset ().
12081 (displaced_step_clear_cleanup): Rename to...
12082 (displaced_step_reset_cleanup): ... this.
12083 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12084 (displaced_step_fixup): Likewise.
12085 (resume_1): Likewise.
12086 (handle_inferior_event): Restore child's memory before calling
12087 displaced_step_fixup on the parent.
12088 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12089 to std::unique_ptr.
12090 <step_closure>: Change type to std::unique_ptr.
12091
5f661e03
SM
120922020-02-14 Simon Marchi <simon.marchi@efficios.com>
12093
12094 * arm-tdep.c: Include count-one-bits.h.
12095 (cleanup_block_store_pc): Use count_one_bits.
12096 (cleanup_block_load_pc): Use count_one_bits.
12097 (arm_copy_block_xfer): Use count_one_bits.
12098 (thumb2_copy_block_xfer): Use count_one_bits.
12099 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12100 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12101 (thumb_get_next_pcs_raw): Use count_one_bits.
12102 (arm_get_next_pcs_raw): Use count_one_bits_l.
12103 * arch/arm.c (bitcount): Remove.
12104 * arch/arm.h (bitcount): Remove.
12105
8084e579
TT
121062020-02-14 Tom Tromey <tromey@adacore.com>
12107
12108 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12109 Update.
12110 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12111 * dwarf2/loc.c (call_site_find_chain_1): Return
12112 unique_xmalloc_ptr.
12113 (call_site_find_chain): Likewise.
12114
258bf0ee
RB
121152020-02-14 Richard Biener <rguenther@suse.de>
12116
12117 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12118 on expression with division operators.
12119
f98a8458
AKS
121202020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12121
12122 * MAINTAINERS (Write After Approval): Adding myself.
12123
d1437c0e
TT
121242020-02-12 Tom Tromey <tom@tromey.com>
12125
12126 * event-loop.c (event_data, gdb_event, event_handler_func):
12127 Remove.
12128
3d4560f7
TT
121292020-02-12 Tom Tromey <tom@tromey.com>
12130
12131 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12132 (dwarf2_frame_objfile_data): Add comment.
12133 (find_comp_unit, set_comp_unit): New functions.
12134 (dwarf2_frame_find_fde): Use find_comp_unit.
12135 (dwarf2_build_frame_info): Use set_comp_unit.
12136
21982304
TT
121372020-02-12 Tom Tromey <tom@tromey.com>
12138
12139 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12140 (comp_unit): Don't initialize objfile.
12141 (execute_cfa_program): Add text_offset parameter.
12142 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12143 (dwarf2_frame_cache): Update.
12144 (dwarf2_build_frame_info): Don't set "objfile" member.
12145
4debb237
TT
121462020-02-12 Tom Tromey <tom@tromey.com>
12147
12148 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12149 (decode_frame_entry): Likewise.
12150 (dwarf2_build_frame_info): Update.
12151
0d404d44
TT
121522020-02-12 Tom Tromey <tom@tromey.com>
12153
12154 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12155 (decode_frame_entry_1): Use the comp_unit obstack.
12156
a7a3ae5c
TT
121572020-02-12 Tom Tromey <tom@tromey.com>
12158
12159 * dwarf2/frame.c (struct comp_unit): Add initializers and
12160 constructor.
12161 (dwarf2_frame_objfile_data): Store a comp_unit.
12162 (dwarf2_frame_find_fde): Update.
12163 (dwarf2_build_frame_info): Use "new".
12164
a9d65418
TT
121652020-02-12 Tom Tromey <tom@tromey.com>
12166
12167 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12168 (dwarf2_fde_table): Typedef for std::vector.
12169 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12170 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12171 (decode_frame_entry): Update.
12172 (dwarf2_build_frame_info): Use "new".
12173
7559c217
CB
121742020-02-12 Christian Biesinger <cbiesinger@google.com>
12175
12176 * arm-tdep.c (arm_gdbarch_init): Update.
12177 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12178 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12179 have_neon, is_m>: Change to bool.
12180
aeefc73c
CB
121812020-02-12 Christian Biesinger <cbiesinger@google.com>
12182
12183 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12184
d27b8e5f
TT
121852020-02-12 Tom Tromey <tom@tromey.com>
12186
12187 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12188
cd5900f3
HD
121892020-02-12 Hannes Domani <ssbssa@yahoo.de>
12190
12191 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12192 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12193
f056b22b
TT
121942020-02-11 Tom Tromey <tom@tromey.com>
12195
12196 * psymtab.h: Update comment.
12197
f92ff6b5
TT
121982020-02-11 Tom Tromey <tom@tromey.com>
12199
12200 * gdb_obstack.h (struct auto_obstack): Use
12201 DISABLE_COPY_AND_ASSIGN.
12202
3fd6912b
TT
122032020-02-11 Tom Tromey <tom@tromey.com>
12204
12205 * dwarf2/frame.h (struct objfile): Don't forward declare.
12206
69ed9b74
CB
122072020-02-11 Christian Biesinger <cbiesinger@google.com>
12208
12209 * cris-tdep.c (cris_supply_gregset): Change signature to match
12210 what struct regset expects.
12211 (cris_regset): New struct.
12212 (fetch_core_registers): Remove.
12213 (cris_iterate_over_regset_sections): New function.
12214 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12215 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12216
bda874f6
CB
122172020-02-11 Christian Biesinger <cbiesinger@google.com>
12218
12219 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12220 registers.
12221
754e1564
CB
122222020-02-11 Christian Biesinger <cbiesinger@google.com>
12223
12224 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12225
8ddd8e0e
SM
122262020-02-11 Simon Marchi <simon.marchi@efficios.com>
12227
12228 * configure: Re-generate.
12229
898e7f60
SM
122302020-02-11 Simon Marchi <simon.marchi@efficios.com>
12231
12232 * configure: Re-generate.
12233
58df732b
SM
122342020-02-11 Simon Marchi <simon.marchi@efficios.com>
12235
12236 * acinclude: Update warning.m4 path.
12237 * warning.m4: Move to gdbsupport.
12238
da5bd37e
TT
122392020-02-11 Tom Tromey <tromey@adacore.com>
12240
12241 * remote.c (remote_console_output): Update.
12242 * printcmd.c (printf_command): Update.
12243 * event-loop.c (gdb_wait_for_event): Update.
12244 * linux-nat.c (sigchld_handler): Update.
12245 * remote-sim.c (gdb_os_write_stdout): Update.
12246 (gdb_os_flush_stdout): Update.
12247 (gdb_os_flush_stderr): Update.
12248 (gdb_os_write_stderr): Update.
12249 * exceptions.c (print_exception): Update.
12250 * remote-fileio.c (remote_fileio_func_read): Update.
12251 (remote_fileio_func_write): Update.
12252 * tui/tui.c (tui_enable): Update.
12253 * tui/tui-interp.c (tui_interp::init): Update.
12254 * utils.c (init_page_info): Update.
12255 (putchar_unfiltered, fputc_unfiltered): Update.
12256 (gdb_flush): Update.
12257 (emit_style_escape): Update.
12258 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12259 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12260 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12261 (stderr_file::write): Update.
12262 (stderr_file::puts): Update.
12263 * ui-file.h (ui_file_isatty, ui_file_write)
12264 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12265 (ui_file_puts): Don't declare.
12266
85f0dd3c
TV
122672020-02-10 Tom de Vries <tdevries@suse.de>
12268
12269 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12270 sentinel to char *.
12271
2e927613
TV
122722020-02-09 Tom de Vries <tdevries@suse.de>
12273
12274 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12275 filename if it matches "<artificial>".
12276
6bafc845
HD
122772020-02-09 Hannes Domani <ssbssa@yahoo.de>
12278
12279 * windows-tdep.c (struct enum_value_name): New struct.
12280 (create_enum): New function.
12281 (windows_get_siginfo_type): Create and use enum types.
12282
7928d571
HD
122832020-02-09 Hannes Domani <ssbssa@yahoo.de>
12284
12285 * NEWS: Mention $_siginfo support for Windows.
12286 * windows-nat.c (handle_exception): Set siginfo_er.
12287 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12288 (windows_xfer_siginfo): New function.
12289 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12290 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12291 (init_windows_gdbarch_data): New function.
12292 (get_windows_gdbarch_data): New function.
12293 (windows_get_siginfo_type): New function.
12294 (windows_init_abi): Register windows_get_siginfo_type.
12295 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12296
6751ebae
TT
122972020-02-08 Tom Tromey <tom@tromey.com>
12298
12299 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12300 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12301 <keep>: Declare method.
12302 <m_keep>: Remove member.
12303 <~cutu_reader>: Remove.
12304 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12305 (cutu_reader::cutu_reader): Update.
12306 (cutu_reader::keep): Rename from ~cutu_reader.
12307 (process_psymtab_comp_unit, build_type_psymtabs_1)
12308 (process_skeletonless_type_unit, load_partial_comp_unit)
12309 (load_full_comp_unit, dwarf2_read_addr_index)
12310 (read_signatured_type): Update.
12311
135f5437
TT
123122020-02-08 Tom Tromey <tom@tromey.com>
12313
12314 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12315 "want_partial_unit" parameter.
12316 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12317 Inline check for DW_TAG_partial_unit.
12318 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12319
9f66ff1c
TT
123202020-02-08 Tom Tromey <tom@tromey.com>
12321
12322 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12323 read.c.
12324 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12325 read.c.
12326
c8a7a66f
TT
123272020-02-08 Tom Tromey <tom@tromey.com>
12328
12329 * dwarf2/read.c (read_address): Move to comp-unit.c.
12330 (dwarf2_rnglists_process, dwarf2_ranges_process)
12331 (read_attribute_value, dwarf_decode_lines_1)
12332 (var_decode_location, decode_locdesc): Update.
12333 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12334 read.c. Remove "cu" parameter.
12335 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12336 method.
12337
8266302d
TT
123382020-02-08 Tom Tromey <tom@tromey.com>
12339
12340 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12341 (read_indirect_line_string): Update.
12342 * dwarf2/comp-unit.c (read_offset): Remove.
12343 (read_comp_unit_head): Update.
12344 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12345 method.
12346 (read_offset): Don't declare.
12347
4057dfde
TT
123482020-02-08 Tom Tromey <tom@tromey.com>
12349
12350 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12351 * dwarf2/read.c (struct comp_unit_head): Move to
12352 dwarf2/comp-unit.h.
12353 (enum class rcuh_kind): Move to comp-unit.h.
12354 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12355 (read_comp_unit_head, error_check_comp_unit_head)
12356 (read_and_check_comp_unit_head): Move to comp-unit.c.
12357 (read_offset, dwarf_unit_type_name): Likewise.
12358 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12359 (cutu_reader::cutu_reader, read_call_site_scope)
12360 (find_partial_die, follow_die_offset): Update.
12361 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12362
24aa364d
TT
123632020-02-08 Tom Tromey <tom@tromey.com>
12364
12365 * dwarf2/read.c (read_offset_1): Move to leb.c.
12366 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12367 (dwarf_decode_macro_bytes): Update.
12368 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12369 * dwarf2/leb.h (read_offset): Declare.
12370
2c7d5afc
TT
123712020-02-08 Tom Tromey <tom@tromey.com>
12372
12373 * dwarf2/read.c (dwarf2_section_size): Remove.
12374 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12375 Update.
12376 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12377
4075cb26
TT
123782020-02-08 Tom Tromey <tom@tromey.com>
12379
12380 * dwarf2/read.c (read_initial_length): Move to leb.c.
12381 * dwarf2/leb.h (read_initial_length): Declare.
12382 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12383 handle_nonstd parameter.
12384 * dwarf2/frame.c (read_initial_length): Remove.
12385 (decode_frame_entry_1): Update.
12386
09ba997f
TT
123872020-02-08 Tom Tromey <tom@tromey.com>
12388
12389 * dwarf2/loc.c (dwarf2_find_location_expression)
12390 (dwarf_evaluate_loc_desc::get_tls_address)
12391 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12392 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12393 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12394 (dwarf2_compile_property_to_c)
12395 (dwarf2_loc_desc_get_symbol_read_needs)
12396 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12397 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12398 (loclist_describe_location, loclist_tracepoint_var_ref)
12399 (loclist_generate_c_location): Update.
12400 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12401 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12402 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12403 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12404 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12405 (dwarf2_per_cu_data::addr_size)
12406 (dwarf2_per_cu_data::ref_addr_size)
12407 (dwarf2_per_cu_data::text_offset)
12408 (dwarf2_per_cu_data::addr_type): Now methods.
12409 (per_cu_header_read_in): Make per_cu "const".
12410 (dwarf2_version): Remove.
12411 (dwarf2_per_cu_data::int_type): Now a method.
12412 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12413 (set_die_type, read_array_type, read_subrange_index_type)
12414 (read_tag_string_type, read_subrange_type): Update.
12415 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12416 offset_size, ref_addr_size, text_offset, addr_type, version,
12417 objfile, int_type, addr_sized_int_type>: Declare methods.
12418
96c738c0
TT
124192020-02-08 Tom Tromey <tom@tromey.com>
12420
12421 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12422 Move earlier.
12423
8fdd972c
TT
124242020-02-08 Tom Tromey <tom@tromey.com>
12425
12426 * dwarf2/read.h (dwarf_line_debug): Declare.
12427 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12428 * dwarf2/read.c: Move line_header code to new files.
12429 (dwarf_line_debug): No longer static.
12430 * dwarf2/line-header.c: New file.
12431 * dwarf2/line-header.h: New file.
12432
03075812
TT
124332020-02-08 Tom Tromey <tom@tromey.com>
12434
12435 * dwarf2/read.c (struct line_header) <file_full_name,
12436 file_file_name>: Return unique_xmalloc_ptr.
12437 (line_header::file_file_name): Update.
12438 (line_header::file_full_name): Update.
12439 (dw2_get_file_names_reader): Update.
12440 (macro_start_file): Update.
12441
bb822404
TT
124422020-02-08 Tom Tromey <tom@tromey.com>
12443
12444 * dwarf2/read.c (struct line_header) <file_full_name,
12445 file_file_name>: Declare methods.
12446 (dw2_get_file_names_reader): Update.
12447 (file_file_name): Now a method.
12448 (file_full_name): Likewise.
12449 (macro_start_file): Update.
12450
009b64fc
TT
124512020-02-08 Tom Tromey <tom@tromey.com>
12452
12453 * dwarf2/read.c (dwarf_always_disassemble)
12454 (show_dwarf_always_disassemble): Move to loc.c.
12455 (_initialize_dwarf2_read): Move "always-disassemble" registration
12456 to loc.c.
12457 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12458 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12459 static.
12460 (show_dwarf_always_disassemble): Move from read.c.
12461 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12462
5895093f
TT
124632020-02-08 Tom Tromey <tom@tromey.com>
12464
12465 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12466 (create_quick_file_names_table): Return htab_up.
12467 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12468 Update.
12469 * dwarf2/read.h (struct dwarf2_per_objfile)
12470 <quick_file_names_table>: Now htab_up.
12471
b3b32279
TT
124722020-02-08 Tom Tromey <tom@tromey.com>
12473
12474 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12475
1d33d811
TT
124762020-02-08 Tom Tromey <tom@tromey.com>
12477
12478 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12479 Rewrite.
12480 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12481 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12482 (abbrev_table::abbrev_table): No longer inline.
12483 (ABBREV_HASH_SIZE): Remove.
12484 (abbrev_table::m_abbrevs): Now an htab_up.
12485
86de1d91
TT
124862020-02-08 Tom Tromey <tom@tromey.com>
12487
12488 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12489 (cutu_reader): Update.
12490 (build_type_psymtabs_1): Update.
12491 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12492 (abbrev_table::alloc_abbrev): Update.
12493 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12494 (abbrev_table::read): New static method, renamed from
12495 abbrev_table_read_table.
12496 (abbrev_table::alloc_abbrev)
12497 (abbrev_table::add_abbrev): Now private.
12498 (abbrev_table::abbrev_table): Now private.
12499 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12500
0335378b
TT
125012020-02-08 Tom Tromey <tom@tromey.com>
12502
12503 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12504 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12505 htab_up.
12506
48b490f2
TT
125072020-02-08 Tom Tromey <tom@tromey.com>
12508
12509 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12510 htab_up.
12511 (lookup_dwo_unit_in_dwp): Update.
12512 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12513 on obstack.
12514
bc68fb19
TT
125152020-02-08 Tom Tromey <tom@tromey.com>
12516
12517 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12518 obstack.
12519
d15acc42
TT
125202020-02-08 Tom Tromey <tom@tromey.com>
12521
12522 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12523 line_header_hash.
12524 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12525 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12526 Change type to htab_up.
12527
eaa5fa8b
TT
125282020-02-08 Tom Tromey <tom@tromey.com>
12529
12530 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12531 htab_up. Don't allocate on obstack.
12532 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12533 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12534 Change type to htab_up.
12535
b0b6a987
TT
125362020-02-08 Tom Tromey <tom@tromey.com>
12537
12538 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12539 Change type to htab_up.
12540 * dwarf2/read.c (create_signatured_type_table_from_index)
12541 (create_signatured_type_table_from_debug_names)
12542 (create_all_type_units, add_type_unit)
12543 (lookup_dwo_signatured_type, lookup_signatured_type)
12544 (process_skeletonless_type_unit): Update.
12545 (create_debug_type_hash_table, create_debug_types_hash_table):
12546 Change type of types_htab.
12547 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12548 htab_up. Don't allocate on obstack.
12549 (create_cus_hash_table): Change type of cus_htab parameter.
12550 (struct dwo_file) <cus, tus>: Now htab_up.
12551 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12552 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12553 (queue_and_load_all_dwo_tus): Update.
12554 * dwarf2/index-write.c (write_gdbindex): Update.
12555 (write_debug_names): Update.
12556
39856def
TT
125572020-02-08 Tom Tromey <tom@tromey.com>
12558
12559 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12560 dwarf2/read.c. Remove "next" member. Add constructor ntad
12561 destructor.
12562 (struct dwarf2_per_objfile) <queue>: New member.
12563 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12564 dwarf2/read.h.
12565 (dwarf2_queue, dwarf2_queue_tail): Remove.
12566 (class dwarf2_queue_guard): Add parameter to constructor. Use
12567 DISABLE_COPY_AND_ASSIGN.
12568 <m_per_objfile>: New member.
12569 <~dwarf2_queue_guard>: Rewrite.
12570 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12571 Update.
12572 (~dwarf2_queue_item): New.
12573
3e225074
TT
125742020-02-08 Tom Tromey <tom@tromey.com>
12575
12576 * dwarf2/read.c (struct die_info) <has_children>: New member.
12577 (dw2_get_file_names_reader): Remove has_children.
12578 (dw2_get_file_names): Update.
12579 (read_cutu_die_from_dwo): Remove has_children.
12580 (cutu_reader::init_tu_and_read_dwo_dies)
12581 (cutu_reader::cutu_reader): Update.
12582 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12583 Remove has_children.
12584 (build_type_psymtabs_1, process_skeletonless_type_unit)
12585 (load_partial_comp_unit, load_full_comp_unit): Update.
12586 (create_dwo_cu_reader): Remove has_children.
12587 (create_cus_hash_table, read_die_and_children): Update.
12588 (read_full_die_1,read_full_die): Remove has_children.
12589 (read_signatured_type): Update.
12590 (class cutu_reader) <has_children>: Remove.
12591
82ca8957
TT
125922020-02-08 Tom Tromey <tom@tromey.com>
12593
12594 * dwarf2/expr.c: Rename from dwarf2expr.c.
12595 * dwarf2/expr.h: Rename from dwarf2expr.h.
12596 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12597 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12598 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12599 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12600 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12601 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12602 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12603 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12604 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12605 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12606 * dwarf2/loc.c: Rename from dwarf2loc.c.
12607 * dwarf2/loc.h: Rename from dwarf2loc.h.
12608 * dwarf2/read.c: Rename from dwarf2read.c.
12609 * dwarf2/read.h: Rename from dwarf2read.h.
12610 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12611 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12612 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12613 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12614 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12615 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12616 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12617 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12618 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12619 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12620 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12621 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12622 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12623 Update.
12624 * Makefile.in (COMMON_SFILES): Update.
12625 (HFILES_NO_SRCDIR): Update.
12626
9e35d499
TT
126272020-02-08 Tom Tromey <tom@tromey.com>
12628
12629 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12630 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12631
1eba2311
TT
126322020-02-08 Tom Tromey <tom@tromey.com>
12633
12634 * dwarf2read.h (struct die_info): Don't declare.
12635
e41c2da2
TT
126362020-02-08 Tom Tromey <tom@tromey.com>
12637
12638 * dwarf2read.h (die_info_ptr): Remove typedef.
12639
4fc6c0d5
TT
126402020-02-08 Tom Tromey <tom@tromey.com>
12641
12642 * dwarf2read.c (read_call_site_scope)
12643 (handle_data_member_location, dwarf2_add_member_fn)
12644 (mark_common_block_symbol_computed, read_common_block)
12645 (attr_to_dynamic_prop, partial_die_info::read)
12646 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12647 (dwarf2_symbol_mark_computed, set_die_type): Update.
12648 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12649 method.
12650 (attr_form_is_block): Don't declare.
12651 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12652
cd6c91b4
TT
126532020-02-08 Tom Tromey <tom@tromey.com>
12654
12655 * dwarf2read.c (dwarf2_find_base_address, )
12656 (read_call_site_scope, rust_containing_type)
12657 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12658 (handle_data_member_location, dwarf2_add_member_fn)
12659 (get_alignment, read_structure_type, process_structure_scope)
12660 (mark_common_block_symbol_computed, read_common_block)
12661 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12662 (partial_die_info::read, read_attribute_value, new_symbol)
12663 (lookup_die_type, dwarf2_get_ref_die_offset)
12664 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12665 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12666 (dwarf2_symbol_mark_computed): Update.
12667 * dwarf2/attribute.h (struct attribute) <value_as_address,
12668 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12669 methods.
12670 (value_as_address, attr_form_is_section_offset)
12671 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12672 * dwarf2/attribute.c (attribute::value_as_address)
12673 (attribute::form_is_section_offset, attribute::form_is_constant)
12674 (attribute::form_is_ref): Now methods.
12675
162dce55
TT
126762020-02-08 Tom Tromey <tom@tromey.com>
12677
12678 * dwarf2read.c (struct attribute, DW_STRING)
12679 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12680 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12681 (attr_form_is_block, attr_form_is_section_offset)
12682 (attr_form_is_constant, attr_form_is_ref): Move.
12683 * dwarf2/attribute.h: New file.
12684 * dwarf2/attribute.c: New file, from dwarf2read.c.
12685 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12686
3054dd54
TT
126872020-02-08 Tom Tromey <tom@tromey.com>
12688
12689 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12690 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12691 Move.
12692 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12693 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12694 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12695 abbrev.c.
12696 * dwarf2/abbrev.h: New file.
12697 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12698 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12699
96b79293
TT
127002020-02-08 Tom Tromey <tom@tromey.com>
12701
12702 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12703 (dwarf2_section_size, dwarf2_get_section_info)
12704 (create_signatured_type_table_from_debug_names)
12705 (create_addrmap_from_aranges, read_debug_names_from_section)
12706 (get_gdb_index_contents_from_section, read_comp_unit_head)
12707 (error_check_comp_unit_head, read_abbrev_offset)
12708 (create_debug_type_hash_table, init_cu_die_reader)
12709 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12710 (read_comp_units_from_section, create_cus_hash_table)
12711 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12712 (create_dwp_v2_section, dwarf2_rnglists_process)
12713 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12714 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12715 (read_indirect_string_from_dwz, read_addr_index_1)
12716 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12717 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12718 (fill_in_loclist_baton): Update.
12719 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12720 get_containing_section, get_bfd_owner, get_bfd_section,
12721 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12722 (dwarf2_read_section, get_section_name, get_section_file_name)
12723 (get_containing_section, get_section_bfd_owner)
12724 (get_section_bfd_section, get_section_name, get_section_file_name)
12725 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12726 declare.
12727 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12728 (dwarf2_section_info::get_bfd_owner)
12729 (dwarf2_section_info::get_bfd_section)
12730 (dwarf2_section_info::get_name)
12731 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12732 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12733 (dwarf2_section_info::read): Now methods.
12734 * dwarf-index-write.c (class debug_names): Update.
12735
2c86cff9
TT
127362020-02-08 Tom Tromey <tom@tromey.com>
12737
12738 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12739 Move to dwarf2/section.h.
12740 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12741 (get_section_bfd_section, get_section_name)
12742 (get_section_file_name, get_section_id, get_section_flags)
12743 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12744 dwarf2/section.c.
12745 * dwarf2/section.h: New file.
12746 * dwarf2/section.c: New file, from dwarf2read.c.
12747 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12748
f4382c45
TT
127492020-02-08 Tom Tromey <tom@tromey.com>
12750
12751 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12752 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12753 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12754 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12755 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12756 * dwarf2/leb.h: New file, from dwarf2read.c.
12757 * dwarf2/leb.c: New file, from dwarf2read.c.
12758 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12759 Remove.
12760 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12761 (COMMON_SFILES): Add dwarf2/leb.c.
12762
01840b7a
JB
127632020-02-08 Joel Brobecker <brobecker@adacore.com>
12764
12765 GDB 9.1 released.
12766
dfcb27e4
IB
127672020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12768
12769 PR gdb/25190:
aac66a4c
SM
12770 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12771 * gdb/remote.c (remote_console_output): Update.
12772 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12773 (ui_file_puts): ...this.
12774 * gdb/ui-file.h (ui_file_puts): Add declaration.
12775 * gdb/utils.c (emit_style_escape): Update.
12776 (flush_wrap_buffer): Update.
12777 (fputs_maybe_filtered): Update.
12778 (fputs_unfiltered): Add function.
dfcb27e4 12779
faa17681
IB
127802020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12781
aac66a4c
SM
12782 * gdb/event-loop.c (gdb_wait_for_event): Update.
12783 * gdb/printcmd.c (printf_command): Update.
12784 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12785 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12786 (gdb_os_flush_stderr): Update.
12787 * gdb/remote.c (remote_console_output): Update.
12788 * gdb/ui-file.c (gdb_flush): Rename to...
12789 (ui_file_flush): ...this.
12790 (stderr_file::write): Update.
12791 (stderr_file::puts): Update.
12792 * gdb/ui-file.h (gdb_flush): Rename to...
12793 (ui_file_flush): ...this.
12794 * gdb/utils.c (gdb_flush): Add function.
12795 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12796
5abbbe1d
TT
127972020-02-07 Tom Tromey <tromey@adacore.com>
12798
12799 PR breakpoints/24915:
12800 * source.c (find_and_open_source): Do not check basenames_may_differ.
12801
919adfe8
TT
128022020-02-07 Tom Tromey <tom@tromey.com>
12803
12804 * README: Update gdbserver documentation.
12805 * gdbserver: Move to top level.
12806 * configure.tgt (build_gdbserver): Remove.
12807 * configure.ac: Remove --enable-gdbserver.
12808 * configure: Rebuild.
12809 * Makefile.in (distclean): Don't mention gdbserver.
12810
1d5d29e7
SV
128112020-02-06 Shahab Vahedi <shahab@synopsys.com>
12812
12813 * source-cache.c (source_cache::ensure): Surround
12814 get_plain_source_lines with a try/catch.
12815 (source_cache::get_line_charpos): Get rid of try/catch
12816 and only check for the return value of "ensure".
12817 * tui/tui-source.c (tui_source_window::set_contents):
12818 Simplify "nlines" calculation.
12819
6eb1129c
SV
128202020-02-06 Shahab Vahedi <shahab@synopsys.com>
12821
12822 * MAINTAINERS (Write After Approval): Add myself.
12823
c6a42d11
CB
128242020-02-05 Christian Biesinger <cbiesinger@google.com>
12825
12826 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12827 function call.
12828
c8ecdda6
CB
128292020-02-05 Christian Biesinger <cbiesinger@google.com>
12830
12831 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12832
f6480e70
MR
128332020-02-05 Maciej W. Rozycki <macro@wdc.com>
12834
12835 * nat/riscv-linux-tdesc.h: New file.
12836 * nat/riscv-linux-tdesc.c: New file, taking code from...
12837 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12838 ... here.
12839 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12840 NATDEPFILES.
12841
dcc9fbc6
AB
128422020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12843
12844 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12845 we don't set the fake simulator ptid to the null_ptid.
12846
719546c4
SM
128472020-02-03 Simon Marchi <simon.marchi@efficios.com>
12848
12849 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12850 * gdbthread.h (class thread_info) <resumed>: Likewise.
12851 * infrun.c (resume_1): Likewise.
12852 (proceed): Likewise.
12853 (infrun_thread_stop_requested): Likewise.
12854 (stop_all_threads): Likewise.
12855 (handle_inferior_event): Likewise.
12856 (restart_threads): Likewise.
12857 (finish_step_over): Likewise.
12858 (keep_going_stepped_thread): Likewise.
12859 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12860 (linux_handle_extended_wait): Likewise.
12861 * record-btrace.c (get_thread_current_frame_id): Likewise.
12862 * record-full.c (record_full_wait_1): Likewise.
12863 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12864 * target.c (target_resume): Likewise.
12865 * thread.c (set_running_thread): Likewise.
12866
e409c542
AKS
128672020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12868
12869 * f-valprint.c (f77_print_array_1): Changed datatype of index
12870 variable to LONGEST from int to enable it to contain bound
12871 values correctly.
12872
ee98c0da
MR
128732020-02-03 Maciej W. Rozycki <macro@wdc.com>
12874
12875 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12876 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12877 offsets according to FLEN determined.
12878 (riscv_linux_nat_target::read_description): Determine FLEN
12879 dynamically.
12880 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12881 according to FLEN determined.
12882 (riscv_linux_nat_target::store_registers): Likewise.
12883
aa66aac4
SV
128842020-02-01 Shahab Vahedi <shahab@synopsys.com>
12885
12886 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12887 when reg->group is empty and reggroup is not.
12888
fd9faca8
TT
128892020-01-31 Tom Tromey <tromey@adacore.com>
12890
12891 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12892 Call beneath target's mourn_inferior after unpushing.
12893
42330a68
AB
128942020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12895
12896 PR tui/9765
12897 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12898 have enough lines to fill the screen, still return the lowest
12899 address we found.
12900
7a27a45b
AB
129012020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12902
12903 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12904 '-', '<', and '>' commands.
12905
c47f70e2
PA
129062020-01-29 Pedro Alves <palves@redhat.com>
12907 Sergio Durigan Junior <sergiodj@redhat.com>
12908
12909 * infcmd.c (construct_inferior_arguments): Assert that
12910 'argc' is greater than 0.
12911
5133a315
LM
129122020-01-29 Luis Machado <luis.machado@linaro.org>
12913
12914 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12915 (BRK_INSN_MASK): Define to 0xd4200000.
12916 (aarch64_program_breakpoint_here_p): New function.
12917 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12918 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12919 breakpoint.c.
12920 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12921 breakpoint.h
12922 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12923 call gdbarch_program_breakpoint_here_p.
12924 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12925 default_program_breakpoint_here_p, changed return type to bool and
12926 simplified.
12927 * breakpoint.h (program_breakpoint_here): Moved prototype to
12928 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12929 return type to bool.
12930 * gdbarch.c: Regenerate.
12931 * gdbarch.h: Regenerate.
12932 * gdbarch.sh (program_breakpoint_here_p): New method.
12933 * infrun.c (handle_signal_stop): Call
12934 gdbarch_program_breakpoint_here_p.
12935
168f8c6b
TT
129362020-01-26 Tom Tromey <tom@tromey.com>
12937
12938 * ctfread.c (struct ctf_fp_info): Reindent.
12939 (_initialize_ctfread): Remove.
12940
128a391f
TT
129412020-01-26 Tom Tromey <tom@tromey.com>
12942
12943 * psymtab.c (partial_map_expand_apply)
12944 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12945 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12946 (psym_print_stats, psym_expand_symtabs_for_function)
12947 (psym_map_symbol_filenames, psym_map_matching_symbols)
12948 (psym_expand_symtabs_matching)
12949 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12950 (maintenance_check_psymtabs): Use new methods.
12951 * psympriv.h (struct partial_symtab) <readin_p,
12952 get_compunit_symtab>: New methods.
12953 <readin, compunit_symtab>: Remove members.
12954 (struct standard_psymtab): New.
12955 (struct legacy_psymtab): Derive from standard_psymtab.
12956 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12957 standard_psymtab.
12958 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12959
0494dbec
TT
129602020-01-26 Tom Tromey <tom@tromey.com>
12961
12962 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12963 read_dependencies. Add assert.
12964 * psymtab.c (partial_symtab::read_dependencies): New method.
12965 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12966 method.
12967 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12968 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12969 read_dependencies.
12970 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12971 Add assert.
12972
8566b89b
TT
129732020-01-26 Tom Tromey <tom@tromey.com>
12974
12975 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12976 Call expand_psymtab.
12977 (xcoff_read_symtab): Call expand_psymtab.
12978 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12979 legacy_expand_psymtab.
12980 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12981 method.
12982 (struct legacy_psymtab) <expand_psymtab>: Implement.
12983 <legacy_expand_psymtab>: New member.
12984 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12985 (parse_partial_symbols): Set legacy_expand_psymtab.
12986 (psymtab_to_symtab_1): Change argument order. Call
12987 expand_psymtab.
12988 (new_psymtab): Set legacy_expand_psymtab.
12989 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12990 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12991 expand_psymtab.
12992 (dwarf2_psymtab::expand_psymtab): Rename from
12993 psymtab_to_symtab_1. Call expand_psymtab.
12994 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12995 (dbx_end_psymtab): Likewise.
12996 (dbx_psymtab_to_symtab_1): Change argument order. Call
12997 expand_psymtab.
12998 (dbx_read_symtab): Call expand_psymtab.
12999 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13000 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13001 (ctf_psymtab::read_symtab): Call expand_psymtab.
13002
077cbab2
TT
130032020-01-26 Tom Tromey <tom@tromey.com>
13004
13005 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13006 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13007 messages.
13008 * mdebugread.c (mdebug_read_symtab): Remove prints.
13009 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13010 assert.
13011 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13012
891813be
TT
130132020-01-26 Tom Tromey <tom@tromey.com>
13014
13015 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13016 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13017 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13018 legacy_symtab.
13019 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13020 * psymtab.c (psymtab_to_symtab): Call method.
13021 (dump_psymtab): Update.
13022 * psympriv.h (struct partial_symtab): Add virtual destructor.
13023 <read_symtab>: New method.
13024 (struct legacy_symtab): New.
13025 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13026 (struct pst_map) <pst>: Now a legacy_psymtab.
13027 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13028 (new_psymtab): Use legacy_psymtab.
13029 * dwarf2read.h (struct dwarf2_psymtab): New.
13030 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13031 * dwarf2read.c (dwarf2_create_include_psymtab)
13032 (dwarf2_build_include_psymtabs, create_type_unit_group)
13033 (create_partial_symtab, process_psymtab_comp_unit_reader)
13034 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13035 (set_partial_user): Use dwarf2_psymtab.
13036 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13037 (psymtab_to_symtab_1, process_full_comp_unit)
13038 (process_full_type_unit, dwarf2_ranges_read)
13039 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13040 (dwarf_decode_lines): Use dwarf2_psymtab.
13041 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13042 (add_address_entry_worker, write_one_signatured_type)
13043 (recursively_count_psymbols, recursively_write_psymbols)
13044 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13045 (write_debug_names): Likewise.
13046 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13047 <pst>: Now a legacy_psymtab.
13048 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13049 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13050 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13051 * ctfread.c (struct ctf_psymtab): New.
13052 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13053 ctf_psymtab.
13054 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13055 (create_partial_symtab): Return a ctf_psymtab.
13056 (scan_partial_symbols): Update.
13057
c3693a1d
TT
130582020-01-26 Tom Tromey <tom@tromey.com>
13059
13060 * xcoffread.c (xcoff_start_psymtab): Use new.
13061 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13062 renamed from start_psymtab_common.
13063 * psympriv.h (struct partial_symtab): Add new constructor.
13064 (start_psymtab_common): Don't declare.
13065 * mdebugread.c (parse_partial_symbols): Use new.
13066 * dwarf2read.c (create_partial_symtab): Use new.
13067 * dbxread.c (start_psymtab): Use new.
13068 * ctfread.c (create_partial_symtab): Use new.
13069
32caafd0
TT
130702020-01-26 Tom Tromey <tom@tromey.com>
13071
13072 * xcoffread.c (xcoff_end_psymtab): Use new.
13073 * psymtab.c (start_psymtab_common): Use new.
13074 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13075 Update.
13076 * psympriv.h (struct partial_symtab): Add parameters to
13077 constructor. Don't inline.
13078 (allocate_psymtab): Don't declare.
13079 * mdebugread.c (new_psymtab): Use new.
13080 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13081 * dbxread.c (dbx_end_psymtab): Use new.
13082
abaa2f23
TT
130832020-01-26 Tom Tromey <tom@tromey.com>
13084
13085 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13086 allocate_psymtab. Update documentation.
13087 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13088 allocate_psymtab. Do not use new.
13089 (allocate_psymtab): Use new. Update.
13090
6d94535f
TT
130912020-01-26 Tom Tromey <tom@tromey.com>
13092
13093 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13094 * psymtab.c (psym_print_stats): Update.
13095 * psympriv.h (struct partial_symtab) <readin,
13096 psymtabs_addrmap_supported, anonymous>: Now bool.
13097 * mdebugread.c (psymtab_to_symtab_1): Update.
13098 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13099 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13100 (process_full_comp_unit, process_full_type_unit): Update.
13101 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13102 * ctfread.c (psymtab_to_symtab): Update.
13103
6f17252b
TT
131042020-01-26 Tom Tromey <tom@tromey.com>
13105
13106 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13107 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13108 * psymtab.c (psymtab_storage): Delete psymtabs.
13109 (psymtab_storage::allocate_psymtab): Use new.
13110 (psymtab_storage::discard_psymtab): Use delete.
13111 * psympriv.h (struct partial_symtab): Add constructor and
13112 initializers.
13113
f6f1cebc
TT
131142020-01-26 Tom Tromey <tom@tromey.com>
13115
13116 * machoread.c: Do not include psympriv.h.
13117
e47e48f6
PW
131182020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13119
13120 * NEWS: Mention the new option and the set/show commands.
13121
a2fedca9
PW
131222020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13123
13124 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13125 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13126 (validate_exec_file): New variables, enums, functions.
13127 (exec_file_locate_attach, print_section_info): Style the filenames.
13128 (_initialize_exec): Install show_exec_file_mismatch_command and
13129 set_exec_file_mismatch_command.
13130 * gdbcore.h (validate_exec_file): Declare.
13131 * infcmd.c (attach_command): Call validate_exec_file.
13132 * remote.c ( remote_target::remote_add_inferior): Likewise.
13133
7ffa82e1
AB
131342020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13135
13136 * frame.c (find_frame_sal): Move call to get_next_frame into more
13137 inner scope.
13138 * inline-frame.c (inilne_state) <inline_state>: Update argument
13139 types.
13140 (inilne_state) <skipped_symbol>: Rename to...
13141 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13142 (skip_inline_frames): Build vector of skipped symbols and use this
13143 to reate the inline_state.
13144 (inline_skipped_symbol): Add a comment and some assertions, fetch
13145 skipped symbol from the list.
13146
3d92a3e3
AB
131472020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13148
13149 * buildsym.c (lte_is_less_than): Delete.
13150 (buildsym_compunit::end_symtab_with_blockvector): Create local
13151 lambda function to sort line table entries, and use
13152 std::stable_sort instead of std::sort.
13153 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13154 markers when looking for a previous line.
13155
94a72be7
AB
131562020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13157
13158 * dwarf2read.c (lnp_state_machine::record_line): Include
13159 end_sequence parameter in debug print out. Record the line if we
13160 are at an end_sequence marker even if it's not the start of a
13161 statement.
13162 * symmisc.c (maintenance_print_one_line_table): Print end of
13163 sequence markers with 'END' not '0'.
13164
53af73bf
PA
131652020-01-24 Pedro Alves <palves@redhat.com>
13166
13167 PR gdb/25410
13168 * thread.c (scoped_restore_current_thread::restore): Use
13169 switch_to_inferior_no_thread.
13170 * exec.c: Include "progspace-and-thread.h".
13171 (add_target_sections, remove_target_sections):
13172 scoped_restore_current_pspace_and_thread instead of
13173 scoped_restore_current_thread.
13174 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13175 and aspace to the inferior before calling clone_program_space.
13176 Remove stale comment.
13177
3050c6f4
CB
131782020-01-24 Christian Biesinger <cbiesinger@google.com>
13179
13180 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13181 (arm_netbsd_nat_target::fetch_registers): ...this.
13182 (arm_nbsd_nat_target::store_registers): Rename to...
13183 (arm_netbsd_nat_target::store_registers): ...this.
13184
73685c7e
CB
131852020-01-24 Christian Biesinger <cbiesinger@google.com>
13186
13187 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13188 register_t.
13189
89203d40
CB
131902020-01-24 Christian Biesinger <cbiesinger@google.com>
13191
13192 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13193 Update comment.
13194 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13195 Likewise.
13196 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13197 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13198 the correct replacement (iterate_over_regset_sections).
13199 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13200 Update comment.
13201
1ba1ac88
AB
132022020-01-24 Graham Markall <graham.markall@embecosm.com>
13203
13204 PR gdb/23718
13205 * gdb/python/python.c (execute_gdb_command): Call
13206 async_enable_stdin in catch block.
13207
f3364a6d
AB
132082020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13209
13210 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13211 SWITCH_THRU_ALL_UIS.
13212
733d0a67
AB
132132020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13214
13215 PR tui/9765
13216 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13217 comment, add extra parameter, and update to store previous symbol
13218 when appropriate.
13219 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13220 add extra parameter.
13221 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13222 remove unneeded parameter, add try/catch around gdb_print_insn,
13223 rewrite to add items to asm_lines vector.
13224 (tui_find_backward_disassembly_start_address): New function.
13225 (tui_find_disassembly_address): Updated throughout.
13226 (tui_disasm_window::set_contents): Update for changes to
13227 tui_disassemble.
13228 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13229 number of lines to scroll.
13230
b3b3bada
SM
132312020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13232
13233 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13234 (SECT_OFF_DATA): Likewise.
13235 (SECT_OFF_RODATA): Likewise.
13236 (SECT_OFF_TEXT): Likewise.
13237 (SECT_OFF_BSS): Likewise.
13238 (struct objfile) <text_section_offset, data_section_offset>: New
13239 methods.
13240 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13241 objfile::text_section_offset.
13242 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13243 * coffread.c (coff_symtab_read): Likewise.
13244 (enter_linenos): Likewise.
13245 (process_coff_symbol): Likewise.
13246 * ctfread.c (get_objfile_text_range): Likewise.
13247 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13248 Use objfile::data_section_offset.
13249 * dwarf2-frame.c (execute_cfa_program): Use
13250 objfile::text_section_offset.
13251 (dwarf2_frame_find_fde): Likewise.
13252 * dwarf2read.c (create_addrmap_from_index): Likewise.
13253 (create_addrmap_from_aranges): Likewise.
13254 (dw2_find_pc_sect_compunit_symtab): Likewise.
13255 (process_psymtab_comp_unit_reader): Likewise.
13256 (add_partial_symbol): Likewise.
13257 (add_partial_subprogram): Likewise.
13258 (process_full_comp_unit): Likewise.
13259 (read_file_scope): Likewise.
13260 (read_func_scope): Likewise.
13261 (read_lexical_block_scope): Likewise.
13262 (read_call_site_scope): Likewise.
13263 (dwarf2_rnglists_process): Likewise.
13264 (dwarf2_ranges_process): Likewise.
13265 (dwarf2_ranges_read): Likewise.
13266 (dwarf_decode_lines_1): Likewise.
13267 (new_symbol): Likewise.
13268 (dwarf2_fetch_die_loc_sect_off): Likewise.
13269 (dwarf2_per_cu_text_offset): Likewise.
13270 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13271 * hppa-tdep.c (read_unwind_info): Likewise.
13272 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13273 * psympriv.h (struct partial_symtab): Likewise.
13274 * psymtab.c (find_pc_sect_psymtab): Likewise.
13275 * solib-svr4.c (enable_break): Likewise.
13276 * stap-probe.c (relocate_address): Use
13277 objfile::data_section_offset.
13278 * xcoffread.c (enter_line_range): Use
13279 objfile::text_section_offset.
13280 (read_xcoff_symtab): Likewise.
13281
ab53f382
SM
132822020-01-23 Simon Marchi <simon.marchi@efficios.com>
13283
13284 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13285 declaration to narrower scopes.
13286
e7eee665
SM
132872020-01-23 Simon Marchi <simon.marchi@efficios.com>
13288
13289 * darwin-nat.h (struct darwin_exception_msg, enum
13290 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13291 Move up.
13292 (class darwin_nat_target) <wait_1, check_new_threads,
13293 decode_exception_message, decode_message, stop_inferior,
13294 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13295 * darwin-nat.c (darwin_check_new_threads): Rename to...
13296 (darwin_nat_target::check_new_threads): ... this.
13297 (darwin_suspend_inferior_it): Remove.
13298 (darwin_decode_exception_message): Rename to...
13299 (darwin_nat_target::decode_exception_message): ... this.
13300 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13301 (darwin_decode_message): Rename to...
13302 (darwin_nat_target::decode_message): ... this.
13303 (cancel_breakpoint): Rename to...
13304 (darwin_nat_target::cancel_breakpoint): ... this.
13305 (darwin_wait): Rename to...
13306 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13307 instead of iterate_over_inferiors.
13308 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13309 (darwin_stop_inferior): Rename to...
13310 (darwin_nat_target::stop_inferior): ... this.
13311 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13312 (darwin_init_thread_list): Rename to...
13313 (darwin_nat_target::init_thread_list): ... this.
13314 (darwin_ptrace_him): Rename to...
13315 (darwin_nat_target::ptrace_him): ... this.
13316 (darwin_nat_target::create_inferior): Pass lambda function to
13317 fork_inferior.
13318 (darwin_nat_target::detach): Call stop_inferior instead of
13319 darwin_stop_inferior.
13320 * fork-inferior.h (fork_inferior): Change init_trace_fun
13321 parameter to gdb::function_view.
13322 * fork-inferior.c (fork_inferior): Likewise.
13323
c162ed3e
HD
133242020-01-23 Hannes Domani <ssbssa@yahoo.de>
13325
13326 * i386-cygwin-tdep.c (core_process_module_section): Update.
13327 * windows-nat.c (struct lm_info_windows): Add text_offset.
13328 (windows_xfer_shared_libraries): Update.
13329 * windows-tdep.c (windows_xfer_shared_library):
13330 Add text_offset_cached argument.
13331 * windows-tdep.h (windows_xfer_shared_library): Update.
13332
a1237872
SM
133332020-01-21 Simon Marchi <simon.marchi@efficios.com>
13334
13335 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13336
b3ee6dd9
SM
133372020-01-21 Simon Marchi <simon.marchi@efficios.com>
13338
13339 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13340 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13341 replace with range-based for.
13342 (gdbsim_interrupt_inferior): Remove.
13343 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13344 with a range-based for. Inline code from
13345 gdbsim_interrupt_inferior.
13346
f9fac3c8
SM
133472020-01-21 Simon Marchi <simon.marchi@efficios.com>
13348
13349 * infrun.c (proceed): Fix indentation.
13350
f6474de9
TT
133512020-01-21 Tom Tromey <tromey@adacore.com>
13352
13353 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13354 * python/python.c (python_extension_ops): Update.
13355 (gdbpy_colorize): New function.
13356 * python/lib/gdb/__init__.py (colorize): New function.
13357 * extension.h (ext_lang_colorize): Declare.
13358 * extension.c (ext_lang_colorize): New function.
13359 * extension-priv.h (struct extension_language_ops) <colorize>: New
13360 member.
13361 * cli/cli-style.c (_initialize_cli_style): Update help text.
13362
f0c702d4
LM
133632020-01-21 Luis Machado <luis.machado@linaro.org>
13364
13365 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13366 <cond>: Change type to bool.
13367 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13368 (aarch64_displaced_step_cb): Likewise.
13369 (aarch64_displaced_step_tb): Likewise.
13370
1ab139e5
LM
133712020-01-21 Luis Machado <luis.machado@linaro.org>
13372
13373 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13374 output.
13375
0c271889
LM
133762020-01-21 Luis Machado <luis.machado@linaro.org>
13377
13378 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13379 <pc_adjust>: Adjust the documentation.
13380 (aarch64_displaced_step_fixup): Check if PC really moved before
13381 adjusting it.
13382
4d89c1c7
TT
133832020-01-19 Tom Tromey <tom@tromey.com>
13384
13385 * disasm.c (~gdb_disassembler): New destructor.
13386 (gdb_buffered_insn_length): Call disassemble_free_target.
13387 * disasm.h (class gdb_disassembler): Declare destructor. Use
13388 DISABLE_COPY_AND_ASSIGN.
13389
c0ab21c2
TT
133902020-01-19 Tom Tromey <tom@tromey.com>
13391
13392 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13393 (die_reader_func_ftype): Remove.
13394 (cutu_reader): New class.
13395 (dw2_get_file_names_reader): Remove "data" parameter.
13396 (dw2_get_file_names): Use cutu_reader.
13397 (create_debug_type_hash_table): Update.
13398 (read_cutu_die_from_dwo): Update comment.
13399 (lookup_dwo_unit): Add dwo_name parameter.
13400 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13401 die_reader_func_ftype and data parameters.
13402 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13403 Remove die_reader_func_ftype and data parameters.
13404 (~cutu_reader): New; from init_cutu_and_read_dies.
13405 (cutu_reader::cutu_reader): Rename from
13406 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13407 and data parameters.
13408 (init_cutu_and_read_dies_simple): Remove.
13409 (struct process_psymtab_comp_unit_data): Remove.
13410 (process_psymtab_comp_unit_reader): Remove data parameter; add
13411 want_partial_unit and pretend_language parameters.
13412 (process_psymtab_comp_unit): Use cutu_reader.
13413 (build_type_psymtabs_reader): Remove data parameter.
13414 (build_type_psymtabs_1): Use cutu_reader.
13415 (process_skeletonless_type_unit): Likewise.
13416 (load_partial_comp_unit_reader): Remove.
13417 (load_partial_comp_unit): Use cutu_reader.
13418 (load_full_comp_unit_reader): Remove.
13419 (load_full_comp_unit): Use cutu_reader.
13420 (struct create_dwo_cu_data): Remove.
13421 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13422 dwo_unit parameters.
13423 (create_cus_hash_table): Use cutu_reader.
13424 (struct dwarf2_read_addr_index_data): Remove.
13425 (dwarf2_read_addr_index_reader): Remove.
13426 (dwarf2_read_addr_index): Use cutu_reader.
13427 (read_signatured_type_reader): Remove.
13428 (read_signatured_type): Use cutu_reader.
13429
45bbae5c
TT
134302020-01-19 Tom Tromey <tom@tromey.com>
13431
13432 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13433 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13434 (tui_wrefresh): Declare.
13435 * tui/tui-wingeneral.c (suppress_output): New global.
13436 (tui_suppress_output, ~tui_suppress_output): New constructor and
13437 destructor.
13438 (tui_wrefresh): New function.
13439 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13440 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13441 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13442 method.
13443 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13444 tui_wrefresh.
13445 (tui_data_window::no_refresh): New method.
13446 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13447 (tui_reg_command): Use tui_suppress_output
13448 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13449 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13450 method.
13451 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13452
4f13c1c0
TT
134532020-01-19 Tom Tromey <tom@tromey.com>
13454
13455 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13456 Handle case where symtab is null.
13457
fa47e446
SM
134582020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13459
13460 * linux-fork.c (one_fork_p): Simplify.
13461
26f42329
SM
134622020-01-17 Simon Marchi <simon.marchi@efficios.com>
13463
13464 * top.c (struct qt_args): Remove.
13465 (kill_or_detach): Change return type to void, replace `void *`
13466 parameter with a proper one.
13467 (print_inferior_quit_action): Likewise.
13468 (quit_confirm): Use range-based for loop to iterate over inferiors.
13469 (quit_force): Likewise.
13470
a9ac81b1
SM
134712020-01-17 Simon Marchi <simon.marchi@efficios.com>
13472
13473 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13474 `void *` parameter with proper parameters.
13475 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13476 (print_one_inferior): Change return type to void, replace `void *`
13477 parameter with proper parameters.
13478 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13479 inferiors.
13480 (get_other_inferior): Remove.
13481 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13482 inferiors.
13483
788eca49
SM
134842020-01-17 Simon Marchi <simon.marchi@efficios.com>
13485
13486 * mi/mi-interp.c (report_initial_inferior): Remove.
13487 (mi_interp::init): Use range-based for to iterate over inferiors.
13488
d9bc85b6
SM
134892020-01-17 Simon Marchi <simon.marchi@efficios.com>
13490
13491 * python/py-inferior.c (build_inferior_list): Remove.
13492 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13493
40c94099
CB
134942020-01-16 Christian Biesinger <cbiesinger@google.com>
13495
13496 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13497 (btrace_stitch_trace): Likewise.
13498 * charset.c (intermediate_encoding): Likewise (vaild).
13499 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13500 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13501 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13502
e0cdfe3c
HD
135032020-01-16 Hannes Domani <ssbssa@yahoo.de>
13504
13505 * windows-tdep.c (windows_get_tlb_type):
13506 Add rtl_user_process_parameters type.
13507
790f1718 135082020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13509 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13510
13511 PR build/24805
13512 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13513 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13514 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13515 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13516 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13517 (ps_plog): Redeclare exported functions with default visibility.
13518
3112ed97
NA
135192020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13520
13521 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13522 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13523
8dc3273e
SM
135242020-01-15 Simon Marchi <simon.marchi@efficios.com>
13525
13526 * infcmd.c (post_create_inferior): Use get_thread_regcache
13527 instead of get_current_regcache.
13528
ff47f4f0
TT
135292020-01-14 Tom Tromey <tom@tromey.com>
13530
13531 PR symtab/12535:
13532 * python/python.c (gdbpy_decode_line): Treat empty string the same
13533 as no argument.
13534
975f45b7
TT
135352020-01-14 Tom Tromey <tom@tromey.com>
13536
13537 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13538
25e57356
TT
135392020-01-14 Tom Tromey <tom@tromey.com>
13540
13541 * nat/linux-btrace.c: Don't include <config.h>.
13542 * nat/linux-ptrace.c: Don't include <config.h>.
13543 * nat/x86-linux-dregs.c: Don't include <config.h>.
13544
05ea2a05
TT
135452020-01-14 Tom Tromey <tom@tromey.com>
13546
13547 * configure: Rebuild.
13548 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13549
01027315
TT
135502020-01-14 Tom Tromey <tom@tromey.com>
13551
13552 * nat/x86-linux-dregs.c: Include configh.h.
13553 * nat/linux-ptrace.c: Include configh.h.
13554 * nat/linux-btrace.c: Include configh.h.
13555 * defs.h: Include config.h, bfd.h.
13556 * configure.ac: Don't source common.host.
13557 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13558 * configure: Rebuild.
13559 * acinclude.m4: Update path.
13560 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13561 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13562 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13563 (CLIBS): Add LIBSUPPORT.
13564 (CDEPS): Likewise.
13565 (COMMON_SFILES): Remove gdbsupport files.
13566 (HFILES_NO_SRCDIR): Likewise.
13567 (stamp-version): Update path to create-version.sh.
13568 (ALLDEPFILES): Remove gdbsupport files.
13569
b2ceabe8
TT
135702020-01-14 Tom Tromey <tom@tromey.com>
13571
13572 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13573 USE_WIN32API when needed.
13574 * configure.ac (USE_WIN32API): Don't define.
13575 (WIN32LIBS): Use WIN32APILIBS.
13576 * configure: Rebuild.
13577
25c51f71
TT
135782020-01-14 Tom Tromey <tom@tromey.com>
13579
13580 * configure: Rebuild.
13581 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13582
717c684d
BE
135832020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13584
13585 * skip.c (skip_function_command): Make skip w/o arguments use the
13586 name of the inlined function if pc is inside any inlined function.
13587
7da6a5b9
LM
135882020-01-14 Luis Machado <luis.machado@linaro.org>
13589
13590 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13591 * infrun.c (resume_1): Likewise.
13592 (handle_inferior_event): Remove stale comment.
13593 * linux-nat.c (linux_nat_target::resume): Update comments.
13594 (save_stop_reason): Likewise.
13595 (linux_nat_filter_event): Likewise.
13596 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13597
44e4c775
AB
135982020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13599
13600 * elfread.c (record_minimal_symbol): Set section index to 0 for
13601 non-allocatable sections.
13602
18a8505e
AT
13603
136042020-01-13 Ali Tamur <tamur@google.com>
13605
13606 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13607 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13608 to gdb::optional. Update comments.
13609 (dwo_file): Update comments.
13610 (read_attribute): Update API to take an additional out parameter,
13611 need_reprocess. This is used to mark attributes that need other
13612 attributes (e.g. str_offsets_base) for correct computation which may not
13613 have been read yet.
13614 (read_attribute_reprocess): New function declaration.
13615 (read_addr_index): Likewise.
13616 (read_dwo_str_index): Likewise.
13617 (read_stub_str_index): Likewise.
13618 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13619 (lookup_addr_base): New function definition.
13620 (lookup_ranges_base): Likewise.
13621 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13622 lookup_ranges_base.
13623 (init_cutu_and_read_dies): Update comments.
13624 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13625 unit. This is used to inherit parent's str_offsets_base and addr_base.
13626 Update comments.
13627 (init_cutu_and_read_dies_simple): Reflect API changes.
13628 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13629 (create_cus_hash_table): Change API to take parent compile unit.
13630 Reflect API changes.
13631 (open_and_init_dwo_file): Reflect API changes.
13632 (dwarf2_get_pc_bounds): Update comments.
13633 (dwarf2_record_block_ranges): Likewise.
13634 (read_full_die_1): Change implementation to reprocess attributes that
13635 need str_offsets_base and addr_base.
13636 (partial_die_info::read): Likewise.
13637 (read_attribute_reprocess): New function definition.
13638 (read_attribute_value): Change API to take an additional out parameter,
13639 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13640 when a non-dwo compile unit has index based attributes.
13641 (read_attribute): Reflect API changes.
13642 (read_addr_index_1): Reflect API changes. Update comments.
13643 (dwarf2_read_addr_index_data): Reflect API changes.
13644 (dwarf2_read_addr_index): Likewise.
13645 (read_str_index): Change API and implementation. This becomes a helper
13646 to be used by the new string index related methods. Update error
13647 message and comments.
13648 (read_dwo_str_index): New function definition.
13649 (read_stub_str_index): Likewise.
13650 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13651 * symfile.h (dwarf2_debug_sections): Likewise.
13652 * xcoffread.c (dwarf2_debug_sections): Likewise.
13653
0cac9354
SM
136542020-01-13 Simon Marchi <simon.marchi@efficios.com>
13655
13656 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13657 core_reg_sect type to gdb_byte *.
13658 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13659 * cris-tdep.c (fetch_core_registers): Likewise.
13660 * corelow.c (core_target::get_core_register_section): Change
13661 type of `contents` to gdb::byte_vector.
13662
9a6d629c
AB
136632020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13664
13665 * tui/tui-wingeneral.c (box_win): Position the title in the center
13666 of the border.
13667
d8b2f9e3
SM
136682020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13669
13670 * corelow.c (core_target::get_core_register_section): Use
13671 std::vector instead of alloca.
13672
bb564c58
SM
136732020-01-13 Simon Marchi <simon.marchi@efficios.com>
13674
13675 * warning.m4: Add -Wmissing-declarations to build_warnings.
13676 * configure: Re-generate.
13677
6b366111
SM
136782020-01-13 Simon Marchi <simon.marchi@efficios.com>
13679
13680 * python/python.c (init__gdb_module): Add declaration.
13681
6c265988
SM
136822020-01-13 Simon Marchi <simon.marchi@efficios.com>
13683
13684 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13685 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13686 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13687 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13688 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13689 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13690 * ada-exp.y (_initialize_ada_exp): Add declaration.
13691 * ada-lang.c (_initialize_ada_language): Add declaration.
13692 * ada-tasks.c (_initialize_tasks): Add declaration.
13693 * agent.c (_initialize_agent): Add declaration.
13694 * aix-thread.c (_initialize_aix_thread): Add declaration.
13695 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13696 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13697 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13698 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13699 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13700 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13701 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13702 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13703 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13704 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13705 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13706 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13707 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13708 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13709 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13710 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13711 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13712 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13713 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13714 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13715 * annotate.c (_initialize_annotate): Add declaration.
13716 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13717 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13718 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13719 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13720 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13721 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13722 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13723 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13724 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13725 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13726 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13727 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13728 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13729 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13730 * auto-load.c (_initialize_auto_load): Add declaration.
13731 * auxv.c (_initialize_auxv): Add declaration.
13732 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13733 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13734 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13735 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13736 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13737 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13738 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13739 * breakpoint.c (_initialize_breakpoint): Add declaration.
13740 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13741 * btrace.c (_initialize_btrace): Add declaration.
13742 * charset.c (_initialize_charset): Add declaration.
13743 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13744 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13745 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13746 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13747 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13748 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13749 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13750 * coffread.c (_initialize_coffread): Add declaration.
13751 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13752 * compile/compile.c (_initialize_compile): Add declaration.
13753 * complaints.c (_initialize_complaints): Add declaration.
13754 * completer.c (_initialize_completer): Add declaration.
13755 * copying.c (_initialize_copying): Add declaration.
13756 * corefile.c (_initialize_core): Add declaration.
13757 * corelow.c (_initialize_corelow): Add declaration.
13758 * cp-abi.c (_initialize_cp_abi): Add declaration.
13759 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13760 * cp-support.c (_initialize_cp_support): Add declaration.
13761 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13762 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13763 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13764 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13765 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13766 * ctfread.c (_initialize_ctfread): Add declaration.
13767 * d-lang.c (_initialize_d_language): Add declaration.
13768 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13769 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13770 * dbxread.c (_initialize_dbxread): Add declaration.
13771 * dcache.c (_initialize_dcache): Add declaration.
13772 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13773 * disasm.c (_initialize_disasm): Add declaration.
13774 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13775 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13776 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13777 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13778 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13779 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13780 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13781 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13782 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13783 * elfread.c (_initialize_elfread): Add declaration.
13784 * exec.c (_initialize_exec): Add declaration.
13785 * extension.c (_initialize_extension): Add declaration.
13786 * f-lang.c (_initialize_f_language): Add declaration.
13787 * f-valprint.c (_initialize_f_valprint): Add declaration.
13788 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13789 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13790 * filesystem.c (_initialize_filesystem): Add declaration.
13791 * findcmd.c (_initialize_mem_search): Add declaration.
13792 * findvar.c (_initialize_findvar): Add declaration.
13793 * fork-child.c (_initialize_fork_child): Add declaration.
13794 * frame-base.c (_initialize_frame_base): Add declaration.
13795 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13796 * frame.c (_initialize_frame): Add declaration.
13797 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13798 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13799 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13800 * gcore.c (_initialize_gcore): Add declaration.
13801 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13802 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13803 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13804 * gdbarch.c (_initialize_gdbarch): Add declaration.
13805 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13806 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13807 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13808 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13809 * go-lang.c (_initialize_go_language): Add declaration.
13810 * go32-nat.c (_initialize_go32_nat): Add declaration.
13811 * guile/guile.c (_initialize_guile): Add declaration.
13812 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13813 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13814 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13815 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13816 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13817 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13818 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13819 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13820 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13821 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13822 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13823 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13824 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13825 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13826 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13827 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13828 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13829 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13830 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13831 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13832 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13833 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13834 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13835 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13836 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13837 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13838 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13839 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13840 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13841 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13842 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13843 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13844 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13845 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13846 * infcall.c (_initialize_infcall): Add declaration.
13847 * infcmd.c (_initialize_infcmd): Add declaration.
13848 * inflow.c (_initialize_inflow): Add declaration.
13849 * infrun.c (_initialize_infrun): Add declaration.
13850 * interps.c (_initialize_interpreter): Add declaration.
13851 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13852 * jit.c (_initialize_jit): Add declaration.
13853 * language.c (_initialize_language): Add declaration.
13854 * linux-fork.c (_initialize_linux_fork): Add declaration.
13855 * linux-nat.c (_initialize_linux_nat): Add declaration.
13856 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13857 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13858 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13859 * m2-lang.c (_initialize_m2_language): Add declaration.
13860 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13861 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13862 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13863 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13864 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13865 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13866 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13867 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13868 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13869 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13870 * machoread.c (_initialize_machoread): Add declaration.
13871 * macrocmd.c (_initialize_macrocmd): Add declaration.
13872 * macroscope.c (_initialize_macroscope): Add declaration.
13873 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13874 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13875 * maint.c (_initialize_maint_cmds): Add declaration.
13876 * mdebugread.c (_initialize_mdebugread): Add declaration.
13877 * memattr.c (_initialize_mem): Add declaration.
13878 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13879 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13880 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13881 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13882 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13883 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13884 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13885 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13886 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13887 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13888 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13889 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13890 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13891 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13892 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13893 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13894 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13895 * mipsread.c (_initialize_mipsread): Add declaration.
13896 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13897 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13898 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13899 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13900 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13901 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13902 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13903 * nto-procfs.c (_initialize_procfs): Add declaration.
13904 * objc-lang.c (_initialize_objc_language): Add declaration.
13905 * observable.c (_initialize_observer): Add declaration.
13906 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13907 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13908 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13909 * osabi.c (_initialize_gdb_osabi): Add declaration.
13910 * osdata.c (_initialize_osdata): Add declaration.
13911 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13912 * parse.c (_initialize_parse): Add declaration.
13913 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13914 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13915 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13916 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13917 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13918 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13919 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13920 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13921 * printcmd.c (_initialize_printcmd): Add declaration.
13922 * probe.c (_initialize_probe): Add declaration.
13923 * proc-api.c (_initialize_proc_api): Add declaration.
13924 * proc-events.c (_initialize_proc_events): Add declaration.
13925 * proc-service.c (_initialize_proc_service): Add declaration.
13926 * procfs.c (_initialize_procfs): Add declaration.
13927 * producer.c (_initialize_producer): Add declaration.
13928 * psymtab.c (_initialize_psymtab): Add declaration.
13929 * python/python.c (_initialize_python): Add declaration.
13930 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13931 * record-btrace.c (_initialize_record_btrace): Add declaration.
13932 * record-full.c (_initialize_record_full): Add declaration.
13933 * record.c (_initialize_record): Add declaration.
13934 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13935 * regcache.c (_initialize_regcache): Add declaration.
13936 * reggroups.c (_initialize_reggroup): Add declaration.
13937 * remote-notif.c (_initialize_notif): Add declaration.
13938 * remote-sim.c (_initialize_remote_sim): Add declaration.
13939 * remote.c (_initialize_remote): Add declaration.
13940 * reverse.c (_initialize_reverse): Add declaration.
13941 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13942 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13943 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13944 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13945 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13946 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13947 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13948 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13949 Add declaration.
13950 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13951 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13952 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13953 * rust-exp.y (_initialize_rust_exp): Add declaration.
13954 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13955 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13956 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13957 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13958 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13959 * score-tdep.c (_initialize_score_tdep): Add declaration.
13960 * ser-go32.c (_initialize_ser_dos): Add declaration.
13961 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13962 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13963 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13964 * ser-uds.c (_initialize_ser_socket): Add declaration.
13965 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13966 * serial.c (_initialize_serial): Add declaration.
13967 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13968 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13969 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13970 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13971 * skip.c (_initialize_step_skip): Add declaration.
13972 * sol-thread.c (_initialize_sol_thread): Add declaration.
13973 * solib-aix.c (_initialize_solib_aix): Add declaration.
13974 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13975 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13976 * solib-frv.c (_initialize_frv_solib): Add declaration.
13977 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13978 * solib-target.c (_initialize_solib_target): Add declaration.
13979 * solib.c (_initialize_solib): Add declaration.
13980 * source-cache.c (_initialize_source_cache): Add declaration.
13981 * source.c (_initialize_source): Add declaration.
13982 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13983 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13984 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13985 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13986 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13987 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13988 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13989 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13990 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13991 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13992 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13993 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13994 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13995 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13996 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13997 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13998 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13999 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14000 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14001 * stabsread.c (_initialize_stabsread): Add declaration.
14002 * stack.c (_initialize_stack): Add declaration.
14003 * stap-probe.c (_initialize_stap_probe): Add declaration.
14004 * std-regs.c (_initialize_frame_reg): Add declaration.
14005 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14006 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14007 * symfile.c (_initialize_symfile): Add declaration.
14008 * symmisc.c (_initialize_symmisc): Add declaration.
14009 * symtab.c (_initialize_symtab): Add declaration.
14010 * target.c (_initialize_target): Add declaration.
14011 * target-connection.c (_initialize_target_connection): Add
14012 declaration.
14013 * target-dcache.c (_initialize_target_dcache): Add declaration.
14014 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14015 * thread.c (_initialize_thread): Add declaration.
14016 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14017 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14018 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14019 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14020 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14021 * tracectf.c (_initialize_ctf): Add declaration.
14022 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14023 * tracefile.c (_initialize_tracefile): Add declaration.
14024 * tracepoint.c (_initialize_tracepoint): Add declaration.
14025 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14026 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14027 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14028 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14029 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14030 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14031 * tui/tui.c (_initialize_tui): Add declaration.
14032 * typeprint.c (_initialize_typeprint): Add declaration.
14033 * ui-style.c (_initialize_ui_style): Add declaration.
14034 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14035 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14036 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14037 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14038 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14039 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14040 * unittests/filtered_iterator-selftests.c
14041 (_initialize_filtered_iterator_selftests): Add declaration.
14042 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14043 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14044 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14045 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14046 * unittests/main-thread-selftests.c
14047 (_initialize_main_thread_selftests): Add declaration.
14048 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14049 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14050 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14051 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14052 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14053 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14054 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14055 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14056 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14057 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14058 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14059 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14060 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14061 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14062 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14063 declaration.
14064 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14065 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14066 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14067 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14068 * user-regs.c (_initialize_user_regs): Add declaration.
14069 * utils.c (_initialize_utils): Add declaration.
14070 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14071 * valops.c (_initialize_valops): Add declaration.
14072 * valprint.c (_initialize_valprint): Add declaration.
14073 * value.c (_initialize_values): Add declaration.
14074 * varobj.c (_initialize_varobj): Add declaration.
14075 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14076 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14077 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14078 * windows-nat.c (_initialize_windows_nat): Add declaration.
14079 (_initialize_check_for_gdb_ini): Add declaration.
14080 (_initialize_loadable): Add declaration.
14081 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14082 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14083 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14084 * xcoffread.c (_initialize_xcoffread): Add declaration.
14085 * xml-support.c (_initialize_xml_support): Add declaration.
14086 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14087 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14088 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14089 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14090
e2de1eec
SM
140912020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14092
14093 * regformats/regdat.sh: Generate declaration for init function.
14094
e0037b4c
SM
140952020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14096
14097 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14098 up.
14099 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14100 close_one_inferior>: New methods.
14101 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14102 pass down target to find_inferior_pid.
14103 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14104 Pass down target to find_inferior_ptid.
14105 (gdbsim_target::create_inferior): Pass down target to
14106 add_thread_silent.
14107 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14108 target down to find_inferior_ptid and switch_to_thread.
14109 (gdbsim_target::close): Update to call close_one_inferior.
14110 (struct resume_data): Remove.
14111 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14112 directly, rather than through a void pointer.
14113 (gdbsim_target::resume): Update to call resume_one_inferior.
14114
58920b5b
SM
141152020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14116
14117 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14118
4ec89149
PA
141192020-01-12 Pedro Alves <palves@redhat.com>
14120
14121 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14122 directly for the current inferior instead of
14123 discard_all_inferiors.
14124 (discard_all_inferiors): Delete.
14125
7c392d1d
TT
141262020-01-11 Tom Tromey <tom@tromey.com>
14127
14128 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14129 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14130 deprecated_safe_get_selected_frame.
14131
d9ebdab7
TBA
141322020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14133
14134 * inferior.c (print_inferior): Switch inferior before printing it.
14135
f3c469b9
PA
141362020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14137 Pedro Alves <palves@redhat.com>
14138
14139 * progspace-and-thread.c (switch_to_program_space_and_thread):
14140 Assert there's an inferior for PSPACE. Use
14141 switch_to_inferior_no_thread to switch the inferior too.
14142 * progspace.c (program_space::~program_space): Call
14143 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14144 (program_space::free_all_objfiles): Don't call clear_symtab_users
14145 here.
14146 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14147
65c574f6
PA
141482020-01-10 Pedro Alves <palves@redhat.com>
14149
14150 * NEWS: Mention multi-target debugging, "info connections", and
14151 "add-inferior -no-connection".
14152
2f4fcf00
PA
141532020-01-10 Pedro Alves <palves@redhat.com>
14154
14155 * infrun.c: Include "target-connection.h".
14156 (check_multi_target_resumption): New.
14157 (proceed): Call it.
14158 * target-connection.c (make_target_connection_string): Make
14159 extern.
14160 * target-connection.h (make_target_connection_string): Declare.
14161
121b3efd
PA
141622020-01-10 Pedro Alves <palves@redhat.com>
14163
14164 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14165 * inferior.c (uiout_field_connection): New function.
14166 (print_inferior): Add new "connection-id" column.
14167 (add_inferior_command): Show connection number/string of added
14168 inferior.
14169 * process-stratum-target.h
14170 (process_stratum_target::connection_string): New virtual method.
14171 (process_stratum_target::connection_number): New field.
14172 * remote.c (remote_target::connection_string): New override.
14173 * target-connection.c: New file.
14174 * target-connection.h: New file.
14175 * target.c (decref_target): Remove process_stratum targets from
14176 the connection list.
14177 (target_stack::push): Add process_stratum targets to the
14178 connection list.
14179
4f837581
PA
141802020-01-10 Pedro Alves <palves@redhat.com>
14181
14182 Revert:
14183 2016-04-12 Pedro Alves <palves@redhat.com>
14184 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14185 Remove references to name.
14186 * serial.h (struct serial) <name>: Delete.
14187
f4ec508e
PA
141882020-01-10 Pedro Alves <palves@redhat.com>
14189
14190 * gdbarch-selftests.c (register_to_value_test): Remove "target
14191 already pushed" check.
14192
5b6d1e4f
PA
141932020-01-10 Pedro Alves <palves@redhat.com>
14194 John Baldwin <jhb@FreeBSD.org>
14195
14196 * aarch64-linux-nat.c
14197 (aarch64_linux_nat_target::thread_architecture): Adjust.
14198 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14199 (task_command_1): Likewise.
14200 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14201 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14202 (aix_thread_target::store_registers)
14203 (aix_thread_target::thread_alive): Adjust.
14204 * amd64-fbsd-tdep.c: Include "inferior.h".
14205 (amd64fbsd_get_thread_local_address): Pass down target.
14206 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14207 thread's gdbarch instead of target_gdbarch.
14208 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14209 get_last_target_status.
14210 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14211 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14212 inferiors.
14213 (update_inserted_breakpoint_locations): Skip if inferiors with no
14214 execution.
14215 (update_global_location_list): When handling moribund locations,
14216 find representative inferior for location's pspace, and use thread
14217 count of its process_stratum target.
14218 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14219 * bsd-uthread.c (bsd_uthread_target::wait): Use
14220 as_process_stratum_target and adjust thread_change_ptid and
14221 add_thread calls.
14222 (bsd_uthread_target::update_thread_list): Use
14223 as_process_stratum_target and adjust find_thread_ptid,
14224 thread_change_ptid and add_thread calls.
14225 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14226 find_thread_ptid call.
14227 * corelow.c (add_to_thread_list): Adjust add_thread call.
14228 (core_target_open): Adjust add_thread_silent and thread_count
14229 calls.
14230 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14231 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14232 * event-top.c (async_disconnect): Pop targets from all inferiors.
14233 * exec.c (add_target_sections): Push exec target on all inferiors
14234 sharing the program space.
14235 (remove_target_sections): Remove the exec target from all
14236 inferiors sharing the program space.
14237 (exec_on_vfork): New.
14238 * exec.h (exec_on_vfork): Declare.
14239 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14240 Pass it down.
14241 (fbsd_nat_target::update_thread_list): Adjust.
14242 (fbsd_nat_target::resume): Adjust.
14243 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14244 down.
14245 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14246 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14247 get_thread_arch_regcache call.
14248 * fork-child.c (gdb_startup_inferior): Pass target down to
14249 startup_inferior and set_executing.
14250 * gdbthread.h (struct process_stratum_target): Forward declare.
14251 (add_thread, add_thread_silent, add_thread_with_info)
14252 (in_thread_list): Add process_stratum_target parameter.
14253 (find_thread_ptid(inferior*, ptid_t)): New overload.
14254 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14255 parameter.
14256 (all_threads()): Delete overload.
14257 (all_threads, all_non_exited_threads): Add process_stratum_target
14258 parameter.
14259 (all_threads_safe): Use brace initialization.
14260 (thread_count): Add process_stratum_target parameter.
14261 (set_resumed, set_running, set_stop_requested, set_executing)
14262 (threads_are_executing, finish_thread_state): Add
14263 process_stratum_target parameter.
14264 (switch_to_thread): Use is_current_thread.
14265 * i386-fbsd-tdep.c: Include "inferior.h".
14266 (i386fbsd_get_thread_local_address): Pass down target.
14267 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14268 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14269 have_inferiors check.
14270 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14271 (inf_ptrace_target::attach): Adjust.
14272 * infcall.c (run_inferior_call): Adjust.
14273 * infcmd.c (run_command_1): Pass target to
14274 scoped_finish_thread_state.
14275 (proceed_thread_callback): Skip inferiors with no execution.
14276 (continue_command): Rename 'all_threads' local to avoid hiding
14277 'all_threads' function. Adjust get_last_target_status call.
14278 (prepare_one_step): Adjust set_running call.
14279 (signal_command): Use user_visible_resume_target. Compare thread
14280 pointers instead of inferior_ptid.
14281 (info_program_command): Adjust to pass down target.
14282 (attach_command): Mark target's 'thread_executing' flag.
14283 (stop_current_target_threads_ns): New, factored out from ...
14284 (interrupt_target_1): ... this. Switch inferior before making
14285 target calls.
14286 * inferior-iter.h
14287 (struct all_inferiors_iterator, struct all_inferiors_range)
14288 (struct all_inferiors_safe_range)
14289 (struct all_non_exited_inferiors_range): Filter on
14290 process_stratum_target too. Remove explicit.
14291 * inferior.c (inferior::inferior): Push dummy target on target
14292 stack.
14293 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14294 Add process_stratum_target parameter, and pass it down.
14295 (have_live_inferiors): Adjust.
14296 (switch_to_inferior_and_push_target): New.
14297 (add_inferior_command, clone_inferior_command): Handle
14298 "-no-connection" parameter. Use
14299 switch_to_inferior_and_push_target.
14300 (_initialize_inferior): Mention "-no-connection" option in
14301 the help of "add-inferior" and "clone-inferior" commands.
14302 * inferior.h: Include "process-stratum-target.h".
14303 (interrupt_target_1): Use bool.
14304 (struct inferior) <push_target, unpush_target, target_is_pushed,
14305 find_target_beneath, top_target, process_target, target_at,
14306 m_stack>: New.
14307 (discard_all_inferiors): Delete.
14308 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14309 (all_inferiors, all_non_exited_inferiors): Add
14310 process_stratum_target parameter.
14311 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14312 (target_last_proc_target): New global.
14313 (follow_fork_inferior): Push target on new inferior. Pass target
14314 to add_thread_silent. Call exec_on_vfork. Handle target's
14315 reference count.
14316 (follow_fork): Adjust get_last_target_status call. Also consider
14317 target.
14318 (follow_exec): Push target on new inferior.
14319 (struct execution_control_state) <target>: New field.
14320 (user_visible_resume_target): New.
14321 (do_target_resume): Call target_async.
14322 (resume_1): Set target's threads_executing flag. Consider resume
14323 target.
14324 (commit_resume_all_targets): New.
14325 (proceed): Also consider resume target. Skip threads of inferiors
14326 with no execution. Commit resumtion in all targets.
14327 (start_remote): Pass current inferior to wait_for_inferior.
14328 (infrun_thread_stop_requested): Consider target as well. Pass
14329 thread_info pointer to clear_inline_frame_state instead of ptid.
14330 (infrun_thread_thread_exit): Consider target as well.
14331 (random_pending_event_thread): New inferior parameter. Use it.
14332 (do_target_wait): Rename to ...
14333 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14334 down.
14335 (threads_are_resumed_pending_p, do_target_wait): New.
14336 (prepare_for_detach): Adjust calls.
14337 (wait_for_inferior): New inferior parameter. Handle it. Use
14338 do_target_wait_1 instead of do_target_wait.
14339 (fetch_inferior_event): Adjust. Switch to representative
14340 inferior. Pass target down.
14341 (set_last_target_status): Add process_stratum_target parameter.
14342 Save target in global.
14343 (get_last_target_status): Add process_stratum_target parameter and
14344 handle it.
14345 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14346 (context_switch): Check inferior_ptid == null_ptid before calling
14347 inferior_thread().
14348 (get_inferior_stop_soon): Pass down target.
14349 (wait_one): Rename to ...
14350 (poll_one_curr_target): ... this.
14351 (struct wait_one_event): New.
14352 (wait_one): New.
14353 (stop_all_threads): Adjust.
14354 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14355 event's target.
14356 (switch_back_to_stepped_thread): Also consider target.
14357 (print_stop_event): Update.
14358 (normal_stop): Update. Also consider the resume target.
14359 * infrun.h (wait_for_inferior): Remove declaration.
14360 (user_visible_resume_target): New declaration.
14361 (get_last_target_status, set_last_target_status): New
14362 process_stratum_target parameter.
14363 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14364 process_stratum_target parameter, and use it.
14365 (clear_inline_frame_state (thread_info*)): New.
14366 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14367 process_stratum_target parameter.
14368 (clear_inline_frame_state (thread_info*)): Declare.
14369 * linux-fork.c (delete_checkpoint_command): Pass target down to
14370 find_thread_ptid.
14371 (checkpoint_command): Adjust.
14372 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14373 instead of just tweaking inferior_ptid.
14374 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14375 (exit_lwp): Pass target down to find_thread_ptid.
14376 (attach_proc_task_lwp_callback): Pass target down to
14377 add_thread/set_running/set_executing.
14378 (linux_nat_target::attach): Pass target down to
14379 thread_change_ptid.
14380 (get_detach_signal): Pass target down to find_thread_ptid.
14381 Consider last target status's target.
14382 (linux_resume_one_lwp_throw, resume_lwp)
14383 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14384 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14385 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14386 (linux_nat_target::async_wait_fd): New.
14387 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14388 target down.
14389 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14390 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14391 * linux-thread-db.c (struct thread_db_info::process_target): New
14392 field.
14393 (add_thread_db_info): Save target.
14394 (get_thread_db_info): New process_stratum_target parameter. Also
14395 match target.
14396 (delete_thread_db_info): New process_stratum_target parameter.
14397 Also match target.
14398 (thread_from_lwp): Adjust to pass down target.
14399 (thread_db_notice_clone): Pass down target.
14400 (check_thread_db_callback): Pass down target.
14401 (try_thread_db_load_1): Always push the thread_db target.
14402 (try_thread_db_load, record_thread): Pass target down.
14403 (thread_db_target::detach): Pass target down. Always unpush the
14404 thread_db target.
14405 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14406 target down. Always unpush the thread_db target.
14407 (find_new_threads_callback, thread_db_find_new_threads_2)
14408 (thread_db_target::update_thread_list): Pass target down.
14409 (thread_db_target::pid_to_str): Pass current inferior down.
14410 (thread_db_target::get_thread_local_address): Pass target down.
14411 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14412 target down.
14413 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14414 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14415 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14416 (procfs_init_inferior): Rename to ...
14417 (procfs_target::procfs_init_inferior): ... this and adjust.
14418 (procfs_target::create_inferior, procfs_notice_thread)
14419 (procfs_do_thread_registers): Adjust.
14420 * ppc-fbsd-tdep.c: Include "inferior.h".
14421 (ppcfbsd_get_thread_local_address): Pass down target.
14422 * proc-service.c (ps_xfer_memory): Switch current inferior and
14423 program space as well.
14424 (get_ps_regcache): Pass target down.
14425 * process-stratum-target.c
14426 (process_stratum_target::thread_address_space)
14427 (process_stratum_target::thread_architecture): Pass target down.
14428 * process-stratum-target.h
14429 (process_stratum_target::threads_executing): New field.
14430 (as_process_stratum_target): New.
14431 * ravenscar-thread.c
14432 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14433 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14434 down.
14435 * record-btrace.c (record_btrace_target::info_record): Adjust.
14436 (record_btrace_target::record_method)
14437 (record_btrace_target::record_is_replaying)
14438 (record_btrace_target::fetch_registers)
14439 (get_thread_current_frame_id, record_btrace_target::resume)
14440 (record_btrace_target::wait, record_btrace_target::stop): Pass
14441 target down.
14442 * record-full.c (record_full_wait_1): Switch to event thread.
14443 Pass target down.
14444 * regcache.c (regcache::regcache)
14445 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14446 process_stratum_target parameter and handle it.
14447 (current_thread_target): New global.
14448 (get_thread_regcache): Add process_stratum_target parameter and
14449 handle it. Switch inferior before calling target method.
14450 (get_thread_regcache): Pass target down.
14451 (get_thread_regcache_for_ptid): Pass target down.
14452 (registers_changed_ptid): Add process_stratum_target parameter and
14453 handle it.
14454 (registers_changed_thread, registers_changed): Pass target down.
14455 (test_get_thread_arch_aspace_regcache): New.
14456 (current_regcache_test): Define a couple local test_target_ops
14457 instances and use them for testing.
14458 (readwrite_regcache): Pass process_stratum_target parameter.
14459 (cooked_read_test, cooked_write_test): Pass mock_target down.
14460 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14461 (get_thread_arch_aspace_regcache): Add process_stratum_target
14462 parameter.
14463 (regcache::target): New method.
14464 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14465 (regcache::registers_changed_ptid): Add process_stratum_target
14466 parameter.
14467 (regcache::m_target): New field.
14468 (registers_changed_ptid): Add process_stratum_target parameter.
14469 * remote.c (remote_state::supports_vCont_probed): New field.
14470 (remote_target::async_wait_fd): New method.
14471 (remote_unpush_and_throw): Add remote_target parameter.
14472 (get_current_remote_target): Adjust.
14473 (remote_target::remote_add_inferior): Push target.
14474 (remote_target::remote_add_thread)
14475 (remote_target::remote_notice_new_inferior)
14476 (get_remote_thread_info): Pass target down.
14477 (remote_target::update_thread_list): Skip threads of inferiors
14478 bound to other targets. (remote_target::close): Don't discard
14479 inferiors. (remote_target::add_current_inferior_and_thread)
14480 (remote_target::process_initial_stop_replies)
14481 (remote_target::start_remote)
14482 (remote_target::remote_serial_quit_handler): Pass down target.
14483 (remote_target::remote_unpush_target): New remote_target
14484 parameter. Unpush the target from all inferiors.
14485 (remote_target::remote_unpush_and_throw): New remote_target
14486 parameter. Pass it down.
14487 (remote_target::open_1): Check whether the current inferior has
14488 execution instead of checking whether any inferior is live. Pass
14489 target down.
14490 (remote_target::remote_detach_1): Pass down target. Use
14491 remote_unpush_target.
14492 (extended_remote_target::attach): Pass down target.
14493 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14494 (remote_target::append_resumption): Pass down target.
14495 (remote_target::append_pending_thread_resumptions)
14496 (remote_target::remote_resume_with_hc, remote_target::resume)
14497 (remote_target::commit_resume): Pass down target.
14498 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14499 (remote_target::interrupt_query)
14500 (remote_target::remove_new_fork_children)
14501 (remote_target::check_pending_events_prevent_wildcard_vcont)
14502 (remote_target::remote_parse_stop_reply)
14503 (remote_target::process_stop_reply): Pass down target.
14504 (first_remote_resumed_thread): New remote_target parameter. Pass
14505 it down.
14506 (remote_target::wait_as): Pass down target.
14507 (unpush_and_perror): New remote_target parameter. Pass it down.
14508 (remote_target::readchar, remote_target::remote_serial_write)
14509 (remote_target::getpkt_or_notif_sane_1)
14510 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14511 down target.
14512 (remote_target::mourn_inferior): Pass down target. Use
14513 remote_unpush_target.
14514 (remote_target::core_of_thread)
14515 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14516 (remote_target::pid_to_exec_file)
14517 (remote_target::thread_handle_to_thread_info): Pass down target.
14518 (remote_target::async_wait_fd): New.
14519 * riscv-fbsd-tdep.c: Include "inferior.h".
14520 (riscv_fbsd_get_thread_local_address): Pass down target.
14521 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14522 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14523 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14524 Adjust.
14525 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14526 * solib-svr4.c (enable_break): Pass down target.
14527 * spu-multiarch.c (parse_spufs_run): Pass down target.
14528 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14529 * target-delegates.c: Regenerate.
14530 * target.c (g_target_stack): Delete.
14531 (current_top_target): Return the current inferior's top target.
14532 (target_has_execution_1): Refer to the passed-in inferior's top
14533 target.
14534 (target_supports_terminal_ours): Check whether the initial
14535 inferior was already created.
14536 (decref_target): New.
14537 (target_stack::push): Incref/decref the target.
14538 (push_target, push_target, unpush_target): Adjust.
14539 (target_stack::unpush): Defref target.
14540 (target_is_pushed): Return bool. Adjust to refer to the current
14541 inferior's target stack.
14542 (dispose_inferior): Delete, and inline parts ...
14543 (target_preopen): ... here. Only dispose of the current inferior.
14544 (target_detach): Hold strong target reference while detaching.
14545 Pass target down.
14546 (target_thread_name): Add assertion.
14547 (target_resume): Pass down target.
14548 (target_ops::beneath, find_target_at): Adjust to refer to the
14549 current inferior's target stack.
14550 (get_dummy_target): New.
14551 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14552 has a thread running.
14553 (initialize_targets): Rename to ...
14554 (_initialize_target): ... this.
14555 * target.h: Include "gdbsupport/refcounted-object.h".
14556 (struct target_ops): Inherit refcounted_object.
14557 (target_ops::shortname, target_ops::longname): Make const.
14558 (target_ops::async_wait_fd): New method.
14559 (decref_target): Declare.
14560 (struct target_ops_ref_policy): New.
14561 (target_ops_ref): New typedef.
14562 (get_dummy_target): Declare function.
14563 (target_is_pushed): Return bool.
14564 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14565 (all_matching_threads_iterator::all_matching_threads_iterator):
14566 Handle filter target.
14567 * thread-iter.h (struct all_matching_threads_iterator, struct
14568 all_matching_threads_range, class all_non_exited_threads_range):
14569 Filter by target too. Remove explicit.
14570 * thread.c (threads_executing): Delete.
14571 (inferior_thread): Pass down current inferior.
14572 (clear_thread_inferior_resources): Pass down thread pointer
14573 instead of ptid_t.
14574 (add_thread_silent, add_thread_with_info, add_thread): Add
14575 process_stratum_target parameter. Use it for thread and inferior
14576 searches.
14577 (is_current_thread): New.
14578 (thread_info::deletable): Use it.
14579 (find_thread_ptid, thread_count, in_thread_list)
14580 (thread_change_ptid, set_resumed, set_running): New
14581 process_stratum_target parameter. Pass it down.
14582 (set_executing): New process_stratum_target parameter. Pass it
14583 down. Adjust reference to 'threads_executing'.
14584 (threads_are_executing): New process_stratum_target parameter.
14585 Adjust reference to 'threads_executing'.
14586 (set_stop_requested, finish_thread_state): New
14587 process_stratum_target parameter. Pass it down.
14588 (switch_to_thread): Also match inferior.
14589 (switch_to_thread): New process_stratum_target parameter. Pass it
14590 down.
14591 (update_threads_executing): Reimplement.
14592 * top.c (quit_force): Pop targets from all inferior.
14593 (gdb_init): Don't call initialize_targets.
14594 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14595 Declare.
14596 (windows_add_thread, windows_delete_thread): Adjust.
14597 (get_windows_debug_event): Rename to ...
14598 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14599 * tracefile-tfile.c (tfile_target_open): Pass down target.
14600 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14601 Forward declare.
14602 (switch_to_thread): Add process_stratum_target parameter.
14603 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14604 parameter. Use it.
14605 (mi_on_resume): Pass target down.
14606 * nat/fork-inferior.c (startup_inferior): Add
14607 process_stratum_target parameter. Pass it down.
14608 * nat/fork-inferior.h (startup_inferior): Add
14609 process_stratum_target parameter.
14610 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14611
75c6c844
PA
146122020-01-10 Pedro Alves <palves@redhat.com>
14613
14614 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14615 directly. Instead find the first thread in the thread list and
14616 use switch_to_thread.
14617
78f2c40a
PA
146182020-01-10 Pedro Alves <palves@redhat.com>
14619
14620 * remote.c (remote_target::remote_add_inferior): Don't bind a
14621 process to the current inferior if the current inferior is already
14622 bound to a process.
14623
e7af6c70
TBA
146242020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14625 Pedro Alves <palves@redhat.com>
14626
14627 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14628 If no process is specified, return null_ptid instead of
14629 inferior_ptid.
14630 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14631 TARGET_WAITKIND_SIGNALLED with no pid.
14632
31ba933e
PA
146332020-01-10 Pedro Alves <palves@redhat.com>
14634
14635 * remote.c (first_remote_resumed_thread): New.
14636 (remote_target::wait_as): Use it as default event_ptid instead of
14637 inferior_ptid.
14638
735fc2ca
PA
146392020-01-10 Pedro Alves <palves@redhat.com>
14640
14641 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14642
c17e02e1
PA
146432020-01-10 Pedro Alves <palves@redhat.com>
14644
14645 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14646 not -1.
14647
ab1ddbcf
PA
146482020-01-10 Pedro Alves <palves@redhat.com>
14649
14650 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14651 ptid to get_last_target_status.
14652 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14653 ptid to get_last_target_status.
14654 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14655 get_last_target_status.
14656 (info_program_command): Don't pass a target_waitstatus to
14657 get_last_target_status.
14658 * infrun.c (init_wait_for_inferior): Use
14659 nullify_last_target_wait_ptid.
14660 (get_last_target_status): Handle nullptr arguments.
14661 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14662 (print_stop_event): Don't pass a ptid to get_last_target_status.
14663 (normal_stop): Don't pass a ptid to get_last_target_status.
14664 * infrun.h (get_last_target_status, set_last_target_status): Move
14665 comments here and update.
14666 (nullify_last_target_wait_ptid): Declare.
14667 * linux-fork.c (fork_load_infrun_state): Remove local extern
14668 declaration of nullify_last_target_wait_ptid.
14669 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14670 to get_last_target_status.
14671
f3f8ece4
PA
146722020-01-10 Pedro Alves <palves@redhat.com>
14673
14674 * gdbthread.h (scoped_restore_current_thread)
14675 <dont_restore, restore, m_dont_restore>: Declare.
14676 * thread.c (thread_alive): Add assertion. Return bool.
14677 (switch_to_thread_if_alive): New.
14678 (prune_threads): Switch inferior/thread.
14679 (print_thread_info_1): Switch thread before calling target methods.
14680 (scoped_restore_current_thread::restore): New, factored out from
14681 ...
14682 (scoped_restore_current_thread::~scoped_restore_current_thread):
14683 ... this.
14684 (scoped_restore_current_thread::scoped_restore_current_thread):
14685 Add assertion.
14686 (thread_apply_all_command, thread_select): Use
14687 switch_to_thread_if_alive.
14688 * infrun.c (proceed, restart_threads, handle_signal_stop)
14689 (switch_back_to_stepped_thread): Switch current thread before
14690 calling target methods.
14691
db2d40f7
PA
146922020-01-10 Pedro Alves <palves@redhat.com>
14693
14694 * inferior.c (switch_to_inferior_no_thread): New function,
14695 factored out from ...
14696 (inferior_command): ... here.
14697 * inferior.h (switch_to_inferior_no_thread): Declare.
14698 * mi/mi-main.c (run_one_inferior): Use
14699 switch_to_inferior_no_thread.
14700
bd420a2d
PA
147012020-01-10 Pedro Alves <palves@redhat.com>
14702
14703 * infcmd.c (kill_command): Remove dead code.
14704
ddf5db90
PA
147052020-01-10 Pedro Alves <palves@redhat.com>
14706
14707 * remote.c (remote_target::mourn_inferior): No longer check
14708 whether the target is running.
14709
5018ce90
PA
147102020-01-10 Pedro Alves <palves@redhat.com>
14711
14712 * corelow.c (core_target::has_execution): Change parameter type to
14713 inferior pointer.
14714 * inferior.c (number_of_live_inferiors): Use
14715 inferior::has_execution instead of target_has_execution_1.
14716 * inferior.h (inferior::has_execution): New.
14717 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14718 inferior::has_execution instead of target_has_execution_1.
14719 * process-stratum-target.c
14720 (process_stratum_target::has_execution): Change parameter type to
14721 inferior pointer. Check the inferior's PID instead of
14722 inferior_ptid.
14723 * process-stratum-target.h
14724 (process_stratum_target::has_execution): Change parameter type to
14725 inferior pointer.
14726 * record-full.c (record_full_core_target::has_execution): Change
14727 parameter type to inferior pointer.
14728 * target.c (target_has_execution_1): Change parameter type to
14729 inferior pointer.
14730 (target_has_execution_current): Adjust.
14731 * target.h (target_ops::has_execution): Change parameter type to
14732 inferior pointer.
14733 (target_has_execution_1): Change parameter type to inferior
14734 pointer. Change return type to bool.
14735 * tracefile.h (tracefile_target::has_execution): Change parameter
14736 type to inferior pointer.
14737
74375d18
PA
147382020-01-10 Pedro Alves <palves@redhat.com>
14739
14740 * exceptions.c (print_flush): Remove current_top_target() check.
14741
acdf84a6
PA
147422020-01-10 Pedro Alves <palves@redhat.com>
14743
14744 * remote.c (show_remote_exec_file): Show the current inferior's
14745 exec-file instead of the command variable's value.
14746
ec506636
PA
147472020-01-10 Pedro Alves <palves@redhat.com>
14748
14749 * record-full.c (record_full_resume_ptid): New global.
14750 (record_full_target::resume): Set it.
14751 (record_full_wait_1): Use record_full_resume_ptid instead of
14752 inferior_ptid.
14753
873657b9
PA
147542020-01-10 Pedro Alves <palves@redhat.com>
14755
14756 * gdbthread.h (scoped_restore_current_thread)
14757 <dont_restore, restore, m_dont_restore>: Declare.
14758 * thread.c (thread_alive): Add assertion. Return bool.
14759 (switch_to_thread_if_alive): New.
14760 (prune_threads): Switch inferior/thread.
14761 (print_thread_info_1): Switch thread before calling target methods.
14762 (scoped_restore_current_thread::restore): New, factored out from
14763 ...
14764 (scoped_restore_current_thread::~scoped_restore_current_thread):
14765 ... this.
14766 (scoped_restore_current_thread::scoped_restore_current_thread):
14767 Add assertion.
14768 (thread_apply_all_command, thread_select): Use
14769 switch_to_thread_if_alive.
14770
7f0ae84c
GB
147712020-01-10 George Barrett <bob@bob131.so>
14772
14773 * stap-probe.c (stap_modify_semaphore): Don't check for null
14774 semaphores.
14775 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14776 for null semaphores.
14777
f5a7c406
AB
147782020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14779
14780 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14781 all source windows, and maintain horizontal scroll status while
14782 doing so.
14783
9ae6bf64
TT
147842020-01-09 Tom Tromey <tom@tromey.com>
14785
14786 PR tui/18932:
14787 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14788 update_source_window, not print_source_lines.
14789
b2efe70c
AB
147902020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14791
14792 * tui/tui.c (tui_enable): Register tui hooks after calling
14793 tui_display_main.
14794
5f23a082
CB
147952020-01-09 Christian Biesinger <cbiesinger@google.com>
14796
14797 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14798
3061113b
SM
147992020-01-08 Simon Marchi <simon.marchi@efficios.com>
14800
14801 * thread.c (print_thread_info_1): Fix indentation.
14802
57d75002
CB
148032020-01-09 Christian Biesinger <cbiesinger@google.com>
14804
14805 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14806 unique_xmalloc_ptr outside the if to always free the demangled name.
14807
6a053cb1
TT
148082020-01-08 Tom Tromey <tromey@adacore.com>
14809
14810 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14811 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14812 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14813 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14814 Remove.
14815 (section_offsets): New typedef.
14816 * symtab.c (fixup_section, get_msymbol_address): Update.
14817 * symmisc.c (dump_msymbols): Update.
14818 * symfile.h (relative_addr_info_to_section_offsets)
14819 (symfile_map_offsets_to_segments): Update.
14820 * symfile.c (build_section_addr_info_from_objfile)
14821 (init_objfile_sect_indices): Update.
14822 (struct place_section_arg): Change type of "offsets".
14823 (place_section): Update.
14824 (relative_addr_info_to_section_offsets): Change type of
14825 "section_offsets". Remove "num_sections" parameter.
14826 (default_symfile_offsets, syms_from_objfile_1)
14827 (set_objfile_default_section_offset): Update.
14828 (reread_symbols): No need to preserve section offsets by hand.
14829 (symfile_map_offsets_to_segments): Change type of "offsets".
14830 * stap-probe.c (relocate_address): Update.
14831 * stabsread.h (process_one_symbol): Update.
14832 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14833 (solib_target_relocate_section_addresses): Update.
14834 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14835 Update.
14836 * solib-frv.c (frv_relocate_main_executable): Update.
14837 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14838 * solib-aix.c (solib_aix_get_section_offsets): Change return
14839 type.
14840 (solib_aix_solib_create_inferior_hook): Update.
14841 * remote.c (remote_target::get_offsets): Update.
14842 * psymtab.c (find_pc_sect_psymtab): Update.
14843 * psympriv.h (struct partial_symbol) <address, text_low,
14844 text_high>: Update.
14845 * objfiles.h (obj_section_offset): Update.
14846 (struct objfile) <section_offsets>: Change type.
14847 <num_sections>: Remove.
14848 (objfile_relocate): Update.
14849 * objfiles.c (entry_point_address_query): Update
14850 (relocate_one_symbol): Change type of "section_offsets".
14851 (objfile_relocate1, objfile_relocate1): Change type of
14852 "new_offsets".
14853 (objfile_rebase1): Update.
14854 * mipsread.c (mipscoff_symfile_read): Update.
14855 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14856 parameter.
14857 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14858 (parse_external, psymtab_to_symtab_1): Update.
14859 * machoread.c (macho_symfile_offsets): Update.
14860 * ia64-tdep.c (ia64_find_unwind_table): Update.
14861 * hppa-tdep.c (read_unwind_info): Update.
14862 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14863 * dwarf2read.c (create_addrmap_from_index)
14864 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14865 (process_psymtab_comp_unit_reader, add_partial_symbol)
14866 (add_partial_subprogram, process_full_comp_unit)
14867 (read_file_scope, read_func_scope, read_lexical_block_scope)
14868 (read_call_site_scope, dwarf2_rnglists_process)
14869 (dwarf2_ranges_process, dwarf2_ranges_read)
14870 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14871 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14872 Update.
14873 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14874 Update.
14875 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14876 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14877 (process_one_symbol): Change type of "section_offsets".
14878 * ctfread.c (get_objfile_text_range): Update.
14879 * coffread.c (coff_symtab_read, enter_linenos)
14880 (process_coff_symbol): Update.
14881 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14882 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14883
456e800a
TT
148842020-01-08 Tom Tromey <tromey@adacore.com>
14885
14886 * dwarf2read.c (parse_macro_definition): Use std::string.
14887 (parse_macro_definition): Likewise.
14888
6dfa2fc2
TT
148892020-01-08 Tom Tromey <tromey@adacore.com>
14890
14891 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14892 (ATTR_ALLOC_CHUNK): Remove.
14893
421d1616
TT
148942020-01-08 Tom Tromey <tromey@adacore.com>
14895
14896 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14897
43816ebc
TT
148982020-01-08 Tom Tromey <tromey@adacore.com>
14899
14900 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14901 (dwarf2_compute_name, open_dwo_file): Likewise.
14902 (process_enumeration_scope): Use std::vector.
14903 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14904 (partial_die_info::fixup, dwarf2_start_subfile)
14905 (guess_full_die_structure_name, dwarf2_name): Likewise.
14906 (determine_prefix): Update.
14907 (guess_full_die_structure_name): Make return type const.
14908 (partial_die_full_name): Return unique_xmalloc_ptr.
14909 (DW_FIELD_ALLOC_CHUNK): Remove.
14910
4212d509
TT
149112020-01-07 Tom Tromey <tromey@adacore.com>
14912
14913 PR build/24937:
14914 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14915
06a6207a
JT
149162020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14917
14918 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14919
153d79c4
AB
149202020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14921
14922 * stack.c (print_frame_info): Move disassemble_next_line code
14923 inside source_print block.
14924
66182876
EZ
149252020-01-06 Eli Zaretskii <eliz@gnu.org>
14926
14927 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14928 gdb/signals.h, as we are now using native signal symbols.
14929
cbfa8581
SV
149302020-01-06 Shahab Vahedi <shahab@synopsys.com>
14931
14932 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14933 overflow by an early check of content vs threshold.
aac66a4c 14934 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14935 Likewise.
14936
3f602821
EZ
149372020-01-06 Eli Zaretskii <eliz@gnu.org>
14938
14939 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14940
a08c904d
JT
149412020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14942
14943 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14944 export table if no section contains it's RVA.
14945
89a65580
EZ
149462020-01-06 Eli Zaretskii <eliz@gnu.org>
14947
14948 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14949
8b7fcda2
HD
149502020-01-06 Hannes Domani <ssbssa@yahoo.de>
14951
14952 * source.c (print_source_lines_base): Set last_line_listed.
14953
a61b4f69
SV
149542020-01-06 Shahab Vahedi <shahab@synopsys.com>
14955
14956 * tui/tui-disasm.c: Remove trailing spaces.
14957
559e7e50
EZ
149582020-01-06 Eli Zaretskii <eliz@gnu.org>
14959 Pedro Alves <palves@redhat.com>
14960
14961 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14962 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14963 (windows_gdb_signal_to_target): New function, uses the above
14964 enumeration to convert GDB internal signal codes to equivalent
14965 Windows codes.
14966 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14967 * windows-nat.c: Include "gdb_wait.h".
14968 (get_windows_debug_event): Extract the fatal exception from the
14969 exit status and convert to the equivalent Posix signal number.
14970 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14971 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14972 * gdbsupport/gdb_wait.c: New file, implements
14973 windows_status_to_termsig.
14974 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14975 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14976
f2302a34
AB
149772020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14978
14979 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14980 show_layout.
14981
6a5206eb
LM
149822020-01-05 Luis Machado <luis.machado@linaro.org>
14983
14984 * aarch64-linux-nat.c
14985 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14986 and bfd_mach_aarch64.
14987
6ec1d75e
PW
149882020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14989
14990 * ui-file.c (stdio_file::can_emit_style_escape)
14991 (tee_file::can_emit_style_escape): Ensure style is used also on
14992 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14993 to gdb_stdout.
14994 * main.c (set_gdb_data_directory): Use file style to output the
14995 warning that the given pathname is not a directory.
14996 * top.c (show_history_filename, gdb_safe_append_history)
14997 (show_gdb_datadir): Use file style.
14998
44f81a76
HD
149992020-01-03 Hannes Domani <ssbssa@yahoo.de>
15000
15001 * solib-target.c (struct lm_info_target):
15002 Change offsets to be a unique_xmalloc_ptr.
15003 (solib_target_relocate_section_addresses): Update.
15004
25057eb0
HD
150052020-01-03 Hannes Domani <ssbssa@yahoo.de>
15006
15007 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15008
6e2118f5
BE
150092020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15010
15011 * MAINTAINERS (Write After Approval): Add myself.
15012
8133c7dc
LM
150132020-01-02 Luis Machado <luis.machado@linaro.org>
15014
15015 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15016 Cell BE architecture.
15017 * target.h (struct target_ops) <thread_architecture>: Likewise.
15018
48189bec
HD
150192020-01-01 Hannes Domani <ssbssa@yahoo.de>
15020
15021 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15022
ead1063b
HD
150232020-01-01 Hannes Domani <ssbssa@yahoo.de>
15024
15025 * MAINTAINERS (Write After Approval): Add myself.
15026
e5d78223
JB
150272020-01-01 Joel Brobecker <brobecker@adacore.com>
15028
15029 * gdbarch.sh: Update copyright year range of generated files.
15030
b811d2c2
JB
150312020-01-01 Joel Brobecker <brobecker@adacore.com>
15032
15033 Update copyright year range in all GDB files.
15034
5f4def5c
JB
150352020-01-01 Joel Brobecker <brobecker@adacore.com>
15036
15037 * copyright.py: Convert to Python 3.
15038
51fd4002
JB
150392020-01-01 Joel Brobecker <brobecker@adacore.com>
15040
15041 * copyright.py: Adapt after move of gnulib directory from gdb
15042 directory to toplevel directory.
15043
5fb651f2
JB
150442020-01-01 Joel Brobecker <brobecker@adacore.com>
15045
15046 * copyright.py (main): Exit if run from the wrong directory.
15047
5dd8bf88
JB
150482020-01-01 Joel Brobecker <brobecker@adacore.com>
15049
15050 * top.c (print_gdb_version): Change copyright year to 2020.
15051
9f71dacb 150522020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15053
9f71dacb 15054 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15055
9f71dacb 15056For older changes see ChangeLog-2019.
c906108c
SS
15057\f
15058Local Variables:
15059mode: change-log
15060left-margin: 8
15061fill-column: 74
15062version-control: never
57da7796 15063coding: utf-8
c906108c 15064End: