* remote.c (remote_protocol_features): Correct qPart to qXfer.
[deliverable/binutils-gdb.git] / gdb / gdbserver / ChangeLog
CommitLineData
b80864fb
DJ
12006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
2
3 * configure.ac: Check for more headers which are missing on
4 Windows. Automatically supply -lwsock32 and USE_WIN32API.
5 * configure.srv: Add Cygwin and mingw32.
6 * remote-utils.c: Don't include headers unconditionally which
7 are missing on mingw32. Include <winsock.h> for mingw32.
8 (remote_open): Adjust for mingw32 support. Flush
9 standard error after writing to it.
10 (remote_close, putpkt_binary, input_interrupt, block_async_io)
11 (unblock_async_io, enable_async_io, disable_async_io)
12 (readchar, getpkt): Update for Winsock support.
13 (prepare_resume_reply): Expect a protocol signal number.
14 * server.c: Disable <sys/wait.h> on mingw32.
15 (start_inferior): Adjust for mingw32 support. Flush
16 standard error after writing to it.
17 (attach_inferior): Likewise. Use protocol signal
18 numbers.
19 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20 and names.
21 * win32-i386-low.c: New file.
22 * Makefile.in (XM_CLIBS): Set.
23 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
24 (win32-i386-low.o): New dependency rule.
25 * linux-low.c (linux_wait): Use target signal numbers.
26 * target.h (struct target_ops): Doc fix.
27 * server.h (target_signal_to_name): New prototype.
28 * gdbreplay.c: Don't include headers unconditionally which
29 are missing on mingw32. Include <winsock.h> for mingw32.
30 (remote_close, remote_open): Adjust for Winsock support.
31 * configure, config.in: Regenerated.
32
0876f84a
DJ
332006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
34
35 * server.c (decode_xfer_read, write_qxfer_response): New.
36 (handle_query): Take a packet length argument. Handle
37 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
38 the qSupported response.
39 (main): Update call to handle_query.
40
01f9e8fa
DJ
412006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
42
43 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
44 (putpkt_binary): Renamed from putpkt and adjusted for binary
45 data.
46 (putpkt): New wrapper for putpkt_binary.
47 (readchar): Don't mask off the high bit.
48 (decode_X_packet): New function.
49 * server.c (main): Call putpkt_binary if a handler sets the packet
50 length. Save the length of the incoming packet. Handle 'X'.
51 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
52
be2a5f71
DJ
532006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
54
55 * server.c (handle_query): Handle qSupported.
56
ea025f5f
DJ
572006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
58
59 * remote-utils.c (all_symbols_looked_up): New variable.
60 (look_up_one_symbol): Check it.
61 * server.h (look_up_one_symbol): New declaration.
62 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
63
9308fc88
DJ
642006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
65
66 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 67 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
68 (PTRACE_GET_THREAD_AREA): Define.
69 (ps_get_thread_area): New function.
70
52fb6437
NS
712006-05-09 Nathan Sidwell <nathan@codesourcery.com>
72
73 * configure.srv (m68k*-*-uclinux*): New target.
74 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
75 (linux_resume_one_process): Remove extraneous cast.
76 (linux_read_offsets): New.
77 (linux_target_op): Add linux_read_offsets on mmuless systems.
78 * server.c (handle_query): Add qOffsets logic.
79 * target.h (struct target_ops): Add read_offsets.
80
21b0f40c
DJ
812006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
82
83 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
84 (PTRACE_GET_THREAD_AREA): Define.
85 (ps_get_thread_area): New function.
86 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
87 (linux-x86-64-low.o): Update.
88
0050a760
DJ
892006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
90
91 * configure.ac: Remove checks for prfpregset_t.
92 * gdb_proc_service.h: New file.
93 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
94 new "gdb_proc_service.h".
95 * proc-service.c: Likewise.
96 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
97 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
98 * Makefile.in (gdb_proc_service_h): Updated.
99 * configure, config.in: Regenerated.
100
b92a518e
DJ
1012006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
102
103 * remote-utils.c (prepare_resume_reply): Move declaration
104 of gdb_id_from_wait to the top of the block.
105
545587ee
DJ
1062006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
107
108 * linux-low.c (regsets_store_inferior_registers): Read the regset
109 from the target before filling it.
110
9db87ebd
DJ
1112006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
112
113 * server.c (attach_inferior): Return SIGTRAP for a successful
114 attach.
115
dd24457d
DJ
1162006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
117
118 * Makefile.in (OBS): Add version.o.
119 (STAGESTUFF): Delete.
120 (version.o): Add dependencies.
121 (version.c): Replace rule.
122 (clean): Remove version.c.
123 * server.c (gdbserver_version): New.
124 (gdbserver_usage): Use printf.
125 (main): Handle --version and --help.
126 * server.h (version, host_name): Add declarations.
127
6f0f660e
EZ
1282005-12-23 Eli Zaretskii <eliz@gnu.org>
129
130 * linux-arm-low.c:
131 * linux-arm-low.c:
132 * inferiors.c:
133 * i387-fp.h:
134 * i387-fp.c:
135 * gdbreplay.c:
136 * regcache.c:
137 * proc-service.c:
138 * mem-break.h:
139 * mem-break.c:
140 * linux-x86-64-low.c:
141 * linux-sh-low.c:
142 * linux-s390-low.c:
143 * linux-ppc64-low.c:
144 * linux-ppc-low.c:
145 * linux-mips-low.c:
146 * linux-m68k-low.c:
147 * linux-m32r-low.c:
148 * linux-low.h:
149 * linux-low.c:
150 * linux-ia64-low.c:
151 * linux-i386-low.c:
152 * linux-crisv32-low.c:
153 * thread-db.c:
154 * terminal.h:
155 * target.h:
156 * target.c:
157 * server.h:
158 * server.c:
159 * remote-utils.c:
160 * regcache.h:
161 * utils.c:
162 * Makefile.in:
163 * configure.ac:
164 * gdbserver.1: Add (C) after Copyright. Update the FSF
165 address.
166
9d1fb177
DJ
1672005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
168
169 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
170 (arm_breakpoint_at): Recognize both breakpoints.
171 (the_low_target): Use the correct breakpoint instruction.
172
011a70c2
DJ
1732005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
174
175 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
176 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
177 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
178 (the_low_target): Update.
179
7fb85e41
AS
1802005-10-25 Andreas Schwab <schwab@suse.de>
181
182 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
183
184 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
185 (ia64_num_regs): Reduce to 462.
186
3db0444b
DJ
1872005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
188
189 * acinclude.m4: Correct quoting.
190 * aclocal.m4: Regenerated.
191
192 Suggested by SZOKOVACS Robert <szo@ies.hu>:
193 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
194 (thread_db_init): Call thread_db_err_str.
195 * configure.ac: Check for TD_VERSION.
196 * config.in, configure: Regenerated.
197
bee0189a
DJ
1982005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
199
200 * server.h (error, fatal, warning): Add ATTR_FORMAT.
201
e9d25b98
DJ
2022005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
203
204 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
205 is not available. Define HAVE_PTRACE_GETREGS if it is.
206 * config.in, configure: Regenerated.
207 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
208 * linux-i386-low.c, linux-m68k-low.c: Update to use
209 HAVE_PTRACE_GETREGS.
210 * linux-low.c (regsets_fetch_inferior_registers)
211 (regsets_store_inferior_registers): Only return 0 if we processed
212 GENERAL_REGS.
213 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
214 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
215
a06660f7
DJ
2162005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
217
218 * inferiors.c (struct thread_info): Add gdb_id.
219 (add_thread): Add gdb_id argument.
220 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
221 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
222 calls to add_thread.
223 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
224 * server.c (handle_query): Use thread_to_gdb_id.
225 (handle_v_cont, main): Use gdb_id_to_thread_id.
226 * server.h (add_thread): Update prototype.
227 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
228 prototypes.
229
5a1f5858
DJ
2302005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
231
232 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
233 left-padded registers.
234 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
235 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
236
e122f1f5
SE
2372005-07-01 Steve Ellcey <sje@cup.hp.com>
238
239 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
240 * configure: Regenerate.
241 * config.in: Regenerate.
242 * server.h (NEED_DECLARATION_STRERROR):
243 Replace with !HAVE_DECL_STRERROR.
244
d592fa2f
DJ
2452005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
246
247 * linux-low.c (linux_wait, linux_send_signal): Don't test
248 an unsigned long variable for > 0 if it could be MAX_ULONG.
249 * server.c (myresume): Likewise.
250 * target.c (set_desired_inferior): Likewise.
251
ccbd4912
MK
2522005-06-13 Mark Kettenis <kettenis@gnu.org>
253
254 * configure.ac: Simplify and improve check for socklen_t.
255 * configure, config.in: Regenerate.
256
f450004a
DJ
2572005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
258
259 * acconfig.h: Remove.
260 * configure.ac: Add a test for socklen_t. Use three-argument
261 AC_DEFINE throughout.
262 * config.in: Regenerated using autoheader 2.59.
263 * configure: Regenerated.
264
265 * gdbreplay.c (socklen_t): Provide a default.
266 (remote_open): Use socklen_t.
267 * remote-utils.c (socklen_t): Provide a default.
268 (remote_open): Use socklen_t.
269 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
270 unsigned char.
271
272 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
273 char for buffers.
274 * linux-low.c (linux_read_memory, linux_write_memory)
275 (linux_read_auxv): Likewise.
276 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
277 (check_mem_write): Likewise.
278 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
279 Likewise.
280 * regcache.c (struct inferior_rgcache_data, registers_to_string)
281 (registers_from_string, register_data): Likewise.
282 * server.c (handle_query, main): Likewise.
283 * server.h (convert_ascii_to_int, convert_int_to_ascii)
284 (decode_M_packet): Likewise.
285 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
286 * target.h (struct target_ops): Update read_memory, write_memory,
287 and read_auxv.
288 (read_inferior_memory, write_inferior_memory): Update.
289 * linux-low.h (struct linux_target_ops): Change type of breakpoint
290 to unsigned char *.
291 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
292 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
293 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
294 linux-s390-low.c, linux-sh-low.c: Update for changes in
295 read_inferior_memory and the_low_target->breakpoint.
296
eee84df1
DJ
2972005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
298
299 * Makefile.in (SFILES): Add linux-ppc64-low.c.
300 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
301 * configure.srv: Add powerpc64-*-linux*.
302 * linux-ppc64-low.c: New file.
303
45b134e5
OF
3042005-05-23 Orjan Friberg <orjanf@axis.com>
305
306 * linux-cris-low.c: New file with support for CRIS.
307 * linux-crisv32-low.c: Ditto for CRISv32.
308 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
309 (clean): Add reg-cris.c and reg-crisv32.c.
310 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
311 reg-crisv32.o, and reg-crisv32.c to make rules.
312 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
313 recognized targets.
314
48d93c75
UW
3152005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
316
317 * linux-low.c (fetch_register): Ensure buffer size is a multiple
318 of sizeof (PTRACE_XFER_TYPE).
319 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
320
e013ee27
OF
3212005-05-12 Orjan Friberg <orjanf@axis.com>
322
323 * target.h (struct target_ops): Add insert_watchpoint,
324 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
325 pointers for hardware watchpoint support.
326 * linux-low.h (struct linux_target_ops): Ditto.
327 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
328 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
329 to linux_target_ops.
330 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
331 reply packet.
332 * server.c (main): Recognize 'Z' and 'z' packets.
333
b0ded00b
UW
3342005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
335
336 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
337 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
338 (the_low_target): Add new members.
339
8643e2ad
DJ
3402005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
341
342 * proc-service.c (ps_lgetregs): Search all_processes instead of
343 all_threads.
344
fc620387
DJ
3452005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
346
347 * server.c (start_inferior): Change return type to int.
348 (attach_inferior): Change sigptr to int *.
349 (handle_v_cont, handle_v_requests): Change signal to int *.
350 (main): Change signal to int.
351
3522005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
353
354 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
355 * configure.srv: Add m32r*-*-linux*.
356 * linux-m32r-low.c: New file.
357
e0e76420
DJ
3582005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
359
360 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
361
a1928bad
DJ
3622005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
363
364 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
365 Take unsigned long arguments for PIDs.
366 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
367 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
368 (wait_for_sigstop, linux_resume_one_process)
369 (regsets_fetch_inferior_registers, linux_send_signal)
370 (linux_read_auxv): Likewise. Update the types of variables holding
371 PIDs. Update format string specifiers.
372 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
373 * remote-utils.c (prepare_resume_reply): Likewise.
374 * server.c (cont_thread, general_thread, step_thread)
375 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
376 unsigned long.
377 (handle_query): Update format specifiers.
378 (handle_v_cont, main): Use strtoul for thread IDs.
379 * server.h (struct inferior_list_entry): Use unsigned long for ID.
380 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
381 (general_thread, step_thread, thread_from_wait)
382 (old_thread_from_wait): Update.
383 * target.h (struct thread_resume): Use unsigned long for THREAD.
384 (struct target_ops): Use unsigned long for arguments to attach and
385 thread_alive.
386
dcdb98d2
DJ
3872005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
388
389 * acinclude.m4: Include bfd/bfd.m4 directly.
390 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
391 <agriffis@toolchain.org>.
392 * aclocal.m4, configure: Regenerated.
393
bec39cab
AC
3942005-01-07 Andrew Cagney <cagney@gnu.org>
395
396 * configure.ac: Rename configure.in, require autoconf 2.59.
397 * configure: Re-generate.
398
434c4c77
DJ
3992004-12-08 Daniel Jacobowitz <dan@debian.org>
400
401 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
402 LIBS when finished.
403 * aclocal.m4: Regenerated.
404 * configure: Regenerated.
405
db1d3e1b
AS
4062004-11-21 Andreas Schwab <schwab@suse.de>
407
408 * linux-m68k-low.c (m68k_num_gregs): Define.
409 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
410 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
411 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
412 (m68k_breakpoint_at): New. Add to the_low_target.
413
414 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
415 srv_linux_thread_db to yes.
416
43360365
JB
4172004-10-20 Joel Brobecker <brobecker@gnat.com>
418
419 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
420 (ARCH_SET_FS): Likewise.
421 (ARCH_GET_FS): Likewise.
422 (ARCH_GET_GS): Likewise.
423
fd500816
DJ
4242004-10-16 Daniel Jacobowitz <dan@debian.org>
425
426 * linux-i386-low.c (ps_get_thread_area): New.
427 * linux-x86-64-low.c (ps_get_thread_area): New.
428 * linux-low.c: Include <sys/syscall.h>.
429 (linux_kill_one_process): Don't kill the first thread here.
430 (linux_kill): Kill the first thread here.
431 (kill_lwp): New function.
432 (send_sigstop, linux_send_signal): Use it.
433 * proc-service.c: Clean up #ifdefs.
434 (fpregset_info): Delete.
435 (ps_lgetregs): Update and enable implementation.
436 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
437 implementations.
438 * remote-utils.c (struct sym_cache, symbol_cache): New.
439 (input_interrupt): Print a clearer message.
440 (async_io_enabled): New variable.
441 (enable_async_io, disable_async_io): Use it. Update comments.
442 (look_up_one_symbol): Use the symbol cache.
443 * thread-db.c (thread_db_look_up_symbols): New function.
444 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
445
f6de3c42
DJ
4462004-10-16 Daniel Jacobowitz <dan@debian.org>
447
448 * configure.in: Test for -rdynamic.
449 * configure: Regenerated.
450 * Makefile (INTERNAL_LDFLAGS): New.
451 (gdbserver, gdbreplay): Use it.
452
2c0fc042
AC
4532004-09-02 Andrew Cagney <cagney@gnu.org>
454
455 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
456
075b3282
DJ
4572004-03-23 Daniel Jacobowitz <drow@mvista.com>
458
459 * linux-low.c (linux_wait): Clear all_processes list also.
460
fa6a77dc
DJ
4612004-03-12 Daniel Jacobowitz <drow@mvista.com>
462
463 * linux-low.c: Include <errno.h>. Remove extern declaration of
464 errno.
465
6d782a97
DJ
4662004-03-12 Daniel Jacobowitz <drow@mvista.com>
467
468 * gdbreplay.c, server.h, utils.c: Update copyright years.
469
3a7fb99b
DJ
4702004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
471
472 * server.c (main): Print child status or termination signal from
473 variable 'signal', not 'sig'.
474
c3e735a6
DJ
4752004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
476
477 * linux-low.c (linux_read_memory): Change return type to
478 int. Check for and return error from ptrace().
479 * target.c (read_inferior_memory): Change return type to int. Pass
480 back return status from the_target->read_memory().
481 * target.h (struct target_ops): Adapt *read_memory() prototype.
482 Update comment.
483 (read_inferior_memory): Adapt prototype.
484 * server.c (main): Return an error packet if
485 read_inferior_memory() returns an error.
486
a59d1c82
DJ
4872004-03-04 Daniel Jacobowitz <drow@mvista.com>
488
489 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
490 Unify with other clean targets.
491
dc3f8883
DJ
4922004-02-29 Daniel Jacobowitz <drow@mvista.com>
493
494 * server.c (handle_v_cont): Call set_desired_inferior.
495
89a208da
DJ
4962004-02-29 Daniel Jacobowitz <drow@mvista.com>
497
498 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
499
62ea82f5
DJ
5002004-02-29 Daniel Jacobowitz <drow@mvista.com>
501
502 * linux-low.c (linux_wait): Unblock async I/O.
503 (linux_resume): Block and enable async I/O.
504 * remote-utils.c (block_async_io, unblock_async_io): New functions.
505 * server.h (block_async_io, unblock_async_io): Add prototypes.
506
6910d122
DJ
5072004-02-29 Daniel Jacobowitz <drow@mvista.com>
508
509 * remote-utils.c (remote_open): Print a status notice after
510 opening a TCP port.
511 * server.c (attach_inferior): Print a status notice after
512 attaching.
513
5142004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
515
516 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
517
c89dc5d4
DJ
5182004-02-26 Daniel Jacobowitz <drow@mvista.com>
519
520 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
521 error packet.
522 * server.c, target.h: Update copyright years.
523
4b8dad4a
RM
5242004-02-25 Roland McGrath <roland@redhat.com>
525
526 * target.h (struct target_ops): New member `read_auxv'.
527 * server.c (handle_query): Handle qPart:auxv:read: query using that.
528 * linux-low.c (linux_read_auxv): New function.
529 (linux_target_ops): Initialize `read_auxv' member to that.
530
d7446758
JB
5312004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
532
533 Committed by Jim Blandy <jimb@redhat.com>.
534
535 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 536 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
537 instead of GPR_SIZE to distiguish s390 and s390x targets.
538
5544ad89
DJ
5392004-01-31 Daniel Jacobowitz <drow@mvista.com>
540
541 * linux-low.c: Update copyright year.
542 (check_removed_breakpoint): Clear pending_is_breakpoint.
543 (linux_set_resume_request, linux_queue_one_thread)
544 (resume_status_pending_p): New functions.
545 (linux_continue_one_thread): Use process->resume.
546 (linux_resume): Only resume threads if there are no pending events.
547 * linux-low.h (struct process_info): Add resume request
548 pointer.
549
2a68b70e
DJ
5502004-01-30 Daniel Jacobowitz <drow@mvista.com>
551
552 * regcache.c (new_register_cache): Clear the allocated register
553 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
554
64386c31
DJ
5552003-10-13 Daniel Jacobowitz <drow@mvista.com>
556
557 * linux-low.c (linux_resume): Take a struct thread_resume *
558 argument.
559 (linux_wait): Update call.
560 (resume_ptr): New static variable.
561 (linux_continue_one_thread): Renamed from
562 linux_continue_one_process. Use resume_ptr.
563 (linux_resume): Use linux_continue_one_thread.
564 * server.c (handle_v_cont, handle_v_requests): New functions.
565 (myresume): New function.
566 (main): Handle 'v' case.
567 * target.h (struct thread_resume): New type.
568 (struct target_ops): Change argument of "resume" to struct
569 thread_resume *.
570 (myresume): Delete macro.
571
c938e9b0
L
5722003-08-08 H.J. Lu <hongjiu.lu@intel.com>
573
574 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
575 (uninstall): Support DESTDIR.
576
7f313d07
BC
577Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
578
579 * configure.srv: Add xscale*linux copy of arm*linux entry.
580
3b2fc2ea
DJ
5812003-07-24 Daniel Jacobowitz <drow@mvista.com>
582
583 * linux-arm-low.c (arm_reinsert_addr): New function.
584 (the_low_target): Add arm_reinsert_addr.
585
1c0a559e
MK
5862003-07-08 Mark Kettenis <kettenis@gnu.org>
587
588 * mem-break.c: Remove whitespace at end of file.
589
43d5792c
DJ
5902003-06-28 Daniel Jacobowitz <drow@mvista.com>
591
592 * configure.in: Check whether we need to prototype strerror.
593 * server.h: Optionally prototype strerror.
594 * gdbreplay.c (perror_with_name): Use strerror.
595 * linux-low.c (linux_attach_lwp): Use strerror.
596 * utils.c (perror_with_name): Use strerror.
597 * config.in, configure: Regenerated.
598
c8a86edf
DJ
5992003-06-28 Daniel Jacobowitz <drow@mvista.com>
600
601 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
602 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
603
73d37363
DJ
6042003-06-20 Daniel Jacobowitz <drow@mvista.com>
605
606 * Makefile.in (SFILES): Update.
607 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
608 low-sun3.c: Remove files.
609
6ad8ae5c
DJ
6102003-06-17 Daniel Jacobowitz <drow@mvista.com>
611
612 * linux-low.c: Move comment to linux_thread_alive where it belonged.
613 (linux_detach_one_process, linux_detach): New functions.
614 (linux_target_ops): Add linux_detach.
615 * server.c (main): Handle 'D' packet.
616 * target.h (struct target_ops): Add "detach" member.
617 (detach_inferior): Define.
618
1581182a
MK
6192003-06-13 Mark Kettenis <kettenis@gnu.org>
620
621 From Kelley Cook <kelleycook@wideopenwest.com>:
622 * configure.srv: Accept i[34567]86 variants.
623
e5379b03
DJ
6242003-06-05 Daniel Jacobowitz <drow@mvista.com>
625
626 * linux-low.c (linux_wait_for_event): Correct comment typos.
627 (linux_resume_one_process): Call check_removed_breakpoint.
628 (linux_send_signal): New function.
629 (linux_target_ops): Add linux_send_signal.
630 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
631 of kill.
632 * target.h (struct target_ops): Add send_signal.
633
2ff29de4
JB
6342003-05-29 Jim Blandy <jimb@redhat.com>
635
636 * linux-low.c (usr_store_inferior_registers): Transfer buf in
637 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
638 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
639 away part of the register's value.
640
254787d4
DJ
6412003-03-26 Daniel Jacobowitz <drow@mvista.com>
642
643 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
644 (linux_wait_for_event, linux_init_signals): Likewise.
645
94e10508
DJ
6462003-03-17 Daniel Jacobowitz <drow@mvista.com>
647
648 * configure.in: Check for stdlib.h.
649 * configure: Regenerated.
650 * config.in: Regenerated.
651
4c0711e0
DJ
6522003-01-04 Andreas Schwab <schwab@suse.de>
653
654 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
655
ef66e766
AC
6562003-01-02 Andrew Cagney <ac131313@redhat.com>
657
658 * Makefile.in: Remove obsolete code.
659
a1358604
DJ
6602002-11-20 Daniel Jacobowitz <drow@mvista.com>
661
662 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
663 defined(PT_FPR0_HI).
664
23ce3b1c
DJ
6652002-11-17 Stuart Hughes <seh@zee2.com>
666
667 * linux-arm-low.c (arm_num_regs): Increase.
668 (arm_regmap): Include status register.
669
6702002-11-17 Daniel Jacobowitz <drow@mvista.com>
671
672 * linux-low.c (register_addr): Remove incorrect -1 check.
673
a9fa9f7d
DJ
6742002-08-29 Daniel Jacobowitz <drow@mvista.com>
675
676 * linux-low.c (linux_create_inferior): Call setpgid. Return
677 the new PID.
678 (unstopped_p, linux_signal_pid): Remove.
679 (linux_target_ops): Remove linux_signal_pid.
680 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
681 global instead of target method.
682 * target.h (struct target_ops): Remove signal_pid. Update comment
683 for create_inferior.
684 * server.c (signal_pid): New variable.
685 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 686 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
687 (attach_inferior): Set signal_pid.
688
17574093
DJ
6892002-08-23 Daniel Jacobowitz <drow@mvista.com>
690
691 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
692
6932002-08-20 Jim Blandy <jimb@redhat.com>
694
695 * Makefile.in (LDFLAGS): Allow the configure script to establish a
696 default for this.
697
6982002-08-01 Andrew Cagney <cagney@redhat.com>
699
700 * Makefile.in: Make chill references obsolete.
701
7022002-07-24 Kevin Buettner <kevinb@redhat.com>
703
704 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
705 * configure: Regenerate.
706 * config.in: Regenerate.
707
7082002-07-09 David O'Brien <obrien@FreeBSD.org>
709
710 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
711 (perror_with_name, remote_close, remote_open, expect, play): Static.
712
7132002-07-04 Michal Ludvig <mludvig@suse.cz>
714
4b8dad4a 715 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
716 byte offsets instead of an array of indexes.
717 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
718
7192002-06-13 Daniel Jacobowitz <drow@mvista.com>
720
721 * regcache.c: Add comment.
722
7232002-06-11 Daniel Jacobowitz <drow@mvista.com>
724
725 * thread-db.c: New file.
726 * proc-service.c: New file.
727 * acinclude.m4: New file.
728 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
729 proc-service.o, and thread-db.o.
730 (linux-low.o): Add USE_THREAD_DB.
731 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
732 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
733 * aclocal.m4: Regenerated.
734 * config.in: Regenerated.
735 * configure: Regenerated.
736 * configure.in: Check for proc_service.h, sys/procfs.h,
737 thread_db.h, and linux/elf.h headrs.
738 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
739 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
740 Check for -lthread_db and thread support.
741 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
742 PowerPC, and SuperH.
743 * i387-fp.c: Constify arguments.
744 * i387-fp.h: Likewise.
745 * inferiors.c: (struct thread_info): Renamed from
746 `struct inferior_info'. Remove PID member. Use generic inferior
747 list header. All uses updated.
748 (inferiors, signal_pid): Removed.
749 (all_threads): New variable.
750 (get_thread): Define.
751 (add_inferior_to_list): New function.
752 (for_each_inferior): New function.
753 (change_inferior_id): New function.
754 (add_inferior): Removed.
755 (remove_inferior): New function.
756 (add_thread): New function.
757 (free_one_thread): New function.
758 (remove_thread): New function.
759 (clear_inferiors): Use for_each_inferior and free_one_thread.
760 (find_inferior): New function.
761 (find_inferior_id): New function.
762 (inferior_target_data): Update argument type.
763 (set_inferior_target_data): Likewise.
764 (inferior_regcache_data): Likewise.
765 (set_inferior_regcache_data): Likewise.
766 * linux-low.c (linux_bp_reinsert): Remove.
767 (all_processes, stopping_threads, using_thrads)
768 (struct pending_signals, debug_threads, pid_of): New.
769 (inferior_pid): Replace with macro.
770 (struct inferior_linux_data): Remove.
771 (get_stop_pc, add_process): New functions.
772 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
773 Use add_process and add_thread.
774 (linux_attach_lwp): New function, based on old linux_attach. Use
775 add_process and add_thread. Set stop_expected for new threads.
776 (linux_attach): New function.
777 (linux_kill_one_process): New function.
778 (linux_kill): Kill all LWPs.
779 (linux_thread_alive): Use find_inferior_id.
780 (check_removed_breakpoints, status_pending_p): New functions.
781 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
782 Update. Use WNOHANG. Wait for cloned processes also. Update process
783 struct for the found process.
784 (linux_wait_for_event): New function.
785 (linux_wait): Use it. Support LWPs.
786 (send_sigstop, wait_for_sigstop, stop_all_processes)
787 (linux_resume_one_process, linux_continue_one_process): New functions.
788 (linux_resume): Support LWPs.
789 (REGISTER_RAW_SIZE): Remove.
790 (fetch_register): Use register_size instead. Call supply_register.
791 (usr_store_inferior_registers): Likewise. Call collect_register.
792 Fix recursive case.
793 (regsets_fetch_inferior_registers): Improve error message.
794 (regsets_store_inferior_registers): Add debugging.
795 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
796 (unstopped_p, linux_signal_pid): New functions.
797 (linux_target_ops): Add linux_signal_pid.
798 (linux_init_signals): New function.
799 (initialize_low): Call it. Initialize using_threads.
800 * regcache.c (inferior_regcache_data): Add valid
801 flag.
802 (get_regcache): Fetch registers lazily. Add fetch argument
803 and update all callers.
804 (regcache_invalidate_one, regcache_invalidate): New
805 functions.
806 (new_register_cache): Renamed from create_register_cache.
807 Return the new regcache.
808 (free_register_cache): Change argument to a void *.
809 (registers_to_string, registers_from_string): Call get_regcache
810 with fetch flag set.
811 (register_data): Make static. Pass fetch flag to get_regcache.
812 (supply_register): Call get_regcache with fetch flag clear.
813 (collect_register): Call get_regcache with fetch flag set.
814 (collect_register_as_string): New function.
815 * regcache.h: Update.
816 * remote-utils.c (putpkt): Flush after debug output and use
817 stderr.
818 Handle input interrupts while waiting for an ACK.
819 (input_interrupt): Use signal_pid method.
820 (getpkt): Flush after debug output and use stderr.
821 (outreg): Use collect_register_as_string.
822 (new_thread_notify, dead_thread_notify): New functions.
823 (prepare_resume_reply): Check using_threads. Set thread_from_wait
824 and general_thread.
825 (look_up_one_symbol): Flush after debug output.
826 * server.c (step_thread, server_waiting): New variables.
827 (start_inferior): Don't use signal_pid. Update call to mywait.
828 (attach_inferior): Update call to mywait.
829 (handle_query): Handle qfThreadInfo and qsThreadInfo.
830 (main): Don't fetch/store registers explicitly. Use
831 set_desired_inferior. Support proposed ``Hs'' packet. Update
832 calls to mywait.
833 * server.h: Update.
834 (struct inferior_list, struct_inferior_list_entry): New.
835 * target.c (set_desired_inferior): New.
836 (write_inferior_memory): Constify.
837 (mywait): New function.
838 * target.h: Update.
839 (struct target_ops): New signal_pid method.
840 (mywait): Removed macro, added prototype.
841
842 * linux-low.h (regset_func): Removed.
843 (regset_fill_func, regset_store_func): New.
844 (enum regset_type): New.
845 (struct regset_info): Add type field. Use new operation types.
846 (struct linux_target_ops): stop_pc renamed to get_pc.
847 Add decr_pc_after_break and breakpoint_at.
848 (get_process, get_thread_proess, get_process_thread)
849 (strut process_info, all_processes, linux_attach_lwp)
850 (thread_db_init): New.
851
852 * linux-arm-low.c (arm_get_pc, arm_set_pc,
853 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
854 (the_low_target): Add new members.
855 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
856 (i386_store_fpxregset): Constify.
857 (target_regsets): Add new kind identifier.
858 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
859 (i386_set_pc): Add debugging.
860 (i386_breakpoint_at): New function.
861 (the_low_target): Add new members.
862 * linux-mips-low.c (mips_get_pc, mips_set_pc)
863 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
864 (mips_breakpoint_at): New.
865 (the_low_target): Add new members.
866 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
867 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
868 (the_low_target): Add new members.
869 * linux-sh-low.c (sh_get_pc, sh_set_pc)
870 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
871 (the_low_target): Add new members.
872 * linux-x86-64-low.c (target_regsets): Add new kind
873 identifier.
874
8752002-05-15 Daniel Jacobowitz <drow@mvista.com>
876
877 From Martin Pool <mbp@samba.org>:
878 * server.c (gdbserver_usage): New function.
879 (main): Call it.
880
8812002-05-14 Daniel Jacobowitz <drow@mvista.com>
882
883 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
884 stop_at -> stop_pc.
885
8862002-05-04 Andrew Cagney <ac131313@redhat.com>
887
888 * Makefile.in: Remove obsolete code.
889
8902002-04-24 Michal Ludvig <mludvig@suse.cz>
891
892 * linux-low.c (regsets_fetch_inferior_registers),
893 (regsets_store_inferior_registers): Removed cast to int from
894 ptrace() calls.
895 * regcache.h: Added declaration of struct inferior_info.
896
8972002-04-20 Daniel Jacobowitz <drow@mvista.com>
898
899 * inferiors.c (struct inferior_info): Add regcache_data.
900 (add_inferior): Call create_register_cache.
901 (clear_inferiors): Call free_register_cache.
902 (inferior_regcache_data, set_inferior_regcache_data): New functions.
903 * regcache.c (struct inferior_regcache_data): New.
904 (registers): Remove.
905 (get_regcache): New function.
906 (create_register_cache, free_register_cache): New functions.
907 (set_register_cache): Don't initialize the register cache here.
908 (registers_to_string, registers_from_string, register_data): Call
909 get_regcache.
910 * regcache.h: Add prototypes.
911 * server.h: Likewise.
912
9132002-04-20 Daniel Jacobowitz <drow@mvista.com>
914
915 * mem-break.c: New file.
916 * mem-break.h: New file.
917 * Makefile.in: Add mem-break.o rule; update server.h
918 dependencies.
919 * inferiors.c (struct inferior_info): Add target_data
920 member.
921 (clear_inferiors): Free target_data member if set.
922 (inferior_target_data, set_inferior_target_data): New functions.
923 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
924 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
925 * linux-low.c (linux_bp_reinsert): New variable.
926 (struct inferior_linux_data): New.
927 (linux_create_inferior): Use set_inferior_target_data.
928 (linux_attach): Likewise. Call add_inferior.
929 (linux_wait_for_one_inferior): New function.
930 (linux_wait): Call it.
931 (linux_write_memory): Add const.
932 (initialize_low): Call set_breakpoint_data.
933 * linux-low.h (struct linux_target_ops): Add breakpoint
934 handling members.
935 * server.c (attach_inferior): Remove extra add_inferior
936 call.
937 * server.h: Include mem-break.h. Update inferior.c
938 prototypes.
939 * target.c (read_inferior_memory)
940 (write_inferior_memory): New functions.
941 * target.h (read_inferior_memory)
942 (write_inferior_memory): Change macros to prototypes.
943 (struct target_ops): Update comments. Add const to write_memory
944 definition.
945
9462002-04-11 Daniel Jacobowitz <drow@mvista.com>
947
948 * linux-low.c (usr_store_inferior_registers): Support
949 registers which are allowed to fail to store.
950 * linux-low.h (linux_target_ops): Likewise.
951 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
952 (ppc_cannot_store_register): FPSCR may not be storable.
953
9542002-04-09 Daniel Jacobowitz <drow@mvista.com>
955
956 * server.h: Include <string.h> if HAVE_STRING_H.
957 * ChangeLog: Correct paths in last ChangeLog entry.
958
9592002-04-09 Daniel Jacobowitz <drow@mvista.com>
960
961 * linux-low.h: Remove obsolete prototypes.
962 (struct linux_target_ops): New.
963 (extern the_low_target): New.
964 * linux-low.c (num_regs, regmap): Remove declarations.
965 (register_addr): Use the_low_target explicitly.
966 (fetch_register): Likewise.
967 (usr_fetch_inferior_registers): Likewise.
968 (usr_store_inferior_registers): Likewise.
969 * linux-arm-low.c (num_regs): Remove.
970 (arm_num_regs): Define.
971 (arm_regmap): Renamed from regmap, made static.
972 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
973 made static.
974 (arm_cannot_store_register): Renamed from cannot_store_register,
975 made static.
976 (the_low_target): New.
977 * linux-i386-low.c (num_regs): Remove.
978 (i386_num_regs): Define.
979 (i386_regmap): Renamed from regmap, made static.
980 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
981 made static.
982 (i386_cannot_store_register): Renamed from cannot_store_register,
983 made static.
984 (the_low_target): New.
985 * linux-ia64-low.c (num_regs): Remove.
986 (ia64_num_regs): Define.
987 (ia64_regmap): Renamed from regmap, made static.
988 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
989 made static.
990 (ia64_cannot_store_register): Renamed from cannot_store_register,
991 made static.
992 (the_low_target): New.
993 * linux-m68k-low.c (num_regs): Remove.
994 (m68k_num_regs): Define.
995 (m68k_regmap): Renamed from regmap, made static.
996 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
997 made static.
998 (m68k_cannot_store_register): Renamed from cannot_store_register,
999 made static.
1000 (the_low_target): New.
1001 * linux-mips-low.c (num_regs): Remove.
1002 (mips_num_regs): Define.
1003 (mips_regmap): Renamed from regmap, made static.
1004 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1005 made static.
1006 (mips_cannot_store_register): Renamed from cannot_store_register,
1007 made static.
1008 (the_low_target): New.
1009 * linux-ppc-low.c (num_regs): Remove.
1010 (ppc_num_regs): Define.
1011 (ppc_regmap): Renamed from regmap, made static.
1012 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1013 made static.
1014 (ppc_cannot_store_register): Renamed from cannot_store_register,
1015 made static.
1016 (the_low_target): New.
1017 * linux-s390-low.c (num_regs): Remove.
1018 (s390_num_regs): Define.
1019 (s390_regmap): Renamed from regmap, made static.
1020 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1021 made static.
1022 (s390_cannot_store_register): Renamed from cannot_store_register,
1023 made static.
1024 (the_low_target): New.
1025 * linux-sh-low.c (num_regs): Remove.
1026 (sh_num_regs): Define.
1027 (sh_regmap): Renamed from regmap, made static.
1028 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1029 made static.
1030 (sh_cannot_store_register): Renamed from cannot_store_register,
1031 made static.
1032 (the_low_target): New.
1033 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1034 (the_low_target): New.
1035
10362002-04-09 Daniel Jacobowitz <drow@mvista.com>
1037
1038 * Makefile.in: Add stamp-h target.
1039 * configure.in: Create stamp-h.
1040 * configure: Regenerated.
1041
10422002-04-09 Daniel Jacobowitz <drow@mvista.com>
1043
1044 * inferiors.c: New file.
1045 * target.c: New file.
1046 * target.h: New file.
1047 * Makefile.in: Add target.o and inferiors.o. Update
1048 dependencies.
1049 * linux-low.c (inferior_pid): New static variable,
1050 moved from server.c.
1051 (linux_create_inferior): Renamed from create_inferior.
1052 Call add_inferior. Return 0 on success instead of a PID.
1053 (linux_attach): Renamed from myattach.
1054 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1055 (linux_thread_alive): Renamed from mythread_alive.
1056 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1057 child dies.
1058 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1059 (regsets_store_inferior_registers): Correct error message.
1060 Add missing ``return 0''.
1061 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1062 (linux_store_registers): Renamed from store_inferior_registers.
1063 (linux_read_memory): Renamed from read_inferior_memory.
1064 (linux_write_memory): Renamed from write_inferior_memory.
1065 (linux_target_ops): New structure.
1066 (initialize_low): Call set_target_ops ().
1067 * remote-utils.c (unhexify): New function.
1068 (hexify): New function.
1069 (input_interrupt): Send signals to ``signal_pid''.
1070 * server.c (inferior_pid): Remove.
1071 (start_inferior): Update create_inferior call.
1072 (attach_inferior): Call add_inferior.
1073 (handle_query): New function.
1074 (main): Call handle_query for `q' packets.
1075 * server.h: Include "target.h". Remove obsolete prototypes.
1076 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1077
10782002-04-09 Daniel Jacobowitz <drow@mvista.com>
1079
1080 * Makefile.in: Add WARN_CFLAGS. Update configury
1081 dependencies.
1082 * configure.in: Check for <string.h>
1083 * configure: Regenerate.
1084 * config.in: Regenerate.
1085 * gdbreplay.c: Include needed system headers.
1086 (remote_open): Remove strchr prototype.
1087 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1088 * regcache.c (supply_register): Change buf argument to const void *.
1089 (supply_register_by_name): Likewise.
1090 (collect_register): Change buf argument to void *.
1091 (collect_register_by_name): Likewise.
1092 * regcache.h: Add missing prototypes.
1093 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1094 * server.c (handle_query): New function.
1095 (attached): New static variable, moved out of main.
1096 (main): Quiet longjmp clobber warnings.
1097 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1098 * utils.c (error): Remove NORETURN.
1099 (fatal): Likewise.
This page took 0.484136 seconds and 4 git commands to generate.