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