]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/gdbserver/ChangeLog
bfd:
[thirdparty/binutils-gdb.git] / gdb / gdbserver / ChangeLog
CommitLineData
4105de34
DJ
12007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2
3 * thread-db.c (thread_db_find_new_threads): Add prototype.
4 (thread_db_create_event): Check for the main thread before adding
5 a new thread.
6 (maybe_attach_thread): Only enable event reporting if TID == 0.
7 (thread_db_get_tls_address): Check for new threads.
8
2b876972
DJ
92007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
10
11 * linux-low.c (linux_create_inferior): Try execv before execvp.
12 * spu-low.c (spu_create_inferior): Likewise.
13
7a245884
DJ
142007-06-13 Mike Frysinger <vapier@gentoo.org>
15
16 * linux-low.c (linux_create_inferior): Change execv to execvp.
17 * spu-low.c (spu_create_inferior): Likewies.
18
117ce543
DJ
192007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20
21 * Makefile.in (clean): Clean new files instead of deleted ones.
22 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
23 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
24 rules.
25 * configure.srv: Specify XML files and new regformats for MIPS and
26 MIPS64 GNU/Linux.
27 * linux-mips-low.c (mips_num_regs): Set to only used registers.
28 (mips_regmap): Do not fetch $0. Remove unused registers. Add
29 an entry for the restart register.
30 (mips_cannot_fetch_register, mips_cannot_store_register)
31 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
32 register names to match the XML descriptions.
33 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
34 restart register instead of $0.
35
0e7f50da
UW
362007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
37 Markus Deuling <deuling@de.ibm.com>
38
39 * remote-utils.c (decode_xfer_write): New function.
40 * server.h (decode_xfer_write): Add prototype.
41 * server.c (handle_query): Add PACKET_LEN argument. Support
42 qXfer:spu:read and qXfer:spu:write packets.
43 (main): Pass packet_len to handle_query.
44 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
45 * target.h (target_ops): Add qxfer_spu.
46
374c1d38
UW
472007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
48
49 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
50 accessing non-seekable spufs files.
51
bb63802a
UW
522007-05-16 Markus Deuling <deuling@de.ibm.com>
53
54 * server.c (handle_query): Add reply for qC packet.
55
7390519e
PA
562007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
57 Leo Zayas <lerele@champenstudios@com>
58
59 * server.h (check_remote_input_interrupt_request): New function.
60 * remote_utils.c (INVALID_DESCRIPTOR): New define.
61 (remote_desc): Initialize with INVALID_DESCRIPTOR.
62 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
63 (check_remote_input_interrupt_request): New function.
64 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 65 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
66 winapi_GenerateConsoleCtrlEvent): New typedefs.
67 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
68 to 250 ms.
69 (win32_wait): Check for remote interrupt request
70 with check_remote_input_interrupt_request.
71 (win32_request_interrupt): New function.
72 (win32_target_op): Set request_interrupt to win32_request_interrupt.
73
34b34921
PA
742007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
75
76 * win32-low.c (debug_registers_changed,
77 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
78 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
79 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
80 (thread_rec): Get context using the low target.
81 (child_add_thread): Call thread_added on the low target,
82 which does the same thing.
83 (regptr): Delete.
84 (do_initial_child_stuff): Remove debug registers references.
85 Set context using the low target. Resume threads after
86 setting the contexts.
87 (child_continue): Remove dead variable. Remove debug
88 registers references.
89 (child_fetch_inferior_registers): Go through the low target.
90 (do_child_store_inferior_registers): Remove.
91 (child_store_inferior_registers): Go through the low target.
92 (win32_resume): Remove debug registers references.
93 Set context using the low target.
94 (handle_exception): Change return type to void. Don't record
95 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
96 first chance exception.
97 (get_child_debug_event): Change return type to void. Remove
98 goto loop. Always return after waiting for debug event.
99 (win32_wait): Convert to switch statement. Handle spurious
100 events.
101
102 * win32-i386-low.c (debug_registers_changed,
103 debug_registers_used): New.
104 (initial_stuff): Rename to ...
105 (i386_initial_stuff): ... this. Clear debug registers
106 state variables.
107 (store_debug_registers): Delete.
108 (i386_get_thread_context): New.
109 (load_debug_registers): Delete.
110 (i386_set_thread_context): New.
111 (i386_thread_added): New.
112 (single_step): Rename to ...
113 (i386_single_step): ... this.
114 (do_fetch_inferior_registers): Rename to ...
115 (i386_fetch_inferior_register): ... this.
116 (i386_store_inferior_register): New.
117 (the_low_target): Adapt to new interface.
118
119 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
120 (arm_get_thread_context): New.
121 (arm_set_thread_context): New.
122 (regptr): New.
123 (do_fetch_inferior_registers): Rename to ...
124 (arm_fetch_inferior_register): ... this.
125 (arm_store_inferior_register): New.
126 (arm_wince_breakpoint): Reimplement as unsigned long.
127 (arm_wince_breakpoint_len): Define.
128 (the_low_target): Adapt to new interface.
129
130 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
131 load_debug_registers. Add get_thread_context, set_thread_context,
132 thread_added and store_inferior_register. Rename
133 fetch_inferior_registers to fetch_inferior_register.
134 (regptr): Remove declaration.
135
dd6953e1
PA
1362007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
137
138 * linux-low.c (linux_detach): Change return type to int. Return 0.
139 * spu-low.c (spu_detach): Likewise.
140
444d6139
PA
1412007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
142
143 * target.h (target_ops): Change return type of detach to int.
144 Add join.
145 (join_inferior): New.
146 * server.c (main): Don't skip detach support on mingw32.
147 If the inferior doesn't support detaching return error.
148 Call join_inferior instead of using waitpid.
149 * linux-low.c (linux_join): New.
150 (linux_target_op): Add linux_join.
151 * spu-low.c (spu_join): New.
152 (spu_target_ops): Add spu_join.
153 * win32-low.c (win32_detach): Adapt to new interface.
154 Reopen current_process_handle before detaching. Issue a child
155 resume before detaching.
156 (win32_join): New.
157 (win32_target_op): Add win32_join.
158
1d5315fe
PA
1592007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
160
161 * win32-low.c (win32-attach): Fix return value.
162 * target.h (target_ops): Describe ATTACH return values.
163
bf914831
PA
1642007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
165
166 * win32-low.c (GETPROCADDRESS): Define.
167 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
168 (winapi_DebugSetProcessKillOnExit): Likewise.
169 (win32_create_inferior): Force usage of ansi CreateProcessA.
170 (win32_attach): Use GETPROCADDRESS.
171 (win32_detach): Likewise.
172
f72f3e60
PA
1732007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
174
175 * win32-low.c (win32_wait): Don't use WSTOPSIG.
176
ed50f18f
PA
1772007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
178
179 * win32-low.c: Commit leftover changes from 2007-03-29.
180
0c2ead7e
DJ
1812007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
182
183 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
184 fields short instead of int. Add explicit padding.
185 (i387_cache_to_fsave): Remove unnecessary casts.
186 (i387_fsave_to_cache): Doc fix.
187 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
188
73725ff3
DJ
1892007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
190
191 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
192 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
193
d99f33d8
PA
1942007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
195
196 * configure.srv (arm*-*-mingw32ce*): Move near the other
197 arm targets.
198
68070c10
PA
1992007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
200
2482afc6 201 * configure.ac: Add errno checking.
68070c10
PA
202 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
203 sys/file.h and malloc.h.
204 (AC_CHECK_DECLS): Add perror.
205 (srv_mingwce): Handle.
2482afc6 206 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
207 win32-i386-low.o to srv_tgtobj.
208 (i[34567]86-*-mingw*): Likewise.
209 (arm*-*-mingw32ce*): Add case.
210 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
211 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
212 [__MINGW32CE__] (strerror): New function.
213 [__MINGW32CE__] (errno): Define to GetLastError.
214 [__MINGW32CE__] (COUNTOF): New macro.
215 (remote_open): Remove extra close call.
216 * mem-break.c (delete_breakpoint_at): New function.
217 * mem-break.h (delete_breakpoint_at): Declare.
218 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
219 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
220 [USE_WIN32API] (read, write): Add char* casts.
221 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
222 * server.h: Include wincecompat.h on Windows CE.
223 [HAVE_ERRNO_H]: Check.
224 (perror): Declare if not declared.
225 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
226 (perror_with_name): Remove errno declaration.
227 * wincecompat.h: New.
228 * wincecompat.c: New.
229 * win32-low.h: New.
230 * win32-arm-low.c: New.
231 * win32-i386-low.c: New.
232 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
233 (OUTMSG2): Make it safe.
234 (_T): New macro.
235 (COUNTOF): New macro.
236 (NUM_REGS): Get it from the low target.
237 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
238 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
239 (thread_rec): Let low target handle debug registers.
240 (child_add_thread): Likewise.
241 (child_init_thread_list): Likewise.
242 (continue_one_thread): Likewise.
243 (regptr): New.
244 (do_child_fetch_inferior_registers): Move to ...
245 * win32-i386-low.c: ... here, and rename to ...
246 (do_fetch_inferior_registers): ... this.
247 * win32-low.c (child_fetch_inferior_registers):
248 Go through the low target.
249 (do_child_store_inferior_registers): Use regptr.
250 (strwinerror): New function.
251 (win32_create_inferior): Handle Windows CE.
252 Use strwinerror instead of strerror on Windows error
253 codes. Add program to the error output.
254 Don't close the main thread handle on Windows CE.
255 (win32_attach): Use coredll.dll on Windows CE.
256 (win32_kill): Close current process and current
257 thread handles.
258 (win32_detach): Use coredll.dll on Windows CE.
259 (win32_resume): Let low target handle debug registers, and
260 step request.
261 (handle_exception): Add/Remove initial breakpoint. Avoid
262 non-existant WSTOPSIG on Windows CE.
263 (win32_read_inferior_memory): Cast to remove warning.
264 (win32_arch_string): Go through the low target.
265 (initialize_low): Call set_breakpoint_data with the low
266 target's breakpoint.
267 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
268 FOP_REGNUM, mappings): Move to ...
269 * win32-i386-low.c: ... here.
270 * win32-low.c (win32_thread_info): Move to ...
271 * win32-low.h: ... here.
272 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
273 win32-arm-low.c and wincecompat.c.
274 (all:): Add $EXEEXT.
275 (install-only:): Likewise.
276 (gdbserver:): Likewise.
277 (gdbreplay:): Likewise.
278 * config.in: Regenerate.
279 * configure: Regenerate.
280
41093d81
PA
2812007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
282
283 * win32-low.c: Rename typedef thread_info to
284 win32_thread_info throughout.
285
544afa54
PA
2862007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
287
288 * win32-i386-low.c: Rename to ...
289 * win32-low.c: ... this.
290 * configure.srv: Replace win32-i386-low.o with win32-low.o.
291 * Makefile.in: Likewise.
292
bce7165d
PA
2932007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
294
295 * remote-utils.c (monitor_output): Constify msg parameter.
296 * server.h (monitor_output): Likewise.
297 * win32-i386-low.c (handle_output_debug_string): New.
298 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
299 handle_output_debug_string.
300 (get_child_debug_event): Likewise.
301
506c7aa0
DJ
3022007-03-27 Mat Hostetter <mat@lcs.mit.edu>
303
304 * server.c (main): Correct strtoul check.
305
42c81e2a
DJ
3062007-03-27 Jon Ringle <jon@ringle.org>
307
308 * linux-low.c: Check __ARCH_HAS_MMU__ also.
309
9453113a
DJ
3102007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
311
312 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
313
64a69107
DJ
3142007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
315
316 * terminal.h: Check HAVE_SGTTY_H.
317
3182007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
319
320 * remote-utils.c (remote_open): Print out the assigned port number.
321
c74d0ad8
DJ
3222007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
323
324 * remote-utils.c (monitor_output): New function.
325 * server.c (debug_threads): Define here.
326 (monitor_show_help): New function.
327 (handle_query): Handle qRcmd.
328 (main): Do not handle 'd' packet.
329 * server.h (debug_threads, remote_debug, monitor_output): Declare.
330 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
331 of debug_threads.
332
de7c3b4a
PA
3332007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
334
335 * Makefile.in (EXEEXT): New.
336 (clean): Use $(EXEEXT).
337
ef57601b
PA
3382007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
339
340 * target.h (target_ops): Rename send_signal to request_interrupt,
341 and remove enum target_signal parameter.
342 * linux-low.c (linux_request_interrupt): Rename from
343 linux_send_signal, and always send SIGINT.
344 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
345 and always send SIGINT.
346 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
347 of send_signal.
348 (input_interrupt): Likewise.
349
820f2bda
PA
3502007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
351
352 * server.c (get_features_xml): Check if target implemented
353 arch_string.
354 * win32-i386-low.c (win32_arch_string): New.
355 (win32_target_ops): Add win32_arch_string as arch_string member.
356
ab39bf24
UW
3572007-02-22 Markus Deuling <deuling@de.ibm.com>
358
359 * spu-low.c (spu_arch_string): New.
360 (spu_target_ops): Add spu_arch_string.
361
61ff6e04
DJ
3622007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
363
364 * remote-utils.c: Remove HAVE_TERMINAL_H check.
365 * configure.ac: Do not check for terminal.h.
366 * configure, config.in: Regenerated.
367
fb1e4ffc
DJ
3682007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
369
370 * Makefile.in (OBS): Add $(XML_BUILTIN).
371 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
372 (clean): Update.
373 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
374 (arm-with-iwmmxt.c): New.
375 * config.in, configure: Regenerate.
376 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
377 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
378 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
379 (arm*-*-linux*): Add iWMMXt and regset support.
380 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
381 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
382 (arm_store_wmmxregset, target_regsets): New.
383 * server.c (get_features_xml): Take annex argument. Check builtin
384 XML documents.
385 (handle_query): Handle multiple annexes.
386
0f48aa01
DJ
3872007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
388
389 * remote-utils.c [USE_WIN32API] (read, write): Define.
390 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
391 write.
392
23181151
DJ
3932007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
394
395 * linux-i386-low.c (the_low_target): Set arch_string.
396 * linux-x86-64-low.c (the_low_target): Likewise.
397 * linux-low.c (linux_arch_string): New.
398 (linux_target_ops): Add it.
399 * linux-low.h (struct linux_target_ops): Add arch_string.
400 * server.c (write_qxfer_response): Use const void * for DATA.
401 (get_features_xml): New.
402 (handle_query): Handle qXfer:features:read. Report it for qSupported.
403 * target.h (struct target_ops): Add arch_string method.
404
9d606399
DJ
4052007-01-03 Denis Pilat <denis.pilat@st.com>
406 Daniel Jacobowitz <dan@codesourcery.com>
407
408 * linux-low.c (linux_kill): Handle being called with no threads.
409 * win32-i386-low.c (win32_kill): Likewise.
410 (get_child_debug_event): Clear current_process_handle.
411
4122006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
413 Daniel Jacobowitz <dan@codesourcery.com>
414
415 * remote-utils.c (remote_open): Check the type of specified
416 serial port devices before opening them.
417 * server.c (main): Kill the inferior if an error occurs during
418 the first remote_open.
419
a5e13d24
DJ
4202006-12-05 Markus Deuling <deuling@de.ibm.com>
421
422 * README: Update supported targets.
423
186947f7
DJ
4242006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
425
426 * Makefile.in (clean): Remove reg-mips64.c.
427 (reg-mips64.c, reg-mips64.o): New rules.
428 * configure.srv: Handle mips64. Include regset support for mips.
429 * linux-mips-low.c (union mips_register): New.
430 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
431 (mips_breakpoint, mips_breakpoint_at): Use int.
432 (mips_collect_register, mips_supply_register)
433 (mips_collect_register_32bit, mips_supply_register_32bit)
434 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
435 (mips_store_fpregset, target_regsets): New.
436 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
437
a13e2c95
UW
4382006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
439
440 * configure.srv: Add target "spu*-*-*".
441 * Makefile.in (clean): Remove reg-spu.c.
442 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
443 * spu-low.c: New file.
444
cb7283db
DJ
4452006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
446
447 * configure.ac: Correct td_thr_tls_get_addr test.
448 * configure: Regenerated.
449
89be2091
DJ
4502006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
451
452 * linux-low.c (linux_wait_for_event): Reformat. Use the
453 pass_signals array.
454 * remote-utils.c (decode_address_to_semicolon): New.
455 * server.c (pass_signals, handle_general_set): New.
456 (handle_query): Mention QPassSignals for qSupported.
457 (main): Call handle_general_set.
458 * server.h (pass_signals, decode_address_to_semicolon): New.
459
000ef4f0
DJ
4602006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
461
462 * server.c (handle_query): Correct error handling for read_auxv.
463
b7149293
UW
4642005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
465
466 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
467 and srv_linux_thread_db to yes.
468 * linux-s390-low.c (s390_fill_gregset): New function.
469 (target_regsets): Define data structure.
470
dae5f5cf
DJ
4712006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
472
473 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
474 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
475 * config.in, configure: Regenerated.
476 * inferiors.c (gdb_id_to_thread): New function.
477 (gdb_id_to_thread_id): Use it.
478 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
479 * linux-low.h (struct process_info): Add th member.
480 (thread_db_get_tls_address): New prototype.
481 * remote-utils.c (decode_address): Make non-static.
482 * server.c (handle_query): Handle qGetTLSAddr.
483 * server.h (gdb_id_to_thread, decode_address): New prototypes.
484 * target.h (struct target_ops): Add get_tls_address.
485 * thread-db.c (maybe_attach_thread): Save the thread handle.
486 (thread_db_get_tls_address): New.
487
32ca6d61
DJ
4882006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
489
490 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
491 (linux_resume_one_process): Take a siginfo_t *. Update all
492 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
493 (struct pending_signals): Add a siginfo_t.
494 (linux_wait_for_process): Always set last_status.
495 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
496 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
497 * linux-low.h (struct process_info): Add last_status.
498
5ffff7c1
DJ
4992006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
500
501 * remote-utils.c (try_rle): New function.
502 (putpkt_binary): Use it.
503
8695c747
DJ
5042006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
505
506 * Makefile.in (clean): Clean reg-x86-64-linux.c.
507 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
508 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
509 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
510 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
511 point registers.
512
290fadea
RS
5132006-08-08 Richard Sandiford <richard@codesourcery.com>
514
515 * server.c (terminal_fd): New variable.
516 (old_foreground_pgrp): Likewise.
517 (restore_old_foreground_pgrp): New function.
518 (start_inferior): Record the terminal file descriptor in terminal_fd
519 and its original foreground group in old_foreground_pgrp. Register
520 restore_old_foreground_pgrp with atexit().
521
9f2e1e63
DJ
5222006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
523
524 * server.c (handle_query): Correct qPart to qXfer.
525
b80864fb
DJ
5262006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
527
528 * configure.ac: Check for more headers which are missing on
529 Windows. Automatically supply -lwsock32 and USE_WIN32API.
530 * configure.srv: Add Cygwin and mingw32.
531 * remote-utils.c: Don't include headers unconditionally which
532 are missing on mingw32. Include <winsock.h> for mingw32.
533 (remote_open): Adjust for mingw32 support. Flush
534 standard error after writing to it.
535 (remote_close, putpkt_binary, input_interrupt, block_async_io)
536 (unblock_async_io, enable_async_io, disable_async_io)
537 (readchar, getpkt): Update for Winsock support.
538 (prepare_resume_reply): Expect a protocol signal number.
539 * server.c: Disable <sys/wait.h> on mingw32.
540 (start_inferior): Adjust for mingw32 support. Flush
541 standard error after writing to it.
542 (attach_inferior): Likewise. Use protocol signal
543 numbers.
544 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
545 and names.
546 * win32-i386-low.c: New file.
547 * Makefile.in (XM_CLIBS): Set.
548 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
549 (win32-i386-low.o): New dependency rule.
550 * linux-low.c (linux_wait): Use target signal numbers.
551 * target.h (struct target_ops): Doc fix.
552 * server.h (target_signal_to_name): New prototype.
553 * gdbreplay.c: Don't include headers unconditionally which
554 are missing on mingw32. Include <winsock.h> for mingw32.
555 (remote_close, remote_open): Adjust for Winsock support.
556 * configure, config.in: Regenerated.
557
0876f84a
DJ
5582006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
559
560 * server.c (decode_xfer_read, write_qxfer_response): New.
561 (handle_query): Take a packet length argument. Handle
562 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
563 the qSupported response.
564 (main): Update call to handle_query.
565
01f9e8fa
DJ
5662006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
567
568 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
569 (putpkt_binary): Renamed from putpkt and adjusted for binary
570 data.
571 (putpkt): New wrapper for putpkt_binary.
572 (readchar): Don't mask off the high bit.
573 (decode_X_packet): New function.
574 * server.c (main): Call putpkt_binary if a handler sets the packet
575 length. Save the length of the incoming packet. Handle 'X'.
576 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
577
be2a5f71
DJ
5782006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
579
580 * server.c (handle_query): Handle qSupported.
581
ea025f5f
DJ
5822006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
583
584 * remote-utils.c (all_symbols_looked_up): New variable.
585 (look_up_one_symbol): Check it.
586 * server.h (look_up_one_symbol): New declaration.
587 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
588
9308fc88
DJ
5892006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
590
591 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 592 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
593 (PTRACE_GET_THREAD_AREA): Define.
594 (ps_get_thread_area): New function.
595
52fb6437
NS
5962006-05-09 Nathan Sidwell <nathan@codesourcery.com>
597
598 * configure.srv (m68k*-*-uclinux*): New target.
599 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
600 (linux_resume_one_process): Remove extraneous cast.
601 (linux_read_offsets): New.
602 (linux_target_op): Add linux_read_offsets on mmuless systems.
603 * server.c (handle_query): Add qOffsets logic.
604 * target.h (struct target_ops): Add read_offsets.
605
21b0f40c
DJ
6062006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
607
608 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
609 (PTRACE_GET_THREAD_AREA): Define.
610 (ps_get_thread_area): New function.
611 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
612 (linux-x86-64-low.o): Update.
613
0050a760
DJ
6142006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
615
616 * configure.ac: Remove checks for prfpregset_t.
617 * gdb_proc_service.h: New file.
618 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
619 new "gdb_proc_service.h".
620 * proc-service.c: Likewise.
621 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
622 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
623 * Makefile.in (gdb_proc_service_h): Updated.
624 * configure, config.in: Regenerated.
625
b92a518e
DJ
6262006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
627
628 * remote-utils.c (prepare_resume_reply): Move declaration
629 of gdb_id_from_wait to the top of the block.
630
545587ee
DJ
6312006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
632
633 * linux-low.c (regsets_store_inferior_registers): Read the regset
634 from the target before filling it.
635
9db87ebd
DJ
6362006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
637
638 * server.c (attach_inferior): Return SIGTRAP for a successful
639 attach.
640
dd24457d
DJ
6412006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
642
643 * Makefile.in (OBS): Add version.o.
644 (STAGESTUFF): Delete.
645 (version.o): Add dependencies.
646 (version.c): Replace rule.
647 (clean): Remove version.c.
648 * server.c (gdbserver_version): New.
649 (gdbserver_usage): Use printf.
650 (main): Handle --version and --help.
651 * server.h (version, host_name): Add declarations.
652
6f0f660e
EZ
6532005-12-23 Eli Zaretskii <eliz@gnu.org>
654
655 * linux-arm-low.c:
656 * linux-arm-low.c:
657 * inferiors.c:
658 * i387-fp.h:
659 * i387-fp.c:
660 * gdbreplay.c:
661 * regcache.c:
662 * proc-service.c:
663 * mem-break.h:
664 * mem-break.c:
665 * linux-x86-64-low.c:
666 * linux-sh-low.c:
667 * linux-s390-low.c:
668 * linux-ppc64-low.c:
669 * linux-ppc-low.c:
670 * linux-mips-low.c:
671 * linux-m68k-low.c:
672 * linux-m32r-low.c:
673 * linux-low.h:
674 * linux-low.c:
675 * linux-ia64-low.c:
676 * linux-i386-low.c:
677 * linux-crisv32-low.c:
678 * thread-db.c:
679 * terminal.h:
680 * target.h:
681 * target.c:
682 * server.h:
683 * server.c:
684 * remote-utils.c:
685 * regcache.h:
686 * utils.c:
687 * Makefile.in:
688 * configure.ac:
689 * gdbserver.1: Add (C) after Copyright. Update the FSF
690 address.
691
9d1fb177
DJ
6922005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
693
694 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
695 (arm_breakpoint_at): Recognize both breakpoints.
696 (the_low_target): Use the correct breakpoint instruction.
697
011a70c2
DJ
6982005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
699
700 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
701 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
702 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
703 (the_low_target): Update.
704
7fb85e41
AS
7052005-10-25 Andreas Schwab <schwab@suse.de>
706
707 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
708
709 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
710 (ia64_num_regs): Reduce to 462.
711
3db0444b
DJ
7122005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
713
714 * acinclude.m4: Correct quoting.
715 * aclocal.m4: Regenerated.
716
717 Suggested by SZOKOVACS Robert <szo@ies.hu>:
718 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
719 (thread_db_init): Call thread_db_err_str.
720 * configure.ac: Check for TD_VERSION.
721 * config.in, configure: Regenerated.
722
bee0189a
DJ
7232005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
724
725 * server.h (error, fatal, warning): Add ATTR_FORMAT.
726
e9d25b98
DJ
7272005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
728
729 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
730 is not available. Define HAVE_PTRACE_GETREGS if it is.
731 * config.in, configure: Regenerated.
732 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
733 * linux-i386-low.c, linux-m68k-low.c: Update to use
734 HAVE_PTRACE_GETREGS.
735 * linux-low.c (regsets_fetch_inferior_registers)
736 (regsets_store_inferior_registers): Only return 0 if we processed
737 GENERAL_REGS.
738 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
739 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
740
a06660f7
DJ
7412005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
742
743 * inferiors.c (struct thread_info): Add gdb_id.
744 (add_thread): Add gdb_id argument.
745 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
746 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
747 calls to add_thread.
748 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
749 * server.c (handle_query): Use thread_to_gdb_id.
750 (handle_v_cont, main): Use gdb_id_to_thread_id.
751 * server.h (add_thread): Update prototype.
752 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
753 prototypes.
754
5a1f5858
DJ
7552005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
756
757 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
758 left-padded registers.
759 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
760 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
761
e122f1f5
SE
7622005-07-01 Steve Ellcey <sje@cup.hp.com>
763
764 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
765 * configure: Regenerate.
766 * config.in: Regenerate.
767 * server.h (NEED_DECLARATION_STRERROR):
768 Replace with !HAVE_DECL_STRERROR.
769
d592fa2f
DJ
7702005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
771
772 * linux-low.c (linux_wait, linux_send_signal): Don't test
773 an unsigned long variable for > 0 if it could be MAX_ULONG.
774 * server.c (myresume): Likewise.
775 * target.c (set_desired_inferior): Likewise.
776
ccbd4912
MK
7772005-06-13 Mark Kettenis <kettenis@gnu.org>
778
779 * configure.ac: Simplify and improve check for socklen_t.
780 * configure, config.in: Regenerate.
781
f450004a
DJ
7822005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
783
784 * acconfig.h: Remove.
785 * configure.ac: Add a test for socklen_t. Use three-argument
786 AC_DEFINE throughout.
787 * config.in: Regenerated using autoheader 2.59.
788 * configure: Regenerated.
789
790 * gdbreplay.c (socklen_t): Provide a default.
791 (remote_open): Use socklen_t.
792 * remote-utils.c (socklen_t): Provide a default.
793 (remote_open): Use socklen_t.
794 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
795 unsigned char.
796
797 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
798 char for buffers.
799 * linux-low.c (linux_read_memory, linux_write_memory)
800 (linux_read_auxv): Likewise.
801 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
802 (check_mem_write): Likewise.
803 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
804 Likewise.
805 * regcache.c (struct inferior_rgcache_data, registers_to_string)
806 (registers_from_string, register_data): Likewise.
807 * server.c (handle_query, main): Likewise.
808 * server.h (convert_ascii_to_int, convert_int_to_ascii)
809 (decode_M_packet): Likewise.
810 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
811 * target.h (struct target_ops): Update read_memory, write_memory,
812 and read_auxv.
813 (read_inferior_memory, write_inferior_memory): Update.
814 * linux-low.h (struct linux_target_ops): Change type of breakpoint
815 to unsigned char *.
816 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
817 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
818 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
819 linux-s390-low.c, linux-sh-low.c: Update for changes in
820 read_inferior_memory and the_low_target->breakpoint.
821
eee84df1
DJ
8222005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
823
824 * Makefile.in (SFILES): Add linux-ppc64-low.c.
825 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
826 * configure.srv: Add powerpc64-*-linux*.
827 * linux-ppc64-low.c: New file.
828
45b134e5
OF
8292005-05-23 Orjan Friberg <orjanf@axis.com>
830
831 * linux-cris-low.c: New file with support for CRIS.
832 * linux-crisv32-low.c: Ditto for CRISv32.
833 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
834 (clean): Add reg-cris.c and reg-crisv32.c.
835 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
836 reg-crisv32.o, and reg-crisv32.c to make rules.
837 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
838 recognized targets.
839
48d93c75
UW
8402005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
841
842 * linux-low.c (fetch_register): Ensure buffer size is a multiple
843 of sizeof (PTRACE_XFER_TYPE).
844 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
845
e013ee27
OF
8462005-05-12 Orjan Friberg <orjanf@axis.com>
847
848 * target.h (struct target_ops): Add insert_watchpoint,
849 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
850 pointers for hardware watchpoint support.
851 * linux-low.h (struct linux_target_ops): Ditto.
852 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
853 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
854 to linux_target_ops.
855 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
856 reply packet.
857 * server.c (main): Recognize 'Z' and 'z' packets.
858
b0ded00b
UW
8592005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
860
861 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
862 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
863 (the_low_target): Add new members.
864
8643e2ad
DJ
8652005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
866
867 * proc-service.c (ps_lgetregs): Search all_processes instead of
868 all_threads.
869
fc620387
DJ
8702005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
871
872 * server.c (start_inferior): Change return type to int.
873 (attach_inferior): Change sigptr to int *.
874 (handle_v_cont, handle_v_requests): Change signal to int *.
875 (main): Change signal to int.
876
8772005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
878
879 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
880 * configure.srv: Add m32r*-*-linux*.
881 * linux-m32r-low.c: New file.
882
e0e76420
DJ
8832005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
884
885 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
886
a1928bad
DJ
8872005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
888
889 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
890 Take unsigned long arguments for PIDs.
891 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
892 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
893 (wait_for_sigstop, linux_resume_one_process)
894 (regsets_fetch_inferior_registers, linux_send_signal)
895 (linux_read_auxv): Likewise. Update the types of variables holding
896 PIDs. Update format string specifiers.
897 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
898 * remote-utils.c (prepare_resume_reply): Likewise.
899 * server.c (cont_thread, general_thread, step_thread)
900 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
901 unsigned long.
902 (handle_query): Update format specifiers.
903 (handle_v_cont, main): Use strtoul for thread IDs.
904 * server.h (struct inferior_list_entry): Use unsigned long for ID.
905 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
906 (general_thread, step_thread, thread_from_wait)
907 (old_thread_from_wait): Update.
908 * target.h (struct thread_resume): Use unsigned long for THREAD.
909 (struct target_ops): Use unsigned long for arguments to attach and
910 thread_alive.
911
dcdb98d2
DJ
9122005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
913
914 * acinclude.m4: Include bfd/bfd.m4 directly.
915 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
916 <agriffis@toolchain.org>.
917 * aclocal.m4, configure: Regenerated.
918
bec39cab
AC
9192005-01-07 Andrew Cagney <cagney@gnu.org>
920
921 * configure.ac: Rename configure.in, require autoconf 2.59.
922 * configure: Re-generate.
923
434c4c77
DJ
9242004-12-08 Daniel Jacobowitz <dan@debian.org>
925
926 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
927 LIBS when finished.
928 * aclocal.m4: Regenerated.
929 * configure: Regenerated.
930
db1d3e1b
AS
9312004-11-21 Andreas Schwab <schwab@suse.de>
932
933 * linux-m68k-low.c (m68k_num_gregs): Define.
934 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
935 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
936 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
937 (m68k_breakpoint_at): New. Add to the_low_target.
938
939 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
940 srv_linux_thread_db to yes.
941
43360365
JB
9422004-10-20 Joel Brobecker <brobecker@gnat.com>
943
944 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
945 (ARCH_SET_FS): Likewise.
946 (ARCH_GET_FS): Likewise.
947 (ARCH_GET_GS): Likewise.
948
fd500816
DJ
9492004-10-16 Daniel Jacobowitz <dan@debian.org>
950
951 * linux-i386-low.c (ps_get_thread_area): New.
952 * linux-x86-64-low.c (ps_get_thread_area): New.
953 * linux-low.c: Include <sys/syscall.h>.
954 (linux_kill_one_process): Don't kill the first thread here.
955 (linux_kill): Kill the first thread here.
956 (kill_lwp): New function.
957 (send_sigstop, linux_send_signal): Use it.
958 * proc-service.c: Clean up #ifdefs.
959 (fpregset_info): Delete.
960 (ps_lgetregs): Update and enable implementation.
961 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
962 implementations.
963 * remote-utils.c (struct sym_cache, symbol_cache): New.
964 (input_interrupt): Print a clearer message.
965 (async_io_enabled): New variable.
966 (enable_async_io, disable_async_io): Use it. Update comments.
967 (look_up_one_symbol): Use the symbol cache.
968 * thread-db.c (thread_db_look_up_symbols): New function.
969 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
970
f6de3c42
DJ
9712004-10-16 Daniel Jacobowitz <dan@debian.org>
972
973 * configure.in: Test for -rdynamic.
974 * configure: Regenerated.
975 * Makefile (INTERNAL_LDFLAGS): New.
976 (gdbserver, gdbreplay): Use it.
977
2c0fc042
AC
9782004-09-02 Andrew Cagney <cagney@gnu.org>
979
980 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
981
075b3282
DJ
9822004-03-23 Daniel Jacobowitz <drow@mvista.com>
983
984 * linux-low.c (linux_wait): Clear all_processes list also.
985
fa6a77dc
DJ
9862004-03-12 Daniel Jacobowitz <drow@mvista.com>
987
988 * linux-low.c: Include <errno.h>. Remove extern declaration of
989 errno.
990
6d782a97
DJ
9912004-03-12 Daniel Jacobowitz <drow@mvista.com>
992
993 * gdbreplay.c, server.h, utils.c: Update copyright years.
994
3a7fb99b
DJ
9952004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
996
997 * server.c (main): Print child status or termination signal from
998 variable 'signal', not 'sig'.
999
c3e735a6
DJ
10002004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
1001
1002 * linux-low.c (linux_read_memory): Change return type to
1003 int. Check for and return error from ptrace().
1004 * target.c (read_inferior_memory): Change return type to int. Pass
1005 back return status from the_target->read_memory().
1006 * target.h (struct target_ops): Adapt *read_memory() prototype.
1007 Update comment.
1008 (read_inferior_memory): Adapt prototype.
1009 * server.c (main): Return an error packet if
1010 read_inferior_memory() returns an error.
1011
a59d1c82
DJ
10122004-03-04 Daniel Jacobowitz <drow@mvista.com>
1013
1014 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
1015 Unify with other clean targets.
1016
dc3f8883
DJ
10172004-02-29 Daniel Jacobowitz <drow@mvista.com>
1018
1019 * server.c (handle_v_cont): Call set_desired_inferior.
1020
89a208da
DJ
10212004-02-29 Daniel Jacobowitz <drow@mvista.com>
1022
1023 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
1024
62ea82f5
DJ
10252004-02-29 Daniel Jacobowitz <drow@mvista.com>
1026
1027 * linux-low.c (linux_wait): Unblock async I/O.
1028 (linux_resume): Block and enable async I/O.
1029 * remote-utils.c (block_async_io, unblock_async_io): New functions.
1030 * server.h (block_async_io, unblock_async_io): Add prototypes.
1031
6910d122
DJ
10322004-02-29 Daniel Jacobowitz <drow@mvista.com>
1033
1034 * remote-utils.c (remote_open): Print a status notice after
1035 opening a TCP port.
1036 * server.c (attach_inferior): Print a status notice after
1037 attaching.
1038
10392004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
1040
1041 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
1042
c89dc5d4
DJ
10432004-02-26 Daniel Jacobowitz <drow@mvista.com>
1044
1045 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
1046 error packet.
1047 * server.c, target.h: Update copyright years.
1048
4b8dad4a
RM
10492004-02-25 Roland McGrath <roland@redhat.com>
1050
1051 * target.h (struct target_ops): New member `read_auxv'.
1052 * server.c (handle_query): Handle qPart:auxv:read: query using that.
1053 * linux-low.c (linux_read_auxv): New function.
1054 (linux_target_ops): Initialize `read_auxv' member to that.
1055
d7446758
JB
10562004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1057
1058 Committed by Jim Blandy <jimb@redhat.com>.
1059
1060 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 1061 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
1062 instead of GPR_SIZE to distiguish s390 and s390x targets.
1063
5544ad89
DJ
10642004-01-31 Daniel Jacobowitz <drow@mvista.com>
1065
1066 * linux-low.c: Update copyright year.
1067 (check_removed_breakpoint): Clear pending_is_breakpoint.
1068 (linux_set_resume_request, linux_queue_one_thread)
1069 (resume_status_pending_p): New functions.
1070 (linux_continue_one_thread): Use process->resume.
1071 (linux_resume): Only resume threads if there are no pending events.
1072 * linux-low.h (struct process_info): Add resume request
1073 pointer.
1074
2a68b70e
DJ
10752004-01-30 Daniel Jacobowitz <drow@mvista.com>
1076
1077 * regcache.c (new_register_cache): Clear the allocated register
1078 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1079
64386c31
DJ
10802003-10-13 Daniel Jacobowitz <drow@mvista.com>
1081
1082 * linux-low.c (linux_resume): Take a struct thread_resume *
1083 argument.
1084 (linux_wait): Update call.
1085 (resume_ptr): New static variable.
1086 (linux_continue_one_thread): Renamed from
1087 linux_continue_one_process. Use resume_ptr.
1088 (linux_resume): Use linux_continue_one_thread.
1089 * server.c (handle_v_cont, handle_v_requests): New functions.
1090 (myresume): New function.
1091 (main): Handle 'v' case.
1092 * target.h (struct thread_resume): New type.
1093 (struct target_ops): Change argument of "resume" to struct
1094 thread_resume *.
1095 (myresume): Delete macro.
1096
c938e9b0
L
10972003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1098
1099 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
1100 (uninstall): Support DESTDIR.
1101
7f313d07
BC
1102Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
1103
1104 * configure.srv: Add xscale*linux copy of arm*linux entry.
1105
3b2fc2ea
DJ
11062003-07-24 Daniel Jacobowitz <drow@mvista.com>
1107
1108 * linux-arm-low.c (arm_reinsert_addr): New function.
1109 (the_low_target): Add arm_reinsert_addr.
1110
1c0a559e
MK
11112003-07-08 Mark Kettenis <kettenis@gnu.org>
1112
1113 * mem-break.c: Remove whitespace at end of file.
1114
43d5792c
DJ
11152003-06-28 Daniel Jacobowitz <drow@mvista.com>
1116
1117 * configure.in: Check whether we need to prototype strerror.
1118 * server.h: Optionally prototype strerror.
1119 * gdbreplay.c (perror_with_name): Use strerror.
1120 * linux-low.c (linux_attach_lwp): Use strerror.
1121 * utils.c (perror_with_name): Use strerror.
1122 * config.in, configure: Regenerated.
1123
c8a86edf
DJ
11242003-06-28 Daniel Jacobowitz <drow@mvista.com>
1125
1126 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
1127 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
1128
73d37363
DJ
11292003-06-20 Daniel Jacobowitz <drow@mvista.com>
1130
1131 * Makefile.in (SFILES): Update.
1132 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
1133 low-sun3.c: Remove files.
1134
6ad8ae5c
DJ
11352003-06-17 Daniel Jacobowitz <drow@mvista.com>
1136
1137 * linux-low.c: Move comment to linux_thread_alive where it belonged.
1138 (linux_detach_one_process, linux_detach): New functions.
1139 (linux_target_ops): Add linux_detach.
1140 * server.c (main): Handle 'D' packet.
1141 * target.h (struct target_ops): Add "detach" member.
1142 (detach_inferior): Define.
1143
1581182a
MK
11442003-06-13 Mark Kettenis <kettenis@gnu.org>
1145
1146 From Kelley Cook <kelleycook@wideopenwest.com>:
1147 * configure.srv: Accept i[34567]86 variants.
1148
e5379b03
DJ
11492003-06-05 Daniel Jacobowitz <drow@mvista.com>
1150
1151 * linux-low.c (linux_wait_for_event): Correct comment typos.
1152 (linux_resume_one_process): Call check_removed_breakpoint.
1153 (linux_send_signal): New function.
1154 (linux_target_ops): Add linux_send_signal.
1155 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
1156 of kill.
1157 * target.h (struct target_ops): Add send_signal.
1158
2ff29de4
JB
11592003-05-29 Jim Blandy <jimb@redhat.com>
1160
1161 * linux-low.c (usr_store_inferior_registers): Transfer buf in
1162 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
1163 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
1164 away part of the register's value.
1165
254787d4
DJ
11662003-03-26 Daniel Jacobowitz <drow@mvista.com>
1167
1168 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
1169 (linux_wait_for_event, linux_init_signals): Likewise.
1170
94e10508
DJ
11712003-03-17 Daniel Jacobowitz <drow@mvista.com>
1172
1173 * configure.in: Check for stdlib.h.
1174 * configure: Regenerated.
1175 * config.in: Regenerated.
1176
4c0711e0
DJ
11772003-01-04 Andreas Schwab <schwab@suse.de>
1178
1179 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
1180
ef66e766
AC
11812003-01-02 Andrew Cagney <ac131313@redhat.com>
1182
1183 * Makefile.in: Remove obsolete code.
1184
a1358604
DJ
11852002-11-20 Daniel Jacobowitz <drow@mvista.com>
1186
1187 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
1188 defined(PT_FPR0_HI).
1189
23ce3b1c
DJ
11902002-11-17 Stuart Hughes <seh@zee2.com>
1191
1192 * linux-arm-low.c (arm_num_regs): Increase.
1193 (arm_regmap): Include status register.
1194
11952002-11-17 Daniel Jacobowitz <drow@mvista.com>
1196
1197 * linux-low.c (register_addr): Remove incorrect -1 check.
1198
a9fa9f7d
DJ
11992002-08-29 Daniel Jacobowitz <drow@mvista.com>
1200
1201 * linux-low.c (linux_create_inferior): Call setpgid. Return
1202 the new PID.
1203 (unstopped_p, linux_signal_pid): Remove.
1204 (linux_target_ops): Remove linux_signal_pid.
1205 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
1206 global instead of target method.
1207 * target.h (struct target_ops): Remove signal_pid. Update comment
1208 for create_inferior.
1209 * server.c (signal_pid): New variable.
1210 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 1211 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
1212 (attach_inferior): Set signal_pid.
1213
17574093
DJ
12142002-08-23 Daniel Jacobowitz <drow@mvista.com>
1215
1216 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
1217
12182002-08-20 Jim Blandy <jimb@redhat.com>
1219
1220 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1221 default for this.
1222
12232002-08-01 Andrew Cagney <cagney@redhat.com>
1224
1225 * Makefile.in: Make chill references obsolete.
1226
12272002-07-24 Kevin Buettner <kevinb@redhat.com>
1228
1229 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1230 * configure: Regenerate.
1231 * config.in: Regenerate.
1232
12332002-07-09 David O'Brien <obrien@FreeBSD.org>
1234
1235 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1236 (perror_with_name, remote_close, remote_open, expect, play): Static.
1237
12382002-07-04 Michal Ludvig <mludvig@suse.cz>
1239
4b8dad4a 1240 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
1241 byte offsets instead of an array of indexes.
1242 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
1243
12442002-06-13 Daniel Jacobowitz <drow@mvista.com>
1245
1246 * regcache.c: Add comment.
1247
12482002-06-11 Daniel Jacobowitz <drow@mvista.com>
1249
1250 * thread-db.c: New file.
1251 * proc-service.c: New file.
1252 * acinclude.m4: New file.
1253 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
1254 proc-service.o, and thread-db.o.
1255 (linux-low.o): Add USE_THREAD_DB.
1256 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
1257 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
1258 * aclocal.m4: Regenerated.
1259 * config.in: Regenerated.
1260 * configure: Regenerated.
1261 * configure.in: Check for proc_service.h, sys/procfs.h,
1262 thread_db.h, and linux/elf.h headrs.
1263 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
1264 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
1265 Check for -lthread_db and thread support.
1266 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
1267 PowerPC, and SuperH.
1268 * i387-fp.c: Constify arguments.
1269 * i387-fp.h: Likewise.
1270 * inferiors.c: (struct thread_info): Renamed from
1271 `struct inferior_info'. Remove PID member. Use generic inferior
1272 list header. All uses updated.
1273 (inferiors, signal_pid): Removed.
1274 (all_threads): New variable.
1275 (get_thread): Define.
1276 (add_inferior_to_list): New function.
1277 (for_each_inferior): New function.
1278 (change_inferior_id): New function.
1279 (add_inferior): Removed.
1280 (remove_inferior): New function.
1281 (add_thread): New function.
1282 (free_one_thread): New function.
1283 (remove_thread): New function.
1284 (clear_inferiors): Use for_each_inferior and free_one_thread.
1285 (find_inferior): New function.
1286 (find_inferior_id): New function.
1287 (inferior_target_data): Update argument type.
1288 (set_inferior_target_data): Likewise.
1289 (inferior_regcache_data): Likewise.
1290 (set_inferior_regcache_data): Likewise.
1291 * linux-low.c (linux_bp_reinsert): Remove.
1292 (all_processes, stopping_threads, using_thrads)
1293 (struct pending_signals, debug_threads, pid_of): New.
1294 (inferior_pid): Replace with macro.
1295 (struct inferior_linux_data): Remove.
1296 (get_stop_pc, add_process): New functions.
1297 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
1298 Use add_process and add_thread.
1299 (linux_attach_lwp): New function, based on old linux_attach. Use
1300 add_process and add_thread. Set stop_expected for new threads.
1301 (linux_attach): New function.
1302 (linux_kill_one_process): New function.
1303 (linux_kill): Kill all LWPs.
1304 (linux_thread_alive): Use find_inferior_id.
1305 (check_removed_breakpoints, status_pending_p): New functions.
1306 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
1307 Update. Use WNOHANG. Wait for cloned processes also. Update process
1308 struct for the found process.
1309 (linux_wait_for_event): New function.
1310 (linux_wait): Use it. Support LWPs.
1311 (send_sigstop, wait_for_sigstop, stop_all_processes)
1312 (linux_resume_one_process, linux_continue_one_process): New functions.
1313 (linux_resume): Support LWPs.
1314 (REGISTER_RAW_SIZE): Remove.
1315 (fetch_register): Use register_size instead. Call supply_register.
1316 (usr_store_inferior_registers): Likewise. Call collect_register.
1317 Fix recursive case.
1318 (regsets_fetch_inferior_registers): Improve error message.
1319 (regsets_store_inferior_registers): Add debugging.
1320 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
1321 (unstopped_p, linux_signal_pid): New functions.
1322 (linux_target_ops): Add linux_signal_pid.
1323 (linux_init_signals): New function.
1324 (initialize_low): Call it. Initialize using_threads.
1325 * regcache.c (inferior_regcache_data): Add valid
1326 flag.
1327 (get_regcache): Fetch registers lazily. Add fetch argument
1328 and update all callers.
1329 (regcache_invalidate_one, regcache_invalidate): New
1330 functions.
1331 (new_register_cache): Renamed from create_register_cache.
1332 Return the new regcache.
1333 (free_register_cache): Change argument to a void *.
1334 (registers_to_string, registers_from_string): Call get_regcache
1335 with fetch flag set.
1336 (register_data): Make static. Pass fetch flag to get_regcache.
1337 (supply_register): Call get_regcache with fetch flag clear.
1338 (collect_register): Call get_regcache with fetch flag set.
1339 (collect_register_as_string): New function.
1340 * regcache.h: Update.
1341 * remote-utils.c (putpkt): Flush after debug output and use
1342 stderr.
1343 Handle input interrupts while waiting for an ACK.
1344 (input_interrupt): Use signal_pid method.
1345 (getpkt): Flush after debug output and use stderr.
1346 (outreg): Use collect_register_as_string.
1347 (new_thread_notify, dead_thread_notify): New functions.
1348 (prepare_resume_reply): Check using_threads. Set thread_from_wait
1349 and general_thread.
1350 (look_up_one_symbol): Flush after debug output.
1351 * server.c (step_thread, server_waiting): New variables.
1352 (start_inferior): Don't use signal_pid. Update call to mywait.
1353 (attach_inferior): Update call to mywait.
1354 (handle_query): Handle qfThreadInfo and qsThreadInfo.
1355 (main): Don't fetch/store registers explicitly. Use
1356 set_desired_inferior. Support proposed ``Hs'' packet. Update
1357 calls to mywait.
1358 * server.h: Update.
1359 (struct inferior_list, struct_inferior_list_entry): New.
1360 * target.c (set_desired_inferior): New.
1361 (write_inferior_memory): Constify.
1362 (mywait): New function.
1363 * target.h: Update.
1364 (struct target_ops): New signal_pid method.
1365 (mywait): Removed macro, added prototype.
1366
1367 * linux-low.h (regset_func): Removed.
1368 (regset_fill_func, regset_store_func): New.
1369 (enum regset_type): New.
1370 (struct regset_info): Add type field. Use new operation types.
1371 (struct linux_target_ops): stop_pc renamed to get_pc.
1372 Add decr_pc_after_break and breakpoint_at.
1373 (get_process, get_thread_proess, get_process_thread)
1374 (strut process_info, all_processes, linux_attach_lwp)
1375 (thread_db_init): New.
1376
1377 * linux-arm-low.c (arm_get_pc, arm_set_pc,
1378 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
1379 (the_low_target): Add new members.
1380 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
1381 (i386_store_fpxregset): Constify.
1382 (target_regsets): Add new kind identifier.
1383 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
1384 (i386_set_pc): Add debugging.
1385 (i386_breakpoint_at): New function.
1386 (the_low_target): Add new members.
1387 * linux-mips-low.c (mips_get_pc, mips_set_pc)
1388 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
1389 (mips_breakpoint_at): New.
1390 (the_low_target): Add new members.
1391 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
1392 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
1393 (the_low_target): Add new members.
1394 * linux-sh-low.c (sh_get_pc, sh_set_pc)
1395 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
1396 (the_low_target): Add new members.
1397 * linux-x86-64-low.c (target_regsets): Add new kind
1398 identifier.
1399
14002002-05-15 Daniel Jacobowitz <drow@mvista.com>
1401
1402 From Martin Pool <mbp@samba.org>:
1403 * server.c (gdbserver_usage): New function.
1404 (main): Call it.
1405
14062002-05-14 Daniel Jacobowitz <drow@mvista.com>
1407
1408 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
1409 stop_at -> stop_pc.
1410
14112002-05-04 Andrew Cagney <ac131313@redhat.com>
1412
1413 * Makefile.in: Remove obsolete code.
1414
14152002-04-24 Michal Ludvig <mludvig@suse.cz>
1416
1417 * linux-low.c (regsets_fetch_inferior_registers),
1418 (regsets_store_inferior_registers): Removed cast to int from
1419 ptrace() calls.
1420 * regcache.h: Added declaration of struct inferior_info.
1421
14222002-04-20 Daniel Jacobowitz <drow@mvista.com>
1423
1424 * inferiors.c (struct inferior_info): Add regcache_data.
1425 (add_inferior): Call create_register_cache.
1426 (clear_inferiors): Call free_register_cache.
1427 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1428 * regcache.c (struct inferior_regcache_data): New.
1429 (registers): Remove.
1430 (get_regcache): New function.
1431 (create_register_cache, free_register_cache): New functions.
1432 (set_register_cache): Don't initialize the register cache here.
1433 (registers_to_string, registers_from_string, register_data): Call
1434 get_regcache.
1435 * regcache.h: Add prototypes.
1436 * server.h: Likewise.
1437
14382002-04-20 Daniel Jacobowitz <drow@mvista.com>
1439
1440 * mem-break.c: New file.
1441 * mem-break.h: New file.
1442 * Makefile.in: Add mem-break.o rule; update server.h
1443 dependencies.
1444 * inferiors.c (struct inferior_info): Add target_data
1445 member.
1446 (clear_inferiors): Free target_data member if set.
1447 (inferior_target_data, set_inferior_target_data): New functions.
1448 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1449 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1450 * linux-low.c (linux_bp_reinsert): New variable.
1451 (struct inferior_linux_data): New.
1452 (linux_create_inferior): Use set_inferior_target_data.
1453 (linux_attach): Likewise. Call add_inferior.
1454 (linux_wait_for_one_inferior): New function.
1455 (linux_wait): Call it.
1456 (linux_write_memory): Add const.
1457 (initialize_low): Call set_breakpoint_data.
1458 * linux-low.h (struct linux_target_ops): Add breakpoint
1459 handling members.
1460 * server.c (attach_inferior): Remove extra add_inferior
1461 call.
1462 * server.h: Include mem-break.h. Update inferior.c
1463 prototypes.
1464 * target.c (read_inferior_memory)
1465 (write_inferior_memory): New functions.
1466 * target.h (read_inferior_memory)
1467 (write_inferior_memory): Change macros to prototypes.
1468 (struct target_ops): Update comments. Add const to write_memory
1469 definition.
1470
14712002-04-11 Daniel Jacobowitz <drow@mvista.com>
1472
1473 * linux-low.c (usr_store_inferior_registers): Support
1474 registers which are allowed to fail to store.
1475 * linux-low.h (linux_target_ops): Likewise.
1476 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
1477 (ppc_cannot_store_register): FPSCR may not be storable.
1478
14792002-04-09 Daniel Jacobowitz <drow@mvista.com>
1480
1481 * server.h: Include <string.h> if HAVE_STRING_H.
1482 * ChangeLog: Correct paths in last ChangeLog entry.
1483
14842002-04-09 Daniel Jacobowitz <drow@mvista.com>
1485
1486 * linux-low.h: Remove obsolete prototypes.
1487 (struct linux_target_ops): New.
1488 (extern the_low_target): New.
1489 * linux-low.c (num_regs, regmap): Remove declarations.
1490 (register_addr): Use the_low_target explicitly.
1491 (fetch_register): Likewise.
1492 (usr_fetch_inferior_registers): Likewise.
1493 (usr_store_inferior_registers): Likewise.
1494 * linux-arm-low.c (num_regs): Remove.
1495 (arm_num_regs): Define.
1496 (arm_regmap): Renamed from regmap, made static.
1497 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1498 made static.
1499 (arm_cannot_store_register): Renamed from cannot_store_register,
1500 made static.
1501 (the_low_target): New.
1502 * linux-i386-low.c (num_regs): Remove.
1503 (i386_num_regs): Define.
1504 (i386_regmap): Renamed from regmap, made static.
1505 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1506 made static.
1507 (i386_cannot_store_register): Renamed from cannot_store_register,
1508 made static.
1509 (the_low_target): New.
1510 * linux-ia64-low.c (num_regs): Remove.
1511 (ia64_num_regs): Define.
1512 (ia64_regmap): Renamed from regmap, made static.
1513 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1514 made static.
1515 (ia64_cannot_store_register): Renamed from cannot_store_register,
1516 made static.
1517 (the_low_target): New.
1518 * linux-m68k-low.c (num_regs): Remove.
1519 (m68k_num_regs): Define.
1520 (m68k_regmap): Renamed from regmap, made static.
1521 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1522 made static.
1523 (m68k_cannot_store_register): Renamed from cannot_store_register,
1524 made static.
1525 (the_low_target): New.
1526 * linux-mips-low.c (num_regs): Remove.
1527 (mips_num_regs): Define.
1528 (mips_regmap): Renamed from regmap, made static.
1529 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1530 made static.
1531 (mips_cannot_store_register): Renamed from cannot_store_register,
1532 made static.
1533 (the_low_target): New.
1534 * linux-ppc-low.c (num_regs): Remove.
1535 (ppc_num_regs): Define.
1536 (ppc_regmap): Renamed from regmap, made static.
1537 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1538 made static.
1539 (ppc_cannot_store_register): Renamed from cannot_store_register,
1540 made static.
1541 (the_low_target): New.
1542 * linux-s390-low.c (num_regs): Remove.
1543 (s390_num_regs): Define.
1544 (s390_regmap): Renamed from regmap, made static.
1545 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1546 made static.
1547 (s390_cannot_store_register): Renamed from cannot_store_register,
1548 made static.
1549 (the_low_target): New.
1550 * linux-sh-low.c (num_regs): Remove.
1551 (sh_num_regs): Define.
1552 (sh_regmap): Renamed from regmap, made static.
1553 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1554 made static.
1555 (sh_cannot_store_register): Renamed from cannot_store_register,
1556 made static.
1557 (the_low_target): New.
1558 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1559 (the_low_target): New.
1560
15612002-04-09 Daniel Jacobowitz <drow@mvista.com>
1562
1563 * Makefile.in: Add stamp-h target.
1564 * configure.in: Create stamp-h.
1565 * configure: Regenerated.
1566
15672002-04-09 Daniel Jacobowitz <drow@mvista.com>
1568
1569 * inferiors.c: New file.
1570 * target.c: New file.
1571 * target.h: New file.
1572 * Makefile.in: Add target.o and inferiors.o. Update
1573 dependencies.
1574 * linux-low.c (inferior_pid): New static variable,
1575 moved from server.c.
1576 (linux_create_inferior): Renamed from create_inferior.
1577 Call add_inferior. Return 0 on success instead of a PID.
1578 (linux_attach): Renamed from myattach.
1579 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1580 (linux_thread_alive): Renamed from mythread_alive.
1581 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1582 child dies.
1583 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1584 (regsets_store_inferior_registers): Correct error message.
1585 Add missing ``return 0''.
1586 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1587 (linux_store_registers): Renamed from store_inferior_registers.
1588 (linux_read_memory): Renamed from read_inferior_memory.
1589 (linux_write_memory): Renamed from write_inferior_memory.
1590 (linux_target_ops): New structure.
1591 (initialize_low): Call set_target_ops ().
1592 * remote-utils.c (unhexify): New function.
1593 (hexify): New function.
1594 (input_interrupt): Send signals to ``signal_pid''.
1595 * server.c (inferior_pid): Remove.
1596 (start_inferior): Update create_inferior call.
1597 (attach_inferior): Call add_inferior.
1598 (handle_query): New function.
1599 (main): Call handle_query for `q' packets.
1600 * server.h: Include "target.h". Remove obsolete prototypes.
1601 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1602
16032002-04-09 Daniel Jacobowitz <drow@mvista.com>
1604
1605 * Makefile.in: Add WARN_CFLAGS. Update configury
1606 dependencies.
1607 * configure.in: Check for <string.h>
1608 * configure: Regenerate.
1609 * config.in: Regenerate.
1610 * gdbreplay.c: Include needed system headers.
1611 (remote_open): Remove strchr prototype.
1612 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1613 * regcache.c (supply_register): Change buf argument to const void *.
1614 (supply_register_by_name): Likewise.
1615 (collect_register): Change buf argument to void *.
1616 (collect_register_by_name): Likewise.
1617 * regcache.h: Add missing prototypes.
1618 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1619 * server.c (handle_query): New function.
1620 (attached): New static variable, moved out of main.
1621 (main): Quiet longjmp clobber warnings.
1622 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1623 * utils.c (error): Remove NORETURN.
1624 (fatal): Likewise.