]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Remove an include from machoread.c
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f6f1cebc
TT
12020-01-26 Tom Tromey <tom@tromey.com>
2
3 * machoread.c: Do not include psympriv.h.
4
e47e48f6
PW
52020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6
7 * NEWS: Mention the new option and the set/show commands.
8
a2fedca9
PW
92020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10
11 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13 (validate_exec_file): New variables, enums, functions.
14 (exec_file_locate_attach, print_section_info): Style the filenames.
15 (_initialize_exec): Install show_exec_file_mismatch_command and
16 set_exec_file_mismatch_command.
17 * gdbcore.h (validate_exec_file): Declare.
18 * infcmd.c (attach_command): Call validate_exec_file.
19 * remote.c ( remote_target::remote_add_inferior): Likewise.
20
7ffa82e1
AB
212020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
22
23 * frame.c (find_frame_sal): Move call to get_next_frame into more
24 inner scope.
25 * inline-frame.c (inilne_state) <inline_state>: Update argument
26 types.
27 (inilne_state) <skipped_symbol>: Rename to...
28 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
29 (skip_inline_frames): Build vector of skipped symbols and use this
30 to reate the inline_state.
31 (inline_skipped_symbol): Add a comment and some assertions, fetch
32 skipped symbol from the list.
33
3d92a3e3
AB
342020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
35
36 * buildsym.c (lte_is_less_than): Delete.
37 (buildsym_compunit::end_symtab_with_blockvector): Create local
38 lambda function to sort line table entries, and use
39 std::stable_sort instead of std::sort.
40 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
41 markers when looking for a previous line.
42
94a72be7
AB
432020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
44
45 * dwarf2read.c (lnp_state_machine::record_line): Include
46 end_sequence parameter in debug print out. Record the line if we
47 are at an end_sequence marker even if it's not the start of a
48 statement.
49 * symmisc.c (maintenance_print_one_line_table): Print end of
50 sequence markers with 'END' not '0'.
51
53af73bf
PA
522020-01-24 Pedro Alves <palves@redhat.com>
53
54 PR gdb/25410
55 * thread.c (scoped_restore_current_thread::restore): Use
56 switch_to_inferior_no_thread.
57 * exec.c: Include "progspace-and-thread.h".
58 (add_target_sections, remove_target_sections):
59 scoped_restore_current_pspace_and_thread instead of
60 scoped_restore_current_thread.
61 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
62 and aspace to the inferior before calling clone_program_space.
63 Remove stale comment.
64
3050c6f4
CB
652020-01-24 Christian Biesinger <cbiesinger@google.com>
66
67 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
68 (arm_netbsd_nat_target::fetch_registers): ...this.
69 (arm_nbsd_nat_target::store_registers): Rename to...
70 (arm_netbsd_nat_target::store_registers): ...this.
71
73685c7e
CB
722020-01-24 Christian Biesinger <cbiesinger@google.com>
73
74 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
75 register_t.
76
89203d40
CB
772020-01-24 Christian Biesinger <cbiesinger@google.com>
78
79 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
80 Update comment.
81 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
82 Likewise.
83 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
84 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
85 the correct replacement (iterate_over_regset_sections).
86 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
87 Update comment.
88
1ba1ac88
AB
892020-01-24 Graham Markall <graham.markall@embecosm.com>
90
91 PR gdb/23718
92 * gdb/python/python.c (execute_gdb_command): Call
93 async_enable_stdin in catch block.
94
f3364a6d
AB
952020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
96
97 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
98 SWITCH_THRU_ALL_UIS.
99
733d0a67
AB
1002020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
101
102 PR tui/9765
103 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
104 comment, add extra parameter, and update to store previous symbol
105 when appropriate.
106 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
107 add extra parameter.
108 * tui/tui-disasm.c (tui_disassemble): Update header comment,
109 remove unneeded parameter, add try/catch around gdb_print_insn,
110 rewrite to add items to asm_lines vector.
111 (tui_find_backward_disassembly_start_address): New function.
112 (tui_find_disassembly_address): Updated throughout.
113 (tui_disasm_window::set_contents): Update for changes to
114 tui_disassemble.
115 (tui_disasm_window::do_scroll_vertical): No need to adjust the
116 number of lines to scroll.
117
b3b3bada
SM
1182020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
119
120 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
121 (SECT_OFF_DATA): Likewise.
122 (SECT_OFF_RODATA): Likewise.
123 (SECT_OFF_TEXT): Likewise.
124 (SECT_OFF_BSS): Likewise.
125 (struct objfile) <text_section_offset, data_section_offset>: New
126 methods.
127 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
128 objfile::text_section_offset.
129 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
130 * coffread.c (coff_symtab_read): Likewise.
131 (enter_linenos): Likewise.
132 (process_coff_symbol): Likewise.
133 * ctfread.c (get_objfile_text_range): Likewise.
134 * dtrace-probe.c (dtrace_probe::get_relocated_address):
135 Use objfile::data_section_offset.
136 * dwarf2-frame.c (execute_cfa_program): Use
137 objfile::text_section_offset.
138 (dwarf2_frame_find_fde): Likewise.
139 * dwarf2read.c (create_addrmap_from_index): Likewise.
140 (create_addrmap_from_aranges): Likewise.
141 (dw2_find_pc_sect_compunit_symtab): Likewise.
142 (process_psymtab_comp_unit_reader): Likewise.
143 (add_partial_symbol): Likewise.
144 (add_partial_subprogram): Likewise.
145 (process_full_comp_unit): Likewise.
146 (read_file_scope): Likewise.
147 (read_func_scope): Likewise.
148 (read_lexical_block_scope): Likewise.
149 (read_call_site_scope): Likewise.
150 (dwarf2_rnglists_process): Likewise.
151 (dwarf2_ranges_process): Likewise.
152 (dwarf2_ranges_read): Likewise.
153 (dwarf_decode_lines_1): Likewise.
154 (new_symbol): Likewise.
155 (dwarf2_fetch_die_loc_sect_off): Likewise.
156 (dwarf2_per_cu_text_offset): Likewise.
157 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
158 * hppa-tdep.c (read_unwind_info): Likewise.
159 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
160 * psympriv.h (struct partial_symtab): Likewise.
161 * psymtab.c (find_pc_sect_psymtab): Likewise.
162 * solib-svr4.c (enable_break): Likewise.
163 * stap-probe.c (relocate_address): Use
164 objfile::data_section_offset.
165 * xcoffread.c (enter_line_range): Use
166 objfile::text_section_offset.
167 (read_xcoff_symtab): Likewise.
168
ab53f382
SM
1692020-01-23 Simon Marchi <simon.marchi@efficios.com>
170
171 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
172 declaration to narrower scopes.
173
e7eee665
SM
1742020-01-23 Simon Marchi <simon.marchi@efficios.com>
175
176 * darwin-nat.h (struct darwin_exception_msg, enum
177 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
178 Move up.
179 (class darwin_nat_target) <wait_1, check_new_threads,
180 decode_exception_message, decode_message, stop_inferior,
181 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
182 * darwin-nat.c (darwin_check_new_threads): Rename to...
183 (darwin_nat_target::check_new_threads): ... this.
184 (darwin_suspend_inferior_it): Remove.
185 (darwin_decode_exception_message): Rename to...
186 (darwin_nat_target::decode_exception_message): ... this.
187 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
188 (darwin_decode_message): Rename to...
189 (darwin_nat_target::decode_message): ... this.
190 (cancel_breakpoint): Rename to...
191 (darwin_nat_target::cancel_breakpoint): ... this.
192 (darwin_wait): Rename to...
193 (darwin_nat_target::wait_1): ... this. Use range-based for loop
194 instead of iterate_over_inferiors.
195 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
196 (darwin_stop_inferior): Rename to...
197 (darwin_nat_target::stop_inferior): ... this.
198 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
199 (darwin_init_thread_list): Rename to...
200 (darwin_nat_target::init_thread_list): ... this.
201 (darwin_ptrace_him): Rename to...
202 (darwin_nat_target::ptrace_him): ... this.
203 (darwin_nat_target::create_inferior): Pass lambda function to
204 fork_inferior.
205 (darwin_nat_target::detach): Call stop_inferior instead of
206 darwin_stop_inferior.
207 * fork-inferior.h (fork_inferior): Change init_trace_fun
208 parameter to gdb::function_view.
209 * fork-inferior.c (fork_inferior): Likewise.
210
c162ed3e
HD
2112020-01-23 Hannes Domani <ssbssa@yahoo.de>
212
213 * i386-cygwin-tdep.c (core_process_module_section): Update.
214 * windows-nat.c (struct lm_info_windows): Add text_offset.
215 (windows_xfer_shared_libraries): Update.
216 * windows-tdep.c (windows_xfer_shared_library):
217 Add text_offset_cached argument.
218 * windows-tdep.h (windows_xfer_shared_library): Update.
219
a1237872
SM
2202020-01-21 Simon Marchi <simon.marchi@efficios.com>
221
222 * gdbarch.sh: Add declaration for _initialize_gdbarch.
223
b3ee6dd9
SM
2242020-01-21 Simon Marchi <simon.marchi@efficios.com>
225
226 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
227 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
228 replace with range-based for.
229 (gdbsim_interrupt_inferior): Remove.
230 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
231 with a range-based for. Inline code from
232 gdbsim_interrupt_inferior.
233
f9fac3c8
SM
2342020-01-21 Simon Marchi <simon.marchi@efficios.com>
235
236 * infrun.c (proceed): Fix indentation.
237
f6474de9
TT
2382020-01-21 Tom Tromey <tromey@adacore.com>
239
240 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
241 * python/python.c (python_extension_ops): Update.
242 (gdbpy_colorize): New function.
243 * python/lib/gdb/__init__.py (colorize): New function.
244 * extension.h (ext_lang_colorize): Declare.
245 * extension.c (ext_lang_colorize): New function.
246 * extension-priv.h (struct extension_language_ops) <colorize>: New
247 member.
248 * cli/cli-style.c (_initialize_cli_style): Update help text.
249
f0c702d4
LM
2502020-01-21 Luis Machado <luis.machado@linaro.org>
251
252 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
253 <cond>: Change type to bool.
254 (aarch64_displaced_step_b_cond): Update cond to use bool type.
255 (aarch64_displaced_step_cb): Likewise.
256 (aarch64_displaced_step_tb): Likewise.
257
1ab139e5
LM
2582020-01-21 Luis Machado <luis.machado@linaro.org>
259
260 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
261 output.
262
0c271889
LM
2632020-01-21 Luis Machado <luis.machado@linaro.org>
264
265 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
266 <pc_adjust>: Adjust the documentation.
267 (aarch64_displaced_step_fixup): Check if PC really moved before
268 adjusting it.
269
4d89c1c7
TT
2702020-01-19 Tom Tromey <tom@tromey.com>
271
272 * disasm.c (~gdb_disassembler): New destructor.
273 (gdb_buffered_insn_length): Call disassemble_free_target.
274 * disasm.h (class gdb_disassembler): Declare destructor. Use
275 DISABLE_COPY_AND_ASSIGN.
276
c0ab21c2
TT
2772020-01-19 Tom Tromey <tom@tromey.com>
278
279 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
280 (die_reader_func_ftype): Remove.
281 (cutu_reader): New class.
282 (dw2_get_file_names_reader): Remove "data" parameter.
283 (dw2_get_file_names): Use cutu_reader.
284 (create_debug_type_hash_table): Update.
285 (read_cutu_die_from_dwo): Update comment.
286 (lookup_dwo_unit): Add dwo_name parameter.
287 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
288 die_reader_func_ftype and data parameters.
289 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
290 Remove die_reader_func_ftype and data parameters.
291 (~cutu_reader): New; from init_cutu_and_read_dies.
292 (cutu_reader::cutu_reader): Rename from
293 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
294 and data parameters.
295 (init_cutu_and_read_dies_simple): Remove.
296 (struct process_psymtab_comp_unit_data): Remove.
297 (process_psymtab_comp_unit_reader): Remove data parameter; add
298 want_partial_unit and pretend_language parameters.
299 (process_psymtab_comp_unit): Use cutu_reader.
300 (build_type_psymtabs_reader): Remove data parameter.
301 (build_type_psymtabs_1): Use cutu_reader.
302 (process_skeletonless_type_unit): Likewise.
303 (load_partial_comp_unit_reader): Remove.
304 (load_partial_comp_unit): Use cutu_reader.
305 (load_full_comp_unit_reader): Remove.
306 (load_full_comp_unit): Use cutu_reader.
307 (struct create_dwo_cu_data): Remove.
308 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
309 dwo_unit parameters.
310 (create_cus_hash_table): Use cutu_reader.
311 (struct dwarf2_read_addr_index_data): Remove.
312 (dwarf2_read_addr_index_reader): Remove.
313 (dwarf2_read_addr_index): Use cutu_reader.
314 (read_signatured_type_reader): Remove.
315 (read_signatured_type): Use cutu_reader.
316
45bbae5c
TT
3172020-01-19 Tom Tromey <tom@tromey.com>
318
319 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
320 * tui/tui-wingeneral.h (class tui_suppress_output): New.
321 (tui_wrefresh): Declare.
322 * tui/tui-wingeneral.c (suppress_output): New global.
323 (tui_suppress_output, ~tui_suppress_output): New constructor and
324 destructor.
325 (tui_wrefresh): New function.
326 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
327 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
328 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
329 method.
330 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
331 tui_wrefresh.
332 (tui_data_window::no_refresh): New method.
333 (tui_data_item_window::refresh_window): Call tui_wrefresh.
334 (tui_reg_command): Use tui_suppress_output
335 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
336 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
337 method.
338 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
339
4f13c1c0
TT
3402020-01-19 Tom Tromey <tom@tromey.com>
341
342 * tui/tui-winsource.c (tui_update_source_windows_with_line):
343 Handle case where symtab is null.
344
fa47e446
SM
3452020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
346
347 * linux-fork.c (one_fork_p): Simplify.
348
26f42329
SM
3492020-01-17 Simon Marchi <simon.marchi@efficios.com>
350
351 * top.c (struct qt_args): Remove.
352 (kill_or_detach): Change return type to void, replace `void *`
353 parameter with a proper one.
354 (print_inferior_quit_action): Likewise.
355 (quit_confirm): Use range-based for loop to iterate over inferiors.
356 (quit_force): Likewise.
357
a9ac81b1
SM
3582020-01-17 Simon Marchi <simon.marchi@efficios.com>
359
360 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
361 `void *` parameter with proper parameters.
362 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
363 (print_one_inferior): Change return type to void, replace `void *`
364 parameter with proper parameters.
365 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
366 inferiors.
367 (get_other_inferior): Remove.
368 (mi_cmd_remove_inferior): Use range-based loop to iterate over
369 inferiors.
370
788eca49
SM
3712020-01-17 Simon Marchi <simon.marchi@efficios.com>
372
373 * mi/mi-interp.c (report_initial_inferior): Remove.
374 (mi_interp::init): Use range-based for to iterate over inferiors.
375
d9bc85b6
SM
3762020-01-17 Simon Marchi <simon.marchi@efficios.com>
377
378 * python/py-inferior.c (build_inferior_list): Remove.
379 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
380
40c94099
CB
3812020-01-16 Christian Biesinger <cbiesinger@google.com>
382
383 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
384 (btrace_stitch_trace): Likewise.
385 * charset.c (intermediate_encoding): Likewise (vaild).
386 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
387 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
388 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
389
e0cdfe3c
HD
3902020-01-16 Hannes Domani <ssbssa@yahoo.de>
391
392 * windows-tdep.c (windows_get_tlb_type):
393 Add rtl_user_process_parameters type.
394
790f1718
PA
3952020-01-16 Pedro Alves <palves@redhat.com>
396 Norbert Lange <nolange79@gmail.com>
397
398 PR build/24805
399 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
400 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
401 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
402 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
403 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
404 (ps_plog): Redeclare exported functions with default visibility.
405
3112ed97
NA
4062020-01-16 Nitika Achra <Nitika.Achra@amd.com>
407
408 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
409 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
410
8dc3273e
SM
4112020-01-15 Simon Marchi <simon.marchi@efficios.com>
412
413 * infcmd.c (post_create_inferior): Use get_thread_regcache
414 instead of get_current_regcache.
415
ff47f4f0
TT
4162020-01-14 Tom Tromey <tom@tromey.com>
417
418 PR symtab/12535:
419 * python/python.c (gdbpy_decode_line): Treat empty string the same
420 as no argument.
421
975f45b7
TT
4222020-01-14 Tom Tromey <tom@tromey.com>
423
424 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
425
25e57356
TT
4262020-01-14 Tom Tromey <tom@tromey.com>
427
428 * nat/linux-btrace.c: Don't include <config.h>.
429 * nat/linux-ptrace.c: Don't include <config.h>.
430 * nat/x86-linux-dregs.c: Don't include <config.h>.
431
05ea2a05
TT
4322020-01-14 Tom Tromey <tom@tromey.com>
433
434 * configure: Rebuild.
435 * configure.ac: Move many checks to ../gdbsupport/common.m4.
436
01027315
TT
4372020-01-14 Tom Tromey <tom@tromey.com>
438
439 * nat/x86-linux-dregs.c: Include configh.h.
440 * nat/linux-ptrace.c: Include configh.h.
441 * nat/linux-btrace.c: Include configh.h.
442 * defs.h: Include config.h, bfd.h.
443 * configure.ac: Don't source common.host.
444 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
445 * configure: Rebuild.
446 * acinclude.m4: Update path.
447 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
448 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
449 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
450 (CLIBS): Add LIBSUPPORT.
451 (CDEPS): Likewise.
452 (COMMON_SFILES): Remove gdbsupport files.
453 (HFILES_NO_SRCDIR): Likewise.
454 (stamp-version): Update path to create-version.sh.
455 (ALLDEPFILES): Remove gdbsupport files.
456
b2ceabe8
TT
4572020-01-14 Tom Tromey <tom@tromey.com>
458
459 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
460 USE_WIN32API when needed.
461 * configure.ac (USE_WIN32API): Don't define.
462 (WIN32LIBS): Use WIN32APILIBS.
463 * configure: Rebuild.
464
25c51f71
TT
4652020-01-14 Tom Tromey <tom@tromey.com>
466
467 * configure: Rebuild.
468 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
469
717c684d
BE
4702020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
471
472 * skip.c (skip_function_command): Make skip w/o arguments use the
473 name of the inlined function if pc is inside any inlined function.
474
7da6a5b9
LM
4752020-01-14 Luis Machado <luis.machado@linaro.org>
476
477 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
478 * infrun.c (resume_1): Likewise.
479 (handle_inferior_event): Remove stale comment.
480 * linux-nat.c (linux_nat_target::resume): Update comments.
481 (save_stop_reason): Likewise.
482 (linux_nat_filter_event): Likewise.
483 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
484
44e4c775
AB
4852020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
486
487 * elfread.c (record_minimal_symbol): Set section index to 0 for
488 non-allocatable sections.
489
18a8505e
AT
490
4912020-01-13 Ali Tamur <tamur@google.com>
492
493 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
494 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
495 to gdb::optional. Update comments.
496 (dwo_file): Update comments.
497 (read_attribute): Update API to take an additional out parameter,
498 need_reprocess. This is used to mark attributes that need other
499 attributes (e.g. str_offsets_base) for correct computation which may not
500 have been read yet.
501 (read_attribute_reprocess): New function declaration.
502 (read_addr_index): Likewise.
503 (read_dwo_str_index): Likewise.
504 (read_stub_str_index): Likewise.
505 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
506 (lookup_addr_base): New function definition.
507 (lookup_ranges_base): Likewise.
508 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
509 lookup_ranges_base.
510 (init_cutu_and_read_dies): Update comments.
511 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
512 unit. This is used to inherit parent's str_offsets_base and addr_base.
513 Update comments.
514 (init_cutu_and_read_dies_simple): Reflect API changes.
515 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
516 (create_cus_hash_table): Change API to take parent compile unit.
517 Reflect API changes.
518 (open_and_init_dwo_file): Reflect API changes.
519 (dwarf2_get_pc_bounds): Update comments.
520 (dwarf2_record_block_ranges): Likewise.
521 (read_full_die_1): Change implementation to reprocess attributes that
522 need str_offsets_base and addr_base.
523 (partial_die_info::read): Likewise.
524 (read_attribute_reprocess): New function definition.
525 (read_attribute_value): Change API to take an additional out parameter,
526 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
527 when a non-dwo compile unit has index based attributes.
528 (read_attribute): Reflect API changes.
529 (read_addr_index_1): Reflect API changes. Update comments.
530 (dwarf2_read_addr_index_data): Reflect API changes.
531 (dwarf2_read_addr_index): Likewise.
532 (read_str_index): Change API and implementation. This becomes a helper
533 to be used by the new string index related methods. Update error
534 message and comments.
535 (read_dwo_str_index): New function definition.
536 (read_stub_str_index): Likewise.
537 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
538 * symfile.h (dwarf2_debug_sections): Likewise.
539 * xcoffread.c (dwarf2_debug_sections): Likewise.
540
0cac9354
SM
5412020-01-13 Simon Marchi <simon.marchi@efficios.com>
542
543 * gdbcore.h (struct core_fns) <core_read_registers>: Change
544 core_reg_sect type to gdb_byte *.
545 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
546 * cris-tdep.c (fetch_core_registers): Likewise.
547 * corelow.c (core_target::get_core_register_section): Change
548 type of `contents` to gdb::byte_vector.
549
9a6d629c
AB
5502020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
551
552 * tui/tui-wingeneral.c (box_win): Position the title in the center
553 of the border.
554
d8b2f9e3
SM
5552020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
556
557 * corelow.c (core_target::get_core_register_section): Use
558 std::vector instead of alloca.
559
bb564c58
SM
5602020-01-13 Simon Marchi <simon.marchi@efficios.com>
561
562 * warning.m4: Add -Wmissing-declarations to build_warnings.
563 * configure: Re-generate.
564
6b366111
SM
5652020-01-13 Simon Marchi <simon.marchi@efficios.com>
566
567 * python/python.c (init__gdb_module): Add declaration.
568
6c265988
SM
5692020-01-13 Simon Marchi <simon.marchi@efficios.com>
570
571 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
572 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
573 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
574 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
575 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
576 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
577 * ada-exp.y (_initialize_ada_exp): Add declaration.
578 * ada-lang.c (_initialize_ada_language): Add declaration.
579 * ada-tasks.c (_initialize_tasks): Add declaration.
580 * agent.c (_initialize_agent): Add declaration.
581 * aix-thread.c (_initialize_aix_thread): Add declaration.
582 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
583 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
584 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
585 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
586 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
587 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
588 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
589 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
590 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
591 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
592 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
593 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
594 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
595 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
596 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
597 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
598 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
599 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
600 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
601 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
602 * annotate.c (_initialize_annotate): Add declaration.
603 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
604 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
605 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
606 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
607 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
608 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
609 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
610 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
611 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
612 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
613 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
614 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
615 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
616 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
617 * auto-load.c (_initialize_auto_load): Add declaration.
618 * auxv.c (_initialize_auxv): Add declaration.
619 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
620 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
621 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
622 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
623 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
624 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
625 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
626 * breakpoint.c (_initialize_breakpoint): Add declaration.
627 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
628 * btrace.c (_initialize_btrace): Add declaration.
629 * charset.c (_initialize_charset): Add declaration.
630 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
631 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
632 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
633 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
634 * cli/cli-script.c (_initialize_cli_script): Add declaration.
635 * cli/cli-style.c (_initialize_cli_style): Add declaration.
636 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
637 * coffread.c (_initialize_coffread): Add declaration.
638 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
639 * compile/compile.c (_initialize_compile): Add declaration.
640 * complaints.c (_initialize_complaints): Add declaration.
641 * completer.c (_initialize_completer): Add declaration.
642 * copying.c (_initialize_copying): Add declaration.
643 * corefile.c (_initialize_core): Add declaration.
644 * corelow.c (_initialize_corelow): Add declaration.
645 * cp-abi.c (_initialize_cp_abi): Add declaration.
646 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
647 * cp-support.c (_initialize_cp_support): Add declaration.
648 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
649 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
650 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
651 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
652 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
653 * ctfread.c (_initialize_ctfread): Add declaration.
654 * d-lang.c (_initialize_d_language): Add declaration.
655 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
656 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
657 * dbxread.c (_initialize_dbxread): Add declaration.
658 * dcache.c (_initialize_dcache): Add declaration.
659 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
660 * disasm.c (_initialize_disasm): Add declaration.
661 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
662 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
663 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
664 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
665 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
666 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
667 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
668 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
669 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
670 * elfread.c (_initialize_elfread): Add declaration.
671 * exec.c (_initialize_exec): Add declaration.
672 * extension.c (_initialize_extension): Add declaration.
673 * f-lang.c (_initialize_f_language): Add declaration.
674 * f-valprint.c (_initialize_f_valprint): Add declaration.
675 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
676 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
677 * filesystem.c (_initialize_filesystem): Add declaration.
678 * findcmd.c (_initialize_mem_search): Add declaration.
679 * findvar.c (_initialize_findvar): Add declaration.
680 * fork-child.c (_initialize_fork_child): Add declaration.
681 * frame-base.c (_initialize_frame_base): Add declaration.
682 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
683 * frame.c (_initialize_frame): Add declaration.
684 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
685 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
686 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
687 * gcore.c (_initialize_gcore): Add declaration.
688 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
689 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
690 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
691 * gdbarch.c (_initialize_gdbarch): Add declaration.
692 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
693 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
694 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
695 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
696 * go-lang.c (_initialize_go_language): Add declaration.
697 * go32-nat.c (_initialize_go32_nat): Add declaration.
698 * guile/guile.c (_initialize_guile): Add declaration.
699 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
700 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
701 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
702 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
703 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
704 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
705 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
706 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
707 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
708 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
709 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
710 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
711 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
712 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
713 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
714 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
715 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
716 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
717 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
718 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
719 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
720 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
721 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
722 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
723 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
724 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
725 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
726 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
727 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
728 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
729 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
730 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
731 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
732 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
733 * infcall.c (_initialize_infcall): Add declaration.
734 * infcmd.c (_initialize_infcmd): Add declaration.
735 * inflow.c (_initialize_inflow): Add declaration.
736 * infrun.c (_initialize_infrun): Add declaration.
737 * interps.c (_initialize_interpreter): Add declaration.
738 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
739 * jit.c (_initialize_jit): Add declaration.
740 * language.c (_initialize_language): Add declaration.
741 * linux-fork.c (_initialize_linux_fork): Add declaration.
742 * linux-nat.c (_initialize_linux_nat): Add declaration.
743 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
744 * linux-thread-db.c (_initialize_thread_db): Add declaration.
745 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
746 * m2-lang.c (_initialize_m2_language): Add declaration.
747 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
748 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
749 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
750 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
751 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
752 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
753 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
754 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
755 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
756 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
757 * machoread.c (_initialize_machoread): Add declaration.
758 * macrocmd.c (_initialize_macrocmd): Add declaration.
759 * macroscope.c (_initialize_macroscope): Add declaration.
760 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
761 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
762 * maint.c (_initialize_maint_cmds): Add declaration.
763 * mdebugread.c (_initialize_mdebugread): Add declaration.
764 * memattr.c (_initialize_mem): Add declaration.
765 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
766 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
767 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
768 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
769 * mi/mi-main.c (_initialize_mi_main): Add declaration.
770 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
771 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
772 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
773 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
774 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
775 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
776 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
777 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
778 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
779 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
780 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
781 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
782 * mipsread.c (_initialize_mipsread): Add declaration.
783 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
784 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
785 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
786 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
787 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
788 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
789 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
790 * nto-procfs.c (_initialize_procfs): Add declaration.
791 * objc-lang.c (_initialize_objc_language): Add declaration.
792 * observable.c (_initialize_observer): Add declaration.
793 * opencl-lang.c (_initialize_opencl_language): Add declaration.
794 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
795 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
796 * osabi.c (_initialize_gdb_osabi): Add declaration.
797 * osdata.c (_initialize_osdata): Add declaration.
798 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
799 * parse.c (_initialize_parse): Add declaration.
800 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
801 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
802 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
803 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
804 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
805 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
806 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
807 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
808 * printcmd.c (_initialize_printcmd): Add declaration.
809 * probe.c (_initialize_probe): Add declaration.
810 * proc-api.c (_initialize_proc_api): Add declaration.
811 * proc-events.c (_initialize_proc_events): Add declaration.
812 * proc-service.c (_initialize_proc_service): Add declaration.
813 * procfs.c (_initialize_procfs): Add declaration.
814 * producer.c (_initialize_producer): Add declaration.
815 * psymtab.c (_initialize_psymtab): Add declaration.
816 * python/python.c (_initialize_python): Add declaration.
817 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
818 * record-btrace.c (_initialize_record_btrace): Add declaration.
819 * record-full.c (_initialize_record_full): Add declaration.
820 * record.c (_initialize_record): Add declaration.
821 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
822 * regcache.c (_initialize_regcache): Add declaration.
823 * reggroups.c (_initialize_reggroup): Add declaration.
824 * remote-notif.c (_initialize_notif): Add declaration.
825 * remote-sim.c (_initialize_remote_sim): Add declaration.
826 * remote.c (_initialize_remote): Add declaration.
827 * reverse.c (_initialize_reverse): Add declaration.
828 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
829 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
830 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
831 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
832 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
833 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
834 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
835 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
836 Add declaration.
837 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
838 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
839 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
840 * rust-exp.y (_initialize_rust_exp): Add declaration.
841 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
842 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
843 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
844 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
845 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
846 * score-tdep.c (_initialize_score_tdep): Add declaration.
847 * ser-go32.c (_initialize_ser_dos): Add declaration.
848 * ser-mingw.c (_initialize_ser_windows): Add declaration.
849 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
850 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
851 * ser-uds.c (_initialize_ser_socket): Add declaration.
852 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
853 * serial.c (_initialize_serial): Add declaration.
854 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
855 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
856 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
857 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
858 * skip.c (_initialize_step_skip): Add declaration.
859 * sol-thread.c (_initialize_sol_thread): Add declaration.
860 * solib-aix.c (_initialize_solib_aix): Add declaration.
861 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
862 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
863 * solib-frv.c (_initialize_frv_solib): Add declaration.
864 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
865 * solib-target.c (_initialize_solib_target): Add declaration.
866 * solib.c (_initialize_solib): Add declaration.
867 * source-cache.c (_initialize_source_cache): Add declaration.
868 * source.c (_initialize_source): Add declaration.
869 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
870 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
871 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
872 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
873 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
874 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
875 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
876 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
877 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
878 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
879 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
880 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
881 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
882 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
883 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
884 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
885 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
886 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
887 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
888 * stabsread.c (_initialize_stabsread): Add declaration.
889 * stack.c (_initialize_stack): Add declaration.
890 * stap-probe.c (_initialize_stap_probe): Add declaration.
891 * std-regs.c (_initialize_frame_reg): Add declaration.
892 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
893 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
894 * symfile.c (_initialize_symfile): Add declaration.
895 * symmisc.c (_initialize_symmisc): Add declaration.
896 * symtab.c (_initialize_symtab): Add declaration.
897 * target.c (_initialize_target): Add declaration.
898 * target-connection.c (_initialize_target_connection): Add
899 declaration.
900 * target-dcache.c (_initialize_target_dcache): Add declaration.
901 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
902 * thread.c (_initialize_thread): Add declaration.
903 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
904 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
905 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
906 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
907 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
908 * tracectf.c (_initialize_ctf): Add declaration.
909 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
910 * tracefile.c (_initialize_tracefile): Add declaration.
911 * tracepoint.c (_initialize_tracepoint): Add declaration.
912 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
913 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
914 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
915 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
916 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
917 * tui/tui-win.c (_initialize_tui_win): Add declaration.
918 * tui/tui.c (_initialize_tui): Add declaration.
919 * typeprint.c (_initialize_typeprint): Add declaration.
920 * ui-style.c (_initialize_ui_style): Add declaration.
921 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
922 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
923 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
924 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
925 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
926 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
927 * unittests/filtered_iterator-selftests.c
928 (_initialize_filtered_iterator_selftests): Add declaration.
929 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
930 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
931 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
932 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
933 * unittests/main-thread-selftests.c
934 (_initialize_main_thread_selftests): Add declaration.
935 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
936 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
937 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
938 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
939 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
940 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
941 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
942 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
943 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
944 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
945 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
946 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
947 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
948 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
949 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
950 declaration.
951 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
952 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
953 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
954 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
955 * user-regs.c (_initialize_user_regs): Add declaration.
956 * utils.c (_initialize_utils): Add declaration.
957 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
958 * valops.c (_initialize_valops): Add declaration.
959 * valprint.c (_initialize_valprint): Add declaration.
960 * value.c (_initialize_values): Add declaration.
961 * varobj.c (_initialize_varobj): Add declaration.
962 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
963 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
964 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
965 * windows-nat.c (_initialize_windows_nat): Add declaration.
966 (_initialize_check_for_gdb_ini): Add declaration.
967 (_initialize_loadable): Add declaration.
968 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
969 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
970 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
971 * xcoffread.c (_initialize_xcoffread): Add declaration.
972 * xml-support.c (_initialize_xml_support): Add declaration.
973 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
974 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
975 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
976 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
977
e2de1eec
SM
9782020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
979
980 * regformats/regdat.sh: Generate declaration for init function.
981
e0037b4c
SM
9822020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
983
984 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
985 up.
986 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
987 close_one_inferior>: New methods.
988 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
989 pass down target to find_inferior_pid.
990 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
991 Pass down target to find_inferior_ptid.
992 (gdbsim_target::create_inferior): Pass down target to
993 add_thread_silent.
994 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
995 target down to find_inferior_ptid and switch_to_thread.
996 (gdbsim_target::close): Update to call close_one_inferior.
997 (struct resume_data): Remove.
998 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
999 directly, rather than through a void pointer.
1000 (gdbsim_target::resume): Update to call resume_one_inferior.
1001
58920b5b
SM
10022020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1003
1004 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
1005
4ec89149
PA
10062020-01-12 Pedro Alves <palves@redhat.com>
1007
1008 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
1009 directly for the current inferior instead of
1010 discard_all_inferiors.
1011 (discard_all_inferiors): Delete.
1012
7c392d1d
TT
10132020-01-11 Tom Tromey <tom@tromey.com>
1014
1015 * tui/tui-wingeneral.c (box_win): Check cli_styling.
1016 * tui/tui-winsource.c (tui_source_window_base::refill): Use
1017 deprecated_safe_get_selected_frame.
1018
d9ebdab7
TBA
10192020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1020
1021 * inferior.c (print_inferior): Switch inferior before printing it.
1022
f3c469b9
PA
10232020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
1024 Pedro Alves <palves@redhat.com>
1025
1026 * progspace-and-thread.c (switch_to_program_space_and_thread):
1027 Assert there's an inferior for PSPACE. Use
1028 switch_to_inferior_no_thread to switch the inferior too.
1029 * progspace.c (program_space::~program_space): Call
1030 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
1031 (program_space::free_all_objfiles): Don't call clear_symtab_users
1032 here.
1033 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
1034
65c574f6
PA
10352020-01-10 Pedro Alves <palves@redhat.com>
1036
1037 * NEWS: Mention multi-target debugging, "info connections", and
1038 "add-inferior -no-connection".
1039
2f4fcf00
PA
10402020-01-10 Pedro Alves <palves@redhat.com>
1041
1042 * infrun.c: Include "target-connection.h".
1043 (check_multi_target_resumption): New.
1044 (proceed): Call it.
1045 * target-connection.c (make_target_connection_string): Make
1046 extern.
1047 * target-connection.h (make_target_connection_string): Declare.
1048
121b3efd
PA
10492020-01-10 Pedro Alves <palves@redhat.com>
1050
1051 * Makefile.in (COMMON_SFILES): Add target-connection.c.
1052 * inferior.c (uiout_field_connection): New function.
1053 (print_inferior): Add new "connection-id" column.
1054 (add_inferior_command): Show connection number/string of added
1055 inferior.
1056 * process-stratum-target.h
1057 (process_stratum_target::connection_string): New virtual method.
1058 (process_stratum_target::connection_number): New field.
1059 * remote.c (remote_target::connection_string): New override.
1060 * target-connection.c: New file.
1061 * target-connection.h: New file.
1062 * target.c (decref_target): Remove process_stratum targets from
1063 the connection list.
1064 (target_stack::push): Add process_stratum targets to the
1065 connection list.
1066
4f837581
PA
10672020-01-10 Pedro Alves <palves@redhat.com>
1068
1069 Revert:
1070 2016-04-12 Pedro Alves <palves@redhat.com>
1071 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
1072 Remove references to name.
1073 * serial.h (struct serial) <name>: Delete.
1074
f4ec508e
PA
10752020-01-10 Pedro Alves <palves@redhat.com>
1076
1077 * gdbarch-selftests.c (register_to_value_test): Remove "target
1078 already pushed" check.
1079
5b6d1e4f
PA
10802020-01-10 Pedro Alves <palves@redhat.com>
1081 John Baldwin <jhb@FreeBSD.org>
1082
1083 * aarch64-linux-nat.c
1084 (aarch64_linux_nat_target::thread_architecture): Adjust.
1085 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
1086 (task_command_1): Likewise.
1087 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
1088 (aix_thread_target::wait, aix_thread_target::fetch_registers)
1089 (aix_thread_target::store_registers)
1090 (aix_thread_target::thread_alive): Adjust.
1091 * amd64-fbsd-tdep.c: Include "inferior.h".
1092 (amd64fbsd_get_thread_local_address): Pass down target.
1093 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
1094 thread's gdbarch instead of target_gdbarch.
1095 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
1096 get_last_target_status.
1097 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
1098 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
1099 inferiors.
1100 (update_inserted_breakpoint_locations): Skip if inferiors with no
1101 execution.
1102 (update_global_location_list): When handling moribund locations,
1103 find representative inferior for location's pspace, and use thread
1104 count of its process_stratum target.
1105 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
1106 * bsd-uthread.c (bsd_uthread_target::wait): Use
1107 as_process_stratum_target and adjust thread_change_ptid and
1108 add_thread calls.
1109 (bsd_uthread_target::update_thread_list): Use
1110 as_process_stratum_target and adjust find_thread_ptid,
1111 thread_change_ptid and add_thread calls.
1112 * btrace.c (maint_btrace_packet_history_cmd): Adjust
1113 find_thread_ptid call.
1114 * corelow.c (add_to_thread_list): Adjust add_thread call.
1115 (core_target_open): Adjust add_thread_silent and thread_count
1116 calls.
1117 (core_target::pid_to_str): Adjust find_inferior_ptid call.
1118 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
1119 * event-top.c (async_disconnect): Pop targets from all inferiors.
1120 * exec.c (add_target_sections): Push exec target on all inferiors
1121 sharing the program space.
1122 (remove_target_sections): Remove the exec target from all
1123 inferiors sharing the program space.
1124 (exec_on_vfork): New.
1125 * exec.h (exec_on_vfork): Declare.
1126 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
1127 Pass it down.
1128 (fbsd_nat_target::update_thread_list): Adjust.
1129 (fbsd_nat_target::resume): Adjust.
1130 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
1131 down.
1132 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
1133 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
1134 get_thread_arch_regcache call.
1135 * fork-child.c (gdb_startup_inferior): Pass target down to
1136 startup_inferior and set_executing.
1137 * gdbthread.h (struct process_stratum_target): Forward declare.
1138 (add_thread, add_thread_silent, add_thread_with_info)
1139 (in_thread_list): Add process_stratum_target parameter.
1140 (find_thread_ptid(inferior*, ptid_t)): New overload.
1141 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
1142 parameter.
1143 (all_threads()): Delete overload.
1144 (all_threads, all_non_exited_threads): Add process_stratum_target
1145 parameter.
1146 (all_threads_safe): Use brace initialization.
1147 (thread_count): Add process_stratum_target parameter.
1148 (set_resumed, set_running, set_stop_requested, set_executing)
1149 (threads_are_executing, finish_thread_state): Add
1150 process_stratum_target parameter.
1151 (switch_to_thread): Use is_current_thread.
1152 * i386-fbsd-tdep.c: Include "inferior.h".
1153 (i386fbsd_get_thread_local_address): Pass down target.
1154 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
1155 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
1156 have_inferiors check.
1157 * inf-ptrace.c (inf_ptrace_target::create_inferior)
1158 (inf_ptrace_target::attach): Adjust.
1159 * infcall.c (run_inferior_call): Adjust.
1160 * infcmd.c (run_command_1): Pass target to
1161 scoped_finish_thread_state.
1162 (proceed_thread_callback): Skip inferiors with no execution.
1163 (continue_command): Rename 'all_threads' local to avoid hiding
1164 'all_threads' function. Adjust get_last_target_status call.
1165 (prepare_one_step): Adjust set_running call.
1166 (signal_command): Use user_visible_resume_target. Compare thread
1167 pointers instead of inferior_ptid.
1168 (info_program_command): Adjust to pass down target.
1169 (attach_command): Mark target's 'thread_executing' flag.
1170 (stop_current_target_threads_ns): New, factored out from ...
1171 (interrupt_target_1): ... this. Switch inferior before making
1172 target calls.
1173 * inferior-iter.h
1174 (struct all_inferiors_iterator, struct all_inferiors_range)
1175 (struct all_inferiors_safe_range)
1176 (struct all_non_exited_inferiors_range): Filter on
1177 process_stratum_target too. Remove explicit.
1178 * inferior.c (inferior::inferior): Push dummy target on target
1179 stack.
1180 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
1181 Add process_stratum_target parameter, and pass it down.
1182 (have_live_inferiors): Adjust.
1183 (switch_to_inferior_and_push_target): New.
1184 (add_inferior_command, clone_inferior_command): Handle
1185 "-no-connection" parameter. Use
1186 switch_to_inferior_and_push_target.
1187 (_initialize_inferior): Mention "-no-connection" option in
1188 the help of "add-inferior" and "clone-inferior" commands.
1189 * inferior.h: Include "process-stratum-target.h".
1190 (interrupt_target_1): Use bool.
1191 (struct inferior) <push_target, unpush_target, target_is_pushed,
1192 find_target_beneath, top_target, process_target, target_at,
1193 m_stack>: New.
1194 (discard_all_inferiors): Delete.
1195 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
1196 (all_inferiors, all_non_exited_inferiors): Add
1197 process_stratum_target parameter.
1198 * infrun.c: Include "gdb_select.h" and <unordered_map>.
1199 (target_last_proc_target): New global.
1200 (follow_fork_inferior): Push target on new inferior. Pass target
1201 to add_thread_silent. Call exec_on_vfork. Handle target's
1202 reference count.
1203 (follow_fork): Adjust get_last_target_status call. Also consider
1204 target.
1205 (follow_exec): Push target on new inferior.
1206 (struct execution_control_state) <target>: New field.
1207 (user_visible_resume_target): New.
1208 (do_target_resume): Call target_async.
1209 (resume_1): Set target's threads_executing flag. Consider resume
1210 target.
1211 (commit_resume_all_targets): New.
1212 (proceed): Also consider resume target. Skip threads of inferiors
1213 with no execution. Commit resumtion in all targets.
1214 (start_remote): Pass current inferior to wait_for_inferior.
1215 (infrun_thread_stop_requested): Consider target as well. Pass
1216 thread_info pointer to clear_inline_frame_state instead of ptid.
1217 (infrun_thread_thread_exit): Consider target as well.
1218 (random_pending_event_thread): New inferior parameter. Use it.
1219 (do_target_wait): Rename to ...
1220 (do_target_wait_1): ... this. Add inferior parameter, and pass it
1221 down.
1222 (threads_are_resumed_pending_p, do_target_wait): New.
1223 (prepare_for_detach): Adjust calls.
1224 (wait_for_inferior): New inferior parameter. Handle it. Use
1225 do_target_wait_1 instead of do_target_wait.
1226 (fetch_inferior_event): Adjust. Switch to representative
1227 inferior. Pass target down.
1228 (set_last_target_status): Add process_stratum_target parameter.
1229 Save target in global.
1230 (get_last_target_status): Add process_stratum_target parameter and
1231 handle it.
1232 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
1233 (context_switch): Check inferior_ptid == null_ptid before calling
1234 inferior_thread().
1235 (get_inferior_stop_soon): Pass down target.
1236 (wait_one): Rename to ...
1237 (poll_one_curr_target): ... this.
1238 (struct wait_one_event): New.
1239 (wait_one): New.
1240 (stop_all_threads): Adjust.
1241 (handle_no_resumed, handle_inferior_event): Adjust to consider the
1242 event's target.
1243 (switch_back_to_stepped_thread): Also consider target.
1244 (print_stop_event): Update.
1245 (normal_stop): Update. Also consider the resume target.
1246 * infrun.h (wait_for_inferior): Remove declaration.
1247 (user_visible_resume_target): New declaration.
1248 (get_last_target_status, set_last_target_status): New
1249 process_stratum_target parameter.
1250 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
1251 process_stratum_target parameter, and use it.
1252 (clear_inline_frame_state (thread_info*)): New.
1253 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
1254 process_stratum_target parameter.
1255 (clear_inline_frame_state (thread_info*)): Declare.
1256 * linux-fork.c (delete_checkpoint_command): Pass target down to
1257 find_thread_ptid.
1258 (checkpoint_command): Adjust.
1259 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
1260 instead of just tweaking inferior_ptid.
1261 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
1262 (exit_lwp): Pass target down to find_thread_ptid.
1263 (attach_proc_task_lwp_callback): Pass target down to
1264 add_thread/set_running/set_executing.
1265 (linux_nat_target::attach): Pass target down to
1266 thread_change_ptid.
1267 (get_detach_signal): Pass target down to find_thread_ptid.
1268 Consider last target status's target.
1269 (linux_resume_one_lwp_throw, resume_lwp)
1270 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
1271 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
1272 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
1273 (linux_nat_target::async_wait_fd): New.
1274 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
1275 target down.
1276 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
1277 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
1278 * linux-thread-db.c (struct thread_db_info::process_target): New
1279 field.
1280 (add_thread_db_info): Save target.
1281 (get_thread_db_info): New process_stratum_target parameter. Also
1282 match target.
1283 (delete_thread_db_info): New process_stratum_target parameter.
1284 Also match target.
1285 (thread_from_lwp): Adjust to pass down target.
1286 (thread_db_notice_clone): Pass down target.
1287 (check_thread_db_callback): Pass down target.
1288 (try_thread_db_load_1): Always push the thread_db target.
1289 (try_thread_db_load, record_thread): Pass target down.
1290 (thread_db_target::detach): Pass target down. Always unpush the
1291 thread_db target.
1292 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
1293 target down. Always unpush the thread_db target.
1294 (find_new_threads_callback, thread_db_find_new_threads_2)
1295 (thread_db_target::update_thread_list): Pass target down.
1296 (thread_db_target::pid_to_str): Pass current inferior down.
1297 (thread_db_target::get_thread_local_address): Pass target down.
1298 (thread_db_target::resume, maintenance_check_libthread_db): Pass
1299 target down.
1300 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
1301 * procfs.c (procfs_target::procfs_init_inferior): Declare.
1302 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
1303 (procfs_init_inferior): Rename to ...
1304 (procfs_target::procfs_init_inferior): ... this and adjust.
1305 (procfs_target::create_inferior, procfs_notice_thread)
1306 (procfs_do_thread_registers): Adjust.
1307 * ppc-fbsd-tdep.c: Include "inferior.h".
1308 (ppcfbsd_get_thread_local_address): Pass down target.
1309 * proc-service.c (ps_xfer_memory): Switch current inferior and
1310 program space as well.
1311 (get_ps_regcache): Pass target down.
1312 * process-stratum-target.c
1313 (process_stratum_target::thread_address_space)
1314 (process_stratum_target::thread_architecture): Pass target down.
1315 * process-stratum-target.h
1316 (process_stratum_target::threads_executing): New field.
1317 (as_process_stratum_target): New.
1318 * ravenscar-thread.c
1319 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
1320 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
1321 down.
1322 * record-btrace.c (record_btrace_target::info_record): Adjust.
1323 (record_btrace_target::record_method)
1324 (record_btrace_target::record_is_replaying)
1325 (record_btrace_target::fetch_registers)
1326 (get_thread_current_frame_id, record_btrace_target::resume)
1327 (record_btrace_target::wait, record_btrace_target::stop): Pass
1328 target down.
1329 * record-full.c (record_full_wait_1): Switch to event thread.
1330 Pass target down.
1331 * regcache.c (regcache::regcache)
1332 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
1333 process_stratum_target parameter and handle it.
1334 (current_thread_target): New global.
1335 (get_thread_regcache): Add process_stratum_target parameter and
1336 handle it. Switch inferior before calling target method.
1337 (get_thread_regcache): Pass target down.
1338 (get_thread_regcache_for_ptid): Pass target down.
1339 (registers_changed_ptid): Add process_stratum_target parameter and
1340 handle it.
1341 (registers_changed_thread, registers_changed): Pass target down.
1342 (test_get_thread_arch_aspace_regcache): New.
1343 (current_regcache_test): Define a couple local test_target_ops
1344 instances and use them for testing.
1345 (readwrite_regcache): Pass process_stratum_target parameter.
1346 (cooked_read_test, cooked_write_test): Pass mock_target down.
1347 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
1348 (get_thread_arch_aspace_regcache): Add process_stratum_target
1349 parameter.
1350 (regcache::target): New method.
1351 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
1352 (regcache::registers_changed_ptid): Add process_stratum_target
1353 parameter.
1354 (regcache::m_target): New field.
1355 (registers_changed_ptid): Add process_stratum_target parameter.
1356 * remote.c (remote_state::supports_vCont_probed): New field.
1357 (remote_target::async_wait_fd): New method.
1358 (remote_unpush_and_throw): Add remote_target parameter.
1359 (get_current_remote_target): Adjust.
1360 (remote_target::remote_add_inferior): Push target.
1361 (remote_target::remote_add_thread)
1362 (remote_target::remote_notice_new_inferior)
1363 (get_remote_thread_info): Pass target down.
1364 (remote_target::update_thread_list): Skip threads of inferiors
1365 bound to other targets. (remote_target::close): Don't discard
1366 inferiors. (remote_target::add_current_inferior_and_thread)
1367 (remote_target::process_initial_stop_replies)
1368 (remote_target::start_remote)
1369 (remote_target::remote_serial_quit_handler): Pass down target.
1370 (remote_target::remote_unpush_target): New remote_target
1371 parameter. Unpush the target from all inferiors.
1372 (remote_target::remote_unpush_and_throw): New remote_target
1373 parameter. Pass it down.
1374 (remote_target::open_1): Check whether the current inferior has
1375 execution instead of checking whether any inferior is live. Pass
1376 target down.
1377 (remote_target::remote_detach_1): Pass down target. Use
1378 remote_unpush_target.
1379 (extended_remote_target::attach): Pass down target.
1380 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
1381 (remote_target::append_resumption): Pass down target.
1382 (remote_target::append_pending_thread_resumptions)
1383 (remote_target::remote_resume_with_hc, remote_target::resume)
1384 (remote_target::commit_resume): Pass down target.
1385 (remote_target::remote_stop_ns): Check supports_vCont_probed.
1386 (remote_target::interrupt_query)
1387 (remote_target::remove_new_fork_children)
1388 (remote_target::check_pending_events_prevent_wildcard_vcont)
1389 (remote_target::remote_parse_stop_reply)
1390 (remote_target::process_stop_reply): Pass down target.
1391 (first_remote_resumed_thread): New remote_target parameter. Pass
1392 it down.
1393 (remote_target::wait_as): Pass down target.
1394 (unpush_and_perror): New remote_target parameter. Pass it down.
1395 (remote_target::readchar, remote_target::remote_serial_write)
1396 (remote_target::getpkt_or_notif_sane_1)
1397 (remote_target::kill_new_fork_children, remote_target::kill): Pass
1398 down target.
1399 (remote_target::mourn_inferior): Pass down target. Use
1400 remote_unpush_target.
1401 (remote_target::core_of_thread)
1402 (remote_target::remote_btrace_maybe_reopen): Pass down target.
1403 (remote_target::pid_to_exec_file)
1404 (remote_target::thread_handle_to_thread_info): Pass down target.
1405 (remote_target::async_wait_fd): New.
1406 * riscv-fbsd-tdep.c: Include "inferior.h".
1407 (riscv_fbsd_get_thread_local_address): Pass down target.
1408 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
1409 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
1410 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
1411 Adjust.
1412 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
1413 * solib-svr4.c (enable_break): Pass down target.
1414 * spu-multiarch.c (parse_spufs_run): Pass down target.
1415 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
1416 * target-delegates.c: Regenerate.
1417 * target.c (g_target_stack): Delete.
1418 (current_top_target): Return the current inferior's top target.
1419 (target_has_execution_1): Refer to the passed-in inferior's top
1420 target.
1421 (target_supports_terminal_ours): Check whether the initial
1422 inferior was already created.
1423 (decref_target): New.
1424 (target_stack::push): Incref/decref the target.
1425 (push_target, push_target, unpush_target): Adjust.
1426 (target_stack::unpush): Defref target.
1427 (target_is_pushed): Return bool. Adjust to refer to the current
1428 inferior's target stack.
1429 (dispose_inferior): Delete, and inline parts ...
1430 (target_preopen): ... here. Only dispose of the current inferior.
1431 (target_detach): Hold strong target reference while detaching.
1432 Pass target down.
1433 (target_thread_name): Add assertion.
1434 (target_resume): Pass down target.
1435 (target_ops::beneath, find_target_at): Adjust to refer to the
1436 current inferior's target stack.
1437 (get_dummy_target): New.
1438 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
1439 has a thread running.
1440 (initialize_targets): Rename to ...
1441 (_initialize_target): ... this.
1442 * target.h: Include "gdbsupport/refcounted-object.h".
1443 (struct target_ops): Inherit refcounted_object.
1444 (target_ops::shortname, target_ops::longname): Make const.
1445 (target_ops::async_wait_fd): New method.
1446 (decref_target): Declare.
1447 (struct target_ops_ref_policy): New.
1448 (target_ops_ref): New typedef.
1449 (get_dummy_target): Declare function.
1450 (target_is_pushed): Return bool.
1451 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
1452 (all_matching_threads_iterator::all_matching_threads_iterator):
1453 Handle filter target.
1454 * thread-iter.h (struct all_matching_threads_iterator, struct
1455 all_matching_threads_range, class all_non_exited_threads_range):
1456 Filter by target too. Remove explicit.
1457 * thread.c (threads_executing): Delete.
1458 (inferior_thread): Pass down current inferior.
1459 (clear_thread_inferior_resources): Pass down thread pointer
1460 instead of ptid_t.
1461 (add_thread_silent, add_thread_with_info, add_thread): Add
1462 process_stratum_target parameter. Use it for thread and inferior
1463 searches.
1464 (is_current_thread): New.
1465 (thread_info::deletable): Use it.
1466 (find_thread_ptid, thread_count, in_thread_list)
1467 (thread_change_ptid, set_resumed, set_running): New
1468 process_stratum_target parameter. Pass it down.
1469 (set_executing): New process_stratum_target parameter. Pass it
1470 down. Adjust reference to 'threads_executing'.
1471 (threads_are_executing): New process_stratum_target parameter.
1472 Adjust reference to 'threads_executing'.
1473 (set_stop_requested, finish_thread_state): New
1474 process_stratum_target parameter. Pass it down.
1475 (switch_to_thread): Also match inferior.
1476 (switch_to_thread): New process_stratum_target parameter. Pass it
1477 down.
1478 (update_threads_executing): Reimplement.
1479 * top.c (quit_force): Pop targets from all inferior.
1480 (gdb_init): Don't call initialize_targets.
1481 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
1482 Declare.
1483 (windows_add_thread, windows_delete_thread): Adjust.
1484 (get_windows_debug_event): Rename to ...
1485 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
1486 * tracefile-tfile.c (tfile_target_open): Pass down target.
1487 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
1488 Forward declare.
1489 (switch_to_thread): Add process_stratum_target parameter.
1490 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
1491 parameter. Use it.
1492 (mi_on_resume): Pass target down.
1493 * nat/fork-inferior.c (startup_inferior): Add
1494 process_stratum_target parameter. Pass it down.
1495 * nat/fork-inferior.h (startup_inferior): Add
1496 process_stratum_target parameter.
1497 * python/py-threadevent.c (py_get_event_thread): Pass target down.
1498
75c6c844
PA
14992020-01-10 Pedro Alves <palves@redhat.com>
1500
1501 * remote.c (remote_target::start_remote): Don't set inferior_ptid
1502 directly. Instead find the first thread in the thread list and
1503 use switch_to_thread.
1504
78f2c40a
PA
15052020-01-10 Pedro Alves <palves@redhat.com>
1506
1507 * remote.c (remote_target::remote_add_inferior): Don't bind a
1508 process to the current inferior if the current inferior is already
1509 bound to a process.
1510
e7af6c70
TBA
15112020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1512 Pedro Alves <palves@redhat.com>
1513
1514 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
1515 If no process is specified, return null_ptid instead of
1516 inferior_ptid.
1517 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
1518 TARGET_WAITKIND_SIGNALLED with no pid.
1519
31ba933e
PA
15202020-01-10 Pedro Alves <palves@redhat.com>
1521
1522 * remote.c (first_remote_resumed_thread): New.
1523 (remote_target::wait_as): Use it as default event_ptid instead of
1524 inferior_ptid.
1525
735fc2ca
PA
15262020-01-10 Pedro Alves <palves@redhat.com>
1527
1528 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
1529
c17e02e1
PA
15302020-01-10 Pedro Alves <palves@redhat.com>
1531
1532 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
1533 not -1.
1534
ab1ddbcf
PA
15352020-01-10 Pedro Alves <palves@redhat.com>
1536
1537 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
1538 ptid to get_last_target_status.
1539 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
1540 ptid to get_last_target_status.
1541 * infcmd.c (continue_command): Don't pass a target_waitstatus to
1542 get_last_target_status.
1543 (info_program_command): Don't pass a target_waitstatus to
1544 get_last_target_status.
1545 * infrun.c (init_wait_for_inferior): Use
1546 nullify_last_target_wait_ptid.
1547 (get_last_target_status): Handle nullptr arguments.
1548 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
1549 (print_stop_event): Don't pass a ptid to get_last_target_status.
1550 (normal_stop): Don't pass a ptid to get_last_target_status.
1551 * infrun.h (get_last_target_status, set_last_target_status): Move
1552 comments here and update.
1553 (nullify_last_target_wait_ptid): Declare.
1554 * linux-fork.c (fork_load_infrun_state): Remove local extern
1555 declaration of nullify_last_target_wait_ptid.
1556 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
1557 to get_last_target_status.
1558
f3f8ece4
PA
15592020-01-10 Pedro Alves <palves@redhat.com>
1560
1561 * gdbthread.h (scoped_restore_current_thread)
1562 <dont_restore, restore, m_dont_restore>: Declare.
1563 * thread.c (thread_alive): Add assertion. Return bool.
1564 (switch_to_thread_if_alive): New.
1565 (prune_threads): Switch inferior/thread.
1566 (print_thread_info_1): Switch thread before calling target methods.
1567 (scoped_restore_current_thread::restore): New, factored out from
1568 ...
1569 (scoped_restore_current_thread::~scoped_restore_current_thread):
1570 ... this.
1571 (scoped_restore_current_thread::scoped_restore_current_thread):
1572 Add assertion.
1573 (thread_apply_all_command, thread_select): Use
1574 switch_to_thread_if_alive.
1575 * infrun.c (proceed, restart_threads, handle_signal_stop)
1576 (switch_back_to_stepped_thread): Switch current thread before
1577 calling target methods.
1578
db2d40f7
PA
15792020-01-10 Pedro Alves <palves@redhat.com>
1580
1581 * inferior.c (switch_to_inferior_no_thread): New function,
1582 factored out from ...
1583 (inferior_command): ... here.
1584 * inferior.h (switch_to_inferior_no_thread): Declare.
1585 * mi/mi-main.c (run_one_inferior): Use
1586 switch_to_inferior_no_thread.
1587
bd420a2d
PA
15882020-01-10 Pedro Alves <palves@redhat.com>
1589
1590 * infcmd.c (kill_command): Remove dead code.
1591
ddf5db90
PA
15922020-01-10 Pedro Alves <palves@redhat.com>
1593
1594 * remote.c (remote_target::mourn_inferior): No longer check
1595 whether the target is running.
1596
5018ce90
PA
15972020-01-10 Pedro Alves <palves@redhat.com>
1598
1599 * corelow.c (core_target::has_execution): Change parameter type to
1600 inferior pointer.
1601 * inferior.c (number_of_live_inferiors): Use
1602 inferior::has_execution instead of target_has_execution_1.
1603 * inferior.h (inferior::has_execution): New.
1604 * linux-thread-db.c (thread_db_target::update_thread_list): Use
1605 inferior::has_execution instead of target_has_execution_1.
1606 * process-stratum-target.c
1607 (process_stratum_target::has_execution): Change parameter type to
1608 inferior pointer. Check the inferior's PID instead of
1609 inferior_ptid.
1610 * process-stratum-target.h
1611 (process_stratum_target::has_execution): Change parameter type to
1612 inferior pointer.
1613 * record-full.c (record_full_core_target::has_execution): Change
1614 parameter type to inferior pointer.
1615 * target.c (target_has_execution_1): Change parameter type to
1616 inferior pointer.
1617 (target_has_execution_current): Adjust.
1618 * target.h (target_ops::has_execution): Change parameter type to
1619 inferior pointer.
1620 (target_has_execution_1): Change parameter type to inferior
1621 pointer. Change return type to bool.
1622 * tracefile.h (tracefile_target::has_execution): Change parameter
1623 type to inferior pointer.
1624
74375d18
PA
16252020-01-10 Pedro Alves <palves@redhat.com>
1626
1627 * exceptions.c (print_flush): Remove current_top_target() check.
1628
acdf84a6
PA
16292020-01-10 Pedro Alves <palves@redhat.com>
1630
1631 * remote.c (show_remote_exec_file): Show the current inferior's
1632 exec-file instead of the command variable's value.
1633
ec506636
PA
16342020-01-10 Pedro Alves <palves@redhat.com>
1635
1636 * record-full.c (record_full_resume_ptid): New global.
1637 (record_full_target::resume): Set it.
1638 (record_full_wait_1): Use record_full_resume_ptid instead of
1639 inferior_ptid.
1640
873657b9
PA
16412020-01-10 Pedro Alves <palves@redhat.com>
1642
1643 * gdbthread.h (scoped_restore_current_thread)
1644 <dont_restore, restore, m_dont_restore>: Declare.
1645 * thread.c (thread_alive): Add assertion. Return bool.
1646 (switch_to_thread_if_alive): New.
1647 (prune_threads): Switch inferior/thread.
1648 (print_thread_info_1): Switch thread before calling target methods.
1649 (scoped_restore_current_thread::restore): New, factored out from
1650 ...
1651 (scoped_restore_current_thread::~scoped_restore_current_thread):
1652 ... this.
1653 (scoped_restore_current_thread::scoped_restore_current_thread):
1654 Add assertion.
1655 (thread_apply_all_command, thread_select): Use
1656 switch_to_thread_if_alive.
1657
7f0ae84c
GB
16582020-01-10 George Barrett <bob@bob131.so>
1659
1660 * stap-probe.c (stap_modify_semaphore): Don't check for null
1661 semaphores.
1662 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
1663 for null semaphores.
1664
f5a7c406
AB
16652020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
1666
1667 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
1668 all source windows, and maintain horizontal scroll status while
1669 doing so.
1670
9ae6bf64
TT
16712020-01-09 Tom Tromey <tom@tromey.com>
1672
1673 PR tui/18932:
1674 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
1675 update_source_window, not print_source_lines.
1676
b2efe70c
AB
16772020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
1678
1679 * tui/tui.c (tui_enable): Register tui hooks after calling
1680 tui_display_main.
1681
5f23a082
CB
16822020-01-09 Christian Biesinger <cbiesinger@google.com>
1683
1684 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
1685
3061113b
SM
16862020-01-08 Simon Marchi <simon.marchi@efficios.com>
1687
1688 * thread.c (print_thread_info_1): Fix indentation.
1689
57d75002
CB
16902020-01-09 Christian Biesinger <cbiesinger@google.com>
1691
1692 * symtab.c (general_symbol_info::compute_and_set_names): Move the
1693 unique_xmalloc_ptr outside the if to always free the demangled name.
1694
6a053cb1
TT
16952020-01-08 Tom Tromey <tromey@adacore.com>
1696
1697 * xcoffread.c (enter_line_range, read_xcoff_symtab)
1698 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
1699 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
1700 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
1701 Remove.
1702 (section_offsets): New typedef.
1703 * symtab.c (fixup_section, get_msymbol_address): Update.
1704 * symmisc.c (dump_msymbols): Update.
1705 * symfile.h (relative_addr_info_to_section_offsets)
1706 (symfile_map_offsets_to_segments): Update.
1707 * symfile.c (build_section_addr_info_from_objfile)
1708 (init_objfile_sect_indices): Update.
1709 (struct place_section_arg): Change type of "offsets".
1710 (place_section): Update.
1711 (relative_addr_info_to_section_offsets): Change type of
1712 "section_offsets". Remove "num_sections" parameter.
1713 (default_symfile_offsets, syms_from_objfile_1)
1714 (set_objfile_default_section_offset): Update.
1715 (reread_symbols): No need to preserve section offsets by hand.
1716 (symfile_map_offsets_to_segments): Change type of "offsets".
1717 * stap-probe.c (relocate_address): Update.
1718 * stabsread.h (process_one_symbol): Update.
1719 * solib-target.c (struct lm_info_target) <offsets>: Change type.
1720 (solib_target_relocate_section_addresses): Update.
1721 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
1722 Update.
1723 * solib-frv.c (frv_relocate_main_executable): Update.
1724 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
1725 * solib-aix.c (solib_aix_get_section_offsets): Change return
1726 type.
1727 (solib_aix_solib_create_inferior_hook): Update.
1728 * remote.c (remote_target::get_offsets): Update.
1729 * psymtab.c (find_pc_sect_psymtab): Update.
1730 * psympriv.h (struct partial_symbol) <address, text_low,
1731 text_high>: Update.
1732 * objfiles.h (obj_section_offset): Update.
1733 (struct objfile) <section_offsets>: Change type.
1734 <num_sections>: Remove.
1735 (objfile_relocate): Update.
1736 * objfiles.c (entry_point_address_query): Update
1737 (relocate_one_symbol): Change type of "section_offsets".
1738 (objfile_relocate1, objfile_relocate1): Change type of
1739 "new_offsets".
1740 (objfile_rebase1): Update.
1741 * mipsread.c (mipscoff_symfile_read): Update.
1742 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
1743 parameter.
1744 * mdebugread.c (parse_symbol): Change type of "section_offsets".
1745 (parse_external, psymtab_to_symtab_1): Update.
1746 * machoread.c (macho_symfile_offsets): Update.
1747 * ia64-tdep.c (ia64_find_unwind_table): Update.
1748 * hppa-tdep.c (read_unwind_info): Update.
1749 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
1750 * dwarf2read.c (create_addrmap_from_index)
1751 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
1752 (process_psymtab_comp_unit_reader, add_partial_symbol)
1753 (add_partial_subprogram, process_full_comp_unit)
1754 (read_file_scope, read_func_scope, read_lexical_block_scope)
1755 (read_call_site_scope, dwarf2_rnglists_process)
1756 (dwarf2_ranges_process, dwarf2_ranges_read)
1757 (dwarf_decode_lines_1, var_decode_location, new_symbol)
1758 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
1759 Update.
1760 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
1761 Update.
1762 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
1763 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
1764 (process_one_symbol): Change type of "section_offsets".
1765 * ctfread.c (get_objfile_text_range): Update.
1766 * coffread.c (coff_symtab_read, enter_linenos)
1767 (process_coff_symbol): Update.
1768 * coff-pe-read.c (add_pe_forwarded_sym): Update.
1769 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
1770
456e800a
TT
17712020-01-08 Tom Tromey <tromey@adacore.com>
1772
1773 * dwarf2read.c (parse_macro_definition): Use std::string.
1774 (parse_macro_definition): Likewise.
1775
6dfa2fc2
TT
17762020-01-08 Tom Tromey <tromey@adacore.com>
1777
1778 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
1779 (ATTR_ALLOC_CHUNK): Remove.
1780
421d1616
TT
17812020-01-08 Tom Tromey <tromey@adacore.com>
1782
1783 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
1784
43816ebc
TT
17852020-01-08 Tom Tromey <tromey@adacore.com>
1786
1787 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
1788 (dwarf2_compute_name, open_dwo_file): Likewise.
1789 (process_enumeration_scope): Use std::vector.
1790 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
1791 (partial_die_info::fixup, dwarf2_start_subfile)
1792 (guess_full_die_structure_name, dwarf2_name): Likewise.
1793 (determine_prefix): Update.
1794 (guess_full_die_structure_name): Make return type const.
1795 (partial_die_full_name): Return unique_xmalloc_ptr.
1796 (DW_FIELD_ALLOC_CHUNK): Remove.
1797
4212d509
TT
17982020-01-07 Tom Tromey <tromey@adacore.com>
1799
1800 PR build/24937:
1801 * stap-probe.c (class stap_static_probe_ops): Add constructor.
1802
06a6207a
JT
18032020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
1804
1805 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
1806
153d79c4
AB
18072020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
1808
1809 * stack.c (print_frame_info): Move disassemble_next_line code
1810 inside source_print block.
1811
66182876
EZ
18122020-01-06 Eli Zaretskii <eliz@gnu.org>
1813
1814 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
1815 gdb/signals.h, as we are now using native signal symbols.
1816
cbfa8581
SV
18172020-01-06 Shahab Vahedi <shahab@synopsys.com>
1818
1819 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
1820 overflow by an early check of content vs threshold.
1821 * tui/tui-source.c (tui_source_window::line_is_displayed):
1822 Likewise.
1823
3f602821
EZ
18242020-01-06 Eli Zaretskii <eliz@gnu.org>
1825
1826 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
1827
a08c904d
JT
18282020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
1829
1830 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
1831 export table if no section contains it's RVA.
1832
89a65580
EZ
18332020-01-06 Eli Zaretskii <eliz@gnu.org>
1834
1835 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
1836
8b7fcda2
HD
18372020-01-06 Hannes Domani <ssbssa@yahoo.de>
1838
1839 * source.c (print_source_lines_base): Set last_line_listed.
1840
a61b4f69
SV
18412020-01-06 Shahab Vahedi <shahab@synopsys.com>
1842
1843 * tui/tui-disasm.c: Remove trailing spaces.
1844
559e7e50
EZ
18452020-01-06 Eli Zaretskii <eliz@gnu.org>
1846 Pedro Alves <palves@redhat.com>
1847
1848 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
1849 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
1850 (windows_gdb_signal_to_target): New function, uses the above
1851 enumeration to convert GDB internal signal codes to equivalent
1852 Windows codes.
1853 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
1854 * windows-nat.c: Include "gdb_wait.h".
1855 (get_windows_debug_event): Extract the fatal exception from the
1856 exit status and convert to the equivalent Posix signal number.
1857 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
1858 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
1859 * gdbsupport/gdb_wait.c: New file, implements
1860 windows_status_to_termsig.
1861 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
1862 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
1863
f2302a34
AB
18642020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
1865
1866 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
1867 show_layout.
1868
6a5206eb
LM
18692020-01-05 Luis Machado <luis.machado@linaro.org>
1870
1871 * aarch64-linux-nat.c
1872 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
1873 and bfd_mach_aarch64.
1874
6ec1d75e
PW
18752020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1876
1877 * ui-file.c (stdio_file::can_emit_style_escape)
1878 (tee_file::can_emit_style_escape): Ensure style is used also on
1879 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
1880 to gdb_stdout.
1881 * main.c (set_gdb_data_directory): Use file style to output the
1882 warning that the given pathname is not a directory.
1883 * top.c (show_history_filename, gdb_safe_append_history)
1884 (show_gdb_datadir): Use file style.
1885
44f81a76
HD
18862020-01-03 Hannes Domani <ssbssa@yahoo.de>
1887
1888 * solib-target.c (struct lm_info_target):
1889 Change offsets to be a unique_xmalloc_ptr.
1890 (solib_target_relocate_section_addresses): Update.
1891
25057eb0
HD
18922020-01-03 Hannes Domani <ssbssa@yahoo.de>
1893
1894 * windows-nat.c (windows_clear_solib): Free so_list linked list.
1895
6e2118f5
BE
18962020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1897
1898 * MAINTAINERS (Write After Approval): Add myself.
1899
8133c7dc
LM
19002020-01-02 Luis Machado <luis.machado@linaro.org>
1901
1902 * proc-service.c (get_ps_regcache): Remove reference to obsolete
1903 Cell BE architecture.
1904 * target.h (struct target_ops) <thread_architecture>: Likewise.
1905
48189bec
HD
19062020-01-01 Hannes Domani <ssbssa@yahoo.de>
1907
1908 * Makefile.in: Use INSTALL_PROGRAM_ENV.
1909
ead1063b
HD
19102020-01-01 Hannes Domani <ssbssa@yahoo.de>
1911
1912 * MAINTAINERS (Write After Approval): Add myself.
1913
e5d78223
JB
19142020-01-01 Joel Brobecker <brobecker@adacore.com>
1915
1916 * gdbarch.sh: Update copyright year range of generated files.
1917
b811d2c2
JB
19182020-01-01 Joel Brobecker <brobecker@adacore.com>
1919
1920 Update copyright year range in all GDB files.
1921
5f4def5c
JB
19222020-01-01 Joel Brobecker <brobecker@adacore.com>
1923
1924 * copyright.py: Convert to Python 3.
1925
51fd4002
JB
19262020-01-01 Joel Brobecker <brobecker@adacore.com>
1927
1928 * copyright.py: Adapt after move of gnulib directory from gdb
1929 directory to toplevel directory.
1930
5fb651f2
JB
19312020-01-01 Joel Brobecker <brobecker@adacore.com>
1932
1933 * copyright.py (main): Exit if run from the wrong directory.
1934
5dd8bf88
JB
19352020-01-01 Joel Brobecker <brobecker@adacore.com>
1936
1937 * top.c (print_gdb_version): Change copyright year to 2020.
1938
9f71dacb 19392020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 1940
9f71dacb 1941 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 1942
9f71dacb 1943For older changes see ChangeLog-2019.
c906108c
SS
1944\f
1945Local Variables:
1946mode: change-log
1947left-margin: 8
1948fill-column: 74
1949version-control: never
57da7796 1950coding: utf-8
c906108c 1951End: