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