Make TUI borders respect "set style enabled"
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7c392d1d
TT
12020-01-11 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-wingeneral.c (box_win): Check cli_styling.
4 * tui/tui-winsource.c (tui_source_window_base::refill): Use
5 deprecated_safe_get_selected_frame.
6
d9ebdab7
TBA
72020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8
9 * inferior.c (print_inferior): Switch inferior before printing it.
10
f3c469b9
PA
112020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12 Pedro Alves <palves@redhat.com>
13
14 * progspace-and-thread.c (switch_to_program_space_and_thread):
15 Assert there's an inferior for PSPACE. Use
16 switch_to_inferior_no_thread to switch the inferior too.
17 * progspace.c (program_space::~program_space): Call
18 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
19 (program_space::free_all_objfiles): Don't call clear_symtab_users
20 here.
21 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
22
65c574f6
PA
232020-01-10 Pedro Alves <palves@redhat.com>
24
25 * NEWS: Mention multi-target debugging, "info connections", and
26 "add-inferior -no-connection".
27
2f4fcf00
PA
282020-01-10 Pedro Alves <palves@redhat.com>
29
30 * infrun.c: Include "target-connection.h".
31 (check_multi_target_resumption): New.
32 (proceed): Call it.
33 * target-connection.c (make_target_connection_string): Make
34 extern.
35 * target-connection.h (make_target_connection_string): Declare.
36
121b3efd
PA
372020-01-10 Pedro Alves <palves@redhat.com>
38
39 * Makefile.in (COMMON_SFILES): Add target-connection.c.
40 * inferior.c (uiout_field_connection): New function.
41 (print_inferior): Add new "connection-id" column.
42 (add_inferior_command): Show connection number/string of added
43 inferior.
44 * process-stratum-target.h
45 (process_stratum_target::connection_string): New virtual method.
46 (process_stratum_target::connection_number): New field.
47 * remote.c (remote_target::connection_string): New override.
48 * target-connection.c: New file.
49 * target-connection.h: New file.
50 * target.c (decref_target): Remove process_stratum targets from
51 the connection list.
52 (target_stack::push): Add process_stratum targets to the
53 connection list.
54
4f837581
PA
552020-01-10 Pedro Alves <palves@redhat.com>
56
57 Revert:
58 2016-04-12 Pedro Alves <palves@redhat.com>
59 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
60 Remove references to name.
61 * serial.h (struct serial) <name>: Delete.
62
f4ec508e
PA
632020-01-10 Pedro Alves <palves@redhat.com>
64
65 * gdbarch-selftests.c (register_to_value_test): Remove "target
66 already pushed" check.
67
5b6d1e4f
PA
682020-01-10 Pedro Alves <palves@redhat.com>
69 John Baldwin <jhb@FreeBSD.org>
70
71 * aarch64-linux-nat.c
72 (aarch64_linux_nat_target::thread_architecture): Adjust.
73 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
74 (task_command_1): Likewise.
75 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
76 (aix_thread_target::wait, aix_thread_target::fetch_registers)
77 (aix_thread_target::store_registers)
78 (aix_thread_target::thread_alive): Adjust.
79 * amd64-fbsd-tdep.c: Include "inferior.h".
80 (amd64fbsd_get_thread_local_address): Pass down target.
81 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
82 thread's gdbarch instead of target_gdbarch.
83 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
84 get_last_target_status.
85 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
86 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
87 inferiors.
88 (update_inserted_breakpoint_locations): Skip if inferiors with no
89 execution.
90 (update_global_location_list): When handling moribund locations,
91 find representative inferior for location's pspace, and use thread
92 count of its process_stratum target.
93 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
94 * bsd-uthread.c (bsd_uthread_target::wait): Use
95 as_process_stratum_target and adjust thread_change_ptid and
96 add_thread calls.
97 (bsd_uthread_target::update_thread_list): Use
98 as_process_stratum_target and adjust find_thread_ptid,
99 thread_change_ptid and add_thread calls.
100 * btrace.c (maint_btrace_packet_history_cmd): Adjust
101 find_thread_ptid call.
102 * corelow.c (add_to_thread_list): Adjust add_thread call.
103 (core_target_open): Adjust add_thread_silent and thread_count
104 calls.
105 (core_target::pid_to_str): Adjust find_inferior_ptid call.
106 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
107 * event-top.c (async_disconnect): Pop targets from all inferiors.
108 * exec.c (add_target_sections): Push exec target on all inferiors
109 sharing the program space.
110 (remove_target_sections): Remove the exec target from all
111 inferiors sharing the program space.
112 (exec_on_vfork): New.
113 * exec.h (exec_on_vfork): Declare.
114 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
115 Pass it down.
116 (fbsd_nat_target::update_thread_list): Adjust.
117 (fbsd_nat_target::resume): Adjust.
118 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
119 down.
120 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
121 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
122 get_thread_arch_regcache call.
123 * fork-child.c (gdb_startup_inferior): Pass target down to
124 startup_inferior and set_executing.
125 * gdbthread.h (struct process_stratum_target): Forward declare.
126 (add_thread, add_thread_silent, add_thread_with_info)
127 (in_thread_list): Add process_stratum_target parameter.
128 (find_thread_ptid(inferior*, ptid_t)): New overload.
129 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
130 parameter.
131 (all_threads()): Delete overload.
132 (all_threads, all_non_exited_threads): Add process_stratum_target
133 parameter.
134 (all_threads_safe): Use brace initialization.
135 (thread_count): Add process_stratum_target parameter.
136 (set_resumed, set_running, set_stop_requested, set_executing)
137 (threads_are_executing, finish_thread_state): Add
138 process_stratum_target parameter.
139 (switch_to_thread): Use is_current_thread.
140 * i386-fbsd-tdep.c: Include "inferior.h".
141 (i386fbsd_get_thread_local_address): Pass down target.
142 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
143 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
144 have_inferiors check.
145 * inf-ptrace.c (inf_ptrace_target::create_inferior)
146 (inf_ptrace_target::attach): Adjust.
147 * infcall.c (run_inferior_call): Adjust.
148 * infcmd.c (run_command_1): Pass target to
149 scoped_finish_thread_state.
150 (proceed_thread_callback): Skip inferiors with no execution.
151 (continue_command): Rename 'all_threads' local to avoid hiding
152 'all_threads' function. Adjust get_last_target_status call.
153 (prepare_one_step): Adjust set_running call.
154 (signal_command): Use user_visible_resume_target. Compare thread
155 pointers instead of inferior_ptid.
156 (info_program_command): Adjust to pass down target.
157 (attach_command): Mark target's 'thread_executing' flag.
158 (stop_current_target_threads_ns): New, factored out from ...
159 (interrupt_target_1): ... this. Switch inferior before making
160 target calls.
161 * inferior-iter.h
162 (struct all_inferiors_iterator, struct all_inferiors_range)
163 (struct all_inferiors_safe_range)
164 (struct all_non_exited_inferiors_range): Filter on
165 process_stratum_target too. Remove explicit.
166 * inferior.c (inferior::inferior): Push dummy target on target
167 stack.
168 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
169 Add process_stratum_target parameter, and pass it down.
170 (have_live_inferiors): Adjust.
171 (switch_to_inferior_and_push_target): New.
172 (add_inferior_command, clone_inferior_command): Handle
173 "-no-connection" parameter. Use
174 switch_to_inferior_and_push_target.
175 (_initialize_inferior): Mention "-no-connection" option in
176 the help of "add-inferior" and "clone-inferior" commands.
177 * inferior.h: Include "process-stratum-target.h".
178 (interrupt_target_1): Use bool.
179 (struct inferior) <push_target, unpush_target, target_is_pushed,
180 find_target_beneath, top_target, process_target, target_at,
181 m_stack>: New.
182 (discard_all_inferiors): Delete.
183 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
184 (all_inferiors, all_non_exited_inferiors): Add
185 process_stratum_target parameter.
186 * infrun.c: Include "gdb_select.h" and <unordered_map>.
187 (target_last_proc_target): New global.
188 (follow_fork_inferior): Push target on new inferior. Pass target
189 to add_thread_silent. Call exec_on_vfork. Handle target's
190 reference count.
191 (follow_fork): Adjust get_last_target_status call. Also consider
192 target.
193 (follow_exec): Push target on new inferior.
194 (struct execution_control_state) <target>: New field.
195 (user_visible_resume_target): New.
196 (do_target_resume): Call target_async.
197 (resume_1): Set target's threads_executing flag. Consider resume
198 target.
199 (commit_resume_all_targets): New.
200 (proceed): Also consider resume target. Skip threads of inferiors
201 with no execution. Commit resumtion in all targets.
202 (start_remote): Pass current inferior to wait_for_inferior.
203 (infrun_thread_stop_requested): Consider target as well. Pass
204 thread_info pointer to clear_inline_frame_state instead of ptid.
205 (infrun_thread_thread_exit): Consider target as well.
206 (random_pending_event_thread): New inferior parameter. Use it.
207 (do_target_wait): Rename to ...
208 (do_target_wait_1): ... this. Add inferior parameter, and pass it
209 down.
210 (threads_are_resumed_pending_p, do_target_wait): New.
211 (prepare_for_detach): Adjust calls.
212 (wait_for_inferior): New inferior parameter. Handle it. Use
213 do_target_wait_1 instead of do_target_wait.
214 (fetch_inferior_event): Adjust. Switch to representative
215 inferior. Pass target down.
216 (set_last_target_status): Add process_stratum_target parameter.
217 Save target in global.
218 (get_last_target_status): Add process_stratum_target parameter and
219 handle it.
220 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
221 (context_switch): Check inferior_ptid == null_ptid before calling
222 inferior_thread().
223 (get_inferior_stop_soon): Pass down target.
224 (wait_one): Rename to ...
225 (poll_one_curr_target): ... this.
226 (struct wait_one_event): New.
227 (wait_one): New.
228 (stop_all_threads): Adjust.
229 (handle_no_resumed, handle_inferior_event): Adjust to consider the
230 event's target.
231 (switch_back_to_stepped_thread): Also consider target.
232 (print_stop_event): Update.
233 (normal_stop): Update. Also consider the resume target.
234 * infrun.h (wait_for_inferior): Remove declaration.
235 (user_visible_resume_target): New declaration.
236 (get_last_target_status, set_last_target_status): New
237 process_stratum_target parameter.
238 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
239 process_stratum_target parameter, and use it.
240 (clear_inline_frame_state (thread_info*)): New.
241 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
242 process_stratum_target parameter.
243 (clear_inline_frame_state (thread_info*)): Declare.
244 * linux-fork.c (delete_checkpoint_command): Pass target down to
245 find_thread_ptid.
246 (checkpoint_command): Adjust.
247 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
248 instead of just tweaking inferior_ptid.
249 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
250 (exit_lwp): Pass target down to find_thread_ptid.
251 (attach_proc_task_lwp_callback): Pass target down to
252 add_thread/set_running/set_executing.
253 (linux_nat_target::attach): Pass target down to
254 thread_change_ptid.
255 (get_detach_signal): Pass target down to find_thread_ptid.
256 Consider last target status's target.
257 (linux_resume_one_lwp_throw, resume_lwp)
258 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
259 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
260 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
261 (linux_nat_target::async_wait_fd): New.
262 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
263 target down.
264 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
265 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
266 * linux-thread-db.c (struct thread_db_info::process_target): New
267 field.
268 (add_thread_db_info): Save target.
269 (get_thread_db_info): New process_stratum_target parameter. Also
270 match target.
271 (delete_thread_db_info): New process_stratum_target parameter.
272 Also match target.
273 (thread_from_lwp): Adjust to pass down target.
274 (thread_db_notice_clone): Pass down target.
275 (check_thread_db_callback): Pass down target.
276 (try_thread_db_load_1): Always push the thread_db target.
277 (try_thread_db_load, record_thread): Pass target down.
278 (thread_db_target::detach): Pass target down. Always unpush the
279 thread_db target.
280 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
281 target down. Always unpush the thread_db target.
282 (find_new_threads_callback, thread_db_find_new_threads_2)
283 (thread_db_target::update_thread_list): Pass target down.
284 (thread_db_target::pid_to_str): Pass current inferior down.
285 (thread_db_target::get_thread_local_address): Pass target down.
286 (thread_db_target::resume, maintenance_check_libthread_db): Pass
287 target down.
288 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
289 * procfs.c (procfs_target::procfs_init_inferior): Declare.
290 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
291 (procfs_init_inferior): Rename to ...
292 (procfs_target::procfs_init_inferior): ... this and adjust.
293 (procfs_target::create_inferior, procfs_notice_thread)
294 (procfs_do_thread_registers): Adjust.
295 * ppc-fbsd-tdep.c: Include "inferior.h".
296 (ppcfbsd_get_thread_local_address): Pass down target.
297 * proc-service.c (ps_xfer_memory): Switch current inferior and
298 program space as well.
299 (get_ps_regcache): Pass target down.
300 * process-stratum-target.c
301 (process_stratum_target::thread_address_space)
302 (process_stratum_target::thread_architecture): Pass target down.
303 * process-stratum-target.h
304 (process_stratum_target::threads_executing): New field.
305 (as_process_stratum_target): New.
306 * ravenscar-thread.c
307 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
308 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
309 down.
310 * record-btrace.c (record_btrace_target::info_record): Adjust.
311 (record_btrace_target::record_method)
312 (record_btrace_target::record_is_replaying)
313 (record_btrace_target::fetch_registers)
314 (get_thread_current_frame_id, record_btrace_target::resume)
315 (record_btrace_target::wait, record_btrace_target::stop): Pass
316 target down.
317 * record-full.c (record_full_wait_1): Switch to event thread.
318 Pass target down.
319 * regcache.c (regcache::regcache)
320 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
321 process_stratum_target parameter and handle it.
322 (current_thread_target): New global.
323 (get_thread_regcache): Add process_stratum_target parameter and
324 handle it. Switch inferior before calling target method.
325 (get_thread_regcache): Pass target down.
326 (get_thread_regcache_for_ptid): Pass target down.
327 (registers_changed_ptid): Add process_stratum_target parameter and
328 handle it.
329 (registers_changed_thread, registers_changed): Pass target down.
330 (test_get_thread_arch_aspace_regcache): New.
331 (current_regcache_test): Define a couple local test_target_ops
332 instances and use them for testing.
333 (readwrite_regcache): Pass process_stratum_target parameter.
334 (cooked_read_test, cooked_write_test): Pass mock_target down.
335 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
336 (get_thread_arch_aspace_regcache): Add process_stratum_target
337 parameter.
338 (regcache::target): New method.
339 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
340 (regcache::registers_changed_ptid): Add process_stratum_target
341 parameter.
342 (regcache::m_target): New field.
343 (registers_changed_ptid): Add process_stratum_target parameter.
344 * remote.c (remote_state::supports_vCont_probed): New field.
345 (remote_target::async_wait_fd): New method.
346 (remote_unpush_and_throw): Add remote_target parameter.
347 (get_current_remote_target): Adjust.
348 (remote_target::remote_add_inferior): Push target.
349 (remote_target::remote_add_thread)
350 (remote_target::remote_notice_new_inferior)
351 (get_remote_thread_info): Pass target down.
352 (remote_target::update_thread_list): Skip threads of inferiors
353 bound to other targets. (remote_target::close): Don't discard
354 inferiors. (remote_target::add_current_inferior_and_thread)
355 (remote_target::process_initial_stop_replies)
356 (remote_target::start_remote)
357 (remote_target::remote_serial_quit_handler): Pass down target.
358 (remote_target::remote_unpush_target): New remote_target
359 parameter. Unpush the target from all inferiors.
360 (remote_target::remote_unpush_and_throw): New remote_target
361 parameter. Pass it down.
362 (remote_target::open_1): Check whether the current inferior has
363 execution instead of checking whether any inferior is live. Pass
364 target down.
365 (remote_target::remote_detach_1): Pass down target. Use
366 remote_unpush_target.
367 (extended_remote_target::attach): Pass down target.
368 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
369 (remote_target::append_resumption): Pass down target.
370 (remote_target::append_pending_thread_resumptions)
371 (remote_target::remote_resume_with_hc, remote_target::resume)
372 (remote_target::commit_resume): Pass down target.
373 (remote_target::remote_stop_ns): Check supports_vCont_probed.
374 (remote_target::interrupt_query)
375 (remote_target::remove_new_fork_children)
376 (remote_target::check_pending_events_prevent_wildcard_vcont)
377 (remote_target::remote_parse_stop_reply)
378 (remote_target::process_stop_reply): Pass down target.
379 (first_remote_resumed_thread): New remote_target parameter. Pass
380 it down.
381 (remote_target::wait_as): Pass down target.
382 (unpush_and_perror): New remote_target parameter. Pass it down.
383 (remote_target::readchar, remote_target::remote_serial_write)
384 (remote_target::getpkt_or_notif_sane_1)
385 (remote_target::kill_new_fork_children, remote_target::kill): Pass
386 down target.
387 (remote_target::mourn_inferior): Pass down target. Use
388 remote_unpush_target.
389 (remote_target::core_of_thread)
390 (remote_target::remote_btrace_maybe_reopen): Pass down target.
391 (remote_target::pid_to_exec_file)
392 (remote_target::thread_handle_to_thread_info): Pass down target.
393 (remote_target::async_wait_fd): New.
394 * riscv-fbsd-tdep.c: Include "inferior.h".
395 (riscv_fbsd_get_thread_local_address): Pass down target.
396 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
397 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
398 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
399 Adjust.
400 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
401 * solib-svr4.c (enable_break): Pass down target.
402 * spu-multiarch.c (parse_spufs_run): Pass down target.
403 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
404 * target-delegates.c: Regenerate.
405 * target.c (g_target_stack): Delete.
406 (current_top_target): Return the current inferior's top target.
407 (target_has_execution_1): Refer to the passed-in inferior's top
408 target.
409 (target_supports_terminal_ours): Check whether the initial
410 inferior was already created.
411 (decref_target): New.
412 (target_stack::push): Incref/decref the target.
413 (push_target, push_target, unpush_target): Adjust.
414 (target_stack::unpush): Defref target.
415 (target_is_pushed): Return bool. Adjust to refer to the current
416 inferior's target stack.
417 (dispose_inferior): Delete, and inline parts ...
418 (target_preopen): ... here. Only dispose of the current inferior.
419 (target_detach): Hold strong target reference while detaching.
420 Pass target down.
421 (target_thread_name): Add assertion.
422 (target_resume): Pass down target.
423 (target_ops::beneath, find_target_at): Adjust to refer to the
424 current inferior's target stack.
425 (get_dummy_target): New.
426 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
427 has a thread running.
428 (initialize_targets): Rename to ...
429 (_initialize_target): ... this.
430 * target.h: Include "gdbsupport/refcounted-object.h".
431 (struct target_ops): Inherit refcounted_object.
432 (target_ops::shortname, target_ops::longname): Make const.
433 (target_ops::async_wait_fd): New method.
434 (decref_target): Declare.
435 (struct target_ops_ref_policy): New.
436 (target_ops_ref): New typedef.
437 (get_dummy_target): Declare function.
438 (target_is_pushed): Return bool.
439 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
440 (all_matching_threads_iterator::all_matching_threads_iterator):
441 Handle filter target.
442 * thread-iter.h (struct all_matching_threads_iterator, struct
443 all_matching_threads_range, class all_non_exited_threads_range):
444 Filter by target too. Remove explicit.
445 * thread.c (threads_executing): Delete.
446 (inferior_thread): Pass down current inferior.
447 (clear_thread_inferior_resources): Pass down thread pointer
448 instead of ptid_t.
449 (add_thread_silent, add_thread_with_info, add_thread): Add
450 process_stratum_target parameter. Use it for thread and inferior
451 searches.
452 (is_current_thread): New.
453 (thread_info::deletable): Use it.
454 (find_thread_ptid, thread_count, in_thread_list)
455 (thread_change_ptid, set_resumed, set_running): New
456 process_stratum_target parameter. Pass it down.
457 (set_executing): New process_stratum_target parameter. Pass it
458 down. Adjust reference to 'threads_executing'.
459 (threads_are_executing): New process_stratum_target parameter.
460 Adjust reference to 'threads_executing'.
461 (set_stop_requested, finish_thread_state): New
462 process_stratum_target parameter. Pass it down.
463 (switch_to_thread): Also match inferior.
464 (switch_to_thread): New process_stratum_target parameter. Pass it
465 down.
466 (update_threads_executing): Reimplement.
467 * top.c (quit_force): Pop targets from all inferior.
468 (gdb_init): Don't call initialize_targets.
469 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
470 Declare.
471 (windows_add_thread, windows_delete_thread): Adjust.
472 (get_windows_debug_event): Rename to ...
473 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
474 * tracefile-tfile.c (tfile_target_open): Pass down target.
475 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
476 Forward declare.
477 (switch_to_thread): Add process_stratum_target parameter.
478 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
479 parameter. Use it.
480 (mi_on_resume): Pass target down.
481 * nat/fork-inferior.c (startup_inferior): Add
482 process_stratum_target parameter. Pass it down.
483 * nat/fork-inferior.h (startup_inferior): Add
484 process_stratum_target parameter.
485 * python/py-threadevent.c (py_get_event_thread): Pass target down.
486
75c6c844
PA
4872020-01-10 Pedro Alves <palves@redhat.com>
488
489 * remote.c (remote_target::start_remote): Don't set inferior_ptid
490 directly. Instead find the first thread in the thread list and
491 use switch_to_thread.
492
78f2c40a
PA
4932020-01-10 Pedro Alves <palves@redhat.com>
494
495 * remote.c (remote_target::remote_add_inferior): Don't bind a
496 process to the current inferior if the current inferior is already
497 bound to a process.
498
e7af6c70
TBA
4992020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
500 Pedro Alves <palves@redhat.com>
501
502 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
503 If no process is specified, return null_ptid instead of
504 inferior_ptid.
505 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
506 TARGET_WAITKIND_SIGNALLED with no pid.
507
31ba933e
PA
5082020-01-10 Pedro Alves <palves@redhat.com>
509
510 * remote.c (first_remote_resumed_thread): New.
511 (remote_target::wait_as): Use it as default event_ptid instead of
512 inferior_ptid.
513
735fc2ca
PA
5142020-01-10 Pedro Alves <palves@redhat.com>
515
516 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
517
c17e02e1
PA
5182020-01-10 Pedro Alves <palves@redhat.com>
519
520 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
521 not -1.
522
ab1ddbcf
PA
5232020-01-10 Pedro Alves <palves@redhat.com>
524
525 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
526 ptid to get_last_target_status.
527 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
528 ptid to get_last_target_status.
529 * infcmd.c (continue_command): Don't pass a target_waitstatus to
530 get_last_target_status.
531 (info_program_command): Don't pass a target_waitstatus to
532 get_last_target_status.
533 * infrun.c (init_wait_for_inferior): Use
534 nullify_last_target_wait_ptid.
535 (get_last_target_status): Handle nullptr arguments.
536 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
537 (print_stop_event): Don't pass a ptid to get_last_target_status.
538 (normal_stop): Don't pass a ptid to get_last_target_status.
539 * infrun.h (get_last_target_status, set_last_target_status): Move
540 comments here and update.
541 (nullify_last_target_wait_ptid): Declare.
542 * linux-fork.c (fork_load_infrun_state): Remove local extern
543 declaration of nullify_last_target_wait_ptid.
544 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
545 to get_last_target_status.
546
f3f8ece4
PA
5472020-01-10 Pedro Alves <palves@redhat.com>
548
549 * gdbthread.h (scoped_restore_current_thread)
550 <dont_restore, restore, m_dont_restore>: Declare.
551 * thread.c (thread_alive): Add assertion. Return bool.
552 (switch_to_thread_if_alive): New.
553 (prune_threads): Switch inferior/thread.
554 (print_thread_info_1): Switch thread before calling target methods.
555 (scoped_restore_current_thread::restore): New, factored out from
556 ...
557 (scoped_restore_current_thread::~scoped_restore_current_thread):
558 ... this.
559 (scoped_restore_current_thread::scoped_restore_current_thread):
560 Add assertion.
561 (thread_apply_all_command, thread_select): Use
562 switch_to_thread_if_alive.
563 * infrun.c (proceed, restart_threads, handle_signal_stop)
564 (switch_back_to_stepped_thread): Switch current thread before
565 calling target methods.
566
db2d40f7
PA
5672020-01-10 Pedro Alves <palves@redhat.com>
568
569 * inferior.c (switch_to_inferior_no_thread): New function,
570 factored out from ...
571 (inferior_command): ... here.
572 * inferior.h (switch_to_inferior_no_thread): Declare.
573 * mi/mi-main.c (run_one_inferior): Use
574 switch_to_inferior_no_thread.
575
bd420a2d
PA
5762020-01-10 Pedro Alves <palves@redhat.com>
577
578 * infcmd.c (kill_command): Remove dead code.
579
ddf5db90
PA
5802020-01-10 Pedro Alves <palves@redhat.com>
581
582 * remote.c (remote_target::mourn_inferior): No longer check
583 whether the target is running.
584
5018ce90
PA
5852020-01-10 Pedro Alves <palves@redhat.com>
586
587 * corelow.c (core_target::has_execution): Change parameter type to
588 inferior pointer.
589 * inferior.c (number_of_live_inferiors): Use
590 inferior::has_execution instead of target_has_execution_1.
591 * inferior.h (inferior::has_execution): New.
592 * linux-thread-db.c (thread_db_target::update_thread_list): Use
593 inferior::has_execution instead of target_has_execution_1.
594 * process-stratum-target.c
595 (process_stratum_target::has_execution): Change parameter type to
596 inferior pointer. Check the inferior's PID instead of
597 inferior_ptid.
598 * process-stratum-target.h
599 (process_stratum_target::has_execution): Change parameter type to
600 inferior pointer.
601 * record-full.c (record_full_core_target::has_execution): Change
602 parameter type to inferior pointer.
603 * target.c (target_has_execution_1): Change parameter type to
604 inferior pointer.
605 (target_has_execution_current): Adjust.
606 * target.h (target_ops::has_execution): Change parameter type to
607 inferior pointer.
608 (target_has_execution_1): Change parameter type to inferior
609 pointer. Change return type to bool.
610 * tracefile.h (tracefile_target::has_execution): Change parameter
611 type to inferior pointer.
612
74375d18
PA
6132020-01-10 Pedro Alves <palves@redhat.com>
614
615 * exceptions.c (print_flush): Remove current_top_target() check.
616
acdf84a6
PA
6172020-01-10 Pedro Alves <palves@redhat.com>
618
619 * remote.c (show_remote_exec_file): Show the current inferior's
620 exec-file instead of the command variable's value.
621
ec506636
PA
6222020-01-10 Pedro Alves <palves@redhat.com>
623
624 * record-full.c (record_full_resume_ptid): New global.
625 (record_full_target::resume): Set it.
626 (record_full_wait_1): Use record_full_resume_ptid instead of
627 inferior_ptid.
628
873657b9
PA
6292020-01-10 Pedro Alves <palves@redhat.com>
630
631 * gdbthread.h (scoped_restore_current_thread)
632 <dont_restore, restore, m_dont_restore>: Declare.
633 * thread.c (thread_alive): Add assertion. Return bool.
634 (switch_to_thread_if_alive): New.
635 (prune_threads): Switch inferior/thread.
636 (print_thread_info_1): Switch thread before calling target methods.
637 (scoped_restore_current_thread::restore): New, factored out from
638 ...
639 (scoped_restore_current_thread::~scoped_restore_current_thread):
640 ... this.
641 (scoped_restore_current_thread::scoped_restore_current_thread):
642 Add assertion.
643 (thread_apply_all_command, thread_select): Use
644 switch_to_thread_if_alive.
645
7f0ae84c
GB
6462020-01-10 George Barrett <bob@bob131.so>
647
648 * stap-probe.c (stap_modify_semaphore): Don't check for null
649 semaphores.
650 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
651 for null semaphores.
652
f5a7c406
AB
6532020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
654
655 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
656 all source windows, and maintain horizontal scroll status while
657 doing so.
658
9ae6bf64
TT
6592020-01-09 Tom Tromey <tom@tromey.com>
660
661 PR tui/18932:
662 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
663 update_source_window, not print_source_lines.
664
b2efe70c
AB
6652020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
666
667 * tui/tui.c (tui_enable): Register tui hooks after calling
668 tui_display_main.
669
5f23a082
CB
6702020-01-09 Christian Biesinger <cbiesinger@google.com>
671
672 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
673
3061113b
SM
6742020-01-08 Simon Marchi <simon.marchi@efficios.com>
675
676 * thread.c (print_thread_info_1): Fix indentation.
677
57d75002
CB
6782020-01-09 Christian Biesinger <cbiesinger@google.com>
679
680 * symtab.c (general_symbol_info::compute_and_set_names): Move the
681 unique_xmalloc_ptr outside the if to always free the demangled name.
682
6a053cb1
TT
6832020-01-08 Tom Tromey <tromey@adacore.com>
684
685 * xcoffread.c (enter_line_range, read_xcoff_symtab)
686 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
687 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
688 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
689 Remove.
690 (section_offsets): New typedef.
691 * symtab.c (fixup_section, get_msymbol_address): Update.
692 * symmisc.c (dump_msymbols): Update.
693 * symfile.h (relative_addr_info_to_section_offsets)
694 (symfile_map_offsets_to_segments): Update.
695 * symfile.c (build_section_addr_info_from_objfile)
696 (init_objfile_sect_indices): Update.
697 (struct place_section_arg): Change type of "offsets".
698 (place_section): Update.
699 (relative_addr_info_to_section_offsets): Change type of
700 "section_offsets". Remove "num_sections" parameter.
701 (default_symfile_offsets, syms_from_objfile_1)
702 (set_objfile_default_section_offset): Update.
703 (reread_symbols): No need to preserve section offsets by hand.
704 (symfile_map_offsets_to_segments): Change type of "offsets".
705 * stap-probe.c (relocate_address): Update.
706 * stabsread.h (process_one_symbol): Update.
707 * solib-target.c (struct lm_info_target) <offsets>: Change type.
708 (solib_target_relocate_section_addresses): Update.
709 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
710 Update.
711 * solib-frv.c (frv_relocate_main_executable): Update.
712 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
713 * solib-aix.c (solib_aix_get_section_offsets): Change return
714 type.
715 (solib_aix_solib_create_inferior_hook): Update.
716 * remote.c (remote_target::get_offsets): Update.
717 * psymtab.c (find_pc_sect_psymtab): Update.
718 * psympriv.h (struct partial_symbol) <address, text_low,
719 text_high>: Update.
720 * objfiles.h (obj_section_offset): Update.
721 (struct objfile) <section_offsets>: Change type.
722 <num_sections>: Remove.
723 (objfile_relocate): Update.
724 * objfiles.c (entry_point_address_query): Update
725 (relocate_one_symbol): Change type of "section_offsets".
726 (objfile_relocate1, objfile_relocate1): Change type of
727 "new_offsets".
728 (objfile_rebase1): Update.
729 * mipsread.c (mipscoff_symfile_read): Update.
730 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
731 parameter.
732 * mdebugread.c (parse_symbol): Change type of "section_offsets".
733 (parse_external, psymtab_to_symtab_1): Update.
734 * machoread.c (macho_symfile_offsets): Update.
735 * ia64-tdep.c (ia64_find_unwind_table): Update.
736 * hppa-tdep.c (read_unwind_info): Update.
737 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
738 * dwarf2read.c (create_addrmap_from_index)
739 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
740 (process_psymtab_comp_unit_reader, add_partial_symbol)
741 (add_partial_subprogram, process_full_comp_unit)
742 (read_file_scope, read_func_scope, read_lexical_block_scope)
743 (read_call_site_scope, dwarf2_rnglists_process)
744 (dwarf2_ranges_process, dwarf2_ranges_read)
745 (dwarf_decode_lines_1, var_decode_location, new_symbol)
746 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
747 Update.
748 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
749 Update.
750 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
751 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
752 (process_one_symbol): Change type of "section_offsets".
753 * ctfread.c (get_objfile_text_range): Update.
754 * coffread.c (coff_symtab_read, enter_linenos)
755 (process_coff_symbol): Update.
756 * coff-pe-read.c (add_pe_forwarded_sym): Update.
757 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
758
456e800a
TT
7592020-01-08 Tom Tromey <tromey@adacore.com>
760
761 * dwarf2read.c (parse_macro_definition): Use std::string.
762 (parse_macro_definition): Likewise.
763
6dfa2fc2
TT
7642020-01-08 Tom Tromey <tromey@adacore.com>
765
766 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
767 (ATTR_ALLOC_CHUNK): Remove.
768
421d1616
TT
7692020-01-08 Tom Tromey <tromey@adacore.com>
770
771 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
772
43816ebc
TT
7732020-01-08 Tom Tromey <tromey@adacore.com>
774
775 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
776 (dwarf2_compute_name, open_dwo_file): Likewise.
777 (process_enumeration_scope): Use std::vector.
778 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
779 (partial_die_info::fixup, dwarf2_start_subfile)
780 (guess_full_die_structure_name, dwarf2_name): Likewise.
781 (determine_prefix): Update.
782 (guess_full_die_structure_name): Make return type const.
783 (partial_die_full_name): Return unique_xmalloc_ptr.
784 (DW_FIELD_ALLOC_CHUNK): Remove.
785
4212d509
TT
7862020-01-07 Tom Tromey <tromey@adacore.com>
787
788 PR build/24937:
789 * stap-probe.c (class stap_static_probe_ops): Add constructor.
790
06a6207a
JT
7912020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
792
793 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
794
153d79c4
AB
7952020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
796
797 * stack.c (print_frame_info): Move disassemble_next_line code
798 inside source_print block.
799
66182876
EZ
8002020-01-06 Eli Zaretskii <eliz@gnu.org>
801
802 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
803 gdb/signals.h, as we are now using native signal symbols.
804
cbfa8581
SV
8052020-01-06 Shahab Vahedi <shahab@synopsys.com>
806
807 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
808 overflow by an early check of content vs threshold.
809 * tui/tui-source.c (tui_source_window::line_is_displayed):
810 Likewise.
811
3f602821
EZ
8122020-01-06 Eli Zaretskii <eliz@gnu.org>
813
814 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
815
a08c904d
JT
8162020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
817
818 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
819 export table if no section contains it's RVA.
820
89a65580
EZ
8212020-01-06 Eli Zaretskii <eliz@gnu.org>
822
823 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
824
8b7fcda2
HD
8252020-01-06 Hannes Domani <ssbssa@yahoo.de>
826
827 * source.c (print_source_lines_base): Set last_line_listed.
828
a61b4f69
SV
8292020-01-06 Shahab Vahedi <shahab@synopsys.com>
830
831 * tui/tui-disasm.c: Remove trailing spaces.
832
559e7e50
EZ
8332020-01-06 Eli Zaretskii <eliz@gnu.org>
834 Pedro Alves <palves@redhat.com>
835
836 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
837 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
838 (windows_gdb_signal_to_target): New function, uses the above
839 enumeration to convert GDB internal signal codes to equivalent
840 Windows codes.
841 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
842 * windows-nat.c: Include "gdb_wait.h".
843 (get_windows_debug_event): Extract the fatal exception from the
844 exit status and convert to the equivalent Posix signal number.
845 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
846 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
847 * gdbsupport/gdb_wait.c: New file, implements
848 windows_status_to_termsig.
849 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
850 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
851
f2302a34
AB
8522020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
853
854 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
855 show_layout.
856
6a5206eb
LM
8572020-01-05 Luis Machado <luis.machado@linaro.org>
858
859 * aarch64-linux-nat.c
860 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
861 and bfd_mach_aarch64.
862
6ec1d75e
PW
8632020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
864
865 * ui-file.c (stdio_file::can_emit_style_escape)
866 (tee_file::can_emit_style_escape): Ensure style is used also on
867 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
868 to gdb_stdout.
869 * main.c (set_gdb_data_directory): Use file style to output the
870 warning that the given pathname is not a directory.
871 * top.c (show_history_filename, gdb_safe_append_history)
872 (show_gdb_datadir): Use file style.
873
44f81a76
HD
8742020-01-03 Hannes Domani <ssbssa@yahoo.de>
875
876 * solib-target.c (struct lm_info_target):
877 Change offsets to be a unique_xmalloc_ptr.
878 (solib_target_relocate_section_addresses): Update.
879
25057eb0
HD
8802020-01-03 Hannes Domani <ssbssa@yahoo.de>
881
882 * windows-nat.c (windows_clear_solib): Free so_list linked list.
883
6e2118f5
BE
8842020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
885
886 * MAINTAINERS (Write After Approval): Add myself.
887
8133c7dc
LM
8882020-01-02 Luis Machado <luis.machado@linaro.org>
889
890 * proc-service.c (get_ps_regcache): Remove reference to obsolete
891 Cell BE architecture.
892 * target.h (struct target_ops) <thread_architecture>: Likewise.
893
48189bec
HD
8942020-01-01 Hannes Domani <ssbssa@yahoo.de>
895
896 * Makefile.in: Use INSTALL_PROGRAM_ENV.
897
ead1063b
HD
8982020-01-01 Hannes Domani <ssbssa@yahoo.de>
899
900 * MAINTAINERS (Write After Approval): Add myself.
901
e5d78223
JB
9022020-01-01 Joel Brobecker <brobecker@adacore.com>
903
904 * gdbarch.sh: Update copyright year range of generated files.
905
b811d2c2
JB
9062020-01-01 Joel Brobecker <brobecker@adacore.com>
907
908 Update copyright year range in all GDB files.
909
5f4def5c
JB
9102020-01-01 Joel Brobecker <brobecker@adacore.com>
911
912 * copyright.py: Convert to Python 3.
913
51fd4002
JB
9142020-01-01 Joel Brobecker <brobecker@adacore.com>
915
916 * copyright.py: Adapt after move of gnulib directory from gdb
917 directory to toplevel directory.
918
5fb651f2
JB
9192020-01-01 Joel Brobecker <brobecker@adacore.com>
920
921 * copyright.py (main): Exit if run from the wrong directory.
922
5dd8bf88
JB
9232020-01-01 Joel Brobecker <brobecker@adacore.com>
924
925 * top.c (print_gdb_version): Change copyright year to 2020.
926
9f71dacb 9272020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 928
9f71dacb 929 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 930
9f71dacb 931For older changes see ChangeLog-2019.
c906108c
SS
932\f
933Local Variables:
934mode: change-log
935left-margin: 8
936fill-column: 74
937version-control: never
57da7796 938coding: utf-8
c906108c 939End:
This page took 2.402536 seconds and 4 git commands to generate.