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