* remote-utils.c (prepare_resume_reply): If requested, don't
[deliverable/binutils-gdb.git] / gdb / gdbserver / ChangeLog
1 2008-06-27 Pedro Alves <pedro@codesourcery.com>
2
3 * remote-utils.c (prepare_resume_reply): If requested, don't
4 output "thread:TID" in the T stop reply.
5
6 * server.c (disable_packet_vCont, disable_packet_Tthread)
7 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
8 (handle_query): If requested, disable support for qC, qfThreadInfo
9 and qsThreadInfo.
10 (handle_v_requests): If requested, disable support for vCont.
11 (gdbserver_show_disableable): New.
12 (main): Handle --disable-packet and --disable-packet=LIST.
13
14 * server.h (disable_packet_vCont, disable_packet_Tthread)
15 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
16
17 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
18
19 * server.c (gdbserver_usage): Mention --version.
20
21 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
22
23 * Makefile.in (gdbreplay.o): New rule.
24
25 2008-06-06 Joseph Myers <joseph@codesourcery.com>
26
27 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
28 message, not gdbserver.
29
30 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
31 Nathan Sidwell <nathan@codesourcery.com>
32 Joseph Myers <joseph@codesourcery.com>
33
34 * acinclude.m4: Include ../../config/acx.m4.
35 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
36 * configure, config.in: Regenerate.
37 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
38 * server.c (gdbserver_version): Print PKGVERSION.
39 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
40 (main): Adjust gdbserver_usage calls.
41 * gdbreplay.c (version, host_name): Add declarations.
42 (gdbreplay_version, gdbreplay_usage): New.
43 (main): Accept --version and --help options.
44
45 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
46
47 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
48 (arm_breakpoint_at): Handle Thumb.
49 (the_low_target): Add comment.
50
51 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
52
53 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
54
55 2008-05-09 Doug Evans <dje@google.com>
56
57 * server.h (decode_search_memory_packet): Declare.
58 * remote-utils.c (decode_search_memory_packet): New fn.
59 * server.c (handle_search_memory_1): New fn.
60 (handle_search_memory): New fn.
61 (handle_query): Process qSearch:memory packets.
62
63 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
64
65 * regcache.c (registers_length): Remove.
66 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
67 full register packet.
68 * regcache.h (registers_length): Remove prototype.
69 * server.h (PBUFSIZ): Define to 16384.
70
71 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
72
73 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
74 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
75 powerpc-64l.o, and powerpc-altivec64l.o.
76 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
77 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
78 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
79 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
80 rs6000/power-linux.xml, and rs6000/power64-linux.xml
81 to srv_xmlfiles.
82
83 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
84 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
85 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
86 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
87 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
88 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
89 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
90 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
91 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
92 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
93 (clean): Update.
94
95 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
96 (init_registers_powerpc_32l): ... this new prototype.
97 (init_registers_powerpc_32): Remove, replace by ...
98 (init_registers_powerpc_altivec32l): ... this new prototype.
99 (init_registers_powerpc_e500): Remove, replace by ...
100 (init_registers_powerpc_e500l): ... this new prototype.
101 (init_registers_ppc64): Remove, replace by ...
102 (init_registers_powerpc_64l): ... this new prototype.
103 (init_registers_powerpc_64): Remove, replace by ...
104 (init_registers_powerpc_altivec64l): ... this new prototype.
105 (ppc_num_regs): Set to 73.
106 (PT_ORIG_R3, PT_TRAP): Define if necessary.
107 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
108 (ppc_cannot_store_register): Handle orig_r3 and trap.
109 (ppc_arch_setup): Update init_registers_... calls.
110 (ppc_fill_gregset): Handle orig_r3 and trap.
111
112 * inferiors.c (clear_inferiors): Reset current_inferior.
113
114 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
115
116 * acinclude.m4: Add override.m4.
117 * configure: Regenerate.
118
119 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
120
121 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
122 initial call to init_register_ppc64.
123
124 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
125
126 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into single
127 powerpc*-*-linux* case.
128 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
129
130 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
131
132 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
133 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
134 from reg_xmlfiles.
135 * linux-ppc-low.c: Include <elf.h>.
136 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
137 (ppc_hwcap): New global variable.
138 (ppc_regmap): Remove __SPE__ #ifdef sections.
139 (ppc_regmap_e500): New global variable.
140 (ppc_cannot_store_register): Update __SPE__ special case.
141 (ppc_get_hwcap): New function.
142 (ppc_arch_setup): Use it to determine whether inferior supports
143 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
144 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
145 Do not access registers if target does not support AltiVec.
146 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
147 Do not access registers if target does not support SPE.
148 (target_regsets): Unconditionally include AltiVec and SPE regsets.
149
150 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
151
152 * linux-low.c (disabled_regsets, num_regsets): New.
153 (use_regsets_p): Delete.
154 (linux_wait_for_process): Clear disabled_regsets.
155 (regsets_fetch_inferior_registers): Check and set it.
156 (regsets_store_inferior_registers): Likewise.
157 (linux_fetch_registers, linux_store_registers): Do not use
158 use_regsets_p.
159 (initialize_low): Allocate disabled_regsets.
160
161 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
162
163 * Makefile.in (LIBOBJS): New.
164 (OBS): Use LIBOBJS.
165 (memmem.o): New rule.
166 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
167 * configure: Regenerated.
168
169 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
170
171 * server.c (handle_query): Never return "unsupported" for
172 qXfer:features:read queries.
173
174 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
175
176 * server.c (get_features_xml): Fix inverted condition.
177 (handle_query): Always support qXfer:feature:read.
178
179 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
180
181 * server.c (wrapper_argv): New.
182 (start_inferior): Handle wrapper_argv. If set, expect an extra
183 trap.
184 (gdbserver_usage): Document --wrapper.
185 (main): Parse --wrapper.
186
187 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
188
189 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
190 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
191 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
192 (ppc_set_pc): Likewise.
193 (ppc_arch_setup): New function.
194 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
195 of collect_register.
196 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
197
198 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
199
200 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
201 instead of linux-ppc64-low.o.
202 * linux-ppc64-low.c: Remove file.
203 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
204 (linux-ppc64-low.o): Remove rule.
205
206 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
207 (init_registers_powerpc_64): Likewise.
208 (ppc_regmap): Conditionally define depending on __powerpc64__.
209 (ppc_cannot_store_register): Do not special-case "fpscr" when
210 compiled on __powerpc64__.
211 (ppc_collect_ptrace_register): New function.
212 (ppc_supply_ptrace_register): New function.
213 (ppc_breakpoint): Change type to "unsigned int".
214 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
215 (the_low_target): Conditionally provide initializers for the
216 arch_setup member depending on __powerpc64__. Install
217 collect_ptrace_register and supply_ptrace_register members.
218
219 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
220
221 * regcache.h (gdbserver_xmltarget): Add extern declaration.
222 * server.c (gdbserver_xmltarget): Define.
223 (get_features_xml): Use it to replace "target.xml" and arch_string.
224
225 * configure.srv: Remove srv_xmltarget. Add XML files that were
226 mentioned there to srv_xmlfiles instead. Remove conditional tests
227 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
228 srv_xmlfiles and srv_regobj to include all possible choices.
229 * configure.ac (srv_xmltarget): Remove.
230 (srv_xmlfiles): Do not add "target.xml".
231 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
232 checks for supplementary target information.
233 * configure: Regenerate.
234 * Makefile.in (XML_TARGET): Remove.
235 (target.xml): Remove rule.
236 (clean): Do not clean up target.xml.
237 (.PRECIOUS): Do not mention target.xml.
238
239 * target.h (struct target_ops): Remove arch_string member.
240 * linux-low.c (linux_arch_string): Remove.
241 (linux_target_ops): Remove arch_string initializer.
242 * linux-low.h (struct linux_target_ops): Remove arch_string member.
243 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
244 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
245 * spu-low.c (spu_arch_string): Remove.
246 (spu_target_ops): Remove arch_string initializer.
247 * win32-low.c (win32_arch_string): Remove.
248 (win32_target_ops): Remove arch_string initializer.
249 * win32-low.h (struct win32_target_ops): Remove arch_string member.
250 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
251 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
252
253 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
254
255 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
256 by collect_ptrace_register and supply_ptrace_register hooks.
257 * linux-low.c (fetch_register): Use supply_ptrace_register callback
258 instead of checking for the_low_target.left_pad_xfer.
259 (usr_store_inferior_registers): Use collect_ptrace_register callback
260 instead of checking for the_low_target.left_pad_xfer.
261
262 * linux-s390-low.c (s390_collect_ptrace_register): New function.
263 (s390_supply_ptrace_register): Likewise.
264 (s390_fill_gregset): Call s390_collect_ptrace_register.
265 (the_low_target): Update.
266
267 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
268 (ppc_supply_ptrace_register): Likewise.
269 (the_low_target): Update.
270
271 * linux-i386-low.c (the_low_target): Update.
272 * linux-x86-64-low.c (the_low_target): Update.
273
274 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
275
276 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
277 reg-s390.o and reg-s390x.o.
278
279 * linux-low.c (new_inferior): New global variable.
280 (linux_create_inferior, linux_attach): Set it.
281 (linux_wait_for_process): Call the_low_target.arch_setup after the
282 target has stopped for the first time.
283 (initialize_low): Do not call the_low_target.arch_setup.
284
285 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
286 (s390_set_pc): Likewise.
287 (s390_arch_setup): New function.
288 (the_low_target): Use s390_arch_setup as arch_setup routine.
289
290 * regcache.c (realloc_register_cache): New function.
291 (set_register_cache): Call it for each existing regcache.
292
293 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
294
295 * server.h (init_registers): Remove prototype.
296
297 * linux-low.h (struct linux_target_ops): Add arch_setup field.
298 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
299 instead of init_registers ().
300 * linux-arm-low.c (init_registers_arm): Add prototype.
301 (init_registers_arm_with_iwmmxt): Likewise.
302 (the_low_target): Add initializer for arch_setup field.
303 * linux-cris-low.c (init_registers_cris): Add prototype.
304 (the_low_target): Add initializer for arch_setup field.
305 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
306 (the_low_target): Add initializer for arch_setup field.
307 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
308 (the_low_target): Add initializer for arch_setup field.
309 * linux-ia64-low.c (init_registers_ia64): Add prototype.
310 (the_low_target): Add initializer for arch_setup field.
311 * linux-m32r-low.c (init_registers_m32r): Add prototype.
312 (the_low_target): Add initializer for arch_setup field.
313 * linux-m68k-low.c (init_registers_m68k): Add prototype.
314 (the_low_target): Add initializer for arch_setup field.
315 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
316 (init_registers_mips64_linux): Likewise.
317 (the_low_target): Add initializer for arch_setup field.
318 * linux-ppc-low.c (init_registers_ppc): Add prototype.
319 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
320 (the_low_target): Add initializer for arch_setup field.
321 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
322 (init_registers_powerpc_64): Likewise.
323 (the_low_target): Add initializer for arch_setup field.
324 * linux-s390-low.c (init_registers_s390): Add prototype.
325 (init_registers_s390x): Likewise.
326 (the_low_target): Add initializer for arch_setup field.
327 * linux-sh-low.c (init_registers_sh): Add prototype.
328 (the_low_target): Add initializer for arch_setup field.
329 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
330 (the_low_target): Add initializer for arch_setup field.
331 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
332 (the_low_target): Add initializer for arch_setup field.
333
334 * win32-low.h (struct win32_target_ops): Add arch_setup field.
335 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
336 instead of init_registers ().
337 * win32-arm-low.c (init_registers_arm): Add prototype.
338 (the_low_target): Add initializer for arch_setup field.
339 * win32-i386-low.c (init_registers_i386): Add prototype.
340 (the_low_target): Add initializer for arch_setup field.
341
342 * spu-low.c (init_registers_spu): Add prototype.
343 (initialize_low): Call initialie_registers_spu () instead of
344 initialize_registers ().
345
346 2008-02-19 Pedro Alves <pedro@codesourcery.com>
347
348 * server.c (handle_v_requests): When handling the vRun and vAttach
349 packets, if already debugging a process, don't kill it. Return an
350 error instead.
351
352 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
353
354 * server.c (handle_query): Correct length check.
355
356 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
357
358 * win32-low.c (do_initial_child_stuff): Add process handle
359 parameter. Set current_process_handle and current_process_id from the
360 parameters. Clear globals.
361 (win32_create_inferior): Don't set current_process_handle and
362 current_process_id here. Instead pass them on the call to
363 do_initial_child_stuff.
364 (win32_attach): Likewise.
365 (win32_clear_inferiors): New.
366 (win32_kill): Don't close the current process handle or the
367 current thread handle here. Instead call win32_clear_inferiors.
368 (win32_detach): Don't open a new handle to the process. Call
369 win32_clear_inferiors.
370 (win32_join): Don't rely on current_process_handle; open a new
371 handle using the process id.
372 (win32_wait): Call win32_clear_inferiors when the inferior process
373 has exited.
374
375 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
376
377 * server.c (monitor_show_help): Add "exit".
378
379 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
380
381 * Makefile.in (SFILES): Add linux-xtensa-low.c.
382 (clean): Add reg-xtensa.c.
383 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
384 * configure.srv (xtensa*-*-linux*) New target.
385 * linux-xtensa-low.c: New.
386 * xtensa-xtregs.c: New.
387
388 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
389
390 * hostio.c: Don't include errno.h.
391 (errno_to_fileio_errno): Move to hostio-errno.
392 * hostio.c: (hostio_error): Remove the error parameter. Defer the
393 error number outputting to the target->hostio_last_error callback.
394 (hostio_packet_error): Use FILEIO_EINVAL directly.
395 (handle_open, handle_pread, hostio_error, handle_unlink): Update
396 calls to hostio_error.
397 * hostio-errno.c: New.
398 * server.h (hostio_last_error_from_errno): Declare.
399 * target.h (target_ops): Add hostio_last_error member.
400 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
401 as hostio_last_error handler.
402 * spu-low.c (spu_target_ops): Likewise.
403 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
404 (wince_hostio_last_error): New functions.
405 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
406 as hostio_last_error handler.
407 (win32_target_ops) [!_WIN32_WCE]: Register
408 hostio_last_error_from_errno as hostio_last_error handler.
409 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
410 (hostio-errno.o): New rule.
411 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
412 * configure.srv (srv_hostio_err_objs): New variable. Default to
413 hostio-errno.o.
414 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
415 * configure: Regenerate.
416
417 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
418
419 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
420 (linux_kill, linux_detach): Clean up the process list.
421 * remote-utils.c (remote_open): Improve port number parsing.
422 (putpkt_binary, input_interrupt): Only send interrupts if the target
423 is running.
424 * server.c (extended_protocol): Make static.
425 (attached): Define earlier.
426 (exit_requested, response_needed, program_argv): New variables.
427 (target_running): New.
428 (start_inferior): Clear attached here.
429 (attach_inferior): Set attached here.
430 (require_running): Define.
431 (handle_query): Use require_running and target_running. Implement
432 "monitor exit".
433 (handle_v_attach, handle_v_run): New.
434 (handle_v_requests): Use require_running. Handle vAttach and vRun.
435 (gdbserver_usage): Update.
436 (main): Redo argument parsing. Handle --debug and --multi. Handle
437 --attach along with other options or after the port. Save
438 program_argv. Support no initial program. Resynchronize
439 communication with GDB after an error. Handle "monitor exit".
440 Use require_running and target_running. Always allow the extended
441 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
442 restart in extended mode.
443 * README: Refer to the GDB manual. Update --attach usage.
444
445 2007-12-20 Andreas Schwab <schwab@suse.de>
446
447 * linux-low.c (STACK_SIZE): Define.
448 (linux_tracefork_child): Use it. Use __clone2 on ia64.
449 (linux_test_for_tracefork): Likewise.
450
451 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
452
453 * linux-low.c (linux_wait_for_event): Update messages. Do not
454 reinsert auto-delete breakpoints.
455 * mem-break.c (struct breakpoint): Change return type of handler to
456 int.
457 (set_breakpoint_at): Update handler type.
458 (reinsert_breakpoint_handler): Return 1 instead of calling
459 delete_breakpoint.
460 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
461 setting a new one.
462 (check_breakpoints): Delete auto-delete breakpoints and return 2.
463 * mem-break.h (set_breakpoint_at): Update handler type.
464 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
465 * win32-low.c (auto_delete_breakpoint): New.
466 (get_child_debug_event): Use it.
467
468 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
469
470 * configure.ac: Check for pread and pwrite.
471 * hostio.c (handle_pread): Fall back to lseek and read.
472 (handle_pwrite): Fall back to lseek and write.
473 * config.in, configure: Regenerated.
474
475 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
476
477 * server.c (myresume): Add own_buf argument.
478 (main): Update calls.
479
480 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
481
482 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
483 * remote-utils.c (remote_open): Do not call disable_async_io.
484 (block_async_io): Delete.
485 (unblock_async_io): Make static.
486 (initialize_async_io): New.
487 * server.c (handle_v_cont): Handle async I/O here.
488 (myresume): Likewise. Move other common resume tasks here...
489 (main): ... from here. Call initialize_async_io. Disable async
490 I/O before the main loop.
491 * server.h (initialize_async_io): Declare.
492 (block_async_io, unblock_async_io): Delete prototypes.
493 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
494
495 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
496
497 * remote-utils.c (readchar): Allow binary data in received messages.
498
499 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
500
501 * win32-low.c (attaching): New global.
502 (win32_create_inferior): Clear the `attaching' global.
503 (win32_attach): Set the `attaching' global.
504 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
505 attaching. Only set a breakpoint at the entry point if not
506 attaching.
507
508 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
509
510 * server.c (main): Don't report dll events on the initial
511 connection on attaches.
512
513 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
514
515 * server.c (main): Relax numerical bases supported for the pid of
516 the --attach command line argument.
517
518 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
519
520 * win32-low.c (win32_attach): Call OpenProcess before
521 DebugActiveProcess, not after. Add last error output to error
522 call.
523
524 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
525
526 * win32-low.c (win32_get_thread_context)
527 (win32_set_thread_context): New functions.
528 (thread_rec): Use win32_get_thread_context.
529 (continue_one_thread, win32_resume): Use win32_set_thread_context.
530 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
531 field.
532
533 2007-12-03 Leo Zayas
534 Pedro Alves <pedro_alves@portugalmail.pt>
535
536 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
537 global variables.
538 (child_add_thread): Minor cleanup.
539 (child_continue): Resume artificially suspended threads before
540 calling ContinueDebugEvent.
541 (suspend_one_thread): New.
542 (fake_breakpoint_event): New.
543 (get_child_debug_event): Change return type to int. Check here if
544 gdb sent an interrupt request. If a soft interrupt was requested,
545 fake a breakpoint event. Return 0 if there is no event to handle,
546 and 1 otherwise.
547 (win32_wait): Don't check here if gdb sent an interrupt request.
548 Ensure there is a valid event to handle.
549 (win32_request_interrupt): Add soft interruption method as last
550 resort.
551
552 2007-12-03 Leo Zayas
553 Pedro Alves <pedro_alves@portugalmail.pt>
554
555 * win32-low.h (win32_thread_info): Add descriptions to the
556 structure members. Replace `suspend_count' counter by a
557 `suspended' flag.
558 * win32-low.c (thread_rec): Update condition of when to get the
559 context from the inferior. Rely on ContextFlags being set if it
560 has already been retrieved. Only suspend the inferior thread if
561 we haven't already. Warn if that fails.
562 (continue_one_thread): s/suspend_count/suspended/. Only call
563 ResumeThread once. Warn if that fails.
564
565 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
566
567 * win32-low.c (win32_wait): Don't read from the inferior when it
568 has already exited.
569
570 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
571
572 * Makefile.in (win32_low_h): New variable.
573 (win32-low.o): Add dependency on $(win32_low_h).
574 (win32-arm-low.o, win32-i386-low.o): New rules.
575
576 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
577
578 * hostio.c: Correct copyright year.
579
580 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
581
582 * Makefile.in (OBS): Add hostio.o.
583 (hostio.o): New rule.
584 * server.h (handle_vFile): Declare.
585 * hostio.c: New file.
586 * server.c (handle_v_requests): Take packet_len and new_packet_len
587 for binary packets. Call handle_vFile.
588 (main): Update call to handle_v_requests.
589
590 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
591
592 * linux-low.c: Include <sched.h>.
593
594 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
595
596 * linux-low.c (linux_tracefork_grandchild): New.
597 (linux_tracefork_child): Use clone.
598 (linux_test_for_tracefork): Use clone; allocate and free a stack.
599
600 2007-10-31 Joel Brobecker <brobecker@adacore.com>
601
602 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
603
604 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
605
606 * linux-low.c (handle_extended_wait): Handle unexpected signals.
607
608 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
609
610 * inferiors.c (change_inferior_id): Delete.
611 (add_pid_to_list, pull_pid_from_list): New.
612 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
613 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
614 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
615 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
616 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
617 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
618 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
619 (using_threads): Always set to 1.
620 (handle_extended_wait): New.
621 (add_process): Do not set TID.
622 (linux_create_inferior): Set must_set_ptrace_flags.
623 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
624 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
625 (linux_thread_alive): Rename TID argument to LWPID.
626 (linux_wait_for_process): Handle unknown processes. Do not use TID.
627 (linux_wait_for_event): Do not use TID or check using_threads. Update
628 call to dead_thread_notify. Call handle_extended_wait.
629 (linux_create_inferior): Use PTRACE_SETOPTIONS.
630 (send_sigstop): Delete sigstop_sent.
631 (wait_for_sigstop): Avoid TID.
632 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
633 (linux_test_for_tracefork): New.
634 (linux_lookup_signals): Use thread_db_active and
635 linux_supports_tracefork_flag.
636 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
637 * linux-low.h (get_process_thread): Avoid TID.
638 (struct process_ifo): Move thread_known and tid to the end. Remove
639 sigstop_sent.
640 (linux_attach_lwp, thread_db_init): Update prototypes.
641 * server.h (change_inferior_id): Delete prototype.
642 (add_pid_to_list, pull_pid_from_list): New prototypes.
643 * thread-db.c (thread_db_use_events): New.
644 (find_first_thread): Rename to...
645 (find_one_thread): ...this. Update callers and messages. Do not
646 call fatal. Check thread_db_use_events. Do not call
647 change_inferior_id or new_thread_notify.
648 (maybe_attach_thread): Update. Do not call new_thread_notify.
649 (thread_db_init): Set thread_db_use_events. Check use_events.
650 * utils.c (fatal, warning): Correct message prefix.
651
652 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
653
654 * Makefile.in (clean): Remove new files.
655 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
656 (powerpc-64.o, powerpc-64.c): New rules.
657 * configure.srv: Use alternate register sets for powerpc64-*-linux*
658 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
659 with SPE.
660 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
661 SPE targets.
662 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
663 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
664 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
665 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
666 (target_regsets): Add AltiVec and SPE register sets.
667 * configure.ac: Check for AltiVec and SPE.
668 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
669 (ppc_fill_vrregset, ppc_store_vrregset): New.
670 (target_regsets): Add AltiVec register set.
671 * configure: Regenerated.
672
673 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
674
675 * linux-low.c (O_LARGEFILE): Define.
676 (linux_read_memory): Use /proc/PID/mem.
677 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
678 * configure, config.in: Regenerated.
679
680 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
681
682 * linux-low.c (linux_wait_for_event): Do not pass signals while
683 single-stepping.
684
685 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
686
687 * win32-low.c (create_process): New.
688 (win32_create_inferior): Use create_process instead of
689 CreateProcess. If create_process failed retry appending an ".exe"
690 suffix. Store the GetLastError result immediatelly after
691 create_process calls and use it on the call to error.
692
693 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
694
695 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
696
697 2007-08-23 Joel Brobecker <brobecker@adacore.com>
698
699 * configure.ac: Switch license to GPLv3.
700
701 2007-08-01 Michael Snyder <msnyder@access-company.com>
702
703 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
704
705 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
706
707 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
708 typedef.
709 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
710 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
711 CloseToolhelp32Snapshot.
712 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
713 CloseToolhelp32Snapshot.
714
715 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
716
717 * server.c (main): Check for inferior exit before main loop.
718
719 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
720
721 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
722 instead of on tmp_desc.
723
724 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
725 Daniel Jacobowitz <dan@codesourcery.com>
726
727 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
728 (add_thread): Minor cleanups.
729 (clear_inferiors): Move lower in the file. Clear the DLL
730 list.
731 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
732 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
733 (xml_escape_text): New.
734 * server.c (handle_query): Handle qXfer:libraries:read. Report it
735 for qSupported.
736 (handle_v_cont): Report errors.
737 (gdbserver_version): Update.
738 (main): Correct size of own_buf. Do not report initial DLL events.
739 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
740 (unloaded_dll, xml_escape_text): New.
741 * win32-low.c (enum target_waitkind): Update comments.
742 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
743 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
744 (win32_EnumProcessModules, win32_GetModuleInformation)
745 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
746 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
747 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
748 (win32_Module32First, win32_Module32Next, load_toolhelp)
749 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
750 (get_child_debug_event): Handle DLL events.
751 (win32_wait): Likewise.
752
753 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
754
755 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
756 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
757
758 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
759
760 * win32-low.c (handle_output_debug_string): Ignore event if not
761 waiting.
762
763 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
764
765 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
766
767 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
768
769 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
770
771 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
772
773 * inferiors.c (change_inferior_id): Add comment.
774 * linux-low.c (check_removed_breakpoint): Add an early
775 prototype. Improve debug output.
776 (linux_attach): Doc update.
777 (linux_detach_one_process, linux_detach): Clean up before releasing
778 each process.
779 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
780 * linux-low.h (struct process_info): Doc improvement.
781 * mem-break.c (delete_all_breakpoints): New.
782 * mem-break.h (delete_all_breakpoints): New prototype.
783 * thread-db.c (find_first_thread): New.
784 (thread_db_create_event): Call it instead of
785 thread_db_find_new_threads. Clean up unused variables.
786 (maybe_attach_thread): Remove first thread handling.
787 (thread_db_find_new_threads): Use find_first_thread.
788 (thread_db_get_tls_address): Likewise.
789
790 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
791
792 * thread-db.c (thread_db_find_new_threads): Add prototype.
793 (thread_db_create_event): Check for the main thread before adding
794 a new thread.
795 (maybe_attach_thread): Only enable event reporting if TID == 0.
796 (thread_db_get_tls_address): Check for new threads.
797
798 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
799
800 * linux-low.c (linux_create_inferior): Try execv before execvp.
801 * spu-low.c (spu_create_inferior): Likewise.
802
803 2007-06-13 Mike Frysinger <vapier@gentoo.org>
804
805 * linux-low.c (linux_create_inferior): Change execv to execvp.
806 * spu-low.c (spu_create_inferior): Likewies.
807
808 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
809
810 * Makefile.in (clean): Clean new files instead of deleted ones.
811 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
812 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
813 rules.
814 * configure.srv: Specify XML files and new regformats for MIPS and
815 MIPS64 GNU/Linux.
816 * linux-mips-low.c (mips_num_regs): Set to only used registers.
817 (mips_regmap): Do not fetch $0. Remove unused registers. Add
818 an entry for the restart register.
819 (mips_cannot_fetch_register, mips_cannot_store_register)
820 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
821 register names to match the XML descriptions.
822 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
823 restart register instead of $0.
824
825 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
826 Markus Deuling <deuling@de.ibm.com>
827
828 * remote-utils.c (decode_xfer_write): New function.
829 * server.h (decode_xfer_write): Add prototype.
830 * server.c (handle_query): Add PACKET_LEN argument. Support
831 qXfer:spu:read and qXfer:spu:write packets.
832 (main): Pass packet_len to handle_query.
833 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
834 * target.h (target_ops): Add qxfer_spu.
835
836 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
837
838 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
839 accessing non-seekable spufs files.
840
841 2007-05-16 Markus Deuling <deuling@de.ibm.com>
842
843 * server.c (handle_query): Add reply for qC packet.
844
845 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
846 Leo Zayas <lerele@champenstudios@com>
847
848 * server.h (check_remote_input_interrupt_request): New function.
849 * remote_utils.c (INVALID_DESCRIPTOR): New define.
850 (remote_desc): Initialize with INVALID_DESCRIPTOR.
851 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
852 (check_remote_input_interrupt_request): New function.
853 * server.h (check_remote_input_interrupt_request): Declare.
854 * win32-low.c (winapi_DebugBreakProcess,
855 winapi_GenerateConsoleCtrlEvent): New typedefs.
856 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
857 to 250 ms.
858 (win32_wait): Check for remote interrupt request
859 with check_remote_input_interrupt_request.
860 (win32_request_interrupt): New function.
861 (win32_target_op): Set request_interrupt to win32_request_interrupt.
862
863 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
864
865 * win32-low.c (debug_registers_changed,
866 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
867 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
868 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
869 (thread_rec): Get context using the low target.
870 (child_add_thread): Call thread_added on the low target,
871 which does the same thing.
872 (regptr): Delete.
873 (do_initial_child_stuff): Remove debug registers references.
874 Set context using the low target. Resume threads after
875 setting the contexts.
876 (child_continue): Remove dead variable. Remove debug
877 registers references.
878 (child_fetch_inferior_registers): Go through the low target.
879 (do_child_store_inferior_registers): Remove.
880 (child_store_inferior_registers): Go through the low target.
881 (win32_resume): Remove debug registers references.
882 Set context using the low target.
883 (handle_exception): Change return type to void. Don't record
884 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
885 first chance exception.
886 (get_child_debug_event): Change return type to void. Remove
887 goto loop. Always return after waiting for debug event.
888 (win32_wait): Convert to switch statement. Handle spurious
889 events.
890
891 * win32-i386-low.c (debug_registers_changed,
892 debug_registers_used): New.
893 (initial_stuff): Rename to ...
894 (i386_initial_stuff): ... this. Clear debug registers
895 state variables.
896 (store_debug_registers): Delete.
897 (i386_get_thread_context): New.
898 (load_debug_registers): Delete.
899 (i386_set_thread_context): New.
900 (i386_thread_added): New.
901 (single_step): Rename to ...
902 (i386_single_step): ... this.
903 (do_fetch_inferior_registers): Rename to ...
904 (i386_fetch_inferior_register): ... this.
905 (i386_store_inferior_register): New.
906 (the_low_target): Adapt to new interface.
907
908 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
909 (arm_get_thread_context): New.
910 (arm_set_thread_context): New.
911 (regptr): New.
912 (do_fetch_inferior_registers): Rename to ...
913 (arm_fetch_inferior_register): ... this.
914 (arm_store_inferior_register): New.
915 (arm_wince_breakpoint): Reimplement as unsigned long.
916 (arm_wince_breakpoint_len): Define.
917 (the_low_target): Adapt to new interface.
918
919 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
920 load_debug_registers. Add get_thread_context, set_thread_context,
921 thread_added and store_inferior_register. Rename
922 fetch_inferior_registers to fetch_inferior_register.
923 (regptr): Remove declaration.
924
925 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
926
927 * linux-low.c (linux_detach): Change return type to int. Return 0.
928 * spu-low.c (spu_detach): Likewise.
929
930 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
931
932 * target.h (target_ops): Change return type of detach to int.
933 Add join.
934 (join_inferior): New.
935 * server.c (main): Don't skip detach support on mingw32.
936 If the inferior doesn't support detaching return error.
937 Call join_inferior instead of using waitpid.
938 * linux-low.c (linux_join): New.
939 (linux_target_op): Add linux_join.
940 * spu-low.c (spu_join): New.
941 (spu_target_ops): Add spu_join.
942 * win32-low.c (win32_detach): Adapt to new interface.
943 Reopen current_process_handle before detaching. Issue a child
944 resume before detaching.
945 (win32_join): New.
946 (win32_target_op): Add win32_join.
947
948 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
949
950 * win32-low.c (win32-attach): Fix return value.
951 * target.h (target_ops): Describe ATTACH return values.
952
953 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
954
955 * win32-low.c (GETPROCADDRESS): Define.
956 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
957 (winapi_DebugSetProcessKillOnExit): Likewise.
958 (win32_create_inferior): Force usage of ansi CreateProcessA.
959 (win32_attach): Use GETPROCADDRESS.
960 (win32_detach): Likewise.
961
962 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
963
964 * win32-low.c (win32_wait): Don't use WSTOPSIG.
965
966 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
967
968 * win32-low.c: Commit leftover changes from 2007-03-29.
969
970 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
971
972 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
973 fields short instead of int. Add explicit padding.
974 (i387_cache_to_fsave): Remove unnecessary casts.
975 (i387_fsave_to_cache): Doc fix.
976 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
977
978 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
979
980 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
981 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
982
983 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
984
985 * configure.srv (arm*-*-mingw32ce*): Move near the other
986 arm targets.
987
988 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
989
990 * configure.ac: Add errno checking.
991 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
992 sys/file.h and malloc.h.
993 (AC_CHECK_DECLS): Add perror.
994 (srv_mingwce): Handle.
995 * configure.srv (i[34567]86-*-cygwin*): Add
996 win32-i386-low.o to srv_tgtobj.
997 (i[34567]86-*-mingw*): Likewise.
998 (arm*-*-mingw32ce*): Add case.
999 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
1000 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
1001 [__MINGW32CE__] (strerror): New function.
1002 [__MINGW32CE__] (errno): Define to GetLastError.
1003 [__MINGW32CE__] (COUNTOF): New macro.
1004 (remote_open): Remove extra close call.
1005 * mem-break.c (delete_breakpoint_at): New function.
1006 * mem-break.h (delete_breakpoint_at): Declare.
1007 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
1008 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
1009 [USE_WIN32API] (read, write): Add char* casts.
1010 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
1011 * server.h: Include wincecompat.h on Windows CE.
1012 [HAVE_ERRNO_H]: Check.
1013 (perror): Declare if not declared.
1014 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
1015 (perror_with_name): Remove errno declaration.
1016 * wincecompat.h: New.
1017 * wincecompat.c: New.
1018 * win32-low.h: New.
1019 * win32-arm-low.c: New.
1020 * win32-i386-low.c: New.
1021 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
1022 (OUTMSG2): Make it safe.
1023 (_T): New macro.
1024 (COUNTOF): New macro.
1025 (NUM_REGS): Get it from the low target.
1026 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
1027 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
1028 (thread_rec): Let low target handle debug registers.
1029 (child_add_thread): Likewise.
1030 (child_init_thread_list): Likewise.
1031 (continue_one_thread): Likewise.
1032 (regptr): New.
1033 (do_child_fetch_inferior_registers): Move to ...
1034 * win32-i386-low.c: ... here, and rename to ...
1035 (do_fetch_inferior_registers): ... this.
1036 * win32-low.c (child_fetch_inferior_registers):
1037 Go through the low target.
1038 (do_child_store_inferior_registers): Use regptr.
1039 (strwinerror): New function.
1040 (win32_create_inferior): Handle Windows CE.
1041 Use strwinerror instead of strerror on Windows error
1042 codes. Add program to the error output.
1043 Don't close the main thread handle on Windows CE.
1044 (win32_attach): Use coredll.dll on Windows CE.
1045 (win32_kill): Close current process and current
1046 thread handles.
1047 (win32_detach): Use coredll.dll on Windows CE.
1048 (win32_resume): Let low target handle debug registers, and
1049 step request.
1050 (handle_exception): Add/Remove initial breakpoint. Avoid
1051 non-existant WSTOPSIG on Windows CE.
1052 (win32_read_inferior_memory): Cast to remove warning.
1053 (win32_arch_string): Go through the low target.
1054 (initialize_low): Call set_breakpoint_data with the low
1055 target's breakpoint.
1056 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
1057 FOP_REGNUM, mappings): Move to ...
1058 * win32-i386-low.c: ... here.
1059 * win32-low.c (win32_thread_info): Move to ...
1060 * win32-low.h: ... here.
1061 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
1062 win32-arm-low.c and wincecompat.c.
1063 (all:): Add $EXEEXT.
1064 (install-only:): Likewise.
1065 (gdbserver:): Likewise.
1066 (gdbreplay:): Likewise.
1067 * config.in: Regenerate.
1068 * configure: Regenerate.
1069
1070 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
1071
1072 * win32-low.c: Rename typedef thread_info to
1073 win32_thread_info throughout.
1074
1075 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
1076
1077 * win32-i386-low.c: Rename to ...
1078 * win32-low.c: ... this.
1079 * configure.srv: Replace win32-i386-low.o with win32-low.o.
1080 * Makefile.in: Likewise.
1081
1082 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
1083
1084 * remote-utils.c (monitor_output): Constify msg parameter.
1085 * server.h (monitor_output): Likewise.
1086 * win32-i386-low.c (handle_output_debug_string): New.
1087 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
1088 handle_output_debug_string.
1089 (get_child_debug_event): Likewise.
1090
1091 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
1092
1093 * server.c (main): Correct strtoul check.
1094
1095 2007-03-27 Jon Ringle <jon@ringle.org>
1096
1097 * linux-low.c: Check __ARCH_HAS_MMU__ also.
1098
1099 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
1100
1101 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
1102
1103 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
1104
1105 * terminal.h: Check HAVE_SGTTY_H.
1106
1107 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
1108
1109 * remote-utils.c (remote_open): Print out the assigned port number.
1110
1111 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1112
1113 * remote-utils.c (monitor_output): New function.
1114 * server.c (debug_threads): Define here.
1115 (monitor_show_help): New function.
1116 (handle_query): Handle qRcmd.
1117 (main): Do not handle 'd' packet.
1118 * server.h (debug_threads, remote_debug, monitor_output): Declare.
1119 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
1120 of debug_threads.
1121
1122 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
1123
1124 * Makefile.in (EXEEXT): New.
1125 (clean): Use $(EXEEXT).
1126
1127 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
1128
1129 * target.h (target_ops): Rename send_signal to request_interrupt,
1130 and remove enum target_signal parameter.
1131 * linux-low.c (linux_request_interrupt): Rename from
1132 linux_send_signal, and always send SIGINT.
1133 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
1134 and always send SIGINT.
1135 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
1136 of send_signal.
1137 (input_interrupt): Likewise.
1138
1139 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
1140
1141 * server.c (get_features_xml): Check if target implemented
1142 arch_string.
1143 * win32-i386-low.c (win32_arch_string): New.
1144 (win32_target_ops): Add win32_arch_string as arch_string member.
1145
1146 2007-02-22 Markus Deuling <deuling@de.ibm.com>
1147
1148 * spu-low.c (spu_arch_string): New.
1149 (spu_target_ops): Add spu_arch_string.
1150
1151 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1152
1153 * remote-utils.c: Remove HAVE_TERMINAL_H check.
1154 * configure.ac: Do not check for terminal.h.
1155 * configure, config.in: Regenerated.
1156
1157 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1158
1159 * Makefile.in (OBS): Add $(XML_BUILTIN).
1160 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
1161 (clean): Update.
1162 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
1163 (arm-with-iwmmxt.c): New.
1164 * config.in, configure: Regenerate.
1165 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
1166 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
1167 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
1168 (arm*-*-linux*): Add iWMMXt and regset support.
1169 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
1170 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
1171 (arm_store_wmmxregset, target_regsets): New.
1172 * server.c (get_features_xml): Take annex argument. Check builtin
1173 XML documents.
1174 (handle_query): Handle multiple annexes.
1175
1176 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1177
1178 * remote-utils.c [USE_WIN32API] (read, write): Define.
1179 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
1180 write.
1181
1182 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1183
1184 * linux-i386-low.c (the_low_target): Set arch_string.
1185 * linux-x86-64-low.c (the_low_target): Likewise.
1186 * linux-low.c (linux_arch_string): New.
1187 (linux_target_ops): Add it.
1188 * linux-low.h (struct linux_target_ops): Add arch_string.
1189 * server.c (write_qxfer_response): Use const void * for DATA.
1190 (get_features_xml): New.
1191 (handle_query): Handle qXfer:features:read. Report it for qSupported.
1192 * target.h (struct target_ops): Add arch_string method.
1193
1194 2007-01-03 Denis Pilat <denis.pilat@st.com>
1195 Daniel Jacobowitz <dan@codesourcery.com>
1196
1197 * linux-low.c (linux_kill): Handle being called with no threads.
1198 * win32-i386-low.c (win32_kill): Likewise.
1199 (get_child_debug_event): Clear current_process_handle.
1200
1201 2006-12-30 Denis PILAT <denis.pilat@st.com>
1202 Daniel Jacobowitz <dan@codesourcery.com>
1203
1204 * remote-utils.c (remote_open): Check the type of specified
1205 serial port devices before opening them.
1206 * server.c (main): Kill the inferior if an error occurs during
1207 the first remote_open.
1208
1209 2006-12-05 Markus Deuling <deuling@de.ibm.com>
1210
1211 * README: Update supported targets.
1212
1213 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
1214
1215 * Makefile.in (clean): Remove reg-mips64.c.
1216 (reg-mips64.c, reg-mips64.o): New rules.
1217 * configure.srv: Handle mips64. Include regset support for mips.
1218 * linux-mips-low.c (union mips_register): New.
1219 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
1220 (mips_breakpoint, mips_breakpoint_at): Use int.
1221 (mips_collect_register, mips_supply_register)
1222 (mips_collect_register_32bit, mips_supply_register_32bit)
1223 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
1224 (mips_store_fpregset, target_regsets): New.
1225 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
1226
1227 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1228
1229 * configure.srv: Add target "spu*-*-*".
1230 * Makefile.in (clean): Remove reg-spu.c.
1231 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
1232 * spu-low.c: New file.
1233
1234 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
1235
1236 * configure.ac: Correct td_thr_tls_get_addr test.
1237 * configure: Regenerated.
1238
1239 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
1240
1241 * linux-low.c (linux_wait_for_event): Reformat. Use the
1242 pass_signals array.
1243 * remote-utils.c (decode_address_to_semicolon): New.
1244 * server.c (pass_signals, handle_general_set): New.
1245 (handle_query): Mention QPassSignals for qSupported.
1246 (main): Call handle_general_set.
1247 * server.h (pass_signals, decode_address_to_semicolon): New.
1248
1249 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
1250
1251 * server.c (handle_query): Correct error handling for read_auxv.
1252
1253 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1254
1255 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
1256 and srv_linux_thread_db to yes.
1257 * linux-s390-low.c (s390_fill_gregset): New function.
1258 (target_regsets): Define data structure.
1259
1260 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
1261
1262 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
1263 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
1264 * config.in, configure: Regenerated.
1265 * inferiors.c (gdb_id_to_thread): New function.
1266 (gdb_id_to_thread_id): Use it.
1267 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
1268 * linux-low.h (struct process_info): Add th member.
1269 (thread_db_get_tls_address): New prototype.
1270 * remote-utils.c (decode_address): Make non-static.
1271 * server.c (handle_query): Handle qGetTLSAddr.
1272 * server.h (gdb_id_to_thread, decode_address): New prototypes.
1273 * target.h (struct target_ops): Add get_tls_address.
1274 * thread-db.c (maybe_attach_thread): Save the thread handle.
1275 (thread_db_get_tls_address): New.
1276
1277 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
1278
1279 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1280 (linux_resume_one_process): Take a siginfo_t *. Update all
1281 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
1282 (struct pending_signals): Add a siginfo_t.
1283 (linux_wait_for_process): Always set last_status.
1284 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
1285 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
1286 * linux-low.h (struct process_info): Add last_status.
1287
1288 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
1289
1290 * remote-utils.c (try_rle): New function.
1291 (putpkt_binary): Use it.
1292
1293 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
1294
1295 * Makefile.in (clean): Clean reg-x86-64-linux.c.
1296 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
1297 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
1298 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
1299 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
1300 point registers.
1301
1302 2006-08-08 Richard Sandiford <richard@codesourcery.com>
1303
1304 * server.c (terminal_fd): New variable.
1305 (old_foreground_pgrp): Likewise.
1306 (restore_old_foreground_pgrp): New function.
1307 (start_inferior): Record the terminal file descriptor in terminal_fd
1308 and its original foreground group in old_foreground_pgrp. Register
1309 restore_old_foreground_pgrp with atexit().
1310
1311 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
1312
1313 * server.c (handle_query): Correct qPart to qXfer.
1314
1315 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
1316
1317 * configure.ac: Check for more headers which are missing on
1318 Windows. Automatically supply -lwsock32 and USE_WIN32API.
1319 * configure.srv: Add Cygwin and mingw32.
1320 * remote-utils.c: Don't include headers unconditionally which
1321 are missing on mingw32. Include <winsock.h> for mingw32.
1322 (remote_open): Adjust for mingw32 support. Flush
1323 standard error after writing to it.
1324 (remote_close, putpkt_binary, input_interrupt, block_async_io)
1325 (unblock_async_io, enable_async_io, disable_async_io)
1326 (readchar, getpkt): Update for Winsock support.
1327 (prepare_resume_reply): Expect a protocol signal number.
1328 * server.c: Disable <sys/wait.h> on mingw32.
1329 (start_inferior): Adjust for mingw32 support. Flush
1330 standard error after writing to it.
1331 (attach_inferior): Likewise. Use protocol signal
1332 numbers.
1333 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
1334 and names.
1335 * win32-i386-low.c: New file.
1336 * Makefile.in (XM_CLIBS): Set.
1337 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
1338 (win32-i386-low.o): New dependency rule.
1339 * linux-low.c (linux_wait): Use target signal numbers.
1340 * target.h (struct target_ops): Doc fix.
1341 * server.h (target_signal_to_name): New prototype.
1342 * gdbreplay.c: Don't include headers unconditionally which
1343 are missing on mingw32. Include <winsock.h> for mingw32.
1344 (remote_close, remote_open): Adjust for Winsock support.
1345 * configure, config.in: Regenerated.
1346
1347 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1348
1349 * server.c (decode_xfer_read, write_qxfer_response): New.
1350 (handle_query): Take a packet length argument. Handle
1351 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
1352 the qSupported response.
1353 (main): Update call to handle_query.
1354
1355 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
1356
1357 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
1358 (putpkt_binary): Renamed from putpkt and adjusted for binary
1359 data.
1360 (putpkt): New wrapper for putpkt_binary.
1361 (readchar): Don't mask off the high bit.
1362 (decode_X_packet): New function.
1363 * server.c (main): Call putpkt_binary if a handler sets the packet
1364 length. Save the length of the incoming packet. Handle 'X'.
1365 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
1366
1367 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
1368
1369 * server.c (handle_query): Handle qSupported.
1370
1371 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
1372
1373 * remote-utils.c (all_symbols_looked_up): New variable.
1374 (look_up_one_symbol): Check it.
1375 * server.h (look_up_one_symbol): New declaration.
1376 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
1377
1378 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
1379
1380 * Makefile.in (linux-arm-low.o): Update dependencies.
1381 * linux-arm-low.c: Include "gdb_proc_service.h".
1382 (PTRACE_GET_THREAD_AREA): Define.
1383 (ps_get_thread_area): New function.
1384
1385 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
1386
1387 * configure.srv (m68k*-*-uclinux*): New target.
1388 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
1389 (linux_resume_one_process): Remove extraneous cast.
1390 (linux_read_offsets): New.
1391 (linux_target_op): Add linux_read_offsets on mmuless systems.
1392 * server.c (handle_query): Add qOffsets logic.
1393 * target.h (struct target_ops): Add read_offsets.
1394
1395 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1396
1397 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
1398 (PTRACE_GET_THREAD_AREA): Define.
1399 (ps_get_thread_area): New function.
1400 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
1401 (linux-x86-64-low.o): Update.
1402
1403 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1404
1405 * configure.ac: Remove checks for prfpregset_t.
1406 * gdb_proc_service.h: New file.
1407 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
1408 new "gdb_proc_service.h".
1409 * proc-service.c: Likewise.
1410 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
1411 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
1412 * Makefile.in (gdb_proc_service_h): Updated.
1413 * configure, config.in: Regenerated.
1414
1415 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1416
1417 * remote-utils.c (prepare_resume_reply): Move declaration
1418 of gdb_id_from_wait to the top of the block.
1419
1420 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
1421
1422 * linux-low.c (regsets_store_inferior_registers): Read the regset
1423 from the target before filling it.
1424
1425 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1426
1427 * server.c (attach_inferior): Return SIGTRAP for a successful
1428 attach.
1429
1430 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1431
1432 * Makefile.in (OBS): Add version.o.
1433 (STAGESTUFF): Delete.
1434 (version.o): Add dependencies.
1435 (version.c): Replace rule.
1436 (clean): Remove version.c.
1437 * server.c (gdbserver_version): New.
1438 (gdbserver_usage): Use printf.
1439 (main): Handle --version and --help.
1440 * server.h (version, host_name): Add declarations.
1441
1442 2005-12-23 Eli Zaretskii <eliz@gnu.org>
1443
1444 * linux-arm-low.c:
1445 * linux-arm-low.c:
1446 * inferiors.c:
1447 * i387-fp.h:
1448 * i387-fp.c:
1449 * gdbreplay.c:
1450 * regcache.c:
1451 * proc-service.c:
1452 * mem-break.h:
1453 * mem-break.c:
1454 * linux-x86-64-low.c:
1455 * linux-sh-low.c:
1456 * linux-s390-low.c:
1457 * linux-ppc64-low.c:
1458 * linux-ppc-low.c:
1459 * linux-mips-low.c:
1460 * linux-m68k-low.c:
1461 * linux-m32r-low.c:
1462 * linux-low.h:
1463 * linux-low.c:
1464 * linux-ia64-low.c:
1465 * linux-i386-low.c:
1466 * linux-crisv32-low.c:
1467 * thread-db.c:
1468 * terminal.h:
1469 * target.h:
1470 * target.c:
1471 * server.h:
1472 * server.c:
1473 * remote-utils.c:
1474 * regcache.h:
1475 * utils.c:
1476 * Makefile.in:
1477 * configure.ac:
1478 * gdbserver.1: Add (C) after Copyright. Update the FSF
1479 address.
1480
1481 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1482
1483 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
1484 (arm_breakpoint_at): Recognize both breakpoints.
1485 (the_low_target): Use the correct breakpoint instruction.
1486
1487 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
1488
1489 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
1490 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
1491 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
1492 (the_low_target): Update.
1493
1494 2005-10-25 Andreas Schwab <schwab@suse.de>
1495
1496 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
1497
1498 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
1499 (ia64_num_regs): Reduce to 462.
1500
1501 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
1502
1503 * acinclude.m4: Correct quoting.
1504 * aclocal.m4: Regenerated.
1505
1506 Suggested by SZOKOVACS Robert <szo@ies.hu>:
1507 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
1508 (thread_db_init): Call thread_db_err_str.
1509 * configure.ac: Check for TD_VERSION.
1510 * config.in, configure: Regenerated.
1511
1512 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1513
1514 * server.h (error, fatal, warning): Add ATTR_FORMAT.
1515
1516 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
1517
1518 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
1519 is not available. Define HAVE_PTRACE_GETREGS if it is.
1520 * config.in, configure: Regenerated.
1521 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
1522 * linux-i386-low.c, linux-m68k-low.c: Update to use
1523 HAVE_PTRACE_GETREGS.
1524 * linux-low.c (regsets_fetch_inferior_registers)
1525 (regsets_store_inferior_registers): Only return 0 if we processed
1526 GENERAL_REGS.
1527 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
1528 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
1529
1530 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
1531
1532 * inferiors.c (struct thread_info): Add gdb_id.
1533 (add_thread): Add gdb_id argument.
1534 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
1535 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
1536 calls to add_thread.
1537 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
1538 * server.c (handle_query): Use thread_to_gdb_id.
1539 (handle_v_cont, main): Use gdb_id_to_thread_id.
1540 * server.h (add_thread): Update prototype.
1541 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
1542 prototypes.
1543
1544 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
1545
1546 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
1547 left-padded registers.
1548 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
1549 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
1550
1551 2005-07-01 Steve Ellcey <sje@cup.hp.com>
1552
1553 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
1554 * configure: Regenerate.
1555 * config.in: Regenerate.
1556 * server.h (NEED_DECLARATION_STRERROR):
1557 Replace with !HAVE_DECL_STRERROR.
1558
1559 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
1560
1561 * linux-low.c (linux_wait, linux_send_signal): Don't test
1562 an unsigned long variable for > 0 if it could be MAX_ULONG.
1563 * server.c (myresume): Likewise.
1564 * target.c (set_desired_inferior): Likewise.
1565
1566 2005-06-13 Mark Kettenis <kettenis@gnu.org>
1567
1568 * configure.ac: Simplify and improve check for socklen_t.
1569 * configure, config.in: Regenerate.
1570
1571 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
1572
1573 * acconfig.h: Remove.
1574 * configure.ac: Add a test for socklen_t. Use three-argument
1575 AC_DEFINE throughout.
1576 * config.in: Regenerated using autoheader 2.59.
1577 * configure: Regenerated.
1578
1579 * gdbreplay.c (socklen_t): Provide a default.
1580 (remote_open): Use socklen_t.
1581 * remote-utils.c (socklen_t): Provide a default.
1582 (remote_open): Use socklen_t.
1583 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
1584 unsigned char.
1585
1586 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
1587 char for buffers.
1588 * linux-low.c (linux_read_memory, linux_write_memory)
1589 (linux_read_auxv): Likewise.
1590 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
1591 (check_mem_write): Likewise.
1592 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
1593 Likewise.
1594 * regcache.c (struct inferior_rgcache_data, registers_to_string)
1595 (registers_from_string, register_data): Likewise.
1596 * server.c (handle_query, main): Likewise.
1597 * server.h (convert_ascii_to_int, convert_int_to_ascii)
1598 (decode_M_packet): Likewise.
1599 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
1600 * target.h (struct target_ops): Update read_memory, write_memory,
1601 and read_auxv.
1602 (read_inferior_memory, write_inferior_memory): Update.
1603 * linux-low.h (struct linux_target_ops): Change type of breakpoint
1604 to unsigned char *.
1605 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
1606 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
1607 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
1608 linux-s390-low.c, linux-sh-low.c: Update for changes in
1609 read_inferior_memory and the_low_target->breakpoint.
1610
1611 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
1612
1613 * Makefile.in (SFILES): Add linux-ppc64-low.c.
1614 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
1615 * configure.srv: Add powerpc64-*-linux*.
1616 * linux-ppc64-low.c: New file.
1617
1618 2005-05-23 Orjan Friberg <orjanf@axis.com>
1619
1620 * linux-cris-low.c: New file with support for CRIS.
1621 * linux-crisv32-low.c: Ditto for CRISv32.
1622 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
1623 (clean): Add reg-cris.c and reg-crisv32.c.
1624 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
1625 reg-crisv32.o, and reg-crisv32.c to make rules.
1626 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
1627 recognized targets.
1628
1629 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1630
1631 * linux-low.c (fetch_register): Ensure buffer size is a multiple
1632 of sizeof (PTRACE_XFER_TYPE).
1633 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
1634
1635 2005-05-12 Orjan Friberg <orjanf@axis.com>
1636
1637 * target.h (struct target_ops): Add insert_watchpoint,
1638 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
1639 pointers for hardware watchpoint support.
1640 * linux-low.h (struct linux_target_ops): Ditto.
1641 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
1642 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
1643 to linux_target_ops.
1644 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
1645 reply packet.
1646 * server.c (main): Recognize 'Z' and 'z' packets.
1647
1648 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
1649
1650 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
1651 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
1652 (the_low_target): Add new members.
1653
1654 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1655
1656 * proc-service.c (ps_lgetregs): Search all_processes instead of
1657 all_threads.
1658
1659 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1660
1661 * server.c (start_inferior): Change return type to int.
1662 (attach_inferior): Change sigptr to int *.
1663 (handle_v_cont, handle_v_requests): Change signal to int *.
1664 (main): Change signal to int.
1665
1666 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
1667
1668 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
1669 * configure.srv: Add m32r*-*-linux*.
1670 * linux-m32r-low.c: New file.
1671
1672 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
1673
1674 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
1675
1676 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1677
1678 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
1679 Take unsigned long arguments for PIDs.
1680 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
1681 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
1682 (wait_for_sigstop, linux_resume_one_process)
1683 (regsets_fetch_inferior_registers, linux_send_signal)
1684 (linux_read_auxv): Likewise. Update the types of variables holding
1685 PIDs. Update format string specifiers.
1686 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
1687 * remote-utils.c (prepare_resume_reply): Likewise.
1688 * server.c (cont_thread, general_thread, step_thread)
1689 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
1690 unsigned long.
1691 (handle_query): Update format specifiers.
1692 (handle_v_cont, main): Use strtoul for thread IDs.
1693 * server.h (struct inferior_list_entry): Use unsigned long for ID.
1694 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
1695 (general_thread, step_thread, thread_from_wait)
1696 (old_thread_from_wait): Update.
1697 * target.h (struct thread_resume): Use unsigned long for THREAD.
1698 (struct target_ops): Use unsigned long for arguments to attach and
1699 thread_alive.
1700
1701 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
1702
1703 * acinclude.m4: Include bfd/bfd.m4 directly.
1704 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
1705 <agriffis@toolchain.org>.
1706 * aclocal.m4, configure: Regenerated.
1707
1708 2005-01-07 Andrew Cagney <cagney@gnu.org>
1709
1710 * configure.ac: Rename configure.in, require autoconf 2.59.
1711 * configure: Re-generate.
1712
1713 2004-12-08 Daniel Jacobowitz <dan@debian.org>
1714
1715 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
1716 LIBS when finished.
1717 * aclocal.m4: Regenerated.
1718 * configure: Regenerated.
1719
1720 2004-11-21 Andreas Schwab <schwab@suse.de>
1721
1722 * linux-m68k-low.c (m68k_num_gregs): Define.
1723 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
1724 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
1725 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
1726 (m68k_breakpoint_at): New. Add to the_low_target.
1727
1728 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
1729 srv_linux_thread_db to yes.
1730
1731 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1732
1733 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
1734 (ARCH_SET_FS): Likewise.
1735 (ARCH_GET_FS): Likewise.
1736 (ARCH_GET_GS): Likewise.
1737
1738 2004-10-16 Daniel Jacobowitz <dan@debian.org>
1739
1740 * linux-i386-low.c (ps_get_thread_area): New.
1741 * linux-x86-64-low.c (ps_get_thread_area): New.
1742 * linux-low.c: Include <sys/syscall.h>.
1743 (linux_kill_one_process): Don't kill the first thread here.
1744 (linux_kill): Kill the first thread here.
1745 (kill_lwp): New function.
1746 (send_sigstop, linux_send_signal): Use it.
1747 * proc-service.c: Clean up #ifdefs.
1748 (fpregset_info): Delete.
1749 (ps_lgetregs): Update and enable implementation.
1750 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
1751 implementations.
1752 * remote-utils.c (struct sym_cache, symbol_cache): New.
1753 (input_interrupt): Print a clearer message.
1754 (async_io_enabled): New variable.
1755 (enable_async_io, disable_async_io): Use it. Update comments.
1756 (look_up_one_symbol): Use the symbol cache.
1757 * thread-db.c (thread_db_look_up_symbols): New function.
1758 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
1759
1760 2004-10-16 Daniel Jacobowitz <dan@debian.org>
1761
1762 * configure.in: Test for -rdynamic.
1763 * configure: Regenerated.
1764 * Makefile (INTERNAL_LDFLAGS): New.
1765 (gdbserver, gdbreplay): Use it.
1766
1767 2004-09-02 Andrew Cagney <cagney@gnu.org>
1768
1769 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
1770
1771 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
1772
1773 * linux-low.c (linux_wait): Clear all_processes list also.
1774
1775 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
1776
1777 * linux-low.c: Include <errno.h>. Remove extern declaration of
1778 errno.
1779
1780 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
1781
1782 * gdbreplay.c, server.h, utils.c: Update copyright years.
1783
1784 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
1785
1786 * server.c (main): Print child status or termination signal from
1787 variable 'signal', not 'sig'.
1788
1789 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
1790
1791 * linux-low.c (linux_read_memory): Change return type to
1792 int. Check for and return error from ptrace().
1793 * target.c (read_inferior_memory): Change return type to int. Pass
1794 back return status from the_target->read_memory().
1795 * target.h (struct target_ops): Adapt *read_memory() prototype.
1796 Update comment.
1797 (read_inferior_memory): Adapt prototype.
1798 * server.c (main): Return an error packet if
1799 read_inferior_memory() returns an error.
1800
1801 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
1802
1803 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
1804 Unify with other clean targets.
1805
1806 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
1807
1808 * server.c (handle_v_cont): Call set_desired_inferior.
1809
1810 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
1811
1812 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
1813
1814 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
1815
1816 * linux-low.c (linux_wait): Unblock async I/O.
1817 (linux_resume): Block and enable async I/O.
1818 * remote-utils.c (block_async_io, unblock_async_io): New functions.
1819 * server.h (block_async_io, unblock_async_io): Add prototypes.
1820
1821 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
1822
1823 * remote-utils.c (remote_open): Print a status notice after
1824 opening a TCP port.
1825 * server.c (attach_inferior): Print a status notice after
1826 attaching.
1827
1828 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
1829
1830 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
1831
1832 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
1833
1834 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
1835 error packet.
1836 * server.c, target.h: Update copyright years.
1837
1838 2004-02-25 Roland McGrath <roland@redhat.com>
1839
1840 * target.h (struct target_ops): New member `read_auxv'.
1841 * server.c (handle_query): Handle qPart:auxv:read: query using that.
1842 * linux-low.c (linux_read_auxv): New function.
1843 (linux_target_ops): Initialize `read_auxv' member to that.
1844
1845 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1846
1847 Committed by Jim Blandy <jimb@redhat.com>.
1848
1849 * linux-s390-low.c (s390_num_regs): Update.
1850 (s390_regmap): Remove control registers. Use __s390x__ predefine
1851 instead of GPR_SIZE to distiguish s390 and s390x targets.
1852
1853 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
1854
1855 * linux-low.c: Update copyright year.
1856 (check_removed_breakpoint): Clear pending_is_breakpoint.
1857 (linux_set_resume_request, linux_queue_one_thread)
1858 (resume_status_pending_p): New functions.
1859 (linux_continue_one_thread): Use process->resume.
1860 (linux_resume): Only resume threads if there are no pending events.
1861 * linux-low.h (struct process_info): Add resume request
1862 pointer.
1863
1864 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
1865
1866 * regcache.c (new_register_cache): Clear the allocated register
1867 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1868
1869 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
1870
1871 * linux-low.c (linux_resume): Take a struct thread_resume *
1872 argument.
1873 (linux_wait): Update call.
1874 (resume_ptr): New static variable.
1875 (linux_continue_one_thread): Renamed from
1876 linux_continue_one_process. Use resume_ptr.
1877 (linux_resume): Use linux_continue_one_thread.
1878 * server.c (handle_v_cont, handle_v_requests): New functions.
1879 (myresume): New function.
1880 (main): Handle 'v' case.
1881 * target.h (struct thread_resume): New type.
1882 (struct target_ops): Change argument of "resume" to struct
1883 thread_resume *.
1884 (myresume): Delete macro.
1885
1886 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1887
1888 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
1889 (uninstall): Support DESTDIR.
1890
1891 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
1892
1893 * configure.srv: Add xscale*linux copy of arm*linux entry.
1894
1895 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
1896
1897 * linux-arm-low.c (arm_reinsert_addr): New function.
1898 (the_low_target): Add arm_reinsert_addr.
1899
1900 2003-07-08 Mark Kettenis <kettenis@gnu.org>
1901
1902 * mem-break.c: Remove whitespace at end of file.
1903
1904 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1905
1906 * configure.in: Check whether we need to prototype strerror.
1907 * server.h: Optionally prototype strerror.
1908 * gdbreplay.c (perror_with_name): Use strerror.
1909 * linux-low.c (linux_attach_lwp): Use strerror.
1910 * utils.c (perror_with_name): Use strerror.
1911 * config.in, configure: Regenerated.
1912
1913 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1914
1915 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
1916 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
1917
1918 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
1919
1920 * Makefile.in (SFILES): Update.
1921 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
1922 low-sun3.c: Remove files.
1923
1924 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1925
1926 * linux-low.c: Move comment to linux_thread_alive where it belonged.
1927 (linux_detach_one_process, linux_detach): New functions.
1928 (linux_target_ops): Add linux_detach.
1929 * server.c (main): Handle 'D' packet.
1930 * target.h (struct target_ops): Add "detach" member.
1931 (detach_inferior): Define.
1932
1933 2003-06-13 Mark Kettenis <kettenis@gnu.org>
1934
1935 From Kelley Cook <kelleycook@wideopenwest.com>:
1936 * configure.srv: Accept i[34567]86 variants.
1937
1938 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
1939
1940 * linux-low.c (linux_wait_for_event): Correct comment typos.
1941 (linux_resume_one_process): Call check_removed_breakpoint.
1942 (linux_send_signal): New function.
1943 (linux_target_ops): Add linux_send_signal.
1944 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
1945 of kill.
1946 * target.h (struct target_ops): Add send_signal.
1947
1948 2003-05-29 Jim Blandy <jimb@redhat.com>
1949
1950 * linux-low.c (usr_store_inferior_registers): Transfer buf in
1951 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
1952 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
1953 away part of the register's value.
1954
1955 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
1956
1957 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
1958 (linux_wait_for_event, linux_init_signals): Likewise.
1959
1960 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
1961
1962 * configure.in: Check for stdlib.h.
1963 * configure: Regenerated.
1964 * config.in: Regenerated.
1965
1966 2003-01-04 Andreas Schwab <schwab@suse.de>
1967
1968 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
1969
1970 2003-01-02 Andrew Cagney <ac131313@redhat.com>
1971
1972 * Makefile.in: Remove obsolete code.
1973
1974 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
1975
1976 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
1977 defined(PT_FPR0_HI).
1978
1979 2002-11-17 Stuart Hughes <seh@zee2.com>
1980
1981 * linux-arm-low.c (arm_num_regs): Increase.
1982 (arm_regmap): Include status register.
1983
1984 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
1985
1986 * linux-low.c (register_addr): Remove incorrect -1 check.
1987
1988 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
1989
1990 * linux-low.c (linux_create_inferior): Call setpgid. Return
1991 the new PID.
1992 (unstopped_p, linux_signal_pid): Remove.
1993 (linux_target_ops): Remove linux_signal_pid.
1994 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
1995 global instead of target method.
1996 * target.h (struct target_ops): Remove signal_pid. Update comment
1997 for create_inferior.
1998 * server.c (signal_pid): New variable.
1999 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
2000 gdbserver. Set the child to be the foreground process group.
2001 (attach_inferior): Set signal_pid.
2002
2003 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2004
2005 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
2006
2007 2002-08-20 Jim Blandy <jimb@redhat.com>
2008
2009 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2010 default for this.
2011
2012 2002-08-01 Andrew Cagney <cagney@redhat.com>
2013
2014 * Makefile.in: Make chill references obsolete.
2015
2016 2002-07-24 Kevin Buettner <kevinb@redhat.com>
2017
2018 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
2019 * configure: Regenerate.
2020 * config.in: Regenerate.
2021
2022 2002-07-09 David O'Brien <obrien@FreeBSD.org>
2023
2024 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
2025 (perror_with_name, remote_close, remote_open, expect, play): Static.
2026
2027 2002-07-04 Michal Ludvig <mludvig@suse.cz>
2028
2029 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
2030 byte offsets instead of an array of indexes.
2031 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
2032
2033 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2034
2035 * regcache.c: Add comment.
2036
2037 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
2038
2039 * thread-db.c: New file.
2040 * proc-service.c: New file.
2041 * acinclude.m4: New file.
2042 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
2043 proc-service.o, and thread-db.o.
2044 (linux-low.o): Add USE_THREAD_DB.
2045 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
2046 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
2047 * aclocal.m4: Regenerated.
2048 * config.in: Regenerated.
2049 * configure: Regenerated.
2050 * configure.in: Check for proc_service.h, sys/procfs.h,
2051 thread_db.h, and linux/elf.h headrs.
2052 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
2053 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
2054 Check for -lthread_db and thread support.
2055 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
2056 PowerPC, and SuperH.
2057 * i387-fp.c: Constify arguments.
2058 * i387-fp.h: Likewise.
2059 * inferiors.c: (struct thread_info): Renamed from
2060 `struct inferior_info'. Remove PID member. Use generic inferior
2061 list header. All uses updated.
2062 (inferiors, signal_pid): Removed.
2063 (all_threads): New variable.
2064 (get_thread): Define.
2065 (add_inferior_to_list): New function.
2066 (for_each_inferior): New function.
2067 (change_inferior_id): New function.
2068 (add_inferior): Removed.
2069 (remove_inferior): New function.
2070 (add_thread): New function.
2071 (free_one_thread): New function.
2072 (remove_thread): New function.
2073 (clear_inferiors): Use for_each_inferior and free_one_thread.
2074 (find_inferior): New function.
2075 (find_inferior_id): New function.
2076 (inferior_target_data): Update argument type.
2077 (set_inferior_target_data): Likewise.
2078 (inferior_regcache_data): Likewise.
2079 (set_inferior_regcache_data): Likewise.
2080 * linux-low.c (linux_bp_reinsert): Remove.
2081 (all_processes, stopping_threads, using_thrads)
2082 (struct pending_signals, debug_threads, pid_of): New.
2083 (inferior_pid): Replace with macro.
2084 (struct inferior_linux_data): Remove.
2085 (get_stop_pc, add_process): New functions.
2086 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
2087 Use add_process and add_thread.
2088 (linux_attach_lwp): New function, based on old linux_attach. Use
2089 add_process and add_thread. Set stop_expected for new threads.
2090 (linux_attach): New function.
2091 (linux_kill_one_process): New function.
2092 (linux_kill): Kill all LWPs.
2093 (linux_thread_alive): Use find_inferior_id.
2094 (check_removed_breakpoints, status_pending_p): New functions.
2095 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
2096 Update. Use WNOHANG. Wait for cloned processes also. Update process
2097 struct for the found process.
2098 (linux_wait_for_event): New function.
2099 (linux_wait): Use it. Support LWPs.
2100 (send_sigstop, wait_for_sigstop, stop_all_processes)
2101 (linux_resume_one_process, linux_continue_one_process): New functions.
2102 (linux_resume): Support LWPs.
2103 (REGISTER_RAW_SIZE): Remove.
2104 (fetch_register): Use register_size instead. Call supply_register.
2105 (usr_store_inferior_registers): Likewise. Call collect_register.
2106 Fix recursive case.
2107 (regsets_fetch_inferior_registers): Improve error message.
2108 (regsets_store_inferior_registers): Add debugging.
2109 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
2110 (unstopped_p, linux_signal_pid): New functions.
2111 (linux_target_ops): Add linux_signal_pid.
2112 (linux_init_signals): New function.
2113 (initialize_low): Call it. Initialize using_threads.
2114 * regcache.c (inferior_regcache_data): Add valid
2115 flag.
2116 (get_regcache): Fetch registers lazily. Add fetch argument
2117 and update all callers.
2118 (regcache_invalidate_one, regcache_invalidate): New
2119 functions.
2120 (new_register_cache): Renamed from create_register_cache.
2121 Return the new regcache.
2122 (free_register_cache): Change argument to a void *.
2123 (registers_to_string, registers_from_string): Call get_regcache
2124 with fetch flag set.
2125 (register_data): Make static. Pass fetch flag to get_regcache.
2126 (supply_register): Call get_regcache with fetch flag clear.
2127 (collect_register): Call get_regcache with fetch flag set.
2128 (collect_register_as_string): New function.
2129 * regcache.h: Update.
2130 * remote-utils.c (putpkt): Flush after debug output and use
2131 stderr.
2132 Handle input interrupts while waiting for an ACK.
2133 (input_interrupt): Use signal_pid method.
2134 (getpkt): Flush after debug output and use stderr.
2135 (outreg): Use collect_register_as_string.
2136 (new_thread_notify, dead_thread_notify): New functions.
2137 (prepare_resume_reply): Check using_threads. Set thread_from_wait
2138 and general_thread.
2139 (look_up_one_symbol): Flush after debug output.
2140 * server.c (step_thread, server_waiting): New variables.
2141 (start_inferior): Don't use signal_pid. Update call to mywait.
2142 (attach_inferior): Update call to mywait.
2143 (handle_query): Handle qfThreadInfo and qsThreadInfo.
2144 (main): Don't fetch/store registers explicitly. Use
2145 set_desired_inferior. Support proposed ``Hs'' packet. Update
2146 calls to mywait.
2147 * server.h: Update.
2148 (struct inferior_list, struct_inferior_list_entry): New.
2149 * target.c (set_desired_inferior): New.
2150 (write_inferior_memory): Constify.
2151 (mywait): New function.
2152 * target.h: Update.
2153 (struct target_ops): New signal_pid method.
2154 (mywait): Removed macro, added prototype.
2155
2156 * linux-low.h (regset_func): Removed.
2157 (regset_fill_func, regset_store_func): New.
2158 (enum regset_type): New.
2159 (struct regset_info): Add type field. Use new operation types.
2160 (struct linux_target_ops): stop_pc renamed to get_pc.
2161 Add decr_pc_after_break and breakpoint_at.
2162 (get_process, get_thread_proess, get_process_thread)
2163 (strut process_info, all_processes, linux_attach_lwp)
2164 (thread_db_init): New.
2165
2166 * linux-arm-low.c (arm_get_pc, arm_set_pc,
2167 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
2168 (the_low_target): Add new members.
2169 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
2170 (i386_store_fpxregset): Constify.
2171 (target_regsets): Add new kind identifier.
2172 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
2173 (i386_set_pc): Add debugging.
2174 (i386_breakpoint_at): New function.
2175 (the_low_target): Add new members.
2176 * linux-mips-low.c (mips_get_pc, mips_set_pc)
2177 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
2178 (mips_breakpoint_at): New.
2179 (the_low_target): Add new members.
2180 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
2181 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
2182 (the_low_target): Add new members.
2183 * linux-sh-low.c (sh_get_pc, sh_set_pc)
2184 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
2185 (the_low_target): Add new members.
2186 * linux-x86-64-low.c (target_regsets): Add new kind
2187 identifier.
2188
2189 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
2190
2191 From Martin Pool <mbp@samba.org>:
2192 * server.c (gdbserver_usage): New function.
2193 (main): Call it.
2194
2195 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
2196
2197 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
2198 stop_at -> stop_pc.
2199
2200 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2201
2202 * Makefile.in: Remove obsolete code.
2203
2204 2002-04-24 Michal Ludvig <mludvig@suse.cz>
2205
2206 * linux-low.c (regsets_fetch_inferior_registers),
2207 (regsets_store_inferior_registers): Removed cast to int from
2208 ptrace() calls.
2209 * regcache.h: Added declaration of struct inferior_info.
2210
2211 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
2212
2213 * inferiors.c (struct inferior_info): Add regcache_data.
2214 (add_inferior): Call create_register_cache.
2215 (clear_inferiors): Call free_register_cache.
2216 (inferior_regcache_data, set_inferior_regcache_data): New functions.
2217 * regcache.c (struct inferior_regcache_data): New.
2218 (registers): Remove.
2219 (get_regcache): New function.
2220 (create_register_cache, free_register_cache): New functions.
2221 (set_register_cache): Don't initialize the register cache here.
2222 (registers_to_string, registers_from_string, register_data): Call
2223 get_regcache.
2224 * regcache.h: Add prototypes.
2225 * server.h: Likewise.
2226
2227 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
2228
2229 * mem-break.c: New file.
2230 * mem-break.h: New file.
2231 * Makefile.in: Add mem-break.o rule; update server.h
2232 dependencies.
2233 * inferiors.c (struct inferior_info): Add target_data
2234 member.
2235 (clear_inferiors): Free target_data member if set.
2236 (inferior_target_data, set_inferior_target_data): New functions.
2237 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
2238 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
2239 * linux-low.c (linux_bp_reinsert): New variable.
2240 (struct inferior_linux_data): New.
2241 (linux_create_inferior): Use set_inferior_target_data.
2242 (linux_attach): Likewise. Call add_inferior.
2243 (linux_wait_for_one_inferior): New function.
2244 (linux_wait): Call it.
2245 (linux_write_memory): Add const.
2246 (initialize_low): Call set_breakpoint_data.
2247 * linux-low.h (struct linux_target_ops): Add breakpoint
2248 handling members.
2249 * server.c (attach_inferior): Remove extra add_inferior
2250 call.
2251 * server.h: Include mem-break.h. Update inferior.c
2252 prototypes.
2253 * target.c (read_inferior_memory)
2254 (write_inferior_memory): New functions.
2255 * target.h (read_inferior_memory)
2256 (write_inferior_memory): Change macros to prototypes.
2257 (struct target_ops): Update comments. Add const to write_memory
2258 definition.
2259
2260 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
2261
2262 * linux-low.c (usr_store_inferior_registers): Support
2263 registers which are allowed to fail to store.
2264 * linux-low.h (linux_target_ops): Likewise.
2265 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
2266 (ppc_cannot_store_register): FPSCR may not be storable.
2267
2268 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2269
2270 * server.h: Include <string.h> if HAVE_STRING_H.
2271 * ChangeLog: Correct paths in last ChangeLog entry.
2272
2273 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2274
2275 * linux-low.h: Remove obsolete prototypes.
2276 (struct linux_target_ops): New.
2277 (extern the_low_target): New.
2278 * linux-low.c (num_regs, regmap): Remove declarations.
2279 (register_addr): Use the_low_target explicitly.
2280 (fetch_register): Likewise.
2281 (usr_fetch_inferior_registers): Likewise.
2282 (usr_store_inferior_registers): Likewise.
2283 * linux-arm-low.c (num_regs): Remove.
2284 (arm_num_regs): Define.
2285 (arm_regmap): Renamed from regmap, made static.
2286 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
2287 made static.
2288 (arm_cannot_store_register): Renamed from cannot_store_register,
2289 made static.
2290 (the_low_target): New.
2291 * linux-i386-low.c (num_regs): Remove.
2292 (i386_num_regs): Define.
2293 (i386_regmap): Renamed from regmap, made static.
2294 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
2295 made static.
2296 (i386_cannot_store_register): Renamed from cannot_store_register,
2297 made static.
2298 (the_low_target): New.
2299 * linux-ia64-low.c (num_regs): Remove.
2300 (ia64_num_regs): Define.
2301 (ia64_regmap): Renamed from regmap, made static.
2302 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
2303 made static.
2304 (ia64_cannot_store_register): Renamed from cannot_store_register,
2305 made static.
2306 (the_low_target): New.
2307 * linux-m68k-low.c (num_regs): Remove.
2308 (m68k_num_regs): Define.
2309 (m68k_regmap): Renamed from regmap, made static.
2310 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
2311 made static.
2312 (m68k_cannot_store_register): Renamed from cannot_store_register,
2313 made static.
2314 (the_low_target): New.
2315 * linux-mips-low.c (num_regs): Remove.
2316 (mips_num_regs): Define.
2317 (mips_regmap): Renamed from regmap, made static.
2318 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
2319 made static.
2320 (mips_cannot_store_register): Renamed from cannot_store_register,
2321 made static.
2322 (the_low_target): New.
2323 * linux-ppc-low.c (num_regs): Remove.
2324 (ppc_num_regs): Define.
2325 (ppc_regmap): Renamed from regmap, made static.
2326 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
2327 made static.
2328 (ppc_cannot_store_register): Renamed from cannot_store_register,
2329 made static.
2330 (the_low_target): New.
2331 * linux-s390-low.c (num_regs): Remove.
2332 (s390_num_regs): Define.
2333 (s390_regmap): Renamed from regmap, made static.
2334 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
2335 made static.
2336 (s390_cannot_store_register): Renamed from cannot_store_register,
2337 made static.
2338 (the_low_target): New.
2339 * linux-sh-low.c (num_regs): Remove.
2340 (sh_num_regs): Define.
2341 (sh_regmap): Renamed from regmap, made static.
2342 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
2343 made static.
2344 (sh_cannot_store_register): Renamed from cannot_store_register,
2345 made static.
2346 (the_low_target): New.
2347 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2348 (the_low_target): New.
2349
2350 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2351
2352 * Makefile.in: Add stamp-h target.
2353 * configure.in: Create stamp-h.
2354 * configure: Regenerated.
2355
2356 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2357
2358 * inferiors.c: New file.
2359 * target.c: New file.
2360 * target.h: New file.
2361 * Makefile.in: Add target.o and inferiors.o. Update
2362 dependencies.
2363 * linux-low.c (inferior_pid): New static variable,
2364 moved from server.c.
2365 (linux_create_inferior): Renamed from create_inferior.
2366 Call add_inferior. Return 0 on success instead of a PID.
2367 (linux_attach): Renamed from myattach.
2368 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
2369 (linux_thread_alive): Renamed from mythread_alive.
2370 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
2371 child dies.
2372 (linux_resume): Renamed from myresume. Add missing ``return 0''.
2373 (regsets_store_inferior_registers): Correct error message.
2374 Add missing ``return 0''.
2375 (linux_fetch_registers): Renamed from fetch_inferior_registers.
2376 (linux_store_registers): Renamed from store_inferior_registers.
2377 (linux_read_memory): Renamed from read_inferior_memory.
2378 (linux_write_memory): Renamed from write_inferior_memory.
2379 (linux_target_ops): New structure.
2380 (initialize_low): Call set_target_ops ().
2381 * remote-utils.c (unhexify): New function.
2382 (hexify): New function.
2383 (input_interrupt): Send signals to ``signal_pid''.
2384 * server.c (inferior_pid): Remove.
2385 (start_inferior): Update create_inferior call.
2386 (attach_inferior): Call add_inferior.
2387 (handle_query): New function.
2388 (main): Call handle_query for `q' packets.
2389 * server.h: Include "target.h". Remove obsolete prototypes.
2390 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
2391
2392 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2393
2394 * Makefile.in: Add WARN_CFLAGS. Update configury
2395 dependencies.
2396 * configure.in: Check for <string.h>
2397 * configure: Regenerate.
2398 * config.in: Regenerate.
2399 * gdbreplay.c: Include needed system headers.
2400 (remote_open): Remove strchr prototype.
2401 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
2402 * regcache.c (supply_register): Change buf argument to const void *.
2403 (supply_register_by_name): Likewise.
2404 (collect_register): Change buf argument to void *.
2405 (collect_register_by_name): Likewise.
2406 * regcache.h: Add missing prototypes.
2407 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
2408 * server.c (handle_query): New function.
2409 (attached): New static variable, moved out of main.
2410 (main): Quiet longjmp clobber warnings.
2411 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
2412 * utils.c (error): Remove NORETURN.
2413 (fatal): Likewise.
This page took 0.102088 seconds and 4 git commands to generate.