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