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