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