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