Change dwarf2_per_objfile::quick_file_names_table to htab_up
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5895093f
TT
12020-02-08 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/read.c (~dwarf2_per_objfile): Update.
4 (create_quick_file_names_table): Return htab_up.
5 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
6 Update.
7 * dwarf2/read.h (struct dwarf2_per_objfile)
8 <quick_file_names_table>: Now htab_up.
9
b3b32279
TT
102020-02-08 Tom Tromey <tom@tromey.com>
11
12 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13
1d33d811
TT
142020-02-08 Tom Tromey <tom@tromey.com>
15
16 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
17 Rewrite.
18 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
19 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
20 (abbrev_table::abbrev_table): No longer inline.
21 (ABBREV_HASH_SIZE): Remove.
22 (abbrev_table::m_abbrevs): Now an htab_up.
23
86de1d91
TT
242020-02-08 Tom Tromey <tom@tromey.com>
25
26 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
27 (cutu_reader): Update.
28 (build_type_psymtabs_1): Update.
29 * dwarf2/abbrev.c (abbrev_table::read): Rename.
30 (abbrev_table::alloc_abbrev): Update.
31 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
32 (abbrev_table::read): New static method, renamed from
33 abbrev_table_read_table.
34 (abbrev_table::alloc_abbrev)
35 (abbrev_table::add_abbrev): Now private.
36 (abbrev_table::abbrev_table): Now private.
37 (abbrev_table::m_abbrev_obstack): Now private. Rename.
38
0335378b
TT
392020-02-08 Tom Tromey <tom@tromey.com>
40
41 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
42 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
43 htab_up.
44
48b490f2
TT
452020-02-08 Tom Tromey <tom@tromey.com>
46
47 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
48 htab_up.
49 (lookup_dwo_unit_in_dwp): Update.
50 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
51 on obstack.
52
bc68fb19
TT
532020-02-08 Tom Tromey <tom@tromey.com>
54
55 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
56 obstack.
57
d15acc42
TT
582020-02-08 Tom Tromey <tom@tromey.com>
59
60 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
61 line_header_hash.
62 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
63 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
64 Change type to htab_up.
65
eaa5fa8b
TT
662020-02-08 Tom Tromey <tom@tromey.com>
67
68 * dwarf2/read.c (allocate_type_unit_groups_table): Return
69 htab_up. Don't allocate on obstack.
70 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
71 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
72 Change type to htab_up.
73
b0b6a987
TT
742020-02-08 Tom Tromey <tom@tromey.com>
75
76 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
77 Change type to htab_up.
78 * dwarf2/read.c (create_signatured_type_table_from_index)
79 (create_signatured_type_table_from_debug_names)
80 (create_all_type_units, add_type_unit)
81 (lookup_dwo_signatured_type, lookup_signatured_type)
82 (process_skeletonless_type_unit): Update.
83 (create_debug_type_hash_table, create_debug_types_hash_table):
84 Change type of types_htab.
85 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
86 htab_up. Don't allocate on obstack.
87 (create_cus_hash_table): Change type of cus_htab parameter.
88 (struct dwo_file) <cus, tus>: Now htab_up.
89 (lookup_dwo_signatured_type, lookup_dwo_cutu)
90 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
91 (queue_and_load_all_dwo_tus): Update.
92 * dwarf2/index-write.c (write_gdbindex): Update.
93 (write_debug_names): Update.
94
39856def
TT
952020-02-08 Tom Tromey <tom@tromey.com>
96
97 * dwarf2/read.h (struct dwarf2_queue_item): Move from
98 dwarf2/read.c. Remove "next" member. Add constructor ntad
99 destructor.
100 (struct dwarf2_per_objfile) <queue>: New member.
101 * dwarf2/read.c (struct dwarf2_queue_item): Move to
102 dwarf2/read.h.
103 (dwarf2_queue, dwarf2_queue_tail): Remove.
104 (class dwarf2_queue_guard): Add parameter to constructor. Use
105 DISABLE_COPY_AND_ASSIGN.
106 <m_per_objfile>: New member.
107 <~dwarf2_queue_guard>: Rewrite.
108 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
109 Update.
110 (~dwarf2_queue_item): New.
111
3e225074
TT
1122020-02-08 Tom Tromey <tom@tromey.com>
113
114 * dwarf2/read.c (struct die_info) <has_children>: New member.
115 (dw2_get_file_names_reader): Remove has_children.
116 (dw2_get_file_names): Update.
117 (read_cutu_die_from_dwo): Remove has_children.
118 (cutu_reader::init_tu_and_read_dwo_dies)
119 (cutu_reader::cutu_reader): Update.
120 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
121 Remove has_children.
122 (build_type_psymtabs_1, process_skeletonless_type_unit)
123 (load_partial_comp_unit, load_full_comp_unit): Update.
124 (create_dwo_cu_reader): Remove has_children.
125 (create_cus_hash_table, read_die_and_children): Update.
126 (read_full_die_1,read_full_die): Remove has_children.
127 (read_signatured_type): Update.
128 (class cutu_reader) <has_children>: Remove.
129
82ca8957
TT
1302020-02-08 Tom Tromey <tom@tromey.com>
131
132 * dwarf2/expr.c: Rename from dwarf2expr.c.
133 * dwarf2/expr.h: Rename from dwarf2expr.h.
134 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
135 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
136 * dwarf2/frame.c: Rename from dwarf2-frame.c.
137 * dwarf2/frame.h: Rename from dwarf2-frame.h.
138 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
139 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
140 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
141 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
142 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
143 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
144 * dwarf2/loc.c: Rename from dwarf2loc.c.
145 * dwarf2/loc.h: Rename from dwarf2loc.h.
146 * dwarf2/read.c: Rename from dwarf2read.c.
147 * dwarf2/read.h: Rename from dwarf2read.h.
148 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
149 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
150 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
151 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
152 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
153 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
154 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
155 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
156 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
157 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
158 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
159 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
160 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
161 Update.
162 * Makefile.in (COMMON_SFILES): Update.
163 (HFILES_NO_SRCDIR): Update.
164
9e35d499
TT
1652020-02-08 Tom Tromey <tom@tromey.com>
166
167 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
168 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
169
1eba2311
TT
1702020-02-08 Tom Tromey <tom@tromey.com>
171
172 * dwarf2read.h (struct die_info): Don't declare.
173
e41c2da2
TT
1742020-02-08 Tom Tromey <tom@tromey.com>
175
176 * dwarf2read.h (die_info_ptr): Remove typedef.
177
4fc6c0d5
TT
1782020-02-08 Tom Tromey <tom@tromey.com>
179
180 * dwarf2read.c (read_call_site_scope)
181 (handle_data_member_location, dwarf2_add_member_fn)
182 (mark_common_block_symbol_computed, read_common_block)
183 (attr_to_dynamic_prop, partial_die_info::read)
184 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
185 (dwarf2_symbol_mark_computed, set_die_type): Update.
186 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
187 method.
188 (attr_form_is_block): Don't declare.
189 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
190
cd6c91b4
TT
1912020-02-08 Tom Tromey <tom@tromey.com>
192
193 * dwarf2read.c (dwarf2_find_base_address, )
194 (read_call_site_scope, rust_containing_type)
195 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
196 (handle_data_member_location, dwarf2_add_member_fn)
197 (get_alignment, read_structure_type, process_structure_scope)
198 (mark_common_block_symbol_computed, read_common_block)
199 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
200 (partial_die_info::read, read_attribute_value, new_symbol)
201 (lookup_die_type, dwarf2_get_ref_die_offset)
202 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
203 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
204 (dwarf2_symbol_mark_computed): Update.
205 * dwarf2/attribute.h (struct attribute) <value_as_address,
206 form_is_section_offset, form_is_constant, form_is_ref>: Declare
207 methods.
208 (value_as_address, attr_form_is_section_offset)
209 (attr_form_is_constant, attr_form_is_ref): Don't declare.
210 * dwarf2/attribute.c (attribute::value_as_address)
211 (attribute::form_is_section_offset, attribute::form_is_constant)
212 (attribute::form_is_ref): Now methods.
213
162dce55
TT
2142020-02-08 Tom Tromey <tom@tromey.com>
215
216 * dwarf2read.c (struct attribute, DW_STRING)
217 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
218 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
219 (attr_form_is_block, attr_form_is_section_offset)
220 (attr_form_is_constant, attr_form_is_ref): Move.
221 * dwarf2/attribute.h: New file.
222 * dwarf2/attribute.c: New file, from dwarf2read.c.
223 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
224
3054dd54
TT
2252020-02-08 Tom Tromey <tom@tromey.com>
226
227 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
228 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
229 Move.
230 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
231 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
232 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
233 abbrev.c.
234 * dwarf2/abbrev.h: New file.
235 * dwarf2/abbrev.c: New file, from dwarf2read.c.
236 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
237
96b79293
TT
2382020-02-08 Tom Tromey <tom@tromey.com>
239
240 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
241 (dwarf2_section_size, dwarf2_get_section_info)
242 (create_signatured_type_table_from_debug_names)
243 (create_addrmap_from_aranges, read_debug_names_from_section)
244 (get_gdb_index_contents_from_section, read_comp_unit_head)
245 (error_check_comp_unit_head, read_abbrev_offset)
246 (create_debug_type_hash_table, init_cu_die_reader)
247 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
248 (read_comp_units_from_section, create_cus_hash_table)
249 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
250 (create_dwp_v2_section, dwarf2_rnglists_process)
251 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
252 (abbrev_table_read_table, read_indirect_string_at_offset_from)
253 (read_indirect_string_from_dwz, read_addr_index_1)
254 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
255 (dwarf_decode_macro_bytes, dwarf_decode_macros)
256 (fill_in_loclist_baton): Update.
257 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
258 get_containing_section, get_bfd_owner, get_bfd_section,
259 get_file_name, get_id, get_flags, empty, read>: Declare methods.
260 (dwarf2_read_section, get_section_name, get_section_file_name)
261 (get_containing_section, get_section_bfd_owner)
262 (get_section_bfd_section, get_section_name, get_section_file_name)
263 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
264 declare.
265 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
266 (dwarf2_section_info::get_bfd_owner)
267 (dwarf2_section_info::get_bfd_section)
268 (dwarf2_section_info::get_name)
269 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
270 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
271 (dwarf2_section_info::read): Now methods.
272 * dwarf-index-write.c (class debug_names): Update.
273
2c86cff9
TT
2742020-02-08 Tom Tromey <tom@tromey.com>
275
276 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
277 Move to dwarf2/section.h.
278 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
279 (get_section_bfd_section, get_section_name)
280 (get_section_file_name, get_section_id, get_section_flags)
281 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
282 dwarf2/section.c.
283 * dwarf2/section.h: New file.
284 * dwarf2/section.c: New file, from dwarf2read.c.
285 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
286
f4382c45
TT
2872020-02-08 Tom Tromey <tom@tromey.com>
288
289 * dwarf2read.h (read_unsigned_leb128): Don't declare.
290 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
291 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
292 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
293 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
294 * dwarf2/leb.h: New file, from dwarf2read.c.
295 * dwarf2/leb.c: New file, from dwarf2read.c.
296 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
297 Remove.
298 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
299 (COMMON_SFILES): Add dwarf2/leb.c.
300
01840b7a
JB
3012020-02-08 Joel Brobecker <brobecker@adacore.com>
302
303 GDB 9.1 released.
304
dfcb27e4
IB
3052020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
306
307 PR gdb/25190:
308 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
309 * gdb/remote.c (remote_console_output): Update.
310 * gdb/ui-file.c (fputs_unfiltered): Rename to...
311 (ui_file_puts): ...this.
312 * gdb/ui-file.h (ui_file_puts): Add declaration.
313 * gdb/utils.c (emit_style_escape): Update.
314 (flush_wrap_buffer): Update.
315 (fputs_maybe_filtered): Update.
316 (fputs_unfiltered): Add function.
317
faa17681
IB
3182020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
319
320 * gdb/event-loop.c (gdb_wait_for_event): Update.
321 * gdb/printcmd.c (printf_command): Update.
322 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
323 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
324 (gdb_os_flush_stderr): Update.
325 * gdb/remote.c (remote_console_output): Update.
326 * gdb/ui-file.c (gdb_flush): Rename to...
327 (ui_file_flush): ...this.
328 (stderr_file::write): Update.
329 (stderr_file::puts): Update.
330 * gdb/ui-file.h (gdb_flush): Rename to...
331 (ui_file_flush): ...this.
332 * gdb/utils.c (gdb_flush): Add function.
333 * gdb/utils.h (gdb_flush): Add declaration.
334
5abbbe1d
TT
3352020-02-07 Tom Tromey <tromey@adacore.com>
336
337 PR breakpoints/24915:
338 * source.c (find_and_open_source): Do not check basenames_may_differ.
339
919adfe8
TT
3402020-02-07 Tom Tromey <tom@tromey.com>
341
342 * README: Update gdbserver documentation.
343 * gdbserver: Move to top level.
344 * configure.tgt (build_gdbserver): Remove.
345 * configure.ac: Remove --enable-gdbserver.
346 * configure: Rebuild.
347 * Makefile.in (distclean): Don't mention gdbserver.
348
1d5d29e7
SV
3492020-02-06 Shahab Vahedi <shahab@synopsys.com>
350
351 * source-cache.c (source_cache::ensure): Surround
352 get_plain_source_lines with a try/catch.
353 (source_cache::get_line_charpos): Get rid of try/catch
354 and only check for the return value of "ensure".
355 * tui/tui-source.c (tui_source_window::set_contents):
356 Simplify "nlines" calculation.
357
6eb1129c
SV
3582020-02-06 Shahab Vahedi <shahab@synopsys.com>
359
360 * MAINTAINERS (Write After Approval): Add myself.
361
c6a42d11
CB
3622020-02-05 Christian Biesinger <cbiesinger@google.com>
363
364 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
365 function call.
366
c8ecdda6
CB
3672020-02-05 Christian Biesinger <cbiesinger@google.com>
368
369 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
370
f6480e70
MR
3712020-02-05 Maciej W. Rozycki <macro@wdc.com>
372
373 * nat/riscv-linux-tdesc.h: New file.
374 * nat/riscv-linux-tdesc.c: New file, taking code from...
375 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
376 ... here.
377 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
378 NATDEPFILES.
379
dcc9fbc6
AB
3802020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
381
382 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
383 we don't set the fake simulator ptid to the null_ptid.
384
719546c4
SM
3852020-02-03 Simon Marchi <simon.marchi@efficios.com>
386
387 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
388 * gdbthread.h (class thread_info) <resumed>: Likewise.
389 * infrun.c (resume_1): Likewise.
390 (proceed): Likewise.
391 (infrun_thread_stop_requested): Likewise.
392 (stop_all_threads): Likewise.
393 (handle_inferior_event): Likewise.
394 (restart_threads): Likewise.
395 (finish_step_over): Likewise.
396 (keep_going_stepped_thread): Likewise.
397 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
398 (linux_handle_extended_wait): Likewise.
399 * record-btrace.c (get_thread_current_frame_id): Likewise.
400 * record-full.c (record_full_wait_1): Likewise.
401 * remote.c (remote_target::process_initial_stop_replies): Likewise.
402 * target.c (target_resume): Likewise.
403 * thread.c (set_running_thread): Likewise.
404
e409c542
AKS
4052020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
406
407 * f-valprint.c (f77_print_array_1): Changed datatype of index
408 variable to LONGEST from int to enable it to contain bound
409 values correctly.
410
ee98c0da
MR
4112020-02-03 Maciej W. Rozycki <macro@wdc.com>
412
413 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
414 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
415 offsets according to FLEN determined.
416 (riscv_linux_nat_target::read_description): Determine FLEN
417 dynamically.
418 (riscv_linux_nat_target::fetch_registers): Size regset buffer
419 according to FLEN determined.
420 (riscv_linux_nat_target::store_registers): Likewise.
421
aa66aac4
SV
4222020-02-01 Shahab Vahedi <shahab@synopsys.com>
423
424 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
425 when reg->group is empty and reggroup is not.
426
fd9faca8
TT
4272020-01-31 Tom Tromey <tromey@adacore.com>
428
429 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
430 Call beneath target's mourn_inferior after unpushing.
431
42330a68
AB
4322020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
433
434 PR tui/9765
435 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
436 have enough lines to fill the screen, still return the lowest
437 address we found.
438
7a27a45b
AB
4392020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
440
441 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
442 '-', '<', and '>' commands.
443
c47f70e2
PA
4442020-01-29 Pedro Alves <palves@redhat.com>
445 Sergio Durigan Junior <sergiodj@redhat.com>
446
447 * infcmd.c (construct_inferior_arguments): Assert that
448 'argc' is greater than 0.
449
5133a315
LM
4502020-01-29 Luis Machado <luis.machado@linaro.org>
451
452 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
453 (BRK_INSN_MASK): Define to 0xd4200000.
454 (aarch64_program_breakpoint_here_p): New function.
455 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
456 * arch-utils.c (default_program_breakpoint_here_p): Moved from
457 breakpoint.c.
458 * arch-utils.h (default_program_breakpoint_here_p): Moved from
459 breakpoint.h
460 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
461 call gdbarch_program_breakpoint_here_p.
462 (program_breakpoint_here): Moved to arch-utils.c, renamed to
463 default_program_breakpoint_here_p, changed return type to bool and
464 simplified.
465 * breakpoint.h (program_breakpoint_here): Moved prototype to
466 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
467 return type to bool.
468 * gdbarch.c: Regenerate.
469 * gdbarch.h: Regenerate.
470 * gdbarch.sh (program_breakpoint_here_p): New method.
471 * infrun.c (handle_signal_stop): Call
472 gdbarch_program_breakpoint_here_p.
473
168f8c6b
TT
4742020-01-26 Tom Tromey <tom@tromey.com>
475
476 * ctfread.c (struct ctf_fp_info): Reindent.
477 (_initialize_ctfread): Remove.
478
128a391f
TT
4792020-01-26 Tom Tromey <tom@tromey.com>
480
481 * psymtab.c (partial_map_expand_apply)
482 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
483 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
484 (psym_print_stats, psym_expand_symtabs_for_function)
485 (psym_map_symbol_filenames, psym_map_matching_symbols)
486 (psym_expand_symtabs_matching)
487 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
488 (maintenance_check_psymtabs): Use new methods.
489 * psympriv.h (struct partial_symtab) <readin_p,
490 get_compunit_symtab>: New methods.
491 <readin, compunit_symtab>: Remove members.
492 (struct standard_psymtab): New.
493 (struct legacy_psymtab): Derive from standard_psymtab.
494 * dwarf2read.h (struct dwarf2_psymtab): Derive from
495 standard_psymtab.
496 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
497
0494dbec
TT
4982020-01-26 Tom Tromey <tom@tromey.com>
499
500 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
501 read_dependencies. Add assert.
502 * psymtab.c (partial_symtab::read_dependencies): New method.
503 * psympriv.h (struct partial_symtab) <read_dependencies>: New
504 method.
505 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
506 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
507 read_dependencies.
508 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
509 Add assert.
510
8566b89b
TT
5112020-01-26 Tom Tromey <tom@tromey.com>
512
513 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
514 Call expand_psymtab.
515 (xcoff_read_symtab): Call expand_psymtab.
516 (xcoff_start_psymtab, xcoff_end_psymtab): Set
517 legacy_expand_psymtab.
518 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
519 method.
520 (struct legacy_psymtab) <expand_psymtab>: Implement.
521 <legacy_expand_psymtab>: New member.
522 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
523 (parse_partial_symbols): Set legacy_expand_psymtab.
524 (psymtab_to_symtab_1): Change argument order. Call
525 expand_psymtab.
526 (new_psymtab): Set legacy_expand_psymtab.
527 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
528 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
529 expand_psymtab.
530 (dwarf2_psymtab::expand_psymtab): Rename from
531 psymtab_to_symtab_1. Call expand_psymtab.
532 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
533 (dbx_end_psymtab): Likewise.
534 (dbx_psymtab_to_symtab_1): Change argument order. Call
535 expand_psymtab.
536 (dbx_read_symtab): Call expand_psymtab.
537 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
538 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
539 (ctf_psymtab::read_symtab): Call expand_psymtab.
540
077cbab2
TT
5412020-01-26 Tom Tromey <tom@tromey.com>
542
543 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
544 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
545 messages.
546 * mdebugread.c (mdebug_read_symtab): Remove prints.
547 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
548 assert.
549 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
550
891813be
TT
5512020-01-26 Tom Tromey <tom@tromey.com>
552
553 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
554 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
555 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
556 legacy_symtab.
557 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
558 * psymtab.c (psymtab_to_symtab): Call method.
559 (dump_psymtab): Update.
560 * psympriv.h (struct partial_symtab): Add virtual destructor.
561 <read_symtab>: New method.
562 (struct legacy_symtab): New.
563 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
564 (struct pst_map) <pst>: Now a legacy_psymtab.
565 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
566 (new_psymtab): Use legacy_psymtab.
567 * dwarf2read.h (struct dwarf2_psymtab): New.
568 (struct dwarf2_per_cu_data) <psymtab>: Use it.
569 * dwarf2read.c (dwarf2_create_include_psymtab)
570 (dwarf2_build_include_psymtabs, create_type_unit_group)
571 (create_partial_symtab, process_psymtab_comp_unit_reader)
572 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
573 (set_partial_user): Use dwarf2_psymtab.
574 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
575 (psymtab_to_symtab_1, process_full_comp_unit)
576 (process_full_type_unit, dwarf2_ranges_read)
577 (dwarf2_get_pc_bounds, psymtab_include_file_name)
578 (dwarf_decode_lines): Use dwarf2_psymtab.
579 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
580 (add_address_entry_worker, write_one_signatured_type)
581 (recursively_count_psymbols, recursively_write_psymbols)
582 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
583 (write_debug_names): Likewise.
584 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
585 <pst>: Now a legacy_psymtab.
586 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
587 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
588 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
589 * ctfread.c (struct ctf_psymtab): New.
590 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
591 ctf_psymtab.
592 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
593 (create_partial_symtab): Return a ctf_psymtab.
594 (scan_partial_symbols): Update.
595
c3693a1d
TT
5962020-01-26 Tom Tromey <tom@tromey.com>
597
598 * xcoffread.c (xcoff_start_psymtab): Use new.
599 * psymtab.c (partial_symtab::partial_symtab): New constructor,
600 renamed from start_psymtab_common.
601 * psympriv.h (struct partial_symtab): Add new constructor.
602 (start_psymtab_common): Don't declare.
603 * mdebugread.c (parse_partial_symbols): Use new.
604 * dwarf2read.c (create_partial_symtab): Use new.
605 * dbxread.c (start_psymtab): Use new.
606 * ctfread.c (create_partial_symtab): Use new.
607
32caafd0
TT
6082020-01-26 Tom Tromey <tom@tromey.com>
609
610 * xcoffread.c (xcoff_end_psymtab): Use new.
611 * psymtab.c (start_psymtab_common): Use new.
612 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
613 Update.
614 * psympriv.h (struct partial_symtab): Add parameters to
615 constructor. Don't inline.
616 (allocate_psymtab): Don't declare.
617 * mdebugread.c (new_psymtab): Use new.
618 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
619 * dbxread.c (dbx_end_psymtab): Use new.
620
abaa2f23
TT
6212020-01-26 Tom Tromey <tom@tromey.com>
622
623 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
624 allocate_psymtab. Update documentation.
625 * psymtab.c (psymtab_storage::install_psymtab): Rename from
626 allocate_psymtab. Do not use new.
627 (allocate_psymtab): Use new. Update.
628
6d94535f
TT
6292020-01-26 Tom Tromey <tom@tromey.com>
630
631 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
632 * psymtab.c (psym_print_stats): Update.
633 * psympriv.h (struct partial_symtab) <readin,
634 psymtabs_addrmap_supported, anonymous>: Now bool.
635 * mdebugread.c (psymtab_to_symtab_1): Update.
636 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
637 (build_type_psymtabs_reader, psymtab_to_symtab_1)
638 (process_full_comp_unit, process_full_type_unit): Update.
639 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
640 * ctfread.c (psymtab_to_symtab): Update.
641
6f17252b
TT
6422020-01-26 Tom Tromey <tom@tromey.com>
643
644 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
645 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
646 * psymtab.c (psymtab_storage): Delete psymtabs.
647 (psymtab_storage::allocate_psymtab): Use new.
648 (psymtab_storage::discard_psymtab): Use delete.
649 * psympriv.h (struct partial_symtab): Add constructor and
650 initializers.
651
f6f1cebc
TT
6522020-01-26 Tom Tromey <tom@tromey.com>
653
654 * machoread.c: Do not include psympriv.h.
655
e47e48f6
PW
6562020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
657
658 * NEWS: Mention the new option and the set/show commands.
659
a2fedca9
PW
6602020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
661
662 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
663 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
664 (validate_exec_file): New variables, enums, functions.
665 (exec_file_locate_attach, print_section_info): Style the filenames.
666 (_initialize_exec): Install show_exec_file_mismatch_command and
667 set_exec_file_mismatch_command.
668 * gdbcore.h (validate_exec_file): Declare.
669 * infcmd.c (attach_command): Call validate_exec_file.
670 * remote.c ( remote_target::remote_add_inferior): Likewise.
671
7ffa82e1
AB
6722020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
673
674 * frame.c (find_frame_sal): Move call to get_next_frame into more
675 inner scope.
676 * inline-frame.c (inilne_state) <inline_state>: Update argument
677 types.
678 (inilne_state) <skipped_symbol>: Rename to...
679 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
680 (skip_inline_frames): Build vector of skipped symbols and use this
681 to reate the inline_state.
682 (inline_skipped_symbol): Add a comment and some assertions, fetch
683 skipped symbol from the list.
684
3d92a3e3
AB
6852020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
686
687 * buildsym.c (lte_is_less_than): Delete.
688 (buildsym_compunit::end_symtab_with_blockvector): Create local
689 lambda function to sort line table entries, and use
690 std::stable_sort instead of std::sort.
691 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
692 markers when looking for a previous line.
693
94a72be7
AB
6942020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
695
696 * dwarf2read.c (lnp_state_machine::record_line): Include
697 end_sequence parameter in debug print out. Record the line if we
698 are at an end_sequence marker even if it's not the start of a
699 statement.
700 * symmisc.c (maintenance_print_one_line_table): Print end of
701 sequence markers with 'END' not '0'.
702
53af73bf
PA
7032020-01-24 Pedro Alves <palves@redhat.com>
704
705 PR gdb/25410
706 * thread.c (scoped_restore_current_thread::restore): Use
707 switch_to_inferior_no_thread.
708 * exec.c: Include "progspace-and-thread.h".
709 (add_target_sections, remove_target_sections):
710 scoped_restore_current_pspace_and_thread instead of
711 scoped_restore_current_thread.
712 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
713 and aspace to the inferior before calling clone_program_space.
714 Remove stale comment.
715
3050c6f4
CB
7162020-01-24 Christian Biesinger <cbiesinger@google.com>
717
718 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
719 (arm_netbsd_nat_target::fetch_registers): ...this.
720 (arm_nbsd_nat_target::store_registers): Rename to...
721 (arm_netbsd_nat_target::store_registers): ...this.
722
73685c7e
CB
7232020-01-24 Christian Biesinger <cbiesinger@google.com>
724
725 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
726 register_t.
727
89203d40
CB
7282020-01-24 Christian Biesinger <cbiesinger@google.com>
729
730 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
731 Update comment.
732 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
733 Likewise.
734 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
735 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
736 the correct replacement (iterate_over_regset_sections).
737 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
738 Update comment.
739
1ba1ac88
AB
7402020-01-24 Graham Markall <graham.markall@embecosm.com>
741
742 PR gdb/23718
743 * gdb/python/python.c (execute_gdb_command): Call
744 async_enable_stdin in catch block.
745
f3364a6d
AB
7462020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
747
748 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
749 SWITCH_THRU_ALL_UIS.
750
733d0a67
AB
7512020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
752
753 PR tui/9765
754 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
755 comment, add extra parameter, and update to store previous symbol
756 when appropriate.
757 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
758 add extra parameter.
759 * tui/tui-disasm.c (tui_disassemble): Update header comment,
760 remove unneeded parameter, add try/catch around gdb_print_insn,
761 rewrite to add items to asm_lines vector.
762 (tui_find_backward_disassembly_start_address): New function.
763 (tui_find_disassembly_address): Updated throughout.
764 (tui_disasm_window::set_contents): Update for changes to
765 tui_disassemble.
766 (tui_disasm_window::do_scroll_vertical): No need to adjust the
767 number of lines to scroll.
768
b3b3bada
SM
7692020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
770
771 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
772 (SECT_OFF_DATA): Likewise.
773 (SECT_OFF_RODATA): Likewise.
774 (SECT_OFF_TEXT): Likewise.
775 (SECT_OFF_BSS): Likewise.
776 (struct objfile) <text_section_offset, data_section_offset>: New
777 methods.
778 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
779 objfile::text_section_offset.
780 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
781 * coffread.c (coff_symtab_read): Likewise.
782 (enter_linenos): Likewise.
783 (process_coff_symbol): Likewise.
784 * ctfread.c (get_objfile_text_range): Likewise.
785 * dtrace-probe.c (dtrace_probe::get_relocated_address):
786 Use objfile::data_section_offset.
787 * dwarf2-frame.c (execute_cfa_program): Use
788 objfile::text_section_offset.
789 (dwarf2_frame_find_fde): Likewise.
790 * dwarf2read.c (create_addrmap_from_index): Likewise.
791 (create_addrmap_from_aranges): Likewise.
792 (dw2_find_pc_sect_compunit_symtab): Likewise.
793 (process_psymtab_comp_unit_reader): Likewise.
794 (add_partial_symbol): Likewise.
795 (add_partial_subprogram): Likewise.
796 (process_full_comp_unit): Likewise.
797 (read_file_scope): Likewise.
798 (read_func_scope): Likewise.
799 (read_lexical_block_scope): Likewise.
800 (read_call_site_scope): Likewise.
801 (dwarf2_rnglists_process): Likewise.
802 (dwarf2_ranges_process): Likewise.
803 (dwarf2_ranges_read): Likewise.
804 (dwarf_decode_lines_1): Likewise.
805 (new_symbol): Likewise.
806 (dwarf2_fetch_die_loc_sect_off): Likewise.
807 (dwarf2_per_cu_text_offset): Likewise.
808 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
809 * hppa-tdep.c (read_unwind_info): Likewise.
810 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
811 * psympriv.h (struct partial_symtab): Likewise.
812 * psymtab.c (find_pc_sect_psymtab): Likewise.
813 * solib-svr4.c (enable_break): Likewise.
814 * stap-probe.c (relocate_address): Use
815 objfile::data_section_offset.
816 * xcoffread.c (enter_line_range): Use
817 objfile::text_section_offset.
818 (read_xcoff_symtab): Likewise.
819
ab53f382
SM
8202020-01-23 Simon Marchi <simon.marchi@efficios.com>
821
822 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
823 declaration to narrower scopes.
824
e7eee665
SM
8252020-01-23 Simon Marchi <simon.marchi@efficios.com>
826
827 * darwin-nat.h (struct darwin_exception_msg, enum
828 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
829 Move up.
830 (class darwin_nat_target) <wait_1, check_new_threads,
831 decode_exception_message, decode_message, stop_inferior,
832 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
833 * darwin-nat.c (darwin_check_new_threads): Rename to...
834 (darwin_nat_target::check_new_threads): ... this.
835 (darwin_suspend_inferior_it): Remove.
836 (darwin_decode_exception_message): Rename to...
837 (darwin_nat_target::decode_exception_message): ... this.
838 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
839 (darwin_decode_message): Rename to...
840 (darwin_nat_target::decode_message): ... this.
841 (cancel_breakpoint): Rename to...
842 (darwin_nat_target::cancel_breakpoint): ... this.
843 (darwin_wait): Rename to...
844 (darwin_nat_target::wait_1): ... this. Use range-based for loop
845 instead of iterate_over_inferiors.
846 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
847 (darwin_stop_inferior): Rename to...
848 (darwin_nat_target::stop_inferior): ... this.
849 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
850 (darwin_init_thread_list): Rename to...
851 (darwin_nat_target::init_thread_list): ... this.
852 (darwin_ptrace_him): Rename to...
853 (darwin_nat_target::ptrace_him): ... this.
854 (darwin_nat_target::create_inferior): Pass lambda function to
855 fork_inferior.
856 (darwin_nat_target::detach): Call stop_inferior instead of
857 darwin_stop_inferior.
858 * fork-inferior.h (fork_inferior): Change init_trace_fun
859 parameter to gdb::function_view.
860 * fork-inferior.c (fork_inferior): Likewise.
861
c162ed3e
HD
8622020-01-23 Hannes Domani <ssbssa@yahoo.de>
863
864 * i386-cygwin-tdep.c (core_process_module_section): Update.
865 * windows-nat.c (struct lm_info_windows): Add text_offset.
866 (windows_xfer_shared_libraries): Update.
867 * windows-tdep.c (windows_xfer_shared_library):
868 Add text_offset_cached argument.
869 * windows-tdep.h (windows_xfer_shared_library): Update.
870
a1237872
SM
8712020-01-21 Simon Marchi <simon.marchi@efficios.com>
872
873 * gdbarch.sh: Add declaration for _initialize_gdbarch.
874
b3ee6dd9
SM
8752020-01-21 Simon Marchi <simon.marchi@efficios.com>
876
877 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
878 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
879 replace with range-based for.
880 (gdbsim_interrupt_inferior): Remove.
881 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
882 with a range-based for. Inline code from
883 gdbsim_interrupt_inferior.
884
f9fac3c8
SM
8852020-01-21 Simon Marchi <simon.marchi@efficios.com>
886
887 * infrun.c (proceed): Fix indentation.
888
f6474de9
TT
8892020-01-21 Tom Tromey <tromey@adacore.com>
890
891 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
892 * python/python.c (python_extension_ops): Update.
893 (gdbpy_colorize): New function.
894 * python/lib/gdb/__init__.py (colorize): New function.
895 * extension.h (ext_lang_colorize): Declare.
896 * extension.c (ext_lang_colorize): New function.
897 * extension-priv.h (struct extension_language_ops) <colorize>: New
898 member.
899 * cli/cli-style.c (_initialize_cli_style): Update help text.
900
f0c702d4
LM
9012020-01-21 Luis Machado <luis.machado@linaro.org>
902
903 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
904 <cond>: Change type to bool.
905 (aarch64_displaced_step_b_cond): Update cond to use bool type.
906 (aarch64_displaced_step_cb): Likewise.
907 (aarch64_displaced_step_tb): Likewise.
908
1ab139e5
LM
9092020-01-21 Luis Machado <luis.machado@linaro.org>
910
911 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
912 output.
913
0c271889
LM
9142020-01-21 Luis Machado <luis.machado@linaro.org>
915
916 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
917 <pc_adjust>: Adjust the documentation.
918 (aarch64_displaced_step_fixup): Check if PC really moved before
919 adjusting it.
920
4d89c1c7
TT
9212020-01-19 Tom Tromey <tom@tromey.com>
922
923 * disasm.c (~gdb_disassembler): New destructor.
924 (gdb_buffered_insn_length): Call disassemble_free_target.
925 * disasm.h (class gdb_disassembler): Declare destructor. Use
926 DISABLE_COPY_AND_ASSIGN.
927
c0ab21c2
TT
9282020-01-19 Tom Tromey <tom@tromey.com>
929
930 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
931 (die_reader_func_ftype): Remove.
932 (cutu_reader): New class.
933 (dw2_get_file_names_reader): Remove "data" parameter.
934 (dw2_get_file_names): Use cutu_reader.
935 (create_debug_type_hash_table): Update.
936 (read_cutu_die_from_dwo): Update comment.
937 (lookup_dwo_unit): Add dwo_name parameter.
938 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
939 die_reader_func_ftype and data parameters.
940 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
941 Remove die_reader_func_ftype and data parameters.
942 (~cutu_reader): New; from init_cutu_and_read_dies.
943 (cutu_reader::cutu_reader): Rename from
944 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
945 and data parameters.
946 (init_cutu_and_read_dies_simple): Remove.
947 (struct process_psymtab_comp_unit_data): Remove.
948 (process_psymtab_comp_unit_reader): Remove data parameter; add
949 want_partial_unit and pretend_language parameters.
950 (process_psymtab_comp_unit): Use cutu_reader.
951 (build_type_psymtabs_reader): Remove data parameter.
952 (build_type_psymtabs_1): Use cutu_reader.
953 (process_skeletonless_type_unit): Likewise.
954 (load_partial_comp_unit_reader): Remove.
955 (load_partial_comp_unit): Use cutu_reader.
956 (load_full_comp_unit_reader): Remove.
957 (load_full_comp_unit): Use cutu_reader.
958 (struct create_dwo_cu_data): Remove.
959 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
960 dwo_unit parameters.
961 (create_cus_hash_table): Use cutu_reader.
962 (struct dwarf2_read_addr_index_data): Remove.
963 (dwarf2_read_addr_index_reader): Remove.
964 (dwarf2_read_addr_index): Use cutu_reader.
965 (read_signatured_type_reader): Remove.
966 (read_signatured_type): Use cutu_reader.
967
45bbae5c
TT
9682020-01-19 Tom Tromey <tom@tromey.com>
969
970 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
971 * tui/tui-wingeneral.h (class tui_suppress_output): New.
972 (tui_wrefresh): Declare.
973 * tui/tui-wingeneral.c (suppress_output): New global.
974 (tui_suppress_output, ~tui_suppress_output): New constructor and
975 destructor.
976 (tui_wrefresh): New function.
977 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
978 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
979 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
980 method.
981 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
982 tui_wrefresh.
983 (tui_data_window::no_refresh): New method.
984 (tui_data_item_window::refresh_window): Call tui_wrefresh.
985 (tui_reg_command): Use tui_suppress_output
986 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
987 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
988 method.
989 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
990
4f13c1c0
TT
9912020-01-19 Tom Tromey <tom@tromey.com>
992
993 * tui/tui-winsource.c (tui_update_source_windows_with_line):
994 Handle case where symtab is null.
995
fa47e446
SM
9962020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
997
998 * linux-fork.c (one_fork_p): Simplify.
999
26f42329
SM
10002020-01-17 Simon Marchi <simon.marchi@efficios.com>
1001
1002 * top.c (struct qt_args): Remove.
1003 (kill_or_detach): Change return type to void, replace `void *`
1004 parameter with a proper one.
1005 (print_inferior_quit_action): Likewise.
1006 (quit_confirm): Use range-based for loop to iterate over inferiors.
1007 (quit_force): Likewise.
1008
a9ac81b1
SM
10092020-01-17 Simon Marchi <simon.marchi@efficios.com>
1010
1011 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
1012 `void *` parameter with proper parameters.
1013 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
1014 (print_one_inferior): Change return type to void, replace `void *`
1015 parameter with proper parameters.
1016 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
1017 inferiors.
1018 (get_other_inferior): Remove.
1019 (mi_cmd_remove_inferior): Use range-based loop to iterate over
1020 inferiors.
1021
788eca49
SM
10222020-01-17 Simon Marchi <simon.marchi@efficios.com>
1023
1024 * mi/mi-interp.c (report_initial_inferior): Remove.
1025 (mi_interp::init): Use range-based for to iterate over inferiors.
1026
d9bc85b6
SM
10272020-01-17 Simon Marchi <simon.marchi@efficios.com>
1028
1029 * python/py-inferior.c (build_inferior_list): Remove.
1030 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
1031
40c94099
CB
10322020-01-16 Christian Biesinger <cbiesinger@google.com>
1033
1034 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
1035 (btrace_stitch_trace): Likewise.
1036 * charset.c (intermediate_encoding): Likewise (vaild).
1037 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
1038 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
1039 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
1040
e0cdfe3c
HD
10412020-01-16 Hannes Domani <ssbssa@yahoo.de>
1042
1043 * windows-tdep.c (windows_get_tlb_type):
1044 Add rtl_user_process_parameters type.
1045
790f1718
PA
10462020-01-16 Pedro Alves <palves@redhat.com>
1047 Norbert Lange <nolange79@gmail.com>
1048
1049 PR build/24805
1050 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
1051 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
1052 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
1053 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
1054 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
1055 (ps_plog): Redeclare exported functions with default visibility.
1056
3112ed97
NA
10572020-01-16 Nitika Achra <Nitika.Achra@amd.com>
1058
1059 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
1060 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
1061
8dc3273e
SM
10622020-01-15 Simon Marchi <simon.marchi@efficios.com>
1063
1064 * infcmd.c (post_create_inferior): Use get_thread_regcache
1065 instead of get_current_regcache.
1066
ff47f4f0
TT
10672020-01-14 Tom Tromey <tom@tromey.com>
1068
1069 PR symtab/12535:
1070 * python/python.c (gdbpy_decode_line): Treat empty string the same
1071 as no argument.
1072
975f45b7
TT
10732020-01-14 Tom Tromey <tom@tromey.com>
1074
1075 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
1076
25e57356
TT
10772020-01-14 Tom Tromey <tom@tromey.com>
1078
1079 * nat/linux-btrace.c: Don't include <config.h>.
1080 * nat/linux-ptrace.c: Don't include <config.h>.
1081 * nat/x86-linux-dregs.c: Don't include <config.h>.
1082
05ea2a05
TT
10832020-01-14 Tom Tromey <tom@tromey.com>
1084
1085 * configure: Rebuild.
1086 * configure.ac: Move many checks to ../gdbsupport/common.m4.
1087
01027315
TT
10882020-01-14 Tom Tromey <tom@tromey.com>
1089
1090 * nat/x86-linux-dregs.c: Include configh.h.
1091 * nat/linux-ptrace.c: Include configh.h.
1092 * nat/linux-btrace.c: Include configh.h.
1093 * defs.h: Include config.h, bfd.h.
1094 * configure.ac: Don't source common.host.
1095 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
1096 * configure: Rebuild.
1097 * acinclude.m4: Update path.
1098 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
1099 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
1100 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
1101 (CLIBS): Add LIBSUPPORT.
1102 (CDEPS): Likewise.
1103 (COMMON_SFILES): Remove gdbsupport files.
1104 (HFILES_NO_SRCDIR): Likewise.
1105 (stamp-version): Update path to create-version.sh.
1106 (ALLDEPFILES): Remove gdbsupport files.
1107
b2ceabe8
TT
11082020-01-14 Tom Tromey <tom@tromey.com>
1109
1110 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
1111 USE_WIN32API when needed.
1112 * configure.ac (USE_WIN32API): Don't define.
1113 (WIN32LIBS): Use WIN32APILIBS.
1114 * configure: Rebuild.
1115
25c51f71
TT
11162020-01-14 Tom Tromey <tom@tromey.com>
1117
1118 * configure: Rebuild.
1119 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
1120
717c684d
BE
11212020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
1122
1123 * skip.c (skip_function_command): Make skip w/o arguments use the
1124 name of the inlined function if pc is inside any inlined function.
1125
7da6a5b9
LM
11262020-01-14 Luis Machado <luis.machado@linaro.org>
1127
1128 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
1129 * infrun.c (resume_1): Likewise.
1130 (handle_inferior_event): Remove stale comment.
1131 * linux-nat.c (linux_nat_target::resume): Update comments.
1132 (save_stop_reason): Likewise.
1133 (linux_nat_filter_event): Likewise.
1134 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
1135
44e4c775
AB
11362020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
1137
1138 * elfread.c (record_minimal_symbol): Set section index to 0 for
1139 non-allocatable sections.
1140
18a8505e
AT
1141
11422020-01-13 Ali Tamur <tamur@google.com>
1143
1144 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
1145 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
1146 to gdb::optional. Update comments.
1147 (dwo_file): Update comments.
1148 (read_attribute): Update API to take an additional out parameter,
1149 need_reprocess. This is used to mark attributes that need other
1150 attributes (e.g. str_offsets_base) for correct computation which may not
1151 have been read yet.
1152 (read_attribute_reprocess): New function declaration.
1153 (read_addr_index): Likewise.
1154 (read_dwo_str_index): Likewise.
1155 (read_stub_str_index): Likewise.
1156 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
1157 (lookup_addr_base): New function definition.
1158 (lookup_ranges_base): Likewise.
1159 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
1160 lookup_ranges_base.
1161 (init_cutu_and_read_dies): Update comments.
1162 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
1163 unit. This is used to inherit parent's str_offsets_base and addr_base.
1164 Update comments.
1165 (init_cutu_and_read_dies_simple): Reflect API changes.
1166 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
1167 (create_cus_hash_table): Change API to take parent compile unit.
1168 Reflect API changes.
1169 (open_and_init_dwo_file): Reflect API changes.
1170 (dwarf2_get_pc_bounds): Update comments.
1171 (dwarf2_record_block_ranges): Likewise.
1172 (read_full_die_1): Change implementation to reprocess attributes that
1173 need str_offsets_base and addr_base.
1174 (partial_die_info::read): Likewise.
1175 (read_attribute_reprocess): New function definition.
1176 (read_attribute_value): Change API to take an additional out parameter,
1177 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
1178 when a non-dwo compile unit has index based attributes.
1179 (read_attribute): Reflect API changes.
1180 (read_addr_index_1): Reflect API changes. Update comments.
1181 (dwarf2_read_addr_index_data): Reflect API changes.
1182 (dwarf2_read_addr_index): Likewise.
1183 (read_str_index): Change API and implementation. This becomes a helper
1184 to be used by the new string index related methods. Update error
1185 message and comments.
1186 (read_dwo_str_index): New function definition.
1187 (read_stub_str_index): Likewise.
1188 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
1189 * symfile.h (dwarf2_debug_sections): Likewise.
1190 * xcoffread.c (dwarf2_debug_sections): Likewise.
1191
0cac9354
SM
11922020-01-13 Simon Marchi <simon.marchi@efficios.com>
1193
1194 * gdbcore.h (struct core_fns) <core_read_registers>: Change
1195 core_reg_sect type to gdb_byte *.
1196 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
1197 * cris-tdep.c (fetch_core_registers): Likewise.
1198 * corelow.c (core_target::get_core_register_section): Change
1199 type of `contents` to gdb::byte_vector.
1200
9a6d629c
AB
12012020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
1202
1203 * tui/tui-wingeneral.c (box_win): Position the title in the center
1204 of the border.
1205
d8b2f9e3
SM
12062020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1207
1208 * corelow.c (core_target::get_core_register_section): Use
1209 std::vector instead of alloca.
1210
bb564c58
SM
12112020-01-13 Simon Marchi <simon.marchi@efficios.com>
1212
1213 * warning.m4: Add -Wmissing-declarations to build_warnings.
1214 * configure: Re-generate.
1215
6b366111
SM
12162020-01-13 Simon Marchi <simon.marchi@efficios.com>
1217
1218 * python/python.c (init__gdb_module): Add declaration.
1219
6c265988
SM
12202020-01-13 Simon Marchi <simon.marchi@efficios.com>
1221
1222 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
1223 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
1224 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
1225 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
1226 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
1227 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
1228 * ada-exp.y (_initialize_ada_exp): Add declaration.
1229 * ada-lang.c (_initialize_ada_language): Add declaration.
1230 * ada-tasks.c (_initialize_tasks): Add declaration.
1231 * agent.c (_initialize_agent): Add declaration.
1232 * aix-thread.c (_initialize_aix_thread): Add declaration.
1233 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
1234 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
1235 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
1236 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
1237 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
1238 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
1239 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
1240 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
1241 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
1242 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
1243 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
1244 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
1245 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
1246 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
1247 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
1248 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
1249 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
1250 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
1251 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
1252 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
1253 * annotate.c (_initialize_annotate): Add declaration.
1254 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
1255 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
1256 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
1257 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
1258 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
1259 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
1260 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
1261 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
1262 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
1263 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
1264 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
1265 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
1266 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
1267 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
1268 * auto-load.c (_initialize_auto_load): Add declaration.
1269 * auxv.c (_initialize_auxv): Add declaration.
1270 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
1271 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
1272 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
1273 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
1274 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
1275 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
1276 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
1277 * breakpoint.c (_initialize_breakpoint): Add declaration.
1278 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
1279 * btrace.c (_initialize_btrace): Add declaration.
1280 * charset.c (_initialize_charset): Add declaration.
1281 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
1282 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
1283 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
1284 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
1285 * cli/cli-script.c (_initialize_cli_script): Add declaration.
1286 * cli/cli-style.c (_initialize_cli_style): Add declaration.
1287 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
1288 * coffread.c (_initialize_coffread): Add declaration.
1289 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
1290 * compile/compile.c (_initialize_compile): Add declaration.
1291 * complaints.c (_initialize_complaints): Add declaration.
1292 * completer.c (_initialize_completer): Add declaration.
1293 * copying.c (_initialize_copying): Add declaration.
1294 * corefile.c (_initialize_core): Add declaration.
1295 * corelow.c (_initialize_corelow): Add declaration.
1296 * cp-abi.c (_initialize_cp_abi): Add declaration.
1297 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
1298 * cp-support.c (_initialize_cp_support): Add declaration.
1299 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
1300 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
1301 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
1302 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
1303 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
1304 * ctfread.c (_initialize_ctfread): Add declaration.
1305 * d-lang.c (_initialize_d_language): Add declaration.
1306 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
1307 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
1308 * dbxread.c (_initialize_dbxread): Add declaration.
1309 * dcache.c (_initialize_dcache): Add declaration.
1310 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
1311 * disasm.c (_initialize_disasm): Add declaration.
1312 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
1313 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
1314 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
1315 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
1316 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
1317 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
1318 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
1319 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
1320 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
1321 * elfread.c (_initialize_elfread): Add declaration.
1322 * exec.c (_initialize_exec): Add declaration.
1323 * extension.c (_initialize_extension): Add declaration.
1324 * f-lang.c (_initialize_f_language): Add declaration.
1325 * f-valprint.c (_initialize_f_valprint): Add declaration.
1326 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
1327 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
1328 * filesystem.c (_initialize_filesystem): Add declaration.
1329 * findcmd.c (_initialize_mem_search): Add declaration.
1330 * findvar.c (_initialize_findvar): Add declaration.
1331 * fork-child.c (_initialize_fork_child): Add declaration.
1332 * frame-base.c (_initialize_frame_base): Add declaration.
1333 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
1334 * frame.c (_initialize_frame): Add declaration.
1335 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
1336 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
1337 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
1338 * gcore.c (_initialize_gcore): Add declaration.
1339 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
1340 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
1341 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
1342 * gdbarch.c (_initialize_gdbarch): Add declaration.
1343 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
1344 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
1345 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
1346 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
1347 * go-lang.c (_initialize_go_language): Add declaration.
1348 * go32-nat.c (_initialize_go32_nat): Add declaration.
1349 * guile/guile.c (_initialize_guile): Add declaration.
1350 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
1351 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
1352 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
1353 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
1354 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
1355 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
1356 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
1357 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
1358 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
1359 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
1360 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
1361 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
1362 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
1363 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
1364 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
1365 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
1366 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
1367 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
1368 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
1369 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
1370 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
1371 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
1372 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
1373 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
1374 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
1375 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
1376 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
1377 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
1378 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
1379 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
1380 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
1381 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
1382 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
1383 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
1384 * infcall.c (_initialize_infcall): Add declaration.
1385 * infcmd.c (_initialize_infcmd): Add declaration.
1386 * inflow.c (_initialize_inflow): Add declaration.
1387 * infrun.c (_initialize_infrun): Add declaration.
1388 * interps.c (_initialize_interpreter): Add declaration.
1389 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
1390 * jit.c (_initialize_jit): Add declaration.
1391 * language.c (_initialize_language): Add declaration.
1392 * linux-fork.c (_initialize_linux_fork): Add declaration.
1393 * linux-nat.c (_initialize_linux_nat): Add declaration.
1394 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
1395 * linux-thread-db.c (_initialize_thread_db): Add declaration.
1396 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
1397 * m2-lang.c (_initialize_m2_language): Add declaration.
1398 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
1399 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
1400 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
1401 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
1402 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
1403 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
1404 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
1405 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
1406 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
1407 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
1408 * machoread.c (_initialize_machoread): Add declaration.
1409 * macrocmd.c (_initialize_macrocmd): Add declaration.
1410 * macroscope.c (_initialize_macroscope): Add declaration.
1411 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
1412 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
1413 * maint.c (_initialize_maint_cmds): Add declaration.
1414 * mdebugread.c (_initialize_mdebugread): Add declaration.
1415 * memattr.c (_initialize_mem): Add declaration.
1416 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
1417 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
1418 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
1419 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
1420 * mi/mi-main.c (_initialize_mi_main): Add declaration.
1421 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
1422 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
1423 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
1424 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
1425 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
1426 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
1427 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
1428 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
1429 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
1430 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
1431 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
1432 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
1433 * mipsread.c (_initialize_mipsread): Add declaration.
1434 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
1435 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
1436 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
1437 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
1438 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
1439 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
1440 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
1441 * nto-procfs.c (_initialize_procfs): Add declaration.
1442 * objc-lang.c (_initialize_objc_language): Add declaration.
1443 * observable.c (_initialize_observer): Add declaration.
1444 * opencl-lang.c (_initialize_opencl_language): Add declaration.
1445 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
1446 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
1447 * osabi.c (_initialize_gdb_osabi): Add declaration.
1448 * osdata.c (_initialize_osdata): Add declaration.
1449 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
1450 * parse.c (_initialize_parse): Add declaration.
1451 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
1452 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
1453 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
1454 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
1455 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
1456 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
1457 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
1458 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
1459 * printcmd.c (_initialize_printcmd): Add declaration.
1460 * probe.c (_initialize_probe): Add declaration.
1461 * proc-api.c (_initialize_proc_api): Add declaration.
1462 * proc-events.c (_initialize_proc_events): Add declaration.
1463 * proc-service.c (_initialize_proc_service): Add declaration.
1464 * procfs.c (_initialize_procfs): Add declaration.
1465 * producer.c (_initialize_producer): Add declaration.
1466 * psymtab.c (_initialize_psymtab): Add declaration.
1467 * python/python.c (_initialize_python): Add declaration.
1468 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
1469 * record-btrace.c (_initialize_record_btrace): Add declaration.
1470 * record-full.c (_initialize_record_full): Add declaration.
1471 * record.c (_initialize_record): Add declaration.
1472 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
1473 * regcache.c (_initialize_regcache): Add declaration.
1474 * reggroups.c (_initialize_reggroup): Add declaration.
1475 * remote-notif.c (_initialize_notif): Add declaration.
1476 * remote-sim.c (_initialize_remote_sim): Add declaration.
1477 * remote.c (_initialize_remote): Add declaration.
1478 * reverse.c (_initialize_reverse): Add declaration.
1479 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
1480 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
1481 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
1482 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
1483 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
1484 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
1485 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
1486 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
1487 Add declaration.
1488 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
1489 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
1490 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
1491 * rust-exp.y (_initialize_rust_exp): Add declaration.
1492 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
1493 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
1494 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
1495 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
1496 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
1497 * score-tdep.c (_initialize_score_tdep): Add declaration.
1498 * ser-go32.c (_initialize_ser_dos): Add declaration.
1499 * ser-mingw.c (_initialize_ser_windows): Add declaration.
1500 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
1501 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
1502 * ser-uds.c (_initialize_ser_socket): Add declaration.
1503 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
1504 * serial.c (_initialize_serial): Add declaration.
1505 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
1506 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
1507 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
1508 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
1509 * skip.c (_initialize_step_skip): Add declaration.
1510 * sol-thread.c (_initialize_sol_thread): Add declaration.
1511 * solib-aix.c (_initialize_solib_aix): Add declaration.
1512 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
1513 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
1514 * solib-frv.c (_initialize_frv_solib): Add declaration.
1515 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
1516 * solib-target.c (_initialize_solib_target): Add declaration.
1517 * solib.c (_initialize_solib): Add declaration.
1518 * source-cache.c (_initialize_source_cache): Add declaration.
1519 * source.c (_initialize_source): Add declaration.
1520 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
1521 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
1522 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
1523 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
1524 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
1525 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
1526 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
1527 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
1528 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
1529 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
1530 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
1531 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
1532 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
1533 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
1534 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
1535 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
1536 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
1537 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
1538 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
1539 * stabsread.c (_initialize_stabsread): Add declaration.
1540 * stack.c (_initialize_stack): Add declaration.
1541 * stap-probe.c (_initialize_stap_probe): Add declaration.
1542 * std-regs.c (_initialize_frame_reg): Add declaration.
1543 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
1544 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
1545 * symfile.c (_initialize_symfile): Add declaration.
1546 * symmisc.c (_initialize_symmisc): Add declaration.
1547 * symtab.c (_initialize_symtab): Add declaration.
1548 * target.c (_initialize_target): Add declaration.
1549 * target-connection.c (_initialize_target_connection): Add
1550 declaration.
1551 * target-dcache.c (_initialize_target_dcache): Add declaration.
1552 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
1553 * thread.c (_initialize_thread): Add declaration.
1554 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
1555 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
1556 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
1557 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
1558 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
1559 * tracectf.c (_initialize_ctf): Add declaration.
1560 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
1561 * tracefile.c (_initialize_tracefile): Add declaration.
1562 * tracepoint.c (_initialize_tracepoint): Add declaration.
1563 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
1564 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
1565 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
1566 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
1567 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
1568 * tui/tui-win.c (_initialize_tui_win): Add declaration.
1569 * tui/tui.c (_initialize_tui): Add declaration.
1570 * typeprint.c (_initialize_typeprint): Add declaration.
1571 * ui-style.c (_initialize_ui_style): Add declaration.
1572 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
1573 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
1574 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
1575 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
1576 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
1577 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
1578 * unittests/filtered_iterator-selftests.c
1579 (_initialize_filtered_iterator_selftests): Add declaration.
1580 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
1581 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
1582 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
1583 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
1584 * unittests/main-thread-selftests.c
1585 (_initialize_main_thread_selftests): Add declaration.
1586 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
1587 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
1588 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
1589 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
1590 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
1591 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
1592 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
1593 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
1594 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
1595 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
1596 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
1597 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
1598 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
1599 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
1600 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
1601 declaration.
1602 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
1603 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
1604 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
1605 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
1606 * user-regs.c (_initialize_user_regs): Add declaration.
1607 * utils.c (_initialize_utils): Add declaration.
1608 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
1609 * valops.c (_initialize_valops): Add declaration.
1610 * valprint.c (_initialize_valprint): Add declaration.
1611 * value.c (_initialize_values): Add declaration.
1612 * varobj.c (_initialize_varobj): Add declaration.
1613 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
1614 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
1615 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
1616 * windows-nat.c (_initialize_windows_nat): Add declaration.
1617 (_initialize_check_for_gdb_ini): Add declaration.
1618 (_initialize_loadable): Add declaration.
1619 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
1620 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
1621 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
1622 * xcoffread.c (_initialize_xcoffread): Add declaration.
1623 * xml-support.c (_initialize_xml_support): Add declaration.
1624 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
1625 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
1626 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
1627 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
1628
e2de1eec
SM
16292020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1630
1631 * regformats/regdat.sh: Generate declaration for init function.
1632
e0037b4c
SM
16332020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1634
1635 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
1636 up.
1637 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
1638 close_one_inferior>: New methods.
1639 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
1640 pass down target to find_inferior_pid.
1641 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
1642 Pass down target to find_inferior_ptid.
1643 (gdbsim_target::create_inferior): Pass down target to
1644 add_thread_silent.
1645 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
1646 target down to find_inferior_ptid and switch_to_thread.
1647 (gdbsim_target::close): Update to call close_one_inferior.
1648 (struct resume_data): Remove.
1649 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
1650 directly, rather than through a void pointer.
1651 (gdbsim_target::resume): Update to call resume_one_inferior.
1652
58920b5b
SM
16532020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1654
1655 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
1656
4ec89149
PA
16572020-01-12 Pedro Alves <palves@redhat.com>
1658
1659 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
1660 directly for the current inferior instead of
1661 discard_all_inferiors.
1662 (discard_all_inferiors): Delete.
1663
7c392d1d
TT
16642020-01-11 Tom Tromey <tom@tromey.com>
1665
1666 * tui/tui-wingeneral.c (box_win): Check cli_styling.
1667 * tui/tui-winsource.c (tui_source_window_base::refill): Use
1668 deprecated_safe_get_selected_frame.
1669
d9ebdab7
TBA
16702020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1671
1672 * inferior.c (print_inferior): Switch inferior before printing it.
1673
f3c469b9
PA
16742020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
1675 Pedro Alves <palves@redhat.com>
1676
1677 * progspace-and-thread.c (switch_to_program_space_and_thread):
1678 Assert there's an inferior for PSPACE. Use
1679 switch_to_inferior_no_thread to switch the inferior too.
1680 * progspace.c (program_space::~program_space): Call
1681 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
1682 (program_space::free_all_objfiles): Don't call clear_symtab_users
1683 here.
1684 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
1685
65c574f6
PA
16862020-01-10 Pedro Alves <palves@redhat.com>
1687
1688 * NEWS: Mention multi-target debugging, "info connections", and
1689 "add-inferior -no-connection".
1690
2f4fcf00
PA
16912020-01-10 Pedro Alves <palves@redhat.com>
1692
1693 * infrun.c: Include "target-connection.h".
1694 (check_multi_target_resumption): New.
1695 (proceed): Call it.
1696 * target-connection.c (make_target_connection_string): Make
1697 extern.
1698 * target-connection.h (make_target_connection_string): Declare.
1699
121b3efd
PA
17002020-01-10 Pedro Alves <palves@redhat.com>
1701
1702 * Makefile.in (COMMON_SFILES): Add target-connection.c.
1703 * inferior.c (uiout_field_connection): New function.
1704 (print_inferior): Add new "connection-id" column.
1705 (add_inferior_command): Show connection number/string of added
1706 inferior.
1707 * process-stratum-target.h
1708 (process_stratum_target::connection_string): New virtual method.
1709 (process_stratum_target::connection_number): New field.
1710 * remote.c (remote_target::connection_string): New override.
1711 * target-connection.c: New file.
1712 * target-connection.h: New file.
1713 * target.c (decref_target): Remove process_stratum targets from
1714 the connection list.
1715 (target_stack::push): Add process_stratum targets to the
1716 connection list.
1717
4f837581
PA
17182020-01-10 Pedro Alves <palves@redhat.com>
1719
1720 Revert:
1721 2016-04-12 Pedro Alves <palves@redhat.com>
1722 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
1723 Remove references to name.
1724 * serial.h (struct serial) <name>: Delete.
1725
f4ec508e
PA
17262020-01-10 Pedro Alves <palves@redhat.com>
1727
1728 * gdbarch-selftests.c (register_to_value_test): Remove "target
1729 already pushed" check.
1730
5b6d1e4f
PA
17312020-01-10 Pedro Alves <palves@redhat.com>
1732 John Baldwin <jhb@FreeBSD.org>
1733
1734 * aarch64-linux-nat.c
1735 (aarch64_linux_nat_target::thread_architecture): Adjust.
1736 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
1737 (task_command_1): Likewise.
1738 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
1739 (aix_thread_target::wait, aix_thread_target::fetch_registers)
1740 (aix_thread_target::store_registers)
1741 (aix_thread_target::thread_alive): Adjust.
1742 * amd64-fbsd-tdep.c: Include "inferior.h".
1743 (amd64fbsd_get_thread_local_address): Pass down target.
1744 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
1745 thread's gdbarch instead of target_gdbarch.
1746 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
1747 get_last_target_status.
1748 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
1749 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
1750 inferiors.
1751 (update_inserted_breakpoint_locations): Skip if inferiors with no
1752 execution.
1753 (update_global_location_list): When handling moribund locations,
1754 find representative inferior for location's pspace, and use thread
1755 count of its process_stratum target.
1756 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
1757 * bsd-uthread.c (bsd_uthread_target::wait): Use
1758 as_process_stratum_target and adjust thread_change_ptid and
1759 add_thread calls.
1760 (bsd_uthread_target::update_thread_list): Use
1761 as_process_stratum_target and adjust find_thread_ptid,
1762 thread_change_ptid and add_thread calls.
1763 * btrace.c (maint_btrace_packet_history_cmd): Adjust
1764 find_thread_ptid call.
1765 * corelow.c (add_to_thread_list): Adjust add_thread call.
1766 (core_target_open): Adjust add_thread_silent and thread_count
1767 calls.
1768 (core_target::pid_to_str): Adjust find_inferior_ptid call.
1769 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
1770 * event-top.c (async_disconnect): Pop targets from all inferiors.
1771 * exec.c (add_target_sections): Push exec target on all inferiors
1772 sharing the program space.
1773 (remove_target_sections): Remove the exec target from all
1774 inferiors sharing the program space.
1775 (exec_on_vfork): New.
1776 * exec.h (exec_on_vfork): Declare.
1777 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
1778 Pass it down.
1779 (fbsd_nat_target::update_thread_list): Adjust.
1780 (fbsd_nat_target::resume): Adjust.
1781 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
1782 down.
1783 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
1784 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
1785 get_thread_arch_regcache call.
1786 * fork-child.c (gdb_startup_inferior): Pass target down to
1787 startup_inferior and set_executing.
1788 * gdbthread.h (struct process_stratum_target): Forward declare.
1789 (add_thread, add_thread_silent, add_thread_with_info)
1790 (in_thread_list): Add process_stratum_target parameter.
1791 (find_thread_ptid(inferior*, ptid_t)): New overload.
1792 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
1793 parameter.
1794 (all_threads()): Delete overload.
1795 (all_threads, all_non_exited_threads): Add process_stratum_target
1796 parameter.
1797 (all_threads_safe): Use brace initialization.
1798 (thread_count): Add process_stratum_target parameter.
1799 (set_resumed, set_running, set_stop_requested, set_executing)
1800 (threads_are_executing, finish_thread_state): Add
1801 process_stratum_target parameter.
1802 (switch_to_thread): Use is_current_thread.
1803 * i386-fbsd-tdep.c: Include "inferior.h".
1804 (i386fbsd_get_thread_local_address): Pass down target.
1805 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
1806 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
1807 have_inferiors check.
1808 * inf-ptrace.c (inf_ptrace_target::create_inferior)
1809 (inf_ptrace_target::attach): Adjust.
1810 * infcall.c (run_inferior_call): Adjust.
1811 * infcmd.c (run_command_1): Pass target to
1812 scoped_finish_thread_state.
1813 (proceed_thread_callback): Skip inferiors with no execution.
1814 (continue_command): Rename 'all_threads' local to avoid hiding
1815 'all_threads' function. Adjust get_last_target_status call.
1816 (prepare_one_step): Adjust set_running call.
1817 (signal_command): Use user_visible_resume_target. Compare thread
1818 pointers instead of inferior_ptid.
1819 (info_program_command): Adjust to pass down target.
1820 (attach_command): Mark target's 'thread_executing' flag.
1821 (stop_current_target_threads_ns): New, factored out from ...
1822 (interrupt_target_1): ... this. Switch inferior before making
1823 target calls.
1824 * inferior-iter.h
1825 (struct all_inferiors_iterator, struct all_inferiors_range)
1826 (struct all_inferiors_safe_range)
1827 (struct all_non_exited_inferiors_range): Filter on
1828 process_stratum_target too. Remove explicit.
1829 * inferior.c (inferior::inferior): Push dummy target on target
1830 stack.
1831 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
1832 Add process_stratum_target parameter, and pass it down.
1833 (have_live_inferiors): Adjust.
1834 (switch_to_inferior_and_push_target): New.
1835 (add_inferior_command, clone_inferior_command): Handle
1836 "-no-connection" parameter. Use
1837 switch_to_inferior_and_push_target.
1838 (_initialize_inferior): Mention "-no-connection" option in
1839 the help of "add-inferior" and "clone-inferior" commands.
1840 * inferior.h: Include "process-stratum-target.h".
1841 (interrupt_target_1): Use bool.
1842 (struct inferior) <push_target, unpush_target, target_is_pushed,
1843 find_target_beneath, top_target, process_target, target_at,
1844 m_stack>: New.
1845 (discard_all_inferiors): Delete.
1846 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
1847 (all_inferiors, all_non_exited_inferiors): Add
1848 process_stratum_target parameter.
1849 * infrun.c: Include "gdb_select.h" and <unordered_map>.
1850 (target_last_proc_target): New global.
1851 (follow_fork_inferior): Push target on new inferior. Pass target
1852 to add_thread_silent. Call exec_on_vfork. Handle target's
1853 reference count.
1854 (follow_fork): Adjust get_last_target_status call. Also consider
1855 target.
1856 (follow_exec): Push target on new inferior.
1857 (struct execution_control_state) <target>: New field.
1858 (user_visible_resume_target): New.
1859 (do_target_resume): Call target_async.
1860 (resume_1): Set target's threads_executing flag. Consider resume
1861 target.
1862 (commit_resume_all_targets): New.
1863 (proceed): Also consider resume target. Skip threads of inferiors
1864 with no execution. Commit resumtion in all targets.
1865 (start_remote): Pass current inferior to wait_for_inferior.
1866 (infrun_thread_stop_requested): Consider target as well. Pass
1867 thread_info pointer to clear_inline_frame_state instead of ptid.
1868 (infrun_thread_thread_exit): Consider target as well.
1869 (random_pending_event_thread): New inferior parameter. Use it.
1870 (do_target_wait): Rename to ...
1871 (do_target_wait_1): ... this. Add inferior parameter, and pass it
1872 down.
1873 (threads_are_resumed_pending_p, do_target_wait): New.
1874 (prepare_for_detach): Adjust calls.
1875 (wait_for_inferior): New inferior parameter. Handle it. Use
1876 do_target_wait_1 instead of do_target_wait.
1877 (fetch_inferior_event): Adjust. Switch to representative
1878 inferior. Pass target down.
1879 (set_last_target_status): Add process_stratum_target parameter.
1880 Save target in global.
1881 (get_last_target_status): Add process_stratum_target parameter and
1882 handle it.
1883 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
1884 (context_switch): Check inferior_ptid == null_ptid before calling
1885 inferior_thread().
1886 (get_inferior_stop_soon): Pass down target.
1887 (wait_one): Rename to ...
1888 (poll_one_curr_target): ... this.
1889 (struct wait_one_event): New.
1890 (wait_one): New.
1891 (stop_all_threads): Adjust.
1892 (handle_no_resumed, handle_inferior_event): Adjust to consider the
1893 event's target.
1894 (switch_back_to_stepped_thread): Also consider target.
1895 (print_stop_event): Update.
1896 (normal_stop): Update. Also consider the resume target.
1897 * infrun.h (wait_for_inferior): Remove declaration.
1898 (user_visible_resume_target): New declaration.
1899 (get_last_target_status, set_last_target_status): New
1900 process_stratum_target parameter.
1901 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
1902 process_stratum_target parameter, and use it.
1903 (clear_inline_frame_state (thread_info*)): New.
1904 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
1905 process_stratum_target parameter.
1906 (clear_inline_frame_state (thread_info*)): Declare.
1907 * linux-fork.c (delete_checkpoint_command): Pass target down to
1908 find_thread_ptid.
1909 (checkpoint_command): Adjust.
1910 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
1911 instead of just tweaking inferior_ptid.
1912 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
1913 (exit_lwp): Pass target down to find_thread_ptid.
1914 (attach_proc_task_lwp_callback): Pass target down to
1915 add_thread/set_running/set_executing.
1916 (linux_nat_target::attach): Pass target down to
1917 thread_change_ptid.
1918 (get_detach_signal): Pass target down to find_thread_ptid.
1919 Consider last target status's target.
1920 (linux_resume_one_lwp_throw, resume_lwp)
1921 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
1922 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
1923 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
1924 (linux_nat_target::async_wait_fd): New.
1925 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
1926 target down.
1927 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
1928 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
1929 * linux-thread-db.c (struct thread_db_info::process_target): New
1930 field.
1931 (add_thread_db_info): Save target.
1932 (get_thread_db_info): New process_stratum_target parameter. Also
1933 match target.
1934 (delete_thread_db_info): New process_stratum_target parameter.
1935 Also match target.
1936 (thread_from_lwp): Adjust to pass down target.
1937 (thread_db_notice_clone): Pass down target.
1938 (check_thread_db_callback): Pass down target.
1939 (try_thread_db_load_1): Always push the thread_db target.
1940 (try_thread_db_load, record_thread): Pass target down.
1941 (thread_db_target::detach): Pass target down. Always unpush the
1942 thread_db target.
1943 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
1944 target down. Always unpush the thread_db target.
1945 (find_new_threads_callback, thread_db_find_new_threads_2)
1946 (thread_db_target::update_thread_list): Pass target down.
1947 (thread_db_target::pid_to_str): Pass current inferior down.
1948 (thread_db_target::get_thread_local_address): Pass target down.
1949 (thread_db_target::resume, maintenance_check_libthread_db): Pass
1950 target down.
1951 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
1952 * procfs.c (procfs_target::procfs_init_inferior): Declare.
1953 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
1954 (procfs_init_inferior): Rename to ...
1955 (procfs_target::procfs_init_inferior): ... this and adjust.
1956 (procfs_target::create_inferior, procfs_notice_thread)
1957 (procfs_do_thread_registers): Adjust.
1958 * ppc-fbsd-tdep.c: Include "inferior.h".
1959 (ppcfbsd_get_thread_local_address): Pass down target.
1960 * proc-service.c (ps_xfer_memory): Switch current inferior and
1961 program space as well.
1962 (get_ps_regcache): Pass target down.
1963 * process-stratum-target.c
1964 (process_stratum_target::thread_address_space)
1965 (process_stratum_target::thread_architecture): Pass target down.
1966 * process-stratum-target.h
1967 (process_stratum_target::threads_executing): New field.
1968 (as_process_stratum_target): New.
1969 * ravenscar-thread.c
1970 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
1971 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
1972 down.
1973 * record-btrace.c (record_btrace_target::info_record): Adjust.
1974 (record_btrace_target::record_method)
1975 (record_btrace_target::record_is_replaying)
1976 (record_btrace_target::fetch_registers)
1977 (get_thread_current_frame_id, record_btrace_target::resume)
1978 (record_btrace_target::wait, record_btrace_target::stop): Pass
1979 target down.
1980 * record-full.c (record_full_wait_1): Switch to event thread.
1981 Pass target down.
1982 * regcache.c (regcache::regcache)
1983 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
1984 process_stratum_target parameter and handle it.
1985 (current_thread_target): New global.
1986 (get_thread_regcache): Add process_stratum_target parameter and
1987 handle it. Switch inferior before calling target method.
1988 (get_thread_regcache): Pass target down.
1989 (get_thread_regcache_for_ptid): Pass target down.
1990 (registers_changed_ptid): Add process_stratum_target parameter and
1991 handle it.
1992 (registers_changed_thread, registers_changed): Pass target down.
1993 (test_get_thread_arch_aspace_regcache): New.
1994 (current_regcache_test): Define a couple local test_target_ops
1995 instances and use them for testing.
1996 (readwrite_regcache): Pass process_stratum_target parameter.
1997 (cooked_read_test, cooked_write_test): Pass mock_target down.
1998 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
1999 (get_thread_arch_aspace_regcache): Add process_stratum_target
2000 parameter.
2001 (regcache::target): New method.
2002 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
2003 (regcache::registers_changed_ptid): Add process_stratum_target
2004 parameter.
2005 (regcache::m_target): New field.
2006 (registers_changed_ptid): Add process_stratum_target parameter.
2007 * remote.c (remote_state::supports_vCont_probed): New field.
2008 (remote_target::async_wait_fd): New method.
2009 (remote_unpush_and_throw): Add remote_target parameter.
2010 (get_current_remote_target): Adjust.
2011 (remote_target::remote_add_inferior): Push target.
2012 (remote_target::remote_add_thread)
2013 (remote_target::remote_notice_new_inferior)
2014 (get_remote_thread_info): Pass target down.
2015 (remote_target::update_thread_list): Skip threads of inferiors
2016 bound to other targets. (remote_target::close): Don't discard
2017 inferiors. (remote_target::add_current_inferior_and_thread)
2018 (remote_target::process_initial_stop_replies)
2019 (remote_target::start_remote)
2020 (remote_target::remote_serial_quit_handler): Pass down target.
2021 (remote_target::remote_unpush_target): New remote_target
2022 parameter. Unpush the target from all inferiors.
2023 (remote_target::remote_unpush_and_throw): New remote_target
2024 parameter. Pass it down.
2025 (remote_target::open_1): Check whether the current inferior has
2026 execution instead of checking whether any inferior is live. Pass
2027 target down.
2028 (remote_target::remote_detach_1): Pass down target. Use
2029 remote_unpush_target.
2030 (extended_remote_target::attach): Pass down target.
2031 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
2032 (remote_target::append_resumption): Pass down target.
2033 (remote_target::append_pending_thread_resumptions)
2034 (remote_target::remote_resume_with_hc, remote_target::resume)
2035 (remote_target::commit_resume): Pass down target.
2036 (remote_target::remote_stop_ns): Check supports_vCont_probed.
2037 (remote_target::interrupt_query)
2038 (remote_target::remove_new_fork_children)
2039 (remote_target::check_pending_events_prevent_wildcard_vcont)
2040 (remote_target::remote_parse_stop_reply)
2041 (remote_target::process_stop_reply): Pass down target.
2042 (first_remote_resumed_thread): New remote_target parameter. Pass
2043 it down.
2044 (remote_target::wait_as): Pass down target.
2045 (unpush_and_perror): New remote_target parameter. Pass it down.
2046 (remote_target::readchar, remote_target::remote_serial_write)
2047 (remote_target::getpkt_or_notif_sane_1)
2048 (remote_target::kill_new_fork_children, remote_target::kill): Pass
2049 down target.
2050 (remote_target::mourn_inferior): Pass down target. Use
2051 remote_unpush_target.
2052 (remote_target::core_of_thread)
2053 (remote_target::remote_btrace_maybe_reopen): Pass down target.
2054 (remote_target::pid_to_exec_file)
2055 (remote_target::thread_handle_to_thread_info): Pass down target.
2056 (remote_target::async_wait_fd): New.
2057 * riscv-fbsd-tdep.c: Include "inferior.h".
2058 (riscv_fbsd_get_thread_local_address): Pass down target.
2059 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
2060 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
2061 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
2062 Adjust.
2063 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
2064 * solib-svr4.c (enable_break): Pass down target.
2065 * spu-multiarch.c (parse_spufs_run): Pass down target.
2066 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
2067 * target-delegates.c: Regenerate.
2068 * target.c (g_target_stack): Delete.
2069 (current_top_target): Return the current inferior's top target.
2070 (target_has_execution_1): Refer to the passed-in inferior's top
2071 target.
2072 (target_supports_terminal_ours): Check whether the initial
2073 inferior was already created.
2074 (decref_target): New.
2075 (target_stack::push): Incref/decref the target.
2076 (push_target, push_target, unpush_target): Adjust.
2077 (target_stack::unpush): Defref target.
2078 (target_is_pushed): Return bool. Adjust to refer to the current
2079 inferior's target stack.
2080 (dispose_inferior): Delete, and inline parts ...
2081 (target_preopen): ... here. Only dispose of the current inferior.
2082 (target_detach): Hold strong target reference while detaching.
2083 Pass target down.
2084 (target_thread_name): Add assertion.
2085 (target_resume): Pass down target.
2086 (target_ops::beneath, find_target_at): Adjust to refer to the
2087 current inferior's target stack.
2088 (get_dummy_target): New.
2089 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
2090 has a thread running.
2091 (initialize_targets): Rename to ...
2092 (_initialize_target): ... this.
2093 * target.h: Include "gdbsupport/refcounted-object.h".
2094 (struct target_ops): Inherit refcounted_object.
2095 (target_ops::shortname, target_ops::longname): Make const.
2096 (target_ops::async_wait_fd): New method.
2097 (decref_target): Declare.
2098 (struct target_ops_ref_policy): New.
2099 (target_ops_ref): New typedef.
2100 (get_dummy_target): Declare function.
2101 (target_is_pushed): Return bool.
2102 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
2103 (all_matching_threads_iterator::all_matching_threads_iterator):
2104 Handle filter target.
2105 * thread-iter.h (struct all_matching_threads_iterator, struct
2106 all_matching_threads_range, class all_non_exited_threads_range):
2107 Filter by target too. Remove explicit.
2108 * thread.c (threads_executing): Delete.
2109 (inferior_thread): Pass down current inferior.
2110 (clear_thread_inferior_resources): Pass down thread pointer
2111 instead of ptid_t.
2112 (add_thread_silent, add_thread_with_info, add_thread): Add
2113 process_stratum_target parameter. Use it for thread and inferior
2114 searches.
2115 (is_current_thread): New.
2116 (thread_info::deletable): Use it.
2117 (find_thread_ptid, thread_count, in_thread_list)
2118 (thread_change_ptid, set_resumed, set_running): New
2119 process_stratum_target parameter. Pass it down.
2120 (set_executing): New process_stratum_target parameter. Pass it
2121 down. Adjust reference to 'threads_executing'.
2122 (threads_are_executing): New process_stratum_target parameter.
2123 Adjust reference to 'threads_executing'.
2124 (set_stop_requested, finish_thread_state): New
2125 process_stratum_target parameter. Pass it down.
2126 (switch_to_thread): Also match inferior.
2127 (switch_to_thread): New process_stratum_target parameter. Pass it
2128 down.
2129 (update_threads_executing): Reimplement.
2130 * top.c (quit_force): Pop targets from all inferior.
2131 (gdb_init): Don't call initialize_targets.
2132 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
2133 Declare.
2134 (windows_add_thread, windows_delete_thread): Adjust.
2135 (get_windows_debug_event): Rename to ...
2136 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
2137 * tracefile-tfile.c (tfile_target_open): Pass down target.
2138 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
2139 Forward declare.
2140 (switch_to_thread): Add process_stratum_target parameter.
2141 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
2142 parameter. Use it.
2143 (mi_on_resume): Pass target down.
2144 * nat/fork-inferior.c (startup_inferior): Add
2145 process_stratum_target parameter. Pass it down.
2146 * nat/fork-inferior.h (startup_inferior): Add
2147 process_stratum_target parameter.
2148 * python/py-threadevent.c (py_get_event_thread): Pass target down.
2149
75c6c844
PA
21502020-01-10 Pedro Alves <palves@redhat.com>
2151
2152 * remote.c (remote_target::start_remote): Don't set inferior_ptid
2153 directly. Instead find the first thread in the thread list and
2154 use switch_to_thread.
2155
78f2c40a
PA
21562020-01-10 Pedro Alves <palves@redhat.com>
2157
2158 * remote.c (remote_target::remote_add_inferior): Don't bind a
2159 process to the current inferior if the current inferior is already
2160 bound to a process.
2161
e7af6c70
TBA
21622020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2163 Pedro Alves <palves@redhat.com>
2164
2165 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
2166 If no process is specified, return null_ptid instead of
2167 inferior_ptid.
2168 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
2169 TARGET_WAITKIND_SIGNALLED with no pid.
2170
31ba933e
PA
21712020-01-10 Pedro Alves <palves@redhat.com>
2172
2173 * remote.c (first_remote_resumed_thread): New.
2174 (remote_target::wait_as): Use it as default event_ptid instead of
2175 inferior_ptid.
2176
735fc2ca
PA
21772020-01-10 Pedro Alves <palves@redhat.com>
2178
2179 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
2180
c17e02e1
PA
21812020-01-10 Pedro Alves <palves@redhat.com>
2182
2183 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
2184 not -1.
2185
ab1ddbcf
PA
21862020-01-10 Pedro Alves <palves@redhat.com>
2187
2188 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
2189 ptid to get_last_target_status.
2190 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
2191 ptid to get_last_target_status.
2192 * infcmd.c (continue_command): Don't pass a target_waitstatus to
2193 get_last_target_status.
2194 (info_program_command): Don't pass a target_waitstatus to
2195 get_last_target_status.
2196 * infrun.c (init_wait_for_inferior): Use
2197 nullify_last_target_wait_ptid.
2198 (get_last_target_status): Handle nullptr arguments.
2199 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
2200 (print_stop_event): Don't pass a ptid to get_last_target_status.
2201 (normal_stop): Don't pass a ptid to get_last_target_status.
2202 * infrun.h (get_last_target_status, set_last_target_status): Move
2203 comments here and update.
2204 (nullify_last_target_wait_ptid): Declare.
2205 * linux-fork.c (fork_load_infrun_state): Remove local extern
2206 declaration of nullify_last_target_wait_ptid.
2207 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
2208 to get_last_target_status.
2209
f3f8ece4
PA
22102020-01-10 Pedro Alves <palves@redhat.com>
2211
2212 * gdbthread.h (scoped_restore_current_thread)
2213 <dont_restore, restore, m_dont_restore>: Declare.
2214 * thread.c (thread_alive): Add assertion. Return bool.
2215 (switch_to_thread_if_alive): New.
2216 (prune_threads): Switch inferior/thread.
2217 (print_thread_info_1): Switch thread before calling target methods.
2218 (scoped_restore_current_thread::restore): New, factored out from
2219 ...
2220 (scoped_restore_current_thread::~scoped_restore_current_thread):
2221 ... this.
2222 (scoped_restore_current_thread::scoped_restore_current_thread):
2223 Add assertion.
2224 (thread_apply_all_command, thread_select): Use
2225 switch_to_thread_if_alive.
2226 * infrun.c (proceed, restart_threads, handle_signal_stop)
2227 (switch_back_to_stepped_thread): Switch current thread before
2228 calling target methods.
2229
db2d40f7
PA
22302020-01-10 Pedro Alves <palves@redhat.com>
2231
2232 * inferior.c (switch_to_inferior_no_thread): New function,
2233 factored out from ...
2234 (inferior_command): ... here.
2235 * inferior.h (switch_to_inferior_no_thread): Declare.
2236 * mi/mi-main.c (run_one_inferior): Use
2237 switch_to_inferior_no_thread.
2238
bd420a2d
PA
22392020-01-10 Pedro Alves <palves@redhat.com>
2240
2241 * infcmd.c (kill_command): Remove dead code.
2242
ddf5db90
PA
22432020-01-10 Pedro Alves <palves@redhat.com>
2244
2245 * remote.c (remote_target::mourn_inferior): No longer check
2246 whether the target is running.
2247
5018ce90
PA
22482020-01-10 Pedro Alves <palves@redhat.com>
2249
2250 * corelow.c (core_target::has_execution): Change parameter type to
2251 inferior pointer.
2252 * inferior.c (number_of_live_inferiors): Use
2253 inferior::has_execution instead of target_has_execution_1.
2254 * inferior.h (inferior::has_execution): New.
2255 * linux-thread-db.c (thread_db_target::update_thread_list): Use
2256 inferior::has_execution instead of target_has_execution_1.
2257 * process-stratum-target.c
2258 (process_stratum_target::has_execution): Change parameter type to
2259 inferior pointer. Check the inferior's PID instead of
2260 inferior_ptid.
2261 * process-stratum-target.h
2262 (process_stratum_target::has_execution): Change parameter type to
2263 inferior pointer.
2264 * record-full.c (record_full_core_target::has_execution): Change
2265 parameter type to inferior pointer.
2266 * target.c (target_has_execution_1): Change parameter type to
2267 inferior pointer.
2268 (target_has_execution_current): Adjust.
2269 * target.h (target_ops::has_execution): Change parameter type to
2270 inferior pointer.
2271 (target_has_execution_1): Change parameter type to inferior
2272 pointer. Change return type to bool.
2273 * tracefile.h (tracefile_target::has_execution): Change parameter
2274 type to inferior pointer.
2275
74375d18
PA
22762020-01-10 Pedro Alves <palves@redhat.com>
2277
2278 * exceptions.c (print_flush): Remove current_top_target() check.
2279
acdf84a6
PA
22802020-01-10 Pedro Alves <palves@redhat.com>
2281
2282 * remote.c (show_remote_exec_file): Show the current inferior's
2283 exec-file instead of the command variable's value.
2284
ec506636
PA
22852020-01-10 Pedro Alves <palves@redhat.com>
2286
2287 * record-full.c (record_full_resume_ptid): New global.
2288 (record_full_target::resume): Set it.
2289 (record_full_wait_1): Use record_full_resume_ptid instead of
2290 inferior_ptid.
2291
873657b9
PA
22922020-01-10 Pedro Alves <palves@redhat.com>
2293
2294 * gdbthread.h (scoped_restore_current_thread)
2295 <dont_restore, restore, m_dont_restore>: Declare.
2296 * thread.c (thread_alive): Add assertion. Return bool.
2297 (switch_to_thread_if_alive): New.
2298 (prune_threads): Switch inferior/thread.
2299 (print_thread_info_1): Switch thread before calling target methods.
2300 (scoped_restore_current_thread::restore): New, factored out from
2301 ...
2302 (scoped_restore_current_thread::~scoped_restore_current_thread):
2303 ... this.
2304 (scoped_restore_current_thread::scoped_restore_current_thread):
2305 Add assertion.
2306 (thread_apply_all_command, thread_select): Use
2307 switch_to_thread_if_alive.
2308
7f0ae84c
GB
23092020-01-10 George Barrett <bob@bob131.so>
2310
2311 * stap-probe.c (stap_modify_semaphore): Don't check for null
2312 semaphores.
2313 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
2314 for null semaphores.
2315
f5a7c406
AB
23162020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
2317
2318 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
2319 all source windows, and maintain horizontal scroll status while
2320 doing so.
2321
9ae6bf64
TT
23222020-01-09 Tom Tromey <tom@tromey.com>
2323
2324 PR tui/18932:
2325 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
2326 update_source_window, not print_source_lines.
2327
b2efe70c
AB
23282020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
2329
2330 * tui/tui.c (tui_enable): Register tui hooks after calling
2331 tui_display_main.
2332
5f23a082
CB
23332020-01-09 Christian Biesinger <cbiesinger@google.com>
2334
2335 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
2336
3061113b
SM
23372020-01-08 Simon Marchi <simon.marchi@efficios.com>
2338
2339 * thread.c (print_thread_info_1): Fix indentation.
2340
57d75002
CB
23412020-01-09 Christian Biesinger <cbiesinger@google.com>
2342
2343 * symtab.c (general_symbol_info::compute_and_set_names): Move the
2344 unique_xmalloc_ptr outside the if to always free the demangled name.
2345
6a053cb1
TT
23462020-01-08 Tom Tromey <tromey@adacore.com>
2347
2348 * xcoffread.c (enter_line_range, read_xcoff_symtab)
2349 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
2350 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
2351 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
2352 Remove.
2353 (section_offsets): New typedef.
2354 * symtab.c (fixup_section, get_msymbol_address): Update.
2355 * symmisc.c (dump_msymbols): Update.
2356 * symfile.h (relative_addr_info_to_section_offsets)
2357 (symfile_map_offsets_to_segments): Update.
2358 * symfile.c (build_section_addr_info_from_objfile)
2359 (init_objfile_sect_indices): Update.
2360 (struct place_section_arg): Change type of "offsets".
2361 (place_section): Update.
2362 (relative_addr_info_to_section_offsets): Change type of
2363 "section_offsets". Remove "num_sections" parameter.
2364 (default_symfile_offsets, syms_from_objfile_1)
2365 (set_objfile_default_section_offset): Update.
2366 (reread_symbols): No need to preserve section offsets by hand.
2367 (symfile_map_offsets_to_segments): Change type of "offsets".
2368 * stap-probe.c (relocate_address): Update.
2369 * stabsread.h (process_one_symbol): Update.
2370 * solib-target.c (struct lm_info_target) <offsets>: Change type.
2371 (solib_target_relocate_section_addresses): Update.
2372 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
2373 Update.
2374 * solib-frv.c (frv_relocate_main_executable): Update.
2375 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
2376 * solib-aix.c (solib_aix_get_section_offsets): Change return
2377 type.
2378 (solib_aix_solib_create_inferior_hook): Update.
2379 * remote.c (remote_target::get_offsets): Update.
2380 * psymtab.c (find_pc_sect_psymtab): Update.
2381 * psympriv.h (struct partial_symbol) <address, text_low,
2382 text_high>: Update.
2383 * objfiles.h (obj_section_offset): Update.
2384 (struct objfile) <section_offsets>: Change type.
2385 <num_sections>: Remove.
2386 (objfile_relocate): Update.
2387 * objfiles.c (entry_point_address_query): Update
2388 (relocate_one_symbol): Change type of "section_offsets".
2389 (objfile_relocate1, objfile_relocate1): Change type of
2390 "new_offsets".
2391 (objfile_rebase1): Update.
2392 * mipsread.c (mipscoff_symfile_read): Update.
2393 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
2394 parameter.
2395 * mdebugread.c (parse_symbol): Change type of "section_offsets".
2396 (parse_external, psymtab_to_symtab_1): Update.
2397 * machoread.c (macho_symfile_offsets): Update.
2398 * ia64-tdep.c (ia64_find_unwind_table): Update.
2399 * hppa-tdep.c (read_unwind_info): Update.
2400 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
2401 * dwarf2read.c (create_addrmap_from_index)
2402 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
2403 (process_psymtab_comp_unit_reader, add_partial_symbol)
2404 (add_partial_subprogram, process_full_comp_unit)
2405 (read_file_scope, read_func_scope, read_lexical_block_scope)
2406 (read_call_site_scope, dwarf2_rnglists_process)
2407 (dwarf2_ranges_process, dwarf2_ranges_read)
2408 (dwarf_decode_lines_1, var_decode_location, new_symbol)
2409 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
2410 Update.
2411 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
2412 Update.
2413 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
2414 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
2415 (process_one_symbol): Change type of "section_offsets".
2416 * ctfread.c (get_objfile_text_range): Update.
2417 * coffread.c (coff_symtab_read, enter_linenos)
2418 (process_coff_symbol): Update.
2419 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2420 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
2421
456e800a
TT
24222020-01-08 Tom Tromey <tromey@adacore.com>
2423
2424 * dwarf2read.c (parse_macro_definition): Use std::string.
2425 (parse_macro_definition): Likewise.
2426
6dfa2fc2
TT
24272020-01-08 Tom Tromey <tromey@adacore.com>
2428
2429 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
2430 (ATTR_ALLOC_CHUNK): Remove.
2431
421d1616
TT
24322020-01-08 Tom Tromey <tromey@adacore.com>
2433
2434 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
2435
43816ebc
TT
24362020-01-08 Tom Tromey <tromey@adacore.com>
2437
2438 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
2439 (dwarf2_compute_name, open_dwo_file): Likewise.
2440 (process_enumeration_scope): Use std::vector.
2441 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
2442 (partial_die_info::fixup, dwarf2_start_subfile)
2443 (guess_full_die_structure_name, dwarf2_name): Likewise.
2444 (determine_prefix): Update.
2445 (guess_full_die_structure_name): Make return type const.
2446 (partial_die_full_name): Return unique_xmalloc_ptr.
2447 (DW_FIELD_ALLOC_CHUNK): Remove.
2448
4212d509
TT
24492020-01-07 Tom Tromey <tromey@adacore.com>
2450
2451 PR build/24937:
2452 * stap-probe.c (class stap_static_probe_ops): Add constructor.
2453
06a6207a
JT
24542020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
2455
2456 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
2457
153d79c4
AB
24582020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
2459
2460 * stack.c (print_frame_info): Move disassemble_next_line code
2461 inside source_print block.
2462
66182876
EZ
24632020-01-06 Eli Zaretskii <eliz@gnu.org>
2464
2465 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
2466 gdb/signals.h, as we are now using native signal symbols.
2467
cbfa8581
SV
24682020-01-06 Shahab Vahedi <shahab@synopsys.com>
2469
2470 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
2471 overflow by an early check of content vs threshold.
2472 * tui/tui-source.c (tui_source_window::line_is_displayed):
2473 Likewise.
2474
3f602821
EZ
24752020-01-06 Eli Zaretskii <eliz@gnu.org>
2476
2477 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
2478
a08c904d
JT
24792020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
2480
2481 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
2482 export table if no section contains it's RVA.
2483
89a65580
EZ
24842020-01-06 Eli Zaretskii <eliz@gnu.org>
2485
2486 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
2487
8b7fcda2
HD
24882020-01-06 Hannes Domani <ssbssa@yahoo.de>
2489
2490 * source.c (print_source_lines_base): Set last_line_listed.
2491
a61b4f69
SV
24922020-01-06 Shahab Vahedi <shahab@synopsys.com>
2493
2494 * tui/tui-disasm.c: Remove trailing spaces.
2495
559e7e50
EZ
24962020-01-06 Eli Zaretskii <eliz@gnu.org>
2497 Pedro Alves <palves@redhat.com>
2498
2499 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
2500 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
2501 (windows_gdb_signal_to_target): New function, uses the above
2502 enumeration to convert GDB internal signal codes to equivalent
2503 Windows codes.
2504 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
2505 * windows-nat.c: Include "gdb_wait.h".
2506 (get_windows_debug_event): Extract the fatal exception from the
2507 exit status and convert to the equivalent Posix signal number.
2508 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
2509 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
2510 * gdbsupport/gdb_wait.c: New file, implements
2511 windows_status_to_termsig.
2512 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
2513 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
2514
f2302a34
AB
25152020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
2516
2517 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
2518 show_layout.
2519
6a5206eb
LM
25202020-01-05 Luis Machado <luis.machado@linaro.org>
2521
2522 * aarch64-linux-nat.c
2523 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
2524 and bfd_mach_aarch64.
2525
6ec1d75e
PW
25262020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2527
2528 * ui-file.c (stdio_file::can_emit_style_escape)
2529 (tee_file::can_emit_style_escape): Ensure style is used also on
2530 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
2531 to gdb_stdout.
2532 * main.c (set_gdb_data_directory): Use file style to output the
2533 warning that the given pathname is not a directory.
2534 * top.c (show_history_filename, gdb_safe_append_history)
2535 (show_gdb_datadir): Use file style.
2536
44f81a76
HD
25372020-01-03 Hannes Domani <ssbssa@yahoo.de>
2538
2539 * solib-target.c (struct lm_info_target):
2540 Change offsets to be a unique_xmalloc_ptr.
2541 (solib_target_relocate_section_addresses): Update.
2542
25057eb0
HD
25432020-01-03 Hannes Domani <ssbssa@yahoo.de>
2544
2545 * windows-nat.c (windows_clear_solib): Free so_list linked list.
2546
6e2118f5
BE
25472020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
2548
2549 * MAINTAINERS (Write After Approval): Add myself.
2550
8133c7dc
LM
25512020-01-02 Luis Machado <luis.machado@linaro.org>
2552
2553 * proc-service.c (get_ps_regcache): Remove reference to obsolete
2554 Cell BE architecture.
2555 * target.h (struct target_ops) <thread_architecture>: Likewise.
2556
48189bec
HD
25572020-01-01 Hannes Domani <ssbssa@yahoo.de>
2558
2559 * Makefile.in: Use INSTALL_PROGRAM_ENV.
2560
ead1063b
HD
25612020-01-01 Hannes Domani <ssbssa@yahoo.de>
2562
2563 * MAINTAINERS (Write After Approval): Add myself.
2564
e5d78223
JB
25652020-01-01 Joel Brobecker <brobecker@adacore.com>
2566
2567 * gdbarch.sh: Update copyright year range of generated files.
2568
b811d2c2
JB
25692020-01-01 Joel Brobecker <brobecker@adacore.com>
2570
2571 Update copyright year range in all GDB files.
2572
5f4def5c
JB
25732020-01-01 Joel Brobecker <brobecker@adacore.com>
2574
2575 * copyright.py: Convert to Python 3.
2576
51fd4002
JB
25772020-01-01 Joel Brobecker <brobecker@adacore.com>
2578
2579 * copyright.py: Adapt after move of gnulib directory from gdb
2580 directory to toplevel directory.
2581
5fb651f2
JB
25822020-01-01 Joel Brobecker <brobecker@adacore.com>
2583
2584 * copyright.py (main): Exit if run from the wrong directory.
2585
5dd8bf88
JB
25862020-01-01 Joel Brobecker <brobecker@adacore.com>
2587
2588 * top.c (print_gdb_version): Change copyright year to 2020.
2589
9f71dacb 25902020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 2591
9f71dacb 2592 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 2593
9f71dacb 2594For older changes see ChangeLog-2019.
c906108c
SS
2595\f
2596Local Variables:
2597mode: change-log
2598left-margin: 8
2599fill-column: 74
2600version-control: never
57da7796 2601coding: utf-8
c906108c 2602End:
This page took 3.549405 seconds and 4 git commands to generate.