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