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