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