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