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