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