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