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