]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
build_section_table cannot fail
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2d128614
TT
12020-10-12 Tom Tromey <tom@tromey.com>
2
3 * solib.c (solib_map_sections): Update.
4 * record-full.c (record_full_core_open_1): Update.
5 * exec.h (build_section_table): Return a target_section_table.
6 * exec.c (exec_file_attach): Update.
7 (build_section_table): Return a target_section_table.
8 * corelow.c (core_target::core_target): Update.
9 * bfd-target.c (target_bfd::target_bfd): Update.
10
bb2a6777
TT
112020-10-12 Tom Tromey <tom@tromey.com>
12
13 * target.c (target_section_by_addr, memory_xfer_partial_1):
14 Update.
15 * target-section.h (struct target_section_table): Use
16 std::vector.
17 * symfile.h (build_section_addr_info_from_section_table): Take a
18 target_section_table.
19 * symfile.c (build_section_addr_info_from_section_table): Take a
20 target_section_table.
21 * solist.h (struct so_list) <sections>: Change type.
22 <sections_end>: Remove.
23 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
24 (solib_contains_address_p): Update.
25 * solib-svr4.c (scan_dyntag): Update.
26 * solib-dsbt.c (scan_dyntag): Update.
27 * remote.c (remote_target::remote_xfer_live_readonly_partial):
28 Update.
29 * record-full.c (record_full_core_start, record_full_core_end):
30 Remove.
31 (record_full_core_sections): New global.
32 (record_full_core_open_1, record_full_core_target::xfer_partial):
33 Update.
34 * exec.h (build_section_table, section_table_xfer_memory_partial)
35 (add_target_sections): Take a target_section_table.
36 * exec.c (exec_file_attach, clear_section_table): Update.
37 (resize_section_table): Remove.
38 (build_section_table, add_target_sections): Take a
39 target_section_table.
40 (add_target_sections_of_objfile, remove_target_sections)
41 (exec_on_vfork): Update.
42 (section_table_available_memory): Take a target_section_table.
43 (section_table_read_available_memory): Update.
44 (section_table_xfer_memory_partial): Take a target_section_table.
45 (print_section_info, set_section_command)
46 (exec_set_section_address, exec_target::has_memory): Update.
47 * corelow.c (class core_target) <m_core_section_table,
48 m_core_file_mappings>: Remove braces.
49 <~core_target>: Remove.
50 (core_target::core_target): Update.
51 (core_target::~core_target): Remove.
52 (core_target::build_file_mappings)
53 (core_target::xfer_memory_via_mappings)
54 (core_target::xfer_partial, core_target::info_proc_mappings):
55 Update.
56 * bfd-target.c (target_bfd::xfer_partial): Update.
57 (target_bfd::target_bfd): Update.
58 (target_bfd::~target_bfd): Remove.
59
7b466b10
TT
602020-10-12 Tom Tromey <tom@tromey.com>
61
62 * target.h (struct target_section, struct target_section_table):
63 Move to target-section.h.
64 * target-section.h: New file.
65
87a37e5e
PA
662020-10-12 Pedro Alves <pedro@palves.net>
67
68 PR exp/26602
69 * valops.c (struct struct_field_searcher): New.
70 (update_search_result): Rename to ...
71 (struct_field_searcher::update_result): ... this. Simplify
72 prototype. Record all found fields.
73 (do_search_struct_field): Rename to ...
74 (struct_field_searcher::search): ... this. Simplify prototype.
75 Maintain stack of visited baseclass path. Call update_result for
76 fields too. Keep searching fields in baseclasses instead of
77 stopping at the first found field.
78 (search_struct_field): Use struct_field_searcher. When looking
79 for fields, report ambiguous access attempts.
80
9370fd51
AB
812020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
82
83 * frame.c (inside_main_func): Check full symbols as well as
84 minimal symbols.
85
59c8a30b
JB
862020-10-09 Joel Brobecker <brobecker@adacore.com>
87
88 * ada-lang.c (advance_wild_match): Rewrite the function's
89 description. Change the type of target0, t0 and t1 to char.
90
7c184d33
TT
912020-10-09 Tom Tromey <tromey@adacore.com>
92
93 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
94
5c4258f4
TT
952020-10-09 Tom Tromey <tromey@adacore.com>
96
97 * ada-lang.h (ada_encode): Return std::string.
98 * ada-lang.c (ada_encode_1): Return std::string.
99 (ada_encode): Likewise.
100 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
101 Update.
102 * ada-exp.y (block_lookup, write_var_or_type): Update.
103
3d87245c
HD
1042020-10-09 Hannes Domani <ssbssa@yahoo.de>
105
106 PR exp/26714
107 * printcmd.c (print_formatted): Handle void results as
108 unformatted prints.
109
bbb826f5
AB
1102020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
111
112 * arch/aarch32.c (aarch32_create_target_description): Release the
113 target_desc_up as late as possible.
114 * arch/aarch64.c (aarch64_create_target_description): Likewise.
115 * arch/amd64.c (amd64_create_target_description): Likewise.
116 * arch/arc.c (arc_create_target_description): Return a
117 target_desc_up, don't release it.
118 * arch/arc.h (arc_create_target_description): Update declaration.
119 (arc_lookup_target_description): Move target_desc_up into the
120 cache, and return a borrowed pointer.
121 * arch/arm.c (arm_create_target_description): Release the
122 target_desc_up as late as possible.
123 * arch/i386.c (i386_create_target_description): Likewise.
124 * arch/riscv.h (riscv_create_target_description): Update
125 declaration to match definition.
126 * arch/tic6x.c (tic6x_create_target_description): Release the
127 target_desc_up as late as possible.
128
361cb219
AB
1292020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
130
131 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
132 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
133
f5c4b229
JV
1342020-10-09 Jan Vrany <jan.vrany@labware.com>
135
136 * source.c (directory_command): Notify observers that "directories"
137 parameter has changed.
138
b2701685
TT
1392020-10-08 Tom Tromey <tom@tromey.com>
140
141 * cli/cli-cmds.c (print_disassembly): Style function name and
142 addresses. Add _() wrappers.
143
ada508b6
SV
1442020-10-08 Shahab Vahedi <shahab@synopsys.com>
145
146 * NEWS: Mention ARC support in GDBserver.
147
51a948fd
AB
1482020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
149
150 * arch/aarch32.c (aarch32_create_target_description): Release
151 unique_ptr returned from allocate_target_description.
152 * arch/aarch64.c (aarch64_create_target_description): Likewise.
153 * arch/amd64.c (amd64_create_target_description): Likewise.
154 * arch/arc.c (arc_create_target_description): Likewise.
155 * arch/arm.c (arm_create_target_description): Likewise.
156 * arch/i386.c (i386_create_target_description): Likewise.
157 * arch/riscv.c (riscv_create_target_description): Update return
158 type. Handle allocate_target_description returning a unique_ptr.
159 (riscv_lookup_target_description): Update to handle unique_ptr.
160 * arch/tic6x.c (tic6x_create_target_description): Release
161 unique_ptr returned from allocate_target_description.
162 * features/microblaze-with-stack-protect.c: Regenerate.
163 * features/microblaze.c: Regenerate.
164 * features/mips-dsp-linux.c: Regenerate.
165 * features/mips-linux.c: Regenerate.
166 * features/mips64-dsp-linux.c: Regenerate.
167 * features/mips64-linux.c: Regenerate.
168 * features/nds32.c: Regenerate.
169 * features/nios2.c: Regenerate.
170 * features/or1k.c: Regenerate.
171 * features/rs6000/powerpc-32.c: Regenerate.
172 * features/rs6000/powerpc-32l.c: Regenerate.
173 * features/rs6000/powerpc-403.c: Regenerate.
174 * features/rs6000/powerpc-403gc.c: Regenerate.
175 * features/rs6000/powerpc-405.c: Regenerate.
176 * features/rs6000/powerpc-505.c: Regenerate.
177 * features/rs6000/powerpc-601.c: Regenerate.
178 * features/rs6000/powerpc-602.c: Regenerate.
179 * features/rs6000/powerpc-603.c: Regenerate.
180 * features/rs6000/powerpc-604.c: Regenerate.
181 * features/rs6000/powerpc-64.c: Regenerate.
182 * features/rs6000/powerpc-64l.c: Regenerate.
183 * features/rs6000/powerpc-7400.c: Regenerate.
184 * features/rs6000/powerpc-750.c: Regenerate.
185 * features/rs6000/powerpc-860.c: Regenerate.
186 * features/rs6000/powerpc-altivec32.c: Regenerate.
187 * features/rs6000/powerpc-altivec32l.c: Regenerate.
188 * features/rs6000/powerpc-altivec64.c: Regenerate.
189 * features/rs6000/powerpc-altivec64l.c: Regenerate.
190 * features/rs6000/powerpc-e500.c: Regenerate.
191 * features/rs6000/powerpc-e500l.c: Regenerate.
192 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
193 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
194 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
195 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
196 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
197 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
198 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
199 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
200 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
201 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
202 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
203 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
204 * features/rs6000/powerpc-vsx32.c: Regenerate.
205 * features/rs6000/powerpc-vsx32l.c: Regenerate.
206 * features/rs6000/powerpc-vsx64.c: Regenerate.
207 * features/rs6000/powerpc-vsx64l.c: Regenerate.
208 * features/rs6000/rs6000.c: Regenerate.
209 * features/rx.c: Regenerate.
210 * features/s390-gs-linux64.c: Regenerate.
211 * features/s390-linux32.c: Regenerate.
212 * features/s390-linux32v1.c: Regenerate.
213 * features/s390-linux32v2.c: Regenerate.
214 * features/s390-linux64.c: Regenerate.
215 * features/s390-linux64v1.c: Regenerate.
216 * features/s390-linux64v2.c: Regenerate.
217 * features/s390-te-linux64.c: Regenerate.
218 * features/s390-tevx-linux64.c: Regenerate.
219 * features/s390-vx-linux64.c: Regenerate.
220 * features/s390x-gs-linux64.c: Regenerate.
221 * features/s390x-linux64.c: Regenerate.
222 * features/s390x-linux64v1.c: Regenerate.
223 * features/s390x-linux64v2.c: Regenerate.
224 * features/s390x-te-linux64.c: Regenerate.
225 * features/s390x-tevx-linux64.c: Regenerate.
226 * features/s390x-vx-linux64.c: Regenerate.
227 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
228 from allocate_target_description.
229 * target-descriptions.c (allocate_target_description): Update
230 return type.
231 (print_c_tdesc::visit_pre): Release unique_ptr returned from
232 allocate_target_description.
233
485c47e5
TT
2342020-10-07 Tom Tromey <tromey@adacore.com>
235
236 * unittests/search-memory-selftests.c: New file.
237 * Makefile.in (SELFTESTS_SRCS): Add
238 unittests/search-memory-selftests.c.
239
3a135a91
TT
2402020-10-07 Tom Tromey <tromey@adacore.com>
241
242 PR gdb/16930:
243 * findcmd.c (_initialize_mem_search): Mention that the range is
244 inclusive.
245
4a72de73
TT
2462020-10-07 Tom Tromey <tromey@adacore.com>
247
248 * target.h (simple_search_memory): Don't declare.
249 * target.c (simple_search_memory): Move to gdbsupport.
250 (default_search_memory): Update.
251 * remote.c (remote_target::search_memory): Update.
252
a038ffd8
SM
2532020-10-07 Simon Marchi <simon.marchi@efficios.com>
254
255 * Makefile.in (COMPILE): Add CXXFLAGS.
256 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
257 (check-headers): Add CXXFLAGS.
258
cc463201
AK
2592020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
260
261 * arc-linux-tdep.h: New file.
262 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
263 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
264 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
265 arc_linux_gregset, arc_linux_v2_regset,
266 arc_linux_iterate_over_regset_sections,
267 arc_linux_core_read_description): Implement.
268 (arc_linux_init_osabi): Set iterate_over_regset_sections.
269 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
270 (arc_gdbarch_features_create): Add.
271 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
272
e4bd363f
SV
2732020-10-07 Shahab Vahedi <shahab@synopsys.com>
274
275 * arch/arc.h: Rename "arc_gdbarch_features" to
276 "arc_arch_features".
277 * arc-tdep.h: Likewise.
278 * arc-tdep.c: Likewise.
279
b68bef99
TBA
2802020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
281
282 * infcmd.c (attach_command): Remove the redundant call to
283 `clear_proceed_status`.
284
4641551a
KR
2852020-10-07 Kamil Rytarowski <n54@gmx.com>
286
287 * nat/netbsd-nat.c (write_memory, read_memory): Update.
288
91e5e8db
KR
2892020-10-07 Kamil Rytarowski <n54@gmx.com>
290
291 * nat/netbsd-nat.c (write_memory, read_memory): Add.
292 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
293 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
294
64c03bdb
SM
2952020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
296
297 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
298 (_initialize_break_catch_sig): Don't allocate array.
299
31a8f60f
AB
3002020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
301
302 * symtab.c (find_pc_line): Return unmapped addresses when the
303 requested address is also unmapped.
304
9e6dbd8b
SM
3052020-10-05 Simon Marchi <simon.marchi@efficios.com>
306
307 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
308 tui/tui-out.h.
309
a1d217e8
SM
3102020-10-05 Simon Marchi <simon.marchi@efficios.com>
311
312 * amd64-windows-tdep.c (amd64_windows_return_value): Use
313 type::is_vector instead of TYPE_VECTOR.
314
7d144117
SM
3152020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
316
317 * auto-load.c (auto_load_objfile_script_1): Don't use
318 debugfile_holder as temporary variable when stripping drive
319 letter.
320
cd096ec8
HD
3212020-10-05 Hannes Domani <ssbssa@yahoo.de>
322
323 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
324 Add TYPE_CODE_COMPLEX.
325 (amd64_windows_return_value): Fix types returned via XMM0.
326
b58e7f72
AH
3272020-10-05 Alan Hayward <alan.hayward@arm.com>
328
329 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
330 AArch64/ARM maintainers.
331
8d378f27
SM
3322020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
333
334 * NEWS: Mention set/show debug event-loop.
335
d5519913
TT
3362020-10-02 Tom Tromey <tromey@adacore.com>
337
338 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
339 REG_EXTENDED.
340
18b67edc
SM
3412020-10-02 Simon Marchi <simon.marchi@efficios.com>
342
343 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
344 * procfs.c (procfs_inferior_created): Remove.
345 (_initialize_procfs): Don't register procfs_inferior_created.
346
6b01403b
SM
3472020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
348
349 * async-event.c (invoke_async_signal_handlers): Add debug
350 print.
351 (check_async_event_handlers): Likewise.
352 * event-top.c (show_debug_event_loop): New function.
353 (_initialize_event_top): Register "set debug event-loop"
354 setting.
355
ba988419
SM
3562020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
357
358 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
359 * debug.h: Remove.
360 * infrun.c: Include gdbsupport/common-debug.h.
361 * linux-nat.c: Likewise.
362
db20ebdf
SM
3632020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
364
365 * async-event.h (create_async_signal_handler): Add name
366 parameter.
367 (create_async_event_handler): Likewise.
368 * async-event.c (struct async_signal_handler) <name>: New field.
369 (struct async_event_handler) <name>: New field.
370 (create_async_signal_handler): Assign name.
371 (create_async_event_handler): Assign name.
372 * event-top.c (async_init_signals): Pass name when creating
373 handler.
374 * infrun.c (_initialize_infrun): Likewise.
375 * record-btrace.c (record_btrace_push_target): Likewise.
376 * record-full.c (record_full_open): Likewise.
377 * remote-notif.c (remote_notif_state_allocate): Likewise.
378 * remote.c (remote_target::open_1): Likewise.
379 * tui/tui-win.c (tui_initialize_win): Likewise.
380
2554f6f5
SM
3812020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
382
383 * async-event.c (initialize_async_signal_handlers): Pass name to
384 add_file_handler
385 * event-top.c (ui_register_input_event_handler): Likewise.
386 * linux-nat.c (linux_nat_target::async): Likewise.
387 * run-on-main-thread.c (_initialize_run_on_main_thread):
388 Likewise
389 * ser-base.c (reschedule): Likewise.
390 (ser_base_async): Likewise.
391 * tui/tui-io.c: Likewise.
392 * top.h (struct ui) <num>: New field.
393 * top.c (highest_ui_num): New variable.
394 (ui::ui): Initialize num.
395
a7aba266
SM
3962020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
397
398 * observable.h <inferior_created>: Remove parameters. Update all
399 listeners.
400 * inferior.h (post_create_inferior): Remove target parameter.
401 Update all callers.
402
048fde1e 4032020-10-02 Nitika Achra <Nitika.Achra@amd.com>
404
405 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
406 and DW_MACRO_undef_strx.
407 (dwarf_decode_macros): Likewise
408 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
409 which is the value of DW_AT_str_offsets_base.
410 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
411 str_offsets_base.
412
064280be
KR
4132020-10-01 Kamil Rytarowski <n54@gmx.com>
414
415 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
416
6ff33035
KR
4172020-10-01 Kamil Rytarowski <n54@gmx.com>
418
419 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
420 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
421
1eb6eb79
KR
4222020-10-01 Kamil Rytarowski <n54@gmx.com>
423
424 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
425
95eb9e54
TV
4262020-09-30 Tom de Vries <tdevries@suse.de>
427
428 PR symtab/26683
429 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
430
cae21f8e
TT
4312020-09-30 Tom Tromey <tromey@adacore.com>
432
433 * dwarf2/read.c (handle_variant): Use constant_value.
434
529908cb
TT
4352020-09-29 Tom Tromey <tom@tromey.com>
436
437 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
438 (read_file_scope, dwarf2_get_pc_bounds)
439 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
440 (read_structure_type, handle_struct_member_die)
441 (read_enumeration_type, read_array_type, read_set_type)
442 (read_tag_pointer_type, read_tag_reference_type)
443 (read_subroutine_type, read_base_type, read_subrange_type)
444 (read_full_die_1, partial_die_info::read)
445 (partial_die_info::read, by, new_symbol)
446 (dwarf2_const_value_data, dwarf2_const_value_attr)
447 (dump_die_shallow, dwarf2_fetch_constant_bytes)
448 (prepare_one_comp_unit): Update.
449 * dwarf2/attribute.h (DW_UNSND): Remove.
450
c45bc3f8
TT
4512020-09-29 Tom Tromey <tom@tromey.com>
452
453 * dwarf2/read.c (read_func_scope, prototyped_function_p)
454 (read_subroutine_type, partial_die_info::read)
455 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
456 (dwarf2_add_member_fn): Update.
457 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
458 * dwarf2/attribute.c (attribute::as_boolean): New method.
459
23dca5c3
TT
4602020-09-29 Tom Tromey <tom@tromey.com>
461
462 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
463 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
464 method.
465 * dwarf2/attribute.c (attribute::as_virtuality): New method.
466
52c14d11
TT
4672020-09-29 Tom Tromey <tom@tromey.com>
468
469 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
470 the attribute's form.
471
e8e5c158
TT
4722020-09-29 Tom Tromey <tom@tromey.com>
473
474 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
475 (dwarf2_add_member_fn): Update.
476 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
477 * dwarf2/attribute.c (attribute::defaulted): New method, from
478 is_valid_DW_AT_defaulted.
479
d4df075e
TT
4802020-09-29 Tom Tromey <tom@tromey.com>
481
482 * dwarf2/read.c (dw2_get_file_names_reader)
483 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
484 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
485 (dwarf2_symbol_mark_computed): Use as_unsigned.
486 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
487 method.
488 <form_is_section_offset>: Update comment.
489
bf23a268
TT
4902020-09-29 Tom Tromey <tom@tromey.com>
491
492 * dwarf2/read.c (dwarf2_access_attribute): Rename from
493 dwarf2_default_access_attribute. Look up attribute.
494 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
495 Update.
496
7a5f294d
TT
4972020-09-29 Tom Tromey <tom@tromey.com>
498
499 * dwarf2/read.c (skip_one_die): Update.
500 (read_full_die_1): Change how reprocessing is done.
501 (partial_die_info::read): Update.
502 (read_attribute_value): Remove need_reprocess parameter.
503 (read_attribute): Likewise.
504 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
505 New method.
506
36d378cf
TT
5072020-09-29 Tom Tromey <tom@tromey.com>
508
509 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
510 (dwarf2_const_value_attr, dump_die_shallow)
511 (dwarf2_fetch_constant_bytes): Update.
512 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
513 comment.
514 <set_address>: New method.
515 (DW_ADDR): Remove.
516 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
517 (attribute::as_string, attribute::as_address): Add assert.
518
fe56917a
TT
5192020-09-29 Tom Tromey <tom@tromey.com>
520
521 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
522 (read_attribute_reprocess, read_attribute_value): Update.
523 (read_attribute): Clear requires_reprocessing.
524 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
525 form_requires_reprocessing>: New methods.
526 <string_init>: Clear requires_reprocessing.
527 <set_unsigned_reprocess>: New method.
528 <name>: Shrink by one bit.
529 <requires_reprocessing>: New member.
530 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
531 method.
532
414ad644
TT
5332020-09-29 Tom Tromey <tom@tromey.com>
534
535 * dwarf2/read.c (read_attribute_value): Update.
536 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
537 set_unsigned>: New methods.
538 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
539
1bc397c5
TT
5402020-09-29 Tom Tromey <tom@tromey.com>
541
542 * dwarf2/read.c (get_alignment, read_array_order)
543 (read_attribute_value, dwarf2_const_value_attr)
544 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
545 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
546 New methods.
547 (DW_SND): Remove.
548
630ed6b9
TT
5492020-09-29 Tom Tromey <tom@tromey.com>
550
551 * dwarf2/read.c (read_attribute_value, lookup_die_type)
552 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
553 Update.
554 * dwarf2/attribute.h (struct attribute) <as_signature,
555 set_signature>: New methods.
556 (DW_SIGNATURE): Remove.
557
9d2246fc
TT
5582020-09-29 Tom Tromey <tom@tromey.com>
559
560 * dwarf2/read.c (read_call_site_scope)
561 (handle_data_member_location, dwarf2_add_member_fn)
562 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
563 (partial_die_info::read, read_attribute_value)
564 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
565 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
566 (dwarf2_symbol_mark_computed): Update.
567 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
568 methods.
569 (DW_BLOCK): Remove.
570 * dwarf2/attribute.c (attribute::form_is_block): Add
571 DW_FORM_data16.
572
c6481205
TT
5732020-09-29 Tom Tromey <tom@tromey.com>
574
575 * dwarf2/read.c (read_cutu_die_from_dwo)
576 (read_attribute_reprocess, read_attribute_value, read_attribute)
577 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
578 (dwarf2_fetch_constant_bytes): Update.
579 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
580 <set_string_noncanonical, set_string_canonical>: New methods.
581 <string_is_canonical>: Update comment.
582 <canonical_string_p>: Add assert.
583 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
584 * dwarf2/attribute.c (attribute::form_is_string): New method.
585 (attribute::string): Use it.
586
3b64bf15
TT
5872020-09-29 Tom Tromey <tom@tromey.com>
588
589 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
590 (dump_die_shallow): Use canonical_string_p.
591 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
592 method.
593
2c830f54
TT
5942020-09-29 Tom Tromey <tom@tromey.com>
595
596 * dwarf2/read.c (partial_die_info::read)
597 (dwarf2_const_value_attr, anonymous_struct_prefix, )
598 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
599 attribute::as_string.
600
6c412691
TT
6012020-09-29 Tom Tromey <tom@tromey.com>
602
603 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
604 DW_ADDR.
605 (attribute::string): Don't use DW_STRING.
606 (attribute::get_ref_die_offset): Don't use DW_UNSND.
607 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
608
95f982e5
TT
6092020-09-29 Tom Tromey <tom@tromey.com>
610
611 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
612 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
613 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
614 * dwarf2/attribute.h (struct attribute): Rename methods.
615 * dwarf2/attribute.c (attribute::as_address): Rename from
616 value_as_address.
617 (attribute::as_string): Rename from value_as_string.
618
f800b00e
TT
6192020-09-29 Tom Tromey <tom@tromey.com>
620
621 * dwarf2/read.c (partial_die_info::read) <case
622 DW_AT_linkage_name>: Use value_as_string.
623 (dwarf2_string_attr): Use value_as_string.
624 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
625 method.
626 * dwarf2/attribute.c (attribute::value_as_string): New method.
627
de38d64a
PA
6282020-09-29 Pedro Alves <pedro@palves.net>
629
630 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
631 defined before using '#pragma GCC diagnostic' instead of checking
632 __clang__.
633
9aed480c
TT
6342020-09-28 Tom Tromey <tom@tromey.com>
635
636 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
637 (handle_signal_stop): Update.
638 * procfs.c (procfs_target::insert_watchpoint): Update.
639 * target.h (target_have_steppable_watchpoint): Now a function.
640
8a3ecb79
TT
6412020-09-28 Tom Tromey <tom@tromey.com>
642
643 * infrun.c (set_schedlock_func): Update.
644 * target.h (target_can_lock_scheduler): Now a function.
645
55f6301a
TT
6462020-09-28 Tom Tromey <tom@tromey.com>
647
648 * inferior.h (class inferior) <has_execution>: Update.
649 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
650 * valops.c (find_function_in_inferior)
651 (value_allocate_space_in_inferior): Update.
652 * top.c (kill_or_detach): Update.
653 * target.c (target_preopen, set_target_permissions): Update.
654 (target_has_execution_current): Remove.
655 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
656 Update.
657 * solib.c (update_solib_list, reload_shared_libraries): Update.
658 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
659 * solib-dsbt.c (enable_break): Update.
660 * score-tdep.c (score7_fetch_inst): Update.
661 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
662 Update.
663 * remote.c (remote_target::start_remote)
664 (remote_target::remote_check_symbols, remote_target::open_1)
665 (remote_target::remote_detach_1, remote_target::verify_memory)
666 (remote_target::xfer_partial, remote_target::read_description)
667 (remote_target::get_min_fast_tracepoint_insn_len): Update.
668 * record-full.c (record_full_open_1): Update.
669 * record-btrace.c (record_btrace_target_open): Update.
670 * objc-lang.c (lookup_objc_class, lookup_child_selector)
671 (value_nsstring): Update.
672 * linux-thread-db.c (add_thread_db_info)
673 (thread_db_find_new_threads_silently, check_thread_db_callback)
674 (try_thread_db_load_1, record_thread): Update.
675 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
676 Update.
677 * linux-fork.c (checkpoint_command): Update.
678 * infrun.c (set_non_stop, set_observer_mode)
679 (check_multi_target_resumption, for_each_just_stopped_thread)
680 (maybe_remove_breakpoints, normal_stop)
681 (class infcall_suspend_state): Update.
682 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
683 (info_program_command, attach_command): Update.
684 * infcall.c (call_function_by_hand_dummy): Update.
685 * inf-loop.c (inferior_event_handler): Update.
686 * gcore.c (gcore_command, derive_heap_segment): Update.
687 * exec.c (exec_file_command): Update.
688 * eval.c (evaluate_subexp): Update.
689 * compile/compile.c (compile_to_object): Update.
690 * cli/cli-dump.c (restore_command): Update.
691 * breakpoint.c (update_watchpoint)
692 (update_inserted_breakpoint_locations)
693 (insert_breakpoint_locations, get_bpstat_thread): Update.
694 * target.h (target_has_execution): Remove macro.
695 (target_has_execution_current): Don't declare.
696 (target_has_execution): Rename from target_has_execution_1. Add
697 argument default.
698
05374cfd
TT
6992020-09-28 Tom Tromey <tom@tromey.com>
700
701 * mi/mi-main.c (exec_reverse_continue)
702 (mi_cmd_list_target_features): Update.
703 * infrun.c (set_exec_direction_func): Update.
704 * target.c (default_execution_direction): Update.
705 * reverse.c (exec_reverse_once): Update.
706 * target.h (target_can_execute_reverse): Now a function.
707
9dccd06e
TT
7082020-09-28 Tom Tromey <tom@tromey.com>
709
710 * tui/tui-regs.c (tui_get_register)
711 (tui_data_window::show_registers): Update.
712 * thread.c (scoped_restore_current_thread::restore)
713 (scoped_restore_current_thread::scoped_restore_current_thread):
714 Update.
715 * regcache-dump.c (regcache_print): Update.
716 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
717 Update.
718 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
719 * mep-tdep.c (current_me_module, current_options): Update.
720 * linux-thread-db.c (thread_db_load): Update.
721 * infcmd.c (registers_info, info_vector_command)
722 (info_float_command): Update.
723 * ia64-tdep.c (ia64_frame_prev_register)
724 (ia64_sigtramp_frame_prev_register): Update.
725 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
726 * gcore.c (derive_stack_segment): Update.
727 * frame.c (get_current_frame, has_stack_frames): Update.
728 * findvar.c (language_defn::read_var_value): Update.
729 * arm-tdep.c (arm_pc_is_thumb): Update.
730 * target.c (target_has_registers): Rename from
731 target_has_registers_1.
732 * target.h (target_has_registers): Remove macro.
733 (target_has_registers): Rename from target_has_registers_1.
734
841de120
TT
7352020-09-28 Tom Tromey <tom@tromey.com>
736
737 * windows-tdep.c (tlb_make_value): Update.
738 * tui/tui-regs.c (tui_data_window::show_registers): Update.
739 * thread.c (scoped_restore_current_thread::restore)
740 (scoped_restore_current_thread::scoped_restore_current_thread)
741 (thread_command): Update.
742 * stack.c (backtrace_command_1, frame_apply_level_command)
743 (frame_apply_all_command, frame_apply_command): Update.
744 * infrun.c (siginfo_make_value, restore_infcall_control_state):
745 Update.
746 * gcore.c (derive_stack_segment): Update.
747 * frame.c (get_current_frame, has_stack_frames): Update.
748 * auxv.c (info_auxv_command): Update.
749 * ada-tasks.c (ada_build_task_list): Update.
750 * target.c (target_has_stack): Rename from target_has_stack_1.
751 * target.h (target_has_stack): Remove macro.
752 (target_has_stack): Rename from target_has_stack_1.
753
a739972c
TT
7542020-09-28 Tom Tromey <tom@tromey.com>
755
756 * target.c (target_has_memory): Rename from target_has_memory_1.
757 * tui/tui-regs.c (tui_data_window::show_registers): Update.
758 * thread.c (scoped_restore_current_thread::restore)
759 (scoped_restore_current_thread::scoped_restore_current_thread):
760 Update.
761 * frame.c (get_current_frame, has_stack_frames): Update.
762 * target.h (target_has_memory): Remove macro.
763 (target_has_memory): Rename from target_has_memory_1.
764
5b8a4776
TT
7652020-09-28 Tom Tromey <tom@tromey.com>
766
767 * target.c (target_has_all_memory_1): Remove.
768 * target.h (target_has_all_memory): Remove define.
769 (target_has_all_memory_1): Don't declare.
770
bd356ec6
SM
7712020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
772
773 * ser-base.c: Adjust comments formatting.
774
2c72d5e5
TT
7752020-09-27 Tom Tromey <tom@tromey.com>
776
777 PR tui/25342:
778 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
779
35a98237
TT
7802020-09-27 Tom Tromey <tom@tromey.com>
781
782 PR tui/25342:
783 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
784
9e820dec
TT
7852020-09-27 Tom Tromey <tom@tromey.com>
786
787 * unittests/tui-selftests.c: Update.
788 * tui/tui-winsource.h (struct tui_source_window_base)
789 <extra_margin, show_line_number, refresh_pad>: New methods.
790 <m_max_length, m_pad>: New members.
791 (tui_copy_source_line): Update.
792 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
793 first_col, line_width, ndigits parameters. Add length.
794 (tui_source_window_base::show_source_line): Write to pad. Line
795 number now 0-based.
796 (tui_source_window_base::refresh_pad): New method.
797 (tui_source_window_base::show_source_content): Write to pad. Call
798 refresh_pad.
799 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
800 not refill.
801 (tui_source_window_base::update_exec_info): Call
802 show_line_number.
803 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
804 method.
805 <m_digits>: New member.
806 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
807 and m_max_length.
808 (tui_source_window::show_line_number): New method.
809 * tui/tui-io.h (tui_puts): Fix comment.
810 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
811 m_max_length.
812
c15c15c8
TT
8132020-09-27 Tom Tromey <tom@tromey.com>
814
815 * tui/tui-winsource.c
816 (tui_source_window_base::set_is_exec_point_at): Don't call
817 show_source_line.
818
149830c1
TT
8192020-09-27 Tom Tromey <tom@tromey.com>
820
821 * python/py-tui.c (class tui_py_window) <refresh_window>: New
822 method.
823 <erase>: Update.
824 <cursor_x, cursor_y>: Remove.
825 <m_inner_window>: New member.
826 (tui_py_window::rerender): Create inner window.
827 (tui_py_window::output): Write to inner window.
828
8f9929bb
GR
8292020-09-26 Gareth Rees <grees@undo.io> (tiny change)
830
831 PR python/26586
832 * cli/cli-script.c (execute_control_commands): don't set
833 instream to nullptr here as this breaks the from_tty argument
834 to gdb.execute in Python.
835 (execute_user_command): set instream to nullptr here instead.
836
956bdb59
SM
8372020-09-25 Simon Marchi <simon.marchi@efficios.com>
838
839 * infrun.h (infrun_debug_printf): Fix formatting.
840 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
841
3b93626b
SJ
8422020-09-25 Saagar Jha <saagar@saagarjha.com>
843
844 * compile/compile-object-load.h (struct munmap_list): Add
845 explicitly-defined move constructor.
846
b551a89f
TT
8472020-09-24 Tom Tromey <tromey@adacore.com>
848
849 PR tui/26638:
850 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
851 method.
852 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
853 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
854 (tui_prev_win): Rewrite.
855
99bb393f
HD
8562020-09-23 Hannes Domani <ssbssa@yahoo.de>
857
858 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
859 in WOW64 processes as SIGINT.
860 * nat/windows-nat.h: Make wow64_process a shared variable.
861 * windows-nat.c: Remove static wow64_process variable.
862
20a5fcbd
TT
8632020-09-23 Tom Tromey <tom@tromey.com>
864
865 PR symtab/25470:
866 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
867 offset and bit size.
868 * printcmd.c (print_scalar_formatted): Handle zero-length
869 integer.
870 (print_scalar_formatted): Use bit_size_differs_p.
871 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
872 constant.
873 (union type_specific): <int_stuff>: New member.
874 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
875 methods.
876 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
877 TYPE_SPECIFIC_FIELD.
878 (recursive_dump_type, copy_type_recursive): Update.
879 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
880 DW_AT_data_bit_offset.
881
bac51ab7
TT
8822020-09-23 Tom Tromey <tom@tromey.com>
883
884 * utils.h (class gdb_argv): Add move operators.
885 <append>: New methods.
886 * compile/compile.c (build_argc_argv): Remove.
887 (compile_args_argc): Remove.
888 (compile_args_argv): Change type.
889 (set_compile_args): Simplify.
890 (append_args): Remove.
891 (filter_args): Remove argcp parameter.
892 (get_args): Return gdb_argv. Simplify.
893 (compile_to_object): Update.
894
92677124
TT
8952020-09-23 Tom Tromey <tom@tromey.com>
896
897 * compile/compile-object-run.c (do_module_cleanup)
898 <~do_module_cleanup> :Remove.
899 (do_module_cleanup): Update.
900 * compile/compile-object-load.h (struct munmap_list): Add move
901 assignment operator.
902 <source_file>: Now a std::string.
903 <munmap_list>: Rename. No longer a pointer.
904 * compile/compile-object-load.c (struct setup_sections_data): Add
905 constructor.
906 <setup_one_section>: Declare.
907 <munmap_list>: Move earlier.
908 <m_bfd>: New member.
909 <m_last_size, m_last_section_first, m_last_prot,
910 m_last_max_alignment>: Rename, add initializers where needed.
911 (setup_sections_data::setup_one_section): Rename from
912 setup_sections. Update.
913 (compile_object_load): Update. Don't use bfd_map_over_sections.
914
e616f60a
TT
9152020-09-23 Tom Tromey <tom@tromey.com>
916
917 * compile/compile-object-run.c (struct do_module_cleanup): Add
918 parameters to constructor. Update destructor.
919 <source_file, scope, scope_data, out_value_type, out_value_addr,
920 munmap_list_head, objfile_name_string>: Remove.
921 <module>: New member.
922 (do_module_cleanup): Update.
923 (compile_object_run): Update.
924
e947a848
TT
9252020-09-23 Tom Tromey <tom@tromey.com>
926
927 * compile/compile.c (eval_compile_command): Update.
928 * compile/compile-object-run.h (compile_object_run): Take a
929 compile_module_up.
930 * compile/compile-object-run.c (compile_object_run): Take a
931 compile_module_up.
932 * compile/compile-object-load.h (struct compile_module): Add
933 constructor, destructor.
934 (compile_module_up): New typedef.
935 (compile_object_load): Return compile_object_up.
936 * compile/compile-object-load.c (compile_object_load): Return
937 compile_module_up.
938
0dbf6ee6
TT
9392020-09-23 Tom Tromey <tom@tromey.com>
940
941 * compile/compile-object-run.c (struct do_module_cleanup): Add
942 constructor, destructor.
943 <objfile_name_string>: Don't use struct hack.
944 (do_module_cleanup): Use delete.
945 (compile_object_run): Use new.
946
ebe824f5
TT
9472020-09-23 Tom Tromey <tom@tromey.com>
948
949 * compile/compile-cplus-types.c
950 (compile_cplus_convert_struct_or_union): Use std::vector.
951 (compile_cplus_convert_func): Likewise.
952 * compile/compile-c-types.c (convert_func): Use std::vector.
953
5dd918d9
TT
9542020-09-21 Tom Tromey <tromey@adacore.com>
955
956 * sparc-tdep.c (sparc32_skip_prologue): Use
957 skip_prologue_using_sal.
958
5486c517
TT
9592020-09-19 Tom Tromey <tom@tromey.com>
960
961 * symfile.c (add_section_size_callback): Remove.
962 (load_one_section): Rename from load_section_callback. Change
963 parameters.
964 (generic_load): Use foreach.
965
8a6bb1d1
TT
9662020-09-19 Tom Tromey <tom@tromey.com>
967
968 * exec.c (add_to_section_table): Remove.
969 (build_section_table): Use foreach.
970
08f93a1a
TT
9712020-09-19 Tom Tromey <tom@tromey.com>
972
973 * elfread.c (elf_locate_sections): Change parameters.
974 (elf_symfile_read): Use foreach.
975
03cd72b8
TT
9762020-09-19 Tom Tromey <tom@tromey.com>
977
978 * cli/cli-dump.c (struct callback_data): Remove.
979 (restore_one_section): Rename from restore_section_callback.
980 Change parameters.
981 (restore_binary_file): Change parameters.
982 (restore_command): Use foreach.
983
f4f2b85f
TT
9842020-09-19 Tom Tromey <tom@tromey.com>
985
986 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
987 (gcore_copy_callback): Likewise.
988 (gcore_memory_sections): Use foreach.
989
b35c1d1c
TT
9902020-09-19 Tom Tromey <tom@tromey.com>
991
992 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
993 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
994 parameters.
995 (generic_elf_osabi_sniffer): Use foreach.
996 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
997 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
998
5bb6e9dd
TT
9992020-09-19 Tom Tromey <tom@tromey.com>
1000
1001 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1002 (dwarf2_get_dwz_file): Use foreach.
1003 (dwarf2_locate_dwo_sections): Change parameters.
1004 (open_and_init_dwo_file): Use foreach.
1005 (dwarf2_locate_common_dwp_sections): Change parameters.
1006 (open_and_init_dwp_file): Use foreach.
1007
ad7277da
TT
10082020-09-19 Tom Tromey <tom@tromey.com>
1009
1010 * symfile.h: (find_lowest_section): Don't declare.
1011 * symfile.c (find_lowest_section): Now static. Change
1012 parameters.
1013 (struct place_section_arg): Remove.
1014 (place_section): Change parameters.
1015 (addr_info_make_relative): Use foreach.
1016 (symfile_dummy_outputs): Remove.
1017 (default_symfile_relocate): Use foreach.
1018
cb814f2e
TT
10192020-09-19 Tom Tromey <tom@tromey.com>
1020
1021 * objfiles.c (add_to_objfile_sections): Rename from
1022 add_to_objfile_sections_full.
1023 (add_to_objfile_sections): Remove.
1024 (build_objfile_section_table): Use foreach.
1025
3cabfd26
TT
10262020-09-19 Tom Tromey <tom@tromey.com>
1027
1028 * stap-probe.c (get_stap_base_address_1): Remove.
1029 (get_stap_base_address): Use foreach.
1030
1ce51eb5
TT
10312020-09-19 Tom Tromey <tom@tromey.com>
1032
1033 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1034 parameters.
1035 (gdb_bfd_close_or_warn): Use foreach.
1036
a190fabb
TT
10372020-09-19 Tom Tromey <tom@tromey.com>
1038
1039 * corelow.c (add_to_thread_list): Change parameters.
1040 (core_target_open): Use foreach.
1041
cafb0d81
TT
10422020-09-19 Tom Tromey <tom@tromey.com>
1043
1044 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1045 existing function.
1046
c8d5abea
AB
10472020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1048
1049 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1050 for arrays.
1051
6d816919
AB
10522020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1053
1054 * eval.c: Remove 'f-lang.h' include.
1055 (value_f90_subarray): Moved to f-lang.c.
1056 (eval_call): Renamed to...
1057 (evaluate_subexp_do_call): ...this, is no longer static, header
1058 comment moved into header file.
1059 (evaluate_funcall): Update call to eval_call.
1060 (skip_undetermined_arglist): Moved to f-lang.c.
1061 (fortran_value_subarray): Likewise.
1062 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1063 moved to evaluate_subexp_f.
1064 (calc_f77_array_dims): Moved to f-lang.c
1065 * expprint.c (print_subexp_funcall): New function.
1066 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1067 moved to print_subexp_f, OP_FUNCALL uses new function.
1068 (dump_subexp_body_funcall): New function.
1069 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1070 moved to dump_subexp_f, OP_FUNCALL uses new function.
1071 * expression.h (evaluate_subexp_do_call): Declare.
1072 * f-lang.c (value_f90_subarray): Moved from eval.c.
1073 (skip_undetermined_arglist): Likewise.
1074 (calc_f77_array_dims): Likewise.
1075 (fortran_value_subarray): Likewise.
1076 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1077 (operator_length_f): Likewise.
1078 (print_subexp_f): Likewise.
1079 (dump_subexp_body_f): Likewise.
1080 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1081 declaration of this operation to here.
1082 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1083 support moved to operator_length_f.
1084 * parser-defs.h (dump_subexp_body_funcall): Declare.
1085 (print_subexp_funcall): Declare.
1086 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1087 fortran-operator.def.
1088
8c37706a
AB
10892020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1090
1091 * eval.c (fortran_value_subarray): New function, content is taken
1092 from...
1093 (evaluate_subexp_standard): ...here, in two places. Now arrays
1094 and strings both call the new function.
1095 (calc_f77_array_dims): Add header comment, handle strings.
1096
14f9473c
VC
10972020-09-18 Victor Collod <vcollod@nvidia.com>
1098
1099 PR gdb/26635
1100 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1101 (i386_analyze_prologue): Call i386_skip_endbr.
1102
b60cea74
TT
11032020-09-18 Tom Tromey <tromey@adacore.com>
1104
1105 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1106 (windows_nat_target::wait): Update.
1107 * target/wait.h (enum target_wait_flag): New. Use
1108 DEF_ENUM_FLAGS_TYPE.
1109 * target/target.h (target_wait): Change type of options.
1110 * target.h (target_options_to_string, default_target_wait):
1111 Update.
1112 (struct target_ops) <wait>: Change type of options.
1113 * target.c (target_wait, default_target_wait, do_option): Change
1114 type of "options".
1115 (target_options_to_string): Likewise.
1116 * target-delegates.c: Rebuild.
1117 * target-debug.h (target_debug_print_target_wait_flags): Rename
1118 from target_debug_print_options.
1119 * sol-thread.c (class sol_thread_target) <wait>: Update.
1120 (sol_thread_target::wait): Update.
1121 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1122 (rs6000_nat_target::wait): Update.
1123 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1124 Update.
1125 (remote_target::wait_ns, remote_target::wait_as): Change type of
1126 "options".
1127 (remote_target::wait): Update.
1128 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1129 (gdbsim_target::wait): Update.
1130 * record-full.c (class record_full_base_target) <wait>: Update.
1131 (record_full_wait_1): Change type of "options".
1132 (record_full_base_target::wait): Update.
1133 * record-btrace.c (class record_btrace_target) <wait>: Update.
1134 (record_btrace_target::wait): Update.
1135 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1136 Update.
1137 (ravenscar_thread_target::wait): Update.
1138 * procfs.c (class procfs_target) <wait>: Update.
1139 (procfs_target::wait): Update.
1140 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1141 * obsd-nat.c (obsd_nat_target::wait): Update.
1142 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1143 (nto_procfs_target::wait): Update.
1144 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1145 * nbsd-nat.c (nbsd_wait): Change type of "options".
1146 (nbsd_nat_target::wait): Update.
1147 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1148 (thread_db_target::wait): Update.
1149 * linux-nat.h (class linux_nat_target) <wait>: Update.
1150 * linux-nat.c (linux_nat_target::wait): Update.
1151 (linux_nat_wait_1): Update.
1152 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1153 "options".
1154 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1155 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1156 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1157 (go32_nat_target::wait): Update.
1158 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1159 * gnu-nat.c (gnu_nat_target::wait): Update.
1160 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1161 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1162 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1163 * darwin-nat.c (darwin_nat_target::wait): Update.
1164 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1165 (bsd_uthread_target::wait): Update.
1166 * aix-thread.c (class aix_thread_target) <wait>: Update.
1167 (aix_thread_target::wait): Update.
1168
0295dde6
AB
11692020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1170
1171 * compile/compile-object-run.c (create_copied_type_recursive): New
1172 function.
1173 (compile_object_run): Use new function.
1174
d3483b43
JT
11752020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1176
1177 * NEWS: Mention x86_64 Cygwin core file support.
1178
e7d612ad
JT
11792020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1180
1181 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1182 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1183
aff9d387
JT
11842020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1185
62a5151b
JT
1186 * windows-tdep.h: Add prototypes.
1187 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1188 (i386_windows_core_pid_to_str): Move and rename ...
1189 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1190 (windows_core_pid_to_str): ... and here.
1191 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1192
11932020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1194 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1195 (amd64_windows_init_abi_common): ... and register.
1196
7d155da3
JT
11972020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1198
1199 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1200 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1201
e8ef12b9
PA
12022020-09-18 Pedro Alves <pedro@palves.net>
1203
1204 PR gdb/26631
1205 * thread.c (thread_find_command): Switch inferior before calling
1206 target methods.
1207
c1e1314d
TT
12082020-09-17 Tom Tromey <tromey@adacore.com>
1209
1210 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1211 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1212 (tdesc_arch_data_up): New typedef.
1213 (tdesc_use_registers, tdesc_data_alloc): Update.
1214 (tdesc_data_cleanup): Don't declare.
1215 * target-descriptions.c (tdesc_data_alloc): Return a
1216 tdesc_arch_data_up.
1217 (tdesc_arch_data_deleter::operator()): Rename from
1218 tdesc_data_cleanup. Change argument type.
1219 (tdesc_use_registers): Change early_data to an rvalue reference.
1220 (tdesc_use_registers): Don't use delete.
1221 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1222 * s390-tdep.c (s390_gdbarch_init): Update.
1223 * rx-tdep.c (rx_gdbarch_init): Update.
1224 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1225 * riscv-tdep.c (riscv_gdbarch_init): Update.
1226 * or1k-tdep.c (or1k_gdbarch_init): Update.
1227 * nios2-tdep.c (nios2_gdbarch_init): Update.
1228 * nds32-tdep.c (nds32_gdbarch_init): Update.
1229 * mips-tdep.c (mips_gdbarch_init): Update.
1230 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1231 * m68k-tdep.c (m68k_gdbarch_init): Update.
1232 * i386-tdep.c (i386_gdbarch_init): Update.
1233 * arm-tdep.c (arm_gdbarch_init): Update.
1234 * arc-tdep.c (arc_tdesc_init): Update.
1235 (arc_gdbarch_init): Update.
1236 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1237
0363df3d
HD
12382020-09-17 Hannes Domani <ssbssa@yahoo.de>
1239
1240 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1241 for WOW64 processes.
1242
280a9412
TT
12432020-09-17 Tom Tromey <tom@tromey.com>
1244
1245 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1246
6108fd18
TT
12472020-09-17 Tom Tromey <tom@tromey.com>
1248
1249 * value.c (preserve_values): Update.
1250 * python/py-type.c (save_objfile_types): Update.
1251 * guile/scm-type.c (save_objfile_types): Update.
1252 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1253 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1254 * compile/compile-object-run.c (compile_object_run): Update.
1255
fa9b1164
TT
12562020-09-17 Tom Tromey <tom@tromey.com>
1257
1258 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1259 Remove.
1260 <m_table>: Now htab_up.
1261 * typeprint.c (typedef_hash_table::recursively_update)
1262 (typedef_hash_table::add_template_parameters)
1263 (typedef_hash_table::typedef_hash_table): Update.
1264 (typedef_hash_table::~typedef_hash_table): Remove.
1265 (typedef_hash_table::typedef_hash_table)
1266 (typedef_hash_table::find_global_typedef)
1267 (typedef_hash_table::find_typedef): Update.
1268
eb53f105
TT
12692020-09-17 Tom Tromey <tom@tromey.com>
1270
1271 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1272
7a8a5d47
TT
12732020-09-17 Tom Tromey <tom@tromey.com>
1274
1275 * linespec.c (class decode_compound_collector)
1276 <~decode_compound_collector>: Remove.
1277 <m_unique_syms>: Now htab_up.
1278 (decode_compound_collector::operator ()): Update.
1279 (class symtab_collector) <~symtab_collector>: Remove.
1280 <m_symtab_table>: Now htab_up.
1281 (symtab_collector::operator ()): Update.
1282
99032cfc
TT
12832020-09-17 Tom Tromey <tom@tromey.com>
1284
1285 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1286 (filename_seen_cache::clear): Update.
1287 (~filename_seen_cache): Remove.
1288 (filename_seen_cache::seen): Update.
1289 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1290 htab_up.
1291 <~filename_seen_cache>: Remove.
1292 <traverse>: Update.
1293
32580f6d
TT
12942020-09-17 Tom Tromey <tom@tromey.com>
1295
1296 * completer.c (completion_tracker::discard_completions)
1297 (completion_tracker::~completion_tracker)
1298 (completion_tracker::maybe_add_completion)
1299 (completion_tracker::remove_completion)
1300 (completion_tracker::recompute_lowest_common_denominator)
1301 (completion_tracker::build_completion_result): Update.
1302 * completer.h (class completion_tracker) <have_completions>:
1303 Update.
1304 <m_entries_hash>: Now htab_up.
1305
c1fb9836
TT
13062020-09-17 Tom Tromey <tom@tromey.com>
1307
1308 * breakpoint.c (ambiguous_names_p): Use htab_up.
1309
88f07206
TT
13102020-09-17 Tom Tromey <tom@tromey.com>
1311
1312 * auto-load.c (struct auto_load_pspace_info)
1313 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1314 <loaded_script_files, loaded_script_texts>: Change type to
1315 htab_up.
1316 (~auto_load_pspace_info) Remove.
1317 (init_loaded_scripts_info, maybe_add_script_file)
1318 (maybe_add_script_text, auto_load_info_scripts): Update.
1319
9519b2ee
TT
13202020-09-17 Tom Tromey <tromey@adacore.com>
1321
1322 * c-exp.y (name_obstack): Now static.
1323
d2cd4113
CC
13242020-09-17 Chungyi Chi <demonic@csie.io>
1325
1326 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1327
b650a282
SM
13282020-09-16 Simon Marchi <simon.marchi@efficios.com>
1329
1330 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1331 (add_solib_catchpoint): Likewise.
1332 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1333 to bool.
1334 (add_solib_catchpoint): Change int parameter/variable to bool.
1335 (catch_load_or_unload): Likewise.
1336 (init_catchpoint): Likewise.
1337 (create_fork_vfork_event_catchpoint): Likewise.
1338 (catch_fork_command_1): Likewise.
1339 (catch_exec_command_1): Likewise.
1340
4d0bcfcf
SM
13412020-09-16 Simon Marchi <simon.marchi@efficios.com>
1342
1343 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1344 Change instance_flags to m_instance_flags.
1345
fe830662
TT
13462020-09-16 Tom Tromey <tromey@adacore.com>
1347
1348 PR gdb/26598:
1349 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1350
fe5ddfc3
JB
13512020-09-16 John Baldwin <jhb@FreeBSD.org>
1352
1353 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1354 PL_FLAG_EXEC.
1355 (fbsd_nat_target::insert_exec_catchpoint)
1356 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1357 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1358 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1359
e911c666
JB
13602020-09-16 John Baldwin <jhb@FreeBSD.org>
1361
1362 * configure.ac: Remove check for kinfo_getvmmap().
1363 * configure, config.in: Regenerate.
1364 * fbsd-nat.c (fbsd_read_mapping): Remove
1365 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1366 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1367 kinfo_get_vmmap() are always present.
1368
1f17d372
JB
13692020-09-16 John Baldwin <jhb@FreeBSD.org>
1370
1371 * fbsd-nat.c: Always include support for
1372 TARGET_OBJECT_SIGNAL_INFO.
1373
bcb1da7f
JB
13742020-09-16 John Baldwin <jhb@FreeBSD.org>
1375
1376 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1377 sysctl and remove procfs fallback.
1378
5515f729
JB
13792020-09-16 John Baldwin <jhb@FreeBSD.org>
1380
1381 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1382 * fbsd-nat.h: Likewise.
1383
da1df1db
TBA
13842020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1385
1386 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1387 argument.
1388
0e25e767
AB
13892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1390
1391 * ada-lang.c (ada_language_data): Delete.
1392 (ada_language): Remove references to ada_language_data.
1393 * c-lang.c (c_language_data): Delete.
1394 (c_language): Remove references to c_language_data.
1395 (cplus_language_data): Delete.
1396 (cplus_language): Remove references to cplus_language_data.
1397 (asm_language_data): Delete.
1398 (asm_language): Remove references to asm_language_data.
1399 (minimal_language_data): Delete.
1400 (minimal_language): Remove references to minimal_language_data.
1401 * d-lang.c (d_language_data): Delete.
1402 (d_language): Remove references to d_language_data.
1403 * f-lang.c (f_language_data): Delete.
1404 (f_language): Remove references to f_language_data.
1405 * go-lang.c (go_language_data): Delete.
1406 (go_language): Remove references to go_language_data.
1407 * language.c (unknown_language_data): Delete.
1408 (unknown_language): Remove references to unknown_language_data.
1409 (auto_language_data): Delete.
1410 (auto_language): Remove references to auto_language_data.
1411 * language.h (language_data): Delete struct.
1412 (language_defn): No longer inherit from language_data.
1413 * m2-lang.c (m2_language_data): Delete.
1414 (m2_language): Remove references to m2_language_data.
1415 * objc-lang.c (objc_language_data): Delete.
1416 (objc_language): Remove references to objc_language_data.
1417 * opencl-lang.c (opencl_language_data): Delete.
1418 (opencl_language): Remove references to opencl_language_data.
1419 * p-lang.c (pascal_language_data): Delete.
1420 (pascal_language): Remove references to pascal_language_data.
1421 * rust-lang.c (rust_language_data): Delete.
1422 (rust_language): Remove references to rust_language_data.
1423
b7c6e27d
AB
14242020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1425
1426 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1427 initializer.
1428 (ada_language::opcode_print_table): New member function.
1429 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1430 (c_language::opcode_print_table): New member function.
1431 (cplus_language_data): Remove la_op_print_tab initializer.
1432 (cplus_language::opcode_print_table): New member function.
1433 (asm_language_data): Remove la_op_print_tab initializer.
1434 (asm_language::opcode_print_table): New member function.
1435 (minimal_language_data): Remove la_op_print_tab initializer.
1436 (minimal_language::opcode_print_table): New member function.
1437 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1438 (d_language::opcode_print_table): New member function.
1439 * expprint.c (print_subexp_standard): Update call to
1440 opcode_print_table.
1441 (op_string): Likewise.
1442 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1443 (f_language::opcode_print_table): New member function.
1444 * go-lang.c (go_language_data): Remove la_op_print_tab
1445 initializer.
1446 (go_language::opcode_print_table): New member function.
1447 * language.c (unknown_language_data): Remove la_op_print_tab
1448 initializer.
1449 (unknown_language::opcode_print_table): New member function.
1450 (auto_language_data): Remove la_op_print_tab initializer.
1451 (auto_language::opcode_print_table): New member function.
1452 * language.h (language_data): Remove la_op_print_tab field.
1453 (language_defn::opcode_print_table): Declare new member function.
1454 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1455 initializer.
1456 (m2_language::opcode_print_table): New member function.
1457 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1458 initializer.
1459 (objc_language::opcode_print_table): New member function.
1460 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1461 initializer.
1462 (opencl_language::opcode_print_table): New member function.
1463 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1464 initializer.
1465 (pascal_language::opcode_print_table): New member function.
1466 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1467 initializer.
1468 (rust_language::opcode_print_table): New member function.
1469
5aba6ebe
AB
14702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1471
1472 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1473 (ada_language::expression_ops): New member function.
1474 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1475 (c_language::expression_ops): New member function.
1476 (cplus_language_data): Remove la_exp_desc initializer.
1477 (cplus_language::expression_ops): New member function.
1478 (asm_language_data): Remove la_exp_desc initializer.
1479 (asm_language::expression_ops): New member function.
1480 (minimal_language_data): Remove la_exp_desc initializer.
1481 (minimal_language::expression_ops): New member function.
1482 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1483 (d_language::expression_ops): New member function.
1484 * eval.c (evaluate_subexp): Update call to expression_ops.
1485 * expprint.c (print_subexp): Likewise.
1486 (op_name): Likewise.
1487 (dump_subexp_body): Likewise.
1488 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1489 (f_language::expression_ops): New member function.
1490 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1491 (go_language::expression_ops): New member function.
1492 * language.c (language_defn::expression_ops): New function.
1493 (unknown_language_data): Remove la_exp_desc initializer.
1494 (auto_language_data): Likewise.
1495 * language.h (language_data): Remove la_exp_desc field.
1496 (language_defn::expression_ops): Declare new member function.
1497 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1498 (m2_language::expression_ops): New member function.
1499 * objc-lang.c (objc_language_data): Remove la_exp_desc
1500 initializer.
1501 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1502 initializer.
1503 (opencl_language::expression_ops): New member function.
1504 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1505 * parse.c (operator_length): Update call to expression_ops.
1506 (exp_iterate): Likewise.
1507 * rust-lang.c (rust_language_data): Remove la_exp_desc
1508 initializer.
1509 (ruse_language::expression_ops): New member function.
1510
b63a3f3f
AB
15112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1512
1513 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1514 initializer.
1515 (ada_language::varobj_ops): New member function.
1516 * c-lang.c (c_language_data): Remove la_varobj_ops
1517 initializer.
1518 (cplus_language_data): Likewise.
1519 (cplus_language::varobj_ops): New member function.
1520 (asm_language_data): Remove la_varobj_ops initializer.
1521 (minimal_language_data): Likewise.
1522 * d-lang.c (d_language_data): Likewise.
1523 * f-lang.c (f_language_data): Likewise.
1524 * go-lang.c (go_language_data): Likewise.
1525 * language.c (language_defn::varobj_ops): New function.
1526 (unknown_language_data): Remove la_varobj_ops
1527 initializer.
1528 (auto_language_data): Likewise.
1529 * language.h (language_data): Remove la_varobj_ops field.
1530 (language_defn::varobj_ops): Declare new member function.
1531 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1532 * objc-lang.c (objc_language_data): Likewise.
1533 * opencl-lang.c (opencl_language_data): Likewise.
1534 * p-lang.c (pascal_language_data): Likewise.
1535 * rust-lang.c (rust_language_data): Likewise.
1536 * varobj.c (varobj_create): Update call to varobj_ops.
1537 * varobj.h (default_varobj_ops): Delete define.
1538
1ac14a04
AB
15392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1540
1541 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1542 initializer.
1543 * c-lang.c (c_language_data): Likewise.
1544 (c_language::macro_expansion): New member function.
1545 (cplus_language_data): Likewise.
1546 (cplus_language::macro_expansion): New member function.
1547 (asm_language_data): Likewise.
1548 (asm_language::macro_expansion): New member function.
1549 (minimal_language_data): Likewise.
1550 (minimal_language::macro_expansion): New member function.
1551 * d-lang.c (d_language_data): Remove la_macro_expansion
1552 initializer.
1553 * f-lang.c (f_language_data): Likewise.
1554 * go-lang.c (go_language_data): Likewise.
1555 * language.c (unknown_language_data): Likewise.
1556 (auto_language_data): Likewise.
1557 * language.h (language_data): Remove la_macro_expansion field.
1558 (language_defn::macro_expansion): New member function.
1559 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1560 initializer.
1561 * objc-lang.c (objc_language_data): Likewise.
1562 (objc_language::macro_expansion): New member function.
1563 * opencl-lang.c (opencl_language_data): Likewise.
1564 (opencl_language::macro_expansion): New member function.
1565 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1566 initializer.
1567 * rust-lang.c (rust_language_data): Likewise.
1568 * symtab.c (default_collect_symbol_completion_matches_break_on):
1569 Update call to macro_expansion.
1570
3a3440fb
AB
15712020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1572
1573 * ada-lang.c (ada_language_data): Remove la_array_ordering
1574 initializer.
1575 * c-lang.c (c_language_data): Likewise.
1576 (cplus_language_data): Likewise.
1577 (asm_language_data): Likewise.
1578 (minimal_language_data): Likewise.
1579 * d-lang.c (d_language_data): Likewise.
1580 * dwarf2/read.c (read_array_order): Update for call to
1581 array_ordering.
1582 * f-lang.c (f_language_data): Remove la_array_ordering
1583 initializer.
1584 (f_language::array_ordering): New member function.
1585 * go-lang.c (go_language_data): Remove la_array_ordering
1586 initializer.
1587 * language.c (unknown_language_data): Likewise.
1588 (auto_language_data): Likewise.
1589 * language.h (language_data): Delete la_array_ordering field.
1590 (language_defn::array_ordering): New member function.
1591 * m2-lang.c (m2_language_data): Remove la_array_ordering
1592 initializer.
1593 * objc-lang.c (objc_language_data): Likewise.
1594 * opencl-lang.c (opencl_language_data): Likewise.
1595 * p-lang.c (pascal_language_data): Likewise.
1596 * rust-lang.c (rust_language_data): Likewise.
1597
0d201fa4
AB
15982020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1599
1600 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1601 initializer.
1602 * c-lang.c (c_language_data): Likewise.
1603 (cplus_language_data): Likewise.
1604 (asm_language_data): Likewise.
1605 (minimal_language_data): Likewise.
1606 * d-lang.c (d_language_data): Likewise.
1607 * f-lang.c (f_language_data): Likewise.
1608 (f_language::case_sensitivity): New member function.
1609 * go-lang.c (go_language_data): Remove la_case_sensitivity
1610 initializer.
1611 * language.c (enum case_mode): Moved here from language.h.
1612 (case_mode): Make static.
1613 (show_case_command): Update for case_sensitivity being a method.
1614 (set_case_command): Likewise.
1615 (set_range_case): Likewise.
1616 (unknown_language_data): Remove la_case_sensitivity initializer.
1617 (auto_language_data): Likewise.
1618 * language.h (case_mode): Delete, move enum declaration to
1619 language.c.
1620 (language_data): Delete la_case_sensitivity field.
1621 (language_defn::case_sensitivity): New member function.
1622 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1623 initializer.
1624 * objc-lang.c (objc_language_data): Likewise.
1625 * opencl-lang.c (opencl_language_data): Likewise.
1626 * p-lang.c (pascal_language_data): Likewise.
1627 * rust-lang.c (rust_language_data): Likewise.
1628
efdf6a73
AB
16292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1630
1631 * ada-lang.c (ada_language_data): Remove la_range_check
1632 initializer.
1633 * c-lang.c (c_language_data): Likewise.
1634 (cplus_language_data): Likewise.
1635 (asm_language_data): Likewise.
1636 (minimal_language_data): Likewise.
1637 * d-lang.c (d_language_data): Likewise.
1638 * f-lang.c (f_language_data): Likewise.
1639 (f_language::range_checking_on_by_default): New member function.
1640 * go-lang.c (go_language_data): Remove la_range_check initializer.
1641 * language.c (enum range_mode): Moved here from language.h.
1642 (range_mode): Made static.
1643 (show_range_command): Update to use
1644 range_checking_on_by_default.
1645 (set_range_command): Likewise.
1646 (set_range_case): Likewise.
1647 (unknown_language_data): Remove la_range_check initializer.
1648 (auto_language_data): Likewise.
1649 * language.h (range_mode): Delete. Enum definition moved to
1650 language.c.
1651 (language_data): Remove la_range_check field.
1652 (language_defn::range_checking_on_by_default): New member
1653 function.
1654 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1655 (m2_language::range_checking_on_by_default): New member function.
1656 * objc-lang.c (objc_language_data): Remove la_range_check
1657 initializer.
1658 * opencl-lang.c (opencl_language_data): Likewise.
1659 * p-lang.c (pascal_language_data): Likewise.
1660 (pascal_language::range_checking_on_by_default): New member
1661 function.
1662 * rust-lang.c (rust_language_data): Remove la_range_check
1663 initializer.
1664 (rust_language::range_checking_on_by_default): New member
1665 function.
1666
bf92aec5
AB
16672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1668
1669 * dwarf2/read.c (dwarf2_physname): Remove special case for
1670 language_go.
1671 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1672 member function.
1673
d3355e4d
AB
16742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1675
1676 * ada-lang.c (ada_language_data): Remove
1677 la_store_sym_names_in_linkage_form_p initializer.
1678 (ada_language::store_sym_names_in_linkage_form_p): New member
1679 function.
1680 * c-lang.c (c_language_data): Remove
1681 la_store_sym_names_in_linkage_form_p initializer.
1682 (c_language::store_sym_names_in_linkage_form_p): New member
1683 function.
1684 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1685 initializer.
1686 (asm_language_data): Likewise.
1687 (asm_language::store_sym_names_in_linkage_form_p): New member
1688 function.
1689 (minimal_language_data): Remove
1690 la_store_sym_names_in_linkage_form_p initializer.
1691 (minimal_language::store_sym_names_in_linkage_form_p): New member
1692 function.
1693 * d-lang.c (d_language_data): Remove
1694 la_store_sym_names_in_linkage_form_p initializer.
1695 * dwarf2/read.c (dwarf2_physname): Update call to
1696 store_sym_names_in_linkage_form_p.
1697 * f-lang.c (f_language_data): Remove
1698 la_store_sym_names_in_linkage_form_p initializer.
1699 * go-lang.c (go_language_data): Remove
1700 la_store_sym_names_in_linkage_form_p initializer.
1701 * language.c (unknown_language_data): Remove
1702 la_store_sym_names_in_linkage_form_p initializer.
1703 (unknown_language::store_sym_names_in_linkage_form_p): New member
1704 function.
1705 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1706 initializer.
1707 (auto_language::store_sym_names_in_linkage_form_p): New member
1708 function.
1709 * language.h (language_data): Remove
1710 la_store_sym_names_in_linkage_form_p member variable.
1711 (language_defn::store_sym_names_in_linkage_form_p): New member
1712 function.
1713 * m2-lang.c (m2_language_data): Remove
1714 la_store_sym_names_in_linkage_form_p initializer.
1715 * objc-lang.c (objc_language_data): Likewise.
1716 * opencl-lang.c (opencl_language_data): Likewise.
1717 * p-lang.c (pascal_language_data): Likewise.
1718 * rust-lang.c (rust_language_data): Likewise.
1719
22c12a6c
AB
17202020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1721
1722 * ada-lang.c (ada_language_data): Remove string_lower_bound
1723 initializer.
1724 * c-lang.c (c_language_data): Likewise.
1725 (cplus_language_data): Likewise.
1726 (asm_language_data): Likewise.
1727 (minimal_language_data): Likewise.
1728 * d-lang.c (d_language_data): Likewise.
1729 * f-lang.c (f_language_data): Likewise.
1730 * go-lang.c (go_language_data): Likewise.
1731 * language.c (unknown_language_data): Likewise.
1732 (auto_language_data): Likewise.
1733 * language.h (language_data): Remove string_lower_bound field.
1734 (language_defn::string_lower_bound): New member function.
1735 * m2-lang.c (m2_language_data): Remove string_lower_bound
1736 initializer.
1737 (m2_language::string_lower_bound): New member function.
1738 * objc-lang.c (objc_language_data): Remove string_lower_bound
1739 initializer.
1740 * opencl-lang.c (opencl_language_data): Likewise.
1741 * p-lang.c (pascal_language_data): Likewise.
1742 * rust-lang.c (rust_language_data): Likewise.
1743 * valops.c (value_cstring): Update call to string_lower_bound.
1744 (value_string): Likewise.
1745 * value.c (allocate_repeated_value): Likewise.
1746
1c236ddd
AB
17472020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1748
1749 * valops.c (value_repeat): Fix incorrect argument name in comment.
1750
67bd3fd5
AB
17512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1752
1753 * ada-lang.c (ada_language_data): Remove c_style_arrays
1754 initializer.
1755 (ada_language::c_style_arrays_p): New member fuction.
1756 * c-lang.c (c_language_data): Remove c_style_arrays
1757 initializer.
1758 (cplus_language_data): Likewise.
1759 (asm_language_data): Likewise.
1760 (minimal_language_data): Likewise.
1761 * d-lang.c (d_language_data): Likewise.
1762 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1763 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1764 (f_language::c_style_arrays_p): New member function.
1765 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1766 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1767 * language.c (unknown_language_data): Remove c_style_arrays
1768 initializer.
1769 (auto_language_data): Likewise.
1770 * language.h (language_data): Remove c_style_arrays field.
1771 (language_defn::c_style_arrays_p): New member function.
1772 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1773 (m2_language::c_style_arrays_p): New member function.
1774 * objc-lang.c (objc_language_data): Remove c_style_arrays
1775 initializer.
1776 * opencl-lang.c (opencl_language_data): Likewise.
1777 * p-lang.c (pascal_language_data): Likewise.
1778 * rust-lang.c (rust_language_data): Likewise.
1779 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1780 and update local variable to a bool.
1781 * valops.c (value_cast): Update call to c_style_arrays_p.
1782 (value_array): Likewise.
1783 * value.c (coerce_array): Likewise.
1784
85967615
AB
17852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1786
1787 * ada-lang.c (ada_language_data): Remove la_language initializer.
1788 * c-lang.c (c_language_data): Likewise.
1789 (cplus_language_data): Likewise.
1790 (asm_language_data): Likewise.
1791 (minimal_language_data): Likewise.
1792 * d-lang.c (d_language_data): Likewise.
1793 * f-lang.c (f_language_data): Likewise.
1794 * go-lang.c (go_language_data): Likewise.
1795 * language.c (unknown_language_data): Likewise.
1796 (auto_language_data): Likewise.
1797 * language.h (language_data): Remove la_language field.
1798 (language_defn::language_defn): Initialise la_language field.
1799 (language_defn::la_language): New member variable.
1800 * m2-lang.c (m2_language_data): Remove la_language field.
1801 * objc-lang.c (objc_language_data): Likewise.
1802 * opencl-lang.c (opencl_language_data): Likewise.
1803 * p-lang.c (pascal_language_data): Likewise.
1804 * rust-lang.c (rust_language_data): Likewise.
1805
e171d6f1
AB
18062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1807
1808 * ada-lang.c (ada_extensions): Delete, moved into
1809 ada_language::filename_extensions.
1810 (ada_language_data): Remove la_filename_extensions initializer.
1811 (ada_language::filename_extensions): New member function.
1812 * c-lang.c (c_extensions): Delete, moved into
1813 c_language::filename_extensions.
1814 (c_language_data): Remove la_filename_extensions initializer.
1815 (c_language::filename_extensions): New member function.
1816 (cplus_extensions): Delete, moved into
1817 cplus_language::filename_extensions.
1818 (cplus_language_data): Remove la_filename_extensions initializer.
1819 (cplus_language::filename_extensions): New member function.
1820 (asm_extensions): Delete, moved into
1821 asm_language::filename_extensions.
1822 (asm_language_data): Remove la_filename_extensions initializer.
1823 (asm_language::filename_extensions): New member function.
1824 (minimal_language_data): Remove la_filename_extensions
1825 initializer.
1826 * d-lang.c (d_extensions): Delete, moved into
1827 d_language::filename_extensions.
1828 (d_language_data): Remove la_filename_extensions initializer.
1829 (d_language::filename_extensions): New member function.
1830 * f-lang.c (f_extensions): Delete, moved into
1831 f_language::filename_extensions.
1832 (f_language_data): Remove la_filename_extensions initializer.
1833 (f_language::filename_extensions): New member function.
1834 * go-lang.c (go_language_data): Remove la_filename_extensions
1835 initializer.
1836 * language.c (add_set_language_command): Update now that
1837 filename_extensions returns a vector.
1838 (unknown_language_data): Remove la_filename_extensions
1839 initializer.
1840 (auto_language_data): Likewise.
1841 * language.h (language_data): Remove la_filename_extensions field.
1842 (language_defn::filename_extensions): New member function.
1843 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1844 initializer.
1845 * objc-lang.c (objc_extensions): Delete, moved into
1846 objc_language::filename_extensions.
1847 (objc_language_data): Remove la_filename_extensions initializer.
1848 (objc_language::filename_extensions): New member function.
1849 * opencl-lang.c (opencl_language_data): Remove
1850 la_filename_extensions initializer.
1851 * p-lang.c (pascal_extensions): Delete, moved into
1852 pascal_language::filename_extensions.
1853 (pascal_language_data): Remove la_filename_extensions initializer.
1854 (pascal_language::filename_extensions): New member function.
1855 * rust-lang.c (rust_extensions): Delete, moved into
1856 rust_language::filename_extensions.
1857 (rust_language_data): Remove la_filename_extensions initializer.
1858 (rust_language::filename_extensions): New member function.
1859 * symfile.c (add_filename_language): Add new assert.
1860
6f7664a9
AB
18612020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1862
1863 * ada-lang.c (ada_language_data): Remove la_name and
1864 la_natural_name initializers.
1865 (ada_language::name): New member function.
1866 (ada_language::natural_name): New member function.
1867 * c-lang.c (c_language_data): Remove la_name and
1868 la_natural_name initializers.
1869 (c_language::name): New member function.
1870 (c_language::natural_name): New member function.
1871 (cplus_language_data): Remove la_name and
1872 la_natural_name initializers.
1873 (cplus_language::name): New member function.
1874 (cplus_language::natural_name): New member function.
1875 (asm_language_data): Remove la_name and
1876 la_natural_name initializers.
1877 (asm_language::name): New member function.
1878 (asm_language::natural_name): New member function.
1879 (minimal_language_data): Remove la_name and
1880 la_natural_name initializers.
1881 (minimal_language::name): New member function.
1882 (minimal_language::natural_name): New member function.
1883 * compile/compile.c (compile_to_object): Update call to
1884 lanugage_defn::name.
1885 * d-lang.c (d_language_data): Remove la_name and
1886 la_natural_name initializers.
1887 (d_language::name): New member function.
1888 (d_language::natural_name): New member function.
1889 * expprint.c (print_subexp_standard): Update call to
1890 language_defn::name.
1891 (dump_raw_expression): Likewise
1892 (dump_prefix_expression): Likewise.
1893 * f-lang.c (f_language_data): Remove la_name and
1894 la_natural_name initializers.
1895 (f_language::name): New member function.
1896 (f_language::natural_name): New member function.
1897 * go-lang.c (go_language_data): Remove la_name and
1898 la_natural_name initializers.
1899 (go_language::name): New member function.
1900 (go_language::natural_name): New member function.
1901 * language.c (show_language_command): Update call to
1902 language_defn::name.
1903 (set_language_command): Likewise.
1904 (language_enum): Likewise.
1905 (language_str): Likewise.
1906 (add_set_language_command): Likewise, use
1907 language_defn::natural_name in the doc string.
1908 (unknown_language_data): Remove la_name and
1909 la_natural_name initializers.
1910 (unknown_language::name): New member function.
1911 (unknown_language::natural_name): New member function.
1912 (auto_language_data): Remove la_name and
1913 la_natural_name initializers.
1914 (auto_language::name): New member function.
1915 (auto_language::natural_name): New member function.
1916 (language_lookup_primitive_type_as_symbol): Update call to
1917 language_defn::name.
1918 * language.h (language_data): Remove la_name and la_natural_name
1919 member variables.
1920 (language_defn::name): New member function.
1921 (language_defn::natural_name): New member function.
1922 * m2-lang.c (m2_language_data): Remove la_name and
1923 la_natural_name initializers.
1924 (m2_language::name): New member function.
1925 (m2_language::natural_name): New member function.
1926 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1927 language_defn::natural_name.
1928 * objc-lang.c (objc_language_data): Remove la_name and
1929 la_natural_name initializers.
1930 (objc_language::name): New member function.
1931 (objc_language::natural_name): New member function.
1932 * opencl-lang.c (opencl_language_data): Remove la_name and
1933 la_natural_name initializers.
1934 (opencl_language::name): New member function.
1935 (opencl_language::natural_name): New member function.
1936 * p-lang.c (pascal_language_data): Remove la_name and
1937 la_natural_name initializers.
1938 (pascal_language::name): New member function.
1939 (pascal_language::natural_name): New member function.
1940 * rust-lang.c (rust_language_data): Remove la_name and
1941 la_natural_name initializers.
1942 (rust_language::name): New member function.
1943 (rust_language::natural_name): New member function.
1944 * symtab.c (lookup_language_this): Update call to
1945 language_defn::name.
1946
5bae7c4e
AB
19472020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1948
1949 * ada-lang.c (ada_language_data): Remove la_name_of_this
1950 initializer.
1951 * ax-gdb.c (gen_expr): Update call to name_of_this.
1952 * c-exp.y (classify_name): Likewise.
1953 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1954 (cplus_language_data): Likewise.
1955 (cplus_language::name_of_this): New member function.
1956 (asm_language_data): Remove la_name_of_this initializer.
1957 (minimal_language_data): Likewise.
1958 * d-lang.c (d_language_data): Likewise.
1959 (d_language::name_of_this): New member function.
1960 * expprint.c (print_subexp_standard): Update call to name_of_this.
1961 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1962 * go-lang.c (go_language_data): Likewise.
1963 * language.c (unknown_language_data): Likewise.
1964 (unknown_language::name_of_this): New member function.
1965 (auto_language_data): Remove la_name_of_this initializer.
1966 (auto_language::name_of_this): New member function.
1967 * language.h (language_data): Delete la_name_of_this member
1968 variable.
1969 (language_defn::name_of_this): New member function.
1970 * m2-lang.c (m2_language_data): Remove la_name_of_this
1971 initializer.
1972 * objc-lang.c (objc_language_data): Likewise.
1973 (objc_language::name_of_this): New member function.
1974 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1975 initializer.
1976 * p-lang.c (pascal_language_data): Likewise.
1977 (pascal_language::name_of_this): New member function.
1978 * rust-lang.c (rust_language_data): Remove la_name_of_this
1979 initializer.
1980 * symtab.c (lookup_language_this): Update call to name_of_this.
1981 (lookup_symbol_aux): Likewise.
1982 * valops.c (value_of_this): Likewise.
1983
22e3f3ed
AB
19842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1985
1986 * ada-lang.c (ada_language_data): Remove
1987 la_struct_too_deep_ellipsis initializer.
1988 (ada_language::struct_too_deep_ellipsis): New member function.
1989 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1990 initializer.
1991 (cplus_language_data): Likewise.
1992 (asm_language_data): Likewise.
1993 (minimal_language_data): Likewise.
1994 * cp-valprint.c (cp_print_value): Update call to
1995 struct_too_deep_ellipsis.
1996 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1997 initializer.
1998 * f-lang.c (f_language_data): Likewise.
1999 (f_language::struct_too_deep_ellipsis): New member function.
2000 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2001 initializer.
2002 * language.c (unknown_language_data): Likewise.
2003 (auto_language_data): Likewise.
2004 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2005 member variable.
2006 (language_defn::struct_too_deep_ellipsis): New member function.
2007 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2008 initializer.Q
2009 * objc-lang.c (objc_language_data): Likewise.
2010 * opencl-lang.c (opencl_language_data): Likewise.
2011 * p-lang.c (pascal_language_data): Likewise.
2012 * rust-lang.c (rust_language_data): Likewise.
2013 * valprint.c (val_print_check_max_depth): Update call to
2014 struct_too_deep_ellipsis.
2015
ed29e1c7
FW
20162020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2017
2018 * MAINTAINERS (Write After Approval): Add myself.
2019
12d8f940
TT
20202020-09-15 Tom Tromey <tom@tromey.com>
2021
2022 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2023 Remove.
2024
6b5a7bc7
TT
20252020-09-15 Tom Tromey <tom@tromey.com>
2026
2027 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2028 and TYPE_CODE_METHODPTR cases.
2029 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2030 (c_value_print_inner): Update.
2031 * valprint.c (generic_value_print_memberptr): New function, from
2032 c_value_print_memberptr.
2033 (generic_value_print): Use it. Call cplus_print_method_ptr.
2034
47f0e2ff
TT
20352020-09-15 Tom Tromey <tromey@adacore.com>
2036
2037 * python/python-internal.h (PyInt_FromLong): Remove define.
2038 * python/py-value.c (convert_value_from_python): Use
2039 gdb_py_object_from_longest.
2040 * python/py-type.c (typy_get_code): Use
2041 gdb_py_object_from_longest.
2042 * python/py-symtab.c (salpy_get_line): Use
2043 gdb_py_object_from_longest.
2044 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2045 gdb_py_object_from_longest.
2046 * python/py-record.c (recpy_gap_reason_code): Use
2047 gdb_py_object_from_longest.
2048 * python/py-record-btrace.c (recpy_bt_insn_size)
2049 (recpy_bt_func_level, btpy_list_count): Use
2050 gdb_py_object_from_longest.
2051 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2052 gdb_py_object_from_longest. Fix error handling.
2053 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2054 gdb_py_object_from_longest.
2055 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2056 gdb_py_object_from_longest.
2057 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2058 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2059 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2060
512116ce
TT
20612020-09-15 Tom Tromey <tromey@adacore.com>
2062
2063 * python/python.c (gdbpy_parameter_value): Use
2064 gdb_py_object_from_ulongest.
2065
4ab1029c
TT
20662020-09-15 Tom Tromey <tromey@adacore.com>
2067
2068 * python/py-infevents.c (create_register_changed_event_object):
2069 Use gdb_py_object_from_longest.
2070 * python/py-exitedevent.c (create_exited_event_object): Use
2071 gdb_py_object_from_longest.
2072
062534d4
TT
20732020-09-15 Tom Tromey <tromey@adacore.com>
2074
2075 * python/python.c (gdbpy_parameter_value): Use
2076 gdb_py_object_from_longest.
2077 * python/py-type.c (convert_field, typy_range): Use
2078 gdb_py_object_from_longest.
2079 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2080 gdb_py_object_from_longest.
2081 * python/py-lazy-string.c (stpy_get_length): Use
2082 gdb_py_object_from_longest.
2083 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2084 gdb_py_object_from_longest.
2085 * python/py-infevents.c (create_memory_changed_event_object): Use
2086 gdb_py_object_from_longest.
2087 * python/py-inferior.c (infpy_get_num): Use
2088 gdb_py_object_from_longest.
2089 (infpy_get_pid): Likewise.
2090
d1cab987
TT
20912020-09-15 Tom Tromey <tromey@adacore.com>
2092
2093 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2094 defines.
2095 * python/py-value.c (valpy_long): Use
2096 gdb_py_object_from_ulongest.
2097 * python/py-symtab.c (salpy_get_pc): Use
2098 gdb_py_object_from_ulongest.
2099 (salpy_get_last): Likewise.
2100 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2101 gdb_py_object_from_ulongest.
2102 * python/py-lazy-string.c (stpy_get_address): Use
2103 gdb_py_object_from_ulongest.
2104 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2105 * python/py-arch.c (archpy_disassemble): Use
2106 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2107 error handling.
2108
4bde49dc
TT
21092020-09-15 Tom Tromey <tromey@adacore.com>
2110
2111 * python/python-internal.h (gdb_py_long_from_longest): Remove
2112 defines.
2113 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2114 * python/py-type.c (convert_field, typy_get_sizeof): Use
2115 gdb_py_object_from_longest.
2116 * python/py-record-btrace.c (btpy_list_index): Use
2117 gdb_py_object_from_longest.
2118
37431074
TT
21192020-09-15 Tom Tromey <tromey@adacore.com>
2120
2121 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2122 * python/py-record.c (recpy_element_number): Use
2123 gdb_py_object_from_longest.
2124 (recpy_gap_number): Likewise.
2125
cbe25684
TT
21262020-09-15 Tom Tromey <tromey@adacore.com>
2127
2128 * top.c (ui::ui): Update.
2129 (highest_ui_num): Remove.
2130 * top.h (struct ui) <num>: Remove.
2131
db92ac45
TT
21322020-09-15 Tom Tromey <tromey@adacore.com>
2133
2134 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2135 * ui-style.c (ansi_regex_text): Now array.
2136 * rust-exp.y (number_regex_text): Now array.
2137 * linespec.c (linespec_quote_characters): Now array.
2138 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2139 Now arrays.
2140
d2b31b67
SM
21412020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2142
2143 * debuginfod-support.c (debuginfod_client_deleter): New.
2144 (debuginfod_client_up): New.
2145 (debuginfod_init): Return debuginfod_client_up.
2146 (debuginfod_source_query): Adjust.
2147 (debuginfod_debuginfo_query): Adjust.
2148
3246bd8e
SM
21492020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2150
2151 * debuginfod-support.c (debuginfod_source_query): Use
2152 make_unique_xstrdup.
2153
10242f36
SM
21542020-09-14 Simon Marchi <simon.marchi@efficios.com>
2155
2156 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2157 with `type::instance_flags`.
2158
e1044e6a
MM
21592020-09-14 Michael Mullin <masmullin@gmail.com>
2160
2161 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2162 Remove baton parameter.
2163
04902b09
PA
21642020-09-14 Pedro Alves <pedro@palves.net>
2165
2166 * Makefile.in (SELFTESTS_SRCS): Add
2167 unittests/enum-flags-selftests.c.
2168 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2169 btrace_function_flags instead of enum btrace_function_flag.
2170 * compile/compile-c-types.c (convert_qualified): Use
2171 enum_flags::raw.
2172 * compile/compile-cplus-symbols.c (convert_one_symbol)
2173 (convert_symbol_bmsym):
2174 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2175 (compile_cplus_convert_struct_or_union_methods)
2176 (compile_cplus_instance::convert_qualified_base):
2177 * go-exp.y (parse_string_or_char): Add cast to int.
2178 * unittests/enum-flags-selftests.c: New file.
2179 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2180 type to btrace_thread_flags from btrace_thread_flag.
2181 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2182 local's type to btrace_thread_flags from btrace_thread_flag. Add
2183 cast in DEBUG call.
2184
69896a2c
PA
21852020-09-14 Pedro Alves <pedro@palves.net>
2186
2187 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2188 * gdbtypes.c (address_space_name_to_int): Rename to ...
2189 (address_space_name_to_type_instance_flags): ... this.
2190 (address_space_int_to_name): Rename to ...
2191 (address_space_type_instance_flags_to_name): ... this.
2192 * gdbtypes.h (address_space_name_to_int): Rename to ...
2193 (address_space_name_to_type_instance_flags): ... this.
2194 (address_space_int_to_name): Rename to ...
2195 (address_space_type_instance_flags_to_name): ... this.
2196 * type-stack.c (type_stack::insert): Adjust to rename.
2197 * type-stack.h (type_stack::insert): Likewise.
2198
314ad88d
PA
21992020-09-14 Pedro Alves <pedro@palves.net>
2200 Andrew Burgess <andrew.burgess@embecosm.com>
2201
2202 * avr-tdep.c (avr_address_class_type_flags): Return
2203 type_instance_flags.
2204 (avr_address_class_type_flags_to_name): Take a
2205 type_instance_flags.
2206 (avr_address_class_name_to_type_flags): Return bool and take a
2207 type_instance_flags.
2208 * d-lang.c (build_d_types): Use type::set_instance_flags.
2209 * ft32-tdep.c (ft32_address_class_type_flags): Return
2210 type_instance_flags.
2211 (ft32_address_class_type_flags_to_name): Take a
2212 type_instance_flags.
2213 (ft32_address_class_name_to_type_flags): Return bool and take a
2214 type_instance_flags.
2215 (ft32_gdbarch_init): Use type::set_instance_flags.
2216 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2217 * gdbarch.h, gdbarch.c: Regenerate.
2218 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2219 (address_class_name_to_type_flags): Use type_instance_flags and
2220 bool.
2221 * gdbtypes.c (address_space_name_to_int)
2222 (address_space_int_to_name, make_qualified_type): Use
2223 type_instance_flags.
2224 (make_qualified_type): Use type_instance_flags and
2225 type::set_instance_flags.
2226 (make_type_with_address_space, make_cv_type, make_vector_type)
2227 (check_typedef): Use type_instance_flags.
2228 (recursive_dump_type): Cast type_instance_flags to unsigned for
2229 printing.
2230 (copy_type_recursive): Use type::set_instance_flags.
2231 (gdbtypes_post_init): Use type::set_instance_flags.
2232 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2233 <m_instance_flags>: ... this.
2234 <instance_flags, set_instance_flags>: New methods.
2235 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2236 (SET_TYPE_INSTANCE_FLAGS): New.
2237 (address_space_name_to_int, address_space_int_to_name)
2238 (make_type_with_address_space): Pass flags using
2239 type_instance_flags instead of int.
2240 * stabsread.c (cleanup_undefined_types_noname): Use
2241 type::set_instance_flags.
2242 * s390-tdep.c (s390_address_class_type_flags): Return
2243 type_instance_flags.
2244 (s390_address_class_type_flags_to_name): Take a
2245 type_instance_flags.
2246 (s390_address_class_name_to_type_flags): Return bool and take a
2247 type_instance_flags.
2248 * type-stack.c (type_stack::follow_types): Use
2249 type_instance_flags.
2250 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2251
27087b7f
TT
22522020-09-14 Tom Tromey <tromey@adacore.com>
2253
2254 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2255 * x86-tdep.c (x86_is_thunk_register_name)
2256 (x86_in_indirect_branch_thunk): Update.
2257 * sparc64-tdep.c (sparc64_fpu_register_names)
2258 (sparc64_cp0_register_names, sparc64_register_names)
2259 (sparc64_pseudo_register_names): Now const.
2260 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2261 cp0_registers_num>: Now const.
2262 * sparc-tdep.c (sparc_core_register_names)
2263 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2264 (sparc32_pseudo_register_names): Now const.
2265 (validate_tdesc_registers): Update.
2266 * rust-lang.c (rust_extensions): Now const.
2267 * p-lang.c (p_extensions): Now const.
2268 * objc-lang.c (objc_extensions): Now const.
2269 * nto-tdep.c (nto_thread_state_str): Now const.
2270 * moxie-tdep.c (moxie_register_names): Now const.
2271 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2272 Now const.
2273 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2274 (mips_linux_reg_names): Now const.
2275 (mips_gdbarch_init): Update.
2276 * microblaze-tdep.c (microblaze_register_names): Now const.
2277 * m68k-tdep.c (m68k_register_names): Now const.
2278 * m32r-tdep.c (m32r_register_names): Now const.
2279 * ia64-tdep.c (ia64_register_names): Now const.
2280 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2281 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2282 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2283 ymm_avx512_register_names, pkeys_register_names>: Now const.
2284 * i386-tdep.c (i386_register_names, i386_zmm_names)
2285 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2286 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2287 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2288 * f-lang.c (f_extensions): Now const.
2289 * d-lang.c (d_extensions): Now const.
2290 * csky-tdep.c (csky_register_names): Now const.
2291 * charset.c (default_charset_names, charset_enum): Now const.
2292 (_initialize_charset): Update.
2293 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2294 const.
2295 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2296 (bsd_uthread_solib_loaded): Update.
2297 (bsd_uthread_state): Now const.
2298 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2299 (amd64_ymm_avx512_names, amd64_ymmh_names)
2300 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2301 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2302 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2303 (amd64_dword_names): Now const.
2304 * agent.c (can_use_agent_enum): Now const.
2305 * ada-tasks.c (task_states, long_task_states): Now const.
2306 * ada-lang.c (known_runtime_file_name_patterns)
2307 (known_auxiliary_function_name_patterns, attribute_names)
2308 (standard_exc, ada_extensions): Now const.
2309
89806626
SM
23102020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2311
2312 * bcache.h (struct bcache) <bcache>: Remove constructor.
2313 <m_hash_function, m_compare_function>: Remove.
2314 <~bcache>: Make virtual.
2315 <compare>: Remove static method, introduce virtual method.
2316 <default_hash>: Remove.
2317 <hash>: New virtual method.
2318 * bcache.c (bcache::expand_hash_table): Update.
2319 (bcache::insert): Update.
2320 (bcache::hash): New.
2321 (bcache::compare): Update comment and parameter names.
2322 * gdbtypes.c (types_deeply_equal): Update.
2323 * psymtab.h (struct psymbol_bcache): New struct.
2324 (class psymtab_storage) <psymtab_storage>: Make default.
2325 <psymbol_cache>: Change type to psymbol_bcache.
2326 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2327 (psymbol_hash): Change to...
2328 (psymbol_bcache::hash): ... this.
2329 (psymbol_compare): Change to...
2330 (psymbol_bcache::compare): ... this.
2331
677c92fe
SM
23322020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2333
2334 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2335 checking for initial lwp.
2336
3eba3a01
TT
23372020-09-14 Tom Tromey <tromey@adacore.com>
2338
2339 * m68k-tdep.c (m68k_extract_return_value): Use
2340 pointer_result_regnum.
2341 (m68k_store_return_value): Likewise.
2342 (m68k_reg_struct_return_p): Handle vectors and arrays.
2343 (m68k_return_value): Handle arrays.
2344 (m68k_svr4_return_value): Fix single-element aggregate handling.
2345 Handle long double. Adjust for embedded ABI.
2346 (m68k_svr4_init_abi): Set pointer_result_regnum.
2347 (m68k_embedded_init_abi): New function.
2348 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2349 (m68k_osabi_sniffer): New function.
2350 (_initialize_m68k_tdep): Register osabi sniffer.
2351 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2352 member.
2353
33f4dd48
SM
23542020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2355
2356 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2357 with gdb::unique_xmalloc_ptr<char>.
2358
8400a90d
SM
23592020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2360
2361 * xml-support.h (xml_fetch_another): Change type to be a
2362 function_view.
2363 (xml_process_xincludes): Remove baton parameter.
2364 (xml_fetch_content_from_file): Change baton parameter to
2365 dirname.
2366 * xml-support.c (struct xinclude_parsing_data)
2367 <xinclude_parsing_data>: Remove baton parameter.
2368 <fetcher_baton>: Remove.
2369 (xinclude_start_include): Adjust.
2370 (xml_process_xincludes): Adjust.
2371 (xml_fetch_content_from_file): Replace baton parameter with
2372 dirname.
2373 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2374 (xml_init_syscalls_info): Use a lambda.
2375 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2376 (file_read_description_xml): Use a lambda.
2377 (fetch_available_features_from_target): Change baton parameter
2378 to target_ops.
2379 (target_read_description_xml): Use a lambda.
2380 (target_fetch_description_xml): Use a lambda.
2381 (string_read_description_xml): Update.
2382
04f5bab2
SM
23832020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2384
2385 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2386 uses with type::endianity_is_not_default.
2387
db558e34
SM
23882020-09-14 Simon Marchi <simon.marchi@efficios.com>
2389
2390 * gdbtypes.h (struct type) <endianity_is_not_default,
2391 set_endianity_is_not_default>: New methods.
2392 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2393 type::endianity_is_not_default, change all write call sites to
2394 use type::set_endianity_is_not_default.
2395
22c4c60c
SM
23962020-09-14 Simon Marchi <simon.marchi@efficios.com>
2397
2398 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2399 uses with type::is_fixed_instance.
2400
9cdd0d12
SM
24012020-09-14 Simon Marchi <simon.marchi@efficios.com>
2402
2403 * gdbtypes.h (struct type) <is_fixed_instance,
2404 set_is_fixed_instance>: New methods.
2405 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2406 write call sites to use type::set_is_fixed_instance.
2407
0becda7a
SM
24082020-09-14 Simon Marchi <simon.marchi@efficios.com>
2409
2410 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2411 uses with type::is_gnu_ifunc.
2412
03cc7249
SM
24132020-09-14 Simon Marchi <simon.marchi@efficios.com>
2414
2415 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2416 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2417 use type::set_is_gnu_ifunc.
2418
3f46044c
SM
24192020-09-14 Simon Marchi <simon.marchi@efficios.com>
2420
2421 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2422 uses with type::stub_is_supported.
2423
9baccff6
SM
24242020-09-14 Simon Marchi <simon.marchi@efficios.com>
2425
2426 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2427 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2428 use type::set_stub_is_supported.
2429
bd63c870
SM
24302020-09-14 Simon Marchi <simon.marchi@efficios.com>
2431
2432 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2433 uses with type::is_vector.
2434
2062087b
SM
24352020-09-14 Simon Marchi <simon.marchi@efficios.com>
2436
2437 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2438 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2439 use type::set_is_vector.
2440
a409645d
SM
24412020-09-14 Simon Marchi <simon.marchi@efficios.com>
2442
2443 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2444 uses with type::has_varargs.
2445
1d6286ed
SM
24462020-09-14 Simon Marchi <simon.marchi@efficios.com>
2447
2448 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2449 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2450 use type::set_has_varargs.
2451
7f9f399b
SM
24522020-09-14 Simon Marchi <simon.marchi@efficios.com>
2453
2454 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2455 uses with type::is_prototyped.
2456
27e69b7a
SM
24572020-09-14 Simon Marchi <simon.marchi@efficios.com>
2458
2459 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2460 New methods.
2461 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2462 call sites to use type::set_is_prototyped.
2463
d2183968
SM
24642020-09-14 Simon Marchi <simon.marchi@efficios.com>
2465
2466 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2467 uses with type::target_is_stub.
2468
8f53807e
SM
24692020-09-14 Simon Marchi <simon.marchi@efficios.com>
2470
2471 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2472 New methods.
2473 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2474 sites to use type::set_target_is_stub.
2475
e46d3488
SM
24762020-09-14 Simon Marchi <simon.marchi@efficios.com>
2477
2478 * gdbtypes.h (TYPE_STUB): Remove, replace all
2479 uses with type::is_stub.
2480
b4b73759
SM
24812020-09-14 Simon Marchi <simon.marchi@efficios.com>
2482
2483 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2484 (TYPE_STUB): Use type::is_stub, change all write call sites to
2485 use type::set_is_stub.
2486
20ce4123
SM
24872020-09-14 Simon Marchi <simon.marchi@efficios.com>
2488
2489 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2490 type::has_no_signedness.
2491
15152a54
SM
24922020-09-14 Simon Marchi <simon.marchi@efficios.com>
2493
2494 * gdbtypes.h (struct type) <has_no_signedness,
2495 set_has_no_signedness>: New methods.
2496 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2497 call sites to use type::set_has_no_signedness.
2498
c6d940a9
SM
24992020-09-14 Simon Marchi <simon.marchi@efficios.com>
2500
2501 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2502 type::is_unsigned.
2503
653223d3
SM
25042020-09-14 Simon Marchi <simon.marchi@efficios.com>
2505
2506 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2507 methods.
2508 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2509 sites to use type::set_is_unsigned.
2510
55ea94da 25112020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2512 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2513
e851246a
SM
2514 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2515 pointer and stack frame offset when unwinding.
55ea94da 2516
6791b117
PA
25172020-09-13 Pedro Alves <pedro@palves.net>
2518
2519 * NEWS: Document "-break-insert --qualified".
2520 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2521
77f2120b
PA
25222020-09-13 Pedro Alves <pedro@palves.net>
2523
2524 * linespec.c (classify_mtype, compare_msyms): Delete.
2525 (search_minsyms_for_name): Remove classification logic. Instead
2526 filter out trampoline symbols if we also found an external
2527 function of the same name.
2528
ed6a896c
JB
25292020-09-13 Joel Brobecker <brobecker@adacore.com>
2530
2531 * NEWS: Create a new section for the next release branch.
2532 Rename the section of the current branch, now that it has
2533 been cut.
2534
32aea73e
JB
25352020-09-13 Joel Brobecker <brobecker@adacore.com>
2536
2537 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2538 * version.in: Bump version to 11.0.50.DATE-git.
2539
8087c3fa
JB
25402020-09-12 Joel Brobecker <brobecker@adacore.com>
2541
2542 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2543
2a67f09d
FW
25442020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2545 Felix Willgerodt <Felix.Willgerodt@intel.com>
2546
2547 * gdbarch.sh: Added bfloat16 type.
2548 * gdbarch.c: Regenerated.
2549 * gdbarch.h: Regenerated.
2550 * gdbtypes.c (floatformats_bfloat16): New struct.
2551 (gdbtypes_post_init): Add builtin_bfloat16.
2552 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2553 (floatformats_bfloat16): New struct.
2554 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2555 (i386_ymm_type): Add field "v16_bfloat16"
2556 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2557 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2558 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2559 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2560 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2561 * features/i386/64bit-avx512.c: Regenerated.
2562 * features/i386/64bit-sse.xml: Add bfloat16 type.
2563 * features/i386/64bit-sse.c: Regenerated.
2564
1347d111
FW
25652020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2566
2567 * i386-tdep.c (i386_zmm_type): Fix field names.
2568 (i386_ymm_type): Fix field names.
2569
7a4e8e7d
TBA
25702020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2571
2572 * breakpoint.c: Fix typo in the help message of the
2573 "set breakpoint condition-evaluation" command.
2574
cf4ac4be
KR
25752020-09-10 Kamil Rytarowski <n54@gmx.com>
2576
2577 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2578 * (nbsd_nat_target::pid_to_exec_file)
2579 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2580 (nbsd_nat_target::post_startup_inferior)
2581 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2582 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2583 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2584 * (nbsd_thread_lister): Remove.
2585
f404573e
KR
25862020-09-10 Kamil Rytarowski <n54@gmx.com>
2587
2588 * fork-inferior.c (startup_inferior): Avoid double free.
2589
1ccb2c17
KR
25902020-09-10 Kamil Rytarowski <n54@gmx.com>
2591
2592 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2593 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2594
feedfcc7
KR
25952020-09-10 Kamil Rytarowski <n54@gmx.com>
2596
2597 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2598 * netbsd-nat.c: Include <sys/ptrace.h>.
2599 * (netbsd_nat::enable_proc_events): Add.
2600
c489f8c6
KR
26012020-09-10 Kamil Rytarowski <n54@gmx.com>
2602
2603 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2604 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2605 (netbsd_nat::for_each_thread): Add.
2606 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2607 "gdbsupport/common-debug.h".
2608 * (netbsd_nat::netbsd_thread_lister)
2609 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2610 (netbsd_nat::for_each_thread): Add.
2611
330662f6
KR
26122020-09-10 Kamil Rytarowski <n54@gmx.com>
2613
2614 * netbsd-nat.h: Include <unistd.h>.
2615 * (netbsd_nat::pid_to_exec_file): Add.
2616 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2617 * (netbsd_nat::pid_to_exec_file) Add.
2618
70b67307
KR
26192020-09-10 Kamil Rytarowski <n54@gmx.com>
2620
2621 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2622
99cf6da6
KR
26232020-09-10 Kamil Rytarowski <n54@gmx.com>
2624
2625 * netbsd-nat.h: New file.
2626 * netbsd-nat.c: Likewise.
2627
1b788fb6
TT
26282020-09-09 Tom Tromey <tromey@adacore.com>
2629
2630 * ada-lang.c (remove_extra_symbols): Do not increment when
2631 removing an element
2632
03b0a45f
TT
26332020-09-08 Tom Tromey <tromey@adacore.com>
2634
2635 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2636
3cae4447
TT
26372020-09-08 Tom Tromey <tromey@adacore.com>
2638
2639 PR win32/25302:
2640 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2641 (gdb_bfd_init_data): New function.
2642 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2643
7f08fd51
TBA
26442020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2645
2646 * infrun.c (fetch_inferior_event): Use
2647 `switch_to_target_no_thread` to switch the target.
2648
3e6ff933
TT
26492020-09-06 Tom Tromey <tom@tromey.com>
2650
2651 * symfile.h (dwarf2_free_objfile): Don't declare.
2652
e56798df
AKS
26532020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2654
2655 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2656 to match 16 byte real/complex type generated by Flang compiler.
2657
8f5c6526
TV
26582020-09-03 Tom de Vries <tdevries@suse.de>
2659
2660 PR breakpoint/26546
2661 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2662 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2663
c5065df0
SM
26642020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2665
2666 * maint.c (index_digits): New function.
2667 (struct maint_print_section_data): Remove.
2668 (print_bfd_section_info): Remove print_data parameter, add arg
2669 and index_digits.
2670 (print_objfile_section_info): Likewise.
2671 (print_bfd_section_info_maybe_relocated): Likewise (plus
2672 objfile).
2673 (maintenance_info_sections): Adjust calls.
2674
02c6f3f1
TT
26752020-09-02 Tom Tromey <tromey@adacore.com>
2676
2677 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2678 for null pointers.
2679 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2680
ef5e5b0b
SM
26812020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2682
2683 * bcache.h (struct bcache) <insert>: Change type of `added` to
2684 pointer to bool.
2685 * bcache.c (bcache::insert): Likewise.
2686 * gdbtypes.c (check_types_worklist): Adjust.
2687 * psymtab.c (add_psymbol_to_bcache): Adjust.
2688
973695d6
KB
26892020-08-31 Kevin Buettner <kevinb@redhat.com>
2690
2691 * corelow.c (unordered_set): Include.
2692 (class core_target): Add field 'm_core_unavailable_mappings'.
2693 (core_target::build_file_mappings): Print only one warning
2694 per inaccessible file. Add unavailable/broken mappings
2695 to m_core_unavailable_mappings.
2696 (core_target::xfer_partial): Call...
2697 (core_target::xfer_memory_via_mappings): New method.
2698
264fc0e2
SM
26992020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2700
2701 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2702 type to bool.
2703
2de01bdb
SM
27042020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2705
2706 * dwarf2/read.c (struct field_info): Fix indentation.
2707
f3bd50f1
SM
27082020-08-31 Simon Marchi <simon.marchi@efficios.com>
2709
2710 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2711 ordering in comment.
2712 * frame.c (frame_id_eq): Fix indentation.
2713
22b9b4b0
SL
27142020-08-31 Scott Linder <scott@scottlinder.com>
2715 Simon Marchi <simon.marchi@efficios.com>
2716
2717 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2718 inline frame ids in outer frame.
2719
84154d16
SM
27202020-08-31 Simon Marchi <simon.marchi@efficios.com>
2721
2722 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2723 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2724 (outer_frame_id): Use FID_STACK_OUTER instead of
2725 FID_STACK_INVALID.
2726 (frame_id_p): Don't check for outer_frame_id.
2727
8efaf6b3
SM
27282020-08-31 Simon Marchi <simon.marchi@efficios.com>
2729
2730 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2731 regnum/frame in value. Call allocate_value_lazy.
2732 * frame.c (frame_unwind_register_value): Use
2733 val_print_not_saved.
2734
fe1fe7ea
SM
27352020-08-31 Simon Marchi <simon.marchi@efficios.com>
2736
2737 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2738
f7c7700d
PA
27392020-08-29 Pedro Alves <pedro@palves.net>
2740
2741 * progspace.c (print_program_space): Use all_inferiors. Switch to
2742 the inferior before calling target_pid_to_str.
2743
e0814aae
TT
27442020-08-28 Tom Tromey <tom@tromey.com>
2745
2746 * xcoffread.c (xcoff_end_psymtab): Update comment.
2747 * dbxread.c (dbx_end_psymtab): Update comment.
2748
626d2320
TV
27492020-08-28 Tom de Vries <tdevries@suse.de>
2750
2751 PR breakpoint/26544
2752 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2753 event_location.
2754 (create_breakpoint): Same.
2755 (base_breakpoint_decode_location): Same.
2756 (bkpt_create_sals_from_location): Same.
2757 (bkpt_decode_location): Same.
2758 (bkpt_probe_create_sals_from_location): Same.
2759 (bkpt_probe_decode_location): Same.
2760 (tracepoint_create_sals_from_location): Same.
2761 (tracepoint_decode_location): Same.
2762 (tracepoint_probe_decode_location): Same.
2763 (strace_marker_create_sals_from_location): Same.
2764 (strace_marker_decode_location): Same.
2765 (create_sals_from_location_default): Same.
2766 (decode_location_default): Same.
2767 * breakpoint.h (struct breakpoint_ops): Same.
2768 (create_breakpoint): Same.
2769 * linespec.h (decode_line_full): Same.
2770 * linespec.c (decode_line_full): Same. Throw error if
2771 result.size () == 0.
2772
df631783
PA
27732020-08-27 Pedro Alves <pedro@palves.net>
2774
2775 PR gdb/26524
2776 * breakpoint.c (until_break_fsm) <location_breakpoint,
2777 caller_breakpoint>: Delete fields.
2778 <breakpoints>: New field.
2779 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2780 two individual breakpoints.
2781 (until_break_fsm::should_stop): Loop over breakpoints in the
2782 breakpoint vector.
2783 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2784 vector.
2785 (until_break_command): Handle location expanding into multiple
2786 sals.
2787
b2b38aa4
PA
27882020-08-27 Pedro Alves <pedro@palves.net>
2789
2790 PR gdb/26523
2791 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2792 bp_until breakpoints user-specified locations. Update intro
2793 comment.
2794
b886559f
SM
27952020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2796
2797 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2798 gdb_bfd_sections): New.
2799 * maint.c (print_bfd_section_info): Change param type to
2800 maint_print_section_data.
2801 (print_objfile_section_info): Likewise.
2802 (print_bfd_section_info_maybe_relocated): Likewise.
2803 (maintenance_info_sections): Use gdb_bfd_sections.
2804
4c6e63bf
SV
28052020-08-25 Shahab Vahedi <shahab@synopsys.com>
2806
2807 * MAINTAINERS: Add ARC target and maintainer.
2808
8d7f0635
AK
28092020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2810
2811 * configure.tgt: ARC support for GNU/Linux.
2812 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2813 * arc-linux-tdep.c: New file.
2814 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2815 * arc-tdep.c (arc_write_pc): Use it.
2816
fdd8731b
SV
28172020-08-25 Shahab Vahedi <shahab@synopsys.com>
2818
2819 * arc-tdep.c (arc_check_for_hardware_loop): New.
2820 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2821
22459524
SV
28222020-08-25 Shahab Vahedi <shahab@synopsys.com>
2823
2824 * arc-tdep.h: Include "gdbarch.h".
2825
995d3a19
SV
28262020-08-25 Shahab Vahedi <shahab@synopsys.com>
2827
2828 * arch/arc.h
2829 (arc_gdbarch_features): New class to stir the selection of target XML.
2830 (arc_create_target_description): Use FEATURES to choose XML target.
2831 (arc_lookup_target_description): Use arc_create_target_description
2832 to create _new_ target descriptions or return the already created
2833 ones if the FEATURES is the same.
2834 * arch/arc.c: Implementation of prototypes described above.
2835 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2836 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2837 * arc-tdep.c (*_feature_name): Make feature names consistent.
2838 (arc_register_feature): A new struct to hold information about
2839 registers of a particular target/feature.
2840 (arc_check_tdesc_feature): Check if XML provides registers in
2841 compliance with ARC_REGISTER_FEATURE structs.
2842 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2843 (determine_*_reg_feature_set): Which feature name to look for.
2844 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2845 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2846 to expected ISA enums to be used in arc_gdbarch_features structs.
2847 * features/Makefile (FEATURE_XMLFILES): Add new files.
2848 * gdb/features/arc/v1-aux.c: New file.
2849 * gdb/features/arc/v1-aux.xml: Likewise.
2850 * gdb/features/arc/v1-core.c: Likewise.
2851 * gdb/features/arc/v1-core.xml: Likewise.
2852 * gdb/features/arc/v2-aux.c: Likewise.
2853 * gdb/features/arc/v2-aux.xml: Likewise.
2854 * gdb/features/arc/v2-core.c: Likewise.
2855 * gdb/features/arc/v2-core.xml: Likewise.
2856 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2857
3945d2d7
GM
28582020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2859 Andrew Burgess <andrew.burgess@embecosm.com>
2860
2861 PR m2/26372
fc5d6901 2862 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2863 an assert. Remove single element array indexing pattern as the
2864 MULTI_SUBSCRIPT support will handle this case too.
2865
2677f2d3
SM
28662020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2867
2868 * value.h (valprint_check_validity): Move declaration from
2869 here...
2870 * valprint.h (valprint_check_validity): ... to here.
2871
c426fddb
SM
28722020-08-24 Simon Marchi <simon.marchi@efficios.com>
2873
2874 * debug.h: New file.
2875 * debug.c (debug_prefixed_vprintf): New function.
2876 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2877 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2878
1eb8556f
SM
28792020-08-24 Simon Marchi <simon.marchi@efficios.com>
2880
2881 * infrun.h (infrun_debug_printf_1): New function declaration.
2882 (infrun_debug_printf): New macro.
2883 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2884 throughout.
2885 (infrun_debug_printf): New function.
2886 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2887 (handle_jit_event): Likewise.
2888
b8fff44e
MW
28892020-08-21 Mark Wielaard <mark@klomp.org>
2890
2891 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2892
d19c3068
SM
28932020-08-22 Simon Marchi <simon.marchi@efficios.com>
2894
2895 * frame.c (enum class frame_id_status): New.
2896 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2897 (fprintf_frame): Update.
2898 (compute_frame_id): Set frame id status to "computing" on entry.
2899 Set it back to "not_computed" on failure and to "computed" on
2900 success.
2901 (get_frame_id): Assert the frame id is not being computed.
2902 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2903 (create_new_frame): Likewise.
2904 (frame_cleanup_after_sniffer): Update assert.
2905
b70e516e
SM
29062020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2907
2908 * regcache.c (pid_ptid_regcache_map): New type.
2909 (target_ptid_regcache_map): Remove.
2910 (target_pid_ptid_regcache_map): New type.
2911 (regcaches): Change type to target_pid_ptid_regcache_map.
2912 (get_thread_arch_aspace_regcache): Update.
2913 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2914 case.
2915 (regcaches_size): Update.
2916 (regcache_count): Update.
2917 (registers_changed_ptid_target_pid_test): New.
2918 (_initialize_regcache): Register new test.
2919
cdd9148a
SM
29202020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2921
2922 * regcache.c (regcache_count): New.
2923 (struct regcache_test_data): New.
2924 (regcache_test_data_up): New.
2925 (populate_regcaches_for_test): New.
2926 (regcaches_test): Remove.
2927 (get_thread_arch_aspace_regcache_test): New.
2928 (registers_changed_ptid_all_test): New.
2929 (registers_changed_ptid_target_test): New.
2930 (registers_changed_ptid_target_ptid_test): New.
2931 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2932 (_initialize_regcache): Register new tests.
2933
dd125343
SM
29342020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2935
2936 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2937 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2938 gdbarch and aspace parameter. Use current inferior's aspace.
2939 Validate regcache's arch value.
2940 (regcaches_test): Update.
2941
3ee93972
SM
29422020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2943
2944 * regcache.c (regcaches_test): Call registers_changed.
2945
33bf4c5c
TBA
29462020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2947
2948 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2949
c2fd7fae
AKS
29502020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2951
2952 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2953 to find the end of prologue for flang compiled binaries.
2954 * arm-tdep.c (arm_skip_prologue): Likewise.
2955 * i386-tdep.c (i386_skip_prologue): Likewise.
2956 * producer.c (producer_is_llvm): New function.
2957 (producer_parsing_tests): Added new tests for clang/flang.
2958 * producer.h (producer_is_llvm): New declaration.
2959
9327494e
SM
29602020-08-18 Simon Marchi <simon.marchi@efficios.com>
2961
2962 * linux-nat.c (linux_nat_debug_printf): New function.
2963 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2964
d138725a
AM
29652020-08-18 Aaron Merey <amerey@redhat.com>
2966
2967 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2968 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2969 (CLIBS): Add DEBUGINFOD_LIBS.
2970
f9b11e6b
ST
29712020-08-17 Sergei Trofimovich <siarheit@google.com>
2972
2973 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2974 'gdbarch_num_regs'.
2975
3ae7ab99
TT
29762020-08-17 Tom Tromey <tromey@adacore.com>
2977
2978 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2979 ada_get_decoded_value returns NULL.
2980
b017825f
TT
29812020-08-17 Tom Tromey <tromey@adacore.com>
2982
2983 * python/py-inferior.c (infpy_search_memory): Use
2984 gdb_py_object_from_ulongest.
2985 * python/py-infevents.c (create_inferior_call_event_object)
2986 (create_memory_changed_event_object): Use
2987 gdb_py_object_from_ulongest.
2988 * python/py-linetable.c (ltpy_entry_get_pc): Use
2989 gdb_py_object_from_ulongest.
2990
7635cf79
SM
29912020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2992
2993 * loc.c (class symbol_needs_eval_context): Fix indentation.
2994
f54be24b
SM
29952020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2996
2997 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2998 bool.
2999
53d5a2a5
TV
30002020-08-17 Tom de Vries <tdevries@suse.de>
3001
3002 PR gdb/26393
3003 * gdbtypes.c (dump_dynamic_prop): New function.
3004 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3005
547ce8f0
TV
30062020-08-15 Tom de Vries <tdevries@suse.de>
3007
3008 PR backtrace/26390
3009 * stack.c (print_frame_args): Temporarily set the selected
3010 frame to FRAME while printing the frame's arguments.
3011
6ea815e7
PFC
30122020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3013
3014 PR breakpoints/26385
3015 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3016 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3017
6e562fa3
PFC
30182020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3019
3020 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3021 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3022 and >= to check return value instead of == -1 and != -1.
3023
d369b608
SM
30242020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3025
3026 * utils.h (class gdb_argv) <as_array_view>: New method.
3027 * utils.c (gdb_argv_as_array_view_test): New.
3028 (_initialize_utils): Register selftest.
3029 * maint.c (maintenance_selftest): Use the new method.
3030
b31488a3
KR
30312020-08-13 Kamil Rytarowski <n54@gmx.com>
3032
3033 * target.h (supports_dumpcore, dumpcore): New
3034 function declarations.
3035 * target.c (supports_dumpcore, dumpcore): New
3036 functions.
3037 * target-delegates.c: Rebuild.
3038 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3039 and target_dumpcore ().
3040
002a3166
AM
30412020-08-13 Aaron Merey <amerey@redhat.com>
3042
3043 * debuginfod-support.c: Replace global variables with user_data.
3044
ece5bc8a
SM
30452020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3046
3047 * maint.c (maintenance_selftest): Split args and pass array_view
3048 to run_tests.
3049
6d8a0a5e
LM
30502020-08-12 Luis Machado <luis.machado@linaro.org>
3051
3052 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3053 type's length.
3054 Use %s and pulongest to print the length.
3055
7cf663a9
PA
30562020-08-12 Pedro Alves <palves@redhat.com>
3057
3058 * NEWS: Move "Multi-target debugging support" item to the
3059 "Changes since GDB 9" section.
3060
27c7b875
PA
30612020-08-12 Pedro Alves <palves@redhat.com>
3062
3063 PR gdb/26336
3064 * progspace.c (program_space::remove_objfile): Invalidate the
3065 frame cache.
3066
1796a2a1
TV
30672020-08-11 Tom de Vries <tdevries@suse.de>
3068
3069 * MAINTAINERS: Mark ms1 as deleted.
3070
f8e3fe0d
LM
30712020-08-10 Luis Machado <luis.machado@linaro.org>
3072
3073 PR gdb/26310
3074
3075 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3076 act accordingly.
3077 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3078 movz/str/stur/stp skipping behavior.
3079
cc308722
LM
30802020-08-10 Luis Machado <luis.machado@linaro.org>
3081
3082 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3083 struct user_sve_header instead of struct sve_context.
3084
041d9819
SM
30852020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3086
3087 * read.h (dwarf2_fetch_die_loc_sect_off,
3088 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3089 `void *` parameter with function_view.
3090 * read.c (dwarf2_fetch_die_loc_sect_off,
3091 dwarf2_fetch_die_loc_cu_off): Likewise.
3092 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3093 (per_cu_dwarf_call): Adjust.
3094 (get_frame_address_in_block_wrapper): Remove.
3095 (indirect_synthetic_pointer): Adjust.
3096 (get_ax_pc): Remove.
3097 (dwarf2_compile_expr_to_ax): Adjust.
3098
38f8aa06
TV
30992020-08-08 Tom de Vries <tdevries@suse.de>
3100
3101 PR build/26344
3102 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3103 constructor.
3104 * regcache.c (get_thread_arch_aspace_regcache): Same.
3105
a52b3ae2
TT
31062020-08-07 Tom Tromey <tromey@adacore.com>
3107
3108 * ravenscar-thread.c
3109 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3110 New method.
3111 (ravenscar_thread_target::wait): Check
3112 runtime_initialized.
3113 (ravenscar_thread_target::prepare_to_store)
3114 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3115 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3116 (ravenscar_thread_target::stopped_by_watchpoint)
3117 (ravenscar_thread_target::stopped_data_address)
3118 (ravenscar_thread_target::core_of_thread): Use
3119 scoped_restore_current_thread and
3120 set_base_thread_from_ravenscar_task.
3121
0e29517d
TT
31222020-08-07 Tom Tromey <tromey@adacore.com>
3123
3124 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3125
592f9bd7
TT
31262020-08-07 Tom Tromey <tromey@adacore.com>
3127
3128 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3129 update_inferior_ptid before update_thread_list.
3130 (temporarily_change_regcache_ptid): New class.
3131 (ravenscar_thread_target::fetch_registers)
3132 (ravenscar_thread_target::store_registers)
3133 (ravenscar_thread_target::prepare_to_store): Use base thread when
3134 forwarding operation.
3135
39e2018a
TT
31362020-08-07 Tom Tromey <tromey@adacore.com>
3137
3138 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3139 "is_pid" case.
3140
2080266b
TT
31412020-08-07 Tom Tromey <tromey@adacore.com>
3142
3143 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3144 New methods.
3145 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3146 first.
3147 (ravenscar_thread_target::add_thread): Rename from
3148 ravenscar_add_thread.
3149 (ravenscar_thread_target::update_thread_list): Use a lambda.
3150 (ravenscar_thread_target::xfer_partial): New method.
3151
78c02f21
TT
31522020-08-07 Tom Tromey <tromey@adacore.com>
3153
3154 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3155 gdb::function_view.
3156 (iterate_over_live_ada_tasks): Change type of argument.
3157 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3158 of argument.
3159
d5d833af
TT
31602020-08-07 Tom Tromey <tromey@adacore.com>
3161
3162 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3163 Remove.
3164 (ravenscar_thread_target::extra_thread_info): Remove.
3165 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3166 defer to target beneath for non-Ravenscar threads.
3167
a8ac85bb
TT
31682020-08-07 Tom Tromey <tromey@adacore.com>
3169
3170 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3171 get_base_thread_from_ravenscar_task>: Now methods.
3172 <m_cpu_map>: New member.
3173 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3174 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3175 (ravenscar_thread_target::task_is_currently_active): Update.
3176 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3177 Now a method.
3178 (ravenscar_thread_target::add_active_thread): Put initial thread
3179 into the m_cpu_map.
3180
550ab58d
TT
31812020-08-07 Tom Tromey <tromey@adacore.com>
3182
3183 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3184 event_ptid.
3185
e9546579
TT
31862020-08-07 Tom Tromey <tromey@adacore.com>
3187
3188 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3189 runtime_initialized.
3190
3d4470e5
TT
31912020-08-07 Tom Tromey <tromey@adacore.com>
3192
3193 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3194 add_active_thread.
3195 (ravenscar_thread_target::add_active_thread): Now public.
3196 (ravenscar_inferior_created): Call add_active_thread after pushing
3197 the target.
3198
888bdb2b
SM
31992020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3200
3201 * regcache.c (ptid_regcache_map): New type.
3202 (target_ptid_regcache_map): New type.
3203 (regcaches): Change type to target_ptid_regcache_map.
3204 (get_thread_arch_aspace_regcache): Update to regcaches' new
3205 type.
3206 (regcache_thread_ptid_changed): Likewise.
3207 (registers_changed_ptid): Likewise.
3208 (regcaches_size): Likewise.
3209 (regcaches_test): Update.
3210 (regcache_thread_ptid_changed): Update.
3211 * regcache.h (regcache_up): New type.
3212 * gdbsupport/ptid.h (hash_ptid): New struct.
3213
b161a60d
SM
32142020-08-07 Simon Marchi <simon.marchi@efficios.com>
3215
3216 * observable.h (thread_ptid_changed): Add parameter
3217 `process_stratum_target *`.
3218 * infrun.c (infrun_thread_ptid_changed): Add parameter
3219 `process_stratum_target *` and use it.
3220 (selftests): New namespace.
3221 (infrun_thread_ptid_changed): New function.
3222 (_initialize_infrun): Register selftest.
3223 * regcache.c (regcache_thread_ptid_changed): Add parameter
3224 `process_stratum_target *` and use it.
3225 (regcache_thread_ptid_changed): New function.
3226 (_initialize_regcache): Register selftest.
3227 * thread.c (thread_change_ptid): Pass target to
3228 thread_ptid_changed observable.
3229
d2854d8d
CT
32302020-08-06 Caroline Tice <cmtice@google.com>
3231
fe4c3d43
SM
3232 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3233 (struct dwp_sections): Update field comments. Add loclists and
3234 rnglists fields.
3235 (struct virtual_v2_dwo_sections): Rename struct to
3236 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3237 size & offset fields for loclists and rnglists.
3238 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3239 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3240 skipping dummy type units.
3241 (create_dwp_hash_table): Update the large comment above the function to
3242 discuss Version 5 DWP files as well, with references. Update all the
3243 version checks in the function to check for version 5 as well. Add new
3244 section at the end to create dwp hash table for version 5.
3245 (create_dwp_v2_section): Rename function to
3246 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3247 Add V5 to error message text.
3248 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3249 into calls to create_dwp_v2_or_v5_section.
3250 (create_dwo_unit_in_dwp_v5): New function.
3251 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3252 check for version2; add else clause to handle version 5.
3253 (open_and_init_dwo_file): Add code to check dwarf version & only call
3254 create_debug_types_hash_table (with sections.types) if version is not 5;
3255 else call create_debug_type_hash_table, with sections.info.
3256 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3257 version 5.
3258 (dwarf2_locate_v5_dwp_sections): New function.
3259 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3260 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3261
159ed7d9
SM
32622020-08-06 Simon Marchi <simon.marchi@efficios.com>
3263
3264 * regcache.h (class regcache): Remove friend
3265 registers_changed_ptid.
3266 <regcache_thread_ptid_changed>: Remove.
3267 <regcaches>: Remove.
3268 * regcache.c (regcache::regcaches): Rename to...
3269 (regcaches): ... this. Make static.
3270 (get_thread_arch_aspace_regcache): Update.
3271 (regcache::regcache_thread_ptid_changed): Rename to...
3272 (regcache_thread_ptid_changed): ... this. Update.
3273 (class regcache_access): Remove.
3274 (regcaches_test): Update.
3275 (_initialize_regcache): Update.
3276 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3277 <forward_list>.
3278
174981ae
SM
32792020-08-06 Simon Marchi <simon.marchi@efficios.com>
3280
3281 * regcache.h (class regcache) <current_regcache>: Rename to...
3282 <regcaches>: ... this. Move doc here.
3283 * regcache.c (regcache::current_regcache) Rename to...
3284 (regcache::regcaches): ... this. Move doc to header.
3285 (get_thread_arch_aspace_regcache): Update.
3286 (regcache::regcache_thread_ptid_changed): Update.
3287 (registers_changed_ptid): Update.
3288 (class regcache_access) <current_regcache_size>: Rename to...
3289 <regcaches_size>: ... this.
3290 (current_regcache_test): Rename to...
3291 (regcaches_test): ... this.
3292 (_initialize_regcache): Update.
3293
ed908db6
VC
32942020-08-06 Victor Collod <vcollod@nvidia.com>
3295
3296 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3297
b5582ab7
KB
32982020-08-05 Kevin Buettner <kevinb@redhat.com>
3299
3300 * corelow.c (core_target::build_file_mappings): Don't output
3301 null pathname in warning.
3302
ea946b86
SM
33032020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3304
3305 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3306 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3307 gdb.dwarf2/dw2-single-line-discriminators.exp,
3308 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3309
57d02173
TT
33102020-08-05 Tom Tromey <tromey@adacore.com>
3311
3312 PR rust/26197:
3313 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3314 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3315 Fix off-by-one and type size errors in ordinary case.
3316
5555c86d
TV
33172020-08-05 Tom de Vries <tdevries@suse.de>
3318
3319 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3320 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3321
97916bfe
SM
33222020-08-04 Simon Marchi <simon.marchi@efficios.com>
3323
3324 * frame.h (frame_id_p): Return bool.
3325 (frame_id_artificial_p): Return bool.
3326 (frame_id_eq): Return bool.
3327 (has_stack_frames): Return bool.
3328 (get_selected_frame): Fix typo in comment.
3329 (get_frame_pc_if_available): Return bool.
3330 (get_frame_address_in_block_if_available): Return bool.
3331 (get_frame_func_if_available): Return bool.
3332 (read_frame_register_unsigned): Return bool.
3333 (get_frame_register_bytes): Return bool.
3334 (safe_frame_unwind_memory): Return bool.
3335 (deprecated_frame_register_read): Return bool.
3336 (frame_unwinder_is): Return bool.
3337 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3338 bool.
3339 <this_id::p>: Likewise.
3340 <prev_p>: Likewise.
3341 (frame_stash_add): Return bool.
3342 (get_frame_id): Use bool.
3343 (frame_id_build_special) Use bool.
3344 (frame_id_build_unavailable_stack): Use bool.
3345 (frame_id_build): Use bool.
3346 (frame_id_p): Return bool, use true/false instead of 1/0.
3347 (frame_id_artificial_p): Likewise.
3348 (frame_id_eq): Likewise.
3349 (frame_id_inner): Likewise.
3350 (get_frame_func_if_available): Likewise.
3351 (read_frame_register_unsigned): Likewise.
3352 (deprecated_frame_register_read): Likewise.
3353 (get_frame_register_bytes): Likewise.
3354 (has_stack_frames): Likewise.
3355 (inside_main_func): Likewise.
3356 (inside_entry_func): Likewise.
3357 (get_frame_pc_if_available): Likewise.
3358 (get_frame_address_in_block_if_available): Likewise.
3359 (frame_unwinder_is): Likewise.
3360 (safe_frame_unwind_memory): Likewise.
3361 (frame_unwind_arch): Likewise.
3362
fedfee88
SM
33632020-08-04 Simon Marchi <simon.marchi@efficios.com>
3364
3365 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3366 type to cached_copy_status.
3367 (fprintf_frame): Adjust.
3368 (get_frame_func_if_available): Adjust.
3369 (frame_cleanup_after_sniffer): Adjust.
3370
6cfa9b59
MW
33712020-08-04 Mark Wielaard <mark@klomp.org>
3372
3373 * MAINTAINERS (Write After Approval): Update email address.
3374
66d6346b
SM
33752020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3376
3377 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3378 dynamic_prop::const_val.
3379
8a6d5e35
SM
33802020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3381
3382 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3383 dynamic_prop::kind.
3384
51d6067d
SM
33852020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3386
3387 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3388
b26e2ae7
JM
33892020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3390
3391 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3392
39791af2
JM
33932020-08-04 Weimin Pan <weimin.pan@oracle.com>
3394 Jose E. Marchesi <jose.marchesi@oracle.com>
3395
3396 * configure.tgt: Add entry for bpf-*-*.
3397 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3398 (ALLDEPFILES): Add bpf-tdep.c.
3399 * bpf-tdep.c: New file.
3400 * MAINTAINERS: Add bpf target and maintainer.
3401 * NEWS: Mention the support for the new target.
3402
521894aa
TV
34032020-08-04 Tom de Vries <tdevries@suse.de>
3404
3405 PR symtab/23270
3406 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3407 Error.
3408
5d6356e9
JB
34092020-08-03 John Baldwin <jhb@FreeBSD.org>
3410
3411 * syscalls/freebsd.xml: Regenerate.
3412
0cf82b81
JB
34132020-08-03 John Baldwin <jhb@FreeBSD.org>
3414
3415 * syscalls/update-freebsd.sh: Fix usage and year range.
3416
8f34b746
TV
34172020-08-03 Tom de Vries <tdevries@suse.de>
3418
3419 PR symtab/26333
3420 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3421 DW_LNE_lo_user/DW_LNE_hi_user range.
3422
5e500d33
SM
34232020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3424
3425 PR ada/26318
3426 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3427 kind.
3428
78319c15
TBA
34292020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3430
3431 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3432
4c55e970
TBA
34332020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3434
3435 * breakpoint.c (set_breakpoint_condition): Update the condition
3436 expressions after checking that the input condition string parses
3437 successfully and does not contain junk at the end.
3438
1e620590
TBA
34392020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3440
3441 * breakpoint.c (set_breakpoint_condition): Update the
3442 condition string after parsing the new condition successfully.
3443
c8693053
RO
34442020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3445
3446 * proc-api.c (_STRUCTURED_PROC): Don't define.
3447 * proc-events.c: Likewise.
3448 * proc-flags.c: Likewise.
3449 * proc-why.c: Likewise.
3450 * procfs.c: Likewise.
3451
3452 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3453 * configure, config.in: Regenerate.
3454
5a99adb8
TV
34552020-07-30 Tom de Vries <tdevries@suse.de>
3456
3457 PR build/26320
3458 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3459 m_red/m_green/m_blue in a union.
3460
8ba83e91
TV
34612020-07-29 Tom de Vries <tdevries@suse.de>
3462
3463 PR tdep/26280
3464 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3465
f75a0693
AB
34662020-07-28 Tom Tromey <tromey@adacore.com>
3467
3468 PR symtab/26270:
3469 * symtab.h (find_pc_partial_function_sym): Declare.
3470 * cli/cli-cmds.c (disassemble_command): Use
3471 find_pc_partial_function_sym. Check asm_demangle.
3472 * blockframe.c (cache_pc_function_sym): New global.
3473 (cache_pc_function_name): Remove.
3474 (clear_pc_function_cache): Update.
3475 (find_pc_partial_function_sym): New function, from
3476 find_pc_partial_function.
3477 (find_pc_partial_function): Rewrite using
3478 find_pc_partial_function_sym.
3479
16f3242c
TT
34802020-07-28 Tom Tromey <tromey@adacore.com>
3481
3482 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3483 help. Add usage.
3484
4888741a
TT
34852020-07-28 Tom Tromey <tromey@adacore.com>
3486
3487 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3488 <DW_OP_GNU_variable_value>: Cast to address type.
3489
4d46f402
KR
34902020-07-28 Kamil Rytarowski <n54@gmx.com>
3491
3492 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3493 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3494 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3495 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3496 (nbsd_get_siginfo_type): New.
3497 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3498 (_initialize_nbsd_tdep): New.
3499
d70f978b
L
35002020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3501
3502 PR binutils/26301
3503 * configure: Regenerated.
3504
377170fa
L
35052020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3506
3507 PR binutils/26301
3508 * configure: Regenerated.
3509
43d5901d
AB
35102020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3511
3512 * python/py-frame.c: Remove 'user-regs.h' include.
3513 (frapy_read_register): Rewrite to make use of
3514 gdbpy_parse_register_id.
3515 * python/py-registers.c (gdbpy_parse_register_id): New function,
3516 moved here from python/py-unwind.c. Updated the return type, and
3517 also accepts register descriptor objects.
3518 * python/py-unwind.c: Remove 'user-regs.h' include.
3519 (pyuw_parse_register_id): Moved to python/py-registers.c.
3520 (unwind_infopy_add_saved_register): Update to use
3521 gdbpy_parse_register_id.
3522 (pending_framepy_read_register): Likewise.
3523 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3524
14fa8fb3
AB
35252020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3526
3527 * python/py-registers.c: Add 'user-regs.h' include.
3528 (register_descriptor_iter_find): New function.
3529 (register_descriptor_iterator_object_methods): New static global
3530 methods array.
3531 (register_descriptor_iterator_object_type): Add pointer to methods
3532 array.
3533
ddce1758
JB
35342020-07-27 John Baldwin <jhb@FreeBSD.org>
3535
3536 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3537 for all architectures on FreeBSD 11.3 and later.
3538
a4089f52
TT
35392020-07-27 Tom Tromey <tromey@adacore.com>
3540
3541 * gcore.h (load_corefile): Don't declare.
3542
95420d30
TV
35432020-07-27 Tom de Vries <tdevries@suse.de>
3544
3545 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3546 * config.in: Regenerate.
3547 * configure: Regenerate.
3548
05a6b8c2
EZ
35492020-07-26 Eli Zaretskii <eliz@gnu.org>
3550
3551 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3552 ws2tcpip.h. When checking whether socklen_t type is defined, use
3553 ws2tcpip.h if it is available and sys/socket.h isn't.
3554 * configure: Regenerate.
3555 * config.in: Regenerate.
3556
e79eb02f
AB
35572020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3558
3559 PR fortran/23051
3560 PR fortran/26139
3561 * valops.c (value_ind): Pass address to
3562 readjust_indirect_value_type.
3563 * value.c (readjust_indirect_value_type): Make parameter
3564 non-const, and add extra address parameter. Resolve original type
3565 before using it.
3566 * value.h (readjust_indirect_value_type): Update function
3567 signature and comment.
3568
876518dd
TV
35692020-07-25 Tom de Vries <tdevries@suse.de>
3570
3571 PR symtab/26243
3572 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3573 entries.
3574
f6720b1c
AM
35752020-07-24 Aaron Merey <amerey@redhat.com>
3576
3577 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3578 * configure: Rebuild.
3579
513487e1
KB
35802020-07-23 Kevin Buettner <kevinb@redhat.com>
3581
3582 PR corefiles/26294
3583 * corelow.c (_initialize_corelow): Add period to help text
3584 for "maintenance print core-file-backed-mappings".
3585
e7bc9db8
PA
35862020-07-23 Pedro Alves <pedro@palves.net>
3587
3588 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3589 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3590 meanwhile.
3591 * frame.c (frame_cache_generation, get_frame_cache_generation):
3592 New.
3593 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3594 (get_prev_frame_if_no_cycle): On exception, don't touch
3595 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3596 * frame.h (get_frame_cache_generation): Declare.
3597
90fcc466
TV
35982020-07-23 Tom de Vries <tdevries@suse.de>
3599
3600 PR tui/26282
3601 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3602 New default constructor.
3603
78344df7
AB
36042020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3605
3606 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3607 exclude non-statement entries.
3608
b089853a
KB
36092020-07-22 Kevin Buettner <kevinb@redhat.com>
3610
3611 * NEWS (New commands): Mention new command
3612 "maintenance print core-file-backed-mappings".
3613
09c2f5d4
KB
36142020-07-22 Kevin Buettner <kevinb@redhat.com>
3615
3616 * corelow.c (gdbcmd.h): Include.
3617 (core_target::info_proc_mappings): New method.
3618 (get_current_core_target): New function.
3619 (maintenance_print_core_file_backed_mappings): New function.
3620 (_initialize_corelow): Add core-file-backed-mappings to
3621 "maint print" commands.
3622
9c5ec5c2 36232020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3624
9c5ec5c2
KB
3625 * linux-tdep.c (dump_note_entry_p): New function.
3626 (linux_dump_mapping_p_ftype): New typedef.
3627 (linux_find_memory_regions_full): Add new parameter,
3628 should_dump_mapping_p.
3629 (linux_find_memory_regions): Adjust call to
3630 linux_find_memory_regions_full.
3631 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3632 call to linux_find_memory_regions_full.
3633
db082f59
KB
36342020-07-22 Kevin Buettner <kevinb@redhat.com>
3635
3636 * corelow.c (solist.h, unordered_map): Include.
3637 (class core_target): Add field m_core_file_mappings and
3638 method build_file_mappings.
3639 (core_target::core_target): Call build_file_mappings.
3640 (core_target::~core_target): Free memory associated with
3641 m_core_file_mappings.
3642 (core_target::build_file_mappings): New method.
3643 (core_target::xfer_partial): Use m_core_file_mappings
3644 for memory transfers.
3645 * linux-tdep.c (linux_read_core_file_mappings): New
3646 function.
3647 (linux_core_info_proc_mappings): Rewrite to use
3648 linux_read_core_file_mappings.
3649 (linux_init_abi): Register linux_read_core_file_mappings.
3650
7e183d27
KB
36512020-07-22 Kevin Buettner <kevinb@redhat.com>
3652
3653 * arch-utils.c (default_read_core_file_mappings): New function.
3654 * arch-utils.c (default_read_core_file_mappings): Declare.
3655 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3656 * gdbarch.h, gdbarch.c: Regenerate.
3657
2735d421
KB
36582020-07-22 Kevin Buettner <kevinb@redhat.com>
3659
3660 PR corefiles/25631
3661 * corelow.c (core_target:xfer_partial): Revise
3662 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3663 case after first checking the stratum beneath the core
3664 target.
3665 (has_all_memory): Return true.
3666 * target.c (raw_memory_xfer_partial): Revise comment
3667 regarding use of has_all_memory.
3668
e56cb451
KB
36692020-07-22 Kevin Buettner <kevinb@redhat.com>
3670
3671 * exec.h (section_table_xfer_memory): Revise declaration,
3672 replacing section name parameter with an optional callback
3673 predicate.
3674 * exec.c (section_table_xfer_memory): Likewise.
3675 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3676 of section_table_xfer_memory.
3677
32fa152e
TT
36782020-07-22 Tom Tromey <tromey@adacore.com>
3679
3680 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3681 lookup_symbol_search_name.
3682
a67a1c41
AB
36832020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3684
3685 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3686 redundant local variable.
3687 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3688 reference, not pointer, update code accordingly.
3689
a7b4ff4f
SM
36902020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3691 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3692
3693 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3694 * jit.c (jit_breakpoint_re_set_internal): Use the
3695 `skip_jit_symbol_lookup` field.
3696
2340e834
SM
36972020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3698 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3699
3700 * jit.c (jit_read_descriptor): Define the descriptor address once,
3701 use twice.
3702 (jit_breakpoint_deleted): Move the declaration of the loop variable
3703 `iter` into the loop header.
3704 (jit_breakpoint_re_set_internal): Move the declaration of the local
3705 variable `objf_data` to the first point of definition.
3706 (jit_event_handler): Move the declaration of local variables
3707 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3708 Rename `objf` to `jited`.
3709
c1072906
SM
37102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3711
3712 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3713 Remove.
3714 * jit.c (get_jiter_objfile_data): Update.
3715
c8474dc3
TBA
37162020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3717 Simon Marchi <simon.marchi@polymtl.ca>
3718
3719 * jit.c (struct jit_program_space_data): Remove.
3720 (jit_program_space_key): Remove.
3721 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3722 stuff.
3723 (get_jit_program_space_data): Remove.
3724 (jit_breakpoint_deleted): Iterate on all of the program space's
3725 objfiles.
3726 (jit_inferior_init): Likewise.
3727 (jit_breakpoint_re_set_internal): Likewise. Also change return
3728 type to void.
3729 (jit_breakpoint_re_set): Pass current_program_space to
3730 jit_breakpoint_re_set_internal.
3731
77208eb7
SM
37322020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3733
3734 * jit.h (struct jiter_objfile_data) <cached_code_address,
3735 jit_breakpoint>: Move to here from ...
3736 * jit.c (jit_program_space_data): ... here.
3737 (jiter_objfile_data::~jiter_objfile_data): Update.
3738 (jit_breakpoint_deleted): Update.
3739 (jit_breakpoint_re_set_internal): Update.
3740
8c1c720f
SM
37412020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3742
3743 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3744 checks.
3745 (jit_read_descriptor): Remove NULL check.
3746 (jit_event_handler): Add an assertion.
3747
0e74a041
SM
37482020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3749
3750 * jit.h (struct jit_objfile_data): Split into...
3751 (struct jiter_objfile_data): ... this ...
3752 (struct jited_objfile_data): ... and this.
3753 * objfiles.h (struct objfile) <jit_data>: Remove.
3754 <jiter_data, jited_data>: New fields.
3755 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3756 (jiter_objfile_data::~jiter_objfile_data): ... this.
3757 (get_jit_objfile_data): Rename to ...
3758 (get_jiter_objfile_data): ... this.
3759 (add_objfile_entry): Update.
3760 (jit_read_descriptor): Use get_jiter_objfile_data.
3761 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3762 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3763 (jit_inferior_exit_hook): Use objfile's jited_data field.
3764
238b5c9f
SM
37652020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3766
3767 * jit.h: Forward-declare `struct minimal_symbol`.
3768 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3769 constructor, destructor, and an objfile* field.
3770 * jit.c (jit_objfile_data): Remove.
3771 (struct jit_objfile_data): Migrate from here to jit.h.
3772 (jit_objfile_data::~jit_objfile_data): New destructor
3773 implementation with code moved from free_objfile_data.
3774 (free_objfile_data): Delete.
3775 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3776 (jit_find_objf_with_entry_addr): Ditto.
3777 (jit_inferior_exit_hook): Ditto.
3778 (_initialize_jit): Remove the call to
3779 register_objfile_data_with_cleanup.
3780 * objfiles.h (struct objfile) <jit_data>: New field.
3781
fe053b9e
TBA
37822020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3783
3784 * jit.h: Forward-declare `struct objfile`.
3785 (jit_event_handler): Add a second parameter, the JITer objfile.
3786 * jit.c (jit_read_descriptor): Change the signature to take the
3787 JITer objfile as an argument instead of the jit_program_space_data.
3788 (jit_inferior_init): Update the call to jit_read_descriptor.
3789 (jit_event_handler): Use the new JITer objfile argument when calling
3790 jit_read_descriptor.
3791 * breakpoint.c (handle_jit_event): Update the call to
3792 jit_event_handler to pass the JITer objfile.
3793
4cec0c66
JB
37942020-07-21 John Baldwin <jhb@FreeBSD.org>
3795
3796 * gdbarch.c: Regenerate.
3797 * gdbarch.h: Regenerate.
3798 * gdbarch.sh (handle_segmentation_fault): Remove method.
3799 * infrun.c (handle_segmentation_fault): Remove.
3800 (print_signal_received_reason): Remove call to
3801 handle_segmentation_fault.
3802
0e42f66a
JB
38032020-07-21 John Baldwin <jhb@FreeBSD.org>
3804
3805 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3806 Rename to sparc64_linux_report_signal_info and add siggnal
3807 argument.
3808 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3809 instead of sparc64_linux_handle_segmentation_fault.
3810
77bdfeb2
JB
38112020-07-21 John Baldwin <jhb@FreeBSD.org>
3812
3813 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3814 i386_linux_report_signal_info instead of
3815 i386_linux_handle_segmentation_fault.
3816 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3817 to i386_linux_report_signal_info and add siggnal argument.
3818 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3819 of i386_linux_handle_segmentation_fault.
3820 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3821 to i386_linux_report_signal_info and add siggnal argument.
3822
ad97bfc5
JB
38232020-07-21 John Baldwin <jhb@FreeBSD.org>
3824
3825 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3826 hook if present.
3827
272bb05c
JB
38282020-07-21 John Baldwin <jhb@FreeBSD.org>
3829
3830 * gdbarch.c: Regenerate.
3831 * gdbarch.h: Regenerate.
3832 * gdbarch.sh (report_signal_info): New method.
3833 * infrun.c (print_signal_received_reason): Invoke gdbarch
3834 report_signal_info hook if present.
3835
baf8791e
AB
38362020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3837
3838 * python/py-registers.c : Add 'unordered_map' include.
3839 (gdbpy_new_reggroup): Renamed to...
3840 (gdbpy_get_reggroup): ...this. Update to only create register
3841 group descriptors when needed.
3842 (gdbpy_reggroup_iter_next): Update.
3843
f7306dac
AB
38442020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3845
3846 * python/py-registers.c (gdbpy_register_object_data): New static
3847 global.
3848 (gdbpy_register_object_data_init): New function.
3849 (gdbpy_new_register_descriptor): Renamed to...
3850 (gdbpy_get_register_descriptor): ...this, and update to reuse
3851 existing register descriptors where possible.
3852 (gdbpy_register_descriptor_iter_next): Update.
3853 (gdbpy_initialize_registers): Register new gdbarch data.
3854
05c309a8
SM
38552020-07-21 Simon Marchi <simon.marchi@efficios.com>
3856
3857 * linux-nat.c (stopped_pids): Make static.
3858
d1fd641e
SM
38592020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3860
3861 PR ada/26235
3862 * gdbtypes.c (ada_discrete_type_low_bound,
3863 ada_discrete_type_high_bound): Handle undefined bounds.
3864
1de14d77
KR
38652020-07-21 Kamil Rytarowski <n54@gmx.com>
3866
3867 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3868 declaration.
3869 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3870 function.
3871
ed810cc7
JB
38722020-07-20 John Baldwin <jhb@FreeBSD.org>
3873
3874 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3875 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3876 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3877 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3878 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3879 method.
3880
ae5369e7
LC
38812020-07-20 Ludovic Courtès <ludo@gnu.org>
3882
3883 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3884 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3885 which are deprecated in Guile 3.0.
3886 * configure.ac (try_guile_versions): Add "guile-3.0".
3887 * configure (try_guile_versions): Regenerate.
3888 * NEWS: Update entry.
3889
68cf161c
LC
38902020-07-20 Ludovic Courtès <ludo@gnu.org>
3891 Doug Evans <dje@google.com>
3892
3893 PR gdb/21104
3894 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3895 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3896 USING_GUILE_BEFORE_2_2.
3897 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3898 Change type to 'scm_t_port_type *'.
3899 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3900 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3901 parameter and honor it. Update callers.
3902 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3903 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3904 functions.
3905 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3906 USING_GUILE_BEFORE_2_2.
3907 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3908 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3909 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3910 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3911 and 'SCM_PORT_TYPE'.
3912 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3913 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3914 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3915 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3916 [!USING_GUILE_BEFORE_2_2]: New functions.
3917 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3918 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3919 'gdbscm_memory_port_read'.
3920 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3921 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3922 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3923 function.
3924 (ioscm_init_memory_port): Remove.
3925 (ioscm_init_memory_port_stream): New function
3926 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3927 function.
3928 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3929 Return scm_from_uint (0).
3930 (gdbscm_set_memory_port_read_buffer_size_x)
3931 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3932 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3933 Return scm_from_uint (0).
3934 (gdbscm_set_memory_port_write_buffer_size_x)
3935 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3936 * configure.ac (try_guile_versions): Add "guile-2.2".
3937 * configure: Regenerate.
3938 * NEWS: Add entry.
3939
aee91db3
TT
39402020-07-18 Tom Tromey <tom@tromey.com>
3941
3942 * linux-nat.c (linux_multi_process): Remove.
3943 (linux_nat_target::supports_multi_process): Return true.
3944
0e267416
AB
39452020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3946
3947 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3948 (riscv_lookup_target_description): Return pointer out of
3949 unique_ptr.
3950 * target-descriptions.c (allocate_target_description): Add
3951 comment.
3952 (target_desc_deleter::operator()): Likewise.
3953 * target-descriptions.h (struct target_desc_deleter): Moved to
3954 gdbsupport/tdesc.h.
3955 (target_desc_up): Likewise.
3956
f80c8ec4
TT
39572020-07-17 Tom Tromey <tromey@adacore.com>
3958
3959 * linux-nat.c (linux_nat_target::supports_non_stop)
3960 (linux_nat_target::always_non_stop_p): Use "true".
3961 (linux_nat_target::supports_disable_randomization): Use "true" and
3962 "false".
3963
d0ce17d8
CT
39642020-07-16 Caroline Tice <cmtice@google.com>
3965
3966 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3967 (RNGLIST_HEADER_SIZE64): New constant definition.
3968 (struct dwop_section_names): Add rnglists_dwo.
3969 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3970 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3971 (struct dwo_sections): Add rnglists field.
3972 (read_attribut_reprocess): Add tag parameter.
3973 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3974 (cu_debug_rnglists_section): New function (decl & definition).
3975 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3976 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3977 die whose range is being checked; get rnglist section from
3978 cu_debug_rnglists_section, to get from either objfile or dwo file as
3979 appropriate. Add cases for DW_RLE_base_addressx,
3980 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3981 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3982 test inside if-condition and updating complaint message.
3983 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3984 dwarf2_rnglists_process.
3985 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3986 dwarf2_ranges_process.
3987 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3988 need_ranges_base and update comment appropriately. Also pass die tag
3989 to dwarf2_ranges_read.
3990 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3991 need_ranges_base and update comment appropriately. Also pass die tag
3992 to dwarf2_ranges_process.
3993 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3994 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3995 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3996 need_ranges_base and update comment appropriately. Also pass die tag
3997 to read_attribute_reprocess and dwarf2_ranges_read.
3998 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3999 and update function comment appropriately.
4000 (read_loclist_index): Call read_loclists_rnglists_header instead of
4001 read_loclist_header.
4002 (read_rnglist_index): New function.
4003 (read_attribute_reprocess): Add tag parameter. Add code for
4004 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4005 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4006
3dcc261c
AB
40072020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4008
4009 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4010 being resolved.
4011
ccb9eba6
AB
40122020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4013
4014 * arch-utils.c (show_architecture): Update formatting of messages.
4015
cf88be68
SM
40162020-07-12 Simon Marchi <simon.marchi@efficios.com>
4017
4018 * gdbtypes.h (struct type) <bounds>: Handle array and string
4019 types.
4020 * ada-lang.c (assign_aggregate): Use type::bounds on
4021 array/string type.
4022 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4023 * c-varobj.c (c_number_of_children): Likewise.
4024 (c_describe_child): Likewise.
4025 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4026 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4027 (f_type_print_base): Likewise.
4028 * f-valprint.c (f77_array_offset_tbl): Likewise.
4029 (f77_get_upperbound): Likewise.
4030 (f77_print_array_1): Likewise.
4031 * guile/scm-type.c (gdbscm_type_range): Likewise.
4032 * m2-typeprint.c (m2_array): Likewise.
4033 (m2_is_long_set_of_type): Likewise.
4034 * m2-valprint.c (get_long_set_bounds): Likewise.
4035 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4036 * python/py-type.c (typy_range): Likewise.
4037 * rust-lang.c (rust_internal_print_type): Likewise.
4038 * type-stack.c (type_stack::follow_types): Likewise.
4039 * valarith.c (value_subscripted_rvalue): Likewise.
4040 * valops.c (value_cast): Likewise.
4041
509971ae
SM
40422020-07-12 Simon Marchi <simon.marchi@efficios.com>
4043
4044 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4045 callers to use the equivalent accessor methods.
4046
107406b7
SM
40472020-07-12 Simon Marchi <simon.marchi@efficios.com>
4048
4049 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4050 (struct type) <bit_stride>: New method.
4051 (TYPE_BIT_STRIDE): Remove.
4052 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4053
bb789949
SM
40542020-07-12 Simon Marchi <simon.marchi@efficios.com>
4055
4056 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4057 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4058 callers to use the equivalent accessor methods instead.
4059
39498edb
SM
40602020-07-12 Simon Marchi <simon.marchi@efficios.com>
4061
4062 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4063 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4064 callers to use the equivalent accessor methods instead.
4065
3b606f38
SM
40662020-07-12 Simon Marchi <simon.marchi@efficios.com>
4067
4068 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4069 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4070 to use dynamic_prop::kind.
4071
064d9cb9
SM
40722020-07-12 Simon Marchi <simon.marchi@efficios.com>
4073
4074 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4075 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4076 to get the bound property's kind and check against
4077 PROP_UNDEFINED.
4078
5537ddd0
SM
40792020-07-12 Simon Marchi <simon.marchi@efficios.com>
4080
4081 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4082 all callers to use type::range_bounds followed by
4083 dynamic_prop::{low,high}.
4084
8c2e4e06
SM
40852020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4086
4087 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4088 const_val, set_const_val, baton, set_locexpr, set_loclist,
4089 set_addr_offset, variant_parts, set_variant_parts,
4090 original_type, set_original_type>: New methods.
4091 <kind>: Rename to...
4092 <m_kind>: ... this. Update all users to use the new methods
4093 instead.
4094 <data>: Rename to...
4095 <m_data>: ... this. Update all users to use the new methods
4096 instead.
4097
7c6f2712
SM
40982020-07-12 Simon Marchi <simon.marchi@efficios.com>
4099
4100 * gdbtypes.c (get_discrete_bounds): Return failure if
4101 the range type's bounds are not both defined and constant
4102 values.
4103 (get_array_bounds): Update comment. Remove undefined bound check.
4104
599088e3
SM
41052020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4106
4107 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4108 the type::bounds method directly.
4109
c4dfcb36
SM
41102020-07-12 Simon Marchi <simon.marchi@efficios.com>
4111
4112 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4113 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4114 are used to set the range type's bounds to use set_bounds.
4115
0a278aa7
PW
41162020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4117
4118 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4119
cce20f10
PA
41202020-07-10 Pedro Alves <pedro@palves.net>
4121
4122 * gdbthread.h (inferior_ref): Define.
4123 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4124 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4125 * thread.c
4126 (scoped_restore_current_thread::restore):
4127 Adjust to gdb::ref_ptr.
4128 (scoped_restore_current_thread::~scoped_restore_current_thread):
4129 Remove manual decref handling.
4130 (scoped_restore_current_thread::scoped_restore_current_thread):
4131 Adjust to use
4132 inferior_ref::new_reference/thread_info_ref::new_reference.
4133 Incref the thread before calling get_frame_id instead of after.
4134 Let TARGET_CLOSE_ERROR propagate.
4135
6d7aa592
PA
41362020-07-10 Pedro Alves <pedro@palves.net>
4137
4138 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4139 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4140 NOT_AVAILABLE_ERROR.
4141 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4142 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4143
b3e3a4c1
SM
41442020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4145 Pedro Alves <pedro@palves.net>
4146
4147 PR gdb/26199
4148 * infrun.c (threads_are_resumed_pending_p): Delete.
4149 (do_target_wait): Remove threads_are_executing and
4150 threads_are_resumed_pending_p checks from the inferior_matches
4151 lambda. Update comments.
4152
d6cc5d98
PA
41532020-07-10 Pedro Alves <pedro@palves.net>
4154
4155 PR gdb/26199
4156 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4157 executing threads.
4158
7d3badc6
PA
41592020-07-10 Pedro Alves <pedro@palves.net>
4160
4161 PR gdb/26199
4162 * infrun.c (handle_no_resumed): Handle multiple targets.
4163
42bd97a6
PA
41642020-07-10 Pedro Alves <pedro@palves.net>
4165
4166 PR gdb/26199
4167 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4168 target_is_async_p.
4169
43667cc6
PA
41702020-07-10 Pedro Alves <pedro@palves.net>
4171
4172 PR gdb/26199
4173 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4174 threads, not all threads.
4175
96118d11
PA
41762020-07-10 Pedro Alves <pedro@palves.net>
4177
4178 PR gdb/26199
4179 * remote.c (remote_target::open_1): Pass remote target pointer as
4180 data to create_async_event_handler.
4181 (remote_async_inferior_event_handler): Mark async event handler
4182 before returning if the remote target still has either pending
4183 events or unacknowledged notifications.
4184
54904d81
JB
41852020-07-10 John Baldwin <jhb@FreeBSD.org>
4186
4187 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4188 declaration.
4189 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4190 function.
4191
f37e5866
JB
41922020-07-09 John Baldwin <jhb@FreeBSD.org>
4193
4194 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4195 inferior_ptid.
4196
fc238d4a
JB
41972020-07-09 John Baldwin <jhb@FreeBSD.org>
4198
4199 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4200 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4201 AT_FREEBSD_PS_STRINGS.
4202
6e2469ff
HD
42032020-07-08 Hannes Domani <ssbssa@yahoo.de>
4204
4205 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4206 of debugfile path on Windows.
4207
d1076c41
JB
42082020-07-08 John Baldwin <jhb@FreeBSD.org>
4209
4210 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4211 argument to 'data'.
4212
15f3b077
TT
42132020-07-08 Tom Tromey <tromey@adacore.com>
4214
4215 * ada-lang.c (ada_exception_message_1): Use read_memory.
4216
9fc501fd
AB
42172020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4218
4219 PR python/22748
4220 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4221 special handling for inline frames.
4222 * findvar.c (value_of_register_lazy): Skip inline frames when
4223 creating lazy register values.
4224 * frame.c (frame_id_computed_p): Delete definition.
4225 * frame.h (frame_id_computed_p): Delete declaration.
4226
64cb3757
AB
42272020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4228
4229 * NEWS: Mention additions to Python API.
4230 * python/py-arch.c (archpy_register_groups): New function.
4231 (arch_object_methods): Add 'register_groups' method.
4232 * python/py-registers.c (reggroup_iterator_object): New struct.
4233 (reggroup_object): New struct.
4234 (gdbpy_new_reggroup): New function.
4235 (gdbpy_reggroup_to_string): New function.
4236 (gdbpy_reggroup_name): New function.
4237 (gdbpy_reggroup_iter): New function.
4238 (gdbpy_reggroup_iter_next): New function.
4239 (gdbpy_new_reggroup_iterator): New function
4240 (gdbpy_initialize_registers): Register new types.
4241 (reggroup_iterator_object_type): Define new Python type.
4242 (gdbpy_reggroup_getset): New static global.
4243 (reggroup_object_type): Define new Python type.
4244 * python/python-internal.h
4245
0f767f94
AB
42462020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4247
4248 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4249 * python/py-arch.c (archpy_registers): New function.
4250 (arch_object_methods): Add 'registers' method.
4251 * python/py-registers.c: New file.
4252 * python/python-internal.h
4253 (gdbpy_new_register_descriptor_iterator): Declare.
4254 (gdbpy_initialize_registers): Declare.
4255 * python/python.c (do_start_initialization): Call
4256 gdbpy_initialize_registers.
4257 * NEWS: Mention additions to the Python API.
4258
87dbc774
AB
42592020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4260
4261 * NEWS: Mention new Python API method.
4262 * python/py-unwind.c (pending_framepy_architecture): New function.
4263 (pending_frame_object_methods): Add architecture method.
4264
3bc98c0c
AB
42652020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4266
4267 * gdbarch.c: Regenerate.
4268 * gdbarch.h: Regenerate.
4269 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4270 (gdbarch_data): Use internal_error for the case where
4271 deprecated_set_gdbarch_data was originally needed.
4272 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4273 and use passed in obstack.
4274 (libunwind_frame_set_descr): Should no longer get back NULL from
4275 gdbarch_data.
4276 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4277 type.
4278 * user-regs.c (user_regs_init): Update parameters, and use passed
4279 in obstack.
4280 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4281 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4282
d8cc8af6
TV
42832020-07-06 Tom de Vries <tdevries@suse.de>
4284
4285 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4286 End-Of-Sequence in lte_is_less_than.
4287 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4288 "gdb: Don't reorder line table entries too much when sorting".
4289
947f7597
TV
42902020-07-06 Tom de Vries <tdevries@suse.de>
4291
4292 PR tui/26205
4293 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4294
1e7c1b22
TV
42952020-07-05 Tom de Vries <tdevries@suse.de>
4296
4297 PR build/26187
4298 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4299 std::uncaught_exceptions instead of deprecated
4300 std::uncaught_exception.
4301
a36158ec
SM
43022020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4303
4304 * macroexp.h (macro_stringify): Return
4305 gdb::unique_xmalloc_ptr<char>.
4306 * macroexp.c (macro_stringify): Likewise.
4307 * macrotab.c (fixup_definition): Update.
4308
14d960c8
SM
43092020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4310
4311 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4312 (lex_one_token): Update.
4313 * macroexp.c (struct macro_buffer) <release>: Return
4314 gdb::unique_xmalloc_ptr<char>.
4315 (macro_stringify): Update.
4316 (macro_expand): Update.
4317 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4318 * macroexp.h (macro_expand_next): Likewise.
4319
211d5b1c
SM
43202020-07-02 Simon Marchi <simon.marchi@efficios.com>
4321
4322 * macroexp.h (macro_lookup_ftype): Remove.
4323 (macro_expand, macro_expand_once, macro_expand_next): Remove
4324 lookup function parameters, add scope parameter.
4325 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4326 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4327 * macroscope.h (standard_macro_lookup): Change parameter type
4328 to macro_scope.
4329 * macroscope.c (standard_macro_lookup): Likewise.
4330 * c-exp.y (lex_one_token): Update.
4331 * macrocmd.c (macro_expand_command): Likewise.
4332 (macro_expand_once_command): Likewise.
4333
b1a35af2
SM
43342020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4335
4336 * inf-loop.c (inferior_event_handler): Remove client_data param.
4337 * inf-loop.h (inferior_event_handler): Likewise.
4338 * infcmd.c (step_1): Adjust.
4339 * infrun.c (proceed): Adjust.
4340 (fetch_inferior_event): Remove client_data param.
4341 (infrun_async_inferior_event_handler): Adjust.
4342 * infrun.h (fetch_inferior_event): Remove `void *` param.
4343 * linux-nat.c (handle_target_event): Adjust.
4344 * record-btrace.c (record_btrace_handle_async_inferior_event):
4345 Adjust.
4346 * record-full.c (record_full_async_inferior_event_handler):
4347 Adjust.
4348 * remote.c (remote_async_inferior_event_handler): Adjust.
4349
1cdf9e33
TT
43502020-07-01 Tom Tromey <tom@tromey.com>
4351
4352 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4353 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4354
32c1e210
TT
43552020-07-01 Tom Tromey <tom@tromey.com>
4356
4357 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4358 tui_gen_win_info.
4359 (tui_win_info::make_window): Merge with
4360 tui_gen_win_info::make_window.
4361 (tui_win_info::make_visible): Move from tui_gen_win_info.
4362 * tui/tui-win.c (tui_win_info::max_width): Move from
4363 tui_gen_win_info.
4364 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4365 type.
4366 <window_factory>: Likewise.
4367 * tui/tui-layout.c (tui_win_info::resize): Move from
4368 tui_gen_win_info.
4369 (make_standard_window): Change return type.
4370 (get_locator_window, tui_get_window_by_name): Likewise.
4371 (tui_layout_window::apply): Remove a cast.
4372 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4373 (struct tui_win_info): Merge with tui_gen_win_info.
4374 (struct tui_gen_win_info): Remove.
4375
a30cb6da
TT
43762020-07-01 Tom Tromey <tom@tromey.com>
4377
4378 * tui/tui-stack.h (struct tui_locator_window): Derive from
4379 tui_win_info.
4380 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4381 <can_box>: New method.
4382
1eb2161f
TT
43832020-07-01 Tom Tromey <tom@tromey.com>
4384
4385 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4386
7134f2eb
TT
43872020-07-01 Tom Tromey <tom@tromey.com>
4388
4389 * tui/tui-regs.c (tui_data_window::display_registers_from)
4390 (tui_data_window::display_registers_from)
4391 (tui_data_window::first_data_item_displayed)
4392 (tui_data_window::delete_data_content_windows): Update.
4393 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4394 Remove.
4395 (tui_data_window::check_register_values): Update.
4396 (tui_data_item_window::rerender): Add parameters. Update.
4397 (tui_data_item_window::refresh_window): Remove.
4398 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4399 virtual.
4400 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4401 tui_gen_win_info.
4402 <refresh_window, max_height, min_height>: Remove.
4403 <rerender>: Add parameters.
4404 <x, y, visible>: New members.
4405 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4406 <m_item_width>: New member.
4407
22b7b041
TT
44082020-07-01 Tom Tromey <tom@tromey.com>
4409
4410 * tui/tui-regs.c (tui_data_window::show_register_group)
4411 (tui_data_window::check_register_values): Update.
4412 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4413 from item_no.
4414
c9753adb
TT
44152020-07-01 Tom Tromey <tom@tromey.com>
4416
4417 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4418 useless "if".
4419
9ab26b4a
TT
44202020-07-01 Tom Tromey <tom@tromey.com>
4421
4422 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4423 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4424
e555083f
TT
44252020-07-01 Tom Tromey <tom@tromey.com>
4426
4427 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4428 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4429 (struct tui_line_or_address): Move from tui-data.h.
4430 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4431 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4432 (tui_cmd_window, tui_source_window_base, tui_source_window)
4433 (tui_disasm_window): Don't declare.
4434 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4435 to tui-winsource.h.
4436 (SINGLE_KEY): Move to tui-stack.c.
4437
7a02bab7
TT
44382020-07-01 Tom Tromey <tom@tromey.com>
4439
4440 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4441 std::string.
4442 * tui/tui-regs.c (class tab_expansion_file): New.
4443 (tab_expansion_file::write): New method.
4444 (tui_register_format): Change return type. Use
4445 tab_expansion_file.
4446 (tui_get_register, tui_data_window::display_registers_from)
4447 (tui_data_item_window::rerender): Update.
4448 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4449 * tui/tui-io.c (tui_expand_tabs): Remove.
4450
ea68593b
TT
44512020-07-01 Tom Tromey <tom@tromey.com>
4452
4453 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4454
a8caed5d
FS
44552020-07-01 Fangrui Song <maskray@google.com>
4456
4457 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4458
9cdf9820
AKS
44592020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4460
4461 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4462 forms for DW_AT_associated and DW_AT_allocated attributes,
4463 which is already checked in function attr_to_dynamic_prop.
4464
a1520ad8
TT
44652020-06-30 Tom Tromey <tromey@adacore.com>
4466
4467 * dwarf2/read.c (quirk_rust_enum): Correctly call
4468 alloc_rust_variant for default-less enum.
4469
5ac58899
TT
44702020-06-30 Tom Tromey <tromey@adacore.com>
4471
4472 PR build/26183:
4473 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4474 gdb::to_string.
4475
19b187a9
SM
44762020-06-29 Simon Marchi <simon.marchi@efficios.com>
4477
4478 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4479 * gdbarch.h: Re-generate.
4480
cd4c4c07
TT
44812020-06-28 Tom Tromey <tom@tromey.com>
4482
4483 * command.h (cmd_types): Remove.
4484 (cmd_type): Don't declare.
4485 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4486 typedef.
4487 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4488 * cli/cli-decode.c (cmd_type): Remove.
4489
05779d57
PA
44902020-06-27 Pedro Alves <palves@redhat.com>
4491
4492 * fork-child.c (prefork_hook): Adjust.
4493 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4494 Delete.
4495 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4496 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4497 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4498 Remove declarations.
4499 (struct inferior) <set_tty, tty>: New methods.
4500 (struct inferior) <terminal>: Rename to ...
4501 (struct inferior) <m_terminal>: ... this and make private.
4502 * main.c (captured_main_1): Adjust.
4503 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4504 (mi_cmd_inferior_tty_show): Adjust.
4505 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4506 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4507
1776e3e5
NA
45082020-06-26 Nick Alcock <nick.alcock@oracle.com>
4509
4510 * configure.ac: Add --enable-libctf: handle --disable-static
4511 properly.
4512 * acinclude.m4: sinclude ../config/enable.m4.
4513 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4514 (LIBCTF): Substitute in.
4515 (CTF_DEPS): New, likewise.
4516 (CLIBS): libctf needs symbols from libbfd: move earlier.
4517 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4518 flags.
4519 * ctfread.c: Surround in ENABLE_LIBCTF.
4520 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4521 * configure: Regenerate.
4522 * config.in: Likewise.
4523
58373b80
SM
45242020-06-25 Simon Marchi <simon.marchi@efficios.com>
4525
4526 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4527
277474ee
SM
45282020-06-25 Simon Marchi <simon.marchi@efficios.com>
4529
4530 * inferior.h (struct inferior) <terminal>: Change type to
4531 gdb::unique_xmalloc_ptr<char>.
4532 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4533 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4534 field, adjust to unique pointer.
4535 (get_inferior_io_terminal): Adjust to unique pointer.
4536
6d74da72
AB
45372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4538
4539 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4540 registers, not just the known core set of registers.
4541
2e52d038
AB
45422020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4543
4544 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4545 fflags, frm, and fcsr registers.
4546 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4547 restore groups.
4548 (riscv_tdesc_unknown_reg): New function.
4549 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4550 tdesc_use_registers.
4551 * riscv-tdep.h (struct gdbarch_tdep): Add
4552 unknown_csrs_first_regnum, unknown_csrs_count,
4553 duplicate_fflags_regnum, duplicate_frm_regnum, and
4554 duplicate_fcsr_regnum fields.
4555
be64fd07
AB
45562020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4557
4558 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4559 callback, use the callback (when not null) to help number unknown
4560 registers.
4561 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4562 (tdesc_use_registers): Add extra parameter to declaration.
4563
3b9fce96
AB
45642020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4565
4566 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4567 in the file.
4568 (class riscv_pending_register_alias): Likewise.
4569 (riscv_register_feature::register_info): Change 'required_p' field
4570 to 'required', and change its type. Add 'check' member function.
4571 (riscv_register_feature::register_info::check): Define new member
4572 function.
4573 (riscv_xreg_feature): Change initialisation of 'required' field.
4574 (riscv_freg_feature): Likewise.
4575 (riscv_virtual_feature): Likewise.
4576 (riscv_csr_feature): Likewise.
4577 (riscv_check_tdesc_feature): Take extra parameter, the csr
4578 tdesc_feature, rewrite the function to use the new
4579 riscv_register_feature::register_info::check function.
4580 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4581
865bad26
AB
45822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4583
4584 * features/Makefile: Remove all references to the deleted files
4585 below.
4586 * features/riscv/32bit-csr.c: Deleted.
4587 * features/riscv/32bit-csr.xml: Deleted.
4588 * features/riscv/64bit-csr.c: Deleted.
4589 * features/riscv/64bit-csr.xml: Deleted.
4590 * features/riscv/rebuild-csr-xml.sh: Deleted.
4591
ed69cbc8
AB
45922020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4593
4594 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4595 whitespace error for declaration of names member variable.
4596 (struct riscv_register_feature): Add new prefer_first_name member
4597 variable, and fix whitespace error in declaration of registers.
4598 (riscv_xreg_feature): Initialize prefer_first_name field.
4599 (riscv_freg_feature): Likewise.
4600 (riscv_virtual_feature): Likewise.
4601 (riscv_csr_feature): Likewise.
4602 (riscv_register_name): Expand on comments. Remove register name
4603 modifications for CSR and virtual registers.
4604
4445e8f5
AB
46052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4606
4607 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4608 errors.
4609
767a879e
AB
46102020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4611
4612 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4613 riscv-opc.h.
4614 (class riscv_pending_register_alias): New class.
4615 (riscv_check_tdesc_feature): Take vector of pending aliases and
4616 populate it as appropriate.
4617 (riscv_setup_register_aliases): Delete.
4618 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4619 to riscv_check_tdesc_feature in all cases. Use the vector to
4620 create the register aliases.
4621
bb6e55f3
RO
46222020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4623
4624 * sol2-tdep.c (sol2_static_transform_name): Remove.
4625 (sol2_init_abi): Don't register it.
4626 * gdbarch.sh (static_transform_name): Remove.
4627 * gdbarch.c, gdbarch.h: Regenerate.
4628
4629 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4630 gdbarch_static_transform_name.
4631 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4632 * stabsread.c (define_symbol) <'X'>: Remove.
4633 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4634 handling.
4635 <'V'>: Likewise.
4636 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4637 <'S'>: Remove call to gdbarch_static_transform_name.
4638
c6d36836
RO
46392020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4640
4641 * procfs.c (procfs_pre_trace): New function.
4642 (procfs_target::create_inferior): Pass it to fork_inferior.
4643
a7e6196b
RO
46442020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4645
4646 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4647 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4648 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4649 sol2-tdep.o, sparc-sol2-tdep.o.
4650 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4651 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4652 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4653 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4654
d412e696
RO
46552020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4656
4657 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4658 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4659 Call sol2_init_abi.
4660 Remove calls to set_gdbarch_skip_solib_resolver,
4661 set_gdbarch_core_pid_to_str.
4662 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4663 (i386_sol2_static_transform_name): Remove.
4664 (i386_sol2_init_abi): Call sol2_init_abi.
4665 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4666 set_gdbarch_static_transform_name,
4667 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4668 Use sol2_sigtramp_p.
4669 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4670 (sol2_sigtramp_p): New function.
4671 (sol2_static_transform_name): New function.
4672 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4673 (sol2_init_abi): New function.
4674 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4675 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4676 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4677 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4678 (sparc_sol2_static_transform_name): Remove.
4679 (sparc32_sol2_init_abi): Call sol2_init_abi.
4680 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4681 set_gdbarch_static_transform_name,
4682 set_gdbarch_skip_solib_resolver,
4683 set_gdbarch_core_pid_to_str.
4684 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4685 (sparc_sol2_static_transform_name): Remove
4686 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4687 call sol2_sigtramp_p.
4688 (sparc64_sol2_init_abi): Call sol2_init_abi.
4689 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4690 set_gdbarch_static_transform_name,
4691 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4692
a8654e7d
PW
46932020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4694
4695 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4696 * exec.c (validate_exec_file): If from_tty, set both
4697 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4698 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4699 and from_tty, unconditionally ask a confirmation.
4700
caa7fd04
AB
47012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4702
4703 * target-descriptions.c (tdesc_architecture_name): Protect against
4704 NULL pointer dereference.
4705 (maint_print_xml_tdesc_cmd): New function.
4706 (_initialize_target_descriptions): Register new 'maint print
4707 xml-tdesc' command and give it the filename completer.
4708 * NEWS: Mention new 'maint print xml-tdesc' command.
4709
fbf42f4e
AB
47102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4711
4712 * target-descriptions.c (class tdesc_compatible_info): New class.
4713 (struct target_desc): Change type of compatible vector.
4714 (tdesc_compatible_p): Update for change in type of
4715 target_desc::compatible.
4716 (tdesc_compatible_info_list): New function.
4717 (tdesc_compatible_info_arch_name): New function.
4718 (tdesc_add_compatible): Update for change in type of
4719 target_desc::compatible.
4720 (print_c_tdesc::visit_pre): Likewise.
4721
20821f4e
AB
47222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4723
4724 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4725 whitespace to underscore.
4726 (maint_print_c_tdesc_cmd): Use fake filename for target
4727 descriptions that came from the target.
4728 (_initialize_target_descriptions): Add filename command completion
4729 for 'maint print c-tdesc'.
4730
1fb5ee62
SM
47312020-06-23 Simon Marchi <simon.marchi@efficios.com>
4732
4733 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4734 lines.
4735
fc3ecb3e
SM
47362020-06-23 Simon Marchi <simon.marchi@efficios.com>
4737
4738 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4739 lines.
4740 (dwarf2_find_location_expression): Likewise.
4741 (call_site_parameter_matches): Likewise.
4742 (dwarf2_compile_expr_to_ax): Likewise.
4743 (disassemble_dwarf_expression): Likewise.
4744 (loclist_describe_location): Likewise.
4745
236ef034
PA
47462020-06-23 Pedro Alves <palves@redhat.com>
4747
4748 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4749 progspace-and-thread.h. Include scoped-mock-context.h instead.
4750 (register_to_value_test): Use scoped_mock_context.
4751 * regcache.c: Include "scoped-mock-context.h".
4752 (cooked_read_test): Don't error out if a target is already pushed.
4753 Use scoped_mock_context. Adjust.
4754 * scoped-mock-context.h: New file.
4755
39e7ecca
AB
47562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4757
4758 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4759 initializer.
4760 (ada_language::is_string_type_p): New member function.
4761 * c-lang.c (c_language_data): Delete la_is_string_type_p
4762 initializer.
4763 (cplus_language_data): Likewise.
4764 (asm_language_data): Likewise.
4765 (minimal_language_data): Likewise.
4766 * d-lang.c (d_language_data): Likewise.
4767 * f-lang.c (f_is_string_type_p): Delete function, implementation
4768 moved to f_language::is_string_type_p.
4769 (f_language_data): Delete la_is_string_type_p initializer.
4770 (f_language::is_string_type_p): New member function,
4771 implementation from f_is_string_type_p.
4772 * go-lang.c (go_is_string_type_p): Delete function, implementation
4773 moved to go_language::is_string_type_p.
4774 (go_language_data): Delete la_is_string_type_p initializer.
4775 (go_language::is_string_type_p): New member function,
4776 implementation from go_is_string_type_p.
4777 * language.c (language_defn::is_string_type_p): Define new member
4778 function.
4779 (default_is_string_type_p): Make static, add comment copied from
4780 header file.
4781 (unknown_language_data): Delete la_is_string_type_p initializer.
4782 (unknown_language::is_string_type_p): New member function.
4783 (auto_language_data): Delete la_is_string_type_p initializer.
4784 (auto_language::is_string_type_p): New member function.
4785 * language.h (language_data): Delete la_is_string_type_p field.
4786 (language_defn::is_string_type_p): Declare new function.
4787 (default_is_string_type_p): Delete desclaration, move comment to
4788 definition.
4789 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4790 moved to m2_language::is_string_type_p.
4791 (m2_language_data): Delete la_is_string_type_p initializer.
4792 (m2_language::is_string_type_p): New member function,
4793 implementation from m2_is_string_type_p.
4794 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4795 initializer.
4796 * opencl-lang.c (opencl_language_data): Likewise.
4797 * p-lang.c (pascal_is_string_type_p): Delete function,
4798 implementation moved to pascal_language::is_string_type_p.
4799 (pascal_language_data): Delete la_is_string_type_p initializer.
4800 (pascal_language::is_string_type_p): New member function,
4801 implementation from pascal_is_string_type_p.
4802 * rust-lang.c (rust_is_string_type_p): Delete function,
4803 implementation moved to rust_language::is_string_type_p.
4804 (rust_language_data): Delete la_is_string_type_p initializer.
4805 (rust_language::is_string_type_p): New member function,
4806 implementation from rust_is_string_type_p.
4807 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4808 is_string_type_p.
4809
4ffc13fb
AB
48102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4811
4812 * ada-lang.c (ada_language_data): Delete la_print_typedef
4813 initializer.
4814 (ada_language::print_typedef): New member function.
4815 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4816 (cplus_language_data): Likewise.
4817 (asm_language_data): Likewise.
4818 (minimal_language_data): Likewise.
4819 * d-lang.c (d_language_data): Likewise.
4820 * f-lang.c (f_language_data): Likewise.
4821 (f_language::print_typedef): New member function.
4822 * go-lang.c (go_language_data): Delete la_print_typedef
4823 initializer.
4824 * language.c (language_defn::print_typedef): Define member
4825 function.
4826 (unknown_language_data): Delete la_print_typedef initializer.
4827 (unknown_language::print_typedef): New member function.
4828 (auto_language_data): Delete la_print_typedef initializer.
4829 (auto_language::print_typedef): New member function.
4830 * language.h (language_data): Delete la_print_typedef field.
4831 (language_defn::print_typedef): Declare new member function.
4832 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4833 (default_print_typedef): Delete declaration.
4834 * m2-lang.c (m2_language_data): Delete la_print_typedef
4835 initializer.
4836 (m2_language::print_typedef): New member function.
4837 * objc-lang.c (objc_language_data): Delete la_print_typedef
4838 initializer.
4839 * opencl-lang.c (opencl_language_data): Likewise.
4840 * p-lang.c (pascal_language_data): Likewise.
4841 (pascal_language::print_typedef): New member function.
4842 * rust-lang.c (rust_print_typedef): Delete function,
4843 implementation moved to rust_language::print_typedef.
4844 (rust_language): Delete la_print_typedef initializer.
4845 (rust_language::print_typedef): New member function,
4846 implementation from rust_print_typedef.
4847 * typeprint.c (default_print_typedef): Delete.
4848
d711ee67
AB
48492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4850
4851 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4852 (ada_language::printstr): New member function.
4853 * c-lang.c (c_language_data): Delete la_printstr initializer.
4854 (cplus_language_data): Likewise.
4855 (asm_language_data): Likewise.
4856 (minimal_language_data): Likewise.
4857 * d-lang.c (d_language_data): Likewise.
4858 * f-lang.c (f_printstr): Rename to f_language::printstr.
4859 (f_language_data): Delete la_printstr initializer.
4860 (f_language::printstr): New member function, implementation from
4861 f_printstr.
4862 * go-lang.c (go_language_data): Delete la_printstr initializer.
4863 * language.c (language_defn::printstr): Define new member
4864 function.
4865 (unk_lang_printstr): Delete.
4866 (unknown_language_data): Delete la_printstr initializer.
4867 (unknown_language::printstr): New member function.
4868 (auto_language_data): Delete la_printstr initializer.
4869 (auto_language::printstr): New member function.
4870 * language.h (language_data): Delete la_printstr field.
4871 (language_defn::printstr): Declare new member function.
4872 (LA_PRINT_STRING): Update call to printstr.
4873 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4874 (m2_language_data): Delete la_printstr initializer.
4875 (m2_language::printstr): New member function, implementation from
4876 m2_printstr.
4877 * objc-lang.c (objc_language_data): Delete la_printstr
4878 initializer.
4879 * opencl-lang.c (opencl_language_data): Likewise.
4880 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4881 (pascal_language_data): Delete la_printstr initializer.
4882 (pascal_language::printstr): New member function, implementation
4883 from pascal_printstr.
4884 * p-lang.h (pascal_printstr): Delete declaration.
4885 * rust-lang.c (rust_printstr): Update header comment.
4886 (rust_language_data): Delete la_printstr initializer.
4887 (rust_language::printstr): New member function.
4888
52b50f2c
AB
48892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4890
4891 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4892 (ada_language::printchar): New member function.
4893 * c-lang.c (c_language_data): Delete la_printchar initializer.
4894 (cplus_language_data): Likewise.
4895 (asm_language_data): Likewise.
4896 (minimal_language_data): Likewise.
4897 * d-lang.c (d_language_data): Likewise.
4898 * f-lang.c (f_printchar): Rename to f_language::printchar.
4899 (f_language_data): Delete la_printchar initializer.
4900 (f_language::printchar): New member function, implementation from
4901 f_printchar.
4902 * go-lang.c (go_language_data): Delete la_printchar initializer.
4903 * language.c (unk_lang_printchar): Delete.
4904 (language_defn::printchar): Define new member function.
4905 (unknown_language_data): Delete la_printchar initializer.
4906 (unknown_language::printchar): New member function.
4907 (auto_language_data): Delete la_printchar initializer.
4908 (auto_language::printchar): New member function.
4909 * language.h (language_data): Delete la_printchar field.
4910 (language_defn::printchar): Declare new member function.
4911 (LA_PRINT_CHAR): Update call to printchar.
4912 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4913 (m2_language::printchar): New member function.
4914 * objc-lang.c (objc_language_data): Delete la_printchar
4915 initializer.
4916 * opencl-lang.c (opencl_language_data): Likewise.
4917 * p-lang.c (pascal_language_data): Delete la_printchar
4918 initializer.
4919 (pascal_language::printchar): New member function.
4920 * rust-lang.c (rust_printchar): Rename to
4921 rust_language::printchar.
4922 (rust_language_data): Delete la_printchar initializer.
4923 (rust_language::printchar): New member function, implementation
4924 from rust_printchar.
4925
ec8cec5b
AB
49262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4927
4928 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4929 (ada_language_data): Delete la_emitchar initializer.
4930 (ada_language::emitchar): New member function, implementation from
4931 emit_char.
4932 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4933 (cplus_language_data): Likewise.
4934 (asm_language_data): Likewise.
4935 (minimal_language_data): Likewise.
4936 * d-lang.c (d_language_data): Likewise.
4937 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4938 (f_language_data): Delete la_emitchar initializer.
4939 (f_language::emitchar): New member function, implementation from
4940 f_emit_char.
4941 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4942 * language.c (unk_lang_emit_char): Delete.
4943 (language_defn::emitchar): New member function definition.
4944 (unknown_language_data): Delete la_emitchar initializer.
4945 (unknown_language::emitchar): New member function.
4946 (auto_language_data): Delete la_emitchar initializer.
4947 (auto_language::emitchar): New member function.
4948 * language.h (language_data): Delete la_emitchar field.
4949 (language_defn::emitchar): New member field declaration.
4950 (LA_EMIT_CHAR): Update call to emitchar.
4951 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4952 (m2_language_data): Delete la_emitchar initializer.
4953 (m2_language::emitchar): New member function, implementation from
4954 m2_emit_char.
4955 * objc-lang.c (objc_language_data): Delete la_emitchar
4956 initializer.
4957 * opencl-lang.c (opencl_language_data): Likewise.
4958 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4959 (pascal_language_data): Delete la_emitchar initializer.
4960 (pascal_language::emitchar): New member function, implementation
4961 from pascal_emit_char.
4962 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4963 (rust_language_data): Delete la_emitchar initializer.
4964 (rust_language::emitchar): New member function, implementation
4965 from rust_emitchar.
4966
1bf9c363
AB
49672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4968
4969 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4970 (ada_language_data): Delete la_post_parser initializer.
4971 (ada_language::post_parser): New member function.
4972 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4973 (cplus_language_data): Likewise.
4974 (asm_language_data): Likewise.
4975 (minimal_language_data): Likewise.
4976 * d-lang.c (d_language_data): Likewise.
4977 * f-lang.c (f_language_data): Likewise.
4978 * go-lang.c (go_language_data): Likewise.
4979 * language.c (unknown_language_data): Likewise.
4980 (auto_language_data): Likewise.
4981 * language.h (language_data): Delete la_post_parser field.
4982 (language_defn::post_parser): New member function.
4983 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4984 * objc-lang.c (objc_language_data): Likewise.
4985 * opencl-lang.c (opencl_language_data): Likewise.
4986 * p-lang.c (pascal_language_data): Likewise.
4987 * parse.c (parse_exp_in_context): Update call to post_parser.
4988 (null_post_parser): Delete definition.
4989 * parser-defs.h (null_post_parser): Delete declaration.
4990 * rust-lang.c (rust_language_data): Delete la_post_parser
4991 initializer.
4992
87afa652
AB
49932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4994
4995 * ada-lang.c (parse): Rename to ada_language::parser.
4996 (ada_language_data): Delete la_parser initializer.
4997 (ada_language::parser): New member function, implementation from
4998 parse.
4999 * c-lang.c (c_language_data): Delete la_parser initializer.
5000 (cplus_language_data): Likewise.
5001 (asm_language_data): Likewise.
5002 (minimal_language_data): Likewise.
5003 * d-lang.c (d_language_data): Likewise.
5004 (d_language::parser): New member function.
5005 * f-lang.c (f_language_data): Delete la_parser initializer.
5006 (f_language::parser): New member function.
5007 * go-lang.c (go_language_data): Delete la_parser initializer.
5008 (go_language::parser): New member function.
5009 * language.c (unk_lang_parser): Delete.
5010 (language_defn::parser): Define new member function.
5011 (unknown_language_data): Delete la_parser initializer.
5012 (unknown_language::parser): New member function.
5013 (auto_language_data): Delete la_parser initializer.
5014 (auto_language::parser): New member function.
5015 * language.h (language_data): Delete la_parser field.
5016 (language_defn::parser): Declare new member function.
5017 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5018 (m2_language::parser): New member function.
5019 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5020 * opencl-lang.c (opencl_language_data): Likewise.
5021 * p-lang.c (pascal_language_data): Likewise.
5022 (pascal_language::parser): New member function.
5023 * parse.c (parse_exp_in_context): Update call to parser.
5024 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5025 (rust_language::parser): New member function.
5026
37825800
AB
50272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5028
5029 * top.c (print_gdb_configuration): Print --with-python-libdir
5030 configuration value.
5031
5b860c93
PW
50322020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5033
5034 * NEWS: Mention change to the alias command.
5035
cf00cd6f
PW
50362020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5037
5038 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5039 (alias_command_completer)
5040 (make_alias_options_def_group): New functions.
5041 (alias_opts, alias_option_defs): New struct and array.
5042 (alias_usage_error): Update usage.
5043 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5044 Use option framework.
5045 (_initialize_cli_cmds): Update alias command help.
5046 Update aliases command help.
5047 (show_user):
5048 Add NULL for new default_args lookup_cmd argument.
5049 (valid_command_p): Rename to validate_aliased_command.
5050 Add NULL for new default_args lookup_cmd argument. Verify that the
5051 aliased_command has no default args.
5052 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5053 (lookup_cmd_1, lookup_cmd): New argument default_args.
5054 (add_alias_cmd):
5055 Add NULL for new default_args lookup_cmd argument.
5056 (print_help_for_command): Show default args under the layout
5057 alias some_alias = some_aliased_cmd some_alias_default_arg.
5058 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5059 xfree default_args in destructor.
5060 * cli/cli-script.c (process_next_line, do_define_command):
5061 Add NULL for new default_args lookup_cmd argument.
5062 * command.h: Declare new default_args argument in lookup_cmd
5063 and lookup_cmd_1.
5064 * completer.c (complete_line_internal_1):
5065 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5066 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5067 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5068 Likewise.
5069 * infcmd.c (_initialize_infcmd): Likewise.
5070 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5071 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5072 * python/py-param.c (add_setshow_generic): Likewise.
5073 * remote.c (_initialize_remote): Likewise.
5074 * top.c (execute_command): Prepend default_args if command has some.
5075 (set_verbose):
5076 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5077 * tracepoint.c (validate_actionline, encode_actions_1):
5078 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5079
bd920864
TBA
50802020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5081
5082 * jit.c (jit_read_descriptor): Use bool as the return type.
5083 (jit_breakpoint_re_set_internal): Use bool as the return type.
5084 Invert the return value logic; return true if the jit breakpoint
5085 has been successfully initialized.
5086 (jit_inferior_init): Update the call to
5087 jit_breakpoint_re_set_internal.
5088
f8098322
PA
50892020-06-22 Pedro Alves <palves@redhat.com>
5090
5091 PR gdb/25939
5092 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5093 Use the current inferior instead. Don't return
5094 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5095 wait again.
5096 * sol-thread.c (sol_thread_target::wait): Don't reference
5097 inferior_ptid.
5098 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5099 (sol_update_thread_list_callback): Use the current inferior's pid
5100 instead of inferior_ptid.
5101
196535a6
RO
51022020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5103
5104 * procfs.c: Cleanup many comments.
5105
5106 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5107 (AFTER_WATCHFLAG): Replace by value.
5108
5109 (MAIN_PROC_NAME_FORMAT): Inline ...
5110 (create_procinfo): ... here.
5111
5112 (procfs_debug_inferior): Remove SYS_exec handling.
5113 (syscall_is_exec): Likewise.
5114 (procfs_set_exec_trap): Likewise.
5115
5116 (syscall_is_lwp_exit): Inline in callers.
5117 (syscall_is_exit): Likewise.
5118 (syscall_is_exec): Likewise.
5119 (syscall_is_lwp_create): Likewise.
5120
5121 (invalidate_cache): Remove #if 0 code.
5122
5123 (make_signal_thread_runnable): Remove.
5124 (procfs_target::resume): Remove #if 0 code.
5125
cf6f3e86
RO
51262020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5127
5128 PR gdb/25939
5129 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5130 call ...
5131 (procfs_target::create_inferior): ... here.
5132
48e9cc84
PW
51332020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5134
5135 * exec.c (validate_exec_file): Ensure the build-id is up to
5136 date by calling reopen_exec_file (that checks file timestamp
5137 to decide to re-read the file).
5138
3922b302
PA
51392020-06-18 Pedro Alves <palves@redhat.com>
5140
5141 PR gdb/25412
5142 * gdbthread.h (delete_thread, delete_thread_silent)
5143 (find_thread_ptid): Update comments.
5144 * thread.c (current_thread_): New global.
5145 (is_current_thread): Move higher, and reimplement.
5146 (inferior_thread): Reimplement.
5147 (set_thread_exited): Use bool. Add assertions.
5148 (add_thread_silent): Simplify thread-reuse handling by always
5149 calling delete_thread.
5150 (delete_thread): Remove intro comment.
5151 (find_thread_ptid): Skip exited threads.
5152 (switch_to_thread_no_regs): Write to current_thread_.
5153 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5154 INFERIOR_PTID. Clear current_thread_.
5155
6dbdab44
PA
51562020-06-18 Pedro Alves <palves@redhat.com>
5157
5158 * aix-thread.c (pd_update): Use switch_to_thread.
5159
2da4b788
PA
51602020-06-18 Pedro Alves <palves@redhat.com>
5161
5162 * ravenscar-thread.c (ravenscar_thread_target): Update.
5163 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5164 (ravenscar_thread_target::add_active_thread): ... this. Don't
5165 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5166 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5167
50838d1b
PA
51682020-06-18 Pedro Alves <palves@redhat.com>
5169
5170 * nat/windows-nat.c (current_windows_thread): Remove.
5171 * nat/windows-nat.h (current_windows_thread): Remove.
5172 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5173 Adjust.
5174 (display_selectors): Adjust to fetch the current
5175 windows_thread_info based on inferior_ptid.
5176 (fake_create_process): No longer write to current_windows_thread.
5177 (windows_nat_target::get_windows_debug_event):
5178 Don't set inferior_ptid or current_windows_thread.
5179 (windows_nat_target::wait): Adjust to not rely on
5180 current_windows_thread.
5181 (do_initial_windows_stuff): Now a method of windows_nat_target.
5182 Switch to the last_ptid thread.
5183 (windows_nat_target::attach): Adjust.
5184 (windows_nat_target::detach): Use switch_to_no_thread instead of
5185 writing to inferior_ptid directly.
5186 (windows_nat_target::create_inferior): Adjust.
5187
31ce04e9
PA
51882020-06-18 Pedro Alves <palves@redhat.com>
5189
5190 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5191
1ee1a363
PA
51922020-06-18 Pedro Alves <palves@redhat.com>
5193
5194 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5195 after creating it, instead of writing to inferior_ptid. Don't
5196 write to inferior_ptid.
5197
6d350754
PA
51982020-06-18 Pedro Alves <palves@redhat.com>
5199
5200 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5201
5d971d48
PA
52022020-06-18 Pedro Alves <palves@redhat.com>
5203
5204 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5205 it, instead of writing to inferior_ptid.
5206
86e57d1b
PA
52072020-06-18 Pedro Alves <palves@redhat.com>
5208
5209 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5210 to inferior_ptid.
5211
f2e1c129
PA
52122020-06-18 Pedro Alves <palves@redhat.com>
5213
5214 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5215 instead of writing to inferior_ptid directly.
5216
60db1b85
PA
52172020-06-18 Pedro Alves <palves@redhat.com>
5218
5219 * corelow.c (core_target::close): Use switch_to_no_thread instead
5220 of writing to inferior_ptid directly.
5221 (add_to_thread_list, core_target_open): Use switch_to_thread
5222 instead of writing to inferior_ptid directly.
5223
fe7d6a8d
PA
52242020-06-18 Pedro Alves <palves@redhat.com>
5225
5226 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5227 inferior_ptid.
5228 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5229 inferior_ptid.
5230 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5231 inferior_ptid directly.
5232 (darwin_nat_target::init_thread_list): Switch to thread, instead
5233 of writing to inferior_ptid.
5234 (darwin_nat_target::attach): Don't write to inferior_ptid.
5235 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5236
975f8708
PA
52372020-06-18 Pedro Alves <palves@redhat.com>
5238
5239 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5240 thread.
5241 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5242 Instead use switch_to_thread.
5243 (gnu_nat_target::detach): Use switch_to_no_thread
5244 instead of writing to inferior_ptid directly. Used passed-in
5245 inferior instead of looking up the inferior by pid.
5246
1a204730
PA
52472020-06-18 Pedro Alves <palves@redhat.com>
5248
5249 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5250 inferior_ptid.
5251
ebe84f23
PA
52522020-06-18 Pedro Alves <palves@redhat.com>
5253
5254 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5255 inferior_ptid.
5256 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5257 thread.
5258 (nto_procfs_target::detach): Avoid referencing
5259 inferior_ptid. Use switch_to_no_thread instead of writing to
5260 inferior_ptid directly.
5261 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5262 instead of writing to inferior_ptid directly.
5263 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5264 to thread.
5265
191f02e5
PA
52662020-06-18 Pedro Alves <palves@redhat.com>
5267
5268 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5269 after creating it, instead of writing to inferior_ptid.
5270 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5271 to inferior_ptid directly.
5272 (gdbsim_target::wait): Don't write to inferior_ptid.
5273
0ac55310
PA
52742020-06-18 Pedro Alves <palves@redhat.com>
5275
5276 * remote.c (remote_target::remote_notice_new_inferior): Use
5277 switch_to_thread instead of writing to inferior_ptid directly.
5278 (remote_target::add_current_inferior_and_thread): Use
5279 switch_to_no_thread instead of writing to inferior_ptid directly.
5280 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5281 and switch_to_thread instead of using set_current_inferior or
5282 writing to inferior_ptid directly.
5283
5233f39b
PA
52842020-06-18 Pedro Alves <palves@redhat.com>
5285
5286 * tracectf.c (ctf_target_open): Switch to added thread instead of
5287 writing to inferior_ptid directly.
5288 (ctf_target::close): Use switch_to_no_thread instead of writing to
5289 inferior_ptid directly.
5290
087e161b
PA
52912020-06-18 Pedro Alves <palves@redhat.com>
5292
5293 * tracefile-tfile.c (tfile_target_open): Don't write to
5294 inferior_ptid directly, instead switch to added thread.
5295 (tfile_target::close): Use switch_to_no_thread instead of writing
5296 to inferior_ptid directly.
5297
7fb43e53
PA
52982020-06-18 Pedro Alves <palves@redhat.com>
5299
5300 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5301 (procfs_target::detach): Use switch_to_no_thread
5302 instead of writing to inferior_ptid directly.
5303 (do_attach): Change return type to void. Switch to the added
5304 thread.
5305 (procfs_target::create_inferior): Switch to the added thread.
5306 (procfs_do_thread_registers): Don't write to inferior_ptid.
5307
18493a00
PA
53082020-06-18 Pedro Alves <palves@redhat.com>
5309
5310 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5311 of writing to inferior_ptid.
5312 (scoped_restore_exited_inferior): Delete.
5313 (handle_vfork_child_exec_or_exit): Simplify using
5314 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5315 instead of writing to inferior_ptid.
5316 (THREAD_STOPPED_BY): Delete.
5317 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5318 (thread_stopped_by_hw_breakpoint): Delete.
5319 (save_waitstatus): Use
5320 scoped_restore_current_thread+switch_to_thread, and call
5321 target_stopped_by_watchpoint instead of
5322 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5323 instead of thread_stopped_by_sw_breakpoint, and
5324 target_stopped_by_hw_breakpoint instead of
5325 thread_stopped_by_hw_breakpoint.
5326 (handle_inferior_event)
5327 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5328 inferior_ptid directly, nor
5329 set_current_inferior/set_current_program_space. Use
5330 switch_to_thread / switch_to_inferior_no_thread instead.
5331
a0776b13
PA
53322020-06-18 Pedro Alves <palves@redhat.com>
5333
5334 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5335 instead of writing to inferior_ptid.
5336
6155c136
PA
53372020-06-18 Pedro Alves <palves@redhat.com>
5338
5339 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5340 added thread.
5341 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5342 to the added thread.
5343 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5344 instead of writing to inferior_ptid.
5345
c5316fc6
PA
53462020-06-18 Pedro Alves <palves@redhat.com>
5347
5348 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5349 (register_to_value_test): Mock a program_space too. Heap-allocate
5350 the address space. Don't write to inferior_ptid. Use
5351 switch_to_thread instead.
5352
8df01799
PA
53532020-06-18 Pedro Alves <palves@redhat.com>
5354
5355 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5356 Delete.
5357 (find_signalled_thread()): New, factored out from
5358 linux_make_corefile_notes and adjusted to handle exited threads.
5359 (linux_make_corefile_notes): Adjust to use the new
5360 find_signalled_thread.
5361
41792d68
PA
53622020-06-18 Pedro Alves <palves@redhat.com>
5363
5364 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5365 of saving/restoring inferior_ptid.
5366
612f258a
TT
53672020-06-17 Tom Tromey <tom@tromey.com>
5368
5369 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5370 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5371 declare.
5372 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5373
efb763a5
SM
53742020-06-15 Simon Marchi <simon.marchi@efficios.com>
5375
5376 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5377 of partial symtabs.
5378
2951f6c0
SM
53792020-06-17 Simon Marchi <simon.marchi@efficios.com>
5380
5381 * regformats/reg-arm.dat: Remove.
5382 * regformats/reg-bfin.dat: Remove.
5383 * regformats/reg-cris.dat: Remove.
5384 * regformats/reg-crisv32.dat: Remove.
5385 * regformats/reg-m32r.dat: Remove.
5386 * regformats/reg-tilegx.dat: Remove.
5387 * regformats/reg-tilegx32.dat: Remove.
5388
7d458ea5
SM
53892020-06-17 Simon Marchi <simon.marchi@efficios.com>
5390
5391 * features/Makefile (WHICH): Remove arm files.
5392 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5393 * regformats/arm/arm-with-neon.dat: Remove.
5394 * regformats/arm/arm-with-vfpv2.dat: Remove.
5395 * regformats/arm/arm-with-vfpv3.dat: Remove.
5396
3af96c0d
SM
53972020-06-17 Simon Marchi <simon.marchi@efficios.com>
5398
5399 * features/Makefile (XMLTOC): Remove rx.xml.
5400
b25e22fd
PA
54012020-06-17 Pedro Alves <palves@redhat.com>
5402
5403 * gdbthread.h (thread_control_state) <trap_expected> Update
5404 comments.
5405
a78a19b1
AB
54062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5407
5408 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5409 ada_language::lookup_symbol_nonlocal.
5410 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5411 (ada_language::lookup_symbol_nonlocal): New member function,
5412 implementation from ada_lookup_symbol_nonlocal.
5413 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5414 initializer.
5415 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5416 initializer.
5417 (cplus_language::lookup_symbol_nonlocal): New member function.
5418 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5419 (minimal_language_data) Likewise.
5420 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5421 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5422 initializer.
5423 (d_language::lookup_symbol_nonlocal): New member function.
5424 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5425 initializer.
5426 (f_language::lookup_symbol_nonlocal): New member function.
5427 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5428 initializer.
5429 * language.c (unknown_language_data): Likewise.
5430 (auto_language_data): Likewise.
5431 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5432 field.
5433 (language_defn::lookup_symbol_nonlocal): New member function.
5434 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5435 initializer.
5436 * objc-lang.c (objc_language_data): Likewise.
5437 * opencl-lang.c (opencl_language_data): Likewise.
5438 * p-lang.c (pascal_language_data): Likewise.
5439 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5440 rust_language::lookup_symbol_nonlocal.
5441 (rust_language_data): Delete la_lookup_symbol_nonlocal
5442 initializer.
5443 (rust_language::lookup_symbol_nonlocal): New member function,
5444 implementation from rust_lookup_symbol_nonlocal.
5445 * symtab.c (lookup_symbol_aux): Update call to
5446 lookup_symbol_nonlocal.
5447 (basic_lookup_symbol_nonlocal): Rename to...
5448 (language_defn::lookup_symbol_nonlocal): ...this, and update
5449 header comment. Remove language_defn parameter, and replace with
5450 uses of `this'.
5451 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5452
ebe2334e
AB
54532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5454
5455 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5456 initializer.
5457 (ada_language::value_print_inner): New member function.
5458 * c-lang.c (c_language_data): Delete la_value_print_inner
5459 initializer.
5460 (cplus_language_data): Likewise.
5461 (asm_language_data): Likewise.
5462 (minimal_language_data): Likewise.
5463 * d-lang.c (d_language_data): Likewise.
5464 (d_language::value_print_inner): New member function.
5465 * f-lang.c (f_language_data): Delete la_value_print_inner
5466 initializer.
5467 (f_language::value_print_inner): New member function.
5468 * f-lang.h (f_value_print_innner): Rename to...
5469 (f_value_print_inner): ...this (note spelling of 'inner').
5470 * f-valprint.c (f_value_print_innner): Rename to...
5471 (f_value_print_inner): ...this (note spelling of 'inner').
5472 * go-lang.c (go_language_data): Delete la_value_print_inner
5473 initializer.
5474 (go_language::value_print_inner): New member function.
5475 * language.c (language_defn::value_print_inner): Define new member
5476 function.
5477 (unk_lang_value_print_inner): Delete.
5478 (unknown_language_data): Delete la_value_print_inner initializer.
5479 (unknown_language::value_print_inner): New member function.
5480 (auto_language_data): Delete la_value_print_inner initializer.
5481 (auto_language::value_print_inner): New member function.
5482 * language.h (language_data): Delete la_value_print_inner field.
5483 (language_defn::value_print_inner): Delcare new member function.
5484 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5485 initializer.
5486 (m2_language::value_print_inner): New member function.
5487 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5488 initializer.
5489 * opencl-lang.c (opencl_language_data): Likewise.
5490 * p-lang.c (pascal_language_data): Likewise.
5491 (pascal_language::value_print_inner): New member function.
5492 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5493 initializer.
5494 (rust_language::value_print_inner): New member function.
5495 * valprint.c (do_val_print): Update call to value_print_inner.
5496
a1d1fa3e
AB
54972020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5498
5499 * ada-lang.c (ada_language_data): Delete la_value_print
5500 initializer.
5501 (ada_language::value_print): New member function.
5502 * c-lang.c (c_language_data): Delete la_value_print initializer.
5503 (cplus_language_data): Likewise.
5504 (asm_language_data): Likewise.
5505 (minimal_language_data): Likewise.
5506 * d-lang.c (d_language_data): Likewise.
5507 * f-lang.c (f_language_data): Likewise.
5508 * go-lang.c (go_language_data): Likewise.
5509 * language.c (unk_lang_value_print): Delete.
5510 (language_defn::value_print): Define new member function.
5511 (unknown_language_data): Delete la_value_print initializer.
5512 (unknown_language::value_print): New member function.
5513 (auto_language_data): Delete la_value_print initializer.
5514 (auto_language::value_print): New member function.
5515 * language.h (language_data): Delete la_value_print field.
5516 (language_defn::value_print): Declare new member function.
5517 (LA_VALUE_PRINT): Update call to value_print.
5518 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5519 * objc-lang.c (objc_language_data): Likewise.
5520 * opencl-lang.c (opencl_language_data): Likewise.
5521 * p-lang.c (pascal_language_data): Likewise.
5522 (pascal_language::value_print): New member function.
5523 * rust-lang.c (rust_language_data): Delete la_value_print
5524 initializer.
5525
f16a9f57
AB
55262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5527
5528 * ada-lang.c (ada_watch_location_expression): Rename to
5529 ada_language::watch_location_expression.
5530 (ada_language_data): Delete la_watch_location_expression
5531 initializer.
5532 (ada_language::watch_location_expression): New member function,
5533 implementation from ada_watch_location_expression.
5534 * breakpoint.c (watch_command_1): Update call to
5535 watch_location_expression.
5536 * c-lang.c (c_watch_location_expression): Rename to
5537 language_defn::watch_location_expression.
5538 (c_language_data): Delete la_watch_location_expression
5539 initializer.
5540 (cplus_language_data): Likewise.
5541 (asm_language_data): Likewise.
5542 (minimal_language_data): Likewise.
5543 * c-lang.h (c_watch_location_expression): Delete declaration.
5544 * d-lang.c (d_language_data): Delete la_watch_location_expression
5545 initializer.
5546 * f-lang.c (f_language_data): Likewise.
5547 * go-lang.c (go_language_data): Likewise.
5548 * language.c (language_defn::watch_location_expression): Member
5549 function implementation from c_watch_location_expression.
5550 (unknown_language_data): Delete la_watch_location_expression
5551 initializer.
5552 (auto_language_data): Likewise.
5553 * language.h (language_data): Delete la_watch_location_expression
5554 field.
5555 (language_defn::watch_location_expression): Declare new member
5556 function.
5557 * m2-lang.c (m2_language_data): Delete
5558 la_watch_location_expression initializer.
5559 * objc-lang.c (objc_language_data): Likewise.
5560 * opencl-lang.c (opencl_language_data): Likewise.
5561 * p-lang.c (pascal_language_data): Likewise.
5562 * rust-lang.c (rust_watch_location_expression): Rename to
5563 rust_language::watch_location_expression.
5564 (rust_language_data): Delete la_watch_location_expression
5565 initializer.
5566 (rust_language::watch_location_expression): New member function,
5567 implementation from rust_watch_location_expression.
5568
7e56227d
AB
55692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5570
5571 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5572 ada_language::collect_symbol_completion_matches.
5573 (ada_language_data): Delete la_collect_symbol_completion_matches
5574 initializer.
5575 (ada_language::collect_symbol_completion_matches): New member
5576 function, implementation from
5577 ada_collect_symbol_completion_matches.
5578 * c-lang.c (c_language_data): Delete
5579 la_collect_symbol_completion_matches initializer.
5580 (cplus_language_data): Likewise.
5581 (asm_language_data): Likewise.
5582 (minimal_language_data): Likewise.
5583 * d-lang.c (d_language_data): Likewise.
5584 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5585 f_language::collect_symbol_completion_matches.
5586 (f_language_data): Delete la_collect_symbol_completion_matches
5587 initializer.
5588 (f_language::collect_symbol_completion_matches) New member
5589 function, implementation from f_collect_symbol_completion_matches.
5590 * go-lang.c (go_language_data): Delete
5591 la_collect_symbol_completion_matches initializer.
5592 * language.c (unknown_language_data): Likewise.
5593 (auto_language_data): Likewise.
5594 * language.h (language_data): Delete
5595 la_collect_symbol_completion_matches field.
5596 (language_defn::collect_symbol_completion_matches): New member
5597 function.
5598 * m2-lang.c (m2_language_data): Delete
5599 la_collect_symbol_completion_matches initializer.
5600 * objc-lang.c (objc_language_data): Likewise.
5601 * opencl-lang.c (opencl_language_data): Likewise.
5602 * p-lang.c (pascal_language_data): Likewise.
5603 * rust-lang.c (rust_language_data): Likewise.
5604 * symtab.c (default_collect_symbol_completion_matches): Delete.
5605 (collect_symbol_completion_matches): Update call to
5606 collect_symbol_completion_matches.
5607 (collect_symbol_completion_matches_type): Likewise.
5608 * symtab.h (default_collect_symbol_completion_matches): Delete
5609 declaration.
5610
53fc67f8
AB
56112020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5612
5613 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5614 (ada_language_data): Delete la_word_break_characters initializer.
5615 (ada_language::word_break_characters): New member function.
5616 * c-lang.c (c_language_data): Delete la_word_break_characters
5617 initializer.
5618 (cplus_language_data): Likewise.
5619 (asm_language_data): Likewise.
5620 (minimal_language_data): Likewise.
5621 * completer.c: Update global comment.
5622 (advance_to_expression_complete_word_point): Update call to
5623 word_break_characters.
5624 (complete_files_symbols): Likewise.
5625 (complete_line_internal_1): Likewise.
5626 (default_completer_handle_brkchars): Likewise.
5627 (skip_quoted_chars): Likewise.
5628 * d-lang.c (d_language_data): Delete la_word_break_characters
5629 initializer.
5630 * f-lang.c (f_word_break_characters): Delete.
5631 (f_language_data): Delete la_word_break_characters initializer.
5632 (f_language::word_break_characters): New member function.
5633 * go-lang.c (go_language_data): Delete la_word_break_characters
5634 initializer.
5635 * language.c (unknown_language_data): Likewise.
5636 (auto_language_data): Likewise.
5637 * language.h (default_word_break_characters): Move declaration to
5638 earlier in the file.
5639 (language_data): Delete la_word_break_characters field.
5640 (language_defn::word_break_characters): New member function.
5641 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5642 initializer.
5643 * objc-lang.c (objc_language_data): Likewise.
5644 * opencl-lang.c (opencl_language_data): Likewise.
5645 * p-lang.c (pascal_language_data): Likewise.
5646 * rust-lang.c (rust_language_data): Likewise.
5647
c9debfb9
AB
56482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5649
5650 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5651 (ada_language_data): Delete la_get_symbol_name_matcher
5652 initializer.
5653 (language_defn::get_symbol_name_matcher_inner): New member
5654 function.
5655 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5656 initializer.
5657 (cplus_language_data): Likewise.
5658 (cplus_language::get_symbol_name_matcher_inner): New member
5659 function.
5660 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5661 (minimal_language_data): Likewise.
5662 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5663 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5664 initializer.
5665 * dictionary.c (iter_match_first_hashed): Update call to
5666 get_symbol_name_matcher.
5667 (iter_match_next_hashed): Likewise.
5668 (iter_match_next_linear): Likewise.
5669 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5670 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5671 initializer.
5672 (f_language::get_symbol_name_matcher_inner): New member function.
5673 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5674 initializer.
5675 * language.c (default_symbol_name_matcher): Update header comment,
5676 make static.
5677 (language_defn::get_symbol_name_matcher): New definition.
5678 (language_defn::get_symbol_name_matcher_inner): Likewise.
5679 (get_symbol_name_matcher): Delete.
5680 (unknown_language_data): Delete la_get_symbol_name_matcher
5681 initializer.
5682 (auto_language_data): Likewise.
5683 * language.h (language_data): Delete la_get_symbol_name_matcher
5684 field.
5685 (language_defn::get_symbol_name_matcher): New member function.
5686 (language_defn::get_symbol_name_matcher_inner): Likewise.
5687 (default_symbol_name_matcher): Delete declaration.
5688 * linespec.c (find_methods): Update call to
5689 get_symbol_name_matcher.
5690 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5691 initializer.
5692 * minsyms.c (lookup_minimal_symbol): Update call to
5693 get_symbol_name_matcher.
5694 (iterate_over_minimal_symbols): Likewise.
5695 * objc-lang.c (objc_language_data): Delete
5696 la_get_symbol_name_matcher initializer.
5697 * opencl-lang.c (opencl_language_data): Likewise.
5698 * p-lang.c (pascal_language_data): Likewise.
5699 * psymtab.c (psymbol_name_matches): Update call to
5700 get_symbol_name_matcher.
5701 * rust-lang.c (rust_language_data): Delete
5702 la_get_symbol_name_matcher initializer.
5703 * symtab.c (symbol_matches_search_name): Update call to
5704 get_symbol_name_matcher.
5705 (compare_symbol_name): Likewise.
5706
9a49ad8c
AB
57072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5708
5709 * ada-lang.c (ada_language_data): Delete la_compute_program
5710 initializer.
5711 * c-lang.c (c_language_data): Likewise.
5712 (c_language::compute_program): New member function.
5713 (cplus_language_data): Delete la_compute_program initializer.
5714 (cplus_language::compute_program): New member function.
5715 (asm_language_data): Delete la_compute_program initializer.
5716 (minimal_language_data): Likewise.
5717 * c-lang.h (c_compute_program): Update comment.
5718 (cplus_compute_program): Likewise.
5719 * compile/compile-c-support.c (c_compute_program): Likewise.
5720 (cplus_compute_program): Likewise.
5721 * compile/compile.c (compile_to_object): Update call to
5722 la_compute_program.
5723 * d-lang.c (d_language_data): Delete la_compute_program
5724 initializer.
5725 * f-lang.c (f_language_data): Likewise.
5726 * go-lang.c (go_language_data): Likewise.
5727 * language.c (unknown_language_data): Likewise.
5728 (auto_language_data): Likewise.
5729 * language.h (language_data): Delete la_compute_program field.
5730 (language_defn::compute_program): New member function.
5731 * m2-lang.c (m2_language_data): Delete la_compute_program
5732 initializer.
5733 * objc-lang.c (objc_language_data): Likewise.
5734 * opencl-lang.c (opencl_language_data): Likewise.
5735 * p-lang.c (pascal_language_data): Likewise.
5736 * rust-lang.c (rust_language_data): Likewise.
5737
eff93b4d
AB
57382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5739
5740 * ada-lang.c (ada_language_data) Delete
5741 la_class_name_from_physname initializer.
5742 * c-lang.c (c_language_data): Likewise.
5743 (cplus_language_data): Likewise.
5744 (cplus_language::class_name_from_physname): New member function.
5745 (asm_language_data): Delete la_class_name_from_physname
5746 initializer.
5747 (minimal_language_data): Likewise.
5748 * d-lang.c (d_language_data): Likewise.
5749 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5750 method on language_defn class.
5751 (guess_full_die_structure_name): Likewise.
5752 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5753 initializer.
5754 * go-lang.c (go_language_data): Likewise.
5755 * language.c (language_class_name_from_physname): Delete.
5756 (unk_lang_class_name): Delete.
5757 (unknown_language_data): Delete la_class_name_from_physname
5758 initializer.
5759 (auto_language_data): Likewise.
5760 * language.h (language_data): Delete la_class_name_from_physname
5761 field.
5762 (language_defn::class_name_from_physname): New function.
5763 (language_class_name_from_physname): Delete declaration.
5764 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5765 initializer.
5766 * objc-lang.c (objc_language_data): Likewise.
5767 * opencl-lang.c (opencl_language_data): Likewise.
5768 * p-lang.c (pascal_language_data): Likewise.
5769 * rust-lang.c (rust_language_data): Likewise.
5770
de543742
TT
57712020-06-16 Tom Tromey <tom@tromey.com>
5772
5773 * tui/tui-data.h (STATUS_NAME): New macro.
5774 * tui/tui-layout.c (tui_remove_some_windows)
5775 (initialize_known_windows, tui_register_window)
5776 (tui_layout_split::remove_windows, initialize_layouts)
5777 (tui_new_layout_command): Don't use hard-coded window names.
5778
a350efd4
TT
57792020-06-16 Tom Tromey <tom@tromey.com>
5780
5781 PR tui/25348:
5782 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5783 tui_initialize_readline. Only run once. Call rl_initialize.
5784 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5785 tui_initialize_readline.
5786 * tui/tui-io.c (tui_setup_io): Call
5787 tui_ensure_readline_initialized.
5788 * tui/tui-interp.c (tui_interp::init): Update.
5789
39ec0490
TT
57902020-06-16 Tom Tromey <tom@tromey.com>
5791
5792 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5793 Also preserve the status window.
5794
d2d1ea20
TT
57952020-06-16 Tom Tromey <tom@tromey.com>
5796
5797 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5798 where m_window==nullptr.
5799
66920317
TT
58002020-06-15 Tom Tromey <tromey@adacore.com>
5801
5802 * windows-nat.c (windows_nat::handle_output_debug_string):
5803 Update.
5804 (windows_nat::handle_ms_vc_exception): Update.
5805 * target.h (target_read_string): Change API.
5806 * target.c (target_read_string): Change API.
5807 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5808 Update.
5809 * solib-frv.c (frv_current_sos): Update.
5810 * solib-dsbt.c (dsbt_current_sos): Update.
5811 * solib-darwin.c (darwin_current_sos): Update.
5812 * linux-thread-db.c (inferior_has_bug): Update.
5813 * expprint.c (print_subexp_standard): Update.
5814 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5815 (ada_exception_message_1): Update.
5816
a5d871dd
TT
58172020-06-15 Tom Tromey <tromey@adacore.com>
5818
5819 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5820
670e35fa
TT
58212020-06-15 Tom Tromey <tromey@adacore.com>
5822
5823 * valprint.c (read_string): Update comment.
5824 * target.c (MIN): Remove.
5825 (target_read_string): Rewrite.
5826
f5272a3b
TT
58272020-06-15 Tom Tromey <tromey@adacore.com>
5828
5829 * corefile.c (read_memory_string): Remove.
5830 * ada-valprint.c (ada_value_print_ptr): Update.
5831 * ada-lang.h (ada_tag_name): Change return type.
5832 * ada-lang.c (type_from_tag): Update.
5833 (ada_tag_name_from_tsd): Change return type. Use
5834 target_read_string.
5835 (ada_tag_name): Likewise.
5836 * gdbcore.h (read_memory_string): Don't declare.
5837
2c074f49
HD
58382020-06-14 Hannes Domani <ssbssa@yahoo.de>
5839
5840 * symtab.c (rbreak_command): Ignore Windows drive colon.
5841
6a17d503
SM
58422020-06-12 Simon Marchi <simon.marchi@efficios.com>
5843
5844 * NEWS: Mention removed GDBserver host support.
5845
453c733f
NC
58462020-06-12 Nelson Chu <nelson.chu@sifive.com>
5847
5848 * features/riscv/rebuild-csr-xml.sh: Updated.
5849
2b4e6a3f
TT
58502020-06-11 Tom Tromey <tom@tromey.com>
5851
5852 PR gdb/18318:
5853 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5854
4412332f
JG
58552020-06-09 Jonny Grant <jg@jguk.org>
58562020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5857
5858 * main.c (captured_main_1): Don't print new line after help.
5859 (print_gdb_help): add mailing list and IRC channel information
5860 to --help. Add new lines between items in the footer. Remove
5861 quotes around bug url.
5862
2f33032a
KS
58632020-06-11 Keith Seitz <keiths@redhat.com>
5864
5865 PR gdb/21356
5866 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5867 Resolve typedefs for type length calculations.
5868
7ab96794
TV
58692020-06-10 Tom de Vries <tdevries@suse.de>
5870
5871 PR ada/24713
5872 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5873 (write_psymbols): Enable .gdb_index for ada.
5874 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5875 ada.
5876
e5f3ece2
TV
58772020-06-10 Tom de Vries <tdevries@suse.de>
5878
5879 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5880 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5881 namei" instead of "const char *name" argument.
5882 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5883 dw2_symtab_iter_init.
5884
940da03e
SM
58852020-06-08 Simon Marchi <simon.marchi@efficios.com>
5886
5887 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5888 to use type::field and field::type instead.
5889
b6cdac4b
SM
58902020-06-08 Simon Marchi <simon.marchi@efficios.com>
5891
5892 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5893 to use field::type instead.
5894
5d14b6e5
SM
58952020-06-08 Simon Marchi <simon.marchi@efficios.com>
5896
5897 * gdbtypes.h (struct field) <type, set_type>: New methods.
5898 Rename `type` field to...
5899 <m_type>: ... this. Change references throughout to use type or
5900 set_type methods.
5901 (FIELD_TYPE): Use field::type. Change call sites that modify
5902 the field's type to use field::set_type instead.
5903
3d967001
SM
59042020-06-08 Simon Marchi <simon.marchi@efficios.com>
5905
5906 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5907 to use type::index_type instead.
5908
262abc0d
SM
59092020-06-08 Simon Marchi <simon.marchi@efficios.com>
5910
5911 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5912 methods.
5913 (TYPE_INDEX_TYPE): Use type::index_type.
5914 * gdbtypes.c (create_array_type_with_stride): Likewise.
5915
82836c92
TT
59162020-06-07 Tom Tromey <tom@tromey.com>
5917
5918 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5919 parameter.
5920 (generic_value_print): Update.
5921
940dace9
AB
59222020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5923
5924 Revert commit 982a38f60b0.
5925 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5926
982a38f6
AB
59272020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5928
5929 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5930 avoid use after free.
5931
82f06518
TV
59322020-06-05 Tom de Vries <tdevries@suse.de>
5933
5934 * NEWS: Fix typos.
5935
f8c41851
SM
59362020-06-04 Simon Marchi <simon.marchi@efficios.com>
5937
5938 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5939 the per_bfd object.
5940 (dwarf2_read_debug_names): Likewise.
5941 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5942 object when re-using a per_bfd object with an index.
5943
f9b5d5ea
TV
59442020-06-03 Tom de Vries <tdevries@suse.de>
5945
5946 PR symtab/26046
5947 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5948 children for C++.
5949 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5950 DW_TAG_subprogram.
5951
f6eee2d0
AB
59522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5953
5954 * ada-lang.c (ada_language_data): Delete skip_trampoline
5955 initializer.
5956 * c-lang.c (c_language_data): Likewise.
5957 (cplus_language_data): Likewise.
5958 (cplus_language::skip_trampoline): New member function.
5959 (asm_language_data): Delete skip_trampoline initializer.
5960 (minimal_language_data): Likewise.
5961 * d-lang.c (d_language_data): Likewise.
5962 * f-lang.c (f_language_data): Likewise.
5963 * go-lang.c (go_language_data): Likewise.
5964 * language.c (unk_lang_trampoline): Delete function.
5965 (skip_language_trampoline): Update.
5966 (unknown_language_data): Delete skip_trampoline initializer.
5967 (auto_language_data): Likewise.
5968 * language.h (language_data): Delete skip_trampoline field.
5969 (language_defn::skip_trampoline): New function.
5970 * m2-lang.c (m2_language_data): Delete skip_trampoline
5971 initializer.
5972 * objc-lang.c (objc_skip_trampoline): Delete function, move
5973 implementation to objc_language::skip_trampoline.
5974 (objc_language_data): Delete skip_trampoline initializer.
5975 (objc_language::skip_trampoline): New member function with
5976 implementation from objc_skip_trampoline.
5977 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5978 initializer.
5979 * p-lang.c (pascal_language_data): Likewise.
5980 * rust-lang.c (rust_language_data): Likewise.
5981
0a50df5d
AB
59822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5983
5984 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5985 (ada_language::demangle): New member function.
5986 * c-lang.c (c_language_data): Delete la_demangle initializer.
5987 (cplus_language_data): Delete la_demangle initializer.
5988 (cplus_language::demangle): New member function.
5989 (asm_language_data): Delete la_demangle initializer.
5990 (minimal_language_data): Delete la_demangle initializer.
5991 * d-lang.c (d_language_data): Delete la_demangle initializer.
5992 (d_language::demangle): New member function.
5993 * f-lang.c (f_language_data): Delete la_demangle initializer.
5994 (f_language::demangle): New member function.
5995 * go-lang.c (go_language_data): Delete la_demangle initializer.
5996 (go_language::demangle): New member function.
5997 * language.c (language_demangle): Update.
5998 (unk_lang_demangle): Delete.
5999 (unknown_language_data): Delete la_demangle initializer.
6000 (unknown_language::demangle): New member function.
6001 (auto_language_data): Delete la_demangle initializer.
6002 (auto_language::demangle): New member function.
6003 * language.h (language_data): Delete la_demangle field.
6004 (language_defn::demangle): New function.
6005 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6006 * objc-lang.c (objc_language_data): Delete la_demangle
6007 initializer.
6008 (objc_language::demangle): New member function.
6009 * opencl-lang.c (opencl_language_data): Delete la_demangle
6010 initializer.
6011 * p-lang.c (pascal_language_data): Likewise.
6012 * rust-lang.c (rust_language_data): Likewise.
6013 (rust_language::demangle): New member function.
6014
fbfb0a46
AB
60152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6016
6017 * ada-lang.c (ada_language_data): Delete la_print_type
6018 initializer.
6019 (ada_language::print_type): New member function.
6020 * c-lang.c (c_language_data): Delete la_print_type initializer.
6021 (c_language::print_type): New member function.
6022 (cplus_language_data): Delete la_print_type initializer.
6023 (cplus_language::print_type): New member function.
6024 (asm_language_data): Delete la_print_type initializer.
6025 (asm_language::print_type): New member function.
6026 (minimal_language_data): Delete la_print_type initializer.
6027 (minimal_language::print_type): New member function.
6028 * d-lang.c (d_language_data): Delete la_print_type initializer.
6029 (d_language::print_type): New member function.
6030 * f-lang.c (f_language_data): Delete la_print_type initializer.
6031 (f_language::print_type): New member function.
6032 * go-lang.c (go_language_data): Delete la_print_type initializer.
6033 (go_language::print_type): New member function.
6034 * language.c (unk_lang_print_type): Delete.
6035 (unknown_language_data): Delete la_print_type initializer.
6036 (unknown_language::print_type): New member function.
6037 (auto_language_data): Delete la_print_type initializer.
6038 (auto_language::print_type): New member function.
6039 * language.h (language_data): Delete la_print_type field.
6040 (language_defn::print_type): New function.
6041 (LA_PRINT_TYPE): Update.
6042 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6043 (m2_language::print_type): New member function.
6044 * objc-lang.c (objc_language_data): Delete la_print_type
6045 initializer.
6046 (objc_language::print_type): New member function.
6047 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6048 to opencl_language::print_type.
6049 (opencl_language_data): Delete la_print_type initializer.
6050 (opencl_language::print_type): New member function, implementation
6051 from opencl_print_type.
6052 * p-lang.c (pascal_language_data): Delete la_print_type
6053 initializer.
6054 (pascal_language::print_type): New member function.
6055 * rust-lang.c (rust_print_type): Delete, implementation moved to
6056 rust_language::print_type.
6057 (rust_language_data): Delete la_print_type initializer.
6058 (rust_language::print_type): New member function, implementation
6059 from rust_print_type.
6060
6f827019
AB
60612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6062
6063 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6064 implementation moves to...
6065 (ada_language::sniff_from_mangled_name): ...here. Update return
6066 type.
6067 (ada_language_data): Delete la_sniff_from_mangled_name
6068 initializer.
6069 * c-lang.c (c_language_data): Likewise.
6070 (cplus_language_data): Likewise.
6071 (cplus_language::sniff_from_mangled_name): New member function,
6072 implementation taken from gdb_sniff_from_mangled_name.
6073 (asm_language_data): Delete la_sniff_from_mangled_name
6074 initializer.
6075 (minimal_language_data): Likewise.
6076 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6077 implementation moves to cplus_language::sniff_from_mangled_name.
6078 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6079 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6080 moves to...
6081 (d_language::sniff_from_mangled_name): ...here.
6082 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6083 * f-lang.c (f_language_data): Likewise.
6084 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6085 moves to...
6086 (go_language::sniff_from_mangled_name): ...here.
6087 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6088 * language.c (language_sniff_from_mangled_name): Delete.
6089 (unknown_language_data): Delete la_sniff_from_mangled_name
6090 initializer.
6091 (auto_language_data): Likewise.
6092 * language.h (language_data): Delete la_sniff_from_mangled_name
6093 field.
6094 (language_defn::sniff_from_mangled_name): New function.
6095 (language_sniff_from_mangled_name): Delete declaration.
6096 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6097 field.
6098 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6099 implementation moves to...
6100 (objc_language::sniff_from_mangled_name): ...here.
6101 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6102 * opencl-lang.c (opencl_language_data): Likewise.
6103 * p-lang.c (pascal_language_data): Likewise.
6104 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6105 implementation moves to...
6106 (rust_language::sniff_from_mangled_name): ...here.
6107 (rust_language_data): Delete la_sniff_from_mangled_name
6108 initializer.
6109 * symtab.c (symbol_find_demangled_name): Call
6110 sniff_from_mangled_name member function.
6111
fb8006fd
AB
61122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6113
6114 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6115 initializer.
6116 * c-lang.c (c_language_data): Likewise.
6117 (cplus_language_data): Likewise.
6118 (cplus_language::search_name_hash): New member function.
6119 (asm_language_data): Delete la_search_name_hash initializer.
6120 (minimal_language_data): Likewise.
6121 * d-lang.c (d_language_data): Likewise.
6122 * dictionary.c (default_search_name_hash): Rename to...
6123 (language_defn::search_name_hash): ...this.
6124 * f-lang.c (f_language_data): Likewise.
6125 (f_language::search_name_hash): New member function.
6126 * go-lang.c (go_language_data): Delete la_search_name_hash
6127 initializer.
6128 * language.c (unknown_language_data): Likewise.
6129 (auto_language_data): Likewise.
6130 * language.h (struct language_data): Delete la_search_name_hash
6131 field.
6132 (language_defn::search_name_hash): Declare new member function.
6133 (default_search_name_hash): Delete declaration.
6134 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6135 initializer.
6136 * objc-lang.c (objc_language_data): Likewise.
6137 * opencl-lang.c (opencl_language_data): Likewise.
6138 * p-lang.c (pascal_language_data): Likewise.
6139 * rust-lang.c (rust_language_data): Likewise.
6140 * symtab.c (search_name_hash): Update call.
6141
8e25bafe
AB
61422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6143
6144 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6145 initializer.
6146 * c-lang.c (class compile_instance): Declare.
6147 (c_language_data): Delete la_get_compile_instance initializer.
6148 (c_language::get_compile_instance): New member function.
6149 (cplus_language_data): Delete la_get_compile_instance initializer.
6150 (cplus_language::get_compile_instance): New member function.
6151 (asm_language_data): Delete la_get_compile_instance initializer.
6152 (minimal_language_data): Likewise.
6153 * c-lang.h (c_get_compile_context): Update comment.
6154 (cplus_get_compile_context): Update comment.
6155 * compile/compile.c (compile_to_object): Update calls, don't rely
6156 on function pointer being NULL.
6157 * d-lang.c (d_language_data): Delete la_get_compile_instance
6158 initializer.
6159 * f-lang.c (f_language_data): Likewise.
6160 * go-lang.c (go_language_data): Likewise.
6161 * language.c (unknown_language_data): Likewise.
6162 (auto_language_data): Likewise.
6163 * language.h (language_data): Delete la_get_compile_instance field.
6164 (language_defn::get_compile_instance): New member function.
6165 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6166 initializer.
6167 * objc-lang.c (objc_language_data): Likewise.
6168 * opencl-lang.c (opencl_language_data): Likewise.
6169 * p-lang.c (pascal_language_data): Likewise.
6170 * rust-lang.c (rust_language_data): Likewise.
6171
4009ee92
AB
61722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6173
6174 * ada-lang.c (ada_add_all_symbols): Update comment.
6175 (ada_iterate_over_symbols): Delete, move implementation to...
6176 (ada_language::iterate_over_symbols): ...here, a new member
6177 function, rewrite to use range based for loop.
6178 (ada_language_data): Delete la_iterate_over_symbols initializer.
6179 * c-lang.c (c_language_data): Likewise.
6180 (cplus_language_data): Likewise.
6181 (asm_language_data): Likewise.
6182 (minimal_language_data): Likewise.
6183 * d-lang.c (d_language_data): Likewise.
6184 * f-lang.c (f_language_data): Likewise.
6185 * go-lang.c (go_language_data): Likewise.
6186 * language.c (unknown_language_data): Likewise.
6187 (auto_language_data): Likewise.
6188 * language.h (language_data): Delete la_iterate_over_symbols field.
6189 (language_defn::iterate_over_symbols): New member function.
6190 (LA_ITERATE_OVER_SYMBOLS): Update.
6191 * linespec.c (iterate_over_all_matching_symtabs): Update.
6192 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6193 initializer.
6194 * objc-lang.c (objc_language_data): Likewise.
6195 * opencl-lang.c (opencl_language_data): Likewise.
6196 * p-lang.c (pascal_language_data): Likewise.
6197 * rust-lang.c (rust_language_data): Likewise.
6198
54f4ca46
AB
61992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6200
6201 * ada-lang.c (ada_language_data): Delete
6202 la_lookup_transparent_type initializer.
6203 * c-lang.c (c_language_data): Likewise.
6204 (cplus_language_data): Likewise.
6205 (cplus_language::lookup_transparent_type): New member function.
6206 (asm_language_data): Delete la_lookup_transparent_type
6207 initializer.
6208 (minimal_language_data): Likewise.
6209 * d-lang.c (d_language_data): Likewise.
6210 * f-lang.c (f_language_data): Likewise.
6211 * go-lang.c (go_language_data): Likewise.
6212 * language.c (unknown_language_data): Likewise.
6213 (auto_language_data): Likewise.
6214 * language.h (struct language_data): Delete
6215 la_lookup_transparent_type field.
6216 (language_defn::lookup_transparent_type): New member function.
6217 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6218 initializer.
6219 * objc-lang.c (objc_language_data): Likewise.
6220 * opencl-lang.c (opencl_language_data): Likewise.
6221 * p-lang.c (pascal_language_data): Likewise.
6222 * rust-lang.c (rust_language_data): Likewise.
6223 * symtab.c (symbol_matches_domain): Update call.
6224
1fb314aa
AB
62252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6226
6227 * ada-lang.c (ada_language_arch_info): Delete function, move
6228 implementation to...
6229 (ada_language::language_arch_info): ...here, a new member
6230 function.
6231 (ada_language_data): Delete la_language_arch_info.
6232 * c-lang.c (c_language_data): Likewise.
6233 (c_language::language_arch_info): New member function.
6234 (cplus_language_arch_info): Delete function, move
6235 implementation to...
6236 (cplus_language::language_arch_info): ...here, a new member
6237 function.
6238 (cplus_language_data): Delete la_language_arch_info.
6239 (asm_language_data): Likewise.
6240 (asm_language::language_arch_info): New member function.
6241 (minimal_language_data): Delete la_language_arch_info.
6242 (minimal_language::language_arch_info): New member function.
6243 * d-lang.c (d_language_arch_info): Delete function, move
6244 implementation to...
6245 (d_language::language_arch_info): ...here, a new member
6246 function.
6247 (d_language_data): Delete la_language_arch_info.
6248 * f-lang.c (f_language_arch_info): Delete function, move
6249 implementation to...
6250 (f_language::language_arch_info): ...here, a new member
6251 function.
6252 (f_language_data): Delete la_language_arch_info.
6253 * go-lang.c (go_language_arch_info): Delete function, move
6254 implementation to...
6255 (go_language::language_arch_info): ...here, a new member
6256 function.
6257 (go_language_data): Delete la_language_arch_info.
6258 * language.c (unknown_language_data): Likewise.
6259 (unknown_language::language_arch_info): New member function.
6260 (auto_language_data): Delete la_language_arch_info.
6261 (auto_language::language_arch_info): New member function.
6262 (language_gdbarch_post_init): Update call to
6263 la_language_arch_info.
6264 * language.h (language_data): Delete la_language_arch_info
6265 function pointer.
6266 (language_defn::language_arch_info): New function.
6267 * m2-lang.c (m2_language_arch_info): Delete function, move
6268 implementation to...
6269 (m2_language::language_arch_info): ...here, a new member
6270 function.
6271 (m2_language_data): Delete la_language_arch_info.
6272 * objc-lang.c (objc_language_arch_info): Delete function, move
6273 implementation to...
6274 (objc_language::language_arch_info): ...here, a new member
6275 function.
6276 (objc_language_data): Delete la_language_arch_info.
6277 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6278 implementation to...
6279 (opencl_language::language_arch_info): ...here, a new member
6280 function.
6281 (opencl_language_data): Delete la_language_arch_info.
6282 * p-lang.c (pascal_language_arch_info): Delete function, move
6283 implementation to...
6284 (pascal_language::language_arch_info): ...here, a new member
6285 function.
6286 (pascal_language_data): Delete la_language_arch_info.
6287 * rust-lang.c (rust_language_arch_info): Delete function, move
6288 implementation to...
6289 (rust_language::language_arch_info): ...here, a new member
6290 function.
6291 (rust_language_data): Delete la_language_arch_info.
6292
48448202
AB
62932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6294
6295 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6296 initializer.
6297 * c-lang.c (c_language_data): Likewise.
6298 (cplus_language_data): Likewise.
6299 (cplus_language::pass_by_reference_info): New method.
6300 (asm_language_data): Delete la_pass_by_reference initializer.
6301 (minimal_language_data): Likewise.
6302 * cp-abi.c (cp_pass_by_reference): Remove use of
6303 default_pass_by_reference.
6304 * d-lang.c (d_language_data): Likewise.
6305 * f-lang.c (f_language_data): Likewise.
6306 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6307 default_pass_by_reference.
6308 * go-lang.c (go_language_data): Likewise.
6309 * language.c (language_pass_by_reference): Update.
6310 (default_pass_by_reference): Delete.
6311 (unknown_language_data): Delete la_pass_by_reference
6312 initializer.
6313 (auto_language_data): Likewise.
6314 * language.h (struct language_data): Delete la_pass_by_reference
6315 field.
6316 (language_defn::pass_by_reference_info): New member function.
6317 (default_pass_by_reference): Delete declaration.
6318 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6319 initializer.
6320 * objc-lang.c (objc_language_data): Likewise.
6321 * opencl-lang.c (opencl_language_data): Likewise.
6322 * p-lang.c (pascal_language_data): Likewise.
6323 * rust-lang.c (rust_language_data): Likewise.
6324
15e5fd35
AB
63252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6326
6327 * ada-lang.c (ada_read_var_value): Delete function, move
6328 implementation to...
6329 (ada_language::read_var_value): ...here.
6330 (ada_language_data): Delete la_read_var_value initializer.
6331 * c-lang.c (c_language_data): Likewise.
6332 (cplus_language_data): Likewise.
6333 (minimal_language_data): Likewise.
6334 * d-lang.c (d_language_data): Likewise.
6335 * f-lang.c (f_language_data): Likewise.
6336 * findvar.c (default_read_var_value): Rename to...
6337 (language_defn::read_var_value): ...this.
6338 * findvar.c (read_var_value): Update header comment, and change to
6339 call member function instead of function pointer.
6340 * go-lang.c (go_language_data): Likewise.
6341 * language.c (unknown_language_data): Delete la_read_var_value
6342 initializer.
6343 (auto_language_data): Likewise.
6344 * language.h (struct language_data): Delete la_read_var_value
6345 field.
6346 (language_defn::read_var_value): New member function.
6347 (default_read_var_value): Delete declaration.
6348 * m2-lang.c (m2_language_data): Delete la_read_var_value
6349 initializer.
6350 * objc-lang.c (objc_language_data): Likewise.
6351 * opencl-lang.c (opencl_language_data): Likewise.
6352 * p-lang.c (pascal_language_data): Likewise.
6353 * rust-lang.c (rust_language_data): Likewise.
6354 * value.h (default_read_var_value): Delete declaration.
6355
5bd40f2a
AB
63562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6357
6358 * ada-lang.c (ada_print_array_index): Delete function, move
6359 implementation to...
6360 (ada_language::print_array_index): ...here.
6361 (ada_language_data): Delete la_print_array_index initializer.
6362 * c-lang.c (c_language_data): Likewise.
6363 (cplus_language_data): Likewise.
6364 (minimal_language_data): Likewise.
6365 * d-lang.c (d_language_data): Likewise.
6366 * f-lang.c (f_language_data): Likewise.
6367 * go-lang.c (go_language_data): Likewise.
6368 * language.c (default_print_array_index): Delete function, move
6369 implementation to...
6370 (language_defn::print_array_index): ...here.
6371 (unknown_language_data): Delete la_print_array_index initializer.
6372 (auto_language_data): Likewise.
6373 * language.h (struct language_data): Delete la_print_array_index
6374 field.
6375 (language_defn::print_array_index): New member function.
6376 (LA_PRINT_ARRAY_INDEX): Update.
6377 (default_print_array_index): Delete declaration.
6378 * m2-lang.c (m2_language_data): Delete la_print_array_index
6379 initializer.
6380 * objc-lang.c (objc_language_data): Likewise.
6381 * opencl-lang.c (opencl_language_data): Likewise.
6382 * p-lang.c (pascal_language_data): Likewise.
6383 * rust-lang.c (rust_language_data): Likewise.
6384
0874fd07
AB
63852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6386
6387 * gdb/ada-lang.c (ada_language_defn): Convert to...
6388 (ada_language_data): ...this.
6389 (class ada_language): New class.
6390 (ada_language_defn): New static global.
6391 * gdb/c-lang.c (c_language_defn): Convert to...
6392 (c_language_data): ...this.
6393 (class c_language): New class.
6394 (c_language_defn): New static global.
6395 (cplus_language_defn): Convert to...
6396 (cplus_language_data): ...this.
6397 (class cplus_language): New class.
6398 (cplus_language_defn): New static global.
6399 (asm_language_defn): Convert to...
6400 (asm_language_data): ...this.
6401 (class asm_language): New class.
6402 (asm_language_defn): New static global.
6403 (minimal_language_defn): Convert to...
6404 (minimal_language_data): ...this.
6405 (class minimal_language): New class.
6406 (minimal_language_defn): New static global.
6407 * gdb/d-lang.c (d_language_defn): Convert to...
6408 (d_language_data): ...this.
6409 (class d_language): New class.
6410 (d_language_defn): New static global.
6411 * gdb/f-lang.c (f_language_defn): Convert to...
6412 (f_language_data): ...this.
6413 (class f_language): New class.
6414 (f_language_defn): New static global.
6415 * gdb/go-lang.c (go_language_defn): Convert to...
6416 (go_language_data): ...this.
6417 (class go_language): New class.
6418 (go_language_defn): New static global.
6419 * gdb/language.c (unknown_language_defn): Remove declaration.
6420 (current_language): Initialize to nullptr, real initialization is
6421 moved to _initialize_language.
6422 (languages): Delete global.
6423 (language_defn::languages): Define.
6424 (set_language_command): Use language_defn::languages.
6425 (set_language): Likewise.
6426 (range_error): Likewise.
6427 (language_enum): Likewise.
6428 (language_def): Likewise.
6429 (add_set_language_command): Use language_def::languages for the
6430 language list, and language_def to lookup language pointers.
6431 (skip_language_trampoline): Use language_defn::languages.
6432 (unknown_language_defn): Convert to...
6433 (unknown_language_data): ...this.
6434 (class unknown_language): New class.
6435 (unknown_language_defn): New static global.
6436 (auto_language_defn): Convert to...
6437 (auto_language_data): ...this.
6438 (class auto_language): New class.
6439 (auto_language_defn): New static global.
6440 (language_gdbarch_post_init): Use language_defn::languages.
6441 (_initialize_language): Initialize current_language.
6442 * gdb/language.h (struct language_defn): Rename to...
6443 (struct language_data): ...this.
6444 (struct language_defn): New.
6445 (auto_language_defn): Delete.
6446 (unknown_language_defn): Delete.
6447 (minimal_language_defn): Delete.
6448 (ada_language_defn): Delete.
6449 (asm_language_defn): Delete.
6450 (c_language_defn): Delete.
6451 (cplus_language_defn): Delete.
6452 (d_language_defn): Delete.
6453 (f_language_defn): Delete.
6454 (go_language_defn): Delete.
6455 (m2_language_defn): Delete.
6456 (objc_language_defn): Delete.
6457 (opencl_language_defn): Delete.
6458 (pascal_language_defn): Delete.
6459 (rust_language_defn): Delete.
6460 * gdb/m2-lang.c (m2_language_defn): Convert to...
6461 (m2_language_data): ...this.
6462 (class m2_language): New class.
6463 (m2_language_defn): New static global.
6464 * gdb/objc-lang.c (objc_language_defn): Convert to...
6465 (objc_language_data): ...this.
6466 (class objc_language): New class.
6467 (objc_language_defn): New static global.
6468 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6469 (opencl_language_data): ...this.
6470 (class opencl_language): New class.
6471 (opencl_language_defn): New static global.
6472 * gdb/p-lang.c (pascal_language_defn): Convert to...
6473 (pascal_language_data): ...this.
6474 (class pascal_language): New class.
6475 (pascal_language_defn): New static global.
6476 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6477 language pointer, update comment format.
6478 * gdb/rust-lang.c (rust_language_defn): Convert to...
6479 (rust_language_data): ...this.
6480 (class rust_language): New class.
6481 (rust_language_defn): New static global.
6482
1313c56e
AB
64832020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6484
6485 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6486 member variable.
6487 <m_stmt_at_address>: New member variable.
6488 (lnp_state_machine::record_line): Don't record some lines, update
6489 tracking of is_stmt at the same address.
6490 (lnp_state_machine::lnp_state_machine): Initialise new member
6491 variables.
6492
b7ed9f3d
ST
64932020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6494
6495 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6496 "-include gnu-nat-mig.h".
6497 * gnu-nat-mig.h: New file.
6498 * gnu-nat.c: Include "gnu-nat-mig.h".
6499 (exc_server, msg_reply_server, notify_server,
6500 process_reply_server): Remove declarations.
6501
14a8ad62
ST
65022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6503
6504 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6505 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6506 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6507 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6508 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6509 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6510 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6511 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6512 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6513 to gnu_nat_target class.
6514 * gnu-nat.c: Likewise.
6515 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6516 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6517 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6518 object.
6519 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6520 instead of `gnu_target'.
6521
0af5e106
ST
65222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6523
6524 * i386-gnu-tdep.c: Include "gdbcore.h"
6525 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6526 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6527 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6528 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6529 i386_gnu_sigcontext_addr): New functions
6530 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6531 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6532 tdep.
6533
078f2fc9
ST
65342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6535
6536 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6537 before fork_inferior call. Avoid calling it if target_is_pushed returns
6538 true.
6539
53dff92c
ST
65402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6541
6542 * gnu-nat.h (gnu_target): New variable declaration.
6543 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6544 gnu_target.
6545 * gnu-nat.c (gnu_target): New variable.
6546 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6547 add_thread_silent, and add_thread calls.
6548 (gnu_nat_target::create_inferior): Pass gnu_target to
6549 add_thread_silent, thread_change_ptid call.
6550 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6551 call.
6552
5a8b8627
ST
65532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6554
6555 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6556 (gnu_nat_target::find_memory_regions): Remove unused
6557 `old_address' variable.
6558
366f550a
ST
65592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6560
6561 * gnu-nat.c: Include "gdbarch.h".
6562
f14871bf
ST
65632020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6564
6565 * reply_mig_hack.awk (Error return): Cast function through
6566 void *, to bypass compiler function call check.
6567
c6887cfb
ST
65682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6569
6570 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6571 $(srcdir)/reply_mig_hack.awk.
6572
6930bffe
ST
65732020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6574
6575 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6576
112c22ed
JG
65772020-05-30 Jonny Grant <jg@jguk.org>
6578
6579 * configure.ac (ACX_BUGURL): change bug URL to https.
6580
f68f85b5
PA
65812020-05-30 Pedro Alves <palves@redhat.com>
6582
6583 * cp-support.c (replace_typedefs_template): New.
6584 (replace_typedefs_qualified_name): Handle
6585 DEMANGLE_COMPONENT_TEMPLATE.
6586
976ca316
SM
65872020-05-29 Simon Marchi <simon.marchi@efficios.com>
6588
6589 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6590 dwarf2/index-cache.h, dwarf2/index-write.c,
6591 dwarf2/index-write.h, dwarf2/line-header.c,
6592 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6593 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6594 variables and fields from `dwarf2_per_objfile` to just
6595 `per_objfile` throughout.
6596
989ade05
SM
65972020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6598
6599 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6600 <push_dwarf_reg_entry_value>: Add comment.
6601
c47bae85
KB
66022020-05-28 Kevin Buettner <kevinb@redhat.com>
6603 Keith Seitz <keiths@redhat.com>
6604
6605 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6606 instead of PyEval_ReleaseLock.
6607 (class gdbpy_gil): Move to earlier in file.
6608 (finalize_python): Set gdb_python_initialized.
6609 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6610 when not initialized.
6611
44486dcf
SM
66122020-05-28 Simon Marchi <simon.marchi@efficios.com>
6613
6614 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6615 <push_dwarf_reg_entry_value>: Remove assert. Override
6616 per_objfile with caller_per_objfile.
6617
f030440d
TV
66182020-05-28 Tom de Vries <tdevries@suse.de>
6619
6620 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6621 PR gold/15646 workaround to symbol kind "type".
6622
f0fbb768
TT
66232020-05-27 Tom Tromey <tromey@adacore.com>
6624
6625 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6626
af0b2a3e
TT
66272020-05-27 Tom Tromey <tromey@adacore.com>
6628
6629 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6630 Use htab_find_with_hash.
6631 <add_abbrev>: Remove "abbrev_number" parameter.
6632 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6633 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6634 (hash_abbrev): Add comment.
6635 (abbrev_table::lookup_abbrev): Move to header file.
6636 (abbrev_table::read): Update.
6637
7d00ffec
TT
66382020-05-27 Tom Tromey <tromey@adacore.com>
6639
6640 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6641 method.
6642 <canonical_name>: New member.
6643 <raw_name>: Rename from "name".
6644 (partial_die_info): Initialize canonical_name.
6645 (scan_partial_symbols): Check raw_name.
6646 (partial_die_parent_scope, partial_die_full_name)
6647 (add_partial_symbol, add_partial_subprogram)
6648 (add_partial_enumeration, load_partial_dies): Use "name" method.
6649 (partial_die_info::name): New method.
6650 (partial_die_info::read, guess_partial_die_structure_name)
6651 (partial_die_info::fixup): Update.
6652
697bba18
TT
66532020-05-27 Tom Tromey <tromey@adacore.com>
6654
6655 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6656 <get_ref_die_offset>: Inline.
6657 <get_ref_die_offset_complaint>: New method.
6658 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6659 (attribute::get_ref_die_offset_complaint): Rename from
6660 get_ref_die_offset. Just issue complaint.
6661
c17ace43
HD
66622020-05-27 Hannes Domani <ssbssa@yahoo.de>
6663
6664 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6665
96445f0b
HD
66662020-05-27 Hannes Domani <ssbssa@yahoo.de>
6667
6668 * exec.c (exec_file_attach): Use errno value of first openp failure.
6669
ac637ec3
HD
66702020-05-27 Hannes Domani <ssbssa@yahoo.de>
6671
6672 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6673 Don't close thread handle.
6674
17ee85fc
TT
66752020-05-27 Tom Tromey <tom@tromey.com>
6676 Simon Marchi <simon.marchi@efficios.com>
6677
6678 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6679 shared_ptr.
6680 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6681 member.
6682 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6683 dwarf2_per_bfd_objfile_data_key>: New globals.
6684 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6685 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6686 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6687 shared.
6688 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6689 short-circuit when sharing.
6690 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6691 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6692
39b16f87
SM
66932020-05-27 Simon Marchi <simon.marchi@efficios.com>
6694
6695 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6696 to...
6697 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6698 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6699
fcf23d5b
SM
67002020-05-27 Simon Marchi <simon.marchi@efficios.com>
6701
6702 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6703 build_name_components, find_name_components_bounds>:
6704 Add per_objfile parameter.
6705 (struct mapped_index) <symbol_name_at>: Likewise.
6706 (struct mapped_debug_names): Remove constructor.
6707 <dwarf2_per_objfile>: Remove field.
6708 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6709 (mapped_index_base::find_name_components_bounds,
6710 mapped_index_base::build_name_components,
6711 dw2_expand_symtabs_matching_symbol): Likewise.
6712 (class mock_mapped_index) <symbol_name_at>: Likewise.
6713 (check_match): Likewise.
6714 (check_find_bounds_finds): Likewise.
6715 (test_mapped_index_find_name_component_bounds): Update.
6716 (CHECK_MATCH): Update.
6717 (dw2_expand_symtabs_matching): Update.
6718 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6719 per_objfile parameter.
6720 <find_vec_in_debug_names>: Likewise.
6721 <m_per_objfile>: New field.
6722 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6723 parameter.
6724 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6725 (dw2_debug_names_iterator::next): Update.
6726 (dw2_debug_names_lookup_symbol): Update.
6727 (dw2_debug_names_expand_symtabs_for_function): Update.
6728 (dw2_debug_names_map_matching_symbols): Update.
6729 (dw2_debug_names_expand_symtabs_matching): Update.
6730 (dwarf2_read_debug_names): Update.
6731
7188ed02
SM
67322020-05-27 Simon Marchi <simon.marchi@efficios.com>
6733
6734 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6735 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6736 move to dwarf2_per_objfile.
6737 <read_in_chain>: Remove.
6738 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6739 remove_all_cus, age_comp_units>: New methods.
6740 <m_dwarf2_cus>: New member.
6741 (struct dwarf2_per_cu_data) <cu>: Remove.
6742 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6743 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6744 moved to methods of dwarf2_per_objfile.
6745 (dwarf2_clear_marks): Remove.
6746 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6747 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6748 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6749 (dwarf2_per_objfile::remove_all_cus): New.
6750 (class free_cached_comp_units) <~free_cached_comp_units>:
6751 Update.
6752 (load_cu): Update.
6753 (dw2_do_instantiate_symtab): Adjust.
6754 (fill_in_sig_entry_from_dwo_entry): Adjust.
6755 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6756 (cutu_reader::cutu_reader): Likewise.
6757 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6758 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6759 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6760 and dwarf2_per_objfile::age_comp_units.
6761 (load_partial_comp_unit): Update.
6762 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6763 (process_queue): Likewise.
6764 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6765 backlink.
6766 (dwarf2_read_addr_index): Likewise.
6767 (follow_die_offset): Likewise.
6768 (dwarf2_fetch_die_loc_sect_off): Likewise.
6769 (dwarf2_fetch_constant_bytes): Likewise.
6770 (dwarf2_fetch_die_type_sect_off): Likewise.
6771 (follow_die_sig_1): Likewise.
6772 (load_full_type_unit): Likewise.
6773 (read_signatured_type): Likewise.
6774 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6775 (dwarf2_cu::~dwarf2_cu): Remove.
6776 (dwarf2_per_objfile::get_cu): New.
6777 (dwarf2_per_objfile::set_cu): New.
6778 (age_cached_comp_units): Rename to...
6779 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6780 to std::unordered_map.
6781 (free_one_cached_comp_unit): Rename to...
6782 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6783 to std::unordered_map.
6784 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6785 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6786 a dwarf2_per_objfile in data.
6787 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6788 (dwarf2_clear_marks): Remove.
6789
2e671100
SM
67902020-05-27 Simon Marchi <simon.marchi@efficios.com>
6791
6792 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6793 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6794 (init_tu_and_read_dwo_dies): Likewise.
6795 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6796 (cutu_reader::cutu_reader): Likewise.
6797 (load_partial_comp_unit): Likewise.
6798 (process_psymtab_comp_unit): Update.
6799 (build_type_psymtabs_1): Update.
6800 (process_skeletonless_type_unit): Update.
6801 (load_full_comp_unit): Update.
6802 (find_partial_die): Update.
6803 (dwarf2_read_addr_index): Update.
6804 (read_signatured_type): Update.
6805
2e6a9f79
SM
68062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6807
6808 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6809 m_header_read_in>: New fields.
6810 <get_header>: New method.
6811 * dwarf2/read.c (per_cu_header_read_in): Remove.
6812 (dwarf2_per_cu_data::get_header): New.
6813 (dwarf2_per_cu_data::addr_size): Update.
6814 (dwarf2_per_cu_data::offset_size): Update.
6815 (dwarf2_per_cu_data::ref_addr_size): Update.
6816
1b555f17
SM
68172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6818
6819 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6820 (dw2_do_instantiate_symtab): Update.
6821 (queue_and_load_all_dwo_tus): Change parameter from
6822 dwarf2_per_cu_data to dwarf2_cu.
6823 (dwarf2_fetch_die_loc_sect_off): Update.
6824 (dwarf2_fetch_constant_bytes): Update.
6825 (dwarf2_fetch_die_type_sect_off): Update.
6826
8fc0b21d
SM
68272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6828
6829 * dwarf2/read.c (process_full_comp_unit,
6830 process_full_type_unit): Remove per_cu, per_objfile paramters.
6831 Add dwarf2_cu parameter.
6832 (process_queue): Update.
6833
168c9250
SM
68342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6835
6836 * dwarf2/read.c (create_cu_from_index_list): Replace
6837 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6838 (create_cus_from_index_list): Likewise.
6839 (create_cus_from_index): Likewise.
6840 (create_signatured_type_table_from_index): Likewise.
6841 (create_cus_from_debug_names_list): Likewise.
6842 (create_cus_from_debug_names): Likewise.
6843 (dwarf2_read_gdb_index): Update.
6844 (dwarf2_read_debug_names): Update.
6845
e286671b
TT
68462020-05-27 Tom Tromey <tom@tromey.com>
6847 Simon Marchi <simon.marchi@efficios.com>
6848
6849 * dwarf2/read.h (struct dwarf2_per_objfile)
6850 <get_type_for_signatured_type, set_type_for_signatured_type>:
6851 New methods.
6852 <m_type_map>: New member.
6853 (struct signatured_type) <type>: Remove.
6854 * dwarf2/read.c
6855 (dwarf2_per_objfile::get_type_for_signatured_type,
6856 dwarf2_per_objfile::set_type_for_signatured_type): New.
6857 (get_signatured_type): Use new methods.
6858
8adb8487
TT
68592020-05-27 Tom Tromey <tom@tromey.com>
6860 Simon Marchi <simon.marchi@efficios.com>
6861
6862 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6863 (struct dwarf2_per_objfile) <type_units>: New member.
6864 <get_type_unit_group_unshareable>: New method.
6865 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6866 num_symtabs, symtabs>: Remove; move to
6867 type_unit_group_unshareable.
6868 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6869 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6870 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6871
127bbf4b
SM
68722020-05-27 Simon Marchi <simon.marchi@efficios.com>
6873
6874 * dwarf2/read.h (struct dwarf2_per_cu_data):
6875 <dwarf2_per_objfile>: Remove.
6876 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6877 dwarf2_per_objfile.
6878 (create_signatured_type_table_from_index): Likewise.
6879 (create_signatured_type_table_from_debug_names): Likewise.
6880 (create_debug_type_hash_table): Likewise.
6881 (fill_in_sig_entry_from_dwo_entry): Likewise.
6882 (create_type_unit_group): Likewise.
6883 (read_comp_units_from_section): Likewise.
6884 (create_cus_hash_table): Likewise.
6885
f6e649dd
SM
68862020-05-27 Simon Marchi <simon.marchi@efficios.com>
6887
6888 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6889 dwarf2_per_cu_data::dwarf2_per_objfile.
6890 (compute_compunit_symtab_includes): Likewise.
6891 (dwarf2_cu::start_symtab): Likewise.
6892
aa66c379
SM
68932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6894
6895 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6896 parameter.
6897 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6898 (read_namespace_alias): Update.
6899 (lookup_die_type): Update.
6900 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6901 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6902 Update.
6903 (disassemble_dwarf_expression): Update.
6904
120ce1b5
SM
69052020-05-27 Simon Marchi <simon.marchi@efficios.com>
6906
6907 * dwarf2/read.h (struct dwarf2_queue_item): Add
6908 dwarf2_per_objfile parameter, assign new parameter.
6909 <per_objfile>: New field.
6910 * dwarf2/read.c (free_one_cached_comp_unit): Add
6911 dwarf2_per_objfile parameter.
6912 (queue_comp_unit): Likewise.
6913 (dw2_do_instantiate_symtab): Update.
6914 (process_psymtab_comp_unit): Update.
6915 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6916 (process_imported_unit_die): Update.
6917 (queue_and_load_dwo_tu): Update.
6918 (follow_die_offset): Update.
6919 (follow_die_sig_1): Update.
6920
9f47c707
SM
69212020-05-27 Simon Marchi <simon.marchi@efficios.com>
6922
6923 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6924 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6925 (read_call_site_scope): Assign per_objfile.
6926 (dwarf2_per_cu_data::objfile): Remove.
6927 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6928 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6929 dwarf2_per_objfile parameter.
6930 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6931 dwarf2_per_objfile parameter.
6932 (dwarf_expr_reg_to_entry_parameter): Add output
6933 dwarf2_per_objfile parameter.
6934 (locexpr_get_frame_base): Update.
6935 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6936 <push_dwarf_reg_entry_value>: Update.
6937 <call_site_to_target_addr>: Update.
6938 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6939 parameter.
6940 (value_of_dwarf_reg_entry): Update.
6941 (rw_pieced_value): Update.
6942 (indirect_synthetic_pointer): Update.
6943 (dwarf2_evaluate_property): Update.
6944 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6945 parameter.
6946 (locexpr_read_variable): Update.
6947 (locexpr_get_symbol_read_needs): Update.
6948 (loclist_read_variable): Update.
6949
14095eb3
SM
69502020-05-27 Simon Marchi <simon.marchi@efficios.com>
6951
6952 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6953 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6954 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6955 parameter.
6956 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6957 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6958 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6959 parameter.
6960 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6961 sect_variable_value): Add dwarf2_per_objfile parameter.
6962 (class dwarf_evaluate_loc_desc) <dwarf_call,
6963 dwarf_variable_value>: Update.
6964 (fetch_const_value_from_synthetic_pointer): Add
6965 dwarf2_per_objfile parameter.
6966 (fetch_const_value_from_synthetic_pointer): Update.
6967 (coerced_pieced_ref): Update.
6968 (class symbol_needs_eval_context) <dwarf_call,
6969 dwarf_variable_value>: Update.
6970 (dwarf2_compile_expr_to_ax): Update.
6971
3c3cd3d4
SM
69722020-05-27 Simon Marchi <simon.marchi@efficios.com>
6973
6974 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6975 parameter.
6976 (dwarf2_evaluate_loc_desc_full): Update.
6977
82ca3f51
SM
69782020-05-27 Simon Marchi <simon.marchi@efficios.com>
6979
6980 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6981 parameter.
6982 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6983 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6984 dwarf2_per_objfile parameter.
6985 (decode_debug_loc_dwo_addresses): Likewise.
6986 (dwarf2_find_location_expression): Update.
6987 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6988 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6989 parameter.
6990 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6991 parameter.
6992 (locexpr_describe_location_1): Likewise.
6993 (locexpr_describe_location): Update.
6994
4b167ea1
SM
69952020-05-27 Simon Marchi <simon.marchi@efficios.com>
6996
6997 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6998 Remove.
6999 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7000 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7001 (dwarf2_compile_property_to_c): Update.
7002 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7003 use text offset from objfile.
7004 (locexpr_tracepoint_var_ref): Update.
7005 (locexpr_generate_c_location): Update.
7006 (loclist_describe_location): Update.
7007 (loclist_tracepoint_var_ref): Update.
7008 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7009 dwarf2_per_objfile parameter.
7010 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7011 use text offset from objfile.
7012 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7013
89b07335
SM
70142020-05-27 Simon Marchi <simon.marchi@efficios.com>
7015
7016 * dwarf2/expr.h (struct dwarf_expr_context)
7017 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7018 <offset>: Remove.
7019 <per_objfile>: New member.
7020 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7021 dwarf2_per_objfile parameter. Don't set offset, set
7022 per_objfile.
7023 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7024 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7025 a dwarf2_per_objfile object instead of an offset.
7026 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7027 constructor.
7028 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7029 to dwarf2_expr_executor constructor. Don't set offset.
7030 (dwarf2_fetch_cfa_info): Update.
7031 (struct dwarf2_frame_cache) <text_offset>: Remove.
7032 <per_objfile>: New field.
7033 (dwarf2_frame_cache): Update.
7034 (dwarf2_frame_prev_register): Update.
7035 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7036 <dwarf_evaluate_loc_desc>: Add constructor.
7037 (dwarf2_evaluate_loc_desc_full): Update.
7038 (dwarf2_locexpr_baton_eval): Update.
7039 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7040 Add constructor.
7041 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7042
293e7e51
SM
70432020-05-27 Simon Marchi <simon.marchi@efficios.com>
7044
7045 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7046 addr_sized_int_type>: Move to dwarf2_cu.
7047 <int_type>: Move to dwarf2_per_objfile.
7048 (struct dwarf2_per_objfile) <int_type>: Move here.
7049 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7050 addr_sized_int_type>: Move here.
7051 (read_func_scope): Update.
7052 (read_array_type): Update.
7053 (read_tag_string_type): Update.
7054 (attr_to_dynamic_prop): Update.
7055 (dwarf2_per_cu_data::int_type): Rename to...
7056 (dwarf2_per_objfile::int_type): ... this.
7057 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7058 (dwarf2_cu::addr_sized_int_type): ... this.
7059 (read_subrange_type): Update.
7060 (dwarf2_per_cu_data::addr_type): Rename to...
7061 (dwarf2_cu::addr_type): ... this.
7062 (set_die_type): Update.
7063
64874a40
SM
70642020-05-27 Simon Marchi <simon.marchi@efficios.com>
7065
7066 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7067 data through per_cu->cu.
7068
4ab09049
SM
70692020-05-27 Simon Marchi <simon.marchi@efficios.com>
7070
7071 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7072 dwarf2_per_cu_data parameter fo dwarf2_cu.
7073 (lookup_dwo_type_unit): Likewise.
7074 (read_cutu_die_from_dwo): Likewise.
7075 (lookup_dwo_unit): Likewise.
7076 (open_and_init_dwo_file): Likewise.
7077 (lookup_dwo_cutu): Likewise.
7078 (lookup_dwo_comp_unit): Likewise.
7079 (lookup_dwo_type_unit): Likewise.
7080 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7081 (cutu_reader::cutu_reader): Update.
7082
47b14e86
SM
70832020-05-27 Simon Marchi <simon.marchi@efficios.com>
7084
7085 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7086 parameter.
7087 (process_full_type_unit): Likewise.
7088 (process_queue): Update.
7089
43182c09
SM
70902020-05-27 Simon Marchi <simon.marchi@efficios.com>
7091
7092 * dwarf2/read.c (recursively_compute_inclusions): Add
7093 dwarf2_per_objfile parameter.
7094 (compute_compunit_symtab_includes): Likewise.
7095 (process_cu_includes): Update.
7096
7aa104c4
SM
70972020-05-27 Simon Marchi <simon.marchi@efficios.com>
7098
7099 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7100 parameter.
7101 (create_type_unit_group): Update.
7102 (process_psymtab_comp_unit_reader): Update.
7103 (build_type_psymtabs_reader): Update.
7104
e3beb21d
SM
71052020-05-27 Simon Marchi <simon.marchi@efficios.com>
7106
7107 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7108 object through m_this_cu->cu.
7109
d460f660
SM
71102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7111
7112 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7113 the info parameter.
7114 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7115
ab432490
SM
71162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7117
7118 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7119 per_objfile parameter.
7120 (load_full_type_unit): Add per_objfile parameter.
7121 (read_signatured_type): Likewise.
7122 (load_full_comp_unit): Likewise.
7123 (load_cu): Likewise.
7124 (dw2_do_instantiate_symtab): Likewise.
7125 (dw2_get_file_names): Likewise.
7126 (dw2_map_symtabs_matching_filename): Update.
7127 (dw_expand_symtabs_matching_file_matcher): Update.
7128 (dw2_map_symbol_filenames): Update.
7129 (process_psymtab_comp_unit): Add per_objfile parameter.
7130 (build_type_psymtabs_1): Update.
7131 (process_skeletonless_type_unit): Update.
7132 (dwarf2_build_psymtabs_hard): Update.
7133 (load_partial_comp_unit): Add per_objfile parameter.
7134 (scan_partial_symbols): Update.
7135 (load_full_comp_unit): Add per_objfile parameter.
7136 (process_imported_unit_die): Update.
7137 (create_cus_hash_table): Update.
7138 (find_partial_die): Update.
7139 (dwarf2_read_addr_index): Update.
7140 (follow_die_offset): Update.
7141 (dwarf2_fetch_die_loc_sect_off): Update.
7142 (dwarf2_fetch_constant_bytes): Update.
7143 (dwarf2_fetch_die_type_sect_off): Update.
7144 (follow_die_sig_1): Update.
7145 (load_full_type_unit): Add per_objfile parameter.
7146 (read_signatured_type): Likewise.
7147
313bad1b
SM
71482020-05-27 Simon Marchi <simon.marchi@efficios.com>
7149
7150 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7151 of objfile_name.
7152
c3699833
SM
71532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7154
7155 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7156 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7157 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7158 field.
7159 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7160 (create_cus_from_index): Update.
7161 (dwarf2_read_gdb_index): Update.
7162 (create_cus_from_debug_names): Update.
7163 (dwarf2_read_debug_names): Update.
7164 (get_abbrev_section_for_cu): Update.
7165 (create_all_comp_units): Update.
7166 (read_attribute_value): Update.
7167 (get_debug_line_section): Update.
7168 * dwarf2/index-cache.c (index_cache::store): Update.
7169 * dwarf2/index-write.c (save_gdb_index_command): Update.
7170 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7171
1859c670
SM
71722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7173
7174 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7175 member.
7176 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7177 dwarf2_per_cu_data::per_bfd.
7178 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7179 (create_type_unit_group): Likewise.
7180 (queue_comp_unit): Remove reference to
7181 per_cu->dwarf2_per_objfile.
7182 (maybe_queue_comp_unit): Likewise.
7183 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7184 (create_cus_hash_table): Assign new field.
7185
5e22e966
SM
71862020-05-27 Simon Marchi <simon.marchi@efficios.com>
7187
7188 * dwarf2/read.c: Replace
7189 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7190 dwarf2_cu->per_objfile throughout.
7191
97a1449a
SM
71922020-05-27 Simon Marchi <simon.marchi@efficios.com>
7193
7194 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7195 parameter, don't use per_cu->dwarf2_per_objfile.
7196 (dw2_instantiate_symtab): Likewise.
7197 (dw2_find_last_source_symtab): Update.
7198 (dw2_map_expand_apply): Update.
7199 (dw2_lookup_symbol): Update.
7200 (dw2_expand_symtabs_for_function): Update.
7201 (dw2_expand_all_symtabs): Update.
7202 (dw2_expand_symtabs_with_fullname): Update.
7203 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7204 don't use per_cu->dwarf2_per_objfile.
7205 (dw2_expand_marked_cus): Update.
7206 (dw2_find_pc_sect_compunit_symtab): Update.
7207 (dw2_debug_names_lookup_symbol): Update.
7208 (dw2_debug_names_expand_symtabs_for_function): Update.
7209 (dw2_debug_names_map_matching_symbols): Update.
7210 (dwarf2_psymtab::expand_psymtab): Update.
7211
9e021579
SM
72122020-05-27 Simon Marchi <simon.marchi@efficios.com>
7213
7214 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7215 <per_objfile>: New member.
7216 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7217 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7218 call to dwarf2_cu.
7219 (cutu_reader::cutu_reader): Update.
7220 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7221
ae090bdb
SM
72222020-05-27 Simon Marchi <simon.marchi@efficios.com>
7223
7224 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7225 struct dwarf2_per_objfile.
7226 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7227 dwarf2_per_bfd.
7228 * dwarf2/read.c (set_die_type): Update.
7229 (get_die_type_at_offset): Update.
7230
af758d11
SM
72312020-05-27 Tom Tromey <tom@tromey.com>
7232 Simon Marchi <simon.marchi@efficios.com>
7233
7234 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7235 method.
7236 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7237 get_symtab, set_symtab>: New methods.
7238 <m_symtabs>: New field.
7239 (struct dwarf2_psymtab): Derive from partial_symtab.
7240 <readin_p, get_compunit_symtab>: Declare methods.
7241 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7242 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7243 New methods.
7244 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7245 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7246 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7247 (dw2_symtab_iter_next, dw2_print_stats)
7248 (dw2_expand_symtabs_with_fullname)
7249 (dw2_expand_symtabs_matching_one)
7250 (dw_expand_symtabs_matching_file_matcher)
7251 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7252 (dw2_debug_names_iterator::next)
7253 (dw2_debug_names_map_matching_symbols)
7254 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7255 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7256 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7257 New methods.
7258 (get_compunit_symtab, process_full_comp_unit)
7259 (process_full_type_unit): Update.
7260 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7261
5989a64e
SM
72622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7263
7264 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7265 then introduce a new dwarf2_per_objfile type.
7266 <read_line_string>: Move to the new dwarf2_per_objfile type.
7267 <objfile>: Likewise.
7268 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7269 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7270 dwarf2_per_objfile->per_bfd.
7271 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7272 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7273 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7274 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7275 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7276 (dwarf2_per_objfile::locate_sections): Rename to...
7277 (dwarf2_per_bfd::locate_sections): ... this.
7278 (dwarf2_per_objfile::get_cutu): Rename to...
7279 (dwarf2_per_bfd::get_cutu): ... this.
7280 (dwarf2_per_objfile::get_cu): Rename to...
7281 (dwarf2_per_bfd::get_cu): ... this.
7282 (dwarf2_per_objfile::get_tu): Rename to...
7283 (dwarf2_per_bfd::get_tu): ... this.
7284 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7285 (dwarf2_per_bfd::allocate_per_cu): ... this.
7286 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7287 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7288 (get_gdb_index_contents_ftype): Change parameter from
7289 dwarf2_per_objfile to dwarf2_per_bfd.
7290 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7291 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7292
a50264ba
TT
72932020-05-27 Tom Tromey <tom@tromey.com>
7294 Simon Marchi <simon.marchi@efficios.com>
7295
7296 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7297 (allocate_piece_closure): Set "per_objfile" member.
7298 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7299 (locexpr_describe_location, loclist_describe_location): Use new
7300 member.
7301 * dwarf2/read.c (read_call_site_scope)
7302 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7303 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7304 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7305 handle_data_member_location): Set per_objfile member.
7306 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7307 member.
7308 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7309
d3473f0c
TT
73102020-05-27 Tom Tromey <tom@tromey.com>
7311
7312 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7313 allocate_signatured_type>: Declare new methods.
7314 <m_num_psymtabs>: New member.
7315 (struct dwarf2_per_cu_data) <index>: New member.
7316 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7317 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7318 (create_cu_from_index_list): Use allocate_per_cu.
7319 (create_signatured_type_table_from_index)
7320 (create_signatured_type_table_from_debug_names)
7321 (create_debug_type_hash_table, add_type_unit)
7322 (read_comp_units_from_section): Use allocate_signatured_type.
7323
5717c425
TT
73242020-05-27 Tom Tromey <tom@tromey.com>
7325
7326 * psymtab.c (partial_map_expand_apply)
7327 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7328 (psym_lookup_global_symbol_language)
7329 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7330 (psym_print_stats, psym_expand_symtabs_for_function)
7331 (psym_map_symbol_filenames, psym_map_matching_symbols)
7332 (psym_expand_symtabs_matching)
7333 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7334 (maintenance_check_psymtabs): Update.
7335 * psympriv.h (struct partial_symtab) <readin_p,
7336 get_compunit_symtab>: Add objfile parameter.
7337 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7338 Likewise.
7339 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7340 get_compunit_symtab>: Likewise.
7341 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7342
45940949
TT
73432020-05-27 Tom Tromey <tom@tromey.com>
7344
7345 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7346 member.
7347 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7348 (create_cu_from_index_list)
7349 (create_signatured_type_table_from_index)
7350 (create_signatured_type_table_from_debug_names)
7351 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7352 (dwarf2_create_include_psymtab)
7353 (create_debug_type_hash_table, add_type_unit)
7354 (create_type_unit_group, read_comp_units_from_section)
7355 (dwarf2_compute_name, create_cus_hash_table)
7356 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7357 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7358 obstack.
7359 (dw2_get_real_path): Likewise. Change argument to
7360 dwarf2_per_objfile.
7361
f8c6d152
LM
73622020-05-27 Luis Machado <luis.machado@linaro.org>
7363
7364 PR tdep/26000
7365 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7366 for ldrd (immediate).
7367
e98d2e6d
PW
73682020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7369
7370 * command.h: Add comment giving the name of class_tui.
7371 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7372 create the fake command for the help for class_tui.
7373
53a47a3e
TT
73742020-05-26 Tom Tromey <tromey@adacore.com>
7375
7376 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7377 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7378 (val_atr): New function.
7379 (value_val_atr): Use it.
7380 * ada-valprint.c (print_optional_low_bound): Change low bound
7381 handling for enums.
7382 (val_print_packed_array_elements): Don't call discrete_position.
7383 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7384 discrete_position for enum types.
7385 * language.c (default_print_array_index): Change type.
7386 * language.h (struct language_defn) <la_print_array_index>: Add
7387 index_type parameter, change type of index_value.
7388 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7389 (default_print_array_index): Update.
7390 * valprint.c (maybe_print_array_index): Don't call
7391 value_from_longest. Update.
7392 (value_print_array_elements): Don't call discrete_position.
7393
0bc2354b
TT
73942020-05-26 Tom Tromey <tromey@adacore.com>
7395
7396 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7397 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7398
1218a4bf
CDA
73992020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7400
7401 PR gdb/13519
7402 * avr-tdep.c (avr_integer_to_address): Return data or code
7403 address accordingly to the second 'type' argument of the
7404 function.
7405
92651b1d
MW
74062020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7407
7408 * infcmd.c, inferior.h: (construct_inferior_arguments):
7409 Moved function from here to gdbsupport/common-inferior.{h,cc}
7410
0a4f5f8c
TT
74112020-05-23 Tom Tromey <tom@tromey.com>
7412
7413 Revert commit eca1f90c:
7414 * NEWS: Remove entry for completion styling.
7415 * completer.c (_rl_completion_prefix_display_length): Move
7416 declaration later.
7417 (gdb_fnprint): Revert.
7418 (gdb_display_match_list_1): Likewise.
7419 * cli/cli-style.c (completion_prefix_style)
7420 (completion_difference_style, completion_suffix_style): Remove.
7421 (_initialize_cli_style): Revert.
7422 * cli/cli-style.h (completion_prefix_style)
7423 (completion_difference_style, completion_suffix_style): Don't
7424 declare.
7425
e08bd6c5
PA
74262020-05-24 Pedro Alves <palves@redhat.com>
7427
7428 * symtab.c (completion_list_add_name): Return boolean indication
7429 of whether the symbol matched.
7430 (completion_list_add_symbol): Don't try to remove C++ aliases if
7431 the symbol didn't match in the first place.
7432 * symtab.h (completion_list_add_name): Return bool.
7433
ceacbf6e
SM
74342020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7435
7436 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7437 type::field.
7438
26f16254
JB
74392020-05-23 Joel Brobecker <brobecker@adacore.com>
7440
7441 GDB 9.2 released.
7442
eca1f90c
TT
74432020-05-23 Tom Tromey <tom@tromey.com>
7444
7445 * NEWS: Add entry for completion styling.
7446 * completer.c (_rl_completion_prefix_display_length): Move
7447 declaration earlier.
7448 (gdb_fnprint): Use completion_style.
7449 (gdb_display_match_list_1): Likewise.
7450 * cli/cli-style.c (completion_prefix_style)
7451 (completion_difference_style, completion_suffix_style): New
7452 globals.
7453 (_initialize_cli_style): Register new globals.
7454 * cli/cli-style.h (completion_prefix_style)
7455 (completion_difference_style, completion_suffix_style): Declare.
7456
51e2cfa2
PA
74572020-05-23 Pedro Alves <palves@redhat.com>
7458
7459 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7460 (parse_escape): Use ISDIGIT instead of isdigit.
7461 (puts_debug): Use gdb_isprint instead of isprint.
7462 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7463 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7464 ISSPACE instead of isspace.
7465 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7466 instead of isspace.
7467 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7468 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7469 instead of isxdigit and ISDIGIT instead of isdigit.
7470
80fc5e77
SM
74712020-05-22 Simon Marchi <simon.marchi@efficios.com>
7472
7473 * gdbtypes.h (struct type) <field>: New method.
7474 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7475 or type::field.
7476
3cabb6b0
SM
74772020-05-22 Simon Marchi <simon.marchi@efficios.com>
7478
7479 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7480 (TYPE_FIELDS): Use type::fields. Change all call sites that
7481 modify the propery to use type::set_fields instead.
7482
1f704f76
SM
74832020-05-22 Simon Marchi <simon.marchi@efficios.com>
7484
7485 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7486 type::num_fields instead.
7487
5e33d5f4
SM
74882020-05-22 Simon Marchi <simon.marchi@efficios.com>
7489
7490 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7491 methods.
7492 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7493 that modify the number of fields to use type::set_num_fields
7494 instead.
7495
9392ebb3
TT
74962020-05-22 Tom Tromey <tromey@adacore.com>
7497
7498 * compile/compile-object-load.h (munmap_list_free): Don't
7499 declare.
7500
7c13f4e8
AB
75012020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7502
7503 * annotate.c (annotate_source_line): Update return type, add call
7504 to update current symtab and line.
7505 * annotate.h (annotate_source_line): Update return type, and
7506 extend header comment.
7507 * source.c (info_line_command): Check annotation_level before
7508 calling annotate_source_line.
7509 * stack.c (print_frame_info): If calling annotate_source_line
7510 returns true, then don't print any other source line information.
7511
aa370940
SM
75122020-05-21 Simon Marchi <simon.marchi@efficios.com>
7513
7514 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7515
84d53fa9
SM
75162020-05-21 Simon Marchi <simon.marchi@efficios.com>
7517
7518 * coffread.c (patch_type): Remove NULL check before xfree.
7519 * corefile.c (set_gnutarget): Likewise.
7520 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7521 * exec.c (build_section_table): Likewise.
7522 * remote.c (remote_target::pass_signals): Likewise.
7523 * utils.c (n_spaces): Likewise.
7524 * cli/cli-script.c (document_command): Likewise.
7525 * i386-windows-tdep.c (core_process_module_section): Likewise.
7526 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7527
9d428aae
SM
75282020-05-20 Simon Marchi <simon.marchi@efficios.com>
7529
7530 * symfile.c (reread_symbols): Clear objfile's section_offsets
7531 vector and section indices, re-compute them by calling
7532 sym_offsets.
7533
250106a7
TT
75342020-05-20 Tom Tromey <tromey@adacore.com>
7535
7536 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7537 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7538
9a0bacfb
TV
75392020-05-20 Tom de Vries <tdevries@suse.de>
7540
7541 PR symtab/25833
7542 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7543
7b958a48
AM
75442020-05-20 Alan Modra <amodra@gmail.com>
7545
7546 PR 25993
7547 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7548 bfd_set_filename.
7549 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7550 passed to bfd_set_filename.
7551 * symfile-mem.c (add_vsyscall_page): Likewise for string
7552 passed to symbol_file_add_from_memory.
7553 (symbol_file_add_from_memory): Make name param a const char* and
7554 don't strdup.
7555
c7e97679
AM
75562020-05-20 Alan Modra <amodra@gmail.com>
7557
7558 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7559 rather than accessing bfd->filename directly.
7560 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7561 and use bfd_section_name.
7562 * dwarf2/frame.c (decode_frame_entry): Likewise.
7563 * exec.c (exec_set_section_address): Likewise.
7564 * solib-aix.c (solib_aix_bfd_open): Likewise.
7565 * stap-probe.c (get_stap_base_address): Likewise.
7566 * symfile.c (reread_symbols): Likewise.
7567
563c591b
TT
75682020-05-19 Tom Tromey <tromey@adacore.com>
7569
7570 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7571
f408d82c
SM
75722020-05-19 Simon Marchi <simon.marchi@efficios.com>
7573
7574 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7575
98c59b52
PA
75762020-05-19 Pedro Alves <palves@redhat.com>
7577
7578 * NEWS (set exec-file-mismatch): Adjust entry.
7579 * exec.c: Include "build-id.h".
7580 (validate_exec_file): Try to match build IDs instead of filenames.
7581 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7582 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7583 and pass down 'warn_if_slow'.
7584 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7585 gdb_bfd_open_closure to pass it down.
7586 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7587
4111f652
PA
75882020-05-19 Pedro Alves <palves@redhat.com>
7589
7590 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7591 * target.c (target_fileio_open_1): Rename to target_fileio_open
7592 and make extern. Use bool.
7593 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7594 (target_fileio_read_alloc_1): Adjust.
7595 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7596 (target_fileio_open_warn_if_slow): Delete declaration.
7597
ad80db5b
PA
75982020-05-19 Pedro Alves <palves@redhat.com>
7599
7600 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7601 Adjust all callers.
7602
1d6ce4d3
YS
76032020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7604
7605 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7606 whether disp is negative.
7607
9005fbbb
SM
76082020-05-19 Simon Marchi <simon.marchi@efficios.com>
7609
7610 * symfile.h (struct symfile_segment_data)
7611 <~symfile_segment_data>: Remove.
7612 <segment_info>: Change to std::vector.
7613 * symfile.c (default_symfile_segments): Update.
7614 * elfread.c (elf_symfile_segments): Update.
7615
68b888ff
SM
76162020-05-19 Simon Marchi <simon.marchi@efficios.com>
7617
7618 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7619 <segments>: New.
7620 <segment_bases, segment_sizes>: Remove.
7621 * symfile.c (default_symfile_segments): Update.
7622 * elfread.c (elf_symfile_segments): Update.
7623 * remote.c (remote_target::get_offsets): Update.
7624 * solib-target.c (solib_target_relocate_section_addresses):
7625 Update.
7626
62982abd
SM
76272020-05-19 Simon Marchi <simon.marchi@efficios.com>
7628
7629 * symfile.h (struct symfile_segment_data): Initialize fields.
7630 <~symfile_segment_data>: Add.
7631 (symfile_segment_data_up): New.
7632 (struct sym_fns) <sym_segments>: Return a
7633 symfile_segment_data_up.
7634 (default_symfile_segments): Return a symfile_segment_data_up.
7635 (free_symfile_segment_data): Remove.
7636 (get_symfile_segment_data): Return a symfile_segment_data_up.
7637 * symfile.c (default_symfile_segments): Likewise.
7638 (get_symfile_segment_data): Likewise.
7639 (free_symfile_segment_data): Remove.
7640 (symfile_find_segment_sections): Update.
7641 * elfread.c (elf_symfile_segments): Return a
7642 symfile_segment_data_up.
7643 * remote.c (remote_target::get_offsets): Update.
7644 * solib-target.c (solib_target_relocate_section_addresses):
7645 Update.
7646 * symfile-debug.c (debug_sym_segments): Return a
7647 symfile_segment_data_up.
7648
7f204339
RO
76492020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7650
e52a0f1b
RO
7651 PR build/25981
7652 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7653 Hardcode register numbers.
7654
7f204339
RO
7655 PR build/25981
7656 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7657 procfs_find_LDT_entry): Remove.
7658 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7659 procfs_find_LDT_entry): Remove.
7660 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7661 Remove.
7662
7f32a4d5
PA
76632020-05-17 Pedro Alves <palves@redhat.com>
7664 Andrew Burgess <andrew.burgess@embecosm.com>
7665 Keno Fischer <keno@juliacomputing.com>
7666
7667 PR gdb/25741
7668 * breakpoint.c (build_target_condition_list): Update comments.
7669 (build_target_command_list): Update comments and skip matching
7670 locations.
7671 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7672 a separate function. Simplify "set breakpoint auto-hw off"
7673 handling.
7674 (insert_breakpoints): Update comment.
7675 (tracepoint_locations_match): New parameter. For breakpoints,
7676 compare location types too, if the caller wants to.
7677 (handle_automatic_hardware_breakpoints): New functions.
7678 (bp_location_is_less_than): Also sort by location type and
7679 hardware breakpoint length.
7680 (update_global_location_list): Handle "set breakpoint auto-hw on"
7681 here.
7682 (update_breakpoint_locations): Ask breakpoint_locations_match to
7683 ignore location types.
7684
7d93a1e0
SM
76852020-05-16 Simon Marchi <simon.marchi@efficios.com>
7686
7687 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7688 type::name instead.
7689
d0e39ea2
SM
76902020-05-16 Simon Marchi <simon.marchi@efficios.com>
7691
7692 * gdbtypes.h (struct type) <name, set_name>: New methods.
7693 (TYPE_CODE): Use type::name. Change all call sites used to set
7694 the name to use type::set_name instead.
7695
2dab0c7b
TT
76962020-05-16 Tom Tromey <tom@tromey.com>
7697
7698 * top.c (quit_force): Update.
7699 * infrun.c (handle_no_resumed): Update.
7700 * top.h (all_uis): New function.
7701 (ALL_UIS): Remove.
7702
59f7bd8d
SM
77032020-05-16 Simon Marchi <simon.marchi@efficios.com>
7704
7705 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7706
9bf058f0
PA
77072020-05-16 Pedro Alves <palves@redhat.com>
7708
7709 * ia64-linux-nat.c
7710 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7711 Declare method.
7712 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7713
8f86ae1a
SM
77142020-05-15 Simon Marchi <simon.marchi@efficios.com>
7715
7716 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7717 (sparc64_adi_info): Likewise.
7718
d6bc0792
TT
77192020-05-15 Tom Tromey <tom@tromey.com>
7720
7721 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7722 block_objfile.
7723 (lookup_objfile_from_block): Remove.
7724 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7725 (lookup_global_symbol): Use block_objfile.
7726 * symtab.h (lookup_objfile_from_block): Don't declare.
7727 * printcmd.c (clear_dangling_display_expressions): Use
7728 block_objfile.
7729 * parse.c (operator_check_standard): Use block_objfile.
7730
8c14c3a3
TT
77312020-05-15 Tom Tromey <tom@tromey.com>
7732
7733 * language.c (language_alloc_type_symbol): Set
7734 SYMBOL_SECTION.
7735 * symtab.c (initialize_objfile_symbol): Remove.
7736 (allocate_symbol): Remove.
7737 (allocate_template_symbol): Remove.
7738 * dwarf2/read.c (fixup_go_packaging): Use "new".
7739 (new_symbol): Use "new".
7740 (read_variable): Don't call initialize_objfile_symbol. Use
7741 "new".
7742 (read_func_scope): Use "new".
7743 * xcoffread.c (process_xcoff_symbol): Don't call
7744 initialize_objfile_symbol.
7745 (SYMBOL_DUP): Remove.
7746 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7747 "new".
7748 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7749 (allocate_template_symbol): Don't declare.
7750 (struct symbol): Add copy constructor. Change defaults.
7751 * jit.c (finalize_symtab): Use "new".
7752 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7753 Use "new".
7754 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7755 (common_block_end): Use "new".
7756 * mdebugread.c (parse_symbol): Use "new".
7757 (new_symbol): Likewise.
7758
5b4a1a8d
PW
77592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7760
7761 * NEWS: Mention changes to help and apropos.
7762
57b4f16e
PW
77632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7764
7765 * command.h (enum command_class): Improve comments, document
7766 that class_alias is for user-defined aliases, give the class
7767 name for each class, remove unused class_xdb.
7768 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7769 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7770 by a precise class.
7771 * infcmd.c (_initialize_infcmd): Likewise.
7772 * reverse.c (_initialize_reverse): Likewise.
7773 * stack.c (_initialize_stack): Likewise.
7774 * symfile.c (_initialize_symfile): Likewise.
7775 * tracepoint.c (_initialize_tracepoint): Likewise.
7776
7c05caf7
PW
77772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7778
7779 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7780 when their aliased command is traversed.
7781 (help_cmd): Add fput_command_names_styled call to
7782 output command name and aliases when command has an alias.
7783
3b3aaacb
PW
77842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7785
7786 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7787 * cli/cli-decode.c (help_cmd_list): Declare as static,
7788 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7789 a command together with the command.
7790 (fput_command_name_styled, fput_command_names_styled): New functions.
7791 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7792 fput_command_name_styled.
7793 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7794 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7795
7aa1b46f
PW
77962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7797
7798 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7799 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7800 * command.h (cmd_show_list): Likewise.
7801 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7802 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7803
89bcba74
PW
78042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7805
7806 * unittests/command-def-selftests.c (traverse_command_structure):
7807 Verify all commands of a list have the same prefix command and
7808 that only the top cmdlist commands have a null prefix.
7809
3f4d92eb
PW
78102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7811
7812 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7813 as prefix, not one of its aliases.
7814 (set_cmd_prefix): Remove.
7815 (do_add_cmd): Centralize the setting of the prefix of a command, when
7816 command is defined after its full chain of prefix commands.
7817 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7818 (add_setshow_cmd_full): Likewise.
7819 (update_prefix_field_of_prefixed_commands): New function.
7820 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7821 update_prefix_field_of_prefixed_commands.
7822 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7823 addresses of remote_set_cmdlist and remote_show_cmdlist given
7824 as argument, not the address of an argument.
7825 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7826 * gdb/remote.c (_initialize_remote): Likewise.
7827
0605465f
PW
78282020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7829
7830 * cli/cli-cmds.c (alias_command): Check for an existing alias
7831 using lookup_cmd_composition, as valid_command_p is too strict
7832 and forbids aliases that are the prefix of an existing alias
7833 or command.
7834 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7835 command is properly recognised as a valid command.
7836
58e6ac70
PW
78372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7838
7839 * unittests/help-doc-selftests.c: Rename to
7840 unittests/command-def-selftests.c
7841 * unittests/command-def-selftests.c (help_doc_tests): Update some
7842 comments.
7843 (command_structure_tests, traverse_command_structure): New namespace
7844 and function.
7845 (command_structure_invariants_tests): New function.
7846 (_initialize_command_def_selftests) Renamed from
7847 _initialize_help_doc_selftests, register command_structure_invariants
7848 selftest.
7849
a7b9ceb8
PW
78502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7851
7852 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7853 an alias of 'show'.
7854
b2188a06
JB
78552020-05-15 Joel Brobecker <brobecker@adacore.com>
7856
7857 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7858 ada_is_fixed_point_type. Update all callers.
7859 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7860 all callers.
7861 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7862 Update all callers.
7863 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7864 print_fixed_point_type. Update all callers.
7865 * ada-valprint.c (ada_value_print_num): Replace call to
7866 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7867
a51951c2
KB
78682020-05-14 Kevin Buettner <kevinb@redhat.com>
7869
7870 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7871 processors.
7872 (cpu_supports_bts): Add CV_AMD case.
7873
29d6859f
LM
78742020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7875 Simon Marchi <simon.marchi@efficios.com>
7876
7877 * infrun.c (stop_all_threads): Collect multiple wait events at
7878 each pass.
7879
78134374
SM
78802020-05-14 Simon Marchi <simon.marchi@efficios.com>
7881
7882 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7883 type::code instead.
7884
67607e24
SM
78852020-05-14 Simon Marchi <simon.marchi@efficios.com>
7886
7887 * gdbtypes.h (struct type) <code, set_code>: New methods.
7888 (TYPE_CODE): Use type::code. Change all call sites used to set
7889 the code to use type::set_code instead.
7890
a05575d3
TBA
78912020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7892 Tom de Vries <tdevries@suse.de>
7893 Pedro Alves <palves@redhat.com>
7894
7895 PR threads/25478
7896 * infrun.c (stop_all_threads): Do NOT ignore
7897 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7898 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7899 received.
7900 (handle_no_resumed): Remove code handling a live inferior with no
7901 threads.
7902 * remote.c (has_single_non_exited_thread): New.
7903 (remote_target::update_thread_list): Do not delete a thread if is
7904 the last thread of the process.
7905 * thread.c (thread_select): Call delete_exited_threads instead of
7906 prune_threads.
7907
6ad82919
TBA
79082020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7909
7910 * infrun.c (stop_all_threads): Enable/disable thread events of all
7911 targets. Move a debug message denoting the end of the function
7912 into the SCOPED_EXIT block.
7913
d890404b
TBA
79142020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7915
7916 * process-stratum-target.h: Include <set>.
7917 (all_non_exited_process_targets, switch_to_target_no_thread): New
7918 function declarations.
7919 * process-stratum-target.c (all_non_exited_process_targets)
7920 (switch_to_target_no_thread): New function implementations.
7921
293b3ebc
TBA
79222020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7923
7924 * infrun.c (handle_inferior_event): Extract out a piece of code
7925 into...
7926 (mark_non_executing_threads): ...this new function.
7927
7ca9b62a
TBA
79282020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7929
7930 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7931 use.
7932
fc75c28b
TBA
79332020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7934
7935 * regcache.c (regcache_read_pc_protected): New function
7936 implementation that returns 0 if the PC cannot read via
7937 'regcache_read_pc'.
7938 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7939 instead of 'regcache_read_pc'.
7940 (keep_going_pass_signal): Ditto.
7941
a89febbd
TT
79422020-05-13 Tom Tromey <tromey@adacore.com>
7943
7944 * ada-lang.c (align_value): Remove.
7945 (ada_template_to_fixed_record_type_1): Use align_up.
7946
f7e23710
TBA
79472020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7948
7949 * async-event.c: Update the copyright year.
7950 * async-event.h: Update the copyright year.
7951
02ff80c2
SM
79522020-05-12 Simon Marchi <simon.marchi@efficios.com>
7953
7954 * objfiles.h (is_addr_in_objfile,
7955 shared_objfile_contains_address_p): Return bool.
7956 * objfile.c (is_addr_in_objfile,
7957 shared_objfile_contains_address_p): Return bool.
7958
4fd6c7e8
TT
79592020-05-11 Tom Tromey <tromey@adacore.com>
7960
7961 * cli/cli-cmds.c (info_command): Restore.
7962 (_initialize_cli_cmds): Use add_prefix_command for "info".
7963 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7964
5eb68a39
TT
79652020-05-11 Tom Tromey <tromey@adacore.com>
7966
7967 * ada-lang.c (ada_value_primitive_field): Now public.
7968 * ada-lang.h (ada_value_primitive_field): Declare.
7969 * ada-valprint.c (print_field_values): Use
7970 ada_value_primitive_field for wrapper fields.
7971
7666722f
TV
79722020-05-11 Tom de Vries <tdevries@suse.de>
7973
7974 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7975 MODULE_DOMAIN.
7976
3ee6bb11
TV
79772020-05-11 Tom de Vries <tdevries@suse.de>
7978
7979 PR symtab/25941
7980 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7981 with length 0, if not gdb-produced.
7982 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7983
43434996
TV
79842020-05-09 Tom de Vries <tdevries@suse.de>
7985
7986 PR gdb/25955
7987 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7988 calculation.
7989
2f78cffc
TT
79902020-05-09 Tom Tromey <tom@tromey.com>
7991
7992 * top.c (server_command): Now bool.
7993 * top.h (server_command): Now bool.
7994
4f7bc5ed
TT
79952020-05-08 Tom Tromey <tromey@adacore.com>
7996
7997 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7998 already being processed.
7999
8be4b118
TT
80002020-05-08 Tom Tromey <tom@tromey.com>
8001
8002 * printcmd.c (struct display) <next>: Remove.
8003 <display>: New constructor.
8004 <exp_string>: Now a std::string.
8005 <enabled_p>: Now a bool.
8006 (display_number): Move definition earlier.
8007 (displays): Rename from display_chain. Now a std::vector.
8008 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8009 (display_command): Update.
8010 (do_one_display, disable_display)
8011 (enable_disable_display_command, do_enable_disable_display):
8012 Update.
8013 (free_display): Remove.
8014 (clear_displays): Rewrite.
8015 (delete_display): Update.
8016 (map_display_numbers): Use function_view. Remove "data"
8017 parameter. Update.
8018 (do_delete_display): Remove.
8019 (undisplay_command): Update.
8020 (do_one_display, do_displays, disable_display)
8021 (info_display_command): Update.
8022 (do_enable_disable_display): Remove.
8023 (enable_disable_display_command)
8024 (clear_dangling_display_expressions): Update.
8025
94c93c35
TT
80262020-05-08 Tom Tromey <tom@tromey.com>
8027
8028 * symtab.c (set_symbol_cache_size)
8029 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8030 (maintenance_print_symbol_cache_statistics): Update.
8031 * symmisc.c (print_symbol_bcache_statistics)
8032 (print_objfile_statistics, maintenance_print_objfiles)
8033 (maintenance_info_symtabs, maintenance_check_symtabs)
8034 (maintenance_expand_symtabs, maintenance_info_line_tables):
8035 Update.
8036 * symfile-debug.c (set_debug_symfile): Update.
8037 * source.c (forget_cached_source_info): Update.
8038 * python/python.c (gdbpy_progspaces): Update.
8039 * psymtab.c (maintenance_info_psymtabs): Update.
8040 * probe.c (parse_probes): Update.
8041 * linespec.c (iterate_over_all_matching_symtabs)
8042 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8043 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8044 * exec.c (exec_target::close): Update.
8045 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8046 * breakpoint.c (print_one_breakpoint_location)
8047 (create_longjmp_master_breakpoint)
8048 (create_std_terminate_master_breakpoint): Update.
8049 * progspace.c (program_spaces): Now a std::vector.
8050 (maybe_new_address_space): Update.
8051 (add_program_space): Remove.
8052 (program_space::program_space): Update.
8053 (remove_program_space): Update.
8054 (number_of_program_spaces): Remove.
8055 (print_program_space, update_address_spaces): Update.
8056 * progspace.h (program_spaces): Change type.
8057 (ALL_PSPACES): Remove.
8058 (number_of_program_spaces): Don't declare.
8059 (struct program_space) <next>: Remove.
8060
a1fd1ac9
TT
80612020-05-08 Tom Tromey <tom@tromey.com>
8062
8063 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8064 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8065 (enable_break): Update.
8066 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8067 (frv_fdpic_find_canonical_descriptor): Update.
8068 (frv_fetch_objfile_link_map): Update.
8069 * progspace.c (program_space::free_all_objfiles): Update.
8070 (program_space::solibs): New method.
8071 * progspace.h (struct program_space) <solibs>: New method.
8072 * solist.h (master_so_list): Don't declare.
8073 (ALL_SO_LIBS): Remove.
8074 * solib.h (so_list_head): Remove.
8075 (update_solib_list): Update comment.
8076 * solib.c (master_so_list): Remove.
8077 (solib_used, update_solib_list, solib_add)
8078 (info_sharedlibrary_command, clear_solib)
8079 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8080
38eae084
TT
80812020-05-08 Tom Tromey <tom@tromey.com>
8082
8083 * extension.c (extension_languages): Now a std::array.
8084 (ALL_EXTENSION_LANGUAGES): Remove.
8085 (get_ext_lang_defn, get_ext_lang_of_file)
8086 (eval_ext_lang_from_control_command): Update.
8087 (finish_ext_lang_initialization)
8088 (auto_load_ext_lang_scripts_for_objfile)
8089 (ext_lang_type_printers::ext_lang_type_printers)
8090 (apply_ext_lang_type_printers)
8091 (ext_lang_type_printers::~ext_lang_type_printers)
8092 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8093 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8094 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8095 (get_matching_xmethod_workers, ext_lang_colorize)
8096 (ext_lang_before_prompt): Update.
8097 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8098
596dc4ad
TT
80992020-05-08 Tom Tromey <tom@tromey.com>
8100
8101 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8102 overload.
8103 <swap_string, m_string>: Remove.
8104 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8105 Update.
8106 * stabsread.c (define_symbol, read_type): Update.
8107 * linespec.c (find_linespec_symbols): Update.
8108 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8109 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8110 * dbxread.c (read_dbx_symtab): Update.
8111 * cp-support.h (cp_canonicalize_string_full)
8112 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8113 Return unique_xmalloc_ptr.
8114 * cp-support.c (inspect_type): Update.
8115 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8116 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8117 Likewise.
8118 * c-typeprint.c (print_name_maybe_canonical): Update.
8119 * break-catch-throw.c (check_status_exception_catchpoint):
8120 Update.
8121
bf4cb9be
TV
81222020-05-08 Tom de Vries <tdevries@suse.de>
8123
8124 * infrun.c (follow_fork): Copy current_line and current_symtab to
8125 child thread.
8126
a1b68f28
SM
81272020-05-07 Simon Marchi <simon.marchi@efficios.com>
8128
8129 * async-event.c (struct async_signal_handler, struct
8130 async_event_handler): Reformat, remove typedef.
8131
98d48915
SM
81322020-05-07 Simon Marchi <simon.marchi@efficios.com>
8133
8134 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8135 access thistype->main_type->dyn_prop_list directly.
8136
7aa91313
SM
81372020-05-07 Simon Marchi <simon.marchi@efficios.com>
8138
8139 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8140 (remove_dyn_prop): Remove. Update all users to use
8141 type::remove_dyn_prop.
8142 * gdbtypes.c (remove_dyn_prop): Rename to...
8143 (type::remove_dyn_prop): ... this.
8144
5c54719c
SM
81452020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8146
8147 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8148 (add_dyn_prop): Remove. Update all users to use
8149 type::add_dyn_prop.
8150 * gdbtypes.c (add_dyn_prop): Rename to...
8151 (type::add_dyn_prop): ... this.
8152
24e99c6c
SM
81532020-05-07 Simon Marchi <simon.marchi@efficios.com>
8154
8155 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8156 (get_dyn_prop): Remove. Update all users to use
8157 type::dyn_prop.
8158 * gdbtypes.c (get_dyn_prop): Rename to...
8159 (type::dyn_prop): ... this.
8160
0d4bf016
SM
81612020-05-06 Simon Marchi <simon.marchi@efficios.com>
8162
8163 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8164
ac4a4f1c
SM
81652020-05-06 Simon Marchi <simon.marchi@efficios.com>
8166
8167 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8168 instruction, skip it if it's there.
8169
a3bbacc1
SM
81702020-05-05 Simon Marchi <simon.marchi@efficios.com>
8171
8172 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8173
c3236f84
SM
81742020-05-04 Simon Marchi <simon.marchi@efficios.com>
8175
8176 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8177 * gdbtypes.c (recursive_dump_type): Remove use of
8178 TYPE_INCOMPLETE.
8179
3b6acaee
TT
81802020-05-03 Tom Tromey <tom@tromey.com>
8181
8182 * breakpoint.c (catch_command, tcatch_command): Remove.
8183 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8184 add_show_prefix_cmd.
8185 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8186 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8187 Remove.
8188 (add_internal_problem_command): Use add_basic_prefix_cmd,
8189 add_show_prefix_cmd.
8190 * mips-tdep.c (set_mipsfpu_command): Remove.
8191 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8192 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8193 (_initialize_index_cache): Use add_basic_prefix_cmd.
8194 * memattr.c (dummy_cmd): Remove.
8195 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8196 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8197 (_initialize_tui_win): Use add_basic_prefix_cmd,
8198 add_show_prefix_cmd.
8199 * cli/cli-logging.c (set_logging_command): Remove.
8200 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8201 add_show_prefix_cmd.
8202 (show_logging_command): Remove.
8203 * target.c (target_command): Remove.
8204 (add_target): Use add_basic_prefix_cmd.
8205
a51119cd
HD
82062020-05-02 Hannes Domani <ssbssa@yahoo.de>
8207
8208 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8209
652fc23a 82102020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8211
652fc23a
PW
8212 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8213 info_command.
8214
117539e6
KR
82152020-04-30 Kamil Rytarowski <n54@gmx.com>
8216
8217 * nbsd-nat.c (nbsd_enable_proc_events)
8218 (nbsd_nat_target::post_startup_inferior): Add.
8219 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8220 (nbsd_nat_target::update_thread_list): Rewrite.
8221 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8222 "PTRACE_LWP_CREATE".
8223 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8224
102e38eb 82252020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8226
102e38eb
PW
8227 * stack.c (_initialize_stack): Remove duplicated creation
8228 of "frame" command and "f" alias.
8229
ee9d1e5f
HD
82302020-04-30 Hannes Domani <ssbssa@yahoo.de>
8231
8232 PR gdb/18706
8233 * gdbtypes.c (check_typedef): Calculate size of array of
8234 stubbed type.
8235
627c7fb8
HD
82362020-04-30 Hannes Domani <ssbssa@yahoo.de>
8237
8238 PR gdb/15559
8239 * i386-tdep.c (i386_push_dummy_call): Call
8240 i386_thiscall_push_dummy_call.
8241 (i386_thiscall_push_dummy_call): New function.
8242 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8243 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8244 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8245
ffc2844e
SM
82462020-04-29 Simon Marchi <simon.marchi@efficios.com>
8247
8248 * gdbarch.sh (do_read): Add shellcheck disable directive for
8249 warning SC2162.
8250
1207375d
SM
82512020-04-29 Simon Marchi <simon.marchi@efficios.com>
8252
8253 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8254 "referenced but not assigned" warning.
8255
9fdb2916
SM
82562020-04-29 Simon Marchi <simon.marchi@efficios.com>
8257
8258 * gdbarch.sh: Remove code that sets fallbackdefault.
8259
759cea5e
SM
82602020-04-29 Simon Marchi <simon.marchi@efficios.com>
8261
8262 * gdbarch.sh: Use shell operators && and || instead of
8263 -a and -o.
8264
cb02ab24
SM
82652020-04-29 Simon Marchi <simon.marchi@efficios.com>
8266
8267 * gdbarch.sh: Use $(...) instead of `...`.
8268
a6fc5ffc
SM
82692020-04-29 Simon Marchi <simon.marchi@efficios.com>
8270
8271 * gdbarch.sh: Use double quotes around variables.
8272
8d113d13
SM
82732020-04-29 Simon Marchi <simon.marchi@efficios.com>
8274
8275 * gdbarch.sh: Use %s with printf, instead of variables in the
8276 format string.
8277
ed6acedd
TT
82782020-04-29 Tom Tromey <tromey@adacore.com>
8279
8280 PR ada/25875:
8281 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8282 type fields here.
8283 (read_enumeration_type): Call
8284 update_enumeration_type_from_children later. Update comments.
8285 (process_enumeration_scope): Don't create type fields.
8286
b68b1b58
KR
82872020-04-29 Kamil Rytarowski <n54@gmx.com>
8288
8289 * nbsd-tdep.c: Include "xml-syscall.h".
8290 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8291
f94b2e03
KR
82922020-04-29 Kamil Rytarowski <n54@gmx.com>
8293
8294 * nbsd-nat.c: Include "sys/wait.h".
8295 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8296 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8297 (nbsd_nat_target::remove_exec_catchpoint)
8298 (nbsd_nat_target::set_syscall_catchpoint): Add.
8299 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8300 (nbsd_nat_target::insert_exec_catchpoint)
8301 (nbsd_nat_target::remove_exec_catchpoint)
8302 (nbsd_nat_target::set_syscall_catchpoint): Add.
8303 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8304 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8305 `nbsd_get_syscall_number'.
8306
fc49bc72
TT
83072020-04-29 Tom Tromey <tom@tromey.com>
8308
8309 * stack.c (print_block_frame_labels): Remove.
8310
d642b692
HD
83112020-04-29 Hannes Domani <ssbssa@yahoo.de>
8312
8313 PR gdb/17320
8314 * ada-valprint.c (val_print_packed_array_elements): Move array
8315 end bracket to new line.
8316 (ada_val_print_string): Remove extra spaces before first array
8317 element.
8318 * c-valprint.c (c_value_print_array): Likewise.
8319 * m2-valprint.c (m2_print_array_contents): Likewise.
8320 (m2_value_print_inner): Likewise.
8321 * p-valprint.c (pascal_value_print_inner): Likewise.
8322 * valprint.c (generic_val_print_array): Likewise.
8323 (value_print_array_elements): Move first array element and array
8324 end bracket to new line.
8325
ea90f227
TV
83262020-04-29 Tom de Vries <tdevries@suse.de>
8327
8328 PR symtab/25889
8329 * linespec.c (find_method): Fix ix calculation.
8330
4498ef4f
KR
83312020-04-28 Kamil Rytarowski <n54@gmx.com>
8332
8333 * syscalls/update-netbsd.sh: New file.
8334 * syscalls/netbsd.xml: Regenerate.
8335 * data-directory/Makefile.in: Register `netbsd.xml' in
8336 `SYSCALLS_FILES'.
8337
a55e30b5
SM
83382020-04-28 Simon Marchi <simon.marchi@efficios.com>
8339
8340 * syscalls/update-freebsd.sh: Add double quotes.
8341
2b2fbab8
TT
83422020-04-28 Tom Tromey <tom@tromey.com>
8343
8344 * NEWS: Update.
8345 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8346 (cmdpy_init): Allow class_tui.
8347
a65189c9
TV
83482020-04-28 Mark Williams <mark@myosotissp.com>
8349
8350 PR gdb/24480
8351 * dwarf2read.c: Add missing assingments to list_in_scope when
8352 start_symtab was already called.
8353
1b95cdb7
SM
83542020-04-28 Simon Marchi <simon.marchi@efficios.com>
8355
8356 PR gdb/25881
8357 * dwarf2/read.c (offset_map_type): Use
8358 gdb:hash_enum<sect_offset> as hash function.
8359
15cd93d0
TV
83602020-04-28 Tom de Vries <tdevries@suse.de>
8361
8362 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8363 with DW_AT_signature.
8364
1eb39914
SM
83652020-04-27 Simon Marchi <simon.marchi@efficios.com>
8366
8367 * configure.ac: Remove check for fs_base/gs_base in
8368 user_regs_struct.
8369 * configure: Re-generate.
8370 * config.in: Re-generate.
8371 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8372 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8373 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8374
991a3e2e
LM
83752020-04-27 Luis Machado <luis.machado@linaro.org>
8376
8377 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8378 problematic inline frame unwinding situation.
8379 * frame.c (frame_id_computed_p): New function.
8380 * frame.h (frame_id_computed_p): New prototype.
8381
361ba0e8
TT
83822020-04-26 Tom Tromey <tom@tromey.com>
8383
8384 * command.h (enum command_class) <class_pseudo>: Remove.
8385
bc3609fd
PW
83862020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8387
8388 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8389 and whitespace.
8390
b9771db7
KR
83912020-04-25 Kamil Rytarowski <n54@gmx.com>
8392
ec16513e
SM
8393 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8394 `PT_GET_PROCESS_STATE' block.
b9771db7 8395
7151c1af
TT
83962020-04-24 Tom Tromey <tom@tromey.com>
8397
8398 * symtab.h (symbol_get_demangled_name): Don't declare.
8399 * symtab.c (symbol_get_demangled_name): Remove.
8400 (general_symbol_info::natural_name)
8401 (general_symbol_info::demangled_name): Update.
8402
906bb4c5
TT
84032020-04-24 Tom Tromey <tom@tromey.com>
8404
8405 PR rust/25025:
8406 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8407
bcfe6157
TT
84082020-04-24 Tom Tromey <tom@tromey.com>
8409
8410 PR symtab/12707:
8411 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8412 exists.
8413 (new_symbol): Likewise.
8414 * compile/compile-object-load.c (get_out_value_type): Use
8415 symbol_matches_search_name.
8416
f049a313
TT
84172020-04-24 Tom Tromey <tom@tromey.com>
8418
8419 * dwarf2/read.c (add_partial_symbol): Do not call
8420 compute_and_set_names.
8421
76e288d1
TT
84222020-04-24 Tom Tromey <tom@tromey.com>
8423
8424 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8425 overload.
8426
2467f4f6
TT
84272020-04-24 Tom Tromey <tom@tromey.com>
8428
8429 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8430 (add_psymbol_to_list): New overload. Make old overload call new
8431 one.
8432 * psympriv.h (add_psymbol_to_list): New overload.
8433
e61108c9
TT
84342020-04-24 Tom Tromey <tom@tromey.com>
8435
8436 * dwarf2/read.c (partial_die_info::read) <case
8437 DW_AT_linkage_name>: Use value_as_string.
8438 (dwarf2_string_attr): Use value_as_string.
8439 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8440 method.
8441 * dwarf2/attribute.c (attribute::value_as_string): New method.
8442
8c87a452
TT
84432020-04-24 Tom Tromey <tom@tromey.com>
8444
8445 * symtab.c (general_symbol_info::natural_name)
8446 (general_symbol_info::demangled_name): Check for language_rust.
8447
787de330
TT
84482020-04-24 Tom Tromey <tom@tromey.com>
8449
8450 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8451 (dwarf2_physname): ... from here.
8452 (partial_die_info::read): Add Rust "{" hack.
8453
ff985671
TT
84542020-04-24 Tom Tromey <tom@tromey.com>
8455
8456 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8457 method.
8458 (symbol_set_demangled_name): Don't declare.
8459 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8460 symbol_set_demangled_name.
8461 (general_symbol_info::set_language)
8462 (general_symbol_info::compute_and_set_names): Update.
8463 * minsyms.c (minimal_symbol_reader::install): Update.
8464 * dwarf2/read.c (new_symbol): Update.
8465
1acda803
TT
84662020-04-24 Tom Tromey <tromey@adacore.com>
8467
8468 PR python/23662:
8469 * python/py-type.c (convert_field): Handle
8470 FIELD_LOC_KIND_DWARF_BLOCK.
8471 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8472 (typy_get_dynamic): Nw function.
8473 (type_object_getset): Add "dynamic".
8474 * NEWS: Add entry.
8475
d656f129
TT
84762020-04-24 Tom Tromey <tromey@adacore.com>
8477
8478 * ada-typeprint.c (print_choices, print_variant_part)
8479 (print_record_field_types_dynamic): New functions.
8480 (print_record_field_types): Use print_record_field_types_dynamic.
8481
7d79de9a
TT
84822020-04-24 Tom Tromey <tromey@adacore.com>
8483
8484 * dwarf2/read.c (handle_data_member_location): New overload.
8485 (dwarf2_add_field): Use it.
8486 (decode_locdesc): Add "computed" parameter. Update comment.
8487 * gdbtypes.c (is_dynamic_type_internal): Also look for
8488 FIELD_LOC_KIND_DWARF_BLOCK.
8489 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8490 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8491 virtual base classes.
8492 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8493 FIELD_LOC_KIND_DWARF_BLOCK.
8494
f8e89861
TT
84952020-04-24 Tom Tromey <tromey@adacore.com>
8496
8497 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8498 * gdbtypes.c (is_dynamic_type_internal): Check
8499 TYPE_HAS_DYNAMIC_LENGTH.
8500 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8501 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8502 New macros.
8503 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8504 constant.
8505
9c6a1327
TT
85062020-04-24 Tom Tromey <tromey@adacore.com>
8507
8508 * dwarf2/read.c (struct variant_field): Rewrite.
8509 (struct variant_part_builder): New.
8510 (struct nextfield): Remove "variant" field. Add "offset".
8511 (struct field_info): Add "current_variant_part" and
8512 "variant_parts".
8513 (alloc_discriminant_info): Remove.
8514 (alloc_rust_variant): New function.
8515 (quirk_rust_enum): Update.
8516 (dwarf2_add_field): Set "offset" member. Don't handle
8517 DW_TAG_variant_part.
8518 (offset_map_type): New typedef.
8519 (convert_variant_range, create_one_variant)
8520 (create_one_variant_part, create_variant_parts)
8521 (add_variant_property): New functions.
8522 (dwarf2_attach_fields_to_type): Call add_variant_property.
8523 (read_structure_type): Don't handle DW_TAG_variant_part.
8524 (handle_variant_part, handle_variant): New functions.
8525 (handle_struct_member_die): Use them.
8526 (process_structure_scope): Don't handle variant parts.
8527 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8528 (struct discriminant_info): Remove.
8529 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8530 (struct main_type) <flag_discriminated_union>: Remove.
8531 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8532 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8533 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8534 Update.
8535 * valops.c (value_union_variant): Remove.
8536 * value.h (value_union_variant): Don't declare.
8537
b249d2c2
TT
85382020-04-24 Tom Tromey <tromey@adacore.com>
8539
8540 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8541 (ada_value_primitive_packed_val): Update.
8542 * ada-valprint.c (ada_value_print_1): Update.
8543 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8544 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8545 just an address. Use evaluate_for_locexpr_baton.
8546 (dwarf2_evaluate_property): Update.
8547 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8548 array_view.
8549 * findvar.c (default_read_var_value): Update.
8550 * gdbtypes.c (compute_variant_fields_inner)
8551 (resolve_dynamic_type_internal): Update.
8552 (resolve_dynamic_type): Change type of valaddr parameter.
8553 * gdbtypes.h (resolve_dynamic_type): Update.
8554 * valarith.c (value_subscripted_rvalue): Update.
8555 * value.c (value_from_contents_and_address): Update.
8556
61122aa9
TT
85572020-04-24 Tom Tromey <tromey@adacore.com>
8558
8559 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8560 "push_initial_value" parameter.
8561 (dwarf2_evaluate_property): Likewise.
8562 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8563
ef83a141
TT
85642020-04-24 Tom Tromey <tromey@adacore.com>
8565
8566 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8567 (variant::matches, compute_variant_fields_recurse)
8568 (compute_variant_fields_inner, compute_variant_fields): New
8569 functions.
8570 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8571 Use resolved_type after type is made.
8572 (operator==): Add new cases.
8573 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8574 (struct discriminant_range, struct variant, struct variant_part):
8575 New.
8576 (union dynamic_prop_data) <variant_parts, original_type>: New
8577 members.
8578 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8579 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8580 constants.
8581 * value.c (unpack_bits_as_long): Now public.
8582 * value.h (unpack_bits_as_long): Declare.
8583
675127ec
TT
85842020-04-24 Tom Tromey <tromey@adacore.com>
8585
8586 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8587 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8588
9852ceef
HD
85892020-04-24 Hannes Domani <ssbssa@yahoo.de>
8590
8591 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8592
7632c6ce
KR
85932020-04-24 Kamil Rytarowski <n54@gmx.com>
8594
8595 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8596 (remove_fork_catchpoint, post_startup_inferior)
8597 (post_attach): Move...
8598 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8599 (remove_fork_catchpoint, post_startup_inferior)
8600 (post_attach): ...here.
8601 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8602 (remove_fork_catchpoint, post_startup_inferior)
8603 (post_attach): Move...
8604 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8605 (remove_fork_catchpoint, post_startup_inferior)
8606 (post_attach): ...here.
8607
7be2bb4f
TT
86082020-04-24 Tom Tromey <tromey@adacore.com>
8609
8610 * nat/windows-nat.h (struct windows_thread_info)
8611 <pc_adjusted>: New member.
8612 * windows-nat.c (windows_fetch_one_register): Check
8613 pc_adjusted.
8614 (windows_nat_target::get_windows_debug_event)
8615 (windows_nat_target::wait): Set pc_adjusted.
8616
f80cb3b4
TV
86172020-04-24 Tom de Vries <tdevries@suse.de>
8618
8619 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8620 Run gdb-add-index inside temp dir.
8621
29514b87
TT
86222020-04-23 Tom Tromey <tromey@adacore.com>
8623
8624 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8625 in loop.
8626
5939967b
LM
86272020-04-23 Luis Machado <luis.machado@linaro.org>
8628
8629 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8630 get_frame_register instead of gdbarch_unwind_pc.
8631
70bc38f5
TV
86322020-04-23 Tom de Vries <tdevries@suse.de>
8633
8634 * symtab.c (lookup_global_symbol): Prefer def over decl.
8635
de82891c
TV
86362020-04-23 Tom de Vries <tdevries@suse.de>
8637
8638 PR symtab/25807
8639 * block.c (best_symbol, better_symbol): Promote to external.
8640 * block.h (best_symbol, better_symbol): Declare.
8641 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8642 decl.
8643
ecc6c606
TT
86442020-04-23 Tom Tromey <tromey@adacore.com>
8645
8646 PR ada/25837:
8647 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8648 "const char *", not a "const std::string &".
8649 <name_and_matcher::operator==>: Update.
8650 * unittests/lookup_name_info-selftests.c: Change type of
8651 "result".
8652
740480b8
TT
86532020-04-23 Tom Tromey <tom@tromey.com>
8654
8655 * inferior.h (iterate_over_inferiors): Don't declare.
8656 * inferior.c (iterate_over_inferiors): Remove.
8657 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8658 Remove.
8659 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8660 use iterate_over_inferiors.
8661 (darwin_resume_inferior_it)
8662 (struct resume_inferior_threads_param)
8663 (darwin_resume_inferior_threads_it): Remove.
8664 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8665
ae3ab1f0
TV
86662020-04-23 Tom de Vries <tdevries@suse.de>
8667
8668 * blockframe.c (find_pc_partial_function): Use
8669 find_pc_sect_compunit_symtab rather than
8670 objfile->sf->qf->find_pc_sect_compunit_symtab.
8671
317d2668
TV
86722020-04-22 Tom de Vries <tdevries@suse.de>
8673
8674 PR symtab/25764
8675 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8676 in psymtabs.
8677
eea9e357
TV
86782020-04-22 Tom de Vries <tdevries@suse.de>
8679
8680 PR symtab/25801
8681 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8682 symtabs.
8683
3d5afab3
TV
86842020-04-22 Tom de Vries <tdevries@suse.de>
8685
8686 PR symtab/25700
8687 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8688 CU if already created.
8689
d43b7a2d
TBA
86902020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8691
8692 * infrun.c (displaced_step_fixup): Switch to the event_thread
8693 before calling displaced_step_restore, not after.
8694
d89edf9b
MM
86952020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8696
8697 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8698 its inferior is not recorded by us.
8699 (record_btrace_target_open): Replace call to
8700 all_non_exited_threads () with call to current_inferior
8701 ()->non_exited_threads ().
8702 (record_btrace_target::stop_recording): Likewise.
8703 (record_btrace_target::close): Likewise.
8704 (record_btrace_target::wait): Likewise.
8705 (record_btrace_target::record_stop_replaying): Likewise.
8706
5897fd49
MM
87072020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8708
8709 * btrace.c (btrace_enable): Throw an error on double enables and
8710 when enabling recording fails.
8711 (btrace_disable): Throw an error if the thread is not recorded.
8712
1a476b6d
MM
87132020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8714
8715 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8716 request if we do not have a thread_info.
8717
4778a5f8
TV
87182020-04-21 Tom de Vries <tdevries@suse.de>
8719
8720 PR gdb/25471
8721 * thread.c
8722 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8723 exception in get_frame_id.
8724
0fa7617d
TT
87252020-04-20 Tom Tromey <tromey@adacore.com>
8726
8727 * python/python.c (struct gdbpy_event): Mark move constructor as
8728 noexcept.
8729 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8730 constructor as noexcept.
8731 * completer.h (struct completion_result): Mark move constructor as
8732 noexcept.
8733 * completer.c (completion_result::completion_result): Use
8734 initialization style. Don't call reset_match_list.
8735
ad23bda0
MS
87362020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8737
8738 * MAINTAINERS (Write After Approval): Add myself.
8739
45e1f031
TT
87402020-04-18 Tom Tromey <tom@tromey.com>
8741
8742 * windows-tdep.c (init_w32_command_list)
8743 (w32_prefix_command_valid): Restore.
8744 (_initialize_windows_tdep): Call init_w32_command_list.
8745
08feed99
TT
87462020-04-18 Tom Tromey <tom@tromey.com>
8747
8748 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8749 * value.c (value_fn_field): Update.
8750 * valops.c (find_function_in_inferior)
8751 (value_allocate_space_in_inferior): Update.
8752 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8753 Update.
8754 * tui/tui-source.c (tui_source_window::set_contents): Update.
8755 * symtab.c (lookup_global_or_static_symbol)
8756 (find_function_start_sal_1, skip_prologue_sal)
8757 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8758 * symmisc.c (dump_msymbols, dump_symtab_1)
8759 (maintenance_print_one_line_table): Update.
8760 * symfile.c (init_entry_point_info, section_is_mapped)
8761 (list_overlays_command, simple_read_overlay_table)
8762 (simple_overlay_update_1): Update.
8763 * stap-probe.c (handle_stap_probe): Update.
8764 * stabsread.c (dbx_init_float_type, define_symbol)
8765 (read_one_struct_field, read_enum_type, read_range_type): Update.
8766 * source.c (info_line_command): Update.
8767 * python/python.c (gdbpy_source_objfile_script)
8768 (gdbpy_execute_objfile_script): Update.
8769 * python/py-type.c (save_objfile_types): Update.
8770 * python/py-objfile.c (py_free_objfile): Update.
8771 * python/py-inferior.c (python_new_objfile): Update.
8772 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8773 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8774 (maintenance_check_psymtabs): Update.
8775 * printcmd.c (info_address_command): Update.
8776 * objfiles.h (struct objfile) <arch>: New method, from
8777 get_objfile_arch.
8778 (get_objfile_arch): Don't declare.
8779 * objfiles.c (get_objfile_arch): Remove.
8780 (filter_overlapping_sections): Update.
8781 * minsyms.c (msymbol_is_function): Update.
8782 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8783 (output_nondebug_symbol): Update.
8784 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8785 (mdebug_expand_psymtab): Update.
8786 * machoread.c (macho_add_oso_symfile): Update.
8787 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8788 Update.
8789 * linux-fork.c (checkpoint_command): Update.
8790 * linespec.c (convert_linespec_to_sals): Update.
8791 * jit.c (finalize_symtab): Update.
8792 * infrun.c (insert_exception_resume_from_probe): Update.
8793 * ia64-tdep.c (ia64_find_unwind_table): Update.
8794 * hppa-tdep.c (internalize_unwinds): Update.
8795 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8796 Update.
8797 * gcore.c (call_target_sbrk): Update.
8798 * elfread.c (record_minimal_symbol, elf_symtab_read)
8799 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8800 (elf_gnu_ifunc_resolve_by_got): Update.
8801 * dwarf2/read.c (create_addrmap_from_index)
8802 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8803 (read_debug_names_from_section)
8804 (process_psymtab_comp_unit_reader, add_partial_symbol)
8805 (add_partial_subprogram, process_full_comp_unit)
8806 (read_file_scope, read_func_scope, read_lexical_block_scope)
8807 (read_call_site_scope, dwarf2_ranges_read)
8808 (dwarf2_record_block_ranges, dwarf2_add_field)
8809 (mark_common_block_symbol_computed, read_tag_pointer_type)
8810 (read_tag_string_type, dwarf2_init_float_type)
8811 (dwarf2_init_complex_target_type, read_base_type)
8812 (partial_die_info::read, partial_die_info::read)
8813 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8814 (dwarf2_fetch_die_loc_sect_off): Update.
8815 * dwarf2/loc.c (dwarf2_find_location_expression)
8816 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8817 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8818 (dwarf2_loc_desc_get_symbol_read_needs)
8819 (locexpr_describe_location_piece, locexpr_describe_location_1)
8820 (loclist_describe_location): Update.
8821 * dwarf2/index-write.c (write_debug_names): Update.
8822 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8823 * dtrace-probe.c (dtrace_process_dof): Update.
8824 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8825 (process_one_symbol): Update.
8826 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8827 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8828 (coff_read_enum_type): Update.
8829 * cli/cli-cmds.c (edit_command, list_command): Update.
8830 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8831 * breakpoint.c (create_overlay_event_breakpoint)
8832 (create_longjmp_master_breakpoint)
8833 (create_std_terminate_master_breakpoint)
8834 (create_exception_master_breakpoint, get_sal_arch): Update.
8835 * block.c (block_gdbarch): Update.
8836 * annotate.c (annotate_source_line): Update.
8837
0743fc83
TT
88382020-04-17 Tom Tromey <tromey@adacore.com>
8839
8840 * auto-load.c (show_auto_load_cmd): Remove.
8841 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8842 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8843 (maintenance_print_arc_command): Remove.
8844 * tui/tui-win.c (tui_command): Remove.
8845 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8846 * tui/tui-layout.c (tui_layout_command): Remove.
8847 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8848 * python/python.c (user_set_python, user_show_python): Remove.
8849 (_initialize_python): Use add_basic_prefix_cmd,
8850 add_show_prefix_cmd.
8851 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8852 (install_gdb_commands): Use add_basic_prefix_cmd,
8853 add_show_prefix_cmd.
8854 (info_guile_command): Remove.
8855 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8856 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8857 add_show_prefix_cmd.
8858 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8859 Remove do_set and do_show parameters.
8860 * cli/cli-style.c (set_style, show_style): Remove.
8861 (_initialize_cli_style): Use add_basic_prefix_cmd,
8862 add_show_prefix_cmd.
8863 (cli_style_option::add_setshow_commands): Remove do_set and
8864 do_show parameters.
8865 (cli_style_option::add_setshow_commands): Use
8866 add_basic_prefix_cmd, add_show_prefix_cmd.
8867 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8868 (set_style_name): Remove.
8869 * cli/cli-dump.c (dump_command, append_command): Remove.
8870 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8871 (tekhex_dump_command, binary_dump_command)
8872 (binary_append_command): Remove.
8873 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8874 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8875 (init_w32_command_list): Remove; move into ...
8876 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8877 * valprint.c (set_print, show_print, set_print_raw)
8878 (show_print_raw): Remove.
8879 (_initialize_valprint): Use add_basic_prefix_cmd,
8880 add_show_prefix_cmd.
8881 * typeprint.c (set_print_type, show_print_type): Remove.
8882 (_initialize_typeprint): Use add_basic_prefix_cmd,
8883 add_show_prefix_cmd.
8884 * record.c (set_record_command, show_record_command): Remove.
8885 (_initialize_record): Use add_basic_prefix_cmd,
8886 add_show_prefix_cmd.
8887 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8888 add_show_prefix_cmd.
8889 (info_command, show_command, set_debug, show_debug): Remove.
8890 * top.h (set_history, show_history): Don't declare.
8891 * top.c (set_history, show_history): Remove.
8892 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8893 (unset_tdesc_cmd): Remove.
8894 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8895 add_show_prefix_cmd.
8896 * symtab.c (info_module_command): Remove.
8897 (_initialize_symtab): Use add_basic_prefix_cmd.
8898 * symfile.c (overlay_command): Remove.
8899 (_initialize_symfile): Use add_basic_prefix_cmd.
8900 * sparc64-tdep.c (info_adi_command): Remove.
8901 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8902 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8903 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8904 add_show_prefix_cmd.
8905 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8906 (_initialize_serial): Use add_basic_prefix_cmd,
8907 add_show_prefix_cmd.
8908 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8909 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8910 add_show_prefix_cmd.
8911 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8912 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8913 add_show_prefix_cmd.
8914 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8915 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8916 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8917 add_show_prefix_cmd.
8918 * remote.c (remote_command, set_remote_cmd): Remove.
8919 (_initialize_remote): Use add_basic_prefix_cmd.
8920 * record-full.c (set_record_full_command)
8921 (show_record_full_command): Remove.
8922 (_initialize_record_full): Use add_basic_prefix_cmd,
8923 add_show_prefix_cmd.
8924 * record-btrace.c (cmd_set_record_btrace)
8925 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8926 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8927 (cmd_show_record_btrace_pt): Remove.
8928 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8929 add_show_prefix_cmd.
8930 * ravenscar-thread.c (set_ravenscar_command)
8931 (show_ravenscar_command): Remove.
8932 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8933 add_show_prefix_cmd.
8934 * mips-tdep.c (show_mips_command, set_mips_command)
8935 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8936 add_show_prefix_cmd.
8937 * maint.c (maintenance_command, maintenance_info_command)
8938 (maintenance_check_command, maintenance_print_command)
8939 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8940 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8941 add_show_prefix_cmd.
8942 (show_per_command_cmd): Remove.
8943 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8944 Remove.
8945 (maintenance_show_test_settings_cmd): Remove.
8946 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8947 add_show_prefix_cmd.
8948 * maint-test-options.c (maintenance_test_options_command):
8949 Remove.
8950 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8951 * macrocmd.c (macro_command): Remove
8952 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8953 * language.c (set_check, show_check): Remove.
8954 (_initialize_language): Use add_basic_prefix_cmd,
8955 add_show_prefix_cmd.
8956 * infcmd.c (unset_command): Remove.
8957 (_initialize_infcmd): Use add_basic_prefix_cmd.
8958 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8959 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8960 add_show_prefix_cmd.
8961 * go32-nat.c (go32_info_dos_command): Remove.
8962 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8963 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8964 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8965 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8966 (_initialize_frame): Use add_basic_prefix_cmd,
8967 add_show_prefix_cmd.
8968 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8969 (_initialize_dcache): Use add_basic_prefix_cmd,
8970 add_show_prefix_cmd.
8971 * cp-support.c (maint_cplus_command): Remove.
8972 (_initialize_cp_support): Use add_basic_prefix_cmd.
8973 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8974 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8975 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8976 add_basic_prefix_cmd, add_show_prefix_cmd.
8977 * breakpoint.c (save_command): Remove.
8978 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8979 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8980 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8981 add_show_prefix_cmd.
8982 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8983 (set_ada_command, show_ada_command): Remove.
8984 (_initialize_ada_language): Use add_basic_prefix_cmd,
8985 add_show_prefix_cmd.
8986 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8987
3557f442
KR
89882020-04-16 Kamil Rytarowski <n54@gmx.com>
8989
8990 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8991 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8992
16197208
SM
89932020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8994
8995 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8996 warning messages.
8997
00ac85d3
SM
89982020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8999
9000 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9001 import table is not at beginning of .idata section.
9002
381ce63f
PA
90032020-04-16 Pedro Alves <palves@redhat.com>
9004
9005 * inferior.c (delete_inferior): Use delete operator directly
9006 instead of delete_program_space.
9007 * progspace.c (add_program_space): New, factored out from
9008 program_space::program_space.
9009 (remove_program_space): New, factored out from
9010 delete_program_space.
9011 (program_space::program_space): Remove intro comment. Rewrite.
9012 (program_space::~program_space): Remove intro comment. Call
9013 remove_program_space.
9014 (delete_program_space): Delete.
9015 * progspace.h (program_space::program_space): Make explicit. Move
9016 intro comment here, adjusted.
9017 (program_space::~program_space): Move intro comment here,
9018 adjusted.
9019 (delete_program_space): Remove.
9020
a010605f
TT
90212020-04-16 Tom Tromey <tromey@adacore.com>
9022
9023 * windows-nat.c (windows_nat::handle_access_violation): New
9024 function.
9025 * nat/windows-nat.h (handle_access_violation): Declare.
9026 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9027 windows-nat.c. Call handle_access_violation.
9028
efba5c23
TV
90292020-04-16 Tom de Vries <tdevries@suse.de>
9030
9031 PR symtab/25791
9032 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9033 CUs without psymtab.
9034
97ed802d
KB
90352020-04-16 Kevin Buettner <kevinb@redhat.com>
9036
9037 * python/python.c (do_start_initialization): Don't call
9038 PyEval_InitThreads for Python 3.9 and beyond.
9039
c7d64809
KR
90402020-04-15 Kamil Rytarowski <n54@gmx.com>
9041
9042 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9043 thread functions.
9044 (obsd_nat_target::wait): Likewise.
9045
ce127a96
TT
90462020-04-15 Tom Tromey <tromey@adacore.com>
9047
9048 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9049 (DEBUG_EXCEPT): Use debug_printf.
9050
99f1bc6a
AB
90512020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9052
9053 * completer.c (class completion_tracker::completion_hash_entry)
9054 <hash_name>: New member function.
9055 (completion_tracker::discard_completions): New callback to hash a
9056 completion_hash_entry, pass this to htab_create_alloc.
9057
a0e9b532
JT
90582016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9059
9060 * windows-nat.c (windows_make_so): Warn rather than stopping with
9061 an error if realpath() fails.
9062
06ca5dd4
KR
90632020-04-14 Kamil Rytarowski <n54@gmx.com>
9064
9065 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9066 (nbsd_nat_target::info_proc): Add do_status.
9067
194d088f
TV
90682020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9069 Tom de Vries <tdevries@suse.de>
9070
9071 PR symtab/25718
9072 * psympriv.h (struct partial_symtab::read_symtab)
9073 (struct partial_symtab::expand_psymtab)
9074 (struct partial_symtab::read_dependencies): Update comments.
9075 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9076 read_symtab for includer.
9077 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9078 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9079 (struct dwarf2_include_psymtab::m_readin): Remove.
9080 (struct dwarf2_include_psymtab::includer): New member function.
9081 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9082
c1a66c06
TV
90832020-04-14 Tom de Vries <tdevries@suse.de>
9084
9085 PR symtab/25720
9086 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9087 with NULL symbol_matcher and lookup_name.
9088 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9089 and lookup_name.
9090 * dwarf2/read.c (dw2_expand_symtabs_matching)
9091 (dw2_debug_names_expand_symtabs_matching): Same.
9092 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9093 Make lookup_name a pointer. Update comment.
9094 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9095 lookup_name being a pointer.
9096 * symfile.c (expand_symtabs_matching): Same.
9097 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9098 * linespec.c (iterate_over_all_matching_symtabs): Same.
9099
400b5eca
TT
91002020-04-13 Tom Tromey <tom@tromey.com>
9101
9102 * run-on-main-thread.c: Update include.
9103 * unittests/main-thread-selftests.c: Update include.
9104 * tui/tui-win.c: Update include.
9105 * tui/tui-io.c: Update include.
9106 * tui/tui-interp.c: Update include.
9107 * tui/tui-hooks.c: Update include.
9108 * top.h: Update include.
9109 * top.c: Update include.
9110 * ser-base.c: Update include.
9111 * remote.c: Update include.
9112 * remote-notif.c: Update include.
9113 * remote-fileio.c: Update include.
9114 * record-full.c: Update include.
9115 * record-btrace.c: Update include.
9116 * python/python.c: Update include.
9117 * posix-hdep.c: Update include.
9118 * mingw-hdep.c: Update include.
9119 * mi/mi-main.c: Update include.
9120 * mi/mi-interp.c: Update include.
9121 * main.c: Update include.
9122 * linux-nat.c: Update include.
9123 * interps.c: Update include.
9124 * infrun.c: Update include.
9125 * inf-loop.c: Update include.
9126 * event-top.c: Update include.
9127 * event-loop.c: Move to ../gdbsupport/.
9128 * event-loop.h: Move to ../gdbsupport/.
9129 * async-event.h: Update include.
9130 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9131
93b54c8e
TT
91322020-04-13 Tom Tromey <tom@tromey.com>
9133
9134 * tui/tui-win.c: Include async-event.h.
9135 * remote.c: Include async-event.h.
9136 * remote-notif.c: Include async-event.h.
9137 * record-full.c: Include async-event.h.
9138 * record-btrace.c: Include async-event.h.
9139 * infrun.c: Include async-event.h.
9140 * event-top.c: Include async-event.h.
9141 * event-loop.h: Move some declarations to async-event.h.
9142 * event-loop.c: Don't include ser-event.h or top.h. Move some
9143 code to async-event.c.
9144 * async-event.h: New file.
9145 * async-event.c: New file.
9146 * Makefile.in (COMMON_SFILES): Add async-event.c.
9147 (HFILES_NO_SRCDIR): Add async-event.h.
9148
c1cd3163
TT
91492020-04-13 Tom Tromey <tom@tromey.com>
9150
9151 * utils.c (flush_streams): New function.
9152 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9153
29f2bf4f
TT
91542020-04-13 Tom Tromey <tom@tromey.com>
9155
9156 * event-loop.c (handle_file_event): Use warning, not
9157 printf_unfiltered.
9158
98029d02
TT
91592020-04-13 Tom Tromey <tom@tromey.com>
9160
9161 * event-loop.c: Include <chrono>.
9162
06cc9596
TT
91632020-04-13 Tom Tromey <tom@tromey.com>
9164
9165 * gdb_select.h: Move to ../gdbsupport/.
9166 * event-loop.c: Update include path.
9167 * top.c: Update include path.
9168 * ser-base.c: Update include path.
9169 * ui-file.c: Update include path.
9170 * ser-tcp.c: Update include path.
9171 * guile/scm-ports.c: Update include path.
9172 * posix-hdep.c: Update include path.
9173 * ser-unix.c: Update include path.
9174 * gdb_usleep.c: Update include path.
9175 * mingw-hdep.c: Update include path.
9176 * inflow.c: Update include path.
9177 * infrun.c: Update include path.
9178 * event-top.c: Update include path.
9179
8ae8e197
TT
91802020-04-13 Tom Tromey <tom@tromey.com>
9181
9182 * configure: Rebuild.
9183 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9184
58cf28e8
TT
91852020-04-13 Tom Tromey <tom@tromey.com>
9186
9187 * event-loop.h (start_event_loop): Don't declare.
9188 * event-loop.c (start_event_loop): Move...
9189 * main.c (start_event_loop): ...here. Now static.
9190
b7f999ae
SDJ
91912020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9192
9193 * MAINTAINERS: Update my email address.
9194
1085dfd4
KR
91952020-04-12 Kamil Rytarowski <n54@gmx.com>
9196
9197 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9198 IP_ALL.
9199
49d1d1f5
KR
92002020-04-12 Kamil Rytarowski <n54@gmx.com>
9201
9202 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9203 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9204
b4848d2a
KR
92052020-04-12 Kamil Rytarowski <n54@gmx.com>
9206
9207 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9208 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9209
51c133d5
KR
92102020-04-12 Kamil Rytarowski <n54@gmx.com>
9211
9212 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9213
54b8cbd0
KR
92142020-04-11 Kamil Rytarowski <n54@gmx.com>
9215
9216 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9217 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9218 (nbsd_nat_target::info_proc): New functions.
9219 * nbsd-nat.c (kinfo_get_vmmap): New function.
9220 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9221 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9222 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9223 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9224 functions.
9225 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9226 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9227 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9228 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9229 (KINFO_VME_FLAG_GROWS_DOWN): New.
9230
cf83625d
AS
92312020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9232
9233 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9234 bit shift.
9235
0c4311ab
TT
92362020-04-10 Tom Tromey <tromey@adacore.com>
9237
9238 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9239
3e65b3e9
TT
92402020-04-10 Tom Tromey <tromey@adacore.com>
9241
9242 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9243 separate debug files.
9244
13302e95
HD
92452020-04-10 Hannes Domani <ssbssa@yahoo.de>
9246
9247 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9248 Move to...
9249 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9250 ... here.
9251 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9252 Check for STATUS_WX86_BREAKPOINT.
9253 (windows_nat_target::wait): Same.
9254
bdfc1e8a
TV
92552020-04-10 Tom de Vries <tdevries@suse.de>
9256
9257 PR cli/25808
9258 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9259
f4460aec
SM
92602020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9261
9262 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9263 (Write After Approval): Remove Tom de Vries.
9264
a25198bb
BE
92652020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9266
9267 revert partially:
9268 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9269
aac66a4c
SM
9270 * buildsym.c (record_line): Fix undefined behavior and preserve
9271 lines at eof.
a25198bb 9272
206c98a6
KR
92732020-04-09 Kamil Rytarowski <n54@gmx.com>
9274
9275 * auxv.h (svr4_auxv_parse): New.
9276 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9277 and generic_auxv_parse.
9278 (svr4_auxv_parse): Add.
9279 * obsd-tdep.c: Include "auxv.h".
9280 (obsd_auxv_parse): Remove.
9281 (obsd_init_abi): Remove comment.
9282 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9283 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9284 * nbsd-tdep.c: Include "auxv.h".
9285 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9286
71fbdbaf
TT
92872020-04-08 Tom Tromey <tromey@adacore.com>
9288
9289 * nat/windows-nat.h (last_wait_event): Don't declare.
9290 (wait_for_debug_event): Update comment.
9291 * nat/windows-nat.c (last_wait_event): Now static.
9292
2c1d95e8
TT
92932020-04-08 Tom Tromey <tromey@adacore.com>
9294
9295 * windows-nat.c (wait_for_debug_event): Move to
9296 nat/windows-nat.c.
9297 * nat/windows-nat.h (wait_for_debug_event): Declare.
9298 * nat/windows-nat.c (wait_for_debug_event): Move from
9299 windows-nat.c. No longer static.
9300
d2977bc4
TT
93012020-04-08 Tom Tromey <tromey@adacore.com>
9302
9303 * windows-nat.c (get_windows_debug_event): Use
9304 fetch_pending_stop.
9305 * nat/windows-nat.h (fetch_pending_stop): Declare.
9306 * nat/windows-nat.c (fetch_pending_stop): New function.
9307
e758e19c
TT
93082020-04-08 Tom Tromey <tromey@adacore.com>
9309
9310 * windows-nat.c (windows_continue): Use matching_pending_stop and
9311 continue_last_debug_event.
9312 * nat/windows-nat.h (matching_pending_stop)
9313 (continue_last_debug_event): Declare.
9314 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9315 (matching_pending_stop, continue_last_debug_event): New
9316 functions.
9317
8d30e395
TT
93182020-04-08 Tom Tromey <tromey@adacore.com>
9319
9320 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9321 (handle_exception_result): Move to nat/windows-nat.h.
9322 (DEBUG_EXCEPTION_SIMPLE): Remove.
9323 (windows_nat::handle_ms_vc_exception): New function.
9324 (handle_exception): Move to nat/windows-nat.c.
9325 (get_windows_debug_event): Update.
9326 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9327 nat/windows-nat.c.
9328 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9329 (handle_exception_result): Move from windows-nat.c.
9330 (handle_exception): Declare.
9331 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9332 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9333 windows-nat.c.
9334
29de418d
TT
93352020-04-08 Tom Tromey <tromey@adacore.com>
9336
9337 * windows-nat.c (exception_count, event_count): Remove.
9338 (handle_exception, get_windows_debug_event)
9339 (do_initial_windows_stuff): Update.
9340
a816ba18
TT
93412020-04-08 Tom Tromey <tromey@adacore.com>
9342
9343 * windows-nat.c (windows_nat::handle_load_dll)
9344 (windows_nat::handle_unload_dll): Rename. No longer static.
9345 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9346 Declare.
9347
a00caa12
TT
93482020-04-08 Tom Tromey <tromey@adacore.com>
9349
9350 * complaints.h (stop_whining): Declare at top-level.
9351 (complaint): Don't declare stop_whining.
9352
d41b524f
TT
93532020-04-08 Tom Tromey <tromey@adacore.com>
9354
9355 * windows-nat.c (windows_nat::handle_output_debug_string):
9356 Rename. No longer static.
9357 * nat/windows-nat.h (handle_output_debug_string): Declare.
9358
3c76026d
TT
93592020-04-08 Tom Tromey <tromey@adacore.com>
9360
9361 * windows-nat.c (current_process_handle, current_process_id)
9362 (main_thread_id, last_sig, current_event, last_wait_event)
9363 (current_windows_thread, desired_stop_thread_id, pending_stops)
9364 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9365 (display_selectors, fake_create_process)
9366 (get_windows_debug_event): Update.
9367 * nat/windows-nat.h (current_process_handle, current_process_id)
9368 (main_thread_id, last_sig, current_event, last_wait_event)
9369 (current_windows_thread, desired_stop_thread_id, pending_stops)
9370 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9371 * nat/windows-nat.c (current_process_handle, current_process_id)
9372 (main_thread_id, last_sig, current_event, last_wait_event)
9373 (current_windows_thread, desired_stop_thread_id, pending_stops)
9374 (siginfo_er): New globals. Move from windows-nat.c.
9375
9d8679cc
TT
93762020-04-08 Tom Tromey <tromey@adacore.com>
9377
9378 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9379 (handle_load_dll): Update.
9380 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9381
28688adf
TT
93822020-04-08 Tom Tromey <tromey@adacore.com>
9383
9384 * windows-nat.c (enum thread_disposition_type): Move to
9385 nat/windows-nat.h.
9386 (windows_nat::thread_rec): Rename from thread_rec. No longer
9387 static.
9388 (windows_add_thread, windows_nat_target::fetch_registers)
9389 (windows_nat_target::store_registers, handle_exception)
9390 (windows_nat_target::resume, get_windows_debug_event)
9391 (windows_nat_target::get_tib_address)
9392 (windows_nat_target::thread_name)
9393 (windows_nat_target::thread_alive): Update.
9394 * nat/windows-nat.h (enum thread_disposition_type): Move from
9395 windows-nat.c.
9396 (thread_rec): Declare.
9397
4834dad0
TT
93982020-04-08 Tom Tromey <tromey@adacore.com>
9399
9400 * windows-nat.c: Add "using namespace".
9401 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9402 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9403
65bafd5b
TT
94042020-04-08 Tom Tromey <tromey@adacore.com>
9405
9406 * nat/windows-nat.h (struct windows_thread_info): Declare
9407 destructor.
9408 * nat/windows-nat.c (~windows_thread_info): New.
9409
0a4afda3
TT
94102020-04-08 Tom Tromey <tromey@adacore.com>
9411
9412 PR gdb/22992
9413 * windows-nat.c (current_event): Update comment.
9414 (last_wait_event, desired_stop_thread_id): New globals.
9415 (struct pending_stop): New.
9416 (pending_stops): New global.
9417 (windows_nat_target) <stopped_by_sw_breakpoint>
9418 <supports_stopped_by_sw_breakpoint>: New methods.
9419 (windows_fetch_one_register): Add assertions. Adjust PC.
9420 (windows_continue): Handle pending stops. Suspend other threads
9421 when stepping. Use last_wait_event
9422 (wait_for_debug_event): New function.
9423 (get_windows_debug_event): Use wait_for_debug_event. Handle
9424 pending stops. Queue spurious stops.
9425 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9426 (windows_nat_target::kill): Use wait_for_debug_event.
9427 * nat/windows-nat.h (struct windows_thread_info)
9428 <stopped_at_software_breakpoint>: New field.
9429 * nat/windows-nat.c (windows_thread_info::resume): Clear
9430 stopped_at_software_breakpoint.
9431
8e61ebec
TT
94322020-04-08 Tom Tromey <tromey@adacore.com>
9433
9434 * windows-nat.c (enum thread_disposition_type): New.
9435 (thread_rec): Replace "get_context" parameter with "disposition";
9436 change type.
9437 (windows_add_thread, windows_nat_target::fetch_registers)
9438 (windows_nat_target::store_registers, handle_exception)
9439 (windows_nat_target::resume, get_windows_debug_event)
9440 (windows_nat_target::get_tib_address)
9441 (windows_nat_target::thread_name)
9442 (windows_nat_target::thread_alive): Update.
9443
98a03287
TT
94442020-04-08 Tom Tromey <tromey@adacore.com>
9445
9446 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9447 (windows_continue): Use windows_continue::resume.
9448 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9449 resume>: Declare new methods.
9450 * nat/windows-nat.c: New file.
9451 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9452
7c7411bc
TT
94532020-04-08 Tom Tromey <tromey@adacore.com>
9454
9455 * windows-nat.c (windows_add_thread, windows_delete_thread)
9456 (windows_nat_target::fetch_registers)
9457 (windows_nat_target::store_registers, fake_create_process)
9458 (windows_nat_target::resume, windows_nat_target::resume)
9459 (get_windows_debug_event, windows_nat_target::wait)
9460 (windows_nat_target::pid_to_str)
9461 (windows_nat_target::get_tib_address)
9462 (windows_nat_target::get_ada_task_ptid)
9463 (windows_nat_target::thread_name)
9464 (windows_nat_target::thread_alive): Use lwp, not tid.
9465
2950fdf7
TT
94662020-04-08 Tom Tromey <tromey@adacore.com>
9467
9468 * windows-nat.c (handle_exception)
9469 (windows_nat_target::thread_name): Update.
9470 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9471 <name>: Now unique_xmalloc_ptr.
9472
62fe396b
TT
94732020-04-08 Tom Tromey <tromey@adacore.com>
9474
9475 * windows-nat.c (thread_rec)
9476 (windows_nat_target::fetch_registers): Update.
9477 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9478 Update comment.
9479 <debug_registers_changed, reload_context>: Now bool.
9480
e9534bd2
TT
94812020-04-08 Tom Tromey <tromey@adacore.com>
9482
9483 * windows-nat.c (windows_add_thread): Use new.
9484 (windows_init_thread_list, windows_delete_thread): Use delete.
9485 (get_windows_debug_event): Update.
9486 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9487 destructor, and initializers.
9488
ae1f8880
TT
94892020-04-08 Tom Tromey <tromey@adacore.com>
9490
9491 * windows-nat.c (struct windows_thread_info): Remove.
9492 * nat/windows-nat.h: New file.
9493
55a1e039
TT
94942020-04-08 Tom Tromey <tromey@adacore.com>
9495
9496 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9497 (thread_rec, windows_add_thread, windows_delete_thread)
9498 (windows_continue): Update.
9499
93366324
TT
95002020-04-08 Tom Tromey <tromey@adacore.com>
9501
9502 * windows-nat.c (struct windows_thread_info): Remove typedef.
9503 (thread_head): Remove.
9504 (thread_list): New global.
9505 (thread_rec, windows_add_thread, windows_init_thread_list)
9506 (windows_delete_thread, windows_continue): Update.
9507
0f2265e2
SM
95082020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9509
9510 * windows-tdep.h (windows_init_abi): Add comment.
9511 (cygwin_init_abi): New declaration.
9512 * windows-tdep.c: Split signal enumeration in two, one for
9513 Windows and one for Cygwin.
9514 (windows_gdb_signal_to_target): Only deal with signal of the
9515 Windows OS ABI.
9516 (cygwin_gdb_signal_to_target): New function.
9517 (windows_init_abi): Rename to windows_init_abi_common, don't set
9518 gdb_signal_to_target gdbarch method. Add new new function with
9519 this name.
9520 (cygwin_init_abi): New function.
9521 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9522 comment. Don't call windows_init_abi.
9523 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9524 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9525 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9526 i386_windows_init_abi_common, don't call windows_init_abi. Add
9527 a new function of this name.
9528 (i386_cygwin_init_abi): New function.
9529 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9530 OS ABI Cygwin.
9531
3810f182
SM
95322020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9533
9534 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9535 parameter.c.
9536 (dwarf2_read_gdb_index): Update.
9537
063f8e80
KR
95382020-04-07 Kamil Rytarowski <n54@gmx.com>
9539
9540 * nbsd-tdep.c: Include "objfiles.h".
9541 (nbsd_skip_solib_resolver): New.
9542 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9543
85a9510c 95442020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9545
9546 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9547 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9548 with DW_LLE_base_addressx are being emitted in DWARFv5.
9549 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9550 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9551 unsigned integer.
9552
9fc3eaae 95532020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9554
9555 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9556 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9557 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9558 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9559 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9560 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9561 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9562
9563
41144253 95642020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9565
9566 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9567 (read_loclist_index): New function definition.
9568 (lookup_loclist_base): New function definition.
9569 (read_loclist_header): New function definition.
9570 (dwarf2_cu): Add loclist_base and loclist_header field.
9571 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9572 (read_full_die_1): Read the value of DW_AT_loclists_base.
9573 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9574 (read_attribute_value): Handle DW_FORM_loclistx.
9575 (skip_one_die): Handle DW_FORM_loclistx.
9576 (loclist_header): New structure declaration.
9577 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9578
9f4e76a4
SM
95792020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9580
9581 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9582 constructor. Remove `addr` parameter from other constructor and
9583 add `per_cu` parameter.
9584 * dwarf2/read.c (create_partial_symtab): Update.
9585
25c11aca
TV
95862020-04-07 Tom de Vries <tdevries@suse.de>
9587
9588 PR symtab/25796
9589 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9590 (partial_die_info::fixup): Inherit has_const_value.
9591
5707e24b
TV
95922020-04-07 Tom de Vries <tdevries@suse.de>
9593
9594 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9595 symbols without address.
9596
05f00e22
KR
95972020-04-06 Kamil Rytarowski <n54@gmx.com>
9598
9599 * nbsd-nat.h (struct thread_info): Add forward declaration.
9600 (nbsd_nat_target::thread_alive): Add.
9601 (nbsd_nat_target::thread_name): Likewise.
9602 (nbsd_nat_target::update_thread_list): Likewise.
9603 (update_thread_list::post_attach): Likewise.
9604 (post_attach::pid_to_str): Likewise.
9605 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9606 (nbsd_thread_lister): Add.
9607 (nbsd_nat_target::thread_alive): Likewise.
9608 (nbsd_nat_target::thread_name): Likewise.
9609 (nbsd_add_threads): Likewise.
9610 (update_thread_list::post_attach): Likewise.
9611 (nbsd_nat_target::update_thread_list): Likewise.
9612 (post_attach::pid_to_str): Likewise.
9613
6ee448cc
TT
96142020-04-06 Tom Tromey <tromey@adacore.com>
9615
9616 * ada-valprint.c (print_variant_part): Extract the variant field.
9617 (print_field_values): Use the field as the outer value when
9618 recursing.
9619
dea34e8c
TT
96202020-04-06 Tom Tromey <tromey@adacore.com>
9621
9622 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9623 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9624 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9625 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9626 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9627
93689ce9
TT
96282020-04-06 Tom Tromey <tromey@adacore.com>
9629
9630 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9631 TYPE_CODE_ERROR.
9632
79743962
KR
96332020-04-06 Kamil Rytarowski <n54@gmx.com>
9634
9635 * nbsd-tdep.c: Include "gdbarch.h".
9636 Define enum with NetBSD signal numbers.
9637 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9638 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9639 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9640 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9641 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9642 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9643 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9644 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9645 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9646 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9647 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9648 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9649
9e7c9a03
HD
96502020-04-03 Hannes Domani <ssbssa@yahoo.de>
9651
9652 PR gdb/25325
9653 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9654
d9e49b61
TT
96552020-04-03 Tom Tromey <tromey@adacore.com>
9656
9657 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9658 Read constant block.
9659
e0fc5c3f
SM
96602020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9661
9662 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9663 (gdb_bfd_get_full_section_contents): New declaration.
9664 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9665 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9666 gdb_bfd_get_full_section_contents.
9667
e2ff18a0
SM
96682020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9669
9670 * exec.c (build_section_table): Replace internal_error with
9671 gdb_assert.
9672 (section_table_xfer_memory_partial): Likewise.
9673 * mdebugread.c (parse_partial_symbols): Likewise.
9674 * psymtab.c (lookup_partial_symbol): Likewise.
9675 * utils.c (wrap_here): Likewise.
9676
0830d301
TT
96772020-04-02 Tom Tromey <tromey@adacore.com>
9678
9679 * f-lang.c (build_fortran_types): Use arch_type to initialize
9680 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9681
e7da7f8f
TT
96822020-04-02 Tom Tromey <tromey@adacore.com>
9683
9684 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9685 of attributes.
9686
c90d28ac
AB
96872020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9688 Bernd Edlinger <bernd.edlinger@hotmail.de>
9689 Tom Tromey <tromey@adacore.com>
9690
9691 * buildsym.c (buildsym_compunit::record_line): Remove
9692 deduplication code.
9693
1aa98955
TV
96942020-04-02 Tom de Vries <tdevries@suse.de>
9695
9696 PR ada/24671
9697 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9698
d3214198
TV
96992020-04-02 Tom de Vries <tdevries@suse.de>
9700
9701 * dwarf2/read.c (dwarf2_gdb_index_functions,
9702 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9703 NULL.
9704 * psymtab.c (psym_lookup_global_symbol_language): New function.
9705 (psym_functions): Init psym_lookup_global_symbol_language with
9706 psym_lookup_global_symbol_language.
9707 * symfile-debug.c (debug_sym_quick_functions): Init
9708 lookup_global_symbol_language with NULL.
9709 * symfile.c (set_initial_language): Remove fixme comment.
9710 * symfile.h (struct quick_symbol_functions): Add
9711 lookup_global_symbol_language.
9712 * symtab.c (find_quick_global_symbol_language): New function.
9713 (find_main_name): Use find_quick_global_symbol_language.
9714
2836752f
SM
97152020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9716
9717 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9718
64dc2d4b
BE
97192020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9720
9721 * buildsym.c (record_line): Fix undefined behavior and preserve
9722 lines at eof.
9723
bbe3dc41
BE
97242020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9725
9726 * buildsym.c (record_line): Fix the resizing condition.
9727
6b4a335b
TT
97282020-04-01 Tom Tromey <tom@tromey.com>
9729
9730 * value.h (value_literal_complex): Add comment.
9731 * valops.c (value_literal_complex): Refer to value.h.
9732
3638a098
TT
97332020-04-01 Tom Tromey <tom@tromey.com>
9734
9735 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9736 (scalar_type): New rule, from typebase.
9737 (typebase): Use scalar_type. Recognize complex types.
9738 (field_name): Handle FLOAT_KEYWORD.
9739 (ident_tokens): Add _Complex and __complex__.
9740
c34e8714
TT
97412020-04-01 Tom Tromey <tom@tromey.com>
9742
9743 PR exp/25299:
9744 * valarith.c (promotion_type, complex_binop): New functions.
9745 (scalar_binop): Handle complex numbers. Use promotion_type.
9746 (value_pos, value_neg, value_complement): Handle complex numbers.
9747
fa649bb7
TT
97482020-04-01 Tom Tromey <tom@tromey.com>
9749
9750 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9751 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9752 (parse_number): Handle complex numbers.
9753
981c08ce
TT
97542020-04-01 Tom Tromey <tom@tromey.com>
9755
9756 * c-valprint.c (c_decorations): Change complex suffix to "i".
9757
4c99290d
TT
97582020-04-01 Tom Tromey <tom@tromey.com>
9759
9760 * valprint.c (generic_value_print_complex): Use accessors.
9761 * value.h (value_real_part, value_imaginary_part): Declare.
9762 * valops.c (value_real_part, value_imaginary_part): New
9763 functions.
9764 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9765
5b930b45
TT
97662020-04-01 Tom Tromey <tom@tromey.com>
9767
9768 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9769 (read_range_type): Update.
9770 * mdebugread.c (basic_type): Update.
9771 * go-lang.c (build_go_types): Use init_complex_type.
9772 * gdbtypes.h (struct main_type) <complex_type>: New member.
9773 (init_complex_type): Update.
9774 (arch_complex_type): Don't declare.
9775 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9776 Make name if none given. Use alloc_type_copy. Look for cached
9777 complex type.
9778 (arch_complex_type): Remove.
9779 (gdbtypes_post_init): Use init_complex_type.
9780 * f-lang.c (build_fortran_types): Use init_complex_type.
9781 * dwarf2/read.c (read_base_type): Update.
9782 * d-lang.c (build_d_types): Use init_complex_type.
9783 * ctfread.c (read_base_type): Update.
9784
53cccef1
TBA
97852020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9786
9787 * infrun.c (stop_all_threads): Update assertion, plus when
9788 stopping threads, take into account that we might be trying
9789 to stop an all-stop target.
9790 (stop_waiting): Call 'stop_all_threads' if there exists a
9791 non-stop target.
9792
a0714d30
TBA
97932020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9794
9795 * target.h (exists_non_stop_target): New function declaration.
9796 * target.c (exists_non_stop_target): New function.
9797
60e22c1e
HD
97982020-04-01 Hannes Domani <ssbssa@yahoo.de>
9799
9800 PR gdb/24789
9801 * eval.c (is_integral_or_integral_reference): New function.
9802 (evaluate_subexp_standard): Allow integer references in
9803 pointer arithmetic.
9804
e139a727
TBA
98052020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9806
9807 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9808 check for no ptid in the stop reply when the target is non-stop.
9809
e0802d59
TT
98102020-04-01 Tom Tromey <tromey@adacore.com>
9811
9812 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9813 "name" parameter to rvalue reference. Initialize m_name_holder.
9814 <lookup_name_info>: New overloads.
9815 <name>: Return gdb::string_view.
9816 <c_str>: New method.
9817 <make_ignore_params>: Update.
9818 <search_name_hash>: Update.
9819 <language_lookup_name>: Return const char *.
9820 <m_name>: Change type.
9821 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9822 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9823 (lookup_name_info::match_any): Update.
9824 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9825 Update.
9826 * minsyms.c (linkage_name_str): Update.
9827 * language.c (default_symbol_name_matcher): Update.
9828 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9829 Update.
9830 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9831 (ada_lookup_name_info::ada_lookup_name_info): Update.
9832 (literal_symbol_name_matcher): Update.
9833
8c072cb6
TT
98342020-04-01 Tom Tromey <tromey@adacore.com>
9835
9836 * psymtab.c (psymtab_search_name): Remove function.
9837 (psym_lookup_symbol): Create search name and lookup name here.
9838 (lookup_partial_symbol): Remove "name" parameter; add
9839 lookup_name.
9840 (psym_expand_symtabs_for_function): Update.
9841
6f29a534
TT
98422020-03-31 Joel Jones <joelkevinjones@gmail.com>
9843
9844 PR tui/25597:
9845 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9846
af62665e
TT
98472020-03-31 Tom Tromey <tromey@adacore.com>
9848
9849 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9850 memcpy.
9851
d1a89da5
NC
98522020-03-30 Nelson Chu <nelson.chu@sifive.com>
9853
9854 * features/riscv/32bit-csr.xml: Regenerated.
9855 * features/riscv/64bit-csr.xml: Regenerated.
9856
d8af9068
TT
98572020-03-30 Tom Tromey <tromey@adacore.com>
9858
9859 * ada-valprint.c (print_variant_part): Update.
9860 * ada-lang.h (ada_which_variant_applies): Update.
9861 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9862 outer_valaddr parameters; replace with "outer" value parameter.
9863 (to_fixed_variant_branch_type): Update.
9864
227c0bf4
PFC
98652020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9866
9867 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9868 <list>. Remove inclusion of observable.h.
9869 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9870 (struct arch_lwp_info): New struct.
9871 (class ppc_linux_dreg_interface): New class.
9872 (struct ppc_linux_process_info): New struct.
9873 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9874 <low_new_clone, low_forget_process, low_prepare_to_resume>
9875 <copy_thread_dreg_state, mark_thread_stale>
9876 <mark_debug_registers_changed, register_hw_breakpoint>
9877 <clear_hw_breakpoint, register_wp, clear_wp>
9878 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9879 <num_memory_accesses, get_trigger_type>
9880 <create_watchpoint_request, hwdebug_point_cmp>
9881 <init_arch_lwp_info, get_arch_lwp_info>
9882 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9883 methods.
9884 <struct ptid_hash>: New inner struct.
9885 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9886 members.
9887 (saved_dabr_value, hwdebug_info, max_slots_number)
9888 (struct hw_break_tuple, struct thread_points, ppc_threads)
9889 (have_ptrace_hwdebug_interface)
9890 (hwdebug_find_thread_points_by_tid)
9891 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9892 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9893 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9894 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9895 use m_dreg_interface.
9896 (hwdebug_point_cmp): Change to...
9897 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9898 reference arguments instead of pointers.
9899 (ppc_linux_nat_target::ranged_break_num_registers): Use
9900 m_dreg_interface.
9901 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9902 m_dreg_interface. Call register_hw_breakpoint.
9903 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9904 m_dreg_interface. Call clear_hw_breakpoint.
9905 (get_trigger_type): Change to...
9906 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9907 comment.
9908 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9909 use m_dreg_interface. Call register_hw_breakpoint.
9910 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9911 use m_dreg_interface. Call clear_hw_breakpoint.
9912 (can_use_watchpoint_cond_accel): Change to...
9913 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9914 method. Update comment, use m_dreg_interface and
9915 m_process_info.
9916 (calculate_dvc): Change to...
9917 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9918 m_dreg_interface.
9919 (num_memory_accesses): Change to...
9920 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9921 (check_condition): Change to...
9922 (ppc_linux_nat_target::check_condition): ...this method.
9923 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9924 comment, use m_dreg_interface.
9925 (create_watchpoint_request): Change to...
9926 (ppc_linux_nat_target::create_watchpoint_request): ...this
9927 method. Use m_dreg_interface.
9928 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9929 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9930 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9931 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9932 (ppc_linux_nat_target::low_forget_process)
9933 (ppc_linux_nat_target::low_new_fork)
9934 (ppc_linux_nat_target::low_new_clone)
9935 (ppc_linux_nat_target::low_delete_thread)
9936 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9937 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9938 only call mark_thread_stale.
9939 (ppc_linux_thread_exit): Remove.
9940 (ppc_linux_nat_target::stopped_data_address): Change to...
9941 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9942 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9943 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9944 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9945 comment. Call low_stopped_data_address.
9946 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9947 m_dreg_interface.
9948 (ppc_linux_nat_target::masked_watch_num_registers): Use
9949 m_dreg_interface.
9950 (ppc_linux_nat_target::copy_thread_dreg_state)
9951 (ppc_linux_nat_target::mark_thread_stale)
9952 (ppc_linux_nat_target::mark_debug_registers_changed)
9953 (ppc_linux_nat_target::register_hw_breakpoint)
9954 (ppc_linux_nat_target::clear_hw_breakpoint)
9955 (ppc_linux_nat_target::register_wp)
9956 (ppc_linux_nat_target::clear_wp)
9957 (ppc_linux_nat_target::init_arch_lwp_info)
9958 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9959 (_initialize_ppc_linux_nat): Remove observer callback.
9960
4db10d8f
PFC
99612020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9962
9963 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9964 (ppc_linux_nat_target::auxv_parse)
9965 (ppc_linux_nat_target::read_description)
9966 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9967 Move up.
9968
1310c1b0
PFC
99692020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9970
9971 * linux-nat.h (low_new_clone): New method.
9972 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9973
69b037c3
SM
99742020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9975
9976 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9977 (dbx_expand_psymtab): ... this.
9978 (start_psymtab): Update.
9979 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9980 (mdebug_expand_psymtab): ... this.
9981 (parse_partial_symbols): Update.
9982 (new_psymtab): Update.
9983 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9984 (xcoff_expand_psymtab): ... this.
9985 (xcoff_start_psymtab): Update.
9986
48993951
SM
99872020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9988
9989 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9990 <expand_dependencies>: ... this.
9991 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9992 (partial_symtab::expand_dependencies): ... this.
9993 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9994 Update.
9995 (dwarf2_psymtab::expand_psymtab): Update.
9996 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9997 * mdebugread.c (psymtab_to_symtab_1): Update.
9998 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9999
3ad83046
SM
100002020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10001
10002 * psympriv.h (discard_psymtab): Remove.
10003 * dbxread.c (dbx_end_psymtab): Update.
10004 * xcoffread.c (xcoff_end_psymtab): Update.
10005
4d1b9ab6
TT
100062020-03-28 Tom Tromey <tom@tromey.com>
10007
10008 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10009 comment.
10010
f1749218
TT
100112020-03-28 Tom Tromey <tom@tromey.com>
10012
10013 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10014
ebea7626
HD
100152020-03-27 Hannes Domani <ssbssa@yahoo.de>
10016
10017 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10018
a879b4d5
JB
100192020-03-26 John Baldwin <jhb@FreeBSD.org>
10020
10021 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10022
0826b30a
TT
100232020-03-26 Tom Tromey <tom@tromey.com>
10024
10025 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10026 (mark_common_block_symbol_computed, read_tag_string_type)
10027 (attr_to_dynamic_prop, read_subrange_type): Update.
10028 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10029 to be methods on struct attribute.
10030 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10031 (read_call_site_scope, partial_die_info::read)
10032 (partial_die_info::read, lookup_die_type, follow_die_ref):
10033 Update.
10034 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10035 from dwarf2_get_ref_die_offset.
10036 (attribute::constant_value): New method, from
10037 dwarf2_get_attr_constant_value.
10038 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10039 Declare method.
10040 <constant_value>: New method.
10041
2b2558bf
TT
100422020-03-26 Tom Tromey <tom@tromey.com>
10043
10044 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10045 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10046 (dwarf_type_encoding_name): Move to stringify.c.
10047 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10048 * dwarf2/stringify.c: New file.
10049 * dwarf2/stringify.h: New file.
10050
eeb64781
TT
100512020-03-26 Tom Tromey <tom@tromey.com>
10052
10053 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10054 Rewrite.
10055
a39fdb41
TT
100562020-03-26 Tom Tromey <tom@tromey.com>
10057
10058 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10059 methods.
10060 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10061 (lookup_ranges_base): Likewise.
10062 (read_cutu_die_from_dwo, read_full_die_1): Update.
10063
436c571c
TT
100642020-03-26 Tom Tromey <tom@tromey.com>
10065
10066 * dwarf2/read.c (read_import_statement, read_file_scope)
10067 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10068 (read_lexical_block_scope, read_call_site_scope)
10069 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10070 (handle_struct_member_die, process_structure_scope)
10071 (update_enumeration_type_from_children)
10072 (process_enumeration_scope, read_array_type, read_common_block)
10073 (read_namespace, read_module, read_subroutine_type): Update.
10074 (sibling_die): Remove.
10075
052c8bb8
TT
100762020-03-26 Tom Tromey <tom@tromey.com>
10077
10078 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10079 (build_type_psymtabs_reader, read_structure_type)
10080 (read_enumeration_type, read_full_die_1): Update.
10081 (dwarf2_attr_no_follow): Move to die.h.
10082 * dwarf2/die.h (struct die_info) <attr>: New method.
10083
2b24b6e4
TT
100842020-03-26 Tom Tromey <tom@tromey.com>
10085
10086 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10087 <base_address>: Now an optional.
10088 (dwarf2_find_base_address, dwarf2_rnglists_process)
10089 (dwarf2_ranges_process, fill_in_loclist_baton)
10090 (dwarf2_symbol_mark_computed): Update.
10091
c2d50fd0
TT
100922020-03-26 Tom Tromey <tom@tromey.com>
10093
10094 * dwarf2/read.c (struct die_info): Move to die.h.
10095 * dwarf2/die.h: New file.
10096
0df7ad3a
TT
100972020-03-26 Tom Tromey <tom@tromey.com>
10098
10099 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10100 * dwarf2/read.c
10101 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10102 Move to line-header.c.
10103 (read_checked_initial_length_and_offset, read_formatted_entries):
10104 Likewise.
10105 (dwarf_decode_line_header): Split into two.
10106 * dwarf2/line-header.c
10107 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10108 Move from read.c.
10109 (read_checked_initial_length_and_offset, read_formatted_entries):
10110 Likewise.
10111 (dwarf_decode_line_header): New function, split from read.c.
10112
86c0bb4c
TT
101132020-03-26 Tom Tromey <tom@tromey.com>
10114
10115 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10116 Declare method.
10117 * dwarf2/read.c (read_attribute_value): Update.
10118 (dwarf2_per_objfile::read_line_string): Rename from
10119 read_indirect_line_string.
10120 (read_formatted_entries): Update.
10121
2ef46c2f
TT
101222020-03-26 Tom Tromey <tom@tromey.com>
10123
10124 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10125 variable.
10126
4f9c1eda
TT
101272020-03-26 Tom Tromey <tom@tromey.com>
10128
10129 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10130 const.
10131 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10132 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10133 parameter const.
10134
5a0e026f
TT
101352020-03-26 Tom Tromey <tom@tromey.com>
10136
10137 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10138 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10139 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10140 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10141
8844c11b
TT
101422020-03-26 Tom Tromey <tom@tromey.com>
10143
10144 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10145 file_names_size, file_full_name, file_file_name>: Use const.
10146 <file_name_at, file_names>: Add const overload.
10147 * dwarf2/line-header.c (line_header::file_file_name)
10148 (line_header::file_full_name): Update.
10149
c90ec28a
TT
101502020-03-26 Tom Tromey <tom@tromey.com>
10151
10152 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10153 (macro_start_file, consume_improper_spaces)
10154 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10155 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10156 (dwarf_decode_macros): Move to macro.c.
10157 * dwarf2/macro.c: New file.
10158 * dwarf2/macro.h: New file.
10159 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10160
4f44ae6c
TT
101612020-03-26 Tom Tromey <tom@tromey.com>
10162
10163 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10164 method.
10165 * dwarf2/section.c: New method. From
10166 read_indirect_string_at_offset_from.
10167 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10168 (read_indirect_string_at_offset_from): Move to section.c.
10169 (read_indirect_string_at_offset): Rewrite.
10170 (read_indirect_line_string_at_offset): Remove.
10171 (read_indirect_string, read_indirect_line_string)
10172 (dwarf_decode_macro_bytes): Update.
10173
a0194fa8
TT
101742020-03-26 Tom Tromey <tom@tromey.com>
10175
10176 * dwarf2/section.h (struct dwarf2_section_info)
10177 <overload_complaint>: Declare.
10178 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10179 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10180 Rename from dwarf2_section_buffer_overflow_complaint.
10181 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10182 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10183
3d27bbdb
TT
101842020-03-26 Tom Tromey <tom@tromey.com>
10185
10186 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10187 Declare.
10188 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10189 Move from read.c.
10190 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10191 to section.c.
10192
9eac9650
TT
101932020-03-26 Tom Tromey <tom@tromey.com>
10194
10195 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10196
bf80d710
TT
101972020-03-26 Tom Tromey <tom@tromey.com>
10198
10199 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10200 "builder".
10201 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10202 parameter.
10203 (dwarf_decode_macros): Update.
10204
0314b390
TT
102052020-03-26 Tom Tromey <tom@tromey.com>
10206
10207 * dwarf2/read.c (read_attribute_value): Update.
10208 (read_indirect_string_from_dwz): Move to dwz.c; change into
10209 method.
10210 (dwarf_decode_macro_bytes): Update.
10211 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10212 * dwarf2/dwz.c: New file.
10213 * Makefile.in (COMMON_SFILES): Add dwz.c.
10214
9fda78b6
TT
102152020-03-26 Tom Tromey <tom@tromey.com>
10216
10217 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10218 * dwarf2/read.c: Add include.
10219 * dwarf2/index-write.c: Add include.
10220 * dwarf2/index-cache.c: Add include.
10221 * dwarf2/dwz.h: New file.
10222
33aa3c10
TT
102232020-03-25 Tom Tromey <tom@tromey.com>
10224
10225 * compile/compile-object-load.c (get_out_value_type): Mention
10226 correct symbol name in error message.
10227
d503b685
HD
102282020-03-25 Hannes Domani <ssbssa@yahoo.de>
10229
10230 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10231
7b1eff95
TV
102322020-03-25 Tom de Vries <tdevries@suse.de>
10233
10234 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10235 * symmisc.c (dump_symtab_1): Print user and includes fields.
10236 (maintenance_info_symtabs): Same.
10237
dd895392
AB
102382020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10239
10240 PR gdb/25534
10241 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10242 (riscv_regcache_cooked_write): New function.
10243 (riscv_push_dummy_call): Use new function.
10244 (riscv_return_value): Likewise.
10245
5ab2fbf1
SM
102462020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10247
10248 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10249 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10250 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10251 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10252 * infrun.c (follow_fork): Likewise.
10253 (follow_fork_inferior): Likewise.
10254 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10255 * linux-nat.h (class linux_nat_target): Likewise.
10256 * remote.c (class remote_target) <follow_fork>: Likewise.
10257 (remote_target::follow_fork): Likewise.
10258 * target-delegates.c: Re-generate.
10259 * target.c (default_follow_fork): Likewise.
10260 (target_follow_fork): Likewise.
10261 * target.h (struct target_ops) <follow_fork>: Likewise.
10262 (target_follow_fork): Likewise.
10263
a64fafb5
TV
102642020-03-24 Tom de Vries <tdevries@suse.de>
10265
10266 * psymtab.c (maintenance_info_psymtabs): Print user field.
10267
fe26d3a3
TT
102682020-03-20 Tom Tromey <tromey@adacore.com>
10269
10270 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10271 const.
10272 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10273 const.
10274
c884cc46
SM
102752020-03-20 Simon Marchi <simon.marchi@efficios.com>
10276
10277 * ptrace.m4: Don't check for ptrace declaration.
10278 * config.in: Re-generate.
10279 * configure: Re-generate.
10280 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10281 not defined.
10282
1ff700c2
KR
102832020-03-20 Kamil Rytarowski <n54@gmx.com>
10284
10285 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10286 `PTRACE_TYPE_RET'.
10287 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10288 * sparc-nat.c (gdb_ptrace): Likewise.
10289 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10290
f7d4f0b1
TT
102912020-03-20 Tom Tromey <tromey@adacore.com>
10292
10293 * c-exp.y (lex_one_token): Fix assert.
10294
f67210ff
TT
102952020-03-20 Tom Tromey <tromey@adacore.com>
10296
10297 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10298 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10299 strncpy call.
10300
1773be9e
TT
103012020-03-20 Tom Tromey <tromey@adacore.com>
10302
10303 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10304
70304be9
TT
103052020-03-20 Tom Tromey <tromey@adacore.com>
10306
10307 * ada-valprint.c (print_variant_part): Remove parameters; switch
10308 to value-based API.
10309 (print_field_values): Likewise.
10310 (ada_val_print_struct_union): Likewise.
10311 (ada_value_print_1): Update.
10312
9faa006d
KR
103132020-03-20 Kamil Rytarowski <n54@gmx.com>
10314
10315 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10316 nbsd_nat_target instead of inf_ptrace_target.
10317 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10318 nbsd_nat_target.
10319
4a90f062
KR
103202020-03-20 Kamil Rytarowski <n54@gmx.com>
10321
10322 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10323 it to the ptrace call.
10324 * (store_registers): Likewise.
10325
103262020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10327
10328 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10329 it to the ptrace call.
10330 * (store_registers): Likewise.
10331
2d07da27
LM
103322020-03-19 Luis Machado <luis.machado@linaro.org>
10333
10334 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10335 valid, fetch vg value from ptrace.
10336
f09db380
KR
103372020-03-19 Kamil Rytarowski <n54@gmx.com>
10338 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10339 * inf-ptrace.c: Likewise.
10340 * (gdb_ptrace): Add.
10341 * (inf_ptrace_target::resume): Update.
10342 * (inf_ptrace_target::xfer_partial): Likewise.
10343 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10344 * (inf_ptrace_peek_poke): Update.
10345
fcc7376e
KR
103462020-03-19 Kamil Rytarowski <n54@gmx.com>
10347
10348 * x86-bsd-nat.c (gdb_ptrace): New.
10349 * (x86bsd_dr_set): Add new argument `ptid'.
10350 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10351 x86bsd_dr_set_addr): Update.
10352
cada5fc9
AB
103532020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10354
10355 * remote.c (remote_target::process_stop_reply): Handle events for
10356 all threads differently.
10357
19a2740f
AB
103582020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10359
10360 * completer.c (completion_tracker::remove_completion): Define new
10361 function.
10362 * completer.h (completion_tracker::remove_completion): Declare new
10363 function.
10364 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10365 when adding a C++ function symbol.
10366
724fd9ba
AB
103672020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10368
10369 * completer.c (completion_tracker::completion_hash_entry): Define
10370 new class.
10371 (advance_to_filename_complete_word_point): Call
10372 recompute_lowest_common_denominator.
10373 (completion_tracker::completion_tracker): Call discard_completions
10374 to setup the hash table.
10375 (completion_tracker::discard_completions): Allow for being called
10376 from the constructor, pass new equal function, and element deleter
10377 when constructing the hash table. Initialise new class member
10378 variables.
10379 (completion_tracker::maybe_add_completion): Remove use of
10380 m_entries_vec, and store more information into m_entries_hash.
10381 (completion_tracker::recompute_lcd_visitor): New function, most
10382 content taken from...
10383 (completion_tracker::recompute_lowest_common_denominator):
10384 ...here, this now just visits each item in the hash calling the
10385 above visitor.
10386 (completion_tracker::build_completion_result): Remove use of
10387 m_entries_vec, call recompute_lowest_common_denominator.
10388 * completer.h (completion_tracker::have_completions): Remove use
10389 of m_entries_vec.
10390 (completion_tracker::completion_hash_entry): Declare new class.
10391 (completion_tracker::recompute_lowest_common_denominator): Change
10392 function signature.
10393 (completion_tracker::recompute_lcd_visitor): Declare new function.
10394 (completion_tracker::m_entries_vec): Delete.
10395 (completion_tracker::m_entries_hash): Initialize to NULL.
10396 (completion_tracker::m_lowest_common_denominator_valid): New
10397 member variable.
10398 (completion_tracker::m_lowest_common_denominator_max_length): New
10399 member variable.
10400
5a82b8a1
KR
104012020-03-17 Kamil Rytarowski <n54@gmx.com>
10402
10403 * regformats/regdef.h: Put reg in gdb namespace.
10404
fb516a69
KR
104052020-03-17 Kamil Rytarowski <n54@gmx.com>
10406
10407 * i386-bsd-nat.c (gdb_ptrace): New.
10408 * (i386bsd_fetch_inferior_registers,
10409 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10410 * (i386bsd_fetch_inferior_registers,
10411 i386bsd_store_inferior_registers) Use gdb_ptrace.
10412
1c0aa1fb
KR
104132020-03-17 Kamil Rytarowski <n54@gmx.com>
10414
10415 * amd64-bsd-nat.c (gdb_ptrace): New.
10416 * (amd64bsd_fetch_inferior_registers,
10417 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10418 * (amd64bsd_fetch_inferior_registers,
10419 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10420
5ccd2fb7
KR
104212020-03-17 Kamil Rytarowski <n54@gmx.com>
10422
10423 * user-regs.c (user_reg::read): Rename to...
10424 (user_reg::xread): ...this.
10425 * (append_user_reg): Rename argument `read' to `xread'.
10426 * (user_reg_add_builtin): Likewise.
10427 * (user_reg_add): Likewise.
10428 * (value_of_user_reg): Likewise.
10429
2108a63a
KR
104302020-03-17 Kamil Rytarowski <n54@gmx.com>
10431
10432 * sparc-nat.c (gdb_ptrace): New.
10433 * sparc-nat.c (sparc_fetch_inferior_registers)
10434 (sparc_store_inferior_registers) Remove obsolete comment.
10435 * sparc-nat.c (sparc_fetch_inferior_registers)
10436 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10437 * sparc-nat.c (sparc_fetch_inferior_registers)
10438 (sparc_store_inferior_registers) Use gdb_ptrace.
10439
a225c9a8
KR
104402020-03-17 Kamil Rytarowski <n54@gmx.com>
10441
10442 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10443 it to the ptrace call.
10444 * sh-nbsd-nat.c (store_registers): Likewise.
10445
98097623
KR
104462020-03-17 Kamil Rytarowski <n54@gmx.com>
10447
10448 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10449 nbsd_nat_target instead of inf_ptrace_target.
10450 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10451 nbsd_nat_target.
10452
9e38d619
KR
104532020-03-17 Kamil Rytarowski <n54@gmx.com>
10454
10455 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10456
a2ecbe9f
KR
104572020-03-17 Kamil Rytarowski <n54@gmx.com>
10458
10459 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10460 <sys/sysctl.h>.
10461 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10462
58990295
TV
104632020-03-17 Tom de Vries <tdevries@suse.de>
10464
10465 PR gdb/23710
10466 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10467 fields.
10468 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10469 fields.
10470 (process_imported_unit_die): Skip import of c++ CUs.
10471
771dd3a8
TT
104722020-03-16 Tom Tromey <tom@tromey.com>
10473
10474 * p-valprint.c (pascal_object_print_value): Initialize
10475 base_value.
10476
817a7585
AK
104772020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10478 Shahab Vahedi <shahab@synopsys.com>
10479
10480 * Makefile.in: Add arch/arc.o
10481 * configure.tgt: Likewise.
10482 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10483 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10484 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10485 * arc-tdep.h (arc_read_description): Add proto type.
10486 * arch/arc.c: New file.
10487 * arch/arc.h: Likewise.
10488 * features/Makefile: Replace old target descriptions with new.
10489 * features/arc-arcompact.c: Remove.
10490 * features/arc-arcompact.xml: Likewise.
10491 * features/arc-v2.c: Likewise
10492 * features/arc-v2.xml: Likewise
10493 * features/arc/aux-arcompact.xml: New file.
10494 * features/arc/aux-v2.xml: Likewise.
10495 * features/arc/core-arcompact.xml: Likewise.
10496 * features/arc/core-v2.xml: Likewise.
10497 * features/arc/aux-arcompact.c: Generate.
10498 * features/arc/aux-v2.c: Likewise.
10499 * features/arc/core-arcompact.c: Likewise.
10500 * features/arc/core-v2.c: Likewise.
10501 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10502
67430cd0
TT
105032020-03-16 Tom Tromey <tromey@adacore.com>
10504
10505 PR gdb/25663:
10506 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10507 putting value into bcache.
10508
30efb6c7
SM
105092020-03-16 Simon Marchi <simon.marchi@efficios.com>
10510
10511 PR gdb/21500
10512 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10513 to...
10514 (amd64_windows_init_abi_common): ... this. Don't set size of
10515 long type.
10516 (amd64_windows_init_abi): New function.
10517 (amd64_cygwin_init_abi): New function.
10518 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10519 the Cygwin OS ABI.
10520 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10521 comment.
10522
8db52437
SM
105232020-03-16 Simon Marchi <simon.marchi@efficios.com>
10524
10525 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10526 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10527 (pe_import_directory_entry): New struct type.
10528 (is_linked_with_cygwin_dll): New function.
10529 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10530 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10531 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10532
5982a56a
SM
105332020-03-16 Simon Marchi <simon.marchi@efficios.com>
10534
10535 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10536 i386_cygwin_core_osabi_sniffer.
10537
7a1998df
SM
105382020-03-16 Simon Marchi <simon.marchi@efficios.com>
10539
10540 * i386-cygwin-tdep.c: Rename to...
10541 * i386-windows-tdep.c: ... this.
10542 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10543 i386-windows-tdep.c.
10544 * configure.tgt: Likewise.
10545
053205cc
SM
105462020-03-16 Simon Marchi <simon.marchi@efficios.com>
10547
10548 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10549 * osabi.c (gdb_osabi_names): Add "Windows".
10550 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10551 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10552 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10553 i386_cygwin_osabi_sniffer.
10554 (_initialize_i386_cygwin_tdep): Register OS ABI
10555 GDB_OSABI_WINDOWS for i386.
10556 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10557 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10558 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10559 for x86-64.
10560 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10561 when the target matches '*-*-mingw*'.
10562
fe4b2ee6
SM
105632020-03-16 Simon Marchi <simon.marchi@efficios.com>
10564
10565 * defs.h (enum gdb_osabi): Move to...
10566 * osabi.h (enum gdb_osabi): ... here.
10567 * gdbarch.sh: Include osabi.h in gdbarch.h.
10568 * gdbarch.h: Re-generate.
10569
cb9b645d
SM
105702020-03-16 Simon Marchi <simon.marchi@efficios.com>
10571
10572 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10573 function.
10574 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10575
3293bbaf
TT
105762020-03-14 Tom Tromey <tom@tromey.com>
10577
10578 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10579 for C++.
10580 (c_type_print_modifier): Likewise. Add "language" parameter.
10581 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10582 (c_type_print_base_1): Update.
10583 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10584 constants.
10585 * type-stack.c (type_stack::insert): Handle tp_atomic and
10586 tp_restrict.
10587 (type_stack::follow_type_instance_flags): Likewise.
10588 (type_stack::follow_types): Likewise. Merge type-following code.
10589 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10590 (space_identifier, cv_with_space_id)
10591 (const_or_volatile_or_space_identifier_noopt)
10592 (const_or_volatile_or_space_identifier): Remove.
10593 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10594 rules.
10595 (ptr_operator, typebase): Update.
10596 (enum token_flag) <FLAG_C>: New constant.
10597 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10598 "_Atomic".
10599 (lex_one_token): Handle FLAG_C.
10600
154151a6
KR
106012020-03-14 Kamil Rytarowski <n54@gmx.com>
10602
10603 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10604 it to the ptrace call.
10605 * m68k-bsd-nat.c (store_registers): Likewise.
10606
bc107784
KR
106072020-03-14 Kamil Rytarowski <n54@gmx.com>
10608
10609 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10610 gdb_byte *.
10611 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10612 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10613 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10614
01a80117
KR
106152020-03-14 Kamil Rytarowski <n54@gmx.com>
10616
10617 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10618 nbsd_nat_target instead of inf_ptrace_target.
10619 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10620 nbsd_nat_target.
10621
f90280ca
KR
106222020-03-14 Kamil Rytarowski <n54@gmx.com>
10623
10624 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10625 register_t.
10626
6def66f1
KR
106272020-03-14 Kamil Rytarowski <n54@gmx.com>
10628
10629 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10630 it to the ptrace call.
10631 * alpha-bsd-nat.c (store_registers): Likewise.
10632
66eaca97
KR
106332020-03-14 Kamil Rytarowski <n54@gmx.com>
10634
10635 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10636 includes.
10637 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10638 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10639 fill_fpregset): Likewise.
10640
4fed520b
KR
106412020-03-14 Kamil Rytarowski <n54@gmx.com>
10642
10643 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10644 nbsd_nat_target instead of inf_ptrace_target.
10645 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10646 nbsd_nat_target.
10647
2190cf06
KR
106482020-03-14 Kamil Rytarowski <n54@gmx.com>
10649
10650 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10651 register_t.
10652
75c56d3d
KR
106532020-03-14 Kamil Rytarowski <n54@gmx.com>
10654
10655 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10656 it to the ptrace call.
10657 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10658 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10659 * arm-nbsd-nat.c (store_register): Likewise.
10660 * arm-nbsd-nat.c (store_regs): Likewise.
10661 * arm-nbsd-nat.c (store_fp_register): Likewise.
10662 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10663
6018d381
KR
106642020-03-14 Kamil Rytarowski <n54@gmx.com>
10665
10666 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10667 nbsd_nat_target instead of inf_ptrace_target.
10668 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10669 nbsd_nat_target.
10670
013f99f0
KR
106712020-03-14 Kamil Rytarowski <n54@gmx.com>
10672
10673 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10674 it to the ptrace call.
10675 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10676
12753073
KR
106772020-03-14 Kamil Rytarowski <n54@gmx.com>
10678
6227b330
KR
10679 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10680 it to the ptrace call.
10681 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10682
106832020-03-14 Kamil Rytarowski <n54@gmx.com>
10684
10685 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10686 gdb_byte *.
12753073
KR
10687 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10688
d5be5fa4
KR
106892020-03-14 Kamil Rytarowski <n54@gmx.com>
10690
10691 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10692 instead of inf_ptrace_target.
10693 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10694 nbsd_nat_target.
10695
8110f842
KR
106962020-03-14 Kamil Rytarowski <n54@gmx.com>
10697
10698 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10699 register_t.
10700
52feded7
KR
107012020-03-14 Kamil Rytarowski <n54@gmx.com>
10702
10703 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10704 register_t.
10705
25567eee
KR
107062020-03-14 Kamil Rytarowski <n54@gmx.com>
10707
10708 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10709 register_t.
10710
426a9c18
TT
107112020-03-13 Tom Tromey <tom@tromey.com>
10712
10713 * value.h (val_print): Don't declare.
10714 * valprint.h (val_print_array_elements)
10715 (val_print_scalar_formatted, generic_val_print): Don't declare.
10716 * valprint.c (generic_val_print_array): Take a struct value.
10717 (generic_val_print_ptr, generic_val_print_memberptr)
10718 (generic_val_print_bool, generic_val_print_int)
10719 (generic_val_print_char, generic_val_print_complex)
10720 (generic_val_print): Remove.
10721 (generic_value_print): Update.
10722 (do_val_print): Remove unused parameters. Don't call
10723 la_val_print.
10724 (val_print): Remove.
10725 (common_val_print): Update. Don't call value_check_printable.
10726 (val_print_scalar_formatted, val_print_array_elements): Remove.
10727 * rust-lang.c (rust_val_print): Remove.
10728 (rust_language_defn): Update.
10729 * p-valprint.c (pascal_val_print): Remove.
10730 (pascal_value_print_inner): Update.
10731 (pascal_object_print_val_fields, pascal_object_print_val):
10732 Remove.
10733 (pascal_object_print_static_field): Update.
10734 * p-lang.h (pascal_val_print): Don't declare.
10735 * p-lang.c (pascal_language_defn): Update.
10736 * opencl-lang.c (opencl_language_defn): Update.
10737 * objc-lang.c (objc_language_defn): Update.
10738 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10739 * m2-lang.h (m2_val_print): Don't declare.
10740 * m2-lang.c (m2_language_defn): Update.
10741 * language.h (struct language_defn) <la_val_print>: Remove.
10742 * language.c (unk_lang_value_print_inner): Rename. Change
10743 argument types.
10744 (unknown_language_defn, auto_language_defn): Update.
10745 * go-valprint.c (go_val_print): Remove.
10746 * go-lang.h (go_val_print): Don't declare.
10747 * go-lang.c (go_language_defn): Update.
10748 * f-valprint.c (f_val_print): Remove.
10749 * f-lang.h (f_value_print): Don't declare.
10750 * f-lang.c (f_language_defn): Update.
10751 * d-valprint.c (d_val_print): Remove.
10752 * d-lang.h (d_value_print): Don't declare.
10753 * d-lang.c (d_language_defn): Update.
10754 * cp-valprint.c (cp_print_value_fields)
10755 (cp_print_value_fields_rtti, cp_print_value): Remove.
10756 (cp_print_static_field): Update.
10757 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10758 (c_val_print_struct, c_val_print_union, c_val_print_int)
10759 (c_val_print_memberptr, c_val_print): Remove.
10760 * c-lang.h (c_val_print_array, cp_print_value_fields)
10761 (cp_print_value_fields_rtti): Don't declare.
10762 * c-lang.c (c_language_defn, cplus_language_defn)
10763 (asm_language_defn, minimal_language_defn): Update.
10764 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10765 (ada_val_print_enum): Take a struct value.
10766 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10767 (ada_val_print): Remove.
10768 (ada_value_print_1): Update.
10769 (printable_val_type): Remove.
10770 * ada-lang.h (ada_val_print): Don't declare.
10771 * ada-lang.c (ada_language_defn): Update.
10772
42331a1e
TT
107732020-03-13 Tom Tromey <tom@tromey.com>
10774
10775 * valprint.c (do_val_print): Update.
10776 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10777 a struct value.
10778 (value_to_value_object_no_release): Declare.
10779 * python/py-value.c (value_to_value_object_no_release): New
10780 function.
10781 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10782 struct value.
10783 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10784 function.
10785 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10786 a struct value.
10787 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10788 Declare.
10789 (gdbscm_apply_val_pretty_printer): Take a struct value.
10790 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10791 value.
10792 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10793 value.
10794 * extension-priv.h (struct extension_language_ops)
10795 <apply_val_pretty_printer>: Take a struct value.
10796 * cp-valprint.c (cp_print_value): Create a struct value.
10797 (cp_print_value): Update.
10798
3a916a97
TT
107992020-03-13 Tom Tromey <tom@tromey.com>
10800
10801 * ada-valprint.c (print_field_values): Call common_val_print.
10802
b59eac37
TT
108032020-03-13 Tom Tromey <tom@tromey.com>
10804
10805 * ada-valprint.c (val_print_packed_array_elements): Remove
10806 bitoffset and val parameters. Call common_val_print.
10807 (ada_val_print_string): Remove offset, address, and original_value
10808 parameters.
10809 (ada_val_print_array): Update.
10810 (ada_value_print_array): New function.
10811 (ada_value_print_1): Call it.
10812
03371129
TT
108132020-03-13 Tom Tromey <tom@tromey.com>
10814
10815 * ada-valprint.c (ada_value_print): Use common_val_print.
10816
2e088f8b
TT
108172020-03-13 Tom Tromey <tom@tromey.com>
10818
10819 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10820
39ef85a8
TT
108212020-03-13 Tom Tromey <tom@tromey.com>
10822
10823 * ada-valprint.c (ada_value_print_num): New function.
10824 (ada_value_print_1): Use it.
10825
b9fa6e07
TT
108262020-03-13 Tom Tromey <tom@tromey.com>
10827
10828 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10829
416595d6
TT
108302020-03-13 Tom Tromey <tom@tromey.com>
10831
10832 * ada-valprint.c (ada_value_print_ptr): New function.
10833 (ada_value_print_1): Use it.
10834
5b5e15ec
TT
108352020-03-13 Tom Tromey <tom@tromey.com>
10836
10837 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10838 call common_val_print.
10839 (ada_val_print_1): Update.
10840 (ada_value_print_1): New function.
10841 (ada_value_print_inner): Rewrite.
10842
fbf54e75
TT
108432020-03-13 Tom Tromey <tom@tromey.com>
10844
10845 * cp-valprint.c (cp_print_value_fields): Update.
10846 (cp_print_value): New function.
10847
64b653ca
TT
108482020-03-13 Tom Tromey <tom@tromey.com>
10849
10850 * m2-valprint.c (m2_value_print_inner): Use
10851 cp_print_value_fields.
10852 * cp-valprint.c (cp_print_value_fields): New function.
10853 * c-valprint.c (c_value_print_struct): New function.
10854 (c_value_print_inner): Use c_value_print_struct.
10855 * c-lang.h (cp_print_value_fields): Declare.
10856
6999f067
TT
108572020-03-13 Tom Tromey <tom@tromey.com>
10858
10859 * c-valprint.c (c_value_print_array): New function.
10860 (c_value_print_inner): Use it.
10861
ce80b8bd
TT
108622020-03-13 Tom Tromey <tom@tromey.com>
10863
10864 * c-valprint.c (c_value_print_memberptr): New function.
10865 (c_value_print_inner): Use it.
10866
2faac269
TT
108672020-03-13 Tom Tromey <tom@tromey.com>
10868
10869 * c-valprint.c (c_value_print_int): New function.
10870 (c_value_print_inner): Use it.
10871
da3e2c29
TT
108722020-03-13 Tom Tromey <tom@tromey.com>
10873
10874 * c-valprint.c (c_value_print_ptr): New function.
10875 (c_value_print_inner): Use it.
10876
50836231
TT
108772020-03-13 Tom Tromey <tom@tromey.com>
10878
10879 * c-valprint.c (c_value_print_inner): Rewrite.
10880
4f412b6e
TT
108812020-03-13 Tom Tromey <tom@tromey.com>
10882
10883 * valprint.c (generic_value_print_complex): New function.
10884 (generic_value_print): Use it.
10885
f5354008
TT
108862020-03-13 Tom Tromey <tom@tromey.com>
10887
10888 * valprint.c (generic_val_print_float): Don't call
10889 val_print_scalar_formatted.
10890 (generic_val_print, generic_value_print): Update.
10891
3eec3b05
TT
108922020-03-13 Tom Tromey <tom@tromey.com>
10893
10894 * valprint.c (generic_value_print_char): New function
10895 (generic_value_print): Use it.
10896
fdddfccb
TT
108972020-03-13 Tom Tromey <tom@tromey.com>
10898
10899 * valprint.c (generic_value_print_int): New function.
10900 (generic_value_print): Use it.
10901
6dde7521
TT
109022020-03-13 Tom Tromey <tom@tromey.com>
10903
10904 * valprint.c (generic_value_print_bool): New function.
10905 (generic_value_print): Use it.
10906
4112d2e6
TT
109072020-03-13 Tom Tromey <tom@tromey.com>
10908
10909 * valprint.c (generic_val_print_func): Simplify.
10910 (generic_val_print, generic_value_print): Update.
10911
65786af6
TT
109122020-03-13 Tom Tromey <tom@tromey.com>
10913
10914 * valprint.c (generic_val_print_flags): Remove.
10915 (generic_val_print, generic_value_print): Update.
10916 (val_print_type_code_flags): Add original_value parameter.
10917
40f3ce18
TT
109182020-03-13 Tom Tromey <tom@tromey.com>
10919
10920 * valprint.c (generic_val_print): Update.
10921 (generic_value_print): Update.
10922 * valprint.c (generic_val_print_enum): Don't call
10923 val_print_scalar_formatted.
10924
2a5b130b
TT
109252020-03-13 Tom Tromey <tom@tromey.com>
10926
10927 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10928 * valprint.c (generic_value_print_ptr): New function.
10929
abc66ce9
TT
109302020-03-13 Tom Tromey <tom@tromey.com>
10931
10932 * valprint.c (generic_value_print): Rewrite.
10933
07a32858
TT
109342020-03-13 Tom Tromey <tom@tromey.com>
10935
10936 * p-valprint.c (pascal_object_print_value_fields)
10937 (pascal_object_print_value): New functions.
10938
64d64d3a
TT
109392020-03-13 Tom Tromey <tom@tromey.com>
10940
10941 * p-valprint.c (pascal_value_print_inner): Rewrite.
10942
6a95a1f5
TT
109432020-03-13 Tom Tromey <tom@tromey.com>
10944
10945 * f-valprint.c (f_value_print_innner): Rewrite.
10946
59fcdac6
TT
109472020-03-13 Tom Tromey <tom@tromey.com>
10948
10949 * m2-valprint.c (m2_print_unbounded_array): New overload.
10950 (m2_print_unbounded_array): Update.
10951 (m2_print_array_contents): Take a struct value.
10952 (m2_value_print_inner): Rewrite.
10953
d133c3e1
TT
109542020-03-13 Tom Tromey <tom@tromey.com>
10955
10956 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10957 (d_value_print_inner): New function.
10958 * d-lang.h (d_value_print_inner): Declare.
10959 * d-lang.c (d_language_defn): Use d_value_print_inner.
10960
23b0f06b
TT
109612020-03-13 Tom Tromey <tom@tromey.com>
10962
10963 * go-valprint.c (go_value_print_inner): New function.
10964 * go-lang.h (go_value_print_inner): Declare.
10965 * go-lang.c (go_language_defn): Use go_value_print_inner.
10966
5f56f7cb
TT
109672020-03-13 Tom Tromey <tom@tromey.com>
10968
10969 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10970 API.
10971 (rust_val_print): Rewrite.
10972 (rust_value_print_inner): New function, from rust_val_print.
10973 (rust_language_defn): Use rust_value_print_inner.
10974
26792ee0
TT
109752020-03-13 Tom Tromey <tom@tromey.com>
10976
10977 * ada-valprint.c (ada_value_print_inner): New function.
10978 * ada-lang.h (ada_value_print_inner): Declare.
10979 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10980
24051bbe
TT
109812020-03-13 Tom Tromey <tom@tromey.com>
10982
10983 * f-valprint.c (f_value_print_innner): New function.
10984 * f-lang.h (f_value_print_innner): Declare.
10985 * f-lang.c (f_language_defn): Use f_value_print_innner.
10986
c0941be6
TT
109872020-03-13 Tom Tromey <tom@tromey.com>
10988
10989 * p-valprint.c (pascal_value_print_inner): New function.
10990 * p-lang.h (pascal_value_print_inner): Declare.
10991 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10992
62c4663d
TT
109932020-03-13 Tom Tromey <tom@tromey.com>
10994
10995 * m2-valprint.c (m2_value_print_inner): New function.
10996 * m2-lang.h (m2_value_print_inner): Declare.
10997 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10998
62182190
TT
109992020-03-13 Tom Tromey <tom@tromey.com>
11000
11001 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11002 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11003 * c-valprint.c (c_value_print_inner): New function.
11004 * c-lang.h (c_value_print_inner): Declare.
11005 * c-lang.c (c_language_defn, cplus_language_defn)
11006 (asm_language_defn, minimal_language_defn): Use
11007 c_value_print_inner.
11008
1e592a8a
TT
110092020-03-13 Tom Tromey <tom@tromey.com>
11010
11011 * p-valprint.c (pascal_object_print_value_fields): Now static.
11012 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11013
7fe471e9
TT
110142020-03-13 Tom Tromey <tom@tromey.com>
11015
11016 * c-valprint.c (c_val_print_array): Simplify.
11017
d121c6ce
TT
110182020-03-13 Tom Tromey <tom@tromey.com>
11019
11020 * valprint.c (value_print_array_elements): New function.
11021 * valprint.h (value_print_array_elements): Declare.
11022
4dba70ee
TT
110232020-03-13 Tom Tromey <tom@tromey.com>
11024
11025 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11026 * mips-tdep.c (mips_print_register): Use
11027 value_print_scalar_formatted.
11028
4f9ae810
TT
110292020-03-13 Tom Tromey <tom@tromey.com>
11030
11031 * valprint.h (value_print_scalar_formatted): Declare.
11032 * valprint.c (value_print_scalar_formatted): New function.
11033
156bfec9
TT
110342020-03-13 Tom Tromey <tom@tromey.com>
11035
11036 * valprint.h (generic_value_print): Declare.
11037 * valprint.c (generic_value_print): New function.
11038
2b4e573d
TT
110392020-03-13 Tom Tromey <tom@tromey.com>
11040
11041 * valprint.c (do_val_print): Call la_value_print_inner, if
11042 available.
11043 * rust-lang.c (rust_language_defn): Update.
11044 * p-lang.c (pascal_language_defn): Update.
11045 * opencl-lang.c (opencl_language_defn): Update.
11046 * objc-lang.c (objc_language_defn): Update.
11047 * m2-lang.c (m2_language_defn): Update.
11048 * language.h (struct language_defn) <la_value_print_inner>: New
11049 member.
11050 * language.c (unknown_language_defn, auto_language_defn): Update.
11051 * go-lang.c (go_language_defn): Update.
11052 * f-lang.c (f_language_defn): Update.
11053 * d-lang.c (d_language_defn): Update.
11054 * c-lang.c (c_language_defn, cplus_language_defn)
11055 (asm_language_defn, minimal_language_defn): Update.
11056 * ada-lang.c (ada_language_defn): Update.
11057
a1f6a07c
TT
110582020-03-13 Tom Tromey <tom@tromey.com>
11059
11060 * c-valprint.c (c_value_print): Use common_val_print.
11061
410cf315
TT
110622020-03-13 Tom Tromey <tom@tromey.com>
11063
11064 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11065
72a45c93
TT
110662020-03-13 Tom Tromey <tom@tromey.com>
11067
11068 * f-valprint.c (f77_print_array_1, f_val_print): Use
11069 common_val_print.
11070
040f66bd
TT
110712020-03-13 Tom Tromey <tom@tromey.com>
11072
11073 * riscv-tdep.c (riscv_print_one_register_info): Use
11074 common_val_print.
11075
a6e05a6c
TT
110762020-03-13 Tom Tromey <tom@tromey.com>
11077
11078 * mi/mi-main.c (output_register): Use common_val_print.
11079
3444c526
TT
110802020-03-13 Tom Tromey <tom@tromey.com>
11081
11082 * infcmd.c (default_print_one_register_info): Use
11083 common_val_print.
11084
c2a44efe
TT
110852020-03-13 Tom Tromey <tom@tromey.com>
11086
11087 * valprint.h (common_val_print_checked): Declare.
11088 * valprint.c (common_val_print_checked): New function.
11089 * stack.c (print_frame_arg): Use common_val_print_checked.
11090
b0c26e99
TT
110912020-03-13 Tom Tromey <tom@tromey.com>
11092
11093 * valprint.c (do_val_print): New function, from val_print.
11094 (val_print): Use do_val_print.
11095 (common_val_print): Use do_val_print.
11096
ce3acbe9
TT
110972020-03-13 Tom Tromey <tom@tromey.com>
11098
11099 * valprint.c (value_print): Use scoped_value_mark.
11100
96c7f873
TV
111012020-03-13 Tom de Vries <tdevries@suse.de>
11102
11103 PR symtab/25646
11104 * psymtab.c (partial_symtab::partial_symtab): Don't set
11105 globals_offset and statics_offset. Push element onto
11106 current_global_psymbols and current_static_psymbols stacks.
11107 (concat): New function.
11108 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11109 element from current_global_psymbols and current_static_psymbols
11110 stacks. Concat popped elements to global_psymbols and
11111 static_symbols.
11112 (add_psymbol_to_list): Use current_global_psymbols and
11113 current_static_psymbols stacks.
11114 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11115 current_static_psymbols fields.
11116
6ba0a321
CB
111172020-03-12 Christian Biesinger <cbiesinger@google.com>
11118
11119 * corelow.c (sniff_core_bfd): Remove.
11120 (class core_target) <m_core_vec>: Remove.
11121 (core_target::core_target): Update.
11122 (core_file_fns): Remove.
11123 (deprecated_add_core_fns): Remove.
11124 (default_core_sniffer): Remove.
11125 (sniff_core_bfd): Remove.
11126 (default_check_format): Remove.
11127 (gdb_check_format): Remove.
11128 (core_target_open): Update.
11129 (core_target::get_core_register_section): Update.
11130 (get_core_registers_cb): Update.
11131 (core_target::fetch_registers): Update.
11132 * gdbcore.h (struct core_fns): Remove.
11133 (deprecated_add_core_fns): Remove.
11134 (default_core_sniffer): Remove.
11135 (default_check_format): Remove.
11136
227031b2
TT
111372020-03-12 Tom Tromey <tom@tromey.com>
11138
11139 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11140 CORE_ADDR.
11141 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11142
53807e9f
TT
111432020-03-12 Tom Tromey <tom@tromey.com>
11144
11145 * remote.c (remote_target::download_tracepoint)
11146 (remote_target::enable_tracepoint)
11147 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11148 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11149 sprintf_vma.
11150
64f25102
TT
111512020-03-12 Tom Tromey <tom@tromey.com>
11152
11153 * symfile-mem.c: Update CORE_ADDR size assert.
11154
272cd5a3
SM
111552020-03-12 Simon Marchi <simon.marchi@efficios.com>
11156
11157 * selftest.m4: Move to gdbsupport/.
11158 * acinclude.m4: Update path to selftest.m4.
11159
74cd3f9d
SM
111602020-03-12 Simon Marchi <simon.marchi@efficios.com>
11161
11162 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11163 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11164 gdbarch-selfselftests.c and selftest-arch.c.
11165 (SUBDIR_UNITTESTS_OBS): Rename to...
11166 (SELFTESTS_OBS): ... this.
11167 (COMMON_SFILES): Remove disasm-selftests.c and
11168 gdbarch-selftests.c.
11169 * configure.ac: Don't add selftest-arch.{c,o} to
11170 CONFIG_{SRCS,OBS}.
11171 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11172 preprocessor conditions.
11173
db6878ac
SM
111742020-03-12 Simon Marchi <simon.marchi@efficios.com>
11175
11176 * configure.ac: Don't source bfd/development.sh.
11177 * selftest.m4: Modify comment.
11178 * configure: Re-generate.
11179
4d696a5c
SM
111802020-03-12 Simon Marchi <simon.marchi@efficios.com>
11181
11182 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11183 not "true" or "false".
11184 * configure: Re-generate.
11185
8dd8e1c7
CB
111862020-03-12 Christian Biesinger <cbiesinger@google.com>
11187
11188 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11189 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11190 renamed to arm_nbsd_supply_gregset.
11191 (fetch_register): Update to call arm_nbsd_supply_gregset.
11192 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11193 (arm_netbsd_nat_target::fetch_registers): Update.
11194 (fetch_elfcore_registers): Removed.
11195 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11196 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11197 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11198 not require NetBSD system headers.
11199 (arm_nbsd_regset): New struct.
11200 (arm_nbsd_iterate_over_regset_sections): New function.
11201 (arm_netbsd_init_abi_common): Updated to call
11202 set_gdbarch_iterate_over_regset_sections.
11203 * arm-nbsd-tdep.h: New file.
11204
dd69bf7a
KB
112052020-03-11 Kevin Buettner <kevinb@redhat.com>
11206
11207 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11208 recursion.
11209
a0761e34
SM
112102020-03-11 Simon Marchi <simon.marchi@efficios.com>
11211
11212 * configure: Re-generate.
11213
e7a82140
TT
112142020-03-11 Tom Tromey <tromey@adacore.com>
11215
11216 * ada-typeprint.c (print_choices): Fix comment.
11217
dcc050c8
AB
112182020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11219
11220 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11221 previous item in the list, when the list has no items.
11222
1c33af77
TV
112232020-03-11 Tom de Vries <tdevries@suse.de>
11224
11225 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11226 PROP_LOCLIST handling code.
11227
8c95582d
AB
112282020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11229
11230 * buildsym-legacy.c (record_line): Pass extra parameter to
11231 record_line.
11232 * buildsym.c (buildsym_compunit::record_line): Take an extra
11233 parameter, reduce duplication in the line table, and record the
11234 is_stmt flag in the line table.
11235 * buildsym.h (buildsym_compunit::record_line): Add extra
11236 parameter.
11237 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11238 non-statement lines.
11239 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11240 this to the symtab builder.
11241 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11242 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11243 through to dwarf_record_line_1.
11244 * infrun.c (process_event_stop_test): When stepping, don't stop at
11245 a non-statement instruction, and only refresh the step info when
11246 we land in the middle of a line's range. Also add an extra
11247 comment.
11248 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11249 field.
11250 * record-btrace.c (btrace_find_line_range): Only record lines
11251 marked as is-statement.
11252 * stack.c (frame_show_address): Show the frame address if we are
11253 in a non-statement sal.
11254 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11255 (maintenance_print_one_line_table): Print a header for the is_stmt
11256 column, and include is_stmt information in the output.
11257 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11258 preference to non-statements.
11259 (find_pcs_for_symtab_line): Prefer is-statement entries.
11260 (find_line_common): Likewise.
11261 * symtab.h (struct linetable_entry): Add is_stmt field.
11262 (struct symtab_and_line): Likewise.
11263 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11264 arranging the line table.
11265
e4003a34
TV
112662020-03-07 Tom de Vries <tdevries@suse.de>
11267
11268 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11269 DIE.
11270
e8932576
TT
112712020-03-07 Tom Tromey <tom@tromey.com>
11272
11273 * valops.c (value_literal_complex): Remove obsolete comment.
11274 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11275 comment.
11276
29734269
SM
112772020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11278
11279 * infrun.h: Forward-declare thread_info.
11280 (set_step_info): Add thread_info parameter, add doc.
11281 * infrun.c (set_step_info): Add thread_info parameter, move doc
11282 to header.
11283 * infrun.c (process_event_stop_test): Pass thread to
11284 set_step_info call.
11285 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11286 set_step_info.
11287 (prepare_one_step): Add thread_info parameter, pass it to
11288 set_step_frame and prepare_one_step (recursive) call.
11289 (step_1): Pass thread to prepare_one_step call.
11290 (step_command_fsm::should_stop): Pass thread to
11291 prepare_one_step.
11292 (until_next_fsm): Pass thread to set_step_frame call.
11293 (finish_command): Pass thread to set_step_info call.
11294
b7d64b29
HD
112952020-03-06 Hannes Domani <ssbssa@yahoo.de>
11296
11297 * windows-tdep.c (windows_solib_create_inferior_hook):
11298 Check if inferior is running.
11299
09f2921c
TV
113002020-03-06 Tom de Vries <tdevries@suse.de>
11301
11302 * NEWS: Fix "the the".
11303 * ctfread.c: Same.
11304
fd760e79
TV
113052020-03-06 Tom de Vries <tdevries@suse.de>
11306
11307 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11308
20ea4a60
AB
113092020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11310
11311 * .dir-locals.el: Add a comment referencing the other copies of
11312 this file.
11313
0afbabf0
JB
113142020-03-05 John Baldwin <jhb@FreeBSD.org>
11315
11316 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11317 psargs.
11318
842806cb
TBA
113192020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11320
11321 * .gitattributes: New file.
11322
be1e3d3e
TT
113232020-03-04 Tom Tromey <tom@tromey.com>
11324
11325 * symmisc.c (print_symbol_bcache_statistics)
11326 (print_objfile_statistics): Update.
11327 * symfile.c (allocate_symtab): Use intern.
11328 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11329 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11330 macro_cache>: Remove.
11331 <string_cache>: New member.
11332 (struct objfile) <intern>: New methods.
11333 * elfread.c (elf_symtab_read): Use intern.
11334 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11335 (dwarf2_compute_name, dwarf2_physname)
11336 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11337 names.
11338 (guess_partial_die_structure_name): Update.
11339 (partial_die_info::fixup): Intern name.
11340 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11341 name.
11342 (dwarf2_name): Intern name. Update.
11343 * buildsym.c (buildsym_compunit::get_macro_table): Use
11344 string_cache.
11345
4e7625fd
TT
113462020-03-04 Tom Tromey <tom@tromey.com>
11347
11348 * jit.c (bfd_open_from_target_memory): Make "target" const.
11349 * corefile.c (gnutarget): Now const.
11350 * gdbcore.h (gnutarget): Now const.
11351
46f9f931
HD
113522020-03-04 Hannes Domani <ssbssa@yahoo.de>
11353
11354 * NEWS: Mention support for WOW64 processes.
11355 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11356 (amd64_windows_segment_register_p): Remove static.
11357 (_initialize_amd64_windows_nat): Update.
11358 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11359 * i386-windows-nat.c (context_offset): Update.
11360 (i386_mappings): Rename and remove static.
11361 (i386_windows_segment_register_p): Remove static.
11362 (_initialize_i386_windows_nat): Update.
11363 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11364 (STATUS_WX86_SINGLE_STEP): New macro.
11365 (EnumProcessModulesEx): New macro.
11366 (Wow64SuspendThread): New macro.
11367 (Wow64GetThreadContext): New macro.
11368 (Wow64SetThreadContext): New macro.
11369 (Wow64GetThreadSelectorEntry): New macro.
11370 (windows_set_context_register_offsets): Add static.
11371 (windows_set_segment_register_p): Likewise.
11372 (windows_add_thread): Adapt for WOW64 processes.
11373 (windows_fetch_one_register): Likewise.
11374 (windows_nat_target::fetch_registers): Likewise.
11375 (windows_store_one_register): Likewise.
11376 (display_selector): Likewise.
11377 (display_selectors): Likewise.
11378 (handle_exception): Likewise.
11379 (windows_continue): Likewise.
11380 (windows_nat_target::resume): Likewise.
11381 (windows_add_all_dlls): Likewise.
11382 (do_initial_windows_stuff): Likewise.
11383 (windows_nat_target::attach): Likewise.
11384 (windows_get_exec_module_filename): Likewise.
11385 (windows_nat_target::create_inferior): Likewise.
11386 (windows_xfer_siginfo): Likewise.
11387 (_initialize_loadable): Initialize Wow64SuspendThread,
11388 Wow64GetThreadContext, Wow64SetThreadContext,
11389 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11390 * windows-nat.h (windows_set_context_register_offsets):
11391 Remove declaration.
11392 (windows_set_segment_register_p): Likewise.
11393 (i386_windows_segment_register_p): Add declaration.
11394 (amd64_windows_segment_register_p): Likewise.
11395
440cf44e
LM
113962020-03-04 Luis Machado <luis.machado@linaro.org>
11397
11398 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11399 in "info registers" for AArch64/ARM.
11400
11401 The change caused "info registers" to not print GPR's.
11402
11403 gdb/ChangeLog:
11404
11405 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11406
11407 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11408 when reg->group is empty and reggroup is not.
11409
1009d92f
TT
114102020-03-03 Tom Tromey <tromey@adacore.com>
11411
11412 * dwarf2/frame.c (struct dwarf2_frame_cache)
11413 <checked_tailcall_bottom, entry_cfa_sp_offset,
11414 entry_cfa_sp_offset_p>: Remove members.
11415 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11416 (dwarf2_frame_prev_register): Don't call
11417 dwarf2_tailcall_sniffer_first.
11418 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11419 * frame-unwind.c (add_unwinder): New fuction.
11420 (frame_unwind_init): Use it. Add tailcall unwinder.
11421
5e5d66b6
AB
114222020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11423 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11424
11425 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11426 value should be printed as true.
11427
584cf46d
HD
114282020-03-03 Hannes Domani <ssbssa@yahoo.de>
11429
11430 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11431 (windows_init_abi): Set and use windows_so_ops.
11432
7b973adc
SDJ
114332020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11434
11435 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11436 when verifying if dealing with a convenience variable.
11437
bb7b70ab
LM
114382020-03-03 Luis Machado <luis.machado@linaro.org>
11439
11440 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11441
9822cb57
SM
114422020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11443
11444 * infrun.c (gdbarch_supports_displaced_stepping): New.
11445 (use_displaced_stepping): Break up conditions in smaller pieces.
11446 Use gdbarch_supports_displaced_stepping.
11447 (displaced_step_prepare_throw): Use
11448 gdbarch_supports_displaced_stepping.
11449
63e163f2
AB
114502020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11451
11452 * NEWS: Mention new behaviour of the history filename.
11453 * top.c (write_history_p): Add comment.
11454 (show_write_history_p): Add header comment, give a different
11455 message when history writing is on, but the history filename is
11456 empty.
11457 (history_filename): Add comment.
11458 (history_filename_empty): New function.
11459 (show_history_filename): Add header comment, give a different
11460 message when the filename is empty.
11461 (init_history): Compare history_filename against nullptr, and only
11462 read history if the filename is not empty.
11463 (set_history_filename): Add header comment, and only make
11464 non-empty filenames absolute.
11465 (init_main): Make the filename argument to 'set history filename'
11466 optional.
11467
81b86b97
CB
114682020-03-02 Christian Biesinger <cbiesinger@google.com>
11469
11470 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11471 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11472 (fetch_fp_register): Update.
11473 (fetch_fp_regs): Update.
11474 (store_fp_register): Update.
11475 (store_fp_regs): Update.
11476 (arm_netbsd_nat_target::read_description): New function.
11477 (fetch_elfcore_registers): Update.
11478
24ed6739
AB
114792020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11480
11481 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11482 general_thread if the stop reply is missing a thread-id.
11483 (remote_target::process_stop_reply): Use the first non-exited
11484 thread if the target didn't pass a thread-id.
11485 * infrun.c (do_target_wait): Move call to
11486 switch_to_inferior_no_thread to ....
11487 (do_target_wait_1): ... here.
11488
a84bb2a0
JT
114892020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11490
11491 * debuginfod-support.c: Include defs.h first.
11492
658dadf0
TV
114932020-02-28 Tom de Vries <tdevries@suse.de>
11494
11495 * symfile.c (set_initial_language): Use default language for lookup.
11496
4ebe4877
SM
114972020-02-28 Simon Marchi <simon.marchi@efficios.com>
11498
11499 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11500 reader variable, pass `this` to read_cutu_die_from_dwo.
11501
e5da1139
AM
115022020-02-27 Aaron Merey <amerey@redhat.com>
11503
11504 * source.c (open_source_file): Check for nullptr when computing
11505 srcpath.
11506
317f7127
TT
115072020-02-27 Tom Tromey <tromey@adacore.com>
11508
11509 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11510 member.
11511 (dwarf2_add_field): Don't update nfields.
11512 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11513
3104d9ee
AB
115142020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11515
11516 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11517 abs.
11518
b83470bf
TT
115192020-02-26 Tom Tromey <tom@tromey.com>
11520
11521 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11522 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11523 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11524 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11525 per_cu_data.
11526
edfe0a0c
TT
115272020-02-26 Tom Tromey <tom@tromey.com>
11528
11529 * dwarf2/index-write.c (psym_index_map): Change type.
11530 (add_address_entry_worker, write_one_signatured_type)
11531 (recursively_count_psymbols, recursively_write_psymbols)
11532 (class debug_names, psyms_seen_size, write_gdbindex)
11533 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11534
0d79cdc4
AM
115352020-02-26 Aaron Merey <amerey@redhat.com>
11536
11537 * Makefile.in: Handle optional debuginfod support.
11538 * NEWS: Update.
11539 * README: Add --with-debuginfod summary.
11540 * config.in: Regenerate.
11541 * configure: Regenerate.
11542 * configure.ac: Handle optional debuginfod support.
11543 * debuginfod-support.c: debuginfod helper functions.
11544 * debuginfod-support.h: Ditto.
11545 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11546 summary.
11547 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11548 when a dwz file cannot be found.
11549 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11550 debuginfo file cannot be found.
11551 * source.c (open_source_file): Query debuginfod servers when a
11552 source file cannot be found.
11553 * top.c (print_gdb_configuration): Include
11554 --{with,without}-debuginfod in the output.
11555
b65ce565
JG
115562020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11557
11558 * thread.c (thr_try_catch_cmd): Print thread name.
11559
d4c9a4f8
SM
115602020-02-26 Simon Marchi <simon.marchi@efficios.com>
11561
11562 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11563 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11564 dwarf2_fetch_die_type_sect_off): Move to...
11565 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11566 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11567 dwarf2_fetch_die_type_sect_off): ... here.
11568 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11569 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11570 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11571
0dce4280
TV
115722020-02-26 Tom de Vries <tdevries@suse.de>
11573
11574 PR gdb/25603
11575 * symfile.c (set_initial_language): Exit-early if
11576 language_mode == language_mode_manual.
11577
450a1bfc
SM
115782020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11579
11580 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11581 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11582 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11583
9e80cfa1
AB
115842020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11585
11586 * gdbtypes.c (create_array_type_with_stride): Handle negative
11587 array strides.
11588 * valarith.c (value_subscripted_rvalue): Likewise.
11589
09624f1f
LM
115902020-02-25 Luis Machado <luis.machado@linaro.org>
11591
11592 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11593
8cb5117c
SM
115942020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11595
11596 * loc.h (dwarf2_get_die_type): Move to...
11597 * read.h (dwarf2_get_die_type): ... here.
11598 * read.c (dwarf2_get_die_type): Move doc to header.
11599
c325c44e
JB
116002020-02-25 Joel Brobecker <brobecker@adacore.com>
11601
11602 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11603 'gnulib/Makefile.in' to the list.
11604
4ac93832
TT
116052020-02-24 Tom Tromey <tom@tromey.com>
11606
11607 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11608 Remove.
11609 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11610 XOBNEWVEC.
11611
197400e8
TT
116122020-02-24 Tom Tromey <tom@tromey.com>
11613
11614 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11615 New method.
11616 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11617 (dw2_do_instantiate_symtab, dw2_get_file_names)
11618 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11619
76935768
TT
116202020-02-24 Tom Tromey <tom@tromey.com>
11621
11622 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11623 make_scoped_restore.
11624 (dwarf2_psymtab::read_symtab): Don't clear
11625 reading_partial_symbols.
11626
a88ef40d
TV
116272020-02-24 Tom de Vries <tdevries@suse.de>
11628
11629 PR gdb/25592
11630 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11631
c9af6521
TV
116322020-02-24 Tom de Vries <tdevries@suse.de>
11633
11634 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11635 commands layout next/prev/regs.
11636
5707a07a
TT
116372020-02-22 Tom Tromey <tom@tromey.com>
11638
11639 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11640 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11641
3b0fb49e
TT
116422020-02-22 Tom Tromey <tom@tromey.com>
11643
11644 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11645
283be8bf
TT
116462020-02-22 Tom Tromey <tom@tromey.com>
11647
11648 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11649 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11650 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11651 * tui/tui.c (_initialize_tui): Add usage text.
11652
ca793b96
TT
116532020-02-22 Tom Tromey <tom@tromey.com>
11654
11655 * tui/tui-win.c (tui_set_focus_command)
11656 (tui_set_win_height_command): Use error_no_arg.
11657 (_initialize_tui_win): Update help text.
11658 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11659
432b5c40
TT
116602020-02-22 Tom Tromey <tom@tromey.com>
11661
11662 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11663 * tui/tui-disasm.h (struct tui_disasm_window)
11664 <display_start_addr>: Declare.
11665 * tui/tui-source.h (struct tui_source_window)
11666 <display_start_addr>: Declare.
11667 * tui/tui-winsource.h (struct tui_source_window_base)
11668 <show_source_line, display_start_addr>: New methods.
11669 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11670 Rename and move to protected section.
11671 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11672 (tui_source_window_base::do_erase_source_content): Update.
11673 (tui_source_window_base::show_source_line): Now a method.
11674 (tui_source_window_base::show_source_content)
11675 (tui_source_window_base::tui_source_window_base)
11676 (tui_source_window_base::rerender)
11677 (tui_source_window_base::refill)
11678 (tui_source_window_base::do_scroll_horizontal)
11679 (tui_source_window_base::set_is_exec_point_at)
11680 (tui_source_window_base::update_breakpoint_info)
11681 (tui_source_window_base::update_exec_info): Update.
11682 * tui/tui-source.c (tui_source_window::set_contents)
11683 (tui_source_window::showing_source_p)
11684 (tui_source_window::do_scroll_vertical)
11685 (tui_source_window::location_matches_p)
11686 (tui_source_window::line_is_displayed): Update.
11687 (tui_source_window::display_start_addr): New method.
11688 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11689 (tui_disasm_window::do_scroll_vertical)
11690 (tui_disasm_window::location_matches_p): Update.
11691 (tui_disasm_window::display_start_addr): New method.
11692
01b1af32
TT
116932020-02-22 Tom Tromey <tom@tromey.com>
11694
11695 * NEWS: Add entry for gdb.register_window_type.
11696 * tui/tui-layout.h (window_factory): New typedef.
11697 (tui_register_window): Declare.
11698 * tui/tui-layout.c (saved_tui_windows): New global.
11699 (tui_apply_current_layout): Use it.
11700 (tui_register_window): New function.
11701 * python/python.c (do_start_initialization): Call
11702 gdbpy_initialize_tui.
11703 (python_GdbMethods): Add "register_window_type" function.
11704 * python/python-internal.h (gdbpy_register_tui_window)
11705 (gdbpy_initialize_tui): Declare.
11706 * python/py-tui.c: New file.
11707 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11708
fc96d20b
TT
117092020-02-22 Tom Tromey <tom@tromey.com>
11710
11711 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11712
935c78c0
TT
117132020-02-22 Tom Tromey <tom@tromey.com>
11714
11715 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11716 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11717 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11718 (tui_set_win_focus_to): Move from tui-win.c.
11719
0240c8f1
TT
117202020-02-22 Tom Tromey <tom@tromey.com>
11721
11722 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11723 functions.
11724 (known_window_types): New global.
11725 (tui_get_window_by_name): Reimplement.
11726 (initialize_known_windows): New function.
11727 (validate_window_name): Rewrite.
11728 (_initialize_tui_layout): Call initialize_known_windows.
11729
fdb01f0c
TT
117302020-02-22 Tom Tromey <tom@tromey.com>
11731
11732 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11733 Remove constants.
11734 * tui/tui-winsource.h (struct tui_source_window_base)
11735 <tui_source_window_base>: Remove parameter.
11736 * tui/tui-winsource.c
11737 (tui_source_window_base::tui_source_window_base): Remove
11738 parameter.
11739 (tui_source_window_base::refill): Update.
11740 * tui/tui-stack.h (struct tui_locator_window)
11741 <tui_locator_window>: Update.
11742 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11743 Default the constructor.
11744 * tui/tui-regs.h (struct tui_data_item_window)
11745 <tui_data_item_window>: Default the constructor.
11746 (struct tui_data_window) <tui_data_window>: Likewise.
11747 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11748 Default the constructor.
11749 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11750 Default the constructor.
11751 <type>: Remove.
11752 (struct tui_win_info) <tui_win_info>: Default the constructor.
11753 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11754 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11755 Default the constructor.
11756
865a5aec
TT
117572020-02-22 Tom Tromey <tom@tromey.com>
11758
11759 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11760 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11761 * tui/tui-win.c (tui_resize_all): Don't call
11762 tui_delete_invisible_windows.
11763 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11764 done.
11765 (tui_set_layout): Update.
11766 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11767 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11768 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11769
e098d18c
TT
117702020-02-22 Tom Tromey <tom@tromey.com>
11771
11772 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11773 correctly.
11774
eb9c8874
TT
117752020-02-22 Tom Tromey <tom@tromey.com>
11776
11777 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11778
7eed1a8e
TT
117792020-02-22 Tom Tromey <tom@tromey.com>
11780
11781 * tui/tui-winsource.h (struct tui_source_window_iterator)
11782 <inner_iterator>: New etytypedef.
11783 <tui_source_window_iterator>: Take "end" parameter.
11784 <tui_source_window_iterator>: Take iterator.
11785 <operator*, advance>: Update.
11786 <m_iter>: Change type.
11787 <m_end>: New field.
11788 (struct tui_source_windows) <begin, end>: Update.
11789 * tui/tui-layout.c (tui_windows): New global.
11790 (tui_apply_current_layout): Clear tui_windows.
11791 (tui_layout_window::apply): Update tui_windows.
11792 * tui/tui-data.h (tui_windows): Declare.
11793 (all_tui_windows): Now inline function.
11794 (class tui_window_iterator, struct all_tui_windows): Remove.
11795
7c043ba6
TT
117962020-02-22 Tom Tromey <tom@tromey.com>
11797
11798 PR tui/17850:
11799 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11800 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11801 "height" argument.
11802 (class tui_layout_window) <get_sizes>: Likewise.
11803 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11804 argument.
11805 <get_sizes>: Add "height" argument.
11806 <m_vertical>: New field.
11807 * tui/tui-layout.c (tui_layout_split::clone): Update.
11808 (tui_layout_split::get_sizes): Add "height" argument.
11809 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11810 (tui_new_layout_command): Parse "-horizontal".
11811 (_initialize_tui_layout): Update help string.
11812 (tui_layout_split::specification): Add "-horizontal" when needed.
11813 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11814 argument.
11815 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11816 New methods.
11817
6bc56648
TT
118182020-02-22 Tom Tromey <tom@tromey.com>
11819
11820 * tui/tui-layout.h (enum tui_adjust_result): New.
11821 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11822 (class tui_layout_window) <adjust_size>: Return
11823 tui_adjust_result. Rewrite.
11824 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11825 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11826
c22fef7e
TT
118272020-02-22 Tom Tromey <tom@tromey.com>
11828
11829 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11830 parameter and return types.
11831 (class tui_layout_base) <specification>: Add "depth".
11832 (class tui_layout_window) <specification>: Add "depth".
11833 (class tui_layout_split) <specification>: Add "depth".
11834 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11835 and return types.
11836 (tui_new_layout_command): Parse sub-layouts.
11837 (_initialize_tui_layout): Update help string.
11838 (tui_layout_window::specification): Add "depth".
11839 (add_layout_command): Update.
11840
ee325b61
TT
118412020-02-22 Tom Tromey <tom@tromey.com>
11842
11843 * NEWS: Add "tui new-layout" item.
11844 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11845 Add new-layout command to help text.
11846 (validate_window_name): New function.
11847 (tui_new_layout_command): New function.
11848 (_initialize_tui_layout): Register "new-layout".
11849 (tui_layout_window::specification): New method.
11850 (tui_layout_window::specification): New method.
11851 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11852 method.
11853 (class tui_layout_window) <specification>: New method.
11854 (class tui_layout_split) <specification>: New method.
11855
416eb92d
TT
118562020-02-22 Tom Tromey <tom@tromey.com>
11857
11858 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11859 * tui/tui-win.c (window_name_completer): Update comment.
11860 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11861 Declare method.
11862 (class tui_layout_window) <replace_window>: Likewise.
11863 (class tui_layout_split) <replace_window>: Likewise.
11864 (tui_set_layout): Don't declare.
11865 (tui_set_initial_layout): Declare function.
11866 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11867 (asm_regs_layout): New globals.
11868 (tui_current_layout, show_layout): Remove.
11869 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11870 (find_layout, tui_apply_layout): New function.
11871 (layout_completer): Remove.
11872 (tui_next_layout): Reimplement.
11873 (tui_next_layout_command): New function.
11874 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11875 (tui_regs_layout): Reimplement.
11876 (tui_regs_layout_command): New function.
11877 (extract_display_start_addr): Rewrite.
11878 (next_layout, prev_layout): Remove.
11879 (tui_layout_window::replace_window): New method.
11880 (tui_layout_split::replace_window): New method.
11881 (destroy_layout): New function.
11882 (layout_list): New global.
11883 (add_layout_command): New function.
11884 (initialize_layouts): Update.
11885 (tui_layout_command): New function.
11886 (_initialize_tui_layout): Install "layout" commands.
11887 * tui/tui-data.h (enum tui_layout_type): Remove.
11888 (tui_current_layout): Don't declare.
11889
0dbc2fc7
TT
118902020-02-22 Tom Tromey <tom@tromey.com>
11891
11892 * tui/tui-regs.c (tui_reg_layout): Remove.
11893 (tui_reg_command): Use tui_regs_layout.
11894 * tui/tui-layout.h (tui_reg_command): Declare.
11895 * tui/tui-layout.c (tui_reg_command): New function.
11896
5afe342e
TT
118972020-02-22 Tom Tromey <tom@tromey.com>
11898
11899 * tui/tui.c (tui_rl_delete_other_windows): Call
11900 tui_remove_some_windows.
11901 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11902 Declare method.
11903 (class tui_layout_window) <remove_windows>: New method.
11904 (class tui_layout_split) <remove_windows>: Declare.
11905 (tui_remove_some_windows): Declare.
11906 * tui/tui-layout.c (tui_remove_some_windows): New function.
11907 (tui_layout_split::remove_windows): New method.
11908
427326a8
TT
119092020-02-22 Tom Tromey <tom@tromey.com>
11910
11911 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11912 * tui/tui-layout.h (tui_next_layout): Declare.
11913 * tui/tui-layout.c (tui_next_layout): New function.
11914
3fe12b6d
TT
119152020-02-22 Tom Tromey <tom@tromey.com>
11916
11917 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11918 correct coordinates.
11919
59b8b5d2
TT
119202020-02-22 Tom Tromey <tom@tromey.com>
11921
11922 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11923 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11924 DATA_WIN case.
11925
2a3d458b
TT
119262020-02-22 Tom Tromey <tom@tromey.com>
11927
11928 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11929 TUI_DISASM_WIN, not tui_win_list.
11930
3f0cbb04
TT
119312020-02-22 Tom Tromey <tom@tromey.com>
11932
11933 * valprint.c (generic_val_print_enum_1)
11934 (val_print_type_code_flags): Style member names.
11935 * rust-lang.c (val_print_struct, rust_print_enum)
11936 (rust_print_struct_def, rust_internal_print_type): Style member
11937 names.
11938 * p-valprint.c (pascal_object_print_value_fields): Style member
11939 names. Only call fprintf_symbol_filtered for static members.
11940 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11941 * f-valprint.c (f_val_print): Style member names.
11942 * f-typeprint.c (f_type_print_base): Style member names.
11943 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11944 call fprintf_symbol_filtered for static members.
11945 (cp_print_class_member): Style member names.
11946 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11947 member names.
11948 * ada-valprint.c (ada_print_scalar): Style enum names.
11949 (ada_val_print_enum): Likewise.
11950 * ada-typeprint.c (print_enum_type): Style enum names.
11951
d4d947ae
TT
119522020-02-21 Tom Tromey <tom@tromey.com>
11953
11954 * psympriv.h (struct partial_symtab): Update comment.
11955
e94e944b
TT
119562020-02-21 Tom Tromey <tromey@adacore.com>
11957
11958 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11959 type is CORE_ADDR.
11960
1eb73179
TV
119612020-02-21 Tom de Vries <tdevries@suse.de>
11962
11963 PR gdb/25534
11964 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11965 if dependencies[i]->user != NULL.
11966
4f180d53
AT
119672020-02-21 Ali Tamur <tamur@google.com>
11968
11969 * dwarf2/read.c (dwarf2_name): Add null check.
11970
22b6cd70
TT
119712020-02-20 Tom Tromey <tom@tromey.com>
11972
11973 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11974 ">=", in binary search.
11975 (dwarf2_find_containing_comp_unit): New overload.
11976 (run_test): New self-test.
11977 (_initialize_dwarf2_read): Register new test.
11978
bd0cf5a6
NC
119792020-02-20 Nelson Chu <nelson.chu@sifive.com>
11980
11981 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11982 * riscv-tdep.h: Likewise.
11983 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11984 rv32-only CSR.
11985 * features/riscv/64bit-csr.xml: Regenerated.
11986
3f702acd
SDJ
119872020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11988 Tom Tromey <tom@tromey.com>
11989
11990 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11991 of 'fputc_unfiltered'.
11992 (putchar_unfiltered): Call 'fputc_unfiltered'.
11993 (fputc_unfiltered): Call 'fputs_unfiltered'.
11994
d13c7322
AB
119952020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11996
11997 * config.in: Regenerate.
11998 * configure: Regenerate.
11999 * configure.ac: Add --with-python-libdir option.
12000 * main.c: Use WITH_PYTHON_LIBDIR.
12001
869d8950
TT
120022020-02-19 Tom Tromey <tom@tromey.com>
12003
12004 * symtab.c (general_symbol_info::compute_and_set_names): Use
12005 obstack_strndup. Simplify call to symbol_set_demangled_name.
12006
298e9637
SM
120072020-02-19 Simon Marchi <simon.marchi@efficios.com>
12008
12009 * dwarf2/read.c (allocate_signatured_type_table,
12010 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12011 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12012 Remove objfile parameter, update all callers.
12013
08410482
DE
120142020-02-19 Doug Evans <dje@google.com>
12015
12016 PR rust/25535
12017 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12018 rust_enum_variant calculation.
12019
dfdeeca1
TT
120202020-02-19 Tom Tromey <tromey@adacore.com>
12021
12022 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12023
2ef5453b
TT
120242020-02-19 Tom Tromey <tromey@adacore.com>
12025
12026 * ada-lang.c (cache_symbol): Use obstack_strdup.
12027
9f1528a1
AB
120282020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12029
12030 * configure: Regenerate.
12031
d3c22fa8
TT
120322020-02-19 Tom Tromey <tromey@adacore.com>
12033
12034 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12035 NULL check.
12036
bf84f706
MR
120372020-02-19 Maciej W. Rozycki <macro@wdc.com>
12038
12039 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12040
d1c9b20f
AB
120412020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12042
12043 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12044 if GDBSERVER is not defined.
12045 (riscv_tdesc_cache): Likewise, also store const target_desc.
12046 (STATIC_IN_GDB): Define.
12047 (riscv_create_target_description): Update declaration with
12048 STATIC_IN_GDB.
12049 (riscv_lookup_target_description): New function, only define if
12050 GDBSERVER is not defined.
12051 * arch/riscv.h (riscv_create_target_description): Declare only
12052 when GDBSERVER is defined.
12053 (riscv_lookup_target_description): New declaration when GDBSERVER
12054 is not defined.
12055 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12056 (riscv_linux_read_features): ...this, and return
12057 riscv_gdbarch_features instead of target_desc.
12058 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12059 (riscv_linux_read_description): Rename to...
12060 (riscv_linux_read_features): ...this.
12061 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12062 Update to use riscv_gdbarch_features and
12063 riscv_lookup_target_description.
12064 * riscv-tdep.c (riscv_find_default_target_description): Use
12065 riscv_lookup_target_description instead of
12066 riscv_create_target_description.
12067
373d7ac0
SM
120682020-02-18 Simon Marchi <simon.marchi@efficios.com>
12069
12070 * valprint.c (generic_val_print_enum_1): When printing a flag
12071 enum with value 0 and there is no enumerator with value 0, print
12072 just "0" instead of "(unknown: 0x0)".
12073
b29a2df0
SM
120742020-02-18 Simon Marchi <simon.marchi@efficios.com>
12075
12076 * valprint.c (generic_val_print_enum_1): Print unknown part of
12077 flag enum in hex.
12078
6740f0cc
SM
120792020-02-18 Simon Marchi <simon.marchi@efficios.com>
12080
12081 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12082 flag enums to contain duplicate enumerators.
12083 * valprint.c (generic_val_print_enum_1): Update comment.
12084
edd45eb0
SM
120852020-02-18 Simon Marchi <simon.marchi@efficios.com>
12086
12087 * dwarf2/read.c: Include "count-one-bits.h".
12088 (update_enumeration_type_from_children): If an enumerator has
12089 multiple bits set, don't treat the enumeration as a "flag enum".
12090 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12091 of flag enums have 0 or 1 bit set.
12092
6d0cf446
BE
120932020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12094
12095 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12096 conversion.
12097 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12098 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12099 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12100 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12101 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12102
7001c1b7
SM
121032020-02-18 Simon Marchi <simon.marchi@efficios.com>
12104
12105 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12106
fdb61c6c
SM
121072020-02-14 Simon Marchi <simon.marchi@efficios.com>
12108
12109 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12110 displaced_step_closure_up.
12111 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12112 (struct displaced_step_closure_up):
12113 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12114 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12115 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12116 Likewise.
12117 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12118 * gdbarch.c, gdbarch.h: Re-generate.
12119 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12120 displaced_step_closure_up.
12121 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12122 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12123 * infrun.h (displaced_step_closure_up): New type alias.
12124 (struct displaced_step_inferior_state) <step_closure>: Change
12125 type to displaced_step_closure_up.
12126 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12127 displaced_step_closure_up.
12128 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12129
a4a38eb4
TT
121302020-02-14 Tom Tromey <tom@tromey.com>
12131
12132 * minidebug.c (gnu_debug_key): New global.
12133 (find_separate_debug_file_in_section): Use it.
12134
e8217e61
SM
121352020-02-14 Simon Marchi <simon.marchi@efficios.com>
12136
12137 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12138 std::unique_ptr.
12139 * gdbarch.c: Re-generate.
12140 * gdbarch.h: Re-generate.
12141 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12142 change.
12143 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12144 type to std::unique_ptr.
12145 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12146 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12147 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12148 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12149 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12150 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12151 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12152 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12153 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12154
d8d83535
SM
121552020-02-14 Simon Marchi <simon.marchi@efficios.com>
12156
12157 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12158 std::unique_ptr.
12159 (displaced_step_clear): Rename to...
12160 (displaced_step_reset): ... this. Just call displaced->reset ().
12161 (displaced_step_clear_cleanup): Rename to...
12162 (displaced_step_reset_cleanup): ... this.
12163 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12164 (displaced_step_fixup): Likewise.
12165 (resume_1): Likewise.
12166 (handle_inferior_event): Restore child's memory before calling
12167 displaced_step_fixup on the parent.
12168 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12169 to std::unique_ptr.
12170 <step_closure>: Change type to std::unique_ptr.
12171
5f661e03
SM
121722020-02-14 Simon Marchi <simon.marchi@efficios.com>
12173
12174 * arm-tdep.c: Include count-one-bits.h.
12175 (cleanup_block_store_pc): Use count_one_bits.
12176 (cleanup_block_load_pc): Use count_one_bits.
12177 (arm_copy_block_xfer): Use count_one_bits.
12178 (thumb2_copy_block_xfer): Use count_one_bits.
12179 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12180 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12181 (thumb_get_next_pcs_raw): Use count_one_bits.
12182 (arm_get_next_pcs_raw): Use count_one_bits_l.
12183 * arch/arm.c (bitcount): Remove.
12184 * arch/arm.h (bitcount): Remove.
12185
8084e579
TT
121862020-02-14 Tom Tromey <tromey@adacore.com>
12187
12188 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12189 Update.
12190 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12191 * dwarf2/loc.c (call_site_find_chain_1): Return
12192 unique_xmalloc_ptr.
12193 (call_site_find_chain): Likewise.
12194
258bf0ee
RB
121952020-02-14 Richard Biener <rguenther@suse.de>
12196
12197 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12198 on expression with division operators.
12199
f98a8458
AKS
122002020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12201
12202 * MAINTAINERS (Write After Approval): Adding myself.
12203
d1437c0e
TT
122042020-02-12 Tom Tromey <tom@tromey.com>
12205
12206 * event-loop.c (event_data, gdb_event, event_handler_func):
12207 Remove.
12208
3d4560f7
TT
122092020-02-12 Tom Tromey <tom@tromey.com>
12210
12211 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12212 (dwarf2_frame_objfile_data): Add comment.
12213 (find_comp_unit, set_comp_unit): New functions.
12214 (dwarf2_frame_find_fde): Use find_comp_unit.
12215 (dwarf2_build_frame_info): Use set_comp_unit.
12216
21982304
TT
122172020-02-12 Tom Tromey <tom@tromey.com>
12218
12219 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12220 (comp_unit): Don't initialize objfile.
12221 (execute_cfa_program): Add text_offset parameter.
12222 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12223 (dwarf2_frame_cache): Update.
12224 (dwarf2_build_frame_info): Don't set "objfile" member.
12225
4debb237
TT
122262020-02-12 Tom Tromey <tom@tromey.com>
12227
12228 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12229 (decode_frame_entry): Likewise.
12230 (dwarf2_build_frame_info): Update.
12231
0d404d44
TT
122322020-02-12 Tom Tromey <tom@tromey.com>
12233
12234 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12235 (decode_frame_entry_1): Use the comp_unit obstack.
12236
a7a3ae5c
TT
122372020-02-12 Tom Tromey <tom@tromey.com>
12238
12239 * dwarf2/frame.c (struct comp_unit): Add initializers and
12240 constructor.
12241 (dwarf2_frame_objfile_data): Store a comp_unit.
12242 (dwarf2_frame_find_fde): Update.
12243 (dwarf2_build_frame_info): Use "new".
12244
a9d65418
TT
122452020-02-12 Tom Tromey <tom@tromey.com>
12246
12247 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12248 (dwarf2_fde_table): Typedef for std::vector.
12249 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12250 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12251 (decode_frame_entry): Update.
12252 (dwarf2_build_frame_info): Use "new".
12253
7559c217
CB
122542020-02-12 Christian Biesinger <cbiesinger@google.com>
12255
12256 * arm-tdep.c (arm_gdbarch_init): Update.
12257 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12258 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12259 have_neon, is_m>: Change to bool.
12260
aeefc73c
CB
122612020-02-12 Christian Biesinger <cbiesinger@google.com>
12262
12263 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12264
d27b8e5f
TT
122652020-02-12 Tom Tromey <tom@tromey.com>
12266
12267 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12268
cd5900f3
HD
122692020-02-12 Hannes Domani <ssbssa@yahoo.de>
12270
12271 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12272 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12273
f056b22b
TT
122742020-02-11 Tom Tromey <tom@tromey.com>
12275
12276 * psymtab.h: Update comment.
12277
f92ff6b5
TT
122782020-02-11 Tom Tromey <tom@tromey.com>
12279
12280 * gdb_obstack.h (struct auto_obstack): Use
12281 DISABLE_COPY_AND_ASSIGN.
12282
3fd6912b
TT
122832020-02-11 Tom Tromey <tom@tromey.com>
12284
12285 * dwarf2/frame.h (struct objfile): Don't forward declare.
12286
69ed9b74
CB
122872020-02-11 Christian Biesinger <cbiesinger@google.com>
12288
12289 * cris-tdep.c (cris_supply_gregset): Change signature to match
12290 what struct regset expects.
12291 (cris_regset): New struct.
12292 (fetch_core_registers): Remove.
12293 (cris_iterate_over_regset_sections): New function.
12294 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12295 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12296
bda874f6
CB
122972020-02-11 Christian Biesinger <cbiesinger@google.com>
12298
12299 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12300 registers.
12301
754e1564
CB
123022020-02-11 Christian Biesinger <cbiesinger@google.com>
12303
12304 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12305
8ddd8e0e
SM
123062020-02-11 Simon Marchi <simon.marchi@efficios.com>
12307
12308 * configure: Re-generate.
12309
898e7f60
SM
123102020-02-11 Simon Marchi <simon.marchi@efficios.com>
12311
12312 * configure: Re-generate.
12313
58df732b
SM
123142020-02-11 Simon Marchi <simon.marchi@efficios.com>
12315
12316 * acinclude: Update warning.m4 path.
12317 * warning.m4: Move to gdbsupport.
12318
da5bd37e
TT
123192020-02-11 Tom Tromey <tromey@adacore.com>
12320
12321 * remote.c (remote_console_output): Update.
12322 * printcmd.c (printf_command): Update.
12323 * event-loop.c (gdb_wait_for_event): Update.
12324 * linux-nat.c (sigchld_handler): Update.
12325 * remote-sim.c (gdb_os_write_stdout): Update.
12326 (gdb_os_flush_stdout): Update.
12327 (gdb_os_flush_stderr): Update.
12328 (gdb_os_write_stderr): Update.
12329 * exceptions.c (print_exception): Update.
12330 * remote-fileio.c (remote_fileio_func_read): Update.
12331 (remote_fileio_func_write): Update.
12332 * tui/tui.c (tui_enable): Update.
12333 * tui/tui-interp.c (tui_interp::init): Update.
12334 * utils.c (init_page_info): Update.
12335 (putchar_unfiltered, fputc_unfiltered): Update.
12336 (gdb_flush): Update.
12337 (emit_style_escape): Update.
12338 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12339 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12340 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12341 (stderr_file::write): Update.
12342 (stderr_file::puts): Update.
12343 * ui-file.h (ui_file_isatty, ui_file_write)
12344 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12345 (ui_file_puts): Don't declare.
12346
85f0dd3c
TV
123472020-02-10 Tom de Vries <tdevries@suse.de>
12348
12349 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12350 sentinel to char *.
12351
2e927613
TV
123522020-02-09 Tom de Vries <tdevries@suse.de>
12353
12354 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12355 filename if it matches "<artificial>".
12356
6bafc845
HD
123572020-02-09 Hannes Domani <ssbssa@yahoo.de>
12358
12359 * windows-tdep.c (struct enum_value_name): New struct.
12360 (create_enum): New function.
12361 (windows_get_siginfo_type): Create and use enum types.
12362
7928d571
HD
123632020-02-09 Hannes Domani <ssbssa@yahoo.de>
12364
12365 * NEWS: Mention $_siginfo support for Windows.
12366 * windows-nat.c (handle_exception): Set siginfo_er.
12367 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12368 (windows_xfer_siginfo): New function.
12369 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12370 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12371 (init_windows_gdbarch_data): New function.
12372 (get_windows_gdbarch_data): New function.
12373 (windows_get_siginfo_type): New function.
12374 (windows_init_abi): Register windows_get_siginfo_type.
12375 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12376
6751ebae
TT
123772020-02-08 Tom Tromey <tom@tromey.com>
12378
12379 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12380 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12381 <keep>: Declare method.
12382 <m_keep>: Remove member.
12383 <~cutu_reader>: Remove.
12384 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12385 (cutu_reader::cutu_reader): Update.
12386 (cutu_reader::keep): Rename from ~cutu_reader.
12387 (process_psymtab_comp_unit, build_type_psymtabs_1)
12388 (process_skeletonless_type_unit, load_partial_comp_unit)
12389 (load_full_comp_unit, dwarf2_read_addr_index)
12390 (read_signatured_type): Update.
12391
135f5437
TT
123922020-02-08 Tom Tromey <tom@tromey.com>
12393
12394 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12395 "want_partial_unit" parameter.
12396 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12397 Inline check for DW_TAG_partial_unit.
12398 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12399
9f66ff1c
TT
124002020-02-08 Tom Tromey <tom@tromey.com>
12401
12402 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12403 read.c.
12404 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12405 read.c.
12406
c8a7a66f
TT
124072020-02-08 Tom Tromey <tom@tromey.com>
12408
12409 * dwarf2/read.c (read_address): Move to comp-unit.c.
12410 (dwarf2_rnglists_process, dwarf2_ranges_process)
12411 (read_attribute_value, dwarf_decode_lines_1)
12412 (var_decode_location, decode_locdesc): Update.
12413 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12414 read.c. Remove "cu" parameter.
12415 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12416 method.
12417
8266302d
TT
124182020-02-08 Tom Tromey <tom@tromey.com>
12419
12420 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12421 (read_indirect_line_string): Update.
12422 * dwarf2/comp-unit.c (read_offset): Remove.
12423 (read_comp_unit_head): Update.
12424 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12425 method.
12426 (read_offset): Don't declare.
12427
4057dfde
TT
124282020-02-08 Tom Tromey <tom@tromey.com>
12429
12430 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12431 * dwarf2/read.c (struct comp_unit_head): Move to
12432 dwarf2/comp-unit.h.
12433 (enum class rcuh_kind): Move to comp-unit.h.
12434 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12435 (read_comp_unit_head, error_check_comp_unit_head)
12436 (read_and_check_comp_unit_head): Move to comp-unit.c.
12437 (read_offset, dwarf_unit_type_name): Likewise.
12438 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12439 (cutu_reader::cutu_reader, read_call_site_scope)
12440 (find_partial_die, follow_die_offset): Update.
12441 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12442
24aa364d
TT
124432020-02-08 Tom Tromey <tom@tromey.com>
12444
12445 * dwarf2/read.c (read_offset_1): Move to leb.c.
12446 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12447 (dwarf_decode_macro_bytes): Update.
12448 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12449 * dwarf2/leb.h (read_offset): Declare.
12450
2c7d5afc
TT
124512020-02-08 Tom Tromey <tom@tromey.com>
12452
12453 * dwarf2/read.c (dwarf2_section_size): Remove.
12454 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12455 Update.
12456 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12457
4075cb26
TT
124582020-02-08 Tom Tromey <tom@tromey.com>
12459
12460 * dwarf2/read.c (read_initial_length): Move to leb.c.
12461 * dwarf2/leb.h (read_initial_length): Declare.
12462 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12463 handle_nonstd parameter.
12464 * dwarf2/frame.c (read_initial_length): Remove.
12465 (decode_frame_entry_1): Update.
12466
09ba997f
TT
124672020-02-08 Tom Tromey <tom@tromey.com>
12468
12469 * dwarf2/loc.c (dwarf2_find_location_expression)
12470 (dwarf_evaluate_loc_desc::get_tls_address)
12471 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12472 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12473 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12474 (dwarf2_compile_property_to_c)
12475 (dwarf2_loc_desc_get_symbol_read_needs)
12476 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12477 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12478 (loclist_describe_location, loclist_tracepoint_var_ref)
12479 (loclist_generate_c_location): Update.
12480 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12481 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12482 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12483 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12484 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12485 (dwarf2_per_cu_data::addr_size)
12486 (dwarf2_per_cu_data::ref_addr_size)
12487 (dwarf2_per_cu_data::text_offset)
12488 (dwarf2_per_cu_data::addr_type): Now methods.
12489 (per_cu_header_read_in): Make per_cu "const".
12490 (dwarf2_version): Remove.
12491 (dwarf2_per_cu_data::int_type): Now a method.
12492 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12493 (set_die_type, read_array_type, read_subrange_index_type)
12494 (read_tag_string_type, read_subrange_type): Update.
12495 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12496 offset_size, ref_addr_size, text_offset, addr_type, version,
12497 objfile, int_type, addr_sized_int_type>: Declare methods.
12498
96c738c0
TT
124992020-02-08 Tom Tromey <tom@tromey.com>
12500
12501 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12502 Move earlier.
12503
8fdd972c
TT
125042020-02-08 Tom Tromey <tom@tromey.com>
12505
12506 * dwarf2/read.h (dwarf_line_debug): Declare.
12507 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12508 * dwarf2/read.c: Move line_header code to new files.
12509 (dwarf_line_debug): No longer static.
12510 * dwarf2/line-header.c: New file.
12511 * dwarf2/line-header.h: New file.
12512
03075812
TT
125132020-02-08 Tom Tromey <tom@tromey.com>
12514
12515 * dwarf2/read.c (struct line_header) <file_full_name,
12516 file_file_name>: Return unique_xmalloc_ptr.
12517 (line_header::file_file_name): Update.
12518 (line_header::file_full_name): Update.
12519 (dw2_get_file_names_reader): Update.
12520 (macro_start_file): Update.
12521
bb822404
TT
125222020-02-08 Tom Tromey <tom@tromey.com>
12523
12524 * dwarf2/read.c (struct line_header) <file_full_name,
12525 file_file_name>: Declare methods.
12526 (dw2_get_file_names_reader): Update.
12527 (file_file_name): Now a method.
12528 (file_full_name): Likewise.
12529 (macro_start_file): Update.
12530
009b64fc
TT
125312020-02-08 Tom Tromey <tom@tromey.com>
12532
12533 * dwarf2/read.c (dwarf_always_disassemble)
12534 (show_dwarf_always_disassemble): Move to loc.c.
12535 (_initialize_dwarf2_read): Move "always-disassemble" registration
12536 to loc.c.
12537 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12538 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12539 static.
12540 (show_dwarf_always_disassemble): Move from read.c.
12541 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12542
5895093f
TT
125432020-02-08 Tom Tromey <tom@tromey.com>
12544
12545 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12546 (create_quick_file_names_table): Return htab_up.
12547 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12548 Update.
12549 * dwarf2/read.h (struct dwarf2_per_objfile)
12550 <quick_file_names_table>: Now htab_up.
12551
b3b32279
TT
125522020-02-08 Tom Tromey <tom@tromey.com>
12553
12554 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12555
1d33d811
TT
125562020-02-08 Tom Tromey <tom@tromey.com>
12557
12558 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12559 Rewrite.
12560 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12561 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12562 (abbrev_table::abbrev_table): No longer inline.
12563 (ABBREV_HASH_SIZE): Remove.
12564 (abbrev_table::m_abbrevs): Now an htab_up.
12565
86de1d91
TT
125662020-02-08 Tom Tromey <tom@tromey.com>
12567
12568 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12569 (cutu_reader): Update.
12570 (build_type_psymtabs_1): Update.
12571 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12572 (abbrev_table::alloc_abbrev): Update.
12573 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12574 (abbrev_table::read): New static method, renamed from
12575 abbrev_table_read_table.
12576 (abbrev_table::alloc_abbrev)
12577 (abbrev_table::add_abbrev): Now private.
12578 (abbrev_table::abbrev_table): Now private.
12579 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12580
0335378b
TT
125812020-02-08 Tom Tromey <tom@tromey.com>
12582
12583 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12584 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12585 htab_up.
12586
48b490f2
TT
125872020-02-08 Tom Tromey <tom@tromey.com>
12588
12589 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12590 htab_up.
12591 (lookup_dwo_unit_in_dwp): Update.
12592 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12593 on obstack.
12594
bc68fb19
TT
125952020-02-08 Tom Tromey <tom@tromey.com>
12596
12597 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12598 obstack.
12599
d15acc42
TT
126002020-02-08 Tom Tromey <tom@tromey.com>
12601
12602 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12603 line_header_hash.
12604 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12605 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12606 Change type to htab_up.
12607
eaa5fa8b
TT
126082020-02-08 Tom Tromey <tom@tromey.com>
12609
12610 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12611 htab_up. Don't allocate on obstack.
12612 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12613 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12614 Change type to htab_up.
12615
b0b6a987
TT
126162020-02-08 Tom Tromey <tom@tromey.com>
12617
12618 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12619 Change type to htab_up.
12620 * dwarf2/read.c (create_signatured_type_table_from_index)
12621 (create_signatured_type_table_from_debug_names)
12622 (create_all_type_units, add_type_unit)
12623 (lookup_dwo_signatured_type, lookup_signatured_type)
12624 (process_skeletonless_type_unit): Update.
12625 (create_debug_type_hash_table, create_debug_types_hash_table):
12626 Change type of types_htab.
12627 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12628 htab_up. Don't allocate on obstack.
12629 (create_cus_hash_table): Change type of cus_htab parameter.
12630 (struct dwo_file) <cus, tus>: Now htab_up.
12631 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12632 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12633 (queue_and_load_all_dwo_tus): Update.
12634 * dwarf2/index-write.c (write_gdbindex): Update.
12635 (write_debug_names): Update.
12636
39856def
TT
126372020-02-08 Tom Tromey <tom@tromey.com>
12638
12639 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12640 dwarf2/read.c. Remove "next" member. Add constructor ntad
12641 destructor.
12642 (struct dwarf2_per_objfile) <queue>: New member.
12643 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12644 dwarf2/read.h.
12645 (dwarf2_queue, dwarf2_queue_tail): Remove.
12646 (class dwarf2_queue_guard): Add parameter to constructor. Use
12647 DISABLE_COPY_AND_ASSIGN.
12648 <m_per_objfile>: New member.
12649 <~dwarf2_queue_guard>: Rewrite.
12650 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12651 Update.
12652 (~dwarf2_queue_item): New.
12653
3e225074
TT
126542020-02-08 Tom Tromey <tom@tromey.com>
12655
12656 * dwarf2/read.c (struct die_info) <has_children>: New member.
12657 (dw2_get_file_names_reader): Remove has_children.
12658 (dw2_get_file_names): Update.
12659 (read_cutu_die_from_dwo): Remove has_children.
12660 (cutu_reader::init_tu_and_read_dwo_dies)
12661 (cutu_reader::cutu_reader): Update.
12662 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12663 Remove has_children.
12664 (build_type_psymtabs_1, process_skeletonless_type_unit)
12665 (load_partial_comp_unit, load_full_comp_unit): Update.
12666 (create_dwo_cu_reader): Remove has_children.
12667 (create_cus_hash_table, read_die_and_children): Update.
12668 (read_full_die_1,read_full_die): Remove has_children.
12669 (read_signatured_type): Update.
12670 (class cutu_reader) <has_children>: Remove.
12671
82ca8957
TT
126722020-02-08 Tom Tromey <tom@tromey.com>
12673
12674 * dwarf2/expr.c: Rename from dwarf2expr.c.
12675 * dwarf2/expr.h: Rename from dwarf2expr.h.
12676 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12677 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12678 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12679 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12680 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12681 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12682 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12683 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12684 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12685 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12686 * dwarf2/loc.c: Rename from dwarf2loc.c.
12687 * dwarf2/loc.h: Rename from dwarf2loc.h.
12688 * dwarf2/read.c: Rename from dwarf2read.c.
12689 * dwarf2/read.h: Rename from dwarf2read.h.
12690 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12691 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12692 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12693 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12694 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12695 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12696 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12697 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12698 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12699 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12700 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12701 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12702 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12703 Update.
12704 * Makefile.in (COMMON_SFILES): Update.
12705 (HFILES_NO_SRCDIR): Update.
12706
9e35d499
TT
127072020-02-08 Tom Tromey <tom@tromey.com>
12708
12709 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12710 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12711
1eba2311
TT
127122020-02-08 Tom Tromey <tom@tromey.com>
12713
12714 * dwarf2read.h (struct die_info): Don't declare.
12715
e41c2da2
TT
127162020-02-08 Tom Tromey <tom@tromey.com>
12717
12718 * dwarf2read.h (die_info_ptr): Remove typedef.
12719
4fc6c0d5
TT
127202020-02-08 Tom Tromey <tom@tromey.com>
12721
12722 * dwarf2read.c (read_call_site_scope)
12723 (handle_data_member_location, dwarf2_add_member_fn)
12724 (mark_common_block_symbol_computed, read_common_block)
12725 (attr_to_dynamic_prop, partial_die_info::read)
12726 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12727 (dwarf2_symbol_mark_computed, set_die_type): Update.
12728 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12729 method.
12730 (attr_form_is_block): Don't declare.
12731 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12732
cd6c91b4
TT
127332020-02-08 Tom Tromey <tom@tromey.com>
12734
12735 * dwarf2read.c (dwarf2_find_base_address, )
12736 (read_call_site_scope, rust_containing_type)
12737 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12738 (handle_data_member_location, dwarf2_add_member_fn)
12739 (get_alignment, read_structure_type, process_structure_scope)
12740 (mark_common_block_symbol_computed, read_common_block)
12741 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12742 (partial_die_info::read, read_attribute_value, new_symbol)
12743 (lookup_die_type, dwarf2_get_ref_die_offset)
12744 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12745 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12746 (dwarf2_symbol_mark_computed): Update.
12747 * dwarf2/attribute.h (struct attribute) <value_as_address,
12748 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12749 methods.
12750 (value_as_address, attr_form_is_section_offset)
12751 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12752 * dwarf2/attribute.c (attribute::value_as_address)
12753 (attribute::form_is_section_offset, attribute::form_is_constant)
12754 (attribute::form_is_ref): Now methods.
12755
162dce55
TT
127562020-02-08 Tom Tromey <tom@tromey.com>
12757
12758 * dwarf2read.c (struct attribute, DW_STRING)
12759 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12760 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12761 (attr_form_is_block, attr_form_is_section_offset)
12762 (attr_form_is_constant, attr_form_is_ref): Move.
12763 * dwarf2/attribute.h: New file.
12764 * dwarf2/attribute.c: New file, from dwarf2read.c.
12765 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12766
3054dd54
TT
127672020-02-08 Tom Tromey <tom@tromey.com>
12768
12769 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12770 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12771 Move.
12772 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12773 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12774 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12775 abbrev.c.
12776 * dwarf2/abbrev.h: New file.
12777 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12778 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12779
96b79293
TT
127802020-02-08 Tom Tromey <tom@tromey.com>
12781
12782 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12783 (dwarf2_section_size, dwarf2_get_section_info)
12784 (create_signatured_type_table_from_debug_names)
12785 (create_addrmap_from_aranges, read_debug_names_from_section)
12786 (get_gdb_index_contents_from_section, read_comp_unit_head)
12787 (error_check_comp_unit_head, read_abbrev_offset)
12788 (create_debug_type_hash_table, init_cu_die_reader)
12789 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12790 (read_comp_units_from_section, create_cus_hash_table)
12791 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12792 (create_dwp_v2_section, dwarf2_rnglists_process)
12793 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12794 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12795 (read_indirect_string_from_dwz, read_addr_index_1)
12796 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12797 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12798 (fill_in_loclist_baton): Update.
12799 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12800 get_containing_section, get_bfd_owner, get_bfd_section,
12801 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12802 (dwarf2_read_section, get_section_name, get_section_file_name)
12803 (get_containing_section, get_section_bfd_owner)
12804 (get_section_bfd_section, get_section_name, get_section_file_name)
12805 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12806 declare.
12807 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12808 (dwarf2_section_info::get_bfd_owner)
12809 (dwarf2_section_info::get_bfd_section)
12810 (dwarf2_section_info::get_name)
12811 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12812 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12813 (dwarf2_section_info::read): Now methods.
12814 * dwarf-index-write.c (class debug_names): Update.
12815
2c86cff9
TT
128162020-02-08 Tom Tromey <tom@tromey.com>
12817
12818 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12819 Move to dwarf2/section.h.
12820 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12821 (get_section_bfd_section, get_section_name)
12822 (get_section_file_name, get_section_id, get_section_flags)
12823 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12824 dwarf2/section.c.
12825 * dwarf2/section.h: New file.
12826 * dwarf2/section.c: New file, from dwarf2read.c.
12827 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12828
f4382c45
TT
128292020-02-08 Tom Tromey <tom@tromey.com>
12830
12831 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12832 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12833 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12834 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12835 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12836 * dwarf2/leb.h: New file, from dwarf2read.c.
12837 * dwarf2/leb.c: New file, from dwarf2read.c.
12838 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12839 Remove.
12840 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12841 (COMMON_SFILES): Add dwarf2/leb.c.
12842
01840b7a
JB
128432020-02-08 Joel Brobecker <brobecker@adacore.com>
12844
12845 GDB 9.1 released.
12846
dfcb27e4
IB
128472020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12848
12849 PR gdb/25190:
aac66a4c
SM
12850 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12851 * gdb/remote.c (remote_console_output): Update.
12852 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12853 (ui_file_puts): ...this.
12854 * gdb/ui-file.h (ui_file_puts): Add declaration.
12855 * gdb/utils.c (emit_style_escape): Update.
12856 (flush_wrap_buffer): Update.
12857 (fputs_maybe_filtered): Update.
12858 (fputs_unfiltered): Add function.
dfcb27e4 12859
faa17681
IB
128602020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12861
aac66a4c
SM
12862 * gdb/event-loop.c (gdb_wait_for_event): Update.
12863 * gdb/printcmd.c (printf_command): Update.
12864 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12865 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12866 (gdb_os_flush_stderr): Update.
12867 * gdb/remote.c (remote_console_output): Update.
12868 * gdb/ui-file.c (gdb_flush): Rename to...
12869 (ui_file_flush): ...this.
12870 (stderr_file::write): Update.
12871 (stderr_file::puts): Update.
12872 * gdb/ui-file.h (gdb_flush): Rename to...
12873 (ui_file_flush): ...this.
12874 * gdb/utils.c (gdb_flush): Add function.
12875 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12876
5abbbe1d
TT
128772020-02-07 Tom Tromey <tromey@adacore.com>
12878
12879 PR breakpoints/24915:
12880 * source.c (find_and_open_source): Do not check basenames_may_differ.
12881
919adfe8
TT
128822020-02-07 Tom Tromey <tom@tromey.com>
12883
12884 * README: Update gdbserver documentation.
12885 * gdbserver: Move to top level.
12886 * configure.tgt (build_gdbserver): Remove.
12887 * configure.ac: Remove --enable-gdbserver.
12888 * configure: Rebuild.
12889 * Makefile.in (distclean): Don't mention gdbserver.
12890
1d5d29e7
SV
128912020-02-06 Shahab Vahedi <shahab@synopsys.com>
12892
12893 * source-cache.c (source_cache::ensure): Surround
12894 get_plain_source_lines with a try/catch.
12895 (source_cache::get_line_charpos): Get rid of try/catch
12896 and only check for the return value of "ensure".
12897 * tui/tui-source.c (tui_source_window::set_contents):
12898 Simplify "nlines" calculation.
12899
6eb1129c
SV
129002020-02-06 Shahab Vahedi <shahab@synopsys.com>
12901
12902 * MAINTAINERS (Write After Approval): Add myself.
12903
c6a42d11
CB
129042020-02-05 Christian Biesinger <cbiesinger@google.com>
12905
12906 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12907 function call.
12908
c8ecdda6
CB
129092020-02-05 Christian Biesinger <cbiesinger@google.com>
12910
12911 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12912
f6480e70
MR
129132020-02-05 Maciej W. Rozycki <macro@wdc.com>
12914
12915 * nat/riscv-linux-tdesc.h: New file.
12916 * nat/riscv-linux-tdesc.c: New file, taking code from...
12917 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12918 ... here.
12919 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12920 NATDEPFILES.
12921
dcc9fbc6
AB
129222020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12923
12924 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12925 we don't set the fake simulator ptid to the null_ptid.
12926
719546c4
SM
129272020-02-03 Simon Marchi <simon.marchi@efficios.com>
12928
12929 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12930 * gdbthread.h (class thread_info) <resumed>: Likewise.
12931 * infrun.c (resume_1): Likewise.
12932 (proceed): Likewise.
12933 (infrun_thread_stop_requested): Likewise.
12934 (stop_all_threads): Likewise.
12935 (handle_inferior_event): Likewise.
12936 (restart_threads): Likewise.
12937 (finish_step_over): Likewise.
12938 (keep_going_stepped_thread): Likewise.
12939 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12940 (linux_handle_extended_wait): Likewise.
12941 * record-btrace.c (get_thread_current_frame_id): Likewise.
12942 * record-full.c (record_full_wait_1): Likewise.
12943 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12944 * target.c (target_resume): Likewise.
12945 * thread.c (set_running_thread): Likewise.
12946
e409c542
AKS
129472020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12948
12949 * f-valprint.c (f77_print_array_1): Changed datatype of index
12950 variable to LONGEST from int to enable it to contain bound
12951 values correctly.
12952
ee98c0da
MR
129532020-02-03 Maciej W. Rozycki <macro@wdc.com>
12954
12955 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12956 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12957 offsets according to FLEN determined.
12958 (riscv_linux_nat_target::read_description): Determine FLEN
12959 dynamically.
12960 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12961 according to FLEN determined.
12962 (riscv_linux_nat_target::store_registers): Likewise.
12963
aa66aac4
SV
129642020-02-01 Shahab Vahedi <shahab@synopsys.com>
12965
12966 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12967 when reg->group is empty and reggroup is not.
12968
fd9faca8
TT
129692020-01-31 Tom Tromey <tromey@adacore.com>
12970
12971 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12972 Call beneath target's mourn_inferior after unpushing.
12973
42330a68
AB
129742020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12975
12976 PR tui/9765
12977 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12978 have enough lines to fill the screen, still return the lowest
12979 address we found.
12980
7a27a45b
AB
129812020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12982
12983 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12984 '-', '<', and '>' commands.
12985
c47f70e2
PA
129862020-01-29 Pedro Alves <palves@redhat.com>
12987 Sergio Durigan Junior <sergiodj@redhat.com>
12988
12989 * infcmd.c (construct_inferior_arguments): Assert that
12990 'argc' is greater than 0.
12991
5133a315
LM
129922020-01-29 Luis Machado <luis.machado@linaro.org>
12993
12994 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12995 (BRK_INSN_MASK): Define to 0xd4200000.
12996 (aarch64_program_breakpoint_here_p): New function.
12997 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12998 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12999 breakpoint.c.
13000 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13001 breakpoint.h
13002 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13003 call gdbarch_program_breakpoint_here_p.
13004 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13005 default_program_breakpoint_here_p, changed return type to bool and
13006 simplified.
13007 * breakpoint.h (program_breakpoint_here): Moved prototype to
13008 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13009 return type to bool.
13010 * gdbarch.c: Regenerate.
13011 * gdbarch.h: Regenerate.
13012 * gdbarch.sh (program_breakpoint_here_p): New method.
13013 * infrun.c (handle_signal_stop): Call
13014 gdbarch_program_breakpoint_here_p.
13015
168f8c6b
TT
130162020-01-26 Tom Tromey <tom@tromey.com>
13017
13018 * ctfread.c (struct ctf_fp_info): Reindent.
13019 (_initialize_ctfread): Remove.
13020
128a391f
TT
130212020-01-26 Tom Tromey <tom@tromey.com>
13022
13023 * psymtab.c (partial_map_expand_apply)
13024 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13025 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13026 (psym_print_stats, psym_expand_symtabs_for_function)
13027 (psym_map_symbol_filenames, psym_map_matching_symbols)
13028 (psym_expand_symtabs_matching)
13029 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13030 (maintenance_check_psymtabs): Use new methods.
13031 * psympriv.h (struct partial_symtab) <readin_p,
13032 get_compunit_symtab>: New methods.
13033 <readin, compunit_symtab>: Remove members.
13034 (struct standard_psymtab): New.
13035 (struct legacy_psymtab): Derive from standard_psymtab.
13036 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13037 standard_psymtab.
13038 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13039
0494dbec
TT
130402020-01-26 Tom Tromey <tom@tromey.com>
13041
13042 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13043 read_dependencies. Add assert.
13044 * psymtab.c (partial_symtab::read_dependencies): New method.
13045 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13046 method.
13047 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13048 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13049 read_dependencies.
13050 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13051 Add assert.
13052
8566b89b
TT
130532020-01-26 Tom Tromey <tom@tromey.com>
13054
13055 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13056 Call expand_psymtab.
13057 (xcoff_read_symtab): Call expand_psymtab.
13058 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13059 legacy_expand_psymtab.
13060 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13061 method.
13062 (struct legacy_psymtab) <expand_psymtab>: Implement.
13063 <legacy_expand_psymtab>: New member.
13064 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13065 (parse_partial_symbols): Set legacy_expand_psymtab.
13066 (psymtab_to_symtab_1): Change argument order. Call
13067 expand_psymtab.
13068 (new_psymtab): Set legacy_expand_psymtab.
13069 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13070 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13071 expand_psymtab.
13072 (dwarf2_psymtab::expand_psymtab): Rename from
13073 psymtab_to_symtab_1. Call expand_psymtab.
13074 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13075 (dbx_end_psymtab): Likewise.
13076 (dbx_psymtab_to_symtab_1): Change argument order. Call
13077 expand_psymtab.
13078 (dbx_read_symtab): Call expand_psymtab.
13079 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13080 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13081 (ctf_psymtab::read_symtab): Call expand_psymtab.
13082
077cbab2
TT
130832020-01-26 Tom Tromey <tom@tromey.com>
13084
13085 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13086 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13087 messages.
13088 * mdebugread.c (mdebug_read_symtab): Remove prints.
13089 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13090 assert.
13091 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13092
891813be
TT
130932020-01-26 Tom Tromey <tom@tromey.com>
13094
13095 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13096 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13097 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13098 legacy_symtab.
13099 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13100 * psymtab.c (psymtab_to_symtab): Call method.
13101 (dump_psymtab): Update.
13102 * psympriv.h (struct partial_symtab): Add virtual destructor.
13103 <read_symtab>: New method.
13104 (struct legacy_symtab): New.
13105 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13106 (struct pst_map) <pst>: Now a legacy_psymtab.
13107 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13108 (new_psymtab): Use legacy_psymtab.
13109 * dwarf2read.h (struct dwarf2_psymtab): New.
13110 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13111 * dwarf2read.c (dwarf2_create_include_psymtab)
13112 (dwarf2_build_include_psymtabs, create_type_unit_group)
13113 (create_partial_symtab, process_psymtab_comp_unit_reader)
13114 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13115 (set_partial_user): Use dwarf2_psymtab.
13116 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13117 (psymtab_to_symtab_1, process_full_comp_unit)
13118 (process_full_type_unit, dwarf2_ranges_read)
13119 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13120 (dwarf_decode_lines): Use dwarf2_psymtab.
13121 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13122 (add_address_entry_worker, write_one_signatured_type)
13123 (recursively_count_psymbols, recursively_write_psymbols)
13124 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13125 (write_debug_names): Likewise.
13126 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13127 <pst>: Now a legacy_psymtab.
13128 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13129 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13130 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13131 * ctfread.c (struct ctf_psymtab): New.
13132 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13133 ctf_psymtab.
13134 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13135 (create_partial_symtab): Return a ctf_psymtab.
13136 (scan_partial_symbols): Update.
13137
c3693a1d
TT
131382020-01-26 Tom Tromey <tom@tromey.com>
13139
13140 * xcoffread.c (xcoff_start_psymtab): Use new.
13141 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13142 renamed from start_psymtab_common.
13143 * psympriv.h (struct partial_symtab): Add new constructor.
13144 (start_psymtab_common): Don't declare.
13145 * mdebugread.c (parse_partial_symbols): Use new.
13146 * dwarf2read.c (create_partial_symtab): Use new.
13147 * dbxread.c (start_psymtab): Use new.
13148 * ctfread.c (create_partial_symtab): Use new.
13149
32caafd0
TT
131502020-01-26 Tom Tromey <tom@tromey.com>
13151
13152 * xcoffread.c (xcoff_end_psymtab): Use new.
13153 * psymtab.c (start_psymtab_common): Use new.
13154 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13155 Update.
13156 * psympriv.h (struct partial_symtab): Add parameters to
13157 constructor. Don't inline.
13158 (allocate_psymtab): Don't declare.
13159 * mdebugread.c (new_psymtab): Use new.
13160 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13161 * dbxread.c (dbx_end_psymtab): Use new.
13162
abaa2f23
TT
131632020-01-26 Tom Tromey <tom@tromey.com>
13164
13165 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13166 allocate_psymtab. Update documentation.
13167 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13168 allocate_psymtab. Do not use new.
13169 (allocate_psymtab): Use new. Update.
13170
6d94535f
TT
131712020-01-26 Tom Tromey <tom@tromey.com>
13172
13173 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13174 * psymtab.c (psym_print_stats): Update.
13175 * psympriv.h (struct partial_symtab) <readin,
13176 psymtabs_addrmap_supported, anonymous>: Now bool.
13177 * mdebugread.c (psymtab_to_symtab_1): Update.
13178 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13179 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13180 (process_full_comp_unit, process_full_type_unit): Update.
13181 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13182 * ctfread.c (psymtab_to_symtab): Update.
13183
6f17252b
TT
131842020-01-26 Tom Tromey <tom@tromey.com>
13185
13186 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13187 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13188 * psymtab.c (psymtab_storage): Delete psymtabs.
13189 (psymtab_storage::allocate_psymtab): Use new.
13190 (psymtab_storage::discard_psymtab): Use delete.
13191 * psympriv.h (struct partial_symtab): Add constructor and
13192 initializers.
13193
f6f1cebc
TT
131942020-01-26 Tom Tromey <tom@tromey.com>
13195
13196 * machoread.c: Do not include psympriv.h.
13197
e47e48f6
PW
131982020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13199
13200 * NEWS: Mention the new option and the set/show commands.
13201
a2fedca9
PW
132022020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13203
13204 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13205 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13206 (validate_exec_file): New variables, enums, functions.
13207 (exec_file_locate_attach, print_section_info): Style the filenames.
13208 (_initialize_exec): Install show_exec_file_mismatch_command and
13209 set_exec_file_mismatch_command.
13210 * gdbcore.h (validate_exec_file): Declare.
13211 * infcmd.c (attach_command): Call validate_exec_file.
13212 * remote.c ( remote_target::remote_add_inferior): Likewise.
13213
7ffa82e1
AB
132142020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13215
13216 * frame.c (find_frame_sal): Move call to get_next_frame into more
13217 inner scope.
13218 * inline-frame.c (inilne_state) <inline_state>: Update argument
13219 types.
13220 (inilne_state) <skipped_symbol>: Rename to...
13221 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13222 (skip_inline_frames): Build vector of skipped symbols and use this
13223 to reate the inline_state.
13224 (inline_skipped_symbol): Add a comment and some assertions, fetch
13225 skipped symbol from the list.
13226
3d92a3e3
AB
132272020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13228
13229 * buildsym.c (lte_is_less_than): Delete.
13230 (buildsym_compunit::end_symtab_with_blockvector): Create local
13231 lambda function to sort line table entries, and use
13232 std::stable_sort instead of std::sort.
13233 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13234 markers when looking for a previous line.
13235
94a72be7
AB
132362020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13237
13238 * dwarf2read.c (lnp_state_machine::record_line): Include
13239 end_sequence parameter in debug print out. Record the line if we
13240 are at an end_sequence marker even if it's not the start of a
13241 statement.
13242 * symmisc.c (maintenance_print_one_line_table): Print end of
13243 sequence markers with 'END' not '0'.
13244
53af73bf
PA
132452020-01-24 Pedro Alves <palves@redhat.com>
13246
13247 PR gdb/25410
13248 * thread.c (scoped_restore_current_thread::restore): Use
13249 switch_to_inferior_no_thread.
13250 * exec.c: Include "progspace-and-thread.h".
13251 (add_target_sections, remove_target_sections):
13252 scoped_restore_current_pspace_and_thread instead of
13253 scoped_restore_current_thread.
13254 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13255 and aspace to the inferior before calling clone_program_space.
13256 Remove stale comment.
13257
3050c6f4
CB
132582020-01-24 Christian Biesinger <cbiesinger@google.com>
13259
13260 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13261 (arm_netbsd_nat_target::fetch_registers): ...this.
13262 (arm_nbsd_nat_target::store_registers): Rename to...
13263 (arm_netbsd_nat_target::store_registers): ...this.
13264
73685c7e
CB
132652020-01-24 Christian Biesinger <cbiesinger@google.com>
13266
13267 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13268 register_t.
13269
89203d40
CB
132702020-01-24 Christian Biesinger <cbiesinger@google.com>
13271
13272 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13273 Update comment.
13274 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13275 Likewise.
13276 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13277 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13278 the correct replacement (iterate_over_regset_sections).
13279 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13280 Update comment.
13281
1ba1ac88
AB
132822020-01-24 Graham Markall <graham.markall@embecosm.com>
13283
13284 PR gdb/23718
13285 * gdb/python/python.c (execute_gdb_command): Call
13286 async_enable_stdin in catch block.
13287
f3364a6d
AB
132882020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13289
13290 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13291 SWITCH_THRU_ALL_UIS.
13292
733d0a67
AB
132932020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13294
13295 PR tui/9765
13296 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13297 comment, add extra parameter, and update to store previous symbol
13298 when appropriate.
13299 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13300 add extra parameter.
13301 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13302 remove unneeded parameter, add try/catch around gdb_print_insn,
13303 rewrite to add items to asm_lines vector.
13304 (tui_find_backward_disassembly_start_address): New function.
13305 (tui_find_disassembly_address): Updated throughout.
13306 (tui_disasm_window::set_contents): Update for changes to
13307 tui_disassemble.
13308 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13309 number of lines to scroll.
13310
b3b3bada
SM
133112020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13312
13313 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13314 (SECT_OFF_DATA): Likewise.
13315 (SECT_OFF_RODATA): Likewise.
13316 (SECT_OFF_TEXT): Likewise.
13317 (SECT_OFF_BSS): Likewise.
13318 (struct objfile) <text_section_offset, data_section_offset>: New
13319 methods.
13320 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13321 objfile::text_section_offset.
13322 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13323 * coffread.c (coff_symtab_read): Likewise.
13324 (enter_linenos): Likewise.
13325 (process_coff_symbol): Likewise.
13326 * ctfread.c (get_objfile_text_range): Likewise.
13327 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13328 Use objfile::data_section_offset.
13329 * dwarf2-frame.c (execute_cfa_program): Use
13330 objfile::text_section_offset.
13331 (dwarf2_frame_find_fde): Likewise.
13332 * dwarf2read.c (create_addrmap_from_index): Likewise.
13333 (create_addrmap_from_aranges): Likewise.
13334 (dw2_find_pc_sect_compunit_symtab): Likewise.
13335 (process_psymtab_comp_unit_reader): Likewise.
13336 (add_partial_symbol): Likewise.
13337 (add_partial_subprogram): Likewise.
13338 (process_full_comp_unit): Likewise.
13339 (read_file_scope): Likewise.
13340 (read_func_scope): Likewise.
13341 (read_lexical_block_scope): Likewise.
13342 (read_call_site_scope): Likewise.
13343 (dwarf2_rnglists_process): Likewise.
13344 (dwarf2_ranges_process): Likewise.
13345 (dwarf2_ranges_read): Likewise.
13346 (dwarf_decode_lines_1): Likewise.
13347 (new_symbol): Likewise.
13348 (dwarf2_fetch_die_loc_sect_off): Likewise.
13349 (dwarf2_per_cu_text_offset): Likewise.
13350 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13351 * hppa-tdep.c (read_unwind_info): Likewise.
13352 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13353 * psympriv.h (struct partial_symtab): Likewise.
13354 * psymtab.c (find_pc_sect_psymtab): Likewise.
13355 * solib-svr4.c (enable_break): Likewise.
13356 * stap-probe.c (relocate_address): Use
13357 objfile::data_section_offset.
13358 * xcoffread.c (enter_line_range): Use
13359 objfile::text_section_offset.
13360 (read_xcoff_symtab): Likewise.
13361
ab53f382
SM
133622020-01-23 Simon Marchi <simon.marchi@efficios.com>
13363
13364 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13365 declaration to narrower scopes.
13366
e7eee665
SM
133672020-01-23 Simon Marchi <simon.marchi@efficios.com>
13368
13369 * darwin-nat.h (struct darwin_exception_msg, enum
13370 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13371 Move up.
13372 (class darwin_nat_target) <wait_1, check_new_threads,
13373 decode_exception_message, decode_message, stop_inferior,
13374 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13375 * darwin-nat.c (darwin_check_new_threads): Rename to...
13376 (darwin_nat_target::check_new_threads): ... this.
13377 (darwin_suspend_inferior_it): Remove.
13378 (darwin_decode_exception_message): Rename to...
13379 (darwin_nat_target::decode_exception_message): ... this.
13380 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13381 (darwin_decode_message): Rename to...
13382 (darwin_nat_target::decode_message): ... this.
13383 (cancel_breakpoint): Rename to...
13384 (darwin_nat_target::cancel_breakpoint): ... this.
13385 (darwin_wait): Rename to...
13386 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13387 instead of iterate_over_inferiors.
13388 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13389 (darwin_stop_inferior): Rename to...
13390 (darwin_nat_target::stop_inferior): ... this.
13391 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13392 (darwin_init_thread_list): Rename to...
13393 (darwin_nat_target::init_thread_list): ... this.
13394 (darwin_ptrace_him): Rename to...
13395 (darwin_nat_target::ptrace_him): ... this.
13396 (darwin_nat_target::create_inferior): Pass lambda function to
13397 fork_inferior.
13398 (darwin_nat_target::detach): Call stop_inferior instead of
13399 darwin_stop_inferior.
13400 * fork-inferior.h (fork_inferior): Change init_trace_fun
13401 parameter to gdb::function_view.
13402 * fork-inferior.c (fork_inferior): Likewise.
13403
c162ed3e
HD
134042020-01-23 Hannes Domani <ssbssa@yahoo.de>
13405
13406 * i386-cygwin-tdep.c (core_process_module_section): Update.
13407 * windows-nat.c (struct lm_info_windows): Add text_offset.
13408 (windows_xfer_shared_libraries): Update.
13409 * windows-tdep.c (windows_xfer_shared_library):
13410 Add text_offset_cached argument.
13411 * windows-tdep.h (windows_xfer_shared_library): Update.
13412
a1237872
SM
134132020-01-21 Simon Marchi <simon.marchi@efficios.com>
13414
13415 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13416
b3ee6dd9
SM
134172020-01-21 Simon Marchi <simon.marchi@efficios.com>
13418
13419 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13420 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13421 replace with range-based for.
13422 (gdbsim_interrupt_inferior): Remove.
13423 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13424 with a range-based for. Inline code from
13425 gdbsim_interrupt_inferior.
13426
f9fac3c8
SM
134272020-01-21 Simon Marchi <simon.marchi@efficios.com>
13428
13429 * infrun.c (proceed): Fix indentation.
13430
f6474de9
TT
134312020-01-21 Tom Tromey <tromey@adacore.com>
13432
13433 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13434 * python/python.c (python_extension_ops): Update.
13435 (gdbpy_colorize): New function.
13436 * python/lib/gdb/__init__.py (colorize): New function.
13437 * extension.h (ext_lang_colorize): Declare.
13438 * extension.c (ext_lang_colorize): New function.
13439 * extension-priv.h (struct extension_language_ops) <colorize>: New
13440 member.
13441 * cli/cli-style.c (_initialize_cli_style): Update help text.
13442
f0c702d4
LM
134432020-01-21 Luis Machado <luis.machado@linaro.org>
13444
13445 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13446 <cond>: Change type to bool.
13447 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13448 (aarch64_displaced_step_cb): Likewise.
13449 (aarch64_displaced_step_tb): Likewise.
13450
1ab139e5
LM
134512020-01-21 Luis Machado <luis.machado@linaro.org>
13452
13453 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13454 output.
13455
0c271889
LM
134562020-01-21 Luis Machado <luis.machado@linaro.org>
13457
13458 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13459 <pc_adjust>: Adjust the documentation.
13460 (aarch64_displaced_step_fixup): Check if PC really moved before
13461 adjusting it.
13462
4d89c1c7
TT
134632020-01-19 Tom Tromey <tom@tromey.com>
13464
13465 * disasm.c (~gdb_disassembler): New destructor.
13466 (gdb_buffered_insn_length): Call disassemble_free_target.
13467 * disasm.h (class gdb_disassembler): Declare destructor. Use
13468 DISABLE_COPY_AND_ASSIGN.
13469
c0ab21c2
TT
134702020-01-19 Tom Tromey <tom@tromey.com>
13471
13472 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13473 (die_reader_func_ftype): Remove.
13474 (cutu_reader): New class.
13475 (dw2_get_file_names_reader): Remove "data" parameter.
13476 (dw2_get_file_names): Use cutu_reader.
13477 (create_debug_type_hash_table): Update.
13478 (read_cutu_die_from_dwo): Update comment.
13479 (lookup_dwo_unit): Add dwo_name parameter.
13480 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13481 die_reader_func_ftype and data parameters.
13482 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13483 Remove die_reader_func_ftype and data parameters.
13484 (~cutu_reader): New; from init_cutu_and_read_dies.
13485 (cutu_reader::cutu_reader): Rename from
13486 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13487 and data parameters.
13488 (init_cutu_and_read_dies_simple): Remove.
13489 (struct process_psymtab_comp_unit_data): Remove.
13490 (process_psymtab_comp_unit_reader): Remove data parameter; add
13491 want_partial_unit and pretend_language parameters.
13492 (process_psymtab_comp_unit): Use cutu_reader.
13493 (build_type_psymtabs_reader): Remove data parameter.
13494 (build_type_psymtabs_1): Use cutu_reader.
13495 (process_skeletonless_type_unit): Likewise.
13496 (load_partial_comp_unit_reader): Remove.
13497 (load_partial_comp_unit): Use cutu_reader.
13498 (load_full_comp_unit_reader): Remove.
13499 (load_full_comp_unit): Use cutu_reader.
13500 (struct create_dwo_cu_data): Remove.
13501 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13502 dwo_unit parameters.
13503 (create_cus_hash_table): Use cutu_reader.
13504 (struct dwarf2_read_addr_index_data): Remove.
13505 (dwarf2_read_addr_index_reader): Remove.
13506 (dwarf2_read_addr_index): Use cutu_reader.
13507 (read_signatured_type_reader): Remove.
13508 (read_signatured_type): Use cutu_reader.
13509
45bbae5c
TT
135102020-01-19 Tom Tromey <tom@tromey.com>
13511
13512 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13513 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13514 (tui_wrefresh): Declare.
13515 * tui/tui-wingeneral.c (suppress_output): New global.
13516 (tui_suppress_output, ~tui_suppress_output): New constructor and
13517 destructor.
13518 (tui_wrefresh): New function.
13519 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13520 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13521 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13522 method.
13523 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13524 tui_wrefresh.
13525 (tui_data_window::no_refresh): New method.
13526 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13527 (tui_reg_command): Use tui_suppress_output
13528 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13529 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13530 method.
13531 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13532
4f13c1c0
TT
135332020-01-19 Tom Tromey <tom@tromey.com>
13534
13535 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13536 Handle case where symtab is null.
13537
fa47e446
SM
135382020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13539
13540 * linux-fork.c (one_fork_p): Simplify.
13541
26f42329
SM
135422020-01-17 Simon Marchi <simon.marchi@efficios.com>
13543
13544 * top.c (struct qt_args): Remove.
13545 (kill_or_detach): Change return type to void, replace `void *`
13546 parameter with a proper one.
13547 (print_inferior_quit_action): Likewise.
13548 (quit_confirm): Use range-based for loop to iterate over inferiors.
13549 (quit_force): Likewise.
13550
a9ac81b1
SM
135512020-01-17 Simon Marchi <simon.marchi@efficios.com>
13552
13553 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13554 `void *` parameter with proper parameters.
13555 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13556 (print_one_inferior): Change return type to void, replace `void *`
13557 parameter with proper parameters.
13558 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13559 inferiors.
13560 (get_other_inferior): Remove.
13561 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13562 inferiors.
13563
788eca49
SM
135642020-01-17 Simon Marchi <simon.marchi@efficios.com>
13565
13566 * mi/mi-interp.c (report_initial_inferior): Remove.
13567 (mi_interp::init): Use range-based for to iterate over inferiors.
13568
d9bc85b6
SM
135692020-01-17 Simon Marchi <simon.marchi@efficios.com>
13570
13571 * python/py-inferior.c (build_inferior_list): Remove.
13572 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13573
40c94099
CB
135742020-01-16 Christian Biesinger <cbiesinger@google.com>
13575
13576 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13577 (btrace_stitch_trace): Likewise.
13578 * charset.c (intermediate_encoding): Likewise (vaild).
13579 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13580 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13581 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13582
e0cdfe3c
HD
135832020-01-16 Hannes Domani <ssbssa@yahoo.de>
13584
13585 * windows-tdep.c (windows_get_tlb_type):
13586 Add rtl_user_process_parameters type.
13587
790f1718 135882020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13589 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13590
13591 PR build/24805
13592 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13593 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13594 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13595 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13596 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13597 (ps_plog): Redeclare exported functions with default visibility.
13598
3112ed97
NA
135992020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13600
13601 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13602 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13603
8dc3273e
SM
136042020-01-15 Simon Marchi <simon.marchi@efficios.com>
13605
13606 * infcmd.c (post_create_inferior): Use get_thread_regcache
13607 instead of get_current_regcache.
13608
ff47f4f0
TT
136092020-01-14 Tom Tromey <tom@tromey.com>
13610
13611 PR symtab/12535:
13612 * python/python.c (gdbpy_decode_line): Treat empty string the same
13613 as no argument.
13614
975f45b7
TT
136152020-01-14 Tom Tromey <tom@tromey.com>
13616
13617 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13618
25e57356
TT
136192020-01-14 Tom Tromey <tom@tromey.com>
13620
13621 * nat/linux-btrace.c: Don't include <config.h>.
13622 * nat/linux-ptrace.c: Don't include <config.h>.
13623 * nat/x86-linux-dregs.c: Don't include <config.h>.
13624
05ea2a05
TT
136252020-01-14 Tom Tromey <tom@tromey.com>
13626
13627 * configure: Rebuild.
13628 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13629
01027315
TT
136302020-01-14 Tom Tromey <tom@tromey.com>
13631
13632 * nat/x86-linux-dregs.c: Include configh.h.
13633 * nat/linux-ptrace.c: Include configh.h.
13634 * nat/linux-btrace.c: Include configh.h.
13635 * defs.h: Include config.h, bfd.h.
13636 * configure.ac: Don't source common.host.
13637 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13638 * configure: Rebuild.
13639 * acinclude.m4: Update path.
13640 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13641 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13642 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13643 (CLIBS): Add LIBSUPPORT.
13644 (CDEPS): Likewise.
13645 (COMMON_SFILES): Remove gdbsupport files.
13646 (HFILES_NO_SRCDIR): Likewise.
13647 (stamp-version): Update path to create-version.sh.
13648 (ALLDEPFILES): Remove gdbsupport files.
13649
b2ceabe8
TT
136502020-01-14 Tom Tromey <tom@tromey.com>
13651
13652 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13653 USE_WIN32API when needed.
13654 * configure.ac (USE_WIN32API): Don't define.
13655 (WIN32LIBS): Use WIN32APILIBS.
13656 * configure: Rebuild.
13657
25c51f71
TT
136582020-01-14 Tom Tromey <tom@tromey.com>
13659
13660 * configure: Rebuild.
13661 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13662
717c684d
BE
136632020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13664
13665 * skip.c (skip_function_command): Make skip w/o arguments use the
13666 name of the inlined function if pc is inside any inlined function.
13667
7da6a5b9
LM
136682020-01-14 Luis Machado <luis.machado@linaro.org>
13669
13670 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13671 * infrun.c (resume_1): Likewise.
13672 (handle_inferior_event): Remove stale comment.
13673 * linux-nat.c (linux_nat_target::resume): Update comments.
13674 (save_stop_reason): Likewise.
13675 (linux_nat_filter_event): Likewise.
13676 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13677
44e4c775
AB
136782020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13679
13680 * elfread.c (record_minimal_symbol): Set section index to 0 for
13681 non-allocatable sections.
13682
18a8505e
AT
13683
136842020-01-13 Ali Tamur <tamur@google.com>
13685
13686 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13687 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13688 to gdb::optional. Update comments.
13689 (dwo_file): Update comments.
13690 (read_attribute): Update API to take an additional out parameter,
13691 need_reprocess. This is used to mark attributes that need other
13692 attributes (e.g. str_offsets_base) for correct computation which may not
13693 have been read yet.
13694 (read_attribute_reprocess): New function declaration.
13695 (read_addr_index): Likewise.
13696 (read_dwo_str_index): Likewise.
13697 (read_stub_str_index): Likewise.
13698 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13699 (lookup_addr_base): New function definition.
13700 (lookup_ranges_base): Likewise.
13701 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13702 lookup_ranges_base.
13703 (init_cutu_and_read_dies): Update comments.
13704 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13705 unit. This is used to inherit parent's str_offsets_base and addr_base.
13706 Update comments.
13707 (init_cutu_and_read_dies_simple): Reflect API changes.
13708 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13709 (create_cus_hash_table): Change API to take parent compile unit.
13710 Reflect API changes.
13711 (open_and_init_dwo_file): Reflect API changes.
13712 (dwarf2_get_pc_bounds): Update comments.
13713 (dwarf2_record_block_ranges): Likewise.
13714 (read_full_die_1): Change implementation to reprocess attributes that
13715 need str_offsets_base and addr_base.
13716 (partial_die_info::read): Likewise.
13717 (read_attribute_reprocess): New function definition.
13718 (read_attribute_value): Change API to take an additional out parameter,
13719 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13720 when a non-dwo compile unit has index based attributes.
13721 (read_attribute): Reflect API changes.
13722 (read_addr_index_1): Reflect API changes. Update comments.
13723 (dwarf2_read_addr_index_data): Reflect API changes.
13724 (dwarf2_read_addr_index): Likewise.
13725 (read_str_index): Change API and implementation. This becomes a helper
13726 to be used by the new string index related methods. Update error
13727 message and comments.
13728 (read_dwo_str_index): New function definition.
13729 (read_stub_str_index): Likewise.
13730 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13731 * symfile.h (dwarf2_debug_sections): Likewise.
13732 * xcoffread.c (dwarf2_debug_sections): Likewise.
13733
0cac9354
SM
137342020-01-13 Simon Marchi <simon.marchi@efficios.com>
13735
13736 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13737 core_reg_sect type to gdb_byte *.
13738 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13739 * cris-tdep.c (fetch_core_registers): Likewise.
13740 * corelow.c (core_target::get_core_register_section): Change
13741 type of `contents` to gdb::byte_vector.
13742
9a6d629c
AB
137432020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13744
13745 * tui/tui-wingeneral.c (box_win): Position the title in the center
13746 of the border.
13747
d8b2f9e3
SM
137482020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13749
13750 * corelow.c (core_target::get_core_register_section): Use
13751 std::vector instead of alloca.
13752
bb564c58
SM
137532020-01-13 Simon Marchi <simon.marchi@efficios.com>
13754
13755 * warning.m4: Add -Wmissing-declarations to build_warnings.
13756 * configure: Re-generate.
13757
6b366111
SM
137582020-01-13 Simon Marchi <simon.marchi@efficios.com>
13759
13760 * python/python.c (init__gdb_module): Add declaration.
13761
6c265988
SM
137622020-01-13 Simon Marchi <simon.marchi@efficios.com>
13763
13764 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13765 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13766 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13767 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13768 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13769 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13770 * ada-exp.y (_initialize_ada_exp): Add declaration.
13771 * ada-lang.c (_initialize_ada_language): Add declaration.
13772 * ada-tasks.c (_initialize_tasks): Add declaration.
13773 * agent.c (_initialize_agent): Add declaration.
13774 * aix-thread.c (_initialize_aix_thread): Add declaration.
13775 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13776 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13777 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13778 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13779 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13780 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13781 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13782 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13783 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13784 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13785 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13786 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13787 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13788 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13789 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13790 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13791 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13792 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13793 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13794 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13795 * annotate.c (_initialize_annotate): Add declaration.
13796 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13797 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13798 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13799 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13800 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13801 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13802 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13803 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13804 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13805 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13806 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13807 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13808 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13809 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13810 * auto-load.c (_initialize_auto_load): Add declaration.
13811 * auxv.c (_initialize_auxv): Add declaration.
13812 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13813 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13814 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13815 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13816 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13817 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13818 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13819 * breakpoint.c (_initialize_breakpoint): Add declaration.
13820 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13821 * btrace.c (_initialize_btrace): Add declaration.
13822 * charset.c (_initialize_charset): Add declaration.
13823 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13824 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13825 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13826 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13827 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13828 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13829 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13830 * coffread.c (_initialize_coffread): Add declaration.
13831 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13832 * compile/compile.c (_initialize_compile): Add declaration.
13833 * complaints.c (_initialize_complaints): Add declaration.
13834 * completer.c (_initialize_completer): Add declaration.
13835 * copying.c (_initialize_copying): Add declaration.
13836 * corefile.c (_initialize_core): Add declaration.
13837 * corelow.c (_initialize_corelow): Add declaration.
13838 * cp-abi.c (_initialize_cp_abi): Add declaration.
13839 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13840 * cp-support.c (_initialize_cp_support): Add declaration.
13841 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13842 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13843 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13844 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13845 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13846 * ctfread.c (_initialize_ctfread): Add declaration.
13847 * d-lang.c (_initialize_d_language): Add declaration.
13848 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13849 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13850 * dbxread.c (_initialize_dbxread): Add declaration.
13851 * dcache.c (_initialize_dcache): Add declaration.
13852 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13853 * disasm.c (_initialize_disasm): Add declaration.
13854 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13855 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13856 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13857 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13858 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13859 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13860 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13861 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13862 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13863 * elfread.c (_initialize_elfread): Add declaration.
13864 * exec.c (_initialize_exec): Add declaration.
13865 * extension.c (_initialize_extension): Add declaration.
13866 * f-lang.c (_initialize_f_language): Add declaration.
13867 * f-valprint.c (_initialize_f_valprint): Add declaration.
13868 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13869 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13870 * filesystem.c (_initialize_filesystem): Add declaration.
13871 * findcmd.c (_initialize_mem_search): Add declaration.
13872 * findvar.c (_initialize_findvar): Add declaration.
13873 * fork-child.c (_initialize_fork_child): Add declaration.
13874 * frame-base.c (_initialize_frame_base): Add declaration.
13875 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13876 * frame.c (_initialize_frame): Add declaration.
13877 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13878 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13879 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13880 * gcore.c (_initialize_gcore): Add declaration.
13881 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13882 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13883 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13884 * gdbarch.c (_initialize_gdbarch): Add declaration.
13885 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13886 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13887 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13888 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13889 * go-lang.c (_initialize_go_language): Add declaration.
13890 * go32-nat.c (_initialize_go32_nat): Add declaration.
13891 * guile/guile.c (_initialize_guile): Add declaration.
13892 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13893 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13894 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13895 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13896 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13897 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13898 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13899 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13900 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13901 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13902 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13903 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13904 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13905 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13906 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13907 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13908 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13909 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13910 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13911 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13912 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13913 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13914 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13915 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13916 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13917 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13918 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13919 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13920 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13921 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13922 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13923 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13924 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13925 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13926 * infcall.c (_initialize_infcall): Add declaration.
13927 * infcmd.c (_initialize_infcmd): Add declaration.
13928 * inflow.c (_initialize_inflow): Add declaration.
13929 * infrun.c (_initialize_infrun): Add declaration.
13930 * interps.c (_initialize_interpreter): Add declaration.
13931 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13932 * jit.c (_initialize_jit): Add declaration.
13933 * language.c (_initialize_language): Add declaration.
13934 * linux-fork.c (_initialize_linux_fork): Add declaration.
13935 * linux-nat.c (_initialize_linux_nat): Add declaration.
13936 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13937 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13938 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13939 * m2-lang.c (_initialize_m2_language): Add declaration.
13940 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13941 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13942 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13943 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13944 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13945 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13946 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13947 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13948 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13949 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13950 * machoread.c (_initialize_machoread): Add declaration.
13951 * macrocmd.c (_initialize_macrocmd): Add declaration.
13952 * macroscope.c (_initialize_macroscope): Add declaration.
13953 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13954 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13955 * maint.c (_initialize_maint_cmds): Add declaration.
13956 * mdebugread.c (_initialize_mdebugread): Add declaration.
13957 * memattr.c (_initialize_mem): Add declaration.
13958 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13959 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13960 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13961 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13962 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13963 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13964 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13965 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13966 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13967 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13968 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13969 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13970 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13971 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13972 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13973 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13974 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13975 * mipsread.c (_initialize_mipsread): Add declaration.
13976 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13977 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13978 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13979 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13980 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13981 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13982 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13983 * nto-procfs.c (_initialize_procfs): Add declaration.
13984 * objc-lang.c (_initialize_objc_language): Add declaration.
13985 * observable.c (_initialize_observer): Add declaration.
13986 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13987 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13988 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13989 * osabi.c (_initialize_gdb_osabi): Add declaration.
13990 * osdata.c (_initialize_osdata): Add declaration.
13991 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13992 * parse.c (_initialize_parse): Add declaration.
13993 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13994 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13995 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13996 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13997 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13998 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13999 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14000 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14001 * printcmd.c (_initialize_printcmd): Add declaration.
14002 * probe.c (_initialize_probe): Add declaration.
14003 * proc-api.c (_initialize_proc_api): Add declaration.
14004 * proc-events.c (_initialize_proc_events): Add declaration.
14005 * proc-service.c (_initialize_proc_service): Add declaration.
14006 * procfs.c (_initialize_procfs): Add declaration.
14007 * producer.c (_initialize_producer): Add declaration.
14008 * psymtab.c (_initialize_psymtab): Add declaration.
14009 * python/python.c (_initialize_python): Add declaration.
14010 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14011 * record-btrace.c (_initialize_record_btrace): Add declaration.
14012 * record-full.c (_initialize_record_full): Add declaration.
14013 * record.c (_initialize_record): Add declaration.
14014 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14015 * regcache.c (_initialize_regcache): Add declaration.
14016 * reggroups.c (_initialize_reggroup): Add declaration.
14017 * remote-notif.c (_initialize_notif): Add declaration.
14018 * remote-sim.c (_initialize_remote_sim): Add declaration.
14019 * remote.c (_initialize_remote): Add declaration.
14020 * reverse.c (_initialize_reverse): Add declaration.
14021 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14022 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14023 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14024 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14025 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14026 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14027 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14028 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14029 Add declaration.
14030 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14031 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14032 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14033 * rust-exp.y (_initialize_rust_exp): Add declaration.
14034 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14035 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14036 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14037 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14038 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14039 * score-tdep.c (_initialize_score_tdep): Add declaration.
14040 * ser-go32.c (_initialize_ser_dos): Add declaration.
14041 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14042 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14043 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14044 * ser-uds.c (_initialize_ser_socket): Add declaration.
14045 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14046 * serial.c (_initialize_serial): Add declaration.
14047 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14048 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14049 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14050 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14051 * skip.c (_initialize_step_skip): Add declaration.
14052 * sol-thread.c (_initialize_sol_thread): Add declaration.
14053 * solib-aix.c (_initialize_solib_aix): Add declaration.
14054 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14055 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14056 * solib-frv.c (_initialize_frv_solib): Add declaration.
14057 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14058 * solib-target.c (_initialize_solib_target): Add declaration.
14059 * solib.c (_initialize_solib): Add declaration.
14060 * source-cache.c (_initialize_source_cache): Add declaration.
14061 * source.c (_initialize_source): Add declaration.
14062 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14063 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14064 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14065 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14066 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14067 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14068 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14069 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14070 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14071 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14072 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14073 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14074 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14075 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14076 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14077 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14078 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14079 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14080 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14081 * stabsread.c (_initialize_stabsread): Add declaration.
14082 * stack.c (_initialize_stack): Add declaration.
14083 * stap-probe.c (_initialize_stap_probe): Add declaration.
14084 * std-regs.c (_initialize_frame_reg): Add declaration.
14085 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14086 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14087 * symfile.c (_initialize_symfile): Add declaration.
14088 * symmisc.c (_initialize_symmisc): Add declaration.
14089 * symtab.c (_initialize_symtab): Add declaration.
14090 * target.c (_initialize_target): Add declaration.
14091 * target-connection.c (_initialize_target_connection): Add
14092 declaration.
14093 * target-dcache.c (_initialize_target_dcache): Add declaration.
14094 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14095 * thread.c (_initialize_thread): Add declaration.
14096 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14097 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14098 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14099 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14100 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14101 * tracectf.c (_initialize_ctf): Add declaration.
14102 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14103 * tracefile.c (_initialize_tracefile): Add declaration.
14104 * tracepoint.c (_initialize_tracepoint): Add declaration.
14105 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14106 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14107 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14108 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14109 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14110 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14111 * tui/tui.c (_initialize_tui): Add declaration.
14112 * typeprint.c (_initialize_typeprint): Add declaration.
14113 * ui-style.c (_initialize_ui_style): Add declaration.
14114 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14115 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14116 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14117 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14118 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14119 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14120 * unittests/filtered_iterator-selftests.c
14121 (_initialize_filtered_iterator_selftests): Add declaration.
14122 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14123 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14124 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14125 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14126 * unittests/main-thread-selftests.c
14127 (_initialize_main_thread_selftests): Add declaration.
14128 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14129 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14130 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14131 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14132 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14133 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14134 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14135 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14136 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14137 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14138 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14139 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14140 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14141 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14142 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14143 declaration.
14144 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14145 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14146 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14147 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14148 * user-regs.c (_initialize_user_regs): Add declaration.
14149 * utils.c (_initialize_utils): Add declaration.
14150 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14151 * valops.c (_initialize_valops): Add declaration.
14152 * valprint.c (_initialize_valprint): Add declaration.
14153 * value.c (_initialize_values): Add declaration.
14154 * varobj.c (_initialize_varobj): Add declaration.
14155 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14156 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14157 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14158 * windows-nat.c (_initialize_windows_nat): Add declaration.
14159 (_initialize_check_for_gdb_ini): Add declaration.
14160 (_initialize_loadable): Add declaration.
14161 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14162 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14163 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14164 * xcoffread.c (_initialize_xcoffread): Add declaration.
14165 * xml-support.c (_initialize_xml_support): Add declaration.
14166 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14167 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14168 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14169 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14170
e2de1eec
SM
141712020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14172
14173 * regformats/regdat.sh: Generate declaration for init function.
14174
e0037b4c
SM
141752020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14176
14177 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14178 up.
14179 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14180 close_one_inferior>: New methods.
14181 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14182 pass down target to find_inferior_pid.
14183 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14184 Pass down target to find_inferior_ptid.
14185 (gdbsim_target::create_inferior): Pass down target to
14186 add_thread_silent.
14187 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14188 target down to find_inferior_ptid and switch_to_thread.
14189 (gdbsim_target::close): Update to call close_one_inferior.
14190 (struct resume_data): Remove.
14191 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14192 directly, rather than through a void pointer.
14193 (gdbsim_target::resume): Update to call resume_one_inferior.
14194
58920b5b
SM
141952020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14196
14197 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14198
4ec89149
PA
141992020-01-12 Pedro Alves <palves@redhat.com>
14200
14201 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14202 directly for the current inferior instead of
14203 discard_all_inferiors.
14204 (discard_all_inferiors): Delete.
14205
7c392d1d
TT
142062020-01-11 Tom Tromey <tom@tromey.com>
14207
14208 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14209 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14210 deprecated_safe_get_selected_frame.
14211
d9ebdab7
TBA
142122020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14213
14214 * inferior.c (print_inferior): Switch inferior before printing it.
14215
f3c469b9
PA
142162020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14217 Pedro Alves <palves@redhat.com>
14218
14219 * progspace-and-thread.c (switch_to_program_space_and_thread):
14220 Assert there's an inferior for PSPACE. Use
14221 switch_to_inferior_no_thread to switch the inferior too.
14222 * progspace.c (program_space::~program_space): Call
14223 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14224 (program_space::free_all_objfiles): Don't call clear_symtab_users
14225 here.
14226 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14227
65c574f6
PA
142282020-01-10 Pedro Alves <palves@redhat.com>
14229
14230 * NEWS: Mention multi-target debugging, "info connections", and
14231 "add-inferior -no-connection".
14232
2f4fcf00
PA
142332020-01-10 Pedro Alves <palves@redhat.com>
14234
14235 * infrun.c: Include "target-connection.h".
14236 (check_multi_target_resumption): New.
14237 (proceed): Call it.
14238 * target-connection.c (make_target_connection_string): Make
14239 extern.
14240 * target-connection.h (make_target_connection_string): Declare.
14241
121b3efd
PA
142422020-01-10 Pedro Alves <palves@redhat.com>
14243
14244 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14245 * inferior.c (uiout_field_connection): New function.
14246 (print_inferior): Add new "connection-id" column.
14247 (add_inferior_command): Show connection number/string of added
14248 inferior.
14249 * process-stratum-target.h
14250 (process_stratum_target::connection_string): New virtual method.
14251 (process_stratum_target::connection_number): New field.
14252 * remote.c (remote_target::connection_string): New override.
14253 * target-connection.c: New file.
14254 * target-connection.h: New file.
14255 * target.c (decref_target): Remove process_stratum targets from
14256 the connection list.
14257 (target_stack::push): Add process_stratum targets to the
14258 connection list.
14259
4f837581
PA
142602020-01-10 Pedro Alves <palves@redhat.com>
14261
14262 Revert:
14263 2016-04-12 Pedro Alves <palves@redhat.com>
14264 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14265 Remove references to name.
14266 * serial.h (struct serial) <name>: Delete.
14267
f4ec508e
PA
142682020-01-10 Pedro Alves <palves@redhat.com>
14269
14270 * gdbarch-selftests.c (register_to_value_test): Remove "target
14271 already pushed" check.
14272
5b6d1e4f
PA
142732020-01-10 Pedro Alves <palves@redhat.com>
14274 John Baldwin <jhb@FreeBSD.org>
14275
14276 * aarch64-linux-nat.c
14277 (aarch64_linux_nat_target::thread_architecture): Adjust.
14278 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14279 (task_command_1): Likewise.
14280 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14281 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14282 (aix_thread_target::store_registers)
14283 (aix_thread_target::thread_alive): Adjust.
14284 * amd64-fbsd-tdep.c: Include "inferior.h".
14285 (amd64fbsd_get_thread_local_address): Pass down target.
14286 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14287 thread's gdbarch instead of target_gdbarch.
14288 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14289 get_last_target_status.
14290 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14291 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14292 inferiors.
14293 (update_inserted_breakpoint_locations): Skip if inferiors with no
14294 execution.
14295 (update_global_location_list): When handling moribund locations,
14296 find representative inferior for location's pspace, and use thread
14297 count of its process_stratum target.
14298 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14299 * bsd-uthread.c (bsd_uthread_target::wait): Use
14300 as_process_stratum_target and adjust thread_change_ptid and
14301 add_thread calls.
14302 (bsd_uthread_target::update_thread_list): Use
14303 as_process_stratum_target and adjust find_thread_ptid,
14304 thread_change_ptid and add_thread calls.
14305 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14306 find_thread_ptid call.
14307 * corelow.c (add_to_thread_list): Adjust add_thread call.
14308 (core_target_open): Adjust add_thread_silent and thread_count
14309 calls.
14310 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14311 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14312 * event-top.c (async_disconnect): Pop targets from all inferiors.
14313 * exec.c (add_target_sections): Push exec target on all inferiors
14314 sharing the program space.
14315 (remove_target_sections): Remove the exec target from all
14316 inferiors sharing the program space.
14317 (exec_on_vfork): New.
14318 * exec.h (exec_on_vfork): Declare.
14319 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14320 Pass it down.
14321 (fbsd_nat_target::update_thread_list): Adjust.
14322 (fbsd_nat_target::resume): Adjust.
14323 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14324 down.
14325 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14326 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14327 get_thread_arch_regcache call.
14328 * fork-child.c (gdb_startup_inferior): Pass target down to
14329 startup_inferior and set_executing.
14330 * gdbthread.h (struct process_stratum_target): Forward declare.
14331 (add_thread, add_thread_silent, add_thread_with_info)
14332 (in_thread_list): Add process_stratum_target parameter.
14333 (find_thread_ptid(inferior*, ptid_t)): New overload.
14334 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14335 parameter.
14336 (all_threads()): Delete overload.
14337 (all_threads, all_non_exited_threads): Add process_stratum_target
14338 parameter.
14339 (all_threads_safe): Use brace initialization.
14340 (thread_count): Add process_stratum_target parameter.
14341 (set_resumed, set_running, set_stop_requested, set_executing)
14342 (threads_are_executing, finish_thread_state): Add
14343 process_stratum_target parameter.
14344 (switch_to_thread): Use is_current_thread.
14345 * i386-fbsd-tdep.c: Include "inferior.h".
14346 (i386fbsd_get_thread_local_address): Pass down target.
14347 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14348 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14349 have_inferiors check.
14350 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14351 (inf_ptrace_target::attach): Adjust.
14352 * infcall.c (run_inferior_call): Adjust.
14353 * infcmd.c (run_command_1): Pass target to
14354 scoped_finish_thread_state.
14355 (proceed_thread_callback): Skip inferiors with no execution.
14356 (continue_command): Rename 'all_threads' local to avoid hiding
14357 'all_threads' function. Adjust get_last_target_status call.
14358 (prepare_one_step): Adjust set_running call.
14359 (signal_command): Use user_visible_resume_target. Compare thread
14360 pointers instead of inferior_ptid.
14361 (info_program_command): Adjust to pass down target.
14362 (attach_command): Mark target's 'thread_executing' flag.
14363 (stop_current_target_threads_ns): New, factored out from ...
14364 (interrupt_target_1): ... this. Switch inferior before making
14365 target calls.
14366 * inferior-iter.h
14367 (struct all_inferiors_iterator, struct all_inferiors_range)
14368 (struct all_inferiors_safe_range)
14369 (struct all_non_exited_inferiors_range): Filter on
14370 process_stratum_target too. Remove explicit.
14371 * inferior.c (inferior::inferior): Push dummy target on target
14372 stack.
14373 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14374 Add process_stratum_target parameter, and pass it down.
14375 (have_live_inferiors): Adjust.
14376 (switch_to_inferior_and_push_target): New.
14377 (add_inferior_command, clone_inferior_command): Handle
14378 "-no-connection" parameter. Use
14379 switch_to_inferior_and_push_target.
14380 (_initialize_inferior): Mention "-no-connection" option in
14381 the help of "add-inferior" and "clone-inferior" commands.
14382 * inferior.h: Include "process-stratum-target.h".
14383 (interrupt_target_1): Use bool.
14384 (struct inferior) <push_target, unpush_target, target_is_pushed,
14385 find_target_beneath, top_target, process_target, target_at,
14386 m_stack>: New.
14387 (discard_all_inferiors): Delete.
14388 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14389 (all_inferiors, all_non_exited_inferiors): Add
14390 process_stratum_target parameter.
14391 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14392 (target_last_proc_target): New global.
14393 (follow_fork_inferior): Push target on new inferior. Pass target
14394 to add_thread_silent. Call exec_on_vfork. Handle target's
14395 reference count.
14396 (follow_fork): Adjust get_last_target_status call. Also consider
14397 target.
14398 (follow_exec): Push target on new inferior.
14399 (struct execution_control_state) <target>: New field.
14400 (user_visible_resume_target): New.
14401 (do_target_resume): Call target_async.
14402 (resume_1): Set target's threads_executing flag. Consider resume
14403 target.
14404 (commit_resume_all_targets): New.
14405 (proceed): Also consider resume target. Skip threads of inferiors
14406 with no execution. Commit resumtion in all targets.
14407 (start_remote): Pass current inferior to wait_for_inferior.
14408 (infrun_thread_stop_requested): Consider target as well. Pass
14409 thread_info pointer to clear_inline_frame_state instead of ptid.
14410 (infrun_thread_thread_exit): Consider target as well.
14411 (random_pending_event_thread): New inferior parameter. Use it.
14412 (do_target_wait): Rename to ...
14413 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14414 down.
14415 (threads_are_resumed_pending_p, do_target_wait): New.
14416 (prepare_for_detach): Adjust calls.
14417 (wait_for_inferior): New inferior parameter. Handle it. Use
14418 do_target_wait_1 instead of do_target_wait.
14419 (fetch_inferior_event): Adjust. Switch to representative
14420 inferior. Pass target down.
14421 (set_last_target_status): Add process_stratum_target parameter.
14422 Save target in global.
14423 (get_last_target_status): Add process_stratum_target parameter and
14424 handle it.
14425 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14426 (context_switch): Check inferior_ptid == null_ptid before calling
14427 inferior_thread().
14428 (get_inferior_stop_soon): Pass down target.
14429 (wait_one): Rename to ...
14430 (poll_one_curr_target): ... this.
14431 (struct wait_one_event): New.
14432 (wait_one): New.
14433 (stop_all_threads): Adjust.
14434 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14435 event's target.
14436 (switch_back_to_stepped_thread): Also consider target.
14437 (print_stop_event): Update.
14438 (normal_stop): Update. Also consider the resume target.
14439 * infrun.h (wait_for_inferior): Remove declaration.
14440 (user_visible_resume_target): New declaration.
14441 (get_last_target_status, set_last_target_status): New
14442 process_stratum_target parameter.
14443 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14444 process_stratum_target parameter, and use it.
14445 (clear_inline_frame_state (thread_info*)): New.
14446 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14447 process_stratum_target parameter.
14448 (clear_inline_frame_state (thread_info*)): Declare.
14449 * linux-fork.c (delete_checkpoint_command): Pass target down to
14450 find_thread_ptid.
14451 (checkpoint_command): Adjust.
14452 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14453 instead of just tweaking inferior_ptid.
14454 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14455 (exit_lwp): Pass target down to find_thread_ptid.
14456 (attach_proc_task_lwp_callback): Pass target down to
14457 add_thread/set_running/set_executing.
14458 (linux_nat_target::attach): Pass target down to
14459 thread_change_ptid.
14460 (get_detach_signal): Pass target down to find_thread_ptid.
14461 Consider last target status's target.
14462 (linux_resume_one_lwp_throw, resume_lwp)
14463 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14464 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14465 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14466 (linux_nat_target::async_wait_fd): New.
14467 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14468 target down.
14469 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14470 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14471 * linux-thread-db.c (struct thread_db_info::process_target): New
14472 field.
14473 (add_thread_db_info): Save target.
14474 (get_thread_db_info): New process_stratum_target parameter. Also
14475 match target.
14476 (delete_thread_db_info): New process_stratum_target parameter.
14477 Also match target.
14478 (thread_from_lwp): Adjust to pass down target.
14479 (thread_db_notice_clone): Pass down target.
14480 (check_thread_db_callback): Pass down target.
14481 (try_thread_db_load_1): Always push the thread_db target.
14482 (try_thread_db_load, record_thread): Pass target down.
14483 (thread_db_target::detach): Pass target down. Always unpush the
14484 thread_db target.
14485 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14486 target down. Always unpush the thread_db target.
14487 (find_new_threads_callback, thread_db_find_new_threads_2)
14488 (thread_db_target::update_thread_list): Pass target down.
14489 (thread_db_target::pid_to_str): Pass current inferior down.
14490 (thread_db_target::get_thread_local_address): Pass target down.
14491 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14492 target down.
14493 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14494 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14495 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14496 (procfs_init_inferior): Rename to ...
14497 (procfs_target::procfs_init_inferior): ... this and adjust.
14498 (procfs_target::create_inferior, procfs_notice_thread)
14499 (procfs_do_thread_registers): Adjust.
14500 * ppc-fbsd-tdep.c: Include "inferior.h".
14501 (ppcfbsd_get_thread_local_address): Pass down target.
14502 * proc-service.c (ps_xfer_memory): Switch current inferior and
14503 program space as well.
14504 (get_ps_regcache): Pass target down.
14505 * process-stratum-target.c
14506 (process_stratum_target::thread_address_space)
14507 (process_stratum_target::thread_architecture): Pass target down.
14508 * process-stratum-target.h
14509 (process_stratum_target::threads_executing): New field.
14510 (as_process_stratum_target): New.
14511 * ravenscar-thread.c
14512 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14513 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14514 down.
14515 * record-btrace.c (record_btrace_target::info_record): Adjust.
14516 (record_btrace_target::record_method)
14517 (record_btrace_target::record_is_replaying)
14518 (record_btrace_target::fetch_registers)
14519 (get_thread_current_frame_id, record_btrace_target::resume)
14520 (record_btrace_target::wait, record_btrace_target::stop): Pass
14521 target down.
14522 * record-full.c (record_full_wait_1): Switch to event thread.
14523 Pass target down.
14524 * regcache.c (regcache::regcache)
14525 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14526 process_stratum_target parameter and handle it.
14527 (current_thread_target): New global.
14528 (get_thread_regcache): Add process_stratum_target parameter and
14529 handle it. Switch inferior before calling target method.
14530 (get_thread_regcache): Pass target down.
14531 (get_thread_regcache_for_ptid): Pass target down.
14532 (registers_changed_ptid): Add process_stratum_target parameter and
14533 handle it.
14534 (registers_changed_thread, registers_changed): Pass target down.
14535 (test_get_thread_arch_aspace_regcache): New.
14536 (current_regcache_test): Define a couple local test_target_ops
14537 instances and use them for testing.
14538 (readwrite_regcache): Pass process_stratum_target parameter.
14539 (cooked_read_test, cooked_write_test): Pass mock_target down.
14540 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14541 (get_thread_arch_aspace_regcache): Add process_stratum_target
14542 parameter.
14543 (regcache::target): New method.
14544 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14545 (regcache::registers_changed_ptid): Add process_stratum_target
14546 parameter.
14547 (regcache::m_target): New field.
14548 (registers_changed_ptid): Add process_stratum_target parameter.
14549 * remote.c (remote_state::supports_vCont_probed): New field.
14550 (remote_target::async_wait_fd): New method.
14551 (remote_unpush_and_throw): Add remote_target parameter.
14552 (get_current_remote_target): Adjust.
14553 (remote_target::remote_add_inferior): Push target.
14554 (remote_target::remote_add_thread)
14555 (remote_target::remote_notice_new_inferior)
14556 (get_remote_thread_info): Pass target down.
14557 (remote_target::update_thread_list): Skip threads of inferiors
14558 bound to other targets. (remote_target::close): Don't discard
14559 inferiors. (remote_target::add_current_inferior_and_thread)
14560 (remote_target::process_initial_stop_replies)
14561 (remote_target::start_remote)
14562 (remote_target::remote_serial_quit_handler): Pass down target.
14563 (remote_target::remote_unpush_target): New remote_target
14564 parameter. Unpush the target from all inferiors.
14565 (remote_target::remote_unpush_and_throw): New remote_target
14566 parameter. Pass it down.
14567 (remote_target::open_1): Check whether the current inferior has
14568 execution instead of checking whether any inferior is live. Pass
14569 target down.
14570 (remote_target::remote_detach_1): Pass down target. Use
14571 remote_unpush_target.
14572 (extended_remote_target::attach): Pass down target.
14573 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14574 (remote_target::append_resumption): Pass down target.
14575 (remote_target::append_pending_thread_resumptions)
14576 (remote_target::remote_resume_with_hc, remote_target::resume)
14577 (remote_target::commit_resume): Pass down target.
14578 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14579 (remote_target::interrupt_query)
14580 (remote_target::remove_new_fork_children)
14581 (remote_target::check_pending_events_prevent_wildcard_vcont)
14582 (remote_target::remote_parse_stop_reply)
14583 (remote_target::process_stop_reply): Pass down target.
14584 (first_remote_resumed_thread): New remote_target parameter. Pass
14585 it down.
14586 (remote_target::wait_as): Pass down target.
14587 (unpush_and_perror): New remote_target parameter. Pass it down.
14588 (remote_target::readchar, remote_target::remote_serial_write)
14589 (remote_target::getpkt_or_notif_sane_1)
14590 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14591 down target.
14592 (remote_target::mourn_inferior): Pass down target. Use
14593 remote_unpush_target.
14594 (remote_target::core_of_thread)
14595 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14596 (remote_target::pid_to_exec_file)
14597 (remote_target::thread_handle_to_thread_info): Pass down target.
14598 (remote_target::async_wait_fd): New.
14599 * riscv-fbsd-tdep.c: Include "inferior.h".
14600 (riscv_fbsd_get_thread_local_address): Pass down target.
14601 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14602 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14603 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14604 Adjust.
14605 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14606 * solib-svr4.c (enable_break): Pass down target.
14607 * spu-multiarch.c (parse_spufs_run): Pass down target.
14608 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14609 * target-delegates.c: Regenerate.
14610 * target.c (g_target_stack): Delete.
14611 (current_top_target): Return the current inferior's top target.
14612 (target_has_execution_1): Refer to the passed-in inferior's top
14613 target.
14614 (target_supports_terminal_ours): Check whether the initial
14615 inferior was already created.
14616 (decref_target): New.
14617 (target_stack::push): Incref/decref the target.
14618 (push_target, push_target, unpush_target): Adjust.
14619 (target_stack::unpush): Defref target.
14620 (target_is_pushed): Return bool. Adjust to refer to the current
14621 inferior's target stack.
14622 (dispose_inferior): Delete, and inline parts ...
14623 (target_preopen): ... here. Only dispose of the current inferior.
14624 (target_detach): Hold strong target reference while detaching.
14625 Pass target down.
14626 (target_thread_name): Add assertion.
14627 (target_resume): Pass down target.
14628 (target_ops::beneath, find_target_at): Adjust to refer to the
14629 current inferior's target stack.
14630 (get_dummy_target): New.
14631 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14632 has a thread running.
14633 (initialize_targets): Rename to ...
14634 (_initialize_target): ... this.
14635 * target.h: Include "gdbsupport/refcounted-object.h".
14636 (struct target_ops): Inherit refcounted_object.
14637 (target_ops::shortname, target_ops::longname): Make const.
14638 (target_ops::async_wait_fd): New method.
14639 (decref_target): Declare.
14640 (struct target_ops_ref_policy): New.
14641 (target_ops_ref): New typedef.
14642 (get_dummy_target): Declare function.
14643 (target_is_pushed): Return bool.
14644 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14645 (all_matching_threads_iterator::all_matching_threads_iterator):
14646 Handle filter target.
14647 * thread-iter.h (struct all_matching_threads_iterator, struct
14648 all_matching_threads_range, class all_non_exited_threads_range):
14649 Filter by target too. Remove explicit.
14650 * thread.c (threads_executing): Delete.
14651 (inferior_thread): Pass down current inferior.
14652 (clear_thread_inferior_resources): Pass down thread pointer
14653 instead of ptid_t.
14654 (add_thread_silent, add_thread_with_info, add_thread): Add
14655 process_stratum_target parameter. Use it for thread and inferior
14656 searches.
14657 (is_current_thread): New.
14658 (thread_info::deletable): Use it.
14659 (find_thread_ptid, thread_count, in_thread_list)
14660 (thread_change_ptid, set_resumed, set_running): New
14661 process_stratum_target parameter. Pass it down.
14662 (set_executing): New process_stratum_target parameter. Pass it
14663 down. Adjust reference to 'threads_executing'.
14664 (threads_are_executing): New process_stratum_target parameter.
14665 Adjust reference to 'threads_executing'.
14666 (set_stop_requested, finish_thread_state): New
14667 process_stratum_target parameter. Pass it down.
14668 (switch_to_thread): Also match inferior.
14669 (switch_to_thread): New process_stratum_target parameter. Pass it
14670 down.
14671 (update_threads_executing): Reimplement.
14672 * top.c (quit_force): Pop targets from all inferior.
14673 (gdb_init): Don't call initialize_targets.
14674 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14675 Declare.
14676 (windows_add_thread, windows_delete_thread): Adjust.
14677 (get_windows_debug_event): Rename to ...
14678 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14679 * tracefile-tfile.c (tfile_target_open): Pass down target.
14680 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14681 Forward declare.
14682 (switch_to_thread): Add process_stratum_target parameter.
14683 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14684 parameter. Use it.
14685 (mi_on_resume): Pass target down.
14686 * nat/fork-inferior.c (startup_inferior): Add
14687 process_stratum_target parameter. Pass it down.
14688 * nat/fork-inferior.h (startup_inferior): Add
14689 process_stratum_target parameter.
14690 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14691
75c6c844
PA
146922020-01-10 Pedro Alves <palves@redhat.com>
14693
14694 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14695 directly. Instead find the first thread in the thread list and
14696 use switch_to_thread.
14697
78f2c40a
PA
146982020-01-10 Pedro Alves <palves@redhat.com>
14699
14700 * remote.c (remote_target::remote_add_inferior): Don't bind a
14701 process to the current inferior if the current inferior is already
14702 bound to a process.
14703
e7af6c70
TBA
147042020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14705 Pedro Alves <palves@redhat.com>
14706
14707 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14708 If no process is specified, return null_ptid instead of
14709 inferior_ptid.
14710 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14711 TARGET_WAITKIND_SIGNALLED with no pid.
14712
31ba933e
PA
147132020-01-10 Pedro Alves <palves@redhat.com>
14714
14715 * remote.c (first_remote_resumed_thread): New.
14716 (remote_target::wait_as): Use it as default event_ptid instead of
14717 inferior_ptid.
14718
735fc2ca
PA
147192020-01-10 Pedro Alves <palves@redhat.com>
14720
14721 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14722
c17e02e1
PA
147232020-01-10 Pedro Alves <palves@redhat.com>
14724
14725 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14726 not -1.
14727
ab1ddbcf
PA
147282020-01-10 Pedro Alves <palves@redhat.com>
14729
14730 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14731 ptid to get_last_target_status.
14732 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14733 ptid to get_last_target_status.
14734 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14735 get_last_target_status.
14736 (info_program_command): Don't pass a target_waitstatus to
14737 get_last_target_status.
14738 * infrun.c (init_wait_for_inferior): Use
14739 nullify_last_target_wait_ptid.
14740 (get_last_target_status): Handle nullptr arguments.
14741 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14742 (print_stop_event): Don't pass a ptid to get_last_target_status.
14743 (normal_stop): Don't pass a ptid to get_last_target_status.
14744 * infrun.h (get_last_target_status, set_last_target_status): Move
14745 comments here and update.
14746 (nullify_last_target_wait_ptid): Declare.
14747 * linux-fork.c (fork_load_infrun_state): Remove local extern
14748 declaration of nullify_last_target_wait_ptid.
14749 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14750 to get_last_target_status.
14751
f3f8ece4
PA
147522020-01-10 Pedro Alves <palves@redhat.com>
14753
14754 * gdbthread.h (scoped_restore_current_thread)
14755 <dont_restore, restore, m_dont_restore>: Declare.
14756 * thread.c (thread_alive): Add assertion. Return bool.
14757 (switch_to_thread_if_alive): New.
14758 (prune_threads): Switch inferior/thread.
14759 (print_thread_info_1): Switch thread before calling target methods.
14760 (scoped_restore_current_thread::restore): New, factored out from
14761 ...
14762 (scoped_restore_current_thread::~scoped_restore_current_thread):
14763 ... this.
14764 (scoped_restore_current_thread::scoped_restore_current_thread):
14765 Add assertion.
14766 (thread_apply_all_command, thread_select): Use
14767 switch_to_thread_if_alive.
14768 * infrun.c (proceed, restart_threads, handle_signal_stop)
14769 (switch_back_to_stepped_thread): Switch current thread before
14770 calling target methods.
14771
db2d40f7
PA
147722020-01-10 Pedro Alves <palves@redhat.com>
14773
14774 * inferior.c (switch_to_inferior_no_thread): New function,
14775 factored out from ...
14776 (inferior_command): ... here.
14777 * inferior.h (switch_to_inferior_no_thread): Declare.
14778 * mi/mi-main.c (run_one_inferior): Use
14779 switch_to_inferior_no_thread.
14780
bd420a2d
PA
147812020-01-10 Pedro Alves <palves@redhat.com>
14782
14783 * infcmd.c (kill_command): Remove dead code.
14784
ddf5db90
PA
147852020-01-10 Pedro Alves <palves@redhat.com>
14786
14787 * remote.c (remote_target::mourn_inferior): No longer check
14788 whether the target is running.
14789
5018ce90
PA
147902020-01-10 Pedro Alves <palves@redhat.com>
14791
14792 * corelow.c (core_target::has_execution): Change parameter type to
14793 inferior pointer.
14794 * inferior.c (number_of_live_inferiors): Use
14795 inferior::has_execution instead of target_has_execution_1.
14796 * inferior.h (inferior::has_execution): New.
14797 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14798 inferior::has_execution instead of target_has_execution_1.
14799 * process-stratum-target.c
14800 (process_stratum_target::has_execution): Change parameter type to
14801 inferior pointer. Check the inferior's PID instead of
14802 inferior_ptid.
14803 * process-stratum-target.h
14804 (process_stratum_target::has_execution): Change parameter type to
14805 inferior pointer.
14806 * record-full.c (record_full_core_target::has_execution): Change
14807 parameter type to inferior pointer.
14808 * target.c (target_has_execution_1): Change parameter type to
14809 inferior pointer.
14810 (target_has_execution_current): Adjust.
14811 * target.h (target_ops::has_execution): Change parameter type to
14812 inferior pointer.
14813 (target_has_execution_1): Change parameter type to inferior
14814 pointer. Change return type to bool.
14815 * tracefile.h (tracefile_target::has_execution): Change parameter
14816 type to inferior pointer.
14817
74375d18
PA
148182020-01-10 Pedro Alves <palves@redhat.com>
14819
14820 * exceptions.c (print_flush): Remove current_top_target() check.
14821
acdf84a6
PA
148222020-01-10 Pedro Alves <palves@redhat.com>
14823
14824 * remote.c (show_remote_exec_file): Show the current inferior's
14825 exec-file instead of the command variable's value.
14826
ec506636
PA
148272020-01-10 Pedro Alves <palves@redhat.com>
14828
14829 * record-full.c (record_full_resume_ptid): New global.
14830 (record_full_target::resume): Set it.
14831 (record_full_wait_1): Use record_full_resume_ptid instead of
14832 inferior_ptid.
14833
873657b9
PA
148342020-01-10 Pedro Alves <palves@redhat.com>
14835
14836 * gdbthread.h (scoped_restore_current_thread)
14837 <dont_restore, restore, m_dont_restore>: Declare.
14838 * thread.c (thread_alive): Add assertion. Return bool.
14839 (switch_to_thread_if_alive): New.
14840 (prune_threads): Switch inferior/thread.
14841 (print_thread_info_1): Switch thread before calling target methods.
14842 (scoped_restore_current_thread::restore): New, factored out from
14843 ...
14844 (scoped_restore_current_thread::~scoped_restore_current_thread):
14845 ... this.
14846 (scoped_restore_current_thread::scoped_restore_current_thread):
14847 Add assertion.
14848 (thread_apply_all_command, thread_select): Use
14849 switch_to_thread_if_alive.
14850
7f0ae84c
GB
148512020-01-10 George Barrett <bob@bob131.so>
14852
14853 * stap-probe.c (stap_modify_semaphore): Don't check for null
14854 semaphores.
14855 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14856 for null semaphores.
14857
f5a7c406
AB
148582020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14859
14860 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14861 all source windows, and maintain horizontal scroll status while
14862 doing so.
14863
9ae6bf64
TT
148642020-01-09 Tom Tromey <tom@tromey.com>
14865
14866 PR tui/18932:
14867 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14868 update_source_window, not print_source_lines.
14869
b2efe70c
AB
148702020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14871
14872 * tui/tui.c (tui_enable): Register tui hooks after calling
14873 tui_display_main.
14874
5f23a082
CB
148752020-01-09 Christian Biesinger <cbiesinger@google.com>
14876
14877 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14878
3061113b
SM
148792020-01-08 Simon Marchi <simon.marchi@efficios.com>
14880
14881 * thread.c (print_thread_info_1): Fix indentation.
14882
57d75002
CB
148832020-01-09 Christian Biesinger <cbiesinger@google.com>
14884
14885 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14886 unique_xmalloc_ptr outside the if to always free the demangled name.
14887
6a053cb1
TT
148882020-01-08 Tom Tromey <tromey@adacore.com>
14889
14890 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14891 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14892 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14893 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14894 Remove.
14895 (section_offsets): New typedef.
14896 * symtab.c (fixup_section, get_msymbol_address): Update.
14897 * symmisc.c (dump_msymbols): Update.
14898 * symfile.h (relative_addr_info_to_section_offsets)
14899 (symfile_map_offsets_to_segments): Update.
14900 * symfile.c (build_section_addr_info_from_objfile)
14901 (init_objfile_sect_indices): Update.
14902 (struct place_section_arg): Change type of "offsets".
14903 (place_section): Update.
14904 (relative_addr_info_to_section_offsets): Change type of
14905 "section_offsets". Remove "num_sections" parameter.
14906 (default_symfile_offsets, syms_from_objfile_1)
14907 (set_objfile_default_section_offset): Update.
14908 (reread_symbols): No need to preserve section offsets by hand.
14909 (symfile_map_offsets_to_segments): Change type of "offsets".
14910 * stap-probe.c (relocate_address): Update.
14911 * stabsread.h (process_one_symbol): Update.
14912 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14913 (solib_target_relocate_section_addresses): Update.
14914 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14915 Update.
14916 * solib-frv.c (frv_relocate_main_executable): Update.
14917 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14918 * solib-aix.c (solib_aix_get_section_offsets): Change return
14919 type.
14920 (solib_aix_solib_create_inferior_hook): Update.
14921 * remote.c (remote_target::get_offsets): Update.
14922 * psymtab.c (find_pc_sect_psymtab): Update.
14923 * psympriv.h (struct partial_symbol) <address, text_low,
14924 text_high>: Update.
14925 * objfiles.h (obj_section_offset): Update.
14926 (struct objfile) <section_offsets>: Change type.
14927 <num_sections>: Remove.
14928 (objfile_relocate): Update.
14929 * objfiles.c (entry_point_address_query): Update
14930 (relocate_one_symbol): Change type of "section_offsets".
14931 (objfile_relocate1, objfile_relocate1): Change type of
14932 "new_offsets".
14933 (objfile_rebase1): Update.
14934 * mipsread.c (mipscoff_symfile_read): Update.
14935 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14936 parameter.
14937 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14938 (parse_external, psymtab_to_symtab_1): Update.
14939 * machoread.c (macho_symfile_offsets): Update.
14940 * ia64-tdep.c (ia64_find_unwind_table): Update.
14941 * hppa-tdep.c (read_unwind_info): Update.
14942 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14943 * dwarf2read.c (create_addrmap_from_index)
14944 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14945 (process_psymtab_comp_unit_reader, add_partial_symbol)
14946 (add_partial_subprogram, process_full_comp_unit)
14947 (read_file_scope, read_func_scope, read_lexical_block_scope)
14948 (read_call_site_scope, dwarf2_rnglists_process)
14949 (dwarf2_ranges_process, dwarf2_ranges_read)
14950 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14951 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14952 Update.
14953 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14954 Update.
14955 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14956 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14957 (process_one_symbol): Change type of "section_offsets".
14958 * ctfread.c (get_objfile_text_range): Update.
14959 * coffread.c (coff_symtab_read, enter_linenos)
14960 (process_coff_symbol): Update.
14961 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14962 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14963
456e800a
TT
149642020-01-08 Tom Tromey <tromey@adacore.com>
14965
14966 * dwarf2read.c (parse_macro_definition): Use std::string.
14967 (parse_macro_definition): Likewise.
14968
6dfa2fc2
TT
149692020-01-08 Tom Tromey <tromey@adacore.com>
14970
14971 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14972 (ATTR_ALLOC_CHUNK): Remove.
14973
421d1616
TT
149742020-01-08 Tom Tromey <tromey@adacore.com>
14975
14976 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14977
43816ebc
TT
149782020-01-08 Tom Tromey <tromey@adacore.com>
14979
14980 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14981 (dwarf2_compute_name, open_dwo_file): Likewise.
14982 (process_enumeration_scope): Use std::vector.
14983 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14984 (partial_die_info::fixup, dwarf2_start_subfile)
14985 (guess_full_die_structure_name, dwarf2_name): Likewise.
14986 (determine_prefix): Update.
14987 (guess_full_die_structure_name): Make return type const.
14988 (partial_die_full_name): Return unique_xmalloc_ptr.
14989 (DW_FIELD_ALLOC_CHUNK): Remove.
14990
4212d509
TT
149912020-01-07 Tom Tromey <tromey@adacore.com>
14992
14993 PR build/24937:
14994 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14995
06a6207a
JT
149962020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14997
14998 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14999
153d79c4
AB
150002020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15001
15002 * stack.c (print_frame_info): Move disassemble_next_line code
15003 inside source_print block.
15004
66182876
EZ
150052020-01-06 Eli Zaretskii <eliz@gnu.org>
15006
15007 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15008 gdb/signals.h, as we are now using native signal symbols.
15009
cbfa8581
SV
150102020-01-06 Shahab Vahedi <shahab@synopsys.com>
15011
15012 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15013 overflow by an early check of content vs threshold.
aac66a4c 15014 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15015 Likewise.
15016
3f602821
EZ
150172020-01-06 Eli Zaretskii <eliz@gnu.org>
15018
15019 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15020
a08c904d
JT
150212020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15022
15023 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15024 export table if no section contains it's RVA.
15025
89a65580
EZ
150262020-01-06 Eli Zaretskii <eliz@gnu.org>
15027
15028 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15029
8b7fcda2
HD
150302020-01-06 Hannes Domani <ssbssa@yahoo.de>
15031
15032 * source.c (print_source_lines_base): Set last_line_listed.
15033
a61b4f69
SV
150342020-01-06 Shahab Vahedi <shahab@synopsys.com>
15035
15036 * tui/tui-disasm.c: Remove trailing spaces.
15037
559e7e50
EZ
150382020-01-06 Eli Zaretskii <eliz@gnu.org>
15039 Pedro Alves <palves@redhat.com>
15040
15041 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15042 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15043 (windows_gdb_signal_to_target): New function, uses the above
15044 enumeration to convert GDB internal signal codes to equivalent
15045 Windows codes.
15046 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15047 * windows-nat.c: Include "gdb_wait.h".
15048 (get_windows_debug_event): Extract the fatal exception from the
15049 exit status and convert to the equivalent Posix signal number.
15050 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15051 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15052 * gdbsupport/gdb_wait.c: New file, implements
15053 windows_status_to_termsig.
15054 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15055 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15056
f2302a34
AB
150572020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15058
15059 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15060 show_layout.
15061
6a5206eb
LM
150622020-01-05 Luis Machado <luis.machado@linaro.org>
15063
15064 * aarch64-linux-nat.c
15065 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15066 and bfd_mach_aarch64.
15067
6ec1d75e
PW
150682020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15069
15070 * ui-file.c (stdio_file::can_emit_style_escape)
15071 (tee_file::can_emit_style_escape): Ensure style is used also on
15072 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15073 to gdb_stdout.
15074 * main.c (set_gdb_data_directory): Use file style to output the
15075 warning that the given pathname is not a directory.
15076 * top.c (show_history_filename, gdb_safe_append_history)
15077 (show_gdb_datadir): Use file style.
15078
44f81a76
HD
150792020-01-03 Hannes Domani <ssbssa@yahoo.de>
15080
15081 * solib-target.c (struct lm_info_target):
15082 Change offsets to be a unique_xmalloc_ptr.
15083 (solib_target_relocate_section_addresses): Update.
15084
25057eb0
HD
150852020-01-03 Hannes Domani <ssbssa@yahoo.de>
15086
15087 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15088
6e2118f5
BE
150892020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15090
15091 * MAINTAINERS (Write After Approval): Add myself.
15092
8133c7dc
LM
150932020-01-02 Luis Machado <luis.machado@linaro.org>
15094
15095 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15096 Cell BE architecture.
15097 * target.h (struct target_ops) <thread_architecture>: Likewise.
15098
48189bec
HD
150992020-01-01 Hannes Domani <ssbssa@yahoo.de>
15100
15101 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15102
ead1063b
HD
151032020-01-01 Hannes Domani <ssbssa@yahoo.de>
15104
15105 * MAINTAINERS (Write After Approval): Add myself.
15106
e5d78223
JB
151072020-01-01 Joel Brobecker <brobecker@adacore.com>
15108
15109 * gdbarch.sh: Update copyright year range of generated files.
15110
b811d2c2
JB
151112020-01-01 Joel Brobecker <brobecker@adacore.com>
15112
15113 Update copyright year range in all GDB files.
15114
5f4def5c
JB
151152020-01-01 Joel Brobecker <brobecker@adacore.com>
15116
15117 * copyright.py: Convert to Python 3.
15118
51fd4002
JB
151192020-01-01 Joel Brobecker <brobecker@adacore.com>
15120
15121 * copyright.py: Adapt after move of gnulib directory from gdb
15122 directory to toplevel directory.
15123
5fb651f2
JB
151242020-01-01 Joel Brobecker <brobecker@adacore.com>
15125
15126 * copyright.py (main): Exit if run from the wrong directory.
15127
5dd8bf88
JB
151282020-01-01 Joel Brobecker <brobecker@adacore.com>
15129
15130 * top.c (print_gdb_version): Change copyright year to 2020.
15131
9f71dacb 151322020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15133
9f71dacb 15134 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15135
9f71dacb 15136For older changes see ChangeLog-2019.
c906108c
SS
15137\f
15138Local Variables:
15139mode: change-log
15140left-margin: 8
15141fill-column: 74
15142version-control: never
57da7796 15143coding: utf-8
c906108c 15144End: