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