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