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