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