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