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