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