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