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