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