552c83d5ee97d23a96a7d8f09f3d3db1ced0f941
[deliverable/binutils-gdb.git] / gdb / gdbserver / ChangeLog
1 2010-03-23 Pedro Alves <pedro@codesourcery.com>
2
3 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
4 lwp had been stopped by a watchpoint.
5
6 2010-03-16 Pedro Alves <pedro@codesourcery.com>
7
8 * server.h (internal_error): Declare.
9 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
10 * utils.c (internal_error): New function.
11
12 2010-03-15 Andreas Schwab <schwab@redhat.com>
13
14 * configure.srv: Fix typo setting srv_regobj.
15
16 2010-03-15 Pedro Alves <pedro@codesourcery.com>
17
18 * linux-low.c (fetch_register): Avoid passing a non string literal
19 format to `error'.
20 (usr_store_inferior_registers): Ditto.
21
22 2010-03-14 Pedro Alves <pedro@codesourcery.com>
23
24 * linux-low.c (linux_write_memory): Bail out early if peeking
25 memory failed.
26
27 2010-03-14 Pedro Alves <pedro@codesourcery.com>
28
29 * linux-low.h (struct lwp_info): New fields
30 `stopped_by_watchpoint' and `stopped_data_address'.
31 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
32 here, and cache them in the lwp object.
33 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
34 directly.
35 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
36 field.
37 (linux_stopped_by_watchpoint): Rewrite.
38 (linux_stopped_data_address): Rewrite.
39
40 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
41
42 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
43 switching the current inferior, not before.
44
45 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
46
47 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
48 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
49 i386-linux.c and amd64-linux.c.
50 (reg-i386.o): Removed.
51 (reg-i386.c): Likewise.
52 (reg-i386-linux.o): Likewise.
53 (reg-i386-linux.c): Likewise.
54 (reg-x86-64.o): Likewise.
55 (reg-x86-64.c): Likewise.
56 (reg-x86-64-linux.o): Likewise.
57 (reg-x86-64-linux.c): Likewise.
58 (i386.o): New.
59 (i386.c): Likewise.
60 (i386-linux.o): Likewise.
61 (i386-linux.c): Likewise.
62 (amd64.o): Likewise.
63 (amd64.c): Likewise.
64 (amd64-linux.o): Likewise.
65 (amd64-linux.c): Likewise.
66
67 * configure.srv (srv_i386_regobj): New.
68 (srv_i386_linux_regobj): Likewise.
69 (srv_amd64_regobj): Likewise.
70 (srv_amd64_linux_regobj): Likewise.
71 (srv_i386_32bit_xmlfiles): Likewise.
72 (srv_i386_64bit_xmlfiles): Likewise.
73 (srv_i386_xmlfiles): Likewise.
74 (srv_amd64_xmlfiles): Likewise.
75 (srv_i386_linux_xmlfiles): Likewise.
76 (srv_amd64_linux_xmlfiles): Likewise.
77 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
78 srv_xmlfiles to $srv_i386_xmlfiles.
79 (i[34567]86-*-mingw32ce*): Likewise.
80 (i[34567]86-*-mingw*): Likewise.
81 (i[34567]86-*-nto*): Likewise.
82 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
83 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
84 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
85 (x86_64-*-linux*): Likewise.
86
87 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
88 (init_registers_amd64_linux): New.
89 (x86_arch_setup): Replace init_registers_x86_64_linux with
90 init_registers_amd64_linux.
91
92 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
93
94 * configure.ac: Check for libdl. If it is not available link against
95 static libthread_db.
96 * configure: Regenerate.
97
98 2010-02-22 Pedro Alves <pedro@codesourcery.com>
99
100 PR9605
101
102 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
103 handing a read watchpoint.
104 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
105
106 2010-02-12 Doug Evans <dje@google.com>
107
108 * linux-low.c (linux_supports_tracefork_flag): Document.
109 (linux_look_up_symbols): Add comment.
110
111 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
112
113 * regcache.c (supply_register): Clear regcache if buf is NULL.
114
115 2010-02-02 Nicolas Roche <roche@sourceware.org>
116 Joel Brobecker <brobecker@adacore.com>
117
118 * inferiors.c (find_inferior): Add function documentation.
119 (unloaded_dll): Handle the case where the unloaded dll has not
120 been previously registered in the dll list.
121
122 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
123
124 * linux-arm-low.c (thumb_breakpoint_len): Delete.
125 (thumb2_breakpoint): New.
126 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
127
128 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
129
130 * linux-low.c (get_stop_pc): Check for SIGTRAP.
131 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
132 breakpoints.
133
134 2010-01-21 Pedro Alves <pedro@codesourcery.com>
135
136 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
137
138 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
139
140 * linux-s390-low.c (s390_collect_ptrace_register)
141 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
142
143 2010-01-21 Doug Evans <dje@google.com>
144
145 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
146 (PTRACE_ARG4_TYPE): New macro.
147 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
148 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
149 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
150 (usr_store_inferior_registers): Ditto.
151 (linux_read_memory, linux_write_memory): Ditto.
152 (linux_test_for_tracefork): Ditto.
153
154 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
155 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
156
157 2010-01-21 Pedro Alves <pedro@codesourcery.com>
158
159 * proc-service.c (ps_lgetregs): Don't refetch registers from the
160 target.
161
162 2010-01-21 Pedro Alves <pedro@codesourcery.com>
163
164 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
165 prototype to take a regcache. Adjust.
166
167 2010-01-20 Pedro Alves <pedro@codesourcery.com>
168
169 * regcache.h (struct thread_info): Forward declare.
170 (struct regcache): New.
171 (new_register_cache): Adjust prototype.
172 (get_thread_regcache): Declare.
173 (free_register_cache): Adjust prototype.
174 (registers_to_string, registers_from_string): Ditto.
175 (supply_register, supply_register_by_name, collect_register)
176 (collect_register_as_string, collect_register_by_name): Ditto.
177 * regcache.c (struct inferior_regcache_data): Delete.
178 (get_regcache): Rename to ...
179 (get_thread_regcache): ... this. Adjust. Switch inferior before
180 fetching registers.
181 (regcache_invalidate_one): Adjust.
182 (regcache_invalidate): Fix prototype.
183 (new_register_cache): Return the new register cache.
184 (free_register_cache): Change prototype.
185 (realloc_register_cache): Adjust.
186 (registers_to_string): Change prototype to take a regcache. Adjust.
187 (registers_from_string): Ditto.
188 (register_data): Ditto.
189 (supply_register): Ditto.
190 (supply_register_by_name): Ditto.
191 (collect_register): Ditto.
192 (collect_register_as_string): Ditto.
193 (collect_register_by_name): Ditto.
194 * server.c (process_serial_event): Adjust.
195 * linux-low.h (regset_fill_func, regset_store_func): Change
196 prototype.
197 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
198 Change prototype.
199 * linux-low.c (get_stop_pc): Adjust.
200 (check_removed_breakpoint): Adjust.
201 (linux_wait_for_event): Adjust.
202 (linux_resume_one_lwp): Adjust.
203 (fetch_register): Add regcache parameter. Adjust.
204 (usr_store_inferior_registers): Ditto.
205 (regsets_fetch_inferior_registers): Ditto.
206 (regsets_store_inferior_registers): Ditto.
207 (linux_fetch_registers, linux_store_registers): Ditto.
208 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
209 regcache. Adjust.
210 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
211 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
212 prototype to take a regcache.
213 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
214 * remote-utils.c (convert_ascii_to_int, outreg)
215 (prepare_resume_reply): Change prototype to take a regcache.
216 Adjust.
217 * target.h (struct target_ops) <fetch_registers, store_registers>:
218 Change prototype to take a regcache.
219 (fetch_inferior_registers, store_inferior_registers): Change
220 prototype to take a regcache. Adjust.
221 * proc-service.c (ps_lgetregs): Adjust.
222 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
223 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
224 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
225 take a regcache. Adjust.
226 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
227 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
228 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
229 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
230 * linux-cris-low.c (cris_get_pc, cris_set_pc)
231 (cris_cannot_fetch_register):
232 (cris_breakpoint_at): Change prototype to take a regcache.
233 Adjust.
234 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
235 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
236 to take a regcache. Adjust.
237 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
238 Adjust.
239 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
240 take a regcache. Adjust.
241 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
242 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
243 (m68k_set_pc): Change prototype to take a regcache. Adjust.
244 * linux-mips-low.c (mips_get_pc):
245 (mips_set_pc): Change prototype to take a regcache. Adjust.
246 (mips_reinsert_addr): Adjust.
247 (mips_collect_register): Change prototype to take a regcache.
248 Adjust.
249 (mips_supply_register):
250 (mips_collect_register_32bit, mips_supply_register_32bit)
251 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
252 (mips_store_fpregset): Ditto.
253 * linux-ppc-low.c (ppc_supply_ptrace_register, ppc_supply_ptrace_register):
254 Ditto.
255 (parse_spufs_run): Adjust.
256 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
257 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
258 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
259 take a regcache. Adjust.
260 * linux-s390-low.c (s390_collect_ptrace_register)
261 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
262 (s390_set_pc): Change prototype to take a regcache. Adjust.
263 (s390_arch_setup): Adjust.
264 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
265 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
266 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
267 (sparc_fill_gregset, sparc_store_gregset_from_stack)
268 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
269 regcache. Adjust.
270 (sparc_breakpoint_at): Adjust.
271 * linux-xtensa-low.c (xtensa_fill_gregset):
272 (xtensa_store_gregset):
273 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
274 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
275 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
276 prototype to take a regcache. Adjust.
277 * win32-arm-low.c (arm_fetch_inferior_register)
278 (arm_store_inferior_register): Change prototype to take a
279 regcache. Adjust.
280 * win32-i386-low.c (i386_fetch_inferior_register)
281 (i386_store_inferior_register): Change prototype to take a
282 regcache. Adjust.
283 * win32-low.c (child_fetch_inferior_registers)
284 (child_store_inferior_registers): Change prototype to take a
285 regcache. Adjust.
286 (win32_wait): Adjust.
287 (win32_fetch_inferior_registers): Change prototype to take a
288 regcache. Adjust.
289 (win32_store_inferior_registers): Adjust.
290 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
291 store_inferior_register>: Change prototype to take a regcache.
292
293 2010-01-20 Doug Evans <dje@google.com>
294
295 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
296 #ifdef.
297 (linux_wait_for_event1, linux_init_signals): Ditto.
298 (W_STOPCODE): Provide definition if missing.
299
300 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
301
302 * linux-low.c (linux_core_of_thread): New.
303 (compare_ints, show_process, list_threads): New.
304 (linux_qxfer_osdata): Report threads and cores.
305 (linux_target_op): Register linux_core_of_thread.
306 * remote-utils.c (prepare_resume_reply): Report the core.
307 (buffer_xml_printf): Support %d specifier.
308 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
309 New.
310 (handle_query): Handle qXfer:threads. Announce availability
311 thereof.
312 * target.h (struct target_ops): New field core_of_thread.
313
314 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
315
316 * Makefile.in (clean): Remove new generated files.
317 (reg-s390.o, reg-s390.c): Remove rules.
318 (reg-s390x.o, reg-s390x.c): Likewise.
319 (s390-linux32.o, s390-linux32.c): Add rules.
320 (s390-linux64.o, s390-linux64.c): Likewise.
321 (s390x-linux64.o, s390x-linux64.c): Likewise.
322 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
323 * linux-s390-low.c: Include <elf.h>.
324 (HWCAP_S390_HIGH_GPRS): Define if undefined.
325 (init_registers_s390): Remove prototype.
326 (init_registers_s390x): Likewise.
327 (init_registers_s390_linux32): Add prototype.
328 (init_registers_s390_linux64): Likewise.
329 (init_registers_s390x_linux64): Likewise.
330 (s390_num_regs_3264): New define.
331 (s390_regmap_3264): New global variable.
332 (s390_cannot_fetch_register): Remove obsolete check.
333 (s390_cannot_store_register): Likewise.
334 (s390_collect_ptrace_register): Handle upper/lower register halves.
335 (s390_supply_ptrace_register): Likewise.
336 (s390_fill_gregset): Update to register number changes.
337 (s390_get_hwcap): New routine.
338 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
339 Install appropriate regmap and register set.
340
341 2010-01-01 Joel Brobecker <brobecker@adacore.com>
342
343 * server.c (gdbserver_version): Update copyright year to 2010.
344 * gdbreplay.c (gdbreplay_version): Likewise.
345
346 2009-12-28 Doug Evans <dje@google.com>
347
348 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
349 elf/external.h. Include <elf.h> instead but only if necessary.
350
351 2009-12-28 Pedro Alves <pedro@codesourcery.com>
352
353 * linux-low.c (linux_remove_process): Remove `detaching'
354 parameter. Don't release/detach from thread_db here.
355 (linux_kill): Release/detach from thread_db here, ...
356 (linux_detach): ... and here, before actually detaching.
357 (linux_wait_1): ... and here, when a process exits.
358 * thread-db.c (any_thread_of): New.
359 (thread_db_free): Switch the current inferior to a thread of the
360 passed in process.
361
362 2009-12-21 Doug Evans <dje@google.com>
363
364 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
365
366 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
367 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
368 warning ifndef __NR_tkill. Move setting of errno there too.
369 Delete unnecessary resetting of errno after syscall.
370 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
371
372 * configure.ac: Check for dladdr.
373 * config.in: Regenerate.
374 * configure: Regenerate.
375 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
376 (try_thread_db_load): Update.
377
378 * linux-low.c (my_waitpid): Delete unnecessary prototype.
379
380 2009-12-18 Doug Evans <dje@google.com>
381
382 * event-loop.c: Include unistd.h if it exists.
383
384 * linux-low.c (my_waitpid): Move definition away from being in
385 between linux_tracefork_child/linux_test_for_tracefork.
386
387 * gdb_proc_service.h (psaddr_t): Fix type.
388 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
389 signature to match glibc.
390
391 2009-12-16 Doug Evans <dje@google.com>
392
393 * linux-low.c (linux_read_memory): Fix argument to read.
394
395 2009-11-26 Pedro Alves <pedro@codesourcery.com>
396
397 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
398 events, don't leave current_inferior pointing at null.
399
400 2009-11-26 Pedro Alves <pedro@codesourcery.com>
401
402 * win32-low.c (LOG): Delete.
403 (OUTMSG): Output to stderr.
404 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
405 on compile time LOG macro.
406 (win32_wait): Fix debug output.
407
408 2009-11-26 Pedro Alves <pedro@codesourcery.com>
409
410 * win32-low.c (win32_add_one_solib): If the dll name is
411 "ntdll.dll", prepend the system directory to the dll path.
412
413 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
414
415 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
416
417 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
418 Vladimir Prus <vladimir@codesourcery.com>
419
420 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
421 * configure.ac: Check for __mcoldfire__ and set
422 gdb_cv_m68k_is_coldfire.
423 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
424 reg-cf.o and reg-m68k.o.
425 * configure: Regenerated.
426
427 2009-11-16 Pedro Alves <pedro@codesourcery.com>
428
429 * linux-low.c (linux_remove_process): Add `detaching' parameter.
430 Pass it to thread_db_free.
431 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
432 proper `detaching' argument to linux_remove_process.
433 * linux-low.h (thread_db_free): Add `detaching' parameter.
434 * thread-db.c (thread_db_init): Pass false as `detaching' argument
435 to thread_db_free.
436 (thread_db_free): Add `detaching' parameter. Only
437 call td_ta_clear_event if detaching from process.
438
439 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
440
441 * thread-db.c (thread_db_free): Fix typo.
442
443 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
444
445 PR gdb/10838
446 * thread-db.c (thread_db_free): Call td_ta_clear_event.
447
448 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
449
450 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
451 with an i686 compiler.
452 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
453 needed.
454 * configure: Rebuilt.
455
456 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
457
458 PR gdb/10783
459
460 * server.c (handle_search_memory_1): Correct read_addr initialization
461 in loop for searching subsequent chunks.
462
463 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
464
465 * configure.ac: New --with-libthread-db option.
466 * thread-db.c: Allow direct dependence on libthread_db.
467 (thread_db_free): Adjust.
468 * config.in: Regenerate.
469 * configure: Likewise.
470
471 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
472
473 PR gdb/10757
474 * thread-db.c (attach_thread): New function.
475 (maybe_attach_thread): Return success/failure.
476 (find_new_threads_callback): Adjust.
477 (thread_db_find_new_threads): Loop until no new threads.
478
479 2009-10-13 Pedro Alves <pedro@codesourcery.com>
480
481 * proc-service.c (ps_lgetregs): Formatting.
482
483 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
484
485 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
486 * configure.ac: Adjust.
487 * linux-low.h (struct process_info_private): Move members to struct
488 thread_db.
489 (thread_db_free, thread_db_handle_monitor_command): New prototype.
490 * linux-low.c (linux_remove_process): Adjust.
491 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
492 * server.c (handle_query): Move code ...
493 (handle_monitor_command): ... here. New function.
494 * target.h (struct target_ops): New member.
495 * thread-db.c (struct thread_db): New.
496 (libthread_db_search_path): New variable.
497 (thread_db_create_event, thread_db_enable_reporting)
498 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
499 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
500 (try_thread_db_load_1, dladdr_to_soname): New functions.
501 (try_thread_db_load, thread_db_load_search): New functions.
502 (thread_db_init): Search for libthread_db.
503 (thread_db_free): New function.
504 (thread_db_handle_monitor_command): Likewise.
505 * config.in: Regenerate.
506 * configure: Regenerate.
507
508 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
509
510 * spu-low.c (spu_kill): Wait for inferior to terminate.
511 Call clear_inferiors.
512 (spu_detach): Call clear_inferiors.
513
514 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
515
516 * aclocal.m4: Regenerate.
517 * config.in: Likewise.
518 * configure: Likewise.
519
520 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
521
522 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
523 (parse_spufs_run): New function.
524 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
525 (ppc_breakpoint_at): Handle SPU breakpoints.
526
527 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
528
529 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
530 (SPUFS_MAGIC): Define.
531 (spu_enumerate_spu_ids): New function.
532 (linux_qxfer_spu): New function.
533 (linux_target_ops): Install linux_qxfer_spu.
534
535 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
536
537 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
538 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
539 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
540 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
541 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
542 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
543 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
544 (init_registers_powerpc_cell32l): Add prototype.
545 (init_registers_powerpc_cell64l): Likewise.
546 (ppc_arch_setup): Detect Cell/B.E. architecture.
547
548 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
549
550 * Makefile.in (datarootdir): New variable.
551
552 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
553
554 * linux-low.c (linux_write_memory): Update debugging output.
555 * Makefile.in (clean): Add new descriptions.
556 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
557 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
558 * configure.srv: Add new files for arm*-*-linux*.
559 * linux-arm-low.c: Add new declarations.
560 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
561 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
562 (HWCAP_VFPv3D16): New.
563 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
564 instead of __IWMMXT__.
565 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
566 (arm_arch_setup): New.
567 (target_regsets): Remove #ifdef. Add VFP regset.
568 (the_low_target): Use arm_arch_setup.
569
570 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
571
572 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
573 the main thread again.
574
575 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
576
577 Adding Neutrino gdbserver.
578 * configure: Regenerated.
579 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
580 * configure.srv (i[34567]86-*-nto*): New target.
581 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
582 * remote-utils.c [__QNX__]: Include sys/iomgr.h
583 (nto_comctrl) [__QNX__]: New function.
584 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
585
586 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
587
588 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
589 srv_tgtobj.
590
591 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
592 Pedro Alves <pedro@codesourcery.com>
593
594 * win32-i386-low.c (i386_get_thread_context): Handle systems that
595 don't support CONTEXT_EXTENDED_REGISTERS.
596 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
597 (the_low_target): Install them.
598 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
599 failing with ERROR_PIPE_NOT_CONNECTED.
600
601 2009-06-30 Doug Evans <dje@google.com>
602 Pierre Muller <muller@ics.u-strasbg.fr>
603
604 Add h/w watchpoint support to x86-linux, win32-i386.
605 * Makefile.in (SFILES): Add i386-low.c
606 (i386_low_h): Define.
607 (i386-low.o): Add dependencies.
608 (linux-x86-low.o): Add i386-low.h dependency.
609 (win32-i386-low.o): Ditto.
610 * i386-low.c: New file.
611 * i386-low.h: New file.
612 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
613 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
614 * linux-low.c (linux_add_process): Initialize arch_private.
615 (linux_remove_process): Free arch_private.
616 (add_lwp): Initialize arch_private.
617 (delete_lwp): Free arch_private.
618 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
619 provided.
620 * linux-low.h (process_info_private): New member arch_private.
621 (lwp_info): New member arch_private.
622 (linux_target_ops): New members new_process, new_thread,
623 prepare_to_resume.
624 (ptid_of): New macro.
625 * linux-x86-low.c: Include stddef.h, i386-low.h.
626 (arch_process_info): New struct.
627 (arch_lwp_info): New struct.
628 (x86_linux_dr_get, x86_linux_dr_set): New functions.
629 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
630 (i386_dr_low_get_status): New function.
631 (x86_insert_point, x86_remove_point): New functions.
632 (x86_stopped_by_watchpoint): New function.
633 (x86_stopped_data_address): New function.
634 (x86_linux_new_process, x86_linux_new_thread): New functions.
635 (x86_linux_prepare_to_resume): New function.
636 (the_low_target): Add entries for insert_point, remove_point,
637 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
638 prepare_to_resume.
639 * server.c (debug_hw_points): New global.
640 (monitor_show_help): Document set debug-hw-points.
641 (handle_query): Process "set debug-hw-points".
642 * server.h (debug_hw_points): Declare.
643 (paddress): Declare.
644 * utils.c (NUMCELLS, CELLSIZE): New macros.
645 (get_sell, xsnprintf, paddress): New functions.
646 * win32-arm-low.c (the_low_target): Add entries for insert_point,
647 remove_point, stopped_by_watchpoint, stopped_data_address.
648 * win32-i386-low.c: Include i386-low.h.
649 (debug_reg_state): Replaces dr.
650 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
651 (i386_dr_low_get_status): New function.
652 (i386_insert_point, i386_remove_point): New functions.
653 (i386_stopped_by_watchpoint): New function.
654 (i386_stopped_data_address): New function.
655 (i386_initial_stuff): Update.
656 (get_thread_context,set_thread_context,i386_thread_added): Update.
657 (the_low_target): Add entries for insert_point,
658 remove_point, stopped_by_watchpoint, stopped_data_address.
659 * win32-low.c (win32_insert_watchpoint): New function.
660 (win32_remove_watchpoint): New function.
661 (win32_stopped_by_watchpoint): New function.
662 (win32_stopped_data_address): New function.
663 (win32_target_ops): Add entries for insert_watchpoint,
664 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
665 * win32-low.h (win32_target_ops): New members insert_point,
666 remove_point, stopped_by_watchpoint, stopped_data_address.
667
668 2009-06-25 Pedro Alves <pedro@codesourcery.com>
669
670 * server.c (process_serial_event): Re-return unsupported, not
671 error, if the type isn't recognized. Re-allow supporting only
672 insert or remove packets. Also call require_running for
673 breakpoints. Add missing break statement to default case. Tidy.
674 * target.h (struct target_ops): Rename insert_watchpoint to
675 insert_point, and remove_watchpoint to remove_point.
676
677 * linux-low.h (struct linux_target_ops): Likewise.
678 * linux-low.c (linux_insert_watchpoint): Rename to ...
679 (linux_insert_point): ... this. Adjust.
680 (linux_remove_watchpoint): Rename to ...
681 (linux_remove_point): ... this. Adjust.
682 (linux_target_ops): Adjust.
683 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
684 (cris_insert_point): ... this.
685 (cris_remove_watchpoint): Rename to ...
686 (cris_remove_point): ... this.
687 (the_low_target): Adjust.
688
689 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
690
691 * server.c (handle_v_kill): Pass signal_pid to
692 kill_inferior if multi_process is zero.
693
694 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
695
696 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
697 * target.h (target_ops): Comment for *_watchpoint to make it clear
698 the functions can get types '0' and '1'.
699
700 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
701
702 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
703 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
704 * regcache.c (get_regcache): Likewise.
705 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
706 * win32-low.c (child_fetch_inferior_registers): Remove check for
707 regno 0.
708
709 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
710 Pedro Alves <pedro@codesourcery.com>
711
712 * target.h (struct target_ops) <supports_multi_process>: New
713 callback.
714 (target_supports_multi_process): New.
715 * server.c (handle_query): Even if GDB reports support, only
716 enable multi-process if the target also supports it. Report
717 multi-process support only if the target backend supports it.
718 * linux-low.c (linux_supports_multi_process): New function.
719 (linux_target_ops): Install it as target_supports_multi_process
720 callback.
721
722 2009-05-24 Doug Evans <dje@google.com>
723
724 Global renaming of find_thread_pid to find_thread_ptid.
725 * server.h (find_thread_ptid): Renamed from find_thread_pid.
726 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
727 All callers updated.
728
729 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
730 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
731 directly.
732
733 * linux-low.c (get_stop_pc): Print pc if debug_threads.
734 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
735 (linux_resume_one_lwp): Ditto.
736
737 2009-05-23 Doug Evans <dje@google.com>
738
739 * linux-low.c (linux_resume_one_lwp): Change type of first arg
740 from struct inferior_list_entry * to struct lwp_info *.
741 All callers updated.
742
743 2009-05-13 Doug Evans <dje@google.com>
744
745 * linux-x86-low.c: Don't include assert.h.
746 (x86_siginfo_fixup): Use fatal, not assert.
747 (x86_arch_setup): Fix comment.
748
749 2009-05-12 Doug Evans <dje@google.com>
750
751 Biarch support for i386/amd64 gdbserver.
752 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
753 Add linux-x86-low.c.
754 (linux-i386-low.o, linux-x86-64-low.o): Delete.
755 (linux-x86-low.o): Add.
756 * linux-x86-64-low.c: Delete.
757 * linux-i386-low.c: Delete.
758 * linux-x86-low.c: New file.
759 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
760 linux-x86-low.o.
761 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
762 linux-x86-low.o.
763 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
764 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
765 (linux_child_pid_to_exec_file): New function.
766 (elf_64_header_p, elf_64_file_p): New functions.
767 (siginfo_fixup): New function.
768 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
769 give target a chance to convert layout.
770 * linux-low.h (linux_target_ops): New member siginfo_fixup.
771 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
772
773 2009-05-07 Doug Evans <dje@google.com>
774
775 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
776 (regsets_store_inferior_registers): Ditto.
777
778 2009-05-06 Pedro Alves <pedro@codesourcery.com>
779
780 PR server/10048
781
782 * linux-low.c (must_set_ptrace_flags): Delete.
783 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
784 of the global.
785 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
786 `lwp->must_set_ptrace_flags' instead.
787 (linux_wait_for_event_1): Set ptrace options here.
788 (linux_wait_1): ... not here.
789
790 2009-04-30 Doug Evans <dje@google.com>
791
792 * inferiors.c (started_inferior_callback): New function.
793 (attached_inferior_callback): New function.
794 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
795 * server.c (print_started_pid, print_attached_pid): New functions.
796 (detach_or_kill_for_exit): New function.
797 (main): Call it instead of for_each_inferior (kill_inferior_callback).
798 * server.h (have_started_inferiors_p): Declare.
799 (have_attached_inferiors_p): Declare.
800
801 * inferiors.c (remove_process): Fix memory leak, free process.
802 * linux-low.c (linux_remove_process): New function.
803 (linux_kill): Call it instead of remove_process.
804 (linux_detach, linux_wait_1): Ditto.
805
806 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
807
808 * configure.srv: Add x86 Windows CE target.
809
810 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
811
812 * inferiors.c (get_thread_process): Make global.
813 * server.h (get_thread_process): Add prototype.
814 * thread-db.c (find_one_thread): Use get_thread_process
815 instead of current_process.
816 (thread_db_get_tls_address): Do not crash if called when
817 thread layer is not yet initialized.
818
819 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
820
821 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
822 * spu-low.c (current_tid): Rename to ...
823 (current_ptid): ... this.
824 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
825 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
826 ptid_get_lwp (current_ptid) instead of current_tid.
827 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
828 instead of current_tid. Use find_process_pid to verify pid
829 argument is valid. Pass proper argument to remove_process.
830 (spu_thread_alive): Compare current_ptid instead of current_tid.
831 (spu_resume): Likewise.
832
833 2009-04-02 Pedro Alves <pedro@codesourcery.com>
834
835 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
836 variable.
837
838 2009-04-01 Pedro Alves <pedro@codesourcery.com>
839
840 Implement the multiprocess extensions, and add linux multiprocess
841 support.
842
843 * server.h (ULONGEST): Declare.
844 (struct ptid, ptid_t): New.
845 (minus_one_ptid, null_ptid): Declare.
846 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
847 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
848 (struct inferior_list_entry): Change `id' type from unsigned from
849 to ptid_t.
850 (struct sym_cache, struct breakpoint, struct
851 process_info_private): Forward declare.
852 (struct process_info): Declare.
853 (current_process): Declare.
854 (all_processes): Declare.
855 (initialize_inferiors): Declare.
856 (add_thread): Adjust to use ptid_t.
857 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
858 (add_process, remove_process, find_thread_pid): Declare.
859 (find_inferior_id): Adjust to use ptid_t.
860 (cont_thread, general_thread, step_thread): Change type to ptid_t.
861 (multi_process): Declare.
862 (push_event): Adjust to use ptid_t.
863 (read_ptid, write_ptid): Declare.
864 (prepare_resume_reply): Adjust to use ptid_t.
865 (clear_symbol_cache): Declare.
866 * inferiors.c (all_processes): New.
867 (null_ptid, minus_one_ptid): New.
868 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
869 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
870 (add_thread): Change unsigned long to ptid. Remove gdb_id
871 parameter. Adjust.
872 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
873 (gdb_id_to_thread): Rename to ...
874 (find_thread_pid): ... this. Change unsigned long to ptid.
875 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
876 (loaded_dll, pull_pid_from_list): Adjust.
877 (add_process, remove_process, find_process_pid)
878 (get_thread_process, current_process, initialize_inferiors): New.
879 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
880 (struct target_waitstatus) <related_pid>: Ditto.
881 (struct target_ops) <kill, detach>: Add `pid' argument. Change
882 return type to int.
883 (struct target_ops) <join>: Add `pid' argument.
884 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
885 (struct target_ops) <wait>: Add `ptid' field. Change return type
886 to ptid.
887 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
888 (mywait): Add `ptid' argument. Change return type to ptid_t.
889 (target_pid_to_str): Declare.
890 * target.c (set_desired_inferior): Adjust to use ptids.
891 (mywait): Add new `ptid' argument. Adjust.
892 (target_pid_to_str): New.
893 * mem-break.h (free_all_breakpoints): Declare.
894 * mem-break.c (breakpoints): Delelete.
895 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
896 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
897 to use per-process breakpoint list.
898 (free_all_breakpoints): New.
899 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
900 (symbol_cache, all_symbols_looked_up): Delete.
901 (hexchars): New.
902 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
903 read_ptid): New.
904 (prepare_resume_reply): Change ptid argument's type from unsigned
905 long to ptid_t. Adjust. Implement W;process and X;process.
906 (free_sym_cache, clear_symbol_cache): New.
907 (look_up_one_symbol): Adjust to per-process symbol cache. *
908 * server.c (cont_thread, general_thread, step_thread): Change type
909 to ptid_t.
910 (attached): Delete.
911 (multi_process): New.
912 (last_ptid): Change type to ptid_t.
913 (struct vstop_notif) <ptid>: Change type to ptid_t.
914 (queue_stop_reply, push_event): Change `ptid' argument's type to
915 ptid_t.
916 (discard_queued_stop_replies): Add `pid' argument.
917 (start_inferior): Adjust to use ptids. Adjust to mywait interface
918 changes. Don't reference the `attached' global.
919 (attach_inferior): Adjust to mywait interface changes.
920 (handle_query): Adjust to use ptids. Parse GDB's qSupported
921 features. Handle and report "multiprocess+". Handle
922 "qAttached:PID".
923 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
924 changes.
925 (handle_v_kill): New.
926 (handle_v_stopped): Adjust to use target_pid_to_str.
927 (handle_v_requests): Allow multiple attaches and runs when
928 multiprocess extensions are in effect. Handle "vKill".
929 (myresume): Adjust to use ptids.
930 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
931 (handle_status): Adjust to discard_queued_stop_replies interface
932 change.
933 (first_thread_of, kill_inferior_callback)
934 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
935 (main): Call initialize_inferiors. Adjust to use ptids, killing
936 and detaching from all inferiors. Handle multiprocess packet
937 variants.
938 * linux-low.h: Include gdb_proc_service.h.
939 (struct process_info_private): New.
940 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
941 <lwpid_of>: Use ptid_get_lwp.
942 (get_lwp_thread): Adjust.
943 (struct lwp_info): Add `dead' member.
944 (find_lwp_pid): Declare.
945 * linux-low.c (thread_db_active): Delete.
946 (new_inferior): Adjust comment.
947 (inferior_pid): Delete.
948 (linux_add_process): New.
949 (handle_extended_wait): Adjust.
950 (add_lwp): Change unsigned long to ptid.
951 (linux_create_inferior): Add process to processes table. Adjust
952 to use ptids. Don't set new_inferior here.
953 (linux_attach_lwp): Rename to ...
954 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
955 it. Adjust to use ptids.
956 (linux_attach_lwp): New.
957 (linux_attach): Add process to processes table. Don't set
958 new_inferior here.
959 (struct counter): New.
960 (second_thread_of_pid_p, last_thread_of_process_p): New.
961 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
962 multiple processes.
963 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
964 processes. Remove process from process table.
965 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
966 to multiple processes.
967 (any_thread_of): New.
968 (linux_detach): Add `pid' argument, and handle it. Remove process
969 from processes table.
970 (linux_join): Add `pid' argument. Handle it.
971 (linux_thread_alive): Change unsighed long argument to ptid_t.
972 Consider dead lwps as not being alive.
973 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
974 threads we're not interested in.
975 (same_lwp, find_lwp_pid): New.
976 (linux_wait_for_lwp): Change `pid' argument's type from int to
977 ptid_t. Adjust.
978 (linux_wait_for_event): Rename to ...
979 (linux_wait_for_event_1): ... this. Change `pid' argument's type
980 from int to ptid_t. Adjust.
981 (linux_wait_for_event): New.
982 (linux_wait_1): Add `ptid' argument. Change return type to
983 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
984 that exit from the process table.
985 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
986 Adjust.
987 (mark_lwp_dead): New.
988 (wait_for_sigstop): Adjust to use ptids. If a process exits while
989 stopping all threads, mark its main lwp as dead.
990 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
991 ptids.
992 (fetch_register, usr_store_inferior_registers)
993 (regsets_fetch_inferior_registers)
994 (regsets_store_inferior_registers, linux_read_memory)
995 (linux_write_memory): Inline `inferior_pid'.
996 (linux_look_up_symbols): Adjust to use per-process
997 `thread_db_active'.
998 (linux_request_interrupt): Adjust to use ptids.
999 (linux_read_auxv): Inline `inferior_pid'.
1000 (initialize_low): Don't reference thread_db_active.
1001 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
1002 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
1003 (ps_getpid): Return the pid of the current inferior.
1004 * thread-db.c (proc_handle, thread_agent): Delete.
1005 (thread_db_create_event, thread_db_enable_reporting): Adjust to
1006 per-process data.
1007 (find_one_thread): Change argument type to ptid_t. Adjust to
1008 per-process data.
1009 (maybe_attach_thread): Adjust to per-process data and ptids.
1010 (thread_db_find_new_threads): Ditto.
1011 (thread_db_init): Ditto.
1012 * spu-low.c (spu_create_inferior, spu_attach): Add process to
1013 processes table. Adjust to use ptids.
1014 (spu_kill, spu_detach): Adjust interface. Remove process from
1015 processes table.
1016 (spu_join, spu_thread_alive): Adjust interface.
1017 (spu_wait): Adjust interface. Remove process from processes
1018 table. Adjust to use ptids.
1019 * win32-low.c (current_inferior_tid): Delete.
1020 (current_inferior_ptid): New.
1021 (debug_event_ptid): New.
1022 (thread_rec): Take a ptid. Adjust.
1023 (child_add_thread): Add `pid' argument. Adjust to use ptids.
1024 (child_delete_thread): Ditto.
1025 (do_initial_child_stuff): Add `attached' argument. Add process to
1026 processes table.
1027 (child_fetch_inferior_registers, child_store_inferior_registers):
1028 Adjust.
1029 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
1030 (win32_attach): Pass 1 to do_initial_child_stuff.
1031 (win32_kill): Adjust interface. Remove process from processes
1032 table.
1033 (win32_detach): Ditto.
1034 (win32_join): Adjust interface.
1035 (win32_thread_alive): Take a ptid.
1036 (win32_resume): Adjust to use ptids.
1037 (get_child_debug_event): Ditto.
1038 (win32_wait): Adjust interface. Remove exiting process from
1039 processes table.
1040
1041 2009-04-01 Pedro Alves <pedro@codesourcery.com>
1042
1043 Non-stop mode support.
1044
1045 * server.h (non_stop): Declare.
1046 (gdb_client_data, handler_func): Declare.
1047 (delete_file_handler, add_file_handler, start_event_loop):
1048 Declare.
1049 (handle_serial_event, handle_target_event, push_event)
1050 (putpkt_notif): Declare.
1051 * target.h (enum resume_kind): New.
1052 (struct thread_resume): Replace `step' field by `kind' field.
1053 (TARGET_WNOHANG): Define.
1054 (struct target_ops) <wait>: Add `options' argument.
1055 <supports_non_stop, async, start_non_stop>: New fields.
1056 (target_supports_non_stop, target_async): New.
1057 (start_non_stop): Declare.
1058 (mywait): Add `options' argument.
1059 * target.c (mywait): Add `options' argument. Print child exit
1060 notifications here.
1061 (start_non_stop): New.
1062 * server.c (non_stop, own_buf, mem_buf): New globals.
1063 (struct vstop_notif): New.
1064 (notif_queue): New global.
1065 (queue_stop_reply, push_event, discard_queued_stop_replies)
1066 (send_next_stop_reply): New.
1067 (start_inferior): Adjust to use resume_kind. Adjust to mywait
1068 interface changes.
1069 (attach_inferior): In non-stop mode, don't wait for the target
1070 here.
1071 (handle_general_set): Handle QNonStop.
1072 (handle_query): When handling qC, return the current general
1073 thread, instead of the first thread of the list.
1074 (handle_query): If the backend supports non-stop mode, include
1075 QNonStop+ in the qSupported query response.
1076 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
1077 and non-stop mode.
1078 (handle_v_attach, handle_v_run): Handle non-stop mode.
1079 (handle_v_stopped): New.
1080 (handle_v_requests): Report support for vCont;t. Handle vStopped.
1081 (myresume): Adjust to use resume_kind. Handle non-stop.
1082 (queue_stop_reply_callback): New.
1083 (handle_status): Handle non-stop mode.
1084 (main): Clear non_stop flag on reconnection. Use the event-loop.
1085 Refactor serial protocol handling from here ...
1086 (process_serial_event): ... to this new function. When GDB
1087 selects any thread, select one here. In non-stop mode, wait until
1088 GDB acks all pending events before exiting.
1089 (handle_serial_event, handle_target_event): New.
1090 * remote-utils.c (remote_open): Install remote_desc in the event
1091 loop.
1092 (remote_close): Remove remote_desc from the event loop.
1093 (putpkt_binary): Rename to...
1094 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
1095 (putpkt_binary): New as wrapper around putpkt_binary_1.
1096 (putpkt_notif): New.
1097 (prepare_resume_reply): In non-stop mode, don't change the
1098 general_thread.
1099 * event-loop.c: New.
1100 * Makefile.in (OBJ): Add event-loop.o.
1101 (event-loop.o): New rule.
1102
1103 * linux-low.h (pid_of): Moved here.
1104 (lwpid_of): New.
1105 (get_lwp_thread): Use lwpid_of.
1106 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
1107 * linux-low.c (pid_of): Delete.
1108 (inferior_pid): Use lwpid_of.
1109 (linux_event_pipe): New.
1110 (target_is_async_p): New.
1111 (delete_lwp): New.
1112 (handle_extended_wait): Use lwpid_of.
1113 (add_lwp): Don't set lwpid field.
1114 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
1115 (linux_kill_one_lwp): If killing a running lwp, stop it first.
1116 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
1117 (linux_detach_one_lwp): If detaching from a running lwp, stop it
1118 first. Adjust to linux_wait_for_event interface changes. Use
1119 lwpid_of.
1120 (linux_detach): Don't delete the main lwp here.
1121 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
1122 (status_pending_p): Don't consider explicitly suspended lwps.
1123 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
1124 pointer. Add OPTIONS argument. Change return type to int. Use
1125 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
1126 (linux_wait_for_event): Take an integer pid instead of a lwp_info
1127 pointer. Add status pointer argument. Return a pid instead of a
1128 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
1129 changes. In non-stop mode, don't switch to a random thread.
1130 (linux_wait): Rename to...
1131 (linux_wait_1): ... this. Add target_options argument, and handle
1132 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
1133 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
1134 clean exit and signal exit code. Don't stop all threads in
1135 non-stop mode. In all-stop mode, only stop all threads when
1136 reporting a stop to GDB. Handle explicit thread stop requests.
1137 (async_file_flush, async_file_mark): New.
1138 (linux_wait): New.
1139 (send_sigstop): Use lwpid_of.
1140 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
1141 interface changes. In non-stop mode, don't switch to a random
1142 thread.
1143 (linux_resume_one_lwp): Use lwpid_of.
1144 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
1145 (linux_resume_one_thread): ... this. Handle resume_stop. In
1146 non-stop mode, don't look for pending flag in all threads.
1147 (resume_status_pending_p): Don't consider explicitly suspended
1148 threads.
1149 (my_waitpid): Reimplement. Emulate __WALL.
1150 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
1151 Use lwpid_of.
1152 (sigchld_handler, linux_supports_non_stop, linux_async)
1153 (linux_start_non_stop): New.
1154 (linux_target_ops): Register linux_supports_non_stop, linux_async
1155 and linux_start_non_stop.
1156 (initialize_low): Install SIGCHLD handler.
1157 * thread-db.c (thread_db_create_event, find_one_thread)
1158 (thread_db_get_tls_address): Use lwpid_of.
1159 * win32-low.c (win32_detach): Adjust to use resume_kind.
1160 (win32_wait): Add `options' argument.
1161 * spu-low.c (spu_resume): Adjust to use resume_kind.
1162 (spu_wait): Add `options' argument.
1163
1164 2009-04-01 Pedro Alves <pedro@codesourcery.com>
1165
1166 Decouple target code from remote protocol.
1167
1168 * target.h (enum target_waitkind): New.
1169 (struct target_waitstatus): New.
1170 (struct target_ops) <wait>: Return an unsigned long. Take a
1171 target_waitstatus pointer instead of a char pointer.
1172 (mywait): Likewise.
1173 * target.c (mywait): Change prototype to return an unsigned long.
1174 Take a target_waitstatus pointer instead of a char pointer. Adjust.
1175 * server.h (thread_from_wait, old_thread_from_wait): Delete
1176 declarations.
1177 (prepare_resume_reply): Change prototype to take a
1178 target_waitstatus.
1179 * server.c (thread_from_wait, old_thread_from_wait): Delete.
1180 (last_status, last_ptid): New.
1181 (start_inferior): Remove "statusptr" argument. Adjust. Return a
1182 pid instead of a signal.
1183 (attach_inferior): Remove "status" and "signal" parameters.
1184 Adjust.
1185 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
1186 not as an address.
1187 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
1188 (handle_v_requests, myresume): Remove "status" and "signal"
1189 parameters. Adjust.
1190 (handle_status): New.
1191 (main): Delete local `status'. Adjust.
1192 * remote-utils.c: Include target.h.
1193 (prepare_resume_reply): Change prototype to take a
1194 target_waitstatus. Adjust.
1195
1196 * linux-low.c (linux_wait): Adjust to new target_ops->wait
1197 interface.
1198 * spu-low.c (spu_wait): Adjust.
1199 * win32-low.c (enum target_waitkind, struct target_waitstatus):
1200 Delete.
1201 (win32_wait): Adjust.
1202
1203 2009-04-01 Pedro Alves <pedro@codesourcery.com>
1204
1205 * target.h (struct thread_resume): Delete leave_stopped member.
1206 (struct target_ops): Add a `n' argument to the `resume' callback.
1207 * server.c (start_inferior): Adjust.
1208 (handle_v_cont, myresume): Adjust.
1209 * linux-low.c (check_removed_breakpoint): Adjust to resume
1210 interface change, and to removed leave_stopped field.
1211 (resume_ptr): Delete.
1212 (struct thread_resume_array): New.
1213 (linux_set_resume_request): Add new `arg' parameter. Adjust to
1214 resume interface change.
1215 (linux_continue_one_thread, linux_queue_one_thread)
1216 (resume_status_pending_p): Check if the resume field is NULL
1217 instead of checking the leave_stopped member.
1218 (linux_resume): Adjust to the target resume interface change.
1219 * spu-low.c (spu_resume): Adjust to the target resume interface
1220 change.
1221 * win32-low.c (win32_detach, win32_resume): Ditto.
1222
1223 2009-04-01 Pedro Alves <pedro@codesourcery.com>
1224
1225 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
1226 flag.
1227 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
1228 pending.
1229 (linux_continue_one_thread): Only preserve the stepping flag if
1230 there's a pending breakpoint.
1231
1232 2009-03-31 Pedro Alves <pedro@codesourcery.com>
1233
1234 * server.c (main): After the inferior having exited, call
1235 remote_close before exiting gdbserver.
1236
1237 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
1238
1239 Fix size of FPSCR in Power 7 processors.
1240 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
1241 (PPC_FEATURE_HAS_DFP): New #define.
1242 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
1243 size of the FPSCR.
1244
1245 2009-03-23 Pedro Alves <pedro@codesourcery.com>
1246
1247 * server.c (handle_query) Whitespace and formatting.
1248
1249 2009-03-22 Pedro Alves <pedro@codesourcery.com>
1250
1251 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
1252 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
1253 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
1254 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
1255 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
1256 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
1257 Makefile.in, configure.ac: Fix whitespace throughout.
1258 * configure: Regenerate.
1259
1260 2009-03-22 Pedro Alves <pedro@codesourcery.com>
1261
1262 * inferiors.c (find_inferior): Make it safe for the callback
1263 function to delete the currently iterated inferior.
1264
1265 2009-03-22 Pedro Alves <pedro@codesourcery.com>
1266
1267 * Makefile.in (linuw_low_h): Move higher.
1268 (thread-db.o): Depend on $(linux_low_h).
1269
1270 2009-03-17 Pedro Alves <pedro@codesourcery.com>
1271
1272 Rename "process" to "lwp" throughout.
1273
1274 * linux-low.c (all_processes): Rename to...
1275 (all_lwps): ... this.
1276 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
1277 (add_process): Rename to ...
1278 (add_lwp): ... this. Adjust.
1279 (linux_create_inferior): Adjust.
1280 (linux_attach_lwp): Adjust.
1281 (linux_attach): Adjust.
1282 (linux_kill_one_process): Rename to ...
1283 (linux_kill_one_lwp): ... this. Adjust.
1284 (linux_kill): Adjust.
1285 (linux_detach_one_process): Rename to ...
1286 (linux_detach_one_lwp): ... this. Adjust.
1287 (linux_detach): Adjust.
1288 (check_removed_breakpoint): Adjust.
1289 (status_pending_p): Adjust.
1290 (linux_wait_for_process): Rename to ...
1291 (linux_wait_for_lwp): ... this. Adjust.
1292 (linux_wait_for_event): Adjust.
1293 (send_sigstop): Adjust.
1294 (wait_for_sigstop): Adjust.
1295 (stop_all_processes): Rename to ...
1296 (stop_all_lwps): ... this.
1297 (linux_resume_one_process): Rename to ...
1298 (linux_resume_one_lwp): ... this. Adjust.
1299 (linux_set_resume_request, linux_continue_one_thread)
1300 (linux_queue_one_thread, resume_status_pending_p)
1301 (usr_store_inferior_registers, regsets_store_inferior_registers)
1302 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
1303 Adjust.
1304 * linux-low.h (get_process): Rename to ...
1305 (get_lwp): ... this. Adjust.
1306 (get_thread_process): Rename to ...
1307 (get_thread_lwp): ... this. Adjust.
1308 (get_process_thread): Rename to ...
1309 (get_lwp_thread): ... this. Adjust.
1310 (struct process_info): Rename to ...
1311 (struct lwp_info): ... this.
1312 (all_processes): Rename to ...
1313 (all_lwps): ... this.
1314 * proc-service.c (ps_lgetregs): Adjust.
1315 * thread-db.c (thread_db_create_event, find_one_thread)
1316 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
1317
1318 2009-03-14 Pedro Alves <pedro@codesourcery.com>
1319
1320 * server.c (handle_query): Handle "qAttached".
1321
1322 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
1323
1324 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
1325 GPLv3, update license URL.
1326
1327 2009-03-01 Doug Evans <dje@google.com>
1328
1329 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
1330 (server_h): Add gdb_signals.h.
1331 (signals.o): Update.
1332 * server.h (target_signal_from_host,target_signal_to_host_p)
1333 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
1334
1335 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
1336
1337 * remote-utils.c (getpkt): Also generate remote-debug
1338 information if noack_mode is set.
1339
1340 2009-02-06 Pedro Alves <pedro@codesourcery.com>
1341
1342 * server.c (handle_query): Report qXfer:siginfo:read and
1343 qXfer:siginfo:write as supported and handle them.
1344 * target.h (struct target_ops) <qxfer_siginfo>: New field.
1345 * linux-low.c (linux_xfer_siginfo): New.
1346 (linux_target_ops): Set it.
1347
1348 2009-01-26 Pedro Alves <pedro@codesourcery.com>
1349
1350 * server.c (gdbserver_usage): Mention --remote-debug.
1351 (main): Accept '--remote-debug' switch.
1352
1353 2009-01-18 Doug Evans <dje@google.com>
1354
1355 * regcache.c (new_register_cache): No need to check result of xcalloc.
1356 * server.c (handle_search_memory): Back out calls to xmalloc,
1357 result is checked and error is returned to user upon failure.
1358 (handle_query): Ditto. Add more checks for result of malloc.
1359 (handle_v_cont): Check result of malloc, report error back to
1360 user upon failure.
1361 (handle_v_run): Ditto. Call freeargv.
1362 * server.h (freeargv): Declare.
1363 * utils.c (freeargv): New fn.
1364
1365 2009-01-15 Doug Evans <dje@google.com>
1366
1367 * gdbreplay.c (perror_with_name): Make arg const char *.
1368 * server.h (target_signal_to_name): Make return type const char *.
1369 * thread-db.c (thread_db_err_str): Make return type const char *.
1370 * utils.c (perror_with_name): Make arg const char *.
1371
1372 2009-01-14 Pedro Alves <pedro@codesourcery.com>
1373
1374 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
1375 when handling a EXIT_PROCESS_DEBUG_EVENT.
1376
1377 2009-01-06 Joel Brobecker <brobecker@adacore.com>
1378
1379 * gdbreplay.c (gdbreplay_version): Update copyright year.
1380 * server.c (gdbserver_version): Likewise.
1381
1382 2009-01-05 Doug Evans <dje@google.com>
1383
1384 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
1385 (handle_extended_wait): Improve comment.
1386
1387 2008-12-13 Doug Evans <dje@google.com>
1388
1389 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
1390 * server.h (ATTR_MALLOC): New macro.
1391 (xmalloc,xcalloc,xstrdup): Declare.
1392 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
1393 * inferiors.c: Ditto.
1394 * linux-low.c: Ditto.
1395 * mem-break.c: Ditto.
1396 * regcache.c: Ditto.
1397 * remote-utils.c: Ditto.
1398 * server.c: Ditto.
1399 * target.c: Ditto.
1400 * win32-low.c: Ditto.
1401
1402 2008-12-12 Doug Evans <dje@google.com>
1403
1404 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
1405 in debugging printf.
1406
1407 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
1408
1409 2008-12-09 Doug Evans <dje@google.com>
1410
1411 * linux-low.h (struct process_info): Delete member tid, unused.
1412 * thread-db.c (find_one_thread): Update.
1413 (maybe_attach_thread): Update.
1414
1415 2008-12-02 Pedro Alves <pedro@codesourcery.com>
1416
1417 * target.h (struct target_ops): Add qxfer_osdata member.
1418 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
1419 and dirent.h.
1420 (linux_qxfer_osdata): New functions.
1421 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
1422 callback.
1423 * server.c (handle_query): Handle "qXfer:osdata:read:".
1424 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
1425 (buffer_xml_printf): New functions.
1426 * server.h (struct buffer): New.
1427 (buffer_grow_str, buffer_grow_str0): New macros.
1428 (buffer_grow, buffer_free, buffer_init, buffer_finish)
1429 (buffer_xml_printf): Declare.
1430
1431 2008-11-24 Doug Evans <dje@google.com>
1432
1433 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
1434
1435 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
1436
1437 * server.c (handle_v_run): Always use the supplied argument list.
1438
1439 2008-11-19 Bob Wilson <bob.wilson@acm.org>
1440
1441 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
1442 (xtensa_regmap_table): Add entry for scompare1.
1443
1444 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
1445
1446 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
1447 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
1448 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
1449 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
1450 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
1451 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
1452 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
1453 XML target descriptions.
1454 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
1455 when inferior is running on an ISA 2.05 or later processor. Add
1456 special case to return offset for full 64-bit slot of FPSCR when
1457 in 32-bits.
1458
1459 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
1460
1461 * Makefile.in (SFILES, clean): Added sparc64 files.
1462 (reg-sparc64.o, reg-sparc64.c): New.
1463 * configure.srv (sparc*-*-linux*): New configuration.
1464 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
1465 syscall arguments for SPARC.
1466 (regsets_store_inferior_registers): Likewise.
1467 * linux-sparc-low.c: New file.
1468
1469 2008-10-21 Doug Evans <dje@google.com>
1470
1471 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
1472 (READLINE_DIR,READLINE_DEP): Delete.
1473 (INTERNAL_CFLAGS): Update.
1474 (LINTFLAGS): Update.
1475
1476 2008-10-10 Pedro Alves <pedro@codesourcery.com>
1477
1478 * server.c (handle_v_run): If GDB didn't specify an argv, use the
1479 whole argv from the last run, not just argv[0].
1480
1481 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1482
1483 * regcache.c (new_register_cache): Return NULL if the register
1484 cache size isn't known yet.
1485 (free_register_cache): Avoid dereferencing a NULL regcache.
1486
1487 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1488
1489 * configure.srv: Merge MIPS and MIPS64.
1490
1491 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
1492
1493 * Makefile.in (uninstall): Apply $(EXEEXT) too.
1494
1495 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
1496
1497 * Makefile.in: Add required vsx dependencies.
1498
1499 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
1500 Declare init_registers_powerpc_vsx32l.
1501 Declare init_registers_powerpc_vsx64l.
1502 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
1503 (ppc_arch_setup): Check for VSX in hwcap.
1504 (ppc_fill_vsxregset): New function.
1505 (ppc_store_vsxregset): New function.
1506 Add new VSX entry in regset_info target_regsets.
1507
1508 * configure.srv: Add new VSX dependencies.
1509
1510 2008-08-12 Pedro Alves <pedro@codesourcery.com>
1511
1512 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
1513 (remote_open): Set or clear transport_is_reliable.
1514 (putpkt_binary): Don't expect acks in noack mode.
1515 (getpkt): Don't send ack/nac in noack mode.
1516 * server.c (handle_general_set): Handle QStartNoAckMode.
1517 (handle_query): If connected by tcp pass QStartNoAckMode+ in
1518 qSupported.
1519 (main): Reset noack_mode on every connection.
1520 * server.h (noack_mode): Declare.
1521
1522 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1523
1524 * Makefile.in (GDBREPLAY_OBS): New variable.
1525 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
1526
1527 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
1528 Daniel Jacobowitz <dan@codesourcery.com>
1529
1530 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
1531 (usr_store_inferior_registers): Likewise.
1532 (regsets_store_inferior_registers): Likewise.
1533
1534 2008-07-31 Rolf Jansen <rj@surtec.com>
1535 Pedro Alves <pedro@codesourcery.com>
1536
1537 * configure.ac: Check for memmem declaration.
1538 * server.c [HAVE_MALLOC_H]: Include malloc.h.
1539 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
1540 (disable_packet_qfThreadInfo): Unconditionally compile.
1541 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
1542 * configure, config.in: Regenerate.
1543
1544 2008-07-28 Doug Kwan <dougkwan@google.com>
1545
1546 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
1547 (linux_write_memory): Remove declaration of errno.
1548
1549 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
1550
1551 * linux-low.c (handle_extended_wait): Do not use "status"
1552 variable uninitialized.
1553
1554 2008-07-07 Pedro Alves <pedro@codesourcery.com>
1555
1556 * server.c (handle_v_attach): Inhibit reporting dll changes.
1557
1558 2008-06-27 Pedro Alves <pedro@codesourcery.com>
1559
1560 * remote-utils.c (prepare_resume_reply): If requested, don't
1561 output "thread:TID" in the T stop reply.
1562
1563 * server.c (disable_packet_vCont, disable_packet_Tthread)
1564 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
1565 (handle_query): If requested, disable support for qC, qfThreadInfo
1566 and qsThreadInfo.
1567 (handle_v_requests): If requested, disable support for vCont.
1568 (gdbserver_show_disableable): New.
1569 (main): Handle --disable-packet and --disable-packet=LIST.
1570
1571 * server.h (disable_packet_vCont, disable_packet_Tthread)
1572 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
1573
1574 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
1575
1576 * server.c (gdbserver_usage): Mention --version.
1577
1578 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
1579
1580 * Makefile.in (gdbreplay.o): New rule.
1581
1582 2008-06-06 Joseph Myers <joseph@codesourcery.com>
1583
1584 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
1585 message, not gdbserver.
1586
1587 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
1588 Nathan Sidwell <nathan@codesourcery.com>
1589 Joseph Myers <joseph@codesourcery.com>
1590
1591 * acinclude.m4: Include ../../config/acx.m4.
1592 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
1593 * configure, config.in: Regenerate.
1594 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
1595 * server.c (gdbserver_version): Print PKGVERSION.
1596 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
1597 (main): Adjust gdbserver_usage calls.
1598 * gdbreplay.c (version, host_name): Add declarations.
1599 (gdbreplay_version, gdbreplay_usage): New.
1600 (main): Accept --version and --help options.
1601
1602 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
1603
1604 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
1605 (arm_breakpoint_at): Handle Thumb.
1606 (the_low_target): Add comment.
1607
1608 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
1609
1610 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
1611
1612 2008-05-09 Doug Evans <dje@google.com>
1613
1614 * server.h (decode_search_memory_packet): Declare.
1615 * remote-utils.c (decode_search_memory_packet): New fn.
1616 * server.c (handle_search_memory_1): New fn.
1617 (handle_search_memory): New fn.
1618 (handle_query): Process qSearch:memory packets.
1619
1620 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
1621
1622 * regcache.c (registers_length): Remove.
1623 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
1624 full register packet.
1625 * regcache.h (registers_length): Remove prototype.
1626 * server.h (PBUFSIZ): Define to 16384.
1627
1628 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
1629
1630 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
1631 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
1632 powerpc-64l.o, and powerpc-altivec64l.o.
1633 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
1634 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
1635 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
1636 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
1637 rs6000/power-linux.xml, and rs6000/power64-linux.xml
1638 to srv_xmlfiles.
1639
1640 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
1641 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
1642 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
1643 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
1644 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
1645 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
1646 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
1647 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
1648 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
1649 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
1650 (clean): Update.
1651
1652 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
1653 (init_registers_powerpc_32l): ... this new prototype.
1654 (init_registers_powerpc_32): Remove, replace by ...
1655 (init_registers_powerpc_altivec32l): ... this new prototype.
1656 (init_registers_powerpc_e500): Remove, replace by ...
1657 (init_registers_powerpc_e500l): ... this new prototype.
1658 (init_registers_ppc64): Remove, replace by ...
1659 (init_registers_powerpc_64l): ... this new prototype.
1660 (init_registers_powerpc_64): Remove, replace by ...
1661 (init_registers_powerpc_altivec64l): ... this new prototype.
1662 (ppc_num_regs): Set to 73.
1663 (PT_ORIG_R3, PT_TRAP): Define if necessary.
1664 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
1665 (ppc_cannot_store_register): Handle orig_r3 and trap.
1666 (ppc_arch_setup): Update init_registers_... calls.
1667 (ppc_fill_gregset): Handle orig_r3 and trap.
1668
1669 * inferiors.c (clear_inferiors): Reset current_inferior.
1670
1671 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
1672
1673 * acinclude.m4: Add override.m4.
1674 * configure: Regenerate.
1675
1676 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
1677
1678 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
1679 initial call to init_register_ppc64.
1680
1681 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
1682
1683 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into single
1684 powerpc*-*-linux* case.
1685 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
1686
1687 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1688
1689 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
1690 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
1691 from reg_xmlfiles.
1692 * linux-ppc-low.c: Include <elf.h>.
1693 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
1694 (ppc_hwcap): New global variable.
1695 (ppc_regmap): Remove __SPE__ #ifdef sections.
1696 (ppc_regmap_e500): New global variable.
1697 (ppc_cannot_store_register): Update __SPE__ special case.
1698 (ppc_get_hwcap): New function.
1699 (ppc_arch_setup): Use it to determine whether inferior supports
1700 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
1701 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
1702 Do not access registers if target does not support AltiVec.
1703 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
1704 Do not access registers if target does not support SPE.
1705 (target_regsets): Unconditionally include AltiVec and SPE regsets.
1706
1707 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
1708
1709 * linux-low.c (disabled_regsets, num_regsets): New.
1710 (use_regsets_p): Delete.
1711 (linux_wait_for_process): Clear disabled_regsets.
1712 (regsets_fetch_inferior_registers): Check and set it.
1713 (regsets_store_inferior_registers): Likewise.
1714 (linux_fetch_registers, linux_store_registers): Do not use
1715 use_regsets_p.
1716 (initialize_low): Allocate disabled_regsets.
1717
1718 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1719
1720 * Makefile.in (LIBOBJS): New.
1721 (OBS): Use LIBOBJS.
1722 (memmem.o): New rule.
1723 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
1724 * configure: Regenerated.
1725
1726 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
1727
1728 * server.c (handle_query): Never return "unsupported" for
1729 qXfer:features:read queries.
1730
1731 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
1732
1733 * server.c (get_features_xml): Fix inverted condition.
1734 (handle_query): Always support qXfer:feature:read.
1735
1736 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
1737
1738 * server.c (wrapper_argv): New.
1739 (start_inferior): Handle wrapper_argv. If set, expect an extra
1740 trap.
1741 (gdbserver_usage): Document --wrapper.
1742 (main): Parse --wrapper.
1743
1744 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1745
1746 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
1747 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
1748 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
1749 (ppc_set_pc): Likewise.
1750 (ppc_arch_setup): New function.
1751 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
1752 of collect_register.
1753 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
1754
1755 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1756
1757 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
1758 instead of linux-ppc64-low.o.
1759 * linux-ppc64-low.c: Remove file.
1760 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
1761 (linux-ppc64-low.o): Remove rule.
1762
1763 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
1764 (init_registers_powerpc_64): Likewise.
1765 (ppc_regmap): Conditionally define depending on __powerpc64__.
1766 (ppc_cannot_store_register): Do not special-case "fpscr" when
1767 compiled on __powerpc64__.
1768 (ppc_collect_ptrace_register): New function.
1769 (ppc_supply_ptrace_register): New function.
1770 (ppc_breakpoint): Change type to "unsigned int".
1771 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
1772 (the_low_target): Conditionally provide initializers for the
1773 arch_setup member depending on __powerpc64__. Install
1774 collect_ptrace_register and supply_ptrace_register members.
1775
1776 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1777
1778 * regcache.h (gdbserver_xmltarget): Add extern declaration.
1779 * server.c (gdbserver_xmltarget): Define.
1780 (get_features_xml): Use it to replace "target.xml" and arch_string.
1781
1782 * configure.srv: Remove srv_xmltarget. Add XML files that were
1783 mentioned there to srv_xmlfiles instead. Remove conditional tests
1784 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
1785 srv_xmlfiles and srv_regobj to include all possible choices.
1786 * configure.ac (srv_xmltarget): Remove.
1787 (srv_xmlfiles): Do not add "target.xml".
1788 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
1789 checks for supplementary target information.
1790 * configure: Regenerate.
1791 * Makefile.in (XML_TARGET): Remove.
1792 (target.xml): Remove rule.
1793 (clean): Do not clean up target.xml.
1794 (.PRECIOUS): Do not mention target.xml.
1795
1796 * target.h (struct target_ops): Remove arch_string member.
1797 * linux-low.c (linux_arch_string): Remove.
1798 (linux_target_ops): Remove arch_string initializer.
1799 * linux-low.h (struct linux_target_ops): Remove arch_string member.
1800 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
1801 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
1802 * spu-low.c (spu_arch_string): Remove.
1803 (spu_target_ops): Remove arch_string initializer.
1804 * win32-low.c (win32_arch_string): Remove.
1805 (win32_target_ops): Remove arch_string initializer.
1806 * win32-low.h (struct win32_target_ops): Remove arch_string member.
1807 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
1808 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
1809
1810 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
1811
1812 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
1813 by collect_ptrace_register and supply_ptrace_register hooks.
1814 * linux-low.c (fetch_register): Use supply_ptrace_register callback
1815 instead of checking for the_low_target.left_pad_xfer.
1816 (usr_store_inferior_registers): Use collect_ptrace_register callback
1817 instead of checking for the_low_target.left_pad_xfer.
1818
1819 * linux-s390-low.c (s390_collect_ptrace_register): New function.
1820 (s390_supply_ptrace_register): Likewise.
1821 (s390_fill_gregset): Call s390_collect_ptrace_register.
1822 (the_low_target): Update.
1823
1824 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
1825 (ppc_supply_ptrace_register): Likewise.
1826 (the_low_target): Update.
1827
1828 * linux-i386-low.c (the_low_target): Update.
1829 * linux-x86-64-low.c (the_low_target): Update.
1830
1831 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
1832
1833 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
1834 reg-s390.o and reg-s390x.o.
1835
1836 * linux-low.c (new_inferior): New global variable.
1837 (linux_create_inferior, linux_attach): Set it.
1838 (linux_wait_for_process): Call the_low_target.arch_setup after the
1839 target has stopped for the first time.
1840 (initialize_low): Do not call the_low_target.arch_setup.
1841
1842 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
1843 (s390_set_pc): Likewise.
1844 (s390_arch_setup): New function.
1845 (the_low_target): Use s390_arch_setup as arch_setup routine.
1846
1847 * regcache.c (realloc_register_cache): New function.
1848 (set_register_cache): Call it for each existing regcache.
1849
1850 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
1851
1852 * server.h (init_registers): Remove prototype.
1853
1854 * linux-low.h (struct linux_target_ops): Add arch_setup field.
1855 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
1856 instead of init_registers ().
1857 * linux-arm-low.c (init_registers_arm): Add prototype.
1858 (init_registers_arm_with_iwmmxt): Likewise.
1859 (the_low_target): Add initializer for arch_setup field.
1860 * linux-cris-low.c (init_registers_cris): Add prototype.
1861 (the_low_target): Add initializer for arch_setup field.
1862 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
1863 (the_low_target): Add initializer for arch_setup field.
1864 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
1865 (the_low_target): Add initializer for arch_setup field.
1866 * linux-ia64-low.c (init_registers_ia64): Add prototype.
1867 (the_low_target): Add initializer for arch_setup field.
1868 * linux-m32r-low.c (init_registers_m32r): Add prototype.
1869 (the_low_target): Add initializer for arch_setup field.
1870 * linux-m68k-low.c (init_registers_m68k): Add prototype.
1871 (the_low_target): Add initializer for arch_setup field.
1872 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
1873 (init_registers_mips64_linux): Likewise.
1874 (the_low_target): Add initializer for arch_setup field.
1875 * linux-ppc-low.c (init_registers_ppc): Add prototype.
1876 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
1877 (the_low_target): Add initializer for arch_setup field.
1878 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
1879 (init_registers_powerpc_64): Likewise.
1880 (the_low_target): Add initializer for arch_setup field.
1881 * linux-s390-low.c (init_registers_s390): Add prototype.
1882 (init_registers_s390x): Likewise.
1883 (the_low_target): Add initializer for arch_setup field.
1884 * linux-sh-low.c (init_registers_sh): Add prototype.
1885 (the_low_target): Add initializer for arch_setup field.
1886 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
1887 (the_low_target): Add initializer for arch_setup field.
1888 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
1889 (the_low_target): Add initializer for arch_setup field.
1890
1891 * win32-low.h (struct win32_target_ops): Add arch_setup field.
1892 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
1893 instead of init_registers ().
1894 * win32-arm-low.c (init_registers_arm): Add prototype.
1895 (the_low_target): Add initializer for arch_setup field.
1896 * win32-i386-low.c (init_registers_i386): Add prototype.
1897 (the_low_target): Add initializer for arch_setup field.
1898
1899 * spu-low.c (init_registers_spu): Add prototype.
1900 (initialize_low): Call initialie_registers_spu () instead of
1901 initialize_registers ().
1902
1903 2008-02-19 Pedro Alves <pedro@codesourcery.com>
1904
1905 * server.c (handle_v_requests): When handling the vRun and vAttach
1906 packets, if already debugging a process, don't kill it. Return an
1907 error instead.
1908
1909 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
1910
1911 * server.c (handle_query): Correct length check.
1912
1913 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
1914
1915 * win32-low.c (do_initial_child_stuff): Add process handle
1916 parameter. Set current_process_handle and current_process_id from the
1917 parameters. Clear globals.
1918 (win32_create_inferior): Don't set current_process_handle and
1919 current_process_id here. Instead pass them on the call to
1920 do_initial_child_stuff.
1921 (win32_attach): Likewise.
1922 (win32_clear_inferiors): New.
1923 (win32_kill): Don't close the current process handle or the
1924 current thread handle here. Instead call win32_clear_inferiors.
1925 (win32_detach): Don't open a new handle to the process. Call
1926 win32_clear_inferiors.
1927 (win32_join): Don't rely on current_process_handle; open a new
1928 handle using the process id.
1929 (win32_wait): Call win32_clear_inferiors when the inferior process
1930 has exited.
1931
1932 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
1933
1934 * server.c (monitor_show_help): Add "exit".
1935
1936 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
1937
1938 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1939 (clean): Add reg-xtensa.c.
1940 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
1941 * configure.srv (xtensa*-*-linux*) New target.
1942 * linux-xtensa-low.c: New.
1943 * xtensa-xtregs.c: New.
1944
1945 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
1946
1947 * hostio.c: Don't include errno.h.
1948 (errno_to_fileio_errno): Move to hostio-errno.
1949 * hostio.c: (hostio_error): Remove the error parameter. Defer the
1950 error number outputting to the target->hostio_last_error callback.
1951 (hostio_packet_error): Use FILEIO_EINVAL directly.
1952 (handle_open, handle_pread, hostio_error, handle_unlink): Update
1953 calls to hostio_error.
1954 * hostio-errno.c: New.
1955 * server.h (hostio_last_error_from_errno): Declare.
1956 * target.h (target_ops): Add hostio_last_error member.
1957 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
1958 as hostio_last_error handler.
1959 * spu-low.c (spu_target_ops): Likewise.
1960 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
1961 (wince_hostio_last_error): New functions.
1962 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
1963 as hostio_last_error handler.
1964 (win32_target_ops) [!_WIN32_WCE]: Register
1965 hostio_last_error_from_errno as hostio_last_error handler.
1966 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
1967 (hostio-errno.o): New rule.
1968 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
1969 * configure.srv (srv_hostio_err_objs): New variable. Default to
1970 hostio-errno.o.
1971 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
1972 * configure: Regenerate.
1973
1974 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1975
1976 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
1977 (linux_kill, linux_detach): Clean up the process list.
1978 * remote-utils.c (remote_open): Improve port number parsing.
1979 (putpkt_binary, input_interrupt): Only send interrupts if the target
1980 is running.
1981 * server.c (extended_protocol): Make static.
1982 (attached): Define earlier.
1983 (exit_requested, response_needed, program_argv): New variables.
1984 (target_running): New.
1985 (start_inferior): Clear attached here.
1986 (attach_inferior): Set attached here.
1987 (require_running): Define.
1988 (handle_query): Use require_running and target_running. Implement
1989 "monitor exit".
1990 (handle_v_attach, handle_v_run): New.
1991 (handle_v_requests): Use require_running. Handle vAttach and vRun.
1992 (gdbserver_usage): Update.
1993 (main): Redo argument parsing. Handle --debug and --multi. Handle
1994 --attach along with other options or after the port. Save
1995 program_argv. Support no initial program. Resynchronize
1996 communication with GDB after an error. Handle "monitor exit".
1997 Use require_running and target_running. Always allow the extended
1998 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
1999 restart in extended mode.
2000 * README: Refer to the GDB manual. Update --attach usage.
2001
2002 2007-12-20 Andreas Schwab <schwab@suse.de>
2003
2004 * linux-low.c (STACK_SIZE): Define.
2005 (linux_tracefork_child): Use it. Use __clone2 on ia64.
2006 (linux_test_for_tracefork): Likewise.
2007
2008 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
2009
2010 * linux-low.c (linux_wait_for_event): Update messages. Do not
2011 reinsert auto-delete breakpoints.
2012 * mem-break.c (struct breakpoint): Change return type of handler to
2013 int.
2014 (set_breakpoint_at): Update handler type.
2015 (reinsert_breakpoint_handler): Return 1 instead of calling
2016 delete_breakpoint.
2017 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
2018 setting a new one.
2019 (check_breakpoints): Delete auto-delete breakpoints and return 2.
2020 * mem-break.h (set_breakpoint_at): Update handler type.
2021 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
2022 * win32-low.c (auto_delete_breakpoint): New.
2023 (get_child_debug_event): Use it.
2024
2025 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
2026
2027 * configure.ac: Check for pread and pwrite.
2028 * hostio.c (handle_pread): Fall back to lseek and read.
2029 (handle_pwrite): Fall back to lseek and write.
2030 * config.in, configure: Regenerated.
2031
2032 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
2033
2034 * server.c (myresume): Add own_buf argument.
2035 (main): Update calls.
2036
2037 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
2038
2039 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
2040 * remote-utils.c (remote_open): Do not call disable_async_io.
2041 (block_async_io): Delete.
2042 (unblock_async_io): Make static.
2043 (initialize_async_io): New.
2044 * server.c (handle_v_cont): Handle async I/O here.
2045 (myresume): Likewise. Move other common resume tasks here...
2046 (main): ... from here. Call initialize_async_io. Disable async
2047 I/O before the main loop.
2048 * server.h (initialize_async_io): Declare.
2049 (block_async_io, unblock_async_io): Delete prototypes.
2050 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
2051
2052 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
2053
2054 * remote-utils.c (readchar): Allow binary data in received messages.
2055
2056 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
2057
2058 * win32-low.c (attaching): New global.
2059 (win32_create_inferior): Clear the `attaching' global.
2060 (win32_attach): Set the `attaching' global.
2061 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
2062 attaching. Only set a breakpoint at the entry point if not
2063 attaching.
2064
2065 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
2066
2067 * server.c (main): Don't report dll events on the initial
2068 connection on attaches.
2069
2070 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
2071
2072 * server.c (main): Relax numerical bases supported for the pid of
2073 the --attach command line argument.
2074
2075 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
2076
2077 * win32-low.c (win32_attach): Call OpenProcess before
2078 DebugActiveProcess, not after. Add last error output to error
2079 call.
2080
2081 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
2082
2083 * win32-low.c (win32_get_thread_context)
2084 (win32_set_thread_context): New functions.
2085 (thread_rec): Use win32_get_thread_context.
2086 (continue_one_thread, win32_resume): Use win32_set_thread_context.
2087 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
2088 field.
2089
2090 2007-12-03 Leo Zayas
2091 Pedro Alves <pedro_alves@portugalmail.pt>
2092
2093 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
2094 global variables.
2095 (child_add_thread): Minor cleanup.
2096 (child_continue): Resume artificially suspended threads before
2097 calling ContinueDebugEvent.
2098 (suspend_one_thread): New.
2099 (fake_breakpoint_event): New.
2100 (get_child_debug_event): Change return type to int. Check here if
2101 gdb sent an interrupt request. If a soft interrupt was requested,
2102 fake a breakpoint event. Return 0 if there is no event to handle,
2103 and 1 otherwise.
2104 (win32_wait): Don't check here if gdb sent an interrupt request.
2105 Ensure there is a valid event to handle.
2106 (win32_request_interrupt): Add soft interruption method as last
2107 resort.
2108
2109 2007-12-03 Leo Zayas
2110 Pedro Alves <pedro_alves@portugalmail.pt>
2111
2112 * win32-low.h (win32_thread_info): Add descriptions to the
2113 structure members. Replace `suspend_count' counter by a
2114 `suspended' flag.
2115 * win32-low.c (thread_rec): Update condition of when to get the
2116 context from the inferior. Rely on ContextFlags being set if it
2117 has already been retrieved. Only suspend the inferior thread if
2118 we haven't already. Warn if that fails.
2119 (continue_one_thread): s/suspend_count/suspended/. Only call
2120 ResumeThread once. Warn if that fails.
2121
2122 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
2123
2124 * win32-low.c (win32_wait): Don't read from the inferior when it
2125 has already exited.
2126
2127 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
2128
2129 * Makefile.in (win32_low_h): New variable.
2130 (win32-low.o): Add dependency on $(win32_low_h).
2131 (win32-arm-low.o, win32-i386-low.o): New rules.
2132
2133 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
2134
2135 * hostio.c: Correct copyright year.
2136
2137 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
2138
2139 * Makefile.in (OBS): Add hostio.o.
2140 (hostio.o): New rule.
2141 * server.h (handle_vFile): Declare.
2142 * hostio.c: New file.
2143 * server.c (handle_v_requests): Take packet_len and new_packet_len
2144 for binary packets. Call handle_vFile.
2145 (main): Update call to handle_v_requests.
2146
2147 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
2148
2149 * linux-low.c: Include <sched.h>.
2150
2151 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
2152
2153 * linux-low.c (linux_tracefork_grandchild): New.
2154 (linux_tracefork_child): Use clone.
2155 (linux_test_for_tracefork): Use clone; allocate and free a stack.
2156
2157 2007-10-31 Joel Brobecker <brobecker@adacore.com>
2158
2159 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
2160
2161 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
2162
2163 * linux-low.c (handle_extended_wait): Handle unexpected signals.
2164
2165 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
2166
2167 * inferiors.c (change_inferior_id): Delete.
2168 (add_pid_to_list, pull_pid_from_list): New.
2169 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
2170 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
2171 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
2172 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
2173 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
2174 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
2175 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
2176 (using_threads): Always set to 1.
2177 (handle_extended_wait): New.
2178 (add_process): Do not set TID.
2179 (linux_create_inferior): Set must_set_ptrace_flags.
2180 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
2181 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
2182 (linux_thread_alive): Rename TID argument to LWPID.
2183 (linux_wait_for_process): Handle unknown processes. Do not use TID.
2184 (linux_wait_for_event): Do not use TID or check using_threads. Update
2185 call to dead_thread_notify. Call handle_extended_wait.
2186 (linux_create_inferior): Use PTRACE_SETOPTIONS.
2187 (send_sigstop): Delete sigstop_sent.
2188 (wait_for_sigstop): Avoid TID.
2189 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
2190 (linux_test_for_tracefork): New.
2191 (linux_lookup_signals): Use thread_db_active and
2192 linux_supports_tracefork_flag.
2193 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
2194 * linux-low.h (get_process_thread): Avoid TID.
2195 (struct process_ifo): Move thread_known and tid to the end. Remove
2196 sigstop_sent.
2197 (linux_attach_lwp, thread_db_init): Update prototypes.
2198 * server.h (change_inferior_id): Delete prototype.
2199 (add_pid_to_list, pull_pid_from_list): New prototypes.
2200 * thread-db.c (thread_db_use_events): New.
2201 (find_first_thread): Rename to...
2202 (find_one_thread): ...this. Update callers and messages. Do not
2203 call fatal. Check thread_db_use_events. Do not call
2204 change_inferior_id or new_thread_notify.
2205 (maybe_attach_thread): Update. Do not call new_thread_notify.
2206 (thread_db_init): Set thread_db_use_events. Check use_events.
2207 * utils.c (fatal, warning): Correct message prefix.
2208
2209 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2210
2211 * Makefile.in (clean): Remove new files.
2212 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
2213 (powerpc-64.o, powerpc-64.c): New rules.
2214 * configure.srv: Use alternate register sets for powerpc64-*-linux*
2215 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
2216 with SPE.
2217 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
2218 SPE targets.
2219 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
2220 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
2221 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
2222 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
2223 (target_regsets): Add AltiVec and SPE register sets.
2224 * configure.ac: Check for AltiVec and SPE.
2225 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
2226 (ppc_fill_vrregset, ppc_store_vrregset): New.
2227 (target_regsets): Add AltiVec register set.
2228 * configure: Regenerated.
2229
2230 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
2231
2232 * linux-low.c (O_LARGEFILE): Define.
2233 (linux_read_memory): Use /proc/PID/mem.
2234 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
2235 * configure, config.in: Regenerated.
2236
2237 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
2238
2239 * linux-low.c (linux_wait_for_event): Do not pass signals while
2240 single-stepping.
2241
2242 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
2243
2244 * win32-low.c (create_process): New.
2245 (win32_create_inferior): Use create_process instead of
2246 CreateProcess. If create_process failed retry appending an ".exe"
2247 suffix. Store the GetLastError result immediatelly after
2248 create_process calls and use it on the call to error.
2249
2250 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
2251
2252 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
2253
2254 2007-08-23 Joel Brobecker <brobecker@adacore.com>
2255
2256 * configure.ac: Switch license to GPLv3.
2257
2258 2007-08-01 Michael Snyder <msnyder@access-company.com>
2259
2260 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
2261
2262 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
2263
2264 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
2265 typedef.
2266 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
2267 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
2268 CloseToolhelp32Snapshot.
2269 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
2270 CloseToolhelp32Snapshot.
2271
2272 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
2273
2274 * server.c (main): Check for inferior exit before main loop.
2275
2276 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
2277
2278 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
2279 instead of on tmp_desc.
2280
2281 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
2282 Daniel Jacobowitz <dan@codesourcery.com>
2283
2284 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
2285 (add_thread): Minor cleanups.
2286 (clear_inferiors): Move lower in the file. Clear the DLL
2287 list.
2288 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
2289 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
2290 (xml_escape_text): New.
2291 * server.c (handle_query): Handle qXfer:libraries:read. Report it
2292 for qSupported.
2293 (handle_v_cont): Report errors.
2294 (gdbserver_version): Update.
2295 (main): Correct size of own_buf. Do not report initial DLL events.
2296 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
2297 (unloaded_dll, xml_escape_text): New.
2298 * win32-low.c (enum target_waitkind): Update comments.
2299 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
2300 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
2301 (win32_EnumProcessModules, win32_GetModuleInformation)
2302 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
2303 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
2304 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
2305 (win32_Module32First, win32_Module32Next, load_toolhelp)
2306 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
2307 (get_child_debug_event): Handle DLL events.
2308 (win32_wait): Likewise.
2309
2310 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
2311
2312 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
2313 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
2314
2315 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
2316
2317 * win32-low.c (handle_output_debug_string): Ignore event if not
2318 waiting.
2319
2320 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
2321
2322 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
2323
2324 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
2325
2326 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
2327
2328 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2329
2330 * inferiors.c (change_inferior_id): Add comment.
2331 * linux-low.c (check_removed_breakpoint): Add an early
2332 prototype. Improve debug output.
2333 (linux_attach): Doc update.
2334 (linux_detach_one_process, linux_detach): Clean up before releasing
2335 each process.
2336 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
2337 * linux-low.h (struct process_info): Doc improvement.
2338 * mem-break.c (delete_all_breakpoints): New.
2339 * mem-break.h (delete_all_breakpoints): New prototype.
2340 * thread-db.c (find_first_thread): New.
2341 (thread_db_create_event): Call it instead of
2342 thread_db_find_new_threads. Clean up unused variables.
2343 (maybe_attach_thread): Remove first thread handling.
2344 (thread_db_find_new_threads): Use find_first_thread.
2345 (thread_db_get_tls_address): Likewise.
2346
2347 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2348
2349 * thread-db.c (thread_db_find_new_threads): Add prototype.
2350 (thread_db_create_event): Check for the main thread before adding
2351 a new thread.
2352 (maybe_attach_thread): Only enable event reporting if TID == 0.
2353 (thread_db_get_tls_address): Check for new threads.
2354
2355 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
2356
2357 * linux-low.c (linux_create_inferior): Try execv before execvp.
2358 * spu-low.c (spu_create_inferior): Likewise.
2359
2360 2007-06-13 Mike Frysinger <vapier@gentoo.org>
2361
2362 * linux-low.c (linux_create_inferior): Change execv to execvp.
2363 * spu-low.c (spu_create_inferior): Likewies.
2364
2365 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2366
2367 * Makefile.in (clean): Clean new files instead of deleted ones.
2368 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
2369 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
2370 rules.
2371 * configure.srv: Specify XML files and new regformats for MIPS and
2372 MIPS64 GNU/Linux.
2373 * linux-mips-low.c (mips_num_regs): Set to only used registers.
2374 (mips_regmap): Do not fetch $0. Remove unused registers. Add
2375 an entry for the restart register.
2376 (mips_cannot_fetch_register, mips_cannot_store_register)
2377 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
2378 register names to match the XML descriptions.
2379 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
2380 restart register instead of $0.
2381
2382 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2383 Markus Deuling <deuling@de.ibm.com>
2384
2385 * remote-utils.c (decode_xfer_write): New function.
2386 * server.h (decode_xfer_write): Add prototype.
2387 * server.c (handle_query): Add PACKET_LEN argument. Support
2388 qXfer:spu:read and qXfer:spu:write packets.
2389 (main): Pass packet_len to handle_query.
2390 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
2391 * target.h (target_ops): Add qxfer_spu.
2392
2393 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2394
2395 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
2396 accessing non-seekable spufs files.
2397
2398 2007-05-16 Markus Deuling <deuling@de.ibm.com>
2399
2400 * server.c (handle_query): Add reply for qC packet.
2401
2402 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
2403 Leo Zayas <lerele@champenstudios@com>
2404
2405 * server.h (check_remote_input_interrupt_request): New function.
2406 * remote_utils.c (INVALID_DESCRIPTOR): New define.
2407 (remote_desc): Initialize with INVALID_DESCRIPTOR.
2408 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
2409 (check_remote_input_interrupt_request): New function.
2410 * server.h (check_remote_input_interrupt_request): Declare.
2411 * win32-low.c (winapi_DebugBreakProcess,
2412 winapi_GenerateConsoleCtrlEvent): New typedefs.
2413 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
2414 to 250 ms.
2415 (win32_wait): Check for remote interrupt request
2416 with check_remote_input_interrupt_request.
2417 (win32_request_interrupt): New function.
2418 (win32_target_op): Set request_interrupt to win32_request_interrupt.
2419
2420 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
2421
2422 * win32-low.c (debug_registers_changed,
2423 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
2424 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
2425 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
2426 (thread_rec): Get context using the low target.
2427 (child_add_thread): Call thread_added on the low target,
2428 which does the same thing.
2429 (regptr): Delete.
2430 (do_initial_child_stuff): Remove debug registers references.
2431 Set context using the low target. Resume threads after
2432 setting the contexts.
2433 (child_continue): Remove dead variable. Remove debug
2434 registers references.
2435 (child_fetch_inferior_registers): Go through the low target.
2436 (do_child_store_inferior_registers): Remove.
2437 (child_store_inferior_registers): Go through the low target.
2438 (win32_resume): Remove debug registers references.
2439 Set context using the low target.
2440 (handle_exception): Change return type to void. Don't record
2441 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
2442 first chance exception.
2443 (get_child_debug_event): Change return type to void. Remove
2444 goto loop. Always return after waiting for debug event.
2445 (win32_wait): Convert to switch statement. Handle spurious
2446 events.
2447
2448 * win32-i386-low.c (debug_registers_changed,
2449 debug_registers_used): New.
2450 (initial_stuff): Rename to ...
2451 (i386_initial_stuff): ... this. Clear debug registers
2452 state variables.
2453 (store_debug_registers): Delete.
2454 (i386_get_thread_context): New.
2455 (load_debug_registers): Delete.
2456 (i386_set_thread_context): New.
2457 (i386_thread_added): New.
2458 (single_step): Rename to ...
2459 (i386_single_step): ... this.
2460 (do_fetch_inferior_registers): Rename to ...
2461 (i386_fetch_inferior_register): ... this.
2462 (i386_store_inferior_register): New.
2463 (the_low_target): Adapt to new interface.
2464
2465 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
2466 (arm_get_thread_context): New.
2467 (arm_set_thread_context): New.
2468 (regptr): New.
2469 (do_fetch_inferior_registers): Rename to ...
2470 (arm_fetch_inferior_register): ... this.
2471 (arm_store_inferior_register): New.
2472 (arm_wince_breakpoint): Reimplement as unsigned long.
2473 (arm_wince_breakpoint_len): Define.
2474 (the_low_target): Adapt to new interface.
2475
2476 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
2477 load_debug_registers. Add get_thread_context, set_thread_context,
2478 thread_added and store_inferior_register. Rename
2479 fetch_inferior_registers to fetch_inferior_register.
2480 (regptr): Remove declaration.
2481
2482 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
2483
2484 * linux-low.c (linux_detach): Change return type to int. Return 0.
2485 * spu-low.c (spu_detach): Likewise.
2486
2487 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
2488
2489 * target.h (target_ops): Change return type of detach to int.
2490 Add join.
2491 (join_inferior): New.
2492 * server.c (main): Don't skip detach support on mingw32.
2493 If the inferior doesn't support detaching return error.
2494 Call join_inferior instead of using waitpid.
2495 * linux-low.c (linux_join): New.
2496 (linux_target_op): Add linux_join.
2497 * spu-low.c (spu_join): New.
2498 (spu_target_ops): Add spu_join.
2499 * win32-low.c (win32_detach): Adapt to new interface.
2500 Reopen current_process_handle before detaching. Issue a child
2501 resume before detaching.
2502 (win32_join): New.
2503 (win32_target_op): Add win32_join.
2504
2505 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
2506
2507 * win32-low.c (win32-attach): Fix return value.
2508 * target.h (target_ops): Describe ATTACH return values.
2509
2510 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
2511
2512 * win32-low.c (GETPROCADDRESS): Define.
2513 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
2514 (winapi_DebugSetProcessKillOnExit): Likewise.
2515 (win32_create_inferior): Force usage of ansi CreateProcessA.
2516 (win32_attach): Use GETPROCADDRESS.
2517 (win32_detach): Likewise.
2518
2519 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
2520
2521 * win32-low.c (win32_wait): Don't use WSTOPSIG.
2522
2523 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
2524
2525 * win32-low.c: Commit leftover changes from 2007-03-29.
2526
2527 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2528
2529 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
2530 fields short instead of int. Add explicit padding.
2531 (i387_cache_to_fsave): Remove unnecessary casts.
2532 (i387_fsave_to_cache): Doc fix.
2533 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
2534
2535 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2536
2537 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
2538 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
2539
2540 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
2541
2542 * configure.srv (arm*-*-mingw32ce*): Move near the other
2543 arm targets.
2544
2545 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
2546
2547 * configure.ac: Add errno checking.
2548 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
2549 sys/file.h and malloc.h.
2550 (AC_CHECK_DECLS): Add perror.
2551 (srv_mingwce): Handle.
2552 * configure.srv (i[34567]86-*-cygwin*): Add
2553 win32-i386-low.o to srv_tgtobj.
2554 (i[34567]86-*-mingw*): Likewise.
2555 (arm*-*-mingw32ce*): Add case.
2556 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
2557 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
2558 [__MINGW32CE__] (strerror): New function.
2559 [__MINGW32CE__] (errno): Define to GetLastError.
2560 [__MINGW32CE__] (COUNTOF): New macro.
2561 (remote_open): Remove extra close call.
2562 * mem-break.c (delete_breakpoint_at): New function.
2563 * mem-break.h (delete_breakpoint_at): Declare.
2564 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
2565 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
2566 [USE_WIN32API] (read, write): Add char* casts.
2567 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
2568 * server.h: Include wincecompat.h on Windows CE.
2569 [HAVE_ERRNO_H]: Check.
2570 (perror): Declare if not declared.
2571 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
2572 (perror_with_name): Remove errno declaration.
2573 * wincecompat.h: New.
2574 * wincecompat.c: New.
2575 * win32-low.h: New.
2576 * win32-arm-low.c: New.
2577 * win32-i386-low.c: New.
2578 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
2579 (OUTMSG2): Make it safe.
2580 (_T): New macro.
2581 (COUNTOF): New macro.
2582 (NUM_REGS): Get it from the low target.
2583 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
2584 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
2585 (thread_rec): Let low target handle debug registers.
2586 (child_add_thread): Likewise.
2587 (child_init_thread_list): Likewise.
2588 (continue_one_thread): Likewise.
2589 (regptr): New.
2590 (do_child_fetch_inferior_registers): Move to ...
2591 * win32-i386-low.c: ... here, and rename to ...
2592 (do_fetch_inferior_registers): ... this.
2593 * win32-low.c (child_fetch_inferior_registers):
2594 Go through the low target.
2595 (do_child_store_inferior_registers): Use regptr.
2596 (strwinerror): New function.
2597 (win32_create_inferior): Handle Windows CE.
2598 Use strwinerror instead of strerror on Windows error
2599 codes. Add program to the error output.
2600 Don't close the main thread handle on Windows CE.
2601 (win32_attach): Use coredll.dll on Windows CE.
2602 (win32_kill): Close current process and current
2603 thread handles.
2604 (win32_detach): Use coredll.dll on Windows CE.
2605 (win32_resume): Let low target handle debug registers, and
2606 step request.
2607 (handle_exception): Add/Remove initial breakpoint. Avoid
2608 non-existant WSTOPSIG on Windows CE.
2609 (win32_read_inferior_memory): Cast to remove warning.
2610 (win32_arch_string): Go through the low target.
2611 (initialize_low): Call set_breakpoint_data with the low
2612 target's breakpoint.
2613 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
2614 FOP_REGNUM, mappings): Move to ...
2615 * win32-i386-low.c: ... here.
2616 * win32-low.c (win32_thread_info): Move to ...
2617 * win32-low.h: ... here.
2618 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
2619 win32-arm-low.c and wincecompat.c.
2620 (all:): Add $EXEEXT.
2621 (install-only:): Likewise.
2622 (gdbserver:): Likewise.
2623 (gdbreplay:): Likewise.
2624 * config.in: Regenerate.
2625 * configure: Regenerate.
2626
2627 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
2628
2629 * win32-low.c: Rename typedef thread_info to
2630 win32_thread_info throughout.
2631
2632 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
2633
2634 * win32-i386-low.c: Rename to ...
2635 * win32-low.c: ... this.
2636 * configure.srv: Replace win32-i386-low.o with win32-low.o.
2637 * Makefile.in: Likewise.
2638
2639 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
2640
2641 * remote-utils.c (monitor_output): Constify msg parameter.
2642 * server.h (monitor_output): Likewise.
2643 * win32-i386-low.c (handle_output_debug_string): New.
2644 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
2645 handle_output_debug_string.
2646 (get_child_debug_event): Likewise.
2647
2648 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
2649
2650 * server.c (main): Correct strtoul check.
2651
2652 2007-03-27 Jon Ringle <jon@ringle.org>
2653
2654 * linux-low.c: Check __ARCH_HAS_MMU__ also.
2655
2656 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
2657
2658 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
2659
2660 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
2661
2662 * terminal.h: Check HAVE_SGTTY_H.
2663
2664 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
2665
2666 * remote-utils.c (remote_open): Print out the assigned port number.
2667
2668 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
2669
2670 * remote-utils.c (monitor_output): New function.
2671 * server.c (debug_threads): Define here.
2672 (monitor_show_help): New function.
2673 (handle_query): Handle qRcmd.
2674 (main): Do not handle 'd' packet.
2675 * server.h (debug_threads, remote_debug, monitor_output): Declare.
2676 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
2677 of debug_threads.
2678
2679 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
2680
2681 * Makefile.in (EXEEXT): New.
2682 (clean): Use $(EXEEXT).
2683
2684 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
2685
2686 * target.h (target_ops): Rename send_signal to request_interrupt,
2687 and remove enum target_signal parameter.
2688 * linux-low.c (linux_request_interrupt): Rename from
2689 linux_send_signal, and always send SIGINT.
2690 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
2691 and always send SIGINT.
2692 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
2693 of send_signal.
2694 (input_interrupt): Likewise.
2695
2696 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
2697
2698 * server.c (get_features_xml): Check if target implemented
2699 arch_string.
2700 * win32-i386-low.c (win32_arch_string): New.
2701 (win32_target_ops): Add win32_arch_string as arch_string member.
2702
2703 2007-02-22 Markus Deuling <deuling@de.ibm.com>
2704
2705 * spu-low.c (spu_arch_string): New.
2706 (spu_target_ops): Add spu_arch_string.
2707
2708 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
2709
2710 * remote-utils.c: Remove HAVE_TERMINAL_H check.
2711 * configure.ac: Do not check for terminal.h.
2712 * configure, config.in: Regenerated.
2713
2714 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
2715
2716 * Makefile.in (OBS): Add $(XML_BUILTIN).
2717 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
2718 (clean): Update.
2719 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
2720 (arm-with-iwmmxt.c): New.
2721 * config.in, configure: Regenerate.
2722 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
2723 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
2724 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
2725 (arm*-*-linux*): Add iWMMXt and regset support.
2726 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
2727 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
2728 (arm_store_wmmxregset, target_regsets): New.
2729 * server.c (get_features_xml): Take annex argument. Check builtin
2730 XML documents.
2731 (handle_query): Handle multiple annexes.
2732
2733 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
2734
2735 * remote-utils.c [USE_WIN32API] (read, write): Define.
2736 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
2737 write.
2738
2739 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2740
2741 * linux-i386-low.c (the_low_target): Set arch_string.
2742 * linux-x86-64-low.c (the_low_target): Likewise.
2743 * linux-low.c (linux_arch_string): New.
2744 (linux_target_ops): Add it.
2745 * linux-low.h (struct linux_target_ops): Add arch_string.
2746 * server.c (write_qxfer_response): Use const void * for DATA.
2747 (get_features_xml): New.
2748 (handle_query): Handle qXfer:features:read. Report it for qSupported.
2749 * target.h (struct target_ops): Add arch_string method.
2750
2751 2007-01-03 Denis Pilat <denis.pilat@st.com>
2752 Daniel Jacobowitz <dan@codesourcery.com>
2753
2754 * linux-low.c (linux_kill): Handle being called with no threads.
2755 * win32-i386-low.c (win32_kill): Likewise.
2756 (get_child_debug_event): Clear current_process_handle.
2757
2758 2006-12-30 Denis PILAT <denis.pilat@st.com>
2759 Daniel Jacobowitz <dan@codesourcery.com>
2760
2761 * remote-utils.c (remote_open): Check the type of specified
2762 serial port devices before opening them.
2763 * server.c (main): Kill the inferior if an error occurs during
2764 the first remote_open.
2765
2766 2006-12-05 Markus Deuling <deuling@de.ibm.com>
2767
2768 * README: Update supported targets.
2769
2770 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
2771
2772 * Makefile.in (clean): Remove reg-mips64.c.
2773 (reg-mips64.c, reg-mips64.o): New rules.
2774 * configure.srv: Handle mips64. Include regset support for mips.
2775 * linux-mips-low.c (union mips_register): New.
2776 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
2777 (mips_breakpoint, mips_breakpoint_at): Use int.
2778 (mips_collect_register, mips_supply_register)
2779 (mips_collect_register_32bit, mips_supply_register_32bit)
2780 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
2781 (mips_store_fpregset, target_regsets): New.
2782 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
2783
2784 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2785
2786 * configure.srv: Add target "spu*-*-*".
2787 * Makefile.in (clean): Remove reg-spu.c.
2788 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
2789 * spu-low.c: New file.
2790
2791 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
2792
2793 * configure.ac: Correct td_thr_tls_get_addr test.
2794 * configure: Regenerated.
2795
2796 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
2797
2798 * linux-low.c (linux_wait_for_event): Reformat. Use the
2799 pass_signals array.
2800 * remote-utils.c (decode_address_to_semicolon): New.
2801 * server.c (pass_signals, handle_general_set): New.
2802 (handle_query): Mention QPassSignals for qSupported.
2803 (main): Call handle_general_set.
2804 * server.h (pass_signals, decode_address_to_semicolon): New.
2805
2806 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
2807
2808 * server.c (handle_query): Correct error handling for read_auxv.
2809
2810 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2811
2812 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
2813 and srv_linux_thread_db to yes.
2814 * linux-s390-low.c (s390_fill_gregset): New function.
2815 (target_regsets): Define data structure.
2816
2817 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
2818
2819 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
2820 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
2821 * config.in, configure: Regenerated.
2822 * inferiors.c (gdb_id_to_thread): New function.
2823 (gdb_id_to_thread_id): Use it.
2824 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
2825 * linux-low.h (struct process_info): Add th member.
2826 (thread_db_get_tls_address): New prototype.
2827 * remote-utils.c (decode_address): Make non-static.
2828 * server.c (handle_query): Handle qGetTLSAddr.
2829 * server.h (gdb_id_to_thread, decode_address): New prototypes.
2830 * target.h (struct target_ops): Add get_tls_address.
2831 * thread-db.c (maybe_attach_thread): Save the thread handle.
2832 (thread_db_get_tls_address): New.
2833
2834 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
2835
2836 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
2837 (linux_resume_one_process): Take a siginfo_t *. Update all
2838 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
2839 (struct pending_signals): Add a siginfo_t.
2840 (linux_wait_for_process): Always set last_status.
2841 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
2842 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
2843 * linux-low.h (struct process_info): Add last_status.
2844
2845 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
2846
2847 * remote-utils.c (try_rle): New function.
2848 (putpkt_binary): Use it.
2849
2850 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
2851
2852 * Makefile.in (clean): Clean reg-x86-64-linux.c.
2853 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
2854 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
2855 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
2856 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
2857 point registers.
2858
2859 2006-08-08 Richard Sandiford <richard@codesourcery.com>
2860
2861 * server.c (terminal_fd): New variable.
2862 (old_foreground_pgrp): Likewise.
2863 (restore_old_foreground_pgrp): New function.
2864 (start_inferior): Record the terminal file descriptor in terminal_fd
2865 and its original foreground group in old_foreground_pgrp. Register
2866 restore_old_foreground_pgrp with atexit().
2867
2868 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
2869
2870 * server.c (handle_query): Correct qPart to qXfer.
2871
2872 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
2873
2874 * configure.ac: Check for more headers which are missing on
2875 Windows. Automatically supply -lwsock32 and USE_WIN32API.
2876 * configure.srv: Add Cygwin and mingw32.
2877 * remote-utils.c: Don't include headers unconditionally which
2878 are missing on mingw32. Include <winsock.h> for mingw32.
2879 (remote_open): Adjust for mingw32 support. Flush
2880 standard error after writing to it.
2881 (remote_close, putpkt_binary, input_interrupt, block_async_io)
2882 (unblock_async_io, enable_async_io, disable_async_io)
2883 (readchar, getpkt): Update for Winsock support.
2884 (prepare_resume_reply): Expect a protocol signal number.
2885 * server.c: Disable <sys/wait.h> on mingw32.
2886 (start_inferior): Adjust for mingw32 support. Flush
2887 standard error after writing to it.
2888 (attach_inferior): Likewise. Use protocol signal
2889 numbers.
2890 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
2891 and names.
2892 * win32-i386-low.c: New file.
2893 * Makefile.in (XM_CLIBS): Set.
2894 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
2895 (win32-i386-low.o): New dependency rule.
2896 * linux-low.c (linux_wait): Use target signal numbers.
2897 * target.h (struct target_ops): Doc fix.
2898 * server.h (target_signal_to_name): New prototype.
2899 * gdbreplay.c: Don't include headers unconditionally which
2900 are missing on mingw32. Include <winsock.h> for mingw32.
2901 (remote_close, remote_open): Adjust for Winsock support.
2902 * configure, config.in: Regenerated.
2903
2904 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
2905
2906 * server.c (decode_xfer_read, write_qxfer_response): New.
2907 (handle_query): Take a packet length argument. Handle
2908 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
2909 the qSupported response.
2910 (main): Update call to handle_query.
2911
2912 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
2913
2914 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
2915 (putpkt_binary): Renamed from putpkt and adjusted for binary
2916 data.
2917 (putpkt): New wrapper for putpkt_binary.
2918 (readchar): Don't mask off the high bit.
2919 (decode_X_packet): New function.
2920 * server.c (main): Call putpkt_binary if a handler sets the packet
2921 length. Save the length of the incoming packet. Handle 'X'.
2922 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
2923
2924 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
2925
2926 * server.c (handle_query): Handle qSupported.
2927
2928 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
2929
2930 * remote-utils.c (all_symbols_looked_up): New variable.
2931 (look_up_one_symbol): Check it.
2932 * server.h (look_up_one_symbol): New declaration.
2933 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
2934
2935 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
2936
2937 * Makefile.in (linux-arm-low.o): Update dependencies.
2938 * linux-arm-low.c: Include "gdb_proc_service.h".
2939 (PTRACE_GET_THREAD_AREA): Define.
2940 (ps_get_thread_area): New function.
2941
2942 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
2943
2944 * configure.srv (m68k*-*-uclinux*): New target.
2945 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
2946 (linux_resume_one_process): Remove extraneous cast.
2947 (linux_read_offsets): New.
2948 (linux_target_op): Add linux_read_offsets on mmuless systems.
2949 * server.c (handle_query): Add qOffsets logic.
2950 * target.h (struct target_ops): Add read_offsets.
2951
2952 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2953
2954 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
2955 (PTRACE_GET_THREAD_AREA): Define.
2956 (ps_get_thread_area): New function.
2957 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
2958 (linux-x86-64-low.o): Update.
2959
2960 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2961
2962 * configure.ac: Remove checks for prfpregset_t.
2963 * gdb_proc_service.h: New file.
2964 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
2965 new "gdb_proc_service.h".
2966 * proc-service.c: Likewise.
2967 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
2968 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
2969 * Makefile.in (gdb_proc_service_h): Updated.
2970 * configure, config.in: Regenerated.
2971
2972 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
2973
2974 * remote-utils.c (prepare_resume_reply): Move declaration
2975 of gdb_id_from_wait to the top of the block.
2976
2977 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
2978
2979 * linux-low.c (regsets_store_inferior_registers): Read the regset
2980 from the target before filling it.
2981
2982 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
2983
2984 * server.c (attach_inferior): Return SIGTRAP for a successful
2985 attach.
2986
2987 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2988
2989 * Makefile.in (OBS): Add version.o.
2990 (STAGESTUFF): Delete.
2991 (version.o): Add dependencies.
2992 (version.c): Replace rule.
2993 (clean): Remove version.c.
2994 * server.c (gdbserver_version): New.
2995 (gdbserver_usage): Use printf.
2996 (main): Handle --version and --help.
2997 * server.h (version, host_name): Add declarations.
2998
2999 2005-12-23 Eli Zaretskii <eliz@gnu.org>
3000
3001 * linux-arm-low.c:
3002 * linux-arm-low.c:
3003 * inferiors.c:
3004 * i387-fp.h:
3005 * i387-fp.c:
3006 * gdbreplay.c:
3007 * regcache.c:
3008 * proc-service.c:
3009 * mem-break.h:
3010 * mem-break.c:
3011 * linux-x86-64-low.c:
3012 * linux-sh-low.c:
3013 * linux-s390-low.c:
3014 * linux-ppc64-low.c:
3015 * linux-ppc-low.c:
3016 * linux-mips-low.c:
3017 * linux-m68k-low.c:
3018 * linux-m32r-low.c:
3019 * linux-low.h:
3020 * linux-low.c:
3021 * linux-ia64-low.c:
3022 * linux-i386-low.c:
3023 * linux-crisv32-low.c:
3024 * thread-db.c:
3025 * terminal.h:
3026 * target.h:
3027 * target.c:
3028 * server.h:
3029 * server.c:
3030 * remote-utils.c:
3031 * regcache.h:
3032 * utils.c:
3033 * Makefile.in:
3034 * configure.ac:
3035 * gdbserver.1: Add (C) after Copyright. Update the FSF
3036 address.
3037
3038 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
3039
3040 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
3041 (arm_breakpoint_at): Recognize both breakpoints.
3042 (the_low_target): Use the correct breakpoint instruction.
3043
3044 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
3045
3046 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
3047 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
3048 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
3049 (the_low_target): Update.
3050
3051 2005-10-25 Andreas Schwab <schwab@suse.de>
3052
3053 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
3054
3055 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
3056 (ia64_num_regs): Reduce to 462.
3057
3058 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
3059
3060 * acinclude.m4: Correct quoting.
3061 * aclocal.m4: Regenerated.
3062
3063 Suggested by SZOKOVACS Robert <szo@ies.hu>:
3064 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
3065 (thread_db_init): Call thread_db_err_str.
3066 * configure.ac: Check for TD_VERSION.
3067 * config.in, configure: Regenerated.
3068
3069 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3070
3071 * server.h (error, fatal, warning): Add ATTR_FORMAT.
3072
3073 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
3074
3075 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
3076 is not available. Define HAVE_PTRACE_GETREGS if it is.
3077 * config.in, configure: Regenerated.
3078 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
3079 * linux-i386-low.c, linux-m68k-low.c: Update to use
3080 HAVE_PTRACE_GETREGS.
3081 * linux-low.c (regsets_fetch_inferior_registers)
3082 (regsets_store_inferior_registers): Only return 0 if we processed
3083 GENERAL_REGS.
3084 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
3085 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
3086
3087 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
3088
3089 * inferiors.c (struct thread_info): Add gdb_id.
3090 (add_thread): Add gdb_id argument.
3091 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
3092 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
3093 calls to add_thread.
3094 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
3095 * server.c (handle_query): Use thread_to_gdb_id.
3096 (handle_v_cont, main): Use gdb_id_to_thread_id.
3097 * server.h (add_thread): Update prototype.
3098 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
3099 prototypes.
3100
3101 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
3102
3103 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
3104 left-padded registers.
3105 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
3106 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
3107
3108 2005-07-01 Steve Ellcey <sje@cup.hp.com>
3109
3110 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
3111 * configure: Regenerate.
3112 * config.in: Regenerate.
3113 * server.h (NEED_DECLARATION_STRERROR):
3114 Replace with !HAVE_DECL_STRERROR.
3115
3116 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
3117
3118 * linux-low.c (linux_wait, linux_send_signal): Don't test
3119 an unsigned long variable for > 0 if it could be MAX_ULONG.
3120 * server.c (myresume): Likewise.
3121 * target.c (set_desired_inferior): Likewise.
3122
3123 2005-06-13 Mark Kettenis <kettenis@gnu.org>
3124
3125 * configure.ac: Simplify and improve check for socklen_t.
3126 * configure, config.in: Regenerate.
3127
3128 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
3129
3130 * acconfig.h: Remove.
3131 * configure.ac: Add a test for socklen_t. Use three-argument
3132 AC_DEFINE throughout.
3133 * config.in: Regenerated using autoheader 2.59.
3134 * configure: Regenerated.
3135
3136 * gdbreplay.c (socklen_t): Provide a default.
3137 (remote_open): Use socklen_t.
3138 * remote-utils.c (socklen_t): Provide a default.
3139 (remote_open): Use socklen_t.
3140 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
3141 unsigned char.
3142
3143 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
3144 char for buffers.
3145 * linux-low.c (linux_read_memory, linux_write_memory)
3146 (linux_read_auxv): Likewise.
3147 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
3148 (check_mem_write): Likewise.
3149 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
3150 Likewise.
3151 * regcache.c (struct inferior_rgcache_data, registers_to_string)
3152 (registers_from_string, register_data): Likewise.
3153 * server.c (handle_query, main): Likewise.
3154 * server.h (convert_ascii_to_int, convert_int_to_ascii)
3155 (decode_M_packet): Likewise.
3156 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
3157 * target.h (struct target_ops): Update read_memory, write_memory,
3158 and read_auxv.
3159 (read_inferior_memory, write_inferior_memory): Update.
3160 * linux-low.h (struct linux_target_ops): Change type of breakpoint
3161 to unsigned char *.
3162 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
3163 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
3164 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
3165 linux-s390-low.c, linux-sh-low.c: Update for changes in
3166 read_inferior_memory and the_low_target->breakpoint.
3167
3168 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
3169
3170 * Makefile.in (SFILES): Add linux-ppc64-low.c.
3171 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
3172 * configure.srv: Add powerpc64-*-linux*.
3173 * linux-ppc64-low.c: New file.
3174
3175 2005-05-23 Orjan Friberg <orjanf@axis.com>
3176
3177 * linux-cris-low.c: New file with support for CRIS.
3178 * linux-crisv32-low.c: Ditto for CRISv32.
3179 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
3180 (clean): Add reg-cris.c and reg-crisv32.c.
3181 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
3182 reg-crisv32.o, and reg-crisv32.c to make rules.
3183 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
3184 recognized targets.
3185
3186 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
3187
3188 * linux-low.c (fetch_register): Ensure buffer size is a multiple
3189 of sizeof (PTRACE_XFER_TYPE).
3190 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
3191
3192 2005-05-12 Orjan Friberg <orjanf@axis.com>
3193
3194 * target.h (struct target_ops): Add insert_watchpoint,
3195 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
3196 pointers for hardware watchpoint support.
3197 * linux-low.h (struct linux_target_ops): Ditto.
3198 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
3199 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
3200 to linux_target_ops.
3201 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
3202 reply packet.
3203 * server.c (main): Recognize 'Z' and 'z' packets.
3204
3205 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
3206
3207 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
3208 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
3209 (the_low_target): Add new members.
3210
3211 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
3212
3213 * proc-service.c (ps_lgetregs): Search all_processes instead of
3214 all_threads.
3215
3216 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
3217
3218 * server.c (start_inferior): Change return type to int.
3219 (attach_inferior): Change sigptr to int *.
3220 (handle_v_cont, handle_v_requests): Change signal to int *.
3221 (main): Change signal to int.
3222
3223 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
3224
3225 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
3226 * configure.srv: Add m32r*-*-linux*.
3227 * linux-m32r-low.c: New file.
3228
3229 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
3230
3231 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
3232
3233 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
3234
3235 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
3236 Take unsigned long arguments for PIDs.
3237 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
3238 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
3239 (wait_for_sigstop, linux_resume_one_process)
3240 (regsets_fetch_inferior_registers, linux_send_signal)
3241 (linux_read_auxv): Likewise. Update the types of variables holding
3242 PIDs. Update format string specifiers.
3243 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
3244 * remote-utils.c (prepare_resume_reply): Likewise.
3245 * server.c (cont_thread, general_thread, step_thread)
3246 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
3247 unsigned long.
3248 (handle_query): Update format specifiers.
3249 (handle_v_cont, main): Use strtoul for thread IDs.
3250 * server.h (struct inferior_list_entry): Use unsigned long for ID.
3251 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
3252 (general_thread, step_thread, thread_from_wait)
3253 (old_thread_from_wait): Update.
3254 * target.h (struct thread_resume): Use unsigned long for THREAD.
3255 (struct target_ops): Use unsigned long for arguments to attach and
3256 thread_alive.
3257
3258 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
3259
3260 * acinclude.m4: Include bfd/bfd.m4 directly.
3261 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
3262 <agriffis@toolchain.org>.
3263 * aclocal.m4, configure: Regenerated.
3264
3265 2005-01-07 Andrew Cagney <cagney@gnu.org>
3266
3267 * configure.ac: Rename configure.in, require autoconf 2.59.
3268 * configure: Re-generate.
3269
3270 2004-12-08 Daniel Jacobowitz <dan@debian.org>
3271
3272 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
3273 LIBS when finished.
3274 * aclocal.m4: Regenerated.
3275 * configure: Regenerated.
3276
3277 2004-11-21 Andreas Schwab <schwab@suse.de>
3278
3279 * linux-m68k-low.c (m68k_num_gregs): Define.
3280 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
3281 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
3282 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
3283 (m68k_breakpoint_at): New. Add to the_low_target.
3284
3285 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
3286 srv_linux_thread_db to yes.
3287
3288 2004-10-20 Joel Brobecker <brobecker@gnat.com>
3289
3290 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
3291 (ARCH_SET_FS): Likewise.
3292 (ARCH_GET_FS): Likewise.
3293 (ARCH_GET_GS): Likewise.
3294
3295 2004-10-16 Daniel Jacobowitz <dan@debian.org>
3296
3297 * linux-i386-low.c (ps_get_thread_area): New.
3298 * linux-x86-64-low.c (ps_get_thread_area): New.
3299 * linux-low.c: Include <sys/syscall.h>.
3300 (linux_kill_one_process): Don't kill the first thread here.
3301 (linux_kill): Kill the first thread here.
3302 (kill_lwp): New function.
3303 (send_sigstop, linux_send_signal): Use it.
3304 * proc-service.c: Clean up #ifdefs.
3305 (fpregset_info): Delete.
3306 (ps_lgetregs): Update and enable implementation.
3307 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
3308 implementations.
3309 * remote-utils.c (struct sym_cache, symbol_cache): New.
3310 (input_interrupt): Print a clearer message.
3311 (async_io_enabled): New variable.
3312 (enable_async_io, disable_async_io): Use it. Update comments.
3313 (look_up_one_symbol): Use the symbol cache.
3314 * thread-db.c (thread_db_look_up_symbols): New function.
3315 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
3316
3317 2004-10-16 Daniel Jacobowitz <dan@debian.org>
3318
3319 * configure.in: Test for -rdynamic.
3320 * configure: Regenerated.
3321 * Makefile (INTERNAL_LDFLAGS): New.
3322 (gdbserver, gdbreplay): Use it.
3323
3324 2004-09-02 Andrew Cagney <cagney@gnu.org>
3325
3326 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
3327
3328 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
3329
3330 * linux-low.c (linux_wait): Clear all_processes list also.
3331
3332 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
3333
3334 * linux-low.c: Include <errno.h>. Remove extern declaration of
3335 errno.
3336
3337 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
3338
3339 * gdbreplay.c, server.h, utils.c: Update copyright years.
3340
3341 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
3342
3343 * server.c (main): Print child status or termination signal from
3344 variable 'signal', not 'sig'.
3345
3346 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
3347
3348 * linux-low.c (linux_read_memory): Change return type to
3349 int. Check for and return error from ptrace().
3350 * target.c (read_inferior_memory): Change return type to int. Pass
3351 back return status from the_target->read_memory().
3352 * target.h (struct target_ops): Adapt *read_memory() prototype.
3353 Update comment.
3354 (read_inferior_memory): Adapt prototype.
3355 * server.c (main): Return an error packet if
3356 read_inferior_memory() returns an error.
3357
3358 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
3359
3360 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
3361 Unify with other clean targets.
3362
3363 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
3364
3365 * server.c (handle_v_cont): Call set_desired_inferior.
3366
3367 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
3368
3369 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
3370
3371 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
3372
3373 * linux-low.c (linux_wait): Unblock async I/O.
3374 (linux_resume): Block and enable async I/O.
3375 * remote-utils.c (block_async_io, unblock_async_io): New functions.
3376 * server.h (block_async_io, unblock_async_io): Add prototypes.
3377
3378 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
3379
3380 * remote-utils.c (remote_open): Print a status notice after
3381 opening a TCP port.
3382 * server.c (attach_inferior): Print a status notice after
3383 attaching.
3384
3385 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
3386
3387 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
3388
3389 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
3390
3391 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
3392 error packet.
3393 * server.c, target.h: Update copyright years.
3394
3395 2004-02-25 Roland McGrath <roland@redhat.com>
3396
3397 * target.h (struct target_ops): New member `read_auxv'.
3398 * server.c (handle_query): Handle qPart:auxv:read: query using that.
3399 * linux-low.c (linux_read_auxv): New function.
3400 (linux_target_ops): Initialize `read_auxv' member to that.
3401
3402 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3403
3404 Committed by Jim Blandy <jimb@redhat.com>.
3405
3406 * linux-s390-low.c (s390_num_regs): Update.
3407 (s390_regmap): Remove control registers. Use __s390x__ predefine
3408 instead of GPR_SIZE to distiguish s390 and s390x targets.
3409
3410 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
3411
3412 * linux-low.c: Update copyright year.
3413 (check_removed_breakpoint): Clear pending_is_breakpoint.
3414 (linux_set_resume_request, linux_queue_one_thread)
3415 (resume_status_pending_p): New functions.
3416 (linux_continue_one_thread): Use process->resume.
3417 (linux_resume): Only resume threads if there are no pending events.
3418 * linux-low.h (struct process_info): Add resume request
3419 pointer.
3420
3421 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
3422
3423 * regcache.c (new_register_cache): Clear the allocated register
3424 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
3425
3426 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
3427
3428 * linux-low.c (linux_resume): Take a struct thread_resume *
3429 argument.
3430 (linux_wait): Update call.
3431 (resume_ptr): New static variable.
3432 (linux_continue_one_thread): Renamed from
3433 linux_continue_one_process. Use resume_ptr.
3434 (linux_resume): Use linux_continue_one_thread.
3435 * server.c (handle_v_cont, handle_v_requests): New functions.
3436 (myresume): New function.
3437 (main): Handle 'v' case.
3438 * target.h (struct thread_resume): New type.
3439 (struct target_ops): Change argument of "resume" to struct
3440 thread_resume *.
3441 (myresume): Delete macro.
3442
3443 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3444
3445 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
3446 (uninstall): Support DESTDIR.
3447
3448 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
3449
3450 * configure.srv: Add xscale*linux copy of arm*linux entry.
3451
3452 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
3453
3454 * linux-arm-low.c (arm_reinsert_addr): New function.
3455 (the_low_target): Add arm_reinsert_addr.
3456
3457 2003-07-08 Mark Kettenis <kettenis@gnu.org>
3458
3459 * mem-break.c: Remove whitespace at end of file.
3460
3461 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3462
3463 * configure.in: Check whether we need to prototype strerror.
3464 * server.h: Optionally prototype strerror.
3465 * gdbreplay.c (perror_with_name): Use strerror.
3466 * linux-low.c (linux_attach_lwp): Use strerror.
3467 * utils.c (perror_with_name): Use strerror.
3468 * config.in, configure: Regenerated.
3469
3470 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3471
3472 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
3473 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
3474
3475 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3476
3477 * Makefile.in (SFILES): Update.
3478 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
3479 low-sun3.c: Remove files.
3480
3481 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3482
3483 * linux-low.c: Move comment to linux_thread_alive where it belonged.
3484 (linux_detach_one_process, linux_detach): New functions.
3485 (linux_target_ops): Add linux_detach.
3486 * server.c (main): Handle 'D' packet.
3487 * target.h (struct target_ops): Add "detach" member.
3488 (detach_inferior): Define.
3489
3490 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3491
3492 From Kelley Cook <kelleycook@wideopenwest.com>:
3493 * configure.srv: Accept i[34567]86 variants.
3494
3495 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
3496
3497 * linux-low.c (linux_wait_for_event): Correct comment typos.
3498 (linux_resume_one_process): Call check_removed_breakpoint.
3499 (linux_send_signal): New function.
3500 (linux_target_ops): Add linux_send_signal.
3501 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
3502 of kill.
3503 * target.h (struct target_ops): Add send_signal.
3504
3505 2003-05-29 Jim Blandy <jimb@redhat.com>
3506
3507 * linux-low.c (usr_store_inferior_registers): Transfer buf in
3508 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
3509 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
3510 away part of the register's value.
3511
3512 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3513
3514 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
3515 (linux_wait_for_event, linux_init_signals): Likewise.
3516
3517 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
3518
3519 * configure.in: Check for stdlib.h.
3520 * configure: Regenerated.
3521 * config.in: Regenerated.
3522
3523 2003-01-04 Andreas Schwab <schwab@suse.de>
3524
3525 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
3526
3527 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3528
3529 * Makefile.in: Remove obsolete code.
3530
3531 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
3532
3533 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
3534 defined(PT_FPR0_HI).
3535
3536 2002-11-17 Stuart Hughes <seh@zee2.com>
3537
3538 * linux-arm-low.c (arm_num_regs): Increase.
3539 (arm_regmap): Include status register.
3540
3541 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
3542
3543 * linux-low.c (register_addr): Remove incorrect -1 check.
3544
3545 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
3546
3547 * linux-low.c (linux_create_inferior): Call setpgid. Return
3548 the new PID.
3549 (unstopped_p, linux_signal_pid): Remove.
3550 (linux_target_ops): Remove linux_signal_pid.
3551 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
3552 global instead of target method.
3553 * target.h (struct target_ops): Remove signal_pid. Update comment
3554 for create_inferior.
3555 * server.c (signal_pid): New variable.
3556 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
3557 gdbserver. Set the child to be the foreground process group.
3558 (attach_inferior): Set signal_pid.
3559
3560 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3561
3562 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
3563
3564 2002-08-20 Jim Blandy <jimb@redhat.com>
3565
3566 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3567 default for this.
3568
3569 2002-08-01 Andrew Cagney <cagney@redhat.com>
3570
3571 * Makefile.in: Make chill references obsolete.
3572
3573 2002-07-24 Kevin Buettner <kevinb@redhat.com>
3574
3575 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
3576 * configure: Regenerate.
3577 * config.in: Regenerate.
3578
3579 2002-07-09 David O'Brien <obrien@FreeBSD.org>
3580
3581 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
3582 (perror_with_name, remote_close, remote_open, expect, play): Static.
3583
3584 2002-07-04 Michal Ludvig <mludvig@suse.cz>
3585
3586 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
3587 byte offsets instead of an array of indexes.
3588 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
3589
3590 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3591
3592 * regcache.c: Add comment.
3593
3594 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3595
3596 * thread-db.c: New file.
3597 * proc-service.c: New file.
3598 * acinclude.m4: New file.
3599 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3600 proc-service.o, and thread-db.o.
3601 (linux-low.o): Add USE_THREAD_DB.
3602 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3603 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3604 * aclocal.m4: Regenerated.
3605 * config.in: Regenerated.
3606 * configure: Regenerated.
3607 * configure.in: Check for proc_service.h, sys/procfs.h,
3608 thread_db.h, and linux/elf.h headrs.
3609 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3610 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3611 Check for -lthread_db and thread support.
3612 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
3613 PowerPC, and SuperH.
3614 * i387-fp.c: Constify arguments.
3615 * i387-fp.h: Likewise.
3616 * inferiors.c: (struct thread_info): Renamed from
3617 `struct inferior_info'. Remove PID member. Use generic inferior
3618 list header. All uses updated.
3619 (inferiors, signal_pid): Removed.
3620 (all_threads): New variable.
3621 (get_thread): Define.
3622 (add_inferior_to_list): New function.
3623 (for_each_inferior): New function.
3624 (change_inferior_id): New function.
3625 (add_inferior): Removed.
3626 (remove_inferior): New function.
3627 (add_thread): New function.
3628 (free_one_thread): New function.
3629 (remove_thread): New function.
3630 (clear_inferiors): Use for_each_inferior and free_one_thread.
3631 (find_inferior): New function.
3632 (find_inferior_id): New function.
3633 (inferior_target_data): Update argument type.
3634 (set_inferior_target_data): Likewise.
3635 (inferior_regcache_data): Likewise.
3636 (set_inferior_regcache_data): Likewise.
3637 * linux-low.c (linux_bp_reinsert): Remove.
3638 (all_processes, stopping_threads, using_thrads)
3639 (struct pending_signals, debug_threads, pid_of): New.
3640 (inferior_pid): Replace with macro.
3641 (struct inferior_linux_data): Remove.
3642 (get_stop_pc, add_process): New functions.
3643 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3644 Use add_process and add_thread.
3645 (linux_attach_lwp): New function, based on old linux_attach. Use
3646 add_process and add_thread. Set stop_expected for new threads.
3647 (linux_attach): New function.
3648 (linux_kill_one_process): New function.
3649 (linux_kill): Kill all LWPs.
3650 (linux_thread_alive): Use find_inferior_id.
3651 (check_removed_breakpoints, status_pending_p): New functions.
3652 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3653 Update. Use WNOHANG. Wait for cloned processes also. Update process
3654 struct for the found process.
3655 (linux_wait_for_event): New function.
3656 (linux_wait): Use it. Support LWPs.
3657 (send_sigstop, wait_for_sigstop, stop_all_processes)
3658 (linux_resume_one_process, linux_continue_one_process): New functions.
3659 (linux_resume): Support LWPs.
3660 (REGISTER_RAW_SIZE): Remove.
3661 (fetch_register): Use register_size instead. Call supply_register.
3662 (usr_store_inferior_registers): Likewise. Call collect_register.
3663 Fix recursive case.
3664 (regsets_fetch_inferior_registers): Improve error message.
3665 (regsets_store_inferior_registers): Add debugging.
3666 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3667 (unstopped_p, linux_signal_pid): New functions.
3668 (linux_target_ops): Add linux_signal_pid.
3669 (linux_init_signals): New function.
3670 (initialize_low): Call it. Initialize using_threads.
3671 * regcache.c (inferior_regcache_data): Add valid
3672 flag.
3673 (get_regcache): Fetch registers lazily. Add fetch argument
3674 and update all callers.
3675 (regcache_invalidate_one, regcache_invalidate): New
3676 functions.
3677 (new_register_cache): Renamed from create_register_cache.
3678 Return the new regcache.
3679 (free_register_cache): Change argument to a void *.
3680 (registers_to_string, registers_from_string): Call get_regcache
3681 with fetch flag set.
3682 (register_data): Make static. Pass fetch flag to get_regcache.
3683 (supply_register): Call get_regcache with fetch flag clear.
3684 (collect_register): Call get_regcache with fetch flag set.
3685 (collect_register_as_string): New function.
3686 * regcache.h: Update.
3687 * remote-utils.c (putpkt): Flush after debug output and use
3688 stderr.
3689 Handle input interrupts while waiting for an ACK.
3690 (input_interrupt): Use signal_pid method.
3691 (getpkt): Flush after debug output and use stderr.
3692 (outreg): Use collect_register_as_string.
3693 (new_thread_notify, dead_thread_notify): New functions.
3694 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3695 and general_thread.
3696 (look_up_one_symbol): Flush after debug output.
3697 * server.c (step_thread, server_waiting): New variables.
3698 (start_inferior): Don't use signal_pid. Update call to mywait.
3699 (attach_inferior): Update call to mywait.
3700 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3701 (main): Don't fetch/store registers explicitly. Use
3702 set_desired_inferior. Support proposed ``Hs'' packet. Update
3703 calls to mywait.
3704 * server.h: Update.
3705 (struct inferior_list, struct_inferior_list_entry): New.
3706 * target.c (set_desired_inferior): New.
3707 (write_inferior_memory): Constify.
3708 (mywait): New function.
3709 * target.h: Update.
3710 (struct target_ops): New signal_pid method.
3711 (mywait): Removed macro, added prototype.
3712
3713 * linux-low.h (regset_func): Removed.
3714 (regset_fill_func, regset_store_func): New.
3715 (enum regset_type): New.
3716 (struct regset_info): Add type field. Use new operation types.
3717 (struct linux_target_ops): stop_pc renamed to get_pc.
3718 Add decr_pc_after_break and breakpoint_at.
3719 (get_process, get_thread_proess, get_process_thread)
3720 (strut process_info, all_processes, linux_attach_lwp)
3721 (thread_db_init): New.
3722
3723 * linux-arm-low.c (arm_get_pc, arm_set_pc,
3724 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3725 (the_low_target): Add new members.
3726 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3727 (i386_store_fpxregset): Constify.
3728 (target_regsets): Add new kind identifier.
3729 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3730 (i386_set_pc): Add debugging.
3731 (i386_breakpoint_at): New function.
3732 (the_low_target): Add new members.
3733 * linux-mips-low.c (mips_get_pc, mips_set_pc)
3734 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3735 (mips_breakpoint_at): New.
3736 (the_low_target): Add new members.
3737 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3738 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3739 (the_low_target): Add new members.
3740 * linux-sh-low.c (sh_get_pc, sh_set_pc)
3741 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3742 (the_low_target): Add new members.
3743 * linux-x86-64-low.c (target_regsets): Add new kind
3744 identifier.
3745
3746 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
3747
3748 From Martin Pool <mbp@samba.org>:
3749 * server.c (gdbserver_usage): New function.
3750 (main): Call it.
3751
3752 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3753
3754 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
3755 stop_at -> stop_pc.
3756
3757 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3758
3759 * Makefile.in: Remove obsolete code.
3760
3761 2002-04-24 Michal Ludvig <mludvig@suse.cz>
3762
3763 * linux-low.c (regsets_fetch_inferior_registers),
3764 (regsets_store_inferior_registers): Removed cast to int from
3765 ptrace() calls.
3766 * regcache.h: Added declaration of struct inferior_info.
3767
3768 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
3769
3770 * inferiors.c (struct inferior_info): Add regcache_data.
3771 (add_inferior): Call create_register_cache.
3772 (clear_inferiors): Call free_register_cache.
3773 (inferior_regcache_data, set_inferior_regcache_data): New functions.
3774 * regcache.c (struct inferior_regcache_data): New.
3775 (registers): Remove.
3776 (get_regcache): New function.
3777 (create_register_cache, free_register_cache): New functions.
3778 (set_register_cache): Don't initialize the register cache here.
3779 (registers_to_string, registers_from_string, register_data): Call
3780 get_regcache.
3781 * regcache.h: Add prototypes.
3782 * server.h: Likewise.
3783
3784 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
3785
3786 * mem-break.c: New file.
3787 * mem-break.h: New file.
3788 * Makefile.in: Add mem-break.o rule; update server.h
3789 dependencies.
3790 * inferiors.c (struct inferior_info): Add target_data
3791 member.
3792 (clear_inferiors): Free target_data member if set.
3793 (inferior_target_data, set_inferior_target_data): New functions.
3794 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
3795 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
3796 * linux-low.c (linux_bp_reinsert): New variable.
3797 (struct inferior_linux_data): New.
3798 (linux_create_inferior): Use set_inferior_target_data.
3799 (linux_attach): Likewise. Call add_inferior.
3800 (linux_wait_for_one_inferior): New function.
3801 (linux_wait): Call it.
3802 (linux_write_memory): Add const.
3803 (initialize_low): Call set_breakpoint_data.
3804 * linux-low.h (struct linux_target_ops): Add breakpoint
3805 handling members.
3806 * server.c (attach_inferior): Remove extra add_inferior
3807 call.
3808 * server.h: Include mem-break.h. Update inferior.c
3809 prototypes.
3810 * target.c (read_inferior_memory)
3811 (write_inferior_memory): New functions.
3812 * target.h (read_inferior_memory)
3813 (write_inferior_memory): Change macros to prototypes.
3814 (struct target_ops): Update comments. Add const to write_memory
3815 definition.
3816
3817 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
3818
3819 * linux-low.c (usr_store_inferior_registers): Support
3820 registers which are allowed to fail to store.
3821 * linux-low.h (linux_target_ops): Likewise.
3822 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
3823 (ppc_cannot_store_register): FPSCR may not be storable.
3824
3825 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3826
3827 * server.h: Include <string.h> if HAVE_STRING_H.
3828 * ChangeLog: Correct paths in last ChangeLog entry.
3829
3830 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3831
3832 * linux-low.h: Remove obsolete prototypes.
3833 (struct linux_target_ops): New.
3834 (extern the_low_target): New.
3835 * linux-low.c (num_regs, regmap): Remove declarations.
3836 (register_addr): Use the_low_target explicitly.
3837 (fetch_register): Likewise.
3838 (usr_fetch_inferior_registers): Likewise.
3839 (usr_store_inferior_registers): Likewise.
3840 * linux-arm-low.c (num_regs): Remove.
3841 (arm_num_regs): Define.
3842 (arm_regmap): Renamed from regmap, made static.
3843 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
3844 made static.
3845 (arm_cannot_store_register): Renamed from cannot_store_register,
3846 made static.
3847 (the_low_target): New.
3848 * linux-i386-low.c (num_regs): Remove.
3849 (i386_num_regs): Define.
3850 (i386_regmap): Renamed from regmap, made static.
3851 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
3852 made static.
3853 (i386_cannot_store_register): Renamed from cannot_store_register,
3854 made static.
3855 (the_low_target): New.
3856 * linux-ia64-low.c (num_regs): Remove.
3857 (ia64_num_regs): Define.
3858 (ia64_regmap): Renamed from regmap, made static.
3859 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
3860 made static.
3861 (ia64_cannot_store_register): Renamed from cannot_store_register,
3862 made static.
3863 (the_low_target): New.
3864 * linux-m68k-low.c (num_regs): Remove.
3865 (m68k_num_regs): Define.
3866 (m68k_regmap): Renamed from regmap, made static.
3867 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
3868 made static.
3869 (m68k_cannot_store_register): Renamed from cannot_store_register,
3870 made static.
3871 (the_low_target): New.
3872 * linux-mips-low.c (num_regs): Remove.
3873 (mips_num_regs): Define.
3874 (mips_regmap): Renamed from regmap, made static.
3875 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
3876 made static.
3877 (mips_cannot_store_register): Renamed from cannot_store_register,
3878 made static.
3879 (the_low_target): New.
3880 * linux-ppc-low.c (num_regs): Remove.
3881 (ppc_num_regs): Define.
3882 (ppc_regmap): Renamed from regmap, made static.
3883 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
3884 made static.
3885 (ppc_cannot_store_register): Renamed from cannot_store_register,
3886 made static.
3887 (the_low_target): New.
3888 * linux-s390-low.c (num_regs): Remove.
3889 (s390_num_regs): Define.
3890 (s390_regmap): Renamed from regmap, made static.
3891 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
3892 made static.
3893 (s390_cannot_store_register): Renamed from cannot_store_register,
3894 made static.
3895 (the_low_target): New.
3896 * linux-sh-low.c (num_regs): Remove.
3897 (sh_num_regs): Define.
3898 (sh_regmap): Renamed from regmap, made static.
3899 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
3900 made static.
3901 (sh_cannot_store_register): Renamed from cannot_store_register,
3902 made static.
3903 (the_low_target): New.
3904 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
3905 (the_low_target): New.
3906
3907 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3908
3909 * Makefile.in: Add stamp-h target.
3910 * configure.in: Create stamp-h.
3911 * configure: Regenerated.
3912
3913 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3914
3915 * inferiors.c: New file.
3916 * target.c: New file.
3917 * target.h: New file.
3918 * Makefile.in: Add target.o and inferiors.o. Update
3919 dependencies.
3920 * linux-low.c (inferior_pid): New static variable,
3921 moved from server.c.
3922 (linux_create_inferior): Renamed from create_inferior.
3923 Call add_inferior. Return 0 on success instead of a PID.
3924 (linux_attach): Renamed from myattach.
3925 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
3926 (linux_thread_alive): Renamed from mythread_alive.
3927 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
3928 child dies.
3929 (linux_resume): Renamed from myresume. Add missing ``return 0''.
3930 (regsets_store_inferior_registers): Correct error message.
3931 Add missing ``return 0''.
3932 (linux_fetch_registers): Renamed from fetch_inferior_registers.
3933 (linux_store_registers): Renamed from store_inferior_registers.
3934 (linux_read_memory): Renamed from read_inferior_memory.
3935 (linux_write_memory): Renamed from write_inferior_memory.
3936 (linux_target_ops): New structure.
3937 (initialize_low): Call set_target_ops ().
3938 * remote-utils.c (unhexify): New function.
3939 (hexify): New function.
3940 (input_interrupt): Send signals to ``signal_pid''.
3941 * server.c (inferior_pid): Remove.
3942 (start_inferior): Update create_inferior call.
3943 (attach_inferior): Call add_inferior.
3944 (handle_query): New function.
3945 (main): Call handle_query for `q' packets.
3946 * server.h: Include "target.h". Remove obsolete prototypes.
3947 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
3948
3949 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3950
3951 * Makefile.in: Add WARN_CFLAGS. Update configury
3952 dependencies.
3953 * configure.in: Check for <string.h>
3954 * configure: Regenerate.
3955 * config.in: Regenerate.
3956 * gdbreplay.c: Include needed system headers.
3957 (remote_open): Remove strchr prototype.
3958 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
3959 * regcache.c (supply_register): Change buf argument to const void *.
3960 (supply_register_by_name): Likewise.
3961 (collect_register): Change buf argument to void *.
3962 (collect_register_by_name): Likewise.
3963 * regcache.h: Add missing prototypes.
3964 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
3965 * server.c (handle_query): New function.
3966 (attached): New static variable, moved out of main.
3967 (main): Quiet longjmp clobber warnings.
3968 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
3969 * utils.c (error): Remove NORETURN.
3970 (fatal): Likewise.
This page took 0.114611 seconds and 4 git commands to generate.