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