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