Commit | Line | Data |
---|---|---|
b65d95c5 DJ |
1 | 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com> |
2 | ||
3 | * linux-low.c (linux_wait_for_event): Update messages. Do not | |
4 | reinsert auto-delete breakpoints. | |
5 | * mem-break.c (struct breakpoint): Change return type of handler to | |
6 | int. | |
7 | (set_breakpoint_at): Update handler type. | |
8 | (reinsert_breakpoint_handler): Return 1 instead of calling | |
9 | delete_breakpoint. | |
10 | (reinsert_breakpoint_by_bp): Check for the original breakpoint before | |
11 | setting a new one. | |
12 | (check_breakpoints): Delete auto-delete breakpoints and return 2. | |
13 | * mem-break.h (set_breakpoint_at): Update handler type. | |
14 | * thread-db.c (thread_db_create_event, thread_db_create_event): Update. | |
15 | * win32-low.c (auto_delete_breakpoint): New. | |
16 | (get_child_debug_event): Use it. | |
17 | ||
4e799345 DJ |
18 | 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com> |
19 | ||
20 | * configure.ac: Check for pread and pwrite. | |
21 | * hostio.c (handle_pread): Fall back to lseek and read. | |
22 | (handle_pwrite): Fall back to lseek and write. | |
23 | * config.in, configure: Regenerated. | |
24 | ||
27524b67 DJ |
25 | 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com> |
26 | ||
27 | * server.c (myresume): Add own_buf argument. | |
28 | (main): Update calls. | |
29 | ||
a20d5e98 DJ |
30 | 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com> |
31 | ||
32 | * linux-low.c (linux_wait, linux_resume): Do not handle async I/O. | |
33 | * remote-utils.c (remote_open): Do not call disable_async_io. | |
34 | (block_async_io): Delete. | |
35 | (unblock_async_io): Make static. | |
36 | (initialize_async_io): New. | |
37 | * server.c (handle_v_cont): Handle async I/O here. | |
38 | (myresume): Likewise. Move other common resume tasks here... | |
39 | (main): ... from here. Call initialize_async_io. Disable async | |
40 | I/O before the main loop. | |
41 | * server.h (initialize_async_io): Declare. | |
42 | (block_async_io, unblock_async_io): Delete prototypes. | |
43 | * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here. | |
44 | ||
b79d787e DJ |
45 | 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au> |
46 | ||
47 | * remote-utils.c (readchar): Allow binary data in received messages. | |
48 | ||
d97903b2 PA |
49 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
50 | ||
51 | * win32-low.c (attaching): New global. | |
52 | (win32_create_inferior): Clear the `attaching' global. | |
53 | (win32_attach): Set the `attaching' global. | |
54 | (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when | |
55 | attaching. Only set a breakpoint at the entry point if not | |
56 | attaching. | |
57 | ||
311de423 PA |
58 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
59 | ||
60 | * server.c (main): Don't report dll events on the initial | |
61 | connection on attaches. | |
62 | ||
6c2d16d2 PA |
63 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
64 | ||
65 | * server.c (main): Relax numerical bases supported for the pid of | |
66 | the --attach command line argument. | |
67 | ||
5ca906e6 PA |
68 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
69 | ||
70 | * win32-low.c (win32_attach): Call OpenProcess before | |
71 | DebugActiveProcess, not after. Add last error output to error | |
72 | call. | |
73 | ||
9c6c8194 PA |
74 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
75 | ||
76 | * win32-low.c (win32_get_thread_context) | |
77 | (win32_set_thread_context): New functions. | |
78 | (thread_rec): Use win32_get_thread_context. | |
79 | (continue_one_thread, win32_resume): Use win32_set_thread_context. | |
80 | * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context' | |
81 | field. | |
82 | ||
4d5d1aaa PA |
83 | 2007-12-03 Leo Zayas |
84 | Pedro Alves <pedro_alves@portugalmail.pt> | |
85 | ||
86 | * win32-low.c (soft_interrupt_requested, faked_breakpoint): New | |
87 | global variables. | |
88 | (child_add_thread): Minor cleanup. | |
89 | (child_continue): Resume artificially suspended threads before | |
90 | calling ContinueDebugEvent. | |
91 | (suspend_one_thread): New. | |
92 | (fake_breakpoint_event): New. | |
93 | (get_child_debug_event): Change return type to int. Check here if | |
94 | gdb sent an interrupt request. If a soft interrupt was requested, | |
95 | fake a breakpoint event. Return 0 if there is no event to handle, | |
96 | and 1 otherwise. | |
97 | (win32_wait): Don't check here if gdb sent an interrupt request. | |
98 | Ensure there is a valid event to handle. | |
99 | (win32_request_interrupt): Add soft interruption method as last | |
100 | resort. | |
101 | ||
c436e841 PA |
102 | 2007-12-03 Leo Zayas |
103 | Pedro Alves <pedro_alves@portugalmail.pt> | |
104 | ||
105 | * win32-low.h (win32_thread_info): Add descriptions to the | |
106 | structure members. Replace `suspend_count' counter by a | |
107 | `suspended' flag. | |
108 | * win32-low.c (thread_rec): Update condition of when to get the | |
109 | context from the inferior. Rely on ContextFlags being set if it | |
110 | has already been retrieved. Only suspend the inferior thread if | |
111 | we haven't already. Warn if that fails. | |
112 | (continue_one_thread): s/suspend_count/suspended/. Only call | |
113 | ResumeThread once. Warn if that fails. | |
114 | ||
e7b5fa67 PA |
115 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
116 | ||
117 | * win32-low.c (win32_wait): Don't read from the inferior when it | |
118 | has already exited. | |
119 | ||
a385171d PA |
120 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
121 | ||
122 | * Makefile.in (win32_low_h): New variable. | |
123 | (win32-low.o): Add dependency on $(win32_low_h). | |
124 | (win32-arm-low.o, win32-i386-low.o): New rules. | |
125 | ||
f80c84b3 DJ |
126 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
127 | ||
128 | * hostio.c: Correct copyright year. | |
129 | ||
a6b151f1 DJ |
130 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
131 | ||
132 | * Makefile.in (OBS): Add hostio.o. | |
133 | (hostio.o): New rule. | |
134 | * server.h (handle_vFile): Declare. | |
135 | * hostio.c: New file. | |
136 | * server.c (handle_v_requests): Take packet_len and new_packet_len | |
137 | for binary packets. Call handle_vFile. | |
138 | (main): Update call to handle_v_requests. | |
139 | ||
f9387fc3 DJ |
140 | 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com> |
141 | ||
142 | * linux-low.c: Include <sched.h>. | |
143 | ||
51c2684e DJ |
144 | 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com> |
145 | ||
146 | * linux-low.c (linux_tracefork_grandchild): New. | |
147 | (linux_tracefork_child): Use clone. | |
148 | (linux_test_for_tracefork): Use clone; allocate and free a stack. | |
149 | ||
75f83163 JB |
150 | 2007-10-31 Joel Brobecker <brobecker@adacore.com> |
151 | ||
152 | * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh. | |
153 | ||
da5898ce DJ |
154 | 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com> |
155 | ||
156 | * linux-low.c (handle_extended_wait): Handle unexpected signals. | |
157 | ||
24a09b5f DJ |
158 | 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com> |
159 | ||
160 | * inferiors.c (change_inferior_id): Delete. | |
161 | (add_pid_to_list, pull_pid_from_list): New. | |
162 | * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG) | |
163 | (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK) | |
164 | (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE) | |
165 | (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK) | |
166 | (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE) | |
167 | (PTRACE_EVENT_EXIT, __WALL): Provide default definitions. | |
168 | (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables. | |
169 | (using_threads): Always set to 1. | |
170 | (handle_extended_wait): New. | |
171 | (add_process): Do not set TID. | |
172 | (linux_create_inferior): Set must_set_ptrace_flags. | |
173 | (linux_attach_lwp): Remove TID argument. Do not check using_threads. | |
174 | Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers. | |
175 | (linux_thread_alive): Rename TID argument to LWPID. | |
176 | (linux_wait_for_process): Handle unknown processes. Do not use TID. | |
177 | (linux_wait_for_event): Do not use TID or check using_threads. Update | |
178 | call to dead_thread_notify. Call handle_extended_wait. | |
179 | (linux_create_inferior): Use PTRACE_SETOPTIONS. | |
180 | (send_sigstop): Delete sigstop_sent. | |
181 | (wait_for_sigstop): Avoid TID. | |
182 | (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid) | |
183 | (linux_test_for_tracefork): New. | |
184 | (linux_lookup_signals): Use thread_db_active and | |
185 | linux_supports_tracefork_flag. | |
186 | (initialize_low): Use thread_db_active and linux_test_for_tracefork. | |
187 | * linux-low.h (get_process_thread): Avoid TID. | |
188 | (struct process_ifo): Move thread_known and tid to the end. Remove | |
189 | sigstop_sent. | |
190 | (linux_attach_lwp, thread_db_init): Update prototypes. | |
191 | * server.h (change_inferior_id): Delete prototype. | |
192 | (add_pid_to_list, pull_pid_from_list): New prototypes. | |
193 | * thread-db.c (thread_db_use_events): New. | |
194 | (find_first_thread): Rename to... | |
195 | (find_one_thread): ...this. Update callers and messages. Do not | |
196 | call fatal. Check thread_db_use_events. Do not call | |
197 | change_inferior_id or new_thread_notify. | |
198 | (maybe_attach_thread): Update. Do not call new_thread_notify. | |
199 | (thread_db_init): Set thread_db_use_events. Check use_events. | |
200 | * utils.c (fatal, warning): Correct message prefix. | |
201 | ||
30ed0a8f DJ |
202 | 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com> |
203 | ||
204 | * Makefile.in (clean): Remove new files. | |
205 | (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c) | |
206 | (powerpc-64.o, powerpc-64.c): New rules. | |
207 | * configure.srv: Use alternate register sets for powerpc64-*-linux* | |
208 | with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux* | |
209 | with SPE. | |
210 | * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for | |
211 | SPE targets. | |
212 | (ppc_cannot_store_register): Do not check for FPSCR for SPE targets. | |
213 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset) | |
214 | (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS) | |
215 | (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New. | |
216 | (target_regsets): Add AltiVec and SPE register sets. | |
217 | * configure.ac: Check for AltiVec and SPE. | |
218 | * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS) | |
219 | (ppc_fill_vrregset, ppc_store_vrregset): New. | |
220 | (target_regsets): Add AltiVec register set. | |
221 | * configure: Regenerated. | |
222 | ||
fd462a61 DJ |
223 | 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com> |
224 | ||
225 | * linux-low.c (O_LARGEFILE): Define. | |
226 | (linux_read_memory): Use /proc/PID/mem. | |
227 | * configure.ac: Use AC_GNU_SOURCE. Check for pread64. | |
228 | * configure, config.in: Regenerated. | |
229 | ||
69f223ed DJ |
230 | 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
231 | ||
232 | * linux-low.c (linux_wait_for_event): Do not pass signals while | |
233 | single-stepping. | |
234 | ||
aec18585 PA |
235 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
236 | ||
237 | * win32-low.c (create_process): New. | |
238 | (win32_create_inferior): Use create_process instead of | |
239 | CreateProcess. If create_process failed retry appending an ".exe" | |
240 | suffix. Store the GetLastError result immediatelly after | |
241 | create_process calls and use it on the call to error. | |
242 | ||
34d86ddd PA |
243 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
244 | ||
245 | * win32-low.c (handle_load_dll): Don't use toolhelp when waiting. | |
246 | ||
5a0e3bd0 JB |
247 | 2007-08-23 Joel Brobecker <brobecker@adacore.com> |
248 | ||
249 | * configure.ac: Switch license to GPLv3. | |
250 | ||
f88c79e6 MS |
251 | 2007-08-01 Michael Snyder <msnyder@access-company.com> |
252 | ||
253 | * remote-utils.c (putpkt_binary): Memory leak, free buf2. | |
254 | ||
6b3d9b83 PA |
255 | 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt> |
256 | ||
257 | * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New | |
258 | typedef. | |
259 | (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var. | |
260 | (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get | |
261 | CloseToolhelp32Snapshot. | |
262 | (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with | |
263 | CloseToolhelp32Snapshot. | |
264 | ||
c588c53c MS |
265 | 2007-07-27 Michael Snyder <michael.snyder@access-company.com> |
266 | ||
267 | * server.c (main): Check for inferior exit before main loop. | |
268 | ||
aa0403d9 PA |
269 | 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt> |
270 | ||
271 | * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc | |
272 | instead of on tmp_desc. | |
273 | ||
255e7678 DJ |
274 | 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt> |
275 | Daniel Jacobowitz <dan@codesourcery.com> | |
276 | ||
277 | * inferiors.c (all_dlls, dlls_changed, get_dll): New. | |
278 | (add_thread): Minor cleanups. | |
279 | (clear_inferiors): Move lower in the file. Clear the DLL | |
280 | list. | |
281 | (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New. | |
282 | * remote-utils.c (prepare_resume_reply): Check dlls_changed. | |
283 | (xml_escape_text): New. | |
284 | * server.c (handle_query): Handle qXfer:libraries:read. Report it | |
285 | for qSupported. | |
286 | (handle_v_cont): Report errors. | |
287 | (gdbserver_version): Update. | |
288 | (main): Correct size of own_buf. Do not report initial DLL events. | |
289 | * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll) | |
290 | (unloaded_dll, xml_escape_text): New. | |
291 | * win32-low.c (enum target_waitkind): Update comments. | |
292 | (win32_add_one_solib, get_image_name, winapi_EnumProcessModules) | |
293 | (winapi_GetModuleInformation, winapi_GetModuleFileNameExA) | |
294 | (win32_EnumProcessModules, win32_GetModuleInformation) | |
295 | (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name) | |
296 | (winapi_CreateToolhelp32Snapshot, winapi_Module32First) | |
297 | (winapi_Module32Next, win32_CreateToolhelp32Snapshot) | |
298 | (win32_Module32First, win32_Module32Next, load_toolhelp) | |
299 | (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New. | |
300 | (get_child_debug_event): Handle DLL events. | |
301 | (win32_wait): Likewise. | |
302 | ||
0d37add9 DJ |
303 | 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
304 | ||
305 | * configure.srv: Set srv_linux_regsets for sh*-*-linux*. | |
306 | * linux-sh-low.c (sh_fill_gregset, target_regsets): New. | |
307 | ||
45e2715e PA |
308 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
309 | ||
310 | * win32-low.c (handle_output_debug_string): Ignore event if not | |
311 | waiting. | |
312 | ||
c5674cf1 PA |
313 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
314 | ||
315 | * win32-arm-low.c (arm_wince_breakpoint): Fix typo. | |
316 | ||
2bbe3cc1 DJ |
317 | 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com> |
318 | ||
319 | * remote-utils.c (look_up_one_symbol): Handle 'm' packets. | |
320 | ||
ae13219e DJ |
321 | 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com> |
322 | ||
323 | * inferiors.c (change_inferior_id): Add comment. | |
324 | * linux-low.c (check_removed_breakpoint): Add an early | |
325 | prototype. Improve debug output. | |
326 | (linux_attach): Doc update. | |
327 | (linux_detach_one_process, linux_detach): Clean up before releasing | |
328 | each process. | |
329 | (send_sigstop, wait_for_sigstop): Improve comments and debug output. | |
330 | * linux-low.h (struct process_info): Doc improvement. | |
331 | * mem-break.c (delete_all_breakpoints): New. | |
332 | * mem-break.h (delete_all_breakpoints): New prototype. | |
333 | * thread-db.c (find_first_thread): New. | |
334 | (thread_db_create_event): Call it instead of | |
335 | thread_db_find_new_threads. Clean up unused variables. | |
336 | (maybe_attach_thread): Remove first thread handling. | |
337 | (thread_db_find_new_threads): Use find_first_thread. | |
338 | (thread_db_get_tls_address): Likewise. | |
339 | ||
4105de34 DJ |
340 | 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com> |
341 | ||
342 | * thread-db.c (thread_db_find_new_threads): Add prototype. | |
343 | (thread_db_create_event): Check for the main thread before adding | |
344 | a new thread. | |
345 | (maybe_attach_thread): Only enable event reporting if TID == 0. | |
346 | (thread_db_get_tls_address): Check for new threads. | |
347 | ||
2b876972 DJ |
348 | 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com> |
349 | ||
350 | * linux-low.c (linux_create_inferior): Try execv before execvp. | |
351 | * spu-low.c (spu_create_inferior): Likewise. | |
352 | ||
7a245884 DJ |
353 | 2007-06-13 Mike Frysinger <vapier@gentoo.org> |
354 | ||
355 | * linux-low.c (linux_create_inferior): Change execv to execvp. | |
356 | * spu-low.c (spu_create_inferior): Likewies. | |
357 | ||
117ce543 DJ |
358 | 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com> |
359 | ||
360 | * Makefile.in (clean): Clean new files instead of deleted ones. | |
361 | (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete. | |
362 | (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New | |
363 | rules. | |
364 | * configure.srv: Specify XML files and new regformats for MIPS and | |
365 | MIPS64 GNU/Linux. | |
366 | * linux-mips-low.c (mips_num_regs): Set to only used registers. | |
367 | (mips_regmap): Do not fetch $0. Remove unused registers. Add | |
368 | an entry for the restart register. | |
369 | (mips_cannot_fetch_register, mips_cannot_store_register) | |
370 | (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update | |
371 | register names to match the XML descriptions. | |
372 | (mips_fill_gregset, mips_store_gregset): Likewise. Handle the | |
373 | restart register instead of $0. | |
374 | ||
0e7f50da UW |
375 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
376 | Markus Deuling <deuling@de.ibm.com> | |
377 | ||
378 | * remote-utils.c (decode_xfer_write): New function. | |
379 | * server.h (decode_xfer_write): Add prototype. | |
380 | * server.c (handle_query): Add PACKET_LEN argument. Support | |
381 | qXfer:spu:read and qXfer:spu:write packets. | |
382 | (main): Pass packet_len to handle_query. | |
383 | * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu. | |
384 | * target.h (target_ops): Add qxfer_spu. | |
385 | ||
374c1d38 UW |
386 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
387 | ||
388 | * spu-low.c (spu_proc_xfer_spu): Do not return failure when | |
389 | accessing non-seekable spufs files. | |
390 | ||
bb63802a UW |
391 | 2007-05-16 Markus Deuling <deuling@de.ibm.com> |
392 | ||
393 | * server.c (handle_query): Add reply for qC packet. | |
394 | ||
7390519e PA |
395 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
396 | Leo Zayas <lerele@champenstudios@com> | |
397 | ||
398 | * server.h (check_remote_input_interrupt_request): New function. | |
399 | * remote_utils.c (INVALID_DESCRIPTOR): New define. | |
400 | (remote_desc): Initialize with INVALID_DESCRIPTOR. | |
401 | (input_interrupt): Expose on USE_WIN32API too. Fix whitespace. | |
402 | (check_remote_input_interrupt_request): New function. | |
403 | * server.h (check_remote_input_interrupt_request): Declare. | |
3ecf0694 | 404 | * win32-low.c (winapi_DebugBreakProcess, |
7390519e PA |
405 | winapi_GenerateConsoleCtrlEvent): New typedefs. |
406 | (get_child_debug_event): Lower Win32 debug event polling from 1 sec | |
407 | to 250 ms. | |
408 | (win32_wait): Check for remote interrupt request | |
409 | with check_remote_input_interrupt_request. | |
410 | (win32_request_interrupt): New function. | |
411 | (win32_target_op): Set request_interrupt to win32_request_interrupt. | |
412 | ||
34b34921 PA |
413 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
414 | ||
415 | * win32-low.c (debug_registers_changed, | |
416 | debug_registers_used, CONTEXT_EXTENDED_REGISTERS, | |
417 | CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS, | |
418 | CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete. | |
419 | (thread_rec): Get context using the low target. | |
420 | (child_add_thread): Call thread_added on the low target, | |
421 | which does the same thing. | |
422 | (regptr): Delete. | |
423 | (do_initial_child_stuff): Remove debug registers references. | |
424 | Set context using the low target. Resume threads after | |
425 | setting the contexts. | |
426 | (child_continue): Remove dead variable. Remove debug | |
427 | registers references. | |
428 | (child_fetch_inferior_registers): Go through the low target. | |
429 | (do_child_store_inferior_registers): Remove. | |
430 | (child_store_inferior_registers): Go through the low target. | |
431 | (win32_resume): Remove debug registers references. | |
432 | Set context using the low target. | |
433 | (handle_exception): Change return type to void. Don't record | |
434 | context here. Set status to TARGET_WAITKIND_SPURIOUS on a | |
435 | first chance exception. | |
436 | (get_child_debug_event): Change return type to void. Remove | |
437 | goto loop. Always return after waiting for debug event. | |
438 | (win32_wait): Convert to switch statement. Handle spurious | |
439 | events. | |
440 | ||
441 | * win32-i386-low.c (debug_registers_changed, | |
442 | debug_registers_used): New. | |
443 | (initial_stuff): Rename to ... | |
444 | (i386_initial_stuff): ... this. Clear debug registers | |
445 | state variables. | |
446 | (store_debug_registers): Delete. | |
447 | (i386_get_thread_context): New. | |
448 | (load_debug_registers): Delete. | |
449 | (i386_set_thread_context): New. | |
450 | (i386_thread_added): New. | |
451 | (single_step): Rename to ... | |
452 | (i386_single_step): ... this. | |
453 | (do_fetch_inferior_registers): Rename to ... | |
454 | (i386_fetch_inferior_register): ... this. | |
455 | (i386_store_inferior_register): New. | |
456 | (the_low_target): Adapt to new interface. | |
457 | ||
458 | * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define. | |
459 | (arm_get_thread_context): New. | |
460 | (arm_set_thread_context): New. | |
461 | (regptr): New. | |
462 | (do_fetch_inferior_registers): Rename to ... | |
463 | (arm_fetch_inferior_register): ... this. | |
464 | (arm_store_inferior_register): New. | |
465 | (arm_wince_breakpoint): Reimplement as unsigned long. | |
466 | (arm_wince_breakpoint_len): Define. | |
467 | (the_low_target): Adapt to new interface. | |
468 | ||
469 | * win32-low.h (target_ops): Remove regmap, store_debug_registers and | |
470 | load_debug_registers. Add get_thread_context, set_thread_context, | |
471 | thread_added and store_inferior_register. Rename | |
472 | fetch_inferior_registers to fetch_inferior_register. | |
473 | (regptr): Remove declaration. | |
474 | ||
dd6953e1 PA |
475 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
476 | ||
477 | * linux-low.c (linux_detach): Change return type to int. Return 0. | |
478 | * spu-low.c (spu_detach): Likewise. | |
479 | ||
444d6139 PA |
480 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
481 | ||
482 | * target.h (target_ops): Change return type of detach to int. | |
483 | Add join. | |
484 | (join_inferior): New. | |
485 | * server.c (main): Don't skip detach support on mingw32. | |
486 | If the inferior doesn't support detaching return error. | |
487 | Call join_inferior instead of using waitpid. | |
488 | * linux-low.c (linux_join): New. | |
489 | (linux_target_op): Add linux_join. | |
490 | * spu-low.c (spu_join): New. | |
491 | (spu_target_ops): Add spu_join. | |
492 | * win32-low.c (win32_detach): Adapt to new interface. | |
493 | Reopen current_process_handle before detaching. Issue a child | |
494 | resume before detaching. | |
495 | (win32_join): New. | |
496 | (win32_target_op): Add win32_join. | |
497 | ||
1d5315fe PA |
498 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
499 | ||
500 | * win32-low.c (win32-attach): Fix return value. | |
501 | * target.h (target_ops): Describe ATTACH return values. | |
502 | ||
bf914831 PA |
503 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
504 | ||
505 | * win32-low.c (GETPROCADDRESS): Define. | |
506 | (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer. | |
507 | (winapi_DebugSetProcessKillOnExit): Likewise. | |
508 | (win32_create_inferior): Force usage of ansi CreateProcessA. | |
509 | (win32_attach): Use GETPROCADDRESS. | |
510 | (win32_detach): Likewise. | |
511 | ||
f72f3e60 PA |
512 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
513 | ||
514 | * win32-low.c (win32_wait): Don't use WSTOPSIG. | |
515 | ||
ed50f18f PA |
516 | 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt> |
517 | ||
518 | * win32-low.c: Commit leftover changes from 2007-03-29. | |
519 | ||
0c2ead7e DJ |
520 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
521 | ||
522 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit | |
523 | fields short instead of int. Add explicit padding. | |
524 | (i387_cache_to_fsave): Remove unnecessary casts. | |
525 | (i387_fsave_to_cache): Doc fix. | |
526 | (i387_cache_to_fxsave): Remove unnecessary casts and masking. | |
527 | ||
73725ff3 DJ |
528 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
529 | ||
530 | * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use. | |
531 | (i387_fxsave_to_cache): Check fp->ftag while building ftag value. | |
532 | ||
d99f33d8 PA |
533 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
534 | ||
535 | * configure.srv (arm*-*-mingw32ce*): Move near the other | |
536 | arm targets. | |
537 | ||
68070c10 PA |
538 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
539 | ||
2482afc6 | 540 | * configure.ac: Add errno checking. |
68070c10 PA |
541 | (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h, |
542 | sys/file.h and malloc.h. | |
543 | (AC_CHECK_DECLS): Add perror. | |
544 | (srv_mingwce): Handle. | |
2482afc6 | 545 | * configure.srv (i[34567]86-*-cygwin*): Add |
68070c10 PA |
546 | win32-i386-low.o to srv_tgtobj. |
547 | (i[34567]86-*-mingw*): Likewise. | |
548 | (arm*-*-mingw32ce*): Add case. | |
549 | * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, | |
550 | HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check. | |
551 | [__MINGW32CE__] (strerror): New function. | |
552 | [__MINGW32CE__] (errno): Define to GetLastError. | |
553 | [__MINGW32CE__] (COUNTOF): New macro. | |
554 | (remote_open): Remove extra close call. | |
555 | * mem-break.c (delete_breakpoint_at): New function. | |
556 | * mem-break.h (delete_breakpoint_at): Declare. | |
557 | * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, | |
558 | HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check. | |
559 | [USE_WIN32API] (read, write): Add char* casts. | |
560 | * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check. | |
561 | * server.h: Include wincecompat.h on Windows CE. | |
562 | [HAVE_ERRNO_H]: Check. | |
563 | (perror): Declare if not declared. | |
564 | * utils.c: Add stdlib.h, errno.h and malloc.h includes. | |
565 | (perror_with_name): Remove errno declaration. | |
566 | * wincecompat.h: New. | |
567 | * wincecompat.c: New. | |
568 | * win32-low.h: New. | |
569 | * win32-arm-low.c: New. | |
570 | * win32-i386-low.c: New. | |
571 | (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h. | |
572 | (OUTMSG2): Make it safe. | |
573 | (_T): New macro. | |
574 | (COUNTOF): New macro. | |
575 | (NUM_REGS): Get it from the low target. | |
576 | (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT, | |
577 | CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0. | |
578 | (thread_rec): Let low target handle debug registers. | |
579 | (child_add_thread): Likewise. | |
580 | (child_init_thread_list): Likewise. | |
581 | (continue_one_thread): Likewise. | |
582 | (regptr): New. | |
583 | (do_child_fetch_inferior_registers): Move to ... | |
584 | * win32-i386-low.c: ... here, and rename to ... | |
585 | (do_fetch_inferior_registers): ... this. | |
586 | * win32-low.c (child_fetch_inferior_registers): | |
587 | Go through the low target. | |
588 | (do_child_store_inferior_registers): Use regptr. | |
589 | (strwinerror): New function. | |
590 | (win32_create_inferior): Handle Windows CE. | |
591 | Use strwinerror instead of strerror on Windows error | |
592 | codes. Add program to the error output. | |
593 | Don't close the main thread handle on Windows CE. | |
594 | (win32_attach): Use coredll.dll on Windows CE. | |
595 | (win32_kill): Close current process and current | |
596 | thread handles. | |
597 | (win32_detach): Use coredll.dll on Windows CE. | |
598 | (win32_resume): Let low target handle debug registers, and | |
599 | step request. | |
600 | (handle_exception): Add/Remove initial breakpoint. Avoid | |
601 | non-existant WSTOPSIG on Windows CE. | |
602 | (win32_read_inferior_memory): Cast to remove warning. | |
603 | (win32_arch_string): Go through the low target. | |
604 | (initialize_low): Call set_breakpoint_data with the low | |
605 | target's breakpoint. | |
606 | * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM, | |
607 | FOP_REGNUM, mappings): Move to ... | |
608 | * win32-i386-low.c: ... here. | |
609 | * win32-low.c (win32_thread_info): Move to ... | |
610 | * win32-low.h: ... here. | |
611 | * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c, | |
612 | win32-arm-low.c and wincecompat.c. | |
613 | (all:): Add $EXEEXT. | |
614 | (install-only:): Likewise. | |
615 | (gdbserver:): Likewise. | |
616 | (gdbreplay:): Likewise. | |
617 | * config.in: Regenerate. | |
618 | * configure: Regenerate. | |
619 | ||
41093d81 PA |
620 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
621 | ||
622 | * win32-low.c: Rename typedef thread_info to | |
623 | win32_thread_info throughout. | |
624 | ||
544afa54 PA |
625 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
626 | ||
627 | * win32-i386-low.c: Rename to ... | |
628 | * win32-low.c: ... this. | |
629 | * configure.srv: Replace win32-i386-low.o with win32-low.o. | |
630 | * Makefile.in: Likewise. | |
631 | ||
bce7165d PA |
632 | 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt> |
633 | ||
634 | * remote-utils.c (monitor_output): Constify msg parameter. | |
635 | * server.h (monitor_output): Likewise. | |
636 | * win32-i386-low.c (handle_output_debug_string): New. | |
637 | (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using | |
638 | handle_output_debug_string. | |
639 | (get_child_debug_event): Likewise. | |
640 | ||
506c7aa0 DJ |
641 | 2007-03-27 Mat Hostetter <mat@lcs.mit.edu> |
642 | ||
643 | * server.c (main): Correct strtoul check. | |
644 | ||
42c81e2a DJ |
645 | 2007-03-27 Jon Ringle <jon@ringle.org> |
646 | ||
647 | * linux-low.c: Check __ARCH_HAS_MMU__ also. | |
648 | ||
9453113a DJ |
649 | 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com> |
650 | ||
651 | * Makefile.in: Add dummy "pdf" and "install-pdf" targets. | |
652 | ||
64a69107 DJ |
653 | 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com> |
654 | ||
655 | * terminal.h: Check HAVE_SGTTY_H. | |
656 | ||
657 | 2007-02-27 Mat Hostetter <mat@lcs.mit.edu> | |
6f8486da DJ |
658 | |
659 | * remote-utils.c (remote_open): Print out the assigned port number. | |
660 | ||
c74d0ad8 DJ |
661 | 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com> |
662 | ||
663 | * remote-utils.c (monitor_output): New function. | |
664 | * server.c (debug_threads): Define here. | |
665 | (monitor_show_help): New function. | |
666 | (handle_query): Handle qRcmd. | |
667 | (main): Do not handle 'd' packet. | |
668 | * server.h (debug_threads, remote_debug, monitor_output): Declare. | |
669 | * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions | |
670 | of debug_threads. | |
671 | ||
de7c3b4a PA |
672 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
673 | ||
674 | * Makefile.in (EXEEXT): New. | |
675 | (clean): Use $(EXEEXT). | |
676 | ||
ef57601b PA |
677 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
678 | ||
679 | * target.h (target_ops): Rename send_signal to request_interrupt, | |
680 | and remove enum target_signal parameter. | |
681 | * linux-low.c (linux_request_interrupt): Rename from | |
682 | linux_send_signal, and always send SIGINT. | |
683 | * spu-low.c (spu_request_interrupt): Rename from spu_send_signal, | |
684 | and always send SIGINT. | |
685 | * remote-utils.c (putpkt_binary): Call request_interrupt, instead | |
686 | of send_signal. | |
687 | (input_interrupt): Likewise. | |
688 | ||
820f2bda PA |
689 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
690 | ||
691 | * server.c (get_features_xml): Check if target implemented | |
692 | arch_string. | |
693 | * win32-i386-low.c (win32_arch_string): New. | |
694 | (win32_target_ops): Add win32_arch_string as arch_string member. | |
695 | ||
ab39bf24 UW |
696 | 2007-02-22 Markus Deuling <deuling@de.ibm.com> |
697 | ||
698 | * spu-low.c (spu_arch_string): New. | |
699 | (spu_target_ops): Add spu_arch_string. | |
700 | ||
61ff6e04 DJ |
701 | 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
702 | ||
703 | * remote-utils.c: Remove HAVE_TERMINAL_H check. | |
704 | * configure.ac: Do not check for terminal.h. | |
705 | * configure, config.in: Regenerated. | |
706 | ||
fb1e4ffc DJ |
707 | 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
708 | ||
709 | * Makefile.in (OBS): Add $(XML_BUILTIN). | |
710 | (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New. | |
711 | (clean): Update. | |
712 | (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o) | |
713 | (arm-with-iwmmxt.c): New. | |
714 | * config.in, configure: Regenerate. | |
715 | * configure.ac: Check for iWMMXt. Handle srv_xmltarget, | |
716 | srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML. | |
717 | * configure.srv: Mention srv_xmltarget and srv_xmlfiles. | |
718 | (arm*-*-linux*): Add iWMMXt and regset support. | |
719 | * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define. | |
720 | (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset) | |
721 | (arm_store_wmmxregset, target_regsets): New. | |
722 | * server.c (get_features_xml): Take annex argument. Check builtin | |
723 | XML documents. | |
724 | (handle_query): Handle multiple annexes. | |
725 | ||
0f48aa01 DJ |
726 | 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
727 | ||
728 | * remote-utils.c [USE_WIN32API] (read, write): Define. | |
729 | (putpkt_binary, input_interrupt, readchar, getpkt): Use read and | |
730 | write. | |
731 | ||
23181151 DJ |
732 | 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com> |
733 | ||
734 | * linux-i386-low.c (the_low_target): Set arch_string. | |
735 | * linux-x86-64-low.c (the_low_target): Likewise. | |
736 | * linux-low.c (linux_arch_string): New. | |
737 | (linux_target_ops): Add it. | |
738 | * linux-low.h (struct linux_target_ops): Add arch_string. | |
739 | * server.c (write_qxfer_response): Use const void * for DATA. | |
740 | (get_features_xml): New. | |
741 | (handle_query): Handle qXfer:features:read. Report it for qSupported. | |
742 | * target.h (struct target_ops): Add arch_string method. | |
743 | ||
9d606399 DJ |
744 | 2007-01-03 Denis Pilat <denis.pilat@st.com> |
745 | Daniel Jacobowitz <dan@codesourcery.com> | |
746 | ||
747 | * linux-low.c (linux_kill): Handle being called with no threads. | |
748 | * win32-i386-low.c (win32_kill): Likewise. | |
749 | (get_child_debug_event): Clear current_process_handle. | |
750 | ||
751 | 2006-12-30 Denis PILAT <denis.pilat@st.com> | |
8264bb58 DJ |
752 | Daniel Jacobowitz <dan@codesourcery.com> |
753 | ||
754 | * remote-utils.c (remote_open): Check the type of specified | |
755 | serial port devices before opening them. | |
756 | * server.c (main): Kill the inferior if an error occurs during | |
757 | the first remote_open. | |
758 | ||
a5e13d24 DJ |
759 | 2006-12-05 Markus Deuling <deuling@de.ibm.com> |
760 | ||
761 | * README: Update supported targets. | |
762 | ||
186947f7 DJ |
763 | 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com> |
764 | ||
765 | * Makefile.in (clean): Remove reg-mips64.c. | |
766 | (reg-mips64.c, reg-mips64.o): New rules. | |
767 | * configure.srv: Handle mips64. Include regset support for mips. | |
768 | * linux-mips-low.c (union mips_register): New. | |
769 | (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it. | |
770 | (mips_breakpoint, mips_breakpoint_at): Use int. | |
771 | (mips_collect_register, mips_supply_register) | |
772 | (mips_collect_register_32bit, mips_supply_register_32bit) | |
773 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) | |
774 | (mips_store_fpregset, target_regsets): New. | |
775 | * thread-db.c (thread_db_get_tls_address): Use uintptr_t. | |
776 | ||
a13e2c95 UW |
777 | 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
778 | ||
779 | * configure.srv: Add target "spu*-*-*". | |
780 | * Makefile.in (clean): Remove reg-spu.c. | |
781 | (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies. | |
782 | * spu-low.c: New file. | |
783 | ||
cb7283db DJ |
784 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
785 | ||
786 | * configure.ac: Correct td_thr_tls_get_addr test. | |
787 | * configure: Regenerated. | |
788 | ||
89be2091 DJ |
789 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
790 | ||
791 | * linux-low.c (linux_wait_for_event): Reformat. Use the | |
792 | pass_signals array. | |
793 | * remote-utils.c (decode_address_to_semicolon): New. | |
794 | * server.c (pass_signals, handle_general_set): New. | |
795 | (handle_query): Mention QPassSignals for qSupported. | |
796 | (main): Call handle_general_set. | |
797 | * server.h (pass_signals, decode_address_to_semicolon): New. | |
798 | ||
000ef4f0 DJ |
799 | 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com> |
800 | ||
801 | * server.c (handle_query): Correct error handling for read_auxv. | |
802 | ||
b7149293 UW |
803 | 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com> |
804 | ||
805 | * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets | |
806 | and srv_linux_thread_db to yes. | |
807 | * linux-s390-low.c (s390_fill_gregset): New function. | |
808 | (target_regsets): Define data structure. | |
809 | ||
dae5f5cf DJ |
810 | 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com> |
811 | ||
812 | * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New. | |
813 | * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR. | |
814 | * config.in, configure: Regenerated. | |
815 | * inferiors.c (gdb_id_to_thread): New function. | |
816 | (gdb_id_to_thread_id): Use it. | |
817 | * linux-low.c (linux_target_ops): Use thread_db_get_tls_address. | |
818 | * linux-low.h (struct process_info): Add th member. | |
819 | (thread_db_get_tls_address): New prototype. | |
820 | * remote-utils.c (decode_address): Make non-static. | |
821 | * server.c (handle_query): Handle qGetTLSAddr. | |
822 | * server.h (gdb_id_to_thread, decode_address): New prototypes. | |
823 | * target.h (struct target_ops): Add get_tls_address. | |
824 | * thread-db.c (maybe_attach_thread): Save the thread handle. | |
825 | (thread_db_get_tls_address): New. | |
826 | ||
32ca6d61 DJ |
827 | 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com> |
828 | ||
829 | * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define. | |
830 | (linux_resume_one_process): Take a siginfo_t *. Update all | |
831 | callers. Queue it if necessary. Use PTRACE_SETSIGINFO. | |
832 | (struct pending_signals): Add a siginfo_t. | |
833 | (linux_wait_for_process): Always set last_status. | |
834 | (linux_wait_for_event): Use PTRACE_GETSIGINFO. | |
835 | (linux_queue_one_thread): Use PTRACE_GETSIGINFO. | |
836 | * linux-low.h (struct process_info): Add last_status. | |
837 | ||
5ffff7c1 DJ |
838 | 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com> |
839 | ||
840 | * remote-utils.c (try_rle): New function. | |
841 | (putpkt_binary): Use it. | |
842 | ||
8695c747 DJ |
843 | 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com> |
844 | ||
845 | * Makefile.in (clean): Clean reg-x86-64-linux.c. | |
846 | (reg-x86-64-linux.o, reg-x86-64-linux.c): New. | |
847 | * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o. | |
848 | * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX. | |
849 | (x86_64_fill_gregset, x86_64_store_gregset): Skip floating | |
850 | point registers. | |
851 | ||
290fadea RS |
852 | 2006-08-08 Richard Sandiford <richard@codesourcery.com> |
853 | ||
854 | * server.c (terminal_fd): New variable. | |
855 | (old_foreground_pgrp): Likewise. | |
856 | (restore_old_foreground_pgrp): New function. | |
857 | (start_inferior): Record the terminal file descriptor in terminal_fd | |
858 | and its original foreground group in old_foreground_pgrp. Register | |
859 | restore_old_foreground_pgrp with atexit(). | |
860 | ||
9f2e1e63 DJ |
861 | 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com> |
862 | ||
863 | * server.c (handle_query): Correct qPart to qXfer. | |
864 | ||
b80864fb DJ |
865 | 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com> |
866 | ||
867 | * configure.ac: Check for more headers which are missing on | |
868 | Windows. Automatically supply -lwsock32 and USE_WIN32API. | |
869 | * configure.srv: Add Cygwin and mingw32. | |
870 | * remote-utils.c: Don't include headers unconditionally which | |
871 | are missing on mingw32. Include <winsock.h> for mingw32. | |
872 | (remote_open): Adjust for mingw32 support. Flush | |
873 | standard error after writing to it. | |
874 | (remote_close, putpkt_binary, input_interrupt, block_async_io) | |
875 | (unblock_async_io, enable_async_io, disable_async_io) | |
876 | (readchar, getpkt): Update for Winsock support. | |
877 | (prepare_resume_reply): Expect a protocol signal number. | |
878 | * server.c: Disable <sys/wait.h> on mingw32. | |
879 | (start_inferior): Adjust for mingw32 support. Flush | |
880 | standard error after writing to it. | |
881 | (attach_inferior): Likewise. Use protocol signal | |
882 | numbers. | |
883 | (main): Skip 'D' packet on mingw32. Use protocol signal numbers | |
884 | and names. | |
885 | * win32-i386-low.c: New file. | |
886 | * Makefile.in (XM_CLIBS): Set. | |
887 | (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS). | |
888 | (win32-i386-low.o): New dependency rule. | |
889 | * linux-low.c (linux_wait): Use target signal numbers. | |
890 | * target.h (struct target_ops): Doc fix. | |
891 | * server.h (target_signal_to_name): New prototype. | |
892 | * gdbreplay.c: Don't include headers unconditionally which | |
893 | are missing on mingw32. Include <winsock.h> for mingw32. | |
894 | (remote_close, remote_open): Adjust for Winsock support. | |
895 | * configure, config.in: Regenerated. | |
896 | ||
0876f84a DJ |
897 | 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
898 | ||
899 | * server.c (decode_xfer_read, write_qxfer_response): New. | |
900 | (handle_query): Take a packet length argument. Handle | |
901 | qXfer:auxv:read instead of qPart:auxv:read. Mention it in | |
902 | the qSupported response. | |
903 | (main): Update call to handle_query. | |
904 | ||
01f9e8fa DJ |
905 | 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com> |
906 | ||
907 | * remote-utils.c (remote_escape_output, remote_unescape_input): New. | |
908 | (putpkt_binary): Renamed from putpkt and adjusted for binary | |
909 | data. | |
910 | (putpkt): New wrapper for putpkt_binary. | |
911 | (readchar): Don't mask off the high bit. | |
912 | (decode_X_packet): New function. | |
913 | * server.c (main): Call putpkt_binary if a handler sets the packet | |
914 | length. Save the length of the incoming packet. Handle 'X'. | |
915 | * server.h (gdb_byte, remote_escape_output, decode_X_packet): New. | |
916 | ||
be2a5f71 DJ |
917 | 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com> |
918 | ||
919 | * server.c (handle_query): Handle qSupported. | |
920 | ||
ea025f5f DJ |
921 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
922 | ||
923 | * remote-utils.c (all_symbols_looked_up): New variable. | |
924 | (look_up_one_symbol): Check it. | |
925 | * server.h (look_up_one_symbol): New declaration. | |
926 | * thread-db.c (thread_db_init): Set all_symbols_looked_up. | |
927 | ||
9308fc88 DJ |
928 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
929 | ||
930 | * Makefile.in (linux-arm-low.o): Update dependencies. | |
66f338c7 | 931 | * linux-arm-low.c: Include "gdb_proc_service.h". |
9308fc88 DJ |
932 | (PTRACE_GET_THREAD_AREA): Define. |
933 | (ps_get_thread_area): New function. | |
934 | ||
52fb6437 NS |
935 | 2006-05-09 Nathan Sidwell <nathan@codesourcery.com> |
936 | ||
937 | * configure.srv (m68k*-*-uclinux*): New target. | |
938 | * linux-low.c (linux_create_inferior): Use vfork on mmuless systems. | |
939 | (linux_resume_one_process): Remove extraneous cast. | |
940 | (linux_read_offsets): New. | |
941 | (linux_target_op): Add linux_read_offsets on mmuless systems. | |
942 | * server.c (handle_query): Add qOffsets logic. | |
943 | * target.h (struct target_ops): Add read_offsets. | |
944 | ||
21b0f40c DJ |
945 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
946 | ||
947 | * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h". | |
948 | (PTRACE_GET_THREAD_AREA): Define. | |
949 | (ps_get_thread_area): New function. | |
950 | * Makefile.in (linux-i386-low.o, linux-mips-low.o) | |
951 | (linux-x86-64-low.o): Update. | |
952 | ||
0050a760 DJ |
953 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
954 | ||
955 | * configure.ac: Remove checks for prfpregset_t. | |
956 | * gdb_proc_service.h: New file. | |
957 | * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the | |
958 | new "gdb_proc_service.h". | |
959 | * proc-service.c: Likewise. | |
960 | (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t. | |
961 | (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument. | |
962 | * Makefile.in (gdb_proc_service_h): Updated. | |
963 | * configure, config.in: Regenerated. | |
964 | ||
b92a518e DJ |
965 | 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
966 | ||
967 | * remote-utils.c (prepare_resume_reply): Move declaration | |
968 | of gdb_id_from_wait to the top of the block. | |
969 | ||
545587ee DJ |
970 | 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com> |
971 | ||
972 | * linux-low.c (regsets_store_inferior_registers): Read the regset | |
973 | from the target before filling it. | |
974 | ||
9db87ebd DJ |
975 | 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
976 | ||
977 | * server.c (attach_inferior): Return SIGTRAP for a successful | |
978 | attach. | |
979 | ||
dd24457d DJ |
980 | 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
981 | ||
982 | * Makefile.in (OBS): Add version.o. | |
983 | (STAGESTUFF): Delete. | |
984 | (version.o): Add dependencies. | |
985 | (version.c): Replace rule. | |
986 | (clean): Remove version.c. | |
987 | * server.c (gdbserver_version): New. | |
988 | (gdbserver_usage): Use printf. | |
989 | (main): Handle --version and --help. | |
990 | * server.h (version, host_name): Add declarations. | |
991 | ||
6f0f660e EZ |
992 | 2005-12-23 Eli Zaretskii <eliz@gnu.org> |
993 | ||
994 | * linux-arm-low.c: | |
995 | * linux-arm-low.c: | |
996 | * inferiors.c: | |
997 | * i387-fp.h: | |
998 | * i387-fp.c: | |
999 | * gdbreplay.c: | |
1000 | * regcache.c: | |
1001 | * proc-service.c: | |
1002 | * mem-break.h: | |
1003 | * mem-break.c: | |
1004 | * linux-x86-64-low.c: | |
1005 | * linux-sh-low.c: | |
1006 | * linux-s390-low.c: | |
1007 | * linux-ppc64-low.c: | |
1008 | * linux-ppc-low.c: | |
1009 | * linux-mips-low.c: | |
1010 | * linux-m68k-low.c: | |
1011 | * linux-m32r-low.c: | |
1012 | * linux-low.h: | |
1013 | * linux-low.c: | |
1014 | * linux-ia64-low.c: | |
1015 | * linux-i386-low.c: | |
1016 | * linux-crisv32-low.c: | |
1017 | * thread-db.c: | |
1018 | * terminal.h: | |
1019 | * target.h: | |
1020 | * target.c: | |
1021 | * server.h: | |
1022 | * server.c: | |
1023 | * remote-utils.c: | |
1024 | * regcache.h: | |
1025 | * utils.c: | |
1026 | * Makefile.in: | |
1027 | * configure.ac: | |
1028 | * gdbserver.1: Add (C) after Copyright. Update the FSF | |
1029 | address. | |
1030 | ||
9d1fb177 DJ |
1031 | 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com> |
1032 | ||
1033 | * linux-arm-low.c (arm_eabi_breakpoint): New variable. | |
1034 | (arm_breakpoint_at): Recognize both breakpoints. | |
1035 | (the_low_target): Use the correct breakpoint instruction. | |
1036 | ||
011a70c2 DJ |
1037 | 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com> |
1038 | ||
1039 | * configure.srv (x86_64-*-linux*): Turn on thread_db support. | |
1040 | * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len) | |
1041 | (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New. | |
1042 | (the_low_target): Update. | |
1043 | ||
7fb85e41 AS |
1044 | 2005-10-25 Andreas Schwab <schwab@suse.de> |
1045 | ||
1046 | * server.c (main): Allocate mem_buf with PBUFSIZ bytes. | |
1047 | ||
1048 | * linux-ia64-low.c (ia64_regmap): Remove NAT registers. | |
1049 | (ia64_num_regs): Reduce to 462. | |
1050 | ||
3db0444b DJ |
1051 | 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com> |
1052 | ||
1053 | * acinclude.m4: Correct quoting. | |
1054 | * aclocal.m4: Regenerated. | |
1055 | ||
1056 | Suggested by SZOKOVACS Robert <szo@ies.hu>: | |
1057 | * thread-db.c (thread_db_err_str): Handle TD_VERSION. | |
1058 | (thread_db_init): Call thread_db_err_str. | |
1059 | * configure.ac: Check for TD_VERSION. | |
1060 | * config.in, configure: Regenerated. | |
1061 | ||
bee0189a DJ |
1062 | 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
1063 | ||
1064 | * server.h (error, fatal, warning): Add ATTR_FORMAT. | |
1065 | ||
e9d25b98 DJ |
1066 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
1067 | ||
1068 | * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS | |
1069 | is not available. Define HAVE_PTRACE_GETREGS if it is. | |
1070 | * config.in, configure: Regenerated. | |
1071 | * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64. | |
1072 | * linux-i386-low.c, linux-m68k-low.c: Update to use | |
1073 | HAVE_PTRACE_GETREGS. | |
1074 | * linux-low.c (regsets_fetch_inferior_registers) | |
1075 | (regsets_store_inferior_registers): Only return 0 if we processed | |
1076 | GENERAL_REGS. | |
1077 | * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New. | |
1078 | * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New. | |
1079 | ||
a06660f7 DJ |
1080 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
1081 | ||
1082 | * inferiors.c (struct thread_info): Add gdb_id. | |
1083 | (add_thread): Add gdb_id argument. | |
1084 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New. | |
1085 | * linux-low.c (linux_create_inferior, linux_attach_lwp): Update | |
1086 | calls to add_thread. | |
1087 | * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id. | |
1088 | * server.c (handle_query): Use thread_to_gdb_id. | |
1089 | (handle_v_cont, main): Use gdb_id_to_thread_id. | |
1090 | * server.h (add_thread): Update prototype. | |
1091 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New | |
1092 | prototypes. | |
1093 | ||
5a1f5858 DJ |
1094 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
1095 | ||
1096 | * linux-low.c (fetch_register, usr_store_inferior_registers): Handle | |
1097 | left-padded registers. | |
1098 | * linux-low.h (struct linux_target_ops): Add left_pad_xfer. | |
1099 | * linux-ppc64-low.c (the_low_target): Set left_pad_xfer. | |
1100 | ||
e122f1f5 SE |
1101 | 2005-07-01 Steve Ellcey <sje@cup.hp.com> |
1102 | ||
1103 | * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS. | |
1104 | * configure: Regenerate. | |
1105 | * config.in: Regenerate. | |
1106 | * server.h (NEED_DECLARATION_STRERROR): | |
1107 | Replace with !HAVE_DECL_STRERROR. | |
1108 | ||
d592fa2f DJ |
1109 | 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com> |
1110 | ||
1111 | * linux-low.c (linux_wait, linux_send_signal): Don't test | |
1112 | an unsigned long variable for > 0 if it could be MAX_ULONG. | |
1113 | * server.c (myresume): Likewise. | |
1114 | * target.c (set_desired_inferior): Likewise. | |
1115 | ||
ccbd4912 MK |
1116 | 2005-06-13 Mark Kettenis <kettenis@gnu.org> |
1117 | ||
1118 | * configure.ac: Simplify and improve check for socklen_t. | |
1119 | * configure, config.in: Regenerate. | |
1120 | ||
f450004a DJ |
1121 | 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com> |
1122 | ||
1123 | * acconfig.h: Remove. | |
1124 | * configure.ac: Add a test for socklen_t. Use three-argument | |
1125 | AC_DEFINE throughout. | |
1126 | * config.in: Regenerated using autoheader 2.59. | |
1127 | * configure: Regenerated. | |
1128 | ||
1129 | * gdbreplay.c (socklen_t): Provide a default. | |
1130 | (remote_open): Use socklen_t. | |
1131 | * remote-utils.c (socklen_t): Provide a default. | |
1132 | (remote_open): Use socklen_t. | |
1133 | (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use | |
1134 | unsigned char. | |
1135 | ||
1136 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned | |
1137 | char for buffers. | |
1138 | * linux-low.c (linux_read_memory, linux_write_memory) | |
1139 | (linux_read_auxv): Likewise. | |
1140 | * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read) | |
1141 | (check_mem_write): Likewise. | |
1142 | * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write): | |
1143 | Likewise. | |
1144 | * regcache.c (struct inferior_rgcache_data, registers_to_string) | |
1145 | (registers_from_string, register_data): Likewise. | |
1146 | * server.c (handle_query, main): Likewise. | |
1147 | * server.h (convert_ascii_to_int, convert_int_to_ascii) | |
1148 | (decode_M_packet): Likewise. | |
1149 | * target.c (read_inferior_memory, write_inferior_memory): Likewise. | |
1150 | * target.h (struct target_ops): Update read_memory, write_memory, | |
1151 | and read_auxv. | |
1152 | (read_inferior_memory, write_inferior_memory): Update. | |
1153 | * linux-low.h (struct linux_target_ops): Change type of breakpoint | |
1154 | to unsigned char *. | |
1155 | * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c, | |
1156 | linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c, | |
1157 | linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c, | |
1158 | linux-s390-low.c, linux-sh-low.c: Update for changes in | |
1159 | read_inferior_memory and the_low_target->breakpoint. | |
1160 | ||
eee84df1 DJ |
1161 | 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com> |
1162 | ||
1163 | * Makefile.in (SFILES): Add linux-ppc64-low.c. | |
1164 | (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets. | |
1165 | * configure.srv: Add powerpc64-*-linux*. | |
1166 | * linux-ppc64-low.c: New file. | |
1167 | ||
45b134e5 OF |
1168 | 2005-05-23 Orjan Friberg <orjanf@axis.com> |
1169 | ||
1170 | * linux-cris-low.c: New file with support for CRIS. | |
1171 | * linux-crisv32-low.c: Ditto for CRISv32. | |
1172 | * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c. | |
1173 | (clean): Add reg-cris.c and reg-crisv32.c. | |
1174 | Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c, | |
1175 | reg-crisv32.o, and reg-crisv32.c to make rules. | |
1176 | * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of | |
1177 | recognized targets. | |
1178 | ||
48d93c75 UW |
1179 | 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com> |
1180 | ||
1181 | * linux-low.c (fetch_register): Ensure buffer size is a multiple | |
1182 | of sizeof (PTRACE_XFER_TYPE). | |
1183 | (usr_store_inferior_registers): Likewise. Zero out excess bytes. | |
1184 | ||
e013ee27 OF |
1185 | 2005-05-12 Orjan Friberg <orjanf@axis.com> |
1186 | ||
1187 | * target.h (struct target_ops): Add insert_watchpoint, | |
1188 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address function | |
1189 | pointers for hardware watchpoint support. | |
1190 | * linux-low.h (struct linux_target_ops): Ditto. | |
1191 | * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint) | |
1192 | (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add | |
1193 | to linux_target_ops. | |
1194 | * remote-utils.c (prepare_resume_reply): Add watchpoint information to | |
1195 | reply packet. | |
1196 | * server.c (main): Recognize 'Z' and 'z' packets. | |
1197 | ||
b0ded00b UW |
1198 | 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com> |
1199 | ||
1200 | * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define. | |
1201 | (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions. | |
1202 | (the_low_target): Add new members. | |
1203 | ||
8643e2ad DJ |
1204 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
1205 | ||
1206 | * proc-service.c (ps_lgetregs): Search all_processes instead of | |
1207 | all_threads. | |
1208 | ||
fc620387 DJ |
1209 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
1210 | ||
1211 | * server.c (start_inferior): Change return type to int. | |
1212 | (attach_inferior): Change sigptr to int *. | |
1213 | (handle_v_cont, handle_v_requests): Change signal to int *. | |
1214 | (main): Change signal to int. | |
1215 | ||
1216 | 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com> | |
7cfbc4a0 KI |
1217 | |
1218 | * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o. | |
1219 | * configure.srv: Add m32r*-*-linux*. | |
1220 | * linux-m32r-low.c: New file. | |
1221 | ||
e0e76420 DJ |
1222 | 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com> |
1223 | ||
1224 | * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly. | |
1225 | ||
a1928bad DJ |
1226 | 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
1227 | ||
1228 | * inferiors.c (change_inferior_id, add_thread, find_inferior_id): | |
1229 | Take unsigned long arguments for PIDs. | |
1230 | * linux-low.c (add_process, linux_attach_lwp, linux_attach) | |
1231 | (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop) | |
1232 | (wait_for_sigstop, linux_resume_one_process) | |
1233 | (regsets_fetch_inferior_registers, linux_send_signal) | |
1234 | (linux_read_auxv): Likewise. Update the types of variables holding | |
1235 | PIDs. Update format string specifiers. | |
1236 | * linux-low.h (struct process_info, linux_attach_lwp): Likewise. | |
1237 | * remote-utils.c (prepare_resume_reply): Likewise. | |
1238 | * server.c (cont_thread, general_thread, step_thread) | |
1239 | (thread_from_wait, old_thread_from_wait, signal_pid): Change type to | |
1240 | unsigned long. | |
1241 | (handle_query): Update format specifiers. | |
1242 | (handle_v_cont, main): Use strtoul for thread IDs. | |
1243 | * server.h (struct inferior_list_entry): Use unsigned long for ID. | |
1244 | (add_thread, find_inferior_id, change_inferior_id, cont_thread) | |
1245 | (general_thread, step_thread, thread_from_wait) | |
1246 | (old_thread_from_wait): Update. | |
1247 | * target.h (struct thread_resume): Use unsigned long for THREAD. | |
1248 | (struct target_ops): Use unsigned long for arguments to attach and | |
1249 | thread_alive. | |
1250 | ||
dcdb98d2 DJ |
1251 | 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com> |
1252 | ||
1253 | * acinclude.m4: Include bfd/bfd.m4 directly. | |
1254 | * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis | |
1255 | <agriffis@toolchain.org>. | |
1256 | * aclocal.m4, configure: Regenerated. | |
1257 | ||
bec39cab AC |
1258 | 2005-01-07 Andrew Cagney <cagney@gnu.org> |
1259 | ||
1260 | * configure.ac: Rename configure.in, require autoconf 2.59. | |
1261 | * configure: Re-generate. | |
1262 | ||
434c4c77 DJ |
1263 | 2004-12-08 Daniel Jacobowitz <dan@debian.org> |
1264 | ||
1265 | * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset | |
1266 | LIBS when finished. | |
1267 | * aclocal.m4: Regenerated. | |
1268 | * configure: Regenerated. | |
1269 | ||
db1d3e1b AS |
1270 | 2004-11-21 Andreas Schwab <schwab@suse.de> |
1271 | ||
1272 | * linux-m68k-low.c (m68k_num_gregs): Define. | |
1273 | (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset) | |
1274 | (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New. | |
1275 | (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc) | |
1276 | (m68k_breakpoint_at): New. Add to the_low_target. | |
1277 | ||
1278 | * configure.srv (m68*-*-linux*): Set srv_linux_regsets and | |
1279 | srv_linux_thread_db to yes. | |
1280 | ||
43360365 JB |
1281 | 2004-10-20 Joel Brobecker <brobecker@gnat.com> |
1282 | ||
1283 | * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing. | |
1284 | (ARCH_SET_FS): Likewise. | |
1285 | (ARCH_GET_FS): Likewise. | |
1286 | (ARCH_GET_GS): Likewise. | |
1287 | ||
fd500816 DJ |
1288 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
1289 | ||
1290 | * linux-i386-low.c (ps_get_thread_area): New. | |
1291 | * linux-x86-64-low.c (ps_get_thread_area): New. | |
1292 | * linux-low.c: Include <sys/syscall.h>. | |
1293 | (linux_kill_one_process): Don't kill the first thread here. | |
1294 | (linux_kill): Kill the first thread here. | |
1295 | (kill_lwp): New function. | |
1296 | (send_sigstop, linux_send_signal): Use it. | |
1297 | * proc-service.c: Clean up #ifdefs. | |
1298 | (fpregset_info): Delete. | |
1299 | (ps_lgetregs): Update and enable implementation. | |
1300 | (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled | |
1301 | implementations. | |
1302 | * remote-utils.c (struct sym_cache, symbol_cache): New. | |
1303 | (input_interrupt): Print a clearer message. | |
1304 | (async_io_enabled): New variable. | |
1305 | (enable_async_io, disable_async_io): Use it. Update comments. | |
1306 | (look_up_one_symbol): Use the symbol cache. | |
1307 | * thread-db.c (thread_db_look_up_symbols): New function. | |
1308 | (thread_db_init): Update comments. Call thread_db_look_up_symbols. | |
1309 | ||
f6de3c42 DJ |
1310 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
1311 | ||
1312 | * configure.in: Test for -rdynamic. | |
1313 | * configure: Regenerated. | |
1314 | * Makefile (INTERNAL_LDFLAGS): New. | |
1315 | (gdbserver, gdbreplay): Use it. | |
1316 | ||
2c0fc042 AC |
1317 | 2004-09-02 Andrew Cagney <cagney@gnu.org> |
1318 | ||
1319 | * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE. | |
1320 | ||
075b3282 DJ |
1321 | 2004-03-23 Daniel Jacobowitz <drow@mvista.com> |
1322 | ||
1323 | * linux-low.c (linux_wait): Clear all_processes list also. | |
1324 | ||
fa6a77dc DJ |
1325 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
1326 | ||
1327 | * linux-low.c: Include <errno.h>. Remove extern declaration of | |
1328 | errno. | |
1329 | ||
6d782a97 DJ |
1330 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
1331 | ||
1332 | * gdbreplay.c, server.h, utils.c: Update copyright years. | |
1333 | ||
3a7fb99b DJ |
1334 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
1335 | ||
1336 | * server.c (main): Print child status or termination signal from | |
1337 | variable 'signal', not 'sig'. | |
1338 | ||
c3e735a6 DJ |
1339 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
1340 | ||
1341 | * linux-low.c (linux_read_memory): Change return type to | |
1342 | int. Check for and return error from ptrace(). | |
1343 | * target.c (read_inferior_memory): Change return type to int. Pass | |
1344 | back return status from the_target->read_memory(). | |
1345 | * target.h (struct target_ops): Adapt *read_memory() prototype. | |
1346 | Update comment. | |
1347 | (read_inferior_memory): Adapt prototype. | |
1348 | * server.c (main): Return an error packet if | |
1349 | read_inferior_memory() returns an error. | |
1350 | ||
a59d1c82 DJ |
1351 | 2004-03-04 Daniel Jacobowitz <drow@mvista.com> |
1352 | ||
1353 | * Makefile.in (distclean): Remove config.h, stamp-h, and config.log. | |
1354 | Unify with other clean targets. | |
1355 | ||
dc3f8883 DJ |
1356 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
1357 | ||
1358 | * server.c (handle_v_cont): Call set_desired_inferior. | |
1359 | ||
89a208da DJ |
1360 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
1361 | ||
1362 | * remote-utils.c (prepare_resume_reply): Always supply "thread:". | |
1363 | ||
62ea82f5 DJ |
1364 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
1365 | ||
1366 | * linux-low.c (linux_wait): Unblock async I/O. | |
1367 | (linux_resume): Block and enable async I/O. | |
1368 | * remote-utils.c (block_async_io, unblock_async_io): New functions. | |
1369 | * server.h (block_async_io, unblock_async_io): Add prototypes. | |
1370 | ||
6910d122 DJ |
1371 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
1372 | ||
1373 | * remote-utils.c (remote_open): Print a status notice after | |
1374 | opening a TCP port. | |
1375 | * server.c (attach_inferior): Print a status notice after | |
1376 | attaching. | |
1377 | ||
1378 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> | |
d677d77d DJ |
1379 | |
1380 | * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. | |
1381 | ||
c89dc5d4 DJ |
1382 | 2004-02-26 Daniel Jacobowitz <drow@mvista.com> |
1383 | ||
1384 | * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the | |
1385 | error packet. | |
1386 | * server.c, target.h: Update copyright years. | |
1387 | ||
4b8dad4a RM |
1388 | 2004-02-25 Roland McGrath <roland@redhat.com> |
1389 | ||
1390 | * target.h (struct target_ops): New member `read_auxv'. | |
1391 | * server.c (handle_query): Handle qPart:auxv:read: query using that. | |
1392 | * linux-low.c (linux_read_auxv): New function. | |
1393 | (linux_target_ops): Initialize `read_auxv' member to that. | |
1394 | ||
d7446758 JB |
1395 | 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
1396 | ||
1397 | Committed by Jim Blandy <jimb@redhat.com>. | |
1398 | ||
1399 | * linux-s390-low.c (s390_num_regs): Update. | |
4b8dad4a | 1400 | (s390_regmap): Remove control registers. Use __s390x__ predefine |
d7446758 JB |
1401 | instead of GPR_SIZE to distiguish s390 and s390x targets. |
1402 | ||
5544ad89 DJ |
1403 | 2004-01-31 Daniel Jacobowitz <drow@mvista.com> |
1404 | ||
1405 | * linux-low.c: Update copyright year. | |
1406 | (check_removed_breakpoint): Clear pending_is_breakpoint. | |
1407 | (linux_set_resume_request, linux_queue_one_thread) | |
1408 | (resume_status_pending_p): New functions. | |
1409 | (linux_continue_one_thread): Use process->resume. | |
1410 | (linux_resume): Only resume threads if there are no pending events. | |
1411 | * linux-low.h (struct process_info): Add resume request | |
1412 | pointer. | |
1413 | ||
2a68b70e DJ |
1414 | 2004-01-30 Daniel Jacobowitz <drow@mvista.com> |
1415 | ||
1416 | * regcache.c (new_register_cache): Clear the allocated register | |
1417 | buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>. | |
1418 | ||
64386c31 DJ |
1419 | 2003-10-13 Daniel Jacobowitz <drow@mvista.com> |
1420 | ||
1421 | * linux-low.c (linux_resume): Take a struct thread_resume * | |
1422 | argument. | |
1423 | (linux_wait): Update call. | |
1424 | (resume_ptr): New static variable. | |
1425 | (linux_continue_one_thread): Renamed from | |
1426 | linux_continue_one_process. Use resume_ptr. | |
1427 | (linux_resume): Use linux_continue_one_thread. | |
1428 | * server.c (handle_v_cont, handle_v_requests): New functions. | |
1429 | (myresume): New function. | |
1430 | (main): Handle 'v' case. | |
1431 | * target.h (struct thread_resume): New type. | |
1432 | (struct target_ops): Change argument of "resume" to struct | |
1433 | thread_resume *. | |
1434 | (myresume): Delete macro. | |
1435 | ||
c938e9b0 L |
1436 | 2003-08-08 H.J. Lu <hongjiu.lu@intel.com> |
1437 | ||
1438 | * Makefile.in (install-only): Create dest dir. Support DESTDIR. | |
1439 | (uninstall): Support DESTDIR. | |
1440 | ||
7f313d07 BC |
1441 | Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com> |
1442 | ||
1443 | * configure.srv: Add xscale*linux copy of arm*linux entry. | |
1444 | ||
3b2fc2ea DJ |
1445 | 2003-07-24 Daniel Jacobowitz <drow@mvista.com> |
1446 | ||
1447 | * linux-arm-low.c (arm_reinsert_addr): New function. | |
1448 | (the_low_target): Add arm_reinsert_addr. | |
1449 | ||
1c0a559e MK |
1450 | 2003-07-08 Mark Kettenis <kettenis@gnu.org> |
1451 | ||
1452 | * mem-break.c: Remove whitespace at end of file. | |
1453 | ||
43d5792c DJ |
1454 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
1455 | ||
1456 | * configure.in: Check whether we need to prototype strerror. | |
1457 | * server.h: Optionally prototype strerror. | |
1458 | * gdbreplay.c (perror_with_name): Use strerror. | |
1459 | * linux-low.c (linux_attach_lwp): Use strerror. | |
1460 | * utils.c (perror_with_name): Use strerror. | |
1461 | * config.in, configure: Regenerated. | |
1462 | ||
c8a86edf DJ |
1463 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
1464 | ||
1465 | * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by | |
1466 | SUGIOKA Toshinobu <sugioka@itonet.co.jp>. | |
1467 | ||
73d37363 DJ |
1468 | 2003-06-20 Daniel Jacobowitz <drow@mvista.com> |
1469 | ||
1470 | * Makefile.in (SFILES): Update. | |
1471 | * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c, | |
1472 | low-sun3.c: Remove files. | |
1473 | ||
6ad8ae5c DJ |
1474 | 2003-06-17 Daniel Jacobowitz <drow@mvista.com> |
1475 | ||
1476 | * linux-low.c: Move comment to linux_thread_alive where it belonged. | |
1477 | (linux_detach_one_process, linux_detach): New functions. | |
1478 | (linux_target_ops): Add linux_detach. | |
1479 | * server.c (main): Handle 'D' packet. | |
1480 | * target.h (struct target_ops): Add "detach" member. | |
1481 | (detach_inferior): Define. | |
1482 | ||
1581182a MK |
1483 | 2003-06-13 Mark Kettenis <kettenis@gnu.org> |
1484 | ||
1485 | From Kelley Cook <kelleycook@wideopenwest.com>: | |
1486 | * configure.srv: Accept i[34567]86 variants. | |
1487 | ||
e5379b03 DJ |
1488 | 2003-06-05 Daniel Jacobowitz <drow@mvista.com> |
1489 | ||
1490 | * linux-low.c (linux_wait_for_event): Correct comment typos. | |
1491 | (linux_resume_one_process): Call check_removed_breakpoint. | |
1492 | (linux_send_signal): New function. | |
1493 | (linux_target_ops): Add linux_send_signal. | |
1494 | * remote-utils.c (putpkt, input_interrupt): Use send_signal instead | |
1495 | of kill. | |
1496 | * target.h (struct target_ops): Add send_signal. | |
1497 | ||
2ff29de4 JB |
1498 | 2003-05-29 Jim Blandy <jimb@redhat.com> |
1499 | ||
1500 | * linux-low.c (usr_store_inferior_registers): Transfer buf in | |
1501 | PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise, | |
1502 | if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing | |
1503 | away part of the register's value. | |
1504 | ||
254787d4 DJ |
1505 | 2003-03-26 Daniel Jacobowitz <drow@mvista.com> |
1506 | ||
1507 | * linux-low.c (linux_create_inferior): Use __SIGRTMIN. | |
1508 | (linux_wait_for_event, linux_init_signals): Likewise. | |
1509 | ||
94e10508 DJ |
1510 | 2003-03-17 Daniel Jacobowitz <drow@mvista.com> |
1511 | ||
1512 | * configure.in: Check for stdlib.h. | |
1513 | * configure: Regenerated. | |
1514 | * config.in: Regenerated. | |
1515 | ||
4c0711e0 DJ |
1516 | 2003-01-04 Andreas Schwab <schwab@suse.de> |
1517 | ||
1518 | * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31. | |
1519 | ||
ef66e766 AC |
1520 | 2003-01-02 Andrew Cagney <ac131313@redhat.com> |
1521 | ||
1522 | * Makefile.in: Remove obsolete code. | |
1523 | ||
a1358604 DJ |
1524 | 2002-11-20 Daniel Jacobowitz <drow@mvista.com> |
1525 | ||
1526 | * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of | |
1527 | defined(PT_FPR0_HI). | |
1528 | ||
23ce3b1c DJ |
1529 | 2002-11-17 Stuart Hughes <seh@zee2.com> |
1530 | ||
1531 | * linux-arm-low.c (arm_num_regs): Increase. | |
1532 | (arm_regmap): Include status register. | |
1533 | ||
1534 | 2002-11-17 Daniel Jacobowitz <drow@mvista.com> | |
1535 | ||
1536 | * linux-low.c (register_addr): Remove incorrect -1 check. | |
1537 | ||
a9fa9f7d DJ |
1538 | 2002-08-29 Daniel Jacobowitz <drow@mvista.com> |
1539 | ||
1540 | * linux-low.c (linux_create_inferior): Call setpgid. Return | |
1541 | the new PID. | |
1542 | (unstopped_p, linux_signal_pid): Remove. | |
1543 | (linux_target_ops): Remove linux_signal_pid. | |
1544 | * remote-utils.c (putpkt, input_interrupt): Use signal_pid | |
1545 | global instead of target method. | |
1546 | * target.h (struct target_ops): Remove signal_pid. Update comment | |
1547 | for create_inferior. | |
1548 | * server.c (signal_pid): New variable. | |
1549 | (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in | |
4b8dad4a | 1550 | gdbserver. Set the child to be the foreground process group. |
a9fa9f7d DJ |
1551 | (attach_inferior): Set signal_pid. |
1552 | ||
17574093 DJ |
1553 | 2002-08-23 Daniel Jacobowitz <drow@mvista.com> |
1554 | ||
1555 | * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2. | |
1556 | ||
1557 | 2002-08-20 Jim Blandy <jimb@redhat.com> | |
1558 | ||
1559 | * Makefile.in (LDFLAGS): Allow the configure script to establish a | |
1560 | default for this. | |
1561 | ||
1562 | 2002-08-01 Andrew Cagney <cagney@redhat.com> | |
1563 | ||
1564 | * Makefile.in: Make chill references obsolete. | |
1565 | ||
1566 | 2002-07-24 Kevin Buettner <kevinb@redhat.com> | |
1567 | ||
1568 | * configure.in (unistd.h): Add to AC_CHECK_HEADERS list. | |
1569 | * configure: Regenerate. | |
1570 | * config.in: Regenerate. | |
1571 | ||
1572 | 2002-07-09 David O'Brien <obrien@FreeBSD.org> | |
1573 | ||
1574 | * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include. | |
1575 | (perror_with_name, remote_close, remote_open, expect, play): Static. | |
1576 | ||
1577 | 2002-07-04 Michal Ludvig <mludvig@suse.cz> | |
1578 | ||
4b8dad4a | 1579 | * linux-x86-64-low.c (x86_64_regmap): Make it an array of |
17574093 DJ |
1580 | byte offsets instead of an array of indexes. |
1581 | (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const. | |
1582 | ||
1583 | 2002-06-13 Daniel Jacobowitz <drow@mvista.com> | |
1584 | ||
1585 | * regcache.c: Add comment. | |
1586 | ||
1587 | 2002-06-11 Daniel Jacobowitz <drow@mvista.com> | |
1588 | ||
1589 | * thread-db.c: New file. | |
1590 | * proc-service.c: New file. | |
1591 | * acinclude.m4: New file. | |
1592 | * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h, | |
1593 | proc-service.o, and thread-db.o. | |
1594 | (linux-low.o): Add USE_THREAD_DB. | |
1595 | * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T, | |
1596 | HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN. | |
1597 | * aclocal.m4: Regenerated. | |
1598 | * config.in: Regenerated. | |
1599 | * configure: Regenerated. | |
1600 | * configure.in: Check for proc_service.h, sys/procfs.h, | |
1601 | thread_db.h, and linux/elf.h headrs. | |
1602 | Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and | |
1603 | PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB. | |
1604 | Check for -lthread_db and thread support. | |
1605 | * configure.srv: Enable thread_db support for ARM, i386, MIPS, | |
1606 | PowerPC, and SuperH. | |
1607 | * i387-fp.c: Constify arguments. | |
1608 | * i387-fp.h: Likewise. | |
1609 | * inferiors.c: (struct thread_info): Renamed from | |
1610 | `struct inferior_info'. Remove PID member. Use generic inferior | |
1611 | list header. All uses updated. | |
1612 | (inferiors, signal_pid): Removed. | |
1613 | (all_threads): New variable. | |
1614 | (get_thread): Define. | |
1615 | (add_inferior_to_list): New function. | |
1616 | (for_each_inferior): New function. | |
1617 | (change_inferior_id): New function. | |
1618 | (add_inferior): Removed. | |
1619 | (remove_inferior): New function. | |
1620 | (add_thread): New function. | |
1621 | (free_one_thread): New function. | |
1622 | (remove_thread): New function. | |
1623 | (clear_inferiors): Use for_each_inferior and free_one_thread. | |
1624 | (find_inferior): New function. | |
1625 | (find_inferior_id): New function. | |
1626 | (inferior_target_data): Update argument type. | |
1627 | (set_inferior_target_data): Likewise. | |
1628 | (inferior_regcache_data): Likewise. | |
1629 | (set_inferior_regcache_data): Likewise. | |
1630 | * linux-low.c (linux_bp_reinsert): Remove. | |
1631 | (all_processes, stopping_threads, using_thrads) | |
1632 | (struct pending_signals, debug_threads, pid_of): New. | |
1633 | (inferior_pid): Replace with macro. | |
1634 | (struct inferior_linux_data): Remove. | |
1635 | (get_stop_pc, add_process): New functions. | |
1636 | (linux_create_inferior): Restore SIGRTMIN+1 before calling exec. | |
1637 | Use add_process and add_thread. | |
1638 | (linux_attach_lwp): New function, based on old linux_attach. Use | |
1639 | add_process and add_thread. Set stop_expected for new threads. | |
1640 | (linux_attach): New function. | |
1641 | (linux_kill_one_process): New function. | |
1642 | (linux_kill): Kill all LWPs. | |
1643 | (linux_thread_alive): Use find_inferior_id. | |
1644 | (check_removed_breakpoints, status_pending_p): New functions. | |
1645 | (linux_wait_for_process): Renamed from linux_wait_for_one_inferior. | |
1646 | Update. Use WNOHANG. Wait for cloned processes also. Update process | |
1647 | struct for the found process. | |
1648 | (linux_wait_for_event): New function. | |
1649 | (linux_wait): Use it. Support LWPs. | |
1650 | (send_sigstop, wait_for_sigstop, stop_all_processes) | |
1651 | (linux_resume_one_process, linux_continue_one_process): New functions. | |
1652 | (linux_resume): Support LWPs. | |
1653 | (REGISTER_RAW_SIZE): Remove. | |
1654 | (fetch_register): Use register_size instead. Call supply_register. | |
1655 | (usr_store_inferior_registers): Likewise. Call collect_register. | |
1656 | Fix recursive case. | |
1657 | (regsets_fetch_inferior_registers): Improve error message. | |
1658 | (regsets_store_inferior_registers): Add debugging. | |
1659 | (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB. | |
1660 | (unstopped_p, linux_signal_pid): New functions. | |
1661 | (linux_target_ops): Add linux_signal_pid. | |
1662 | (linux_init_signals): New function. | |
1663 | (initialize_low): Call it. Initialize using_threads. | |
1664 | * regcache.c (inferior_regcache_data): Add valid | |
1665 | flag. | |
1666 | (get_regcache): Fetch registers lazily. Add fetch argument | |
1667 | and update all callers. | |
1668 | (regcache_invalidate_one, regcache_invalidate): New | |
1669 | functions. | |
1670 | (new_register_cache): Renamed from create_register_cache. | |
1671 | Return the new regcache. | |
1672 | (free_register_cache): Change argument to a void *. | |
1673 | (registers_to_string, registers_from_string): Call get_regcache | |
1674 | with fetch flag set. | |
1675 | (register_data): Make static. Pass fetch flag to get_regcache. | |
1676 | (supply_register): Call get_regcache with fetch flag clear. | |
1677 | (collect_register): Call get_regcache with fetch flag set. | |
1678 | (collect_register_as_string): New function. | |
1679 | * regcache.h: Update. | |
1680 | * remote-utils.c (putpkt): Flush after debug output and use | |
1681 | stderr. | |
1682 | Handle input interrupts while waiting for an ACK. | |
1683 | (input_interrupt): Use signal_pid method. | |
1684 | (getpkt): Flush after debug output and use stderr. | |
1685 | (outreg): Use collect_register_as_string. | |
1686 | (new_thread_notify, dead_thread_notify): New functions. | |
1687 | (prepare_resume_reply): Check using_threads. Set thread_from_wait | |
1688 | and general_thread. | |
1689 | (look_up_one_symbol): Flush after debug output. | |
1690 | * server.c (step_thread, server_waiting): New variables. | |
1691 | (start_inferior): Don't use signal_pid. Update call to mywait. | |
1692 | (attach_inferior): Update call to mywait. | |
1693 | (handle_query): Handle qfThreadInfo and qsThreadInfo. | |
1694 | (main): Don't fetch/store registers explicitly. Use | |
1695 | set_desired_inferior. Support proposed ``Hs'' packet. Update | |
1696 | calls to mywait. | |
1697 | * server.h: Update. | |
1698 | (struct inferior_list, struct_inferior_list_entry): New. | |
1699 | * target.c (set_desired_inferior): New. | |
1700 | (write_inferior_memory): Constify. | |
1701 | (mywait): New function. | |
1702 | * target.h: Update. | |
1703 | (struct target_ops): New signal_pid method. | |
1704 | (mywait): Removed macro, added prototype. | |
1705 | ||
1706 | * linux-low.h (regset_func): Removed. | |
1707 | (regset_fill_func, regset_store_func): New. | |
1708 | (enum regset_type): New. | |
1709 | (struct regset_info): Add type field. Use new operation types. | |
1710 | (struct linux_target_ops): stop_pc renamed to get_pc. | |
1711 | Add decr_pc_after_break and breakpoint_at. | |
1712 | (get_process, get_thread_proess, get_process_thread) | |
1713 | (strut process_info, all_processes, linux_attach_lwp) | |
1714 | (thread_db_init): New. | |
1715 | ||
1716 | * linux-arm-low.c (arm_get_pc, arm_set_pc, | |
1717 | arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New. | |
1718 | (the_low_target): Add new members. | |
1719 | * linux-i386-low.c (i386_store_gregset, i386_store_fpregset) | |
1720 | (i386_store_fpxregset): Constify. | |
1721 | (target_regsets): Add new kind identifier. | |
1722 | (i386_get_pc): Renamed from i386_stop_pc. Simplify. | |
1723 | (i386_set_pc): Add debugging. | |
1724 | (i386_breakpoint_at): New function. | |
1725 | (the_low_target): Add new members. | |
1726 | * linux-mips-low.c (mips_get_pc, mips_set_pc) | |
1727 | (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr) | |
1728 | (mips_breakpoint_at): New. | |
1729 | (the_low_target): Add new members. | |
1730 | * linux-ppc-low.c (ppc_get_pc, ppc_set_pc) | |
1731 | (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New. | |
1732 | (the_low_target): Add new members. | |
1733 | * linux-sh-low.c (sh_get_pc, sh_set_pc) | |
1734 | (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New. | |
1735 | (the_low_target): Add new members. | |
1736 | * linux-x86-64-low.c (target_regsets): Add new kind | |
1737 | identifier. | |
1738 | ||
1739 | 2002-05-15 Daniel Jacobowitz <drow@mvista.com> | |
1740 | ||
1741 | From Martin Pool <mbp@samba.org>: | |
1742 | * server.c (gdbserver_usage): New function. | |
1743 | (main): Call it. | |
1744 | ||
1745 | 2002-05-14 Daniel Jacobowitz <drow@mvista.com> | |
1746 | ||
1747 | * mem-break.c (reinsert_breakpoint_by_bp): Correct typo | |
1748 | stop_at -> stop_pc. | |
1749 | ||
1750 | 2002-05-04 Andrew Cagney <ac131313@redhat.com> | |
1751 | ||
1752 | * Makefile.in: Remove obsolete code. | |
1753 | ||
1754 | 2002-04-24 Michal Ludvig <mludvig@suse.cz> | |
1755 | ||
1756 | * linux-low.c (regsets_fetch_inferior_registers), | |
1757 | (regsets_store_inferior_registers): Removed cast to int from | |
1758 | ptrace() calls. | |
1759 | * regcache.h: Added declaration of struct inferior_info. | |
1760 | ||
1761 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> | |
1762 | ||
1763 | * inferiors.c (struct inferior_info): Add regcache_data. | |
1764 | (add_inferior): Call create_register_cache. | |
1765 | (clear_inferiors): Call free_register_cache. | |
1766 | (inferior_regcache_data, set_inferior_regcache_data): New functions. | |
1767 | * regcache.c (struct inferior_regcache_data): New. | |
1768 | (registers): Remove. | |
1769 | (get_regcache): New function. | |
1770 | (create_register_cache, free_register_cache): New functions. | |
1771 | (set_register_cache): Don't initialize the register cache here. | |
1772 | (registers_to_string, registers_from_string, register_data): Call | |
1773 | get_regcache. | |
1774 | * regcache.h: Add prototypes. | |
1775 | * server.h: Likewise. | |
1776 | ||
1777 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> | |
1778 | ||
1779 | * mem-break.c: New file. | |
1780 | * mem-break.h: New file. | |
1781 | * Makefile.in: Add mem-break.o rule; update server.h | |
1782 | dependencies. | |
1783 | * inferiors.c (struct inferior_info): Add target_data | |
1784 | member. | |
1785 | (clear_inferiors): Free target_data member if set. | |
1786 | (inferior_target_data, set_inferior_target_data): New functions. | |
1787 | * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len) | |
1788 | (i386_stop_pc, i386_set_pc): New. Add to the_low_target. | |
1789 | * linux-low.c (linux_bp_reinsert): New variable. | |
1790 | (struct inferior_linux_data): New. | |
1791 | (linux_create_inferior): Use set_inferior_target_data. | |
1792 | (linux_attach): Likewise. Call add_inferior. | |
1793 | (linux_wait_for_one_inferior): New function. | |
1794 | (linux_wait): Call it. | |
1795 | (linux_write_memory): Add const. | |
1796 | (initialize_low): Call set_breakpoint_data. | |
1797 | * linux-low.h (struct linux_target_ops): Add breakpoint | |
1798 | handling members. | |
1799 | * server.c (attach_inferior): Remove extra add_inferior | |
1800 | call. | |
1801 | * server.h: Include mem-break.h. Update inferior.c | |
1802 | prototypes. | |
1803 | * target.c (read_inferior_memory) | |
1804 | (write_inferior_memory): New functions. | |
1805 | * target.h (read_inferior_memory) | |
1806 | (write_inferior_memory): Change macros to prototypes. | |
1807 | (struct target_ops): Update comments. Add const to write_memory | |
1808 | definition. | |
1809 | ||
1810 | 2002-04-11 Daniel Jacobowitz <drow@mvista.com> | |
1811 | ||
1812 | * linux-low.c (usr_store_inferior_registers): Support | |
1813 | registers which are allowed to fail to store. | |
1814 | * linux-low.h (linux_target_ops): Likewise. | |
1815 | * linux-ppc-low.c (ppc_regmap): Support FPSCR. | |
1816 | (ppc_cannot_store_register): FPSCR may not be storable. | |
1817 | ||
1818 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
1819 | ||
1820 | * server.h: Include <string.h> if HAVE_STRING_H. | |
1821 | * ChangeLog: Correct paths in last ChangeLog entry. | |
1822 | ||
1823 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
1824 | ||
1825 | * linux-low.h: Remove obsolete prototypes. | |
1826 | (struct linux_target_ops): New. | |
1827 | (extern the_low_target): New. | |
1828 | * linux-low.c (num_regs, regmap): Remove declarations. | |
1829 | (register_addr): Use the_low_target explicitly. | |
1830 | (fetch_register): Likewise. | |
1831 | (usr_fetch_inferior_registers): Likewise. | |
1832 | (usr_store_inferior_registers): Likewise. | |
1833 | * linux-arm-low.c (num_regs): Remove. | |
1834 | (arm_num_regs): Define. | |
1835 | (arm_regmap): Renamed from regmap, made static. | |
1836 | (arm_cannot_fetch_register): Renamed from cannot_fetch_register, | |
1837 | made static. | |
1838 | (arm_cannot_store_register): Renamed from cannot_store_register, | |
1839 | made static. | |
1840 | (the_low_target): New. | |
1841 | * linux-i386-low.c (num_regs): Remove. | |
1842 | (i386_num_regs): Define. | |
1843 | (i386_regmap): Renamed from regmap, made static. | |
1844 | (i386_cannot_fetch_register): Renamed from cannot_fetch_register, | |
1845 | made static. | |
1846 | (i386_cannot_store_register): Renamed from cannot_store_register, | |
1847 | made static. | |
1848 | (the_low_target): New. | |
1849 | * linux-ia64-low.c (num_regs): Remove. | |
1850 | (ia64_num_regs): Define. | |
1851 | (ia64_regmap): Renamed from regmap, made static. | |
1852 | (ia64_cannot_fetch_register): Renamed from cannot_fetch_register, | |
1853 | made static. | |
1854 | (ia64_cannot_store_register): Renamed from cannot_store_register, | |
1855 | made static. | |
1856 | (the_low_target): New. | |
1857 | * linux-m68k-low.c (num_regs): Remove. | |
1858 | (m68k_num_regs): Define. | |
1859 | (m68k_regmap): Renamed from regmap, made static. | |
1860 | (m68k_cannot_fetch_register): Renamed from cannot_fetch_register, | |
1861 | made static. | |
1862 | (m68k_cannot_store_register): Renamed from cannot_store_register, | |
1863 | made static. | |
1864 | (the_low_target): New. | |
1865 | * linux-mips-low.c (num_regs): Remove. | |
1866 | (mips_num_regs): Define. | |
1867 | (mips_regmap): Renamed from regmap, made static. | |
1868 | (mips_cannot_fetch_register): Renamed from cannot_fetch_register, | |
1869 | made static. | |
1870 | (mips_cannot_store_register): Renamed from cannot_store_register, | |
1871 | made static. | |
1872 | (the_low_target): New. | |
1873 | * linux-ppc-low.c (num_regs): Remove. | |
1874 | (ppc_num_regs): Define. | |
1875 | (ppc_regmap): Renamed from regmap, made static. | |
1876 | (ppc_cannot_fetch_register): Renamed from cannot_fetch_register, | |
1877 | made static. | |
1878 | (ppc_cannot_store_register): Renamed from cannot_store_register, | |
1879 | made static. | |
1880 | (the_low_target): New. | |
1881 | * linux-s390-low.c (num_regs): Remove. | |
1882 | (s390_num_regs): Define. | |
1883 | (s390_regmap): Renamed from regmap, made static. | |
1884 | (s390_cannot_fetch_register): Renamed from cannot_fetch_register, | |
1885 | made static. | |
1886 | (s390_cannot_store_register): Renamed from cannot_store_register, | |
1887 | made static. | |
1888 | (the_low_target): New. | |
1889 | * linux-sh-low.c (num_regs): Remove. | |
1890 | (sh_num_regs): Define. | |
1891 | (sh_regmap): Renamed from regmap, made static. | |
1892 | (sh_cannot_fetch_register): Renamed from cannot_fetch_register, | |
1893 | made static. | |
1894 | (sh_cannot_store_register): Renamed from cannot_store_register, | |
1895 | made static. | |
1896 | (the_low_target): New. | |
1897 | * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap. | |
1898 | (the_low_target): New. | |
1899 | ||
1900 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
1901 | ||
1902 | * Makefile.in: Add stamp-h target. | |
1903 | * configure.in: Create stamp-h. | |
1904 | * configure: Regenerated. | |
1905 | ||
1906 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
1907 | ||
1908 | * inferiors.c: New file. | |
1909 | * target.c: New file. | |
1910 | * target.h: New file. | |
1911 | * Makefile.in: Add target.o and inferiors.o. Update | |
1912 | dependencies. | |
1913 | * linux-low.c (inferior_pid): New static variable, | |
1914 | moved from server.c. | |
1915 | (linux_create_inferior): Renamed from create_inferior. | |
1916 | Call add_inferior. Return 0 on success instead of a PID. | |
1917 | (linux_attach): Renamed from myattach. | |
1918 | (linux_kill): Renamed from kill_inferior. Call clear_inferiors (). | |
1919 | (linux_thread_alive): Renamed from mythread_alive. | |
1920 | (linux_wait): Renamed from mywait. Call clear_inferiors () if the | |
1921 | child dies. | |
1922 | (linux_resume): Renamed from myresume. Add missing ``return 0''. | |
1923 | (regsets_store_inferior_registers): Correct error message. | |
1924 | Add missing ``return 0''. | |
1925 | (linux_fetch_registers): Renamed from fetch_inferior_registers. | |
1926 | (linux_store_registers): Renamed from store_inferior_registers. | |
1927 | (linux_read_memory): Renamed from read_inferior_memory. | |
1928 | (linux_write_memory): Renamed from write_inferior_memory. | |
1929 | (linux_target_ops): New structure. | |
1930 | (initialize_low): Call set_target_ops (). | |
1931 | * remote-utils.c (unhexify): New function. | |
1932 | (hexify): New function. | |
1933 | (input_interrupt): Send signals to ``signal_pid''. | |
1934 | * server.c (inferior_pid): Remove. | |
1935 | (start_inferior): Update create_inferior call. | |
1936 | (attach_inferior): Call add_inferior. | |
1937 | (handle_query): New function. | |
1938 | (main): Call handle_query for `q' packets. | |
1939 | * server.h: Include "target.h". Remove obsolete prototypes. | |
1940 | Add prototypes for "inferiors.c", "target.c", hexify, and unhexify. | |
1941 | ||
1942 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
1943 | ||
1944 | * Makefile.in: Add WARN_CFLAGS. Update configury | |
1945 | dependencies. | |
1946 | * configure.in: Check for <string.h> | |
1947 | * configure: Regenerate. | |
1948 | * config.in: Regenerate. | |
1949 | * gdbreplay.c: Include needed system headers. | |
1950 | (remote_open): Remove strchr prototype. | |
1951 | * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS. | |
1952 | * regcache.c (supply_register): Change buf argument to const void *. | |
1953 | (supply_register_by_name): Likewise. | |
1954 | (collect_register): Change buf argument to void *. | |
1955 | (collect_register_by_name): Likewise. | |
1956 | * regcache.h: Add missing prototypes. | |
1957 | * remote-utils.c: Include <arpa/inet.h> for inet_ntoa. | |
1958 | * server.c (handle_query): New function. | |
1959 | (attached): New static variable, moved out of main. | |
1960 | (main): Quiet longjmp clobber warnings. | |
1961 | * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes. | |
1962 | * utils.c (error): Remove NORETURN. | |
1963 | (fatal): Likewise. |