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