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