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