]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/gdbserver/ChangeLog
from Mat Hostetter <mat@lcs.mit.edu>
[thirdparty/binutils-gdb.git] / gdb / gdbserver / ChangeLog
1 2007-02-26 Mat Hostetter <mat@lcs.mit.edu>
2
3 * remote-utils.c (remote_open): Print out the assigned port number.
4
5 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6
7 * remote-utils.c (monitor_output): New function.
8 * server.c (debug_threads): Define here.
9 (monitor_show_help): New function.
10 (handle_query): Handle qRcmd.
11 (main): Do not handle 'd' packet.
12 * server.h (debug_threads, remote_debug, monitor_output): Declare.
13 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
14 of debug_threads.
15
16 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17
18 * Makefile.in (EXEEXT): New.
19 (clean): Use $(EXEEXT).
20
21 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
22
23 * target.h (target_ops): Rename send_signal to request_interrupt,
24 and remove enum target_signal parameter.
25 * linux-low.c (linux_request_interrupt): Rename from
26 linux_send_signal, and always send SIGINT.
27 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
28 and always send SIGINT.
29 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
30 of send_signal.
31 (input_interrupt): Likewise.
32
33 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
34
35 * server.c (get_features_xml): Check if target implemented
36 arch_string.
37 * win32-i386-low.c (win32_arch_string): New.
38 (win32_target_ops): Add win32_arch_string as arch_string member.
39
40 2007-02-22 Markus Deuling <deuling@de.ibm.com>
41
42 * spu-low.c (spu_arch_string): New.
43 (spu_target_ops): Add spu_arch_string.
44
45 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
46
47 * remote-utils.c: Remove HAVE_TERMINAL_H check.
48 * configure.ac: Do not check for terminal.h.
49 * configure, config.in: Regenerated.
50
51 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
52
53 * Makefile.in (OBS): Add $(XML_BUILTIN).
54 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
55 (clean): Update.
56 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
57 (arm-with-iwmmxt.c): New.
58 * config.in, configure: Regenerate.
59 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
60 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
61 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
62 (arm*-*-linux*): Add iWMMXt and regset support.
63 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
64 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
65 (arm_store_wmmxregset, target_regsets): New.
66 * server.c (get_features_xml): Take annex argument. Check builtin
67 XML documents.
68 (handle_query): Handle multiple annexes.
69
70 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
71
72 * remote-utils.c [USE_WIN32API] (read, write): Define.
73 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
74 write.
75
76 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
77
78 * linux-i386-low.c (the_low_target): Set arch_string.
79 * linux-x86-64-low.c (the_low_target): Likewise.
80 * linux-low.c (linux_arch_string): New.
81 (linux_target_ops): Add it.
82 * linux-low.h (struct linux_target_ops): Add arch_string.
83 * server.c (write_qxfer_response): Use const void * for DATA.
84 (get_features_xml): New.
85 (handle_query): Handle qXfer:features:read. Report it for qSupported.
86 * target.h (struct target_ops): Add arch_string method.
87
88 2007-01-03 Denis Pilat <denis.pilat@st.com>
89 Daniel Jacobowitz <dan@codesourcery.com>
90
91 * linux-low.c (linux_kill): Handle being called with no threads.
92 * win32-i386-low.c (win32_kill): Likewise.
93 (get_child_debug_event): Clear current_process_handle.
94
95 2006-12-30 Denis PILAT <denis.pilat@st.com>
96 Daniel Jacobowitz <dan@codesourcery.com>
97
98 * remote-utils.c (remote_open): Check the type of specified
99 serial port devices before opening them.
100 * server.c (main): Kill the inferior if an error occurs during
101 the first remote_open.
102
103 2006-12-05 Markus Deuling <deuling@de.ibm.com>
104
105 * README: Update supported targets.
106
107 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
108
109 * Makefile.in (clean): Remove reg-mips64.c.
110 (reg-mips64.c, reg-mips64.o): New rules.
111 * configure.srv: Handle mips64. Include regset support for mips.
112 * linux-mips-low.c (union mips_register): New.
113 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
114 (mips_breakpoint, mips_breakpoint_at): Use int.
115 (mips_collect_register, mips_supply_register)
116 (mips_collect_register_32bit, mips_supply_register_32bit)
117 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
118 (mips_store_fpregset, target_regsets): New.
119 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
120
121 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
122
123 * configure.srv: Add target "spu*-*-*".
124 * Makefile.in (clean): Remove reg-spu.c.
125 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
126 * spu-low.c: New file.
127
128 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
129
130 * configure.ac: Correct td_thr_tls_get_addr test.
131 * configure: Regenerated.
132
133 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
134
135 * linux-low.c (linux_wait_for_event): Reformat. Use the
136 pass_signals array.
137 * remote-utils.c (decode_address_to_semicolon): New.
138 * server.c (pass_signals, handle_general_set): New.
139 (handle_query): Mention QPassSignals for qSupported.
140 (main): Call handle_general_set.
141 * server.h (pass_signals, decode_address_to_semicolon): New.
142
143 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
144
145 * server.c (handle_query): Correct error handling for read_auxv.
146
147 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
148
149 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
150 and srv_linux_thread_db to yes.
151 * linux-s390-low.c (s390_fill_gregset): New function.
152 (target_regsets): Define data structure.
153
154 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
155
156 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
157 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
158 * config.in, configure: Regenerated.
159 * inferiors.c (gdb_id_to_thread): New function.
160 (gdb_id_to_thread_id): Use it.
161 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
162 * linux-low.h (struct process_info): Add th member.
163 (thread_db_get_tls_address): New prototype.
164 * remote-utils.c (decode_address): Make non-static.
165 * server.c (handle_query): Handle qGetTLSAddr.
166 * server.h (gdb_id_to_thread, decode_address): New prototypes.
167 * target.h (struct target_ops): Add get_tls_address.
168 * thread-db.c (maybe_attach_thread): Save the thread handle.
169 (thread_db_get_tls_address): New.
170
171 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
172
173 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
174 (linux_resume_one_process): Take a siginfo_t *. Update all
175 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
176 (struct pending_signals): Add a siginfo_t.
177 (linux_wait_for_process): Always set last_status.
178 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
179 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
180 * linux-low.h (struct process_info): Add last_status.
181
182 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
183
184 * remote-utils.c (try_rle): New function.
185 (putpkt_binary): Use it.
186
187 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
188
189 * Makefile.in (clean): Clean reg-x86-64-linux.c.
190 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
191 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
192 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
193 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
194 point registers.
195
196 2006-08-08 Richard Sandiford <richard@codesourcery.com>
197
198 * server.c (terminal_fd): New variable.
199 (old_foreground_pgrp): Likewise.
200 (restore_old_foreground_pgrp): New function.
201 (start_inferior): Record the terminal file descriptor in terminal_fd
202 and its original foreground group in old_foreground_pgrp. Register
203 restore_old_foreground_pgrp with atexit().
204
205 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
206
207 * server.c (handle_query): Correct qPart to qXfer.
208
209 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
210
211 * configure.ac: Check for more headers which are missing on
212 Windows. Automatically supply -lwsock32 and USE_WIN32API.
213 * configure.srv: Add Cygwin and mingw32.
214 * remote-utils.c: Don't include headers unconditionally which
215 are missing on mingw32. Include <winsock.h> for mingw32.
216 (remote_open): Adjust for mingw32 support. Flush
217 standard error after writing to it.
218 (remote_close, putpkt_binary, input_interrupt, block_async_io)
219 (unblock_async_io, enable_async_io, disable_async_io)
220 (readchar, getpkt): Update for Winsock support.
221 (prepare_resume_reply): Expect a protocol signal number.
222 * server.c: Disable <sys/wait.h> on mingw32.
223 (start_inferior): Adjust for mingw32 support. Flush
224 standard error after writing to it.
225 (attach_inferior): Likewise. Use protocol signal
226 numbers.
227 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
228 and names.
229 * win32-i386-low.c: New file.
230 * Makefile.in (XM_CLIBS): Set.
231 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
232 (win32-i386-low.o): New dependency rule.
233 * linux-low.c (linux_wait): Use target signal numbers.
234 * target.h (struct target_ops): Doc fix.
235 * server.h (target_signal_to_name): New prototype.
236 * gdbreplay.c: Don't include headers unconditionally which
237 are missing on mingw32. Include <winsock.h> for mingw32.
238 (remote_close, remote_open): Adjust for Winsock support.
239 * configure, config.in: Regenerated.
240
241 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
242
243 * server.c (decode_xfer_read, write_qxfer_response): New.
244 (handle_query): Take a packet length argument. Handle
245 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
246 the qSupported response.
247 (main): Update call to handle_query.
248
249 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
250
251 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
252 (putpkt_binary): Renamed from putpkt and adjusted for binary
253 data.
254 (putpkt): New wrapper for putpkt_binary.
255 (readchar): Don't mask off the high bit.
256 (decode_X_packet): New function.
257 * server.c (main): Call putpkt_binary if a handler sets the packet
258 length. Save the length of the incoming packet. Handle 'X'.
259 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
260
261 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
262
263 * server.c (handle_query): Handle qSupported.
264
265 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
266
267 * remote-utils.c (all_symbols_looked_up): New variable.
268 (look_up_one_symbol): Check it.
269 * server.h (look_up_one_symbol): New declaration.
270 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
271
272 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
273
274 * Makefile.in (linux-arm-low.o): Update dependencies.
275 * linux-arm-low.c: Include "gdb_proc_service.h".
276 (PTRACE_GET_THREAD_AREA): Define.
277 (ps_get_thread_area): New function.
278
279 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
280
281 * configure.srv (m68k*-*-uclinux*): New target.
282 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
283 (linux_resume_one_process): Remove extraneous cast.
284 (linux_read_offsets): New.
285 (linux_target_op): Add linux_read_offsets on mmuless systems.
286 * server.c (handle_query): Add qOffsets logic.
287 * target.h (struct target_ops): Add read_offsets.
288
289 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
290
291 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
292 (PTRACE_GET_THREAD_AREA): Define.
293 (ps_get_thread_area): New function.
294 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
295 (linux-x86-64-low.o): Update.
296
297 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
298
299 * configure.ac: Remove checks for prfpregset_t.
300 * gdb_proc_service.h: New file.
301 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
302 new "gdb_proc_service.h".
303 * proc-service.c: Likewise.
304 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
305 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
306 * Makefile.in (gdb_proc_service_h): Updated.
307 * configure, config.in: Regenerated.
308
309 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
310
311 * remote-utils.c (prepare_resume_reply): Move declaration
312 of gdb_id_from_wait to the top of the block.
313
314 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
315
316 * linux-low.c (regsets_store_inferior_registers): Read the regset
317 from the target before filling it.
318
319 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
320
321 * server.c (attach_inferior): Return SIGTRAP for a successful
322 attach.
323
324 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
325
326 * Makefile.in (OBS): Add version.o.
327 (STAGESTUFF): Delete.
328 (version.o): Add dependencies.
329 (version.c): Replace rule.
330 (clean): Remove version.c.
331 * server.c (gdbserver_version): New.
332 (gdbserver_usage): Use printf.
333 (main): Handle --version and --help.
334 * server.h (version, host_name): Add declarations.
335
336 2005-12-23 Eli Zaretskii <eliz@gnu.org>
337
338 * linux-arm-low.c:
339 * linux-arm-low.c:
340 * inferiors.c:
341 * i387-fp.h:
342 * i387-fp.c:
343 * gdbreplay.c:
344 * regcache.c:
345 * proc-service.c:
346 * mem-break.h:
347 * mem-break.c:
348 * linux-x86-64-low.c:
349 * linux-sh-low.c:
350 * linux-s390-low.c:
351 * linux-ppc64-low.c:
352 * linux-ppc-low.c:
353 * linux-mips-low.c:
354 * linux-m68k-low.c:
355 * linux-m32r-low.c:
356 * linux-low.h:
357 * linux-low.c:
358 * linux-ia64-low.c:
359 * linux-i386-low.c:
360 * linux-crisv32-low.c:
361 * thread-db.c:
362 * terminal.h:
363 * target.h:
364 * target.c:
365 * server.h:
366 * server.c:
367 * remote-utils.c:
368 * regcache.h:
369 * utils.c:
370 * Makefile.in:
371 * configure.ac:
372 * gdbserver.1: Add (C) after Copyright. Update the FSF
373 address.
374
375 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
376
377 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
378 (arm_breakpoint_at): Recognize both breakpoints.
379 (the_low_target): Use the correct breakpoint instruction.
380
381 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
382
383 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
384 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
385 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
386 (the_low_target): Update.
387
388 2005-10-25 Andreas Schwab <schwab@suse.de>
389
390 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
391
392 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
393 (ia64_num_regs): Reduce to 462.
394
395 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
396
397 * acinclude.m4: Correct quoting.
398 * aclocal.m4: Regenerated.
399
400 Suggested by SZOKOVACS Robert <szo@ies.hu>:
401 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
402 (thread_db_init): Call thread_db_err_str.
403 * configure.ac: Check for TD_VERSION.
404 * config.in, configure: Regenerated.
405
406 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
407
408 * server.h (error, fatal, warning): Add ATTR_FORMAT.
409
410 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
411
412 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
413 is not available. Define HAVE_PTRACE_GETREGS if it is.
414 * config.in, configure: Regenerated.
415 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
416 * linux-i386-low.c, linux-m68k-low.c: Update to use
417 HAVE_PTRACE_GETREGS.
418 * linux-low.c (regsets_fetch_inferior_registers)
419 (regsets_store_inferior_registers): Only return 0 if we processed
420 GENERAL_REGS.
421 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
422 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
423
424 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
425
426 * inferiors.c (struct thread_info): Add gdb_id.
427 (add_thread): Add gdb_id argument.
428 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
429 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
430 calls to add_thread.
431 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
432 * server.c (handle_query): Use thread_to_gdb_id.
433 (handle_v_cont, main): Use gdb_id_to_thread_id.
434 * server.h (add_thread): Update prototype.
435 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
436 prototypes.
437
438 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
439
440 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
441 left-padded registers.
442 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
443 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
444
445 2005-07-01 Steve Ellcey <sje@cup.hp.com>
446
447 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
448 * configure: Regenerate.
449 * config.in: Regenerate.
450 * server.h (NEED_DECLARATION_STRERROR):
451 Replace with !HAVE_DECL_STRERROR.
452
453 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
454
455 * linux-low.c (linux_wait, linux_send_signal): Don't test
456 an unsigned long variable for > 0 if it could be MAX_ULONG.
457 * server.c (myresume): Likewise.
458 * target.c (set_desired_inferior): Likewise.
459
460 2005-06-13 Mark Kettenis <kettenis@gnu.org>
461
462 * configure.ac: Simplify and improve check for socklen_t.
463 * configure, config.in: Regenerate.
464
465 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
466
467 * acconfig.h: Remove.
468 * configure.ac: Add a test for socklen_t. Use three-argument
469 AC_DEFINE throughout.
470 * config.in: Regenerated using autoheader 2.59.
471 * configure: Regenerated.
472
473 * gdbreplay.c (socklen_t): Provide a default.
474 (remote_open): Use socklen_t.
475 * remote-utils.c (socklen_t): Provide a default.
476 (remote_open): Use socklen_t.
477 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
478 unsigned char.
479
480 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
481 char for buffers.
482 * linux-low.c (linux_read_memory, linux_write_memory)
483 (linux_read_auxv): Likewise.
484 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
485 (check_mem_write): Likewise.
486 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
487 Likewise.
488 * regcache.c (struct inferior_rgcache_data, registers_to_string)
489 (registers_from_string, register_data): Likewise.
490 * server.c (handle_query, main): Likewise.
491 * server.h (convert_ascii_to_int, convert_int_to_ascii)
492 (decode_M_packet): Likewise.
493 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
494 * target.h (struct target_ops): Update read_memory, write_memory,
495 and read_auxv.
496 (read_inferior_memory, write_inferior_memory): Update.
497 * linux-low.h (struct linux_target_ops): Change type of breakpoint
498 to unsigned char *.
499 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
500 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
501 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
502 linux-s390-low.c, linux-sh-low.c: Update for changes in
503 read_inferior_memory and the_low_target->breakpoint.
504
505 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
506
507 * Makefile.in (SFILES): Add linux-ppc64-low.c.
508 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
509 * configure.srv: Add powerpc64-*-linux*.
510 * linux-ppc64-low.c: New file.
511
512 2005-05-23 Orjan Friberg <orjanf@axis.com>
513
514 * linux-cris-low.c: New file with support for CRIS.
515 * linux-crisv32-low.c: Ditto for CRISv32.
516 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
517 (clean): Add reg-cris.c and reg-crisv32.c.
518 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
519 reg-crisv32.o, and reg-crisv32.c to make rules.
520 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
521 recognized targets.
522
523 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
524
525 * linux-low.c (fetch_register): Ensure buffer size is a multiple
526 of sizeof (PTRACE_XFER_TYPE).
527 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
528
529 2005-05-12 Orjan Friberg <orjanf@axis.com>
530
531 * target.h (struct target_ops): Add insert_watchpoint,
532 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
533 pointers for hardware watchpoint support.
534 * linux-low.h (struct linux_target_ops): Ditto.
535 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
536 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
537 to linux_target_ops.
538 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
539 reply packet.
540 * server.c (main): Recognize 'Z' and 'z' packets.
541
542 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
543
544 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
545 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
546 (the_low_target): Add new members.
547
548 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
549
550 * proc-service.c (ps_lgetregs): Search all_processes instead of
551 all_threads.
552
553 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
554
555 * server.c (start_inferior): Change return type to int.
556 (attach_inferior): Change sigptr to int *.
557 (handle_v_cont, handle_v_requests): Change signal to int *.
558 (main): Change signal to int.
559
560 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
561
562 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
563 * configure.srv: Add m32r*-*-linux*.
564 * linux-m32r-low.c: New file.
565
566 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
567
568 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
569
570 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
571
572 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
573 Take unsigned long arguments for PIDs.
574 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
575 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
576 (wait_for_sigstop, linux_resume_one_process)
577 (regsets_fetch_inferior_registers, linux_send_signal)
578 (linux_read_auxv): Likewise. Update the types of variables holding
579 PIDs. Update format string specifiers.
580 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
581 * remote-utils.c (prepare_resume_reply): Likewise.
582 * server.c (cont_thread, general_thread, step_thread)
583 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
584 unsigned long.
585 (handle_query): Update format specifiers.
586 (handle_v_cont, main): Use strtoul for thread IDs.
587 * server.h (struct inferior_list_entry): Use unsigned long for ID.
588 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
589 (general_thread, step_thread, thread_from_wait)
590 (old_thread_from_wait): Update.
591 * target.h (struct thread_resume): Use unsigned long for THREAD.
592 (struct target_ops): Use unsigned long for arguments to attach and
593 thread_alive.
594
595 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
596
597 * acinclude.m4: Include bfd/bfd.m4 directly.
598 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
599 <agriffis@toolchain.org>.
600 * aclocal.m4, configure: Regenerated.
601
602 2005-01-07 Andrew Cagney <cagney@gnu.org>
603
604 * configure.ac: Rename configure.in, require autoconf 2.59.
605 * configure: Re-generate.
606
607 2004-12-08 Daniel Jacobowitz <dan@debian.org>
608
609 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
610 LIBS when finished.
611 * aclocal.m4: Regenerated.
612 * configure: Regenerated.
613
614 2004-11-21 Andreas Schwab <schwab@suse.de>
615
616 * linux-m68k-low.c (m68k_num_gregs): Define.
617 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
618 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
619 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
620 (m68k_breakpoint_at): New. Add to the_low_target.
621
622 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
623 srv_linux_thread_db to yes.
624
625 2004-10-20 Joel Brobecker <brobecker@gnat.com>
626
627 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
628 (ARCH_SET_FS): Likewise.
629 (ARCH_GET_FS): Likewise.
630 (ARCH_GET_GS): Likewise.
631
632 2004-10-16 Daniel Jacobowitz <dan@debian.org>
633
634 * linux-i386-low.c (ps_get_thread_area): New.
635 * linux-x86-64-low.c (ps_get_thread_area): New.
636 * linux-low.c: Include <sys/syscall.h>.
637 (linux_kill_one_process): Don't kill the first thread here.
638 (linux_kill): Kill the first thread here.
639 (kill_lwp): New function.
640 (send_sigstop, linux_send_signal): Use it.
641 * proc-service.c: Clean up #ifdefs.
642 (fpregset_info): Delete.
643 (ps_lgetregs): Update and enable implementation.
644 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
645 implementations.
646 * remote-utils.c (struct sym_cache, symbol_cache): New.
647 (input_interrupt): Print a clearer message.
648 (async_io_enabled): New variable.
649 (enable_async_io, disable_async_io): Use it. Update comments.
650 (look_up_one_symbol): Use the symbol cache.
651 * thread-db.c (thread_db_look_up_symbols): New function.
652 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
653
654 2004-10-16 Daniel Jacobowitz <dan@debian.org>
655
656 * configure.in: Test for -rdynamic.
657 * configure: Regenerated.
658 * Makefile (INTERNAL_LDFLAGS): New.
659 (gdbserver, gdbreplay): Use it.
660
661 2004-09-02 Andrew Cagney <cagney@gnu.org>
662
663 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
664
665 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
666
667 * linux-low.c (linux_wait): Clear all_processes list also.
668
669 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
670
671 * linux-low.c: Include <errno.h>. Remove extern declaration of
672 errno.
673
674 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
675
676 * gdbreplay.c, server.h, utils.c: Update copyright years.
677
678 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
679
680 * server.c (main): Print child status or termination signal from
681 variable 'signal', not 'sig'.
682
683 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
684
685 * linux-low.c (linux_read_memory): Change return type to
686 int. Check for and return error from ptrace().
687 * target.c (read_inferior_memory): Change return type to int. Pass
688 back return status from the_target->read_memory().
689 * target.h (struct target_ops): Adapt *read_memory() prototype.
690 Update comment.
691 (read_inferior_memory): Adapt prototype.
692 * server.c (main): Return an error packet if
693 read_inferior_memory() returns an error.
694
695 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
696
697 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
698 Unify with other clean targets.
699
700 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
701
702 * server.c (handle_v_cont): Call set_desired_inferior.
703
704 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
705
706 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
707
708 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
709
710 * linux-low.c (linux_wait): Unblock async I/O.
711 (linux_resume): Block and enable async I/O.
712 * remote-utils.c (block_async_io, unblock_async_io): New functions.
713 * server.h (block_async_io, unblock_async_io): Add prototypes.
714
715 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
716
717 * remote-utils.c (remote_open): Print a status notice after
718 opening a TCP port.
719 * server.c (attach_inferior): Print a status notice after
720 attaching.
721
722 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
723
724 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
725
726 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
727
728 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
729 error packet.
730 * server.c, target.h: Update copyright years.
731
732 2004-02-25 Roland McGrath <roland@redhat.com>
733
734 * target.h (struct target_ops): New member `read_auxv'.
735 * server.c (handle_query): Handle qPart:auxv:read: query using that.
736 * linux-low.c (linux_read_auxv): New function.
737 (linux_target_ops): Initialize `read_auxv' member to that.
738
739 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
740
741 Committed by Jim Blandy <jimb@redhat.com>.
742
743 * linux-s390-low.c (s390_num_regs): Update.
744 (s390_regmap): Remove control registers. Use __s390x__ predefine
745 instead of GPR_SIZE to distiguish s390 and s390x targets.
746
747 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
748
749 * linux-low.c: Update copyright year.
750 (check_removed_breakpoint): Clear pending_is_breakpoint.
751 (linux_set_resume_request, linux_queue_one_thread)
752 (resume_status_pending_p): New functions.
753 (linux_continue_one_thread): Use process->resume.
754 (linux_resume): Only resume threads if there are no pending events.
755 * linux-low.h (struct process_info): Add resume request
756 pointer.
757
758 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
759
760 * regcache.c (new_register_cache): Clear the allocated register
761 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
762
763 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
764
765 * linux-low.c (linux_resume): Take a struct thread_resume *
766 argument.
767 (linux_wait): Update call.
768 (resume_ptr): New static variable.
769 (linux_continue_one_thread): Renamed from
770 linux_continue_one_process. Use resume_ptr.
771 (linux_resume): Use linux_continue_one_thread.
772 * server.c (handle_v_cont, handle_v_requests): New functions.
773 (myresume): New function.
774 (main): Handle 'v' case.
775 * target.h (struct thread_resume): New type.
776 (struct target_ops): Change argument of "resume" to struct
777 thread_resume *.
778 (myresume): Delete macro.
779
780 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
781
782 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
783 (uninstall): Support DESTDIR.
784
785 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
786
787 * configure.srv: Add xscale*linux copy of arm*linux entry.
788
789 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
790
791 * linux-arm-low.c (arm_reinsert_addr): New function.
792 (the_low_target): Add arm_reinsert_addr.
793
794 2003-07-08 Mark Kettenis <kettenis@gnu.org>
795
796 * mem-break.c: Remove whitespace at end of file.
797
798 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
799
800 * configure.in: Check whether we need to prototype strerror.
801 * server.h: Optionally prototype strerror.
802 * gdbreplay.c (perror_with_name): Use strerror.
803 * linux-low.c (linux_attach_lwp): Use strerror.
804 * utils.c (perror_with_name): Use strerror.
805 * config.in, configure: Regenerated.
806
807 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
808
809 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
810 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
811
812 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
813
814 * Makefile.in (SFILES): Update.
815 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
816 low-sun3.c: Remove files.
817
818 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
819
820 * linux-low.c: Move comment to linux_thread_alive where it belonged.
821 (linux_detach_one_process, linux_detach): New functions.
822 (linux_target_ops): Add linux_detach.
823 * server.c (main): Handle 'D' packet.
824 * target.h (struct target_ops): Add "detach" member.
825 (detach_inferior): Define.
826
827 2003-06-13 Mark Kettenis <kettenis@gnu.org>
828
829 From Kelley Cook <kelleycook@wideopenwest.com>:
830 * configure.srv: Accept i[34567]86 variants.
831
832 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
833
834 * linux-low.c (linux_wait_for_event): Correct comment typos.
835 (linux_resume_one_process): Call check_removed_breakpoint.
836 (linux_send_signal): New function.
837 (linux_target_ops): Add linux_send_signal.
838 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
839 of kill.
840 * target.h (struct target_ops): Add send_signal.
841
842 2003-05-29 Jim Blandy <jimb@redhat.com>
843
844 * linux-low.c (usr_store_inferior_registers): Transfer buf in
845 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
846 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
847 away part of the register's value.
848
849 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
850
851 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
852 (linux_wait_for_event, linux_init_signals): Likewise.
853
854 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
855
856 * configure.in: Check for stdlib.h.
857 * configure: Regenerated.
858 * config.in: Regenerated.
859
860 2003-01-04 Andreas Schwab <schwab@suse.de>
861
862 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
863
864 2003-01-02 Andrew Cagney <ac131313@redhat.com>
865
866 * Makefile.in: Remove obsolete code.
867
868 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
869
870 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
871 defined(PT_FPR0_HI).
872
873 2002-11-17 Stuart Hughes <seh@zee2.com>
874
875 * linux-arm-low.c (arm_num_regs): Increase.
876 (arm_regmap): Include status register.
877
878 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
879
880 * linux-low.c (register_addr): Remove incorrect -1 check.
881
882 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
883
884 * linux-low.c (linux_create_inferior): Call setpgid. Return
885 the new PID.
886 (unstopped_p, linux_signal_pid): Remove.
887 (linux_target_ops): Remove linux_signal_pid.
888 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
889 global instead of target method.
890 * target.h (struct target_ops): Remove signal_pid. Update comment
891 for create_inferior.
892 * server.c (signal_pid): New variable.
893 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
894 gdbserver. Set the child to be the foreground process group.
895 (attach_inferior): Set signal_pid.
896
897 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
898
899 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
900
901 2002-08-20 Jim Blandy <jimb@redhat.com>
902
903 * Makefile.in (LDFLAGS): Allow the configure script to establish a
904 default for this.
905
906 2002-08-01 Andrew Cagney <cagney@redhat.com>
907
908 * Makefile.in: Make chill references obsolete.
909
910 2002-07-24 Kevin Buettner <kevinb@redhat.com>
911
912 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
913 * configure: Regenerate.
914 * config.in: Regenerate.
915
916 2002-07-09 David O'Brien <obrien@FreeBSD.org>
917
918 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
919 (perror_with_name, remote_close, remote_open, expect, play): Static.
920
921 2002-07-04 Michal Ludvig <mludvig@suse.cz>
922
923 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
924 byte offsets instead of an array of indexes.
925 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
926
927 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
928
929 * regcache.c: Add comment.
930
931 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
932
933 * thread-db.c: New file.
934 * proc-service.c: New file.
935 * acinclude.m4: New file.
936 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
937 proc-service.o, and thread-db.o.
938 (linux-low.o): Add USE_THREAD_DB.
939 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
940 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
941 * aclocal.m4: Regenerated.
942 * config.in: Regenerated.
943 * configure: Regenerated.
944 * configure.in: Check for proc_service.h, sys/procfs.h,
945 thread_db.h, and linux/elf.h headrs.
946 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
947 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
948 Check for -lthread_db and thread support.
949 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
950 PowerPC, and SuperH.
951 * i387-fp.c: Constify arguments.
952 * i387-fp.h: Likewise.
953 * inferiors.c: (struct thread_info): Renamed from
954 `struct inferior_info'. Remove PID member. Use generic inferior
955 list header. All uses updated.
956 (inferiors, signal_pid): Removed.
957 (all_threads): New variable.
958 (get_thread): Define.
959 (add_inferior_to_list): New function.
960 (for_each_inferior): New function.
961 (change_inferior_id): New function.
962 (add_inferior): Removed.
963 (remove_inferior): New function.
964 (add_thread): New function.
965 (free_one_thread): New function.
966 (remove_thread): New function.
967 (clear_inferiors): Use for_each_inferior and free_one_thread.
968 (find_inferior): New function.
969 (find_inferior_id): New function.
970 (inferior_target_data): Update argument type.
971 (set_inferior_target_data): Likewise.
972 (inferior_regcache_data): Likewise.
973 (set_inferior_regcache_data): Likewise.
974 * linux-low.c (linux_bp_reinsert): Remove.
975 (all_processes, stopping_threads, using_thrads)
976 (struct pending_signals, debug_threads, pid_of): New.
977 (inferior_pid): Replace with macro.
978 (struct inferior_linux_data): Remove.
979 (get_stop_pc, add_process): New functions.
980 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
981 Use add_process and add_thread.
982 (linux_attach_lwp): New function, based on old linux_attach. Use
983 add_process and add_thread. Set stop_expected for new threads.
984 (linux_attach): New function.
985 (linux_kill_one_process): New function.
986 (linux_kill): Kill all LWPs.
987 (linux_thread_alive): Use find_inferior_id.
988 (check_removed_breakpoints, status_pending_p): New functions.
989 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
990 Update. Use WNOHANG. Wait for cloned processes also. Update process
991 struct for the found process.
992 (linux_wait_for_event): New function.
993 (linux_wait): Use it. Support LWPs.
994 (send_sigstop, wait_for_sigstop, stop_all_processes)
995 (linux_resume_one_process, linux_continue_one_process): New functions.
996 (linux_resume): Support LWPs.
997 (REGISTER_RAW_SIZE): Remove.
998 (fetch_register): Use register_size instead. Call supply_register.
999 (usr_store_inferior_registers): Likewise. Call collect_register.
1000 Fix recursive case.
1001 (regsets_fetch_inferior_registers): Improve error message.
1002 (regsets_store_inferior_registers): Add debugging.
1003 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
1004 (unstopped_p, linux_signal_pid): New functions.
1005 (linux_target_ops): Add linux_signal_pid.
1006 (linux_init_signals): New function.
1007 (initialize_low): Call it. Initialize using_threads.
1008 * regcache.c (inferior_regcache_data): Add valid
1009 flag.
1010 (get_regcache): Fetch registers lazily. Add fetch argument
1011 and update all callers.
1012 (regcache_invalidate_one, regcache_invalidate): New
1013 functions.
1014 (new_register_cache): Renamed from create_register_cache.
1015 Return the new regcache.
1016 (free_register_cache): Change argument to a void *.
1017 (registers_to_string, registers_from_string): Call get_regcache
1018 with fetch flag set.
1019 (register_data): Make static. Pass fetch flag to get_regcache.
1020 (supply_register): Call get_regcache with fetch flag clear.
1021 (collect_register): Call get_regcache with fetch flag set.
1022 (collect_register_as_string): New function.
1023 * regcache.h: Update.
1024 * remote-utils.c (putpkt): Flush after debug output and use
1025 stderr.
1026 Handle input interrupts while waiting for an ACK.
1027 (input_interrupt): Use signal_pid method.
1028 (getpkt): Flush after debug output and use stderr.
1029 (outreg): Use collect_register_as_string.
1030 (new_thread_notify, dead_thread_notify): New functions.
1031 (prepare_resume_reply): Check using_threads. Set thread_from_wait
1032 and general_thread.
1033 (look_up_one_symbol): Flush after debug output.
1034 * server.c (step_thread, server_waiting): New variables.
1035 (start_inferior): Don't use signal_pid. Update call to mywait.
1036 (attach_inferior): Update call to mywait.
1037 (handle_query): Handle qfThreadInfo and qsThreadInfo.
1038 (main): Don't fetch/store registers explicitly. Use
1039 set_desired_inferior. Support proposed ``Hs'' packet. Update
1040 calls to mywait.
1041 * server.h: Update.
1042 (struct inferior_list, struct_inferior_list_entry): New.
1043 * target.c (set_desired_inferior): New.
1044 (write_inferior_memory): Constify.
1045 (mywait): New function.
1046 * target.h: Update.
1047 (struct target_ops): New signal_pid method.
1048 (mywait): Removed macro, added prototype.
1049
1050 * linux-low.h (regset_func): Removed.
1051 (regset_fill_func, regset_store_func): New.
1052 (enum regset_type): New.
1053 (struct regset_info): Add type field. Use new operation types.
1054 (struct linux_target_ops): stop_pc renamed to get_pc.
1055 Add decr_pc_after_break and breakpoint_at.
1056 (get_process, get_thread_proess, get_process_thread)
1057 (strut process_info, all_processes, linux_attach_lwp)
1058 (thread_db_init): New.
1059
1060 * linux-arm-low.c (arm_get_pc, arm_set_pc,
1061 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
1062 (the_low_target): Add new members.
1063 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
1064 (i386_store_fpxregset): Constify.
1065 (target_regsets): Add new kind identifier.
1066 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
1067 (i386_set_pc): Add debugging.
1068 (i386_breakpoint_at): New function.
1069 (the_low_target): Add new members.
1070 * linux-mips-low.c (mips_get_pc, mips_set_pc)
1071 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
1072 (mips_breakpoint_at): New.
1073 (the_low_target): Add new members.
1074 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
1075 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
1076 (the_low_target): Add new members.
1077 * linux-sh-low.c (sh_get_pc, sh_set_pc)
1078 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
1079 (the_low_target): Add new members.
1080 * linux-x86-64-low.c (target_regsets): Add new kind
1081 identifier.
1082
1083 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
1084
1085 From Martin Pool <mbp@samba.org>:
1086 * server.c (gdbserver_usage): New function.
1087 (main): Call it.
1088
1089 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
1090
1091 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
1092 stop_at -> stop_pc.
1093
1094 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1095
1096 * Makefile.in: Remove obsolete code.
1097
1098 2002-04-24 Michal Ludvig <mludvig@suse.cz>
1099
1100 * linux-low.c (regsets_fetch_inferior_registers),
1101 (regsets_store_inferior_registers): Removed cast to int from
1102 ptrace() calls.
1103 * regcache.h: Added declaration of struct inferior_info.
1104
1105 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1106
1107 * inferiors.c (struct inferior_info): Add regcache_data.
1108 (add_inferior): Call create_register_cache.
1109 (clear_inferiors): Call free_register_cache.
1110 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1111 * regcache.c (struct inferior_regcache_data): New.
1112 (registers): Remove.
1113 (get_regcache): New function.
1114 (create_register_cache, free_register_cache): New functions.
1115 (set_register_cache): Don't initialize the register cache here.
1116 (registers_to_string, registers_from_string, register_data): Call
1117 get_regcache.
1118 * regcache.h: Add prototypes.
1119 * server.h: Likewise.
1120
1121 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1122
1123 * mem-break.c: New file.
1124 * mem-break.h: New file.
1125 * Makefile.in: Add mem-break.o rule; update server.h
1126 dependencies.
1127 * inferiors.c (struct inferior_info): Add target_data
1128 member.
1129 (clear_inferiors): Free target_data member if set.
1130 (inferior_target_data, set_inferior_target_data): New functions.
1131 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1132 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1133 * linux-low.c (linux_bp_reinsert): New variable.
1134 (struct inferior_linux_data): New.
1135 (linux_create_inferior): Use set_inferior_target_data.
1136 (linux_attach): Likewise. Call add_inferior.
1137 (linux_wait_for_one_inferior): New function.
1138 (linux_wait): Call it.
1139 (linux_write_memory): Add const.
1140 (initialize_low): Call set_breakpoint_data.
1141 * linux-low.h (struct linux_target_ops): Add breakpoint
1142 handling members.
1143 * server.c (attach_inferior): Remove extra add_inferior
1144 call.
1145 * server.h: Include mem-break.h. Update inferior.c
1146 prototypes.
1147 * target.c (read_inferior_memory)
1148 (write_inferior_memory): New functions.
1149 * target.h (read_inferior_memory)
1150 (write_inferior_memory): Change macros to prototypes.
1151 (struct target_ops): Update comments. Add const to write_memory
1152 definition.
1153
1154 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
1155
1156 * linux-low.c (usr_store_inferior_registers): Support
1157 registers which are allowed to fail to store.
1158 * linux-low.h (linux_target_ops): Likewise.
1159 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
1160 (ppc_cannot_store_register): FPSCR may not be storable.
1161
1162 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1163
1164 * server.h: Include <string.h> if HAVE_STRING_H.
1165 * ChangeLog: Correct paths in last ChangeLog entry.
1166
1167 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1168
1169 * linux-low.h: Remove obsolete prototypes.
1170 (struct linux_target_ops): New.
1171 (extern the_low_target): New.
1172 * linux-low.c (num_regs, regmap): Remove declarations.
1173 (register_addr): Use the_low_target explicitly.
1174 (fetch_register): Likewise.
1175 (usr_fetch_inferior_registers): Likewise.
1176 (usr_store_inferior_registers): Likewise.
1177 * linux-arm-low.c (num_regs): Remove.
1178 (arm_num_regs): Define.
1179 (arm_regmap): Renamed from regmap, made static.
1180 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1181 made static.
1182 (arm_cannot_store_register): Renamed from cannot_store_register,
1183 made static.
1184 (the_low_target): New.
1185 * linux-i386-low.c (num_regs): Remove.
1186 (i386_num_regs): Define.
1187 (i386_regmap): Renamed from regmap, made static.
1188 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1189 made static.
1190 (i386_cannot_store_register): Renamed from cannot_store_register,
1191 made static.
1192 (the_low_target): New.
1193 * linux-ia64-low.c (num_regs): Remove.
1194 (ia64_num_regs): Define.
1195 (ia64_regmap): Renamed from regmap, made static.
1196 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1197 made static.
1198 (ia64_cannot_store_register): Renamed from cannot_store_register,
1199 made static.
1200 (the_low_target): New.
1201 * linux-m68k-low.c (num_regs): Remove.
1202 (m68k_num_regs): Define.
1203 (m68k_regmap): Renamed from regmap, made static.
1204 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1205 made static.
1206 (m68k_cannot_store_register): Renamed from cannot_store_register,
1207 made static.
1208 (the_low_target): New.
1209 * linux-mips-low.c (num_regs): Remove.
1210 (mips_num_regs): Define.
1211 (mips_regmap): Renamed from regmap, made static.
1212 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1213 made static.
1214 (mips_cannot_store_register): Renamed from cannot_store_register,
1215 made static.
1216 (the_low_target): New.
1217 * linux-ppc-low.c (num_regs): Remove.
1218 (ppc_num_regs): Define.
1219 (ppc_regmap): Renamed from regmap, made static.
1220 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1221 made static.
1222 (ppc_cannot_store_register): Renamed from cannot_store_register,
1223 made static.
1224 (the_low_target): New.
1225 * linux-s390-low.c (num_regs): Remove.
1226 (s390_num_regs): Define.
1227 (s390_regmap): Renamed from regmap, made static.
1228 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1229 made static.
1230 (s390_cannot_store_register): Renamed from cannot_store_register,
1231 made static.
1232 (the_low_target): New.
1233 * linux-sh-low.c (num_regs): Remove.
1234 (sh_num_regs): Define.
1235 (sh_regmap): Renamed from regmap, made static.
1236 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1237 made static.
1238 (sh_cannot_store_register): Renamed from cannot_store_register,
1239 made static.
1240 (the_low_target): New.
1241 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1242 (the_low_target): New.
1243
1244 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1245
1246 * Makefile.in: Add stamp-h target.
1247 * configure.in: Create stamp-h.
1248 * configure: Regenerated.
1249
1250 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1251
1252 * inferiors.c: New file.
1253 * target.c: New file.
1254 * target.h: New file.
1255 * Makefile.in: Add target.o and inferiors.o. Update
1256 dependencies.
1257 * linux-low.c (inferior_pid): New static variable,
1258 moved from server.c.
1259 (linux_create_inferior): Renamed from create_inferior.
1260 Call add_inferior. Return 0 on success instead of a PID.
1261 (linux_attach): Renamed from myattach.
1262 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1263 (linux_thread_alive): Renamed from mythread_alive.
1264 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1265 child dies.
1266 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1267 (regsets_store_inferior_registers): Correct error message.
1268 Add missing ``return 0''.
1269 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1270 (linux_store_registers): Renamed from store_inferior_registers.
1271 (linux_read_memory): Renamed from read_inferior_memory.
1272 (linux_write_memory): Renamed from write_inferior_memory.
1273 (linux_target_ops): New structure.
1274 (initialize_low): Call set_target_ops ().
1275 * remote-utils.c (unhexify): New function.
1276 (hexify): New function.
1277 (input_interrupt): Send signals to ``signal_pid''.
1278 * server.c (inferior_pid): Remove.
1279 (start_inferior): Update create_inferior call.
1280 (attach_inferior): Call add_inferior.
1281 (handle_query): New function.
1282 (main): Call handle_query for `q' packets.
1283 * server.h: Include "target.h". Remove obsolete prototypes.
1284 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1285
1286 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1287
1288 * Makefile.in: Add WARN_CFLAGS. Update configury
1289 dependencies.
1290 * configure.in: Check for <string.h>
1291 * configure: Regenerate.
1292 * config.in: Regenerate.
1293 * gdbreplay.c: Include needed system headers.
1294 (remote_open): Remove strchr prototype.
1295 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1296 * regcache.c (supply_register): Change buf argument to const void *.
1297 (supply_register_by_name): Likewise.
1298 (collect_register): Change buf argument to void *.
1299 (collect_register_by_name): Likewise.
1300 * regcache.h: Add missing prototypes.
1301 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1302 * server.c (handle_query): New function.
1303 (attached): New static variable, moved out of main.
1304 (main): Quiet longjmp clobber warnings.
1305 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1306 * utils.c (error): Remove NORETURN.
1307 (fatal): Likewise.