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