Commit | Line | Data |
---|---|---|
a6dbe5df PA |
1 | 2009-05-06 Pedro Alves <pedro@codesourcery.com> |
2 | ||
3 | PR server/10048 | |
4 | ||
5 | * linux-low.c (must_set_ptrace_flags): Delete. | |
6 | (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead | |
7 | of the global. | |
8 | (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set | |
9 | `lwp->must_set_ptrace_flags' instead. | |
ba42693b | 10 | (linux_wait_for_event_1): Set ptrace options here. |
a6dbe5df PA |
11 | (linux_wait_1): ... not here. |
12 | ||
5091eb23 DE |
13 | 2009-04-30 Doug Evans <dje@google.com> |
14 | ||
9f767825 DE |
15 | * inferiors.c (started_inferior_callback): New function. |
16 | (attached_inferior_callback): New function. | |
17 | (have_started_inferiors_p, have_attached_inferiors_p): New functions. | |
18 | * server.c (print_started_pid, print_attached_pid): New functions. | |
19 | (detach_or_kill_for_exit): New function. | |
20 | (main): Call it instead of for_each_inferior (kill_inferior_callback). | |
21 | * server.h (have_started_inferiors_p): Declare. | |
22 | (have_attached_inferiors_p): Declare. | |
23 | ||
5091eb23 DE |
24 | * inferiors.c (remove_process): Fix memory leak, free process. |
25 | * linux-low.c (linux_remove_process): New function. | |
26 | (linux_kill): Call it instead of remove_process. | |
27 | (linux_detach, linux_wait_1): Ditto. | |
28 | ||
155c8968 PA |
29 | 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net> |
30 | ||
31 | * configure.srv: Add x86 Windows CE target. | |
32 | ||
7fe519cb UW |
33 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
34 | ||
35 | * inferiors.c (get_thread_process): Make global. | |
36 | * server.h (get_thread_process): Add prototype. | |
37 | * thread-db.c (find_one_thread): Use get_thread_process | |
38 | instead of current_process. | |
39 | (thread_db_get_tls_address): Do not crash if called when | |
40 | thread layer is not yet initialized. | |
41 | ||
5472f405 UW |
42 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
43 | ||
44 | * remote-utils.c (prepare_resume_reply): Null-terminate packet. | |
45 | * spu-low.c (current_tid): Rename to ... | |
46 | (current_ptid): ... this. | |
47 | (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory, | |
48 | spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use | |
49 | ptid_get_lwp (current_ptid) instead of current_tid. | |
50 | (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument | |
51 | instead of current_tid. Use find_process_pid to verify pid | |
52 | argument is valid. Pass proper argument to remove_process. | |
53 | (spu_thread_alive): Compare current_ptid instead of current_tid. | |
54 | (spu_resume): Likewise. | |
55 | ||
55ac2b99 PA |
56 | 2009-04-02 Pedro Alves <pedro@codesourcery.com> |
57 | ||
58 | * linux-low.c (usr_store_inferior_registers): Declare local `pid' | |
59 | variable. | |
60 | ||
95954743 PA |
61 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
62 | ||
63 | Implement the multiprocess extensions, and add linux multiprocess | |
64 | support. | |
65 | ||
66 | * server.h (ULONGEST): Declare. | |
67 | (struct ptid, ptid_t): New. | |
68 | (minus_one_ptid, null_ptid): Declare. | |
69 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) | |
70 | (ptid_get_tid, ptid_equal, ptid_is_pid): Declare. | |
71 | (struct inferior_list_entry): Change `id' type from unsigned from | |
72 | to ptid_t. | |
73 | (struct sym_cache, struct breakpoint, struct | |
74 | process_info_private): Forward declare. | |
75 | (struct process_info): Declare. | |
76 | (current_process): Declare. | |
77 | (all_processes): Declare. | |
78 | (initialize_inferiors): Declare. | |
79 | (add_thread): Adjust to use ptid_t. | |
80 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto. | |
81 | (add_process, remove_process, find_thread_pid): Declare. | |
82 | (find_inferior_id): Adjust to use ptid_t. | |
83 | (cont_thread, general_thread, step_thread): Change type to ptid_t. | |
84 | (multi_process): Declare. | |
85 | (push_event): Adjust to use ptid_t. | |
86 | (read_ptid, write_ptid): Declare. | |
87 | (prepare_resume_reply): Adjust to use ptid_t. | |
88 | (clear_symbol_cache): Declare. | |
89 | * inferiors.c (all_processes): New. | |
90 | (null_ptid, minus_one_ptid): New. | |
91 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) | |
92 | (ptid_get_tid, ptid_equal, ptid_is_pid): New. | |
93 | (add_thread): Change unsigned long to ptid. Remove gdb_id | |
94 | parameter. Adjust. | |
95 | (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid. | |
96 | (gdb_id_to_thread): Rename to ... | |
97 | (find_thread_pid): ... this. Change unsigned long to ptid. | |
98 | (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid. | |
99 | (loaded_dll, pull_pid_from_list): Adjust. | |
100 | (add_process, remove_process, find_process_pid) | |
101 | (get_thread_process, current_process, initialize_inferiors): New. | |
102 | * target.h (struct thread_resume) <thread>: Change type to ptid_t. | |
103 | (struct target_waitstatus) <related_pid>: Ditto. | |
104 | (struct target_ops) <kill, detach>: Add `pid' argument. Change | |
105 | return type to int. | |
106 | (struct target_ops) <join>: Add `pid' argument. | |
107 | (struct target_ops) <thread_alive>: Change pid's type to ptid_t. | |
108 | (struct target_ops) <wait>: Add `ptid' field. Change return type | |
109 | to ptid. | |
110 | (kill_inferior, detach_inferior, join_inferior): Add `pid' argument. | |
111 | (mywait): Add `ptid' argument. Change return type to ptid_t. | |
112 | (target_pid_to_str): Declare. | |
113 | * target.c (set_desired_inferior): Adjust to use ptids. | |
114 | (mywait): Add new `ptid' argument. Adjust. | |
115 | (target_pid_to_str): New. | |
116 | * mem-break.h (free_all_breakpoints): Declare. | |
117 | * mem-break.c (breakpoints): Delelete. | |
118 | (set_breakpoint_at, delete_breakpoint, find_breakpoint_at) | |
119 | (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust | |
120 | to use per-process breakpoint list. | |
121 | (free_all_breakpoints): New. | |
122 | * remote-utils.c (struct sym_cache) <name>: Drop `const'. | |
123 | (symbol_cache, all_symbols_looked_up): Delete. | |
124 | (hexchars): New. | |
125 | (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one, | |
126 | read_ptid): New. | |
127 | (prepare_resume_reply): Change ptid argument's type from unsigned | |
128 | long to ptid_t. Adjust. Implement W;process and X;process. | |
129 | (free_sym_cache, clear_symbol_cache): New. | |
130 | (look_up_one_symbol): Adjust to per-process symbol cache. * | |
131 | * server.c (cont_thread, general_thread, step_thread): Change type | |
132 | to ptid_t. | |
133 | (attached): Delete. | |
134 | (multi_process): New. | |
135 | (last_ptid): Change type to ptid_t. | |
136 | (struct vstop_notif) <ptid>: Change type to ptid_t. | |
137 | (queue_stop_reply, push_event): Change `ptid' argument's type to | |
138 | ptid_t. | |
139 | (discard_queued_stop_replies): Add `pid' argument. | |
140 | (start_inferior): Adjust to use ptids. Adjust to mywait interface | |
141 | changes. Don't reference the `attached' global. | |
142 | (attach_inferior): Adjust to mywait interface changes. | |
143 | (handle_query): Adjust to use ptids. Parse GDB's qSupported | |
144 | features. Handle and report "multiprocess+". Handle | |
145 | "qAttached:PID". | |
146 | (handle_v_cont): Adjust to use ptids. Adjust to mywait interface | |
147 | changes. | |
148 | (handle_v_kill): New. | |
149 | (handle_v_stopped): Adjust to use target_pid_to_str. | |
150 | (handle_v_requests): Allow multiple attaches and runs when | |
151 | multiprocess extensions are in effect. Handle "vKill". | |
152 | (myresume): Adjust to use ptids. | |
153 | (queue_stop_reply_callback): Add `arg' parameter. Handle it. | |
154 | (handle_status): Adjust to discard_queued_stop_replies interface | |
155 | change. | |
156 | (first_thread_of, kill_inferior_callback) | |
157 | (detach_or_kill_inferior_callback, join_inferiors_callback): New. | |
158 | (main): Call initialize_inferiors. Adjust to use ptids, killing | |
159 | and detaching from all inferiors. Handle multiprocess packet | |
160 | variants. | |
161 | * linux-low.h: Include gdb_proc_service.h. | |
162 | (struct process_info_private): New. | |
163 | (struct linux_target_ops) <pid_of>: Use ptid_get_pid. | |
164 | <lwpid_of>: Use ptid_get_lwp. | |
165 | (get_lwp_thread): Adjust. | |
166 | (struct lwp_info): Add `dead' member. | |
167 | (find_lwp_pid): Declare. | |
168 | * linux-low.c (thread_db_active): Delete. | |
169 | (new_inferior): Adjust comment. | |
170 | (inferior_pid): Delete. | |
171 | (linux_add_process): New. | |
172 | (handle_extended_wait): Adjust. | |
173 | (add_lwp): Change unsigned long to ptid. | |
174 | (linux_create_inferior): Add process to processes table. Adjust | |
175 | to use ptids. Don't set new_inferior here. | |
176 | (linux_attach_lwp): Rename to ... | |
177 | (linux_attach_lwp_1): ... this. Add `initial' argument. Handle | |
178 | it. Adjust to use ptids. | |
179 | (linux_attach_lwp): New. | |
180 | (linux_attach): Add process to processes table. Don't set | |
181 | new_inferior here. | |
182 | (struct counter): New. | |
183 | (second_thread_of_pid_p, last_thread_of_process_p): New. | |
184 | (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to | |
185 | multiple processes. | |
186 | (linux_kill): Add `pid' argument. Handle it. Adjust to multiple | |
187 | processes. Remove process from process table. | |
188 | (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust | |
189 | to multiple processes. | |
190 | (any_thread_of): New. | |
191 | (linux_detach): Add `pid' argument, and handle it. Remove process | |
192 | from processes table. | |
193 | (linux_join): Add `pid' argument. Handle it. | |
194 | (linux_thread_alive): Change unsighed long argument to ptid_t. | |
195 | Consider dead lwps as not being alive. | |
196 | (status_pending_p): Rename `dummy' argument to `arg'. Filter out | |
197 | threads we're not interested in. | |
198 | (same_lwp, find_lwp_pid): New. | |
199 | (linux_wait_for_lwp): Change `pid' argument's type from int to | |
200 | ptid_t. Adjust. | |
201 | (linux_wait_for_event): Rename to ... | |
202 | (linux_wait_for_event_1): ... this. Change `pid' argument's type | |
203 | from int to ptid_t. Adjust. | |
204 | (linux_wait_for_event): New. | |
205 | (linux_wait_1): Add `ptid' argument. Change return type to | |
206 | ptid_t. Adjust. Use last_thread_of_process_p. Remove processes | |
207 | that exit from the process table. | |
208 | (linux_wait): Add `ptid' argument. Change return type to ptid_t. | |
209 | Adjust. | |
210 | (mark_lwp_dead): New. | |
211 | (wait_for_sigstop): Adjust to use ptids. If a process exits while | |
212 | stopping all threads, mark its main lwp as dead. | |
213 | (linux_set_resume_request, linux_resume_one_thread): Adjust to use | |
214 | ptids. | |
215 | (fetch_register, usr_store_inferior_registers) | |
216 | (regsets_fetch_inferior_registers) | |
217 | (regsets_store_inferior_registers, linux_read_memory) | |
218 | (linux_write_memory): Inline `inferior_pid'. | |
219 | (linux_look_up_symbols): Adjust to use per-process | |
220 | `thread_db_active'. | |
221 | (linux_request_interrupt): Adjust to use ptids. | |
222 | (linux_read_auxv): Inline `inferior_pid'. | |
223 | (initialize_low): Don't reference thread_db_active. | |
224 | * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove. | |
225 | * proc-service.c (ps_lgetregs): Use find_lwp_pid. | |
226 | (ps_getpid): Return the pid of the current inferior. | |
227 | * thread-db.c (proc_handle, thread_agent): Delete. | |
228 | (thread_db_create_event, thread_db_enable_reporting): Adjust to | |
229 | per-process data. | |
230 | (find_one_thread): Change argument type to ptid_t. Adjust to | |
231 | per-process data. | |
232 | (maybe_attach_thread): Adjust to per-process data and ptids. | |
233 | (thread_db_find_new_threads): Ditto. | |
234 | (thread_db_init): Ditto. | |
235 | * spu-low.c (spu_create_inferior, spu_attach): Add process to | |
236 | processes table. Adjust to use ptids. | |
237 | (spu_kill, spu_detach): Adjust interface. Remove process from | |
238 | processes table. | |
239 | (spu_join, spu_thread_alive): Adjust interface. | |
240 | (spu_wait): Adjust interface. Remove process from processes | |
241 | table. Adjust to use ptids. | |
242 | * win32-low.c (current_inferior_tid): Delete. | |
243 | (current_inferior_ptid): New. | |
244 | (debug_event_ptid): New. | |
245 | (thread_rec): Take a ptid. Adjust. | |
246 | (child_add_thread): Add `pid' argument. Adjust to use ptids. | |
247 | (child_delete_thread): Ditto. | |
248 | (do_initial_child_stuff): Add `attached' argument. Add process to | |
249 | processes table. | |
250 | (child_fetch_inferior_registers, child_store_inferior_registers): | |
251 | Adjust. | |
252 | (win32_create_inferior): Pass 0 to do_initial_child_stuff. | |
253 | (win32_attach): Pass 1 to do_initial_child_stuff. | |
254 | (win32_kill): Adjust interface. Remove process from processes | |
255 | table. | |
256 | (win32_detach): Ditto. | |
257 | (win32_join): Adjust interface. | |
258 | (win32_thread_alive): Take a ptid. | |
259 | (win32_resume): Adjust to use ptids. | |
260 | (get_child_debug_event): Ditto. | |
261 | (win32_wait): Adjust interface. Remove exiting process from | |
262 | processes table. | |
263 | ||
bd99dc85 PA |
264 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
265 | ||
266 | Non-stop mode support. | |
267 | ||
268 | * server.h (non_stop): Declare. | |
269 | (gdb_client_data, handler_func): Declare. | |
270 | (delete_file_handler, add_file_handler, start_event_loop): | |
271 | Declare. | |
272 | (handle_serial_event, handle_target_event, push_event) | |
273 | (putpkt_notif): Declare. | |
274 | * target.h (enum resume_kind): New. | |
275 | (struct thread_resume): Replace `step' field by `kind' field. | |
276 | (TARGET_WNOHANG): Define. | |
277 | (struct target_ops) <wait>: Add `options' argument. | |
278 | <supports_non_stop, async, start_non_stop>: New fields. | |
279 | (target_supports_non_stop, target_async): New. | |
280 | (start_non_stop): Declare. | |
281 | (mywait): Add `options' argument. | |
282 | * target.c (mywait): Add `options' argument. Print child exit | |
283 | notifications here. | |
284 | (start_non_stop): New. | |
285 | * server.c (non_stop, own_buf, mem_buf): New globals. | |
286 | (struct vstop_notif): New. | |
287 | (notif_queue): New global. | |
288 | (queue_stop_reply, push_event, discard_queued_stop_replies) | |
289 | (send_next_stop_reply): New. | |
290 | (start_inferior): Adjust to use resume_kind. Adjust to mywait | |
291 | interface changes. | |
292 | (attach_inferior): In non-stop mode, don't wait for the target | |
293 | here. | |
294 | (handle_general_set): Handle QNonStop. | |
295 | (handle_query): When handling qC, return the current general | |
296 | thread, instead of the first thread of the list. | |
297 | (handle_query): If the backend supports non-stop mode, include | |
298 | QNonStop+ in the qSupported query response. | |
299 | (handle_v_cont): Adjust to use resume_kind. Handle resume_stop | |
300 | and non-stop mode. | |
301 | (handle_v_attach, handle_v_run): Handle non-stop mode. | |
302 | (handle_v_stopped): New. | |
303 | (handle_v_requests): Report support for vCont;t. Handle vStopped. | |
304 | (myresume): Adjust to use resume_kind. Handle non-stop. | |
305 | (queue_stop_reply_callback): New. | |
306 | (handle_status): Handle non-stop mode. | |
307 | (main): Clear non_stop flag on reconnection. Use the event-loop. | |
308 | Refactor serial protocol handling from here ... | |
309 | (process_serial_event): ... to this new function. When GDB | |
310 | selects any thread, select one here. In non-stop mode, wait until | |
311 | GDB acks all pending events before exiting. | |
312 | (handle_serial_event, handle_target_event): New. | |
313 | * remote-utils.c (remote_open): Install remote_desc in the event | |
314 | loop. | |
315 | (remote_close): Remove remote_desc from the event loop. | |
316 | (putpkt_binary): Rename to... | |
317 | (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it. | |
318 | (putpkt_binary): New as wrapper around putpkt_binary_1. | |
319 | (putpkt_notif): New. | |
320 | (prepare_resume_reply): In non-stop mode, don't change the | |
321 | general_thread. | |
322 | * event-loop.c: New. | |
323 | * Makefile.in (OBJ): Add event-loop.o. | |
324 | (event-loop.o): New rule. | |
325 | ||
326 | * linux-low.h (pid_of): Moved here. | |
327 | (lwpid_of): New. | |
328 | (get_lwp_thread): Use lwpid_of. | |
329 | (struct lwp_info): Delete `lwpid' field. Add `suspended' field. | |
330 | * linux-low.c (pid_of): Delete. | |
331 | (inferior_pid): Use lwpid_of. | |
332 | (linux_event_pipe): New. | |
333 | (target_is_async_p): New. | |
334 | (delete_lwp): New. | |
335 | (handle_extended_wait): Use lwpid_of. | |
336 | (add_lwp): Don't set lwpid field. | |
337 | (linux_attach_lwp): Adjust debug output. Use lwpid_of. | |
338 | (linux_kill_one_lwp): If killing a running lwp, stop it first. | |
339 | Use lwpid_of. Adjust to linux_wait_for_event interface changes. | |
340 | (linux_detach_one_lwp): If detaching from a running lwp, stop it | |
341 | first. Adjust to linux_wait_for_event interface changes. Use | |
342 | lwpid_of. | |
343 | (linux_detach): Don't delete the main lwp here. | |
344 | (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of. | |
345 | (status_pending_p): Don't consider explicitly suspended lwps. | |
346 | (linux_wait_for_lwp): Take an integer pid instead of a lwp_info | |
347 | pointer. Add OPTIONS argument. Change return type to int. Use | |
348 | my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of. | |
349 | (linux_wait_for_event): Take an integer pid instead of a lwp_info | |
350 | pointer. Add status pointer argument. Return a pid instead of a | |
351 | status. Use lwpid_of. Adjust to linux_wait_for_lwp interface | |
352 | changes. In non-stop mode, don't switch to a random thread. | |
353 | (linux_wait): Rename to... | |
354 | (linux_wait_1): ... this. Add target_options argument, and handle | |
355 | it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode, | |
356 | don't handle the continue thread. Handle TARGET_WNOHANG. Merge | |
357 | clean exit and signal exit code. Don't stop all threads in | |
358 | non-stop mode. In all-stop mode, only stop all threads when | |
359 | reporting a stop to GDB. Handle explicit thread stop requests. | |
360 | (async_file_flush, async_file_mark): New. | |
361 | (linux_wait): New. | |
362 | (send_sigstop): Use lwpid_of. | |
363 | (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event | |
364 | interface changes. In non-stop mode, don't switch to a random | |
365 | thread. | |
366 | (linux_resume_one_lwp): Use lwpid_of. | |
367 | (linux_continue_one_thread, linux_queue_one_thread): Merge into ... | |
368 | (linux_resume_one_thread): ... this. Handle resume_stop. In | |
369 | non-stop mode, don't look for pending flag in all threads. | |
370 | (resume_status_pending_p): Don't consider explicitly suspended | |
371 | threads. | |
372 | (my_waitpid): Reimplement. Emulate __WALL. | |
373 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): | |
374 | Use lwpid_of. | |
375 | (sigchld_handler, linux_supports_non_stop, linux_async) | |
376 | (linux_start_non_stop): New. | |
377 | (linux_target_ops): Register linux_supports_non_stop, linux_async | |
378 | and linux_start_non_stop. | |
379 | (initialize_low): Install SIGCHLD handler. | |
380 | * thread-db.c (thread_db_create_event, find_one_thread) | |
381 | (thread_db_get_tls_address): Use lwpid_of. | |
382 | * win32-low.c (win32_detach): Adjust to use resume_kind. | |
383 | (win32_wait): Add `options' argument. | |
384 | * spu-low.c (spu_resume): Adjust to use resume_kind. | |
385 | (spu_wait): Add `options' argument. | |
386 | ||
5b1c542e PA |
387 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
388 | ||
389 | Decouple target code from remote protocol. | |
390 | ||
391 | * target.h (enum target_waitkind): New. | |
392 | (struct target_waitstatus): New. | |
393 | (struct target_ops) <wait>: Return an unsigned long. Take a | |
394 | target_waitstatus pointer instead of a char pointer. | |
395 | (mywait): Likewise. | |
396 | * target.c (mywait): Change prototype to return an unsigned long. | |
397 | Take a target_waitstatus pointer instead of a char pointer. Adjust. | |
398 | * server.h (thread_from_wait, old_thread_from_wait): Delete | |
399 | declarations. | |
400 | (prepare_resume_reply): Change prototype to take a | |
401 | target_waitstatus. | |
402 | * server.c (thread_from_wait, old_thread_from_wait): Delete. | |
403 | (last_status, last_ptid): New. | |
404 | (start_inferior): Remove "statusptr" argument. Adjust. Return a | |
405 | pid instead of a signal. | |
406 | (attach_inferior): Remove "status" and "signal" parameters. | |
407 | Adjust. | |
408 | (handle_query): For qGetTLSAddr, parse the thread id with strtol, | |
409 | not as an address. | |
410 | (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill) | |
411 | (handle_v_requests, myresume): Remove "status" and "signal" | |
412 | parameters. Adjust. | |
413 | (handle_status): New. | |
414 | (main): Delete local `status'. Adjust. | |
415 | * remote-utils.c: Include target.h. | |
416 | (prepare_resume_reply): Change prototype to take a | |
417 | target_waitstatus. Adjust. | |
418 | ||
419 | * linux-low.c (linux_wait): Adjust to new target_ops->wait | |
420 | interface. | |
421 | * spu-low.c (spu_wait): Adjust. | |
422 | * win32-low.c (enum target_waitkind, struct target_waitstatus): | |
423 | Delete. | |
424 | (win32_wait): Adjust. | |
425 | ||
2bd7c093 PA |
426 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
427 | ||
428 | * target.h (struct thread_resume): Delete leave_stopped member. | |
429 | (struct target_ops): Add a `n' argument to the `resume' callback. | |
430 | * server.c (start_inferior): Adjust. | |
431 | (handle_v_cont, myresume): Adjust. | |
432 | * linux-low.c (check_removed_breakpoint): Adjust to resume | |
433 | interface change, and to removed leave_stopped field. | |
434 | (resume_ptr): Delete. | |
435 | (struct thread_resume_array): New. | |
436 | (linux_set_resume_request): Add new `arg' parameter. Adjust to | |
437 | resume interface change. | |
438 | (linux_continue_one_thread, linux_queue_one_thread) | |
439 | (resume_status_pending_p): Check if the resume field is NULL | |
440 | instead of checking the leave_stopped member. | |
441 | (linux_resume): Adjust to the target resume interface change. | |
442 | * spu-low.c (spu_resume): Adjust to the target resume interface | |
443 | change. | |
444 | * win32-low.c (win32_detach, win32_resume): Ditto. | |
445 | ||
c35fafde PA |
446 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
447 | ||
448 | * linux-low.c (linux_wait_for_event): Don't clear the `stepping' | |
449 | flag. | |
450 | (wait_for_sigstop): Don't leave a finished single-step SIGTRAP | |
451 | pending. | |
452 | (linux_continue_one_thread): Only preserve the stepping flag if | |
453 | there's a pending breakpoint. | |
454 | ||
0a59d50b PA |
455 | 2009-03-31 Pedro Alves <pedro@codesourcery.com> |
456 | ||
457 | * server.c (main): After the inferior having exited, call | |
458 | remote_close before exiting gdbserver. | |
459 | ||
f04c6d38 TJB |
460 | 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com> |
461 | ||
462 | Fix size of FPSCR in Power 7 processors. | |
463 | * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define. | |
464 | (PPC_FEATURE_HAS_DFP): New #define. | |
465 | (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on | |
466 | size of the FPSCR. | |
467 | ||
78e5cee6 PA |
468 | 2009-03-23 Pedro Alves <pedro@codesourcery.com> |
469 | ||
470 | * server.c (handle_query) Whitespace and formatting. | |
471 | ||
1b3f6016 PA |
472 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
473 | ||
474 | * i387-fp.c, linux-arm-low.c, linux-cris-low.c, | |
475 | linux-crisv32-low.c, linux-i386-low.c, linux-low.c, | |
476 | linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c, | |
477 | linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c, | |
478 | regcache.c, remote-utils.c, server.c, spu-low.c, target.h, | |
479 | thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c, | |
480 | Makefile.in, configure.ac: Fix whitespace throughout. | |
481 | * configure: Regenerate. | |
482 | ||
a07b2135 PA |
483 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
484 | ||
485 | * inferiors.c (find_inferior): Make it safe for the callback | |
486 | function to delete the currently iterated inferior. | |
487 | ||
67cc2626 PA |
488 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
489 | ||
490 | * Makefile.in (linuw_low_h): Move higher. | |
491 | (thread-db.o): Depend on $(linux_low_h). | |
492 | ||
54a0b537 PA |
493 | 2009-03-17 Pedro Alves <pedro@codesourcery.com> |
494 | ||
495 | Rename "process" to "lwp" throughout. | |
496 | ||
497 | * linux-low.c (all_processes): Rename to... | |
498 | (all_lwps): ... this. | |
499 | (inferior_pid, handle_extended_wait, get_stop_pc): Adjust. | |
500 | (add_process): Rename to ... | |
501 | (add_lwp): ... this. Adjust. | |
502 | (linux_create_inferior): Adjust. | |
503 | (linux_attach_lwp): Adjust. | |
504 | (linux_attach): Adjust. | |
505 | (linux_kill_one_process): Rename to ... | |
506 | (linux_kill_one_lwp): ... this. Adjust. | |
507 | (linux_kill): Adjust. | |
508 | (linux_detach_one_process): Rename to ... | |
509 | (linux_detach_one_lwp): ... this. Adjust. | |
510 | (linux_detach): Adjust. | |
511 | (check_removed_breakpoint): Adjust. | |
512 | (status_pending_p): Adjust. | |
513 | (linux_wait_for_process): Rename to ... | |
514 | (linux_wait_for_lwp): ... this. Adjust. | |
515 | (linux_wait_for_event): Adjust. | |
516 | (send_sigstop): Adjust. | |
517 | (wait_for_sigstop): Adjust. | |
518 | (stop_all_processes): Rename to ... | |
519 | (stop_all_lwps): ... this. | |
520 | (linux_resume_one_process): Rename to ... | |
521 | (linux_resume_one_lwp): ... this. Adjust. | |
522 | (linux_set_resume_request, linux_continue_one_thread) | |
523 | (linux_queue_one_thread, resume_status_pending_p) | |
524 | (usr_store_inferior_registers, regsets_store_inferior_registers) | |
525 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): | |
526 | Adjust. | |
527 | * linux-low.h (get_process): Rename to ... | |
528 | (get_lwp): ... this. Adjust. | |
529 | (get_thread_process): Rename to ... | |
530 | (get_thread_lwp): ... this. Adjust. | |
531 | (get_process_thread): Rename to ... | |
532 | (get_lwp_thread): ... this. Adjust. | |
533 | (struct process_info): Rename to ... | |
534 | (struct lwp_info): ... this. | |
535 | (all_processes): Rename to ... | |
536 | (all_lwps): ... this. | |
537 | * proc-service.c (ps_lgetregs): Adjust. | |
538 | * thread-db.c (thread_db_create_event, find_one_thread) | |
539 | (maybe_attach_thread, thread_db_get_tls_address): Adjust. | |
540 | ||
0b16c5cf PA |
541 | 2009-03-14 Pedro Alves <pedro@codesourcery.com> |
542 | ||
543 | * server.c (handle_query): Handle "qAttached". | |
544 | ||
32de4b9d NS |
545 | 2009-03-13 Nathan Sidwell <nathan@codesourcery.com> |
546 | ||
547 | * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to | |
548 | GPLv3, update license URL. | |
549 | ||
2aecd87f DE |
550 | 2009-03-01 Doug Evans <dje@google.com> |
551 | ||
93efd302 | 552 | * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common. |
2aecd87f DE |
553 | (server_h): Add gdb_signals.h. |
554 | (signals.o): Update. | |
555 | * server.h (target_signal_from_host,target_signal_to_host_p) | |
556 | (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h. | |
557 | ||
86b1f9c5 PM |
558 | 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr> |
559 | ||
560 | * remote-utils.c (getpkt): Also generate remote-debug | |
561 | information if noack_mode is set. | |
562 | ||
4aa995e1 PA |
563 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
564 | ||
565 | * server.c (handle_query): Report qXfer:siginfo:read and | |
566 | qXfer:siginfo:write as supported and handle them. | |
567 | * target.h (struct target_ops) <qxfer_siginfo>: New field. | |
568 | * linux-low.c (linux_xfer_siginfo): New. | |
569 | (linux_target_ops): Set it. | |
570 | ||
62709adf PA |
571 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
572 | ||
573 | * server.c (gdbserver_usage): Mention --remote-debug. | |
574 | (main): Accept '--remote-debug' switch. | |
575 | ||
aef93bd7 DE |
576 | 2009-01-18 Doug Evans <dje@google.com> |
577 | ||
578 | * regcache.c (new_register_cache): No need to check result of xcalloc. | |
579 | * server.c (handle_search_memory): Back out calls to xmalloc, | |
580 | result is checked and error is returned to user upon failure. | |
581 | (handle_query): Ditto. Add more checks for result of malloc. | |
582 | (handle_v_cont): Check result of malloc, report error back to | |
583 | user upon failure. | |
584 | (handle_v_run): Ditto. Call freeargv. | |
585 | * server.h (freeargv): Declare. | |
586 | * utils.c (freeargv): New fn. | |
587 | ||
54363045 DE |
588 | 2009-01-15 Doug Evans <dje@google.com> |
589 | ||
f626972c DE |
590 | * gdbreplay.c (perror_with_name): Make arg const char *. |
591 | * server.h (target_signal_to_name): Make return type const char *. | |
0842e787 | 592 | * thread-db.c (thread_db_err_str): Make return type const char *. |
f626972c | 593 | * utils.c (perror_with_name): Make arg const char *. |
54363045 | 594 | |
18aae699 PA |
595 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
596 | ||
597 | * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE | |
598 | when handling a EXIT_PROCESS_DEBUG_EVENT. | |
599 | ||
ff703abe JB |
600 | 2009-01-06 Joel Brobecker <brobecker@adacore.com> |
601 | ||
602 | * gdbreplay.c (gdbreplay_version): Update copyright year. | |
603 | * server.c (gdbserver_version): Likewise. | |
604 | ||
f21cc1a2 | 605 | 2009-01-05 Doug Evans <dje@google.com> |
0e21c1ec DE |
606 | |
607 | * linux-low.c (linux_attach_lwp): Add some comments/fixmes. | |
f21cc1a2 | 608 | (handle_extended_wait): Improve comment. |
0e21c1ec | 609 | |
bca929d3 DE |
610 | 2008-12-13 Doug Evans <dje@google.com> |
611 | ||
612 | * utils.c (xmalloc,xcalloc,xstrdup): New fns. | |
613 | * server.h (ATTR_MALLOC): New macro. | |
614 | (xmalloc,xcalloc,xstrdup): Declare. | |
615 | * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup. | |
616 | * inferiors.c: Ditto. | |
617 | * linux-low.c: Ditto. | |
618 | * mem-break.c: Ditto. | |
619 | * regcache.c: Ditto. | |
620 | * remote-utils.c: Ditto. | |
621 | * server.c: Ditto. | |
622 | * target.c: Ditto. | |
623 | * win32-low.c: Ditto. | |
624 | ||
97438e3f DE |
625 | 2008-12-12 Doug Evans <dje@google.com> |
626 | ||
896c7fbb DE |
627 | * linux-low.c (linux_wait_for_process): Don't clobber current_inferior |
628 | in debugging printf. | |
629 | ||
97438e3f DE |
630 | * linux-low.c (handle_extended_wait): Simplify, use my_waitpid. |
631 | ||
e3b886f8 DE |
632 | 2008-12-09 Doug Evans <dje@google.com> |
633 | ||
634 | * linux-low.h (struct process_info): Delete member tid, unused. | |
635 | * thread-db.c (find_one_thread): Update. | |
636 | (maybe_attach_thread): Update. | |
637 | ||
07e059b5 VP |
638 | 2008-12-02 Pedro Alves <pedro@codesourcery.com> |
639 | ||
640 | * target.h (struct target_ops): Add qxfer_osdata member. | |
641 | * linux-low.c: Include ctype.h and pwd.h and sys/types.h | |
642 | and dirent.h. | |
643 | (linux_qxfer_osdata): New functions. | |
644 | (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata | |
645 | callback. | |
646 | * server.c (handle_query): Handle "qXfer:osdata:read:". | |
647 | * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish) | |
648 | (buffer_xml_printf): New functions. | |
649 | * server.h (struct buffer): New. | |
650 | (buffer_grow_str, buffer_grow_str0): New macros. | |
651 | (buffer_grow, buffer_free, buffer_init, buffer_finish) | |
652 | (buffer_xml_printf): Declare. | |
653 | ||
4cab47ab DE |
654 | 2008-11-24 Doug Evans <dje@google.com> |
655 | ||
656 | * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused. | |
657 | ||
f142445f DJ |
658 | 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com> |
659 | ||
660 | * server.c (handle_v_run): Always use the supplied argument list. | |
661 | ||
d0107bb6 BW |
662 | 2008-11-19 Bob Wilson <bob.wilson@acm.org> |
663 | ||
664 | * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4. | |
665 | (xtensa_regmap_table): Add entry for scompare1. | |
666 | ||
2c4ad781 TJB |
667 | 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com> |
668 | ||
669 | * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c, | |
670 | powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c, | |
671 | powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c, | |
672 | powerpc-isa205-64l.o, powerpc-isa205-64l.c, | |
673 | powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c, | |
674 | powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets. | |
675 | * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and | |
676 | XML target descriptions. | |
677 | * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR | |
678 | when inferior is running on an ISA 2.05 or later processor. Add | |
679 | special case to return offset for full 64-bit slot of FPSCR when | |
680 | in 32-bits. | |
681 | ||
dfb64f85 DJ |
682 | 2008-11-14 Daniel Gutson <dgutson@codesourcery.com> |
683 | ||
684 | * Makefile.in (SFILES, clean): Added sparc64 files. | |
685 | (reg-sparc64.o, reg-sparc64.c): New. | |
686 | * configure.srv (sparc*-*-linux*): New configuration. | |
687 | * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace | |
688 | syscall arguments for SPARC. | |
689 | (regsets_store_inferior_registers): Likewise. | |
690 | * linux-sparc-low.c: New file. | |
691 | ||
66b6e1dd DE |
692 | 2008-10-21 Doug Evans <dje@google.com> |
693 | ||
694 | * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete. | |
695 | (READLINE_DIR,READLINE_DEP): Delete. | |
696 | (INTERNAL_CFLAGS): Update. | |
697 | (LINTFLAGS): Update. | |
698 | ||
9b710a42 PA |
699 | 2008-10-10 Pedro Alves <pedro@codesourcery.com> |
700 | ||
701 | * server.c (handle_v_run): If GDB didn't specify an argv, use the | |
702 | whole argv from the last run, not just argv[0]. | |
703 | ||
5822d809 PA |
704 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
705 | ||
706 | * regcache.c (new_register_cache): Return NULL if the register | |
707 | cache size isn't known yet. | |
708 | (free_register_cache): Avoid dereferencing a NULL regcache. | |
709 | ||
74aac56f DJ |
710 | 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
711 | ||
712 | * configure.srv: Merge MIPS and MIPS64. | |
713 | ||
400b20f5 MR |
714 | 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org> |
715 | ||
716 | * Makefile.in (uninstall): Apply $(EXEEXT) too. | |
717 | ||
677c5bb1 LM |
718 | 2008-08-18 Luis Machado <luisgpm@br.ibm.com> |
719 | ||
720 | * Makefile.in: Add required vsx dependencies. | |
721 | ||
722 | * linux-ppc-low: Define PPC_FEATURE_HAS_VSX. | |
723 | Declare init_registers_powerpc_vsx32l. | |
724 | Declare init_registers_powerpc_vsx64l. | |
725 | Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS. | |
726 | (ppc_arch_setup): Check for VSX in hwcap. | |
727 | (ppc_fill_vsxregset): New function. | |
728 | (ppc_store_vsxregset): New function. | |
729 | Add new VSX entry in regset_info target_regsets. | |
730 | ||
731 | * configure.srv: Add new VSX dependencies. | |
732 | ||
a6f3e723 SL |
733 | 2008-08-12 Pedro Alves <pedro@codesourcery.com> |
734 | ||
735 | * remote-utils.c (noack_mode, transport_is_reliable): New globals. | |
736 | (remote_open): Set or clear transport_is_reliable. | |
737 | (putpkt_binary): Don't expect acks in noack mode. | |
738 | (getpkt): Don't send ack/nac in noack mode. | |
739 | * server.c (handle_general_set): Handle QStartNoAckMode. | |
740 | (handle_query): If connected by tcp pass QStartNoAckMode+ in | |
741 | qSupported. | |
742 | (main): Reset noack_mode on every connection. | |
743 | * server.h (noack_mode): Declare. | |
744 | ||
a417dc56 RW |
745 | 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
746 | ||
747 | * Makefile.in (GDBREPLAY_OBS): New variable. | |
748 | (gdbreplay$(EXEEXT)): Use it to avoid unportable $^. | |
749 | ||
3221518c UW |
750 | 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com> |
751 | Daniel Jacobowitz <dan@codesourcery.com> | |
752 | ||
753 | * linux-low.c (linux_resume_one_process): Ignore ESRCH. | |
754 | (usr_store_inferior_registers): Likewise. | |
755 | (regsets_store_inferior_registers): Likewise. | |
756 | ||
ec56be1b PA |
757 | 2008-07-31 Rolf Jansen <rj@surtec.com> |
758 | Pedro Alves <pedro@codesourcery.com> | |
759 | ||
760 | * configure.ac: Check for memmem declaration. | |
761 | * server.c [HAVE_MALLOC_H]: Include malloc.h. | |
762 | (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC) | |
763 | (disable_packet_qfThreadInfo): Unconditionally compile. | |
764 | * server.h [!HAVE_DECL_MEMMEM]: Declare memmem. | |
765 | * configure, config.in: Regenerate. | |
766 | ||
2fe5e3ff DE |
767 | 2008-07-28 Doug Kwan <dougkwan@google.com> |
768 | ||
769 | * linux-low.c (sys/dir.h, sys/user.h): Remove includes. | |
770 | (linux_write_memory): Remove declaration of errno. | |
771 | ||
836acd6d UW |
772 | 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com> |
773 | ||
774 | * linux-low.c (handle_extended_wait): Do not use "status" | |
775 | variable uninitialized. | |
776 | ||
aeba519e PA |
777 | 2008-07-07 Pedro Alves <pedro@codesourcery.com> |
778 | ||
779 | * server.c (handle_v_attach): Inhibit reporting dll changes. | |
780 | ||
db42f210 PA |
781 | 2008-06-27 Pedro Alves <pedro@codesourcery.com> |
782 | ||
783 | * remote-utils.c (prepare_resume_reply): If requested, don't | |
784 | output "thread:TID" in the T stop reply. | |
785 | ||
786 | * server.c (disable_packet_vCont, disable_packet_Tthread) | |
787 | (disable_packet_qC, disable_packet_qfThreadInfo): New globals. | |
788 | (handle_query): If requested, disable support for qC, qfThreadInfo | |
789 | and qsThreadInfo. | |
790 | (handle_v_requests): If requested, disable support for vCont. | |
791 | (gdbserver_show_disableable): New. | |
792 | (main): Handle --disable-packet and --disable-packet=LIST. | |
793 | ||
794 | * server.h (disable_packet_vCont, disable_packet_Tthread) | |
795 | (disable_packet_qC, disable_packet_qfThreadInfo): Declare. | |
796 | ||
8e4c5421 CD |
797 | 2008-06-20 Carlos O'Donell <carlos@codesourcery.com> |
798 | ||
799 | * server.c (gdbserver_usage): Mention --version. | |
800 | ||
6e23a804 DJ |
801 | 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com> |
802 | ||
803 | * Makefile.in (gdbreplay.o): New rule. | |
804 | ||
90aa6a40 JM |
805 | 2008-06-06 Joseph Myers <joseph@codesourcery.com> |
806 | ||
807 | * gdbreplay.c (gdbreplay_version): Say gdbreplay in version | |
808 | message, not gdbserver. | |
809 | ||
c16158bc JM |
810 | 2008-06-05 Vladimir Prus <vladimir@codesourcery.com> |
811 | Nathan Sidwell <nathan@codesourcery.com> | |
812 | Joseph Myers <joseph@codesourcery.com> | |
813 | ||
814 | * acinclude.m4: Include ../../config/acx.m4. | |
815 | * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL. | |
816 | * configure, config.in: Regenerate. | |
817 | * Makefile.in (gdbreplay$(EXEEXT)): Add version.o. | |
818 | * server.c (gdbserver_version): Print PKGVERSION. | |
819 | (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO. | |
820 | (main): Adjust gdbserver_usage calls. | |
821 | * gdbreplay.c (version, host_name): Add declarations. | |
822 | (gdbreplay_version, gdbreplay_usage): New. | |
823 | (main): Accept --version and --help options. | |
824 | ||
aeb75bf5 DJ |
825 | 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com> |
826 | ||
827 | * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New. | |
828 | (arm_breakpoint_at): Handle Thumb. | |
829 | (the_low_target): Add comment. | |
830 | ||
76b233dd UW |
831 | 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com> |
832 | ||
833 | * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer. | |
834 | ||
08388c79 DE |
835 | 2008-05-09 Doug Evans <dje@google.com> |
836 | ||
a3c83fae DE |
837 | * server.h (decode_search_memory_packet): Declare. |
838 | * remote-utils.c (decode_search_memory_packet): New fn. | |
839 | * server.c (handle_search_memory_1): New fn. | |
08388c79 DE |
840 | (handle_search_memory): New fn. |
841 | (handle_query): Process qSearch:memory packets. | |
842 | ||
bb9c3d36 UW |
843 | 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com> |
844 | ||
845 | * regcache.c (registers_length): Remove. | |
846 | (set_register_cache): Verify that PBUFSIZ is large enough to hold a | |
847 | full register packet. | |
848 | * regcache.h (registers_length): Remove prototype. | |
849 | * server.h (PBUFSIZ): Define to 16384. | |
850 | ||
7284e1be UW |
851 | 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com> |
852 | ||
853 | * configure.srv (powerpc*-*-linux*): Set srv_regobj to | |
854 | powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o, | |
855 | powerpc-64l.o, and powerpc-altivec64l.o. | |
856 | Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and | |
857 | rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml, | |
858 | rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml, | |
859 | rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml, | |
860 | rs6000/power-linux.xml, and rs6000/power64-linux.xml | |
861 | to srv_xmlfiles. | |
862 | ||
863 | * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ... | |
864 | (powerpc-32l.o, powerpc-32l.c): ... these new rules. | |
865 | (powerpc-32.o, powerpc-32.c): Remove, replace by ... | |
866 | (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules. | |
867 | (powerpc-e500.o, powerpc-e500.c): Remove, replace by ... | |
868 | (powerpc-e500l.o, powerpc-e500l.c): ... these new rules. | |
869 | (reg-ppc64.o, reg-ppc64.c): Remove, replace by ... | |
870 | (powerpc-64l.o, powerpc-64l.c): ... these new rules. | |
871 | (powerpc-64.o, powerpc-64.c): Remove, replace by ... | |
872 | (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules. | |
873 | (clean): Update. | |
874 | ||
875 | * linux-ppc-low.c (init_registers_ppc): Remove, replace by ... | |
876 | (init_registers_powerpc_32l): ... this new prototype. | |
877 | (init_registers_powerpc_32): Remove, replace by ... | |
878 | (init_registers_powerpc_altivec32l): ... this new prototype. | |
879 | (init_registers_powerpc_e500): Remove, replace by ... | |
880 | (init_registers_powerpc_e500l): ... this new prototype. | |
881 | (init_registers_ppc64): Remove, replace by ... | |
882 | (init_registers_powerpc_64l): ... this new prototype. | |
883 | (init_registers_powerpc_64): Remove, replace by ... | |
884 | (init_registers_powerpc_altivec64l): ... this new prototype. | |
885 | (ppc_num_regs): Set to 73. | |
886 | (PT_ORIG_R3, PT_TRAP): Define if necessary. | |
887 | (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap. | |
888 | (ppc_cannot_store_register): Handle orig_r3 and trap. | |
889 | (ppc_arch_setup): Update init_registers_... calls. | |
890 | (ppc_fill_gregset): Handle orig_r3 and trap. | |
891 | ||
892 | * inferiors.c (clear_inferiors): Reset current_inferior. | |
893 | ||
fdc59709 PB |
894 | 2008-04-23 Paolo Bonzini <bonzini@gnu.org> |
895 | ||
896 | * acinclude.m4: Add override.m4. | |
897 | * configure: Regenerate. | |
898 | ||
c9b2f845 UW |
899 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
900 | ||
901 | * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the | |
902 | initial call to init_register_ppc64. | |
903 | ||
550512b8 UW |
904 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
905 | ||
906 | * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into single | |
907 | powerpc*-*-linux* case. | |
908 | (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case. | |
909 | ||
b6430ec3 UW |
910 | 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com> |
911 | ||
912 | * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from | |
913 | srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml | |
914 | from reg_xmlfiles. | |
915 | * linux-ppc-low.c: Include <elf.h>. | |
916 | (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define. | |
917 | (ppc_hwcap): New global variable. | |
918 | (ppc_regmap): Remove __SPE__ #ifdef sections. | |
919 | (ppc_regmap_e500): New global variable. | |
920 | (ppc_cannot_store_register): Update __SPE__ special case. | |
921 | (ppc_get_hwcap): New function. | |
922 | (ppc_arch_setup): Use it to determine whether inferior supports | |
923 | AltiVec or SPE registers. Set the_low_target.regmap if appropriate. | |
924 | (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally. | |
925 | Do not access registers if target does not support AltiVec. | |
926 | (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally. | |
927 | Do not access registers if target does not support SPE. | |
928 | (target_regsets): Unconditionally include AltiVec and SPE regsets. | |
929 | ||
52fa2412 UW |
930 | 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com> |
931 | ||
932 | * linux-low.c (disabled_regsets, num_regsets): New. | |
933 | (use_regsets_p): Delete. | |
934 | (linux_wait_for_process): Clear disabled_regsets. | |
935 | (regsets_fetch_inferior_registers): Check and set it. | |
936 | (regsets_store_inferior_registers): Likewise. | |
937 | (linux_fetch_registers, linux_store_registers): Do not use | |
938 | use_regsets_p. | |
939 | (initialize_low): Allocate disabled_regsets. | |
940 | ||
e28b3332 DJ |
941 | 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
942 | ||
943 | * Makefile.in (LIBOBJS): New. | |
944 | (OBS): Use LIBOBJS. | |
945 | (memmem.o): New rule. | |
946 | * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem. | |
947 | * configure: Regenerated. | |
948 | ||
4536995d UW |
949 | 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com> |
950 | ||
951 | * server.c (handle_query): Never return "unsupported" for | |
952 | qXfer:features:read queries. | |
953 | ||
221c031f UW |
954 | 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com> |
955 | ||
956 | * server.c (get_features_xml): Fix inverted condition. | |
957 | (handle_query): Always support qXfer:feature:read. | |
958 | ||
ccd213ac DJ |
959 | 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com> |
960 | ||
961 | * server.c (wrapper_argv): New. | |
962 | (start_inferior): Handle wrapper_argv. If set, expect an extra | |
963 | trap. | |
964 | (gdbserver_usage): Document --wrapper. | |
965 | (main): Parse --wrapper. | |
966 | ||
6fe305f7 UW |
967 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
968 | ||
969 | * configure.srv [powerpc64-*-linux*]: Add all files mentioned for | |
970 | powerpc-*-linux* to srv_regobj and reg_xmlfiles. | |
971 | * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation. | |
972 | (ppc_set_pc): Likewise. | |
973 | (ppc_arch_setup): New function. | |
974 | (ppc_fill_gregset): Call ppc_collect_ptrace_register instead | |
975 | of collect_register. | |
976 | (the_low_target): Use ppc_arch_setup as arch_setup initializer. | |
977 | ||
5b0a002e UW |
978 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
979 | ||
980 | * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o | |
981 | instead of linux-ppc64-low.o. | |
982 | * linux-ppc64-low.c: Remove file. | |
983 | * Makefile.in (SFILES): Remove linux-ppc64-low.c. | |
984 | (linux-ppc64-low.o): Remove rule. | |
985 | ||
986 | * linux-ppc-low.c (init_registers_ppc64): Add prototype. | |
987 | (init_registers_powerpc_64): Likewise. | |
988 | (ppc_regmap): Conditionally define depending on __powerpc64__. | |
989 | (ppc_cannot_store_register): Do not special-case "fpscr" when | |
990 | compiled on __powerpc64__. | |
991 | (ppc_collect_ptrace_register): New function. | |
992 | (ppc_supply_ptrace_register): New function. | |
993 | (ppc_breakpoint): Change type to "unsigned int". | |
994 | (ppc_breakpoint_at): Change type of "insn" to "unsigned int". | |
995 | (the_low_target): Conditionally provide initializers for the | |
996 | arch_setup member depending on __powerpc64__. Install | |
997 | collect_ptrace_register and supply_ptrace_register members. | |
998 | ||
9b4b61c8 UW |
999 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
1000 | ||
1001 | * regcache.h (gdbserver_xmltarget): Add extern declaration. | |
1002 | * server.c (gdbserver_xmltarget): Define. | |
1003 | (get_features_xml): Use it to replace "target.xml" and arch_string. | |
1004 | ||
1005 | * configure.srv: Remove srv_xmltarget. Add XML files that were | |
1006 | mentioned there to srv_xmlfiles instead. Remove conditional tests | |
1007 | on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set | |
1008 | srv_xmlfiles and srv_regobj to include all possible choices. | |
1009 | * configure.ac (srv_xmltarget): Remove. | |
1010 | (srv_xmlfiles): Do not add "target.xml". | |
1011 | (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove | |
1012 | checks for supplementary target information. | |
1013 | * configure: Regenerate. | |
1014 | * Makefile.in (XML_TARGET): Remove. | |
1015 | (target.xml): Remove rule. | |
1016 | (clean): Do not clean up target.xml. | |
1017 | (.PRECIOUS): Do not mention target.xml. | |
1018 | ||
1019 | * target.h (struct target_ops): Remove arch_string member. | |
1020 | * linux-low.c (linux_arch_string): Remove. | |
1021 | (linux_target_ops): Remove arch_string initializer. | |
1022 | * linux-low.h (struct linux_target_ops): Remove arch_string member. | |
1023 | * linux-i386-low.c (the_low_target): Remove arch_string initializer. | |
1024 | * linux-x86-64-low.c (the_low_target): Remove arch_string initializer. | |
1025 | * spu-low.c (spu_arch_string): Remove. | |
1026 | (spu_target_ops): Remove arch_string initializer. | |
1027 | * win32-low.c (win32_arch_string): Remove. | |
1028 | (win32_target_ops): Remove arch_string initializer. | |
1029 | * win32-low.h (struct win32_target_ops): Remove arch_string member. | |
1030 | * win32-arm-low.c (the_low_target): Remove arch_string initializer. | |
1031 | * win32-i368-low.c (the_low_target): Remove arch_string initializer. | |
1032 | ||
ee1a7ae4 UW |
1033 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
1034 | ||
1035 | * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field | |
1036 | by collect_ptrace_register and supply_ptrace_register hooks. | |
1037 | * linux-low.c (fetch_register): Use supply_ptrace_register callback | |
1038 | instead of checking for the_low_target.left_pad_xfer. | |
1039 | (usr_store_inferior_registers): Use collect_ptrace_register callback | |
1040 | instead of checking for the_low_target.left_pad_xfer. | |
1041 | ||
1042 | * linux-s390-low.c (s390_collect_ptrace_register): New function. | |
1043 | (s390_supply_ptrace_register): Likewise. | |
1044 | (s390_fill_gregset): Call s390_collect_ptrace_register. | |
1045 | (the_low_target): Update. | |
1046 | ||
1047 | * linux-ppc64-low.c (ppc_collect_ptrace_register): New function. | |
1048 | (ppc_supply_ptrace_register): Likewise. | |
1049 | (the_low_target): Update. | |
1050 | ||
1051 | * linux-i386-low.c (the_low_target): Update. | |
1052 | * linux-x86-64-low.c (the_low_target): Update. | |
1053 | ||
d61ddec4 UW |
1054 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
1055 | ||
1056 | * configure.srv [s390x-*-linux*]: Set srv_regobj to include both | |
1057 | reg-s390.o and reg-s390x.o. | |
1058 | ||
1059 | * linux-low.c (new_inferior): New global variable. | |
1060 | (linux_create_inferior, linux_attach): Set it. | |
1061 | (linux_wait_for_process): Call the_low_target.arch_setup after the | |
1062 | target has stopped for the first time. | |
1063 | (initialize_low): Do not call the_low_target.arch_setup. | |
1064 | ||
1065 | * linux-s390-low.c (s390_get_pc): Support bi-arch operation. | |
1066 | (s390_set_pc): Likewise. | |
1067 | (s390_arch_setup): New function. | |
1068 | (the_low_target): Use s390_arch_setup as arch_setup routine. | |
1069 | ||
1070 | * regcache.c (realloc_register_cache): New function. | |
1071 | (set_register_cache): Call it for each existing regcache. | |
1072 | ||
d05b4ac3 UW |
1073 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
1074 | ||
1075 | * server.h (init_registers): Remove prototype. | |
1076 | ||
1077 | * linux-low.h (struct linux_target_ops): Add arch_setup field. | |
1078 | * linux-low.c (initialize_low): Call the_low_target.arch_setup () | |
1079 | instead of init_registers (). | |
1080 | * linux-arm-low.c (init_registers_arm): Add prototype. | |
1081 | (init_registers_arm_with_iwmmxt): Likewise. | |
1082 | (the_low_target): Add initializer for arch_setup field. | |
1083 | * linux-cris-low.c (init_registers_cris): Add prototype. | |
1084 | (the_low_target): Add initializer for arch_setup field. | |
1085 | * linux-crisv32-low.c (init_registers_crisv32): Add prototype. | |
1086 | (the_low_target): Add initializer for arch_setup field. | |
1087 | * linux-i386-low.c (init_registers_i386_linux): Add prototype. | |
1088 | (the_low_target): Add initializer for arch_setup field. | |
1089 | * linux-ia64-low.c (init_registers_ia64): Add prototype. | |
1090 | (the_low_target): Add initializer for arch_setup field. | |
1091 | * linux-m32r-low.c (init_registers_m32r): Add prototype. | |
1092 | (the_low_target): Add initializer for arch_setup field. | |
1093 | * linux-m68k-low.c (init_registers_m68k): Add prototype. | |
1094 | (the_low_target): Add initializer for arch_setup field. | |
1095 | * linux-mips-low.c (init_registers_mips_linux): Add prototype. | |
1096 | (init_registers_mips64_linux): Likewise. | |
1097 | (the_low_target): Add initializer for arch_setup field. | |
1098 | * linux-ppc-low.c (init_registers_ppc): Add prototype. | |
1099 | (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise. | |
1100 | (the_low_target): Add initializer for arch_setup field. | |
1101 | * linux-ppc64-low.c (init_registers_ppc64): Add prototype. | |
1102 | (init_registers_powerpc_64): Likewise. | |
1103 | (the_low_target): Add initializer for arch_setup field. | |
1104 | * linux-s390-low.c (init_registers_s390): Add prototype. | |
1105 | (init_registers_s390x): Likewise. | |
1106 | (the_low_target): Add initializer for arch_setup field. | |
1107 | * linux-sh-low.c (init_registers_sh): Add prototype. | |
1108 | (the_low_target): Add initializer for arch_setup field. | |
1109 | * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype. | |
1110 | (the_low_target): Add initializer for arch_setup field. | |
1111 | * linux-xtensa-low.c (init_registers_xtensa): Add prototype. | |
1112 | (the_low_target): Add initializer for arch_setup field. | |
1113 | ||
1114 | * win32-low.h (struct win32_target_ops): Add arch_setup field. | |
1115 | * win32-low.c (initialize_low): Call the_low_target.arch_setup () | |
1116 | instead of init_registers (). | |
1117 | * win32-arm-low.c (init_registers_arm): Add prototype. | |
1118 | (the_low_target): Add initializer for arch_setup field. | |
1119 | * win32-i386-low.c (init_registers_i386): Add prototype. | |
1120 | (the_low_target): Add initializer for arch_setup field. | |
1121 | ||
1122 | * spu-low.c (init_registers_spu): Add prototype. | |
1123 | (initialize_low): Call initialie_registers_spu () instead of | |
1124 | initialize_registers (). | |
1125 | ||
fd96d250 PA |
1126 | 2008-02-19 Pedro Alves <pedro@codesourcery.com> |
1127 | ||
1128 | * server.c (handle_v_requests): When handling the vRun and vAttach | |
1129 | packets, if already debugging a process, don't kill it. Return an | |
1130 | error instead. | |
1131 | ||
d41b6bb4 DJ |
1132 | 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com> |
1133 | ||
1134 | * server.c (handle_query): Correct length check. | |
1135 | ||
5ac588cf PA |
1136 | 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt> |
1137 | ||
1138 | * win32-low.c (do_initial_child_stuff): Add process handle | |
1139 | parameter. Set current_process_handle and current_process_id from the | |
1140 | parameters. Clear globals. | |
1141 | (win32_create_inferior): Don't set current_process_handle and | |
1142 | current_process_id here. Instead pass them on the call to | |
1143 | do_initial_child_stuff. | |
1144 | (win32_attach): Likewise. | |
1145 | (win32_clear_inferiors): New. | |
1146 | (win32_kill): Don't close the current process handle or the | |
1147 | current thread handle here. Instead call win32_clear_inferiors. | |
1148 | (win32_detach): Don't open a new handle to the process. Call | |
1149 | win32_clear_inferiors. | |
1150 | (win32_join): Don't rely on current_process_handle; open a new | |
1151 | handle using the process id. | |
1152 | (win32_wait): Call win32_clear_inferiors when the inferior process | |
1153 | has exited. | |
1154 | ||
ecd7ecbc DJ |
1155 | 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com> |
1156 | ||
1157 | * server.c (monitor_show_help): Add "exit". | |
1158 | ||
1525d545 MG |
1159 | 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com> |
1160 | ||
ecd7ecbc | 1161 | * Makefile.in (SFILES): Add linux-xtensa-low.c. |
1525d545 MG |
1162 | (clean): Add reg-xtensa.c. |
1163 | (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies. | |
ecd7ecbc DJ |
1164 | * configure.srv (xtensa*-*-linux*) New target. |
1165 | * linux-xtensa-low.c: New. | |
1166 | * xtensa-xtregs.c: New. | |
1525d545 | 1167 | |
59a016f0 PA |
1168 | 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt> |
1169 | ||
1170 | * hostio.c: Don't include errno.h. | |
1171 | (errno_to_fileio_errno): Move to hostio-errno. | |
1172 | * hostio.c: (hostio_error): Remove the error parameter. Defer the | |
1173 | error number outputting to the target->hostio_last_error callback. | |
1174 | (hostio_packet_error): Use FILEIO_EINVAL directly. | |
1175 | (handle_open, handle_pread, hostio_error, handle_unlink): Update | |
1176 | calls to hostio_error. | |
1177 | * hostio-errno.c: New. | |
1178 | * server.h (hostio_last_error_from_errno): Declare. | |
1179 | * target.h (target_ops): Add hostio_last_error member. | |
1180 | * linux-low.c (linux_target_op): Register hostio_last_error_from_errno | |
1181 | as hostio_last_error handler. | |
1182 | * spu-low.c (spu_target_ops): Likewise. | |
1183 | * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error) | |
1184 | (wince_hostio_last_error): New functions. | |
1185 | (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error | |
1186 | as hostio_last_error handler. | |
1187 | (win32_target_ops) [!_WIN32_WCE]: Register | |
1188 | hostio_last_error_from_errno as hostio_last_error handler. | |
1189 | * Makefile.in (SFILES): Add hostio.c and hostio-errno.c. | |
1190 | (hostio-errno.o): New rule. | |
1191 | * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs. | |
1192 | * configure.srv (srv_hostio_err_objs): New variable. Default to | |
1193 | hostio-errno.o. | |
1194 | (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "". | |
1195 | * configure: Regenerate. | |
1196 | ||
2d717e4f DJ |
1197 | 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
1198 | ||
1199 | * linux-low.c (linux_attach_lwp): Do not _exit after errors. | |
1200 | (linux_kill, linux_detach): Clean up the process list. | |
1201 | * remote-utils.c (remote_open): Improve port number parsing. | |
1202 | (putpkt_binary, input_interrupt): Only send interrupts if the target | |
1203 | is running. | |
1204 | * server.c (extended_protocol): Make static. | |
1205 | (attached): Define earlier. | |
1206 | (exit_requested, response_needed, program_argv): New variables. | |
1207 | (target_running): New. | |
1208 | (start_inferior): Clear attached here. | |
1209 | (attach_inferior): Set attached here. | |
1210 | (require_running): Define. | |
1211 | (handle_query): Use require_running and target_running. Implement | |
1212 | "monitor exit". | |
1213 | (handle_v_attach, handle_v_run): New. | |
1214 | (handle_v_requests): Use require_running. Handle vAttach and vRun. | |
1215 | (gdbserver_usage): Update. | |
1216 | (main): Redo argument parsing. Handle --debug and --multi. Handle | |
1217 | --attach along with other options or after the port. Save | |
1218 | program_argv. Support no initial program. Resynchronize | |
1219 | communication with GDB after an error. Handle "monitor exit". | |
1220 | Use require_running and target_running. Always allow the extended | |
1221 | protocol. Do not error out for Hc0 or Hc-1. Do not automatically | |
1222 | restart in extended mode. | |
1223 | * README: Refer to the GDB manual. Update --attach usage. | |
1224 | ||
7407e2de AS |
1225 | 2007-12-20 Andreas Schwab <schwab@suse.de> |
1226 | ||
1227 | * linux-low.c (STACK_SIZE): Define. | |
1228 | (linux_tracefork_child): Use it. Use __clone2 on ia64. | |
1229 | (linux_test_for_tracefork): Likewise. | |
1230 | ||
b65d95c5 DJ |
1231 | 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com> |
1232 | ||
1233 | * linux-low.c (linux_wait_for_event): Update messages. Do not | |
1234 | reinsert auto-delete breakpoints. | |
1235 | * mem-break.c (struct breakpoint): Change return type of handler to | |
1236 | int. | |
1237 | (set_breakpoint_at): Update handler type. | |
1238 | (reinsert_breakpoint_handler): Return 1 instead of calling | |
1239 | delete_breakpoint. | |
1240 | (reinsert_breakpoint_by_bp): Check for the original breakpoint before | |
1241 | setting a new one. | |
1242 | (check_breakpoints): Delete auto-delete breakpoints and return 2. | |
1243 | * mem-break.h (set_breakpoint_at): Update handler type. | |
1244 | * thread-db.c (thread_db_create_event, thread_db_create_event): Update. | |
1245 | * win32-low.c (auto_delete_breakpoint): New. | |
1246 | (get_child_debug_event): Use it. | |
1247 | ||
4e799345 DJ |
1248 | 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com> |
1249 | ||
1250 | * configure.ac: Check for pread and pwrite. | |
1251 | * hostio.c (handle_pread): Fall back to lseek and read. | |
1252 | (handle_pwrite): Fall back to lseek and write. | |
1253 | * config.in, configure: Regenerated. | |
1254 | ||
27524b67 DJ |
1255 | 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com> |
1256 | ||
1257 | * server.c (myresume): Add own_buf argument. | |
1258 | (main): Update calls. | |
1259 | ||
a20d5e98 DJ |
1260 | 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com> |
1261 | ||
1262 | * linux-low.c (linux_wait, linux_resume): Do not handle async I/O. | |
1263 | * remote-utils.c (remote_open): Do not call disable_async_io. | |
1264 | (block_async_io): Delete. | |
1265 | (unblock_async_io): Make static. | |
1266 | (initialize_async_io): New. | |
1267 | * server.c (handle_v_cont): Handle async I/O here. | |
1268 | (myresume): Likewise. Move other common resume tasks here... | |
1269 | (main): ... from here. Call initialize_async_io. Disable async | |
1270 | I/O before the main loop. | |
1271 | * server.h (initialize_async_io): Declare. | |
1272 | (block_async_io, unblock_async_io): Delete prototypes. | |
1273 | * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here. | |
1274 | ||
b79d787e DJ |
1275 | 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au> |
1276 | ||
1277 | * remote-utils.c (readchar): Allow binary data in received messages. | |
1278 | ||
d97903b2 PA |
1279 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
1280 | ||
1281 | * win32-low.c (attaching): New global. | |
1282 | (win32_create_inferior): Clear the `attaching' global. | |
1283 | (win32_attach): Set the `attaching' global. | |
1284 | (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when | |
1285 | attaching. Only set a breakpoint at the entry point if not | |
1286 | attaching. | |
1287 | ||
311de423 PA |
1288 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
1289 | ||
1290 | * server.c (main): Don't report dll events on the initial | |
1291 | connection on attaches. | |
1292 | ||
6c2d16d2 PA |
1293 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
1294 | ||
1295 | * server.c (main): Relax numerical bases supported for the pid of | |
1296 | the --attach command line argument. | |
1297 | ||
5ca906e6 PA |
1298 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
1299 | ||
1300 | * win32-low.c (win32_attach): Call OpenProcess before | |
1301 | DebugActiveProcess, not after. Add last error output to error | |
1302 | call. | |
1303 | ||
9c6c8194 PA |
1304 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
1305 | ||
1306 | * win32-low.c (win32_get_thread_context) | |
1307 | (win32_set_thread_context): New functions. | |
1308 | (thread_rec): Use win32_get_thread_context. | |
1309 | (continue_one_thread, win32_resume): Use win32_set_thread_context. | |
1310 | * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context' | |
1311 | field. | |
1312 | ||
4d5d1aaa PA |
1313 | 2007-12-03 Leo Zayas |
1314 | Pedro Alves <pedro_alves@portugalmail.pt> | |
1315 | ||
1316 | * win32-low.c (soft_interrupt_requested, faked_breakpoint): New | |
1317 | global variables. | |
1318 | (child_add_thread): Minor cleanup. | |
1319 | (child_continue): Resume artificially suspended threads before | |
1320 | calling ContinueDebugEvent. | |
1321 | (suspend_one_thread): New. | |
1322 | (fake_breakpoint_event): New. | |
1323 | (get_child_debug_event): Change return type to int. Check here if | |
1324 | gdb sent an interrupt request. If a soft interrupt was requested, | |
1325 | fake a breakpoint event. Return 0 if there is no event to handle, | |
1326 | and 1 otherwise. | |
1327 | (win32_wait): Don't check here if gdb sent an interrupt request. | |
1328 | Ensure there is a valid event to handle. | |
1329 | (win32_request_interrupt): Add soft interruption method as last | |
1330 | resort. | |
1331 | ||
c436e841 PA |
1332 | 2007-12-03 Leo Zayas |
1333 | Pedro Alves <pedro_alves@portugalmail.pt> | |
1334 | ||
1335 | * win32-low.h (win32_thread_info): Add descriptions to the | |
1336 | structure members. Replace `suspend_count' counter by a | |
1337 | `suspended' flag. | |
1338 | * win32-low.c (thread_rec): Update condition of when to get the | |
1339 | context from the inferior. Rely on ContextFlags being set if it | |
1340 | has already been retrieved. Only suspend the inferior thread if | |
1341 | we haven't already. Warn if that fails. | |
1342 | (continue_one_thread): s/suspend_count/suspended/. Only call | |
1343 | ResumeThread once. Warn if that fails. | |
1344 | ||
e7b5fa67 PA |
1345 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
1346 | ||
1347 | * win32-low.c (win32_wait): Don't read from the inferior when it | |
1348 | has already exited. | |
1349 | ||
a385171d PA |
1350 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
1351 | ||
1352 | * Makefile.in (win32_low_h): New variable. | |
1353 | (win32-low.o): Add dependency on $(win32_low_h). | |
1354 | (win32-arm-low.o, win32-i386-low.o): New rules. | |
1355 | ||
f80c84b3 DJ |
1356 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
1357 | ||
1358 | * hostio.c: Correct copyright year. | |
1359 | ||
a6b151f1 DJ |
1360 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
1361 | ||
1362 | * Makefile.in (OBS): Add hostio.o. | |
1363 | (hostio.o): New rule. | |
1364 | * server.h (handle_vFile): Declare. | |
1365 | * hostio.c: New file. | |
1366 | * server.c (handle_v_requests): Take packet_len and new_packet_len | |
1367 | for binary packets. Call handle_vFile. | |
1368 | (main): Update call to handle_v_requests. | |
1369 | ||
f9387fc3 DJ |
1370 | 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com> |
1371 | ||
1372 | * linux-low.c: Include <sched.h>. | |
1373 | ||
51c2684e DJ |
1374 | 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com> |
1375 | ||
1376 | * linux-low.c (linux_tracefork_grandchild): New. | |
1377 | (linux_tracefork_child): Use clone. | |
1378 | (linux_test_for_tracefork): Use clone; allocate and free a stack. | |
1379 | ||
75f83163 JB |
1380 | 2007-10-31 Joel Brobecker <brobecker@adacore.com> |
1381 | ||
1382 | * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh. | |
1383 | ||
da5898ce DJ |
1384 | 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com> |
1385 | ||
1386 | * linux-low.c (handle_extended_wait): Handle unexpected signals. | |
1387 | ||
24a09b5f DJ |
1388 | 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com> |
1389 | ||
1390 | * inferiors.c (change_inferior_id): Delete. | |
1391 | (add_pid_to_list, pull_pid_from_list): New. | |
1392 | * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG) | |
1393 | (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK) | |
1394 | (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE) | |
1395 | (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK) | |
1396 | (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE) | |
1397 | (PTRACE_EVENT_EXIT, __WALL): Provide default definitions. | |
1398 | (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables. | |
1399 | (using_threads): Always set to 1. | |
1400 | (handle_extended_wait): New. | |
1401 | (add_process): Do not set TID. | |
1402 | (linux_create_inferior): Set must_set_ptrace_flags. | |
1403 | (linux_attach_lwp): Remove TID argument. Do not check using_threads. | |
1404 | Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers. | |
1405 | (linux_thread_alive): Rename TID argument to LWPID. | |
1406 | (linux_wait_for_process): Handle unknown processes. Do not use TID. | |
1407 | (linux_wait_for_event): Do not use TID or check using_threads. Update | |
1408 | call to dead_thread_notify. Call handle_extended_wait. | |
1409 | (linux_create_inferior): Use PTRACE_SETOPTIONS. | |
1410 | (send_sigstop): Delete sigstop_sent. | |
1411 | (wait_for_sigstop): Avoid TID. | |
1412 | (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid) | |
1413 | (linux_test_for_tracefork): New. | |
1414 | (linux_lookup_signals): Use thread_db_active and | |
1415 | linux_supports_tracefork_flag. | |
1416 | (initialize_low): Use thread_db_active and linux_test_for_tracefork. | |
1417 | * linux-low.h (get_process_thread): Avoid TID. | |
1418 | (struct process_ifo): Move thread_known and tid to the end. Remove | |
1419 | sigstop_sent. | |
1420 | (linux_attach_lwp, thread_db_init): Update prototypes. | |
1421 | * server.h (change_inferior_id): Delete prototype. | |
1422 | (add_pid_to_list, pull_pid_from_list): New prototypes. | |
1423 | * thread-db.c (thread_db_use_events): New. | |
1424 | (find_first_thread): Rename to... | |
1425 | (find_one_thread): ...this. Update callers and messages. Do not | |
1426 | call fatal. Check thread_db_use_events. Do not call | |
1427 | change_inferior_id or new_thread_notify. | |
1428 | (maybe_attach_thread): Update. Do not call new_thread_notify. | |
1429 | (thread_db_init): Set thread_db_use_events. Check use_events. | |
1430 | * utils.c (fatal, warning): Correct message prefix. | |
1431 | ||
30ed0a8f DJ |
1432 | 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com> |
1433 | ||
1434 | * Makefile.in (clean): Remove new files. | |
1435 | (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c) | |
1436 | (powerpc-64.o, powerpc-64.c): New rules. | |
1437 | * configure.srv: Use alternate register sets for powerpc64-*-linux* | |
1438 | with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux* | |
1439 | with SPE. | |
1440 | * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for | |
1441 | SPE targets. | |
1442 | (ppc_cannot_store_register): Do not check for FPSCR for SPE targets. | |
1443 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset) | |
1444 | (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS) | |
1445 | (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New. | |
1446 | (target_regsets): Add AltiVec and SPE register sets. | |
1447 | * configure.ac: Check for AltiVec and SPE. | |
1448 | * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS) | |
1449 | (ppc_fill_vrregset, ppc_store_vrregset): New. | |
1450 | (target_regsets): Add AltiVec register set. | |
1451 | * configure: Regenerated. | |
1452 | ||
fd462a61 DJ |
1453 | 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com> |
1454 | ||
1455 | * linux-low.c (O_LARGEFILE): Define. | |
1456 | (linux_read_memory): Use /proc/PID/mem. | |
1457 | * configure.ac: Use AC_GNU_SOURCE. Check for pread64. | |
1458 | * configure, config.in: Regenerated. | |
1459 | ||
69f223ed DJ |
1460 | 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
1461 | ||
1462 | * linux-low.c (linux_wait_for_event): Do not pass signals while | |
1463 | single-stepping. | |
1464 | ||
aec18585 PA |
1465 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
1466 | ||
1467 | * win32-low.c (create_process): New. | |
1468 | (win32_create_inferior): Use create_process instead of | |
1469 | CreateProcess. If create_process failed retry appending an ".exe" | |
1470 | suffix. Store the GetLastError result immediatelly after | |
1471 | create_process calls and use it on the call to error. | |
1472 | ||
34d86ddd PA |
1473 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
1474 | ||
1475 | * win32-low.c (handle_load_dll): Don't use toolhelp when waiting. | |
1476 | ||
5a0e3bd0 JB |
1477 | 2007-08-23 Joel Brobecker <brobecker@adacore.com> |
1478 | ||
1479 | * configure.ac: Switch license to GPLv3. | |
1480 | ||
f88c79e6 MS |
1481 | 2007-08-01 Michael Snyder <msnyder@access-company.com> |
1482 | ||
1483 | * remote-utils.c (putpkt_binary): Memory leak, free buf2. | |
1484 | ||
6b3d9b83 PA |
1485 | 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt> |
1486 | ||
1487 | * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New | |
1488 | typedef. | |
1489 | (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var. | |
1490 | (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get | |
1491 | CloseToolhelp32Snapshot. | |
1492 | (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with | |
1493 | CloseToolhelp32Snapshot. | |
1494 | ||
c588c53c MS |
1495 | 2007-07-27 Michael Snyder <michael.snyder@access-company.com> |
1496 | ||
1497 | * server.c (main): Check for inferior exit before main loop. | |
1498 | ||
aa0403d9 PA |
1499 | 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt> |
1500 | ||
1501 | * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc | |
1502 | instead of on tmp_desc. | |
1503 | ||
255e7678 DJ |
1504 | 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt> |
1505 | Daniel Jacobowitz <dan@codesourcery.com> | |
1506 | ||
1507 | * inferiors.c (all_dlls, dlls_changed, get_dll): New. | |
1508 | (add_thread): Minor cleanups. | |
1509 | (clear_inferiors): Move lower in the file. Clear the DLL | |
1510 | list. | |
1511 | (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New. | |
1512 | * remote-utils.c (prepare_resume_reply): Check dlls_changed. | |
1513 | (xml_escape_text): New. | |
1514 | * server.c (handle_query): Handle qXfer:libraries:read. Report it | |
1515 | for qSupported. | |
1516 | (handle_v_cont): Report errors. | |
1517 | (gdbserver_version): Update. | |
1518 | (main): Correct size of own_buf. Do not report initial DLL events. | |
1519 | * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll) | |
1520 | (unloaded_dll, xml_escape_text): New. | |
1521 | * win32-low.c (enum target_waitkind): Update comments. | |
1522 | (win32_add_one_solib, get_image_name, winapi_EnumProcessModules) | |
1523 | (winapi_GetModuleInformation, winapi_GetModuleFileNameExA) | |
1524 | (win32_EnumProcessModules, win32_GetModuleInformation) | |
1525 | (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name) | |
1526 | (winapi_CreateToolhelp32Snapshot, winapi_Module32First) | |
1527 | (winapi_Module32Next, win32_CreateToolhelp32Snapshot) | |
1528 | (win32_Module32First, win32_Module32Next, load_toolhelp) | |
1529 | (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New. | |
1530 | (get_child_debug_event): Handle DLL events. | |
1531 | (win32_wait): Likewise. | |
1532 | ||
0d37add9 DJ |
1533 | 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
1534 | ||
1535 | * configure.srv: Set srv_linux_regsets for sh*-*-linux*. | |
1536 | * linux-sh-low.c (sh_fill_gregset, target_regsets): New. | |
1537 | ||
45e2715e PA |
1538 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
1539 | ||
1540 | * win32-low.c (handle_output_debug_string): Ignore event if not | |
1541 | waiting. | |
1542 | ||
c5674cf1 PA |
1543 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
1544 | ||
1545 | * win32-arm-low.c (arm_wince_breakpoint): Fix typo. | |
1546 | ||
2bbe3cc1 DJ |
1547 | 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com> |
1548 | ||
1549 | * remote-utils.c (look_up_one_symbol): Handle 'm' packets. | |
1550 | ||
ae13219e DJ |
1551 | 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com> |
1552 | ||
1553 | * inferiors.c (change_inferior_id): Add comment. | |
1554 | * linux-low.c (check_removed_breakpoint): Add an early | |
1555 | prototype. Improve debug output. | |
1556 | (linux_attach): Doc update. | |
1557 | (linux_detach_one_process, linux_detach): Clean up before releasing | |
1558 | each process. | |
1559 | (send_sigstop, wait_for_sigstop): Improve comments and debug output. | |
1560 | * linux-low.h (struct process_info): Doc improvement. | |
1561 | * mem-break.c (delete_all_breakpoints): New. | |
1562 | * mem-break.h (delete_all_breakpoints): New prototype. | |
1563 | * thread-db.c (find_first_thread): New. | |
1564 | (thread_db_create_event): Call it instead of | |
1565 | thread_db_find_new_threads. Clean up unused variables. | |
1566 | (maybe_attach_thread): Remove first thread handling. | |
1567 | (thread_db_find_new_threads): Use find_first_thread. | |
1568 | (thread_db_get_tls_address): Likewise. | |
1569 | ||
4105de34 DJ |
1570 | 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com> |
1571 | ||
1572 | * thread-db.c (thread_db_find_new_threads): Add prototype. | |
1573 | (thread_db_create_event): Check for the main thread before adding | |
1574 | a new thread. | |
1575 | (maybe_attach_thread): Only enable event reporting if TID == 0. | |
1576 | (thread_db_get_tls_address): Check for new threads. | |
1577 | ||
2b876972 DJ |
1578 | 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com> |
1579 | ||
1580 | * linux-low.c (linux_create_inferior): Try execv before execvp. | |
1581 | * spu-low.c (spu_create_inferior): Likewise. | |
1582 | ||
7a245884 DJ |
1583 | 2007-06-13 Mike Frysinger <vapier@gentoo.org> |
1584 | ||
1585 | * linux-low.c (linux_create_inferior): Change execv to execvp. | |
1586 | * spu-low.c (spu_create_inferior): Likewies. | |
1587 | ||
117ce543 DJ |
1588 | 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com> |
1589 | ||
1590 | * Makefile.in (clean): Clean new files instead of deleted ones. | |
1591 | (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete. | |
1592 | (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New | |
1593 | rules. | |
1594 | * configure.srv: Specify XML files and new regformats for MIPS and | |
1595 | MIPS64 GNU/Linux. | |
1596 | * linux-mips-low.c (mips_num_regs): Set to only used registers. | |
1597 | (mips_regmap): Do not fetch $0. Remove unused registers. Add | |
1598 | an entry for the restart register. | |
1599 | (mips_cannot_fetch_register, mips_cannot_store_register) | |
1600 | (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update | |
1601 | register names to match the XML descriptions. | |
1602 | (mips_fill_gregset, mips_store_gregset): Likewise. Handle the | |
1603 | restart register instead of $0. | |
1604 | ||
0e7f50da UW |
1605 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
1606 | Markus Deuling <deuling@de.ibm.com> | |
1607 | ||
1608 | * remote-utils.c (decode_xfer_write): New function. | |
1609 | * server.h (decode_xfer_write): Add prototype. | |
1610 | * server.c (handle_query): Add PACKET_LEN argument. Support | |
1611 | qXfer:spu:read and qXfer:spu:write packets. | |
1612 | (main): Pass packet_len to handle_query. | |
1613 | * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu. | |
1614 | * target.h (target_ops): Add qxfer_spu. | |
1615 | ||
374c1d38 UW |
1616 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
1617 | ||
1618 | * spu-low.c (spu_proc_xfer_spu): Do not return failure when | |
1619 | accessing non-seekable spufs files. | |
1620 | ||
bb63802a UW |
1621 | 2007-05-16 Markus Deuling <deuling@de.ibm.com> |
1622 | ||
1623 | * server.c (handle_query): Add reply for qC packet. | |
1624 | ||
7390519e PA |
1625 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
1626 | Leo Zayas <lerele@champenstudios@com> | |
1627 | ||
1628 | * server.h (check_remote_input_interrupt_request): New function. | |
1629 | * remote_utils.c (INVALID_DESCRIPTOR): New define. | |
1630 | (remote_desc): Initialize with INVALID_DESCRIPTOR. | |
1631 | (input_interrupt): Expose on USE_WIN32API too. Fix whitespace. | |
1632 | (check_remote_input_interrupt_request): New function. | |
1633 | * server.h (check_remote_input_interrupt_request): Declare. | |
3ecf0694 | 1634 | * win32-low.c (winapi_DebugBreakProcess, |
7390519e PA |
1635 | winapi_GenerateConsoleCtrlEvent): New typedefs. |
1636 | (get_child_debug_event): Lower Win32 debug event polling from 1 sec | |
1637 | to 250 ms. | |
1638 | (win32_wait): Check for remote interrupt request | |
1639 | with check_remote_input_interrupt_request. | |
1640 | (win32_request_interrupt): New function. | |
1641 | (win32_target_op): Set request_interrupt to win32_request_interrupt. | |
1642 | ||
34b34921 PA |
1643 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
1644 | ||
1645 | * win32-low.c (debug_registers_changed, | |
1646 | debug_registers_used, CONTEXT_EXTENDED_REGISTERS, | |
1647 | CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS, | |
1648 | CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete. | |
1649 | (thread_rec): Get context using the low target. | |
1650 | (child_add_thread): Call thread_added on the low target, | |
1651 | which does the same thing. | |
1652 | (regptr): Delete. | |
1653 | (do_initial_child_stuff): Remove debug registers references. | |
1654 | Set context using the low target. Resume threads after | |
1655 | setting the contexts. | |
1656 | (child_continue): Remove dead variable. Remove debug | |
1657 | registers references. | |
1658 | (child_fetch_inferior_registers): Go through the low target. | |
1659 | (do_child_store_inferior_registers): Remove. | |
1660 | (child_store_inferior_registers): Go through the low target. | |
1661 | (win32_resume): Remove debug registers references. | |
1662 | Set context using the low target. | |
1663 | (handle_exception): Change return type to void. Don't record | |
1664 | context here. Set status to TARGET_WAITKIND_SPURIOUS on a | |
1665 | first chance exception. | |
1666 | (get_child_debug_event): Change return type to void. Remove | |
1667 | goto loop. Always return after waiting for debug event. | |
1668 | (win32_wait): Convert to switch statement. Handle spurious | |
1669 | events. | |
1670 | ||
1671 | * win32-i386-low.c (debug_registers_changed, | |
1672 | debug_registers_used): New. | |
1673 | (initial_stuff): Rename to ... | |
1674 | (i386_initial_stuff): ... this. Clear debug registers | |
1675 | state variables. | |
1676 | (store_debug_registers): Delete. | |
1677 | (i386_get_thread_context): New. | |
1678 | (load_debug_registers): Delete. | |
1679 | (i386_set_thread_context): New. | |
1680 | (i386_thread_added): New. | |
1681 | (single_step): Rename to ... | |
1682 | (i386_single_step): ... this. | |
1683 | (do_fetch_inferior_registers): Rename to ... | |
1684 | (i386_fetch_inferior_register): ... this. | |
1685 | (i386_store_inferior_register): New. | |
1686 | (the_low_target): Adapt to new interface. | |
1687 | ||
1688 | * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define. | |
1689 | (arm_get_thread_context): New. | |
1690 | (arm_set_thread_context): New. | |
1691 | (regptr): New. | |
1692 | (do_fetch_inferior_registers): Rename to ... | |
1693 | (arm_fetch_inferior_register): ... this. | |
1694 | (arm_store_inferior_register): New. | |
1695 | (arm_wince_breakpoint): Reimplement as unsigned long. | |
1696 | (arm_wince_breakpoint_len): Define. | |
1697 | (the_low_target): Adapt to new interface. | |
1698 | ||
1699 | * win32-low.h (target_ops): Remove regmap, store_debug_registers and | |
1700 | load_debug_registers. Add get_thread_context, set_thread_context, | |
1701 | thread_added and store_inferior_register. Rename | |
1702 | fetch_inferior_registers to fetch_inferior_register. | |
1703 | (regptr): Remove declaration. | |
1704 | ||
dd6953e1 PA |
1705 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
1706 | ||
1707 | * linux-low.c (linux_detach): Change return type to int. Return 0. | |
1708 | * spu-low.c (spu_detach): Likewise. | |
1709 | ||
444d6139 PA |
1710 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
1711 | ||
1712 | * target.h (target_ops): Change return type of detach to int. | |
1713 | Add join. | |
1714 | (join_inferior): New. | |
1715 | * server.c (main): Don't skip detach support on mingw32. | |
1716 | If the inferior doesn't support detaching return error. | |
1717 | Call join_inferior instead of using waitpid. | |
1718 | * linux-low.c (linux_join): New. | |
1719 | (linux_target_op): Add linux_join. | |
1720 | * spu-low.c (spu_join): New. | |
1721 | (spu_target_ops): Add spu_join. | |
1722 | * win32-low.c (win32_detach): Adapt to new interface. | |
1723 | Reopen current_process_handle before detaching. Issue a child | |
1724 | resume before detaching. | |
1725 | (win32_join): New. | |
1726 | (win32_target_op): Add win32_join. | |
1727 | ||
1d5315fe PA |
1728 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
1729 | ||
1730 | * win32-low.c (win32-attach): Fix return value. | |
1731 | * target.h (target_ops): Describe ATTACH return values. | |
1732 | ||
bf914831 PA |
1733 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
1734 | ||
1735 | * win32-low.c (GETPROCADDRESS): Define. | |
1736 | (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer. | |
1737 | (winapi_DebugSetProcessKillOnExit): Likewise. | |
1738 | (win32_create_inferior): Force usage of ansi CreateProcessA. | |
1739 | (win32_attach): Use GETPROCADDRESS. | |
1740 | (win32_detach): Likewise. | |
1741 | ||
f72f3e60 PA |
1742 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
1743 | ||
1744 | * win32-low.c (win32_wait): Don't use WSTOPSIG. | |
1745 | ||
ed50f18f PA |
1746 | 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt> |
1747 | ||
1748 | * win32-low.c: Commit leftover changes from 2007-03-29. | |
1749 | ||
0c2ead7e DJ |
1750 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
1751 | ||
1752 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit | |
1753 | fields short instead of int. Add explicit padding. | |
1754 | (i387_cache_to_fsave): Remove unnecessary casts. | |
1755 | (i387_fsave_to_cache): Doc fix. | |
1756 | (i387_cache_to_fxsave): Remove unnecessary casts and masking. | |
1757 | ||
73725ff3 DJ |
1758 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
1759 | ||
1760 | * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use. | |
1761 | (i387_fxsave_to_cache): Check fp->ftag while building ftag value. | |
1762 | ||
d99f33d8 PA |
1763 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
1764 | ||
1765 | * configure.srv (arm*-*-mingw32ce*): Move near the other | |
1766 | arm targets. | |
1767 | ||
68070c10 PA |
1768 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
1769 | ||
2482afc6 | 1770 | * configure.ac: Add errno checking. |
68070c10 PA |
1771 | (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h, |
1772 | sys/file.h and malloc.h. | |
1773 | (AC_CHECK_DECLS): Add perror. | |
1774 | (srv_mingwce): Handle. | |
2482afc6 | 1775 | * configure.srv (i[34567]86-*-cygwin*): Add |
68070c10 PA |
1776 | win32-i386-low.o to srv_tgtobj. |
1777 | (i[34567]86-*-mingw*): Likewise. | |
1778 | (arm*-*-mingw32ce*): Add case. | |
1779 | * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, | |
1780 | HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check. | |
1781 | [__MINGW32CE__] (strerror): New function. | |
1782 | [__MINGW32CE__] (errno): Define to GetLastError. | |
1783 | [__MINGW32CE__] (COUNTOF): New macro. | |
1784 | (remote_open): Remove extra close call. | |
1785 | * mem-break.c (delete_breakpoint_at): New function. | |
1786 | * mem-break.h (delete_breakpoint_at): Declare. | |
1787 | * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, | |
1788 | HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check. | |
1789 | [USE_WIN32API] (read, write): Add char* casts. | |
1790 | * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check. | |
1791 | * server.h: Include wincecompat.h on Windows CE. | |
1792 | [HAVE_ERRNO_H]: Check. | |
1793 | (perror): Declare if not declared. | |
1794 | * utils.c: Add stdlib.h, errno.h and malloc.h includes. | |
1795 | (perror_with_name): Remove errno declaration. | |
1796 | * wincecompat.h: New. | |
1797 | * wincecompat.c: New. | |
1798 | * win32-low.h: New. | |
1799 | * win32-arm-low.c: New. | |
1800 | * win32-i386-low.c: New. | |
1801 | (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h. | |
1802 | (OUTMSG2): Make it safe. | |
1803 | (_T): New macro. | |
1804 | (COUNTOF): New macro. | |
1805 | (NUM_REGS): Get it from the low target. | |
1806 | (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT, | |
1807 | CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0. | |
1808 | (thread_rec): Let low target handle debug registers. | |
1809 | (child_add_thread): Likewise. | |
1810 | (child_init_thread_list): Likewise. | |
1811 | (continue_one_thread): Likewise. | |
1812 | (regptr): New. | |
1813 | (do_child_fetch_inferior_registers): Move to ... | |
1814 | * win32-i386-low.c: ... here, and rename to ... | |
1815 | (do_fetch_inferior_registers): ... this. | |
1816 | * win32-low.c (child_fetch_inferior_registers): | |
1817 | Go through the low target. | |
1818 | (do_child_store_inferior_registers): Use regptr. | |
1819 | (strwinerror): New function. | |
1820 | (win32_create_inferior): Handle Windows CE. | |
1821 | Use strwinerror instead of strerror on Windows error | |
1822 | codes. Add program to the error output. | |
1823 | Don't close the main thread handle on Windows CE. | |
1824 | (win32_attach): Use coredll.dll on Windows CE. | |
1825 | (win32_kill): Close current process and current | |
1826 | thread handles. | |
1827 | (win32_detach): Use coredll.dll on Windows CE. | |
1828 | (win32_resume): Let low target handle debug registers, and | |
1829 | step request. | |
1830 | (handle_exception): Add/Remove initial breakpoint. Avoid | |
1831 | non-existant WSTOPSIG on Windows CE. | |
1832 | (win32_read_inferior_memory): Cast to remove warning. | |
1833 | (win32_arch_string): Go through the low target. | |
1834 | (initialize_low): Call set_breakpoint_data with the low | |
1835 | target's breakpoint. | |
1836 | * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM, | |
1837 | FOP_REGNUM, mappings): Move to ... | |
1838 | * win32-i386-low.c: ... here. | |
1839 | * win32-low.c (win32_thread_info): Move to ... | |
1840 | * win32-low.h: ... here. | |
1841 | * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c, | |
1842 | win32-arm-low.c and wincecompat.c. | |
1843 | (all:): Add $EXEEXT. | |
1844 | (install-only:): Likewise. | |
1845 | (gdbserver:): Likewise. | |
1846 | (gdbreplay:): Likewise. | |
1847 | * config.in: Regenerate. | |
1848 | * configure: Regenerate. | |
1849 | ||
41093d81 PA |
1850 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
1851 | ||
1852 | * win32-low.c: Rename typedef thread_info to | |
1853 | win32_thread_info throughout. | |
1854 | ||
544afa54 PA |
1855 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
1856 | ||
1857 | * win32-i386-low.c: Rename to ... | |
1858 | * win32-low.c: ... this. | |
1859 | * configure.srv: Replace win32-i386-low.o with win32-low.o. | |
1860 | * Makefile.in: Likewise. | |
1861 | ||
bce7165d PA |
1862 | 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt> |
1863 | ||
1864 | * remote-utils.c (monitor_output): Constify msg parameter. | |
1865 | * server.h (monitor_output): Likewise. | |
1866 | * win32-i386-low.c (handle_output_debug_string): New. | |
1867 | (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using | |
1868 | handle_output_debug_string. | |
1869 | (get_child_debug_event): Likewise. | |
1870 | ||
506c7aa0 DJ |
1871 | 2007-03-27 Mat Hostetter <mat@lcs.mit.edu> |
1872 | ||
1873 | * server.c (main): Correct strtoul check. | |
1874 | ||
42c81e2a DJ |
1875 | 2007-03-27 Jon Ringle <jon@ringle.org> |
1876 | ||
1877 | * linux-low.c: Check __ARCH_HAS_MMU__ also. | |
1878 | ||
9453113a DJ |
1879 | 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com> |
1880 | ||
1881 | * Makefile.in: Add dummy "pdf" and "install-pdf" targets. | |
1882 | ||
64a69107 DJ |
1883 | 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com> |
1884 | ||
1885 | * terminal.h: Check HAVE_SGTTY_H. | |
1886 | ||
1887 | 2007-02-27 Mat Hostetter <mat@lcs.mit.edu> | |
6f8486da DJ |
1888 | |
1889 | * remote-utils.c (remote_open): Print out the assigned port number. | |
1890 | ||
c74d0ad8 DJ |
1891 | 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com> |
1892 | ||
1893 | * remote-utils.c (monitor_output): New function. | |
1894 | * server.c (debug_threads): Define here. | |
1895 | (monitor_show_help): New function. | |
1896 | (handle_query): Handle qRcmd. | |
1897 | (main): Do not handle 'd' packet. | |
1898 | * server.h (debug_threads, remote_debug, monitor_output): Declare. | |
1899 | * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions | |
1900 | of debug_threads. | |
1901 | ||
de7c3b4a PA |
1902 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
1903 | ||
1904 | * Makefile.in (EXEEXT): New. | |
1905 | (clean): Use $(EXEEXT). | |
1906 | ||
ef57601b PA |
1907 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
1908 | ||
1909 | * target.h (target_ops): Rename send_signal to request_interrupt, | |
1910 | and remove enum target_signal parameter. | |
1911 | * linux-low.c (linux_request_interrupt): Rename from | |
1912 | linux_send_signal, and always send SIGINT. | |
1913 | * spu-low.c (spu_request_interrupt): Rename from spu_send_signal, | |
1914 | and always send SIGINT. | |
1915 | * remote-utils.c (putpkt_binary): Call request_interrupt, instead | |
1916 | of send_signal. | |
1917 | (input_interrupt): Likewise. | |
1918 | ||
820f2bda PA |
1919 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
1920 | ||
1921 | * server.c (get_features_xml): Check if target implemented | |
1922 | arch_string. | |
1923 | * win32-i386-low.c (win32_arch_string): New. | |
1924 | (win32_target_ops): Add win32_arch_string as arch_string member. | |
1925 | ||
ab39bf24 UW |
1926 | 2007-02-22 Markus Deuling <deuling@de.ibm.com> |
1927 | ||
1928 | * spu-low.c (spu_arch_string): New. | |
1929 | (spu_target_ops): Add spu_arch_string. | |
1930 | ||
61ff6e04 DJ |
1931 | 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
1932 | ||
1933 | * remote-utils.c: Remove HAVE_TERMINAL_H check. | |
1934 | * configure.ac: Do not check for terminal.h. | |
1935 | * configure, config.in: Regenerated. | |
1936 | ||
fb1e4ffc DJ |
1937 | 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
1938 | ||
1939 | * Makefile.in (OBS): Add $(XML_BUILTIN). | |
1940 | (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New. | |
1941 | (clean): Update. | |
1942 | (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o) | |
1943 | (arm-with-iwmmxt.c): New. | |
1944 | * config.in, configure: Regenerate. | |
1945 | * configure.ac: Check for iWMMXt. Handle srv_xmltarget, | |
1946 | srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML. | |
1947 | * configure.srv: Mention srv_xmltarget and srv_xmlfiles. | |
1948 | (arm*-*-linux*): Add iWMMXt and regset support. | |
1949 | * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define. | |
1950 | (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset) | |
1951 | (arm_store_wmmxregset, target_regsets): New. | |
1952 | * server.c (get_features_xml): Take annex argument. Check builtin | |
1953 | XML documents. | |
1954 | (handle_query): Handle multiple annexes. | |
1955 | ||
0f48aa01 DJ |
1956 | 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
1957 | ||
1958 | * remote-utils.c [USE_WIN32API] (read, write): Define. | |
1959 | (putpkt_binary, input_interrupt, readchar, getpkt): Use read and | |
1960 | write. | |
1961 | ||
23181151 DJ |
1962 | 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com> |
1963 | ||
1964 | * linux-i386-low.c (the_low_target): Set arch_string. | |
1965 | * linux-x86-64-low.c (the_low_target): Likewise. | |
1966 | * linux-low.c (linux_arch_string): New. | |
1967 | (linux_target_ops): Add it. | |
1968 | * linux-low.h (struct linux_target_ops): Add arch_string. | |
1969 | * server.c (write_qxfer_response): Use const void * for DATA. | |
1970 | (get_features_xml): New. | |
1971 | (handle_query): Handle qXfer:features:read. Report it for qSupported. | |
1972 | * target.h (struct target_ops): Add arch_string method. | |
1973 | ||
9d606399 DJ |
1974 | 2007-01-03 Denis Pilat <denis.pilat@st.com> |
1975 | Daniel Jacobowitz <dan@codesourcery.com> | |
1976 | ||
1977 | * linux-low.c (linux_kill): Handle being called with no threads. | |
1978 | * win32-i386-low.c (win32_kill): Likewise. | |
1979 | (get_child_debug_event): Clear current_process_handle. | |
1980 | ||
1981 | 2006-12-30 Denis PILAT <denis.pilat@st.com> | |
8264bb58 DJ |
1982 | Daniel Jacobowitz <dan@codesourcery.com> |
1983 | ||
1984 | * remote-utils.c (remote_open): Check the type of specified | |
1985 | serial port devices before opening them. | |
1986 | * server.c (main): Kill the inferior if an error occurs during | |
1987 | the first remote_open. | |
1988 | ||
a5e13d24 DJ |
1989 | 2006-12-05 Markus Deuling <deuling@de.ibm.com> |
1990 | ||
1991 | * README: Update supported targets. | |
1992 | ||
186947f7 DJ |
1993 | 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com> |
1994 | ||
1995 | * Makefile.in (clean): Remove reg-mips64.c. | |
1996 | (reg-mips64.c, reg-mips64.o): New rules. | |
1997 | * configure.srv: Handle mips64. Include regset support for mips. | |
1998 | * linux-mips-low.c (union mips_register): New. | |
1999 | (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it. | |
2000 | (mips_breakpoint, mips_breakpoint_at): Use int. | |
2001 | (mips_collect_register, mips_supply_register) | |
2002 | (mips_collect_register_32bit, mips_supply_register_32bit) | |
2003 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) | |
2004 | (mips_store_fpregset, target_regsets): New. | |
2005 | * thread-db.c (thread_db_get_tls_address): Use uintptr_t. | |
2006 | ||
a13e2c95 UW |
2007 | 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
2008 | ||
2009 | * configure.srv: Add target "spu*-*-*". | |
2010 | * Makefile.in (clean): Remove reg-spu.c. | |
2011 | (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies. | |
2012 | * spu-low.c: New file. | |
2013 | ||
cb7283db DJ |
2014 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
2015 | ||
2016 | * configure.ac: Correct td_thr_tls_get_addr test. | |
2017 | * configure: Regenerated. | |
2018 | ||
89be2091 DJ |
2019 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
2020 | ||
2021 | * linux-low.c (linux_wait_for_event): Reformat. Use the | |
2022 | pass_signals array. | |
2023 | * remote-utils.c (decode_address_to_semicolon): New. | |
2024 | * server.c (pass_signals, handle_general_set): New. | |
2025 | (handle_query): Mention QPassSignals for qSupported. | |
2026 | (main): Call handle_general_set. | |
2027 | * server.h (pass_signals, decode_address_to_semicolon): New. | |
2028 | ||
000ef4f0 DJ |
2029 | 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com> |
2030 | ||
2031 | * server.c (handle_query): Correct error handling for read_auxv. | |
2032 | ||
b7149293 UW |
2033 | 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com> |
2034 | ||
2035 | * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets | |
2036 | and srv_linux_thread_db to yes. | |
2037 | * linux-s390-low.c (s390_fill_gregset): New function. | |
2038 | (target_regsets): Define data structure. | |
2039 | ||
dae5f5cf DJ |
2040 | 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com> |
2041 | ||
2042 | * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New. | |
2043 | * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR. | |
2044 | * config.in, configure: Regenerated. | |
2045 | * inferiors.c (gdb_id_to_thread): New function. | |
2046 | (gdb_id_to_thread_id): Use it. | |
2047 | * linux-low.c (linux_target_ops): Use thread_db_get_tls_address. | |
2048 | * linux-low.h (struct process_info): Add th member. | |
2049 | (thread_db_get_tls_address): New prototype. | |
2050 | * remote-utils.c (decode_address): Make non-static. | |
2051 | * server.c (handle_query): Handle qGetTLSAddr. | |
2052 | * server.h (gdb_id_to_thread, decode_address): New prototypes. | |
2053 | * target.h (struct target_ops): Add get_tls_address. | |
2054 | * thread-db.c (maybe_attach_thread): Save the thread handle. | |
2055 | (thread_db_get_tls_address): New. | |
2056 | ||
32ca6d61 DJ |
2057 | 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com> |
2058 | ||
2059 | * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define. | |
2060 | (linux_resume_one_process): Take a siginfo_t *. Update all | |
2061 | callers. Queue it if necessary. Use PTRACE_SETSIGINFO. | |
2062 | (struct pending_signals): Add a siginfo_t. | |
2063 | (linux_wait_for_process): Always set last_status. | |
2064 | (linux_wait_for_event): Use PTRACE_GETSIGINFO. | |
2065 | (linux_queue_one_thread): Use PTRACE_GETSIGINFO. | |
2066 | * linux-low.h (struct process_info): Add last_status. | |
2067 | ||
5ffff7c1 DJ |
2068 | 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com> |
2069 | ||
2070 | * remote-utils.c (try_rle): New function. | |
2071 | (putpkt_binary): Use it. | |
2072 | ||
8695c747 DJ |
2073 | 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com> |
2074 | ||
2075 | * Makefile.in (clean): Clean reg-x86-64-linux.c. | |
2076 | (reg-x86-64-linux.o, reg-x86-64-linux.c): New. | |
2077 | * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o. | |
2078 | * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX. | |
2079 | (x86_64_fill_gregset, x86_64_store_gregset): Skip floating | |
2080 | point registers. | |
2081 | ||
290fadea RS |
2082 | 2006-08-08 Richard Sandiford <richard@codesourcery.com> |
2083 | ||
2084 | * server.c (terminal_fd): New variable. | |
2085 | (old_foreground_pgrp): Likewise. | |
2086 | (restore_old_foreground_pgrp): New function. | |
2087 | (start_inferior): Record the terminal file descriptor in terminal_fd | |
2088 | and its original foreground group in old_foreground_pgrp. Register | |
2089 | restore_old_foreground_pgrp with atexit(). | |
2090 | ||
9f2e1e63 DJ |
2091 | 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com> |
2092 | ||
2093 | * server.c (handle_query): Correct qPart to qXfer. | |
2094 | ||
b80864fb DJ |
2095 | 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com> |
2096 | ||
2097 | * configure.ac: Check for more headers which are missing on | |
2098 | Windows. Automatically supply -lwsock32 and USE_WIN32API. | |
2099 | * configure.srv: Add Cygwin and mingw32. | |
2100 | * remote-utils.c: Don't include headers unconditionally which | |
2101 | are missing on mingw32. Include <winsock.h> for mingw32. | |
2102 | (remote_open): Adjust for mingw32 support. Flush | |
2103 | standard error after writing to it. | |
2104 | (remote_close, putpkt_binary, input_interrupt, block_async_io) | |
2105 | (unblock_async_io, enable_async_io, disable_async_io) | |
2106 | (readchar, getpkt): Update for Winsock support. | |
2107 | (prepare_resume_reply): Expect a protocol signal number. | |
2108 | * server.c: Disable <sys/wait.h> on mingw32. | |
2109 | (start_inferior): Adjust for mingw32 support. Flush | |
2110 | standard error after writing to it. | |
2111 | (attach_inferior): Likewise. Use protocol signal | |
2112 | numbers. | |
2113 | (main): Skip 'D' packet on mingw32. Use protocol signal numbers | |
2114 | and names. | |
2115 | * win32-i386-low.c: New file. | |
2116 | * Makefile.in (XM_CLIBS): Set. | |
2117 | (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS). | |
2118 | (win32-i386-low.o): New dependency rule. | |
2119 | * linux-low.c (linux_wait): Use target signal numbers. | |
2120 | * target.h (struct target_ops): Doc fix. | |
2121 | * server.h (target_signal_to_name): New prototype. | |
2122 | * gdbreplay.c: Don't include headers unconditionally which | |
2123 | are missing on mingw32. Include <winsock.h> for mingw32. | |
2124 | (remote_close, remote_open): Adjust for Winsock support. | |
2125 | * configure, config.in: Regenerated. | |
2126 | ||
0876f84a DJ |
2127 | 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
2128 | ||
2129 | * server.c (decode_xfer_read, write_qxfer_response): New. | |
2130 | (handle_query): Take a packet length argument. Handle | |
2131 | qXfer:auxv:read instead of qPart:auxv:read. Mention it in | |
2132 | the qSupported response. | |
2133 | (main): Update call to handle_query. | |
2134 | ||
01f9e8fa DJ |
2135 | 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com> |
2136 | ||
2137 | * remote-utils.c (remote_escape_output, remote_unescape_input): New. | |
2138 | (putpkt_binary): Renamed from putpkt and adjusted for binary | |
2139 | data. | |
2140 | (putpkt): New wrapper for putpkt_binary. | |
2141 | (readchar): Don't mask off the high bit. | |
2142 | (decode_X_packet): New function. | |
2143 | * server.c (main): Call putpkt_binary if a handler sets the packet | |
2144 | length. Save the length of the incoming packet. Handle 'X'. | |
2145 | * server.h (gdb_byte, remote_escape_output, decode_X_packet): New. | |
2146 | ||
be2a5f71 DJ |
2147 | 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com> |
2148 | ||
2149 | * server.c (handle_query): Handle qSupported. | |
2150 | ||
ea025f5f DJ |
2151 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
2152 | ||
2153 | * remote-utils.c (all_symbols_looked_up): New variable. | |
2154 | (look_up_one_symbol): Check it. | |
2155 | * server.h (look_up_one_symbol): New declaration. | |
2156 | * thread-db.c (thread_db_init): Set all_symbols_looked_up. | |
2157 | ||
9308fc88 DJ |
2158 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
2159 | ||
2160 | * Makefile.in (linux-arm-low.o): Update dependencies. | |
66f338c7 | 2161 | * linux-arm-low.c: Include "gdb_proc_service.h". |
9308fc88 DJ |
2162 | (PTRACE_GET_THREAD_AREA): Define. |
2163 | (ps_get_thread_area): New function. | |
2164 | ||
52fb6437 NS |
2165 | 2006-05-09 Nathan Sidwell <nathan@codesourcery.com> |
2166 | ||
2167 | * configure.srv (m68k*-*-uclinux*): New target. | |
2168 | * linux-low.c (linux_create_inferior): Use vfork on mmuless systems. | |
2169 | (linux_resume_one_process): Remove extraneous cast. | |
2170 | (linux_read_offsets): New. | |
2171 | (linux_target_op): Add linux_read_offsets on mmuless systems. | |
2172 | * server.c (handle_query): Add qOffsets logic. | |
2173 | * target.h (struct target_ops): Add read_offsets. | |
2174 | ||
21b0f40c DJ |
2175 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
2176 | ||
2177 | * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h". | |
2178 | (PTRACE_GET_THREAD_AREA): Define. | |
2179 | (ps_get_thread_area): New function. | |
2180 | * Makefile.in (linux-i386-low.o, linux-mips-low.o) | |
2181 | (linux-x86-64-low.o): Update. | |
2182 | ||
0050a760 DJ |
2183 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
2184 | ||
2185 | * configure.ac: Remove checks for prfpregset_t. | |
2186 | * gdb_proc_service.h: New file. | |
2187 | * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the | |
2188 | new "gdb_proc_service.h". | |
2189 | * proc-service.c: Likewise. | |
2190 | (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t. | |
2191 | (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument. | |
2192 | * Makefile.in (gdb_proc_service_h): Updated. | |
2193 | * configure, config.in: Regenerated. | |
2194 | ||
b92a518e DJ |
2195 | 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
2196 | ||
2197 | * remote-utils.c (prepare_resume_reply): Move declaration | |
2198 | of gdb_id_from_wait to the top of the block. | |
2199 | ||
545587ee DJ |
2200 | 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com> |
2201 | ||
2202 | * linux-low.c (regsets_store_inferior_registers): Read the regset | |
2203 | from the target before filling it. | |
2204 | ||
9db87ebd DJ |
2205 | 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
2206 | ||
2207 | * server.c (attach_inferior): Return SIGTRAP for a successful | |
2208 | attach. | |
2209 | ||
dd24457d DJ |
2210 | 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
2211 | ||
2212 | * Makefile.in (OBS): Add version.o. | |
2213 | (STAGESTUFF): Delete. | |
2214 | (version.o): Add dependencies. | |
2215 | (version.c): Replace rule. | |
2216 | (clean): Remove version.c. | |
2217 | * server.c (gdbserver_version): New. | |
2218 | (gdbserver_usage): Use printf. | |
2219 | (main): Handle --version and --help. | |
2220 | * server.h (version, host_name): Add declarations. | |
2221 | ||
6f0f660e EZ |
2222 | 2005-12-23 Eli Zaretskii <eliz@gnu.org> |
2223 | ||
2224 | * linux-arm-low.c: | |
2225 | * linux-arm-low.c: | |
2226 | * inferiors.c: | |
2227 | * i387-fp.h: | |
2228 | * i387-fp.c: | |
2229 | * gdbreplay.c: | |
2230 | * regcache.c: | |
2231 | * proc-service.c: | |
2232 | * mem-break.h: | |
2233 | * mem-break.c: | |
2234 | * linux-x86-64-low.c: | |
2235 | * linux-sh-low.c: | |
2236 | * linux-s390-low.c: | |
2237 | * linux-ppc64-low.c: | |
2238 | * linux-ppc-low.c: | |
2239 | * linux-mips-low.c: | |
2240 | * linux-m68k-low.c: | |
2241 | * linux-m32r-low.c: | |
2242 | * linux-low.h: | |
2243 | * linux-low.c: | |
2244 | * linux-ia64-low.c: | |
2245 | * linux-i386-low.c: | |
2246 | * linux-crisv32-low.c: | |
2247 | * thread-db.c: | |
2248 | * terminal.h: | |
2249 | * target.h: | |
2250 | * target.c: | |
2251 | * server.h: | |
2252 | * server.c: | |
2253 | * remote-utils.c: | |
2254 | * regcache.h: | |
2255 | * utils.c: | |
2256 | * Makefile.in: | |
2257 | * configure.ac: | |
2258 | * gdbserver.1: Add (C) after Copyright. Update the FSF | |
2259 | address. | |
2260 | ||
9d1fb177 DJ |
2261 | 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com> |
2262 | ||
2263 | * linux-arm-low.c (arm_eabi_breakpoint): New variable. | |
2264 | (arm_breakpoint_at): Recognize both breakpoints. | |
2265 | (the_low_target): Use the correct breakpoint instruction. | |
2266 | ||
011a70c2 DJ |
2267 | 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com> |
2268 | ||
2269 | * configure.srv (x86_64-*-linux*): Turn on thread_db support. | |
2270 | * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len) | |
2271 | (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New. | |
2272 | (the_low_target): Update. | |
2273 | ||
7fb85e41 AS |
2274 | 2005-10-25 Andreas Schwab <schwab@suse.de> |
2275 | ||
2276 | * server.c (main): Allocate mem_buf with PBUFSIZ bytes. | |
2277 | ||
2278 | * linux-ia64-low.c (ia64_regmap): Remove NAT registers. | |
2279 | (ia64_num_regs): Reduce to 462. | |
2280 | ||
3db0444b DJ |
2281 | 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com> |
2282 | ||
2283 | * acinclude.m4: Correct quoting. | |
2284 | * aclocal.m4: Regenerated. | |
2285 | ||
2286 | Suggested by SZOKOVACS Robert <szo@ies.hu>: | |
2287 | * thread-db.c (thread_db_err_str): Handle TD_VERSION. | |
2288 | (thread_db_init): Call thread_db_err_str. | |
2289 | * configure.ac: Check for TD_VERSION. | |
2290 | * config.in, configure: Regenerated. | |
2291 | ||
bee0189a DJ |
2292 | 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
2293 | ||
2294 | * server.h (error, fatal, warning): Add ATTR_FORMAT. | |
2295 | ||
e9d25b98 DJ |
2296 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
2297 | ||
2298 | * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS | |
2299 | is not available. Define HAVE_PTRACE_GETREGS if it is. | |
2300 | * config.in, configure: Regenerated. | |
2301 | * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64. | |
2302 | * linux-i386-low.c, linux-m68k-low.c: Update to use | |
2303 | HAVE_PTRACE_GETREGS. | |
2304 | * linux-low.c (regsets_fetch_inferior_registers) | |
2305 | (regsets_store_inferior_registers): Only return 0 if we processed | |
2306 | GENERAL_REGS. | |
2307 | * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New. | |
2308 | * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New. | |
2309 | ||
a06660f7 DJ |
2310 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
2311 | ||
2312 | * inferiors.c (struct thread_info): Add gdb_id. | |
2313 | (add_thread): Add gdb_id argument. | |
2314 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New. | |
2315 | * linux-low.c (linux_create_inferior, linux_attach_lwp): Update | |
2316 | calls to add_thread. | |
2317 | * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id. | |
2318 | * server.c (handle_query): Use thread_to_gdb_id. | |
2319 | (handle_v_cont, main): Use gdb_id_to_thread_id. | |
2320 | * server.h (add_thread): Update prototype. | |
2321 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New | |
2322 | prototypes. | |
2323 | ||
5a1f5858 DJ |
2324 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
2325 | ||
2326 | * linux-low.c (fetch_register, usr_store_inferior_registers): Handle | |
2327 | left-padded registers. | |
2328 | * linux-low.h (struct linux_target_ops): Add left_pad_xfer. | |
2329 | * linux-ppc64-low.c (the_low_target): Set left_pad_xfer. | |
2330 | ||
e122f1f5 SE |
2331 | 2005-07-01 Steve Ellcey <sje@cup.hp.com> |
2332 | ||
2333 | * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS. | |
2334 | * configure: Regenerate. | |
2335 | * config.in: Regenerate. | |
2336 | * server.h (NEED_DECLARATION_STRERROR): | |
2337 | Replace with !HAVE_DECL_STRERROR. | |
2338 | ||
d592fa2f DJ |
2339 | 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com> |
2340 | ||
2341 | * linux-low.c (linux_wait, linux_send_signal): Don't test | |
2342 | an unsigned long variable for > 0 if it could be MAX_ULONG. | |
2343 | * server.c (myresume): Likewise. | |
2344 | * target.c (set_desired_inferior): Likewise. | |
2345 | ||
ccbd4912 MK |
2346 | 2005-06-13 Mark Kettenis <kettenis@gnu.org> |
2347 | ||
2348 | * configure.ac: Simplify and improve check for socklen_t. | |
2349 | * configure, config.in: Regenerate. | |
2350 | ||
f450004a DJ |
2351 | 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com> |
2352 | ||
2353 | * acconfig.h: Remove. | |
2354 | * configure.ac: Add a test for socklen_t. Use three-argument | |
2355 | AC_DEFINE throughout. | |
2356 | * config.in: Regenerated using autoheader 2.59. | |
2357 | * configure: Regenerated. | |
2358 | ||
2359 | * gdbreplay.c (socklen_t): Provide a default. | |
2360 | (remote_open): Use socklen_t. | |
2361 | * remote-utils.c (socklen_t): Provide a default. | |
2362 | (remote_open): Use socklen_t. | |
2363 | (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use | |
2364 | unsigned char. | |
2365 | ||
2366 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned | |
2367 | char for buffers. | |
2368 | * linux-low.c (linux_read_memory, linux_write_memory) | |
2369 | (linux_read_auxv): Likewise. | |
2370 | * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read) | |
2371 | (check_mem_write): Likewise. | |
2372 | * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write): | |
2373 | Likewise. | |
2374 | * regcache.c (struct inferior_rgcache_data, registers_to_string) | |
2375 | (registers_from_string, register_data): Likewise. | |
2376 | * server.c (handle_query, main): Likewise. | |
2377 | * server.h (convert_ascii_to_int, convert_int_to_ascii) | |
2378 | (decode_M_packet): Likewise. | |
2379 | * target.c (read_inferior_memory, write_inferior_memory): Likewise. | |
2380 | * target.h (struct target_ops): Update read_memory, write_memory, | |
2381 | and read_auxv. | |
2382 | (read_inferior_memory, write_inferior_memory): Update. | |
2383 | * linux-low.h (struct linux_target_ops): Change type of breakpoint | |
2384 | to unsigned char *. | |
2385 | * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c, | |
2386 | linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c, | |
2387 | linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c, | |
2388 | linux-s390-low.c, linux-sh-low.c: Update for changes in | |
2389 | read_inferior_memory and the_low_target->breakpoint. | |
2390 | ||
eee84df1 DJ |
2391 | 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com> |
2392 | ||
2393 | * Makefile.in (SFILES): Add linux-ppc64-low.c. | |
2394 | (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets. | |
2395 | * configure.srv: Add powerpc64-*-linux*. | |
2396 | * linux-ppc64-low.c: New file. | |
2397 | ||
45b134e5 OF |
2398 | 2005-05-23 Orjan Friberg <orjanf@axis.com> |
2399 | ||
2400 | * linux-cris-low.c: New file with support for CRIS. | |
2401 | * linux-crisv32-low.c: Ditto for CRISv32. | |
2402 | * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c. | |
2403 | (clean): Add reg-cris.c and reg-crisv32.c. | |
2404 | Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c, | |
2405 | reg-crisv32.o, and reg-crisv32.c to make rules. | |
2406 | * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of | |
2407 | recognized targets. | |
2408 | ||
48d93c75 UW |
2409 | 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com> |
2410 | ||
2411 | * linux-low.c (fetch_register): Ensure buffer size is a multiple | |
2412 | of sizeof (PTRACE_XFER_TYPE). | |
2413 | (usr_store_inferior_registers): Likewise. Zero out excess bytes. | |
2414 | ||
e013ee27 OF |
2415 | 2005-05-12 Orjan Friberg <orjanf@axis.com> |
2416 | ||
2417 | * target.h (struct target_ops): Add insert_watchpoint, | |
2418 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address function | |
2419 | pointers for hardware watchpoint support. | |
2420 | * linux-low.h (struct linux_target_ops): Ditto. | |
2421 | * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint) | |
2422 | (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add | |
2423 | to linux_target_ops. | |
2424 | * remote-utils.c (prepare_resume_reply): Add watchpoint information to | |
2425 | reply packet. | |
2426 | * server.c (main): Recognize 'Z' and 'z' packets. | |
2427 | ||
b0ded00b UW |
2428 | 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com> |
2429 | ||
2430 | * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define. | |
2431 | (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions. | |
2432 | (the_low_target): Add new members. | |
2433 | ||
8643e2ad DJ |
2434 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
2435 | ||
2436 | * proc-service.c (ps_lgetregs): Search all_processes instead of | |
2437 | all_threads. | |
2438 | ||
fc620387 DJ |
2439 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
2440 | ||
2441 | * server.c (start_inferior): Change return type to int. | |
2442 | (attach_inferior): Change sigptr to int *. | |
2443 | (handle_v_cont, handle_v_requests): Change signal to int *. | |
2444 | (main): Change signal to int. | |
2445 | ||
2446 | 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com> | |
7cfbc4a0 KI |
2447 | |
2448 | * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o. | |
2449 | * configure.srv: Add m32r*-*-linux*. | |
2450 | * linux-m32r-low.c: New file. | |
2451 | ||
e0e76420 DJ |
2452 | 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com> |
2453 | ||
2454 | * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly. | |
2455 | ||
a1928bad DJ |
2456 | 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
2457 | ||
2458 | * inferiors.c (change_inferior_id, add_thread, find_inferior_id): | |
2459 | Take unsigned long arguments for PIDs. | |
2460 | * linux-low.c (add_process, linux_attach_lwp, linux_attach) | |
2461 | (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop) | |
2462 | (wait_for_sigstop, linux_resume_one_process) | |
2463 | (regsets_fetch_inferior_registers, linux_send_signal) | |
2464 | (linux_read_auxv): Likewise. Update the types of variables holding | |
2465 | PIDs. Update format string specifiers. | |
2466 | * linux-low.h (struct process_info, linux_attach_lwp): Likewise. | |
2467 | * remote-utils.c (prepare_resume_reply): Likewise. | |
2468 | * server.c (cont_thread, general_thread, step_thread) | |
2469 | (thread_from_wait, old_thread_from_wait, signal_pid): Change type to | |
2470 | unsigned long. | |
2471 | (handle_query): Update format specifiers. | |
2472 | (handle_v_cont, main): Use strtoul for thread IDs. | |
2473 | * server.h (struct inferior_list_entry): Use unsigned long for ID. | |
2474 | (add_thread, find_inferior_id, change_inferior_id, cont_thread) | |
2475 | (general_thread, step_thread, thread_from_wait) | |
2476 | (old_thread_from_wait): Update. | |
2477 | * target.h (struct thread_resume): Use unsigned long for THREAD. | |
2478 | (struct target_ops): Use unsigned long for arguments to attach and | |
2479 | thread_alive. | |
2480 | ||
dcdb98d2 DJ |
2481 | 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com> |
2482 | ||
2483 | * acinclude.m4: Include bfd/bfd.m4 directly. | |
2484 | * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis | |
2485 | <agriffis@toolchain.org>. | |
2486 | * aclocal.m4, configure: Regenerated. | |
2487 | ||
bec39cab AC |
2488 | 2005-01-07 Andrew Cagney <cagney@gnu.org> |
2489 | ||
2490 | * configure.ac: Rename configure.in, require autoconf 2.59. | |
2491 | * configure: Re-generate. | |
2492 | ||
434c4c77 DJ |
2493 | 2004-12-08 Daniel Jacobowitz <dan@debian.org> |
2494 | ||
2495 | * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset | |
2496 | LIBS when finished. | |
2497 | * aclocal.m4: Regenerated. | |
2498 | * configure: Regenerated. | |
2499 | ||
db1d3e1b AS |
2500 | 2004-11-21 Andreas Schwab <schwab@suse.de> |
2501 | ||
2502 | * linux-m68k-low.c (m68k_num_gregs): Define. | |
2503 | (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset) | |
2504 | (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New. | |
2505 | (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc) | |
2506 | (m68k_breakpoint_at): New. Add to the_low_target. | |
2507 | ||
2508 | * configure.srv (m68*-*-linux*): Set srv_linux_regsets and | |
2509 | srv_linux_thread_db to yes. | |
2510 | ||
43360365 JB |
2511 | 2004-10-20 Joel Brobecker <brobecker@gnat.com> |
2512 | ||
2513 | * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing. | |
2514 | (ARCH_SET_FS): Likewise. | |
2515 | (ARCH_GET_FS): Likewise. | |
2516 | (ARCH_GET_GS): Likewise. | |
2517 | ||
fd500816 DJ |
2518 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
2519 | ||
2520 | * linux-i386-low.c (ps_get_thread_area): New. | |
2521 | * linux-x86-64-low.c (ps_get_thread_area): New. | |
2522 | * linux-low.c: Include <sys/syscall.h>. | |
2523 | (linux_kill_one_process): Don't kill the first thread here. | |
2524 | (linux_kill): Kill the first thread here. | |
2525 | (kill_lwp): New function. | |
2526 | (send_sigstop, linux_send_signal): Use it. | |
2527 | * proc-service.c: Clean up #ifdefs. | |
2528 | (fpregset_info): Delete. | |
2529 | (ps_lgetregs): Update and enable implementation. | |
2530 | (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled | |
2531 | implementations. | |
2532 | * remote-utils.c (struct sym_cache, symbol_cache): New. | |
2533 | (input_interrupt): Print a clearer message. | |
2534 | (async_io_enabled): New variable. | |
2535 | (enable_async_io, disable_async_io): Use it. Update comments. | |
2536 | (look_up_one_symbol): Use the symbol cache. | |
2537 | * thread-db.c (thread_db_look_up_symbols): New function. | |
2538 | (thread_db_init): Update comments. Call thread_db_look_up_symbols. | |
2539 | ||
f6de3c42 DJ |
2540 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
2541 | ||
2542 | * configure.in: Test for -rdynamic. | |
2543 | * configure: Regenerated. | |
2544 | * Makefile (INTERNAL_LDFLAGS): New. | |
2545 | (gdbserver, gdbreplay): Use it. | |
2546 | ||
2c0fc042 AC |
2547 | 2004-09-02 Andrew Cagney <cagney@gnu.org> |
2548 | ||
2549 | * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE. | |
2550 | ||
075b3282 DJ |
2551 | 2004-03-23 Daniel Jacobowitz <drow@mvista.com> |
2552 | ||
2553 | * linux-low.c (linux_wait): Clear all_processes list also. | |
2554 | ||
fa6a77dc DJ |
2555 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
2556 | ||
2557 | * linux-low.c: Include <errno.h>. Remove extern declaration of | |
2558 | errno. | |
2559 | ||
6d782a97 DJ |
2560 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
2561 | ||
2562 | * gdbreplay.c, server.h, utils.c: Update copyright years. | |
2563 | ||
3a7fb99b DJ |
2564 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
2565 | ||
2566 | * server.c (main): Print child status or termination signal from | |
2567 | variable 'signal', not 'sig'. | |
2568 | ||
c3e735a6 DJ |
2569 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
2570 | ||
2571 | * linux-low.c (linux_read_memory): Change return type to | |
2572 | int. Check for and return error from ptrace(). | |
2573 | * target.c (read_inferior_memory): Change return type to int. Pass | |
2574 | back return status from the_target->read_memory(). | |
2575 | * target.h (struct target_ops): Adapt *read_memory() prototype. | |
2576 | Update comment. | |
2577 | (read_inferior_memory): Adapt prototype. | |
2578 | * server.c (main): Return an error packet if | |
2579 | read_inferior_memory() returns an error. | |
2580 | ||
a59d1c82 DJ |
2581 | 2004-03-04 Daniel Jacobowitz <drow@mvista.com> |
2582 | ||
2583 | * Makefile.in (distclean): Remove config.h, stamp-h, and config.log. | |
2584 | Unify with other clean targets. | |
2585 | ||
dc3f8883 DJ |
2586 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
2587 | ||
2588 | * server.c (handle_v_cont): Call set_desired_inferior. | |
2589 | ||
89a208da DJ |
2590 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
2591 | ||
2592 | * remote-utils.c (prepare_resume_reply): Always supply "thread:". | |
2593 | ||
62ea82f5 DJ |
2594 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
2595 | ||
2596 | * linux-low.c (linux_wait): Unblock async I/O. | |
2597 | (linux_resume): Block and enable async I/O. | |
2598 | * remote-utils.c (block_async_io, unblock_async_io): New functions. | |
2599 | * server.h (block_async_io, unblock_async_io): Add prototypes. | |
2600 | ||
6910d122 DJ |
2601 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
2602 | ||
2603 | * remote-utils.c (remote_open): Print a status notice after | |
2604 | opening a TCP port. | |
2605 | * server.c (attach_inferior): Print a status notice after | |
2606 | attaching. | |
2607 | ||
2608 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> | |
d677d77d DJ |
2609 | |
2610 | * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. | |
2611 | ||
c89dc5d4 DJ |
2612 | 2004-02-26 Daniel Jacobowitz <drow@mvista.com> |
2613 | ||
2614 | * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the | |
2615 | error packet. | |
2616 | * server.c, target.h: Update copyright years. | |
2617 | ||
4b8dad4a RM |
2618 | 2004-02-25 Roland McGrath <roland@redhat.com> |
2619 | ||
2620 | * target.h (struct target_ops): New member `read_auxv'. | |
2621 | * server.c (handle_query): Handle qPart:auxv:read: query using that. | |
2622 | * linux-low.c (linux_read_auxv): New function. | |
2623 | (linux_target_ops): Initialize `read_auxv' member to that. | |
2624 | ||
d7446758 JB |
2625 | 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
2626 | ||
2627 | Committed by Jim Blandy <jimb@redhat.com>. | |
2628 | ||
2629 | * linux-s390-low.c (s390_num_regs): Update. | |
4b8dad4a | 2630 | (s390_regmap): Remove control registers. Use __s390x__ predefine |
d7446758 JB |
2631 | instead of GPR_SIZE to distiguish s390 and s390x targets. |
2632 | ||
5544ad89 DJ |
2633 | 2004-01-31 Daniel Jacobowitz <drow@mvista.com> |
2634 | ||
2635 | * linux-low.c: Update copyright year. | |
2636 | (check_removed_breakpoint): Clear pending_is_breakpoint. | |
2637 | (linux_set_resume_request, linux_queue_one_thread) | |
2638 | (resume_status_pending_p): New functions. | |
2639 | (linux_continue_one_thread): Use process->resume. | |
2640 | (linux_resume): Only resume threads if there are no pending events. | |
2641 | * linux-low.h (struct process_info): Add resume request | |
2642 | pointer. | |
2643 | ||
2a68b70e DJ |
2644 | 2004-01-30 Daniel Jacobowitz <drow@mvista.com> |
2645 | ||
2646 | * regcache.c (new_register_cache): Clear the allocated register | |
2647 | buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>. | |
2648 | ||
64386c31 DJ |
2649 | 2003-10-13 Daniel Jacobowitz <drow@mvista.com> |
2650 | ||
2651 | * linux-low.c (linux_resume): Take a struct thread_resume * | |
2652 | argument. | |
2653 | (linux_wait): Update call. | |
2654 | (resume_ptr): New static variable. | |
2655 | (linux_continue_one_thread): Renamed from | |
2656 | linux_continue_one_process. Use resume_ptr. | |
2657 | (linux_resume): Use linux_continue_one_thread. | |
2658 | * server.c (handle_v_cont, handle_v_requests): New functions. | |
2659 | (myresume): New function. | |
2660 | (main): Handle 'v' case. | |
2661 | * target.h (struct thread_resume): New type. | |
2662 | (struct target_ops): Change argument of "resume" to struct | |
2663 | thread_resume *. | |
2664 | (myresume): Delete macro. | |
2665 | ||
c938e9b0 L |
2666 | 2003-08-08 H.J. Lu <hongjiu.lu@intel.com> |
2667 | ||
2668 | * Makefile.in (install-only): Create dest dir. Support DESTDIR. | |
2669 | (uninstall): Support DESTDIR. | |
2670 | ||
7f313d07 BC |
2671 | Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com> |
2672 | ||
2673 | * configure.srv: Add xscale*linux copy of arm*linux entry. | |
2674 | ||
3b2fc2ea DJ |
2675 | 2003-07-24 Daniel Jacobowitz <drow@mvista.com> |
2676 | ||
2677 | * linux-arm-low.c (arm_reinsert_addr): New function. | |
2678 | (the_low_target): Add arm_reinsert_addr. | |
2679 | ||
1c0a559e MK |
2680 | 2003-07-08 Mark Kettenis <kettenis@gnu.org> |
2681 | ||
2682 | * mem-break.c: Remove whitespace at end of file. | |
2683 | ||
43d5792c DJ |
2684 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
2685 | ||
2686 | * configure.in: Check whether we need to prototype strerror. | |
2687 | * server.h: Optionally prototype strerror. | |
2688 | * gdbreplay.c (perror_with_name): Use strerror. | |
2689 | * linux-low.c (linux_attach_lwp): Use strerror. | |
2690 | * utils.c (perror_with_name): Use strerror. | |
2691 | * config.in, configure: Regenerated. | |
2692 | ||
c8a86edf DJ |
2693 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
2694 | ||
2695 | * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by | |
2696 | SUGIOKA Toshinobu <sugioka@itonet.co.jp>. | |
2697 | ||
73d37363 DJ |
2698 | 2003-06-20 Daniel Jacobowitz <drow@mvista.com> |
2699 | ||
2700 | * Makefile.in (SFILES): Update. | |
2701 | * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c, | |
2702 | low-sun3.c: Remove files. | |
2703 | ||
6ad8ae5c DJ |
2704 | 2003-06-17 Daniel Jacobowitz <drow@mvista.com> |
2705 | ||
2706 | * linux-low.c: Move comment to linux_thread_alive where it belonged. | |
2707 | (linux_detach_one_process, linux_detach): New functions. | |
2708 | (linux_target_ops): Add linux_detach. | |
2709 | * server.c (main): Handle 'D' packet. | |
2710 | * target.h (struct target_ops): Add "detach" member. | |
2711 | (detach_inferior): Define. | |
2712 | ||
1581182a MK |
2713 | 2003-06-13 Mark Kettenis <kettenis@gnu.org> |
2714 | ||
2715 | From Kelley Cook <kelleycook@wideopenwest.com>: | |
2716 | * configure.srv: Accept i[34567]86 variants. | |
2717 | ||
e5379b03 DJ |
2718 | 2003-06-05 Daniel Jacobowitz <drow@mvista.com> |
2719 | ||
2720 | * linux-low.c (linux_wait_for_event): Correct comment typos. | |
2721 | (linux_resume_one_process): Call check_removed_breakpoint. | |
2722 | (linux_send_signal): New function. | |
2723 | (linux_target_ops): Add linux_send_signal. | |
2724 | * remote-utils.c (putpkt, input_interrupt): Use send_signal instead | |
2725 | of kill. | |
2726 | * target.h (struct target_ops): Add send_signal. | |
2727 | ||
2ff29de4 JB |
2728 | 2003-05-29 Jim Blandy <jimb@redhat.com> |
2729 | ||
2730 | * linux-low.c (usr_store_inferior_registers): Transfer buf in | |
2731 | PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise, | |
2732 | if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing | |
2733 | away part of the register's value. | |
2734 | ||
254787d4 DJ |
2735 | 2003-03-26 Daniel Jacobowitz <drow@mvista.com> |
2736 | ||
2737 | * linux-low.c (linux_create_inferior): Use __SIGRTMIN. | |
2738 | (linux_wait_for_event, linux_init_signals): Likewise. | |
2739 | ||
94e10508 DJ |
2740 | 2003-03-17 Daniel Jacobowitz <drow@mvista.com> |
2741 | ||
2742 | * configure.in: Check for stdlib.h. | |
2743 | * configure: Regenerated. | |
2744 | * config.in: Regenerated. | |
2745 | ||
4c0711e0 DJ |
2746 | 2003-01-04 Andreas Schwab <schwab@suse.de> |
2747 | ||
2748 | * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31. | |
2749 | ||
ef66e766 AC |
2750 | 2003-01-02 Andrew Cagney <ac131313@redhat.com> |
2751 | ||
2752 | * Makefile.in: Remove obsolete code. | |
2753 | ||
a1358604 DJ |
2754 | 2002-11-20 Daniel Jacobowitz <drow@mvista.com> |
2755 | ||
2756 | * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of | |
2757 | defined(PT_FPR0_HI). | |
2758 | ||
23ce3b1c DJ |
2759 | 2002-11-17 Stuart Hughes <seh@zee2.com> |
2760 | ||
2761 | * linux-arm-low.c (arm_num_regs): Increase. | |
2762 | (arm_regmap): Include status register. | |
2763 | ||
2764 | 2002-11-17 Daniel Jacobowitz <drow@mvista.com> | |
2765 | ||
2766 | * linux-low.c (register_addr): Remove incorrect -1 check. | |
2767 | ||
a9fa9f7d DJ |
2768 | 2002-08-29 Daniel Jacobowitz <drow@mvista.com> |
2769 | ||
2770 | * linux-low.c (linux_create_inferior): Call setpgid. Return | |
2771 | the new PID. | |
2772 | (unstopped_p, linux_signal_pid): Remove. | |
2773 | (linux_target_ops): Remove linux_signal_pid. | |
2774 | * remote-utils.c (putpkt, input_interrupt): Use signal_pid | |
2775 | global instead of target method. | |
2776 | * target.h (struct target_ops): Remove signal_pid. Update comment | |
2777 | for create_inferior. | |
2778 | * server.c (signal_pid): New variable. | |
2779 | (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in | |
4b8dad4a | 2780 | gdbserver. Set the child to be the foreground process group. |
a9fa9f7d DJ |
2781 | (attach_inferior): Set signal_pid. |
2782 | ||
17574093 DJ |
2783 | 2002-08-23 Daniel Jacobowitz <drow@mvista.com> |
2784 | ||
2785 | * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2. | |
2786 | ||
2787 | 2002-08-20 Jim Blandy <jimb@redhat.com> | |
2788 | ||
2789 | * Makefile.in (LDFLAGS): Allow the configure script to establish a | |
2790 | default for this. | |
2791 | ||
2792 | 2002-08-01 Andrew Cagney <cagney@redhat.com> | |
2793 | ||
2794 | * Makefile.in: Make chill references obsolete. | |
2795 | ||
2796 | 2002-07-24 Kevin Buettner <kevinb@redhat.com> | |
2797 | ||
2798 | * configure.in (unistd.h): Add to AC_CHECK_HEADERS list. | |
2799 | * configure: Regenerate. | |
2800 | * config.in: Regenerate. | |
2801 | ||
2802 | 2002-07-09 David O'Brien <obrien@FreeBSD.org> | |
2803 | ||
2804 | * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include. | |
2805 | (perror_with_name, remote_close, remote_open, expect, play): Static. | |
2806 | ||
2807 | 2002-07-04 Michal Ludvig <mludvig@suse.cz> | |
2808 | ||
4b8dad4a | 2809 | * linux-x86-64-low.c (x86_64_regmap): Make it an array of |
17574093 DJ |
2810 | byte offsets instead of an array of indexes. |
2811 | (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const. | |
2812 | ||
2813 | 2002-06-13 Daniel Jacobowitz <drow@mvista.com> | |
2814 | ||
2815 | * regcache.c: Add comment. | |
2816 | ||
2817 | 2002-06-11 Daniel Jacobowitz <drow@mvista.com> | |
2818 | ||
2819 | * thread-db.c: New file. | |
2820 | * proc-service.c: New file. | |
2821 | * acinclude.m4: New file. | |
2822 | * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h, | |
2823 | proc-service.o, and thread-db.o. | |
2824 | (linux-low.o): Add USE_THREAD_DB. | |
2825 | * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T, | |
2826 | HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN. | |
2827 | * aclocal.m4: Regenerated. | |
2828 | * config.in: Regenerated. | |
2829 | * configure: Regenerated. | |
2830 | * configure.in: Check for proc_service.h, sys/procfs.h, | |
2831 | thread_db.h, and linux/elf.h headrs. | |
2832 | Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and | |
2833 | PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB. | |
2834 | Check for -lthread_db and thread support. | |
2835 | * configure.srv: Enable thread_db support for ARM, i386, MIPS, | |
2836 | PowerPC, and SuperH. | |
2837 | * i387-fp.c: Constify arguments. | |
2838 | * i387-fp.h: Likewise. | |
2839 | * inferiors.c: (struct thread_info): Renamed from | |
2840 | `struct inferior_info'. Remove PID member. Use generic inferior | |
2841 | list header. All uses updated. | |
2842 | (inferiors, signal_pid): Removed. | |
2843 | (all_threads): New variable. | |
2844 | (get_thread): Define. | |
2845 | (add_inferior_to_list): New function. | |
2846 | (for_each_inferior): New function. | |
2847 | (change_inferior_id): New function. | |
2848 | (add_inferior): Removed. | |
2849 | (remove_inferior): New function. | |
2850 | (add_thread): New function. | |
2851 | (free_one_thread): New function. | |
2852 | (remove_thread): New function. | |
2853 | (clear_inferiors): Use for_each_inferior and free_one_thread. | |
2854 | (find_inferior): New function. | |
2855 | (find_inferior_id): New function. | |
2856 | (inferior_target_data): Update argument type. | |
2857 | (set_inferior_target_data): Likewise. | |
2858 | (inferior_regcache_data): Likewise. | |
2859 | (set_inferior_regcache_data): Likewise. | |
2860 | * linux-low.c (linux_bp_reinsert): Remove. | |
2861 | (all_processes, stopping_threads, using_thrads) | |
2862 | (struct pending_signals, debug_threads, pid_of): New. | |
2863 | (inferior_pid): Replace with macro. | |
2864 | (struct inferior_linux_data): Remove. | |
2865 | (get_stop_pc, add_process): New functions. | |
2866 | (linux_create_inferior): Restore SIGRTMIN+1 before calling exec. | |
2867 | Use add_process and add_thread. | |
2868 | (linux_attach_lwp): New function, based on old linux_attach. Use | |
2869 | add_process and add_thread. Set stop_expected for new threads. | |
2870 | (linux_attach): New function. | |
2871 | (linux_kill_one_process): New function. | |
2872 | (linux_kill): Kill all LWPs. | |
2873 | (linux_thread_alive): Use find_inferior_id. | |
2874 | (check_removed_breakpoints, status_pending_p): New functions. | |
2875 | (linux_wait_for_process): Renamed from linux_wait_for_one_inferior. | |
2876 | Update. Use WNOHANG. Wait for cloned processes also. Update process | |
2877 | struct for the found process. | |
2878 | (linux_wait_for_event): New function. | |
2879 | (linux_wait): Use it. Support LWPs. | |
2880 | (send_sigstop, wait_for_sigstop, stop_all_processes) | |
2881 | (linux_resume_one_process, linux_continue_one_process): New functions. | |
2882 | (linux_resume): Support LWPs. | |
2883 | (REGISTER_RAW_SIZE): Remove. | |
2884 | (fetch_register): Use register_size instead. Call supply_register. | |
2885 | (usr_store_inferior_registers): Likewise. Call collect_register. | |
2886 | Fix recursive case. | |
2887 | (regsets_fetch_inferior_registers): Improve error message. | |
2888 | (regsets_store_inferior_registers): Add debugging. | |
2889 | (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB. | |
2890 | (unstopped_p, linux_signal_pid): New functions. | |
2891 | (linux_target_ops): Add linux_signal_pid. | |
2892 | (linux_init_signals): New function. | |
2893 | (initialize_low): Call it. Initialize using_threads. | |
2894 | * regcache.c (inferior_regcache_data): Add valid | |
2895 | flag. | |
2896 | (get_regcache): Fetch registers lazily. Add fetch argument | |
2897 | and update all callers. | |
2898 | (regcache_invalidate_one, regcache_invalidate): New | |
2899 | functions. | |
2900 | (new_register_cache): Renamed from create_register_cache. | |
2901 | Return the new regcache. | |
2902 | (free_register_cache): Change argument to a void *. | |
2903 | (registers_to_string, registers_from_string): Call get_regcache | |
2904 | with fetch flag set. | |
2905 | (register_data): Make static. Pass fetch flag to get_regcache. | |
2906 | (supply_register): Call get_regcache with fetch flag clear. | |
2907 | (collect_register): Call get_regcache with fetch flag set. | |
2908 | (collect_register_as_string): New function. | |
2909 | * regcache.h: Update. | |
2910 | * remote-utils.c (putpkt): Flush after debug output and use | |
2911 | stderr. | |
2912 | Handle input interrupts while waiting for an ACK. | |
2913 | (input_interrupt): Use signal_pid method. | |
2914 | (getpkt): Flush after debug output and use stderr. | |
2915 | (outreg): Use collect_register_as_string. | |
2916 | (new_thread_notify, dead_thread_notify): New functions. | |
2917 | (prepare_resume_reply): Check using_threads. Set thread_from_wait | |
2918 | and general_thread. | |
2919 | (look_up_one_symbol): Flush after debug output. | |
2920 | * server.c (step_thread, server_waiting): New variables. | |
2921 | (start_inferior): Don't use signal_pid. Update call to mywait. | |
2922 | (attach_inferior): Update call to mywait. | |
2923 | (handle_query): Handle qfThreadInfo and qsThreadInfo. | |
2924 | (main): Don't fetch/store registers explicitly. Use | |
2925 | set_desired_inferior. Support proposed ``Hs'' packet. Update | |
2926 | calls to mywait. | |
2927 | * server.h: Update. | |
2928 | (struct inferior_list, struct_inferior_list_entry): New. | |
2929 | * target.c (set_desired_inferior): New. | |
2930 | (write_inferior_memory): Constify. | |
2931 | (mywait): New function. | |
2932 | * target.h: Update. | |
2933 | (struct target_ops): New signal_pid method. | |
2934 | (mywait): Removed macro, added prototype. | |
2935 | ||
2936 | * linux-low.h (regset_func): Removed. | |
2937 | (regset_fill_func, regset_store_func): New. | |
2938 | (enum regset_type): New. | |
2939 | (struct regset_info): Add type field. Use new operation types. | |
2940 | (struct linux_target_ops): stop_pc renamed to get_pc. | |
2941 | Add decr_pc_after_break and breakpoint_at. | |
2942 | (get_process, get_thread_proess, get_process_thread) | |
2943 | (strut process_info, all_processes, linux_attach_lwp) | |
2944 | (thread_db_init): New. | |
2945 | ||
2946 | * linux-arm-low.c (arm_get_pc, arm_set_pc, | |
2947 | arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New. | |
2948 | (the_low_target): Add new members. | |
2949 | * linux-i386-low.c (i386_store_gregset, i386_store_fpregset) | |
2950 | (i386_store_fpxregset): Constify. | |
2951 | (target_regsets): Add new kind identifier. | |
2952 | (i386_get_pc): Renamed from i386_stop_pc. Simplify. | |
2953 | (i386_set_pc): Add debugging. | |
2954 | (i386_breakpoint_at): New function. | |
2955 | (the_low_target): Add new members. | |
2956 | * linux-mips-low.c (mips_get_pc, mips_set_pc) | |
2957 | (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr) | |
2958 | (mips_breakpoint_at): New. | |
2959 | (the_low_target): Add new members. | |
2960 | * linux-ppc-low.c (ppc_get_pc, ppc_set_pc) | |
2961 | (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New. | |
2962 | (the_low_target): Add new members. | |
2963 | * linux-sh-low.c (sh_get_pc, sh_set_pc) | |
2964 | (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New. | |
2965 | (the_low_target): Add new members. | |
2966 | * linux-x86-64-low.c (target_regsets): Add new kind | |
2967 | identifier. | |
2968 | ||
2969 | 2002-05-15 Daniel Jacobowitz <drow@mvista.com> | |
2970 | ||
2971 | From Martin Pool <mbp@samba.org>: | |
2972 | * server.c (gdbserver_usage): New function. | |
2973 | (main): Call it. | |
2974 | ||
2975 | 2002-05-14 Daniel Jacobowitz <drow@mvista.com> | |
2976 | ||
2977 | * mem-break.c (reinsert_breakpoint_by_bp): Correct typo | |
2978 | stop_at -> stop_pc. | |
2979 | ||
2980 | 2002-05-04 Andrew Cagney <ac131313@redhat.com> | |
2981 | ||
2982 | * Makefile.in: Remove obsolete code. | |
2983 | ||
2984 | 2002-04-24 Michal Ludvig <mludvig@suse.cz> | |
2985 | ||
2986 | * linux-low.c (regsets_fetch_inferior_registers), | |
2987 | (regsets_store_inferior_registers): Removed cast to int from | |
2988 | ptrace() calls. | |
2989 | * regcache.h: Added declaration of struct inferior_info. | |
2990 | ||
2991 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> | |
2992 | ||
2993 | * inferiors.c (struct inferior_info): Add regcache_data. | |
2994 | (add_inferior): Call create_register_cache. | |
2995 | (clear_inferiors): Call free_register_cache. | |
2996 | (inferior_regcache_data, set_inferior_regcache_data): New functions. | |
2997 | * regcache.c (struct inferior_regcache_data): New. | |
2998 | (registers): Remove. | |
2999 | (get_regcache): New function. | |
3000 | (create_register_cache, free_register_cache): New functions. | |
3001 | (set_register_cache): Don't initialize the register cache here. | |
3002 | (registers_to_string, registers_from_string, register_data): Call | |
3003 | get_regcache. | |
3004 | * regcache.h: Add prototypes. | |
3005 | * server.h: Likewise. | |
3006 | ||
3007 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> | |
3008 | ||
3009 | * mem-break.c: New file. | |
3010 | * mem-break.h: New file. | |
3011 | * Makefile.in: Add mem-break.o rule; update server.h | |
3012 | dependencies. | |
3013 | * inferiors.c (struct inferior_info): Add target_data | |
3014 | member. | |
3015 | (clear_inferiors): Free target_data member if set. | |
3016 | (inferior_target_data, set_inferior_target_data): New functions. | |
3017 | * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len) | |
3018 | (i386_stop_pc, i386_set_pc): New. Add to the_low_target. | |
3019 | * linux-low.c (linux_bp_reinsert): New variable. | |
3020 | (struct inferior_linux_data): New. | |
3021 | (linux_create_inferior): Use set_inferior_target_data. | |
3022 | (linux_attach): Likewise. Call add_inferior. | |
3023 | (linux_wait_for_one_inferior): New function. | |
3024 | (linux_wait): Call it. | |
3025 | (linux_write_memory): Add const. | |
3026 | (initialize_low): Call set_breakpoint_data. | |
3027 | * linux-low.h (struct linux_target_ops): Add breakpoint | |
3028 | handling members. | |
3029 | * server.c (attach_inferior): Remove extra add_inferior | |
3030 | call. | |
3031 | * server.h: Include mem-break.h. Update inferior.c | |
3032 | prototypes. | |
3033 | * target.c (read_inferior_memory) | |
3034 | (write_inferior_memory): New functions. | |
3035 | * target.h (read_inferior_memory) | |
3036 | (write_inferior_memory): Change macros to prototypes. | |
3037 | (struct target_ops): Update comments. Add const to write_memory | |
3038 | definition. | |
3039 | ||
3040 | 2002-04-11 Daniel Jacobowitz <drow@mvista.com> | |
3041 | ||
3042 | * linux-low.c (usr_store_inferior_registers): Support | |
3043 | registers which are allowed to fail to store. | |
3044 | * linux-low.h (linux_target_ops): Likewise. | |
3045 | * linux-ppc-low.c (ppc_regmap): Support FPSCR. | |
3046 | (ppc_cannot_store_register): FPSCR may not be storable. | |
3047 | ||
3048 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
3049 | ||
3050 | * server.h: Include <string.h> if HAVE_STRING_H. | |
3051 | * ChangeLog: Correct paths in last ChangeLog entry. | |
3052 | ||
3053 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
3054 | ||
3055 | * linux-low.h: Remove obsolete prototypes. | |
3056 | (struct linux_target_ops): New. | |
3057 | (extern the_low_target): New. | |
3058 | * linux-low.c (num_regs, regmap): Remove declarations. | |
3059 | (register_addr): Use the_low_target explicitly. | |
3060 | (fetch_register): Likewise. | |
3061 | (usr_fetch_inferior_registers): Likewise. | |
3062 | (usr_store_inferior_registers): Likewise. | |
3063 | * linux-arm-low.c (num_regs): Remove. | |
3064 | (arm_num_regs): Define. | |
3065 | (arm_regmap): Renamed from regmap, made static. | |
3066 | (arm_cannot_fetch_register): Renamed from cannot_fetch_register, | |
3067 | made static. | |
3068 | (arm_cannot_store_register): Renamed from cannot_store_register, | |
3069 | made static. | |
3070 | (the_low_target): New. | |
3071 | * linux-i386-low.c (num_regs): Remove. | |
3072 | (i386_num_regs): Define. | |
3073 | (i386_regmap): Renamed from regmap, made static. | |
3074 | (i386_cannot_fetch_register): Renamed from cannot_fetch_register, | |
3075 | made static. | |
3076 | (i386_cannot_store_register): Renamed from cannot_store_register, | |
3077 | made static. | |
3078 | (the_low_target): New. | |
3079 | * linux-ia64-low.c (num_regs): Remove. | |
3080 | (ia64_num_regs): Define. | |
3081 | (ia64_regmap): Renamed from regmap, made static. | |
3082 | (ia64_cannot_fetch_register): Renamed from cannot_fetch_register, | |
3083 | made static. | |
3084 | (ia64_cannot_store_register): Renamed from cannot_store_register, | |
3085 | made static. | |
3086 | (the_low_target): New. | |
3087 | * linux-m68k-low.c (num_regs): Remove. | |
3088 | (m68k_num_regs): Define. | |
3089 | (m68k_regmap): Renamed from regmap, made static. | |
3090 | (m68k_cannot_fetch_register): Renamed from cannot_fetch_register, | |
3091 | made static. | |
3092 | (m68k_cannot_store_register): Renamed from cannot_store_register, | |
3093 | made static. | |
3094 | (the_low_target): New. | |
3095 | * linux-mips-low.c (num_regs): Remove. | |
3096 | (mips_num_regs): Define. | |
3097 | (mips_regmap): Renamed from regmap, made static. | |
3098 | (mips_cannot_fetch_register): Renamed from cannot_fetch_register, | |
3099 | made static. | |
3100 | (mips_cannot_store_register): Renamed from cannot_store_register, | |
3101 | made static. | |
3102 | (the_low_target): New. | |
3103 | * linux-ppc-low.c (num_regs): Remove. | |
3104 | (ppc_num_regs): Define. | |
3105 | (ppc_regmap): Renamed from regmap, made static. | |
3106 | (ppc_cannot_fetch_register): Renamed from cannot_fetch_register, | |
3107 | made static. | |
3108 | (ppc_cannot_store_register): Renamed from cannot_store_register, | |
3109 | made static. | |
3110 | (the_low_target): New. | |
3111 | * linux-s390-low.c (num_regs): Remove. | |
3112 | (s390_num_regs): Define. | |
3113 | (s390_regmap): Renamed from regmap, made static. | |
3114 | (s390_cannot_fetch_register): Renamed from cannot_fetch_register, | |
3115 | made static. | |
3116 | (s390_cannot_store_register): Renamed from cannot_store_register, | |
3117 | made static. | |
3118 | (the_low_target): New. | |
3119 | * linux-sh-low.c (num_regs): Remove. | |
3120 | (sh_num_regs): Define. | |
3121 | (sh_regmap): Renamed from regmap, made static. | |
3122 | (sh_cannot_fetch_register): Renamed from cannot_fetch_register, | |
3123 | made static. | |
3124 | (sh_cannot_store_register): Renamed from cannot_store_register, | |
3125 | made static. | |
3126 | (the_low_target): New. | |
3127 | * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap. | |
3128 | (the_low_target): New. | |
3129 | ||
3130 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
3131 | ||
3132 | * Makefile.in: Add stamp-h target. | |
3133 | * configure.in: Create stamp-h. | |
3134 | * configure: Regenerated. | |
3135 | ||
3136 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
3137 | ||
3138 | * inferiors.c: New file. | |
3139 | * target.c: New file. | |
3140 | * target.h: New file. | |
3141 | * Makefile.in: Add target.o and inferiors.o. Update | |
3142 | dependencies. | |
3143 | * linux-low.c (inferior_pid): New static variable, | |
3144 | moved from server.c. | |
3145 | (linux_create_inferior): Renamed from create_inferior. | |
3146 | Call add_inferior. Return 0 on success instead of a PID. | |
3147 | (linux_attach): Renamed from myattach. | |
3148 | (linux_kill): Renamed from kill_inferior. Call clear_inferiors (). | |
3149 | (linux_thread_alive): Renamed from mythread_alive. | |
3150 | (linux_wait): Renamed from mywait. Call clear_inferiors () if the | |
3151 | child dies. | |
3152 | (linux_resume): Renamed from myresume. Add missing ``return 0''. | |
3153 | (regsets_store_inferior_registers): Correct error message. | |
3154 | Add missing ``return 0''. | |
3155 | (linux_fetch_registers): Renamed from fetch_inferior_registers. | |
3156 | (linux_store_registers): Renamed from store_inferior_registers. | |
3157 | (linux_read_memory): Renamed from read_inferior_memory. | |
3158 | (linux_write_memory): Renamed from write_inferior_memory. | |
3159 | (linux_target_ops): New structure. | |
3160 | (initialize_low): Call set_target_ops (). | |
3161 | * remote-utils.c (unhexify): New function. | |
3162 | (hexify): New function. | |
3163 | (input_interrupt): Send signals to ``signal_pid''. | |
3164 | * server.c (inferior_pid): Remove. | |
3165 | (start_inferior): Update create_inferior call. | |
3166 | (attach_inferior): Call add_inferior. | |
3167 | (handle_query): New function. | |
3168 | (main): Call handle_query for `q' packets. | |
3169 | * server.h: Include "target.h". Remove obsolete prototypes. | |
3170 | Add prototypes for "inferiors.c", "target.c", hexify, and unhexify. | |
3171 | ||
3172 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
3173 | ||
3174 | * Makefile.in: Add WARN_CFLAGS. Update configury | |
3175 | dependencies. | |
3176 | * configure.in: Check for <string.h> | |
3177 | * configure: Regenerate. | |
3178 | * config.in: Regenerate. | |
3179 | * gdbreplay.c: Include needed system headers. | |
3180 | (remote_open): Remove strchr prototype. | |
3181 | * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS. | |
3182 | * regcache.c (supply_register): Change buf argument to const void *. | |
3183 | (supply_register_by_name): Likewise. | |
3184 | (collect_register): Change buf argument to void *. | |
3185 | (collect_register_by_name): Likewise. | |
3186 | * regcache.h: Add missing prototypes. | |
3187 | * remote-utils.c: Include <arpa/inet.h> for inet_ntoa. | |
3188 | * server.c (handle_query): New function. | |
3189 | (attached): New static variable, moved out of main. | |
3190 | (main): Quiet longjmp clobber warnings. | |
3191 | * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes. | |
3192 | * utils.c (error): Remove NORETURN. | |
3193 | (fatal): Likewise. |