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