]>
Commit | Line | Data |
---|---|---|
d763de10 JB |
1 | 2014-02-26 Joel Brobecker <brobecker@adacore.com> |
2 | ||
3 | * win32-low.c (psapi_get_dll_name, | |
4 | * win32_CreateToolhelp32Snapshot): Delete. | |
5 | (win32_CreateToolhelp32Snapshot, win32_Module32First) | |
6 | (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name): | |
7 | Delete. | |
8 | (handle_load_dll): Add function description. | |
9 | Remove code using psapi_get_dll_name and toolhelp_get_dll_name. | |
10 | ||
850a0f76 JB |
11 | 2014-02-26 Joel Brobecker <brobecker@adacore.com> |
12 | ||
13 | * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr. | |
14 | Add comment. | |
15 | (win32_add_all_dlls): Remove 0x1000 offset applied to DLL | |
16 | base address when calling win32_add_one_solib. | |
17 | (handle_load_dll): Delete local variable load_addr. | |
18 | Remove 0x1000 offset applied to DLL base address when calling | |
19 | win32_add_one_solib. | |
20 | (handle_unload_dll): Add comment. | |
21 | ||
f25b3fc3 JB |
22 | 2014-02-26 Joel Brobecker <brobecker@adacore.com> |
23 | ||
24 | * win32-low.c (win32_add_all_dlls): Renames | |
25 | win32_ensure_ntdll_loaded. Rewrite function documentation. | |
26 | Adjust implementation to always load all DLLs. | |
27 | Add 0x1000 offset to DLL base address when calling | |
28 | win32_add_one_solib. | |
29 | (child_initialization_done): New static global. | |
30 | (do_initial_child_stuff): Set child_initialization_done to | |
31 | zero during child initialization, and 1 after. Replace call | |
32 | to win32_ensure_ntdll_loaded by call to win32_add_all_dlls. | |
33 | Add comment. | |
34 | (match_dll_by_basename, dll_is_loaded_by_basename): Delete. | |
35 | (handle_unload_dll): Add function documentation. | |
36 | (get_child_debug_event): Ignore load and unload DLL events | |
37 | during child initialization. | |
38 | ||
d86d4aaf DE |
39 | 2014-02-20 Doug Evans <dje@google.com> |
40 | ||
3bc32da3 | 41 | Remove global all_lwps. |
d86d4aaf DE |
42 | * inferiors.h (ptid_of): Move here from linux-low.h. |
43 | (pid_of, lwpid_of): Ditto. | |
44 | * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry" | |
45 | parameter is a struct thread_info * now. | |
46 | (aarch64_notify_debug_reg_change): Fetch pid from current_inferior | |
47 | directly. Pass &all_threads to find_inferior instead of &all_lwps. | |
48 | (aarch64_stopped_data_address): Fetch lwpid from current_inferior | |
49 | directly. | |
50 | (aarch64_linux_prepare_to_resume): Fetch ptid from thread. | |
51 | (aarch64_arch_setup): Fetch lwpid from current_inferior directly. | |
52 | * linux-arm-low.c (update_registers_callback): Update, "entry" | |
53 | parameter is a struct thread_info * now. | |
54 | Fetch lwpid from current_inferior directly. | |
55 | (arm_insert_point): Pass &all_threads to find_inferior instead of | |
56 | &all_lwps. | |
57 | (arm_remove_point): Ditto. | |
58 | (arm_stopped_by_watchpoint): Fetch lwp from current_inferior. | |
59 | (arm_prepare_to_resume): Fetch pid from thread. | |
60 | (arm_read_description): Fetch lwpid from current_inferior directly. | |
61 | * linux-low.c (all_lwps): Delete. | |
62 | (delete_lwp): Delete call to remove_inferior. | |
63 | (handle_extended_wait): Fetch lwpid from thread. | |
64 | (add_lwp): Don't set lwp->entry.id. Remove call to | |
65 | add_inferior_to_list. | |
66 | (linux_attach_lwp_1): Fetch pid from current_inferior directly. | |
67 | (linux_kill_one_lwp): Fetch ptid,lwpid from thread. | |
68 | (kill_one_lwp_callback): Ditto. | |
69 | (linux_kill): Don't dereference NULL pointer. | |
70 | Fetch ptid,lwpid from thread. | |
71 | (get_detach_signal): Fetch ptid from thread. | |
72 | (linux_detach_one_lwp): Fetch ptid,lwpid from thread. | |
73 | Simplify call to regcache_invalidate_thread. | |
74 | (delete_lwp_callback): Update, "entry" parameter is a | |
75 | struct thread_info * now. Fetch pid from thread. | |
76 | (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps. | |
77 | (status_pending_p_callback): Update, "entry" parameter is a | |
78 | struct thread_info * now. Fetch ptid from thread. | |
79 | (find_lwp_pid): Update, "entry" parameter is a | |
80 | struct thread_info * now. | |
81 | (linux_wait_for_lwp): Fetch pid from thread. | |
82 | (linux_fast_tracepoint_collecting): Fetch lwpid from thread. | |
83 | (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior. | |
84 | (enqueue_one_deferred_signal): Fetch lwpid from thread. | |
85 | (dequeue_one_deferred_signal): Ditto. | |
86 | (cancel_breakpoint): Fetch ptid from current_inferior. | |
87 | (linux_wait_for_event): Pass &all_threads to find_inferior, | |
88 | not &all_lwps. Fetch ptid, lwpid from thread. | |
89 | (count_events_callback): Update, "entry" parameter is a | |
90 | struct thread_info * now. | |
91 | (select_singlestep_lwp_callback): Ditto. | |
92 | (select_event_lwp_callback): Ditto. | |
93 | (cancel_breakpoints_callback): Ditto. | |
94 | (linux_cancel_breakpoints): Pass &all_threads to find_inferior, | |
95 | not &all_lwps. | |
96 | (select_event_lwp): Ditto. Fetch ptid from event_thread. | |
97 | (unsuspend_one_lwp): Update, "entry" parameter is a | |
98 | struct thread_info * now. | |
99 | (unsuspend_all_lwps): Pass &all_threads to find_inferior, | |
100 | not &all_lwps. | |
101 | (linux_stabilize_threads): Ditto. And for for_each_inferior. | |
102 | Fetch lwpid from thread, not lwp. | |
103 | (linux_wait_1): Fetch ptid, lwpid from current_inferior. | |
104 | Pass &all_threads to find_inferior, not &all_lwps. | |
105 | (send_sigstop): Fetch lwpid from thread, not lwp. | |
106 | (send_sigstop_callback): Update, "entry" parameter is a | |
107 | struct thread_info * now. | |
108 | (suspend_and_send_sigstop_callback): Ditto. | |
109 | (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp. | |
110 | (stuck_in_jump_pad_callback): Update, "entry" parameter is a | |
111 | struct thread_info * now. | |
112 | (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid | |
113 | from thread, lwp. | |
114 | (lwp_running): Update, "entry" parameter is a | |
115 | struct thread_info * now. | |
116 | (stop_all_lwps): Fetch ptid from thread. | |
117 | Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps. | |
118 | (linux_resume_one_lwp): Fetch lwpid from thread. | |
119 | (linux_set_resume_request): Update, "entry" parameter is a | |
120 | struct thread_info * now. Fetch pid, lwpid from thread. | |
121 | (resume_status_pending_p): Update, "entry" parameter is a | |
122 | struct thread_info * now. | |
123 | (need_step_over_p): Ditto. Fetch lwpid from thread. | |
124 | (start_step_over): Fetch lwpid from thread. | |
125 | (linux_resume_one_thread): Update, "entry" parameter is a | |
126 | struct thread_info * now. Fetch lwpid from thread. | |
127 | (linux_resume): Pass &all_threads to find_inferior, not &all_lwps. | |
128 | (proceed_one_lwp): Update, "entry" parameter is a | |
129 | struct thread_info * now. Fetch lwpid from thread. | |
130 | (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a | |
131 | struct thread_info * now. | |
132 | (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps. | |
133 | (unstop_all_lwps): Ditto. Fetch lwpid from thread. | |
134 | (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior | |
135 | directly. | |
136 | (regsets_store_inferior_registers): Ditto. | |
137 | (fetch_register, store_register): Ditto. | |
138 | (linux_read_memory, linux_write_memory): Ditto. | |
139 | (linux_request_interrupt): Ditto. | |
140 | (linux_read_auxv): Ditto. | |
141 | (linux_xfer_siginfo): Ditto. | |
142 | (linux_qxfer_spu): Ditto. | |
143 | (linux_qxfer_libraries_svr4): Ditto. | |
144 | * linux-low.h (ptid_of, pid_of, lwpid_of): Delete, | |
145 | moved to inferiors.h. | |
146 | (get_lwp): Delete. | |
147 | (get_thread_lwp): Update. | |
148 | (struct lwp_info): Delete member "entry". Simplify comment for | |
149 | member "thread". | |
150 | (all_lwps): Delete. | |
151 | * linux-mips-low.c (mips_read_description): Fetch lwpid from | |
152 | current_inferior directly. | |
153 | (update_watch_registers_callback): Update, "entry" parameter is a | |
154 | struct thread_info * now. Fetch pid from thread. | |
155 | (mips_linux_prepare_to_resume): Fetch ptid from thread. | |
156 | (mips_insert_point): Fetch lwpid from current_inferior. | |
157 | Pass &all_threads to find_inferior, not &all_lwps. | |
158 | (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps. | |
159 | (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior | |
160 | directly. | |
161 | (mips_stopped_data_address): Ditto. | |
162 | * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior | |
163 | directly. | |
164 | * linux-tile-low.c (tile_arch_setup): Ditto. | |
165 | * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread. | |
166 | (update_debug_registers_callback): Update, "entry" parameter is a | |
167 | struct thread_info * now. Fetch pid from thread. | |
168 | (i386_dr_low_set_addr): Fetch pid from current_inferior directly. | |
169 | Pass &all_threads to find_inferior, not &all_lwps. | |
170 | (i386_dr_low_get_addr): Fetch ptid from current_inferior directly. | |
171 | (i386_dr_low_set_control): Fetch pid from current_inferior directly. | |
172 | Pass &all_threads to find_inferior, not &all_lwps. | |
173 | (i386_dr_low_get_control): Fetch ptid from current_inferior directly. | |
174 | (i386_dr_low_get_status): Ditto. | |
175 | (x86_linux_prepare_to_resume): Fetch ptid from thread. | |
176 | (x86_siginfo_fixup): Fetch lwpid from current_inferior directly. | |
177 | (x86_linux_read_description): Ditto. | |
178 | * proc-service.c (ps_getpid): Fetch pid from current_inferior directly. | |
179 | ||
3b8361aa DE |
180 | 2014-02-20 Doug Evans <dje@google.com> |
181 | ||
182 | * inferiors.c (get_first_inferior): Fix buglet. | |
183 | ||
f7667f0d DE |
184 | 2014-02-19 Doug Evans <dje@google.com> |
185 | ||
186 | * gdbthread.h (add_thread): Change result type to struct thread_info *. | |
187 | * inferiors.c (add_thread): Change result type to struct thread_info *. | |
188 | All callers updated. | |
189 | (add_lwp): Call add_thread here instead of in callers. | |
190 | All callers updated. | |
191 | * linux-low.h (get_lwp_thread): Rewrite. | |
192 | (struct lwp_info): New member "thread". | |
193 | ||
b3312d80 DE |
194 | 2014-02-19 Doug Evans <dje@google.com> |
195 | ||
196 | * linux-low.c (add_lwp): Change result to struct lwp_info *. | |
197 | All callers updated. | |
198 | ||
ecc6f45c DE |
199 | 2014-02-19 Doug Evans <dje@google.com> |
200 | ||
201 | * inferiors.c (add_thread): Fix whitespace. | |
202 | ||
649ebbca DE |
203 | 2014-02-19 Doug Evans <dje@google.com> |
204 | ||
205 | * dll.c (clear_dlls): Replace accessing list implemention details | |
206 | with API function. | |
207 | * gdbthread.h (get_first_thread): Declare. | |
208 | * inferiors.c (for_each_inferior_with_data): New function. | |
209 | (get_first_thread): New function. | |
210 | (find_thread_ptid): Simplify. | |
211 | (get_first_inferior): New function. | |
212 | (clear_list): Delete. | |
213 | (one_inferior_p): New function. | |
214 | (clear_inferior_list): New function. | |
215 | (clear_inferiors): Update. | |
216 | * inferiors.h (for_each_inferior_with_data): Declare. | |
217 | (clear_inferior_list): Declare. | |
218 | (one_inferior_p): Declare. | |
219 | (get_first_inferior): Declare. | |
220 | * linux-low.c (linux_wait_for_event): Replace accessing list | |
221 | implemention details with API function. | |
222 | * server.c (target_running): Ditto. | |
223 | (accumulate_file_name_length): New function. | |
224 | (emit_dll_description): New function. | |
225 | (handle_qxfer_libraries): Replace accessing list implemention | |
226 | details with API function. | |
227 | (handle_qxfer_threads_worker): New function. | |
228 | (handle_qxfer_threads_proper): Replace accessing list implemention | |
229 | details with API function. | |
230 | (handle_query): Ditto. | |
231 | (visit_actioned_threads_callback_ftype): New typedef. | |
232 | (visit_actioned_threads_data): New struct. | |
233 | (visit_actioned_threads): Rewrite to be find_inferior callback. | |
234 | (resume): Call find_inferior. | |
235 | (handle_status): Replace accessing list implemention | |
236 | details with API function. | |
237 | (process_serial_event): Replace accessing list implemention details | |
238 | with API function. | |
239 | * target.c (set_desired_inferior): Replace accessing list implemention | |
240 | details with API function. | |
241 | * tracepoint.c (same_process_p): New function. | |
242 | (gdb_agent_about_to_close): Replace accessing list implemention | |
243 | details with API function. | |
244 | * win32-low.c (child_delete_thread): Replace accessing list | |
245 | implemention details with API function. | |
246 | (match_dll_by_basename): New function. | |
247 | (dll_is_loaded_by_basename): New function. | |
248 | (win32_ensure_ntdll_loaded): Replace accessing list implemention | |
249 | details call to dll_is_loaded_by_basename. | |
250 | ||
80894984 DE |
251 | 2014-02-19 Doug Evans <dje@google.com> |
252 | ||
253 | * dll.h (struct dll_info): Add comment. | |
254 | * gdbthread.h (struct thread_info): Add comment. | |
255 | (current_ptid): Simplify. | |
256 | * inferiors.c (add_process): Update. | |
257 | (remove_process): Update. | |
258 | * inferiors.h (struct process_info): Rename member "head" to "entry". | |
259 | * linux-low.c (delete_lwp): Update. | |
260 | (add_lwp): Update. | |
261 | (last_thread_of_process_p): Update. | |
262 | (kill_one_lwp_callback, linux_kill): Update. | |
263 | (status_pending_p_callback): Update. | |
264 | (wait_for_sigstop): Update. Simplify read of ptid. | |
265 | (start_step_over): Update. | |
266 | * linux-low.h (ptid_of, pid_of, lwpid_of): Update. | |
267 | (get_lwp_thread): Update. | |
268 | (struct lwp_info): Rename member "head" to "entry". | |
269 | * regcache.h (inferior_list_entry): Delete. | |
270 | * server.c (kill_inferior_callback): Update. | |
271 | (detach_or_kill_inferior_callback): Update. | |
272 | (print_started_pid): Update. | |
273 | (print_attached_pid): Update. | |
274 | (process_serial_event): Simplify read of ptid. | |
275 | * thread-db.c (thread_db_create_event): Update. | |
276 | (thread_db_get_tls_address): Update. | |
277 | * win32-low.c (current_inferior_ptid): Simplify. | |
278 | ||
46917d26 TT |
279 | 2014-02-19 Tom Tromey <tromey@redhat.com> |
280 | ||
281 | * target.h (struct target_ops) <supports_btrace>: Add target_ops | |
282 | argument. | |
283 | (target_supports_btrace): Update. | |
284 | ||
0759a81e YQ |
285 | 2014-02-14 Yao Qi <yao@codesourcery.com> |
286 | ||
287 | * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o. | |
288 | (rsp-low-ipa.o): New target. | |
289 | ||
a7191e8b TT |
290 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
291 | ||
292 | * ax.c (gdb_parse_agent_expr): Use hex2bin, not | |
293 | convert_ascii_to_int. | |
294 | * regcache.c (registers_to_string): Likewise. | |
295 | * remote-utils.c (decode_M_packet): Likewise. | |
296 | * server.c (process_serial_event): Likewise. | |
297 | ||
ff0e980e TT |
298 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
299 | ||
300 | * server.c (handle_query, handle_v_run): Use hex2bin, not | |
301 | unhexify. | |
302 | * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise. | |
303 | ||
e9371aff TT |
304 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
305 | ||
306 | * ax.c (gdb_unparse_agent_expr): Use bin2hex, not | |
307 | convert_int_to_ascii. | |
308 | * regcache.c (registers_to_string, collect_register_as_string): | |
309 | Likewise. | |
310 | * remote-utils.c (look_up_one_symbol, relocate_instruction): | |
311 | Likewise. | |
312 | * server.c (process_serial_event): Likewise. | |
313 | * tracepoint.c (cmd_qtstatus, response_source, response_tsv) | |
314 | (cmd_qtbuffer, cstr_to_hexstr): Likewise. | |
315 | ||
971dc0b8 TT |
316 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
317 | ||
318 | * remote-utils.c (look_up_one_symbol, monitor_output): Use | |
319 | bin2hex, not hexify. | |
320 | * tracepoint.c (cmd_qtstatus): Likewise. | |
321 | ||
0a822afb TT |
322 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
323 | ||
324 | * remote-utils.c (monitor_output): Pass explicit length to | |
325 | hexify. | |
326 | ||
9c3d6531 TT |
327 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
328 | ||
329 | * tracepoint.c: Include rsp-low.h. | |
330 | * server.c: Include rsp-low.h. | |
331 | * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii) | |
332 | (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't | |
333 | declare. | |
334 | * remote-utils.c: Include rsp-low.h. | |
335 | (fromhex, hexchars, ishex, unhexify, tohex, hexify) | |
336 | (remote_escape_output, remote_unescape_input, unpack_varlen_hex) | |
337 | (convert_int_to_ascii, convert_ascii_to_int): Move to | |
338 | common/rsp-low.c. | |
339 | * regcache.c: Include rsp-low.h. | |
340 | * ax.c: Include rsp-low.h. | |
341 | * Makefile.in (SFILES): Add common/rsp-low.c. | |
342 | (OBS): Add rsp-low.o. | |
343 | (rsp-low.o): New target. | |
344 | ||
01fd3ea5 TT |
345 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
346 | ||
347 | * utils.h (pulongest, plongest, phex_nz): Don't declare. | |
348 | Include print-utils.h. | |
349 | * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest) | |
350 | (plongest, thirty_two, phex_nz): Remove. | |
351 | * Makefile.in (SFILES): Add common/print-utils.c. | |
352 | (OBS): Add print-utils.o. | |
353 | (print-utils-ipa.o): New target. | |
354 | (print-utils.o): New target. | |
355 | (IPA_OBJS): Add print-utils-ipa.o. | |
356 | ||
e99dc820 TT |
357 | 2014-02-06 Tom Tromey <tromey@redhat.com> |
358 | ||
359 | * Makefile.in (SFILES): Fix indentation. | |
360 | ||
ee1e2d4f DE |
361 | 2014-02-05 Doug Evans <dje@google.com> |
362 | ||
363 | * linux-low.c (linux_wait_for_event): Improve comment. | |
364 | (linux_wait_1): Keep current_inferior in sync with event_child. | |
365 | ||
f5a02773 DE |
366 | 2014-01-22 Doug Evans <dje@google.com> |
367 | ||
368 | * gdbthread.h (gdb_id_to_thread): Delete, unused. | |
369 | ||
87ce2a04 DE |
370 | 2014-01-22 Doug Evans <dje@google.com> |
371 | ||
372 | * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday. | |
373 | * configure: Regenerate. | |
374 | * config.in: Regenerate. | |
375 | * Makefile.in (SFILES): Add debug.c. | |
376 | (OBS): Add debug.o. | |
377 | * debug.c: New file. | |
378 | * debug.h: New file. | |
379 | * linux-aarch64-low.c (*): Update all debugging printfs to use | |
380 | debug_printf instead of fprintf. | |
381 | * linux-arm-low.c (*): Ditto. | |
382 | * linux-cris-low.c (*): Ditto. | |
383 | * linux-crisv32-low.c (*): Ditto. | |
384 | * linux-m32r-low.c (*): Ditto. | |
385 | * linux-sparc-low.c (*): Ditto. | |
386 | * linux-x86.c (*): Ditto. | |
387 | * linux-low.c (*): Ditto. | |
388 | (linux_wait_1): Add calls to debug_enter, debug_exit. | |
389 | (linux_wait): Remove redundant debugging printf. | |
390 | (stop_all_lwps): Add calls to debug_enter, debug_exit. | |
391 | (linux_resume, unstop_all_lwps): Ditto. | |
392 | * mem-break.c (*): Update all debugging printfs to use | |
393 | debug_printf instead of fprintf. | |
394 | * remote-utils.c (*): Ditto. | |
395 | * thread-db.c (*): Ditto. | |
396 | * server.c #include <ctype.h>, "gdb_vecs.h". | |
397 | (debug_threads): Moved to debug.c. | |
398 | (*): Update all debugging printfs to use debug_printf instead of | |
399 | fprintf. | |
400 | (start_inferior): Replace call to fflush with call to debug_flush. | |
401 | (monitor_show_help): Mention set debug-format. | |
402 | (parse_debug_format_options): New function. | |
403 | (handle_monitor_command): Handle "monitor set debug-format". | |
404 | (gdbserver_usage): Mention --debug-format. | |
405 | (main): Parse --debug-format. | |
406 | * server.h (debug_threads): Declaration moved to debug.h. | |
407 | #include "debug.h". | |
408 | * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of | |
409 | trace_debug_1 that uses debug_printf. | |
410 | (tracepoint_look_up_symbols): Update all debugging printfs to use | |
411 | debug_printf instead of fprintf. | |
412 | ||
e671835b BS |
413 | 2014-01-20 Baruch Siach <baruch@tkos.co.il> |
414 | ||
415 | * linux-xtensa-low.c: Include asm/ptrace.h instead of | |
416 | sys/ptrace.h. | |
417 | ||
b5737fa9 PA |
418 | 2014-01-17 Pedro Alves <palves@redhat.com> |
419 | ||
ea38d2a9 | 420 | PR build/16445 |
c7faa97a PA |
421 | * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is |
422 | defined after including gdb_proc_service.h. | |
b5737fa9 | 423 | |
40ed484e DE |
424 | 2014-01-16 Doug Evans <dje@google.com> |
425 | ||
426 | * dll.c (UNSPECIFIED_CORE_ADDR): New macro. | |
427 | (match_dll): Use it. | |
428 | ||
969c39fb MM |
429 | 2014-01-16 Markus Metzger <markus.t.metzger@intel.com> |
430 | ||
431 | * target.h (target_ops) <read_btrace>: Change parameters and | |
432 | return type to allow error reporting. | |
433 | * server.c (handle_qxfer_btrace): Support delta reads. Pass | |
434 | trace reading errors on. | |
435 | * linux-low.c (linux_low_read_btrace): Pass trace reading | |
436 | errors on. | |
437 | (linux_low_disable_btrace): New. | |
438 | ||
ab7f45ba DE |
439 | 2014-01-15 Doug Evans <dje@google.com> |
440 | ||
441 | * inferiors.c (thread_id_to_gdb_id): Delete. | |
442 | * inferiors.h (thread_id_to_gdb_id): Delete. | |
443 | ||
66af0f44 EZ |
444 | 2014-01-13 Eli Zaretskii <eliz@gnu.org> |
445 | ||
446 | * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from | |
447 | "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC | |
448 | versions. | |
449 | ||
9939e131 PA |
450 | 2014-01-08 Pedro Alves <palves@redhat.com> |
451 | ||
452 | * server.c (handle_status): Don't discard previous queued stop | |
453 | replies or thread's pending status here. | |
454 | (main) <disconnection>: Do it here instead. | |
455 | ||
b7ea362b PA |
456 | 2014-01-08 Pedro Alves <palves@redhat.com> |
457 | ||
458 | * gdbthread.h (struct thread_info) <status_pending_p>: New field. | |
459 | * server.c (visit_actioned_threads, handle_pending_status): New | |
460 | function. | |
461 | (handle_v_cont): Factor out parts to ... | |
462 | (resume): ... this new function. If in all-stop, and a thread | |
463 | being resumed has a pending status, report it without actually | |
464 | resuming. | |
465 | (myresume): Adjust to use the new 'resume' function. | |
466 | (clear_pending_status_callback, set_pending_status_callback) | |
467 | (find_status_pending_thread_callback): New functions. | |
468 | (handle_status): Handle the case of multiple threads having | |
469 | interesting statuses to report. Report threads' real last signal | |
470 | instead of always reporting GDB_SIGNAL_TRAP. Look for a thread | |
471 | with an interesting thread to report the status for, instead of | |
472 | always reporting the status of the first thread. | |
473 | ||
28498c42 JB |
474 | 2014-01-01 Joel Brobecker <brobecker@adacore.com> |
475 | ||
476 | * gdbserver.c (gdbserver_version): Set copyright year to 2014. | |
477 | * gdbreplay.c (gdbreplay_version): Likewise. | |
478 | ||
f45c82da YZ |
479 | 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com> |
480 | ||
481 | * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set | |
482 | iov.iov_len with the real length in use. | |
483 | ||
379a5e2d JB |
484 | 2013-12-13 Joel Brobecker <brobecker@adacore.com> |
485 | ||
486 | * Makefile.in (safe-ctype.o, lbasename.o): New rules. | |
487 | * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj | |
488 | for all targets that use win32-low.c. | |
489 | * win32-low.c (win32_ensure_ntdll_loaded): New function. | |
490 | (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded. | |
491 | ||
4210d83e PA |
492 | 2013-12-13 Pedro Alves <palves@redhat.com> |
493 | ||
494 | * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED | |
495 | if equal to TARGET_WAITKIND_LOADED. | |
496 | * win32-low.c (cached_status): New static global. | |
497 | (win32_wait): Add declaration. | |
498 | (do_initial_child_stuff): Flush all initial pending debug events | |
499 | up to the initial breakpoint. | |
500 | (win32_wait): If CACHED_STATUS was set, return that instead | |
501 | of doing a real wait. Remove the code resuming the execution | |
502 | of the inferior after receiving a TARGET_WAITKIND_LOADED event | |
503 | during the initial phase. Also remove the code changing | |
504 | OURSTATUS->KIND from TARGET_WAITKIND_LOADED to | |
505 | TARGET_WAITKIND_STOPPED. | |
506 | ||
e7f0d979 YQ |
507 | 2013-12-11 Yao Qi <yao@codesourcery.com> |
508 | ||
509 | * notif.c (handle_notif_ack): Return 0 if no notification | |
510 | matches. | |
511 | ||
ebcf782c DE |
512 | 2013-11-20 Doug Evans <dje@google.com> |
513 | ||
514 | * linux-low.c (linux_set_resume_request): Fix comment. | |
515 | ||
20ad9378 DE |
516 | 2013-11-20 Doug Evans <dje@google.com> |
517 | ||
518 | * linux-low.c (resume_status_pending_p): Tweak comment. | |
519 | ||
a196ebeb WT |
520 | 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com> |
521 | ||
522 | * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c, | |
523 | amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation. | |
524 | * configure.srv (srv_i386_regobj): Add i386-mpx.o. | |
525 | (srv_i386_linux_regobj): Add i386-mpx-linux.o. | |
526 | (srv_amd64_regobj): Add amd64-mpx.o. | |
527 | (srv_amd64_linux_regobj): Add amd64-mpx-linux.o. | |
528 | (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml. | |
529 | (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml. | |
530 | * i387-fp.c (num_pl_bnd_register) Added constant. | |
531 | (num_pl_bnd_cfg_registers) Added constant. | |
532 | (struct i387_xsave) Added reserved area and MPX fields. | |
533 | (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX. | |
534 | * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new | |
535 | function. | |
536 | (tdesc_i386_mpx_linux): Add MPX amd64 target. | |
537 | (init_registers_amd64_mpx_linux): Declare new function. | |
538 | (tdesc_amd64_mpx_linux): Add MPX amd64 target. | |
539 | (x86_64_regmap): Add MPX registers. | |
540 | (x86_linux_read_description): Add MPX case. | |
541 | (initialize_low_arch): Initialize MPX targets. | |
542 | ||
0080a2f6 TT |
543 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
544 | ||
545 | * configure: Rebuild. | |
546 | * configure.ac: Don't check for stdlib.h. | |
547 | * gdbreplay.c: Unconditionally include stdlib.h. | |
548 | ||
2978b111 TT |
549 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
550 | ||
551 | * config.in: Rebuild. | |
552 | * configure: Rebuild. | |
553 | * configure.ac: Don't use AC_HEADER_DIRENT. | |
554 | ||
a3d08894 TT |
555 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
556 | ||
557 | * server.h: Don't check HAVE_STRING_H. | |
558 | * gdbreplay.c: Don't check HAVE_STRING_H. | |
559 | * configure: Rebuild. | |
560 | ||
0a5dd17d TT |
561 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
562 | ||
563 | * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against | |
564 | LIBGNU. | |
565 | ||
1bd2f0ba TT |
566 | 2013-11-08 Tom Tromey <tromey@redhat.com> |
567 | ||
568 | * configure, config.in: Rebuild. | |
569 | * configure.ac: Remove unused configury. | |
570 | ||
3266f10b TT |
571 | 2013-11-08 Tom Tromey <tromey@redhat.com> |
572 | ||
573 | * acinclude.m4: Include common.m4, codeset.m4. | |
574 | * configure, config.in: Rebuild. | |
575 | * configure.ac: Use GDB_AC_COMMON. | |
576 | ||
6682d959 AA |
577 | 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com> |
578 | ||
579 | * linux-s390-low.c (HWCAP_S390_TE): New define. | |
580 | (s390_arch_setup): Consider the TE field in the HWCAP for | |
581 | determining 'have_regset_tdb'. | |
582 | ||
fd0a4d76 SDJ |
583 | 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com> |
584 | ||
585 | PR gdb/16014 | |
586 | * tracepoint.c (download_tracepoint_1): Remove unnecessary double | |
587 | call to sizeof. | |
588 | ||
1a3d890b PA |
589 | 2013-10-02 Pedro Alves <palves@redhat.com> |
590 | ||
591 | * server.c (process_serial_event): Don't output "GDBserver | |
592 | exiting" if GDB is connected through stdio. | |
593 | * target.c (mywait): Likewise, be silent if GDB is connected | |
594 | through stdio. | |
595 | ||
97ad4581 JB |
596 | 2013-10-01 Joel Brobecker <brobecker@adacore.com> |
597 | ||
598 | * lynx-low.c (lynx_add_threads_after_attach): New function. | |
599 | (lynx_attach): Remove call to add_thread. Add call to | |
600 | lynx_add_threads_after_attach instead. | |
601 | ||
5b4e221c MF |
602 | 2013-09-28 Mike Frysinger <vapier@gentoo.org> |
603 | ||
604 | * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h | |
605 | * config.in, configure: Regenerated. | |
606 | ||
ee47b2f8 YQ |
607 | 2013-09-18 Yao Qi <yao@codesourcery.com> |
608 | ||
609 | PR server/15959 | |
610 | * server.c (start_inferior): Clear 'resume_info'. | |
611 | ||
d6707650 | 612 | 2013-09-16 Jiong Wang <jiwang@tilera.com> |
0f63d4db | 613 | |
d6707650 JW |
614 | * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit |
615 | for each register. | |
616 | ||
9243dd0e | 617 | 2013-09-16 Jiong Wang <jiwang@tilera.com> |
0f63d4db | 618 | |
9243dd0e JW |
619 | * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add |
620 | linux-tile-low.o to srv_tgtobj. | |
621 | ||
c623a6ef WN |
622 | 2013-09-16 Will Newton <will.newton@linaro.org> |
623 | ||
624 | * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero | |
625 | out regs. | |
626 | ||
fb71d39e PA |
627 | 2013-09-06 Pedro Alves <palves@redhat.com> |
628 | ||
629 | * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h) | |
630 | (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h) | |
631 | (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h) | |
632 | (server_h, gdbthread_h, linux_low_h, linux_ptrace_h) | |
633 | (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h) | |
634 | (mips_linux_watch_h, i386_low_h, win32_low_h): Delete. | |
635 | ||
8e7e9910 PA |
636 | 2013-09-06 Pedro Alves <palves@redhat.com> |
637 | ||
638 | * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove | |
639 | explicit header dependencies and use $COMPILE/$POSTCOMPILE. | |
640 | ||
7c3a12ca PA |
641 | 2013-09-06 Pedro Alves <palves@redhat.com> |
642 | ||
643 | * linux-amd64-ipa.c: Include tracepoint.h. | |
644 | * linux-i386-ipa.c: Include tracepoint.h. | |
645 | ||
8eb3d7b6 RW |
646 | 2013-09-06 Ricard Wanderlof <ricardw@axis.com> |
647 | ||
648 | * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro. | |
649 | (ps_get_thread_area): New function. | |
650 | ||
eddddb9d RW |
651 | 2013-09-06 Ricard Wanderlof <ricardw@axis.com> |
652 | ||
653 | * linux-crisv32-low.c (elf_gregset_t): Delete typedef. | |
654 | (initialize_low_arch): Call init_registers_crisv32 rather than | |
655 | init_register_crisv32. | |
656 | ||
533b0600 PA |
657 | 2013-09-05 Pedro Alves <palves@redhat.com> |
658 | ||
659 | * server.h (handle_vFile, hostio_last_error_from_errno): Move | |
660 | to ... | |
661 | * hostio.h: ... this new file. | |
662 | * hostio.c, server.c, linux-low.c, nto-low.c, spu-low, | |
663 | win32-low.c: Include hostio.h. | |
664 | ||
0ce3d3b5 PA |
665 | 2013-09-05 Pedro Alves <palves@redhat.com> |
666 | ||
667 | * server.h (gdb_client_data, handler_func, callback_handler_func) | |
668 | (delete_file_handler, add_file_handler, append_callback_event) | |
669 | (delete_callback_event, start_event_loop, initialize_event_loop): | |
670 | Move to event-loop.h and include it. | |
671 | * event-loop.h: New file. | |
672 | ||
799cdc37 PA |
673 | 2013-09-05 Pedro Alves <palves@redhat.com> |
674 | ||
675 | * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h". | |
676 | * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls) | |
677 | (loaded_dll, unloaded_dll): Move to ... | |
678 | * dll.h: ... this new file. | |
679 | * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h". | |
680 | ||
6a6bbd9d PA |
681 | 2013-09-05 Pedro Alves <palves@redhat.com> |
682 | ||
683 | * server.h (current_process, get_thread_process, all_processes) | |
684 | (add_inferior_to_list, for_each_inferior, current_inferior) | |
685 | (remove_inferior, add_process, remove_process, find_process_pid) | |
686 | (have_started_inferiors_p, have_attached_inferiors_p) | |
687 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id) | |
688 | (clear_inferiors, find_inferior, find_inferior_id) | |
689 | (inferior_target_data, set_inferior_target_data) | |
690 | (inferior_regcache_data, set_inferior_regcache_data): Move to | |
691 | inferiors.h, and include it. | |
692 | * inferiors.h: New file. | |
693 | ||
f699aaba PA |
694 | 2013-09-05 Pedro Alves <palves@redhat.com> |
695 | ||
696 | * server.h (struct emit_ops, current_insn_ptr, emit_error): | |
697 | Move ... | |
698 | * ax.h: ... here. | |
699 | ||
c144c7a0 PA |
700 | 2013-09-05 Pedro Alves <palves@redhat.com> |
701 | ||
702 | * ax.c, linux-low.c, linux-x86-low.c, server.c: Include | |
703 | tracepoint.h. | |
704 | * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing) | |
705 | (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing | |
706 | (handle_tracepoint_general_set, handle_tracepoint_query) | |
707 | (tracepoint_finished_step, tracepoint_was_hit) | |
708 | (release_while_stepping_state_list, current_traceframe) | |
709 | (in_readonly_region, traceframe_read_mem) | |
710 | (fetch_traceframe_registers, traceframe_read_sdata) | |
711 | (traceframe_read_info, struct fast_tpoint_collect_status) | |
712 | (fast_tracepoint_collecting, force_unlock_trace_buffer) | |
713 | (handle_tracepoit_bkpts, initialize_low_tracepoint) | |
714 | (supply_fast_tracepoint_registers) | |
715 | (supply_static_tracepoint_registers, set_trampoline_buffer_space) | |
716 | (ipa_tdesc, claim_trampoline_space) | |
717 | (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close) | |
718 | (agent_mem_read, agent_get_trace_state_variable_value) | |
719 | (agent_set_trace_state_variable_value, agent_tsv_read) | |
720 | (agent_mem_read_string, get_raw_reg_func_addr) | |
721 | (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ... | |
722 | * tracepoint.h: ... this new file. | |
723 | ||
ff42e6ab PA |
724 | 2013-09-05 Pedro Alves <palves@redhat.com> |
725 | ||
726 | * server.h (perror_with_name, error, fatal, warning, paddress) | |
727 | (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and | |
728 | include it. | |
729 | * utils.h: New file. | |
730 | ||
541af0f4 PA |
731 | 2013-09-05 Pedro Alves <palves@redhat.com> |
732 | ||
733 | * server.h (remote_debug, noack_mode, transport_is_reliable) | |
734 | (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio) | |
735 | (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif) | |
736 | (getpkt, remote_prepare, remote_open, remote_close, write_ok) | |
737 | (write_enn, initialize_async_io, enable_async_io) | |
738 | (disable_async_io, check_remote_input_interrupt_request) | |
739 | (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify) | |
740 | (dead_thread_notify, prepare_resume_reply) | |
741 | (decode_address_to_semicolon, decode_address, decode_m_packet) | |
742 | (decode_M_packet, decode_X_packet, decode_xfer_write) | |
743 | (decode_search_memory_packet, unhexify, hexify) | |
744 | (remote_escape_output, unpack_varlen_hex, clear_symbol_cache) | |
745 | (look_up_one_symbol, relocate_instruction) | |
746 | (monitor_output): Move to remote-utils.h, and include it. | |
747 | * remote-utils.h: New file. | |
748 | ||
eebdf26b PA |
749 | 2013-09-05 Pedro Alves <palves@redhat.com> |
750 | ||
751 | * server.h (_): Delete. | |
752 | ||
3aafd2ff PA |
753 | 2013-09-02 Pedro Alves <palves@redhat.com> |
754 | ||
755 | * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro. | |
756 | (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is | |
757 | allocated. | |
758 | (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE. | |
759 | ||
cee83bcb PM |
760 | 2013-09-02 Pierre Muller <muller@sourceware.org> |
761 | ||
762 | * win32-low.c (child_xfer_memory): Check if ReadProcessMemory | |
763 | or WriteProcessMemory complete successfully and handle | |
764 | ERROR_PARTIAL_COPY error. | |
765 | ||
9a13b2fa PA |
766 | 2013-09-02 Pedro Alves <palves@redhat.com> |
767 | ||
768 | * server.c (gdb_read_memory): Return -1 on traceframe memory read | |
769 | error instead of EIO. | |
770 | ||
602e3198 JK |
771 | 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
772 | ||
773 | PR server/15604 | |
774 | * linux-low.c: Include filestuff.h. | |
775 | (linux_create_inferior) <pid == 0>: Call close_most_fds. | |
776 | * lynx-low.c: Include filestuff.h. | |
777 | (lynx_create_inferior) <pid == 0>: Call close_most_fds. | |
778 | * server.c: Include filestuff.h. | |
779 | (main): Call notice_open_fds. | |
780 | * spu-low.c: Include filestuff.h. | |
781 | (spu_create_inferior) <pid == 0>: Call close_most_fds. | |
782 | ||
96d7229d LM |
783 | 2013-08-22 Luis Machado <lgustavo@codesourcery.com> |
784 | ||
785 | * Makefile.in: Explain why ../target and ../nat are not | |
786 | listed as include file search paths. | |
787 | (linux-waitpid.o): New object file rule. | |
788 | * configure.srv (srv_native_linux_obj): New variable. | |
789 | Replace all occurrences of linux native object files with | |
790 | $srv_native_linux_obj. | |
791 | * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h. | |
792 | (HAS_NOMMU): Move defining logic to common/linux-ptrace.c. | |
793 | (linux_enable_event_reporting): Remove declaration. | |
794 | (my_waitpid): Moved to common/linux-waitpid.c. | |
795 | (linux_wait_for_event): Pass ptid when calling | |
796 | linux_enable_event_reporting. | |
797 | (linux_supports_tracefork_flag): Remove. | |
798 | (linux_enable_event_reporting): Likewise. | |
799 | (linux_tracefork_grandchild): Remove. | |
800 | (STACK_SIZE): Moved to common/linux-ptrace.c. | |
801 | (linux_tracefork_child): Remove. | |
802 | (linux_test_for_tracefork): Remove. | |
803 | (linux_look_up_symbols): Call linux_supports_traceclone. | |
804 | (initialize_low): Remove call to linux_test_for_tracefork. | |
805 | * linux-low.h (PTRACE_TYPE_ARG3): Move to | |
806 | common/linux-ptrace.h. | |
807 | (PTRACE_TYPE_ARG4): Likewise. | |
808 | Include linux-ptrace.h. | |
809 | ||
32940073 PA |
810 | 2013-08-21 Pedro Alves <palves@redhat.com> |
811 | ||
812 | * config.in: Renegerate. | |
813 | ||
33b60d58 | 814 | 2013-08-19 Luis Machado <lgustavo@codesourcery.com> |
a261b8f5 | 815 | |
33b60d58 LM |
816 | * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../. |
817 | (SFILES): Remove $(srcdir)/common/target-common.c and | |
818 | add $(srcdir)/target/waitstatus.c. | |
819 | (OBS): Remove target-common.o and add waitstatus.o. | |
820 | (server_h): Remove $(srcdir)/../common/target-common.h and | |
821 | add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h | |
822 | and $(srcdir)/../target/waitstatus.h. | |
823 | (target-common.o): Remove. | |
824 | (waitstatus.o): New target object file. | |
825 | * target.h: Do not include target-common.h and | |
826 | include target/resume.h, target/wait.h and | |
827 | target/waitstatus.h. | |
828 | ||
b8e1b30e LM |
829 | 2013-08-13 Luis Machado <lgustavo@codesourcery.com> |
830 | ||
831 | * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE | |
832 | to PTRACE_TYPE_ARG3. | |
833 | * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE | |
834 | to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to | |
835 | PTRACE_TYPE_ARG4. | |
836 | * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3. | |
837 | (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4. | |
838 | ||
7a60ad40 YQ |
839 | 2013-07-27 Jie Zhang <jie@codesourcery.com> |
840 | Daniel Jacobowitz <dan@codesourcery.com> | |
841 | Yao Qi <yao@codesourcery.com> | |
842 | ||
843 | * Makefile.in (SFILES): Add common/mips-linux-watch.c. | |
844 | (mips-linux-watch.o): New rule. | |
845 | (mips_linux_watch_h): New variable. | |
846 | * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to | |
847 | srv_tgtobj. | |
848 | * linux-mips-low.c: Include mips-linux-watch.h. | |
849 | (struct arch_process_info, struct arch_lwp_info): New. | |
850 | (update_watch_registers_callback): New function. | |
851 | (mips_linux_new_process, mips_linux_new_thread) New functions. | |
852 | (mips_linux_prepare_to_resume, mips_insert_point): New | |
853 | functions. | |
854 | (mips_remove_point, mips_stopped_by_watchpoint): New | |
855 | functions. | |
856 | (rsp_bp_type_to_target_hw_bp_type): New function. | |
857 | (mips_stopped_data_address): New function. | |
858 | (the_low_target): Add watchpoint support functions. | |
859 | ||
de6f69ad YQ |
860 | 2013-07-27 Yao Qi <yao@codesourcery.com> |
861 | ||
862 | * i386-low.c: Include break-common.h. | |
863 | (enum target_hw_bp_type): Remove. | |
864 | ||
3360c0bf LM |
865 | 2013-07-24 Luis Machado <lgustavo@codesourcery.com> |
866 | ||
867 | * Makefile.in (SFILES): /common/target-common.c. | |
868 | (OBS): Add target-common.o. | |
869 | (server_h): Add $(srcdir)/../common/target-common.h. | |
870 | (target-common.o): New target. | |
871 | * server.c (queue_stop_reply_callback): Free | |
872 | status string after use. | |
873 | * target.c (target_waitstatus_to_string): Remove. | |
874 | * target.h: Include target-common.h. | |
875 | (resume_kind): Likewise. | |
876 | (target_waitkind): Likewise. | |
877 | (target_waitstatus): Likewise. | |
878 | (TARGET_WNOHANG): Likewise. | |
879 | ||
bd885420 YQ |
880 | 2013-07-04 Yao Qi <yao@codesourcery.com> |
881 | ||
882 | * Makefile.in (host_alias): Use @host_noncanonical@. | |
883 | (target_alias): Use @target_noncanonical@. | |
884 | * configure.ac: Use ACX_NONCANONICAL_TARGET and | |
885 | ACX_NONCANONICAL_HOST. | |
886 | * configure: Regenerated. | |
887 | ||
888 | Revert: | |
889 | 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com> | |
890 | ||
891 | * configure.ac (version_host, version_target): Set and AC_SUBST them. | |
892 | * configure: Rebuild. | |
893 | * Makefile.in (version_host, version_target): Get from configure. | |
894 | (version.c): Use $(version_host) and $(version_target). | |
895 | ||
17ef446e PA |
896 | 2013-07-03 Pedro Alves <palves@redhat.com> |
897 | ||
898 | * Makefile.in (config.status): Depend on development.sh. | |
899 | * acinclude.m4: Include libmcheck.m4. | |
900 | * configure: Regenerate. | |
901 | ||
7a9a7487 MG |
902 | 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com> |
903 | ||
904 | * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI | |
905 | attribute inside the parentheses. | |
906 | (winapi_DebugSetProcessKillOnExit): Ditto. | |
907 | (winapi_DebugBreakProcess): Ditto. | |
908 | (winapi_GenerateConsoleCtrlEvent): Ditto. | |
a261b8f5 | 909 | |
49b64de6 MG |
910 | 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com> |
911 | ||
912 | * notif.h (notif_event): Add a dummy member to avoid compiler | |
913 | errors. | |
914 | ||
d5749ee7 PA |
915 | 2013-07-01 Pedro Alves <palves@redhat.com> |
916 | ||
917 | * hostio.c (HOSTIO_PATH_MAX): Define. | |
918 | (require_filename, handle_open, handle_unlink, handle_readlink): | |
919 | Use it. | |
920 | ||
d8d2a3ee PA |
921 | 2013-07-01 Pedro Alves <palves@redhat.com> |
922 | ||
923 | * server.h: Include "pathmax.h". | |
924 | * linux-low.c: Don't include sys/param.h. | |
925 | (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of | |
926 | MAXPATHLEN. | |
927 | * win32-low.c: Don't include sys/param.h. | |
928 | (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN. | |
929 | ||
bc7dea8d PA |
930 | 2013-07-01 Pedro Alves <palves@redhat.com> |
931 | ||
932 | * event-loop.c: Don't check HAVE_UNISTD_H before including | |
933 | <unistd.h>. | |
934 | * gdbreplay.c: Likewise. | |
935 | * remote-utils.c: Likewise. | |
936 | * server.c: Likewise. | |
937 | * configure.ac: Don't check for unistd.h. | |
938 | * configure: Regenerate. | |
939 | ||
d6c2da54 TT |
940 | 2013-06-28 Tom Tromey <tromey@redhat.com> |
941 | ||
942 | * Makefile.in (version.c): Use version.in, not | |
943 | common/version.in. | |
944 | ||
257b6bec MG |
945 | 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com> |
946 | ||
947 | * configure.ac (version_host, version_target): Set and AC_SUBST them. | |
948 | * configure: Rebuild. | |
949 | * Makefile.in (version_host, version_target): Get from configure. | |
950 | (version.c): Use $(version_host) and $(version_target). | |
951 | ||
86ebe149 DK |
952 | 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com> |
953 | ||
954 | Fix trace-status to output user name without trailing colon. | |
955 | * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name. | |
956 | ||
f30aa5af DK |
957 | 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com> |
958 | ||
959 | Fix trace-status to output proper start-time and stop-time. | |
960 | * tracepoint.c (cmd_qtstatus): Modify trace-status output to | |
961 | output start time and stop time in hex as gdb expects. | |
962 | ||
28a93511 YQ |
963 | 2013-06-26 Pedro Alves <pedro@codesourcery.com> |
964 | ||
965 | * tracepoint.c (build_traceframe_info_xml): Output trace state | |
966 | variables present in the trace buffer. | |
967 | ||
01208463 TT |
968 | 2013-06-24 Tom Tromey <tromey@redhat.com> |
969 | ||
970 | * Makefile.in (version.c): Use bfd/version.h, common/version.in, | |
971 | create-version.sh. | |
972 | (version.o): Remove. | |
973 | * gdbreplay.c: Include version.h. | |
974 | (version, host_name): Don't declare. | |
975 | * server.h: Include version.h. | |
976 | (version, host_name): Don't declare. | |
977 | ||
760256f9 PA |
978 | 2013-06-12 Pedro Alves <palves@redhat.com> |
979 | ||
980 | * linux-x86-low.c (linux_is_elf64): Delete global. | |
981 | (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global | |
982 | with local linux_pid_exe_is_elf_64_file use. | |
983 | ||
030031ee PA |
984 | 2013-06-11 Pedro Alves <palves@redhat.com> |
985 | ||
986 | * linux-low.c (regset_disabled, disable_regset): New functions. | |
987 | (regsets_fetch_inferior_registers) | |
988 | (regsets_store_inferior_registers): Use them. | |
989 | (initialize_regsets_info); Don't allocate the disabled_regsets | |
990 | array here. | |
991 | * linux-low.h (struct regsets_info) <disabled_regsets>: Extend | |
992 | comment. | |
993 | ||
5da6eb0a PA |
994 | 2013-06-11 Pedro Alves <palves@redhat.com> |
995 | ||
996 | * linux-low.c (initialize_regsets_info): Use xcalloc instead of | |
997 | xmalloc. | |
998 | ||
7e5aaa09 PA |
999 | 2013-06-11 Pedro Alves <palves@redhat.com> |
1000 | ||
1001 | * linux-x86-low.c (initialize_low_arch): Call | |
1002 | init_registers_x32_avx_linux. | |
1003 | ||
d878444c JK |
1004 | 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1005 | ||
1006 | Fix compatibility with Android Bionic. | |
1007 | * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if | |
1008 | it is not empty. | |
1009 | ||
3aee8918 PA |
1010 | 2013-06-07 Pedro Alves <palves@redhat.com> |
1011 | ||
5f2b57b5 | 1012 | PR server/14823 |
3aee8918 PA |
1013 | * Makefile.in (OBS): Add tdesc.o. |
1014 | (IPA_OBJS): Add tdesc-ipa.o. | |
1015 | (tdesc-ipa.o): New rule. | |
1016 | * ax.c (gdb_eval_agent_expr): Adjust register_size call to new | |
1017 | interface. | |
1018 | * linux-low.c (new_inferior): Delete. | |
1019 | (disabled_regsets, num_regsets): Delete. | |
1020 | (linux_add_process): Adjust to set the new per-process | |
1021 | new_inferior flag. | |
1022 | (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread. | |
1023 | (linux_wait_for_lwp): Adjust. Only call arch_setup if the event | |
1024 | was a stop. When calling arch_setup, switch the current inferior | |
1025 | to the thread that got an event. | |
1026 | (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread. | |
1027 | (regsets_fetch_inferior_registers) | |
1028 | (regsets_store_inferior_registers): New regsets_info parameter. | |
1029 | Adjust to use it. | |
1030 | (linux_register_in_regsets): New regs_info parameter. Adjust to | |
1031 | use it. | |
1032 | (register_addr, fetch_register, store_register): New usrregs_info | |
1033 | parameter. Adjust to use it. | |
1034 | (usr_fetch_inferior_registers, usr_store_inferior_registers): New | |
1035 | parameter regs_info. Adjust to use it. | |
1036 | (linux_fetch_registers): Get the current inferior's regs_info, and | |
1037 | adjust to use it. | |
1038 | (linux_store_registers): Ditto. | |
1039 | [HAVE_LINUX_REGSETS] (initialize_regsets_info): New. | |
1040 | (initialize_low): Don't initialize the target_regsets here. Call | |
1041 | initialize_low_arch. | |
1042 | * linux-low.h (target_regsets): Delete declaration. | |
1043 | (struct regsets_info): New. | |
1044 | (struct usrregs_info): New. | |
1045 | (struct regs_info): New. | |
1046 | (struct process_info_private) <new_inferior>: New field. | |
1047 | (struct linux_target_ops): Delete the num_regs, regmap, and | |
1048 | regset_bitmap fields. New field regs_info. | |
1049 | [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare. | |
1050 | * i387-fp.c (num_xmm_registers): Delete. | |
1051 | (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno | |
1052 | calls to new interface. | |
1053 | (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache) | |
1054 | (i387_xsave_to_cache): Adjust find_regno calls to new interface. | |
1055 | Infer the number of xmm registers from the regcache's target | |
1056 | description. | |
1057 | * i387-fp.h (num_xmm_registers): Delete. | |
1058 | * inferiors.c (add_thread): Don't install the thread's regcache | |
1059 | here. | |
1060 | * proc-service.c (gregset_info): Fetch the current inferior's | |
1061 | regs_info. Adjust to use it. | |
1062 | * regcache.c: Include tdesc.h. | |
1063 | (register_bytes, reg_defs, num_registers) | |
1064 | (gdbserver_expedite_regs): Delete. | |
1065 | (get_thread_regcache): If the thread doesn't have a regcache yet, | |
1066 | create one, instead of aborting gdbserver. | |
1067 | (regcache_invalidate_one): Rename to ... | |
1068 | (regcache_invalidate_thread): ... this. | |
1069 | (regcache_invalidate_one): New. | |
1070 | (regcache_invalidate): Only invalidate registers of the current | |
1071 | process. | |
1072 | (init_register_cache): Add target_desc parameter, and use it. | |
1073 | (new_register_cache): Ditto. Assert the target description has a | |
1074 | non zero registers_size. | |
1075 | (regcache_cpy): Add assertions. Adjust. | |
1076 | (realloc_register_cache, set_register_cache): Delete. | |
1077 | (registers_to_string, registers_from_string): Adjust. | |
1078 | (find_register_by_name, find_regno, find_register_by_number) | |
1079 | (register_cache_size): Add target_desc parameter, and use it. | |
1080 | (free_register_cache_thread, free_register_cache_thread_one) | |
1081 | (regcache_release, register_cache_size): New. | |
1082 | (register_size): Add target_desc parameter, and use it. | |
1083 | (register_data, supply_register, supply_register_zeroed) | |
1084 | (supply_regblock, supply_register_by_name, collect_register) | |
1085 | (collect_register_as_string, collect_register_by_name): Adjust. | |
1086 | * regcache.h (struct target_desc): Forward declare. | |
1087 | (struct regcache) <tdesc>: New field. | |
1088 | (init_register_cache, new_register_cache): Add target_desc | |
1089 | parameter. | |
1090 | (regcache_invalidate_thread): Declare. | |
1091 | (regcache_invalidate_one): Delete declaration. | |
1092 | (regcache_release): Declare. | |
1093 | (find_register_by_number, register_cache_size, register_size) | |
1094 | (find_regno): Add target_desc parameter. | |
1095 | (gdbserver_expedite_regs, gdbserver_xmltarget): Delete | |
1096 | declarations. | |
1097 | * remote-utils.c: Include tdesc.h. | |
1098 | (outreg, prepare_resume_reply): Adjust. | |
1099 | * server.c: Include tdesc.h. | |
1100 | (gdbserver_xmltarget): Delete declaration. | |
1101 | (get_features_xml, process_serial_event): Adjust. | |
1102 | * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward | |
1103 | declare. | |
1104 | (struct process_info) <tdesc>: New field. | |
1105 | (ipa_tdesc): Declare. | |
1106 | * tdesc.c: New file. | |
1107 | * tdesc.h: New file. | |
1108 | * tracepoint.c: Include tdesc.h. | |
1109 | [IN_PROCESS_AGENT] (ipa_tdesc): Define. | |
1110 | (get_context_regcache): Adjust to pass ipa_tdesc down. | |
1111 | (do_action_at_tracepoint): Adjust to get the register cache size | |
1112 | from the context regcache's description. | |
1113 | (traceframe_walk_blocks): Adjust to get the register cache size | |
1114 | from the current trace frame's description. | |
1115 | (traceframe_get_pc): Adjust to get current trace frame's | |
1116 | description and pass it down. | |
1117 | (gdb_collect): Adjust to get the register cache size from the | |
1118 | IPA's description. | |
1119 | * linux-amd64-ipa.c (tdesc_amd64_linux): Declare. | |
1120 | (gdbserver_xmltarget): Delete. | |
1121 | (initialize_low_tracepoint): Set the ipa's target description. | |
1122 | * linux-i386-ipa.c (tdesc_i386_linux): Declare. | |
1123 | (initialize_low_tracepoint): Set the ipa's target description. | |
1124 | * linux-x86-low.c: Include tdesc.h. | |
1125 | [__x86_64__] (is_64bit_tdesc): New. | |
1126 | (ps_get_thread_area, x86_get_thread_area): Use it. | |
1127 | (i386_cannot_store_register): Rename to ... | |
1128 | (x86_cannot_store_register): ... this. Use is_64bit_tdesc. | |
1129 | (i386_cannot_fetch_register): Rename to ... | |
1130 | (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc. | |
1131 | (x86_fill_gregset, x86_store_gregset): Adjust register_size calls | |
1132 | to new interface. | |
1133 | (target_regsets): Rename to ... | |
1134 | (x86_regsets): ... this. | |
1135 | (x86_get_pc, x86_set_pc): Adjust register_size calls to new | |
1136 | interface. | |
1137 | (x86_siginfo_fixup): Use is_64bit_tdesc. | |
1138 | [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux) | |
1139 | (tdesc_x32_avx_linux, tdesc_x32_linux) | |
1140 | (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux): | |
1141 | Declare. | |
1142 | (x86_linux_update_xmltarget): Delete. | |
1143 | (I386_LINUX_XSAVE_XCR0_OFFSET): Define. | |
1144 | (have_ptrace_getfpxregs, have_ptrace_getregset): New. | |
1145 | (AMD64_LINUX_USER64_CS): New. | |
1146 | (x86_linux_read_description): New, based on | |
1147 | x86_linux_update_xmltarget. | |
1148 | (same_process_callback): New. | |
1149 | (x86_arch_setup_process_callback): New. | |
1150 | (x86_linux_update_xmltarget): New. | |
1151 | (x86_regsets_info): New. | |
1152 | (amd64_linux_regs_info): New. | |
1153 | (i386_linux_usrregs_info): New. | |
1154 | (i386_linux_regs_info): New. | |
1155 | (x86_linux_regs_info): New. | |
1156 | (x86_arch_setup): Reimplement. | |
1157 | (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc. | |
1158 | (x86_emit_ops): Ditto. | |
1159 | (the_low_target): Adjust. Install x86_linux_regs_info, | |
1160 | x86_cannot_fetch_register, and x86_cannot_store_register. | |
1161 | (initialize_low_arch): New. | |
1162 | * linux-ia64-low.c (tdesc_ia64): Declare. | |
1163 | (ia64_fetch_register): Adjust. | |
1164 | (ia64_usrregs_info, regs_info): New globals. | |
1165 | (ia64_regs_info): New function. | |
1166 | (the_low_target): Adjust. | |
1167 | (initialize_low_arch): New function. | |
1168 | * linux-sparc-low.c (tdesc_sparc64): Declare. | |
1169 | (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack): | |
1170 | Adjust. | |
1171 | (sparc_arch_setup): New function. | |
1172 | (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals. | |
1173 | (the_low_target): Adjust. | |
1174 | (initialize_low_arch): New function. | |
1175 | * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l) | |
1176 | (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l) | |
1177 | (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l) | |
1178 | (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l) | |
1179 | (tdesc_powerpc_64l, tdesc_powerpc_altivec64l) | |
1180 | (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l) | |
1181 | (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l) | |
1182 | (tdesc_powerpc_isa205_vsx64l): Declare. | |
1183 | (ppc_cannot_store_register, ppc_collect_ptrace_register) | |
1184 | (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc) | |
1185 | (ppc_set_pc, ppc_get_hwcap): Adjust. | |
1186 | (ppc_usrregs_info): Forward declare. | |
1187 | (!__powerpc64__) ppc_regmap_adjusted: New global. | |
1188 | (ppc_arch_setup): Adjust to the current process'es target | |
1189 | description. | |
1190 | (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset) | |
1191 | (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse) | |
1192 | (ppc_store_evrregset): Adjust. | |
1193 | (target_regsets): Rename to ... | |
1194 | (ppc_regsets): ... this, and make static. | |
1195 | (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals. | |
1196 | (ppc_regs_info): New function. | |
1197 | (the_low_target): Adjust. | |
1198 | (initialize_low_arch): New function. | |
1199 | * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1) | |
1200 | (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1) | |
1201 | (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1) | |
1202 | (tdesc_s390x_linux64v2): Declare. | |
1203 | (s390_collect_ptrace_register, s390_supply_ptrace_register) | |
1204 | (s390_fill_gregset, s390_store_last_break): Adjust. | |
1205 | (target_regsets): Rename to ... | |
1206 | (s390_regsets): ... this, and make static. | |
1207 | (s390_get_pc, s390_set_pc): Adjust. | |
1208 | (s390_get_hwcap): New target_desc parameter, and use it. | |
1209 | [__s390x__] (have_hwcap_s390_high_gprs): New global. | |
1210 | (s390_arch_setup): Adjust to set the current process'es target | |
1211 | description. Don't adjust the regmap. | |
1212 | (s390_usrregs_info, s390_regsets_info, regs_info): New globals. | |
1213 | [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264) | |
1214 | (regs_info_3264): New globals. | |
1215 | (s390_regs_info): New function. | |
1216 | (the_low_target): Adjust. | |
1217 | (initialize_low_arch): New function. | |
1218 | * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux) | |
1219 | (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare. | |
1220 | [__mips64] (init_registers_mips_linux) | |
1221 | (init_registers_mips_dsp_linux): Delete defines. | |
1222 | [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines. | |
1223 | (have_dsp): New global. | |
1224 | (mips_read_description): New, based on mips_arch_setup. | |
1225 | (mips_arch_setup): Reimplement. | |
1226 | (get_usrregs_info): New function. | |
1227 | (mips_cannot_fetch_register, mips_cannot_store_register) | |
1228 | (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset) | |
1229 | (mips_fill_fpregset, mips_store_fpregset): Adjust. | |
1230 | (target_regsets): Rename to ... | |
1231 | (mips_regsets): ... this, and make static. | |
1232 | (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info) | |
1233 | (dsp_regs_info, regs_info): New globals. | |
1234 | (mips_regs_info): New function. | |
1235 | (the_low_target): Adjust. | |
1236 | (initialize_low_arch): New function. | |
1237 | * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt) | |
1238 | (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon): | |
1239 | Declare. | |
1240 | (arm_fill_vfpregset, arm_store_vfpregset): Adjust. | |
1241 | (arm_read_description): New, with bits factored from | |
1242 | arm_arch_setup. | |
1243 | (arm_arch_setup): Reimplement. | |
1244 | (target_regsets): Rename to ... | |
1245 | (arm_regsets): ... this, and make static. | |
1246 | (arm_regsets_info, arm_usrregs_info, regs_info): New globals. | |
1247 | (arm_regs_info): New function. | |
1248 | (the_low_target): Adjust. | |
1249 | (initialize_low_arch): New function. | |
1250 | * linux-m68k-low.c (tdesc_m68k): Declare. | |
1251 | (target_regsets): Rename to ... | |
1252 | (m68k_regsets): ... this, and make static. | |
1253 | (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals. | |
1254 | (m68k_regs_info): New function. | |
1255 | (m68k_arch_setup): New function. | |
1256 | (the_low_target): Adjust. | |
1257 | (initialize_low_arch): New function. | |
1258 | * linux-sh-low.c (tdesc_sharch): Declare. | |
1259 | (target_regsets): Rename to ... | |
1260 | (sh_regsets): ... this, and make static. | |
1261 | (sh_regsets_info, sh_usrregs_info, regs_info): New globals. | |
1262 | (sh_regs_info, sh_arch_setup): New functions. | |
1263 | (the_low_target): Adjust. | |
1264 | (initialize_low_arch): New function. | |
1265 | * linux-bfin-low.c (tdesc_bfin): Declare. | |
1266 | (bfin_arch_setup): New function. | |
1267 | (bfin_usrregs_info, regs_info): New globals. | |
1268 | (bfin_regs_info): New function. | |
1269 | (the_low_target): Adjust. | |
1270 | (initialize_low_arch): New function. | |
1271 | * linux-cris-low.c (tdesc_cris): Declare. | |
1272 | (cris_arch_setup): New function. | |
1273 | (cris_usrregs_info, regs_info): New globals. | |
1274 | (cris_regs_info): New function. | |
1275 | (the_low_target): Adjust. | |
1276 | (initialize_low_arch): New function. | |
1277 | * linux-cris-low.c (tdesc_crisv32): Declare. | |
1278 | (cris_arch_setup): New function. | |
1279 | (cris_regsets_info, cris_usrregs_info, regs_info): New globals. | |
1280 | (cris_regs_info): New function. | |
1281 | (the_low_target): Adjust. | |
1282 | (initialize_low_arch): New function. | |
1283 | * linux-m32r-low.c (tdesc_m32r): Declare. | |
1284 | (m32r_arch_setup): New function. | |
1285 | (m32r_usrregs_info, regs_info): New globals. | |
1286 | (m32r_regs_info): Adjust. | |
1287 | (initialize_low_arch): New function. | |
1288 | * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux) | |
1289 | (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare. | |
1290 | (tic6x_usrregs_info): Forward declare. | |
1291 | (tic6x_read_description): New function, based on ... | |
1292 | (tic6x_arch_setup): ... this. Reimplement. | |
1293 | (target_regsets): Rename to ... | |
1294 | (tic6x_regsets): ... this, and make static. | |
1295 | (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals. | |
1296 | (tic6x_regs_info): New function. | |
1297 | (the_low_target): Adjust. | |
1298 | (initialize_low_arch): New function. | |
1299 | * linux-xtensa-low.c (tdesc_xtensa): Declare. | |
1300 | (xtensa_fill_gregset, xtensa_store_gregset): Adjust. | |
1301 | (target_regsets): Rename to ... | |
1302 | (xtensa_regsets): ... this, and make static. | |
1303 | (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New | |
1304 | globals. | |
1305 | (xtensa_arch_setup, xtensa_regs_info): New functions. | |
1306 | (the_low_target): Adjust. | |
1307 | (initialize_low_arch): New function. | |
1308 | * linux-nios2-low.c (tdesc_nios2_linux): Declare. | |
1309 | (nios2_arch_setup): Set the current process'es tdesc. | |
1310 | (target_regsets): Rename to ... | |
1311 | (nios2_regsets): ... this. | |
1312 | (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals. | |
1313 | (nios2_regs_info): New function. | |
1314 | (the_low_target): Adjust. | |
1315 | (initialize_low_arch): New function. | |
a261b8f5 PA |
1316 | * linux-aarch64-low.c (tdesc_aarch64): Declare. |
1317 | (aarch64_arch_setup): Set the current process'es tdesc. | |
1318 | (target_regsets): Rename to ... | |
1319 | (aarch64_regsets): ... this. | |
1320 | (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals. | |
1321 | (aarch64_regs_info): New function. | |
1322 | (the_low_target): Adjust. | |
1323 | (initialize_low_arch): New function. | |
3aee8918 PA |
1324 | * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare |
1325 | globals. | |
1326 | (target_regsets): Rename to ... | |
1327 | (tile_regsets): ... this. | |
1328 | (tile_regsets_info, tile_usrregs_info, regs_info): New globals. | |
1329 | (tile_regs_info): New function. | |
1330 | (tile_arch_setup): Set the current process'es tdesc. | |
1331 | (the_low_target): Adjust. | |
1332 | (initialize_low_arch): New function. | |
1333 | * spu-low.c (tdesc_spu): Declare. | |
1334 | (spu_create_inferior, spu_attach): Set the new process'es tdesc. | |
1335 | * win32-arm-low.c (tdesc_arm): Declare. | |
1336 | (arm_arch_setup): New function. | |
1337 | (the_low_target): Install arm_arch_setup instead of | |
1338 | init_registers_arm. | |
1339 | * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare. | |
1340 | (init_windows_x86): Rename to ... | |
1341 | (i386_arch_setup): ... this. Set `win32_tdesc'. | |
1342 | (the_low_target): Adjust. | |
1343 | * win32-low.c (win32_tdesc): New global. | |
1344 | (child_add_thread): Don't create the thread cache here. | |
1345 | (do_initial_child_stuff): Set the new process'es tdesc. | |
1346 | * win32-low.h (struct target_desc): Forward declare. | |
1347 | (win32_tdesc): Declare. | |
1348 | * lynx-i386-low.c (tdesc_i386): Declare global. | |
1349 | (lynx_i386_arch_setup): Set `lynx_tdesc'. | |
1350 | * lynx-low.c (lynx_tdesc): New global. | |
1351 | (lynx_add_process): Set the new process'es tdesc. | |
1352 | * lynx-low.h (struct target_desc): Forward declare. | |
1353 | (lynx_tdesc): Declare global. | |
1354 | * lynx-ppc-low.c (tdesc_powerpc_32): Declare global. | |
1355 | (lynx_ppc_arch_setup): Set `lynx_tdesc'. | |
1356 | * nto-low.c (nto_tdesc): New global. | |
1357 | (do_attach): Set the new process'es tdesc. | |
1358 | * nto-low.h (struct target_desc): Forward declare. | |
1359 | (nto_tdesc): Declare. | |
1360 | * nto-x86-low.c (tdesc_i386): Declare. | |
1361 | (nto_x86_arch_setup): Set `nto_tdesc'. | |
1362 | ||
b1fbec62 GB |
1363 | 2013-06-04 Gary Benson <gbenson@redhat.com> |
1364 | ||
1365 | * server.c (handle_query): Add "augmented-libraries-svr4-read+" | |
1366 | to qSupported response when appropriate. | |
1367 | (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read | |
1368 | with nonzero-length annex. | |
1369 | * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle | |
1370 | arguments supplied in annex. | |
1371 | ||
d1ec4ce7 DE |
1372 | 2013-05-31 Doug Evans <dje@google.com> |
1373 | ||
ac44adcb | 1374 | PR server/15594 |
d1ec4ce7 DE |
1375 | * linux-x86-low.c (ps_get_thread_area): Properly extend address to |
1376 | 64 bits in 64-cross-32 environment. | |
1377 | ||
9b25f2d3 PA |
1378 | 2013-05-28 Pedro Alves <palves@redhat.com> |
1379 | ||
1380 | * Makefile.in (clean): Remove reference to aarch64-without-fpu.c. | |
1381 | (aarch64-without-fpu.c): Delete rule. | |
1382 | * configure.srv (aarch64*-*-linux*): Remove references to | |
1383 | aarch64-without-fpu.o and aarch64-without-fpu.xml. | |
1384 | * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove | |
1385 | declaration. | |
1386 | ||
6740dc9c PA |
1387 | 2013-05-24 Pedro Alves <palves@redhat.com> |
1388 | ||
1389 | * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex | |
1390 | instead of strchr/decode_address. Error if the range isn't split | |
1391 | with a ','. Don't assume there's be a ':' in the action. | |
1392 | ||
c2d6af84 PA |
1393 | 2013-05-23 Yao Qi <yao@codesourcery.com> |
1394 | Pedro Alves <palves@redhat.com> | |
1395 | ||
1396 | * linux-low.c (lwp_in_step_range): New function. | |
1397 | (linux_wait_1): If the thread was range stepping and stopped | |
1398 | outside the stepping range, report the stop to GDB. Otherwise, | |
1399 | continue stepping. Add range stepping debug output. | |
1400 | (linux_set_resume_request): Copy the step range from the resume | |
1401 | request to the lwp. | |
1402 | (linux_supports_range_stepping): New. | |
1403 | (linux_target_ops) <supports_range_stepping>: Set to | |
1404 | linux_supports_range_stepping. | |
1405 | * linux-low.h (struct linux_target_ops) | |
1406 | <supports_range_stepping>: New field. | |
1407 | (struct lwp_info) <step_range_start, step_range_end>: New fields. | |
1408 | * linux-x86-low.c (x86_supports_range_stepping): New. | |
1409 | (the_low_target) <supports_range_stepping>: Set to | |
1410 | x86_supports_range_stepping. | |
1411 | * server.c (handle_v_cont): Handle 'r' action. | |
1412 | (handle_v_requests): Append ";r" if the target supports range | |
1413 | stepping. | |
1414 | * target.h (struct thread_resume) <step_range_start, | |
1415 | step_range_end>: New fields. | |
1416 | (struct target_ops) <supports_range_stepping>: | |
1417 | New field. | |
1418 | (target_supports_range_stepping): New macro. | |
1419 | ||
58794e1a JB |
1420 | 2013-05-17 Joel Brobecker <brobecker@adacore.com> |
1421 | ||
1422 | * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid | |
1423 | confusion in comment. | |
1424 | ||
d631c5a7 JB |
1425 | 2013-05-17 Joel Brobecker <brobecker@adacore.com> |
1426 | ||
1427 | * lynx-low.c (struct process_info_private): New type. | |
1428 | (lynx_add_process): New function. | |
1429 | (lynx_create_inferior, lynx_attach): Replace calls to | |
1430 | add_process by calls to lynx_add_process. | |
1431 | (lynx_resume): If PTID is null, then try using | |
1432 | current_process()->private->last_wait_event_ptid. | |
1433 | Add comments. | |
1434 | (lynx_clear_inferiors): Delete. The contents of that function | |
1435 | has been inlined in lynx_mourn; | |
1436 | (lynx_wait_1): Save the ptid in the process's private data. | |
1437 | (lynx_mourn): Free the process' private data. Replace call | |
1438 | to lynx_clear_inferiors by call to clear_inferiors. | |
1439 | ||
96f7a20f YQ |
1440 | 2013-05-17 Yao Qi <yao@codesourcery.com> |
1441 | ||
1442 | * i386-low.c (i386_length_and_rw_bits): Move the comment to | |
1443 | the right place. | |
1444 | ||
db0dfaa0 LM |
1445 | 2013-05-16 Luis Machado <lgustavo@codesourcery.com> |
1446 | ||
1447 | * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR, | |
1448 | PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments. | |
1449 | (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and | |
1450 | PT_TEXT_END_ADDR guards. Update comments. | |
1451 | (linux_target_op) <read_offsets>: Conditionally define to | |
1452 | linux_read_offsets if the target is UCLIBC and if it defines | |
1453 | PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR. | |
1454 | ||
68f5f838 SL |
1455 | 2013-05-06 Sandra Loosemore <sandra@codesourcery.com> |
1456 | Andrew Jenner <andrew@codesourcery.com> | |
1457 | ||
1458 | * Makefile.in (SFILES): Add linux-nios2-low.c. | |
1459 | (clean): Add action to delete nios2-linux.c. | |
1460 | (nios2-linux.c): New rule. | |
1461 | * configure.srv: Add nios2*-*-linux*. | |
1462 | * linux-nios2-low.c: New. | |
1463 | ||
1ebff1fd HAQ |
1464 | 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com> |
1465 | ||
1466 | * tracepoint.c (cmd_qtinit): Call 'stop_tracing'. | |
1467 | ||
f6150862 HZ |
1468 | 2013-04-25 Hui Zhu <hui@codesourcery.com> |
1469 | ||
1470 | PR gdb/15186 | |
f6150862 HZ |
1471 | * ax.c (ax_printf): Add fflush. |
1472 | ||
614c279d TT |
1473 | 2013-04-22 Tom Tromey <tromey@redhat.com> |
1474 | ||
1475 | * Makefile.in (SFILES): Add filestuff.c. | |
1476 | (OBS): Add filestuff.o. | |
1477 | (filestuff.o): New target. | |
1478 | * config.in, configure: Rebuild. | |
1479 | * configure.ac: Check for fdwalk, pipe2. | |
1480 | ||
7d4e5717 PA |
1481 | 2013-04-17 Pedro Alves <palves@redhat.com> |
1482 | ||
1483 | * configure.ac (USE_THREAD_DB): Delete variable. | |
1484 | (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB. | |
1485 | Don't AC_SUBST USE_THREAD_DB. | |
1486 | * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@. | |
1487 | * config.in, configure: Regenerate. | |
1488 | ||
d5c93e41 PA |
1489 | 2013-04-16 Pedro Alves <palves@redhat.com> |
1490 | ||
1491 | * linux-low.h (struct lwp_info) <thread_known>: Move under | |
1492 | the USE_THREAD_DB #ifdef. | |
1493 | ||
04f5fe89 PA |
1494 | 2013-04-16 Pedro Alves <palves@redhat.com> |
1495 | ||
1496 | * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@. | |
1497 | (linux-low.o): Delete rule. | |
1498 | * linux-low.h: Always include "gdb_thread_db.h" instead of | |
1499 | conditionally including thread_db.h. | |
1500 | (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of | |
1501 | HAVE_THREAD_DB_H. | |
1502 | ||
480b27bf JK |
1503 | 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
1504 | ||
1505 | * Makefile.in (install-only): Fix make install regression. | |
1506 | ||
43662968 JK |
1507 | 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
1508 | ||
1509 | Convert man pages to texinfo, new gdbinit.5 texinfo page. | |
1510 | * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1 | |
1511 | installation. | |
1512 | * gdbserver.1: Remove. | |
1513 | ||
3e74e146 PA |
1514 | 2013-03-22 Pedro Alves <palves@redhat.com> |
1515 | ||
1516 | * linux-low.c (handle_extended_wait): Don't call | |
1517 | linux_enable_event_reporting. | |
1518 | ||
a8347a2a TT |
1519 | 2013-03-15 Tony Theodore <tonyt@logyst.com> |
1520 | ||
1521 | PR build/9098: | |
1522 | * Makefile.in (SHELL): Use @SHELL@. | |
1523 | ||
eeb56fa7 SDJ |
1524 | 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com> |
1525 | ||
1526 | * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing | |
1527 | compiler warning. | |
1528 | ||
4fa7e2ff JB |
1529 | 2013-03-13 Joel Brobecker <brobecker@adacore.com> |
1530 | ||
1531 | * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]: | |
1532 | Remove extraneous NULL element. | |
1533 | ||
8ddb1965 YQ |
1534 | 2013-03-13 Yao Qi <yao@codesourcery.com> |
1535 | ||
1536 | * tracepoint.c (traceframe_read_tsv): Look for the last matched | |
1537 | 'V' block in trace frame. | |
1538 | ||
9accd112 MM |
1539 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
1540 | ||
1541 | * target.h (struct target_ops): Add btrace ops. | |
1542 | (target_supports_btrace): New macro. | |
1543 | (target_enable_btrace): New macro. | |
1544 | (target_disable_btrace): New macro. | |
1545 | (target_read_btrace): New macro. | |
1546 | * gdbthread.h (struct thread_info): Add btrace field. | |
1547 | * server.c: Include btrace-common.h. | |
1548 | (handle_btrace_general_set): New function. | |
1549 | (handle_btrace_enable): New function. | |
1550 | (handle_btrace_disable): New function. | |
1551 | (handle_general_set): Call handle_btrace_general_set. | |
1552 | (handle_qxfer_btrace): New function. | |
1553 | (struct qxfer qxfer_packets[]): Add btrace entry. | |
1554 | * inferiors.c (remove_thread): Disable btrace. | |
1555 | * linux-low: Include linux-btrace.h. | |
1556 | (linux_low_enable_btrace): New function. | |
1557 | (linux_low_read_btrace): New function. | |
1558 | (linux_target_ops): Add btrace ops. | |
1559 | * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o. | |
1560 | Add srv_linux_btrace=yes. | |
1561 | (x86_64-*-linux*): Add linux-btrace.o. | |
1562 | Add srv_linux_btrace=yes. | |
1563 | * configure.ac: Define HAVE_LINUX_BTRACE. | |
1564 | * config.in: Regenerated. | |
1565 | * configure: Regenerated. | |
1566 | ||
5cc22e4c MM |
1567 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
1568 | ||
1569 | * server.c (handle_qxfer): Preserve error message if -3 is | |
1570 | returned. | |
1571 | (qxfer): Document the -3 return value. | |
1572 | ||
7c97f91e MM |
1573 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
1574 | ||
1575 | * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c. | |
1576 | (linux_btrace_h): New variable. | |
1577 | (linux-btrace.o): New rule. | |
1578 | ||
be9a119c | 1579 | 2013-03-08 Stan Shebs <stan@codesourcery.com> |
f6f899bf HAQ |
1580 | Hafiz Abid Qadeer <abidh@codesourcery.com> |
1581 | ||
1582 | * tracepoint.c (trace_buffer_size): New global. | |
1583 | (DEFAULT_TRACE_BUFFER_SIZE): New define. | |
1584 | (init_trace_buffer): Change to one-argument function. Allocate | |
1585 | trace buffer memory. | |
1586 | (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to | |
1587 | handle QTBuffer:size packet. | |
1588 | (cmd_bigqtbuffer_size): New function. | |
1589 | (initialize_tracepoint): Call init_trace_buffer with | |
1590 | DEFAULT_TRACE_BUFFER_SIZE. | |
1591 | * server.c (handle_query): Add QTBuffer:size in the | |
1592 | supported packets. | |
1593 | ||
e64f7499 YQ |
1594 | 2013-03-07 Yao Qi <yao@codesourcery.com> |
1595 | ||
1596 | * tracepoint.c (cur_action, cur_step_action): Make them unsigned. | |
1597 | (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead | |
1598 | of -1. | |
1599 | (cmd_qtsp): Adjust condition. Do post increment. | |
1600 | Set cur_action and cur_step_action back to 0. | |
1601 | ||
f0ae6fc3 PA |
1602 | 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com> |
1603 | ||
1604 | PR server/15236 | |
1605 | * linux-low.c (linux_write_memory): Return early success if LEN is | |
1606 | zero. | |
1607 | ||
b5b0b0af CV |
1608 | 2013-03-05 Corinna Vinschen <vinschen@redhat.de> |
1609 | ||
334ad4a8 | 1610 | * configure.srv: Add x86_64-*-cygwin* as target. |
b5b0b0af | 1611 | |
589bc927 TT |
1612 | 2013-02-28 Tom Tromey <tromey@redhat.com> |
1613 | ||
1614 | * configure.ac: Invoke AC_SYS_LARGEFILE. | |
1615 | * configure, config.in: Rebuild. | |
1616 | ||
dfe07582 CV |
1617 | 2013-02-28 Corinna Vinschen <vinschen@redhat.com> |
1618 | ||
1619 | * win32-low.c: Throughout, fix format strings and casts of | |
1620 | printf-like functions to avoid type related warnings on all | |
1621 | platforms. | |
1622 | (get_child_debug_event): Print dwDebugEventCode as hex since | |
1623 | that's how it's usually documented. | |
1624 | ||
736cd585 YQ |
1625 | 2013-02-28 Yao Qi <yao@codesourcery.com> |
1626 | ||
1627 | * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of | |
1628 | pulongest. | |
1629 | ||
e1f58301 JW |
1630 | 2013-02-27 Jiong Wang <jiwang@tilera.com> |
1631 | ||
1632 | * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c. | |
1633 | (reg-tilegx32.c): New rule. | |
1634 | * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj. | |
1635 | * linux-tile-low.c (tile_arch_setup): New function. Invoke | |
1636 | different register info initializer according to elf class. | |
1637 | (init_registers_tilgx32): New function. The tilegx32 register info | |
1638 | initializer. | |
1639 | (tile_fill_gregset): Use "uint_reg_t" to represent register size. | |
1640 | (tile_store_gregset): Likewise. | |
1641 | ||
d171ca78 YQ |
1642 | 2013-02-27 Yao Qi <yao@codesourcery.com> |
1643 | ||
1644 | * server.c (process_point_options): Print debug message when | |
1645 | debug_threads is true. | |
1646 | ||
282bbdf3 YQ |
1647 | 2013-02-26 Yao Qi <yao@codesourcery.com> |
1648 | ||
1649 | * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF. | |
1650 | ||
aca22551 PA |
1651 | 2013-02-19 Pedro Alves <palves@redhat.com> |
1652 | Kai Tietz <ktietz@redhat.com> | |
1653 | ||
1654 | PR gdb/15161 | |
1655 | ||
1656 | * server.c (handle_query) <CRC check>: Use unpack_varlen_hex | |
1657 | instead of strtoul to extract address from packet. | |
1658 | (process_serial_event) <'z'>: Likewise. | |
1659 | ||
4f3cee1c YQ |
1660 | 2013-02-18 Yao Qi <yao@codesourcery.com> |
1661 | ||
1662 | * linux-bfin-low.c (the_low_target): Use NULL instead of 0. | |
1663 | ||
8e1d55a3 PA |
1664 | 2013-02-14 Pedro Alves <palves@redhat.com> |
1665 | ||
1666 | Plug memory leak. | |
1667 | ||
1668 | * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME, | |
1669 | TRACING_NOTES and TRACING_STOP_NOTE before clobbering. | |
1670 | ||
458820da PA |
1671 | 2013-02-14 Pedro Alves <palves@redhat.com> |
1672 | ||
1673 | * tracepoint.c (cmd_qtdpsrc): Use savestring. | |
1674 | ||
baea0dae PA |
1675 | 2013-02-14 Pedro Alves <palves@redhat.com> |
1676 | ||
1677 | * tracepoint.c (save_string): Delete. | |
1678 | (add_tracepoint_action): Use savestring instead of save_string. | |
1679 | ||
0b1afbb3 PA |
1680 | 2013-02-12 Pedro Alves <palves@redhat.com> |
1681 | ||
1682 | * linux-xtensa-low.c: Ditto. | |
1683 | * xtensa-xtregs.c: Ditto. | |
1684 | ||
8a4ac37e PA |
1685 | 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com> |
1686 | ||
1687 | * thread-db.c (thread_db_get_tls_address): NULL pointer check | |
1688 | thread_db. | |
1689 | ||
148de6bb MS |
1690 | 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com> |
1691 | ||
1692 | * linux-aarch64-low.c (aarch64_arch_setup): Clamp | |
1693 | aarch64_num_wp_regs and aarch64_num_bp_regs to | |
1694 | AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively. | |
1695 | ||
55fac6e0 MS |
1696 | 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com> |
1697 | ||
1698 | * linux-aarch64-low.c (ps_get_thread_area): Replace | |
1699 | PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET. | |
1700 | ||
176eb98c MS |
1701 | 2013-02-04 Jim MacArthur <jim.macarthur@arm.com> |
1702 | Marcus Shawcroft <marcus.shawcroft@arm.com> | |
1703 | Nigel Stephens <nigel.stephens@arm.com> | |
1704 | Yufeng Zhang <yufeng.zhang@arm.com> | |
1705 | ||
1706 | * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c. | |
1707 | (aarch64.c, aarch64-without-fpu.c): New targets. | |
1708 | * configure.srv (aarch64*-*-linux*): New. | |
1709 | * linux-aarch64-low.c: New file. | |
1710 | ||
56f7af9c MS |
1711 | 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com> |
1712 | ||
43aaf8b6 | 1713 | * linux-low.c (handle_extended_wait, linux_create_inferior) |
56f7af9c MS |
1714 | (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp) |
1715 | (dequeue_one_deferred_signal, linux_resume_one_thread) | |
1716 | (fetch_register, linux_write_memory, linux_enable_event_reporting) | |
1717 | (linux_tracefork_grandchild, linux_test_for_tracefork) | |
1718 | (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add | |
1719 | PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments | |
1720 | where the argument is 0. | |
1721 | ||
60f662b0 YQ |
1722 | 2013-01-25 Yao Qi <yao@codesourcery.com> |
1723 | ||
1724 | * event-loop.c: Include "queue.h". | |
1725 | (gdb_event_p): New typedef. | |
1726 | (struct gdb_event) <next_event>: Remove. | |
1727 | (event_queue): Change to QUEUE(gdb_event_p). | |
1728 | (async_queue_event): Remove. | |
1729 | (gdb_event_xfree): New. | |
1730 | (initialize_event_loop): New. | |
1731 | (process_event): Use API from QUEUE. | |
1732 | (wait_for_event): Likewise. | |
1733 | * server.c (main): Call initialize_event_loop. | |
1734 | * server.h (initialize_event_loop): Declare. | |
1735 | ||
5ae4861a YQ |
1736 | 2013-01-18 Yao Qi <yao@codesourcery.com> |
1737 | ||
1738 | * ax.h (struct eval_agent_expr_context): New. | |
1739 | (gdb_eval_agent_expr): Update declaration. | |
1740 | * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and | |
1741 | TFRAME. Add new argument CTX. | |
1742 | * server.h (struct eval_agent_expr_context): Declare. | |
1743 | (agent_mem_read, agent_tsv_read): Update declaration. | |
1744 | (agent_mem_read_string): Likewise. | |
1745 | * tracepoint.c (eval_tracepoint_agent_expr): Remove. | |
1746 | (add_traceframe_block): Add new argument TPOINT. | |
1747 | Increase TPOINT->traceframe_usage. | |
1748 | (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of | |
1749 | eval_tracepoint_agent_expr. | |
1750 | (condition_true_at_tracepoint): Likewise. | |
1751 | (agent_mem_read): Remove argument TFRAME. Add argument CTX. | |
1752 | (agent_mem_read_string, agent_tsv_read): Likewise. | |
1753 | ||
85e00e85 YQ |
1754 | 2013-01-16 Yao Qi <yao@codesourcery.com> |
1755 | ||
1756 | * linux-low.c (linux_resume_one_lwp): Don't check | |
1757 | 'lwp->bp_reinsert != 0'. | |
1758 | ||
4039cf45 JB |
1759 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
1760 | Pedro Alves <palves@redhat.com> | |
1761 | ||
1762 | * lynx-low.c (ptrace_request_to_str): Define a temporary | |
1763 | macro and use it to simplify this function's implementation. | |
1764 | ||
9044dee2 JB |
1765 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
1766 | ||
1767 | * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace | |
1768 | sets errno. | |
1769 | ||
e6352c8f JB |
1770 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
1771 | ||
1772 | * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles. | |
1773 | ||
50681a27 JB |
1774 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
1775 | ||
1776 | * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles. | |
1777 | ||
3f6e77ef JB |
1778 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
1779 | ||
1780 | * lynx-low.c (lynx_resume): Use the resume_info parameter | |
1781 | to determine the ptid for the lynx_ptrace call, unless | |
1782 | it is equal to minus_one_ptid, in which case we use the | |
1783 | ptid of the current_inferior. | |
1784 | (lynx_wait_1): After having received a thread create/exit | |
1785 | event, resume the inferior's execution using the signaling | |
1786 | thread's ptid, rather than the old ptid. | |
1787 | ||
7fda33ae JB |
1788 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
1789 | ||
1790 | * lynx-low.c (lynx_resume): Delete variable ret. | |
1791 | ||
b9786c74 JB |
1792 | 2013-01-01 Joel Brobecker <brobecker@adacore.com> |
1793 | ||
1794 | * gdbreplay.c (gdbreplay_version): Update copyright year. | |
1795 | * server.c (gdbserver_version): Likewise. | |
1796 | ||
8b93d60f JB |
1797 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
1798 | ||
1799 | * lynx-low.c (lynx_wait_1): Add debug trace before adding | |
1800 | new thread. | |
1801 | ||
037335a7 JB |
1802 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
1803 | ||
1804 | * lynx-low.c (ptrace_request_to_str): Add handling for | |
1805 | PTRACE_GETTRACESIG. | |
1806 | ||
52d4cbd8 JB |
1807 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
1808 | ||
1809 | * lynx-low.c (lynx_attach): Delete variable new_process. | |
1810 | ||
ab8f6ca9 JB |
1811 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
1812 | ||
1813 | * lynx-low.c (lynx_create_inferior): Delete variable | |
1814 | new_process. | |
1815 | ||
78cbc024 JB |
1816 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
1817 | ||
1818 | * lynx-low.c (ptrace_request_to_str): Do not handle | |
1819 | PTRACE_GETTHREADLIST if this macro does not exist. | |
1820 | ||
14a00470 YQ |
1821 | 2012-12-15 Yao Qi <yao@codesourcery.com> |
1822 | ||
1823 | * Makefile.in (OBS): Add notif.o. | |
1824 | * notif.c, notif.h: New. | |
1825 | * server.c: Include "notif.h". | |
1826 | (struct vstop_notif) <next>: Remove. | |
1827 | <base>: New field. | |
1828 | (queue_stop_reply): Update. | |
1829 | (push_event, send_next_stop_reply): Remove. | |
1830 | (discard_queued_stop_replies): Update. | |
1831 | (notif_stop): New variable. | |
1832 | (handle_v_stopped): Remove. | |
1833 | (handle_v_requests): Don't call handle_v_stopped. Call | |
1834 | handle_ack_notif instead. | |
1835 | (queue_stop_reply_callback): Call notif_event_enque instead | |
1836 | of queue_stop_reply. | |
1837 | (handle_status): Don't call send_next_stop_reply, call | |
1838 | notif_write_event instead. | |
1839 | (kill_inferior_callback): Likewise. | |
1840 | (detach_or_kill_inferior_callback): Likewise. | |
1841 | (main): Call initialize_notif. | |
1842 | (process_serial_event): Call QUEUE_is_empty. | |
1843 | (handle_target_event): Call notif_push instead of push event. | |
1844 | * server.h (push_event): Remove declaration. | |
1845 | ||
61c125b9 TT |
1846 | 2012-12-10 Tom Tromey <tromey@redhat.com> |
1847 | ||
1848 | * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre) | |
1849 | (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New | |
1850 | macros. | |
1851 | (.c.o): Rewrite. | |
1852 | (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o) | |
1853 | (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o) | |
1854 | (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o) | |
1855 | (amd64-linux-ipa.o, ax.o): Rewrite. | |
1856 | (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o) | |
1857 | (proc-service.o, regcache.o, remote-utils.o, server.o, target.o) | |
1858 | (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove. | |
1859 | (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o) | |
1860 | (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o) | |
1861 | (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite. | |
1862 | (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o) | |
1863 | (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o) | |
1864 | (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o) | |
1865 | (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o) | |
1866 | (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o) | |
1867 | (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o) | |
1868 | (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o) | |
1869 | (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o) | |
1870 | (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o) | |
1871 | (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o) | |
1872 | (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o) | |
1873 | (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o) | |
1874 | (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o) | |
1875 | (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o) | |
1876 | (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o) | |
1877 | (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o) | |
1878 | (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o) | |
1879 | (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o) | |
1880 | (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o) | |
1881 | (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o) | |
1882 | (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o) | |
1883 | (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o) | |
1884 | (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o) | |
1885 | (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o) | |
1886 | (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o) | |
1887 | (reg-tilegx.o): Remove. | |
1888 | (all_object_files): New macro. | |
1889 | Include .deps files. | |
1890 | * aclocal.m4, configure: Rebuild. | |
1891 | * acinclude.m4: Include depstand.m4, lead-dot.m4. | |
1892 | * configure.ac: Invoke ZW_CREATE_DEPDIR, | |
1893 | ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition. | |
1894 | ||
e90e9ad9 TT |
1895 | 2012-12-05 Tom Tromey <tromey@redhat.com> |
1896 | ||
1897 | PR gdb/14917: | |
1898 | * server.h (current_insn_ptr, emit_error): Declare 'extern'. | |
1899 | ||
02d403bf | 1900 | 2012-11-28 Markus Metzger <markus.t.metzger@intel.com> |
945bf713 MM |
1901 | |
1902 | * configure.ac: Check for linux/perf_event.h. | |
1903 | * config.in: Regenerated. | |
1904 | * configure: Regenerated. | |
1905 | ||
0270a750 PA |
1906 | 2012-11-26 Maxime Villard <rustyBSD@gmx.fr> |
1907 | ||
1908 | * hostio.c (handle_readlink): Decrease buffer size | |
1909 | parameter passed to readlink by one byte. | |
1910 | ||
8c29b58e YQ |
1911 | 2012-11-26 Yao Qi <yao@codesourcery.com> |
1912 | ||
1913 | * configure.ac (build_warnings): Append '-Wempty-body'. | |
1914 | * configure: Regenerated. | |
1915 | * linux-low.c (linux_create_inferior): Use braces for empty 'if' | |
1916 | body. | |
1917 | ||
8bdce1ff PM |
1918 | 2012-11-15 Pierre Muller <muller@sourceware.org> |
1919 | ||
1920 | * configure.ac (AC_CHECK_HEADERS): Add wait.h header. | |
1921 | * config.in: Regenerate. | |
1922 | * configure: Regenerate. | |
1923 | * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header. | |
1924 | Use "gdb_wait.h" header instead of <sys/wait.h> header. | |
1925 | * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header. | |
1926 | * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h> | |
1927 | header. | |
1928 | * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header | |
1929 | instead of <sys/wait.h> header. | |
1930 | * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header. | |
1931 | ||
02d403bf | 1932 | 2012-11-13 Markus Metzger <markus.t.metzger@intel.com> |
3ba6ad0f MM |
1933 | |
1934 | * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER | |
1935 | (various make rules): Remove -DGDBSERVER | |
1936 | ||
fbd5db48 YQ |
1937 | 2012-11-09 Yao Qi <yao@codesourcery.com> |
1938 | ||
1939 | * spu-low.c (current_ptid): Move it to .. | |
1940 | * gdbthread.h: ... here. New. | |
1941 | * remote-utils.c (read_ptid): Use macro 'current_ptid'. | |
1942 | * server.c (myresume, process_serial_event): Likewise. | |
1943 | * thread-db.c (thread_db_find_new_threads): Likewise. | |
1944 | * tracepoint.c (run_inferior_command): Likewise. | |
1945 | ||
b3dc46ff AB |
1946 | 2012-10-01 Andrew Burgess <aburgess@broadcom.com> |
1947 | ||
1948 | * server.c (handle_search_memory_1): Include access length in | |
1949 | warning message. | |
1950 | ||
07c04788 HPN |
1951 | 2012-09-05 Michael Brandt <michael.brandt@axis.com> |
1952 | ||
1953 | * linux-crisv32-low.c: Fix compile errors. | |
1954 | ||
918d227b YQ |
1955 | 2012-09-04 Yao Qi <yao@codesourcery.com> |
1956 | ||
1957 | * tracepoint.c (cmd_qtsv): Adjust debug message. | |
1958 | Don't check CUR_TPOINT. | |
1959 | ||
18c1b81a YQ |
1960 | 2012-08-28 Yao Qi <yao@codesourcery.com> |
1961 | ||
1962 | * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF. | |
1963 | * server.h: Include 'libiberty.h' and 'ansidecl.h'. | |
1964 | (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove. | |
1965 | Remove declarations of xmalloc, xreallloc, xstrdup and | |
1966 | freeargv. | |
1967 | * Makefile.in (libiberty_h): New. | |
1968 | (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'. | |
1969 | (linux-bfin-low.o): Append dependency 'libiberty.h'. | |
1970 | ||
dc82f37b YQ |
1971 | 2012-08-23 Yao Qi <yao@codesourcery.com> |
1972 | ||
1973 | * server.h: Remove declaration of 'xsnprintf'. | |
1974 | ||
406b1477 KS |
1975 | 2012-08-22 Keith Seitz <keiths@redhat.com> |
1976 | ||
1977 | * server.h: Include build-gnulib-gbserver/config.h. | |
1978 | * gdbreplay.c: Likewise. | |
1979 | ||
e6712ff1 DE |
1980 | 2012-08-08 Doug Evans <dje@google.com> |
1981 | ||
1982 | * Makefile.in (SFILES): Add gdb_vecs.c. | |
1983 | (OBS): Add gdb_vecs.o. | |
1984 | (gdb_vecs_h, host_defs_h): New variables. | |
1985 | (thread-db.o): Add $(gdb_vecs_h) dependency. | |
1986 | (gdb_vecs.o): New rule. | |
1987 | * thread-db.c: #include "gdb_vecs.h". | |
1988 | (thread_db_load_search): Use a vector to iterate over path elements. | |
1989 | Handle text appearing after "$pdir". | |
1990 | ||
1991 | * configure.ac: Add check for strstr. | |
1992 | * config.in: Regenerate. | |
1993 | * configure: Regenerate. | |
1994 | ||
7c3270ae UW |
1995 | 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
1996 | ||
1997 | * hostio.c (handle_pread): If pread fails, fall back to attempting | |
1998 | lseek/read. | |
1999 | (handle_pwrite): Likewise for pwrite. | |
2000 | ||
b62e2b27 UW |
2001 | 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
2002 | ||
2003 | * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish | |
2004 | between unsupported TYPE and unimplementable ADDR/LEN combination. | |
2005 | (arm_insert_point): Act on new return value. | |
2006 | ||
78a99e91 PA |
2007 | 2012-07-31 Pedro Alves <palves@redhat.com> |
2008 | ||
2009 | * server.c (process_point_options): Only skip tokens if we find | |
2010 | one that is unrecognized. Don't treat 'X' specially while | |
2011 | skipping unrecognized tokens. | |
2012 | ||
fcf303ab UW |
2013 | 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org> |
2014 | ||
2015 | * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt | |
2016 | to 4-byte-align HW breakpoint addresses for Thumb. | |
2017 | ||
7255706c YQ |
2018 | 2012-07-27 Yao Qi <yao@codesourcery.com> |
2019 | ||
2020 | PR remote/14161. | |
2021 | ||
2022 | * server.h: Declare gdb_agent_about_to_close. | |
2023 | * target.c (kill_inferior): Include "agent.h". | |
2024 | New. Send command 'kill'. | |
2025 | * target.h (kill_inferior): Removed macro. | |
2026 | * tracepoint.c (gdb_agent_about_to_close): New. | |
2027 | (gdb_agent_helper_thread): Handle command 'close'. | |
2028 | Wait endlessly until the inferior stops. | |
2029 | Install gdb_agent_remove_socket to atexit hook. | |
2030 | (agent_socket_name): New static variable. | |
2031 | (gdb_agent_socket_init): Replace local variable 'name' with | |
2032 | 'agent_socket_name'. | |
2033 | (gdb_agent_remove_socket): New. | |
2034 | ||
5a3f286f YQ |
2035 | 2012-07-27 Yao Qi <yao@codesourcery.com> |
2036 | ||
2037 | * server.c (process_point_options): Stop at 'X' when parsing. | |
2038 | ||
961bd387 ME |
2039 | 2012-07-19 Michael Eager <eager@eagercon.com> |
2040 | ||
a261b8f5 | 2041 | * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate |
961bd387 ME |
2042 | to hw_execute. |
2043 | * linux-x86-low.c (x86_insert_point, x86_remove_point): | |
2044 | Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del | |
2045 | hardware breakpoint. | |
2046 | ||
aa7c7447 JK |
2047 | 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
2048 | ||
2049 | * gdbserver/linux-low.c (initialize_low): Call | |
2050 | linux_ptrace_init_warnings. | |
2051 | ||
7f216e7c DE |
2052 | 2012-07-02 Doug Evans <dje@google.com> |
2053 | ||
2054 | * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from | |
2055 | pointer to int. | |
2056 | ||
d3ce09f5 SS |
2057 | 2012-07-02 Stan Shebs <stan@codesourcery.com> |
2058 | ||
2059 | * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define. | |
2060 | (ax.o): Add it to build rule. | |
2061 | (ax-ipa.o): Ditto. | |
2062 | (OBS): Add format.o. | |
2063 | (IPA_OBS): Add format.o. | |
2064 | * server.c (handle_query): Claim support for breakpoint commands. | |
2065 | (process_point_options): Add command case. | |
2066 | (process_serial_event): Leave running if there are printfs in | |
2067 | effect. | |
2068 | * mem-break.h (any_persistent_commands): Declare. | |
2069 | (add_breakpoint_commands): Declare. | |
2070 | (gdb_no_commands_at_breakpoint): Declare. | |
2071 | (run_breakpoint_commands): Declare. | |
2072 | * mem-break.c (struct point_command_list): New struct. | |
2073 | (struct breakpoint): New field command_list. | |
2074 | (any_persistent_commands): New function. | |
2075 | (add_commands_to_breakpoint): New function. | |
2076 | (add_breakpoint_commands): New function. | |
2077 | (gdb_no_commands_at_breakpoint): New function. | |
2078 | (run_breakpoint_commands): New function. | |
2079 | * linux-low.c (linux_wait_1): Test for and run breakpoint commands | |
2080 | locally. | |
2081 | * ax.c: Include format.h. | |
2082 | (ax_printf): New function. | |
2083 | (gdb_eval_agent_expr): Add printf opcode. | |
2084 | ||
2f8f6aed YQ |
2085 | 2012-06-13 Yao Qi <yao@codesourcery.com> |
2086 | ||
2087 | * server.c (start_inferior): Remove duplicated writes to fields | |
2088 | 'last_resume_kind' and 'last_status' of 'current_inferior'. | |
2089 | ||
0c9070b3 YQ |
2090 | 2012-06-12 Yao Qi <yao@codesourcery.com> |
2091 | Pedro Alves <palves@redhat.com> | |
2092 | ||
2093 | * linux-low.c (linux_set_resume_request): Simplify predicate. Add | |
2094 | comment. | |
2095 | * server.c (handle_v_cont): Extend comment. | |
2096 | ||
c52daf70 YQ |
2097 | 2012-06-11 Yao Qi <yao@codesourcery.com> |
2098 | ||
2099 | * linux-low.c (linux_attach): Add 'static'. | |
2100 | ||
d38bbb0a YQ |
2101 | 2012-06-06 Yao Qi <yao@codesourcery.com> |
2102 | ||
2103 | * ax.c (gdb_eval_agent_expr): Print `top' in hex. | |
2104 | ||
89dc0afd JK |
2105 | 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
2106 | ||
2107 | Fix gcc -flto compilation warning. | |
2108 | * server.c (main): Make variable multi_mode and attach volatile. | |
2109 | ||
75f62ce7 TJB |
2110 | 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
2111 | ||
2112 | * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP | |
2113 | if the platform doesn't know about it. | |
2114 | ||
65f479b6 PA |
2115 | 2012-05-30 Jeff Kenton <jkenton@tilera.com> |
2116 | ||
2117 | * Makefile.in (SFILES): Add linux-tile-low.c. | |
2118 | (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules. | |
2119 | * configure.srv: Handle tilegx-*-linux*. | |
2120 | * linux-tile-low.c: New file. | |
2121 | ||
0c5bf5a9 JK |
2122 | 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2123 | ||
2124 | * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1. | |
2125 | ||
a493e3e2 PA |
2126 | 2012-05-24 Pedro Alves <palves@redhat.com> |
2127 | ||
2128 | PR gdb/7205 | |
2129 | ||
43aaf8b6 | 2130 | Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. |
a493e3e2 | 2131 | |
2ea28649 PA |
2132 | 2012-05-24 Pedro Alves <palves@redhat.com> |
2133 | ||
2134 | PR gdb/7205 | |
2135 | ||
2136 | Replace target_signal with gdb_signal throughout. | |
2137 | ||
8d409d16 MR |
2138 | 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com> |
2139 | ||
2140 | * linux-low.c (linux_store_registers): Avoid the copying sequence | |
2141 | when no data has been retrieved by ptrace. | |
2142 | ||
23512c01 MGD |
2143 | 2012-05-22 Will Deacon <will.deacon@arm.com> |
2144 | ||
2145 | * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)): | |
2146 | Include asm/ptrace.h. | |
2147 | (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not | |
2148 | already defined. | |
2149 | ||
4934b29e MR |
2150 | 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com> |
2151 | ||
2152 | * linux-low.c (linux_store_registers): Don't re-retrieve data | |
2153 | with ptrace that has already been obtained from /proc. Always | |
2154 | copy any data retrieved with ptrace to the buffer supplied. | |
2155 | ||
bde24c0a PA |
2156 | 2012-05-11 Yao Qi <yao@codesourcery.com> |
2157 | Pedro Alves <palves@redhat.com> | |
2158 | ||
2159 | * linux-low.c (enum stopping_threads_kind): New. | |
2160 | (stopping_threads): Change type to `enum stopping_threads_kind'. | |
2161 | (handle_extended_wait): If stopping and suspending threads, leave | |
2162 | the new_lwp suspended too. | |
2163 | (linux_wait_for_event): Adjust. | |
2164 | (stop_all_lwps): Set `stopping_threads' to | |
2165 | STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on | |
2166 | whether we're suspending threads or just stopping them. Assert no | |
2167 | recursion happens. | |
2168 | ||
623b6bdf YQ |
2169 | 2012-04-29 Yao Qi <yao@codesourcery.com> |
2170 | ||
2171 | * server.h: Move some code to ... | |
2172 | * gdbthread.h: ... here. New. | |
2173 | * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h | |
2174 | (remote-utils.o, server.o, target.o tracepoint.o): Likewise. | |
2175 | (nto-low.o, win32-low.o): Likewise. | |
2176 | * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h. | |
2177 | * regcache.c, remote-utils.c, server.c: Likewise. | |
2178 | * target.c, tracepoint.c, win32-low.c: Likewise. | |
2179 | ||
f15f9948 TJB |
2180 | 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
2181 | ||
2182 | * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c. | |
2183 | (PTRACE_ARG4_TYPE): Likewise. | |
2184 | (PTRACE_XFER_TYPE): Likewise. | |
2185 | * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of | |
2186 | ptrace to PTRACE_ARG3_TYPE. | |
2187 | * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h. | |
2188 | (PTRACE_ARG4_TYPE): Likewise. | |
2189 | (PTRACE_XFER_TYPE): Likewise. | |
2190 | (linux_detach_one_lwp): Cast fourth argument of | |
2191 | ptrace to long then PTRACE_ARG4_TYPE. | |
2192 | (regsets_fetch_inferior_registers): Cast third argument of | |
2193 | ptrace to long then PTRACE_ARG3_TYPE. | |
2194 | (regsets_store_inferior_registers): Likewise. | |
2195 | ||
38ea300a PA |
2196 | 2012-04-20 Pedro Alves <palves@redhat.com> |
2197 | ||
2198 | * configure: Regenerate. | |
2199 | ||
c971b7fa PA |
2200 | 2012-04-19 Pedro Alves <palves@redhat.com> |
2201 | ||
43aaf8b6 | 2202 | * Makefile.in (GNULIB_BUILDDIR): New. |
c971b7fa | 2203 | (LIBGNU, INCGNU, GNULIB_H): Adjust. |
43aaf8b6 PA |
2204 | (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New. |
2205 | (all, install-only, uninstall, clean-info, all-lib, clean): No | |
2206 | longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do. | |
2207 | (maintainer-clean realclean distclean): Use subdir_do. | |
2208 | (subdir_do): New. | |
2209 | (gnulib/import/Makefile): Adjust. Replace gnulib/import with | |
c971b7fa | 2210 | $(GNULIB_BUILDDIR). Don't pass argument to config.status. |
43aaf8b6 PA |
2211 | * acinclude.m4: Include acx_configure_dir.m4. |
2212 | * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE | |
2213 | calls. Call AC_PROG_RANLIB. Configure gnulib using | |
2214 | ACX_CONFIGURE_DIR. | |
2215 | (GNULIB): New. | |
2216 | (GNULIB_STDINT_H): Adjust. | |
2217 | (AC_OUTPUT): Don't output gnulib/Makefile anymore. | |
2218 | * gdbreplay.c: Include build-gnulib/config.h. | |
2219 | * server.h: Likewise. | |
2220 | * aclocal.m4: Regenerate. | |
2221 | * config.in: Regenerate. | |
2222 | * configure: Regenerate. | |
c971b7fa | 2223 | |
809277f8 PA |
2224 | 2012-04-19 Pedro Alves <palves@redhat.com> |
2225 | ||
2226 | * Makefile.in (LIBGNU, INCGNU): Adjust. | |
2227 | (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust. | |
2228 | (all, install-only, uninstall, clean-info, all-lib, clean) | |
2229 | (maintainer-clean, Makefile, gnulib/Makefile): Adjust. | |
2230 | * configure.ac: Adjust AC_OUTPUT output. | |
2231 | * aclocal.m4: Regenerate. | |
2232 | * configure: Regenerate. | |
2233 | ||
fd9bb8b8 PA |
2234 | 2012-04-19 Pedro Alves <palves@redhat.com> |
2235 | ||
2236 | * Makefile.in (generated_files): New. | |
2237 | (server_h): Remove the explicit dependency on config.h, and depend | |
2238 | on $generated_files. | |
2239 | ||
1c298c66 PA |
2240 | 2012-04-19 Pedro Alves <palves@redhat.com> |
2241 | ||
2242 | * Makefile.in (INCGNU): Add -Ignulib. | |
2243 | ||
57c4b50b PA |
2244 | 2012-04-19 Pedro Alves <palves@redhat.com> |
2245 | ||
2246 | * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ... | |
2247 | (INCGNU): ... this, and spell out -I here. | |
2248 | (GNULIB_LIB): Rename to ... | |
2249 | (LIBGNU): ... this. | |
2250 | (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust. | |
2251 | ||
1030e047 PA |
2252 | 2012-04-19 Pedro Alves <palves@redhat.com> |
2253 | ||
2254 | * config.in: Regenerate. | |
2255 | ||
447d4319 PA |
2256 | 2012-04-19 Pedro Alves <palves@redhat.com> |
2257 | ||
2258 | * configure.ac: Remove AC_CHECK_DECLS check for memmem. | |
2259 | * server.h (memmem): Remove declaration. | |
2260 | * config.in: Regenerate. | |
2261 | * configure: Regenerate. | |
2262 | ||
aad9eab9 YQ |
2263 | 2012-04-19 Yao Qi <yao@codesourcery.com> |
2264 | ||
2265 | * Makefile.in (SFILES): Add common/vec.c. | |
2266 | (OBS): Add vec.o. | |
2267 | (vec.o): New rule. | |
2268 | ||
3e10640f YQ |
2269 | 2012-04-19 Yao Qi <yao@codesourcery.com> |
2270 | ||
2271 | * remote-utils.c (prepare_resume_reply): Replace with macro | |
2272 | target_core_of_thread. | |
2273 | * server.c (handle_qxfer_threads_proper): Likewise. | |
2274 | * target.h (traget_core_of_thread): New macro. | |
2275 | ||
71622373 PA |
2276 | 2012-04-18 Pedro Alves <palves@redhat.com> |
2277 | ||
2278 | * aclocal.m4: Regenerate. | |
2279 | * configure: Regenerate. | |
2280 | ||
80d26939 YQ |
2281 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
2282 | ||
2283 | * tracepoint.c (cmd_qtstart): Download tracepoints even when they are | |
2284 | duplicated on address. | |
2285 | ||
42476b70 YQ |
2286 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
2287 | ||
2288 | * tracepoint.c (COPY_FIELD_TO_BUF): New macro. | |
2289 | (struct tracepoint_action_ops) <send>: New field. | |
2290 | (m_tracepoint_action_send, r_tracepoint_action_send): New. | |
2291 | (agent_expr_send, x_tracepoint_action_send): New. | |
2292 | (l_tracepoint_action_send): New. | |
2293 | (cmd_qtdp): Download and install tracepoint | |
2294 | according to `use_agent'. | |
2295 | (run_inferior_command): Add one more parameter `len'. | |
2296 | Update callers. | |
2297 | (tracepoint_send_agent): New. | |
2298 | (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent. | |
2299 | ||
7bc83639 YQ |
2300 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
2301 | ||
2302 | * tracepoint.c (download_tracepoints): Moved to ... | |
2303 | (cmd_qtstart): ... here. | |
2304 | ||
5f18041e YQ |
2305 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
2306 | ||
2307 | * tracepoint.c: Include inttypes.h. | |
2308 | (struct collect_memory_action): Use sized types. | |
2309 | (struct tracepoint): Likewise. | |
2310 | (cmd_qtdp, stop_tracing): Update print specifiers. | |
2311 | (cmd_qtp, response_tracepoint): Likewise. | |
2312 | (collect_data_at_tracepoint): Likewise. | |
2313 | (collect_data_at_step): Likewise. | |
2314 | ||
55a8c076 YQ |
2315 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
2316 | ||
2317 | Import gnulib module inttypes. | |
2318 | * aclocal.m4, config.in, configure: Regenerated. | |
2319 | ||
dc750257 YQ |
2320 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
2321 | ||
2322 | * Makefile.in (maintainer-clean, realclean, distclean): Remove | |
2323 | Makefile and config.status at last. | |
2324 | ||
0ab5faf9 YQ |
2325 | 2012-04-13 Yao Qi <yao@codesourcery.com> |
2326 | ||
2327 | * tracepoint.c: Include stdint.h unconditionally. | |
2328 | ||
18f5fd81 TJB |
2329 | 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
2330 | ||
2331 | * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based | |
2332 | on BFD_HAVE_SYS_PROCFS_TYPE. | |
2333 | * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h. | |
2334 | * configure: Regenerate. | |
2335 | * config.in: Likewise. | |
2336 | ||
4d47af5c L |
2337 | 2012-04-13 H.J. Lu <hongjiu.lu@intel.com> |
2338 | ||
2339 | * Makefile.in (clean): Also remove x32.c x32-linux.c | |
2340 | x32-avx.c x32-avx-linux.c. | |
2341 | (x32.o): New target. | |
2342 | (x32.c): Likewise. | |
2343 | (x32-linux.o): Likewise. | |
2344 | (x32-linux.c): Likewise. | |
2345 | (x32-avx.o): Likewise. | |
2346 | (x32-avx.c): Likewise. | |
2347 | (x32-avx-linux.o): Likewise. | |
2348 | (x32-avx-linux.c): Likewise. | |
2349 | ||
2350 | * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o. | |
2351 | (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o. | |
2352 | (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml. | |
2353 | (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml. | |
2354 | (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml | |
2355 | i386/x32-avx-linux.xml. | |
2356 | ||
2357 | * linux-x86-low.c (init_registers_x32_linux): New prototype. | |
2358 | (init_registers_x32_avx_linux): Likwise. | |
2359 | (x86_linux_update_xmltarget): Call init_registers_x32_linux | |
2360 | or init_registers_x32_avx_linux if linux_is_elf64 is false. | |
2361 | ||
ecedbe58 PA |
2362 | 2012-04-13 Pedro Alves <palves@redhat.com> |
2363 | ||
2364 | * Makefile.in (GNULIB_FLAGS_TO_PASS): New. | |
2365 | (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH. | |
2366 | (all, uninstall, clean-info, all-lib, clean, maintainer-clean) | |
2367 | (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to | |
2368 | the sub-make. | |
2369 | ||
c92b5177 L |
2370 | 2012-04-12 H.J. Lu <hongjiu.lu@intel.com> |
2371 | ||
2372 | * linux-x86-low.c (compat_x32_clock_t): New. | |
2373 | (compat_x32_siginfo_t): Likewise. | |
2374 | (compat_x32_siginfo_from_siginfo): Likewise. | |
2375 | (siginfo_from_compat_x32_siginfo): Likewise. | |
2376 | (linux_is_elf64): Likewise. | |
2377 | (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo | |
2378 | and siginfo_from_compat_x32_siginfo for x32. | |
2379 | (x86_arch_setup): Set linux_is_elf64. | |
2380 | ||
214d508e L |
2381 | 2012-04-12 H.J. Lu <hongjiu.lu@intel.com> |
2382 | ||
2383 | PR gdb/13969 | |
2384 | * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the | |
2385 | e_machine field. | |
2386 | (linux_qxfer_libraries_svr4): Update call to elf_64_file_p. | |
2387 | * linux-low.h (linux_pid_exe_is_elf_64_file): Updated. | |
2388 | * linux-x86-low.c (x86_arch_setup): Check if GDBserver is | |
2389 | compatible with process. | |
2390 | ||
c9a1864a YQ |
2391 | 2012-04-12 Yao Qi <yao@codesourcery.com> |
2392 | ||
2393 | * Makefile.in: Define abs_top_srcdir and abs_srcdir. | |
2394 | (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR. | |
2395 | (install-only, install-info, clean): Handle sub dir gnulib. | |
2396 | (all-lib, am--refresh): New targets. | |
2397 | (memmem.o): Remove target. | |
2398 | * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR. | |
2399 | Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make. | |
2400 | (AC_REPLACE_FUNCS): Remove memmem. | |
2401 | Invoke gl_INIT and AM_INIT_AUTOMAKE. | |
2402 | (AC_OUTPUT): Generate Makefile in gnulib/. | |
2403 | * aclocal.m4, config.in, configure: Regenerated. | |
2404 | ||
367ba2c2 MR |
2405 | 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com> |
2406 | ||
2407 | * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP. | |
2408 | ||
9d236627 PA |
2409 | 2012-04-05 Pedro Alves <palves@redhat.com> |
2410 | ||
2411 | -Werror=strict-aliasing | |
2412 | ||
2413 | * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned | |
2414 | pointer. | |
2415 | ||
111217b3 PA |
2416 | 2012-04-04 Pedro Alves <palves@redhat.com> |
2417 | ||
2418 | * linux-sparc-low.c (sparc_fill_gregset_to_stack) | |
2419 | (sparc_store_gregset_from_stack, sparc_store_gregset) | |
2420 | (sparc_breakpoint_at): Fix formatting. | |
2421 | ||
8365dcf5 TJB |
2422 | 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
2423 | ||
2424 | * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t | |
2425 | are available. | |
2426 | * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef. | |
2427 | [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise. | |
2428 | * config.in: Regenerate. | |
2429 | * configure: Likewise. | |
2430 | ||
689cc2ae PA |
2431 | 2012-03-29 Pedro Alves <palves@redhat.com> |
2432 | ||
2433 | * linux-low.c (regsets_store_inferior_registers) [__sparc__]: | |
2434 | Correct ptrace arguments. | |
2435 | ||
c14dfd32 PA |
2436 | 2012-03-28 Pedro Alves <palves@redhat.com> |
2437 | ||
2438 | * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC. | |
2439 | (IA64_GR0_REGNUM, IA64_FR0_REGNUM) | |
2440 | (IA64_FR1_REGNUM): New defines. | |
2441 | (ia64_fetch_register): New. | |
2442 | (the_low_target): Install it. | |
2443 | * linux-low.h (struct linux_target_ops) <fetch_register>: New | |
2444 | field. | |
2445 | * linux-low.c (linux_fetch_registers): Try the | |
2446 | the_low_target.fetch_register hook first. | |
2447 | ||
2448 | * linux-arm-low.c (the_low_target): Adjust. | |
2449 | * linux-bfin-low.c (the_low_target): Adjust. | |
2450 | * linux-cris-low.c (the_low_target): Adjust. | |
2451 | * linux-crisv32-low.c (the_low_target): Adjust. | |
2452 | * linux-m32r-low.c (the_low_target): Adjust. | |
2453 | * linux-m68k-low.c (the_low_target): Adjust. | |
2454 | * linux-mips-low.c (the_low_target): Adjust. | |
2455 | * linux-ppc-low.c (the_low_target): Adjust. | |
2456 | * linux-s390-low.c (the_low_target): Adjust. | |
2457 | * linux-sh-low.c (the_low_target): Adjust. | |
2458 | * linux-sparc-low.c (the_low_target): Adjust. | |
2459 | * linux-tic6x-low.c (the_low_target): Adjust. | |
2460 | * linux-x86-low.c (the_low_target): Adjust. | |
2461 | * linux-xtensa-low.c (the_low_target): Adjust. | |
2462 | ||
63c88e13 PA |
2463 | 2012-03-26 Pedro Alves <palves@redhat.com> |
2464 | ||
2465 | * server.c (handle_qxfer_libraries): Don't bail early if | |
2466 | the_target->qxfer_libraries_svr4 is not NULL. | |
2467 | ||
fb723180 PA |
2468 | 2012-03-26 Pedro Alves <palves@redhat.com> |
2469 | ||
2470 | * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment. | |
2471 | ||
0afae3cf PA |
2472 | 2012-03-23 Pedro Alves <palves@redhat.com> |
2473 | ||
2474 | * linux-low.c (linux_qxfer_libraries_svr4): Terminate the | |
2475 | "library-list-svr4" element's start tag when the the DSO list is | |
2476 | empty. | |
2477 | ||
485f1ee4 PA |
2478 | 2012-03-23 Pedro Alves <palves@redhat.com> |
2479 | ||
2480 | * linux-low.c (read_one_ptr): Read the inferior's pointer through | |
2481 | a variable whose type size is the same as the inferior's pointer | |
2482 | size. | |
2483 | ||
a5362b9a TS |
2484 | 2012-03-21 Thomas Schwinge <thomas@codesourcery.com> |
2485 | ||
2486 | * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of | |
2487 | struct siginfo. | |
2488 | * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise. | |
2489 | * linux-x86-low.c (x86_siginfo_fixup): Likewise. | |
2490 | * linux-low.h: Include <signal.h>. | |
2491 | (struct siginfo): Remove forward declaration. | |
2492 | (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of | |
2493 | struct siginfo. | |
2494 | ||
d226c142 MF |
2495 | 2012-03-21 Mike Frysinger <vapier@gentoo.org> |
2496 | ||
2497 | * .gitignore: Ignore more files. | |
2498 | ||
122f36ef PA |
2499 | 2012-03-19 Pedro Alves <palves@redhat.com> |
2500 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
2501 | ||
2502 | * server.c (cont_thread, general_thread): Add describing comments. | |
2503 | (start_inferior): Clear `cont_thread'. | |
2504 | (handle_v_cont): Don't set `cont_thread' if resuming all threads | |
2505 | of a process. | |
2506 | ||
fc3e5175 YQ |
2507 | 2012-03-15 Yao Qi <yao@codesourcery.com> |
2508 | ||
2509 | * tracepoint.c (install_tracepoint): Move duplicated tracepoint | |
2510 | handling to ... | |
2511 | (cmd_qtdp): ... here. | |
2512 | ||
8d0d92cd YQ |
2513 | 2012-03-15 Yao Qi <yao@codesourcery.com> |
2514 | ||
2515 | * tracepoint.c (struct tracepoint_action_ops): New. | |
2516 | (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field. | |
2517 | (m_tracepoint_action_download): New. | |
2518 | (r_tracepoint_action_download): New. | |
2519 | (x_tracepoint_action_download): New. | |
2520 | (l_tracepoint_action_download): New. | |
2521 | (add_tracepoint_action): Install `action->ops' according type. | |
2522 | (download_tracepoint_1): Move code `download' function pointer | |
2523 | of various tracepoint_action_ops. | |
2524 | ||
87b0bb13 JK |
2525 | 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
2526 | ||
2527 | * linux-low.c (linux_attach_lwp_1): New variable buffer. Call | |
2528 | linux_ptrace_attach_warnings. | |
2529 | ||
5f572dec JK |
2530 | 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
2531 | ||
2532 | * Makefile.in (linux-ptrace.o): New. | |
2533 | * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*) | |
2534 | (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*) | |
2535 | (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*) | |
2536 | (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux) | |
2537 | (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ | |
2538 | of these targets. | |
2539 | * linux-low.c (linux_attach_lwp_1): Remove redundent else clause. | |
2540 | ||
f4647387 YQ |
2541 | 2012-03-08 Yao Qi <yao@codesourcery.com> |
2542 | Pedro Alves <palves@redhat.com> | |
2543 | ||
2544 | Fix PR server/13392. | |
2545 | * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check | |
2546 | offset of JMP insn. | |
2547 | * tracepoint.c (remove_tracepoint): New. | |
2548 | (cmd_qtdp): Call remove_tracepoint when failed to install. | |
2549 | ||
9b224c5e PA |
2550 | 2012-03-07 Pedro Alves <palves@redhat.com> |
2551 | ||
2552 | * linux-low.c (get_detach_signal): New. | |
2553 | (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT. | |
2554 | Pass on pending signals to PTRACE_DETACH. Check the result of the | |
2555 | ptrace call. | |
2556 | * server.c (program_signals, program_signals_p): New. | |
2557 | (handle_general_set): Handle QProgramSignals. | |
2558 | * server.h (program_signals, program_signals_p): Declare. | |
2559 | ||
e237a7e2 JK |
2560 | 2012-03-05 Pedro Alves <palves@redhat.com> |
2561 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
2562 | ||
2563 | * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found. | |
2564 | New comment why. | |
2565 | ||
5808517f YQ |
2566 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
2567 | ||
2568 | * tracepoint.c (tracepoint_look_up_symbols): Update call to | |
2569 | agent_look_up_symbols. | |
2570 | ||
58b4daa5 YQ |
2571 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
2572 | ||
2573 | * Makefile.in (linux-low.o): Keep dependence on agent.h. | |
2574 | (linux-x86-low.o): Likewise. | |
2575 | * server.h: Remove in_process_agent_loaded. | |
2576 | * tracepoint.c (in_process_agent_loaded): Removed. Moved it | |
2577 | common/agent.c. | |
2578 | Update callers. | |
2579 | ||
8ffcbaaf YQ |
2580 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
2581 | ||
2582 | * tracepoint.c (gdb_agent_capability): New global. | |
2583 | (in_process_agent_loaded_ust): Renamed to | |
2584 | `in_process_agent_supports_ust'. | |
2585 | Update callers. | |
2586 | (in_process_agent_supports_ust): Call agent_capability_check. | |
2587 | (clear_installed_tracepoints): Assert that agent supports | |
2588 | agent. | |
2589 | ||
d1feda86 YQ |
2590 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
2591 | ||
2592 | * linux-low.c (linux_supports_agent): New. | |
2593 | (linux_target_ops): Initialize field `supports_agent' with | |
2594 | linux_supports_agent. | |
2595 | * target.h (struct target_ops) <supports_agent>: New. | |
2596 | (target_supports_agent): New macro. | |
2597 | * server.c (handle_general_set): Handle packet 'QAgent'. | |
2598 | (handle_query): Send `QAgent+'. | |
2599 | * Makefile.in (server.o): Depends on agent.h. | |
2600 | ||
2fa291ac YQ |
2601 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
2602 | ||
2603 | * Makefile.in (OBS): Add agent.o. | |
2604 | Add new rule for agent.o. | |
2605 | Track dependence of tracepoint.c on agent.h. | |
2606 | * tracepoint.c (run_inferior_command_1): | |
2607 | (run_inferior_command): Call agent_run_command. | |
2608 | (gdb_ust_connect_sync_socket): Deleted. Move it to | |
2609 | common/agent.c. | |
2610 | (resume_thread, stop_thread): Likewise. | |
2611 | (gdb_ust_socket_init): Renamed to ... | |
2612 | (gdb_agent_socket_init): ... New. | |
2613 | (gdb_ust_thread): Renamed to ... | |
2614 | (gdb_agent_helper_thread): ... New. | |
2615 | (gdb_ust_init): Move some code to ... | |
2616 | (gdb_agent_init): ... here. New. | |
2617 | [HAVE_UST]: Call gdb_ust_init. | |
2618 | (initialize_tracepoint_ftlib): Call gdb_agent_init. | |
2619 | * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS. | |
2620 | * config.in, configure: Regenerated. | |
2621 | ||
05044653 PA |
2622 | 2012-03-02 Pedro Alves <palves@redhat.com> |
2623 | ||
2624 | * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete. | |
2625 | * linux-low.c (struct simple_pid_list): New. | |
2626 | (stopped_pids): New a struct simple_pid_list pointer. | |
2627 | (add_to_pid_list, pull_pid_from_list): New. | |
2628 | (handle_extended_wait): Don't assume the first signal new children | |
2629 | report is SIGSTOP. Adjust call to pull_pid_from_list. | |
2630 | (linux_wait_for_lwp): Adjust. | |
2631 | ||
8d00225b YQ |
2632 | 2012-03-02 Yao Qi <yao@codesourcery.com> |
2633 | ||
2634 | * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in | |
2635 | debug log. | |
2636 | ||
19560ba5 YQ |
2637 | 2012-03-02 Yao Qi <yao@codesourcery.com> |
2638 | ||
2639 | * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters | |
2640 | `stop_pc' and `tpoint'. Update caller. | |
2641 | ||
1faeff08 MR |
2642 | 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com> |
2643 | ||
2644 | * linux-low.h (linux_target_ops): Add regset_bitmap member. | |
2645 | * linux-low.c (use_linux_regsets): New macro. | |
2646 | [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise. | |
2647 | [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise. | |
2648 | (linux_register_in_regsets): New function. | |
2649 | (usr_fetch_inferior_registers): Skip registers covered by | |
2650 | regsets. | |
2651 | (usr_store_inferior_registers): Likewise. | |
2652 | (usr_fetch_inferior_registers): New macro. | |
2653 | (usr_store_inferior_registers): Likewise. | |
2654 | (linux_fetch_registers): Handle mixed regset/non-regset targets. | |
2655 | (linux_store_registers): Likewise. | |
2656 | * linux-mips-low.c (init_registers_mips_dsp_linux): New | |
2657 | prototype. | |
2658 | (init_registers_mips64_dsp_linux): Likewise. | |
2659 | (init_registers_mips_linux): New macro. | |
2660 | (init_registers_mips_dsp_linux): Likewise. | |
2661 | (mips_dsp_num_regs): Likewise. | |
2662 | (DSP_BASE, DSP_CONTROL): New fallback macros. | |
2663 | (mips_base_regs): New macro. | |
2664 | (mips_regmap): Use it. Fix the size. | |
2665 | (mips_dsp_regmap): New variable. | |
2666 | (mips_dsp_regset_bitmap): Likewise. | |
2667 | (mips_arch_setup): New function. | |
2668 | (mips_cannot_fetch_register): Use the_low_target.regmap rather | |
2669 | than mips_regmap. | |
2670 | (mips_cannot_store_register): Likewise. | |
2671 | (the_low_target): Update .arch_setup, .num_regs and .regmap | |
2672 | initializers. Add .regset_bitmap initializer. | |
2673 | * linux-arm-low.c (the_low_target): Add .regset_bitmap | |
2674 | initializer. | |
2675 | * linux-bfin-low.c (the_low_target): Likewise. | |
2676 | * linux-cris-low.c (the_low_target): Likewise. | |
2677 | * linux-crisv32-low.c (the_low_target): Likewise. | |
2678 | * linux-ia64-low.c (the_low_target): Likewise. | |
2679 | * linux-m32r-low.c (the_low_target): Likewise. | |
2680 | * linux-m68k-low.c (the_low_target): Likewise. | |
2681 | * linux-ppc-low.c (the_low_target): Likewise. | |
2682 | * linux-s390-low.c (the_low_target): Likewise. | |
2683 | * linux-sh-low.c (the_low_target): Likewise. | |
2684 | * linux-sparc-low.c (the_low_target): Likewise. | |
2685 | * linux-tic6x-low.c (the_low_target): Likewise. | |
2686 | * linux-x86-low.c (the_low_target): Likewise. | |
2687 | * linux-xtensa-low.c (the_low_target): Likewise. | |
2688 | * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and | |
2689 | mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml, | |
2690 | mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to | |
2691 | srv_xmlfiles. | |
2692 | * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets. | |
2693 | (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise. | |
2694 | ||
c03e6ccc YQ |
2695 | 2012-02-29 Yao Qi <yao@codesourcery.com> |
2696 | Pedro Alves <palves@redhat.com> | |
2697 | ||
2698 | * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when | |
2699 | `step_over_finished' is true. | |
2700 | ||
644cebc9 PA |
2701 | 2012-02-27 Pedro Alves <palves@redhat.com> |
2702 | ||
2703 | * linux-low.c (pid_is_stopped): Delete, moved to common/. | |
2704 | (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped. | |
2705 | ||
c14d7ab2 PA |
2706 | 2012-02-27 Pedro Alves <palves@redhat.com> |
2707 | ||
2708 | PR server/9684 | |
2709 | * linux-low.c (pid_is_stopped): New. | |
2710 | (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes. | |
2711 | ||
412c89dd LM |
2712 | 2012-02-25 Luis Machado <lgustavo@codesourcery.com> |
2713 | ||
2714 | * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation | |
2715 | of conditions. | |
2716 | ||
b745defe MR |
2717 | 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com> |
2718 | ||
2719 | * linux-mips-low.c (mips_regmap): Correct the index of $f9. | |
2720 | ||
9f3a5c85 LM |
2721 | 2012-02-24 Luis Machado <lgustavo@codesourcery> |
2722 | ||
2723 | * server.c (handle_query): Advertise support for target-side | |
2724 | breakpoint condition evaluation. | |
2725 | (process_point_options): New function. | |
2726 | (process_serial_event): When inserting a breakpoint, check for | |
2727 | a target-side condition that should be evaluated. | |
2728 | ||
2729 | * mem-break.c: Include regcache.h and ax.h. | |
2730 | (point_cond_list_t): New data structure. | |
2731 | (breakpoint) <cond_list>: New field. | |
2732 | (find_gdb_breakpoint_at): Make non-static. | |
2733 | (delete_gdb_breakpoint_at): Clear any target-side | |
2734 | conditions. | |
2735 | (clear_gdb_breakpoint_conditions): New function. | |
2736 | (add_condition_to_breakpoint): Likewise. | |
2737 | (add_breakpoint_condition): Likewise. | |
2738 | (gdb_condition_true_at_breakpoint): Likewise. | |
2739 | (gdb_breakpoint_here): Return result directly instead | |
2740 | of going through a local variable. | |
2741 | ||
2742 | * mem-break.h (find_gdb_breakpoint_at): New prototype. | |
2743 | (clear_gdb_breakpoint_conditions): Likewise. | |
2744 | (add_breakpoint_condition): Likewise. | |
2745 | (gdb_condition_true_at_breakpoint): Likewise. | |
2746 | ||
2747 | * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition. | |
2748 | (need_step_over_p): Take target-side breakpoint condition into | |
2749 | consideration. | |
2750 | ||
5e1dc496 LM |
2751 | 2012-02-24 Luis Machado <lgustavo@codesourcery> |
2752 | ||
2753 | * server.h: Include tracepoint.h. | |
2754 | (agent_mem_read, agent_get_trace_state_variable_value, | |
2755 | agent_set_trace_state_variable_value, | |
2756 | agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr, | |
2757 | get_set_tsv_func_addr): New prototypes. | |
2758 | ||
2759 | * ax.h: New include file. | |
2760 | * ax.c: New source file. | |
2761 | ||
2762 | * tracepoint.c: Include ax.h. | |
2763 | (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes, | |
2764 | agent_expr, eval_result_type): Move to ax.h. | |
2765 | (parse_agent_expr): Rename to ... | |
2766 | (gdb_parse_agent_expr): ... this, make it non-static and move | |
2767 | to ax.h. | |
2768 | (unparse_agent_expr) Rename to ... | |
2769 | (gdb_unparse_agent_expr): ... this, make it non-static and move | |
2770 | to ax.h. | |
2771 | (eval_agent_expr): Rename to ... | |
2772 | (eval_tracepoint_agent_expr): ... this. | |
2773 | (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove | |
2774 | forward declarations. | |
2775 | (add_tracepoint_action): Call gdb_parse_agent_expr (...). | |
2776 | (agent_get_trace_state_variable_value): New function. | |
2777 | (agent_set_trace_state_variable_value): New function. | |
2778 | (cmd_qtdp): Call gdb_parse_agent_expr (...). | |
2779 | (response_tracepoint): Call gdb_unparse_agent_expr (...). | |
2780 | (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...). | |
2781 | (condition_true_at_tracepoint): Likewise. | |
2782 | (parse_agent_expr): Rename to ... | |
2783 | (gdb_parse_agent_expr): ... this and move to ax.c. | |
2784 | (unparse_agent_expr): Rename to ... | |
2785 | (gdb_unparse_agent_expr): ... this and move to ax.c. | |
2786 | (gdb_agent_op_name): Move to ax.c. | |
2787 | (eval_agent_expr): Rename to ... | |
2788 | (gdb_eval_agent_expr): ... this, use regcache passed as parameter | |
2789 | and move to ax.c. | |
2790 | (eval_tracepoint_agent_expr): New function. | |
2791 | (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make | |
43aaf8b6 | 2792 | non-static. |
5e1dc496 LM |
2793 | (current_insn_ptr, emit_error, struct bytecode_address): Move to |
2794 | ax.c. | |
2795 | (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh, | |
2796 | emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not, | |
2797 | emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal, | |
2798 | emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto, | |
2799 | emit_goto, write_goto_address, emit_const, emit_reg, emit_pop, | |
2800 | emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust, | |
2801 | emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto, | |
2802 | emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c. | |
2803 | (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions. | |
2804 | (compile_bytecodes): Remove forward declaration. | |
2805 | (is_goto_target): Move to ax.c. | |
2806 | (compile_bytecodes): Move to ax.c and call | |
2807 | agent_get_trace_state_variable_value (...) and | |
2808 | agent_set_trace_state_variable_value (...). | |
2809 | ||
2810 | * Makefile.in: Update ax.c and IPA dependencies. | |
2811 | ||
277e4e52 PA |
2812 | 2012-02-24 Pedro Alves <palves@redhat.com> |
2813 | ||
2814 | * tracepoint.c (cmd_bigqtbuffer): Rename as ... | |
2815 | (cmd_bigqtbuffer_circular): ... this. Only handle | |
2816 | 'QTBuffer:circular:'. | |
2817 | (handle_tracepoint_general_set): Adjust. | |
2818 | ||
bf4c19f7 YQ |
2819 | 2012-02-16 Yao Qi <yao@codesourcery.com> |
2820 | ||
2821 | * inferiors.c: Move code to ... | |
2822 | * dll.c: .... here. New. | |
2823 | * server.h: Declare clear_dlls. | |
2824 | * Makefile.in (SFILES): Add dll.c. | |
2825 | (OBS): Add dll.o | |
2826 | (dll.o): New rule. | |
2827 | ||
d73f2619 YQ |
2828 | 2012-02-11 Yao Qi <yao@codesourcery.com> |
2829 | ||
2830 | * server.c: (handle_monitor_command): Add a new parameter | |
2831 | `own_buf'. | |
2832 | (handle_query): Update caller. | |
2833 | ||
f8255c2a JB |
2834 | 2012-02-09 Joel Brobecker <brobecker@adacore.com> |
2835 | ||
2836 | * configure.ac: Add readlink to AC_CHECK_FUNCS list. | |
2837 | * configure, config.in: Regenerate. | |
2838 | * hostio.c: Provide an alternate implementation if HAVE_READLINK | |
2839 | is not defined. | |
2840 | ||
da84f473 PA |
2841 | 2012-02-02 Pedro Alves <palves@redhat.com> |
2842 | ||
2843 | Try SIGKILL first, then PTRACE_KILL. | |
2844 | * linux-low.c (linux_kill_one_lwp): New. | |
2845 | (linux_kill_one_lwp): Rename to ... | |
2846 | (kill_one_lwp_callback): ... this. Use the new | |
2847 | linux_kill_one_lwp. | |
2848 | ||
e886a173 PA |
2849 | 2012-02-02 Pedro Alves <palves@redhat.com> |
2850 | ||
2851 | * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current | |
2852 | inferior. | |
2853 | ||
be07f1a2 PA |
2854 | 2012-01-27 Pedro Alves <palves@redhat.com> |
2855 | ||
2856 | * linux-low.c (linux_child_pid_to_exec_file): Delete. | |
2857 | (elf_64_file_p): Make static. | |
2858 | (linux_pid_exe_is_elf_64_file): New. | |
2859 | * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p): | |
2860 | Delete declarations. | |
2861 | (linux_pid_exe_is_elf_64_file): Declare. | |
2862 | * linux-x86-low.c (x86_arch_setup): Use | |
2863 | linux_pid_exe_is_elf_64_file. | |
2864 | ||
d8301ad1 JK |
2865 | 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
2866 | ||
2867 | * linux-low.c (linux_wait_for_event_1): Rename to ... | |
2868 | (linux_wait_for_event): ... here and merge it with former | |
2869 | linux_wait_for_event - new variable wait_ptid, use it. | |
2870 | (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1. | |
2871 | ||
01b17894 PA |
2872 | 2012-01-23 Pedro Alves <palves@redhat.com> |
2873 | ||
2874 | * server.c (main): Avoid yet another case of infinite loop while | |
2875 | detaching/killing after a longjmp. | |
2876 | ||
e825046f JK |
2877 | 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
2878 | ||
2879 | Code cleanup. | |
2880 | * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid. | |
2881 | ||
b9e7b9c3 UW |
2882 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
2883 | ||
2884 | * hostio.c (handle_readlink): New function. | |
2885 | (handle_vFile): Call it to handle "vFile:readlink" packets. | |
2886 | ||
901f9912 UW |
2887 | 2012-01-20 Pedro Alves <palves@redhat.com> |
2888 | Ulrich Weigand <ulrich.weigand@linaro.org> | |
2889 | ||
2890 | * server.c (handle_v_requests): Only support vAttach and vRun to | |
2891 | start multiple processes when in extended protocol mode. | |
2892 | ||
fc1ab1a0 PA |
2893 | 2012-01-17 Pedro Alves <palves@redhat.com> |
2894 | ||
2895 | * tracepoint.c (initialize_tracepoint): Use mmap instead of | |
2896 | memalign plus mprotect to allocate the scratch buffer. | |
2897 | ||
7d5d4e98 PA |
2898 | 2012-01-13 Pedro Alves <palves@redhat.com> |
2899 | ||
2900 | * server.c (attach_inferior): Clear `cont_thread'. | |
2901 | ||
f128d5e9 PA |
2902 | 2012-01-13 Pedro Alves <palves@redhat.com> |
2903 | ||
2904 | * server.c (main): Avoid infinite loop while detaching/killing | |
2905 | after a longjmp. | |
2906 | ||
06db92f0 DE |
2907 | 2012-01-09 Doug Evans <dje@google.com> |
2908 | ||
2909 | * server.c (start_inferior): Set last_ptid in --wrapper case. | |
2910 | ||
32d92999 YQ |
2911 | 2012-01-06 Yao Qi <yao@codesourcery.com> |
2912 | ||
2913 | * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro | |
2914 | defined. | |
2915 | [IN_PROCESS_AGENT] (debug_agent): New global variable. | |
2916 | ||
5e0a92a9 YQ |
2917 | 2012-01-04 Yao Qi <yao@codesourcery.com> |
2918 | ||
2919 | * tracepoint.c (cmd_qtdp): Print debug message | |
2920 | for static tracepoint. | |
2921 | ||
ae639e8c YQ |
2922 | 2012-01-04 Yao Qi <yao@codesourcery.com> |
2923 | ||
2924 | * tracepoint.c (trace_vdebug): Differentiate debug message | |
2925 | between gdbserver and IPA. | |
2926 | ||
f72429c5 YQ |
2927 | 2012-01-03 Yao Qi <yao@codesourcery.com> |
2928 | ||
2929 | * tracepoint.c (tracepoint_was_hit): Don't collect for | |
2930 | static tracepoint. | |
2931 | ||
12c3e59c JB |
2932 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
2933 | ||
2934 | * terminal.h: Reformat copyright header. | |
2935 | ||
67827812 JB |
2936 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
2937 | ||
2938 | * server.c (gdbserver_version): Update copyright year. | |
2939 | * gdbreplay.c (gdbreplay_version): Likewise. | |
2940 | ||
3e52c33d JK |
2941 | 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
2942 | ||
2943 | * linux-low.c (linux_create_inferior): Put empty if clause for write. | |
2944 | ||
2945 | Revert: | |
2946 | 2011-12-18 Hui Zhu <teawater@gmail.com> | |
2947 | * linux-low.c (linux_create_inferior): Save return value to ret. | |
2948 | ||
66f1260e HZ |
2949 | 2011-12-18 Hui Zhu <teawater@gmail.com> |
2950 | ||
2951 | * linux-low.c (linux_create_inferior): Save return value to ret. | |
2952 | ||
e77616d7 DE |
2953 | 2011-12-16 Doug Evans <dje@google.com> |
2954 | ||
e7b06c57 DE |
2955 | * linux-low.c (linux_create_inferior): If stdio connection, |
2956 | redirect stdin from /dev/null, stdout to stderr. | |
2957 | * remote-utils.c (remote_is_stdio): New static global. | |
2958 | (remote_connection_is_stdio): New function. | |
2959 | (remote_prepare): Handle stdio connection. | |
2960 | (remote_open): Ditto. | |
2961 | (remote_close): Don't close stdin for stdio connections. | |
2962 | (read_prim,write_prim): New functions. Replace all calls to | |
2963 | read/write to these. | |
2964 | * server.c (main): Watch for "-" argument. Move call to | |
2965 | remote_prepare before start_inferior. | |
2966 | * server.h (STDIO_CONNECTION_NAME): New macro. | |
2967 | (remote_connection_is_stdio): Declare. | |
2968 | ||
e77616d7 DE |
2969 | * remote-utils.c (prepare_resume_reply): Remove extraneous \n |
2970 | in debugging output. | |
2971 | ||
82067193 YQ |
2972 | 2011-12-15 Yao Qi <yao@codesourcery.com> |
2973 | ||
2974 | * tracepoint.c: Include sys/syscall.h. | |
2975 | (gdb_ust_thread): Remove preprocessor conditional. | |
2976 | ||
82bfbe7e PA |
2977 | 2011-12-14 Pedro Alves <pedro@codesourcery.com> |
2978 | ||
2979 | * linux-low.c (linux_detach_one_lwp): Call | |
2980 | the_low_target.prepare_to_resume before detaching. | |
2981 | ||
712c6575 YQ |
2982 | 2011-12-14 Yao Qi <yao@codesourcery.com> |
2983 | ||
2984 | * tracepoint.c (gdb_ust_thread): Don't ignore return value | |
2985 | of write. | |
2986 | ||
d54d1edf YQ |
2987 | 2011-12-14 Yao Qi <yao@codesourcery.com> |
2988 | ||
2989 | * i386-low.c (i386_low_stopped_data_address): Initialize local | |
2990 | variable `control'. | |
2991 | ||
6210a125 PA |
2992 | 2011-12-13 Pedro Alves <pedro@codesourcery.com> |
2993 | ||
2994 | PR remote/13492 | |
2995 | ||
2996 | * i386-low.c (i386_low_stopped_data_address): Avoid fetching | |
2997 | DR_CONTROL unless necessary. Extend comments. | |
2998 | * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to | |
2999 | DR0-3 if not used. If any watchpoint was set, clear DR_STATUS. | |
3000 | ||
2ece8244 YQ |
3001 | 2011-12-13 Yao Qi <yao@codesourcery.com> |
3002 | ||
3003 | * tracepoint.c (trace_buffer_alloc): Replace magic numbers with | |
3004 | macros. | |
3005 | (upload_fast_traceframes, upload_fast_traceframes): Likewise. | |
3006 | ||
784867a5 JK |
3007 | 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
3008 | ||
3009 | * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist. | |
3010 | Print new debug message for such case. | |
3011 | ||
6bf36717 JK |
3012 | 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
3013 | ||
3014 | Fix overlapping memcpy. | |
3015 | * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for | |
3016 | the read_inferior_memory transfer. | |
3017 | (delete_fast_tracepoint_jump): New variable buf. Use it for the | |
3018 | write_inferior_memory transfer. | |
3019 | (set_fast_tracepoint_jump): New variable buf. Use it for the | |
3020 | read_inferior_memory and write_inferior_memory transfers. | |
3021 | (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at) | |
3022 | (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf. | |
3023 | Use it for the write_inferior_memory transfer. | |
3024 | (check_mem_read, check_mem_write): New gdb_asserts for overlapping | |
3025 | buffers. | |
3026 | ||
50275556 MR |
3027 | 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com> |
3028 | ||
3029 | * linux-low.c (fetch_register, store_register): Make code | |
3030 | consistent, fix formatting. | |
3031 | ||
7325beb4 MR |
3032 | 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com> |
3033 | ||
3034 | * linux-low.c (usr_store_inferior_registers): Factor out code | |
3035 | to handle individual registers into... | |
3036 | (store_register): ... this new function. | |
3037 | ||
c642a434 UW |
3038 | 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com> |
3039 | ||
3040 | * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules. | |
3041 | (s390-linux32v2.o, s390-linux32v2.c): Likewise. | |
3042 | (s390-linux64v1.o, s390-linux64v1.c): Likewise. | |
3043 | (s390-linux64v2.o, s390-linux64v2.c): Likewise. | |
3044 | (s390x-linux64v1.o, s390x-linux64v1.c): Likewise. | |
3045 | (s390x-linux64v2.o, s390x-linux64v2.c): Likewise. | |
3046 | * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects. | |
3047 | (srv_xmlfiles): Add new XML files. | |
3048 | ||
3049 | * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>, | |
3050 | and <sys/uio.h>. | |
3051 | (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined. | |
3052 | (init_registers_s390_linux32v1): Add prototype. | |
3053 | (init_registers_s390_linux32v2): Likewise. | |
3054 | (init_registers_s390_linux64v1): Likewise. | |
3055 | (init_registers_s390_linux64v2): Likewise. | |
3056 | (init_registers_s390x_linux64v1): Likewise. | |
3057 | (init_registers_s390x_linux64v2): Likewise. | |
3058 | (s390_num_regs): Increment to 52. | |
3059 | (s390_regmap): Add orig_r2 register. | |
3060 | (s390_num_regs_3264): Increment to 68. | |
3061 | (s390_regmap_3264): Add orig_r2 register. | |
3062 | (s390_collect_ptrace_register): Handle orig_r2 register. | |
3063 | (s390_supply_ptrace_register): Likewise. | |
3064 | (s390_fill_last_break): New function. | |
3065 | (s390_store_last_break): Likewise. | |
3066 | (s390_fill_system_call): New function. | |
3067 | (s390_store_system_call): Likewise. | |
3068 | (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL | |
3069 | register sets. | |
3070 | (s390_check_regset): New function. | |
3071 | (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and | |
3072 | NT_S390_SYSTEM_CALL regsets and use appropriate description. | |
3073 | Update target_regsets for available register sets. | |
3074 | ||
2268b414 JK |
3075 | 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com> |
3076 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
3077 | ||
3078 | * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug) | |
3079 | (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4): | |
3080 | New. | |
3081 | (struct linux_target_ops): Install linux_qxfer_libraries_svr4. | |
3082 | * linux-low.h (struct process_info_private): New member r_debug. | |
3083 | * server.c (handle_qxfer_libraries): Call | |
3084 | the_target->qxfer_libraries_svr4. | |
3085 | (handle_qxfer_libraries_svr4): New function. | |
3086 | (qxfer_packets): New entry "libraries-svr4". | |
3087 | (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4. | |
3088 | * target.h (struct target_ops): New member qxfer_libraries_svr4. | |
3089 | * remote.c (remote_xfer_partial): Call add_packet_config_cmd for | |
3090 | PACKET_qXfer_libraries_svr4. | |
3091 | ||
d6db1fab UW |
3092 | 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com> |
3093 | ||
3094 | * linux-s390-low.c (s390_collect_ptrace_register): Fully convert | |
3095 | PSW address/mask between 8-byte and 16-byte formats. | |
3096 | (s390_supply_ptrace_register): Likewise. | |
3097 | (s390_get_pc, s390_set_pc): 4-byte PSW address always includes | |
3098 | basic addressing mode bit. | |
3099 | ||
242f5f1c SS |
3100 | 2011-11-24 Stan Shebs <stan@codesourcery.com> |
3101 | ||
3102 | * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx. | |
3103 | ||
f196051f SS |
3104 | 2011-11-17 Stan Shebs <stan@codesourcery.com> |
3105 | ||
3106 | * tracepoint.c (struct tracepoint): New field traceframe_usage. | |
3107 | (tracing_start_time): New global. | |
3108 | (tracing_stop_time): New global. | |
3109 | (tracing_user_name): New global. | |
3110 | (tracing_notes): New global. | |
3111 | (tracing_stop_note): New global. | |
3112 | (cmd_qtstart): Set traceframe_usage, start_time. | |
3113 | (stop_tracing): Set stop_time. | |
3114 | (cmd_qtstatus): Report additional status. | |
3115 | (cmd_qtp): New function. | |
3116 | (handle_tracepoint_query): Call it. | |
3117 | (cmd_qtnotes): New function. | |
3118 | (handle_tracepoint_general_set): Call it. | |
3119 | (get_timestamp): Rename from tsv_get_timestamp. | |
3120 | ||
405f8e94 SS |
3121 | 2011-11-14 Stan Shebs <stan@codesourcery.com> |
3122 | Kwok Cheung Yeung <kcy@codesourcery.com> | |
3123 | ||
3124 | * linux-x86-low.c (small_jump_insn): New. | |
3125 | (i386_install_fast_tracepoint_jump_pad): Add arguments for | |
3126 | trampoline and error message, build a trampoline and issue a small | |
3127 | jump instruction to it. | |
3128 | (x86_install_fast_tracepoint_jump_pad): Add arguments for | |
3129 | trampoline and error message. | |
3130 | (x86_get_min_fast_tracepoint_insn_len): New. | |
3131 | (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len. | |
3132 | * linux-low.h (struct linux_target_ops): Add arguments to | |
3133 | install_fast_tracepoint_jump_pad operation, add new operation. | |
3134 | * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add | |
3135 | arguments. | |
3136 | (linux_get_min_fast_tracepoint_insn_len): New function. | |
3137 | (linux_target_op): Add new operation. | |
3138 | * tracepoint.c (gdb_trampoline_buffer): New IPA variable. | |
3139 | (gdb_trampoline_buffer_end): Ditto. | |
3140 | (gdb_trampoline_buffer_error): Ditto. | |
3141 | (struct ipa_sym_addresses): Add fields for new IPA variables. | |
3142 | (symbol_list): Add entries for new IPA variables. | |
3143 | (struct tracepoint): Add fields to hold the address range of the | |
3144 | trampoline used by the tracepoint. | |
3145 | (trampoline_buffer_head): New static variable. | |
3146 | (trampoline_buffer_tail): Ditto. | |
3147 | (claim_trampoline_space): New function. | |
3148 | (have_fast_tracepoint_trampoline_buffer): New function. | |
3149 | (clone_fast_tracepoint): Fill in trampoline fields of tracepoint | |
3150 | structure. | |
3151 | (install_fast_tracepoint): Ditto, also add error buffer argument. | |
3152 | (cmd_qtminftpilen): New function. | |
3153 | (handle_tracepoint_query): Add response to qTMinFTPILen packet. | |
3154 | (fast_tracepoint_from_trampoline_address): New function. | |
3155 | (fast_tracepoint_collecting): Handle trampoline as part of jump | |
3156 | pad space. | |
3157 | (set_trampoline_buffer_space): New function. | |
3158 | (initialize_tracepoint): Initialize new IPA variables. | |
3159 | * target.h (struct target_ops): Add arguments to | |
3160 | install_fast_tracepoint_jump_pad operation, add new | |
3161 | get_min_fast_tracepoint_insn_len operation. | |
3162 | (target_get_min_fast_tracepoint_insn_len): New. | |
3163 | (install_fast_tracepoint_jump_pad): Add arguments. | |
3164 | * server.h (IPA_BUFSIZ): Define. | |
3165 | * linux-i386-ipa.c: Include extra header files. | |
3166 | (initialize_fast_tracepoint_trampoline_buffer): New function. | |
3167 | (initialize_low_tracepoint): Call it. | |
3168 | * server.h (set_trampoline_buffer_space): Declare. | |
3169 | (claim_trampoline_space): Ditto. | |
3170 | (have_fast_tracepoint_trampoline_buffer): Ditto. | |
3171 | ||
1e4d1764 YQ |
3172 | 2011-11-14 Yao Qi <yao@codesourcery.com> |
3173 | ||
3174 | * server.c (handle_query): Handle InstallInTrace for qSupported. | |
3175 | * tracepoint.c (add_tracepoint): Sort list. | |
3176 | (install_tracepoint, download_tracepoint): New. | |
3177 | (cmd_qtdp): Call them to install and download tracepoints. | |
3178 | (sort_tracepoints): Removed. | |
3179 | (cmd_qtstart): Update. | |
3180 | ||
5c73ff4e YQ |
3181 | 2011-11-14 Yao Qi <yao@codesourcery.com> |
3182 | ||
3183 | * mem-break.c (inc_ref_fast_tracepoint_jump): New. | |
3184 | * mem-break.h: Declare. | |
3185 | * tracepoint.c (cmd_qtstart): Move some code to ... | |
3186 | (clone_fast_tracepoint, install_fast_tracepoint): ... here. | |
3187 | New. | |
3188 | (download_tracepoints): Move some code to ... | |
3189 | (download_tracepoint_1): ... here. New. | |
3190 | ||
86a30030 YQ |
3191 | 2011-11-08 Yao Qi <yao@codesourcery.com> |
3192 | ||
3193 | * remote-utils.c (relocate_instruction): A comment fix. | |
3194 | ||
8d26e50c JB |
3195 | 2011-11-07 Joel Brobecker <brobecker@adacore.com> |
3196 | ||
3197 | * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete. | |
3198 | (i386_dr_low_get_control, i386_dr_low_get_status): Use | |
3199 | dr_status_mirror and dr_control_mirror from debug_reg_state. | |
3200 | (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror | |
3201 | (i386_initial_stuff): Remove use of deleted globals. | |
3202 | (i386_get_thread_context, i386_set_thread_context, | |
3203 | i386_thread_added): Use dr_status_mirror and dr_control_mirror | |
3204 | from debug_reg_state. | |
3205 | ||
a59306a3 YQ |
3206 | 2011-11-05 Yao Qi <yao@codesourcery.com> |
3207 | ||
3208 | * tracepoint.c (gdb_collect): Loop over tracepoints of same | |
3209 | address as TPOINT's. | |
3210 | ||
3065dfb6 SS |
3211 | 2011-11-02 Stan Shebs <stan@codesourcery.com> |
3212 | ||
3213 | * tracepoint.c (agent_mem_read_string): New function. | |
3214 | (eval_agent_expr): Call it for tracenz. | |
3215 | * server.c (handle_query): Report support for tracenz. | |
3216 | ||
fd0d8c7c YQ |
3217 | 2011-11-02 Yao Qi <yao@codesourcery.com> |
3218 | ||
3219 | * tracepoint.c (cmd_qtstart): Remove unused local variables. | |
3220 | ||
609086b1 YQ |
3221 | 2011-11-02 Yao Qi <yao@codesourcery.com> |
3222 | ||
3223 | * target.h: Fix a typo in comment. | |
3224 | ||
b9fd1791 PA |
3225 | 2011-10-31 Pedro Alves <pedro@codesourcery.com> |
3226 | ||
3227 | * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't | |
3228 | clobber the breakpoints' shadows with fast tracepoint jumps. | |
3229 | * mem-break.h (check_mem_write): Add `myaddr' parameter. | |
3230 | * target.c (write_inferior_memory): Also pass MYADDR down to | |
3231 | check_mem_write. | |
3232 | ||
03583c20 UW |
3233 | 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org> |
3234 | ||
3235 | * configure.ac: Check support for personality routine. | |
3236 | * configure: Regenerate. | |
3237 | * config.in: Likewise. | |
3238 | * linux-low.c: Include <sys/personality.h>. | |
3239 | Define ADDR_NO_RANDOMIZE if necessary. | |
3240 | (linux_create_inferior): Disable address space randomization when | |
3241 | forking inferior, if requested. | |
3242 | (linux_supports_disable_randomization): New function. | |
3243 | (linux_target_ops): Install it. | |
3244 | * server.h (disable_randomization): Declare. | |
3245 | * server.c (disable_randomization): New global variable. | |
3246 | (handle_general_set): Handle QDisableRandomization. | |
3247 | (handle_query): Likewise for qSupported. | |
3248 | (main): Support --disable-randomization and --no-disable-randomization | |
3249 | command line arguments. | |
3250 | * target.h (struct target_ops): Add supports_disable_randomization. | |
3251 | (target_supports_disable_randomization): New macro. | |
3252 | ||
723b724b MF |
3253 | 2011-09-29 Mike Frysinger <vapier@gentoo.org> |
3254 | ||
3255 | * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the | |
3256 | ifdef check. | |
3257 | [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check. | |
3258 | [!PT_GETDSBT] (target_loadmap): New definition. | |
3259 | (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define. | |
3260 | (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to | |
3261 | LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP, | |
3262 | and PT_GETDSBT to LINUX_LOADMAP. | |
3263 | [!PT_GETDSBT] (linux_read_loadmap): Define to NULL. | |
3264 | (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check. | |
3265 | ||
55329a5c | 3266 | 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org> |
71487fd7 UW |
3267 | |
3268 | * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove. | |
3269 | (arm_linux_hwbp_cap): New static variable. | |
3270 | (arm_linux_get_hwbp_cap): Replace by ... | |
3271 | (arm_linux_init_hwbp_cap): ... this new function. | |
3272 | (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap. | |
3273 | (arm_linux_get_hw_watchpoint_count): Likewise. | |
3274 | (arm_linux_get_hw_watchpoint_max_length): Likewise. | |
3275 | (arm_arch_setup): Call arm_linux_init_hwbp_cap. | |
3276 | (arm_prepare_to_resume): Use perror_with_name instead of error. | |
3277 | ||
55329a5c | 3278 | 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org> |
09b4ad9f UW |
3279 | |
3280 | * linux-arm-low.c: Include <signal.h>. | |
3281 | (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary. | |
3282 | (struct arm_linux_hwbp_cap): New data type. | |
3283 | (arm_hwbp_type, arm_hwbp_control_t): New typedefs. | |
3284 | (struct arm_linux_hw_breakpoint): New data type. | |
3285 | (MAX_BPTS, MAX_WPTS): Define. | |
3286 | (struct arch_process_info, struct arch_lwp_info): New data types. | |
3287 | (arm_linux_get_hwbp_cap): New function. | |
3288 | (arm_linux_get_hw_breakpoint_count): Likewise. | |
3289 | (arm_linux_get_hw_watchpoint_count): Likewise. | |
3290 | (arm_linux_get_hw_watchpoint_max_length): Likewise. | |
3291 | (arm_hwbp_control_initialize): Likewise. | |
3292 | (arm_hwbp_control_is_enabled): Likewise. | |
3293 | (arm_hwbp_control_is_initialized): Likewise. | |
3294 | (arm_hwbp_control_disable): Likewise. | |
3295 | (arm_linux_hw_breakpoint_equal): Likewise. | |
3296 | (arm_linux_hw_point_initialize): Likewise. | |
3297 | (struct update_registers_data): New data structure. | |
3298 | (update_registers_callback: New function. | |
3299 | (arm_insert_point): Likewise. | |
3300 | (arm_remove_point): Likewise. | |
3301 | (arm_stopped_by_watchpoint): Likewise. | |
3302 | (arm_stopped_data_address): Likewise. | |
3303 | (arm_new_process): Likewise. | |
3304 | (arm_new_thread): Likewise. | |
3305 | (arm_prepare_to_resume): Likewise. | |
3306 | (the_low_target): Register arm_insert_point, arm_remove_point, | |
3307 | arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process, | |
3308 | arm_new_thread, and arm_prepare_to_resume. | |
3309 | ||
6b9801d4 SS |
3310 | 2011-09-15 Stan Shebs <stan@codesourcery.com> |
3311 | ||
3312 | * server.h (struct emit_ops): Add compare-goto fields. | |
3313 | * tracepoint.c (gdb_agent_op_sizes): New table. | |
3314 | (emit_eq_goto): New function. | |
3315 | (emit_ne_goto): New function. | |
3316 | (emit_lt_goto): New function. | |
3317 | (emit_le_goto): New function. | |
3318 | (emit_gt_goto): New function. | |
3319 | (emit_ge_goto): New function. | |
3320 | (is_goto_target): New function. | |
3321 | (compile_bytecodes): Recognize special cases of compare-goto | |
3322 | combinations and call specialized emitters for them. | |
3323 | * linux-x86-low.c (amd64_emit_eq_goto): New function. | |
3324 | (amd64_emit_ne_goto): New function. | |
3325 | (amd64_emit_lt_goto): New function. | |
3326 | (amd64_emit_le_goto): New function. | |
3327 | (amd64_emit_gt_goto): New function. | |
3328 | (amd64_emit_ge_goto): New function. | |
3329 | (amd64_emit_ops): Add the new functions. | |
3330 | (i386_emit_eq_goto): New function. | |
3331 | (i386_emit_ne_goto): New function. | |
3332 | (i386_emit_lt_goto): New function. | |
3333 | (i386_emit_le_goto): New function. | |
3334 | (i386_emit_gt_goto): New function. | |
3335 | (i386_emit_ge_goto): New function. | |
3336 | (i386_emit_ops): Add the new functions. | |
3337 | ||
bf15cbda SS |
3338 | 2011-09-08 Stan Shebs <stan@codesourcery.com> |
3339 | ||
3340 | * linux-x86-low.c (i386_emit_prologue): Save %ebx. | |
3341 | (i386_emit_epilogue): Restore %ebx. | |
3342 | ||
943ca1dd JZ |
3343 | 2011-08-31 Jie Zhang <jzhang918@gmail.com> |
3344 | ||
3345 | * server.c (step_thread): Remove definition. | |
3346 | (process_serial_event): Don't handle Hs. | |
3347 | * server.h (step_thread): Remove declaration. | |
3348 | * target.c (set_desired_inferior): Remove use of step_thread. | |
3349 | ||
e3deef73 LM |
3350 | 2011-08-24 Luis Machado <lgustavo@codesourcery.com> |
3351 | ||
3352 | * linux-low.c: Include linux-procfs.h. | |
3353 | (linux_attach_lwp_1): Update comments. | |
3354 | (linux_attach): Scan for existing threads when attaching to a | |
3355 | process that is the tgid. | |
3356 | * Makefile.in: Update dependencies. | |
3357 | ||
13da1c97 LM |
3358 | 2011-08-24 Luis Machado <lgustavo@codesourcery.com> |
3359 | ||
3360 | * configure.srv: Add linux-procfs.o dependencies. | |
3361 | ||
881127c9 YQ |
3362 | 2011-08-14 Yao Qi <yao@codesourcery.com> |
3363 | ||
3364 | * target.h (struct target_ops): Fix indent. | |
3365 | * win32-low.c (win32_target_ops): Fix comment. | |
3366 | ||
58dbd541 YQ |
3367 | 2011-08-14 Andrew Jenner <andrew@codesourcery.com> |
3368 | Yao Qi <yao@codesourcery.com> | |
3369 | ||
3370 | * Makefile.in (clean): Remove tic6x-*.c files. | |
3371 | (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules. | |
3372 | (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise. | |
3373 | (tic6x-c64xp-linux.c): Likewise. | |
3374 | * configure.srv: Add support for tic6x-*-uclinux. | |
3375 | * linux-tic6x-low.c: New. | |
3376 | * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define. | |
3377 | ||
78d85199 YQ |
3378 | 2011-08-14 Andrew Stubbs <ams@codesourcery.com> |
3379 | Yao Qi <yao@codesourcery.com> | |
3380 | ||
3381 | * target.h (struct target_ops): Add read_loadmap. | |
3382 | * linux-low.c (struct target_loadseg): New type. | |
3383 | (struct target_loadmap): New type. | |
3384 | (linux_read_loadmap): New function. | |
3385 | (linux_target_ops): Add linux_read_loadmap. | |
3386 | * server.c (handle_query): Support qXfer:fdpic:read packet. | |
43aaf8b6 PA |
3387 | * win32-low.c (win32_target_ops): Initialize field `read_loadmap' |
3388 | to NULL. | |
78d85199 | 3389 | |
a959a88d EZ |
3390 | 2011-08-05 Eli Zaretskii <eliz@gnu.org> |
3391 | ||
3392 | * win32-low.c: Include <stdint.h>. | |
3393 | ||
1ced966e PA |
3394 | 2011-07-22 Pedro Alves <pedro@codesourcery.com> |
3395 | ||
3396 | * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info | |
3397 | to the inferior here. | |
3398 | (i386_remove_aligned_watchpoint): Ditto. | |
3399 | (i386_handle_nonaligned_watchpoint): Return immediate on fail to | |
3400 | fit part of the watchpoint in the debug registers. | |
3401 | (i386_update_inferior_debug_regs): New. | |
3402 | (i386_low_insert_watchpoint): Work on a local mirror of the debug | |
3403 | registers, and only update the inferior on success. | |
3404 | (i386_low_remove_watchpoint): Ditto. | |
3405 | ||
d26e3629 KY |
3406 | 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com> |
3407 | ||
3408 | * linux-low.c (compare_ints, unique, list_threads, show_process, | |
3409 | linux_core_of_thread): Delete. | |
3410 | (linux_target_ops): Change linux_core_of_thread to | |
3411 | linux_common_core_of_thread. | |
3412 | (linux_qxfer_osdata): Defer to linux_common_xfer_osdata. | |
3413 | * utils.c (malloc_failure): Change type of argument. | |
3414 | (xmalloc, xrealloc, xcalloc, xsnprintf): Delete. | |
3415 | * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c, | |
3416 | common/linux-osdata.c, common/ptid.c and common/buffer.c. | |
3417 | (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o. | |
3418 | (IPA_OBJS): Add common-utils-ipa.o. | |
3419 | (ptid_h, linux_osdata_h): New macros. | |
3420 | (server_h): Add common/common-utils.h, common/xml-utils.h, | |
3421 | common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and | |
3422 | common/ptid.h. | |
3423 | (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o, | |
3424 | ptid.o, buffer.o): New rules. | |
3425 | (linux-low.o): Add common/linux-osdata.h as a dependency. | |
3426 | * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets. | |
3427 | * configure.ac: Add AC_HEADER_DIRENT check. | |
3428 | * config.in: Regenerate. | |
3429 | * configure: Regenerate. | |
3430 | * remote-utils.c (xml_escape_text): Delete. | |
3431 | (buffer_grow, buffer_free, buffer_init, buffer_finish, | |
3432 | buffer_xml_printf): Move to common/buffer.c. | |
3433 | * server.c (main): Remove call to initialize_inferiors. | |
3434 | * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid, | |
3435 | ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid, | |
3436 | ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text, | |
3437 | internal_error, gdb_assert, gdb_assert_fail): Delete. | |
3438 | (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish, | |
3439 | buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to | |
3440 | common/buffer.h. | |
3441 | * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid, | |
3442 | ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid, | |
3443 | initialize_inferiors): Delete. | |
3444 | ||
2275a1a7 PA |
3445 | 2011-07-20 Pedro Alves <pedro@codesourcery.com> |
3446 | ||
3447 | * tracepoint.c (tracepoint_look_up_symbols): Return upon the first | |
3448 | symbol error. | |
3449 | ||
0a5b1e09 PA |
3450 | 2011-05-31 Pedro Alves <pedro@codesourcery.com> |
3451 | ||
3452 | * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in | |
3453 | assertion. | |
3454 | * win32-i386-low.c (i386_dr_low_get_addr): Ditto. | |
3455 | ||
6938fd34 YQ |
3456 | 2011-05-26 Yao Qi <yao@codesourcery.com> |
3457 | ||
3458 | * Makefile.in (thread-db.o): Track dependence to | |
3459 | common/gdb_thread_db.h. | |
3460 | * thread-db.c: include gdb_thread_db.h from right place. | |
3461 | ||
b481f9e0 TT |
3462 | 2011-05-16 Adrian Cornish <gnu@bluedreamer.com> |
3463 | ||
3464 | * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass | |
3465 | __FILE__ and __LINE__ to internal_error. | |
3466 | ||
98a5dd13 DE |
3467 | 2011-05-13 Doug Evans <dje@google.com> |
3468 | ||
3469 | * thread-db.c (try_thread_db_load_from_sdir): New function. | |
3470 | (try_thread_db_load_from_dir): New function. | |
3471 | (thread_db_load_search): Handle $sdir, ignore $pdir. | |
3472 | Remove trying of system directories if search of | |
3473 | libthread-db-search-path fails, that is now done via $sdir. | |
3474 | ||
d248b706 KY |
3475 | 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com> |
3476 | ||
3477 | * server.c (handle_query): Add EnableDisableTracepoints to the list | |
3478 | of supported features. | |
43aaf8b6 | 3479 | * tracepoint.c (clear_installed_tracepoints): Uninstall disabled |
d248b706 | 3480 | tracepoints. |
43aaf8b6 PA |
3481 | (cmd_qtenable_disable): New. |
3482 | (cmd_qtstart): Install tracepoints even if disabled. | |
3483 | (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on | |
3484 | receiving a QTEnable or QTDisable packet. | |
3485 | (gdb_collect): Skip data collection if fast tracepoint is disabled. | |
3486 | (ust_marker_to_static_tracepoint): Do not ignore disabled static | |
3487 | tracepoints. | |
3488 | (gdb_probe): Skip data collection if static tracepoint is disabled. | |
d248b706 | 3489 | |
84e578fb DE |
3490 | 2011-05-10 Doug Evans <dje@google.com> |
3491 | ||
3492 | * thread-db.c (thread_db_handle_monitor_command): Handle elided path. | |
3493 | ||
71f55dd8 DE |
3494 | 2011-05-04 Doug Evans <dje@google.com> |
3495 | ||
3496 | * linux-low.c (linux_join): Skip process lookup. | |
3497 | * spu-low.c (spu_join): Ditto. | |
3498 | * server.c (join_inferiors_callback): Delete. | |
3499 | (process_serial_event): For 'D' packet (detach) call join_inferior | |
3500 | directly. | |
3501 | ||
4d393d60 JM |
3502 | 2011-05-04 Joseph Myers <joseph@codesourcery.com> |
3503 | ||
3504 | * README: Don't mention xscale*-*-linux*. | |
3505 | * configure.srv (xscale*-*-linux*): Don't handle target. | |
3506 | ||
b00ad6ff NF |
3507 | 2011-04-27 Nathan Froyd <froydnj@codesourcery.com> |
3508 | ||
3509 | * linux-x86-low.c (amd64_emit_const): Call memcpy instead of | |
3510 | casting pointers. | |
3511 | (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2): | |
3512 | (i386_emit_const, i386_emit_reg, i386_emit_int_call_1): | |
3513 | (i386_emit_void_call_2): Likewise. | |
3514 | ||
af96c192 YQ |
3515 | 2011-04-26 Yao Qi <yao@codesourcery.com> |
3516 | ||
43aaf8b6 PA |
3517 | * linux-low.c: Move common macros to linux-ptrace.h. |
3518 | Include linux-ptrace.h. | |
af96c192 YQ |
3519 | * Makefile.in (linux_ptrace_h): New. |
3520 | (linux-low.o): Depends on linux-ptrace.h. | |
3521 | ||
03f2bd59 JK |
3522 | 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
3523 | ||
3524 | * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if | |
3525 | RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call. | |
3526 | (remote_prepare): New function with most of the TCP code from ... | |
3527 | (remote_open): ... here. Detect PORT here unconditionally. Move also | |
3528 | setting transport_is_reliable. | |
3529 | * server.c (run_once): New variable. | |
3530 | (gdbserver_usage): Document it. | |
3531 | (main): Set run_once for `--once'. Call remote_prepare. Exit after | |
3532 | the first run if RUN_ONCE. | |
3533 | * server.h (run_once, remote_prepare): New declarations. | |
3534 | ||
7a9dd1b2 TT |
3535 | 2011-04-19 Tom Tromey <tromey@redhat.com> |
3536 | ||
3537 | * win32-low.c (handle_load_dll): Remove duplicate "the". | |
3538 | ||
81239425 PM |
3539 | 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr> |
3540 | ||
3541 | Remove support for old Cygwin 1.5 versions. | |
3542 | * win32-low.c (win32_create_inferior): Use new cygwin_path_list | |
3543 | function to avoid warning. | |
3544 | (win32_add_one_solib): Use cygwin_conv_path function to avoid | |
3545 | warning. | |
3546 | ||
9e0627f1 PM |
3547 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
3548 | ||
3549 | * gdbserver/server.h (Macro _): Define it if not available. | |
3550 | ||
588eebee MS |
3551 | 2011-03-14 Michael Snyder <msnyder@vmware.com> |
3552 | ||
348af9f7 | 3553 | * hostio.c (handle_close): Remove unnecessary null test. |
588eebee | 3554 | |
43f70d4c JB |
3555 | 2011-03-10 Joel Brobecker <brobecker@adacore.com> |
3556 | ||
3557 | * Makefile.in (maintainer-clean realclean distclean): Remove | |
3558 | "make ... subdir_do" command. | |
3559 | ||
348af9f7 MS |
3560 | 2011-03-10 Michael Snyder <msnyder@vmware.com> |
3561 | ||
3562 | * tracepoint.c (tracepoint_finish_step): Fix loop variable. | |
3563 | ||
3564 | * server.c (handle_v_run): Free alloced buffer on early return. | |
3565 | ||
e637a4f5 YQ |
3566 | 2011-03-09 Yao Qi <yao@codesourcery.com> |
3567 | ||
3568 | Revert: | |
3569 | 2011-03-04 Yao Qi <yao@codesourcery.com> | |
3570 | ||
3571 | * Makefile.in: Remove GNU make feature --directory. | |
3572 | ||
3573 | 2011-03-05 Yao Qi <yao@codesourcery.com> | |
3574 | ||
3575 | * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable. | |
3576 | (subdir_do): New make target. Copied from gdb/Makefile. | |
3577 | (maintainer-clean, realclean, distclean, clean): Call corresponding | |
3578 | make targets in common/Makefile. | |
3579 | ||
3580 | 2011-02-11 Yao Qi <yao@codesourcery.com> | |
3581 | ||
3582 | * configure.ac: Call AC_PROG_RANLIB. | |
3583 | * Makefile.in: Remove signals.o from OBS. Link libcommon.a. | |
3584 | * configure: Regenerate. | |
3585 | ||
e6edda56 JK |
3586 | 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
3587 | ||
3588 | * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically. | |
3589 | ||
e5141119 JB |
3590 | 2011-03-06 Yao Qi <yao@codesourcery.com> |
3591 | ||
3592 | * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR). | |
3593 | ||
64794aa4 JB |
3594 | 2011-03-05 Yao Qi <yao@codesourcery.com> |
3595 | ||
3596 | * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable. | |
3597 | (subdir_do): New make target. Copied from gdb/Makefile. | |
3598 | (maintainer-clean, realclean, distclean, clean): Call corresponding | |
3599 | make targets in common/Makefile. | |
3600 | ||
7a762829 YQ |
3601 | 2011-03-04 Yao Qi <yao@codesourcery.com> |
3602 | ||
3603 | * Makefile.in: Remove GNU make feature --directory. | |
3604 | ||
348af9f7 MS |
3605 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
3606 | ||
3607 | * server.c (queue_stop_reply): Call xmalloc not malloc. | |
3608 | ||
3609 | 2011-03-02 Michael Snyder <msnyder@vmware.com> | |
3610 | ||
3611 | * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc. | |
3612 | ||
9f72fee2 MS |
3613 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
3614 | ||
588eebee MS |
3615 | * tracepoint.c (cmd_qtv): Discard unused value 'packet'. |
3616 | (cmd_qtframe): Ditto. | |
3617 | (cmd_qtbuffer): Ditto. | |
3618 | (cmd_bigqtbuffer): Ditto. | |
3619 | ||
9f72fee2 MS |
3620 | * utils.c (decimal2str): Initialize 'width' to nine, then |
3621 | don't mess with it. | |
3622 | ||
8040bd49 UW |
3623 | 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
3624 | ||
3625 | * hostio.c (require_data): Free *data, not data. | |
3626 | ||
7e52cbd0 JK |
3627 | 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3628 | ||
3629 | * hostio.c (require_data): Use free, not xfree. | |
3630 | ||
9130f83e MS |
3631 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
3632 | ||
4b812f4e MS |
3633 | * server.c (handle_query): Discard unused value. |
3634 | ||
9130f83e MS |
3635 | * hostio.c (require_data): Free malloc memory before returning |
3636 | error. | |
3637 | ||
69d37113 MS |
3638 | 2011-02-26 Michael Snyder <msnyder@vmware.com> |
3639 | ||
3640 | * linux-low.c (list_threads): Call closedir for dirent. | |
3641 | ||
35f5825a MS |
3642 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
3643 | ||
2a589cef MS |
3644 | * i386-low.c (i386-length_and_rw_bits): Comment the fact that |
3645 | a case statement falls through. | |
3646 | ||
0adea5f7 MS |
3647 | * linux-low.c (linux_xfer_siginfo): Fix fencepost error. |
3648 | ||
35f5825a MS |
3649 | * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error |
3650 | in comparison. | |
3651 | ||
238f1c74 MS |
3652 | 2011-02-26 Michael Snyder <msnyder@vmware.com> |
3653 | ||
3654 | * utils.c (decimal2str): Eliminate dead code and dead param. | |
3655 | (pulongest): Drop dead param from call to decimal2str. | |
3656 | (plongest): Ditto. | |
3657 | ||
633ff500 JB |
3658 | 2011-02-24 Joel Brobecker <brobecker@adacore.com> |
3659 | ||
3660 | Revert the following patch (not approved yet): | |
3661 | 2011-02-21 Hui Zhu <teawater@gmail.com> | |
3662 | * tracepoint.c (tp_printf): New function. | |
3663 | (eval_agent_expr): Handle gdb_agent_op_printf. | |
3664 | ||
f9c6ff72 HZ |
3665 | 2011-02-21 Hui Zhu <teawater@gmail.com> |
3666 | ||
3667 | * tracepoint.c (tp_printf): New function. | |
3668 | (eval_agent_expr): Handle gdb_agent_op_printf. | |
3669 | ||
94d5e490 TT |
3670 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
3671 | ||
3672 | * Makefile.in (tracepoint-ipa.o): Depend on ax.def. | |
3673 | (tracepoint.o): Likewise. | |
3674 | * tracepoint.c (enum gdb_agent_op): Use ax.def. | |
3675 | (gdb_agent_op_names): Likewise. | |
3676 | ||
c7f96d2b TT |
3677 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
3678 | ||
3679 | * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick, | |
3680 | gdb_agent_op_rot>: New constants. | |
3681 | (gdb_agent_op_names): Add pick and roll. | |
3682 | (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New | |
3683 | cases. | |
3684 | ||
0feedb2c JK |
3685 | 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
3686 | ||
3687 | * aclocal.m4: Regenerated with aclocal-1.11.1. | |
3688 | ||
b3b9301e PA |
3689 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
3690 | ||
3691 | * server.c (handle_qxfer_traceframe_info): New. | |
3692 | (qxfer_packets): Register "traceframe-info". | |
3693 | (handle_query): Report support for qXfer:traceframe-info:read+. | |
3694 | * tracepoint.c (match_blocktype): New. | |
3695 | (traceframe_find_block_type): Rename to ... | |
3696 | (traceframe_walk_blocks): ... this. Add callback filter argument, | |
3697 | and use it. | |
3698 | (traceframe_find_block_type): New, reimplemented on top of | |
3699 | traceframe_walk_blocks. | |
3700 | (build_traceframe_info_xml): New. | |
3701 | (traceframe_read_info): New. | |
3702 | * server.h (traceframe_read_info): Declare. | |
3703 | ||
4f3e6fb7 YQ |
3704 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
3705 | ||
3706 | * configure.ac: Call AC_PROG_RANLIB. | |
3707 | * Makefile.in: Remove signals.o from OBS. Link libcommon.a. | |
3708 | * configure: Regenerate. | |
3709 | ||
764880b7 PA |
3710 | 2011-02-07 Pedro Alves <pedro@codesourcery.com> |
3711 | ||
3712 | * server.c (gdb_read_memory): Change return semantics to allow | |
3713 | partial transfers. | |
3714 | (handle_search_memory_1): Adjust. | |
3715 | (process_serial_event) <'m' packet>: Handle partial transfers. | |
3716 | * tracepoint.c (traceframe_read_mem): Handle partial transfers. | |
3717 | ||
1c79eb8a PA |
3718 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
3719 | ||
3720 | * regcache.c (init_register_cache): Initialize | |
3721 | regcache->register_status. | |
3722 | (free_register_cache): Release regcache->register_status. | |
3723 | (regcache_cpy): Copy register_status. | |
3724 | (registers_to_string): Print 'x's for unavailable registers. | |
3725 | (supply_register): Mark the register's status valid or | |
3726 | unavailable, depending on whether a buffer was passed in or not. | |
3727 | (supply_register_zeroed): New. | |
3728 | (supply_regblock): Mark the registers' status valid or | |
3729 | unavailable, depending on whether a buffer was passed in or not. | |
3730 | * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines. | |
3731 | (struct regcache): New `register_status' field. | |
3732 | (supply_register_zeroed): Declare. | |
3733 | * i387-fp.c (i387_xsave_to_cache): Zero out registers using | |
3734 | supply_register_zeroed, rather than passing a NULL buffer to | |
3735 | supply_register. | |
3736 | * tracepoint.c (fetch_traceframe_registers): Update comment. | |
3737 | ||
85724a0e PA |
3738 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
3739 | ||
3740 | * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register | |
3741 | buffer explicit. | |
3742 | ||
d08aafef PA |
3743 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
3744 | ||
3745 | * server.h (decode_xfer_write): Change prototype. | |
3746 | * remote-utils.c (decode_xfer_write): Remove `annex' parameter, | |
3747 | and don't extract the annex here. | |
3748 | * server.c (decode_xfer_read): Remove `annex' parameter, | |
3749 | and don't extract the annex here. | |
3750 | (decode_xfer): New. | |
3751 | (struct qxfer): New. | |
3752 | (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries) | |
3753 | (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu) | |
3754 | (handle_qxfer_statictrace): New functions, abstracted out from | |
3755 | handle_query, and made to use the struct qxfer interface. | |
3756 | (handle_threads_qxfer_proper): Rename to ... | |
3757 | (handle_qxfer_threads_proper): ... this. | |
3758 | (handle_threads_qxfer): Rename to ... | |
3759 | (handle_qxfer_threads): ... this. Adjust. | |
3760 | (qxfer_packets): New array. | |
3761 | (handle_qxfer): New function. | |
3762 | (handle_query): Use handle_qxfer. | |
3763 | ||
493e2a69 MS |
3764 | 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com> |
3765 | ||
3766 | * gdbreplay.c: Shorten lines of >= 80 columns. | |
3767 | * linux-low.c: Ditto. | |
3768 | * linux-ppc-low.c: Ditto. | |
3769 | * linux-s390-low.c: Ditto. | |
3770 | * linux-sparc-low.c: Ditto. | |
3771 | * linux-x86-low.c: Ditto. | |
3772 | * linux-xtensa-low.c: Ditto. | |
3773 | * mem-break.c: Ditto. | |
3774 | * nto-low.c: Ditto. | |
3775 | * regcache.h: Ditto. | |
3776 | * remote-utils.c: Ditto. | |
3777 | * server.c: Ditto. | |
3778 | * server.h: Ditto. | |
3779 | * thread-db.c: Ditto. | |
3780 | * tracepoint.c: Ditto. | |
3781 | * utils.c: Ditto. | |
3782 | * win32-low.h: Ditto. | |
3783 | ||
44944448 JB |
3784 | 2011-01-05 Joel Brobecker <brobecker@adacore.com> |
3785 | ||
3786 | * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year | |
3787 | update. | |
3788 | ||
71ce852c JB |
3789 | 2011-01-01 Joel Brobecker <brobecker@adacore.com> |
3790 | ||
3791 | * server.c (gdbserver_version): Update copyright year in version | |
3792 | output. | |
3793 | * gdbreplay.c (gdbreplay_version): Ditto. | |
3794 | ||
eb826dc6 MF |
3795 | 2010-12-29 Jie Zhang <jie.zhang@analog.com> |
3796 | ||
3797 | * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets. | |
3798 | * linux-bfin-low.c: New file. | |
3799 | * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and | |
3800 | PT_DATA_ADDR for BFIN targets. | |
3801 | * Makefile.in (SFILES): Add linux-bfin-low.c. | |
3802 | (clean): Remove reg-bfin.c. | |
3803 | (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets. | |
3804 | * README: Mention supported Blackfin targets. | |
3805 | ||
39ab222a MF |
3806 | 2010-12-23 Mike Frysinger <vapier@gentoo.org> |
3807 | ||
3808 | * .gitignore: New file. | |
3809 | ||
a1f2ce7d MF |
3810 | 2010-11-16 Mike Frysinger <vapier@gentoo.org> |
3811 | ||
3812 | * linux-low.c (linux_tracefork_child): Add char* cast to arg. | |
3813 | ||
f474844c JZ |
3814 | 2010-10-22 Jie Zhang <jie@codesourcery.com> |
3815 | ||
3816 | * Makefile.in: Add FLAGS_TO_PASS variable. | |
3817 | (install): Remove dependency of install-only and recursively | |
3818 | invoke make for install-only. | |
3819 | ||
f1048712 DE |
3820 | 2010-10-04 Doug Evans <dje@google.com> |
3821 | ||
3822 | * Makefile.in (uninstall): Use $(DESTDIR). | |
3823 | ||
b53a1623 PA |
3824 | 2010-09-24 Pedro Alves <pedro@codesourcery.com> |
3825 | ||
e6ee044d PA |
3826 | PR gdb/11842 |
3827 | ||
b53a1623 PA |
3828 | * linux-x86-low.c (compat_siginfo_from_siginfo) |
3829 | (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when | |
3830 | si_code is < 0. Check for si_code == SI_TIMER before checking for | |
3831 | si_code < 0. | |
3832 | ||
fa1bd1e4 JB |
3833 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
3834 | ||
3835 | * lynx-i386-low.c: New file. | |
3836 | * configure.srv: Add handling of i[34567]86-*-lynxos* targets. | |
3837 | ||
47fac8f8 JB |
3838 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
3839 | ||
3840 | * lynx-low.c (ptrace_request_to_str): Remove handling for | |
3841 | request values that have been removed in LynxOS 5.x. | |
3842 | ||
1adfc54d JB |
3843 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
3844 | ||
3845 | * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of | |
3846 | <ptrace.h> | |
3847 | ||
c2a66c29 NS |
3848 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
3849 | ||
3850 | * configure.ac: Add --enable-inprocess-agent option. | |
3851 | * configure: Rebuilt. | |
3852 | ||
32fcada3 YQ |
3853 | 2010-09-06 Yao Qi <yao@codesourcery.com> |
3854 | ||
3855 | * linux-low.c (linux_kill): Remove unused variable. | |
3856 | (linux_stabilize_threads): Likewise. | |
3857 | * server.c (start_inferior): Likewise. | |
3858 | (queue_stop_reply_callback): Likewise. | |
3859 | * tracepoint.c (do_action_at_tracepoint): Likewise. | |
3860 | ||
0cccb683 YQ |
3861 | 2010-09-06 Yao Qi <yao@codesourcery.com> |
3862 | ||
3863 | * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior | |
3864 | on return. | |
3865 | ||
423ec54c JK |
3866 | 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
3867 | ||
3868 | * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER. | |
3869 | ||
12ac6819 PA |
3870 | 2010-09-06 Pedro Alves <pedro@codesourcery.com> |
3871 | ||
3872 | * Makefile.in (install-only): Replace $IPA_DEPFILES with | |
3873 | "$(IPA_DEPFILES)". | |
3874 | ||
8ed54b31 JB |
3875 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
3876 | ||
3877 | * gdbserver/lynx-low.c, gdbserver/lynx-low.h, | |
3878 | gdbserver/lynx-ppc-low.c: New files. | |
3879 | * Makefile.in (lynx_low_h): New variable. | |
3880 | (lynx-low.o, lynx-ppc-low.o): New rules. | |
3881 | * configure.ac: On LynxOS, link with -lnetinet. | |
3882 | * configure.srv: Add handling of powerpc-*-lynxos* targets. | |
3883 | * configure: regenerate. | |
3884 | ||
bb0116a4 JB |
3885 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
3886 | ||
3887 | * Makefile.in (vasprintf.o, vsnprintf.o): New rules. | |
3888 | * configure.ac: Add check for vasprintf and vsnprintf. | |
3889 | * configure, config.in: Regenerate. | |
3890 | * server.h (vasprintf, vsnprintf): Add conditional declarations. | |
3891 | ||
a778ab81 | 3892 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
3893 | ||
3894 | * gdbreplay.c: Move include of alloca.h up, next to include of | |
3895 | malloc.h. | |
3896 | * server.h: Add include of malloc.h. | |
3897 | * mem-break.c: Remove include of malloc.h. | |
3898 | * server.c, tracepoint.c, utils.c, win32-low.c: Likewise. | |
3899 | ||
8b034a19 | 3900 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
3901 | ||
3902 | * Makefile.in (memmem.o): Build with -Wno-error. | |
3903 | ||
3904 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> | |
3905 | ||
3906 | * utils.c (xsnprintf): Make non-static. | |
3907 | * server.h: Add xsnprintf declaration. | |
3908 | * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c: | |
3909 | replace calls to snprintf by calls to xsnprintf throughout. | |
3910 | ||
3911 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> | |
3912 | ||
3913 | * configure.ac: Add configure check for alloca. | |
3914 | * configure, config.in: Regenerate. | |
3915 | * server.h: Include alloca.h if it exists. | |
3916 | * gdbreplay.c: Include alloca.h if it exists. | |
3917 | ||
1a981360 PA |
3918 | 2010-08-28 Pedro Alves <pedro@codesourcery.com> |
3919 | ||
3920 | * linux-low.c (__SIGRTMIN): Define if not already defined. | |
3921 | (linux_create_inferior): Check for __ANDROID__ rather than | |
3922 | __SIGRTMIN. | |
3923 | (enqueue_one_deferred_signal): Don't requeue non-RT signals that | |
3924 | are already deferred. | |
3925 | (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN. | |
3926 | (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is | |
3927 | stopped and already has a pending signal to report. | |
3928 | (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has | |
3929 | a pending signal to report or is moving out of a jump pad. | |
3930 | (linux_init_signals): Check for __ANDROID__ rather than | |
3931 | __SIGRTMIN. | |
3932 | ||
b4d51a55 PA |
3933 | 2010-08-28 Pedro Alves <pedro@codesourcery.com> |
3934 | ||
3935 | * linux-low.c (linux_stabilize_threads): Wrap debug output in a | |
3936 | debug_threads check. Avoid a linear search when not doing debug | |
3937 | output. | |
3938 | ||
ec48365d PA |
3939 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
3940 | ||
3941 | * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t. | |
3942 | (struct gdb_event) <fd>: Change type to gdb_fildes_t. | |
3943 | (struct file_handler) <fd>: Change type to gdb_fildes_t. | |
3944 | (process_event): Change local fd's type to gdb_fildes_t. | |
3945 | (create_file_handler): Adjust prototype. | |
3946 | (delete_file_handler): Adjust prototype. | |
3947 | (handle_file_event): Adjust prototype. Use pfildes. | |
3948 | (create_file_event): Adjsut prototype. | |
3949 | * remote-utils.c (remote_desc, listen_desc): Change type to | |
3950 | gdb_fildes_t. | |
3951 | * server.h: New gdb_fildes_t typedef. | |
3952 | [USE_WIN32API]: Include winsock2.h. | |
3953 | (delete_file_handler, add_file_handler): Adjust prototypes. | |
3954 | (pfildes): Declare. | |
3955 | * utils.c (pfildes): New. | |
3956 | ||
854d88f0 PA |
3957 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
3958 | ||
3959 | * configure.ac (build_warnings): Add -Wno-char-subscripts. | |
3960 | * configure: Regenerate. | |
3961 | ||
0146f85b PA |
3962 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
3963 | ||
3964 | * linux-low.c (linux_unprepare_to_access_memory): Rename to ... | |
3965 | (linux_done_accessing_memory): ... this. | |
3966 | (linux_target_ops): Adjust. | |
3967 | * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust. | |
3968 | * nto-low.c (nto_target_ops): Adjust comment. | |
3969 | * server.c (gdb_read_memory, gdb_write_memory): Adjust. | |
3970 | * spu-low.c (spu_target_ops): Adjust comment. | |
3971 | * target.h (target_ops): Rename unprepare_to_access_memory field | |
3972 | to done_accessing_memory. | |
3973 | (unprepare_to_access_memory): Rename to ... | |
3974 | (done_accessing_memory): ... this. | |
3975 | ||
90d74c30 PA |
3976 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
3977 | ||
3978 | * linux-low.c (linux_prepare_to_access_memory): New. | |
3979 | (linux_unprepare_to_access_memory): New. | |
3980 | (linux_target_ops): Install them. | |
3981 | * server.c (read_memory): Rename to ... | |
3982 | (gdb_read_memory): ... this. Use | |
3983 | prepare_to_access_memory/prepare_to_access_memory. | |
3984 | (write_memory): Rename to ... | |
3985 | (gdb_write_memory): ... this. Use | |
3986 | prepare_to_access_memory/prepare_to_access_memory. | |
3987 | (handle_search_memory_1): Adjust. | |
3988 | (process_serial_event): Adjust. | |
3989 | * target.h (struct target_ops): New fields | |
3990 | prepare_to_access_memory and unprepare_to_access_memory. | |
3991 | (prepare_to_access_memory, unprepare_to_access_memory): New. | |
3992 | * linux-x86-low.c (x86_insert_point, x86_remove_point): Use | |
3993 | prepare_to_access_memory/prepare_to_access_memory. | |
3994 | * nto-low.c (nto_target_ops): Adjust. | |
3995 | * spu-low.c (spu_target_ops): Adjust. | |
3996 | * win32-low.c (win32_target_ops): Adjust. | |
3997 | ||
fd467969 PA |
3998 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
3999 | ||
4000 | * Makefile.in (WARN_CFLAGS): Get it from configure. | |
4001 | (WERROR_CFLAGS): New. | |
4002 | (INTERNAL_CFLAGS): Add WERROR_CFLAGS. | |
4003 | * configure.ac: Introduce --enable-werror, which adds -Werror to | |
4004 | the compiler command line. Enabled by default. Disable with | |
4005 | --disable-werror. Add -Wdeclaration-after-statement | |
4006 | Wpointer-arith and -Wformat-nonliteral to warning flags. | |
4007 | * configure: Regenerate. | |
4008 | ||
331e2f5f PA |
4009 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
4010 | ||
4011 | * mem-break.c [HAVE_MALLOC_H]: Include malloc.h. | |
4012 | ||
e581f2b4 PA |
4013 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
4014 | ||
4015 | * gdbreplay.c (remote_error): New. | |
4016 | (gdbchar): New. | |
4017 | (expect): Use gdbchar. Check for error reading from GDB. | |
4018 | Clarify sync error output. | |
4019 | (play): Check for errors writing to GDB. | |
4020 | * linux-low.c (sigchld_handler): Really ignore `write' errors. | |
4021 | * remote-utils.c (getpkt): Check for errors writing to the remote | |
4022 | descriptor. | |
4023 | ||
3c11dd79 PA |
4024 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
4025 | ||
4026 | * linux-low.c (linux_wait_1): Move non-debugging code out of | |
4027 | `debug_threads' control. | |
4028 | ||
d20a8ad9 PA |
4029 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
4030 | ||
4031 | * linux-low.c (linux_wait_1): Don't set last_status here. | |
4032 | * server.c (push_event, queue_stop_reply_callback): Assert we're | |
4033 | not pushing a TARGET_WAITKIND_IGNORE event. | |
4034 | (start_inferior, start_inferior, attach_inferior, handle_v_cont) | |
4035 | (myresume, handle_target_event): Set the thread's last_resume_kind | |
4036 | and last_status from the target returned status. | |
4037 | ||
964e4306 PA |
4038 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
4039 | ||
4040 | PR threads/10729 | |
4041 | ||
4042 | * linux-x86-low.c (update_debug_registers_callback): New. | |
4043 | (i386_dr_low_set_addr): Use it. | |
4044 | (i386_dr_low_get_addr): New. | |
4045 | (i386_dr_low_set_control): Use update_debug_registers_callback. | |
4046 | (i386_dr_low_get_control): New. | |
4047 | (i386_dr_low_get_status): Adjust. | |
4048 | * linux-low.c (linux_stop_lwp): New. | |
4049 | * linux-low.h (linux_stop_lwp): Declare. | |
4050 | ||
4051 | * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as | |
4052 | argument instead of a i386_debug_reg_state. | |
4053 | (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of | |
4054 | a i386_debug_reg_state. | |
4055 | (i386_insert_aligned_watchpoint): Adjust. | |
4056 | (i386_remove_aligned_watchpoint): Adjust. | |
4057 | (i386_low_stopped_data_address): Read the debug registers from the | |
4058 | inferior instead of from the mirrors. | |
4059 | * i386-low.h (struct i386_debug_reg_state): Extend comment. | |
4060 | (i386_dr_low_get_addr): Declare. | |
4061 | (i386_dr_low_get_control): Declare. | |
4062 | (i386_dr_low_get_status): Change prototype. | |
4063 | ||
4064 | * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals. | |
4065 | (i386_dr_low_get_addr): New. | |
4066 | (i386_dr_low_get_control): New. | |
4067 | (i386_dr_low_get_status): Adjust prototype. Return | |
4068 | dr_status_mirror. | |
4069 | (i386_initial_stuff): Clear dr_status_mirror and | |
4070 | dr_control_mirror. | |
4071 | (i386_get_thread_context): Adjust. | |
4072 | (i386_set_thread_context): Adjust. | |
4073 | (i386_thread_added): Adjust. | |
4074 | ||
5f21a75b PA |
4075 | 2010-08-24 Pedro Alves <pedro@codesourcery.com> |
4076 | ||
4077 | * linux-low.h (linux_thread_area): Delete declaration. | |
4078 | ||
3e4c1235 TS |
4079 | 2010-08-11 Thomas Schwinge <thomas@codesourcery.com> |
4080 | ||
4081 | * linux-low.c (linux_wait_1): Correctly return the ptid of the child | |
4082 | after its termination. | |
4083 | ||
1971b033 PA |
4084 | 2010-08-09 Pedro Alves <pedro@codesourcery.com> |
4085 | ||
4086 | * linux-low.c (gdb_wants_lwp_stopped): Delete. | |
4087 | (gdb_wants_all_stopped): Delete. | |
4088 | (linux_wait_1): Don't call them. | |
4089 | * server.c (handle_v_cont): Tag all threads as want-stopped. | |
4090 | (gdb_wants_thread_stopped): Fix comments. Tag the thread that | |
4091 | stopped as "client-wants-stopped". | |
4092 | ||
310444ac PA |
4093 | 2010-07-31 Pedro Alves <pedro@codesourcery.com> |
4094 | ||
4095 | * Makefile.in (signals_h): New. | |
4096 | (server_h): Depend on it. | |
4097 | (server.o): Don't depend on $(signals_def). | |
4098 | (signals.o): Depend on $(signals_def). | |
4099 | ||
a19cae16 JK |
4100 | 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
4101 | ||
4102 | * Makefile.in (signals_def): New. | |
4103 | (server_h): Append include/gdb/signals.h and signals_def. | |
4104 | (server.o): Append signals_def. | |
4105 | ||
30d50328 JK |
4106 | 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
4107 | ||
4108 | * server.c (handle_target_event): Use target_signal_to_host for | |
4109 | resume_info.sig initialization. | |
4110 | * target.h (struct thread_resume) <sig>: New comment. | |
4111 | ||
5c3216e2 OS |
4112 | 2010-07-20 Ozkan Sezer <sezeroz@gmail.com> |
4113 | ||
c6f46ca0 OS |
4114 | * server.c (handle_query): strcpy() the returned string from paddress() |
4115 | instead of sprintf(). | |
5c3216e2 OS |
4116 | * utils.c (paddress): Return phex_nz(). |
4117 | ||
6bd31874 JB |
4118 | 2010-07-07 Joel Brobecker <brobecker@adacore.com> |
4119 | ||
4120 | * server.c (handle_v_cont): Call mourn_inferior if process | |
4121 | just exited. | |
4122 | (myresume): Likewise. | |
4123 | ||
0fb4aa4b PA |
4124 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
4125 | ||
4126 | Static tracepoints, and integration with UST. | |
4127 | ||
4128 | * configure.ac: Handle --with-ust. substitute ustlibs and ustinc. | |
4129 | * mem-break.c (uninsert_all_breakpoints) | |
4130 | (reinsert_all_breakpoints): New. | |
4131 | * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints): | |
4132 | * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New. | |
4133 | (gdb_agent_ust_loaded, helper_thread_id) | |
4134 | (gdb_agent_helper_thread_id): New macros. | |
4135 | (struct ipa_sym_addresses): Add addr_ust_loaded, | |
4136 | addr_helper_thread_id, addr_cmd_buf. | |
4137 | (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf. | |
4138 | (in_process_agent_loaded_ust): New. | |
4139 | (write_e_ust_not_loaded): New. | |
4140 | (maybe_write_ipa_ust_not_loaded): New. | |
4141 | (struct collect_static_trace_data_action): New. | |
4142 | (enum tracepoint_type) <static_tracepoint>: New. | |
4143 | (struct tracepoint) <handle>: Mention static tracepoints. | |
4144 | (struct static_tracepoint_ctx): New. | |
4145 | (CMD_BUF_SIZE): New. | |
4146 | (add_tracepoint_action): Handle static tracepoint actions. | |
4147 | (unprobe_marker_at): New. | |
4148 | (clear_installed_tracepoints): Handle static tracepoints. | |
4149 | (cmd_qtdp): Handle static tracepoints. | |
4150 | (probe_marker_at): New. | |
4151 | (cmd_qtstart): Handle static tracepoints. | |
4152 | (response_tracepoint): Handle static tracepoints. | |
4153 | (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New. | |
4154 | (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat. | |
4155 | (get_context_regcache): Handle static tracepoints. | |
4156 | (do_action_at_tracepoint): Handle static tracepoint actions. | |
4157 | (traceframe_find_block_type): Handle static trace data blocks. | |
4158 | (traceframe_read_sdata): New. | |
4159 | (download_tracepoints): Download static tracepoint actions. | |
4160 | [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h. | |
4161 | (GDB_PROBE_NAME): New. | |
4162 | (ust_ops): New. | |
4163 | (GET_UST_SYM): New. | |
4164 | (USTF): New. | |
4165 | (dlsym_ust): New. | |
4166 | (ust_marker_to_static_tracepoint): New. | |
4167 | (gdb_probe): New. | |
4168 | (collect_ust_data_at_tracepoint): New. | |
4169 | (gdb_ust_probe): New. | |
4170 | (UNIX_PATH_MAX, SOCK_DIR): New. | |
4171 | (gdb_ust_connect_sync_socket): New. | |
4172 | (resume_thread, stop_thread): New. | |
4173 | (run_inferior_command): New. | |
4174 | (init_named_socket): New. | |
4175 | (gdb_ust_socket_init): New. | |
4176 | (cstr_to_hexstr): New. | |
4177 | (next_st): New. | |
4178 | (first_marker, next_marker): New. | |
4179 | (response_ust_marker): New. | |
4180 | (cmd_qtfstm, cmd_qtsstm): New. | |
4181 | (unprobe_marker_at, probe_marker_at): New. | |
4182 | (cmd_qtstmat, gdb_ust_thread): New. | |
4183 | (gdb_ust_init): New. | |
4184 | (initialize_tracepoint_ftlib): Call gdb_ust_init. | |
4185 | * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h | |
4186 | (ST_REGENTRY): New. | |
4187 | (x86_64_st_collect_regmap): New. | |
4188 | (X86_64_NUM_ST_COLLECT_GREGS): New. | |
4189 | (AMD64_RIP_REGNUM): New. | |
4190 | (supply_static_tracepoint_registers): New. | |
4191 | * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h | |
4192 | (ST_REGENTRY): New. | |
4193 | (i386_st_collect_regmap): New. | |
4194 | (i386_NUM_ST_COLLECT_GREGS): New. | |
4195 | (supply_static_tracepoint_registers): New. | |
4196 | * server.c (handle_query): Handle qXfer:statictrace:read. | |
4197 | <qSupported>: Report support for StaticTracepoints, and | |
4198 | qXfer:statictrace:read features. | |
4199 | * server.h (traceframe_read_sdata) | |
4200 | (supply_static_tracepoint_registers): Declare. | |
4201 | * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex) | |
4202 | (unpack_varlen_hex): Include in IPA build. | |
4203 | * Makefile.in (ustlibs, ustinc): New. | |
4204 | (IPA_OBJS): Add remote-utils-ipa.o. | |
4205 | ($(IPA_LIB)): Link -ldl and -lpthread. | |
4206 | (UST_CFLAGS): New. | |
4207 | (IPAGENT_CFLAGS): Add UST_CFLAGS. | |
4208 | * config.in, configure: Regenerate. | |
4209 | ||
9e4344e5 PA |
4210 | 2010-06-20 Ian Lance Taylor <iant@google.com> |
4211 | Pedro Alves <pedro@codesourcery.com> | |
4212 | ||
4213 | * linux-x86-low.c (always_true): Delete. | |
4214 | (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of | |
4215 | trying to fool the compiler with always_true. | |
4216 | ||
c6beb2cb PA |
4217 | 2010-06-20 Pedro Alves <pedro@codesourcery.com> |
4218 | ||
4219 | * tracepoint.c (condition_true_at_tracepoint): Don't run compiled | |
4220 | conditions in gdbserver. | |
4221 | ||
d2ed6730 UW |
4222 | 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com> |
4223 | ||
4224 | * spu-low.c (spu_read_memory): Wrap around local store limit. | |
4225 | (spu_write_memory): Likewise. | |
4226 | ||
4e29fb54 PA |
4227 | 2010-06-15 Pedro Alves <pedro@codesourcery.com> |
4228 | ||
4229 | * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2) | |
4230 | (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with | |
4231 | LONGEST uses. | |
4232 | * server.h (struct emit_ops): Replace int64_t uses with LONGEST | |
4233 | uses. | |
4234 | * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t | |
4235 | uses with LONGEST uses. | |
4236 | ||
6a271cae PA |
4237 | 2010-06-14 Stan Shebs <stan@codesourcery.com> |
4238 | Pedro Alves <pedro@codesourcery.com> | |
4239 | ||
4240 | Bytecode compiler. | |
4241 | ||
4242 | * linux-x86-low.c: Include limits.h. | |
4243 | (add_insns): New. | |
4244 | (always_true): New. | |
4245 | (EMIT_ASM): New. | |
4246 | (EMIT_ASM32): New. | |
4247 | (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add) | |
4248 | (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh) | |
4249 | (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext, | |
4250 | (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or) | |
4251 | (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal, | |
4252 | (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref, | |
4253 | (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address) | |
4254 | (amd64_emit_const, amd64_emit_call, amd64_emit_reg) | |
4255 | (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext) | |
4256 | (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1) | |
4257 | (amd64_emit_void_call_2): New. | |
4258 | (amd64_emit_ops): New. | |
4259 | (i386_emit_prologue, i386_emit_epilogue, i386_emit_add) | |
4260 | (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed) | |
4261 | (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not) | |
4262 | (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor) | |
4263 | (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed) | |
4264 | (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto) | |
4265 | (i386_emit_goto, i386_write_goto_address, i386_emit_const) | |
4266 | (i386_emit_call, i386_emit_reg, i386_emit_pop) | |
4267 | (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap) | |
4268 | (i386_emit_stack_adjust, i386_emit_int_call_1) | |
4269 | (i386_emit_void_call_2): New. | |
4270 | (i386_emit_ops): New. | |
4271 | (x86_emit_ops): New. | |
4272 | (the_low_target): Install x86_emit_ops. | |
4273 | * server.h (struct emit_ops): New. | |
4274 | (get_raw_reg_func_addr): Declare. | |
4275 | (current_insn_ptr, emit_error): Declare. | |
4276 | * tracepoint.c (get_raw_reg, get_trace_state_variable_value) | |
4277 | (set_trace_state_variable_value): New defines. | |
4278 | (struct ipa_sym_addresses): New fields addr_get_raw_reg, | |
4279 | addr_get_trace_state_variable_value and | |
4280 | addr_set_trace_state_variable_value. | |
4281 | (symbol_list): New fields for get_raw_reg, | |
4282 | get_trace_state_variable_value and set_trace_state_variable_value. | |
4283 | (condfn): New typedef. | |
4284 | (struct tracepoint): New field `compiled_cond'. | |
4285 | (do_action_at_tracepoint): Clear compiled_cond. | |
4286 | (get_trace_state_variable_value, set_trace_state_variable_value): | |
4287 | Export in the IPA. | |
4288 | (condition_true_at_tracepoint): If there's a compiled condition, | |
4289 | run that. | |
4290 | (current_insn_ptr, emit_error): New globals. | |
4291 | (struct bytecode_address): New. | |
4292 | (get_raw_reg_func_addr): New. | |
4293 | (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul) | |
4294 | (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext) | |
4295 | (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor) | |
4296 | (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned) | |
4297 | (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const) | |
4298 | (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap) | |
4299 | (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New. | |
4300 | (compile_tracepoint_condition, compile_bytecodes): New. | |
4301 | * target.h (emit_ops): Forward declare. | |
4302 | (struct target_ops): New field emit_ops. | |
4303 | (target_emit_ops): New. | |
4304 | * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New. | |
4305 | * linux-i386-ipa.c (gdb_agent_get_raw_reg): New. | |
4306 | * linux-low.c (linux_emit_ops): New. | |
4307 | (linux_target_ops): Install it. | |
4308 | * linux-low.h (struct linux_target_ops): New field emit_ops. | |
4309 | ||
92b72907 UW |
4310 | 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com> |
4311 | ||
4312 | * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR. | |
4313 | * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW. | |
4314 | ||
fa593d66 PA |
4315 | 2010-06-01 Pedro Alves <pedro@codesourcery.com> |
4316 | Stan Shebs <stan@codesourcery.com> | |
4317 | ||
4318 | * Makefile.in (IPA_DEPFILES, extra_libraries): New. | |
4319 | (all): Depend on $(extra_libraries). | |
4320 | (install-only): Install the IPA. | |
4321 | (IPA_OBJS, IPA_LIB): New. | |
4322 | (clean): Remove the IPA lib. | |
4323 | (IPAGENT_CFLAGS): New. | |
4324 | (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o) | |
4325 | (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o) | |
4326 | (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules. | |
4327 | * linux-amd64-ipa.c, linux-i386-ipa.c: New files. | |
4328 | * configure.ac: Check for atomic builtins support in the compiler. | |
4329 | (IPA_DEPFILES, extra_libraries): Define. | |
4330 | * configure.srv (ipa_obj): Add description. | |
4331 | (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define. | |
4332 | (i[34567]86-*-linux*): Set ipa_obj. | |
4333 | (x86_64-*-linux*): Set ipa_obj. | |
4334 | * linux-low.c (stabilizing_threads): New. | |
4335 | (supports_fast_tracepoints): New. | |
4336 | (linux_detach): Stabilize threads before detaching. | |
4337 | (handle_tracepoints): Handle internal tracing breakpoints. Assert | |
4338 | the lwp is either not stabilizing, or is moving out of a jump pad. | |
4339 | (linux_fast_tracepoint_collecting): New. | |
4340 | (maybe_move_out_of_jump_pad): New. | |
4341 | (enqueue_one_deferred_signal): New. | |
4342 | (dequeue_one_deferred_signal): New. | |
4343 | (linux_wait_for_event_1): If moving out of a jump pad, defer | |
4344 | pending signals to later. | |
4345 | (linux_stabilize_threads): New. | |
4346 | (linux_wait_1): Check if threads need moving out of jump pads, and | |
4347 | do it if so. | |
4348 | (stuck_in_jump_pad_callback): New. | |
4349 | (move_out_of_jump_pad_callback): New. | |
4350 | (lwp_running): New. | |
4351 | (linux_resume_one_lwp): Handle moving out of jump pads. | |
4352 | (linux_set_resume_request): Dequeue deferred signals. | |
4353 | (need_step_over_p): Also step over fast tracepoint jumps. | |
4354 | (start_step_over): Also uninsert fast tracepoint jumps. | |
4355 | (finish_step_over): Also reinsert fast tracepoint jumps. | |
4356 | (linux_install_fast_tracepoint_jump): New. | |
4357 | (linux_target_ops): Install linux_stabilize_threads and | |
4358 | linux_install_fast_tracepoint_jump_pad. | |
4359 | * linux-low.h (linux_target_ops) <get_thread_area, | |
4360 | install_fast_tracepoint_jump_pad>: New fields. | |
4361 | (struct lwp_info) <collecting_fast_tracepoint, | |
4362 | pending_signals_to_report, exit_jump_pad_bkpt>: New fields. | |
4363 | (linux_get_thread_area): Declare. | |
4364 | * linux-x86-low.c (jump_insn): New. | |
4365 | (x86_get_thread_area): New. | |
4366 | (append_insns): New. | |
4367 | (push_opcode): New. | |
4368 | (amd64_install_fast_tracepoint_jump_pad): New. | |
4369 | (i386_install_fast_tracepoint_jump_pad): New. | |
4370 | (x86_install_fast_tracepoint_jump_pad): New. | |
4371 | (the_low_target): Install x86_get_thread_area and | |
4372 | x86_install_fast_tracepoint_jump_pad. | |
4373 | * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory. | |
4374 | (struct fast_tracepoint_jump): New. | |
4375 | (fast_tracepoint_jump_insn): New. | |
4376 | (fast_tracepoint_jump_shadow): New. | |
4377 | (find_fast_tracepoint_jump_at): New. | |
4378 | (fast_tracepoint_jump_here): New. | |
4379 | (delete_fast_tracepoint_jump): New. | |
4380 | (set_fast_tracepoint_jump): New. | |
4381 | (uninsert_fast_tracepoint_jumps_at): New. | |
4382 | (reinsert_fast_tracepoint_jumps_at): New. | |
4383 | (set_breakpoint_at): Use write_inferior_memory. | |
4384 | (uninsert_raw_breakpoint): Use write_inferior_memory. | |
4385 | (check_mem_read): Mask out fast tracepoint jumps. | |
4386 | (check_mem_write): Mask out fast tracepoint jumps. | |
4387 | * mem-break.h (struct fast_tracepoint_jump): Forward declare. | |
4388 | (set_fast_tracepoint_jump): Declare. | |
4389 | (delete_fast_tracepoint_jump) | |
4390 | (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at) | |
4391 | (reinsert_fast_tracepoint_jumps_at): Declare. | |
4392 | * regcache.c: Don't compile many functions when building the | |
4393 | in-process agent library. | |
4394 | (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating | |
4395 | the register buffer in the heap. | |
4396 | (free_register_cache): If the register buffer isn't owned by the | |
4397 | regcache, don't free it. | |
4398 | (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate | |
4399 | pre-existing register caches. | |
4400 | * remote-utils.c (convert_int_to_ascii): Constify `from' parameter | |
4401 | type. | |
4402 | (convert_ascii_to_int): : Constify `from' parameter type. | |
4403 | (decode_M_packet, decode_X_packet): Replace the `to' parameter by | |
4404 | a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc | |
4405 | the needed buffer in-place. | |
4406 | (relocate_instruction): New. | |
4407 | * server.c (handle_query) <qSymbols>: If the target supports | |
4408 | tracepoints, give it a chance of looking up symbols. Report | |
4409 | support for fast tracepoints. | |
4410 | (handle_status): Stabilize threads. | |
4411 | (process_serial_event): Adjust. | |
4412 | * server.h (struct fast_tracepoint_jump): Forward declare. | |
4413 | (struct process_info) <fast_tracepoint_jumps>: New field. | |
4414 | (convert_ascii_to_int, convert_int_to_ascii): Adjust. | |
4415 | (decode_X_packet, decode_M_packet): Adjust. | |
4416 | (relocate_instruction): Declare. | |
4417 | (in_process_agent_loaded): Declare. | |
4418 | (tracepoint_look_up_symbols): Declare. | |
4419 | (struct fast_tpoint_collect_status): Declare. | |
4420 | (fast_tracepoint_collecting): Declare. | |
4421 | (force_unlock_trace_buffer): Declare. | |
4422 | (handle_tracepoint_bkpts): Declare. | |
4423 | (initialize_low_tracepoint) | |
4424 | (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare. | |
4425 | * target.h (struct target_ops) <stabilize_threads, | |
4426 | install_fast_tracepoint_jump_pad>: New fields. | |
4427 | (stabilize_threads, install_fast_tracepoint_jump_pad): New. | |
4428 | * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h. | |
4429 | [HAVE_STDINT_H]: Include stdint.h. | |
4430 | (trace_debug_1): Rename to ... | |
4431 | (trace_vdebug): ... this. | |
4432 | (trace_debug): Rename to ... | |
4433 | (trace_debug_1): ... this. Add `level' parameter. | |
4434 | (trace_debug): New. | |
4435 | (ATTR_USED, ATTR_NOINLINE): New. | |
4436 | (IP_AGENT_EXPORT): New. | |
4437 | (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end) | |
4438 | (collecting, gdb_collect, stop_tracing, flush_trace_buffer) | |
4439 | (about_to_request_buffer_space, trace_buffer_is_full) | |
4440 | (stopping_tracepoint, expr_eval_result, error_tracepoint) | |
4441 | (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr) | |
4442 | (trace_buffer_lo, trace_buffer_hi, traceframe_read_count) | |
4443 | (traceframe_write_count, traceframes_created) | |
4444 | (trace_state_variables) | |
4445 | New renaming defines. | |
4446 | (struct ipa_sym_addresses): New. | |
4447 | (STRINGIZE_1, STRINGIZE, IPA_SYM): New. | |
4448 | (symbol_list): New. | |
4449 | (ipa_sym_addrs): New. | |
4450 | (all_tracepoint_symbols_looked_up): New. | |
4451 | (in_process_agent_loaded): New. | |
4452 | (write_e_ipa_not_loaded): New. | |
4453 | (maybe_write_ipa_not_loaded): New. | |
4454 | (tracepoint_look_up_symbols): New. | |
4455 | (debug_threads) [IN_PROCESS_AGENT]: New. | |
4456 | (read_inferior_memory) [IN_PROCESS_AGENT]: New. | |
4457 | (UNKNOWN_SIDE_EFFECTS): New. | |
4458 | (stop_tracing): New. | |
4459 | (flush_trace_buffer): New. | |
4460 | (stop_tracing_bkpt): New. | |
4461 | (flush_trace_buffer_bkpt): New. | |
4462 | (read_inferior_integer): New. | |
4463 | (read_inferior_uinteger): New. | |
4464 | (read_inferior_data_pointer): New. | |
4465 | (write_inferior_data_pointer): New. | |
4466 | (write_inferior_integer): New. | |
4467 | (write_inferior_uinteger): New. | |
4468 | (struct collect_static_trace_data_action): Delete. | |
4469 | (enum tracepoint_type): New. | |
4470 | (struct tracepoint) <type>: New field `type'. | |
43aaf8b6 PA |
4471 | <actions_str, step_actions, step_actions_str>: Only include in |
4472 | GDBserver. | |
fa593d66 PA |
4473 | <orig_size, obj_addr_on_target, adjusted_insn_addr> |
4474 | <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields. | |
4475 | (tracepoints): Use IP_AGENT_EXPORT. | |
4476 | (last_tracepoint): Don't include in the IPA. | |
4477 | (stopping_tracepoint): Use IP_AGENT_EXPORT. | |
4478 | (trace_buffer_is_full): Use IP_AGENT_EXPORT. | |
4479 | (alloced_trace_state_variables): New. | |
4480 | (trace_state_variables): Use IP_AGENT_EXPORT. | |
4481 | (traceframe_t): Delete unused variable. | |
4482 | (circular_trace_buffer): Don't include in the IPA. | |
4483 | (trace_buffer_start): Delete. | |
4484 | (struct trace_buffer_control): New. | |
4485 | (trace_buffer_free): Delete. | |
4486 | (struct ipa_trace_buffer_control): New. | |
4487 | (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV) | |
4488 | (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT): | |
4489 | New. | |
4490 | (trace_buffer_ctrl): New. | |
4491 | (TRACE_BUFFER_CTRL_CURR): New. | |
4492 | (trace_buffer_start, trace_buffer_free, trace_buffer_end_free): | |
4493 | Reimplement as macros. | |
4494 | (trace_buffer_wrap): Delete. | |
4495 | (traceframe_write_count, traceframe_read_count) | |
4496 | (traceframes_created, tracing): Use IP_AGENT_EXPORT. | |
4497 | (struct tracepoint_hit_ctx) <type>: New field. | |
4498 | (struct fast_tracepoint_ctx): New. | |
4499 | (memory_barrier): New. | |
4500 | (cmpxchg): New. | |
4501 | (record_tracepoint_error): Update atomically in the IPA. | |
4502 | (clear_inferior_trace_buffer): New. | |
4503 | (about_to_request_buffer_space): New. | |
4504 | (trace_buffer_alloc): Handle GDBserver and inferior simulatenous | |
4505 | updating the same buffer. | |
4506 | (add_tracepoint): Default the tracepoint's type to trap | |
4507 | tracepoint, and orig_size to -1. | |
4508 | (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated | |
4509 | internal variables. | |
4510 | (create_trace_state_variable): New parameter `gdb'. Handle it. | |
4511 | (clear_installed_tracepoints): Clear fast tracepoint jumps. | |
4512 | (cmd_qtdp): Handle fast tracepoints. | |
4513 | (cmd_qtdv): Adjust. | |
4514 | (max_jump_pad_size): New. | |
4515 | (gdb_jump_pad_head): New. | |
4516 | (get_jump_space_head): New. | |
4517 | (claim_jump_space): New. | |
4518 | (sort_tracepoints): New. | |
4519 | (MAX_JUMP_SIZE): New. | |
4520 | (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the | |
4521 | IPA. | |
4522 | (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected | |
4523 | support. Upload fast traceframes, and delete internal IPA | |
4524 | breakpoints. | |
4525 | (stop_tracing_handler): New. | |
4526 | (flush_trace_buffer_handler): New. | |
4527 | (cmd_qtstop): Upload fast tracepoints. | |
4528 | (response_tracepoint): Handle fast tracepoints. | |
4529 | (tracepoint_finished_step): Upload fast traceframes. Set the | |
4530 | tracepoint hit context's tracepoint type. | |
4531 | (handle_tracepoint_bkpts): New. | |
4532 | (tracepoint_was_hit): Set the tracepoint hit context's tracepoint | |
4533 | type. Add comment about fast tracepoints. | |
4534 | (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the | |
4535 | non-existing action_str field. | |
4536 | (get_context_regcache): Handle fast tracepoints. | |
4537 | (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC | |
4538 | to the regcache. | |
4539 | (fast_tracepoint_from_jump_pad_address): New. | |
4540 | (fast_tracepoint_from_ipa_tpoint_address): New. | |
4541 | (collecting_t): New. | |
4542 | (force_unlock_trace_buffer): New. | |
4543 | (fast_tracepoint_collecting): New. | |
4544 | (collecting): New. | |
4545 | (gdb_collect): New. | |
4546 | (write_inferior_data_ptr): New. | |
4547 | (target_tp_heap): New. | |
4548 | (target_malloc): New. | |
4549 | (download_agent_expr): New. | |
4550 | (UALIGN): New. | |
4551 | (download_tracepoints): New. | |
4552 | (download_trace_state_variables): New. | |
4553 | (upload_fast_traceframes): New. | |
4554 | (IPA_FIRST_TRACEFRAME): New. | |
4555 | (IPA_NEXT_TRACEFRAME_1): New. | |
4556 | (IPA_NEXT_TRACEFRAME): New. | |
4557 | [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h. | |
4558 | [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer) | |
4559 | (gdb_jump_pad_buffer_end): New. | |
4560 | [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New. | |
4561 | (initialize_tracepoint): Adjust. | |
4562 | [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch | |
4563 | buffer. Initialize the low module. | |
4564 | * utils.c (PREFIX, TOOLNAME): New. | |
4565 | (malloc_failure): Use PREFIX. | |
4566 | (error): In the IPA, an error causes an exit. | |
4567 | (fatal, warning): Use PREFIX. | |
4568 | (internal_error): Use TOOLNAME. | |
4569 | (NUMCELLS): Increase to 10. | |
4570 | * configure, config.in: Regenerate. | |
4571 | ||
d149dd1d PA |
4572 | 2010-06-01 Pedro Alves <pedro@codesourcery.com> |
4573 | ||
4574 | * server.c (handle_query) <qSupported>: Do two passes over the | |
4575 | qSupported string to avoid nesting strtok. | |
4576 | ||
f6528abd JK |
4577 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
4578 | ||
4579 | * Makefile.in (SFILES): Add $(srcdir)/proc-service.list. | |
4580 | (CDEPS): New. | |
4581 | * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also | |
4582 | -Wl,--dynamic-list. | |
4583 | * configure: Regenerate. | |
4584 | * proc-service.list: New. | |
4585 | ||
ca2a87a0 JK |
4586 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
4587 | ||
4588 | * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT. | |
4589 | New comment. | |
4590 | ||
363a6e9f OS |
4591 | 2010-05-26 Ozkan Sezer <sezeroz@gmail.com> |
4592 | ||
4593 | * gdbreplay.c (remote_open): Check error return from socket() call by | |
4594 | its equality to -1 not by it being negative. | |
4595 | * remote-utils.c (remote_open): Likewise. | |
4596 | ||
d23b6cb1 PA |
4597 | 2010-05-23 Pedro Alves <pedro@codesourcery.com> |
4598 | ||
4599 | * config.h: Regenerate. | |
4600 | ||
28d3cf85 MK |
4601 | 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com> |
4602 | ||
4603 | * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel | |
4604 | doesn't provide PTRACE_GET_THREAD_AREA. | |
4605 | ||
fea36a59 MK |
4606 | 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com> |
4607 | ||
4608 | * linux-m68k-low.c: Include <asm/ptrace.h> | |
4609 | (ps_get_thread_area): Implement. | |
4610 | ||
24b066ba DE |
4611 | 2010-05-03 Doug Evans <dje@google.com> |
4612 | ||
4613 | * event-loop.c (struct callback_event): New struct. | |
4614 | (callback_list): New global. | |
4615 | (append_callback_event, delete_callback_event): New functions. | |
4616 | (process_callback): New function. | |
4617 | (start_event_loop): Call it. | |
4618 | * remote-utils.c (NOT_SCHEDULED): Define. | |
4619 | (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals, | |
4620 | moved out of readchar. | |
4621 | (readchar): Rewrite. Call reschedule before returning. | |
4622 | (reset_readchar): New function. | |
4623 | (remote_close): Call it. | |
4624 | (process_remaining, reschedule): New functions. | |
4625 | * server.h (callback_handler_func): New typedef. | |
4626 | (append_callback_event, delete_callback_event): Declare. | |
4627 | ||
9836d6ea PA |
4628 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
4629 | ||
4630 | * proc-service.c (ps_pglobal_lookup): Use | |
4631 | thread_db_look_up_one_symbol. | |
4632 | * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb' | |
4633 | parameter. Use it instead of all_symbols_looked_up. | |
4634 | * server.h (struct process_info) <all_symbols_looked_up>: Delete | |
4635 | field. | |
4636 | (all_symbols_looked_up): Don't declare. | |
4637 | (look_up_one_symbol): Add new `may_ask_gdb' parameter. | |
4638 | * thread-db.c (struct thread_db) <all_symbols_looked_up>: New | |
4639 | field. | |
4640 | (thread_db_look_up_symbols): Adjust call to look_up_one_symbol. | |
4641 | Set all_symbols_looked_up here. | |
4642 | (thread_db_look_up_one_symbol): New. | |
4643 | (thread_db_get_tls_address): Adjust. | |
4644 | (thread_db_load_search, try_thread_db_load_1): Always allocate the | |
4645 | thread_db object on the heap, and tentatively set it in the | |
4646 | process structure. | |
4647 | (thread_db_init): Don't set all_symbols_looked_up here. | |
4648 | * linux-low.h (thread_db_look_up_one_symbol): Declare. | |
4649 | ||
7984d532 PA |
4650 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
4651 | ||
4652 | * linux-low.c (linux_kill, linux_detach): Adjust. | |
4653 | (status_pending_p_callback): Remove redundant statement. Check | |
4654 | for !TARGET_WAITIKIND_IGNORE, instead of | |
4655 | TARGET_WAITKIND_STOPPED. | |
4656 | (handle_tracepoints): Make sure LWP is locked. Adjust. | |
4657 | (linux_wait_for_event_1): Adjust. | |
4658 | (linux_cancel_breakpoints): New. | |
4659 | (unsuspend_one_lwp): New. | |
4660 | (unsuspend_all_lwps): New. | |
4661 | (linux_wait_1): If finishing a step-over, unsuspend all lwps. | |
4662 | (send_sigstop_callback): Change return type to int, add new | |
4663 | `except' parameter and handle it. | |
4664 | (suspend_and_send_sigstop_callback): New. | |
4665 | (stop_all_lwps): Add new `suspend' and `expect' parameters, and | |
4666 | pass them down. If SUSPEND, also increment the lwp's suspend | |
4667 | count. | |
4668 | (linux_resume_one_lwp): Add notice about resuming a suspended LWP. | |
4669 | (need_step_over_p): Don't consider suspended LWPs. | |
4670 | (start_step_over): Adjust. | |
4671 | (proceed_one_lwp): Change return type to int, add new `except' | |
4672 | parameter and handle it. | |
4673 | (unsuspend_and_proceed_one_lwp): New. | |
4674 | (proceed_all_lwps): Use find_inferior instead of | |
4675 | for_each_inferior. | |
4676 | (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them | |
4677 | also decrement the suspend count of LWPs. Pass `except' down, | |
4678 | instead of hacking its suspend count. | |
4679 | (linux_pause_all): Add `freeze' parameter. Adjust. | |
4680 | (linux_unpause_all): New. | |
4681 | (linux_target_ops): Install linux_unpause_all. | |
4682 | * server.c (handle_status): Adjust. | |
4683 | * target.h (struct target_ops): New fields `unpause_all' and | |
4684 | `cancel_breakpoints'. Add new parameter to `pause_all'. | |
4685 | (pause_all): Add new `freeze' parameter. | |
4686 | (unpause_all): New. | |
4687 | (cancel_breakpoints): New. | |
4688 | * tracepoint.c (clear_installed_tracepoints): Pause threads, and | |
4689 | cancel breakpoints. | |
4690 | (cmd_qtstart): Pause threads. | |
4691 | (stop_tracing): Pause threads, and cancel breakpoints. | |
4692 | * win32-low.c (win32_target_ops): Adjust. | |
4693 | ||
e471f25b PA |
4694 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
4695 | ||
4696 | * linux-low.c (linux_wait_for_event_1): Move passing the signal to | |
4697 | the inferior right away from here... | |
4698 | (linux_wait_1): ... to here, and adjust to check the thread's | |
4699 | last_resume_kind instead of the lwp's step or stop_expected flags. | |
4700 | ||
1915ef4f PA |
4701 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
4702 | ||
4703 | * README: Use consistent `GDB' and `GDBserver' spellings. | |
4704 | ||
f9e39928 PA |
4705 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
4706 | ||
4707 | * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped. | |
4708 | (linux_kill): Stop all lwps here. Don't delete the main lwp here. | |
4709 | (linux_detach_one_lwp): Assume the lwp is stopped. | |
4710 | (any_thread_of): Delete. | |
4711 | (linux_detach): Stop all lwps here. Don't blindly delete all | |
4712 | breakpoints. | |
4713 | (delete_lwp_callback): New. | |
4714 | (linux_mourn): Delete all lwps of the process that is gone. | |
4715 | (linux_wait_1): Don't delete the last lwp of the process here. | |
4716 | * mem-break.h (mark_breakpoints_out): Declare. | |
4717 | * mem-break.c (mark_breakpoints_out): New. | |
4718 | (free_all_breakpoints): Use it. | |
4719 | * server.c (handle_target_event): If the process is gone, mark | |
4720 | breakpoints out. | |
4721 | * thread-db.c (struct thread_db) <create_bp>: New field. | |
4722 | (thread_db_enable_reporting): Fix prototype. Store a thread event | |
4723 | breakpoint reference in the thread_db struct. | |
4724 | (thread_db_load_search): Clear the thread_db object. | |
4725 | (try_thread_db_load_1): Ditto. | |
4726 | (switch_to_process): New. | |
4727 | (disable_thread_event_reporting): Use it. | |
4728 | (remove_thread_event_breakpoints): New. | |
4729 | (thread_db_detach, thread_db_mourn): Use it. | |
4730 | ||
1e7fc18c PA |
4731 | 2010-05-01 Pedro Alves <pedro@codesourcery.com> |
4732 | ||
4733 | * linux-low.c (linux_enable_event_reporting): New. | |
4734 | (linux_wait_for_event_1, handle_extended_wait): Use it. | |
4735 | ||
02fc4de7 PA |
4736 | 2010-04-30 Pedro Alves <pedro@codesourcery.com> |
4737 | ||
4738 | * linux-low.c (linux_kill_one_lwp, linux_kill) | |
4739 | (linux_detach_one_lwp): Adjust to send_sigstop interface change. | |
4740 | (send_sigstop): Take an lwp_info as parameter instead. Queue a | |
4741 | SIGSTOP even if the LWP is stopped. | |
4742 | (send_sigstop_callback): New. | |
4743 | (stop_all_lwps): Use send_sigstop_callback instead. | |
4744 | (linux_resume_one_thread): Adjust. | |
4745 | (proceed_one_lwp): Still proceed an LWP that the client has | |
4746 | requested to stop, if we haven't reported it as stopped yet. Make | |
4747 | sure that LWPs the client want stopped, have a pending SIGSTOP. | |
4748 | ||
bc3b5632 DE |
4749 | 2010-04-26 Doug Evans <dje@google.com> |
4750 | ||
ae1ada35 DE |
4751 | * server.c (handle_general_set): Make static. |
4752 | ||
bc3b5632 DE |
4753 | * remote-utils.c (putpkt_binary_1): Call readchar instead of read. |
4754 | Print received char after testing for error/eof instead of before. | |
4755 | (input_interrupt): Tweak comment. | |
4756 | ||
65730243 DE |
4757 | 2010-04-23 Doug Evans <dje@google.com> |
4758 | ||
4759 | * server.c (start_inferior): Print inferior argv if --debug. | |
4760 | ||
a8ae7dc0 AR |
4761 | 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com> |
4762 | ||
4763 | * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists. | |
4764 | * nto-x86-low.c: Include server.h | |
4765 | ||
1c07cc19 PM |
4766 | 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr> |
4767 | ||
4768 | * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to | |
4769 | be consistent with other sources of this directory. | |
4770 | (init_registers_amd64): Correct name of source file of this function | |
4771 | in the comment. | |
4772 | ||
e0a61e09 PM |
4773 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
4774 | ||
4775 | * configure.srv (x86_64-*-mingw*): New configuration for Windows | |
4776 | 64-bit executables. | |
4777 | ||
54709339 PM |
4778 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
4779 | ||
4780 | * win32-i386-low.c: Add 64-bit support. | |
4781 | (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting. | |
4782 | (init_registers_amd64): Declare. | |
4783 | (mappings): Add 64-bit version of array. | |
4784 | (init_windows_x86): New function. | |
4785 | (the_low_target): Change init_arch field to init_windows_x86. | |
4786 | ||
e8f0053d PM |
4787 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
4788 | ||
4789 | * win32-low.c: Adapt to support also 64-bit architecture. | |
4790 | (child_xfer_memory): Use uintptr_t type for local variable `addr'. | |
4791 | (get_image_name): Use SIZE_T type for local variable `done'. | |
4792 | (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'. | |
4793 | (toolhelp_get_dll_name): Idem. | |
4794 | (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'. | |
4795 | Use uintptr_t typecast to avoid warning. | |
4796 | (handle_unload_dll): Use uintptr_t typecast to avoid warning. | |
4797 | (handle_exception): Use phex_nz to avoid warning. | |
4798 | (win32_wait): Remove unused local variable `process'. | |
4799 | ||
c481e77e PM |
4800 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
4801 | ||
4802 | * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by | |
4803 | `amd64-avx.o'. | |
4804 | ||
12ea4b69 PM |
4805 | 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr> |
4806 | ||
4807 | * configure.ac: Use `ws2_32' library for srv_mingw. | |
4808 | * configure: Regenerate. | |
4809 | * gdbreplay.c: Include winsock2.h instead of winsock.h. | |
4810 | * remote-utils.c: Likewise. | |
4811 | ||
f6d1620c L |
4812 | 2010-04-17 H.J. Lu <hongjiu.lu@intel.com> |
4813 | ||
4814 | * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only | |
4815 | if __x86_64__ is defined. | |
4816 | ||
8e642873 PM |
4817 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
4818 | ||
4819 | * configure: Regenerate. | |
4820 | ||
711e434b PM |
4821 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
4822 | ||
4823 | * server.c (handle_query): Handle 'qGetTIBAddr' query. | |
4824 | * target.h (target_ops): New get_tib_address field. | |
4825 | * win32-low.h (win32_thread_info): Add thread_local_base field. | |
4826 | * win32-low.c (child_add_thread): Add tlb argument. | |
4827 | Set thread_local_base field to TLB. | |
4828 | (get_child_debug_event): Adapt to child_add_thread change. | |
4829 | (win32_get_tib_address): New function. | |
4830 | (win32_target_ops): Set get_tib_address field to | |
4831 | win32_get_tib_address. | |
4832 | * linux-low.c (linux_target_ops): Set get_tib_address field to NULL. | |
4833 | ||
505106cd PA |
4834 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
4835 | ||
505106cd PA |
4836 | * linux-low.c (linux_mourn): Also remove the process. |
4837 | * server.c (handle_target_event): Don't remove the process here. | |
4838 | * nto-low.c (nto_mourn): New. | |
4839 | (nto_target_ops): Install it. | |
4840 | * spu-low.c (spu_mourn): New. | |
4841 | (spu_target_ops): Install it. | |
4842 | * win32-low.c (win32_mourn): New. | |
4843 | (win32_target_ops): Install it. | |
4844 | ||
e8470a06 PA |
4845 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
4846 | ||
4847 | * server.h (buffer_xml_printf): Remove redundant `;'. | |
4848 | ||
45ba0d02 PA |
4849 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
4850 | ||
4851 | * regcache.c (set_register_cache): Invalidate regcaches before | |
4852 | changing the register cache layout. | |
4853 | (regcache_invalidate_one): Allow a NULL regcache. | |
4854 | * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate | |
4855 | regcaches before changing the register cache layout or the target | |
4856 | regsets. | |
4857 | ||
59e04013 L |
4858 | 2010-04-12 H.J. Lu <hongjiu.lu@intel.com> |
4859 | ||
4860 | * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused | |
4861 | variable warning on Linux/x86-64. | |
4862 | ||
8336d594 PA |
4863 | 2010-04-11 Pedro Alves <pedro@codesourcery.com> |
4864 | ||
4865 | GDBserver disconnected tracing support. | |
4866 | ||
4867 | * linux-low.c (linux_remove_process): Delete. | |
4868 | (add_lwp): Don't set last_resume_kind here. | |
4869 | (linux_kill): Use `mourn'. | |
4870 | (linux_detach): Use `thread_db_detach', and `mourn'. | |
4871 | (linux_mourn): New. | |
4872 | (linux_attach_lwp_1): Adjust comment. | |
4873 | (linux_attach): last_resume_kind moved the thread_info; adjust. | |
4874 | (status_pending_p_callback): Adjust. | |
4875 | (linux_wait_for_event_1): Adjust. | |
4876 | (count_events_callback, select_singlestep_lwp_callback) | |
4877 | (select_event_lwp_callback, cancel_breakpoints_callback) | |
4878 | (db_wants_lwp_stopped, linux_wait_1, need_step_over_p) | |
4879 | (proceed_one_lwp): Adjust. | |
4880 | (linux_async): Add debug output. | |
4881 | (linux_thread_stopped): New. | |
4882 | (linux_pause_all): New. | |
4883 | (linux_target_ops): Install linux_mourn, linux_thread_stopped and | |
4884 | linux_pause_all. | |
4885 | * linux-low.h (struct lwp_info): Delete last_resume_kind field. | |
4886 | (thread_db_free): Delete declaration. | |
4887 | (thread_db_detach, thread_db_mourn): Declare. | |
4888 | * thread-db.c (thread_db_init): Use thread_db_mourn. | |
4889 | (thread_db_free): Delete, split in two. | |
4890 | (disable_thread_event_reporting): New. | |
4891 | (thread_db_detach): New. | |
4892 | (thread_db_mourn): New. | |
4893 | ||
4894 | * server.h (struct thread_info) <last_resume_kind>: New field. | |
4895 | <attached>: Add comment. | |
4896 | <gdb_detached>: New field. | |
4897 | (handler_func): Change return type to int. | |
4898 | (handle_serial_event, handle_target_event): Ditto. | |
4899 | (gdb_connected): Declare. | |
4900 | (tracing): Delete. | |
4901 | (disconnected_tracing): Declare. | |
4902 | (stop_tracing): Declare. | |
4903 | ||
4904 | * server.c (handle_query) <qSupported>: Report support for | |
4905 | disconnected tracing. | |
4906 | (queue_stop_reply_callback): Account for running threads. | |
4907 | (gdb_wants_thread_stopped): New. | |
4908 | (gdb_wants_all_threads_stopped): New. | |
4909 | (gdb_reattached_process): New. | |
4910 | (handle_status): Clear the `gdb_detached' flag of all processes. | |
4911 | In all-stop, stop all threads. | |
4912 | (main): Be sure to leave tfind mode. Handle disconnected tracing. | |
4913 | (process_serial_event): If the remote connection breaks, or if an | |
4914 | exit was forced with "monitor exit", force an event loop exit. | |
4915 | Handle disconnected tracing on detach. | |
4916 | (handle_serial_event): Adjust. | |
4917 | (handle_target_event): If GDB isn't connected, forward events back | |
4918 | to the inferior, unless the last process exited, in which case, | |
4919 | exit gdbserver. Adjust interface. | |
4920 | ||
4921 | * remote-utils.c (remote_open): Don't block in accept. Instead | |
4922 | register an event loop source on the listen socket file | |
4923 | descriptor. Refactor bits into ... | |
4924 | (listen_desc): ... this new global. | |
4925 | (gdb_connected): ... this new function. | |
4926 | (enable_async_notification): ... this new function. | |
4927 | (handle_accept_event): ... this new function. | |
4928 | (remote_close): Clear remote_desc. | |
4929 | ||
4930 | * inferiors.c (add_thread): Set the new thread's last_resume_kind. | |
4931 | ||
4932 | * target.h (struct target_ops) <mourn, thread_stopped, pause_all>: | |
4933 | New fields. | |
4934 | (mourn_inferior): Define. | |
4935 | (target_process_qsupported): Avoid the dangling else problem. | |
4936 | (thread_stopped): Define. | |
4937 | (pause_all): Define. | |
4938 | (target_waitstatus_to_string): Declare. | |
4939 | * target.c (target_waitstatus_to_string): New. | |
4940 | ||
4941 | * tracepoint.c (tracing): Make extern. | |
4942 | (disconnected_tracing): New. | |
4943 | (stop_tracing): Make extern. Handle tracing stops due to GDB | |
4944 | disconnecting. | |
4945 | (cmd_qtdisconnected): New. | |
4946 | (cmd_qtstatus): Report disconnected tracing status in trace reply. | |
4947 | (handle_tracepoint_general_set): Handle QTDisconnected. | |
4948 | ||
4949 | * event-loop.c (event_handler_func): Change return type to int. | |
4950 | (process_event): Bail out if the event handler wants the event | |
4951 | loop to stop. | |
4952 | (handle_file_event): Ditto. | |
4953 | (start_event_loop): Bail out if the event handler wants the event | |
4954 | loop to stop. | |
4955 | ||
4956 | * nto-low.c (nto_target_ops): Adjust. | |
4957 | * spu-low.c (spu_wait): Don't remove the process here. | |
4958 | (spu_target_ops): Adjust. | |
4959 | * win32-low.c (win32_wait): Don't remove the process here. | |
4960 | (win32_target_ops): Adjust. | |
4961 | ||
5d267c4c PA |
4962 | 2010-04-11 Pedro Alves <pedro@codesourcery.com> |
4963 | ||
4964 | * regcache.c (realloc_register_cache): Invalidate inferior's | |
4965 | regcache before recreating it. | |
4966 | ||
623ccd72 PA |
4967 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
4968 | ||
4969 | * tracepoint.c (cmd_qtstatus): Report trace buffer circularity. | |
4970 | ||
219f2f23 PA |
4971 | 2010-04-09 Stan Shebs <stan@codesourcery.com> |
4972 | Pedro Alves <pedro@codesourcery.com> | |
4973 | ||
4974 | * server.h (LONGEST): New. | |
4975 | (struct thread_info) <while_stepping>: New field. | |
4976 | (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz): | |
4977 | Declare. | |
4978 | (initialize_tracepoint, handle_tracepoint_general_set) | |
4979 | (handle_tracepoint_query, tracepoint_finished_step) | |
4980 | (tracepoint_was_hit, release_while_stepping_state_list): | |
4981 | (current_traceframe): Declare. | |
4982 | * server.c (handle_general_set): Handle tracepoint packets. | |
4983 | (read_memory): New. | |
4984 | (write_memory): New. | |
4985 | (handle_search_memory_1): Use read_memory. | |
4986 | (handle_query): Report support for conditional tracepoints, trace | |
4987 | state variables, and tracepoint sources. Handle tracepoint | |
4988 | queries. | |
4989 | (main): Initialize the tracepoints module. | |
4990 | (process_serial_event): Handle traceframe reads/writes. | |
4991 | ||
4992 | * linux-low.c (handle_tracepoints): New. | |
4993 | (linux_wait_1): Call it. | |
4994 | (linux_resume_one_lwp): Handle while-stepping. | |
4995 | (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New. | |
4996 | (linux_target_ops): Install them. | |
4997 | * linux-low.h (struct linux_target_ops) <supports_tracepoints>: | |
4998 | New field. | |
4999 | * linux-x86-low.c (x86_supports_tracepoints): New. | |
5000 | (the_low_target). Install it. | |
5001 | ||
5002 | * mem-break.h (delete_breakpoint): Declare. | |
5003 | * mem-break.c (delete_breakpoint): Make external. | |
5004 | ||
5005 | * target.h (struct target_ops): Add `supports_tracepoints', | |
5006 | `read_pc', and `write_pc' fields. | |
5007 | (target_supports_tracepoints): Define. | |
5008 | * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two) | |
5009 | (phex_nz): New. | |
5010 | ||
5011 | * regcache.h (struct regcache) <registers_owned>: New field. | |
5012 | (init_register_cache, regcache_cpy): Declare. | |
5013 | (regcache_read_pc, regcache_write_pc): Declare. | |
5014 | (register_cache_size): Declare. | |
5015 | (supply_regblock): Declare. | |
5016 | * regcache.c (init_register_cache): New. | |
5017 | (new_register_cache): Use it. | |
5018 | (regcache_cpy): New. | |
5019 | (register_cache_size): New. | |
5020 | (supply_regblock): New. | |
5021 | (regcache_read_pc, regcache_write_pc): New. | |
889bf7c5 | 5022 | |
219f2f23 PA |
5023 | * tracepoint.c: New. |
5024 | ||
5025 | * Makefile.in (OBS): Add tracepoint.o. | |
5026 | (tracepoint.o): New rule. | |
5027 | ||
3a13a53b L |
5028 | 2010-04-08 H.J. Lu <hongjiu.lu@intel.com> |
5029 | ||
5030 | * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c. | |
5031 | (i386-mmx.o): New. | |
5032 | (i386-mmx.c): Likewise. | |
5033 | (i386-mmx-linux.o): Likewise. | |
5034 | (i386-mmx-linux.c): Likewise. | |
5035 | ||
5036 | * configure.srv (srv_i386_regobj): Add i386-mmx.o. | |
5037 | (srv_i386_linux_regobj): Add i386-mmx-linux.o. | |
5038 | (srv_i386_xmlfiles): Add i386/i386-mmx.xml. | |
5039 | (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml. | |
5040 | ||
5041 | * linux-x86-low.c (init_registers_i386_mmx_linux): New. | |
5042 | (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux | |
5043 | and return if ptrace PTRACE_GETFPXREGS failed in 32bit. | |
5044 | ||
1570b33e L |
5045 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
5046 | ||
5047 | * Makefile.in (clean): Updated. | |
5048 | (i386-avx.o): New. | |
5049 | (i386-avx.c): Likewise. | |
5050 | (i386-avx-linux.o): Likewise. | |
5051 | (i386-avx-linux.c): Likewise. | |
5052 | (amd64-avx.o): Likewise. | |
5053 | (amd64-avx.c): Likewise. | |
5054 | (amd64-avx-linux.o): Likewise. | |
5055 | (amd64-avx-linux.c): Likewise. | |
5056 | ||
5057 | * configure.srv (srv_i386_regobj): Add i386-avx.o. | |
5058 | (srv_i386_linux_regobj): Add i386-avx-linux.o. | |
5059 | (srv_amd64_regobj): Add amd64-avx.o. | |
5060 | (srv_amd64_linux_regobj): Add amd64-avx-linux.o. | |
5061 | (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml. | |
5062 | (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml. | |
5063 | (srv_i386_xmlfiles): Add i386/i386-avx.xml. | |
5064 | (srv_amd64_xmlfiles): Add i386/amd64-avx.xml. | |
5065 | (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml. | |
5066 | (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml. | |
5067 | ||
5068 | * i387-fp.c: Include "i386-xstate.h". | |
5069 | (i387_xsave): New. | |
5070 | (i387_cache_to_xsave): Likewise. | |
5071 | (i387_xsave_to_cache): Likewise. | |
5072 | (x86_xcr0): Likewise. | |
5073 | ||
5074 | * i387-fp.h (i387_cache_to_xsave): Likewise. | |
5075 | (i387_xsave_to_cache): Likewise. | |
5076 | (x86_xcr0): Likewise. | |
5077 | ||
5078 | * linux-arm-low.c (target_regsets): Initialize nt_type to 0. | |
5079 | * linux-crisv32-low.c (target_regsets): Likewise. | |
5080 | * linux-m68k-low.c (target_regsets): Likewise. | |
5081 | * linux-mips-low.c (target_regsets): Likewise. | |
5082 | * linux-ppc-low.c (target_regsets): Likewise. | |
5083 | * linux-s390-low.c (target_regsets): Likewise. | |
5084 | * linux-sh-low.c (target_regsets): Likewise. | |
5085 | * linux-sparc-low.c (target_regsets): Likewise. | |
5086 | * linux-xtensa-low.c (target_regsets): Likewise. | |
5087 | ||
5088 | * linux-low.c: Include <sys/uio.h>. | |
5089 | (regsets_fetch_inferior_registers): Support nt_type. | |
5090 | (regsets_store_inferior_registers): Likewise. | |
5091 | (linux_process_qsupported): New. | |
5092 | (linux_target_ops): Add linux_process_qsupported. | |
5093 | ||
5094 | * linux-low.h (regset_info): Add nt_type. | |
5095 | (linux_target_ops): Add process_qsupported. | |
5096 | ||
5097 | * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h" | |
5098 | and <sys/uio.h>. | |
5099 | (init_registers_i386_avx_linux): New. | |
5100 | (init_registers_amd64_avx_linux): Likewise. | |
5101 | (xmltarget_i386_linux_no_xml): Likewise. | |
5102 | (xmltarget_amd64_linux_no_xml): Likewise. | |
5103 | (PTRACE_GETREGSET): Likewise. | |
5104 | (PTRACE_SETREGSET): Likewise. | |
5105 | (x86_fill_xstateregset): Likewise. | |
5106 | (x86_store_xstateregset): Likewise. | |
5107 | (use_xml): Likewise. | |
5108 | (x86_linux_update_xmltarget): Likewise. | |
5109 | (x86_linux_process_qsupported): Likewise. | |
5110 | (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type. | |
5111 | (x86_arch_setup): Don't call init_registers_amd64_linux nor | |
5112 | init_registers_i386_linux here. Call | |
5113 | x86_linux_update_xmltarget. | |
5114 | (the_low_target): Add x86_linux_process_qsupported. | |
5115 | ||
5116 | * server.c (handle_query): Call target_process_qsupported. | |
5117 | ||
5118 | * target.h (target_ops): Add process_qsupported. | |
5119 | (target_process_qsupported): New. | |
5120 | ||
fc7238bb PA |
5121 | 2010-04-03 Pedro Alves <pedro@codesourcery.com> |
5122 | ||
5123 | * inferiors.c (add_thread): Set last_status kind to | |
5124 | TARGET_WAITKIND_IGNORE. | |
5125 | * linux-low.c (cancel_breakpoint): Remove unnecessary regcache | |
5126 | fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls. | |
5127 | (linux_wait_1): Move `thread' local definition to block that uses | |
5128 | it. Don't NULL initialize `event_child'. | |
5129 | (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls. | |
5130 | Alway set the thread's last_status to TARGET_WAITKIND_IGNORE. | |
5131 | * linux-x86-low.c (x86_breakpoint_at): Read raw memory. | |
5132 | ||
bdabb078 PA |
5133 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
5134 | ||
5135 | * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with | |
5136 | an extended waitstatus, or by a watchpoint. | |
5137 | (cancel_breakpoints_callback): Don't cancel a breakpoint if the | |
5138 | thread was stepping or has been stopped by a watchpoint. | |
5139 | ||
d3bbe7a0 PA |
5140 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
5141 | ||
5142 | * mem-break.c (struct raw_breakpoint): New field shlib_disabled. | |
5143 | (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top | |
5144 | of another, then delete the previous, and validate all | |
5145 | breakpoints. | |
5146 | (validate_inserted_breakpoint): New. | |
5147 | (delete_disabled_breakpoints): New. | |
5148 | (validate_breakpoints): New. | |
5149 | (check_mem_read): Validate breakpoints before trusting their | |
5150 | shadow. Delete disabled breakpoints. | |
5151 | (check_mem_write): Validate breakpoints before trusting they | |
5152 | should be inserted. Delete disabled breakpoints. | |
5153 | * mem-break.h (validate_breakpoints): | |
5154 | * server.c (handle_query): Validate breakpoints when we see a | |
5155 | qSymbol query. | |
5156 | ||
8b07ae33 PA |
5157 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
5158 | ||
5159 | * linux-low.c (linux_wait_1): Avoid setting need_step_over is | |
5160 | there's a GDB breakpoint at stop_pc. Always report a trap to GDB | |
5161 | if we could tell there's a GDB breakpoint at stop_pc. | |
5162 | (need_step_over_p): Don't do a step over if we find a GDB | |
5163 | breakpoint at the resume PC. | |
5164 | ||
5165 | * mem-break.c (struct raw_breakpoint): New. | |
5166 | (enum bkpt_type): New type `gdb_breakpoint'. | |
5167 | (struct breakpoint): Delete the `PC', `old_data' and `inserted' | |
5168 | fields. New field `raw'. | |
5169 | (find_raw_breakpoint_at): New. | |
5170 | (set_raw_breakpoint_at): Handle refcounting. Create a raw | |
5171 | breakpoint instead. | |
5172 | (set_breakpoint_at): Adjust. | |
5173 | (delete_raw_breakpoint): New. | |
5174 | (release_breakpoint): New. | |
5175 | (delete_breakpoint): Rename to... | |
5176 | (delete_breakpoint_1): ... this. Add proc parameter. Use | |
5177 | release_breakpoint. Return ENOENT. | |
5178 | (delete_breakpoint): Reimplement. | |
5179 | (find_breakpoint_at): Delete. | |
5180 | (find_gdb_breakpoint_at): New. | |
5181 | (delete_breakpoint_at): Delete. | |
5182 | (set_gdb_breakpoint_at): New. | |
5183 | (delete_gdb_breakpoint_at): New. | |
5184 | (gdb_breakpoint_here): New. | |
5185 | (set_reinsert_breakpoint): Use release_breakpoint. | |
5186 | (uninsert_breakpoint): Rename to ... | |
5187 | (uninsert_raw_breakpoint): ... this. | |
5188 | (uninsert_breakpoints_at): Adjust to handle raw breakpoints. | |
5189 | (reinsert_raw_breakpoint): Change parameter type to | |
5190 | raw_breakpoint. | |
5191 | (reinsert_breakpoints_at): Adjust to handle raw breakpoints | |
5192 | instead. | |
5193 | (check_breakpoints): Adjust. Use release_breakpoint. | |
5194 | (breakpoint_here): Rewrite using find_raw_breakpoint_at. | |
5195 | (breakpoint_inserted_here): Ditto. | |
5196 | (check_mem_read): Adjust to iterate over raw breakpoints instead. | |
5197 | Don't trust the breakpoint's shadow if it is not inserted. | |
5198 | (check_mem_write): Adjust to iterate over raw breakpoints instead. | |
5199 | (delete_all_breakpoints): Adjust. | |
5200 | (free_all_breakpoints): Mark all breakpoints as uninserted, and | |
5201 | use delete_breakpoint_1. | |
5202 | ||
5203 | * mem-break.h (breakpoints_supported): Delete declaration. | |
5204 | (set_gdb_breakpoint_at): Declare. | |
5205 | (gdb_breakpoint_here): Declare. | |
5206 | (delete_breakpoint_at): Delete. | |
5207 | (delete_gdb_breakpoint_at): Declare. | |
5208 | ||
5209 | * server.h (struct raw_breakpoint): Forward declare. | |
5210 | (struct process_info): New field `raw_breakpoints'. | |
5211 | ||
5212 | * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0 | |
5213 | breakpoints. | |
5214 | ||
6bf5e0ba PA |
5215 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
5216 | ||
5217 | * linux-low.c (status_pending_p_callback): Fix comment. | |
5218 | (linux_wait_for_event_1): Move most of the internal breakpoint | |
5219 | handling from here... | |
5220 | (linux_wait_1): ... to here. | |
5221 | (count_events_callback): New. | |
5222 | (select_singlestep_lwp_callback): New. | |
5223 | (select_event_lwp_callback): New. | |
5224 | (cancel_breakpoints_callback): New. | |
5225 | (select_event_lwp): New. | |
5226 | (linux_wait_1): Simplify internal breakpoint handling. Give equal | |
5227 | priority to all LWPs that have had events that should be reported | |
5228 | to the client. Cancel breakpoints when about to reporting the | |
5229 | event to the client, not while stopping lwps. No longer cancel | |
5230 | finished single-steps here. | |
5231 | (cancel_finished_single_step): Delete. | |
5232 | (cancel_finished_single_steps): Delete. | |
5233 | ||
414a389f PA |
5234 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
5235 | ||
5236 | * mem-break.c (enum bkpt_type): New. | |
5237 | (struct breakpoint): New field `type'. | |
5238 | (set_breakpoint_at): Change return type to struct breakpoint | |
5239 | pointer. Set type to `other_breakpoint' by default. | |
5240 | (delete_breakpoint): Rewrite, supporting more than one breakpoint | |
5241 | in the breakpoint list. | |
5242 | (delete_reinsert_breakpoints): Only delete reinsert breakpoints. | |
5243 | (reinsert_breakpoint): Rename to ... | |
5244 | (reinsert_raw_breakpoint): ... this. | |
5245 | (reinsert_breakpoints_at): Adjust. | |
5246 | * mem-break.h (struct breakpoint): Declare. | |
5247 | (set_breakpoint_at): Change return type to struct breakpoint | |
5248 | pointer. | |
5249 | ||
2280c721 PA |
5250 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
5251 | ||
5252 | * server.c (handle_query): Assign, not compare. | |
5253 | ||
d50171e4 PA |
5254 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
5255 | ||
5256 | Teach linux gdbserver to step-over-breakpoints. | |
5257 | ||
5258 | * linux-low.c (can_hardware_single_step): New. | |
5259 | (supports_breakpoints): New. | |
5260 | (handle_extended_wait): If stopping threads, read the stop pc of | |
5261 | the new cloned LWP. | |
5262 | (get_pc): New. | |
5263 | (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the | |
5264 | low target doesn't support retrieving the PC. | |
5265 | (add_lwp): Set last_resume_kind to resume_continue. | |
5266 | (linux_attach_lwp_1): Adjust comments. Always set stop_expected. | |
5267 | (linux_attach): Don't clear stop_expected. Set the lwp's | |
5268 | last_resume_kind to resume_stop. | |
5269 | (linux_detach_one_lwp): Don't check for removed breakpoints. | |
5270 | (check_removed_breakpoint): Delete. | |
5271 | (status_pending_p): Rename to ... | |
5272 | (status_pending_p_callback): ... this. Don't check for removed | |
5273 | breakpoints. Don't consider threads that are stopped from GDB's | |
5274 | perspective. | |
5275 | (linux_wait_for_lwp): Always read the stop_pc here. | |
5276 | (cancel_breakpoint): New. | |
5277 | (step_over_bkpt): New global. | |
5278 | (linux_wait_for_event_1): Implement stepping over breakpoints. | |
5279 | (gdb_wants_lwp_stopped): New. | |
5280 | (gdb_wants_all_stopped): New. | |
5281 | (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished | |
5282 | single-step traps here. Store the thread's last reported target | |
5283 | wait status. | |
5284 | (send_sigstop): Don't clear stop_expected. Always set it, | |
5285 | instead. | |
5286 | (mark_lwp_dead): Remove reference to pending_is_breakpoint. | |
5287 | (cancel_finished_single_step): New. | |
5288 | (cancel_finished_single_steps): New. | |
5289 | (wait_for_sigstop): Don't cancel finished single-step traps here. | |
5290 | (linux_resume_one_lwp): Don't check for removed breakpoints. | |
5291 | Don't set `step' on non-hardware step archs. | |
5292 | (linux_set_resume_request): Ignore resume_stop requests if already | |
5293 | stopping or stopped. Set the lwp's last_resume_kind. | |
5294 | (resume_status_pending_p): Don't check for removed breakpoints. | |
5295 | (need_step_over_p): New. | |
5296 | (start_step_over): New. | |
5297 | (finish_step_over): New. | |
5298 | (linux_resume_one_thread): Always queue a sigstop for resume_stop | |
5299 | requests. Clear the thread's last reported target waitstatus. | |
5300 | Don't use the `suspended' flag. Don't consider pending breakpoints. | |
5301 | (linux_resume): Start a step-over if necessary. | |
5302 | (proceed_one_lwp): New. | |
5303 | (proceed_all_lwps): New. | |
5304 | (unstop_all_lwps): New. | |
5305 | * linux-low.h (struct lwp_info): Rewrite comment for the | |
5306 | `suspended' flag. Add the `stop_pc' field. Delete the | |
5307 | `pending_stop_pc' field. Tweak the `stepping' flag's comment. | |
5308 | Add `'last_resume_kind' and `need_step_over' fields. | |
5309 | * inferiors.c (struct thread_info): Delete, moved elsewhere. | |
5310 | * mem-break.c (struct breakpoint): Delete `reinserting' flag. | |
5311 | Delete `breakpoint_to_reinsert' field. New flag `inserted'. | |
5312 | (set_raw_breakpoint_at): New. | |
5313 | (set_breakpoint_at): Rewrite to use it. | |
5314 | (reinsert_breakpoint_handler): Delete. | |
5315 | (set_reinsert_breakpoint): New. | |
5316 | (reinsert_breakpoint_by_bp): Delete. | |
5317 | (delete_reinsert_breakpoints): New. | |
5318 | (uninsert_breakpoint): Rewrite. | |
5319 | (uninsert_breakpoints_at): New. | |
5320 | (reinsert_breakpoint): Rewrite. | |
5321 | (reinsert_breakpoints_at): New. | |
5322 | (check_breakpoints): Rewrite. | |
5323 | (breakpoint_here): New. | |
5324 | (breakpoint_inserted_here): New. | |
5325 | (check_mem_read): Adjust. | |
5326 | * mem-break.h (breakpoints_supported, breakpoint_here) | |
5327 | (breakpoint_inserted_here, set_reinsert_breakpoint): Declare. | |
5328 | (reinsert_breakpoint_by_bp): Delete declaration. | |
5329 | (delete_reinsert_breakpoints): Declare. | |
5330 | (reinsert_breakpoint): Delete declaration. | |
5331 | (reinsert_breakpoints_at): Declare. | |
5332 | (uninsert_breakpoint): Delete declaration. | |
5333 | (uninsert_breakpoints_at): Declare. | |
5334 | (check_breakpoints): Adjust prototype. | |
5335 | * server.h: Adjust include order. | |
5336 | (struct thread_info): Declare here. Add a `last_status' field. | |
5337 | ||
30ba68cb MS |
5338 | 2010-03-23 Michael Snyder <msnyder@vmware.com> |
5339 | ||
5340 | * server.c (crc32): New function. | |
5341 | (handle_query): Add handling for 'qCRC:' request. | |
5342 | ||
b9a881c2 PA |
5343 | 2010-03-23 Pedro Alves <pedro@codesourcery.com> |
5344 | ||
5345 | * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the | |
5346 | lwp had been stopped by a watchpoint. | |
5347 | ||
e92d13d5 PA |
5348 | 2010-03-16 Pedro Alves <pedro@codesourcery.com> |
5349 | ||
5350 | * server.h (internal_error): Declare. | |
5351 | (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define. | |
5352 | * utils.c (internal_error): New function. | |
5353 | ||
64daa791 AS |
5354 | 2010-03-15 Andreas Schwab <schwab@redhat.com> |
5355 | ||
5356 | * configure.srv: Fix typo setting srv_regobj. | |
5357 | ||
f52cd8cd PA |
5358 | 2010-03-15 Pedro Alves <pedro@codesourcery.com> |
5359 | ||
5360 | * linux-low.c (fetch_register): Avoid passing a non string literal | |
5361 | format to `error'. | |
5362 | (usr_store_inferior_registers): Ditto. | |
5363 | ||
93ae6fdc PA |
5364 | 2010-03-14 Pedro Alves <pedro@codesourcery.com> |
5365 | ||
5366 | * linux-low.c (linux_write_memory): Bail out early if peeking | |
5367 | memory failed. | |
5368 | ||
c3adc08c PA |
5369 | 2010-03-14 Pedro Alves <pedro@codesourcery.com> |
5370 | ||
5371 | * linux-low.h (struct lwp_info): New fields | |
5372 | `stopped_by_watchpoint' and `stopped_data_address'. | |
5373 | * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers | |
5374 | here, and cache them in the lwp object. | |
5375 | (wait_for_sigstop): Check stopped_by_watchpoint lwp field | |
5376 | directly. | |
5377 | (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint | |
5378 | field. | |
5379 | (linux_stopped_by_watchpoint): Rewrite. | |
5380 | (linux_stopped_data_address): Rewrite. | |
5381 | ||
bce522a2 PA |
5382 | 2010-03-06 Simo Melenius <simo.melenius@iki.fi> |
5383 | ||
5384 | * linux-low.c (linux_wait_for_lwp): Fetch the regcache after | |
5385 | switching the current inferior, not before. | |
5386 | ||
90884b2b L |
5387 | 2010-03-01 H.J. Lu <hongjiu.lu@intel.com> |
5388 | ||
5389 | * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c, | |
5390 | reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c, | |
5391 | i386-linux.c and amd64-linux.c. | |
5392 | (reg-i386.o): Removed. | |
5393 | (reg-i386.c): Likewise. | |
5394 | (reg-i386-linux.o): Likewise. | |
5395 | (reg-i386-linux.c): Likewise. | |
5396 | (reg-x86-64.o): Likewise. | |
5397 | (reg-x86-64.c): Likewise. | |
5398 | (reg-x86-64-linux.o): Likewise. | |
5399 | (reg-x86-64-linux.c): Likewise. | |
5400 | (i386.o): New. | |
5401 | (i386.c): Likewise. | |
5402 | (i386-linux.o): Likewise. | |
5403 | (i386-linux.c): Likewise. | |
5404 | (amd64.o): Likewise. | |
5405 | (amd64.c): Likewise. | |
5406 | (amd64-linux.o): Likewise. | |
5407 | (amd64-linux.c): Likewise. | |
5408 | ||
5409 | * configure.srv (srv_i386_regobj): New. | |
5410 | (srv_i386_linux_regobj): Likewise. | |
5411 | (srv_amd64_regobj): Likewise. | |
5412 | (srv_amd64_linux_regobj): Likewise. | |
5413 | (srv_i386_32bit_xmlfiles): Likewise. | |
5414 | (srv_i386_64bit_xmlfiles): Likewise. | |
5415 | (srv_i386_xmlfiles): Likewise. | |
5416 | (srv_amd64_xmlfiles): Likewise. | |
5417 | (srv_i386_linux_xmlfiles): Likewise. | |
5418 | (srv_amd64_linux_xmlfiles): Likewise. | |
5419 | (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set | |
5420 | srv_xmlfiles to $srv_i386_xmlfiles. | |
5421 | (i[34567]86-*-mingw32ce*): Likewise. | |
5422 | (i[34567]86-*-mingw*): Likewise. | |
5423 | (i[34567]86-*-nto*): Likewise. | |
5424 | (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj | |
5425 | and $srv_amd64_linux_regobj. Set srv_xmlfiles to | |
5426 | $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles. | |
5427 | (x86_64-*-linux*): Likewise. | |
5428 | ||
5429 | * linux-x86-low.c (init_registers_x86_64_linux): Removed. | |
5430 | (init_registers_amd64_linux): New. | |
5431 | (x86_arch_setup): Replace init_registers_x86_64_linux with | |
5432 | init_registers_amd64_linux. | |
5433 | ||
193f13e6 MK |
5434 | 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com> |
5435 | ||
5436 | * configure.ac: Check for libdl. If it is not available link against | |
5437 | static libthread_db. | |
5438 | * configure: Regenerate. | |
5439 | ||
85d721b8 PA |
5440 | 2010-02-22 Pedro Alves <pedro@codesourcery.com> |
5441 | ||
5442 | PR9605 | |
5443 | ||
5444 | * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if | |
5445 | handing a read watchpoint. | |
5446 | (i386_low_insert_watchpoint): Read watchpoints aren't supported. | |
5447 | ||
6076632b DE |
5448 | 2010-02-12 Doug Evans <dje@google.com> |
5449 | ||
5450 | * linux-low.c (linux_supports_tracefork_flag): Document. | |
5451 | (linux_look_up_symbols): Add comment. | |
5452 | ||
3327ccf7 L |
5453 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
5454 | ||
5455 | * regcache.c (supply_register): Clear regcache if buf is NULL. | |
5456 | ||
0718675c | 5457 | 2010-02-02 Nicolas Roche <roche@sourceware.org> |
3327ccf7 | 5458 | Joel Brobecker <brobecker@adacore.com> |
0718675c JB |
5459 | |
5460 | * inferiors.c (find_inferior): Add function documentation. | |
5461 | (unloaded_dll): Handle the case where the unloaded dll has not | |
5462 | been previously registered in the dll list. | |
5463 | ||
177321bd DJ |
5464 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
5465 | ||
5466 | * linux-arm-low.c (thumb_breakpoint_len): Delete. | |
5467 | (thumb2_breakpoint): New. | |
5468 | (arm_breakpoint_at): Check for Thumb-2 breakpoints. | |
5469 | ||
2b009048 DJ |
5470 | 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
5471 | ||
5472 | * linux-low.c (get_stop_pc): Check for SIGTRAP. | |
5473 | (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible | |
5474 | breakpoints. | |
5475 | ||
3be029c7 PA |
5476 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
5477 | ||
5478 | * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes. | |
5479 | ||
18f5de3b JK |
5480 | 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
5481 | ||
5482 | * linux-s390-low.c (s390_collect_ptrace_register) | |
5483 | (s390_supply_ptrace_register): Adjust it for the new regcache parameter. | |
5484 | ||
3743bb4f DE |
5485 | 2010-01-21 Doug Evans <dje@google.com> |
5486 | ||
14ce3065 DE |
5487 | * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*. |
5488 | (PTRACE_ARG4_TYPE): New macro. | |
5489 | (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE. | |
5490 | (linux_wait_for_event_1, linux_resume_one_lwp): Ditto. | |
5491 | (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE. | |
5492 | (usr_store_inferior_registers): Ditto. | |
5493 | (linux_read_memory, linux_write_memory): Ditto. | |
5494 | (linux_test_for_tracefork): Ditto. | |
5495 | ||
3743bb4f DE |
5496 | * linux-arm-low.c: Remove redundant include of gdb_proc_service.h. |
5497 | Only include elf.h if gdb_proc_service.h didn't include linux/elf.h. | |
5498 | ||
8b315be5 PA |
5499 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
5500 | ||
5501 | * proc-service.c (ps_lgetregs): Don't refetch registers from the | |
5502 | target. | |
5503 | ||
85492558 PA |
5504 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
5505 | ||
5506 | * spu-low.c (spu_fetch_registers, spu_store_registers): Change | |
5507 | prototype to take a regcache. Adjust. | |
5508 | ||
442ea881 PA |
5509 | 2010-01-20 Pedro Alves <pedro@codesourcery.com> |
5510 | ||
5511 | * regcache.h (struct thread_info): Forward declare. | |
5512 | (struct regcache): New. | |
5513 | (new_register_cache): Adjust prototype. | |
5514 | (get_thread_regcache): Declare. | |
5515 | (free_register_cache): Adjust prototype. | |
5516 | (registers_to_string, registers_from_string): Ditto. | |
5517 | (supply_register, supply_register_by_name, collect_register) | |
5518 | (collect_register_as_string, collect_register_by_name): Ditto. | |
5519 | * regcache.c (struct inferior_regcache_data): Delete. | |
5520 | (get_regcache): Rename to ... | |
5521 | (get_thread_regcache): ... this. Adjust. Switch inferior before | |
5522 | fetching registers. | |
5523 | (regcache_invalidate_one): Adjust. | |
5524 | (regcache_invalidate): Fix prototype. | |
5525 | (new_register_cache): Return the new register cache. | |
5526 | (free_register_cache): Change prototype. | |
5527 | (realloc_register_cache): Adjust. | |
5528 | (registers_to_string): Change prototype to take a regcache. Adjust. | |
5529 | (registers_from_string): Ditto. | |
5530 | (register_data): Ditto. | |
5531 | (supply_register): Ditto. | |
5532 | (supply_register_by_name): Ditto. | |
5533 | (collect_register): Ditto. | |
5534 | (collect_register_as_string): Ditto. | |
5535 | (collect_register_by_name): Ditto. | |
5536 | * server.c (process_serial_event): Adjust. | |
5537 | * linux-low.h (regset_fill_func, regset_store_func): Change | |
5538 | prototype. | |
5539 | (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register): | |
5540 | Change prototype. | |
5541 | * linux-low.c (get_stop_pc): Adjust. | |
5542 | (check_removed_breakpoint): Adjust. | |
5543 | (linux_wait_for_event): Adjust. | |
5544 | (linux_resume_one_lwp): Adjust. | |
5545 | (fetch_register): Add regcache parameter. Adjust. | |
5546 | (usr_store_inferior_registers): Ditto. | |
5547 | (regsets_fetch_inferior_registers): Ditto. | |
5548 | (regsets_store_inferior_registers): Ditto. | |
5549 | (linux_fetch_registers, linux_store_registers): Ditto. | |
5550 | * i387-fp.c (i387_cache_to_fsave): Change prototype to take a | |
5551 | regcache. Adjust. | |
43aaf8b6 PA |
5552 | (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache): |
5553 | Ditto. | |
442ea881 PA |
5554 | * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change |
5555 | prototype to take a regcache. | |
5556 | (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto. | |
5557 | * remote-utils.c (convert_ascii_to_int, outreg) | |
5558 | (prepare_resume_reply): Change prototype to take a regcache. | |
5559 | Adjust. | |
5560 | * target.h (struct target_ops) <fetch_registers, store_registers>: | |
5561 | Change prototype to take a regcache. | |
5562 | (fetch_inferior_registers, store_inferior_registers): Change | |
5563 | prototype to take a regcache. Adjust. | |
5564 | * proc-service.c (ps_lgetregs): Adjust. | |
5565 | * linux-x86-low.c (x86_fill_gregset, x86_store_gregset) | |
5566 | (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset) | |
5567 | (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to | |
5568 | take a regcache. Adjust. | |
5569 | * linux-arm-low.c (arm_fill_gregset, arm_store_gregset) | |
5570 | (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset) | |
5571 | (arm_store_vfpregset, arm_get_pc, arm_set_pc): | |
5572 | (arm_breakpoint_at): Change prototype to take a regcache. Adjust. | |
5573 | * linux-cris-low.c (cris_get_pc, cris_set_pc) | |
5574 | (cris_cannot_fetch_register): | |
5575 | (cris_breakpoint_at): Change prototype to take a regcache. | |
5576 | Adjust. | |
5577 | * linux-crisv32-low.c (cris_get_pc, cris_set_pc, | |
5578 | cris_reinsert_addr, cris_write_data_breakpoint): Change prototype | |
5579 | to take a regcache. Adjust. | |
5580 | (cris_breakpoint_at, cris_insert_point, cris_remove_point): | |
5581 | Adjust. | |
5582 | * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to | |
5583 | take a regcache. Adjust. | |
5584 | * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset) | |
5585 | (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc, | |
5586 | (m68k_set_pc): Change prototype to take a regcache. Adjust. | |
5587 | * linux-mips-low.c (mips_get_pc): | |
5588 | (mips_set_pc): Change prototype to take a regcache. Adjust. | |
5589 | (mips_reinsert_addr): Adjust. | |
5590 | (mips_collect_register): Change prototype to take a regcache. | |
5591 | Adjust. | |
5592 | (mips_supply_register): | |
5593 | (mips_collect_register_32bit, mips_supply_register_32bit) | |
5594 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) | |
5595 | (mips_store_fpregset): Ditto. | |
43aaf8b6 PA |
5596 | * linux-ppc-low.c (ppc_supply_ptrace_register) |
5597 | (ppc_supply_ptrace_register): Ditto. | |
442ea881 PA |
5598 | (parse_spufs_run): Adjust. |
5599 | (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset) | |
5600 | (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset) | |
5601 | (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to | |
5602 | take a regcache. Adjust. | |
5603 | * linux-s390-low.c (s390_collect_ptrace_register) | |
5604 | (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc) | |
5605 | (s390_set_pc): Change prototype to take a regcache. Adjust. | |
5606 | (s390_arch_setup): Adjust. | |
5607 | * linux-sh-low.c (sh_get_pc, sh_breakpoint_at) | |
5608 | (sh_fill_gregset): Change prototype to take a regcache. Adjust. | |
5609 | * linux-sparc-low.c (sparc_fill_gregset_to_stack) | |
5610 | (sparc_fill_gregset, sparc_store_gregset_from_stack) | |
5611 | (sparc_store_gregset, sparc_get_pc): Change prototype to take a | |
5612 | regcache. Adjust. | |
5613 | (sparc_breakpoint_at): Adjust. | |
5614 | * linux-xtensa-low.c (xtensa_fill_gregset): | |
5615 | (xtensa_store_gregset): | |
5616 | (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc) | |
5617 | (xtensa_set_pc): Change prototype to take a regcache. Adjust. | |
5618 | * nto-low.c (nto_fetch_registers, nto_store_registers): Change | |
5619 | prototype to take a regcache. Adjust. | |
5620 | * win32-arm-low.c (arm_fetch_inferior_register) | |
5621 | (arm_store_inferior_register): Change prototype to take a | |
5622 | regcache. Adjust. | |
5623 | * win32-i386-low.c (i386_fetch_inferior_register) | |
5624 | (i386_store_inferior_register): Change prototype to take a | |
5625 | regcache. Adjust. | |
5626 | * win32-low.c (child_fetch_inferior_registers) | |
5627 | (child_store_inferior_registers): Change prototype to take a | |
5628 | regcache. Adjust. | |
5629 | (win32_wait): Adjust. | |
5630 | (win32_fetch_inferior_registers): Change prototype to take a | |
5631 | regcache. Adjust. | |
5632 | (win32_store_inferior_registers): Adjust. | |
5633 | * win32-low.h (struct win32_target_ops) <fetch_inferior_register, | |
5634 | store_inferior_register>: Change prototype to take a regcache. | |
5635 | ||
60c3d7b0 DE |
5636 | 2010-01-20 Doug Evans <dje@google.com> |
5637 | ||
5638 | * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in | |
5639 | #ifdef. | |
5640 | (linux_wait_for_event1, linux_init_signals): Ditto. | |
ec8ebe72 | 5641 | (W_STOPCODE): Provide definition if missing. |
60c3d7b0 | 5642 | |
dc146f7c VP |
5643 | 2010-01-13 Vladimir Prus <vladimir@codesourcery.com> |
5644 | ||
5645 | * linux-low.c (linux_core_of_thread): New. | |
5646 | (compare_ints, show_process, list_threads): New. | |
5647 | (linux_qxfer_osdata): Report threads and cores. | |
5648 | (linux_target_op): Register linux_core_of_thread. | |
5649 | * remote-utils.c (prepare_resume_reply): Report the core. | |
5650 | (buffer_xml_printf): Support %d specifier. | |
5651 | * server.c (handle_threads_qxfer_proper, handle_threads_qxfer): | |
5652 | New. | |
5653 | (handle_query): Handle qXfer:threads. Announce availability | |
5654 | thereof. | |
5655 | * target.h (struct target_ops): New field core_of_thread. | |
5656 | ||
7803799a UW |
5657 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
5658 | ||
5659 | * Makefile.in (clean): Remove new generated files. | |
5660 | (reg-s390.o, reg-s390.c): Remove rules. | |
5661 | (reg-s390x.o, reg-s390x.c): Likewise. | |
5662 | (s390-linux32.o, s390-linux32.c): Add rules. | |
5663 | (s390-linux64.o, s390-linux64.c): Likewise. | |
5664 | (s390x-linux64.o, s390x-linux64.c): Likewise. | |
5665 | * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles. | |
5666 | * linux-s390-low.c: Include <elf.h>. | |
5667 | (HWCAP_S390_HIGH_GPRS): Define if undefined. | |
5668 | (init_registers_s390): Remove prototype. | |
5669 | (init_registers_s390x): Likewise. | |
5670 | (init_registers_s390_linux32): Add prototype. | |
5671 | (init_registers_s390_linux64): Likewise. | |
5672 | (init_registers_s390x_linux64): Likewise. | |
5673 | (s390_num_regs_3264): New define. | |
5674 | (s390_regmap_3264): New global variable. | |
5675 | (s390_cannot_fetch_register): Remove obsolete check. | |
5676 | (s390_cannot_store_register): Likewise. | |
5677 | (s390_collect_ptrace_register): Handle upper/lower register halves. | |
5678 | (s390_supply_ptrace_register): Likewise. | |
5679 | (s390_fill_gregset): Update to register number changes. | |
5680 | (s390_get_hwcap): New routine. | |
5681 | (s390_arch_setup): Detect 32-bit process running on 64-bit system. | |
5682 | Install appropriate regmap and register set. | |
5683 | ||
6e7ffa39 JB |
5684 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
5685 | ||
5686 | * server.c (gdbserver_version): Update copyright year to 2010. | |
5687 | * gdbreplay.c (gdbreplay_version): Likewise. | |
5688 | ||
957f3f49 DE |
5689 | 2009-12-28 Doug Evans <dje@google.com> |
5690 | ||
5691 | * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h, | |
5692 | elf/external.h. Include <elf.h> instead but only if necessary. | |
5693 | ||
ca5c370d PA |
5694 | 2009-12-28 Pedro Alves <pedro@codesourcery.com> |
5695 | ||
5696 | * linux-low.c (linux_remove_process): Remove `detaching' | |
5697 | parameter. Don't release/detach from thread_db here. | |
5698 | (linux_kill): Release/detach from thread_db here, ... | |
5699 | (linux_detach): ... and here, before actually detaching. | |
5700 | (linux_wait_1): ... and here, when a process exits. | |
5701 | * thread-db.c (any_thread_of): New. | |
5702 | (thread_db_free): Switch the current inferior to a thread of the | |
5703 | passed in process. | |
5704 | ||
4ee62156 DE |
5705 | 2009-12-21 Doug Evans <dje@google.com> |
5706 | ||
d90e6a88 DE |
5707 | * linux-x86-low.c: Delete outdated comment about Elf32_Phdr. |
5708 | ||
c5f62d5f DE |
5709 | * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill. |
5710 | Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc | |
5711 | warning ifndef __NR_tkill. Move setting of errno there too. | |
5712 | Delete unnecessary resetting of errno after syscall. | |
5713 | Minor comment changes to match gdb/linux-nat.c:kill_lwp. | |
5714 | ||
10e86dd7 DE |
5715 | * configure.ac: Check for dladdr. |
5716 | * config.in: Regenerate. | |
5717 | * configure: Regenerate. | |
5718 | * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR. | |
5719 | (try_thread_db_load): Update. | |
5720 | ||
4ee62156 DE |
5721 | * linux-low.c (my_waitpid): Delete unnecessary prototype. |
5722 | ||
00f515da DE |
5723 | 2009-12-18 Doug Evans <dje@google.com> |
5724 | ||
e9464885 DE |
5725 | * event-loop.c: Include unistd.h if it exists. |
5726 | ||
07d4f67e DE |
5727 | * linux-low.c (my_waitpid): Move definition away from being in |
5728 | between linux_tracefork_child/linux_test_for_tracefork. | |
5729 | ||
00f515da DE |
5730 | * gdb_proc_service.h (psaddr_t): Fix type. |
5731 | * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix | |
5732 | signature to match glibc. | |
5733 | ||
1de1badb DE |
5734 | 2009-12-16 Doug Evans <dje@google.com> |
5735 | ||
5736 | * linux-low.c (linux_read_memory): Fix argument to read. | |
5737 | ||
aeeb81d1 PA |
5738 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
5739 | ||
5740 | * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT | |
5741 | events, don't leave current_inferior pointing at null. | |
5742 | ||
10357975 PA |
5743 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
5744 | ||
5745 | * win32-low.c (LOG): Delete. | |
5746 | (OUTMSG): Output to stderr. | |
5747 | (OUTMSG2): Conditionalize on `debug_threads' variable, instead of | |
5748 | on compile time LOG macro. | |
5749 | (win32_wait): Fix debug output. | |
5750 | ||
cf6e3471 PA |
5751 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
5752 | ||
5753 | * win32-low.c (win32_add_one_solib): If the dll name is | |
5754 | "ntdll.dll", prepend the system directory to the dll path. | |
5755 | ||
0c85e18e MK |
5756 | 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com> |
5757 | ||
5758 | * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization. | |
5759 | ||
9ac544ce | 5760 | 2009-11-17 Nathan Sidwell <nathan@codesourcery.com> |
889bf7c5 | 5761 | Vladimir Prus <vladimir@codesourcery.com> |
9ac544ce MK |
5762 | |
5763 | * Makefile.in (reg-cf.o, reg-cf.c): New targets. | |
5764 | * configure.ac: Check for __mcoldfire__ and set | |
5765 | gdb_cv_m68k_is_coldfire. | |
5766 | * configure.srv: Use gdb_cv_m68k_is_coldfire to select between | |
5767 | reg-cf.o and reg-m68k.o. | |
5768 | * configure: Regenerated. | |
5769 | ||
fd7dd3e6 PA |
5770 | 2009-11-16 Pedro Alves <pedro@codesourcery.com> |
5771 | ||
5772 | * linux-low.c (linux_remove_process): Add `detaching' parameter. | |
5773 | Pass it to thread_db_free. | |
5774 | (linux_kill, linux_detach, linux_wait_1): Adjust to pass the | |
5775 | proper `detaching' argument to linux_remove_process. | |
5776 | * linux-low.h (thread_db_free): Add `detaching' parameter. | |
5777 | * thread-db.c (thread_db_init): Pass false as `detaching' argument | |
5778 | to thread_db_free. | |
5779 | (thread_db_free): Add `detaching' parameter. Only | |
5780 | call td_ta_clear_event if detaching from process. | |
5781 | ||
75aa492e MK |
5782 | 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com> |
5783 | ||
5784 | * thread-db.c (thread_db_free): Fix typo. | |
5785 | ||
21e1bee4 PP |
5786 | 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com> |
5787 | ||
5788 | PR gdb/10838 | |
5789 | * thread-db.c (thread_db_free): Call td_ta_clear_event. | |
5790 | ||
8838b45e NS |
5791 | 2009-11-03 Nathan Sidwell <nathan@codesourcery.com> |
5792 | ||
5793 | * configure.ac (i[34567]86-*): Check if we're targetting x86-64 | |
5794 | with an i686 compiler. | |
5795 | * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if | |
5796 | needed. | |
5797 | * configure: Rebuilt. | |
5798 | ||
8a35fb51 SL |
5799 | 2009-10-29 Sandra Loosemore <sandra@codesourcery.com> |
5800 | ||
5801 | PR gdb/10783 | |
5802 | ||
5803 | * server.c (handle_search_memory_1): Correct read_addr initialization | |
5804 | in loop for searching subsequent chunks. | |
5805 | ||
96f15937 PP |
5806 | 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com> |
5807 | ||
5808 | * configure.ac: New --with-libthread-db option. | |
5809 | * thread-db.c: Allow direct dependence on libthread_db. | |
5810 | (thread_db_free): Adjust. | |
5811 | * config.in: Regenerate. | |
5812 | * configure: Likewise. | |
889bf7c5 | 5813 | |
5f7d1694 PP |
5814 | 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com> |
5815 | ||
5816 | PR gdb/10757 | |
5817 | * thread-db.c (attach_thread): New function. | |
5818 | (maybe_attach_thread): Return success/failure. | |
5819 | (find_new_threads_callback): Adjust. | |
889bf7c5 PA |
5820 | (thread_db_find_new_threads): Loop until no new threads. |
5821 | ||
88e3b899 PA |
5822 | 2009-10-13 Pedro Alves <pedro@codesourcery.com> |
5823 | ||
5824 | * proc-service.c (ps_lgetregs): Formatting. | |
5825 | ||
cdbfd419 PP |
5826 | 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com> |
5827 | ||
5828 | * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove. | |
5829 | * configure.ac: Adjust. | |
5830 | * linux-low.h (struct process_info_private): Move members to struct | |
5831 | thread_db. | |
5832 | (thread_db_free, thread_db_handle_monitor_command): New prototype. | |
5833 | * linux-low.c (linux_remove_process): Adjust. | |
5834 | (linux_wait_for_event_1, linux_look_up_symbols): Likewise. | |
5835 | * server.c (handle_query): Move code ... | |
5836 | (handle_monitor_command): ... here. New function. | |
5837 | * target.h (struct target_ops): New member. | |
5838 | * thread-db.c (struct thread_db): New. | |
5839 | (libthread_db_search_path): New variable. | |
5840 | (thread_db_create_event, thread_db_enable_reporting) | |
5841 | (find_one_thread, maybe_attach_thread, find_new_threads_callback) | |
5842 | (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust. | |
5843 | (try_thread_db_load_1, dladdr_to_soname): New functions. | |
5844 | (try_thread_db_load, thread_db_load_search): New functions. | |
5845 | (thread_db_init): Search for libthread_db. | |
5846 | (thread_db_free): New function. | |
5847 | (thread_db_handle_monitor_command): Likewise. | |
5848 | * config.in: Regenerate. | |
5849 | * configure: Regenerate. | |
889bf7c5 | 5850 | |
4168d2d6 UW |
5851 | 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
5852 | ||
5853 | * spu-low.c (spu_kill): Wait for inferior to terminate. | |
5854 | Call clear_inferiors. | |
5855 | (spu_detach): Call clear_inferiors. | |
5856 | ||
81ecdfbb RW |
5857 | 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
5858 | ||
5859 | * aclocal.m4: Regenerate. | |
5860 | * config.in: Likewise. | |
5861 | * configure: Likewise. | |
5862 | ||
0b9ff2c0 UW |
5863 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
5864 | ||
5865 | * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define. | |
5866 | (parse_spufs_run): New function. | |
5867 | (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC. | |
5868 | (ppc_breakpoint_at): Handle SPU breakpoints. | |
5869 | ||
efcbbd14 UW |
5870 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
5871 | ||
5872 | * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>. | |
5873 | (SPUFS_MAGIC): Define. | |
5874 | (spu_enumerate_spu_ids): New function. | |
5875 | (linux_qxfer_spu): New function. | |
5876 | (linux_target_ops): Install linux_qxfer_spu. | |
5877 | ||
f4d9bade UW |
5878 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
5879 | ||
5880 | * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o | |
5881 | and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml | |
5882 | and rs6000/powerpc-cell64l.xml to srv_xmlfiles. | |
5883 | * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules. | |
5884 | (powerpc-cell64l.o, powerpc-cell64l.c): Likewise. | |
5885 | (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c. | |
5886 | * linux-ppc-low.c (PPC_FEATURE_CELL): Define. | |
5887 | (init_registers_powerpc_cell32l): Add prototype. | |
5888 | (init_registers_powerpc_cell64l): Likewise. | |
5889 | (ppc_arch_setup): Detect Cell/B.E. architecture. | |
5890 | ||
96e946ca RW |
5891 | 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
5892 | ||
5893 | * Makefile.in (datarootdir): New variable. | |
5894 | ||
58d6951d DJ |
5895 | 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
5896 | ||
5897 | * linux-low.c (linux_write_memory): Update debugging output. | |
5898 | * Makefile.in (clean): Add new descriptions. | |
5899 | (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o) | |
5900 | (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules. | |
5901 | * configure.srv: Add new files for arm*-*-linux*. | |
5902 | * linux-arm-low.c: Add new declarations. | |
5903 | (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined. | |
5904 | (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3) | |
5905 | (HWCAP_VFPv3D16): New. | |
5906 | (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT | |
5907 | instead of __IWMMXT__. | |
5908 | (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap) | |
5909 | (arm_arch_setup): New. | |
5910 | (target_regsets): Remove #ifdef. Add VFP regset. | |
5911 | (the_low_target): Use arm_arch_setup. | |
5912 | ||
12b42a12 DJ |
5913 | 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
5914 | ||
5915 | * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip | |
5916 | the main thread again. | |
5917 | ||
ac8c974e AR |
5918 | 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com> |
5919 | ||
5920 | Adding Neutrino gdbserver. | |
5921 | * configure: Regenerated. | |
5922 | * configure.ac: Add case for srv_qnx and set LIBS accordingly. | |
5923 | * configure.srv (i[34567]86-*-nto*): New target. | |
5924 | * nto-low.c, nto-low.h, nto-x86-low.c: New files. | |
5925 | * remote-utils.c [__QNX__]: Include sys/iomgr.h | |
5926 | (nto_comctrl) [__QNX__]: New function. | |
5927 | (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl. | |
5928 | ||
4424e0c3 | 5929 | 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net> |
7437790a PA |
5930 | |
5931 | * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to | |
5932 | srv_tgtobj. | |
5933 | ||
912cf4ba PA |
5934 | 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net> |
5935 | Pedro Alves <pedro@codesourcery.com> | |
5936 | ||
5937 | * win32-i386-low.c (i386_get_thread_context): Handle systems that | |
5938 | don't support CONTEXT_EXTENDED_REGISTERS. | |
5939 | (i386_win32_breakpoint, i386_win32_breakpoint_len): New. | |
5940 | (the_low_target): Install them. | |
5941 | * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent | |
5942 | failing with ERROR_PIPE_NOT_CONNECTED. | |
5943 | ||
aa5ca48f DE |
5944 | 2009-06-30 Doug Evans <dje@google.com> |
5945 | Pierre Muller <muller@ics.u-strasbg.fr> | |
5946 | ||
5947 | Add h/w watchpoint support to x86-linux, win32-i386. | |
5948 | * Makefile.in (SFILES): Add i386-low.c | |
5949 | (i386_low_h): Define. | |
5950 | (i386-low.o): Add dependencies. | |
5951 | (linux-x86-low.o): Add i386-low.h dependency. | |
5952 | (win32-i386-low.o): Ditto. | |
5953 | * i386-low.c: New file. | |
5954 | * i386-low.h: New file. | |
5955 | * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj. | |
5956 | (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto. | |
5957 | * linux-low.c (linux_add_process): Initialize arch_private. | |
5958 | (linux_remove_process): Free arch_private. | |
5959 | (add_lwp): Initialize arch_private. | |
5960 | (delete_lwp): Free arch_private. | |
5961 | (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if | |
5962 | provided. | |
5963 | * linux-low.h (process_info_private): New member arch_private. | |
5964 | (lwp_info): New member arch_private. | |
5965 | (linux_target_ops): New members new_process, new_thread, | |
5966 | prepare_to_resume. | |
5967 | (ptid_of): New macro. | |
5968 | * linux-x86-low.c: Include stddef.h, i386-low.h. | |
5969 | (arch_process_info): New struct. | |
5970 | (arch_lwp_info): New struct. | |
5971 | (x86_linux_dr_get, x86_linux_dr_set): New functions. | |
5972 | (i386_dr_low_set_addr, i386_dr_low_set_control): New functions. | |
5973 | (i386_dr_low_get_status): New function. | |
5974 | (x86_insert_point, x86_remove_point): New functions. | |
5975 | (x86_stopped_by_watchpoint): New function. | |
5976 | (x86_stopped_data_address): New function. | |
5977 | (x86_linux_new_process, x86_linux_new_thread): New functions. | |
5978 | (x86_linux_prepare_to_resume): New function. | |
5979 | (the_low_target): Add entries for insert_point, remove_point, | |
5980 | stopped_by_watchpoint, stopped_data_address, new_process, new_thread, | |
5981 | prepare_to_resume. | |
5982 | * server.c (debug_hw_points): New global. | |
5983 | (monitor_show_help): Document set debug-hw-points. | |
5984 | (handle_query): Process "set debug-hw-points". | |
5985 | * server.h (debug_hw_points): Declare. | |
5986 | (paddress): Declare. | |
5987 | * utils.c (NUMCELLS, CELLSIZE): New macros. | |
5988 | (get_sell, xsnprintf, paddress): New functions. | |
5989 | * win32-arm-low.c (the_low_target): Add entries for insert_point, | |
5990 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
5991 | * win32-i386-low.c: Include i386-low.h. | |
5992 | (debug_reg_state): Replaces dr. | |
5993 | (i386_dr_low_set_addr, i386_dr_low_set_control): New functions. | |
5994 | (i386_dr_low_get_status): New function. | |
5995 | (i386_insert_point, i386_remove_point): New functions. | |
5996 | (i386_stopped_by_watchpoint): New function. | |
5997 | (i386_stopped_data_address): New function. | |
5998 | (i386_initial_stuff): Update. | |
5999 | (get_thread_context,set_thread_context,i386_thread_added): Update. | |
6000 | (the_low_target): Add entries for insert_point, | |
6001 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
6002 | * win32-low.c (win32_insert_watchpoint): New function. | |
6003 | (win32_remove_watchpoint): New function. | |
6004 | (win32_stopped_by_watchpoint): New function. | |
6005 | (win32_stopped_data_address): New function. | |
6006 | (win32_target_ops): Add entries for insert_watchpoint, | |
6007 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address. | |
6008 | * win32-low.h (win32_target_ops): New members insert_point, | |
6009 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
6010 | ||
d993e290 PA |
6011 | 2009-06-25 Pedro Alves <pedro@codesourcery.com> |
6012 | ||
6013 | * server.c (process_serial_event): Re-return unsupported, not | |
6014 | error, if the type isn't recognized. Re-allow supporting only | |
6015 | insert or remove packets. Also call require_running for | |
6016 | breakpoints. Add missing break statement to default case. Tidy. | |
6017 | * target.h (struct target_ops): Rename insert_watchpoint to | |
6018 | insert_point, and remove_watchpoint to remove_point. | |
6019 | ||
6020 | * linux-low.h (struct linux_target_ops): Likewise. | |
6021 | * linux-low.c (linux_insert_watchpoint): Rename to ... | |
6022 | (linux_insert_point): ... this. Adjust. | |
6023 | (linux_remove_watchpoint): Rename to ... | |
6024 | (linux_remove_point): ... this. Adjust. | |
6025 | (linux_target_ops): Adjust. | |
6026 | * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ... | |
6027 | (cris_insert_point): ... this. | |
6028 | (cris_remove_watchpoint): Rename to ... | |
6029 | (cris_remove_point): ... this. | |
6030 | (the_low_target): Adjust. | |
6031 | ||
0f54c268 PM |
6032 | 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr> |
6033 | ||
6034 | * server.c (handle_v_kill): Pass signal_pid to | |
6035 | kill_inferior if multi_process is zero. | |
6036 | ||
c6314022 AR |
6037 | 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com> |
6038 | ||
6039 | * server.c (process_serial_event): Add support for Z0 and Z1 packet. | |
6040 | * target.h (target_ops): Comment for *_watchpoint to make it clear | |
6041 | the functions can get types '0' and '1'. | |
6042 | ||
4463ce24 AR |
6043 | 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com> |
6044 | ||
6045 | * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0. | |
6046 | * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers. | |
6047 | * regcache.c (get_regcache): Likewise. | |
6048 | * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion. | |
6049 | * win32-low.c (child_fetch_inferior_registers): Remove check for | |
6050 | regno 0. | |
6051 | ||
cf8fd78b PA |
6052 | 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com> |
6053 | Pedro Alves <pedro@codesourcery.com> | |
6054 | ||
6055 | * target.h (struct target_ops) <supports_multi_process>: New | |
6056 | callback. | |
6057 | (target_supports_multi_process): New. | |
6058 | * server.c (handle_query): Even if GDB reports support, only | |
6059 | enable multi-process if the target also supports it. Report | |
6060 | multi-process support only if the target backend supports it. | |
6061 | * linux-low.c (linux_supports_multi_process): New function. | |
6062 | (linux_target_ops): Install it as target_supports_multi_process | |
6063 | callback. | |
6064 | ||
47c0c975 DE |
6065 | 2009-05-24 Doug Evans <dje@google.com> |
6066 | ||
e09875d4 DE |
6067 | Global renaming of find_thread_pid to find_thread_ptid. |
6068 | * server.h (find_thread_ptid): Renamed from find_thread_pid. | |
6069 | * inferiors.c (find_thread_ptid): Renamed from find_thread_pid. | |
6070 | All callers updated. | |
6071 | ||
e27d73f6 DE |
6072 | * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp |
6073 | to resume the newly created thread, don't call ptrace (PTRACE_CONT) | |
6074 | directly. | |
6075 | ||
47c0c975 DE |
6076 | * linux-low.c (get_stop_pc): Print pc if debug_threads. |
6077 | (check_removed_breakpoint, linux_wait_for_lwp): Ditto. | |
6078 | (linux_resume_one_lwp): Ditto. | |
6079 | ||
2acc282a DE |
6080 | 2009-05-23 Doug Evans <dje@google.com> |
6081 | ||
6082 | * linux-low.c (linux_resume_one_lwp): Change type of first arg | |
6083 | from struct inferior_list_entry * to struct lwp_info *. | |
6084 | All callers updated. | |
6085 | ||
9f1036c1 DE |
6086 | 2009-05-13 Doug Evans <dje@google.com> |
6087 | ||
6088 | * linux-x86-low.c: Don't include assert.h. | |
6089 | (x86_siginfo_fixup): Use fatal, not assert. | |
6090 | (x86_arch_setup): Fix comment. | |
6091 | ||
d0722149 DE |
6092 | 2009-05-12 Doug Evans <dje@google.com> |
6093 | ||
6094 | Biarch support for i386/amd64 gdbserver. | |
6095 | * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c. | |
6096 | Add linux-x86-low.c. | |
6097 | (linux-i386-low.o, linux-x86-64-low.o): Delete. | |
6098 | (linux-x86-low.o): Add. | |
6099 | * linux-x86-64-low.c: Delete. | |
6100 | * linux-i386-low.c: Delete. | |
6101 | * linux-x86-low.c: New file. | |
6102 | * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with | |
6103 | linux-x86-low.o. | |
6104 | (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with | |
6105 | linux-x86-low.o. | |
6106 | (x86_64-linux srv_regobj): Add reg-i386-linux.o. | |
6107 | * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h. | |
6108 | (linux_child_pid_to_exec_file): New function. | |
6109 | (elf_64_header_p, elf_64_file_p): New functions. | |
6110 | (siginfo_fixup): New function. | |
6111 | (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to | |
6112 | give target a chance to convert layout. | |
6113 | * linux-low.h (linux_target_ops): New member siginfo_fixup. | |
6114 | (linux_child_pid_to_exec_file, elf_64_file_p): Declare. | |
6115 | ||
fdeb2a12 DE |
6116 | 2009-05-07 Doug Evans <dje@google.com> |
6117 | ||
6118 | * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak. | |
6119 | (regsets_store_inferior_registers): Ditto. | |
6120 | ||
a6dbe5df PA |
6121 | 2009-05-06 Pedro Alves <pedro@codesourcery.com> |
6122 | ||
6123 | PR server/10048 | |
6124 | ||
6125 | * linux-low.c (must_set_ptrace_flags): Delete. | |
6126 | (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead | |
6127 | of the global. | |
6128 | (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set | |
6129 | `lwp->must_set_ptrace_flags' instead. | |
ba42693b | 6130 | (linux_wait_for_event_1): Set ptrace options here. |
a6dbe5df PA |
6131 | (linux_wait_1): ... not here. |
6132 | ||
5091eb23 DE |
6133 | 2009-04-30 Doug Evans <dje@google.com> |
6134 | ||
9f767825 DE |
6135 | * inferiors.c (started_inferior_callback): New function. |
6136 | (attached_inferior_callback): New function. | |
6137 | (have_started_inferiors_p, have_attached_inferiors_p): New functions. | |
6138 | * server.c (print_started_pid, print_attached_pid): New functions. | |
6139 | (detach_or_kill_for_exit): New function. | |
6140 | (main): Call it instead of for_each_inferior (kill_inferior_callback). | |
6141 | * server.h (have_started_inferiors_p): Declare. | |
6142 | (have_attached_inferiors_p): Declare. | |
6143 | ||
5091eb23 DE |
6144 | * inferiors.c (remove_process): Fix memory leak, free process. |
6145 | * linux-low.c (linux_remove_process): New function. | |
6146 | (linux_kill): Call it instead of remove_process. | |
6147 | (linux_detach, linux_wait_1): Ditto. | |
6148 | ||
155c8968 PA |
6149 | 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net> |
6150 | ||
6151 | * configure.srv: Add x86 Windows CE target. | |
6152 | ||
7fe519cb UW |
6153 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
6154 | ||
6155 | * inferiors.c (get_thread_process): Make global. | |
6156 | * server.h (get_thread_process): Add prototype. | |
6157 | * thread-db.c (find_one_thread): Use get_thread_process | |
6158 | instead of current_process. | |
6159 | (thread_db_get_tls_address): Do not crash if called when | |
6160 | thread layer is not yet initialized. | |
6161 | ||
5472f405 UW |
6162 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
6163 | ||
6164 | * remote-utils.c (prepare_resume_reply): Null-terminate packet. | |
6165 | * spu-low.c (current_tid): Rename to ... | |
6166 | (current_ptid): ... this. | |
6167 | (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory, | |
6168 | spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use | |
6169 | ptid_get_lwp (current_ptid) instead of current_tid. | |
6170 | (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument | |
6171 | instead of current_tid. Use find_process_pid to verify pid | |
6172 | argument is valid. Pass proper argument to remove_process. | |
6173 | (spu_thread_alive): Compare current_ptid instead of current_tid. | |
6174 | (spu_resume): Likewise. | |
6175 | ||
55ac2b99 PA |
6176 | 2009-04-02 Pedro Alves <pedro@codesourcery.com> |
6177 | ||
6178 | * linux-low.c (usr_store_inferior_registers): Declare local `pid' | |
6179 | variable. | |
6180 | ||
95954743 PA |
6181 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
6182 | ||
6183 | Implement the multiprocess extensions, and add linux multiprocess | |
6184 | support. | |
6185 | ||
6186 | * server.h (ULONGEST): Declare. | |
6187 | (struct ptid, ptid_t): New. | |
6188 | (minus_one_ptid, null_ptid): Declare. | |
6189 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) | |
6190 | (ptid_get_tid, ptid_equal, ptid_is_pid): Declare. | |
6191 | (struct inferior_list_entry): Change `id' type from unsigned from | |
6192 | to ptid_t. | |
6193 | (struct sym_cache, struct breakpoint, struct | |
6194 | process_info_private): Forward declare. | |
6195 | (struct process_info): Declare. | |
6196 | (current_process): Declare. | |
6197 | (all_processes): Declare. | |
6198 | (initialize_inferiors): Declare. | |
6199 | (add_thread): Adjust to use ptid_t. | |
6200 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto. | |
6201 | (add_process, remove_process, find_thread_pid): Declare. | |
6202 | (find_inferior_id): Adjust to use ptid_t. | |
6203 | (cont_thread, general_thread, step_thread): Change type to ptid_t. | |
6204 | (multi_process): Declare. | |
6205 | (push_event): Adjust to use ptid_t. | |
6206 | (read_ptid, write_ptid): Declare. | |
6207 | (prepare_resume_reply): Adjust to use ptid_t. | |
6208 | (clear_symbol_cache): Declare. | |
6209 | * inferiors.c (all_processes): New. | |
6210 | (null_ptid, minus_one_ptid): New. | |
6211 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) | |
6212 | (ptid_get_tid, ptid_equal, ptid_is_pid): New. | |
6213 | (add_thread): Change unsigned long to ptid. Remove gdb_id | |
6214 | parameter. Adjust. | |
6215 | (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid. | |
6216 | (gdb_id_to_thread): Rename to ... | |
6217 | (find_thread_pid): ... this. Change unsigned long to ptid. | |
6218 | (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid. | |
6219 | (loaded_dll, pull_pid_from_list): Adjust. | |
6220 | (add_process, remove_process, find_process_pid) | |
6221 | (get_thread_process, current_process, initialize_inferiors): New. | |
6222 | * target.h (struct thread_resume) <thread>: Change type to ptid_t. | |
6223 | (struct target_waitstatus) <related_pid>: Ditto. | |
6224 | (struct target_ops) <kill, detach>: Add `pid' argument. Change | |
6225 | return type to int. | |
6226 | (struct target_ops) <join>: Add `pid' argument. | |
6227 | (struct target_ops) <thread_alive>: Change pid's type to ptid_t. | |
6228 | (struct target_ops) <wait>: Add `ptid' field. Change return type | |
6229 | to ptid. | |
6230 | (kill_inferior, detach_inferior, join_inferior): Add `pid' argument. | |
6231 | (mywait): Add `ptid' argument. Change return type to ptid_t. | |
6232 | (target_pid_to_str): Declare. | |
6233 | * target.c (set_desired_inferior): Adjust to use ptids. | |
6234 | (mywait): Add new `ptid' argument. Adjust. | |
6235 | (target_pid_to_str): New. | |
6236 | * mem-break.h (free_all_breakpoints): Declare. | |
6237 | * mem-break.c (breakpoints): Delelete. | |
6238 | (set_breakpoint_at, delete_breakpoint, find_breakpoint_at) | |
6239 | (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust | |
6240 | to use per-process breakpoint list. | |
6241 | (free_all_breakpoints): New. | |
6242 | * remote-utils.c (struct sym_cache) <name>: Drop `const'. | |
6243 | (symbol_cache, all_symbols_looked_up): Delete. | |
6244 | (hexchars): New. | |
6245 | (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one, | |
6246 | read_ptid): New. | |
6247 | (prepare_resume_reply): Change ptid argument's type from unsigned | |
6248 | long to ptid_t. Adjust. Implement W;process and X;process. | |
6249 | (free_sym_cache, clear_symbol_cache): New. | |
6250 | (look_up_one_symbol): Adjust to per-process symbol cache. * | |
6251 | * server.c (cont_thread, general_thread, step_thread): Change type | |
6252 | to ptid_t. | |
6253 | (attached): Delete. | |
6254 | (multi_process): New. | |
6255 | (last_ptid): Change type to ptid_t. | |
6256 | (struct vstop_notif) <ptid>: Change type to ptid_t. | |
6257 | (queue_stop_reply, push_event): Change `ptid' argument's type to | |
6258 | ptid_t. | |
6259 | (discard_queued_stop_replies): Add `pid' argument. | |
6260 | (start_inferior): Adjust to use ptids. Adjust to mywait interface | |
6261 | changes. Don't reference the `attached' global. | |
6262 | (attach_inferior): Adjust to mywait interface changes. | |
6263 | (handle_query): Adjust to use ptids. Parse GDB's qSupported | |
6264 | features. Handle and report "multiprocess+". Handle | |
6265 | "qAttached:PID". | |
6266 | (handle_v_cont): Adjust to use ptids. Adjust to mywait interface | |
6267 | changes. | |
6268 | (handle_v_kill): New. | |
6269 | (handle_v_stopped): Adjust to use target_pid_to_str. | |
6270 | (handle_v_requests): Allow multiple attaches and runs when | |
6271 | multiprocess extensions are in effect. Handle "vKill". | |
6272 | (myresume): Adjust to use ptids. | |
6273 | (queue_stop_reply_callback): Add `arg' parameter. Handle it. | |
6274 | (handle_status): Adjust to discard_queued_stop_replies interface | |
6275 | change. | |
6276 | (first_thread_of, kill_inferior_callback) | |
6277 | (detach_or_kill_inferior_callback, join_inferiors_callback): New. | |
6278 | (main): Call initialize_inferiors. Adjust to use ptids, killing | |
6279 | and detaching from all inferiors. Handle multiprocess packet | |
6280 | variants. | |
6281 | * linux-low.h: Include gdb_proc_service.h. | |
6282 | (struct process_info_private): New. | |
6283 | (struct linux_target_ops) <pid_of>: Use ptid_get_pid. | |
6284 | <lwpid_of>: Use ptid_get_lwp. | |
6285 | (get_lwp_thread): Adjust. | |
6286 | (struct lwp_info): Add `dead' member. | |
6287 | (find_lwp_pid): Declare. | |
6288 | * linux-low.c (thread_db_active): Delete. | |
6289 | (new_inferior): Adjust comment. | |
6290 | (inferior_pid): Delete. | |
6291 | (linux_add_process): New. | |
6292 | (handle_extended_wait): Adjust. | |
6293 | (add_lwp): Change unsigned long to ptid. | |
6294 | (linux_create_inferior): Add process to processes table. Adjust | |
6295 | to use ptids. Don't set new_inferior here. | |
6296 | (linux_attach_lwp): Rename to ... | |
6297 | (linux_attach_lwp_1): ... this. Add `initial' argument. Handle | |
6298 | it. Adjust to use ptids. | |
6299 | (linux_attach_lwp): New. | |
6300 | (linux_attach): Add process to processes table. Don't set | |
6301 | new_inferior here. | |
6302 | (struct counter): New. | |
6303 | (second_thread_of_pid_p, last_thread_of_process_p): New. | |
6304 | (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to | |
6305 | multiple processes. | |
6306 | (linux_kill): Add `pid' argument. Handle it. Adjust to multiple | |
6307 | processes. Remove process from process table. | |
6308 | (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust | |
6309 | to multiple processes. | |
6310 | (any_thread_of): New. | |
6311 | (linux_detach): Add `pid' argument, and handle it. Remove process | |
6312 | from processes table. | |
6313 | (linux_join): Add `pid' argument. Handle it. | |
6314 | (linux_thread_alive): Change unsighed long argument to ptid_t. | |
6315 | Consider dead lwps as not being alive. | |
6316 | (status_pending_p): Rename `dummy' argument to `arg'. Filter out | |
6317 | threads we're not interested in. | |
6318 | (same_lwp, find_lwp_pid): New. | |
6319 | (linux_wait_for_lwp): Change `pid' argument's type from int to | |
6320 | ptid_t. Adjust. | |
6321 | (linux_wait_for_event): Rename to ... | |
6322 | (linux_wait_for_event_1): ... this. Change `pid' argument's type | |
6323 | from int to ptid_t. Adjust. | |
6324 | (linux_wait_for_event): New. | |
6325 | (linux_wait_1): Add `ptid' argument. Change return type to | |
6326 | ptid_t. Adjust. Use last_thread_of_process_p. Remove processes | |
6327 | that exit from the process table. | |
6328 | (linux_wait): Add `ptid' argument. Change return type to ptid_t. | |
6329 | Adjust. | |
6330 | (mark_lwp_dead): New. | |
6331 | (wait_for_sigstop): Adjust to use ptids. If a process exits while | |
6332 | stopping all threads, mark its main lwp as dead. | |
6333 | (linux_set_resume_request, linux_resume_one_thread): Adjust to use | |
6334 | ptids. | |
6335 | (fetch_register, usr_store_inferior_registers) | |
6336 | (regsets_fetch_inferior_registers) | |
6337 | (regsets_store_inferior_registers, linux_read_memory) | |
6338 | (linux_write_memory): Inline `inferior_pid'. | |
6339 | (linux_look_up_symbols): Adjust to use per-process | |
6340 | `thread_db_active'. | |
6341 | (linux_request_interrupt): Adjust to use ptids. | |
6342 | (linux_read_auxv): Inline `inferior_pid'. | |
6343 | (initialize_low): Don't reference thread_db_active. | |
6344 | * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove. | |
6345 | * proc-service.c (ps_lgetregs): Use find_lwp_pid. | |
6346 | (ps_getpid): Return the pid of the current inferior. | |
6347 | * thread-db.c (proc_handle, thread_agent): Delete. | |
6348 | (thread_db_create_event, thread_db_enable_reporting): Adjust to | |
6349 | per-process data. | |
6350 | (find_one_thread): Change argument type to ptid_t. Adjust to | |
6351 | per-process data. | |
6352 | (maybe_attach_thread): Adjust to per-process data and ptids. | |
6353 | (thread_db_find_new_threads): Ditto. | |
6354 | (thread_db_init): Ditto. | |
6355 | * spu-low.c (spu_create_inferior, spu_attach): Add process to | |
6356 | processes table. Adjust to use ptids. | |
6357 | (spu_kill, spu_detach): Adjust interface. Remove process from | |
6358 | processes table. | |
6359 | (spu_join, spu_thread_alive): Adjust interface. | |
6360 | (spu_wait): Adjust interface. Remove process from processes | |
6361 | table. Adjust to use ptids. | |
6362 | * win32-low.c (current_inferior_tid): Delete. | |
6363 | (current_inferior_ptid): New. | |
6364 | (debug_event_ptid): New. | |
6365 | (thread_rec): Take a ptid. Adjust. | |
6366 | (child_add_thread): Add `pid' argument. Adjust to use ptids. | |
6367 | (child_delete_thread): Ditto. | |
6368 | (do_initial_child_stuff): Add `attached' argument. Add process to | |
6369 | processes table. | |
6370 | (child_fetch_inferior_registers, child_store_inferior_registers): | |
6371 | Adjust. | |
6372 | (win32_create_inferior): Pass 0 to do_initial_child_stuff. | |
6373 | (win32_attach): Pass 1 to do_initial_child_stuff. | |
6374 | (win32_kill): Adjust interface. Remove process from processes | |
6375 | table. | |
6376 | (win32_detach): Ditto. | |
6377 | (win32_join): Adjust interface. | |
6378 | (win32_thread_alive): Take a ptid. | |
6379 | (win32_resume): Adjust to use ptids. | |
6380 | (get_child_debug_event): Ditto. | |
6381 | (win32_wait): Adjust interface. Remove exiting process from | |
6382 | processes table. | |
6383 | ||
bd99dc85 PA |
6384 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
6385 | ||
6386 | Non-stop mode support. | |
6387 | ||
6388 | * server.h (non_stop): Declare. | |
6389 | (gdb_client_data, handler_func): Declare. | |
6390 | (delete_file_handler, add_file_handler, start_event_loop): | |
6391 | Declare. | |
6392 | (handle_serial_event, handle_target_event, push_event) | |
6393 | (putpkt_notif): Declare. | |
6394 | * target.h (enum resume_kind): New. | |
6395 | (struct thread_resume): Replace `step' field by `kind' field. | |
6396 | (TARGET_WNOHANG): Define. | |
6397 | (struct target_ops) <wait>: Add `options' argument. | |
6398 | <supports_non_stop, async, start_non_stop>: New fields. | |
6399 | (target_supports_non_stop, target_async): New. | |
6400 | (start_non_stop): Declare. | |
6401 | (mywait): Add `options' argument. | |
6402 | * target.c (mywait): Add `options' argument. Print child exit | |
6403 | notifications here. | |
6404 | (start_non_stop): New. | |
6405 | * server.c (non_stop, own_buf, mem_buf): New globals. | |
6406 | (struct vstop_notif): New. | |
6407 | (notif_queue): New global. | |
6408 | (queue_stop_reply, push_event, discard_queued_stop_replies) | |
6409 | (send_next_stop_reply): New. | |
6410 | (start_inferior): Adjust to use resume_kind. Adjust to mywait | |
6411 | interface changes. | |
6412 | (attach_inferior): In non-stop mode, don't wait for the target | |
6413 | here. | |
6414 | (handle_general_set): Handle QNonStop. | |
6415 | (handle_query): When handling qC, return the current general | |
6416 | thread, instead of the first thread of the list. | |
6417 | (handle_query): If the backend supports non-stop mode, include | |
6418 | QNonStop+ in the qSupported query response. | |
6419 | (handle_v_cont): Adjust to use resume_kind. Handle resume_stop | |
6420 | and non-stop mode. | |
6421 | (handle_v_attach, handle_v_run): Handle non-stop mode. | |
6422 | (handle_v_stopped): New. | |
6423 | (handle_v_requests): Report support for vCont;t. Handle vStopped. | |
6424 | (myresume): Adjust to use resume_kind. Handle non-stop. | |
6425 | (queue_stop_reply_callback): New. | |
6426 | (handle_status): Handle non-stop mode. | |
6427 | (main): Clear non_stop flag on reconnection. Use the event-loop. | |
6428 | Refactor serial protocol handling from here ... | |
6429 | (process_serial_event): ... to this new function. When GDB | |
6430 | selects any thread, select one here. In non-stop mode, wait until | |
6431 | GDB acks all pending events before exiting. | |
6432 | (handle_serial_event, handle_target_event): New. | |
6433 | * remote-utils.c (remote_open): Install remote_desc in the event | |
6434 | loop. | |
6435 | (remote_close): Remove remote_desc from the event loop. | |
6436 | (putpkt_binary): Rename to... | |
6437 | (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it. | |
6438 | (putpkt_binary): New as wrapper around putpkt_binary_1. | |
6439 | (putpkt_notif): New. | |
6440 | (prepare_resume_reply): In non-stop mode, don't change the | |
6441 | general_thread. | |
6442 | * event-loop.c: New. | |
6443 | * Makefile.in (OBJ): Add event-loop.o. | |
6444 | (event-loop.o): New rule. | |
6445 | ||
6446 | * linux-low.h (pid_of): Moved here. | |
6447 | (lwpid_of): New. | |
6448 | (get_lwp_thread): Use lwpid_of. | |
6449 | (struct lwp_info): Delete `lwpid' field. Add `suspended' field. | |
6450 | * linux-low.c (pid_of): Delete. | |
6451 | (inferior_pid): Use lwpid_of. | |
6452 | (linux_event_pipe): New. | |
6453 | (target_is_async_p): New. | |
6454 | (delete_lwp): New. | |
6455 | (handle_extended_wait): Use lwpid_of. | |
6456 | (add_lwp): Don't set lwpid field. | |
6457 | (linux_attach_lwp): Adjust debug output. Use lwpid_of. | |
6458 | (linux_kill_one_lwp): If killing a running lwp, stop it first. | |
6459 | Use lwpid_of. Adjust to linux_wait_for_event interface changes. | |
6460 | (linux_detach_one_lwp): If detaching from a running lwp, stop it | |
6461 | first. Adjust to linux_wait_for_event interface changes. Use | |
6462 | lwpid_of. | |
6463 | (linux_detach): Don't delete the main lwp here. | |
6464 | (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of. | |
6465 | (status_pending_p): Don't consider explicitly suspended lwps. | |
6466 | (linux_wait_for_lwp): Take an integer pid instead of a lwp_info | |
6467 | pointer. Add OPTIONS argument. Change return type to int. Use | |
6468 | my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of. | |
6469 | (linux_wait_for_event): Take an integer pid instead of a lwp_info | |
6470 | pointer. Add status pointer argument. Return a pid instead of a | |
6471 | status. Use lwpid_of. Adjust to linux_wait_for_lwp interface | |
6472 | changes. In non-stop mode, don't switch to a random thread. | |
6473 | (linux_wait): Rename to... | |
6474 | (linux_wait_1): ... this. Add target_options argument, and handle | |
6475 | it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode, | |
6476 | don't handle the continue thread. Handle TARGET_WNOHANG. Merge | |
6477 | clean exit and signal exit code. Don't stop all threads in | |
6478 | non-stop mode. In all-stop mode, only stop all threads when | |
6479 | reporting a stop to GDB. Handle explicit thread stop requests. | |
6480 | (async_file_flush, async_file_mark): New. | |
6481 | (linux_wait): New. | |
6482 | (send_sigstop): Use lwpid_of. | |
6483 | (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event | |
6484 | interface changes. In non-stop mode, don't switch to a random | |
6485 | thread. | |
6486 | (linux_resume_one_lwp): Use lwpid_of. | |
6487 | (linux_continue_one_thread, linux_queue_one_thread): Merge into ... | |
6488 | (linux_resume_one_thread): ... this. Handle resume_stop. In | |
6489 | non-stop mode, don't look for pending flag in all threads. | |
6490 | (resume_status_pending_p): Don't consider explicitly suspended | |
6491 | threads. | |
6492 | (my_waitpid): Reimplement. Emulate __WALL. | |
6493 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): | |
6494 | Use lwpid_of. | |
6495 | (sigchld_handler, linux_supports_non_stop, linux_async) | |
6496 | (linux_start_non_stop): New. | |
6497 | (linux_target_ops): Register linux_supports_non_stop, linux_async | |
6498 | and linux_start_non_stop. | |
6499 | (initialize_low): Install SIGCHLD handler. | |
6500 | * thread-db.c (thread_db_create_event, find_one_thread) | |
6501 | (thread_db_get_tls_address): Use lwpid_of. | |
6502 | * win32-low.c (win32_detach): Adjust to use resume_kind. | |
6503 | (win32_wait): Add `options' argument. | |
6504 | * spu-low.c (spu_resume): Adjust to use resume_kind. | |
6505 | (spu_wait): Add `options' argument. | |
6506 | ||
5b1c542e PA |
6507 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
6508 | ||
6509 | Decouple target code from remote protocol. | |
6510 | ||
6511 | * target.h (enum target_waitkind): New. | |
6512 | (struct target_waitstatus): New. | |
6513 | (struct target_ops) <wait>: Return an unsigned long. Take a | |
6514 | target_waitstatus pointer instead of a char pointer. | |
6515 | (mywait): Likewise. | |
6516 | * target.c (mywait): Change prototype to return an unsigned long. | |
6517 | Take a target_waitstatus pointer instead of a char pointer. Adjust. | |
6518 | * server.h (thread_from_wait, old_thread_from_wait): Delete | |
6519 | declarations. | |
6520 | (prepare_resume_reply): Change prototype to take a | |
6521 | target_waitstatus. | |
6522 | * server.c (thread_from_wait, old_thread_from_wait): Delete. | |
6523 | (last_status, last_ptid): New. | |
6524 | (start_inferior): Remove "statusptr" argument. Adjust. Return a | |
6525 | pid instead of a signal. | |
6526 | (attach_inferior): Remove "status" and "signal" parameters. | |
6527 | Adjust. | |
6528 | (handle_query): For qGetTLSAddr, parse the thread id with strtol, | |
6529 | not as an address. | |
6530 | (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill) | |
6531 | (handle_v_requests, myresume): Remove "status" and "signal" | |
6532 | parameters. Adjust. | |
6533 | (handle_status): New. | |
6534 | (main): Delete local `status'. Adjust. | |
6535 | * remote-utils.c: Include target.h. | |
6536 | (prepare_resume_reply): Change prototype to take a | |
6537 | target_waitstatus. Adjust. | |
6538 | ||
6539 | * linux-low.c (linux_wait): Adjust to new target_ops->wait | |
6540 | interface. | |
6541 | * spu-low.c (spu_wait): Adjust. | |
6542 | * win32-low.c (enum target_waitkind, struct target_waitstatus): | |
6543 | Delete. | |
6544 | (win32_wait): Adjust. | |
6545 | ||
2bd7c093 PA |
6546 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
6547 | ||
6548 | * target.h (struct thread_resume): Delete leave_stopped member. | |
6549 | (struct target_ops): Add a `n' argument to the `resume' callback. | |
6550 | * server.c (start_inferior): Adjust. | |
6551 | (handle_v_cont, myresume): Adjust. | |
6552 | * linux-low.c (check_removed_breakpoint): Adjust to resume | |
6553 | interface change, and to removed leave_stopped field. | |
6554 | (resume_ptr): Delete. | |
6555 | (struct thread_resume_array): New. | |
6556 | (linux_set_resume_request): Add new `arg' parameter. Adjust to | |
6557 | resume interface change. | |
6558 | (linux_continue_one_thread, linux_queue_one_thread) | |
6559 | (resume_status_pending_p): Check if the resume field is NULL | |
6560 | instead of checking the leave_stopped member. | |
6561 | (linux_resume): Adjust to the target resume interface change. | |
6562 | * spu-low.c (spu_resume): Adjust to the target resume interface | |
6563 | change. | |
6564 | * win32-low.c (win32_detach, win32_resume): Ditto. | |
6565 | ||
c35fafde PA |
6566 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
6567 | ||
6568 | * linux-low.c (linux_wait_for_event): Don't clear the `stepping' | |
6569 | flag. | |
6570 | (wait_for_sigstop): Don't leave a finished single-step SIGTRAP | |
6571 | pending. | |
6572 | (linux_continue_one_thread): Only preserve the stepping flag if | |
6573 | there's a pending breakpoint. | |
6574 | ||
0a59d50b PA |
6575 | 2009-03-31 Pedro Alves <pedro@codesourcery.com> |
6576 | ||
6577 | * server.c (main): After the inferior having exited, call | |
6578 | remote_close before exiting gdbserver. | |
6579 | ||
f04c6d38 TJB |
6580 | 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6581 | ||
6582 | Fix size of FPSCR in Power 7 processors. | |
6583 | * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define. | |
6584 | (PPC_FEATURE_HAS_DFP): New #define. | |
6585 | (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on | |
6586 | size of the FPSCR. | |
6587 | ||
78e5cee6 PA |
6588 | 2009-03-23 Pedro Alves <pedro@codesourcery.com> |
6589 | ||
6590 | * server.c (handle_query) Whitespace and formatting. | |
6591 | ||
1b3f6016 PA |
6592 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
6593 | ||
6594 | * i387-fp.c, linux-arm-low.c, linux-cris-low.c, | |
6595 | linux-crisv32-low.c, linux-i386-low.c, linux-low.c, | |
6596 | linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c, | |
6597 | linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c, | |
6598 | regcache.c, remote-utils.c, server.c, spu-low.c, target.h, | |
6599 | thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c, | |
6600 | Makefile.in, configure.ac: Fix whitespace throughout. | |
6601 | * configure: Regenerate. | |
6602 | ||
a07b2135 PA |
6603 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
6604 | ||
6605 | * inferiors.c (find_inferior): Make it safe for the callback | |
6606 | function to delete the currently iterated inferior. | |
6607 | ||
67cc2626 PA |
6608 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
6609 | ||
6610 | * Makefile.in (linuw_low_h): Move higher. | |
6611 | (thread-db.o): Depend on $(linux_low_h). | |
6612 | ||
54a0b537 PA |
6613 | 2009-03-17 Pedro Alves <pedro@codesourcery.com> |
6614 | ||
6615 | Rename "process" to "lwp" throughout. | |
6616 | ||
6617 | * linux-low.c (all_processes): Rename to... | |
6618 | (all_lwps): ... this. | |
6619 | (inferior_pid, handle_extended_wait, get_stop_pc): Adjust. | |
6620 | (add_process): Rename to ... | |
6621 | (add_lwp): ... this. Adjust. | |
6622 | (linux_create_inferior): Adjust. | |
6623 | (linux_attach_lwp): Adjust. | |
6624 | (linux_attach): Adjust. | |
6625 | (linux_kill_one_process): Rename to ... | |
6626 | (linux_kill_one_lwp): ... this. Adjust. | |
6627 | (linux_kill): Adjust. | |
6628 | (linux_detach_one_process): Rename to ... | |
6629 | (linux_detach_one_lwp): ... this. Adjust. | |
6630 | (linux_detach): Adjust. | |
6631 | (check_removed_breakpoint): Adjust. | |
6632 | (status_pending_p): Adjust. | |
6633 | (linux_wait_for_process): Rename to ... | |
6634 | (linux_wait_for_lwp): ... this. Adjust. | |
6635 | (linux_wait_for_event): Adjust. | |
6636 | (send_sigstop): Adjust. | |
6637 | (wait_for_sigstop): Adjust. | |
6638 | (stop_all_processes): Rename to ... | |
6639 | (stop_all_lwps): ... this. | |
6640 | (linux_resume_one_process): Rename to ... | |
6641 | (linux_resume_one_lwp): ... this. Adjust. | |
6642 | (linux_set_resume_request, linux_continue_one_thread) | |
6643 | (linux_queue_one_thread, resume_status_pending_p) | |
6644 | (usr_store_inferior_registers, regsets_store_inferior_registers) | |
6645 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): | |
6646 | Adjust. | |
6647 | * linux-low.h (get_process): Rename to ... | |
6648 | (get_lwp): ... this. Adjust. | |
6649 | (get_thread_process): Rename to ... | |
6650 | (get_thread_lwp): ... this. Adjust. | |
6651 | (get_process_thread): Rename to ... | |
6652 | (get_lwp_thread): ... this. Adjust. | |
6653 | (struct process_info): Rename to ... | |
6654 | (struct lwp_info): ... this. | |
6655 | (all_processes): Rename to ... | |
6656 | (all_lwps): ... this. | |
6657 | * proc-service.c (ps_lgetregs): Adjust. | |
6658 | * thread-db.c (thread_db_create_event, find_one_thread) | |
6659 | (maybe_attach_thread, thread_db_get_tls_address): Adjust. | |
6660 | ||
0b16c5cf PA |
6661 | 2009-03-14 Pedro Alves <pedro@codesourcery.com> |
6662 | ||
6663 | * server.c (handle_query): Handle "qAttached". | |
6664 | ||
32de4b9d NS |
6665 | 2009-03-13 Nathan Sidwell <nathan@codesourcery.com> |
6666 | ||
6667 | * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to | |
6668 | GPLv3, update license URL. | |
6669 | ||
2aecd87f DE |
6670 | 2009-03-01 Doug Evans <dje@google.com> |
6671 | ||
93efd302 | 6672 | * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common. |
2aecd87f DE |
6673 | (server_h): Add gdb_signals.h. |
6674 | (signals.o): Update. | |
6675 | * server.h (target_signal_from_host,target_signal_to_host_p) | |
6676 | (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h. | |
6677 | ||
86b1f9c5 PM |
6678 | 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr> |
6679 | ||
6680 | * remote-utils.c (getpkt): Also generate remote-debug | |
6681 | information if noack_mode is set. | |
6682 | ||
4aa995e1 PA |
6683 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
6684 | ||
6685 | * server.c (handle_query): Report qXfer:siginfo:read and | |
6686 | qXfer:siginfo:write as supported and handle them. | |
6687 | * target.h (struct target_ops) <qxfer_siginfo>: New field. | |
6688 | * linux-low.c (linux_xfer_siginfo): New. | |
6689 | (linux_target_ops): Set it. | |
6690 | ||
62709adf PA |
6691 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
6692 | ||
6693 | * server.c (gdbserver_usage): Mention --remote-debug. | |
6694 | (main): Accept '--remote-debug' switch. | |
6695 | ||
aef93bd7 DE |
6696 | 2009-01-18 Doug Evans <dje@google.com> |
6697 | ||
6698 | * regcache.c (new_register_cache): No need to check result of xcalloc. | |
6699 | * server.c (handle_search_memory): Back out calls to xmalloc, | |
6700 | result is checked and error is returned to user upon failure. | |
6701 | (handle_query): Ditto. Add more checks for result of malloc. | |
6702 | (handle_v_cont): Check result of malloc, report error back to | |
6703 | user upon failure. | |
6704 | (handle_v_run): Ditto. Call freeargv. | |
6705 | * server.h (freeargv): Declare. | |
6706 | * utils.c (freeargv): New fn. | |
6707 | ||
54363045 DE |
6708 | 2009-01-15 Doug Evans <dje@google.com> |
6709 | ||
f626972c DE |
6710 | * gdbreplay.c (perror_with_name): Make arg const char *. |
6711 | * server.h (target_signal_to_name): Make return type const char *. | |
0842e787 | 6712 | * thread-db.c (thread_db_err_str): Make return type const char *. |
f626972c | 6713 | * utils.c (perror_with_name): Make arg const char *. |
54363045 | 6714 | |
18aae699 PA |
6715 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
6716 | ||
6717 | * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE | |
6718 | when handling a EXIT_PROCESS_DEBUG_EVENT. | |
6719 | ||
ff703abe JB |
6720 | 2009-01-06 Joel Brobecker <brobecker@adacore.com> |
6721 | ||
6722 | * gdbreplay.c (gdbreplay_version): Update copyright year. | |
6723 | * server.c (gdbserver_version): Likewise. | |
6724 | ||
f21cc1a2 | 6725 | 2009-01-05 Doug Evans <dje@google.com> |
0e21c1ec DE |
6726 | |
6727 | * linux-low.c (linux_attach_lwp): Add some comments/fixmes. | |
f21cc1a2 | 6728 | (handle_extended_wait): Improve comment. |
0e21c1ec | 6729 | |
bca929d3 DE |
6730 | 2008-12-13 Doug Evans <dje@google.com> |
6731 | ||
6732 | * utils.c (xmalloc,xcalloc,xstrdup): New fns. | |
6733 | * server.h (ATTR_MALLOC): New macro. | |
6734 | (xmalloc,xcalloc,xstrdup): Declare. | |
6735 | * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup. | |
6736 | * inferiors.c: Ditto. | |
6737 | * linux-low.c: Ditto. | |
6738 | * mem-break.c: Ditto. | |
6739 | * regcache.c: Ditto. | |
6740 | * remote-utils.c: Ditto. | |
6741 | * server.c: Ditto. | |
6742 | * target.c: Ditto. | |
6743 | * win32-low.c: Ditto. | |
6744 | ||
97438e3f DE |
6745 | 2008-12-12 Doug Evans <dje@google.com> |
6746 | ||
896c7fbb DE |
6747 | * linux-low.c (linux_wait_for_process): Don't clobber current_inferior |
6748 | in debugging printf. | |
6749 | ||
97438e3f DE |
6750 | * linux-low.c (handle_extended_wait): Simplify, use my_waitpid. |
6751 | ||
e3b886f8 DE |
6752 | 2008-12-09 Doug Evans <dje@google.com> |
6753 | ||
6754 | * linux-low.h (struct process_info): Delete member tid, unused. | |
6755 | * thread-db.c (find_one_thread): Update. | |
6756 | (maybe_attach_thread): Update. | |
6757 | ||
07e059b5 VP |
6758 | 2008-12-02 Pedro Alves <pedro@codesourcery.com> |
6759 | ||
889bf7c5 PA |
6760 | * target.h (struct target_ops): Add qxfer_osdata member. |
6761 | * linux-low.c: Include ctype.h and pwd.h and sys/types.h | |
6762 | and dirent.h. | |
6763 | (linux_qxfer_osdata): New functions. | |
6764 | (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata | |
6765 | callback. | |
6766 | * server.c (handle_query): Handle "qXfer:osdata:read:". | |
6767 | * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish) | |
6768 | (buffer_xml_printf): New functions. | |
6769 | * server.h (struct buffer): New. | |
6770 | (buffer_grow_str, buffer_grow_str0): New macros. | |
6771 | (buffer_grow, buffer_free, buffer_init, buffer_finish) | |
6772 | (buffer_xml_printf): Declare. | |
07e059b5 | 6773 | |
4cab47ab DE |
6774 | 2008-11-24 Doug Evans <dje@google.com> |
6775 | ||
6776 | * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused. | |
6777 | ||
f142445f DJ |
6778 | 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com> |
6779 | ||
6780 | * server.c (handle_v_run): Always use the supplied argument list. | |
6781 | ||
d0107bb6 | 6782 | 2008-11-19 Bob Wilson <bob.wilson@acm.org> |
889bf7c5 | 6783 | |
d0107bb6 BW |
6784 | * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4. |
6785 | (xtensa_regmap_table): Add entry for scompare1. | |
889bf7c5 | 6786 | |
2c4ad781 TJB |
6787 | 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6788 | ||
6789 | * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c, | |
6790 | powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c, | |
6791 | powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c, | |
6792 | powerpc-isa205-64l.o, powerpc-isa205-64l.c, | |
6793 | powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c, | |
6794 | powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets. | |
6795 | * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and | |
6796 | XML target descriptions. | |
6797 | * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR | |
6798 | when inferior is running on an ISA 2.05 or later processor. Add | |
6799 | special case to return offset for full 64-bit slot of FPSCR when | |
6800 | in 32-bits. | |
6801 | ||
dfb64f85 DJ |
6802 | 2008-11-14 Daniel Gutson <dgutson@codesourcery.com> |
6803 | ||
6804 | * Makefile.in (SFILES, clean): Added sparc64 files. | |
6805 | (reg-sparc64.o, reg-sparc64.c): New. | |
6806 | * configure.srv (sparc*-*-linux*): New configuration. | |
6807 | * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace | |
6808 | syscall arguments for SPARC. | |
6809 | (regsets_store_inferior_registers): Likewise. | |
6810 | * linux-sparc-low.c: New file. | |
6811 | ||
66b6e1dd DE |
6812 | 2008-10-21 Doug Evans <dje@google.com> |
6813 | ||
6814 | * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete. | |
6815 | (READLINE_DIR,READLINE_DEP): Delete. | |
6816 | (INTERNAL_CFLAGS): Update. | |
6817 | (LINTFLAGS): Update. | |
6818 | ||
9b710a42 PA |
6819 | 2008-10-10 Pedro Alves <pedro@codesourcery.com> |
6820 | ||
6821 | * server.c (handle_v_run): If GDB didn't specify an argv, use the | |
6822 | whole argv from the last run, not just argv[0]. | |
6823 | ||
5822d809 PA |
6824 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
6825 | ||
6826 | * regcache.c (new_register_cache): Return NULL if the register | |
6827 | cache size isn't known yet. | |
6828 | (free_register_cache): Avoid dereferencing a NULL regcache. | |
6829 | ||
74aac56f DJ |
6830 | 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
6831 | ||
6832 | * configure.srv: Merge MIPS and MIPS64. | |
6833 | ||
400b20f5 MR |
6834 | 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org> |
6835 | ||
6836 | * Makefile.in (uninstall): Apply $(EXEEXT) too. | |
6837 | ||
677c5bb1 LM |
6838 | 2008-08-18 Luis Machado <luisgpm@br.ibm.com> |
6839 | ||
6840 | * Makefile.in: Add required vsx dependencies. | |
6841 | ||
6842 | * linux-ppc-low: Define PPC_FEATURE_HAS_VSX. | |
6843 | Declare init_registers_powerpc_vsx32l. | |
6844 | Declare init_registers_powerpc_vsx64l. | |
6845 | Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS. | |
6846 | (ppc_arch_setup): Check for VSX in hwcap. | |
6847 | (ppc_fill_vsxregset): New function. | |
6848 | (ppc_store_vsxregset): New function. | |
6849 | Add new VSX entry in regset_info target_regsets. | |
6850 | ||
6851 | * configure.srv: Add new VSX dependencies. | |
6852 | ||
a6f3e723 SL |
6853 | 2008-08-12 Pedro Alves <pedro@codesourcery.com> |
6854 | ||
6855 | * remote-utils.c (noack_mode, transport_is_reliable): New globals. | |
6856 | (remote_open): Set or clear transport_is_reliable. | |
6857 | (putpkt_binary): Don't expect acks in noack mode. | |
6858 | (getpkt): Don't send ack/nac in noack mode. | |
6859 | * server.c (handle_general_set): Handle QStartNoAckMode. | |
6860 | (handle_query): If connected by tcp pass QStartNoAckMode+ in | |
6861 | qSupported. | |
6862 | (main): Reset noack_mode on every connection. | |
6863 | * server.h (noack_mode): Declare. | |
6864 | ||
a417dc56 RW |
6865 | 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
6866 | ||
6867 | * Makefile.in (GDBREPLAY_OBS): New variable. | |
6868 | (gdbreplay$(EXEEXT)): Use it to avoid unportable $^. | |
6869 | ||
3221518c UW |
6870 | 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com> |
6871 | Daniel Jacobowitz <dan@codesourcery.com> | |
6872 | ||
6873 | * linux-low.c (linux_resume_one_process): Ignore ESRCH. | |
6874 | (usr_store_inferior_registers): Likewise. | |
6875 | (regsets_store_inferior_registers): Likewise. | |
6876 | ||
ec56be1b PA |
6877 | 2008-07-31 Rolf Jansen <rj@surtec.com> |
6878 | Pedro Alves <pedro@codesourcery.com> | |
6879 | ||
6880 | * configure.ac: Check for memmem declaration. | |
6881 | * server.c [HAVE_MALLOC_H]: Include malloc.h. | |
6882 | (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC) | |
6883 | (disable_packet_qfThreadInfo): Unconditionally compile. | |
6884 | * server.h [!HAVE_DECL_MEMMEM]: Declare memmem. | |
6885 | * configure, config.in: Regenerate. | |
6886 | ||
2fe5e3ff DE |
6887 | 2008-07-28 Doug Kwan <dougkwan@google.com> |
6888 | ||
6889 | * linux-low.c (sys/dir.h, sys/user.h): Remove includes. | |
6890 | (linux_write_memory): Remove declaration of errno. | |
6891 | ||
836acd6d UW |
6892 | 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com> |
6893 | ||
6894 | * linux-low.c (handle_extended_wait): Do not use "status" | |
6895 | variable uninitialized. | |
6896 | ||
aeba519e PA |
6897 | 2008-07-07 Pedro Alves <pedro@codesourcery.com> |
6898 | ||
6899 | * server.c (handle_v_attach): Inhibit reporting dll changes. | |
6900 | ||
db42f210 PA |
6901 | 2008-06-27 Pedro Alves <pedro@codesourcery.com> |
6902 | ||
6903 | * remote-utils.c (prepare_resume_reply): If requested, don't | |
6904 | output "thread:TID" in the T stop reply. | |
6905 | ||
6906 | * server.c (disable_packet_vCont, disable_packet_Tthread) | |
6907 | (disable_packet_qC, disable_packet_qfThreadInfo): New globals. | |
6908 | (handle_query): If requested, disable support for qC, qfThreadInfo | |
6909 | and qsThreadInfo. | |
6910 | (handle_v_requests): If requested, disable support for vCont. | |
6911 | (gdbserver_show_disableable): New. | |
6912 | (main): Handle --disable-packet and --disable-packet=LIST. | |
6913 | ||
6914 | * server.h (disable_packet_vCont, disable_packet_Tthread) | |
6915 | (disable_packet_qC, disable_packet_qfThreadInfo): Declare. | |
6916 | ||
8e4c5421 CD |
6917 | 2008-06-20 Carlos O'Donell <carlos@codesourcery.com> |
6918 | ||
6919 | * server.c (gdbserver_usage): Mention --version. | |
6920 | ||
6e23a804 DJ |
6921 | 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com> |
6922 | ||
6923 | * Makefile.in (gdbreplay.o): New rule. | |
6924 | ||
90aa6a40 JM |
6925 | 2008-06-06 Joseph Myers <joseph@codesourcery.com> |
6926 | ||
6927 | * gdbreplay.c (gdbreplay_version): Say gdbreplay in version | |
6928 | message, not gdbserver. | |
6929 | ||
c16158bc | 6930 | 2008-06-05 Vladimir Prus <vladimir@codesourcery.com> |
889bf7c5 PA |
6931 | Nathan Sidwell <nathan@codesourcery.com> |
6932 | Joseph Myers <joseph@codesourcery.com> | |
c16158bc JM |
6933 | |
6934 | * acinclude.m4: Include ../../config/acx.m4. | |
6935 | * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL. | |
6936 | * configure, config.in: Regenerate. | |
6937 | * Makefile.in (gdbreplay$(EXEEXT)): Add version.o. | |
6938 | * server.c (gdbserver_version): Print PKGVERSION. | |
6939 | (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO. | |
6940 | (main): Adjust gdbserver_usage calls. | |
6941 | * gdbreplay.c (version, host_name): Add declarations. | |
6942 | (gdbreplay_version, gdbreplay_usage): New. | |
6943 | (main): Accept --version and --help options. | |
6944 | ||
aeb75bf5 DJ |
6945 | 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com> |
6946 | ||
6947 | * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New. | |
6948 | (arm_breakpoint_at): Handle Thumb. | |
6949 | (the_low_target): Add comment. | |
6950 | ||
76b233dd UW |
6951 | 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com> |
6952 | ||
6953 | * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer. | |
6954 | ||
08388c79 DE |
6955 | 2008-05-09 Doug Evans <dje@google.com> |
6956 | ||
a3c83fae DE |
6957 | * server.h (decode_search_memory_packet): Declare. |
6958 | * remote-utils.c (decode_search_memory_packet): New fn. | |
6959 | * server.c (handle_search_memory_1): New fn. | |
08388c79 DE |
6960 | (handle_search_memory): New fn. |
6961 | (handle_query): Process qSearch:memory packets. | |
6962 | ||
bb9c3d36 UW |
6963 | 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com> |
6964 | ||
6965 | * regcache.c (registers_length): Remove. | |
6966 | (set_register_cache): Verify that PBUFSIZ is large enough to hold a | |
6967 | full register packet. | |
6968 | * regcache.h (registers_length): Remove prototype. | |
6969 | * server.h (PBUFSIZ): Define to 16384. | |
6970 | ||
7284e1be UW |
6971 | 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com> |
6972 | ||
6973 | * configure.srv (powerpc*-*-linux*): Set srv_regobj to | |
6974 | powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o, | |
6975 | powerpc-64l.o, and powerpc-altivec64l.o. | |
6976 | Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and | |
6977 | rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml, | |
6978 | rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml, | |
6979 | rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml, | |
6980 | rs6000/power-linux.xml, and rs6000/power64-linux.xml | |
6981 | to srv_xmlfiles. | |
6982 | ||
6983 | * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ... | |
6984 | (powerpc-32l.o, powerpc-32l.c): ... these new rules. | |
6985 | (powerpc-32.o, powerpc-32.c): Remove, replace by ... | |
6986 | (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules. | |
6987 | (powerpc-e500.o, powerpc-e500.c): Remove, replace by ... | |
6988 | (powerpc-e500l.o, powerpc-e500l.c): ... these new rules. | |
6989 | (reg-ppc64.o, reg-ppc64.c): Remove, replace by ... | |
6990 | (powerpc-64l.o, powerpc-64l.c): ... these new rules. | |
6991 | (powerpc-64.o, powerpc-64.c): Remove, replace by ... | |
6992 | (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules. | |
6993 | (clean): Update. | |
6994 | ||
6995 | * linux-ppc-low.c (init_registers_ppc): Remove, replace by ... | |
6996 | (init_registers_powerpc_32l): ... this new prototype. | |
6997 | (init_registers_powerpc_32): Remove, replace by ... | |
6998 | (init_registers_powerpc_altivec32l): ... this new prototype. | |
6999 | (init_registers_powerpc_e500): Remove, replace by ... | |
7000 | (init_registers_powerpc_e500l): ... this new prototype. | |
7001 | (init_registers_ppc64): Remove, replace by ... | |
7002 | (init_registers_powerpc_64l): ... this new prototype. | |
7003 | (init_registers_powerpc_64): Remove, replace by ... | |
7004 | (init_registers_powerpc_altivec64l): ... this new prototype. | |
7005 | (ppc_num_regs): Set to 73. | |
7006 | (PT_ORIG_R3, PT_TRAP): Define if necessary. | |
7007 | (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap. | |
7008 | (ppc_cannot_store_register): Handle orig_r3 and trap. | |
7009 | (ppc_arch_setup): Update init_registers_... calls. | |
7010 | (ppc_fill_gregset): Handle orig_r3 and trap. | |
7011 | ||
7012 | * inferiors.c (clear_inferiors): Reset current_inferior. | |
7013 | ||
fdc59709 PB |
7014 | 2008-04-23 Paolo Bonzini <bonzini@gnu.org> |
7015 | ||
889bf7c5 PA |
7016 | * acinclude.m4: Add override.m4. |
7017 | * configure: Regenerate. | |
fdc59709 | 7018 | |
c9b2f845 UW |
7019 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
7020 | ||
7021 | * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the | |
7022 | initial call to init_register_ppc64. | |
7023 | ||
550512b8 UW |
7024 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
7025 | ||
43aaf8b6 PA |
7026 | * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into |
7027 | single powerpc*-*-linux* case. | |
550512b8 UW |
7028 | (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case. |
7029 | ||
b6430ec3 UW |
7030 | 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com> |
7031 | ||
7032 | * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from | |
889bf7c5 | 7033 | srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml |
b6430ec3 UW |
7034 | from reg_xmlfiles. |
7035 | * linux-ppc-low.c: Include <elf.h>. | |
7036 | (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define. | |
7037 | (ppc_hwcap): New global variable. | |
7038 | (ppc_regmap): Remove __SPE__ #ifdef sections. | |
7039 | (ppc_regmap_e500): New global variable. | |
7040 | (ppc_cannot_store_register): Update __SPE__ special case. | |
7041 | (ppc_get_hwcap): New function. | |
7042 | (ppc_arch_setup): Use it to determine whether inferior supports | |
7043 | AltiVec or SPE registers. Set the_low_target.regmap if appropriate. | |
7044 | (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally. | |
7045 | Do not access registers if target does not support AltiVec. | |
7046 | (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally. | |
7047 | Do not access registers if target does not support SPE. | |
7048 | (target_regsets): Unconditionally include AltiVec and SPE regsets. | |
7049 | ||
52fa2412 UW |
7050 | 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com> |
7051 | ||
7052 | * linux-low.c (disabled_regsets, num_regsets): New. | |
7053 | (use_regsets_p): Delete. | |
7054 | (linux_wait_for_process): Clear disabled_regsets. | |
7055 | (regsets_fetch_inferior_registers): Check and set it. | |
7056 | (regsets_store_inferior_registers): Likewise. | |
7057 | (linux_fetch_registers, linux_store_registers): Do not use | |
7058 | use_regsets_p. | |
7059 | (initialize_low): Allocate disabled_regsets. | |
7060 | ||
e28b3332 DJ |
7061 | 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
7062 | ||
7063 | * Makefile.in (LIBOBJS): New. | |
7064 | (OBS): Use LIBOBJS. | |
7065 | (memmem.o): New rule. | |
7066 | * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem. | |
7067 | * configure: Regenerated. | |
7068 | ||
4536995d UW |
7069 | 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com> |
7070 | ||
7071 | * server.c (handle_query): Never return "unsupported" for | |
7072 | qXfer:features:read queries. | |
7073 | ||
221c031f UW |
7074 | 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com> |
7075 | ||
7076 | * server.c (get_features_xml): Fix inverted condition. | |
7077 | (handle_query): Always support qXfer:feature:read. | |
7078 | ||
ccd213ac DJ |
7079 | 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com> |
7080 | ||
7081 | * server.c (wrapper_argv): New. | |
7082 | (start_inferior): Handle wrapper_argv. If set, expect an extra | |
7083 | trap. | |
7084 | (gdbserver_usage): Document --wrapper. | |
7085 | (main): Parse --wrapper. | |
7086 | ||
6fe305f7 UW |
7087 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
7088 | ||
7089 | * configure.srv [powerpc64-*-linux*]: Add all files mentioned for | |
7090 | powerpc-*-linux* to srv_regobj and reg_xmlfiles. | |
7091 | * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation. | |
7092 | (ppc_set_pc): Likewise. | |
7093 | (ppc_arch_setup): New function. | |
7094 | (ppc_fill_gregset): Call ppc_collect_ptrace_register instead | |
7095 | of collect_register. | |
889bf7c5 | 7096 | (the_low_target): Use ppc_arch_setup as arch_setup initializer. |
6fe305f7 | 7097 | |
5b0a002e UW |
7098 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
7099 | ||
7100 | * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o | |
7101 | instead of linux-ppc64-low.o. | |
7102 | * linux-ppc64-low.c: Remove file. | |
7103 | * Makefile.in (SFILES): Remove linux-ppc64-low.c. | |
7104 | (linux-ppc64-low.o): Remove rule. | |
7105 | ||
7106 | * linux-ppc-low.c (init_registers_ppc64): Add prototype. | |
7107 | (init_registers_powerpc_64): Likewise. | |
7108 | (ppc_regmap): Conditionally define depending on __powerpc64__. | |
7109 | (ppc_cannot_store_register): Do not special-case "fpscr" when | |
7110 | compiled on __powerpc64__. | |
7111 | (ppc_collect_ptrace_register): New function. | |
7112 | (ppc_supply_ptrace_register): New function. | |
7113 | (ppc_breakpoint): Change type to "unsigned int". | |
7114 | (ppc_breakpoint_at): Change type of "insn" to "unsigned int". | |
7115 | (the_low_target): Conditionally provide initializers for the | |
889bf7c5 | 7116 | arch_setup member depending on __powerpc64__. Install |
5b0a002e UW |
7117 | collect_ptrace_register and supply_ptrace_register members. |
7118 | ||
9b4b61c8 UW |
7119 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
7120 | ||
7121 | * regcache.h (gdbserver_xmltarget): Add extern declaration. | |
7122 | * server.c (gdbserver_xmltarget): Define. | |
7123 | (get_features_xml): Use it to replace "target.xml" and arch_string. | |
7124 | ||
7125 | * configure.srv: Remove srv_xmltarget. Add XML files that were | |
7126 | mentioned there to srv_xmlfiles instead. Remove conditional tests | |
7127 | on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set | |
7128 | srv_xmlfiles and srv_regobj to include all possible choices. | |
7129 | * configure.ac (srv_xmltarget): Remove. | |
7130 | (srv_xmlfiles): Do not add "target.xml". | |
7131 | (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove | |
7132 | checks for supplementary target information. | |
7133 | * configure: Regenerate. | |
7134 | * Makefile.in (XML_TARGET): Remove. | |
7135 | (target.xml): Remove rule. | |
7136 | (clean): Do not clean up target.xml. | |
7137 | (.PRECIOUS): Do not mention target.xml. | |
7138 | ||
7139 | * target.h (struct target_ops): Remove arch_string member. | |
7140 | * linux-low.c (linux_arch_string): Remove. | |
7141 | (linux_target_ops): Remove arch_string initializer. | |
7142 | * linux-low.h (struct linux_target_ops): Remove arch_string member. | |
7143 | * linux-i386-low.c (the_low_target): Remove arch_string initializer. | |
7144 | * linux-x86-64-low.c (the_low_target): Remove arch_string initializer. | |
7145 | * spu-low.c (spu_arch_string): Remove. | |
7146 | (spu_target_ops): Remove arch_string initializer. | |
7147 | * win32-low.c (win32_arch_string): Remove. | |
7148 | (win32_target_ops): Remove arch_string initializer. | |
7149 | * win32-low.h (struct win32_target_ops): Remove arch_string member. | |
7150 | * win32-arm-low.c (the_low_target): Remove arch_string initializer. | |
7151 | * win32-i368-low.c (the_low_target): Remove arch_string initializer. | |
7152 | ||
ee1a7ae4 UW |
7153 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
7154 | ||
7155 | * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field | |
7156 | by collect_ptrace_register and supply_ptrace_register hooks. | |
7157 | * linux-low.c (fetch_register): Use supply_ptrace_register callback | |
7158 | instead of checking for the_low_target.left_pad_xfer. | |
7159 | (usr_store_inferior_registers): Use collect_ptrace_register callback | |
7160 | instead of checking for the_low_target.left_pad_xfer. | |
7161 | ||
7162 | * linux-s390-low.c (s390_collect_ptrace_register): New function. | |
7163 | (s390_supply_ptrace_register): Likewise. | |
7164 | (s390_fill_gregset): Call s390_collect_ptrace_register. | |
7165 | (the_low_target): Update. | |
7166 | ||
7167 | * linux-ppc64-low.c (ppc_collect_ptrace_register): New function. | |
7168 | (ppc_supply_ptrace_register): Likewise. | |
7169 | (the_low_target): Update. | |
7170 | ||
7171 | * linux-i386-low.c (the_low_target): Update. | |
7172 | * linux-x86-64-low.c (the_low_target): Update. | |
7173 | ||
d61ddec4 UW |
7174 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
7175 | ||
7176 | * configure.srv [s390x-*-linux*]: Set srv_regobj to include both | |
7177 | reg-s390.o and reg-s390x.o. | |
7178 | ||
7179 | * linux-low.c (new_inferior): New global variable. | |
7180 | (linux_create_inferior, linux_attach): Set it. | |
7181 | (linux_wait_for_process): Call the_low_target.arch_setup after the | |
7182 | target has stopped for the first time. | |
7183 | (initialize_low): Do not call the_low_target.arch_setup. | |
7184 | ||
7185 | * linux-s390-low.c (s390_get_pc): Support bi-arch operation. | |
7186 | (s390_set_pc): Likewise. | |
7187 | (s390_arch_setup): New function. | |
7188 | (the_low_target): Use s390_arch_setup as arch_setup routine. | |
7189 | ||
7190 | * regcache.c (realloc_register_cache): New function. | |
7191 | (set_register_cache): Call it for each existing regcache. | |
7192 | ||
d05b4ac3 UW |
7193 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
7194 | ||
7195 | * server.h (init_registers): Remove prototype. | |
7196 | ||
7197 | * linux-low.h (struct linux_target_ops): Add arch_setup field. | |
7198 | * linux-low.c (initialize_low): Call the_low_target.arch_setup () | |
7199 | instead of init_registers (). | |
7200 | * linux-arm-low.c (init_registers_arm): Add prototype. | |
7201 | (init_registers_arm_with_iwmmxt): Likewise. | |
7202 | (the_low_target): Add initializer for arch_setup field. | |
7203 | * linux-cris-low.c (init_registers_cris): Add prototype. | |
7204 | (the_low_target): Add initializer for arch_setup field. | |
7205 | * linux-crisv32-low.c (init_registers_crisv32): Add prototype. | |
7206 | (the_low_target): Add initializer for arch_setup field. | |
7207 | * linux-i386-low.c (init_registers_i386_linux): Add prototype. | |
7208 | (the_low_target): Add initializer for arch_setup field. | |
7209 | * linux-ia64-low.c (init_registers_ia64): Add prototype. | |
7210 | (the_low_target): Add initializer for arch_setup field. | |
7211 | * linux-m32r-low.c (init_registers_m32r): Add prototype. | |
7212 | (the_low_target): Add initializer for arch_setup field. | |
7213 | * linux-m68k-low.c (init_registers_m68k): Add prototype. | |
7214 | (the_low_target): Add initializer for arch_setup field. | |
7215 | * linux-mips-low.c (init_registers_mips_linux): Add prototype. | |
7216 | (init_registers_mips64_linux): Likewise. | |
7217 | (the_low_target): Add initializer for arch_setup field. | |
7218 | * linux-ppc-low.c (init_registers_ppc): Add prototype. | |
7219 | (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise. | |
7220 | (the_low_target): Add initializer for arch_setup field. | |
7221 | * linux-ppc64-low.c (init_registers_ppc64): Add prototype. | |
7222 | (init_registers_powerpc_64): Likewise. | |
7223 | (the_low_target): Add initializer for arch_setup field. | |
7224 | * linux-s390-low.c (init_registers_s390): Add prototype. | |
7225 | (init_registers_s390x): Likewise. | |
7226 | (the_low_target): Add initializer for arch_setup field. | |
7227 | * linux-sh-low.c (init_registers_sh): Add prototype. | |
7228 | (the_low_target): Add initializer for arch_setup field. | |
7229 | * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype. | |
7230 | (the_low_target): Add initializer for arch_setup field. | |
7231 | * linux-xtensa-low.c (init_registers_xtensa): Add prototype. | |
7232 | (the_low_target): Add initializer for arch_setup field. | |
7233 | ||
7234 | * win32-low.h (struct win32_target_ops): Add arch_setup field. | |
7235 | * win32-low.c (initialize_low): Call the_low_target.arch_setup () | |
7236 | instead of init_registers (). | |
7237 | * win32-arm-low.c (init_registers_arm): Add prototype. | |
7238 | (the_low_target): Add initializer for arch_setup field. | |
7239 | * win32-i386-low.c (init_registers_i386): Add prototype. | |
7240 | (the_low_target): Add initializer for arch_setup field. | |
7241 | ||
7242 | * spu-low.c (init_registers_spu): Add prototype. | |
7243 | (initialize_low): Call initialie_registers_spu () instead of | |
7244 | initialize_registers (). | |
7245 | ||
fd96d250 PA |
7246 | 2008-02-19 Pedro Alves <pedro@codesourcery.com> |
7247 | ||
7248 | * server.c (handle_v_requests): When handling the vRun and vAttach | |
7249 | packets, if already debugging a process, don't kill it. Return an | |
7250 | error instead. | |
7251 | ||
d41b6bb4 DJ |
7252 | 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com> |
7253 | ||
7254 | * server.c (handle_query): Correct length check. | |
7255 | ||
5ac588cf PA |
7256 | 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt> |
7257 | ||
7258 | * win32-low.c (do_initial_child_stuff): Add process handle | |
7259 | parameter. Set current_process_handle and current_process_id from the | |
7260 | parameters. Clear globals. | |
7261 | (win32_create_inferior): Don't set current_process_handle and | |
7262 | current_process_id here. Instead pass them on the call to | |
7263 | do_initial_child_stuff. | |
7264 | (win32_attach): Likewise. | |
7265 | (win32_clear_inferiors): New. | |
7266 | (win32_kill): Don't close the current process handle or the | |
7267 | current thread handle here. Instead call win32_clear_inferiors. | |
7268 | (win32_detach): Don't open a new handle to the process. Call | |
7269 | win32_clear_inferiors. | |
7270 | (win32_join): Don't rely on current_process_handle; open a new | |
7271 | handle using the process id. | |
7272 | (win32_wait): Call win32_clear_inferiors when the inferior process | |
7273 | has exited. | |
7274 | ||
ecd7ecbc DJ |
7275 | 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com> |
7276 | ||
7277 | * server.c (monitor_show_help): Add "exit". | |
7278 | ||
1525d545 MG |
7279 | 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com> |
7280 | ||
ecd7ecbc | 7281 | * Makefile.in (SFILES): Add linux-xtensa-low.c. |
1525d545 MG |
7282 | (clean): Add reg-xtensa.c. |
7283 | (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies. | |
ecd7ecbc DJ |
7284 | * configure.srv (xtensa*-*-linux*) New target. |
7285 | * linux-xtensa-low.c: New. | |
7286 | * xtensa-xtregs.c: New. | |
1525d545 | 7287 | |
59a016f0 PA |
7288 | 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt> |
7289 | ||
7290 | * hostio.c: Don't include errno.h. | |
7291 | (errno_to_fileio_errno): Move to hostio-errno. | |
7292 | * hostio.c: (hostio_error): Remove the error parameter. Defer the | |
7293 | error number outputting to the target->hostio_last_error callback. | |
7294 | (hostio_packet_error): Use FILEIO_EINVAL directly. | |
7295 | (handle_open, handle_pread, hostio_error, handle_unlink): Update | |
7296 | calls to hostio_error. | |
7297 | * hostio-errno.c: New. | |
7298 | * server.h (hostio_last_error_from_errno): Declare. | |
7299 | * target.h (target_ops): Add hostio_last_error member. | |
7300 | * linux-low.c (linux_target_op): Register hostio_last_error_from_errno | |
7301 | as hostio_last_error handler. | |
889bf7c5 | 7302 | * spu-low.c (spu_target_ops): Likewise. |
59a016f0 PA |
7303 | * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error) |
7304 | (wince_hostio_last_error): New functions. | |
7305 | (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error | |
7306 | as hostio_last_error handler. | |
7307 | (win32_target_ops) [!_WIN32_WCE]: Register | |
7308 | hostio_last_error_from_errno as hostio_last_error handler. | |
7309 | * Makefile.in (SFILES): Add hostio.c and hostio-errno.c. | |
7310 | (hostio-errno.o): New rule. | |
7311 | * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs. | |
7312 | * configure.srv (srv_hostio_err_objs): New variable. Default to | |
7313 | hostio-errno.o. | |
7314 | (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "". | |
7315 | * configure: Regenerate. | |
7316 | ||
2d717e4f DJ |
7317 | 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
7318 | ||
7319 | * linux-low.c (linux_attach_lwp): Do not _exit after errors. | |
7320 | (linux_kill, linux_detach): Clean up the process list. | |
7321 | * remote-utils.c (remote_open): Improve port number parsing. | |
7322 | (putpkt_binary, input_interrupt): Only send interrupts if the target | |
7323 | is running. | |
7324 | * server.c (extended_protocol): Make static. | |
7325 | (attached): Define earlier. | |
7326 | (exit_requested, response_needed, program_argv): New variables. | |
7327 | (target_running): New. | |
7328 | (start_inferior): Clear attached here. | |
7329 | (attach_inferior): Set attached here. | |
7330 | (require_running): Define. | |
7331 | (handle_query): Use require_running and target_running. Implement | |
7332 | "monitor exit". | |
7333 | (handle_v_attach, handle_v_run): New. | |
7334 | (handle_v_requests): Use require_running. Handle vAttach and vRun. | |
7335 | (gdbserver_usage): Update. | |
7336 | (main): Redo argument parsing. Handle --debug and --multi. Handle | |
7337 | --attach along with other options or after the port. Save | |
7338 | program_argv. Support no initial program. Resynchronize | |
7339 | communication with GDB after an error. Handle "monitor exit". | |
7340 | Use require_running and target_running. Always allow the extended | |
7341 | protocol. Do not error out for Hc0 or Hc-1. Do not automatically | |
7342 | restart in extended mode. | |
7343 | * README: Refer to the GDB manual. Update --attach usage. | |
7344 | ||
7407e2de AS |
7345 | 2007-12-20 Andreas Schwab <schwab@suse.de> |
7346 | ||
7347 | * linux-low.c (STACK_SIZE): Define. | |
7348 | (linux_tracefork_child): Use it. Use __clone2 on ia64. | |
7349 | (linux_test_for_tracefork): Likewise. | |
7350 | ||
b65d95c5 DJ |
7351 | 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com> |
7352 | ||
7353 | * linux-low.c (linux_wait_for_event): Update messages. Do not | |
7354 | reinsert auto-delete breakpoints. | |
7355 | * mem-break.c (struct breakpoint): Change return type of handler to | |
7356 | int. | |
7357 | (set_breakpoint_at): Update handler type. | |
7358 | (reinsert_breakpoint_handler): Return 1 instead of calling | |
7359 | delete_breakpoint. | |
7360 | (reinsert_breakpoint_by_bp): Check for the original breakpoint before | |
7361 | setting a new one. | |
7362 | (check_breakpoints): Delete auto-delete breakpoints and return 2. | |
7363 | * mem-break.h (set_breakpoint_at): Update handler type. | |
7364 | * thread-db.c (thread_db_create_event, thread_db_create_event): Update. | |
7365 | * win32-low.c (auto_delete_breakpoint): New. | |
7366 | (get_child_debug_event): Use it. | |
7367 | ||
4e799345 DJ |
7368 | 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com> |
7369 | ||
7370 | * configure.ac: Check for pread and pwrite. | |
7371 | * hostio.c (handle_pread): Fall back to lseek and read. | |
7372 | (handle_pwrite): Fall back to lseek and write. | |
7373 | * config.in, configure: Regenerated. | |
7374 | ||
27524b67 DJ |
7375 | 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com> |
7376 | ||
7377 | * server.c (myresume): Add own_buf argument. | |
7378 | (main): Update calls. | |
7379 | ||
a20d5e98 DJ |
7380 | 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com> |
7381 | ||
7382 | * linux-low.c (linux_wait, linux_resume): Do not handle async I/O. | |
7383 | * remote-utils.c (remote_open): Do not call disable_async_io. | |
7384 | (block_async_io): Delete. | |
7385 | (unblock_async_io): Make static. | |
7386 | (initialize_async_io): New. | |
7387 | * server.c (handle_v_cont): Handle async I/O here. | |
7388 | (myresume): Likewise. Move other common resume tasks here... | |
7389 | (main): ... from here. Call initialize_async_io. Disable async | |
7390 | I/O before the main loop. | |
7391 | * server.h (initialize_async_io): Declare. | |
7392 | (block_async_io, unblock_async_io): Delete prototypes. | |
7393 | * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here. | |
7394 | ||
b79d787e DJ |
7395 | 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au> |
7396 | ||
7397 | * remote-utils.c (readchar): Allow binary data in received messages. | |
7398 | ||
d97903b2 PA |
7399 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
7400 | ||
7401 | * win32-low.c (attaching): New global. | |
7402 | (win32_create_inferior): Clear the `attaching' global. | |
7403 | (win32_attach): Set the `attaching' global. | |
7404 | (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when | |
7405 | attaching. Only set a breakpoint at the entry point if not | |
7406 | attaching. | |
7407 | ||
311de423 PA |
7408 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
7409 | ||
7410 | * server.c (main): Don't report dll events on the initial | |
7411 | connection on attaches. | |
7412 | ||
6c2d16d2 PA |
7413 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
7414 | ||
7415 | * server.c (main): Relax numerical bases supported for the pid of | |
7416 | the --attach command line argument. | |
7417 | ||
5ca906e6 PA |
7418 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
7419 | ||
7420 | * win32-low.c (win32_attach): Call OpenProcess before | |
7421 | DebugActiveProcess, not after. Add last error output to error | |
7422 | call. | |
7423 | ||
9c6c8194 PA |
7424 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
7425 | ||
7426 | * win32-low.c (win32_get_thread_context) | |
7427 | (win32_set_thread_context): New functions. | |
7428 | (thread_rec): Use win32_get_thread_context. | |
7429 | (continue_one_thread, win32_resume): Use win32_set_thread_context. | |
7430 | * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context' | |
7431 | field. | |
7432 | ||
4d5d1aaa PA |
7433 | 2007-12-03 Leo Zayas |
7434 | Pedro Alves <pedro_alves@portugalmail.pt> | |
7435 | ||
7436 | * win32-low.c (soft_interrupt_requested, faked_breakpoint): New | |
7437 | global variables. | |
7438 | (child_add_thread): Minor cleanup. | |
7439 | (child_continue): Resume artificially suspended threads before | |
7440 | calling ContinueDebugEvent. | |
7441 | (suspend_one_thread): New. | |
7442 | (fake_breakpoint_event): New. | |
7443 | (get_child_debug_event): Change return type to int. Check here if | |
7444 | gdb sent an interrupt request. If a soft interrupt was requested, | |
7445 | fake a breakpoint event. Return 0 if there is no event to handle, | |
7446 | and 1 otherwise. | |
7447 | (win32_wait): Don't check here if gdb sent an interrupt request. | |
7448 | Ensure there is a valid event to handle. | |
7449 | (win32_request_interrupt): Add soft interruption method as last | |
7450 | resort. | |
7451 | ||
c436e841 PA |
7452 | 2007-12-03 Leo Zayas |
7453 | Pedro Alves <pedro_alves@portugalmail.pt> | |
7454 | ||
7455 | * win32-low.h (win32_thread_info): Add descriptions to the | |
7456 | structure members. Replace `suspend_count' counter by a | |
7457 | `suspended' flag. | |
7458 | * win32-low.c (thread_rec): Update condition of when to get the | |
7459 | context from the inferior. Rely on ContextFlags being set if it | |
7460 | has already been retrieved. Only suspend the inferior thread if | |
7461 | we haven't already. Warn if that fails. | |
7462 | (continue_one_thread): s/suspend_count/suspended/. Only call | |
7463 | ResumeThread once. Warn if that fails. | |
7464 | ||
e7b5fa67 PA |
7465 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
7466 | ||
7467 | * win32-low.c (win32_wait): Don't read from the inferior when it | |
7468 | has already exited. | |
7469 | ||
a385171d PA |
7470 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
7471 | ||
7472 | * Makefile.in (win32_low_h): New variable. | |
7473 | (win32-low.o): Add dependency on $(win32_low_h). | |
7474 | (win32-arm-low.o, win32-i386-low.o): New rules. | |
7475 | ||
f80c84b3 DJ |
7476 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
7477 | ||
7478 | * hostio.c: Correct copyright year. | |
7479 | ||
a6b151f1 DJ |
7480 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
7481 | ||
7482 | * Makefile.in (OBS): Add hostio.o. | |
7483 | (hostio.o): New rule. | |
7484 | * server.h (handle_vFile): Declare. | |
7485 | * hostio.c: New file. | |
7486 | * server.c (handle_v_requests): Take packet_len and new_packet_len | |
7487 | for binary packets. Call handle_vFile. | |
7488 | (main): Update call to handle_v_requests. | |
7489 | ||
f9387fc3 DJ |
7490 | 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com> |
7491 | ||
7492 | * linux-low.c: Include <sched.h>. | |
7493 | ||
51c2684e DJ |
7494 | 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com> |
7495 | ||
7496 | * linux-low.c (linux_tracefork_grandchild): New. | |
7497 | (linux_tracefork_child): Use clone. | |
7498 | (linux_test_for_tracefork): Use clone; allocate and free a stack. | |
7499 | ||
75f83163 JB |
7500 | 2007-10-31 Joel Brobecker <brobecker@adacore.com> |
7501 | ||
7502 | * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh. | |
7503 | ||
da5898ce DJ |
7504 | 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com> |
7505 | ||
7506 | * linux-low.c (handle_extended_wait): Handle unexpected signals. | |
7507 | ||
24a09b5f DJ |
7508 | 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com> |
7509 | ||
7510 | * inferiors.c (change_inferior_id): Delete. | |
7511 | (add_pid_to_list, pull_pid_from_list): New. | |
7512 | * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG) | |
7513 | (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK) | |
7514 | (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE) | |
7515 | (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK) | |
7516 | (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE) | |
7517 | (PTRACE_EVENT_EXIT, __WALL): Provide default definitions. | |
7518 | (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables. | |
7519 | (using_threads): Always set to 1. | |
7520 | (handle_extended_wait): New. | |
7521 | (add_process): Do not set TID. | |
7522 | (linux_create_inferior): Set must_set_ptrace_flags. | |
7523 | (linux_attach_lwp): Remove TID argument. Do not check using_threads. | |
7524 | Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers. | |
7525 | (linux_thread_alive): Rename TID argument to LWPID. | |
7526 | (linux_wait_for_process): Handle unknown processes. Do not use TID. | |
7527 | (linux_wait_for_event): Do not use TID or check using_threads. Update | |
7528 | call to dead_thread_notify. Call handle_extended_wait. | |
7529 | (linux_create_inferior): Use PTRACE_SETOPTIONS. | |
7530 | (send_sigstop): Delete sigstop_sent. | |
7531 | (wait_for_sigstop): Avoid TID. | |
7532 | (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid) | |
7533 | (linux_test_for_tracefork): New. | |
7534 | (linux_lookup_signals): Use thread_db_active and | |
7535 | linux_supports_tracefork_flag. | |
7536 | (initialize_low): Use thread_db_active and linux_test_for_tracefork. | |
7537 | * linux-low.h (get_process_thread): Avoid TID. | |
7538 | (struct process_ifo): Move thread_known and tid to the end. Remove | |
7539 | sigstop_sent. | |
7540 | (linux_attach_lwp, thread_db_init): Update prototypes. | |
7541 | * server.h (change_inferior_id): Delete prototype. | |
7542 | (add_pid_to_list, pull_pid_from_list): New prototypes. | |
7543 | * thread-db.c (thread_db_use_events): New. | |
7544 | (find_first_thread): Rename to... | |
7545 | (find_one_thread): ...this. Update callers and messages. Do not | |
7546 | call fatal. Check thread_db_use_events. Do not call | |
7547 | change_inferior_id or new_thread_notify. | |
7548 | (maybe_attach_thread): Update. Do not call new_thread_notify. | |
7549 | (thread_db_init): Set thread_db_use_events. Check use_events. | |
7550 | * utils.c (fatal, warning): Correct message prefix. | |
7551 | ||
30ed0a8f DJ |
7552 | 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com> |
7553 | ||
7554 | * Makefile.in (clean): Remove new files. | |
7555 | (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c) | |
7556 | (powerpc-64.o, powerpc-64.c): New rules. | |
7557 | * configure.srv: Use alternate register sets for powerpc64-*-linux* | |
7558 | with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux* | |
7559 | with SPE. | |
7560 | * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for | |
7561 | SPE targets. | |
7562 | (ppc_cannot_store_register): Do not check for FPSCR for SPE targets. | |
7563 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset) | |
7564 | (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS) | |
7565 | (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New. | |
7566 | (target_regsets): Add AltiVec and SPE register sets. | |
7567 | * configure.ac: Check for AltiVec and SPE. | |
7568 | * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS) | |
7569 | (ppc_fill_vrregset, ppc_store_vrregset): New. | |
7570 | (target_regsets): Add AltiVec register set. | |
7571 | * configure: Regenerated. | |
7572 | ||
fd462a61 DJ |
7573 | 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com> |
7574 | ||
7575 | * linux-low.c (O_LARGEFILE): Define. | |
7576 | (linux_read_memory): Use /proc/PID/mem. | |
7577 | * configure.ac: Use AC_GNU_SOURCE. Check for pread64. | |
7578 | * configure, config.in: Regenerated. | |
7579 | ||
69f223ed DJ |
7580 | 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
7581 | ||
7582 | * linux-low.c (linux_wait_for_event): Do not pass signals while | |
7583 | single-stepping. | |
7584 | ||
aec18585 PA |
7585 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
7586 | ||
7587 | * win32-low.c (create_process): New. | |
7588 | (win32_create_inferior): Use create_process instead of | |
7589 | CreateProcess. If create_process failed retry appending an ".exe" | |
7590 | suffix. Store the GetLastError result immediatelly after | |
7591 | create_process calls and use it on the call to error. | |
7592 | ||
34d86ddd PA |
7593 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
7594 | ||
7595 | * win32-low.c (handle_load_dll): Don't use toolhelp when waiting. | |
7596 | ||
5a0e3bd0 JB |
7597 | 2007-08-23 Joel Brobecker <brobecker@adacore.com> |
7598 | ||
7599 | * configure.ac: Switch license to GPLv3. | |
7600 | ||
f88c79e6 MS |
7601 | 2007-08-01 Michael Snyder <msnyder@access-company.com> |
7602 | ||
7603 | * remote-utils.c (putpkt_binary): Memory leak, free buf2. | |
7604 | ||
6b3d9b83 PA |
7605 | 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt> |
7606 | ||
7607 | * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New | |
7608 | typedef. | |
7609 | (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var. | |
7610 | (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get | |
7611 | CloseToolhelp32Snapshot. | |
7612 | (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with | |
7613 | CloseToolhelp32Snapshot. | |
7614 | ||
c588c53c MS |
7615 | 2007-07-27 Michael Snyder <michael.snyder@access-company.com> |
7616 | ||
7617 | * server.c (main): Check for inferior exit before main loop. | |
7618 | ||
aa0403d9 PA |
7619 | 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt> |
7620 | ||
7621 | * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc | |
7622 | instead of on tmp_desc. | |
7623 | ||
255e7678 DJ |
7624 | 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt> |
7625 | Daniel Jacobowitz <dan@codesourcery.com> | |
7626 | ||
7627 | * inferiors.c (all_dlls, dlls_changed, get_dll): New. | |
7628 | (add_thread): Minor cleanups. | |
7629 | (clear_inferiors): Move lower in the file. Clear the DLL | |
7630 | list. | |
7631 | (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New. | |
7632 | * remote-utils.c (prepare_resume_reply): Check dlls_changed. | |
7633 | (xml_escape_text): New. | |
7634 | * server.c (handle_query): Handle qXfer:libraries:read. Report it | |
7635 | for qSupported. | |
7636 | (handle_v_cont): Report errors. | |
7637 | (gdbserver_version): Update. | |
7638 | (main): Correct size of own_buf. Do not report initial DLL events. | |
7639 | * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll) | |
7640 | (unloaded_dll, xml_escape_text): New. | |
7641 | * win32-low.c (enum target_waitkind): Update comments. | |
7642 | (win32_add_one_solib, get_image_name, winapi_EnumProcessModules) | |
7643 | (winapi_GetModuleInformation, winapi_GetModuleFileNameExA) | |
7644 | (win32_EnumProcessModules, win32_GetModuleInformation) | |
7645 | (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name) | |
7646 | (winapi_CreateToolhelp32Snapshot, winapi_Module32First) | |
7647 | (winapi_Module32Next, win32_CreateToolhelp32Snapshot) | |
7648 | (win32_Module32First, win32_Module32Next, load_toolhelp) | |
7649 | (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New. | |
7650 | (get_child_debug_event): Handle DLL events. | |
7651 | (win32_wait): Likewise. | |
7652 | ||
0d37add9 DJ |
7653 | 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
7654 | ||
7655 | * configure.srv: Set srv_linux_regsets for sh*-*-linux*. | |
7656 | * linux-sh-low.c (sh_fill_gregset, target_regsets): New. | |
7657 | ||
45e2715e PA |
7658 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
7659 | ||
7660 | * win32-low.c (handle_output_debug_string): Ignore event if not | |
7661 | waiting. | |
7662 | ||
c5674cf1 PA |
7663 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
7664 | ||
7665 | * win32-arm-low.c (arm_wince_breakpoint): Fix typo. | |
7666 | ||
2bbe3cc1 DJ |
7667 | 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com> |
7668 | ||
7669 | * remote-utils.c (look_up_one_symbol): Handle 'm' packets. | |
7670 | ||
ae13219e DJ |
7671 | 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com> |
7672 | ||
7673 | * inferiors.c (change_inferior_id): Add comment. | |
7674 | * linux-low.c (check_removed_breakpoint): Add an early | |
7675 | prototype. Improve debug output. | |
7676 | (linux_attach): Doc update. | |
7677 | (linux_detach_one_process, linux_detach): Clean up before releasing | |
7678 | each process. | |
7679 | (send_sigstop, wait_for_sigstop): Improve comments and debug output. | |
7680 | * linux-low.h (struct process_info): Doc improvement. | |
7681 | * mem-break.c (delete_all_breakpoints): New. | |
7682 | * mem-break.h (delete_all_breakpoints): New prototype. | |
7683 | * thread-db.c (find_first_thread): New. | |
7684 | (thread_db_create_event): Call it instead of | |
7685 | thread_db_find_new_threads. Clean up unused variables. | |
7686 | (maybe_attach_thread): Remove first thread handling. | |
7687 | (thread_db_find_new_threads): Use find_first_thread. | |
7688 | (thread_db_get_tls_address): Likewise. | |
7689 | ||
4105de34 DJ |
7690 | 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com> |
7691 | ||
7692 | * thread-db.c (thread_db_find_new_threads): Add prototype. | |
7693 | (thread_db_create_event): Check for the main thread before adding | |
7694 | a new thread. | |
7695 | (maybe_attach_thread): Only enable event reporting if TID == 0. | |
7696 | (thread_db_get_tls_address): Check for new threads. | |
7697 | ||
2b876972 DJ |
7698 | 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com> |
7699 | ||
7700 | * linux-low.c (linux_create_inferior): Try execv before execvp. | |
7701 | * spu-low.c (spu_create_inferior): Likewise. | |
7702 | ||
7a245884 DJ |
7703 | 2007-06-13 Mike Frysinger <vapier@gentoo.org> |
7704 | ||
7705 | * linux-low.c (linux_create_inferior): Change execv to execvp. | |
7706 | * spu-low.c (spu_create_inferior): Likewies. | |
7707 | ||
117ce543 DJ |
7708 | 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com> |
7709 | ||
7710 | * Makefile.in (clean): Clean new files instead of deleted ones. | |
7711 | (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete. | |
7712 | (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New | |
7713 | rules. | |
7714 | * configure.srv: Specify XML files and new regformats for MIPS and | |
7715 | MIPS64 GNU/Linux. | |
7716 | * linux-mips-low.c (mips_num_regs): Set to only used registers. | |
7717 | (mips_regmap): Do not fetch $0. Remove unused registers. Add | |
7718 | an entry for the restart register. | |
7719 | (mips_cannot_fetch_register, mips_cannot_store_register) | |
7720 | (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update | |
7721 | register names to match the XML descriptions. | |
7722 | (mips_fill_gregset, mips_store_gregset): Likewise. Handle the | |
7723 | restart register instead of $0. | |
7724 | ||
0e7f50da UW |
7725 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
7726 | Markus Deuling <deuling@de.ibm.com> | |
7727 | ||
7728 | * remote-utils.c (decode_xfer_write): New function. | |
7729 | * server.h (decode_xfer_write): Add prototype. | |
7730 | * server.c (handle_query): Add PACKET_LEN argument. Support | |
7731 | qXfer:spu:read and qXfer:spu:write packets. | |
7732 | (main): Pass packet_len to handle_query. | |
7733 | * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu. | |
7734 | * target.h (target_ops): Add qxfer_spu. | |
7735 | ||
374c1d38 UW |
7736 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
7737 | ||
7738 | * spu-low.c (spu_proc_xfer_spu): Do not return failure when | |
7739 | accessing non-seekable spufs files. | |
7740 | ||
bb63802a UW |
7741 | 2007-05-16 Markus Deuling <deuling@de.ibm.com> |
7742 | ||
889bf7c5 | 7743 | * server.c (handle_query): Add reply for qC packet. |
bb63802a | 7744 | |
7390519e PA |
7745 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7746 | Leo Zayas <lerele@champenstudios@com> | |
7747 | ||
7748 | * server.h (check_remote_input_interrupt_request): New function. | |
7749 | * remote_utils.c (INVALID_DESCRIPTOR): New define. | |
7750 | (remote_desc): Initialize with INVALID_DESCRIPTOR. | |
7751 | (input_interrupt): Expose on USE_WIN32API too. Fix whitespace. | |
7752 | (check_remote_input_interrupt_request): New function. | |
7753 | * server.h (check_remote_input_interrupt_request): Declare. | |
3ecf0694 | 7754 | * win32-low.c (winapi_DebugBreakProcess, |
7390519e PA |
7755 | winapi_GenerateConsoleCtrlEvent): New typedefs. |
7756 | (get_child_debug_event): Lower Win32 debug event polling from 1 sec | |
7757 | to 250 ms. | |
7758 | (win32_wait): Check for remote interrupt request | |
7759 | with check_remote_input_interrupt_request. | |
7760 | (win32_request_interrupt): New function. | |
7761 | (win32_target_op): Set request_interrupt to win32_request_interrupt. | |
7762 | ||
34b34921 PA |
7763 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7764 | ||
7765 | * win32-low.c (debug_registers_changed, | |
7766 | debug_registers_used, CONTEXT_EXTENDED_REGISTERS, | |
7767 | CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS, | |
7768 | CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete. | |
7769 | (thread_rec): Get context using the low target. | |
7770 | (child_add_thread): Call thread_added on the low target, | |
7771 | which does the same thing. | |
7772 | (regptr): Delete. | |
7773 | (do_initial_child_stuff): Remove debug registers references. | |
7774 | Set context using the low target. Resume threads after | |
7775 | setting the contexts. | |
7776 | (child_continue): Remove dead variable. Remove debug | |
7777 | registers references. | |
7778 | (child_fetch_inferior_registers): Go through the low target. | |
7779 | (do_child_store_inferior_registers): Remove. | |
7780 | (child_store_inferior_registers): Go through the low target. | |
7781 | (win32_resume): Remove debug registers references. | |
7782 | Set context using the low target. | |
7783 | (handle_exception): Change return type to void. Don't record | |
7784 | context here. Set status to TARGET_WAITKIND_SPURIOUS on a | |
7785 | first chance exception. | |
889bf7c5 | 7786 | (get_child_debug_event): Change return type to void. Remove |
34b34921 PA |
7787 | goto loop. Always return after waiting for debug event. |
7788 | (win32_wait): Convert to switch statement. Handle spurious | |
7789 | events. | |
7790 | ||
7791 | * win32-i386-low.c (debug_registers_changed, | |
7792 | debug_registers_used): New. | |
7793 | (initial_stuff): Rename to ... | |
7794 | (i386_initial_stuff): ... this. Clear debug registers | |
7795 | state variables. | |
7796 | (store_debug_registers): Delete. | |
7797 | (i386_get_thread_context): New. | |
7798 | (load_debug_registers): Delete. | |
7799 | (i386_set_thread_context): New. | |
7800 | (i386_thread_added): New. | |
7801 | (single_step): Rename to ... | |
7802 | (i386_single_step): ... this. | |
7803 | (do_fetch_inferior_registers): Rename to ... | |
7804 | (i386_fetch_inferior_register): ... this. | |
7805 | (i386_store_inferior_register): New. | |
7806 | (the_low_target): Adapt to new interface. | |
7807 | ||
7808 | * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define. | |
7809 | (arm_get_thread_context): New. | |
7810 | (arm_set_thread_context): New. | |
7811 | (regptr): New. | |
7812 | (do_fetch_inferior_registers): Rename to ... | |
7813 | (arm_fetch_inferior_register): ... this. | |
7814 | (arm_store_inferior_register): New. | |
7815 | (arm_wince_breakpoint): Reimplement as unsigned long. | |
7816 | (arm_wince_breakpoint_len): Define. | |
7817 | (the_low_target): Adapt to new interface. | |
7818 | ||
7819 | * win32-low.h (target_ops): Remove regmap, store_debug_registers and | |
7820 | load_debug_registers. Add get_thread_context, set_thread_context, | |
7821 | thread_added and store_inferior_register. Rename | |
7822 | fetch_inferior_registers to fetch_inferior_register. | |
7823 | (regptr): Remove declaration. | |
7824 | ||
dd6953e1 PA |
7825 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7826 | ||
7827 | * linux-low.c (linux_detach): Change return type to int. Return 0. | |
7828 | * spu-low.c (spu_detach): Likewise. | |
7829 | ||
444d6139 PA |
7830 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7831 | ||
7832 | * target.h (target_ops): Change return type of detach to int. | |
7833 | Add join. | |
7834 | (join_inferior): New. | |
7835 | * server.c (main): Don't skip detach support on mingw32. | |
7836 | If the inferior doesn't support detaching return error. | |
7837 | Call join_inferior instead of using waitpid. | |
7838 | * linux-low.c (linux_join): New. | |
7839 | (linux_target_op): Add linux_join. | |
7840 | * spu-low.c (spu_join): New. | |
7841 | (spu_target_ops): Add spu_join. | |
7842 | * win32-low.c (win32_detach): Adapt to new interface. | |
7843 | Reopen current_process_handle before detaching. Issue a child | |
7844 | resume before detaching. | |
7845 | (win32_join): New. | |
7846 | (win32_target_op): Add win32_join. | |
7847 | ||
1d5315fe PA |
7848 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7849 | ||
7850 | * win32-low.c (win32-attach): Fix return value. | |
7851 | * target.h (target_ops): Describe ATTACH return values. | |
7852 | ||
bf914831 PA |
7853 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7854 | ||
7855 | * win32-low.c (GETPROCADDRESS): Define. | |
7856 | (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer. | |
7857 | (winapi_DebugSetProcessKillOnExit): Likewise. | |
7858 | (win32_create_inferior): Force usage of ansi CreateProcessA. | |
7859 | (win32_attach): Use GETPROCADDRESS. | |
7860 | (win32_detach): Likewise. | |
7861 | ||
f72f3e60 PA |
7862 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7863 | ||
7864 | * win32-low.c (win32_wait): Don't use WSTOPSIG. | |
7865 | ||
ed50f18f PA |
7866 | 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt> |
7867 | ||
7868 | * win32-low.c: Commit leftover changes from 2007-03-29. | |
7869 | ||
0c2ead7e DJ |
7870 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
7871 | ||
7872 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit | |
7873 | fields short instead of int. Add explicit padding. | |
7874 | (i387_cache_to_fsave): Remove unnecessary casts. | |
7875 | (i387_fsave_to_cache): Doc fix. | |
7876 | (i387_cache_to_fxsave): Remove unnecessary casts and masking. | |
7877 | ||
73725ff3 DJ |
7878 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
7879 | ||
7880 | * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use. | |
7881 | (i387_fxsave_to_cache): Check fp->ftag while building ftag value. | |
7882 | ||
d99f33d8 PA |
7883 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
7884 | ||
7885 | * configure.srv (arm*-*-mingw32ce*): Move near the other | |
7886 | arm targets. | |
7887 | ||
68070c10 PA |
7888 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
7889 | ||
2482afc6 | 7890 | * configure.ac: Add errno checking. |
68070c10 PA |
7891 | (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h, |
7892 | sys/file.h and malloc.h. | |
7893 | (AC_CHECK_DECLS): Add perror. | |
7894 | (srv_mingwce): Handle. | |
2482afc6 | 7895 | * configure.srv (i[34567]86-*-cygwin*): Add |
68070c10 PA |
7896 | win32-i386-low.o to srv_tgtobj. |
7897 | (i[34567]86-*-mingw*): Likewise. | |
7898 | (arm*-*-mingw32ce*): Add case. | |
7899 | * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, | |
7900 | HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check. | |
7901 | [__MINGW32CE__] (strerror): New function. | |
7902 | [__MINGW32CE__] (errno): Define to GetLastError. | |
7903 | [__MINGW32CE__] (COUNTOF): New macro. | |
7904 | (remote_open): Remove extra close call. | |
7905 | * mem-break.c (delete_breakpoint_at): New function. | |
7906 | * mem-break.h (delete_breakpoint_at): Declare. | |
7907 | * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, | |
7908 | HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check. | |
7909 | [USE_WIN32API] (read, write): Add char* casts. | |
7910 | * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check. | |
7911 | * server.h: Include wincecompat.h on Windows CE. | |
7912 | [HAVE_ERRNO_H]: Check. | |
7913 | (perror): Declare if not declared. | |
7914 | * utils.c: Add stdlib.h, errno.h and malloc.h includes. | |
7915 | (perror_with_name): Remove errno declaration. | |
7916 | * wincecompat.h: New. | |
7917 | * wincecompat.c: New. | |
7918 | * win32-low.h: New. | |
7919 | * win32-arm-low.c: New. | |
7920 | * win32-i386-low.c: New. | |
7921 | (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h. | |
7922 | (OUTMSG2): Make it safe. | |
7923 | (_T): New macro. | |
7924 | (COUNTOF): New macro. | |
7925 | (NUM_REGS): Get it from the low target. | |
7926 | (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT, | |
7927 | CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0. | |
7928 | (thread_rec): Let low target handle debug registers. | |
7929 | (child_add_thread): Likewise. | |
7930 | (child_init_thread_list): Likewise. | |
7931 | (continue_one_thread): Likewise. | |
7932 | (regptr): New. | |
7933 | (do_child_fetch_inferior_registers): Move to ... | |
7934 | * win32-i386-low.c: ... here, and rename to ... | |
7935 | (do_fetch_inferior_registers): ... this. | |
889bf7c5 | 7936 | * win32-low.c (child_fetch_inferior_registers): |
68070c10 PA |
7937 | Go through the low target. |
7938 | (do_child_store_inferior_registers): Use regptr. | |
7939 | (strwinerror): New function. | |
7940 | (win32_create_inferior): Handle Windows CE. | |
7941 | Use strwinerror instead of strerror on Windows error | |
7942 | codes. Add program to the error output. | |
7943 | Don't close the main thread handle on Windows CE. | |
7944 | (win32_attach): Use coredll.dll on Windows CE. | |
7945 | (win32_kill): Close current process and current | |
7946 | thread handles. | |
7947 | (win32_detach): Use coredll.dll on Windows CE. | |
7948 | (win32_resume): Let low target handle debug registers, and | |
7949 | step request. | |
7950 | (handle_exception): Add/Remove initial breakpoint. Avoid | |
7951 | non-existant WSTOPSIG on Windows CE. | |
7952 | (win32_read_inferior_memory): Cast to remove warning. | |
7953 | (win32_arch_string): Go through the low target. | |
7954 | (initialize_low): Call set_breakpoint_data with the low | |
7955 | target's breakpoint. | |
7956 | * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM, | |
7957 | FOP_REGNUM, mappings): Move to ... | |
7958 | * win32-i386-low.c: ... here. | |
7959 | * win32-low.c (win32_thread_info): Move to ... | |
7960 | * win32-low.h: ... here. | |
7961 | * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c, | |
7962 | win32-arm-low.c and wincecompat.c. | |
7963 | (all:): Add $EXEEXT. | |
7964 | (install-only:): Likewise. | |
7965 | (gdbserver:): Likewise. | |
7966 | (gdbreplay:): Likewise. | |
7967 | * config.in: Regenerate. | |
7968 | * configure: Regenerate. | |
7969 | ||
41093d81 PA |
7970 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
7971 | ||
7972 | * win32-low.c: Rename typedef thread_info to | |
7973 | win32_thread_info throughout. | |
7974 | ||
544afa54 PA |
7975 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
7976 | ||
7977 | * win32-i386-low.c: Rename to ... | |
7978 | * win32-low.c: ... this. | |
7979 | * configure.srv: Replace win32-i386-low.o with win32-low.o. | |
7980 | * Makefile.in: Likewise. | |
7981 | ||
bce7165d PA |
7982 | 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt> |
7983 | ||
7984 | * remote-utils.c (monitor_output): Constify msg parameter. | |
7985 | * server.h (monitor_output): Likewise. | |
7986 | * win32-i386-low.c (handle_output_debug_string): New. | |
7987 | (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using | |
7988 | handle_output_debug_string. | |
7989 | (get_child_debug_event): Likewise. | |
7990 | ||
506c7aa0 DJ |
7991 | 2007-03-27 Mat Hostetter <mat@lcs.mit.edu> |
7992 | ||
7993 | * server.c (main): Correct strtoul check. | |
7994 | ||
42c81e2a DJ |
7995 | 2007-03-27 Jon Ringle <jon@ringle.org> |
7996 | ||
7997 | * linux-low.c: Check __ARCH_HAS_MMU__ also. | |
7998 | ||
9453113a DJ |
7999 | 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com> |
8000 | ||
8001 | * Makefile.in: Add dummy "pdf" and "install-pdf" targets. | |
8002 | ||
64a69107 DJ |
8003 | 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com> |
8004 | ||
8005 | * terminal.h: Check HAVE_SGTTY_H. | |
8006 | ||
8007 | 2007-02-27 Mat Hostetter <mat@lcs.mit.edu> | |
6f8486da DJ |
8008 | |
8009 | * remote-utils.c (remote_open): Print out the assigned port number. | |
8010 | ||
c74d0ad8 DJ |
8011 | 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com> |
8012 | ||
8013 | * remote-utils.c (monitor_output): New function. | |
8014 | * server.c (debug_threads): Define here. | |
8015 | (monitor_show_help): New function. | |
8016 | (handle_query): Handle qRcmd. | |
8017 | (main): Do not handle 'd' packet. | |
8018 | * server.h (debug_threads, remote_debug, monitor_output): Declare. | |
8019 | * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions | |
8020 | of debug_threads. | |
8021 | ||
de7c3b4a PA |
8022 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
8023 | ||
8024 | * Makefile.in (EXEEXT): New. | |
8025 | (clean): Use $(EXEEXT). | |
8026 | ||
ef57601b PA |
8027 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
8028 | ||
8029 | * target.h (target_ops): Rename send_signal to request_interrupt, | |
8030 | and remove enum target_signal parameter. | |
8031 | * linux-low.c (linux_request_interrupt): Rename from | |
8032 | linux_send_signal, and always send SIGINT. | |
8033 | * spu-low.c (spu_request_interrupt): Rename from spu_send_signal, | |
8034 | and always send SIGINT. | |
8035 | * remote-utils.c (putpkt_binary): Call request_interrupt, instead | |
8036 | of send_signal. | |
8037 | (input_interrupt): Likewise. | |
8038 | ||
820f2bda PA |
8039 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
8040 | ||
8041 | * server.c (get_features_xml): Check if target implemented | |
8042 | arch_string. | |
8043 | * win32-i386-low.c (win32_arch_string): New. | |
8044 | (win32_target_ops): Add win32_arch_string as arch_string member. | |
8045 | ||
ab39bf24 UW |
8046 | 2007-02-22 Markus Deuling <deuling@de.ibm.com> |
8047 | ||
8048 | * spu-low.c (spu_arch_string): New. | |
8049 | (spu_target_ops): Add spu_arch_string. | |
8050 | ||
61ff6e04 DJ |
8051 | 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
8052 | ||
8053 | * remote-utils.c: Remove HAVE_TERMINAL_H check. | |
8054 | * configure.ac: Do not check for terminal.h. | |
8055 | * configure, config.in: Regenerated. | |
8056 | ||
fb1e4ffc DJ |
8057 | 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
8058 | ||
8059 | * Makefile.in (OBS): Add $(XML_BUILTIN). | |
8060 | (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New. | |
8061 | (clean): Update. | |
8062 | (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o) | |
8063 | (arm-with-iwmmxt.c): New. | |
8064 | * config.in, configure: Regenerate. | |
8065 | * configure.ac: Check for iWMMXt. Handle srv_xmltarget, | |
8066 | srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML. | |
8067 | * configure.srv: Mention srv_xmltarget and srv_xmlfiles. | |
8068 | (arm*-*-linux*): Add iWMMXt and regset support. | |
8069 | * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define. | |
8070 | (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset) | |
8071 | (arm_store_wmmxregset, target_regsets): New. | |
8072 | * server.c (get_features_xml): Take annex argument. Check builtin | |
8073 | XML documents. | |
8074 | (handle_query): Handle multiple annexes. | |
8075 | ||
0f48aa01 DJ |
8076 | 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
8077 | ||
8078 | * remote-utils.c [USE_WIN32API] (read, write): Define. | |
8079 | (putpkt_binary, input_interrupt, readchar, getpkt): Use read and | |
8080 | write. | |
8081 | ||
23181151 DJ |
8082 | 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com> |
8083 | ||
8084 | * linux-i386-low.c (the_low_target): Set arch_string. | |
8085 | * linux-x86-64-low.c (the_low_target): Likewise. | |
8086 | * linux-low.c (linux_arch_string): New. | |
8087 | (linux_target_ops): Add it. | |
8088 | * linux-low.h (struct linux_target_ops): Add arch_string. | |
8089 | * server.c (write_qxfer_response): Use const void * for DATA. | |
8090 | (get_features_xml): New. | |
8091 | (handle_query): Handle qXfer:features:read. Report it for qSupported. | |
8092 | * target.h (struct target_ops): Add arch_string method. | |
8093 | ||
9d606399 DJ |
8094 | 2007-01-03 Denis Pilat <denis.pilat@st.com> |
8095 | Daniel Jacobowitz <dan@codesourcery.com> | |
8096 | ||
8097 | * linux-low.c (linux_kill): Handle being called with no threads. | |
8098 | * win32-i386-low.c (win32_kill): Likewise. | |
8099 | (get_child_debug_event): Clear current_process_handle. | |
8100 | ||
8101 | 2006-12-30 Denis PILAT <denis.pilat@st.com> | |
8264bb58 DJ |
8102 | Daniel Jacobowitz <dan@codesourcery.com> |
8103 | ||
8104 | * remote-utils.c (remote_open): Check the type of specified | |
8105 | serial port devices before opening them. | |
8106 | * server.c (main): Kill the inferior if an error occurs during | |
8107 | the first remote_open. | |
8108 | ||
a5e13d24 DJ |
8109 | 2006-12-05 Markus Deuling <deuling@de.ibm.com> |
8110 | ||
8111 | * README: Update supported targets. | |
8112 | ||
186947f7 DJ |
8113 | 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com> |
8114 | ||
8115 | * Makefile.in (clean): Remove reg-mips64.c. | |
8116 | (reg-mips64.c, reg-mips64.o): New rules. | |
8117 | * configure.srv: Handle mips64. Include regset support for mips. | |
8118 | * linux-mips-low.c (union mips_register): New. | |
8119 | (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it. | |
8120 | (mips_breakpoint, mips_breakpoint_at): Use int. | |
8121 | (mips_collect_register, mips_supply_register) | |
8122 | (mips_collect_register_32bit, mips_supply_register_32bit) | |
8123 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) | |
8124 | (mips_store_fpregset, target_regsets): New. | |
8125 | * thread-db.c (thread_db_get_tls_address): Use uintptr_t. | |
8126 | ||
a13e2c95 UW |
8127 | 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
8128 | ||
8129 | * configure.srv: Add target "spu*-*-*". | |
8130 | * Makefile.in (clean): Remove reg-spu.c. | |
8131 | (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies. | |
8132 | * spu-low.c: New file. | |
8133 | ||
cb7283db DJ |
8134 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
8135 | ||
8136 | * configure.ac: Correct td_thr_tls_get_addr test. | |
8137 | * configure: Regenerated. | |
8138 | ||
89be2091 DJ |
8139 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
8140 | ||
8141 | * linux-low.c (linux_wait_for_event): Reformat. Use the | |
8142 | pass_signals array. | |
8143 | * remote-utils.c (decode_address_to_semicolon): New. | |
8144 | * server.c (pass_signals, handle_general_set): New. | |
8145 | (handle_query): Mention QPassSignals for qSupported. | |
8146 | (main): Call handle_general_set. | |
8147 | * server.h (pass_signals, decode_address_to_semicolon): New. | |
8148 | ||
000ef4f0 DJ |
8149 | 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com> |
8150 | ||
8151 | * server.c (handle_query): Correct error handling for read_auxv. | |
8152 | ||
b7149293 UW |
8153 | 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com> |
8154 | ||
8155 | * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets | |
8156 | and srv_linux_thread_db to yes. | |
8157 | * linux-s390-low.c (s390_fill_gregset): New function. | |
8158 | (target_regsets): Define data structure. | |
8159 | ||
dae5f5cf DJ |
8160 | 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com> |
8161 | ||
8162 | * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New. | |
8163 | * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR. | |
8164 | * config.in, configure: Regenerated. | |
8165 | * inferiors.c (gdb_id_to_thread): New function. | |
8166 | (gdb_id_to_thread_id): Use it. | |
8167 | * linux-low.c (linux_target_ops): Use thread_db_get_tls_address. | |
8168 | * linux-low.h (struct process_info): Add th member. | |
8169 | (thread_db_get_tls_address): New prototype. | |
8170 | * remote-utils.c (decode_address): Make non-static. | |
8171 | * server.c (handle_query): Handle qGetTLSAddr. | |
8172 | * server.h (gdb_id_to_thread, decode_address): New prototypes. | |
8173 | * target.h (struct target_ops): Add get_tls_address. | |
8174 | * thread-db.c (maybe_attach_thread): Save the thread handle. | |
8175 | (thread_db_get_tls_address): New. | |
8176 | ||
32ca6d61 DJ |
8177 | 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com> |
8178 | ||
8179 | * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define. | |
8180 | (linux_resume_one_process): Take a siginfo_t *. Update all | |
8181 | callers. Queue it if necessary. Use PTRACE_SETSIGINFO. | |
8182 | (struct pending_signals): Add a siginfo_t. | |
8183 | (linux_wait_for_process): Always set last_status. | |
8184 | (linux_wait_for_event): Use PTRACE_GETSIGINFO. | |
8185 | (linux_queue_one_thread): Use PTRACE_GETSIGINFO. | |
8186 | * linux-low.h (struct process_info): Add last_status. | |
8187 | ||
5ffff7c1 DJ |
8188 | 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com> |
8189 | ||
8190 | * remote-utils.c (try_rle): New function. | |
8191 | (putpkt_binary): Use it. | |
8192 | ||
8695c747 DJ |
8193 | 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com> |
8194 | ||
8195 | * Makefile.in (clean): Clean reg-x86-64-linux.c. | |
8196 | (reg-x86-64-linux.o, reg-x86-64-linux.c): New. | |
8197 | * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o. | |
8198 | * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX. | |
8199 | (x86_64_fill_gregset, x86_64_store_gregset): Skip floating | |
8200 | point registers. | |
8201 | ||
290fadea RS |
8202 | 2006-08-08 Richard Sandiford <richard@codesourcery.com> |
8203 | ||
8204 | * server.c (terminal_fd): New variable. | |
8205 | (old_foreground_pgrp): Likewise. | |
8206 | (restore_old_foreground_pgrp): New function. | |
8207 | (start_inferior): Record the terminal file descriptor in terminal_fd | |
8208 | and its original foreground group in old_foreground_pgrp. Register | |
8209 | restore_old_foreground_pgrp with atexit(). | |
8210 | ||
9f2e1e63 DJ |
8211 | 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com> |
8212 | ||
8213 | * server.c (handle_query): Correct qPart to qXfer. | |
8214 | ||
b80864fb DJ |
8215 | 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com> |
8216 | ||
8217 | * configure.ac: Check for more headers which are missing on | |
8218 | Windows. Automatically supply -lwsock32 and USE_WIN32API. | |
8219 | * configure.srv: Add Cygwin and mingw32. | |
8220 | * remote-utils.c: Don't include headers unconditionally which | |
8221 | are missing on mingw32. Include <winsock.h> for mingw32. | |
8222 | (remote_open): Adjust for mingw32 support. Flush | |
8223 | standard error after writing to it. | |
8224 | (remote_close, putpkt_binary, input_interrupt, block_async_io) | |
8225 | (unblock_async_io, enable_async_io, disable_async_io) | |
8226 | (readchar, getpkt): Update for Winsock support. | |
8227 | (prepare_resume_reply): Expect a protocol signal number. | |
8228 | * server.c: Disable <sys/wait.h> on mingw32. | |
8229 | (start_inferior): Adjust for mingw32 support. Flush | |
8230 | standard error after writing to it. | |
8231 | (attach_inferior): Likewise. Use protocol signal | |
8232 | numbers. | |
8233 | (main): Skip 'D' packet on mingw32. Use protocol signal numbers | |
8234 | and names. | |
8235 | * win32-i386-low.c: New file. | |
8236 | * Makefile.in (XM_CLIBS): Set. | |
8237 | (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS). | |
8238 | (win32-i386-low.o): New dependency rule. | |
8239 | * linux-low.c (linux_wait): Use target signal numbers. | |
8240 | * target.h (struct target_ops): Doc fix. | |
8241 | * server.h (target_signal_to_name): New prototype. | |
8242 | * gdbreplay.c: Don't include headers unconditionally which | |
8243 | are missing on mingw32. Include <winsock.h> for mingw32. | |
8244 | (remote_close, remote_open): Adjust for Winsock support. | |
8245 | * configure, config.in: Regenerated. | |
8246 | ||
0876f84a DJ |
8247 | 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
8248 | ||
8249 | * server.c (decode_xfer_read, write_qxfer_response): New. | |
8250 | (handle_query): Take a packet length argument. Handle | |
8251 | qXfer:auxv:read instead of qPart:auxv:read. Mention it in | |
8252 | the qSupported response. | |
8253 | (main): Update call to handle_query. | |
8254 | ||
01f9e8fa DJ |
8255 | 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com> |
8256 | ||
8257 | * remote-utils.c (remote_escape_output, remote_unescape_input): New. | |
8258 | (putpkt_binary): Renamed from putpkt and adjusted for binary | |
8259 | data. | |
8260 | (putpkt): New wrapper for putpkt_binary. | |
8261 | (readchar): Don't mask off the high bit. | |
8262 | (decode_X_packet): New function. | |
8263 | * server.c (main): Call putpkt_binary if a handler sets the packet | |
8264 | length. Save the length of the incoming packet. Handle 'X'. | |
8265 | * server.h (gdb_byte, remote_escape_output, decode_X_packet): New. | |
8266 | ||
be2a5f71 DJ |
8267 | 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com> |
8268 | ||
8269 | * server.c (handle_query): Handle qSupported. | |
8270 | ||
ea025f5f DJ |
8271 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
8272 | ||
8273 | * remote-utils.c (all_symbols_looked_up): New variable. | |
8274 | (look_up_one_symbol): Check it. | |
8275 | * server.h (look_up_one_symbol): New declaration. | |
8276 | * thread-db.c (thread_db_init): Set all_symbols_looked_up. | |
8277 | ||
9308fc88 DJ |
8278 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
8279 | ||
8280 | * Makefile.in (linux-arm-low.o): Update dependencies. | |
66f338c7 | 8281 | * linux-arm-low.c: Include "gdb_proc_service.h". |
9308fc88 DJ |
8282 | (PTRACE_GET_THREAD_AREA): Define. |
8283 | (ps_get_thread_area): New function. | |
8284 | ||
52fb6437 NS |
8285 | 2006-05-09 Nathan Sidwell <nathan@codesourcery.com> |
8286 | ||
8287 | * configure.srv (m68k*-*-uclinux*): New target. | |
8288 | * linux-low.c (linux_create_inferior): Use vfork on mmuless systems. | |
8289 | (linux_resume_one_process): Remove extraneous cast. | |
8290 | (linux_read_offsets): New. | |
8291 | (linux_target_op): Add linux_read_offsets on mmuless systems. | |
8292 | * server.c (handle_query): Add qOffsets logic. | |
8293 | * target.h (struct target_ops): Add read_offsets. | |
8294 | ||
21b0f40c DJ |
8295 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
8296 | ||
8297 | * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h". | |
8298 | (PTRACE_GET_THREAD_AREA): Define. | |
8299 | (ps_get_thread_area): New function. | |
8300 | * Makefile.in (linux-i386-low.o, linux-mips-low.o) | |
8301 | (linux-x86-64-low.o): Update. | |
8302 | ||
0050a760 DJ |
8303 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
8304 | ||
8305 | * configure.ac: Remove checks for prfpregset_t. | |
8306 | * gdb_proc_service.h: New file. | |
8307 | * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the | |
8308 | new "gdb_proc_service.h". | |
8309 | * proc-service.c: Likewise. | |
8310 | (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t. | |
8311 | (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument. | |
8312 | * Makefile.in (gdb_proc_service_h): Updated. | |
8313 | * configure, config.in: Regenerated. | |
8314 | ||
b92a518e DJ |
8315 | 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
8316 | ||
8317 | * remote-utils.c (prepare_resume_reply): Move declaration | |
8318 | of gdb_id_from_wait to the top of the block. | |
8319 | ||
545587ee DJ |
8320 | 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com> |
8321 | ||
8322 | * linux-low.c (regsets_store_inferior_registers): Read the regset | |
8323 | from the target before filling it. | |
8324 | ||
9db87ebd DJ |
8325 | 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
8326 | ||
8327 | * server.c (attach_inferior): Return SIGTRAP for a successful | |
8328 | attach. | |
8329 | ||
dd24457d DJ |
8330 | 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
8331 | ||
8332 | * Makefile.in (OBS): Add version.o. | |
8333 | (STAGESTUFF): Delete. | |
8334 | (version.o): Add dependencies. | |
8335 | (version.c): Replace rule. | |
8336 | (clean): Remove version.c. | |
8337 | * server.c (gdbserver_version): New. | |
8338 | (gdbserver_usage): Use printf. | |
8339 | (main): Handle --version and --help. | |
8340 | * server.h (version, host_name): Add declarations. | |
8341 | ||
6f0f660e EZ |
8342 | 2005-12-23 Eli Zaretskii <eliz@gnu.org> |
8343 | ||
889bf7c5 PA |
8344 | * linux-arm-low.c: |
8345 | * linux-arm-low.c: | |
8346 | * inferiors.c: | |
8347 | * i387-fp.h: | |
8348 | * i387-fp.c: | |
8349 | * gdbreplay.c: | |
8350 | * regcache.c: | |
8351 | * proc-service.c: | |
8352 | * mem-break.h: | |
8353 | * mem-break.c: | |
8354 | * linux-x86-64-low.c: | |
8355 | * linux-sh-low.c: | |
8356 | * linux-s390-low.c: | |
8357 | * linux-ppc64-low.c: | |
8358 | * linux-ppc-low.c: | |
8359 | * linux-mips-low.c: | |
8360 | * linux-m68k-low.c: | |
8361 | * linux-m32r-low.c: | |
8362 | * linux-low.h: | |
8363 | * linux-low.c: | |
8364 | * linux-ia64-low.c: | |
8365 | * linux-i386-low.c: | |
8366 | * linux-crisv32-low.c: | |
8367 | * thread-db.c: | |
8368 | * terminal.h: | |
8369 | * target.h: | |
8370 | * target.c: | |
8371 | * server.h: | |
8372 | * server.c: | |
8373 | * remote-utils.c: | |
8374 | * regcache.h: | |
8375 | * utils.c: | |
8376 | * Makefile.in: | |
8377 | * configure.ac: | |
6f0f660e EZ |
8378 | * gdbserver.1: Add (C) after Copyright. Update the FSF |
8379 | address. | |
8380 | ||
9d1fb177 DJ |
8381 | 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com> |
8382 | ||
8383 | * linux-arm-low.c (arm_eabi_breakpoint): New variable. | |
8384 | (arm_breakpoint_at): Recognize both breakpoints. | |
8385 | (the_low_target): Use the correct breakpoint instruction. | |
8386 | ||
011a70c2 DJ |
8387 | 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com> |
8388 | ||
8389 | * configure.srv (x86_64-*-linux*): Turn on thread_db support. | |
8390 | * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len) | |
8391 | (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New. | |
8392 | (the_low_target): Update. | |
8393 | ||
7fb85e41 AS |
8394 | 2005-10-25 Andreas Schwab <schwab@suse.de> |
8395 | ||
8396 | * server.c (main): Allocate mem_buf with PBUFSIZ bytes. | |
8397 | ||
8398 | * linux-ia64-low.c (ia64_regmap): Remove NAT registers. | |
8399 | (ia64_num_regs): Reduce to 462. | |
8400 | ||
3db0444b DJ |
8401 | 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com> |
8402 | ||
8403 | * acinclude.m4: Correct quoting. | |
8404 | * aclocal.m4: Regenerated. | |
8405 | ||
8406 | Suggested by SZOKOVACS Robert <szo@ies.hu>: | |
8407 | * thread-db.c (thread_db_err_str): Handle TD_VERSION. | |
8408 | (thread_db_init): Call thread_db_err_str. | |
8409 | * configure.ac: Check for TD_VERSION. | |
8410 | * config.in, configure: Regenerated. | |
8411 | ||
bee0189a DJ |
8412 | 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
8413 | ||
8414 | * server.h (error, fatal, warning): Add ATTR_FORMAT. | |
8415 | ||
e9d25b98 DJ |
8416 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
8417 | ||
8418 | * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS | |
8419 | is not available. Define HAVE_PTRACE_GETREGS if it is. | |
8420 | * config.in, configure: Regenerated. | |
8421 | * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64. | |
8422 | * linux-i386-low.c, linux-m68k-low.c: Update to use | |
8423 | HAVE_PTRACE_GETREGS. | |
8424 | * linux-low.c (regsets_fetch_inferior_registers) | |
8425 | (regsets_store_inferior_registers): Only return 0 if we processed | |
8426 | GENERAL_REGS. | |
8427 | * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New. | |
8428 | * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New. | |
8429 | ||
a06660f7 DJ |
8430 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
8431 | ||
8432 | * inferiors.c (struct thread_info): Add gdb_id. | |
8433 | (add_thread): Add gdb_id argument. | |
8434 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New. | |
8435 | * linux-low.c (linux_create_inferior, linux_attach_lwp): Update | |
8436 | calls to add_thread. | |
8437 | * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id. | |
8438 | * server.c (handle_query): Use thread_to_gdb_id. | |
8439 | (handle_v_cont, main): Use gdb_id_to_thread_id. | |
8440 | * server.h (add_thread): Update prototype. | |
8441 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New | |
8442 | prototypes. | |
8443 | ||
5a1f5858 DJ |
8444 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
8445 | ||
8446 | * linux-low.c (fetch_register, usr_store_inferior_registers): Handle | |
8447 | left-padded registers. | |
8448 | * linux-low.h (struct linux_target_ops): Add left_pad_xfer. | |
8449 | * linux-ppc64-low.c (the_low_target): Set left_pad_xfer. | |
8450 | ||
e122f1f5 SE |
8451 | 2005-07-01 Steve Ellcey <sje@cup.hp.com> |
8452 | ||
8453 | * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS. | |
8454 | * configure: Regenerate. | |
8455 | * config.in: Regenerate. | |
8456 | * server.h (NEED_DECLARATION_STRERROR): | |
8457 | Replace with !HAVE_DECL_STRERROR. | |
8458 | ||
d592fa2f DJ |
8459 | 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com> |
8460 | ||
8461 | * linux-low.c (linux_wait, linux_send_signal): Don't test | |
8462 | an unsigned long variable for > 0 if it could be MAX_ULONG. | |
8463 | * server.c (myresume): Likewise. | |
8464 | * target.c (set_desired_inferior): Likewise. | |
8465 | ||
ccbd4912 MK |
8466 | 2005-06-13 Mark Kettenis <kettenis@gnu.org> |
8467 | ||
8468 | * configure.ac: Simplify and improve check for socklen_t. | |
8469 | * configure, config.in: Regenerate. | |
8470 | ||
f450004a DJ |
8471 | 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com> |
8472 | ||
8473 | * acconfig.h: Remove. | |
8474 | * configure.ac: Add a test for socklen_t. Use three-argument | |
8475 | AC_DEFINE throughout. | |
8476 | * config.in: Regenerated using autoheader 2.59. | |
8477 | * configure: Regenerated. | |
8478 | ||
8479 | * gdbreplay.c (socklen_t): Provide a default. | |
8480 | (remote_open): Use socklen_t. | |
8481 | * remote-utils.c (socklen_t): Provide a default. | |
8482 | (remote_open): Use socklen_t. | |
8483 | (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use | |
8484 | unsigned char. | |
8485 | ||
8486 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned | |
8487 | char for buffers. | |
8488 | * linux-low.c (linux_read_memory, linux_write_memory) | |
8489 | (linux_read_auxv): Likewise. | |
8490 | * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read) | |
8491 | (check_mem_write): Likewise. | |
8492 | * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write): | |
8493 | Likewise. | |
8494 | * regcache.c (struct inferior_rgcache_data, registers_to_string) | |
8495 | (registers_from_string, register_data): Likewise. | |
8496 | * server.c (handle_query, main): Likewise. | |
8497 | * server.h (convert_ascii_to_int, convert_int_to_ascii) | |
8498 | (decode_M_packet): Likewise. | |
8499 | * target.c (read_inferior_memory, write_inferior_memory): Likewise. | |
8500 | * target.h (struct target_ops): Update read_memory, write_memory, | |
8501 | and read_auxv. | |
8502 | (read_inferior_memory, write_inferior_memory): Update. | |
8503 | * linux-low.h (struct linux_target_ops): Change type of breakpoint | |
8504 | to unsigned char *. | |
8505 | * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c, | |
8506 | linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c, | |
8507 | linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c, | |
8508 | linux-s390-low.c, linux-sh-low.c: Update for changes in | |
8509 | read_inferior_memory and the_low_target->breakpoint. | |
8510 | ||
eee84df1 DJ |
8511 | 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com> |
8512 | ||
8513 | * Makefile.in (SFILES): Add linux-ppc64-low.c. | |
8514 | (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets. | |
8515 | * configure.srv: Add powerpc64-*-linux*. | |
8516 | * linux-ppc64-low.c: New file. | |
8517 | ||
45b134e5 OF |
8518 | 2005-05-23 Orjan Friberg <orjanf@axis.com> |
8519 | ||
8520 | * linux-cris-low.c: New file with support for CRIS. | |
8521 | * linux-crisv32-low.c: Ditto for CRISv32. | |
8522 | * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c. | |
8523 | (clean): Add reg-cris.c and reg-crisv32.c. | |
889bf7c5 | 8524 | Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c, |
45b134e5 OF |
8525 | reg-crisv32.o, and reg-crisv32.c to make rules. |
8526 | * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of | |
8527 | recognized targets. | |
8528 | ||
48d93c75 UW |
8529 | 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com> |
8530 | ||
8531 | * linux-low.c (fetch_register): Ensure buffer size is a multiple | |
8532 | of sizeof (PTRACE_XFER_TYPE). | |
8533 | (usr_store_inferior_registers): Likewise. Zero out excess bytes. | |
8534 | ||
e013ee27 OF |
8535 | 2005-05-12 Orjan Friberg <orjanf@axis.com> |
8536 | ||
889bf7c5 | 8537 | * target.h (struct target_ops): Add insert_watchpoint, |
e013ee27 OF |
8538 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address function |
8539 | pointers for hardware watchpoint support. | |
8540 | * linux-low.h (struct linux_target_ops): Ditto. | |
8541 | * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint) | |
8542 | (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add | |
8543 | to linux_target_ops. | |
8544 | * remote-utils.c (prepare_resume_reply): Add watchpoint information to | |
8545 | reply packet. | |
8546 | * server.c (main): Recognize 'Z' and 'z' packets. | |
8547 | ||
b0ded00b UW |
8548 | 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com> |
8549 | ||
8550 | * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define. | |
8551 | (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions. | |
8552 | (the_low_target): Add new members. | |
8553 | ||
8643e2ad DJ |
8554 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
8555 | ||
8556 | * proc-service.c (ps_lgetregs): Search all_processes instead of | |
8557 | all_threads. | |
8558 | ||
fc620387 DJ |
8559 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
8560 | ||
8561 | * server.c (start_inferior): Change return type to int. | |
8562 | (attach_inferior): Change sigptr to int *. | |
8563 | (handle_v_cont, handle_v_requests): Change signal to int *. | |
8564 | (main): Change signal to int. | |
8565 | ||
8566 | 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com> | |
7cfbc4a0 KI |
8567 | |
8568 | * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o. | |
8569 | * configure.srv: Add m32r*-*-linux*. | |
8570 | * linux-m32r-low.c: New file. | |
8571 | ||
e0e76420 DJ |
8572 | 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com> |
8573 | ||
8574 | * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly. | |
8575 | ||
a1928bad DJ |
8576 | 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
8577 | ||
8578 | * inferiors.c (change_inferior_id, add_thread, find_inferior_id): | |
8579 | Take unsigned long arguments for PIDs. | |
8580 | * linux-low.c (add_process, linux_attach_lwp, linux_attach) | |
8581 | (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop) | |
8582 | (wait_for_sigstop, linux_resume_one_process) | |
8583 | (regsets_fetch_inferior_registers, linux_send_signal) | |
8584 | (linux_read_auxv): Likewise. Update the types of variables holding | |
8585 | PIDs. Update format string specifiers. | |
8586 | * linux-low.h (struct process_info, linux_attach_lwp): Likewise. | |
8587 | * remote-utils.c (prepare_resume_reply): Likewise. | |
8588 | * server.c (cont_thread, general_thread, step_thread) | |
8589 | (thread_from_wait, old_thread_from_wait, signal_pid): Change type to | |
8590 | unsigned long. | |
8591 | (handle_query): Update format specifiers. | |
8592 | (handle_v_cont, main): Use strtoul for thread IDs. | |
8593 | * server.h (struct inferior_list_entry): Use unsigned long for ID. | |
8594 | (add_thread, find_inferior_id, change_inferior_id, cont_thread) | |
8595 | (general_thread, step_thread, thread_from_wait) | |
8596 | (old_thread_from_wait): Update. | |
8597 | * target.h (struct thread_resume): Use unsigned long for THREAD. | |
8598 | (struct target_ops): Use unsigned long for arguments to attach and | |
8599 | thread_alive. | |
8600 | ||
dcdb98d2 DJ |
8601 | 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com> |
8602 | ||
8603 | * acinclude.m4: Include bfd/bfd.m4 directly. | |
8604 | * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis | |
8605 | <agriffis@toolchain.org>. | |
8606 | * aclocal.m4, configure: Regenerated. | |
8607 | ||
bec39cab AC |
8608 | 2005-01-07 Andrew Cagney <cagney@gnu.org> |
8609 | ||
8610 | * configure.ac: Rename configure.in, require autoconf 2.59. | |
8611 | * configure: Re-generate. | |
8612 | ||
434c4c77 DJ |
8613 | 2004-12-08 Daniel Jacobowitz <dan@debian.org> |
8614 | ||
8615 | * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset | |
8616 | LIBS when finished. | |
8617 | * aclocal.m4: Regenerated. | |
8618 | * configure: Regenerated. | |
8619 | ||
db1d3e1b AS |
8620 | 2004-11-21 Andreas Schwab <schwab@suse.de> |
8621 | ||
8622 | * linux-m68k-low.c (m68k_num_gregs): Define. | |
8623 | (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset) | |
8624 | (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New. | |
8625 | (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc) | |
8626 | (m68k_breakpoint_at): New. Add to the_low_target. | |
8627 | ||
8628 | * configure.srv (m68*-*-linux*): Set srv_linux_regsets and | |
8629 | srv_linux_thread_db to yes. | |
8630 | ||
43360365 JB |
8631 | 2004-10-20 Joel Brobecker <brobecker@gnat.com> |
8632 | ||
8633 | * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing. | |
8634 | (ARCH_SET_FS): Likewise. | |
8635 | (ARCH_GET_FS): Likewise. | |
8636 | (ARCH_GET_GS): Likewise. | |
8637 | ||
fd500816 DJ |
8638 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
8639 | ||
8640 | * linux-i386-low.c (ps_get_thread_area): New. | |
8641 | * linux-x86-64-low.c (ps_get_thread_area): New. | |
8642 | * linux-low.c: Include <sys/syscall.h>. | |
8643 | (linux_kill_one_process): Don't kill the first thread here. | |
8644 | (linux_kill): Kill the first thread here. | |
8645 | (kill_lwp): New function. | |
8646 | (send_sigstop, linux_send_signal): Use it. | |
8647 | * proc-service.c: Clean up #ifdefs. | |
8648 | (fpregset_info): Delete. | |
8649 | (ps_lgetregs): Update and enable implementation. | |
8650 | (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled | |
8651 | implementations. | |
8652 | * remote-utils.c (struct sym_cache, symbol_cache): New. | |
8653 | (input_interrupt): Print a clearer message. | |
8654 | (async_io_enabled): New variable. | |
8655 | (enable_async_io, disable_async_io): Use it. Update comments. | |
8656 | (look_up_one_symbol): Use the symbol cache. | |
8657 | * thread-db.c (thread_db_look_up_symbols): New function. | |
8658 | (thread_db_init): Update comments. Call thread_db_look_up_symbols. | |
8659 | ||
f6de3c42 DJ |
8660 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
8661 | ||
8662 | * configure.in: Test for -rdynamic. | |
8663 | * configure: Regenerated. | |
8664 | * Makefile (INTERNAL_LDFLAGS): New. | |
8665 | (gdbserver, gdbreplay): Use it. | |
8666 | ||
2c0fc042 AC |
8667 | 2004-09-02 Andrew Cagney <cagney@gnu.org> |
8668 | ||
8669 | * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE. | |
8670 | ||
075b3282 DJ |
8671 | 2004-03-23 Daniel Jacobowitz <drow@mvista.com> |
8672 | ||
8673 | * linux-low.c (linux_wait): Clear all_processes list also. | |
8674 | ||
fa6a77dc DJ |
8675 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
8676 | ||
8677 | * linux-low.c: Include <errno.h>. Remove extern declaration of | |
8678 | errno. | |
8679 | ||
6d782a97 DJ |
8680 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
8681 | ||
8682 | * gdbreplay.c, server.h, utils.c: Update copyright years. | |
8683 | ||
3a7fb99b DJ |
8684 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
8685 | ||
8686 | * server.c (main): Print child status or termination signal from | |
8687 | variable 'signal', not 'sig'. | |
8688 | ||
c3e735a6 DJ |
8689 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
8690 | ||
8691 | * linux-low.c (linux_read_memory): Change return type to | |
8692 | int. Check for and return error from ptrace(). | |
8693 | * target.c (read_inferior_memory): Change return type to int. Pass | |
8694 | back return status from the_target->read_memory(). | |
8695 | * target.h (struct target_ops): Adapt *read_memory() prototype. | |
8696 | Update comment. | |
8697 | (read_inferior_memory): Adapt prototype. | |
8698 | * server.c (main): Return an error packet if | |
8699 | read_inferior_memory() returns an error. | |
8700 | ||
a59d1c82 DJ |
8701 | 2004-03-04 Daniel Jacobowitz <drow@mvista.com> |
8702 | ||
8703 | * Makefile.in (distclean): Remove config.h, stamp-h, and config.log. | |
8704 | Unify with other clean targets. | |
8705 | ||
dc3f8883 DJ |
8706 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
8707 | ||
8708 | * server.c (handle_v_cont): Call set_desired_inferior. | |
8709 | ||
89a208da DJ |
8710 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
8711 | ||
8712 | * remote-utils.c (prepare_resume_reply): Always supply "thread:". | |
8713 | ||
62ea82f5 DJ |
8714 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
8715 | ||
8716 | * linux-low.c (linux_wait): Unblock async I/O. | |
8717 | (linux_resume): Block and enable async I/O. | |
8718 | * remote-utils.c (block_async_io, unblock_async_io): New functions. | |
8719 | * server.h (block_async_io, unblock_async_io): Add prototypes. | |
8720 | ||
6910d122 DJ |
8721 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
8722 | ||
8723 | * remote-utils.c (remote_open): Print a status notice after | |
8724 | opening a TCP port. | |
8725 | * server.c (attach_inferior): Print a status notice after | |
8726 | attaching. | |
8727 | ||
8728 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> | |
d677d77d DJ |
8729 | |
8730 | * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. | |
8731 | ||
c89dc5d4 DJ |
8732 | 2004-02-26 Daniel Jacobowitz <drow@mvista.com> |
8733 | ||
8734 | * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the | |
8735 | error packet. | |
8736 | * server.c, target.h: Update copyright years. | |
8737 | ||
4b8dad4a RM |
8738 | 2004-02-25 Roland McGrath <roland@redhat.com> |
8739 | ||
8740 | * target.h (struct target_ops): New member `read_auxv'. | |
8741 | * server.c (handle_query): Handle qPart:auxv:read: query using that. | |
8742 | * linux-low.c (linux_read_auxv): New function. | |
8743 | (linux_target_ops): Initialize `read_auxv' member to that. | |
8744 | ||
d7446758 JB |
8745 | 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
8746 | ||
8747 | Committed by Jim Blandy <jimb@redhat.com>. | |
8748 | ||
8749 | * linux-s390-low.c (s390_num_regs): Update. | |
4b8dad4a | 8750 | (s390_regmap): Remove control registers. Use __s390x__ predefine |
d7446758 JB |
8751 | instead of GPR_SIZE to distiguish s390 and s390x targets. |
8752 | ||
5544ad89 DJ |
8753 | 2004-01-31 Daniel Jacobowitz <drow@mvista.com> |
8754 | ||
8755 | * linux-low.c: Update copyright year. | |
8756 | (check_removed_breakpoint): Clear pending_is_breakpoint. | |
8757 | (linux_set_resume_request, linux_queue_one_thread) | |
8758 | (resume_status_pending_p): New functions. | |
8759 | (linux_continue_one_thread): Use process->resume. | |
8760 | (linux_resume): Only resume threads if there are no pending events. | |
8761 | * linux-low.h (struct process_info): Add resume request | |
8762 | pointer. | |
8763 | ||
2a68b70e DJ |
8764 | 2004-01-30 Daniel Jacobowitz <drow@mvista.com> |
8765 | ||
8766 | * regcache.c (new_register_cache): Clear the allocated register | |
8767 | buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>. | |
8768 | ||
64386c31 DJ |
8769 | 2003-10-13 Daniel Jacobowitz <drow@mvista.com> |
8770 | ||
8771 | * linux-low.c (linux_resume): Take a struct thread_resume * | |
8772 | argument. | |
8773 | (linux_wait): Update call. | |
8774 | (resume_ptr): New static variable. | |
8775 | (linux_continue_one_thread): Renamed from | |
8776 | linux_continue_one_process. Use resume_ptr. | |
8777 | (linux_resume): Use linux_continue_one_thread. | |
8778 | * server.c (handle_v_cont, handle_v_requests): New functions. | |
8779 | (myresume): New function. | |
8780 | (main): Handle 'v' case. | |
8781 | * target.h (struct thread_resume): New type. | |
8782 | (struct target_ops): Change argument of "resume" to struct | |
8783 | thread_resume *. | |
8784 | (myresume): Delete macro. | |
8785 | ||
c938e9b0 L |
8786 | 2003-08-08 H.J. Lu <hongjiu.lu@intel.com> |
8787 | ||
8788 | * Makefile.in (install-only): Create dest dir. Support DESTDIR. | |
8789 | (uninstall): Support DESTDIR. | |
8790 | ||
7f313d07 BC |
8791 | Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com> |
8792 | ||
8793 | * configure.srv: Add xscale*linux copy of arm*linux entry. | |
8794 | ||
3b2fc2ea DJ |
8795 | 2003-07-24 Daniel Jacobowitz <drow@mvista.com> |
8796 | ||
8797 | * linux-arm-low.c (arm_reinsert_addr): New function. | |
8798 | (the_low_target): Add arm_reinsert_addr. | |
8799 | ||
1c0a559e MK |
8800 | 2003-07-08 Mark Kettenis <kettenis@gnu.org> |
8801 | ||
8802 | * mem-break.c: Remove whitespace at end of file. | |
8803 | ||
43d5792c DJ |
8804 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
8805 | ||
8806 | * configure.in: Check whether we need to prototype strerror. | |
8807 | * server.h: Optionally prototype strerror. | |
8808 | * gdbreplay.c (perror_with_name): Use strerror. | |
8809 | * linux-low.c (linux_attach_lwp): Use strerror. | |
8810 | * utils.c (perror_with_name): Use strerror. | |
8811 | * config.in, configure: Regenerated. | |
8812 | ||
c8a86edf DJ |
8813 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
8814 | ||
8815 | * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by | |
8816 | SUGIOKA Toshinobu <sugioka@itonet.co.jp>. | |
8817 | ||
73d37363 DJ |
8818 | 2003-06-20 Daniel Jacobowitz <drow@mvista.com> |
8819 | ||
8820 | * Makefile.in (SFILES): Update. | |
8821 | * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c, | |
8822 | low-sun3.c: Remove files. | |
8823 | ||
6ad8ae5c DJ |
8824 | 2003-06-17 Daniel Jacobowitz <drow@mvista.com> |
8825 | ||
8826 | * linux-low.c: Move comment to linux_thread_alive where it belonged. | |
8827 | (linux_detach_one_process, linux_detach): New functions. | |
8828 | (linux_target_ops): Add linux_detach. | |
8829 | * server.c (main): Handle 'D' packet. | |
8830 | * target.h (struct target_ops): Add "detach" member. | |
8831 | (detach_inferior): Define. | |
8832 | ||
1581182a MK |
8833 | 2003-06-13 Mark Kettenis <kettenis@gnu.org> |
8834 | ||
8835 | From Kelley Cook <kelleycook@wideopenwest.com>: | |
8836 | * configure.srv: Accept i[34567]86 variants. | |
8837 | ||
e5379b03 DJ |
8838 | 2003-06-05 Daniel Jacobowitz <drow@mvista.com> |
8839 | ||
8840 | * linux-low.c (linux_wait_for_event): Correct comment typos. | |
8841 | (linux_resume_one_process): Call check_removed_breakpoint. | |
8842 | (linux_send_signal): New function. | |
8843 | (linux_target_ops): Add linux_send_signal. | |
8844 | * remote-utils.c (putpkt, input_interrupt): Use send_signal instead | |
8845 | of kill. | |
8846 | * target.h (struct target_ops): Add send_signal. | |
8847 | ||
2ff29de4 JB |
8848 | 2003-05-29 Jim Blandy <jimb@redhat.com> |
8849 | ||
8850 | * linux-low.c (usr_store_inferior_registers): Transfer buf in | |
8851 | PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise, | |
8852 | if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing | |
8853 | away part of the register's value. | |
8854 | ||
254787d4 DJ |
8855 | 2003-03-26 Daniel Jacobowitz <drow@mvista.com> |
8856 | ||
8857 | * linux-low.c (linux_create_inferior): Use __SIGRTMIN. | |
8858 | (linux_wait_for_event, linux_init_signals): Likewise. | |
8859 | ||
94e10508 DJ |
8860 | 2003-03-17 Daniel Jacobowitz <drow@mvista.com> |
8861 | ||
8862 | * configure.in: Check for stdlib.h. | |
8863 | * configure: Regenerated. | |
8864 | * config.in: Regenerated. | |
8865 | ||
4c0711e0 DJ |
8866 | 2003-01-04 Andreas Schwab <schwab@suse.de> |
8867 | ||
8868 | * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31. | |
8869 | ||
ef66e766 AC |
8870 | 2003-01-02 Andrew Cagney <ac131313@redhat.com> |
8871 | ||
8872 | * Makefile.in: Remove obsolete code. | |
8873 | ||
a1358604 DJ |
8874 | 2002-11-20 Daniel Jacobowitz <drow@mvista.com> |
8875 | ||
8876 | * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of | |
8877 | defined(PT_FPR0_HI). | |
8878 | ||
23ce3b1c DJ |
8879 | 2002-11-17 Stuart Hughes <seh@zee2.com> |
8880 | ||
8881 | * linux-arm-low.c (arm_num_regs): Increase. | |
8882 | (arm_regmap): Include status register. | |
8883 | ||
8884 | 2002-11-17 Daniel Jacobowitz <drow@mvista.com> | |
8885 | ||
8886 | * linux-low.c (register_addr): Remove incorrect -1 check. | |
8887 | ||
a9fa9f7d DJ |
8888 | 2002-08-29 Daniel Jacobowitz <drow@mvista.com> |
8889 | ||
8890 | * linux-low.c (linux_create_inferior): Call setpgid. Return | |
8891 | the new PID. | |
8892 | (unstopped_p, linux_signal_pid): Remove. | |
8893 | (linux_target_ops): Remove linux_signal_pid. | |
8894 | * remote-utils.c (putpkt, input_interrupt): Use signal_pid | |
8895 | global instead of target method. | |
8896 | * target.h (struct target_ops): Remove signal_pid. Update comment | |
8897 | for create_inferior. | |
8898 | * server.c (signal_pid): New variable. | |
8899 | (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in | |
4b8dad4a | 8900 | gdbserver. Set the child to be the foreground process group. |
a9fa9f7d DJ |
8901 | (attach_inferior): Set signal_pid. |
8902 | ||
17574093 DJ |
8903 | 2002-08-23 Daniel Jacobowitz <drow@mvista.com> |
8904 | ||
8905 | * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2. | |
8906 | ||
8907 | 2002-08-20 Jim Blandy <jimb@redhat.com> | |
8908 | ||
8909 | * Makefile.in (LDFLAGS): Allow the configure script to establish a | |
8910 | default for this. | |
8911 | ||
8912 | 2002-08-01 Andrew Cagney <cagney@redhat.com> | |
8913 | ||
8914 | * Makefile.in: Make chill references obsolete. | |
8915 | ||
8916 | 2002-07-24 Kevin Buettner <kevinb@redhat.com> | |
8917 | ||
8918 | * configure.in (unistd.h): Add to AC_CHECK_HEADERS list. | |
8919 | * configure: Regenerate. | |
8920 | * config.in: Regenerate. | |
8921 | ||
8922 | 2002-07-09 David O'Brien <obrien@FreeBSD.org> | |
8923 | ||
8924 | * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include. | |
8925 | (perror_with_name, remote_close, remote_open, expect, play): Static. | |
8926 | ||
8927 | 2002-07-04 Michal Ludvig <mludvig@suse.cz> | |
8928 | ||
4b8dad4a | 8929 | * linux-x86-64-low.c (x86_64_regmap): Make it an array of |
17574093 DJ |
8930 | byte offsets instead of an array of indexes. |
8931 | (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const. | |
8932 | ||
8933 | 2002-06-13 Daniel Jacobowitz <drow@mvista.com> | |
8934 | ||
8935 | * regcache.c: Add comment. | |
8936 | ||
8937 | 2002-06-11 Daniel Jacobowitz <drow@mvista.com> | |
8938 | ||
8939 | * thread-db.c: New file. | |
8940 | * proc-service.c: New file. | |
8941 | * acinclude.m4: New file. | |
8942 | * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h, | |
8943 | proc-service.o, and thread-db.o. | |
8944 | (linux-low.o): Add USE_THREAD_DB. | |
8945 | * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T, | |
8946 | HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN. | |
8947 | * aclocal.m4: Regenerated. | |
8948 | * config.in: Regenerated. | |
8949 | * configure: Regenerated. | |
8950 | * configure.in: Check for proc_service.h, sys/procfs.h, | |
8951 | thread_db.h, and linux/elf.h headrs. | |
8952 | Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and | |
8953 | PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB. | |
8954 | Check for -lthread_db and thread support. | |
8955 | * configure.srv: Enable thread_db support for ARM, i386, MIPS, | |
8956 | PowerPC, and SuperH. | |
8957 | * i387-fp.c: Constify arguments. | |
8958 | * i387-fp.h: Likewise. | |
8959 | * inferiors.c: (struct thread_info): Renamed from | |
8960 | `struct inferior_info'. Remove PID member. Use generic inferior | |
8961 | list header. All uses updated. | |
8962 | (inferiors, signal_pid): Removed. | |
8963 | (all_threads): New variable. | |
8964 | (get_thread): Define. | |
8965 | (add_inferior_to_list): New function. | |
8966 | (for_each_inferior): New function. | |
8967 | (change_inferior_id): New function. | |
8968 | (add_inferior): Removed. | |
8969 | (remove_inferior): New function. | |
8970 | (add_thread): New function. | |
8971 | (free_one_thread): New function. | |
8972 | (remove_thread): New function. | |
8973 | (clear_inferiors): Use for_each_inferior and free_one_thread. | |
8974 | (find_inferior): New function. | |
8975 | (find_inferior_id): New function. | |
8976 | (inferior_target_data): Update argument type. | |
8977 | (set_inferior_target_data): Likewise. | |
8978 | (inferior_regcache_data): Likewise. | |
8979 | (set_inferior_regcache_data): Likewise. | |
8980 | * linux-low.c (linux_bp_reinsert): Remove. | |
8981 | (all_processes, stopping_threads, using_thrads) | |
8982 | (struct pending_signals, debug_threads, pid_of): New. | |
8983 | (inferior_pid): Replace with macro. | |
8984 | (struct inferior_linux_data): Remove. | |
8985 | (get_stop_pc, add_process): New functions. | |
8986 | (linux_create_inferior): Restore SIGRTMIN+1 before calling exec. | |
8987 | Use add_process and add_thread. | |
8988 | (linux_attach_lwp): New function, based on old linux_attach. Use | |
8989 | add_process and add_thread. Set stop_expected for new threads. | |
8990 | (linux_attach): New function. | |
8991 | (linux_kill_one_process): New function. | |
8992 | (linux_kill): Kill all LWPs. | |
8993 | (linux_thread_alive): Use find_inferior_id. | |
8994 | (check_removed_breakpoints, status_pending_p): New functions. | |
8995 | (linux_wait_for_process): Renamed from linux_wait_for_one_inferior. | |
8996 | Update. Use WNOHANG. Wait for cloned processes also. Update process | |
8997 | struct for the found process. | |
8998 | (linux_wait_for_event): New function. | |
8999 | (linux_wait): Use it. Support LWPs. | |
9000 | (send_sigstop, wait_for_sigstop, stop_all_processes) | |
9001 | (linux_resume_one_process, linux_continue_one_process): New functions. | |
9002 | (linux_resume): Support LWPs. | |
9003 | (REGISTER_RAW_SIZE): Remove. | |
9004 | (fetch_register): Use register_size instead. Call supply_register. | |
9005 | (usr_store_inferior_registers): Likewise. Call collect_register. | |
9006 | Fix recursive case. | |
9007 | (regsets_fetch_inferior_registers): Improve error message. | |
9008 | (regsets_store_inferior_registers): Add debugging. | |
9009 | (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB. | |
9010 | (unstopped_p, linux_signal_pid): New functions. | |
9011 | (linux_target_ops): Add linux_signal_pid. | |
9012 | (linux_init_signals): New function. | |
9013 | (initialize_low): Call it. Initialize using_threads. | |
9014 | * regcache.c (inferior_regcache_data): Add valid | |
9015 | flag. | |
9016 | (get_regcache): Fetch registers lazily. Add fetch argument | |
9017 | and update all callers. | |
9018 | (regcache_invalidate_one, regcache_invalidate): New | |
9019 | functions. | |
9020 | (new_register_cache): Renamed from create_register_cache. | |
9021 | Return the new regcache. | |
9022 | (free_register_cache): Change argument to a void *. | |
9023 | (registers_to_string, registers_from_string): Call get_regcache | |
9024 | with fetch flag set. | |
9025 | (register_data): Make static. Pass fetch flag to get_regcache. | |
9026 | (supply_register): Call get_regcache with fetch flag clear. | |
9027 | (collect_register): Call get_regcache with fetch flag set. | |
9028 | (collect_register_as_string): New function. | |
9029 | * regcache.h: Update. | |
9030 | * remote-utils.c (putpkt): Flush after debug output and use | |
9031 | stderr. | |
9032 | Handle input interrupts while waiting for an ACK. | |
9033 | (input_interrupt): Use signal_pid method. | |
9034 | (getpkt): Flush after debug output and use stderr. | |
9035 | (outreg): Use collect_register_as_string. | |
9036 | (new_thread_notify, dead_thread_notify): New functions. | |
9037 | (prepare_resume_reply): Check using_threads. Set thread_from_wait | |
9038 | and general_thread. | |
9039 | (look_up_one_symbol): Flush after debug output. | |
9040 | * server.c (step_thread, server_waiting): New variables. | |
9041 | (start_inferior): Don't use signal_pid. Update call to mywait. | |
9042 | (attach_inferior): Update call to mywait. | |
9043 | (handle_query): Handle qfThreadInfo and qsThreadInfo. | |
9044 | (main): Don't fetch/store registers explicitly. Use | |
9045 | set_desired_inferior. Support proposed ``Hs'' packet. Update | |
9046 | calls to mywait. | |
9047 | * server.h: Update. | |
9048 | (struct inferior_list, struct_inferior_list_entry): New. | |
9049 | * target.c (set_desired_inferior): New. | |
9050 | (write_inferior_memory): Constify. | |
9051 | (mywait): New function. | |
9052 | * target.h: Update. | |
9053 | (struct target_ops): New signal_pid method. | |
9054 | (mywait): Removed macro, added prototype. | |
9055 | ||
9056 | * linux-low.h (regset_func): Removed. | |
9057 | (regset_fill_func, regset_store_func): New. | |
9058 | (enum regset_type): New. | |
9059 | (struct regset_info): Add type field. Use new operation types. | |
9060 | (struct linux_target_ops): stop_pc renamed to get_pc. | |
9061 | Add decr_pc_after_break and breakpoint_at. | |
9062 | (get_process, get_thread_proess, get_process_thread) | |
9063 | (strut process_info, all_processes, linux_attach_lwp) | |
9064 | (thread_db_init): New. | |
9065 | ||
9066 | * linux-arm-low.c (arm_get_pc, arm_set_pc, | |
9067 | arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New. | |
9068 | (the_low_target): Add new members. | |
9069 | * linux-i386-low.c (i386_store_gregset, i386_store_fpregset) | |
9070 | (i386_store_fpxregset): Constify. | |
9071 | (target_regsets): Add new kind identifier. | |
9072 | (i386_get_pc): Renamed from i386_stop_pc. Simplify. | |
9073 | (i386_set_pc): Add debugging. | |
9074 | (i386_breakpoint_at): New function. | |
9075 | (the_low_target): Add new members. | |
9076 | * linux-mips-low.c (mips_get_pc, mips_set_pc) | |
9077 | (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr) | |
9078 | (mips_breakpoint_at): New. | |
9079 | (the_low_target): Add new members. | |
9080 | * linux-ppc-low.c (ppc_get_pc, ppc_set_pc) | |
9081 | (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New. | |
9082 | (the_low_target): Add new members. | |
9083 | * linux-sh-low.c (sh_get_pc, sh_set_pc) | |
9084 | (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New. | |
9085 | (the_low_target): Add new members. | |
9086 | * linux-x86-64-low.c (target_regsets): Add new kind | |
9087 | identifier. | |
9088 | ||
9089 | 2002-05-15 Daniel Jacobowitz <drow@mvista.com> | |
9090 | ||
9091 | From Martin Pool <mbp@samba.org>: | |
9092 | * server.c (gdbserver_usage): New function. | |
9093 | (main): Call it. | |
9094 | ||
9095 | 2002-05-14 Daniel Jacobowitz <drow@mvista.com> | |
9096 | ||
9097 | * mem-break.c (reinsert_breakpoint_by_bp): Correct typo | |
9098 | stop_at -> stop_pc. | |
9099 | ||
9100 | 2002-05-04 Andrew Cagney <ac131313@redhat.com> | |
9101 | ||
9102 | * Makefile.in: Remove obsolete code. | |
9103 | ||
9104 | 2002-04-24 Michal Ludvig <mludvig@suse.cz> | |
9105 | ||
9106 | * linux-low.c (regsets_fetch_inferior_registers), | |
9107 | (regsets_store_inferior_registers): Removed cast to int from | |
9108 | ptrace() calls. | |
9109 | * regcache.h: Added declaration of struct inferior_info. | |
9110 | ||
9111 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> | |
9112 | ||
9113 | * inferiors.c (struct inferior_info): Add regcache_data. | |
9114 | (add_inferior): Call create_register_cache. | |
9115 | (clear_inferiors): Call free_register_cache. | |
9116 | (inferior_regcache_data, set_inferior_regcache_data): New functions. | |
9117 | * regcache.c (struct inferior_regcache_data): New. | |
9118 | (registers): Remove. | |
9119 | (get_regcache): New function. | |
9120 | (create_register_cache, free_register_cache): New functions. | |
9121 | (set_register_cache): Don't initialize the register cache here. | |
9122 | (registers_to_string, registers_from_string, register_data): Call | |
9123 | get_regcache. | |
9124 | * regcache.h: Add prototypes. | |
9125 | * server.h: Likewise. | |
9126 | ||
9127 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> | |
9128 | ||
9129 | * mem-break.c: New file. | |
9130 | * mem-break.h: New file. | |
9131 | * Makefile.in: Add mem-break.o rule; update server.h | |
9132 | dependencies. | |
9133 | * inferiors.c (struct inferior_info): Add target_data | |
9134 | member. | |
9135 | (clear_inferiors): Free target_data member if set. | |
9136 | (inferior_target_data, set_inferior_target_data): New functions. | |
9137 | * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len) | |
9138 | (i386_stop_pc, i386_set_pc): New. Add to the_low_target. | |
9139 | * linux-low.c (linux_bp_reinsert): New variable. | |
9140 | (struct inferior_linux_data): New. | |
9141 | (linux_create_inferior): Use set_inferior_target_data. | |
9142 | (linux_attach): Likewise. Call add_inferior. | |
9143 | (linux_wait_for_one_inferior): New function. | |
9144 | (linux_wait): Call it. | |
9145 | (linux_write_memory): Add const. | |
9146 | (initialize_low): Call set_breakpoint_data. | |
9147 | * linux-low.h (struct linux_target_ops): Add breakpoint | |
9148 | handling members. | |
9149 | * server.c (attach_inferior): Remove extra add_inferior | |
9150 | call. | |
9151 | * server.h: Include mem-break.h. Update inferior.c | |
9152 | prototypes. | |
9153 | * target.c (read_inferior_memory) | |
9154 | (write_inferior_memory): New functions. | |
9155 | * target.h (read_inferior_memory) | |
9156 | (write_inferior_memory): Change macros to prototypes. | |
9157 | (struct target_ops): Update comments. Add const to write_memory | |
9158 | definition. | |
9159 | ||
9160 | 2002-04-11 Daniel Jacobowitz <drow@mvista.com> | |
9161 | ||
9162 | * linux-low.c (usr_store_inferior_registers): Support | |
9163 | registers which are allowed to fail to store. | |
9164 | * linux-low.h (linux_target_ops): Likewise. | |
9165 | * linux-ppc-low.c (ppc_regmap): Support FPSCR. | |
9166 | (ppc_cannot_store_register): FPSCR may not be storable. | |
9167 | ||
9168 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
9169 | ||
9170 | * server.h: Include <string.h> if HAVE_STRING_H. | |
9171 | * ChangeLog: Correct paths in last ChangeLog entry. | |
9172 | ||
9173 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
9174 | ||
9175 | * linux-low.h: Remove obsolete prototypes. | |
9176 | (struct linux_target_ops): New. | |
9177 | (extern the_low_target): New. | |
9178 | * linux-low.c (num_regs, regmap): Remove declarations. | |
9179 | (register_addr): Use the_low_target explicitly. | |
9180 | (fetch_register): Likewise. | |
9181 | (usr_fetch_inferior_registers): Likewise. | |
9182 | (usr_store_inferior_registers): Likewise. | |
9183 | * linux-arm-low.c (num_regs): Remove. | |
9184 | (arm_num_regs): Define. | |
9185 | (arm_regmap): Renamed from regmap, made static. | |
9186 | (arm_cannot_fetch_register): Renamed from cannot_fetch_register, | |
9187 | made static. | |
9188 | (arm_cannot_store_register): Renamed from cannot_store_register, | |
9189 | made static. | |
9190 | (the_low_target): New. | |
9191 | * linux-i386-low.c (num_regs): Remove. | |
9192 | (i386_num_regs): Define. | |
9193 | (i386_regmap): Renamed from regmap, made static. | |
9194 | (i386_cannot_fetch_register): Renamed from cannot_fetch_register, | |
9195 | made static. | |
9196 | (i386_cannot_store_register): Renamed from cannot_store_register, | |
9197 | made static. | |
9198 | (the_low_target): New. | |
9199 | * linux-ia64-low.c (num_regs): Remove. | |
9200 | (ia64_num_regs): Define. | |
9201 | (ia64_regmap): Renamed from regmap, made static. | |
9202 | (ia64_cannot_fetch_register): Renamed from cannot_fetch_register, | |
9203 | made static. | |
9204 | (ia64_cannot_store_register): Renamed from cannot_store_register, | |
9205 | made static. | |
9206 | (the_low_target): New. | |
9207 | * linux-m68k-low.c (num_regs): Remove. | |
9208 | (m68k_num_regs): Define. | |
9209 | (m68k_regmap): Renamed from regmap, made static. | |
9210 | (m68k_cannot_fetch_register): Renamed from cannot_fetch_register, | |
9211 | made static. | |
9212 | (m68k_cannot_store_register): Renamed from cannot_store_register, | |
9213 | made static. | |
9214 | (the_low_target): New. | |
9215 | * linux-mips-low.c (num_regs): Remove. | |
9216 | (mips_num_regs): Define. | |
9217 | (mips_regmap): Renamed from regmap, made static. | |
9218 | (mips_cannot_fetch_register): Renamed from cannot_fetch_register, | |
9219 | made static. | |
9220 | (mips_cannot_store_register): Renamed from cannot_store_register, | |
9221 | made static. | |
9222 | (the_low_target): New. | |
9223 | * linux-ppc-low.c (num_regs): Remove. | |
9224 | (ppc_num_regs): Define. | |
9225 | (ppc_regmap): Renamed from regmap, made static. | |
9226 | (ppc_cannot_fetch_register): Renamed from cannot_fetch_register, | |
9227 | made static. | |
9228 | (ppc_cannot_store_register): Renamed from cannot_store_register, | |
9229 | made static. | |
9230 | (the_low_target): New. | |
9231 | * linux-s390-low.c (num_regs): Remove. | |
9232 | (s390_num_regs): Define. | |
9233 | (s390_regmap): Renamed from regmap, made static. | |
9234 | (s390_cannot_fetch_register): Renamed from cannot_fetch_register, | |
9235 | made static. | |
9236 | (s390_cannot_store_register): Renamed from cannot_store_register, | |
9237 | made static. | |
9238 | (the_low_target): New. | |
9239 | * linux-sh-low.c (num_regs): Remove. | |
9240 | (sh_num_regs): Define. | |
9241 | (sh_regmap): Renamed from regmap, made static. | |
9242 | (sh_cannot_fetch_register): Renamed from cannot_fetch_register, | |
9243 | made static. | |
9244 | (sh_cannot_store_register): Renamed from cannot_store_register, | |
9245 | made static. | |
9246 | (the_low_target): New. | |
9247 | * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap. | |
9248 | (the_low_target): New. | |
9249 | ||
9250 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
9251 | ||
9252 | * Makefile.in: Add stamp-h target. | |
9253 | * configure.in: Create stamp-h. | |
9254 | * configure: Regenerated. | |
9255 | ||
9256 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
9257 | ||
9258 | * inferiors.c: New file. | |
9259 | * target.c: New file. | |
9260 | * target.h: New file. | |
9261 | * Makefile.in: Add target.o and inferiors.o. Update | |
9262 | dependencies. | |
9263 | * linux-low.c (inferior_pid): New static variable, | |
9264 | moved from server.c. | |
9265 | (linux_create_inferior): Renamed from create_inferior. | |
9266 | Call add_inferior. Return 0 on success instead of a PID. | |
9267 | (linux_attach): Renamed from myattach. | |
9268 | (linux_kill): Renamed from kill_inferior. Call clear_inferiors (). | |
9269 | (linux_thread_alive): Renamed from mythread_alive. | |
9270 | (linux_wait): Renamed from mywait. Call clear_inferiors () if the | |
9271 | child dies. | |
9272 | (linux_resume): Renamed from myresume. Add missing ``return 0''. | |
9273 | (regsets_store_inferior_registers): Correct error message. | |
9274 | Add missing ``return 0''. | |
9275 | (linux_fetch_registers): Renamed from fetch_inferior_registers. | |
9276 | (linux_store_registers): Renamed from store_inferior_registers. | |
9277 | (linux_read_memory): Renamed from read_inferior_memory. | |
9278 | (linux_write_memory): Renamed from write_inferior_memory. | |
9279 | (linux_target_ops): New structure. | |
9280 | (initialize_low): Call set_target_ops (). | |
9281 | * remote-utils.c (unhexify): New function. | |
9282 | (hexify): New function. | |
9283 | (input_interrupt): Send signals to ``signal_pid''. | |
9284 | * server.c (inferior_pid): Remove. | |
9285 | (start_inferior): Update create_inferior call. | |
9286 | (attach_inferior): Call add_inferior. | |
9287 | (handle_query): New function. | |
9288 | (main): Call handle_query for `q' packets. | |
9289 | * server.h: Include "target.h". Remove obsolete prototypes. | |
9290 | Add prototypes for "inferiors.c", "target.c", hexify, and unhexify. | |
9291 | ||
9292 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
9293 | ||
9294 | * Makefile.in: Add WARN_CFLAGS. Update configury | |
9295 | dependencies. | |
9296 | * configure.in: Check for <string.h> | |
9297 | * configure: Regenerate. | |
9298 | * config.in: Regenerate. | |
9299 | * gdbreplay.c: Include needed system headers. | |
9300 | (remote_open): Remove strchr prototype. | |
9301 | * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS. | |
9302 | * regcache.c (supply_register): Change buf argument to const void *. | |
9303 | (supply_register_by_name): Likewise. | |
9304 | (collect_register): Change buf argument to void *. | |
9305 | (collect_register_by_name): Likewise. | |
9306 | * regcache.h: Add missing prototypes. | |
9307 | * remote-utils.c: Include <arpa/inet.h> for inet_ntoa. | |
9308 | * server.c (handle_query): New function. | |
9309 | (attached): New static variable, moved out of main. | |
9310 | (main): Quiet longjmp clobber warnings. | |
9311 | * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes. | |
9312 | * utils.c (error): Remove NORETURN. | |
9313 | (fatal): Likewise. |