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