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