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