Commit | Line | Data |
---|---|---|
bc9540e8 PA |
1 | 2015-02-23 Pedro Alves <palves@redhat.com> |
2 | ||
3 | * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit | |
4 | modes. | |
5 | (x86_fill_gregset, x86_store_gregset): Use it when handling | |
6 | $orig_eax. | |
7 | ||
2db9a427 PA |
8 | 2015-02-20 Pedro Alves <palves@redhat.com> |
9 | ||
10 | * thread-db.c: Include "nat/linux-procfs.h". | |
11 | (thread_db_init): Skip listing new threads if the kernel supports | |
12 | PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible. | |
13 | ||
afa8d396 PA |
14 | 2015-02-20 Pedro Alves <palves@redhat.com> |
15 | ||
16 | * linux-low.c (status_pending_p_callback): Use ptid_match. | |
17 | ||
c9587f88 AT |
18 | 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com> |
19 | ||
20 | PR breakpoints/16812 | |
21 | * linux-low.c (wstatus_maybe_breakpoint): Remove. | |
22 | (linux_low_filter_event): Update wstatus_maybe_breakpoint name. | |
23 | (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV. | |
24 | ||
b05ec7a5 AT |
25 | 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com> |
26 | ||
27 | PR breakpoints/15956 | |
28 | * tracepoint.c (cmd_qtinit): Add check for current_thread. | |
29 | ||
d33501a5 MM |
30 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
31 | ||
32 | * linux-low.c (linux_low_btrace_conf): Print size. | |
33 | * server.c (handle_btrace_conf_general_set): New. | |
34 | (hanle_general_set): Call handle_btrace_conf_general_set. | |
35 | (handle_query): Report Qbtrace-conf:bts:size as supported. | |
36 | ||
f4abbc16 MM |
37 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
38 | ||
39 | * linux-low.c (linux_low_enable_btrace): Update parameters. | |
40 | (linux_low_btrace_conf): New. | |
41 | (linux_target_ops)<to_btrace_conf>: Initialize. | |
42 | * server.c (current_btrace_conf): New. | |
43 | (handle_btrace_enable): Rename to ... | |
44 | (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf | |
45 | to target_enable_btrace. Update comment. Update users. | |
46 | (handle_qxfer_btrace_conf): New. | |
47 | (qxfer_packets): Add btrace-conf entry. | |
48 | (handle_query): Report qXfer:btrace-conf:read as supported packet. | |
49 | * target.h (target_ops)<enable_btrace>: Update parameters and comment. | |
50 | (target_ops)<read_btrace_conf>: New. | |
51 | (target_enable_btrace): Update parameters. | |
52 | (target_read_btrace_conf): New. | |
53 | ||
043c3577 MM |
54 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
55 | ||
56 | * server.c (handle_btrace_general_set): Remove call to | |
57 | target_supports_btrace. | |
58 | (supported_btrace_packets): New. | |
59 | (handle_query): Call supported_btrace_packets. | |
60 | * target.h: include btrace-common.h. | |
61 | (btrace_target_info): Removed. | |
62 | (supports_btrace, target_supports_btrace): Update parameters. | |
63 | ||
734b0e4b MM |
64 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
65 | ||
66 | * Makefile.in (SFILES): Add common/btrace-common.c. | |
67 | (OBS): Add common/btrace-common.o. | |
68 | (btrace-common.o): Add build rules. | |
69 | * linux-low: Include btrace-common.h. | |
70 | (linux_low_read_btrace): Use struct btrace_data. Call | |
71 | btrace_data_init and btrace_data_fini. | |
72 | ||
d6c146e9 PA |
73 | 2015-02-06 Pedro Alves <palves@redhat.com> |
74 | ||
75 | * thread-db.c (find_new_threads_callback): Add debug output. | |
76 | ||
20ba1ce6 PA |
77 | 2015-02-04 Pedro Alves <palves@redhat.com> |
78 | ||
79 | * linux-low.c (handle_extended_wait): Don't resume LWPs here. | |
80 | (resume_stopped_resumed_lwps): New function. | |
81 | (linux_wait_for_event_filtered): Use it. | |
82 | ||
8cc73a39 SDJ |
83 | 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com> |
84 | ||
85 | * Makefile.in (SFILES): Add linux-personality.c. | |
86 | (linux-personality.o): New rule. | |
87 | * configure.srv (srv_linux_obj): Add linux-personality.o to the | |
88 | list of objects to be built. | |
89 | * linux-low.c: Include nat/linux-personality.h. | |
90 | (linux_create_inferior): Remove code to disable address space | |
91 | randomization (moved to ../nat/linux-personality.c). Create | |
92 | cleanup to disable address space randomization. | |
93 | ||
fb23d554 SDJ |
94 | 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com> |
95 | ||
96 | * Makefile.in (posix-strerror.o): New rule. | |
97 | (mingw-strerror.o): Likewise. | |
98 | * configure: Regenerated. | |
99 | * configure.ac: Source file ../common/common.host. Initialize new | |
100 | variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES. | |
101 | ||
cdf43629 YQ |
102 | 2015-01-14 Yao Qi <yao@codesourcery.com> |
103 | ||
104 | * Makefile.in (SFILES): Add nat/ppc-linux.c. | |
105 | (ppc-linux.o): New rule. | |
106 | * configure.srv (powerpc*-*-linux*): Add ppc-linux.o. | |
107 | * configure.ac: AC_CHECK_FUNCS(getauxval). | |
108 | * config.in: Re-generated. | |
109 | * configure: Re-generated. | |
110 | * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call | |
111 | ppc64_64bit_inferior_p | |
112 | ||
514c5338 YQ |
113 | 2015-01-14 Yao Qi <yao@codesourcery.com> |
114 | ||
115 | * linux-ppc-low.c: Include "nat/ppc-linux.h". | |
116 | (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h. | |
117 | (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise. | |
118 | (PT_ORIG_R3, PT_TRAP): Likewise. | |
119 | (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise. | |
120 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise. | |
121 | (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise. | |
122 | ||
3368c1e5 JB |
123 | 2015-01-10 Joel Brobecker <brobecker@adacore.com> |
124 | ||
125 | * i387-fp.c (i387_cache_to_xsave): In look over | |
126 | num_avx512_zmmh_high_registers, replace use of struct i387_xsave | |
127 | zmmh_low_space field by use of zmmh_high_space. | |
128 | ||
582511be PA |
129 | 2015-01-09 Pedro Alves <palves@redhat.com> |
130 | ||
131 | * linux-low.c (step_over_bkpt): Move higher up in the file. | |
132 | (handle_extended_wait): Don't store the stop_pc here. | |
133 | (get_stop_pc): Adjust comments and rename to ... | |
134 | (check_stopped_by_breakpoint): ... this. Record whether the LWP | |
135 | stopped for a software breakpoint or hardware breakpoint. | |
136 | (thread_still_has_status_pending_p): New function. | |
137 | (status_pending_p_callback): Use | |
138 | thread_still_has_status_pending_p. If the event is no longer | |
139 | interesting, resume the LWP. | |
140 | (handle_tracepoints): Add assert. | |
141 | (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call. | |
142 | (wstatus_maybe_breakpoint): New function. | |
143 | (cancel_breakpoint): Delete function. | |
144 | (check_stopped_by_watchpoint): New function, factored out from | |
145 | linux_low_filter_event. | |
146 | (lp_status_maybe_breakpoint): Delete function. | |
147 | (linux_low_filter_event): Remove filter_ptid argument. | |
148 | Leave thread group exits pending here. Store the LWP's stop PC. | |
149 | Always leave events pending. | |
150 | (linux_wait_for_event_filtered): Pull all events out of the | |
151 | kernel, and leave them all pending. | |
152 | (count_events_callback, select_event_lwp_callback): Consider all | |
153 | events. | |
154 | (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete. | |
155 | (select_event_lwp): Only give preference to the stepping LWP in | |
156 | all-stop mode. Adjust comments. | |
157 | (ignore_event): New function. | |
158 | (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove | |
159 | references to cancel_breakpoints. Adjust to renames. Also give | |
160 | equal priority to all LWPs that have had events in non-stop mode. | |
161 | If reporting a software breakpoint event, unadjust the LWP's PC. | |
162 | (linux_wait): If linux_wait_1 returned an ignored event, retry. | |
163 | (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): | |
164 | Adjust. | |
165 | (linux_resume_one_lwp): Store the LWP's PC. Adjust. | |
166 | (resume_status_pending_p): Use thread_still_has_status_pending_p. | |
167 | (linux_stopped_by_watchpoint): Adjust. | |
168 | (linux_target_ops): Remove reference to linux_cancel_breakpoints. | |
169 | * linux-low.h (enum lwp_stop_reason): New. | |
170 | (struct lwp_info) <stop_pc>: Adjust comment. | |
171 | <stopped_by_watchpoint>: Delete field. | |
172 | <stop_reason>: New field. | |
173 | * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust. | |
174 | * mem-break.c (software_breakpoint_inserted_here) | |
175 | (hardware_breakpoint_inserted_here): New function. | |
176 | * mem-break.h (software_breakpoint_inserted_here) | |
177 | (hardware_breakpoint_inserted_here): Declare. | |
178 | * target.h (struct target_ops) <cancel_breakpoints>: Remove field. | |
179 | (cancel_breakpoints): Delete. | |
180 | * tracepoint.c (clear_installed_tracepoints, stop_tracing) | |
181 | (upload_fast_traceframes): Remove references to | |
182 | cancel_breakpoints. | |
183 | ||
a33e3959 PA |
184 | 2015-01-09 Pedro Alves <palves@redhat.com> |
185 | ||
186 | * thread-db.c (find_new_threads_callback): Ignore thread if the | |
187 | kernel thread ID is -1. | |
188 | ||
8784d563 PA |
189 | 2015-01-09 Pedro Alves <palves@redhat.com> |
190 | ||
191 | * linux-low.c (linux_attach_fail_reason_string): Move to | |
192 | nat/linux-ptrace.c, and rename. | |
193 | (linux_attach_lwp): Update comment. | |
194 | (attach_proc_task_lwp_callback): New function. | |
195 | (linux_attach): Adjust to rename and use | |
196 | linux_proc_attach_tgid_threads. | |
197 | (linux_attach_fail_reason_string): Delete declaration. | |
198 | ||
76f2b779 JB |
199 | 2015-01-01 Joel Brobecker <brobecker@adacore.com> |
200 | ||
201 | * gdbreplay.c (gdbreplay_version): Update copyright year to 2015. | |
202 | * server.c (gdbserver_version): Likewise. | |
203 | ||
fafcc06a SDJ |
204 | 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com> |
205 | ||
206 | * remote-utils.c: Include ctype.h. | |
207 | (input_interrupt): Explicitly handle the case when the char | |
208 | received is the NUL byte. Improve the printing of non-ASCII | |
209 | characters. | |
210 | ||
beed38b8 JB |
211 | 2014-12-16 Joel Brobecker <brobecker@adacore.com> |
212 | ||
213 | * linux-low.c (linux_low_filter_event): Update call to | |
214 | linux_enable_event_reporting following the addition of | |
215 | a new parameter to that function. | |
216 | ||
bf330350 CU |
217 | 2014-12-16 Catalin Udma <catalin.udma@freescale.com> |
218 | ||
219 | PR server/17457 | |
220 | * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define. | |
221 | (AARCH64_FPCR_REGNO): Likewise. | |
222 | (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers. | |
223 | (aarch64_fill_fpregset): Add missing fpsr/fpcr registers. | |
224 | (aarch64_store_fpregset): Likewise. | |
225 | ||
5227d625 JB |
226 | 2014-12-15 Joel Brobecker <brobecker@adacore.com> |
227 | ||
228 | * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1. | |
229 | Remove FIXME comment about assumption about N. | |
230 | ||
f93b65a0 JB |
231 | 2014-12-13 Joel Brobecker <brobecker@adacore.com> |
232 | ||
233 | * configure.ac: If large-file support is disabled in GDBserver, | |
234 | pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib". | |
235 | * configure: Regenerate. | |
236 | ||
e5a9158d AA |
237 | 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
238 | ||
239 | * linux-low.c (regsets_fetch_inferior_registers): Suppress the | |
240 | warning upon ENODATA from ptrace. | |
241 | * linux-s390-low.c (s390_store_tdb): New. | |
242 | (s390_regsets): Add regset for NT_S390_TDB. | |
243 | ||
feea5f36 AA |
244 | 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
245 | ||
246 | * linux-low.c (regsets_store_inferior_registers): Skip regsets | |
247 | without a fill_function. | |
248 | * linux-s390-low.c (s390_fill_last_break): Remove. | |
249 | (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK. | |
250 | (s390_arch_setup): Use regset's size instead of fill_function for | |
251 | loop end condition. | |
252 | ||
098dbe61 AA |
253 | 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
254 | ||
255 | * linux-low.c (regsets_fetch_inferior_registers): Do not invoke | |
256 | the regset's store function when ptrace returned an error. | |
257 | * regcache.c (get_thread_regcache): Invalidate register cache | |
258 | before fetching inferior's registers. | |
259 | ||
28eef672 AA |
260 | 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
261 | ||
262 | * linux-low.c (regsets_fetch_inferior_registers): Rephrase | |
263 | while-loop as for-loop. | |
264 | (regsets_store_inferior_registers): Likewise. | |
265 | ||
bdca27a2 YQ |
266 | 2014-11-28 Yao Qi <yao@codesourcery.com> |
267 | ||
268 | * configure.ac(AC_CHECK_FUNCS): Remove readlink. | |
269 | * config.in, configure: Re-generate. | |
270 | * hostio.c (handle_unlink): Remove code checking HAVE_READLINK | |
271 | is defined. | |
272 | ||
9c232dda YQ |
273 | 2014-11-21 Yao Qi <yao@codesourcery.com> |
274 | ||
275 | * configure.ac: Don't invoke AC_FUNC_ALLOCA. | |
276 | (AC_CHECK_HEADERS): Remove malloc.h. | |
277 | * configure: Re-generated. | |
278 | * config.in: Re-generated. | |
279 | * server.h: Don't include alloca.h and malloc.h. | |
280 | * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined. | |
281 | Don't include malloc.h. | |
282 | ||
43968415 JB |
283 | 2014-11-17 Joel Brobecker <brobecker@adacore.com> |
284 | ||
285 | * lynx-low.c (lynx_write_memory): Put lynx_read_memory and | |
286 | corresponding ERRNO check in same block. | |
287 | ||
40e91bc7 PA |
288 | 2014-11-12 Pedro Alves <palves@redhat.com> |
289 | ||
290 | * server.c (cont_thread): Update comment. | |
291 | (start_inferior, attach_inferior): No longer clear cont_thread. | |
292 | (handle_v_cont): No longer set cont_thread. | |
293 | (captured_main): Clear cont_thread each time a GDB connects. | |
294 | ||
c2c118cf PA |
295 | 2014-11-12 Pedro Alves <palves@redhat.com> |
296 | ||
297 | * linux-low.c (linux_wait_1): Don't force a wait for the Hc | |
298 | thread, and don't resume all threads if the Hc thread has exited. | |
299 | ||
78708b7c PA |
300 | 2014-11-12 Pedro Alves <palves@redhat.com> |
301 | ||
302 | * linux-low.c (linux_request_interrupt): Always send a SIGINT to | |
303 | the process group instead of to a specific LWP. | |
304 | ||
a2abc7de PA |
305 | 2014-10-15 Pedro Alves <palves@redhat.com> |
306 | ||
307 | PR server/17487 | |
308 | * win32-arm-low.c (arm_set_thread_context): Remove current_event | |
309 | parameter. | |
310 | (arm_set_thread_context): Delete. | |
311 | (the_low_target): Adjust. | |
312 | * win32-i386-low.c (debug_registers_changed) | |
313 | (debug_registers_used): Delete. | |
314 | (update_debug_registers_callback): New function. | |
315 | (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as | |
316 | needing to update their debug registers. | |
317 | (win32_get_current_dr): New function. | |
318 | (x86_dr_low_get_addr, x86_dr_low_get_control) | |
319 | (x86_dr_low_get_status): Fetch the debug register from the thread | |
320 | record's context. | |
321 | (i386_initial_stuff): Adjust. | |
322 | (i386_get_thread_context): Remove current_event parameter. Don't | |
323 | clear debug_registers_changed nor copy DR values to | |
324 | debug_reg_state. | |
325 | (i386_set_thread_context): Delete. | |
326 | (i386_prepare_to_resume): New function. | |
327 | (i386_thread_added): Mark the thread as needing to update irs | |
328 | debug registers. | |
329 | (the_low_target): Remove i386_set_thread_context and install | |
330 | i386_prepare_to_resume. | |
331 | * win32-low.c (win32_get_thread_context): Adjust. | |
332 | (win32_set_thread_context): Use SetThreadContext | |
333 | directly. | |
334 | (win32_prepare_to_resume): New function. | |
335 | (win32_require_context): New function, factored out from ... | |
336 | (thread_rec): ... this. | |
337 | (continue_one_thread): Call win32_prepare_to_resume on each thread | |
338 | we're about to continue. | |
339 | (win32_resume): Call win32_prepare_to_resume on the event thread. | |
340 | * win32-low.h (struct win32_thread_info) | |
341 | <debug_registers_changed>: New field. | |
342 | (struct win32_target_ops): Change prototype of set_thread_context, | |
343 | delete set_thread_context and add prepare_to_resume. | |
344 | (win32_require_context): New declaration. | |
345 | ||
a442d071 GB |
346 | 2014-10-08 Gary Benson <gbenson@redhat.com> |
347 | ||
348 | * server.h: Do not include common-exceptions.h. | |
349 | ||
6f1947e8 GB |
350 | 2014-10-08 Gary Benson <gbenson@redhat.com> |
351 | ||
352 | * server.h: Do not include cleanups.h. | |
353 | ||
63b434a4 JH |
354 | 2014-09-30 James Hogan <james.hogan@imgtec.com> |
355 | ||
356 | * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and | |
357 | mips64-dsp-linux.c. | |
358 | ||
c4d9ceb6 YQ |
359 | 2014-09-23 Yao Qi <yao@codesourcery.com> |
360 | ||
361 | * linux-low.c (lp_status_maybe_breakpoint): New function. | |
362 | (linux_low_filter_event): Call lp_status_maybe_breakpoint. | |
363 | (count_events_callback): Likewise. | |
364 | (select_event_lwp_callback): Likewise. | |
365 | (cancel_breakpoints_callback): Likewise. | |
366 | ||
89a5711c DB |
367 | 2014-09-19 Don Breazeal <donb@codesourcery.com> |
368 | ||
369 | * linux-low.c (handle_extended_wait): Call | |
370 | linux_ptrace_get_extended_event. | |
371 | (get_stop_pc, get_detach_signal, linux_low_filter_event): Call | |
372 | linux_is_extended_waitstatus. | |
373 | ||
bffc0964 JB |
374 | 2014-09-16 Joel Brobecker <brobecker@adacore.com> |
375 | ||
376 | * Makefile.in (CPPFLAGS): Define. | |
377 | (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}. | |
378 | (IPAGENT_CFLAGS): Remove ${CPPFLAGS}. | |
379 | ||
0bfdf32f GB |
380 | 2014-09-16 Gary Benson <gbenson@redhat.com> |
381 | ||
382 | * inferiors.h (current_inferior): Renamed as... | |
383 | (current_thread): New variable. All uses updated. | |
384 | * linux-low.c (get_pc): Renamed saved_inferior as saved_thread. | |
385 | (maybe_move_out_of_jump_pad): Likewise. | |
386 | (cancel_breakpoint): Likewise. | |
387 | (linux_low_filter_event): Likewise. | |
388 | (wait_for_sigstop): Likewise. | |
389 | (linux_resume_one_lwp): Likewise. | |
390 | (need_step_over_p): Likewise. | |
391 | (start_step_over): Likewise. | |
392 | (linux_stabilize_threads): Renamed save_inferior as saved_thread. | |
393 | * linux-x86-low.c (x86_linux_update_xmltarget): Likewise. | |
394 | * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread | |
395 | and save_inferior as saved_thread. | |
396 | * regcache.c (get_thread_regcache): Renamed saved_inferior as | |
397 | saved_thread. | |
398 | (regcache_invalidate_thread): Likewise. | |
399 | * remote-utils.c (prepare_resume_reply): Likewise. | |
400 | * thread-db.c (thread_db_get_tls_address): Likewise. | |
401 | (disable_thread_event_reporting): Likewise. | |
402 | (remove_thread_event_breakpoints): Likewise. | |
403 | * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior | |
404 | as saved_thread. | |
405 | * target.h (set_desired_inferior): Renamed as... | |
406 | (set_desired_thread): New declaration. All uses updated. | |
407 | * server.c (myresume): Updated comment to reference thread instead | |
408 | of inferior. | |
409 | (handle_serial_event): Likewise. | |
410 | (handle_target_event): Likewise. | |
411 | ||
361c8ade GB |
412 | 2014-09-12 Tom Tromey <tromey@redhat.com> |
413 | Gary Benson <gbenson@redhat.com> | |
414 | ||
415 | * regcache.h: Include common-regcache.h. | |
416 | (regcache_read_pc): Don't declare. | |
417 | * regcache.c (get_thread_regcache_for_ptid): New function. | |
418 | ||
bd9269f7 GB |
419 | 2014-09-11 Tom Tromey <tromey@redhat.com> |
420 | Gary Benson <gbenson@redhat.com> | |
421 | ||
422 | * symbol.c: New file. | |
423 | * Makefile.in (SFILES): Add symbol.c. | |
424 | (OBS): Add symbol.o. | |
425 | ||
f8c1d06b GB |
426 | 2014-09-11 Gary Benson <gbenson@redhat.com> |
427 | ||
428 | * target.c (target_stop_ptid, target_continue_ptid): New | |
429 | functions. | |
430 | ||
721ec300 GB |
431 | 2014-09-11 Tom Tromey <tromey@redhat.com> |
432 | Gary Benson <gbenson@redhat.com> | |
433 | ||
434 | * target.h: Include target/target.h. | |
435 | * target.c (target_read_memory, target_read_uint32) | |
436 | (target_write_memory): New functions. | |
437 | ||
c5e92cca GB |
438 | 2014-09-11 Gary Benson <gbenson@redhat.com> |
439 | ||
440 | * server.h (debug_hw_points): Don't declare. | |
441 | * server.c (debug_hw_points): Don't define. Replace all uses | |
442 | with show_debug_regs. | |
443 | * linux-aarch64-low.c (debug_hw_points): Don't define. Replace | |
444 | all uses with show_debug_regs. | |
445 | ||
2e4bb98a EBM |
446 | 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> |
447 | ||
448 | * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take | |
449 | endianness into account. | |
450 | (ppc_supply_ptrace_register): Likewise. | |
451 | ||
ac740bc7 JH |
452 | 2014-09-03 James Hogan <james.hogan@imgtec.com> |
453 | ||
454 | * linux-mips-low.c (mips_read_description): Reset errno to 0 prior | |
455 | to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call. | |
456 | ||
97ea6506 GB |
457 | 2014-09-03 Gary Benson <gbenson@redhat.com> |
458 | ||
459 | * linux-x86-low.c (x86_linux_prepare_to_resume): Use | |
460 | ALL_DEBUG_ADDRESS_REGISTERS. | |
461 | ||
df7e5265 GB |
462 | 2014-09-02 Gary Benson <gbenson@redhat.com> |
463 | ||
464 | * i386-low.h: Renamed as... | |
465 | * x86-low.h: New file. All type, function and variable name | |
466 | prefixes changed from "i386_" to "x86_". All references updated. | |
467 | * i386-low.c: Renamed as... | |
468 | * x86-low.c: New file. All type, function and variable name | |
469 | prefixes changed from "i386_" to "x86_". All references updated. | |
470 | ||
ed859da7 GB |
471 | 2014-09-02 Gary Benson <gbenson@redhat.com> |
472 | ||
473 | * linux-x86-low.c (x86_linux_new_process): Use XCNEW. | |
474 | (x86_linux_new_thread): Likewise. | |
475 | ||
860789c7 GB |
476 | 2014-08-29 Gary Benson <gbenson@redhat.com> |
477 | ||
478 | * server.h (setjmp.h): Do not include. | |
479 | (toplevel): Do not declare. | |
480 | (common-exceptions.h): Include. | |
481 | (cleanups.h): Likewise. | |
482 | * server.c (toplevel): Do not define. | |
483 | (exit_code): New static global. | |
484 | (detach_or_kill_for_exit_cleanup): New function. | |
485 | (main): New function. Original main renamed to... | |
486 | (captured_main): New function. | |
487 | * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror. | |
488 | ||
ff55e1b5 GB |
489 | 2014-08-29 Gary Benson <gbenson@redhat.com> |
490 | ||
491 | * Makefile.in (SFILES): Add common/common-exceptions.c. | |
492 | (OBS): Add common-exceptions.o. | |
493 | (common-exceptions.o): New rule. | |
494 | * utils.c (prepare_to_throw_exception): New function. | |
495 | ||
e9bcb658 GB |
496 | 2014-08-29 Gary Benson <gbenson@redhat.com> |
497 | ||
498 | * config.in: Regenerate. | |
499 | * configure: Likewise. | |
500 | ||
e3180625 GB |
501 | 2014-08-29 Gary Benson <gbenson@redhat.com> |
502 | ||
503 | * Makefile.in (SFILES): Add common/cleanups.c. | |
504 | (OBS): cleanups.o. | |
505 | (cleanups.o): New rule. | |
506 | ||
e3d6ba5d GB |
507 | 2014-08-29 Gary Benson <gbenson@redhat.com> |
508 | ||
509 | * utils.c (internal_vwarning): New function. | |
510 | ||
7096e886 GB |
511 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
512 | ||
513 | * utils.h (fatal): Remove declaration. | |
514 | * utils.c (fatal): Remove function. | |
515 | ||
14ce3192 GB |
516 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
517 | ||
518 | * tracepoint.c (gdb_agent_init): Replace fatal with | |
519 | perror_with_name. | |
520 | (initialize_tracepoint): Likewise. | |
521 | ||
50278d59 GB |
522 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
523 | ||
524 | * remote-utils.c (remote_prepare): Replace fatal with error. | |
525 | ||
aa96c426 GB |
526 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
527 | ||
528 | * linux-low.c (linux_async): Replace fatal with warning. | |
529 | Tidy up and return. | |
530 | (linux_start_non_stop): Return -1 if linux_async failed. | |
531 | ||
f7160e97 GB |
532 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
533 | ||
534 | * linux-x86-low.c (i386_dr_low_set_addr): Replace check with | |
535 | gdb_assert. | |
536 | (i386_dr_low_get_addr): Remove vague comment. | |
537 | * win32-i386-low.c (i386_dr_low_set_addr): Replace check with | |
538 | gdb_assert. | |
539 | ||
38e08fca GB |
540 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
541 | ||
542 | * inferiors.c (get_thread_process): Replace check with gdb_assert. | |
543 | * linux-low.c (linux_wait_for_event_filtered): Replace fatal with | |
544 | internal_error. | |
545 | (linux_resume_one_lwp): Likewise. | |
546 | * linux-x86-low.c (x86_siginfo_fixup): Replace checks with | |
547 | gdb_assert. | |
548 | * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal | |
549 | with internal_error. | |
550 | * regcache.c (get_thread_regcache): Replace check with gdb_assert. | |
551 | (init_register_cache): Replace fatal with gdb_assert_not_reached. | |
552 | (find_register_by_name): Replace fatal with internal_error. | |
553 | (find_regno): Likewise. | |
554 | * tdesc.c (init_target_desc): Replace check with gdb_assert. | |
555 | * thread-db.c (thread_db_create_event): Likewise. | |
556 | (thread_db_load_search): Likewise. | |
557 | (try_thread_db_load_1): Likewise. | |
558 | * tracepoint.c (get_jump_space_head): Replace fatal with | |
559 | internal_error. | |
560 | (claim_trampoline_space): Likewise. | |
561 | (have_fast_tracepoint_trampoline_buffer): Likewise. | |
562 | (cmd_qtstart): Likewise. | |
563 | (stop_tracing): Likewise. | |
564 | (fast_tracepoint_collecting): Likewise. | |
565 | (target_malloc): Likewise. | |
566 | (download_tracepoint): Likewise. | |
567 | (download_trace_state_variables): Replace check with gdb_assert. | |
568 | (upload_fast_traceframes): Replace fatal with internal_error. | |
569 | ||
34abf635 GB |
570 | 2014-08-19 Tom Tromey <tromey@redhat.com> |
571 | Gary Benson <gbenson@redhat.com> | |
572 | ||
573 | * Makefile.in (SFILES): Add common/common-debug.c. | |
574 | (OBS): Add common-debug.o. | |
575 | (common-debug.o): New rule. | |
576 | * debug.h (debug_printf): Don't declare. | |
577 | * debug.c (debug_printf): Renamed and rewritten as... | |
578 | (debug_vprintf): New function. | |
579 | ||
f6e94d78 GB |
580 | 2014-08-19 Gary Benson <gbenson@redhat.com> |
581 | ||
582 | * utils.h: Do not include print-utils.h. | |
583 | ||
9239eeab GB |
584 | 2014-08-19 Tom Tromey <tromey@redhat.com> |
585 | Gary Benson <gbenson@redhat.com> | |
586 | ||
587 | * server.h: Add static assertion. | |
588 | (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove. | |
589 | ||
ef87c8bb GB |
590 | 2014-08-19 Tom Tromey <tromey@redhat.com> |
591 | Gary Benson <gbenson@redhat.com> | |
592 | ||
593 | * Makefile.in (SFILES): Add common/errors.c. | |
594 | (OBS): Add errors.o. | |
595 | (IPA_OBS): Add errors-ipa.o. | |
596 | (errors.o): New rule. | |
597 | (errors-ipa.o): Likewise. | |
598 | * utils.h (perror_with_name, error, warning): Don't declare. | |
599 | * utils.c (warning): Renamed and rewritten as... | |
600 | (vwarning): New function. | |
601 | (error): Renamed and rewritten as... | |
602 | (verror): New function. | |
603 | (internal_error): Renamed and rewritten as... | |
604 | (internal_verror): New function. | |
605 | ||
bb974a24 GB |
606 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
607 | ||
608 | * configure.ac (AC_CHECK_HEADERS): Remove errno.h. | |
609 | * configure: Regenerate. | |
610 | * config.in: Likewise. | |
611 | * server.h: Do not include errno.h. | |
612 | * event-loop.c: Likewise. | |
613 | * hostio-errno.c: Likewise. | |
614 | * linux-low.c: Likewise. | |
615 | * remote-utils.c: Likewise. | |
616 | * spu-low.c: Likewise. | |
617 | * utils.c: Likewise. | |
618 | * gdbreplay.c: Unconditionally include errno.h. | |
619 | ||
6d3d12eb GB |
620 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
621 | ||
622 | * server.h: Do not include string.h. | |
623 | * event-loop.c: Likewise. | |
624 | * linux-low.c: Likewise. | |
625 | * regcache.c: Likewise. | |
626 | * remote-utils.c: Likewise. | |
627 | * spu-low.c: Likewise. | |
628 | * utils.c: Likewise. | |
629 | ||
dccbb609 GB |
630 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
631 | ||
632 | * server.h: Do not include gdb_assert.h. | |
633 | ||
e76df0d0 GB |
634 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
635 | ||
636 | * server.h: Do not include common-utils.h. | |
637 | ||
4cb9c816 GB |
638 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
639 | ||
640 | * server.h: Do not include ptid.h. | |
641 | * notif.h: Likewise. | |
642 | ||
3995eeee GB |
643 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
644 | ||
645 | * server.h: Do not include gdb_locale.h. | |
646 | ||
cb9f1a9b GB |
647 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
648 | ||
649 | * server.h: Do not include gdb/signals.h. | |
650 | * win32-low.c: Likewise. | |
651 | ||
a5fceff8 GB |
652 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
653 | ||
654 | * server.h: Do not include pathmax.h. | |
655 | ||
b9391142 GB |
656 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
657 | ||
658 | * server.h: Do not include libiberty.h. | |
659 | * linux-bfin-low.c: Likewise. | |
660 | ||
0e443c87 GB |
661 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
662 | ||
663 | * server.h: Do not include ansidecl.h. | |
664 | ||
8ebb3f56 GB |
665 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
666 | ||
667 | * linux-x86-low.c: Do not include stddef.h. | |
668 | * lynx-ppc-low.c: Likewise. | |
669 | * tracepoint.c: Likewise. | |
670 | ||
8980bdf6 GB |
671 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
672 | ||
673 | * server.h: Do not include stdarg.h. | |
674 | * nto-low.c: Likewise. | |
675 | ||
d7096f71 GB |
676 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
677 | ||
678 | * server.h: Do not include stdlib.h. | |
679 | * inferiors.c: Likewise. | |
680 | * linux-low.c: Likewise. | |
681 | * regcache.c: Likewise. | |
682 | * spu-low.c: Likewise. | |
683 | * tracepoint.c: Likewise. | |
684 | * utils.c: Likewise. | |
685 | ||
d02f550d GB |
686 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
687 | ||
688 | * server.h: Do not include stdio.h. | |
689 | * linux-low.c: Likewise. | |
690 | * remote-utils.c: Likewise. | |
691 | * spu-low.c: Likewise. | |
692 | * utils.c: Likewise. | |
693 | * wincecompat.c: Likewise. | |
694 | ||
87f6c4e3 GB |
695 | 2014-08-06 Gary Benson <gbenson@redhat.com> |
696 | ||
697 | * regcache.c (init_register_cache): Move conditionals inside if. | |
698 | ||
7089dca4 GB |
699 | 2014-08-06 Gary Benson <gbenson@redhat.com> |
700 | ||
701 | * linux-low.c (linux_supports_non_stop): Use target_is_async_p. | |
702 | ||
462f517e GB |
703 | 2014-07-31 Gary Benson <gbenson@redhat.com> |
704 | ||
705 | * ax.h: Do not include server.h. | |
706 | * gdbthread.h: Likewise. | |
707 | * lynx-low.h: Likewise. | |
708 | * notif.h: Likewise. | |
709 | ||
976411d6 GB |
710 | 2014-07-30 Gary Benson <gbenson@redhat.com> |
711 | ||
712 | * server.h: Include common-defs.h. | |
713 | Do not include config.h or build-gnulib-gdbserver/config.h. | |
714 | ||
d41f6d8e GB |
715 | 2014-07-30 Gary Benson <gbenson@redhat.com> |
716 | ||
717 | * hostio-errno.c: Move server.h to top of includes list. | |
718 | * inferiors.c: Likewise. | |
719 | * linux-x86-low.c: Likewise. | |
720 | * notif.c: Include server.h. | |
721 | ||
314c6a35 TT |
722 | 2014-07-24 Tom Tromey <tromey@redhat.com> |
723 | Gary Benson <gbenson@redhat.com> | |
724 | ||
725 | * server.h (CORE_ADDR): Now unsigned. | |
726 | ||
69ff6be5 PA |
727 | 2014-07-16 Pedro Alves <palves@redhat.com> |
728 | ||
729 | * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill. | |
730 | ||
ce9e3fe7 PA |
731 | 2014-07-15 Pedro Alves <palves@redhat.com> |
732 | ||
733 | * linux-low.c (linux_kill_one_lwp): Save errno and work with saved | |
734 | copy. | |
735 | ||
e76126e8 PA |
736 | 2014-07-11 Pedro Alves <palves@redhat.com> |
737 | ||
738 | * linux-low.c (kill_wait_lwp): New function, based on | |
739 | kill_one_lwp_callback, but use my_waitpid directly. | |
740 | (kill_one_lwp_callback, linux_kill): Use it. | |
741 | ||
8e9db26e PA |
742 | 2014-06-23 Pedro Alves <palves@redhat.com> |
743 | ||
744 | * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL | |
745 | before setting DR0..DR3. | |
746 | ||
698b3e08 GB |
747 | 2014-06-20 Gary Benson <gbenson@redhat.com> |
748 | ||
749 | * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed. | |
750 | * configure: Regenerated. | |
751 | * config.in: Likewise. | |
752 | ||
125f8a3d GB |
753 | 2014-06-20 Gary Benson <gbenson@redhat.com> |
754 | ||
755 | * Makefile.in (SFILES): Update locations for files moved | |
756 | from common to nat. | |
757 | (object file files): Reordered. | |
758 | ||
42995dbd GB |
759 | 2014-06-20 Gary Benson <gbenson@redhat.com> |
760 | ||
761 | * i386-low.h (i386_dr_low_can_set_addr): Removed. | |
762 | (i386_dr_low_set_addr): Likewise. | |
763 | (i386_dr_low_get_addr): Likewise. | |
764 | (i386_dr_low_can_set_control): Likewise. | |
765 | (i386_dr_low_set_control): Likewise. | |
766 | (i386_dr_low_get_control): Likewise. | |
767 | (i386_dr_low_get_status): Likewise. | |
768 | (i386_get_debug_register_length): Likewise. | |
769 | * linux-x86-low.c (i386_dr_low_set_addr): | |
770 | Changed signature. Made static. | |
771 | (i386_dr_low_get_addr): Likewise. | |
772 | (i386_dr_low_set_control): Likewise. | |
773 | (i386_dr_low_get_control): Likewise. | |
774 | (i386_dr_low_get_status): Likewise. | |
775 | (i386_dr_low): New global variable. | |
776 | * win32-i386-low.c (i386_dr_low_set_addr): | |
777 | Changed signature. Made static. | |
778 | (i386_dr_low_get_addr): Likewise. | |
779 | (i386_dr_low_set_control): Likewise. | |
780 | (i386_dr_low_get_control): Likewise. | |
781 | (i386_dr_low_get_status): Likewise. | |
782 | (i386_dr_low): New global variable. | |
783 | ||
e1d2394b MS |
784 | 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com> |
785 | ||
786 | * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar). | |
787 | * Makefile.in (AR, AR_FLAGS): Define. | |
788 | * configure: Regenerate. | |
789 | ||
3a8ee006 GB |
790 | 2014-06-19 Gary Benson <gbenson@redhat.com> |
791 | ||
792 | * Makefile.in (i386-dregs.o): New rule. | |
793 | * configure.srv: Add i386-dregs.o to all targets using i386-low.o. | |
794 | * i386-low.c (target.h): Remove include. | |
795 | (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c. | |
796 | (DR_CONTROL_SHIFT): Likewise. | |
797 | (DR_CONTROL_SIZE): Likewise. | |
798 | (DR_RW_EXECUTE): Likewise. | |
799 | (DR_RW_WRITE): Likewise. | |
800 | (DR_RW_READ): Likewise. | |
801 | (DR_RW_IORW): Likewise. | |
802 | (DR_LEN_1): Likewise. | |
803 | (DR_LEN_2): Likewise. | |
804 | (DR_LEN_4): Likewise. | |
805 | (DR_LEN_8): Likewise. | |
806 | (DR_LOCAL_ENABLE_SHIFT): Likewise. | |
807 | (DR_GLOBAL_ENABLE_SHIFT): Likewise. | |
808 | (DR_ENABLE_SIZE): Likewise. | |
809 | (DR_LOCAL_SLOWDOWN): Likewise. | |
810 | (DR_GLOBAL_SLOWDOWN): Likewise. | |
811 | (DR_CONTROL_RESERVED): Likewise. | |
812 | (I386_DR_CONTROL_MASK): Likewise. | |
813 | (I386_DR_VACANT): Likewise. | |
814 | (I386_DR_LOCAL_ENABLE): Likewise. | |
815 | (I386_DR_GLOBAL_ENABLE): Likewise. | |
816 | (I386_DR_DISABLE): Likewise. | |
817 | (I386_DR_SET_RW_LEN): Likewise. | |
818 | (I386_DR_GET_RW_LEN): Likewise. | |
819 | (I386_DR_WATCH_HIT): Likewise. | |
820 | (i386_wp_op_t): Likewise. | |
821 | (i386_show_dr): Likewise. | |
822 | (i386_length_and_rw_bits): Likewise. | |
823 | (i386_insert_aligned_watchpoint): Likewise. | |
824 | (i386_remove_aligned_watchpoint): Likewise. | |
825 | (i386_handle_nonaligned_watchpoint): Likewise. | |
826 | i386_update_inferior_debug_regs(): Likewise. | |
827 | (i386_dr_insert_watchpoint): Likewise. | |
828 | (i386_dr_remove_watchpoint): Likewise. | |
829 | (i386_dr_region_ok_for_watchpoint): Likewise. | |
830 | (i386_dr_stopped_data_address): Likewise. | |
831 | (i386_dr_stopped_by_watchpoint): Likewise. | |
832 | ||
8f26655c GB |
833 | 2014-06-19 Gary Benson <gbenson@redhat.com> |
834 | ||
835 | * i386-low.c (i386_dr_show): Renamed to | |
836 | i386_show_dr and made static. All uses updated. | |
837 | (i386_dr_length_and_rw_bits): Renamed to | |
838 | i386_length_and_rw_bits and made static. | |
839 | All uses updated. | |
840 | (i386_dr_insert_aligned_watchpoint): Renamed to | |
841 | i386_insert_aligned_watchpoint and made static. | |
842 | All uses updated. | |
843 | (i386_dr_remove_aligned_watchpoint): Renamed to | |
844 | i386_remove_aligned_watchpoint and made static. | |
845 | All uses updated. | |
846 | (i386_dr_update_inferior_debug_regs): Renamed to | |
847 | i386_update_inferior_debug_regs and made static. | |
848 | All uses updated. | |
849 | ||
b9228891 GB |
850 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
851 | ||
5171def3 GB |
852 | * i386-low.h (i386_dr_low_can_set_addr): New macro. |
853 | (i386_dr_low_can_set_control): Likewise. | |
854 | (i386_get_debug_register_length): Likewise. | |
855 | * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h. | |
856 | (i386_dr_low_can_set_control): Likewise. | |
857 | (i386_get_debug_register_length): Likewise. | |
858 | ||
859 | 2014-06-17 Gary Benson <gbenson@redhat.com> | |
860 | ||
b9228891 GB |
861 | * i386-low.h (i386-dregs.h): New include. |
862 | (DR_FIRSTADDR): Now in i386-dregs.h. | |
863 | (DR_LASTADDR): Likewise. | |
864 | (DR_NADDR): Likewise. | |
865 | (DR_STATUS): Likewise. | |
866 | (DR_CONTROL): Likewise. | |
867 | (i386_debug_reg_state): Likewise. | |
868 | (i386_dr_insert_watchpoint): Likewise. | |
869 | (i386_dr_remove_watchpoint): Likewise. | |
870 | (i386_dr_region_ok_for_watchpoint): Likewise. | |
871 | (i386_dr_stopped_data_address): Likewise. | |
872 | (i386_dr_stopped_by_watchpoint): Likewise. | |
873 | * i386-low.c (ALL_DEBUG_REGISTERS): Likewise. | |
874 | ||
4be83cc2 GB |
875 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
876 | ||
877 | * i386-low.h (i386_low_insert_watchpoint): Renamed to | |
878 | i386_dr_insert_watchpoint. | |
879 | (i386_low_remove_watchpoint): Renamed to | |
880 | i386_dr_remove_watchpoint. | |
881 | (i386_low_region_ok_for_watchpoint): Renamed to | |
882 | i386_dr_region_ok_for_watchpoint. | |
883 | (i386_low_stopped_data_address): Renamed to | |
884 | i386_dr_stopped_data_address. | |
885 | (i386_low_stopped_by_watchpoint): Renamed to | |
886 | i386_dr_stopped_by_watchpoint. | |
887 | * i386-low.c (i386_show_dr): Renamed to | |
888 | i386_dr_show and made nonstatic. All uses updated. | |
889 | (i386_length_and_rw_bits): Renamed to | |
890 | i386_dr_length_and_rw_bits and made nonstatic. | |
891 | All uses updated. | |
892 | (i386_insert_aligned_watchpoint): Renamed to | |
893 | i386_dr_insert_aligned_watchpoint and made nonstatic. | |
894 | All uses updated. | |
895 | (i386_remove_aligned_watchpoint): Renamed to | |
896 | i386_dr_remove_aligned_watchpoint and made nonstatic. | |
897 | All uses updated. | |
898 | (i386_update_inferior_debug_regs): Renamed to | |
899 | i386_dr_update_inferior_debug_regs and made nonstatic. | |
900 | All uses updated. | |
901 | (i386_low_insert_watchpoint): Renamed to | |
902 | i386_dr_insert_watchpoint. All uses updated. | |
903 | (i386_low_remove_watchpoint): Renamed to | |
904 | i386_dr_remove_watchpoint. All uses updated. | |
905 | (i386_low_region_ok_for_watchpoint): Renamed to | |
906 | i386_dr_region_ok_for_watchpoint. All uses updated. | |
907 | (i386_low_stopped_data_address): Renamed to | |
908 | i386_dr_stopped_data_address. All uses updated. | |
909 | (i386_low_stopped_by_watchpoint): Renamed to | |
910 | i386_dr_stopped_by_watchpoint. All uses updated. | |
911 | ||
131aa0d4 GB |
912 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
913 | ||
914 | * i386-low.c (i386_dr_low_can_set_addr): New macro. | |
915 | (i386_dr_low_can_set_control): Likewise. | |
916 | (i386_insert_aligned_watchpoint): New check. | |
917 | ||
d9305f7f GB |
918 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
919 | ||
920 | * i386-low.c (i386_update_inferior_debug_regs) <inf_state>: | |
921 | Renamed to state. | |
922 | ||
e927c9fc GB |
923 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
924 | ||
925 | * i386-low.c (i386_length_and_rw_bits): Use internal_error | |
926 | instead of fatal and error. | |
927 | (i386_handle_nonaligned_watchpoint): Likewise. | |
928 | ||
1b6d4134 GB |
929 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
930 | ||
931 | * i386-low.c (i386_get_debug_register_length): New macro. | |
932 | (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro. | |
933 | (i386_show_dr): Use debug_printf instead of fprintf. Use | |
934 | phex to format values. | |
935 | ||
6e62758f GB |
936 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
937 | ||
938 | * i386-low.h: Comment changes. | |
939 | * i386-low.c: Likewise. | |
940 | ||
fc6e2f03 GB |
941 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
942 | ||
943 | * i386-low.c: Whitespace changes. | |
944 | ||
f9d1eeed TT |
945 | 2014-06-12 Tom Tromey <tromey@redhat.com> |
946 | ||
947 | * utils.c (freeargv): Remove. | |
948 | ||
0b04e523 TT |
949 | 2014-06-12 Tom Tromey <tromey@redhat.com> |
950 | ||
951 | * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks. | |
952 | * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check. | |
953 | (parse_debug_format_options): Likewise. | |
954 | (gdbserver_usage): Likewise. | |
955 | * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables. | |
956 | (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty. | |
957 | (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link | |
958 | against libiberty. | |
959 | ($(LIBGNU)): Depend on libiberty. | |
960 | (all-lib): Recurse into all subdirs. | |
961 | (install-only): Invoke "install" target in subdirs. | |
962 | (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove | |
963 | targets. | |
964 | * configure: Rebuild. | |
965 | * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check | |
966 | for vasprintf, vsnprintf, or gettimeofday. | |
967 | * configure.srv: Don't add safe-ctype.o or lbasename.o to | |
968 | srv_tgtobj. | |
969 | ||
270c9937 JB |
970 | 2014-06-05 Joel Brobecker <brobecker@adacore.com> |
971 | ||
972 | * development.sh: Delete. | |
973 | * Makefile.in (config.status): Adjust dependency on development.sh. | |
974 | * configure.ac: Adjust development.sh source call. | |
975 | * configure: Regenerate. | |
976 | ||
0a261ed8 PA |
977 | 2014-06-02 Pedro Alves <palves@redhat.com> |
978 | ||
979 | * ax.c (gdb_free_agent_expr): New function. | |
980 | * ax.h (gdb_free_agent_expr): New declaration. | |
981 | * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands | |
982 | list. | |
983 | (clear_breakpoint_conditions, clear_breakpoint_commands): Make | |
984 | static. | |
985 | (clear_breakpoint_conditions_and_commands): New function. | |
986 | * mem-break.h (clear_breakpoint_conditions): Delete declaration. | |
987 | (clear_breakpoint_conditions_and_commands): New declaration. | |
988 | ||
e9dae05e RR |
989 | 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
990 | ||
991 | * linux-aarch64-low.c (asm/ptrace.h): Include. | |
992 | ||
5876f503 JK |
993 | 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
994 | ||
995 | Fix TLS access for -static -pthread. | |
996 | * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p. | |
997 | (thread_db_get_tls_address): Call it if LOAD_MODULE is zero. | |
998 | (thread_db_load_search, try_thread_db_load_1): Initialize it. | |
999 | ||
802e8e6d PA |
1000 | 2014-05-20 Pedro Alves <palves@redhat.com> |
1001 | ||
1002 | * linux-aarch64-low.c (aarch64_insert_point) | |
1003 | (aarch64_remove_point): No longer check whether the type is | |
1004 | supported here. Adjust to new interface. | |
1005 | (the_low_target): Install aarch64_supports_z_point_type as | |
1006 | supports_z_point_type method. | |
1007 | * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function. | |
1008 | (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type | |
1009 | instead of a Z packet char. Adjust. | |
1010 | (arm_supports_z_point_type): New function. | |
1011 | (arm_insert_point, arm_remove_point): Adjust to new interface. | |
1012 | (the_low_target): Install arm_supports_z_point_type. | |
1013 | * linux-crisv32-low.c (cris_supports_z_point_type): New function. | |
1014 | (cris_insert_point, cris_remove_point): Adjust to new interface. | |
1015 | Don't check whether the type is supported here. | |
1016 | (the_low_target): Install cris_supports_z_point_type. | |
1017 | * linux-low.c (linux_supports_z_point_type): New function. | |
1018 | (linux_insert_point, linux_remove_point): Adjust to new interface. | |
1019 | * linux-low.h (struct linux_target_ops) <insert_point, | |
1020 | remove_point>: Take an enum raw_bkpt_type instead of a char. Add | |
1021 | raw_breakpoint pointer parameter. | |
1022 | <supports_z_point_type>: New method. | |
1023 | * linux-mips-low.c (mips_supports_z_point_type): New function. | |
1024 | (mips_insert_point, mips_remove_point): Adjust to new interface. | |
1025 | Use mips_supports_z_point_type. | |
1026 | (the_low_target): Install mips_supports_z_point_type. | |
1027 | * linux-ppc-low.c (the_low_target): Install NULL as | |
1028 | supports_z_point_type method. | |
1029 | * linux-s390-low.c (the_low_target): Install NULL as | |
1030 | supports_z_point_type method. | |
1031 | * linux-sparc-low.c (the_low_target): Install NULL as | |
1032 | supports_z_point_type method. | |
1033 | * linux-x86-low.c (x86_supports_z_point_type): New function. | |
1034 | (x86_insert_point): Adjust to new insert_point interface. Use | |
1035 | insert_memory_breakpoint. Adjust to new | |
1036 | i386_low_insert_watchpoint interface. | |
1037 | (x86_remove_point): Adjust to remove_point interface. Use | |
1038 | remove_memory_breakpoint. Adjust to new | |
1039 | i386_low_remove_watchpoint interface. | |
1040 | (the_low_target): Install x86_supports_z_point_type. | |
1041 | * lynx-low.c (lynx_target_ops): Install NULL as | |
1042 | supports_z_point_type callback. | |
1043 | * nto-low.c (nto_supports_z_point_type): New. | |
1044 | (nto_insert_point, nto_remove_point): Adjust to new interface. | |
1045 | (nto_target_ops): Install nto_supports_z_point_type. | |
1046 | * mem-break.c: Adjust intro comment. | |
1047 | (struct raw_breakpoint) <raw_type, size>: New fields. | |
1048 | <inserted>: Update comment. | |
1049 | <shlib_disabled>: Delete field. | |
1050 | (enum bkpt_type) <gdb_breakpoint>: Delete value. | |
1051 | <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2, | |
1052 | gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values. | |
1053 | (raw_bkpt_type_to_target_hw_bp_type): New function. | |
1054 | (find_enabled_raw_code_breakpoint_at): New function. | |
1055 | (find_raw_breakpoint_at): New type and size parameters. Use them. | |
1056 | (insert_memory_breakpoint): New function, based off | |
1057 | set_raw_breakpoint_at. | |
1058 | (remove_memory_breakpoint): New function. | |
1059 | (set_raw_breakpoint_at): Reimplement. | |
1060 | (set_breakpoint): New, based on set_breakpoint_at. | |
1061 | (set_breakpoint_at): Reimplement. | |
1062 | (delete_raw_breakpoint): Go through the_target->remove_point | |
1063 | instead of assuming memory breakpoints. | |
1064 | (find_gdb_breakpoint_at): Delete. | |
1065 | (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions. | |
1066 | (find_gdb_breakpoint): New function. | |
1067 | (set_gdb_breakpoint_at): Delete. | |
1068 | (z_type_supported): New function. | |
1069 | (set_gdb_breakpoint_1): New function, loosely based off | |
1070 | set_gdb_breakpoint_at. | |
1071 | (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions. | |
1072 | (delete_gdb_breakpoint_at): Delete. | |
1073 | (delete_gdb_breakpoint_1): New function, loosely based off | |
1074 | delete_gdb_breakpoint_at. | |
1075 | (delete_gdb_breakpoint): New function. | |
1076 | (clear_gdb_breakpoint_conditions): Rename to ... | |
1077 | (clear_breakpoint_conditions): ... this. Don't handle a NULL | |
1078 | breakpoint. | |
1079 | (add_condition_to_breakpoint): Make static. | |
1080 | (add_breakpoint_condition): Take a struct breakpoint pointer | |
1081 | instead of an address. Adjust. | |
1082 | (gdb_condition_true_at_breakpoint): Rename to ... | |
1083 | (gdb_condition_true_at_breakpoint_z_type): ... this, and add | |
1084 | z_type parameter. | |
1085 | (gdb_condition_true_at_breakpoint): Reimplement. | |
1086 | (add_breakpoint_commands): Take a struct breakpoint pointer | |
1087 | instead of an address. Adjust. | |
1088 | (gdb_no_commands_at_breakpoint): Rename to ... | |
1089 | (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type | |
1090 | parameter. Return true if no breakpoint was found. Change debug | |
1091 | output. | |
1092 | (gdb_no_commands_at_breakpoint): Reimplement. | |
1093 | (run_breakpoint_commands): Rename to ... | |
1094 | (run_breakpoint_commands_z_type): ... this. Add z_type parameter, | |
1095 | and change return type to boolean. | |
1096 | (run_breakpoint_commands): New function. | |
1097 | (gdb_breakpoint_here): Also check for Z1 breakpoints. | |
1098 | (uninsert_raw_breakpoint): Don't try to reinsert a disabled | |
1099 | breakpoint. Go through the_target->remove_point instead of | |
1100 | assuming memory breakpoint. | |
1101 | (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert | |
1102 | software and hardware breakpoints. | |
1103 | (reinsert_raw_breakpoint): Go through the_target->insert_point | |
1104 | instead of assuming memory breakpoint. | |
1105 | (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert | |
1106 | software and hardware breakpoints. | |
1107 | (check_breakpoints, breakpoint_here, breakpoint_inserted_here): | |
1108 | Check both software and hardware breakpoints. | |
1109 | (validate_inserted_breakpoint): Assert the breakpoint is a | |
1110 | software breakpoint. Set the inserted flag to -1 instead of | |
1111 | setting shlib_disabled. | |
1112 | (delete_disabled_breakpoints): Adjust. | |
1113 | (validate_breakpoints): Only validate software breakpoints. | |
1114 | Adjust to inserted flag change. | |
1115 | (check_mem_read, check_mem_write): Skip breakpoint types other | |
1116 | than software breakpoints. Adjust to inserted flag change. | |
1117 | * mem-break.h (enum raw_bkpt_type): New enum. | |
1118 | (raw_breakpoint, struct process_info): Forward declare. | |
1119 | (Z_packet_to_target_hw_bp_type): Delete declaration. | |
1120 | (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type) | |
1121 | (set_gdb_breakpoint, delete_gdb_breakpoint) | |
1122 | (clear_breakpoint_conditions): New declarations. | |
1123 | (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete. | |
1124 | (breakpoint_inserted_here): Update comment. | |
1125 | (add_breakpoint_condition, add_breakpoint_commands): Replace | |
1126 | address parameter with a breakpoint pointer parameter. | |
1127 | (gdb_breakpoint_here): Update comment. | |
1128 | (delete_gdb_breakpoint_at): Delete. | |
1129 | (insert_memory_breakpoint, remove_memory_breakpoint): Declare. | |
1130 | * server.c (process_point_options): Take a struct breakpoint | |
1131 | pointer instead of an address. Adjust. | |
1132 | (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and | |
1133 | delete_gdb_breakpoint. | |
1134 | * spu-low.c (spu_target_ops): Install NULL as | |
1135 | supports_z_point_type method. | |
1136 | * target.h: Include mem-break.h. | |
1137 | (struct target_ops) <prepare_to_access_memory>: Update comment. | |
1138 | <supports_z_point_type>: New field. | |
1139 | <insert_point, remove_point>: Take an enum raw_bkpt_type argument | |
1140 | instead of a char. Also take a raw breakpoint pointer. | |
1141 | * win32-arm-low.c (the_low_target): Install NULL as | |
1142 | supports_z_point_type. | |
1143 | * win32-i386-low.c (i386_supports_z_point_type): New function. | |
1144 | (i386_insert_point, i386_remove_point): Adjust to new interface. | |
1145 | (the_low_target): Install i386_supports_z_point_type. | |
1146 | * win32-low.c (win32_supports_z_point_type): New function. | |
1147 | (win32_insert_point, win32_remove_point): Adjust to new interface. | |
1148 | (win32_target_ops): Install win32_supports_z_point_type. | |
1149 | * win32-low.h (struct win32_target_ops): | |
1150 | <supports_z_point_type>: New method. | |
1151 | <insert_point, remove_point>: Take an enum raw_bkpt_type argument | |
1152 | instead of a char. Also take a raw breakpoint pointer. | |
1153 | ||
932539e3 PA |
1154 | 2014-05-20 Pedro Alves <palves@redhat.com> |
1155 | ||
1156 | * mem-break.h: Include break-common.h. | |
1157 | (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP) | |
1158 | (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines. | |
1159 | (Z_packet_to_target_hw_bp_type): New declaration. | |
1160 | * mem-break.c (Z_packet_to_target_hw_bp_type): New function. | |
1161 | * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP) | |
1162 | (Z_PACKET_ACCESS_WP): Delete macros. | |
1163 | (Z_packet_to_hw_type): Delete function. | |
1164 | * i386-low.h: Don't include break-common.h here. | |
1165 | (Z_packet_to_hw_type): Delete declaration. | |
1166 | * linux-x86-low.c (x86_insert_point, x86_insert_point): Call | |
1167 | Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type. | |
1168 | * win32-i386-low.c (i386_insert_point, i386_remove_point): Call | |
1169 | Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type. | |
1170 | * linux-aarch64-low.c: Don't include break-common.h here. | |
1171 | (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP) | |
1172 | (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros. | |
1173 | (Z_packet_to_target_hw_bp_type): Delete function. | |
1174 | * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete | |
1175 | function. | |
1176 | (mips_insert_point, mips_remove_point): Use | |
1177 | Z_packet_to_target_hw_bp_type. | |
1178 | ||
4ff0d3d8 PA |
1179 | 2014-05-20 Pedro Alves <palves@redhat.com> |
1180 | ||
1181 | * linux-aarch64-low.c: Include break-common.h. | |
1182 | (enum target_point_type): Delete. | |
1183 | (Z_packet_to_point_type): Rename to ... | |
1184 | (Z_packet_to_target_hw_bp_type): ... this, and return a | |
1185 | target_hw_bp_type instead. | |
1186 | (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type | |
1187 | instead of an enum target_point_type. | |
1188 | (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from | |
1189 | breakpoint type. | |
1190 | (aarch64_dr_state_insert_one_point) | |
1191 | (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint) | |
1192 | (aarch64_handle_aligned_watchpoint) | |
1193 | (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint): | |
1194 | Take an enum target_hw_bp_type instead of an enum | |
1195 | target_point_type. | |
1196 | (aarch64_supports_z_point_type): New function. | |
1197 | (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to | |
1198 | use Z_packet_to_target_hw_bp_type. | |
1199 | ||
786dc519 JB |
1200 | 2014-05-20 Joel Brobecker <brobecker@adacore.com> |
1201 | ||
1202 | * configure.ac: Only use -Werror by default when DEVELOPMENT | |
1203 | is true. | |
1204 | * configure: Regenerate. | |
1205 | ||
9e0aa64f JK |
1206 | 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
1207 | ||
1208 | Fix gdbserver qGetTLSAddr for x86_64 -m32. | |
1209 | * linux-x86-low.c (X86_64_USER_REGS): New. | |
1210 | (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case. | |
1211 | ||
2b577b92 YQ |
1212 | 2014-04-28 Yao Qi <yao@codesourcery.com> |
1213 | ||
1214 | * Makefile.in (i386-avx512.c): Fix the typo of generated file | |
1215 | name. | |
1216 | ||
94611da2 PA |
1217 | 2014-04-25 Pedro Alves <palves@redhat.com> |
1218 | ||
1219 | PR server/16255 | |
1220 | * linux-low.c (linux_attach_fail_reason_string): New function. | |
1221 | (linux_attach_lwp): Delete. | |
1222 | (linux_attach_lwp_1): Rename to ... | |
1223 | (linux_attach_lwp): ... this. Take a ptid instead of a pid as | |
1224 | argument. Remove "initial" parameter. Return int instead of | |
1225 | void. Don't error or warn here. | |
1226 | (linux_attach): Adjust to call linux_attach_lwp. Call error on | |
1227 | failure to attach to the tgid. Call warning when failing to | |
1228 | attach to an lwp. | |
1229 | * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as | |
1230 | argument. Remove "initial" parameter. Return int instead of | |
1231 | void. Don't error or warn here. | |
1232 | (linux_attach_fail_reason_string): New declaration. | |
1233 | * thread-db.c (attach_thread): Adjust to linux_attach_lwp's | |
1234 | interface change. Use linux_attach_fail_reason_string. | |
1235 | ||
01f9f808 MS |
1236 | 2014-04-24 Michael Sturm <michael.sturm@mintel.com> |
1237 | Walfred Tedeschi <walfred.tedeschi@intel.com> | |
1238 | ||
1239 | * Makefile.in: Added rules to handle new files | |
1240 | i386-avx512.c i386-avx512-linux.c amd64-avx512.c | |
1241 | amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c. | |
1242 | * configure.srv (srv_i386_regobj): Add i386-avx512.o. | |
1243 | (srv_i386_linux_regobj): Add i386-avx512-linux.o. | |
1244 | (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o. | |
1245 | (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and | |
1246 | x32-avx512-linux.o. | |
1247 | (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml. | |
1248 | (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml. | |
1249 | (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and | |
1250 | i386/x32-avx512.xml. | |
1251 | (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml. | |
1252 | (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and | |
1253 | i386/x32-avx512-linux.xml. | |
1254 | * i387-fp.c (num_avx512_k_registers): New constant for number | |
1255 | of K registers. | |
1256 | (num_avx512_zmmh_low_registers): New constant for number of | |
1257 | lower ZMM registers (0-15). | |
1258 | (num_avx512_zmmh_high_registers): New constant for number of | |
1259 | higher ZMM registers (16-31). | |
1260 | (num_avx512_ymmh_registers): New contant for number of higher | |
1261 | YMM registers (ymm16-31 added by avx521 on x86_64). | |
1262 | (num_avx512_xmm_registers): New constant for number of higher | |
1263 | XMM registers (xmm16-31 added by AVX512 on x86_64). | |
1264 | (struct i387_xsave): Add space for AVX512 registers. | |
1265 | (i387_cache_to_xsave): Change raw buffer size to 64 characters. | |
1266 | Add code to handle AVX512 registers. | |
1267 | (i387_xsave_to_cache): Add code to handle AVX512 registers. | |
1268 | * linux-x86-low.c (init_registers_amd64_avx512_linux): New | |
1269 | prototypei from generated file. | |
1270 | (tdesc_amd64_avx512_linux): Likewise. | |
1271 | (init_registers_x32_avx512_linux): Likewise. | |
1272 | (tdesc_x32_avx512_linux): Likewise. | |
1273 | (init_registers_i386_avx512_linux): Likewise. | |
1274 | (tdesc_i386_avx512_linux): Likewise. | |
1275 | (x86_64_regmap): Add AVX512 registers. | |
1276 | (x86_linux_read_description): Add code to handle AVX512 XSTATE | |
1277 | mask. | |
1278 | (initialize_low_arch): Add code to initialize AVX512 registers. | |
1279 | ||
51aa91f9 PA |
1280 | 2014-04-23 Pedro Alves <palves@redhat.com> |
1281 | ||
1282 | * mem-break.c (find_gdb_breakpoint_at): Make static. | |
1283 | * mem-break.h (find_gdb_breakpoint_at): Delete declaration. | |
1284 | ||
a4165e94 PA |
1285 | 2014-04-23 Pedro Alves <palves@redhat.com> |
1286 | ||
1287 | * i386-low.c: Don't include break-common.h here. | |
1288 | (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change | |
1289 | prototype to take target_hw_bp_type as argument instead of a Z | |
1290 | packet char. | |
1291 | * i386-low.h: Include break-common.h here. | |
1292 | (Z_packet_to_hw_type): Declare. | |
1293 | (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change | |
1294 | prototypes. | |
1295 | * linux-x86-low.c (x86_insert_point): Convert the packet number to | |
1296 | a target_hw_bp_type before calling i386_low_insert_watchpoint. | |
1297 | (x86_remove_point): Convert the packet number to a | |
1298 | target_hw_bp_type before calling i386_low_remove_watchpoint. | |
1299 | * win32-i386-low.c (i386_insert_point): Convert the packet number | |
1300 | to a target_hw_bp_type before calling i386_low_insert_watchpoint. | |
1301 | (i386_remove_point): Convert the packet number to a | |
1302 | target_hw_bp_type before calling i386_low_remove_watchpoint. | |
1303 | ||
b8acf843 PA |
1304 | 2014-04-23 Pedro Alves <palves@redhat.com> |
1305 | ||
1306 | * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN. | |
1307 | ||
d708bcd1 PA |
1308 | 2014-04-10 Pedro Alves <palves@redhat.com> |
1309 | ||
1310 | * mem-break.c (add_breakpoint_condition, add_breakpoint_commands): | |
1311 | Check if the condition or command is NULL before checking if the | |
1312 | breakpoint is known. On success, return true. | |
1313 | * mem-break.h (add_breakpoint_condition): Document return. | |
1314 | (add_breakpoint_commands): Add describing comment. | |
1315 | * server.c (skip_to_semicolon): New function. | |
1316 | (process_point_options): Use it. | |
1317 | ||
2eec7d5b PA |
1318 | 2014-04-09 Pedro Alves <palves@redhat.com> |
1319 | ||
1320 | * linux-low.c (linux_read_loadmap): Pass current_inferior directly | |
1321 | to lwpid_of. | |
1322 | ||
fa96cb38 PA |
1323 | 2014-02-27 Pedro Alves <palves@redhat.com> |
1324 | ||
1325 | PR 12702 | |
1326 | * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New | |
1327 | macros. | |
1328 | * linux-low.c (delete_lwp, handle_extended_wait): Add debug | |
1329 | output. | |
1330 | (last_thread_of_process_p): Take a PID argument instead of a | |
1331 | thread pointer. | |
1332 | (linux_wait_for_lwp): Delete. | |
1333 | (num_lwps, check_zombie_leaders, not_stopped_callback): New | |
1334 | functions. | |
1335 | (linux_low_filter_event): New function, party factored out from | |
1336 | linux_wait_for_event. | |
1337 | (linux_wait_for_event): Rename to ... | |
1338 | (linux_wait_for_event_filtered): ... this. Add new filter ptid | |
1339 | argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and | |
1340 | sigsuspend. Check for zombie leaders. | |
1341 | (linux_wait_for_event): Reimplement as wrapper around | |
1342 | linux_wait_for_event_filtered. | |
1343 | (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if | |
1344 | a normal or signal exit is seen, it's the whole process exiting. | |
1345 | (wait_for_sigstop): No longer a for_each_inferior callback. | |
1346 | Rewrite on top of linux_wait_for_event_filtered. | |
1347 | (stop_all_lwps): Call wait_for_sigstop directly. | |
1348 | * server.c (resume, handle_target_event): Handle | |
1349 | TARGET_WAITKIND_NO_RESUMED. | |
1350 | ||
d763de10 JB |
1351 | 2014-02-26 Joel Brobecker <brobecker@adacore.com> |
1352 | ||
1353 | * win32-low.c (psapi_get_dll_name, | |
1354 | * win32_CreateToolhelp32Snapshot): Delete. | |
1355 | (win32_CreateToolhelp32Snapshot, win32_Module32First) | |
1356 | (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name): | |
1357 | Delete. | |
1358 | (handle_load_dll): Add function description. | |
1359 | Remove code using psapi_get_dll_name and toolhelp_get_dll_name. | |
1360 | ||
850a0f76 JB |
1361 | 2014-02-26 Joel Brobecker <brobecker@adacore.com> |
1362 | ||
1363 | * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr. | |
1364 | Add comment. | |
1365 | (win32_add_all_dlls): Remove 0x1000 offset applied to DLL | |
1366 | base address when calling win32_add_one_solib. | |
1367 | (handle_load_dll): Delete local variable load_addr. | |
1368 | Remove 0x1000 offset applied to DLL base address when calling | |
1369 | win32_add_one_solib. | |
1370 | (handle_unload_dll): Add comment. | |
1371 | ||
f25b3fc3 JB |
1372 | 2014-02-26 Joel Brobecker <brobecker@adacore.com> |
1373 | ||
1374 | * win32-low.c (win32_add_all_dlls): Renames | |
1375 | win32_ensure_ntdll_loaded. Rewrite function documentation. | |
1376 | Adjust implementation to always load all DLLs. | |
1377 | Add 0x1000 offset to DLL base address when calling | |
1378 | win32_add_one_solib. | |
1379 | (child_initialization_done): New static global. | |
1380 | (do_initial_child_stuff): Set child_initialization_done to | |
1381 | zero during child initialization, and 1 after. Replace call | |
1382 | to win32_ensure_ntdll_loaded by call to win32_add_all_dlls. | |
1383 | Add comment. | |
1384 | (match_dll_by_basename, dll_is_loaded_by_basename): Delete. | |
1385 | (handle_unload_dll): Add function documentation. | |
1386 | (get_child_debug_event): Ignore load and unload DLL events | |
1387 | during child initialization. | |
1388 | ||
d86d4aaf DE |
1389 | 2014-02-20 Doug Evans <dje@google.com> |
1390 | ||
3bc32da3 | 1391 | Remove global all_lwps. |
d86d4aaf DE |
1392 | * inferiors.h (ptid_of): Move here from linux-low.h. |
1393 | (pid_of, lwpid_of): Ditto. | |
1394 | * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry" | |
1395 | parameter is a struct thread_info * now. | |
1396 | (aarch64_notify_debug_reg_change): Fetch pid from current_inferior | |
1397 | directly. Pass &all_threads to find_inferior instead of &all_lwps. | |
1398 | (aarch64_stopped_data_address): Fetch lwpid from current_inferior | |
1399 | directly. | |
1400 | (aarch64_linux_prepare_to_resume): Fetch ptid from thread. | |
1401 | (aarch64_arch_setup): Fetch lwpid from current_inferior directly. | |
1402 | * linux-arm-low.c (update_registers_callback): Update, "entry" | |
1403 | parameter is a struct thread_info * now. | |
1404 | Fetch lwpid from current_inferior directly. | |
1405 | (arm_insert_point): Pass &all_threads to find_inferior instead of | |
1406 | &all_lwps. | |
1407 | (arm_remove_point): Ditto. | |
1408 | (arm_stopped_by_watchpoint): Fetch lwp from current_inferior. | |
1409 | (arm_prepare_to_resume): Fetch pid from thread. | |
1410 | (arm_read_description): Fetch lwpid from current_inferior directly. | |
1411 | * linux-low.c (all_lwps): Delete. | |
1412 | (delete_lwp): Delete call to remove_inferior. | |
1413 | (handle_extended_wait): Fetch lwpid from thread. | |
1414 | (add_lwp): Don't set lwp->entry.id. Remove call to | |
1415 | add_inferior_to_list. | |
1416 | (linux_attach_lwp_1): Fetch pid from current_inferior directly. | |
1417 | (linux_kill_one_lwp): Fetch ptid,lwpid from thread. | |
1418 | (kill_one_lwp_callback): Ditto. | |
1419 | (linux_kill): Don't dereference NULL pointer. | |
1420 | Fetch ptid,lwpid from thread. | |
1421 | (get_detach_signal): Fetch ptid from thread. | |
1422 | (linux_detach_one_lwp): Fetch ptid,lwpid from thread. | |
1423 | Simplify call to regcache_invalidate_thread. | |
1424 | (delete_lwp_callback): Update, "entry" parameter is a | |
1425 | struct thread_info * now. Fetch pid from thread. | |
1426 | (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps. | |
1427 | (status_pending_p_callback): Update, "entry" parameter is a | |
1428 | struct thread_info * now. Fetch ptid from thread. | |
1429 | (find_lwp_pid): Update, "entry" parameter is a | |
1430 | struct thread_info * now. | |
1431 | (linux_wait_for_lwp): Fetch pid from thread. | |
1432 | (linux_fast_tracepoint_collecting): Fetch lwpid from thread. | |
1433 | (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior. | |
1434 | (enqueue_one_deferred_signal): Fetch lwpid from thread. | |
1435 | (dequeue_one_deferred_signal): Ditto. | |
1436 | (cancel_breakpoint): Fetch ptid from current_inferior. | |
1437 | (linux_wait_for_event): Pass &all_threads to find_inferior, | |
1438 | not &all_lwps. Fetch ptid, lwpid from thread. | |
1439 | (count_events_callback): Update, "entry" parameter is a | |
1440 | struct thread_info * now. | |
1441 | (select_singlestep_lwp_callback): Ditto. | |
1442 | (select_event_lwp_callback): Ditto. | |
1443 | (cancel_breakpoints_callback): Ditto. | |
1444 | (linux_cancel_breakpoints): Pass &all_threads to find_inferior, | |
1445 | not &all_lwps. | |
1446 | (select_event_lwp): Ditto. Fetch ptid from event_thread. | |
1447 | (unsuspend_one_lwp): Update, "entry" parameter is a | |
1448 | struct thread_info * now. | |
1449 | (unsuspend_all_lwps): Pass &all_threads to find_inferior, | |
1450 | not &all_lwps. | |
1451 | (linux_stabilize_threads): Ditto. And for for_each_inferior. | |
1452 | Fetch lwpid from thread, not lwp. | |
1453 | (linux_wait_1): Fetch ptid, lwpid from current_inferior. | |
1454 | Pass &all_threads to find_inferior, not &all_lwps. | |
1455 | (send_sigstop): Fetch lwpid from thread, not lwp. | |
1456 | (send_sigstop_callback): Update, "entry" parameter is a | |
1457 | struct thread_info * now. | |
1458 | (suspend_and_send_sigstop_callback): Ditto. | |
1459 | (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp. | |
1460 | (stuck_in_jump_pad_callback): Update, "entry" parameter is a | |
1461 | struct thread_info * now. | |
1462 | (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid | |
1463 | from thread, lwp. | |
1464 | (lwp_running): Update, "entry" parameter is a | |
1465 | struct thread_info * now. | |
1466 | (stop_all_lwps): Fetch ptid from thread. | |
1467 | Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps. | |
1468 | (linux_resume_one_lwp): Fetch lwpid from thread. | |
1469 | (linux_set_resume_request): Update, "entry" parameter is a | |
1470 | struct thread_info * now. Fetch pid, lwpid from thread. | |
1471 | (resume_status_pending_p): Update, "entry" parameter is a | |
1472 | struct thread_info * now. | |
1473 | (need_step_over_p): Ditto. Fetch lwpid from thread. | |
1474 | (start_step_over): Fetch lwpid from thread. | |
1475 | (linux_resume_one_thread): Update, "entry" parameter is a | |
1476 | struct thread_info * now. Fetch lwpid from thread. | |
1477 | (linux_resume): Pass &all_threads to find_inferior, not &all_lwps. | |
1478 | (proceed_one_lwp): Update, "entry" parameter is a | |
1479 | struct thread_info * now. Fetch lwpid from thread. | |
1480 | (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a | |
1481 | struct thread_info * now. | |
1482 | (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps. | |
1483 | (unstop_all_lwps): Ditto. Fetch lwpid from thread. | |
1484 | (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior | |
1485 | directly. | |
1486 | (regsets_store_inferior_registers): Ditto. | |
1487 | (fetch_register, store_register): Ditto. | |
1488 | (linux_read_memory, linux_write_memory): Ditto. | |
1489 | (linux_request_interrupt): Ditto. | |
1490 | (linux_read_auxv): Ditto. | |
1491 | (linux_xfer_siginfo): Ditto. | |
1492 | (linux_qxfer_spu): Ditto. | |
1493 | (linux_qxfer_libraries_svr4): Ditto. | |
1494 | * linux-low.h (ptid_of, pid_of, lwpid_of): Delete, | |
1495 | moved to inferiors.h. | |
1496 | (get_lwp): Delete. | |
1497 | (get_thread_lwp): Update. | |
1498 | (struct lwp_info): Delete member "entry". Simplify comment for | |
1499 | member "thread". | |
1500 | (all_lwps): Delete. | |
1501 | * linux-mips-low.c (mips_read_description): Fetch lwpid from | |
1502 | current_inferior directly. | |
1503 | (update_watch_registers_callback): Update, "entry" parameter is a | |
1504 | struct thread_info * now. Fetch pid from thread. | |
1505 | (mips_linux_prepare_to_resume): Fetch ptid from thread. | |
1506 | (mips_insert_point): Fetch lwpid from current_inferior. | |
1507 | Pass &all_threads to find_inferior, not &all_lwps. | |
1508 | (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps. | |
1509 | (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior | |
1510 | directly. | |
1511 | (mips_stopped_data_address): Ditto. | |
1512 | * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior | |
1513 | directly. | |
1514 | * linux-tile-low.c (tile_arch_setup): Ditto. | |
1515 | * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread. | |
1516 | (update_debug_registers_callback): Update, "entry" parameter is a | |
1517 | struct thread_info * now. Fetch pid from thread. | |
1518 | (i386_dr_low_set_addr): Fetch pid from current_inferior directly. | |
1519 | Pass &all_threads to find_inferior, not &all_lwps. | |
1520 | (i386_dr_low_get_addr): Fetch ptid from current_inferior directly. | |
1521 | (i386_dr_low_set_control): Fetch pid from current_inferior directly. | |
1522 | Pass &all_threads to find_inferior, not &all_lwps. | |
1523 | (i386_dr_low_get_control): Fetch ptid from current_inferior directly. | |
1524 | (i386_dr_low_get_status): Ditto. | |
1525 | (x86_linux_prepare_to_resume): Fetch ptid from thread. | |
1526 | (x86_siginfo_fixup): Fetch lwpid from current_inferior directly. | |
1527 | (x86_linux_read_description): Ditto. | |
1528 | * proc-service.c (ps_getpid): Fetch pid from current_inferior directly. | |
1529 | ||
3b8361aa DE |
1530 | 2014-02-20 Doug Evans <dje@google.com> |
1531 | ||
1532 | * inferiors.c (get_first_inferior): Fix buglet. | |
1533 | ||
f7667f0d DE |
1534 | 2014-02-19 Doug Evans <dje@google.com> |
1535 | ||
1536 | * gdbthread.h (add_thread): Change result type to struct thread_info *. | |
1537 | * inferiors.c (add_thread): Change result type to struct thread_info *. | |
1538 | All callers updated. | |
1539 | (add_lwp): Call add_thread here instead of in callers. | |
1540 | All callers updated. | |
1541 | * linux-low.h (get_lwp_thread): Rewrite. | |
1542 | (struct lwp_info): New member "thread". | |
1543 | ||
b3312d80 DE |
1544 | 2014-02-19 Doug Evans <dje@google.com> |
1545 | ||
1546 | * linux-low.c (add_lwp): Change result to struct lwp_info *. | |
1547 | All callers updated. | |
1548 | ||
ecc6f45c DE |
1549 | 2014-02-19 Doug Evans <dje@google.com> |
1550 | ||
1551 | * inferiors.c (add_thread): Fix whitespace. | |
1552 | ||
649ebbca DE |
1553 | 2014-02-19 Doug Evans <dje@google.com> |
1554 | ||
1555 | * dll.c (clear_dlls): Replace accessing list implemention details | |
1556 | with API function. | |
1557 | * gdbthread.h (get_first_thread): Declare. | |
1558 | * inferiors.c (for_each_inferior_with_data): New function. | |
1559 | (get_first_thread): New function. | |
1560 | (find_thread_ptid): Simplify. | |
1561 | (get_first_inferior): New function. | |
1562 | (clear_list): Delete. | |
1563 | (one_inferior_p): New function. | |
1564 | (clear_inferior_list): New function. | |
1565 | (clear_inferiors): Update. | |
1566 | * inferiors.h (for_each_inferior_with_data): Declare. | |
1567 | (clear_inferior_list): Declare. | |
1568 | (one_inferior_p): Declare. | |
1569 | (get_first_inferior): Declare. | |
1570 | * linux-low.c (linux_wait_for_event): Replace accessing list | |
1571 | implemention details with API function. | |
1572 | * server.c (target_running): Ditto. | |
1573 | (accumulate_file_name_length): New function. | |
1574 | (emit_dll_description): New function. | |
1575 | (handle_qxfer_libraries): Replace accessing list implemention | |
1576 | details with API function. | |
1577 | (handle_qxfer_threads_worker): New function. | |
1578 | (handle_qxfer_threads_proper): Replace accessing list implemention | |
1579 | details with API function. | |
1580 | (handle_query): Ditto. | |
1581 | (visit_actioned_threads_callback_ftype): New typedef. | |
1582 | (visit_actioned_threads_data): New struct. | |
1583 | (visit_actioned_threads): Rewrite to be find_inferior callback. | |
1584 | (resume): Call find_inferior. | |
1585 | (handle_status): Replace accessing list implemention | |
1586 | details with API function. | |
1587 | (process_serial_event): Replace accessing list implemention details | |
1588 | with API function. | |
1589 | * target.c (set_desired_inferior): Replace accessing list implemention | |
1590 | details with API function. | |
1591 | * tracepoint.c (same_process_p): New function. | |
1592 | (gdb_agent_about_to_close): Replace accessing list implemention | |
1593 | details with API function. | |
1594 | * win32-low.c (child_delete_thread): Replace accessing list | |
1595 | implemention details with API function. | |
1596 | (match_dll_by_basename): New function. | |
1597 | (dll_is_loaded_by_basename): New function. | |
1598 | (win32_ensure_ntdll_loaded): Replace accessing list implemention | |
1599 | details call to dll_is_loaded_by_basename. | |
1600 | ||
80894984 DE |
1601 | 2014-02-19 Doug Evans <dje@google.com> |
1602 | ||
1603 | * dll.h (struct dll_info): Add comment. | |
1604 | * gdbthread.h (struct thread_info): Add comment. | |
1605 | (current_ptid): Simplify. | |
1606 | * inferiors.c (add_process): Update. | |
1607 | (remove_process): Update. | |
1608 | * inferiors.h (struct process_info): Rename member "head" to "entry". | |
1609 | * linux-low.c (delete_lwp): Update. | |
1610 | (add_lwp): Update. | |
1611 | (last_thread_of_process_p): Update. | |
1612 | (kill_one_lwp_callback, linux_kill): Update. | |
1613 | (status_pending_p_callback): Update. | |
1614 | (wait_for_sigstop): Update. Simplify read of ptid. | |
1615 | (start_step_over): Update. | |
1616 | * linux-low.h (ptid_of, pid_of, lwpid_of): Update. | |
1617 | (get_lwp_thread): Update. | |
1618 | (struct lwp_info): Rename member "head" to "entry". | |
1619 | * regcache.h (inferior_list_entry): Delete. | |
1620 | * server.c (kill_inferior_callback): Update. | |
1621 | (detach_or_kill_inferior_callback): Update. | |
1622 | (print_started_pid): Update. | |
1623 | (print_attached_pid): Update. | |
1624 | (process_serial_event): Simplify read of ptid. | |
1625 | * thread-db.c (thread_db_create_event): Update. | |
1626 | (thread_db_get_tls_address): Update. | |
1627 | * win32-low.c (current_inferior_ptid): Simplify. | |
1628 | ||
46917d26 TT |
1629 | 2014-02-19 Tom Tromey <tromey@redhat.com> |
1630 | ||
1631 | * target.h (struct target_ops) <supports_btrace>: Add target_ops | |
1632 | argument. | |
1633 | (target_supports_btrace): Update. | |
1634 | ||
0759a81e YQ |
1635 | 2014-02-14 Yao Qi <yao@codesourcery.com> |
1636 | ||
1637 | * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o. | |
1638 | (rsp-low-ipa.o): New target. | |
1639 | ||
a7191e8b TT |
1640 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
1641 | ||
1642 | * ax.c (gdb_parse_agent_expr): Use hex2bin, not | |
1643 | convert_ascii_to_int. | |
1644 | * regcache.c (registers_to_string): Likewise. | |
1645 | * remote-utils.c (decode_M_packet): Likewise. | |
1646 | * server.c (process_serial_event): Likewise. | |
1647 | ||
ff0e980e TT |
1648 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
1649 | ||
1650 | * server.c (handle_query, handle_v_run): Use hex2bin, not | |
1651 | unhexify. | |
1652 | * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise. | |
1653 | ||
e9371aff TT |
1654 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
1655 | ||
1656 | * ax.c (gdb_unparse_agent_expr): Use bin2hex, not | |
1657 | convert_int_to_ascii. | |
1658 | * regcache.c (registers_to_string, collect_register_as_string): | |
1659 | Likewise. | |
1660 | * remote-utils.c (look_up_one_symbol, relocate_instruction): | |
1661 | Likewise. | |
1662 | * server.c (process_serial_event): Likewise. | |
1663 | * tracepoint.c (cmd_qtstatus, response_source, response_tsv) | |
1664 | (cmd_qtbuffer, cstr_to_hexstr): Likewise. | |
1665 | ||
971dc0b8 TT |
1666 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
1667 | ||
1668 | * remote-utils.c (look_up_one_symbol, monitor_output): Use | |
1669 | bin2hex, not hexify. | |
1670 | * tracepoint.c (cmd_qtstatus): Likewise. | |
1671 | ||
0a822afb TT |
1672 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
1673 | ||
1674 | * remote-utils.c (monitor_output): Pass explicit length to | |
1675 | hexify. | |
1676 | ||
9c3d6531 TT |
1677 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
1678 | ||
1679 | * tracepoint.c: Include rsp-low.h. | |
1680 | * server.c: Include rsp-low.h. | |
1681 | * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii) | |
1682 | (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't | |
1683 | declare. | |
1684 | * remote-utils.c: Include rsp-low.h. | |
1685 | (fromhex, hexchars, ishex, unhexify, tohex, hexify) | |
1686 | (remote_escape_output, remote_unescape_input, unpack_varlen_hex) | |
1687 | (convert_int_to_ascii, convert_ascii_to_int): Move to | |
1688 | common/rsp-low.c. | |
1689 | * regcache.c: Include rsp-low.h. | |
1690 | * ax.c: Include rsp-low.h. | |
1691 | * Makefile.in (SFILES): Add common/rsp-low.c. | |
1692 | (OBS): Add rsp-low.o. | |
1693 | (rsp-low.o): New target. | |
1694 | ||
01fd3ea5 TT |
1695 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
1696 | ||
1697 | * utils.h (pulongest, plongest, phex_nz): Don't declare. | |
1698 | Include print-utils.h. | |
1699 | * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest) | |
1700 | (plongest, thirty_two, phex_nz): Remove. | |
1701 | * Makefile.in (SFILES): Add common/print-utils.c. | |
1702 | (OBS): Add print-utils.o. | |
1703 | (print-utils-ipa.o): New target. | |
1704 | (print-utils.o): New target. | |
1705 | (IPA_OBJS): Add print-utils-ipa.o. | |
1706 | ||
e99dc820 TT |
1707 | 2014-02-06 Tom Tromey <tromey@redhat.com> |
1708 | ||
1709 | * Makefile.in (SFILES): Fix indentation. | |
1710 | ||
ee1e2d4f DE |
1711 | 2014-02-05 Doug Evans <dje@google.com> |
1712 | ||
1713 | * linux-low.c (linux_wait_for_event): Improve comment. | |
1714 | (linux_wait_1): Keep current_inferior in sync with event_child. | |
1715 | ||
f5a02773 DE |
1716 | 2014-01-22 Doug Evans <dje@google.com> |
1717 | ||
1718 | * gdbthread.h (gdb_id_to_thread): Delete, unused. | |
1719 | ||
87ce2a04 DE |
1720 | 2014-01-22 Doug Evans <dje@google.com> |
1721 | ||
1722 | * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday. | |
1723 | * configure: Regenerate. | |
1724 | * config.in: Regenerate. | |
1725 | * Makefile.in (SFILES): Add debug.c. | |
1726 | (OBS): Add debug.o. | |
1727 | * debug.c: New file. | |
1728 | * debug.h: New file. | |
1729 | * linux-aarch64-low.c (*): Update all debugging printfs to use | |
1730 | debug_printf instead of fprintf. | |
1731 | * linux-arm-low.c (*): Ditto. | |
1732 | * linux-cris-low.c (*): Ditto. | |
1733 | * linux-crisv32-low.c (*): Ditto. | |
1734 | * linux-m32r-low.c (*): Ditto. | |
1735 | * linux-sparc-low.c (*): Ditto. | |
1736 | * linux-x86.c (*): Ditto. | |
1737 | * linux-low.c (*): Ditto. | |
1738 | (linux_wait_1): Add calls to debug_enter, debug_exit. | |
1739 | (linux_wait): Remove redundant debugging printf. | |
1740 | (stop_all_lwps): Add calls to debug_enter, debug_exit. | |
1741 | (linux_resume, unstop_all_lwps): Ditto. | |
1742 | * mem-break.c (*): Update all debugging printfs to use | |
1743 | debug_printf instead of fprintf. | |
1744 | * remote-utils.c (*): Ditto. | |
1745 | * thread-db.c (*): Ditto. | |
1746 | * server.c #include <ctype.h>, "gdb_vecs.h". | |
1747 | (debug_threads): Moved to debug.c. | |
1748 | (*): Update all debugging printfs to use debug_printf instead of | |
1749 | fprintf. | |
1750 | (start_inferior): Replace call to fflush with call to debug_flush. | |
1751 | (monitor_show_help): Mention set debug-format. | |
1752 | (parse_debug_format_options): New function. | |
1753 | (handle_monitor_command): Handle "monitor set debug-format". | |
1754 | (gdbserver_usage): Mention --debug-format. | |
1755 | (main): Parse --debug-format. | |
1756 | * server.h (debug_threads): Declaration moved to debug.h. | |
1757 | #include "debug.h". | |
1758 | * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of | |
1759 | trace_debug_1 that uses debug_printf. | |
1760 | (tracepoint_look_up_symbols): Update all debugging printfs to use | |
1761 | debug_printf instead of fprintf. | |
1762 | ||
e671835b BS |
1763 | 2014-01-20 Baruch Siach <baruch@tkos.co.il> |
1764 | ||
1765 | * linux-xtensa-low.c: Include asm/ptrace.h instead of | |
1766 | sys/ptrace.h. | |
1767 | ||
b5737fa9 PA |
1768 | 2014-01-17 Pedro Alves <palves@redhat.com> |
1769 | ||
ea38d2a9 | 1770 | PR build/16445 |
c7faa97a PA |
1771 | * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is |
1772 | defined after including gdb_proc_service.h. | |
b5737fa9 | 1773 | |
40ed484e DE |
1774 | 2014-01-16 Doug Evans <dje@google.com> |
1775 | ||
1776 | * dll.c (UNSPECIFIED_CORE_ADDR): New macro. | |
1777 | (match_dll): Use it. | |
1778 | ||
969c39fb MM |
1779 | 2014-01-16 Markus Metzger <markus.t.metzger@intel.com> |
1780 | ||
1781 | * target.h (target_ops) <read_btrace>: Change parameters and | |
1782 | return type to allow error reporting. | |
1783 | * server.c (handle_qxfer_btrace): Support delta reads. Pass | |
1784 | trace reading errors on. | |
1785 | * linux-low.c (linux_low_read_btrace): Pass trace reading | |
1786 | errors on. | |
1787 | (linux_low_disable_btrace): New. | |
1788 | ||
ab7f45ba DE |
1789 | 2014-01-15 Doug Evans <dje@google.com> |
1790 | ||
1791 | * inferiors.c (thread_id_to_gdb_id): Delete. | |
1792 | * inferiors.h (thread_id_to_gdb_id): Delete. | |
1793 | ||
66af0f44 EZ |
1794 | 2014-01-13 Eli Zaretskii <eliz@gnu.org> |
1795 | ||
1796 | * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from | |
1797 | "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC | |
1798 | versions. | |
1799 | ||
9939e131 PA |
1800 | 2014-01-08 Pedro Alves <palves@redhat.com> |
1801 | ||
1802 | * server.c (handle_status): Don't discard previous queued stop | |
1803 | replies or thread's pending status here. | |
1804 | (main) <disconnection>: Do it here instead. | |
1805 | ||
b7ea362b PA |
1806 | 2014-01-08 Pedro Alves <palves@redhat.com> |
1807 | ||
1808 | * gdbthread.h (struct thread_info) <status_pending_p>: New field. | |
1809 | * server.c (visit_actioned_threads, handle_pending_status): New | |
1810 | function. | |
1811 | (handle_v_cont): Factor out parts to ... | |
1812 | (resume): ... this new function. If in all-stop, and a thread | |
1813 | being resumed has a pending status, report it without actually | |
1814 | resuming. | |
1815 | (myresume): Adjust to use the new 'resume' function. | |
1816 | (clear_pending_status_callback, set_pending_status_callback) | |
1817 | (find_status_pending_thread_callback): New functions. | |
1818 | (handle_status): Handle the case of multiple threads having | |
1819 | interesting statuses to report. Report threads' real last signal | |
1820 | instead of always reporting GDB_SIGNAL_TRAP. Look for a thread | |
1821 | with an interesting thread to report the status for, instead of | |
1822 | always reporting the status of the first thread. | |
1823 | ||
28498c42 JB |
1824 | 2014-01-01 Joel Brobecker <brobecker@adacore.com> |
1825 | ||
1826 | * gdbserver.c (gdbserver_version): Set copyright year to 2014. | |
1827 | * gdbreplay.c (gdbreplay_version): Likewise. | |
1828 | ||
f45c82da YZ |
1829 | 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com> |
1830 | ||
1831 | * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set | |
1832 | iov.iov_len with the real length in use. | |
1833 | ||
379a5e2d JB |
1834 | 2013-12-13 Joel Brobecker <brobecker@adacore.com> |
1835 | ||
1836 | * Makefile.in (safe-ctype.o, lbasename.o): New rules. | |
1837 | * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj | |
1838 | for all targets that use win32-low.c. | |
1839 | * win32-low.c (win32_ensure_ntdll_loaded): New function. | |
1840 | (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded. | |
1841 | ||
4210d83e PA |
1842 | 2013-12-13 Pedro Alves <palves@redhat.com> |
1843 | ||
1844 | * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED | |
1845 | if equal to TARGET_WAITKIND_LOADED. | |
1846 | * win32-low.c (cached_status): New static global. | |
1847 | (win32_wait): Add declaration. | |
1848 | (do_initial_child_stuff): Flush all initial pending debug events | |
1849 | up to the initial breakpoint. | |
1850 | (win32_wait): If CACHED_STATUS was set, return that instead | |
1851 | of doing a real wait. Remove the code resuming the execution | |
1852 | of the inferior after receiving a TARGET_WAITKIND_LOADED event | |
1853 | during the initial phase. Also remove the code changing | |
1854 | OURSTATUS->KIND from TARGET_WAITKIND_LOADED to | |
1855 | TARGET_WAITKIND_STOPPED. | |
1856 | ||
e7f0d979 YQ |
1857 | 2013-12-11 Yao Qi <yao@codesourcery.com> |
1858 | ||
1859 | * notif.c (handle_notif_ack): Return 0 if no notification | |
1860 | matches. | |
1861 | ||
ebcf782c DE |
1862 | 2013-11-20 Doug Evans <dje@google.com> |
1863 | ||
1864 | * linux-low.c (linux_set_resume_request): Fix comment. | |
1865 | ||
20ad9378 DE |
1866 | 2013-11-20 Doug Evans <dje@google.com> |
1867 | ||
1868 | * linux-low.c (resume_status_pending_p): Tweak comment. | |
1869 | ||
a196ebeb WT |
1870 | 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com> |
1871 | ||
1872 | * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c, | |
1873 | amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation. | |
1874 | * configure.srv (srv_i386_regobj): Add i386-mpx.o. | |
1875 | (srv_i386_linux_regobj): Add i386-mpx-linux.o. | |
1876 | (srv_amd64_regobj): Add amd64-mpx.o. | |
1877 | (srv_amd64_linux_regobj): Add amd64-mpx-linux.o. | |
1878 | (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml. | |
1879 | (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml. | |
1880 | * i387-fp.c (num_pl_bnd_register) Added constant. | |
1881 | (num_pl_bnd_cfg_registers) Added constant. | |
1882 | (struct i387_xsave) Added reserved area and MPX fields. | |
1883 | (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX. | |
1884 | * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new | |
1885 | function. | |
1886 | (tdesc_i386_mpx_linux): Add MPX amd64 target. | |
1887 | (init_registers_amd64_mpx_linux): Declare new function. | |
1888 | (tdesc_amd64_mpx_linux): Add MPX amd64 target. | |
1889 | (x86_64_regmap): Add MPX registers. | |
1890 | (x86_linux_read_description): Add MPX case. | |
1891 | (initialize_low_arch): Initialize MPX targets. | |
1892 | ||
0080a2f6 TT |
1893 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
1894 | ||
1895 | * configure: Rebuild. | |
1896 | * configure.ac: Don't check for stdlib.h. | |
1897 | * gdbreplay.c: Unconditionally include stdlib.h. | |
1898 | ||
2978b111 TT |
1899 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
1900 | ||
1901 | * config.in: Rebuild. | |
1902 | * configure: Rebuild. | |
1903 | * configure.ac: Don't use AC_HEADER_DIRENT. | |
1904 | ||
a3d08894 TT |
1905 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
1906 | ||
1907 | * server.h: Don't check HAVE_STRING_H. | |
1908 | * gdbreplay.c: Don't check HAVE_STRING_H. | |
1909 | * configure: Rebuild. | |
1910 | ||
0a5dd17d TT |
1911 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
1912 | ||
1913 | * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against | |
1914 | LIBGNU. | |
1915 | ||
1bd2f0ba TT |
1916 | 2013-11-08 Tom Tromey <tromey@redhat.com> |
1917 | ||
1918 | * configure, config.in: Rebuild. | |
1919 | * configure.ac: Remove unused configury. | |
1920 | ||
3266f10b TT |
1921 | 2013-11-08 Tom Tromey <tromey@redhat.com> |
1922 | ||
1923 | * acinclude.m4: Include common.m4, codeset.m4. | |
1924 | * configure, config.in: Rebuild. | |
1925 | * configure.ac: Use GDB_AC_COMMON. | |
1926 | ||
6682d959 AA |
1927 | 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1928 | ||
1929 | * linux-s390-low.c (HWCAP_S390_TE): New define. | |
1930 | (s390_arch_setup): Consider the TE field in the HWCAP for | |
1931 | determining 'have_regset_tdb'. | |
1932 | ||
fd0a4d76 SDJ |
1933 | 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com> |
1934 | ||
1935 | PR gdb/16014 | |
1936 | * tracepoint.c (download_tracepoint_1): Remove unnecessary double | |
1937 | call to sizeof. | |
1938 | ||
1a3d890b PA |
1939 | 2013-10-02 Pedro Alves <palves@redhat.com> |
1940 | ||
1941 | * server.c (process_serial_event): Don't output "GDBserver | |
1942 | exiting" if GDB is connected through stdio. | |
1943 | * target.c (mywait): Likewise, be silent if GDB is connected | |
1944 | through stdio. | |
1945 | ||
97ad4581 JB |
1946 | 2013-10-01 Joel Brobecker <brobecker@adacore.com> |
1947 | ||
1948 | * lynx-low.c (lynx_add_threads_after_attach): New function. | |
1949 | (lynx_attach): Remove call to add_thread. Add call to | |
1950 | lynx_add_threads_after_attach instead. | |
1951 | ||
5b4e221c MF |
1952 | 2013-09-28 Mike Frysinger <vapier@gentoo.org> |
1953 | ||
1954 | * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h | |
1955 | * config.in, configure: Regenerated. | |
1956 | ||
ee47b2f8 YQ |
1957 | 2013-09-18 Yao Qi <yao@codesourcery.com> |
1958 | ||
1959 | PR server/15959 | |
1960 | * server.c (start_inferior): Clear 'resume_info'. | |
1961 | ||
d6707650 | 1962 | 2013-09-16 Jiong Wang <jiwang@tilera.com> |
0f63d4db | 1963 | |
d6707650 JW |
1964 | * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit |
1965 | for each register. | |
1966 | ||
9243dd0e | 1967 | 2013-09-16 Jiong Wang <jiwang@tilera.com> |
0f63d4db | 1968 | |
9243dd0e JW |
1969 | * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add |
1970 | linux-tile-low.o to srv_tgtobj. | |
1971 | ||
c623a6ef WN |
1972 | 2013-09-16 Will Newton <will.newton@linaro.org> |
1973 | ||
1974 | * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero | |
1975 | out regs. | |
1976 | ||
fb71d39e PA |
1977 | 2013-09-06 Pedro Alves <palves@redhat.com> |
1978 | ||
1979 | * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h) | |
1980 | (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h) | |
1981 | (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h) | |
1982 | (server_h, gdbthread_h, linux_low_h, linux_ptrace_h) | |
1983 | (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h) | |
1984 | (mips_linux_watch_h, i386_low_h, win32_low_h): Delete. | |
1985 | ||
8e7e9910 PA |
1986 | 2013-09-06 Pedro Alves <palves@redhat.com> |
1987 | ||
1988 | * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove | |
1989 | explicit header dependencies and use $COMPILE/$POSTCOMPILE. | |
1990 | ||
7c3a12ca PA |
1991 | 2013-09-06 Pedro Alves <palves@redhat.com> |
1992 | ||
1993 | * linux-amd64-ipa.c: Include tracepoint.h. | |
1994 | * linux-i386-ipa.c: Include tracepoint.h. | |
1995 | ||
8eb3d7b6 RW |
1996 | 2013-09-06 Ricard Wanderlof <ricardw@axis.com> |
1997 | ||
1998 | * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro. | |
1999 | (ps_get_thread_area): New function. | |
2000 | ||
eddddb9d RW |
2001 | 2013-09-06 Ricard Wanderlof <ricardw@axis.com> |
2002 | ||
2003 | * linux-crisv32-low.c (elf_gregset_t): Delete typedef. | |
2004 | (initialize_low_arch): Call init_registers_crisv32 rather than | |
2005 | init_register_crisv32. | |
2006 | ||
533b0600 PA |
2007 | 2013-09-05 Pedro Alves <palves@redhat.com> |
2008 | ||
2009 | * server.h (handle_vFile, hostio_last_error_from_errno): Move | |
2010 | to ... | |
2011 | * hostio.h: ... this new file. | |
2012 | * hostio.c, server.c, linux-low.c, nto-low.c, spu-low, | |
2013 | win32-low.c: Include hostio.h. | |
2014 | ||
0ce3d3b5 PA |
2015 | 2013-09-05 Pedro Alves <palves@redhat.com> |
2016 | ||
2017 | * server.h (gdb_client_data, handler_func, callback_handler_func) | |
2018 | (delete_file_handler, add_file_handler, append_callback_event) | |
2019 | (delete_callback_event, start_event_loop, initialize_event_loop): | |
2020 | Move to event-loop.h and include it. | |
2021 | * event-loop.h: New file. | |
2022 | ||
799cdc37 PA |
2023 | 2013-09-05 Pedro Alves <palves@redhat.com> |
2024 | ||
2025 | * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h". | |
2026 | * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls) | |
2027 | (loaded_dll, unloaded_dll): Move to ... | |
2028 | * dll.h: ... this new file. | |
2029 | * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h". | |
2030 | ||
6a6bbd9d PA |
2031 | 2013-09-05 Pedro Alves <palves@redhat.com> |
2032 | ||
2033 | * server.h (current_process, get_thread_process, all_processes) | |
2034 | (add_inferior_to_list, for_each_inferior, current_inferior) | |
2035 | (remove_inferior, add_process, remove_process, find_process_pid) | |
2036 | (have_started_inferiors_p, have_attached_inferiors_p) | |
2037 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id) | |
2038 | (clear_inferiors, find_inferior, find_inferior_id) | |
2039 | (inferior_target_data, set_inferior_target_data) | |
2040 | (inferior_regcache_data, set_inferior_regcache_data): Move to | |
2041 | inferiors.h, and include it. | |
2042 | * inferiors.h: New file. | |
2043 | ||
f699aaba PA |
2044 | 2013-09-05 Pedro Alves <palves@redhat.com> |
2045 | ||
2046 | * server.h (struct emit_ops, current_insn_ptr, emit_error): | |
2047 | Move ... | |
2048 | * ax.h: ... here. | |
2049 | ||
c144c7a0 PA |
2050 | 2013-09-05 Pedro Alves <palves@redhat.com> |
2051 | ||
2052 | * ax.c, linux-low.c, linux-x86-low.c, server.c: Include | |
2053 | tracepoint.h. | |
2054 | * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing) | |
2055 | (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing | |
2056 | (handle_tracepoint_general_set, handle_tracepoint_query) | |
2057 | (tracepoint_finished_step, tracepoint_was_hit) | |
2058 | (release_while_stepping_state_list, current_traceframe) | |
2059 | (in_readonly_region, traceframe_read_mem) | |
2060 | (fetch_traceframe_registers, traceframe_read_sdata) | |
2061 | (traceframe_read_info, struct fast_tpoint_collect_status) | |
2062 | (fast_tracepoint_collecting, force_unlock_trace_buffer) | |
2063 | (handle_tracepoit_bkpts, initialize_low_tracepoint) | |
2064 | (supply_fast_tracepoint_registers) | |
2065 | (supply_static_tracepoint_registers, set_trampoline_buffer_space) | |
2066 | (ipa_tdesc, claim_trampoline_space) | |
2067 | (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close) | |
2068 | (agent_mem_read, agent_get_trace_state_variable_value) | |
2069 | (agent_set_trace_state_variable_value, agent_tsv_read) | |
2070 | (agent_mem_read_string, get_raw_reg_func_addr) | |
2071 | (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ... | |
2072 | * tracepoint.h: ... this new file. | |
2073 | ||
ff42e6ab PA |
2074 | 2013-09-05 Pedro Alves <palves@redhat.com> |
2075 | ||
2076 | * server.h (perror_with_name, error, fatal, warning, paddress) | |
2077 | (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and | |
2078 | include it. | |
2079 | * utils.h: New file. | |
2080 | ||
541af0f4 PA |
2081 | 2013-09-05 Pedro Alves <palves@redhat.com> |
2082 | ||
2083 | * server.h (remote_debug, noack_mode, transport_is_reliable) | |
2084 | (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio) | |
2085 | (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif) | |
2086 | (getpkt, remote_prepare, remote_open, remote_close, write_ok) | |
2087 | (write_enn, initialize_async_io, enable_async_io) | |
2088 | (disable_async_io, check_remote_input_interrupt_request) | |
2089 | (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify) | |
2090 | (dead_thread_notify, prepare_resume_reply) | |
2091 | (decode_address_to_semicolon, decode_address, decode_m_packet) | |
2092 | (decode_M_packet, decode_X_packet, decode_xfer_write) | |
2093 | (decode_search_memory_packet, unhexify, hexify) | |
2094 | (remote_escape_output, unpack_varlen_hex, clear_symbol_cache) | |
2095 | (look_up_one_symbol, relocate_instruction) | |
2096 | (monitor_output): Move to remote-utils.h, and include it. | |
2097 | * remote-utils.h: New file. | |
2098 | ||
eebdf26b PA |
2099 | 2013-09-05 Pedro Alves <palves@redhat.com> |
2100 | ||
2101 | * server.h (_): Delete. | |
2102 | ||
3aafd2ff PA |
2103 | 2013-09-02 Pedro Alves <palves@redhat.com> |
2104 | ||
2105 | * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro. | |
2106 | (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is | |
2107 | allocated. | |
2108 | (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE. | |
2109 | ||
cee83bcb PM |
2110 | 2013-09-02 Pierre Muller <muller@sourceware.org> |
2111 | ||
2112 | * win32-low.c (child_xfer_memory): Check if ReadProcessMemory | |
2113 | or WriteProcessMemory complete successfully and handle | |
2114 | ERROR_PARTIAL_COPY error. | |
2115 | ||
9a13b2fa PA |
2116 | 2013-09-02 Pedro Alves <palves@redhat.com> |
2117 | ||
2118 | * server.c (gdb_read_memory): Return -1 on traceframe memory read | |
2119 | error instead of EIO. | |
2120 | ||
602e3198 JK |
2121 | 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2122 | ||
2123 | PR server/15604 | |
2124 | * linux-low.c: Include filestuff.h. | |
2125 | (linux_create_inferior) <pid == 0>: Call close_most_fds. | |
2126 | * lynx-low.c: Include filestuff.h. | |
2127 | (lynx_create_inferior) <pid == 0>: Call close_most_fds. | |
2128 | * server.c: Include filestuff.h. | |
2129 | (main): Call notice_open_fds. | |
2130 | * spu-low.c: Include filestuff.h. | |
2131 | (spu_create_inferior) <pid == 0>: Call close_most_fds. | |
2132 | ||
96d7229d LM |
2133 | 2013-08-22 Luis Machado <lgustavo@codesourcery.com> |
2134 | ||
2135 | * Makefile.in: Explain why ../target and ../nat are not | |
2136 | listed as include file search paths. | |
2137 | (linux-waitpid.o): New object file rule. | |
2138 | * configure.srv (srv_native_linux_obj): New variable. | |
2139 | Replace all occurrences of linux native object files with | |
2140 | $srv_native_linux_obj. | |
2141 | * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h. | |
2142 | (HAS_NOMMU): Move defining logic to common/linux-ptrace.c. | |
2143 | (linux_enable_event_reporting): Remove declaration. | |
2144 | (my_waitpid): Moved to common/linux-waitpid.c. | |
2145 | (linux_wait_for_event): Pass ptid when calling | |
2146 | linux_enable_event_reporting. | |
2147 | (linux_supports_tracefork_flag): Remove. | |
2148 | (linux_enable_event_reporting): Likewise. | |
2149 | (linux_tracefork_grandchild): Remove. | |
2150 | (STACK_SIZE): Moved to common/linux-ptrace.c. | |
2151 | (linux_tracefork_child): Remove. | |
2152 | (linux_test_for_tracefork): Remove. | |
2153 | (linux_look_up_symbols): Call linux_supports_traceclone. | |
2154 | (initialize_low): Remove call to linux_test_for_tracefork. | |
2155 | * linux-low.h (PTRACE_TYPE_ARG3): Move to | |
2156 | common/linux-ptrace.h. | |
2157 | (PTRACE_TYPE_ARG4): Likewise. | |
2158 | Include linux-ptrace.h. | |
2159 | ||
32940073 PA |
2160 | 2013-08-21 Pedro Alves <palves@redhat.com> |
2161 | ||
2162 | * config.in: Renegerate. | |
2163 | ||
33b60d58 | 2164 | 2013-08-19 Luis Machado <lgustavo@codesourcery.com> |
a261b8f5 | 2165 | |
33b60d58 LM |
2166 | * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../. |
2167 | (SFILES): Remove $(srcdir)/common/target-common.c and | |
2168 | add $(srcdir)/target/waitstatus.c. | |
2169 | (OBS): Remove target-common.o and add waitstatus.o. | |
2170 | (server_h): Remove $(srcdir)/../common/target-common.h and | |
2171 | add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h | |
2172 | and $(srcdir)/../target/waitstatus.h. | |
2173 | (target-common.o): Remove. | |
2174 | (waitstatus.o): New target object file. | |
2175 | * target.h: Do not include target-common.h and | |
2176 | include target/resume.h, target/wait.h and | |
2177 | target/waitstatus.h. | |
2178 | ||
b8e1b30e LM |
2179 | 2013-08-13 Luis Machado <lgustavo@codesourcery.com> |
2180 | ||
2181 | * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE | |
2182 | to PTRACE_TYPE_ARG3. | |
2183 | * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE | |
2184 | to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to | |
2185 | PTRACE_TYPE_ARG4. | |
2186 | * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3. | |
2187 | (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4. | |
2188 | ||
7a60ad40 YQ |
2189 | 2013-07-27 Jie Zhang <jie@codesourcery.com> |
2190 | Daniel Jacobowitz <dan@codesourcery.com> | |
2191 | Yao Qi <yao@codesourcery.com> | |
2192 | ||
2193 | * Makefile.in (SFILES): Add common/mips-linux-watch.c. | |
2194 | (mips-linux-watch.o): New rule. | |
2195 | (mips_linux_watch_h): New variable. | |
2196 | * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to | |
2197 | srv_tgtobj. | |
2198 | * linux-mips-low.c: Include mips-linux-watch.h. | |
2199 | (struct arch_process_info, struct arch_lwp_info): New. | |
2200 | (update_watch_registers_callback): New function. | |
2201 | (mips_linux_new_process, mips_linux_new_thread) New functions. | |
2202 | (mips_linux_prepare_to_resume, mips_insert_point): New | |
2203 | functions. | |
2204 | (mips_remove_point, mips_stopped_by_watchpoint): New | |
2205 | functions. | |
2206 | (rsp_bp_type_to_target_hw_bp_type): New function. | |
2207 | (mips_stopped_data_address): New function. | |
2208 | (the_low_target): Add watchpoint support functions. | |
2209 | ||
de6f69ad YQ |
2210 | 2013-07-27 Yao Qi <yao@codesourcery.com> |
2211 | ||
2212 | * i386-low.c: Include break-common.h. | |
2213 | (enum target_hw_bp_type): Remove. | |
2214 | ||
3360c0bf LM |
2215 | 2013-07-24 Luis Machado <lgustavo@codesourcery.com> |
2216 | ||
2217 | * Makefile.in (SFILES): /common/target-common.c. | |
2218 | (OBS): Add target-common.o. | |
2219 | (server_h): Add $(srcdir)/../common/target-common.h. | |
2220 | (target-common.o): New target. | |
2221 | * server.c (queue_stop_reply_callback): Free | |
2222 | status string after use. | |
2223 | * target.c (target_waitstatus_to_string): Remove. | |
2224 | * target.h: Include target-common.h. | |
2225 | (resume_kind): Likewise. | |
2226 | (target_waitkind): Likewise. | |
2227 | (target_waitstatus): Likewise. | |
2228 | (TARGET_WNOHANG): Likewise. | |
2229 | ||
bd885420 YQ |
2230 | 2013-07-04 Yao Qi <yao@codesourcery.com> |
2231 | ||
2232 | * Makefile.in (host_alias): Use @host_noncanonical@. | |
2233 | (target_alias): Use @target_noncanonical@. | |
2234 | * configure.ac: Use ACX_NONCANONICAL_TARGET and | |
2235 | ACX_NONCANONICAL_HOST. | |
2236 | * configure: Regenerated. | |
2237 | ||
2238 | Revert: | |
2239 | 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com> | |
2240 | ||
2241 | * configure.ac (version_host, version_target): Set and AC_SUBST them. | |
2242 | * configure: Rebuild. | |
2243 | * Makefile.in (version_host, version_target): Get from configure. | |
2244 | (version.c): Use $(version_host) and $(version_target). | |
2245 | ||
17ef446e PA |
2246 | 2013-07-03 Pedro Alves <palves@redhat.com> |
2247 | ||
2248 | * Makefile.in (config.status): Depend on development.sh. | |
2249 | * acinclude.m4: Include libmcheck.m4. | |
2250 | * configure: Regenerate. | |
2251 | ||
7a9a7487 MG |
2252 | 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com> |
2253 | ||
2254 | * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI | |
2255 | attribute inside the parentheses. | |
2256 | (winapi_DebugSetProcessKillOnExit): Ditto. | |
2257 | (winapi_DebugBreakProcess): Ditto. | |
2258 | (winapi_GenerateConsoleCtrlEvent): Ditto. | |
a261b8f5 | 2259 | |
49b64de6 MG |
2260 | 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com> |
2261 | ||
2262 | * notif.h (notif_event): Add a dummy member to avoid compiler | |
2263 | errors. | |
2264 | ||
d5749ee7 PA |
2265 | 2013-07-01 Pedro Alves <palves@redhat.com> |
2266 | ||
2267 | * hostio.c (HOSTIO_PATH_MAX): Define. | |
2268 | (require_filename, handle_open, handle_unlink, handle_readlink): | |
2269 | Use it. | |
2270 | ||
d8d2a3ee PA |
2271 | 2013-07-01 Pedro Alves <palves@redhat.com> |
2272 | ||
2273 | * server.h: Include "pathmax.h". | |
2274 | * linux-low.c: Don't include sys/param.h. | |
2275 | (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of | |
2276 | MAXPATHLEN. | |
2277 | * win32-low.c: Don't include sys/param.h. | |
2278 | (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN. | |
2279 | ||
bc7dea8d PA |
2280 | 2013-07-01 Pedro Alves <palves@redhat.com> |
2281 | ||
2282 | * event-loop.c: Don't check HAVE_UNISTD_H before including | |
2283 | <unistd.h>. | |
2284 | * gdbreplay.c: Likewise. | |
2285 | * remote-utils.c: Likewise. | |
2286 | * server.c: Likewise. | |
2287 | * configure.ac: Don't check for unistd.h. | |
2288 | * configure: Regenerate. | |
2289 | ||
d6c2da54 TT |
2290 | 2013-06-28 Tom Tromey <tromey@redhat.com> |
2291 | ||
2292 | * Makefile.in (version.c): Use version.in, not | |
2293 | common/version.in. | |
2294 | ||
257b6bec MG |
2295 | 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com> |
2296 | ||
2297 | * configure.ac (version_host, version_target): Set and AC_SUBST them. | |
2298 | * configure: Rebuild. | |
2299 | * Makefile.in (version_host, version_target): Get from configure. | |
2300 | (version.c): Use $(version_host) and $(version_target). | |
2301 | ||
86ebe149 DK |
2302 | 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com> |
2303 | ||
2304 | Fix trace-status to output user name without trailing colon. | |
2305 | * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name. | |
2306 | ||
f30aa5af DK |
2307 | 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com> |
2308 | ||
2309 | Fix trace-status to output proper start-time and stop-time. | |
2310 | * tracepoint.c (cmd_qtstatus): Modify trace-status output to | |
2311 | output start time and stop time in hex as gdb expects. | |
2312 | ||
28a93511 YQ |
2313 | 2013-06-26 Pedro Alves <pedro@codesourcery.com> |
2314 | ||
2315 | * tracepoint.c (build_traceframe_info_xml): Output trace state | |
2316 | variables present in the trace buffer. | |
2317 | ||
01208463 TT |
2318 | 2013-06-24 Tom Tromey <tromey@redhat.com> |
2319 | ||
2320 | * Makefile.in (version.c): Use bfd/version.h, common/version.in, | |
2321 | create-version.sh. | |
2322 | (version.o): Remove. | |
2323 | * gdbreplay.c: Include version.h. | |
2324 | (version, host_name): Don't declare. | |
2325 | * server.h: Include version.h. | |
2326 | (version, host_name): Don't declare. | |
2327 | ||
760256f9 PA |
2328 | 2013-06-12 Pedro Alves <palves@redhat.com> |
2329 | ||
2330 | * linux-x86-low.c (linux_is_elf64): Delete global. | |
2331 | (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global | |
2332 | with local linux_pid_exe_is_elf_64_file use. | |
2333 | ||
030031ee PA |
2334 | 2013-06-11 Pedro Alves <palves@redhat.com> |
2335 | ||
2336 | * linux-low.c (regset_disabled, disable_regset): New functions. | |
2337 | (regsets_fetch_inferior_registers) | |
2338 | (regsets_store_inferior_registers): Use them. | |
2339 | (initialize_regsets_info); Don't allocate the disabled_regsets | |
2340 | array here. | |
2341 | * linux-low.h (struct regsets_info) <disabled_regsets>: Extend | |
2342 | comment. | |
2343 | ||
5da6eb0a PA |
2344 | 2013-06-11 Pedro Alves <palves@redhat.com> |
2345 | ||
2346 | * linux-low.c (initialize_regsets_info): Use xcalloc instead of | |
2347 | xmalloc. | |
2348 | ||
7e5aaa09 PA |
2349 | 2013-06-11 Pedro Alves <palves@redhat.com> |
2350 | ||
2351 | * linux-x86-low.c (initialize_low_arch): Call | |
2352 | init_registers_x32_avx_linux. | |
2353 | ||
d878444c JK |
2354 | 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2355 | ||
2356 | Fix compatibility with Android Bionic. | |
2357 | * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if | |
2358 | it is not empty. | |
2359 | ||
3aee8918 PA |
2360 | 2013-06-07 Pedro Alves <palves@redhat.com> |
2361 | ||
5f2b57b5 | 2362 | PR server/14823 |
3aee8918 PA |
2363 | * Makefile.in (OBS): Add tdesc.o. |
2364 | (IPA_OBJS): Add tdesc-ipa.o. | |
2365 | (tdesc-ipa.o): New rule. | |
2366 | * ax.c (gdb_eval_agent_expr): Adjust register_size call to new | |
2367 | interface. | |
2368 | * linux-low.c (new_inferior): Delete. | |
2369 | (disabled_regsets, num_regsets): Delete. | |
2370 | (linux_add_process): Adjust to set the new per-process | |
2371 | new_inferior flag. | |
2372 | (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread. | |
2373 | (linux_wait_for_lwp): Adjust. Only call arch_setup if the event | |
2374 | was a stop. When calling arch_setup, switch the current inferior | |
2375 | to the thread that got an event. | |
2376 | (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread. | |
2377 | (regsets_fetch_inferior_registers) | |
2378 | (regsets_store_inferior_registers): New regsets_info parameter. | |
2379 | Adjust to use it. | |
2380 | (linux_register_in_regsets): New regs_info parameter. Adjust to | |
2381 | use it. | |
2382 | (register_addr, fetch_register, store_register): New usrregs_info | |
2383 | parameter. Adjust to use it. | |
2384 | (usr_fetch_inferior_registers, usr_store_inferior_registers): New | |
2385 | parameter regs_info. Adjust to use it. | |
2386 | (linux_fetch_registers): Get the current inferior's regs_info, and | |
2387 | adjust to use it. | |
2388 | (linux_store_registers): Ditto. | |
2389 | [HAVE_LINUX_REGSETS] (initialize_regsets_info): New. | |
2390 | (initialize_low): Don't initialize the target_regsets here. Call | |
2391 | initialize_low_arch. | |
2392 | * linux-low.h (target_regsets): Delete declaration. | |
2393 | (struct regsets_info): New. | |
2394 | (struct usrregs_info): New. | |
2395 | (struct regs_info): New. | |
2396 | (struct process_info_private) <new_inferior>: New field. | |
2397 | (struct linux_target_ops): Delete the num_regs, regmap, and | |
2398 | regset_bitmap fields. New field regs_info. | |
2399 | [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare. | |
2400 | * i387-fp.c (num_xmm_registers): Delete. | |
2401 | (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno | |
2402 | calls to new interface. | |
2403 | (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache) | |
2404 | (i387_xsave_to_cache): Adjust find_regno calls to new interface. | |
2405 | Infer the number of xmm registers from the regcache's target | |
2406 | description. | |
2407 | * i387-fp.h (num_xmm_registers): Delete. | |
2408 | * inferiors.c (add_thread): Don't install the thread's regcache | |
2409 | here. | |
2410 | * proc-service.c (gregset_info): Fetch the current inferior's | |
2411 | regs_info. Adjust to use it. | |
2412 | * regcache.c: Include tdesc.h. | |
2413 | (register_bytes, reg_defs, num_registers) | |
2414 | (gdbserver_expedite_regs): Delete. | |
2415 | (get_thread_regcache): If the thread doesn't have a regcache yet, | |
2416 | create one, instead of aborting gdbserver. | |
2417 | (regcache_invalidate_one): Rename to ... | |
2418 | (regcache_invalidate_thread): ... this. | |
2419 | (regcache_invalidate_one): New. | |
2420 | (regcache_invalidate): Only invalidate registers of the current | |
2421 | process. | |
2422 | (init_register_cache): Add target_desc parameter, and use it. | |
2423 | (new_register_cache): Ditto. Assert the target description has a | |
2424 | non zero registers_size. | |
2425 | (regcache_cpy): Add assertions. Adjust. | |
2426 | (realloc_register_cache, set_register_cache): Delete. | |
2427 | (registers_to_string, registers_from_string): Adjust. | |
2428 | (find_register_by_name, find_regno, find_register_by_number) | |
2429 | (register_cache_size): Add target_desc parameter, and use it. | |
2430 | (free_register_cache_thread, free_register_cache_thread_one) | |
2431 | (regcache_release, register_cache_size): New. | |
2432 | (register_size): Add target_desc parameter, and use it. | |
2433 | (register_data, supply_register, supply_register_zeroed) | |
2434 | (supply_regblock, supply_register_by_name, collect_register) | |
2435 | (collect_register_as_string, collect_register_by_name): Adjust. | |
2436 | * regcache.h (struct target_desc): Forward declare. | |
2437 | (struct regcache) <tdesc>: New field. | |
2438 | (init_register_cache, new_register_cache): Add target_desc | |
2439 | parameter. | |
2440 | (regcache_invalidate_thread): Declare. | |
2441 | (regcache_invalidate_one): Delete declaration. | |
2442 | (regcache_release): Declare. | |
2443 | (find_register_by_number, register_cache_size, register_size) | |
2444 | (find_regno): Add target_desc parameter. | |
2445 | (gdbserver_expedite_regs, gdbserver_xmltarget): Delete | |
2446 | declarations. | |
2447 | * remote-utils.c: Include tdesc.h. | |
2448 | (outreg, prepare_resume_reply): Adjust. | |
2449 | * server.c: Include tdesc.h. | |
2450 | (gdbserver_xmltarget): Delete declaration. | |
2451 | (get_features_xml, process_serial_event): Adjust. | |
2452 | * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward | |
2453 | declare. | |
2454 | (struct process_info) <tdesc>: New field. | |
2455 | (ipa_tdesc): Declare. | |
2456 | * tdesc.c: New file. | |
2457 | * tdesc.h: New file. | |
2458 | * tracepoint.c: Include tdesc.h. | |
2459 | [IN_PROCESS_AGENT] (ipa_tdesc): Define. | |
2460 | (get_context_regcache): Adjust to pass ipa_tdesc down. | |
2461 | (do_action_at_tracepoint): Adjust to get the register cache size | |
2462 | from the context regcache's description. | |
2463 | (traceframe_walk_blocks): Adjust to get the register cache size | |
2464 | from the current trace frame's description. | |
2465 | (traceframe_get_pc): Adjust to get current trace frame's | |
2466 | description and pass it down. | |
2467 | (gdb_collect): Adjust to get the register cache size from the | |
2468 | IPA's description. | |
2469 | * linux-amd64-ipa.c (tdesc_amd64_linux): Declare. | |
2470 | (gdbserver_xmltarget): Delete. | |
2471 | (initialize_low_tracepoint): Set the ipa's target description. | |
2472 | * linux-i386-ipa.c (tdesc_i386_linux): Declare. | |
2473 | (initialize_low_tracepoint): Set the ipa's target description. | |
2474 | * linux-x86-low.c: Include tdesc.h. | |
2475 | [__x86_64__] (is_64bit_tdesc): New. | |
2476 | (ps_get_thread_area, x86_get_thread_area): Use it. | |
2477 | (i386_cannot_store_register): Rename to ... | |
2478 | (x86_cannot_store_register): ... this. Use is_64bit_tdesc. | |
2479 | (i386_cannot_fetch_register): Rename to ... | |
2480 | (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc. | |
2481 | (x86_fill_gregset, x86_store_gregset): Adjust register_size calls | |
2482 | to new interface. | |
2483 | (target_regsets): Rename to ... | |
2484 | (x86_regsets): ... this. | |
2485 | (x86_get_pc, x86_set_pc): Adjust register_size calls to new | |
2486 | interface. | |
2487 | (x86_siginfo_fixup): Use is_64bit_tdesc. | |
2488 | [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux) | |
2489 | (tdesc_x32_avx_linux, tdesc_x32_linux) | |
2490 | (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux): | |
2491 | Declare. | |
2492 | (x86_linux_update_xmltarget): Delete. | |
2493 | (I386_LINUX_XSAVE_XCR0_OFFSET): Define. | |
2494 | (have_ptrace_getfpxregs, have_ptrace_getregset): New. | |
2495 | (AMD64_LINUX_USER64_CS): New. | |
2496 | (x86_linux_read_description): New, based on | |
2497 | x86_linux_update_xmltarget. | |
2498 | (same_process_callback): New. | |
2499 | (x86_arch_setup_process_callback): New. | |
2500 | (x86_linux_update_xmltarget): New. | |
2501 | (x86_regsets_info): New. | |
2502 | (amd64_linux_regs_info): New. | |
2503 | (i386_linux_usrregs_info): New. | |
2504 | (i386_linux_regs_info): New. | |
2505 | (x86_linux_regs_info): New. | |
2506 | (x86_arch_setup): Reimplement. | |
2507 | (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc. | |
2508 | (x86_emit_ops): Ditto. | |
2509 | (the_low_target): Adjust. Install x86_linux_regs_info, | |
2510 | x86_cannot_fetch_register, and x86_cannot_store_register. | |
2511 | (initialize_low_arch): New. | |
2512 | * linux-ia64-low.c (tdesc_ia64): Declare. | |
2513 | (ia64_fetch_register): Adjust. | |
2514 | (ia64_usrregs_info, regs_info): New globals. | |
2515 | (ia64_regs_info): New function. | |
2516 | (the_low_target): Adjust. | |
2517 | (initialize_low_arch): New function. | |
2518 | * linux-sparc-low.c (tdesc_sparc64): Declare. | |
2519 | (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack): | |
2520 | Adjust. | |
2521 | (sparc_arch_setup): New function. | |
2522 | (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals. | |
2523 | (the_low_target): Adjust. | |
2524 | (initialize_low_arch): New function. | |
2525 | * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l) | |
2526 | (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l) | |
2527 | (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l) | |
2528 | (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l) | |
2529 | (tdesc_powerpc_64l, tdesc_powerpc_altivec64l) | |
2530 | (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l) | |
2531 | (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l) | |
2532 | (tdesc_powerpc_isa205_vsx64l): Declare. | |
2533 | (ppc_cannot_store_register, ppc_collect_ptrace_register) | |
2534 | (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc) | |
2535 | (ppc_set_pc, ppc_get_hwcap): Adjust. | |
2536 | (ppc_usrregs_info): Forward declare. | |
2537 | (!__powerpc64__) ppc_regmap_adjusted: New global. | |
2538 | (ppc_arch_setup): Adjust to the current process'es target | |
2539 | description. | |
2540 | (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset) | |
2541 | (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse) | |
2542 | (ppc_store_evrregset): Adjust. | |
2543 | (target_regsets): Rename to ... | |
2544 | (ppc_regsets): ... this, and make static. | |
2545 | (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals. | |
2546 | (ppc_regs_info): New function. | |
2547 | (the_low_target): Adjust. | |
2548 | (initialize_low_arch): New function. | |
2549 | * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1) | |
2550 | (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1) | |
2551 | (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1) | |
2552 | (tdesc_s390x_linux64v2): Declare. | |
2553 | (s390_collect_ptrace_register, s390_supply_ptrace_register) | |
2554 | (s390_fill_gregset, s390_store_last_break): Adjust. | |
2555 | (target_regsets): Rename to ... | |
2556 | (s390_regsets): ... this, and make static. | |
2557 | (s390_get_pc, s390_set_pc): Adjust. | |
2558 | (s390_get_hwcap): New target_desc parameter, and use it. | |
2559 | [__s390x__] (have_hwcap_s390_high_gprs): New global. | |
2560 | (s390_arch_setup): Adjust to set the current process'es target | |
2561 | description. Don't adjust the regmap. | |
2562 | (s390_usrregs_info, s390_regsets_info, regs_info): New globals. | |
2563 | [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264) | |
2564 | (regs_info_3264): New globals. | |
2565 | (s390_regs_info): New function. | |
2566 | (the_low_target): Adjust. | |
2567 | (initialize_low_arch): New function. | |
2568 | * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux) | |
2569 | (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare. | |
2570 | [__mips64] (init_registers_mips_linux) | |
2571 | (init_registers_mips_dsp_linux): Delete defines. | |
2572 | [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines. | |
2573 | (have_dsp): New global. | |
2574 | (mips_read_description): New, based on mips_arch_setup. | |
2575 | (mips_arch_setup): Reimplement. | |
2576 | (get_usrregs_info): New function. | |
2577 | (mips_cannot_fetch_register, mips_cannot_store_register) | |
2578 | (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset) | |
2579 | (mips_fill_fpregset, mips_store_fpregset): Adjust. | |
2580 | (target_regsets): Rename to ... | |
2581 | (mips_regsets): ... this, and make static. | |
2582 | (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info) | |
2583 | (dsp_regs_info, regs_info): New globals. | |
2584 | (mips_regs_info): New function. | |
2585 | (the_low_target): Adjust. | |
2586 | (initialize_low_arch): New function. | |
2587 | * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt) | |
2588 | (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon): | |
2589 | Declare. | |
2590 | (arm_fill_vfpregset, arm_store_vfpregset): Adjust. | |
2591 | (arm_read_description): New, with bits factored from | |
2592 | arm_arch_setup. | |
2593 | (arm_arch_setup): Reimplement. | |
2594 | (target_regsets): Rename to ... | |
2595 | (arm_regsets): ... this, and make static. | |
2596 | (arm_regsets_info, arm_usrregs_info, regs_info): New globals. | |
2597 | (arm_regs_info): New function. | |
2598 | (the_low_target): Adjust. | |
2599 | (initialize_low_arch): New function. | |
2600 | * linux-m68k-low.c (tdesc_m68k): Declare. | |
2601 | (target_regsets): Rename to ... | |
2602 | (m68k_regsets): ... this, and make static. | |
2603 | (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals. | |
2604 | (m68k_regs_info): New function. | |
2605 | (m68k_arch_setup): New function. | |
2606 | (the_low_target): Adjust. | |
2607 | (initialize_low_arch): New function. | |
2608 | * linux-sh-low.c (tdesc_sharch): Declare. | |
2609 | (target_regsets): Rename to ... | |
2610 | (sh_regsets): ... this, and make static. | |
2611 | (sh_regsets_info, sh_usrregs_info, regs_info): New globals. | |
2612 | (sh_regs_info, sh_arch_setup): New functions. | |
2613 | (the_low_target): Adjust. | |
2614 | (initialize_low_arch): New function. | |
2615 | * linux-bfin-low.c (tdesc_bfin): Declare. | |
2616 | (bfin_arch_setup): New function. | |
2617 | (bfin_usrregs_info, regs_info): New globals. | |
2618 | (bfin_regs_info): New function. | |
2619 | (the_low_target): Adjust. | |
2620 | (initialize_low_arch): New function. | |
2621 | * linux-cris-low.c (tdesc_cris): Declare. | |
2622 | (cris_arch_setup): New function. | |
2623 | (cris_usrregs_info, regs_info): New globals. | |
2624 | (cris_regs_info): New function. | |
2625 | (the_low_target): Adjust. | |
2626 | (initialize_low_arch): New function. | |
2627 | * linux-cris-low.c (tdesc_crisv32): Declare. | |
2628 | (cris_arch_setup): New function. | |
2629 | (cris_regsets_info, cris_usrregs_info, regs_info): New globals. | |
2630 | (cris_regs_info): New function. | |
2631 | (the_low_target): Adjust. | |
2632 | (initialize_low_arch): New function. | |
2633 | * linux-m32r-low.c (tdesc_m32r): Declare. | |
2634 | (m32r_arch_setup): New function. | |
2635 | (m32r_usrregs_info, regs_info): New globals. | |
2636 | (m32r_regs_info): Adjust. | |
2637 | (initialize_low_arch): New function. | |
2638 | * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux) | |
2639 | (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare. | |
2640 | (tic6x_usrregs_info): Forward declare. | |
2641 | (tic6x_read_description): New function, based on ... | |
2642 | (tic6x_arch_setup): ... this. Reimplement. | |
2643 | (target_regsets): Rename to ... | |
2644 | (tic6x_regsets): ... this, and make static. | |
2645 | (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals. | |
2646 | (tic6x_regs_info): New function. | |
2647 | (the_low_target): Adjust. | |
2648 | (initialize_low_arch): New function. | |
2649 | * linux-xtensa-low.c (tdesc_xtensa): Declare. | |
2650 | (xtensa_fill_gregset, xtensa_store_gregset): Adjust. | |
2651 | (target_regsets): Rename to ... | |
2652 | (xtensa_regsets): ... this, and make static. | |
2653 | (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New | |
2654 | globals. | |
2655 | (xtensa_arch_setup, xtensa_regs_info): New functions. | |
2656 | (the_low_target): Adjust. | |
2657 | (initialize_low_arch): New function. | |
2658 | * linux-nios2-low.c (tdesc_nios2_linux): Declare. | |
2659 | (nios2_arch_setup): Set the current process'es tdesc. | |
2660 | (target_regsets): Rename to ... | |
2661 | (nios2_regsets): ... this. | |
2662 | (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals. | |
2663 | (nios2_regs_info): New function. | |
2664 | (the_low_target): Adjust. | |
2665 | (initialize_low_arch): New function. | |
a261b8f5 PA |
2666 | * linux-aarch64-low.c (tdesc_aarch64): Declare. |
2667 | (aarch64_arch_setup): Set the current process'es tdesc. | |
2668 | (target_regsets): Rename to ... | |
2669 | (aarch64_regsets): ... this. | |
2670 | (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals. | |
2671 | (aarch64_regs_info): New function. | |
2672 | (the_low_target): Adjust. | |
2673 | (initialize_low_arch): New function. | |
3aee8918 PA |
2674 | * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare |
2675 | globals. | |
2676 | (target_regsets): Rename to ... | |
2677 | (tile_regsets): ... this. | |
2678 | (tile_regsets_info, tile_usrregs_info, regs_info): New globals. | |
2679 | (tile_regs_info): New function. | |
2680 | (tile_arch_setup): Set the current process'es tdesc. | |
2681 | (the_low_target): Adjust. | |
2682 | (initialize_low_arch): New function. | |
2683 | * spu-low.c (tdesc_spu): Declare. | |
2684 | (spu_create_inferior, spu_attach): Set the new process'es tdesc. | |
2685 | * win32-arm-low.c (tdesc_arm): Declare. | |
2686 | (arm_arch_setup): New function. | |
2687 | (the_low_target): Install arm_arch_setup instead of | |
2688 | init_registers_arm. | |
2689 | * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare. | |
2690 | (init_windows_x86): Rename to ... | |
2691 | (i386_arch_setup): ... this. Set `win32_tdesc'. | |
2692 | (the_low_target): Adjust. | |
2693 | * win32-low.c (win32_tdesc): New global. | |
2694 | (child_add_thread): Don't create the thread cache here. | |
2695 | (do_initial_child_stuff): Set the new process'es tdesc. | |
2696 | * win32-low.h (struct target_desc): Forward declare. | |
2697 | (win32_tdesc): Declare. | |
2698 | * lynx-i386-low.c (tdesc_i386): Declare global. | |
2699 | (lynx_i386_arch_setup): Set `lynx_tdesc'. | |
2700 | * lynx-low.c (lynx_tdesc): New global. | |
2701 | (lynx_add_process): Set the new process'es tdesc. | |
2702 | * lynx-low.h (struct target_desc): Forward declare. | |
2703 | (lynx_tdesc): Declare global. | |
2704 | * lynx-ppc-low.c (tdesc_powerpc_32): Declare global. | |
2705 | (lynx_ppc_arch_setup): Set `lynx_tdesc'. | |
2706 | * nto-low.c (nto_tdesc): New global. | |
2707 | (do_attach): Set the new process'es tdesc. | |
2708 | * nto-low.h (struct target_desc): Forward declare. | |
2709 | (nto_tdesc): Declare. | |
2710 | * nto-x86-low.c (tdesc_i386): Declare. | |
2711 | (nto_x86_arch_setup): Set `nto_tdesc'. | |
2712 | ||
b1fbec62 GB |
2713 | 2013-06-04 Gary Benson <gbenson@redhat.com> |
2714 | ||
2715 | * server.c (handle_query): Add "augmented-libraries-svr4-read+" | |
2716 | to qSupported response when appropriate. | |
2717 | (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read | |
2718 | with nonzero-length annex. | |
2719 | * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle | |
2720 | arguments supplied in annex. | |
2721 | ||
d1ec4ce7 DE |
2722 | 2013-05-31 Doug Evans <dje@google.com> |
2723 | ||
ac44adcb | 2724 | PR server/15594 |
d1ec4ce7 DE |
2725 | * linux-x86-low.c (ps_get_thread_area): Properly extend address to |
2726 | 64 bits in 64-cross-32 environment. | |
2727 | ||
9b25f2d3 PA |
2728 | 2013-05-28 Pedro Alves <palves@redhat.com> |
2729 | ||
2730 | * Makefile.in (clean): Remove reference to aarch64-without-fpu.c. | |
2731 | (aarch64-without-fpu.c): Delete rule. | |
2732 | * configure.srv (aarch64*-*-linux*): Remove references to | |
2733 | aarch64-without-fpu.o and aarch64-without-fpu.xml. | |
2734 | * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove | |
2735 | declaration. | |
2736 | ||
6740dc9c PA |
2737 | 2013-05-24 Pedro Alves <palves@redhat.com> |
2738 | ||
2739 | * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex | |
2740 | instead of strchr/decode_address. Error if the range isn't split | |
2741 | with a ','. Don't assume there's be a ':' in the action. | |
2742 | ||
c2d6af84 PA |
2743 | 2013-05-23 Yao Qi <yao@codesourcery.com> |
2744 | Pedro Alves <palves@redhat.com> | |
2745 | ||
2746 | * linux-low.c (lwp_in_step_range): New function. | |
2747 | (linux_wait_1): If the thread was range stepping and stopped | |
2748 | outside the stepping range, report the stop to GDB. Otherwise, | |
2749 | continue stepping. Add range stepping debug output. | |
2750 | (linux_set_resume_request): Copy the step range from the resume | |
2751 | request to the lwp. | |
2752 | (linux_supports_range_stepping): New. | |
2753 | (linux_target_ops) <supports_range_stepping>: Set to | |
2754 | linux_supports_range_stepping. | |
2755 | * linux-low.h (struct linux_target_ops) | |
2756 | <supports_range_stepping>: New field. | |
2757 | (struct lwp_info) <step_range_start, step_range_end>: New fields. | |
2758 | * linux-x86-low.c (x86_supports_range_stepping): New. | |
2759 | (the_low_target) <supports_range_stepping>: Set to | |
2760 | x86_supports_range_stepping. | |
2761 | * server.c (handle_v_cont): Handle 'r' action. | |
2762 | (handle_v_requests): Append ";r" if the target supports range | |
2763 | stepping. | |
2764 | * target.h (struct thread_resume) <step_range_start, | |
2765 | step_range_end>: New fields. | |
2766 | (struct target_ops) <supports_range_stepping>: | |
2767 | New field. | |
2768 | (target_supports_range_stepping): New macro. | |
2769 | ||
58794e1a JB |
2770 | 2013-05-17 Joel Brobecker <brobecker@adacore.com> |
2771 | ||
2772 | * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid | |
2773 | confusion in comment. | |
2774 | ||
d631c5a7 JB |
2775 | 2013-05-17 Joel Brobecker <brobecker@adacore.com> |
2776 | ||
2777 | * lynx-low.c (struct process_info_private): New type. | |
2778 | (lynx_add_process): New function. | |
2779 | (lynx_create_inferior, lynx_attach): Replace calls to | |
2780 | add_process by calls to lynx_add_process. | |
2781 | (lynx_resume): If PTID is null, then try using | |
2782 | current_process()->private->last_wait_event_ptid. | |
2783 | Add comments. | |
2784 | (lynx_clear_inferiors): Delete. The contents of that function | |
2785 | has been inlined in lynx_mourn; | |
2786 | (lynx_wait_1): Save the ptid in the process's private data. | |
2787 | (lynx_mourn): Free the process' private data. Replace call | |
2788 | to lynx_clear_inferiors by call to clear_inferiors. | |
2789 | ||
96f7a20f YQ |
2790 | 2013-05-17 Yao Qi <yao@codesourcery.com> |
2791 | ||
2792 | * i386-low.c (i386_length_and_rw_bits): Move the comment to | |
2793 | the right place. | |
2794 | ||
db0dfaa0 LM |
2795 | 2013-05-16 Luis Machado <lgustavo@codesourcery.com> |
2796 | ||
2797 | * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR, | |
2798 | PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments. | |
2799 | (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and | |
2800 | PT_TEXT_END_ADDR guards. Update comments. | |
2801 | (linux_target_op) <read_offsets>: Conditionally define to | |
2802 | linux_read_offsets if the target is UCLIBC and if it defines | |
2803 | PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR. | |
2804 | ||
68f5f838 SL |
2805 | 2013-05-06 Sandra Loosemore <sandra@codesourcery.com> |
2806 | Andrew Jenner <andrew@codesourcery.com> | |
2807 | ||
2808 | * Makefile.in (SFILES): Add linux-nios2-low.c. | |
2809 | (clean): Add action to delete nios2-linux.c. | |
2810 | (nios2-linux.c): New rule. | |
2811 | * configure.srv: Add nios2*-*-linux*. | |
2812 | * linux-nios2-low.c: New. | |
2813 | ||
1ebff1fd HAQ |
2814 | 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com> |
2815 | ||
2816 | * tracepoint.c (cmd_qtinit): Call 'stop_tracing'. | |
2817 | ||
f6150862 HZ |
2818 | 2013-04-25 Hui Zhu <hui@codesourcery.com> |
2819 | ||
2820 | PR gdb/15186 | |
f6150862 HZ |
2821 | * ax.c (ax_printf): Add fflush. |
2822 | ||
614c279d TT |
2823 | 2013-04-22 Tom Tromey <tromey@redhat.com> |
2824 | ||
2825 | * Makefile.in (SFILES): Add filestuff.c. | |
2826 | (OBS): Add filestuff.o. | |
2827 | (filestuff.o): New target. | |
2828 | * config.in, configure: Rebuild. | |
2829 | * configure.ac: Check for fdwalk, pipe2. | |
2830 | ||
7d4e5717 PA |
2831 | 2013-04-17 Pedro Alves <palves@redhat.com> |
2832 | ||
2833 | * configure.ac (USE_THREAD_DB): Delete variable. | |
2834 | (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB. | |
2835 | Don't AC_SUBST USE_THREAD_DB. | |
2836 | * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@. | |
2837 | * config.in, configure: Regenerate. | |
2838 | ||
d5c93e41 PA |
2839 | 2013-04-16 Pedro Alves <palves@redhat.com> |
2840 | ||
2841 | * linux-low.h (struct lwp_info) <thread_known>: Move under | |
2842 | the USE_THREAD_DB #ifdef. | |
2843 | ||
04f5fe89 PA |
2844 | 2013-04-16 Pedro Alves <palves@redhat.com> |
2845 | ||
2846 | * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@. | |
2847 | (linux-low.o): Delete rule. | |
2848 | * linux-low.h: Always include "gdb_thread_db.h" instead of | |
2849 | conditionally including thread_db.h. | |
2850 | (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of | |
2851 | HAVE_THREAD_DB_H. | |
2852 | ||
480b27bf JK |
2853 | 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
2854 | ||
2855 | * Makefile.in (install-only): Fix make install regression. | |
2856 | ||
43662968 JK |
2857 | 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
2858 | ||
2859 | Convert man pages to texinfo, new gdbinit.5 texinfo page. | |
2860 | * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1 | |
2861 | installation. | |
2862 | * gdbserver.1: Remove. | |
2863 | ||
3e74e146 PA |
2864 | 2013-03-22 Pedro Alves <palves@redhat.com> |
2865 | ||
2866 | * linux-low.c (handle_extended_wait): Don't call | |
2867 | linux_enable_event_reporting. | |
2868 | ||
a8347a2a TT |
2869 | 2013-03-15 Tony Theodore <tonyt@logyst.com> |
2870 | ||
2871 | PR build/9098: | |
2872 | * Makefile.in (SHELL): Use @SHELL@. | |
2873 | ||
eeb56fa7 SDJ |
2874 | 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com> |
2875 | ||
2876 | * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing | |
2877 | compiler warning. | |
2878 | ||
4fa7e2ff JB |
2879 | 2013-03-13 Joel Brobecker <brobecker@adacore.com> |
2880 | ||
2881 | * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]: | |
2882 | Remove extraneous NULL element. | |
2883 | ||
8ddb1965 YQ |
2884 | 2013-03-13 Yao Qi <yao@codesourcery.com> |
2885 | ||
2886 | * tracepoint.c (traceframe_read_tsv): Look for the last matched | |
2887 | 'V' block in trace frame. | |
2888 | ||
9accd112 MM |
2889 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
2890 | ||
2891 | * target.h (struct target_ops): Add btrace ops. | |
2892 | (target_supports_btrace): New macro. | |
2893 | (target_enable_btrace): New macro. | |
2894 | (target_disable_btrace): New macro. | |
2895 | (target_read_btrace): New macro. | |
2896 | * gdbthread.h (struct thread_info): Add btrace field. | |
2897 | * server.c: Include btrace-common.h. | |
2898 | (handle_btrace_general_set): New function. | |
2899 | (handle_btrace_enable): New function. | |
2900 | (handle_btrace_disable): New function. | |
2901 | (handle_general_set): Call handle_btrace_general_set. | |
2902 | (handle_qxfer_btrace): New function. | |
2903 | (struct qxfer qxfer_packets[]): Add btrace entry. | |
2904 | * inferiors.c (remove_thread): Disable btrace. | |
2905 | * linux-low: Include linux-btrace.h. | |
2906 | (linux_low_enable_btrace): New function. | |
2907 | (linux_low_read_btrace): New function. | |
2908 | (linux_target_ops): Add btrace ops. | |
2909 | * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o. | |
2910 | Add srv_linux_btrace=yes. | |
2911 | (x86_64-*-linux*): Add linux-btrace.o. | |
2912 | Add srv_linux_btrace=yes. | |
2913 | * configure.ac: Define HAVE_LINUX_BTRACE. | |
2914 | * config.in: Regenerated. | |
2915 | * configure: Regenerated. | |
2916 | ||
5cc22e4c MM |
2917 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
2918 | ||
2919 | * server.c (handle_qxfer): Preserve error message if -3 is | |
2920 | returned. | |
2921 | (qxfer): Document the -3 return value. | |
2922 | ||
7c97f91e MM |
2923 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
2924 | ||
2925 | * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c. | |
2926 | (linux_btrace_h): New variable. | |
2927 | (linux-btrace.o): New rule. | |
2928 | ||
be9a119c | 2929 | 2013-03-08 Stan Shebs <stan@codesourcery.com> |
f6f899bf HAQ |
2930 | Hafiz Abid Qadeer <abidh@codesourcery.com> |
2931 | ||
2932 | * tracepoint.c (trace_buffer_size): New global. | |
2933 | (DEFAULT_TRACE_BUFFER_SIZE): New define. | |
2934 | (init_trace_buffer): Change to one-argument function. Allocate | |
2935 | trace buffer memory. | |
2936 | (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to | |
2937 | handle QTBuffer:size packet. | |
2938 | (cmd_bigqtbuffer_size): New function. | |
2939 | (initialize_tracepoint): Call init_trace_buffer with | |
2940 | DEFAULT_TRACE_BUFFER_SIZE. | |
2941 | * server.c (handle_query): Add QTBuffer:size in the | |
2942 | supported packets. | |
2943 | ||
e64f7499 YQ |
2944 | 2013-03-07 Yao Qi <yao@codesourcery.com> |
2945 | ||
2946 | * tracepoint.c (cur_action, cur_step_action): Make them unsigned. | |
2947 | (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead | |
2948 | of -1. | |
2949 | (cmd_qtsp): Adjust condition. Do post increment. | |
2950 | Set cur_action and cur_step_action back to 0. | |
2951 | ||
f0ae6fc3 PA |
2952 | 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com> |
2953 | ||
2954 | PR server/15236 | |
2955 | * linux-low.c (linux_write_memory): Return early success if LEN is | |
2956 | zero. | |
2957 | ||
b5b0b0af CV |
2958 | 2013-03-05 Corinna Vinschen <vinschen@redhat.de> |
2959 | ||
334ad4a8 | 2960 | * configure.srv: Add x86_64-*-cygwin* as target. |
b5b0b0af | 2961 | |
589bc927 TT |
2962 | 2013-02-28 Tom Tromey <tromey@redhat.com> |
2963 | ||
2964 | * configure.ac: Invoke AC_SYS_LARGEFILE. | |
2965 | * configure, config.in: Rebuild. | |
2966 | ||
dfe07582 CV |
2967 | 2013-02-28 Corinna Vinschen <vinschen@redhat.com> |
2968 | ||
2969 | * win32-low.c: Throughout, fix format strings and casts of | |
2970 | printf-like functions to avoid type related warnings on all | |
2971 | platforms. | |
2972 | (get_child_debug_event): Print dwDebugEventCode as hex since | |
2973 | that's how it's usually documented. | |
2974 | ||
736cd585 YQ |
2975 | 2013-02-28 Yao Qi <yao@codesourcery.com> |
2976 | ||
2977 | * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of | |
2978 | pulongest. | |
2979 | ||
e1f58301 JW |
2980 | 2013-02-27 Jiong Wang <jiwang@tilera.com> |
2981 | ||
2982 | * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c. | |
2983 | (reg-tilegx32.c): New rule. | |
2984 | * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj. | |
2985 | * linux-tile-low.c (tile_arch_setup): New function. Invoke | |
2986 | different register info initializer according to elf class. | |
2987 | (init_registers_tilgx32): New function. The tilegx32 register info | |
2988 | initializer. | |
2989 | (tile_fill_gregset): Use "uint_reg_t" to represent register size. | |
2990 | (tile_store_gregset): Likewise. | |
2991 | ||
d171ca78 YQ |
2992 | 2013-02-27 Yao Qi <yao@codesourcery.com> |
2993 | ||
2994 | * server.c (process_point_options): Print debug message when | |
2995 | debug_threads is true. | |
2996 | ||
282bbdf3 YQ |
2997 | 2013-02-26 Yao Qi <yao@codesourcery.com> |
2998 | ||
2999 | * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF. | |
3000 | ||
aca22551 PA |
3001 | 2013-02-19 Pedro Alves <palves@redhat.com> |
3002 | Kai Tietz <ktietz@redhat.com> | |
3003 | ||
3004 | PR gdb/15161 | |
3005 | ||
3006 | * server.c (handle_query) <CRC check>: Use unpack_varlen_hex | |
3007 | instead of strtoul to extract address from packet. | |
3008 | (process_serial_event) <'z'>: Likewise. | |
3009 | ||
4f3cee1c YQ |
3010 | 2013-02-18 Yao Qi <yao@codesourcery.com> |
3011 | ||
3012 | * linux-bfin-low.c (the_low_target): Use NULL instead of 0. | |
3013 | ||
8e1d55a3 PA |
3014 | 2013-02-14 Pedro Alves <palves@redhat.com> |
3015 | ||
3016 | Plug memory leak. | |
3017 | ||
3018 | * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME, | |
3019 | TRACING_NOTES and TRACING_STOP_NOTE before clobbering. | |
3020 | ||
458820da PA |
3021 | 2013-02-14 Pedro Alves <palves@redhat.com> |
3022 | ||
3023 | * tracepoint.c (cmd_qtdpsrc): Use savestring. | |
3024 | ||
baea0dae PA |
3025 | 2013-02-14 Pedro Alves <palves@redhat.com> |
3026 | ||
3027 | * tracepoint.c (save_string): Delete. | |
3028 | (add_tracepoint_action): Use savestring instead of save_string. | |
3029 | ||
0b1afbb3 PA |
3030 | 2013-02-12 Pedro Alves <palves@redhat.com> |
3031 | ||
3032 | * linux-xtensa-low.c: Ditto. | |
3033 | * xtensa-xtregs.c: Ditto. | |
3034 | ||
8a4ac37e PA |
3035 | 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com> |
3036 | ||
3037 | * thread-db.c (thread_db_get_tls_address): NULL pointer check | |
3038 | thread_db. | |
3039 | ||
148de6bb MS |
3040 | 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com> |
3041 | ||
3042 | * linux-aarch64-low.c (aarch64_arch_setup): Clamp | |
3043 | aarch64_num_wp_regs and aarch64_num_bp_regs to | |
3044 | AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively. | |
3045 | ||
55fac6e0 MS |
3046 | 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com> |
3047 | ||
3048 | * linux-aarch64-low.c (ps_get_thread_area): Replace | |
3049 | PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET. | |
3050 | ||
176eb98c MS |
3051 | 2013-02-04 Jim MacArthur <jim.macarthur@arm.com> |
3052 | Marcus Shawcroft <marcus.shawcroft@arm.com> | |
3053 | Nigel Stephens <nigel.stephens@arm.com> | |
3054 | Yufeng Zhang <yufeng.zhang@arm.com> | |
3055 | ||
3056 | * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c. | |
3057 | (aarch64.c, aarch64-without-fpu.c): New targets. | |
3058 | * configure.srv (aarch64*-*-linux*): New. | |
3059 | * linux-aarch64-low.c: New file. | |
3060 | ||
56f7af9c MS |
3061 | 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com> |
3062 | ||
43aaf8b6 | 3063 | * linux-low.c (handle_extended_wait, linux_create_inferior) |
56f7af9c MS |
3064 | (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp) |
3065 | (dequeue_one_deferred_signal, linux_resume_one_thread) | |
3066 | (fetch_register, linux_write_memory, linux_enable_event_reporting) | |
3067 | (linux_tracefork_grandchild, linux_test_for_tracefork) | |
3068 | (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add | |
3069 | PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments | |
3070 | where the argument is 0. | |
3071 | ||
60f662b0 YQ |
3072 | 2013-01-25 Yao Qi <yao@codesourcery.com> |
3073 | ||
3074 | * event-loop.c: Include "queue.h". | |
3075 | (gdb_event_p): New typedef. | |
3076 | (struct gdb_event) <next_event>: Remove. | |
3077 | (event_queue): Change to QUEUE(gdb_event_p). | |
3078 | (async_queue_event): Remove. | |
3079 | (gdb_event_xfree): New. | |
3080 | (initialize_event_loop): New. | |
3081 | (process_event): Use API from QUEUE. | |
3082 | (wait_for_event): Likewise. | |
3083 | * server.c (main): Call initialize_event_loop. | |
3084 | * server.h (initialize_event_loop): Declare. | |
3085 | ||
5ae4861a YQ |
3086 | 2013-01-18 Yao Qi <yao@codesourcery.com> |
3087 | ||
3088 | * ax.h (struct eval_agent_expr_context): New. | |
3089 | (gdb_eval_agent_expr): Update declaration. | |
3090 | * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and | |
3091 | TFRAME. Add new argument CTX. | |
3092 | * server.h (struct eval_agent_expr_context): Declare. | |
3093 | (agent_mem_read, agent_tsv_read): Update declaration. | |
3094 | (agent_mem_read_string): Likewise. | |
3095 | * tracepoint.c (eval_tracepoint_agent_expr): Remove. | |
3096 | (add_traceframe_block): Add new argument TPOINT. | |
3097 | Increase TPOINT->traceframe_usage. | |
3098 | (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of | |
3099 | eval_tracepoint_agent_expr. | |
3100 | (condition_true_at_tracepoint): Likewise. | |
3101 | (agent_mem_read): Remove argument TFRAME. Add argument CTX. | |
3102 | (agent_mem_read_string, agent_tsv_read): Likewise. | |
3103 | ||
85e00e85 YQ |
3104 | 2013-01-16 Yao Qi <yao@codesourcery.com> |
3105 | ||
3106 | * linux-low.c (linux_resume_one_lwp): Don't check | |
3107 | 'lwp->bp_reinsert != 0'. | |
3108 | ||
4039cf45 JB |
3109 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
3110 | Pedro Alves <palves@redhat.com> | |
3111 | ||
3112 | * lynx-low.c (ptrace_request_to_str): Define a temporary | |
3113 | macro and use it to simplify this function's implementation. | |
3114 | ||
9044dee2 JB |
3115 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
3116 | ||
3117 | * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace | |
3118 | sets errno. | |
3119 | ||
e6352c8f JB |
3120 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
3121 | ||
3122 | * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles. | |
3123 | ||
50681a27 JB |
3124 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
3125 | ||
3126 | * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles. | |
3127 | ||
3f6e77ef JB |
3128 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
3129 | ||
3130 | * lynx-low.c (lynx_resume): Use the resume_info parameter | |
3131 | to determine the ptid for the lynx_ptrace call, unless | |
3132 | it is equal to minus_one_ptid, in which case we use the | |
3133 | ptid of the current_inferior. | |
3134 | (lynx_wait_1): After having received a thread create/exit | |
3135 | event, resume the inferior's execution using the signaling | |
3136 | thread's ptid, rather than the old ptid. | |
3137 | ||
7fda33ae JB |
3138 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
3139 | ||
3140 | * lynx-low.c (lynx_resume): Delete variable ret. | |
3141 | ||
b9786c74 JB |
3142 | 2013-01-01 Joel Brobecker <brobecker@adacore.com> |
3143 | ||
3144 | * gdbreplay.c (gdbreplay_version): Update copyright year. | |
3145 | * server.c (gdbserver_version): Likewise. | |
3146 | ||
8b93d60f JB |
3147 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
3148 | ||
3149 | * lynx-low.c (lynx_wait_1): Add debug trace before adding | |
3150 | new thread. | |
3151 | ||
037335a7 JB |
3152 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
3153 | ||
3154 | * lynx-low.c (ptrace_request_to_str): Add handling for | |
3155 | PTRACE_GETTRACESIG. | |
3156 | ||
52d4cbd8 JB |
3157 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
3158 | ||
3159 | * lynx-low.c (lynx_attach): Delete variable new_process. | |
3160 | ||
ab8f6ca9 JB |
3161 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
3162 | ||
3163 | * lynx-low.c (lynx_create_inferior): Delete variable | |
3164 | new_process. | |
3165 | ||
78cbc024 JB |
3166 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
3167 | ||
3168 | * lynx-low.c (ptrace_request_to_str): Do not handle | |
3169 | PTRACE_GETTHREADLIST if this macro does not exist. | |
3170 | ||
14a00470 YQ |
3171 | 2012-12-15 Yao Qi <yao@codesourcery.com> |
3172 | ||
3173 | * Makefile.in (OBS): Add notif.o. | |
3174 | * notif.c, notif.h: New. | |
3175 | * server.c: Include "notif.h". | |
3176 | (struct vstop_notif) <next>: Remove. | |
3177 | <base>: New field. | |
3178 | (queue_stop_reply): Update. | |
3179 | (push_event, send_next_stop_reply): Remove. | |
3180 | (discard_queued_stop_replies): Update. | |
3181 | (notif_stop): New variable. | |
3182 | (handle_v_stopped): Remove. | |
3183 | (handle_v_requests): Don't call handle_v_stopped. Call | |
3184 | handle_ack_notif instead. | |
3185 | (queue_stop_reply_callback): Call notif_event_enque instead | |
3186 | of queue_stop_reply. | |
3187 | (handle_status): Don't call send_next_stop_reply, call | |
3188 | notif_write_event instead. | |
3189 | (kill_inferior_callback): Likewise. | |
3190 | (detach_or_kill_inferior_callback): Likewise. | |
3191 | (main): Call initialize_notif. | |
3192 | (process_serial_event): Call QUEUE_is_empty. | |
3193 | (handle_target_event): Call notif_push instead of push event. | |
3194 | * server.h (push_event): Remove declaration. | |
3195 | ||
61c125b9 TT |
3196 | 2012-12-10 Tom Tromey <tromey@redhat.com> |
3197 | ||
3198 | * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre) | |
3199 | (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New | |
3200 | macros. | |
3201 | (.c.o): Rewrite. | |
3202 | (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o) | |
3203 | (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o) | |
3204 | (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o) | |
3205 | (amd64-linux-ipa.o, ax.o): Rewrite. | |
3206 | (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o) | |
3207 | (proc-service.o, regcache.o, remote-utils.o, server.o, target.o) | |
3208 | (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove. | |
3209 | (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o) | |
3210 | (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o) | |
3211 | (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite. | |
3212 | (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o) | |
3213 | (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o) | |
3214 | (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o) | |
3215 | (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o) | |
3216 | (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o) | |
3217 | (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o) | |
3218 | (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o) | |
3219 | (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o) | |
3220 | (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o) | |
3221 | (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o) | |
3222 | (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o) | |
3223 | (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o) | |
3224 | (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o) | |
3225 | (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o) | |
3226 | (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o) | |
3227 | (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o) | |
3228 | (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o) | |
3229 | (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o) | |
3230 | (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o) | |
3231 | (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o) | |
3232 | (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o) | |
3233 | (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o) | |
3234 | (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o) | |
3235 | (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o) | |
3236 | (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o) | |
3237 | (reg-tilegx.o): Remove. | |
3238 | (all_object_files): New macro. | |
3239 | Include .deps files. | |
3240 | * aclocal.m4, configure: Rebuild. | |
3241 | * acinclude.m4: Include depstand.m4, lead-dot.m4. | |
3242 | * configure.ac: Invoke ZW_CREATE_DEPDIR, | |
3243 | ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition. | |
3244 | ||
e90e9ad9 TT |
3245 | 2012-12-05 Tom Tromey <tromey@redhat.com> |
3246 | ||
3247 | PR gdb/14917: | |
3248 | * server.h (current_insn_ptr, emit_error): Declare 'extern'. | |
3249 | ||
02d403bf | 3250 | 2012-11-28 Markus Metzger <markus.t.metzger@intel.com> |
945bf713 MM |
3251 | |
3252 | * configure.ac: Check for linux/perf_event.h. | |
3253 | * config.in: Regenerated. | |
3254 | * configure: Regenerated. | |
3255 | ||
0270a750 PA |
3256 | 2012-11-26 Maxime Villard <rustyBSD@gmx.fr> |
3257 | ||
3258 | * hostio.c (handle_readlink): Decrease buffer size | |
3259 | parameter passed to readlink by one byte. | |
3260 | ||
8c29b58e YQ |
3261 | 2012-11-26 Yao Qi <yao@codesourcery.com> |
3262 | ||
3263 | * configure.ac (build_warnings): Append '-Wempty-body'. | |
3264 | * configure: Regenerated. | |
3265 | * linux-low.c (linux_create_inferior): Use braces for empty 'if' | |
3266 | body. | |
3267 | ||
8bdce1ff PM |
3268 | 2012-11-15 Pierre Muller <muller@sourceware.org> |
3269 | ||
3270 | * configure.ac (AC_CHECK_HEADERS): Add wait.h header. | |
3271 | * config.in: Regenerate. | |
3272 | * configure: Regenerate. | |
3273 | * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header. | |
3274 | Use "gdb_wait.h" header instead of <sys/wait.h> header. | |
3275 | * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header. | |
3276 | * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h> | |
3277 | header. | |
3278 | * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header | |
3279 | instead of <sys/wait.h> header. | |
3280 | * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header. | |
3281 | ||
02d403bf | 3282 | 2012-11-13 Markus Metzger <markus.t.metzger@intel.com> |
3ba6ad0f MM |
3283 | |
3284 | * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER | |
3285 | (various make rules): Remove -DGDBSERVER | |
3286 | ||
fbd5db48 YQ |
3287 | 2012-11-09 Yao Qi <yao@codesourcery.com> |
3288 | ||
3289 | * spu-low.c (current_ptid): Move it to .. | |
3290 | * gdbthread.h: ... here. New. | |
3291 | * remote-utils.c (read_ptid): Use macro 'current_ptid'. | |
3292 | * server.c (myresume, process_serial_event): Likewise. | |
3293 | * thread-db.c (thread_db_find_new_threads): Likewise. | |
3294 | * tracepoint.c (run_inferior_command): Likewise. | |
3295 | ||
b3dc46ff AB |
3296 | 2012-10-01 Andrew Burgess <aburgess@broadcom.com> |
3297 | ||
3298 | * server.c (handle_search_memory_1): Include access length in | |
3299 | warning message. | |
3300 | ||
07c04788 HPN |
3301 | 2012-09-05 Michael Brandt <michael.brandt@axis.com> |
3302 | ||
3303 | * linux-crisv32-low.c: Fix compile errors. | |
3304 | ||
918d227b YQ |
3305 | 2012-09-04 Yao Qi <yao@codesourcery.com> |
3306 | ||
3307 | * tracepoint.c (cmd_qtsv): Adjust debug message. | |
3308 | Don't check CUR_TPOINT. | |
3309 | ||
18c1b81a YQ |
3310 | 2012-08-28 Yao Qi <yao@codesourcery.com> |
3311 | ||
3312 | * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF. | |
3313 | * server.h: Include 'libiberty.h' and 'ansidecl.h'. | |
3314 | (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove. | |
3315 | Remove declarations of xmalloc, xreallloc, xstrdup and | |
3316 | freeargv. | |
3317 | * Makefile.in (libiberty_h): New. | |
3318 | (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'. | |
3319 | (linux-bfin-low.o): Append dependency 'libiberty.h'. | |
3320 | ||
dc82f37b YQ |
3321 | 2012-08-23 Yao Qi <yao@codesourcery.com> |
3322 | ||
3323 | * server.h: Remove declaration of 'xsnprintf'. | |
3324 | ||
406b1477 KS |
3325 | 2012-08-22 Keith Seitz <keiths@redhat.com> |
3326 | ||
3327 | * server.h: Include build-gnulib-gbserver/config.h. | |
3328 | * gdbreplay.c: Likewise. | |
3329 | ||
e6712ff1 DE |
3330 | 2012-08-08 Doug Evans <dje@google.com> |
3331 | ||
3332 | * Makefile.in (SFILES): Add gdb_vecs.c. | |
3333 | (OBS): Add gdb_vecs.o. | |
3334 | (gdb_vecs_h, host_defs_h): New variables. | |
3335 | (thread-db.o): Add $(gdb_vecs_h) dependency. | |
3336 | (gdb_vecs.o): New rule. | |
3337 | * thread-db.c: #include "gdb_vecs.h". | |
3338 | (thread_db_load_search): Use a vector to iterate over path elements. | |
3339 | Handle text appearing after "$pdir". | |
3340 | ||
3341 | * configure.ac: Add check for strstr. | |
3342 | * config.in: Regenerate. | |
3343 | * configure: Regenerate. | |
3344 | ||
7c3270ae UW |
3345 | 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
3346 | ||
3347 | * hostio.c (handle_pread): If pread fails, fall back to attempting | |
3348 | lseek/read. | |
3349 | (handle_pwrite): Likewise for pwrite. | |
3350 | ||
b62e2b27 UW |
3351 | 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
3352 | ||
3353 | * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish | |
3354 | between unsupported TYPE and unimplementable ADDR/LEN combination. | |
3355 | (arm_insert_point): Act on new return value. | |
3356 | ||
78a99e91 PA |
3357 | 2012-07-31 Pedro Alves <palves@redhat.com> |
3358 | ||
3359 | * server.c (process_point_options): Only skip tokens if we find | |
3360 | one that is unrecognized. Don't treat 'X' specially while | |
3361 | skipping unrecognized tokens. | |
3362 | ||
fcf303ab UW |
3363 | 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org> |
3364 | ||
3365 | * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt | |
3366 | to 4-byte-align HW breakpoint addresses for Thumb. | |
3367 | ||
7255706c YQ |
3368 | 2012-07-27 Yao Qi <yao@codesourcery.com> |
3369 | ||
3370 | PR remote/14161. | |
3371 | ||
3372 | * server.h: Declare gdb_agent_about_to_close. | |
3373 | * target.c (kill_inferior): Include "agent.h". | |
3374 | New. Send command 'kill'. | |
3375 | * target.h (kill_inferior): Removed macro. | |
3376 | * tracepoint.c (gdb_agent_about_to_close): New. | |
3377 | (gdb_agent_helper_thread): Handle command 'close'. | |
3378 | Wait endlessly until the inferior stops. | |
3379 | Install gdb_agent_remove_socket to atexit hook. | |
3380 | (agent_socket_name): New static variable. | |
3381 | (gdb_agent_socket_init): Replace local variable 'name' with | |
3382 | 'agent_socket_name'. | |
3383 | (gdb_agent_remove_socket): New. | |
3384 | ||
5a3f286f YQ |
3385 | 2012-07-27 Yao Qi <yao@codesourcery.com> |
3386 | ||
3387 | * server.c (process_point_options): Stop at 'X' when parsing. | |
3388 | ||
961bd387 ME |
3389 | 2012-07-19 Michael Eager <eager@eagercon.com> |
3390 | ||
a261b8f5 | 3391 | * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate |
961bd387 ME |
3392 | to hw_execute. |
3393 | * linux-x86-low.c (x86_insert_point, x86_remove_point): | |
3394 | Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del | |
3395 | hardware breakpoint. | |
3396 | ||
aa7c7447 JK |
3397 | 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
3398 | ||
3399 | * gdbserver/linux-low.c (initialize_low): Call | |
3400 | linux_ptrace_init_warnings. | |
3401 | ||
7f216e7c DE |
3402 | 2012-07-02 Doug Evans <dje@google.com> |
3403 | ||
3404 | * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from | |
3405 | pointer to int. | |
3406 | ||
d3ce09f5 SS |
3407 | 2012-07-02 Stan Shebs <stan@codesourcery.com> |
3408 | ||
3409 | * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define. | |
3410 | (ax.o): Add it to build rule. | |
3411 | (ax-ipa.o): Ditto. | |
3412 | (OBS): Add format.o. | |
3413 | (IPA_OBS): Add format.o. | |
3414 | * server.c (handle_query): Claim support for breakpoint commands. | |
3415 | (process_point_options): Add command case. | |
3416 | (process_serial_event): Leave running if there are printfs in | |
3417 | effect. | |
3418 | * mem-break.h (any_persistent_commands): Declare. | |
3419 | (add_breakpoint_commands): Declare. | |
3420 | (gdb_no_commands_at_breakpoint): Declare. | |
3421 | (run_breakpoint_commands): Declare. | |
3422 | * mem-break.c (struct point_command_list): New struct. | |
3423 | (struct breakpoint): New field command_list. | |
3424 | (any_persistent_commands): New function. | |
3425 | (add_commands_to_breakpoint): New function. | |
3426 | (add_breakpoint_commands): New function. | |
3427 | (gdb_no_commands_at_breakpoint): New function. | |
3428 | (run_breakpoint_commands): New function. | |
3429 | * linux-low.c (linux_wait_1): Test for and run breakpoint commands | |
3430 | locally. | |
3431 | * ax.c: Include format.h. | |
3432 | (ax_printf): New function. | |
3433 | (gdb_eval_agent_expr): Add printf opcode. | |
3434 | ||
2f8f6aed YQ |
3435 | 2012-06-13 Yao Qi <yao@codesourcery.com> |
3436 | ||
3437 | * server.c (start_inferior): Remove duplicated writes to fields | |
3438 | 'last_resume_kind' and 'last_status' of 'current_inferior'. | |
3439 | ||
0c9070b3 YQ |
3440 | 2012-06-12 Yao Qi <yao@codesourcery.com> |
3441 | Pedro Alves <palves@redhat.com> | |
3442 | ||
3443 | * linux-low.c (linux_set_resume_request): Simplify predicate. Add | |
3444 | comment. | |
3445 | * server.c (handle_v_cont): Extend comment. | |
3446 | ||
c52daf70 YQ |
3447 | 2012-06-11 Yao Qi <yao@codesourcery.com> |
3448 | ||
3449 | * linux-low.c (linux_attach): Add 'static'. | |
3450 | ||
d38bbb0a YQ |
3451 | 2012-06-06 Yao Qi <yao@codesourcery.com> |
3452 | ||
3453 | * ax.c (gdb_eval_agent_expr): Print `top' in hex. | |
3454 | ||
89dc0afd JK |
3455 | 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
3456 | ||
3457 | Fix gcc -flto compilation warning. | |
3458 | * server.c (main): Make variable multi_mode and attach volatile. | |
3459 | ||
75f62ce7 TJB |
3460 | 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
3461 | ||
3462 | * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP | |
3463 | if the platform doesn't know about it. | |
3464 | ||
65f479b6 PA |
3465 | 2012-05-30 Jeff Kenton <jkenton@tilera.com> |
3466 | ||
3467 | * Makefile.in (SFILES): Add linux-tile-low.c. | |
3468 | (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules. | |
3469 | * configure.srv: Handle tilegx-*-linux*. | |
3470 | * linux-tile-low.c: New file. | |
3471 | ||
0c5bf5a9 JK |
3472 | 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3473 | ||
3474 | * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1. | |
3475 | ||
a493e3e2 PA |
3476 | 2012-05-24 Pedro Alves <palves@redhat.com> |
3477 | ||
3478 | PR gdb/7205 | |
3479 | ||
43aaf8b6 | 3480 | Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. |
a493e3e2 | 3481 | |
2ea28649 PA |
3482 | 2012-05-24 Pedro Alves <palves@redhat.com> |
3483 | ||
3484 | PR gdb/7205 | |
3485 | ||
3486 | Replace target_signal with gdb_signal throughout. | |
3487 | ||
8d409d16 MR |
3488 | 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com> |
3489 | ||
3490 | * linux-low.c (linux_store_registers): Avoid the copying sequence | |
3491 | when no data has been retrieved by ptrace. | |
3492 | ||
23512c01 MGD |
3493 | 2012-05-22 Will Deacon <will.deacon@arm.com> |
3494 | ||
3495 | * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)): | |
3496 | Include asm/ptrace.h. | |
3497 | (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not | |
3498 | already defined. | |
3499 | ||
4934b29e MR |
3500 | 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com> |
3501 | ||
3502 | * linux-low.c (linux_store_registers): Don't re-retrieve data | |
3503 | with ptrace that has already been obtained from /proc. Always | |
3504 | copy any data retrieved with ptrace to the buffer supplied. | |
3505 | ||
bde24c0a PA |
3506 | 2012-05-11 Yao Qi <yao@codesourcery.com> |
3507 | Pedro Alves <palves@redhat.com> | |
3508 | ||
3509 | * linux-low.c (enum stopping_threads_kind): New. | |
3510 | (stopping_threads): Change type to `enum stopping_threads_kind'. | |
3511 | (handle_extended_wait): If stopping and suspending threads, leave | |
3512 | the new_lwp suspended too. | |
3513 | (linux_wait_for_event): Adjust. | |
3514 | (stop_all_lwps): Set `stopping_threads' to | |
3515 | STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on | |
3516 | whether we're suspending threads or just stopping them. Assert no | |
3517 | recursion happens. | |
3518 | ||
623b6bdf YQ |
3519 | 2012-04-29 Yao Qi <yao@codesourcery.com> |
3520 | ||
3521 | * server.h: Move some code to ... | |
3522 | * gdbthread.h: ... here. New. | |
3523 | * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h | |
3524 | (remote-utils.o, server.o, target.o tracepoint.o): Likewise. | |
3525 | (nto-low.o, win32-low.o): Likewise. | |
3526 | * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h. | |
3527 | * regcache.c, remote-utils.c, server.c: Likewise. | |
3528 | * target.c, tracepoint.c, win32-low.c: Likewise. | |
3529 | ||
f15f9948 TJB |
3530 | 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
3531 | ||
3532 | * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c. | |
3533 | (PTRACE_ARG4_TYPE): Likewise. | |
3534 | (PTRACE_XFER_TYPE): Likewise. | |
3535 | * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of | |
3536 | ptrace to PTRACE_ARG3_TYPE. | |
3537 | * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h. | |
3538 | (PTRACE_ARG4_TYPE): Likewise. | |
3539 | (PTRACE_XFER_TYPE): Likewise. | |
3540 | (linux_detach_one_lwp): Cast fourth argument of | |
3541 | ptrace to long then PTRACE_ARG4_TYPE. | |
3542 | (regsets_fetch_inferior_registers): Cast third argument of | |
3543 | ptrace to long then PTRACE_ARG3_TYPE. | |
3544 | (regsets_store_inferior_registers): Likewise. | |
3545 | ||
38ea300a PA |
3546 | 2012-04-20 Pedro Alves <palves@redhat.com> |
3547 | ||
3548 | * configure: Regenerate. | |
3549 | ||
c971b7fa PA |
3550 | 2012-04-19 Pedro Alves <palves@redhat.com> |
3551 | ||
43aaf8b6 | 3552 | * Makefile.in (GNULIB_BUILDDIR): New. |
c971b7fa | 3553 | (LIBGNU, INCGNU, GNULIB_H): Adjust. |
43aaf8b6 PA |
3554 | (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New. |
3555 | (all, install-only, uninstall, clean-info, all-lib, clean): No | |
3556 | longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do. | |
3557 | (maintainer-clean realclean distclean): Use subdir_do. | |
3558 | (subdir_do): New. | |
3559 | (gnulib/import/Makefile): Adjust. Replace gnulib/import with | |
c971b7fa | 3560 | $(GNULIB_BUILDDIR). Don't pass argument to config.status. |
43aaf8b6 PA |
3561 | * acinclude.m4: Include acx_configure_dir.m4. |
3562 | * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE | |
3563 | calls. Call AC_PROG_RANLIB. Configure gnulib using | |
3564 | ACX_CONFIGURE_DIR. | |
3565 | (GNULIB): New. | |
3566 | (GNULIB_STDINT_H): Adjust. | |
3567 | (AC_OUTPUT): Don't output gnulib/Makefile anymore. | |
3568 | * gdbreplay.c: Include build-gnulib/config.h. | |
3569 | * server.h: Likewise. | |
3570 | * aclocal.m4: Regenerate. | |
3571 | * config.in: Regenerate. | |
3572 | * configure: Regenerate. | |
c971b7fa | 3573 | |
809277f8 PA |
3574 | 2012-04-19 Pedro Alves <palves@redhat.com> |
3575 | ||
3576 | * Makefile.in (LIBGNU, INCGNU): Adjust. | |
3577 | (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust. | |
3578 | (all, install-only, uninstall, clean-info, all-lib, clean) | |
3579 | (maintainer-clean, Makefile, gnulib/Makefile): Adjust. | |
3580 | * configure.ac: Adjust AC_OUTPUT output. | |
3581 | * aclocal.m4: Regenerate. | |
3582 | * configure: Regenerate. | |
3583 | ||
fd9bb8b8 PA |
3584 | 2012-04-19 Pedro Alves <palves@redhat.com> |
3585 | ||
3586 | * Makefile.in (generated_files): New. | |
3587 | (server_h): Remove the explicit dependency on config.h, and depend | |
3588 | on $generated_files. | |
3589 | ||
1c298c66 PA |
3590 | 2012-04-19 Pedro Alves <palves@redhat.com> |
3591 | ||
3592 | * Makefile.in (INCGNU): Add -Ignulib. | |
3593 | ||
57c4b50b PA |
3594 | 2012-04-19 Pedro Alves <palves@redhat.com> |
3595 | ||
3596 | * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ... | |
3597 | (INCGNU): ... this, and spell out -I here. | |
3598 | (GNULIB_LIB): Rename to ... | |
3599 | (LIBGNU): ... this. | |
3600 | (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust. | |
3601 | ||
1030e047 PA |
3602 | 2012-04-19 Pedro Alves <palves@redhat.com> |
3603 | ||
3604 | * config.in: Regenerate. | |
3605 | ||
447d4319 PA |
3606 | 2012-04-19 Pedro Alves <palves@redhat.com> |
3607 | ||
3608 | * configure.ac: Remove AC_CHECK_DECLS check for memmem. | |
3609 | * server.h (memmem): Remove declaration. | |
3610 | * config.in: Regenerate. | |
3611 | * configure: Regenerate. | |
3612 | ||
aad9eab9 YQ |
3613 | 2012-04-19 Yao Qi <yao@codesourcery.com> |
3614 | ||
3615 | * Makefile.in (SFILES): Add common/vec.c. | |
3616 | (OBS): Add vec.o. | |
3617 | (vec.o): New rule. | |
3618 | ||
3e10640f YQ |
3619 | 2012-04-19 Yao Qi <yao@codesourcery.com> |
3620 | ||
3621 | * remote-utils.c (prepare_resume_reply): Replace with macro | |
3622 | target_core_of_thread. | |
3623 | * server.c (handle_qxfer_threads_proper): Likewise. | |
3624 | * target.h (traget_core_of_thread): New macro. | |
3625 | ||
71622373 PA |
3626 | 2012-04-18 Pedro Alves <palves@redhat.com> |
3627 | ||
3628 | * aclocal.m4: Regenerate. | |
3629 | * configure: Regenerate. | |
3630 | ||
80d26939 YQ |
3631 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
3632 | ||
3633 | * tracepoint.c (cmd_qtstart): Download tracepoints even when they are | |
3634 | duplicated on address. | |
3635 | ||
42476b70 YQ |
3636 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
3637 | ||
3638 | * tracepoint.c (COPY_FIELD_TO_BUF): New macro. | |
3639 | (struct tracepoint_action_ops) <send>: New field. | |
3640 | (m_tracepoint_action_send, r_tracepoint_action_send): New. | |
3641 | (agent_expr_send, x_tracepoint_action_send): New. | |
3642 | (l_tracepoint_action_send): New. | |
3643 | (cmd_qtdp): Download and install tracepoint | |
3644 | according to `use_agent'. | |
3645 | (run_inferior_command): Add one more parameter `len'. | |
3646 | Update callers. | |
3647 | (tracepoint_send_agent): New. | |
3648 | (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent. | |
3649 | ||
7bc83639 YQ |
3650 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
3651 | ||
3652 | * tracepoint.c (download_tracepoints): Moved to ... | |
3653 | (cmd_qtstart): ... here. | |
3654 | ||
5f18041e YQ |
3655 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
3656 | ||
3657 | * tracepoint.c: Include inttypes.h. | |
3658 | (struct collect_memory_action): Use sized types. | |
3659 | (struct tracepoint): Likewise. | |
3660 | (cmd_qtdp, stop_tracing): Update print specifiers. | |
3661 | (cmd_qtp, response_tracepoint): Likewise. | |
3662 | (collect_data_at_tracepoint): Likewise. | |
3663 | (collect_data_at_step): Likewise. | |
3664 | ||
55a8c076 YQ |
3665 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
3666 | ||
3667 | Import gnulib module inttypes. | |
3668 | * aclocal.m4, config.in, configure: Regenerated. | |
3669 | ||
dc750257 YQ |
3670 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
3671 | ||
3672 | * Makefile.in (maintainer-clean, realclean, distclean): Remove | |
3673 | Makefile and config.status at last. | |
3674 | ||
0ab5faf9 YQ |
3675 | 2012-04-13 Yao Qi <yao@codesourcery.com> |
3676 | ||
3677 | * tracepoint.c: Include stdint.h unconditionally. | |
3678 | ||
18f5fd81 TJB |
3679 | 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
3680 | ||
3681 | * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based | |
3682 | on BFD_HAVE_SYS_PROCFS_TYPE. | |
3683 | * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h. | |
3684 | * configure: Regenerate. | |
3685 | * config.in: Likewise. | |
3686 | ||
4d47af5c L |
3687 | 2012-04-13 H.J. Lu <hongjiu.lu@intel.com> |
3688 | ||
3689 | * Makefile.in (clean): Also remove x32.c x32-linux.c | |
3690 | x32-avx.c x32-avx-linux.c. | |
3691 | (x32.o): New target. | |
3692 | (x32.c): Likewise. | |
3693 | (x32-linux.o): Likewise. | |
3694 | (x32-linux.c): Likewise. | |
3695 | (x32-avx.o): Likewise. | |
3696 | (x32-avx.c): Likewise. | |
3697 | (x32-avx-linux.o): Likewise. | |
3698 | (x32-avx-linux.c): Likewise. | |
3699 | ||
3700 | * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o. | |
3701 | (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o. | |
3702 | (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml. | |
3703 | (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml. | |
3704 | (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml | |
3705 | i386/x32-avx-linux.xml. | |
3706 | ||
3707 | * linux-x86-low.c (init_registers_x32_linux): New prototype. | |
3708 | (init_registers_x32_avx_linux): Likwise. | |
3709 | (x86_linux_update_xmltarget): Call init_registers_x32_linux | |
3710 | or init_registers_x32_avx_linux if linux_is_elf64 is false. | |
3711 | ||
ecedbe58 PA |
3712 | 2012-04-13 Pedro Alves <palves@redhat.com> |
3713 | ||
3714 | * Makefile.in (GNULIB_FLAGS_TO_PASS): New. | |
3715 | (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH. | |
3716 | (all, uninstall, clean-info, all-lib, clean, maintainer-clean) | |
3717 | (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to | |
3718 | the sub-make. | |
3719 | ||
c92b5177 L |
3720 | 2012-04-12 H.J. Lu <hongjiu.lu@intel.com> |
3721 | ||
3722 | * linux-x86-low.c (compat_x32_clock_t): New. | |
3723 | (compat_x32_siginfo_t): Likewise. | |
3724 | (compat_x32_siginfo_from_siginfo): Likewise. | |
3725 | (siginfo_from_compat_x32_siginfo): Likewise. | |
3726 | (linux_is_elf64): Likewise. | |
3727 | (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo | |
3728 | and siginfo_from_compat_x32_siginfo for x32. | |
3729 | (x86_arch_setup): Set linux_is_elf64. | |
3730 | ||
214d508e L |
3731 | 2012-04-12 H.J. Lu <hongjiu.lu@intel.com> |
3732 | ||
3733 | PR gdb/13969 | |
3734 | * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the | |
3735 | e_machine field. | |
3736 | (linux_qxfer_libraries_svr4): Update call to elf_64_file_p. | |
3737 | * linux-low.h (linux_pid_exe_is_elf_64_file): Updated. | |
3738 | * linux-x86-low.c (x86_arch_setup): Check if GDBserver is | |
3739 | compatible with process. | |
3740 | ||
c9a1864a YQ |
3741 | 2012-04-12 Yao Qi <yao@codesourcery.com> |
3742 | ||
3743 | * Makefile.in: Define abs_top_srcdir and abs_srcdir. | |
3744 | (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR. | |
3745 | (install-only, install-info, clean): Handle sub dir gnulib. | |
3746 | (all-lib, am--refresh): New targets. | |
3747 | (memmem.o): Remove target. | |
3748 | * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR. | |
3749 | Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make. | |
3750 | (AC_REPLACE_FUNCS): Remove memmem. | |
3751 | Invoke gl_INIT and AM_INIT_AUTOMAKE. | |
3752 | (AC_OUTPUT): Generate Makefile in gnulib/. | |
3753 | * aclocal.m4, config.in, configure: Regenerated. | |
3754 | ||
367ba2c2 MR |
3755 | 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com> |
3756 | ||
3757 | * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP. | |
3758 | ||
9d236627 PA |
3759 | 2012-04-05 Pedro Alves <palves@redhat.com> |
3760 | ||
3761 | -Werror=strict-aliasing | |
3762 | ||
3763 | * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned | |
3764 | pointer. | |
3765 | ||
111217b3 PA |
3766 | 2012-04-04 Pedro Alves <palves@redhat.com> |
3767 | ||
3768 | * linux-sparc-low.c (sparc_fill_gregset_to_stack) | |
3769 | (sparc_store_gregset_from_stack, sparc_store_gregset) | |
3770 | (sparc_breakpoint_at): Fix formatting. | |
3771 | ||
8365dcf5 TJB |
3772 | 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
3773 | ||
3774 | * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t | |
3775 | are available. | |
3776 | * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef. | |
3777 | [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise. | |
3778 | * config.in: Regenerate. | |
3779 | * configure: Likewise. | |
3780 | ||
689cc2ae PA |
3781 | 2012-03-29 Pedro Alves <palves@redhat.com> |
3782 | ||
3783 | * linux-low.c (regsets_store_inferior_registers) [__sparc__]: | |
3784 | Correct ptrace arguments. | |
3785 | ||
c14dfd32 PA |
3786 | 2012-03-28 Pedro Alves <palves@redhat.com> |
3787 | ||
3788 | * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC. | |
3789 | (IA64_GR0_REGNUM, IA64_FR0_REGNUM) | |
3790 | (IA64_FR1_REGNUM): New defines. | |
3791 | (ia64_fetch_register): New. | |
3792 | (the_low_target): Install it. | |
3793 | * linux-low.h (struct linux_target_ops) <fetch_register>: New | |
3794 | field. | |
3795 | * linux-low.c (linux_fetch_registers): Try the | |
3796 | the_low_target.fetch_register hook first. | |
3797 | ||
3798 | * linux-arm-low.c (the_low_target): Adjust. | |
3799 | * linux-bfin-low.c (the_low_target): Adjust. | |
3800 | * linux-cris-low.c (the_low_target): Adjust. | |
3801 | * linux-crisv32-low.c (the_low_target): Adjust. | |
3802 | * linux-m32r-low.c (the_low_target): Adjust. | |
3803 | * linux-m68k-low.c (the_low_target): Adjust. | |
3804 | * linux-mips-low.c (the_low_target): Adjust. | |
3805 | * linux-ppc-low.c (the_low_target): Adjust. | |
3806 | * linux-s390-low.c (the_low_target): Adjust. | |
3807 | * linux-sh-low.c (the_low_target): Adjust. | |
3808 | * linux-sparc-low.c (the_low_target): Adjust. | |
3809 | * linux-tic6x-low.c (the_low_target): Adjust. | |
3810 | * linux-x86-low.c (the_low_target): Adjust. | |
3811 | * linux-xtensa-low.c (the_low_target): Adjust. | |
3812 | ||
63c88e13 PA |
3813 | 2012-03-26 Pedro Alves <palves@redhat.com> |
3814 | ||
3815 | * server.c (handle_qxfer_libraries): Don't bail early if | |
3816 | the_target->qxfer_libraries_svr4 is not NULL. | |
3817 | ||
fb723180 PA |
3818 | 2012-03-26 Pedro Alves <palves@redhat.com> |
3819 | ||
3820 | * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment. | |
3821 | ||
0afae3cf PA |
3822 | 2012-03-23 Pedro Alves <palves@redhat.com> |
3823 | ||
3824 | * linux-low.c (linux_qxfer_libraries_svr4): Terminate the | |
3825 | "library-list-svr4" element's start tag when the the DSO list is | |
3826 | empty. | |
3827 | ||
485f1ee4 PA |
3828 | 2012-03-23 Pedro Alves <palves@redhat.com> |
3829 | ||
3830 | * linux-low.c (read_one_ptr): Read the inferior's pointer through | |
3831 | a variable whose type size is the same as the inferior's pointer | |
3832 | size. | |
3833 | ||
a5362b9a TS |
3834 | 2012-03-21 Thomas Schwinge <thomas@codesourcery.com> |
3835 | ||
3836 | * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of | |
3837 | struct siginfo. | |
3838 | * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise. | |
3839 | * linux-x86-low.c (x86_siginfo_fixup): Likewise. | |
3840 | * linux-low.h: Include <signal.h>. | |
3841 | (struct siginfo): Remove forward declaration. | |
3842 | (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of | |
3843 | struct siginfo. | |
3844 | ||
d226c142 MF |
3845 | 2012-03-21 Mike Frysinger <vapier@gentoo.org> |
3846 | ||
3847 | * .gitignore: Ignore more files. | |
3848 | ||
122f36ef PA |
3849 | 2012-03-19 Pedro Alves <palves@redhat.com> |
3850 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
3851 | ||
3852 | * server.c (cont_thread, general_thread): Add describing comments. | |
3853 | (start_inferior): Clear `cont_thread'. | |
3854 | (handle_v_cont): Don't set `cont_thread' if resuming all threads | |
3855 | of a process. | |
3856 | ||
fc3e5175 YQ |
3857 | 2012-03-15 Yao Qi <yao@codesourcery.com> |
3858 | ||
3859 | * tracepoint.c (install_tracepoint): Move duplicated tracepoint | |
3860 | handling to ... | |
3861 | (cmd_qtdp): ... here. | |
3862 | ||
8d0d92cd YQ |
3863 | 2012-03-15 Yao Qi <yao@codesourcery.com> |
3864 | ||
3865 | * tracepoint.c (struct tracepoint_action_ops): New. | |
3866 | (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field. | |
3867 | (m_tracepoint_action_download): New. | |
3868 | (r_tracepoint_action_download): New. | |
3869 | (x_tracepoint_action_download): New. | |
3870 | (l_tracepoint_action_download): New. | |
3871 | (add_tracepoint_action): Install `action->ops' according type. | |
3872 | (download_tracepoint_1): Move code `download' function pointer | |
3873 | of various tracepoint_action_ops. | |
3874 | ||
87b0bb13 JK |
3875 | 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
3876 | ||
3877 | * linux-low.c (linux_attach_lwp_1): New variable buffer. Call | |
3878 | linux_ptrace_attach_warnings. | |
3879 | ||
5f572dec JK |
3880 | 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
3881 | ||
3882 | * Makefile.in (linux-ptrace.o): New. | |
3883 | * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*) | |
3884 | (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*) | |
3885 | (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*) | |
3886 | (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux) | |
3887 | (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ | |
3888 | of these targets. | |
3889 | * linux-low.c (linux_attach_lwp_1): Remove redundent else clause. | |
3890 | ||
f4647387 YQ |
3891 | 2012-03-08 Yao Qi <yao@codesourcery.com> |
3892 | Pedro Alves <palves@redhat.com> | |
3893 | ||
3894 | Fix PR server/13392. | |
3895 | * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check | |
3896 | offset of JMP insn. | |
3897 | * tracepoint.c (remove_tracepoint): New. | |
3898 | (cmd_qtdp): Call remove_tracepoint when failed to install. | |
3899 | ||
9b224c5e PA |
3900 | 2012-03-07 Pedro Alves <palves@redhat.com> |
3901 | ||
3902 | * linux-low.c (get_detach_signal): New. | |
3903 | (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT. | |
3904 | Pass on pending signals to PTRACE_DETACH. Check the result of the | |
3905 | ptrace call. | |
3906 | * server.c (program_signals, program_signals_p): New. | |
3907 | (handle_general_set): Handle QProgramSignals. | |
3908 | * server.h (program_signals, program_signals_p): Declare. | |
3909 | ||
e237a7e2 JK |
3910 | 2012-03-05 Pedro Alves <palves@redhat.com> |
3911 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
3912 | ||
3913 | * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found. | |
3914 | New comment why. | |
3915 | ||
5808517f YQ |
3916 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
3917 | ||
3918 | * tracepoint.c (tracepoint_look_up_symbols): Update call to | |
3919 | agent_look_up_symbols. | |
3920 | ||
58b4daa5 YQ |
3921 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
3922 | ||
3923 | * Makefile.in (linux-low.o): Keep dependence on agent.h. | |
3924 | (linux-x86-low.o): Likewise. | |
3925 | * server.h: Remove in_process_agent_loaded. | |
3926 | * tracepoint.c (in_process_agent_loaded): Removed. Moved it | |
3927 | common/agent.c. | |
3928 | Update callers. | |
3929 | ||
8ffcbaaf YQ |
3930 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
3931 | ||
3932 | * tracepoint.c (gdb_agent_capability): New global. | |
3933 | (in_process_agent_loaded_ust): Renamed to | |
3934 | `in_process_agent_supports_ust'. | |
3935 | Update callers. | |
3936 | (in_process_agent_supports_ust): Call agent_capability_check. | |
3937 | (clear_installed_tracepoints): Assert that agent supports | |
3938 | agent. | |
3939 | ||
d1feda86 YQ |
3940 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
3941 | ||
3942 | * linux-low.c (linux_supports_agent): New. | |
3943 | (linux_target_ops): Initialize field `supports_agent' with | |
3944 | linux_supports_agent. | |
3945 | * target.h (struct target_ops) <supports_agent>: New. | |
3946 | (target_supports_agent): New macro. | |
3947 | * server.c (handle_general_set): Handle packet 'QAgent'. | |
3948 | (handle_query): Send `QAgent+'. | |
3949 | * Makefile.in (server.o): Depends on agent.h. | |
3950 | ||
2fa291ac YQ |
3951 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
3952 | ||
3953 | * Makefile.in (OBS): Add agent.o. | |
3954 | Add new rule for agent.o. | |
3955 | Track dependence of tracepoint.c on agent.h. | |
3956 | * tracepoint.c (run_inferior_command_1): | |
3957 | (run_inferior_command): Call agent_run_command. | |
3958 | (gdb_ust_connect_sync_socket): Deleted. Move it to | |
3959 | common/agent.c. | |
3960 | (resume_thread, stop_thread): Likewise. | |
3961 | (gdb_ust_socket_init): Renamed to ... | |
3962 | (gdb_agent_socket_init): ... New. | |
3963 | (gdb_ust_thread): Renamed to ... | |
3964 | (gdb_agent_helper_thread): ... New. | |
3965 | (gdb_ust_init): Move some code to ... | |
3966 | (gdb_agent_init): ... here. New. | |
3967 | [HAVE_UST]: Call gdb_ust_init. | |
3968 | (initialize_tracepoint_ftlib): Call gdb_agent_init. | |
3969 | * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS. | |
3970 | * config.in, configure: Regenerated. | |
3971 | ||
05044653 PA |
3972 | 2012-03-02 Pedro Alves <palves@redhat.com> |
3973 | ||
3974 | * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete. | |
3975 | * linux-low.c (struct simple_pid_list): New. | |
3976 | (stopped_pids): New a struct simple_pid_list pointer. | |
3977 | (add_to_pid_list, pull_pid_from_list): New. | |
3978 | (handle_extended_wait): Don't assume the first signal new children | |
3979 | report is SIGSTOP. Adjust call to pull_pid_from_list. | |
3980 | (linux_wait_for_lwp): Adjust. | |
3981 | ||
8d00225b YQ |
3982 | 2012-03-02 Yao Qi <yao@codesourcery.com> |
3983 | ||
3984 | * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in | |
3985 | debug log. | |
3986 | ||
19560ba5 YQ |
3987 | 2012-03-02 Yao Qi <yao@codesourcery.com> |
3988 | ||
3989 | * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters | |
3990 | `stop_pc' and `tpoint'. Update caller. | |
3991 | ||
1faeff08 MR |
3992 | 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com> |
3993 | ||
3994 | * linux-low.h (linux_target_ops): Add regset_bitmap member. | |
3995 | * linux-low.c (use_linux_regsets): New macro. | |
3996 | [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise. | |
3997 | [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise. | |
3998 | (linux_register_in_regsets): New function. | |
3999 | (usr_fetch_inferior_registers): Skip registers covered by | |
4000 | regsets. | |
4001 | (usr_store_inferior_registers): Likewise. | |
4002 | (usr_fetch_inferior_registers): New macro. | |
4003 | (usr_store_inferior_registers): Likewise. | |
4004 | (linux_fetch_registers): Handle mixed regset/non-regset targets. | |
4005 | (linux_store_registers): Likewise. | |
4006 | * linux-mips-low.c (init_registers_mips_dsp_linux): New | |
4007 | prototype. | |
4008 | (init_registers_mips64_dsp_linux): Likewise. | |
4009 | (init_registers_mips_linux): New macro. | |
4010 | (init_registers_mips_dsp_linux): Likewise. | |
4011 | (mips_dsp_num_regs): Likewise. | |
4012 | (DSP_BASE, DSP_CONTROL): New fallback macros. | |
4013 | (mips_base_regs): New macro. | |
4014 | (mips_regmap): Use it. Fix the size. | |
4015 | (mips_dsp_regmap): New variable. | |
4016 | (mips_dsp_regset_bitmap): Likewise. | |
4017 | (mips_arch_setup): New function. | |
4018 | (mips_cannot_fetch_register): Use the_low_target.regmap rather | |
4019 | than mips_regmap. | |
4020 | (mips_cannot_store_register): Likewise. | |
4021 | (the_low_target): Update .arch_setup, .num_regs and .regmap | |
4022 | initializers. Add .regset_bitmap initializer. | |
4023 | * linux-arm-low.c (the_low_target): Add .regset_bitmap | |
4024 | initializer. | |
4025 | * linux-bfin-low.c (the_low_target): Likewise. | |
4026 | * linux-cris-low.c (the_low_target): Likewise. | |
4027 | * linux-crisv32-low.c (the_low_target): Likewise. | |
4028 | * linux-ia64-low.c (the_low_target): Likewise. | |
4029 | * linux-m32r-low.c (the_low_target): Likewise. | |
4030 | * linux-m68k-low.c (the_low_target): Likewise. | |
4031 | * linux-ppc-low.c (the_low_target): Likewise. | |
4032 | * linux-s390-low.c (the_low_target): Likewise. | |
4033 | * linux-sh-low.c (the_low_target): Likewise. | |
4034 | * linux-sparc-low.c (the_low_target): Likewise. | |
4035 | * linux-tic6x-low.c (the_low_target): Likewise. | |
4036 | * linux-x86-low.c (the_low_target): Likewise. | |
4037 | * linux-xtensa-low.c (the_low_target): Likewise. | |
4038 | * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and | |
4039 | mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml, | |
4040 | mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to | |
4041 | srv_xmlfiles. | |
4042 | * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets. | |
4043 | (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise. | |
4044 | ||
c03e6ccc YQ |
4045 | 2012-02-29 Yao Qi <yao@codesourcery.com> |
4046 | Pedro Alves <palves@redhat.com> | |
4047 | ||
4048 | * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when | |
4049 | `step_over_finished' is true. | |
4050 | ||
644cebc9 PA |
4051 | 2012-02-27 Pedro Alves <palves@redhat.com> |
4052 | ||
4053 | * linux-low.c (pid_is_stopped): Delete, moved to common/. | |
4054 | (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped. | |
4055 | ||
c14d7ab2 PA |
4056 | 2012-02-27 Pedro Alves <palves@redhat.com> |
4057 | ||
4058 | PR server/9684 | |
4059 | * linux-low.c (pid_is_stopped): New. | |
4060 | (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes. | |
4061 | ||
412c89dd LM |
4062 | 2012-02-25 Luis Machado <lgustavo@codesourcery.com> |
4063 | ||
4064 | * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation | |
4065 | of conditions. | |
4066 | ||
b745defe MR |
4067 | 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com> |
4068 | ||
4069 | * linux-mips-low.c (mips_regmap): Correct the index of $f9. | |
4070 | ||
9f3a5c85 LM |
4071 | 2012-02-24 Luis Machado <lgustavo@codesourcery> |
4072 | ||
4073 | * server.c (handle_query): Advertise support for target-side | |
4074 | breakpoint condition evaluation. | |
4075 | (process_point_options): New function. | |
4076 | (process_serial_event): When inserting a breakpoint, check for | |
4077 | a target-side condition that should be evaluated. | |
4078 | ||
4079 | * mem-break.c: Include regcache.h and ax.h. | |
4080 | (point_cond_list_t): New data structure. | |
4081 | (breakpoint) <cond_list>: New field. | |
4082 | (find_gdb_breakpoint_at): Make non-static. | |
4083 | (delete_gdb_breakpoint_at): Clear any target-side | |
4084 | conditions. | |
4085 | (clear_gdb_breakpoint_conditions): New function. | |
4086 | (add_condition_to_breakpoint): Likewise. | |
4087 | (add_breakpoint_condition): Likewise. | |
4088 | (gdb_condition_true_at_breakpoint): Likewise. | |
4089 | (gdb_breakpoint_here): Return result directly instead | |
4090 | of going through a local variable. | |
4091 | ||
4092 | * mem-break.h (find_gdb_breakpoint_at): New prototype. | |
4093 | (clear_gdb_breakpoint_conditions): Likewise. | |
4094 | (add_breakpoint_condition): Likewise. | |
4095 | (gdb_condition_true_at_breakpoint): Likewise. | |
4096 | ||
4097 | * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition. | |
4098 | (need_step_over_p): Take target-side breakpoint condition into | |
4099 | consideration. | |
4100 | ||
5e1dc496 LM |
4101 | 2012-02-24 Luis Machado <lgustavo@codesourcery> |
4102 | ||
4103 | * server.h: Include tracepoint.h. | |
4104 | (agent_mem_read, agent_get_trace_state_variable_value, | |
4105 | agent_set_trace_state_variable_value, | |
4106 | agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr, | |
4107 | get_set_tsv_func_addr): New prototypes. | |
4108 | ||
4109 | * ax.h: New include file. | |
4110 | * ax.c: New source file. | |
4111 | ||
4112 | * tracepoint.c: Include ax.h. | |
4113 | (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes, | |
4114 | agent_expr, eval_result_type): Move to ax.h. | |
4115 | (parse_agent_expr): Rename to ... | |
4116 | (gdb_parse_agent_expr): ... this, make it non-static and move | |
4117 | to ax.h. | |
4118 | (unparse_agent_expr) Rename to ... | |
4119 | (gdb_unparse_agent_expr): ... this, make it non-static and move | |
4120 | to ax.h. | |
4121 | (eval_agent_expr): Rename to ... | |
4122 | (eval_tracepoint_agent_expr): ... this. | |
4123 | (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove | |
4124 | forward declarations. | |
4125 | (add_tracepoint_action): Call gdb_parse_agent_expr (...). | |
4126 | (agent_get_trace_state_variable_value): New function. | |
4127 | (agent_set_trace_state_variable_value): New function. | |
4128 | (cmd_qtdp): Call gdb_parse_agent_expr (...). | |
4129 | (response_tracepoint): Call gdb_unparse_agent_expr (...). | |
4130 | (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...). | |
4131 | (condition_true_at_tracepoint): Likewise. | |
4132 | (parse_agent_expr): Rename to ... | |
4133 | (gdb_parse_agent_expr): ... this and move to ax.c. | |
4134 | (unparse_agent_expr): Rename to ... | |
4135 | (gdb_unparse_agent_expr): ... this and move to ax.c. | |
4136 | (gdb_agent_op_name): Move to ax.c. | |
4137 | (eval_agent_expr): Rename to ... | |
4138 | (gdb_eval_agent_expr): ... this, use regcache passed as parameter | |
4139 | and move to ax.c. | |
4140 | (eval_tracepoint_agent_expr): New function. | |
4141 | (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make | |
43aaf8b6 | 4142 | non-static. |
5e1dc496 LM |
4143 | (current_insn_ptr, emit_error, struct bytecode_address): Move to |
4144 | ax.c. | |
4145 | (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh, | |
4146 | emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not, | |
4147 | emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal, | |
4148 | emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto, | |
4149 | emit_goto, write_goto_address, emit_const, emit_reg, emit_pop, | |
4150 | emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust, | |
4151 | emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto, | |
4152 | emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c. | |
4153 | (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions. | |
4154 | (compile_bytecodes): Remove forward declaration. | |
4155 | (is_goto_target): Move to ax.c. | |
4156 | (compile_bytecodes): Move to ax.c and call | |
4157 | agent_get_trace_state_variable_value (...) and | |
4158 | agent_set_trace_state_variable_value (...). | |
4159 | ||
4160 | * Makefile.in: Update ax.c and IPA dependencies. | |
4161 | ||
277e4e52 PA |
4162 | 2012-02-24 Pedro Alves <palves@redhat.com> |
4163 | ||
4164 | * tracepoint.c (cmd_bigqtbuffer): Rename as ... | |
4165 | (cmd_bigqtbuffer_circular): ... this. Only handle | |
4166 | 'QTBuffer:circular:'. | |
4167 | (handle_tracepoint_general_set): Adjust. | |
4168 | ||
bf4c19f7 YQ |
4169 | 2012-02-16 Yao Qi <yao@codesourcery.com> |
4170 | ||
4171 | * inferiors.c: Move code to ... | |
4172 | * dll.c: .... here. New. | |
4173 | * server.h: Declare clear_dlls. | |
4174 | * Makefile.in (SFILES): Add dll.c. | |
4175 | (OBS): Add dll.o | |
4176 | (dll.o): New rule. | |
4177 | ||
d73f2619 YQ |
4178 | 2012-02-11 Yao Qi <yao@codesourcery.com> |
4179 | ||
4180 | * server.c: (handle_monitor_command): Add a new parameter | |
4181 | `own_buf'. | |
4182 | (handle_query): Update caller. | |
4183 | ||
f8255c2a JB |
4184 | 2012-02-09 Joel Brobecker <brobecker@adacore.com> |
4185 | ||
4186 | * configure.ac: Add readlink to AC_CHECK_FUNCS list. | |
4187 | * configure, config.in: Regenerate. | |
4188 | * hostio.c: Provide an alternate implementation if HAVE_READLINK | |
4189 | is not defined. | |
4190 | ||
da84f473 PA |
4191 | 2012-02-02 Pedro Alves <palves@redhat.com> |
4192 | ||
4193 | Try SIGKILL first, then PTRACE_KILL. | |
4194 | * linux-low.c (linux_kill_one_lwp): New. | |
4195 | (linux_kill_one_lwp): Rename to ... | |
4196 | (kill_one_lwp_callback): ... this. Use the new | |
4197 | linux_kill_one_lwp. | |
4198 | ||
e886a173 PA |
4199 | 2012-02-02 Pedro Alves <palves@redhat.com> |
4200 | ||
4201 | * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current | |
4202 | inferior. | |
4203 | ||
be07f1a2 PA |
4204 | 2012-01-27 Pedro Alves <palves@redhat.com> |
4205 | ||
4206 | * linux-low.c (linux_child_pid_to_exec_file): Delete. | |
4207 | (elf_64_file_p): Make static. | |
4208 | (linux_pid_exe_is_elf_64_file): New. | |
4209 | * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p): | |
4210 | Delete declarations. | |
4211 | (linux_pid_exe_is_elf_64_file): Declare. | |
4212 | * linux-x86-low.c (x86_arch_setup): Use | |
4213 | linux_pid_exe_is_elf_64_file. | |
4214 | ||
d8301ad1 JK |
4215 | 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
4216 | ||
4217 | * linux-low.c (linux_wait_for_event_1): Rename to ... | |
4218 | (linux_wait_for_event): ... here and merge it with former | |
4219 | linux_wait_for_event - new variable wait_ptid, use it. | |
4220 | (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1. | |
4221 | ||
01b17894 PA |
4222 | 2012-01-23 Pedro Alves <palves@redhat.com> |
4223 | ||
4224 | * server.c (main): Avoid yet another case of infinite loop while | |
4225 | detaching/killing after a longjmp. | |
4226 | ||
e825046f JK |
4227 | 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
4228 | ||
4229 | Code cleanup. | |
4230 | * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid. | |
4231 | ||
b9e7b9c3 UW |
4232 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
4233 | ||
4234 | * hostio.c (handle_readlink): New function. | |
4235 | (handle_vFile): Call it to handle "vFile:readlink" packets. | |
4236 | ||
901f9912 UW |
4237 | 2012-01-20 Pedro Alves <palves@redhat.com> |
4238 | Ulrich Weigand <ulrich.weigand@linaro.org> | |
4239 | ||
4240 | * server.c (handle_v_requests): Only support vAttach and vRun to | |
4241 | start multiple processes when in extended protocol mode. | |
4242 | ||
fc1ab1a0 PA |
4243 | 2012-01-17 Pedro Alves <palves@redhat.com> |
4244 | ||
4245 | * tracepoint.c (initialize_tracepoint): Use mmap instead of | |
4246 | memalign plus mprotect to allocate the scratch buffer. | |
4247 | ||
7d5d4e98 PA |
4248 | 2012-01-13 Pedro Alves <palves@redhat.com> |
4249 | ||
4250 | * server.c (attach_inferior): Clear `cont_thread'. | |
4251 | ||
f128d5e9 PA |
4252 | 2012-01-13 Pedro Alves <palves@redhat.com> |
4253 | ||
4254 | * server.c (main): Avoid infinite loop while detaching/killing | |
4255 | after a longjmp. | |
4256 | ||
06db92f0 DE |
4257 | 2012-01-09 Doug Evans <dje@google.com> |
4258 | ||
4259 | * server.c (start_inferior): Set last_ptid in --wrapper case. | |
4260 | ||
32d92999 YQ |
4261 | 2012-01-06 Yao Qi <yao@codesourcery.com> |
4262 | ||
4263 | * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro | |
4264 | defined. | |
4265 | [IN_PROCESS_AGENT] (debug_agent): New global variable. | |
4266 | ||
5e0a92a9 YQ |
4267 | 2012-01-04 Yao Qi <yao@codesourcery.com> |
4268 | ||
4269 | * tracepoint.c (cmd_qtdp): Print debug message | |
4270 | for static tracepoint. | |
4271 | ||
ae639e8c YQ |
4272 | 2012-01-04 Yao Qi <yao@codesourcery.com> |
4273 | ||
4274 | * tracepoint.c (trace_vdebug): Differentiate debug message | |
4275 | between gdbserver and IPA. | |
4276 | ||
f72429c5 YQ |
4277 | 2012-01-03 Yao Qi <yao@codesourcery.com> |
4278 | ||
4279 | * tracepoint.c (tracepoint_was_hit): Don't collect for | |
4280 | static tracepoint. | |
4281 | ||
12c3e59c JB |
4282 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
4283 | ||
4284 | * terminal.h: Reformat copyright header. | |
4285 | ||
67827812 JB |
4286 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
4287 | ||
4288 | * server.c (gdbserver_version): Update copyright year. | |
4289 | * gdbreplay.c (gdbreplay_version): Likewise. | |
4290 | ||
3e52c33d JK |
4291 | 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
4292 | ||
4293 | * linux-low.c (linux_create_inferior): Put empty if clause for write. | |
4294 | ||
4295 | Revert: | |
4296 | 2011-12-18 Hui Zhu <teawater@gmail.com> | |
4297 | * linux-low.c (linux_create_inferior): Save return value to ret. | |
4298 | ||
66f1260e HZ |
4299 | 2011-12-18 Hui Zhu <teawater@gmail.com> |
4300 | ||
4301 | * linux-low.c (linux_create_inferior): Save return value to ret. | |
4302 | ||
e77616d7 DE |
4303 | 2011-12-16 Doug Evans <dje@google.com> |
4304 | ||
e7b06c57 DE |
4305 | * linux-low.c (linux_create_inferior): If stdio connection, |
4306 | redirect stdin from /dev/null, stdout to stderr. | |
4307 | * remote-utils.c (remote_is_stdio): New static global. | |
4308 | (remote_connection_is_stdio): New function. | |
4309 | (remote_prepare): Handle stdio connection. | |
4310 | (remote_open): Ditto. | |
4311 | (remote_close): Don't close stdin for stdio connections. | |
4312 | (read_prim,write_prim): New functions. Replace all calls to | |
4313 | read/write to these. | |
4314 | * server.c (main): Watch for "-" argument. Move call to | |
4315 | remote_prepare before start_inferior. | |
4316 | * server.h (STDIO_CONNECTION_NAME): New macro. | |
4317 | (remote_connection_is_stdio): Declare. | |
4318 | ||
e77616d7 DE |
4319 | * remote-utils.c (prepare_resume_reply): Remove extraneous \n |
4320 | in debugging output. | |
4321 | ||
82067193 YQ |
4322 | 2011-12-15 Yao Qi <yao@codesourcery.com> |
4323 | ||
4324 | * tracepoint.c: Include sys/syscall.h. | |
4325 | (gdb_ust_thread): Remove preprocessor conditional. | |
4326 | ||
82bfbe7e PA |
4327 | 2011-12-14 Pedro Alves <pedro@codesourcery.com> |
4328 | ||
4329 | * linux-low.c (linux_detach_one_lwp): Call | |
4330 | the_low_target.prepare_to_resume before detaching. | |
4331 | ||
712c6575 YQ |
4332 | 2011-12-14 Yao Qi <yao@codesourcery.com> |
4333 | ||
4334 | * tracepoint.c (gdb_ust_thread): Don't ignore return value | |
4335 | of write. | |
4336 | ||
d54d1edf YQ |
4337 | 2011-12-14 Yao Qi <yao@codesourcery.com> |
4338 | ||
4339 | * i386-low.c (i386_low_stopped_data_address): Initialize local | |
4340 | variable `control'. | |
4341 | ||
6210a125 PA |
4342 | 2011-12-13 Pedro Alves <pedro@codesourcery.com> |
4343 | ||
4344 | PR remote/13492 | |
4345 | ||
4346 | * i386-low.c (i386_low_stopped_data_address): Avoid fetching | |
4347 | DR_CONTROL unless necessary. Extend comments. | |
4348 | * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to | |
4349 | DR0-3 if not used. If any watchpoint was set, clear DR_STATUS. | |
4350 | ||
2ece8244 YQ |
4351 | 2011-12-13 Yao Qi <yao@codesourcery.com> |
4352 | ||
4353 | * tracepoint.c (trace_buffer_alloc): Replace magic numbers with | |
4354 | macros. | |
4355 | (upload_fast_traceframes, upload_fast_traceframes): Likewise. | |
4356 | ||
784867a5 JK |
4357 | 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
4358 | ||
4359 | * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist. | |
4360 | Print new debug message for such case. | |
4361 | ||
6bf36717 JK |
4362 | 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
4363 | ||
4364 | Fix overlapping memcpy. | |
4365 | * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for | |
4366 | the read_inferior_memory transfer. | |
4367 | (delete_fast_tracepoint_jump): New variable buf. Use it for the | |
4368 | write_inferior_memory transfer. | |
4369 | (set_fast_tracepoint_jump): New variable buf. Use it for the | |
4370 | read_inferior_memory and write_inferior_memory transfers. | |
4371 | (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at) | |
4372 | (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf. | |
4373 | Use it for the write_inferior_memory transfer. | |
4374 | (check_mem_read, check_mem_write): New gdb_asserts for overlapping | |
4375 | buffers. | |
4376 | ||
50275556 MR |
4377 | 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com> |
4378 | ||
4379 | * linux-low.c (fetch_register, store_register): Make code | |
4380 | consistent, fix formatting. | |
4381 | ||
7325beb4 MR |
4382 | 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com> |
4383 | ||
4384 | * linux-low.c (usr_store_inferior_registers): Factor out code | |
4385 | to handle individual registers into... | |
4386 | (store_register): ... this new function. | |
4387 | ||
c642a434 UW |
4388 | 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com> |
4389 | ||
4390 | * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules. | |
4391 | (s390-linux32v2.o, s390-linux32v2.c): Likewise. | |
4392 | (s390-linux64v1.o, s390-linux64v1.c): Likewise. | |
4393 | (s390-linux64v2.o, s390-linux64v2.c): Likewise. | |
4394 | (s390x-linux64v1.o, s390x-linux64v1.c): Likewise. | |
4395 | (s390x-linux64v2.o, s390x-linux64v2.c): Likewise. | |
4396 | * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects. | |
4397 | (srv_xmlfiles): Add new XML files. | |
4398 | ||
4399 | * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>, | |
4400 | and <sys/uio.h>. | |
4401 | (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined. | |
4402 | (init_registers_s390_linux32v1): Add prototype. | |
4403 | (init_registers_s390_linux32v2): Likewise. | |
4404 | (init_registers_s390_linux64v1): Likewise. | |
4405 | (init_registers_s390_linux64v2): Likewise. | |
4406 | (init_registers_s390x_linux64v1): Likewise. | |
4407 | (init_registers_s390x_linux64v2): Likewise. | |
4408 | (s390_num_regs): Increment to 52. | |
4409 | (s390_regmap): Add orig_r2 register. | |
4410 | (s390_num_regs_3264): Increment to 68. | |
4411 | (s390_regmap_3264): Add orig_r2 register. | |
4412 | (s390_collect_ptrace_register): Handle orig_r2 register. | |
4413 | (s390_supply_ptrace_register): Likewise. | |
4414 | (s390_fill_last_break): New function. | |
4415 | (s390_store_last_break): Likewise. | |
4416 | (s390_fill_system_call): New function. | |
4417 | (s390_store_system_call): Likewise. | |
4418 | (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL | |
4419 | register sets. | |
4420 | (s390_check_regset): New function. | |
4421 | (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and | |
4422 | NT_S390_SYSTEM_CALL regsets and use appropriate description. | |
4423 | Update target_regsets for available register sets. | |
4424 | ||
2268b414 JK |
4425 | 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com> |
4426 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
4427 | ||
4428 | * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug) | |
4429 | (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4): | |
4430 | New. | |
4431 | (struct linux_target_ops): Install linux_qxfer_libraries_svr4. | |
4432 | * linux-low.h (struct process_info_private): New member r_debug. | |
4433 | * server.c (handle_qxfer_libraries): Call | |
4434 | the_target->qxfer_libraries_svr4. | |
4435 | (handle_qxfer_libraries_svr4): New function. | |
4436 | (qxfer_packets): New entry "libraries-svr4". | |
4437 | (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4. | |
4438 | * target.h (struct target_ops): New member qxfer_libraries_svr4. | |
4439 | * remote.c (remote_xfer_partial): Call add_packet_config_cmd for | |
4440 | PACKET_qXfer_libraries_svr4. | |
4441 | ||
d6db1fab UW |
4442 | 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com> |
4443 | ||
4444 | * linux-s390-low.c (s390_collect_ptrace_register): Fully convert | |
4445 | PSW address/mask between 8-byte and 16-byte formats. | |
4446 | (s390_supply_ptrace_register): Likewise. | |
4447 | (s390_get_pc, s390_set_pc): 4-byte PSW address always includes | |
4448 | basic addressing mode bit. | |
4449 | ||
242f5f1c SS |
4450 | 2011-11-24 Stan Shebs <stan@codesourcery.com> |
4451 | ||
4452 | * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx. | |
4453 | ||
f196051f SS |
4454 | 2011-11-17 Stan Shebs <stan@codesourcery.com> |
4455 | ||
4456 | * tracepoint.c (struct tracepoint): New field traceframe_usage. | |
4457 | (tracing_start_time): New global. | |
4458 | (tracing_stop_time): New global. | |
4459 | (tracing_user_name): New global. | |
4460 | (tracing_notes): New global. | |
4461 | (tracing_stop_note): New global. | |
4462 | (cmd_qtstart): Set traceframe_usage, start_time. | |
4463 | (stop_tracing): Set stop_time. | |
4464 | (cmd_qtstatus): Report additional status. | |
4465 | (cmd_qtp): New function. | |
4466 | (handle_tracepoint_query): Call it. | |
4467 | (cmd_qtnotes): New function. | |
4468 | (handle_tracepoint_general_set): Call it. | |
4469 | (get_timestamp): Rename from tsv_get_timestamp. | |
4470 | ||
405f8e94 SS |
4471 | 2011-11-14 Stan Shebs <stan@codesourcery.com> |
4472 | Kwok Cheung Yeung <kcy@codesourcery.com> | |
4473 | ||
4474 | * linux-x86-low.c (small_jump_insn): New. | |
4475 | (i386_install_fast_tracepoint_jump_pad): Add arguments for | |
4476 | trampoline and error message, build a trampoline and issue a small | |
4477 | jump instruction to it. | |
4478 | (x86_install_fast_tracepoint_jump_pad): Add arguments for | |
4479 | trampoline and error message. | |
4480 | (x86_get_min_fast_tracepoint_insn_len): New. | |
4481 | (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len. | |
4482 | * linux-low.h (struct linux_target_ops): Add arguments to | |
4483 | install_fast_tracepoint_jump_pad operation, add new operation. | |
4484 | * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add | |
4485 | arguments. | |
4486 | (linux_get_min_fast_tracepoint_insn_len): New function. | |
4487 | (linux_target_op): Add new operation. | |
4488 | * tracepoint.c (gdb_trampoline_buffer): New IPA variable. | |
4489 | (gdb_trampoline_buffer_end): Ditto. | |
4490 | (gdb_trampoline_buffer_error): Ditto. | |
4491 | (struct ipa_sym_addresses): Add fields for new IPA variables. | |
4492 | (symbol_list): Add entries for new IPA variables. | |
4493 | (struct tracepoint): Add fields to hold the address range of the | |
4494 | trampoline used by the tracepoint. | |
4495 | (trampoline_buffer_head): New static variable. | |
4496 | (trampoline_buffer_tail): Ditto. | |
4497 | (claim_trampoline_space): New function. | |
4498 | (have_fast_tracepoint_trampoline_buffer): New function. | |
4499 | (clone_fast_tracepoint): Fill in trampoline fields of tracepoint | |
4500 | structure. | |
4501 | (install_fast_tracepoint): Ditto, also add error buffer argument. | |
4502 | (cmd_qtminftpilen): New function. | |
4503 | (handle_tracepoint_query): Add response to qTMinFTPILen packet. | |
4504 | (fast_tracepoint_from_trampoline_address): New function. | |
4505 | (fast_tracepoint_collecting): Handle trampoline as part of jump | |
4506 | pad space. | |
4507 | (set_trampoline_buffer_space): New function. | |
4508 | (initialize_tracepoint): Initialize new IPA variables. | |
4509 | * target.h (struct target_ops): Add arguments to | |
4510 | install_fast_tracepoint_jump_pad operation, add new | |
4511 | get_min_fast_tracepoint_insn_len operation. | |
4512 | (target_get_min_fast_tracepoint_insn_len): New. | |
4513 | (install_fast_tracepoint_jump_pad): Add arguments. | |
4514 | * server.h (IPA_BUFSIZ): Define. | |
4515 | * linux-i386-ipa.c: Include extra header files. | |
4516 | (initialize_fast_tracepoint_trampoline_buffer): New function. | |
4517 | (initialize_low_tracepoint): Call it. | |
4518 | * server.h (set_trampoline_buffer_space): Declare. | |
4519 | (claim_trampoline_space): Ditto. | |
4520 | (have_fast_tracepoint_trampoline_buffer): Ditto. | |
4521 | ||
1e4d1764 YQ |
4522 | 2011-11-14 Yao Qi <yao@codesourcery.com> |
4523 | ||
4524 | * server.c (handle_query): Handle InstallInTrace for qSupported. | |
4525 | * tracepoint.c (add_tracepoint): Sort list. | |
4526 | (install_tracepoint, download_tracepoint): New. | |
4527 | (cmd_qtdp): Call them to install and download tracepoints. | |
4528 | (sort_tracepoints): Removed. | |
4529 | (cmd_qtstart): Update. | |
4530 | ||
5c73ff4e YQ |
4531 | 2011-11-14 Yao Qi <yao@codesourcery.com> |
4532 | ||
4533 | * mem-break.c (inc_ref_fast_tracepoint_jump): New. | |
4534 | * mem-break.h: Declare. | |
4535 | * tracepoint.c (cmd_qtstart): Move some code to ... | |
4536 | (clone_fast_tracepoint, install_fast_tracepoint): ... here. | |
4537 | New. | |
4538 | (download_tracepoints): Move some code to ... | |
4539 | (download_tracepoint_1): ... here. New. | |
4540 | ||
86a30030 YQ |
4541 | 2011-11-08 Yao Qi <yao@codesourcery.com> |
4542 | ||
4543 | * remote-utils.c (relocate_instruction): A comment fix. | |
4544 | ||
8d26e50c JB |
4545 | 2011-11-07 Joel Brobecker <brobecker@adacore.com> |
4546 | ||
4547 | * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete. | |
4548 | (i386_dr_low_get_control, i386_dr_low_get_status): Use | |
4549 | dr_status_mirror and dr_control_mirror from debug_reg_state. | |
4550 | (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror | |
4551 | (i386_initial_stuff): Remove use of deleted globals. | |
4552 | (i386_get_thread_context, i386_set_thread_context, | |
4553 | i386_thread_added): Use dr_status_mirror and dr_control_mirror | |
4554 | from debug_reg_state. | |
4555 | ||
a59306a3 YQ |
4556 | 2011-11-05 Yao Qi <yao@codesourcery.com> |
4557 | ||
4558 | * tracepoint.c (gdb_collect): Loop over tracepoints of same | |
4559 | address as TPOINT's. | |
4560 | ||
3065dfb6 SS |
4561 | 2011-11-02 Stan Shebs <stan@codesourcery.com> |
4562 | ||
4563 | * tracepoint.c (agent_mem_read_string): New function. | |
4564 | (eval_agent_expr): Call it for tracenz. | |
4565 | * server.c (handle_query): Report support for tracenz. | |
4566 | ||
fd0d8c7c YQ |
4567 | 2011-11-02 Yao Qi <yao@codesourcery.com> |
4568 | ||
4569 | * tracepoint.c (cmd_qtstart): Remove unused local variables. | |
4570 | ||
609086b1 YQ |
4571 | 2011-11-02 Yao Qi <yao@codesourcery.com> |
4572 | ||
4573 | * target.h: Fix a typo in comment. | |
4574 | ||
b9fd1791 PA |
4575 | 2011-10-31 Pedro Alves <pedro@codesourcery.com> |
4576 | ||
4577 | * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't | |
4578 | clobber the breakpoints' shadows with fast tracepoint jumps. | |
4579 | * mem-break.h (check_mem_write): Add `myaddr' parameter. | |
4580 | * target.c (write_inferior_memory): Also pass MYADDR down to | |
4581 | check_mem_write. | |
4582 | ||
03583c20 UW |
4583 | 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org> |
4584 | ||
4585 | * configure.ac: Check support for personality routine. | |
4586 | * configure: Regenerate. | |
4587 | * config.in: Likewise. | |
4588 | * linux-low.c: Include <sys/personality.h>. | |
4589 | Define ADDR_NO_RANDOMIZE if necessary. | |
4590 | (linux_create_inferior): Disable address space randomization when | |
4591 | forking inferior, if requested. | |
4592 | (linux_supports_disable_randomization): New function. | |
4593 | (linux_target_ops): Install it. | |
4594 | * server.h (disable_randomization): Declare. | |
4595 | * server.c (disable_randomization): New global variable. | |
4596 | (handle_general_set): Handle QDisableRandomization. | |
4597 | (handle_query): Likewise for qSupported. | |
4598 | (main): Support --disable-randomization and --no-disable-randomization | |
4599 | command line arguments. | |
4600 | * target.h (struct target_ops): Add supports_disable_randomization. | |
4601 | (target_supports_disable_randomization): New macro. | |
4602 | ||
723b724b MF |
4603 | 2011-09-29 Mike Frysinger <vapier@gentoo.org> |
4604 | ||
4605 | * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the | |
4606 | ifdef check. | |
4607 | [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check. | |
4608 | [!PT_GETDSBT] (target_loadmap): New definition. | |
4609 | (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define. | |
4610 | (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to | |
4611 | LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP, | |
4612 | and PT_GETDSBT to LINUX_LOADMAP. | |
4613 | [!PT_GETDSBT] (linux_read_loadmap): Define to NULL. | |
4614 | (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check. | |
4615 | ||
55329a5c | 4616 | 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org> |
71487fd7 UW |
4617 | |
4618 | * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove. | |
4619 | (arm_linux_hwbp_cap): New static variable. | |
4620 | (arm_linux_get_hwbp_cap): Replace by ... | |
4621 | (arm_linux_init_hwbp_cap): ... this new function. | |
4622 | (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap. | |
4623 | (arm_linux_get_hw_watchpoint_count): Likewise. | |
4624 | (arm_linux_get_hw_watchpoint_max_length): Likewise. | |
4625 | (arm_arch_setup): Call arm_linux_init_hwbp_cap. | |
4626 | (arm_prepare_to_resume): Use perror_with_name instead of error. | |
4627 | ||
55329a5c | 4628 | 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org> |
09b4ad9f UW |
4629 | |
4630 | * linux-arm-low.c: Include <signal.h>. | |
4631 | (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary. | |
4632 | (struct arm_linux_hwbp_cap): New data type. | |
4633 | (arm_hwbp_type, arm_hwbp_control_t): New typedefs. | |
4634 | (struct arm_linux_hw_breakpoint): New data type. | |
4635 | (MAX_BPTS, MAX_WPTS): Define. | |
4636 | (struct arch_process_info, struct arch_lwp_info): New data types. | |
4637 | (arm_linux_get_hwbp_cap): New function. | |
4638 | (arm_linux_get_hw_breakpoint_count): Likewise. | |
4639 | (arm_linux_get_hw_watchpoint_count): Likewise. | |
4640 | (arm_linux_get_hw_watchpoint_max_length): Likewise. | |
4641 | (arm_hwbp_control_initialize): Likewise. | |
4642 | (arm_hwbp_control_is_enabled): Likewise. | |
4643 | (arm_hwbp_control_is_initialized): Likewise. | |
4644 | (arm_hwbp_control_disable): Likewise. | |
4645 | (arm_linux_hw_breakpoint_equal): Likewise. | |
4646 | (arm_linux_hw_point_initialize): Likewise. | |
4647 | (struct update_registers_data): New data structure. | |
4648 | (update_registers_callback: New function. | |
4649 | (arm_insert_point): Likewise. | |
4650 | (arm_remove_point): Likewise. | |
4651 | (arm_stopped_by_watchpoint): Likewise. | |
4652 | (arm_stopped_data_address): Likewise. | |
4653 | (arm_new_process): Likewise. | |
4654 | (arm_new_thread): Likewise. | |
4655 | (arm_prepare_to_resume): Likewise. | |
4656 | (the_low_target): Register arm_insert_point, arm_remove_point, | |
4657 | arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process, | |
4658 | arm_new_thread, and arm_prepare_to_resume. | |
4659 | ||
6b9801d4 SS |
4660 | 2011-09-15 Stan Shebs <stan@codesourcery.com> |
4661 | ||
4662 | * server.h (struct emit_ops): Add compare-goto fields. | |
4663 | * tracepoint.c (gdb_agent_op_sizes): New table. | |
4664 | (emit_eq_goto): New function. | |
4665 | (emit_ne_goto): New function. | |
4666 | (emit_lt_goto): New function. | |
4667 | (emit_le_goto): New function. | |
4668 | (emit_gt_goto): New function. | |
4669 | (emit_ge_goto): New function. | |
4670 | (is_goto_target): New function. | |
4671 | (compile_bytecodes): Recognize special cases of compare-goto | |
4672 | combinations and call specialized emitters for them. | |
4673 | * linux-x86-low.c (amd64_emit_eq_goto): New function. | |
4674 | (amd64_emit_ne_goto): New function. | |
4675 | (amd64_emit_lt_goto): New function. | |
4676 | (amd64_emit_le_goto): New function. | |
4677 | (amd64_emit_gt_goto): New function. | |
4678 | (amd64_emit_ge_goto): New function. | |
4679 | (amd64_emit_ops): Add the new functions. | |
4680 | (i386_emit_eq_goto): New function. | |
4681 | (i386_emit_ne_goto): New function. | |
4682 | (i386_emit_lt_goto): New function. | |
4683 | (i386_emit_le_goto): New function. | |
4684 | (i386_emit_gt_goto): New function. | |
4685 | (i386_emit_ge_goto): New function. | |
4686 | (i386_emit_ops): Add the new functions. | |
4687 | ||
bf15cbda SS |
4688 | 2011-09-08 Stan Shebs <stan@codesourcery.com> |
4689 | ||
4690 | * linux-x86-low.c (i386_emit_prologue): Save %ebx. | |
4691 | (i386_emit_epilogue): Restore %ebx. | |
4692 | ||
943ca1dd JZ |
4693 | 2011-08-31 Jie Zhang <jzhang918@gmail.com> |
4694 | ||
4695 | * server.c (step_thread): Remove definition. | |
4696 | (process_serial_event): Don't handle Hs. | |
4697 | * server.h (step_thread): Remove declaration. | |
4698 | * target.c (set_desired_inferior): Remove use of step_thread. | |
4699 | ||
e3deef73 LM |
4700 | 2011-08-24 Luis Machado <lgustavo@codesourcery.com> |
4701 | ||
4702 | * linux-low.c: Include linux-procfs.h. | |
4703 | (linux_attach_lwp_1): Update comments. | |
4704 | (linux_attach): Scan for existing threads when attaching to a | |
4705 | process that is the tgid. | |
4706 | * Makefile.in: Update dependencies. | |
4707 | ||
13da1c97 LM |
4708 | 2011-08-24 Luis Machado <lgustavo@codesourcery.com> |
4709 | ||
4710 | * configure.srv: Add linux-procfs.o dependencies. | |
4711 | ||
881127c9 YQ |
4712 | 2011-08-14 Yao Qi <yao@codesourcery.com> |
4713 | ||
4714 | * target.h (struct target_ops): Fix indent. | |
4715 | * win32-low.c (win32_target_ops): Fix comment. | |
4716 | ||
58dbd541 YQ |
4717 | 2011-08-14 Andrew Jenner <andrew@codesourcery.com> |
4718 | Yao Qi <yao@codesourcery.com> | |
4719 | ||
4720 | * Makefile.in (clean): Remove tic6x-*.c files. | |
4721 | (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules. | |
4722 | (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise. | |
4723 | (tic6x-c64xp-linux.c): Likewise. | |
4724 | * configure.srv: Add support for tic6x-*-uclinux. | |
4725 | * linux-tic6x-low.c: New. | |
4726 | * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define. | |
4727 | ||
78d85199 YQ |
4728 | 2011-08-14 Andrew Stubbs <ams@codesourcery.com> |
4729 | Yao Qi <yao@codesourcery.com> | |
4730 | ||
4731 | * target.h (struct target_ops): Add read_loadmap. | |
4732 | * linux-low.c (struct target_loadseg): New type. | |
4733 | (struct target_loadmap): New type. | |
4734 | (linux_read_loadmap): New function. | |
4735 | (linux_target_ops): Add linux_read_loadmap. | |
4736 | * server.c (handle_query): Support qXfer:fdpic:read packet. | |
43aaf8b6 PA |
4737 | * win32-low.c (win32_target_ops): Initialize field `read_loadmap' |
4738 | to NULL. | |
78d85199 | 4739 | |
a959a88d EZ |
4740 | 2011-08-05 Eli Zaretskii <eliz@gnu.org> |
4741 | ||
4742 | * win32-low.c: Include <stdint.h>. | |
4743 | ||
1ced966e PA |
4744 | 2011-07-22 Pedro Alves <pedro@codesourcery.com> |
4745 | ||
4746 | * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info | |
4747 | to the inferior here. | |
4748 | (i386_remove_aligned_watchpoint): Ditto. | |
4749 | (i386_handle_nonaligned_watchpoint): Return immediate on fail to | |
4750 | fit part of the watchpoint in the debug registers. | |
4751 | (i386_update_inferior_debug_regs): New. | |
4752 | (i386_low_insert_watchpoint): Work on a local mirror of the debug | |
4753 | registers, and only update the inferior on success. | |
4754 | (i386_low_remove_watchpoint): Ditto. | |
4755 | ||
d26e3629 KY |
4756 | 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com> |
4757 | ||
4758 | * linux-low.c (compare_ints, unique, list_threads, show_process, | |
4759 | linux_core_of_thread): Delete. | |
4760 | (linux_target_ops): Change linux_core_of_thread to | |
4761 | linux_common_core_of_thread. | |
4762 | (linux_qxfer_osdata): Defer to linux_common_xfer_osdata. | |
4763 | * utils.c (malloc_failure): Change type of argument. | |
4764 | (xmalloc, xrealloc, xcalloc, xsnprintf): Delete. | |
4765 | * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c, | |
4766 | common/linux-osdata.c, common/ptid.c and common/buffer.c. | |
4767 | (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o. | |
4768 | (IPA_OBJS): Add common-utils-ipa.o. | |
4769 | (ptid_h, linux_osdata_h): New macros. | |
4770 | (server_h): Add common/common-utils.h, common/xml-utils.h, | |
4771 | common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and | |
4772 | common/ptid.h. | |
4773 | (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o, | |
4774 | ptid.o, buffer.o): New rules. | |
4775 | (linux-low.o): Add common/linux-osdata.h as a dependency. | |
4776 | * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets. | |
4777 | * configure.ac: Add AC_HEADER_DIRENT check. | |
4778 | * config.in: Regenerate. | |
4779 | * configure: Regenerate. | |
4780 | * remote-utils.c (xml_escape_text): Delete. | |
4781 | (buffer_grow, buffer_free, buffer_init, buffer_finish, | |
4782 | buffer_xml_printf): Move to common/buffer.c. | |
4783 | * server.c (main): Remove call to initialize_inferiors. | |
4784 | * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid, | |
4785 | ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid, | |
4786 | ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text, | |
4787 | internal_error, gdb_assert, gdb_assert_fail): Delete. | |
4788 | (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish, | |
4789 | buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to | |
4790 | common/buffer.h. | |
4791 | * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid, | |
4792 | ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid, | |
4793 | initialize_inferiors): Delete. | |
4794 | ||
2275a1a7 PA |
4795 | 2011-07-20 Pedro Alves <pedro@codesourcery.com> |
4796 | ||
4797 | * tracepoint.c (tracepoint_look_up_symbols): Return upon the first | |
4798 | symbol error. | |
4799 | ||
0a5b1e09 PA |
4800 | 2011-05-31 Pedro Alves <pedro@codesourcery.com> |
4801 | ||
4802 | * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in | |
4803 | assertion. | |
4804 | * win32-i386-low.c (i386_dr_low_get_addr): Ditto. | |
4805 | ||
6938fd34 YQ |
4806 | 2011-05-26 Yao Qi <yao@codesourcery.com> |
4807 | ||
4808 | * Makefile.in (thread-db.o): Track dependence to | |
4809 | common/gdb_thread_db.h. | |
4810 | * thread-db.c: include gdb_thread_db.h from right place. | |
4811 | ||
b481f9e0 TT |
4812 | 2011-05-16 Adrian Cornish <gnu@bluedreamer.com> |
4813 | ||
4814 | * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass | |
4815 | __FILE__ and __LINE__ to internal_error. | |
4816 | ||
98a5dd13 DE |
4817 | 2011-05-13 Doug Evans <dje@google.com> |
4818 | ||
4819 | * thread-db.c (try_thread_db_load_from_sdir): New function. | |
4820 | (try_thread_db_load_from_dir): New function. | |
4821 | (thread_db_load_search): Handle $sdir, ignore $pdir. | |
4822 | Remove trying of system directories if search of | |
4823 | libthread-db-search-path fails, that is now done via $sdir. | |
4824 | ||
d248b706 KY |
4825 | 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com> |
4826 | ||
4827 | * server.c (handle_query): Add EnableDisableTracepoints to the list | |
4828 | of supported features. | |
43aaf8b6 | 4829 | * tracepoint.c (clear_installed_tracepoints): Uninstall disabled |
d248b706 | 4830 | tracepoints. |
43aaf8b6 PA |
4831 | (cmd_qtenable_disable): New. |
4832 | (cmd_qtstart): Install tracepoints even if disabled. | |
4833 | (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on | |
4834 | receiving a QTEnable or QTDisable packet. | |
4835 | (gdb_collect): Skip data collection if fast tracepoint is disabled. | |
4836 | (ust_marker_to_static_tracepoint): Do not ignore disabled static | |
4837 | tracepoints. | |
4838 | (gdb_probe): Skip data collection if static tracepoint is disabled. | |
d248b706 | 4839 | |
84e578fb DE |
4840 | 2011-05-10 Doug Evans <dje@google.com> |
4841 | ||
4842 | * thread-db.c (thread_db_handle_monitor_command): Handle elided path. | |
4843 | ||
71f55dd8 DE |
4844 | 2011-05-04 Doug Evans <dje@google.com> |
4845 | ||
4846 | * linux-low.c (linux_join): Skip process lookup. | |
4847 | * spu-low.c (spu_join): Ditto. | |
4848 | * server.c (join_inferiors_callback): Delete. | |
4849 | (process_serial_event): For 'D' packet (detach) call join_inferior | |
4850 | directly. | |
4851 | ||
4d393d60 JM |
4852 | 2011-05-04 Joseph Myers <joseph@codesourcery.com> |
4853 | ||
4854 | * README: Don't mention xscale*-*-linux*. | |
4855 | * configure.srv (xscale*-*-linux*): Don't handle target. | |
4856 | ||
b00ad6ff NF |
4857 | 2011-04-27 Nathan Froyd <froydnj@codesourcery.com> |
4858 | ||
4859 | * linux-x86-low.c (amd64_emit_const): Call memcpy instead of | |
4860 | casting pointers. | |
4861 | (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2): | |
4862 | (i386_emit_const, i386_emit_reg, i386_emit_int_call_1): | |
4863 | (i386_emit_void_call_2): Likewise. | |
4864 | ||
af96c192 YQ |
4865 | 2011-04-26 Yao Qi <yao@codesourcery.com> |
4866 | ||
43aaf8b6 PA |
4867 | * linux-low.c: Move common macros to linux-ptrace.h. |
4868 | Include linux-ptrace.h. | |
af96c192 YQ |
4869 | * Makefile.in (linux_ptrace_h): New. |
4870 | (linux-low.o): Depends on linux-ptrace.h. | |
4871 | ||
03f2bd59 JK |
4872 | 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
4873 | ||
4874 | * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if | |
4875 | RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call. | |
4876 | (remote_prepare): New function with most of the TCP code from ... | |
4877 | (remote_open): ... here. Detect PORT here unconditionally. Move also | |
4878 | setting transport_is_reliable. | |
4879 | * server.c (run_once): New variable. | |
4880 | (gdbserver_usage): Document it. | |
4881 | (main): Set run_once for `--once'. Call remote_prepare. Exit after | |
4882 | the first run if RUN_ONCE. | |
4883 | * server.h (run_once, remote_prepare): New declarations. | |
4884 | ||
7a9dd1b2 TT |
4885 | 2011-04-19 Tom Tromey <tromey@redhat.com> |
4886 | ||
4887 | * win32-low.c (handle_load_dll): Remove duplicate "the". | |
4888 | ||
81239425 PM |
4889 | 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr> |
4890 | ||
4891 | Remove support for old Cygwin 1.5 versions. | |
4892 | * win32-low.c (win32_create_inferior): Use new cygwin_path_list | |
4893 | function to avoid warning. | |
4894 | (win32_add_one_solib): Use cygwin_conv_path function to avoid | |
4895 | warning. | |
4896 | ||
9e0627f1 PM |
4897 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
4898 | ||
4899 | * gdbserver/server.h (Macro _): Define it if not available. | |
4900 | ||
588eebee MS |
4901 | 2011-03-14 Michael Snyder <msnyder@vmware.com> |
4902 | ||
348af9f7 | 4903 | * hostio.c (handle_close): Remove unnecessary null test. |
588eebee | 4904 | |
43f70d4c JB |
4905 | 2011-03-10 Joel Brobecker <brobecker@adacore.com> |
4906 | ||
4907 | * Makefile.in (maintainer-clean realclean distclean): Remove | |
4908 | "make ... subdir_do" command. | |
4909 | ||
348af9f7 MS |
4910 | 2011-03-10 Michael Snyder <msnyder@vmware.com> |
4911 | ||
4912 | * tracepoint.c (tracepoint_finish_step): Fix loop variable. | |
4913 | ||
4914 | * server.c (handle_v_run): Free alloced buffer on early return. | |
4915 | ||
e637a4f5 YQ |
4916 | 2011-03-09 Yao Qi <yao@codesourcery.com> |
4917 | ||
4918 | Revert: | |
4919 | 2011-03-04 Yao Qi <yao@codesourcery.com> | |
4920 | ||
4921 | * Makefile.in: Remove GNU make feature --directory. | |
4922 | ||
4923 | 2011-03-05 Yao Qi <yao@codesourcery.com> | |
4924 | ||
4925 | * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable. | |
4926 | (subdir_do): New make target. Copied from gdb/Makefile. | |
4927 | (maintainer-clean, realclean, distclean, clean): Call corresponding | |
4928 | make targets in common/Makefile. | |
4929 | ||
4930 | 2011-02-11 Yao Qi <yao@codesourcery.com> | |
4931 | ||
4932 | * configure.ac: Call AC_PROG_RANLIB. | |
4933 | * Makefile.in: Remove signals.o from OBS. Link libcommon.a. | |
4934 | * configure: Regenerate. | |
4935 | ||
e6edda56 JK |
4936 | 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
4937 | ||
4938 | * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically. | |
4939 | ||
e5141119 JB |
4940 | 2011-03-06 Yao Qi <yao@codesourcery.com> |
4941 | ||
4942 | * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR). | |
4943 | ||
64794aa4 JB |
4944 | 2011-03-05 Yao Qi <yao@codesourcery.com> |
4945 | ||
4946 | * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable. | |
4947 | (subdir_do): New make target. Copied from gdb/Makefile. | |
4948 | (maintainer-clean, realclean, distclean, clean): Call corresponding | |
4949 | make targets in common/Makefile. | |
4950 | ||
7a762829 YQ |
4951 | 2011-03-04 Yao Qi <yao@codesourcery.com> |
4952 | ||
4953 | * Makefile.in: Remove GNU make feature --directory. | |
4954 | ||
348af9f7 MS |
4955 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
4956 | ||
4957 | * server.c (queue_stop_reply): Call xmalloc not malloc. | |
4958 | ||
4959 | 2011-03-02 Michael Snyder <msnyder@vmware.com> | |
4960 | ||
4961 | * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc. | |
4962 | ||
9f72fee2 MS |
4963 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
4964 | ||
588eebee MS |
4965 | * tracepoint.c (cmd_qtv): Discard unused value 'packet'. |
4966 | (cmd_qtframe): Ditto. | |
4967 | (cmd_qtbuffer): Ditto. | |
4968 | (cmd_bigqtbuffer): Ditto. | |
4969 | ||
9f72fee2 MS |
4970 | * utils.c (decimal2str): Initialize 'width' to nine, then |
4971 | don't mess with it. | |
4972 | ||
8040bd49 UW |
4973 | 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
4974 | ||
4975 | * hostio.c (require_data): Free *data, not data. | |
4976 | ||
7e52cbd0 JK |
4977 | 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
4978 | ||
4979 | * hostio.c (require_data): Use free, not xfree. | |
4980 | ||
9130f83e MS |
4981 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
4982 | ||
4b812f4e MS |
4983 | * server.c (handle_query): Discard unused value. |
4984 | ||
9130f83e MS |
4985 | * hostio.c (require_data): Free malloc memory before returning |
4986 | error. | |
4987 | ||
69d37113 MS |
4988 | 2011-02-26 Michael Snyder <msnyder@vmware.com> |
4989 | ||
4990 | * linux-low.c (list_threads): Call closedir for dirent. | |
4991 | ||
35f5825a MS |
4992 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
4993 | ||
2a589cef MS |
4994 | * i386-low.c (i386-length_and_rw_bits): Comment the fact that |
4995 | a case statement falls through. | |
4996 | ||
0adea5f7 MS |
4997 | * linux-low.c (linux_xfer_siginfo): Fix fencepost error. |
4998 | ||
35f5825a MS |
4999 | * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error |
5000 | in comparison. | |
5001 | ||
238f1c74 MS |
5002 | 2011-02-26 Michael Snyder <msnyder@vmware.com> |
5003 | ||
5004 | * utils.c (decimal2str): Eliminate dead code and dead param. | |
5005 | (pulongest): Drop dead param from call to decimal2str. | |
5006 | (plongest): Ditto. | |
5007 | ||
633ff500 JB |
5008 | 2011-02-24 Joel Brobecker <brobecker@adacore.com> |
5009 | ||
5010 | Revert the following patch (not approved yet): | |
5011 | 2011-02-21 Hui Zhu <teawater@gmail.com> | |
5012 | * tracepoint.c (tp_printf): New function. | |
5013 | (eval_agent_expr): Handle gdb_agent_op_printf. | |
5014 | ||
f9c6ff72 HZ |
5015 | 2011-02-21 Hui Zhu <teawater@gmail.com> |
5016 | ||
5017 | * tracepoint.c (tp_printf): New function. | |
5018 | (eval_agent_expr): Handle gdb_agent_op_printf. | |
5019 | ||
94d5e490 TT |
5020 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
5021 | ||
5022 | * Makefile.in (tracepoint-ipa.o): Depend on ax.def. | |
5023 | (tracepoint.o): Likewise. | |
5024 | * tracepoint.c (enum gdb_agent_op): Use ax.def. | |
5025 | (gdb_agent_op_names): Likewise. | |
5026 | ||
c7f96d2b TT |
5027 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
5028 | ||
5029 | * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick, | |
5030 | gdb_agent_op_rot>: New constants. | |
5031 | (gdb_agent_op_names): Add pick and roll. | |
5032 | (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New | |
5033 | cases. | |
5034 | ||
0feedb2c JK |
5035 | 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
5036 | ||
5037 | * aclocal.m4: Regenerated with aclocal-1.11.1. | |
5038 | ||
b3b9301e PA |
5039 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
5040 | ||
5041 | * server.c (handle_qxfer_traceframe_info): New. | |
5042 | (qxfer_packets): Register "traceframe-info". | |
5043 | (handle_query): Report support for qXfer:traceframe-info:read+. | |
5044 | * tracepoint.c (match_blocktype): New. | |
5045 | (traceframe_find_block_type): Rename to ... | |
5046 | (traceframe_walk_blocks): ... this. Add callback filter argument, | |
5047 | and use it. | |
5048 | (traceframe_find_block_type): New, reimplemented on top of | |
5049 | traceframe_walk_blocks. | |
5050 | (build_traceframe_info_xml): New. | |
5051 | (traceframe_read_info): New. | |
5052 | * server.h (traceframe_read_info): Declare. | |
5053 | ||
4f3e6fb7 YQ |
5054 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
5055 | ||
5056 | * configure.ac: Call AC_PROG_RANLIB. | |
5057 | * Makefile.in: Remove signals.o from OBS. Link libcommon.a. | |
5058 | * configure: Regenerate. | |
5059 | ||
764880b7 PA |
5060 | 2011-02-07 Pedro Alves <pedro@codesourcery.com> |
5061 | ||
5062 | * server.c (gdb_read_memory): Change return semantics to allow | |
5063 | partial transfers. | |
5064 | (handle_search_memory_1): Adjust. | |
5065 | (process_serial_event) <'m' packet>: Handle partial transfers. | |
5066 | * tracepoint.c (traceframe_read_mem): Handle partial transfers. | |
5067 | ||
1c79eb8a PA |
5068 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
5069 | ||
5070 | * regcache.c (init_register_cache): Initialize | |
5071 | regcache->register_status. | |
5072 | (free_register_cache): Release regcache->register_status. | |
5073 | (regcache_cpy): Copy register_status. | |
5074 | (registers_to_string): Print 'x's for unavailable registers. | |
5075 | (supply_register): Mark the register's status valid or | |
5076 | unavailable, depending on whether a buffer was passed in or not. | |
5077 | (supply_register_zeroed): New. | |
5078 | (supply_regblock): Mark the registers' status valid or | |
5079 | unavailable, depending on whether a buffer was passed in or not. | |
5080 | * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines. | |
5081 | (struct regcache): New `register_status' field. | |
5082 | (supply_register_zeroed): Declare. | |
5083 | * i387-fp.c (i387_xsave_to_cache): Zero out registers using | |
5084 | supply_register_zeroed, rather than passing a NULL buffer to | |
5085 | supply_register. | |
5086 | * tracepoint.c (fetch_traceframe_registers): Update comment. | |
5087 | ||
85724a0e PA |
5088 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
5089 | ||
5090 | * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register | |
5091 | buffer explicit. | |
5092 | ||
d08aafef PA |
5093 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
5094 | ||
5095 | * server.h (decode_xfer_write): Change prototype. | |
5096 | * remote-utils.c (decode_xfer_write): Remove `annex' parameter, | |
5097 | and don't extract the annex here. | |
5098 | * server.c (decode_xfer_read): Remove `annex' parameter, | |
5099 | and don't extract the annex here. | |
5100 | (decode_xfer): New. | |
5101 | (struct qxfer): New. | |
5102 | (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries) | |
5103 | (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu) | |
5104 | (handle_qxfer_statictrace): New functions, abstracted out from | |
5105 | handle_query, and made to use the struct qxfer interface. | |
5106 | (handle_threads_qxfer_proper): Rename to ... | |
5107 | (handle_qxfer_threads_proper): ... this. | |
5108 | (handle_threads_qxfer): Rename to ... | |
5109 | (handle_qxfer_threads): ... this. Adjust. | |
5110 | (qxfer_packets): New array. | |
5111 | (handle_qxfer): New function. | |
5112 | (handle_query): Use handle_qxfer. | |
5113 | ||
493e2a69 MS |
5114 | 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com> |
5115 | ||
5116 | * gdbreplay.c: Shorten lines of >= 80 columns. | |
5117 | * linux-low.c: Ditto. | |
5118 | * linux-ppc-low.c: Ditto. | |
5119 | * linux-s390-low.c: Ditto. | |
5120 | * linux-sparc-low.c: Ditto. | |
5121 | * linux-x86-low.c: Ditto. | |
5122 | * linux-xtensa-low.c: Ditto. | |
5123 | * mem-break.c: Ditto. | |
5124 | * nto-low.c: Ditto. | |
5125 | * regcache.h: Ditto. | |
5126 | * remote-utils.c: Ditto. | |
5127 | * server.c: Ditto. | |
5128 | * server.h: Ditto. | |
5129 | * thread-db.c: Ditto. | |
5130 | * tracepoint.c: Ditto. | |
5131 | * utils.c: Ditto. | |
5132 | * win32-low.h: Ditto. | |
5133 | ||
44944448 JB |
5134 | 2011-01-05 Joel Brobecker <brobecker@adacore.com> |
5135 | ||
5136 | * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year | |
5137 | update. | |
5138 | ||
71ce852c JB |
5139 | 2011-01-01 Joel Brobecker <brobecker@adacore.com> |
5140 | ||
5141 | * server.c (gdbserver_version): Update copyright year in version | |
5142 | output. | |
5143 | * gdbreplay.c (gdbreplay_version): Ditto. | |
5144 | ||
eb826dc6 MF |
5145 | 2010-12-29 Jie Zhang <jie.zhang@analog.com> |
5146 | ||
5147 | * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets. | |
5148 | * linux-bfin-low.c: New file. | |
5149 | * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and | |
5150 | PT_DATA_ADDR for BFIN targets. | |
5151 | * Makefile.in (SFILES): Add linux-bfin-low.c. | |
5152 | (clean): Remove reg-bfin.c. | |
5153 | (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets. | |
5154 | * README: Mention supported Blackfin targets. | |
5155 | ||
39ab222a MF |
5156 | 2010-12-23 Mike Frysinger <vapier@gentoo.org> |
5157 | ||
5158 | * .gitignore: New file. | |
5159 | ||
a1f2ce7d MF |
5160 | 2010-11-16 Mike Frysinger <vapier@gentoo.org> |
5161 | ||
5162 | * linux-low.c (linux_tracefork_child): Add char* cast to arg. | |
5163 | ||
f474844c JZ |
5164 | 2010-10-22 Jie Zhang <jie@codesourcery.com> |
5165 | ||
5166 | * Makefile.in: Add FLAGS_TO_PASS variable. | |
5167 | (install): Remove dependency of install-only and recursively | |
5168 | invoke make for install-only. | |
5169 | ||
f1048712 DE |
5170 | 2010-10-04 Doug Evans <dje@google.com> |
5171 | ||
5172 | * Makefile.in (uninstall): Use $(DESTDIR). | |
5173 | ||
b53a1623 PA |
5174 | 2010-09-24 Pedro Alves <pedro@codesourcery.com> |
5175 | ||
e6ee044d PA |
5176 | PR gdb/11842 |
5177 | ||
b53a1623 PA |
5178 | * linux-x86-low.c (compat_siginfo_from_siginfo) |
5179 | (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when | |
5180 | si_code is < 0. Check for si_code == SI_TIMER before checking for | |
5181 | si_code < 0. | |
5182 | ||
fa1bd1e4 JB |
5183 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
5184 | ||
5185 | * lynx-i386-low.c: New file. | |
5186 | * configure.srv: Add handling of i[34567]86-*-lynxos* targets. | |
5187 | ||
47fac8f8 JB |
5188 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
5189 | ||
5190 | * lynx-low.c (ptrace_request_to_str): Remove handling for | |
5191 | request values that have been removed in LynxOS 5.x. | |
5192 | ||
1adfc54d JB |
5193 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
5194 | ||
5195 | * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of | |
5196 | <ptrace.h> | |
5197 | ||
c2a66c29 NS |
5198 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
5199 | ||
5200 | * configure.ac: Add --enable-inprocess-agent option. | |
5201 | * configure: Rebuilt. | |
5202 | ||
32fcada3 YQ |
5203 | 2010-09-06 Yao Qi <yao@codesourcery.com> |
5204 | ||
5205 | * linux-low.c (linux_kill): Remove unused variable. | |
5206 | (linux_stabilize_threads): Likewise. | |
5207 | * server.c (start_inferior): Likewise. | |
5208 | (queue_stop_reply_callback): Likewise. | |
5209 | * tracepoint.c (do_action_at_tracepoint): Likewise. | |
5210 | ||
0cccb683 YQ |
5211 | 2010-09-06 Yao Qi <yao@codesourcery.com> |
5212 | ||
5213 | * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior | |
5214 | on return. | |
5215 | ||
423ec54c JK |
5216 | 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
5217 | ||
5218 | * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER. | |
5219 | ||
12ac6819 PA |
5220 | 2010-09-06 Pedro Alves <pedro@codesourcery.com> |
5221 | ||
5222 | * Makefile.in (install-only): Replace $IPA_DEPFILES with | |
5223 | "$(IPA_DEPFILES)". | |
5224 | ||
8ed54b31 JB |
5225 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
5226 | ||
5227 | * gdbserver/lynx-low.c, gdbserver/lynx-low.h, | |
5228 | gdbserver/lynx-ppc-low.c: New files. | |
5229 | * Makefile.in (lynx_low_h): New variable. | |
5230 | (lynx-low.o, lynx-ppc-low.o): New rules. | |
5231 | * configure.ac: On LynxOS, link with -lnetinet. | |
5232 | * configure.srv: Add handling of powerpc-*-lynxos* targets. | |
5233 | * configure: regenerate. | |
5234 | ||
bb0116a4 JB |
5235 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
5236 | ||
5237 | * Makefile.in (vasprintf.o, vsnprintf.o): New rules. | |
5238 | * configure.ac: Add check for vasprintf and vsnprintf. | |
5239 | * configure, config.in: Regenerate. | |
5240 | * server.h (vasprintf, vsnprintf): Add conditional declarations. | |
5241 | ||
a778ab81 | 5242 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
5243 | ||
5244 | * gdbreplay.c: Move include of alloca.h up, next to include of | |
5245 | malloc.h. | |
5246 | * server.h: Add include of malloc.h. | |
5247 | * mem-break.c: Remove include of malloc.h. | |
5248 | * server.c, tracepoint.c, utils.c, win32-low.c: Likewise. | |
5249 | ||
8b034a19 | 5250 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
5251 | ||
5252 | * Makefile.in (memmem.o): Build with -Wno-error. | |
5253 | ||
5254 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> | |
5255 | ||
5256 | * utils.c (xsnprintf): Make non-static. | |
5257 | * server.h: Add xsnprintf declaration. | |
5258 | * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c: | |
5259 | replace calls to snprintf by calls to xsnprintf throughout. | |
5260 | ||
5261 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> | |
5262 | ||
5263 | * configure.ac: Add configure check for alloca. | |
5264 | * configure, config.in: Regenerate. | |
5265 | * server.h: Include alloca.h if it exists. | |
5266 | * gdbreplay.c: Include alloca.h if it exists. | |
5267 | ||
1a981360 PA |
5268 | 2010-08-28 Pedro Alves <pedro@codesourcery.com> |
5269 | ||
5270 | * linux-low.c (__SIGRTMIN): Define if not already defined. | |
5271 | (linux_create_inferior): Check for __ANDROID__ rather than | |
5272 | __SIGRTMIN. | |
5273 | (enqueue_one_deferred_signal): Don't requeue non-RT signals that | |
5274 | are already deferred. | |
5275 | (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN. | |
5276 | (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is | |
5277 | stopped and already has a pending signal to report. | |
5278 | (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has | |
5279 | a pending signal to report or is moving out of a jump pad. | |
5280 | (linux_init_signals): Check for __ANDROID__ rather than | |
5281 | __SIGRTMIN. | |
5282 | ||
b4d51a55 PA |
5283 | 2010-08-28 Pedro Alves <pedro@codesourcery.com> |
5284 | ||
5285 | * linux-low.c (linux_stabilize_threads): Wrap debug output in a | |
5286 | debug_threads check. Avoid a linear search when not doing debug | |
5287 | output. | |
5288 | ||
ec48365d PA |
5289 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
5290 | ||
5291 | * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t. | |
5292 | (struct gdb_event) <fd>: Change type to gdb_fildes_t. | |
5293 | (struct file_handler) <fd>: Change type to gdb_fildes_t. | |
5294 | (process_event): Change local fd's type to gdb_fildes_t. | |
5295 | (create_file_handler): Adjust prototype. | |
5296 | (delete_file_handler): Adjust prototype. | |
5297 | (handle_file_event): Adjust prototype. Use pfildes. | |
5298 | (create_file_event): Adjsut prototype. | |
5299 | * remote-utils.c (remote_desc, listen_desc): Change type to | |
5300 | gdb_fildes_t. | |
5301 | * server.h: New gdb_fildes_t typedef. | |
5302 | [USE_WIN32API]: Include winsock2.h. | |
5303 | (delete_file_handler, add_file_handler): Adjust prototypes. | |
5304 | (pfildes): Declare. | |
5305 | * utils.c (pfildes): New. | |
5306 | ||
854d88f0 PA |
5307 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
5308 | ||
5309 | * configure.ac (build_warnings): Add -Wno-char-subscripts. | |
5310 | * configure: Regenerate. | |
5311 | ||
0146f85b PA |
5312 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
5313 | ||
5314 | * linux-low.c (linux_unprepare_to_access_memory): Rename to ... | |
5315 | (linux_done_accessing_memory): ... this. | |
5316 | (linux_target_ops): Adjust. | |
5317 | * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust. | |
5318 | * nto-low.c (nto_target_ops): Adjust comment. | |
5319 | * server.c (gdb_read_memory, gdb_write_memory): Adjust. | |
5320 | * spu-low.c (spu_target_ops): Adjust comment. | |
5321 | * target.h (target_ops): Rename unprepare_to_access_memory field | |
5322 | to done_accessing_memory. | |
5323 | (unprepare_to_access_memory): Rename to ... | |
5324 | (done_accessing_memory): ... this. | |
5325 | ||
90d74c30 PA |
5326 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
5327 | ||
5328 | * linux-low.c (linux_prepare_to_access_memory): New. | |
5329 | (linux_unprepare_to_access_memory): New. | |
5330 | (linux_target_ops): Install them. | |
5331 | * server.c (read_memory): Rename to ... | |
5332 | (gdb_read_memory): ... this. Use | |
5333 | prepare_to_access_memory/prepare_to_access_memory. | |
5334 | (write_memory): Rename to ... | |
5335 | (gdb_write_memory): ... this. Use | |
5336 | prepare_to_access_memory/prepare_to_access_memory. | |
5337 | (handle_search_memory_1): Adjust. | |
5338 | (process_serial_event): Adjust. | |
5339 | * target.h (struct target_ops): New fields | |
5340 | prepare_to_access_memory and unprepare_to_access_memory. | |
5341 | (prepare_to_access_memory, unprepare_to_access_memory): New. | |
5342 | * linux-x86-low.c (x86_insert_point, x86_remove_point): Use | |
5343 | prepare_to_access_memory/prepare_to_access_memory. | |
5344 | * nto-low.c (nto_target_ops): Adjust. | |
5345 | * spu-low.c (spu_target_ops): Adjust. | |
5346 | * win32-low.c (win32_target_ops): Adjust. | |
5347 | ||
fd467969 PA |
5348 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
5349 | ||
5350 | * Makefile.in (WARN_CFLAGS): Get it from configure. | |
5351 | (WERROR_CFLAGS): New. | |
5352 | (INTERNAL_CFLAGS): Add WERROR_CFLAGS. | |
5353 | * configure.ac: Introduce --enable-werror, which adds -Werror to | |
5354 | the compiler command line. Enabled by default. Disable with | |
5355 | --disable-werror. Add -Wdeclaration-after-statement | |
5356 | Wpointer-arith and -Wformat-nonliteral to warning flags. | |
5357 | * configure: Regenerate. | |
5358 | ||
331e2f5f PA |
5359 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
5360 | ||
5361 | * mem-break.c [HAVE_MALLOC_H]: Include malloc.h. | |
5362 | ||
e581f2b4 PA |
5363 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
5364 | ||
5365 | * gdbreplay.c (remote_error): New. | |
5366 | (gdbchar): New. | |
5367 | (expect): Use gdbchar. Check for error reading from GDB. | |
5368 | Clarify sync error output. | |
5369 | (play): Check for errors writing to GDB. | |
5370 | * linux-low.c (sigchld_handler): Really ignore `write' errors. | |
5371 | * remote-utils.c (getpkt): Check for errors writing to the remote | |
5372 | descriptor. | |
5373 | ||
3c11dd79 PA |
5374 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
5375 | ||
5376 | * linux-low.c (linux_wait_1): Move non-debugging code out of | |
5377 | `debug_threads' control. | |
5378 | ||
d20a8ad9 PA |
5379 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
5380 | ||
5381 | * linux-low.c (linux_wait_1): Don't set last_status here. | |
5382 | * server.c (push_event, queue_stop_reply_callback): Assert we're | |
5383 | not pushing a TARGET_WAITKIND_IGNORE event. | |
5384 | (start_inferior, start_inferior, attach_inferior, handle_v_cont) | |
5385 | (myresume, handle_target_event): Set the thread's last_resume_kind | |
5386 | and last_status from the target returned status. | |
5387 | ||
964e4306 PA |
5388 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
5389 | ||
5390 | PR threads/10729 | |
5391 | ||
5392 | * linux-x86-low.c (update_debug_registers_callback): New. | |
5393 | (i386_dr_low_set_addr): Use it. | |
5394 | (i386_dr_low_get_addr): New. | |
5395 | (i386_dr_low_set_control): Use update_debug_registers_callback. | |
5396 | (i386_dr_low_get_control): New. | |
5397 | (i386_dr_low_get_status): Adjust. | |
5398 | * linux-low.c (linux_stop_lwp): New. | |
5399 | * linux-low.h (linux_stop_lwp): Declare. | |
5400 | ||
5401 | * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as | |
5402 | argument instead of a i386_debug_reg_state. | |
5403 | (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of | |
5404 | a i386_debug_reg_state. | |
5405 | (i386_insert_aligned_watchpoint): Adjust. | |
5406 | (i386_remove_aligned_watchpoint): Adjust. | |
5407 | (i386_low_stopped_data_address): Read the debug registers from the | |
5408 | inferior instead of from the mirrors. | |
5409 | * i386-low.h (struct i386_debug_reg_state): Extend comment. | |
5410 | (i386_dr_low_get_addr): Declare. | |
5411 | (i386_dr_low_get_control): Declare. | |
5412 | (i386_dr_low_get_status): Change prototype. | |
5413 | ||
5414 | * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals. | |
5415 | (i386_dr_low_get_addr): New. | |
5416 | (i386_dr_low_get_control): New. | |
5417 | (i386_dr_low_get_status): Adjust prototype. Return | |
5418 | dr_status_mirror. | |
5419 | (i386_initial_stuff): Clear dr_status_mirror and | |
5420 | dr_control_mirror. | |
5421 | (i386_get_thread_context): Adjust. | |
5422 | (i386_set_thread_context): Adjust. | |
5423 | (i386_thread_added): Adjust. | |
5424 | ||
5f21a75b PA |
5425 | 2010-08-24 Pedro Alves <pedro@codesourcery.com> |
5426 | ||
5427 | * linux-low.h (linux_thread_area): Delete declaration. | |
5428 | ||
3e4c1235 TS |
5429 | 2010-08-11 Thomas Schwinge <thomas@codesourcery.com> |
5430 | ||
5431 | * linux-low.c (linux_wait_1): Correctly return the ptid of the child | |
5432 | after its termination. | |
5433 | ||
1971b033 PA |
5434 | 2010-08-09 Pedro Alves <pedro@codesourcery.com> |
5435 | ||
5436 | * linux-low.c (gdb_wants_lwp_stopped): Delete. | |
5437 | (gdb_wants_all_stopped): Delete. | |
5438 | (linux_wait_1): Don't call them. | |
5439 | * server.c (handle_v_cont): Tag all threads as want-stopped. | |
5440 | (gdb_wants_thread_stopped): Fix comments. Tag the thread that | |
5441 | stopped as "client-wants-stopped". | |
5442 | ||
310444ac PA |
5443 | 2010-07-31 Pedro Alves <pedro@codesourcery.com> |
5444 | ||
5445 | * Makefile.in (signals_h): New. | |
5446 | (server_h): Depend on it. | |
5447 | (server.o): Don't depend on $(signals_def). | |
5448 | (signals.o): Depend on $(signals_def). | |
5449 | ||
a19cae16 JK |
5450 | 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
5451 | ||
5452 | * Makefile.in (signals_def): New. | |
5453 | (server_h): Append include/gdb/signals.h and signals_def. | |
5454 | (server.o): Append signals_def. | |
5455 | ||
30d50328 JK |
5456 | 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
5457 | ||
5458 | * server.c (handle_target_event): Use target_signal_to_host for | |
5459 | resume_info.sig initialization. | |
5460 | * target.h (struct thread_resume) <sig>: New comment. | |
5461 | ||
5c3216e2 OS |
5462 | 2010-07-20 Ozkan Sezer <sezeroz@gmail.com> |
5463 | ||
c6f46ca0 OS |
5464 | * server.c (handle_query): strcpy() the returned string from paddress() |
5465 | instead of sprintf(). | |
5c3216e2 OS |
5466 | * utils.c (paddress): Return phex_nz(). |
5467 | ||
6bd31874 JB |
5468 | 2010-07-07 Joel Brobecker <brobecker@adacore.com> |
5469 | ||
5470 | * server.c (handle_v_cont): Call mourn_inferior if process | |
5471 | just exited. | |
5472 | (myresume): Likewise. | |
5473 | ||
0fb4aa4b PA |
5474 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
5475 | ||
5476 | Static tracepoints, and integration with UST. | |
5477 | ||
5478 | * configure.ac: Handle --with-ust. substitute ustlibs and ustinc. | |
5479 | * mem-break.c (uninsert_all_breakpoints) | |
5480 | (reinsert_all_breakpoints): New. | |
5481 | * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints): | |
5482 | * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New. | |
5483 | (gdb_agent_ust_loaded, helper_thread_id) | |
5484 | (gdb_agent_helper_thread_id): New macros. | |
5485 | (struct ipa_sym_addresses): Add addr_ust_loaded, | |
5486 | addr_helper_thread_id, addr_cmd_buf. | |
5487 | (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf. | |
5488 | (in_process_agent_loaded_ust): New. | |
5489 | (write_e_ust_not_loaded): New. | |
5490 | (maybe_write_ipa_ust_not_loaded): New. | |
5491 | (struct collect_static_trace_data_action): New. | |
5492 | (enum tracepoint_type) <static_tracepoint>: New. | |
5493 | (struct tracepoint) <handle>: Mention static tracepoints. | |
5494 | (struct static_tracepoint_ctx): New. | |
5495 | (CMD_BUF_SIZE): New. | |
5496 | (add_tracepoint_action): Handle static tracepoint actions. | |
5497 | (unprobe_marker_at): New. | |
5498 | (clear_installed_tracepoints): Handle static tracepoints. | |
5499 | (cmd_qtdp): Handle static tracepoints. | |
5500 | (probe_marker_at): New. | |
5501 | (cmd_qtstart): Handle static tracepoints. | |
5502 | (response_tracepoint): Handle static tracepoints. | |
5503 | (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New. | |
5504 | (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat. | |
5505 | (get_context_regcache): Handle static tracepoints. | |
5506 | (do_action_at_tracepoint): Handle static tracepoint actions. | |
5507 | (traceframe_find_block_type): Handle static trace data blocks. | |
5508 | (traceframe_read_sdata): New. | |
5509 | (download_tracepoints): Download static tracepoint actions. | |
5510 | [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h. | |
5511 | (GDB_PROBE_NAME): New. | |
5512 | (ust_ops): New. | |
5513 | (GET_UST_SYM): New. | |
5514 | (USTF): New. | |
5515 | (dlsym_ust): New. | |
5516 | (ust_marker_to_static_tracepoint): New. | |
5517 | (gdb_probe): New. | |
5518 | (collect_ust_data_at_tracepoint): New. | |
5519 | (gdb_ust_probe): New. | |
5520 | (UNIX_PATH_MAX, SOCK_DIR): New. | |
5521 | (gdb_ust_connect_sync_socket): New. | |
5522 | (resume_thread, stop_thread): New. | |
5523 | (run_inferior_command): New. | |
5524 | (init_named_socket): New. | |
5525 | (gdb_ust_socket_init): New. | |
5526 | (cstr_to_hexstr): New. | |
5527 | (next_st): New. | |
5528 | (first_marker, next_marker): New. | |
5529 | (response_ust_marker): New. | |
5530 | (cmd_qtfstm, cmd_qtsstm): New. | |
5531 | (unprobe_marker_at, probe_marker_at): New. | |
5532 | (cmd_qtstmat, gdb_ust_thread): New. | |
5533 | (gdb_ust_init): New. | |
5534 | (initialize_tracepoint_ftlib): Call gdb_ust_init. | |
5535 | * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h | |
5536 | (ST_REGENTRY): New. | |
5537 | (x86_64_st_collect_regmap): New. | |
5538 | (X86_64_NUM_ST_COLLECT_GREGS): New. | |
5539 | (AMD64_RIP_REGNUM): New. | |
5540 | (supply_static_tracepoint_registers): New. | |
5541 | * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h | |
5542 | (ST_REGENTRY): New. | |
5543 | (i386_st_collect_regmap): New. | |
5544 | (i386_NUM_ST_COLLECT_GREGS): New. | |
5545 | (supply_static_tracepoint_registers): New. | |
5546 | * server.c (handle_query): Handle qXfer:statictrace:read. | |
5547 | <qSupported>: Report support for StaticTracepoints, and | |
5548 | qXfer:statictrace:read features. | |
5549 | * server.h (traceframe_read_sdata) | |
5550 | (supply_static_tracepoint_registers): Declare. | |
5551 | * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex) | |
5552 | (unpack_varlen_hex): Include in IPA build. | |
5553 | * Makefile.in (ustlibs, ustinc): New. | |
5554 | (IPA_OBJS): Add remote-utils-ipa.o. | |
5555 | ($(IPA_LIB)): Link -ldl and -lpthread. | |
5556 | (UST_CFLAGS): New. | |
5557 | (IPAGENT_CFLAGS): Add UST_CFLAGS. | |
5558 | * config.in, configure: Regenerate. | |
5559 | ||
9e4344e5 PA |
5560 | 2010-06-20 Ian Lance Taylor <iant@google.com> |
5561 | Pedro Alves <pedro@codesourcery.com> | |
5562 | ||
5563 | * linux-x86-low.c (always_true): Delete. | |
5564 | (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of | |
5565 | trying to fool the compiler with always_true. | |
5566 | ||
c6beb2cb PA |
5567 | 2010-06-20 Pedro Alves <pedro@codesourcery.com> |
5568 | ||
5569 | * tracepoint.c (condition_true_at_tracepoint): Don't run compiled | |
5570 | conditions in gdbserver. | |
5571 | ||
d2ed6730 UW |
5572 | 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com> |
5573 | ||
5574 | * spu-low.c (spu_read_memory): Wrap around local store limit. | |
5575 | (spu_write_memory): Likewise. | |
5576 | ||
4e29fb54 PA |
5577 | 2010-06-15 Pedro Alves <pedro@codesourcery.com> |
5578 | ||
5579 | * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2) | |
5580 | (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with | |
5581 | LONGEST uses. | |
5582 | * server.h (struct emit_ops): Replace int64_t uses with LONGEST | |
5583 | uses. | |
5584 | * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t | |
5585 | uses with LONGEST uses. | |
5586 | ||
6a271cae PA |
5587 | 2010-06-14 Stan Shebs <stan@codesourcery.com> |
5588 | Pedro Alves <pedro@codesourcery.com> | |
5589 | ||
5590 | Bytecode compiler. | |
5591 | ||
5592 | * linux-x86-low.c: Include limits.h. | |
5593 | (add_insns): New. | |
5594 | (always_true): New. | |
5595 | (EMIT_ASM): New. | |
5596 | (EMIT_ASM32): New. | |
5597 | (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add) | |
5598 | (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh) | |
5599 | (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext, | |
5600 | (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or) | |
5601 | (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal, | |
5602 | (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref, | |
5603 | (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address) | |
5604 | (amd64_emit_const, amd64_emit_call, amd64_emit_reg) | |
5605 | (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext) | |
5606 | (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1) | |
5607 | (amd64_emit_void_call_2): New. | |
5608 | (amd64_emit_ops): New. | |
5609 | (i386_emit_prologue, i386_emit_epilogue, i386_emit_add) | |
5610 | (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed) | |
5611 | (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not) | |
5612 | (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor) | |
5613 | (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed) | |
5614 | (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto) | |
5615 | (i386_emit_goto, i386_write_goto_address, i386_emit_const) | |
5616 | (i386_emit_call, i386_emit_reg, i386_emit_pop) | |
5617 | (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap) | |
5618 | (i386_emit_stack_adjust, i386_emit_int_call_1) | |
5619 | (i386_emit_void_call_2): New. | |
5620 | (i386_emit_ops): New. | |
5621 | (x86_emit_ops): New. | |
5622 | (the_low_target): Install x86_emit_ops. | |
5623 | * server.h (struct emit_ops): New. | |
5624 | (get_raw_reg_func_addr): Declare. | |
5625 | (current_insn_ptr, emit_error): Declare. | |
5626 | * tracepoint.c (get_raw_reg, get_trace_state_variable_value) | |
5627 | (set_trace_state_variable_value): New defines. | |
5628 | (struct ipa_sym_addresses): New fields addr_get_raw_reg, | |
5629 | addr_get_trace_state_variable_value and | |
5630 | addr_set_trace_state_variable_value. | |
5631 | (symbol_list): New fields for get_raw_reg, | |
5632 | get_trace_state_variable_value and set_trace_state_variable_value. | |
5633 | (condfn): New typedef. | |
5634 | (struct tracepoint): New field `compiled_cond'. | |
5635 | (do_action_at_tracepoint): Clear compiled_cond. | |
5636 | (get_trace_state_variable_value, set_trace_state_variable_value): | |
5637 | Export in the IPA. | |
5638 | (condition_true_at_tracepoint): If there's a compiled condition, | |
5639 | run that. | |
5640 | (current_insn_ptr, emit_error): New globals. | |
5641 | (struct bytecode_address): New. | |
5642 | (get_raw_reg_func_addr): New. | |
5643 | (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul) | |
5644 | (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext) | |
5645 | (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor) | |
5646 | (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned) | |
5647 | (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const) | |
5648 | (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap) | |
5649 | (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New. | |
5650 | (compile_tracepoint_condition, compile_bytecodes): New. | |
5651 | * target.h (emit_ops): Forward declare. | |
5652 | (struct target_ops): New field emit_ops. | |
5653 | (target_emit_ops): New. | |
5654 | * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New. | |
5655 | * linux-i386-ipa.c (gdb_agent_get_raw_reg): New. | |
5656 | * linux-low.c (linux_emit_ops): New. | |
5657 | (linux_target_ops): Install it. | |
5658 | * linux-low.h (struct linux_target_ops): New field emit_ops. | |
5659 | ||
92b72907 UW |
5660 | 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com> |
5661 | ||
5662 | * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR. | |
5663 | * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW. | |
5664 | ||
fa593d66 PA |
5665 | 2010-06-01 Pedro Alves <pedro@codesourcery.com> |
5666 | Stan Shebs <stan@codesourcery.com> | |
5667 | ||
5668 | * Makefile.in (IPA_DEPFILES, extra_libraries): New. | |
5669 | (all): Depend on $(extra_libraries). | |
5670 | (install-only): Install the IPA. | |
5671 | (IPA_OBJS, IPA_LIB): New. | |
5672 | (clean): Remove the IPA lib. | |
5673 | (IPAGENT_CFLAGS): New. | |
5674 | (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o) | |
5675 | (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o) | |
5676 | (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules. | |
5677 | * linux-amd64-ipa.c, linux-i386-ipa.c: New files. | |
5678 | * configure.ac: Check for atomic builtins support in the compiler. | |
5679 | (IPA_DEPFILES, extra_libraries): Define. | |
5680 | * configure.srv (ipa_obj): Add description. | |
5681 | (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define. | |
5682 | (i[34567]86-*-linux*): Set ipa_obj. | |
5683 | (x86_64-*-linux*): Set ipa_obj. | |
5684 | * linux-low.c (stabilizing_threads): New. | |
5685 | (supports_fast_tracepoints): New. | |
5686 | (linux_detach): Stabilize threads before detaching. | |
5687 | (handle_tracepoints): Handle internal tracing breakpoints. Assert | |
5688 | the lwp is either not stabilizing, or is moving out of a jump pad. | |
5689 | (linux_fast_tracepoint_collecting): New. | |
5690 | (maybe_move_out_of_jump_pad): New. | |
5691 | (enqueue_one_deferred_signal): New. | |
5692 | (dequeue_one_deferred_signal): New. | |
5693 | (linux_wait_for_event_1): If moving out of a jump pad, defer | |
5694 | pending signals to later. | |
5695 | (linux_stabilize_threads): New. | |
5696 | (linux_wait_1): Check if threads need moving out of jump pads, and | |
5697 | do it if so. | |
5698 | (stuck_in_jump_pad_callback): New. | |
5699 | (move_out_of_jump_pad_callback): New. | |
5700 | (lwp_running): New. | |
5701 | (linux_resume_one_lwp): Handle moving out of jump pads. | |
5702 | (linux_set_resume_request): Dequeue deferred signals. | |
5703 | (need_step_over_p): Also step over fast tracepoint jumps. | |
5704 | (start_step_over): Also uninsert fast tracepoint jumps. | |
5705 | (finish_step_over): Also reinsert fast tracepoint jumps. | |
5706 | (linux_install_fast_tracepoint_jump): New. | |
5707 | (linux_target_ops): Install linux_stabilize_threads and | |
5708 | linux_install_fast_tracepoint_jump_pad. | |
5709 | * linux-low.h (linux_target_ops) <get_thread_area, | |
5710 | install_fast_tracepoint_jump_pad>: New fields. | |
5711 | (struct lwp_info) <collecting_fast_tracepoint, | |
5712 | pending_signals_to_report, exit_jump_pad_bkpt>: New fields. | |
5713 | (linux_get_thread_area): Declare. | |
5714 | * linux-x86-low.c (jump_insn): New. | |
5715 | (x86_get_thread_area): New. | |
5716 | (append_insns): New. | |
5717 | (push_opcode): New. | |
5718 | (amd64_install_fast_tracepoint_jump_pad): New. | |
5719 | (i386_install_fast_tracepoint_jump_pad): New. | |
5720 | (x86_install_fast_tracepoint_jump_pad): New. | |
5721 | (the_low_target): Install x86_get_thread_area and | |
5722 | x86_install_fast_tracepoint_jump_pad. | |
5723 | * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory. | |
5724 | (struct fast_tracepoint_jump): New. | |
5725 | (fast_tracepoint_jump_insn): New. | |
5726 | (fast_tracepoint_jump_shadow): New. | |
5727 | (find_fast_tracepoint_jump_at): New. | |
5728 | (fast_tracepoint_jump_here): New. | |
5729 | (delete_fast_tracepoint_jump): New. | |
5730 | (set_fast_tracepoint_jump): New. | |
5731 | (uninsert_fast_tracepoint_jumps_at): New. | |
5732 | (reinsert_fast_tracepoint_jumps_at): New. | |
5733 | (set_breakpoint_at): Use write_inferior_memory. | |
5734 | (uninsert_raw_breakpoint): Use write_inferior_memory. | |
5735 | (check_mem_read): Mask out fast tracepoint jumps. | |
5736 | (check_mem_write): Mask out fast tracepoint jumps. | |
5737 | * mem-break.h (struct fast_tracepoint_jump): Forward declare. | |
5738 | (set_fast_tracepoint_jump): Declare. | |
5739 | (delete_fast_tracepoint_jump) | |
5740 | (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at) | |
5741 | (reinsert_fast_tracepoint_jumps_at): Declare. | |
5742 | * regcache.c: Don't compile many functions when building the | |
5743 | in-process agent library. | |
5744 | (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating | |
5745 | the register buffer in the heap. | |
5746 | (free_register_cache): If the register buffer isn't owned by the | |
5747 | regcache, don't free it. | |
5748 | (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate | |
5749 | pre-existing register caches. | |
5750 | * remote-utils.c (convert_int_to_ascii): Constify `from' parameter | |
5751 | type. | |
5752 | (convert_ascii_to_int): : Constify `from' parameter type. | |
5753 | (decode_M_packet, decode_X_packet): Replace the `to' parameter by | |
5754 | a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc | |
5755 | the needed buffer in-place. | |
5756 | (relocate_instruction): New. | |
5757 | * server.c (handle_query) <qSymbols>: If the target supports | |
5758 | tracepoints, give it a chance of looking up symbols. Report | |
5759 | support for fast tracepoints. | |
5760 | (handle_status): Stabilize threads. | |
5761 | (process_serial_event): Adjust. | |
5762 | * server.h (struct fast_tracepoint_jump): Forward declare. | |
5763 | (struct process_info) <fast_tracepoint_jumps>: New field. | |
5764 | (convert_ascii_to_int, convert_int_to_ascii): Adjust. | |
5765 | (decode_X_packet, decode_M_packet): Adjust. | |
5766 | (relocate_instruction): Declare. | |
5767 | (in_process_agent_loaded): Declare. | |
5768 | (tracepoint_look_up_symbols): Declare. | |
5769 | (struct fast_tpoint_collect_status): Declare. | |
5770 | (fast_tracepoint_collecting): Declare. | |
5771 | (force_unlock_trace_buffer): Declare. | |
5772 | (handle_tracepoint_bkpts): Declare. | |
5773 | (initialize_low_tracepoint) | |
5774 | (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare. | |
5775 | * target.h (struct target_ops) <stabilize_threads, | |
5776 | install_fast_tracepoint_jump_pad>: New fields. | |
5777 | (stabilize_threads, install_fast_tracepoint_jump_pad): New. | |
5778 | * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h. | |
5779 | [HAVE_STDINT_H]: Include stdint.h. | |
5780 | (trace_debug_1): Rename to ... | |
5781 | (trace_vdebug): ... this. | |
5782 | (trace_debug): Rename to ... | |
5783 | (trace_debug_1): ... this. Add `level' parameter. | |
5784 | (trace_debug): New. | |
5785 | (ATTR_USED, ATTR_NOINLINE): New. | |
5786 | (IP_AGENT_EXPORT): New. | |
5787 | (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end) | |
5788 | (collecting, gdb_collect, stop_tracing, flush_trace_buffer) | |
5789 | (about_to_request_buffer_space, trace_buffer_is_full) | |
5790 | (stopping_tracepoint, expr_eval_result, error_tracepoint) | |
5791 | (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr) | |
5792 | (trace_buffer_lo, trace_buffer_hi, traceframe_read_count) | |
5793 | (traceframe_write_count, traceframes_created) | |
5794 | (trace_state_variables) | |
5795 | New renaming defines. | |
5796 | (struct ipa_sym_addresses): New. | |
5797 | (STRINGIZE_1, STRINGIZE, IPA_SYM): New. | |
5798 | (symbol_list): New. | |
5799 | (ipa_sym_addrs): New. | |
5800 | (all_tracepoint_symbols_looked_up): New. | |
5801 | (in_process_agent_loaded): New. | |
5802 | (write_e_ipa_not_loaded): New. | |
5803 | (maybe_write_ipa_not_loaded): New. | |
5804 | (tracepoint_look_up_symbols): New. | |
5805 | (debug_threads) [IN_PROCESS_AGENT]: New. | |
5806 | (read_inferior_memory) [IN_PROCESS_AGENT]: New. | |
5807 | (UNKNOWN_SIDE_EFFECTS): New. | |
5808 | (stop_tracing): New. | |
5809 | (flush_trace_buffer): New. | |
5810 | (stop_tracing_bkpt): New. | |
5811 | (flush_trace_buffer_bkpt): New. | |
5812 | (read_inferior_integer): New. | |
5813 | (read_inferior_uinteger): New. | |
5814 | (read_inferior_data_pointer): New. | |
5815 | (write_inferior_data_pointer): New. | |
5816 | (write_inferior_integer): New. | |
5817 | (write_inferior_uinteger): New. | |
5818 | (struct collect_static_trace_data_action): Delete. | |
5819 | (enum tracepoint_type): New. | |
5820 | (struct tracepoint) <type>: New field `type'. | |
43aaf8b6 PA |
5821 | <actions_str, step_actions, step_actions_str>: Only include in |
5822 | GDBserver. | |
fa593d66 PA |
5823 | <orig_size, obj_addr_on_target, adjusted_insn_addr> |
5824 | <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields. | |
5825 | (tracepoints): Use IP_AGENT_EXPORT. | |
5826 | (last_tracepoint): Don't include in the IPA. | |
5827 | (stopping_tracepoint): Use IP_AGENT_EXPORT. | |
5828 | (trace_buffer_is_full): Use IP_AGENT_EXPORT. | |
5829 | (alloced_trace_state_variables): New. | |
5830 | (trace_state_variables): Use IP_AGENT_EXPORT. | |
5831 | (traceframe_t): Delete unused variable. | |
5832 | (circular_trace_buffer): Don't include in the IPA. | |
5833 | (trace_buffer_start): Delete. | |
5834 | (struct trace_buffer_control): New. | |
5835 | (trace_buffer_free): Delete. | |
5836 | (struct ipa_trace_buffer_control): New. | |
5837 | (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV) | |
5838 | (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT): | |
5839 | New. | |
5840 | (trace_buffer_ctrl): New. | |
5841 | (TRACE_BUFFER_CTRL_CURR): New. | |
5842 | (trace_buffer_start, trace_buffer_free, trace_buffer_end_free): | |
5843 | Reimplement as macros. | |
5844 | (trace_buffer_wrap): Delete. | |
5845 | (traceframe_write_count, traceframe_read_count) | |
5846 | (traceframes_created, tracing): Use IP_AGENT_EXPORT. | |
5847 | (struct tracepoint_hit_ctx) <type>: New field. | |
5848 | (struct fast_tracepoint_ctx): New. | |
5849 | (memory_barrier): New. | |
5850 | (cmpxchg): New. | |
5851 | (record_tracepoint_error): Update atomically in the IPA. | |
5852 | (clear_inferior_trace_buffer): New. | |
5853 | (about_to_request_buffer_space): New. | |
5854 | (trace_buffer_alloc): Handle GDBserver and inferior simulatenous | |
5855 | updating the same buffer. | |
5856 | (add_tracepoint): Default the tracepoint's type to trap | |
5857 | tracepoint, and orig_size to -1. | |
5858 | (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated | |
5859 | internal variables. | |
5860 | (create_trace_state_variable): New parameter `gdb'. Handle it. | |
5861 | (clear_installed_tracepoints): Clear fast tracepoint jumps. | |
5862 | (cmd_qtdp): Handle fast tracepoints. | |
5863 | (cmd_qtdv): Adjust. | |
5864 | (max_jump_pad_size): New. | |
5865 | (gdb_jump_pad_head): New. | |
5866 | (get_jump_space_head): New. | |
5867 | (claim_jump_space): New. | |
5868 | (sort_tracepoints): New. | |
5869 | (MAX_JUMP_SIZE): New. | |
5870 | (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the | |
5871 | IPA. | |
5872 | (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected | |
5873 | support. Upload fast traceframes, and delete internal IPA | |
5874 | breakpoints. | |
5875 | (stop_tracing_handler): New. | |
5876 | (flush_trace_buffer_handler): New. | |
5877 | (cmd_qtstop): Upload fast tracepoints. | |
5878 | (response_tracepoint): Handle fast tracepoints. | |
5879 | (tracepoint_finished_step): Upload fast traceframes. Set the | |
5880 | tracepoint hit context's tracepoint type. | |
5881 | (handle_tracepoint_bkpts): New. | |
5882 | (tracepoint_was_hit): Set the tracepoint hit context's tracepoint | |
5883 | type. Add comment about fast tracepoints. | |
5884 | (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the | |
5885 | non-existing action_str field. | |
5886 | (get_context_regcache): Handle fast tracepoints. | |
5887 | (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC | |
5888 | to the regcache. | |
5889 | (fast_tracepoint_from_jump_pad_address): New. | |
5890 | (fast_tracepoint_from_ipa_tpoint_address): New. | |
5891 | (collecting_t): New. | |
5892 | (force_unlock_trace_buffer): New. | |
5893 | (fast_tracepoint_collecting): New. | |
5894 | (collecting): New. | |
5895 | (gdb_collect): New. | |
5896 | (write_inferior_data_ptr): New. | |
5897 | (target_tp_heap): New. | |
5898 | (target_malloc): New. | |
5899 | (download_agent_expr): New. | |
5900 | (UALIGN): New. | |
5901 | (download_tracepoints): New. | |
5902 | (download_trace_state_variables): New. | |
5903 | (upload_fast_traceframes): New. | |
5904 | (IPA_FIRST_TRACEFRAME): New. | |
5905 | (IPA_NEXT_TRACEFRAME_1): New. | |
5906 | (IPA_NEXT_TRACEFRAME): New. | |
5907 | [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h. | |
5908 | [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer) | |
5909 | (gdb_jump_pad_buffer_end): New. | |
5910 | [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New. | |
5911 | (initialize_tracepoint): Adjust. | |
5912 | [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch | |
5913 | buffer. Initialize the low module. | |
5914 | * utils.c (PREFIX, TOOLNAME): New. | |
5915 | (malloc_failure): Use PREFIX. | |
5916 | (error): In the IPA, an error causes an exit. | |
5917 | (fatal, warning): Use PREFIX. | |
5918 | (internal_error): Use TOOLNAME. | |
5919 | (NUMCELLS): Increase to 10. | |
5920 | * configure, config.in: Regenerate. | |
5921 | ||
d149dd1d PA |
5922 | 2010-06-01 Pedro Alves <pedro@codesourcery.com> |
5923 | ||
5924 | * server.c (handle_query) <qSupported>: Do two passes over the | |
5925 | qSupported string to avoid nesting strtok. | |
5926 | ||
f6528abd JK |
5927 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
5928 | ||
5929 | * Makefile.in (SFILES): Add $(srcdir)/proc-service.list. | |
5930 | (CDEPS): New. | |
5931 | * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also | |
5932 | -Wl,--dynamic-list. | |
5933 | * configure: Regenerate. | |
5934 | * proc-service.list: New. | |
5935 | ||
ca2a87a0 JK |
5936 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
5937 | ||
5938 | * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT. | |
5939 | New comment. | |
5940 | ||
363a6e9f OS |
5941 | 2010-05-26 Ozkan Sezer <sezeroz@gmail.com> |
5942 | ||
5943 | * gdbreplay.c (remote_open): Check error return from socket() call by | |
5944 | its equality to -1 not by it being negative. | |
5945 | * remote-utils.c (remote_open): Likewise. | |
5946 | ||
d23b6cb1 PA |
5947 | 2010-05-23 Pedro Alves <pedro@codesourcery.com> |
5948 | ||
5949 | * config.h: Regenerate. | |
5950 | ||
28d3cf85 MK |
5951 | 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com> |
5952 | ||
5953 | * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel | |
5954 | doesn't provide PTRACE_GET_THREAD_AREA. | |
5955 | ||
fea36a59 MK |
5956 | 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com> |
5957 | ||
5958 | * linux-m68k-low.c: Include <asm/ptrace.h> | |
5959 | (ps_get_thread_area): Implement. | |
5960 | ||
24b066ba DE |
5961 | 2010-05-03 Doug Evans <dje@google.com> |
5962 | ||
5963 | * event-loop.c (struct callback_event): New struct. | |
5964 | (callback_list): New global. | |
5965 | (append_callback_event, delete_callback_event): New functions. | |
5966 | (process_callback): New function. | |
5967 | (start_event_loop): Call it. | |
5968 | * remote-utils.c (NOT_SCHEDULED): Define. | |
5969 | (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals, | |
5970 | moved out of readchar. | |
5971 | (readchar): Rewrite. Call reschedule before returning. | |
5972 | (reset_readchar): New function. | |
5973 | (remote_close): Call it. | |
5974 | (process_remaining, reschedule): New functions. | |
5975 | * server.h (callback_handler_func): New typedef. | |
5976 | (append_callback_event, delete_callback_event): Declare. | |
5977 | ||
9836d6ea PA |
5978 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
5979 | ||
5980 | * proc-service.c (ps_pglobal_lookup): Use | |
5981 | thread_db_look_up_one_symbol. | |
5982 | * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb' | |
5983 | parameter. Use it instead of all_symbols_looked_up. | |
5984 | * server.h (struct process_info) <all_symbols_looked_up>: Delete | |
5985 | field. | |
5986 | (all_symbols_looked_up): Don't declare. | |
5987 | (look_up_one_symbol): Add new `may_ask_gdb' parameter. | |
5988 | * thread-db.c (struct thread_db) <all_symbols_looked_up>: New | |
5989 | field. | |
5990 | (thread_db_look_up_symbols): Adjust call to look_up_one_symbol. | |
5991 | Set all_symbols_looked_up here. | |
5992 | (thread_db_look_up_one_symbol): New. | |
5993 | (thread_db_get_tls_address): Adjust. | |
5994 | (thread_db_load_search, try_thread_db_load_1): Always allocate the | |
5995 | thread_db object on the heap, and tentatively set it in the | |
5996 | process structure. | |
5997 | (thread_db_init): Don't set all_symbols_looked_up here. | |
5998 | * linux-low.h (thread_db_look_up_one_symbol): Declare. | |
5999 | ||
7984d532 PA |
6000 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
6001 | ||
6002 | * linux-low.c (linux_kill, linux_detach): Adjust. | |
6003 | (status_pending_p_callback): Remove redundant statement. Check | |
6004 | for !TARGET_WAITIKIND_IGNORE, instead of | |
6005 | TARGET_WAITKIND_STOPPED. | |
6006 | (handle_tracepoints): Make sure LWP is locked. Adjust. | |
6007 | (linux_wait_for_event_1): Adjust. | |
6008 | (linux_cancel_breakpoints): New. | |
6009 | (unsuspend_one_lwp): New. | |
6010 | (unsuspend_all_lwps): New. | |
6011 | (linux_wait_1): If finishing a step-over, unsuspend all lwps. | |
6012 | (send_sigstop_callback): Change return type to int, add new | |
6013 | `except' parameter and handle it. | |
6014 | (suspend_and_send_sigstop_callback): New. | |
6015 | (stop_all_lwps): Add new `suspend' and `expect' parameters, and | |
6016 | pass them down. If SUSPEND, also increment the lwp's suspend | |
6017 | count. | |
6018 | (linux_resume_one_lwp): Add notice about resuming a suspended LWP. | |
6019 | (need_step_over_p): Don't consider suspended LWPs. | |
6020 | (start_step_over): Adjust. | |
6021 | (proceed_one_lwp): Change return type to int, add new `except' | |
6022 | parameter and handle it. | |
6023 | (unsuspend_and_proceed_one_lwp): New. | |
6024 | (proceed_all_lwps): Use find_inferior instead of | |
6025 | for_each_inferior. | |
6026 | (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them | |
6027 | also decrement the suspend count of LWPs. Pass `except' down, | |
6028 | instead of hacking its suspend count. | |
6029 | (linux_pause_all): Add `freeze' parameter. Adjust. | |
6030 | (linux_unpause_all): New. | |
6031 | (linux_target_ops): Install linux_unpause_all. | |
6032 | * server.c (handle_status): Adjust. | |
6033 | * target.h (struct target_ops): New fields `unpause_all' and | |
6034 | `cancel_breakpoints'. Add new parameter to `pause_all'. | |
6035 | (pause_all): Add new `freeze' parameter. | |
6036 | (unpause_all): New. | |
6037 | (cancel_breakpoints): New. | |
6038 | * tracepoint.c (clear_installed_tracepoints): Pause threads, and | |
6039 | cancel breakpoints. | |
6040 | (cmd_qtstart): Pause threads. | |
6041 | (stop_tracing): Pause threads, and cancel breakpoints. | |
6042 | * win32-low.c (win32_target_ops): Adjust. | |
6043 | ||
e471f25b PA |
6044 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
6045 | ||
6046 | * linux-low.c (linux_wait_for_event_1): Move passing the signal to | |
6047 | the inferior right away from here... | |
6048 | (linux_wait_1): ... to here, and adjust to check the thread's | |
6049 | last_resume_kind instead of the lwp's step or stop_expected flags. | |
6050 | ||
1915ef4f PA |
6051 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
6052 | ||
6053 | * README: Use consistent `GDB' and `GDBserver' spellings. | |
6054 | ||
f9e39928 PA |
6055 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
6056 | ||
6057 | * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped. | |
6058 | (linux_kill): Stop all lwps here. Don't delete the main lwp here. | |
6059 | (linux_detach_one_lwp): Assume the lwp is stopped. | |
6060 | (any_thread_of): Delete. | |
6061 | (linux_detach): Stop all lwps here. Don't blindly delete all | |
6062 | breakpoints. | |
6063 | (delete_lwp_callback): New. | |
6064 | (linux_mourn): Delete all lwps of the process that is gone. | |
6065 | (linux_wait_1): Don't delete the last lwp of the process here. | |
6066 | * mem-break.h (mark_breakpoints_out): Declare. | |
6067 | * mem-break.c (mark_breakpoints_out): New. | |
6068 | (free_all_breakpoints): Use it. | |
6069 | * server.c (handle_target_event): If the process is gone, mark | |
6070 | breakpoints out. | |
6071 | * thread-db.c (struct thread_db) <create_bp>: New field. | |
6072 | (thread_db_enable_reporting): Fix prototype. Store a thread event | |
6073 | breakpoint reference in the thread_db struct. | |
6074 | (thread_db_load_search): Clear the thread_db object. | |
6075 | (try_thread_db_load_1): Ditto. | |
6076 | (switch_to_process): New. | |
6077 | (disable_thread_event_reporting): Use it. | |
6078 | (remove_thread_event_breakpoints): New. | |
6079 | (thread_db_detach, thread_db_mourn): Use it. | |
6080 | ||
1e7fc18c PA |
6081 | 2010-05-01 Pedro Alves <pedro@codesourcery.com> |
6082 | ||
6083 | * linux-low.c (linux_enable_event_reporting): New. | |
6084 | (linux_wait_for_event_1, handle_extended_wait): Use it. | |
6085 | ||
02fc4de7 PA |
6086 | 2010-04-30 Pedro Alves <pedro@codesourcery.com> |
6087 | ||
6088 | * linux-low.c (linux_kill_one_lwp, linux_kill) | |
6089 | (linux_detach_one_lwp): Adjust to send_sigstop interface change. | |
6090 | (send_sigstop): Take an lwp_info as parameter instead. Queue a | |
6091 | SIGSTOP even if the LWP is stopped. | |
6092 | (send_sigstop_callback): New. | |
6093 | (stop_all_lwps): Use send_sigstop_callback instead. | |
6094 | (linux_resume_one_thread): Adjust. | |
6095 | (proceed_one_lwp): Still proceed an LWP that the client has | |
6096 | requested to stop, if we haven't reported it as stopped yet. Make | |
6097 | sure that LWPs the client want stopped, have a pending SIGSTOP. | |
6098 | ||
bc3b5632 DE |
6099 | 2010-04-26 Doug Evans <dje@google.com> |
6100 | ||
ae1ada35 DE |
6101 | * server.c (handle_general_set): Make static. |
6102 | ||
bc3b5632 DE |
6103 | * remote-utils.c (putpkt_binary_1): Call readchar instead of read. |
6104 | Print received char after testing for error/eof instead of before. | |
6105 | (input_interrupt): Tweak comment. | |
6106 | ||
65730243 DE |
6107 | 2010-04-23 Doug Evans <dje@google.com> |
6108 | ||
6109 | * server.c (start_inferior): Print inferior argv if --debug. | |
6110 | ||
a8ae7dc0 AR |
6111 | 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com> |
6112 | ||
6113 | * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists. | |
6114 | * nto-x86-low.c: Include server.h | |
6115 | ||
1c07cc19 PM |
6116 | 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr> |
6117 | ||
6118 | * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to | |
6119 | be consistent with other sources of this directory. | |
6120 | (init_registers_amd64): Correct name of source file of this function | |
6121 | in the comment. | |
6122 | ||
e0a61e09 PM |
6123 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
6124 | ||
6125 | * configure.srv (x86_64-*-mingw*): New configuration for Windows | |
6126 | 64-bit executables. | |
6127 | ||
54709339 PM |
6128 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
6129 | ||
6130 | * win32-i386-low.c: Add 64-bit support. | |
6131 | (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting. | |
6132 | (init_registers_amd64): Declare. | |
6133 | (mappings): Add 64-bit version of array. | |
6134 | (init_windows_x86): New function. | |
6135 | (the_low_target): Change init_arch field to init_windows_x86. | |
6136 | ||
e8f0053d PM |
6137 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
6138 | ||
6139 | * win32-low.c: Adapt to support also 64-bit architecture. | |
6140 | (child_xfer_memory): Use uintptr_t type for local variable `addr'. | |
6141 | (get_image_name): Use SIZE_T type for local variable `done'. | |
6142 | (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'. | |
6143 | (toolhelp_get_dll_name): Idem. | |
6144 | (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'. | |
6145 | Use uintptr_t typecast to avoid warning. | |
6146 | (handle_unload_dll): Use uintptr_t typecast to avoid warning. | |
6147 | (handle_exception): Use phex_nz to avoid warning. | |
6148 | (win32_wait): Remove unused local variable `process'. | |
6149 | ||
c481e77e PM |
6150 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
6151 | ||
6152 | * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by | |
6153 | `amd64-avx.o'. | |
6154 | ||
12ea4b69 PM |
6155 | 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr> |
6156 | ||
6157 | * configure.ac: Use `ws2_32' library for srv_mingw. | |
6158 | * configure: Regenerate. | |
6159 | * gdbreplay.c: Include winsock2.h instead of winsock.h. | |
6160 | * remote-utils.c: Likewise. | |
6161 | ||
f6d1620c L |
6162 | 2010-04-17 H.J. Lu <hongjiu.lu@intel.com> |
6163 | ||
6164 | * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only | |
6165 | if __x86_64__ is defined. | |
6166 | ||
8e642873 PM |
6167 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
6168 | ||
6169 | * configure: Regenerate. | |
6170 | ||
711e434b PM |
6171 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
6172 | ||
6173 | * server.c (handle_query): Handle 'qGetTIBAddr' query. | |
6174 | * target.h (target_ops): New get_tib_address field. | |
6175 | * win32-low.h (win32_thread_info): Add thread_local_base field. | |
6176 | * win32-low.c (child_add_thread): Add tlb argument. | |
6177 | Set thread_local_base field to TLB. | |
6178 | (get_child_debug_event): Adapt to child_add_thread change. | |
6179 | (win32_get_tib_address): New function. | |
6180 | (win32_target_ops): Set get_tib_address field to | |
6181 | win32_get_tib_address. | |
6182 | * linux-low.c (linux_target_ops): Set get_tib_address field to NULL. | |
6183 | ||
505106cd PA |
6184 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
6185 | ||
505106cd PA |
6186 | * linux-low.c (linux_mourn): Also remove the process. |
6187 | * server.c (handle_target_event): Don't remove the process here. | |
6188 | * nto-low.c (nto_mourn): New. | |
6189 | (nto_target_ops): Install it. | |
6190 | * spu-low.c (spu_mourn): New. | |
6191 | (spu_target_ops): Install it. | |
6192 | * win32-low.c (win32_mourn): New. | |
6193 | (win32_target_ops): Install it. | |
6194 | ||
e8470a06 PA |
6195 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
6196 | ||
6197 | * server.h (buffer_xml_printf): Remove redundant `;'. | |
6198 | ||
45ba0d02 PA |
6199 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
6200 | ||
6201 | * regcache.c (set_register_cache): Invalidate regcaches before | |
6202 | changing the register cache layout. | |
6203 | (regcache_invalidate_one): Allow a NULL regcache. | |
6204 | * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate | |
6205 | regcaches before changing the register cache layout or the target | |
6206 | regsets. | |
6207 | ||
59e04013 L |
6208 | 2010-04-12 H.J. Lu <hongjiu.lu@intel.com> |
6209 | ||
6210 | * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused | |
6211 | variable warning on Linux/x86-64. | |
6212 | ||
8336d594 PA |
6213 | 2010-04-11 Pedro Alves <pedro@codesourcery.com> |
6214 | ||
6215 | GDBserver disconnected tracing support. | |
6216 | ||
6217 | * linux-low.c (linux_remove_process): Delete. | |
6218 | (add_lwp): Don't set last_resume_kind here. | |
6219 | (linux_kill): Use `mourn'. | |
6220 | (linux_detach): Use `thread_db_detach', and `mourn'. | |
6221 | (linux_mourn): New. | |
6222 | (linux_attach_lwp_1): Adjust comment. | |
6223 | (linux_attach): last_resume_kind moved the thread_info; adjust. | |
6224 | (status_pending_p_callback): Adjust. | |
6225 | (linux_wait_for_event_1): Adjust. | |
6226 | (count_events_callback, select_singlestep_lwp_callback) | |
6227 | (select_event_lwp_callback, cancel_breakpoints_callback) | |
6228 | (db_wants_lwp_stopped, linux_wait_1, need_step_over_p) | |
6229 | (proceed_one_lwp): Adjust. | |
6230 | (linux_async): Add debug output. | |
6231 | (linux_thread_stopped): New. | |
6232 | (linux_pause_all): New. | |
6233 | (linux_target_ops): Install linux_mourn, linux_thread_stopped and | |
6234 | linux_pause_all. | |
6235 | * linux-low.h (struct lwp_info): Delete last_resume_kind field. | |
6236 | (thread_db_free): Delete declaration. | |
6237 | (thread_db_detach, thread_db_mourn): Declare. | |
6238 | * thread-db.c (thread_db_init): Use thread_db_mourn. | |
6239 | (thread_db_free): Delete, split in two. | |
6240 | (disable_thread_event_reporting): New. | |
6241 | (thread_db_detach): New. | |
6242 | (thread_db_mourn): New. | |
6243 | ||
6244 | * server.h (struct thread_info) <last_resume_kind>: New field. | |
6245 | <attached>: Add comment. | |
6246 | <gdb_detached>: New field. | |
6247 | (handler_func): Change return type to int. | |
6248 | (handle_serial_event, handle_target_event): Ditto. | |
6249 | (gdb_connected): Declare. | |
6250 | (tracing): Delete. | |
6251 | (disconnected_tracing): Declare. | |
6252 | (stop_tracing): Declare. | |
6253 | ||
6254 | * server.c (handle_query) <qSupported>: Report support for | |
6255 | disconnected tracing. | |
6256 | (queue_stop_reply_callback): Account for running threads. | |
6257 | (gdb_wants_thread_stopped): New. | |
6258 | (gdb_wants_all_threads_stopped): New. | |
6259 | (gdb_reattached_process): New. | |
6260 | (handle_status): Clear the `gdb_detached' flag of all processes. | |
6261 | In all-stop, stop all threads. | |
6262 | (main): Be sure to leave tfind mode. Handle disconnected tracing. | |
6263 | (process_serial_event): If the remote connection breaks, or if an | |
6264 | exit was forced with "monitor exit", force an event loop exit. | |
6265 | Handle disconnected tracing on detach. | |
6266 | (handle_serial_event): Adjust. | |
6267 | (handle_target_event): If GDB isn't connected, forward events back | |
6268 | to the inferior, unless the last process exited, in which case, | |
6269 | exit gdbserver. Adjust interface. | |
6270 | ||
6271 | * remote-utils.c (remote_open): Don't block in accept. Instead | |
6272 | register an event loop source on the listen socket file | |
6273 | descriptor. Refactor bits into ... | |
6274 | (listen_desc): ... this new global. | |
6275 | (gdb_connected): ... this new function. | |
6276 | (enable_async_notification): ... this new function. | |
6277 | (handle_accept_event): ... this new function. | |
6278 | (remote_close): Clear remote_desc. | |
6279 | ||
6280 | * inferiors.c (add_thread): Set the new thread's last_resume_kind. | |
6281 | ||
6282 | * target.h (struct target_ops) <mourn, thread_stopped, pause_all>: | |
6283 | New fields. | |
6284 | (mourn_inferior): Define. | |
6285 | (target_process_qsupported): Avoid the dangling else problem. | |
6286 | (thread_stopped): Define. | |
6287 | (pause_all): Define. | |
6288 | (target_waitstatus_to_string): Declare. | |
6289 | * target.c (target_waitstatus_to_string): New. | |
6290 | ||
6291 | * tracepoint.c (tracing): Make extern. | |
6292 | (disconnected_tracing): New. | |
6293 | (stop_tracing): Make extern. Handle tracing stops due to GDB | |
6294 | disconnecting. | |
6295 | (cmd_qtdisconnected): New. | |
6296 | (cmd_qtstatus): Report disconnected tracing status in trace reply. | |
6297 | (handle_tracepoint_general_set): Handle QTDisconnected. | |
6298 | ||
6299 | * event-loop.c (event_handler_func): Change return type to int. | |
6300 | (process_event): Bail out if the event handler wants the event | |
6301 | loop to stop. | |
6302 | (handle_file_event): Ditto. | |
6303 | (start_event_loop): Bail out if the event handler wants the event | |
6304 | loop to stop. | |
6305 | ||
6306 | * nto-low.c (nto_target_ops): Adjust. | |
6307 | * spu-low.c (spu_wait): Don't remove the process here. | |
6308 | (spu_target_ops): Adjust. | |
6309 | * win32-low.c (win32_wait): Don't remove the process here. | |
6310 | (win32_target_ops): Adjust. | |
6311 | ||
5d267c4c PA |
6312 | 2010-04-11 Pedro Alves <pedro@codesourcery.com> |
6313 | ||
6314 | * regcache.c (realloc_register_cache): Invalidate inferior's | |
6315 | regcache before recreating it. | |
6316 | ||
623ccd72 PA |
6317 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
6318 | ||
6319 | * tracepoint.c (cmd_qtstatus): Report trace buffer circularity. | |
6320 | ||
219f2f23 PA |
6321 | 2010-04-09 Stan Shebs <stan@codesourcery.com> |
6322 | Pedro Alves <pedro@codesourcery.com> | |
6323 | ||
6324 | * server.h (LONGEST): New. | |
6325 | (struct thread_info) <while_stepping>: New field. | |
6326 | (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz): | |
6327 | Declare. | |
6328 | (initialize_tracepoint, handle_tracepoint_general_set) | |
6329 | (handle_tracepoint_query, tracepoint_finished_step) | |
6330 | (tracepoint_was_hit, release_while_stepping_state_list): | |
6331 | (current_traceframe): Declare. | |
6332 | * server.c (handle_general_set): Handle tracepoint packets. | |
6333 | (read_memory): New. | |
6334 | (write_memory): New. | |
6335 | (handle_search_memory_1): Use read_memory. | |
6336 | (handle_query): Report support for conditional tracepoints, trace | |
6337 | state variables, and tracepoint sources. Handle tracepoint | |
6338 | queries. | |
6339 | (main): Initialize the tracepoints module. | |
6340 | (process_serial_event): Handle traceframe reads/writes. | |
6341 | ||
6342 | * linux-low.c (handle_tracepoints): New. | |
6343 | (linux_wait_1): Call it. | |
6344 | (linux_resume_one_lwp): Handle while-stepping. | |
6345 | (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New. | |
6346 | (linux_target_ops): Install them. | |
6347 | * linux-low.h (struct linux_target_ops) <supports_tracepoints>: | |
6348 | New field. | |
6349 | * linux-x86-low.c (x86_supports_tracepoints): New. | |
6350 | (the_low_target). Install it. | |
6351 | ||
6352 | * mem-break.h (delete_breakpoint): Declare. | |
6353 | * mem-break.c (delete_breakpoint): Make external. | |
6354 | ||
6355 | * target.h (struct target_ops): Add `supports_tracepoints', | |
6356 | `read_pc', and `write_pc' fields. | |
6357 | (target_supports_tracepoints): Define. | |
6358 | * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two) | |
6359 | (phex_nz): New. | |
6360 | ||
6361 | * regcache.h (struct regcache) <registers_owned>: New field. | |
6362 | (init_register_cache, regcache_cpy): Declare. | |
6363 | (regcache_read_pc, regcache_write_pc): Declare. | |
6364 | (register_cache_size): Declare. | |
6365 | (supply_regblock): Declare. | |
6366 | * regcache.c (init_register_cache): New. | |
6367 | (new_register_cache): Use it. | |
6368 | (regcache_cpy): New. | |
6369 | (register_cache_size): New. | |
6370 | (supply_regblock): New. | |
6371 | (regcache_read_pc, regcache_write_pc): New. | |
889bf7c5 | 6372 | |
219f2f23 PA |
6373 | * tracepoint.c: New. |
6374 | ||
6375 | * Makefile.in (OBS): Add tracepoint.o. | |
6376 | (tracepoint.o): New rule. | |
6377 | ||
3a13a53b L |
6378 | 2010-04-08 H.J. Lu <hongjiu.lu@intel.com> |
6379 | ||
6380 | * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c. | |
6381 | (i386-mmx.o): New. | |
6382 | (i386-mmx.c): Likewise. | |
6383 | (i386-mmx-linux.o): Likewise. | |
6384 | (i386-mmx-linux.c): Likewise. | |
6385 | ||
6386 | * configure.srv (srv_i386_regobj): Add i386-mmx.o. | |
6387 | (srv_i386_linux_regobj): Add i386-mmx-linux.o. | |
6388 | (srv_i386_xmlfiles): Add i386/i386-mmx.xml. | |
6389 | (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml. | |
6390 | ||
6391 | * linux-x86-low.c (init_registers_i386_mmx_linux): New. | |
6392 | (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux | |
6393 | and return if ptrace PTRACE_GETFPXREGS failed in 32bit. | |
6394 | ||
1570b33e L |
6395 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
6396 | ||
6397 | * Makefile.in (clean): Updated. | |
6398 | (i386-avx.o): New. | |
6399 | (i386-avx.c): Likewise. | |
6400 | (i386-avx-linux.o): Likewise. | |
6401 | (i386-avx-linux.c): Likewise. | |
6402 | (amd64-avx.o): Likewise. | |
6403 | (amd64-avx.c): Likewise. | |
6404 | (amd64-avx-linux.o): Likewise. | |
6405 | (amd64-avx-linux.c): Likewise. | |
6406 | ||
6407 | * configure.srv (srv_i386_regobj): Add i386-avx.o. | |
6408 | (srv_i386_linux_regobj): Add i386-avx-linux.o. | |
6409 | (srv_amd64_regobj): Add amd64-avx.o. | |
6410 | (srv_amd64_linux_regobj): Add amd64-avx-linux.o. | |
6411 | (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml. | |
6412 | (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml. | |
6413 | (srv_i386_xmlfiles): Add i386/i386-avx.xml. | |
6414 | (srv_amd64_xmlfiles): Add i386/amd64-avx.xml. | |
6415 | (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml. | |
6416 | (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml. | |
6417 | ||
6418 | * i387-fp.c: Include "i386-xstate.h". | |
6419 | (i387_xsave): New. | |
6420 | (i387_cache_to_xsave): Likewise. | |
6421 | (i387_xsave_to_cache): Likewise. | |
6422 | (x86_xcr0): Likewise. | |
6423 | ||
6424 | * i387-fp.h (i387_cache_to_xsave): Likewise. | |
6425 | (i387_xsave_to_cache): Likewise. | |
6426 | (x86_xcr0): Likewise. | |
6427 | ||
6428 | * linux-arm-low.c (target_regsets): Initialize nt_type to 0. | |
6429 | * linux-crisv32-low.c (target_regsets): Likewise. | |
6430 | * linux-m68k-low.c (target_regsets): Likewise. | |
6431 | * linux-mips-low.c (target_regsets): Likewise. | |
6432 | * linux-ppc-low.c (target_regsets): Likewise. | |
6433 | * linux-s390-low.c (target_regsets): Likewise. | |
6434 | * linux-sh-low.c (target_regsets): Likewise. | |
6435 | * linux-sparc-low.c (target_regsets): Likewise. | |
6436 | * linux-xtensa-low.c (target_regsets): Likewise. | |
6437 | ||
6438 | * linux-low.c: Include <sys/uio.h>. | |
6439 | (regsets_fetch_inferior_registers): Support nt_type. | |
6440 | (regsets_store_inferior_registers): Likewise. | |
6441 | (linux_process_qsupported): New. | |
6442 | (linux_target_ops): Add linux_process_qsupported. | |
6443 | ||
6444 | * linux-low.h (regset_info): Add nt_type. | |
6445 | (linux_target_ops): Add process_qsupported. | |
6446 | ||
6447 | * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h" | |
6448 | and <sys/uio.h>. | |
6449 | (init_registers_i386_avx_linux): New. | |
6450 | (init_registers_amd64_avx_linux): Likewise. | |
6451 | (xmltarget_i386_linux_no_xml): Likewise. | |
6452 | (xmltarget_amd64_linux_no_xml): Likewise. | |
6453 | (PTRACE_GETREGSET): Likewise. | |
6454 | (PTRACE_SETREGSET): Likewise. | |
6455 | (x86_fill_xstateregset): Likewise. | |
6456 | (x86_store_xstateregset): Likewise. | |
6457 | (use_xml): Likewise. | |
6458 | (x86_linux_update_xmltarget): Likewise. | |
6459 | (x86_linux_process_qsupported): Likewise. | |
6460 | (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type. | |
6461 | (x86_arch_setup): Don't call init_registers_amd64_linux nor | |
6462 | init_registers_i386_linux here. Call | |
6463 | x86_linux_update_xmltarget. | |
6464 | (the_low_target): Add x86_linux_process_qsupported. | |
6465 | ||
6466 | * server.c (handle_query): Call target_process_qsupported. | |
6467 | ||
6468 | * target.h (target_ops): Add process_qsupported. | |
6469 | (target_process_qsupported): New. | |
6470 | ||
fc7238bb PA |
6471 | 2010-04-03 Pedro Alves <pedro@codesourcery.com> |
6472 | ||
6473 | * inferiors.c (add_thread): Set last_status kind to | |
6474 | TARGET_WAITKIND_IGNORE. | |
6475 | * linux-low.c (cancel_breakpoint): Remove unnecessary regcache | |
6476 | fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls. | |
6477 | (linux_wait_1): Move `thread' local definition to block that uses | |
6478 | it. Don't NULL initialize `event_child'. | |
6479 | (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls. | |
6480 | Alway set the thread's last_status to TARGET_WAITKIND_IGNORE. | |
6481 | * linux-x86-low.c (x86_breakpoint_at): Read raw memory. | |
6482 | ||
bdabb078 PA |
6483 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
6484 | ||
6485 | * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with | |
6486 | an extended waitstatus, or by a watchpoint. | |
6487 | (cancel_breakpoints_callback): Don't cancel a breakpoint if the | |
6488 | thread was stepping or has been stopped by a watchpoint. | |
6489 | ||
d3bbe7a0 PA |
6490 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
6491 | ||
6492 | * mem-break.c (struct raw_breakpoint): New field shlib_disabled. | |
6493 | (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top | |
6494 | of another, then delete the previous, and validate all | |
6495 | breakpoints. | |
6496 | (validate_inserted_breakpoint): New. | |
6497 | (delete_disabled_breakpoints): New. | |
6498 | (validate_breakpoints): New. | |
6499 | (check_mem_read): Validate breakpoints before trusting their | |
6500 | shadow. Delete disabled breakpoints. | |
6501 | (check_mem_write): Validate breakpoints before trusting they | |
6502 | should be inserted. Delete disabled breakpoints. | |
6503 | * mem-break.h (validate_breakpoints): | |
6504 | * server.c (handle_query): Validate breakpoints when we see a | |
6505 | qSymbol query. | |
6506 | ||
8b07ae33 PA |
6507 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
6508 | ||
6509 | * linux-low.c (linux_wait_1): Avoid setting need_step_over is | |
6510 | there's a GDB breakpoint at stop_pc. Always report a trap to GDB | |
6511 | if we could tell there's a GDB breakpoint at stop_pc. | |
6512 | (need_step_over_p): Don't do a step over if we find a GDB | |
6513 | breakpoint at the resume PC. | |
6514 | ||
6515 | * mem-break.c (struct raw_breakpoint): New. | |
6516 | (enum bkpt_type): New type `gdb_breakpoint'. | |
6517 | (struct breakpoint): Delete the `PC', `old_data' and `inserted' | |
6518 | fields. New field `raw'. | |
6519 | (find_raw_breakpoint_at): New. | |
6520 | (set_raw_breakpoint_at): Handle refcounting. Create a raw | |
6521 | breakpoint instead. | |
6522 | (set_breakpoint_at): Adjust. | |
6523 | (delete_raw_breakpoint): New. | |
6524 | (release_breakpoint): New. | |
6525 | (delete_breakpoint): Rename to... | |
6526 | (delete_breakpoint_1): ... this. Add proc parameter. Use | |
6527 | release_breakpoint. Return ENOENT. | |
6528 | (delete_breakpoint): Reimplement. | |
6529 | (find_breakpoint_at): Delete. | |
6530 | (find_gdb_breakpoint_at): New. | |
6531 | (delete_breakpoint_at): Delete. | |
6532 | (set_gdb_breakpoint_at): New. | |
6533 | (delete_gdb_breakpoint_at): New. | |
6534 | (gdb_breakpoint_here): New. | |
6535 | (set_reinsert_breakpoint): Use release_breakpoint. | |
6536 | (uninsert_breakpoint): Rename to ... | |
6537 | (uninsert_raw_breakpoint): ... this. | |
6538 | (uninsert_breakpoints_at): Adjust to handle raw breakpoints. | |
6539 | (reinsert_raw_breakpoint): Change parameter type to | |
6540 | raw_breakpoint. | |
6541 | (reinsert_breakpoints_at): Adjust to handle raw breakpoints | |
6542 | instead. | |
6543 | (check_breakpoints): Adjust. Use release_breakpoint. | |
6544 | (breakpoint_here): Rewrite using find_raw_breakpoint_at. | |
6545 | (breakpoint_inserted_here): Ditto. | |
6546 | (check_mem_read): Adjust to iterate over raw breakpoints instead. | |
6547 | Don't trust the breakpoint's shadow if it is not inserted. | |
6548 | (check_mem_write): Adjust to iterate over raw breakpoints instead. | |
6549 | (delete_all_breakpoints): Adjust. | |
6550 | (free_all_breakpoints): Mark all breakpoints as uninserted, and | |
6551 | use delete_breakpoint_1. | |
6552 | ||
6553 | * mem-break.h (breakpoints_supported): Delete declaration. | |
6554 | (set_gdb_breakpoint_at): Declare. | |
6555 | (gdb_breakpoint_here): Declare. | |
6556 | (delete_breakpoint_at): Delete. | |
6557 | (delete_gdb_breakpoint_at): Declare. | |
6558 | ||
6559 | * server.h (struct raw_breakpoint): Forward declare. | |
6560 | (struct process_info): New field `raw_breakpoints'. | |
6561 | ||
6562 | * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0 | |
6563 | breakpoints. | |
6564 | ||
6bf5e0ba PA |
6565 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
6566 | ||
6567 | * linux-low.c (status_pending_p_callback): Fix comment. | |
6568 | (linux_wait_for_event_1): Move most of the internal breakpoint | |
6569 | handling from here... | |
6570 | (linux_wait_1): ... to here. | |
6571 | (count_events_callback): New. | |
6572 | (select_singlestep_lwp_callback): New. | |
6573 | (select_event_lwp_callback): New. | |
6574 | (cancel_breakpoints_callback): New. | |
6575 | (select_event_lwp): New. | |
6576 | (linux_wait_1): Simplify internal breakpoint handling. Give equal | |
6577 | priority to all LWPs that have had events that should be reported | |
6578 | to the client. Cancel breakpoints when about to reporting the | |
6579 | event to the client, not while stopping lwps. No longer cancel | |
6580 | finished single-steps here. | |
6581 | (cancel_finished_single_step): Delete. | |
6582 | (cancel_finished_single_steps): Delete. | |
6583 | ||
414a389f PA |
6584 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
6585 | ||
6586 | * mem-break.c (enum bkpt_type): New. | |
6587 | (struct breakpoint): New field `type'. | |
6588 | (set_breakpoint_at): Change return type to struct breakpoint | |
6589 | pointer. Set type to `other_breakpoint' by default. | |
6590 | (delete_breakpoint): Rewrite, supporting more than one breakpoint | |
6591 | in the breakpoint list. | |
6592 | (delete_reinsert_breakpoints): Only delete reinsert breakpoints. | |
6593 | (reinsert_breakpoint): Rename to ... | |
6594 | (reinsert_raw_breakpoint): ... this. | |
6595 | (reinsert_breakpoints_at): Adjust. | |
6596 | * mem-break.h (struct breakpoint): Declare. | |
6597 | (set_breakpoint_at): Change return type to struct breakpoint | |
6598 | pointer. | |
6599 | ||
2280c721 PA |
6600 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
6601 | ||
6602 | * server.c (handle_query): Assign, not compare. | |
6603 | ||
d50171e4 PA |
6604 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
6605 | ||
6606 | Teach linux gdbserver to step-over-breakpoints. | |
6607 | ||
6608 | * linux-low.c (can_hardware_single_step): New. | |
6609 | (supports_breakpoints): New. | |
6610 | (handle_extended_wait): If stopping threads, read the stop pc of | |
6611 | the new cloned LWP. | |
6612 | (get_pc): New. | |
6613 | (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the | |
6614 | low target doesn't support retrieving the PC. | |
6615 | (add_lwp): Set last_resume_kind to resume_continue. | |
6616 | (linux_attach_lwp_1): Adjust comments. Always set stop_expected. | |
6617 | (linux_attach): Don't clear stop_expected. Set the lwp's | |
6618 | last_resume_kind to resume_stop. | |
6619 | (linux_detach_one_lwp): Don't check for removed breakpoints. | |
6620 | (check_removed_breakpoint): Delete. | |
6621 | (status_pending_p): Rename to ... | |
6622 | (status_pending_p_callback): ... this. Don't check for removed | |
6623 | breakpoints. Don't consider threads that are stopped from GDB's | |
6624 | perspective. | |
6625 | (linux_wait_for_lwp): Always read the stop_pc here. | |
6626 | (cancel_breakpoint): New. | |
6627 | (step_over_bkpt): New global. | |
6628 | (linux_wait_for_event_1): Implement stepping over breakpoints. | |
6629 | (gdb_wants_lwp_stopped): New. | |
6630 | (gdb_wants_all_stopped): New. | |
6631 | (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished | |
6632 | single-step traps here. Store the thread's last reported target | |
6633 | wait status. | |
6634 | (send_sigstop): Don't clear stop_expected. Always set it, | |
6635 | instead. | |
6636 | (mark_lwp_dead): Remove reference to pending_is_breakpoint. | |
6637 | (cancel_finished_single_step): New. | |
6638 | (cancel_finished_single_steps): New. | |
6639 | (wait_for_sigstop): Don't cancel finished single-step traps here. | |
6640 | (linux_resume_one_lwp): Don't check for removed breakpoints. | |
6641 | Don't set `step' on non-hardware step archs. | |
6642 | (linux_set_resume_request): Ignore resume_stop requests if already | |
6643 | stopping or stopped. Set the lwp's last_resume_kind. | |
6644 | (resume_status_pending_p): Don't check for removed breakpoints. | |
6645 | (need_step_over_p): New. | |
6646 | (start_step_over): New. | |
6647 | (finish_step_over): New. | |
6648 | (linux_resume_one_thread): Always queue a sigstop for resume_stop | |
6649 | requests. Clear the thread's last reported target waitstatus. | |
6650 | Don't use the `suspended' flag. Don't consider pending breakpoints. | |
6651 | (linux_resume): Start a step-over if necessary. | |
6652 | (proceed_one_lwp): New. | |
6653 | (proceed_all_lwps): New. | |
6654 | (unstop_all_lwps): New. | |
6655 | * linux-low.h (struct lwp_info): Rewrite comment for the | |
6656 | `suspended' flag. Add the `stop_pc' field. Delete the | |
6657 | `pending_stop_pc' field. Tweak the `stepping' flag's comment. | |
6658 | Add `'last_resume_kind' and `need_step_over' fields. | |
6659 | * inferiors.c (struct thread_info): Delete, moved elsewhere. | |
6660 | * mem-break.c (struct breakpoint): Delete `reinserting' flag. | |
6661 | Delete `breakpoint_to_reinsert' field. New flag `inserted'. | |
6662 | (set_raw_breakpoint_at): New. | |
6663 | (set_breakpoint_at): Rewrite to use it. | |
6664 | (reinsert_breakpoint_handler): Delete. | |
6665 | (set_reinsert_breakpoint): New. | |
6666 | (reinsert_breakpoint_by_bp): Delete. | |
6667 | (delete_reinsert_breakpoints): New. | |
6668 | (uninsert_breakpoint): Rewrite. | |
6669 | (uninsert_breakpoints_at): New. | |
6670 | (reinsert_breakpoint): Rewrite. | |
6671 | (reinsert_breakpoints_at): New. | |
6672 | (check_breakpoints): Rewrite. | |
6673 | (breakpoint_here): New. | |
6674 | (breakpoint_inserted_here): New. | |
6675 | (check_mem_read): Adjust. | |
6676 | * mem-break.h (breakpoints_supported, breakpoint_here) | |
6677 | (breakpoint_inserted_here, set_reinsert_breakpoint): Declare. | |
6678 | (reinsert_breakpoint_by_bp): Delete declaration. | |
6679 | (delete_reinsert_breakpoints): Declare. | |
6680 | (reinsert_breakpoint): Delete declaration. | |
6681 | (reinsert_breakpoints_at): Declare. | |
6682 | (uninsert_breakpoint): Delete declaration. | |
6683 | (uninsert_breakpoints_at): Declare. | |
6684 | (check_breakpoints): Adjust prototype. | |
6685 | * server.h: Adjust include order. | |
6686 | (struct thread_info): Declare here. Add a `last_status' field. | |
6687 | ||
30ba68cb MS |
6688 | 2010-03-23 Michael Snyder <msnyder@vmware.com> |
6689 | ||
6690 | * server.c (crc32): New function. | |
6691 | (handle_query): Add handling for 'qCRC:' request. | |
6692 | ||
b9a881c2 PA |
6693 | 2010-03-23 Pedro Alves <pedro@codesourcery.com> |
6694 | ||
6695 | * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the | |
6696 | lwp had been stopped by a watchpoint. | |
6697 | ||
e92d13d5 PA |
6698 | 2010-03-16 Pedro Alves <pedro@codesourcery.com> |
6699 | ||
6700 | * server.h (internal_error): Declare. | |
6701 | (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define. | |
6702 | * utils.c (internal_error): New function. | |
6703 | ||
64daa791 AS |
6704 | 2010-03-15 Andreas Schwab <schwab@redhat.com> |
6705 | ||
6706 | * configure.srv: Fix typo setting srv_regobj. | |
6707 | ||
f52cd8cd PA |
6708 | 2010-03-15 Pedro Alves <pedro@codesourcery.com> |
6709 | ||
6710 | * linux-low.c (fetch_register): Avoid passing a non string literal | |
6711 | format to `error'. | |
6712 | (usr_store_inferior_registers): Ditto. | |
6713 | ||
93ae6fdc PA |
6714 | 2010-03-14 Pedro Alves <pedro@codesourcery.com> |
6715 | ||
6716 | * linux-low.c (linux_write_memory): Bail out early if peeking | |
6717 | memory failed. | |
6718 | ||
c3adc08c PA |
6719 | 2010-03-14 Pedro Alves <pedro@codesourcery.com> |
6720 | ||
6721 | * linux-low.h (struct lwp_info): New fields | |
6722 | `stopped_by_watchpoint' and `stopped_data_address'. | |
6723 | * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers | |
6724 | here, and cache them in the lwp object. | |
6725 | (wait_for_sigstop): Check stopped_by_watchpoint lwp field | |
6726 | directly. | |
6727 | (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint | |
6728 | field. | |
6729 | (linux_stopped_by_watchpoint): Rewrite. | |
6730 | (linux_stopped_data_address): Rewrite. | |
6731 | ||
bce522a2 PA |
6732 | 2010-03-06 Simo Melenius <simo.melenius@iki.fi> |
6733 | ||
6734 | * linux-low.c (linux_wait_for_lwp): Fetch the regcache after | |
6735 | switching the current inferior, not before. | |
6736 | ||
90884b2b L |
6737 | 2010-03-01 H.J. Lu <hongjiu.lu@intel.com> |
6738 | ||
6739 | * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c, | |
6740 | reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c, | |
6741 | i386-linux.c and amd64-linux.c. | |
6742 | (reg-i386.o): Removed. | |
6743 | (reg-i386.c): Likewise. | |
6744 | (reg-i386-linux.o): Likewise. | |
6745 | (reg-i386-linux.c): Likewise. | |
6746 | (reg-x86-64.o): Likewise. | |
6747 | (reg-x86-64.c): Likewise. | |
6748 | (reg-x86-64-linux.o): Likewise. | |
6749 | (reg-x86-64-linux.c): Likewise. | |
6750 | (i386.o): New. | |
6751 | (i386.c): Likewise. | |
6752 | (i386-linux.o): Likewise. | |
6753 | (i386-linux.c): Likewise. | |
6754 | (amd64.o): Likewise. | |
6755 | (amd64.c): Likewise. | |
6756 | (amd64-linux.o): Likewise. | |
6757 | (amd64-linux.c): Likewise. | |
6758 | ||
6759 | * configure.srv (srv_i386_regobj): New. | |
6760 | (srv_i386_linux_regobj): Likewise. | |
6761 | (srv_amd64_regobj): Likewise. | |
6762 | (srv_amd64_linux_regobj): Likewise. | |
6763 | (srv_i386_32bit_xmlfiles): Likewise. | |
6764 | (srv_i386_64bit_xmlfiles): Likewise. | |
6765 | (srv_i386_xmlfiles): Likewise. | |
6766 | (srv_amd64_xmlfiles): Likewise. | |
6767 | (srv_i386_linux_xmlfiles): Likewise. | |
6768 | (srv_amd64_linux_xmlfiles): Likewise. | |
6769 | (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set | |
6770 | srv_xmlfiles to $srv_i386_xmlfiles. | |
6771 | (i[34567]86-*-mingw32ce*): Likewise. | |
6772 | (i[34567]86-*-mingw*): Likewise. | |
6773 | (i[34567]86-*-nto*): Likewise. | |
6774 | (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj | |
6775 | and $srv_amd64_linux_regobj. Set srv_xmlfiles to | |
6776 | $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles. | |
6777 | (x86_64-*-linux*): Likewise. | |
6778 | ||
6779 | * linux-x86-low.c (init_registers_x86_64_linux): Removed. | |
6780 | (init_registers_amd64_linux): New. | |
6781 | (x86_arch_setup): Replace init_registers_x86_64_linux with | |
6782 | init_registers_amd64_linux. | |
6783 | ||
193f13e6 MK |
6784 | 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com> |
6785 | ||
6786 | * configure.ac: Check for libdl. If it is not available link against | |
6787 | static libthread_db. | |
6788 | * configure: Regenerate. | |
6789 | ||
85d721b8 PA |
6790 | 2010-02-22 Pedro Alves <pedro@codesourcery.com> |
6791 | ||
6792 | PR9605 | |
6793 | ||
6794 | * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if | |
6795 | handing a read watchpoint. | |
6796 | (i386_low_insert_watchpoint): Read watchpoints aren't supported. | |
6797 | ||
6076632b DE |
6798 | 2010-02-12 Doug Evans <dje@google.com> |
6799 | ||
6800 | * linux-low.c (linux_supports_tracefork_flag): Document. | |
6801 | (linux_look_up_symbols): Add comment. | |
6802 | ||
3327ccf7 L |
6803 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
6804 | ||
6805 | * regcache.c (supply_register): Clear regcache if buf is NULL. | |
6806 | ||
0718675c | 6807 | 2010-02-02 Nicolas Roche <roche@sourceware.org> |
3327ccf7 | 6808 | Joel Brobecker <brobecker@adacore.com> |
0718675c JB |
6809 | |
6810 | * inferiors.c (find_inferior): Add function documentation. | |
6811 | (unloaded_dll): Handle the case where the unloaded dll has not | |
6812 | been previously registered in the dll list. | |
6813 | ||
177321bd DJ |
6814 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
6815 | ||
6816 | * linux-arm-low.c (thumb_breakpoint_len): Delete. | |
6817 | (thumb2_breakpoint): New. | |
6818 | (arm_breakpoint_at): Check for Thumb-2 breakpoints. | |
6819 | ||
2b009048 DJ |
6820 | 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
6821 | ||
6822 | * linux-low.c (get_stop_pc): Check for SIGTRAP. | |
6823 | (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible | |
6824 | breakpoints. | |
6825 | ||
3be029c7 PA |
6826 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
6827 | ||
6828 | * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes. | |
6829 | ||
18f5de3b JK |
6830 | 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
6831 | ||
6832 | * linux-s390-low.c (s390_collect_ptrace_register) | |
6833 | (s390_supply_ptrace_register): Adjust it for the new regcache parameter. | |
6834 | ||
3743bb4f DE |
6835 | 2010-01-21 Doug Evans <dje@google.com> |
6836 | ||
14ce3065 DE |
6837 | * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*. |
6838 | (PTRACE_ARG4_TYPE): New macro. | |
6839 | (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE. | |
6840 | (linux_wait_for_event_1, linux_resume_one_lwp): Ditto. | |
6841 | (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE. | |
6842 | (usr_store_inferior_registers): Ditto. | |
6843 | (linux_read_memory, linux_write_memory): Ditto. | |
6844 | (linux_test_for_tracefork): Ditto. | |
6845 | ||
3743bb4f DE |
6846 | * linux-arm-low.c: Remove redundant include of gdb_proc_service.h. |
6847 | Only include elf.h if gdb_proc_service.h didn't include linux/elf.h. | |
6848 | ||
8b315be5 PA |
6849 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
6850 | ||
6851 | * proc-service.c (ps_lgetregs): Don't refetch registers from the | |
6852 | target. | |
6853 | ||
85492558 PA |
6854 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
6855 | ||
6856 | * spu-low.c (spu_fetch_registers, spu_store_registers): Change | |
6857 | prototype to take a regcache. Adjust. | |
6858 | ||
442ea881 PA |
6859 | 2010-01-20 Pedro Alves <pedro@codesourcery.com> |
6860 | ||
6861 | * regcache.h (struct thread_info): Forward declare. | |
6862 | (struct regcache): New. | |
6863 | (new_register_cache): Adjust prototype. | |
6864 | (get_thread_regcache): Declare. | |
6865 | (free_register_cache): Adjust prototype. | |
6866 | (registers_to_string, registers_from_string): Ditto. | |
6867 | (supply_register, supply_register_by_name, collect_register) | |
6868 | (collect_register_as_string, collect_register_by_name): Ditto. | |
6869 | * regcache.c (struct inferior_regcache_data): Delete. | |
6870 | (get_regcache): Rename to ... | |
6871 | (get_thread_regcache): ... this. Adjust. Switch inferior before | |
6872 | fetching registers. | |
6873 | (regcache_invalidate_one): Adjust. | |
6874 | (regcache_invalidate): Fix prototype. | |
6875 | (new_register_cache): Return the new register cache. | |
6876 | (free_register_cache): Change prototype. | |
6877 | (realloc_register_cache): Adjust. | |
6878 | (registers_to_string): Change prototype to take a regcache. Adjust. | |
6879 | (registers_from_string): Ditto. | |
6880 | (register_data): Ditto. | |
6881 | (supply_register): Ditto. | |
6882 | (supply_register_by_name): Ditto. | |
6883 | (collect_register): Ditto. | |
6884 | (collect_register_as_string): Ditto. | |
6885 | (collect_register_by_name): Ditto. | |
6886 | * server.c (process_serial_event): Adjust. | |
6887 | * linux-low.h (regset_fill_func, regset_store_func): Change | |
6888 | prototype. | |
6889 | (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register): | |
6890 | Change prototype. | |
6891 | * linux-low.c (get_stop_pc): Adjust. | |
6892 | (check_removed_breakpoint): Adjust. | |
6893 | (linux_wait_for_event): Adjust. | |
6894 | (linux_resume_one_lwp): Adjust. | |
6895 | (fetch_register): Add regcache parameter. Adjust. | |
6896 | (usr_store_inferior_registers): Ditto. | |
6897 | (regsets_fetch_inferior_registers): Ditto. | |
6898 | (regsets_store_inferior_registers): Ditto. | |
6899 | (linux_fetch_registers, linux_store_registers): Ditto. | |
6900 | * i387-fp.c (i387_cache_to_fsave): Change prototype to take a | |
6901 | regcache. Adjust. | |
43aaf8b6 PA |
6902 | (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache): |
6903 | Ditto. | |
442ea881 PA |
6904 | * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change |
6905 | prototype to take a regcache. | |
6906 | (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto. | |
6907 | * remote-utils.c (convert_ascii_to_int, outreg) | |
6908 | (prepare_resume_reply): Change prototype to take a regcache. | |
6909 | Adjust. | |
6910 | * target.h (struct target_ops) <fetch_registers, store_registers>: | |
6911 | Change prototype to take a regcache. | |
6912 | (fetch_inferior_registers, store_inferior_registers): Change | |
6913 | prototype to take a regcache. Adjust. | |
6914 | * proc-service.c (ps_lgetregs): Adjust. | |
6915 | * linux-x86-low.c (x86_fill_gregset, x86_store_gregset) | |
6916 | (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset) | |
6917 | (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to | |
6918 | take a regcache. Adjust. | |
6919 | * linux-arm-low.c (arm_fill_gregset, arm_store_gregset) | |
6920 | (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset) | |
6921 | (arm_store_vfpregset, arm_get_pc, arm_set_pc): | |
6922 | (arm_breakpoint_at): Change prototype to take a regcache. Adjust. | |
6923 | * linux-cris-low.c (cris_get_pc, cris_set_pc) | |
6924 | (cris_cannot_fetch_register): | |
6925 | (cris_breakpoint_at): Change prototype to take a regcache. | |
6926 | Adjust. | |
6927 | * linux-crisv32-low.c (cris_get_pc, cris_set_pc, | |
6928 | cris_reinsert_addr, cris_write_data_breakpoint): Change prototype | |
6929 | to take a regcache. Adjust. | |
6930 | (cris_breakpoint_at, cris_insert_point, cris_remove_point): | |
6931 | Adjust. | |
6932 | * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to | |
6933 | take a regcache. Adjust. | |
6934 | * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset) | |
6935 | (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc, | |
6936 | (m68k_set_pc): Change prototype to take a regcache. Adjust. | |
6937 | * linux-mips-low.c (mips_get_pc): | |
6938 | (mips_set_pc): Change prototype to take a regcache. Adjust. | |
6939 | (mips_reinsert_addr): Adjust. | |
6940 | (mips_collect_register): Change prototype to take a regcache. | |
6941 | Adjust. | |
6942 | (mips_supply_register): | |
6943 | (mips_collect_register_32bit, mips_supply_register_32bit) | |
6944 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) | |
6945 | (mips_store_fpregset): Ditto. | |
43aaf8b6 PA |
6946 | * linux-ppc-low.c (ppc_supply_ptrace_register) |
6947 | (ppc_supply_ptrace_register): Ditto. | |
442ea881 PA |
6948 | (parse_spufs_run): Adjust. |
6949 | (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset) | |
6950 | (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset) | |
6951 | (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to | |
6952 | take a regcache. Adjust. | |
6953 | * linux-s390-low.c (s390_collect_ptrace_register) | |
6954 | (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc) | |
6955 | (s390_set_pc): Change prototype to take a regcache. Adjust. | |
6956 | (s390_arch_setup): Adjust. | |
6957 | * linux-sh-low.c (sh_get_pc, sh_breakpoint_at) | |
6958 | (sh_fill_gregset): Change prototype to take a regcache. Adjust. | |
6959 | * linux-sparc-low.c (sparc_fill_gregset_to_stack) | |
6960 | (sparc_fill_gregset, sparc_store_gregset_from_stack) | |
6961 | (sparc_store_gregset, sparc_get_pc): Change prototype to take a | |
6962 | regcache. Adjust. | |
6963 | (sparc_breakpoint_at): Adjust. | |
6964 | * linux-xtensa-low.c (xtensa_fill_gregset): | |
6965 | (xtensa_store_gregset): | |
6966 | (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc) | |
6967 | (xtensa_set_pc): Change prototype to take a regcache. Adjust. | |
6968 | * nto-low.c (nto_fetch_registers, nto_store_registers): Change | |
6969 | prototype to take a regcache. Adjust. | |
6970 | * win32-arm-low.c (arm_fetch_inferior_register) | |
6971 | (arm_store_inferior_register): Change prototype to take a | |
6972 | regcache. Adjust. | |
6973 | * win32-i386-low.c (i386_fetch_inferior_register) | |
6974 | (i386_store_inferior_register): Change prototype to take a | |
6975 | regcache. Adjust. | |
6976 | * win32-low.c (child_fetch_inferior_registers) | |
6977 | (child_store_inferior_registers): Change prototype to take a | |
6978 | regcache. Adjust. | |
6979 | (win32_wait): Adjust. | |
6980 | (win32_fetch_inferior_registers): Change prototype to take a | |
6981 | regcache. Adjust. | |
6982 | (win32_store_inferior_registers): Adjust. | |
6983 | * win32-low.h (struct win32_target_ops) <fetch_inferior_register, | |
6984 | store_inferior_register>: Change prototype to take a regcache. | |
6985 | ||
60c3d7b0 DE |
6986 | 2010-01-20 Doug Evans <dje@google.com> |
6987 | ||
6988 | * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in | |
6989 | #ifdef. | |
6990 | (linux_wait_for_event1, linux_init_signals): Ditto. | |
ec8ebe72 | 6991 | (W_STOPCODE): Provide definition if missing. |
60c3d7b0 | 6992 | |
dc146f7c VP |
6993 | 2010-01-13 Vladimir Prus <vladimir@codesourcery.com> |
6994 | ||
6995 | * linux-low.c (linux_core_of_thread): New. | |
6996 | (compare_ints, show_process, list_threads): New. | |
6997 | (linux_qxfer_osdata): Report threads and cores. | |
6998 | (linux_target_op): Register linux_core_of_thread. | |
6999 | * remote-utils.c (prepare_resume_reply): Report the core. | |
7000 | (buffer_xml_printf): Support %d specifier. | |
7001 | * server.c (handle_threads_qxfer_proper, handle_threads_qxfer): | |
7002 | New. | |
7003 | (handle_query): Handle qXfer:threads. Announce availability | |
7004 | thereof. | |
7005 | * target.h (struct target_ops): New field core_of_thread. | |
7006 | ||
7803799a UW |
7007 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
7008 | ||
7009 | * Makefile.in (clean): Remove new generated files. | |
7010 | (reg-s390.o, reg-s390.c): Remove rules. | |
7011 | (reg-s390x.o, reg-s390x.c): Likewise. | |
7012 | (s390-linux32.o, s390-linux32.c): Add rules. | |
7013 | (s390-linux64.o, s390-linux64.c): Likewise. | |
7014 | (s390x-linux64.o, s390x-linux64.c): Likewise. | |
7015 | * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles. | |
7016 | * linux-s390-low.c: Include <elf.h>. | |
7017 | (HWCAP_S390_HIGH_GPRS): Define if undefined. | |
7018 | (init_registers_s390): Remove prototype. | |
7019 | (init_registers_s390x): Likewise. | |
7020 | (init_registers_s390_linux32): Add prototype. | |
7021 | (init_registers_s390_linux64): Likewise. | |
7022 | (init_registers_s390x_linux64): Likewise. | |
7023 | (s390_num_regs_3264): New define. | |
7024 | (s390_regmap_3264): New global variable. | |
7025 | (s390_cannot_fetch_register): Remove obsolete check. | |
7026 | (s390_cannot_store_register): Likewise. | |
7027 | (s390_collect_ptrace_register): Handle upper/lower register halves. | |
7028 | (s390_supply_ptrace_register): Likewise. | |
7029 | (s390_fill_gregset): Update to register number changes. | |
7030 | (s390_get_hwcap): New routine. | |
7031 | (s390_arch_setup): Detect 32-bit process running on 64-bit system. | |
7032 | Install appropriate regmap and register set. | |
7033 | ||
6e7ffa39 JB |
7034 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
7035 | ||
7036 | * server.c (gdbserver_version): Update copyright year to 2010. | |
7037 | * gdbreplay.c (gdbreplay_version): Likewise. | |
7038 | ||
957f3f49 DE |
7039 | 2009-12-28 Doug Evans <dje@google.com> |
7040 | ||
7041 | * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h, | |
7042 | elf/external.h. Include <elf.h> instead but only if necessary. | |
7043 | ||
ca5c370d PA |
7044 | 2009-12-28 Pedro Alves <pedro@codesourcery.com> |
7045 | ||
7046 | * linux-low.c (linux_remove_process): Remove `detaching' | |
7047 | parameter. Don't release/detach from thread_db here. | |
7048 | (linux_kill): Release/detach from thread_db here, ... | |
7049 | (linux_detach): ... and here, before actually detaching. | |
7050 | (linux_wait_1): ... and here, when a process exits. | |
7051 | * thread-db.c (any_thread_of): New. | |
7052 | (thread_db_free): Switch the current inferior to a thread of the | |
7053 | passed in process. | |
7054 | ||
4ee62156 DE |
7055 | 2009-12-21 Doug Evans <dje@google.com> |
7056 | ||
d90e6a88 DE |
7057 | * linux-x86-low.c: Delete outdated comment about Elf32_Phdr. |
7058 | ||
c5f62d5f DE |
7059 | * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill. |
7060 | Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc | |
7061 | warning ifndef __NR_tkill. Move setting of errno there too. | |
7062 | Delete unnecessary resetting of errno after syscall. | |
7063 | Minor comment changes to match gdb/linux-nat.c:kill_lwp. | |
7064 | ||
10e86dd7 DE |
7065 | * configure.ac: Check for dladdr. |
7066 | * config.in: Regenerate. | |
7067 | * configure: Regenerate. | |
7068 | * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR. | |
7069 | (try_thread_db_load): Update. | |
7070 | ||
4ee62156 DE |
7071 | * linux-low.c (my_waitpid): Delete unnecessary prototype. |
7072 | ||
00f515da DE |
7073 | 2009-12-18 Doug Evans <dje@google.com> |
7074 | ||
e9464885 DE |
7075 | * event-loop.c: Include unistd.h if it exists. |
7076 | ||
07d4f67e DE |
7077 | * linux-low.c (my_waitpid): Move definition away from being in |
7078 | between linux_tracefork_child/linux_test_for_tracefork. | |
7079 | ||
00f515da DE |
7080 | * gdb_proc_service.h (psaddr_t): Fix type. |
7081 | * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix | |
7082 | signature to match glibc. | |
7083 | ||
1de1badb DE |
7084 | 2009-12-16 Doug Evans <dje@google.com> |
7085 | ||
7086 | * linux-low.c (linux_read_memory): Fix argument to read. | |
7087 | ||
aeeb81d1 PA |
7088 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
7089 | ||
7090 | * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT | |
7091 | events, don't leave current_inferior pointing at null. | |
7092 | ||
10357975 PA |
7093 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
7094 | ||
7095 | * win32-low.c (LOG): Delete. | |
7096 | (OUTMSG): Output to stderr. | |
7097 | (OUTMSG2): Conditionalize on `debug_threads' variable, instead of | |
7098 | on compile time LOG macro. | |
7099 | (win32_wait): Fix debug output. | |
7100 | ||
cf6e3471 PA |
7101 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
7102 | ||
7103 | * win32-low.c (win32_add_one_solib): If the dll name is | |
7104 | "ntdll.dll", prepend the system directory to the dll path. | |
7105 | ||
0c85e18e MK |
7106 | 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com> |
7107 | ||
7108 | * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization. | |
7109 | ||
9ac544ce | 7110 | 2009-11-17 Nathan Sidwell <nathan@codesourcery.com> |
889bf7c5 | 7111 | Vladimir Prus <vladimir@codesourcery.com> |
9ac544ce MK |
7112 | |
7113 | * Makefile.in (reg-cf.o, reg-cf.c): New targets. | |
7114 | * configure.ac: Check for __mcoldfire__ and set | |
7115 | gdb_cv_m68k_is_coldfire. | |
7116 | * configure.srv: Use gdb_cv_m68k_is_coldfire to select between | |
7117 | reg-cf.o and reg-m68k.o. | |
7118 | * configure: Regenerated. | |
7119 | ||
fd7dd3e6 PA |
7120 | 2009-11-16 Pedro Alves <pedro@codesourcery.com> |
7121 | ||
7122 | * linux-low.c (linux_remove_process): Add `detaching' parameter. | |
7123 | Pass it to thread_db_free. | |
7124 | (linux_kill, linux_detach, linux_wait_1): Adjust to pass the | |
7125 | proper `detaching' argument to linux_remove_process. | |
7126 | * linux-low.h (thread_db_free): Add `detaching' parameter. | |
7127 | * thread-db.c (thread_db_init): Pass false as `detaching' argument | |
7128 | to thread_db_free. | |
7129 | (thread_db_free): Add `detaching' parameter. Only | |
7130 | call td_ta_clear_event if detaching from process. | |
7131 | ||
75aa492e MK |
7132 | 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com> |
7133 | ||
7134 | * thread-db.c (thread_db_free): Fix typo. | |
7135 | ||
21e1bee4 PP |
7136 | 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com> |
7137 | ||
7138 | PR gdb/10838 | |
7139 | * thread-db.c (thread_db_free): Call td_ta_clear_event. | |
7140 | ||
8838b45e NS |
7141 | 2009-11-03 Nathan Sidwell <nathan@codesourcery.com> |
7142 | ||
7143 | * configure.ac (i[34567]86-*): Check if we're targetting x86-64 | |
7144 | with an i686 compiler. | |
7145 | * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if | |
7146 | needed. | |
7147 | * configure: Rebuilt. | |
7148 | ||
8a35fb51 SL |
7149 | 2009-10-29 Sandra Loosemore <sandra@codesourcery.com> |
7150 | ||
7151 | PR gdb/10783 | |
7152 | ||
7153 | * server.c (handle_search_memory_1): Correct read_addr initialization | |
7154 | in loop for searching subsequent chunks. | |
7155 | ||
96f15937 PP |
7156 | 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com> |
7157 | ||
7158 | * configure.ac: New --with-libthread-db option. | |
7159 | * thread-db.c: Allow direct dependence on libthread_db. | |
7160 | (thread_db_free): Adjust. | |
7161 | * config.in: Regenerate. | |
7162 | * configure: Likewise. | |
889bf7c5 | 7163 | |
5f7d1694 PP |
7164 | 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com> |
7165 | ||
7166 | PR gdb/10757 | |
7167 | * thread-db.c (attach_thread): New function. | |
7168 | (maybe_attach_thread): Return success/failure. | |
7169 | (find_new_threads_callback): Adjust. | |
889bf7c5 PA |
7170 | (thread_db_find_new_threads): Loop until no new threads. |
7171 | ||
88e3b899 PA |
7172 | 2009-10-13 Pedro Alves <pedro@codesourcery.com> |
7173 | ||
7174 | * proc-service.c (ps_lgetregs): Formatting. | |
7175 | ||
cdbfd419 PP |
7176 | 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com> |
7177 | ||
7178 | * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove. | |
7179 | * configure.ac: Adjust. | |
7180 | * linux-low.h (struct process_info_private): Move members to struct | |
7181 | thread_db. | |
7182 | (thread_db_free, thread_db_handle_monitor_command): New prototype. | |
7183 | * linux-low.c (linux_remove_process): Adjust. | |
7184 | (linux_wait_for_event_1, linux_look_up_symbols): Likewise. | |
7185 | * server.c (handle_query): Move code ... | |
7186 | (handle_monitor_command): ... here. New function. | |
7187 | * target.h (struct target_ops): New member. | |
7188 | * thread-db.c (struct thread_db): New. | |
7189 | (libthread_db_search_path): New variable. | |
7190 | (thread_db_create_event, thread_db_enable_reporting) | |
7191 | (find_one_thread, maybe_attach_thread, find_new_threads_callback) | |
7192 | (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust. | |
7193 | (try_thread_db_load_1, dladdr_to_soname): New functions. | |
7194 | (try_thread_db_load, thread_db_load_search): New functions. | |
7195 | (thread_db_init): Search for libthread_db. | |
7196 | (thread_db_free): New function. | |
7197 | (thread_db_handle_monitor_command): Likewise. | |
7198 | * config.in: Regenerate. | |
7199 | * configure: Regenerate. | |
889bf7c5 | 7200 | |
4168d2d6 UW |
7201 | 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
7202 | ||
7203 | * spu-low.c (spu_kill): Wait for inferior to terminate. | |
7204 | Call clear_inferiors. | |
7205 | (spu_detach): Call clear_inferiors. | |
7206 | ||
81ecdfbb RW |
7207 | 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
7208 | ||
7209 | * aclocal.m4: Regenerate. | |
7210 | * config.in: Likewise. | |
7211 | * configure: Likewise. | |
7212 | ||
0b9ff2c0 UW |
7213 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
7214 | ||
7215 | * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define. | |
7216 | (parse_spufs_run): New function. | |
7217 | (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC. | |
7218 | (ppc_breakpoint_at): Handle SPU breakpoints. | |
7219 | ||
efcbbd14 UW |
7220 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
7221 | ||
7222 | * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>. | |
7223 | (SPUFS_MAGIC): Define. | |
7224 | (spu_enumerate_spu_ids): New function. | |
7225 | (linux_qxfer_spu): New function. | |
7226 | (linux_target_ops): Install linux_qxfer_spu. | |
7227 | ||
f4d9bade UW |
7228 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
7229 | ||
7230 | * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o | |
7231 | and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml | |
7232 | and rs6000/powerpc-cell64l.xml to srv_xmlfiles. | |
7233 | * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules. | |
7234 | (powerpc-cell64l.o, powerpc-cell64l.c): Likewise. | |
7235 | (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c. | |
7236 | * linux-ppc-low.c (PPC_FEATURE_CELL): Define. | |
7237 | (init_registers_powerpc_cell32l): Add prototype. | |
7238 | (init_registers_powerpc_cell64l): Likewise. | |
7239 | (ppc_arch_setup): Detect Cell/B.E. architecture. | |
7240 | ||
96e946ca RW |
7241 | 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
7242 | ||
7243 | * Makefile.in (datarootdir): New variable. | |
7244 | ||
58d6951d DJ |
7245 | 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
7246 | ||
7247 | * linux-low.c (linux_write_memory): Update debugging output. | |
7248 | * Makefile.in (clean): Add new descriptions. | |
7249 | (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o) | |
7250 | (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules. | |
7251 | * configure.srv: Add new files for arm*-*-linux*. | |
7252 | * linux-arm-low.c: Add new declarations. | |
7253 | (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined. | |
7254 | (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3) | |
7255 | (HWCAP_VFPv3D16): New. | |
7256 | (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT | |
7257 | instead of __IWMMXT__. | |
7258 | (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap) | |
7259 | (arm_arch_setup): New. | |
7260 | (target_regsets): Remove #ifdef. Add VFP regset. | |
7261 | (the_low_target): Use arm_arch_setup. | |
7262 | ||
12b42a12 DJ |
7263 | 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
7264 | ||
7265 | * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip | |
7266 | the main thread again. | |
7267 | ||
ac8c974e AR |
7268 | 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com> |
7269 | ||
7270 | Adding Neutrino gdbserver. | |
7271 | * configure: Regenerated. | |
7272 | * configure.ac: Add case for srv_qnx and set LIBS accordingly. | |
7273 | * configure.srv (i[34567]86-*-nto*): New target. | |
7274 | * nto-low.c, nto-low.h, nto-x86-low.c: New files. | |
7275 | * remote-utils.c [__QNX__]: Include sys/iomgr.h | |
7276 | (nto_comctrl) [__QNX__]: New function. | |
7277 | (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl. | |
7278 | ||
4424e0c3 | 7279 | 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net> |
7437790a PA |
7280 | |
7281 | * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to | |
7282 | srv_tgtobj. | |
7283 | ||
912cf4ba PA |
7284 | 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net> |
7285 | Pedro Alves <pedro@codesourcery.com> | |
7286 | ||
7287 | * win32-i386-low.c (i386_get_thread_context): Handle systems that | |
7288 | don't support CONTEXT_EXTENDED_REGISTERS. | |
7289 | (i386_win32_breakpoint, i386_win32_breakpoint_len): New. | |
7290 | (the_low_target): Install them. | |
7291 | * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent | |
7292 | failing with ERROR_PIPE_NOT_CONNECTED. | |
7293 | ||
aa5ca48f DE |
7294 | 2009-06-30 Doug Evans <dje@google.com> |
7295 | Pierre Muller <muller@ics.u-strasbg.fr> | |
7296 | ||
7297 | Add h/w watchpoint support to x86-linux, win32-i386. | |
7298 | * Makefile.in (SFILES): Add i386-low.c | |
7299 | (i386_low_h): Define. | |
7300 | (i386-low.o): Add dependencies. | |
7301 | (linux-x86-low.o): Add i386-low.h dependency. | |
7302 | (win32-i386-low.o): Ditto. | |
7303 | * i386-low.c: New file. | |
7304 | * i386-low.h: New file. | |
7305 | * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj. | |
7306 | (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto. | |
7307 | * linux-low.c (linux_add_process): Initialize arch_private. | |
7308 | (linux_remove_process): Free arch_private. | |
7309 | (add_lwp): Initialize arch_private. | |
7310 | (delete_lwp): Free arch_private. | |
7311 | (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if | |
7312 | provided. | |
7313 | * linux-low.h (process_info_private): New member arch_private. | |
7314 | (lwp_info): New member arch_private. | |
7315 | (linux_target_ops): New members new_process, new_thread, | |
7316 | prepare_to_resume. | |
7317 | (ptid_of): New macro. | |
7318 | * linux-x86-low.c: Include stddef.h, i386-low.h. | |
7319 | (arch_process_info): New struct. | |
7320 | (arch_lwp_info): New struct. | |
7321 | (x86_linux_dr_get, x86_linux_dr_set): New functions. | |
7322 | (i386_dr_low_set_addr, i386_dr_low_set_control): New functions. | |
7323 | (i386_dr_low_get_status): New function. | |
7324 | (x86_insert_point, x86_remove_point): New functions. | |
7325 | (x86_stopped_by_watchpoint): New function. | |
7326 | (x86_stopped_data_address): New function. | |
7327 | (x86_linux_new_process, x86_linux_new_thread): New functions. | |
7328 | (x86_linux_prepare_to_resume): New function. | |
7329 | (the_low_target): Add entries for insert_point, remove_point, | |
7330 | stopped_by_watchpoint, stopped_data_address, new_process, new_thread, | |
7331 | prepare_to_resume. | |
7332 | * server.c (debug_hw_points): New global. | |
7333 | (monitor_show_help): Document set debug-hw-points. | |
7334 | (handle_query): Process "set debug-hw-points". | |
7335 | * server.h (debug_hw_points): Declare. | |
7336 | (paddress): Declare. | |
7337 | * utils.c (NUMCELLS, CELLSIZE): New macros. | |
7338 | (get_sell, xsnprintf, paddress): New functions. | |
7339 | * win32-arm-low.c (the_low_target): Add entries for insert_point, | |
7340 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
7341 | * win32-i386-low.c: Include i386-low.h. | |
7342 | (debug_reg_state): Replaces dr. | |
7343 | (i386_dr_low_set_addr, i386_dr_low_set_control): New functions. | |
7344 | (i386_dr_low_get_status): New function. | |
7345 | (i386_insert_point, i386_remove_point): New functions. | |
7346 | (i386_stopped_by_watchpoint): New function. | |
7347 | (i386_stopped_data_address): New function. | |
7348 | (i386_initial_stuff): Update. | |
7349 | (get_thread_context,set_thread_context,i386_thread_added): Update. | |
7350 | (the_low_target): Add entries for insert_point, | |
7351 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
7352 | * win32-low.c (win32_insert_watchpoint): New function. | |
7353 | (win32_remove_watchpoint): New function. | |
7354 | (win32_stopped_by_watchpoint): New function. | |
7355 | (win32_stopped_data_address): New function. | |
7356 | (win32_target_ops): Add entries for insert_watchpoint, | |
7357 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address. | |
7358 | * win32-low.h (win32_target_ops): New members insert_point, | |
7359 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
7360 | ||
d993e290 PA |
7361 | 2009-06-25 Pedro Alves <pedro@codesourcery.com> |
7362 | ||
7363 | * server.c (process_serial_event): Re-return unsupported, not | |
7364 | error, if the type isn't recognized. Re-allow supporting only | |
7365 | insert or remove packets. Also call require_running for | |
7366 | breakpoints. Add missing break statement to default case. Tidy. | |
7367 | * target.h (struct target_ops): Rename insert_watchpoint to | |
7368 | insert_point, and remove_watchpoint to remove_point. | |
7369 | ||
7370 | * linux-low.h (struct linux_target_ops): Likewise. | |
7371 | * linux-low.c (linux_insert_watchpoint): Rename to ... | |
7372 | (linux_insert_point): ... this. Adjust. | |
7373 | (linux_remove_watchpoint): Rename to ... | |
7374 | (linux_remove_point): ... this. Adjust. | |
7375 | (linux_target_ops): Adjust. | |
7376 | * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ... | |
7377 | (cris_insert_point): ... this. | |
7378 | (cris_remove_watchpoint): Rename to ... | |
7379 | (cris_remove_point): ... this. | |
7380 | (the_low_target): Adjust. | |
7381 | ||
0f54c268 PM |
7382 | 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr> |
7383 | ||
7384 | * server.c (handle_v_kill): Pass signal_pid to | |
7385 | kill_inferior if multi_process is zero. | |
7386 | ||
c6314022 AR |
7387 | 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com> |
7388 | ||
7389 | * server.c (process_serial_event): Add support for Z0 and Z1 packet. | |
7390 | * target.h (target_ops): Comment for *_watchpoint to make it clear | |
7391 | the functions can get types '0' and '1'. | |
7392 | ||
4463ce24 AR |
7393 | 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com> |
7394 | ||
7395 | * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0. | |
7396 | * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers. | |
7397 | * regcache.c (get_regcache): Likewise. | |
7398 | * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion. | |
7399 | * win32-low.c (child_fetch_inferior_registers): Remove check for | |
7400 | regno 0. | |
7401 | ||
cf8fd78b PA |
7402 | 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com> |
7403 | Pedro Alves <pedro@codesourcery.com> | |
7404 | ||
7405 | * target.h (struct target_ops) <supports_multi_process>: New | |
7406 | callback. | |
7407 | (target_supports_multi_process): New. | |
7408 | * server.c (handle_query): Even if GDB reports support, only | |
7409 | enable multi-process if the target also supports it. Report | |
7410 | multi-process support only if the target backend supports it. | |
7411 | * linux-low.c (linux_supports_multi_process): New function. | |
7412 | (linux_target_ops): Install it as target_supports_multi_process | |
7413 | callback. | |
7414 | ||
47c0c975 DE |
7415 | 2009-05-24 Doug Evans <dje@google.com> |
7416 | ||
e09875d4 DE |
7417 | Global renaming of find_thread_pid to find_thread_ptid. |
7418 | * server.h (find_thread_ptid): Renamed from find_thread_pid. | |
7419 | * inferiors.c (find_thread_ptid): Renamed from find_thread_pid. | |
7420 | All callers updated. | |
7421 | ||
e27d73f6 DE |
7422 | * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp |
7423 | to resume the newly created thread, don't call ptrace (PTRACE_CONT) | |
7424 | directly. | |
7425 | ||
47c0c975 DE |
7426 | * linux-low.c (get_stop_pc): Print pc if debug_threads. |
7427 | (check_removed_breakpoint, linux_wait_for_lwp): Ditto. | |
7428 | (linux_resume_one_lwp): Ditto. | |
7429 | ||
2acc282a DE |
7430 | 2009-05-23 Doug Evans <dje@google.com> |
7431 | ||
7432 | * linux-low.c (linux_resume_one_lwp): Change type of first arg | |
7433 | from struct inferior_list_entry * to struct lwp_info *. | |
7434 | All callers updated. | |
7435 | ||
9f1036c1 DE |
7436 | 2009-05-13 Doug Evans <dje@google.com> |
7437 | ||
7438 | * linux-x86-low.c: Don't include assert.h. | |
7439 | (x86_siginfo_fixup): Use fatal, not assert. | |
7440 | (x86_arch_setup): Fix comment. | |
7441 | ||
d0722149 DE |
7442 | 2009-05-12 Doug Evans <dje@google.com> |
7443 | ||
7444 | Biarch support for i386/amd64 gdbserver. | |
7445 | * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c. | |
7446 | Add linux-x86-low.c. | |
7447 | (linux-i386-low.o, linux-x86-64-low.o): Delete. | |
7448 | (linux-x86-low.o): Add. | |
7449 | * linux-x86-64-low.c: Delete. | |
7450 | * linux-i386-low.c: Delete. | |
7451 | * linux-x86-low.c: New file. | |
7452 | * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with | |
7453 | linux-x86-low.o. | |
7454 | (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with | |
7455 | linux-x86-low.o. | |
7456 | (x86_64-linux srv_regobj): Add reg-i386-linux.o. | |
7457 | * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h. | |
7458 | (linux_child_pid_to_exec_file): New function. | |
7459 | (elf_64_header_p, elf_64_file_p): New functions. | |
7460 | (siginfo_fixup): New function. | |
7461 | (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to | |
7462 | give target a chance to convert layout. | |
7463 | * linux-low.h (linux_target_ops): New member siginfo_fixup. | |
7464 | (linux_child_pid_to_exec_file, elf_64_file_p): Declare. | |
7465 | ||
fdeb2a12 DE |
7466 | 2009-05-07 Doug Evans <dje@google.com> |
7467 | ||
7468 | * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak. | |
7469 | (regsets_store_inferior_registers): Ditto. | |
7470 | ||
a6dbe5df PA |
7471 | 2009-05-06 Pedro Alves <pedro@codesourcery.com> |
7472 | ||
7473 | PR server/10048 | |
7474 | ||
7475 | * linux-low.c (must_set_ptrace_flags): Delete. | |
7476 | (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead | |
7477 | of the global. | |
7478 | (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set | |
7479 | `lwp->must_set_ptrace_flags' instead. | |
ba42693b | 7480 | (linux_wait_for_event_1): Set ptrace options here. |
a6dbe5df PA |
7481 | (linux_wait_1): ... not here. |
7482 | ||
5091eb23 DE |
7483 | 2009-04-30 Doug Evans <dje@google.com> |
7484 | ||
9f767825 DE |
7485 | * inferiors.c (started_inferior_callback): New function. |
7486 | (attached_inferior_callback): New function. | |
7487 | (have_started_inferiors_p, have_attached_inferiors_p): New functions. | |
7488 | * server.c (print_started_pid, print_attached_pid): New functions. | |
7489 | (detach_or_kill_for_exit): New function. | |
7490 | (main): Call it instead of for_each_inferior (kill_inferior_callback). | |
7491 | * server.h (have_started_inferiors_p): Declare. | |
7492 | (have_attached_inferiors_p): Declare. | |
7493 | ||
5091eb23 DE |
7494 | * inferiors.c (remove_process): Fix memory leak, free process. |
7495 | * linux-low.c (linux_remove_process): New function. | |
7496 | (linux_kill): Call it instead of remove_process. | |
7497 | (linux_detach, linux_wait_1): Ditto. | |
7498 | ||
155c8968 PA |
7499 | 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net> |
7500 | ||
7501 | * configure.srv: Add x86 Windows CE target. | |
7502 | ||
7fe519cb UW |
7503 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
7504 | ||
7505 | * inferiors.c (get_thread_process): Make global. | |
7506 | * server.h (get_thread_process): Add prototype. | |
7507 | * thread-db.c (find_one_thread): Use get_thread_process | |
7508 | instead of current_process. | |
7509 | (thread_db_get_tls_address): Do not crash if called when | |
7510 | thread layer is not yet initialized. | |
7511 | ||
5472f405 UW |
7512 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
7513 | ||
7514 | * remote-utils.c (prepare_resume_reply): Null-terminate packet. | |
7515 | * spu-low.c (current_tid): Rename to ... | |
7516 | (current_ptid): ... this. | |
7517 | (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory, | |
7518 | spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use | |
7519 | ptid_get_lwp (current_ptid) instead of current_tid. | |
7520 | (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument | |
7521 | instead of current_tid. Use find_process_pid to verify pid | |
7522 | argument is valid. Pass proper argument to remove_process. | |
7523 | (spu_thread_alive): Compare current_ptid instead of current_tid. | |
7524 | (spu_resume): Likewise. | |
7525 | ||
55ac2b99 PA |
7526 | 2009-04-02 Pedro Alves <pedro@codesourcery.com> |
7527 | ||
7528 | * linux-low.c (usr_store_inferior_registers): Declare local `pid' | |
7529 | variable. | |
7530 | ||
95954743 PA |
7531 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
7532 | ||
7533 | Implement the multiprocess extensions, and add linux multiprocess | |
7534 | support. | |
7535 | ||
7536 | * server.h (ULONGEST): Declare. | |
7537 | (struct ptid, ptid_t): New. | |
7538 | (minus_one_ptid, null_ptid): Declare. | |
7539 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) | |
7540 | (ptid_get_tid, ptid_equal, ptid_is_pid): Declare. | |
7541 | (struct inferior_list_entry): Change `id' type from unsigned from | |
7542 | to ptid_t. | |
7543 | (struct sym_cache, struct breakpoint, struct | |
7544 | process_info_private): Forward declare. | |
7545 | (struct process_info): Declare. | |
7546 | (current_process): Declare. | |
7547 | (all_processes): Declare. | |
7548 | (initialize_inferiors): Declare. | |
7549 | (add_thread): Adjust to use ptid_t. | |
7550 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto. | |
7551 | (add_process, remove_process, find_thread_pid): Declare. | |
7552 | (find_inferior_id): Adjust to use ptid_t. | |
7553 | (cont_thread, general_thread, step_thread): Change type to ptid_t. | |
7554 | (multi_process): Declare. | |
7555 | (push_event): Adjust to use ptid_t. | |
7556 | (read_ptid, write_ptid): Declare. | |
7557 | (prepare_resume_reply): Adjust to use ptid_t. | |
7558 | (clear_symbol_cache): Declare. | |
7559 | * inferiors.c (all_processes): New. | |
7560 | (null_ptid, minus_one_ptid): New. | |
7561 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) | |
7562 | (ptid_get_tid, ptid_equal, ptid_is_pid): New. | |
7563 | (add_thread): Change unsigned long to ptid. Remove gdb_id | |
7564 | parameter. Adjust. | |
7565 | (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid. | |
7566 | (gdb_id_to_thread): Rename to ... | |
7567 | (find_thread_pid): ... this. Change unsigned long to ptid. | |
7568 | (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid. | |
7569 | (loaded_dll, pull_pid_from_list): Adjust. | |
7570 | (add_process, remove_process, find_process_pid) | |
7571 | (get_thread_process, current_process, initialize_inferiors): New. | |
7572 | * target.h (struct thread_resume) <thread>: Change type to ptid_t. | |
7573 | (struct target_waitstatus) <related_pid>: Ditto. | |
7574 | (struct target_ops) <kill, detach>: Add `pid' argument. Change | |
7575 | return type to int. | |
7576 | (struct target_ops) <join>: Add `pid' argument. | |
7577 | (struct target_ops) <thread_alive>: Change pid's type to ptid_t. | |
7578 | (struct target_ops) <wait>: Add `ptid' field. Change return type | |
7579 | to ptid. | |
7580 | (kill_inferior, detach_inferior, join_inferior): Add `pid' argument. | |
7581 | (mywait): Add `ptid' argument. Change return type to ptid_t. | |
7582 | (target_pid_to_str): Declare. | |
7583 | * target.c (set_desired_inferior): Adjust to use ptids. | |
7584 | (mywait): Add new `ptid' argument. Adjust. | |
7585 | (target_pid_to_str): New. | |
7586 | * mem-break.h (free_all_breakpoints): Declare. | |
7587 | * mem-break.c (breakpoints): Delelete. | |
7588 | (set_breakpoint_at, delete_breakpoint, find_breakpoint_at) | |
7589 | (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust | |
7590 | to use per-process breakpoint list. | |
7591 | (free_all_breakpoints): New. | |
7592 | * remote-utils.c (struct sym_cache) <name>: Drop `const'. | |
7593 | (symbol_cache, all_symbols_looked_up): Delete. | |
7594 | (hexchars): New. | |
7595 | (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one, | |
7596 | read_ptid): New. | |
7597 | (prepare_resume_reply): Change ptid argument's type from unsigned | |
7598 | long to ptid_t. Adjust. Implement W;process and X;process. | |
7599 | (free_sym_cache, clear_symbol_cache): New. | |
7600 | (look_up_one_symbol): Adjust to per-process symbol cache. * | |
7601 | * server.c (cont_thread, general_thread, step_thread): Change type | |
7602 | to ptid_t. | |
7603 | (attached): Delete. | |
7604 | (multi_process): New. | |
7605 | (last_ptid): Change type to ptid_t. | |
7606 | (struct vstop_notif) <ptid>: Change type to ptid_t. | |
7607 | (queue_stop_reply, push_event): Change `ptid' argument's type to | |
7608 | ptid_t. | |
7609 | (discard_queued_stop_replies): Add `pid' argument. | |
7610 | (start_inferior): Adjust to use ptids. Adjust to mywait interface | |
7611 | changes. Don't reference the `attached' global. | |
7612 | (attach_inferior): Adjust to mywait interface changes. | |
7613 | (handle_query): Adjust to use ptids. Parse GDB's qSupported | |
7614 | features. Handle and report "multiprocess+". Handle | |
7615 | "qAttached:PID". | |
7616 | (handle_v_cont): Adjust to use ptids. Adjust to mywait interface | |
7617 | changes. | |
7618 | (handle_v_kill): New. | |
7619 | (handle_v_stopped): Adjust to use target_pid_to_str. | |
7620 | (handle_v_requests): Allow multiple attaches and runs when | |
7621 | multiprocess extensions are in effect. Handle "vKill". | |
7622 | (myresume): Adjust to use ptids. | |
7623 | (queue_stop_reply_callback): Add `arg' parameter. Handle it. | |
7624 | (handle_status): Adjust to discard_queued_stop_replies interface | |
7625 | change. | |
7626 | (first_thread_of, kill_inferior_callback) | |
7627 | (detach_or_kill_inferior_callback, join_inferiors_callback): New. | |
7628 | (main): Call initialize_inferiors. Adjust to use ptids, killing | |
7629 | and detaching from all inferiors. Handle multiprocess packet | |
7630 | variants. | |
7631 | * linux-low.h: Include gdb_proc_service.h. | |
7632 | (struct process_info_private): New. | |
7633 | (struct linux_target_ops) <pid_of>: Use ptid_get_pid. | |
7634 | <lwpid_of>: Use ptid_get_lwp. | |
7635 | (get_lwp_thread): Adjust. | |
7636 | (struct lwp_info): Add `dead' member. | |
7637 | (find_lwp_pid): Declare. | |
7638 | * linux-low.c (thread_db_active): Delete. | |
7639 | (new_inferior): Adjust comment. | |
7640 | (inferior_pid): Delete. | |
7641 | (linux_add_process): New. | |
7642 | (handle_extended_wait): Adjust. | |
7643 | (add_lwp): Change unsigned long to ptid. | |
7644 | (linux_create_inferior): Add process to processes table. Adjust | |
7645 | to use ptids. Don't set new_inferior here. | |
7646 | (linux_attach_lwp): Rename to ... | |
7647 | (linux_attach_lwp_1): ... this. Add `initial' argument. Handle | |
7648 | it. Adjust to use ptids. | |
7649 | (linux_attach_lwp): New. | |
7650 | (linux_attach): Add process to processes table. Don't set | |
7651 | new_inferior here. | |
7652 | (struct counter): New. | |
7653 | (second_thread_of_pid_p, last_thread_of_process_p): New. | |
7654 | (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to | |
7655 | multiple processes. | |
7656 | (linux_kill): Add `pid' argument. Handle it. Adjust to multiple | |
7657 | processes. Remove process from process table. | |
7658 | (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust | |
7659 | to multiple processes. | |
7660 | (any_thread_of): New. | |
7661 | (linux_detach): Add `pid' argument, and handle it. Remove process | |
7662 | from processes table. | |
7663 | (linux_join): Add `pid' argument. Handle it. | |
7664 | (linux_thread_alive): Change unsighed long argument to ptid_t. | |
7665 | Consider dead lwps as not being alive. | |
7666 | (status_pending_p): Rename `dummy' argument to `arg'. Filter out | |
7667 | threads we're not interested in. | |
7668 | (same_lwp, find_lwp_pid): New. | |
7669 | (linux_wait_for_lwp): Change `pid' argument's type from int to | |
7670 | ptid_t. Adjust. | |
7671 | (linux_wait_for_event): Rename to ... | |
7672 | (linux_wait_for_event_1): ... this. Change `pid' argument's type | |
7673 | from int to ptid_t. Adjust. | |
7674 | (linux_wait_for_event): New. | |
7675 | (linux_wait_1): Add `ptid' argument. Change return type to | |
7676 | ptid_t. Adjust. Use last_thread_of_process_p. Remove processes | |
7677 | that exit from the process table. | |
7678 | (linux_wait): Add `ptid' argument. Change return type to ptid_t. | |
7679 | Adjust. | |
7680 | (mark_lwp_dead): New. | |
7681 | (wait_for_sigstop): Adjust to use ptids. If a process exits while | |
7682 | stopping all threads, mark its main lwp as dead. | |
7683 | (linux_set_resume_request, linux_resume_one_thread): Adjust to use | |
7684 | ptids. | |
7685 | (fetch_register, usr_store_inferior_registers) | |
7686 | (regsets_fetch_inferior_registers) | |
7687 | (regsets_store_inferior_registers, linux_read_memory) | |
7688 | (linux_write_memory): Inline `inferior_pid'. | |
7689 | (linux_look_up_symbols): Adjust to use per-process | |
7690 | `thread_db_active'. | |
7691 | (linux_request_interrupt): Adjust to use ptids. | |
7692 | (linux_read_auxv): Inline `inferior_pid'. | |
7693 | (initialize_low): Don't reference thread_db_active. | |
7694 | * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove. | |
7695 | * proc-service.c (ps_lgetregs): Use find_lwp_pid. | |
7696 | (ps_getpid): Return the pid of the current inferior. | |
7697 | * thread-db.c (proc_handle, thread_agent): Delete. | |
7698 | (thread_db_create_event, thread_db_enable_reporting): Adjust to | |
7699 | per-process data. | |
7700 | (find_one_thread): Change argument type to ptid_t. Adjust to | |
7701 | per-process data. | |
7702 | (maybe_attach_thread): Adjust to per-process data and ptids. | |
7703 | (thread_db_find_new_threads): Ditto. | |
7704 | (thread_db_init): Ditto. | |
7705 | * spu-low.c (spu_create_inferior, spu_attach): Add process to | |
7706 | processes table. Adjust to use ptids. | |
7707 | (spu_kill, spu_detach): Adjust interface. Remove process from | |
7708 | processes table. | |
7709 | (spu_join, spu_thread_alive): Adjust interface. | |
7710 | (spu_wait): Adjust interface. Remove process from processes | |
7711 | table. Adjust to use ptids. | |
7712 | * win32-low.c (current_inferior_tid): Delete. | |
7713 | (current_inferior_ptid): New. | |
7714 | (debug_event_ptid): New. | |
7715 | (thread_rec): Take a ptid. Adjust. | |
7716 | (child_add_thread): Add `pid' argument. Adjust to use ptids. | |
7717 | (child_delete_thread): Ditto. | |
7718 | (do_initial_child_stuff): Add `attached' argument. Add process to | |
7719 | processes table. | |
7720 | (child_fetch_inferior_registers, child_store_inferior_registers): | |
7721 | Adjust. | |
7722 | (win32_create_inferior): Pass 0 to do_initial_child_stuff. | |
7723 | (win32_attach): Pass 1 to do_initial_child_stuff. | |
7724 | (win32_kill): Adjust interface. Remove process from processes | |
7725 | table. | |
7726 | (win32_detach): Ditto. | |
7727 | (win32_join): Adjust interface. | |
7728 | (win32_thread_alive): Take a ptid. | |
7729 | (win32_resume): Adjust to use ptids. | |
7730 | (get_child_debug_event): Ditto. | |
7731 | (win32_wait): Adjust interface. Remove exiting process from | |
7732 | processes table. | |
7733 | ||
bd99dc85 PA |
7734 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
7735 | ||
7736 | Non-stop mode support. | |
7737 | ||
7738 | * server.h (non_stop): Declare. | |
7739 | (gdb_client_data, handler_func): Declare. | |
7740 | (delete_file_handler, add_file_handler, start_event_loop): | |
7741 | Declare. | |
7742 | (handle_serial_event, handle_target_event, push_event) | |
7743 | (putpkt_notif): Declare. | |
7744 | * target.h (enum resume_kind): New. | |
7745 | (struct thread_resume): Replace `step' field by `kind' field. | |
7746 | (TARGET_WNOHANG): Define. | |
7747 | (struct target_ops) <wait>: Add `options' argument. | |
7748 | <supports_non_stop, async, start_non_stop>: New fields. | |
7749 | (target_supports_non_stop, target_async): New. | |
7750 | (start_non_stop): Declare. | |
7751 | (mywait): Add `options' argument. | |
7752 | * target.c (mywait): Add `options' argument. Print child exit | |
7753 | notifications here. | |
7754 | (start_non_stop): New. | |
7755 | * server.c (non_stop, own_buf, mem_buf): New globals. | |
7756 | (struct vstop_notif): New. | |
7757 | (notif_queue): New global. | |
7758 | (queue_stop_reply, push_event, discard_queued_stop_replies) | |
7759 | (send_next_stop_reply): New. | |
7760 | (start_inferior): Adjust to use resume_kind. Adjust to mywait | |
7761 | interface changes. | |
7762 | (attach_inferior): In non-stop mode, don't wait for the target | |
7763 | here. | |
7764 | (handle_general_set): Handle QNonStop. | |
7765 | (handle_query): When handling qC, return the current general | |
7766 | thread, instead of the first thread of the list. | |
7767 | (handle_query): If the backend supports non-stop mode, include | |
7768 | QNonStop+ in the qSupported query response. | |
7769 | (handle_v_cont): Adjust to use resume_kind. Handle resume_stop | |
7770 | and non-stop mode. | |
7771 | (handle_v_attach, handle_v_run): Handle non-stop mode. | |
7772 | (handle_v_stopped): New. | |
7773 | (handle_v_requests): Report support for vCont;t. Handle vStopped. | |
7774 | (myresume): Adjust to use resume_kind. Handle non-stop. | |
7775 | (queue_stop_reply_callback): New. | |
7776 | (handle_status): Handle non-stop mode. | |
7777 | (main): Clear non_stop flag on reconnection. Use the event-loop. | |
7778 | Refactor serial protocol handling from here ... | |
7779 | (process_serial_event): ... to this new function. When GDB | |
7780 | selects any thread, select one here. In non-stop mode, wait until | |
7781 | GDB acks all pending events before exiting. | |
7782 | (handle_serial_event, handle_target_event): New. | |
7783 | * remote-utils.c (remote_open): Install remote_desc in the event | |
7784 | loop. | |
7785 | (remote_close): Remove remote_desc from the event loop. | |
7786 | (putpkt_binary): Rename to... | |
7787 | (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it. | |
7788 | (putpkt_binary): New as wrapper around putpkt_binary_1. | |
7789 | (putpkt_notif): New. | |
7790 | (prepare_resume_reply): In non-stop mode, don't change the | |
7791 | general_thread. | |
7792 | * event-loop.c: New. | |
7793 | * Makefile.in (OBJ): Add event-loop.o. | |
7794 | (event-loop.o): New rule. | |
7795 | ||
7796 | * linux-low.h (pid_of): Moved here. | |
7797 | (lwpid_of): New. | |
7798 | (get_lwp_thread): Use lwpid_of. | |
7799 | (struct lwp_info): Delete `lwpid' field. Add `suspended' field. | |
7800 | * linux-low.c (pid_of): Delete. | |
7801 | (inferior_pid): Use lwpid_of. | |
7802 | (linux_event_pipe): New. | |
7803 | (target_is_async_p): New. | |
7804 | (delete_lwp): New. | |
7805 | (handle_extended_wait): Use lwpid_of. | |
7806 | (add_lwp): Don't set lwpid field. | |
7807 | (linux_attach_lwp): Adjust debug output. Use lwpid_of. | |
7808 | (linux_kill_one_lwp): If killing a running lwp, stop it first. | |
7809 | Use lwpid_of. Adjust to linux_wait_for_event interface changes. | |
7810 | (linux_detach_one_lwp): If detaching from a running lwp, stop it | |
7811 | first. Adjust to linux_wait_for_event interface changes. Use | |
7812 | lwpid_of. | |
7813 | (linux_detach): Don't delete the main lwp here. | |
7814 | (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of. | |
7815 | (status_pending_p): Don't consider explicitly suspended lwps. | |
7816 | (linux_wait_for_lwp): Take an integer pid instead of a lwp_info | |
7817 | pointer. Add OPTIONS argument. Change return type to int. Use | |
7818 | my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of. | |
7819 | (linux_wait_for_event): Take an integer pid instead of a lwp_info | |
7820 | pointer. Add status pointer argument. Return a pid instead of a | |
7821 | status. Use lwpid_of. Adjust to linux_wait_for_lwp interface | |
7822 | changes. In non-stop mode, don't switch to a random thread. | |
7823 | (linux_wait): Rename to... | |
7824 | (linux_wait_1): ... this. Add target_options argument, and handle | |
7825 | it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode, | |
7826 | don't handle the continue thread. Handle TARGET_WNOHANG. Merge | |
7827 | clean exit and signal exit code. Don't stop all threads in | |
7828 | non-stop mode. In all-stop mode, only stop all threads when | |
7829 | reporting a stop to GDB. Handle explicit thread stop requests. | |
7830 | (async_file_flush, async_file_mark): New. | |
7831 | (linux_wait): New. | |
7832 | (send_sigstop): Use lwpid_of. | |
7833 | (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event | |
7834 | interface changes. In non-stop mode, don't switch to a random | |
7835 | thread. | |
7836 | (linux_resume_one_lwp): Use lwpid_of. | |
7837 | (linux_continue_one_thread, linux_queue_one_thread): Merge into ... | |
7838 | (linux_resume_one_thread): ... this. Handle resume_stop. In | |
7839 | non-stop mode, don't look for pending flag in all threads. | |
7840 | (resume_status_pending_p): Don't consider explicitly suspended | |
7841 | threads. | |
7842 | (my_waitpid): Reimplement. Emulate __WALL. | |
7843 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): | |
7844 | Use lwpid_of. | |
7845 | (sigchld_handler, linux_supports_non_stop, linux_async) | |
7846 | (linux_start_non_stop): New. | |
7847 | (linux_target_ops): Register linux_supports_non_stop, linux_async | |
7848 | and linux_start_non_stop. | |
7849 | (initialize_low): Install SIGCHLD handler. | |
7850 | * thread-db.c (thread_db_create_event, find_one_thread) | |
7851 | (thread_db_get_tls_address): Use lwpid_of. | |
7852 | * win32-low.c (win32_detach): Adjust to use resume_kind. | |
7853 | (win32_wait): Add `options' argument. | |
7854 | * spu-low.c (spu_resume): Adjust to use resume_kind. | |
7855 | (spu_wait): Add `options' argument. | |
7856 | ||
5b1c542e PA |
7857 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
7858 | ||
7859 | Decouple target code from remote protocol. | |
7860 | ||
7861 | * target.h (enum target_waitkind): New. | |
7862 | (struct target_waitstatus): New. | |
7863 | (struct target_ops) <wait>: Return an unsigned long. Take a | |
7864 | target_waitstatus pointer instead of a char pointer. | |
7865 | (mywait): Likewise. | |
7866 | * target.c (mywait): Change prototype to return an unsigned long. | |
7867 | Take a target_waitstatus pointer instead of a char pointer. Adjust. | |
7868 | * server.h (thread_from_wait, old_thread_from_wait): Delete | |
7869 | declarations. | |
7870 | (prepare_resume_reply): Change prototype to take a | |
7871 | target_waitstatus. | |
7872 | * server.c (thread_from_wait, old_thread_from_wait): Delete. | |
7873 | (last_status, last_ptid): New. | |
7874 | (start_inferior): Remove "statusptr" argument. Adjust. Return a | |
7875 | pid instead of a signal. | |
7876 | (attach_inferior): Remove "status" and "signal" parameters. | |
7877 | Adjust. | |
7878 | (handle_query): For qGetTLSAddr, parse the thread id with strtol, | |
7879 | not as an address. | |
7880 | (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill) | |
7881 | (handle_v_requests, myresume): Remove "status" and "signal" | |
7882 | parameters. Adjust. | |
7883 | (handle_status): New. | |
7884 | (main): Delete local `status'. Adjust. | |
7885 | * remote-utils.c: Include target.h. | |
7886 | (prepare_resume_reply): Change prototype to take a | |
7887 | target_waitstatus. Adjust. | |
7888 | ||
7889 | * linux-low.c (linux_wait): Adjust to new target_ops->wait | |
7890 | interface. | |
7891 | * spu-low.c (spu_wait): Adjust. | |
7892 | * win32-low.c (enum target_waitkind, struct target_waitstatus): | |
7893 | Delete. | |
7894 | (win32_wait): Adjust. | |
7895 | ||
2bd7c093 PA |
7896 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
7897 | ||
7898 | * target.h (struct thread_resume): Delete leave_stopped member. | |
7899 | (struct target_ops): Add a `n' argument to the `resume' callback. | |
7900 | * server.c (start_inferior): Adjust. | |
7901 | (handle_v_cont, myresume): Adjust. | |
7902 | * linux-low.c (check_removed_breakpoint): Adjust to resume | |
7903 | interface change, and to removed leave_stopped field. | |
7904 | (resume_ptr): Delete. | |
7905 | (struct thread_resume_array): New. | |
7906 | (linux_set_resume_request): Add new `arg' parameter. Adjust to | |
7907 | resume interface change. | |
7908 | (linux_continue_one_thread, linux_queue_one_thread) | |
7909 | (resume_status_pending_p): Check if the resume field is NULL | |
7910 | instead of checking the leave_stopped member. | |
7911 | (linux_resume): Adjust to the target resume interface change. | |
7912 | * spu-low.c (spu_resume): Adjust to the target resume interface | |
7913 | change. | |
7914 | * win32-low.c (win32_detach, win32_resume): Ditto. | |
7915 | ||
c35fafde PA |
7916 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
7917 | ||
7918 | * linux-low.c (linux_wait_for_event): Don't clear the `stepping' | |
7919 | flag. | |
7920 | (wait_for_sigstop): Don't leave a finished single-step SIGTRAP | |
7921 | pending. | |
7922 | (linux_continue_one_thread): Only preserve the stepping flag if | |
7923 | there's a pending breakpoint. | |
7924 | ||
0a59d50b PA |
7925 | 2009-03-31 Pedro Alves <pedro@codesourcery.com> |
7926 | ||
7927 | * server.c (main): After the inferior having exited, call | |
7928 | remote_close before exiting gdbserver. | |
7929 | ||
f04c6d38 TJB |
7930 | 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com> |
7931 | ||
7932 | Fix size of FPSCR in Power 7 processors. | |
7933 | * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define. | |
7934 | (PPC_FEATURE_HAS_DFP): New #define. | |
7935 | (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on | |
7936 | size of the FPSCR. | |
7937 | ||
78e5cee6 PA |
7938 | 2009-03-23 Pedro Alves <pedro@codesourcery.com> |
7939 | ||
7940 | * server.c (handle_query) Whitespace and formatting. | |
7941 | ||
1b3f6016 PA |
7942 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
7943 | ||
7944 | * i387-fp.c, linux-arm-low.c, linux-cris-low.c, | |
7945 | linux-crisv32-low.c, linux-i386-low.c, linux-low.c, | |
7946 | linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c, | |
7947 | linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c, | |
7948 | regcache.c, remote-utils.c, server.c, spu-low.c, target.h, | |
7949 | thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c, | |
7950 | Makefile.in, configure.ac: Fix whitespace throughout. | |
7951 | * configure: Regenerate. | |
7952 | ||
a07b2135 PA |
7953 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
7954 | ||
7955 | * inferiors.c (find_inferior): Make it safe for the callback | |
7956 | function to delete the currently iterated inferior. | |
7957 | ||
67cc2626 PA |
7958 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
7959 | ||
7960 | * Makefile.in (linuw_low_h): Move higher. | |
7961 | (thread-db.o): Depend on $(linux_low_h). | |
7962 | ||
54a0b537 PA |
7963 | 2009-03-17 Pedro Alves <pedro@codesourcery.com> |
7964 | ||
7965 | Rename "process" to "lwp" throughout. | |
7966 | ||
7967 | * linux-low.c (all_processes): Rename to... | |
7968 | (all_lwps): ... this. | |
7969 | (inferior_pid, handle_extended_wait, get_stop_pc): Adjust. | |
7970 | (add_process): Rename to ... | |
7971 | (add_lwp): ... this. Adjust. | |
7972 | (linux_create_inferior): Adjust. | |
7973 | (linux_attach_lwp): Adjust. | |
7974 | (linux_attach): Adjust. | |
7975 | (linux_kill_one_process): Rename to ... | |
7976 | (linux_kill_one_lwp): ... this. Adjust. | |
7977 | (linux_kill): Adjust. | |
7978 | (linux_detach_one_process): Rename to ... | |
7979 | (linux_detach_one_lwp): ... this. Adjust. | |
7980 | (linux_detach): Adjust. | |
7981 | (check_removed_breakpoint): Adjust. | |
7982 | (status_pending_p): Adjust. | |
7983 | (linux_wait_for_process): Rename to ... | |
7984 | (linux_wait_for_lwp): ... this. Adjust. | |
7985 | (linux_wait_for_event): Adjust. | |
7986 | (send_sigstop): Adjust. | |
7987 | (wait_for_sigstop): Adjust. | |
7988 | (stop_all_processes): Rename to ... | |
7989 | (stop_all_lwps): ... this. | |
7990 | (linux_resume_one_process): Rename to ... | |
7991 | (linux_resume_one_lwp): ... this. Adjust. | |
7992 | (linux_set_resume_request, linux_continue_one_thread) | |
7993 | (linux_queue_one_thread, resume_status_pending_p) | |
7994 | (usr_store_inferior_registers, regsets_store_inferior_registers) | |
7995 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): | |
7996 | Adjust. | |
7997 | * linux-low.h (get_process): Rename to ... | |
7998 | (get_lwp): ... this. Adjust. | |
7999 | (get_thread_process): Rename to ... | |
8000 | (get_thread_lwp): ... this. Adjust. | |
8001 | (get_process_thread): Rename to ... | |
8002 | (get_lwp_thread): ... this. Adjust. | |
8003 | (struct process_info): Rename to ... | |
8004 | (struct lwp_info): ... this. | |
8005 | (all_processes): Rename to ... | |
8006 | (all_lwps): ... this. | |
8007 | * proc-service.c (ps_lgetregs): Adjust. | |
8008 | * thread-db.c (thread_db_create_event, find_one_thread) | |
8009 | (maybe_attach_thread, thread_db_get_tls_address): Adjust. | |
8010 | ||
0b16c5cf PA |
8011 | 2009-03-14 Pedro Alves <pedro@codesourcery.com> |
8012 | ||
8013 | * server.c (handle_query): Handle "qAttached". | |
8014 | ||
32de4b9d NS |
8015 | 2009-03-13 Nathan Sidwell <nathan@codesourcery.com> |
8016 | ||
8017 | * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to | |
8018 | GPLv3, update license URL. | |
8019 | ||
2aecd87f DE |
8020 | 2009-03-01 Doug Evans <dje@google.com> |
8021 | ||
93efd302 | 8022 | * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common. |
2aecd87f DE |
8023 | (server_h): Add gdb_signals.h. |
8024 | (signals.o): Update. | |
8025 | * server.h (target_signal_from_host,target_signal_to_host_p) | |
8026 | (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h. | |
8027 | ||
86b1f9c5 PM |
8028 | 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr> |
8029 | ||
8030 | * remote-utils.c (getpkt): Also generate remote-debug | |
8031 | information if noack_mode is set. | |
8032 | ||
4aa995e1 PA |
8033 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
8034 | ||
8035 | * server.c (handle_query): Report qXfer:siginfo:read and | |
8036 | qXfer:siginfo:write as supported and handle them. | |
8037 | * target.h (struct target_ops) <qxfer_siginfo>: New field. | |
8038 | * linux-low.c (linux_xfer_siginfo): New. | |
8039 | (linux_target_ops): Set it. | |
8040 | ||
62709adf PA |
8041 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
8042 | ||
8043 | * server.c (gdbserver_usage): Mention --remote-debug. | |
8044 | (main): Accept '--remote-debug' switch. | |
8045 | ||
aef93bd7 DE |
8046 | 2009-01-18 Doug Evans <dje@google.com> |
8047 | ||
8048 | * regcache.c (new_register_cache): No need to check result of xcalloc. | |
8049 | * server.c (handle_search_memory): Back out calls to xmalloc, | |
8050 | result is checked and error is returned to user upon failure. | |
8051 | (handle_query): Ditto. Add more checks for result of malloc. | |
8052 | (handle_v_cont): Check result of malloc, report error back to | |
8053 | user upon failure. | |
8054 | (handle_v_run): Ditto. Call freeargv. | |
8055 | * server.h (freeargv): Declare. | |
8056 | * utils.c (freeargv): New fn. | |
8057 | ||
54363045 DE |
8058 | 2009-01-15 Doug Evans <dje@google.com> |
8059 | ||
f626972c DE |
8060 | * gdbreplay.c (perror_with_name): Make arg const char *. |
8061 | * server.h (target_signal_to_name): Make return type const char *. | |
0842e787 | 8062 | * thread-db.c (thread_db_err_str): Make return type const char *. |
f626972c | 8063 | * utils.c (perror_with_name): Make arg const char *. |
54363045 | 8064 | |
18aae699 PA |
8065 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
8066 | ||
8067 | * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE | |
8068 | when handling a EXIT_PROCESS_DEBUG_EVENT. | |
8069 | ||
ff703abe JB |
8070 | 2009-01-06 Joel Brobecker <brobecker@adacore.com> |
8071 | ||
8072 | * gdbreplay.c (gdbreplay_version): Update copyright year. | |
8073 | * server.c (gdbserver_version): Likewise. | |
8074 | ||
f21cc1a2 | 8075 | 2009-01-05 Doug Evans <dje@google.com> |
0e21c1ec DE |
8076 | |
8077 | * linux-low.c (linux_attach_lwp): Add some comments/fixmes. | |
f21cc1a2 | 8078 | (handle_extended_wait): Improve comment. |
0e21c1ec | 8079 | |
bca929d3 DE |
8080 | 2008-12-13 Doug Evans <dje@google.com> |
8081 | ||
8082 | * utils.c (xmalloc,xcalloc,xstrdup): New fns. | |
8083 | * server.h (ATTR_MALLOC): New macro. | |
8084 | (xmalloc,xcalloc,xstrdup): Declare. | |
8085 | * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup. | |
8086 | * inferiors.c: Ditto. | |
8087 | * linux-low.c: Ditto. | |
8088 | * mem-break.c: Ditto. | |
8089 | * regcache.c: Ditto. | |
8090 | * remote-utils.c: Ditto. | |
8091 | * server.c: Ditto. | |
8092 | * target.c: Ditto. | |
8093 | * win32-low.c: Ditto. | |
8094 | ||
97438e3f DE |
8095 | 2008-12-12 Doug Evans <dje@google.com> |
8096 | ||
896c7fbb DE |
8097 | * linux-low.c (linux_wait_for_process): Don't clobber current_inferior |
8098 | in debugging printf. | |
8099 | ||
97438e3f DE |
8100 | * linux-low.c (handle_extended_wait): Simplify, use my_waitpid. |
8101 | ||
e3b886f8 DE |
8102 | 2008-12-09 Doug Evans <dje@google.com> |
8103 | ||
8104 | * linux-low.h (struct process_info): Delete member tid, unused. | |
8105 | * thread-db.c (find_one_thread): Update. | |
8106 | (maybe_attach_thread): Update. | |
8107 | ||
07e059b5 VP |
8108 | 2008-12-02 Pedro Alves <pedro@codesourcery.com> |
8109 | ||
889bf7c5 PA |
8110 | * target.h (struct target_ops): Add qxfer_osdata member. |
8111 | * linux-low.c: Include ctype.h and pwd.h and sys/types.h | |
8112 | and dirent.h. | |
8113 | (linux_qxfer_osdata): New functions. | |
8114 | (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata | |
8115 | callback. | |
8116 | * server.c (handle_query): Handle "qXfer:osdata:read:". | |
8117 | * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish) | |
8118 | (buffer_xml_printf): New functions. | |
8119 | * server.h (struct buffer): New. | |
8120 | (buffer_grow_str, buffer_grow_str0): New macros. | |
8121 | (buffer_grow, buffer_free, buffer_init, buffer_finish) | |
8122 | (buffer_xml_printf): Declare. | |
07e059b5 | 8123 | |
4cab47ab DE |
8124 | 2008-11-24 Doug Evans <dje@google.com> |
8125 | ||
8126 | * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused. | |
8127 | ||
f142445f DJ |
8128 | 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com> |
8129 | ||
8130 | * server.c (handle_v_run): Always use the supplied argument list. | |
8131 | ||
d0107bb6 | 8132 | 2008-11-19 Bob Wilson <bob.wilson@acm.org> |
889bf7c5 | 8133 | |
d0107bb6 BW |
8134 | * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4. |
8135 | (xtensa_regmap_table): Add entry for scompare1. | |
889bf7c5 | 8136 | |
2c4ad781 TJB |
8137 | 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com> |
8138 | ||
8139 | * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c, | |
8140 | powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c, | |
8141 | powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c, | |
8142 | powerpc-isa205-64l.o, powerpc-isa205-64l.c, | |
8143 | powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c, | |
8144 | powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets. | |
8145 | * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and | |
8146 | XML target descriptions. | |
8147 | * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR | |
8148 | when inferior is running on an ISA 2.05 or later processor. Add | |
8149 | special case to return offset for full 64-bit slot of FPSCR when | |
8150 | in 32-bits. | |
8151 | ||
dfb64f85 DJ |
8152 | 2008-11-14 Daniel Gutson <dgutson@codesourcery.com> |
8153 | ||
8154 | * Makefile.in (SFILES, clean): Added sparc64 files. | |
8155 | (reg-sparc64.o, reg-sparc64.c): New. | |
8156 | * configure.srv (sparc*-*-linux*): New configuration. | |
8157 | * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace | |
8158 | syscall arguments for SPARC. | |
8159 | (regsets_store_inferior_registers): Likewise. | |
8160 | * linux-sparc-low.c: New file. | |
8161 | ||
66b6e1dd DE |
8162 | 2008-10-21 Doug Evans <dje@google.com> |
8163 | ||
8164 | * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete. | |
8165 | (READLINE_DIR,READLINE_DEP): Delete. | |
8166 | (INTERNAL_CFLAGS): Update. | |
8167 | (LINTFLAGS): Update. | |
8168 | ||
9b710a42 PA |
8169 | 2008-10-10 Pedro Alves <pedro@codesourcery.com> |
8170 | ||
8171 | * server.c (handle_v_run): If GDB didn't specify an argv, use the | |
8172 | whole argv from the last run, not just argv[0]. | |
8173 | ||
5822d809 PA |
8174 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
8175 | ||
8176 | * regcache.c (new_register_cache): Return NULL if the register | |
8177 | cache size isn't known yet. | |
8178 | (free_register_cache): Avoid dereferencing a NULL regcache. | |
8179 | ||
74aac56f DJ |
8180 | 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
8181 | ||
8182 | * configure.srv: Merge MIPS and MIPS64. | |
8183 | ||
400b20f5 MR |
8184 | 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org> |
8185 | ||
8186 | * Makefile.in (uninstall): Apply $(EXEEXT) too. | |
8187 | ||
677c5bb1 LM |
8188 | 2008-08-18 Luis Machado <luisgpm@br.ibm.com> |
8189 | ||
8190 | * Makefile.in: Add required vsx dependencies. | |
8191 | ||
8192 | * linux-ppc-low: Define PPC_FEATURE_HAS_VSX. | |
8193 | Declare init_registers_powerpc_vsx32l. | |
8194 | Declare init_registers_powerpc_vsx64l. | |
8195 | Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS. | |
8196 | (ppc_arch_setup): Check for VSX in hwcap. | |
8197 | (ppc_fill_vsxregset): New function. | |
8198 | (ppc_store_vsxregset): New function. | |
8199 | Add new VSX entry in regset_info target_regsets. | |
8200 | ||
8201 | * configure.srv: Add new VSX dependencies. | |
8202 | ||
a6f3e723 SL |
8203 | 2008-08-12 Pedro Alves <pedro@codesourcery.com> |
8204 | ||
8205 | * remote-utils.c (noack_mode, transport_is_reliable): New globals. | |
8206 | (remote_open): Set or clear transport_is_reliable. | |
8207 | (putpkt_binary): Don't expect acks in noack mode. | |
8208 | (getpkt): Don't send ack/nac in noack mode. | |
8209 | * server.c (handle_general_set): Handle QStartNoAckMode. | |
8210 | (handle_query): If connected by tcp pass QStartNoAckMode+ in | |
8211 | qSupported. | |
8212 | (main): Reset noack_mode on every connection. | |
8213 | * server.h (noack_mode): Declare. | |
8214 | ||
a417dc56 RW |
8215 | 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
8216 | ||
8217 | * Makefile.in (GDBREPLAY_OBS): New variable. | |
8218 | (gdbreplay$(EXEEXT)): Use it to avoid unportable $^. | |
8219 | ||
3221518c UW |
8220 | 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com> |
8221 | Daniel Jacobowitz <dan@codesourcery.com> | |
8222 | ||
8223 | * linux-low.c (linux_resume_one_process): Ignore ESRCH. | |
8224 | (usr_store_inferior_registers): Likewise. | |
8225 | (regsets_store_inferior_registers): Likewise. | |
8226 | ||
ec56be1b PA |
8227 | 2008-07-31 Rolf Jansen <rj@surtec.com> |
8228 | Pedro Alves <pedro@codesourcery.com> | |
8229 | ||
8230 | * configure.ac: Check for memmem declaration. | |
8231 | * server.c [HAVE_MALLOC_H]: Include malloc.h. | |
8232 | (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC) | |
8233 | (disable_packet_qfThreadInfo): Unconditionally compile. | |
8234 | * server.h [!HAVE_DECL_MEMMEM]: Declare memmem. | |
8235 | * configure, config.in: Regenerate. | |
8236 | ||
2fe5e3ff DE |
8237 | 2008-07-28 Doug Kwan <dougkwan@google.com> |
8238 | ||
8239 | * linux-low.c (sys/dir.h, sys/user.h): Remove includes. | |
8240 | (linux_write_memory): Remove declaration of errno. | |
8241 | ||
836acd6d UW |
8242 | 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com> |
8243 | ||
8244 | * linux-low.c (handle_extended_wait): Do not use "status" | |
8245 | variable uninitialized. | |
8246 | ||
aeba519e PA |
8247 | 2008-07-07 Pedro Alves <pedro@codesourcery.com> |
8248 | ||
8249 | * server.c (handle_v_attach): Inhibit reporting dll changes. | |
8250 | ||
db42f210 PA |
8251 | 2008-06-27 Pedro Alves <pedro@codesourcery.com> |
8252 | ||
8253 | * remote-utils.c (prepare_resume_reply): If requested, don't | |
8254 | output "thread:TID" in the T stop reply. | |
8255 | ||
8256 | * server.c (disable_packet_vCont, disable_packet_Tthread) | |
8257 | (disable_packet_qC, disable_packet_qfThreadInfo): New globals. | |
8258 | (handle_query): If requested, disable support for qC, qfThreadInfo | |
8259 | and qsThreadInfo. | |
8260 | (handle_v_requests): If requested, disable support for vCont. | |
8261 | (gdbserver_show_disableable): New. | |
8262 | (main): Handle --disable-packet and --disable-packet=LIST. | |
8263 | ||
8264 | * server.h (disable_packet_vCont, disable_packet_Tthread) | |
8265 | (disable_packet_qC, disable_packet_qfThreadInfo): Declare. | |
8266 | ||
8e4c5421 CD |
8267 | 2008-06-20 Carlos O'Donell <carlos@codesourcery.com> |
8268 | ||
8269 | * server.c (gdbserver_usage): Mention --version. | |
8270 | ||
6e23a804 DJ |
8271 | 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com> |
8272 | ||
8273 | * Makefile.in (gdbreplay.o): New rule. | |
8274 | ||
90aa6a40 JM |
8275 | 2008-06-06 Joseph Myers <joseph@codesourcery.com> |
8276 | ||
8277 | * gdbreplay.c (gdbreplay_version): Say gdbreplay in version | |
8278 | message, not gdbserver. | |
8279 | ||
c16158bc | 8280 | 2008-06-05 Vladimir Prus <vladimir@codesourcery.com> |
889bf7c5 PA |
8281 | Nathan Sidwell <nathan@codesourcery.com> |
8282 | Joseph Myers <joseph@codesourcery.com> | |
c16158bc JM |
8283 | |
8284 | * acinclude.m4: Include ../../config/acx.m4. | |
8285 | * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL. | |
8286 | * configure, config.in: Regenerate. | |
8287 | * Makefile.in (gdbreplay$(EXEEXT)): Add version.o. | |
8288 | * server.c (gdbserver_version): Print PKGVERSION. | |
8289 | (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO. | |
8290 | (main): Adjust gdbserver_usage calls. | |
8291 | * gdbreplay.c (version, host_name): Add declarations. | |
8292 | (gdbreplay_version, gdbreplay_usage): New. | |
8293 | (main): Accept --version and --help options. | |
8294 | ||
aeb75bf5 DJ |
8295 | 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com> |
8296 | ||
8297 | * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New. | |
8298 | (arm_breakpoint_at): Handle Thumb. | |
8299 | (the_low_target): Add comment. | |
8300 | ||
76b233dd UW |
8301 | 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com> |
8302 | ||
8303 | * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer. | |
8304 | ||
08388c79 DE |
8305 | 2008-05-09 Doug Evans <dje@google.com> |
8306 | ||
a3c83fae DE |
8307 | * server.h (decode_search_memory_packet): Declare. |
8308 | * remote-utils.c (decode_search_memory_packet): New fn. | |
8309 | * server.c (handle_search_memory_1): New fn. | |
08388c79 DE |
8310 | (handle_search_memory): New fn. |
8311 | (handle_query): Process qSearch:memory packets. | |
8312 | ||
bb9c3d36 UW |
8313 | 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com> |
8314 | ||
8315 | * regcache.c (registers_length): Remove. | |
8316 | (set_register_cache): Verify that PBUFSIZ is large enough to hold a | |
8317 | full register packet. | |
8318 | * regcache.h (registers_length): Remove prototype. | |
8319 | * server.h (PBUFSIZ): Define to 16384. | |
8320 | ||
7284e1be UW |
8321 | 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com> |
8322 | ||
8323 | * configure.srv (powerpc*-*-linux*): Set srv_regobj to | |
8324 | powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o, | |
8325 | powerpc-64l.o, and powerpc-altivec64l.o. | |
8326 | Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and | |
8327 | rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml, | |
8328 | rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml, | |
8329 | rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml, | |
8330 | rs6000/power-linux.xml, and rs6000/power64-linux.xml | |
8331 | to srv_xmlfiles. | |
8332 | ||
8333 | * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ... | |
8334 | (powerpc-32l.o, powerpc-32l.c): ... these new rules. | |
8335 | (powerpc-32.o, powerpc-32.c): Remove, replace by ... | |
8336 | (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules. | |
8337 | (powerpc-e500.o, powerpc-e500.c): Remove, replace by ... | |
8338 | (powerpc-e500l.o, powerpc-e500l.c): ... these new rules. | |
8339 | (reg-ppc64.o, reg-ppc64.c): Remove, replace by ... | |
8340 | (powerpc-64l.o, powerpc-64l.c): ... these new rules. | |
8341 | (powerpc-64.o, powerpc-64.c): Remove, replace by ... | |
8342 | (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules. | |
8343 | (clean): Update. | |
8344 | ||
8345 | * linux-ppc-low.c (init_registers_ppc): Remove, replace by ... | |
8346 | (init_registers_powerpc_32l): ... this new prototype. | |
8347 | (init_registers_powerpc_32): Remove, replace by ... | |
8348 | (init_registers_powerpc_altivec32l): ... this new prototype. | |
8349 | (init_registers_powerpc_e500): Remove, replace by ... | |
8350 | (init_registers_powerpc_e500l): ... this new prototype. | |
8351 | (init_registers_ppc64): Remove, replace by ... | |
8352 | (init_registers_powerpc_64l): ... this new prototype. | |
8353 | (init_registers_powerpc_64): Remove, replace by ... | |
8354 | (init_registers_powerpc_altivec64l): ... this new prototype. | |
8355 | (ppc_num_regs): Set to 73. | |
8356 | (PT_ORIG_R3, PT_TRAP): Define if necessary. | |
8357 | (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap. | |
8358 | (ppc_cannot_store_register): Handle orig_r3 and trap. | |
8359 | (ppc_arch_setup): Update init_registers_... calls. | |
8360 | (ppc_fill_gregset): Handle orig_r3 and trap. | |
8361 | ||
8362 | * inferiors.c (clear_inferiors): Reset current_inferior. | |
8363 | ||
fdc59709 PB |
8364 | 2008-04-23 Paolo Bonzini <bonzini@gnu.org> |
8365 | ||
889bf7c5 PA |
8366 | * acinclude.m4: Add override.m4. |
8367 | * configure: Regenerate. | |
fdc59709 | 8368 | |
c9b2f845 UW |
8369 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
8370 | ||
8371 | * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the | |
8372 | initial call to init_register_ppc64. | |
8373 | ||
550512b8 UW |
8374 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
8375 | ||
43aaf8b6 PA |
8376 | * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into |
8377 | single powerpc*-*-linux* case. | |
550512b8 UW |
8378 | (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case. |
8379 | ||
b6430ec3 UW |
8380 | 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com> |
8381 | ||
8382 | * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from | |
889bf7c5 | 8383 | srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml |
b6430ec3 UW |
8384 | from reg_xmlfiles. |
8385 | * linux-ppc-low.c: Include <elf.h>. | |
8386 | (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define. | |
8387 | (ppc_hwcap): New global variable. | |
8388 | (ppc_regmap): Remove __SPE__ #ifdef sections. | |
8389 | (ppc_regmap_e500): New global variable. | |
8390 | (ppc_cannot_store_register): Update __SPE__ special case. | |
8391 | (ppc_get_hwcap): New function. | |
8392 | (ppc_arch_setup): Use it to determine whether inferior supports | |
8393 | AltiVec or SPE registers. Set the_low_target.regmap if appropriate. | |
8394 | (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally. | |
8395 | Do not access registers if target does not support AltiVec. | |
8396 | (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally. | |
8397 | Do not access registers if target does not support SPE. | |
8398 | (target_regsets): Unconditionally include AltiVec and SPE regsets. | |
8399 | ||
52fa2412 UW |
8400 | 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com> |
8401 | ||
8402 | * linux-low.c (disabled_regsets, num_regsets): New. | |
8403 | (use_regsets_p): Delete. | |
8404 | (linux_wait_for_process): Clear disabled_regsets. | |
8405 | (regsets_fetch_inferior_registers): Check and set it. | |
8406 | (regsets_store_inferior_registers): Likewise. | |
8407 | (linux_fetch_registers, linux_store_registers): Do not use | |
8408 | use_regsets_p. | |
8409 | (initialize_low): Allocate disabled_regsets. | |
8410 | ||
e28b3332 DJ |
8411 | 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
8412 | ||
8413 | * Makefile.in (LIBOBJS): New. | |
8414 | (OBS): Use LIBOBJS. | |
8415 | (memmem.o): New rule. | |
8416 | * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem. | |
8417 | * configure: Regenerated. | |
8418 | ||
4536995d UW |
8419 | 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com> |
8420 | ||
8421 | * server.c (handle_query): Never return "unsupported" for | |
8422 | qXfer:features:read queries. | |
8423 | ||
221c031f UW |
8424 | 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com> |
8425 | ||
8426 | * server.c (get_features_xml): Fix inverted condition. | |
8427 | (handle_query): Always support qXfer:feature:read. | |
8428 | ||
ccd213ac DJ |
8429 | 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com> |
8430 | ||
8431 | * server.c (wrapper_argv): New. | |
8432 | (start_inferior): Handle wrapper_argv. If set, expect an extra | |
8433 | trap. | |
8434 | (gdbserver_usage): Document --wrapper. | |
8435 | (main): Parse --wrapper. | |
8436 | ||
6fe305f7 UW |
8437 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
8438 | ||
8439 | * configure.srv [powerpc64-*-linux*]: Add all files mentioned for | |
8440 | powerpc-*-linux* to srv_regobj and reg_xmlfiles. | |
8441 | * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation. | |
8442 | (ppc_set_pc): Likewise. | |
8443 | (ppc_arch_setup): New function. | |
8444 | (ppc_fill_gregset): Call ppc_collect_ptrace_register instead | |
8445 | of collect_register. | |
889bf7c5 | 8446 | (the_low_target): Use ppc_arch_setup as arch_setup initializer. |
6fe305f7 | 8447 | |
5b0a002e UW |
8448 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
8449 | ||
8450 | * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o | |
8451 | instead of linux-ppc64-low.o. | |
8452 | * linux-ppc64-low.c: Remove file. | |
8453 | * Makefile.in (SFILES): Remove linux-ppc64-low.c. | |
8454 | (linux-ppc64-low.o): Remove rule. | |
8455 | ||
8456 | * linux-ppc-low.c (init_registers_ppc64): Add prototype. | |
8457 | (init_registers_powerpc_64): Likewise. | |
8458 | (ppc_regmap): Conditionally define depending on __powerpc64__. | |
8459 | (ppc_cannot_store_register): Do not special-case "fpscr" when | |
8460 | compiled on __powerpc64__. | |
8461 | (ppc_collect_ptrace_register): New function. | |
8462 | (ppc_supply_ptrace_register): New function. | |
8463 | (ppc_breakpoint): Change type to "unsigned int". | |
8464 | (ppc_breakpoint_at): Change type of "insn" to "unsigned int". | |
8465 | (the_low_target): Conditionally provide initializers for the | |
889bf7c5 | 8466 | arch_setup member depending on __powerpc64__. Install |
5b0a002e UW |
8467 | collect_ptrace_register and supply_ptrace_register members. |
8468 | ||
9b4b61c8 UW |
8469 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
8470 | ||
8471 | * regcache.h (gdbserver_xmltarget): Add extern declaration. | |
8472 | * server.c (gdbserver_xmltarget): Define. | |
8473 | (get_features_xml): Use it to replace "target.xml" and arch_string. | |
8474 | ||
8475 | * configure.srv: Remove srv_xmltarget. Add XML files that were | |
8476 | mentioned there to srv_xmlfiles instead. Remove conditional tests | |
8477 | on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set | |
8478 | srv_xmlfiles and srv_regobj to include all possible choices. | |
8479 | * configure.ac (srv_xmltarget): Remove. | |
8480 | (srv_xmlfiles): Do not add "target.xml". | |
8481 | (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove | |
8482 | checks for supplementary target information. | |
8483 | * configure: Regenerate. | |
8484 | * Makefile.in (XML_TARGET): Remove. | |
8485 | (target.xml): Remove rule. | |
8486 | (clean): Do not clean up target.xml. | |
8487 | (.PRECIOUS): Do not mention target.xml. | |
8488 | ||
8489 | * target.h (struct target_ops): Remove arch_string member. | |
8490 | * linux-low.c (linux_arch_string): Remove. | |
8491 | (linux_target_ops): Remove arch_string initializer. | |
8492 | * linux-low.h (struct linux_target_ops): Remove arch_string member. | |
8493 | * linux-i386-low.c (the_low_target): Remove arch_string initializer. | |
8494 | * linux-x86-64-low.c (the_low_target): Remove arch_string initializer. | |
8495 | * spu-low.c (spu_arch_string): Remove. | |
8496 | (spu_target_ops): Remove arch_string initializer. | |
8497 | * win32-low.c (win32_arch_string): Remove. | |
8498 | (win32_target_ops): Remove arch_string initializer. | |
8499 | * win32-low.h (struct win32_target_ops): Remove arch_string member. | |
8500 | * win32-arm-low.c (the_low_target): Remove arch_string initializer. | |
8501 | * win32-i368-low.c (the_low_target): Remove arch_string initializer. | |
8502 | ||
ee1a7ae4 UW |
8503 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
8504 | ||
8505 | * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field | |
8506 | by collect_ptrace_register and supply_ptrace_register hooks. | |
8507 | * linux-low.c (fetch_register): Use supply_ptrace_register callback | |
8508 | instead of checking for the_low_target.left_pad_xfer. | |
8509 | (usr_store_inferior_registers): Use collect_ptrace_register callback | |
8510 | instead of checking for the_low_target.left_pad_xfer. | |
8511 | ||
8512 | * linux-s390-low.c (s390_collect_ptrace_register): New function. | |
8513 | (s390_supply_ptrace_register): Likewise. | |
8514 | (s390_fill_gregset): Call s390_collect_ptrace_register. | |
8515 | (the_low_target): Update. | |
8516 | ||
8517 | * linux-ppc64-low.c (ppc_collect_ptrace_register): New function. | |
8518 | (ppc_supply_ptrace_register): Likewise. | |
8519 | (the_low_target): Update. | |
8520 | ||
8521 | * linux-i386-low.c (the_low_target): Update. | |
8522 | * linux-x86-64-low.c (the_low_target): Update. | |
8523 | ||
d61ddec4 UW |
8524 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
8525 | ||
8526 | * configure.srv [s390x-*-linux*]: Set srv_regobj to include both | |
8527 | reg-s390.o and reg-s390x.o. | |
8528 | ||
8529 | * linux-low.c (new_inferior): New global variable. | |
8530 | (linux_create_inferior, linux_attach): Set it. | |
8531 | (linux_wait_for_process): Call the_low_target.arch_setup after the | |
8532 | target has stopped for the first time. | |
8533 | (initialize_low): Do not call the_low_target.arch_setup. | |
8534 | ||
8535 | * linux-s390-low.c (s390_get_pc): Support bi-arch operation. | |
8536 | (s390_set_pc): Likewise. | |
8537 | (s390_arch_setup): New function. | |
8538 | (the_low_target): Use s390_arch_setup as arch_setup routine. | |
8539 | ||
8540 | * regcache.c (realloc_register_cache): New function. | |
8541 | (set_register_cache): Call it for each existing regcache. | |
8542 | ||
d05b4ac3 UW |
8543 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
8544 | ||
8545 | * server.h (init_registers): Remove prototype. | |
8546 | ||
8547 | * linux-low.h (struct linux_target_ops): Add arch_setup field. | |
8548 | * linux-low.c (initialize_low): Call the_low_target.arch_setup () | |
8549 | instead of init_registers (). | |
8550 | * linux-arm-low.c (init_registers_arm): Add prototype. | |
8551 | (init_registers_arm_with_iwmmxt): Likewise. | |
8552 | (the_low_target): Add initializer for arch_setup field. | |
8553 | * linux-cris-low.c (init_registers_cris): Add prototype. | |
8554 | (the_low_target): Add initializer for arch_setup field. | |
8555 | * linux-crisv32-low.c (init_registers_crisv32): Add prototype. | |
8556 | (the_low_target): Add initializer for arch_setup field. | |
8557 | * linux-i386-low.c (init_registers_i386_linux): Add prototype. | |
8558 | (the_low_target): Add initializer for arch_setup field. | |
8559 | * linux-ia64-low.c (init_registers_ia64): Add prototype. | |
8560 | (the_low_target): Add initializer for arch_setup field. | |
8561 | * linux-m32r-low.c (init_registers_m32r): Add prototype. | |
8562 | (the_low_target): Add initializer for arch_setup field. | |
8563 | * linux-m68k-low.c (init_registers_m68k): Add prototype. | |
8564 | (the_low_target): Add initializer for arch_setup field. | |
8565 | * linux-mips-low.c (init_registers_mips_linux): Add prototype. | |
8566 | (init_registers_mips64_linux): Likewise. | |
8567 | (the_low_target): Add initializer for arch_setup field. | |
8568 | * linux-ppc-low.c (init_registers_ppc): Add prototype. | |
8569 | (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise. | |
8570 | (the_low_target): Add initializer for arch_setup field. | |
8571 | * linux-ppc64-low.c (init_registers_ppc64): Add prototype. | |
8572 | (init_registers_powerpc_64): Likewise. | |
8573 | (the_low_target): Add initializer for arch_setup field. | |
8574 | * linux-s390-low.c (init_registers_s390): Add prototype. | |
8575 | (init_registers_s390x): Likewise. | |
8576 | (the_low_target): Add initializer for arch_setup field. | |
8577 | * linux-sh-low.c (init_registers_sh): Add prototype. | |
8578 | (the_low_target): Add initializer for arch_setup field. | |
8579 | * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype. | |
8580 | (the_low_target): Add initializer for arch_setup field. | |
8581 | * linux-xtensa-low.c (init_registers_xtensa): Add prototype. | |
8582 | (the_low_target): Add initializer for arch_setup field. | |
8583 | ||
8584 | * win32-low.h (struct win32_target_ops): Add arch_setup field. | |
8585 | * win32-low.c (initialize_low): Call the_low_target.arch_setup () | |
8586 | instead of init_registers (). | |
8587 | * win32-arm-low.c (init_registers_arm): Add prototype. | |
8588 | (the_low_target): Add initializer for arch_setup field. | |
8589 | * win32-i386-low.c (init_registers_i386): Add prototype. | |
8590 | (the_low_target): Add initializer for arch_setup field. | |
8591 | ||
8592 | * spu-low.c (init_registers_spu): Add prototype. | |
8593 | (initialize_low): Call initialie_registers_spu () instead of | |
8594 | initialize_registers (). | |
8595 | ||
fd96d250 PA |
8596 | 2008-02-19 Pedro Alves <pedro@codesourcery.com> |
8597 | ||
8598 | * server.c (handle_v_requests): When handling the vRun and vAttach | |
8599 | packets, if already debugging a process, don't kill it. Return an | |
8600 | error instead. | |
8601 | ||
d41b6bb4 DJ |
8602 | 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com> |
8603 | ||
8604 | * server.c (handle_query): Correct length check. | |
8605 | ||
5ac588cf PA |
8606 | 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt> |
8607 | ||
8608 | * win32-low.c (do_initial_child_stuff): Add process handle | |
8609 | parameter. Set current_process_handle and current_process_id from the | |
8610 | parameters. Clear globals. | |
8611 | (win32_create_inferior): Don't set current_process_handle and | |
8612 | current_process_id here. Instead pass them on the call to | |
8613 | do_initial_child_stuff. | |
8614 | (win32_attach): Likewise. | |
8615 | (win32_clear_inferiors): New. | |
8616 | (win32_kill): Don't close the current process handle or the | |
8617 | current thread handle here. Instead call win32_clear_inferiors. | |
8618 | (win32_detach): Don't open a new handle to the process. Call | |
8619 | win32_clear_inferiors. | |
8620 | (win32_join): Don't rely on current_process_handle; open a new | |
8621 | handle using the process id. | |
8622 | (win32_wait): Call win32_clear_inferiors when the inferior process | |
8623 | has exited. | |
8624 | ||
ecd7ecbc DJ |
8625 | 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com> |
8626 | ||
8627 | * server.c (monitor_show_help): Add "exit". | |
8628 | ||
1525d545 MG |
8629 | 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com> |
8630 | ||
ecd7ecbc | 8631 | * Makefile.in (SFILES): Add linux-xtensa-low.c. |
1525d545 MG |
8632 | (clean): Add reg-xtensa.c. |
8633 | (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies. | |
ecd7ecbc DJ |
8634 | * configure.srv (xtensa*-*-linux*) New target. |
8635 | * linux-xtensa-low.c: New. | |
8636 | * xtensa-xtregs.c: New. | |
1525d545 | 8637 | |
59a016f0 PA |
8638 | 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt> |
8639 | ||
8640 | * hostio.c: Don't include errno.h. | |
8641 | (errno_to_fileio_errno): Move to hostio-errno. | |
8642 | * hostio.c: (hostio_error): Remove the error parameter. Defer the | |
8643 | error number outputting to the target->hostio_last_error callback. | |
8644 | (hostio_packet_error): Use FILEIO_EINVAL directly. | |
8645 | (handle_open, handle_pread, hostio_error, handle_unlink): Update | |
8646 | calls to hostio_error. | |
8647 | * hostio-errno.c: New. | |
8648 | * server.h (hostio_last_error_from_errno): Declare. | |
8649 | * target.h (target_ops): Add hostio_last_error member. | |
8650 | * linux-low.c (linux_target_op): Register hostio_last_error_from_errno | |
8651 | as hostio_last_error handler. | |
889bf7c5 | 8652 | * spu-low.c (spu_target_ops): Likewise. |
59a016f0 PA |
8653 | * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error) |
8654 | (wince_hostio_last_error): New functions. | |
8655 | (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error | |
8656 | as hostio_last_error handler. | |
8657 | (win32_target_ops) [!_WIN32_WCE]: Register | |
8658 | hostio_last_error_from_errno as hostio_last_error handler. | |
8659 | * Makefile.in (SFILES): Add hostio.c and hostio-errno.c. | |
8660 | (hostio-errno.o): New rule. | |
8661 | * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs. | |
8662 | * configure.srv (srv_hostio_err_objs): New variable. Default to | |
8663 | hostio-errno.o. | |
8664 | (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "". | |
8665 | * configure: Regenerate. | |
8666 | ||
2d717e4f DJ |
8667 | 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
8668 | ||
8669 | * linux-low.c (linux_attach_lwp): Do not _exit after errors. | |
8670 | (linux_kill, linux_detach): Clean up the process list. | |
8671 | * remote-utils.c (remote_open): Improve port number parsing. | |
8672 | (putpkt_binary, input_interrupt): Only send interrupts if the target | |
8673 | is running. | |
8674 | * server.c (extended_protocol): Make static. | |
8675 | (attached): Define earlier. | |
8676 | (exit_requested, response_needed, program_argv): New variables. | |
8677 | (target_running): New. | |
8678 | (start_inferior): Clear attached here. | |
8679 | (attach_inferior): Set attached here. | |
8680 | (require_running): Define. | |
8681 | (handle_query): Use require_running and target_running. Implement | |
8682 | "monitor exit". | |
8683 | (handle_v_attach, handle_v_run): New. | |
8684 | (handle_v_requests): Use require_running. Handle vAttach and vRun. | |
8685 | (gdbserver_usage): Update. | |
8686 | (main): Redo argument parsing. Handle --debug and --multi. Handle | |
8687 | --attach along with other options or after the port. Save | |
8688 | program_argv. Support no initial program. Resynchronize | |
8689 | communication with GDB after an error. Handle "monitor exit". | |
8690 | Use require_running and target_running. Always allow the extended | |
8691 | protocol. Do not error out for Hc0 or Hc-1. Do not automatically | |
8692 | restart in extended mode. | |
8693 | * README: Refer to the GDB manual. Update --attach usage. | |
8694 | ||
7407e2de AS |
8695 | 2007-12-20 Andreas Schwab <schwab@suse.de> |
8696 | ||
8697 | * linux-low.c (STACK_SIZE): Define. | |
8698 | (linux_tracefork_child): Use it. Use __clone2 on ia64. | |
8699 | (linux_test_for_tracefork): Likewise. | |
8700 | ||
b65d95c5 DJ |
8701 | 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com> |
8702 | ||
8703 | * linux-low.c (linux_wait_for_event): Update messages. Do not | |
8704 | reinsert auto-delete breakpoints. | |
8705 | * mem-break.c (struct breakpoint): Change return type of handler to | |
8706 | int. | |
8707 | (set_breakpoint_at): Update handler type. | |
8708 | (reinsert_breakpoint_handler): Return 1 instead of calling | |
8709 | delete_breakpoint. | |
8710 | (reinsert_breakpoint_by_bp): Check for the original breakpoint before | |
8711 | setting a new one. | |
8712 | (check_breakpoints): Delete auto-delete breakpoints and return 2. | |
8713 | * mem-break.h (set_breakpoint_at): Update handler type. | |
8714 | * thread-db.c (thread_db_create_event, thread_db_create_event): Update. | |
8715 | * win32-low.c (auto_delete_breakpoint): New. | |
8716 | (get_child_debug_event): Use it. | |
8717 | ||
4e799345 DJ |
8718 | 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com> |
8719 | ||
8720 | * configure.ac: Check for pread and pwrite. | |
8721 | * hostio.c (handle_pread): Fall back to lseek and read. | |
8722 | (handle_pwrite): Fall back to lseek and write. | |
8723 | * config.in, configure: Regenerated. | |
8724 | ||
27524b67 DJ |
8725 | 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com> |
8726 | ||
8727 | * server.c (myresume): Add own_buf argument. | |
8728 | (main): Update calls. | |
8729 | ||
a20d5e98 DJ |
8730 | 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com> |
8731 | ||
8732 | * linux-low.c (linux_wait, linux_resume): Do not handle async I/O. | |
8733 | * remote-utils.c (remote_open): Do not call disable_async_io. | |
8734 | (block_async_io): Delete. | |
8735 | (unblock_async_io): Make static. | |
8736 | (initialize_async_io): New. | |
8737 | * server.c (handle_v_cont): Handle async I/O here. | |
8738 | (myresume): Likewise. Move other common resume tasks here... | |
8739 | (main): ... from here. Call initialize_async_io. Disable async | |
8740 | I/O before the main loop. | |
8741 | * server.h (initialize_async_io): Declare. | |
8742 | (block_async_io, unblock_async_io): Delete prototypes. | |
8743 | * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here. | |
8744 | ||
b79d787e DJ |
8745 | 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au> |
8746 | ||
8747 | * remote-utils.c (readchar): Allow binary data in received messages. | |
8748 | ||
d97903b2 PA |
8749 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
8750 | ||
8751 | * win32-low.c (attaching): New global. | |
8752 | (win32_create_inferior): Clear the `attaching' global. | |
8753 | (win32_attach): Set the `attaching' global. | |
8754 | (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when | |
8755 | attaching. Only set a breakpoint at the entry point if not | |
8756 | attaching. | |
8757 | ||
311de423 PA |
8758 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
8759 | ||
8760 | * server.c (main): Don't report dll events on the initial | |
8761 | connection on attaches. | |
8762 | ||
6c2d16d2 PA |
8763 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
8764 | ||
8765 | * server.c (main): Relax numerical bases supported for the pid of | |
8766 | the --attach command line argument. | |
8767 | ||
5ca906e6 PA |
8768 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
8769 | ||
8770 | * win32-low.c (win32_attach): Call OpenProcess before | |
8771 | DebugActiveProcess, not after. Add last error output to error | |
8772 | call. | |
8773 | ||
9c6c8194 PA |
8774 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
8775 | ||
8776 | * win32-low.c (win32_get_thread_context) | |
8777 | (win32_set_thread_context): New functions. | |
8778 | (thread_rec): Use win32_get_thread_context. | |
8779 | (continue_one_thread, win32_resume): Use win32_set_thread_context. | |
8780 | * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context' | |
8781 | field. | |
8782 | ||
4d5d1aaa PA |
8783 | 2007-12-03 Leo Zayas |
8784 | Pedro Alves <pedro_alves@portugalmail.pt> | |
8785 | ||
8786 | * win32-low.c (soft_interrupt_requested, faked_breakpoint): New | |
8787 | global variables. | |
8788 | (child_add_thread): Minor cleanup. | |
8789 | (child_continue): Resume artificially suspended threads before | |
8790 | calling ContinueDebugEvent. | |
8791 | (suspend_one_thread): New. | |
8792 | (fake_breakpoint_event): New. | |
8793 | (get_child_debug_event): Change return type to int. Check here if | |
8794 | gdb sent an interrupt request. If a soft interrupt was requested, | |
8795 | fake a breakpoint event. Return 0 if there is no event to handle, | |
8796 | and 1 otherwise. | |
8797 | (win32_wait): Don't check here if gdb sent an interrupt request. | |
8798 | Ensure there is a valid event to handle. | |
8799 | (win32_request_interrupt): Add soft interruption method as last | |
8800 | resort. | |
8801 | ||
c436e841 PA |
8802 | 2007-12-03 Leo Zayas |
8803 | Pedro Alves <pedro_alves@portugalmail.pt> | |
8804 | ||
8805 | * win32-low.h (win32_thread_info): Add descriptions to the | |
8806 | structure members. Replace `suspend_count' counter by a | |
8807 | `suspended' flag. | |
8808 | * win32-low.c (thread_rec): Update condition of when to get the | |
8809 | context from the inferior. Rely on ContextFlags being set if it | |
8810 | has already been retrieved. Only suspend the inferior thread if | |
8811 | we haven't already. Warn if that fails. | |
8812 | (continue_one_thread): s/suspend_count/suspended/. Only call | |
8813 | ResumeThread once. Warn if that fails. | |
8814 | ||
e7b5fa67 PA |
8815 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
8816 | ||
8817 | * win32-low.c (win32_wait): Don't read from the inferior when it | |
8818 | has already exited. | |
8819 | ||
a385171d PA |
8820 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
8821 | ||
8822 | * Makefile.in (win32_low_h): New variable. | |
8823 | (win32-low.o): Add dependency on $(win32_low_h). | |
8824 | (win32-arm-low.o, win32-i386-low.o): New rules. | |
8825 | ||
f80c84b3 DJ |
8826 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
8827 | ||
8828 | * hostio.c: Correct copyright year. | |
8829 | ||
a6b151f1 DJ |
8830 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
8831 | ||
8832 | * Makefile.in (OBS): Add hostio.o. | |
8833 | (hostio.o): New rule. | |
8834 | * server.h (handle_vFile): Declare. | |
8835 | * hostio.c: New file. | |
8836 | * server.c (handle_v_requests): Take packet_len and new_packet_len | |
8837 | for binary packets. Call handle_vFile. | |
8838 | (main): Update call to handle_v_requests. | |
8839 | ||
f9387fc3 DJ |
8840 | 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com> |
8841 | ||
8842 | * linux-low.c: Include <sched.h>. | |
8843 | ||
51c2684e DJ |
8844 | 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com> |
8845 | ||
8846 | * linux-low.c (linux_tracefork_grandchild): New. | |
8847 | (linux_tracefork_child): Use clone. | |
8848 | (linux_test_for_tracefork): Use clone; allocate and free a stack. | |
8849 | ||
75f83163 JB |
8850 | 2007-10-31 Joel Brobecker <brobecker@adacore.com> |
8851 | ||
8852 | * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh. | |
8853 | ||
da5898ce DJ |
8854 | 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com> |
8855 | ||
8856 | * linux-low.c (handle_extended_wait): Handle unexpected signals. | |
8857 | ||
24a09b5f DJ |
8858 | 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com> |
8859 | ||
8860 | * inferiors.c (change_inferior_id): Delete. | |
8861 | (add_pid_to_list, pull_pid_from_list): New. | |
8862 | * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG) | |
8863 | (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK) | |
8864 | (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE) | |
8865 | (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK) | |
8866 | (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE) | |
8867 | (PTRACE_EVENT_EXIT, __WALL): Provide default definitions. | |
8868 | (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables. | |
8869 | (using_threads): Always set to 1. | |
8870 | (handle_extended_wait): New. | |
8871 | (add_process): Do not set TID. | |
8872 | (linux_create_inferior): Set must_set_ptrace_flags. | |
8873 | (linux_attach_lwp): Remove TID argument. Do not check using_threads. | |
8874 | Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers. | |
8875 | (linux_thread_alive): Rename TID argument to LWPID. | |
8876 | (linux_wait_for_process): Handle unknown processes. Do not use TID. | |
8877 | (linux_wait_for_event): Do not use TID or check using_threads. Update | |
8878 | call to dead_thread_notify. Call handle_extended_wait. | |
8879 | (linux_create_inferior): Use PTRACE_SETOPTIONS. | |
8880 | (send_sigstop): Delete sigstop_sent. | |
8881 | (wait_for_sigstop): Avoid TID. | |
8882 | (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid) | |
8883 | (linux_test_for_tracefork): New. | |
8884 | (linux_lookup_signals): Use thread_db_active and | |
8885 | linux_supports_tracefork_flag. | |
8886 | (initialize_low): Use thread_db_active and linux_test_for_tracefork. | |
8887 | * linux-low.h (get_process_thread): Avoid TID. | |
8888 | (struct process_ifo): Move thread_known and tid to the end. Remove | |
8889 | sigstop_sent. | |
8890 | (linux_attach_lwp, thread_db_init): Update prototypes. | |
8891 | * server.h (change_inferior_id): Delete prototype. | |
8892 | (add_pid_to_list, pull_pid_from_list): New prototypes. | |
8893 | * thread-db.c (thread_db_use_events): New. | |
8894 | (find_first_thread): Rename to... | |
8895 | (find_one_thread): ...this. Update callers and messages. Do not | |
8896 | call fatal. Check thread_db_use_events. Do not call | |
8897 | change_inferior_id or new_thread_notify. | |
8898 | (maybe_attach_thread): Update. Do not call new_thread_notify. | |
8899 | (thread_db_init): Set thread_db_use_events. Check use_events. | |
8900 | * utils.c (fatal, warning): Correct message prefix. | |
8901 | ||
30ed0a8f DJ |
8902 | 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com> |
8903 | ||
8904 | * Makefile.in (clean): Remove new files. | |
8905 | (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c) | |
8906 | (powerpc-64.o, powerpc-64.c): New rules. | |
8907 | * configure.srv: Use alternate register sets for powerpc64-*-linux* | |
8908 | with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux* | |
8909 | with SPE. | |
8910 | * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for | |
8911 | SPE targets. | |
8912 | (ppc_cannot_store_register): Do not check for FPSCR for SPE targets. | |
8913 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset) | |
8914 | (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS) | |
8915 | (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New. | |
8916 | (target_regsets): Add AltiVec and SPE register sets. | |
8917 | * configure.ac: Check for AltiVec and SPE. | |
8918 | * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS) | |
8919 | (ppc_fill_vrregset, ppc_store_vrregset): New. | |
8920 | (target_regsets): Add AltiVec register set. | |
8921 | * configure: Regenerated. | |
8922 | ||
fd462a61 DJ |
8923 | 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com> |
8924 | ||
8925 | * linux-low.c (O_LARGEFILE): Define. | |
8926 | (linux_read_memory): Use /proc/PID/mem. | |
8927 | * configure.ac: Use AC_GNU_SOURCE. Check for pread64. | |
8928 | * configure, config.in: Regenerated. | |
8929 | ||
69f223ed DJ |
8930 | 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
8931 | ||
8932 | * linux-low.c (linux_wait_for_event): Do not pass signals while | |
8933 | single-stepping. | |
8934 | ||
aec18585 PA |
8935 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
8936 | ||
8937 | * win32-low.c (create_process): New. | |
8938 | (win32_create_inferior): Use create_process instead of | |
8939 | CreateProcess. If create_process failed retry appending an ".exe" | |
8940 | suffix. Store the GetLastError result immediatelly after | |
8941 | create_process calls and use it on the call to error. | |
8942 | ||
34d86ddd PA |
8943 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
8944 | ||
8945 | * win32-low.c (handle_load_dll): Don't use toolhelp when waiting. | |
8946 | ||
5a0e3bd0 JB |
8947 | 2007-08-23 Joel Brobecker <brobecker@adacore.com> |
8948 | ||
8949 | * configure.ac: Switch license to GPLv3. | |
8950 | ||
f88c79e6 MS |
8951 | 2007-08-01 Michael Snyder <msnyder@access-company.com> |
8952 | ||
8953 | * remote-utils.c (putpkt_binary): Memory leak, free buf2. | |
8954 | ||
6b3d9b83 PA |
8955 | 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt> |
8956 | ||
8957 | * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New | |
8958 | typedef. | |
8959 | (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var. | |
8960 | (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get | |
8961 | CloseToolhelp32Snapshot. | |
8962 | (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with | |
8963 | CloseToolhelp32Snapshot. | |
8964 | ||
c588c53c MS |
8965 | 2007-07-27 Michael Snyder <michael.snyder@access-company.com> |
8966 | ||
8967 | * server.c (main): Check for inferior exit before main loop. | |
8968 | ||
aa0403d9 PA |
8969 | 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt> |
8970 | ||
8971 | * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc | |
8972 | instead of on tmp_desc. | |
8973 | ||
255e7678 DJ |
8974 | 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt> |
8975 | Daniel Jacobowitz <dan@codesourcery.com> | |
8976 | ||
8977 | * inferiors.c (all_dlls, dlls_changed, get_dll): New. | |
8978 | (add_thread): Minor cleanups. | |
8979 | (clear_inferiors): Move lower in the file. Clear the DLL | |
8980 | list. | |
8981 | (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New. | |
8982 | * remote-utils.c (prepare_resume_reply): Check dlls_changed. | |
8983 | (xml_escape_text): New. | |
8984 | * server.c (handle_query): Handle qXfer:libraries:read. Report it | |
8985 | for qSupported. | |
8986 | (handle_v_cont): Report errors. | |
8987 | (gdbserver_version): Update. | |
8988 | (main): Correct size of own_buf. Do not report initial DLL events. | |
8989 | * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll) | |
8990 | (unloaded_dll, xml_escape_text): New. | |
8991 | * win32-low.c (enum target_waitkind): Update comments. | |
8992 | (win32_add_one_solib, get_image_name, winapi_EnumProcessModules) | |
8993 | (winapi_GetModuleInformation, winapi_GetModuleFileNameExA) | |
8994 | (win32_EnumProcessModules, win32_GetModuleInformation) | |
8995 | (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name) | |
8996 | (winapi_CreateToolhelp32Snapshot, winapi_Module32First) | |
8997 | (winapi_Module32Next, win32_CreateToolhelp32Snapshot) | |
8998 | (win32_Module32First, win32_Module32Next, load_toolhelp) | |
8999 | (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New. | |
9000 | (get_child_debug_event): Handle DLL events. | |
9001 | (win32_wait): Likewise. | |
9002 | ||
0d37add9 DJ |
9003 | 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
9004 | ||
9005 | * configure.srv: Set srv_linux_regsets for sh*-*-linux*. | |
9006 | * linux-sh-low.c (sh_fill_gregset, target_regsets): New. | |
9007 | ||
45e2715e PA |
9008 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
9009 | ||
9010 | * win32-low.c (handle_output_debug_string): Ignore event if not | |
9011 | waiting. | |
9012 | ||
c5674cf1 PA |
9013 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
9014 | ||
9015 | * win32-arm-low.c (arm_wince_breakpoint): Fix typo. | |
9016 | ||
2bbe3cc1 DJ |
9017 | 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com> |
9018 | ||
9019 | * remote-utils.c (look_up_one_symbol): Handle 'm' packets. | |
9020 | ||
ae13219e DJ |
9021 | 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com> |
9022 | ||
9023 | * inferiors.c (change_inferior_id): Add comment. | |
9024 | * linux-low.c (check_removed_breakpoint): Add an early | |
9025 | prototype. Improve debug output. | |
9026 | (linux_attach): Doc update. | |
9027 | (linux_detach_one_process, linux_detach): Clean up before releasing | |
9028 | each process. | |
9029 | (send_sigstop, wait_for_sigstop): Improve comments and debug output. | |
9030 | * linux-low.h (struct process_info): Doc improvement. | |
9031 | * mem-break.c (delete_all_breakpoints): New. | |
9032 | * mem-break.h (delete_all_breakpoints): New prototype. | |
9033 | * thread-db.c (find_first_thread): New. | |
9034 | (thread_db_create_event): Call it instead of | |
9035 | thread_db_find_new_threads. Clean up unused variables. | |
9036 | (maybe_attach_thread): Remove first thread handling. | |
9037 | (thread_db_find_new_threads): Use find_first_thread. | |
9038 | (thread_db_get_tls_address): Likewise. | |
9039 | ||
4105de34 DJ |
9040 | 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com> |
9041 | ||
9042 | * thread-db.c (thread_db_find_new_threads): Add prototype. | |
9043 | (thread_db_create_event): Check for the main thread before adding | |
9044 | a new thread. | |
9045 | (maybe_attach_thread): Only enable event reporting if TID == 0. | |
9046 | (thread_db_get_tls_address): Check for new threads. | |
9047 | ||
2b876972 DJ |
9048 | 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com> |
9049 | ||
9050 | * linux-low.c (linux_create_inferior): Try execv before execvp. | |
9051 | * spu-low.c (spu_create_inferior): Likewise. | |
9052 | ||
7a245884 DJ |
9053 | 2007-06-13 Mike Frysinger <vapier@gentoo.org> |
9054 | ||
9055 | * linux-low.c (linux_create_inferior): Change execv to execvp. | |
9056 | * spu-low.c (spu_create_inferior): Likewies. | |
9057 | ||
117ce543 DJ |
9058 | 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com> |
9059 | ||
9060 | * Makefile.in (clean): Clean new files instead of deleted ones. | |
9061 | (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete. | |
9062 | (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New | |
9063 | rules. | |
9064 | * configure.srv: Specify XML files and new regformats for MIPS and | |
9065 | MIPS64 GNU/Linux. | |
9066 | * linux-mips-low.c (mips_num_regs): Set to only used registers. | |
9067 | (mips_regmap): Do not fetch $0. Remove unused registers. Add | |
9068 | an entry for the restart register. | |
9069 | (mips_cannot_fetch_register, mips_cannot_store_register) | |
9070 | (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update | |
9071 | register names to match the XML descriptions. | |
9072 | (mips_fill_gregset, mips_store_gregset): Likewise. Handle the | |
9073 | restart register instead of $0. | |
9074 | ||
0e7f50da UW |
9075 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
9076 | Markus Deuling <deuling@de.ibm.com> | |
9077 | ||
9078 | * remote-utils.c (decode_xfer_write): New function. | |
9079 | * server.h (decode_xfer_write): Add prototype. | |
9080 | * server.c (handle_query): Add PACKET_LEN argument. Support | |
9081 | qXfer:spu:read and qXfer:spu:write packets. | |
9082 | (main): Pass packet_len to handle_query. | |
9083 | * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu. | |
9084 | * target.h (target_ops): Add qxfer_spu. | |
9085 | ||
374c1d38 UW |
9086 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
9087 | ||
9088 | * spu-low.c (spu_proc_xfer_spu): Do not return failure when | |
9089 | accessing non-seekable spufs files. | |
9090 | ||
bb63802a UW |
9091 | 2007-05-16 Markus Deuling <deuling@de.ibm.com> |
9092 | ||
889bf7c5 | 9093 | * server.c (handle_query): Add reply for qC packet. |
bb63802a | 9094 | |
7390519e PA |
9095 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
9096 | Leo Zayas <lerele@champenstudios@com> | |
9097 | ||
9098 | * server.h (check_remote_input_interrupt_request): New function. | |
9099 | * remote_utils.c (INVALID_DESCRIPTOR): New define. | |
9100 | (remote_desc): Initialize with INVALID_DESCRIPTOR. | |
9101 | (input_interrupt): Expose on USE_WIN32API too. Fix whitespace. | |
9102 | (check_remote_input_interrupt_request): New function. | |
9103 | * server.h (check_remote_input_interrupt_request): Declare. | |
3ecf0694 | 9104 | * win32-low.c (winapi_DebugBreakProcess, |
7390519e PA |
9105 | winapi_GenerateConsoleCtrlEvent): New typedefs. |
9106 | (get_child_debug_event): Lower Win32 debug event polling from 1 sec | |
9107 | to 250 ms. | |
9108 | (win32_wait): Check for remote interrupt request | |
9109 | with check_remote_input_interrupt_request. | |
9110 | (win32_request_interrupt): New function. | |
9111 | (win32_target_op): Set request_interrupt to win32_request_interrupt. | |
9112 | ||
34b34921 PA |
9113 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
9114 | ||
9115 | * win32-low.c (debug_registers_changed, | |
9116 | debug_registers_used, CONTEXT_EXTENDED_REGISTERS, | |
9117 | CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS, | |
9118 | CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete. | |
9119 | (thread_rec): Get context using the low target. | |
9120 | (child_add_thread): Call thread_added on the low target, | |
9121 | which does the same thing. | |
9122 | (regptr): Delete. | |
9123 | (do_initial_child_stuff): Remove debug registers references. | |
9124 | Set context using the low target. Resume threads after | |
9125 | setting the contexts. | |
9126 | (child_continue): Remove dead variable. Remove debug | |
9127 | registers references. | |
9128 | (child_fetch_inferior_registers): Go through the low target. | |
9129 | (do_child_store_inferior_registers): Remove. | |
9130 | (child_store_inferior_registers): Go through the low target. | |
9131 | (win32_resume): Remove debug registers references. | |
9132 | Set context using the low target. | |
9133 | (handle_exception): Change return type to void. Don't record | |
9134 | context here. Set status to TARGET_WAITKIND_SPURIOUS on a | |
9135 | first chance exception. | |
889bf7c5 | 9136 | (get_child_debug_event): Change return type to void. Remove |
34b34921 PA |
9137 | goto loop. Always return after waiting for debug event. |
9138 | (win32_wait): Convert to switch statement. Handle spurious | |
9139 | events. | |
9140 | ||
9141 | * win32-i386-low.c (debug_registers_changed, | |
9142 | debug_registers_used): New. | |
9143 | (initial_stuff): Rename to ... | |
9144 | (i386_initial_stuff): ... this. Clear debug registers | |
9145 | state variables. | |
9146 | (store_debug_registers): Delete. | |
9147 | (i386_get_thread_context): New. | |
9148 | (load_debug_registers): Delete. | |
9149 | (i386_set_thread_context): New. | |
9150 | (i386_thread_added): New. | |
9151 | (single_step): Rename to ... | |
9152 | (i386_single_step): ... this. | |
9153 | (do_fetch_inferior_registers): Rename to ... | |
9154 | (i386_fetch_inferior_register): ... this. | |
9155 | (i386_store_inferior_register): New. | |
9156 | (the_low_target): Adapt to new interface. | |
9157 | ||
9158 | * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define. | |
9159 | (arm_get_thread_context): New. | |
9160 | (arm_set_thread_context): New. | |
9161 | (regptr): New. | |
9162 | (do_fetch_inferior_registers): Rename to ... | |
9163 | (arm_fetch_inferior_register): ... this. | |
9164 | (arm_store_inferior_register): New. | |
9165 | (arm_wince_breakpoint): Reimplement as unsigned long. | |
9166 | (arm_wince_breakpoint_len): Define. | |
9167 | (the_low_target): Adapt to new interface. | |
9168 | ||
9169 | * win32-low.h (target_ops): Remove regmap, store_debug_registers and | |
9170 | load_debug_registers. Add get_thread_context, set_thread_context, | |
9171 | thread_added and store_inferior_register. Rename | |
9172 | fetch_inferior_registers to fetch_inferior_register. | |
9173 | (regptr): Remove declaration. | |
9174 | ||
dd6953e1 PA |
9175 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
9176 | ||
9177 | * linux-low.c (linux_detach): Change return type to int. Return 0. | |
9178 | * spu-low.c (spu_detach): Likewise. | |
9179 | ||
444d6139 PA |
9180 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
9181 | ||
9182 | * target.h (target_ops): Change return type of detach to int. | |
9183 | Add join. | |
9184 | (join_inferior): New. | |
9185 | * server.c (main): Don't skip detach support on mingw32. | |
9186 | If the inferior doesn't support detaching return error. | |
9187 | Call join_inferior instead of using waitpid. | |
9188 | * linux-low.c (linux_join): New. | |
9189 | (linux_target_op): Add linux_join. | |
9190 | * spu-low.c (spu_join): New. | |
9191 | (spu_target_ops): Add spu_join. | |
9192 | * win32-low.c (win32_detach): Adapt to new interface. | |
9193 | Reopen current_process_handle before detaching. Issue a child | |
9194 | resume before detaching. | |
9195 | (win32_join): New. | |
9196 | (win32_target_op): Add win32_join. | |
9197 | ||
1d5315fe PA |
9198 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
9199 | ||
9200 | * win32-low.c (win32-attach): Fix return value. | |
9201 | * target.h (target_ops): Describe ATTACH return values. | |
9202 | ||
bf914831 PA |
9203 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
9204 | ||
9205 | * win32-low.c (GETPROCADDRESS): Define. | |
9206 | (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer. | |
9207 | (winapi_DebugSetProcessKillOnExit): Likewise. | |
9208 | (win32_create_inferior): Force usage of ansi CreateProcessA. | |
9209 | (win32_attach): Use GETPROCADDRESS. | |
9210 | (win32_detach): Likewise. | |
9211 | ||
f72f3e60 PA |
9212 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
9213 | ||
9214 | * win32-low.c (win32_wait): Don't use WSTOPSIG. | |
9215 | ||
ed50f18f PA |
9216 | 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt> |
9217 | ||
9218 | * win32-low.c: Commit leftover changes from 2007-03-29. | |
9219 | ||
0c2ead7e DJ |
9220 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
9221 | ||
9222 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit | |
9223 | fields short instead of int. Add explicit padding. | |
9224 | (i387_cache_to_fsave): Remove unnecessary casts. | |
9225 | (i387_fsave_to_cache): Doc fix. | |
9226 | (i387_cache_to_fxsave): Remove unnecessary casts and masking. | |
9227 | ||
73725ff3 DJ |
9228 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
9229 | ||
9230 | * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use. | |
9231 | (i387_fxsave_to_cache): Check fp->ftag while building ftag value. | |
9232 | ||
d99f33d8 PA |
9233 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
9234 | ||
9235 | * configure.srv (arm*-*-mingw32ce*): Move near the other | |
9236 | arm targets. | |
9237 | ||
68070c10 PA |
9238 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
9239 | ||
2482afc6 | 9240 | * configure.ac: Add errno checking. |
68070c10 PA |
9241 | (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h, |
9242 | sys/file.h and malloc.h. | |
9243 | (AC_CHECK_DECLS): Add perror. | |
9244 | (srv_mingwce): Handle. | |
2482afc6 | 9245 | * configure.srv (i[34567]86-*-cygwin*): Add |
68070c10 PA |
9246 | win32-i386-low.o to srv_tgtobj. |
9247 | (i[34567]86-*-mingw*): Likewise. | |
9248 | (arm*-*-mingw32ce*): Add case. | |
9249 | * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, | |
9250 | HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check. | |
9251 | [__MINGW32CE__] (strerror): New function. | |
9252 | [__MINGW32CE__] (errno): Define to GetLastError. | |
9253 | [__MINGW32CE__] (COUNTOF): New macro. | |
9254 | (remote_open): Remove extra close call. | |
9255 | * mem-break.c (delete_breakpoint_at): New function. | |
9256 | * mem-break.h (delete_breakpoint_at): Declare. | |
9257 | * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, | |
9258 | HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check. | |
9259 | [USE_WIN32API] (read, write): Add char* casts. | |
9260 | * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check. | |
9261 | * server.h: Include wincecompat.h on Windows CE. | |
9262 | [HAVE_ERRNO_H]: Check. | |
9263 | (perror): Declare if not declared. | |
9264 | * utils.c: Add stdlib.h, errno.h and malloc.h includes. | |
9265 | (perror_with_name): Remove errno declaration. | |
9266 | * wincecompat.h: New. | |
9267 | * wincecompat.c: New. | |
9268 | * win32-low.h: New. | |
9269 | * win32-arm-low.c: New. | |
9270 | * win32-i386-low.c: New. | |
9271 | (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h. | |
9272 | (OUTMSG2): Make it safe. | |
9273 | (_T): New macro. | |
9274 | (COUNTOF): New macro. | |
9275 | (NUM_REGS): Get it from the low target. | |
9276 | (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT, | |
9277 | CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0. | |
9278 | (thread_rec): Let low target handle debug registers. | |
9279 | (child_add_thread): Likewise. | |
9280 | (child_init_thread_list): Likewise. | |
9281 | (continue_one_thread): Likewise. | |
9282 | (regptr): New. | |
9283 | (do_child_fetch_inferior_registers): Move to ... | |
9284 | * win32-i386-low.c: ... here, and rename to ... | |
9285 | (do_fetch_inferior_registers): ... this. | |
889bf7c5 | 9286 | * win32-low.c (child_fetch_inferior_registers): |
68070c10 PA |
9287 | Go through the low target. |
9288 | (do_child_store_inferior_registers): Use regptr. | |
9289 | (strwinerror): New function. | |
9290 | (win32_create_inferior): Handle Windows CE. | |
9291 | Use strwinerror instead of strerror on Windows error | |
9292 | codes. Add program to the error output. | |
9293 | Don't close the main thread handle on Windows CE. | |
9294 | (win32_attach): Use coredll.dll on Windows CE. | |
9295 | (win32_kill): Close current process and current | |
9296 | thread handles. | |
9297 | (win32_detach): Use coredll.dll on Windows CE. | |
9298 | (win32_resume): Let low target handle debug registers, and | |
9299 | step request. | |
9300 | (handle_exception): Add/Remove initial breakpoint. Avoid | |
9301 | non-existant WSTOPSIG on Windows CE. | |
9302 | (win32_read_inferior_memory): Cast to remove warning. | |
9303 | (win32_arch_string): Go through the low target. | |
9304 | (initialize_low): Call set_breakpoint_data with the low | |
9305 | target's breakpoint. | |
9306 | * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM, | |
9307 | FOP_REGNUM, mappings): Move to ... | |
9308 | * win32-i386-low.c: ... here. | |
9309 | * win32-low.c (win32_thread_info): Move to ... | |
9310 | * win32-low.h: ... here. | |
9311 | * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c, | |
9312 | win32-arm-low.c and wincecompat.c. | |
9313 | (all:): Add $EXEEXT. | |
9314 | (install-only:): Likewise. | |
9315 | (gdbserver:): Likewise. | |
9316 | (gdbreplay:): Likewise. | |
9317 | * config.in: Regenerate. | |
9318 | * configure: Regenerate. | |
9319 | ||
41093d81 PA |
9320 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
9321 | ||
9322 | * win32-low.c: Rename typedef thread_info to | |
9323 | win32_thread_info throughout. | |
9324 | ||
544afa54 PA |
9325 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
9326 | ||
9327 | * win32-i386-low.c: Rename to ... | |
9328 | * win32-low.c: ... this. | |
9329 | * configure.srv: Replace win32-i386-low.o with win32-low.o. | |
9330 | * Makefile.in: Likewise. | |
9331 | ||
bce7165d PA |
9332 | 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt> |
9333 | ||
9334 | * remote-utils.c (monitor_output): Constify msg parameter. | |
9335 | * server.h (monitor_output): Likewise. | |
9336 | * win32-i386-low.c (handle_output_debug_string): New. | |
9337 | (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using | |
9338 | handle_output_debug_string. | |
9339 | (get_child_debug_event): Likewise. | |
9340 | ||
506c7aa0 DJ |
9341 | 2007-03-27 Mat Hostetter <mat@lcs.mit.edu> |
9342 | ||
9343 | * server.c (main): Correct strtoul check. | |
9344 | ||
42c81e2a DJ |
9345 | 2007-03-27 Jon Ringle <jon@ringle.org> |
9346 | ||
9347 | * linux-low.c: Check __ARCH_HAS_MMU__ also. | |
9348 | ||
9453113a DJ |
9349 | 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com> |
9350 | ||
9351 | * Makefile.in: Add dummy "pdf" and "install-pdf" targets. | |
9352 | ||
64a69107 DJ |
9353 | 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com> |
9354 | ||
9355 | * terminal.h: Check HAVE_SGTTY_H. | |
9356 | ||
9357 | 2007-02-27 Mat Hostetter <mat@lcs.mit.edu> | |
6f8486da DJ |
9358 | |
9359 | * remote-utils.c (remote_open): Print out the assigned port number. | |
9360 | ||
c74d0ad8 DJ |
9361 | 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com> |
9362 | ||
9363 | * remote-utils.c (monitor_output): New function. | |
9364 | * server.c (debug_threads): Define here. | |
9365 | (monitor_show_help): New function. | |
9366 | (handle_query): Handle qRcmd. | |
9367 | (main): Do not handle 'd' packet. | |
9368 | * server.h (debug_threads, remote_debug, monitor_output): Declare. | |
9369 | * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions | |
9370 | of debug_threads. | |
9371 | ||
de7c3b4a PA |
9372 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
9373 | ||
9374 | * Makefile.in (EXEEXT): New. | |
9375 | (clean): Use $(EXEEXT). | |
9376 | ||
ef57601b PA |
9377 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
9378 | ||
9379 | * target.h (target_ops): Rename send_signal to request_interrupt, | |
9380 | and remove enum target_signal parameter. | |
9381 | * linux-low.c (linux_request_interrupt): Rename from | |
9382 | linux_send_signal, and always send SIGINT. | |
9383 | * spu-low.c (spu_request_interrupt): Rename from spu_send_signal, | |
9384 | and always send SIGINT. | |
9385 | * remote-utils.c (putpkt_binary): Call request_interrupt, instead | |
9386 | of send_signal. | |
9387 | (input_interrupt): Likewise. | |
9388 | ||
820f2bda PA |
9389 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
9390 | ||
9391 | * server.c (get_features_xml): Check if target implemented | |
9392 | arch_string. | |
9393 | * win32-i386-low.c (win32_arch_string): New. | |
9394 | (win32_target_ops): Add win32_arch_string as arch_string member. | |
9395 | ||
ab39bf24 UW |
9396 | 2007-02-22 Markus Deuling <deuling@de.ibm.com> |
9397 | ||
9398 | * spu-low.c (spu_arch_string): New. | |
9399 | (spu_target_ops): Add spu_arch_string. | |
9400 | ||
61ff6e04 DJ |
9401 | 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
9402 | ||
9403 | * remote-utils.c: Remove HAVE_TERMINAL_H check. | |
9404 | * configure.ac: Do not check for terminal.h. | |
9405 | * configure, config.in: Regenerated. | |
9406 | ||
fb1e4ffc DJ |
9407 | 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
9408 | ||
9409 | * Makefile.in (OBS): Add $(XML_BUILTIN). | |
9410 | (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New. | |
9411 | (clean): Update. | |
9412 | (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o) | |
9413 | (arm-with-iwmmxt.c): New. | |
9414 | * config.in, configure: Regenerate. | |
9415 | * configure.ac: Check for iWMMXt. Handle srv_xmltarget, | |
9416 | srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML. | |
9417 | * configure.srv: Mention srv_xmltarget and srv_xmlfiles. | |
9418 | (arm*-*-linux*): Add iWMMXt and regset support. | |
9419 | * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define. | |
9420 | (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset) | |
9421 | (arm_store_wmmxregset, target_regsets): New. | |
9422 | * server.c (get_features_xml): Take annex argument. Check builtin | |
9423 | XML documents. | |
9424 | (handle_query): Handle multiple annexes. | |
9425 | ||
0f48aa01 DJ |
9426 | 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
9427 | ||
9428 | * remote-utils.c [USE_WIN32API] (read, write): Define. | |
9429 | (putpkt_binary, input_interrupt, readchar, getpkt): Use read and | |
9430 | write. | |
9431 | ||
23181151 DJ |
9432 | 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com> |
9433 | ||
9434 | * linux-i386-low.c (the_low_target): Set arch_string. | |
9435 | * linux-x86-64-low.c (the_low_target): Likewise. | |
9436 | * linux-low.c (linux_arch_string): New. | |
9437 | (linux_target_ops): Add it. | |
9438 | * linux-low.h (struct linux_target_ops): Add arch_string. | |
9439 | * server.c (write_qxfer_response): Use const void * for DATA. | |
9440 | (get_features_xml): New. | |
9441 | (handle_query): Handle qXfer:features:read. Report it for qSupported. | |
9442 | * target.h (struct target_ops): Add arch_string method. | |
9443 | ||
9d606399 DJ |
9444 | 2007-01-03 Denis Pilat <denis.pilat@st.com> |
9445 | Daniel Jacobowitz <dan@codesourcery.com> | |
9446 | ||
9447 | * linux-low.c (linux_kill): Handle being called with no threads. | |
9448 | * win32-i386-low.c (win32_kill): Likewise. | |
9449 | (get_child_debug_event): Clear current_process_handle. | |
9450 | ||
9451 | 2006-12-30 Denis PILAT <denis.pilat@st.com> | |
8264bb58 DJ |
9452 | Daniel Jacobowitz <dan@codesourcery.com> |
9453 | ||
9454 | * remote-utils.c (remote_open): Check the type of specified | |
9455 | serial port devices before opening them. | |
9456 | * server.c (main): Kill the inferior if an error occurs during | |
9457 | the first remote_open. | |
9458 | ||
a5e13d24 DJ |
9459 | 2006-12-05 Markus Deuling <deuling@de.ibm.com> |
9460 | ||
9461 | * README: Update supported targets. | |
9462 | ||
186947f7 DJ |
9463 | 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com> |
9464 | ||
9465 | * Makefile.in (clean): Remove reg-mips64.c. | |
9466 | (reg-mips64.c, reg-mips64.o): New rules. | |
9467 | * configure.srv: Handle mips64. Include regset support for mips. | |
9468 | * linux-mips-low.c (union mips_register): New. | |
9469 | (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it. | |
9470 | (mips_breakpoint, mips_breakpoint_at): Use int. | |
9471 | (mips_collect_register, mips_supply_register) | |
9472 | (mips_collect_register_32bit, mips_supply_register_32bit) | |
9473 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) | |
9474 | (mips_store_fpregset, target_regsets): New. | |
9475 | * thread-db.c (thread_db_get_tls_address): Use uintptr_t. | |
9476 | ||
a13e2c95 UW |
9477 | 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
9478 | ||
9479 | * configure.srv: Add target "spu*-*-*". | |
9480 | * Makefile.in (clean): Remove reg-spu.c. | |
9481 | (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies. | |
9482 | * spu-low.c: New file. | |
9483 | ||
cb7283db DJ |
9484 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
9485 | ||
9486 | * configure.ac: Correct td_thr_tls_get_addr test. | |
9487 | * configure: Regenerated. | |
9488 | ||
89be2091 DJ |
9489 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
9490 | ||
9491 | * linux-low.c (linux_wait_for_event): Reformat. Use the | |
9492 | pass_signals array. | |
9493 | * remote-utils.c (decode_address_to_semicolon): New. | |
9494 | * server.c (pass_signals, handle_general_set): New. | |
9495 | (handle_query): Mention QPassSignals for qSupported. | |
9496 | (main): Call handle_general_set. | |
9497 | * server.h (pass_signals, decode_address_to_semicolon): New. | |
9498 | ||
000ef4f0 DJ |
9499 | 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com> |
9500 | ||
9501 | * server.c (handle_query): Correct error handling for read_auxv. | |
9502 | ||
b7149293 UW |
9503 | 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com> |
9504 | ||
9505 | * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets | |
9506 | and srv_linux_thread_db to yes. | |
9507 | * linux-s390-low.c (s390_fill_gregset): New function. | |
9508 | (target_regsets): Define data structure. | |
9509 | ||
dae5f5cf DJ |
9510 | 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com> |
9511 | ||
9512 | * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New. | |
9513 | * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR. | |
9514 | * config.in, configure: Regenerated. | |
9515 | * inferiors.c (gdb_id_to_thread): New function. | |
9516 | (gdb_id_to_thread_id): Use it. | |
9517 | * linux-low.c (linux_target_ops): Use thread_db_get_tls_address. | |
9518 | * linux-low.h (struct process_info): Add th member. | |
9519 | (thread_db_get_tls_address): New prototype. | |
9520 | * remote-utils.c (decode_address): Make non-static. | |
9521 | * server.c (handle_query): Handle qGetTLSAddr. | |
9522 | * server.h (gdb_id_to_thread, decode_address): New prototypes. | |
9523 | * target.h (struct target_ops): Add get_tls_address. | |
9524 | * thread-db.c (maybe_attach_thread): Save the thread handle. | |
9525 | (thread_db_get_tls_address): New. | |
9526 | ||
32ca6d61 DJ |
9527 | 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com> |
9528 | ||
9529 | * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define. | |
9530 | (linux_resume_one_process): Take a siginfo_t *. Update all | |
9531 | callers. Queue it if necessary. Use PTRACE_SETSIGINFO. | |
9532 | (struct pending_signals): Add a siginfo_t. | |
9533 | (linux_wait_for_process): Always set last_status. | |
9534 | (linux_wait_for_event): Use PTRACE_GETSIGINFO. | |
9535 | (linux_queue_one_thread): Use PTRACE_GETSIGINFO. | |
9536 | * linux-low.h (struct process_info): Add last_status. | |
9537 | ||
5ffff7c1 DJ |
9538 | 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com> |
9539 | ||
9540 | * remote-utils.c (try_rle): New function. | |
9541 | (putpkt_binary): Use it. | |
9542 | ||
8695c747 DJ |
9543 | 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com> |
9544 | ||
9545 | * Makefile.in (clean): Clean reg-x86-64-linux.c. | |
9546 | (reg-x86-64-linux.o, reg-x86-64-linux.c): New. | |
9547 | * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o. | |
9548 | * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX. | |
9549 | (x86_64_fill_gregset, x86_64_store_gregset): Skip floating | |
9550 | point registers. | |
9551 | ||
290fadea RS |
9552 | 2006-08-08 Richard Sandiford <richard@codesourcery.com> |
9553 | ||
9554 | * server.c (terminal_fd): New variable. | |
9555 | (old_foreground_pgrp): Likewise. | |
9556 | (restore_old_foreground_pgrp): New function. | |
9557 | (start_inferior): Record the terminal file descriptor in terminal_fd | |
9558 | and its original foreground group in old_foreground_pgrp. Register | |
9559 | restore_old_foreground_pgrp with atexit(). | |
9560 | ||
9f2e1e63 DJ |
9561 | 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com> |
9562 | ||
9563 | * server.c (handle_query): Correct qPart to qXfer. | |
9564 | ||
b80864fb DJ |
9565 | 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com> |
9566 | ||
9567 | * configure.ac: Check for more headers which are missing on | |
9568 | Windows. Automatically supply -lwsock32 and USE_WIN32API. | |
9569 | * configure.srv: Add Cygwin and mingw32. | |
9570 | * remote-utils.c: Don't include headers unconditionally which | |
9571 | are missing on mingw32. Include <winsock.h> for mingw32. | |
9572 | (remote_open): Adjust for mingw32 support. Flush | |
9573 | standard error after writing to it. | |
9574 | (remote_close, putpkt_binary, input_interrupt, block_async_io) | |
9575 | (unblock_async_io, enable_async_io, disable_async_io) | |
9576 | (readchar, getpkt): Update for Winsock support. | |
9577 | (prepare_resume_reply): Expect a protocol signal number. | |
9578 | * server.c: Disable <sys/wait.h> on mingw32. | |
9579 | (start_inferior): Adjust for mingw32 support. Flush | |
9580 | standard error after writing to it. | |
9581 | (attach_inferior): Likewise. Use protocol signal | |
9582 | numbers. | |
9583 | (main): Skip 'D' packet on mingw32. Use protocol signal numbers | |
9584 | and names. | |
9585 | * win32-i386-low.c: New file. | |
9586 | * Makefile.in (XM_CLIBS): Set. | |
9587 | (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS). | |
9588 | (win32-i386-low.o): New dependency rule. | |
9589 | * linux-low.c (linux_wait): Use target signal numbers. | |
9590 | * target.h (struct target_ops): Doc fix. | |
9591 | * server.h (target_signal_to_name): New prototype. | |
9592 | * gdbreplay.c: Don't include headers unconditionally which | |
9593 | are missing on mingw32. Include <winsock.h> for mingw32. | |
9594 | (remote_close, remote_open): Adjust for Winsock support. | |
9595 | * configure, config.in: Regenerated. | |
9596 | ||
0876f84a DJ |
9597 | 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
9598 | ||
9599 | * server.c (decode_xfer_read, write_qxfer_response): New. | |
9600 | (handle_query): Take a packet length argument. Handle | |
9601 | qXfer:auxv:read instead of qPart:auxv:read. Mention it in | |
9602 | the qSupported response. | |
9603 | (main): Update call to handle_query. | |
9604 | ||
01f9e8fa DJ |
9605 | 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com> |
9606 | ||
9607 | * remote-utils.c (remote_escape_output, remote_unescape_input): New. | |
9608 | (putpkt_binary): Renamed from putpkt and adjusted for binary | |
9609 | data. | |
9610 | (putpkt): New wrapper for putpkt_binary. | |
9611 | (readchar): Don't mask off the high bit. | |
9612 | (decode_X_packet): New function. | |
9613 | * server.c (main): Call putpkt_binary if a handler sets the packet | |
9614 | length. Save the length of the incoming packet. Handle 'X'. | |
9615 | * server.h (gdb_byte, remote_escape_output, decode_X_packet): New. | |
9616 | ||
be2a5f71 DJ |
9617 | 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com> |
9618 | ||
9619 | * server.c (handle_query): Handle qSupported. | |
9620 | ||
ea025f5f DJ |
9621 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
9622 | ||
9623 | * remote-utils.c (all_symbols_looked_up): New variable. | |
9624 | (look_up_one_symbol): Check it. | |
9625 | * server.h (look_up_one_symbol): New declaration. | |
9626 | * thread-db.c (thread_db_init): Set all_symbols_looked_up. | |
9627 | ||
9308fc88 DJ |
9628 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
9629 | ||
9630 | * Makefile.in (linux-arm-low.o): Update dependencies. | |
66f338c7 | 9631 | * linux-arm-low.c: Include "gdb_proc_service.h". |
9308fc88 DJ |
9632 | (PTRACE_GET_THREAD_AREA): Define. |
9633 | (ps_get_thread_area): New function. | |
9634 | ||
52fb6437 NS |
9635 | 2006-05-09 Nathan Sidwell <nathan@codesourcery.com> |
9636 | ||
9637 | * configure.srv (m68k*-*-uclinux*): New target. | |
9638 | * linux-low.c (linux_create_inferior): Use vfork on mmuless systems. | |
9639 | (linux_resume_one_process): Remove extraneous cast. | |
9640 | (linux_read_offsets): New. | |
9641 | (linux_target_op): Add linux_read_offsets on mmuless systems. | |
9642 | * server.c (handle_query): Add qOffsets logic. | |
9643 | * target.h (struct target_ops): Add read_offsets. | |
9644 | ||
21b0f40c DJ |
9645 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
9646 | ||
9647 | * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h". | |
9648 | (PTRACE_GET_THREAD_AREA): Define. | |
9649 | (ps_get_thread_area): New function. | |
9650 | * Makefile.in (linux-i386-low.o, linux-mips-low.o) | |
9651 | (linux-x86-64-low.o): Update. | |
9652 | ||
0050a760 DJ |
9653 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
9654 | ||
9655 | * configure.ac: Remove checks for prfpregset_t. | |
9656 | * gdb_proc_service.h: New file. | |
9657 | * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the | |
9658 | new "gdb_proc_service.h". | |
9659 | * proc-service.c: Likewise. | |
9660 | (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t. | |
9661 | (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument. | |
9662 | * Makefile.in (gdb_proc_service_h): Updated. | |
9663 | * configure, config.in: Regenerated. | |
9664 | ||
b92a518e DJ |
9665 | 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
9666 | ||
9667 | * remote-utils.c (prepare_resume_reply): Move declaration | |
9668 | of gdb_id_from_wait to the top of the block. | |
9669 | ||
545587ee DJ |
9670 | 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com> |
9671 | ||
9672 | * linux-low.c (regsets_store_inferior_registers): Read the regset | |
9673 | from the target before filling it. | |
9674 | ||
9db87ebd DJ |
9675 | 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
9676 | ||
9677 | * server.c (attach_inferior): Return SIGTRAP for a successful | |
9678 | attach. | |
9679 | ||
dd24457d DJ |
9680 | 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
9681 | ||
9682 | * Makefile.in (OBS): Add version.o. | |
9683 | (STAGESTUFF): Delete. | |
9684 | (version.o): Add dependencies. | |
9685 | (version.c): Replace rule. | |
9686 | (clean): Remove version.c. | |
9687 | * server.c (gdbserver_version): New. | |
9688 | (gdbserver_usage): Use printf. | |
9689 | (main): Handle --version and --help. | |
9690 | * server.h (version, host_name): Add declarations. | |
9691 | ||
6f0f660e EZ |
9692 | 2005-12-23 Eli Zaretskii <eliz@gnu.org> |
9693 | ||
889bf7c5 PA |
9694 | * linux-arm-low.c: |
9695 | * linux-arm-low.c: | |
9696 | * inferiors.c: | |
9697 | * i387-fp.h: | |
9698 | * i387-fp.c: | |
9699 | * gdbreplay.c: | |
9700 | * regcache.c: | |
9701 | * proc-service.c: | |
9702 | * mem-break.h: | |
9703 | * mem-break.c: | |
9704 | * linux-x86-64-low.c: | |
9705 | * linux-sh-low.c: | |
9706 | * linux-s390-low.c: | |
9707 | * linux-ppc64-low.c: | |
9708 | * linux-ppc-low.c: | |
9709 | * linux-mips-low.c: | |
9710 | * linux-m68k-low.c: | |
9711 | * linux-m32r-low.c: | |
9712 | * linux-low.h: | |
9713 | * linux-low.c: | |
9714 | * linux-ia64-low.c: | |
9715 | * linux-i386-low.c: | |
9716 | * linux-crisv32-low.c: | |
9717 | * thread-db.c: | |
9718 | * terminal.h: | |
9719 | * target.h: | |
9720 | * target.c: | |
9721 | * server.h: | |
9722 | * server.c: | |
9723 | * remote-utils.c: | |
9724 | * regcache.h: | |
9725 | * utils.c: | |
9726 | * Makefile.in: | |
9727 | * configure.ac: | |
6f0f660e EZ |
9728 | * gdbserver.1: Add (C) after Copyright. Update the FSF |
9729 | address. | |
9730 | ||
9d1fb177 DJ |
9731 | 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com> |
9732 | ||
9733 | * linux-arm-low.c (arm_eabi_breakpoint): New variable. | |
9734 | (arm_breakpoint_at): Recognize both breakpoints. | |
9735 | (the_low_target): Use the correct breakpoint instruction. | |
9736 | ||
011a70c2 DJ |
9737 | 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com> |
9738 | ||
9739 | * configure.srv (x86_64-*-linux*): Turn on thread_db support. | |
9740 | * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len) | |
9741 | (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New. | |
9742 | (the_low_target): Update. | |
9743 | ||
7fb85e41 AS |
9744 | 2005-10-25 Andreas Schwab <schwab@suse.de> |
9745 | ||
9746 | * server.c (main): Allocate mem_buf with PBUFSIZ bytes. | |
9747 | ||
9748 | * linux-ia64-low.c (ia64_regmap): Remove NAT registers. | |
9749 | (ia64_num_regs): Reduce to 462. | |
9750 | ||
3db0444b DJ |
9751 | 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com> |
9752 | ||
9753 | * acinclude.m4: Correct quoting. | |
9754 | * aclocal.m4: Regenerated. | |
9755 | ||
9756 | Suggested by SZOKOVACS Robert <szo@ies.hu>: | |
9757 | * thread-db.c (thread_db_err_str): Handle TD_VERSION. | |
9758 | (thread_db_init): Call thread_db_err_str. | |
9759 | * configure.ac: Check for TD_VERSION. | |
9760 | * config.in, configure: Regenerated. | |
9761 | ||
bee0189a DJ |
9762 | 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
9763 | ||
9764 | * server.h (error, fatal, warning): Add ATTR_FORMAT. | |
9765 | ||
e9d25b98 DJ |
9766 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
9767 | ||
9768 | * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS | |
9769 | is not available. Define HAVE_PTRACE_GETREGS if it is. | |
9770 | * config.in, configure: Regenerated. | |
9771 | * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64. | |
9772 | * linux-i386-low.c, linux-m68k-low.c: Update to use | |
9773 | HAVE_PTRACE_GETREGS. | |
9774 | * linux-low.c (regsets_fetch_inferior_registers) | |
9775 | (regsets_store_inferior_registers): Only return 0 if we processed | |
9776 | GENERAL_REGS. | |
9777 | * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New. | |
9778 | * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New. | |
9779 | ||
a06660f7 DJ |
9780 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
9781 | ||
9782 | * inferiors.c (struct thread_info): Add gdb_id. | |
9783 | (add_thread): Add gdb_id argument. | |
9784 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New. | |
9785 | * linux-low.c (linux_create_inferior, linux_attach_lwp): Update | |
9786 | calls to add_thread. | |
9787 | * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id. | |
9788 | * server.c (handle_query): Use thread_to_gdb_id. | |
9789 | (handle_v_cont, main): Use gdb_id_to_thread_id. | |
9790 | * server.h (add_thread): Update prototype. | |
9791 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New | |
9792 | prototypes. | |
9793 | ||
5a1f5858 DJ |
9794 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
9795 | ||
9796 | * linux-low.c (fetch_register, usr_store_inferior_registers): Handle | |
9797 | left-padded registers. | |
9798 | * linux-low.h (struct linux_target_ops): Add left_pad_xfer. | |
9799 | * linux-ppc64-low.c (the_low_target): Set left_pad_xfer. | |
9800 | ||
e122f1f5 SE |
9801 | 2005-07-01 Steve Ellcey <sje@cup.hp.com> |
9802 | ||
9803 | * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS. | |
9804 | * configure: Regenerate. | |
9805 | * config.in: Regenerate. | |
9806 | * server.h (NEED_DECLARATION_STRERROR): | |
9807 | Replace with !HAVE_DECL_STRERROR. | |
9808 | ||
d592fa2f DJ |
9809 | 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com> |
9810 | ||
9811 | * linux-low.c (linux_wait, linux_send_signal): Don't test | |
9812 | an unsigned long variable for > 0 if it could be MAX_ULONG. | |
9813 | * server.c (myresume): Likewise. | |
9814 | * target.c (set_desired_inferior): Likewise. | |
9815 | ||
ccbd4912 MK |
9816 | 2005-06-13 Mark Kettenis <kettenis@gnu.org> |
9817 | ||
9818 | * configure.ac: Simplify and improve check for socklen_t. | |
9819 | * configure, config.in: Regenerate. | |
9820 | ||
f450004a DJ |
9821 | 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com> |
9822 | ||
9823 | * acconfig.h: Remove. | |
9824 | * configure.ac: Add a test for socklen_t. Use three-argument | |
9825 | AC_DEFINE throughout. | |
9826 | * config.in: Regenerated using autoheader 2.59. | |
9827 | * configure: Regenerated. | |
9828 | ||
9829 | * gdbreplay.c (socklen_t): Provide a default. | |
9830 | (remote_open): Use socklen_t. | |
9831 | * remote-utils.c (socklen_t): Provide a default. | |
9832 | (remote_open): Use socklen_t. | |
9833 | (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use | |
9834 | unsigned char. | |
9835 | ||
9836 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned | |
9837 | char for buffers. | |
9838 | * linux-low.c (linux_read_memory, linux_write_memory) | |
9839 | (linux_read_auxv): Likewise. | |
9840 | * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read) | |
9841 | (check_mem_write): Likewise. | |
9842 | * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write): | |
9843 | Likewise. | |
9844 | * regcache.c (struct inferior_rgcache_data, registers_to_string) | |
9845 | (registers_from_string, register_data): Likewise. | |
9846 | * server.c (handle_query, main): Likewise. | |
9847 | * server.h (convert_ascii_to_int, convert_int_to_ascii) | |
9848 | (decode_M_packet): Likewise. | |
9849 | * target.c (read_inferior_memory, write_inferior_memory): Likewise. | |
9850 | * target.h (struct target_ops): Update read_memory, write_memory, | |
9851 | and read_auxv. | |
9852 | (read_inferior_memory, write_inferior_memory): Update. | |
9853 | * linux-low.h (struct linux_target_ops): Change type of breakpoint | |
9854 | to unsigned char *. | |
9855 | * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c, | |
9856 | linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c, | |
9857 | linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c, | |
9858 | linux-s390-low.c, linux-sh-low.c: Update for changes in | |
9859 | read_inferior_memory and the_low_target->breakpoint. | |
9860 | ||
eee84df1 DJ |
9861 | 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com> |
9862 | ||
9863 | * Makefile.in (SFILES): Add linux-ppc64-low.c. | |
9864 | (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets. | |
9865 | * configure.srv: Add powerpc64-*-linux*. | |
9866 | * linux-ppc64-low.c: New file. | |
9867 | ||
45b134e5 OF |
9868 | 2005-05-23 Orjan Friberg <orjanf@axis.com> |
9869 | ||
9870 | * linux-cris-low.c: New file with support for CRIS. | |
9871 | * linux-crisv32-low.c: Ditto for CRISv32. | |
9872 | * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c. | |
9873 | (clean): Add reg-cris.c and reg-crisv32.c. | |
889bf7c5 | 9874 | Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c, |
45b134e5 OF |
9875 | reg-crisv32.o, and reg-crisv32.c to make rules. |
9876 | * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of | |
9877 | recognized targets. | |
9878 | ||
48d93c75 UW |
9879 | 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com> |
9880 | ||
9881 | * linux-low.c (fetch_register): Ensure buffer size is a multiple | |
9882 | of sizeof (PTRACE_XFER_TYPE). | |
9883 | (usr_store_inferior_registers): Likewise. Zero out excess bytes. | |
9884 | ||
e013ee27 OF |
9885 | 2005-05-12 Orjan Friberg <orjanf@axis.com> |
9886 | ||
889bf7c5 | 9887 | * target.h (struct target_ops): Add insert_watchpoint, |
e013ee27 OF |
9888 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address function |
9889 | pointers for hardware watchpoint support. | |
9890 | * linux-low.h (struct linux_target_ops): Ditto. | |
9891 | * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint) | |
9892 | (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add | |
9893 | to linux_target_ops. | |
9894 | * remote-utils.c (prepare_resume_reply): Add watchpoint information to | |
9895 | reply packet. | |
9896 | * server.c (main): Recognize 'Z' and 'z' packets. | |
9897 | ||
b0ded00b UW |
9898 | 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com> |
9899 | ||
9900 | * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define. | |
9901 | (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions. | |
9902 | (the_low_target): Add new members. | |
9903 | ||
8643e2ad DJ |
9904 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
9905 | ||
9906 | * proc-service.c (ps_lgetregs): Search all_processes instead of | |
9907 | all_threads. | |
9908 | ||
fc620387 DJ |
9909 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
9910 | ||
9911 | * server.c (start_inferior): Change return type to int. | |
9912 | (attach_inferior): Change sigptr to int *. | |
9913 | (handle_v_cont, handle_v_requests): Change signal to int *. | |
9914 | (main): Change signal to int. | |
9915 | ||
9916 | 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com> | |
7cfbc4a0 KI |
9917 | |
9918 | * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o. | |
9919 | * configure.srv: Add m32r*-*-linux*. | |
9920 | * linux-m32r-low.c: New file. | |
9921 | ||
e0e76420 DJ |
9922 | 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com> |
9923 | ||
9924 | * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly. | |
9925 | ||
a1928bad DJ |
9926 | 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
9927 | ||
9928 | * inferiors.c (change_inferior_id, add_thread, find_inferior_id): | |
9929 | Take unsigned long arguments for PIDs. | |
9930 | * linux-low.c (add_process, linux_attach_lwp, linux_attach) | |
9931 | (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop) | |
9932 | (wait_for_sigstop, linux_resume_one_process) | |
9933 | (regsets_fetch_inferior_registers, linux_send_signal) | |
9934 | (linux_read_auxv): Likewise. Update the types of variables holding | |
9935 | PIDs. Update format string specifiers. | |
9936 | * linux-low.h (struct process_info, linux_attach_lwp): Likewise. | |
9937 | * remote-utils.c (prepare_resume_reply): Likewise. | |
9938 | * server.c (cont_thread, general_thread, step_thread) | |
9939 | (thread_from_wait, old_thread_from_wait, signal_pid): Change type to | |
9940 | unsigned long. | |
9941 | (handle_query): Update format specifiers. | |
9942 | (handle_v_cont, main): Use strtoul for thread IDs. | |
9943 | * server.h (struct inferior_list_entry): Use unsigned long for ID. | |
9944 | (add_thread, find_inferior_id, change_inferior_id, cont_thread) | |
9945 | (general_thread, step_thread, thread_from_wait) | |
9946 | (old_thread_from_wait): Update. | |
9947 | * target.h (struct thread_resume): Use unsigned long for THREAD. | |
9948 | (struct target_ops): Use unsigned long for arguments to attach and | |
9949 | thread_alive. | |
9950 | ||
dcdb98d2 DJ |
9951 | 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com> |
9952 | ||
9953 | * acinclude.m4: Include bfd/bfd.m4 directly. | |
9954 | * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis | |
9955 | <agriffis@toolchain.org>. | |
9956 | * aclocal.m4, configure: Regenerated. | |
9957 | ||
bec39cab AC |
9958 | 2005-01-07 Andrew Cagney <cagney@gnu.org> |
9959 | ||
9960 | * configure.ac: Rename configure.in, require autoconf 2.59. | |
9961 | * configure: Re-generate. | |
9962 | ||
434c4c77 DJ |
9963 | 2004-12-08 Daniel Jacobowitz <dan@debian.org> |
9964 | ||
9965 | * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset | |
9966 | LIBS when finished. | |
9967 | * aclocal.m4: Regenerated. | |
9968 | * configure: Regenerated. | |
9969 | ||
db1d3e1b AS |
9970 | 2004-11-21 Andreas Schwab <schwab@suse.de> |
9971 | ||
9972 | * linux-m68k-low.c (m68k_num_gregs): Define. | |
9973 | (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset) | |
9974 | (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New. | |
9975 | (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc) | |
9976 | (m68k_breakpoint_at): New. Add to the_low_target. | |
9977 | ||
9978 | * configure.srv (m68*-*-linux*): Set srv_linux_regsets and | |
9979 | srv_linux_thread_db to yes. | |
9980 | ||
43360365 JB |
9981 | 2004-10-20 Joel Brobecker <brobecker@gnat.com> |
9982 | ||
9983 | * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing. | |
9984 | (ARCH_SET_FS): Likewise. | |
9985 | (ARCH_GET_FS): Likewise. | |
9986 | (ARCH_GET_GS): Likewise. | |
9987 | ||
fd500816 DJ |
9988 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
9989 | ||
9990 | * linux-i386-low.c (ps_get_thread_area): New. | |
9991 | * linux-x86-64-low.c (ps_get_thread_area): New. | |
9992 | * linux-low.c: Include <sys/syscall.h>. | |
9993 | (linux_kill_one_process): Don't kill the first thread here. | |
9994 | (linux_kill): Kill the first thread here. | |
9995 | (kill_lwp): New function. | |
9996 | (send_sigstop, linux_send_signal): Use it. | |
9997 | * proc-service.c: Clean up #ifdefs. | |
9998 | (fpregset_info): Delete. | |
9999 | (ps_lgetregs): Update and enable implementation. | |
10000 | (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled | |
10001 | implementations. | |
10002 | * remote-utils.c (struct sym_cache, symbol_cache): New. | |
10003 | (input_interrupt): Print a clearer message. | |
10004 | (async_io_enabled): New variable. | |
10005 | (enable_async_io, disable_async_io): Use it. Update comments. | |
10006 | (look_up_one_symbol): Use the symbol cache. | |
10007 | * thread-db.c (thread_db_look_up_symbols): New function. | |
10008 | (thread_db_init): Update comments. Call thread_db_look_up_symbols. | |
10009 | ||
f6de3c42 DJ |
10010 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
10011 | ||
10012 | * configure.in: Test for -rdynamic. | |
10013 | * configure: Regenerated. | |
10014 | * Makefile (INTERNAL_LDFLAGS): New. | |
10015 | (gdbserver, gdbreplay): Use it. | |
10016 | ||
2c0fc042 AC |
10017 | 2004-09-02 Andrew Cagney <cagney@gnu.org> |
10018 | ||
10019 | * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE. | |
10020 | ||
075b3282 DJ |
10021 | 2004-03-23 Daniel Jacobowitz <drow@mvista.com> |
10022 | ||
10023 | * linux-low.c (linux_wait): Clear all_processes list also. | |
10024 | ||
fa6a77dc DJ |
10025 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
10026 | ||
10027 | * linux-low.c: Include <errno.h>. Remove extern declaration of | |
10028 | errno. | |
10029 | ||
6d782a97 DJ |
10030 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
10031 | ||
10032 | * gdbreplay.c, server.h, utils.c: Update copyright years. | |
10033 | ||
3a7fb99b DJ |
10034 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
10035 | ||
10036 | * server.c (main): Print child status or termination signal from | |
10037 | variable 'signal', not 'sig'. | |
10038 | ||
c3e735a6 DJ |
10039 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
10040 | ||
10041 | * linux-low.c (linux_read_memory): Change return type to | |
10042 | int. Check for and return error from ptrace(). | |
10043 | * target.c (read_inferior_memory): Change return type to int. Pass | |
10044 | back return status from the_target->read_memory(). | |
10045 | * target.h (struct target_ops): Adapt *read_memory() prototype. | |
10046 | Update comment. | |
10047 | (read_inferior_memory): Adapt prototype. | |
10048 | * server.c (main): Return an error packet if | |
10049 | read_inferior_memory() returns an error. | |
10050 | ||
a59d1c82 DJ |
10051 | 2004-03-04 Daniel Jacobowitz <drow@mvista.com> |
10052 | ||
10053 | * Makefile.in (distclean): Remove config.h, stamp-h, and config.log. | |
10054 | Unify with other clean targets. | |
10055 | ||
dc3f8883 DJ |
10056 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
10057 | ||
10058 | * server.c (handle_v_cont): Call set_desired_inferior. | |
10059 | ||
89a208da DJ |
10060 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
10061 | ||
10062 | * remote-utils.c (prepare_resume_reply): Always supply "thread:". | |
10063 | ||
62ea82f5 DJ |
10064 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
10065 | ||
10066 | * linux-low.c (linux_wait): Unblock async I/O. | |
10067 | (linux_resume): Block and enable async I/O. | |
10068 | * remote-utils.c (block_async_io, unblock_async_io): New functions. | |
10069 | * server.h (block_async_io, unblock_async_io): Add prototypes. | |
10070 | ||
6910d122 DJ |
10071 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
10072 | ||
10073 | * remote-utils.c (remote_open): Print a status notice after | |
10074 | opening a TCP port. | |
10075 | * server.c (attach_inferior): Print a status notice after | |
10076 | attaching. | |
10077 | ||
10078 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> | |
d677d77d DJ |
10079 | |
10080 | * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. | |
10081 | ||
c89dc5d4 DJ |
10082 | 2004-02-26 Daniel Jacobowitz <drow@mvista.com> |
10083 | ||
10084 | * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the | |
10085 | error packet. | |
10086 | * server.c, target.h: Update copyright years. | |
10087 | ||
4b8dad4a RM |
10088 | 2004-02-25 Roland McGrath <roland@redhat.com> |
10089 | ||
10090 | * target.h (struct target_ops): New member `read_auxv'. | |
10091 | * server.c (handle_query): Handle qPart:auxv:read: query using that. | |
10092 | * linux-low.c (linux_read_auxv): New function. | |
10093 | (linux_target_ops): Initialize `read_auxv' member to that. | |
10094 | ||
d7446758 JB |
10095 | 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
10096 | ||
10097 | Committed by Jim Blandy <jimb@redhat.com>. | |
10098 | ||
10099 | * linux-s390-low.c (s390_num_regs): Update. | |
4b8dad4a | 10100 | (s390_regmap): Remove control registers. Use __s390x__ predefine |
d7446758 JB |
10101 | instead of GPR_SIZE to distiguish s390 and s390x targets. |
10102 | ||
5544ad89 DJ |
10103 | 2004-01-31 Daniel Jacobowitz <drow@mvista.com> |
10104 | ||
10105 | * linux-low.c: Update copyright year. | |
10106 | (check_removed_breakpoint): Clear pending_is_breakpoint. | |
10107 | (linux_set_resume_request, linux_queue_one_thread) | |
10108 | (resume_status_pending_p): New functions. | |
10109 | (linux_continue_one_thread): Use process->resume. | |
10110 | (linux_resume): Only resume threads if there are no pending events. | |
10111 | * linux-low.h (struct process_info): Add resume request | |
10112 | pointer. | |
10113 | ||
2a68b70e DJ |
10114 | 2004-01-30 Daniel Jacobowitz <drow@mvista.com> |
10115 | ||
10116 | * regcache.c (new_register_cache): Clear the allocated register | |
10117 | buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>. | |
10118 | ||
64386c31 DJ |
10119 | 2003-10-13 Daniel Jacobowitz <drow@mvista.com> |
10120 | ||
10121 | * linux-low.c (linux_resume): Take a struct thread_resume * | |
10122 | argument. | |
10123 | (linux_wait): Update call. | |
10124 | (resume_ptr): New static variable. | |
10125 | (linux_continue_one_thread): Renamed from | |
10126 | linux_continue_one_process. Use resume_ptr. | |
10127 | (linux_resume): Use linux_continue_one_thread. | |
10128 | * server.c (handle_v_cont, handle_v_requests): New functions. | |
10129 | (myresume): New function. | |
10130 | (main): Handle 'v' case. | |
10131 | * target.h (struct thread_resume): New type. | |
10132 | (struct target_ops): Change argument of "resume" to struct | |
10133 | thread_resume *. | |
10134 | (myresume): Delete macro. | |
10135 | ||
c938e9b0 L |
10136 | 2003-08-08 H.J. Lu <hongjiu.lu@intel.com> |
10137 | ||
10138 | * Makefile.in (install-only): Create dest dir. Support DESTDIR. | |
10139 | (uninstall): Support DESTDIR. | |
10140 | ||
7f313d07 BC |
10141 | Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com> |
10142 | ||
10143 | * configure.srv: Add xscale*linux copy of arm*linux entry. | |
10144 | ||
3b2fc2ea DJ |
10145 | 2003-07-24 Daniel Jacobowitz <drow@mvista.com> |
10146 | ||
10147 | * linux-arm-low.c (arm_reinsert_addr): New function. | |
10148 | (the_low_target): Add arm_reinsert_addr. | |
10149 | ||
1c0a559e MK |
10150 | 2003-07-08 Mark Kettenis <kettenis@gnu.org> |
10151 | ||
10152 | * mem-break.c: Remove whitespace at end of file. | |
10153 | ||
43d5792c DJ |
10154 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
10155 | ||
10156 | * configure.in: Check whether we need to prototype strerror. | |
10157 | * server.h: Optionally prototype strerror. | |
10158 | * gdbreplay.c (perror_with_name): Use strerror. | |
10159 | * linux-low.c (linux_attach_lwp): Use strerror. | |
10160 | * utils.c (perror_with_name): Use strerror. | |
10161 | * config.in, configure: Regenerated. | |
10162 | ||
c8a86edf DJ |
10163 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
10164 | ||
10165 | * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by | |
10166 | SUGIOKA Toshinobu <sugioka@itonet.co.jp>. | |
10167 | ||
73d37363 DJ |
10168 | 2003-06-20 Daniel Jacobowitz <drow@mvista.com> |
10169 | ||
10170 | * Makefile.in (SFILES): Update. | |
10171 | * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c, | |
10172 | low-sun3.c: Remove files. | |
10173 | ||
6ad8ae5c DJ |
10174 | 2003-06-17 Daniel Jacobowitz <drow@mvista.com> |
10175 | ||
10176 | * linux-low.c: Move comment to linux_thread_alive where it belonged. | |
10177 | (linux_detach_one_process, linux_detach): New functions. | |
10178 | (linux_target_ops): Add linux_detach. | |
10179 | * server.c (main): Handle 'D' packet. | |
10180 | * target.h (struct target_ops): Add "detach" member. | |
10181 | (detach_inferior): Define. | |
10182 | ||
1581182a MK |
10183 | 2003-06-13 Mark Kettenis <kettenis@gnu.org> |
10184 | ||
10185 | From Kelley Cook <kelleycook@wideopenwest.com>: | |
10186 | * configure.srv: Accept i[34567]86 variants. | |
10187 | ||
e5379b03 DJ |
10188 | 2003-06-05 Daniel Jacobowitz <drow@mvista.com> |
10189 | ||
10190 | * linux-low.c (linux_wait_for_event): Correct comment typos. | |
10191 | (linux_resume_one_process): Call check_removed_breakpoint. | |
10192 | (linux_send_signal): New function. | |
10193 | (linux_target_ops): Add linux_send_signal. | |
10194 | * remote-utils.c (putpkt, input_interrupt): Use send_signal instead | |
10195 | of kill. | |
10196 | * target.h (struct target_ops): Add send_signal. | |
10197 | ||
2ff29de4 JB |
10198 | 2003-05-29 Jim Blandy <jimb@redhat.com> |
10199 | ||
10200 | * linux-low.c (usr_store_inferior_registers): Transfer buf in | |
10201 | PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise, | |
10202 | if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing | |
10203 | away part of the register's value. | |
10204 | ||
254787d4 DJ |
10205 | 2003-03-26 Daniel Jacobowitz <drow@mvista.com> |
10206 | ||
10207 | * linux-low.c (linux_create_inferior): Use __SIGRTMIN. | |
10208 | (linux_wait_for_event, linux_init_signals): Likewise. | |
10209 | ||
94e10508 DJ |
10210 | 2003-03-17 Daniel Jacobowitz <drow@mvista.com> |
10211 | ||
10212 | * configure.in: Check for stdlib.h. | |
10213 | * configure: Regenerated. | |
10214 | * config.in: Regenerated. | |
10215 | ||
4c0711e0 DJ |
10216 | 2003-01-04 Andreas Schwab <schwab@suse.de> |
10217 | ||
10218 | * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31. | |
10219 | ||
ef66e766 AC |
10220 | 2003-01-02 Andrew Cagney <ac131313@redhat.com> |
10221 | ||
10222 | * Makefile.in: Remove obsolete code. | |
10223 | ||
a1358604 DJ |
10224 | 2002-11-20 Daniel Jacobowitz <drow@mvista.com> |
10225 | ||
10226 | * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of | |
10227 | defined(PT_FPR0_HI). | |
10228 | ||
23ce3b1c DJ |
10229 | 2002-11-17 Stuart Hughes <seh@zee2.com> |
10230 | ||
10231 | * linux-arm-low.c (arm_num_regs): Increase. | |
10232 | (arm_regmap): Include status register. | |
10233 | ||
10234 | 2002-11-17 Daniel Jacobowitz <drow@mvista.com> | |
10235 | ||
10236 | * linux-low.c (register_addr): Remove incorrect -1 check. | |
10237 | ||
a9fa9f7d DJ |
10238 | 2002-08-29 Daniel Jacobowitz <drow@mvista.com> |
10239 | ||
10240 | * linux-low.c (linux_create_inferior): Call setpgid. Return | |
10241 | the new PID. | |
10242 | (unstopped_p, linux_signal_pid): Remove. | |
10243 | (linux_target_ops): Remove linux_signal_pid. | |
10244 | * remote-utils.c (putpkt, input_interrupt): Use signal_pid | |
10245 | global instead of target method. | |
10246 | * target.h (struct target_ops): Remove signal_pid. Update comment | |
10247 | for create_inferior. | |
10248 | * server.c (signal_pid): New variable. | |
10249 | (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in | |
4b8dad4a | 10250 | gdbserver. Set the child to be the foreground process group. |
a9fa9f7d DJ |
10251 | (attach_inferior): Set signal_pid. |
10252 | ||
17574093 DJ |
10253 | 2002-08-23 Daniel Jacobowitz <drow@mvista.com> |
10254 | ||
10255 | * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2. | |
10256 | ||
10257 | 2002-08-20 Jim Blandy <jimb@redhat.com> | |
10258 | ||
10259 | * Makefile.in (LDFLAGS): Allow the configure script to establish a | |
10260 | default for this. | |
10261 | ||
10262 | 2002-08-01 Andrew Cagney <cagney@redhat.com> | |
10263 | ||
10264 | * Makefile.in: Make chill references obsolete. | |
10265 | ||
10266 | 2002-07-24 Kevin Buettner <kevinb@redhat.com> | |
10267 | ||
10268 | * configure.in (unistd.h): Add to AC_CHECK_HEADERS list. | |
10269 | * configure: Regenerate. | |
10270 | * config.in: Regenerate. | |
10271 | ||
10272 | 2002-07-09 David O'Brien <obrien@FreeBSD.org> | |
10273 | ||
10274 | * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include. | |
10275 | (perror_with_name, remote_close, remote_open, expect, play): Static. | |
10276 | ||
10277 | 2002-07-04 Michal Ludvig <mludvig@suse.cz> | |
10278 | ||
4b8dad4a | 10279 | * linux-x86-64-low.c (x86_64_regmap): Make it an array of |
17574093 DJ |
10280 | byte offsets instead of an array of indexes. |
10281 | (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const. | |
10282 | ||
10283 | 2002-06-13 Daniel Jacobowitz <drow@mvista.com> | |
10284 | ||
10285 | * regcache.c: Add comment. | |
10286 | ||
10287 | 2002-06-11 Daniel Jacobowitz <drow@mvista.com> | |
10288 | ||
10289 | * thread-db.c: New file. | |
10290 | * proc-service.c: New file. | |
10291 | * acinclude.m4: New file. | |
10292 | * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h, | |
10293 | proc-service.o, and thread-db.o. | |
10294 | (linux-low.o): Add USE_THREAD_DB. | |
10295 | * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T, | |
10296 | HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN. | |
10297 | * aclocal.m4: Regenerated. | |
10298 | * config.in: Regenerated. | |
10299 | * configure: Regenerated. | |
10300 | * configure.in: Check for proc_service.h, sys/procfs.h, | |
10301 | thread_db.h, and linux/elf.h headrs. | |
10302 | Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and | |
10303 | PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB. | |
10304 | Check for -lthread_db and thread support. | |
10305 | * configure.srv: Enable thread_db support for ARM, i386, MIPS, | |
10306 | PowerPC, and SuperH. | |
10307 | * i387-fp.c: Constify arguments. | |
10308 | * i387-fp.h: Likewise. | |
10309 | * inferiors.c: (struct thread_info): Renamed from | |
10310 | `struct inferior_info'. Remove PID member. Use generic inferior | |
10311 | list header. All uses updated. | |
10312 | (inferiors, signal_pid): Removed. | |
10313 | (all_threads): New variable. | |
10314 | (get_thread): Define. | |
10315 | (add_inferior_to_list): New function. | |
10316 | (for_each_inferior): New function. | |
10317 | (change_inferior_id): New function. | |
10318 | (add_inferior): Removed. | |
10319 | (remove_inferior): New function. | |
10320 | (add_thread): New function. | |
10321 | (free_one_thread): New function. | |
10322 | (remove_thread): New function. | |
10323 | (clear_inferiors): Use for_each_inferior and free_one_thread. | |
10324 | (find_inferior): New function. | |
10325 | (find_inferior_id): New function. | |
10326 | (inferior_target_data): Update argument type. | |
10327 | (set_inferior_target_data): Likewise. | |
10328 | (inferior_regcache_data): Likewise. | |
10329 | (set_inferior_regcache_data): Likewise. | |
10330 | * linux-low.c (linux_bp_reinsert): Remove. | |
10331 | (all_processes, stopping_threads, using_thrads) | |
10332 | (struct pending_signals, debug_threads, pid_of): New. | |
10333 | (inferior_pid): Replace with macro. | |
10334 | (struct inferior_linux_data): Remove. | |
10335 | (get_stop_pc, add_process): New functions. | |
10336 | (linux_create_inferior): Restore SIGRTMIN+1 before calling exec. | |
10337 | Use add_process and add_thread. | |
10338 | (linux_attach_lwp): New function, based on old linux_attach. Use | |
10339 | add_process and add_thread. Set stop_expected for new threads. | |
10340 | (linux_attach): New function. | |
10341 | (linux_kill_one_process): New function. | |
10342 | (linux_kill): Kill all LWPs. | |
10343 | (linux_thread_alive): Use find_inferior_id. | |
10344 | (check_removed_breakpoints, status_pending_p): New functions. | |
10345 | (linux_wait_for_process): Renamed from linux_wait_for_one_inferior. | |
10346 | Update. Use WNOHANG. Wait for cloned processes also. Update process | |
10347 | struct for the found process. | |
10348 | (linux_wait_for_event): New function. | |
10349 | (linux_wait): Use it. Support LWPs. | |
10350 | (send_sigstop, wait_for_sigstop, stop_all_processes) | |
10351 | (linux_resume_one_process, linux_continue_one_process): New functions. | |
10352 | (linux_resume): Support LWPs. | |
10353 | (REGISTER_RAW_SIZE): Remove. | |
10354 | (fetch_register): Use register_size instead. Call supply_register. | |
10355 | (usr_store_inferior_registers): Likewise. Call collect_register. | |
10356 | Fix recursive case. | |
10357 | (regsets_fetch_inferior_registers): Improve error message. | |
10358 | (regsets_store_inferior_registers): Add debugging. | |
10359 | (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB. | |
10360 | (unstopped_p, linux_signal_pid): New functions. | |
10361 | (linux_target_ops): Add linux_signal_pid. | |
10362 | (linux_init_signals): New function. | |
10363 | (initialize_low): Call it. Initialize using_threads. | |
10364 | * regcache.c (inferior_regcache_data): Add valid | |
10365 | flag. | |
10366 | (get_regcache): Fetch registers lazily. Add fetch argument | |
10367 | and update all callers. | |
10368 | (regcache_invalidate_one, regcache_invalidate): New | |
10369 | functions. | |
10370 | (new_register_cache): Renamed from create_register_cache. | |
10371 | Return the new regcache. | |
10372 | (free_register_cache): Change argument to a void *. | |
10373 | (registers_to_string, registers_from_string): Call get_regcache | |
10374 | with fetch flag set. | |
10375 | (register_data): Make static. Pass fetch flag to get_regcache. | |
10376 | (supply_register): Call get_regcache with fetch flag clear. | |
10377 | (collect_register): Call get_regcache with fetch flag set. | |
10378 | (collect_register_as_string): New function. | |
10379 | * regcache.h: Update. | |
10380 | * remote-utils.c (putpkt): Flush after debug output and use | |
10381 | stderr. | |
10382 | Handle input interrupts while waiting for an ACK. | |
10383 | (input_interrupt): Use signal_pid method. | |
10384 | (getpkt): Flush after debug output and use stderr. | |
10385 | (outreg): Use collect_register_as_string. | |
10386 | (new_thread_notify, dead_thread_notify): New functions. | |
10387 | (prepare_resume_reply): Check using_threads. Set thread_from_wait | |
10388 | and general_thread. | |
10389 | (look_up_one_symbol): Flush after debug output. | |
10390 | * server.c (step_thread, server_waiting): New variables. | |
10391 | (start_inferior): Don't use signal_pid. Update call to mywait. | |
10392 | (attach_inferior): Update call to mywait. | |
10393 | (handle_query): Handle qfThreadInfo and qsThreadInfo. | |
10394 | (main): Don't fetch/store registers explicitly. Use | |
10395 | set_desired_inferior. Support proposed ``Hs'' packet. Update | |
10396 | calls to mywait. | |
10397 | * server.h: Update. | |
10398 | (struct inferior_list, struct_inferior_list_entry): New. | |
10399 | * target.c (set_desired_inferior): New. | |
10400 | (write_inferior_memory): Constify. | |
10401 | (mywait): New function. | |
10402 | * target.h: Update. | |
10403 | (struct target_ops): New signal_pid method. | |
10404 | (mywait): Removed macro, added prototype. | |
10405 | ||
10406 | * linux-low.h (regset_func): Removed. | |
10407 | (regset_fill_func, regset_store_func): New. | |
10408 | (enum regset_type): New. | |
10409 | (struct regset_info): Add type field. Use new operation types. | |
10410 | (struct linux_target_ops): stop_pc renamed to get_pc. | |
10411 | Add decr_pc_after_break and breakpoint_at. | |
10412 | (get_process, get_thread_proess, get_process_thread) | |
10413 | (strut process_info, all_processes, linux_attach_lwp) | |
10414 | (thread_db_init): New. | |
10415 | ||
10416 | * linux-arm-low.c (arm_get_pc, arm_set_pc, | |
10417 | arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New. | |
10418 | (the_low_target): Add new members. | |
10419 | * linux-i386-low.c (i386_store_gregset, i386_store_fpregset) | |
10420 | (i386_store_fpxregset): Constify. | |
10421 | (target_regsets): Add new kind identifier. | |
10422 | (i386_get_pc): Renamed from i386_stop_pc. Simplify. | |
10423 | (i386_set_pc): Add debugging. | |
10424 | (i386_breakpoint_at): New function. | |
10425 | (the_low_target): Add new members. | |
10426 | * linux-mips-low.c (mips_get_pc, mips_set_pc) | |
10427 | (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr) | |
10428 | (mips_breakpoint_at): New. | |
10429 | (the_low_target): Add new members. | |
10430 | * linux-ppc-low.c (ppc_get_pc, ppc_set_pc) | |
10431 | (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New. | |
10432 | (the_low_target): Add new members. | |
10433 | * linux-sh-low.c (sh_get_pc, sh_set_pc) | |
10434 | (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New. | |
10435 | (the_low_target): Add new members. | |
10436 | * linux-x86-64-low.c (target_regsets): Add new kind | |
10437 | identifier. | |
10438 | ||
10439 | 2002-05-15 Daniel Jacobowitz <drow@mvista.com> | |
10440 | ||
10441 | From Martin Pool <mbp@samba.org>: | |
10442 | * server.c (gdbserver_usage): New function. | |
10443 | (main): Call it. | |
10444 | ||
10445 | 2002-05-14 Daniel Jacobowitz <drow@mvista.com> | |
10446 | ||
10447 | * mem-break.c (reinsert_breakpoint_by_bp): Correct typo | |
10448 | stop_at -> stop_pc. | |
10449 | ||
10450 | 2002-05-04 Andrew Cagney <ac131313@redhat.com> | |
10451 | ||
10452 | * Makefile.in: Remove obsolete code. | |
10453 | ||
10454 | 2002-04-24 Michal Ludvig <mludvig@suse.cz> | |
10455 | ||
10456 | * linux-low.c (regsets_fetch_inferior_registers), | |
10457 | (regsets_store_inferior_registers): Removed cast to int from | |
10458 | ptrace() calls. | |
10459 | * regcache.h: Added declaration of struct inferior_info. | |
10460 | ||
10461 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> | |
10462 | ||
10463 | * inferiors.c (struct inferior_info): Add regcache_data. | |
10464 | (add_inferior): Call create_register_cache. | |
10465 | (clear_inferiors): Call free_register_cache. | |
10466 | (inferior_regcache_data, set_inferior_regcache_data): New functions. | |
10467 | * regcache.c (struct inferior_regcache_data): New. | |
10468 | (registers): Remove. | |
10469 | (get_regcache): New function. | |
10470 | (create_register_cache, free_register_cache): New functions. | |
10471 | (set_register_cache): Don't initialize the register cache here. | |
10472 | (registers_to_string, registers_from_string, register_data): Call | |
10473 | get_regcache. | |
10474 | * regcache.h: Add prototypes. | |
10475 | * server.h: Likewise. | |
10476 | ||
10477 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> | |
10478 | ||
10479 | * mem-break.c: New file. | |
10480 | * mem-break.h: New file. | |
10481 | * Makefile.in: Add mem-break.o rule; update server.h | |
10482 | dependencies. | |
10483 | * inferiors.c (struct inferior_info): Add target_data | |
10484 | member. | |
10485 | (clear_inferiors): Free target_data member if set. | |
10486 | (inferior_target_data, set_inferior_target_data): New functions. | |
10487 | * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len) | |
10488 | (i386_stop_pc, i386_set_pc): New. Add to the_low_target. | |
10489 | * linux-low.c (linux_bp_reinsert): New variable. | |
10490 | (struct inferior_linux_data): New. | |
10491 | (linux_create_inferior): Use set_inferior_target_data. | |
10492 | (linux_attach): Likewise. Call add_inferior. | |
10493 | (linux_wait_for_one_inferior): New function. | |
10494 | (linux_wait): Call it. | |
10495 | (linux_write_memory): Add const. | |
10496 | (initialize_low): Call set_breakpoint_data. | |
10497 | * linux-low.h (struct linux_target_ops): Add breakpoint | |
10498 | handling members. | |
10499 | * server.c (attach_inferior): Remove extra add_inferior | |
10500 | call. | |
10501 | * server.h: Include mem-break.h. Update inferior.c | |
10502 | prototypes. | |
10503 | * target.c (read_inferior_memory) | |
10504 | (write_inferior_memory): New functions. | |
10505 | * target.h (read_inferior_memory) | |
10506 | (write_inferior_memory): Change macros to prototypes. | |
10507 | (struct target_ops): Update comments. Add const to write_memory | |
10508 | definition. | |
10509 | ||
10510 | 2002-04-11 Daniel Jacobowitz <drow@mvista.com> | |
10511 | ||
10512 | * linux-low.c (usr_store_inferior_registers): Support | |
10513 | registers which are allowed to fail to store. | |
10514 | * linux-low.h (linux_target_ops): Likewise. | |
10515 | * linux-ppc-low.c (ppc_regmap): Support FPSCR. | |
10516 | (ppc_cannot_store_register): FPSCR may not be storable. | |
10517 | ||
10518 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
10519 | ||
10520 | * server.h: Include <string.h> if HAVE_STRING_H. | |
10521 | * ChangeLog: Correct paths in last ChangeLog entry. | |
10522 | ||
10523 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
10524 | ||
10525 | * linux-low.h: Remove obsolete prototypes. | |
10526 | (struct linux_target_ops): New. | |
10527 | (extern the_low_target): New. | |
10528 | * linux-low.c (num_regs, regmap): Remove declarations. | |
10529 | (register_addr): Use the_low_target explicitly. | |
10530 | (fetch_register): Likewise. | |
10531 | (usr_fetch_inferior_registers): Likewise. | |
10532 | (usr_store_inferior_registers): Likewise. | |
10533 | * linux-arm-low.c (num_regs): Remove. | |
10534 | (arm_num_regs): Define. | |
10535 | (arm_regmap): Renamed from regmap, made static. | |
10536 | (arm_cannot_fetch_register): Renamed from cannot_fetch_register, | |
10537 | made static. | |
10538 | (arm_cannot_store_register): Renamed from cannot_store_register, | |
10539 | made static. | |
10540 | (the_low_target): New. | |
10541 | * linux-i386-low.c (num_regs): Remove. | |
10542 | (i386_num_regs): Define. | |
10543 | (i386_regmap): Renamed from regmap, made static. | |
10544 | (i386_cannot_fetch_register): Renamed from cannot_fetch_register, | |
10545 | made static. | |
10546 | (i386_cannot_store_register): Renamed from cannot_store_register, | |
10547 | made static. | |
10548 | (the_low_target): New. | |
10549 | * linux-ia64-low.c (num_regs): Remove. | |
10550 | (ia64_num_regs): Define. | |
10551 | (ia64_regmap): Renamed from regmap, made static. | |
10552 | (ia64_cannot_fetch_register): Renamed from cannot_fetch_register, | |
10553 | made static. | |
10554 | (ia64_cannot_store_register): Renamed from cannot_store_register, | |
10555 | made static. | |
10556 | (the_low_target): New. | |
10557 | * linux-m68k-low.c (num_regs): Remove. | |
10558 | (m68k_num_regs): Define. | |
10559 | (m68k_regmap): Renamed from regmap, made static. | |
10560 | (m68k_cannot_fetch_register): Renamed from cannot_fetch_register, | |
10561 | made static. | |
10562 | (m68k_cannot_store_register): Renamed from cannot_store_register, | |
10563 | made static. | |
10564 | (the_low_target): New. | |
10565 | * linux-mips-low.c (num_regs): Remove. | |
10566 | (mips_num_regs): Define. | |
10567 | (mips_regmap): Renamed from regmap, made static. | |
10568 | (mips_cannot_fetch_register): Renamed from cannot_fetch_register, | |
10569 | made static. | |
10570 | (mips_cannot_store_register): Renamed from cannot_store_register, | |
10571 | made static. | |
10572 | (the_low_target): New. | |
10573 | * linux-ppc-low.c (num_regs): Remove. | |
10574 | (ppc_num_regs): Define. | |
10575 | (ppc_regmap): Renamed from regmap, made static. | |
10576 | (ppc_cannot_fetch_register): Renamed from cannot_fetch_register, | |
10577 | made static. | |
10578 | (ppc_cannot_store_register): Renamed from cannot_store_register, | |
10579 | made static. | |
10580 | (the_low_target): New. | |
10581 | * linux-s390-low.c (num_regs): Remove. | |
10582 | (s390_num_regs): Define. | |
10583 | (s390_regmap): Renamed from regmap, made static. | |
10584 | (s390_cannot_fetch_register): Renamed from cannot_fetch_register, | |
10585 | made static. | |
10586 | (s390_cannot_store_register): Renamed from cannot_store_register, | |
10587 | made static. | |
10588 | (the_low_target): New. | |
10589 | * linux-sh-low.c (num_regs): Remove. | |
10590 | (sh_num_regs): Define. | |
10591 | (sh_regmap): Renamed from regmap, made static. | |
10592 | (sh_cannot_fetch_register): Renamed from cannot_fetch_register, | |
10593 | made static. | |
10594 | (sh_cannot_store_register): Renamed from cannot_store_register, | |
10595 | made static. | |
10596 | (the_low_target): New. | |
10597 | * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap. | |
10598 | (the_low_target): New. | |
10599 | ||
10600 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
10601 | ||
10602 | * Makefile.in: Add stamp-h target. | |
10603 | * configure.in: Create stamp-h. | |
10604 | * configure: Regenerated. | |
10605 | ||
10606 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
10607 | ||
10608 | * inferiors.c: New file. | |
10609 | * target.c: New file. | |
10610 | * target.h: New file. | |
10611 | * Makefile.in: Add target.o and inferiors.o. Update | |
10612 | dependencies. | |
10613 | * linux-low.c (inferior_pid): New static variable, | |
10614 | moved from server.c. | |
10615 | (linux_create_inferior): Renamed from create_inferior. | |
10616 | Call add_inferior. Return 0 on success instead of a PID. | |
10617 | (linux_attach): Renamed from myattach. | |
10618 | (linux_kill): Renamed from kill_inferior. Call clear_inferiors (). | |
10619 | (linux_thread_alive): Renamed from mythread_alive. | |
10620 | (linux_wait): Renamed from mywait. Call clear_inferiors () if the | |
10621 | child dies. | |
10622 | (linux_resume): Renamed from myresume. Add missing ``return 0''. | |
10623 | (regsets_store_inferior_registers): Correct error message. | |
10624 | Add missing ``return 0''. | |
10625 | (linux_fetch_registers): Renamed from fetch_inferior_registers. | |
10626 | (linux_store_registers): Renamed from store_inferior_registers. | |
10627 | (linux_read_memory): Renamed from read_inferior_memory. | |
10628 | (linux_write_memory): Renamed from write_inferior_memory. | |
10629 | (linux_target_ops): New structure. | |
10630 | (initialize_low): Call set_target_ops (). | |
10631 | * remote-utils.c (unhexify): New function. | |
10632 | (hexify): New function. | |
10633 | (input_interrupt): Send signals to ``signal_pid''. | |
10634 | * server.c (inferior_pid): Remove. | |
10635 | (start_inferior): Update create_inferior call. | |
10636 | (attach_inferior): Call add_inferior. | |
10637 | (handle_query): New function. | |
10638 | (main): Call handle_query for `q' packets. | |
10639 | * server.h: Include "target.h". Remove obsolete prototypes. | |
10640 | Add prototypes for "inferiors.c", "target.c", hexify, and unhexify. | |
10641 | ||
10642 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
10643 | ||
10644 | * Makefile.in: Add WARN_CFLAGS. Update configury | |
10645 | dependencies. | |
10646 | * configure.in: Check for <string.h> | |
10647 | * configure: Regenerate. | |
10648 | * config.in: Regenerate. | |
10649 | * gdbreplay.c: Include needed system headers. | |
10650 | (remote_open): Remove strchr prototype. | |
10651 | * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS. | |
10652 | * regcache.c (supply_register): Change buf argument to const void *. | |
10653 | (supply_register_by_name): Likewise. | |
10654 | (collect_register): Change buf argument to void *. | |
10655 | (collect_register_by_name): Likewise. | |
10656 | * regcache.h: Add missing prototypes. | |
10657 | * remote-utils.c: Include <arpa/inet.h> for inet_ntoa. | |
10658 | * server.c (handle_query): New function. | |
10659 | (attached): New static variable, moved out of main. | |
10660 | (main): Quiet longjmp clobber warnings. | |
10661 | * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes. | |
10662 | * utils.c (error): Remove NORETURN. | |
10663 | (fatal): Likewise. |