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