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