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