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