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