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