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