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