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