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