]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
87a37e5e
PA
12020-10-12 Pedro Alves <pedro@palves.net>
2
3 PR exp/26602
4 * valops.c (struct struct_field_searcher): New.
5 (update_search_result): Rename to ...
6 (struct_field_searcher::update_result): ... this. Simplify
7 prototype. Record all found fields.
8 (do_search_struct_field): Rename to ...
9 (struct_field_searcher::search): ... this. Simplify prototype.
10 Maintain stack of visited baseclass path. Call update_result for
11 fields too. Keep searching fields in baseclasses instead of
12 stopping at the first found field.
13 (search_struct_field): Use struct_field_searcher. When looking
14 for fields, report ambiguous access attempts.
15
9370fd51
AB
162020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
17
18 * frame.c (inside_main_func): Check full symbols as well as
19 minimal symbols.
20
59c8a30b
JB
212020-10-09 Joel Brobecker <brobecker@adacore.com>
22
23 * ada-lang.c (advance_wild_match): Rewrite the function's
24 description. Change the type of target0, t0 and t1 to char.
25
7c184d33
TT
262020-10-09 Tom Tromey <tromey@adacore.com>
27
28 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
29
5c4258f4
TT
302020-10-09 Tom Tromey <tromey@adacore.com>
31
32 * ada-lang.h (ada_encode): Return std::string.
33 * ada-lang.c (ada_encode_1): Return std::string.
34 (ada_encode): Likewise.
35 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
36 Update.
37 * ada-exp.y (block_lookup, write_var_or_type): Update.
38
3d87245c
HD
392020-10-09 Hannes Domani <ssbssa@yahoo.de>
40
41 PR exp/26714
42 * printcmd.c (print_formatted): Handle void results as
43 unformatted prints.
44
bbb826f5
AB
452020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
46
47 * arch/aarch32.c (aarch32_create_target_description): Release the
48 target_desc_up as late as possible.
49 * arch/aarch64.c (aarch64_create_target_description): Likewise.
50 * arch/amd64.c (amd64_create_target_description): Likewise.
51 * arch/arc.c (arc_create_target_description): Return a
52 target_desc_up, don't release it.
53 * arch/arc.h (arc_create_target_description): Update declaration.
54 (arc_lookup_target_description): Move target_desc_up into the
55 cache, and return a borrowed pointer.
56 * arch/arm.c (arm_create_target_description): Release the
57 target_desc_up as late as possible.
58 * arch/i386.c (i386_create_target_description): Likewise.
59 * arch/riscv.h (riscv_create_target_description): Update
60 declaration to match definition.
61 * arch/tic6x.c (tic6x_create_target_description): Release the
62 target_desc_up as late as possible.
63
361cb219
AB
642020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
65
66 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
67 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
68
f5c4b229
JV
692020-10-09 Jan Vrany <jan.vrany@labware.com>
70
71 * source.c (directory_command): Notify observers that "directories"
72 parameter has changed.
73
b2701685
TT
742020-10-08 Tom Tromey <tom@tromey.com>
75
76 * cli/cli-cmds.c (print_disassembly): Style function name and
77 addresses. Add _() wrappers.
78
ada508b6
SV
792020-10-08 Shahab Vahedi <shahab@synopsys.com>
80
81 * NEWS: Mention ARC support in GDBserver.
82
51a948fd
AB
832020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
84
85 * arch/aarch32.c (aarch32_create_target_description): Release
86 unique_ptr returned from allocate_target_description.
87 * arch/aarch64.c (aarch64_create_target_description): Likewise.
88 * arch/amd64.c (amd64_create_target_description): Likewise.
89 * arch/arc.c (arc_create_target_description): Likewise.
90 * arch/arm.c (arm_create_target_description): Likewise.
91 * arch/i386.c (i386_create_target_description): Likewise.
92 * arch/riscv.c (riscv_create_target_description): Update return
93 type. Handle allocate_target_description returning a unique_ptr.
94 (riscv_lookup_target_description): Update to handle unique_ptr.
95 * arch/tic6x.c (tic6x_create_target_description): Release
96 unique_ptr returned from allocate_target_description.
97 * features/microblaze-with-stack-protect.c: Regenerate.
98 * features/microblaze.c: Regenerate.
99 * features/mips-dsp-linux.c: Regenerate.
100 * features/mips-linux.c: Regenerate.
101 * features/mips64-dsp-linux.c: Regenerate.
102 * features/mips64-linux.c: Regenerate.
103 * features/nds32.c: Regenerate.
104 * features/nios2.c: Regenerate.
105 * features/or1k.c: Regenerate.
106 * features/rs6000/powerpc-32.c: Regenerate.
107 * features/rs6000/powerpc-32l.c: Regenerate.
108 * features/rs6000/powerpc-403.c: Regenerate.
109 * features/rs6000/powerpc-403gc.c: Regenerate.
110 * features/rs6000/powerpc-405.c: Regenerate.
111 * features/rs6000/powerpc-505.c: Regenerate.
112 * features/rs6000/powerpc-601.c: Regenerate.
113 * features/rs6000/powerpc-602.c: Regenerate.
114 * features/rs6000/powerpc-603.c: Regenerate.
115 * features/rs6000/powerpc-604.c: Regenerate.
116 * features/rs6000/powerpc-64.c: Regenerate.
117 * features/rs6000/powerpc-64l.c: Regenerate.
118 * features/rs6000/powerpc-7400.c: Regenerate.
119 * features/rs6000/powerpc-750.c: Regenerate.
120 * features/rs6000/powerpc-860.c: Regenerate.
121 * features/rs6000/powerpc-altivec32.c: Regenerate.
122 * features/rs6000/powerpc-altivec32l.c: Regenerate.
123 * features/rs6000/powerpc-altivec64.c: Regenerate.
124 * features/rs6000/powerpc-altivec64l.c: Regenerate.
125 * features/rs6000/powerpc-e500.c: Regenerate.
126 * features/rs6000/powerpc-e500l.c: Regenerate.
127 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
128 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
129 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
130 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
131 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
132 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
133 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
134 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
135 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
136 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
137 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
138 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
139 * features/rs6000/powerpc-vsx32.c: Regenerate.
140 * features/rs6000/powerpc-vsx32l.c: Regenerate.
141 * features/rs6000/powerpc-vsx64.c: Regenerate.
142 * features/rs6000/powerpc-vsx64l.c: Regenerate.
143 * features/rs6000/rs6000.c: Regenerate.
144 * features/rx.c: Regenerate.
145 * features/s390-gs-linux64.c: Regenerate.
146 * features/s390-linux32.c: Regenerate.
147 * features/s390-linux32v1.c: Regenerate.
148 * features/s390-linux32v2.c: Regenerate.
149 * features/s390-linux64.c: Regenerate.
150 * features/s390-linux64v1.c: Regenerate.
151 * features/s390-linux64v2.c: Regenerate.
152 * features/s390-te-linux64.c: Regenerate.
153 * features/s390-tevx-linux64.c: Regenerate.
154 * features/s390-vx-linux64.c: Regenerate.
155 * features/s390x-gs-linux64.c: Regenerate.
156 * features/s390x-linux64.c: Regenerate.
157 * features/s390x-linux64v1.c: Regenerate.
158 * features/s390x-linux64v2.c: Regenerate.
159 * features/s390x-te-linux64.c: Regenerate.
160 * features/s390x-tevx-linux64.c: Regenerate.
161 * features/s390x-vx-linux64.c: Regenerate.
162 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
163 from allocate_target_description.
164 * target-descriptions.c (allocate_target_description): Update
165 return type.
166 (print_c_tdesc::visit_pre): Release unique_ptr returned from
167 allocate_target_description.
168
485c47e5
TT
1692020-10-07 Tom Tromey <tromey@adacore.com>
170
171 * unittests/search-memory-selftests.c: New file.
172 * Makefile.in (SELFTESTS_SRCS): Add
173 unittests/search-memory-selftests.c.
174
3a135a91
TT
1752020-10-07 Tom Tromey <tromey@adacore.com>
176
177 PR gdb/16930:
178 * findcmd.c (_initialize_mem_search): Mention that the range is
179 inclusive.
180
4a72de73
TT
1812020-10-07 Tom Tromey <tromey@adacore.com>
182
183 * target.h (simple_search_memory): Don't declare.
184 * target.c (simple_search_memory): Move to gdbsupport.
185 (default_search_memory): Update.
186 * remote.c (remote_target::search_memory): Update.
187
a038ffd8
SM
1882020-10-07 Simon Marchi <simon.marchi@efficios.com>
189
190 * Makefile.in (COMPILE): Add CXXFLAGS.
191 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
192 (check-headers): Add CXXFLAGS.
193
cc463201
AK
1942020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
195
196 * arc-linux-tdep.h: New file.
197 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
198 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
199 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
200 arc_linux_gregset, arc_linux_v2_regset,
201 arc_linux_iterate_over_regset_sections,
202 arc_linux_core_read_description): Implement.
203 (arc_linux_init_osabi): Set iterate_over_regset_sections.
204 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
205 (arc_gdbarch_features_create): Add.
206 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
207
e4bd363f
SV
2082020-10-07 Shahab Vahedi <shahab@synopsys.com>
209
210 * arch/arc.h: Rename "arc_gdbarch_features" to
211 "arc_arch_features".
212 * arc-tdep.h: Likewise.
213 * arc-tdep.c: Likewise.
214
b68bef99
TBA
2152020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
216
217 * infcmd.c (attach_command): Remove the redundant call to
218 `clear_proceed_status`.
219
4641551a
KR
2202020-10-07 Kamil Rytarowski <n54@gmx.com>
221
222 * nat/netbsd-nat.c (write_memory, read_memory): Update.
223
91e5e8db
KR
2242020-10-07 Kamil Rytarowski <n54@gmx.com>
225
226 * nat/netbsd-nat.c (write_memory, read_memory): Add.
227 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
228 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
229
64c03bdb
SM
2302020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
231
232 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
233 (_initialize_break_catch_sig): Don't allocate array.
234
31a8f60f
AB
2352020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
236
237 * symtab.c (find_pc_line): Return unmapped addresses when the
238 requested address is also unmapped.
239
9e6dbd8b
SM
2402020-10-05 Simon Marchi <simon.marchi@efficios.com>
241
242 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
243 tui/tui-out.h.
244
a1d217e8
SM
2452020-10-05 Simon Marchi <simon.marchi@efficios.com>
246
247 * amd64-windows-tdep.c (amd64_windows_return_value): Use
248 type::is_vector instead of TYPE_VECTOR.
249
7d144117
SM
2502020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
251
252 * auto-load.c (auto_load_objfile_script_1): Don't use
253 debugfile_holder as temporary variable when stripping drive
254 letter.
255
cd096ec8
HD
2562020-10-05 Hannes Domani <ssbssa@yahoo.de>
257
258 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
259 Add TYPE_CODE_COMPLEX.
260 (amd64_windows_return_value): Fix types returned via XMM0.
261
b58e7f72
AH
2622020-10-05 Alan Hayward <alan.hayward@arm.com>
263
264 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
265 AArch64/ARM maintainers.
266
8d378f27
SM
2672020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
268
269 * NEWS: Mention set/show debug event-loop.
270
d5519913
TT
2712020-10-02 Tom Tromey <tromey@adacore.com>
272
273 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
274 REG_EXTENDED.
275
18b67edc
SM
2762020-10-02 Simon Marchi <simon.marchi@efficios.com>
277
278 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
279 * procfs.c (procfs_inferior_created): Remove.
280 (_initialize_procfs): Don't register procfs_inferior_created.
281
6b01403b
SM
2822020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
283
284 * async-event.c (invoke_async_signal_handlers): Add debug
285 print.
286 (check_async_event_handlers): Likewise.
287 * event-top.c (show_debug_event_loop): New function.
288 (_initialize_event_top): Register "set debug event-loop"
289 setting.
290
ba988419
SM
2912020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
292
293 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
294 * debug.h: Remove.
295 * infrun.c: Include gdbsupport/common-debug.h.
296 * linux-nat.c: Likewise.
297
db20ebdf
SM
2982020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
299
300 * async-event.h (create_async_signal_handler): Add name
301 parameter.
302 (create_async_event_handler): Likewise.
303 * async-event.c (struct async_signal_handler) <name>: New field.
304 (struct async_event_handler) <name>: New field.
305 (create_async_signal_handler): Assign name.
306 (create_async_event_handler): Assign name.
307 * event-top.c (async_init_signals): Pass name when creating
308 handler.
309 * infrun.c (_initialize_infrun): Likewise.
310 * record-btrace.c (record_btrace_push_target): Likewise.
311 * record-full.c (record_full_open): Likewise.
312 * remote-notif.c (remote_notif_state_allocate): Likewise.
313 * remote.c (remote_target::open_1): Likewise.
314 * tui/tui-win.c (tui_initialize_win): Likewise.
315
2554f6f5
SM
3162020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
317
318 * async-event.c (initialize_async_signal_handlers): Pass name to
319 add_file_handler
320 * event-top.c (ui_register_input_event_handler): Likewise.
321 * linux-nat.c (linux_nat_target::async): Likewise.
322 * run-on-main-thread.c (_initialize_run_on_main_thread):
323 Likewise
324 * ser-base.c (reschedule): Likewise.
325 (ser_base_async): Likewise.
326 * tui/tui-io.c: Likewise.
327 * top.h (struct ui) <num>: New field.
328 * top.c (highest_ui_num): New variable.
329 (ui::ui): Initialize num.
330
a7aba266
SM
3312020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
332
333 * observable.h <inferior_created>: Remove parameters. Update all
334 listeners.
335 * inferior.h (post_create_inferior): Remove target parameter.
336 Update all callers.
337
048fde1e 3382020-10-02 Nitika Achra <Nitika.Achra@amd.com>
339
340 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
341 and DW_MACRO_undef_strx.
342 (dwarf_decode_macros): Likewise
343 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
344 which is the value of DW_AT_str_offsets_base.
345 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
346 str_offsets_base.
347
064280be
KR
3482020-10-01 Kamil Rytarowski <n54@gmx.com>
349
350 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
351
6ff33035
KR
3522020-10-01 Kamil Rytarowski <n54@gmx.com>
353
354 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
355 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
356
1eb6eb79
KR
3572020-10-01 Kamil Rytarowski <n54@gmx.com>
358
359 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
360
95eb9e54
TV
3612020-09-30 Tom de Vries <tdevries@suse.de>
362
363 PR symtab/26683
364 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
365
cae21f8e
TT
3662020-09-30 Tom Tromey <tromey@adacore.com>
367
368 * dwarf2/read.c (handle_variant): Use constant_value.
369
529908cb
TT
3702020-09-29 Tom Tromey <tom@tromey.com>
371
372 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
373 (read_file_scope, dwarf2_get_pc_bounds)
374 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
375 (read_structure_type, handle_struct_member_die)
376 (read_enumeration_type, read_array_type, read_set_type)
377 (read_tag_pointer_type, read_tag_reference_type)
378 (read_subroutine_type, read_base_type, read_subrange_type)
379 (read_full_die_1, partial_die_info::read)
380 (partial_die_info::read, by, new_symbol)
381 (dwarf2_const_value_data, dwarf2_const_value_attr)
382 (dump_die_shallow, dwarf2_fetch_constant_bytes)
383 (prepare_one_comp_unit): Update.
384 * dwarf2/attribute.h (DW_UNSND): Remove.
385
c45bc3f8
TT
3862020-09-29 Tom Tromey <tom@tromey.com>
387
388 * dwarf2/read.c (read_func_scope, prototyped_function_p)
389 (read_subroutine_type, partial_die_info::read)
390 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
391 (dwarf2_add_member_fn): Update.
392 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
393 * dwarf2/attribute.c (attribute::as_boolean): New method.
394
23dca5c3
TT
3952020-09-29 Tom Tromey <tom@tromey.com>
396
397 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
398 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
399 method.
400 * dwarf2/attribute.c (attribute::as_virtuality): New method.
401
52c14d11
TT
4022020-09-29 Tom Tromey <tom@tromey.com>
403
404 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
405 the attribute's form.
406
e8e5c158
TT
4072020-09-29 Tom Tromey <tom@tromey.com>
408
409 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
410 (dwarf2_add_member_fn): Update.
411 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
412 * dwarf2/attribute.c (attribute::defaulted): New method, from
413 is_valid_DW_AT_defaulted.
414
d4df075e
TT
4152020-09-29 Tom Tromey <tom@tromey.com>
416
417 * dwarf2/read.c (dw2_get_file_names_reader)
418 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
419 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
420 (dwarf2_symbol_mark_computed): Use as_unsigned.
421 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
422 method.
423 <form_is_section_offset>: Update comment.
424
bf23a268
TT
4252020-09-29 Tom Tromey <tom@tromey.com>
426
427 * dwarf2/read.c (dwarf2_access_attribute): Rename from
428 dwarf2_default_access_attribute. Look up attribute.
429 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
430 Update.
431
7a5f294d
TT
4322020-09-29 Tom Tromey <tom@tromey.com>
433
434 * dwarf2/read.c (skip_one_die): Update.
435 (read_full_die_1): Change how reprocessing is done.
436 (partial_die_info::read): Update.
437 (read_attribute_value): Remove need_reprocess parameter.
438 (read_attribute): Likewise.
439 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
440 New method.
441
36d378cf
TT
4422020-09-29 Tom Tromey <tom@tromey.com>
443
444 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
445 (dwarf2_const_value_attr, dump_die_shallow)
446 (dwarf2_fetch_constant_bytes): Update.
447 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
448 comment.
449 <set_address>: New method.
450 (DW_ADDR): Remove.
451 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
452 (attribute::as_string, attribute::as_address): Add assert.
453
fe56917a
TT
4542020-09-29 Tom Tromey <tom@tromey.com>
455
456 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
457 (read_attribute_reprocess, read_attribute_value): Update.
458 (read_attribute): Clear requires_reprocessing.
459 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
460 form_requires_reprocessing>: New methods.
461 <string_init>: Clear requires_reprocessing.
462 <set_unsigned_reprocess>: New method.
463 <name>: Shrink by one bit.
464 <requires_reprocessing>: New member.
465 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
466 method.
467
414ad644
TT
4682020-09-29 Tom Tromey <tom@tromey.com>
469
470 * dwarf2/read.c (read_attribute_value): Update.
471 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
472 set_unsigned>: New methods.
473 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
474
1bc397c5
TT
4752020-09-29 Tom Tromey <tom@tromey.com>
476
477 * dwarf2/read.c (get_alignment, read_array_order)
478 (read_attribute_value, dwarf2_const_value_attr)
479 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
480 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
481 New methods.
482 (DW_SND): Remove.
483
630ed6b9
TT
4842020-09-29 Tom Tromey <tom@tromey.com>
485
486 * dwarf2/read.c (read_attribute_value, lookup_die_type)
487 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
488 Update.
489 * dwarf2/attribute.h (struct attribute) <as_signature,
490 set_signature>: New methods.
491 (DW_SIGNATURE): Remove.
492
9d2246fc
TT
4932020-09-29 Tom Tromey <tom@tromey.com>
494
495 * dwarf2/read.c (read_call_site_scope)
496 (handle_data_member_location, dwarf2_add_member_fn)
497 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
498 (partial_die_info::read, read_attribute_value)
499 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
500 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
501 (dwarf2_symbol_mark_computed): Update.
502 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
503 methods.
504 (DW_BLOCK): Remove.
505 * dwarf2/attribute.c (attribute::form_is_block): Add
506 DW_FORM_data16.
507
c6481205
TT
5082020-09-29 Tom Tromey <tom@tromey.com>
509
510 * dwarf2/read.c (read_cutu_die_from_dwo)
511 (read_attribute_reprocess, read_attribute_value, read_attribute)
512 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
513 (dwarf2_fetch_constant_bytes): Update.
514 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
515 <set_string_noncanonical, set_string_canonical>: New methods.
516 <string_is_canonical>: Update comment.
517 <canonical_string_p>: Add assert.
518 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
519 * dwarf2/attribute.c (attribute::form_is_string): New method.
520 (attribute::string): Use it.
521
3b64bf15
TT
5222020-09-29 Tom Tromey <tom@tromey.com>
523
524 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
525 (dump_die_shallow): Use canonical_string_p.
526 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
527 method.
528
2c830f54
TT
5292020-09-29 Tom Tromey <tom@tromey.com>
530
531 * dwarf2/read.c (partial_die_info::read)
532 (dwarf2_const_value_attr, anonymous_struct_prefix, )
533 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
534 attribute::as_string.
535
6c412691
TT
5362020-09-29 Tom Tromey <tom@tromey.com>
537
538 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
539 DW_ADDR.
540 (attribute::string): Don't use DW_STRING.
541 (attribute::get_ref_die_offset): Don't use DW_UNSND.
542 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
543
95f982e5
TT
5442020-09-29 Tom Tromey <tom@tromey.com>
545
546 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
547 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
548 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
549 * dwarf2/attribute.h (struct attribute): Rename methods.
550 * dwarf2/attribute.c (attribute::as_address): Rename from
551 value_as_address.
552 (attribute::as_string): Rename from value_as_string.
553
f800b00e
TT
5542020-09-29 Tom Tromey <tom@tromey.com>
555
556 * dwarf2/read.c (partial_die_info::read) <case
557 DW_AT_linkage_name>: Use value_as_string.
558 (dwarf2_string_attr): Use value_as_string.
559 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
560 method.
561 * dwarf2/attribute.c (attribute::value_as_string): New method.
562
de38d64a
PA
5632020-09-29 Pedro Alves <pedro@palves.net>
564
565 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
566 defined before using '#pragma GCC diagnostic' instead of checking
567 __clang__.
568
9aed480c
TT
5692020-09-28 Tom Tromey <tom@tromey.com>
570
571 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
572 (handle_signal_stop): Update.
573 * procfs.c (procfs_target::insert_watchpoint): Update.
574 * target.h (target_have_steppable_watchpoint): Now a function.
575
8a3ecb79
TT
5762020-09-28 Tom Tromey <tom@tromey.com>
577
578 * infrun.c (set_schedlock_func): Update.
579 * target.h (target_can_lock_scheduler): Now a function.
580
55f6301a
TT
5812020-09-28 Tom Tromey <tom@tromey.com>
582
583 * inferior.h (class inferior) <has_execution>: Update.
584 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
585 * valops.c (find_function_in_inferior)
586 (value_allocate_space_in_inferior): Update.
587 * top.c (kill_or_detach): Update.
588 * target.c (target_preopen, set_target_permissions): Update.
589 (target_has_execution_current): Remove.
590 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
591 Update.
592 * solib.c (update_solib_list, reload_shared_libraries): Update.
593 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
594 * solib-dsbt.c (enable_break): Update.
595 * score-tdep.c (score7_fetch_inst): Update.
596 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
597 Update.
598 * remote.c (remote_target::start_remote)
599 (remote_target::remote_check_symbols, remote_target::open_1)
600 (remote_target::remote_detach_1, remote_target::verify_memory)
601 (remote_target::xfer_partial, remote_target::read_description)
602 (remote_target::get_min_fast_tracepoint_insn_len): Update.
603 * record-full.c (record_full_open_1): Update.
604 * record-btrace.c (record_btrace_target_open): Update.
605 * objc-lang.c (lookup_objc_class, lookup_child_selector)
606 (value_nsstring): Update.
607 * linux-thread-db.c (add_thread_db_info)
608 (thread_db_find_new_threads_silently, check_thread_db_callback)
609 (try_thread_db_load_1, record_thread): Update.
610 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
611 Update.
612 * linux-fork.c (checkpoint_command): Update.
613 * infrun.c (set_non_stop, set_observer_mode)
614 (check_multi_target_resumption, for_each_just_stopped_thread)
615 (maybe_remove_breakpoints, normal_stop)
616 (class infcall_suspend_state): Update.
617 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
618 (info_program_command, attach_command): Update.
619 * infcall.c (call_function_by_hand_dummy): Update.
620 * inf-loop.c (inferior_event_handler): Update.
621 * gcore.c (gcore_command, derive_heap_segment): Update.
622 * exec.c (exec_file_command): Update.
623 * eval.c (evaluate_subexp): Update.
624 * compile/compile.c (compile_to_object): Update.
625 * cli/cli-dump.c (restore_command): Update.
626 * breakpoint.c (update_watchpoint)
627 (update_inserted_breakpoint_locations)
628 (insert_breakpoint_locations, get_bpstat_thread): Update.
629 * target.h (target_has_execution): Remove macro.
630 (target_has_execution_current): Don't declare.
631 (target_has_execution): Rename from target_has_execution_1. Add
632 argument default.
633
05374cfd
TT
6342020-09-28 Tom Tromey <tom@tromey.com>
635
636 * mi/mi-main.c (exec_reverse_continue)
637 (mi_cmd_list_target_features): Update.
638 * infrun.c (set_exec_direction_func): Update.
639 * target.c (default_execution_direction): Update.
640 * reverse.c (exec_reverse_once): Update.
641 * target.h (target_can_execute_reverse): Now a function.
642
9dccd06e
TT
6432020-09-28 Tom Tromey <tom@tromey.com>
644
645 * tui/tui-regs.c (tui_get_register)
646 (tui_data_window::show_registers): Update.
647 * thread.c (scoped_restore_current_thread::restore)
648 (scoped_restore_current_thread::scoped_restore_current_thread):
649 Update.
650 * regcache-dump.c (regcache_print): Update.
651 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
652 Update.
653 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
654 * mep-tdep.c (current_me_module, current_options): Update.
655 * linux-thread-db.c (thread_db_load): Update.
656 * infcmd.c (registers_info, info_vector_command)
657 (info_float_command): Update.
658 * ia64-tdep.c (ia64_frame_prev_register)
659 (ia64_sigtramp_frame_prev_register): Update.
660 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
661 * gcore.c (derive_stack_segment): Update.
662 * frame.c (get_current_frame, has_stack_frames): Update.
663 * findvar.c (language_defn::read_var_value): Update.
664 * arm-tdep.c (arm_pc_is_thumb): Update.
665 * target.c (target_has_registers): Rename from
666 target_has_registers_1.
667 * target.h (target_has_registers): Remove macro.
668 (target_has_registers): Rename from target_has_registers_1.
669
841de120
TT
6702020-09-28 Tom Tromey <tom@tromey.com>
671
672 * windows-tdep.c (tlb_make_value): Update.
673 * tui/tui-regs.c (tui_data_window::show_registers): Update.
674 * thread.c (scoped_restore_current_thread::restore)
675 (scoped_restore_current_thread::scoped_restore_current_thread)
676 (thread_command): Update.
677 * stack.c (backtrace_command_1, frame_apply_level_command)
678 (frame_apply_all_command, frame_apply_command): Update.
679 * infrun.c (siginfo_make_value, restore_infcall_control_state):
680 Update.
681 * gcore.c (derive_stack_segment): Update.
682 * frame.c (get_current_frame, has_stack_frames): Update.
683 * auxv.c (info_auxv_command): Update.
684 * ada-tasks.c (ada_build_task_list): Update.
685 * target.c (target_has_stack): Rename from target_has_stack_1.
686 * target.h (target_has_stack): Remove macro.
687 (target_has_stack): Rename from target_has_stack_1.
688
a739972c
TT
6892020-09-28 Tom Tromey <tom@tromey.com>
690
691 * target.c (target_has_memory): Rename from target_has_memory_1.
692 * tui/tui-regs.c (tui_data_window::show_registers): Update.
693 * thread.c (scoped_restore_current_thread::restore)
694 (scoped_restore_current_thread::scoped_restore_current_thread):
695 Update.
696 * frame.c (get_current_frame, has_stack_frames): Update.
697 * target.h (target_has_memory): Remove macro.
698 (target_has_memory): Rename from target_has_memory_1.
699
5b8a4776
TT
7002020-09-28 Tom Tromey <tom@tromey.com>
701
702 * target.c (target_has_all_memory_1): Remove.
703 * target.h (target_has_all_memory): Remove define.
704 (target_has_all_memory_1): Don't declare.
705
bd356ec6
SM
7062020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
707
708 * ser-base.c: Adjust comments formatting.
709
2c72d5e5
TT
7102020-09-27 Tom Tromey <tom@tromey.com>
711
712 PR tui/25342:
713 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
714
35a98237
TT
7152020-09-27 Tom Tromey <tom@tromey.com>
716
717 PR tui/25342:
718 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
719
9e820dec
TT
7202020-09-27 Tom Tromey <tom@tromey.com>
721
722 * unittests/tui-selftests.c: Update.
723 * tui/tui-winsource.h (struct tui_source_window_base)
724 <extra_margin, show_line_number, refresh_pad>: New methods.
725 <m_max_length, m_pad>: New members.
726 (tui_copy_source_line): Update.
727 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
728 first_col, line_width, ndigits parameters. Add length.
729 (tui_source_window_base::show_source_line): Write to pad. Line
730 number now 0-based.
731 (tui_source_window_base::refresh_pad): New method.
732 (tui_source_window_base::show_source_content): Write to pad. Call
733 refresh_pad.
734 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
735 not refill.
736 (tui_source_window_base::update_exec_info): Call
737 show_line_number.
738 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
739 method.
740 <m_digits>: New member.
741 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
742 and m_max_length.
743 (tui_source_window::show_line_number): New method.
744 * tui/tui-io.h (tui_puts): Fix comment.
745 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
746 m_max_length.
747
c15c15c8
TT
7482020-09-27 Tom Tromey <tom@tromey.com>
749
750 * tui/tui-winsource.c
751 (tui_source_window_base::set_is_exec_point_at): Don't call
752 show_source_line.
753
149830c1
TT
7542020-09-27 Tom Tromey <tom@tromey.com>
755
756 * python/py-tui.c (class tui_py_window) <refresh_window>: New
757 method.
758 <erase>: Update.
759 <cursor_x, cursor_y>: Remove.
760 <m_inner_window>: New member.
761 (tui_py_window::rerender): Create inner window.
762 (tui_py_window::output): Write to inner window.
763
8f9929bb
GR
7642020-09-26 Gareth Rees <grees@undo.io> (tiny change)
765
766 PR python/26586
767 * cli/cli-script.c (execute_control_commands): don't set
768 instream to nullptr here as this breaks the from_tty argument
769 to gdb.execute in Python.
770 (execute_user_command): set instream to nullptr here instead.
771
956bdb59
SM
7722020-09-25 Simon Marchi <simon.marchi@efficios.com>
773
774 * infrun.h (infrun_debug_printf): Fix formatting.
775 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
776
3b93626b
SJ
7772020-09-25 Saagar Jha <saagar@saagarjha.com>
778
779 * compile/compile-object-load.h (struct munmap_list): Add
780 explicitly-defined move constructor.
781
b551a89f
TT
7822020-09-24 Tom Tromey <tromey@adacore.com>
783
784 PR tui/26638:
785 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
786 method.
787 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
788 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
789 (tui_prev_win): Rewrite.
790
99bb393f
HD
7912020-09-23 Hannes Domani <ssbssa@yahoo.de>
792
793 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
794 in WOW64 processes as SIGINT.
795 * nat/windows-nat.h: Make wow64_process a shared variable.
796 * windows-nat.c: Remove static wow64_process variable.
797
20a5fcbd
TT
7982020-09-23 Tom Tromey <tom@tromey.com>
799
800 PR symtab/25470:
801 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
802 offset and bit size.
803 * printcmd.c (print_scalar_formatted): Handle zero-length
804 integer.
805 (print_scalar_formatted): Use bit_size_differs_p.
806 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
807 constant.
808 (union type_specific): <int_stuff>: New member.
809 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
810 methods.
811 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
812 TYPE_SPECIFIC_FIELD.
813 (recursive_dump_type, copy_type_recursive): Update.
814 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
815 DW_AT_data_bit_offset.
816
bac51ab7
TT
8172020-09-23 Tom Tromey <tom@tromey.com>
818
819 * utils.h (class gdb_argv): Add move operators.
820 <append>: New methods.
821 * compile/compile.c (build_argc_argv): Remove.
822 (compile_args_argc): Remove.
823 (compile_args_argv): Change type.
824 (set_compile_args): Simplify.
825 (append_args): Remove.
826 (filter_args): Remove argcp parameter.
827 (get_args): Return gdb_argv. Simplify.
828 (compile_to_object): Update.
829
92677124
TT
8302020-09-23 Tom Tromey <tom@tromey.com>
831
832 * compile/compile-object-run.c (do_module_cleanup)
833 <~do_module_cleanup> :Remove.
834 (do_module_cleanup): Update.
835 * compile/compile-object-load.h (struct munmap_list): Add move
836 assignment operator.
837 <source_file>: Now a std::string.
838 <munmap_list>: Rename. No longer a pointer.
839 * compile/compile-object-load.c (struct setup_sections_data): Add
840 constructor.
841 <setup_one_section>: Declare.
842 <munmap_list>: Move earlier.
843 <m_bfd>: New member.
844 <m_last_size, m_last_section_first, m_last_prot,
845 m_last_max_alignment>: Rename, add initializers where needed.
846 (setup_sections_data::setup_one_section): Rename from
847 setup_sections. Update.
848 (compile_object_load): Update. Don't use bfd_map_over_sections.
849
e616f60a
TT
8502020-09-23 Tom Tromey <tom@tromey.com>
851
852 * compile/compile-object-run.c (struct do_module_cleanup): Add
853 parameters to constructor. Update destructor.
854 <source_file, scope, scope_data, out_value_type, out_value_addr,
855 munmap_list_head, objfile_name_string>: Remove.
856 <module>: New member.
857 (do_module_cleanup): Update.
858 (compile_object_run): Update.
859
e947a848
TT
8602020-09-23 Tom Tromey <tom@tromey.com>
861
862 * compile/compile.c (eval_compile_command): Update.
863 * compile/compile-object-run.h (compile_object_run): Take a
864 compile_module_up.
865 * compile/compile-object-run.c (compile_object_run): Take a
866 compile_module_up.
867 * compile/compile-object-load.h (struct compile_module): Add
868 constructor, destructor.
869 (compile_module_up): New typedef.
870 (compile_object_load): Return compile_object_up.
871 * compile/compile-object-load.c (compile_object_load): Return
872 compile_module_up.
873
0dbf6ee6
TT
8742020-09-23 Tom Tromey <tom@tromey.com>
875
876 * compile/compile-object-run.c (struct do_module_cleanup): Add
877 constructor, destructor.
878 <objfile_name_string>: Don't use struct hack.
879 (do_module_cleanup): Use delete.
880 (compile_object_run): Use new.
881
ebe824f5
TT
8822020-09-23 Tom Tromey <tom@tromey.com>
883
884 * compile/compile-cplus-types.c
885 (compile_cplus_convert_struct_or_union): Use std::vector.
886 (compile_cplus_convert_func): Likewise.
887 * compile/compile-c-types.c (convert_func): Use std::vector.
888
5dd918d9
TT
8892020-09-21 Tom Tromey <tromey@adacore.com>
890
891 * sparc-tdep.c (sparc32_skip_prologue): Use
892 skip_prologue_using_sal.
893
5486c517
TT
8942020-09-19 Tom Tromey <tom@tromey.com>
895
896 * symfile.c (add_section_size_callback): Remove.
897 (load_one_section): Rename from load_section_callback. Change
898 parameters.
899 (generic_load): Use foreach.
900
8a6bb1d1
TT
9012020-09-19 Tom Tromey <tom@tromey.com>
902
903 * exec.c (add_to_section_table): Remove.
904 (build_section_table): Use foreach.
905
08f93a1a
TT
9062020-09-19 Tom Tromey <tom@tromey.com>
907
908 * elfread.c (elf_locate_sections): Change parameters.
909 (elf_symfile_read): Use foreach.
910
03cd72b8
TT
9112020-09-19 Tom Tromey <tom@tromey.com>
912
913 * cli/cli-dump.c (struct callback_data): Remove.
914 (restore_one_section): Rename from restore_section_callback.
915 Change parameters.
916 (restore_binary_file): Change parameters.
917 (restore_command): Use foreach.
918
f4f2b85f
TT
9192020-09-19 Tom Tromey <tom@tromey.com>
920
921 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
922 (gcore_copy_callback): Likewise.
923 (gcore_memory_sections): Use foreach.
924
b35c1d1c
TT
9252020-09-19 Tom Tromey <tom@tromey.com>
926
927 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
928 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
929 parameters.
930 (generic_elf_osabi_sniffer): Use foreach.
931 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
932 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
933
5bb6e9dd
TT
9342020-09-19 Tom Tromey <tom@tromey.com>
935
936 * dwarf2/read.c (locate_dwz_sections): Change parameters.
937 (dwarf2_get_dwz_file): Use foreach.
938 (dwarf2_locate_dwo_sections): Change parameters.
939 (open_and_init_dwo_file): Use foreach.
940 (dwarf2_locate_common_dwp_sections): Change parameters.
941 (open_and_init_dwp_file): Use foreach.
942
ad7277da
TT
9432020-09-19 Tom Tromey <tom@tromey.com>
944
945 * symfile.h: (find_lowest_section): Don't declare.
946 * symfile.c (find_lowest_section): Now static. Change
947 parameters.
948 (struct place_section_arg): Remove.
949 (place_section): Change parameters.
950 (addr_info_make_relative): Use foreach.
951 (symfile_dummy_outputs): Remove.
952 (default_symfile_relocate): Use foreach.
953
cb814f2e
TT
9542020-09-19 Tom Tromey <tom@tromey.com>
955
956 * objfiles.c (add_to_objfile_sections): Rename from
957 add_to_objfile_sections_full.
958 (add_to_objfile_sections): Remove.
959 (build_objfile_section_table): Use foreach.
960
3cabfd26
TT
9612020-09-19 Tom Tromey <tom@tromey.com>
962
963 * stap-probe.c (get_stap_base_address_1): Remove.
964 (get_stap_base_address): Use foreach.
965
1ce51eb5
TT
9662020-09-19 Tom Tromey <tom@tromey.com>
967
968 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
969 parameters.
970 (gdb_bfd_close_or_warn): Use foreach.
971
a190fabb
TT
9722020-09-19 Tom Tromey <tom@tromey.com>
973
974 * corelow.c (add_to_thread_list): Change parameters.
975 (core_target_open): Use foreach.
976
cafb0d81
TT
9772020-09-19 Tom Tromey <tom@tromey.com>
978
979 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
980 existing function.
981
c8d5abea
AB
9822020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
983
984 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
985 for arrays.
986
6d816919
AB
9872020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
988
989 * eval.c: Remove 'f-lang.h' include.
990 (value_f90_subarray): Moved to f-lang.c.
991 (eval_call): Renamed to...
992 (evaluate_subexp_do_call): ...this, is no longer static, header
993 comment moved into header file.
994 (evaluate_funcall): Update call to eval_call.
995 (skip_undetermined_arglist): Moved to f-lang.c.
996 (fortran_value_subarray): Likewise.
997 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
998 moved to evaluate_subexp_f.
999 (calc_f77_array_dims): Moved to f-lang.c
1000 * expprint.c (print_subexp_funcall): New function.
1001 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1002 moved to print_subexp_f, OP_FUNCALL uses new function.
1003 (dump_subexp_body_funcall): New function.
1004 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1005 moved to dump_subexp_f, OP_FUNCALL uses new function.
1006 * expression.h (evaluate_subexp_do_call): Declare.
1007 * f-lang.c (value_f90_subarray): Moved from eval.c.
1008 (skip_undetermined_arglist): Likewise.
1009 (calc_f77_array_dims): Likewise.
1010 (fortran_value_subarray): Likewise.
1011 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1012 (operator_length_f): Likewise.
1013 (print_subexp_f): Likewise.
1014 (dump_subexp_body_f): Likewise.
1015 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1016 declaration of this operation to here.
1017 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1018 support moved to operator_length_f.
1019 * parser-defs.h (dump_subexp_body_funcall): Declare.
1020 (print_subexp_funcall): Declare.
1021 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1022 fortran-operator.def.
1023
8c37706a
AB
10242020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1025
1026 * eval.c (fortran_value_subarray): New function, content is taken
1027 from...
1028 (evaluate_subexp_standard): ...here, in two places. Now arrays
1029 and strings both call the new function.
1030 (calc_f77_array_dims): Add header comment, handle strings.
1031
14f9473c
VC
10322020-09-18 Victor Collod <vcollod@nvidia.com>
1033
1034 PR gdb/26635
1035 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1036 (i386_analyze_prologue): Call i386_skip_endbr.
1037
b60cea74
TT
10382020-09-18 Tom Tromey <tromey@adacore.com>
1039
1040 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1041 (windows_nat_target::wait): Update.
1042 * target/wait.h (enum target_wait_flag): New. Use
1043 DEF_ENUM_FLAGS_TYPE.
1044 * target/target.h (target_wait): Change type of options.
1045 * target.h (target_options_to_string, default_target_wait):
1046 Update.
1047 (struct target_ops) <wait>: Change type of options.
1048 * target.c (target_wait, default_target_wait, do_option): Change
1049 type of "options".
1050 (target_options_to_string): Likewise.
1051 * target-delegates.c: Rebuild.
1052 * target-debug.h (target_debug_print_target_wait_flags): Rename
1053 from target_debug_print_options.
1054 * sol-thread.c (class sol_thread_target) <wait>: Update.
1055 (sol_thread_target::wait): Update.
1056 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1057 (rs6000_nat_target::wait): Update.
1058 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1059 Update.
1060 (remote_target::wait_ns, remote_target::wait_as): Change type of
1061 "options".
1062 (remote_target::wait): Update.
1063 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1064 (gdbsim_target::wait): Update.
1065 * record-full.c (class record_full_base_target) <wait>: Update.
1066 (record_full_wait_1): Change type of "options".
1067 (record_full_base_target::wait): Update.
1068 * record-btrace.c (class record_btrace_target) <wait>: Update.
1069 (record_btrace_target::wait): Update.
1070 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1071 Update.
1072 (ravenscar_thread_target::wait): Update.
1073 * procfs.c (class procfs_target) <wait>: Update.
1074 (procfs_target::wait): Update.
1075 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1076 * obsd-nat.c (obsd_nat_target::wait): Update.
1077 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1078 (nto_procfs_target::wait): Update.
1079 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1080 * nbsd-nat.c (nbsd_wait): Change type of "options".
1081 (nbsd_nat_target::wait): Update.
1082 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1083 (thread_db_target::wait): Update.
1084 * linux-nat.h (class linux_nat_target) <wait>: Update.
1085 * linux-nat.c (linux_nat_target::wait): Update.
1086 (linux_nat_wait_1): Update.
1087 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1088 "options".
1089 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1090 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1091 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1092 (go32_nat_target::wait): Update.
1093 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1094 * gnu-nat.c (gnu_nat_target::wait): Update.
1095 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1096 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1097 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1098 * darwin-nat.c (darwin_nat_target::wait): Update.
1099 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1100 (bsd_uthread_target::wait): Update.
1101 * aix-thread.c (class aix_thread_target) <wait>: Update.
1102 (aix_thread_target::wait): Update.
1103
0295dde6
AB
11042020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1105
1106 * compile/compile-object-run.c (create_copied_type_recursive): New
1107 function.
1108 (compile_object_run): Use new function.
1109
d3483b43
JT
11102020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1111
1112 * NEWS: Mention x86_64 Cygwin core file support.
1113
e7d612ad
JT
11142020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1115
1116 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1117 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1118
aff9d387
JT
11192020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1120
62a5151b
JT
1121 * windows-tdep.h: Add prototypes.
1122 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1123 (i386_windows_core_pid_to_str): Move and rename ...
1124 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1125 (windows_core_pid_to_str): ... and here.
1126 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1127
11282020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1129 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1130 (amd64_windows_init_abi_common): ... and register.
1131
7d155da3
JT
11322020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1133
1134 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1135 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1136
e8ef12b9
PA
11372020-09-18 Pedro Alves <pedro@palves.net>
1138
1139 PR gdb/26631
1140 * thread.c (thread_find_command): Switch inferior before calling
1141 target methods.
1142
c1e1314d
TT
11432020-09-17 Tom Tromey <tromey@adacore.com>
1144
1145 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1146 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1147 (tdesc_arch_data_up): New typedef.
1148 (tdesc_use_registers, tdesc_data_alloc): Update.
1149 (tdesc_data_cleanup): Don't declare.
1150 * target-descriptions.c (tdesc_data_alloc): Return a
1151 tdesc_arch_data_up.
1152 (tdesc_arch_data_deleter::operator()): Rename from
1153 tdesc_data_cleanup. Change argument type.
1154 (tdesc_use_registers): Change early_data to an rvalue reference.
1155 (tdesc_use_registers): Don't use delete.
1156 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1157 * s390-tdep.c (s390_gdbarch_init): Update.
1158 * rx-tdep.c (rx_gdbarch_init): Update.
1159 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1160 * riscv-tdep.c (riscv_gdbarch_init): Update.
1161 * or1k-tdep.c (or1k_gdbarch_init): Update.
1162 * nios2-tdep.c (nios2_gdbarch_init): Update.
1163 * nds32-tdep.c (nds32_gdbarch_init): Update.
1164 * mips-tdep.c (mips_gdbarch_init): Update.
1165 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1166 * m68k-tdep.c (m68k_gdbarch_init): Update.
1167 * i386-tdep.c (i386_gdbarch_init): Update.
1168 * arm-tdep.c (arm_gdbarch_init): Update.
1169 * arc-tdep.c (arc_tdesc_init): Update.
1170 (arc_gdbarch_init): Update.
1171 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1172
0363df3d
HD
11732020-09-17 Hannes Domani <ssbssa@yahoo.de>
1174
1175 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1176 for WOW64 processes.
1177
280a9412
TT
11782020-09-17 Tom Tromey <tom@tromey.com>
1179
1180 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1181
6108fd18
TT
11822020-09-17 Tom Tromey <tom@tromey.com>
1183
1184 * value.c (preserve_values): Update.
1185 * python/py-type.c (save_objfile_types): Update.
1186 * guile/scm-type.c (save_objfile_types): Update.
1187 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1188 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1189 * compile/compile-object-run.c (compile_object_run): Update.
1190
fa9b1164
TT
11912020-09-17 Tom Tromey <tom@tromey.com>
1192
1193 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1194 Remove.
1195 <m_table>: Now htab_up.
1196 * typeprint.c (typedef_hash_table::recursively_update)
1197 (typedef_hash_table::add_template_parameters)
1198 (typedef_hash_table::typedef_hash_table): Update.
1199 (typedef_hash_table::~typedef_hash_table): Remove.
1200 (typedef_hash_table::typedef_hash_table)
1201 (typedef_hash_table::find_global_typedef)
1202 (typedef_hash_table::find_typedef): Update.
1203
eb53f105
TT
12042020-09-17 Tom Tromey <tom@tromey.com>
1205
1206 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1207
7a8a5d47
TT
12082020-09-17 Tom Tromey <tom@tromey.com>
1209
1210 * linespec.c (class decode_compound_collector)
1211 <~decode_compound_collector>: Remove.
1212 <m_unique_syms>: Now htab_up.
1213 (decode_compound_collector::operator ()): Update.
1214 (class symtab_collector) <~symtab_collector>: Remove.
1215 <m_symtab_table>: Now htab_up.
1216 (symtab_collector::operator ()): Update.
1217
99032cfc
TT
12182020-09-17 Tom Tromey <tom@tromey.com>
1219
1220 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1221 (filename_seen_cache::clear): Update.
1222 (~filename_seen_cache): Remove.
1223 (filename_seen_cache::seen): Update.
1224 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1225 htab_up.
1226 <~filename_seen_cache>: Remove.
1227 <traverse>: Update.
1228
32580f6d
TT
12292020-09-17 Tom Tromey <tom@tromey.com>
1230
1231 * completer.c (completion_tracker::discard_completions)
1232 (completion_tracker::~completion_tracker)
1233 (completion_tracker::maybe_add_completion)
1234 (completion_tracker::remove_completion)
1235 (completion_tracker::recompute_lowest_common_denominator)
1236 (completion_tracker::build_completion_result): Update.
1237 * completer.h (class completion_tracker) <have_completions>:
1238 Update.
1239 <m_entries_hash>: Now htab_up.
1240
c1fb9836
TT
12412020-09-17 Tom Tromey <tom@tromey.com>
1242
1243 * breakpoint.c (ambiguous_names_p): Use htab_up.
1244
88f07206
TT
12452020-09-17 Tom Tromey <tom@tromey.com>
1246
1247 * auto-load.c (struct auto_load_pspace_info)
1248 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1249 <loaded_script_files, loaded_script_texts>: Change type to
1250 htab_up.
1251 (~auto_load_pspace_info) Remove.
1252 (init_loaded_scripts_info, maybe_add_script_file)
1253 (maybe_add_script_text, auto_load_info_scripts): Update.
1254
9519b2ee
TT
12552020-09-17 Tom Tromey <tromey@adacore.com>
1256
1257 * c-exp.y (name_obstack): Now static.
1258
d2cd4113
CC
12592020-09-17 Chungyi Chi <demonic@csie.io>
1260
1261 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1262
b650a282
SM
12632020-09-16 Simon Marchi <simon.marchi@efficios.com>
1264
1265 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1266 (add_solib_catchpoint): Likewise.
1267 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1268 to bool.
1269 (add_solib_catchpoint): Change int parameter/variable to bool.
1270 (catch_load_or_unload): Likewise.
1271 (init_catchpoint): Likewise.
1272 (create_fork_vfork_event_catchpoint): Likewise.
1273 (catch_fork_command_1): Likewise.
1274 (catch_exec_command_1): Likewise.
1275
4d0bcfcf
SM
12762020-09-16 Simon Marchi <simon.marchi@efficios.com>
1277
1278 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1279 Change instance_flags to m_instance_flags.
1280
fe830662
TT
12812020-09-16 Tom Tromey <tromey@adacore.com>
1282
1283 PR gdb/26598:
1284 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1285
fe5ddfc3
JB
12862020-09-16 John Baldwin <jhb@FreeBSD.org>
1287
1288 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1289 PL_FLAG_EXEC.
1290 (fbsd_nat_target::insert_exec_catchpoint)
1291 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1292 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1293 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1294
e911c666
JB
12952020-09-16 John Baldwin <jhb@FreeBSD.org>
1296
1297 * configure.ac: Remove check for kinfo_getvmmap().
1298 * configure, config.in: Regenerate.
1299 * fbsd-nat.c (fbsd_read_mapping): Remove
1300 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1301 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1302 kinfo_get_vmmap() are always present.
1303
1f17d372
JB
13042020-09-16 John Baldwin <jhb@FreeBSD.org>
1305
1306 * fbsd-nat.c: Always include support for
1307 TARGET_OBJECT_SIGNAL_INFO.
1308
bcb1da7f
JB
13092020-09-16 John Baldwin <jhb@FreeBSD.org>
1310
1311 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1312 sysctl and remove procfs fallback.
1313
5515f729
JB
13142020-09-16 John Baldwin <jhb@FreeBSD.org>
1315
1316 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1317 * fbsd-nat.h: Likewise.
1318
da1df1db
TBA
13192020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1320
1321 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1322 argument.
1323
0e25e767
AB
13242020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1325
1326 * ada-lang.c (ada_language_data): Delete.
1327 (ada_language): Remove references to ada_language_data.
1328 * c-lang.c (c_language_data): Delete.
1329 (c_language): Remove references to c_language_data.
1330 (cplus_language_data): Delete.
1331 (cplus_language): Remove references to cplus_language_data.
1332 (asm_language_data): Delete.
1333 (asm_language): Remove references to asm_language_data.
1334 (minimal_language_data): Delete.
1335 (minimal_language): Remove references to minimal_language_data.
1336 * d-lang.c (d_language_data): Delete.
1337 (d_language): Remove references to d_language_data.
1338 * f-lang.c (f_language_data): Delete.
1339 (f_language): Remove references to f_language_data.
1340 * go-lang.c (go_language_data): Delete.
1341 (go_language): Remove references to go_language_data.
1342 * language.c (unknown_language_data): Delete.
1343 (unknown_language): Remove references to unknown_language_data.
1344 (auto_language_data): Delete.
1345 (auto_language): Remove references to auto_language_data.
1346 * language.h (language_data): Delete struct.
1347 (language_defn): No longer inherit from language_data.
1348 * m2-lang.c (m2_language_data): Delete.
1349 (m2_language): Remove references to m2_language_data.
1350 * objc-lang.c (objc_language_data): Delete.
1351 (objc_language): Remove references to objc_language_data.
1352 * opencl-lang.c (opencl_language_data): Delete.
1353 (opencl_language): Remove references to opencl_language_data.
1354 * p-lang.c (pascal_language_data): Delete.
1355 (pascal_language): Remove references to pascal_language_data.
1356 * rust-lang.c (rust_language_data): Delete.
1357 (rust_language): Remove references to rust_language_data.
1358
b7c6e27d
AB
13592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1360
1361 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1362 initializer.
1363 (ada_language::opcode_print_table): New member function.
1364 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1365 (c_language::opcode_print_table): New member function.
1366 (cplus_language_data): Remove la_op_print_tab initializer.
1367 (cplus_language::opcode_print_table): New member function.
1368 (asm_language_data): Remove la_op_print_tab initializer.
1369 (asm_language::opcode_print_table): New member function.
1370 (minimal_language_data): Remove la_op_print_tab initializer.
1371 (minimal_language::opcode_print_table): New member function.
1372 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1373 (d_language::opcode_print_table): New member function.
1374 * expprint.c (print_subexp_standard): Update call to
1375 opcode_print_table.
1376 (op_string): Likewise.
1377 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1378 (f_language::opcode_print_table): New member function.
1379 * go-lang.c (go_language_data): Remove la_op_print_tab
1380 initializer.
1381 (go_language::opcode_print_table): New member function.
1382 * language.c (unknown_language_data): Remove la_op_print_tab
1383 initializer.
1384 (unknown_language::opcode_print_table): New member function.
1385 (auto_language_data): Remove la_op_print_tab initializer.
1386 (auto_language::opcode_print_table): New member function.
1387 * language.h (language_data): Remove la_op_print_tab field.
1388 (language_defn::opcode_print_table): Declare new member function.
1389 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1390 initializer.
1391 (m2_language::opcode_print_table): New member function.
1392 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1393 initializer.
1394 (objc_language::opcode_print_table): New member function.
1395 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1396 initializer.
1397 (opencl_language::opcode_print_table): New member function.
1398 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1399 initializer.
1400 (pascal_language::opcode_print_table): New member function.
1401 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1402 initializer.
1403 (rust_language::opcode_print_table): New member function.
1404
5aba6ebe
AB
14052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1406
1407 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1408 (ada_language::expression_ops): New member function.
1409 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1410 (c_language::expression_ops): New member function.
1411 (cplus_language_data): Remove la_exp_desc initializer.
1412 (cplus_language::expression_ops): New member function.
1413 (asm_language_data): Remove la_exp_desc initializer.
1414 (asm_language::expression_ops): New member function.
1415 (minimal_language_data): Remove la_exp_desc initializer.
1416 (minimal_language::expression_ops): New member function.
1417 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1418 (d_language::expression_ops): New member function.
1419 * eval.c (evaluate_subexp): Update call to expression_ops.
1420 * expprint.c (print_subexp): Likewise.
1421 (op_name): Likewise.
1422 (dump_subexp_body): Likewise.
1423 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1424 (f_language::expression_ops): New member function.
1425 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1426 (go_language::expression_ops): New member function.
1427 * language.c (language_defn::expression_ops): New function.
1428 (unknown_language_data): Remove la_exp_desc initializer.
1429 (auto_language_data): Likewise.
1430 * language.h (language_data): Remove la_exp_desc field.
1431 (language_defn::expression_ops): Declare new member function.
1432 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1433 (m2_language::expression_ops): New member function.
1434 * objc-lang.c (objc_language_data): Remove la_exp_desc
1435 initializer.
1436 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1437 initializer.
1438 (opencl_language::expression_ops): New member function.
1439 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1440 * parse.c (operator_length): Update call to expression_ops.
1441 (exp_iterate): Likewise.
1442 * rust-lang.c (rust_language_data): Remove la_exp_desc
1443 initializer.
1444 (ruse_language::expression_ops): New member function.
1445
b63a3f3f
AB
14462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1447
1448 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1449 initializer.
1450 (ada_language::varobj_ops): New member function.
1451 * c-lang.c (c_language_data): Remove la_varobj_ops
1452 initializer.
1453 (cplus_language_data): Likewise.
1454 (cplus_language::varobj_ops): New member function.
1455 (asm_language_data): Remove la_varobj_ops initializer.
1456 (minimal_language_data): Likewise.
1457 * d-lang.c (d_language_data): Likewise.
1458 * f-lang.c (f_language_data): Likewise.
1459 * go-lang.c (go_language_data): Likewise.
1460 * language.c (language_defn::varobj_ops): New function.
1461 (unknown_language_data): Remove la_varobj_ops
1462 initializer.
1463 (auto_language_data): Likewise.
1464 * language.h (language_data): Remove la_varobj_ops field.
1465 (language_defn::varobj_ops): Declare new member function.
1466 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1467 * objc-lang.c (objc_language_data): Likewise.
1468 * opencl-lang.c (opencl_language_data): Likewise.
1469 * p-lang.c (pascal_language_data): Likewise.
1470 * rust-lang.c (rust_language_data): Likewise.
1471 * varobj.c (varobj_create): Update call to varobj_ops.
1472 * varobj.h (default_varobj_ops): Delete define.
1473
1ac14a04
AB
14742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1475
1476 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1477 initializer.
1478 * c-lang.c (c_language_data): Likewise.
1479 (c_language::macro_expansion): New member function.
1480 (cplus_language_data): Likewise.
1481 (cplus_language::macro_expansion): New member function.
1482 (asm_language_data): Likewise.
1483 (asm_language::macro_expansion): New member function.
1484 (minimal_language_data): Likewise.
1485 (minimal_language::macro_expansion): New member function.
1486 * d-lang.c (d_language_data): Remove la_macro_expansion
1487 initializer.
1488 * f-lang.c (f_language_data): Likewise.
1489 * go-lang.c (go_language_data): Likewise.
1490 * language.c (unknown_language_data): Likewise.
1491 (auto_language_data): Likewise.
1492 * language.h (language_data): Remove la_macro_expansion field.
1493 (language_defn::macro_expansion): New member function.
1494 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1495 initializer.
1496 * objc-lang.c (objc_language_data): Likewise.
1497 (objc_language::macro_expansion): New member function.
1498 * opencl-lang.c (opencl_language_data): Likewise.
1499 (opencl_language::macro_expansion): New member function.
1500 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1501 initializer.
1502 * rust-lang.c (rust_language_data): Likewise.
1503 * symtab.c (default_collect_symbol_completion_matches_break_on):
1504 Update call to macro_expansion.
1505
3a3440fb
AB
15062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1507
1508 * ada-lang.c (ada_language_data): Remove la_array_ordering
1509 initializer.
1510 * c-lang.c (c_language_data): Likewise.
1511 (cplus_language_data): Likewise.
1512 (asm_language_data): Likewise.
1513 (minimal_language_data): Likewise.
1514 * d-lang.c (d_language_data): Likewise.
1515 * dwarf2/read.c (read_array_order): Update for call to
1516 array_ordering.
1517 * f-lang.c (f_language_data): Remove la_array_ordering
1518 initializer.
1519 (f_language::array_ordering): New member function.
1520 * go-lang.c (go_language_data): Remove la_array_ordering
1521 initializer.
1522 * language.c (unknown_language_data): Likewise.
1523 (auto_language_data): Likewise.
1524 * language.h (language_data): Delete la_array_ordering field.
1525 (language_defn::array_ordering): New member function.
1526 * m2-lang.c (m2_language_data): Remove la_array_ordering
1527 initializer.
1528 * objc-lang.c (objc_language_data): Likewise.
1529 * opencl-lang.c (opencl_language_data): Likewise.
1530 * p-lang.c (pascal_language_data): Likewise.
1531 * rust-lang.c (rust_language_data): Likewise.
1532
0d201fa4
AB
15332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1534
1535 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1536 initializer.
1537 * c-lang.c (c_language_data): Likewise.
1538 (cplus_language_data): Likewise.
1539 (asm_language_data): Likewise.
1540 (minimal_language_data): Likewise.
1541 * d-lang.c (d_language_data): Likewise.
1542 * f-lang.c (f_language_data): Likewise.
1543 (f_language::case_sensitivity): New member function.
1544 * go-lang.c (go_language_data): Remove la_case_sensitivity
1545 initializer.
1546 * language.c (enum case_mode): Moved here from language.h.
1547 (case_mode): Make static.
1548 (show_case_command): Update for case_sensitivity being a method.
1549 (set_case_command): Likewise.
1550 (set_range_case): Likewise.
1551 (unknown_language_data): Remove la_case_sensitivity initializer.
1552 (auto_language_data): Likewise.
1553 * language.h (case_mode): Delete, move enum declaration to
1554 language.c.
1555 (language_data): Delete la_case_sensitivity field.
1556 (language_defn::case_sensitivity): New member function.
1557 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1558 initializer.
1559 * objc-lang.c (objc_language_data): Likewise.
1560 * opencl-lang.c (opencl_language_data): Likewise.
1561 * p-lang.c (pascal_language_data): Likewise.
1562 * rust-lang.c (rust_language_data): Likewise.
1563
efdf6a73
AB
15642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1565
1566 * ada-lang.c (ada_language_data): Remove la_range_check
1567 initializer.
1568 * c-lang.c (c_language_data): Likewise.
1569 (cplus_language_data): Likewise.
1570 (asm_language_data): Likewise.
1571 (minimal_language_data): Likewise.
1572 * d-lang.c (d_language_data): Likewise.
1573 * f-lang.c (f_language_data): Likewise.
1574 (f_language::range_checking_on_by_default): New member function.
1575 * go-lang.c (go_language_data): Remove la_range_check initializer.
1576 * language.c (enum range_mode): Moved here from language.h.
1577 (range_mode): Made static.
1578 (show_range_command): Update to use
1579 range_checking_on_by_default.
1580 (set_range_command): Likewise.
1581 (set_range_case): Likewise.
1582 (unknown_language_data): Remove la_range_check initializer.
1583 (auto_language_data): Likewise.
1584 * language.h (range_mode): Delete. Enum definition moved to
1585 language.c.
1586 (language_data): Remove la_range_check field.
1587 (language_defn::range_checking_on_by_default): New member
1588 function.
1589 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1590 (m2_language::range_checking_on_by_default): New member function.
1591 * objc-lang.c (objc_language_data): Remove la_range_check
1592 initializer.
1593 * opencl-lang.c (opencl_language_data): Likewise.
1594 * p-lang.c (pascal_language_data): Likewise.
1595 (pascal_language::range_checking_on_by_default): New member
1596 function.
1597 * rust-lang.c (rust_language_data): Remove la_range_check
1598 initializer.
1599 (rust_language::range_checking_on_by_default): New member
1600 function.
1601
bf92aec5
AB
16022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1603
1604 * dwarf2/read.c (dwarf2_physname): Remove special case for
1605 language_go.
1606 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1607 member function.
1608
d3355e4d
AB
16092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1610
1611 * ada-lang.c (ada_language_data): Remove
1612 la_store_sym_names_in_linkage_form_p initializer.
1613 (ada_language::store_sym_names_in_linkage_form_p): New member
1614 function.
1615 * c-lang.c (c_language_data): Remove
1616 la_store_sym_names_in_linkage_form_p initializer.
1617 (c_language::store_sym_names_in_linkage_form_p): New member
1618 function.
1619 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1620 initializer.
1621 (asm_language_data): Likewise.
1622 (asm_language::store_sym_names_in_linkage_form_p): New member
1623 function.
1624 (minimal_language_data): Remove
1625 la_store_sym_names_in_linkage_form_p initializer.
1626 (minimal_language::store_sym_names_in_linkage_form_p): New member
1627 function.
1628 * d-lang.c (d_language_data): Remove
1629 la_store_sym_names_in_linkage_form_p initializer.
1630 * dwarf2/read.c (dwarf2_physname): Update call to
1631 store_sym_names_in_linkage_form_p.
1632 * f-lang.c (f_language_data): Remove
1633 la_store_sym_names_in_linkage_form_p initializer.
1634 * go-lang.c (go_language_data): Remove
1635 la_store_sym_names_in_linkage_form_p initializer.
1636 * language.c (unknown_language_data): Remove
1637 la_store_sym_names_in_linkage_form_p initializer.
1638 (unknown_language::store_sym_names_in_linkage_form_p): New member
1639 function.
1640 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1641 initializer.
1642 (auto_language::store_sym_names_in_linkage_form_p): New member
1643 function.
1644 * language.h (language_data): Remove
1645 la_store_sym_names_in_linkage_form_p member variable.
1646 (language_defn::store_sym_names_in_linkage_form_p): New member
1647 function.
1648 * m2-lang.c (m2_language_data): Remove
1649 la_store_sym_names_in_linkage_form_p initializer.
1650 * objc-lang.c (objc_language_data): Likewise.
1651 * opencl-lang.c (opencl_language_data): Likewise.
1652 * p-lang.c (pascal_language_data): Likewise.
1653 * rust-lang.c (rust_language_data): Likewise.
1654
22c12a6c
AB
16552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1656
1657 * ada-lang.c (ada_language_data): Remove string_lower_bound
1658 initializer.
1659 * c-lang.c (c_language_data): Likewise.
1660 (cplus_language_data): Likewise.
1661 (asm_language_data): Likewise.
1662 (minimal_language_data): Likewise.
1663 * d-lang.c (d_language_data): Likewise.
1664 * f-lang.c (f_language_data): Likewise.
1665 * go-lang.c (go_language_data): Likewise.
1666 * language.c (unknown_language_data): Likewise.
1667 (auto_language_data): Likewise.
1668 * language.h (language_data): Remove string_lower_bound field.
1669 (language_defn::string_lower_bound): New member function.
1670 * m2-lang.c (m2_language_data): Remove string_lower_bound
1671 initializer.
1672 (m2_language::string_lower_bound): New member function.
1673 * objc-lang.c (objc_language_data): Remove string_lower_bound
1674 initializer.
1675 * opencl-lang.c (opencl_language_data): Likewise.
1676 * p-lang.c (pascal_language_data): Likewise.
1677 * rust-lang.c (rust_language_data): Likewise.
1678 * valops.c (value_cstring): Update call to string_lower_bound.
1679 (value_string): Likewise.
1680 * value.c (allocate_repeated_value): Likewise.
1681
1c236ddd
AB
16822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1683
1684 * valops.c (value_repeat): Fix incorrect argument name in comment.
1685
67bd3fd5
AB
16862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1687
1688 * ada-lang.c (ada_language_data): Remove c_style_arrays
1689 initializer.
1690 (ada_language::c_style_arrays_p): New member fuction.
1691 * c-lang.c (c_language_data): Remove c_style_arrays
1692 initializer.
1693 (cplus_language_data): Likewise.
1694 (asm_language_data): Likewise.
1695 (minimal_language_data): Likewise.
1696 * d-lang.c (d_language_data): Likewise.
1697 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1698 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1699 (f_language::c_style_arrays_p): New member function.
1700 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1701 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1702 * language.c (unknown_language_data): Remove c_style_arrays
1703 initializer.
1704 (auto_language_data): Likewise.
1705 * language.h (language_data): Remove c_style_arrays field.
1706 (language_defn::c_style_arrays_p): New member function.
1707 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1708 (m2_language::c_style_arrays_p): New member function.
1709 * objc-lang.c (objc_language_data): Remove c_style_arrays
1710 initializer.
1711 * opencl-lang.c (opencl_language_data): Likewise.
1712 * p-lang.c (pascal_language_data): Likewise.
1713 * rust-lang.c (rust_language_data): Likewise.
1714 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1715 and update local variable to a bool.
1716 * valops.c (value_cast): Update call to c_style_arrays_p.
1717 (value_array): Likewise.
1718 * value.c (coerce_array): Likewise.
1719
85967615
AB
17202020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1721
1722 * ada-lang.c (ada_language_data): Remove la_language initializer.
1723 * c-lang.c (c_language_data): Likewise.
1724 (cplus_language_data): Likewise.
1725 (asm_language_data): Likewise.
1726 (minimal_language_data): Likewise.
1727 * d-lang.c (d_language_data): Likewise.
1728 * f-lang.c (f_language_data): Likewise.
1729 * go-lang.c (go_language_data): Likewise.
1730 * language.c (unknown_language_data): Likewise.
1731 (auto_language_data): Likewise.
1732 * language.h (language_data): Remove la_language field.
1733 (language_defn::language_defn): Initialise la_language field.
1734 (language_defn::la_language): New member variable.
1735 * m2-lang.c (m2_language_data): Remove la_language field.
1736 * objc-lang.c (objc_language_data): Likewise.
1737 * opencl-lang.c (opencl_language_data): Likewise.
1738 * p-lang.c (pascal_language_data): Likewise.
1739 * rust-lang.c (rust_language_data): Likewise.
1740
e171d6f1
AB
17412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1742
1743 * ada-lang.c (ada_extensions): Delete, moved into
1744 ada_language::filename_extensions.
1745 (ada_language_data): Remove la_filename_extensions initializer.
1746 (ada_language::filename_extensions): New member function.
1747 * c-lang.c (c_extensions): Delete, moved into
1748 c_language::filename_extensions.
1749 (c_language_data): Remove la_filename_extensions initializer.
1750 (c_language::filename_extensions): New member function.
1751 (cplus_extensions): Delete, moved into
1752 cplus_language::filename_extensions.
1753 (cplus_language_data): Remove la_filename_extensions initializer.
1754 (cplus_language::filename_extensions): New member function.
1755 (asm_extensions): Delete, moved into
1756 asm_language::filename_extensions.
1757 (asm_language_data): Remove la_filename_extensions initializer.
1758 (asm_language::filename_extensions): New member function.
1759 (minimal_language_data): Remove la_filename_extensions
1760 initializer.
1761 * d-lang.c (d_extensions): Delete, moved into
1762 d_language::filename_extensions.
1763 (d_language_data): Remove la_filename_extensions initializer.
1764 (d_language::filename_extensions): New member function.
1765 * f-lang.c (f_extensions): Delete, moved into
1766 f_language::filename_extensions.
1767 (f_language_data): Remove la_filename_extensions initializer.
1768 (f_language::filename_extensions): New member function.
1769 * go-lang.c (go_language_data): Remove la_filename_extensions
1770 initializer.
1771 * language.c (add_set_language_command): Update now that
1772 filename_extensions returns a vector.
1773 (unknown_language_data): Remove la_filename_extensions
1774 initializer.
1775 (auto_language_data): Likewise.
1776 * language.h (language_data): Remove la_filename_extensions field.
1777 (language_defn::filename_extensions): New member function.
1778 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1779 initializer.
1780 * objc-lang.c (objc_extensions): Delete, moved into
1781 objc_language::filename_extensions.
1782 (objc_language_data): Remove la_filename_extensions initializer.
1783 (objc_language::filename_extensions): New member function.
1784 * opencl-lang.c (opencl_language_data): Remove
1785 la_filename_extensions initializer.
1786 * p-lang.c (pascal_extensions): Delete, moved into
1787 pascal_language::filename_extensions.
1788 (pascal_language_data): Remove la_filename_extensions initializer.
1789 (pascal_language::filename_extensions): New member function.
1790 * rust-lang.c (rust_extensions): Delete, moved into
1791 rust_language::filename_extensions.
1792 (rust_language_data): Remove la_filename_extensions initializer.
1793 (rust_language::filename_extensions): New member function.
1794 * symfile.c (add_filename_language): Add new assert.
1795
6f7664a9
AB
17962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1797
1798 * ada-lang.c (ada_language_data): Remove la_name and
1799 la_natural_name initializers.
1800 (ada_language::name): New member function.
1801 (ada_language::natural_name): New member function.
1802 * c-lang.c (c_language_data): Remove la_name and
1803 la_natural_name initializers.
1804 (c_language::name): New member function.
1805 (c_language::natural_name): New member function.
1806 (cplus_language_data): Remove la_name and
1807 la_natural_name initializers.
1808 (cplus_language::name): New member function.
1809 (cplus_language::natural_name): New member function.
1810 (asm_language_data): Remove la_name and
1811 la_natural_name initializers.
1812 (asm_language::name): New member function.
1813 (asm_language::natural_name): New member function.
1814 (minimal_language_data): Remove la_name and
1815 la_natural_name initializers.
1816 (minimal_language::name): New member function.
1817 (minimal_language::natural_name): New member function.
1818 * compile/compile.c (compile_to_object): Update call to
1819 lanugage_defn::name.
1820 * d-lang.c (d_language_data): Remove la_name and
1821 la_natural_name initializers.
1822 (d_language::name): New member function.
1823 (d_language::natural_name): New member function.
1824 * expprint.c (print_subexp_standard): Update call to
1825 language_defn::name.
1826 (dump_raw_expression): Likewise
1827 (dump_prefix_expression): Likewise.
1828 * f-lang.c (f_language_data): Remove la_name and
1829 la_natural_name initializers.
1830 (f_language::name): New member function.
1831 (f_language::natural_name): New member function.
1832 * go-lang.c (go_language_data): Remove la_name and
1833 la_natural_name initializers.
1834 (go_language::name): New member function.
1835 (go_language::natural_name): New member function.
1836 * language.c (show_language_command): Update call to
1837 language_defn::name.
1838 (set_language_command): Likewise.
1839 (language_enum): Likewise.
1840 (language_str): Likewise.
1841 (add_set_language_command): Likewise, use
1842 language_defn::natural_name in the doc string.
1843 (unknown_language_data): Remove la_name and
1844 la_natural_name initializers.
1845 (unknown_language::name): New member function.
1846 (unknown_language::natural_name): New member function.
1847 (auto_language_data): Remove la_name and
1848 la_natural_name initializers.
1849 (auto_language::name): New member function.
1850 (auto_language::natural_name): New member function.
1851 (language_lookup_primitive_type_as_symbol): Update call to
1852 language_defn::name.
1853 * language.h (language_data): Remove la_name and la_natural_name
1854 member variables.
1855 (language_defn::name): New member function.
1856 (language_defn::natural_name): New member function.
1857 * m2-lang.c (m2_language_data): Remove la_name and
1858 la_natural_name initializers.
1859 (m2_language::name): New member function.
1860 (m2_language::natural_name): New member function.
1861 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1862 language_defn::natural_name.
1863 * objc-lang.c (objc_language_data): Remove la_name and
1864 la_natural_name initializers.
1865 (objc_language::name): New member function.
1866 (objc_language::natural_name): New member function.
1867 * opencl-lang.c (opencl_language_data): Remove la_name and
1868 la_natural_name initializers.
1869 (opencl_language::name): New member function.
1870 (opencl_language::natural_name): New member function.
1871 * p-lang.c (pascal_language_data): Remove la_name and
1872 la_natural_name initializers.
1873 (pascal_language::name): New member function.
1874 (pascal_language::natural_name): New member function.
1875 * rust-lang.c (rust_language_data): Remove la_name and
1876 la_natural_name initializers.
1877 (rust_language::name): New member function.
1878 (rust_language::natural_name): New member function.
1879 * symtab.c (lookup_language_this): Update call to
1880 language_defn::name.
1881
5bae7c4e
AB
18822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1883
1884 * ada-lang.c (ada_language_data): Remove la_name_of_this
1885 initializer.
1886 * ax-gdb.c (gen_expr): Update call to name_of_this.
1887 * c-exp.y (classify_name): Likewise.
1888 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1889 (cplus_language_data): Likewise.
1890 (cplus_language::name_of_this): New member function.
1891 (asm_language_data): Remove la_name_of_this initializer.
1892 (minimal_language_data): Likewise.
1893 * d-lang.c (d_language_data): Likewise.
1894 (d_language::name_of_this): New member function.
1895 * expprint.c (print_subexp_standard): Update call to name_of_this.
1896 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1897 * go-lang.c (go_language_data): Likewise.
1898 * language.c (unknown_language_data): Likewise.
1899 (unknown_language::name_of_this): New member function.
1900 (auto_language_data): Remove la_name_of_this initializer.
1901 (auto_language::name_of_this): New member function.
1902 * language.h (language_data): Delete la_name_of_this member
1903 variable.
1904 (language_defn::name_of_this): New member function.
1905 * m2-lang.c (m2_language_data): Remove la_name_of_this
1906 initializer.
1907 * objc-lang.c (objc_language_data): Likewise.
1908 (objc_language::name_of_this): New member function.
1909 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1910 initializer.
1911 * p-lang.c (pascal_language_data): Likewise.
1912 (pascal_language::name_of_this): New member function.
1913 * rust-lang.c (rust_language_data): Remove la_name_of_this
1914 initializer.
1915 * symtab.c (lookup_language_this): Update call to name_of_this.
1916 (lookup_symbol_aux): Likewise.
1917 * valops.c (value_of_this): Likewise.
1918
22e3f3ed
AB
19192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1920
1921 * ada-lang.c (ada_language_data): Remove
1922 la_struct_too_deep_ellipsis initializer.
1923 (ada_language::struct_too_deep_ellipsis): New member function.
1924 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1925 initializer.
1926 (cplus_language_data): Likewise.
1927 (asm_language_data): Likewise.
1928 (minimal_language_data): Likewise.
1929 * cp-valprint.c (cp_print_value): Update call to
1930 struct_too_deep_ellipsis.
1931 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1932 initializer.
1933 * f-lang.c (f_language_data): Likewise.
1934 (f_language::struct_too_deep_ellipsis): New member function.
1935 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1936 initializer.
1937 * language.c (unknown_language_data): Likewise.
1938 (auto_language_data): Likewise.
1939 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1940 member variable.
1941 (language_defn::struct_too_deep_ellipsis): New member function.
1942 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1943 initializer.Q
1944 * objc-lang.c (objc_language_data): Likewise.
1945 * opencl-lang.c (opencl_language_data): Likewise.
1946 * p-lang.c (pascal_language_data): Likewise.
1947 * rust-lang.c (rust_language_data): Likewise.
1948 * valprint.c (val_print_check_max_depth): Update call to
1949 struct_too_deep_ellipsis.
1950
ed29e1c7
FW
19512020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1952
1953 * MAINTAINERS (Write After Approval): Add myself.
1954
12d8f940
TT
19552020-09-15 Tom Tromey <tom@tromey.com>
1956
1957 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1958 Remove.
1959
6b5a7bc7
TT
19602020-09-15 Tom Tromey <tom@tromey.com>
1961
1962 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1963 and TYPE_CODE_METHODPTR cases.
1964 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1965 (c_value_print_inner): Update.
1966 * valprint.c (generic_value_print_memberptr): New function, from
1967 c_value_print_memberptr.
1968 (generic_value_print): Use it. Call cplus_print_method_ptr.
1969
47f0e2ff
TT
19702020-09-15 Tom Tromey <tromey@adacore.com>
1971
1972 * python/python-internal.h (PyInt_FromLong): Remove define.
1973 * python/py-value.c (convert_value_from_python): Use
1974 gdb_py_object_from_longest.
1975 * python/py-type.c (typy_get_code): Use
1976 gdb_py_object_from_longest.
1977 * python/py-symtab.c (salpy_get_line): Use
1978 gdb_py_object_from_longest.
1979 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1980 gdb_py_object_from_longest.
1981 * python/py-record.c (recpy_gap_reason_code): Use
1982 gdb_py_object_from_longest.
1983 * python/py-record-btrace.c (recpy_bt_insn_size)
1984 (recpy_bt_func_level, btpy_list_count): Use
1985 gdb_py_object_from_longest.
1986 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1987 gdb_py_object_from_longest. Fix error handling.
1988 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1989 gdb_py_object_from_longest.
1990 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1991 gdb_py_object_from_longest.
1992 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1993 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1994 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1995
512116ce
TT
19962020-09-15 Tom Tromey <tromey@adacore.com>
1997
1998 * python/python.c (gdbpy_parameter_value): Use
1999 gdb_py_object_from_ulongest.
2000
4ab1029c
TT
20012020-09-15 Tom Tromey <tromey@adacore.com>
2002
2003 * python/py-infevents.c (create_register_changed_event_object):
2004 Use gdb_py_object_from_longest.
2005 * python/py-exitedevent.c (create_exited_event_object): Use
2006 gdb_py_object_from_longest.
2007
062534d4
TT
20082020-09-15 Tom Tromey <tromey@adacore.com>
2009
2010 * python/python.c (gdbpy_parameter_value): Use
2011 gdb_py_object_from_longest.
2012 * python/py-type.c (convert_field, typy_range): Use
2013 gdb_py_object_from_longest.
2014 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2015 gdb_py_object_from_longest.
2016 * python/py-lazy-string.c (stpy_get_length): Use
2017 gdb_py_object_from_longest.
2018 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2019 gdb_py_object_from_longest.
2020 * python/py-infevents.c (create_memory_changed_event_object): Use
2021 gdb_py_object_from_longest.
2022 * python/py-inferior.c (infpy_get_num): Use
2023 gdb_py_object_from_longest.
2024 (infpy_get_pid): Likewise.
2025
d1cab987
TT
20262020-09-15 Tom Tromey <tromey@adacore.com>
2027
2028 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2029 defines.
2030 * python/py-value.c (valpy_long): Use
2031 gdb_py_object_from_ulongest.
2032 * python/py-symtab.c (salpy_get_pc): Use
2033 gdb_py_object_from_ulongest.
2034 (salpy_get_last): Likewise.
2035 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2036 gdb_py_object_from_ulongest.
2037 * python/py-lazy-string.c (stpy_get_address): Use
2038 gdb_py_object_from_ulongest.
2039 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2040 * python/py-arch.c (archpy_disassemble): Use
2041 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2042 error handling.
2043
4bde49dc
TT
20442020-09-15 Tom Tromey <tromey@adacore.com>
2045
2046 * python/python-internal.h (gdb_py_long_from_longest): Remove
2047 defines.
2048 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2049 * python/py-type.c (convert_field, typy_get_sizeof): Use
2050 gdb_py_object_from_longest.
2051 * python/py-record-btrace.c (btpy_list_index): Use
2052 gdb_py_object_from_longest.
2053
37431074
TT
20542020-09-15 Tom Tromey <tromey@adacore.com>
2055
2056 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2057 * python/py-record.c (recpy_element_number): Use
2058 gdb_py_object_from_longest.
2059 (recpy_gap_number): Likewise.
2060
cbe25684
TT
20612020-09-15 Tom Tromey <tromey@adacore.com>
2062
2063 * top.c (ui::ui): Update.
2064 (highest_ui_num): Remove.
2065 * top.h (struct ui) <num>: Remove.
2066
db92ac45
TT
20672020-09-15 Tom Tromey <tromey@adacore.com>
2068
2069 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2070 * ui-style.c (ansi_regex_text): Now array.
2071 * rust-exp.y (number_regex_text): Now array.
2072 * linespec.c (linespec_quote_characters): Now array.
2073 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2074 Now arrays.
2075
d2b31b67
SM
20762020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2077
2078 * debuginfod-support.c (debuginfod_client_deleter): New.
2079 (debuginfod_client_up): New.
2080 (debuginfod_init): Return debuginfod_client_up.
2081 (debuginfod_source_query): Adjust.
2082 (debuginfod_debuginfo_query): Adjust.
2083
3246bd8e
SM
20842020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2085
2086 * debuginfod-support.c (debuginfod_source_query): Use
2087 make_unique_xstrdup.
2088
10242f36
SM
20892020-09-14 Simon Marchi <simon.marchi@efficios.com>
2090
2091 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2092 with `type::instance_flags`.
2093
e1044e6a
MM
20942020-09-14 Michael Mullin <masmullin@gmail.com>
2095
2096 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2097 Remove baton parameter.
2098
04902b09
PA
20992020-09-14 Pedro Alves <pedro@palves.net>
2100
2101 * Makefile.in (SELFTESTS_SRCS): Add
2102 unittests/enum-flags-selftests.c.
2103 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2104 btrace_function_flags instead of enum btrace_function_flag.
2105 * compile/compile-c-types.c (convert_qualified): Use
2106 enum_flags::raw.
2107 * compile/compile-cplus-symbols.c (convert_one_symbol)
2108 (convert_symbol_bmsym):
2109 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2110 (compile_cplus_convert_struct_or_union_methods)
2111 (compile_cplus_instance::convert_qualified_base):
2112 * go-exp.y (parse_string_or_char): Add cast to int.
2113 * unittests/enum-flags-selftests.c: New file.
2114 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2115 type to btrace_thread_flags from btrace_thread_flag.
2116 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2117 local's type to btrace_thread_flags from btrace_thread_flag. Add
2118 cast in DEBUG call.
2119
69896a2c
PA
21202020-09-14 Pedro Alves <pedro@palves.net>
2121
2122 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2123 * gdbtypes.c (address_space_name_to_int): Rename to ...
2124 (address_space_name_to_type_instance_flags): ... this.
2125 (address_space_int_to_name): Rename to ...
2126 (address_space_type_instance_flags_to_name): ... this.
2127 * gdbtypes.h (address_space_name_to_int): Rename to ...
2128 (address_space_name_to_type_instance_flags): ... this.
2129 (address_space_int_to_name): Rename to ...
2130 (address_space_type_instance_flags_to_name): ... this.
2131 * type-stack.c (type_stack::insert): Adjust to rename.
2132 * type-stack.h (type_stack::insert): Likewise.
2133
314ad88d
PA
21342020-09-14 Pedro Alves <pedro@palves.net>
2135 Andrew Burgess <andrew.burgess@embecosm.com>
2136
2137 * avr-tdep.c (avr_address_class_type_flags): Return
2138 type_instance_flags.
2139 (avr_address_class_type_flags_to_name): Take a
2140 type_instance_flags.
2141 (avr_address_class_name_to_type_flags): Return bool and take a
2142 type_instance_flags.
2143 * d-lang.c (build_d_types): Use type::set_instance_flags.
2144 * ft32-tdep.c (ft32_address_class_type_flags): Return
2145 type_instance_flags.
2146 (ft32_address_class_type_flags_to_name): Take a
2147 type_instance_flags.
2148 (ft32_address_class_name_to_type_flags): Return bool and take a
2149 type_instance_flags.
2150 (ft32_gdbarch_init): Use type::set_instance_flags.
2151 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2152 * gdbarch.h, gdbarch.c: Regenerate.
2153 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2154 (address_class_name_to_type_flags): Use type_instance_flags and
2155 bool.
2156 * gdbtypes.c (address_space_name_to_int)
2157 (address_space_int_to_name, make_qualified_type): Use
2158 type_instance_flags.
2159 (make_qualified_type): Use type_instance_flags and
2160 type::set_instance_flags.
2161 (make_type_with_address_space, make_cv_type, make_vector_type)
2162 (check_typedef): Use type_instance_flags.
2163 (recursive_dump_type): Cast type_instance_flags to unsigned for
2164 printing.
2165 (copy_type_recursive): Use type::set_instance_flags.
2166 (gdbtypes_post_init): Use type::set_instance_flags.
2167 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2168 <m_instance_flags>: ... this.
2169 <instance_flags, set_instance_flags>: New methods.
2170 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2171 (SET_TYPE_INSTANCE_FLAGS): New.
2172 (address_space_name_to_int, address_space_int_to_name)
2173 (make_type_with_address_space): Pass flags using
2174 type_instance_flags instead of int.
2175 * stabsread.c (cleanup_undefined_types_noname): Use
2176 type::set_instance_flags.
2177 * s390-tdep.c (s390_address_class_type_flags): Return
2178 type_instance_flags.
2179 (s390_address_class_type_flags_to_name): Take a
2180 type_instance_flags.
2181 (s390_address_class_name_to_type_flags): Return bool and take a
2182 type_instance_flags.
2183 * type-stack.c (type_stack::follow_types): Use
2184 type_instance_flags.
2185 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2186
27087b7f
TT
21872020-09-14 Tom Tromey <tromey@adacore.com>
2188
2189 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2190 * x86-tdep.c (x86_is_thunk_register_name)
2191 (x86_in_indirect_branch_thunk): Update.
2192 * sparc64-tdep.c (sparc64_fpu_register_names)
2193 (sparc64_cp0_register_names, sparc64_register_names)
2194 (sparc64_pseudo_register_names): Now const.
2195 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2196 cp0_registers_num>: Now const.
2197 * sparc-tdep.c (sparc_core_register_names)
2198 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2199 (sparc32_pseudo_register_names): Now const.
2200 (validate_tdesc_registers): Update.
2201 * rust-lang.c (rust_extensions): Now const.
2202 * p-lang.c (p_extensions): Now const.
2203 * objc-lang.c (objc_extensions): Now const.
2204 * nto-tdep.c (nto_thread_state_str): Now const.
2205 * moxie-tdep.c (moxie_register_names): Now const.
2206 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2207 Now const.
2208 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2209 (mips_linux_reg_names): Now const.
2210 (mips_gdbarch_init): Update.
2211 * microblaze-tdep.c (microblaze_register_names): Now const.
2212 * m68k-tdep.c (m68k_register_names): Now const.
2213 * m32r-tdep.c (m32r_register_names): Now const.
2214 * ia64-tdep.c (ia64_register_names): Now const.
2215 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2216 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2217 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2218 ymm_avx512_register_names, pkeys_register_names>: Now const.
2219 * i386-tdep.c (i386_register_names, i386_zmm_names)
2220 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2221 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2222 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2223 * f-lang.c (f_extensions): Now const.
2224 * d-lang.c (d_extensions): Now const.
2225 * csky-tdep.c (csky_register_names): Now const.
2226 * charset.c (default_charset_names, charset_enum): Now const.
2227 (_initialize_charset): Update.
2228 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2229 const.
2230 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2231 (bsd_uthread_solib_loaded): Update.
2232 (bsd_uthread_state): Now const.
2233 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2234 (amd64_ymm_avx512_names, amd64_ymmh_names)
2235 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2236 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2237 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2238 (amd64_dword_names): Now const.
2239 * agent.c (can_use_agent_enum): Now const.
2240 * ada-tasks.c (task_states, long_task_states): Now const.
2241 * ada-lang.c (known_runtime_file_name_patterns)
2242 (known_auxiliary_function_name_patterns, attribute_names)
2243 (standard_exc, ada_extensions): Now const.
2244
89806626
SM
22452020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2246
2247 * bcache.h (struct bcache) <bcache>: Remove constructor.
2248 <m_hash_function, m_compare_function>: Remove.
2249 <~bcache>: Make virtual.
2250 <compare>: Remove static method, introduce virtual method.
2251 <default_hash>: Remove.
2252 <hash>: New virtual method.
2253 * bcache.c (bcache::expand_hash_table): Update.
2254 (bcache::insert): Update.
2255 (bcache::hash): New.
2256 (bcache::compare): Update comment and parameter names.
2257 * gdbtypes.c (types_deeply_equal): Update.
2258 * psymtab.h (struct psymbol_bcache): New struct.
2259 (class psymtab_storage) <psymtab_storage>: Make default.
2260 <psymbol_cache>: Change type to psymbol_bcache.
2261 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2262 (psymbol_hash): Change to...
2263 (psymbol_bcache::hash): ... this.
2264 (psymbol_compare): Change to...
2265 (psymbol_bcache::compare): ... this.
2266
677c92fe
SM
22672020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2268
2269 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2270 checking for initial lwp.
2271
3eba3a01
TT
22722020-09-14 Tom Tromey <tromey@adacore.com>
2273
2274 * m68k-tdep.c (m68k_extract_return_value): Use
2275 pointer_result_regnum.
2276 (m68k_store_return_value): Likewise.
2277 (m68k_reg_struct_return_p): Handle vectors and arrays.
2278 (m68k_return_value): Handle arrays.
2279 (m68k_svr4_return_value): Fix single-element aggregate handling.
2280 Handle long double. Adjust for embedded ABI.
2281 (m68k_svr4_init_abi): Set pointer_result_regnum.
2282 (m68k_embedded_init_abi): New function.
2283 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2284 (m68k_osabi_sniffer): New function.
2285 (_initialize_m68k_tdep): Register osabi sniffer.
2286 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2287 member.
2288
33f4dd48
SM
22892020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2290
2291 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2292 with gdb::unique_xmalloc_ptr<char>.
2293
8400a90d
SM
22942020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2295
2296 * xml-support.h (xml_fetch_another): Change type to be a
2297 function_view.
2298 (xml_process_xincludes): Remove baton parameter.
2299 (xml_fetch_content_from_file): Change baton parameter to
2300 dirname.
2301 * xml-support.c (struct xinclude_parsing_data)
2302 <xinclude_parsing_data>: Remove baton parameter.
2303 <fetcher_baton>: Remove.
2304 (xinclude_start_include): Adjust.
2305 (xml_process_xincludes): Adjust.
2306 (xml_fetch_content_from_file): Replace baton parameter with
2307 dirname.
2308 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2309 (xml_init_syscalls_info): Use a lambda.
2310 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2311 (file_read_description_xml): Use a lambda.
2312 (fetch_available_features_from_target): Change baton parameter
2313 to target_ops.
2314 (target_read_description_xml): Use a lambda.
2315 (target_fetch_description_xml): Use a lambda.
2316 (string_read_description_xml): Update.
2317
04f5bab2
SM
23182020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2319
2320 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2321 uses with type::endianity_is_not_default.
2322
db558e34
SM
23232020-09-14 Simon Marchi <simon.marchi@efficios.com>
2324
2325 * gdbtypes.h (struct type) <endianity_is_not_default,
2326 set_endianity_is_not_default>: New methods.
2327 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2328 type::endianity_is_not_default, change all write call sites to
2329 use type::set_endianity_is_not_default.
2330
22c4c60c
SM
23312020-09-14 Simon Marchi <simon.marchi@efficios.com>
2332
2333 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2334 uses with type::is_fixed_instance.
2335
9cdd0d12
SM
23362020-09-14 Simon Marchi <simon.marchi@efficios.com>
2337
2338 * gdbtypes.h (struct type) <is_fixed_instance,
2339 set_is_fixed_instance>: New methods.
2340 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2341 write call sites to use type::set_is_fixed_instance.
2342
0becda7a
SM
23432020-09-14 Simon Marchi <simon.marchi@efficios.com>
2344
2345 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2346 uses with type::is_gnu_ifunc.
2347
03cc7249
SM
23482020-09-14 Simon Marchi <simon.marchi@efficios.com>
2349
2350 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2351 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2352 use type::set_is_gnu_ifunc.
2353
3f46044c
SM
23542020-09-14 Simon Marchi <simon.marchi@efficios.com>
2355
2356 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2357 uses with type::stub_is_supported.
2358
9baccff6
SM
23592020-09-14 Simon Marchi <simon.marchi@efficios.com>
2360
2361 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2362 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2363 use type::set_stub_is_supported.
2364
bd63c870
SM
23652020-09-14 Simon Marchi <simon.marchi@efficios.com>
2366
2367 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2368 uses with type::is_vector.
2369
2062087b
SM
23702020-09-14 Simon Marchi <simon.marchi@efficios.com>
2371
2372 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2373 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2374 use type::set_is_vector.
2375
a409645d
SM
23762020-09-14 Simon Marchi <simon.marchi@efficios.com>
2377
2378 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2379 uses with type::has_varargs.
2380
1d6286ed
SM
23812020-09-14 Simon Marchi <simon.marchi@efficios.com>
2382
2383 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2384 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2385 use type::set_has_varargs.
2386
7f9f399b
SM
23872020-09-14 Simon Marchi <simon.marchi@efficios.com>
2388
2389 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2390 uses with type::is_prototyped.
2391
27e69b7a
SM
23922020-09-14 Simon Marchi <simon.marchi@efficios.com>
2393
2394 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2395 New methods.
2396 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2397 call sites to use type::set_is_prototyped.
2398
d2183968
SM
23992020-09-14 Simon Marchi <simon.marchi@efficios.com>
2400
2401 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2402 uses with type::target_is_stub.
2403
8f53807e
SM
24042020-09-14 Simon Marchi <simon.marchi@efficios.com>
2405
2406 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2407 New methods.
2408 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2409 sites to use type::set_target_is_stub.
2410
e46d3488
SM
24112020-09-14 Simon Marchi <simon.marchi@efficios.com>
2412
2413 * gdbtypes.h (TYPE_STUB): Remove, replace all
2414 uses with type::is_stub.
2415
b4b73759
SM
24162020-09-14 Simon Marchi <simon.marchi@efficios.com>
2417
2418 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2419 (TYPE_STUB): Use type::is_stub, change all write call sites to
2420 use type::set_is_stub.
2421
20ce4123
SM
24222020-09-14 Simon Marchi <simon.marchi@efficios.com>
2423
2424 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2425 type::has_no_signedness.
2426
15152a54
SM
24272020-09-14 Simon Marchi <simon.marchi@efficios.com>
2428
2429 * gdbtypes.h (struct type) <has_no_signedness,
2430 set_has_no_signedness>: New methods.
2431 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2432 call sites to use type::set_has_no_signedness.
2433
c6d940a9
SM
24342020-09-14 Simon Marchi <simon.marchi@efficios.com>
2435
2436 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2437 type::is_unsigned.
2438
653223d3
SM
24392020-09-14 Simon Marchi <simon.marchi@efficios.com>
2440
2441 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2442 methods.
2443 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2444 sites to use type::set_is_unsigned.
2445
55ea94da 24462020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2447 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2448
e851246a
SM
2449 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2450 pointer and stack frame offset when unwinding.
55ea94da 2451
6791b117
PA
24522020-09-13 Pedro Alves <pedro@palves.net>
2453
2454 * NEWS: Document "-break-insert --qualified".
2455 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2456
77f2120b
PA
24572020-09-13 Pedro Alves <pedro@palves.net>
2458
2459 * linespec.c (classify_mtype, compare_msyms): Delete.
2460 (search_minsyms_for_name): Remove classification logic. Instead
2461 filter out trampoline symbols if we also found an external
2462 function of the same name.
2463
ed6a896c
JB
24642020-09-13 Joel Brobecker <brobecker@adacore.com>
2465
2466 * NEWS: Create a new section for the next release branch.
2467 Rename the section of the current branch, now that it has
2468 been cut.
2469
32aea73e
JB
24702020-09-13 Joel Brobecker <brobecker@adacore.com>
2471
2472 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2473 * version.in: Bump version to 11.0.50.DATE-git.
2474
8087c3fa
JB
24752020-09-12 Joel Brobecker <brobecker@adacore.com>
2476
2477 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2478
2a67f09d
FW
24792020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2480 Felix Willgerodt <Felix.Willgerodt@intel.com>
2481
2482 * gdbarch.sh: Added bfloat16 type.
2483 * gdbarch.c: Regenerated.
2484 * gdbarch.h: Regenerated.
2485 * gdbtypes.c (floatformats_bfloat16): New struct.
2486 (gdbtypes_post_init): Add builtin_bfloat16.
2487 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2488 (floatformats_bfloat16): New struct.
2489 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2490 (i386_ymm_type): Add field "v16_bfloat16"
2491 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2492 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2493 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2494 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2495 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2496 * features/i386/64bit-avx512.c: Regenerated.
2497 * features/i386/64bit-sse.xml: Add bfloat16 type.
2498 * features/i386/64bit-sse.c: Regenerated.
2499
1347d111
FW
25002020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2501
2502 * i386-tdep.c (i386_zmm_type): Fix field names.
2503 (i386_ymm_type): Fix field names.
2504
7a4e8e7d
TBA
25052020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2506
2507 * breakpoint.c: Fix typo in the help message of the
2508 "set breakpoint condition-evaluation" command.
2509
cf4ac4be
KR
25102020-09-10 Kamil Rytarowski <n54@gmx.com>
2511
2512 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2513 * (nbsd_nat_target::pid_to_exec_file)
2514 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2515 (nbsd_nat_target::post_startup_inferior)
2516 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2517 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2518 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2519 * (nbsd_thread_lister): Remove.
2520
f404573e
KR
25212020-09-10 Kamil Rytarowski <n54@gmx.com>
2522
2523 * fork-inferior.c (startup_inferior): Avoid double free.
2524
1ccb2c17
KR
25252020-09-10 Kamil Rytarowski <n54@gmx.com>
2526
2527 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2528 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2529
feedfcc7
KR
25302020-09-10 Kamil Rytarowski <n54@gmx.com>
2531
2532 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2533 * netbsd-nat.c: Include <sys/ptrace.h>.
2534 * (netbsd_nat::enable_proc_events): Add.
2535
c489f8c6
KR
25362020-09-10 Kamil Rytarowski <n54@gmx.com>
2537
2538 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2539 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2540 (netbsd_nat::for_each_thread): Add.
2541 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2542 "gdbsupport/common-debug.h".
2543 * (netbsd_nat::netbsd_thread_lister)
2544 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2545 (netbsd_nat::for_each_thread): Add.
2546
330662f6
KR
25472020-09-10 Kamil Rytarowski <n54@gmx.com>
2548
2549 * netbsd-nat.h: Include <unistd.h>.
2550 * (netbsd_nat::pid_to_exec_file): Add.
2551 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2552 * (netbsd_nat::pid_to_exec_file) Add.
2553
70b67307
KR
25542020-09-10 Kamil Rytarowski <n54@gmx.com>
2555
2556 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2557
99cf6da6
KR
25582020-09-10 Kamil Rytarowski <n54@gmx.com>
2559
2560 * netbsd-nat.h: New file.
2561 * netbsd-nat.c: Likewise.
2562
1b788fb6
TT
25632020-09-09 Tom Tromey <tromey@adacore.com>
2564
2565 * ada-lang.c (remove_extra_symbols): Do not increment when
2566 removing an element
2567
03b0a45f
TT
25682020-09-08 Tom Tromey <tromey@adacore.com>
2569
2570 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2571
3cae4447
TT
25722020-09-08 Tom Tromey <tromey@adacore.com>
2573
2574 PR win32/25302:
2575 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2576 (gdb_bfd_init_data): New function.
2577 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2578
7f08fd51
TBA
25792020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2580
2581 * infrun.c (fetch_inferior_event): Use
2582 `switch_to_target_no_thread` to switch the target.
2583
3e6ff933
TT
25842020-09-06 Tom Tromey <tom@tromey.com>
2585
2586 * symfile.h (dwarf2_free_objfile): Don't declare.
2587
e56798df
AKS
25882020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2589
2590 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2591 to match 16 byte real/complex type generated by Flang compiler.
2592
8f5c6526
TV
25932020-09-03 Tom de Vries <tdevries@suse.de>
2594
2595 PR breakpoint/26546
2596 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2597 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2598
c5065df0
SM
25992020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2600
2601 * maint.c (index_digits): New function.
2602 (struct maint_print_section_data): Remove.
2603 (print_bfd_section_info): Remove print_data parameter, add arg
2604 and index_digits.
2605 (print_objfile_section_info): Likewise.
2606 (print_bfd_section_info_maybe_relocated): Likewise (plus
2607 objfile).
2608 (maintenance_info_sections): Adjust calls.
2609
02c6f3f1
TT
26102020-09-02 Tom Tromey <tromey@adacore.com>
2611
2612 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2613 for null pointers.
2614 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2615
ef5e5b0b
SM
26162020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2617
2618 * bcache.h (struct bcache) <insert>: Change type of `added` to
2619 pointer to bool.
2620 * bcache.c (bcache::insert): Likewise.
2621 * gdbtypes.c (check_types_worklist): Adjust.
2622 * psymtab.c (add_psymbol_to_bcache): Adjust.
2623
973695d6
KB
26242020-08-31 Kevin Buettner <kevinb@redhat.com>
2625
2626 * corelow.c (unordered_set): Include.
2627 (class core_target): Add field 'm_core_unavailable_mappings'.
2628 (core_target::build_file_mappings): Print only one warning
2629 per inaccessible file. Add unavailable/broken mappings
2630 to m_core_unavailable_mappings.
2631 (core_target::xfer_partial): Call...
2632 (core_target::xfer_memory_via_mappings): New method.
2633
264fc0e2
SM
26342020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2635
2636 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2637 type to bool.
2638
2de01bdb
SM
26392020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2640
2641 * dwarf2/read.c (struct field_info): Fix indentation.
2642
f3bd50f1
SM
26432020-08-31 Simon Marchi <simon.marchi@efficios.com>
2644
2645 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2646 ordering in comment.
2647 * frame.c (frame_id_eq): Fix indentation.
2648
22b9b4b0
SL
26492020-08-31 Scott Linder <scott@scottlinder.com>
2650 Simon Marchi <simon.marchi@efficios.com>
2651
2652 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2653 inline frame ids in outer frame.
2654
84154d16
SM
26552020-08-31 Simon Marchi <simon.marchi@efficios.com>
2656
2657 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2658 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2659 (outer_frame_id): Use FID_STACK_OUTER instead of
2660 FID_STACK_INVALID.
2661 (frame_id_p): Don't check for outer_frame_id.
2662
8efaf6b3
SM
26632020-08-31 Simon Marchi <simon.marchi@efficios.com>
2664
2665 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2666 regnum/frame in value. Call allocate_value_lazy.
2667 * frame.c (frame_unwind_register_value): Use
2668 val_print_not_saved.
2669
fe1fe7ea
SM
26702020-08-31 Simon Marchi <simon.marchi@efficios.com>
2671
2672 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2673
f7c7700d
PA
26742020-08-29 Pedro Alves <pedro@palves.net>
2675
2676 * progspace.c (print_program_space): Use all_inferiors. Switch to
2677 the inferior before calling target_pid_to_str.
2678
e0814aae
TT
26792020-08-28 Tom Tromey <tom@tromey.com>
2680
2681 * xcoffread.c (xcoff_end_psymtab): Update comment.
2682 * dbxread.c (dbx_end_psymtab): Update comment.
2683
626d2320
TV
26842020-08-28 Tom de Vries <tdevries@suse.de>
2685
2686 PR breakpoint/26544
2687 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2688 event_location.
2689 (create_breakpoint): Same.
2690 (base_breakpoint_decode_location): Same.
2691 (bkpt_create_sals_from_location): Same.
2692 (bkpt_decode_location): Same.
2693 (bkpt_probe_create_sals_from_location): Same.
2694 (bkpt_probe_decode_location): Same.
2695 (tracepoint_create_sals_from_location): Same.
2696 (tracepoint_decode_location): Same.
2697 (tracepoint_probe_decode_location): Same.
2698 (strace_marker_create_sals_from_location): Same.
2699 (strace_marker_decode_location): Same.
2700 (create_sals_from_location_default): Same.
2701 (decode_location_default): Same.
2702 * breakpoint.h (struct breakpoint_ops): Same.
2703 (create_breakpoint): Same.
2704 * linespec.h (decode_line_full): Same.
2705 * linespec.c (decode_line_full): Same. Throw error if
2706 result.size () == 0.
2707
df631783
PA
27082020-08-27 Pedro Alves <pedro@palves.net>
2709
2710 PR gdb/26524
2711 * breakpoint.c (until_break_fsm) <location_breakpoint,
2712 caller_breakpoint>: Delete fields.
2713 <breakpoints>: New field.
2714 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2715 two individual breakpoints.
2716 (until_break_fsm::should_stop): Loop over breakpoints in the
2717 breakpoint vector.
2718 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2719 vector.
2720 (until_break_command): Handle location expanding into multiple
2721 sals.
2722
b2b38aa4
PA
27232020-08-27 Pedro Alves <pedro@palves.net>
2724
2725 PR gdb/26523
2726 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2727 bp_until breakpoints user-specified locations. Update intro
2728 comment.
2729
b886559f
SM
27302020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2731
2732 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2733 gdb_bfd_sections): New.
2734 * maint.c (print_bfd_section_info): Change param type to
2735 maint_print_section_data.
2736 (print_objfile_section_info): Likewise.
2737 (print_bfd_section_info_maybe_relocated): Likewise.
2738 (maintenance_info_sections): Use gdb_bfd_sections.
2739
4c6e63bf
SV
27402020-08-25 Shahab Vahedi <shahab@synopsys.com>
2741
2742 * MAINTAINERS: Add ARC target and maintainer.
2743
8d7f0635
AK
27442020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2745
2746 * configure.tgt: ARC support for GNU/Linux.
2747 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2748 * arc-linux-tdep.c: New file.
2749 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2750 * arc-tdep.c (arc_write_pc): Use it.
2751
fdd8731b
SV
27522020-08-25 Shahab Vahedi <shahab@synopsys.com>
2753
2754 * arc-tdep.c (arc_check_for_hardware_loop): New.
2755 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2756
22459524
SV
27572020-08-25 Shahab Vahedi <shahab@synopsys.com>
2758
2759 * arc-tdep.h: Include "gdbarch.h".
2760
995d3a19
SV
27612020-08-25 Shahab Vahedi <shahab@synopsys.com>
2762
2763 * arch/arc.h
2764 (arc_gdbarch_features): New class to stir the selection of target XML.
2765 (arc_create_target_description): Use FEATURES to choose XML target.
2766 (arc_lookup_target_description): Use arc_create_target_description
2767 to create _new_ target descriptions or return the already created
2768 ones if the FEATURES is the same.
2769 * arch/arc.c: Implementation of prototypes described above.
2770 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2771 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2772 * arc-tdep.c (*_feature_name): Make feature names consistent.
2773 (arc_register_feature): A new struct to hold information about
2774 registers of a particular target/feature.
2775 (arc_check_tdesc_feature): Check if XML provides registers in
2776 compliance with ARC_REGISTER_FEATURE structs.
2777 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2778 (determine_*_reg_feature_set): Which feature name to look for.
2779 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2780 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2781 to expected ISA enums to be used in arc_gdbarch_features structs.
2782 * features/Makefile (FEATURE_XMLFILES): Add new files.
2783 * gdb/features/arc/v1-aux.c: New file.
2784 * gdb/features/arc/v1-aux.xml: Likewise.
2785 * gdb/features/arc/v1-core.c: Likewise.
2786 * gdb/features/arc/v1-core.xml: Likewise.
2787 * gdb/features/arc/v2-aux.c: Likewise.
2788 * gdb/features/arc/v2-aux.xml: Likewise.
2789 * gdb/features/arc/v2-core.c: Likewise.
2790 * gdb/features/arc/v2-core.xml: Likewise.
2791 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2792
3945d2d7
GM
27932020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2794 Andrew Burgess <andrew.burgess@embecosm.com>
2795
2796 PR m2/26372
fc5d6901 2797 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2798 an assert. Remove single element array indexing pattern as the
2799 MULTI_SUBSCRIPT support will handle this case too.
2800
2677f2d3
SM
28012020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2802
2803 * value.h (valprint_check_validity): Move declaration from
2804 here...
2805 * valprint.h (valprint_check_validity): ... to here.
2806
c426fddb
SM
28072020-08-24 Simon Marchi <simon.marchi@efficios.com>
2808
2809 * debug.h: New file.
2810 * debug.c (debug_prefixed_vprintf): New function.
2811 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2812 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2813
1eb8556f
SM
28142020-08-24 Simon Marchi <simon.marchi@efficios.com>
2815
2816 * infrun.h (infrun_debug_printf_1): New function declaration.
2817 (infrun_debug_printf): New macro.
2818 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2819 throughout.
2820 (infrun_debug_printf): New function.
2821 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2822 (handle_jit_event): Likewise.
2823
b8fff44e
MW
28242020-08-21 Mark Wielaard <mark@klomp.org>
2825
2826 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2827
d19c3068
SM
28282020-08-22 Simon Marchi <simon.marchi@efficios.com>
2829
2830 * frame.c (enum class frame_id_status): New.
2831 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2832 (fprintf_frame): Update.
2833 (compute_frame_id): Set frame id status to "computing" on entry.
2834 Set it back to "not_computed" on failure and to "computed" on
2835 success.
2836 (get_frame_id): Assert the frame id is not being computed.
2837 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2838 (create_new_frame): Likewise.
2839 (frame_cleanup_after_sniffer): Update assert.
2840
b70e516e
SM
28412020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2842
2843 * regcache.c (pid_ptid_regcache_map): New type.
2844 (target_ptid_regcache_map): Remove.
2845 (target_pid_ptid_regcache_map): New type.
2846 (regcaches): Change type to target_pid_ptid_regcache_map.
2847 (get_thread_arch_aspace_regcache): Update.
2848 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2849 case.
2850 (regcaches_size): Update.
2851 (regcache_count): Update.
2852 (registers_changed_ptid_target_pid_test): New.
2853 (_initialize_regcache): Register new test.
2854
cdd9148a
SM
28552020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2856
2857 * regcache.c (regcache_count): New.
2858 (struct regcache_test_data): New.
2859 (regcache_test_data_up): New.
2860 (populate_regcaches_for_test): New.
2861 (regcaches_test): Remove.
2862 (get_thread_arch_aspace_regcache_test): New.
2863 (registers_changed_ptid_all_test): New.
2864 (registers_changed_ptid_target_test): New.
2865 (registers_changed_ptid_target_ptid_test): New.
2866 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2867 (_initialize_regcache): Register new tests.
2868
dd125343
SM
28692020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2870
2871 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2872 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2873 gdbarch and aspace parameter. Use current inferior's aspace.
2874 Validate regcache's arch value.
2875 (regcaches_test): Update.
2876
3ee93972
SM
28772020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2878
2879 * regcache.c (regcaches_test): Call registers_changed.
2880
33bf4c5c
TBA
28812020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2882
2883 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2884
c2fd7fae
AKS
28852020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2886
2887 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2888 to find the end of prologue for flang compiled binaries.
2889 * arm-tdep.c (arm_skip_prologue): Likewise.
2890 * i386-tdep.c (i386_skip_prologue): Likewise.
2891 * producer.c (producer_is_llvm): New function.
2892 (producer_parsing_tests): Added new tests for clang/flang.
2893 * producer.h (producer_is_llvm): New declaration.
2894
9327494e
SM
28952020-08-18 Simon Marchi <simon.marchi@efficios.com>
2896
2897 * linux-nat.c (linux_nat_debug_printf): New function.
2898 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2899
d138725a
AM
29002020-08-18 Aaron Merey <amerey@redhat.com>
2901
2902 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2903 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2904 (CLIBS): Add DEBUGINFOD_LIBS.
2905
f9b11e6b
ST
29062020-08-17 Sergei Trofimovich <siarheit@google.com>
2907
2908 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2909 'gdbarch_num_regs'.
2910
3ae7ab99
TT
29112020-08-17 Tom Tromey <tromey@adacore.com>
2912
2913 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2914 ada_get_decoded_value returns NULL.
2915
b017825f
TT
29162020-08-17 Tom Tromey <tromey@adacore.com>
2917
2918 * python/py-inferior.c (infpy_search_memory): Use
2919 gdb_py_object_from_ulongest.
2920 * python/py-infevents.c (create_inferior_call_event_object)
2921 (create_memory_changed_event_object): Use
2922 gdb_py_object_from_ulongest.
2923 * python/py-linetable.c (ltpy_entry_get_pc): Use
2924 gdb_py_object_from_ulongest.
2925
7635cf79
SM
29262020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2927
2928 * loc.c (class symbol_needs_eval_context): Fix indentation.
2929
f54be24b
SM
29302020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2931
2932 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2933 bool.
2934
53d5a2a5
TV
29352020-08-17 Tom de Vries <tdevries@suse.de>
2936
2937 PR gdb/26393
2938 * gdbtypes.c (dump_dynamic_prop): New function.
2939 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2940
547ce8f0
TV
29412020-08-15 Tom de Vries <tdevries@suse.de>
2942
2943 PR backtrace/26390
2944 * stack.c (print_frame_args): Temporarily set the selected
2945 frame to FRAME while printing the frame's arguments.
2946
6ea815e7
PFC
29472020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2948
2949 PR breakpoints/26385
2950 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2951 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2952
6e562fa3
PFC
29532020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2954
2955 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2956 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2957 and >= to check return value instead of == -1 and != -1.
2958
d369b608
SM
29592020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2960
2961 * utils.h (class gdb_argv) <as_array_view>: New method.
2962 * utils.c (gdb_argv_as_array_view_test): New.
2963 (_initialize_utils): Register selftest.
2964 * maint.c (maintenance_selftest): Use the new method.
2965
b31488a3
KR
29662020-08-13 Kamil Rytarowski <n54@gmx.com>
2967
2968 * target.h (supports_dumpcore, dumpcore): New
2969 function declarations.
2970 * target.c (supports_dumpcore, dumpcore): New
2971 functions.
2972 * target-delegates.c: Rebuild.
2973 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2974 and target_dumpcore ().
2975
002a3166
AM
29762020-08-13 Aaron Merey <amerey@redhat.com>
2977
2978 * debuginfod-support.c: Replace global variables with user_data.
2979
ece5bc8a
SM
29802020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2981
2982 * maint.c (maintenance_selftest): Split args and pass array_view
2983 to run_tests.
2984
6d8a0a5e
LM
29852020-08-12 Luis Machado <luis.machado@linaro.org>
2986
2987 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2988 type's length.
2989 Use %s and pulongest to print the length.
2990
7cf663a9
PA
29912020-08-12 Pedro Alves <palves@redhat.com>
2992
2993 * NEWS: Move "Multi-target debugging support" item to the
2994 "Changes since GDB 9" section.
2995
27c7b875
PA
29962020-08-12 Pedro Alves <palves@redhat.com>
2997
2998 PR gdb/26336
2999 * progspace.c (program_space::remove_objfile): Invalidate the
3000 frame cache.
3001
1796a2a1
TV
30022020-08-11 Tom de Vries <tdevries@suse.de>
3003
3004 * MAINTAINERS: Mark ms1 as deleted.
3005
f8e3fe0d
LM
30062020-08-10 Luis Machado <luis.machado@linaro.org>
3007
3008 PR gdb/26310
3009
3010 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3011 act accordingly.
3012 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3013 movz/str/stur/stp skipping behavior.
3014
cc308722
LM
30152020-08-10 Luis Machado <luis.machado@linaro.org>
3016
3017 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3018 struct user_sve_header instead of struct sve_context.
3019
041d9819
SM
30202020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3021
3022 * read.h (dwarf2_fetch_die_loc_sect_off,
3023 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3024 `void *` parameter with function_view.
3025 * read.c (dwarf2_fetch_die_loc_sect_off,
3026 dwarf2_fetch_die_loc_cu_off): Likewise.
3027 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3028 (per_cu_dwarf_call): Adjust.
3029 (get_frame_address_in_block_wrapper): Remove.
3030 (indirect_synthetic_pointer): Adjust.
3031 (get_ax_pc): Remove.
3032 (dwarf2_compile_expr_to_ax): Adjust.
3033
38f8aa06
TV
30342020-08-08 Tom de Vries <tdevries@suse.de>
3035
3036 PR build/26344
3037 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3038 constructor.
3039 * regcache.c (get_thread_arch_aspace_regcache): Same.
3040
a52b3ae2
TT
30412020-08-07 Tom Tromey <tromey@adacore.com>
3042
3043 * ravenscar-thread.c
3044 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3045 New method.
3046 (ravenscar_thread_target::wait): Check
3047 runtime_initialized.
3048 (ravenscar_thread_target::prepare_to_store)
3049 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3050 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3051 (ravenscar_thread_target::stopped_by_watchpoint)
3052 (ravenscar_thread_target::stopped_data_address)
3053 (ravenscar_thread_target::core_of_thread): Use
3054 scoped_restore_current_thread and
3055 set_base_thread_from_ravenscar_task.
3056
0e29517d
TT
30572020-08-07 Tom Tromey <tromey@adacore.com>
3058
3059 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3060
592f9bd7
TT
30612020-08-07 Tom Tromey <tromey@adacore.com>
3062
3063 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3064 update_inferior_ptid before update_thread_list.
3065 (temporarily_change_regcache_ptid): New class.
3066 (ravenscar_thread_target::fetch_registers)
3067 (ravenscar_thread_target::store_registers)
3068 (ravenscar_thread_target::prepare_to_store): Use base thread when
3069 forwarding operation.
3070
39e2018a
TT
30712020-08-07 Tom Tromey <tromey@adacore.com>
3072
3073 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3074 "is_pid" case.
3075
2080266b
TT
30762020-08-07 Tom Tromey <tromey@adacore.com>
3077
3078 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3079 New methods.
3080 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3081 first.
3082 (ravenscar_thread_target::add_thread): Rename from
3083 ravenscar_add_thread.
3084 (ravenscar_thread_target::update_thread_list): Use a lambda.
3085 (ravenscar_thread_target::xfer_partial): New method.
3086
78c02f21
TT
30872020-08-07 Tom Tromey <tromey@adacore.com>
3088
3089 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3090 gdb::function_view.
3091 (iterate_over_live_ada_tasks): Change type of argument.
3092 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3093 of argument.
3094
d5d833af
TT
30952020-08-07 Tom Tromey <tromey@adacore.com>
3096
3097 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3098 Remove.
3099 (ravenscar_thread_target::extra_thread_info): Remove.
3100 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3101 defer to target beneath for non-Ravenscar threads.
3102
a8ac85bb
TT
31032020-08-07 Tom Tromey <tromey@adacore.com>
3104
3105 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3106 get_base_thread_from_ravenscar_task>: Now methods.
3107 <m_cpu_map>: New member.
3108 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3109 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3110 (ravenscar_thread_target::task_is_currently_active): Update.
3111 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3112 Now a method.
3113 (ravenscar_thread_target::add_active_thread): Put initial thread
3114 into the m_cpu_map.
3115
550ab58d
TT
31162020-08-07 Tom Tromey <tromey@adacore.com>
3117
3118 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3119 event_ptid.
3120
e9546579
TT
31212020-08-07 Tom Tromey <tromey@adacore.com>
3122
3123 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3124 runtime_initialized.
3125
3d4470e5
TT
31262020-08-07 Tom Tromey <tromey@adacore.com>
3127
3128 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3129 add_active_thread.
3130 (ravenscar_thread_target::add_active_thread): Now public.
3131 (ravenscar_inferior_created): Call add_active_thread after pushing
3132 the target.
3133
888bdb2b
SM
31342020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3135
3136 * regcache.c (ptid_regcache_map): New type.
3137 (target_ptid_regcache_map): New type.
3138 (regcaches): Change type to target_ptid_regcache_map.
3139 (get_thread_arch_aspace_regcache): Update to regcaches' new
3140 type.
3141 (regcache_thread_ptid_changed): Likewise.
3142 (registers_changed_ptid): Likewise.
3143 (regcaches_size): Likewise.
3144 (regcaches_test): Update.
3145 (regcache_thread_ptid_changed): Update.
3146 * regcache.h (regcache_up): New type.
3147 * gdbsupport/ptid.h (hash_ptid): New struct.
3148
b161a60d
SM
31492020-08-07 Simon Marchi <simon.marchi@efficios.com>
3150
3151 * observable.h (thread_ptid_changed): Add parameter
3152 `process_stratum_target *`.
3153 * infrun.c (infrun_thread_ptid_changed): Add parameter
3154 `process_stratum_target *` and use it.
3155 (selftests): New namespace.
3156 (infrun_thread_ptid_changed): New function.
3157 (_initialize_infrun): Register selftest.
3158 * regcache.c (regcache_thread_ptid_changed): Add parameter
3159 `process_stratum_target *` and use it.
3160 (regcache_thread_ptid_changed): New function.
3161 (_initialize_regcache): Register selftest.
3162 * thread.c (thread_change_ptid): Pass target to
3163 thread_ptid_changed observable.
3164
d2854d8d
CT
31652020-08-06 Caroline Tice <cmtice@google.com>
3166
fe4c3d43
SM
3167 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3168 (struct dwp_sections): Update field comments. Add loclists and
3169 rnglists fields.
3170 (struct virtual_v2_dwo_sections): Rename struct to
3171 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3172 size & offset fields for loclists and rnglists.
3173 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3174 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3175 skipping dummy type units.
3176 (create_dwp_hash_table): Update the large comment above the function to
3177 discuss Version 5 DWP files as well, with references. Update all the
3178 version checks in the function to check for version 5 as well. Add new
3179 section at the end to create dwp hash table for version 5.
3180 (create_dwp_v2_section): Rename function to
3181 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3182 Add V5 to error message text.
3183 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3184 into calls to create_dwp_v2_or_v5_section.
3185 (create_dwo_unit_in_dwp_v5): New function.
3186 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3187 check for version2; add else clause to handle version 5.
3188 (open_and_init_dwo_file): Add code to check dwarf version & only call
3189 create_debug_types_hash_table (with sections.types) if version is not 5;
3190 else call create_debug_type_hash_table, with sections.info.
3191 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3192 version 5.
3193 (dwarf2_locate_v5_dwp_sections): New function.
3194 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3195 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3196
159ed7d9
SM
31972020-08-06 Simon Marchi <simon.marchi@efficios.com>
3198
3199 * regcache.h (class regcache): Remove friend
3200 registers_changed_ptid.
3201 <regcache_thread_ptid_changed>: Remove.
3202 <regcaches>: Remove.
3203 * regcache.c (regcache::regcaches): Rename to...
3204 (regcaches): ... this. Make static.
3205 (get_thread_arch_aspace_regcache): Update.
3206 (regcache::regcache_thread_ptid_changed): Rename to...
3207 (regcache_thread_ptid_changed): ... this. Update.
3208 (class regcache_access): Remove.
3209 (regcaches_test): Update.
3210 (_initialize_regcache): Update.
3211 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3212 <forward_list>.
3213
174981ae
SM
32142020-08-06 Simon Marchi <simon.marchi@efficios.com>
3215
3216 * regcache.h (class regcache) <current_regcache>: Rename to...
3217 <regcaches>: ... this. Move doc here.
3218 * regcache.c (regcache::current_regcache) Rename to...
3219 (regcache::regcaches): ... this. Move doc to header.
3220 (get_thread_arch_aspace_regcache): Update.
3221 (regcache::regcache_thread_ptid_changed): Update.
3222 (registers_changed_ptid): Update.
3223 (class regcache_access) <current_regcache_size>: Rename to...
3224 <regcaches_size>: ... this.
3225 (current_regcache_test): Rename to...
3226 (regcaches_test): ... this.
3227 (_initialize_regcache): Update.
3228
ed908db6
VC
32292020-08-06 Victor Collod <vcollod@nvidia.com>
3230
3231 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3232
b5582ab7
KB
32332020-08-05 Kevin Buettner <kevinb@redhat.com>
3234
3235 * corelow.c (core_target::build_file_mappings): Don't output
3236 null pathname in warning.
3237
ea946b86
SM
32382020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3239
3240 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3241 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3242 gdb.dwarf2/dw2-single-line-discriminators.exp,
3243 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3244
57d02173
TT
32452020-08-05 Tom Tromey <tromey@adacore.com>
3246
3247 PR rust/26197:
3248 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3249 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3250 Fix off-by-one and type size errors in ordinary case.
3251
5555c86d
TV
32522020-08-05 Tom de Vries <tdevries@suse.de>
3253
3254 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3255 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3256
97916bfe
SM
32572020-08-04 Simon Marchi <simon.marchi@efficios.com>
3258
3259 * frame.h (frame_id_p): Return bool.
3260 (frame_id_artificial_p): Return bool.
3261 (frame_id_eq): Return bool.
3262 (has_stack_frames): Return bool.
3263 (get_selected_frame): Fix typo in comment.
3264 (get_frame_pc_if_available): Return bool.
3265 (get_frame_address_in_block_if_available): Return bool.
3266 (get_frame_func_if_available): Return bool.
3267 (read_frame_register_unsigned): Return bool.
3268 (get_frame_register_bytes): Return bool.
3269 (safe_frame_unwind_memory): Return bool.
3270 (deprecated_frame_register_read): Return bool.
3271 (frame_unwinder_is): Return bool.
3272 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3273 bool.
3274 <this_id::p>: Likewise.
3275 <prev_p>: Likewise.
3276 (frame_stash_add): Return bool.
3277 (get_frame_id): Use bool.
3278 (frame_id_build_special) Use bool.
3279 (frame_id_build_unavailable_stack): Use bool.
3280 (frame_id_build): Use bool.
3281 (frame_id_p): Return bool, use true/false instead of 1/0.
3282 (frame_id_artificial_p): Likewise.
3283 (frame_id_eq): Likewise.
3284 (frame_id_inner): Likewise.
3285 (get_frame_func_if_available): Likewise.
3286 (read_frame_register_unsigned): Likewise.
3287 (deprecated_frame_register_read): Likewise.
3288 (get_frame_register_bytes): Likewise.
3289 (has_stack_frames): Likewise.
3290 (inside_main_func): Likewise.
3291 (inside_entry_func): Likewise.
3292 (get_frame_pc_if_available): Likewise.
3293 (get_frame_address_in_block_if_available): Likewise.
3294 (frame_unwinder_is): Likewise.
3295 (safe_frame_unwind_memory): Likewise.
3296 (frame_unwind_arch): Likewise.
3297
fedfee88
SM
32982020-08-04 Simon Marchi <simon.marchi@efficios.com>
3299
3300 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3301 type to cached_copy_status.
3302 (fprintf_frame): Adjust.
3303 (get_frame_func_if_available): Adjust.
3304 (frame_cleanup_after_sniffer): Adjust.
3305
6cfa9b59
MW
33062020-08-04 Mark Wielaard <mark@klomp.org>
3307
3308 * MAINTAINERS (Write After Approval): Update email address.
3309
66d6346b
SM
33102020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3311
3312 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3313 dynamic_prop::const_val.
3314
8a6d5e35
SM
33152020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3316
3317 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3318 dynamic_prop::kind.
3319
51d6067d
SM
33202020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3321
3322 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3323
b26e2ae7
JM
33242020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3325
3326 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3327
39791af2
JM
33282020-08-04 Weimin Pan <weimin.pan@oracle.com>
3329 Jose E. Marchesi <jose.marchesi@oracle.com>
3330
3331 * configure.tgt: Add entry for bpf-*-*.
3332 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3333 (ALLDEPFILES): Add bpf-tdep.c.
3334 * bpf-tdep.c: New file.
3335 * MAINTAINERS: Add bpf target and maintainer.
3336 * NEWS: Mention the support for the new target.
3337
521894aa
TV
33382020-08-04 Tom de Vries <tdevries@suse.de>
3339
3340 PR symtab/23270
3341 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3342 Error.
3343
5d6356e9
JB
33442020-08-03 John Baldwin <jhb@FreeBSD.org>
3345
3346 * syscalls/freebsd.xml: Regenerate.
3347
0cf82b81
JB
33482020-08-03 John Baldwin <jhb@FreeBSD.org>
3349
3350 * syscalls/update-freebsd.sh: Fix usage and year range.
3351
8f34b746
TV
33522020-08-03 Tom de Vries <tdevries@suse.de>
3353
3354 PR symtab/26333
3355 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3356 DW_LNE_lo_user/DW_LNE_hi_user range.
3357
5e500d33
SM
33582020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3359
3360 PR ada/26318
3361 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3362 kind.
3363
78319c15
TBA
33642020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3365
3366 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3367
4c55e970
TBA
33682020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3369
3370 * breakpoint.c (set_breakpoint_condition): Update the condition
3371 expressions after checking that the input condition string parses
3372 successfully and does not contain junk at the end.
3373
1e620590
TBA
33742020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3375
3376 * breakpoint.c (set_breakpoint_condition): Update the
3377 condition string after parsing the new condition successfully.
3378
c8693053
RO
33792020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3380
3381 * proc-api.c (_STRUCTURED_PROC): Don't define.
3382 * proc-events.c: Likewise.
3383 * proc-flags.c: Likewise.
3384 * proc-why.c: Likewise.
3385 * procfs.c: Likewise.
3386
3387 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3388 * configure, config.in: Regenerate.
3389
5a99adb8
TV
33902020-07-30 Tom de Vries <tdevries@suse.de>
3391
3392 PR build/26320
3393 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3394 m_red/m_green/m_blue in a union.
3395
8ba83e91
TV
33962020-07-29 Tom de Vries <tdevries@suse.de>
3397
3398 PR tdep/26280
3399 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3400
f75a0693
AB
34012020-07-28 Tom Tromey <tromey@adacore.com>
3402
3403 PR symtab/26270:
3404 * symtab.h (find_pc_partial_function_sym): Declare.
3405 * cli/cli-cmds.c (disassemble_command): Use
3406 find_pc_partial_function_sym. Check asm_demangle.
3407 * blockframe.c (cache_pc_function_sym): New global.
3408 (cache_pc_function_name): Remove.
3409 (clear_pc_function_cache): Update.
3410 (find_pc_partial_function_sym): New function, from
3411 find_pc_partial_function.
3412 (find_pc_partial_function): Rewrite using
3413 find_pc_partial_function_sym.
3414
16f3242c
TT
34152020-07-28 Tom Tromey <tromey@adacore.com>
3416
3417 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3418 help. Add usage.
3419
4888741a
TT
34202020-07-28 Tom Tromey <tromey@adacore.com>
3421
3422 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3423 <DW_OP_GNU_variable_value>: Cast to address type.
3424
4d46f402
KR
34252020-07-28 Kamil Rytarowski <n54@gmx.com>
3426
3427 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3428 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3429 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3430 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3431 (nbsd_get_siginfo_type): New.
3432 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3433 (_initialize_nbsd_tdep): New.
3434
d70f978b
L
34352020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3436
3437 PR binutils/26301
3438 * configure: Regenerated.
3439
377170fa
L
34402020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3441
3442 PR binutils/26301
3443 * configure: Regenerated.
3444
43d5901d
AB
34452020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3446
3447 * python/py-frame.c: Remove 'user-regs.h' include.
3448 (frapy_read_register): Rewrite to make use of
3449 gdbpy_parse_register_id.
3450 * python/py-registers.c (gdbpy_parse_register_id): New function,
3451 moved here from python/py-unwind.c. Updated the return type, and
3452 also accepts register descriptor objects.
3453 * python/py-unwind.c: Remove 'user-regs.h' include.
3454 (pyuw_parse_register_id): Moved to python/py-registers.c.
3455 (unwind_infopy_add_saved_register): Update to use
3456 gdbpy_parse_register_id.
3457 (pending_framepy_read_register): Likewise.
3458 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3459
14fa8fb3
AB
34602020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3461
3462 * python/py-registers.c: Add 'user-regs.h' include.
3463 (register_descriptor_iter_find): New function.
3464 (register_descriptor_iterator_object_methods): New static global
3465 methods array.
3466 (register_descriptor_iterator_object_type): Add pointer to methods
3467 array.
3468
ddce1758
JB
34692020-07-27 John Baldwin <jhb@FreeBSD.org>
3470
3471 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3472 for all architectures on FreeBSD 11.3 and later.
3473
a4089f52
TT
34742020-07-27 Tom Tromey <tromey@adacore.com>
3475
3476 * gcore.h (load_corefile): Don't declare.
3477
95420d30
TV
34782020-07-27 Tom de Vries <tdevries@suse.de>
3479
3480 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3481 * config.in: Regenerate.
3482 * configure: Regenerate.
3483
05a6b8c2
EZ
34842020-07-26 Eli Zaretskii <eliz@gnu.org>
3485
3486 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3487 ws2tcpip.h. When checking whether socklen_t type is defined, use
3488 ws2tcpip.h if it is available and sys/socket.h isn't.
3489 * configure: Regenerate.
3490 * config.in: Regenerate.
3491
e79eb02f
AB
34922020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3493
3494 PR fortran/23051
3495 PR fortran/26139
3496 * valops.c (value_ind): Pass address to
3497 readjust_indirect_value_type.
3498 * value.c (readjust_indirect_value_type): Make parameter
3499 non-const, and add extra address parameter. Resolve original type
3500 before using it.
3501 * value.h (readjust_indirect_value_type): Update function
3502 signature and comment.
3503
876518dd
TV
35042020-07-25 Tom de Vries <tdevries@suse.de>
3505
3506 PR symtab/26243
3507 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3508 entries.
3509
f6720b1c
AM
35102020-07-24 Aaron Merey <amerey@redhat.com>
3511
3512 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3513 * configure: Rebuild.
3514
513487e1
KB
35152020-07-23 Kevin Buettner <kevinb@redhat.com>
3516
3517 PR corefiles/26294
3518 * corelow.c (_initialize_corelow): Add period to help text
3519 for "maintenance print core-file-backed-mappings".
3520
e7bc9db8
PA
35212020-07-23 Pedro Alves <pedro@palves.net>
3522
3523 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3524 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3525 meanwhile.
3526 * frame.c (frame_cache_generation, get_frame_cache_generation):
3527 New.
3528 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3529 (get_prev_frame_if_no_cycle): On exception, don't touch
3530 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3531 * frame.h (get_frame_cache_generation): Declare.
3532
90fcc466
TV
35332020-07-23 Tom de Vries <tdevries@suse.de>
3534
3535 PR tui/26282
3536 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3537 New default constructor.
3538
78344df7
AB
35392020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3540
3541 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3542 exclude non-statement entries.
3543
b089853a
KB
35442020-07-22 Kevin Buettner <kevinb@redhat.com>
3545
3546 * NEWS (New commands): Mention new command
3547 "maintenance print core-file-backed-mappings".
3548
09c2f5d4
KB
35492020-07-22 Kevin Buettner <kevinb@redhat.com>
3550
3551 * corelow.c (gdbcmd.h): Include.
3552 (core_target::info_proc_mappings): New method.
3553 (get_current_core_target): New function.
3554 (maintenance_print_core_file_backed_mappings): New function.
3555 (_initialize_corelow): Add core-file-backed-mappings to
3556 "maint print" commands.
3557
9c5ec5c2 35582020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3559
9c5ec5c2
KB
3560 * linux-tdep.c (dump_note_entry_p): New function.
3561 (linux_dump_mapping_p_ftype): New typedef.
3562 (linux_find_memory_regions_full): Add new parameter,
3563 should_dump_mapping_p.
3564 (linux_find_memory_regions): Adjust call to
3565 linux_find_memory_regions_full.
3566 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3567 call to linux_find_memory_regions_full.
3568
db082f59
KB
35692020-07-22 Kevin Buettner <kevinb@redhat.com>
3570
3571 * corelow.c (solist.h, unordered_map): Include.
3572 (class core_target): Add field m_core_file_mappings and
3573 method build_file_mappings.
3574 (core_target::core_target): Call build_file_mappings.
3575 (core_target::~core_target): Free memory associated with
3576 m_core_file_mappings.
3577 (core_target::build_file_mappings): New method.
3578 (core_target::xfer_partial): Use m_core_file_mappings
3579 for memory transfers.
3580 * linux-tdep.c (linux_read_core_file_mappings): New
3581 function.
3582 (linux_core_info_proc_mappings): Rewrite to use
3583 linux_read_core_file_mappings.
3584 (linux_init_abi): Register linux_read_core_file_mappings.
3585
7e183d27
KB
35862020-07-22 Kevin Buettner <kevinb@redhat.com>
3587
3588 * arch-utils.c (default_read_core_file_mappings): New function.
3589 * arch-utils.c (default_read_core_file_mappings): Declare.
3590 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3591 * gdbarch.h, gdbarch.c: Regenerate.
3592
2735d421
KB
35932020-07-22 Kevin Buettner <kevinb@redhat.com>
3594
3595 PR corefiles/25631
3596 * corelow.c (core_target:xfer_partial): Revise
3597 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3598 case after first checking the stratum beneath the core
3599 target.
3600 (has_all_memory): Return true.
3601 * target.c (raw_memory_xfer_partial): Revise comment
3602 regarding use of has_all_memory.
3603
e56cb451
KB
36042020-07-22 Kevin Buettner <kevinb@redhat.com>
3605
3606 * exec.h (section_table_xfer_memory): Revise declaration,
3607 replacing section name parameter with an optional callback
3608 predicate.
3609 * exec.c (section_table_xfer_memory): Likewise.
3610 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3611 of section_table_xfer_memory.
3612
32fa152e
TT
36132020-07-22 Tom Tromey <tromey@adacore.com>
3614
3615 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3616 lookup_symbol_search_name.
3617
a67a1c41
AB
36182020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3619
3620 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3621 redundant local variable.
3622 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3623 reference, not pointer, update code accordingly.
3624
a7b4ff4f
SM
36252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3626 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3627
3628 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3629 * jit.c (jit_breakpoint_re_set_internal): Use the
3630 `skip_jit_symbol_lookup` field.
3631
2340e834
SM
36322020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3633 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3634
3635 * jit.c (jit_read_descriptor): Define the descriptor address once,
3636 use twice.
3637 (jit_breakpoint_deleted): Move the declaration of the loop variable
3638 `iter` into the loop header.
3639 (jit_breakpoint_re_set_internal): Move the declaration of the local
3640 variable `objf_data` to the first point of definition.
3641 (jit_event_handler): Move the declaration of local variables
3642 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3643 Rename `objf` to `jited`.
3644
c1072906
SM
36452020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3646
3647 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3648 Remove.
3649 * jit.c (get_jiter_objfile_data): Update.
3650
c8474dc3
TBA
36512020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3652 Simon Marchi <simon.marchi@polymtl.ca>
3653
3654 * jit.c (struct jit_program_space_data): Remove.
3655 (jit_program_space_key): Remove.
3656 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3657 stuff.
3658 (get_jit_program_space_data): Remove.
3659 (jit_breakpoint_deleted): Iterate on all of the program space's
3660 objfiles.
3661 (jit_inferior_init): Likewise.
3662 (jit_breakpoint_re_set_internal): Likewise. Also change return
3663 type to void.
3664 (jit_breakpoint_re_set): Pass current_program_space to
3665 jit_breakpoint_re_set_internal.
3666
77208eb7
SM
36672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3668
3669 * jit.h (struct jiter_objfile_data) <cached_code_address,
3670 jit_breakpoint>: Move to here from ...
3671 * jit.c (jit_program_space_data): ... here.
3672 (jiter_objfile_data::~jiter_objfile_data): Update.
3673 (jit_breakpoint_deleted): Update.
3674 (jit_breakpoint_re_set_internal): Update.
3675
8c1c720f
SM
36762020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3677
3678 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3679 checks.
3680 (jit_read_descriptor): Remove NULL check.
3681 (jit_event_handler): Add an assertion.
3682
0e74a041
SM
36832020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3684
3685 * jit.h (struct jit_objfile_data): Split into...
3686 (struct jiter_objfile_data): ... this ...
3687 (struct jited_objfile_data): ... and this.
3688 * objfiles.h (struct objfile) <jit_data>: Remove.
3689 <jiter_data, jited_data>: New fields.
3690 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3691 (jiter_objfile_data::~jiter_objfile_data): ... this.
3692 (get_jit_objfile_data): Rename to ...
3693 (get_jiter_objfile_data): ... this.
3694 (add_objfile_entry): Update.
3695 (jit_read_descriptor): Use get_jiter_objfile_data.
3696 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3697 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3698 (jit_inferior_exit_hook): Use objfile's jited_data field.
3699
238b5c9f
SM
37002020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3701
3702 * jit.h: Forward-declare `struct minimal_symbol`.
3703 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3704 constructor, destructor, and an objfile* field.
3705 * jit.c (jit_objfile_data): Remove.
3706 (struct jit_objfile_data): Migrate from here to jit.h.
3707 (jit_objfile_data::~jit_objfile_data): New destructor
3708 implementation with code moved from free_objfile_data.
3709 (free_objfile_data): Delete.
3710 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3711 (jit_find_objf_with_entry_addr): Ditto.
3712 (jit_inferior_exit_hook): Ditto.
3713 (_initialize_jit): Remove the call to
3714 register_objfile_data_with_cleanup.
3715 * objfiles.h (struct objfile) <jit_data>: New field.
3716
fe053b9e
TBA
37172020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3718
3719 * jit.h: Forward-declare `struct objfile`.
3720 (jit_event_handler): Add a second parameter, the JITer objfile.
3721 * jit.c (jit_read_descriptor): Change the signature to take the
3722 JITer objfile as an argument instead of the jit_program_space_data.
3723 (jit_inferior_init): Update the call to jit_read_descriptor.
3724 (jit_event_handler): Use the new JITer objfile argument when calling
3725 jit_read_descriptor.
3726 * breakpoint.c (handle_jit_event): Update the call to
3727 jit_event_handler to pass the JITer objfile.
3728
4cec0c66
JB
37292020-07-21 John Baldwin <jhb@FreeBSD.org>
3730
3731 * gdbarch.c: Regenerate.
3732 * gdbarch.h: Regenerate.
3733 * gdbarch.sh (handle_segmentation_fault): Remove method.
3734 * infrun.c (handle_segmentation_fault): Remove.
3735 (print_signal_received_reason): Remove call to
3736 handle_segmentation_fault.
3737
0e42f66a
JB
37382020-07-21 John Baldwin <jhb@FreeBSD.org>
3739
3740 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3741 Rename to sparc64_linux_report_signal_info and add siggnal
3742 argument.
3743 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3744 instead of sparc64_linux_handle_segmentation_fault.
3745
77bdfeb2
JB
37462020-07-21 John Baldwin <jhb@FreeBSD.org>
3747
3748 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3749 i386_linux_report_signal_info instead of
3750 i386_linux_handle_segmentation_fault.
3751 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3752 to i386_linux_report_signal_info and add siggnal argument.
3753 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3754 of i386_linux_handle_segmentation_fault.
3755 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3756 to i386_linux_report_signal_info and add siggnal argument.
3757
ad97bfc5
JB
37582020-07-21 John Baldwin <jhb@FreeBSD.org>
3759
3760 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3761 hook if present.
3762
272bb05c
JB
37632020-07-21 John Baldwin <jhb@FreeBSD.org>
3764
3765 * gdbarch.c: Regenerate.
3766 * gdbarch.h: Regenerate.
3767 * gdbarch.sh (report_signal_info): New method.
3768 * infrun.c (print_signal_received_reason): Invoke gdbarch
3769 report_signal_info hook if present.
3770
baf8791e
AB
37712020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3772
3773 * python/py-registers.c : Add 'unordered_map' include.
3774 (gdbpy_new_reggroup): Renamed to...
3775 (gdbpy_get_reggroup): ...this. Update to only create register
3776 group descriptors when needed.
3777 (gdbpy_reggroup_iter_next): Update.
3778
f7306dac
AB
37792020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3780
3781 * python/py-registers.c (gdbpy_register_object_data): New static
3782 global.
3783 (gdbpy_register_object_data_init): New function.
3784 (gdbpy_new_register_descriptor): Renamed to...
3785 (gdbpy_get_register_descriptor): ...this, and update to reuse
3786 existing register descriptors where possible.
3787 (gdbpy_register_descriptor_iter_next): Update.
3788 (gdbpy_initialize_registers): Register new gdbarch data.
3789
05c309a8
SM
37902020-07-21 Simon Marchi <simon.marchi@efficios.com>
3791
3792 * linux-nat.c (stopped_pids): Make static.
3793
d1fd641e
SM
37942020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3795
3796 PR ada/26235
3797 * gdbtypes.c (ada_discrete_type_low_bound,
3798 ada_discrete_type_high_bound): Handle undefined bounds.
3799
1de14d77
KR
38002020-07-21 Kamil Rytarowski <n54@gmx.com>
3801
3802 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3803 declaration.
3804 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3805 function.
3806
ed810cc7
JB
38072020-07-20 John Baldwin <jhb@FreeBSD.org>
3808
3809 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3810 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3811 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3812 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3813 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3814 method.
3815
ae5369e7
LC
38162020-07-20 Ludovic Courtès <ludo@gnu.org>
3817
3818 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3819 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3820 which are deprecated in Guile 3.0.
3821 * configure.ac (try_guile_versions): Add "guile-3.0".
3822 * configure (try_guile_versions): Regenerate.
3823 * NEWS: Update entry.
3824
68cf161c
LC
38252020-07-20 Ludovic Courtès <ludo@gnu.org>
3826 Doug Evans <dje@google.com>
3827
3828 PR gdb/21104
3829 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3830 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3831 USING_GUILE_BEFORE_2_2.
3832 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3833 Change type to 'scm_t_port_type *'.
3834 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3835 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3836 parameter and honor it. Update callers.
3837 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3838 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3839 functions.
3840 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3841 USING_GUILE_BEFORE_2_2.
3842 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3843 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3844 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3845 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3846 and 'SCM_PORT_TYPE'.
3847 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3848 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3849 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3850 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3851 [!USING_GUILE_BEFORE_2_2]: New functions.
3852 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3853 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3854 'gdbscm_memory_port_read'.
3855 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3856 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3857 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3858 function.
3859 (ioscm_init_memory_port): Remove.
3860 (ioscm_init_memory_port_stream): New function
3861 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3862 function.
3863 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3864 Return scm_from_uint (0).
3865 (gdbscm_set_memory_port_read_buffer_size_x)
3866 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3867 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3868 Return scm_from_uint (0).
3869 (gdbscm_set_memory_port_write_buffer_size_x)
3870 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3871 * configure.ac (try_guile_versions): Add "guile-2.2".
3872 * configure: Regenerate.
3873 * NEWS: Add entry.
3874
aee91db3
TT
38752020-07-18 Tom Tromey <tom@tromey.com>
3876
3877 * linux-nat.c (linux_multi_process): Remove.
3878 (linux_nat_target::supports_multi_process): Return true.
3879
0e267416
AB
38802020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3881
3882 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3883 (riscv_lookup_target_description): Return pointer out of
3884 unique_ptr.
3885 * target-descriptions.c (allocate_target_description): Add
3886 comment.
3887 (target_desc_deleter::operator()): Likewise.
3888 * target-descriptions.h (struct target_desc_deleter): Moved to
3889 gdbsupport/tdesc.h.
3890 (target_desc_up): Likewise.
3891
f80c8ec4
TT
38922020-07-17 Tom Tromey <tromey@adacore.com>
3893
3894 * linux-nat.c (linux_nat_target::supports_non_stop)
3895 (linux_nat_target::always_non_stop_p): Use "true".
3896 (linux_nat_target::supports_disable_randomization): Use "true" and
3897 "false".
3898
d0ce17d8
CT
38992020-07-16 Caroline Tice <cmtice@google.com>
3900
3901 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3902 (RNGLIST_HEADER_SIZE64): New constant definition.
3903 (struct dwop_section_names): Add rnglists_dwo.
3904 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3905 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3906 (struct dwo_sections): Add rnglists field.
3907 (read_attribut_reprocess): Add tag parameter.
3908 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3909 (cu_debug_rnglists_section): New function (decl & definition).
3910 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3911 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3912 die whose range is being checked; get rnglist section from
3913 cu_debug_rnglists_section, to get from either objfile or dwo file as
3914 appropriate. Add cases for DW_RLE_base_addressx,
3915 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3916 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3917 test inside if-condition and updating complaint message.
3918 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3919 dwarf2_rnglists_process.
3920 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3921 dwarf2_ranges_process.
3922 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3923 need_ranges_base and update comment appropriately. Also pass die tag
3924 to dwarf2_ranges_read.
3925 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3926 need_ranges_base and update comment appropriately. Also pass die tag
3927 to dwarf2_ranges_process.
3928 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3929 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3930 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3931 need_ranges_base and update comment appropriately. Also pass die tag
3932 to read_attribute_reprocess and dwarf2_ranges_read.
3933 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3934 and update function comment appropriately.
3935 (read_loclist_index): Call read_loclists_rnglists_header instead of
3936 read_loclist_header.
3937 (read_rnglist_index): New function.
3938 (read_attribute_reprocess): Add tag parameter. Add code for
3939 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3940 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3941
3dcc261c
AB
39422020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3943
3944 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3945 being resolved.
3946
ccb9eba6
AB
39472020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3948
3949 * arch-utils.c (show_architecture): Update formatting of messages.
3950
cf88be68
SM
39512020-07-12 Simon Marchi <simon.marchi@efficios.com>
3952
3953 * gdbtypes.h (struct type) <bounds>: Handle array and string
3954 types.
3955 * ada-lang.c (assign_aggregate): Use type::bounds on
3956 array/string type.
3957 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3958 * c-varobj.c (c_number_of_children): Likewise.
3959 (c_describe_child): Likewise.
3960 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3961 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3962 (f_type_print_base): Likewise.
3963 * f-valprint.c (f77_array_offset_tbl): Likewise.
3964 (f77_get_upperbound): Likewise.
3965 (f77_print_array_1): Likewise.
3966 * guile/scm-type.c (gdbscm_type_range): Likewise.
3967 * m2-typeprint.c (m2_array): Likewise.
3968 (m2_is_long_set_of_type): Likewise.
3969 * m2-valprint.c (get_long_set_bounds): Likewise.
3970 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3971 * python/py-type.c (typy_range): Likewise.
3972 * rust-lang.c (rust_internal_print_type): Likewise.
3973 * type-stack.c (type_stack::follow_types): Likewise.
3974 * valarith.c (value_subscripted_rvalue): Likewise.
3975 * valops.c (value_cast): Likewise.
3976
509971ae
SM
39772020-07-12 Simon Marchi <simon.marchi@efficios.com>
3978
3979 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3980 callers to use the equivalent accessor methods.
3981
107406b7
SM
39822020-07-12 Simon Marchi <simon.marchi@efficios.com>
3983
3984 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3985 (struct type) <bit_stride>: New method.
3986 (TYPE_BIT_STRIDE): Remove.
3987 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3988
bb789949
SM
39892020-07-12 Simon Marchi <simon.marchi@efficios.com>
3990
3991 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3992 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3993 callers to use the equivalent accessor methods instead.
3994
39498edb
SM
39952020-07-12 Simon Marchi <simon.marchi@efficios.com>
3996
3997 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3998 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3999 callers to use the equivalent accessor methods instead.
4000
3b606f38
SM
40012020-07-12 Simon Marchi <simon.marchi@efficios.com>
4002
4003 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4004 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4005 to use dynamic_prop::kind.
4006
064d9cb9
SM
40072020-07-12 Simon Marchi <simon.marchi@efficios.com>
4008
4009 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4010 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4011 to get the bound property's kind and check against
4012 PROP_UNDEFINED.
4013
5537ddd0
SM
40142020-07-12 Simon Marchi <simon.marchi@efficios.com>
4015
4016 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4017 all callers to use type::range_bounds followed by
4018 dynamic_prop::{low,high}.
4019
8c2e4e06
SM
40202020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4021
4022 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4023 const_val, set_const_val, baton, set_locexpr, set_loclist,
4024 set_addr_offset, variant_parts, set_variant_parts,
4025 original_type, set_original_type>: New methods.
4026 <kind>: Rename to...
4027 <m_kind>: ... this. Update all users to use the new methods
4028 instead.
4029 <data>: Rename to...
4030 <m_data>: ... this. Update all users to use the new methods
4031 instead.
4032
7c6f2712
SM
40332020-07-12 Simon Marchi <simon.marchi@efficios.com>
4034
4035 * gdbtypes.c (get_discrete_bounds): Return failure if
4036 the range type's bounds are not both defined and constant
4037 values.
4038 (get_array_bounds): Update comment. Remove undefined bound check.
4039
599088e3
SM
40402020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4041
4042 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4043 the type::bounds method directly.
4044
c4dfcb36
SM
40452020-07-12 Simon Marchi <simon.marchi@efficios.com>
4046
4047 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4048 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4049 are used to set the range type's bounds to use set_bounds.
4050
0a278aa7
PW
40512020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4052
4053 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4054
cce20f10
PA
40552020-07-10 Pedro Alves <pedro@palves.net>
4056
4057 * gdbthread.h (inferior_ref): Define.
4058 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4059 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4060 * thread.c
4061 (scoped_restore_current_thread::restore):
4062 Adjust to gdb::ref_ptr.
4063 (scoped_restore_current_thread::~scoped_restore_current_thread):
4064 Remove manual decref handling.
4065 (scoped_restore_current_thread::scoped_restore_current_thread):
4066 Adjust to use
4067 inferior_ref::new_reference/thread_info_ref::new_reference.
4068 Incref the thread before calling get_frame_id instead of after.
4069 Let TARGET_CLOSE_ERROR propagate.
4070
6d7aa592
PA
40712020-07-10 Pedro Alves <pedro@palves.net>
4072
4073 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4074 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4075 NOT_AVAILABLE_ERROR.
4076 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4077 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4078
b3e3a4c1
SM
40792020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4080 Pedro Alves <pedro@palves.net>
4081
4082 PR gdb/26199
4083 * infrun.c (threads_are_resumed_pending_p): Delete.
4084 (do_target_wait): Remove threads_are_executing and
4085 threads_are_resumed_pending_p checks from the inferior_matches
4086 lambda. Update comments.
4087
d6cc5d98
PA
40882020-07-10 Pedro Alves <pedro@palves.net>
4089
4090 PR gdb/26199
4091 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4092 executing threads.
4093
7d3badc6
PA
40942020-07-10 Pedro Alves <pedro@palves.net>
4095
4096 PR gdb/26199
4097 * infrun.c (handle_no_resumed): Handle multiple targets.
4098
42bd97a6
PA
40992020-07-10 Pedro Alves <pedro@palves.net>
4100
4101 PR gdb/26199
4102 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4103 target_is_async_p.
4104
43667cc6
PA
41052020-07-10 Pedro Alves <pedro@palves.net>
4106
4107 PR gdb/26199
4108 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4109 threads, not all threads.
4110
96118d11
PA
41112020-07-10 Pedro Alves <pedro@palves.net>
4112
4113 PR gdb/26199
4114 * remote.c (remote_target::open_1): Pass remote target pointer as
4115 data to create_async_event_handler.
4116 (remote_async_inferior_event_handler): Mark async event handler
4117 before returning if the remote target still has either pending
4118 events or unacknowledged notifications.
4119
54904d81
JB
41202020-07-10 John Baldwin <jhb@FreeBSD.org>
4121
4122 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4123 declaration.
4124 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4125 function.
4126
f37e5866
JB
41272020-07-09 John Baldwin <jhb@FreeBSD.org>
4128
4129 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4130 inferior_ptid.
4131
fc238d4a
JB
41322020-07-09 John Baldwin <jhb@FreeBSD.org>
4133
4134 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4135 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4136 AT_FREEBSD_PS_STRINGS.
4137
6e2469ff
HD
41382020-07-08 Hannes Domani <ssbssa@yahoo.de>
4139
4140 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4141 of debugfile path on Windows.
4142
d1076c41
JB
41432020-07-08 John Baldwin <jhb@FreeBSD.org>
4144
4145 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4146 argument to 'data'.
4147
15f3b077
TT
41482020-07-08 Tom Tromey <tromey@adacore.com>
4149
4150 * ada-lang.c (ada_exception_message_1): Use read_memory.
4151
9fc501fd
AB
41522020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4153
4154 PR python/22748
4155 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4156 special handling for inline frames.
4157 * findvar.c (value_of_register_lazy): Skip inline frames when
4158 creating lazy register values.
4159 * frame.c (frame_id_computed_p): Delete definition.
4160 * frame.h (frame_id_computed_p): Delete declaration.
4161
64cb3757
AB
41622020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4163
4164 * NEWS: Mention additions to Python API.
4165 * python/py-arch.c (archpy_register_groups): New function.
4166 (arch_object_methods): Add 'register_groups' method.
4167 * python/py-registers.c (reggroup_iterator_object): New struct.
4168 (reggroup_object): New struct.
4169 (gdbpy_new_reggroup): New function.
4170 (gdbpy_reggroup_to_string): New function.
4171 (gdbpy_reggroup_name): New function.
4172 (gdbpy_reggroup_iter): New function.
4173 (gdbpy_reggroup_iter_next): New function.
4174 (gdbpy_new_reggroup_iterator): New function
4175 (gdbpy_initialize_registers): Register new types.
4176 (reggroup_iterator_object_type): Define new Python type.
4177 (gdbpy_reggroup_getset): New static global.
4178 (reggroup_object_type): Define new Python type.
4179 * python/python-internal.h
4180
0f767f94
AB
41812020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4182
4183 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4184 * python/py-arch.c (archpy_registers): New function.
4185 (arch_object_methods): Add 'registers' method.
4186 * python/py-registers.c: New file.
4187 * python/python-internal.h
4188 (gdbpy_new_register_descriptor_iterator): Declare.
4189 (gdbpy_initialize_registers): Declare.
4190 * python/python.c (do_start_initialization): Call
4191 gdbpy_initialize_registers.
4192 * NEWS: Mention additions to the Python API.
4193
87dbc774
AB
41942020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4195
4196 * NEWS: Mention new Python API method.
4197 * python/py-unwind.c (pending_framepy_architecture): New function.
4198 (pending_frame_object_methods): Add architecture method.
4199
3bc98c0c
AB
42002020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4201
4202 * gdbarch.c: Regenerate.
4203 * gdbarch.h: Regenerate.
4204 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4205 (gdbarch_data): Use internal_error for the case where
4206 deprecated_set_gdbarch_data was originally needed.
4207 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4208 and use passed in obstack.
4209 (libunwind_frame_set_descr): Should no longer get back NULL from
4210 gdbarch_data.
4211 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4212 type.
4213 * user-regs.c (user_regs_init): Update parameters, and use passed
4214 in obstack.
4215 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4216 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4217
d8cc8af6
TV
42182020-07-06 Tom de Vries <tdevries@suse.de>
4219
4220 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4221 End-Of-Sequence in lte_is_less_than.
4222 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4223 "gdb: Don't reorder line table entries too much when sorting".
4224
947f7597
TV
42252020-07-06 Tom de Vries <tdevries@suse.de>
4226
4227 PR tui/26205
4228 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4229
1e7c1b22
TV
42302020-07-05 Tom de Vries <tdevries@suse.de>
4231
4232 PR build/26187
4233 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4234 std::uncaught_exceptions instead of deprecated
4235 std::uncaught_exception.
4236
a36158ec
SM
42372020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4238
4239 * macroexp.h (macro_stringify): Return
4240 gdb::unique_xmalloc_ptr<char>.
4241 * macroexp.c (macro_stringify): Likewise.
4242 * macrotab.c (fixup_definition): Update.
4243
14d960c8
SM
42442020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4245
4246 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4247 (lex_one_token): Update.
4248 * macroexp.c (struct macro_buffer) <release>: Return
4249 gdb::unique_xmalloc_ptr<char>.
4250 (macro_stringify): Update.
4251 (macro_expand): Update.
4252 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4253 * macroexp.h (macro_expand_next): Likewise.
4254
211d5b1c
SM
42552020-07-02 Simon Marchi <simon.marchi@efficios.com>
4256
4257 * macroexp.h (macro_lookup_ftype): Remove.
4258 (macro_expand, macro_expand_once, macro_expand_next): Remove
4259 lookup function parameters, add scope parameter.
4260 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4261 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4262 * macroscope.h (standard_macro_lookup): Change parameter type
4263 to macro_scope.
4264 * macroscope.c (standard_macro_lookup): Likewise.
4265 * c-exp.y (lex_one_token): Update.
4266 * macrocmd.c (macro_expand_command): Likewise.
4267 (macro_expand_once_command): Likewise.
4268
b1a35af2
SM
42692020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4270
4271 * inf-loop.c (inferior_event_handler): Remove client_data param.
4272 * inf-loop.h (inferior_event_handler): Likewise.
4273 * infcmd.c (step_1): Adjust.
4274 * infrun.c (proceed): Adjust.
4275 (fetch_inferior_event): Remove client_data param.
4276 (infrun_async_inferior_event_handler): Adjust.
4277 * infrun.h (fetch_inferior_event): Remove `void *` param.
4278 * linux-nat.c (handle_target_event): Adjust.
4279 * record-btrace.c (record_btrace_handle_async_inferior_event):
4280 Adjust.
4281 * record-full.c (record_full_async_inferior_event_handler):
4282 Adjust.
4283 * remote.c (remote_async_inferior_event_handler): Adjust.
4284
1cdf9e33
TT
42852020-07-01 Tom Tromey <tom@tromey.com>
4286
4287 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4288 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4289
32c1e210
TT
42902020-07-01 Tom Tromey <tom@tromey.com>
4291
4292 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4293 tui_gen_win_info.
4294 (tui_win_info::make_window): Merge with
4295 tui_gen_win_info::make_window.
4296 (tui_win_info::make_visible): Move from tui_gen_win_info.
4297 * tui/tui-win.c (tui_win_info::max_width): Move from
4298 tui_gen_win_info.
4299 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4300 type.
4301 <window_factory>: Likewise.
4302 * tui/tui-layout.c (tui_win_info::resize): Move from
4303 tui_gen_win_info.
4304 (make_standard_window): Change return type.
4305 (get_locator_window, tui_get_window_by_name): Likewise.
4306 (tui_layout_window::apply): Remove a cast.
4307 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4308 (struct tui_win_info): Merge with tui_gen_win_info.
4309 (struct tui_gen_win_info): Remove.
4310
a30cb6da
TT
43112020-07-01 Tom Tromey <tom@tromey.com>
4312
4313 * tui/tui-stack.h (struct tui_locator_window): Derive from
4314 tui_win_info.
4315 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4316 <can_box>: New method.
4317
1eb2161f
TT
43182020-07-01 Tom Tromey <tom@tromey.com>
4319
4320 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4321
7134f2eb
TT
43222020-07-01 Tom Tromey <tom@tromey.com>
4323
4324 * tui/tui-regs.c (tui_data_window::display_registers_from)
4325 (tui_data_window::display_registers_from)
4326 (tui_data_window::first_data_item_displayed)
4327 (tui_data_window::delete_data_content_windows): Update.
4328 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4329 Remove.
4330 (tui_data_window::check_register_values): Update.
4331 (tui_data_item_window::rerender): Add parameters. Update.
4332 (tui_data_item_window::refresh_window): Remove.
4333 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4334 virtual.
4335 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4336 tui_gen_win_info.
4337 <refresh_window, max_height, min_height>: Remove.
4338 <rerender>: Add parameters.
4339 <x, y, visible>: New members.
4340 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4341 <m_item_width>: New member.
4342
22b7b041
TT
43432020-07-01 Tom Tromey <tom@tromey.com>
4344
4345 * tui/tui-regs.c (tui_data_window::show_register_group)
4346 (tui_data_window::check_register_values): Update.
4347 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4348 from item_no.
4349
c9753adb
TT
43502020-07-01 Tom Tromey <tom@tromey.com>
4351
4352 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4353 useless "if".
4354
9ab26b4a
TT
43552020-07-01 Tom Tromey <tom@tromey.com>
4356
4357 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4358 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4359
e555083f
TT
43602020-07-01 Tom Tromey <tom@tromey.com>
4361
4362 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4363 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4364 (struct tui_line_or_address): Move from tui-data.h.
4365 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4366 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4367 (tui_cmd_window, tui_source_window_base, tui_source_window)
4368 (tui_disasm_window): Don't declare.
4369 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4370 to tui-winsource.h.
4371 (SINGLE_KEY): Move to tui-stack.c.
4372
7a02bab7
TT
43732020-07-01 Tom Tromey <tom@tromey.com>
4374
4375 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4376 std::string.
4377 * tui/tui-regs.c (class tab_expansion_file): New.
4378 (tab_expansion_file::write): New method.
4379 (tui_register_format): Change return type. Use
4380 tab_expansion_file.
4381 (tui_get_register, tui_data_window::display_registers_from)
4382 (tui_data_item_window::rerender): Update.
4383 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4384 * tui/tui-io.c (tui_expand_tabs): Remove.
4385
ea68593b
TT
43862020-07-01 Tom Tromey <tom@tromey.com>
4387
4388 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4389
a8caed5d
FS
43902020-07-01 Fangrui Song <maskray@google.com>
4391
4392 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4393
9cdf9820
AKS
43942020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4395
4396 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4397 forms for DW_AT_associated and DW_AT_allocated attributes,
4398 which is already checked in function attr_to_dynamic_prop.
4399
a1520ad8
TT
44002020-06-30 Tom Tromey <tromey@adacore.com>
4401
4402 * dwarf2/read.c (quirk_rust_enum): Correctly call
4403 alloc_rust_variant for default-less enum.
4404
5ac58899
TT
44052020-06-30 Tom Tromey <tromey@adacore.com>
4406
4407 PR build/26183:
4408 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4409 gdb::to_string.
4410
19b187a9
SM
44112020-06-29 Simon Marchi <simon.marchi@efficios.com>
4412
4413 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4414 * gdbarch.h: Re-generate.
4415
cd4c4c07
TT
44162020-06-28 Tom Tromey <tom@tromey.com>
4417
4418 * command.h (cmd_types): Remove.
4419 (cmd_type): Don't declare.
4420 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4421 typedef.
4422 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4423 * cli/cli-decode.c (cmd_type): Remove.
4424
05779d57
PA
44252020-06-27 Pedro Alves <palves@redhat.com>
4426
4427 * fork-child.c (prefork_hook): Adjust.
4428 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4429 Delete.
4430 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4431 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4432 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4433 Remove declarations.
4434 (struct inferior) <set_tty, tty>: New methods.
4435 (struct inferior) <terminal>: Rename to ...
4436 (struct inferior) <m_terminal>: ... this and make private.
4437 * main.c (captured_main_1): Adjust.
4438 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4439 (mi_cmd_inferior_tty_show): Adjust.
4440 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4441 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4442
1776e3e5
NA
44432020-06-26 Nick Alcock <nick.alcock@oracle.com>
4444
4445 * configure.ac: Add --enable-libctf: handle --disable-static
4446 properly.
4447 * acinclude.m4: sinclude ../config/enable.m4.
4448 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4449 (LIBCTF): Substitute in.
4450 (CTF_DEPS): New, likewise.
4451 (CLIBS): libctf needs symbols from libbfd: move earlier.
4452 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4453 flags.
4454 * ctfread.c: Surround in ENABLE_LIBCTF.
4455 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4456 * configure: Regenerate.
4457 * config.in: Likewise.
4458
58373b80
SM
44592020-06-25 Simon Marchi <simon.marchi@efficios.com>
4460
4461 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4462
277474ee
SM
44632020-06-25 Simon Marchi <simon.marchi@efficios.com>
4464
4465 * inferior.h (struct inferior) <terminal>: Change type to
4466 gdb::unique_xmalloc_ptr<char>.
4467 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4468 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4469 field, adjust to unique pointer.
4470 (get_inferior_io_terminal): Adjust to unique pointer.
4471
6d74da72
AB
44722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4473
4474 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4475 registers, not just the known core set of registers.
4476
2e52d038
AB
44772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4478
4479 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4480 fflags, frm, and fcsr registers.
4481 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4482 restore groups.
4483 (riscv_tdesc_unknown_reg): New function.
4484 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4485 tdesc_use_registers.
4486 * riscv-tdep.h (struct gdbarch_tdep): Add
4487 unknown_csrs_first_regnum, unknown_csrs_count,
4488 duplicate_fflags_regnum, duplicate_frm_regnum, and
4489 duplicate_fcsr_regnum fields.
4490
be64fd07
AB
44912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4492
4493 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4494 callback, use the callback (when not null) to help number unknown
4495 registers.
4496 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4497 (tdesc_use_registers): Add extra parameter to declaration.
4498
3b9fce96
AB
44992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4500
4501 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4502 in the file.
4503 (class riscv_pending_register_alias): Likewise.
4504 (riscv_register_feature::register_info): Change 'required_p' field
4505 to 'required', and change its type. Add 'check' member function.
4506 (riscv_register_feature::register_info::check): Define new member
4507 function.
4508 (riscv_xreg_feature): Change initialisation of 'required' field.
4509 (riscv_freg_feature): Likewise.
4510 (riscv_virtual_feature): Likewise.
4511 (riscv_csr_feature): Likewise.
4512 (riscv_check_tdesc_feature): Take extra parameter, the csr
4513 tdesc_feature, rewrite the function to use the new
4514 riscv_register_feature::register_info::check function.
4515 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4516
865bad26
AB
45172020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4518
4519 * features/Makefile: Remove all references to the deleted files
4520 below.
4521 * features/riscv/32bit-csr.c: Deleted.
4522 * features/riscv/32bit-csr.xml: Deleted.
4523 * features/riscv/64bit-csr.c: Deleted.
4524 * features/riscv/64bit-csr.xml: Deleted.
4525 * features/riscv/rebuild-csr-xml.sh: Deleted.
4526
ed69cbc8
AB
45272020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4528
4529 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4530 whitespace error for declaration of names member variable.
4531 (struct riscv_register_feature): Add new prefer_first_name member
4532 variable, and fix whitespace error in declaration of registers.
4533 (riscv_xreg_feature): Initialize prefer_first_name field.
4534 (riscv_freg_feature): Likewise.
4535 (riscv_virtual_feature): Likewise.
4536 (riscv_csr_feature): Likewise.
4537 (riscv_register_name): Expand on comments. Remove register name
4538 modifications for CSR and virtual registers.
4539
4445e8f5
AB
45402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4541
4542 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4543 errors.
4544
767a879e
AB
45452020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4546
4547 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4548 riscv-opc.h.
4549 (class riscv_pending_register_alias): New class.
4550 (riscv_check_tdesc_feature): Take vector of pending aliases and
4551 populate it as appropriate.
4552 (riscv_setup_register_aliases): Delete.
4553 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4554 to riscv_check_tdesc_feature in all cases. Use the vector to
4555 create the register aliases.
4556
bb6e55f3
RO
45572020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4558
4559 * sol2-tdep.c (sol2_static_transform_name): Remove.
4560 (sol2_init_abi): Don't register it.
4561 * gdbarch.sh (static_transform_name): Remove.
4562 * gdbarch.c, gdbarch.h: Regenerate.
4563
4564 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4565 gdbarch_static_transform_name.
4566 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4567 * stabsread.c (define_symbol) <'X'>: Remove.
4568 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4569 handling.
4570 <'V'>: Likewise.
4571 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4572 <'S'>: Remove call to gdbarch_static_transform_name.
4573
c6d36836
RO
45742020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4575
4576 * procfs.c (procfs_pre_trace): New function.
4577 (procfs_target::create_inferior): Pass it to fork_inferior.
4578
a7e6196b
RO
45792020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4580
4581 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4582 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4583 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4584 sol2-tdep.o, sparc-sol2-tdep.o.
4585 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4586 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4587 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4588 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4589
d412e696
RO
45902020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4591
4592 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4593 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4594 Call sol2_init_abi.
4595 Remove calls to set_gdbarch_skip_solib_resolver,
4596 set_gdbarch_core_pid_to_str.
4597 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4598 (i386_sol2_static_transform_name): Remove.
4599 (i386_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, set_gdbarch_core_pid_to_str.
4603 Use sol2_sigtramp_p.
4604 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4605 (sol2_sigtramp_p): New function.
4606 (sol2_static_transform_name): New function.
4607 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4608 (sol2_init_abi): New function.
4609 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4610 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4611 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4612 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4613 (sparc_sol2_static_transform_name): Remove.
4614 (sparc32_sol2_init_abi): Call sol2_init_abi.
4615 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4616 set_gdbarch_static_transform_name,
4617 set_gdbarch_skip_solib_resolver,
4618 set_gdbarch_core_pid_to_str.
4619 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4620 (sparc_sol2_static_transform_name): Remove
4621 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4622 call sol2_sigtramp_p.
4623 (sparc64_sol2_init_abi): Call sol2_init_abi.
4624 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4625 set_gdbarch_static_transform_name,
4626 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4627
a8654e7d
PW
46282020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4629
4630 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4631 * exec.c (validate_exec_file): If from_tty, set both
4632 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4633 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4634 and from_tty, unconditionally ask a confirmation.
4635
caa7fd04
AB
46362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4637
4638 * target-descriptions.c (tdesc_architecture_name): Protect against
4639 NULL pointer dereference.
4640 (maint_print_xml_tdesc_cmd): New function.
4641 (_initialize_target_descriptions): Register new 'maint print
4642 xml-tdesc' command and give it the filename completer.
4643 * NEWS: Mention new 'maint print xml-tdesc' command.
4644
fbf42f4e
AB
46452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4646
4647 * target-descriptions.c (class tdesc_compatible_info): New class.
4648 (struct target_desc): Change type of compatible vector.
4649 (tdesc_compatible_p): Update for change in type of
4650 target_desc::compatible.
4651 (tdesc_compatible_info_list): New function.
4652 (tdesc_compatible_info_arch_name): New function.
4653 (tdesc_add_compatible): Update for change in type of
4654 target_desc::compatible.
4655 (print_c_tdesc::visit_pre): Likewise.
4656
20821f4e
AB
46572020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4658
4659 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4660 whitespace to underscore.
4661 (maint_print_c_tdesc_cmd): Use fake filename for target
4662 descriptions that came from the target.
4663 (_initialize_target_descriptions): Add filename command completion
4664 for 'maint print c-tdesc'.
4665
1fb5ee62
SM
46662020-06-23 Simon Marchi <simon.marchi@efficios.com>
4667
4668 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4669 lines.
4670
fc3ecb3e
SM
46712020-06-23 Simon Marchi <simon.marchi@efficios.com>
4672
4673 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4674 lines.
4675 (dwarf2_find_location_expression): Likewise.
4676 (call_site_parameter_matches): Likewise.
4677 (dwarf2_compile_expr_to_ax): Likewise.
4678 (disassemble_dwarf_expression): Likewise.
4679 (loclist_describe_location): Likewise.
4680
236ef034
PA
46812020-06-23 Pedro Alves <palves@redhat.com>
4682
4683 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4684 progspace-and-thread.h. Include scoped-mock-context.h instead.
4685 (register_to_value_test): Use scoped_mock_context.
4686 * regcache.c: Include "scoped-mock-context.h".
4687 (cooked_read_test): Don't error out if a target is already pushed.
4688 Use scoped_mock_context. Adjust.
4689 * scoped-mock-context.h: New file.
4690
39e7ecca
AB
46912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4692
4693 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4694 initializer.
4695 (ada_language::is_string_type_p): New member function.
4696 * c-lang.c (c_language_data): Delete la_is_string_type_p
4697 initializer.
4698 (cplus_language_data): Likewise.
4699 (asm_language_data): Likewise.
4700 (minimal_language_data): Likewise.
4701 * d-lang.c (d_language_data): Likewise.
4702 * f-lang.c (f_is_string_type_p): Delete function, implementation
4703 moved to f_language::is_string_type_p.
4704 (f_language_data): Delete la_is_string_type_p initializer.
4705 (f_language::is_string_type_p): New member function,
4706 implementation from f_is_string_type_p.
4707 * go-lang.c (go_is_string_type_p): Delete function, implementation
4708 moved to go_language::is_string_type_p.
4709 (go_language_data): Delete la_is_string_type_p initializer.
4710 (go_language::is_string_type_p): New member function,
4711 implementation from go_is_string_type_p.
4712 * language.c (language_defn::is_string_type_p): Define new member
4713 function.
4714 (default_is_string_type_p): Make static, add comment copied from
4715 header file.
4716 (unknown_language_data): Delete la_is_string_type_p initializer.
4717 (unknown_language::is_string_type_p): New member function.
4718 (auto_language_data): Delete la_is_string_type_p initializer.
4719 (auto_language::is_string_type_p): New member function.
4720 * language.h (language_data): Delete la_is_string_type_p field.
4721 (language_defn::is_string_type_p): Declare new function.
4722 (default_is_string_type_p): Delete desclaration, move comment to
4723 definition.
4724 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4725 moved to m2_language::is_string_type_p.
4726 (m2_language_data): Delete la_is_string_type_p initializer.
4727 (m2_language::is_string_type_p): New member function,
4728 implementation from m2_is_string_type_p.
4729 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4730 initializer.
4731 * opencl-lang.c (opencl_language_data): Likewise.
4732 * p-lang.c (pascal_is_string_type_p): Delete function,
4733 implementation moved to pascal_language::is_string_type_p.
4734 (pascal_language_data): Delete la_is_string_type_p initializer.
4735 (pascal_language::is_string_type_p): New member function,
4736 implementation from pascal_is_string_type_p.
4737 * rust-lang.c (rust_is_string_type_p): Delete function,
4738 implementation moved to rust_language::is_string_type_p.
4739 (rust_language_data): Delete la_is_string_type_p initializer.
4740 (rust_language::is_string_type_p): New member function,
4741 implementation from rust_is_string_type_p.
4742 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4743 is_string_type_p.
4744
4ffc13fb
AB
47452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4746
4747 * ada-lang.c (ada_language_data): Delete la_print_typedef
4748 initializer.
4749 (ada_language::print_typedef): New member function.
4750 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4751 (cplus_language_data): Likewise.
4752 (asm_language_data): Likewise.
4753 (minimal_language_data): Likewise.
4754 * d-lang.c (d_language_data): Likewise.
4755 * f-lang.c (f_language_data): Likewise.
4756 (f_language::print_typedef): New member function.
4757 * go-lang.c (go_language_data): Delete la_print_typedef
4758 initializer.
4759 * language.c (language_defn::print_typedef): Define member
4760 function.
4761 (unknown_language_data): Delete la_print_typedef initializer.
4762 (unknown_language::print_typedef): New member function.
4763 (auto_language_data): Delete la_print_typedef initializer.
4764 (auto_language::print_typedef): New member function.
4765 * language.h (language_data): Delete la_print_typedef field.
4766 (language_defn::print_typedef): Declare new member function.
4767 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4768 (default_print_typedef): Delete declaration.
4769 * m2-lang.c (m2_language_data): Delete la_print_typedef
4770 initializer.
4771 (m2_language::print_typedef): New member function.
4772 * objc-lang.c (objc_language_data): Delete la_print_typedef
4773 initializer.
4774 * opencl-lang.c (opencl_language_data): Likewise.
4775 * p-lang.c (pascal_language_data): Likewise.
4776 (pascal_language::print_typedef): New member function.
4777 * rust-lang.c (rust_print_typedef): Delete function,
4778 implementation moved to rust_language::print_typedef.
4779 (rust_language): Delete la_print_typedef initializer.
4780 (rust_language::print_typedef): New member function,
4781 implementation from rust_print_typedef.
4782 * typeprint.c (default_print_typedef): Delete.
4783
d711ee67
AB
47842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4785
4786 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4787 (ada_language::printstr): New member function.
4788 * c-lang.c (c_language_data): Delete la_printstr initializer.
4789 (cplus_language_data): Likewise.
4790 (asm_language_data): Likewise.
4791 (minimal_language_data): Likewise.
4792 * d-lang.c (d_language_data): Likewise.
4793 * f-lang.c (f_printstr): Rename to f_language::printstr.
4794 (f_language_data): Delete la_printstr initializer.
4795 (f_language::printstr): New member function, implementation from
4796 f_printstr.
4797 * go-lang.c (go_language_data): Delete la_printstr initializer.
4798 * language.c (language_defn::printstr): Define new member
4799 function.
4800 (unk_lang_printstr): Delete.
4801 (unknown_language_data): Delete la_printstr initializer.
4802 (unknown_language::printstr): New member function.
4803 (auto_language_data): Delete la_printstr initializer.
4804 (auto_language::printstr): New member function.
4805 * language.h (language_data): Delete la_printstr field.
4806 (language_defn::printstr): Declare new member function.
4807 (LA_PRINT_STRING): Update call to printstr.
4808 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4809 (m2_language_data): Delete la_printstr initializer.
4810 (m2_language::printstr): New member function, implementation from
4811 m2_printstr.
4812 * objc-lang.c (objc_language_data): Delete la_printstr
4813 initializer.
4814 * opencl-lang.c (opencl_language_data): Likewise.
4815 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4816 (pascal_language_data): Delete la_printstr initializer.
4817 (pascal_language::printstr): New member function, implementation
4818 from pascal_printstr.
4819 * p-lang.h (pascal_printstr): Delete declaration.
4820 * rust-lang.c (rust_printstr): Update header comment.
4821 (rust_language_data): Delete la_printstr initializer.
4822 (rust_language::printstr): New member function.
4823
52b50f2c
AB
48242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4825
4826 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4827 (ada_language::printchar): New member function.
4828 * c-lang.c (c_language_data): Delete la_printchar initializer.
4829 (cplus_language_data): Likewise.
4830 (asm_language_data): Likewise.
4831 (minimal_language_data): Likewise.
4832 * d-lang.c (d_language_data): Likewise.
4833 * f-lang.c (f_printchar): Rename to f_language::printchar.
4834 (f_language_data): Delete la_printchar initializer.
4835 (f_language::printchar): New member function, implementation from
4836 f_printchar.
4837 * go-lang.c (go_language_data): Delete la_printchar initializer.
4838 * language.c (unk_lang_printchar): Delete.
4839 (language_defn::printchar): Define new member function.
4840 (unknown_language_data): Delete la_printchar initializer.
4841 (unknown_language::printchar): New member function.
4842 (auto_language_data): Delete la_printchar initializer.
4843 (auto_language::printchar): New member function.
4844 * language.h (language_data): Delete la_printchar field.
4845 (language_defn::printchar): Declare new member function.
4846 (LA_PRINT_CHAR): Update call to printchar.
4847 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4848 (m2_language::printchar): New member function.
4849 * objc-lang.c (objc_language_data): Delete la_printchar
4850 initializer.
4851 * opencl-lang.c (opencl_language_data): Likewise.
4852 * p-lang.c (pascal_language_data): Delete la_printchar
4853 initializer.
4854 (pascal_language::printchar): New member function.
4855 * rust-lang.c (rust_printchar): Rename to
4856 rust_language::printchar.
4857 (rust_language_data): Delete la_printchar initializer.
4858 (rust_language::printchar): New member function, implementation
4859 from rust_printchar.
4860
ec8cec5b
AB
48612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4862
4863 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4864 (ada_language_data): Delete la_emitchar initializer.
4865 (ada_language::emitchar): New member function, implementation from
4866 emit_char.
4867 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4868 (cplus_language_data): Likewise.
4869 (asm_language_data): Likewise.
4870 (minimal_language_data): Likewise.
4871 * d-lang.c (d_language_data): Likewise.
4872 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4873 (f_language_data): Delete la_emitchar initializer.
4874 (f_language::emitchar): New member function, implementation from
4875 f_emit_char.
4876 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4877 * language.c (unk_lang_emit_char): Delete.
4878 (language_defn::emitchar): New member function definition.
4879 (unknown_language_data): Delete la_emitchar initializer.
4880 (unknown_language::emitchar): New member function.
4881 (auto_language_data): Delete la_emitchar initializer.
4882 (auto_language::emitchar): New member function.
4883 * language.h (language_data): Delete la_emitchar field.
4884 (language_defn::emitchar): New member field declaration.
4885 (LA_EMIT_CHAR): Update call to emitchar.
4886 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4887 (m2_language_data): Delete la_emitchar initializer.
4888 (m2_language::emitchar): New member function, implementation from
4889 m2_emit_char.
4890 * objc-lang.c (objc_language_data): Delete la_emitchar
4891 initializer.
4892 * opencl-lang.c (opencl_language_data): Likewise.
4893 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4894 (pascal_language_data): Delete la_emitchar initializer.
4895 (pascal_language::emitchar): New member function, implementation
4896 from pascal_emit_char.
4897 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4898 (rust_language_data): Delete la_emitchar initializer.
4899 (rust_language::emitchar): New member function, implementation
4900 from rust_emitchar.
4901
1bf9c363
AB
49022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4903
4904 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4905 (ada_language_data): Delete la_post_parser initializer.
4906 (ada_language::post_parser): New member function.
4907 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4908 (cplus_language_data): Likewise.
4909 (asm_language_data): Likewise.
4910 (minimal_language_data): Likewise.
4911 * d-lang.c (d_language_data): Likewise.
4912 * f-lang.c (f_language_data): Likewise.
4913 * go-lang.c (go_language_data): Likewise.
4914 * language.c (unknown_language_data): Likewise.
4915 (auto_language_data): Likewise.
4916 * language.h (language_data): Delete la_post_parser field.
4917 (language_defn::post_parser): New member function.
4918 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4919 * objc-lang.c (objc_language_data): Likewise.
4920 * opencl-lang.c (opencl_language_data): Likewise.
4921 * p-lang.c (pascal_language_data): Likewise.
4922 * parse.c (parse_exp_in_context): Update call to post_parser.
4923 (null_post_parser): Delete definition.
4924 * parser-defs.h (null_post_parser): Delete declaration.
4925 * rust-lang.c (rust_language_data): Delete la_post_parser
4926 initializer.
4927
87afa652
AB
49282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4929
4930 * ada-lang.c (parse): Rename to ada_language::parser.
4931 (ada_language_data): Delete la_parser initializer.
4932 (ada_language::parser): New member function, implementation from
4933 parse.
4934 * c-lang.c (c_language_data): Delete la_parser initializer.
4935 (cplus_language_data): Likewise.
4936 (asm_language_data): Likewise.
4937 (minimal_language_data): Likewise.
4938 * d-lang.c (d_language_data): Likewise.
4939 (d_language::parser): New member function.
4940 * f-lang.c (f_language_data): Delete la_parser initializer.
4941 (f_language::parser): New member function.
4942 * go-lang.c (go_language_data): Delete la_parser initializer.
4943 (go_language::parser): New member function.
4944 * language.c (unk_lang_parser): Delete.
4945 (language_defn::parser): Define new member function.
4946 (unknown_language_data): Delete la_parser initializer.
4947 (unknown_language::parser): New member function.
4948 (auto_language_data): Delete la_parser initializer.
4949 (auto_language::parser): New member function.
4950 * language.h (language_data): Delete la_parser field.
4951 (language_defn::parser): Declare new member function.
4952 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4953 (m2_language::parser): New member function.
4954 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4955 * opencl-lang.c (opencl_language_data): Likewise.
4956 * p-lang.c (pascal_language_data): Likewise.
4957 (pascal_language::parser): New member function.
4958 * parse.c (parse_exp_in_context): Update call to parser.
4959 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4960 (rust_language::parser): New member function.
4961
37825800
AB
49622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4963
4964 * top.c (print_gdb_configuration): Print --with-python-libdir
4965 configuration value.
4966
5b860c93
PW
49672020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4968
4969 * NEWS: Mention change to the alias command.
4970
cf00cd6f
PW
49712020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4972
4973 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4974 (alias_command_completer)
4975 (make_alias_options_def_group): New functions.
4976 (alias_opts, alias_option_defs): New struct and array.
4977 (alias_usage_error): Update usage.
4978 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4979 Use option framework.
4980 (_initialize_cli_cmds): Update alias command help.
4981 Update aliases command help.
4982 (show_user):
4983 Add NULL for new default_args lookup_cmd argument.
4984 (valid_command_p): Rename to validate_aliased_command.
4985 Add NULL for new default_args lookup_cmd argument. Verify that the
4986 aliased_command has no default args.
4987 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4988 (lookup_cmd_1, lookup_cmd): New argument default_args.
4989 (add_alias_cmd):
4990 Add NULL for new default_args lookup_cmd argument.
4991 (print_help_for_command): Show default args under the layout
4992 alias some_alias = some_aliased_cmd some_alias_default_arg.
4993 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4994 xfree default_args in destructor.
4995 * cli/cli-script.c (process_next_line, do_define_command):
4996 Add NULL for new default_args lookup_cmd argument.
4997 * command.h: Declare new default_args argument in lookup_cmd
4998 and lookup_cmd_1.
4999 * completer.c (complete_line_internal_1):
5000 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5001 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5002 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5003 Likewise.
5004 * infcmd.c (_initialize_infcmd): Likewise.
5005 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5006 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5007 * python/py-param.c (add_setshow_generic): Likewise.
5008 * remote.c (_initialize_remote): Likewise.
5009 * top.c (execute_command): Prepend default_args if command has some.
5010 (set_verbose):
5011 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5012 * tracepoint.c (validate_actionline, encode_actions_1):
5013 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5014
bd920864
TBA
50152020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5016
5017 * jit.c (jit_read_descriptor): Use bool as the return type.
5018 (jit_breakpoint_re_set_internal): Use bool as the return type.
5019 Invert the return value logic; return true if the jit breakpoint
5020 has been successfully initialized.
5021 (jit_inferior_init): Update the call to
5022 jit_breakpoint_re_set_internal.
5023
f8098322
PA
50242020-06-22 Pedro Alves <palves@redhat.com>
5025
5026 PR gdb/25939
5027 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5028 Use the current inferior instead. Don't return
5029 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5030 wait again.
5031 * sol-thread.c (sol_thread_target::wait): Don't reference
5032 inferior_ptid.
5033 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5034 (sol_update_thread_list_callback): Use the current inferior's pid
5035 instead of inferior_ptid.
5036
196535a6
RO
50372020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5038
5039 * procfs.c: Cleanup many comments.
5040
5041 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5042 (AFTER_WATCHFLAG): Replace by value.
5043
5044 (MAIN_PROC_NAME_FORMAT): Inline ...
5045 (create_procinfo): ... here.
5046
5047 (procfs_debug_inferior): Remove SYS_exec handling.
5048 (syscall_is_exec): Likewise.
5049 (procfs_set_exec_trap): Likewise.
5050
5051 (syscall_is_lwp_exit): Inline in callers.
5052 (syscall_is_exit): Likewise.
5053 (syscall_is_exec): Likewise.
5054 (syscall_is_lwp_create): Likewise.
5055
5056 (invalidate_cache): Remove #if 0 code.
5057
5058 (make_signal_thread_runnable): Remove.
5059 (procfs_target::resume): Remove #if 0 code.
5060
cf6f3e86
RO
50612020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5062
5063 PR gdb/25939
5064 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5065 call ...
5066 (procfs_target::create_inferior): ... here.
5067
48e9cc84
PW
50682020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5069
5070 * exec.c (validate_exec_file): Ensure the build-id is up to
5071 date by calling reopen_exec_file (that checks file timestamp
5072 to decide to re-read the file).
5073
3922b302
PA
50742020-06-18 Pedro Alves <palves@redhat.com>
5075
5076 PR gdb/25412
5077 * gdbthread.h (delete_thread, delete_thread_silent)
5078 (find_thread_ptid): Update comments.
5079 * thread.c (current_thread_): New global.
5080 (is_current_thread): Move higher, and reimplement.
5081 (inferior_thread): Reimplement.
5082 (set_thread_exited): Use bool. Add assertions.
5083 (add_thread_silent): Simplify thread-reuse handling by always
5084 calling delete_thread.
5085 (delete_thread): Remove intro comment.
5086 (find_thread_ptid): Skip exited threads.
5087 (switch_to_thread_no_regs): Write to current_thread_.
5088 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5089 INFERIOR_PTID. Clear current_thread_.
5090
6dbdab44
PA
50912020-06-18 Pedro Alves <palves@redhat.com>
5092
5093 * aix-thread.c (pd_update): Use switch_to_thread.
5094
2da4b788
PA
50952020-06-18 Pedro Alves <palves@redhat.com>
5096
5097 * ravenscar-thread.c (ravenscar_thread_target): Update.
5098 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5099 (ravenscar_thread_target::add_active_thread): ... this. Don't
5100 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5101 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5102
50838d1b
PA
51032020-06-18 Pedro Alves <palves@redhat.com>
5104
5105 * nat/windows-nat.c (current_windows_thread): Remove.
5106 * nat/windows-nat.h (current_windows_thread): Remove.
5107 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5108 Adjust.
5109 (display_selectors): Adjust to fetch the current
5110 windows_thread_info based on inferior_ptid.
5111 (fake_create_process): No longer write to current_windows_thread.
5112 (windows_nat_target::get_windows_debug_event):
5113 Don't set inferior_ptid or current_windows_thread.
5114 (windows_nat_target::wait): Adjust to not rely on
5115 current_windows_thread.
5116 (do_initial_windows_stuff): Now a method of windows_nat_target.
5117 Switch to the last_ptid thread.
5118 (windows_nat_target::attach): Adjust.
5119 (windows_nat_target::detach): Use switch_to_no_thread instead of
5120 writing to inferior_ptid directly.
5121 (windows_nat_target::create_inferior): Adjust.
5122
31ce04e9
PA
51232020-06-18 Pedro Alves <palves@redhat.com>
5124
5125 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5126
1ee1a363
PA
51272020-06-18 Pedro Alves <palves@redhat.com>
5128
5129 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5130 after creating it, instead of writing to inferior_ptid. Don't
5131 write to inferior_ptid.
5132
6d350754
PA
51332020-06-18 Pedro Alves <palves@redhat.com>
5134
5135 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5136
5d971d48
PA
51372020-06-18 Pedro Alves <palves@redhat.com>
5138
5139 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5140 it, instead of writing to inferior_ptid.
5141
86e57d1b
PA
51422020-06-18 Pedro Alves <palves@redhat.com>
5143
5144 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5145 to inferior_ptid.
5146
f2e1c129
PA
51472020-06-18 Pedro Alves <palves@redhat.com>
5148
5149 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5150 instead of writing to inferior_ptid directly.
5151
60db1b85
PA
51522020-06-18 Pedro Alves <palves@redhat.com>
5153
5154 * corelow.c (core_target::close): Use switch_to_no_thread instead
5155 of writing to inferior_ptid directly.
5156 (add_to_thread_list, core_target_open): Use switch_to_thread
5157 instead of writing to inferior_ptid directly.
5158
fe7d6a8d
PA
51592020-06-18 Pedro Alves <palves@redhat.com>
5160
5161 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5162 inferior_ptid.
5163 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5164 inferior_ptid.
5165 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5166 inferior_ptid directly.
5167 (darwin_nat_target::init_thread_list): Switch to thread, instead
5168 of writing to inferior_ptid.
5169 (darwin_nat_target::attach): Don't write to inferior_ptid.
5170 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5171
975f8708
PA
51722020-06-18 Pedro Alves <palves@redhat.com>
5173
5174 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5175 thread.
5176 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5177 Instead use switch_to_thread.
5178 (gnu_nat_target::detach): Use switch_to_no_thread
5179 instead of writing to inferior_ptid directly. Used passed-in
5180 inferior instead of looking up the inferior by pid.
5181
1a204730
PA
51822020-06-18 Pedro Alves <palves@redhat.com>
5183
5184 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5185 inferior_ptid.
5186
ebe84f23
PA
51872020-06-18 Pedro Alves <palves@redhat.com>
5188
5189 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5190 inferior_ptid.
5191 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5192 thread.
5193 (nto_procfs_target::detach): Avoid referencing
5194 inferior_ptid. Use switch_to_no_thread instead of writing to
5195 inferior_ptid directly.
5196 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5197 instead of writing to inferior_ptid directly.
5198 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5199 to thread.
5200
191f02e5
PA
52012020-06-18 Pedro Alves <palves@redhat.com>
5202
5203 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5204 after creating it, instead of writing to inferior_ptid.
5205 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5206 to inferior_ptid directly.
5207 (gdbsim_target::wait): Don't write to inferior_ptid.
5208
0ac55310
PA
52092020-06-18 Pedro Alves <palves@redhat.com>
5210
5211 * remote.c (remote_target::remote_notice_new_inferior): Use
5212 switch_to_thread instead of writing to inferior_ptid directly.
5213 (remote_target::add_current_inferior_and_thread): Use
5214 switch_to_no_thread instead of writing to inferior_ptid directly.
5215 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5216 and switch_to_thread instead of using set_current_inferior or
5217 writing to inferior_ptid directly.
5218
5233f39b
PA
52192020-06-18 Pedro Alves <palves@redhat.com>
5220
5221 * tracectf.c (ctf_target_open): Switch to added thread instead of
5222 writing to inferior_ptid directly.
5223 (ctf_target::close): Use switch_to_no_thread instead of writing to
5224 inferior_ptid directly.
5225
087e161b
PA
52262020-06-18 Pedro Alves <palves@redhat.com>
5227
5228 * tracefile-tfile.c (tfile_target_open): Don't write to
5229 inferior_ptid directly, instead switch to added thread.
5230 (tfile_target::close): Use switch_to_no_thread instead of writing
5231 to inferior_ptid directly.
5232
7fb43e53
PA
52332020-06-18 Pedro Alves <palves@redhat.com>
5234
5235 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5236 (procfs_target::detach): Use switch_to_no_thread
5237 instead of writing to inferior_ptid directly.
5238 (do_attach): Change return type to void. Switch to the added
5239 thread.
5240 (procfs_target::create_inferior): Switch to the added thread.
5241 (procfs_do_thread_registers): Don't write to inferior_ptid.
5242
18493a00
PA
52432020-06-18 Pedro Alves <palves@redhat.com>
5244
5245 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5246 of writing to inferior_ptid.
5247 (scoped_restore_exited_inferior): Delete.
5248 (handle_vfork_child_exec_or_exit): Simplify using
5249 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5250 instead of writing to inferior_ptid.
5251 (THREAD_STOPPED_BY): Delete.
5252 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5253 (thread_stopped_by_hw_breakpoint): Delete.
5254 (save_waitstatus): Use
5255 scoped_restore_current_thread+switch_to_thread, and call
5256 target_stopped_by_watchpoint instead of
5257 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5258 instead of thread_stopped_by_sw_breakpoint, and
5259 target_stopped_by_hw_breakpoint instead of
5260 thread_stopped_by_hw_breakpoint.
5261 (handle_inferior_event)
5262 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5263 inferior_ptid directly, nor
5264 set_current_inferior/set_current_program_space. Use
5265 switch_to_thread / switch_to_inferior_no_thread instead.
5266
a0776b13
PA
52672020-06-18 Pedro Alves <palves@redhat.com>
5268
5269 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5270 instead of writing to inferior_ptid.
5271
6155c136
PA
52722020-06-18 Pedro Alves <palves@redhat.com>
5273
5274 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5275 added thread.
5276 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5277 to the added thread.
5278 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5279 instead of writing to inferior_ptid.
5280
c5316fc6
PA
52812020-06-18 Pedro Alves <palves@redhat.com>
5282
5283 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5284 (register_to_value_test): Mock a program_space too. Heap-allocate
5285 the address space. Don't write to inferior_ptid. Use
5286 switch_to_thread instead.
5287
8df01799
PA
52882020-06-18 Pedro Alves <palves@redhat.com>
5289
5290 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5291 Delete.
5292 (find_signalled_thread()): New, factored out from
5293 linux_make_corefile_notes and adjusted to handle exited threads.
5294 (linux_make_corefile_notes): Adjust to use the new
5295 find_signalled_thread.
5296
41792d68
PA
52972020-06-18 Pedro Alves <palves@redhat.com>
5298
5299 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5300 of saving/restoring inferior_ptid.
5301
612f258a
TT
53022020-06-17 Tom Tromey <tom@tromey.com>
5303
5304 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5305 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5306 declare.
5307 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5308
efb763a5
SM
53092020-06-15 Simon Marchi <simon.marchi@efficios.com>
5310
5311 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5312 of partial symtabs.
5313
2951f6c0
SM
53142020-06-17 Simon Marchi <simon.marchi@efficios.com>
5315
5316 * regformats/reg-arm.dat: Remove.
5317 * regformats/reg-bfin.dat: Remove.
5318 * regformats/reg-cris.dat: Remove.
5319 * regformats/reg-crisv32.dat: Remove.
5320 * regformats/reg-m32r.dat: Remove.
5321 * regformats/reg-tilegx.dat: Remove.
5322 * regformats/reg-tilegx32.dat: Remove.
5323
7d458ea5
SM
53242020-06-17 Simon Marchi <simon.marchi@efficios.com>
5325
5326 * features/Makefile (WHICH): Remove arm files.
5327 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5328 * regformats/arm/arm-with-neon.dat: Remove.
5329 * regformats/arm/arm-with-vfpv2.dat: Remove.
5330 * regformats/arm/arm-with-vfpv3.dat: Remove.
5331
3af96c0d
SM
53322020-06-17 Simon Marchi <simon.marchi@efficios.com>
5333
5334 * features/Makefile (XMLTOC): Remove rx.xml.
5335
b25e22fd
PA
53362020-06-17 Pedro Alves <palves@redhat.com>
5337
5338 * gdbthread.h (thread_control_state) <trap_expected> Update
5339 comments.
5340
a78a19b1
AB
53412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5342
5343 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5344 ada_language::lookup_symbol_nonlocal.
5345 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5346 (ada_language::lookup_symbol_nonlocal): New member function,
5347 implementation from ada_lookup_symbol_nonlocal.
5348 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5349 initializer.
5350 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5351 initializer.
5352 (cplus_language::lookup_symbol_nonlocal): New member function.
5353 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5354 (minimal_language_data) Likewise.
5355 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5356 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5357 initializer.
5358 (d_language::lookup_symbol_nonlocal): New member function.
5359 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5360 initializer.
5361 (f_language::lookup_symbol_nonlocal): New member function.
5362 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5363 initializer.
5364 * language.c (unknown_language_data): Likewise.
5365 (auto_language_data): Likewise.
5366 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5367 field.
5368 (language_defn::lookup_symbol_nonlocal): New member function.
5369 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5370 initializer.
5371 * objc-lang.c (objc_language_data): Likewise.
5372 * opencl-lang.c (opencl_language_data): Likewise.
5373 * p-lang.c (pascal_language_data): Likewise.
5374 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5375 rust_language::lookup_symbol_nonlocal.
5376 (rust_language_data): Delete la_lookup_symbol_nonlocal
5377 initializer.
5378 (rust_language::lookup_symbol_nonlocal): New member function,
5379 implementation from rust_lookup_symbol_nonlocal.
5380 * symtab.c (lookup_symbol_aux): Update call to
5381 lookup_symbol_nonlocal.
5382 (basic_lookup_symbol_nonlocal): Rename to...
5383 (language_defn::lookup_symbol_nonlocal): ...this, and update
5384 header comment. Remove language_defn parameter, and replace with
5385 uses of `this'.
5386 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5387
ebe2334e
AB
53882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5389
5390 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5391 initializer.
5392 (ada_language::value_print_inner): New member function.
5393 * c-lang.c (c_language_data): Delete la_value_print_inner
5394 initializer.
5395 (cplus_language_data): Likewise.
5396 (asm_language_data): Likewise.
5397 (minimal_language_data): Likewise.
5398 * d-lang.c (d_language_data): Likewise.
5399 (d_language::value_print_inner): New member function.
5400 * f-lang.c (f_language_data): Delete la_value_print_inner
5401 initializer.
5402 (f_language::value_print_inner): New member function.
5403 * f-lang.h (f_value_print_innner): Rename to...
5404 (f_value_print_inner): ...this (note spelling of 'inner').
5405 * f-valprint.c (f_value_print_innner): Rename to...
5406 (f_value_print_inner): ...this (note spelling of 'inner').
5407 * go-lang.c (go_language_data): Delete la_value_print_inner
5408 initializer.
5409 (go_language::value_print_inner): New member function.
5410 * language.c (language_defn::value_print_inner): Define new member
5411 function.
5412 (unk_lang_value_print_inner): Delete.
5413 (unknown_language_data): Delete la_value_print_inner initializer.
5414 (unknown_language::value_print_inner): New member function.
5415 (auto_language_data): Delete la_value_print_inner initializer.
5416 (auto_language::value_print_inner): New member function.
5417 * language.h (language_data): Delete la_value_print_inner field.
5418 (language_defn::value_print_inner): Delcare new member function.
5419 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5420 initializer.
5421 (m2_language::value_print_inner): New member function.
5422 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5423 initializer.
5424 * opencl-lang.c (opencl_language_data): Likewise.
5425 * p-lang.c (pascal_language_data): Likewise.
5426 (pascal_language::value_print_inner): New member function.
5427 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5428 initializer.
5429 (rust_language::value_print_inner): New member function.
5430 * valprint.c (do_val_print): Update call to value_print_inner.
5431
a1d1fa3e
AB
54322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5433
5434 * ada-lang.c (ada_language_data): Delete la_value_print
5435 initializer.
5436 (ada_language::value_print): New member function.
5437 * c-lang.c (c_language_data): Delete la_value_print initializer.
5438 (cplus_language_data): Likewise.
5439 (asm_language_data): Likewise.
5440 (minimal_language_data): Likewise.
5441 * d-lang.c (d_language_data): Likewise.
5442 * f-lang.c (f_language_data): Likewise.
5443 * go-lang.c (go_language_data): Likewise.
5444 * language.c (unk_lang_value_print): Delete.
5445 (language_defn::value_print): Define new member function.
5446 (unknown_language_data): Delete la_value_print initializer.
5447 (unknown_language::value_print): New member function.
5448 (auto_language_data): Delete la_value_print initializer.
5449 (auto_language::value_print): New member function.
5450 * language.h (language_data): Delete la_value_print field.
5451 (language_defn::value_print): Declare new member function.
5452 (LA_VALUE_PRINT): Update call to value_print.
5453 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5454 * objc-lang.c (objc_language_data): Likewise.
5455 * opencl-lang.c (opencl_language_data): Likewise.
5456 * p-lang.c (pascal_language_data): Likewise.
5457 (pascal_language::value_print): New member function.
5458 * rust-lang.c (rust_language_data): Delete la_value_print
5459 initializer.
5460
f16a9f57
AB
54612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5462
5463 * ada-lang.c (ada_watch_location_expression): Rename to
5464 ada_language::watch_location_expression.
5465 (ada_language_data): Delete la_watch_location_expression
5466 initializer.
5467 (ada_language::watch_location_expression): New member function,
5468 implementation from ada_watch_location_expression.
5469 * breakpoint.c (watch_command_1): Update call to
5470 watch_location_expression.
5471 * c-lang.c (c_watch_location_expression): Rename to
5472 language_defn::watch_location_expression.
5473 (c_language_data): Delete la_watch_location_expression
5474 initializer.
5475 (cplus_language_data): Likewise.
5476 (asm_language_data): Likewise.
5477 (minimal_language_data): Likewise.
5478 * c-lang.h (c_watch_location_expression): Delete declaration.
5479 * d-lang.c (d_language_data): Delete la_watch_location_expression
5480 initializer.
5481 * f-lang.c (f_language_data): Likewise.
5482 * go-lang.c (go_language_data): Likewise.
5483 * language.c (language_defn::watch_location_expression): Member
5484 function implementation from c_watch_location_expression.
5485 (unknown_language_data): Delete la_watch_location_expression
5486 initializer.
5487 (auto_language_data): Likewise.
5488 * language.h (language_data): Delete la_watch_location_expression
5489 field.
5490 (language_defn::watch_location_expression): Declare new member
5491 function.
5492 * m2-lang.c (m2_language_data): Delete
5493 la_watch_location_expression initializer.
5494 * objc-lang.c (objc_language_data): Likewise.
5495 * opencl-lang.c (opencl_language_data): Likewise.
5496 * p-lang.c (pascal_language_data): Likewise.
5497 * rust-lang.c (rust_watch_location_expression): Rename to
5498 rust_language::watch_location_expression.
5499 (rust_language_data): Delete la_watch_location_expression
5500 initializer.
5501 (rust_language::watch_location_expression): New member function,
5502 implementation from rust_watch_location_expression.
5503
7e56227d
AB
55042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5505
5506 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5507 ada_language::collect_symbol_completion_matches.
5508 (ada_language_data): Delete la_collect_symbol_completion_matches
5509 initializer.
5510 (ada_language::collect_symbol_completion_matches): New member
5511 function, implementation from
5512 ada_collect_symbol_completion_matches.
5513 * c-lang.c (c_language_data): Delete
5514 la_collect_symbol_completion_matches initializer.
5515 (cplus_language_data): Likewise.
5516 (asm_language_data): Likewise.
5517 (minimal_language_data): Likewise.
5518 * d-lang.c (d_language_data): Likewise.
5519 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5520 f_language::collect_symbol_completion_matches.
5521 (f_language_data): Delete la_collect_symbol_completion_matches
5522 initializer.
5523 (f_language::collect_symbol_completion_matches) New member
5524 function, implementation from f_collect_symbol_completion_matches.
5525 * go-lang.c (go_language_data): Delete
5526 la_collect_symbol_completion_matches initializer.
5527 * language.c (unknown_language_data): Likewise.
5528 (auto_language_data): Likewise.
5529 * language.h (language_data): Delete
5530 la_collect_symbol_completion_matches field.
5531 (language_defn::collect_symbol_completion_matches): New member
5532 function.
5533 * m2-lang.c (m2_language_data): Delete
5534 la_collect_symbol_completion_matches initializer.
5535 * objc-lang.c (objc_language_data): Likewise.
5536 * opencl-lang.c (opencl_language_data): Likewise.
5537 * p-lang.c (pascal_language_data): Likewise.
5538 * rust-lang.c (rust_language_data): Likewise.
5539 * symtab.c (default_collect_symbol_completion_matches): Delete.
5540 (collect_symbol_completion_matches): Update call to
5541 collect_symbol_completion_matches.
5542 (collect_symbol_completion_matches_type): Likewise.
5543 * symtab.h (default_collect_symbol_completion_matches): Delete
5544 declaration.
5545
53fc67f8
AB
55462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5547
5548 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5549 (ada_language_data): Delete la_word_break_characters initializer.
5550 (ada_language::word_break_characters): New member function.
5551 * c-lang.c (c_language_data): Delete la_word_break_characters
5552 initializer.
5553 (cplus_language_data): Likewise.
5554 (asm_language_data): Likewise.
5555 (minimal_language_data): Likewise.
5556 * completer.c: Update global comment.
5557 (advance_to_expression_complete_word_point): Update call to
5558 word_break_characters.
5559 (complete_files_symbols): Likewise.
5560 (complete_line_internal_1): Likewise.
5561 (default_completer_handle_brkchars): Likewise.
5562 (skip_quoted_chars): Likewise.
5563 * d-lang.c (d_language_data): Delete la_word_break_characters
5564 initializer.
5565 * f-lang.c (f_word_break_characters): Delete.
5566 (f_language_data): Delete la_word_break_characters initializer.
5567 (f_language::word_break_characters): New member function.
5568 * go-lang.c (go_language_data): Delete la_word_break_characters
5569 initializer.
5570 * language.c (unknown_language_data): Likewise.
5571 (auto_language_data): Likewise.
5572 * language.h (default_word_break_characters): Move declaration to
5573 earlier in the file.
5574 (language_data): Delete la_word_break_characters field.
5575 (language_defn::word_break_characters): New member function.
5576 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5577 initializer.
5578 * objc-lang.c (objc_language_data): Likewise.
5579 * opencl-lang.c (opencl_language_data): Likewise.
5580 * p-lang.c (pascal_language_data): Likewise.
5581 * rust-lang.c (rust_language_data): Likewise.
5582
c9debfb9
AB
55832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5584
5585 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5586 (ada_language_data): Delete la_get_symbol_name_matcher
5587 initializer.
5588 (language_defn::get_symbol_name_matcher_inner): New member
5589 function.
5590 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5591 initializer.
5592 (cplus_language_data): Likewise.
5593 (cplus_language::get_symbol_name_matcher_inner): New member
5594 function.
5595 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5596 (minimal_language_data): Likewise.
5597 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5598 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5599 initializer.
5600 * dictionary.c (iter_match_first_hashed): Update call to
5601 get_symbol_name_matcher.
5602 (iter_match_next_hashed): Likewise.
5603 (iter_match_next_linear): Likewise.
5604 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5605 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5606 initializer.
5607 (f_language::get_symbol_name_matcher_inner): New member function.
5608 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5609 initializer.
5610 * language.c (default_symbol_name_matcher): Update header comment,
5611 make static.
5612 (language_defn::get_symbol_name_matcher): New definition.
5613 (language_defn::get_symbol_name_matcher_inner): Likewise.
5614 (get_symbol_name_matcher): Delete.
5615 (unknown_language_data): Delete la_get_symbol_name_matcher
5616 initializer.
5617 (auto_language_data): Likewise.
5618 * language.h (language_data): Delete la_get_symbol_name_matcher
5619 field.
5620 (language_defn::get_symbol_name_matcher): New member function.
5621 (language_defn::get_symbol_name_matcher_inner): Likewise.
5622 (default_symbol_name_matcher): Delete declaration.
5623 * linespec.c (find_methods): Update call to
5624 get_symbol_name_matcher.
5625 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5626 initializer.
5627 * minsyms.c (lookup_minimal_symbol): Update call to
5628 get_symbol_name_matcher.
5629 (iterate_over_minimal_symbols): Likewise.
5630 * objc-lang.c (objc_language_data): Delete
5631 la_get_symbol_name_matcher initializer.
5632 * opencl-lang.c (opencl_language_data): Likewise.
5633 * p-lang.c (pascal_language_data): Likewise.
5634 * psymtab.c (psymbol_name_matches): Update call to
5635 get_symbol_name_matcher.
5636 * rust-lang.c (rust_language_data): Delete
5637 la_get_symbol_name_matcher initializer.
5638 * symtab.c (symbol_matches_search_name): Update call to
5639 get_symbol_name_matcher.
5640 (compare_symbol_name): Likewise.
5641
9a49ad8c
AB
56422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5643
5644 * ada-lang.c (ada_language_data): Delete la_compute_program
5645 initializer.
5646 * c-lang.c (c_language_data): Likewise.
5647 (c_language::compute_program): New member function.
5648 (cplus_language_data): Delete la_compute_program initializer.
5649 (cplus_language::compute_program): New member function.
5650 (asm_language_data): Delete la_compute_program initializer.
5651 (minimal_language_data): Likewise.
5652 * c-lang.h (c_compute_program): Update comment.
5653 (cplus_compute_program): Likewise.
5654 * compile/compile-c-support.c (c_compute_program): Likewise.
5655 (cplus_compute_program): Likewise.
5656 * compile/compile.c (compile_to_object): Update call to
5657 la_compute_program.
5658 * d-lang.c (d_language_data): Delete la_compute_program
5659 initializer.
5660 * f-lang.c (f_language_data): Likewise.
5661 * go-lang.c (go_language_data): Likewise.
5662 * language.c (unknown_language_data): Likewise.
5663 (auto_language_data): Likewise.
5664 * language.h (language_data): Delete la_compute_program field.
5665 (language_defn::compute_program): New member function.
5666 * m2-lang.c (m2_language_data): Delete la_compute_program
5667 initializer.
5668 * objc-lang.c (objc_language_data): Likewise.
5669 * opencl-lang.c (opencl_language_data): Likewise.
5670 * p-lang.c (pascal_language_data): Likewise.
5671 * rust-lang.c (rust_language_data): Likewise.
5672
eff93b4d
AB
56732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5674
5675 * ada-lang.c (ada_language_data) Delete
5676 la_class_name_from_physname initializer.
5677 * c-lang.c (c_language_data): Likewise.
5678 (cplus_language_data): Likewise.
5679 (cplus_language::class_name_from_physname): New member function.
5680 (asm_language_data): Delete la_class_name_from_physname
5681 initializer.
5682 (minimal_language_data): Likewise.
5683 * d-lang.c (d_language_data): Likewise.
5684 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5685 method on language_defn class.
5686 (guess_full_die_structure_name): Likewise.
5687 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5688 initializer.
5689 * go-lang.c (go_language_data): Likewise.
5690 * language.c (language_class_name_from_physname): Delete.
5691 (unk_lang_class_name): Delete.
5692 (unknown_language_data): Delete la_class_name_from_physname
5693 initializer.
5694 (auto_language_data): Likewise.
5695 * language.h (language_data): Delete la_class_name_from_physname
5696 field.
5697 (language_defn::class_name_from_physname): New function.
5698 (language_class_name_from_physname): Delete declaration.
5699 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5700 initializer.
5701 * objc-lang.c (objc_language_data): Likewise.
5702 * opencl-lang.c (opencl_language_data): Likewise.
5703 * p-lang.c (pascal_language_data): Likewise.
5704 * rust-lang.c (rust_language_data): Likewise.
5705
de543742
TT
57062020-06-16 Tom Tromey <tom@tromey.com>
5707
5708 * tui/tui-data.h (STATUS_NAME): New macro.
5709 * tui/tui-layout.c (tui_remove_some_windows)
5710 (initialize_known_windows, tui_register_window)
5711 (tui_layout_split::remove_windows, initialize_layouts)
5712 (tui_new_layout_command): Don't use hard-coded window names.
5713
a350efd4
TT
57142020-06-16 Tom Tromey <tom@tromey.com>
5715
5716 PR tui/25348:
5717 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5718 tui_initialize_readline. Only run once. Call rl_initialize.
5719 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5720 tui_initialize_readline.
5721 * tui/tui-io.c (tui_setup_io): Call
5722 tui_ensure_readline_initialized.
5723 * tui/tui-interp.c (tui_interp::init): Update.
5724
39ec0490
TT
57252020-06-16 Tom Tromey <tom@tromey.com>
5726
5727 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5728 Also preserve the status window.
5729
d2d1ea20
TT
57302020-06-16 Tom Tromey <tom@tromey.com>
5731
5732 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5733 where m_window==nullptr.
5734
66920317
TT
57352020-06-15 Tom Tromey <tromey@adacore.com>
5736
5737 * windows-nat.c (windows_nat::handle_output_debug_string):
5738 Update.
5739 (windows_nat::handle_ms_vc_exception): Update.
5740 * target.h (target_read_string): Change API.
5741 * target.c (target_read_string): Change API.
5742 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5743 Update.
5744 * solib-frv.c (frv_current_sos): Update.
5745 * solib-dsbt.c (dsbt_current_sos): Update.
5746 * solib-darwin.c (darwin_current_sos): Update.
5747 * linux-thread-db.c (inferior_has_bug): Update.
5748 * expprint.c (print_subexp_standard): Update.
5749 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5750 (ada_exception_message_1): Update.
5751
a5d871dd
TT
57522020-06-15 Tom Tromey <tromey@adacore.com>
5753
5754 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5755
670e35fa
TT
57562020-06-15 Tom Tromey <tromey@adacore.com>
5757
5758 * valprint.c (read_string): Update comment.
5759 * target.c (MIN): Remove.
5760 (target_read_string): Rewrite.
5761
f5272a3b
TT
57622020-06-15 Tom Tromey <tromey@adacore.com>
5763
5764 * corefile.c (read_memory_string): Remove.
5765 * ada-valprint.c (ada_value_print_ptr): Update.
5766 * ada-lang.h (ada_tag_name): Change return type.
5767 * ada-lang.c (type_from_tag): Update.
5768 (ada_tag_name_from_tsd): Change return type. Use
5769 target_read_string.
5770 (ada_tag_name): Likewise.
5771 * gdbcore.h (read_memory_string): Don't declare.
5772
2c074f49
HD
57732020-06-14 Hannes Domani <ssbssa@yahoo.de>
5774
5775 * symtab.c (rbreak_command): Ignore Windows drive colon.
5776
6a17d503
SM
57772020-06-12 Simon Marchi <simon.marchi@efficios.com>
5778
5779 * NEWS: Mention removed GDBserver host support.
5780
453c733f
NC
57812020-06-12 Nelson Chu <nelson.chu@sifive.com>
5782
5783 * features/riscv/rebuild-csr-xml.sh: Updated.
5784
2b4e6a3f
TT
57852020-06-11 Tom Tromey <tom@tromey.com>
5786
5787 PR gdb/18318:
5788 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5789
4412332f
JG
57902020-06-09 Jonny Grant <jg@jguk.org>
57912020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5792
5793 * main.c (captured_main_1): Don't print new line after help.
5794 (print_gdb_help): add mailing list and IRC channel information
5795 to --help. Add new lines between items in the footer. Remove
5796 quotes around bug url.
5797
2f33032a
KS
57982020-06-11 Keith Seitz <keiths@redhat.com>
5799
5800 PR gdb/21356
5801 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5802 Resolve typedefs for type length calculations.
5803
7ab96794
TV
58042020-06-10 Tom de Vries <tdevries@suse.de>
5805
5806 PR ada/24713
5807 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5808 (write_psymbols): Enable .gdb_index for ada.
5809 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5810 ada.
5811
e5f3ece2
TV
58122020-06-10 Tom de Vries <tdevries@suse.de>
5813
5814 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5815 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5816 namei" instead of "const char *name" argument.
5817 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5818 dw2_symtab_iter_init.
5819
940da03e
SM
58202020-06-08 Simon Marchi <simon.marchi@efficios.com>
5821
5822 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5823 to use type::field and field::type instead.
5824
b6cdac4b
SM
58252020-06-08 Simon Marchi <simon.marchi@efficios.com>
5826
5827 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5828 to use field::type instead.
5829
5d14b6e5
SM
58302020-06-08 Simon Marchi <simon.marchi@efficios.com>
5831
5832 * gdbtypes.h (struct field) <type, set_type>: New methods.
5833 Rename `type` field to...
5834 <m_type>: ... this. Change references throughout to use type or
5835 set_type methods.
5836 (FIELD_TYPE): Use field::type. Change call sites that modify
5837 the field's type to use field::set_type instead.
5838
3d967001
SM
58392020-06-08 Simon Marchi <simon.marchi@efficios.com>
5840
5841 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5842 to use type::index_type instead.
5843
262abc0d
SM
58442020-06-08 Simon Marchi <simon.marchi@efficios.com>
5845
5846 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5847 methods.
5848 (TYPE_INDEX_TYPE): Use type::index_type.
5849 * gdbtypes.c (create_array_type_with_stride): Likewise.
5850
82836c92
TT
58512020-06-07 Tom Tromey <tom@tromey.com>
5852
5853 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5854 parameter.
5855 (generic_value_print): Update.
5856
940dace9
AB
58572020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5858
5859 Revert commit 982a38f60b0.
5860 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5861
982a38f6
AB
58622020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5863
5864 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5865 avoid use after free.
5866
82f06518
TV
58672020-06-05 Tom de Vries <tdevries@suse.de>
5868
5869 * NEWS: Fix typos.
5870
f8c41851
SM
58712020-06-04 Simon Marchi <simon.marchi@efficios.com>
5872
5873 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5874 the per_bfd object.
5875 (dwarf2_read_debug_names): Likewise.
5876 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5877 object when re-using a per_bfd object with an index.
5878
f9b5d5ea
TV
58792020-06-03 Tom de Vries <tdevries@suse.de>
5880
5881 PR symtab/26046
5882 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5883 children for C++.
5884 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5885 DW_TAG_subprogram.
5886
f6eee2d0
AB
58872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5888
5889 * ada-lang.c (ada_language_data): Delete skip_trampoline
5890 initializer.
5891 * c-lang.c (c_language_data): Likewise.
5892 (cplus_language_data): Likewise.
5893 (cplus_language::skip_trampoline): New member function.
5894 (asm_language_data): Delete skip_trampoline initializer.
5895 (minimal_language_data): Likewise.
5896 * d-lang.c (d_language_data): Likewise.
5897 * f-lang.c (f_language_data): Likewise.
5898 * go-lang.c (go_language_data): Likewise.
5899 * language.c (unk_lang_trampoline): Delete function.
5900 (skip_language_trampoline): Update.
5901 (unknown_language_data): Delete skip_trampoline initializer.
5902 (auto_language_data): Likewise.
5903 * language.h (language_data): Delete skip_trampoline field.
5904 (language_defn::skip_trampoline): New function.
5905 * m2-lang.c (m2_language_data): Delete skip_trampoline
5906 initializer.
5907 * objc-lang.c (objc_skip_trampoline): Delete function, move
5908 implementation to objc_language::skip_trampoline.
5909 (objc_language_data): Delete skip_trampoline initializer.
5910 (objc_language::skip_trampoline): New member function with
5911 implementation from objc_skip_trampoline.
5912 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5913 initializer.
5914 * p-lang.c (pascal_language_data): Likewise.
5915 * rust-lang.c (rust_language_data): Likewise.
5916
0a50df5d
AB
59172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5918
5919 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5920 (ada_language::demangle): New member function.
5921 * c-lang.c (c_language_data): Delete la_demangle initializer.
5922 (cplus_language_data): Delete la_demangle initializer.
5923 (cplus_language::demangle): New member function.
5924 (asm_language_data): Delete la_demangle initializer.
5925 (minimal_language_data): Delete la_demangle initializer.
5926 * d-lang.c (d_language_data): Delete la_demangle initializer.
5927 (d_language::demangle): New member function.
5928 * f-lang.c (f_language_data): Delete la_demangle initializer.
5929 (f_language::demangle): New member function.
5930 * go-lang.c (go_language_data): Delete la_demangle initializer.
5931 (go_language::demangle): New member function.
5932 * language.c (language_demangle): Update.
5933 (unk_lang_demangle): Delete.
5934 (unknown_language_data): Delete la_demangle initializer.
5935 (unknown_language::demangle): New member function.
5936 (auto_language_data): Delete la_demangle initializer.
5937 (auto_language::demangle): New member function.
5938 * language.h (language_data): Delete la_demangle field.
5939 (language_defn::demangle): New function.
5940 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5941 * objc-lang.c (objc_language_data): Delete la_demangle
5942 initializer.
5943 (objc_language::demangle): New member function.
5944 * opencl-lang.c (opencl_language_data): Delete la_demangle
5945 initializer.
5946 * p-lang.c (pascal_language_data): Likewise.
5947 * rust-lang.c (rust_language_data): Likewise.
5948 (rust_language::demangle): New member function.
5949
fbfb0a46
AB
59502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5951
5952 * ada-lang.c (ada_language_data): Delete la_print_type
5953 initializer.
5954 (ada_language::print_type): New member function.
5955 * c-lang.c (c_language_data): Delete la_print_type initializer.
5956 (c_language::print_type): New member function.
5957 (cplus_language_data): Delete la_print_type initializer.
5958 (cplus_language::print_type): New member function.
5959 (asm_language_data): Delete la_print_type initializer.
5960 (asm_language::print_type): New member function.
5961 (minimal_language_data): Delete la_print_type initializer.
5962 (minimal_language::print_type): New member function.
5963 * d-lang.c (d_language_data): Delete la_print_type initializer.
5964 (d_language::print_type): New member function.
5965 * f-lang.c (f_language_data): Delete la_print_type initializer.
5966 (f_language::print_type): New member function.
5967 * go-lang.c (go_language_data): Delete la_print_type initializer.
5968 (go_language::print_type): New member function.
5969 * language.c (unk_lang_print_type): Delete.
5970 (unknown_language_data): Delete la_print_type initializer.
5971 (unknown_language::print_type): New member function.
5972 (auto_language_data): Delete la_print_type initializer.
5973 (auto_language::print_type): New member function.
5974 * language.h (language_data): Delete la_print_type field.
5975 (language_defn::print_type): New function.
5976 (LA_PRINT_TYPE): Update.
5977 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5978 (m2_language::print_type): New member function.
5979 * objc-lang.c (objc_language_data): Delete la_print_type
5980 initializer.
5981 (objc_language::print_type): New member function.
5982 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5983 to opencl_language::print_type.
5984 (opencl_language_data): Delete la_print_type initializer.
5985 (opencl_language::print_type): New member function, implementation
5986 from opencl_print_type.
5987 * p-lang.c (pascal_language_data): Delete la_print_type
5988 initializer.
5989 (pascal_language::print_type): New member function.
5990 * rust-lang.c (rust_print_type): Delete, implementation moved to
5991 rust_language::print_type.
5992 (rust_language_data): Delete la_print_type initializer.
5993 (rust_language::print_type): New member function, implementation
5994 from rust_print_type.
5995
6f827019
AB
59962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5997
5998 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5999 implementation moves to...
6000 (ada_language::sniff_from_mangled_name): ...here. Update return
6001 type.
6002 (ada_language_data): Delete la_sniff_from_mangled_name
6003 initializer.
6004 * c-lang.c (c_language_data): Likewise.
6005 (cplus_language_data): Likewise.
6006 (cplus_language::sniff_from_mangled_name): New member function,
6007 implementation taken from gdb_sniff_from_mangled_name.
6008 (asm_language_data): Delete la_sniff_from_mangled_name
6009 initializer.
6010 (minimal_language_data): Likewise.
6011 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6012 implementation moves to cplus_language::sniff_from_mangled_name.
6013 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6014 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6015 moves to...
6016 (d_language::sniff_from_mangled_name): ...here.
6017 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6018 * f-lang.c (f_language_data): Likewise.
6019 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6020 moves to...
6021 (go_language::sniff_from_mangled_name): ...here.
6022 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6023 * language.c (language_sniff_from_mangled_name): Delete.
6024 (unknown_language_data): Delete la_sniff_from_mangled_name
6025 initializer.
6026 (auto_language_data): Likewise.
6027 * language.h (language_data): Delete la_sniff_from_mangled_name
6028 field.
6029 (language_defn::sniff_from_mangled_name): New function.
6030 (language_sniff_from_mangled_name): Delete declaration.
6031 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6032 field.
6033 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6034 implementation moves to...
6035 (objc_language::sniff_from_mangled_name): ...here.
6036 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6037 * opencl-lang.c (opencl_language_data): Likewise.
6038 * p-lang.c (pascal_language_data): Likewise.
6039 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6040 implementation moves to...
6041 (rust_language::sniff_from_mangled_name): ...here.
6042 (rust_language_data): Delete la_sniff_from_mangled_name
6043 initializer.
6044 * symtab.c (symbol_find_demangled_name): Call
6045 sniff_from_mangled_name member function.
6046
fb8006fd
AB
60472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6048
6049 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6050 initializer.
6051 * c-lang.c (c_language_data): Likewise.
6052 (cplus_language_data): Likewise.
6053 (cplus_language::search_name_hash): New member function.
6054 (asm_language_data): Delete la_search_name_hash initializer.
6055 (minimal_language_data): Likewise.
6056 * d-lang.c (d_language_data): Likewise.
6057 * dictionary.c (default_search_name_hash): Rename to...
6058 (language_defn::search_name_hash): ...this.
6059 * f-lang.c (f_language_data): Likewise.
6060 (f_language::search_name_hash): New member function.
6061 * go-lang.c (go_language_data): Delete la_search_name_hash
6062 initializer.
6063 * language.c (unknown_language_data): Likewise.
6064 (auto_language_data): Likewise.
6065 * language.h (struct language_data): Delete la_search_name_hash
6066 field.
6067 (language_defn::search_name_hash): Declare new member function.
6068 (default_search_name_hash): Delete declaration.
6069 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6070 initializer.
6071 * objc-lang.c (objc_language_data): Likewise.
6072 * opencl-lang.c (opencl_language_data): Likewise.
6073 * p-lang.c (pascal_language_data): Likewise.
6074 * rust-lang.c (rust_language_data): Likewise.
6075 * symtab.c (search_name_hash): Update call.
6076
8e25bafe
AB
60772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6078
6079 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6080 initializer.
6081 * c-lang.c (class compile_instance): Declare.
6082 (c_language_data): Delete la_get_compile_instance initializer.
6083 (c_language::get_compile_instance): New member function.
6084 (cplus_language_data): Delete la_get_compile_instance initializer.
6085 (cplus_language::get_compile_instance): New member function.
6086 (asm_language_data): Delete la_get_compile_instance initializer.
6087 (minimal_language_data): Likewise.
6088 * c-lang.h (c_get_compile_context): Update comment.
6089 (cplus_get_compile_context): Update comment.
6090 * compile/compile.c (compile_to_object): Update calls, don't rely
6091 on function pointer being NULL.
6092 * d-lang.c (d_language_data): Delete la_get_compile_instance
6093 initializer.
6094 * f-lang.c (f_language_data): Likewise.
6095 * go-lang.c (go_language_data): Likewise.
6096 * language.c (unknown_language_data): Likewise.
6097 (auto_language_data): Likewise.
6098 * language.h (language_data): Delete la_get_compile_instance field.
6099 (language_defn::get_compile_instance): New member function.
6100 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6101 initializer.
6102 * objc-lang.c (objc_language_data): Likewise.
6103 * opencl-lang.c (opencl_language_data): Likewise.
6104 * p-lang.c (pascal_language_data): Likewise.
6105 * rust-lang.c (rust_language_data): Likewise.
6106
4009ee92
AB
61072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6108
6109 * ada-lang.c (ada_add_all_symbols): Update comment.
6110 (ada_iterate_over_symbols): Delete, move implementation to...
6111 (ada_language::iterate_over_symbols): ...here, a new member
6112 function, rewrite to use range based for loop.
6113 (ada_language_data): Delete la_iterate_over_symbols initializer.
6114 * c-lang.c (c_language_data): Likewise.
6115 (cplus_language_data): Likewise.
6116 (asm_language_data): Likewise.
6117 (minimal_language_data): Likewise.
6118 * d-lang.c (d_language_data): Likewise.
6119 * f-lang.c (f_language_data): Likewise.
6120 * go-lang.c (go_language_data): Likewise.
6121 * language.c (unknown_language_data): Likewise.
6122 (auto_language_data): Likewise.
6123 * language.h (language_data): Delete la_iterate_over_symbols field.
6124 (language_defn::iterate_over_symbols): New member function.
6125 (LA_ITERATE_OVER_SYMBOLS): Update.
6126 * linespec.c (iterate_over_all_matching_symtabs): Update.
6127 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6128 initializer.
6129 * objc-lang.c (objc_language_data): Likewise.
6130 * opencl-lang.c (opencl_language_data): Likewise.
6131 * p-lang.c (pascal_language_data): Likewise.
6132 * rust-lang.c (rust_language_data): Likewise.
6133
54f4ca46
AB
61342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6135
6136 * ada-lang.c (ada_language_data): Delete
6137 la_lookup_transparent_type initializer.
6138 * c-lang.c (c_language_data): Likewise.
6139 (cplus_language_data): Likewise.
6140 (cplus_language::lookup_transparent_type): New member function.
6141 (asm_language_data): Delete la_lookup_transparent_type
6142 initializer.
6143 (minimal_language_data): Likewise.
6144 * d-lang.c (d_language_data): Likewise.
6145 * f-lang.c (f_language_data): Likewise.
6146 * go-lang.c (go_language_data): Likewise.
6147 * language.c (unknown_language_data): Likewise.
6148 (auto_language_data): Likewise.
6149 * language.h (struct language_data): Delete
6150 la_lookup_transparent_type field.
6151 (language_defn::lookup_transparent_type): New member function.
6152 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6153 initializer.
6154 * objc-lang.c (objc_language_data): Likewise.
6155 * opencl-lang.c (opencl_language_data): Likewise.
6156 * p-lang.c (pascal_language_data): Likewise.
6157 * rust-lang.c (rust_language_data): Likewise.
6158 * symtab.c (symbol_matches_domain): Update call.
6159
1fb314aa
AB
61602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6161
6162 * ada-lang.c (ada_language_arch_info): Delete function, move
6163 implementation to...
6164 (ada_language::language_arch_info): ...here, a new member
6165 function.
6166 (ada_language_data): Delete la_language_arch_info.
6167 * c-lang.c (c_language_data): Likewise.
6168 (c_language::language_arch_info): New member function.
6169 (cplus_language_arch_info): Delete function, move
6170 implementation to...
6171 (cplus_language::language_arch_info): ...here, a new member
6172 function.
6173 (cplus_language_data): Delete la_language_arch_info.
6174 (asm_language_data): Likewise.
6175 (asm_language::language_arch_info): New member function.
6176 (minimal_language_data): Delete la_language_arch_info.
6177 (minimal_language::language_arch_info): New member function.
6178 * d-lang.c (d_language_arch_info): Delete function, move
6179 implementation to...
6180 (d_language::language_arch_info): ...here, a new member
6181 function.
6182 (d_language_data): Delete la_language_arch_info.
6183 * f-lang.c (f_language_arch_info): Delete function, move
6184 implementation to...
6185 (f_language::language_arch_info): ...here, a new member
6186 function.
6187 (f_language_data): Delete la_language_arch_info.
6188 * go-lang.c (go_language_arch_info): Delete function, move
6189 implementation to...
6190 (go_language::language_arch_info): ...here, a new member
6191 function.
6192 (go_language_data): Delete la_language_arch_info.
6193 * language.c (unknown_language_data): Likewise.
6194 (unknown_language::language_arch_info): New member function.
6195 (auto_language_data): Delete la_language_arch_info.
6196 (auto_language::language_arch_info): New member function.
6197 (language_gdbarch_post_init): Update call to
6198 la_language_arch_info.
6199 * language.h (language_data): Delete la_language_arch_info
6200 function pointer.
6201 (language_defn::language_arch_info): New function.
6202 * m2-lang.c (m2_language_arch_info): Delete function, move
6203 implementation to...
6204 (m2_language::language_arch_info): ...here, a new member
6205 function.
6206 (m2_language_data): Delete la_language_arch_info.
6207 * objc-lang.c (objc_language_arch_info): Delete function, move
6208 implementation to...
6209 (objc_language::language_arch_info): ...here, a new member
6210 function.
6211 (objc_language_data): Delete la_language_arch_info.
6212 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6213 implementation to...
6214 (opencl_language::language_arch_info): ...here, a new member
6215 function.
6216 (opencl_language_data): Delete la_language_arch_info.
6217 * p-lang.c (pascal_language_arch_info): Delete function, move
6218 implementation to...
6219 (pascal_language::language_arch_info): ...here, a new member
6220 function.
6221 (pascal_language_data): Delete la_language_arch_info.
6222 * rust-lang.c (rust_language_arch_info): Delete function, move
6223 implementation to...
6224 (rust_language::language_arch_info): ...here, a new member
6225 function.
6226 (rust_language_data): Delete la_language_arch_info.
6227
48448202
AB
62282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6229
6230 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6231 initializer.
6232 * c-lang.c (c_language_data): Likewise.
6233 (cplus_language_data): Likewise.
6234 (cplus_language::pass_by_reference_info): New method.
6235 (asm_language_data): Delete la_pass_by_reference initializer.
6236 (minimal_language_data): Likewise.
6237 * cp-abi.c (cp_pass_by_reference): Remove use of
6238 default_pass_by_reference.
6239 * d-lang.c (d_language_data): Likewise.
6240 * f-lang.c (f_language_data): Likewise.
6241 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6242 default_pass_by_reference.
6243 * go-lang.c (go_language_data): Likewise.
6244 * language.c (language_pass_by_reference): Update.
6245 (default_pass_by_reference): Delete.
6246 (unknown_language_data): Delete la_pass_by_reference
6247 initializer.
6248 (auto_language_data): Likewise.
6249 * language.h (struct language_data): Delete la_pass_by_reference
6250 field.
6251 (language_defn::pass_by_reference_info): New member function.
6252 (default_pass_by_reference): Delete declaration.
6253 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6254 initializer.
6255 * objc-lang.c (objc_language_data): Likewise.
6256 * opencl-lang.c (opencl_language_data): Likewise.
6257 * p-lang.c (pascal_language_data): Likewise.
6258 * rust-lang.c (rust_language_data): Likewise.
6259
15e5fd35
AB
62602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6261
6262 * ada-lang.c (ada_read_var_value): Delete function, move
6263 implementation to...
6264 (ada_language::read_var_value): ...here.
6265 (ada_language_data): Delete la_read_var_value initializer.
6266 * c-lang.c (c_language_data): Likewise.
6267 (cplus_language_data): Likewise.
6268 (minimal_language_data): Likewise.
6269 * d-lang.c (d_language_data): Likewise.
6270 * f-lang.c (f_language_data): Likewise.
6271 * findvar.c (default_read_var_value): Rename to...
6272 (language_defn::read_var_value): ...this.
6273 * findvar.c (read_var_value): Update header comment, and change to
6274 call member function instead of function pointer.
6275 * go-lang.c (go_language_data): Likewise.
6276 * language.c (unknown_language_data): Delete la_read_var_value
6277 initializer.
6278 (auto_language_data): Likewise.
6279 * language.h (struct language_data): Delete la_read_var_value
6280 field.
6281 (language_defn::read_var_value): New member function.
6282 (default_read_var_value): Delete declaration.
6283 * m2-lang.c (m2_language_data): Delete la_read_var_value
6284 initializer.
6285 * objc-lang.c (objc_language_data): Likewise.
6286 * opencl-lang.c (opencl_language_data): Likewise.
6287 * p-lang.c (pascal_language_data): Likewise.
6288 * rust-lang.c (rust_language_data): Likewise.
6289 * value.h (default_read_var_value): Delete declaration.
6290
5bd40f2a
AB
62912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6292
6293 * ada-lang.c (ada_print_array_index): Delete function, move
6294 implementation to...
6295 (ada_language::print_array_index): ...here.
6296 (ada_language_data): Delete la_print_array_index initializer.
6297 * c-lang.c (c_language_data): Likewise.
6298 (cplus_language_data): Likewise.
6299 (minimal_language_data): Likewise.
6300 * d-lang.c (d_language_data): Likewise.
6301 * f-lang.c (f_language_data): Likewise.
6302 * go-lang.c (go_language_data): Likewise.
6303 * language.c (default_print_array_index): Delete function, move
6304 implementation to...
6305 (language_defn::print_array_index): ...here.
6306 (unknown_language_data): Delete la_print_array_index initializer.
6307 (auto_language_data): Likewise.
6308 * language.h (struct language_data): Delete la_print_array_index
6309 field.
6310 (language_defn::print_array_index): New member function.
6311 (LA_PRINT_ARRAY_INDEX): Update.
6312 (default_print_array_index): Delete declaration.
6313 * m2-lang.c (m2_language_data): Delete la_print_array_index
6314 initializer.
6315 * objc-lang.c (objc_language_data): Likewise.
6316 * opencl-lang.c (opencl_language_data): Likewise.
6317 * p-lang.c (pascal_language_data): Likewise.
6318 * rust-lang.c (rust_language_data): Likewise.
6319
0874fd07
AB
63202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6321
6322 * gdb/ada-lang.c (ada_language_defn): Convert to...
6323 (ada_language_data): ...this.
6324 (class ada_language): New class.
6325 (ada_language_defn): New static global.
6326 * gdb/c-lang.c (c_language_defn): Convert to...
6327 (c_language_data): ...this.
6328 (class c_language): New class.
6329 (c_language_defn): New static global.
6330 (cplus_language_defn): Convert to...
6331 (cplus_language_data): ...this.
6332 (class cplus_language): New class.
6333 (cplus_language_defn): New static global.
6334 (asm_language_defn): Convert to...
6335 (asm_language_data): ...this.
6336 (class asm_language): New class.
6337 (asm_language_defn): New static global.
6338 (minimal_language_defn): Convert to...
6339 (minimal_language_data): ...this.
6340 (class minimal_language): New class.
6341 (minimal_language_defn): New static global.
6342 * gdb/d-lang.c (d_language_defn): Convert to...
6343 (d_language_data): ...this.
6344 (class d_language): New class.
6345 (d_language_defn): New static global.
6346 * gdb/f-lang.c (f_language_defn): Convert to...
6347 (f_language_data): ...this.
6348 (class f_language): New class.
6349 (f_language_defn): New static global.
6350 * gdb/go-lang.c (go_language_defn): Convert to...
6351 (go_language_data): ...this.
6352 (class go_language): New class.
6353 (go_language_defn): New static global.
6354 * gdb/language.c (unknown_language_defn): Remove declaration.
6355 (current_language): Initialize to nullptr, real initialization is
6356 moved to _initialize_language.
6357 (languages): Delete global.
6358 (language_defn::languages): Define.
6359 (set_language_command): Use language_defn::languages.
6360 (set_language): Likewise.
6361 (range_error): Likewise.
6362 (language_enum): Likewise.
6363 (language_def): Likewise.
6364 (add_set_language_command): Use language_def::languages for the
6365 language list, and language_def to lookup language pointers.
6366 (skip_language_trampoline): Use language_defn::languages.
6367 (unknown_language_defn): Convert to...
6368 (unknown_language_data): ...this.
6369 (class unknown_language): New class.
6370 (unknown_language_defn): New static global.
6371 (auto_language_defn): Convert to...
6372 (auto_language_data): ...this.
6373 (class auto_language): New class.
6374 (auto_language_defn): New static global.
6375 (language_gdbarch_post_init): Use language_defn::languages.
6376 (_initialize_language): Initialize current_language.
6377 * gdb/language.h (struct language_defn): Rename to...
6378 (struct language_data): ...this.
6379 (struct language_defn): New.
6380 (auto_language_defn): Delete.
6381 (unknown_language_defn): Delete.
6382 (minimal_language_defn): Delete.
6383 (ada_language_defn): Delete.
6384 (asm_language_defn): Delete.
6385 (c_language_defn): Delete.
6386 (cplus_language_defn): Delete.
6387 (d_language_defn): Delete.
6388 (f_language_defn): Delete.
6389 (go_language_defn): Delete.
6390 (m2_language_defn): Delete.
6391 (objc_language_defn): Delete.
6392 (opencl_language_defn): Delete.
6393 (pascal_language_defn): Delete.
6394 (rust_language_defn): Delete.
6395 * gdb/m2-lang.c (m2_language_defn): Convert to...
6396 (m2_language_data): ...this.
6397 (class m2_language): New class.
6398 (m2_language_defn): New static global.
6399 * gdb/objc-lang.c (objc_language_defn): Convert to...
6400 (objc_language_data): ...this.
6401 (class objc_language): New class.
6402 (objc_language_defn): New static global.
6403 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6404 (opencl_language_data): ...this.
6405 (class opencl_language): New class.
6406 (opencl_language_defn): New static global.
6407 * gdb/p-lang.c (pascal_language_defn): Convert to...
6408 (pascal_language_data): ...this.
6409 (class pascal_language): New class.
6410 (pascal_language_defn): New static global.
6411 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6412 language pointer, update comment format.
6413 * gdb/rust-lang.c (rust_language_defn): Convert to...
6414 (rust_language_data): ...this.
6415 (class rust_language): New class.
6416 (rust_language_defn): New static global.
6417
1313c56e
AB
64182020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6419
6420 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6421 member variable.
6422 <m_stmt_at_address>: New member variable.
6423 (lnp_state_machine::record_line): Don't record some lines, update
6424 tracking of is_stmt at the same address.
6425 (lnp_state_machine::lnp_state_machine): Initialise new member
6426 variables.
6427
b7ed9f3d
ST
64282020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6429
6430 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6431 "-include gnu-nat-mig.h".
6432 * gnu-nat-mig.h: New file.
6433 * gnu-nat.c: Include "gnu-nat-mig.h".
6434 (exc_server, msg_reply_server, notify_server,
6435 process_reply_server): Remove declarations.
6436
14a8ad62
ST
64372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6438
6439 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6440 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6441 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6442 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6443 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6444 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6445 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6446 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6447 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6448 to gnu_nat_target class.
6449 * gnu-nat.c: Likewise.
6450 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6451 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6452 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6453 object.
6454 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6455 instead of `gnu_target'.
6456
0af5e106
ST
64572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6458
6459 * i386-gnu-tdep.c: Include "gdbcore.h"
6460 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6461 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6462 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6463 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6464 i386_gnu_sigcontext_addr): New functions
6465 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6466 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6467 tdep.
6468
078f2fc9
ST
64692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6470
6471 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6472 before fork_inferior call. Avoid calling it if target_is_pushed returns
6473 true.
6474
53dff92c
ST
64752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6476
6477 * gnu-nat.h (gnu_target): New variable declaration.
6478 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6479 gnu_target.
6480 * gnu-nat.c (gnu_target): New variable.
6481 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6482 add_thread_silent, and add_thread calls.
6483 (gnu_nat_target::create_inferior): Pass gnu_target to
6484 add_thread_silent, thread_change_ptid call.
6485 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6486 call.
6487
5a8b8627
ST
64882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6489
6490 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6491 (gnu_nat_target::find_memory_regions): Remove unused
6492 `old_address' variable.
6493
366f550a
ST
64942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6495
6496 * gnu-nat.c: Include "gdbarch.h".
6497
f14871bf
ST
64982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6499
6500 * reply_mig_hack.awk (Error return): Cast function through
6501 void *, to bypass compiler function call check.
6502
c6887cfb
ST
65032020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6504
6505 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6506 $(srcdir)/reply_mig_hack.awk.
6507
6930bffe
ST
65082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6509
6510 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6511
112c22ed
JG
65122020-05-30 Jonny Grant <jg@jguk.org>
6513
6514 * configure.ac (ACX_BUGURL): change bug URL to https.
6515
f68f85b5
PA
65162020-05-30 Pedro Alves <palves@redhat.com>
6517
6518 * cp-support.c (replace_typedefs_template): New.
6519 (replace_typedefs_qualified_name): Handle
6520 DEMANGLE_COMPONENT_TEMPLATE.
6521
976ca316
SM
65222020-05-29 Simon Marchi <simon.marchi@efficios.com>
6523
6524 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6525 dwarf2/index-cache.h, dwarf2/index-write.c,
6526 dwarf2/index-write.h, dwarf2/line-header.c,
6527 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6528 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6529 variables and fields from `dwarf2_per_objfile` to just
6530 `per_objfile` throughout.
6531
989ade05
SM
65322020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6533
6534 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6535 <push_dwarf_reg_entry_value>: Add comment.
6536
c47bae85
KB
65372020-05-28 Kevin Buettner <kevinb@redhat.com>
6538 Keith Seitz <keiths@redhat.com>
6539
6540 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6541 instead of PyEval_ReleaseLock.
6542 (class gdbpy_gil): Move to earlier in file.
6543 (finalize_python): Set gdb_python_initialized.
6544 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6545 when not initialized.
6546
44486dcf
SM
65472020-05-28 Simon Marchi <simon.marchi@efficios.com>
6548
6549 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6550 <push_dwarf_reg_entry_value>: Remove assert. Override
6551 per_objfile with caller_per_objfile.
6552
f030440d
TV
65532020-05-28 Tom de Vries <tdevries@suse.de>
6554
6555 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6556 PR gold/15646 workaround to symbol kind "type".
6557
f0fbb768
TT
65582020-05-27 Tom Tromey <tromey@adacore.com>
6559
6560 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6561
af0b2a3e
TT
65622020-05-27 Tom Tromey <tromey@adacore.com>
6563
6564 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6565 Use htab_find_with_hash.
6566 <add_abbrev>: Remove "abbrev_number" parameter.
6567 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6568 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6569 (hash_abbrev): Add comment.
6570 (abbrev_table::lookup_abbrev): Move to header file.
6571 (abbrev_table::read): Update.
6572
7d00ffec
TT
65732020-05-27 Tom Tromey <tromey@adacore.com>
6574
6575 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6576 method.
6577 <canonical_name>: New member.
6578 <raw_name>: Rename from "name".
6579 (partial_die_info): Initialize canonical_name.
6580 (scan_partial_symbols): Check raw_name.
6581 (partial_die_parent_scope, partial_die_full_name)
6582 (add_partial_symbol, add_partial_subprogram)
6583 (add_partial_enumeration, load_partial_dies): Use "name" method.
6584 (partial_die_info::name): New method.
6585 (partial_die_info::read, guess_partial_die_structure_name)
6586 (partial_die_info::fixup): Update.
6587
697bba18
TT
65882020-05-27 Tom Tromey <tromey@adacore.com>
6589
6590 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6591 <get_ref_die_offset>: Inline.
6592 <get_ref_die_offset_complaint>: New method.
6593 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6594 (attribute::get_ref_die_offset_complaint): Rename from
6595 get_ref_die_offset. Just issue complaint.
6596
c17ace43
HD
65972020-05-27 Hannes Domani <ssbssa@yahoo.de>
6598
6599 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6600
96445f0b
HD
66012020-05-27 Hannes Domani <ssbssa@yahoo.de>
6602
6603 * exec.c (exec_file_attach): Use errno value of first openp failure.
6604
ac637ec3
HD
66052020-05-27 Hannes Domani <ssbssa@yahoo.de>
6606
6607 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6608 Don't close thread handle.
6609
17ee85fc
TT
66102020-05-27 Tom Tromey <tom@tromey.com>
6611 Simon Marchi <simon.marchi@efficios.com>
6612
6613 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6614 shared_ptr.
6615 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6616 member.
6617 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6618 dwarf2_per_bfd_objfile_data_key>: New globals.
6619 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6620 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6621 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6622 shared.
6623 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6624 short-circuit when sharing.
6625 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6626 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6627
39b16f87
SM
66282020-05-27 Simon Marchi <simon.marchi@efficios.com>
6629
6630 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6631 to...
6632 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6633 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6634
fcf23d5b
SM
66352020-05-27 Simon Marchi <simon.marchi@efficios.com>
6636
6637 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6638 build_name_components, find_name_components_bounds>:
6639 Add per_objfile parameter.
6640 (struct mapped_index) <symbol_name_at>: Likewise.
6641 (struct mapped_debug_names): Remove constructor.
6642 <dwarf2_per_objfile>: Remove field.
6643 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6644 (mapped_index_base::find_name_components_bounds,
6645 mapped_index_base::build_name_components,
6646 dw2_expand_symtabs_matching_symbol): Likewise.
6647 (class mock_mapped_index) <symbol_name_at>: Likewise.
6648 (check_match): Likewise.
6649 (check_find_bounds_finds): Likewise.
6650 (test_mapped_index_find_name_component_bounds): Update.
6651 (CHECK_MATCH): Update.
6652 (dw2_expand_symtabs_matching): Update.
6653 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6654 per_objfile parameter.
6655 <find_vec_in_debug_names>: Likewise.
6656 <m_per_objfile>: New field.
6657 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6658 parameter.
6659 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6660 (dw2_debug_names_iterator::next): Update.
6661 (dw2_debug_names_lookup_symbol): Update.
6662 (dw2_debug_names_expand_symtabs_for_function): Update.
6663 (dw2_debug_names_map_matching_symbols): Update.
6664 (dw2_debug_names_expand_symtabs_matching): Update.
6665 (dwarf2_read_debug_names): Update.
6666
7188ed02
SM
66672020-05-27 Simon Marchi <simon.marchi@efficios.com>
6668
6669 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6670 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6671 move to dwarf2_per_objfile.
6672 <read_in_chain>: Remove.
6673 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6674 remove_all_cus, age_comp_units>: New methods.
6675 <m_dwarf2_cus>: New member.
6676 (struct dwarf2_per_cu_data) <cu>: Remove.
6677 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6678 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6679 moved to methods of dwarf2_per_objfile.
6680 (dwarf2_clear_marks): Remove.
6681 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6682 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6683 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6684 (dwarf2_per_objfile::remove_all_cus): New.
6685 (class free_cached_comp_units) <~free_cached_comp_units>:
6686 Update.
6687 (load_cu): Update.
6688 (dw2_do_instantiate_symtab): Adjust.
6689 (fill_in_sig_entry_from_dwo_entry): Adjust.
6690 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6691 (cutu_reader::cutu_reader): Likewise.
6692 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6693 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6694 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6695 and dwarf2_per_objfile::age_comp_units.
6696 (load_partial_comp_unit): Update.
6697 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6698 (process_queue): Likewise.
6699 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6700 backlink.
6701 (dwarf2_read_addr_index): Likewise.
6702 (follow_die_offset): Likewise.
6703 (dwarf2_fetch_die_loc_sect_off): Likewise.
6704 (dwarf2_fetch_constant_bytes): Likewise.
6705 (dwarf2_fetch_die_type_sect_off): Likewise.
6706 (follow_die_sig_1): Likewise.
6707 (load_full_type_unit): Likewise.
6708 (read_signatured_type): Likewise.
6709 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6710 (dwarf2_cu::~dwarf2_cu): Remove.
6711 (dwarf2_per_objfile::get_cu): New.
6712 (dwarf2_per_objfile::set_cu): New.
6713 (age_cached_comp_units): Rename to...
6714 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6715 to std::unordered_map.
6716 (free_one_cached_comp_unit): Rename to...
6717 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6718 to std::unordered_map.
6719 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6720 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6721 a dwarf2_per_objfile in data.
6722 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6723 (dwarf2_clear_marks): Remove.
6724
2e671100
SM
67252020-05-27 Simon Marchi <simon.marchi@efficios.com>
6726
6727 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6728 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6729 (init_tu_and_read_dwo_dies): Likewise.
6730 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6731 (cutu_reader::cutu_reader): Likewise.
6732 (load_partial_comp_unit): Likewise.
6733 (process_psymtab_comp_unit): Update.
6734 (build_type_psymtabs_1): Update.
6735 (process_skeletonless_type_unit): Update.
6736 (load_full_comp_unit): Update.
6737 (find_partial_die): Update.
6738 (dwarf2_read_addr_index): Update.
6739 (read_signatured_type): Update.
6740
2e6a9f79
SM
67412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6742
6743 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6744 m_header_read_in>: New fields.
6745 <get_header>: New method.
6746 * dwarf2/read.c (per_cu_header_read_in): Remove.
6747 (dwarf2_per_cu_data::get_header): New.
6748 (dwarf2_per_cu_data::addr_size): Update.
6749 (dwarf2_per_cu_data::offset_size): Update.
6750 (dwarf2_per_cu_data::ref_addr_size): Update.
6751
1b555f17
SM
67522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6753
6754 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6755 (dw2_do_instantiate_symtab): Update.
6756 (queue_and_load_all_dwo_tus): Change parameter from
6757 dwarf2_per_cu_data to dwarf2_cu.
6758 (dwarf2_fetch_die_loc_sect_off): Update.
6759 (dwarf2_fetch_constant_bytes): Update.
6760 (dwarf2_fetch_die_type_sect_off): Update.
6761
8fc0b21d
SM
67622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6763
6764 * dwarf2/read.c (process_full_comp_unit,
6765 process_full_type_unit): Remove per_cu, per_objfile paramters.
6766 Add dwarf2_cu parameter.
6767 (process_queue): Update.
6768
168c9250
SM
67692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6770
6771 * dwarf2/read.c (create_cu_from_index_list): Replace
6772 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6773 (create_cus_from_index_list): Likewise.
6774 (create_cus_from_index): Likewise.
6775 (create_signatured_type_table_from_index): Likewise.
6776 (create_cus_from_debug_names_list): Likewise.
6777 (create_cus_from_debug_names): Likewise.
6778 (dwarf2_read_gdb_index): Update.
6779 (dwarf2_read_debug_names): Update.
6780
e286671b
TT
67812020-05-27 Tom Tromey <tom@tromey.com>
6782 Simon Marchi <simon.marchi@efficios.com>
6783
6784 * dwarf2/read.h (struct dwarf2_per_objfile)
6785 <get_type_for_signatured_type, set_type_for_signatured_type>:
6786 New methods.
6787 <m_type_map>: New member.
6788 (struct signatured_type) <type>: Remove.
6789 * dwarf2/read.c
6790 (dwarf2_per_objfile::get_type_for_signatured_type,
6791 dwarf2_per_objfile::set_type_for_signatured_type): New.
6792 (get_signatured_type): Use new methods.
6793
8adb8487
TT
67942020-05-27 Tom Tromey <tom@tromey.com>
6795 Simon Marchi <simon.marchi@efficios.com>
6796
6797 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6798 (struct dwarf2_per_objfile) <type_units>: New member.
6799 <get_type_unit_group_unshareable>: New method.
6800 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6801 num_symtabs, symtabs>: Remove; move to
6802 type_unit_group_unshareable.
6803 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6804 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6805 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6806
127bbf4b
SM
68072020-05-27 Simon Marchi <simon.marchi@efficios.com>
6808
6809 * dwarf2/read.h (struct dwarf2_per_cu_data):
6810 <dwarf2_per_objfile>: Remove.
6811 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6812 dwarf2_per_objfile.
6813 (create_signatured_type_table_from_index): Likewise.
6814 (create_signatured_type_table_from_debug_names): Likewise.
6815 (create_debug_type_hash_table): Likewise.
6816 (fill_in_sig_entry_from_dwo_entry): Likewise.
6817 (create_type_unit_group): Likewise.
6818 (read_comp_units_from_section): Likewise.
6819 (create_cus_hash_table): Likewise.
6820
f6e649dd
SM
68212020-05-27 Simon Marchi <simon.marchi@efficios.com>
6822
6823 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6824 dwarf2_per_cu_data::dwarf2_per_objfile.
6825 (compute_compunit_symtab_includes): Likewise.
6826 (dwarf2_cu::start_symtab): Likewise.
6827
aa66c379
SM
68282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6829
6830 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6831 parameter.
6832 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6833 (read_namespace_alias): Update.
6834 (lookup_die_type): Update.
6835 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6836 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6837 Update.
6838 (disassemble_dwarf_expression): Update.
6839
120ce1b5
SM
68402020-05-27 Simon Marchi <simon.marchi@efficios.com>
6841
6842 * dwarf2/read.h (struct dwarf2_queue_item): Add
6843 dwarf2_per_objfile parameter, assign new parameter.
6844 <per_objfile>: New field.
6845 * dwarf2/read.c (free_one_cached_comp_unit): Add
6846 dwarf2_per_objfile parameter.
6847 (queue_comp_unit): Likewise.
6848 (dw2_do_instantiate_symtab): Update.
6849 (process_psymtab_comp_unit): Update.
6850 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6851 (process_imported_unit_die): Update.
6852 (queue_and_load_dwo_tu): Update.
6853 (follow_die_offset): Update.
6854 (follow_die_sig_1): Update.
6855
9f47c707
SM
68562020-05-27 Simon Marchi <simon.marchi@efficios.com>
6857
6858 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6859 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6860 (read_call_site_scope): Assign per_objfile.
6861 (dwarf2_per_cu_data::objfile): Remove.
6862 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6863 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6864 dwarf2_per_objfile parameter.
6865 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6866 dwarf2_per_objfile parameter.
6867 (dwarf_expr_reg_to_entry_parameter): Add output
6868 dwarf2_per_objfile parameter.
6869 (locexpr_get_frame_base): Update.
6870 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6871 <push_dwarf_reg_entry_value>: Update.
6872 <call_site_to_target_addr>: Update.
6873 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6874 parameter.
6875 (value_of_dwarf_reg_entry): Update.
6876 (rw_pieced_value): Update.
6877 (indirect_synthetic_pointer): Update.
6878 (dwarf2_evaluate_property): Update.
6879 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6880 parameter.
6881 (locexpr_read_variable): Update.
6882 (locexpr_get_symbol_read_needs): Update.
6883 (loclist_read_variable): Update.
6884
14095eb3
SM
68852020-05-27 Simon Marchi <simon.marchi@efficios.com>
6886
6887 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6888 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6889 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6890 parameter.
6891 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6892 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6893 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6894 parameter.
6895 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6896 sect_variable_value): Add dwarf2_per_objfile parameter.
6897 (class dwarf_evaluate_loc_desc) <dwarf_call,
6898 dwarf_variable_value>: Update.
6899 (fetch_const_value_from_synthetic_pointer): Add
6900 dwarf2_per_objfile parameter.
6901 (fetch_const_value_from_synthetic_pointer): Update.
6902 (coerced_pieced_ref): Update.
6903 (class symbol_needs_eval_context) <dwarf_call,
6904 dwarf_variable_value>: Update.
6905 (dwarf2_compile_expr_to_ax): Update.
6906
3c3cd3d4
SM
69072020-05-27 Simon Marchi <simon.marchi@efficios.com>
6908
6909 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6910 parameter.
6911 (dwarf2_evaluate_loc_desc_full): Update.
6912
82ca3f51
SM
69132020-05-27 Simon Marchi <simon.marchi@efficios.com>
6914
6915 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6916 parameter.
6917 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6918 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6919 dwarf2_per_objfile parameter.
6920 (decode_debug_loc_dwo_addresses): Likewise.
6921 (dwarf2_find_location_expression): Update.
6922 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6923 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6924 parameter.
6925 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6926 parameter.
6927 (locexpr_describe_location_1): Likewise.
6928 (locexpr_describe_location): Update.
6929
4b167ea1
SM
69302020-05-27 Simon Marchi <simon.marchi@efficios.com>
6931
6932 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6933 Remove.
6934 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6935 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6936 (dwarf2_compile_property_to_c): Update.
6937 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6938 use text offset from objfile.
6939 (locexpr_tracepoint_var_ref): Update.
6940 (locexpr_generate_c_location): Update.
6941 (loclist_describe_location): Update.
6942 (loclist_tracepoint_var_ref): Update.
6943 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6944 dwarf2_per_objfile parameter.
6945 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6946 use text offset from objfile.
6947 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6948
89b07335
SM
69492020-05-27 Simon Marchi <simon.marchi@efficios.com>
6950
6951 * dwarf2/expr.h (struct dwarf_expr_context)
6952 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6953 <offset>: Remove.
6954 <per_objfile>: New member.
6955 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6956 dwarf2_per_objfile parameter. Don't set offset, set
6957 per_objfile.
6958 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6959 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6960 a dwarf2_per_objfile object instead of an offset.
6961 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6962 constructor.
6963 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6964 to dwarf2_expr_executor constructor. Don't set offset.
6965 (dwarf2_fetch_cfa_info): Update.
6966 (struct dwarf2_frame_cache) <text_offset>: Remove.
6967 <per_objfile>: New field.
6968 (dwarf2_frame_cache): Update.
6969 (dwarf2_frame_prev_register): Update.
6970 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6971 <dwarf_evaluate_loc_desc>: Add constructor.
6972 (dwarf2_evaluate_loc_desc_full): Update.
6973 (dwarf2_locexpr_baton_eval): Update.
6974 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6975 Add constructor.
6976 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6977
293e7e51
SM
69782020-05-27 Simon Marchi <simon.marchi@efficios.com>
6979
6980 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6981 addr_sized_int_type>: Move to dwarf2_cu.
6982 <int_type>: Move to dwarf2_per_objfile.
6983 (struct dwarf2_per_objfile) <int_type>: Move here.
6984 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6985 addr_sized_int_type>: Move here.
6986 (read_func_scope): Update.
6987 (read_array_type): Update.
6988 (read_tag_string_type): Update.
6989 (attr_to_dynamic_prop): Update.
6990 (dwarf2_per_cu_data::int_type): Rename to...
6991 (dwarf2_per_objfile::int_type): ... this.
6992 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6993 (dwarf2_cu::addr_sized_int_type): ... this.
6994 (read_subrange_type): Update.
6995 (dwarf2_per_cu_data::addr_type): Rename to...
6996 (dwarf2_cu::addr_type): ... this.
6997 (set_die_type): Update.
6998
64874a40
SM
69992020-05-27 Simon Marchi <simon.marchi@efficios.com>
7000
7001 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7002 data through per_cu->cu.
7003
4ab09049
SM
70042020-05-27 Simon Marchi <simon.marchi@efficios.com>
7005
7006 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7007 dwarf2_per_cu_data parameter fo dwarf2_cu.
7008 (lookup_dwo_type_unit): Likewise.
7009 (read_cutu_die_from_dwo): Likewise.
7010 (lookup_dwo_unit): Likewise.
7011 (open_and_init_dwo_file): Likewise.
7012 (lookup_dwo_cutu): Likewise.
7013 (lookup_dwo_comp_unit): Likewise.
7014 (lookup_dwo_type_unit): Likewise.
7015 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7016 (cutu_reader::cutu_reader): Update.
7017
47b14e86
SM
70182020-05-27 Simon Marchi <simon.marchi@efficios.com>
7019
7020 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7021 parameter.
7022 (process_full_type_unit): Likewise.
7023 (process_queue): Update.
7024
43182c09
SM
70252020-05-27 Simon Marchi <simon.marchi@efficios.com>
7026
7027 * dwarf2/read.c (recursively_compute_inclusions): Add
7028 dwarf2_per_objfile parameter.
7029 (compute_compunit_symtab_includes): Likewise.
7030 (process_cu_includes): Update.
7031
7aa104c4
SM
70322020-05-27 Simon Marchi <simon.marchi@efficios.com>
7033
7034 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7035 parameter.
7036 (create_type_unit_group): Update.
7037 (process_psymtab_comp_unit_reader): Update.
7038 (build_type_psymtabs_reader): Update.
7039
e3beb21d
SM
70402020-05-27 Simon Marchi <simon.marchi@efficios.com>
7041
7042 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7043 object through m_this_cu->cu.
7044
d460f660
SM
70452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7046
7047 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7048 the info parameter.
7049 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7050
ab432490
SM
70512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7052
7053 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7054 per_objfile parameter.
7055 (load_full_type_unit): Add per_objfile parameter.
7056 (read_signatured_type): Likewise.
7057 (load_full_comp_unit): Likewise.
7058 (load_cu): Likewise.
7059 (dw2_do_instantiate_symtab): Likewise.
7060 (dw2_get_file_names): Likewise.
7061 (dw2_map_symtabs_matching_filename): Update.
7062 (dw_expand_symtabs_matching_file_matcher): Update.
7063 (dw2_map_symbol_filenames): Update.
7064 (process_psymtab_comp_unit): Add per_objfile parameter.
7065 (build_type_psymtabs_1): Update.
7066 (process_skeletonless_type_unit): Update.
7067 (dwarf2_build_psymtabs_hard): Update.
7068 (load_partial_comp_unit): Add per_objfile parameter.
7069 (scan_partial_symbols): Update.
7070 (load_full_comp_unit): Add per_objfile parameter.
7071 (process_imported_unit_die): Update.
7072 (create_cus_hash_table): Update.
7073 (find_partial_die): Update.
7074 (dwarf2_read_addr_index): Update.
7075 (follow_die_offset): Update.
7076 (dwarf2_fetch_die_loc_sect_off): Update.
7077 (dwarf2_fetch_constant_bytes): Update.
7078 (dwarf2_fetch_die_type_sect_off): Update.
7079 (follow_die_sig_1): Update.
7080 (load_full_type_unit): Add per_objfile parameter.
7081 (read_signatured_type): Likewise.
7082
313bad1b
SM
70832020-05-27 Simon Marchi <simon.marchi@efficios.com>
7084
7085 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7086 of objfile_name.
7087
c3699833
SM
70882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7089
7090 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7091 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7092 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7093 field.
7094 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7095 (create_cus_from_index): Update.
7096 (dwarf2_read_gdb_index): Update.
7097 (create_cus_from_debug_names): Update.
7098 (dwarf2_read_debug_names): Update.
7099 (get_abbrev_section_for_cu): Update.
7100 (create_all_comp_units): Update.
7101 (read_attribute_value): Update.
7102 (get_debug_line_section): Update.
7103 * dwarf2/index-cache.c (index_cache::store): Update.
7104 * dwarf2/index-write.c (save_gdb_index_command): Update.
7105 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7106
1859c670
SM
71072020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7108
7109 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7110 member.
7111 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7112 dwarf2_per_cu_data::per_bfd.
7113 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7114 (create_type_unit_group): Likewise.
7115 (queue_comp_unit): Remove reference to
7116 per_cu->dwarf2_per_objfile.
7117 (maybe_queue_comp_unit): Likewise.
7118 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7119 (create_cus_hash_table): Assign new field.
7120
5e22e966
SM
71212020-05-27 Simon Marchi <simon.marchi@efficios.com>
7122
7123 * dwarf2/read.c: Replace
7124 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7125 dwarf2_cu->per_objfile throughout.
7126
97a1449a
SM
71272020-05-27 Simon Marchi <simon.marchi@efficios.com>
7128
7129 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7130 parameter, don't use per_cu->dwarf2_per_objfile.
7131 (dw2_instantiate_symtab): Likewise.
7132 (dw2_find_last_source_symtab): Update.
7133 (dw2_map_expand_apply): Update.
7134 (dw2_lookup_symbol): Update.
7135 (dw2_expand_symtabs_for_function): Update.
7136 (dw2_expand_all_symtabs): Update.
7137 (dw2_expand_symtabs_with_fullname): Update.
7138 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7139 don't use per_cu->dwarf2_per_objfile.
7140 (dw2_expand_marked_cus): Update.
7141 (dw2_find_pc_sect_compunit_symtab): Update.
7142 (dw2_debug_names_lookup_symbol): Update.
7143 (dw2_debug_names_expand_symtabs_for_function): Update.
7144 (dw2_debug_names_map_matching_symbols): Update.
7145 (dwarf2_psymtab::expand_psymtab): Update.
7146
9e021579
SM
71472020-05-27 Simon Marchi <simon.marchi@efficios.com>
7148
7149 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7150 <per_objfile>: New member.
7151 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7152 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7153 call to dwarf2_cu.
7154 (cutu_reader::cutu_reader): Update.
7155 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7156
ae090bdb
SM
71572020-05-27 Simon Marchi <simon.marchi@efficios.com>
7158
7159 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7160 struct dwarf2_per_objfile.
7161 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7162 dwarf2_per_bfd.
7163 * dwarf2/read.c (set_die_type): Update.
7164 (get_die_type_at_offset): Update.
7165
af758d11
SM
71662020-05-27 Tom Tromey <tom@tromey.com>
7167 Simon Marchi <simon.marchi@efficios.com>
7168
7169 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7170 method.
7171 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7172 get_symtab, set_symtab>: New methods.
7173 <m_symtabs>: New field.
7174 (struct dwarf2_psymtab): Derive from partial_symtab.
7175 <readin_p, get_compunit_symtab>: Declare methods.
7176 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7177 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7178 New methods.
7179 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7180 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7181 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7182 (dw2_symtab_iter_next, dw2_print_stats)
7183 (dw2_expand_symtabs_with_fullname)
7184 (dw2_expand_symtabs_matching_one)
7185 (dw_expand_symtabs_matching_file_matcher)
7186 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7187 (dw2_debug_names_iterator::next)
7188 (dw2_debug_names_map_matching_symbols)
7189 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7190 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7191 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7192 New methods.
7193 (get_compunit_symtab, process_full_comp_unit)
7194 (process_full_type_unit): Update.
7195 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7196
5989a64e
SM
71972020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7198
7199 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7200 then introduce a new dwarf2_per_objfile type.
7201 <read_line_string>: Move to the new dwarf2_per_objfile type.
7202 <objfile>: Likewise.
7203 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7204 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7205 dwarf2_per_objfile->per_bfd.
7206 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7207 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7208 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7209 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7210 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7211 (dwarf2_per_objfile::locate_sections): Rename to...
7212 (dwarf2_per_bfd::locate_sections): ... this.
7213 (dwarf2_per_objfile::get_cutu): Rename to...
7214 (dwarf2_per_bfd::get_cutu): ... this.
7215 (dwarf2_per_objfile::get_cu): Rename to...
7216 (dwarf2_per_bfd::get_cu): ... this.
7217 (dwarf2_per_objfile::get_tu): Rename to...
7218 (dwarf2_per_bfd::get_tu): ... this.
7219 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7220 (dwarf2_per_bfd::allocate_per_cu): ... this.
7221 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7222 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7223 (get_gdb_index_contents_ftype): Change parameter from
7224 dwarf2_per_objfile to dwarf2_per_bfd.
7225 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7226 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7227
a50264ba
TT
72282020-05-27 Tom Tromey <tom@tromey.com>
7229 Simon Marchi <simon.marchi@efficios.com>
7230
7231 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7232 (allocate_piece_closure): Set "per_objfile" member.
7233 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7234 (locexpr_describe_location, loclist_describe_location): Use new
7235 member.
7236 * dwarf2/read.c (read_call_site_scope)
7237 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7238 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7239 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7240 handle_data_member_location): Set per_objfile member.
7241 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7242 member.
7243 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7244
d3473f0c
TT
72452020-05-27 Tom Tromey <tom@tromey.com>
7246
7247 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7248 allocate_signatured_type>: Declare new methods.
7249 <m_num_psymtabs>: New member.
7250 (struct dwarf2_per_cu_data) <index>: New member.
7251 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7252 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7253 (create_cu_from_index_list): Use allocate_per_cu.
7254 (create_signatured_type_table_from_index)
7255 (create_signatured_type_table_from_debug_names)
7256 (create_debug_type_hash_table, add_type_unit)
7257 (read_comp_units_from_section): Use allocate_signatured_type.
7258
5717c425
TT
72592020-05-27 Tom Tromey <tom@tromey.com>
7260
7261 * psymtab.c (partial_map_expand_apply)
7262 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7263 (psym_lookup_global_symbol_language)
7264 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7265 (psym_print_stats, psym_expand_symtabs_for_function)
7266 (psym_map_symbol_filenames, psym_map_matching_symbols)
7267 (psym_expand_symtabs_matching)
7268 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7269 (maintenance_check_psymtabs): Update.
7270 * psympriv.h (struct partial_symtab) <readin_p,
7271 get_compunit_symtab>: Add objfile parameter.
7272 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7273 Likewise.
7274 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7275 get_compunit_symtab>: Likewise.
7276 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7277
45940949
TT
72782020-05-27 Tom Tromey <tom@tromey.com>
7279
7280 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7281 member.
7282 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7283 (create_cu_from_index_list)
7284 (create_signatured_type_table_from_index)
7285 (create_signatured_type_table_from_debug_names)
7286 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7287 (dwarf2_create_include_psymtab)
7288 (create_debug_type_hash_table, add_type_unit)
7289 (create_type_unit_group, read_comp_units_from_section)
7290 (dwarf2_compute_name, create_cus_hash_table)
7291 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7292 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7293 obstack.
7294 (dw2_get_real_path): Likewise. Change argument to
7295 dwarf2_per_objfile.
7296
f8c6d152
LM
72972020-05-27 Luis Machado <luis.machado@linaro.org>
7298
7299 PR tdep/26000
7300 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7301 for ldrd (immediate).
7302
e98d2e6d
PW
73032020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7304
7305 * command.h: Add comment giving the name of class_tui.
7306 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7307 create the fake command for the help for class_tui.
7308
53a47a3e
TT
73092020-05-26 Tom Tromey <tromey@adacore.com>
7310
7311 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7312 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7313 (val_atr): New function.
7314 (value_val_atr): Use it.
7315 * ada-valprint.c (print_optional_low_bound): Change low bound
7316 handling for enums.
7317 (val_print_packed_array_elements): Don't call discrete_position.
7318 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7319 discrete_position for enum types.
7320 * language.c (default_print_array_index): Change type.
7321 * language.h (struct language_defn) <la_print_array_index>: Add
7322 index_type parameter, change type of index_value.
7323 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7324 (default_print_array_index): Update.
7325 * valprint.c (maybe_print_array_index): Don't call
7326 value_from_longest. Update.
7327 (value_print_array_elements): Don't call discrete_position.
7328
0bc2354b
TT
73292020-05-26 Tom Tromey <tromey@adacore.com>
7330
7331 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7332 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7333
1218a4bf
CDA
73342020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7335
7336 PR gdb/13519
7337 * avr-tdep.c (avr_integer_to_address): Return data or code
7338 address accordingly to the second 'type' argument of the
7339 function.
7340
92651b1d
MW
73412020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7342
7343 * infcmd.c, inferior.h: (construct_inferior_arguments):
7344 Moved function from here to gdbsupport/common-inferior.{h,cc}
7345
0a4f5f8c
TT
73462020-05-23 Tom Tromey <tom@tromey.com>
7347
7348 Revert commit eca1f90c:
7349 * NEWS: Remove entry for completion styling.
7350 * completer.c (_rl_completion_prefix_display_length): Move
7351 declaration later.
7352 (gdb_fnprint): Revert.
7353 (gdb_display_match_list_1): Likewise.
7354 * cli/cli-style.c (completion_prefix_style)
7355 (completion_difference_style, completion_suffix_style): Remove.
7356 (_initialize_cli_style): Revert.
7357 * cli/cli-style.h (completion_prefix_style)
7358 (completion_difference_style, completion_suffix_style): Don't
7359 declare.
7360
e08bd6c5
PA
73612020-05-24 Pedro Alves <palves@redhat.com>
7362
7363 * symtab.c (completion_list_add_name): Return boolean indication
7364 of whether the symbol matched.
7365 (completion_list_add_symbol): Don't try to remove C++ aliases if
7366 the symbol didn't match in the first place.
7367 * symtab.h (completion_list_add_name): Return bool.
7368
ceacbf6e
SM
73692020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7370
7371 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7372 type::field.
7373
26f16254
JB
73742020-05-23 Joel Brobecker <brobecker@adacore.com>
7375
7376 GDB 9.2 released.
7377
eca1f90c
TT
73782020-05-23 Tom Tromey <tom@tromey.com>
7379
7380 * NEWS: Add entry for completion styling.
7381 * completer.c (_rl_completion_prefix_display_length): Move
7382 declaration earlier.
7383 (gdb_fnprint): Use completion_style.
7384 (gdb_display_match_list_1): Likewise.
7385 * cli/cli-style.c (completion_prefix_style)
7386 (completion_difference_style, completion_suffix_style): New
7387 globals.
7388 (_initialize_cli_style): Register new globals.
7389 * cli/cli-style.h (completion_prefix_style)
7390 (completion_difference_style, completion_suffix_style): Declare.
7391
51e2cfa2
PA
73922020-05-23 Pedro Alves <palves@redhat.com>
7393
7394 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7395 (parse_escape): Use ISDIGIT instead of isdigit.
7396 (puts_debug): Use gdb_isprint instead of isprint.
7397 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7398 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7399 ISSPACE instead of isspace.
7400 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7401 instead of isspace.
7402 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7403 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7404 instead of isxdigit and ISDIGIT instead of isdigit.
7405
80fc5e77
SM
74062020-05-22 Simon Marchi <simon.marchi@efficios.com>
7407
7408 * gdbtypes.h (struct type) <field>: New method.
7409 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7410 or type::field.
7411
3cabb6b0
SM
74122020-05-22 Simon Marchi <simon.marchi@efficios.com>
7413
7414 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7415 (TYPE_FIELDS): Use type::fields. Change all call sites that
7416 modify the propery to use type::set_fields instead.
7417
1f704f76
SM
74182020-05-22 Simon Marchi <simon.marchi@efficios.com>
7419
7420 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7421 type::num_fields instead.
7422
5e33d5f4
SM
74232020-05-22 Simon Marchi <simon.marchi@efficios.com>
7424
7425 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7426 methods.
7427 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7428 that modify the number of fields to use type::set_num_fields
7429 instead.
7430
9392ebb3
TT
74312020-05-22 Tom Tromey <tromey@adacore.com>
7432
7433 * compile/compile-object-load.h (munmap_list_free): Don't
7434 declare.
7435
7c13f4e8
AB
74362020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7437
7438 * annotate.c (annotate_source_line): Update return type, add call
7439 to update current symtab and line.
7440 * annotate.h (annotate_source_line): Update return type, and
7441 extend header comment.
7442 * source.c (info_line_command): Check annotation_level before
7443 calling annotate_source_line.
7444 * stack.c (print_frame_info): If calling annotate_source_line
7445 returns true, then don't print any other source line information.
7446
aa370940
SM
74472020-05-21 Simon Marchi <simon.marchi@efficios.com>
7448
7449 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7450
84d53fa9
SM
74512020-05-21 Simon Marchi <simon.marchi@efficios.com>
7452
7453 * coffread.c (patch_type): Remove NULL check before xfree.
7454 * corefile.c (set_gnutarget): Likewise.
7455 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7456 * exec.c (build_section_table): Likewise.
7457 * remote.c (remote_target::pass_signals): Likewise.
7458 * utils.c (n_spaces): Likewise.
7459 * cli/cli-script.c (document_command): Likewise.
7460 * i386-windows-tdep.c (core_process_module_section): Likewise.
7461 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7462
9d428aae
SM
74632020-05-20 Simon Marchi <simon.marchi@efficios.com>
7464
7465 * symfile.c (reread_symbols): Clear objfile's section_offsets
7466 vector and section indices, re-compute them by calling
7467 sym_offsets.
7468
250106a7
TT
74692020-05-20 Tom Tromey <tromey@adacore.com>
7470
7471 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7472 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7473
9a0bacfb
TV
74742020-05-20 Tom de Vries <tdevries@suse.de>
7475
7476 PR symtab/25833
7477 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7478
7b958a48
AM
74792020-05-20 Alan Modra <amodra@gmail.com>
7480
7481 PR 25993
7482 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7483 bfd_set_filename.
7484 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7485 passed to bfd_set_filename.
7486 * symfile-mem.c (add_vsyscall_page): Likewise for string
7487 passed to symbol_file_add_from_memory.
7488 (symbol_file_add_from_memory): Make name param a const char* and
7489 don't strdup.
7490
c7e97679
AM
74912020-05-20 Alan Modra <amodra@gmail.com>
7492
7493 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7494 rather than accessing bfd->filename directly.
7495 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7496 and use bfd_section_name.
7497 * dwarf2/frame.c (decode_frame_entry): Likewise.
7498 * exec.c (exec_set_section_address): Likewise.
7499 * solib-aix.c (solib_aix_bfd_open): Likewise.
7500 * stap-probe.c (get_stap_base_address): Likewise.
7501 * symfile.c (reread_symbols): Likewise.
7502
563c591b
TT
75032020-05-19 Tom Tromey <tromey@adacore.com>
7504
7505 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7506
f408d82c
SM
75072020-05-19 Simon Marchi <simon.marchi@efficios.com>
7508
7509 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7510
98c59b52
PA
75112020-05-19 Pedro Alves <palves@redhat.com>
7512
7513 * NEWS (set exec-file-mismatch): Adjust entry.
7514 * exec.c: Include "build-id.h".
7515 (validate_exec_file): Try to match build IDs instead of filenames.
7516 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7517 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7518 and pass down 'warn_if_slow'.
7519 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7520 gdb_bfd_open_closure to pass it down.
7521 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7522
4111f652
PA
75232020-05-19 Pedro Alves <palves@redhat.com>
7524
7525 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7526 * target.c (target_fileio_open_1): Rename to target_fileio_open
7527 and make extern. Use bool.
7528 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7529 (target_fileio_read_alloc_1): Adjust.
7530 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7531 (target_fileio_open_warn_if_slow): Delete declaration.
7532
ad80db5b
PA
75332020-05-19 Pedro Alves <palves@redhat.com>
7534
7535 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7536 Adjust all callers.
7537
1d6ce4d3
YS
75382020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7539
7540 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7541 whether disp is negative.
7542
9005fbbb
SM
75432020-05-19 Simon Marchi <simon.marchi@efficios.com>
7544
7545 * symfile.h (struct symfile_segment_data)
7546 <~symfile_segment_data>: Remove.
7547 <segment_info>: Change to std::vector.
7548 * symfile.c (default_symfile_segments): Update.
7549 * elfread.c (elf_symfile_segments): Update.
7550
68b888ff
SM
75512020-05-19 Simon Marchi <simon.marchi@efficios.com>
7552
7553 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7554 <segments>: New.
7555 <segment_bases, segment_sizes>: Remove.
7556 * symfile.c (default_symfile_segments): Update.
7557 * elfread.c (elf_symfile_segments): Update.
7558 * remote.c (remote_target::get_offsets): Update.
7559 * solib-target.c (solib_target_relocate_section_addresses):
7560 Update.
7561
62982abd
SM
75622020-05-19 Simon Marchi <simon.marchi@efficios.com>
7563
7564 * symfile.h (struct symfile_segment_data): Initialize fields.
7565 <~symfile_segment_data>: Add.
7566 (symfile_segment_data_up): New.
7567 (struct sym_fns) <sym_segments>: Return a
7568 symfile_segment_data_up.
7569 (default_symfile_segments): Return a symfile_segment_data_up.
7570 (free_symfile_segment_data): Remove.
7571 (get_symfile_segment_data): Return a symfile_segment_data_up.
7572 * symfile.c (default_symfile_segments): Likewise.
7573 (get_symfile_segment_data): Likewise.
7574 (free_symfile_segment_data): Remove.
7575 (symfile_find_segment_sections): Update.
7576 * elfread.c (elf_symfile_segments): Return a
7577 symfile_segment_data_up.
7578 * remote.c (remote_target::get_offsets): Update.
7579 * solib-target.c (solib_target_relocate_section_addresses):
7580 Update.
7581 * symfile-debug.c (debug_sym_segments): Return a
7582 symfile_segment_data_up.
7583
7f204339
RO
75842020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7585
e52a0f1b
RO
7586 PR build/25981
7587 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7588 Hardcode register numbers.
7589
7f204339
RO
7590 PR build/25981
7591 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7592 procfs_find_LDT_entry): Remove.
7593 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7594 procfs_find_LDT_entry): Remove.
7595 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7596 Remove.
7597
7f32a4d5
PA
75982020-05-17 Pedro Alves <palves@redhat.com>
7599 Andrew Burgess <andrew.burgess@embecosm.com>
7600 Keno Fischer <keno@juliacomputing.com>
7601
7602 PR gdb/25741
7603 * breakpoint.c (build_target_condition_list): Update comments.
7604 (build_target_command_list): Update comments and skip matching
7605 locations.
7606 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7607 a separate function. Simplify "set breakpoint auto-hw off"
7608 handling.
7609 (insert_breakpoints): Update comment.
7610 (tracepoint_locations_match): New parameter. For breakpoints,
7611 compare location types too, if the caller wants to.
7612 (handle_automatic_hardware_breakpoints): New functions.
7613 (bp_location_is_less_than): Also sort by location type and
7614 hardware breakpoint length.
7615 (update_global_location_list): Handle "set breakpoint auto-hw on"
7616 here.
7617 (update_breakpoint_locations): Ask breakpoint_locations_match to
7618 ignore location types.
7619
7d93a1e0
SM
76202020-05-16 Simon Marchi <simon.marchi@efficios.com>
7621
7622 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7623 type::name instead.
7624
d0e39ea2
SM
76252020-05-16 Simon Marchi <simon.marchi@efficios.com>
7626
7627 * gdbtypes.h (struct type) <name, set_name>: New methods.
7628 (TYPE_CODE): Use type::name. Change all call sites used to set
7629 the name to use type::set_name instead.
7630
2dab0c7b
TT
76312020-05-16 Tom Tromey <tom@tromey.com>
7632
7633 * top.c (quit_force): Update.
7634 * infrun.c (handle_no_resumed): Update.
7635 * top.h (all_uis): New function.
7636 (ALL_UIS): Remove.
7637
59f7bd8d
SM
76382020-05-16 Simon Marchi <simon.marchi@efficios.com>
7639
7640 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7641
9bf058f0
PA
76422020-05-16 Pedro Alves <palves@redhat.com>
7643
7644 * ia64-linux-nat.c
7645 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7646 Declare method.
7647 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7648
8f86ae1a
SM
76492020-05-15 Simon Marchi <simon.marchi@efficios.com>
7650
7651 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7652 (sparc64_adi_info): Likewise.
7653
d6bc0792
TT
76542020-05-15 Tom Tromey <tom@tromey.com>
7655
7656 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7657 block_objfile.
7658 (lookup_objfile_from_block): Remove.
7659 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7660 (lookup_global_symbol): Use block_objfile.
7661 * symtab.h (lookup_objfile_from_block): Don't declare.
7662 * printcmd.c (clear_dangling_display_expressions): Use
7663 block_objfile.
7664 * parse.c (operator_check_standard): Use block_objfile.
7665
8c14c3a3
TT
76662020-05-15 Tom Tromey <tom@tromey.com>
7667
7668 * language.c (language_alloc_type_symbol): Set
7669 SYMBOL_SECTION.
7670 * symtab.c (initialize_objfile_symbol): Remove.
7671 (allocate_symbol): Remove.
7672 (allocate_template_symbol): Remove.
7673 * dwarf2/read.c (fixup_go_packaging): Use "new".
7674 (new_symbol): Use "new".
7675 (read_variable): Don't call initialize_objfile_symbol. Use
7676 "new".
7677 (read_func_scope): Use "new".
7678 * xcoffread.c (process_xcoff_symbol): Don't call
7679 initialize_objfile_symbol.
7680 (SYMBOL_DUP): Remove.
7681 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7682 "new".
7683 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7684 (allocate_template_symbol): Don't declare.
7685 (struct symbol): Add copy constructor. Change defaults.
7686 * jit.c (finalize_symtab): Use "new".
7687 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7688 Use "new".
7689 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7690 (common_block_end): Use "new".
7691 * mdebugread.c (parse_symbol): Use "new".
7692 (new_symbol): Likewise.
7693
5b4a1a8d
PW
76942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7695
7696 * NEWS: Mention changes to help and apropos.
7697
57b4f16e
PW
76982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7699
7700 * command.h (enum command_class): Improve comments, document
7701 that class_alias is for user-defined aliases, give the class
7702 name for each class, remove unused class_xdb.
7703 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7704 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7705 by a precise class.
7706 * infcmd.c (_initialize_infcmd): Likewise.
7707 * reverse.c (_initialize_reverse): Likewise.
7708 * stack.c (_initialize_stack): Likewise.
7709 * symfile.c (_initialize_symfile): Likewise.
7710 * tracepoint.c (_initialize_tracepoint): Likewise.
7711
7c05caf7
PW
77122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7713
7714 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7715 when their aliased command is traversed.
7716 (help_cmd): Add fput_command_names_styled call to
7717 output command name and aliases when command has an alias.
7718
3b3aaacb
PW
77192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7720
7721 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7722 * cli/cli-decode.c (help_cmd_list): Declare as static,
7723 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7724 a command together with the command.
7725 (fput_command_name_styled, fput_command_names_styled): New functions.
7726 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7727 fput_command_name_styled.
7728 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7729 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7730
7aa1b46f
PW
77312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7732
7733 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7734 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7735 * command.h (cmd_show_list): Likewise.
7736 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7737 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7738
89bcba74
PW
77392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7740
7741 * unittests/command-def-selftests.c (traverse_command_structure):
7742 Verify all commands of a list have the same prefix command and
7743 that only the top cmdlist commands have a null prefix.
7744
3f4d92eb
PW
77452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7746
7747 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7748 as prefix, not one of its aliases.
7749 (set_cmd_prefix): Remove.
7750 (do_add_cmd): Centralize the setting of the prefix of a command, when
7751 command is defined after its full chain of prefix commands.
7752 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7753 (add_setshow_cmd_full): Likewise.
7754 (update_prefix_field_of_prefixed_commands): New function.
7755 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7756 update_prefix_field_of_prefixed_commands.
7757 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7758 addresses of remote_set_cmdlist and remote_show_cmdlist given
7759 as argument, not the address of an argument.
7760 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7761 * gdb/remote.c (_initialize_remote): Likewise.
7762
0605465f
PW
77632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7764
7765 * cli/cli-cmds.c (alias_command): Check for an existing alias
7766 using lookup_cmd_composition, as valid_command_p is too strict
7767 and forbids aliases that are the prefix of an existing alias
7768 or command.
7769 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7770 command is properly recognised as a valid command.
7771
58e6ac70
PW
77722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7773
7774 * unittests/help-doc-selftests.c: Rename to
7775 unittests/command-def-selftests.c
7776 * unittests/command-def-selftests.c (help_doc_tests): Update some
7777 comments.
7778 (command_structure_tests, traverse_command_structure): New namespace
7779 and function.
7780 (command_structure_invariants_tests): New function.
7781 (_initialize_command_def_selftests) Renamed from
7782 _initialize_help_doc_selftests, register command_structure_invariants
7783 selftest.
7784
a7b9ceb8
PW
77852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7786
7787 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7788 an alias of 'show'.
7789
b2188a06
JB
77902020-05-15 Joel Brobecker <brobecker@adacore.com>
7791
7792 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7793 ada_is_fixed_point_type. Update all callers.
7794 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7795 all callers.
7796 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7797 Update all callers.
7798 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7799 print_fixed_point_type. Update all callers.
7800 * ada-valprint.c (ada_value_print_num): Replace call to
7801 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7802
a51951c2
KB
78032020-05-14 Kevin Buettner <kevinb@redhat.com>
7804
7805 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7806 processors.
7807 (cpu_supports_bts): Add CV_AMD case.
7808
29d6859f
LM
78092020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7810 Simon Marchi <simon.marchi@efficios.com>
7811
7812 * infrun.c (stop_all_threads): Collect multiple wait events at
7813 each pass.
7814
78134374
SM
78152020-05-14 Simon Marchi <simon.marchi@efficios.com>
7816
7817 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7818 type::code instead.
7819
67607e24
SM
78202020-05-14 Simon Marchi <simon.marchi@efficios.com>
7821
7822 * gdbtypes.h (struct type) <code, set_code>: New methods.
7823 (TYPE_CODE): Use type::code. Change all call sites used to set
7824 the code to use type::set_code instead.
7825
a05575d3
TBA
78262020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7827 Tom de Vries <tdevries@suse.de>
7828 Pedro Alves <palves@redhat.com>
7829
7830 PR threads/25478
7831 * infrun.c (stop_all_threads): Do NOT ignore
7832 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7833 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7834 received.
7835 (handle_no_resumed): Remove code handling a live inferior with no
7836 threads.
7837 * remote.c (has_single_non_exited_thread): New.
7838 (remote_target::update_thread_list): Do not delete a thread if is
7839 the last thread of the process.
7840 * thread.c (thread_select): Call delete_exited_threads instead of
7841 prune_threads.
7842
6ad82919
TBA
78432020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7844
7845 * infrun.c (stop_all_threads): Enable/disable thread events of all
7846 targets. Move a debug message denoting the end of the function
7847 into the SCOPED_EXIT block.
7848
d890404b
TBA
78492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7850
7851 * process-stratum-target.h: Include <set>.
7852 (all_non_exited_process_targets, switch_to_target_no_thread): New
7853 function declarations.
7854 * process-stratum-target.c (all_non_exited_process_targets)
7855 (switch_to_target_no_thread): New function implementations.
7856
293b3ebc
TBA
78572020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7858
7859 * infrun.c (handle_inferior_event): Extract out a piece of code
7860 into...
7861 (mark_non_executing_threads): ...this new function.
7862
7ca9b62a
TBA
78632020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7864
7865 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7866 use.
7867
fc75c28b
TBA
78682020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7869
7870 * regcache.c (regcache_read_pc_protected): New function
7871 implementation that returns 0 if the PC cannot read via
7872 'regcache_read_pc'.
7873 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7874 instead of 'regcache_read_pc'.
7875 (keep_going_pass_signal): Ditto.
7876
a89febbd
TT
78772020-05-13 Tom Tromey <tromey@adacore.com>
7878
7879 * ada-lang.c (align_value): Remove.
7880 (ada_template_to_fixed_record_type_1): Use align_up.
7881
f7e23710
TBA
78822020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7883
7884 * async-event.c: Update the copyright year.
7885 * async-event.h: Update the copyright year.
7886
02ff80c2
SM
78872020-05-12 Simon Marchi <simon.marchi@efficios.com>
7888
7889 * objfiles.h (is_addr_in_objfile,
7890 shared_objfile_contains_address_p): Return bool.
7891 * objfile.c (is_addr_in_objfile,
7892 shared_objfile_contains_address_p): Return bool.
7893
4fd6c7e8
TT
78942020-05-11 Tom Tromey <tromey@adacore.com>
7895
7896 * cli/cli-cmds.c (info_command): Restore.
7897 (_initialize_cli_cmds): Use add_prefix_command for "info".
7898 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7899
5eb68a39
TT
79002020-05-11 Tom Tromey <tromey@adacore.com>
7901
7902 * ada-lang.c (ada_value_primitive_field): Now public.
7903 * ada-lang.h (ada_value_primitive_field): Declare.
7904 * ada-valprint.c (print_field_values): Use
7905 ada_value_primitive_field for wrapper fields.
7906
7666722f
TV
79072020-05-11 Tom de Vries <tdevries@suse.de>
7908
7909 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7910 MODULE_DOMAIN.
7911
3ee6bb11
TV
79122020-05-11 Tom de Vries <tdevries@suse.de>
7913
7914 PR symtab/25941
7915 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7916 with length 0, if not gdb-produced.
7917 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7918
43434996
TV
79192020-05-09 Tom de Vries <tdevries@suse.de>
7920
7921 PR gdb/25955
7922 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7923 calculation.
7924
2f78cffc
TT
79252020-05-09 Tom Tromey <tom@tromey.com>
7926
7927 * top.c (server_command): Now bool.
7928 * top.h (server_command): Now bool.
7929
4f7bc5ed
TT
79302020-05-08 Tom Tromey <tromey@adacore.com>
7931
7932 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7933 already being processed.
7934
8be4b118
TT
79352020-05-08 Tom Tromey <tom@tromey.com>
7936
7937 * printcmd.c (struct display) <next>: Remove.
7938 <display>: New constructor.
7939 <exp_string>: Now a std::string.
7940 <enabled_p>: Now a bool.
7941 (display_number): Move definition earlier.
7942 (displays): Rename from display_chain. Now a std::vector.
7943 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7944 (display_command): Update.
7945 (do_one_display, disable_display)
7946 (enable_disable_display_command, do_enable_disable_display):
7947 Update.
7948 (free_display): Remove.
7949 (clear_displays): Rewrite.
7950 (delete_display): Update.
7951 (map_display_numbers): Use function_view. Remove "data"
7952 parameter. Update.
7953 (do_delete_display): Remove.
7954 (undisplay_command): Update.
7955 (do_one_display, do_displays, disable_display)
7956 (info_display_command): Update.
7957 (do_enable_disable_display): Remove.
7958 (enable_disable_display_command)
7959 (clear_dangling_display_expressions): Update.
7960
94c93c35
TT
79612020-05-08 Tom Tromey <tom@tromey.com>
7962
7963 * symtab.c (set_symbol_cache_size)
7964 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7965 (maintenance_print_symbol_cache_statistics): Update.
7966 * symmisc.c (print_symbol_bcache_statistics)
7967 (print_objfile_statistics, maintenance_print_objfiles)
7968 (maintenance_info_symtabs, maintenance_check_symtabs)
7969 (maintenance_expand_symtabs, maintenance_info_line_tables):
7970 Update.
7971 * symfile-debug.c (set_debug_symfile): Update.
7972 * source.c (forget_cached_source_info): Update.
7973 * python/python.c (gdbpy_progspaces): Update.
7974 * psymtab.c (maintenance_info_psymtabs): Update.
7975 * probe.c (parse_probes): Update.
7976 * linespec.c (iterate_over_all_matching_symtabs)
7977 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7978 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7979 * exec.c (exec_target::close): Update.
7980 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7981 * breakpoint.c (print_one_breakpoint_location)
7982 (create_longjmp_master_breakpoint)
7983 (create_std_terminate_master_breakpoint): Update.
7984 * progspace.c (program_spaces): Now a std::vector.
7985 (maybe_new_address_space): Update.
7986 (add_program_space): Remove.
7987 (program_space::program_space): Update.
7988 (remove_program_space): Update.
7989 (number_of_program_spaces): Remove.
7990 (print_program_space, update_address_spaces): Update.
7991 * progspace.h (program_spaces): Change type.
7992 (ALL_PSPACES): Remove.
7993 (number_of_program_spaces): Don't declare.
7994 (struct program_space) <next>: Remove.
7995
a1fd1ac9
TT
79962020-05-08 Tom Tromey <tom@tromey.com>
7997
7998 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7999 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8000 (enable_break): Update.
8001 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8002 (frv_fdpic_find_canonical_descriptor): Update.
8003 (frv_fetch_objfile_link_map): Update.
8004 * progspace.c (program_space::free_all_objfiles): Update.
8005 (program_space::solibs): New method.
8006 * progspace.h (struct program_space) <solibs>: New method.
8007 * solist.h (master_so_list): Don't declare.
8008 (ALL_SO_LIBS): Remove.
8009 * solib.h (so_list_head): Remove.
8010 (update_solib_list): Update comment.
8011 * solib.c (master_so_list): Remove.
8012 (solib_used, update_solib_list, solib_add)
8013 (info_sharedlibrary_command, clear_solib)
8014 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8015
38eae084
TT
80162020-05-08 Tom Tromey <tom@tromey.com>
8017
8018 * extension.c (extension_languages): Now a std::array.
8019 (ALL_EXTENSION_LANGUAGES): Remove.
8020 (get_ext_lang_defn, get_ext_lang_of_file)
8021 (eval_ext_lang_from_control_command): Update.
8022 (finish_ext_lang_initialization)
8023 (auto_load_ext_lang_scripts_for_objfile)
8024 (ext_lang_type_printers::ext_lang_type_printers)
8025 (apply_ext_lang_type_printers)
8026 (ext_lang_type_printers::~ext_lang_type_printers)
8027 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8028 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8029 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8030 (get_matching_xmethod_workers, ext_lang_colorize)
8031 (ext_lang_before_prompt): Update.
8032 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8033
596dc4ad
TT
80342020-05-08 Tom Tromey <tom@tromey.com>
8035
8036 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8037 overload.
8038 <swap_string, m_string>: Remove.
8039 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8040 Update.
8041 * stabsread.c (define_symbol, read_type): Update.
8042 * linespec.c (find_linespec_symbols): Update.
8043 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8044 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8045 * dbxread.c (read_dbx_symtab): Update.
8046 * cp-support.h (cp_canonicalize_string_full)
8047 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8048 Return unique_xmalloc_ptr.
8049 * cp-support.c (inspect_type): Update.
8050 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8051 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8052 Likewise.
8053 * c-typeprint.c (print_name_maybe_canonical): Update.
8054 * break-catch-throw.c (check_status_exception_catchpoint):
8055 Update.
8056
bf4cb9be
TV
80572020-05-08 Tom de Vries <tdevries@suse.de>
8058
8059 * infrun.c (follow_fork): Copy current_line and current_symtab to
8060 child thread.
8061
a1b68f28
SM
80622020-05-07 Simon Marchi <simon.marchi@efficios.com>
8063
8064 * async-event.c (struct async_signal_handler, struct
8065 async_event_handler): Reformat, remove typedef.
8066
98d48915
SM
80672020-05-07 Simon Marchi <simon.marchi@efficios.com>
8068
8069 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8070 access thistype->main_type->dyn_prop_list directly.
8071
7aa91313
SM
80722020-05-07 Simon Marchi <simon.marchi@efficios.com>
8073
8074 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8075 (remove_dyn_prop): Remove. Update all users to use
8076 type::remove_dyn_prop.
8077 * gdbtypes.c (remove_dyn_prop): Rename to...
8078 (type::remove_dyn_prop): ... this.
8079
5c54719c
SM
80802020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8081
8082 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8083 (add_dyn_prop): Remove. Update all users to use
8084 type::add_dyn_prop.
8085 * gdbtypes.c (add_dyn_prop): Rename to...
8086 (type::add_dyn_prop): ... this.
8087
24e99c6c
SM
80882020-05-07 Simon Marchi <simon.marchi@efficios.com>
8089
8090 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8091 (get_dyn_prop): Remove. Update all users to use
8092 type::dyn_prop.
8093 * gdbtypes.c (get_dyn_prop): Rename to...
8094 (type::dyn_prop): ... this.
8095
0d4bf016
SM
80962020-05-06 Simon Marchi <simon.marchi@efficios.com>
8097
8098 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8099
ac4a4f1c
SM
81002020-05-06 Simon Marchi <simon.marchi@efficios.com>
8101
8102 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8103 instruction, skip it if it's there.
8104
a3bbacc1
SM
81052020-05-05 Simon Marchi <simon.marchi@efficios.com>
8106
8107 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8108
c3236f84
SM
81092020-05-04 Simon Marchi <simon.marchi@efficios.com>
8110
8111 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8112 * gdbtypes.c (recursive_dump_type): Remove use of
8113 TYPE_INCOMPLETE.
8114
3b6acaee
TT
81152020-05-03 Tom Tromey <tom@tromey.com>
8116
8117 * breakpoint.c (catch_command, tcatch_command): Remove.
8118 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8119 add_show_prefix_cmd.
8120 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8121 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8122 Remove.
8123 (add_internal_problem_command): Use add_basic_prefix_cmd,
8124 add_show_prefix_cmd.
8125 * mips-tdep.c (set_mipsfpu_command): Remove.
8126 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8127 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8128 (_initialize_index_cache): Use add_basic_prefix_cmd.
8129 * memattr.c (dummy_cmd): Remove.
8130 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8131 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8132 (_initialize_tui_win): Use add_basic_prefix_cmd,
8133 add_show_prefix_cmd.
8134 * cli/cli-logging.c (set_logging_command): Remove.
8135 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8136 add_show_prefix_cmd.
8137 (show_logging_command): Remove.
8138 * target.c (target_command): Remove.
8139 (add_target): Use add_basic_prefix_cmd.
8140
a51119cd
HD
81412020-05-02 Hannes Domani <ssbssa@yahoo.de>
8142
8143 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8144
652fc23a 81452020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8146
652fc23a
PW
8147 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8148 info_command.
8149
117539e6
KR
81502020-04-30 Kamil Rytarowski <n54@gmx.com>
8151
8152 * nbsd-nat.c (nbsd_enable_proc_events)
8153 (nbsd_nat_target::post_startup_inferior): Add.
8154 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8155 (nbsd_nat_target::update_thread_list): Rewrite.
8156 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8157 "PTRACE_LWP_CREATE".
8158 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8159
102e38eb 81602020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8161
102e38eb
PW
8162 * stack.c (_initialize_stack): Remove duplicated creation
8163 of "frame" command and "f" alias.
8164
ee9d1e5f
HD
81652020-04-30 Hannes Domani <ssbssa@yahoo.de>
8166
8167 PR gdb/18706
8168 * gdbtypes.c (check_typedef): Calculate size of array of
8169 stubbed type.
8170
627c7fb8
HD
81712020-04-30 Hannes Domani <ssbssa@yahoo.de>
8172
8173 PR gdb/15559
8174 * i386-tdep.c (i386_push_dummy_call): Call
8175 i386_thiscall_push_dummy_call.
8176 (i386_thiscall_push_dummy_call): New function.
8177 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8178 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8179 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8180
ffc2844e
SM
81812020-04-29 Simon Marchi <simon.marchi@efficios.com>
8182
8183 * gdbarch.sh (do_read): Add shellcheck disable directive for
8184 warning SC2162.
8185
1207375d
SM
81862020-04-29 Simon Marchi <simon.marchi@efficios.com>
8187
8188 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8189 "referenced but not assigned" warning.
8190
9fdb2916
SM
81912020-04-29 Simon Marchi <simon.marchi@efficios.com>
8192
8193 * gdbarch.sh: Remove code that sets fallbackdefault.
8194
759cea5e
SM
81952020-04-29 Simon Marchi <simon.marchi@efficios.com>
8196
8197 * gdbarch.sh: Use shell operators && and || instead of
8198 -a and -o.
8199
cb02ab24
SM
82002020-04-29 Simon Marchi <simon.marchi@efficios.com>
8201
8202 * gdbarch.sh: Use $(...) instead of `...`.
8203
a6fc5ffc
SM
82042020-04-29 Simon Marchi <simon.marchi@efficios.com>
8205
8206 * gdbarch.sh: Use double quotes around variables.
8207
8d113d13
SM
82082020-04-29 Simon Marchi <simon.marchi@efficios.com>
8209
8210 * gdbarch.sh: Use %s with printf, instead of variables in the
8211 format string.
8212
ed6acedd
TT
82132020-04-29 Tom Tromey <tromey@adacore.com>
8214
8215 PR ada/25875:
8216 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8217 type fields here.
8218 (read_enumeration_type): Call
8219 update_enumeration_type_from_children later. Update comments.
8220 (process_enumeration_scope): Don't create type fields.
8221
b68b1b58
KR
82222020-04-29 Kamil Rytarowski <n54@gmx.com>
8223
8224 * nbsd-tdep.c: Include "xml-syscall.h".
8225 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8226
f94b2e03
KR
82272020-04-29 Kamil Rytarowski <n54@gmx.com>
8228
8229 * nbsd-nat.c: Include "sys/wait.h".
8230 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8231 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8232 (nbsd_nat_target::remove_exec_catchpoint)
8233 (nbsd_nat_target::set_syscall_catchpoint): Add.
8234 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8235 (nbsd_nat_target::insert_exec_catchpoint)
8236 (nbsd_nat_target::remove_exec_catchpoint)
8237 (nbsd_nat_target::set_syscall_catchpoint): Add.
8238 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8239 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8240 `nbsd_get_syscall_number'.
8241
fc49bc72
TT
82422020-04-29 Tom Tromey <tom@tromey.com>
8243
8244 * stack.c (print_block_frame_labels): Remove.
8245
d642b692
HD
82462020-04-29 Hannes Domani <ssbssa@yahoo.de>
8247
8248 PR gdb/17320
8249 * ada-valprint.c (val_print_packed_array_elements): Move array
8250 end bracket to new line.
8251 (ada_val_print_string): Remove extra spaces before first array
8252 element.
8253 * c-valprint.c (c_value_print_array): Likewise.
8254 * m2-valprint.c (m2_print_array_contents): Likewise.
8255 (m2_value_print_inner): Likewise.
8256 * p-valprint.c (pascal_value_print_inner): Likewise.
8257 * valprint.c (generic_val_print_array): Likewise.
8258 (value_print_array_elements): Move first array element and array
8259 end bracket to new line.
8260
ea90f227
TV
82612020-04-29 Tom de Vries <tdevries@suse.de>
8262
8263 PR symtab/25889
8264 * linespec.c (find_method): Fix ix calculation.
8265
4498ef4f
KR
82662020-04-28 Kamil Rytarowski <n54@gmx.com>
8267
8268 * syscalls/update-netbsd.sh: New file.
8269 * syscalls/netbsd.xml: Regenerate.
8270 * data-directory/Makefile.in: Register `netbsd.xml' in
8271 `SYSCALLS_FILES'.
8272
a55e30b5
SM
82732020-04-28 Simon Marchi <simon.marchi@efficios.com>
8274
8275 * syscalls/update-freebsd.sh: Add double quotes.
8276
2b2fbab8
TT
82772020-04-28 Tom Tromey <tom@tromey.com>
8278
8279 * NEWS: Update.
8280 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8281 (cmdpy_init): Allow class_tui.
8282
a65189c9
TV
82832020-04-28 Mark Williams <mark@myosotissp.com>
8284
8285 PR gdb/24480
8286 * dwarf2read.c: Add missing assingments to list_in_scope when
8287 start_symtab was already called.
8288
1b95cdb7
SM
82892020-04-28 Simon Marchi <simon.marchi@efficios.com>
8290
8291 PR gdb/25881
8292 * dwarf2/read.c (offset_map_type): Use
8293 gdb:hash_enum<sect_offset> as hash function.
8294
15cd93d0
TV
82952020-04-28 Tom de Vries <tdevries@suse.de>
8296
8297 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8298 with DW_AT_signature.
8299
1eb39914
SM
83002020-04-27 Simon Marchi <simon.marchi@efficios.com>
8301
8302 * configure.ac: Remove check for fs_base/gs_base in
8303 user_regs_struct.
8304 * configure: Re-generate.
8305 * config.in: Re-generate.
8306 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8307 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8308 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8309
991a3e2e
LM
83102020-04-27 Luis Machado <luis.machado@linaro.org>
8311
8312 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8313 problematic inline frame unwinding situation.
8314 * frame.c (frame_id_computed_p): New function.
8315 * frame.h (frame_id_computed_p): New prototype.
8316
361ba0e8
TT
83172020-04-26 Tom Tromey <tom@tromey.com>
8318
8319 * command.h (enum command_class) <class_pseudo>: Remove.
8320
bc3609fd
PW
83212020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8322
8323 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8324 and whitespace.
8325
b9771db7
KR
83262020-04-25 Kamil Rytarowski <n54@gmx.com>
8327
ec16513e
SM
8328 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8329 `PT_GET_PROCESS_STATE' block.
b9771db7 8330
7151c1af
TT
83312020-04-24 Tom Tromey <tom@tromey.com>
8332
8333 * symtab.h (symbol_get_demangled_name): Don't declare.
8334 * symtab.c (symbol_get_demangled_name): Remove.
8335 (general_symbol_info::natural_name)
8336 (general_symbol_info::demangled_name): Update.
8337
906bb4c5
TT
83382020-04-24 Tom Tromey <tom@tromey.com>
8339
8340 PR rust/25025:
8341 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8342
bcfe6157
TT
83432020-04-24 Tom Tromey <tom@tromey.com>
8344
8345 PR symtab/12707:
8346 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8347 exists.
8348 (new_symbol): Likewise.
8349 * compile/compile-object-load.c (get_out_value_type): Use
8350 symbol_matches_search_name.
8351
f049a313
TT
83522020-04-24 Tom Tromey <tom@tromey.com>
8353
8354 * dwarf2/read.c (add_partial_symbol): Do not call
8355 compute_and_set_names.
8356
76e288d1
TT
83572020-04-24 Tom Tromey <tom@tromey.com>
8358
8359 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8360 overload.
8361
2467f4f6
TT
83622020-04-24 Tom Tromey <tom@tromey.com>
8363
8364 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8365 (add_psymbol_to_list): New overload. Make old overload call new
8366 one.
8367 * psympriv.h (add_psymbol_to_list): New overload.
8368
e61108c9
TT
83692020-04-24 Tom Tromey <tom@tromey.com>
8370
8371 * dwarf2/read.c (partial_die_info::read) <case
8372 DW_AT_linkage_name>: Use value_as_string.
8373 (dwarf2_string_attr): Use value_as_string.
8374 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8375 method.
8376 * dwarf2/attribute.c (attribute::value_as_string): New method.
8377
8c87a452
TT
83782020-04-24 Tom Tromey <tom@tromey.com>
8379
8380 * symtab.c (general_symbol_info::natural_name)
8381 (general_symbol_info::demangled_name): Check for language_rust.
8382
787de330
TT
83832020-04-24 Tom Tromey <tom@tromey.com>
8384
8385 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8386 (dwarf2_physname): ... from here.
8387 (partial_die_info::read): Add Rust "{" hack.
8388
ff985671
TT
83892020-04-24 Tom Tromey <tom@tromey.com>
8390
8391 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8392 method.
8393 (symbol_set_demangled_name): Don't declare.
8394 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8395 symbol_set_demangled_name.
8396 (general_symbol_info::set_language)
8397 (general_symbol_info::compute_and_set_names): Update.
8398 * minsyms.c (minimal_symbol_reader::install): Update.
8399 * dwarf2/read.c (new_symbol): Update.
8400
1acda803
TT
84012020-04-24 Tom Tromey <tromey@adacore.com>
8402
8403 PR python/23662:
8404 * python/py-type.c (convert_field): Handle
8405 FIELD_LOC_KIND_DWARF_BLOCK.
8406 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8407 (typy_get_dynamic): Nw function.
8408 (type_object_getset): Add "dynamic".
8409 * NEWS: Add entry.
8410
d656f129
TT
84112020-04-24 Tom Tromey <tromey@adacore.com>
8412
8413 * ada-typeprint.c (print_choices, print_variant_part)
8414 (print_record_field_types_dynamic): New functions.
8415 (print_record_field_types): Use print_record_field_types_dynamic.
8416
7d79de9a
TT
84172020-04-24 Tom Tromey <tromey@adacore.com>
8418
8419 * dwarf2/read.c (handle_data_member_location): New overload.
8420 (dwarf2_add_field): Use it.
8421 (decode_locdesc): Add "computed" parameter. Update comment.
8422 * gdbtypes.c (is_dynamic_type_internal): Also look for
8423 FIELD_LOC_KIND_DWARF_BLOCK.
8424 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8425 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8426 virtual base classes.
8427 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8428 FIELD_LOC_KIND_DWARF_BLOCK.
8429
f8e89861
TT
84302020-04-24 Tom Tromey <tromey@adacore.com>
8431
8432 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8433 * gdbtypes.c (is_dynamic_type_internal): Check
8434 TYPE_HAS_DYNAMIC_LENGTH.
8435 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8436 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8437 New macros.
8438 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8439 constant.
8440
9c6a1327
TT
84412020-04-24 Tom Tromey <tromey@adacore.com>
8442
8443 * dwarf2/read.c (struct variant_field): Rewrite.
8444 (struct variant_part_builder): New.
8445 (struct nextfield): Remove "variant" field. Add "offset".
8446 (struct field_info): Add "current_variant_part" and
8447 "variant_parts".
8448 (alloc_discriminant_info): Remove.
8449 (alloc_rust_variant): New function.
8450 (quirk_rust_enum): Update.
8451 (dwarf2_add_field): Set "offset" member. Don't handle
8452 DW_TAG_variant_part.
8453 (offset_map_type): New typedef.
8454 (convert_variant_range, create_one_variant)
8455 (create_one_variant_part, create_variant_parts)
8456 (add_variant_property): New functions.
8457 (dwarf2_attach_fields_to_type): Call add_variant_property.
8458 (read_structure_type): Don't handle DW_TAG_variant_part.
8459 (handle_variant_part, handle_variant): New functions.
8460 (handle_struct_member_die): Use them.
8461 (process_structure_scope): Don't handle variant parts.
8462 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8463 (struct discriminant_info): Remove.
8464 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8465 (struct main_type) <flag_discriminated_union>: Remove.
8466 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8467 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8468 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8469 Update.
8470 * valops.c (value_union_variant): Remove.
8471 * value.h (value_union_variant): Don't declare.
8472
b249d2c2
TT
84732020-04-24 Tom Tromey <tromey@adacore.com>
8474
8475 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8476 (ada_value_primitive_packed_val): Update.
8477 * ada-valprint.c (ada_value_print_1): Update.
8478 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8479 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8480 just an address. Use evaluate_for_locexpr_baton.
8481 (dwarf2_evaluate_property): Update.
8482 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8483 array_view.
8484 * findvar.c (default_read_var_value): Update.
8485 * gdbtypes.c (compute_variant_fields_inner)
8486 (resolve_dynamic_type_internal): Update.
8487 (resolve_dynamic_type): Change type of valaddr parameter.
8488 * gdbtypes.h (resolve_dynamic_type): Update.
8489 * valarith.c (value_subscripted_rvalue): Update.
8490 * value.c (value_from_contents_and_address): Update.
8491
61122aa9
TT
84922020-04-24 Tom Tromey <tromey@adacore.com>
8493
8494 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8495 "push_initial_value" parameter.
8496 (dwarf2_evaluate_property): Likewise.
8497 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8498
ef83a141
TT
84992020-04-24 Tom Tromey <tromey@adacore.com>
8500
8501 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8502 (variant::matches, compute_variant_fields_recurse)
8503 (compute_variant_fields_inner, compute_variant_fields): New
8504 functions.
8505 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8506 Use resolved_type after type is made.
8507 (operator==): Add new cases.
8508 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8509 (struct discriminant_range, struct variant, struct variant_part):
8510 New.
8511 (union dynamic_prop_data) <variant_parts, original_type>: New
8512 members.
8513 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8514 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8515 constants.
8516 * value.c (unpack_bits_as_long): Now public.
8517 * value.h (unpack_bits_as_long): Declare.
8518
675127ec
TT
85192020-04-24 Tom Tromey <tromey@adacore.com>
8520
8521 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8522 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8523
9852ceef
HD
85242020-04-24 Hannes Domani <ssbssa@yahoo.de>
8525
8526 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8527
7632c6ce
KR
85282020-04-24 Kamil Rytarowski <n54@gmx.com>
8529
8530 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8531 (remove_fork_catchpoint, post_startup_inferior)
8532 (post_attach): Move...
8533 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8534 (remove_fork_catchpoint, post_startup_inferior)
8535 (post_attach): ...here.
8536 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8537 (remove_fork_catchpoint, post_startup_inferior)
8538 (post_attach): Move...
8539 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8540 (remove_fork_catchpoint, post_startup_inferior)
8541 (post_attach): ...here.
8542
7be2bb4f
TT
85432020-04-24 Tom Tromey <tromey@adacore.com>
8544
8545 * nat/windows-nat.h (struct windows_thread_info)
8546 <pc_adjusted>: New member.
8547 * windows-nat.c (windows_fetch_one_register): Check
8548 pc_adjusted.
8549 (windows_nat_target::get_windows_debug_event)
8550 (windows_nat_target::wait): Set pc_adjusted.
8551
f80cb3b4
TV
85522020-04-24 Tom de Vries <tdevries@suse.de>
8553
8554 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8555 Run gdb-add-index inside temp dir.
8556
29514b87
TT
85572020-04-23 Tom Tromey <tromey@adacore.com>
8558
8559 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8560 in loop.
8561
5939967b
LM
85622020-04-23 Luis Machado <luis.machado@linaro.org>
8563
8564 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8565 get_frame_register instead of gdbarch_unwind_pc.
8566
70bc38f5
TV
85672020-04-23 Tom de Vries <tdevries@suse.de>
8568
8569 * symtab.c (lookup_global_symbol): Prefer def over decl.
8570
de82891c
TV
85712020-04-23 Tom de Vries <tdevries@suse.de>
8572
8573 PR symtab/25807
8574 * block.c (best_symbol, better_symbol): Promote to external.
8575 * block.h (best_symbol, better_symbol): Declare.
8576 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8577 decl.
8578
ecc6c606
TT
85792020-04-23 Tom Tromey <tromey@adacore.com>
8580
8581 PR ada/25837:
8582 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8583 "const char *", not a "const std::string &".
8584 <name_and_matcher::operator==>: Update.
8585 * unittests/lookup_name_info-selftests.c: Change type of
8586 "result".
8587
740480b8
TT
85882020-04-23 Tom Tromey <tom@tromey.com>
8589
8590 * inferior.h (iterate_over_inferiors): Don't declare.
8591 * inferior.c (iterate_over_inferiors): Remove.
8592 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8593 Remove.
8594 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8595 use iterate_over_inferiors.
8596 (darwin_resume_inferior_it)
8597 (struct resume_inferior_threads_param)
8598 (darwin_resume_inferior_threads_it): Remove.
8599 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8600
ae3ab1f0
TV
86012020-04-23 Tom de Vries <tdevries@suse.de>
8602
8603 * blockframe.c (find_pc_partial_function): Use
8604 find_pc_sect_compunit_symtab rather than
8605 objfile->sf->qf->find_pc_sect_compunit_symtab.
8606
317d2668
TV
86072020-04-22 Tom de Vries <tdevries@suse.de>
8608
8609 PR symtab/25764
8610 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8611 in psymtabs.
8612
eea9e357
TV
86132020-04-22 Tom de Vries <tdevries@suse.de>
8614
8615 PR symtab/25801
8616 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8617 symtabs.
8618
3d5afab3
TV
86192020-04-22 Tom de Vries <tdevries@suse.de>
8620
8621 PR symtab/25700
8622 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8623 CU if already created.
8624
d43b7a2d
TBA
86252020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8626
8627 * infrun.c (displaced_step_fixup): Switch to the event_thread
8628 before calling displaced_step_restore, not after.
8629
d89edf9b
MM
86302020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8631
8632 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8633 its inferior is not recorded by us.
8634 (record_btrace_target_open): Replace call to
8635 all_non_exited_threads () with call to current_inferior
8636 ()->non_exited_threads ().
8637 (record_btrace_target::stop_recording): Likewise.
8638 (record_btrace_target::close): Likewise.
8639 (record_btrace_target::wait): Likewise.
8640 (record_btrace_target::record_stop_replaying): Likewise.
8641
5897fd49
MM
86422020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8643
8644 * btrace.c (btrace_enable): Throw an error on double enables and
8645 when enabling recording fails.
8646 (btrace_disable): Throw an error if the thread is not recorded.
8647
1a476b6d
MM
86482020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8649
8650 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8651 request if we do not have a thread_info.
8652
4778a5f8
TV
86532020-04-21 Tom de Vries <tdevries@suse.de>
8654
8655 PR gdb/25471
8656 * thread.c
8657 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8658 exception in get_frame_id.
8659
0fa7617d
TT
86602020-04-20 Tom Tromey <tromey@adacore.com>
8661
8662 * python/python.c (struct gdbpy_event): Mark move constructor as
8663 noexcept.
8664 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8665 constructor as noexcept.
8666 * completer.h (struct completion_result): Mark move constructor as
8667 noexcept.
8668 * completer.c (completion_result::completion_result): Use
8669 initialization style. Don't call reset_match_list.
8670
ad23bda0
MS
86712020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8672
8673 * MAINTAINERS (Write After Approval): Add myself.
8674
45e1f031
TT
86752020-04-18 Tom Tromey <tom@tromey.com>
8676
8677 * windows-tdep.c (init_w32_command_list)
8678 (w32_prefix_command_valid): Restore.
8679 (_initialize_windows_tdep): Call init_w32_command_list.
8680
08feed99
TT
86812020-04-18 Tom Tromey <tom@tromey.com>
8682
8683 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8684 * value.c (value_fn_field): Update.
8685 * valops.c (find_function_in_inferior)
8686 (value_allocate_space_in_inferior): Update.
8687 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8688 Update.
8689 * tui/tui-source.c (tui_source_window::set_contents): Update.
8690 * symtab.c (lookup_global_or_static_symbol)
8691 (find_function_start_sal_1, skip_prologue_sal)
8692 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8693 * symmisc.c (dump_msymbols, dump_symtab_1)
8694 (maintenance_print_one_line_table): Update.
8695 * symfile.c (init_entry_point_info, section_is_mapped)
8696 (list_overlays_command, simple_read_overlay_table)
8697 (simple_overlay_update_1): Update.
8698 * stap-probe.c (handle_stap_probe): Update.
8699 * stabsread.c (dbx_init_float_type, define_symbol)
8700 (read_one_struct_field, read_enum_type, read_range_type): Update.
8701 * source.c (info_line_command): Update.
8702 * python/python.c (gdbpy_source_objfile_script)
8703 (gdbpy_execute_objfile_script): Update.
8704 * python/py-type.c (save_objfile_types): Update.
8705 * python/py-objfile.c (py_free_objfile): Update.
8706 * python/py-inferior.c (python_new_objfile): Update.
8707 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8708 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8709 (maintenance_check_psymtabs): Update.
8710 * printcmd.c (info_address_command): Update.
8711 * objfiles.h (struct objfile) <arch>: New method, from
8712 get_objfile_arch.
8713 (get_objfile_arch): Don't declare.
8714 * objfiles.c (get_objfile_arch): Remove.
8715 (filter_overlapping_sections): Update.
8716 * minsyms.c (msymbol_is_function): Update.
8717 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8718 (output_nondebug_symbol): Update.
8719 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8720 (mdebug_expand_psymtab): Update.
8721 * machoread.c (macho_add_oso_symfile): Update.
8722 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8723 Update.
8724 * linux-fork.c (checkpoint_command): Update.
8725 * linespec.c (convert_linespec_to_sals): Update.
8726 * jit.c (finalize_symtab): Update.
8727 * infrun.c (insert_exception_resume_from_probe): Update.
8728 * ia64-tdep.c (ia64_find_unwind_table): Update.
8729 * hppa-tdep.c (internalize_unwinds): Update.
8730 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8731 Update.
8732 * gcore.c (call_target_sbrk): Update.
8733 * elfread.c (record_minimal_symbol, elf_symtab_read)
8734 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8735 (elf_gnu_ifunc_resolve_by_got): Update.
8736 * dwarf2/read.c (create_addrmap_from_index)
8737 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8738 (read_debug_names_from_section)
8739 (process_psymtab_comp_unit_reader, add_partial_symbol)
8740 (add_partial_subprogram, process_full_comp_unit)
8741 (read_file_scope, read_func_scope, read_lexical_block_scope)
8742 (read_call_site_scope, dwarf2_ranges_read)
8743 (dwarf2_record_block_ranges, dwarf2_add_field)
8744 (mark_common_block_symbol_computed, read_tag_pointer_type)
8745 (read_tag_string_type, dwarf2_init_float_type)
8746 (dwarf2_init_complex_target_type, read_base_type)
8747 (partial_die_info::read, partial_die_info::read)
8748 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8749 (dwarf2_fetch_die_loc_sect_off): Update.
8750 * dwarf2/loc.c (dwarf2_find_location_expression)
8751 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8752 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8753 (dwarf2_loc_desc_get_symbol_read_needs)
8754 (locexpr_describe_location_piece, locexpr_describe_location_1)
8755 (loclist_describe_location): Update.
8756 * dwarf2/index-write.c (write_debug_names): Update.
8757 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8758 * dtrace-probe.c (dtrace_process_dof): Update.
8759 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8760 (process_one_symbol): Update.
8761 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8762 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8763 (coff_read_enum_type): Update.
8764 * cli/cli-cmds.c (edit_command, list_command): Update.
8765 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8766 * breakpoint.c (create_overlay_event_breakpoint)
8767 (create_longjmp_master_breakpoint)
8768 (create_std_terminate_master_breakpoint)
8769 (create_exception_master_breakpoint, get_sal_arch): Update.
8770 * block.c (block_gdbarch): Update.
8771 * annotate.c (annotate_source_line): Update.
8772
0743fc83
TT
87732020-04-17 Tom Tromey <tromey@adacore.com>
8774
8775 * auto-load.c (show_auto_load_cmd): Remove.
8776 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8777 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8778 (maintenance_print_arc_command): Remove.
8779 * tui/tui-win.c (tui_command): Remove.
8780 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8781 * tui/tui-layout.c (tui_layout_command): Remove.
8782 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8783 * python/python.c (user_set_python, user_show_python): Remove.
8784 (_initialize_python): Use add_basic_prefix_cmd,
8785 add_show_prefix_cmd.
8786 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8787 (install_gdb_commands): Use add_basic_prefix_cmd,
8788 add_show_prefix_cmd.
8789 (info_guile_command): Remove.
8790 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8791 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8792 add_show_prefix_cmd.
8793 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8794 Remove do_set and do_show parameters.
8795 * cli/cli-style.c (set_style, show_style): Remove.
8796 (_initialize_cli_style): Use add_basic_prefix_cmd,
8797 add_show_prefix_cmd.
8798 (cli_style_option::add_setshow_commands): Remove do_set and
8799 do_show parameters.
8800 (cli_style_option::add_setshow_commands): Use
8801 add_basic_prefix_cmd, add_show_prefix_cmd.
8802 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8803 (set_style_name): Remove.
8804 * cli/cli-dump.c (dump_command, append_command): Remove.
8805 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8806 (tekhex_dump_command, binary_dump_command)
8807 (binary_append_command): Remove.
8808 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8809 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8810 (init_w32_command_list): Remove; move into ...
8811 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8812 * valprint.c (set_print, show_print, set_print_raw)
8813 (show_print_raw): Remove.
8814 (_initialize_valprint): Use add_basic_prefix_cmd,
8815 add_show_prefix_cmd.
8816 * typeprint.c (set_print_type, show_print_type): Remove.
8817 (_initialize_typeprint): Use add_basic_prefix_cmd,
8818 add_show_prefix_cmd.
8819 * record.c (set_record_command, show_record_command): Remove.
8820 (_initialize_record): Use add_basic_prefix_cmd,
8821 add_show_prefix_cmd.
8822 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8823 add_show_prefix_cmd.
8824 (info_command, show_command, set_debug, show_debug): Remove.
8825 * top.h (set_history, show_history): Don't declare.
8826 * top.c (set_history, show_history): Remove.
8827 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8828 (unset_tdesc_cmd): Remove.
8829 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8830 add_show_prefix_cmd.
8831 * symtab.c (info_module_command): Remove.
8832 (_initialize_symtab): Use add_basic_prefix_cmd.
8833 * symfile.c (overlay_command): Remove.
8834 (_initialize_symfile): Use add_basic_prefix_cmd.
8835 * sparc64-tdep.c (info_adi_command): Remove.
8836 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8837 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8838 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8839 add_show_prefix_cmd.
8840 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8841 (_initialize_serial): Use add_basic_prefix_cmd,
8842 add_show_prefix_cmd.
8843 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8844 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8845 add_show_prefix_cmd.
8846 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8847 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8848 add_show_prefix_cmd.
8849 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8850 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8851 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8852 add_show_prefix_cmd.
8853 * remote.c (remote_command, set_remote_cmd): Remove.
8854 (_initialize_remote): Use add_basic_prefix_cmd.
8855 * record-full.c (set_record_full_command)
8856 (show_record_full_command): Remove.
8857 (_initialize_record_full): Use add_basic_prefix_cmd,
8858 add_show_prefix_cmd.
8859 * record-btrace.c (cmd_set_record_btrace)
8860 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8861 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8862 (cmd_show_record_btrace_pt): Remove.
8863 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8864 add_show_prefix_cmd.
8865 * ravenscar-thread.c (set_ravenscar_command)
8866 (show_ravenscar_command): Remove.
8867 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8868 add_show_prefix_cmd.
8869 * mips-tdep.c (show_mips_command, set_mips_command)
8870 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8871 add_show_prefix_cmd.
8872 * maint.c (maintenance_command, maintenance_info_command)
8873 (maintenance_check_command, maintenance_print_command)
8874 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8875 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8876 add_show_prefix_cmd.
8877 (show_per_command_cmd): Remove.
8878 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8879 Remove.
8880 (maintenance_show_test_settings_cmd): Remove.
8881 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8882 add_show_prefix_cmd.
8883 * maint-test-options.c (maintenance_test_options_command):
8884 Remove.
8885 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8886 * macrocmd.c (macro_command): Remove
8887 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8888 * language.c (set_check, show_check): Remove.
8889 (_initialize_language): Use add_basic_prefix_cmd,
8890 add_show_prefix_cmd.
8891 * infcmd.c (unset_command): Remove.
8892 (_initialize_infcmd): Use add_basic_prefix_cmd.
8893 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8894 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8895 add_show_prefix_cmd.
8896 * go32-nat.c (go32_info_dos_command): Remove.
8897 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8898 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8899 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8900 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8901 (_initialize_frame): Use add_basic_prefix_cmd,
8902 add_show_prefix_cmd.
8903 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8904 (_initialize_dcache): Use add_basic_prefix_cmd,
8905 add_show_prefix_cmd.
8906 * cp-support.c (maint_cplus_command): Remove.
8907 (_initialize_cp_support): Use add_basic_prefix_cmd.
8908 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8909 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8910 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8911 add_basic_prefix_cmd, add_show_prefix_cmd.
8912 * breakpoint.c (save_command): Remove.
8913 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8914 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8915 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8916 add_show_prefix_cmd.
8917 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8918 (set_ada_command, show_ada_command): Remove.
8919 (_initialize_ada_language): Use add_basic_prefix_cmd,
8920 add_show_prefix_cmd.
8921 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8922
3557f442
KR
89232020-04-16 Kamil Rytarowski <n54@gmx.com>
8924
8925 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8926 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8927
16197208
SM
89282020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8929
8930 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8931 warning messages.
8932
00ac85d3
SM
89332020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8934
8935 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8936 import table is not at beginning of .idata section.
8937
381ce63f
PA
89382020-04-16 Pedro Alves <palves@redhat.com>
8939
8940 * inferior.c (delete_inferior): Use delete operator directly
8941 instead of delete_program_space.
8942 * progspace.c (add_program_space): New, factored out from
8943 program_space::program_space.
8944 (remove_program_space): New, factored out from
8945 delete_program_space.
8946 (program_space::program_space): Remove intro comment. Rewrite.
8947 (program_space::~program_space): Remove intro comment. Call
8948 remove_program_space.
8949 (delete_program_space): Delete.
8950 * progspace.h (program_space::program_space): Make explicit. Move
8951 intro comment here, adjusted.
8952 (program_space::~program_space): Move intro comment here,
8953 adjusted.
8954 (delete_program_space): Remove.
8955
a010605f
TT
89562020-04-16 Tom Tromey <tromey@adacore.com>
8957
8958 * windows-nat.c (windows_nat::handle_access_violation): New
8959 function.
8960 * nat/windows-nat.h (handle_access_violation): Declare.
8961 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8962 windows-nat.c. Call handle_access_violation.
8963
efba5c23
TV
89642020-04-16 Tom de Vries <tdevries@suse.de>
8965
8966 PR symtab/25791
8967 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8968 CUs without psymtab.
8969
97ed802d
KB
89702020-04-16 Kevin Buettner <kevinb@redhat.com>
8971
8972 * python/python.c (do_start_initialization): Don't call
8973 PyEval_InitThreads for Python 3.9 and beyond.
8974
c7d64809
KR
89752020-04-15 Kamil Rytarowski <n54@gmx.com>
8976
8977 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8978 thread functions.
8979 (obsd_nat_target::wait): Likewise.
8980
ce127a96
TT
89812020-04-15 Tom Tromey <tromey@adacore.com>
8982
8983 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8984 (DEBUG_EXCEPT): Use debug_printf.
8985
99f1bc6a
AB
89862020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8987
8988 * completer.c (class completion_tracker::completion_hash_entry)
8989 <hash_name>: New member function.
8990 (completion_tracker::discard_completions): New callback to hash a
8991 completion_hash_entry, pass this to htab_create_alloc.
8992
a0e9b532
JT
89932016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8994
8995 * windows-nat.c (windows_make_so): Warn rather than stopping with
8996 an error if realpath() fails.
8997
06ca5dd4
KR
89982020-04-14 Kamil Rytarowski <n54@gmx.com>
8999
9000 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9001 (nbsd_nat_target::info_proc): Add do_status.
9002
194d088f
TV
90032020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9004 Tom de Vries <tdevries@suse.de>
9005
9006 PR symtab/25718
9007 * psympriv.h (struct partial_symtab::read_symtab)
9008 (struct partial_symtab::expand_psymtab)
9009 (struct partial_symtab::read_dependencies): Update comments.
9010 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9011 read_symtab for includer.
9012 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9013 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9014 (struct dwarf2_include_psymtab::m_readin): Remove.
9015 (struct dwarf2_include_psymtab::includer): New member function.
9016 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9017
c1a66c06
TV
90182020-04-14 Tom de Vries <tdevries@suse.de>
9019
9020 PR symtab/25720
9021 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9022 with NULL symbol_matcher and lookup_name.
9023 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9024 and lookup_name.
9025 * dwarf2/read.c (dw2_expand_symtabs_matching)
9026 (dw2_debug_names_expand_symtabs_matching): Same.
9027 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9028 Make lookup_name a pointer. Update comment.
9029 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9030 lookup_name being a pointer.
9031 * symfile.c (expand_symtabs_matching): Same.
9032 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9033 * linespec.c (iterate_over_all_matching_symtabs): Same.
9034
400b5eca
TT
90352020-04-13 Tom Tromey <tom@tromey.com>
9036
9037 * run-on-main-thread.c: Update include.
9038 * unittests/main-thread-selftests.c: Update include.
9039 * tui/tui-win.c: Update include.
9040 * tui/tui-io.c: Update include.
9041 * tui/tui-interp.c: Update include.
9042 * tui/tui-hooks.c: Update include.
9043 * top.h: Update include.
9044 * top.c: Update include.
9045 * ser-base.c: Update include.
9046 * remote.c: Update include.
9047 * remote-notif.c: Update include.
9048 * remote-fileio.c: Update include.
9049 * record-full.c: Update include.
9050 * record-btrace.c: Update include.
9051 * python/python.c: Update include.
9052 * posix-hdep.c: Update include.
9053 * mingw-hdep.c: Update include.
9054 * mi/mi-main.c: Update include.
9055 * mi/mi-interp.c: Update include.
9056 * main.c: Update include.
9057 * linux-nat.c: Update include.
9058 * interps.c: Update include.
9059 * infrun.c: Update include.
9060 * inf-loop.c: Update include.
9061 * event-top.c: Update include.
9062 * event-loop.c: Move to ../gdbsupport/.
9063 * event-loop.h: Move to ../gdbsupport/.
9064 * async-event.h: Update include.
9065 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9066
93b54c8e
TT
90672020-04-13 Tom Tromey <tom@tromey.com>
9068
9069 * tui/tui-win.c: Include async-event.h.
9070 * remote.c: Include async-event.h.
9071 * remote-notif.c: Include async-event.h.
9072 * record-full.c: Include async-event.h.
9073 * record-btrace.c: Include async-event.h.
9074 * infrun.c: Include async-event.h.
9075 * event-top.c: Include async-event.h.
9076 * event-loop.h: Move some declarations to async-event.h.
9077 * event-loop.c: Don't include ser-event.h or top.h. Move some
9078 code to async-event.c.
9079 * async-event.h: New file.
9080 * async-event.c: New file.
9081 * Makefile.in (COMMON_SFILES): Add async-event.c.
9082 (HFILES_NO_SRCDIR): Add async-event.h.
9083
c1cd3163
TT
90842020-04-13 Tom Tromey <tom@tromey.com>
9085
9086 * utils.c (flush_streams): New function.
9087 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9088
29f2bf4f
TT
90892020-04-13 Tom Tromey <tom@tromey.com>
9090
9091 * event-loop.c (handle_file_event): Use warning, not
9092 printf_unfiltered.
9093
98029d02
TT
90942020-04-13 Tom Tromey <tom@tromey.com>
9095
9096 * event-loop.c: Include <chrono>.
9097
06cc9596
TT
90982020-04-13 Tom Tromey <tom@tromey.com>
9099
9100 * gdb_select.h: Move to ../gdbsupport/.
9101 * event-loop.c: Update include path.
9102 * top.c: Update include path.
9103 * ser-base.c: Update include path.
9104 * ui-file.c: Update include path.
9105 * ser-tcp.c: Update include path.
9106 * guile/scm-ports.c: Update include path.
9107 * posix-hdep.c: Update include path.
9108 * ser-unix.c: Update include path.
9109 * gdb_usleep.c: Update include path.
9110 * mingw-hdep.c: Update include path.
9111 * inflow.c: Update include path.
9112 * infrun.c: Update include path.
9113 * event-top.c: Update include path.
9114
8ae8e197
TT
91152020-04-13 Tom Tromey <tom@tromey.com>
9116
9117 * configure: Rebuild.
9118 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9119
58cf28e8
TT
91202020-04-13 Tom Tromey <tom@tromey.com>
9121
9122 * event-loop.h (start_event_loop): Don't declare.
9123 * event-loop.c (start_event_loop): Move...
9124 * main.c (start_event_loop): ...here. Now static.
9125
b7f999ae
SDJ
91262020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9127
9128 * MAINTAINERS: Update my email address.
9129
1085dfd4
KR
91302020-04-12 Kamil Rytarowski <n54@gmx.com>
9131
9132 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9133 IP_ALL.
9134
49d1d1f5
KR
91352020-04-12 Kamil Rytarowski <n54@gmx.com>
9136
9137 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9138 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9139
b4848d2a
KR
91402020-04-12 Kamil Rytarowski <n54@gmx.com>
9141
9142 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9143 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9144
51c133d5
KR
91452020-04-12 Kamil Rytarowski <n54@gmx.com>
9146
9147 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9148
54b8cbd0
KR
91492020-04-11 Kamil Rytarowski <n54@gmx.com>
9150
9151 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9152 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9153 (nbsd_nat_target::info_proc): New functions.
9154 * nbsd-nat.c (kinfo_get_vmmap): New function.
9155 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9156 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9157 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9158 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9159 functions.
9160 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9161 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9162 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9163 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9164 (KINFO_VME_FLAG_GROWS_DOWN): New.
9165
cf83625d
AS
91662020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9167
9168 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9169 bit shift.
9170
0c4311ab
TT
91712020-04-10 Tom Tromey <tromey@adacore.com>
9172
9173 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9174
3e65b3e9
TT
91752020-04-10 Tom Tromey <tromey@adacore.com>
9176
9177 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9178 separate debug files.
9179
13302e95
HD
91802020-04-10 Hannes Domani <ssbssa@yahoo.de>
9181
9182 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9183 Move to...
9184 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9185 ... here.
9186 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9187 Check for STATUS_WX86_BREAKPOINT.
9188 (windows_nat_target::wait): Same.
9189
bdfc1e8a
TV
91902020-04-10 Tom de Vries <tdevries@suse.de>
9191
9192 PR cli/25808
9193 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9194
f4460aec
SM
91952020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9196
9197 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9198 (Write After Approval): Remove Tom de Vries.
9199
a25198bb
BE
92002020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9201
9202 revert partially:
9203 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9204
aac66a4c
SM
9205 * buildsym.c (record_line): Fix undefined behavior and preserve
9206 lines at eof.
a25198bb 9207
206c98a6
KR
92082020-04-09 Kamil Rytarowski <n54@gmx.com>
9209
9210 * auxv.h (svr4_auxv_parse): New.
9211 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9212 and generic_auxv_parse.
9213 (svr4_auxv_parse): Add.
9214 * obsd-tdep.c: Include "auxv.h".
9215 (obsd_auxv_parse): Remove.
9216 (obsd_init_abi): Remove comment.
9217 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9218 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9219 * nbsd-tdep.c: Include "auxv.h".
9220 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9221
71fbdbaf
TT
92222020-04-08 Tom Tromey <tromey@adacore.com>
9223
9224 * nat/windows-nat.h (last_wait_event): Don't declare.
9225 (wait_for_debug_event): Update comment.
9226 * nat/windows-nat.c (last_wait_event): Now static.
9227
2c1d95e8
TT
92282020-04-08 Tom Tromey <tromey@adacore.com>
9229
9230 * windows-nat.c (wait_for_debug_event): Move to
9231 nat/windows-nat.c.
9232 * nat/windows-nat.h (wait_for_debug_event): Declare.
9233 * nat/windows-nat.c (wait_for_debug_event): Move from
9234 windows-nat.c. No longer static.
9235
d2977bc4
TT
92362020-04-08 Tom Tromey <tromey@adacore.com>
9237
9238 * windows-nat.c (get_windows_debug_event): Use
9239 fetch_pending_stop.
9240 * nat/windows-nat.h (fetch_pending_stop): Declare.
9241 * nat/windows-nat.c (fetch_pending_stop): New function.
9242
e758e19c
TT
92432020-04-08 Tom Tromey <tromey@adacore.com>
9244
9245 * windows-nat.c (windows_continue): Use matching_pending_stop and
9246 continue_last_debug_event.
9247 * nat/windows-nat.h (matching_pending_stop)
9248 (continue_last_debug_event): Declare.
9249 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9250 (matching_pending_stop, continue_last_debug_event): New
9251 functions.
9252
8d30e395
TT
92532020-04-08 Tom Tromey <tromey@adacore.com>
9254
9255 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9256 (handle_exception_result): Move to nat/windows-nat.h.
9257 (DEBUG_EXCEPTION_SIMPLE): Remove.
9258 (windows_nat::handle_ms_vc_exception): New function.
9259 (handle_exception): Move to nat/windows-nat.c.
9260 (get_windows_debug_event): Update.
9261 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9262 nat/windows-nat.c.
9263 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9264 (handle_exception_result): Move from windows-nat.c.
9265 (handle_exception): Declare.
9266 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9267 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9268 windows-nat.c.
9269
29de418d
TT
92702020-04-08 Tom Tromey <tromey@adacore.com>
9271
9272 * windows-nat.c (exception_count, event_count): Remove.
9273 (handle_exception, get_windows_debug_event)
9274 (do_initial_windows_stuff): Update.
9275
a816ba18
TT
92762020-04-08 Tom Tromey <tromey@adacore.com>
9277
9278 * windows-nat.c (windows_nat::handle_load_dll)
9279 (windows_nat::handle_unload_dll): Rename. No longer static.
9280 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9281 Declare.
9282
a00caa12
TT
92832020-04-08 Tom Tromey <tromey@adacore.com>
9284
9285 * complaints.h (stop_whining): Declare at top-level.
9286 (complaint): Don't declare stop_whining.
9287
d41b524f
TT
92882020-04-08 Tom Tromey <tromey@adacore.com>
9289
9290 * windows-nat.c (windows_nat::handle_output_debug_string):
9291 Rename. No longer static.
9292 * nat/windows-nat.h (handle_output_debug_string): Declare.
9293
3c76026d
TT
92942020-04-08 Tom Tromey <tromey@adacore.com>
9295
9296 * windows-nat.c (current_process_handle, current_process_id)
9297 (main_thread_id, last_sig, current_event, last_wait_event)
9298 (current_windows_thread, desired_stop_thread_id, pending_stops)
9299 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9300 (display_selectors, fake_create_process)
9301 (get_windows_debug_event): Update.
9302 * nat/windows-nat.h (current_process_handle, current_process_id)
9303 (main_thread_id, last_sig, current_event, last_wait_event)
9304 (current_windows_thread, desired_stop_thread_id, pending_stops)
9305 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9306 * nat/windows-nat.c (current_process_handle, current_process_id)
9307 (main_thread_id, last_sig, current_event, last_wait_event)
9308 (current_windows_thread, desired_stop_thread_id, pending_stops)
9309 (siginfo_er): New globals. Move from windows-nat.c.
9310
9d8679cc
TT
93112020-04-08 Tom Tromey <tromey@adacore.com>
9312
9313 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9314 (handle_load_dll): Update.
9315 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9316
28688adf
TT
93172020-04-08 Tom Tromey <tromey@adacore.com>
9318
9319 * windows-nat.c (enum thread_disposition_type): Move to
9320 nat/windows-nat.h.
9321 (windows_nat::thread_rec): Rename from thread_rec. No longer
9322 static.
9323 (windows_add_thread, windows_nat_target::fetch_registers)
9324 (windows_nat_target::store_registers, handle_exception)
9325 (windows_nat_target::resume, get_windows_debug_event)
9326 (windows_nat_target::get_tib_address)
9327 (windows_nat_target::thread_name)
9328 (windows_nat_target::thread_alive): Update.
9329 * nat/windows-nat.h (enum thread_disposition_type): Move from
9330 windows-nat.c.
9331 (thread_rec): Declare.
9332
4834dad0
TT
93332020-04-08 Tom Tromey <tromey@adacore.com>
9334
9335 * windows-nat.c: Add "using namespace".
9336 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9337 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9338
65bafd5b
TT
93392020-04-08 Tom Tromey <tromey@adacore.com>
9340
9341 * nat/windows-nat.h (struct windows_thread_info): Declare
9342 destructor.
9343 * nat/windows-nat.c (~windows_thread_info): New.
9344
0a4afda3
TT
93452020-04-08 Tom Tromey <tromey@adacore.com>
9346
9347 PR gdb/22992
9348 * windows-nat.c (current_event): Update comment.
9349 (last_wait_event, desired_stop_thread_id): New globals.
9350 (struct pending_stop): New.
9351 (pending_stops): New global.
9352 (windows_nat_target) <stopped_by_sw_breakpoint>
9353 <supports_stopped_by_sw_breakpoint>: New methods.
9354 (windows_fetch_one_register): Add assertions. Adjust PC.
9355 (windows_continue): Handle pending stops. Suspend other threads
9356 when stepping. Use last_wait_event
9357 (wait_for_debug_event): New function.
9358 (get_windows_debug_event): Use wait_for_debug_event. Handle
9359 pending stops. Queue spurious stops.
9360 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9361 (windows_nat_target::kill): Use wait_for_debug_event.
9362 * nat/windows-nat.h (struct windows_thread_info)
9363 <stopped_at_software_breakpoint>: New field.
9364 * nat/windows-nat.c (windows_thread_info::resume): Clear
9365 stopped_at_software_breakpoint.
9366
8e61ebec
TT
93672020-04-08 Tom Tromey <tromey@adacore.com>
9368
9369 * windows-nat.c (enum thread_disposition_type): New.
9370 (thread_rec): Replace "get_context" parameter with "disposition";
9371 change type.
9372 (windows_add_thread, windows_nat_target::fetch_registers)
9373 (windows_nat_target::store_registers, handle_exception)
9374 (windows_nat_target::resume, get_windows_debug_event)
9375 (windows_nat_target::get_tib_address)
9376 (windows_nat_target::thread_name)
9377 (windows_nat_target::thread_alive): Update.
9378
98a03287
TT
93792020-04-08 Tom Tromey <tromey@adacore.com>
9380
9381 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9382 (windows_continue): Use windows_continue::resume.
9383 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9384 resume>: Declare new methods.
9385 * nat/windows-nat.c: New file.
9386 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9387
7c7411bc
TT
93882020-04-08 Tom Tromey <tromey@adacore.com>
9389
9390 * windows-nat.c (windows_add_thread, windows_delete_thread)
9391 (windows_nat_target::fetch_registers)
9392 (windows_nat_target::store_registers, fake_create_process)
9393 (windows_nat_target::resume, windows_nat_target::resume)
9394 (get_windows_debug_event, windows_nat_target::wait)
9395 (windows_nat_target::pid_to_str)
9396 (windows_nat_target::get_tib_address)
9397 (windows_nat_target::get_ada_task_ptid)
9398 (windows_nat_target::thread_name)
9399 (windows_nat_target::thread_alive): Use lwp, not tid.
9400
2950fdf7
TT
94012020-04-08 Tom Tromey <tromey@adacore.com>
9402
9403 * windows-nat.c (handle_exception)
9404 (windows_nat_target::thread_name): Update.
9405 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9406 <name>: Now unique_xmalloc_ptr.
9407
62fe396b
TT
94082020-04-08 Tom Tromey <tromey@adacore.com>
9409
9410 * windows-nat.c (thread_rec)
9411 (windows_nat_target::fetch_registers): Update.
9412 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9413 Update comment.
9414 <debug_registers_changed, reload_context>: Now bool.
9415
e9534bd2
TT
94162020-04-08 Tom Tromey <tromey@adacore.com>
9417
9418 * windows-nat.c (windows_add_thread): Use new.
9419 (windows_init_thread_list, windows_delete_thread): Use delete.
9420 (get_windows_debug_event): Update.
9421 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9422 destructor, and initializers.
9423
ae1f8880
TT
94242020-04-08 Tom Tromey <tromey@adacore.com>
9425
9426 * windows-nat.c (struct windows_thread_info): Remove.
9427 * nat/windows-nat.h: New file.
9428
55a1e039
TT
94292020-04-08 Tom Tromey <tromey@adacore.com>
9430
9431 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9432 (thread_rec, windows_add_thread, windows_delete_thread)
9433 (windows_continue): Update.
9434
93366324
TT
94352020-04-08 Tom Tromey <tromey@adacore.com>
9436
9437 * windows-nat.c (struct windows_thread_info): Remove typedef.
9438 (thread_head): Remove.
9439 (thread_list): New global.
9440 (thread_rec, windows_add_thread, windows_init_thread_list)
9441 (windows_delete_thread, windows_continue): Update.
9442
0f2265e2
SM
94432020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9444
9445 * windows-tdep.h (windows_init_abi): Add comment.
9446 (cygwin_init_abi): New declaration.
9447 * windows-tdep.c: Split signal enumeration in two, one for
9448 Windows and one for Cygwin.
9449 (windows_gdb_signal_to_target): Only deal with signal of the
9450 Windows OS ABI.
9451 (cygwin_gdb_signal_to_target): New function.
9452 (windows_init_abi): Rename to windows_init_abi_common, don't set
9453 gdb_signal_to_target gdbarch method. Add new new function with
9454 this name.
9455 (cygwin_init_abi): New function.
9456 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9457 comment. Don't call windows_init_abi.
9458 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9459 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9460 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9461 i386_windows_init_abi_common, don't call windows_init_abi. Add
9462 a new function of this name.
9463 (i386_cygwin_init_abi): New function.
9464 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9465 OS ABI Cygwin.
9466
3810f182
SM
94672020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9468
9469 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9470 parameter.c.
9471 (dwarf2_read_gdb_index): Update.
9472
063f8e80
KR
94732020-04-07 Kamil Rytarowski <n54@gmx.com>
9474
9475 * nbsd-tdep.c: Include "objfiles.h".
9476 (nbsd_skip_solib_resolver): New.
9477 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9478
85a9510c 94792020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9480
9481 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9482 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9483 with DW_LLE_base_addressx are being emitted in DWARFv5.
9484 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9485 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9486 unsigned integer.
9487
9fc3eaae 94882020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9489
9490 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9491 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9492 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9493 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9494 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9495 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9496 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9497
9498
41144253 94992020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9500
9501 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9502 (read_loclist_index): New function definition.
9503 (lookup_loclist_base): New function definition.
9504 (read_loclist_header): New function definition.
9505 (dwarf2_cu): Add loclist_base and loclist_header field.
9506 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9507 (read_full_die_1): Read the value of DW_AT_loclists_base.
9508 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9509 (read_attribute_value): Handle DW_FORM_loclistx.
9510 (skip_one_die): Handle DW_FORM_loclistx.
9511 (loclist_header): New structure declaration.
9512 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9513
9f4e76a4
SM
95142020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9515
9516 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9517 constructor. Remove `addr` parameter from other constructor and
9518 add `per_cu` parameter.
9519 * dwarf2/read.c (create_partial_symtab): Update.
9520
25c11aca
TV
95212020-04-07 Tom de Vries <tdevries@suse.de>
9522
9523 PR symtab/25796
9524 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9525 (partial_die_info::fixup): Inherit has_const_value.
9526
5707e24b
TV
95272020-04-07 Tom de Vries <tdevries@suse.de>
9528
9529 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9530 symbols without address.
9531
05f00e22
KR
95322020-04-06 Kamil Rytarowski <n54@gmx.com>
9533
9534 * nbsd-nat.h (struct thread_info): Add forward declaration.
9535 (nbsd_nat_target::thread_alive): Add.
9536 (nbsd_nat_target::thread_name): Likewise.
9537 (nbsd_nat_target::update_thread_list): Likewise.
9538 (update_thread_list::post_attach): Likewise.
9539 (post_attach::pid_to_str): Likewise.
9540 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9541 (nbsd_thread_lister): Add.
9542 (nbsd_nat_target::thread_alive): Likewise.
9543 (nbsd_nat_target::thread_name): Likewise.
9544 (nbsd_add_threads): Likewise.
9545 (update_thread_list::post_attach): Likewise.
9546 (nbsd_nat_target::update_thread_list): Likewise.
9547 (post_attach::pid_to_str): Likewise.
9548
6ee448cc
TT
95492020-04-06 Tom Tromey <tromey@adacore.com>
9550
9551 * ada-valprint.c (print_variant_part): Extract the variant field.
9552 (print_field_values): Use the field as the outer value when
9553 recursing.
9554
dea34e8c
TT
95552020-04-06 Tom Tromey <tromey@adacore.com>
9556
9557 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9558 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9559 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9560 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9561 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9562
93689ce9
TT
95632020-04-06 Tom Tromey <tromey@adacore.com>
9564
9565 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9566 TYPE_CODE_ERROR.
9567
79743962
KR
95682020-04-06 Kamil Rytarowski <n54@gmx.com>
9569
9570 * nbsd-tdep.c: Include "gdbarch.h".
9571 Define enum with NetBSD signal numbers.
9572 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9573 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9574 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9575 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9576 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9577 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9578 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9579 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9580 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9581 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9582 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9583 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9584
9e7c9a03
HD
95852020-04-03 Hannes Domani <ssbssa@yahoo.de>
9586
9587 PR gdb/25325
9588 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9589
d9e49b61
TT
95902020-04-03 Tom Tromey <tromey@adacore.com>
9591
9592 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9593 Read constant block.
9594
e0fc5c3f
SM
95952020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9596
9597 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9598 (gdb_bfd_get_full_section_contents): New declaration.
9599 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9600 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9601 gdb_bfd_get_full_section_contents.
9602
e2ff18a0
SM
96032020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9604
9605 * exec.c (build_section_table): Replace internal_error with
9606 gdb_assert.
9607 (section_table_xfer_memory_partial): Likewise.
9608 * mdebugread.c (parse_partial_symbols): Likewise.
9609 * psymtab.c (lookup_partial_symbol): Likewise.
9610 * utils.c (wrap_here): Likewise.
9611
0830d301
TT
96122020-04-02 Tom Tromey <tromey@adacore.com>
9613
9614 * f-lang.c (build_fortran_types): Use arch_type to initialize
9615 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9616
e7da7f8f
TT
96172020-04-02 Tom Tromey <tromey@adacore.com>
9618
9619 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9620 of attributes.
9621
c90d28ac
AB
96222020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9623 Bernd Edlinger <bernd.edlinger@hotmail.de>
9624 Tom Tromey <tromey@adacore.com>
9625
9626 * buildsym.c (buildsym_compunit::record_line): Remove
9627 deduplication code.
9628
1aa98955
TV
96292020-04-02 Tom de Vries <tdevries@suse.de>
9630
9631 PR ada/24671
9632 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9633
d3214198
TV
96342020-04-02 Tom de Vries <tdevries@suse.de>
9635
9636 * dwarf2/read.c (dwarf2_gdb_index_functions,
9637 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9638 NULL.
9639 * psymtab.c (psym_lookup_global_symbol_language): New function.
9640 (psym_functions): Init psym_lookup_global_symbol_language with
9641 psym_lookup_global_symbol_language.
9642 * symfile-debug.c (debug_sym_quick_functions): Init
9643 lookup_global_symbol_language with NULL.
9644 * symfile.c (set_initial_language): Remove fixme comment.
9645 * symfile.h (struct quick_symbol_functions): Add
9646 lookup_global_symbol_language.
9647 * symtab.c (find_quick_global_symbol_language): New function.
9648 (find_main_name): Use find_quick_global_symbol_language.
9649
2836752f
SM
96502020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9651
9652 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9653
64dc2d4b
BE
96542020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9655
9656 * buildsym.c (record_line): Fix undefined behavior and preserve
9657 lines at eof.
9658
bbe3dc41
BE
96592020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9660
9661 * buildsym.c (record_line): Fix the resizing condition.
9662
6b4a335b
TT
96632020-04-01 Tom Tromey <tom@tromey.com>
9664
9665 * value.h (value_literal_complex): Add comment.
9666 * valops.c (value_literal_complex): Refer to value.h.
9667
3638a098
TT
96682020-04-01 Tom Tromey <tom@tromey.com>
9669
9670 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9671 (scalar_type): New rule, from typebase.
9672 (typebase): Use scalar_type. Recognize complex types.
9673 (field_name): Handle FLOAT_KEYWORD.
9674 (ident_tokens): Add _Complex and __complex__.
9675
c34e8714
TT
96762020-04-01 Tom Tromey <tom@tromey.com>
9677
9678 PR exp/25299:
9679 * valarith.c (promotion_type, complex_binop): New functions.
9680 (scalar_binop): Handle complex numbers. Use promotion_type.
9681 (value_pos, value_neg, value_complement): Handle complex numbers.
9682
fa649bb7
TT
96832020-04-01 Tom Tromey <tom@tromey.com>
9684
9685 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9686 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9687 (parse_number): Handle complex numbers.
9688
981c08ce
TT
96892020-04-01 Tom Tromey <tom@tromey.com>
9690
9691 * c-valprint.c (c_decorations): Change complex suffix to "i".
9692
4c99290d
TT
96932020-04-01 Tom Tromey <tom@tromey.com>
9694
9695 * valprint.c (generic_value_print_complex): Use accessors.
9696 * value.h (value_real_part, value_imaginary_part): Declare.
9697 * valops.c (value_real_part, value_imaginary_part): New
9698 functions.
9699 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9700
5b930b45
TT
97012020-04-01 Tom Tromey <tom@tromey.com>
9702
9703 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9704 (read_range_type): Update.
9705 * mdebugread.c (basic_type): Update.
9706 * go-lang.c (build_go_types): Use init_complex_type.
9707 * gdbtypes.h (struct main_type) <complex_type>: New member.
9708 (init_complex_type): Update.
9709 (arch_complex_type): Don't declare.
9710 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9711 Make name if none given. Use alloc_type_copy. Look for cached
9712 complex type.
9713 (arch_complex_type): Remove.
9714 (gdbtypes_post_init): Use init_complex_type.
9715 * f-lang.c (build_fortran_types): Use init_complex_type.
9716 * dwarf2/read.c (read_base_type): Update.
9717 * d-lang.c (build_d_types): Use init_complex_type.
9718 * ctfread.c (read_base_type): Update.
9719
53cccef1
TBA
97202020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9721
9722 * infrun.c (stop_all_threads): Update assertion, plus when
9723 stopping threads, take into account that we might be trying
9724 to stop an all-stop target.
9725 (stop_waiting): Call 'stop_all_threads' if there exists a
9726 non-stop target.
9727
a0714d30
TBA
97282020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9729
9730 * target.h (exists_non_stop_target): New function declaration.
9731 * target.c (exists_non_stop_target): New function.
9732
60e22c1e
HD
97332020-04-01 Hannes Domani <ssbssa@yahoo.de>
9734
9735 PR gdb/24789
9736 * eval.c (is_integral_or_integral_reference): New function.
9737 (evaluate_subexp_standard): Allow integer references in
9738 pointer arithmetic.
9739
e139a727
TBA
97402020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9741
9742 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9743 check for no ptid in the stop reply when the target is non-stop.
9744
e0802d59
TT
97452020-04-01 Tom Tromey <tromey@adacore.com>
9746
9747 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9748 "name" parameter to rvalue reference. Initialize m_name_holder.
9749 <lookup_name_info>: New overloads.
9750 <name>: Return gdb::string_view.
9751 <c_str>: New method.
9752 <make_ignore_params>: Update.
9753 <search_name_hash>: Update.
9754 <language_lookup_name>: Return const char *.
9755 <m_name>: Change type.
9756 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9757 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9758 (lookup_name_info::match_any): Update.
9759 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9760 Update.
9761 * minsyms.c (linkage_name_str): Update.
9762 * language.c (default_symbol_name_matcher): Update.
9763 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9764 Update.
9765 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9766 (ada_lookup_name_info::ada_lookup_name_info): Update.
9767 (literal_symbol_name_matcher): Update.
9768
8c072cb6
TT
97692020-04-01 Tom Tromey <tromey@adacore.com>
9770
9771 * psymtab.c (psymtab_search_name): Remove function.
9772 (psym_lookup_symbol): Create search name and lookup name here.
9773 (lookup_partial_symbol): Remove "name" parameter; add
9774 lookup_name.
9775 (psym_expand_symtabs_for_function): Update.
9776
6f29a534
TT
97772020-03-31 Joel Jones <joelkevinjones@gmail.com>
9778
9779 PR tui/25597:
9780 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9781
af62665e
TT
97822020-03-31 Tom Tromey <tromey@adacore.com>
9783
9784 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9785 memcpy.
9786
d1a89da5
NC
97872020-03-30 Nelson Chu <nelson.chu@sifive.com>
9788
9789 * features/riscv/32bit-csr.xml: Regenerated.
9790 * features/riscv/64bit-csr.xml: Regenerated.
9791
d8af9068
TT
97922020-03-30 Tom Tromey <tromey@adacore.com>
9793
9794 * ada-valprint.c (print_variant_part): Update.
9795 * ada-lang.h (ada_which_variant_applies): Update.
9796 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9797 outer_valaddr parameters; replace with "outer" value parameter.
9798 (to_fixed_variant_branch_type): Update.
9799
227c0bf4
PFC
98002020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9801
9802 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9803 <list>. Remove inclusion of observable.h.
9804 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9805 (struct arch_lwp_info): New struct.
9806 (class ppc_linux_dreg_interface): New class.
9807 (struct ppc_linux_process_info): New struct.
9808 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9809 <low_new_clone, low_forget_process, low_prepare_to_resume>
9810 <copy_thread_dreg_state, mark_thread_stale>
9811 <mark_debug_registers_changed, register_hw_breakpoint>
9812 <clear_hw_breakpoint, register_wp, clear_wp>
9813 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9814 <num_memory_accesses, get_trigger_type>
9815 <create_watchpoint_request, hwdebug_point_cmp>
9816 <init_arch_lwp_info, get_arch_lwp_info>
9817 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9818 methods.
9819 <struct ptid_hash>: New inner struct.
9820 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9821 members.
9822 (saved_dabr_value, hwdebug_info, max_slots_number)
9823 (struct hw_break_tuple, struct thread_points, ppc_threads)
9824 (have_ptrace_hwdebug_interface)
9825 (hwdebug_find_thread_points_by_tid)
9826 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9827 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9828 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9829 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9830 use m_dreg_interface.
9831 (hwdebug_point_cmp): Change to...
9832 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9833 reference arguments instead of pointers.
9834 (ppc_linux_nat_target::ranged_break_num_registers): Use
9835 m_dreg_interface.
9836 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9837 m_dreg_interface. Call register_hw_breakpoint.
9838 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9839 m_dreg_interface. Call clear_hw_breakpoint.
9840 (get_trigger_type): Change to...
9841 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9842 comment.
9843 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9844 use m_dreg_interface. Call register_hw_breakpoint.
9845 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9846 use m_dreg_interface. Call clear_hw_breakpoint.
9847 (can_use_watchpoint_cond_accel): Change to...
9848 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9849 method. Update comment, use m_dreg_interface and
9850 m_process_info.
9851 (calculate_dvc): Change to...
9852 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9853 m_dreg_interface.
9854 (num_memory_accesses): Change to...
9855 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9856 (check_condition): Change to...
9857 (ppc_linux_nat_target::check_condition): ...this method.
9858 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9859 comment, use m_dreg_interface.
9860 (create_watchpoint_request): Change to...
9861 (ppc_linux_nat_target::create_watchpoint_request): ...this
9862 method. Use m_dreg_interface.
9863 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9864 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9865 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9866 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9867 (ppc_linux_nat_target::low_forget_process)
9868 (ppc_linux_nat_target::low_new_fork)
9869 (ppc_linux_nat_target::low_new_clone)
9870 (ppc_linux_nat_target::low_delete_thread)
9871 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9872 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9873 only call mark_thread_stale.
9874 (ppc_linux_thread_exit): Remove.
9875 (ppc_linux_nat_target::stopped_data_address): Change to...
9876 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9877 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9878 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9879 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9880 comment. Call low_stopped_data_address.
9881 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9882 m_dreg_interface.
9883 (ppc_linux_nat_target::masked_watch_num_registers): Use
9884 m_dreg_interface.
9885 (ppc_linux_nat_target::copy_thread_dreg_state)
9886 (ppc_linux_nat_target::mark_thread_stale)
9887 (ppc_linux_nat_target::mark_debug_registers_changed)
9888 (ppc_linux_nat_target::register_hw_breakpoint)
9889 (ppc_linux_nat_target::clear_hw_breakpoint)
9890 (ppc_linux_nat_target::register_wp)
9891 (ppc_linux_nat_target::clear_wp)
9892 (ppc_linux_nat_target::init_arch_lwp_info)
9893 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9894 (_initialize_ppc_linux_nat): Remove observer callback.
9895
4db10d8f
PFC
98962020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9897
9898 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9899 (ppc_linux_nat_target::auxv_parse)
9900 (ppc_linux_nat_target::read_description)
9901 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9902 Move up.
9903
1310c1b0
PFC
99042020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9905
9906 * linux-nat.h (low_new_clone): New method.
9907 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9908
69b037c3
SM
99092020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9910
9911 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9912 (dbx_expand_psymtab): ... this.
9913 (start_psymtab): Update.
9914 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9915 (mdebug_expand_psymtab): ... this.
9916 (parse_partial_symbols): Update.
9917 (new_psymtab): Update.
9918 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9919 (xcoff_expand_psymtab): ... this.
9920 (xcoff_start_psymtab): Update.
9921
48993951
SM
99222020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9923
9924 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9925 <expand_dependencies>: ... this.
9926 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9927 (partial_symtab::expand_dependencies): ... this.
9928 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9929 Update.
9930 (dwarf2_psymtab::expand_psymtab): Update.
9931 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9932 * mdebugread.c (psymtab_to_symtab_1): Update.
9933 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9934
3ad83046
SM
99352020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9936
9937 * psympriv.h (discard_psymtab): Remove.
9938 * dbxread.c (dbx_end_psymtab): Update.
9939 * xcoffread.c (xcoff_end_psymtab): Update.
9940
4d1b9ab6
TT
99412020-03-28 Tom Tromey <tom@tromey.com>
9942
9943 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9944 comment.
9945
f1749218
TT
99462020-03-28 Tom Tromey <tom@tromey.com>
9947
9948 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9949
ebea7626
HD
99502020-03-27 Hannes Domani <ssbssa@yahoo.de>
9951
9952 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9953
a879b4d5
JB
99542020-03-26 John Baldwin <jhb@FreeBSD.org>
9955
9956 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9957
0826b30a
TT
99582020-03-26 Tom Tromey <tom@tromey.com>
9959
9960 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9961 (mark_common_block_symbol_computed, read_tag_string_type)
9962 (attr_to_dynamic_prop, read_subrange_type): Update.
9963 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9964 to be methods on struct attribute.
9965 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9966 (read_call_site_scope, partial_die_info::read)
9967 (partial_die_info::read, lookup_die_type, follow_die_ref):
9968 Update.
9969 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9970 from dwarf2_get_ref_die_offset.
9971 (attribute::constant_value): New method, from
9972 dwarf2_get_attr_constant_value.
9973 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9974 Declare method.
9975 <constant_value>: New method.
9976
2b2558bf
TT
99772020-03-26 Tom Tromey <tom@tromey.com>
9978
9979 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9980 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9981 (dwarf_type_encoding_name): Move to stringify.c.
9982 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9983 * dwarf2/stringify.c: New file.
9984 * dwarf2/stringify.h: New file.
9985
eeb64781
TT
99862020-03-26 Tom Tromey <tom@tromey.com>
9987
9988 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9989 Rewrite.
9990
a39fdb41
TT
99912020-03-26 Tom Tromey <tom@tromey.com>
9992
9993 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9994 methods.
9995 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9996 (lookup_ranges_base): Likewise.
9997 (read_cutu_die_from_dwo, read_full_die_1): Update.
9998
436c571c
TT
99992020-03-26 Tom Tromey <tom@tromey.com>
10000
10001 * dwarf2/read.c (read_import_statement, read_file_scope)
10002 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10003 (read_lexical_block_scope, read_call_site_scope)
10004 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10005 (handle_struct_member_die, process_structure_scope)
10006 (update_enumeration_type_from_children)
10007 (process_enumeration_scope, read_array_type, read_common_block)
10008 (read_namespace, read_module, read_subroutine_type): Update.
10009 (sibling_die): Remove.
10010
052c8bb8
TT
100112020-03-26 Tom Tromey <tom@tromey.com>
10012
10013 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10014 (build_type_psymtabs_reader, read_structure_type)
10015 (read_enumeration_type, read_full_die_1): Update.
10016 (dwarf2_attr_no_follow): Move to die.h.
10017 * dwarf2/die.h (struct die_info) <attr>: New method.
10018
2b24b6e4
TT
100192020-03-26 Tom Tromey <tom@tromey.com>
10020
10021 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10022 <base_address>: Now an optional.
10023 (dwarf2_find_base_address, dwarf2_rnglists_process)
10024 (dwarf2_ranges_process, fill_in_loclist_baton)
10025 (dwarf2_symbol_mark_computed): Update.
10026
c2d50fd0
TT
100272020-03-26 Tom Tromey <tom@tromey.com>
10028
10029 * dwarf2/read.c (struct die_info): Move to die.h.
10030 * dwarf2/die.h: New file.
10031
0df7ad3a
TT
100322020-03-26 Tom Tromey <tom@tromey.com>
10033
10034 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10035 * dwarf2/read.c
10036 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10037 Move to line-header.c.
10038 (read_checked_initial_length_and_offset, read_formatted_entries):
10039 Likewise.
10040 (dwarf_decode_line_header): Split into two.
10041 * dwarf2/line-header.c
10042 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10043 Move from read.c.
10044 (read_checked_initial_length_and_offset, read_formatted_entries):
10045 Likewise.
10046 (dwarf_decode_line_header): New function, split from read.c.
10047
86c0bb4c
TT
100482020-03-26 Tom Tromey <tom@tromey.com>
10049
10050 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10051 Declare method.
10052 * dwarf2/read.c (read_attribute_value): Update.
10053 (dwarf2_per_objfile::read_line_string): Rename from
10054 read_indirect_line_string.
10055 (read_formatted_entries): Update.
10056
2ef46c2f
TT
100572020-03-26 Tom Tromey <tom@tromey.com>
10058
10059 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10060 variable.
10061
4f9c1eda
TT
100622020-03-26 Tom Tromey <tom@tromey.com>
10063
10064 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10065 const.
10066 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10067 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10068 parameter const.
10069
5a0e026f
TT
100702020-03-26 Tom Tromey <tom@tromey.com>
10071
10072 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10073 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10074 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10075 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10076
8844c11b
TT
100772020-03-26 Tom Tromey <tom@tromey.com>
10078
10079 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10080 file_names_size, file_full_name, file_file_name>: Use const.
10081 <file_name_at, file_names>: Add const overload.
10082 * dwarf2/line-header.c (line_header::file_file_name)
10083 (line_header::file_full_name): Update.
10084
c90ec28a
TT
100852020-03-26 Tom Tromey <tom@tromey.com>
10086
10087 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10088 (macro_start_file, consume_improper_spaces)
10089 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10090 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10091 (dwarf_decode_macros): Move to macro.c.
10092 * dwarf2/macro.c: New file.
10093 * dwarf2/macro.h: New file.
10094 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10095
4f44ae6c
TT
100962020-03-26 Tom Tromey <tom@tromey.com>
10097
10098 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10099 method.
10100 * dwarf2/section.c: New method. From
10101 read_indirect_string_at_offset_from.
10102 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10103 (read_indirect_string_at_offset_from): Move to section.c.
10104 (read_indirect_string_at_offset): Rewrite.
10105 (read_indirect_line_string_at_offset): Remove.
10106 (read_indirect_string, read_indirect_line_string)
10107 (dwarf_decode_macro_bytes): Update.
10108
a0194fa8
TT
101092020-03-26 Tom Tromey <tom@tromey.com>
10110
10111 * dwarf2/section.h (struct dwarf2_section_info)
10112 <overload_complaint>: Declare.
10113 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10114 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10115 Rename from dwarf2_section_buffer_overflow_complaint.
10116 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10117 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10118
3d27bbdb
TT
101192020-03-26 Tom Tromey <tom@tromey.com>
10120
10121 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10122 Declare.
10123 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10124 Move from read.c.
10125 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10126 to section.c.
10127
9eac9650
TT
101282020-03-26 Tom Tromey <tom@tromey.com>
10129
10130 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10131
bf80d710
TT
101322020-03-26 Tom Tromey <tom@tromey.com>
10133
10134 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10135 "builder".
10136 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10137 parameter.
10138 (dwarf_decode_macros): Update.
10139
0314b390
TT
101402020-03-26 Tom Tromey <tom@tromey.com>
10141
10142 * dwarf2/read.c (read_attribute_value): Update.
10143 (read_indirect_string_from_dwz): Move to dwz.c; change into
10144 method.
10145 (dwarf_decode_macro_bytes): Update.
10146 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10147 * dwarf2/dwz.c: New file.
10148 * Makefile.in (COMMON_SFILES): Add dwz.c.
10149
9fda78b6
TT
101502020-03-26 Tom Tromey <tom@tromey.com>
10151
10152 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10153 * dwarf2/read.c: Add include.
10154 * dwarf2/index-write.c: Add include.
10155 * dwarf2/index-cache.c: Add include.
10156 * dwarf2/dwz.h: New file.
10157
33aa3c10
TT
101582020-03-25 Tom Tromey <tom@tromey.com>
10159
10160 * compile/compile-object-load.c (get_out_value_type): Mention
10161 correct symbol name in error message.
10162
d503b685
HD
101632020-03-25 Hannes Domani <ssbssa@yahoo.de>
10164
10165 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10166
7b1eff95
TV
101672020-03-25 Tom de Vries <tdevries@suse.de>
10168
10169 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10170 * symmisc.c (dump_symtab_1): Print user and includes fields.
10171 (maintenance_info_symtabs): Same.
10172
dd895392
AB
101732020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10174
10175 PR gdb/25534
10176 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10177 (riscv_regcache_cooked_write): New function.
10178 (riscv_push_dummy_call): Use new function.
10179 (riscv_return_value): Likewise.
10180
5ab2fbf1
SM
101812020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10182
10183 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10184 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10185 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10186 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10187 * infrun.c (follow_fork): Likewise.
10188 (follow_fork_inferior): Likewise.
10189 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10190 * linux-nat.h (class linux_nat_target): Likewise.
10191 * remote.c (class remote_target) <follow_fork>: Likewise.
10192 (remote_target::follow_fork): Likewise.
10193 * target-delegates.c: Re-generate.
10194 * target.c (default_follow_fork): Likewise.
10195 (target_follow_fork): Likewise.
10196 * target.h (struct target_ops) <follow_fork>: Likewise.
10197 (target_follow_fork): Likewise.
10198
a64fafb5
TV
101992020-03-24 Tom de Vries <tdevries@suse.de>
10200
10201 * psymtab.c (maintenance_info_psymtabs): Print user field.
10202
fe26d3a3
TT
102032020-03-20 Tom Tromey <tromey@adacore.com>
10204
10205 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10206 const.
10207 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10208 const.
10209
c884cc46
SM
102102020-03-20 Simon Marchi <simon.marchi@efficios.com>
10211
10212 * ptrace.m4: Don't check for ptrace declaration.
10213 * config.in: Re-generate.
10214 * configure: Re-generate.
10215 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10216 not defined.
10217
1ff700c2
KR
102182020-03-20 Kamil Rytarowski <n54@gmx.com>
10219
10220 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10221 `PTRACE_TYPE_RET'.
10222 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10223 * sparc-nat.c (gdb_ptrace): Likewise.
10224 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10225
f7d4f0b1
TT
102262020-03-20 Tom Tromey <tromey@adacore.com>
10227
10228 * c-exp.y (lex_one_token): Fix assert.
10229
f67210ff
TT
102302020-03-20 Tom Tromey <tromey@adacore.com>
10231
10232 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10233 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10234 strncpy call.
10235
1773be9e
TT
102362020-03-20 Tom Tromey <tromey@adacore.com>
10237
10238 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10239
70304be9
TT
102402020-03-20 Tom Tromey <tromey@adacore.com>
10241
10242 * ada-valprint.c (print_variant_part): Remove parameters; switch
10243 to value-based API.
10244 (print_field_values): Likewise.
10245 (ada_val_print_struct_union): Likewise.
10246 (ada_value_print_1): Update.
10247
9faa006d
KR
102482020-03-20 Kamil Rytarowski <n54@gmx.com>
10249
10250 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10251 nbsd_nat_target instead of inf_ptrace_target.
10252 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10253 nbsd_nat_target.
10254
4a90f062
KR
102552020-03-20 Kamil Rytarowski <n54@gmx.com>
10256
10257 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10258 it to the ptrace call.
10259 * (store_registers): Likewise.
10260
102612020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10262
10263 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10264 it to the ptrace call.
10265 * (store_registers): Likewise.
10266
2d07da27
LM
102672020-03-19 Luis Machado <luis.machado@linaro.org>
10268
10269 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10270 valid, fetch vg value from ptrace.
10271
f09db380
KR
102722020-03-19 Kamil Rytarowski <n54@gmx.com>
10273 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10274 * inf-ptrace.c: Likewise.
10275 * (gdb_ptrace): Add.
10276 * (inf_ptrace_target::resume): Update.
10277 * (inf_ptrace_target::xfer_partial): Likewise.
10278 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10279 * (inf_ptrace_peek_poke): Update.
10280
fcc7376e
KR
102812020-03-19 Kamil Rytarowski <n54@gmx.com>
10282
10283 * x86-bsd-nat.c (gdb_ptrace): New.
10284 * (x86bsd_dr_set): Add new argument `ptid'.
10285 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10286 x86bsd_dr_set_addr): Update.
10287
cada5fc9
AB
102882020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10289
10290 * remote.c (remote_target::process_stop_reply): Handle events for
10291 all threads differently.
10292
19a2740f
AB
102932020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10294
10295 * completer.c (completion_tracker::remove_completion): Define new
10296 function.
10297 * completer.h (completion_tracker::remove_completion): Declare new
10298 function.
10299 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10300 when adding a C++ function symbol.
10301
724fd9ba
AB
103022020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10303
10304 * completer.c (completion_tracker::completion_hash_entry): Define
10305 new class.
10306 (advance_to_filename_complete_word_point): Call
10307 recompute_lowest_common_denominator.
10308 (completion_tracker::completion_tracker): Call discard_completions
10309 to setup the hash table.
10310 (completion_tracker::discard_completions): Allow for being called
10311 from the constructor, pass new equal function, and element deleter
10312 when constructing the hash table. Initialise new class member
10313 variables.
10314 (completion_tracker::maybe_add_completion): Remove use of
10315 m_entries_vec, and store more information into m_entries_hash.
10316 (completion_tracker::recompute_lcd_visitor): New function, most
10317 content taken from...
10318 (completion_tracker::recompute_lowest_common_denominator):
10319 ...here, this now just visits each item in the hash calling the
10320 above visitor.
10321 (completion_tracker::build_completion_result): Remove use of
10322 m_entries_vec, call recompute_lowest_common_denominator.
10323 * completer.h (completion_tracker::have_completions): Remove use
10324 of m_entries_vec.
10325 (completion_tracker::completion_hash_entry): Declare new class.
10326 (completion_tracker::recompute_lowest_common_denominator): Change
10327 function signature.
10328 (completion_tracker::recompute_lcd_visitor): Declare new function.
10329 (completion_tracker::m_entries_vec): Delete.
10330 (completion_tracker::m_entries_hash): Initialize to NULL.
10331 (completion_tracker::m_lowest_common_denominator_valid): New
10332 member variable.
10333 (completion_tracker::m_lowest_common_denominator_max_length): New
10334 member variable.
10335
5a82b8a1
KR
103362020-03-17 Kamil Rytarowski <n54@gmx.com>
10337
10338 * regformats/regdef.h: Put reg in gdb namespace.
10339
fb516a69
KR
103402020-03-17 Kamil Rytarowski <n54@gmx.com>
10341
10342 * i386-bsd-nat.c (gdb_ptrace): New.
10343 * (i386bsd_fetch_inferior_registers,
10344 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10345 * (i386bsd_fetch_inferior_registers,
10346 i386bsd_store_inferior_registers) Use gdb_ptrace.
10347
1c0aa1fb
KR
103482020-03-17 Kamil Rytarowski <n54@gmx.com>
10349
10350 * amd64-bsd-nat.c (gdb_ptrace): New.
10351 * (amd64bsd_fetch_inferior_registers,
10352 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10353 * (amd64bsd_fetch_inferior_registers,
10354 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10355
5ccd2fb7
KR
103562020-03-17 Kamil Rytarowski <n54@gmx.com>
10357
10358 * user-regs.c (user_reg::read): Rename to...
10359 (user_reg::xread): ...this.
10360 * (append_user_reg): Rename argument `read' to `xread'.
10361 * (user_reg_add_builtin): Likewise.
10362 * (user_reg_add): Likewise.
10363 * (value_of_user_reg): Likewise.
10364
2108a63a
KR
103652020-03-17 Kamil Rytarowski <n54@gmx.com>
10366
10367 * sparc-nat.c (gdb_ptrace): New.
10368 * sparc-nat.c (sparc_fetch_inferior_registers)
10369 (sparc_store_inferior_registers) Remove obsolete comment.
10370 * sparc-nat.c (sparc_fetch_inferior_registers)
10371 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10372 * sparc-nat.c (sparc_fetch_inferior_registers)
10373 (sparc_store_inferior_registers) Use gdb_ptrace.
10374
a225c9a8
KR
103752020-03-17 Kamil Rytarowski <n54@gmx.com>
10376
10377 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10378 it to the ptrace call.
10379 * sh-nbsd-nat.c (store_registers): Likewise.
10380
98097623
KR
103812020-03-17 Kamil Rytarowski <n54@gmx.com>
10382
10383 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10384 nbsd_nat_target instead of inf_ptrace_target.
10385 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10386 nbsd_nat_target.
10387
9e38d619
KR
103882020-03-17 Kamil Rytarowski <n54@gmx.com>
10389
10390 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10391
a2ecbe9f
KR
103922020-03-17 Kamil Rytarowski <n54@gmx.com>
10393
10394 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10395 <sys/sysctl.h>.
10396 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10397
58990295
TV
103982020-03-17 Tom de Vries <tdevries@suse.de>
10399
10400 PR gdb/23710
10401 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10402 fields.
10403 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10404 fields.
10405 (process_imported_unit_die): Skip import of c++ CUs.
10406
771dd3a8
TT
104072020-03-16 Tom Tromey <tom@tromey.com>
10408
10409 * p-valprint.c (pascal_object_print_value): Initialize
10410 base_value.
10411
817a7585
AK
104122020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10413 Shahab Vahedi <shahab@synopsys.com>
10414
10415 * Makefile.in: Add arch/arc.o
10416 * configure.tgt: Likewise.
10417 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10418 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10419 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10420 * arc-tdep.h (arc_read_description): Add proto type.
10421 * arch/arc.c: New file.
10422 * arch/arc.h: Likewise.
10423 * features/Makefile: Replace old target descriptions with new.
10424 * features/arc-arcompact.c: Remove.
10425 * features/arc-arcompact.xml: Likewise.
10426 * features/arc-v2.c: Likewise
10427 * features/arc-v2.xml: Likewise
10428 * features/arc/aux-arcompact.xml: New file.
10429 * features/arc/aux-v2.xml: Likewise.
10430 * features/arc/core-arcompact.xml: Likewise.
10431 * features/arc/core-v2.xml: Likewise.
10432 * features/arc/aux-arcompact.c: Generate.
10433 * features/arc/aux-v2.c: Likewise.
10434 * features/arc/core-arcompact.c: Likewise.
10435 * features/arc/core-v2.c: Likewise.
10436 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10437
67430cd0
TT
104382020-03-16 Tom Tromey <tromey@adacore.com>
10439
10440 PR gdb/25663:
10441 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10442 putting value into bcache.
10443
30efb6c7
SM
104442020-03-16 Simon Marchi <simon.marchi@efficios.com>
10445
10446 PR gdb/21500
10447 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10448 to...
10449 (amd64_windows_init_abi_common): ... this. Don't set size of
10450 long type.
10451 (amd64_windows_init_abi): New function.
10452 (amd64_cygwin_init_abi): New function.
10453 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10454 the Cygwin OS ABI.
10455 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10456 comment.
10457
8db52437
SM
104582020-03-16 Simon Marchi <simon.marchi@efficios.com>
10459
10460 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10461 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10462 (pe_import_directory_entry): New struct type.
10463 (is_linked_with_cygwin_dll): New function.
10464 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10465 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10466 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10467
5982a56a
SM
104682020-03-16 Simon Marchi <simon.marchi@efficios.com>
10469
10470 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10471 i386_cygwin_core_osabi_sniffer.
10472
7a1998df
SM
104732020-03-16 Simon Marchi <simon.marchi@efficios.com>
10474
10475 * i386-cygwin-tdep.c: Rename to...
10476 * i386-windows-tdep.c: ... this.
10477 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10478 i386-windows-tdep.c.
10479 * configure.tgt: Likewise.
10480
053205cc
SM
104812020-03-16 Simon Marchi <simon.marchi@efficios.com>
10482
10483 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10484 * osabi.c (gdb_osabi_names): Add "Windows".
10485 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10486 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10487 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10488 i386_cygwin_osabi_sniffer.
10489 (_initialize_i386_cygwin_tdep): Register OS ABI
10490 GDB_OSABI_WINDOWS for i386.
10491 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10492 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10493 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10494 for x86-64.
10495 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10496 when the target matches '*-*-mingw*'.
10497
fe4b2ee6
SM
104982020-03-16 Simon Marchi <simon.marchi@efficios.com>
10499
10500 * defs.h (enum gdb_osabi): Move to...
10501 * osabi.h (enum gdb_osabi): ... here.
10502 * gdbarch.sh: Include osabi.h in gdbarch.h.
10503 * gdbarch.h: Re-generate.
10504
cb9b645d
SM
105052020-03-16 Simon Marchi <simon.marchi@efficios.com>
10506
10507 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10508 function.
10509 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10510
3293bbaf
TT
105112020-03-14 Tom Tromey <tom@tromey.com>
10512
10513 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10514 for C++.
10515 (c_type_print_modifier): Likewise. Add "language" parameter.
10516 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10517 (c_type_print_base_1): Update.
10518 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10519 constants.
10520 * type-stack.c (type_stack::insert): Handle tp_atomic and
10521 tp_restrict.
10522 (type_stack::follow_type_instance_flags): Likewise.
10523 (type_stack::follow_types): Likewise. Merge type-following code.
10524 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10525 (space_identifier, cv_with_space_id)
10526 (const_or_volatile_or_space_identifier_noopt)
10527 (const_or_volatile_or_space_identifier): Remove.
10528 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10529 rules.
10530 (ptr_operator, typebase): Update.
10531 (enum token_flag) <FLAG_C>: New constant.
10532 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10533 "_Atomic".
10534 (lex_one_token): Handle FLAG_C.
10535
154151a6
KR
105362020-03-14 Kamil Rytarowski <n54@gmx.com>
10537
10538 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10539 it to the ptrace call.
10540 * m68k-bsd-nat.c (store_registers): Likewise.
10541
bc107784
KR
105422020-03-14 Kamil Rytarowski <n54@gmx.com>
10543
10544 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10545 gdb_byte *.
10546 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10547 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10548 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10549
01a80117
KR
105502020-03-14 Kamil Rytarowski <n54@gmx.com>
10551
10552 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10553 nbsd_nat_target instead of inf_ptrace_target.
10554 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10555 nbsd_nat_target.
10556
f90280ca
KR
105572020-03-14 Kamil Rytarowski <n54@gmx.com>
10558
10559 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10560 register_t.
10561
6def66f1
KR
105622020-03-14 Kamil Rytarowski <n54@gmx.com>
10563
10564 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10565 it to the ptrace call.
10566 * alpha-bsd-nat.c (store_registers): Likewise.
10567
66eaca97
KR
105682020-03-14 Kamil Rytarowski <n54@gmx.com>
10569
10570 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10571 includes.
10572 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10573 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10574 fill_fpregset): Likewise.
10575
4fed520b
KR
105762020-03-14 Kamil Rytarowski <n54@gmx.com>
10577
10578 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10579 nbsd_nat_target instead of inf_ptrace_target.
10580 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10581 nbsd_nat_target.
10582
2190cf06
KR
105832020-03-14 Kamil Rytarowski <n54@gmx.com>
10584
10585 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10586 register_t.
10587
75c56d3d
KR
105882020-03-14 Kamil Rytarowski <n54@gmx.com>
10589
10590 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10591 it to the ptrace call.
10592 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10593 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10594 * arm-nbsd-nat.c (store_register): Likewise.
10595 * arm-nbsd-nat.c (store_regs): Likewise.
10596 * arm-nbsd-nat.c (store_fp_register): Likewise.
10597 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10598
6018d381
KR
105992020-03-14 Kamil Rytarowski <n54@gmx.com>
10600
10601 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10602 nbsd_nat_target instead of inf_ptrace_target.
10603 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10604 nbsd_nat_target.
10605
013f99f0
KR
106062020-03-14 Kamil Rytarowski <n54@gmx.com>
10607
10608 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10609 it to the ptrace call.
10610 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10611
12753073
KR
106122020-03-14 Kamil Rytarowski <n54@gmx.com>
10613
6227b330
KR
10614 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10615 it to the ptrace call.
10616 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10617
106182020-03-14 Kamil Rytarowski <n54@gmx.com>
10619
10620 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10621 gdb_byte *.
12753073
KR
10622 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10623
d5be5fa4
KR
106242020-03-14 Kamil Rytarowski <n54@gmx.com>
10625
10626 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10627 instead of inf_ptrace_target.
10628 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10629 nbsd_nat_target.
10630
8110f842
KR
106312020-03-14 Kamil Rytarowski <n54@gmx.com>
10632
10633 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10634 register_t.
10635
52feded7
KR
106362020-03-14 Kamil Rytarowski <n54@gmx.com>
10637
10638 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10639 register_t.
10640
25567eee
KR
106412020-03-14 Kamil Rytarowski <n54@gmx.com>
10642
10643 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10644 register_t.
10645
426a9c18
TT
106462020-03-13 Tom Tromey <tom@tromey.com>
10647
10648 * value.h (val_print): Don't declare.
10649 * valprint.h (val_print_array_elements)
10650 (val_print_scalar_formatted, generic_val_print): Don't declare.
10651 * valprint.c (generic_val_print_array): Take a struct value.
10652 (generic_val_print_ptr, generic_val_print_memberptr)
10653 (generic_val_print_bool, generic_val_print_int)
10654 (generic_val_print_char, generic_val_print_complex)
10655 (generic_val_print): Remove.
10656 (generic_value_print): Update.
10657 (do_val_print): Remove unused parameters. Don't call
10658 la_val_print.
10659 (val_print): Remove.
10660 (common_val_print): Update. Don't call value_check_printable.
10661 (val_print_scalar_formatted, val_print_array_elements): Remove.
10662 * rust-lang.c (rust_val_print): Remove.
10663 (rust_language_defn): Update.
10664 * p-valprint.c (pascal_val_print): Remove.
10665 (pascal_value_print_inner): Update.
10666 (pascal_object_print_val_fields, pascal_object_print_val):
10667 Remove.
10668 (pascal_object_print_static_field): Update.
10669 * p-lang.h (pascal_val_print): Don't declare.
10670 * p-lang.c (pascal_language_defn): Update.
10671 * opencl-lang.c (opencl_language_defn): Update.
10672 * objc-lang.c (objc_language_defn): Update.
10673 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10674 * m2-lang.h (m2_val_print): Don't declare.
10675 * m2-lang.c (m2_language_defn): Update.
10676 * language.h (struct language_defn) <la_val_print>: Remove.
10677 * language.c (unk_lang_value_print_inner): Rename. Change
10678 argument types.
10679 (unknown_language_defn, auto_language_defn): Update.
10680 * go-valprint.c (go_val_print): Remove.
10681 * go-lang.h (go_val_print): Don't declare.
10682 * go-lang.c (go_language_defn): Update.
10683 * f-valprint.c (f_val_print): Remove.
10684 * f-lang.h (f_value_print): Don't declare.
10685 * f-lang.c (f_language_defn): Update.
10686 * d-valprint.c (d_val_print): Remove.
10687 * d-lang.h (d_value_print): Don't declare.
10688 * d-lang.c (d_language_defn): Update.
10689 * cp-valprint.c (cp_print_value_fields)
10690 (cp_print_value_fields_rtti, cp_print_value): Remove.
10691 (cp_print_static_field): Update.
10692 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10693 (c_val_print_struct, c_val_print_union, c_val_print_int)
10694 (c_val_print_memberptr, c_val_print): Remove.
10695 * c-lang.h (c_val_print_array, cp_print_value_fields)
10696 (cp_print_value_fields_rtti): Don't declare.
10697 * c-lang.c (c_language_defn, cplus_language_defn)
10698 (asm_language_defn, minimal_language_defn): Update.
10699 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10700 (ada_val_print_enum): Take a struct value.
10701 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10702 (ada_val_print): Remove.
10703 (ada_value_print_1): Update.
10704 (printable_val_type): Remove.
10705 * ada-lang.h (ada_val_print): Don't declare.
10706 * ada-lang.c (ada_language_defn): Update.
10707
42331a1e
TT
107082020-03-13 Tom Tromey <tom@tromey.com>
10709
10710 * valprint.c (do_val_print): Update.
10711 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10712 a struct value.
10713 (value_to_value_object_no_release): Declare.
10714 * python/py-value.c (value_to_value_object_no_release): New
10715 function.
10716 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10717 struct value.
10718 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10719 function.
10720 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10721 a struct value.
10722 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10723 Declare.
10724 (gdbscm_apply_val_pretty_printer): Take a struct value.
10725 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10726 value.
10727 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10728 value.
10729 * extension-priv.h (struct extension_language_ops)
10730 <apply_val_pretty_printer>: Take a struct value.
10731 * cp-valprint.c (cp_print_value): Create a struct value.
10732 (cp_print_value): Update.
10733
3a916a97
TT
107342020-03-13 Tom Tromey <tom@tromey.com>
10735
10736 * ada-valprint.c (print_field_values): Call common_val_print.
10737
b59eac37
TT
107382020-03-13 Tom Tromey <tom@tromey.com>
10739
10740 * ada-valprint.c (val_print_packed_array_elements): Remove
10741 bitoffset and val parameters. Call common_val_print.
10742 (ada_val_print_string): Remove offset, address, and original_value
10743 parameters.
10744 (ada_val_print_array): Update.
10745 (ada_value_print_array): New function.
10746 (ada_value_print_1): Call it.
10747
03371129
TT
107482020-03-13 Tom Tromey <tom@tromey.com>
10749
10750 * ada-valprint.c (ada_value_print): Use common_val_print.
10751
2e088f8b
TT
107522020-03-13 Tom Tromey <tom@tromey.com>
10753
10754 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10755
39ef85a8
TT
107562020-03-13 Tom Tromey <tom@tromey.com>
10757
10758 * ada-valprint.c (ada_value_print_num): New function.
10759 (ada_value_print_1): Use it.
10760
b9fa6e07
TT
107612020-03-13 Tom Tromey <tom@tromey.com>
10762
10763 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10764
416595d6
TT
107652020-03-13 Tom Tromey <tom@tromey.com>
10766
10767 * ada-valprint.c (ada_value_print_ptr): New function.
10768 (ada_value_print_1): Use it.
10769
5b5e15ec
TT
107702020-03-13 Tom Tromey <tom@tromey.com>
10771
10772 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10773 call common_val_print.
10774 (ada_val_print_1): Update.
10775 (ada_value_print_1): New function.
10776 (ada_value_print_inner): Rewrite.
10777
fbf54e75
TT
107782020-03-13 Tom Tromey <tom@tromey.com>
10779
10780 * cp-valprint.c (cp_print_value_fields): Update.
10781 (cp_print_value): New function.
10782
64b653ca
TT
107832020-03-13 Tom Tromey <tom@tromey.com>
10784
10785 * m2-valprint.c (m2_value_print_inner): Use
10786 cp_print_value_fields.
10787 * cp-valprint.c (cp_print_value_fields): New function.
10788 * c-valprint.c (c_value_print_struct): New function.
10789 (c_value_print_inner): Use c_value_print_struct.
10790 * c-lang.h (cp_print_value_fields): Declare.
10791
6999f067
TT
107922020-03-13 Tom Tromey <tom@tromey.com>
10793
10794 * c-valprint.c (c_value_print_array): New function.
10795 (c_value_print_inner): Use it.
10796
ce80b8bd
TT
107972020-03-13 Tom Tromey <tom@tromey.com>
10798
10799 * c-valprint.c (c_value_print_memberptr): New function.
10800 (c_value_print_inner): Use it.
10801
2faac269
TT
108022020-03-13 Tom Tromey <tom@tromey.com>
10803
10804 * c-valprint.c (c_value_print_int): New function.
10805 (c_value_print_inner): Use it.
10806
da3e2c29
TT
108072020-03-13 Tom Tromey <tom@tromey.com>
10808
10809 * c-valprint.c (c_value_print_ptr): New function.
10810 (c_value_print_inner): Use it.
10811
50836231
TT
108122020-03-13 Tom Tromey <tom@tromey.com>
10813
10814 * c-valprint.c (c_value_print_inner): Rewrite.
10815
4f412b6e
TT
108162020-03-13 Tom Tromey <tom@tromey.com>
10817
10818 * valprint.c (generic_value_print_complex): New function.
10819 (generic_value_print): Use it.
10820
f5354008
TT
108212020-03-13 Tom Tromey <tom@tromey.com>
10822
10823 * valprint.c (generic_val_print_float): Don't call
10824 val_print_scalar_formatted.
10825 (generic_val_print, generic_value_print): Update.
10826
3eec3b05
TT
108272020-03-13 Tom Tromey <tom@tromey.com>
10828
10829 * valprint.c (generic_value_print_char): New function
10830 (generic_value_print): Use it.
10831
fdddfccb
TT
108322020-03-13 Tom Tromey <tom@tromey.com>
10833
10834 * valprint.c (generic_value_print_int): New function.
10835 (generic_value_print): Use it.
10836
6dde7521
TT
108372020-03-13 Tom Tromey <tom@tromey.com>
10838
10839 * valprint.c (generic_value_print_bool): New function.
10840 (generic_value_print): Use it.
10841
4112d2e6
TT
108422020-03-13 Tom Tromey <tom@tromey.com>
10843
10844 * valprint.c (generic_val_print_func): Simplify.
10845 (generic_val_print, generic_value_print): Update.
10846
65786af6
TT
108472020-03-13 Tom Tromey <tom@tromey.com>
10848
10849 * valprint.c (generic_val_print_flags): Remove.
10850 (generic_val_print, generic_value_print): Update.
10851 (val_print_type_code_flags): Add original_value parameter.
10852
40f3ce18
TT
108532020-03-13 Tom Tromey <tom@tromey.com>
10854
10855 * valprint.c (generic_val_print): Update.
10856 (generic_value_print): Update.
10857 * valprint.c (generic_val_print_enum): Don't call
10858 val_print_scalar_formatted.
10859
2a5b130b
TT
108602020-03-13 Tom Tromey <tom@tromey.com>
10861
10862 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10863 * valprint.c (generic_value_print_ptr): New function.
10864
abc66ce9
TT
108652020-03-13 Tom Tromey <tom@tromey.com>
10866
10867 * valprint.c (generic_value_print): Rewrite.
10868
07a32858
TT
108692020-03-13 Tom Tromey <tom@tromey.com>
10870
10871 * p-valprint.c (pascal_object_print_value_fields)
10872 (pascal_object_print_value): New functions.
10873
64d64d3a
TT
108742020-03-13 Tom Tromey <tom@tromey.com>
10875
10876 * p-valprint.c (pascal_value_print_inner): Rewrite.
10877
6a95a1f5
TT
108782020-03-13 Tom Tromey <tom@tromey.com>
10879
10880 * f-valprint.c (f_value_print_innner): Rewrite.
10881
59fcdac6
TT
108822020-03-13 Tom Tromey <tom@tromey.com>
10883
10884 * m2-valprint.c (m2_print_unbounded_array): New overload.
10885 (m2_print_unbounded_array): Update.
10886 (m2_print_array_contents): Take a struct value.
10887 (m2_value_print_inner): Rewrite.
10888
d133c3e1
TT
108892020-03-13 Tom Tromey <tom@tromey.com>
10890
10891 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10892 (d_value_print_inner): New function.
10893 * d-lang.h (d_value_print_inner): Declare.
10894 * d-lang.c (d_language_defn): Use d_value_print_inner.
10895
23b0f06b
TT
108962020-03-13 Tom Tromey <tom@tromey.com>
10897
10898 * go-valprint.c (go_value_print_inner): New function.
10899 * go-lang.h (go_value_print_inner): Declare.
10900 * go-lang.c (go_language_defn): Use go_value_print_inner.
10901
5f56f7cb
TT
109022020-03-13 Tom Tromey <tom@tromey.com>
10903
10904 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10905 API.
10906 (rust_val_print): Rewrite.
10907 (rust_value_print_inner): New function, from rust_val_print.
10908 (rust_language_defn): Use rust_value_print_inner.
10909
26792ee0
TT
109102020-03-13 Tom Tromey <tom@tromey.com>
10911
10912 * ada-valprint.c (ada_value_print_inner): New function.
10913 * ada-lang.h (ada_value_print_inner): Declare.
10914 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10915
24051bbe
TT
109162020-03-13 Tom Tromey <tom@tromey.com>
10917
10918 * f-valprint.c (f_value_print_innner): New function.
10919 * f-lang.h (f_value_print_innner): Declare.
10920 * f-lang.c (f_language_defn): Use f_value_print_innner.
10921
c0941be6
TT
109222020-03-13 Tom Tromey <tom@tromey.com>
10923
10924 * p-valprint.c (pascal_value_print_inner): New function.
10925 * p-lang.h (pascal_value_print_inner): Declare.
10926 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10927
62c4663d
TT
109282020-03-13 Tom Tromey <tom@tromey.com>
10929
10930 * m2-valprint.c (m2_value_print_inner): New function.
10931 * m2-lang.h (m2_value_print_inner): Declare.
10932 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10933
62182190
TT
109342020-03-13 Tom Tromey <tom@tromey.com>
10935
10936 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10937 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10938 * c-valprint.c (c_value_print_inner): New function.
10939 * c-lang.h (c_value_print_inner): Declare.
10940 * c-lang.c (c_language_defn, cplus_language_defn)
10941 (asm_language_defn, minimal_language_defn): Use
10942 c_value_print_inner.
10943
1e592a8a
TT
109442020-03-13 Tom Tromey <tom@tromey.com>
10945
10946 * p-valprint.c (pascal_object_print_value_fields): Now static.
10947 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10948
7fe471e9
TT
109492020-03-13 Tom Tromey <tom@tromey.com>
10950
10951 * c-valprint.c (c_val_print_array): Simplify.
10952
d121c6ce
TT
109532020-03-13 Tom Tromey <tom@tromey.com>
10954
10955 * valprint.c (value_print_array_elements): New function.
10956 * valprint.h (value_print_array_elements): Declare.
10957
4dba70ee
TT
109582020-03-13 Tom Tromey <tom@tromey.com>
10959
10960 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10961 * mips-tdep.c (mips_print_register): Use
10962 value_print_scalar_formatted.
10963
4f9ae810
TT
109642020-03-13 Tom Tromey <tom@tromey.com>
10965
10966 * valprint.h (value_print_scalar_formatted): Declare.
10967 * valprint.c (value_print_scalar_formatted): New function.
10968
156bfec9
TT
109692020-03-13 Tom Tromey <tom@tromey.com>
10970
10971 * valprint.h (generic_value_print): Declare.
10972 * valprint.c (generic_value_print): New function.
10973
2b4e573d
TT
109742020-03-13 Tom Tromey <tom@tromey.com>
10975
10976 * valprint.c (do_val_print): Call la_value_print_inner, if
10977 available.
10978 * rust-lang.c (rust_language_defn): Update.
10979 * p-lang.c (pascal_language_defn): Update.
10980 * opencl-lang.c (opencl_language_defn): Update.
10981 * objc-lang.c (objc_language_defn): Update.
10982 * m2-lang.c (m2_language_defn): Update.
10983 * language.h (struct language_defn) <la_value_print_inner>: New
10984 member.
10985 * language.c (unknown_language_defn, auto_language_defn): Update.
10986 * go-lang.c (go_language_defn): Update.
10987 * f-lang.c (f_language_defn): Update.
10988 * d-lang.c (d_language_defn): Update.
10989 * c-lang.c (c_language_defn, cplus_language_defn)
10990 (asm_language_defn, minimal_language_defn): Update.
10991 * ada-lang.c (ada_language_defn): Update.
10992
a1f6a07c
TT
109932020-03-13 Tom Tromey <tom@tromey.com>
10994
10995 * c-valprint.c (c_value_print): Use common_val_print.
10996
410cf315
TT
109972020-03-13 Tom Tromey <tom@tromey.com>
10998
10999 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11000
72a45c93
TT
110012020-03-13 Tom Tromey <tom@tromey.com>
11002
11003 * f-valprint.c (f77_print_array_1, f_val_print): Use
11004 common_val_print.
11005
040f66bd
TT
110062020-03-13 Tom Tromey <tom@tromey.com>
11007
11008 * riscv-tdep.c (riscv_print_one_register_info): Use
11009 common_val_print.
11010
a6e05a6c
TT
110112020-03-13 Tom Tromey <tom@tromey.com>
11012
11013 * mi/mi-main.c (output_register): Use common_val_print.
11014
3444c526
TT
110152020-03-13 Tom Tromey <tom@tromey.com>
11016
11017 * infcmd.c (default_print_one_register_info): Use
11018 common_val_print.
11019
c2a44efe
TT
110202020-03-13 Tom Tromey <tom@tromey.com>
11021
11022 * valprint.h (common_val_print_checked): Declare.
11023 * valprint.c (common_val_print_checked): New function.
11024 * stack.c (print_frame_arg): Use common_val_print_checked.
11025
b0c26e99
TT
110262020-03-13 Tom Tromey <tom@tromey.com>
11027
11028 * valprint.c (do_val_print): New function, from val_print.
11029 (val_print): Use do_val_print.
11030 (common_val_print): Use do_val_print.
11031
ce3acbe9
TT
110322020-03-13 Tom Tromey <tom@tromey.com>
11033
11034 * valprint.c (value_print): Use scoped_value_mark.
11035
96c7f873
TV
110362020-03-13 Tom de Vries <tdevries@suse.de>
11037
11038 PR symtab/25646
11039 * psymtab.c (partial_symtab::partial_symtab): Don't set
11040 globals_offset and statics_offset. Push element onto
11041 current_global_psymbols and current_static_psymbols stacks.
11042 (concat): New function.
11043 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11044 element from current_global_psymbols and current_static_psymbols
11045 stacks. Concat popped elements to global_psymbols and
11046 static_symbols.
11047 (add_psymbol_to_list): Use current_global_psymbols and
11048 current_static_psymbols stacks.
11049 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11050 current_static_psymbols fields.
11051
6ba0a321
CB
110522020-03-12 Christian Biesinger <cbiesinger@google.com>
11053
11054 * corelow.c (sniff_core_bfd): Remove.
11055 (class core_target) <m_core_vec>: Remove.
11056 (core_target::core_target): Update.
11057 (core_file_fns): Remove.
11058 (deprecated_add_core_fns): Remove.
11059 (default_core_sniffer): Remove.
11060 (sniff_core_bfd): Remove.
11061 (default_check_format): Remove.
11062 (gdb_check_format): Remove.
11063 (core_target_open): Update.
11064 (core_target::get_core_register_section): Update.
11065 (get_core_registers_cb): Update.
11066 (core_target::fetch_registers): Update.
11067 * gdbcore.h (struct core_fns): Remove.
11068 (deprecated_add_core_fns): Remove.
11069 (default_core_sniffer): Remove.
11070 (default_check_format): Remove.
11071
227031b2
TT
110722020-03-12 Tom Tromey <tom@tromey.com>
11073
11074 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11075 CORE_ADDR.
11076 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11077
53807e9f
TT
110782020-03-12 Tom Tromey <tom@tromey.com>
11079
11080 * remote.c (remote_target::download_tracepoint)
11081 (remote_target::enable_tracepoint)
11082 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11083 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11084 sprintf_vma.
11085
64f25102
TT
110862020-03-12 Tom Tromey <tom@tromey.com>
11087
11088 * symfile-mem.c: Update CORE_ADDR size assert.
11089
272cd5a3
SM
110902020-03-12 Simon Marchi <simon.marchi@efficios.com>
11091
11092 * selftest.m4: Move to gdbsupport/.
11093 * acinclude.m4: Update path to selftest.m4.
11094
74cd3f9d
SM
110952020-03-12 Simon Marchi <simon.marchi@efficios.com>
11096
11097 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11098 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11099 gdbarch-selfselftests.c and selftest-arch.c.
11100 (SUBDIR_UNITTESTS_OBS): Rename to...
11101 (SELFTESTS_OBS): ... this.
11102 (COMMON_SFILES): Remove disasm-selftests.c and
11103 gdbarch-selftests.c.
11104 * configure.ac: Don't add selftest-arch.{c,o} to
11105 CONFIG_{SRCS,OBS}.
11106 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11107 preprocessor conditions.
11108
db6878ac
SM
111092020-03-12 Simon Marchi <simon.marchi@efficios.com>
11110
11111 * configure.ac: Don't source bfd/development.sh.
11112 * selftest.m4: Modify comment.
11113 * configure: Re-generate.
11114
4d696a5c
SM
111152020-03-12 Simon Marchi <simon.marchi@efficios.com>
11116
11117 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11118 not "true" or "false".
11119 * configure: Re-generate.
11120
8dd8e1c7
CB
111212020-03-12 Christian Biesinger <cbiesinger@google.com>
11122
11123 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11124 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11125 renamed to arm_nbsd_supply_gregset.
11126 (fetch_register): Update to call arm_nbsd_supply_gregset.
11127 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11128 (arm_netbsd_nat_target::fetch_registers): Update.
11129 (fetch_elfcore_registers): Removed.
11130 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11131 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11132 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11133 not require NetBSD system headers.
11134 (arm_nbsd_regset): New struct.
11135 (arm_nbsd_iterate_over_regset_sections): New function.
11136 (arm_netbsd_init_abi_common): Updated to call
11137 set_gdbarch_iterate_over_regset_sections.
11138 * arm-nbsd-tdep.h: New file.
11139
dd69bf7a
KB
111402020-03-11 Kevin Buettner <kevinb@redhat.com>
11141
11142 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11143 recursion.
11144
a0761e34
SM
111452020-03-11 Simon Marchi <simon.marchi@efficios.com>
11146
11147 * configure: Re-generate.
11148
e7a82140
TT
111492020-03-11 Tom Tromey <tromey@adacore.com>
11150
11151 * ada-typeprint.c (print_choices): Fix comment.
11152
dcc050c8
AB
111532020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11154
11155 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11156 previous item in the list, when the list has no items.
11157
1c33af77
TV
111582020-03-11 Tom de Vries <tdevries@suse.de>
11159
11160 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11161 PROP_LOCLIST handling code.
11162
8c95582d
AB
111632020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11164
11165 * buildsym-legacy.c (record_line): Pass extra parameter to
11166 record_line.
11167 * buildsym.c (buildsym_compunit::record_line): Take an extra
11168 parameter, reduce duplication in the line table, and record the
11169 is_stmt flag in the line table.
11170 * buildsym.h (buildsym_compunit::record_line): Add extra
11171 parameter.
11172 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11173 non-statement lines.
11174 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11175 this to the symtab builder.
11176 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11177 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11178 through to dwarf_record_line_1.
11179 * infrun.c (process_event_stop_test): When stepping, don't stop at
11180 a non-statement instruction, and only refresh the step info when
11181 we land in the middle of a line's range. Also add an extra
11182 comment.
11183 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11184 field.
11185 * record-btrace.c (btrace_find_line_range): Only record lines
11186 marked as is-statement.
11187 * stack.c (frame_show_address): Show the frame address if we are
11188 in a non-statement sal.
11189 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11190 (maintenance_print_one_line_table): Print a header for the is_stmt
11191 column, and include is_stmt information in the output.
11192 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11193 preference to non-statements.
11194 (find_pcs_for_symtab_line): Prefer is-statement entries.
11195 (find_line_common): Likewise.
11196 * symtab.h (struct linetable_entry): Add is_stmt field.
11197 (struct symtab_and_line): Likewise.
11198 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11199 arranging the line table.
11200
e4003a34
TV
112012020-03-07 Tom de Vries <tdevries@suse.de>
11202
11203 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11204 DIE.
11205
e8932576
TT
112062020-03-07 Tom Tromey <tom@tromey.com>
11207
11208 * valops.c (value_literal_complex): Remove obsolete comment.
11209 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11210 comment.
11211
29734269
SM
112122020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11213
11214 * infrun.h: Forward-declare thread_info.
11215 (set_step_info): Add thread_info parameter, add doc.
11216 * infrun.c (set_step_info): Add thread_info parameter, move doc
11217 to header.
11218 * infrun.c (process_event_stop_test): Pass thread to
11219 set_step_info call.
11220 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11221 set_step_info.
11222 (prepare_one_step): Add thread_info parameter, pass it to
11223 set_step_frame and prepare_one_step (recursive) call.
11224 (step_1): Pass thread to prepare_one_step call.
11225 (step_command_fsm::should_stop): Pass thread to
11226 prepare_one_step.
11227 (until_next_fsm): Pass thread to set_step_frame call.
11228 (finish_command): Pass thread to set_step_info call.
11229
b7d64b29
HD
112302020-03-06 Hannes Domani <ssbssa@yahoo.de>
11231
11232 * windows-tdep.c (windows_solib_create_inferior_hook):
11233 Check if inferior is running.
11234
09f2921c
TV
112352020-03-06 Tom de Vries <tdevries@suse.de>
11236
11237 * NEWS: Fix "the the".
11238 * ctfread.c: Same.
11239
fd760e79
TV
112402020-03-06 Tom de Vries <tdevries@suse.de>
11241
11242 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11243
20ea4a60
AB
112442020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11245
11246 * .dir-locals.el: Add a comment referencing the other copies of
11247 this file.
11248
0afbabf0
JB
112492020-03-05 John Baldwin <jhb@FreeBSD.org>
11250
11251 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11252 psargs.
11253
842806cb
TBA
112542020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11255
11256 * .gitattributes: New file.
11257
be1e3d3e
TT
112582020-03-04 Tom Tromey <tom@tromey.com>
11259
11260 * symmisc.c (print_symbol_bcache_statistics)
11261 (print_objfile_statistics): Update.
11262 * symfile.c (allocate_symtab): Use intern.
11263 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11264 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11265 macro_cache>: Remove.
11266 <string_cache>: New member.
11267 (struct objfile) <intern>: New methods.
11268 * elfread.c (elf_symtab_read): Use intern.
11269 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11270 (dwarf2_compute_name, dwarf2_physname)
11271 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11272 names.
11273 (guess_partial_die_structure_name): Update.
11274 (partial_die_info::fixup): Intern name.
11275 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11276 name.
11277 (dwarf2_name): Intern name. Update.
11278 * buildsym.c (buildsym_compunit::get_macro_table): Use
11279 string_cache.
11280
4e7625fd
TT
112812020-03-04 Tom Tromey <tom@tromey.com>
11282
11283 * jit.c (bfd_open_from_target_memory): Make "target" const.
11284 * corefile.c (gnutarget): Now const.
11285 * gdbcore.h (gnutarget): Now const.
11286
46f9f931
HD
112872020-03-04 Hannes Domani <ssbssa@yahoo.de>
11288
11289 * NEWS: Mention support for WOW64 processes.
11290 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11291 (amd64_windows_segment_register_p): Remove static.
11292 (_initialize_amd64_windows_nat): Update.
11293 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11294 * i386-windows-nat.c (context_offset): Update.
11295 (i386_mappings): Rename and remove static.
11296 (i386_windows_segment_register_p): Remove static.
11297 (_initialize_i386_windows_nat): Update.
11298 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11299 (STATUS_WX86_SINGLE_STEP): New macro.
11300 (EnumProcessModulesEx): New macro.
11301 (Wow64SuspendThread): New macro.
11302 (Wow64GetThreadContext): New macro.
11303 (Wow64SetThreadContext): New macro.
11304 (Wow64GetThreadSelectorEntry): New macro.
11305 (windows_set_context_register_offsets): Add static.
11306 (windows_set_segment_register_p): Likewise.
11307 (windows_add_thread): Adapt for WOW64 processes.
11308 (windows_fetch_one_register): Likewise.
11309 (windows_nat_target::fetch_registers): Likewise.
11310 (windows_store_one_register): Likewise.
11311 (display_selector): Likewise.
11312 (display_selectors): Likewise.
11313 (handle_exception): Likewise.
11314 (windows_continue): Likewise.
11315 (windows_nat_target::resume): Likewise.
11316 (windows_add_all_dlls): Likewise.
11317 (do_initial_windows_stuff): Likewise.
11318 (windows_nat_target::attach): Likewise.
11319 (windows_get_exec_module_filename): Likewise.
11320 (windows_nat_target::create_inferior): Likewise.
11321 (windows_xfer_siginfo): Likewise.
11322 (_initialize_loadable): Initialize Wow64SuspendThread,
11323 Wow64GetThreadContext, Wow64SetThreadContext,
11324 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11325 * windows-nat.h (windows_set_context_register_offsets):
11326 Remove declaration.
11327 (windows_set_segment_register_p): Likewise.
11328 (i386_windows_segment_register_p): Add declaration.
11329 (amd64_windows_segment_register_p): Likewise.
11330
440cf44e
LM
113312020-03-04 Luis Machado <luis.machado@linaro.org>
11332
11333 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11334 in "info registers" for AArch64/ARM.
11335
11336 The change caused "info registers" to not print GPR's.
11337
11338 gdb/ChangeLog:
11339
11340 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11341
11342 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11343 when reg->group is empty and reggroup is not.
11344
1009d92f
TT
113452020-03-03 Tom Tromey <tromey@adacore.com>
11346
11347 * dwarf2/frame.c (struct dwarf2_frame_cache)
11348 <checked_tailcall_bottom, entry_cfa_sp_offset,
11349 entry_cfa_sp_offset_p>: Remove members.
11350 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11351 (dwarf2_frame_prev_register): Don't call
11352 dwarf2_tailcall_sniffer_first.
11353 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11354 * frame-unwind.c (add_unwinder): New fuction.
11355 (frame_unwind_init): Use it. Add tailcall unwinder.
11356
5e5d66b6
AB
113572020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11358 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11359
11360 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11361 value should be printed as true.
11362
584cf46d
HD
113632020-03-03 Hannes Domani <ssbssa@yahoo.de>
11364
11365 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11366 (windows_init_abi): Set and use windows_so_ops.
11367
7b973adc
SDJ
113682020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11369
11370 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11371 when verifying if dealing with a convenience variable.
11372
bb7b70ab
LM
113732020-03-03 Luis Machado <luis.machado@linaro.org>
11374
11375 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11376
9822cb57
SM
113772020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11378
11379 * infrun.c (gdbarch_supports_displaced_stepping): New.
11380 (use_displaced_stepping): Break up conditions in smaller pieces.
11381 Use gdbarch_supports_displaced_stepping.
11382 (displaced_step_prepare_throw): Use
11383 gdbarch_supports_displaced_stepping.
11384
63e163f2
AB
113852020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11386
11387 * NEWS: Mention new behaviour of the history filename.
11388 * top.c (write_history_p): Add comment.
11389 (show_write_history_p): Add header comment, give a different
11390 message when history writing is on, but the history filename is
11391 empty.
11392 (history_filename): Add comment.
11393 (history_filename_empty): New function.
11394 (show_history_filename): Add header comment, give a different
11395 message when the filename is empty.
11396 (init_history): Compare history_filename against nullptr, and only
11397 read history if the filename is not empty.
11398 (set_history_filename): Add header comment, and only make
11399 non-empty filenames absolute.
11400 (init_main): Make the filename argument to 'set history filename'
11401 optional.
11402
81b86b97
CB
114032020-03-02 Christian Biesinger <cbiesinger@google.com>
11404
11405 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11406 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11407 (fetch_fp_register): Update.
11408 (fetch_fp_regs): Update.
11409 (store_fp_register): Update.
11410 (store_fp_regs): Update.
11411 (arm_netbsd_nat_target::read_description): New function.
11412 (fetch_elfcore_registers): Update.
11413
24ed6739
AB
114142020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11415
11416 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11417 general_thread if the stop reply is missing a thread-id.
11418 (remote_target::process_stop_reply): Use the first non-exited
11419 thread if the target didn't pass a thread-id.
11420 * infrun.c (do_target_wait): Move call to
11421 switch_to_inferior_no_thread to ....
11422 (do_target_wait_1): ... here.
11423
a84bb2a0
JT
114242020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11425
11426 * debuginfod-support.c: Include defs.h first.
11427
658dadf0
TV
114282020-02-28 Tom de Vries <tdevries@suse.de>
11429
11430 * symfile.c (set_initial_language): Use default language for lookup.
11431
4ebe4877
SM
114322020-02-28 Simon Marchi <simon.marchi@efficios.com>
11433
11434 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11435 reader variable, pass `this` to read_cutu_die_from_dwo.
11436
e5da1139
AM
114372020-02-27 Aaron Merey <amerey@redhat.com>
11438
11439 * source.c (open_source_file): Check for nullptr when computing
11440 srcpath.
11441
317f7127
TT
114422020-02-27 Tom Tromey <tromey@adacore.com>
11443
11444 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11445 member.
11446 (dwarf2_add_field): Don't update nfields.
11447 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11448
3104d9ee
AB
114492020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11450
11451 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11452 abs.
11453
b83470bf
TT
114542020-02-26 Tom Tromey <tom@tromey.com>
11455
11456 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11457 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11458 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11459 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11460 per_cu_data.
11461
edfe0a0c
TT
114622020-02-26 Tom Tromey <tom@tromey.com>
11463
11464 * dwarf2/index-write.c (psym_index_map): Change type.
11465 (add_address_entry_worker, write_one_signatured_type)
11466 (recursively_count_psymbols, recursively_write_psymbols)
11467 (class debug_names, psyms_seen_size, write_gdbindex)
11468 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11469
0d79cdc4
AM
114702020-02-26 Aaron Merey <amerey@redhat.com>
11471
11472 * Makefile.in: Handle optional debuginfod support.
11473 * NEWS: Update.
11474 * README: Add --with-debuginfod summary.
11475 * config.in: Regenerate.
11476 * configure: Regenerate.
11477 * configure.ac: Handle optional debuginfod support.
11478 * debuginfod-support.c: debuginfod helper functions.
11479 * debuginfod-support.h: Ditto.
11480 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11481 summary.
11482 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11483 when a dwz file cannot be found.
11484 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11485 debuginfo file cannot be found.
11486 * source.c (open_source_file): Query debuginfod servers when a
11487 source file cannot be found.
11488 * top.c (print_gdb_configuration): Include
11489 --{with,without}-debuginfod in the output.
11490
b65ce565
JG
114912020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11492
11493 * thread.c (thr_try_catch_cmd): Print thread name.
11494
d4c9a4f8
SM
114952020-02-26 Simon Marchi <simon.marchi@efficios.com>
11496
11497 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11498 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11499 dwarf2_fetch_die_type_sect_off): Move to...
11500 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11501 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11502 dwarf2_fetch_die_type_sect_off): ... here.
11503 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11504 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11505 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11506
0dce4280
TV
115072020-02-26 Tom de Vries <tdevries@suse.de>
11508
11509 PR gdb/25603
11510 * symfile.c (set_initial_language): Exit-early if
11511 language_mode == language_mode_manual.
11512
450a1bfc
SM
115132020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11514
11515 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11516 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11517 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11518
9e80cfa1
AB
115192020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11520
11521 * gdbtypes.c (create_array_type_with_stride): Handle negative
11522 array strides.
11523 * valarith.c (value_subscripted_rvalue): Likewise.
11524
09624f1f
LM
115252020-02-25 Luis Machado <luis.machado@linaro.org>
11526
11527 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11528
8cb5117c
SM
115292020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11530
11531 * loc.h (dwarf2_get_die_type): Move to...
11532 * read.h (dwarf2_get_die_type): ... here.
11533 * read.c (dwarf2_get_die_type): Move doc to header.
11534
c325c44e
JB
115352020-02-25 Joel Brobecker <brobecker@adacore.com>
11536
11537 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11538 'gnulib/Makefile.in' to the list.
11539
4ac93832
TT
115402020-02-24 Tom Tromey <tom@tromey.com>
11541
11542 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11543 Remove.
11544 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11545 XOBNEWVEC.
11546
197400e8
TT
115472020-02-24 Tom Tromey <tom@tromey.com>
11548
11549 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11550 New method.
11551 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11552 (dw2_do_instantiate_symtab, dw2_get_file_names)
11553 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11554
76935768
TT
115552020-02-24 Tom Tromey <tom@tromey.com>
11556
11557 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11558 make_scoped_restore.
11559 (dwarf2_psymtab::read_symtab): Don't clear
11560 reading_partial_symbols.
11561
a88ef40d
TV
115622020-02-24 Tom de Vries <tdevries@suse.de>
11563
11564 PR gdb/25592
11565 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11566
c9af6521
TV
115672020-02-24 Tom de Vries <tdevries@suse.de>
11568
11569 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11570 commands layout next/prev/regs.
11571
5707a07a
TT
115722020-02-22 Tom Tromey <tom@tromey.com>
11573
11574 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11575 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11576
3b0fb49e
TT
115772020-02-22 Tom Tromey <tom@tromey.com>
11578
11579 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11580
283be8bf
TT
115812020-02-22 Tom Tromey <tom@tromey.com>
11582
11583 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11584 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11585 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11586 * tui/tui.c (_initialize_tui): Add usage text.
11587
ca793b96
TT
115882020-02-22 Tom Tromey <tom@tromey.com>
11589
11590 * tui/tui-win.c (tui_set_focus_command)
11591 (tui_set_win_height_command): Use error_no_arg.
11592 (_initialize_tui_win): Update help text.
11593 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11594
432b5c40
TT
115952020-02-22 Tom Tromey <tom@tromey.com>
11596
11597 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11598 * tui/tui-disasm.h (struct tui_disasm_window)
11599 <display_start_addr>: Declare.
11600 * tui/tui-source.h (struct tui_source_window)
11601 <display_start_addr>: Declare.
11602 * tui/tui-winsource.h (struct tui_source_window_base)
11603 <show_source_line, display_start_addr>: New methods.
11604 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11605 Rename and move to protected section.
11606 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11607 (tui_source_window_base::do_erase_source_content): Update.
11608 (tui_source_window_base::show_source_line): Now a method.
11609 (tui_source_window_base::show_source_content)
11610 (tui_source_window_base::tui_source_window_base)
11611 (tui_source_window_base::rerender)
11612 (tui_source_window_base::refill)
11613 (tui_source_window_base::do_scroll_horizontal)
11614 (tui_source_window_base::set_is_exec_point_at)
11615 (tui_source_window_base::update_breakpoint_info)
11616 (tui_source_window_base::update_exec_info): Update.
11617 * tui/tui-source.c (tui_source_window::set_contents)
11618 (tui_source_window::showing_source_p)
11619 (tui_source_window::do_scroll_vertical)
11620 (tui_source_window::location_matches_p)
11621 (tui_source_window::line_is_displayed): Update.
11622 (tui_source_window::display_start_addr): New method.
11623 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11624 (tui_disasm_window::do_scroll_vertical)
11625 (tui_disasm_window::location_matches_p): Update.
11626 (tui_disasm_window::display_start_addr): New method.
11627
01b1af32
TT
116282020-02-22 Tom Tromey <tom@tromey.com>
11629
11630 * NEWS: Add entry for gdb.register_window_type.
11631 * tui/tui-layout.h (window_factory): New typedef.
11632 (tui_register_window): Declare.
11633 * tui/tui-layout.c (saved_tui_windows): New global.
11634 (tui_apply_current_layout): Use it.
11635 (tui_register_window): New function.
11636 * python/python.c (do_start_initialization): Call
11637 gdbpy_initialize_tui.
11638 (python_GdbMethods): Add "register_window_type" function.
11639 * python/python-internal.h (gdbpy_register_tui_window)
11640 (gdbpy_initialize_tui): Declare.
11641 * python/py-tui.c: New file.
11642 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11643
fc96d20b
TT
116442020-02-22 Tom Tromey <tom@tromey.com>
11645
11646 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11647
935c78c0
TT
116482020-02-22 Tom Tromey <tom@tromey.com>
11649
11650 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11651 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11652 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11653 (tui_set_win_focus_to): Move from tui-win.c.
11654
0240c8f1
TT
116552020-02-22 Tom Tromey <tom@tromey.com>
11656
11657 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11658 functions.
11659 (known_window_types): New global.
11660 (tui_get_window_by_name): Reimplement.
11661 (initialize_known_windows): New function.
11662 (validate_window_name): Rewrite.
11663 (_initialize_tui_layout): Call initialize_known_windows.
11664
fdb01f0c
TT
116652020-02-22 Tom Tromey <tom@tromey.com>
11666
11667 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11668 Remove constants.
11669 * tui/tui-winsource.h (struct tui_source_window_base)
11670 <tui_source_window_base>: Remove parameter.
11671 * tui/tui-winsource.c
11672 (tui_source_window_base::tui_source_window_base): Remove
11673 parameter.
11674 (tui_source_window_base::refill): Update.
11675 * tui/tui-stack.h (struct tui_locator_window)
11676 <tui_locator_window>: Update.
11677 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11678 Default the constructor.
11679 * tui/tui-regs.h (struct tui_data_item_window)
11680 <tui_data_item_window>: Default the constructor.
11681 (struct tui_data_window) <tui_data_window>: Likewise.
11682 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11683 Default the constructor.
11684 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11685 Default the constructor.
11686 <type>: Remove.
11687 (struct tui_win_info) <tui_win_info>: Default the constructor.
11688 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11689 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11690 Default the constructor.
11691
865a5aec
TT
116922020-02-22 Tom Tromey <tom@tromey.com>
11693
11694 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11695 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11696 * tui/tui-win.c (tui_resize_all): Don't call
11697 tui_delete_invisible_windows.
11698 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11699 done.
11700 (tui_set_layout): Update.
11701 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11702 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11703 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11704
e098d18c
TT
117052020-02-22 Tom Tromey <tom@tromey.com>
11706
11707 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11708 correctly.
11709
eb9c8874
TT
117102020-02-22 Tom Tromey <tom@tromey.com>
11711
11712 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11713
7eed1a8e
TT
117142020-02-22 Tom Tromey <tom@tromey.com>
11715
11716 * tui/tui-winsource.h (struct tui_source_window_iterator)
11717 <inner_iterator>: New etytypedef.
11718 <tui_source_window_iterator>: Take "end" parameter.
11719 <tui_source_window_iterator>: Take iterator.
11720 <operator*, advance>: Update.
11721 <m_iter>: Change type.
11722 <m_end>: New field.
11723 (struct tui_source_windows) <begin, end>: Update.
11724 * tui/tui-layout.c (tui_windows): New global.
11725 (tui_apply_current_layout): Clear tui_windows.
11726 (tui_layout_window::apply): Update tui_windows.
11727 * tui/tui-data.h (tui_windows): Declare.
11728 (all_tui_windows): Now inline function.
11729 (class tui_window_iterator, struct all_tui_windows): Remove.
11730
7c043ba6
TT
117312020-02-22 Tom Tromey <tom@tromey.com>
11732
11733 PR tui/17850:
11734 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11735 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11736 "height" argument.
11737 (class tui_layout_window) <get_sizes>: Likewise.
11738 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11739 argument.
11740 <get_sizes>: Add "height" argument.
11741 <m_vertical>: New field.
11742 * tui/tui-layout.c (tui_layout_split::clone): Update.
11743 (tui_layout_split::get_sizes): Add "height" argument.
11744 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11745 (tui_new_layout_command): Parse "-horizontal".
11746 (_initialize_tui_layout): Update help string.
11747 (tui_layout_split::specification): Add "-horizontal" when needed.
11748 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11749 argument.
11750 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11751 New methods.
11752
6bc56648
TT
117532020-02-22 Tom Tromey <tom@tromey.com>
11754
11755 * tui/tui-layout.h (enum tui_adjust_result): New.
11756 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11757 (class tui_layout_window) <adjust_size>: Return
11758 tui_adjust_result. Rewrite.
11759 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11760 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11761
c22fef7e
TT
117622020-02-22 Tom Tromey <tom@tromey.com>
11763
11764 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11765 parameter and return types.
11766 (class tui_layout_base) <specification>: Add "depth".
11767 (class tui_layout_window) <specification>: Add "depth".
11768 (class tui_layout_split) <specification>: Add "depth".
11769 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11770 and return types.
11771 (tui_new_layout_command): Parse sub-layouts.
11772 (_initialize_tui_layout): Update help string.
11773 (tui_layout_window::specification): Add "depth".
11774 (add_layout_command): Update.
11775
ee325b61
TT
117762020-02-22 Tom Tromey <tom@tromey.com>
11777
11778 * NEWS: Add "tui new-layout" item.
11779 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11780 Add new-layout command to help text.
11781 (validate_window_name): New function.
11782 (tui_new_layout_command): New function.
11783 (_initialize_tui_layout): Register "new-layout".
11784 (tui_layout_window::specification): New method.
11785 (tui_layout_window::specification): New method.
11786 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11787 method.
11788 (class tui_layout_window) <specification>: New method.
11789 (class tui_layout_split) <specification>: New method.
11790
416eb92d
TT
117912020-02-22 Tom Tromey <tom@tromey.com>
11792
11793 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11794 * tui/tui-win.c (window_name_completer): Update comment.
11795 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11796 Declare method.
11797 (class tui_layout_window) <replace_window>: Likewise.
11798 (class tui_layout_split) <replace_window>: Likewise.
11799 (tui_set_layout): Don't declare.
11800 (tui_set_initial_layout): Declare function.
11801 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11802 (asm_regs_layout): New globals.
11803 (tui_current_layout, show_layout): Remove.
11804 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11805 (find_layout, tui_apply_layout): New function.
11806 (layout_completer): Remove.
11807 (tui_next_layout): Reimplement.
11808 (tui_next_layout_command): New function.
11809 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11810 (tui_regs_layout): Reimplement.
11811 (tui_regs_layout_command): New function.
11812 (extract_display_start_addr): Rewrite.
11813 (next_layout, prev_layout): Remove.
11814 (tui_layout_window::replace_window): New method.
11815 (tui_layout_split::replace_window): New method.
11816 (destroy_layout): New function.
11817 (layout_list): New global.
11818 (add_layout_command): New function.
11819 (initialize_layouts): Update.
11820 (tui_layout_command): New function.
11821 (_initialize_tui_layout): Install "layout" commands.
11822 * tui/tui-data.h (enum tui_layout_type): Remove.
11823 (tui_current_layout): Don't declare.
11824
0dbc2fc7
TT
118252020-02-22 Tom Tromey <tom@tromey.com>
11826
11827 * tui/tui-regs.c (tui_reg_layout): Remove.
11828 (tui_reg_command): Use tui_regs_layout.
11829 * tui/tui-layout.h (tui_reg_command): Declare.
11830 * tui/tui-layout.c (tui_reg_command): New function.
11831
5afe342e
TT
118322020-02-22 Tom Tromey <tom@tromey.com>
11833
11834 * tui/tui.c (tui_rl_delete_other_windows): Call
11835 tui_remove_some_windows.
11836 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11837 Declare method.
11838 (class tui_layout_window) <remove_windows>: New method.
11839 (class tui_layout_split) <remove_windows>: Declare.
11840 (tui_remove_some_windows): Declare.
11841 * tui/tui-layout.c (tui_remove_some_windows): New function.
11842 (tui_layout_split::remove_windows): New method.
11843
427326a8
TT
118442020-02-22 Tom Tromey <tom@tromey.com>
11845
11846 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11847 * tui/tui-layout.h (tui_next_layout): Declare.
11848 * tui/tui-layout.c (tui_next_layout): New function.
11849
3fe12b6d
TT
118502020-02-22 Tom Tromey <tom@tromey.com>
11851
11852 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11853 correct coordinates.
11854
59b8b5d2
TT
118552020-02-22 Tom Tromey <tom@tromey.com>
11856
11857 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11858 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11859 DATA_WIN case.
11860
2a3d458b
TT
118612020-02-22 Tom Tromey <tom@tromey.com>
11862
11863 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11864 TUI_DISASM_WIN, not tui_win_list.
11865
3f0cbb04
TT
118662020-02-22 Tom Tromey <tom@tromey.com>
11867
11868 * valprint.c (generic_val_print_enum_1)
11869 (val_print_type_code_flags): Style member names.
11870 * rust-lang.c (val_print_struct, rust_print_enum)
11871 (rust_print_struct_def, rust_internal_print_type): Style member
11872 names.
11873 * p-valprint.c (pascal_object_print_value_fields): Style member
11874 names. Only call fprintf_symbol_filtered for static members.
11875 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11876 * f-valprint.c (f_val_print): Style member names.
11877 * f-typeprint.c (f_type_print_base): Style member names.
11878 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11879 call fprintf_symbol_filtered for static members.
11880 (cp_print_class_member): Style member names.
11881 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11882 member names.
11883 * ada-valprint.c (ada_print_scalar): Style enum names.
11884 (ada_val_print_enum): Likewise.
11885 * ada-typeprint.c (print_enum_type): Style enum names.
11886
d4d947ae
TT
118872020-02-21 Tom Tromey <tom@tromey.com>
11888
11889 * psympriv.h (struct partial_symtab): Update comment.
11890
e94e944b
TT
118912020-02-21 Tom Tromey <tromey@adacore.com>
11892
11893 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11894 type is CORE_ADDR.
11895
1eb73179
TV
118962020-02-21 Tom de Vries <tdevries@suse.de>
11897
11898 PR gdb/25534
11899 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11900 if dependencies[i]->user != NULL.
11901
4f180d53
AT
119022020-02-21 Ali Tamur <tamur@google.com>
11903
11904 * dwarf2/read.c (dwarf2_name): Add null check.
11905
22b6cd70
TT
119062020-02-20 Tom Tromey <tom@tromey.com>
11907
11908 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11909 ">=", in binary search.
11910 (dwarf2_find_containing_comp_unit): New overload.
11911 (run_test): New self-test.
11912 (_initialize_dwarf2_read): Register new test.
11913
bd0cf5a6
NC
119142020-02-20 Nelson Chu <nelson.chu@sifive.com>
11915
11916 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11917 * riscv-tdep.h: Likewise.
11918 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11919 rv32-only CSR.
11920 * features/riscv/64bit-csr.xml: Regenerated.
11921
3f702acd
SDJ
119222020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11923 Tom Tromey <tom@tromey.com>
11924
11925 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11926 of 'fputc_unfiltered'.
11927 (putchar_unfiltered): Call 'fputc_unfiltered'.
11928 (fputc_unfiltered): Call 'fputs_unfiltered'.
11929
d13c7322
AB
119302020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11931
11932 * config.in: Regenerate.
11933 * configure: Regenerate.
11934 * configure.ac: Add --with-python-libdir option.
11935 * main.c: Use WITH_PYTHON_LIBDIR.
11936
869d8950
TT
119372020-02-19 Tom Tromey <tom@tromey.com>
11938
11939 * symtab.c (general_symbol_info::compute_and_set_names): Use
11940 obstack_strndup. Simplify call to symbol_set_demangled_name.
11941
298e9637
SM
119422020-02-19 Simon Marchi <simon.marchi@efficios.com>
11943
11944 * dwarf2/read.c (allocate_signatured_type_table,
11945 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11946 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11947 Remove objfile parameter, update all callers.
11948
08410482
DE
119492020-02-19 Doug Evans <dje@google.com>
11950
11951 PR rust/25535
11952 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11953 rust_enum_variant calculation.
11954
dfdeeca1
TT
119552020-02-19 Tom Tromey <tromey@adacore.com>
11956
11957 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11958
2ef5453b
TT
119592020-02-19 Tom Tromey <tromey@adacore.com>
11960
11961 * ada-lang.c (cache_symbol): Use obstack_strdup.
11962
9f1528a1
AB
119632020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11964
11965 * configure: Regenerate.
11966
d3c22fa8
TT
119672020-02-19 Tom Tromey <tromey@adacore.com>
11968
11969 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11970 NULL check.
11971
bf84f706
MR
119722020-02-19 Maciej W. Rozycki <macro@wdc.com>
11973
11974 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11975
d1c9b20f
AB
119762020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11977
11978 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11979 if GDBSERVER is not defined.
11980 (riscv_tdesc_cache): Likewise, also store const target_desc.
11981 (STATIC_IN_GDB): Define.
11982 (riscv_create_target_description): Update declaration with
11983 STATIC_IN_GDB.
11984 (riscv_lookup_target_description): New function, only define if
11985 GDBSERVER is not defined.
11986 * arch/riscv.h (riscv_create_target_description): Declare only
11987 when GDBSERVER is defined.
11988 (riscv_lookup_target_description): New declaration when GDBSERVER
11989 is not defined.
11990 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11991 (riscv_linux_read_features): ...this, and return
11992 riscv_gdbarch_features instead of target_desc.
11993 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11994 (riscv_linux_read_description): Rename to...
11995 (riscv_linux_read_features): ...this.
11996 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11997 Update to use riscv_gdbarch_features and
11998 riscv_lookup_target_description.
11999 * riscv-tdep.c (riscv_find_default_target_description): Use
12000 riscv_lookup_target_description instead of
12001 riscv_create_target_description.
12002
373d7ac0
SM
120032020-02-18 Simon Marchi <simon.marchi@efficios.com>
12004
12005 * valprint.c (generic_val_print_enum_1): When printing a flag
12006 enum with value 0 and there is no enumerator with value 0, print
12007 just "0" instead of "(unknown: 0x0)".
12008
b29a2df0
SM
120092020-02-18 Simon Marchi <simon.marchi@efficios.com>
12010
12011 * valprint.c (generic_val_print_enum_1): Print unknown part of
12012 flag enum in hex.
12013
6740f0cc
SM
120142020-02-18 Simon Marchi <simon.marchi@efficios.com>
12015
12016 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12017 flag enums to contain duplicate enumerators.
12018 * valprint.c (generic_val_print_enum_1): Update comment.
12019
edd45eb0
SM
120202020-02-18 Simon Marchi <simon.marchi@efficios.com>
12021
12022 * dwarf2/read.c: Include "count-one-bits.h".
12023 (update_enumeration_type_from_children): If an enumerator has
12024 multiple bits set, don't treat the enumeration as a "flag enum".
12025 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12026 of flag enums have 0 or 1 bit set.
12027
6d0cf446
BE
120282020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12029
12030 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12031 conversion.
12032 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12033 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12034 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12035 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12036 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12037
7001c1b7
SM
120382020-02-18 Simon Marchi <simon.marchi@efficios.com>
12039
12040 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12041
fdb61c6c
SM
120422020-02-14 Simon Marchi <simon.marchi@efficios.com>
12043
12044 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12045 displaced_step_closure_up.
12046 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12047 (struct displaced_step_closure_up):
12048 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12049 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12050 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12051 Likewise.
12052 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12053 * gdbarch.c, gdbarch.h: Re-generate.
12054 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12055 displaced_step_closure_up.
12056 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12057 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12058 * infrun.h (displaced_step_closure_up): New type alias.
12059 (struct displaced_step_inferior_state) <step_closure>: Change
12060 type to displaced_step_closure_up.
12061 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12062 displaced_step_closure_up.
12063 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12064
a4a38eb4
TT
120652020-02-14 Tom Tromey <tom@tromey.com>
12066
12067 * minidebug.c (gnu_debug_key): New global.
12068 (find_separate_debug_file_in_section): Use it.
12069
e8217e61
SM
120702020-02-14 Simon Marchi <simon.marchi@efficios.com>
12071
12072 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12073 std::unique_ptr.
12074 * gdbarch.c: Re-generate.
12075 * gdbarch.h: Re-generate.
12076 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12077 change.
12078 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12079 type to std::unique_ptr.
12080 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12081 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12082 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12083 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12084 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12085 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12086 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12087 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12088 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12089
d8d83535
SM
120902020-02-14 Simon Marchi <simon.marchi@efficios.com>
12091
12092 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12093 std::unique_ptr.
12094 (displaced_step_clear): Rename to...
12095 (displaced_step_reset): ... this. Just call displaced->reset ().
12096 (displaced_step_clear_cleanup): Rename to...
12097 (displaced_step_reset_cleanup): ... this.
12098 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12099 (displaced_step_fixup): Likewise.
12100 (resume_1): Likewise.
12101 (handle_inferior_event): Restore child's memory before calling
12102 displaced_step_fixup on the parent.
12103 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12104 to std::unique_ptr.
12105 <step_closure>: Change type to std::unique_ptr.
12106
5f661e03
SM
121072020-02-14 Simon Marchi <simon.marchi@efficios.com>
12108
12109 * arm-tdep.c: Include count-one-bits.h.
12110 (cleanup_block_store_pc): Use count_one_bits.
12111 (cleanup_block_load_pc): Use count_one_bits.
12112 (arm_copy_block_xfer): Use count_one_bits.
12113 (thumb2_copy_block_xfer): Use count_one_bits.
12114 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12115 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12116 (thumb_get_next_pcs_raw): Use count_one_bits.
12117 (arm_get_next_pcs_raw): Use count_one_bits_l.
12118 * arch/arm.c (bitcount): Remove.
12119 * arch/arm.h (bitcount): Remove.
12120
8084e579
TT
121212020-02-14 Tom Tromey <tromey@adacore.com>
12122
12123 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12124 Update.
12125 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12126 * dwarf2/loc.c (call_site_find_chain_1): Return
12127 unique_xmalloc_ptr.
12128 (call_site_find_chain): Likewise.
12129
258bf0ee
RB
121302020-02-14 Richard Biener <rguenther@suse.de>
12131
12132 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12133 on expression with division operators.
12134
f98a8458
AKS
121352020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12136
12137 * MAINTAINERS (Write After Approval): Adding myself.
12138
d1437c0e
TT
121392020-02-12 Tom Tromey <tom@tromey.com>
12140
12141 * event-loop.c (event_data, gdb_event, event_handler_func):
12142 Remove.
12143
3d4560f7
TT
121442020-02-12 Tom Tromey <tom@tromey.com>
12145
12146 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12147 (dwarf2_frame_objfile_data): Add comment.
12148 (find_comp_unit, set_comp_unit): New functions.
12149 (dwarf2_frame_find_fde): Use find_comp_unit.
12150 (dwarf2_build_frame_info): Use set_comp_unit.
12151
21982304
TT
121522020-02-12 Tom Tromey <tom@tromey.com>
12153
12154 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12155 (comp_unit): Don't initialize objfile.
12156 (execute_cfa_program): Add text_offset parameter.
12157 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12158 (dwarf2_frame_cache): Update.
12159 (dwarf2_build_frame_info): Don't set "objfile" member.
12160
4debb237
TT
121612020-02-12 Tom Tromey <tom@tromey.com>
12162
12163 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12164 (decode_frame_entry): Likewise.
12165 (dwarf2_build_frame_info): Update.
12166
0d404d44
TT
121672020-02-12 Tom Tromey <tom@tromey.com>
12168
12169 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12170 (decode_frame_entry_1): Use the comp_unit obstack.
12171
a7a3ae5c
TT
121722020-02-12 Tom Tromey <tom@tromey.com>
12173
12174 * dwarf2/frame.c (struct comp_unit): Add initializers and
12175 constructor.
12176 (dwarf2_frame_objfile_data): Store a comp_unit.
12177 (dwarf2_frame_find_fde): Update.
12178 (dwarf2_build_frame_info): Use "new".
12179
a9d65418
TT
121802020-02-12 Tom Tromey <tom@tromey.com>
12181
12182 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12183 (dwarf2_fde_table): Typedef for std::vector.
12184 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12185 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12186 (decode_frame_entry): Update.
12187 (dwarf2_build_frame_info): Use "new".
12188
7559c217
CB
121892020-02-12 Christian Biesinger <cbiesinger@google.com>
12190
12191 * arm-tdep.c (arm_gdbarch_init): Update.
12192 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12193 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12194 have_neon, is_m>: Change to bool.
12195
aeefc73c
CB
121962020-02-12 Christian Biesinger <cbiesinger@google.com>
12197
12198 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12199
d27b8e5f
TT
122002020-02-12 Tom Tromey <tom@tromey.com>
12201
12202 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12203
cd5900f3
HD
122042020-02-12 Hannes Domani <ssbssa@yahoo.de>
12205
12206 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12207 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12208
f056b22b
TT
122092020-02-11 Tom Tromey <tom@tromey.com>
12210
12211 * psymtab.h: Update comment.
12212
f92ff6b5
TT
122132020-02-11 Tom Tromey <tom@tromey.com>
12214
12215 * gdb_obstack.h (struct auto_obstack): Use
12216 DISABLE_COPY_AND_ASSIGN.
12217
3fd6912b
TT
122182020-02-11 Tom Tromey <tom@tromey.com>
12219
12220 * dwarf2/frame.h (struct objfile): Don't forward declare.
12221
69ed9b74
CB
122222020-02-11 Christian Biesinger <cbiesinger@google.com>
12223
12224 * cris-tdep.c (cris_supply_gregset): Change signature to match
12225 what struct regset expects.
12226 (cris_regset): New struct.
12227 (fetch_core_registers): Remove.
12228 (cris_iterate_over_regset_sections): New function.
12229 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12230 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12231
bda874f6
CB
122322020-02-11 Christian Biesinger <cbiesinger@google.com>
12233
12234 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12235 registers.
12236
754e1564
CB
122372020-02-11 Christian Biesinger <cbiesinger@google.com>
12238
12239 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12240
8ddd8e0e
SM
122412020-02-11 Simon Marchi <simon.marchi@efficios.com>
12242
12243 * configure: Re-generate.
12244
898e7f60
SM
122452020-02-11 Simon Marchi <simon.marchi@efficios.com>
12246
12247 * configure: Re-generate.
12248
58df732b
SM
122492020-02-11 Simon Marchi <simon.marchi@efficios.com>
12250
12251 * acinclude: Update warning.m4 path.
12252 * warning.m4: Move to gdbsupport.
12253
da5bd37e
TT
122542020-02-11 Tom Tromey <tromey@adacore.com>
12255
12256 * remote.c (remote_console_output): Update.
12257 * printcmd.c (printf_command): Update.
12258 * event-loop.c (gdb_wait_for_event): Update.
12259 * linux-nat.c (sigchld_handler): Update.
12260 * remote-sim.c (gdb_os_write_stdout): Update.
12261 (gdb_os_flush_stdout): Update.
12262 (gdb_os_flush_stderr): Update.
12263 (gdb_os_write_stderr): Update.
12264 * exceptions.c (print_exception): Update.
12265 * remote-fileio.c (remote_fileio_func_read): Update.
12266 (remote_fileio_func_write): Update.
12267 * tui/tui.c (tui_enable): Update.
12268 * tui/tui-interp.c (tui_interp::init): Update.
12269 * utils.c (init_page_info): Update.
12270 (putchar_unfiltered, fputc_unfiltered): Update.
12271 (gdb_flush): Update.
12272 (emit_style_escape): Update.
12273 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12274 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12275 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12276 (stderr_file::write): Update.
12277 (stderr_file::puts): Update.
12278 * ui-file.h (ui_file_isatty, ui_file_write)
12279 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12280 (ui_file_puts): Don't declare.
12281
85f0dd3c
TV
122822020-02-10 Tom de Vries <tdevries@suse.de>
12283
12284 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12285 sentinel to char *.
12286
2e927613
TV
122872020-02-09 Tom de Vries <tdevries@suse.de>
12288
12289 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12290 filename if it matches "<artificial>".
12291
6bafc845
HD
122922020-02-09 Hannes Domani <ssbssa@yahoo.de>
12293
12294 * windows-tdep.c (struct enum_value_name): New struct.
12295 (create_enum): New function.
12296 (windows_get_siginfo_type): Create and use enum types.
12297
7928d571
HD
122982020-02-09 Hannes Domani <ssbssa@yahoo.de>
12299
12300 * NEWS: Mention $_siginfo support for Windows.
12301 * windows-nat.c (handle_exception): Set siginfo_er.
12302 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12303 (windows_xfer_siginfo): New function.
12304 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12305 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12306 (init_windows_gdbarch_data): New function.
12307 (get_windows_gdbarch_data): New function.
12308 (windows_get_siginfo_type): New function.
12309 (windows_init_abi): Register windows_get_siginfo_type.
12310 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12311
6751ebae
TT
123122020-02-08 Tom Tromey <tom@tromey.com>
12313
12314 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12315 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12316 <keep>: Declare method.
12317 <m_keep>: Remove member.
12318 <~cutu_reader>: Remove.
12319 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12320 (cutu_reader::cutu_reader): Update.
12321 (cutu_reader::keep): Rename from ~cutu_reader.
12322 (process_psymtab_comp_unit, build_type_psymtabs_1)
12323 (process_skeletonless_type_unit, load_partial_comp_unit)
12324 (load_full_comp_unit, dwarf2_read_addr_index)
12325 (read_signatured_type): Update.
12326
135f5437
TT
123272020-02-08 Tom Tromey <tom@tromey.com>
12328
12329 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12330 "want_partial_unit" parameter.
12331 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12332 Inline check for DW_TAG_partial_unit.
12333 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12334
9f66ff1c
TT
123352020-02-08 Tom Tromey <tom@tromey.com>
12336
12337 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12338 read.c.
12339 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12340 read.c.
12341
c8a7a66f
TT
123422020-02-08 Tom Tromey <tom@tromey.com>
12343
12344 * dwarf2/read.c (read_address): Move to comp-unit.c.
12345 (dwarf2_rnglists_process, dwarf2_ranges_process)
12346 (read_attribute_value, dwarf_decode_lines_1)
12347 (var_decode_location, decode_locdesc): Update.
12348 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12349 read.c. Remove "cu" parameter.
12350 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12351 method.
12352
8266302d
TT
123532020-02-08 Tom Tromey <tom@tromey.com>
12354
12355 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12356 (read_indirect_line_string): Update.
12357 * dwarf2/comp-unit.c (read_offset): Remove.
12358 (read_comp_unit_head): Update.
12359 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12360 method.
12361 (read_offset): Don't declare.
12362
4057dfde
TT
123632020-02-08 Tom Tromey <tom@tromey.com>
12364
12365 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12366 * dwarf2/read.c (struct comp_unit_head): Move to
12367 dwarf2/comp-unit.h.
12368 (enum class rcuh_kind): Move to comp-unit.h.
12369 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12370 (read_comp_unit_head, error_check_comp_unit_head)
12371 (read_and_check_comp_unit_head): Move to comp-unit.c.
12372 (read_offset, dwarf_unit_type_name): Likewise.
12373 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12374 (cutu_reader::cutu_reader, read_call_site_scope)
12375 (find_partial_die, follow_die_offset): Update.
12376 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12377
24aa364d
TT
123782020-02-08 Tom Tromey <tom@tromey.com>
12379
12380 * dwarf2/read.c (read_offset_1): Move to leb.c.
12381 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12382 (dwarf_decode_macro_bytes): Update.
12383 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12384 * dwarf2/leb.h (read_offset): Declare.
12385
2c7d5afc
TT
123862020-02-08 Tom Tromey <tom@tromey.com>
12387
12388 * dwarf2/read.c (dwarf2_section_size): Remove.
12389 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12390 Update.
12391 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12392
4075cb26
TT
123932020-02-08 Tom Tromey <tom@tromey.com>
12394
12395 * dwarf2/read.c (read_initial_length): Move to leb.c.
12396 * dwarf2/leb.h (read_initial_length): Declare.
12397 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12398 handle_nonstd parameter.
12399 * dwarf2/frame.c (read_initial_length): Remove.
12400 (decode_frame_entry_1): Update.
12401
09ba997f
TT
124022020-02-08 Tom Tromey <tom@tromey.com>
12403
12404 * dwarf2/loc.c (dwarf2_find_location_expression)
12405 (dwarf_evaluate_loc_desc::get_tls_address)
12406 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12407 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12408 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12409 (dwarf2_compile_property_to_c)
12410 (dwarf2_loc_desc_get_symbol_read_needs)
12411 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12412 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12413 (loclist_describe_location, loclist_tracepoint_var_ref)
12414 (loclist_generate_c_location): Update.
12415 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12416 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12417 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12418 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12419 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12420 (dwarf2_per_cu_data::addr_size)
12421 (dwarf2_per_cu_data::ref_addr_size)
12422 (dwarf2_per_cu_data::text_offset)
12423 (dwarf2_per_cu_data::addr_type): Now methods.
12424 (per_cu_header_read_in): Make per_cu "const".
12425 (dwarf2_version): Remove.
12426 (dwarf2_per_cu_data::int_type): Now a method.
12427 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12428 (set_die_type, read_array_type, read_subrange_index_type)
12429 (read_tag_string_type, read_subrange_type): Update.
12430 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12431 offset_size, ref_addr_size, text_offset, addr_type, version,
12432 objfile, int_type, addr_sized_int_type>: Declare methods.
12433
96c738c0
TT
124342020-02-08 Tom Tromey <tom@tromey.com>
12435
12436 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12437 Move earlier.
12438
8fdd972c
TT
124392020-02-08 Tom Tromey <tom@tromey.com>
12440
12441 * dwarf2/read.h (dwarf_line_debug): Declare.
12442 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12443 * dwarf2/read.c: Move line_header code to new files.
12444 (dwarf_line_debug): No longer static.
12445 * dwarf2/line-header.c: New file.
12446 * dwarf2/line-header.h: New file.
12447
03075812
TT
124482020-02-08 Tom Tromey <tom@tromey.com>
12449
12450 * dwarf2/read.c (struct line_header) <file_full_name,
12451 file_file_name>: Return unique_xmalloc_ptr.
12452 (line_header::file_file_name): Update.
12453 (line_header::file_full_name): Update.
12454 (dw2_get_file_names_reader): Update.
12455 (macro_start_file): Update.
12456
bb822404
TT
124572020-02-08 Tom Tromey <tom@tromey.com>
12458
12459 * dwarf2/read.c (struct line_header) <file_full_name,
12460 file_file_name>: Declare methods.
12461 (dw2_get_file_names_reader): Update.
12462 (file_file_name): Now a method.
12463 (file_full_name): Likewise.
12464 (macro_start_file): Update.
12465
009b64fc
TT
124662020-02-08 Tom Tromey <tom@tromey.com>
12467
12468 * dwarf2/read.c (dwarf_always_disassemble)
12469 (show_dwarf_always_disassemble): Move to loc.c.
12470 (_initialize_dwarf2_read): Move "always-disassemble" registration
12471 to loc.c.
12472 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12473 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12474 static.
12475 (show_dwarf_always_disassemble): Move from read.c.
12476 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12477
5895093f
TT
124782020-02-08 Tom Tromey <tom@tromey.com>
12479
12480 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12481 (create_quick_file_names_table): Return htab_up.
12482 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12483 Update.
12484 * dwarf2/read.h (struct dwarf2_per_objfile)
12485 <quick_file_names_table>: Now htab_up.
12486
b3b32279
TT
124872020-02-08 Tom Tromey <tom@tromey.com>
12488
12489 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12490
1d33d811
TT
124912020-02-08 Tom Tromey <tom@tromey.com>
12492
12493 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12494 Rewrite.
12495 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12496 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12497 (abbrev_table::abbrev_table): No longer inline.
12498 (ABBREV_HASH_SIZE): Remove.
12499 (abbrev_table::m_abbrevs): Now an htab_up.
12500
86de1d91
TT
125012020-02-08 Tom Tromey <tom@tromey.com>
12502
12503 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12504 (cutu_reader): Update.
12505 (build_type_psymtabs_1): Update.
12506 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12507 (abbrev_table::alloc_abbrev): Update.
12508 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12509 (abbrev_table::read): New static method, renamed from
12510 abbrev_table_read_table.
12511 (abbrev_table::alloc_abbrev)
12512 (abbrev_table::add_abbrev): Now private.
12513 (abbrev_table::abbrev_table): Now private.
12514 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12515
0335378b
TT
125162020-02-08 Tom Tromey <tom@tromey.com>
12517
12518 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12519 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12520 htab_up.
12521
48b490f2
TT
125222020-02-08 Tom Tromey <tom@tromey.com>
12523
12524 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12525 htab_up.
12526 (lookup_dwo_unit_in_dwp): Update.
12527 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12528 on obstack.
12529
bc68fb19
TT
125302020-02-08 Tom Tromey <tom@tromey.com>
12531
12532 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12533 obstack.
12534
d15acc42
TT
125352020-02-08 Tom Tromey <tom@tromey.com>
12536
12537 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12538 line_header_hash.
12539 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12540 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12541 Change type to htab_up.
12542
eaa5fa8b
TT
125432020-02-08 Tom Tromey <tom@tromey.com>
12544
12545 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12546 htab_up. Don't allocate on obstack.
12547 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12548 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12549 Change type to htab_up.
12550
b0b6a987
TT
125512020-02-08 Tom Tromey <tom@tromey.com>
12552
12553 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12554 Change type to htab_up.
12555 * dwarf2/read.c (create_signatured_type_table_from_index)
12556 (create_signatured_type_table_from_debug_names)
12557 (create_all_type_units, add_type_unit)
12558 (lookup_dwo_signatured_type, lookup_signatured_type)
12559 (process_skeletonless_type_unit): Update.
12560 (create_debug_type_hash_table, create_debug_types_hash_table):
12561 Change type of types_htab.
12562 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12563 htab_up. Don't allocate on obstack.
12564 (create_cus_hash_table): Change type of cus_htab parameter.
12565 (struct dwo_file) <cus, tus>: Now htab_up.
12566 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12567 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12568 (queue_and_load_all_dwo_tus): Update.
12569 * dwarf2/index-write.c (write_gdbindex): Update.
12570 (write_debug_names): Update.
12571
39856def
TT
125722020-02-08 Tom Tromey <tom@tromey.com>
12573
12574 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12575 dwarf2/read.c. Remove "next" member. Add constructor ntad
12576 destructor.
12577 (struct dwarf2_per_objfile) <queue>: New member.
12578 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12579 dwarf2/read.h.
12580 (dwarf2_queue, dwarf2_queue_tail): Remove.
12581 (class dwarf2_queue_guard): Add parameter to constructor. Use
12582 DISABLE_COPY_AND_ASSIGN.
12583 <m_per_objfile>: New member.
12584 <~dwarf2_queue_guard>: Rewrite.
12585 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12586 Update.
12587 (~dwarf2_queue_item): New.
12588
3e225074
TT
125892020-02-08 Tom Tromey <tom@tromey.com>
12590
12591 * dwarf2/read.c (struct die_info) <has_children>: New member.
12592 (dw2_get_file_names_reader): Remove has_children.
12593 (dw2_get_file_names): Update.
12594 (read_cutu_die_from_dwo): Remove has_children.
12595 (cutu_reader::init_tu_and_read_dwo_dies)
12596 (cutu_reader::cutu_reader): Update.
12597 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12598 Remove has_children.
12599 (build_type_psymtabs_1, process_skeletonless_type_unit)
12600 (load_partial_comp_unit, load_full_comp_unit): Update.
12601 (create_dwo_cu_reader): Remove has_children.
12602 (create_cus_hash_table, read_die_and_children): Update.
12603 (read_full_die_1,read_full_die): Remove has_children.
12604 (read_signatured_type): Update.
12605 (class cutu_reader) <has_children>: Remove.
12606
82ca8957
TT
126072020-02-08 Tom Tromey <tom@tromey.com>
12608
12609 * dwarf2/expr.c: Rename from dwarf2expr.c.
12610 * dwarf2/expr.h: Rename from dwarf2expr.h.
12611 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12612 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12613 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12614 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12615 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12616 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12617 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12618 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12619 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12620 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12621 * dwarf2/loc.c: Rename from dwarf2loc.c.
12622 * dwarf2/loc.h: Rename from dwarf2loc.h.
12623 * dwarf2/read.c: Rename from dwarf2read.c.
12624 * dwarf2/read.h: Rename from dwarf2read.h.
12625 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12626 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12627 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12628 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12629 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12630 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12631 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12632 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12633 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12634 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12635 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12636 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12637 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12638 Update.
12639 * Makefile.in (COMMON_SFILES): Update.
12640 (HFILES_NO_SRCDIR): Update.
12641
9e35d499
TT
126422020-02-08 Tom Tromey <tom@tromey.com>
12643
12644 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12645 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12646
1eba2311
TT
126472020-02-08 Tom Tromey <tom@tromey.com>
12648
12649 * dwarf2read.h (struct die_info): Don't declare.
12650
e41c2da2
TT
126512020-02-08 Tom Tromey <tom@tromey.com>
12652
12653 * dwarf2read.h (die_info_ptr): Remove typedef.
12654
4fc6c0d5
TT
126552020-02-08 Tom Tromey <tom@tromey.com>
12656
12657 * dwarf2read.c (read_call_site_scope)
12658 (handle_data_member_location, dwarf2_add_member_fn)
12659 (mark_common_block_symbol_computed, read_common_block)
12660 (attr_to_dynamic_prop, partial_die_info::read)
12661 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12662 (dwarf2_symbol_mark_computed, set_die_type): Update.
12663 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12664 method.
12665 (attr_form_is_block): Don't declare.
12666 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12667
cd6c91b4
TT
126682020-02-08 Tom Tromey <tom@tromey.com>
12669
12670 * dwarf2read.c (dwarf2_find_base_address, )
12671 (read_call_site_scope, rust_containing_type)
12672 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12673 (handle_data_member_location, dwarf2_add_member_fn)
12674 (get_alignment, read_structure_type, process_structure_scope)
12675 (mark_common_block_symbol_computed, read_common_block)
12676 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12677 (partial_die_info::read, read_attribute_value, new_symbol)
12678 (lookup_die_type, dwarf2_get_ref_die_offset)
12679 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12680 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12681 (dwarf2_symbol_mark_computed): Update.
12682 * dwarf2/attribute.h (struct attribute) <value_as_address,
12683 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12684 methods.
12685 (value_as_address, attr_form_is_section_offset)
12686 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12687 * dwarf2/attribute.c (attribute::value_as_address)
12688 (attribute::form_is_section_offset, attribute::form_is_constant)
12689 (attribute::form_is_ref): Now methods.
12690
162dce55
TT
126912020-02-08 Tom Tromey <tom@tromey.com>
12692
12693 * dwarf2read.c (struct attribute, DW_STRING)
12694 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12695 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12696 (attr_form_is_block, attr_form_is_section_offset)
12697 (attr_form_is_constant, attr_form_is_ref): Move.
12698 * dwarf2/attribute.h: New file.
12699 * dwarf2/attribute.c: New file, from dwarf2read.c.
12700 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12701
3054dd54
TT
127022020-02-08 Tom Tromey <tom@tromey.com>
12703
12704 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12705 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12706 Move.
12707 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12708 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12709 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12710 abbrev.c.
12711 * dwarf2/abbrev.h: New file.
12712 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12713 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12714
96b79293
TT
127152020-02-08 Tom Tromey <tom@tromey.com>
12716
12717 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12718 (dwarf2_section_size, dwarf2_get_section_info)
12719 (create_signatured_type_table_from_debug_names)
12720 (create_addrmap_from_aranges, read_debug_names_from_section)
12721 (get_gdb_index_contents_from_section, read_comp_unit_head)
12722 (error_check_comp_unit_head, read_abbrev_offset)
12723 (create_debug_type_hash_table, init_cu_die_reader)
12724 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12725 (read_comp_units_from_section, create_cus_hash_table)
12726 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12727 (create_dwp_v2_section, dwarf2_rnglists_process)
12728 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12729 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12730 (read_indirect_string_from_dwz, read_addr_index_1)
12731 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12732 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12733 (fill_in_loclist_baton): Update.
12734 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12735 get_containing_section, get_bfd_owner, get_bfd_section,
12736 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12737 (dwarf2_read_section, get_section_name, get_section_file_name)
12738 (get_containing_section, get_section_bfd_owner)
12739 (get_section_bfd_section, get_section_name, get_section_file_name)
12740 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12741 declare.
12742 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12743 (dwarf2_section_info::get_bfd_owner)
12744 (dwarf2_section_info::get_bfd_section)
12745 (dwarf2_section_info::get_name)
12746 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12747 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12748 (dwarf2_section_info::read): Now methods.
12749 * dwarf-index-write.c (class debug_names): Update.
12750
2c86cff9
TT
127512020-02-08 Tom Tromey <tom@tromey.com>
12752
12753 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12754 Move to dwarf2/section.h.
12755 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12756 (get_section_bfd_section, get_section_name)
12757 (get_section_file_name, get_section_id, get_section_flags)
12758 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12759 dwarf2/section.c.
12760 * dwarf2/section.h: New file.
12761 * dwarf2/section.c: New file, from dwarf2read.c.
12762 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12763
f4382c45
TT
127642020-02-08 Tom Tromey <tom@tromey.com>
12765
12766 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12767 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12768 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12769 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12770 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12771 * dwarf2/leb.h: New file, from dwarf2read.c.
12772 * dwarf2/leb.c: New file, from dwarf2read.c.
12773 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12774 Remove.
12775 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12776 (COMMON_SFILES): Add dwarf2/leb.c.
12777
01840b7a
JB
127782020-02-08 Joel Brobecker <brobecker@adacore.com>
12779
12780 GDB 9.1 released.
12781
dfcb27e4
IB
127822020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12783
12784 PR gdb/25190:
aac66a4c
SM
12785 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12786 * gdb/remote.c (remote_console_output): Update.
12787 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12788 (ui_file_puts): ...this.
12789 * gdb/ui-file.h (ui_file_puts): Add declaration.
12790 * gdb/utils.c (emit_style_escape): Update.
12791 (flush_wrap_buffer): Update.
12792 (fputs_maybe_filtered): Update.
12793 (fputs_unfiltered): Add function.
dfcb27e4 12794
faa17681
IB
127952020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12796
aac66a4c
SM
12797 * gdb/event-loop.c (gdb_wait_for_event): Update.
12798 * gdb/printcmd.c (printf_command): Update.
12799 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12800 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12801 (gdb_os_flush_stderr): Update.
12802 * gdb/remote.c (remote_console_output): Update.
12803 * gdb/ui-file.c (gdb_flush): Rename to...
12804 (ui_file_flush): ...this.
12805 (stderr_file::write): Update.
12806 (stderr_file::puts): Update.
12807 * gdb/ui-file.h (gdb_flush): Rename to...
12808 (ui_file_flush): ...this.
12809 * gdb/utils.c (gdb_flush): Add function.
12810 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12811
5abbbe1d
TT
128122020-02-07 Tom Tromey <tromey@adacore.com>
12813
12814 PR breakpoints/24915:
12815 * source.c (find_and_open_source): Do not check basenames_may_differ.
12816
919adfe8
TT
128172020-02-07 Tom Tromey <tom@tromey.com>
12818
12819 * README: Update gdbserver documentation.
12820 * gdbserver: Move to top level.
12821 * configure.tgt (build_gdbserver): Remove.
12822 * configure.ac: Remove --enable-gdbserver.
12823 * configure: Rebuild.
12824 * Makefile.in (distclean): Don't mention gdbserver.
12825
1d5d29e7
SV
128262020-02-06 Shahab Vahedi <shahab@synopsys.com>
12827
12828 * source-cache.c (source_cache::ensure): Surround
12829 get_plain_source_lines with a try/catch.
12830 (source_cache::get_line_charpos): Get rid of try/catch
12831 and only check for the return value of "ensure".
12832 * tui/tui-source.c (tui_source_window::set_contents):
12833 Simplify "nlines" calculation.
12834
6eb1129c
SV
128352020-02-06 Shahab Vahedi <shahab@synopsys.com>
12836
12837 * MAINTAINERS (Write After Approval): Add myself.
12838
c6a42d11
CB
128392020-02-05 Christian Biesinger <cbiesinger@google.com>
12840
12841 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12842 function call.
12843
c8ecdda6
CB
128442020-02-05 Christian Biesinger <cbiesinger@google.com>
12845
12846 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12847
f6480e70
MR
128482020-02-05 Maciej W. Rozycki <macro@wdc.com>
12849
12850 * nat/riscv-linux-tdesc.h: New file.
12851 * nat/riscv-linux-tdesc.c: New file, taking code from...
12852 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12853 ... here.
12854 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12855 NATDEPFILES.
12856
dcc9fbc6
AB
128572020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12858
12859 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12860 we don't set the fake simulator ptid to the null_ptid.
12861
719546c4
SM
128622020-02-03 Simon Marchi <simon.marchi@efficios.com>
12863
12864 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12865 * gdbthread.h (class thread_info) <resumed>: Likewise.
12866 * infrun.c (resume_1): Likewise.
12867 (proceed): Likewise.
12868 (infrun_thread_stop_requested): Likewise.
12869 (stop_all_threads): Likewise.
12870 (handle_inferior_event): Likewise.
12871 (restart_threads): Likewise.
12872 (finish_step_over): Likewise.
12873 (keep_going_stepped_thread): Likewise.
12874 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12875 (linux_handle_extended_wait): Likewise.
12876 * record-btrace.c (get_thread_current_frame_id): Likewise.
12877 * record-full.c (record_full_wait_1): Likewise.
12878 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12879 * target.c (target_resume): Likewise.
12880 * thread.c (set_running_thread): Likewise.
12881
e409c542
AKS
128822020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12883
12884 * f-valprint.c (f77_print_array_1): Changed datatype of index
12885 variable to LONGEST from int to enable it to contain bound
12886 values correctly.
12887
ee98c0da
MR
128882020-02-03 Maciej W. Rozycki <macro@wdc.com>
12889
12890 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12891 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12892 offsets according to FLEN determined.
12893 (riscv_linux_nat_target::read_description): Determine FLEN
12894 dynamically.
12895 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12896 according to FLEN determined.
12897 (riscv_linux_nat_target::store_registers): Likewise.
12898
aa66aac4
SV
128992020-02-01 Shahab Vahedi <shahab@synopsys.com>
12900
12901 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12902 when reg->group is empty and reggroup is not.
12903
fd9faca8
TT
129042020-01-31 Tom Tromey <tromey@adacore.com>
12905
12906 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12907 Call beneath target's mourn_inferior after unpushing.
12908
42330a68
AB
129092020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12910
12911 PR tui/9765
12912 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12913 have enough lines to fill the screen, still return the lowest
12914 address we found.
12915
7a27a45b
AB
129162020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12917
12918 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12919 '-', '<', and '>' commands.
12920
c47f70e2
PA
129212020-01-29 Pedro Alves <palves@redhat.com>
12922 Sergio Durigan Junior <sergiodj@redhat.com>
12923
12924 * infcmd.c (construct_inferior_arguments): Assert that
12925 'argc' is greater than 0.
12926
5133a315
LM
129272020-01-29 Luis Machado <luis.machado@linaro.org>
12928
12929 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12930 (BRK_INSN_MASK): Define to 0xd4200000.
12931 (aarch64_program_breakpoint_here_p): New function.
12932 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12933 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12934 breakpoint.c.
12935 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12936 breakpoint.h
12937 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12938 call gdbarch_program_breakpoint_here_p.
12939 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12940 default_program_breakpoint_here_p, changed return type to bool and
12941 simplified.
12942 * breakpoint.h (program_breakpoint_here): Moved prototype to
12943 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12944 return type to bool.
12945 * gdbarch.c: Regenerate.
12946 * gdbarch.h: Regenerate.
12947 * gdbarch.sh (program_breakpoint_here_p): New method.
12948 * infrun.c (handle_signal_stop): Call
12949 gdbarch_program_breakpoint_here_p.
12950
168f8c6b
TT
129512020-01-26 Tom Tromey <tom@tromey.com>
12952
12953 * ctfread.c (struct ctf_fp_info): Reindent.
12954 (_initialize_ctfread): Remove.
12955
128a391f
TT
129562020-01-26 Tom Tromey <tom@tromey.com>
12957
12958 * psymtab.c (partial_map_expand_apply)
12959 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12960 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12961 (psym_print_stats, psym_expand_symtabs_for_function)
12962 (psym_map_symbol_filenames, psym_map_matching_symbols)
12963 (psym_expand_symtabs_matching)
12964 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12965 (maintenance_check_psymtabs): Use new methods.
12966 * psympriv.h (struct partial_symtab) <readin_p,
12967 get_compunit_symtab>: New methods.
12968 <readin, compunit_symtab>: Remove members.
12969 (struct standard_psymtab): New.
12970 (struct legacy_psymtab): Derive from standard_psymtab.
12971 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12972 standard_psymtab.
12973 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12974
0494dbec
TT
129752020-01-26 Tom Tromey <tom@tromey.com>
12976
12977 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12978 read_dependencies. Add assert.
12979 * psymtab.c (partial_symtab::read_dependencies): New method.
12980 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12981 method.
12982 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12983 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12984 read_dependencies.
12985 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12986 Add assert.
12987
8566b89b
TT
129882020-01-26 Tom Tromey <tom@tromey.com>
12989
12990 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12991 Call expand_psymtab.
12992 (xcoff_read_symtab): Call expand_psymtab.
12993 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12994 legacy_expand_psymtab.
12995 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12996 method.
12997 (struct legacy_psymtab) <expand_psymtab>: Implement.
12998 <legacy_expand_psymtab>: New member.
12999 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13000 (parse_partial_symbols): Set legacy_expand_psymtab.
13001 (psymtab_to_symtab_1): Change argument order. Call
13002 expand_psymtab.
13003 (new_psymtab): Set legacy_expand_psymtab.
13004 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13005 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13006 expand_psymtab.
13007 (dwarf2_psymtab::expand_psymtab): Rename from
13008 psymtab_to_symtab_1. Call expand_psymtab.
13009 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13010 (dbx_end_psymtab): Likewise.
13011 (dbx_psymtab_to_symtab_1): Change argument order. Call
13012 expand_psymtab.
13013 (dbx_read_symtab): Call expand_psymtab.
13014 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13015 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13016 (ctf_psymtab::read_symtab): Call expand_psymtab.
13017
077cbab2
TT
130182020-01-26 Tom Tromey <tom@tromey.com>
13019
13020 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13021 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13022 messages.
13023 * mdebugread.c (mdebug_read_symtab): Remove prints.
13024 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13025 assert.
13026 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13027
891813be
TT
130282020-01-26 Tom Tromey <tom@tromey.com>
13029
13030 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13031 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13032 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13033 legacy_symtab.
13034 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13035 * psymtab.c (psymtab_to_symtab): Call method.
13036 (dump_psymtab): Update.
13037 * psympriv.h (struct partial_symtab): Add virtual destructor.
13038 <read_symtab>: New method.
13039 (struct legacy_symtab): New.
13040 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13041 (struct pst_map) <pst>: Now a legacy_psymtab.
13042 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13043 (new_psymtab): Use legacy_psymtab.
13044 * dwarf2read.h (struct dwarf2_psymtab): New.
13045 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13046 * dwarf2read.c (dwarf2_create_include_psymtab)
13047 (dwarf2_build_include_psymtabs, create_type_unit_group)
13048 (create_partial_symtab, process_psymtab_comp_unit_reader)
13049 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13050 (set_partial_user): Use dwarf2_psymtab.
13051 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13052 (psymtab_to_symtab_1, process_full_comp_unit)
13053 (process_full_type_unit, dwarf2_ranges_read)
13054 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13055 (dwarf_decode_lines): Use dwarf2_psymtab.
13056 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13057 (add_address_entry_worker, write_one_signatured_type)
13058 (recursively_count_psymbols, recursively_write_psymbols)
13059 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13060 (write_debug_names): Likewise.
13061 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13062 <pst>: Now a legacy_psymtab.
13063 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13064 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13065 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13066 * ctfread.c (struct ctf_psymtab): New.
13067 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13068 ctf_psymtab.
13069 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13070 (create_partial_symtab): Return a ctf_psymtab.
13071 (scan_partial_symbols): Update.
13072
c3693a1d
TT
130732020-01-26 Tom Tromey <tom@tromey.com>
13074
13075 * xcoffread.c (xcoff_start_psymtab): Use new.
13076 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13077 renamed from start_psymtab_common.
13078 * psympriv.h (struct partial_symtab): Add new constructor.
13079 (start_psymtab_common): Don't declare.
13080 * mdebugread.c (parse_partial_symbols): Use new.
13081 * dwarf2read.c (create_partial_symtab): Use new.
13082 * dbxread.c (start_psymtab): Use new.
13083 * ctfread.c (create_partial_symtab): Use new.
13084
32caafd0
TT
130852020-01-26 Tom Tromey <tom@tromey.com>
13086
13087 * xcoffread.c (xcoff_end_psymtab): Use new.
13088 * psymtab.c (start_psymtab_common): Use new.
13089 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13090 Update.
13091 * psympriv.h (struct partial_symtab): Add parameters to
13092 constructor. Don't inline.
13093 (allocate_psymtab): Don't declare.
13094 * mdebugread.c (new_psymtab): Use new.
13095 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13096 * dbxread.c (dbx_end_psymtab): Use new.
13097
abaa2f23
TT
130982020-01-26 Tom Tromey <tom@tromey.com>
13099
13100 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13101 allocate_psymtab. Update documentation.
13102 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13103 allocate_psymtab. Do not use new.
13104 (allocate_psymtab): Use new. Update.
13105
6d94535f
TT
131062020-01-26 Tom Tromey <tom@tromey.com>
13107
13108 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13109 * psymtab.c (psym_print_stats): Update.
13110 * psympriv.h (struct partial_symtab) <readin,
13111 psymtabs_addrmap_supported, anonymous>: Now bool.
13112 * mdebugread.c (psymtab_to_symtab_1): Update.
13113 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13114 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13115 (process_full_comp_unit, process_full_type_unit): Update.
13116 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13117 * ctfread.c (psymtab_to_symtab): Update.
13118
6f17252b
TT
131192020-01-26 Tom Tromey <tom@tromey.com>
13120
13121 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13122 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13123 * psymtab.c (psymtab_storage): Delete psymtabs.
13124 (psymtab_storage::allocate_psymtab): Use new.
13125 (psymtab_storage::discard_psymtab): Use delete.
13126 * psympriv.h (struct partial_symtab): Add constructor and
13127 initializers.
13128
f6f1cebc
TT
131292020-01-26 Tom Tromey <tom@tromey.com>
13130
13131 * machoread.c: Do not include psympriv.h.
13132
e47e48f6
PW
131332020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13134
13135 * NEWS: Mention the new option and the set/show commands.
13136
a2fedca9
PW
131372020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13138
13139 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13140 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13141 (validate_exec_file): New variables, enums, functions.
13142 (exec_file_locate_attach, print_section_info): Style the filenames.
13143 (_initialize_exec): Install show_exec_file_mismatch_command and
13144 set_exec_file_mismatch_command.
13145 * gdbcore.h (validate_exec_file): Declare.
13146 * infcmd.c (attach_command): Call validate_exec_file.
13147 * remote.c ( remote_target::remote_add_inferior): Likewise.
13148
7ffa82e1
AB
131492020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13150
13151 * frame.c (find_frame_sal): Move call to get_next_frame into more
13152 inner scope.
13153 * inline-frame.c (inilne_state) <inline_state>: Update argument
13154 types.
13155 (inilne_state) <skipped_symbol>: Rename to...
13156 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13157 (skip_inline_frames): Build vector of skipped symbols and use this
13158 to reate the inline_state.
13159 (inline_skipped_symbol): Add a comment and some assertions, fetch
13160 skipped symbol from the list.
13161
3d92a3e3
AB
131622020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13163
13164 * buildsym.c (lte_is_less_than): Delete.
13165 (buildsym_compunit::end_symtab_with_blockvector): Create local
13166 lambda function to sort line table entries, and use
13167 std::stable_sort instead of std::sort.
13168 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13169 markers when looking for a previous line.
13170
94a72be7
AB
131712020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13172
13173 * dwarf2read.c (lnp_state_machine::record_line): Include
13174 end_sequence parameter in debug print out. Record the line if we
13175 are at an end_sequence marker even if it's not the start of a
13176 statement.
13177 * symmisc.c (maintenance_print_one_line_table): Print end of
13178 sequence markers with 'END' not '0'.
13179
53af73bf
PA
131802020-01-24 Pedro Alves <palves@redhat.com>
13181
13182 PR gdb/25410
13183 * thread.c (scoped_restore_current_thread::restore): Use
13184 switch_to_inferior_no_thread.
13185 * exec.c: Include "progspace-and-thread.h".
13186 (add_target_sections, remove_target_sections):
13187 scoped_restore_current_pspace_and_thread instead of
13188 scoped_restore_current_thread.
13189 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13190 and aspace to the inferior before calling clone_program_space.
13191 Remove stale comment.
13192
3050c6f4
CB
131932020-01-24 Christian Biesinger <cbiesinger@google.com>
13194
13195 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13196 (arm_netbsd_nat_target::fetch_registers): ...this.
13197 (arm_nbsd_nat_target::store_registers): Rename to...
13198 (arm_netbsd_nat_target::store_registers): ...this.
13199
73685c7e
CB
132002020-01-24 Christian Biesinger <cbiesinger@google.com>
13201
13202 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13203 register_t.
13204
89203d40
CB
132052020-01-24 Christian Biesinger <cbiesinger@google.com>
13206
13207 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13208 Update comment.
13209 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13210 Likewise.
13211 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13212 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13213 the correct replacement (iterate_over_regset_sections).
13214 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13215 Update comment.
13216
1ba1ac88
AB
132172020-01-24 Graham Markall <graham.markall@embecosm.com>
13218
13219 PR gdb/23718
13220 * gdb/python/python.c (execute_gdb_command): Call
13221 async_enable_stdin in catch block.
13222
f3364a6d
AB
132232020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13224
13225 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13226 SWITCH_THRU_ALL_UIS.
13227
733d0a67
AB
132282020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13229
13230 PR tui/9765
13231 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13232 comment, add extra parameter, and update to store previous symbol
13233 when appropriate.
13234 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13235 add extra parameter.
13236 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13237 remove unneeded parameter, add try/catch around gdb_print_insn,
13238 rewrite to add items to asm_lines vector.
13239 (tui_find_backward_disassembly_start_address): New function.
13240 (tui_find_disassembly_address): Updated throughout.
13241 (tui_disasm_window::set_contents): Update for changes to
13242 tui_disassemble.
13243 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13244 number of lines to scroll.
13245
b3b3bada
SM
132462020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13247
13248 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13249 (SECT_OFF_DATA): Likewise.
13250 (SECT_OFF_RODATA): Likewise.
13251 (SECT_OFF_TEXT): Likewise.
13252 (SECT_OFF_BSS): Likewise.
13253 (struct objfile) <text_section_offset, data_section_offset>: New
13254 methods.
13255 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13256 objfile::text_section_offset.
13257 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13258 * coffread.c (coff_symtab_read): Likewise.
13259 (enter_linenos): Likewise.
13260 (process_coff_symbol): Likewise.
13261 * ctfread.c (get_objfile_text_range): Likewise.
13262 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13263 Use objfile::data_section_offset.
13264 * dwarf2-frame.c (execute_cfa_program): Use
13265 objfile::text_section_offset.
13266 (dwarf2_frame_find_fde): Likewise.
13267 * dwarf2read.c (create_addrmap_from_index): Likewise.
13268 (create_addrmap_from_aranges): Likewise.
13269 (dw2_find_pc_sect_compunit_symtab): Likewise.
13270 (process_psymtab_comp_unit_reader): Likewise.
13271 (add_partial_symbol): Likewise.
13272 (add_partial_subprogram): Likewise.
13273 (process_full_comp_unit): Likewise.
13274 (read_file_scope): Likewise.
13275 (read_func_scope): Likewise.
13276 (read_lexical_block_scope): Likewise.
13277 (read_call_site_scope): Likewise.
13278 (dwarf2_rnglists_process): Likewise.
13279 (dwarf2_ranges_process): Likewise.
13280 (dwarf2_ranges_read): Likewise.
13281 (dwarf_decode_lines_1): Likewise.
13282 (new_symbol): Likewise.
13283 (dwarf2_fetch_die_loc_sect_off): Likewise.
13284 (dwarf2_per_cu_text_offset): Likewise.
13285 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13286 * hppa-tdep.c (read_unwind_info): Likewise.
13287 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13288 * psympriv.h (struct partial_symtab): Likewise.
13289 * psymtab.c (find_pc_sect_psymtab): Likewise.
13290 * solib-svr4.c (enable_break): Likewise.
13291 * stap-probe.c (relocate_address): Use
13292 objfile::data_section_offset.
13293 * xcoffread.c (enter_line_range): Use
13294 objfile::text_section_offset.
13295 (read_xcoff_symtab): Likewise.
13296
ab53f382
SM
132972020-01-23 Simon Marchi <simon.marchi@efficios.com>
13298
13299 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13300 declaration to narrower scopes.
13301
e7eee665
SM
133022020-01-23 Simon Marchi <simon.marchi@efficios.com>
13303
13304 * darwin-nat.h (struct darwin_exception_msg, enum
13305 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13306 Move up.
13307 (class darwin_nat_target) <wait_1, check_new_threads,
13308 decode_exception_message, decode_message, stop_inferior,
13309 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13310 * darwin-nat.c (darwin_check_new_threads): Rename to...
13311 (darwin_nat_target::check_new_threads): ... this.
13312 (darwin_suspend_inferior_it): Remove.
13313 (darwin_decode_exception_message): Rename to...
13314 (darwin_nat_target::decode_exception_message): ... this.
13315 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13316 (darwin_decode_message): Rename to...
13317 (darwin_nat_target::decode_message): ... this.
13318 (cancel_breakpoint): Rename to...
13319 (darwin_nat_target::cancel_breakpoint): ... this.
13320 (darwin_wait): Rename to...
13321 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13322 instead of iterate_over_inferiors.
13323 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13324 (darwin_stop_inferior): Rename to...
13325 (darwin_nat_target::stop_inferior): ... this.
13326 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13327 (darwin_init_thread_list): Rename to...
13328 (darwin_nat_target::init_thread_list): ... this.
13329 (darwin_ptrace_him): Rename to...
13330 (darwin_nat_target::ptrace_him): ... this.
13331 (darwin_nat_target::create_inferior): Pass lambda function to
13332 fork_inferior.
13333 (darwin_nat_target::detach): Call stop_inferior instead of
13334 darwin_stop_inferior.
13335 * fork-inferior.h (fork_inferior): Change init_trace_fun
13336 parameter to gdb::function_view.
13337 * fork-inferior.c (fork_inferior): Likewise.
13338
c162ed3e
HD
133392020-01-23 Hannes Domani <ssbssa@yahoo.de>
13340
13341 * i386-cygwin-tdep.c (core_process_module_section): Update.
13342 * windows-nat.c (struct lm_info_windows): Add text_offset.
13343 (windows_xfer_shared_libraries): Update.
13344 * windows-tdep.c (windows_xfer_shared_library):
13345 Add text_offset_cached argument.
13346 * windows-tdep.h (windows_xfer_shared_library): Update.
13347
a1237872
SM
133482020-01-21 Simon Marchi <simon.marchi@efficios.com>
13349
13350 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13351
b3ee6dd9
SM
133522020-01-21 Simon Marchi <simon.marchi@efficios.com>
13353
13354 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13355 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13356 replace with range-based for.
13357 (gdbsim_interrupt_inferior): Remove.
13358 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13359 with a range-based for. Inline code from
13360 gdbsim_interrupt_inferior.
13361
f9fac3c8
SM
133622020-01-21 Simon Marchi <simon.marchi@efficios.com>
13363
13364 * infrun.c (proceed): Fix indentation.
13365
f6474de9
TT
133662020-01-21 Tom Tromey <tromey@adacore.com>
13367
13368 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13369 * python/python.c (python_extension_ops): Update.
13370 (gdbpy_colorize): New function.
13371 * python/lib/gdb/__init__.py (colorize): New function.
13372 * extension.h (ext_lang_colorize): Declare.
13373 * extension.c (ext_lang_colorize): New function.
13374 * extension-priv.h (struct extension_language_ops) <colorize>: New
13375 member.
13376 * cli/cli-style.c (_initialize_cli_style): Update help text.
13377
f0c702d4
LM
133782020-01-21 Luis Machado <luis.machado@linaro.org>
13379
13380 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13381 <cond>: Change type to bool.
13382 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13383 (aarch64_displaced_step_cb): Likewise.
13384 (aarch64_displaced_step_tb): Likewise.
13385
1ab139e5
LM
133862020-01-21 Luis Machado <luis.machado@linaro.org>
13387
13388 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13389 output.
13390
0c271889
LM
133912020-01-21 Luis Machado <luis.machado@linaro.org>
13392
13393 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13394 <pc_adjust>: Adjust the documentation.
13395 (aarch64_displaced_step_fixup): Check if PC really moved before
13396 adjusting it.
13397
4d89c1c7
TT
133982020-01-19 Tom Tromey <tom@tromey.com>
13399
13400 * disasm.c (~gdb_disassembler): New destructor.
13401 (gdb_buffered_insn_length): Call disassemble_free_target.
13402 * disasm.h (class gdb_disassembler): Declare destructor. Use
13403 DISABLE_COPY_AND_ASSIGN.
13404
c0ab21c2
TT
134052020-01-19 Tom Tromey <tom@tromey.com>
13406
13407 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13408 (die_reader_func_ftype): Remove.
13409 (cutu_reader): New class.
13410 (dw2_get_file_names_reader): Remove "data" parameter.
13411 (dw2_get_file_names): Use cutu_reader.
13412 (create_debug_type_hash_table): Update.
13413 (read_cutu_die_from_dwo): Update comment.
13414 (lookup_dwo_unit): Add dwo_name parameter.
13415 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13416 die_reader_func_ftype and data parameters.
13417 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13418 Remove die_reader_func_ftype and data parameters.
13419 (~cutu_reader): New; from init_cutu_and_read_dies.
13420 (cutu_reader::cutu_reader): Rename from
13421 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13422 and data parameters.
13423 (init_cutu_and_read_dies_simple): Remove.
13424 (struct process_psymtab_comp_unit_data): Remove.
13425 (process_psymtab_comp_unit_reader): Remove data parameter; add
13426 want_partial_unit and pretend_language parameters.
13427 (process_psymtab_comp_unit): Use cutu_reader.
13428 (build_type_psymtabs_reader): Remove data parameter.
13429 (build_type_psymtabs_1): Use cutu_reader.
13430 (process_skeletonless_type_unit): Likewise.
13431 (load_partial_comp_unit_reader): Remove.
13432 (load_partial_comp_unit): Use cutu_reader.
13433 (load_full_comp_unit_reader): Remove.
13434 (load_full_comp_unit): Use cutu_reader.
13435 (struct create_dwo_cu_data): Remove.
13436 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13437 dwo_unit parameters.
13438 (create_cus_hash_table): Use cutu_reader.
13439 (struct dwarf2_read_addr_index_data): Remove.
13440 (dwarf2_read_addr_index_reader): Remove.
13441 (dwarf2_read_addr_index): Use cutu_reader.
13442 (read_signatured_type_reader): Remove.
13443 (read_signatured_type): Use cutu_reader.
13444
45bbae5c
TT
134452020-01-19 Tom Tromey <tom@tromey.com>
13446
13447 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13448 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13449 (tui_wrefresh): Declare.
13450 * tui/tui-wingeneral.c (suppress_output): New global.
13451 (tui_suppress_output, ~tui_suppress_output): New constructor and
13452 destructor.
13453 (tui_wrefresh): New function.
13454 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13455 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13456 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13457 method.
13458 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13459 tui_wrefresh.
13460 (tui_data_window::no_refresh): New method.
13461 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13462 (tui_reg_command): Use tui_suppress_output
13463 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13464 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13465 method.
13466 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13467
4f13c1c0
TT
134682020-01-19 Tom Tromey <tom@tromey.com>
13469
13470 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13471 Handle case where symtab is null.
13472
fa47e446
SM
134732020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13474
13475 * linux-fork.c (one_fork_p): Simplify.
13476
26f42329
SM
134772020-01-17 Simon Marchi <simon.marchi@efficios.com>
13478
13479 * top.c (struct qt_args): Remove.
13480 (kill_or_detach): Change return type to void, replace `void *`
13481 parameter with a proper one.
13482 (print_inferior_quit_action): Likewise.
13483 (quit_confirm): Use range-based for loop to iterate over inferiors.
13484 (quit_force): Likewise.
13485
a9ac81b1
SM
134862020-01-17 Simon Marchi <simon.marchi@efficios.com>
13487
13488 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13489 `void *` parameter with proper parameters.
13490 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13491 (print_one_inferior): Change return type to void, replace `void *`
13492 parameter with proper parameters.
13493 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13494 inferiors.
13495 (get_other_inferior): Remove.
13496 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13497 inferiors.
13498
788eca49
SM
134992020-01-17 Simon Marchi <simon.marchi@efficios.com>
13500
13501 * mi/mi-interp.c (report_initial_inferior): Remove.
13502 (mi_interp::init): Use range-based for to iterate over inferiors.
13503
d9bc85b6
SM
135042020-01-17 Simon Marchi <simon.marchi@efficios.com>
13505
13506 * python/py-inferior.c (build_inferior_list): Remove.
13507 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13508
40c94099
CB
135092020-01-16 Christian Biesinger <cbiesinger@google.com>
13510
13511 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13512 (btrace_stitch_trace): Likewise.
13513 * charset.c (intermediate_encoding): Likewise (vaild).
13514 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13515 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13516 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13517
e0cdfe3c
HD
135182020-01-16 Hannes Domani <ssbssa@yahoo.de>
13519
13520 * windows-tdep.c (windows_get_tlb_type):
13521 Add rtl_user_process_parameters type.
13522
790f1718 135232020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13524 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13525
13526 PR build/24805
13527 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13528 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13529 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13530 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13531 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13532 (ps_plog): Redeclare exported functions with default visibility.
13533
3112ed97
NA
135342020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13535
13536 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13537 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13538
8dc3273e
SM
135392020-01-15 Simon Marchi <simon.marchi@efficios.com>
13540
13541 * infcmd.c (post_create_inferior): Use get_thread_regcache
13542 instead of get_current_regcache.
13543
ff47f4f0
TT
135442020-01-14 Tom Tromey <tom@tromey.com>
13545
13546 PR symtab/12535:
13547 * python/python.c (gdbpy_decode_line): Treat empty string the same
13548 as no argument.
13549
975f45b7
TT
135502020-01-14 Tom Tromey <tom@tromey.com>
13551
13552 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13553
25e57356
TT
135542020-01-14 Tom Tromey <tom@tromey.com>
13555
13556 * nat/linux-btrace.c: Don't include <config.h>.
13557 * nat/linux-ptrace.c: Don't include <config.h>.
13558 * nat/x86-linux-dregs.c: Don't include <config.h>.
13559
05ea2a05
TT
135602020-01-14 Tom Tromey <tom@tromey.com>
13561
13562 * configure: Rebuild.
13563 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13564
01027315
TT
135652020-01-14 Tom Tromey <tom@tromey.com>
13566
13567 * nat/x86-linux-dregs.c: Include configh.h.
13568 * nat/linux-ptrace.c: Include configh.h.
13569 * nat/linux-btrace.c: Include configh.h.
13570 * defs.h: Include config.h, bfd.h.
13571 * configure.ac: Don't source common.host.
13572 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13573 * configure: Rebuild.
13574 * acinclude.m4: Update path.
13575 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13576 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13577 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13578 (CLIBS): Add LIBSUPPORT.
13579 (CDEPS): Likewise.
13580 (COMMON_SFILES): Remove gdbsupport files.
13581 (HFILES_NO_SRCDIR): Likewise.
13582 (stamp-version): Update path to create-version.sh.
13583 (ALLDEPFILES): Remove gdbsupport files.
13584
b2ceabe8
TT
135852020-01-14 Tom Tromey <tom@tromey.com>
13586
13587 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13588 USE_WIN32API when needed.
13589 * configure.ac (USE_WIN32API): Don't define.
13590 (WIN32LIBS): Use WIN32APILIBS.
13591 * configure: Rebuild.
13592
25c51f71
TT
135932020-01-14 Tom Tromey <tom@tromey.com>
13594
13595 * configure: Rebuild.
13596 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13597
717c684d
BE
135982020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13599
13600 * skip.c (skip_function_command): Make skip w/o arguments use the
13601 name of the inlined function if pc is inside any inlined function.
13602
7da6a5b9
LM
136032020-01-14 Luis Machado <luis.machado@linaro.org>
13604
13605 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13606 * infrun.c (resume_1): Likewise.
13607 (handle_inferior_event): Remove stale comment.
13608 * linux-nat.c (linux_nat_target::resume): Update comments.
13609 (save_stop_reason): Likewise.
13610 (linux_nat_filter_event): Likewise.
13611 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13612
44e4c775
AB
136132020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13614
13615 * elfread.c (record_minimal_symbol): Set section index to 0 for
13616 non-allocatable sections.
13617
18a8505e
AT
13618
136192020-01-13 Ali Tamur <tamur@google.com>
13620
13621 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13622 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13623 to gdb::optional. Update comments.
13624 (dwo_file): Update comments.
13625 (read_attribute): Update API to take an additional out parameter,
13626 need_reprocess. This is used to mark attributes that need other
13627 attributes (e.g. str_offsets_base) for correct computation which may not
13628 have been read yet.
13629 (read_attribute_reprocess): New function declaration.
13630 (read_addr_index): Likewise.
13631 (read_dwo_str_index): Likewise.
13632 (read_stub_str_index): Likewise.
13633 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13634 (lookup_addr_base): New function definition.
13635 (lookup_ranges_base): Likewise.
13636 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13637 lookup_ranges_base.
13638 (init_cutu_and_read_dies): Update comments.
13639 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13640 unit. This is used to inherit parent's str_offsets_base and addr_base.
13641 Update comments.
13642 (init_cutu_and_read_dies_simple): Reflect API changes.
13643 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13644 (create_cus_hash_table): Change API to take parent compile unit.
13645 Reflect API changes.
13646 (open_and_init_dwo_file): Reflect API changes.
13647 (dwarf2_get_pc_bounds): Update comments.
13648 (dwarf2_record_block_ranges): Likewise.
13649 (read_full_die_1): Change implementation to reprocess attributes that
13650 need str_offsets_base and addr_base.
13651 (partial_die_info::read): Likewise.
13652 (read_attribute_reprocess): New function definition.
13653 (read_attribute_value): Change API to take an additional out parameter,
13654 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13655 when a non-dwo compile unit has index based attributes.
13656 (read_attribute): Reflect API changes.
13657 (read_addr_index_1): Reflect API changes. Update comments.
13658 (dwarf2_read_addr_index_data): Reflect API changes.
13659 (dwarf2_read_addr_index): Likewise.
13660 (read_str_index): Change API and implementation. This becomes a helper
13661 to be used by the new string index related methods. Update error
13662 message and comments.
13663 (read_dwo_str_index): New function definition.
13664 (read_stub_str_index): Likewise.
13665 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13666 * symfile.h (dwarf2_debug_sections): Likewise.
13667 * xcoffread.c (dwarf2_debug_sections): Likewise.
13668
0cac9354
SM
136692020-01-13 Simon Marchi <simon.marchi@efficios.com>
13670
13671 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13672 core_reg_sect type to gdb_byte *.
13673 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13674 * cris-tdep.c (fetch_core_registers): Likewise.
13675 * corelow.c (core_target::get_core_register_section): Change
13676 type of `contents` to gdb::byte_vector.
13677
9a6d629c
AB
136782020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13679
13680 * tui/tui-wingeneral.c (box_win): Position the title in the center
13681 of the border.
13682
d8b2f9e3
SM
136832020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13684
13685 * corelow.c (core_target::get_core_register_section): Use
13686 std::vector instead of alloca.
13687
bb564c58
SM
136882020-01-13 Simon Marchi <simon.marchi@efficios.com>
13689
13690 * warning.m4: Add -Wmissing-declarations to build_warnings.
13691 * configure: Re-generate.
13692
6b366111
SM
136932020-01-13 Simon Marchi <simon.marchi@efficios.com>
13694
13695 * python/python.c (init__gdb_module): Add declaration.
13696
6c265988
SM
136972020-01-13 Simon Marchi <simon.marchi@efficios.com>
13698
13699 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13700 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13701 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13702 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13703 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13704 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13705 * ada-exp.y (_initialize_ada_exp): Add declaration.
13706 * ada-lang.c (_initialize_ada_language): Add declaration.
13707 * ada-tasks.c (_initialize_tasks): Add declaration.
13708 * agent.c (_initialize_agent): Add declaration.
13709 * aix-thread.c (_initialize_aix_thread): Add declaration.
13710 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13711 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13712 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13713 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13714 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13715 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13716 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13717 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13718 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13719 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13720 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13721 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13722 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13723 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13724 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13725 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13726 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13727 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13728 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13729 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13730 * annotate.c (_initialize_annotate): Add declaration.
13731 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13732 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13733 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13734 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13735 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13736 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13737 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13738 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13739 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13740 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13741 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13742 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13743 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13744 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13745 * auto-load.c (_initialize_auto_load): Add declaration.
13746 * auxv.c (_initialize_auxv): Add declaration.
13747 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13748 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13749 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13750 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13751 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13752 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13753 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13754 * breakpoint.c (_initialize_breakpoint): Add declaration.
13755 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13756 * btrace.c (_initialize_btrace): Add declaration.
13757 * charset.c (_initialize_charset): Add declaration.
13758 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13759 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13760 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13761 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13762 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13763 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13764 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13765 * coffread.c (_initialize_coffread): Add declaration.
13766 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13767 * compile/compile.c (_initialize_compile): Add declaration.
13768 * complaints.c (_initialize_complaints): Add declaration.
13769 * completer.c (_initialize_completer): Add declaration.
13770 * copying.c (_initialize_copying): Add declaration.
13771 * corefile.c (_initialize_core): Add declaration.
13772 * corelow.c (_initialize_corelow): Add declaration.
13773 * cp-abi.c (_initialize_cp_abi): Add declaration.
13774 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13775 * cp-support.c (_initialize_cp_support): Add declaration.
13776 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13777 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13778 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13779 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13780 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13781 * ctfread.c (_initialize_ctfread): Add declaration.
13782 * d-lang.c (_initialize_d_language): Add declaration.
13783 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13784 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13785 * dbxread.c (_initialize_dbxread): Add declaration.
13786 * dcache.c (_initialize_dcache): Add declaration.
13787 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13788 * disasm.c (_initialize_disasm): Add declaration.
13789 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13790 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13791 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13792 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13793 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13794 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13795 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13796 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13797 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13798 * elfread.c (_initialize_elfread): Add declaration.
13799 * exec.c (_initialize_exec): Add declaration.
13800 * extension.c (_initialize_extension): Add declaration.
13801 * f-lang.c (_initialize_f_language): Add declaration.
13802 * f-valprint.c (_initialize_f_valprint): Add declaration.
13803 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13804 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13805 * filesystem.c (_initialize_filesystem): Add declaration.
13806 * findcmd.c (_initialize_mem_search): Add declaration.
13807 * findvar.c (_initialize_findvar): Add declaration.
13808 * fork-child.c (_initialize_fork_child): Add declaration.
13809 * frame-base.c (_initialize_frame_base): Add declaration.
13810 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13811 * frame.c (_initialize_frame): Add declaration.
13812 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13813 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13814 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13815 * gcore.c (_initialize_gcore): Add declaration.
13816 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13817 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13818 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13819 * gdbarch.c (_initialize_gdbarch): Add declaration.
13820 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13821 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13822 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13823 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13824 * go-lang.c (_initialize_go_language): Add declaration.
13825 * go32-nat.c (_initialize_go32_nat): Add declaration.
13826 * guile/guile.c (_initialize_guile): Add declaration.
13827 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13828 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13829 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13830 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13831 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13832 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13833 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13834 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13835 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13836 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13837 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13838 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13839 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13840 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13841 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13842 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13843 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13844 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13845 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13846 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13847 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13848 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13849 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13850 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13851 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13852 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13853 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13854 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13855 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13856 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13857 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13858 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13859 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13860 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13861 * infcall.c (_initialize_infcall): Add declaration.
13862 * infcmd.c (_initialize_infcmd): Add declaration.
13863 * inflow.c (_initialize_inflow): Add declaration.
13864 * infrun.c (_initialize_infrun): Add declaration.
13865 * interps.c (_initialize_interpreter): Add declaration.
13866 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13867 * jit.c (_initialize_jit): Add declaration.
13868 * language.c (_initialize_language): Add declaration.
13869 * linux-fork.c (_initialize_linux_fork): Add declaration.
13870 * linux-nat.c (_initialize_linux_nat): Add declaration.
13871 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13872 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13873 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13874 * m2-lang.c (_initialize_m2_language): Add declaration.
13875 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13876 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13877 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13878 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13879 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13880 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13881 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13882 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13883 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13884 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13885 * machoread.c (_initialize_machoread): Add declaration.
13886 * macrocmd.c (_initialize_macrocmd): Add declaration.
13887 * macroscope.c (_initialize_macroscope): Add declaration.
13888 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13889 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13890 * maint.c (_initialize_maint_cmds): Add declaration.
13891 * mdebugread.c (_initialize_mdebugread): Add declaration.
13892 * memattr.c (_initialize_mem): Add declaration.
13893 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13894 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13895 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13896 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13897 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13898 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13899 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13900 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13901 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13902 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13903 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13904 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13905 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13906 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13907 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13908 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13909 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13910 * mipsread.c (_initialize_mipsread): Add declaration.
13911 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13912 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13913 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13914 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13915 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13916 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13917 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13918 * nto-procfs.c (_initialize_procfs): Add declaration.
13919 * objc-lang.c (_initialize_objc_language): Add declaration.
13920 * observable.c (_initialize_observer): Add declaration.
13921 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13922 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13923 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13924 * osabi.c (_initialize_gdb_osabi): Add declaration.
13925 * osdata.c (_initialize_osdata): Add declaration.
13926 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13927 * parse.c (_initialize_parse): Add declaration.
13928 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13929 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13930 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13931 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13932 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13933 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13934 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13935 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13936 * printcmd.c (_initialize_printcmd): Add declaration.
13937 * probe.c (_initialize_probe): Add declaration.
13938 * proc-api.c (_initialize_proc_api): Add declaration.
13939 * proc-events.c (_initialize_proc_events): Add declaration.
13940 * proc-service.c (_initialize_proc_service): Add declaration.
13941 * procfs.c (_initialize_procfs): Add declaration.
13942 * producer.c (_initialize_producer): Add declaration.
13943 * psymtab.c (_initialize_psymtab): Add declaration.
13944 * python/python.c (_initialize_python): Add declaration.
13945 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13946 * record-btrace.c (_initialize_record_btrace): Add declaration.
13947 * record-full.c (_initialize_record_full): Add declaration.
13948 * record.c (_initialize_record): Add declaration.
13949 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13950 * regcache.c (_initialize_regcache): Add declaration.
13951 * reggroups.c (_initialize_reggroup): Add declaration.
13952 * remote-notif.c (_initialize_notif): Add declaration.
13953 * remote-sim.c (_initialize_remote_sim): Add declaration.
13954 * remote.c (_initialize_remote): Add declaration.
13955 * reverse.c (_initialize_reverse): Add declaration.
13956 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13957 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13958 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13959 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13960 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13961 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13962 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13963 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13964 Add declaration.
13965 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13966 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13967 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13968 * rust-exp.y (_initialize_rust_exp): Add declaration.
13969 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13970 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13971 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13972 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13973 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13974 * score-tdep.c (_initialize_score_tdep): Add declaration.
13975 * ser-go32.c (_initialize_ser_dos): Add declaration.
13976 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13977 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13978 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13979 * ser-uds.c (_initialize_ser_socket): Add declaration.
13980 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13981 * serial.c (_initialize_serial): Add declaration.
13982 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13983 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13984 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13985 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13986 * skip.c (_initialize_step_skip): Add declaration.
13987 * sol-thread.c (_initialize_sol_thread): Add declaration.
13988 * solib-aix.c (_initialize_solib_aix): Add declaration.
13989 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13990 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13991 * solib-frv.c (_initialize_frv_solib): Add declaration.
13992 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13993 * solib-target.c (_initialize_solib_target): Add declaration.
13994 * solib.c (_initialize_solib): Add declaration.
13995 * source-cache.c (_initialize_source_cache): Add declaration.
13996 * source.c (_initialize_source): Add declaration.
13997 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13998 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13999 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14000 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14001 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14002 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14003 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14004 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14005 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14006 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14007 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14008 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14009 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14010 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14011 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14012 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14013 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14014 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14015 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14016 * stabsread.c (_initialize_stabsread): Add declaration.
14017 * stack.c (_initialize_stack): Add declaration.
14018 * stap-probe.c (_initialize_stap_probe): Add declaration.
14019 * std-regs.c (_initialize_frame_reg): Add declaration.
14020 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14021 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14022 * symfile.c (_initialize_symfile): Add declaration.
14023 * symmisc.c (_initialize_symmisc): Add declaration.
14024 * symtab.c (_initialize_symtab): Add declaration.
14025 * target.c (_initialize_target): Add declaration.
14026 * target-connection.c (_initialize_target_connection): Add
14027 declaration.
14028 * target-dcache.c (_initialize_target_dcache): Add declaration.
14029 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14030 * thread.c (_initialize_thread): Add declaration.
14031 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14032 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14033 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14034 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14035 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14036 * tracectf.c (_initialize_ctf): Add declaration.
14037 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14038 * tracefile.c (_initialize_tracefile): Add declaration.
14039 * tracepoint.c (_initialize_tracepoint): Add declaration.
14040 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14041 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14042 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14043 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14044 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14045 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14046 * tui/tui.c (_initialize_tui): Add declaration.
14047 * typeprint.c (_initialize_typeprint): Add declaration.
14048 * ui-style.c (_initialize_ui_style): Add declaration.
14049 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14050 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14051 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14052 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14053 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14054 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14055 * unittests/filtered_iterator-selftests.c
14056 (_initialize_filtered_iterator_selftests): Add declaration.
14057 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14058 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14059 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14060 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14061 * unittests/main-thread-selftests.c
14062 (_initialize_main_thread_selftests): Add declaration.
14063 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14064 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14065 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14066 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14067 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14068 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14069 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14070 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14071 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14072 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14073 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14074 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14075 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14076 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14077 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14078 declaration.
14079 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14080 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14081 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14082 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14083 * user-regs.c (_initialize_user_regs): Add declaration.
14084 * utils.c (_initialize_utils): Add declaration.
14085 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14086 * valops.c (_initialize_valops): Add declaration.
14087 * valprint.c (_initialize_valprint): Add declaration.
14088 * value.c (_initialize_values): Add declaration.
14089 * varobj.c (_initialize_varobj): Add declaration.
14090 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14091 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14092 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14093 * windows-nat.c (_initialize_windows_nat): Add declaration.
14094 (_initialize_check_for_gdb_ini): Add declaration.
14095 (_initialize_loadable): Add declaration.
14096 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14097 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14098 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14099 * xcoffread.c (_initialize_xcoffread): Add declaration.
14100 * xml-support.c (_initialize_xml_support): Add declaration.
14101 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14102 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14103 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14104 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14105
e2de1eec
SM
141062020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14107
14108 * regformats/regdat.sh: Generate declaration for init function.
14109
e0037b4c
SM
141102020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14111
14112 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14113 up.
14114 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14115 close_one_inferior>: New methods.
14116 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14117 pass down target to find_inferior_pid.
14118 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14119 Pass down target to find_inferior_ptid.
14120 (gdbsim_target::create_inferior): Pass down target to
14121 add_thread_silent.
14122 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14123 target down to find_inferior_ptid and switch_to_thread.
14124 (gdbsim_target::close): Update to call close_one_inferior.
14125 (struct resume_data): Remove.
14126 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14127 directly, rather than through a void pointer.
14128 (gdbsim_target::resume): Update to call resume_one_inferior.
14129
58920b5b
SM
141302020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14131
14132 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14133
4ec89149
PA
141342020-01-12 Pedro Alves <palves@redhat.com>
14135
14136 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14137 directly for the current inferior instead of
14138 discard_all_inferiors.
14139 (discard_all_inferiors): Delete.
14140
7c392d1d
TT
141412020-01-11 Tom Tromey <tom@tromey.com>
14142
14143 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14144 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14145 deprecated_safe_get_selected_frame.
14146
d9ebdab7
TBA
141472020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14148
14149 * inferior.c (print_inferior): Switch inferior before printing it.
14150
f3c469b9
PA
141512020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14152 Pedro Alves <palves@redhat.com>
14153
14154 * progspace-and-thread.c (switch_to_program_space_and_thread):
14155 Assert there's an inferior for PSPACE. Use
14156 switch_to_inferior_no_thread to switch the inferior too.
14157 * progspace.c (program_space::~program_space): Call
14158 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14159 (program_space::free_all_objfiles): Don't call clear_symtab_users
14160 here.
14161 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14162
65c574f6
PA
141632020-01-10 Pedro Alves <palves@redhat.com>
14164
14165 * NEWS: Mention multi-target debugging, "info connections", and
14166 "add-inferior -no-connection".
14167
2f4fcf00
PA
141682020-01-10 Pedro Alves <palves@redhat.com>
14169
14170 * infrun.c: Include "target-connection.h".
14171 (check_multi_target_resumption): New.
14172 (proceed): Call it.
14173 * target-connection.c (make_target_connection_string): Make
14174 extern.
14175 * target-connection.h (make_target_connection_string): Declare.
14176
121b3efd
PA
141772020-01-10 Pedro Alves <palves@redhat.com>
14178
14179 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14180 * inferior.c (uiout_field_connection): New function.
14181 (print_inferior): Add new "connection-id" column.
14182 (add_inferior_command): Show connection number/string of added
14183 inferior.
14184 * process-stratum-target.h
14185 (process_stratum_target::connection_string): New virtual method.
14186 (process_stratum_target::connection_number): New field.
14187 * remote.c (remote_target::connection_string): New override.
14188 * target-connection.c: New file.
14189 * target-connection.h: New file.
14190 * target.c (decref_target): Remove process_stratum targets from
14191 the connection list.
14192 (target_stack::push): Add process_stratum targets to the
14193 connection list.
14194
4f837581
PA
141952020-01-10 Pedro Alves <palves@redhat.com>
14196
14197 Revert:
14198 2016-04-12 Pedro Alves <palves@redhat.com>
14199 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14200 Remove references to name.
14201 * serial.h (struct serial) <name>: Delete.
14202
f4ec508e
PA
142032020-01-10 Pedro Alves <palves@redhat.com>
14204
14205 * gdbarch-selftests.c (register_to_value_test): Remove "target
14206 already pushed" check.
14207
5b6d1e4f
PA
142082020-01-10 Pedro Alves <palves@redhat.com>
14209 John Baldwin <jhb@FreeBSD.org>
14210
14211 * aarch64-linux-nat.c
14212 (aarch64_linux_nat_target::thread_architecture): Adjust.
14213 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14214 (task_command_1): Likewise.
14215 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14216 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14217 (aix_thread_target::store_registers)
14218 (aix_thread_target::thread_alive): Adjust.
14219 * amd64-fbsd-tdep.c: Include "inferior.h".
14220 (amd64fbsd_get_thread_local_address): Pass down target.
14221 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14222 thread's gdbarch instead of target_gdbarch.
14223 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14224 get_last_target_status.
14225 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14226 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14227 inferiors.
14228 (update_inserted_breakpoint_locations): Skip if inferiors with no
14229 execution.
14230 (update_global_location_list): When handling moribund locations,
14231 find representative inferior for location's pspace, and use thread
14232 count of its process_stratum target.
14233 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14234 * bsd-uthread.c (bsd_uthread_target::wait): Use
14235 as_process_stratum_target and adjust thread_change_ptid and
14236 add_thread calls.
14237 (bsd_uthread_target::update_thread_list): Use
14238 as_process_stratum_target and adjust find_thread_ptid,
14239 thread_change_ptid and add_thread calls.
14240 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14241 find_thread_ptid call.
14242 * corelow.c (add_to_thread_list): Adjust add_thread call.
14243 (core_target_open): Adjust add_thread_silent and thread_count
14244 calls.
14245 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14246 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14247 * event-top.c (async_disconnect): Pop targets from all inferiors.
14248 * exec.c (add_target_sections): Push exec target on all inferiors
14249 sharing the program space.
14250 (remove_target_sections): Remove the exec target from all
14251 inferiors sharing the program space.
14252 (exec_on_vfork): New.
14253 * exec.h (exec_on_vfork): Declare.
14254 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14255 Pass it down.
14256 (fbsd_nat_target::update_thread_list): Adjust.
14257 (fbsd_nat_target::resume): Adjust.
14258 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14259 down.
14260 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14261 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14262 get_thread_arch_regcache call.
14263 * fork-child.c (gdb_startup_inferior): Pass target down to
14264 startup_inferior and set_executing.
14265 * gdbthread.h (struct process_stratum_target): Forward declare.
14266 (add_thread, add_thread_silent, add_thread_with_info)
14267 (in_thread_list): Add process_stratum_target parameter.
14268 (find_thread_ptid(inferior*, ptid_t)): New overload.
14269 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14270 parameter.
14271 (all_threads()): Delete overload.
14272 (all_threads, all_non_exited_threads): Add process_stratum_target
14273 parameter.
14274 (all_threads_safe): Use brace initialization.
14275 (thread_count): Add process_stratum_target parameter.
14276 (set_resumed, set_running, set_stop_requested, set_executing)
14277 (threads_are_executing, finish_thread_state): Add
14278 process_stratum_target parameter.
14279 (switch_to_thread): Use is_current_thread.
14280 * i386-fbsd-tdep.c: Include "inferior.h".
14281 (i386fbsd_get_thread_local_address): Pass down target.
14282 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14283 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14284 have_inferiors check.
14285 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14286 (inf_ptrace_target::attach): Adjust.
14287 * infcall.c (run_inferior_call): Adjust.
14288 * infcmd.c (run_command_1): Pass target to
14289 scoped_finish_thread_state.
14290 (proceed_thread_callback): Skip inferiors with no execution.
14291 (continue_command): Rename 'all_threads' local to avoid hiding
14292 'all_threads' function. Adjust get_last_target_status call.
14293 (prepare_one_step): Adjust set_running call.
14294 (signal_command): Use user_visible_resume_target. Compare thread
14295 pointers instead of inferior_ptid.
14296 (info_program_command): Adjust to pass down target.
14297 (attach_command): Mark target's 'thread_executing' flag.
14298 (stop_current_target_threads_ns): New, factored out from ...
14299 (interrupt_target_1): ... this. Switch inferior before making
14300 target calls.
14301 * inferior-iter.h
14302 (struct all_inferiors_iterator, struct all_inferiors_range)
14303 (struct all_inferiors_safe_range)
14304 (struct all_non_exited_inferiors_range): Filter on
14305 process_stratum_target too. Remove explicit.
14306 * inferior.c (inferior::inferior): Push dummy target on target
14307 stack.
14308 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14309 Add process_stratum_target parameter, and pass it down.
14310 (have_live_inferiors): Adjust.
14311 (switch_to_inferior_and_push_target): New.
14312 (add_inferior_command, clone_inferior_command): Handle
14313 "-no-connection" parameter. Use
14314 switch_to_inferior_and_push_target.
14315 (_initialize_inferior): Mention "-no-connection" option in
14316 the help of "add-inferior" and "clone-inferior" commands.
14317 * inferior.h: Include "process-stratum-target.h".
14318 (interrupt_target_1): Use bool.
14319 (struct inferior) <push_target, unpush_target, target_is_pushed,
14320 find_target_beneath, top_target, process_target, target_at,
14321 m_stack>: New.
14322 (discard_all_inferiors): Delete.
14323 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14324 (all_inferiors, all_non_exited_inferiors): Add
14325 process_stratum_target parameter.
14326 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14327 (target_last_proc_target): New global.
14328 (follow_fork_inferior): Push target on new inferior. Pass target
14329 to add_thread_silent. Call exec_on_vfork. Handle target's
14330 reference count.
14331 (follow_fork): Adjust get_last_target_status call. Also consider
14332 target.
14333 (follow_exec): Push target on new inferior.
14334 (struct execution_control_state) <target>: New field.
14335 (user_visible_resume_target): New.
14336 (do_target_resume): Call target_async.
14337 (resume_1): Set target's threads_executing flag. Consider resume
14338 target.
14339 (commit_resume_all_targets): New.
14340 (proceed): Also consider resume target. Skip threads of inferiors
14341 with no execution. Commit resumtion in all targets.
14342 (start_remote): Pass current inferior to wait_for_inferior.
14343 (infrun_thread_stop_requested): Consider target as well. Pass
14344 thread_info pointer to clear_inline_frame_state instead of ptid.
14345 (infrun_thread_thread_exit): Consider target as well.
14346 (random_pending_event_thread): New inferior parameter. Use it.
14347 (do_target_wait): Rename to ...
14348 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14349 down.
14350 (threads_are_resumed_pending_p, do_target_wait): New.
14351 (prepare_for_detach): Adjust calls.
14352 (wait_for_inferior): New inferior parameter. Handle it. Use
14353 do_target_wait_1 instead of do_target_wait.
14354 (fetch_inferior_event): Adjust. Switch to representative
14355 inferior. Pass target down.
14356 (set_last_target_status): Add process_stratum_target parameter.
14357 Save target in global.
14358 (get_last_target_status): Add process_stratum_target parameter and
14359 handle it.
14360 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14361 (context_switch): Check inferior_ptid == null_ptid before calling
14362 inferior_thread().
14363 (get_inferior_stop_soon): Pass down target.
14364 (wait_one): Rename to ...
14365 (poll_one_curr_target): ... this.
14366 (struct wait_one_event): New.
14367 (wait_one): New.
14368 (stop_all_threads): Adjust.
14369 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14370 event's target.
14371 (switch_back_to_stepped_thread): Also consider target.
14372 (print_stop_event): Update.
14373 (normal_stop): Update. Also consider the resume target.
14374 * infrun.h (wait_for_inferior): Remove declaration.
14375 (user_visible_resume_target): New declaration.
14376 (get_last_target_status, set_last_target_status): New
14377 process_stratum_target parameter.
14378 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14379 process_stratum_target parameter, and use it.
14380 (clear_inline_frame_state (thread_info*)): New.
14381 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14382 process_stratum_target parameter.
14383 (clear_inline_frame_state (thread_info*)): Declare.
14384 * linux-fork.c (delete_checkpoint_command): Pass target down to
14385 find_thread_ptid.
14386 (checkpoint_command): Adjust.
14387 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14388 instead of just tweaking inferior_ptid.
14389 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14390 (exit_lwp): Pass target down to find_thread_ptid.
14391 (attach_proc_task_lwp_callback): Pass target down to
14392 add_thread/set_running/set_executing.
14393 (linux_nat_target::attach): Pass target down to
14394 thread_change_ptid.
14395 (get_detach_signal): Pass target down to find_thread_ptid.
14396 Consider last target status's target.
14397 (linux_resume_one_lwp_throw, resume_lwp)
14398 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14399 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14400 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14401 (linux_nat_target::async_wait_fd): New.
14402 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14403 target down.
14404 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14405 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14406 * linux-thread-db.c (struct thread_db_info::process_target): New
14407 field.
14408 (add_thread_db_info): Save target.
14409 (get_thread_db_info): New process_stratum_target parameter. Also
14410 match target.
14411 (delete_thread_db_info): New process_stratum_target parameter.
14412 Also match target.
14413 (thread_from_lwp): Adjust to pass down target.
14414 (thread_db_notice_clone): Pass down target.
14415 (check_thread_db_callback): Pass down target.
14416 (try_thread_db_load_1): Always push the thread_db target.
14417 (try_thread_db_load, record_thread): Pass target down.
14418 (thread_db_target::detach): Pass target down. Always unpush the
14419 thread_db target.
14420 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14421 target down. Always unpush the thread_db target.
14422 (find_new_threads_callback, thread_db_find_new_threads_2)
14423 (thread_db_target::update_thread_list): Pass target down.
14424 (thread_db_target::pid_to_str): Pass current inferior down.
14425 (thread_db_target::get_thread_local_address): Pass target down.
14426 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14427 target down.
14428 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14429 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14430 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14431 (procfs_init_inferior): Rename to ...
14432 (procfs_target::procfs_init_inferior): ... this and adjust.
14433 (procfs_target::create_inferior, procfs_notice_thread)
14434 (procfs_do_thread_registers): Adjust.
14435 * ppc-fbsd-tdep.c: Include "inferior.h".
14436 (ppcfbsd_get_thread_local_address): Pass down target.
14437 * proc-service.c (ps_xfer_memory): Switch current inferior and
14438 program space as well.
14439 (get_ps_regcache): Pass target down.
14440 * process-stratum-target.c
14441 (process_stratum_target::thread_address_space)
14442 (process_stratum_target::thread_architecture): Pass target down.
14443 * process-stratum-target.h
14444 (process_stratum_target::threads_executing): New field.
14445 (as_process_stratum_target): New.
14446 * ravenscar-thread.c
14447 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14448 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14449 down.
14450 * record-btrace.c (record_btrace_target::info_record): Adjust.
14451 (record_btrace_target::record_method)
14452 (record_btrace_target::record_is_replaying)
14453 (record_btrace_target::fetch_registers)
14454 (get_thread_current_frame_id, record_btrace_target::resume)
14455 (record_btrace_target::wait, record_btrace_target::stop): Pass
14456 target down.
14457 * record-full.c (record_full_wait_1): Switch to event thread.
14458 Pass target down.
14459 * regcache.c (regcache::regcache)
14460 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14461 process_stratum_target parameter and handle it.
14462 (current_thread_target): New global.
14463 (get_thread_regcache): Add process_stratum_target parameter and
14464 handle it. Switch inferior before calling target method.
14465 (get_thread_regcache): Pass target down.
14466 (get_thread_regcache_for_ptid): Pass target down.
14467 (registers_changed_ptid): Add process_stratum_target parameter and
14468 handle it.
14469 (registers_changed_thread, registers_changed): Pass target down.
14470 (test_get_thread_arch_aspace_regcache): New.
14471 (current_regcache_test): Define a couple local test_target_ops
14472 instances and use them for testing.
14473 (readwrite_regcache): Pass process_stratum_target parameter.
14474 (cooked_read_test, cooked_write_test): Pass mock_target down.
14475 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14476 (get_thread_arch_aspace_regcache): Add process_stratum_target
14477 parameter.
14478 (regcache::target): New method.
14479 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14480 (regcache::registers_changed_ptid): Add process_stratum_target
14481 parameter.
14482 (regcache::m_target): New field.
14483 (registers_changed_ptid): Add process_stratum_target parameter.
14484 * remote.c (remote_state::supports_vCont_probed): New field.
14485 (remote_target::async_wait_fd): New method.
14486 (remote_unpush_and_throw): Add remote_target parameter.
14487 (get_current_remote_target): Adjust.
14488 (remote_target::remote_add_inferior): Push target.
14489 (remote_target::remote_add_thread)
14490 (remote_target::remote_notice_new_inferior)
14491 (get_remote_thread_info): Pass target down.
14492 (remote_target::update_thread_list): Skip threads of inferiors
14493 bound to other targets. (remote_target::close): Don't discard
14494 inferiors. (remote_target::add_current_inferior_and_thread)
14495 (remote_target::process_initial_stop_replies)
14496 (remote_target::start_remote)
14497 (remote_target::remote_serial_quit_handler): Pass down target.
14498 (remote_target::remote_unpush_target): New remote_target
14499 parameter. Unpush the target from all inferiors.
14500 (remote_target::remote_unpush_and_throw): New remote_target
14501 parameter. Pass it down.
14502 (remote_target::open_1): Check whether the current inferior has
14503 execution instead of checking whether any inferior is live. Pass
14504 target down.
14505 (remote_target::remote_detach_1): Pass down target. Use
14506 remote_unpush_target.
14507 (extended_remote_target::attach): Pass down target.
14508 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14509 (remote_target::append_resumption): Pass down target.
14510 (remote_target::append_pending_thread_resumptions)
14511 (remote_target::remote_resume_with_hc, remote_target::resume)
14512 (remote_target::commit_resume): Pass down target.
14513 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14514 (remote_target::interrupt_query)
14515 (remote_target::remove_new_fork_children)
14516 (remote_target::check_pending_events_prevent_wildcard_vcont)
14517 (remote_target::remote_parse_stop_reply)
14518 (remote_target::process_stop_reply): Pass down target.
14519 (first_remote_resumed_thread): New remote_target parameter. Pass
14520 it down.
14521 (remote_target::wait_as): Pass down target.
14522 (unpush_and_perror): New remote_target parameter. Pass it down.
14523 (remote_target::readchar, remote_target::remote_serial_write)
14524 (remote_target::getpkt_or_notif_sane_1)
14525 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14526 down target.
14527 (remote_target::mourn_inferior): Pass down target. Use
14528 remote_unpush_target.
14529 (remote_target::core_of_thread)
14530 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14531 (remote_target::pid_to_exec_file)
14532 (remote_target::thread_handle_to_thread_info): Pass down target.
14533 (remote_target::async_wait_fd): New.
14534 * riscv-fbsd-tdep.c: Include "inferior.h".
14535 (riscv_fbsd_get_thread_local_address): Pass down target.
14536 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14537 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14538 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14539 Adjust.
14540 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14541 * solib-svr4.c (enable_break): Pass down target.
14542 * spu-multiarch.c (parse_spufs_run): Pass down target.
14543 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14544 * target-delegates.c: Regenerate.
14545 * target.c (g_target_stack): Delete.
14546 (current_top_target): Return the current inferior's top target.
14547 (target_has_execution_1): Refer to the passed-in inferior's top
14548 target.
14549 (target_supports_terminal_ours): Check whether the initial
14550 inferior was already created.
14551 (decref_target): New.
14552 (target_stack::push): Incref/decref the target.
14553 (push_target, push_target, unpush_target): Adjust.
14554 (target_stack::unpush): Defref target.
14555 (target_is_pushed): Return bool. Adjust to refer to the current
14556 inferior's target stack.
14557 (dispose_inferior): Delete, and inline parts ...
14558 (target_preopen): ... here. Only dispose of the current inferior.
14559 (target_detach): Hold strong target reference while detaching.
14560 Pass target down.
14561 (target_thread_name): Add assertion.
14562 (target_resume): Pass down target.
14563 (target_ops::beneath, find_target_at): Adjust to refer to the
14564 current inferior's target stack.
14565 (get_dummy_target): New.
14566 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14567 has a thread running.
14568 (initialize_targets): Rename to ...
14569 (_initialize_target): ... this.
14570 * target.h: Include "gdbsupport/refcounted-object.h".
14571 (struct target_ops): Inherit refcounted_object.
14572 (target_ops::shortname, target_ops::longname): Make const.
14573 (target_ops::async_wait_fd): New method.
14574 (decref_target): Declare.
14575 (struct target_ops_ref_policy): New.
14576 (target_ops_ref): New typedef.
14577 (get_dummy_target): Declare function.
14578 (target_is_pushed): Return bool.
14579 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14580 (all_matching_threads_iterator::all_matching_threads_iterator):
14581 Handle filter target.
14582 * thread-iter.h (struct all_matching_threads_iterator, struct
14583 all_matching_threads_range, class all_non_exited_threads_range):
14584 Filter by target too. Remove explicit.
14585 * thread.c (threads_executing): Delete.
14586 (inferior_thread): Pass down current inferior.
14587 (clear_thread_inferior_resources): Pass down thread pointer
14588 instead of ptid_t.
14589 (add_thread_silent, add_thread_with_info, add_thread): Add
14590 process_stratum_target parameter. Use it for thread and inferior
14591 searches.
14592 (is_current_thread): New.
14593 (thread_info::deletable): Use it.
14594 (find_thread_ptid, thread_count, in_thread_list)
14595 (thread_change_ptid, set_resumed, set_running): New
14596 process_stratum_target parameter. Pass it down.
14597 (set_executing): New process_stratum_target parameter. Pass it
14598 down. Adjust reference to 'threads_executing'.
14599 (threads_are_executing): New process_stratum_target parameter.
14600 Adjust reference to 'threads_executing'.
14601 (set_stop_requested, finish_thread_state): New
14602 process_stratum_target parameter. Pass it down.
14603 (switch_to_thread): Also match inferior.
14604 (switch_to_thread): New process_stratum_target parameter. Pass it
14605 down.
14606 (update_threads_executing): Reimplement.
14607 * top.c (quit_force): Pop targets from all inferior.
14608 (gdb_init): Don't call initialize_targets.
14609 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14610 Declare.
14611 (windows_add_thread, windows_delete_thread): Adjust.
14612 (get_windows_debug_event): Rename to ...
14613 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14614 * tracefile-tfile.c (tfile_target_open): Pass down target.
14615 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14616 Forward declare.
14617 (switch_to_thread): Add process_stratum_target parameter.
14618 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14619 parameter. Use it.
14620 (mi_on_resume): Pass target down.
14621 * nat/fork-inferior.c (startup_inferior): Add
14622 process_stratum_target parameter. Pass it down.
14623 * nat/fork-inferior.h (startup_inferior): Add
14624 process_stratum_target parameter.
14625 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14626
75c6c844
PA
146272020-01-10 Pedro Alves <palves@redhat.com>
14628
14629 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14630 directly. Instead find the first thread in the thread list and
14631 use switch_to_thread.
14632
78f2c40a
PA
146332020-01-10 Pedro Alves <palves@redhat.com>
14634
14635 * remote.c (remote_target::remote_add_inferior): Don't bind a
14636 process to the current inferior if the current inferior is already
14637 bound to a process.
14638
e7af6c70
TBA
146392020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14640 Pedro Alves <palves@redhat.com>
14641
14642 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14643 If no process is specified, return null_ptid instead of
14644 inferior_ptid.
14645 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14646 TARGET_WAITKIND_SIGNALLED with no pid.
14647
31ba933e
PA
146482020-01-10 Pedro Alves <palves@redhat.com>
14649
14650 * remote.c (first_remote_resumed_thread): New.
14651 (remote_target::wait_as): Use it as default event_ptid instead of
14652 inferior_ptid.
14653
735fc2ca
PA
146542020-01-10 Pedro Alves <palves@redhat.com>
14655
14656 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14657
c17e02e1
PA
146582020-01-10 Pedro Alves <palves@redhat.com>
14659
14660 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14661 not -1.
14662
ab1ddbcf
PA
146632020-01-10 Pedro Alves <palves@redhat.com>
14664
14665 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14666 ptid to get_last_target_status.
14667 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14668 ptid to get_last_target_status.
14669 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14670 get_last_target_status.
14671 (info_program_command): Don't pass a target_waitstatus to
14672 get_last_target_status.
14673 * infrun.c (init_wait_for_inferior): Use
14674 nullify_last_target_wait_ptid.
14675 (get_last_target_status): Handle nullptr arguments.
14676 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14677 (print_stop_event): Don't pass a ptid to get_last_target_status.
14678 (normal_stop): Don't pass a ptid to get_last_target_status.
14679 * infrun.h (get_last_target_status, set_last_target_status): Move
14680 comments here and update.
14681 (nullify_last_target_wait_ptid): Declare.
14682 * linux-fork.c (fork_load_infrun_state): Remove local extern
14683 declaration of nullify_last_target_wait_ptid.
14684 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14685 to get_last_target_status.
14686
f3f8ece4
PA
146872020-01-10 Pedro Alves <palves@redhat.com>
14688
14689 * gdbthread.h (scoped_restore_current_thread)
14690 <dont_restore, restore, m_dont_restore>: Declare.
14691 * thread.c (thread_alive): Add assertion. Return bool.
14692 (switch_to_thread_if_alive): New.
14693 (prune_threads): Switch inferior/thread.
14694 (print_thread_info_1): Switch thread before calling target methods.
14695 (scoped_restore_current_thread::restore): New, factored out from
14696 ...
14697 (scoped_restore_current_thread::~scoped_restore_current_thread):
14698 ... this.
14699 (scoped_restore_current_thread::scoped_restore_current_thread):
14700 Add assertion.
14701 (thread_apply_all_command, thread_select): Use
14702 switch_to_thread_if_alive.
14703 * infrun.c (proceed, restart_threads, handle_signal_stop)
14704 (switch_back_to_stepped_thread): Switch current thread before
14705 calling target methods.
14706
db2d40f7
PA
147072020-01-10 Pedro Alves <palves@redhat.com>
14708
14709 * inferior.c (switch_to_inferior_no_thread): New function,
14710 factored out from ...
14711 (inferior_command): ... here.
14712 * inferior.h (switch_to_inferior_no_thread): Declare.
14713 * mi/mi-main.c (run_one_inferior): Use
14714 switch_to_inferior_no_thread.
14715
bd420a2d
PA
147162020-01-10 Pedro Alves <palves@redhat.com>
14717
14718 * infcmd.c (kill_command): Remove dead code.
14719
ddf5db90
PA
147202020-01-10 Pedro Alves <palves@redhat.com>
14721
14722 * remote.c (remote_target::mourn_inferior): No longer check
14723 whether the target is running.
14724
5018ce90
PA
147252020-01-10 Pedro Alves <palves@redhat.com>
14726
14727 * corelow.c (core_target::has_execution): Change parameter type to
14728 inferior pointer.
14729 * inferior.c (number_of_live_inferiors): Use
14730 inferior::has_execution instead of target_has_execution_1.
14731 * inferior.h (inferior::has_execution): New.
14732 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14733 inferior::has_execution instead of target_has_execution_1.
14734 * process-stratum-target.c
14735 (process_stratum_target::has_execution): Change parameter type to
14736 inferior pointer. Check the inferior's PID instead of
14737 inferior_ptid.
14738 * process-stratum-target.h
14739 (process_stratum_target::has_execution): Change parameter type to
14740 inferior pointer.
14741 * record-full.c (record_full_core_target::has_execution): Change
14742 parameter type to inferior pointer.
14743 * target.c (target_has_execution_1): Change parameter type to
14744 inferior pointer.
14745 (target_has_execution_current): Adjust.
14746 * target.h (target_ops::has_execution): Change parameter type to
14747 inferior pointer.
14748 (target_has_execution_1): Change parameter type to inferior
14749 pointer. Change return type to bool.
14750 * tracefile.h (tracefile_target::has_execution): Change parameter
14751 type to inferior pointer.
14752
74375d18
PA
147532020-01-10 Pedro Alves <palves@redhat.com>
14754
14755 * exceptions.c (print_flush): Remove current_top_target() check.
14756
acdf84a6
PA
147572020-01-10 Pedro Alves <palves@redhat.com>
14758
14759 * remote.c (show_remote_exec_file): Show the current inferior's
14760 exec-file instead of the command variable's value.
14761
ec506636
PA
147622020-01-10 Pedro Alves <palves@redhat.com>
14763
14764 * record-full.c (record_full_resume_ptid): New global.
14765 (record_full_target::resume): Set it.
14766 (record_full_wait_1): Use record_full_resume_ptid instead of
14767 inferior_ptid.
14768
873657b9
PA
147692020-01-10 Pedro Alves <palves@redhat.com>
14770
14771 * gdbthread.h (scoped_restore_current_thread)
14772 <dont_restore, restore, m_dont_restore>: Declare.
14773 * thread.c (thread_alive): Add assertion. Return bool.
14774 (switch_to_thread_if_alive): New.
14775 (prune_threads): Switch inferior/thread.
14776 (print_thread_info_1): Switch thread before calling target methods.
14777 (scoped_restore_current_thread::restore): New, factored out from
14778 ...
14779 (scoped_restore_current_thread::~scoped_restore_current_thread):
14780 ... this.
14781 (scoped_restore_current_thread::scoped_restore_current_thread):
14782 Add assertion.
14783 (thread_apply_all_command, thread_select): Use
14784 switch_to_thread_if_alive.
14785
7f0ae84c
GB
147862020-01-10 George Barrett <bob@bob131.so>
14787
14788 * stap-probe.c (stap_modify_semaphore): Don't check for null
14789 semaphores.
14790 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14791 for null semaphores.
14792
f5a7c406
AB
147932020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14794
14795 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14796 all source windows, and maintain horizontal scroll status while
14797 doing so.
14798
9ae6bf64
TT
147992020-01-09 Tom Tromey <tom@tromey.com>
14800
14801 PR tui/18932:
14802 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14803 update_source_window, not print_source_lines.
14804
b2efe70c
AB
148052020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14806
14807 * tui/tui.c (tui_enable): Register tui hooks after calling
14808 tui_display_main.
14809
5f23a082
CB
148102020-01-09 Christian Biesinger <cbiesinger@google.com>
14811
14812 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14813
3061113b
SM
148142020-01-08 Simon Marchi <simon.marchi@efficios.com>
14815
14816 * thread.c (print_thread_info_1): Fix indentation.
14817
57d75002
CB
148182020-01-09 Christian Biesinger <cbiesinger@google.com>
14819
14820 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14821 unique_xmalloc_ptr outside the if to always free the demangled name.
14822
6a053cb1
TT
148232020-01-08 Tom Tromey <tromey@adacore.com>
14824
14825 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14826 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14827 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14828 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14829 Remove.
14830 (section_offsets): New typedef.
14831 * symtab.c (fixup_section, get_msymbol_address): Update.
14832 * symmisc.c (dump_msymbols): Update.
14833 * symfile.h (relative_addr_info_to_section_offsets)
14834 (symfile_map_offsets_to_segments): Update.
14835 * symfile.c (build_section_addr_info_from_objfile)
14836 (init_objfile_sect_indices): Update.
14837 (struct place_section_arg): Change type of "offsets".
14838 (place_section): Update.
14839 (relative_addr_info_to_section_offsets): Change type of
14840 "section_offsets". Remove "num_sections" parameter.
14841 (default_symfile_offsets, syms_from_objfile_1)
14842 (set_objfile_default_section_offset): Update.
14843 (reread_symbols): No need to preserve section offsets by hand.
14844 (symfile_map_offsets_to_segments): Change type of "offsets".
14845 * stap-probe.c (relocate_address): Update.
14846 * stabsread.h (process_one_symbol): Update.
14847 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14848 (solib_target_relocate_section_addresses): Update.
14849 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14850 Update.
14851 * solib-frv.c (frv_relocate_main_executable): Update.
14852 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14853 * solib-aix.c (solib_aix_get_section_offsets): Change return
14854 type.
14855 (solib_aix_solib_create_inferior_hook): Update.
14856 * remote.c (remote_target::get_offsets): Update.
14857 * psymtab.c (find_pc_sect_psymtab): Update.
14858 * psympriv.h (struct partial_symbol) <address, text_low,
14859 text_high>: Update.
14860 * objfiles.h (obj_section_offset): Update.
14861 (struct objfile) <section_offsets>: Change type.
14862 <num_sections>: Remove.
14863 (objfile_relocate): Update.
14864 * objfiles.c (entry_point_address_query): Update
14865 (relocate_one_symbol): Change type of "section_offsets".
14866 (objfile_relocate1, objfile_relocate1): Change type of
14867 "new_offsets".
14868 (objfile_rebase1): Update.
14869 * mipsread.c (mipscoff_symfile_read): Update.
14870 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14871 parameter.
14872 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14873 (parse_external, psymtab_to_symtab_1): Update.
14874 * machoread.c (macho_symfile_offsets): Update.
14875 * ia64-tdep.c (ia64_find_unwind_table): Update.
14876 * hppa-tdep.c (read_unwind_info): Update.
14877 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14878 * dwarf2read.c (create_addrmap_from_index)
14879 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14880 (process_psymtab_comp_unit_reader, add_partial_symbol)
14881 (add_partial_subprogram, process_full_comp_unit)
14882 (read_file_scope, read_func_scope, read_lexical_block_scope)
14883 (read_call_site_scope, dwarf2_rnglists_process)
14884 (dwarf2_ranges_process, dwarf2_ranges_read)
14885 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14886 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14887 Update.
14888 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14889 Update.
14890 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14891 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14892 (process_one_symbol): Change type of "section_offsets".
14893 * ctfread.c (get_objfile_text_range): Update.
14894 * coffread.c (coff_symtab_read, enter_linenos)
14895 (process_coff_symbol): Update.
14896 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14897 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14898
456e800a
TT
148992020-01-08 Tom Tromey <tromey@adacore.com>
14900
14901 * dwarf2read.c (parse_macro_definition): Use std::string.
14902 (parse_macro_definition): Likewise.
14903
6dfa2fc2
TT
149042020-01-08 Tom Tromey <tromey@adacore.com>
14905
14906 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14907 (ATTR_ALLOC_CHUNK): Remove.
14908
421d1616
TT
149092020-01-08 Tom Tromey <tromey@adacore.com>
14910
14911 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14912
43816ebc
TT
149132020-01-08 Tom Tromey <tromey@adacore.com>
14914
14915 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14916 (dwarf2_compute_name, open_dwo_file): Likewise.
14917 (process_enumeration_scope): Use std::vector.
14918 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14919 (partial_die_info::fixup, dwarf2_start_subfile)
14920 (guess_full_die_structure_name, dwarf2_name): Likewise.
14921 (determine_prefix): Update.
14922 (guess_full_die_structure_name): Make return type const.
14923 (partial_die_full_name): Return unique_xmalloc_ptr.
14924 (DW_FIELD_ALLOC_CHUNK): Remove.
14925
4212d509
TT
149262020-01-07 Tom Tromey <tromey@adacore.com>
14927
14928 PR build/24937:
14929 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14930
06a6207a
JT
149312020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14932
14933 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14934
153d79c4
AB
149352020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14936
14937 * stack.c (print_frame_info): Move disassemble_next_line code
14938 inside source_print block.
14939
66182876
EZ
149402020-01-06 Eli Zaretskii <eliz@gnu.org>
14941
14942 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14943 gdb/signals.h, as we are now using native signal symbols.
14944
cbfa8581
SV
149452020-01-06 Shahab Vahedi <shahab@synopsys.com>
14946
14947 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14948 overflow by an early check of content vs threshold.
aac66a4c 14949 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14950 Likewise.
14951
3f602821
EZ
149522020-01-06 Eli Zaretskii <eliz@gnu.org>
14953
14954 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14955
a08c904d
JT
149562020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14957
14958 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14959 export table if no section contains it's RVA.
14960
89a65580
EZ
149612020-01-06 Eli Zaretskii <eliz@gnu.org>
14962
14963 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14964
8b7fcda2
HD
149652020-01-06 Hannes Domani <ssbssa@yahoo.de>
14966
14967 * source.c (print_source_lines_base): Set last_line_listed.
14968
a61b4f69
SV
149692020-01-06 Shahab Vahedi <shahab@synopsys.com>
14970
14971 * tui/tui-disasm.c: Remove trailing spaces.
14972
559e7e50
EZ
149732020-01-06 Eli Zaretskii <eliz@gnu.org>
14974 Pedro Alves <palves@redhat.com>
14975
14976 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14977 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14978 (windows_gdb_signal_to_target): New function, uses the above
14979 enumeration to convert GDB internal signal codes to equivalent
14980 Windows codes.
14981 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14982 * windows-nat.c: Include "gdb_wait.h".
14983 (get_windows_debug_event): Extract the fatal exception from the
14984 exit status and convert to the equivalent Posix signal number.
14985 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14986 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14987 * gdbsupport/gdb_wait.c: New file, implements
14988 windows_status_to_termsig.
14989 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14990 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14991
f2302a34
AB
149922020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14993
14994 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14995 show_layout.
14996
6a5206eb
LM
149972020-01-05 Luis Machado <luis.machado@linaro.org>
14998
14999 * aarch64-linux-nat.c
15000 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15001 and bfd_mach_aarch64.
15002
6ec1d75e
PW
150032020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15004
15005 * ui-file.c (stdio_file::can_emit_style_escape)
15006 (tee_file::can_emit_style_escape): Ensure style is used also on
15007 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15008 to gdb_stdout.
15009 * main.c (set_gdb_data_directory): Use file style to output the
15010 warning that the given pathname is not a directory.
15011 * top.c (show_history_filename, gdb_safe_append_history)
15012 (show_gdb_datadir): Use file style.
15013
44f81a76
HD
150142020-01-03 Hannes Domani <ssbssa@yahoo.de>
15015
15016 * solib-target.c (struct lm_info_target):
15017 Change offsets to be a unique_xmalloc_ptr.
15018 (solib_target_relocate_section_addresses): Update.
15019
25057eb0
HD
150202020-01-03 Hannes Domani <ssbssa@yahoo.de>
15021
15022 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15023
6e2118f5
BE
150242020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15025
15026 * MAINTAINERS (Write After Approval): Add myself.
15027
8133c7dc
LM
150282020-01-02 Luis Machado <luis.machado@linaro.org>
15029
15030 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15031 Cell BE architecture.
15032 * target.h (struct target_ops) <thread_architecture>: Likewise.
15033
48189bec
HD
150342020-01-01 Hannes Domani <ssbssa@yahoo.de>
15035
15036 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15037
ead1063b
HD
150382020-01-01 Hannes Domani <ssbssa@yahoo.de>
15039
15040 * MAINTAINERS (Write After Approval): Add myself.
15041
e5d78223
JB
150422020-01-01 Joel Brobecker <brobecker@adacore.com>
15043
15044 * gdbarch.sh: Update copyright year range of generated files.
15045
b811d2c2
JB
150462020-01-01 Joel Brobecker <brobecker@adacore.com>
15047
15048 Update copyright year range in all GDB files.
15049
5f4def5c
JB
150502020-01-01 Joel Brobecker <brobecker@adacore.com>
15051
15052 * copyright.py: Convert to Python 3.
15053
51fd4002
JB
150542020-01-01 Joel Brobecker <brobecker@adacore.com>
15055
15056 * copyright.py: Adapt after move of gnulib directory from gdb
15057 directory to toplevel directory.
15058
5fb651f2
JB
150592020-01-01 Joel Brobecker <brobecker@adacore.com>
15060
15061 * copyright.py (main): Exit if run from the wrong directory.
15062
5dd8bf88
JB
150632020-01-01 Joel Brobecker <brobecker@adacore.com>
15064
15065 * top.c (print_gdb_version): Change copyright year to 2020.
15066
9f71dacb 150672020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15068
9f71dacb 15069 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15070
9f71dacb 15071For older changes see ChangeLog-2019.
c906108c
SS
15072\f
15073Local Variables:
15074mode: change-log
15075left-margin: 8
15076fill-column: 74
15077version-control: never
57da7796 15078coding: utf-8
c906108c 15079End: