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