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