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