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