Commit | Line | Data |
---|---|---|
87ce2a04 DE |
1 | 2014-01-22 Doug Evans <dje@google.com> |
2 | ||
3 | * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday. | |
4 | * configure: Regenerate. | |
5 | * config.in: Regenerate. | |
6 | * Makefile.in (SFILES): Add debug.c. | |
7 | (OBS): Add debug.o. | |
8 | * debug.c: New file. | |
9 | * debug.h: New file. | |
10 | * linux-aarch64-low.c (*): Update all debugging printfs to use | |
11 | debug_printf instead of fprintf. | |
12 | * linux-arm-low.c (*): Ditto. | |
13 | * linux-cris-low.c (*): Ditto. | |
14 | * linux-crisv32-low.c (*): Ditto. | |
15 | * linux-m32r-low.c (*): Ditto. | |
16 | * linux-sparc-low.c (*): Ditto. | |
17 | * linux-x86.c (*): Ditto. | |
18 | * linux-low.c (*): Ditto. | |
19 | (linux_wait_1): Add calls to debug_enter, debug_exit. | |
20 | (linux_wait): Remove redundant debugging printf. | |
21 | (stop_all_lwps): Add calls to debug_enter, debug_exit. | |
22 | (linux_resume, unstop_all_lwps): Ditto. | |
23 | * mem-break.c (*): Update all debugging printfs to use | |
24 | debug_printf instead of fprintf. | |
25 | * remote-utils.c (*): Ditto. | |
26 | * thread-db.c (*): Ditto. | |
27 | * server.c #include <ctype.h>, "gdb_vecs.h". | |
28 | (debug_threads): Moved to debug.c. | |
29 | (*): Update all debugging printfs to use debug_printf instead of | |
30 | fprintf. | |
31 | (start_inferior): Replace call to fflush with call to debug_flush. | |
32 | (monitor_show_help): Mention set debug-format. | |
33 | (parse_debug_format_options): New function. | |
34 | (handle_monitor_command): Handle "monitor set debug-format". | |
35 | (gdbserver_usage): Mention --debug-format. | |
36 | (main): Parse --debug-format. | |
37 | * server.h (debug_threads): Declaration moved to debug.h. | |
38 | #include "debug.h". | |
39 | * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of | |
40 | trace_debug_1 that uses debug_printf. | |
41 | (tracepoint_look_up_symbols): Update all debugging printfs to use | |
42 | debug_printf instead of fprintf. | |
43 | ||
e671835b BS |
44 | 2014-01-20 Baruch Siach <baruch@tkos.co.il> |
45 | ||
46 | * linux-xtensa-low.c: Include asm/ptrace.h instead of | |
47 | sys/ptrace.h. | |
48 | ||
b5737fa9 PA |
49 | 2014-01-17 Pedro Alves <palves@redhat.com> |
50 | ||
ea38d2a9 | 51 | PR build/16445 |
c7faa97a PA |
52 | * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is |
53 | defined after including gdb_proc_service.h. | |
b5737fa9 | 54 | |
40ed484e DE |
55 | 2014-01-16 Doug Evans <dje@google.com> |
56 | ||
57 | * dll.c (UNSPECIFIED_CORE_ADDR): New macro. | |
58 | (match_dll): Use it. | |
59 | ||
969c39fb MM |
60 | 2014-01-16 Markus Metzger <markus.t.metzger@intel.com> |
61 | ||
62 | * target.h (target_ops) <read_btrace>: Change parameters and | |
63 | return type to allow error reporting. | |
64 | * server.c (handle_qxfer_btrace): Support delta reads. Pass | |
65 | trace reading errors on. | |
66 | * linux-low.c (linux_low_read_btrace): Pass trace reading | |
67 | errors on. | |
68 | (linux_low_disable_btrace): New. | |
69 | ||
ab7f45ba DE |
70 | 2014-01-15 Doug Evans <dje@google.com> |
71 | ||
72 | * inferiors.c (thread_id_to_gdb_id): Delete. | |
73 | * inferiors.h (thread_id_to_gdb_id): Delete. | |
74 | ||
66af0f44 EZ |
75 | 2014-01-13 Eli Zaretskii <eliz@gnu.org> |
76 | ||
77 | * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from | |
78 | "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC | |
79 | versions. | |
80 | ||
9939e131 PA |
81 | 2014-01-08 Pedro Alves <palves@redhat.com> |
82 | ||
83 | * server.c (handle_status): Don't discard previous queued stop | |
84 | replies or thread's pending status here. | |
85 | (main) <disconnection>: Do it here instead. | |
86 | ||
b7ea362b PA |
87 | 2014-01-08 Pedro Alves <palves@redhat.com> |
88 | ||
89 | * gdbthread.h (struct thread_info) <status_pending_p>: New field. | |
90 | * server.c (visit_actioned_threads, handle_pending_status): New | |
91 | function. | |
92 | (handle_v_cont): Factor out parts to ... | |
93 | (resume): ... this new function. If in all-stop, and a thread | |
94 | being resumed has a pending status, report it without actually | |
95 | resuming. | |
96 | (myresume): Adjust to use the new 'resume' function. | |
97 | (clear_pending_status_callback, set_pending_status_callback) | |
98 | (find_status_pending_thread_callback): New functions. | |
99 | (handle_status): Handle the case of multiple threads having | |
100 | interesting statuses to report. Report threads' real last signal | |
101 | instead of always reporting GDB_SIGNAL_TRAP. Look for a thread | |
102 | with an interesting thread to report the status for, instead of | |
103 | always reporting the status of the first thread. | |
104 | ||
28498c42 JB |
105 | 2014-01-01 Joel Brobecker <brobecker@adacore.com> |
106 | ||
107 | * gdbserver.c (gdbserver_version): Set copyright year to 2014. | |
108 | * gdbreplay.c (gdbreplay_version): Likewise. | |
109 | ||
f45c82da YZ |
110 | 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com> |
111 | ||
112 | * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set | |
113 | iov.iov_len with the real length in use. | |
114 | ||
379a5e2d JB |
115 | 2013-12-13 Joel Brobecker <brobecker@adacore.com> |
116 | ||
117 | * Makefile.in (safe-ctype.o, lbasename.o): New rules. | |
118 | * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj | |
119 | for all targets that use win32-low.c. | |
120 | * win32-low.c (win32_ensure_ntdll_loaded): New function. | |
121 | (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded. | |
122 | ||
4210d83e PA |
123 | 2013-12-13 Pedro Alves <palves@redhat.com> |
124 | ||
125 | * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED | |
126 | if equal to TARGET_WAITKIND_LOADED. | |
127 | * win32-low.c (cached_status): New static global. | |
128 | (win32_wait): Add declaration. | |
129 | (do_initial_child_stuff): Flush all initial pending debug events | |
130 | up to the initial breakpoint. | |
131 | (win32_wait): If CACHED_STATUS was set, return that instead | |
132 | of doing a real wait. Remove the code resuming the execution | |
133 | of the inferior after receiving a TARGET_WAITKIND_LOADED event | |
134 | during the initial phase. Also remove the code changing | |
135 | OURSTATUS->KIND from TARGET_WAITKIND_LOADED to | |
136 | TARGET_WAITKIND_STOPPED. | |
137 | ||
e7f0d979 YQ |
138 | 2013-12-11 Yao Qi <yao@codesourcery.com> |
139 | ||
140 | * notif.c (handle_notif_ack): Return 0 if no notification | |
141 | matches. | |
142 | ||
ebcf782c DE |
143 | 2013-11-20 Doug Evans <dje@google.com> |
144 | ||
145 | * linux-low.c (linux_set_resume_request): Fix comment. | |
146 | ||
20ad9378 DE |
147 | 2013-11-20 Doug Evans <dje@google.com> |
148 | ||
149 | * linux-low.c (resume_status_pending_p): Tweak comment. | |
150 | ||
a196ebeb WT |
151 | 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com> |
152 | ||
153 | * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c, | |
154 | amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation. | |
155 | * configure.srv (srv_i386_regobj): Add i386-mpx.o. | |
156 | (srv_i386_linux_regobj): Add i386-mpx-linux.o. | |
157 | (srv_amd64_regobj): Add amd64-mpx.o. | |
158 | (srv_amd64_linux_regobj): Add amd64-mpx-linux.o. | |
159 | (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml. | |
160 | (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml. | |
161 | * i387-fp.c (num_pl_bnd_register) Added constant. | |
162 | (num_pl_bnd_cfg_registers) Added constant. | |
163 | (struct i387_xsave) Added reserved area and MPX fields. | |
164 | (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX. | |
165 | * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new | |
166 | function. | |
167 | (tdesc_i386_mpx_linux): Add MPX amd64 target. | |
168 | (init_registers_amd64_mpx_linux): Declare new function. | |
169 | (tdesc_amd64_mpx_linux): Add MPX amd64 target. | |
170 | (x86_64_regmap): Add MPX registers. | |
171 | (x86_linux_read_description): Add MPX case. | |
172 | (initialize_low_arch): Initialize MPX targets. | |
173 | ||
0080a2f6 TT |
174 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
175 | ||
176 | * configure: Rebuild. | |
177 | * configure.ac: Don't check for stdlib.h. | |
178 | * gdbreplay.c: Unconditionally include stdlib.h. | |
179 | ||
2978b111 TT |
180 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
181 | ||
182 | * config.in: Rebuild. | |
183 | * configure: Rebuild. | |
184 | * configure.ac: Don't use AC_HEADER_DIRENT. | |
185 | ||
a3d08894 TT |
186 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
187 | ||
188 | * server.h: Don't check HAVE_STRING_H. | |
189 | * gdbreplay.c: Don't check HAVE_STRING_H. | |
190 | * configure: Rebuild. | |
191 | ||
0a5dd17d TT |
192 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
193 | ||
194 | * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against | |
195 | LIBGNU. | |
196 | ||
1bd2f0ba TT |
197 | 2013-11-08 Tom Tromey <tromey@redhat.com> |
198 | ||
199 | * configure, config.in: Rebuild. | |
200 | * configure.ac: Remove unused configury. | |
201 | ||
3266f10b TT |
202 | 2013-11-08 Tom Tromey <tromey@redhat.com> |
203 | ||
204 | * acinclude.m4: Include common.m4, codeset.m4. | |
205 | * configure, config.in: Rebuild. | |
206 | * configure.ac: Use GDB_AC_COMMON. | |
207 | ||
6682d959 AA |
208 | 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com> |
209 | ||
210 | * linux-s390-low.c (HWCAP_S390_TE): New define. | |
211 | (s390_arch_setup): Consider the TE field in the HWCAP for | |
212 | determining 'have_regset_tdb'. | |
213 | ||
fd0a4d76 SDJ |
214 | 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com> |
215 | ||
216 | PR gdb/16014 | |
217 | * tracepoint.c (download_tracepoint_1): Remove unnecessary double | |
218 | call to sizeof. | |
219 | ||
1a3d890b PA |
220 | 2013-10-02 Pedro Alves <palves@redhat.com> |
221 | ||
222 | * server.c (process_serial_event): Don't output "GDBserver | |
223 | exiting" if GDB is connected through stdio. | |
224 | * target.c (mywait): Likewise, be silent if GDB is connected | |
225 | through stdio. | |
226 | ||
97ad4581 JB |
227 | 2013-10-01 Joel Brobecker <brobecker@adacore.com> |
228 | ||
229 | * lynx-low.c (lynx_add_threads_after_attach): New function. | |
230 | (lynx_attach): Remove call to add_thread. Add call to | |
231 | lynx_add_threads_after_attach instead. | |
232 | ||
5b4e221c MF |
233 | 2013-09-28 Mike Frysinger <vapier@gentoo.org> |
234 | ||
235 | * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h | |
236 | * config.in, configure: Regenerated. | |
237 | ||
ee47b2f8 YQ |
238 | 2013-09-18 Yao Qi <yao@codesourcery.com> |
239 | ||
240 | PR server/15959 | |
241 | * server.c (start_inferior): Clear 'resume_info'. | |
242 | ||
d6707650 | 243 | 2013-09-16 Jiong Wang <jiwang@tilera.com> |
0f63d4db | 244 | |
d6707650 JW |
245 | * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit |
246 | for each register. | |
247 | ||
9243dd0e | 248 | 2013-09-16 Jiong Wang <jiwang@tilera.com> |
0f63d4db | 249 | |
9243dd0e JW |
250 | * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add |
251 | linux-tile-low.o to srv_tgtobj. | |
252 | ||
c623a6ef WN |
253 | 2013-09-16 Will Newton <will.newton@linaro.org> |
254 | ||
255 | * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero | |
256 | out regs. | |
257 | ||
fb71d39e PA |
258 | 2013-09-06 Pedro Alves <palves@redhat.com> |
259 | ||
260 | * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h) | |
261 | (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h) | |
262 | (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h) | |
263 | (server_h, gdbthread_h, linux_low_h, linux_ptrace_h) | |
264 | (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h) | |
265 | (mips_linux_watch_h, i386_low_h, win32_low_h): Delete. | |
266 | ||
8e7e9910 PA |
267 | 2013-09-06 Pedro Alves <palves@redhat.com> |
268 | ||
269 | * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove | |
270 | explicit header dependencies and use $COMPILE/$POSTCOMPILE. | |
271 | ||
7c3a12ca PA |
272 | 2013-09-06 Pedro Alves <palves@redhat.com> |
273 | ||
274 | * linux-amd64-ipa.c: Include tracepoint.h. | |
275 | * linux-i386-ipa.c: Include tracepoint.h. | |
276 | ||
8eb3d7b6 RW |
277 | 2013-09-06 Ricard Wanderlof <ricardw@axis.com> |
278 | ||
279 | * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro. | |
280 | (ps_get_thread_area): New function. | |
281 | ||
eddddb9d RW |
282 | 2013-09-06 Ricard Wanderlof <ricardw@axis.com> |
283 | ||
284 | * linux-crisv32-low.c (elf_gregset_t): Delete typedef. | |
285 | (initialize_low_arch): Call init_registers_crisv32 rather than | |
286 | init_register_crisv32. | |
287 | ||
533b0600 PA |
288 | 2013-09-05 Pedro Alves <palves@redhat.com> |
289 | ||
290 | * server.h (handle_vFile, hostio_last_error_from_errno): Move | |
291 | to ... | |
292 | * hostio.h: ... this new file. | |
293 | * hostio.c, server.c, linux-low.c, nto-low.c, spu-low, | |
294 | win32-low.c: Include hostio.h. | |
295 | ||
0ce3d3b5 PA |
296 | 2013-09-05 Pedro Alves <palves@redhat.com> |
297 | ||
298 | * server.h (gdb_client_data, handler_func, callback_handler_func) | |
299 | (delete_file_handler, add_file_handler, append_callback_event) | |
300 | (delete_callback_event, start_event_loop, initialize_event_loop): | |
301 | Move to event-loop.h and include it. | |
302 | * event-loop.h: New file. | |
303 | ||
799cdc37 PA |
304 | 2013-09-05 Pedro Alves <palves@redhat.com> |
305 | ||
306 | * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h". | |
307 | * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls) | |
308 | (loaded_dll, unloaded_dll): Move to ... | |
309 | * dll.h: ... this new file. | |
310 | * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h". | |
311 | ||
6a6bbd9d PA |
312 | 2013-09-05 Pedro Alves <palves@redhat.com> |
313 | ||
314 | * server.h (current_process, get_thread_process, all_processes) | |
315 | (add_inferior_to_list, for_each_inferior, current_inferior) | |
316 | (remove_inferior, add_process, remove_process, find_process_pid) | |
317 | (have_started_inferiors_p, have_attached_inferiors_p) | |
318 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id) | |
319 | (clear_inferiors, find_inferior, find_inferior_id) | |
320 | (inferior_target_data, set_inferior_target_data) | |
321 | (inferior_regcache_data, set_inferior_regcache_data): Move to | |
322 | inferiors.h, and include it. | |
323 | * inferiors.h: New file. | |
324 | ||
f699aaba PA |
325 | 2013-09-05 Pedro Alves <palves@redhat.com> |
326 | ||
327 | * server.h (struct emit_ops, current_insn_ptr, emit_error): | |
328 | Move ... | |
329 | * ax.h: ... here. | |
330 | ||
c144c7a0 PA |
331 | 2013-09-05 Pedro Alves <palves@redhat.com> |
332 | ||
333 | * ax.c, linux-low.c, linux-x86-low.c, server.c: Include | |
334 | tracepoint.h. | |
335 | * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing) | |
336 | (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing | |
337 | (handle_tracepoint_general_set, handle_tracepoint_query) | |
338 | (tracepoint_finished_step, tracepoint_was_hit) | |
339 | (release_while_stepping_state_list, current_traceframe) | |
340 | (in_readonly_region, traceframe_read_mem) | |
341 | (fetch_traceframe_registers, traceframe_read_sdata) | |
342 | (traceframe_read_info, struct fast_tpoint_collect_status) | |
343 | (fast_tracepoint_collecting, force_unlock_trace_buffer) | |
344 | (handle_tracepoit_bkpts, initialize_low_tracepoint) | |
345 | (supply_fast_tracepoint_registers) | |
346 | (supply_static_tracepoint_registers, set_trampoline_buffer_space) | |
347 | (ipa_tdesc, claim_trampoline_space) | |
348 | (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close) | |
349 | (agent_mem_read, agent_get_trace_state_variable_value) | |
350 | (agent_set_trace_state_variable_value, agent_tsv_read) | |
351 | (agent_mem_read_string, get_raw_reg_func_addr) | |
352 | (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ... | |
353 | * tracepoint.h: ... this new file. | |
354 | ||
ff42e6ab PA |
355 | 2013-09-05 Pedro Alves <palves@redhat.com> |
356 | ||
357 | * server.h (perror_with_name, error, fatal, warning, paddress) | |
358 | (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and | |
359 | include it. | |
360 | * utils.h: New file. | |
361 | ||
541af0f4 PA |
362 | 2013-09-05 Pedro Alves <palves@redhat.com> |
363 | ||
364 | * server.h (remote_debug, noack_mode, transport_is_reliable) | |
365 | (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio) | |
366 | (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif) | |
367 | (getpkt, remote_prepare, remote_open, remote_close, write_ok) | |
368 | (write_enn, initialize_async_io, enable_async_io) | |
369 | (disable_async_io, check_remote_input_interrupt_request) | |
370 | (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify) | |
371 | (dead_thread_notify, prepare_resume_reply) | |
372 | (decode_address_to_semicolon, decode_address, decode_m_packet) | |
373 | (decode_M_packet, decode_X_packet, decode_xfer_write) | |
374 | (decode_search_memory_packet, unhexify, hexify) | |
375 | (remote_escape_output, unpack_varlen_hex, clear_symbol_cache) | |
376 | (look_up_one_symbol, relocate_instruction) | |
377 | (monitor_output): Move to remote-utils.h, and include it. | |
378 | * remote-utils.h: New file. | |
379 | ||
eebdf26b PA |
380 | 2013-09-05 Pedro Alves <palves@redhat.com> |
381 | ||
382 | * server.h (_): Delete. | |
383 | ||
3aafd2ff PA |
384 | 2013-09-02 Pedro Alves <palves@redhat.com> |
385 | ||
386 | * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro. | |
387 | (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is | |
388 | allocated. | |
389 | (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE. | |
390 | ||
cee83bcb PM |
391 | 2013-09-02 Pierre Muller <muller@sourceware.org> |
392 | ||
393 | * win32-low.c (child_xfer_memory): Check if ReadProcessMemory | |
394 | or WriteProcessMemory complete successfully and handle | |
395 | ERROR_PARTIAL_COPY error. | |
396 | ||
9a13b2fa PA |
397 | 2013-09-02 Pedro Alves <palves@redhat.com> |
398 | ||
399 | * server.c (gdb_read_memory): Return -1 on traceframe memory read | |
400 | error instead of EIO. | |
401 | ||
602e3198 JK |
402 | 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
403 | ||
404 | PR server/15604 | |
405 | * linux-low.c: Include filestuff.h. | |
406 | (linux_create_inferior) <pid == 0>: Call close_most_fds. | |
407 | * lynx-low.c: Include filestuff.h. | |
408 | (lynx_create_inferior) <pid == 0>: Call close_most_fds. | |
409 | * server.c: Include filestuff.h. | |
410 | (main): Call notice_open_fds. | |
411 | * spu-low.c: Include filestuff.h. | |
412 | (spu_create_inferior) <pid == 0>: Call close_most_fds. | |
413 | ||
96d7229d LM |
414 | 2013-08-22 Luis Machado <lgustavo@codesourcery.com> |
415 | ||
416 | * Makefile.in: Explain why ../target and ../nat are not | |
417 | listed as include file search paths. | |
418 | (linux-waitpid.o): New object file rule. | |
419 | * configure.srv (srv_native_linux_obj): New variable. | |
420 | Replace all occurrences of linux native object files with | |
421 | $srv_native_linux_obj. | |
422 | * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h. | |
423 | (HAS_NOMMU): Move defining logic to common/linux-ptrace.c. | |
424 | (linux_enable_event_reporting): Remove declaration. | |
425 | (my_waitpid): Moved to common/linux-waitpid.c. | |
426 | (linux_wait_for_event): Pass ptid when calling | |
427 | linux_enable_event_reporting. | |
428 | (linux_supports_tracefork_flag): Remove. | |
429 | (linux_enable_event_reporting): Likewise. | |
430 | (linux_tracefork_grandchild): Remove. | |
431 | (STACK_SIZE): Moved to common/linux-ptrace.c. | |
432 | (linux_tracefork_child): Remove. | |
433 | (linux_test_for_tracefork): Remove. | |
434 | (linux_look_up_symbols): Call linux_supports_traceclone. | |
435 | (initialize_low): Remove call to linux_test_for_tracefork. | |
436 | * linux-low.h (PTRACE_TYPE_ARG3): Move to | |
437 | common/linux-ptrace.h. | |
438 | (PTRACE_TYPE_ARG4): Likewise. | |
439 | Include linux-ptrace.h. | |
440 | ||
32940073 PA |
441 | 2013-08-21 Pedro Alves <palves@redhat.com> |
442 | ||
443 | * config.in: Renegerate. | |
444 | ||
33b60d58 | 445 | 2013-08-19 Luis Machado <lgustavo@codesourcery.com> |
a261b8f5 | 446 | |
33b60d58 LM |
447 | * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../. |
448 | (SFILES): Remove $(srcdir)/common/target-common.c and | |
449 | add $(srcdir)/target/waitstatus.c. | |
450 | (OBS): Remove target-common.o and add waitstatus.o. | |
451 | (server_h): Remove $(srcdir)/../common/target-common.h and | |
452 | add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h | |
453 | and $(srcdir)/../target/waitstatus.h. | |
454 | (target-common.o): Remove. | |
455 | (waitstatus.o): New target object file. | |
456 | * target.h: Do not include target-common.h and | |
457 | include target/resume.h, target/wait.h and | |
458 | target/waitstatus.h. | |
459 | ||
b8e1b30e LM |
460 | 2013-08-13 Luis Machado <lgustavo@codesourcery.com> |
461 | ||
462 | * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE | |
463 | to PTRACE_TYPE_ARG3. | |
464 | * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE | |
465 | to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to | |
466 | PTRACE_TYPE_ARG4. | |
467 | * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3. | |
468 | (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4. | |
469 | ||
7a60ad40 YQ |
470 | 2013-07-27 Jie Zhang <jie@codesourcery.com> |
471 | Daniel Jacobowitz <dan@codesourcery.com> | |
472 | Yao Qi <yao@codesourcery.com> | |
473 | ||
474 | * Makefile.in (SFILES): Add common/mips-linux-watch.c. | |
475 | (mips-linux-watch.o): New rule. | |
476 | (mips_linux_watch_h): New variable. | |
477 | * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to | |
478 | srv_tgtobj. | |
479 | * linux-mips-low.c: Include mips-linux-watch.h. | |
480 | (struct arch_process_info, struct arch_lwp_info): New. | |
481 | (update_watch_registers_callback): New function. | |
482 | (mips_linux_new_process, mips_linux_new_thread) New functions. | |
483 | (mips_linux_prepare_to_resume, mips_insert_point): New | |
484 | functions. | |
485 | (mips_remove_point, mips_stopped_by_watchpoint): New | |
486 | functions. | |
487 | (rsp_bp_type_to_target_hw_bp_type): New function. | |
488 | (mips_stopped_data_address): New function. | |
489 | (the_low_target): Add watchpoint support functions. | |
490 | ||
de6f69ad YQ |
491 | 2013-07-27 Yao Qi <yao@codesourcery.com> |
492 | ||
493 | * i386-low.c: Include break-common.h. | |
494 | (enum target_hw_bp_type): Remove. | |
495 | ||
3360c0bf LM |
496 | 2013-07-24 Luis Machado <lgustavo@codesourcery.com> |
497 | ||
498 | * Makefile.in (SFILES): /common/target-common.c. | |
499 | (OBS): Add target-common.o. | |
500 | (server_h): Add $(srcdir)/../common/target-common.h. | |
501 | (target-common.o): New target. | |
502 | * server.c (queue_stop_reply_callback): Free | |
503 | status string after use. | |
504 | * target.c (target_waitstatus_to_string): Remove. | |
505 | * target.h: Include target-common.h. | |
506 | (resume_kind): Likewise. | |
507 | (target_waitkind): Likewise. | |
508 | (target_waitstatus): Likewise. | |
509 | (TARGET_WNOHANG): Likewise. | |
510 | ||
bd885420 YQ |
511 | 2013-07-04 Yao Qi <yao@codesourcery.com> |
512 | ||
513 | * Makefile.in (host_alias): Use @host_noncanonical@. | |
514 | (target_alias): Use @target_noncanonical@. | |
515 | * configure.ac: Use ACX_NONCANONICAL_TARGET and | |
516 | ACX_NONCANONICAL_HOST. | |
517 | * configure: Regenerated. | |
518 | ||
519 | Revert: | |
520 | 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com> | |
521 | ||
522 | * configure.ac (version_host, version_target): Set and AC_SUBST them. | |
523 | * configure: Rebuild. | |
524 | * Makefile.in (version_host, version_target): Get from configure. | |
525 | (version.c): Use $(version_host) and $(version_target). | |
526 | ||
17ef446e PA |
527 | 2013-07-03 Pedro Alves <palves@redhat.com> |
528 | ||
529 | * Makefile.in (config.status): Depend on development.sh. | |
530 | * acinclude.m4: Include libmcheck.m4. | |
531 | * configure: Regenerate. | |
532 | ||
7a9a7487 MG |
533 | 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com> |
534 | ||
535 | * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI | |
536 | attribute inside the parentheses. | |
537 | (winapi_DebugSetProcessKillOnExit): Ditto. | |
538 | (winapi_DebugBreakProcess): Ditto. | |
539 | (winapi_GenerateConsoleCtrlEvent): Ditto. | |
a261b8f5 | 540 | |
49b64de6 MG |
541 | 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com> |
542 | ||
543 | * notif.h (notif_event): Add a dummy member to avoid compiler | |
544 | errors. | |
545 | ||
d5749ee7 PA |
546 | 2013-07-01 Pedro Alves <palves@redhat.com> |
547 | ||
548 | * hostio.c (HOSTIO_PATH_MAX): Define. | |
549 | (require_filename, handle_open, handle_unlink, handle_readlink): | |
550 | Use it. | |
551 | ||
d8d2a3ee PA |
552 | 2013-07-01 Pedro Alves <palves@redhat.com> |
553 | ||
554 | * server.h: Include "pathmax.h". | |
555 | * linux-low.c: Don't include sys/param.h. | |
556 | (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of | |
557 | MAXPATHLEN. | |
558 | * win32-low.c: Don't include sys/param.h. | |
559 | (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN. | |
560 | ||
bc7dea8d PA |
561 | 2013-07-01 Pedro Alves <palves@redhat.com> |
562 | ||
563 | * event-loop.c: Don't check HAVE_UNISTD_H before including | |
564 | <unistd.h>. | |
565 | * gdbreplay.c: Likewise. | |
566 | * remote-utils.c: Likewise. | |
567 | * server.c: Likewise. | |
568 | * configure.ac: Don't check for unistd.h. | |
569 | * configure: Regenerate. | |
570 | ||
d6c2da54 TT |
571 | 2013-06-28 Tom Tromey <tromey@redhat.com> |
572 | ||
573 | * Makefile.in (version.c): Use version.in, not | |
574 | common/version.in. | |
575 | ||
257b6bec MG |
576 | 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com> |
577 | ||
578 | * configure.ac (version_host, version_target): Set and AC_SUBST them. | |
579 | * configure: Rebuild. | |
580 | * Makefile.in (version_host, version_target): Get from configure. | |
581 | (version.c): Use $(version_host) and $(version_target). | |
582 | ||
86ebe149 DK |
583 | 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com> |
584 | ||
585 | Fix trace-status to output user name without trailing colon. | |
586 | * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name. | |
587 | ||
f30aa5af DK |
588 | 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com> |
589 | ||
590 | Fix trace-status to output proper start-time and stop-time. | |
591 | * tracepoint.c (cmd_qtstatus): Modify trace-status output to | |
592 | output start time and stop time in hex as gdb expects. | |
593 | ||
28a93511 YQ |
594 | 2013-06-26 Pedro Alves <pedro@codesourcery.com> |
595 | ||
596 | * tracepoint.c (build_traceframe_info_xml): Output trace state | |
597 | variables present in the trace buffer. | |
598 | ||
01208463 TT |
599 | 2013-06-24 Tom Tromey <tromey@redhat.com> |
600 | ||
601 | * Makefile.in (version.c): Use bfd/version.h, common/version.in, | |
602 | create-version.sh. | |
603 | (version.o): Remove. | |
604 | * gdbreplay.c: Include version.h. | |
605 | (version, host_name): Don't declare. | |
606 | * server.h: Include version.h. | |
607 | (version, host_name): Don't declare. | |
608 | ||
760256f9 PA |
609 | 2013-06-12 Pedro Alves <palves@redhat.com> |
610 | ||
611 | * linux-x86-low.c (linux_is_elf64): Delete global. | |
612 | (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global | |
613 | with local linux_pid_exe_is_elf_64_file use. | |
614 | ||
030031ee PA |
615 | 2013-06-11 Pedro Alves <palves@redhat.com> |
616 | ||
617 | * linux-low.c (regset_disabled, disable_regset): New functions. | |
618 | (regsets_fetch_inferior_registers) | |
619 | (regsets_store_inferior_registers): Use them. | |
620 | (initialize_regsets_info); Don't allocate the disabled_regsets | |
621 | array here. | |
622 | * linux-low.h (struct regsets_info) <disabled_regsets>: Extend | |
623 | comment. | |
624 | ||
5da6eb0a PA |
625 | 2013-06-11 Pedro Alves <palves@redhat.com> |
626 | ||
627 | * linux-low.c (initialize_regsets_info): Use xcalloc instead of | |
628 | xmalloc. | |
629 | ||
7e5aaa09 PA |
630 | 2013-06-11 Pedro Alves <palves@redhat.com> |
631 | ||
632 | * linux-x86-low.c (initialize_low_arch): Call | |
633 | init_registers_x32_avx_linux. | |
634 | ||
d878444c JK |
635 | 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
636 | ||
637 | Fix compatibility with Android Bionic. | |
638 | * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if | |
639 | it is not empty. | |
640 | ||
3aee8918 PA |
641 | 2013-06-07 Pedro Alves <palves@redhat.com> |
642 | ||
5f2b57b5 | 643 | PR server/14823 |
3aee8918 PA |
644 | * Makefile.in (OBS): Add tdesc.o. |
645 | (IPA_OBJS): Add tdesc-ipa.o. | |
646 | (tdesc-ipa.o): New rule. | |
647 | * ax.c (gdb_eval_agent_expr): Adjust register_size call to new | |
648 | interface. | |
649 | * linux-low.c (new_inferior): Delete. | |
650 | (disabled_regsets, num_regsets): Delete. | |
651 | (linux_add_process): Adjust to set the new per-process | |
652 | new_inferior flag. | |
653 | (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread. | |
654 | (linux_wait_for_lwp): Adjust. Only call arch_setup if the event | |
655 | was a stop. When calling arch_setup, switch the current inferior | |
656 | to the thread that got an event. | |
657 | (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread. | |
658 | (regsets_fetch_inferior_registers) | |
659 | (regsets_store_inferior_registers): New regsets_info parameter. | |
660 | Adjust to use it. | |
661 | (linux_register_in_regsets): New regs_info parameter. Adjust to | |
662 | use it. | |
663 | (register_addr, fetch_register, store_register): New usrregs_info | |
664 | parameter. Adjust to use it. | |
665 | (usr_fetch_inferior_registers, usr_store_inferior_registers): New | |
666 | parameter regs_info. Adjust to use it. | |
667 | (linux_fetch_registers): Get the current inferior's regs_info, and | |
668 | adjust to use it. | |
669 | (linux_store_registers): Ditto. | |
670 | [HAVE_LINUX_REGSETS] (initialize_regsets_info): New. | |
671 | (initialize_low): Don't initialize the target_regsets here. Call | |
672 | initialize_low_arch. | |
673 | * linux-low.h (target_regsets): Delete declaration. | |
674 | (struct regsets_info): New. | |
675 | (struct usrregs_info): New. | |
676 | (struct regs_info): New. | |
677 | (struct process_info_private) <new_inferior>: New field. | |
678 | (struct linux_target_ops): Delete the num_regs, regmap, and | |
679 | regset_bitmap fields. New field regs_info. | |
680 | [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare. | |
681 | * i387-fp.c (num_xmm_registers): Delete. | |
682 | (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno | |
683 | calls to new interface. | |
684 | (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache) | |
685 | (i387_xsave_to_cache): Adjust find_regno calls to new interface. | |
686 | Infer the number of xmm registers from the regcache's target | |
687 | description. | |
688 | * i387-fp.h (num_xmm_registers): Delete. | |
689 | * inferiors.c (add_thread): Don't install the thread's regcache | |
690 | here. | |
691 | * proc-service.c (gregset_info): Fetch the current inferior's | |
692 | regs_info. Adjust to use it. | |
693 | * regcache.c: Include tdesc.h. | |
694 | (register_bytes, reg_defs, num_registers) | |
695 | (gdbserver_expedite_regs): Delete. | |
696 | (get_thread_regcache): If the thread doesn't have a regcache yet, | |
697 | create one, instead of aborting gdbserver. | |
698 | (regcache_invalidate_one): Rename to ... | |
699 | (regcache_invalidate_thread): ... this. | |
700 | (regcache_invalidate_one): New. | |
701 | (regcache_invalidate): Only invalidate registers of the current | |
702 | process. | |
703 | (init_register_cache): Add target_desc parameter, and use it. | |
704 | (new_register_cache): Ditto. Assert the target description has a | |
705 | non zero registers_size. | |
706 | (regcache_cpy): Add assertions. Adjust. | |
707 | (realloc_register_cache, set_register_cache): Delete. | |
708 | (registers_to_string, registers_from_string): Adjust. | |
709 | (find_register_by_name, find_regno, find_register_by_number) | |
710 | (register_cache_size): Add target_desc parameter, and use it. | |
711 | (free_register_cache_thread, free_register_cache_thread_one) | |
712 | (regcache_release, register_cache_size): New. | |
713 | (register_size): Add target_desc parameter, and use it. | |
714 | (register_data, supply_register, supply_register_zeroed) | |
715 | (supply_regblock, supply_register_by_name, collect_register) | |
716 | (collect_register_as_string, collect_register_by_name): Adjust. | |
717 | * regcache.h (struct target_desc): Forward declare. | |
718 | (struct regcache) <tdesc>: New field. | |
719 | (init_register_cache, new_register_cache): Add target_desc | |
720 | parameter. | |
721 | (regcache_invalidate_thread): Declare. | |
722 | (regcache_invalidate_one): Delete declaration. | |
723 | (regcache_release): Declare. | |
724 | (find_register_by_number, register_cache_size, register_size) | |
725 | (find_regno): Add target_desc parameter. | |
726 | (gdbserver_expedite_regs, gdbserver_xmltarget): Delete | |
727 | declarations. | |
728 | * remote-utils.c: Include tdesc.h. | |
729 | (outreg, prepare_resume_reply): Adjust. | |
730 | * server.c: Include tdesc.h. | |
731 | (gdbserver_xmltarget): Delete declaration. | |
732 | (get_features_xml, process_serial_event): Adjust. | |
733 | * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward | |
734 | declare. | |
735 | (struct process_info) <tdesc>: New field. | |
736 | (ipa_tdesc): Declare. | |
737 | * tdesc.c: New file. | |
738 | * tdesc.h: New file. | |
739 | * tracepoint.c: Include tdesc.h. | |
740 | [IN_PROCESS_AGENT] (ipa_tdesc): Define. | |
741 | (get_context_regcache): Adjust to pass ipa_tdesc down. | |
742 | (do_action_at_tracepoint): Adjust to get the register cache size | |
743 | from the context regcache's description. | |
744 | (traceframe_walk_blocks): Adjust to get the register cache size | |
745 | from the current trace frame's description. | |
746 | (traceframe_get_pc): Adjust to get current trace frame's | |
747 | description and pass it down. | |
748 | (gdb_collect): Adjust to get the register cache size from the | |
749 | IPA's description. | |
750 | * linux-amd64-ipa.c (tdesc_amd64_linux): Declare. | |
751 | (gdbserver_xmltarget): Delete. | |
752 | (initialize_low_tracepoint): Set the ipa's target description. | |
753 | * linux-i386-ipa.c (tdesc_i386_linux): Declare. | |
754 | (initialize_low_tracepoint): Set the ipa's target description. | |
755 | * linux-x86-low.c: Include tdesc.h. | |
756 | [__x86_64__] (is_64bit_tdesc): New. | |
757 | (ps_get_thread_area, x86_get_thread_area): Use it. | |
758 | (i386_cannot_store_register): Rename to ... | |
759 | (x86_cannot_store_register): ... this. Use is_64bit_tdesc. | |
760 | (i386_cannot_fetch_register): Rename to ... | |
761 | (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc. | |
762 | (x86_fill_gregset, x86_store_gregset): Adjust register_size calls | |
763 | to new interface. | |
764 | (target_regsets): Rename to ... | |
765 | (x86_regsets): ... this. | |
766 | (x86_get_pc, x86_set_pc): Adjust register_size calls to new | |
767 | interface. | |
768 | (x86_siginfo_fixup): Use is_64bit_tdesc. | |
769 | [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux) | |
770 | (tdesc_x32_avx_linux, tdesc_x32_linux) | |
771 | (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux): | |
772 | Declare. | |
773 | (x86_linux_update_xmltarget): Delete. | |
774 | (I386_LINUX_XSAVE_XCR0_OFFSET): Define. | |
775 | (have_ptrace_getfpxregs, have_ptrace_getregset): New. | |
776 | (AMD64_LINUX_USER64_CS): New. | |
777 | (x86_linux_read_description): New, based on | |
778 | x86_linux_update_xmltarget. | |
779 | (same_process_callback): New. | |
780 | (x86_arch_setup_process_callback): New. | |
781 | (x86_linux_update_xmltarget): New. | |
782 | (x86_regsets_info): New. | |
783 | (amd64_linux_regs_info): New. | |
784 | (i386_linux_usrregs_info): New. | |
785 | (i386_linux_regs_info): New. | |
786 | (x86_linux_regs_info): New. | |
787 | (x86_arch_setup): Reimplement. | |
788 | (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc. | |
789 | (x86_emit_ops): Ditto. | |
790 | (the_low_target): Adjust. Install x86_linux_regs_info, | |
791 | x86_cannot_fetch_register, and x86_cannot_store_register. | |
792 | (initialize_low_arch): New. | |
793 | * linux-ia64-low.c (tdesc_ia64): Declare. | |
794 | (ia64_fetch_register): Adjust. | |
795 | (ia64_usrregs_info, regs_info): New globals. | |
796 | (ia64_regs_info): New function. | |
797 | (the_low_target): Adjust. | |
798 | (initialize_low_arch): New function. | |
799 | * linux-sparc-low.c (tdesc_sparc64): Declare. | |
800 | (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack): | |
801 | Adjust. | |
802 | (sparc_arch_setup): New function. | |
803 | (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals. | |
804 | (the_low_target): Adjust. | |
805 | (initialize_low_arch): New function. | |
806 | * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l) | |
807 | (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l) | |
808 | (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l) | |
809 | (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l) | |
810 | (tdesc_powerpc_64l, tdesc_powerpc_altivec64l) | |
811 | (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l) | |
812 | (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l) | |
813 | (tdesc_powerpc_isa205_vsx64l): Declare. | |
814 | (ppc_cannot_store_register, ppc_collect_ptrace_register) | |
815 | (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc) | |
816 | (ppc_set_pc, ppc_get_hwcap): Adjust. | |
817 | (ppc_usrregs_info): Forward declare. | |
818 | (!__powerpc64__) ppc_regmap_adjusted: New global. | |
819 | (ppc_arch_setup): Adjust to the current process'es target | |
820 | description. | |
821 | (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset) | |
822 | (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse) | |
823 | (ppc_store_evrregset): Adjust. | |
824 | (target_regsets): Rename to ... | |
825 | (ppc_regsets): ... this, and make static. | |
826 | (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals. | |
827 | (ppc_regs_info): New function. | |
828 | (the_low_target): Adjust. | |
829 | (initialize_low_arch): New function. | |
830 | * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1) | |
831 | (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1) | |
832 | (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1) | |
833 | (tdesc_s390x_linux64v2): Declare. | |
834 | (s390_collect_ptrace_register, s390_supply_ptrace_register) | |
835 | (s390_fill_gregset, s390_store_last_break): Adjust. | |
836 | (target_regsets): Rename to ... | |
837 | (s390_regsets): ... this, and make static. | |
838 | (s390_get_pc, s390_set_pc): Adjust. | |
839 | (s390_get_hwcap): New target_desc parameter, and use it. | |
840 | [__s390x__] (have_hwcap_s390_high_gprs): New global. | |
841 | (s390_arch_setup): Adjust to set the current process'es target | |
842 | description. Don't adjust the regmap. | |
843 | (s390_usrregs_info, s390_regsets_info, regs_info): New globals. | |
844 | [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264) | |
845 | (regs_info_3264): New globals. | |
846 | (s390_regs_info): New function. | |
847 | (the_low_target): Adjust. | |
848 | (initialize_low_arch): New function. | |
849 | * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux) | |
850 | (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare. | |
851 | [__mips64] (init_registers_mips_linux) | |
852 | (init_registers_mips_dsp_linux): Delete defines. | |
853 | [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines. | |
854 | (have_dsp): New global. | |
855 | (mips_read_description): New, based on mips_arch_setup. | |
856 | (mips_arch_setup): Reimplement. | |
857 | (get_usrregs_info): New function. | |
858 | (mips_cannot_fetch_register, mips_cannot_store_register) | |
859 | (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset) | |
860 | (mips_fill_fpregset, mips_store_fpregset): Adjust. | |
861 | (target_regsets): Rename to ... | |
862 | (mips_regsets): ... this, and make static. | |
863 | (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info) | |
864 | (dsp_regs_info, regs_info): New globals. | |
865 | (mips_regs_info): New function. | |
866 | (the_low_target): Adjust. | |
867 | (initialize_low_arch): New function. | |
868 | * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt) | |
869 | (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon): | |
870 | Declare. | |
871 | (arm_fill_vfpregset, arm_store_vfpregset): Adjust. | |
872 | (arm_read_description): New, with bits factored from | |
873 | arm_arch_setup. | |
874 | (arm_arch_setup): Reimplement. | |
875 | (target_regsets): Rename to ... | |
876 | (arm_regsets): ... this, and make static. | |
877 | (arm_regsets_info, arm_usrregs_info, regs_info): New globals. | |
878 | (arm_regs_info): New function. | |
879 | (the_low_target): Adjust. | |
880 | (initialize_low_arch): New function. | |
881 | * linux-m68k-low.c (tdesc_m68k): Declare. | |
882 | (target_regsets): Rename to ... | |
883 | (m68k_regsets): ... this, and make static. | |
884 | (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals. | |
885 | (m68k_regs_info): New function. | |
886 | (m68k_arch_setup): New function. | |
887 | (the_low_target): Adjust. | |
888 | (initialize_low_arch): New function. | |
889 | * linux-sh-low.c (tdesc_sharch): Declare. | |
890 | (target_regsets): Rename to ... | |
891 | (sh_regsets): ... this, and make static. | |
892 | (sh_regsets_info, sh_usrregs_info, regs_info): New globals. | |
893 | (sh_regs_info, sh_arch_setup): New functions. | |
894 | (the_low_target): Adjust. | |
895 | (initialize_low_arch): New function. | |
896 | * linux-bfin-low.c (tdesc_bfin): Declare. | |
897 | (bfin_arch_setup): New function. | |
898 | (bfin_usrregs_info, regs_info): New globals. | |
899 | (bfin_regs_info): New function. | |
900 | (the_low_target): Adjust. | |
901 | (initialize_low_arch): New function. | |
902 | * linux-cris-low.c (tdesc_cris): Declare. | |
903 | (cris_arch_setup): New function. | |
904 | (cris_usrregs_info, regs_info): New globals. | |
905 | (cris_regs_info): New function. | |
906 | (the_low_target): Adjust. | |
907 | (initialize_low_arch): New function. | |
908 | * linux-cris-low.c (tdesc_crisv32): Declare. | |
909 | (cris_arch_setup): New function. | |
910 | (cris_regsets_info, cris_usrregs_info, regs_info): New globals. | |
911 | (cris_regs_info): New function. | |
912 | (the_low_target): Adjust. | |
913 | (initialize_low_arch): New function. | |
914 | * linux-m32r-low.c (tdesc_m32r): Declare. | |
915 | (m32r_arch_setup): New function. | |
916 | (m32r_usrregs_info, regs_info): New globals. | |
917 | (m32r_regs_info): Adjust. | |
918 | (initialize_low_arch): New function. | |
919 | * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux) | |
920 | (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare. | |
921 | (tic6x_usrregs_info): Forward declare. | |
922 | (tic6x_read_description): New function, based on ... | |
923 | (tic6x_arch_setup): ... this. Reimplement. | |
924 | (target_regsets): Rename to ... | |
925 | (tic6x_regsets): ... this, and make static. | |
926 | (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals. | |
927 | (tic6x_regs_info): New function. | |
928 | (the_low_target): Adjust. | |
929 | (initialize_low_arch): New function. | |
930 | * linux-xtensa-low.c (tdesc_xtensa): Declare. | |
931 | (xtensa_fill_gregset, xtensa_store_gregset): Adjust. | |
932 | (target_regsets): Rename to ... | |
933 | (xtensa_regsets): ... this, and make static. | |
934 | (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New | |
935 | globals. | |
936 | (xtensa_arch_setup, xtensa_regs_info): New functions. | |
937 | (the_low_target): Adjust. | |
938 | (initialize_low_arch): New function. | |
939 | * linux-nios2-low.c (tdesc_nios2_linux): Declare. | |
940 | (nios2_arch_setup): Set the current process'es tdesc. | |
941 | (target_regsets): Rename to ... | |
942 | (nios2_regsets): ... this. | |
943 | (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals. | |
944 | (nios2_regs_info): New function. | |
945 | (the_low_target): Adjust. | |
946 | (initialize_low_arch): New function. | |
a261b8f5 PA |
947 | * linux-aarch64-low.c (tdesc_aarch64): Declare. |
948 | (aarch64_arch_setup): Set the current process'es tdesc. | |
949 | (target_regsets): Rename to ... | |
950 | (aarch64_regsets): ... this. | |
951 | (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals. | |
952 | (aarch64_regs_info): New function. | |
953 | (the_low_target): Adjust. | |
954 | (initialize_low_arch): New function. | |
3aee8918 PA |
955 | * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare |
956 | globals. | |
957 | (target_regsets): Rename to ... | |
958 | (tile_regsets): ... this. | |
959 | (tile_regsets_info, tile_usrregs_info, regs_info): New globals. | |
960 | (tile_regs_info): New function. | |
961 | (tile_arch_setup): Set the current process'es tdesc. | |
962 | (the_low_target): Adjust. | |
963 | (initialize_low_arch): New function. | |
964 | * spu-low.c (tdesc_spu): Declare. | |
965 | (spu_create_inferior, spu_attach): Set the new process'es tdesc. | |
966 | * win32-arm-low.c (tdesc_arm): Declare. | |
967 | (arm_arch_setup): New function. | |
968 | (the_low_target): Install arm_arch_setup instead of | |
969 | init_registers_arm. | |
970 | * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare. | |
971 | (init_windows_x86): Rename to ... | |
972 | (i386_arch_setup): ... this. Set `win32_tdesc'. | |
973 | (the_low_target): Adjust. | |
974 | * win32-low.c (win32_tdesc): New global. | |
975 | (child_add_thread): Don't create the thread cache here. | |
976 | (do_initial_child_stuff): Set the new process'es tdesc. | |
977 | * win32-low.h (struct target_desc): Forward declare. | |
978 | (win32_tdesc): Declare. | |
979 | * lynx-i386-low.c (tdesc_i386): Declare global. | |
980 | (lynx_i386_arch_setup): Set `lynx_tdesc'. | |
981 | * lynx-low.c (lynx_tdesc): New global. | |
982 | (lynx_add_process): Set the new process'es tdesc. | |
983 | * lynx-low.h (struct target_desc): Forward declare. | |
984 | (lynx_tdesc): Declare global. | |
985 | * lynx-ppc-low.c (tdesc_powerpc_32): Declare global. | |
986 | (lynx_ppc_arch_setup): Set `lynx_tdesc'. | |
987 | * nto-low.c (nto_tdesc): New global. | |
988 | (do_attach): Set the new process'es tdesc. | |
989 | * nto-low.h (struct target_desc): Forward declare. | |
990 | (nto_tdesc): Declare. | |
991 | * nto-x86-low.c (tdesc_i386): Declare. | |
992 | (nto_x86_arch_setup): Set `nto_tdesc'. | |
993 | ||
b1fbec62 GB |
994 | 2013-06-04 Gary Benson <gbenson@redhat.com> |
995 | ||
996 | * server.c (handle_query): Add "augmented-libraries-svr4-read+" | |
997 | to qSupported response when appropriate. | |
998 | (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read | |
999 | with nonzero-length annex. | |
1000 | * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle | |
1001 | arguments supplied in annex. | |
1002 | ||
d1ec4ce7 DE |
1003 | 2013-05-31 Doug Evans <dje@google.com> |
1004 | ||
ac44adcb | 1005 | PR server/15594 |
d1ec4ce7 DE |
1006 | * linux-x86-low.c (ps_get_thread_area): Properly extend address to |
1007 | 64 bits in 64-cross-32 environment. | |
1008 | ||
9b25f2d3 PA |
1009 | 2013-05-28 Pedro Alves <palves@redhat.com> |
1010 | ||
1011 | * Makefile.in (clean): Remove reference to aarch64-without-fpu.c. | |
1012 | (aarch64-without-fpu.c): Delete rule. | |
1013 | * configure.srv (aarch64*-*-linux*): Remove references to | |
1014 | aarch64-without-fpu.o and aarch64-without-fpu.xml. | |
1015 | * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove | |
1016 | declaration. | |
1017 | ||
6740dc9c PA |
1018 | 2013-05-24 Pedro Alves <palves@redhat.com> |
1019 | ||
1020 | * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex | |
1021 | instead of strchr/decode_address. Error if the range isn't split | |
1022 | with a ','. Don't assume there's be a ':' in the action. | |
1023 | ||
c2d6af84 PA |
1024 | 2013-05-23 Yao Qi <yao@codesourcery.com> |
1025 | Pedro Alves <palves@redhat.com> | |
1026 | ||
1027 | * linux-low.c (lwp_in_step_range): New function. | |
1028 | (linux_wait_1): If the thread was range stepping and stopped | |
1029 | outside the stepping range, report the stop to GDB. Otherwise, | |
1030 | continue stepping. Add range stepping debug output. | |
1031 | (linux_set_resume_request): Copy the step range from the resume | |
1032 | request to the lwp. | |
1033 | (linux_supports_range_stepping): New. | |
1034 | (linux_target_ops) <supports_range_stepping>: Set to | |
1035 | linux_supports_range_stepping. | |
1036 | * linux-low.h (struct linux_target_ops) | |
1037 | <supports_range_stepping>: New field. | |
1038 | (struct lwp_info) <step_range_start, step_range_end>: New fields. | |
1039 | * linux-x86-low.c (x86_supports_range_stepping): New. | |
1040 | (the_low_target) <supports_range_stepping>: Set to | |
1041 | x86_supports_range_stepping. | |
1042 | * server.c (handle_v_cont): Handle 'r' action. | |
1043 | (handle_v_requests): Append ";r" if the target supports range | |
1044 | stepping. | |
1045 | * target.h (struct thread_resume) <step_range_start, | |
1046 | step_range_end>: New fields. | |
1047 | (struct target_ops) <supports_range_stepping>: | |
1048 | New field. | |
1049 | (target_supports_range_stepping): New macro. | |
1050 | ||
58794e1a JB |
1051 | 2013-05-17 Joel Brobecker <brobecker@adacore.com> |
1052 | ||
1053 | * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid | |
1054 | confusion in comment. | |
1055 | ||
d631c5a7 JB |
1056 | 2013-05-17 Joel Brobecker <brobecker@adacore.com> |
1057 | ||
1058 | * lynx-low.c (struct process_info_private): New type. | |
1059 | (lynx_add_process): New function. | |
1060 | (lynx_create_inferior, lynx_attach): Replace calls to | |
1061 | add_process by calls to lynx_add_process. | |
1062 | (lynx_resume): If PTID is null, then try using | |
1063 | current_process()->private->last_wait_event_ptid. | |
1064 | Add comments. | |
1065 | (lynx_clear_inferiors): Delete. The contents of that function | |
1066 | has been inlined in lynx_mourn; | |
1067 | (lynx_wait_1): Save the ptid in the process's private data. | |
1068 | (lynx_mourn): Free the process' private data. Replace call | |
1069 | to lynx_clear_inferiors by call to clear_inferiors. | |
1070 | ||
96f7a20f YQ |
1071 | 2013-05-17 Yao Qi <yao@codesourcery.com> |
1072 | ||
1073 | * i386-low.c (i386_length_and_rw_bits): Move the comment to | |
1074 | the right place. | |
1075 | ||
db0dfaa0 LM |
1076 | 2013-05-16 Luis Machado <lgustavo@codesourcery.com> |
1077 | ||
1078 | * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR, | |
1079 | PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments. | |
1080 | (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and | |
1081 | PT_TEXT_END_ADDR guards. Update comments. | |
1082 | (linux_target_op) <read_offsets>: Conditionally define to | |
1083 | linux_read_offsets if the target is UCLIBC and if it defines | |
1084 | PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR. | |
1085 | ||
68f5f838 SL |
1086 | 2013-05-06 Sandra Loosemore <sandra@codesourcery.com> |
1087 | Andrew Jenner <andrew@codesourcery.com> | |
1088 | ||
1089 | * Makefile.in (SFILES): Add linux-nios2-low.c. | |
1090 | (clean): Add action to delete nios2-linux.c. | |
1091 | (nios2-linux.c): New rule. | |
1092 | * configure.srv: Add nios2*-*-linux*. | |
1093 | * linux-nios2-low.c: New. | |
1094 | ||
1ebff1fd HAQ |
1095 | 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com> |
1096 | ||
1097 | * tracepoint.c (cmd_qtinit): Call 'stop_tracing'. | |
1098 | ||
f6150862 HZ |
1099 | 2013-04-25 Hui Zhu <hui@codesourcery.com> |
1100 | ||
1101 | PR gdb/15186 | |
f6150862 HZ |
1102 | * ax.c (ax_printf): Add fflush. |
1103 | ||
614c279d TT |
1104 | 2013-04-22 Tom Tromey <tromey@redhat.com> |
1105 | ||
1106 | * Makefile.in (SFILES): Add filestuff.c. | |
1107 | (OBS): Add filestuff.o. | |
1108 | (filestuff.o): New target. | |
1109 | * config.in, configure: Rebuild. | |
1110 | * configure.ac: Check for fdwalk, pipe2. | |
1111 | ||
7d4e5717 PA |
1112 | 2013-04-17 Pedro Alves <palves@redhat.com> |
1113 | ||
1114 | * configure.ac (USE_THREAD_DB): Delete variable. | |
1115 | (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB. | |
1116 | Don't AC_SUBST USE_THREAD_DB. | |
1117 | * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@. | |
1118 | * config.in, configure: Regenerate. | |
1119 | ||
d5c93e41 PA |
1120 | 2013-04-16 Pedro Alves <palves@redhat.com> |
1121 | ||
1122 | * linux-low.h (struct lwp_info) <thread_known>: Move under | |
1123 | the USE_THREAD_DB #ifdef. | |
1124 | ||
04f5fe89 PA |
1125 | 2013-04-16 Pedro Alves <palves@redhat.com> |
1126 | ||
1127 | * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@. | |
1128 | (linux-low.o): Delete rule. | |
1129 | * linux-low.h: Always include "gdb_thread_db.h" instead of | |
1130 | conditionally including thread_db.h. | |
1131 | (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of | |
1132 | HAVE_THREAD_DB_H. | |
1133 | ||
480b27bf JK |
1134 | 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
1135 | ||
1136 | * Makefile.in (install-only): Fix make install regression. | |
1137 | ||
43662968 JK |
1138 | 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
1139 | ||
1140 | Convert man pages to texinfo, new gdbinit.5 texinfo page. | |
1141 | * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1 | |
1142 | installation. | |
1143 | * gdbserver.1: Remove. | |
1144 | ||
3e74e146 PA |
1145 | 2013-03-22 Pedro Alves <palves@redhat.com> |
1146 | ||
1147 | * linux-low.c (handle_extended_wait): Don't call | |
1148 | linux_enable_event_reporting. | |
1149 | ||
a8347a2a TT |
1150 | 2013-03-15 Tony Theodore <tonyt@logyst.com> |
1151 | ||
1152 | PR build/9098: | |
1153 | * Makefile.in (SHELL): Use @SHELL@. | |
1154 | ||
eeb56fa7 SDJ |
1155 | 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com> |
1156 | ||
1157 | * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing | |
1158 | compiler warning. | |
1159 | ||
4fa7e2ff JB |
1160 | 2013-03-13 Joel Brobecker <brobecker@adacore.com> |
1161 | ||
1162 | * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]: | |
1163 | Remove extraneous NULL element. | |
1164 | ||
8ddb1965 YQ |
1165 | 2013-03-13 Yao Qi <yao@codesourcery.com> |
1166 | ||
1167 | * tracepoint.c (traceframe_read_tsv): Look for the last matched | |
1168 | 'V' block in trace frame. | |
1169 | ||
9accd112 MM |
1170 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
1171 | ||
1172 | * target.h (struct target_ops): Add btrace ops. | |
1173 | (target_supports_btrace): New macro. | |
1174 | (target_enable_btrace): New macro. | |
1175 | (target_disable_btrace): New macro. | |
1176 | (target_read_btrace): New macro. | |
1177 | * gdbthread.h (struct thread_info): Add btrace field. | |
1178 | * server.c: Include btrace-common.h. | |
1179 | (handle_btrace_general_set): New function. | |
1180 | (handle_btrace_enable): New function. | |
1181 | (handle_btrace_disable): New function. | |
1182 | (handle_general_set): Call handle_btrace_general_set. | |
1183 | (handle_qxfer_btrace): New function. | |
1184 | (struct qxfer qxfer_packets[]): Add btrace entry. | |
1185 | * inferiors.c (remove_thread): Disable btrace. | |
1186 | * linux-low: Include linux-btrace.h. | |
1187 | (linux_low_enable_btrace): New function. | |
1188 | (linux_low_read_btrace): New function. | |
1189 | (linux_target_ops): Add btrace ops. | |
1190 | * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o. | |
1191 | Add srv_linux_btrace=yes. | |
1192 | (x86_64-*-linux*): Add linux-btrace.o. | |
1193 | Add srv_linux_btrace=yes. | |
1194 | * configure.ac: Define HAVE_LINUX_BTRACE. | |
1195 | * config.in: Regenerated. | |
1196 | * configure: Regenerated. | |
1197 | ||
5cc22e4c MM |
1198 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
1199 | ||
1200 | * server.c (handle_qxfer): Preserve error message if -3 is | |
1201 | returned. | |
1202 | (qxfer): Document the -3 return value. | |
1203 | ||
7c97f91e MM |
1204 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
1205 | ||
1206 | * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c. | |
1207 | (linux_btrace_h): New variable. | |
1208 | (linux-btrace.o): New rule. | |
1209 | ||
be9a119c | 1210 | 2013-03-08 Stan Shebs <stan@codesourcery.com> |
f6f899bf HAQ |
1211 | Hafiz Abid Qadeer <abidh@codesourcery.com> |
1212 | ||
1213 | * tracepoint.c (trace_buffer_size): New global. | |
1214 | (DEFAULT_TRACE_BUFFER_SIZE): New define. | |
1215 | (init_trace_buffer): Change to one-argument function. Allocate | |
1216 | trace buffer memory. | |
1217 | (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to | |
1218 | handle QTBuffer:size packet. | |
1219 | (cmd_bigqtbuffer_size): New function. | |
1220 | (initialize_tracepoint): Call init_trace_buffer with | |
1221 | DEFAULT_TRACE_BUFFER_SIZE. | |
1222 | * server.c (handle_query): Add QTBuffer:size in the | |
1223 | supported packets. | |
1224 | ||
e64f7499 YQ |
1225 | 2013-03-07 Yao Qi <yao@codesourcery.com> |
1226 | ||
1227 | * tracepoint.c (cur_action, cur_step_action): Make them unsigned. | |
1228 | (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead | |
1229 | of -1. | |
1230 | (cmd_qtsp): Adjust condition. Do post increment. | |
1231 | Set cur_action and cur_step_action back to 0. | |
1232 | ||
f0ae6fc3 PA |
1233 | 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com> |
1234 | ||
1235 | PR server/15236 | |
1236 | * linux-low.c (linux_write_memory): Return early success if LEN is | |
1237 | zero. | |
1238 | ||
b5b0b0af CV |
1239 | 2013-03-05 Corinna Vinschen <vinschen@redhat.de> |
1240 | ||
334ad4a8 | 1241 | * configure.srv: Add x86_64-*-cygwin* as target. |
b5b0b0af | 1242 | |
589bc927 TT |
1243 | 2013-02-28 Tom Tromey <tromey@redhat.com> |
1244 | ||
1245 | * configure.ac: Invoke AC_SYS_LARGEFILE. | |
1246 | * configure, config.in: Rebuild. | |
1247 | ||
dfe07582 CV |
1248 | 2013-02-28 Corinna Vinschen <vinschen@redhat.com> |
1249 | ||
1250 | * win32-low.c: Throughout, fix format strings and casts of | |
1251 | printf-like functions to avoid type related warnings on all | |
1252 | platforms. | |
1253 | (get_child_debug_event): Print dwDebugEventCode as hex since | |
1254 | that's how it's usually documented. | |
1255 | ||
736cd585 YQ |
1256 | 2013-02-28 Yao Qi <yao@codesourcery.com> |
1257 | ||
1258 | * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of | |
1259 | pulongest. | |
1260 | ||
e1f58301 JW |
1261 | 2013-02-27 Jiong Wang <jiwang@tilera.com> |
1262 | ||
1263 | * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c. | |
1264 | (reg-tilegx32.c): New rule. | |
1265 | * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj. | |
1266 | * linux-tile-low.c (tile_arch_setup): New function. Invoke | |
1267 | different register info initializer according to elf class. | |
1268 | (init_registers_tilgx32): New function. The tilegx32 register info | |
1269 | initializer. | |
1270 | (tile_fill_gregset): Use "uint_reg_t" to represent register size. | |
1271 | (tile_store_gregset): Likewise. | |
1272 | ||
d171ca78 YQ |
1273 | 2013-02-27 Yao Qi <yao@codesourcery.com> |
1274 | ||
1275 | * server.c (process_point_options): Print debug message when | |
1276 | debug_threads is true. | |
1277 | ||
282bbdf3 YQ |
1278 | 2013-02-26 Yao Qi <yao@codesourcery.com> |
1279 | ||
1280 | * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF. | |
1281 | ||
aca22551 PA |
1282 | 2013-02-19 Pedro Alves <palves@redhat.com> |
1283 | Kai Tietz <ktietz@redhat.com> | |
1284 | ||
1285 | PR gdb/15161 | |
1286 | ||
1287 | * server.c (handle_query) <CRC check>: Use unpack_varlen_hex | |
1288 | instead of strtoul to extract address from packet. | |
1289 | (process_serial_event) <'z'>: Likewise. | |
1290 | ||
4f3cee1c YQ |
1291 | 2013-02-18 Yao Qi <yao@codesourcery.com> |
1292 | ||
1293 | * linux-bfin-low.c (the_low_target): Use NULL instead of 0. | |
1294 | ||
8e1d55a3 PA |
1295 | 2013-02-14 Pedro Alves <palves@redhat.com> |
1296 | ||
1297 | Plug memory leak. | |
1298 | ||
1299 | * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME, | |
1300 | TRACING_NOTES and TRACING_STOP_NOTE before clobbering. | |
1301 | ||
458820da PA |
1302 | 2013-02-14 Pedro Alves <palves@redhat.com> |
1303 | ||
1304 | * tracepoint.c (cmd_qtdpsrc): Use savestring. | |
1305 | ||
baea0dae PA |
1306 | 2013-02-14 Pedro Alves <palves@redhat.com> |
1307 | ||
1308 | * tracepoint.c (save_string): Delete. | |
1309 | (add_tracepoint_action): Use savestring instead of save_string. | |
1310 | ||
0b1afbb3 PA |
1311 | 2013-02-12 Pedro Alves <palves@redhat.com> |
1312 | ||
1313 | * linux-xtensa-low.c: Ditto. | |
1314 | * xtensa-xtregs.c: Ditto. | |
1315 | ||
8a4ac37e PA |
1316 | 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com> |
1317 | ||
1318 | * thread-db.c (thread_db_get_tls_address): NULL pointer check | |
1319 | thread_db. | |
1320 | ||
148de6bb MS |
1321 | 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com> |
1322 | ||
1323 | * linux-aarch64-low.c (aarch64_arch_setup): Clamp | |
1324 | aarch64_num_wp_regs and aarch64_num_bp_regs to | |
1325 | AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively. | |
1326 | ||
55fac6e0 MS |
1327 | 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com> |
1328 | ||
1329 | * linux-aarch64-low.c (ps_get_thread_area): Replace | |
1330 | PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET. | |
1331 | ||
176eb98c MS |
1332 | 2013-02-04 Jim MacArthur <jim.macarthur@arm.com> |
1333 | Marcus Shawcroft <marcus.shawcroft@arm.com> | |
1334 | Nigel Stephens <nigel.stephens@arm.com> | |
1335 | Yufeng Zhang <yufeng.zhang@arm.com> | |
1336 | ||
1337 | * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c. | |
1338 | (aarch64.c, aarch64-without-fpu.c): New targets. | |
1339 | * configure.srv (aarch64*-*-linux*): New. | |
1340 | * linux-aarch64-low.c: New file. | |
1341 | ||
56f7af9c MS |
1342 | 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com> |
1343 | ||
43aaf8b6 | 1344 | * linux-low.c (handle_extended_wait, linux_create_inferior) |
56f7af9c MS |
1345 | (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp) |
1346 | (dequeue_one_deferred_signal, linux_resume_one_thread) | |
1347 | (fetch_register, linux_write_memory, linux_enable_event_reporting) | |
1348 | (linux_tracefork_grandchild, linux_test_for_tracefork) | |
1349 | (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add | |
1350 | PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments | |
1351 | where the argument is 0. | |
1352 | ||
60f662b0 YQ |
1353 | 2013-01-25 Yao Qi <yao@codesourcery.com> |
1354 | ||
1355 | * event-loop.c: Include "queue.h". | |
1356 | (gdb_event_p): New typedef. | |
1357 | (struct gdb_event) <next_event>: Remove. | |
1358 | (event_queue): Change to QUEUE(gdb_event_p). | |
1359 | (async_queue_event): Remove. | |
1360 | (gdb_event_xfree): New. | |
1361 | (initialize_event_loop): New. | |
1362 | (process_event): Use API from QUEUE. | |
1363 | (wait_for_event): Likewise. | |
1364 | * server.c (main): Call initialize_event_loop. | |
1365 | * server.h (initialize_event_loop): Declare. | |
1366 | ||
5ae4861a YQ |
1367 | 2013-01-18 Yao Qi <yao@codesourcery.com> |
1368 | ||
1369 | * ax.h (struct eval_agent_expr_context): New. | |
1370 | (gdb_eval_agent_expr): Update declaration. | |
1371 | * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and | |
1372 | TFRAME. Add new argument CTX. | |
1373 | * server.h (struct eval_agent_expr_context): Declare. | |
1374 | (agent_mem_read, agent_tsv_read): Update declaration. | |
1375 | (agent_mem_read_string): Likewise. | |
1376 | * tracepoint.c (eval_tracepoint_agent_expr): Remove. | |
1377 | (add_traceframe_block): Add new argument TPOINT. | |
1378 | Increase TPOINT->traceframe_usage. | |
1379 | (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of | |
1380 | eval_tracepoint_agent_expr. | |
1381 | (condition_true_at_tracepoint): Likewise. | |
1382 | (agent_mem_read): Remove argument TFRAME. Add argument CTX. | |
1383 | (agent_mem_read_string, agent_tsv_read): Likewise. | |
1384 | ||
85e00e85 YQ |
1385 | 2013-01-16 Yao Qi <yao@codesourcery.com> |
1386 | ||
1387 | * linux-low.c (linux_resume_one_lwp): Don't check | |
1388 | 'lwp->bp_reinsert != 0'. | |
1389 | ||
4039cf45 JB |
1390 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
1391 | Pedro Alves <palves@redhat.com> | |
1392 | ||
1393 | * lynx-low.c (ptrace_request_to_str): Define a temporary | |
1394 | macro and use it to simplify this function's implementation. | |
1395 | ||
9044dee2 JB |
1396 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
1397 | ||
1398 | * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace | |
1399 | sets errno. | |
1400 | ||
e6352c8f JB |
1401 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
1402 | ||
1403 | * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles. | |
1404 | ||
50681a27 JB |
1405 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
1406 | ||
1407 | * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles. | |
1408 | ||
3f6e77ef JB |
1409 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
1410 | ||
1411 | * lynx-low.c (lynx_resume): Use the resume_info parameter | |
1412 | to determine the ptid for the lynx_ptrace call, unless | |
1413 | it is equal to minus_one_ptid, in which case we use the | |
1414 | ptid of the current_inferior. | |
1415 | (lynx_wait_1): After having received a thread create/exit | |
1416 | event, resume the inferior's execution using the signaling | |
1417 | thread's ptid, rather than the old ptid. | |
1418 | ||
7fda33ae JB |
1419 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
1420 | ||
1421 | * lynx-low.c (lynx_resume): Delete variable ret. | |
1422 | ||
b9786c74 JB |
1423 | 2013-01-01 Joel Brobecker <brobecker@adacore.com> |
1424 | ||
1425 | * gdbreplay.c (gdbreplay_version): Update copyright year. | |
1426 | * server.c (gdbserver_version): Likewise. | |
1427 | ||
8b93d60f JB |
1428 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
1429 | ||
1430 | * lynx-low.c (lynx_wait_1): Add debug trace before adding | |
1431 | new thread. | |
1432 | ||
037335a7 JB |
1433 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
1434 | ||
1435 | * lynx-low.c (ptrace_request_to_str): Add handling for | |
1436 | PTRACE_GETTRACESIG. | |
1437 | ||
52d4cbd8 JB |
1438 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
1439 | ||
1440 | * lynx-low.c (lynx_attach): Delete variable new_process. | |
1441 | ||
ab8f6ca9 JB |
1442 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
1443 | ||
1444 | * lynx-low.c (lynx_create_inferior): Delete variable | |
1445 | new_process. | |
1446 | ||
78cbc024 JB |
1447 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
1448 | ||
1449 | * lynx-low.c (ptrace_request_to_str): Do not handle | |
1450 | PTRACE_GETTHREADLIST if this macro does not exist. | |
1451 | ||
14a00470 YQ |
1452 | 2012-12-15 Yao Qi <yao@codesourcery.com> |
1453 | ||
1454 | * Makefile.in (OBS): Add notif.o. | |
1455 | * notif.c, notif.h: New. | |
1456 | * server.c: Include "notif.h". | |
1457 | (struct vstop_notif) <next>: Remove. | |
1458 | <base>: New field. | |
1459 | (queue_stop_reply): Update. | |
1460 | (push_event, send_next_stop_reply): Remove. | |
1461 | (discard_queued_stop_replies): Update. | |
1462 | (notif_stop): New variable. | |
1463 | (handle_v_stopped): Remove. | |
1464 | (handle_v_requests): Don't call handle_v_stopped. Call | |
1465 | handle_ack_notif instead. | |
1466 | (queue_stop_reply_callback): Call notif_event_enque instead | |
1467 | of queue_stop_reply. | |
1468 | (handle_status): Don't call send_next_stop_reply, call | |
1469 | notif_write_event instead. | |
1470 | (kill_inferior_callback): Likewise. | |
1471 | (detach_or_kill_inferior_callback): Likewise. | |
1472 | (main): Call initialize_notif. | |
1473 | (process_serial_event): Call QUEUE_is_empty. | |
1474 | (handle_target_event): Call notif_push instead of push event. | |
1475 | * server.h (push_event): Remove declaration. | |
1476 | ||
61c125b9 TT |
1477 | 2012-12-10 Tom Tromey <tromey@redhat.com> |
1478 | ||
1479 | * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre) | |
1480 | (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New | |
1481 | macros. | |
1482 | (.c.o): Rewrite. | |
1483 | (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o) | |
1484 | (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o) | |
1485 | (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o) | |
1486 | (amd64-linux-ipa.o, ax.o): Rewrite. | |
1487 | (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o) | |
1488 | (proc-service.o, regcache.o, remote-utils.o, server.o, target.o) | |
1489 | (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove. | |
1490 | (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o) | |
1491 | (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o) | |
1492 | (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite. | |
1493 | (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o) | |
1494 | (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o) | |
1495 | (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o) | |
1496 | (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o) | |
1497 | (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o) | |
1498 | (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o) | |
1499 | (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o) | |
1500 | (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o) | |
1501 | (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o) | |
1502 | (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o) | |
1503 | (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o) | |
1504 | (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o) | |
1505 | (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o) | |
1506 | (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o) | |
1507 | (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o) | |
1508 | (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o) | |
1509 | (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o) | |
1510 | (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o) | |
1511 | (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o) | |
1512 | (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o) | |
1513 | (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o) | |
1514 | (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o) | |
1515 | (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o) | |
1516 | (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o) | |
1517 | (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o) | |
1518 | (reg-tilegx.o): Remove. | |
1519 | (all_object_files): New macro. | |
1520 | Include .deps files. | |
1521 | * aclocal.m4, configure: Rebuild. | |
1522 | * acinclude.m4: Include depstand.m4, lead-dot.m4. | |
1523 | * configure.ac: Invoke ZW_CREATE_DEPDIR, | |
1524 | ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition. | |
1525 | ||
e90e9ad9 TT |
1526 | 2012-12-05 Tom Tromey <tromey@redhat.com> |
1527 | ||
1528 | PR gdb/14917: | |
1529 | * server.h (current_insn_ptr, emit_error): Declare 'extern'. | |
1530 | ||
02d403bf | 1531 | 2012-11-28 Markus Metzger <markus.t.metzger@intel.com> |
945bf713 MM |
1532 | |
1533 | * configure.ac: Check for linux/perf_event.h. | |
1534 | * config.in: Regenerated. | |
1535 | * configure: Regenerated. | |
1536 | ||
0270a750 PA |
1537 | 2012-11-26 Maxime Villard <rustyBSD@gmx.fr> |
1538 | ||
1539 | * hostio.c (handle_readlink): Decrease buffer size | |
1540 | parameter passed to readlink by one byte. | |
1541 | ||
8c29b58e YQ |
1542 | 2012-11-26 Yao Qi <yao@codesourcery.com> |
1543 | ||
1544 | * configure.ac (build_warnings): Append '-Wempty-body'. | |
1545 | * configure: Regenerated. | |
1546 | * linux-low.c (linux_create_inferior): Use braces for empty 'if' | |
1547 | body. | |
1548 | ||
8bdce1ff PM |
1549 | 2012-11-15 Pierre Muller <muller@sourceware.org> |
1550 | ||
1551 | * configure.ac (AC_CHECK_HEADERS): Add wait.h header. | |
1552 | * config.in: Regenerate. | |
1553 | * configure: Regenerate. | |
1554 | * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header. | |
1555 | Use "gdb_wait.h" header instead of <sys/wait.h> header. | |
1556 | * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header. | |
1557 | * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h> | |
1558 | header. | |
1559 | * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header | |
1560 | instead of <sys/wait.h> header. | |
1561 | * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header. | |
1562 | ||
02d403bf | 1563 | 2012-11-13 Markus Metzger <markus.t.metzger@intel.com> |
3ba6ad0f MM |
1564 | |
1565 | * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER | |
1566 | (various make rules): Remove -DGDBSERVER | |
1567 | ||
fbd5db48 YQ |
1568 | 2012-11-09 Yao Qi <yao@codesourcery.com> |
1569 | ||
1570 | * spu-low.c (current_ptid): Move it to .. | |
1571 | * gdbthread.h: ... here. New. | |
1572 | * remote-utils.c (read_ptid): Use macro 'current_ptid'. | |
1573 | * server.c (myresume, process_serial_event): Likewise. | |
1574 | * thread-db.c (thread_db_find_new_threads): Likewise. | |
1575 | * tracepoint.c (run_inferior_command): Likewise. | |
1576 | ||
b3dc46ff AB |
1577 | 2012-10-01 Andrew Burgess <aburgess@broadcom.com> |
1578 | ||
1579 | * server.c (handle_search_memory_1): Include access length in | |
1580 | warning message. | |
1581 | ||
07c04788 HPN |
1582 | 2012-09-05 Michael Brandt <michael.brandt@axis.com> |
1583 | ||
1584 | * linux-crisv32-low.c: Fix compile errors. | |
1585 | ||
918d227b YQ |
1586 | 2012-09-04 Yao Qi <yao@codesourcery.com> |
1587 | ||
1588 | * tracepoint.c (cmd_qtsv): Adjust debug message. | |
1589 | Don't check CUR_TPOINT. | |
1590 | ||
18c1b81a YQ |
1591 | 2012-08-28 Yao Qi <yao@codesourcery.com> |
1592 | ||
1593 | * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF. | |
1594 | * server.h: Include 'libiberty.h' and 'ansidecl.h'. | |
1595 | (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove. | |
1596 | Remove declarations of xmalloc, xreallloc, xstrdup and | |
1597 | freeargv. | |
1598 | * Makefile.in (libiberty_h): New. | |
1599 | (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'. | |
1600 | (linux-bfin-low.o): Append dependency 'libiberty.h'. | |
1601 | ||
dc82f37b YQ |
1602 | 2012-08-23 Yao Qi <yao@codesourcery.com> |
1603 | ||
1604 | * server.h: Remove declaration of 'xsnprintf'. | |
1605 | ||
406b1477 KS |
1606 | 2012-08-22 Keith Seitz <keiths@redhat.com> |
1607 | ||
1608 | * server.h: Include build-gnulib-gbserver/config.h. | |
1609 | * gdbreplay.c: Likewise. | |
1610 | ||
e6712ff1 DE |
1611 | 2012-08-08 Doug Evans <dje@google.com> |
1612 | ||
1613 | * Makefile.in (SFILES): Add gdb_vecs.c. | |
1614 | (OBS): Add gdb_vecs.o. | |
1615 | (gdb_vecs_h, host_defs_h): New variables. | |
1616 | (thread-db.o): Add $(gdb_vecs_h) dependency. | |
1617 | (gdb_vecs.o): New rule. | |
1618 | * thread-db.c: #include "gdb_vecs.h". | |
1619 | (thread_db_load_search): Use a vector to iterate over path elements. | |
1620 | Handle text appearing after "$pdir". | |
1621 | ||
1622 | * configure.ac: Add check for strstr. | |
1623 | * config.in: Regenerate. | |
1624 | * configure: Regenerate. | |
1625 | ||
7c3270ae UW |
1626 | 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
1627 | ||
1628 | * hostio.c (handle_pread): If pread fails, fall back to attempting | |
1629 | lseek/read. | |
1630 | (handle_pwrite): Likewise for pwrite. | |
1631 | ||
b62e2b27 UW |
1632 | 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
1633 | ||
1634 | * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish | |
1635 | between unsupported TYPE and unimplementable ADDR/LEN combination. | |
1636 | (arm_insert_point): Act on new return value. | |
1637 | ||
78a99e91 PA |
1638 | 2012-07-31 Pedro Alves <palves@redhat.com> |
1639 | ||
1640 | * server.c (process_point_options): Only skip tokens if we find | |
1641 | one that is unrecognized. Don't treat 'X' specially while | |
1642 | skipping unrecognized tokens. | |
1643 | ||
fcf303ab UW |
1644 | 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org> |
1645 | ||
1646 | * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt | |
1647 | to 4-byte-align HW breakpoint addresses for Thumb. | |
1648 | ||
7255706c YQ |
1649 | 2012-07-27 Yao Qi <yao@codesourcery.com> |
1650 | ||
1651 | PR remote/14161. | |
1652 | ||
1653 | * server.h: Declare gdb_agent_about_to_close. | |
1654 | * target.c (kill_inferior): Include "agent.h". | |
1655 | New. Send command 'kill'. | |
1656 | * target.h (kill_inferior): Removed macro. | |
1657 | * tracepoint.c (gdb_agent_about_to_close): New. | |
1658 | (gdb_agent_helper_thread): Handle command 'close'. | |
1659 | Wait endlessly until the inferior stops. | |
1660 | Install gdb_agent_remove_socket to atexit hook. | |
1661 | (agent_socket_name): New static variable. | |
1662 | (gdb_agent_socket_init): Replace local variable 'name' with | |
1663 | 'agent_socket_name'. | |
1664 | (gdb_agent_remove_socket): New. | |
1665 | ||
5a3f286f YQ |
1666 | 2012-07-27 Yao Qi <yao@codesourcery.com> |
1667 | ||
1668 | * server.c (process_point_options): Stop at 'X' when parsing. | |
1669 | ||
961bd387 ME |
1670 | 2012-07-19 Michael Eager <eager@eagercon.com> |
1671 | ||
a261b8f5 | 1672 | * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate |
961bd387 ME |
1673 | to hw_execute. |
1674 | * linux-x86-low.c (x86_insert_point, x86_remove_point): | |
1675 | Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del | |
1676 | hardware breakpoint. | |
1677 | ||
aa7c7447 JK |
1678 | 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
1679 | ||
1680 | * gdbserver/linux-low.c (initialize_low): Call | |
1681 | linux_ptrace_init_warnings. | |
1682 | ||
7f216e7c DE |
1683 | 2012-07-02 Doug Evans <dje@google.com> |
1684 | ||
1685 | * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from | |
1686 | pointer to int. | |
1687 | ||
d3ce09f5 SS |
1688 | 2012-07-02 Stan Shebs <stan@codesourcery.com> |
1689 | ||
1690 | * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define. | |
1691 | (ax.o): Add it to build rule. | |
1692 | (ax-ipa.o): Ditto. | |
1693 | (OBS): Add format.o. | |
1694 | (IPA_OBS): Add format.o. | |
1695 | * server.c (handle_query): Claim support for breakpoint commands. | |
1696 | (process_point_options): Add command case. | |
1697 | (process_serial_event): Leave running if there are printfs in | |
1698 | effect. | |
1699 | * mem-break.h (any_persistent_commands): Declare. | |
1700 | (add_breakpoint_commands): Declare. | |
1701 | (gdb_no_commands_at_breakpoint): Declare. | |
1702 | (run_breakpoint_commands): Declare. | |
1703 | * mem-break.c (struct point_command_list): New struct. | |
1704 | (struct breakpoint): New field command_list. | |
1705 | (any_persistent_commands): New function. | |
1706 | (add_commands_to_breakpoint): New function. | |
1707 | (add_breakpoint_commands): New function. | |
1708 | (gdb_no_commands_at_breakpoint): New function. | |
1709 | (run_breakpoint_commands): New function. | |
1710 | * linux-low.c (linux_wait_1): Test for and run breakpoint commands | |
1711 | locally. | |
1712 | * ax.c: Include format.h. | |
1713 | (ax_printf): New function. | |
1714 | (gdb_eval_agent_expr): Add printf opcode. | |
1715 | ||
2f8f6aed YQ |
1716 | 2012-06-13 Yao Qi <yao@codesourcery.com> |
1717 | ||
1718 | * server.c (start_inferior): Remove duplicated writes to fields | |
1719 | 'last_resume_kind' and 'last_status' of 'current_inferior'. | |
1720 | ||
0c9070b3 YQ |
1721 | 2012-06-12 Yao Qi <yao@codesourcery.com> |
1722 | Pedro Alves <palves@redhat.com> | |
1723 | ||
1724 | * linux-low.c (linux_set_resume_request): Simplify predicate. Add | |
1725 | comment. | |
1726 | * server.c (handle_v_cont): Extend comment. | |
1727 | ||
c52daf70 YQ |
1728 | 2012-06-11 Yao Qi <yao@codesourcery.com> |
1729 | ||
1730 | * linux-low.c (linux_attach): Add 'static'. | |
1731 | ||
d38bbb0a YQ |
1732 | 2012-06-06 Yao Qi <yao@codesourcery.com> |
1733 | ||
1734 | * ax.c (gdb_eval_agent_expr): Print `top' in hex. | |
1735 | ||
89dc0afd JK |
1736 | 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
1737 | ||
1738 | Fix gcc -flto compilation warning. | |
1739 | * server.c (main): Make variable multi_mode and attach volatile. | |
1740 | ||
75f62ce7 TJB |
1741 | 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
1742 | ||
1743 | * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP | |
1744 | if the platform doesn't know about it. | |
1745 | ||
65f479b6 PA |
1746 | 2012-05-30 Jeff Kenton <jkenton@tilera.com> |
1747 | ||
1748 | * Makefile.in (SFILES): Add linux-tile-low.c. | |
1749 | (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules. | |
1750 | * configure.srv: Handle tilegx-*-linux*. | |
1751 | * linux-tile-low.c: New file. | |
1752 | ||
0c5bf5a9 JK |
1753 | 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
1754 | ||
1755 | * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1. | |
1756 | ||
a493e3e2 PA |
1757 | 2012-05-24 Pedro Alves <palves@redhat.com> |
1758 | ||
1759 | PR gdb/7205 | |
1760 | ||
43aaf8b6 | 1761 | Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. |
a493e3e2 | 1762 | |
2ea28649 PA |
1763 | 2012-05-24 Pedro Alves <palves@redhat.com> |
1764 | ||
1765 | PR gdb/7205 | |
1766 | ||
1767 | Replace target_signal with gdb_signal throughout. | |
1768 | ||
8d409d16 MR |
1769 | 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com> |
1770 | ||
1771 | * linux-low.c (linux_store_registers): Avoid the copying sequence | |
1772 | when no data has been retrieved by ptrace. | |
1773 | ||
23512c01 MGD |
1774 | 2012-05-22 Will Deacon <will.deacon@arm.com> |
1775 | ||
1776 | * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)): | |
1777 | Include asm/ptrace.h. | |
1778 | (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not | |
1779 | already defined. | |
1780 | ||
4934b29e MR |
1781 | 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com> |
1782 | ||
1783 | * linux-low.c (linux_store_registers): Don't re-retrieve data | |
1784 | with ptrace that has already been obtained from /proc. Always | |
1785 | copy any data retrieved with ptrace to the buffer supplied. | |
1786 | ||
bde24c0a PA |
1787 | 2012-05-11 Yao Qi <yao@codesourcery.com> |
1788 | Pedro Alves <palves@redhat.com> | |
1789 | ||
1790 | * linux-low.c (enum stopping_threads_kind): New. | |
1791 | (stopping_threads): Change type to `enum stopping_threads_kind'. | |
1792 | (handle_extended_wait): If stopping and suspending threads, leave | |
1793 | the new_lwp suspended too. | |
1794 | (linux_wait_for_event): Adjust. | |
1795 | (stop_all_lwps): Set `stopping_threads' to | |
1796 | STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on | |
1797 | whether we're suspending threads or just stopping them. Assert no | |
1798 | recursion happens. | |
1799 | ||
623b6bdf YQ |
1800 | 2012-04-29 Yao Qi <yao@codesourcery.com> |
1801 | ||
1802 | * server.h: Move some code to ... | |
1803 | * gdbthread.h: ... here. New. | |
1804 | * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h | |
1805 | (remote-utils.o, server.o, target.o tracepoint.o): Likewise. | |
1806 | (nto-low.o, win32-low.o): Likewise. | |
1807 | * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h. | |
1808 | * regcache.c, remote-utils.c, server.c: Likewise. | |
1809 | * target.c, tracepoint.c, win32-low.c: Likewise. | |
1810 | ||
f15f9948 TJB |
1811 | 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
1812 | ||
1813 | * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c. | |
1814 | (PTRACE_ARG4_TYPE): Likewise. | |
1815 | (PTRACE_XFER_TYPE): Likewise. | |
1816 | * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of | |
1817 | ptrace to PTRACE_ARG3_TYPE. | |
1818 | * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h. | |
1819 | (PTRACE_ARG4_TYPE): Likewise. | |
1820 | (PTRACE_XFER_TYPE): Likewise. | |
1821 | (linux_detach_one_lwp): Cast fourth argument of | |
1822 | ptrace to long then PTRACE_ARG4_TYPE. | |
1823 | (regsets_fetch_inferior_registers): Cast third argument of | |
1824 | ptrace to long then PTRACE_ARG3_TYPE. | |
1825 | (regsets_store_inferior_registers): Likewise. | |
1826 | ||
38ea300a PA |
1827 | 2012-04-20 Pedro Alves <palves@redhat.com> |
1828 | ||
1829 | * configure: Regenerate. | |
1830 | ||
c971b7fa PA |
1831 | 2012-04-19 Pedro Alves <palves@redhat.com> |
1832 | ||
43aaf8b6 | 1833 | * Makefile.in (GNULIB_BUILDDIR): New. |
c971b7fa | 1834 | (LIBGNU, INCGNU, GNULIB_H): Adjust. |
43aaf8b6 PA |
1835 | (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New. |
1836 | (all, install-only, uninstall, clean-info, all-lib, clean): No | |
1837 | longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do. | |
1838 | (maintainer-clean realclean distclean): Use subdir_do. | |
1839 | (subdir_do): New. | |
1840 | (gnulib/import/Makefile): Adjust. Replace gnulib/import with | |
c971b7fa | 1841 | $(GNULIB_BUILDDIR). Don't pass argument to config.status. |
43aaf8b6 PA |
1842 | * acinclude.m4: Include acx_configure_dir.m4. |
1843 | * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE | |
1844 | calls. Call AC_PROG_RANLIB. Configure gnulib using | |
1845 | ACX_CONFIGURE_DIR. | |
1846 | (GNULIB): New. | |
1847 | (GNULIB_STDINT_H): Adjust. | |
1848 | (AC_OUTPUT): Don't output gnulib/Makefile anymore. | |
1849 | * gdbreplay.c: Include build-gnulib/config.h. | |
1850 | * server.h: Likewise. | |
1851 | * aclocal.m4: Regenerate. | |
1852 | * config.in: Regenerate. | |
1853 | * configure: Regenerate. | |
c971b7fa | 1854 | |
809277f8 PA |
1855 | 2012-04-19 Pedro Alves <palves@redhat.com> |
1856 | ||
1857 | * Makefile.in (LIBGNU, INCGNU): Adjust. | |
1858 | (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust. | |
1859 | (all, install-only, uninstall, clean-info, all-lib, clean) | |
1860 | (maintainer-clean, Makefile, gnulib/Makefile): Adjust. | |
1861 | * configure.ac: Adjust AC_OUTPUT output. | |
1862 | * aclocal.m4: Regenerate. | |
1863 | * configure: Regenerate. | |
1864 | ||
fd9bb8b8 PA |
1865 | 2012-04-19 Pedro Alves <palves@redhat.com> |
1866 | ||
1867 | * Makefile.in (generated_files): New. | |
1868 | (server_h): Remove the explicit dependency on config.h, and depend | |
1869 | on $generated_files. | |
1870 | ||
1c298c66 PA |
1871 | 2012-04-19 Pedro Alves <palves@redhat.com> |
1872 | ||
1873 | * Makefile.in (INCGNU): Add -Ignulib. | |
1874 | ||
57c4b50b PA |
1875 | 2012-04-19 Pedro Alves <palves@redhat.com> |
1876 | ||
1877 | * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ... | |
1878 | (INCGNU): ... this, and spell out -I here. | |
1879 | (GNULIB_LIB): Rename to ... | |
1880 | (LIBGNU): ... this. | |
1881 | (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust. | |
1882 | ||
1030e047 PA |
1883 | 2012-04-19 Pedro Alves <palves@redhat.com> |
1884 | ||
1885 | * config.in: Regenerate. | |
1886 | ||
447d4319 PA |
1887 | 2012-04-19 Pedro Alves <palves@redhat.com> |
1888 | ||
1889 | * configure.ac: Remove AC_CHECK_DECLS check for memmem. | |
1890 | * server.h (memmem): Remove declaration. | |
1891 | * config.in: Regenerate. | |
1892 | * configure: Regenerate. | |
1893 | ||
aad9eab9 YQ |
1894 | 2012-04-19 Yao Qi <yao@codesourcery.com> |
1895 | ||
1896 | * Makefile.in (SFILES): Add common/vec.c. | |
1897 | (OBS): Add vec.o. | |
1898 | (vec.o): New rule. | |
1899 | ||
3e10640f YQ |
1900 | 2012-04-19 Yao Qi <yao@codesourcery.com> |
1901 | ||
1902 | * remote-utils.c (prepare_resume_reply): Replace with macro | |
1903 | target_core_of_thread. | |
1904 | * server.c (handle_qxfer_threads_proper): Likewise. | |
1905 | * target.h (traget_core_of_thread): New macro. | |
1906 | ||
71622373 PA |
1907 | 2012-04-18 Pedro Alves <palves@redhat.com> |
1908 | ||
1909 | * aclocal.m4: Regenerate. | |
1910 | * configure: Regenerate. | |
1911 | ||
80d26939 YQ |
1912 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
1913 | ||
1914 | * tracepoint.c (cmd_qtstart): Download tracepoints even when they are | |
1915 | duplicated on address. | |
1916 | ||
42476b70 YQ |
1917 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
1918 | ||
1919 | * tracepoint.c (COPY_FIELD_TO_BUF): New macro. | |
1920 | (struct tracepoint_action_ops) <send>: New field. | |
1921 | (m_tracepoint_action_send, r_tracepoint_action_send): New. | |
1922 | (agent_expr_send, x_tracepoint_action_send): New. | |
1923 | (l_tracepoint_action_send): New. | |
1924 | (cmd_qtdp): Download and install tracepoint | |
1925 | according to `use_agent'. | |
1926 | (run_inferior_command): Add one more parameter `len'. | |
1927 | Update callers. | |
1928 | (tracepoint_send_agent): New. | |
1929 | (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent. | |
1930 | ||
7bc83639 YQ |
1931 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
1932 | ||
1933 | * tracepoint.c (download_tracepoints): Moved to ... | |
1934 | (cmd_qtstart): ... here. | |
1935 | ||
5f18041e YQ |
1936 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
1937 | ||
1938 | * tracepoint.c: Include inttypes.h. | |
1939 | (struct collect_memory_action): Use sized types. | |
1940 | (struct tracepoint): Likewise. | |
1941 | (cmd_qtdp, stop_tracing): Update print specifiers. | |
1942 | (cmd_qtp, response_tracepoint): Likewise. | |
1943 | (collect_data_at_tracepoint): Likewise. | |
1944 | (collect_data_at_step): Likewise. | |
1945 | ||
55a8c076 YQ |
1946 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
1947 | ||
1948 | Import gnulib module inttypes. | |
1949 | * aclocal.m4, config.in, configure: Regenerated. | |
1950 | ||
dc750257 YQ |
1951 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
1952 | ||
1953 | * Makefile.in (maintainer-clean, realclean, distclean): Remove | |
1954 | Makefile and config.status at last. | |
1955 | ||
0ab5faf9 YQ |
1956 | 2012-04-13 Yao Qi <yao@codesourcery.com> |
1957 | ||
1958 | * tracepoint.c: Include stdint.h unconditionally. | |
1959 | ||
18f5fd81 TJB |
1960 | 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
1961 | ||
1962 | * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based | |
1963 | on BFD_HAVE_SYS_PROCFS_TYPE. | |
1964 | * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h. | |
1965 | * configure: Regenerate. | |
1966 | * config.in: Likewise. | |
1967 | ||
4d47af5c L |
1968 | 2012-04-13 H.J. Lu <hongjiu.lu@intel.com> |
1969 | ||
1970 | * Makefile.in (clean): Also remove x32.c x32-linux.c | |
1971 | x32-avx.c x32-avx-linux.c. | |
1972 | (x32.o): New target. | |
1973 | (x32.c): Likewise. | |
1974 | (x32-linux.o): Likewise. | |
1975 | (x32-linux.c): Likewise. | |
1976 | (x32-avx.o): Likewise. | |
1977 | (x32-avx.c): Likewise. | |
1978 | (x32-avx-linux.o): Likewise. | |
1979 | (x32-avx-linux.c): Likewise. | |
1980 | ||
1981 | * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o. | |
1982 | (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o. | |
1983 | (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml. | |
1984 | (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml. | |
1985 | (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml | |
1986 | i386/x32-avx-linux.xml. | |
1987 | ||
1988 | * linux-x86-low.c (init_registers_x32_linux): New prototype. | |
1989 | (init_registers_x32_avx_linux): Likwise. | |
1990 | (x86_linux_update_xmltarget): Call init_registers_x32_linux | |
1991 | or init_registers_x32_avx_linux if linux_is_elf64 is false. | |
1992 | ||
ecedbe58 PA |
1993 | 2012-04-13 Pedro Alves <palves@redhat.com> |
1994 | ||
1995 | * Makefile.in (GNULIB_FLAGS_TO_PASS): New. | |
1996 | (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH. | |
1997 | (all, uninstall, clean-info, all-lib, clean, maintainer-clean) | |
1998 | (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to | |
1999 | the sub-make. | |
2000 | ||
c92b5177 L |
2001 | 2012-04-12 H.J. Lu <hongjiu.lu@intel.com> |
2002 | ||
2003 | * linux-x86-low.c (compat_x32_clock_t): New. | |
2004 | (compat_x32_siginfo_t): Likewise. | |
2005 | (compat_x32_siginfo_from_siginfo): Likewise. | |
2006 | (siginfo_from_compat_x32_siginfo): Likewise. | |
2007 | (linux_is_elf64): Likewise. | |
2008 | (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo | |
2009 | and siginfo_from_compat_x32_siginfo for x32. | |
2010 | (x86_arch_setup): Set linux_is_elf64. | |
2011 | ||
214d508e L |
2012 | 2012-04-12 H.J. Lu <hongjiu.lu@intel.com> |
2013 | ||
2014 | PR gdb/13969 | |
2015 | * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the | |
2016 | e_machine field. | |
2017 | (linux_qxfer_libraries_svr4): Update call to elf_64_file_p. | |
2018 | * linux-low.h (linux_pid_exe_is_elf_64_file): Updated. | |
2019 | * linux-x86-low.c (x86_arch_setup): Check if GDBserver is | |
2020 | compatible with process. | |
2021 | ||
c9a1864a YQ |
2022 | 2012-04-12 Yao Qi <yao@codesourcery.com> |
2023 | ||
2024 | * Makefile.in: Define abs_top_srcdir and abs_srcdir. | |
2025 | (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR. | |
2026 | (install-only, install-info, clean): Handle sub dir gnulib. | |
2027 | (all-lib, am--refresh): New targets. | |
2028 | (memmem.o): Remove target. | |
2029 | * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR. | |
2030 | Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make. | |
2031 | (AC_REPLACE_FUNCS): Remove memmem. | |
2032 | Invoke gl_INIT and AM_INIT_AUTOMAKE. | |
2033 | (AC_OUTPUT): Generate Makefile in gnulib/. | |
2034 | * aclocal.m4, config.in, configure: Regenerated. | |
2035 | ||
367ba2c2 MR |
2036 | 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com> |
2037 | ||
2038 | * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP. | |
2039 | ||
9d236627 PA |
2040 | 2012-04-05 Pedro Alves <palves@redhat.com> |
2041 | ||
2042 | -Werror=strict-aliasing | |
2043 | ||
2044 | * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned | |
2045 | pointer. | |
2046 | ||
111217b3 PA |
2047 | 2012-04-04 Pedro Alves <palves@redhat.com> |
2048 | ||
2049 | * linux-sparc-low.c (sparc_fill_gregset_to_stack) | |
2050 | (sparc_store_gregset_from_stack, sparc_store_gregset) | |
2051 | (sparc_breakpoint_at): Fix formatting. | |
2052 | ||
8365dcf5 TJB |
2053 | 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
2054 | ||
2055 | * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t | |
2056 | are available. | |
2057 | * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef. | |
2058 | [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise. | |
2059 | * config.in: Regenerate. | |
2060 | * configure: Likewise. | |
2061 | ||
689cc2ae PA |
2062 | 2012-03-29 Pedro Alves <palves@redhat.com> |
2063 | ||
2064 | * linux-low.c (regsets_store_inferior_registers) [__sparc__]: | |
2065 | Correct ptrace arguments. | |
2066 | ||
c14dfd32 PA |
2067 | 2012-03-28 Pedro Alves <palves@redhat.com> |
2068 | ||
2069 | * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC. | |
2070 | (IA64_GR0_REGNUM, IA64_FR0_REGNUM) | |
2071 | (IA64_FR1_REGNUM): New defines. | |
2072 | (ia64_fetch_register): New. | |
2073 | (the_low_target): Install it. | |
2074 | * linux-low.h (struct linux_target_ops) <fetch_register>: New | |
2075 | field. | |
2076 | * linux-low.c (linux_fetch_registers): Try the | |
2077 | the_low_target.fetch_register hook first. | |
2078 | ||
2079 | * linux-arm-low.c (the_low_target): Adjust. | |
2080 | * linux-bfin-low.c (the_low_target): Adjust. | |
2081 | * linux-cris-low.c (the_low_target): Adjust. | |
2082 | * linux-crisv32-low.c (the_low_target): Adjust. | |
2083 | * linux-m32r-low.c (the_low_target): Adjust. | |
2084 | * linux-m68k-low.c (the_low_target): Adjust. | |
2085 | * linux-mips-low.c (the_low_target): Adjust. | |
2086 | * linux-ppc-low.c (the_low_target): Adjust. | |
2087 | * linux-s390-low.c (the_low_target): Adjust. | |
2088 | * linux-sh-low.c (the_low_target): Adjust. | |
2089 | * linux-sparc-low.c (the_low_target): Adjust. | |
2090 | * linux-tic6x-low.c (the_low_target): Adjust. | |
2091 | * linux-x86-low.c (the_low_target): Adjust. | |
2092 | * linux-xtensa-low.c (the_low_target): Adjust. | |
2093 | ||
63c88e13 PA |
2094 | 2012-03-26 Pedro Alves <palves@redhat.com> |
2095 | ||
2096 | * server.c (handle_qxfer_libraries): Don't bail early if | |
2097 | the_target->qxfer_libraries_svr4 is not NULL. | |
2098 | ||
fb723180 PA |
2099 | 2012-03-26 Pedro Alves <palves@redhat.com> |
2100 | ||
2101 | * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment. | |
2102 | ||
0afae3cf PA |
2103 | 2012-03-23 Pedro Alves <palves@redhat.com> |
2104 | ||
2105 | * linux-low.c (linux_qxfer_libraries_svr4): Terminate the | |
2106 | "library-list-svr4" element's start tag when the the DSO list is | |
2107 | empty. | |
2108 | ||
485f1ee4 PA |
2109 | 2012-03-23 Pedro Alves <palves@redhat.com> |
2110 | ||
2111 | * linux-low.c (read_one_ptr): Read the inferior's pointer through | |
2112 | a variable whose type size is the same as the inferior's pointer | |
2113 | size. | |
2114 | ||
a5362b9a TS |
2115 | 2012-03-21 Thomas Schwinge <thomas@codesourcery.com> |
2116 | ||
2117 | * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of | |
2118 | struct siginfo. | |
2119 | * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise. | |
2120 | * linux-x86-low.c (x86_siginfo_fixup): Likewise. | |
2121 | * linux-low.h: Include <signal.h>. | |
2122 | (struct siginfo): Remove forward declaration. | |
2123 | (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of | |
2124 | struct siginfo. | |
2125 | ||
d226c142 MF |
2126 | 2012-03-21 Mike Frysinger <vapier@gentoo.org> |
2127 | ||
2128 | * .gitignore: Ignore more files. | |
2129 | ||
122f36ef PA |
2130 | 2012-03-19 Pedro Alves <palves@redhat.com> |
2131 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
2132 | ||
2133 | * server.c (cont_thread, general_thread): Add describing comments. | |
2134 | (start_inferior): Clear `cont_thread'. | |
2135 | (handle_v_cont): Don't set `cont_thread' if resuming all threads | |
2136 | of a process. | |
2137 | ||
fc3e5175 YQ |
2138 | 2012-03-15 Yao Qi <yao@codesourcery.com> |
2139 | ||
2140 | * tracepoint.c (install_tracepoint): Move duplicated tracepoint | |
2141 | handling to ... | |
2142 | (cmd_qtdp): ... here. | |
2143 | ||
8d0d92cd YQ |
2144 | 2012-03-15 Yao Qi <yao@codesourcery.com> |
2145 | ||
2146 | * tracepoint.c (struct tracepoint_action_ops): New. | |
2147 | (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field. | |
2148 | (m_tracepoint_action_download): New. | |
2149 | (r_tracepoint_action_download): New. | |
2150 | (x_tracepoint_action_download): New. | |
2151 | (l_tracepoint_action_download): New. | |
2152 | (add_tracepoint_action): Install `action->ops' according type. | |
2153 | (download_tracepoint_1): Move code `download' function pointer | |
2154 | of various tracepoint_action_ops. | |
2155 | ||
87b0bb13 JK |
2156 | 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
2157 | ||
2158 | * linux-low.c (linux_attach_lwp_1): New variable buffer. Call | |
2159 | linux_ptrace_attach_warnings. | |
2160 | ||
5f572dec JK |
2161 | 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
2162 | ||
2163 | * Makefile.in (linux-ptrace.o): New. | |
2164 | * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*) | |
2165 | (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*) | |
2166 | (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*) | |
2167 | (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux) | |
2168 | (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ | |
2169 | of these targets. | |
2170 | * linux-low.c (linux_attach_lwp_1): Remove redundent else clause. | |
2171 | ||
f4647387 YQ |
2172 | 2012-03-08 Yao Qi <yao@codesourcery.com> |
2173 | Pedro Alves <palves@redhat.com> | |
2174 | ||
2175 | Fix PR server/13392. | |
2176 | * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check | |
2177 | offset of JMP insn. | |
2178 | * tracepoint.c (remove_tracepoint): New. | |
2179 | (cmd_qtdp): Call remove_tracepoint when failed to install. | |
2180 | ||
9b224c5e PA |
2181 | 2012-03-07 Pedro Alves <palves@redhat.com> |
2182 | ||
2183 | * linux-low.c (get_detach_signal): New. | |
2184 | (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT. | |
2185 | Pass on pending signals to PTRACE_DETACH. Check the result of the | |
2186 | ptrace call. | |
2187 | * server.c (program_signals, program_signals_p): New. | |
2188 | (handle_general_set): Handle QProgramSignals. | |
2189 | * server.h (program_signals, program_signals_p): Declare. | |
2190 | ||
e237a7e2 JK |
2191 | 2012-03-05 Pedro Alves <palves@redhat.com> |
2192 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
2193 | ||
2194 | * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found. | |
2195 | New comment why. | |
2196 | ||
5808517f YQ |
2197 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
2198 | ||
2199 | * tracepoint.c (tracepoint_look_up_symbols): Update call to | |
2200 | agent_look_up_symbols. | |
2201 | ||
58b4daa5 YQ |
2202 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
2203 | ||
2204 | * Makefile.in (linux-low.o): Keep dependence on agent.h. | |
2205 | (linux-x86-low.o): Likewise. | |
2206 | * server.h: Remove in_process_agent_loaded. | |
2207 | * tracepoint.c (in_process_agent_loaded): Removed. Moved it | |
2208 | common/agent.c. | |
2209 | Update callers. | |
2210 | ||
8ffcbaaf YQ |
2211 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
2212 | ||
2213 | * tracepoint.c (gdb_agent_capability): New global. | |
2214 | (in_process_agent_loaded_ust): Renamed to | |
2215 | `in_process_agent_supports_ust'. | |
2216 | Update callers. | |
2217 | (in_process_agent_supports_ust): Call agent_capability_check. | |
2218 | (clear_installed_tracepoints): Assert that agent supports | |
2219 | agent. | |
2220 | ||
d1feda86 YQ |
2221 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
2222 | ||
2223 | * linux-low.c (linux_supports_agent): New. | |
2224 | (linux_target_ops): Initialize field `supports_agent' with | |
2225 | linux_supports_agent. | |
2226 | * target.h (struct target_ops) <supports_agent>: New. | |
2227 | (target_supports_agent): New macro. | |
2228 | * server.c (handle_general_set): Handle packet 'QAgent'. | |
2229 | (handle_query): Send `QAgent+'. | |
2230 | * Makefile.in (server.o): Depends on agent.h. | |
2231 | ||
2fa291ac YQ |
2232 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
2233 | ||
2234 | * Makefile.in (OBS): Add agent.o. | |
2235 | Add new rule for agent.o. | |
2236 | Track dependence of tracepoint.c on agent.h. | |
2237 | * tracepoint.c (run_inferior_command_1): | |
2238 | (run_inferior_command): Call agent_run_command. | |
2239 | (gdb_ust_connect_sync_socket): Deleted. Move it to | |
2240 | common/agent.c. | |
2241 | (resume_thread, stop_thread): Likewise. | |
2242 | (gdb_ust_socket_init): Renamed to ... | |
2243 | (gdb_agent_socket_init): ... New. | |
2244 | (gdb_ust_thread): Renamed to ... | |
2245 | (gdb_agent_helper_thread): ... New. | |
2246 | (gdb_ust_init): Move some code to ... | |
2247 | (gdb_agent_init): ... here. New. | |
2248 | [HAVE_UST]: Call gdb_ust_init. | |
2249 | (initialize_tracepoint_ftlib): Call gdb_agent_init. | |
2250 | * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS. | |
2251 | * config.in, configure: Regenerated. | |
2252 | ||
05044653 PA |
2253 | 2012-03-02 Pedro Alves <palves@redhat.com> |
2254 | ||
2255 | * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete. | |
2256 | * linux-low.c (struct simple_pid_list): New. | |
2257 | (stopped_pids): New a struct simple_pid_list pointer. | |
2258 | (add_to_pid_list, pull_pid_from_list): New. | |
2259 | (handle_extended_wait): Don't assume the first signal new children | |
2260 | report is SIGSTOP. Adjust call to pull_pid_from_list. | |
2261 | (linux_wait_for_lwp): Adjust. | |
2262 | ||
8d00225b YQ |
2263 | 2012-03-02 Yao Qi <yao@codesourcery.com> |
2264 | ||
2265 | * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in | |
2266 | debug log. | |
2267 | ||
19560ba5 YQ |
2268 | 2012-03-02 Yao Qi <yao@codesourcery.com> |
2269 | ||
2270 | * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters | |
2271 | `stop_pc' and `tpoint'. Update caller. | |
2272 | ||
1faeff08 MR |
2273 | 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com> |
2274 | ||
2275 | * linux-low.h (linux_target_ops): Add regset_bitmap member. | |
2276 | * linux-low.c (use_linux_regsets): New macro. | |
2277 | [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise. | |
2278 | [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise. | |
2279 | (linux_register_in_regsets): New function. | |
2280 | (usr_fetch_inferior_registers): Skip registers covered by | |
2281 | regsets. | |
2282 | (usr_store_inferior_registers): Likewise. | |
2283 | (usr_fetch_inferior_registers): New macro. | |
2284 | (usr_store_inferior_registers): Likewise. | |
2285 | (linux_fetch_registers): Handle mixed regset/non-regset targets. | |
2286 | (linux_store_registers): Likewise. | |
2287 | * linux-mips-low.c (init_registers_mips_dsp_linux): New | |
2288 | prototype. | |
2289 | (init_registers_mips64_dsp_linux): Likewise. | |
2290 | (init_registers_mips_linux): New macro. | |
2291 | (init_registers_mips_dsp_linux): Likewise. | |
2292 | (mips_dsp_num_regs): Likewise. | |
2293 | (DSP_BASE, DSP_CONTROL): New fallback macros. | |
2294 | (mips_base_regs): New macro. | |
2295 | (mips_regmap): Use it. Fix the size. | |
2296 | (mips_dsp_regmap): New variable. | |
2297 | (mips_dsp_regset_bitmap): Likewise. | |
2298 | (mips_arch_setup): New function. | |
2299 | (mips_cannot_fetch_register): Use the_low_target.regmap rather | |
2300 | than mips_regmap. | |
2301 | (mips_cannot_store_register): Likewise. | |
2302 | (the_low_target): Update .arch_setup, .num_regs and .regmap | |
2303 | initializers. Add .regset_bitmap initializer. | |
2304 | * linux-arm-low.c (the_low_target): Add .regset_bitmap | |
2305 | initializer. | |
2306 | * linux-bfin-low.c (the_low_target): Likewise. | |
2307 | * linux-cris-low.c (the_low_target): Likewise. | |
2308 | * linux-crisv32-low.c (the_low_target): Likewise. | |
2309 | * linux-ia64-low.c (the_low_target): Likewise. | |
2310 | * linux-m32r-low.c (the_low_target): Likewise. | |
2311 | * linux-m68k-low.c (the_low_target): Likewise. | |
2312 | * linux-ppc-low.c (the_low_target): Likewise. | |
2313 | * linux-s390-low.c (the_low_target): Likewise. | |
2314 | * linux-sh-low.c (the_low_target): Likewise. | |
2315 | * linux-sparc-low.c (the_low_target): Likewise. | |
2316 | * linux-tic6x-low.c (the_low_target): Likewise. | |
2317 | * linux-x86-low.c (the_low_target): Likewise. | |
2318 | * linux-xtensa-low.c (the_low_target): Likewise. | |
2319 | * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and | |
2320 | mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml, | |
2321 | mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to | |
2322 | srv_xmlfiles. | |
2323 | * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets. | |
2324 | (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise. | |
2325 | ||
c03e6ccc YQ |
2326 | 2012-02-29 Yao Qi <yao@codesourcery.com> |
2327 | Pedro Alves <palves@redhat.com> | |
2328 | ||
2329 | * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when | |
2330 | `step_over_finished' is true. | |
2331 | ||
644cebc9 PA |
2332 | 2012-02-27 Pedro Alves <palves@redhat.com> |
2333 | ||
2334 | * linux-low.c (pid_is_stopped): Delete, moved to common/. | |
2335 | (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped. | |
2336 | ||
c14d7ab2 PA |
2337 | 2012-02-27 Pedro Alves <palves@redhat.com> |
2338 | ||
2339 | PR server/9684 | |
2340 | * linux-low.c (pid_is_stopped): New. | |
2341 | (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes. | |
2342 | ||
412c89dd LM |
2343 | 2012-02-25 Luis Machado <lgustavo@codesourcery.com> |
2344 | ||
2345 | * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation | |
2346 | of conditions. | |
2347 | ||
b745defe MR |
2348 | 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com> |
2349 | ||
2350 | * linux-mips-low.c (mips_regmap): Correct the index of $f9. | |
2351 | ||
9f3a5c85 LM |
2352 | 2012-02-24 Luis Machado <lgustavo@codesourcery> |
2353 | ||
2354 | * server.c (handle_query): Advertise support for target-side | |
2355 | breakpoint condition evaluation. | |
2356 | (process_point_options): New function. | |
2357 | (process_serial_event): When inserting a breakpoint, check for | |
2358 | a target-side condition that should be evaluated. | |
2359 | ||
2360 | * mem-break.c: Include regcache.h and ax.h. | |
2361 | (point_cond_list_t): New data structure. | |
2362 | (breakpoint) <cond_list>: New field. | |
2363 | (find_gdb_breakpoint_at): Make non-static. | |
2364 | (delete_gdb_breakpoint_at): Clear any target-side | |
2365 | conditions. | |
2366 | (clear_gdb_breakpoint_conditions): New function. | |
2367 | (add_condition_to_breakpoint): Likewise. | |
2368 | (add_breakpoint_condition): Likewise. | |
2369 | (gdb_condition_true_at_breakpoint): Likewise. | |
2370 | (gdb_breakpoint_here): Return result directly instead | |
2371 | of going through a local variable. | |
2372 | ||
2373 | * mem-break.h (find_gdb_breakpoint_at): New prototype. | |
2374 | (clear_gdb_breakpoint_conditions): Likewise. | |
2375 | (add_breakpoint_condition): Likewise. | |
2376 | (gdb_condition_true_at_breakpoint): Likewise. | |
2377 | ||
2378 | * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition. | |
2379 | (need_step_over_p): Take target-side breakpoint condition into | |
2380 | consideration. | |
2381 | ||
5e1dc496 LM |
2382 | 2012-02-24 Luis Machado <lgustavo@codesourcery> |
2383 | ||
2384 | * server.h: Include tracepoint.h. | |
2385 | (agent_mem_read, agent_get_trace_state_variable_value, | |
2386 | agent_set_trace_state_variable_value, | |
2387 | agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr, | |
2388 | get_set_tsv_func_addr): New prototypes. | |
2389 | ||
2390 | * ax.h: New include file. | |
2391 | * ax.c: New source file. | |
2392 | ||
2393 | * tracepoint.c: Include ax.h. | |
2394 | (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes, | |
2395 | agent_expr, eval_result_type): Move to ax.h. | |
2396 | (parse_agent_expr): Rename to ... | |
2397 | (gdb_parse_agent_expr): ... this, make it non-static and move | |
2398 | to ax.h. | |
2399 | (unparse_agent_expr) Rename to ... | |
2400 | (gdb_unparse_agent_expr): ... this, make it non-static and move | |
2401 | to ax.h. | |
2402 | (eval_agent_expr): Rename to ... | |
2403 | (eval_tracepoint_agent_expr): ... this. | |
2404 | (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove | |
2405 | forward declarations. | |
2406 | (add_tracepoint_action): Call gdb_parse_agent_expr (...). | |
2407 | (agent_get_trace_state_variable_value): New function. | |
2408 | (agent_set_trace_state_variable_value): New function. | |
2409 | (cmd_qtdp): Call gdb_parse_agent_expr (...). | |
2410 | (response_tracepoint): Call gdb_unparse_agent_expr (...). | |
2411 | (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...). | |
2412 | (condition_true_at_tracepoint): Likewise. | |
2413 | (parse_agent_expr): Rename to ... | |
2414 | (gdb_parse_agent_expr): ... this and move to ax.c. | |
2415 | (unparse_agent_expr): Rename to ... | |
2416 | (gdb_unparse_agent_expr): ... this and move to ax.c. | |
2417 | (gdb_agent_op_name): Move to ax.c. | |
2418 | (eval_agent_expr): Rename to ... | |
2419 | (gdb_eval_agent_expr): ... this, use regcache passed as parameter | |
2420 | and move to ax.c. | |
2421 | (eval_tracepoint_agent_expr): New function. | |
2422 | (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make | |
43aaf8b6 | 2423 | non-static. |
5e1dc496 LM |
2424 | (current_insn_ptr, emit_error, struct bytecode_address): Move to |
2425 | ax.c. | |
2426 | (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh, | |
2427 | emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not, | |
2428 | emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal, | |
2429 | emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto, | |
2430 | emit_goto, write_goto_address, emit_const, emit_reg, emit_pop, | |
2431 | emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust, | |
2432 | emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto, | |
2433 | emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c. | |
2434 | (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions. | |
2435 | (compile_bytecodes): Remove forward declaration. | |
2436 | (is_goto_target): Move to ax.c. | |
2437 | (compile_bytecodes): Move to ax.c and call | |
2438 | agent_get_trace_state_variable_value (...) and | |
2439 | agent_set_trace_state_variable_value (...). | |
2440 | ||
2441 | * Makefile.in: Update ax.c and IPA dependencies. | |
2442 | ||
277e4e52 PA |
2443 | 2012-02-24 Pedro Alves <palves@redhat.com> |
2444 | ||
2445 | * tracepoint.c (cmd_bigqtbuffer): Rename as ... | |
2446 | (cmd_bigqtbuffer_circular): ... this. Only handle | |
2447 | 'QTBuffer:circular:'. | |
2448 | (handle_tracepoint_general_set): Adjust. | |
2449 | ||
bf4c19f7 YQ |
2450 | 2012-02-16 Yao Qi <yao@codesourcery.com> |
2451 | ||
2452 | * inferiors.c: Move code to ... | |
2453 | * dll.c: .... here. New. | |
2454 | * server.h: Declare clear_dlls. | |
2455 | * Makefile.in (SFILES): Add dll.c. | |
2456 | (OBS): Add dll.o | |
2457 | (dll.o): New rule. | |
2458 | ||
d73f2619 YQ |
2459 | 2012-02-11 Yao Qi <yao@codesourcery.com> |
2460 | ||
2461 | * server.c: (handle_monitor_command): Add a new parameter | |
2462 | `own_buf'. | |
2463 | (handle_query): Update caller. | |
2464 | ||
f8255c2a JB |
2465 | 2012-02-09 Joel Brobecker <brobecker@adacore.com> |
2466 | ||
2467 | * configure.ac: Add readlink to AC_CHECK_FUNCS list. | |
2468 | * configure, config.in: Regenerate. | |
2469 | * hostio.c: Provide an alternate implementation if HAVE_READLINK | |
2470 | is not defined. | |
2471 | ||
da84f473 PA |
2472 | 2012-02-02 Pedro Alves <palves@redhat.com> |
2473 | ||
2474 | Try SIGKILL first, then PTRACE_KILL. | |
2475 | * linux-low.c (linux_kill_one_lwp): New. | |
2476 | (linux_kill_one_lwp): Rename to ... | |
2477 | (kill_one_lwp_callback): ... this. Use the new | |
2478 | linux_kill_one_lwp. | |
2479 | ||
e886a173 PA |
2480 | 2012-02-02 Pedro Alves <palves@redhat.com> |
2481 | ||
2482 | * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current | |
2483 | inferior. | |
2484 | ||
be07f1a2 PA |
2485 | 2012-01-27 Pedro Alves <palves@redhat.com> |
2486 | ||
2487 | * linux-low.c (linux_child_pid_to_exec_file): Delete. | |
2488 | (elf_64_file_p): Make static. | |
2489 | (linux_pid_exe_is_elf_64_file): New. | |
2490 | * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p): | |
2491 | Delete declarations. | |
2492 | (linux_pid_exe_is_elf_64_file): Declare. | |
2493 | * linux-x86-low.c (x86_arch_setup): Use | |
2494 | linux_pid_exe_is_elf_64_file. | |
2495 | ||
d8301ad1 JK |
2496 | 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
2497 | ||
2498 | * linux-low.c (linux_wait_for_event_1): Rename to ... | |
2499 | (linux_wait_for_event): ... here and merge it with former | |
2500 | linux_wait_for_event - new variable wait_ptid, use it. | |
2501 | (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1. | |
2502 | ||
01b17894 PA |
2503 | 2012-01-23 Pedro Alves <palves@redhat.com> |
2504 | ||
2505 | * server.c (main): Avoid yet another case of infinite loop while | |
2506 | detaching/killing after a longjmp. | |
2507 | ||
e825046f JK |
2508 | 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
2509 | ||
2510 | Code cleanup. | |
2511 | * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid. | |
2512 | ||
b9e7b9c3 UW |
2513 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
2514 | ||
2515 | * hostio.c (handle_readlink): New function. | |
2516 | (handle_vFile): Call it to handle "vFile:readlink" packets. | |
2517 | ||
901f9912 UW |
2518 | 2012-01-20 Pedro Alves <palves@redhat.com> |
2519 | Ulrich Weigand <ulrich.weigand@linaro.org> | |
2520 | ||
2521 | * server.c (handle_v_requests): Only support vAttach and vRun to | |
2522 | start multiple processes when in extended protocol mode. | |
2523 | ||
fc1ab1a0 PA |
2524 | 2012-01-17 Pedro Alves <palves@redhat.com> |
2525 | ||
2526 | * tracepoint.c (initialize_tracepoint): Use mmap instead of | |
2527 | memalign plus mprotect to allocate the scratch buffer. | |
2528 | ||
7d5d4e98 PA |
2529 | 2012-01-13 Pedro Alves <palves@redhat.com> |
2530 | ||
2531 | * server.c (attach_inferior): Clear `cont_thread'. | |
2532 | ||
f128d5e9 PA |
2533 | 2012-01-13 Pedro Alves <palves@redhat.com> |
2534 | ||
2535 | * server.c (main): Avoid infinite loop while detaching/killing | |
2536 | after a longjmp. | |
2537 | ||
06db92f0 DE |
2538 | 2012-01-09 Doug Evans <dje@google.com> |
2539 | ||
2540 | * server.c (start_inferior): Set last_ptid in --wrapper case. | |
2541 | ||
32d92999 YQ |
2542 | 2012-01-06 Yao Qi <yao@codesourcery.com> |
2543 | ||
2544 | * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro | |
2545 | defined. | |
2546 | [IN_PROCESS_AGENT] (debug_agent): New global variable. | |
2547 | ||
5e0a92a9 YQ |
2548 | 2012-01-04 Yao Qi <yao@codesourcery.com> |
2549 | ||
2550 | * tracepoint.c (cmd_qtdp): Print debug message | |
2551 | for static tracepoint. | |
2552 | ||
ae639e8c YQ |
2553 | 2012-01-04 Yao Qi <yao@codesourcery.com> |
2554 | ||
2555 | * tracepoint.c (trace_vdebug): Differentiate debug message | |
2556 | between gdbserver and IPA. | |
2557 | ||
f72429c5 YQ |
2558 | 2012-01-03 Yao Qi <yao@codesourcery.com> |
2559 | ||
2560 | * tracepoint.c (tracepoint_was_hit): Don't collect for | |
2561 | static tracepoint. | |
2562 | ||
12c3e59c JB |
2563 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
2564 | ||
2565 | * terminal.h: Reformat copyright header. | |
2566 | ||
67827812 JB |
2567 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
2568 | ||
2569 | * server.c (gdbserver_version): Update copyright year. | |
2570 | * gdbreplay.c (gdbreplay_version): Likewise. | |
2571 | ||
3e52c33d JK |
2572 | 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
2573 | ||
2574 | * linux-low.c (linux_create_inferior): Put empty if clause for write. | |
2575 | ||
2576 | Revert: | |
2577 | 2011-12-18 Hui Zhu <teawater@gmail.com> | |
2578 | * linux-low.c (linux_create_inferior): Save return value to ret. | |
2579 | ||
66f1260e HZ |
2580 | 2011-12-18 Hui Zhu <teawater@gmail.com> |
2581 | ||
2582 | * linux-low.c (linux_create_inferior): Save return value to ret. | |
2583 | ||
e77616d7 DE |
2584 | 2011-12-16 Doug Evans <dje@google.com> |
2585 | ||
e7b06c57 DE |
2586 | * linux-low.c (linux_create_inferior): If stdio connection, |
2587 | redirect stdin from /dev/null, stdout to stderr. | |
2588 | * remote-utils.c (remote_is_stdio): New static global. | |
2589 | (remote_connection_is_stdio): New function. | |
2590 | (remote_prepare): Handle stdio connection. | |
2591 | (remote_open): Ditto. | |
2592 | (remote_close): Don't close stdin for stdio connections. | |
2593 | (read_prim,write_prim): New functions. Replace all calls to | |
2594 | read/write to these. | |
2595 | * server.c (main): Watch for "-" argument. Move call to | |
2596 | remote_prepare before start_inferior. | |
2597 | * server.h (STDIO_CONNECTION_NAME): New macro. | |
2598 | (remote_connection_is_stdio): Declare. | |
2599 | ||
e77616d7 DE |
2600 | * remote-utils.c (prepare_resume_reply): Remove extraneous \n |
2601 | in debugging output. | |
2602 | ||
82067193 YQ |
2603 | 2011-12-15 Yao Qi <yao@codesourcery.com> |
2604 | ||
2605 | * tracepoint.c: Include sys/syscall.h. | |
2606 | (gdb_ust_thread): Remove preprocessor conditional. | |
2607 | ||
82bfbe7e PA |
2608 | 2011-12-14 Pedro Alves <pedro@codesourcery.com> |
2609 | ||
2610 | * linux-low.c (linux_detach_one_lwp): Call | |
2611 | the_low_target.prepare_to_resume before detaching. | |
2612 | ||
712c6575 YQ |
2613 | 2011-12-14 Yao Qi <yao@codesourcery.com> |
2614 | ||
2615 | * tracepoint.c (gdb_ust_thread): Don't ignore return value | |
2616 | of write. | |
2617 | ||
d54d1edf YQ |
2618 | 2011-12-14 Yao Qi <yao@codesourcery.com> |
2619 | ||
2620 | * i386-low.c (i386_low_stopped_data_address): Initialize local | |
2621 | variable `control'. | |
2622 | ||
6210a125 PA |
2623 | 2011-12-13 Pedro Alves <pedro@codesourcery.com> |
2624 | ||
2625 | PR remote/13492 | |
2626 | ||
2627 | * i386-low.c (i386_low_stopped_data_address): Avoid fetching | |
2628 | DR_CONTROL unless necessary. Extend comments. | |
2629 | * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to | |
2630 | DR0-3 if not used. If any watchpoint was set, clear DR_STATUS. | |
2631 | ||
2ece8244 YQ |
2632 | 2011-12-13 Yao Qi <yao@codesourcery.com> |
2633 | ||
2634 | * tracepoint.c (trace_buffer_alloc): Replace magic numbers with | |
2635 | macros. | |
2636 | (upload_fast_traceframes, upload_fast_traceframes): Likewise. | |
2637 | ||
784867a5 JK |
2638 | 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
2639 | ||
2640 | * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist. | |
2641 | Print new debug message for such case. | |
2642 | ||
6bf36717 JK |
2643 | 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
2644 | ||
2645 | Fix overlapping memcpy. | |
2646 | * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for | |
2647 | the read_inferior_memory transfer. | |
2648 | (delete_fast_tracepoint_jump): New variable buf. Use it for the | |
2649 | write_inferior_memory transfer. | |
2650 | (set_fast_tracepoint_jump): New variable buf. Use it for the | |
2651 | read_inferior_memory and write_inferior_memory transfers. | |
2652 | (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at) | |
2653 | (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf. | |
2654 | Use it for the write_inferior_memory transfer. | |
2655 | (check_mem_read, check_mem_write): New gdb_asserts for overlapping | |
2656 | buffers. | |
2657 | ||
50275556 MR |
2658 | 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com> |
2659 | ||
2660 | * linux-low.c (fetch_register, store_register): Make code | |
2661 | consistent, fix formatting. | |
2662 | ||
7325beb4 MR |
2663 | 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com> |
2664 | ||
2665 | * linux-low.c (usr_store_inferior_registers): Factor out code | |
2666 | to handle individual registers into... | |
2667 | (store_register): ... this new function. | |
2668 | ||
c642a434 UW |
2669 | 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com> |
2670 | ||
2671 | * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules. | |
2672 | (s390-linux32v2.o, s390-linux32v2.c): Likewise. | |
2673 | (s390-linux64v1.o, s390-linux64v1.c): Likewise. | |
2674 | (s390-linux64v2.o, s390-linux64v2.c): Likewise. | |
2675 | (s390x-linux64v1.o, s390x-linux64v1.c): Likewise. | |
2676 | (s390x-linux64v2.o, s390x-linux64v2.c): Likewise. | |
2677 | * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects. | |
2678 | (srv_xmlfiles): Add new XML files. | |
2679 | ||
2680 | * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>, | |
2681 | and <sys/uio.h>. | |
2682 | (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined. | |
2683 | (init_registers_s390_linux32v1): Add prototype. | |
2684 | (init_registers_s390_linux32v2): Likewise. | |
2685 | (init_registers_s390_linux64v1): Likewise. | |
2686 | (init_registers_s390_linux64v2): Likewise. | |
2687 | (init_registers_s390x_linux64v1): Likewise. | |
2688 | (init_registers_s390x_linux64v2): Likewise. | |
2689 | (s390_num_regs): Increment to 52. | |
2690 | (s390_regmap): Add orig_r2 register. | |
2691 | (s390_num_regs_3264): Increment to 68. | |
2692 | (s390_regmap_3264): Add orig_r2 register. | |
2693 | (s390_collect_ptrace_register): Handle orig_r2 register. | |
2694 | (s390_supply_ptrace_register): Likewise. | |
2695 | (s390_fill_last_break): New function. | |
2696 | (s390_store_last_break): Likewise. | |
2697 | (s390_fill_system_call): New function. | |
2698 | (s390_store_system_call): Likewise. | |
2699 | (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL | |
2700 | register sets. | |
2701 | (s390_check_regset): New function. | |
2702 | (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and | |
2703 | NT_S390_SYSTEM_CALL regsets and use appropriate description. | |
2704 | Update target_regsets for available register sets. | |
2705 | ||
2268b414 JK |
2706 | 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com> |
2707 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
2708 | ||
2709 | * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug) | |
2710 | (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4): | |
2711 | New. | |
2712 | (struct linux_target_ops): Install linux_qxfer_libraries_svr4. | |
2713 | * linux-low.h (struct process_info_private): New member r_debug. | |
2714 | * server.c (handle_qxfer_libraries): Call | |
2715 | the_target->qxfer_libraries_svr4. | |
2716 | (handle_qxfer_libraries_svr4): New function. | |
2717 | (qxfer_packets): New entry "libraries-svr4". | |
2718 | (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4. | |
2719 | * target.h (struct target_ops): New member qxfer_libraries_svr4. | |
2720 | * remote.c (remote_xfer_partial): Call add_packet_config_cmd for | |
2721 | PACKET_qXfer_libraries_svr4. | |
2722 | ||
d6db1fab UW |
2723 | 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com> |
2724 | ||
2725 | * linux-s390-low.c (s390_collect_ptrace_register): Fully convert | |
2726 | PSW address/mask between 8-byte and 16-byte formats. | |
2727 | (s390_supply_ptrace_register): Likewise. | |
2728 | (s390_get_pc, s390_set_pc): 4-byte PSW address always includes | |
2729 | basic addressing mode bit. | |
2730 | ||
242f5f1c SS |
2731 | 2011-11-24 Stan Shebs <stan@codesourcery.com> |
2732 | ||
2733 | * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx. | |
2734 | ||
f196051f SS |
2735 | 2011-11-17 Stan Shebs <stan@codesourcery.com> |
2736 | ||
2737 | * tracepoint.c (struct tracepoint): New field traceframe_usage. | |
2738 | (tracing_start_time): New global. | |
2739 | (tracing_stop_time): New global. | |
2740 | (tracing_user_name): New global. | |
2741 | (tracing_notes): New global. | |
2742 | (tracing_stop_note): New global. | |
2743 | (cmd_qtstart): Set traceframe_usage, start_time. | |
2744 | (stop_tracing): Set stop_time. | |
2745 | (cmd_qtstatus): Report additional status. | |
2746 | (cmd_qtp): New function. | |
2747 | (handle_tracepoint_query): Call it. | |
2748 | (cmd_qtnotes): New function. | |
2749 | (handle_tracepoint_general_set): Call it. | |
2750 | (get_timestamp): Rename from tsv_get_timestamp. | |
2751 | ||
405f8e94 SS |
2752 | 2011-11-14 Stan Shebs <stan@codesourcery.com> |
2753 | Kwok Cheung Yeung <kcy@codesourcery.com> | |
2754 | ||
2755 | * linux-x86-low.c (small_jump_insn): New. | |
2756 | (i386_install_fast_tracepoint_jump_pad): Add arguments for | |
2757 | trampoline and error message, build a trampoline and issue a small | |
2758 | jump instruction to it. | |
2759 | (x86_install_fast_tracepoint_jump_pad): Add arguments for | |
2760 | trampoline and error message. | |
2761 | (x86_get_min_fast_tracepoint_insn_len): New. | |
2762 | (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len. | |
2763 | * linux-low.h (struct linux_target_ops): Add arguments to | |
2764 | install_fast_tracepoint_jump_pad operation, add new operation. | |
2765 | * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add | |
2766 | arguments. | |
2767 | (linux_get_min_fast_tracepoint_insn_len): New function. | |
2768 | (linux_target_op): Add new operation. | |
2769 | * tracepoint.c (gdb_trampoline_buffer): New IPA variable. | |
2770 | (gdb_trampoline_buffer_end): Ditto. | |
2771 | (gdb_trampoline_buffer_error): Ditto. | |
2772 | (struct ipa_sym_addresses): Add fields for new IPA variables. | |
2773 | (symbol_list): Add entries for new IPA variables. | |
2774 | (struct tracepoint): Add fields to hold the address range of the | |
2775 | trampoline used by the tracepoint. | |
2776 | (trampoline_buffer_head): New static variable. | |
2777 | (trampoline_buffer_tail): Ditto. | |
2778 | (claim_trampoline_space): New function. | |
2779 | (have_fast_tracepoint_trampoline_buffer): New function. | |
2780 | (clone_fast_tracepoint): Fill in trampoline fields of tracepoint | |
2781 | structure. | |
2782 | (install_fast_tracepoint): Ditto, also add error buffer argument. | |
2783 | (cmd_qtminftpilen): New function. | |
2784 | (handle_tracepoint_query): Add response to qTMinFTPILen packet. | |
2785 | (fast_tracepoint_from_trampoline_address): New function. | |
2786 | (fast_tracepoint_collecting): Handle trampoline as part of jump | |
2787 | pad space. | |
2788 | (set_trampoline_buffer_space): New function. | |
2789 | (initialize_tracepoint): Initialize new IPA variables. | |
2790 | * target.h (struct target_ops): Add arguments to | |
2791 | install_fast_tracepoint_jump_pad operation, add new | |
2792 | get_min_fast_tracepoint_insn_len operation. | |
2793 | (target_get_min_fast_tracepoint_insn_len): New. | |
2794 | (install_fast_tracepoint_jump_pad): Add arguments. | |
2795 | * server.h (IPA_BUFSIZ): Define. | |
2796 | * linux-i386-ipa.c: Include extra header files. | |
2797 | (initialize_fast_tracepoint_trampoline_buffer): New function. | |
2798 | (initialize_low_tracepoint): Call it. | |
2799 | * server.h (set_trampoline_buffer_space): Declare. | |
2800 | (claim_trampoline_space): Ditto. | |
2801 | (have_fast_tracepoint_trampoline_buffer): Ditto. | |
2802 | ||
1e4d1764 YQ |
2803 | 2011-11-14 Yao Qi <yao@codesourcery.com> |
2804 | ||
2805 | * server.c (handle_query): Handle InstallInTrace for qSupported. | |
2806 | * tracepoint.c (add_tracepoint): Sort list. | |
2807 | (install_tracepoint, download_tracepoint): New. | |
2808 | (cmd_qtdp): Call them to install and download tracepoints. | |
2809 | (sort_tracepoints): Removed. | |
2810 | (cmd_qtstart): Update. | |
2811 | ||
5c73ff4e YQ |
2812 | 2011-11-14 Yao Qi <yao@codesourcery.com> |
2813 | ||
2814 | * mem-break.c (inc_ref_fast_tracepoint_jump): New. | |
2815 | * mem-break.h: Declare. | |
2816 | * tracepoint.c (cmd_qtstart): Move some code to ... | |
2817 | (clone_fast_tracepoint, install_fast_tracepoint): ... here. | |
2818 | New. | |
2819 | (download_tracepoints): Move some code to ... | |
2820 | (download_tracepoint_1): ... here. New. | |
2821 | ||
86a30030 YQ |
2822 | 2011-11-08 Yao Qi <yao@codesourcery.com> |
2823 | ||
2824 | * remote-utils.c (relocate_instruction): A comment fix. | |
2825 | ||
8d26e50c JB |
2826 | 2011-11-07 Joel Brobecker <brobecker@adacore.com> |
2827 | ||
2828 | * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete. | |
2829 | (i386_dr_low_get_control, i386_dr_low_get_status): Use | |
2830 | dr_status_mirror and dr_control_mirror from debug_reg_state. | |
2831 | (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror | |
2832 | (i386_initial_stuff): Remove use of deleted globals. | |
2833 | (i386_get_thread_context, i386_set_thread_context, | |
2834 | i386_thread_added): Use dr_status_mirror and dr_control_mirror | |
2835 | from debug_reg_state. | |
2836 | ||
a59306a3 YQ |
2837 | 2011-11-05 Yao Qi <yao@codesourcery.com> |
2838 | ||
2839 | * tracepoint.c (gdb_collect): Loop over tracepoints of same | |
2840 | address as TPOINT's. | |
2841 | ||
3065dfb6 SS |
2842 | 2011-11-02 Stan Shebs <stan@codesourcery.com> |
2843 | ||
2844 | * tracepoint.c (agent_mem_read_string): New function. | |
2845 | (eval_agent_expr): Call it for tracenz. | |
2846 | * server.c (handle_query): Report support for tracenz. | |
2847 | ||
fd0d8c7c YQ |
2848 | 2011-11-02 Yao Qi <yao@codesourcery.com> |
2849 | ||
2850 | * tracepoint.c (cmd_qtstart): Remove unused local variables. | |
2851 | ||
609086b1 YQ |
2852 | 2011-11-02 Yao Qi <yao@codesourcery.com> |
2853 | ||
2854 | * target.h: Fix a typo in comment. | |
2855 | ||
b9fd1791 PA |
2856 | 2011-10-31 Pedro Alves <pedro@codesourcery.com> |
2857 | ||
2858 | * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't | |
2859 | clobber the breakpoints' shadows with fast tracepoint jumps. | |
2860 | * mem-break.h (check_mem_write): Add `myaddr' parameter. | |
2861 | * target.c (write_inferior_memory): Also pass MYADDR down to | |
2862 | check_mem_write. | |
2863 | ||
03583c20 UW |
2864 | 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org> |
2865 | ||
2866 | * configure.ac: Check support for personality routine. | |
2867 | * configure: Regenerate. | |
2868 | * config.in: Likewise. | |
2869 | * linux-low.c: Include <sys/personality.h>. | |
2870 | Define ADDR_NO_RANDOMIZE if necessary. | |
2871 | (linux_create_inferior): Disable address space randomization when | |
2872 | forking inferior, if requested. | |
2873 | (linux_supports_disable_randomization): New function. | |
2874 | (linux_target_ops): Install it. | |
2875 | * server.h (disable_randomization): Declare. | |
2876 | * server.c (disable_randomization): New global variable. | |
2877 | (handle_general_set): Handle QDisableRandomization. | |
2878 | (handle_query): Likewise for qSupported. | |
2879 | (main): Support --disable-randomization and --no-disable-randomization | |
2880 | command line arguments. | |
2881 | * target.h (struct target_ops): Add supports_disable_randomization. | |
2882 | (target_supports_disable_randomization): New macro. | |
2883 | ||
723b724b MF |
2884 | 2011-09-29 Mike Frysinger <vapier@gentoo.org> |
2885 | ||
2886 | * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the | |
2887 | ifdef check. | |
2888 | [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check. | |
2889 | [!PT_GETDSBT] (target_loadmap): New definition. | |
2890 | (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define. | |
2891 | (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to | |
2892 | LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP, | |
2893 | and PT_GETDSBT to LINUX_LOADMAP. | |
2894 | [!PT_GETDSBT] (linux_read_loadmap): Define to NULL. | |
2895 | (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check. | |
2896 | ||
55329a5c | 2897 | 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org> |
71487fd7 UW |
2898 | |
2899 | * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove. | |
2900 | (arm_linux_hwbp_cap): New static variable. | |
2901 | (arm_linux_get_hwbp_cap): Replace by ... | |
2902 | (arm_linux_init_hwbp_cap): ... this new function. | |
2903 | (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap. | |
2904 | (arm_linux_get_hw_watchpoint_count): Likewise. | |
2905 | (arm_linux_get_hw_watchpoint_max_length): Likewise. | |
2906 | (arm_arch_setup): Call arm_linux_init_hwbp_cap. | |
2907 | (arm_prepare_to_resume): Use perror_with_name instead of error. | |
2908 | ||
55329a5c | 2909 | 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org> |
09b4ad9f UW |
2910 | |
2911 | * linux-arm-low.c: Include <signal.h>. | |
2912 | (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary. | |
2913 | (struct arm_linux_hwbp_cap): New data type. | |
2914 | (arm_hwbp_type, arm_hwbp_control_t): New typedefs. | |
2915 | (struct arm_linux_hw_breakpoint): New data type. | |
2916 | (MAX_BPTS, MAX_WPTS): Define. | |
2917 | (struct arch_process_info, struct arch_lwp_info): New data types. | |
2918 | (arm_linux_get_hwbp_cap): New function. | |
2919 | (arm_linux_get_hw_breakpoint_count): Likewise. | |
2920 | (arm_linux_get_hw_watchpoint_count): Likewise. | |
2921 | (arm_linux_get_hw_watchpoint_max_length): Likewise. | |
2922 | (arm_hwbp_control_initialize): Likewise. | |
2923 | (arm_hwbp_control_is_enabled): Likewise. | |
2924 | (arm_hwbp_control_is_initialized): Likewise. | |
2925 | (arm_hwbp_control_disable): Likewise. | |
2926 | (arm_linux_hw_breakpoint_equal): Likewise. | |
2927 | (arm_linux_hw_point_initialize): Likewise. | |
2928 | (struct update_registers_data): New data structure. | |
2929 | (update_registers_callback: New function. | |
2930 | (arm_insert_point): Likewise. | |
2931 | (arm_remove_point): Likewise. | |
2932 | (arm_stopped_by_watchpoint): Likewise. | |
2933 | (arm_stopped_data_address): Likewise. | |
2934 | (arm_new_process): Likewise. | |
2935 | (arm_new_thread): Likewise. | |
2936 | (arm_prepare_to_resume): Likewise. | |
2937 | (the_low_target): Register arm_insert_point, arm_remove_point, | |
2938 | arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process, | |
2939 | arm_new_thread, and arm_prepare_to_resume. | |
2940 | ||
6b9801d4 SS |
2941 | 2011-09-15 Stan Shebs <stan@codesourcery.com> |
2942 | ||
2943 | * server.h (struct emit_ops): Add compare-goto fields. | |
2944 | * tracepoint.c (gdb_agent_op_sizes): New table. | |
2945 | (emit_eq_goto): New function. | |
2946 | (emit_ne_goto): New function. | |
2947 | (emit_lt_goto): New function. | |
2948 | (emit_le_goto): New function. | |
2949 | (emit_gt_goto): New function. | |
2950 | (emit_ge_goto): New function. | |
2951 | (is_goto_target): New function. | |
2952 | (compile_bytecodes): Recognize special cases of compare-goto | |
2953 | combinations and call specialized emitters for them. | |
2954 | * linux-x86-low.c (amd64_emit_eq_goto): New function. | |
2955 | (amd64_emit_ne_goto): New function. | |
2956 | (amd64_emit_lt_goto): New function. | |
2957 | (amd64_emit_le_goto): New function. | |
2958 | (amd64_emit_gt_goto): New function. | |
2959 | (amd64_emit_ge_goto): New function. | |
2960 | (amd64_emit_ops): Add the new functions. | |
2961 | (i386_emit_eq_goto): New function. | |
2962 | (i386_emit_ne_goto): New function. | |
2963 | (i386_emit_lt_goto): New function. | |
2964 | (i386_emit_le_goto): New function. | |
2965 | (i386_emit_gt_goto): New function. | |
2966 | (i386_emit_ge_goto): New function. | |
2967 | (i386_emit_ops): Add the new functions. | |
2968 | ||
bf15cbda SS |
2969 | 2011-09-08 Stan Shebs <stan@codesourcery.com> |
2970 | ||
2971 | * linux-x86-low.c (i386_emit_prologue): Save %ebx. | |
2972 | (i386_emit_epilogue): Restore %ebx. | |
2973 | ||
943ca1dd JZ |
2974 | 2011-08-31 Jie Zhang <jzhang918@gmail.com> |
2975 | ||
2976 | * server.c (step_thread): Remove definition. | |
2977 | (process_serial_event): Don't handle Hs. | |
2978 | * server.h (step_thread): Remove declaration. | |
2979 | * target.c (set_desired_inferior): Remove use of step_thread. | |
2980 | ||
e3deef73 LM |
2981 | 2011-08-24 Luis Machado <lgustavo@codesourcery.com> |
2982 | ||
2983 | * linux-low.c: Include linux-procfs.h. | |
2984 | (linux_attach_lwp_1): Update comments. | |
2985 | (linux_attach): Scan for existing threads when attaching to a | |
2986 | process that is the tgid. | |
2987 | * Makefile.in: Update dependencies. | |
2988 | ||
13da1c97 LM |
2989 | 2011-08-24 Luis Machado <lgustavo@codesourcery.com> |
2990 | ||
2991 | * configure.srv: Add linux-procfs.o dependencies. | |
2992 | ||
881127c9 YQ |
2993 | 2011-08-14 Yao Qi <yao@codesourcery.com> |
2994 | ||
2995 | * target.h (struct target_ops): Fix indent. | |
2996 | * win32-low.c (win32_target_ops): Fix comment. | |
2997 | ||
58dbd541 YQ |
2998 | 2011-08-14 Andrew Jenner <andrew@codesourcery.com> |
2999 | Yao Qi <yao@codesourcery.com> | |
3000 | ||
3001 | * Makefile.in (clean): Remove tic6x-*.c files. | |
3002 | (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules. | |
3003 | (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise. | |
3004 | (tic6x-c64xp-linux.c): Likewise. | |
3005 | * configure.srv: Add support for tic6x-*-uclinux. | |
3006 | * linux-tic6x-low.c: New. | |
3007 | * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define. | |
3008 | ||
78d85199 YQ |
3009 | 2011-08-14 Andrew Stubbs <ams@codesourcery.com> |
3010 | Yao Qi <yao@codesourcery.com> | |
3011 | ||
3012 | * target.h (struct target_ops): Add read_loadmap. | |
3013 | * linux-low.c (struct target_loadseg): New type. | |
3014 | (struct target_loadmap): New type. | |
3015 | (linux_read_loadmap): New function. | |
3016 | (linux_target_ops): Add linux_read_loadmap. | |
3017 | * server.c (handle_query): Support qXfer:fdpic:read packet. | |
43aaf8b6 PA |
3018 | * win32-low.c (win32_target_ops): Initialize field `read_loadmap' |
3019 | to NULL. | |
78d85199 | 3020 | |
a959a88d EZ |
3021 | 2011-08-05 Eli Zaretskii <eliz@gnu.org> |
3022 | ||
3023 | * win32-low.c: Include <stdint.h>. | |
3024 | ||
1ced966e PA |
3025 | 2011-07-22 Pedro Alves <pedro@codesourcery.com> |
3026 | ||
3027 | * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info | |
3028 | to the inferior here. | |
3029 | (i386_remove_aligned_watchpoint): Ditto. | |
3030 | (i386_handle_nonaligned_watchpoint): Return immediate on fail to | |
3031 | fit part of the watchpoint in the debug registers. | |
3032 | (i386_update_inferior_debug_regs): New. | |
3033 | (i386_low_insert_watchpoint): Work on a local mirror of the debug | |
3034 | registers, and only update the inferior on success. | |
3035 | (i386_low_remove_watchpoint): Ditto. | |
3036 | ||
d26e3629 KY |
3037 | 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com> |
3038 | ||
3039 | * linux-low.c (compare_ints, unique, list_threads, show_process, | |
3040 | linux_core_of_thread): Delete. | |
3041 | (linux_target_ops): Change linux_core_of_thread to | |
3042 | linux_common_core_of_thread. | |
3043 | (linux_qxfer_osdata): Defer to linux_common_xfer_osdata. | |
3044 | * utils.c (malloc_failure): Change type of argument. | |
3045 | (xmalloc, xrealloc, xcalloc, xsnprintf): Delete. | |
3046 | * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c, | |
3047 | common/linux-osdata.c, common/ptid.c and common/buffer.c. | |
3048 | (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o. | |
3049 | (IPA_OBJS): Add common-utils-ipa.o. | |
3050 | (ptid_h, linux_osdata_h): New macros. | |
3051 | (server_h): Add common/common-utils.h, common/xml-utils.h, | |
3052 | common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and | |
3053 | common/ptid.h. | |
3054 | (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o, | |
3055 | ptid.o, buffer.o): New rules. | |
3056 | (linux-low.o): Add common/linux-osdata.h as a dependency. | |
3057 | * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets. | |
3058 | * configure.ac: Add AC_HEADER_DIRENT check. | |
3059 | * config.in: Regenerate. | |
3060 | * configure: Regenerate. | |
3061 | * remote-utils.c (xml_escape_text): Delete. | |
3062 | (buffer_grow, buffer_free, buffer_init, buffer_finish, | |
3063 | buffer_xml_printf): Move to common/buffer.c. | |
3064 | * server.c (main): Remove call to initialize_inferiors. | |
3065 | * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid, | |
3066 | ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid, | |
3067 | ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text, | |
3068 | internal_error, gdb_assert, gdb_assert_fail): Delete. | |
3069 | (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish, | |
3070 | buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to | |
3071 | common/buffer.h. | |
3072 | * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid, | |
3073 | ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid, | |
3074 | initialize_inferiors): Delete. | |
3075 | ||
2275a1a7 PA |
3076 | 2011-07-20 Pedro Alves <pedro@codesourcery.com> |
3077 | ||
3078 | * tracepoint.c (tracepoint_look_up_symbols): Return upon the first | |
3079 | symbol error. | |
3080 | ||
0a5b1e09 PA |
3081 | 2011-05-31 Pedro Alves <pedro@codesourcery.com> |
3082 | ||
3083 | * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in | |
3084 | assertion. | |
3085 | * win32-i386-low.c (i386_dr_low_get_addr): Ditto. | |
3086 | ||
6938fd34 YQ |
3087 | 2011-05-26 Yao Qi <yao@codesourcery.com> |
3088 | ||
3089 | * Makefile.in (thread-db.o): Track dependence to | |
3090 | common/gdb_thread_db.h. | |
3091 | * thread-db.c: include gdb_thread_db.h from right place. | |
3092 | ||
b481f9e0 TT |
3093 | 2011-05-16 Adrian Cornish <gnu@bluedreamer.com> |
3094 | ||
3095 | * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass | |
3096 | __FILE__ and __LINE__ to internal_error. | |
3097 | ||
98a5dd13 DE |
3098 | 2011-05-13 Doug Evans <dje@google.com> |
3099 | ||
3100 | * thread-db.c (try_thread_db_load_from_sdir): New function. | |
3101 | (try_thread_db_load_from_dir): New function. | |
3102 | (thread_db_load_search): Handle $sdir, ignore $pdir. | |
3103 | Remove trying of system directories if search of | |
3104 | libthread-db-search-path fails, that is now done via $sdir. | |
3105 | ||
d248b706 KY |
3106 | 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com> |
3107 | ||
3108 | * server.c (handle_query): Add EnableDisableTracepoints to the list | |
3109 | of supported features. | |
43aaf8b6 | 3110 | * tracepoint.c (clear_installed_tracepoints): Uninstall disabled |
d248b706 | 3111 | tracepoints. |
43aaf8b6 PA |
3112 | (cmd_qtenable_disable): New. |
3113 | (cmd_qtstart): Install tracepoints even if disabled. | |
3114 | (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on | |
3115 | receiving a QTEnable or QTDisable packet. | |
3116 | (gdb_collect): Skip data collection if fast tracepoint is disabled. | |
3117 | (ust_marker_to_static_tracepoint): Do not ignore disabled static | |
3118 | tracepoints. | |
3119 | (gdb_probe): Skip data collection if static tracepoint is disabled. | |
d248b706 | 3120 | |
84e578fb DE |
3121 | 2011-05-10 Doug Evans <dje@google.com> |
3122 | ||
3123 | * thread-db.c (thread_db_handle_monitor_command): Handle elided path. | |
3124 | ||
71f55dd8 DE |
3125 | 2011-05-04 Doug Evans <dje@google.com> |
3126 | ||
3127 | * linux-low.c (linux_join): Skip process lookup. | |
3128 | * spu-low.c (spu_join): Ditto. | |
3129 | * server.c (join_inferiors_callback): Delete. | |
3130 | (process_serial_event): For 'D' packet (detach) call join_inferior | |
3131 | directly. | |
3132 | ||
4d393d60 JM |
3133 | 2011-05-04 Joseph Myers <joseph@codesourcery.com> |
3134 | ||
3135 | * README: Don't mention xscale*-*-linux*. | |
3136 | * configure.srv (xscale*-*-linux*): Don't handle target. | |
3137 | ||
b00ad6ff NF |
3138 | 2011-04-27 Nathan Froyd <froydnj@codesourcery.com> |
3139 | ||
3140 | * linux-x86-low.c (amd64_emit_const): Call memcpy instead of | |
3141 | casting pointers. | |
3142 | (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2): | |
3143 | (i386_emit_const, i386_emit_reg, i386_emit_int_call_1): | |
3144 | (i386_emit_void_call_2): Likewise. | |
3145 | ||
af96c192 YQ |
3146 | 2011-04-26 Yao Qi <yao@codesourcery.com> |
3147 | ||
43aaf8b6 PA |
3148 | * linux-low.c: Move common macros to linux-ptrace.h. |
3149 | Include linux-ptrace.h. | |
af96c192 YQ |
3150 | * Makefile.in (linux_ptrace_h): New. |
3151 | (linux-low.o): Depends on linux-ptrace.h. | |
3152 | ||
03f2bd59 JK |
3153 | 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
3154 | ||
3155 | * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if | |
3156 | RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call. | |
3157 | (remote_prepare): New function with most of the TCP code from ... | |
3158 | (remote_open): ... here. Detect PORT here unconditionally. Move also | |
3159 | setting transport_is_reliable. | |
3160 | * server.c (run_once): New variable. | |
3161 | (gdbserver_usage): Document it. | |
3162 | (main): Set run_once for `--once'. Call remote_prepare. Exit after | |
3163 | the first run if RUN_ONCE. | |
3164 | * server.h (run_once, remote_prepare): New declarations. | |
3165 | ||
7a9dd1b2 TT |
3166 | 2011-04-19 Tom Tromey <tromey@redhat.com> |
3167 | ||
3168 | * win32-low.c (handle_load_dll): Remove duplicate "the". | |
3169 | ||
81239425 PM |
3170 | 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr> |
3171 | ||
3172 | Remove support for old Cygwin 1.5 versions. | |
3173 | * win32-low.c (win32_create_inferior): Use new cygwin_path_list | |
3174 | function to avoid warning. | |
3175 | (win32_add_one_solib): Use cygwin_conv_path function to avoid | |
3176 | warning. | |
3177 | ||
9e0627f1 PM |
3178 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
3179 | ||
3180 | * gdbserver/server.h (Macro _): Define it if not available. | |
3181 | ||
588eebee MS |
3182 | 2011-03-14 Michael Snyder <msnyder@vmware.com> |
3183 | ||
348af9f7 | 3184 | * hostio.c (handle_close): Remove unnecessary null test. |
588eebee | 3185 | |
43f70d4c JB |
3186 | 2011-03-10 Joel Brobecker <brobecker@adacore.com> |
3187 | ||
3188 | * Makefile.in (maintainer-clean realclean distclean): Remove | |
3189 | "make ... subdir_do" command. | |
3190 | ||
348af9f7 MS |
3191 | 2011-03-10 Michael Snyder <msnyder@vmware.com> |
3192 | ||
3193 | * tracepoint.c (tracepoint_finish_step): Fix loop variable. | |
3194 | ||
3195 | * server.c (handle_v_run): Free alloced buffer on early return. | |
3196 | ||
e637a4f5 YQ |
3197 | 2011-03-09 Yao Qi <yao@codesourcery.com> |
3198 | ||
3199 | Revert: | |
3200 | 2011-03-04 Yao Qi <yao@codesourcery.com> | |
3201 | ||
3202 | * Makefile.in: Remove GNU make feature --directory. | |
3203 | ||
3204 | 2011-03-05 Yao Qi <yao@codesourcery.com> | |
3205 | ||
3206 | * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable. | |
3207 | (subdir_do): New make target. Copied from gdb/Makefile. | |
3208 | (maintainer-clean, realclean, distclean, clean): Call corresponding | |
3209 | make targets in common/Makefile. | |
3210 | ||
3211 | 2011-02-11 Yao Qi <yao@codesourcery.com> | |
3212 | ||
3213 | * configure.ac: Call AC_PROG_RANLIB. | |
3214 | * Makefile.in: Remove signals.o from OBS. Link libcommon.a. | |
3215 | * configure: Regenerate. | |
3216 | ||
e6edda56 JK |
3217 | 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
3218 | ||
3219 | * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically. | |
3220 | ||
e5141119 JB |
3221 | 2011-03-06 Yao Qi <yao@codesourcery.com> |
3222 | ||
3223 | * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR). | |
3224 | ||
64794aa4 JB |
3225 | 2011-03-05 Yao Qi <yao@codesourcery.com> |
3226 | ||
3227 | * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable. | |
3228 | (subdir_do): New make target. Copied from gdb/Makefile. | |
3229 | (maintainer-clean, realclean, distclean, clean): Call corresponding | |
3230 | make targets in common/Makefile. | |
3231 | ||
7a762829 YQ |
3232 | 2011-03-04 Yao Qi <yao@codesourcery.com> |
3233 | ||
3234 | * Makefile.in: Remove GNU make feature --directory. | |
3235 | ||
348af9f7 MS |
3236 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
3237 | ||
3238 | * server.c (queue_stop_reply): Call xmalloc not malloc. | |
3239 | ||
3240 | 2011-03-02 Michael Snyder <msnyder@vmware.com> | |
3241 | ||
3242 | * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc. | |
3243 | ||
9f72fee2 MS |
3244 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
3245 | ||
588eebee MS |
3246 | * tracepoint.c (cmd_qtv): Discard unused value 'packet'. |
3247 | (cmd_qtframe): Ditto. | |
3248 | (cmd_qtbuffer): Ditto. | |
3249 | (cmd_bigqtbuffer): Ditto. | |
3250 | ||
9f72fee2 MS |
3251 | * utils.c (decimal2str): Initialize 'width' to nine, then |
3252 | don't mess with it. | |
3253 | ||
8040bd49 UW |
3254 | 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
3255 | ||
3256 | * hostio.c (require_data): Free *data, not data. | |
3257 | ||
7e52cbd0 JK |
3258 | 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3259 | ||
3260 | * hostio.c (require_data): Use free, not xfree. | |
3261 | ||
9130f83e MS |
3262 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
3263 | ||
4b812f4e MS |
3264 | * server.c (handle_query): Discard unused value. |
3265 | ||
9130f83e MS |
3266 | * hostio.c (require_data): Free malloc memory before returning |
3267 | error. | |
3268 | ||
69d37113 MS |
3269 | 2011-02-26 Michael Snyder <msnyder@vmware.com> |
3270 | ||
3271 | * linux-low.c (list_threads): Call closedir for dirent. | |
3272 | ||
35f5825a MS |
3273 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
3274 | ||
2a589cef MS |
3275 | * i386-low.c (i386-length_and_rw_bits): Comment the fact that |
3276 | a case statement falls through. | |
3277 | ||
0adea5f7 MS |
3278 | * linux-low.c (linux_xfer_siginfo): Fix fencepost error. |
3279 | ||
35f5825a MS |
3280 | * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error |
3281 | in comparison. | |
3282 | ||
238f1c74 MS |
3283 | 2011-02-26 Michael Snyder <msnyder@vmware.com> |
3284 | ||
3285 | * utils.c (decimal2str): Eliminate dead code and dead param. | |
3286 | (pulongest): Drop dead param from call to decimal2str. | |
3287 | (plongest): Ditto. | |
3288 | ||
633ff500 JB |
3289 | 2011-02-24 Joel Brobecker <brobecker@adacore.com> |
3290 | ||
3291 | Revert the following patch (not approved yet): | |
3292 | 2011-02-21 Hui Zhu <teawater@gmail.com> | |
3293 | * tracepoint.c (tp_printf): New function. | |
3294 | (eval_agent_expr): Handle gdb_agent_op_printf. | |
3295 | ||
f9c6ff72 HZ |
3296 | 2011-02-21 Hui Zhu <teawater@gmail.com> |
3297 | ||
3298 | * tracepoint.c (tp_printf): New function. | |
3299 | (eval_agent_expr): Handle gdb_agent_op_printf. | |
3300 | ||
94d5e490 TT |
3301 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
3302 | ||
3303 | * Makefile.in (tracepoint-ipa.o): Depend on ax.def. | |
3304 | (tracepoint.o): Likewise. | |
3305 | * tracepoint.c (enum gdb_agent_op): Use ax.def. | |
3306 | (gdb_agent_op_names): Likewise. | |
3307 | ||
c7f96d2b TT |
3308 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
3309 | ||
3310 | * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick, | |
3311 | gdb_agent_op_rot>: New constants. | |
3312 | (gdb_agent_op_names): Add pick and roll. | |
3313 | (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New | |
3314 | cases. | |
3315 | ||
0feedb2c JK |
3316 | 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
3317 | ||
3318 | * aclocal.m4: Regenerated with aclocal-1.11.1. | |
3319 | ||
b3b9301e PA |
3320 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
3321 | ||
3322 | * server.c (handle_qxfer_traceframe_info): New. | |
3323 | (qxfer_packets): Register "traceframe-info". | |
3324 | (handle_query): Report support for qXfer:traceframe-info:read+. | |
3325 | * tracepoint.c (match_blocktype): New. | |
3326 | (traceframe_find_block_type): Rename to ... | |
3327 | (traceframe_walk_blocks): ... this. Add callback filter argument, | |
3328 | and use it. | |
3329 | (traceframe_find_block_type): New, reimplemented on top of | |
3330 | traceframe_walk_blocks. | |
3331 | (build_traceframe_info_xml): New. | |
3332 | (traceframe_read_info): New. | |
3333 | * server.h (traceframe_read_info): Declare. | |
3334 | ||
4f3e6fb7 YQ |
3335 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
3336 | ||
3337 | * configure.ac: Call AC_PROG_RANLIB. | |
3338 | * Makefile.in: Remove signals.o from OBS. Link libcommon.a. | |
3339 | * configure: Regenerate. | |
3340 | ||
764880b7 PA |
3341 | 2011-02-07 Pedro Alves <pedro@codesourcery.com> |
3342 | ||
3343 | * server.c (gdb_read_memory): Change return semantics to allow | |
3344 | partial transfers. | |
3345 | (handle_search_memory_1): Adjust. | |
3346 | (process_serial_event) <'m' packet>: Handle partial transfers. | |
3347 | * tracepoint.c (traceframe_read_mem): Handle partial transfers. | |
3348 | ||
1c79eb8a PA |
3349 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
3350 | ||
3351 | * regcache.c (init_register_cache): Initialize | |
3352 | regcache->register_status. | |
3353 | (free_register_cache): Release regcache->register_status. | |
3354 | (regcache_cpy): Copy register_status. | |
3355 | (registers_to_string): Print 'x's for unavailable registers. | |
3356 | (supply_register): Mark the register's status valid or | |
3357 | unavailable, depending on whether a buffer was passed in or not. | |
3358 | (supply_register_zeroed): New. | |
3359 | (supply_regblock): Mark the registers' status valid or | |
3360 | unavailable, depending on whether a buffer was passed in or not. | |
3361 | * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines. | |
3362 | (struct regcache): New `register_status' field. | |
3363 | (supply_register_zeroed): Declare. | |
3364 | * i387-fp.c (i387_xsave_to_cache): Zero out registers using | |
3365 | supply_register_zeroed, rather than passing a NULL buffer to | |
3366 | supply_register. | |
3367 | * tracepoint.c (fetch_traceframe_registers): Update comment. | |
3368 | ||
85724a0e PA |
3369 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
3370 | ||
3371 | * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register | |
3372 | buffer explicit. | |
3373 | ||
d08aafef PA |
3374 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
3375 | ||
3376 | * server.h (decode_xfer_write): Change prototype. | |
3377 | * remote-utils.c (decode_xfer_write): Remove `annex' parameter, | |
3378 | and don't extract the annex here. | |
3379 | * server.c (decode_xfer_read): Remove `annex' parameter, | |
3380 | and don't extract the annex here. | |
3381 | (decode_xfer): New. | |
3382 | (struct qxfer): New. | |
3383 | (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries) | |
3384 | (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu) | |
3385 | (handle_qxfer_statictrace): New functions, abstracted out from | |
3386 | handle_query, and made to use the struct qxfer interface. | |
3387 | (handle_threads_qxfer_proper): Rename to ... | |
3388 | (handle_qxfer_threads_proper): ... this. | |
3389 | (handle_threads_qxfer): Rename to ... | |
3390 | (handle_qxfer_threads): ... this. Adjust. | |
3391 | (qxfer_packets): New array. | |
3392 | (handle_qxfer): New function. | |
3393 | (handle_query): Use handle_qxfer. | |
3394 | ||
493e2a69 MS |
3395 | 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com> |
3396 | ||
3397 | * gdbreplay.c: Shorten lines of >= 80 columns. | |
3398 | * linux-low.c: Ditto. | |
3399 | * linux-ppc-low.c: Ditto. | |
3400 | * linux-s390-low.c: Ditto. | |
3401 | * linux-sparc-low.c: Ditto. | |
3402 | * linux-x86-low.c: Ditto. | |
3403 | * linux-xtensa-low.c: Ditto. | |
3404 | * mem-break.c: Ditto. | |
3405 | * nto-low.c: Ditto. | |
3406 | * regcache.h: Ditto. | |
3407 | * remote-utils.c: Ditto. | |
3408 | * server.c: Ditto. | |
3409 | * server.h: Ditto. | |
3410 | * thread-db.c: Ditto. | |
3411 | * tracepoint.c: Ditto. | |
3412 | * utils.c: Ditto. | |
3413 | * win32-low.h: Ditto. | |
3414 | ||
44944448 JB |
3415 | 2011-01-05 Joel Brobecker <brobecker@adacore.com> |
3416 | ||
3417 | * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year | |
3418 | update. | |
3419 | ||
71ce852c JB |
3420 | 2011-01-01 Joel Brobecker <brobecker@adacore.com> |
3421 | ||
3422 | * server.c (gdbserver_version): Update copyright year in version | |
3423 | output. | |
3424 | * gdbreplay.c (gdbreplay_version): Ditto. | |
3425 | ||
eb826dc6 MF |
3426 | 2010-12-29 Jie Zhang <jie.zhang@analog.com> |
3427 | ||
3428 | * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets. | |
3429 | * linux-bfin-low.c: New file. | |
3430 | * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and | |
3431 | PT_DATA_ADDR for BFIN targets. | |
3432 | * Makefile.in (SFILES): Add linux-bfin-low.c. | |
3433 | (clean): Remove reg-bfin.c. | |
3434 | (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets. | |
3435 | * README: Mention supported Blackfin targets. | |
3436 | ||
39ab222a MF |
3437 | 2010-12-23 Mike Frysinger <vapier@gentoo.org> |
3438 | ||
3439 | * .gitignore: New file. | |
3440 | ||
a1f2ce7d MF |
3441 | 2010-11-16 Mike Frysinger <vapier@gentoo.org> |
3442 | ||
3443 | * linux-low.c (linux_tracefork_child): Add char* cast to arg. | |
3444 | ||
f474844c JZ |
3445 | 2010-10-22 Jie Zhang <jie@codesourcery.com> |
3446 | ||
3447 | * Makefile.in: Add FLAGS_TO_PASS variable. | |
3448 | (install): Remove dependency of install-only and recursively | |
3449 | invoke make for install-only. | |
3450 | ||
f1048712 DE |
3451 | 2010-10-04 Doug Evans <dje@google.com> |
3452 | ||
3453 | * Makefile.in (uninstall): Use $(DESTDIR). | |
3454 | ||
b53a1623 PA |
3455 | 2010-09-24 Pedro Alves <pedro@codesourcery.com> |
3456 | ||
e6ee044d PA |
3457 | PR gdb/11842 |
3458 | ||
b53a1623 PA |
3459 | * linux-x86-low.c (compat_siginfo_from_siginfo) |
3460 | (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when | |
3461 | si_code is < 0. Check for si_code == SI_TIMER before checking for | |
3462 | si_code < 0. | |
3463 | ||
fa1bd1e4 JB |
3464 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
3465 | ||
3466 | * lynx-i386-low.c: New file. | |
3467 | * configure.srv: Add handling of i[34567]86-*-lynxos* targets. | |
3468 | ||
47fac8f8 JB |
3469 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
3470 | ||
3471 | * lynx-low.c (ptrace_request_to_str): Remove handling for | |
3472 | request values that have been removed in LynxOS 5.x. | |
3473 | ||
1adfc54d JB |
3474 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
3475 | ||
3476 | * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of | |
3477 | <ptrace.h> | |
3478 | ||
c2a66c29 NS |
3479 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
3480 | ||
3481 | * configure.ac: Add --enable-inprocess-agent option. | |
3482 | * configure: Rebuilt. | |
3483 | ||
32fcada3 YQ |
3484 | 2010-09-06 Yao Qi <yao@codesourcery.com> |
3485 | ||
3486 | * linux-low.c (linux_kill): Remove unused variable. | |
3487 | (linux_stabilize_threads): Likewise. | |
3488 | * server.c (start_inferior): Likewise. | |
3489 | (queue_stop_reply_callback): Likewise. | |
3490 | * tracepoint.c (do_action_at_tracepoint): Likewise. | |
3491 | ||
0cccb683 YQ |
3492 | 2010-09-06 Yao Qi <yao@codesourcery.com> |
3493 | ||
3494 | * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior | |
3495 | on return. | |
3496 | ||
423ec54c JK |
3497 | 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
3498 | ||
3499 | * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER. | |
3500 | ||
12ac6819 PA |
3501 | 2010-09-06 Pedro Alves <pedro@codesourcery.com> |
3502 | ||
3503 | * Makefile.in (install-only): Replace $IPA_DEPFILES with | |
3504 | "$(IPA_DEPFILES)". | |
3505 | ||
8ed54b31 JB |
3506 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
3507 | ||
3508 | * gdbserver/lynx-low.c, gdbserver/lynx-low.h, | |
3509 | gdbserver/lynx-ppc-low.c: New files. | |
3510 | * Makefile.in (lynx_low_h): New variable. | |
3511 | (lynx-low.o, lynx-ppc-low.o): New rules. | |
3512 | * configure.ac: On LynxOS, link with -lnetinet. | |
3513 | * configure.srv: Add handling of powerpc-*-lynxos* targets. | |
3514 | * configure: regenerate. | |
3515 | ||
bb0116a4 JB |
3516 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
3517 | ||
3518 | * Makefile.in (vasprintf.o, vsnprintf.o): New rules. | |
3519 | * configure.ac: Add check for vasprintf and vsnprintf. | |
3520 | * configure, config.in: Regenerate. | |
3521 | * server.h (vasprintf, vsnprintf): Add conditional declarations. | |
3522 | ||
a778ab81 | 3523 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
3524 | ||
3525 | * gdbreplay.c: Move include of alloca.h up, next to include of | |
3526 | malloc.h. | |
3527 | * server.h: Add include of malloc.h. | |
3528 | * mem-break.c: Remove include of malloc.h. | |
3529 | * server.c, tracepoint.c, utils.c, win32-low.c: Likewise. | |
3530 | ||
8b034a19 | 3531 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
3532 | ||
3533 | * Makefile.in (memmem.o): Build with -Wno-error. | |
3534 | ||
3535 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> | |
3536 | ||
3537 | * utils.c (xsnprintf): Make non-static. | |
3538 | * server.h: Add xsnprintf declaration. | |
3539 | * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c: | |
3540 | replace calls to snprintf by calls to xsnprintf throughout. | |
3541 | ||
3542 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> | |
3543 | ||
3544 | * configure.ac: Add configure check for alloca. | |
3545 | * configure, config.in: Regenerate. | |
3546 | * server.h: Include alloca.h if it exists. | |
3547 | * gdbreplay.c: Include alloca.h if it exists. | |
3548 | ||
1a981360 PA |
3549 | 2010-08-28 Pedro Alves <pedro@codesourcery.com> |
3550 | ||
3551 | * linux-low.c (__SIGRTMIN): Define if not already defined. | |
3552 | (linux_create_inferior): Check for __ANDROID__ rather than | |
3553 | __SIGRTMIN. | |
3554 | (enqueue_one_deferred_signal): Don't requeue non-RT signals that | |
3555 | are already deferred. | |
3556 | (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN. | |
3557 | (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is | |
3558 | stopped and already has a pending signal to report. | |
3559 | (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has | |
3560 | a pending signal to report or is moving out of a jump pad. | |
3561 | (linux_init_signals): Check for __ANDROID__ rather than | |
3562 | __SIGRTMIN. | |
3563 | ||
b4d51a55 PA |
3564 | 2010-08-28 Pedro Alves <pedro@codesourcery.com> |
3565 | ||
3566 | * linux-low.c (linux_stabilize_threads): Wrap debug output in a | |
3567 | debug_threads check. Avoid a linear search when not doing debug | |
3568 | output. | |
3569 | ||
ec48365d PA |
3570 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
3571 | ||
3572 | * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t. | |
3573 | (struct gdb_event) <fd>: Change type to gdb_fildes_t. | |
3574 | (struct file_handler) <fd>: Change type to gdb_fildes_t. | |
3575 | (process_event): Change local fd's type to gdb_fildes_t. | |
3576 | (create_file_handler): Adjust prototype. | |
3577 | (delete_file_handler): Adjust prototype. | |
3578 | (handle_file_event): Adjust prototype. Use pfildes. | |
3579 | (create_file_event): Adjsut prototype. | |
3580 | * remote-utils.c (remote_desc, listen_desc): Change type to | |
3581 | gdb_fildes_t. | |
3582 | * server.h: New gdb_fildes_t typedef. | |
3583 | [USE_WIN32API]: Include winsock2.h. | |
3584 | (delete_file_handler, add_file_handler): Adjust prototypes. | |
3585 | (pfildes): Declare. | |
3586 | * utils.c (pfildes): New. | |
3587 | ||
854d88f0 PA |
3588 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
3589 | ||
3590 | * configure.ac (build_warnings): Add -Wno-char-subscripts. | |
3591 | * configure: Regenerate. | |
3592 | ||
0146f85b PA |
3593 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
3594 | ||
3595 | * linux-low.c (linux_unprepare_to_access_memory): Rename to ... | |
3596 | (linux_done_accessing_memory): ... this. | |
3597 | (linux_target_ops): Adjust. | |
3598 | * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust. | |
3599 | * nto-low.c (nto_target_ops): Adjust comment. | |
3600 | * server.c (gdb_read_memory, gdb_write_memory): Adjust. | |
3601 | * spu-low.c (spu_target_ops): Adjust comment. | |
3602 | * target.h (target_ops): Rename unprepare_to_access_memory field | |
3603 | to done_accessing_memory. | |
3604 | (unprepare_to_access_memory): Rename to ... | |
3605 | (done_accessing_memory): ... this. | |
3606 | ||
90d74c30 PA |
3607 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
3608 | ||
3609 | * linux-low.c (linux_prepare_to_access_memory): New. | |
3610 | (linux_unprepare_to_access_memory): New. | |
3611 | (linux_target_ops): Install them. | |
3612 | * server.c (read_memory): Rename to ... | |
3613 | (gdb_read_memory): ... this. Use | |
3614 | prepare_to_access_memory/prepare_to_access_memory. | |
3615 | (write_memory): Rename to ... | |
3616 | (gdb_write_memory): ... this. Use | |
3617 | prepare_to_access_memory/prepare_to_access_memory. | |
3618 | (handle_search_memory_1): Adjust. | |
3619 | (process_serial_event): Adjust. | |
3620 | * target.h (struct target_ops): New fields | |
3621 | prepare_to_access_memory and unprepare_to_access_memory. | |
3622 | (prepare_to_access_memory, unprepare_to_access_memory): New. | |
3623 | * linux-x86-low.c (x86_insert_point, x86_remove_point): Use | |
3624 | prepare_to_access_memory/prepare_to_access_memory. | |
3625 | * nto-low.c (nto_target_ops): Adjust. | |
3626 | * spu-low.c (spu_target_ops): Adjust. | |
3627 | * win32-low.c (win32_target_ops): Adjust. | |
3628 | ||
fd467969 PA |
3629 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
3630 | ||
3631 | * Makefile.in (WARN_CFLAGS): Get it from configure. | |
3632 | (WERROR_CFLAGS): New. | |
3633 | (INTERNAL_CFLAGS): Add WERROR_CFLAGS. | |
3634 | * configure.ac: Introduce --enable-werror, which adds -Werror to | |
3635 | the compiler command line. Enabled by default. Disable with | |
3636 | --disable-werror. Add -Wdeclaration-after-statement | |
3637 | Wpointer-arith and -Wformat-nonliteral to warning flags. | |
3638 | * configure: Regenerate. | |
3639 | ||
331e2f5f PA |
3640 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
3641 | ||
3642 | * mem-break.c [HAVE_MALLOC_H]: Include malloc.h. | |
3643 | ||
e581f2b4 PA |
3644 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
3645 | ||
3646 | * gdbreplay.c (remote_error): New. | |
3647 | (gdbchar): New. | |
3648 | (expect): Use gdbchar. Check for error reading from GDB. | |
3649 | Clarify sync error output. | |
3650 | (play): Check for errors writing to GDB. | |
3651 | * linux-low.c (sigchld_handler): Really ignore `write' errors. | |
3652 | * remote-utils.c (getpkt): Check for errors writing to the remote | |
3653 | descriptor. | |
3654 | ||
3c11dd79 PA |
3655 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
3656 | ||
3657 | * linux-low.c (linux_wait_1): Move non-debugging code out of | |
3658 | `debug_threads' control. | |
3659 | ||
d20a8ad9 PA |
3660 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
3661 | ||
3662 | * linux-low.c (linux_wait_1): Don't set last_status here. | |
3663 | * server.c (push_event, queue_stop_reply_callback): Assert we're | |
3664 | not pushing a TARGET_WAITKIND_IGNORE event. | |
3665 | (start_inferior, start_inferior, attach_inferior, handle_v_cont) | |
3666 | (myresume, handle_target_event): Set the thread's last_resume_kind | |
3667 | and last_status from the target returned status. | |
3668 | ||
964e4306 PA |
3669 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
3670 | ||
3671 | PR threads/10729 | |
3672 | ||
3673 | * linux-x86-low.c (update_debug_registers_callback): New. | |
3674 | (i386_dr_low_set_addr): Use it. | |
3675 | (i386_dr_low_get_addr): New. | |
3676 | (i386_dr_low_set_control): Use update_debug_registers_callback. | |
3677 | (i386_dr_low_get_control): New. | |
3678 | (i386_dr_low_get_status): Adjust. | |
3679 | * linux-low.c (linux_stop_lwp): New. | |
3680 | * linux-low.h (linux_stop_lwp): Declare. | |
3681 | ||
3682 | * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as | |
3683 | argument instead of a i386_debug_reg_state. | |
3684 | (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of | |
3685 | a i386_debug_reg_state. | |
3686 | (i386_insert_aligned_watchpoint): Adjust. | |
3687 | (i386_remove_aligned_watchpoint): Adjust. | |
3688 | (i386_low_stopped_data_address): Read the debug registers from the | |
3689 | inferior instead of from the mirrors. | |
3690 | * i386-low.h (struct i386_debug_reg_state): Extend comment. | |
3691 | (i386_dr_low_get_addr): Declare. | |
3692 | (i386_dr_low_get_control): Declare. | |
3693 | (i386_dr_low_get_status): Change prototype. | |
3694 | ||
3695 | * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals. | |
3696 | (i386_dr_low_get_addr): New. | |
3697 | (i386_dr_low_get_control): New. | |
3698 | (i386_dr_low_get_status): Adjust prototype. Return | |
3699 | dr_status_mirror. | |
3700 | (i386_initial_stuff): Clear dr_status_mirror and | |
3701 | dr_control_mirror. | |
3702 | (i386_get_thread_context): Adjust. | |
3703 | (i386_set_thread_context): Adjust. | |
3704 | (i386_thread_added): Adjust. | |
3705 | ||
5f21a75b PA |
3706 | 2010-08-24 Pedro Alves <pedro@codesourcery.com> |
3707 | ||
3708 | * linux-low.h (linux_thread_area): Delete declaration. | |
3709 | ||
3e4c1235 TS |
3710 | 2010-08-11 Thomas Schwinge <thomas@codesourcery.com> |
3711 | ||
3712 | * linux-low.c (linux_wait_1): Correctly return the ptid of the child | |
3713 | after its termination. | |
3714 | ||
1971b033 PA |
3715 | 2010-08-09 Pedro Alves <pedro@codesourcery.com> |
3716 | ||
3717 | * linux-low.c (gdb_wants_lwp_stopped): Delete. | |
3718 | (gdb_wants_all_stopped): Delete. | |
3719 | (linux_wait_1): Don't call them. | |
3720 | * server.c (handle_v_cont): Tag all threads as want-stopped. | |
3721 | (gdb_wants_thread_stopped): Fix comments. Tag the thread that | |
3722 | stopped as "client-wants-stopped". | |
3723 | ||
310444ac PA |
3724 | 2010-07-31 Pedro Alves <pedro@codesourcery.com> |
3725 | ||
3726 | * Makefile.in (signals_h): New. | |
3727 | (server_h): Depend on it. | |
3728 | (server.o): Don't depend on $(signals_def). | |
3729 | (signals.o): Depend on $(signals_def). | |
3730 | ||
a19cae16 JK |
3731 | 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
3732 | ||
3733 | * Makefile.in (signals_def): New. | |
3734 | (server_h): Append include/gdb/signals.h and signals_def. | |
3735 | (server.o): Append signals_def. | |
3736 | ||
30d50328 JK |
3737 | 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
3738 | ||
3739 | * server.c (handle_target_event): Use target_signal_to_host for | |
3740 | resume_info.sig initialization. | |
3741 | * target.h (struct thread_resume) <sig>: New comment. | |
3742 | ||
5c3216e2 OS |
3743 | 2010-07-20 Ozkan Sezer <sezeroz@gmail.com> |
3744 | ||
c6f46ca0 OS |
3745 | * server.c (handle_query): strcpy() the returned string from paddress() |
3746 | instead of sprintf(). | |
5c3216e2 OS |
3747 | * utils.c (paddress): Return phex_nz(). |
3748 | ||
6bd31874 JB |
3749 | 2010-07-07 Joel Brobecker <brobecker@adacore.com> |
3750 | ||
3751 | * server.c (handle_v_cont): Call mourn_inferior if process | |
3752 | just exited. | |
3753 | (myresume): Likewise. | |
3754 | ||
0fb4aa4b PA |
3755 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
3756 | ||
3757 | Static tracepoints, and integration with UST. | |
3758 | ||
3759 | * configure.ac: Handle --with-ust. substitute ustlibs and ustinc. | |
3760 | * mem-break.c (uninsert_all_breakpoints) | |
3761 | (reinsert_all_breakpoints): New. | |
3762 | * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints): | |
3763 | * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New. | |
3764 | (gdb_agent_ust_loaded, helper_thread_id) | |
3765 | (gdb_agent_helper_thread_id): New macros. | |
3766 | (struct ipa_sym_addresses): Add addr_ust_loaded, | |
3767 | addr_helper_thread_id, addr_cmd_buf. | |
3768 | (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf. | |
3769 | (in_process_agent_loaded_ust): New. | |
3770 | (write_e_ust_not_loaded): New. | |
3771 | (maybe_write_ipa_ust_not_loaded): New. | |
3772 | (struct collect_static_trace_data_action): New. | |
3773 | (enum tracepoint_type) <static_tracepoint>: New. | |
3774 | (struct tracepoint) <handle>: Mention static tracepoints. | |
3775 | (struct static_tracepoint_ctx): New. | |
3776 | (CMD_BUF_SIZE): New. | |
3777 | (add_tracepoint_action): Handle static tracepoint actions. | |
3778 | (unprobe_marker_at): New. | |
3779 | (clear_installed_tracepoints): Handle static tracepoints. | |
3780 | (cmd_qtdp): Handle static tracepoints. | |
3781 | (probe_marker_at): New. | |
3782 | (cmd_qtstart): Handle static tracepoints. | |
3783 | (response_tracepoint): Handle static tracepoints. | |
3784 | (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New. | |
3785 | (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat. | |
3786 | (get_context_regcache): Handle static tracepoints. | |
3787 | (do_action_at_tracepoint): Handle static tracepoint actions. | |
3788 | (traceframe_find_block_type): Handle static trace data blocks. | |
3789 | (traceframe_read_sdata): New. | |
3790 | (download_tracepoints): Download static tracepoint actions. | |
3791 | [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h. | |
3792 | (GDB_PROBE_NAME): New. | |
3793 | (ust_ops): New. | |
3794 | (GET_UST_SYM): New. | |
3795 | (USTF): New. | |
3796 | (dlsym_ust): New. | |
3797 | (ust_marker_to_static_tracepoint): New. | |
3798 | (gdb_probe): New. | |
3799 | (collect_ust_data_at_tracepoint): New. | |
3800 | (gdb_ust_probe): New. | |
3801 | (UNIX_PATH_MAX, SOCK_DIR): New. | |
3802 | (gdb_ust_connect_sync_socket): New. | |
3803 | (resume_thread, stop_thread): New. | |
3804 | (run_inferior_command): New. | |
3805 | (init_named_socket): New. | |
3806 | (gdb_ust_socket_init): New. | |
3807 | (cstr_to_hexstr): New. | |
3808 | (next_st): New. | |
3809 | (first_marker, next_marker): New. | |
3810 | (response_ust_marker): New. | |
3811 | (cmd_qtfstm, cmd_qtsstm): New. | |
3812 | (unprobe_marker_at, probe_marker_at): New. | |
3813 | (cmd_qtstmat, gdb_ust_thread): New. | |
3814 | (gdb_ust_init): New. | |
3815 | (initialize_tracepoint_ftlib): Call gdb_ust_init. | |
3816 | * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h | |
3817 | (ST_REGENTRY): New. | |
3818 | (x86_64_st_collect_regmap): New. | |
3819 | (X86_64_NUM_ST_COLLECT_GREGS): New. | |
3820 | (AMD64_RIP_REGNUM): New. | |
3821 | (supply_static_tracepoint_registers): New. | |
3822 | * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h | |
3823 | (ST_REGENTRY): New. | |
3824 | (i386_st_collect_regmap): New. | |
3825 | (i386_NUM_ST_COLLECT_GREGS): New. | |
3826 | (supply_static_tracepoint_registers): New. | |
3827 | * server.c (handle_query): Handle qXfer:statictrace:read. | |
3828 | <qSupported>: Report support for StaticTracepoints, and | |
3829 | qXfer:statictrace:read features. | |
3830 | * server.h (traceframe_read_sdata) | |
3831 | (supply_static_tracepoint_registers): Declare. | |
3832 | * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex) | |
3833 | (unpack_varlen_hex): Include in IPA build. | |
3834 | * Makefile.in (ustlibs, ustinc): New. | |
3835 | (IPA_OBJS): Add remote-utils-ipa.o. | |
3836 | ($(IPA_LIB)): Link -ldl and -lpthread. | |
3837 | (UST_CFLAGS): New. | |
3838 | (IPAGENT_CFLAGS): Add UST_CFLAGS. | |
3839 | * config.in, configure: Regenerate. | |
3840 | ||
9e4344e5 PA |
3841 | 2010-06-20 Ian Lance Taylor <iant@google.com> |
3842 | Pedro Alves <pedro@codesourcery.com> | |
3843 | ||
3844 | * linux-x86-low.c (always_true): Delete. | |
3845 | (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of | |
3846 | trying to fool the compiler with always_true. | |
3847 | ||
c6beb2cb PA |
3848 | 2010-06-20 Pedro Alves <pedro@codesourcery.com> |
3849 | ||
3850 | * tracepoint.c (condition_true_at_tracepoint): Don't run compiled | |
3851 | conditions in gdbserver. | |
3852 | ||
d2ed6730 UW |
3853 | 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com> |
3854 | ||
3855 | * spu-low.c (spu_read_memory): Wrap around local store limit. | |
3856 | (spu_write_memory): Likewise. | |
3857 | ||
4e29fb54 PA |
3858 | 2010-06-15 Pedro Alves <pedro@codesourcery.com> |
3859 | ||
3860 | * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2) | |
3861 | (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with | |
3862 | LONGEST uses. | |
3863 | * server.h (struct emit_ops): Replace int64_t uses with LONGEST | |
3864 | uses. | |
3865 | * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t | |
3866 | uses with LONGEST uses. | |
3867 | ||
6a271cae PA |
3868 | 2010-06-14 Stan Shebs <stan@codesourcery.com> |
3869 | Pedro Alves <pedro@codesourcery.com> | |
3870 | ||
3871 | Bytecode compiler. | |
3872 | ||
3873 | * linux-x86-low.c: Include limits.h. | |
3874 | (add_insns): New. | |
3875 | (always_true): New. | |
3876 | (EMIT_ASM): New. | |
3877 | (EMIT_ASM32): New. | |
3878 | (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add) | |
3879 | (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh) | |
3880 | (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext, | |
3881 | (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or) | |
3882 | (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal, | |
3883 | (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref, | |
3884 | (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address) | |
3885 | (amd64_emit_const, amd64_emit_call, amd64_emit_reg) | |
3886 | (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext) | |
3887 | (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1) | |
3888 | (amd64_emit_void_call_2): New. | |
3889 | (amd64_emit_ops): New. | |
3890 | (i386_emit_prologue, i386_emit_epilogue, i386_emit_add) | |
3891 | (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed) | |
3892 | (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not) | |
3893 | (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor) | |
3894 | (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed) | |
3895 | (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto) | |
3896 | (i386_emit_goto, i386_write_goto_address, i386_emit_const) | |
3897 | (i386_emit_call, i386_emit_reg, i386_emit_pop) | |
3898 | (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap) | |
3899 | (i386_emit_stack_adjust, i386_emit_int_call_1) | |
3900 | (i386_emit_void_call_2): New. | |
3901 | (i386_emit_ops): New. | |
3902 | (x86_emit_ops): New. | |
3903 | (the_low_target): Install x86_emit_ops. | |
3904 | * server.h (struct emit_ops): New. | |
3905 | (get_raw_reg_func_addr): Declare. | |
3906 | (current_insn_ptr, emit_error): Declare. | |
3907 | * tracepoint.c (get_raw_reg, get_trace_state_variable_value) | |
3908 | (set_trace_state_variable_value): New defines. | |
3909 | (struct ipa_sym_addresses): New fields addr_get_raw_reg, | |
3910 | addr_get_trace_state_variable_value and | |
3911 | addr_set_trace_state_variable_value. | |
3912 | (symbol_list): New fields for get_raw_reg, | |
3913 | get_trace_state_variable_value and set_trace_state_variable_value. | |
3914 | (condfn): New typedef. | |
3915 | (struct tracepoint): New field `compiled_cond'. | |
3916 | (do_action_at_tracepoint): Clear compiled_cond. | |
3917 | (get_trace_state_variable_value, set_trace_state_variable_value): | |
3918 | Export in the IPA. | |
3919 | (condition_true_at_tracepoint): If there's a compiled condition, | |
3920 | run that. | |
3921 | (current_insn_ptr, emit_error): New globals. | |
3922 | (struct bytecode_address): New. | |
3923 | (get_raw_reg_func_addr): New. | |
3924 | (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul) | |
3925 | (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext) | |
3926 | (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor) | |
3927 | (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned) | |
3928 | (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const) | |
3929 | (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap) | |
3930 | (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New. | |
3931 | (compile_tracepoint_condition, compile_bytecodes): New. | |
3932 | * target.h (emit_ops): Forward declare. | |
3933 | (struct target_ops): New field emit_ops. | |
3934 | (target_emit_ops): New. | |
3935 | * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New. | |
3936 | * linux-i386-ipa.c (gdb_agent_get_raw_reg): New. | |
3937 | * linux-low.c (linux_emit_ops): New. | |
3938 | (linux_target_ops): Install it. | |
3939 | * linux-low.h (struct linux_target_ops): New field emit_ops. | |
3940 | ||
92b72907 UW |
3941 | 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com> |
3942 | ||
3943 | * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR. | |
3944 | * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW. | |
3945 | ||
fa593d66 PA |
3946 | 2010-06-01 Pedro Alves <pedro@codesourcery.com> |
3947 | Stan Shebs <stan@codesourcery.com> | |
3948 | ||
3949 | * Makefile.in (IPA_DEPFILES, extra_libraries): New. | |
3950 | (all): Depend on $(extra_libraries). | |
3951 | (install-only): Install the IPA. | |
3952 | (IPA_OBJS, IPA_LIB): New. | |
3953 | (clean): Remove the IPA lib. | |
3954 | (IPAGENT_CFLAGS): New. | |
3955 | (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o) | |
3956 | (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o) | |
3957 | (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules. | |
3958 | * linux-amd64-ipa.c, linux-i386-ipa.c: New files. | |
3959 | * configure.ac: Check for atomic builtins support in the compiler. | |
3960 | (IPA_DEPFILES, extra_libraries): Define. | |
3961 | * configure.srv (ipa_obj): Add description. | |
3962 | (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define. | |
3963 | (i[34567]86-*-linux*): Set ipa_obj. | |
3964 | (x86_64-*-linux*): Set ipa_obj. | |
3965 | * linux-low.c (stabilizing_threads): New. | |
3966 | (supports_fast_tracepoints): New. | |
3967 | (linux_detach): Stabilize threads before detaching. | |
3968 | (handle_tracepoints): Handle internal tracing breakpoints. Assert | |
3969 | the lwp is either not stabilizing, or is moving out of a jump pad. | |
3970 | (linux_fast_tracepoint_collecting): New. | |
3971 | (maybe_move_out_of_jump_pad): New. | |
3972 | (enqueue_one_deferred_signal): New. | |
3973 | (dequeue_one_deferred_signal): New. | |
3974 | (linux_wait_for_event_1): If moving out of a jump pad, defer | |
3975 | pending signals to later. | |
3976 | (linux_stabilize_threads): New. | |
3977 | (linux_wait_1): Check if threads need moving out of jump pads, and | |
3978 | do it if so. | |
3979 | (stuck_in_jump_pad_callback): New. | |
3980 | (move_out_of_jump_pad_callback): New. | |
3981 | (lwp_running): New. | |
3982 | (linux_resume_one_lwp): Handle moving out of jump pads. | |
3983 | (linux_set_resume_request): Dequeue deferred signals. | |
3984 | (need_step_over_p): Also step over fast tracepoint jumps. | |
3985 | (start_step_over): Also uninsert fast tracepoint jumps. | |
3986 | (finish_step_over): Also reinsert fast tracepoint jumps. | |
3987 | (linux_install_fast_tracepoint_jump): New. | |
3988 | (linux_target_ops): Install linux_stabilize_threads and | |
3989 | linux_install_fast_tracepoint_jump_pad. | |
3990 | * linux-low.h (linux_target_ops) <get_thread_area, | |
3991 | install_fast_tracepoint_jump_pad>: New fields. | |
3992 | (struct lwp_info) <collecting_fast_tracepoint, | |
3993 | pending_signals_to_report, exit_jump_pad_bkpt>: New fields. | |
3994 | (linux_get_thread_area): Declare. | |
3995 | * linux-x86-low.c (jump_insn): New. | |
3996 | (x86_get_thread_area): New. | |
3997 | (append_insns): New. | |
3998 | (push_opcode): New. | |
3999 | (amd64_install_fast_tracepoint_jump_pad): New. | |
4000 | (i386_install_fast_tracepoint_jump_pad): New. | |
4001 | (x86_install_fast_tracepoint_jump_pad): New. | |
4002 | (the_low_target): Install x86_get_thread_area and | |
4003 | x86_install_fast_tracepoint_jump_pad. | |
4004 | * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory. | |
4005 | (struct fast_tracepoint_jump): New. | |
4006 | (fast_tracepoint_jump_insn): New. | |
4007 | (fast_tracepoint_jump_shadow): New. | |
4008 | (find_fast_tracepoint_jump_at): New. | |
4009 | (fast_tracepoint_jump_here): New. | |
4010 | (delete_fast_tracepoint_jump): New. | |
4011 | (set_fast_tracepoint_jump): New. | |
4012 | (uninsert_fast_tracepoint_jumps_at): New. | |
4013 | (reinsert_fast_tracepoint_jumps_at): New. | |
4014 | (set_breakpoint_at): Use write_inferior_memory. | |
4015 | (uninsert_raw_breakpoint): Use write_inferior_memory. | |
4016 | (check_mem_read): Mask out fast tracepoint jumps. | |
4017 | (check_mem_write): Mask out fast tracepoint jumps. | |
4018 | * mem-break.h (struct fast_tracepoint_jump): Forward declare. | |
4019 | (set_fast_tracepoint_jump): Declare. | |
4020 | (delete_fast_tracepoint_jump) | |
4021 | (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at) | |
4022 | (reinsert_fast_tracepoint_jumps_at): Declare. | |
4023 | * regcache.c: Don't compile many functions when building the | |
4024 | in-process agent library. | |
4025 | (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating | |
4026 | the register buffer in the heap. | |
4027 | (free_register_cache): If the register buffer isn't owned by the | |
4028 | regcache, don't free it. | |
4029 | (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate | |
4030 | pre-existing register caches. | |
4031 | * remote-utils.c (convert_int_to_ascii): Constify `from' parameter | |
4032 | type. | |
4033 | (convert_ascii_to_int): : Constify `from' parameter type. | |
4034 | (decode_M_packet, decode_X_packet): Replace the `to' parameter by | |
4035 | a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc | |
4036 | the needed buffer in-place. | |
4037 | (relocate_instruction): New. | |
4038 | * server.c (handle_query) <qSymbols>: If the target supports | |
4039 | tracepoints, give it a chance of looking up symbols. Report | |
4040 | support for fast tracepoints. | |
4041 | (handle_status): Stabilize threads. | |
4042 | (process_serial_event): Adjust. | |
4043 | * server.h (struct fast_tracepoint_jump): Forward declare. | |
4044 | (struct process_info) <fast_tracepoint_jumps>: New field. | |
4045 | (convert_ascii_to_int, convert_int_to_ascii): Adjust. | |
4046 | (decode_X_packet, decode_M_packet): Adjust. | |
4047 | (relocate_instruction): Declare. | |
4048 | (in_process_agent_loaded): Declare. | |
4049 | (tracepoint_look_up_symbols): Declare. | |
4050 | (struct fast_tpoint_collect_status): Declare. | |
4051 | (fast_tracepoint_collecting): Declare. | |
4052 | (force_unlock_trace_buffer): Declare. | |
4053 | (handle_tracepoint_bkpts): Declare. | |
4054 | (initialize_low_tracepoint) | |
4055 | (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare. | |
4056 | * target.h (struct target_ops) <stabilize_threads, | |
4057 | install_fast_tracepoint_jump_pad>: New fields. | |
4058 | (stabilize_threads, install_fast_tracepoint_jump_pad): New. | |
4059 | * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h. | |
4060 | [HAVE_STDINT_H]: Include stdint.h. | |
4061 | (trace_debug_1): Rename to ... | |
4062 | (trace_vdebug): ... this. | |
4063 | (trace_debug): Rename to ... | |
4064 | (trace_debug_1): ... this. Add `level' parameter. | |
4065 | (trace_debug): New. | |
4066 | (ATTR_USED, ATTR_NOINLINE): New. | |
4067 | (IP_AGENT_EXPORT): New. | |
4068 | (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end) | |
4069 | (collecting, gdb_collect, stop_tracing, flush_trace_buffer) | |
4070 | (about_to_request_buffer_space, trace_buffer_is_full) | |
4071 | (stopping_tracepoint, expr_eval_result, error_tracepoint) | |
4072 | (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr) | |
4073 | (trace_buffer_lo, trace_buffer_hi, traceframe_read_count) | |
4074 | (traceframe_write_count, traceframes_created) | |
4075 | (trace_state_variables) | |
4076 | New renaming defines. | |
4077 | (struct ipa_sym_addresses): New. | |
4078 | (STRINGIZE_1, STRINGIZE, IPA_SYM): New. | |
4079 | (symbol_list): New. | |
4080 | (ipa_sym_addrs): New. | |
4081 | (all_tracepoint_symbols_looked_up): New. | |
4082 | (in_process_agent_loaded): New. | |
4083 | (write_e_ipa_not_loaded): New. | |
4084 | (maybe_write_ipa_not_loaded): New. | |
4085 | (tracepoint_look_up_symbols): New. | |
4086 | (debug_threads) [IN_PROCESS_AGENT]: New. | |
4087 | (read_inferior_memory) [IN_PROCESS_AGENT]: New. | |
4088 | (UNKNOWN_SIDE_EFFECTS): New. | |
4089 | (stop_tracing): New. | |
4090 | (flush_trace_buffer): New. | |
4091 | (stop_tracing_bkpt): New. | |
4092 | (flush_trace_buffer_bkpt): New. | |
4093 | (read_inferior_integer): New. | |
4094 | (read_inferior_uinteger): New. | |
4095 | (read_inferior_data_pointer): New. | |
4096 | (write_inferior_data_pointer): New. | |
4097 | (write_inferior_integer): New. | |
4098 | (write_inferior_uinteger): New. | |
4099 | (struct collect_static_trace_data_action): Delete. | |
4100 | (enum tracepoint_type): New. | |
4101 | (struct tracepoint) <type>: New field `type'. | |
43aaf8b6 PA |
4102 | <actions_str, step_actions, step_actions_str>: Only include in |
4103 | GDBserver. | |
fa593d66 PA |
4104 | <orig_size, obj_addr_on_target, adjusted_insn_addr> |
4105 | <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields. | |
4106 | (tracepoints): Use IP_AGENT_EXPORT. | |
4107 | (last_tracepoint): Don't include in the IPA. | |
4108 | (stopping_tracepoint): Use IP_AGENT_EXPORT. | |
4109 | (trace_buffer_is_full): Use IP_AGENT_EXPORT. | |
4110 | (alloced_trace_state_variables): New. | |
4111 | (trace_state_variables): Use IP_AGENT_EXPORT. | |
4112 | (traceframe_t): Delete unused variable. | |
4113 | (circular_trace_buffer): Don't include in the IPA. | |
4114 | (trace_buffer_start): Delete. | |
4115 | (struct trace_buffer_control): New. | |
4116 | (trace_buffer_free): Delete. | |
4117 | (struct ipa_trace_buffer_control): New. | |
4118 | (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV) | |
4119 | (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT): | |
4120 | New. | |
4121 | (trace_buffer_ctrl): New. | |
4122 | (TRACE_BUFFER_CTRL_CURR): New. | |
4123 | (trace_buffer_start, trace_buffer_free, trace_buffer_end_free): | |
4124 | Reimplement as macros. | |
4125 | (trace_buffer_wrap): Delete. | |
4126 | (traceframe_write_count, traceframe_read_count) | |
4127 | (traceframes_created, tracing): Use IP_AGENT_EXPORT. | |
4128 | (struct tracepoint_hit_ctx) <type>: New field. | |
4129 | (struct fast_tracepoint_ctx): New. | |
4130 | (memory_barrier): New. | |
4131 | (cmpxchg): New. | |
4132 | (record_tracepoint_error): Update atomically in the IPA. | |
4133 | (clear_inferior_trace_buffer): New. | |
4134 | (about_to_request_buffer_space): New. | |
4135 | (trace_buffer_alloc): Handle GDBserver and inferior simulatenous | |
4136 | updating the same buffer. | |
4137 | (add_tracepoint): Default the tracepoint's type to trap | |
4138 | tracepoint, and orig_size to -1. | |
4139 | (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated | |
4140 | internal variables. | |
4141 | (create_trace_state_variable): New parameter `gdb'. Handle it. | |
4142 | (clear_installed_tracepoints): Clear fast tracepoint jumps. | |
4143 | (cmd_qtdp): Handle fast tracepoints. | |
4144 | (cmd_qtdv): Adjust. | |
4145 | (max_jump_pad_size): New. | |
4146 | (gdb_jump_pad_head): New. | |
4147 | (get_jump_space_head): New. | |
4148 | (claim_jump_space): New. | |
4149 | (sort_tracepoints): New. | |
4150 | (MAX_JUMP_SIZE): New. | |
4151 | (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the | |
4152 | IPA. | |
4153 | (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected | |
4154 | support. Upload fast traceframes, and delete internal IPA | |
4155 | breakpoints. | |
4156 | (stop_tracing_handler): New. | |
4157 | (flush_trace_buffer_handler): New. | |
4158 | (cmd_qtstop): Upload fast tracepoints. | |
4159 | (response_tracepoint): Handle fast tracepoints. | |
4160 | (tracepoint_finished_step): Upload fast traceframes. Set the | |
4161 | tracepoint hit context's tracepoint type. | |
4162 | (handle_tracepoint_bkpts): New. | |
4163 | (tracepoint_was_hit): Set the tracepoint hit context's tracepoint | |
4164 | type. Add comment about fast tracepoints. | |
4165 | (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the | |
4166 | non-existing action_str field. | |
4167 | (get_context_regcache): Handle fast tracepoints. | |
4168 | (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC | |
4169 | to the regcache. | |
4170 | (fast_tracepoint_from_jump_pad_address): New. | |
4171 | (fast_tracepoint_from_ipa_tpoint_address): New. | |
4172 | (collecting_t): New. | |
4173 | (force_unlock_trace_buffer): New. | |
4174 | (fast_tracepoint_collecting): New. | |
4175 | (collecting): New. | |
4176 | (gdb_collect): New. | |
4177 | (write_inferior_data_ptr): New. | |
4178 | (target_tp_heap): New. | |
4179 | (target_malloc): New. | |
4180 | (download_agent_expr): New. | |
4181 | (UALIGN): New. | |
4182 | (download_tracepoints): New. | |
4183 | (download_trace_state_variables): New. | |
4184 | (upload_fast_traceframes): New. | |
4185 | (IPA_FIRST_TRACEFRAME): New. | |
4186 | (IPA_NEXT_TRACEFRAME_1): New. | |
4187 | (IPA_NEXT_TRACEFRAME): New. | |
4188 | [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h. | |
4189 | [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer) | |
4190 | (gdb_jump_pad_buffer_end): New. | |
4191 | [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New. | |
4192 | (initialize_tracepoint): Adjust. | |
4193 | [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch | |
4194 | buffer. Initialize the low module. | |
4195 | * utils.c (PREFIX, TOOLNAME): New. | |
4196 | (malloc_failure): Use PREFIX. | |
4197 | (error): In the IPA, an error causes an exit. | |
4198 | (fatal, warning): Use PREFIX. | |
4199 | (internal_error): Use TOOLNAME. | |
4200 | (NUMCELLS): Increase to 10. | |
4201 | * configure, config.in: Regenerate. | |
4202 | ||
d149dd1d PA |
4203 | 2010-06-01 Pedro Alves <pedro@codesourcery.com> |
4204 | ||
4205 | * server.c (handle_query) <qSupported>: Do two passes over the | |
4206 | qSupported string to avoid nesting strtok. | |
4207 | ||
f6528abd JK |
4208 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
4209 | ||
4210 | * Makefile.in (SFILES): Add $(srcdir)/proc-service.list. | |
4211 | (CDEPS): New. | |
4212 | * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also | |
4213 | -Wl,--dynamic-list. | |
4214 | * configure: Regenerate. | |
4215 | * proc-service.list: New. | |
4216 | ||
ca2a87a0 JK |
4217 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
4218 | ||
4219 | * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT. | |
4220 | New comment. | |
4221 | ||
363a6e9f OS |
4222 | 2010-05-26 Ozkan Sezer <sezeroz@gmail.com> |
4223 | ||
4224 | * gdbreplay.c (remote_open): Check error return from socket() call by | |
4225 | its equality to -1 not by it being negative. | |
4226 | * remote-utils.c (remote_open): Likewise. | |
4227 | ||
d23b6cb1 PA |
4228 | 2010-05-23 Pedro Alves <pedro@codesourcery.com> |
4229 | ||
4230 | * config.h: Regenerate. | |
4231 | ||
28d3cf85 MK |
4232 | 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com> |
4233 | ||
4234 | * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel | |
4235 | doesn't provide PTRACE_GET_THREAD_AREA. | |
4236 | ||
fea36a59 MK |
4237 | 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com> |
4238 | ||
4239 | * linux-m68k-low.c: Include <asm/ptrace.h> | |
4240 | (ps_get_thread_area): Implement. | |
4241 | ||
24b066ba DE |
4242 | 2010-05-03 Doug Evans <dje@google.com> |
4243 | ||
4244 | * event-loop.c (struct callback_event): New struct. | |
4245 | (callback_list): New global. | |
4246 | (append_callback_event, delete_callback_event): New functions. | |
4247 | (process_callback): New function. | |
4248 | (start_event_loop): Call it. | |
4249 | * remote-utils.c (NOT_SCHEDULED): Define. | |
4250 | (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals, | |
4251 | moved out of readchar. | |
4252 | (readchar): Rewrite. Call reschedule before returning. | |
4253 | (reset_readchar): New function. | |
4254 | (remote_close): Call it. | |
4255 | (process_remaining, reschedule): New functions. | |
4256 | * server.h (callback_handler_func): New typedef. | |
4257 | (append_callback_event, delete_callback_event): Declare. | |
4258 | ||
9836d6ea PA |
4259 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
4260 | ||
4261 | * proc-service.c (ps_pglobal_lookup): Use | |
4262 | thread_db_look_up_one_symbol. | |
4263 | * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb' | |
4264 | parameter. Use it instead of all_symbols_looked_up. | |
4265 | * server.h (struct process_info) <all_symbols_looked_up>: Delete | |
4266 | field. | |
4267 | (all_symbols_looked_up): Don't declare. | |
4268 | (look_up_one_symbol): Add new `may_ask_gdb' parameter. | |
4269 | * thread-db.c (struct thread_db) <all_symbols_looked_up>: New | |
4270 | field. | |
4271 | (thread_db_look_up_symbols): Adjust call to look_up_one_symbol. | |
4272 | Set all_symbols_looked_up here. | |
4273 | (thread_db_look_up_one_symbol): New. | |
4274 | (thread_db_get_tls_address): Adjust. | |
4275 | (thread_db_load_search, try_thread_db_load_1): Always allocate the | |
4276 | thread_db object on the heap, and tentatively set it in the | |
4277 | process structure. | |
4278 | (thread_db_init): Don't set all_symbols_looked_up here. | |
4279 | * linux-low.h (thread_db_look_up_one_symbol): Declare. | |
4280 | ||
7984d532 PA |
4281 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
4282 | ||
4283 | * linux-low.c (linux_kill, linux_detach): Adjust. | |
4284 | (status_pending_p_callback): Remove redundant statement. Check | |
4285 | for !TARGET_WAITIKIND_IGNORE, instead of | |
4286 | TARGET_WAITKIND_STOPPED. | |
4287 | (handle_tracepoints): Make sure LWP is locked. Adjust. | |
4288 | (linux_wait_for_event_1): Adjust. | |
4289 | (linux_cancel_breakpoints): New. | |
4290 | (unsuspend_one_lwp): New. | |
4291 | (unsuspend_all_lwps): New. | |
4292 | (linux_wait_1): If finishing a step-over, unsuspend all lwps. | |
4293 | (send_sigstop_callback): Change return type to int, add new | |
4294 | `except' parameter and handle it. | |
4295 | (suspend_and_send_sigstop_callback): New. | |
4296 | (stop_all_lwps): Add new `suspend' and `expect' parameters, and | |
4297 | pass them down. If SUSPEND, also increment the lwp's suspend | |
4298 | count. | |
4299 | (linux_resume_one_lwp): Add notice about resuming a suspended LWP. | |
4300 | (need_step_over_p): Don't consider suspended LWPs. | |
4301 | (start_step_over): Adjust. | |
4302 | (proceed_one_lwp): Change return type to int, add new `except' | |
4303 | parameter and handle it. | |
4304 | (unsuspend_and_proceed_one_lwp): New. | |
4305 | (proceed_all_lwps): Use find_inferior instead of | |
4306 | for_each_inferior. | |
4307 | (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them | |
4308 | also decrement the suspend count of LWPs. Pass `except' down, | |
4309 | instead of hacking its suspend count. | |
4310 | (linux_pause_all): Add `freeze' parameter. Adjust. | |
4311 | (linux_unpause_all): New. | |
4312 | (linux_target_ops): Install linux_unpause_all. | |
4313 | * server.c (handle_status): Adjust. | |
4314 | * target.h (struct target_ops): New fields `unpause_all' and | |
4315 | `cancel_breakpoints'. Add new parameter to `pause_all'. | |
4316 | (pause_all): Add new `freeze' parameter. | |
4317 | (unpause_all): New. | |
4318 | (cancel_breakpoints): New. | |
4319 | * tracepoint.c (clear_installed_tracepoints): Pause threads, and | |
4320 | cancel breakpoints. | |
4321 | (cmd_qtstart): Pause threads. | |
4322 | (stop_tracing): Pause threads, and cancel breakpoints. | |
4323 | * win32-low.c (win32_target_ops): Adjust. | |
4324 | ||
e471f25b PA |
4325 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
4326 | ||
4327 | * linux-low.c (linux_wait_for_event_1): Move passing the signal to | |
4328 | the inferior right away from here... | |
4329 | (linux_wait_1): ... to here, and adjust to check the thread's | |
4330 | last_resume_kind instead of the lwp's step or stop_expected flags. | |
4331 | ||
1915ef4f PA |
4332 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
4333 | ||
4334 | * README: Use consistent `GDB' and `GDBserver' spellings. | |
4335 | ||
f9e39928 PA |
4336 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
4337 | ||
4338 | * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped. | |
4339 | (linux_kill): Stop all lwps here. Don't delete the main lwp here. | |
4340 | (linux_detach_one_lwp): Assume the lwp is stopped. | |
4341 | (any_thread_of): Delete. | |
4342 | (linux_detach): Stop all lwps here. Don't blindly delete all | |
4343 | breakpoints. | |
4344 | (delete_lwp_callback): New. | |
4345 | (linux_mourn): Delete all lwps of the process that is gone. | |
4346 | (linux_wait_1): Don't delete the last lwp of the process here. | |
4347 | * mem-break.h (mark_breakpoints_out): Declare. | |
4348 | * mem-break.c (mark_breakpoints_out): New. | |
4349 | (free_all_breakpoints): Use it. | |
4350 | * server.c (handle_target_event): If the process is gone, mark | |
4351 | breakpoints out. | |
4352 | * thread-db.c (struct thread_db) <create_bp>: New field. | |
4353 | (thread_db_enable_reporting): Fix prototype. Store a thread event | |
4354 | breakpoint reference in the thread_db struct. | |
4355 | (thread_db_load_search): Clear the thread_db object. | |
4356 | (try_thread_db_load_1): Ditto. | |
4357 | (switch_to_process): New. | |
4358 | (disable_thread_event_reporting): Use it. | |
4359 | (remove_thread_event_breakpoints): New. | |
4360 | (thread_db_detach, thread_db_mourn): Use it. | |
4361 | ||
1e7fc18c PA |
4362 | 2010-05-01 Pedro Alves <pedro@codesourcery.com> |
4363 | ||
4364 | * linux-low.c (linux_enable_event_reporting): New. | |
4365 | (linux_wait_for_event_1, handle_extended_wait): Use it. | |
4366 | ||
02fc4de7 PA |
4367 | 2010-04-30 Pedro Alves <pedro@codesourcery.com> |
4368 | ||
4369 | * linux-low.c (linux_kill_one_lwp, linux_kill) | |
4370 | (linux_detach_one_lwp): Adjust to send_sigstop interface change. | |
4371 | (send_sigstop): Take an lwp_info as parameter instead. Queue a | |
4372 | SIGSTOP even if the LWP is stopped. | |
4373 | (send_sigstop_callback): New. | |
4374 | (stop_all_lwps): Use send_sigstop_callback instead. | |
4375 | (linux_resume_one_thread): Adjust. | |
4376 | (proceed_one_lwp): Still proceed an LWP that the client has | |
4377 | requested to stop, if we haven't reported it as stopped yet. Make | |
4378 | sure that LWPs the client want stopped, have a pending SIGSTOP. | |
4379 | ||
bc3b5632 DE |
4380 | 2010-04-26 Doug Evans <dje@google.com> |
4381 | ||
ae1ada35 DE |
4382 | * server.c (handle_general_set): Make static. |
4383 | ||
bc3b5632 DE |
4384 | * remote-utils.c (putpkt_binary_1): Call readchar instead of read. |
4385 | Print received char after testing for error/eof instead of before. | |
4386 | (input_interrupt): Tweak comment. | |
4387 | ||
65730243 DE |
4388 | 2010-04-23 Doug Evans <dje@google.com> |
4389 | ||
4390 | * server.c (start_inferior): Print inferior argv if --debug. | |
4391 | ||
a8ae7dc0 AR |
4392 | 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com> |
4393 | ||
4394 | * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists. | |
4395 | * nto-x86-low.c: Include server.h | |
4396 | ||
1c07cc19 PM |
4397 | 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr> |
4398 | ||
4399 | * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to | |
4400 | be consistent with other sources of this directory. | |
4401 | (init_registers_amd64): Correct name of source file of this function | |
4402 | in the comment. | |
4403 | ||
e0a61e09 PM |
4404 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
4405 | ||
4406 | * configure.srv (x86_64-*-mingw*): New configuration for Windows | |
4407 | 64-bit executables. | |
4408 | ||
54709339 PM |
4409 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
4410 | ||
4411 | * win32-i386-low.c: Add 64-bit support. | |
4412 | (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting. | |
4413 | (init_registers_amd64): Declare. | |
4414 | (mappings): Add 64-bit version of array. | |
4415 | (init_windows_x86): New function. | |
4416 | (the_low_target): Change init_arch field to init_windows_x86. | |
4417 | ||
e8f0053d PM |
4418 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
4419 | ||
4420 | * win32-low.c: Adapt to support also 64-bit architecture. | |
4421 | (child_xfer_memory): Use uintptr_t type for local variable `addr'. | |
4422 | (get_image_name): Use SIZE_T type for local variable `done'. | |
4423 | (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'. | |
4424 | (toolhelp_get_dll_name): Idem. | |
4425 | (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'. | |
4426 | Use uintptr_t typecast to avoid warning. | |
4427 | (handle_unload_dll): Use uintptr_t typecast to avoid warning. | |
4428 | (handle_exception): Use phex_nz to avoid warning. | |
4429 | (win32_wait): Remove unused local variable `process'. | |
4430 | ||
c481e77e PM |
4431 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
4432 | ||
4433 | * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by | |
4434 | `amd64-avx.o'. | |
4435 | ||
12ea4b69 PM |
4436 | 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr> |
4437 | ||
4438 | * configure.ac: Use `ws2_32' library for srv_mingw. | |
4439 | * configure: Regenerate. | |
4440 | * gdbreplay.c: Include winsock2.h instead of winsock.h. | |
4441 | * remote-utils.c: Likewise. | |
4442 | ||
f6d1620c L |
4443 | 2010-04-17 H.J. Lu <hongjiu.lu@intel.com> |
4444 | ||
4445 | * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only | |
4446 | if __x86_64__ is defined. | |
4447 | ||
8e642873 PM |
4448 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
4449 | ||
4450 | * configure: Regenerate. | |
4451 | ||
711e434b PM |
4452 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
4453 | ||
4454 | * server.c (handle_query): Handle 'qGetTIBAddr' query. | |
4455 | * target.h (target_ops): New get_tib_address field. | |
4456 | * win32-low.h (win32_thread_info): Add thread_local_base field. | |
4457 | * win32-low.c (child_add_thread): Add tlb argument. | |
4458 | Set thread_local_base field to TLB. | |
4459 | (get_child_debug_event): Adapt to child_add_thread change. | |
4460 | (win32_get_tib_address): New function. | |
4461 | (win32_target_ops): Set get_tib_address field to | |
4462 | win32_get_tib_address. | |
4463 | * linux-low.c (linux_target_ops): Set get_tib_address field to NULL. | |
4464 | ||
505106cd PA |
4465 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
4466 | ||
505106cd PA |
4467 | * linux-low.c (linux_mourn): Also remove the process. |
4468 | * server.c (handle_target_event): Don't remove the process here. | |
4469 | * nto-low.c (nto_mourn): New. | |
4470 | (nto_target_ops): Install it. | |
4471 | * spu-low.c (spu_mourn): New. | |
4472 | (spu_target_ops): Install it. | |
4473 | * win32-low.c (win32_mourn): New. | |
4474 | (win32_target_ops): Install it. | |
4475 | ||
e8470a06 PA |
4476 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
4477 | ||
4478 | * server.h (buffer_xml_printf): Remove redundant `;'. | |
4479 | ||
45ba0d02 PA |
4480 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
4481 | ||
4482 | * regcache.c (set_register_cache): Invalidate regcaches before | |
4483 | changing the register cache layout. | |
4484 | (regcache_invalidate_one): Allow a NULL regcache. | |
4485 | * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate | |
4486 | regcaches before changing the register cache layout or the target | |
4487 | regsets. | |
4488 | ||
59e04013 L |
4489 | 2010-04-12 H.J. Lu <hongjiu.lu@intel.com> |
4490 | ||
4491 | * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused | |
4492 | variable warning on Linux/x86-64. | |
4493 | ||
8336d594 PA |
4494 | 2010-04-11 Pedro Alves <pedro@codesourcery.com> |
4495 | ||
4496 | GDBserver disconnected tracing support. | |
4497 | ||
4498 | * linux-low.c (linux_remove_process): Delete. | |
4499 | (add_lwp): Don't set last_resume_kind here. | |
4500 | (linux_kill): Use `mourn'. | |
4501 | (linux_detach): Use `thread_db_detach', and `mourn'. | |
4502 | (linux_mourn): New. | |
4503 | (linux_attach_lwp_1): Adjust comment. | |
4504 | (linux_attach): last_resume_kind moved the thread_info; adjust. | |
4505 | (status_pending_p_callback): Adjust. | |
4506 | (linux_wait_for_event_1): Adjust. | |
4507 | (count_events_callback, select_singlestep_lwp_callback) | |
4508 | (select_event_lwp_callback, cancel_breakpoints_callback) | |
4509 | (db_wants_lwp_stopped, linux_wait_1, need_step_over_p) | |
4510 | (proceed_one_lwp): Adjust. | |
4511 | (linux_async): Add debug output. | |
4512 | (linux_thread_stopped): New. | |
4513 | (linux_pause_all): New. | |
4514 | (linux_target_ops): Install linux_mourn, linux_thread_stopped and | |
4515 | linux_pause_all. | |
4516 | * linux-low.h (struct lwp_info): Delete last_resume_kind field. | |
4517 | (thread_db_free): Delete declaration. | |
4518 | (thread_db_detach, thread_db_mourn): Declare. | |
4519 | * thread-db.c (thread_db_init): Use thread_db_mourn. | |
4520 | (thread_db_free): Delete, split in two. | |
4521 | (disable_thread_event_reporting): New. | |
4522 | (thread_db_detach): New. | |
4523 | (thread_db_mourn): New. | |
4524 | ||
4525 | * server.h (struct thread_info) <last_resume_kind>: New field. | |
4526 | <attached>: Add comment. | |
4527 | <gdb_detached>: New field. | |
4528 | (handler_func): Change return type to int. | |
4529 | (handle_serial_event, handle_target_event): Ditto. | |
4530 | (gdb_connected): Declare. | |
4531 | (tracing): Delete. | |
4532 | (disconnected_tracing): Declare. | |
4533 | (stop_tracing): Declare. | |
4534 | ||
4535 | * server.c (handle_query) <qSupported>: Report support for | |
4536 | disconnected tracing. | |
4537 | (queue_stop_reply_callback): Account for running threads. | |
4538 | (gdb_wants_thread_stopped): New. | |
4539 | (gdb_wants_all_threads_stopped): New. | |
4540 | (gdb_reattached_process): New. | |
4541 | (handle_status): Clear the `gdb_detached' flag of all processes. | |
4542 | In all-stop, stop all threads. | |
4543 | (main): Be sure to leave tfind mode. Handle disconnected tracing. | |
4544 | (process_serial_event): If the remote connection breaks, or if an | |
4545 | exit was forced with "monitor exit", force an event loop exit. | |
4546 | Handle disconnected tracing on detach. | |
4547 | (handle_serial_event): Adjust. | |
4548 | (handle_target_event): If GDB isn't connected, forward events back | |
4549 | to the inferior, unless the last process exited, in which case, | |
4550 | exit gdbserver. Adjust interface. | |
4551 | ||
4552 | * remote-utils.c (remote_open): Don't block in accept. Instead | |
4553 | register an event loop source on the listen socket file | |
4554 | descriptor. Refactor bits into ... | |
4555 | (listen_desc): ... this new global. | |
4556 | (gdb_connected): ... this new function. | |
4557 | (enable_async_notification): ... this new function. | |
4558 | (handle_accept_event): ... this new function. | |
4559 | (remote_close): Clear remote_desc. | |
4560 | ||
4561 | * inferiors.c (add_thread): Set the new thread's last_resume_kind. | |
4562 | ||
4563 | * target.h (struct target_ops) <mourn, thread_stopped, pause_all>: | |
4564 | New fields. | |
4565 | (mourn_inferior): Define. | |
4566 | (target_process_qsupported): Avoid the dangling else problem. | |
4567 | (thread_stopped): Define. | |
4568 | (pause_all): Define. | |
4569 | (target_waitstatus_to_string): Declare. | |
4570 | * target.c (target_waitstatus_to_string): New. | |
4571 | ||
4572 | * tracepoint.c (tracing): Make extern. | |
4573 | (disconnected_tracing): New. | |
4574 | (stop_tracing): Make extern. Handle tracing stops due to GDB | |
4575 | disconnecting. | |
4576 | (cmd_qtdisconnected): New. | |
4577 | (cmd_qtstatus): Report disconnected tracing status in trace reply. | |
4578 | (handle_tracepoint_general_set): Handle QTDisconnected. | |
4579 | ||
4580 | * event-loop.c (event_handler_func): Change return type to int. | |
4581 | (process_event): Bail out if the event handler wants the event | |
4582 | loop to stop. | |
4583 | (handle_file_event): Ditto. | |
4584 | (start_event_loop): Bail out if the event handler wants the event | |
4585 | loop to stop. | |
4586 | ||
4587 | * nto-low.c (nto_target_ops): Adjust. | |
4588 | * spu-low.c (spu_wait): Don't remove the process here. | |
4589 | (spu_target_ops): Adjust. | |
4590 | * win32-low.c (win32_wait): Don't remove the process here. | |
4591 | (win32_target_ops): Adjust. | |
4592 | ||
5d267c4c PA |
4593 | 2010-04-11 Pedro Alves <pedro@codesourcery.com> |
4594 | ||
4595 | * regcache.c (realloc_register_cache): Invalidate inferior's | |
4596 | regcache before recreating it. | |
4597 | ||
623ccd72 PA |
4598 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
4599 | ||
4600 | * tracepoint.c (cmd_qtstatus): Report trace buffer circularity. | |
4601 | ||
219f2f23 PA |
4602 | 2010-04-09 Stan Shebs <stan@codesourcery.com> |
4603 | Pedro Alves <pedro@codesourcery.com> | |
4604 | ||
4605 | * server.h (LONGEST): New. | |
4606 | (struct thread_info) <while_stepping>: New field. | |
4607 | (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz): | |
4608 | Declare. | |
4609 | (initialize_tracepoint, handle_tracepoint_general_set) | |
4610 | (handle_tracepoint_query, tracepoint_finished_step) | |
4611 | (tracepoint_was_hit, release_while_stepping_state_list): | |
4612 | (current_traceframe): Declare. | |
4613 | * server.c (handle_general_set): Handle tracepoint packets. | |
4614 | (read_memory): New. | |
4615 | (write_memory): New. | |
4616 | (handle_search_memory_1): Use read_memory. | |
4617 | (handle_query): Report support for conditional tracepoints, trace | |
4618 | state variables, and tracepoint sources. Handle tracepoint | |
4619 | queries. | |
4620 | (main): Initialize the tracepoints module. | |
4621 | (process_serial_event): Handle traceframe reads/writes. | |
4622 | ||
4623 | * linux-low.c (handle_tracepoints): New. | |
4624 | (linux_wait_1): Call it. | |
4625 | (linux_resume_one_lwp): Handle while-stepping. | |
4626 | (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New. | |
4627 | (linux_target_ops): Install them. | |
4628 | * linux-low.h (struct linux_target_ops) <supports_tracepoints>: | |
4629 | New field. | |
4630 | * linux-x86-low.c (x86_supports_tracepoints): New. | |
4631 | (the_low_target). Install it. | |
4632 | ||
4633 | * mem-break.h (delete_breakpoint): Declare. | |
4634 | * mem-break.c (delete_breakpoint): Make external. | |
4635 | ||
4636 | * target.h (struct target_ops): Add `supports_tracepoints', | |
4637 | `read_pc', and `write_pc' fields. | |
4638 | (target_supports_tracepoints): Define. | |
4639 | * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two) | |
4640 | (phex_nz): New. | |
4641 | ||
4642 | * regcache.h (struct regcache) <registers_owned>: New field. | |
4643 | (init_register_cache, regcache_cpy): Declare. | |
4644 | (regcache_read_pc, regcache_write_pc): Declare. | |
4645 | (register_cache_size): Declare. | |
4646 | (supply_regblock): Declare. | |
4647 | * regcache.c (init_register_cache): New. | |
4648 | (new_register_cache): Use it. | |
4649 | (regcache_cpy): New. | |
4650 | (register_cache_size): New. | |
4651 | (supply_regblock): New. | |
4652 | (regcache_read_pc, regcache_write_pc): New. | |
889bf7c5 | 4653 | |
219f2f23 PA |
4654 | * tracepoint.c: New. |
4655 | ||
4656 | * Makefile.in (OBS): Add tracepoint.o. | |
4657 | (tracepoint.o): New rule. | |
4658 | ||
3a13a53b L |
4659 | 2010-04-08 H.J. Lu <hongjiu.lu@intel.com> |
4660 | ||
4661 | * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c. | |
4662 | (i386-mmx.o): New. | |
4663 | (i386-mmx.c): Likewise. | |
4664 | (i386-mmx-linux.o): Likewise. | |
4665 | (i386-mmx-linux.c): Likewise. | |
4666 | ||
4667 | * configure.srv (srv_i386_regobj): Add i386-mmx.o. | |
4668 | (srv_i386_linux_regobj): Add i386-mmx-linux.o. | |
4669 | (srv_i386_xmlfiles): Add i386/i386-mmx.xml. | |
4670 | (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml. | |
4671 | ||
4672 | * linux-x86-low.c (init_registers_i386_mmx_linux): New. | |
4673 | (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux | |
4674 | and return if ptrace PTRACE_GETFPXREGS failed in 32bit. | |
4675 | ||
1570b33e L |
4676 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
4677 | ||
4678 | * Makefile.in (clean): Updated. | |
4679 | (i386-avx.o): New. | |
4680 | (i386-avx.c): Likewise. | |
4681 | (i386-avx-linux.o): Likewise. | |
4682 | (i386-avx-linux.c): Likewise. | |
4683 | (amd64-avx.o): Likewise. | |
4684 | (amd64-avx.c): Likewise. | |
4685 | (amd64-avx-linux.o): Likewise. | |
4686 | (amd64-avx-linux.c): Likewise. | |
4687 | ||
4688 | * configure.srv (srv_i386_regobj): Add i386-avx.o. | |
4689 | (srv_i386_linux_regobj): Add i386-avx-linux.o. | |
4690 | (srv_amd64_regobj): Add amd64-avx.o. | |
4691 | (srv_amd64_linux_regobj): Add amd64-avx-linux.o. | |
4692 | (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml. | |
4693 | (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml. | |
4694 | (srv_i386_xmlfiles): Add i386/i386-avx.xml. | |
4695 | (srv_amd64_xmlfiles): Add i386/amd64-avx.xml. | |
4696 | (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml. | |
4697 | (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml. | |
4698 | ||
4699 | * i387-fp.c: Include "i386-xstate.h". | |
4700 | (i387_xsave): New. | |
4701 | (i387_cache_to_xsave): Likewise. | |
4702 | (i387_xsave_to_cache): Likewise. | |
4703 | (x86_xcr0): Likewise. | |
4704 | ||
4705 | * i387-fp.h (i387_cache_to_xsave): Likewise. | |
4706 | (i387_xsave_to_cache): Likewise. | |
4707 | (x86_xcr0): Likewise. | |
4708 | ||
4709 | * linux-arm-low.c (target_regsets): Initialize nt_type to 0. | |
4710 | * linux-crisv32-low.c (target_regsets): Likewise. | |
4711 | * linux-m68k-low.c (target_regsets): Likewise. | |
4712 | * linux-mips-low.c (target_regsets): Likewise. | |
4713 | * linux-ppc-low.c (target_regsets): Likewise. | |
4714 | * linux-s390-low.c (target_regsets): Likewise. | |
4715 | * linux-sh-low.c (target_regsets): Likewise. | |
4716 | * linux-sparc-low.c (target_regsets): Likewise. | |
4717 | * linux-xtensa-low.c (target_regsets): Likewise. | |
4718 | ||
4719 | * linux-low.c: Include <sys/uio.h>. | |
4720 | (regsets_fetch_inferior_registers): Support nt_type. | |
4721 | (regsets_store_inferior_registers): Likewise. | |
4722 | (linux_process_qsupported): New. | |
4723 | (linux_target_ops): Add linux_process_qsupported. | |
4724 | ||
4725 | * linux-low.h (regset_info): Add nt_type. | |
4726 | (linux_target_ops): Add process_qsupported. | |
4727 | ||
4728 | * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h" | |
4729 | and <sys/uio.h>. | |
4730 | (init_registers_i386_avx_linux): New. | |
4731 | (init_registers_amd64_avx_linux): Likewise. | |
4732 | (xmltarget_i386_linux_no_xml): Likewise. | |
4733 | (xmltarget_amd64_linux_no_xml): Likewise. | |
4734 | (PTRACE_GETREGSET): Likewise. | |
4735 | (PTRACE_SETREGSET): Likewise. | |
4736 | (x86_fill_xstateregset): Likewise. | |
4737 | (x86_store_xstateregset): Likewise. | |
4738 | (use_xml): Likewise. | |
4739 | (x86_linux_update_xmltarget): Likewise. | |
4740 | (x86_linux_process_qsupported): Likewise. | |
4741 | (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type. | |
4742 | (x86_arch_setup): Don't call init_registers_amd64_linux nor | |
4743 | init_registers_i386_linux here. Call | |
4744 | x86_linux_update_xmltarget. | |
4745 | (the_low_target): Add x86_linux_process_qsupported. | |
4746 | ||
4747 | * server.c (handle_query): Call target_process_qsupported. | |
4748 | ||
4749 | * target.h (target_ops): Add process_qsupported. | |
4750 | (target_process_qsupported): New. | |
4751 | ||
fc7238bb PA |
4752 | 2010-04-03 Pedro Alves <pedro@codesourcery.com> |
4753 | ||
4754 | * inferiors.c (add_thread): Set last_status kind to | |
4755 | TARGET_WAITKIND_IGNORE. | |
4756 | * linux-low.c (cancel_breakpoint): Remove unnecessary regcache | |
4757 | fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls. | |
4758 | (linux_wait_1): Move `thread' local definition to block that uses | |
4759 | it. Don't NULL initialize `event_child'. | |
4760 | (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls. | |
4761 | Alway set the thread's last_status to TARGET_WAITKIND_IGNORE. | |
4762 | * linux-x86-low.c (x86_breakpoint_at): Read raw memory. | |
4763 | ||
bdabb078 PA |
4764 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
4765 | ||
4766 | * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with | |
4767 | an extended waitstatus, or by a watchpoint. | |
4768 | (cancel_breakpoints_callback): Don't cancel a breakpoint if the | |
4769 | thread was stepping or has been stopped by a watchpoint. | |
4770 | ||
d3bbe7a0 PA |
4771 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
4772 | ||
4773 | * mem-break.c (struct raw_breakpoint): New field shlib_disabled. | |
4774 | (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top | |
4775 | of another, then delete the previous, and validate all | |
4776 | breakpoints. | |
4777 | (validate_inserted_breakpoint): New. | |
4778 | (delete_disabled_breakpoints): New. | |
4779 | (validate_breakpoints): New. | |
4780 | (check_mem_read): Validate breakpoints before trusting their | |
4781 | shadow. Delete disabled breakpoints. | |
4782 | (check_mem_write): Validate breakpoints before trusting they | |
4783 | should be inserted. Delete disabled breakpoints. | |
4784 | * mem-break.h (validate_breakpoints): | |
4785 | * server.c (handle_query): Validate breakpoints when we see a | |
4786 | qSymbol query. | |
4787 | ||
8b07ae33 PA |
4788 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
4789 | ||
4790 | * linux-low.c (linux_wait_1): Avoid setting need_step_over is | |
4791 | there's a GDB breakpoint at stop_pc. Always report a trap to GDB | |
4792 | if we could tell there's a GDB breakpoint at stop_pc. | |
4793 | (need_step_over_p): Don't do a step over if we find a GDB | |
4794 | breakpoint at the resume PC. | |
4795 | ||
4796 | * mem-break.c (struct raw_breakpoint): New. | |
4797 | (enum bkpt_type): New type `gdb_breakpoint'. | |
4798 | (struct breakpoint): Delete the `PC', `old_data' and `inserted' | |
4799 | fields. New field `raw'. | |
4800 | (find_raw_breakpoint_at): New. | |
4801 | (set_raw_breakpoint_at): Handle refcounting. Create a raw | |
4802 | breakpoint instead. | |
4803 | (set_breakpoint_at): Adjust. | |
4804 | (delete_raw_breakpoint): New. | |
4805 | (release_breakpoint): New. | |
4806 | (delete_breakpoint): Rename to... | |
4807 | (delete_breakpoint_1): ... this. Add proc parameter. Use | |
4808 | release_breakpoint. Return ENOENT. | |
4809 | (delete_breakpoint): Reimplement. | |
4810 | (find_breakpoint_at): Delete. | |
4811 | (find_gdb_breakpoint_at): New. | |
4812 | (delete_breakpoint_at): Delete. | |
4813 | (set_gdb_breakpoint_at): New. | |
4814 | (delete_gdb_breakpoint_at): New. | |
4815 | (gdb_breakpoint_here): New. | |
4816 | (set_reinsert_breakpoint): Use release_breakpoint. | |
4817 | (uninsert_breakpoint): Rename to ... | |
4818 | (uninsert_raw_breakpoint): ... this. | |
4819 | (uninsert_breakpoints_at): Adjust to handle raw breakpoints. | |
4820 | (reinsert_raw_breakpoint): Change parameter type to | |
4821 | raw_breakpoint. | |
4822 | (reinsert_breakpoints_at): Adjust to handle raw breakpoints | |
4823 | instead. | |
4824 | (check_breakpoints): Adjust. Use release_breakpoint. | |
4825 | (breakpoint_here): Rewrite using find_raw_breakpoint_at. | |
4826 | (breakpoint_inserted_here): Ditto. | |
4827 | (check_mem_read): Adjust to iterate over raw breakpoints instead. | |
4828 | Don't trust the breakpoint's shadow if it is not inserted. | |
4829 | (check_mem_write): Adjust to iterate over raw breakpoints instead. | |
4830 | (delete_all_breakpoints): Adjust. | |
4831 | (free_all_breakpoints): Mark all breakpoints as uninserted, and | |
4832 | use delete_breakpoint_1. | |
4833 | ||
4834 | * mem-break.h (breakpoints_supported): Delete declaration. | |
4835 | (set_gdb_breakpoint_at): Declare. | |
4836 | (gdb_breakpoint_here): Declare. | |
4837 | (delete_breakpoint_at): Delete. | |
4838 | (delete_gdb_breakpoint_at): Declare. | |
4839 | ||
4840 | * server.h (struct raw_breakpoint): Forward declare. | |
4841 | (struct process_info): New field `raw_breakpoints'. | |
4842 | ||
4843 | * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0 | |
4844 | breakpoints. | |
4845 | ||
6bf5e0ba PA |
4846 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
4847 | ||
4848 | * linux-low.c (status_pending_p_callback): Fix comment. | |
4849 | (linux_wait_for_event_1): Move most of the internal breakpoint | |
4850 | handling from here... | |
4851 | (linux_wait_1): ... to here. | |
4852 | (count_events_callback): New. | |
4853 | (select_singlestep_lwp_callback): New. | |
4854 | (select_event_lwp_callback): New. | |
4855 | (cancel_breakpoints_callback): New. | |
4856 | (select_event_lwp): New. | |
4857 | (linux_wait_1): Simplify internal breakpoint handling. Give equal | |
4858 | priority to all LWPs that have had events that should be reported | |
4859 | to the client. Cancel breakpoints when about to reporting the | |
4860 | event to the client, not while stopping lwps. No longer cancel | |
4861 | finished single-steps here. | |
4862 | (cancel_finished_single_step): Delete. | |
4863 | (cancel_finished_single_steps): Delete. | |
4864 | ||
414a389f PA |
4865 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
4866 | ||
4867 | * mem-break.c (enum bkpt_type): New. | |
4868 | (struct breakpoint): New field `type'. | |
4869 | (set_breakpoint_at): Change return type to struct breakpoint | |
4870 | pointer. Set type to `other_breakpoint' by default. | |
4871 | (delete_breakpoint): Rewrite, supporting more than one breakpoint | |
4872 | in the breakpoint list. | |
4873 | (delete_reinsert_breakpoints): Only delete reinsert breakpoints. | |
4874 | (reinsert_breakpoint): Rename to ... | |
4875 | (reinsert_raw_breakpoint): ... this. | |
4876 | (reinsert_breakpoints_at): Adjust. | |
4877 | * mem-break.h (struct breakpoint): Declare. | |
4878 | (set_breakpoint_at): Change return type to struct breakpoint | |
4879 | pointer. | |
4880 | ||
2280c721 PA |
4881 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
4882 | ||
4883 | * server.c (handle_query): Assign, not compare. | |
4884 | ||
d50171e4 PA |
4885 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
4886 | ||
4887 | Teach linux gdbserver to step-over-breakpoints. | |
4888 | ||
4889 | * linux-low.c (can_hardware_single_step): New. | |
4890 | (supports_breakpoints): New. | |
4891 | (handle_extended_wait): If stopping threads, read the stop pc of | |
4892 | the new cloned LWP. | |
4893 | (get_pc): New. | |
4894 | (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the | |
4895 | low target doesn't support retrieving the PC. | |
4896 | (add_lwp): Set last_resume_kind to resume_continue. | |
4897 | (linux_attach_lwp_1): Adjust comments. Always set stop_expected. | |
4898 | (linux_attach): Don't clear stop_expected. Set the lwp's | |
4899 | last_resume_kind to resume_stop. | |
4900 | (linux_detach_one_lwp): Don't check for removed breakpoints. | |
4901 | (check_removed_breakpoint): Delete. | |
4902 | (status_pending_p): Rename to ... | |
4903 | (status_pending_p_callback): ... this. Don't check for removed | |
4904 | breakpoints. Don't consider threads that are stopped from GDB's | |
4905 | perspective. | |
4906 | (linux_wait_for_lwp): Always read the stop_pc here. | |
4907 | (cancel_breakpoint): New. | |
4908 | (step_over_bkpt): New global. | |
4909 | (linux_wait_for_event_1): Implement stepping over breakpoints. | |
4910 | (gdb_wants_lwp_stopped): New. | |
4911 | (gdb_wants_all_stopped): New. | |
4912 | (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished | |
4913 | single-step traps here. Store the thread's last reported target | |
4914 | wait status. | |
4915 | (send_sigstop): Don't clear stop_expected. Always set it, | |
4916 | instead. | |
4917 | (mark_lwp_dead): Remove reference to pending_is_breakpoint. | |
4918 | (cancel_finished_single_step): New. | |
4919 | (cancel_finished_single_steps): New. | |
4920 | (wait_for_sigstop): Don't cancel finished single-step traps here. | |
4921 | (linux_resume_one_lwp): Don't check for removed breakpoints. | |
4922 | Don't set `step' on non-hardware step archs. | |
4923 | (linux_set_resume_request): Ignore resume_stop requests if already | |
4924 | stopping or stopped. Set the lwp's last_resume_kind. | |
4925 | (resume_status_pending_p): Don't check for removed breakpoints. | |
4926 | (need_step_over_p): New. | |
4927 | (start_step_over): New. | |
4928 | (finish_step_over): New. | |
4929 | (linux_resume_one_thread): Always queue a sigstop for resume_stop | |
4930 | requests. Clear the thread's last reported target waitstatus. | |
4931 | Don't use the `suspended' flag. Don't consider pending breakpoints. | |
4932 | (linux_resume): Start a step-over if necessary. | |
4933 | (proceed_one_lwp): New. | |
4934 | (proceed_all_lwps): New. | |
4935 | (unstop_all_lwps): New. | |
4936 | * linux-low.h (struct lwp_info): Rewrite comment for the | |
4937 | `suspended' flag. Add the `stop_pc' field. Delete the | |
4938 | `pending_stop_pc' field. Tweak the `stepping' flag's comment. | |
4939 | Add `'last_resume_kind' and `need_step_over' fields. | |
4940 | * inferiors.c (struct thread_info): Delete, moved elsewhere. | |
4941 | * mem-break.c (struct breakpoint): Delete `reinserting' flag. | |
4942 | Delete `breakpoint_to_reinsert' field. New flag `inserted'. | |
4943 | (set_raw_breakpoint_at): New. | |
4944 | (set_breakpoint_at): Rewrite to use it. | |
4945 | (reinsert_breakpoint_handler): Delete. | |
4946 | (set_reinsert_breakpoint): New. | |
4947 | (reinsert_breakpoint_by_bp): Delete. | |
4948 | (delete_reinsert_breakpoints): New. | |
4949 | (uninsert_breakpoint): Rewrite. | |
4950 | (uninsert_breakpoints_at): New. | |
4951 | (reinsert_breakpoint): Rewrite. | |
4952 | (reinsert_breakpoints_at): New. | |
4953 | (check_breakpoints): Rewrite. | |
4954 | (breakpoint_here): New. | |
4955 | (breakpoint_inserted_here): New. | |
4956 | (check_mem_read): Adjust. | |
4957 | * mem-break.h (breakpoints_supported, breakpoint_here) | |
4958 | (breakpoint_inserted_here, set_reinsert_breakpoint): Declare. | |
4959 | (reinsert_breakpoint_by_bp): Delete declaration. | |
4960 | (delete_reinsert_breakpoints): Declare. | |
4961 | (reinsert_breakpoint): Delete declaration. | |
4962 | (reinsert_breakpoints_at): Declare. | |
4963 | (uninsert_breakpoint): Delete declaration. | |
4964 | (uninsert_breakpoints_at): Declare. | |
4965 | (check_breakpoints): Adjust prototype. | |
4966 | * server.h: Adjust include order. | |
4967 | (struct thread_info): Declare here. Add a `last_status' field. | |
4968 | ||
30ba68cb MS |
4969 | 2010-03-23 Michael Snyder <msnyder@vmware.com> |
4970 | ||
4971 | * server.c (crc32): New function. | |
4972 | (handle_query): Add handling for 'qCRC:' request. | |
4973 | ||
b9a881c2 PA |
4974 | 2010-03-23 Pedro Alves <pedro@codesourcery.com> |
4975 | ||
4976 | * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the | |
4977 | lwp had been stopped by a watchpoint. | |
4978 | ||
e92d13d5 PA |
4979 | 2010-03-16 Pedro Alves <pedro@codesourcery.com> |
4980 | ||
4981 | * server.h (internal_error): Declare. | |
4982 | (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define. | |
4983 | * utils.c (internal_error): New function. | |
4984 | ||
64daa791 AS |
4985 | 2010-03-15 Andreas Schwab <schwab@redhat.com> |
4986 | ||
4987 | * configure.srv: Fix typo setting srv_regobj. | |
4988 | ||
f52cd8cd PA |
4989 | 2010-03-15 Pedro Alves <pedro@codesourcery.com> |
4990 | ||
4991 | * linux-low.c (fetch_register): Avoid passing a non string literal | |
4992 | format to `error'. | |
4993 | (usr_store_inferior_registers): Ditto. | |
4994 | ||
93ae6fdc PA |
4995 | 2010-03-14 Pedro Alves <pedro@codesourcery.com> |
4996 | ||
4997 | * linux-low.c (linux_write_memory): Bail out early if peeking | |
4998 | memory failed. | |
4999 | ||
c3adc08c PA |
5000 | 2010-03-14 Pedro Alves <pedro@codesourcery.com> |
5001 | ||
5002 | * linux-low.h (struct lwp_info): New fields | |
5003 | `stopped_by_watchpoint' and `stopped_data_address'. | |
5004 | * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers | |
5005 | here, and cache them in the lwp object. | |
5006 | (wait_for_sigstop): Check stopped_by_watchpoint lwp field | |
5007 | directly. | |
5008 | (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint | |
5009 | field. | |
5010 | (linux_stopped_by_watchpoint): Rewrite. | |
5011 | (linux_stopped_data_address): Rewrite. | |
5012 | ||
bce522a2 PA |
5013 | 2010-03-06 Simo Melenius <simo.melenius@iki.fi> |
5014 | ||
5015 | * linux-low.c (linux_wait_for_lwp): Fetch the regcache after | |
5016 | switching the current inferior, not before. | |
5017 | ||
90884b2b L |
5018 | 2010-03-01 H.J. Lu <hongjiu.lu@intel.com> |
5019 | ||
5020 | * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c, | |
5021 | reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c, | |
5022 | i386-linux.c and amd64-linux.c. | |
5023 | (reg-i386.o): Removed. | |
5024 | (reg-i386.c): Likewise. | |
5025 | (reg-i386-linux.o): Likewise. | |
5026 | (reg-i386-linux.c): Likewise. | |
5027 | (reg-x86-64.o): Likewise. | |
5028 | (reg-x86-64.c): Likewise. | |
5029 | (reg-x86-64-linux.o): Likewise. | |
5030 | (reg-x86-64-linux.c): Likewise. | |
5031 | (i386.o): New. | |
5032 | (i386.c): Likewise. | |
5033 | (i386-linux.o): Likewise. | |
5034 | (i386-linux.c): Likewise. | |
5035 | (amd64.o): Likewise. | |
5036 | (amd64.c): Likewise. | |
5037 | (amd64-linux.o): Likewise. | |
5038 | (amd64-linux.c): Likewise. | |
5039 | ||
5040 | * configure.srv (srv_i386_regobj): New. | |
5041 | (srv_i386_linux_regobj): Likewise. | |
5042 | (srv_amd64_regobj): Likewise. | |
5043 | (srv_amd64_linux_regobj): Likewise. | |
5044 | (srv_i386_32bit_xmlfiles): Likewise. | |
5045 | (srv_i386_64bit_xmlfiles): Likewise. | |
5046 | (srv_i386_xmlfiles): Likewise. | |
5047 | (srv_amd64_xmlfiles): Likewise. | |
5048 | (srv_i386_linux_xmlfiles): Likewise. | |
5049 | (srv_amd64_linux_xmlfiles): Likewise. | |
5050 | (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set | |
5051 | srv_xmlfiles to $srv_i386_xmlfiles. | |
5052 | (i[34567]86-*-mingw32ce*): Likewise. | |
5053 | (i[34567]86-*-mingw*): Likewise. | |
5054 | (i[34567]86-*-nto*): Likewise. | |
5055 | (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj | |
5056 | and $srv_amd64_linux_regobj. Set srv_xmlfiles to | |
5057 | $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles. | |
5058 | (x86_64-*-linux*): Likewise. | |
5059 | ||
5060 | * linux-x86-low.c (init_registers_x86_64_linux): Removed. | |
5061 | (init_registers_amd64_linux): New. | |
5062 | (x86_arch_setup): Replace init_registers_x86_64_linux with | |
5063 | init_registers_amd64_linux. | |
5064 | ||
193f13e6 MK |
5065 | 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com> |
5066 | ||
5067 | * configure.ac: Check for libdl. If it is not available link against | |
5068 | static libthread_db. | |
5069 | * configure: Regenerate. | |
5070 | ||
85d721b8 PA |
5071 | 2010-02-22 Pedro Alves <pedro@codesourcery.com> |
5072 | ||
5073 | PR9605 | |
5074 | ||
5075 | * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if | |
5076 | handing a read watchpoint. | |
5077 | (i386_low_insert_watchpoint): Read watchpoints aren't supported. | |
5078 | ||
6076632b DE |
5079 | 2010-02-12 Doug Evans <dje@google.com> |
5080 | ||
5081 | * linux-low.c (linux_supports_tracefork_flag): Document. | |
5082 | (linux_look_up_symbols): Add comment. | |
5083 | ||
3327ccf7 L |
5084 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
5085 | ||
5086 | * regcache.c (supply_register): Clear regcache if buf is NULL. | |
5087 | ||
0718675c | 5088 | 2010-02-02 Nicolas Roche <roche@sourceware.org> |
3327ccf7 | 5089 | Joel Brobecker <brobecker@adacore.com> |
0718675c JB |
5090 | |
5091 | * inferiors.c (find_inferior): Add function documentation. | |
5092 | (unloaded_dll): Handle the case where the unloaded dll has not | |
5093 | been previously registered in the dll list. | |
5094 | ||
177321bd DJ |
5095 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
5096 | ||
5097 | * linux-arm-low.c (thumb_breakpoint_len): Delete. | |
5098 | (thumb2_breakpoint): New. | |
5099 | (arm_breakpoint_at): Check for Thumb-2 breakpoints. | |
5100 | ||
2b009048 DJ |
5101 | 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
5102 | ||
5103 | * linux-low.c (get_stop_pc): Check for SIGTRAP. | |
5104 | (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible | |
5105 | breakpoints. | |
5106 | ||
3be029c7 PA |
5107 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
5108 | ||
5109 | * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes. | |
5110 | ||
18f5de3b JK |
5111 | 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
5112 | ||
5113 | * linux-s390-low.c (s390_collect_ptrace_register) | |
5114 | (s390_supply_ptrace_register): Adjust it for the new regcache parameter. | |
5115 | ||
3743bb4f DE |
5116 | 2010-01-21 Doug Evans <dje@google.com> |
5117 | ||
14ce3065 DE |
5118 | * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*. |
5119 | (PTRACE_ARG4_TYPE): New macro. | |
5120 | (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE. | |
5121 | (linux_wait_for_event_1, linux_resume_one_lwp): Ditto. | |
5122 | (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE. | |
5123 | (usr_store_inferior_registers): Ditto. | |
5124 | (linux_read_memory, linux_write_memory): Ditto. | |
5125 | (linux_test_for_tracefork): Ditto. | |
5126 | ||
3743bb4f DE |
5127 | * linux-arm-low.c: Remove redundant include of gdb_proc_service.h. |
5128 | Only include elf.h if gdb_proc_service.h didn't include linux/elf.h. | |
5129 | ||
8b315be5 PA |
5130 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
5131 | ||
5132 | * proc-service.c (ps_lgetregs): Don't refetch registers from the | |
5133 | target. | |
5134 | ||
85492558 PA |
5135 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
5136 | ||
5137 | * spu-low.c (spu_fetch_registers, spu_store_registers): Change | |
5138 | prototype to take a regcache. Adjust. | |
5139 | ||
442ea881 PA |
5140 | 2010-01-20 Pedro Alves <pedro@codesourcery.com> |
5141 | ||
5142 | * regcache.h (struct thread_info): Forward declare. | |
5143 | (struct regcache): New. | |
5144 | (new_register_cache): Adjust prototype. | |
5145 | (get_thread_regcache): Declare. | |
5146 | (free_register_cache): Adjust prototype. | |
5147 | (registers_to_string, registers_from_string): Ditto. | |
5148 | (supply_register, supply_register_by_name, collect_register) | |
5149 | (collect_register_as_string, collect_register_by_name): Ditto. | |
5150 | * regcache.c (struct inferior_regcache_data): Delete. | |
5151 | (get_regcache): Rename to ... | |
5152 | (get_thread_regcache): ... this. Adjust. Switch inferior before | |
5153 | fetching registers. | |
5154 | (regcache_invalidate_one): Adjust. | |
5155 | (regcache_invalidate): Fix prototype. | |
5156 | (new_register_cache): Return the new register cache. | |
5157 | (free_register_cache): Change prototype. | |
5158 | (realloc_register_cache): Adjust. | |
5159 | (registers_to_string): Change prototype to take a regcache. Adjust. | |
5160 | (registers_from_string): Ditto. | |
5161 | (register_data): Ditto. | |
5162 | (supply_register): Ditto. | |
5163 | (supply_register_by_name): Ditto. | |
5164 | (collect_register): Ditto. | |
5165 | (collect_register_as_string): Ditto. | |
5166 | (collect_register_by_name): Ditto. | |
5167 | * server.c (process_serial_event): Adjust. | |
5168 | * linux-low.h (regset_fill_func, regset_store_func): Change | |
5169 | prototype. | |
5170 | (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register): | |
5171 | Change prototype. | |
5172 | * linux-low.c (get_stop_pc): Adjust. | |
5173 | (check_removed_breakpoint): Adjust. | |
5174 | (linux_wait_for_event): Adjust. | |
5175 | (linux_resume_one_lwp): Adjust. | |
5176 | (fetch_register): Add regcache parameter. Adjust. | |
5177 | (usr_store_inferior_registers): Ditto. | |
5178 | (regsets_fetch_inferior_registers): Ditto. | |
5179 | (regsets_store_inferior_registers): Ditto. | |
5180 | (linux_fetch_registers, linux_store_registers): Ditto. | |
5181 | * i387-fp.c (i387_cache_to_fsave): Change prototype to take a | |
5182 | regcache. Adjust. | |
43aaf8b6 PA |
5183 | (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache): |
5184 | Ditto. | |
442ea881 PA |
5185 | * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change |
5186 | prototype to take a regcache. | |
5187 | (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto. | |
5188 | * remote-utils.c (convert_ascii_to_int, outreg) | |
5189 | (prepare_resume_reply): Change prototype to take a regcache. | |
5190 | Adjust. | |
5191 | * target.h (struct target_ops) <fetch_registers, store_registers>: | |
5192 | Change prototype to take a regcache. | |
5193 | (fetch_inferior_registers, store_inferior_registers): Change | |
5194 | prototype to take a regcache. Adjust. | |
5195 | * proc-service.c (ps_lgetregs): Adjust. | |
5196 | * linux-x86-low.c (x86_fill_gregset, x86_store_gregset) | |
5197 | (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset) | |
5198 | (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to | |
5199 | take a regcache. Adjust. | |
5200 | * linux-arm-low.c (arm_fill_gregset, arm_store_gregset) | |
5201 | (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset) | |
5202 | (arm_store_vfpregset, arm_get_pc, arm_set_pc): | |
5203 | (arm_breakpoint_at): Change prototype to take a regcache. Adjust. | |
5204 | * linux-cris-low.c (cris_get_pc, cris_set_pc) | |
5205 | (cris_cannot_fetch_register): | |
5206 | (cris_breakpoint_at): Change prototype to take a regcache. | |
5207 | Adjust. | |
5208 | * linux-crisv32-low.c (cris_get_pc, cris_set_pc, | |
5209 | cris_reinsert_addr, cris_write_data_breakpoint): Change prototype | |
5210 | to take a regcache. Adjust. | |
5211 | (cris_breakpoint_at, cris_insert_point, cris_remove_point): | |
5212 | Adjust. | |
5213 | * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to | |
5214 | take a regcache. Adjust. | |
5215 | * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset) | |
5216 | (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc, | |
5217 | (m68k_set_pc): Change prototype to take a regcache. Adjust. | |
5218 | * linux-mips-low.c (mips_get_pc): | |
5219 | (mips_set_pc): Change prototype to take a regcache. Adjust. | |
5220 | (mips_reinsert_addr): Adjust. | |
5221 | (mips_collect_register): Change prototype to take a regcache. | |
5222 | Adjust. | |
5223 | (mips_supply_register): | |
5224 | (mips_collect_register_32bit, mips_supply_register_32bit) | |
5225 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) | |
5226 | (mips_store_fpregset): Ditto. | |
43aaf8b6 PA |
5227 | * linux-ppc-low.c (ppc_supply_ptrace_register) |
5228 | (ppc_supply_ptrace_register): Ditto. | |
442ea881 PA |
5229 | (parse_spufs_run): Adjust. |
5230 | (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset) | |
5231 | (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset) | |
5232 | (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to | |
5233 | take a regcache. Adjust. | |
5234 | * linux-s390-low.c (s390_collect_ptrace_register) | |
5235 | (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc) | |
5236 | (s390_set_pc): Change prototype to take a regcache. Adjust. | |
5237 | (s390_arch_setup): Adjust. | |
5238 | * linux-sh-low.c (sh_get_pc, sh_breakpoint_at) | |
5239 | (sh_fill_gregset): Change prototype to take a regcache. Adjust. | |
5240 | * linux-sparc-low.c (sparc_fill_gregset_to_stack) | |
5241 | (sparc_fill_gregset, sparc_store_gregset_from_stack) | |
5242 | (sparc_store_gregset, sparc_get_pc): Change prototype to take a | |
5243 | regcache. Adjust. | |
5244 | (sparc_breakpoint_at): Adjust. | |
5245 | * linux-xtensa-low.c (xtensa_fill_gregset): | |
5246 | (xtensa_store_gregset): | |
5247 | (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc) | |
5248 | (xtensa_set_pc): Change prototype to take a regcache. Adjust. | |
5249 | * nto-low.c (nto_fetch_registers, nto_store_registers): Change | |
5250 | prototype to take a regcache. Adjust. | |
5251 | * win32-arm-low.c (arm_fetch_inferior_register) | |
5252 | (arm_store_inferior_register): Change prototype to take a | |
5253 | regcache. Adjust. | |
5254 | * win32-i386-low.c (i386_fetch_inferior_register) | |
5255 | (i386_store_inferior_register): Change prototype to take a | |
5256 | regcache. Adjust. | |
5257 | * win32-low.c (child_fetch_inferior_registers) | |
5258 | (child_store_inferior_registers): Change prototype to take a | |
5259 | regcache. Adjust. | |
5260 | (win32_wait): Adjust. | |
5261 | (win32_fetch_inferior_registers): Change prototype to take a | |
5262 | regcache. Adjust. | |
5263 | (win32_store_inferior_registers): Adjust. | |
5264 | * win32-low.h (struct win32_target_ops) <fetch_inferior_register, | |
5265 | store_inferior_register>: Change prototype to take a regcache. | |
5266 | ||
60c3d7b0 DE |
5267 | 2010-01-20 Doug Evans <dje@google.com> |
5268 | ||
5269 | * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in | |
5270 | #ifdef. | |
5271 | (linux_wait_for_event1, linux_init_signals): Ditto. | |
ec8ebe72 | 5272 | (W_STOPCODE): Provide definition if missing. |
60c3d7b0 | 5273 | |
dc146f7c VP |
5274 | 2010-01-13 Vladimir Prus <vladimir@codesourcery.com> |
5275 | ||
5276 | * linux-low.c (linux_core_of_thread): New. | |
5277 | (compare_ints, show_process, list_threads): New. | |
5278 | (linux_qxfer_osdata): Report threads and cores. | |
5279 | (linux_target_op): Register linux_core_of_thread. | |
5280 | * remote-utils.c (prepare_resume_reply): Report the core. | |
5281 | (buffer_xml_printf): Support %d specifier. | |
5282 | * server.c (handle_threads_qxfer_proper, handle_threads_qxfer): | |
5283 | New. | |
5284 | (handle_query): Handle qXfer:threads. Announce availability | |
5285 | thereof. | |
5286 | * target.h (struct target_ops): New field core_of_thread. | |
5287 | ||
7803799a UW |
5288 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
5289 | ||
5290 | * Makefile.in (clean): Remove new generated files. | |
5291 | (reg-s390.o, reg-s390.c): Remove rules. | |
5292 | (reg-s390x.o, reg-s390x.c): Likewise. | |
5293 | (s390-linux32.o, s390-linux32.c): Add rules. | |
5294 | (s390-linux64.o, s390-linux64.c): Likewise. | |
5295 | (s390x-linux64.o, s390x-linux64.c): Likewise. | |
5296 | * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles. | |
5297 | * linux-s390-low.c: Include <elf.h>. | |
5298 | (HWCAP_S390_HIGH_GPRS): Define if undefined. | |
5299 | (init_registers_s390): Remove prototype. | |
5300 | (init_registers_s390x): Likewise. | |
5301 | (init_registers_s390_linux32): Add prototype. | |
5302 | (init_registers_s390_linux64): Likewise. | |
5303 | (init_registers_s390x_linux64): Likewise. | |
5304 | (s390_num_regs_3264): New define. | |
5305 | (s390_regmap_3264): New global variable. | |
5306 | (s390_cannot_fetch_register): Remove obsolete check. | |
5307 | (s390_cannot_store_register): Likewise. | |
5308 | (s390_collect_ptrace_register): Handle upper/lower register halves. | |
5309 | (s390_supply_ptrace_register): Likewise. | |
5310 | (s390_fill_gregset): Update to register number changes. | |
5311 | (s390_get_hwcap): New routine. | |
5312 | (s390_arch_setup): Detect 32-bit process running on 64-bit system. | |
5313 | Install appropriate regmap and register set. | |
5314 | ||
6e7ffa39 JB |
5315 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
5316 | ||
5317 | * server.c (gdbserver_version): Update copyright year to 2010. | |
5318 | * gdbreplay.c (gdbreplay_version): Likewise. | |
5319 | ||
957f3f49 DE |
5320 | 2009-12-28 Doug Evans <dje@google.com> |
5321 | ||
5322 | * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h, | |
5323 | elf/external.h. Include <elf.h> instead but only if necessary. | |
5324 | ||
ca5c370d PA |
5325 | 2009-12-28 Pedro Alves <pedro@codesourcery.com> |
5326 | ||
5327 | * linux-low.c (linux_remove_process): Remove `detaching' | |
5328 | parameter. Don't release/detach from thread_db here. | |
5329 | (linux_kill): Release/detach from thread_db here, ... | |
5330 | (linux_detach): ... and here, before actually detaching. | |
5331 | (linux_wait_1): ... and here, when a process exits. | |
5332 | * thread-db.c (any_thread_of): New. | |
5333 | (thread_db_free): Switch the current inferior to a thread of the | |
5334 | passed in process. | |
5335 | ||
4ee62156 DE |
5336 | 2009-12-21 Doug Evans <dje@google.com> |
5337 | ||
d90e6a88 DE |
5338 | * linux-x86-low.c: Delete outdated comment about Elf32_Phdr. |
5339 | ||
c5f62d5f DE |
5340 | * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill. |
5341 | Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc | |
5342 | warning ifndef __NR_tkill. Move setting of errno there too. | |
5343 | Delete unnecessary resetting of errno after syscall. | |
5344 | Minor comment changes to match gdb/linux-nat.c:kill_lwp. | |
5345 | ||
10e86dd7 DE |
5346 | * configure.ac: Check for dladdr. |
5347 | * config.in: Regenerate. | |
5348 | * configure: Regenerate. | |
5349 | * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR. | |
5350 | (try_thread_db_load): Update. | |
5351 | ||
4ee62156 DE |
5352 | * linux-low.c (my_waitpid): Delete unnecessary prototype. |
5353 | ||
00f515da DE |
5354 | 2009-12-18 Doug Evans <dje@google.com> |
5355 | ||
e9464885 DE |
5356 | * event-loop.c: Include unistd.h if it exists. |
5357 | ||
07d4f67e DE |
5358 | * linux-low.c (my_waitpid): Move definition away from being in |
5359 | between linux_tracefork_child/linux_test_for_tracefork. | |
5360 | ||
00f515da DE |
5361 | * gdb_proc_service.h (psaddr_t): Fix type. |
5362 | * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix | |
5363 | signature to match glibc. | |
5364 | ||
1de1badb DE |
5365 | 2009-12-16 Doug Evans <dje@google.com> |
5366 | ||
5367 | * linux-low.c (linux_read_memory): Fix argument to read. | |
5368 | ||
aeeb81d1 PA |
5369 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
5370 | ||
5371 | * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT | |
5372 | events, don't leave current_inferior pointing at null. | |
5373 | ||
10357975 PA |
5374 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
5375 | ||
5376 | * win32-low.c (LOG): Delete. | |
5377 | (OUTMSG): Output to stderr. | |
5378 | (OUTMSG2): Conditionalize on `debug_threads' variable, instead of | |
5379 | on compile time LOG macro. | |
5380 | (win32_wait): Fix debug output. | |
5381 | ||
cf6e3471 PA |
5382 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
5383 | ||
5384 | * win32-low.c (win32_add_one_solib): If the dll name is | |
5385 | "ntdll.dll", prepend the system directory to the dll path. | |
5386 | ||
0c85e18e MK |
5387 | 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com> |
5388 | ||
5389 | * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization. | |
5390 | ||
9ac544ce | 5391 | 2009-11-17 Nathan Sidwell <nathan@codesourcery.com> |
889bf7c5 | 5392 | Vladimir Prus <vladimir@codesourcery.com> |
9ac544ce MK |
5393 | |
5394 | * Makefile.in (reg-cf.o, reg-cf.c): New targets. | |
5395 | * configure.ac: Check for __mcoldfire__ and set | |
5396 | gdb_cv_m68k_is_coldfire. | |
5397 | * configure.srv: Use gdb_cv_m68k_is_coldfire to select between | |
5398 | reg-cf.o and reg-m68k.o. | |
5399 | * configure: Regenerated. | |
5400 | ||
fd7dd3e6 PA |
5401 | 2009-11-16 Pedro Alves <pedro@codesourcery.com> |
5402 | ||
5403 | * linux-low.c (linux_remove_process): Add `detaching' parameter. | |
5404 | Pass it to thread_db_free. | |
5405 | (linux_kill, linux_detach, linux_wait_1): Adjust to pass the | |
5406 | proper `detaching' argument to linux_remove_process. | |
5407 | * linux-low.h (thread_db_free): Add `detaching' parameter. | |
5408 | * thread-db.c (thread_db_init): Pass false as `detaching' argument | |
5409 | to thread_db_free. | |
5410 | (thread_db_free): Add `detaching' parameter. Only | |
5411 | call td_ta_clear_event if detaching from process. | |
5412 | ||
75aa492e MK |
5413 | 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com> |
5414 | ||
5415 | * thread-db.c (thread_db_free): Fix typo. | |
5416 | ||
21e1bee4 PP |
5417 | 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com> |
5418 | ||
5419 | PR gdb/10838 | |
5420 | * thread-db.c (thread_db_free): Call td_ta_clear_event. | |
5421 | ||
8838b45e NS |
5422 | 2009-11-03 Nathan Sidwell <nathan@codesourcery.com> |
5423 | ||
5424 | * configure.ac (i[34567]86-*): Check if we're targetting x86-64 | |
5425 | with an i686 compiler. | |
5426 | * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if | |
5427 | needed. | |
5428 | * configure: Rebuilt. | |
5429 | ||
8a35fb51 SL |
5430 | 2009-10-29 Sandra Loosemore <sandra@codesourcery.com> |
5431 | ||
5432 | PR gdb/10783 | |
5433 | ||
5434 | * server.c (handle_search_memory_1): Correct read_addr initialization | |
5435 | in loop for searching subsequent chunks. | |
5436 | ||
96f15937 PP |
5437 | 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com> |
5438 | ||
5439 | * configure.ac: New --with-libthread-db option. | |
5440 | * thread-db.c: Allow direct dependence on libthread_db. | |
5441 | (thread_db_free): Adjust. | |
5442 | * config.in: Regenerate. | |
5443 | * configure: Likewise. | |
889bf7c5 | 5444 | |
5f7d1694 PP |
5445 | 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com> |
5446 | ||
5447 | PR gdb/10757 | |
5448 | * thread-db.c (attach_thread): New function. | |
5449 | (maybe_attach_thread): Return success/failure. | |
5450 | (find_new_threads_callback): Adjust. | |
889bf7c5 PA |
5451 | (thread_db_find_new_threads): Loop until no new threads. |
5452 | ||
88e3b899 PA |
5453 | 2009-10-13 Pedro Alves <pedro@codesourcery.com> |
5454 | ||
5455 | * proc-service.c (ps_lgetregs): Formatting. | |
5456 | ||
cdbfd419 PP |
5457 | 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com> |
5458 | ||
5459 | * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove. | |
5460 | * configure.ac: Adjust. | |
5461 | * linux-low.h (struct process_info_private): Move members to struct | |
5462 | thread_db. | |
5463 | (thread_db_free, thread_db_handle_monitor_command): New prototype. | |
5464 | * linux-low.c (linux_remove_process): Adjust. | |
5465 | (linux_wait_for_event_1, linux_look_up_symbols): Likewise. | |
5466 | * server.c (handle_query): Move code ... | |
5467 | (handle_monitor_command): ... here. New function. | |
5468 | * target.h (struct target_ops): New member. | |
5469 | * thread-db.c (struct thread_db): New. | |
5470 | (libthread_db_search_path): New variable. | |
5471 | (thread_db_create_event, thread_db_enable_reporting) | |
5472 | (find_one_thread, maybe_attach_thread, find_new_threads_callback) | |
5473 | (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust. | |
5474 | (try_thread_db_load_1, dladdr_to_soname): New functions. | |
5475 | (try_thread_db_load, thread_db_load_search): New functions. | |
5476 | (thread_db_init): Search for libthread_db. | |
5477 | (thread_db_free): New function. | |
5478 | (thread_db_handle_monitor_command): Likewise. | |
5479 | * config.in: Regenerate. | |
5480 | * configure: Regenerate. | |
889bf7c5 | 5481 | |
4168d2d6 UW |
5482 | 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
5483 | ||
5484 | * spu-low.c (spu_kill): Wait for inferior to terminate. | |
5485 | Call clear_inferiors. | |
5486 | (spu_detach): Call clear_inferiors. | |
5487 | ||
81ecdfbb RW |
5488 | 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
5489 | ||
5490 | * aclocal.m4: Regenerate. | |
5491 | * config.in: Likewise. | |
5492 | * configure: Likewise. | |
5493 | ||
0b9ff2c0 UW |
5494 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
5495 | ||
5496 | * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define. | |
5497 | (parse_spufs_run): New function. | |
5498 | (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC. | |
5499 | (ppc_breakpoint_at): Handle SPU breakpoints. | |
5500 | ||
efcbbd14 UW |
5501 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
5502 | ||
5503 | * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>. | |
5504 | (SPUFS_MAGIC): Define. | |
5505 | (spu_enumerate_spu_ids): New function. | |
5506 | (linux_qxfer_spu): New function. | |
5507 | (linux_target_ops): Install linux_qxfer_spu. | |
5508 | ||
f4d9bade UW |
5509 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
5510 | ||
5511 | * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o | |
5512 | and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml | |
5513 | and rs6000/powerpc-cell64l.xml to srv_xmlfiles. | |
5514 | * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules. | |
5515 | (powerpc-cell64l.o, powerpc-cell64l.c): Likewise. | |
5516 | (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c. | |
5517 | * linux-ppc-low.c (PPC_FEATURE_CELL): Define. | |
5518 | (init_registers_powerpc_cell32l): Add prototype. | |
5519 | (init_registers_powerpc_cell64l): Likewise. | |
5520 | (ppc_arch_setup): Detect Cell/B.E. architecture. | |
5521 | ||
96e946ca RW |
5522 | 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
5523 | ||
5524 | * Makefile.in (datarootdir): New variable. | |
5525 | ||
58d6951d DJ |
5526 | 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
5527 | ||
5528 | * linux-low.c (linux_write_memory): Update debugging output. | |
5529 | * Makefile.in (clean): Add new descriptions. | |
5530 | (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o) | |
5531 | (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules. | |
5532 | * configure.srv: Add new files for arm*-*-linux*. | |
5533 | * linux-arm-low.c: Add new declarations. | |
5534 | (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined. | |
5535 | (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3) | |
5536 | (HWCAP_VFPv3D16): New. | |
5537 | (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT | |
5538 | instead of __IWMMXT__. | |
5539 | (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap) | |
5540 | (arm_arch_setup): New. | |
5541 | (target_regsets): Remove #ifdef. Add VFP regset. | |
5542 | (the_low_target): Use arm_arch_setup. | |
5543 | ||
12b42a12 DJ |
5544 | 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
5545 | ||
5546 | * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip | |
5547 | the main thread again. | |
5548 | ||
ac8c974e AR |
5549 | 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com> |
5550 | ||
5551 | Adding Neutrino gdbserver. | |
5552 | * configure: Regenerated. | |
5553 | * configure.ac: Add case for srv_qnx and set LIBS accordingly. | |
5554 | * configure.srv (i[34567]86-*-nto*): New target. | |
5555 | * nto-low.c, nto-low.h, nto-x86-low.c: New files. | |
5556 | * remote-utils.c [__QNX__]: Include sys/iomgr.h | |
5557 | (nto_comctrl) [__QNX__]: New function. | |
5558 | (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl. | |
5559 | ||
4424e0c3 | 5560 | 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net> |
7437790a PA |
5561 | |
5562 | * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to | |
5563 | srv_tgtobj. | |
5564 | ||
912cf4ba PA |
5565 | 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net> |
5566 | Pedro Alves <pedro@codesourcery.com> | |
5567 | ||
5568 | * win32-i386-low.c (i386_get_thread_context): Handle systems that | |
5569 | don't support CONTEXT_EXTENDED_REGISTERS. | |
5570 | (i386_win32_breakpoint, i386_win32_breakpoint_len): New. | |
5571 | (the_low_target): Install them. | |
5572 | * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent | |
5573 | failing with ERROR_PIPE_NOT_CONNECTED. | |
5574 | ||
aa5ca48f DE |
5575 | 2009-06-30 Doug Evans <dje@google.com> |
5576 | Pierre Muller <muller@ics.u-strasbg.fr> | |
5577 | ||
5578 | Add h/w watchpoint support to x86-linux, win32-i386. | |
5579 | * Makefile.in (SFILES): Add i386-low.c | |
5580 | (i386_low_h): Define. | |
5581 | (i386-low.o): Add dependencies. | |
5582 | (linux-x86-low.o): Add i386-low.h dependency. | |
5583 | (win32-i386-low.o): Ditto. | |
5584 | * i386-low.c: New file. | |
5585 | * i386-low.h: New file. | |
5586 | * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj. | |
5587 | (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto. | |
5588 | * linux-low.c (linux_add_process): Initialize arch_private. | |
5589 | (linux_remove_process): Free arch_private. | |
5590 | (add_lwp): Initialize arch_private. | |
5591 | (delete_lwp): Free arch_private. | |
5592 | (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if | |
5593 | provided. | |
5594 | * linux-low.h (process_info_private): New member arch_private. | |
5595 | (lwp_info): New member arch_private. | |
5596 | (linux_target_ops): New members new_process, new_thread, | |
5597 | prepare_to_resume. | |
5598 | (ptid_of): New macro. | |
5599 | * linux-x86-low.c: Include stddef.h, i386-low.h. | |
5600 | (arch_process_info): New struct. | |
5601 | (arch_lwp_info): New struct. | |
5602 | (x86_linux_dr_get, x86_linux_dr_set): New functions. | |
5603 | (i386_dr_low_set_addr, i386_dr_low_set_control): New functions. | |
5604 | (i386_dr_low_get_status): New function. | |
5605 | (x86_insert_point, x86_remove_point): New functions. | |
5606 | (x86_stopped_by_watchpoint): New function. | |
5607 | (x86_stopped_data_address): New function. | |
5608 | (x86_linux_new_process, x86_linux_new_thread): New functions. | |
5609 | (x86_linux_prepare_to_resume): New function. | |
5610 | (the_low_target): Add entries for insert_point, remove_point, | |
5611 | stopped_by_watchpoint, stopped_data_address, new_process, new_thread, | |
5612 | prepare_to_resume. | |
5613 | * server.c (debug_hw_points): New global. | |
5614 | (monitor_show_help): Document set debug-hw-points. | |
5615 | (handle_query): Process "set debug-hw-points". | |
5616 | * server.h (debug_hw_points): Declare. | |
5617 | (paddress): Declare. | |
5618 | * utils.c (NUMCELLS, CELLSIZE): New macros. | |
5619 | (get_sell, xsnprintf, paddress): New functions. | |
5620 | * win32-arm-low.c (the_low_target): Add entries for insert_point, | |
5621 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
5622 | * win32-i386-low.c: Include i386-low.h. | |
5623 | (debug_reg_state): Replaces dr. | |
5624 | (i386_dr_low_set_addr, i386_dr_low_set_control): New functions. | |
5625 | (i386_dr_low_get_status): New function. | |
5626 | (i386_insert_point, i386_remove_point): New functions. | |
5627 | (i386_stopped_by_watchpoint): New function. | |
5628 | (i386_stopped_data_address): New function. | |
5629 | (i386_initial_stuff): Update. | |
5630 | (get_thread_context,set_thread_context,i386_thread_added): Update. | |
5631 | (the_low_target): Add entries for insert_point, | |
5632 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
5633 | * win32-low.c (win32_insert_watchpoint): New function. | |
5634 | (win32_remove_watchpoint): New function. | |
5635 | (win32_stopped_by_watchpoint): New function. | |
5636 | (win32_stopped_data_address): New function. | |
5637 | (win32_target_ops): Add entries for insert_watchpoint, | |
5638 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address. | |
5639 | * win32-low.h (win32_target_ops): New members insert_point, | |
5640 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
5641 | ||
d993e290 PA |
5642 | 2009-06-25 Pedro Alves <pedro@codesourcery.com> |
5643 | ||
5644 | * server.c (process_serial_event): Re-return unsupported, not | |
5645 | error, if the type isn't recognized. Re-allow supporting only | |
5646 | insert or remove packets. Also call require_running for | |
5647 | breakpoints. Add missing break statement to default case. Tidy. | |
5648 | * target.h (struct target_ops): Rename insert_watchpoint to | |
5649 | insert_point, and remove_watchpoint to remove_point. | |
5650 | ||
5651 | * linux-low.h (struct linux_target_ops): Likewise. | |
5652 | * linux-low.c (linux_insert_watchpoint): Rename to ... | |
5653 | (linux_insert_point): ... this. Adjust. | |
5654 | (linux_remove_watchpoint): Rename to ... | |
5655 | (linux_remove_point): ... this. Adjust. | |
5656 | (linux_target_ops): Adjust. | |
5657 | * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ... | |
5658 | (cris_insert_point): ... this. | |
5659 | (cris_remove_watchpoint): Rename to ... | |
5660 | (cris_remove_point): ... this. | |
5661 | (the_low_target): Adjust. | |
5662 | ||
0f54c268 PM |
5663 | 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr> |
5664 | ||
5665 | * server.c (handle_v_kill): Pass signal_pid to | |
5666 | kill_inferior if multi_process is zero. | |
5667 | ||
c6314022 AR |
5668 | 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com> |
5669 | ||
5670 | * server.c (process_serial_event): Add support for Z0 and Z1 packet. | |
5671 | * target.h (target_ops): Comment for *_watchpoint to make it clear | |
5672 | the functions can get types '0' and '1'. | |
5673 | ||
4463ce24 AR |
5674 | 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com> |
5675 | ||
5676 | * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0. | |
5677 | * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers. | |
5678 | * regcache.c (get_regcache): Likewise. | |
5679 | * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion. | |
5680 | * win32-low.c (child_fetch_inferior_registers): Remove check for | |
5681 | regno 0. | |
5682 | ||
cf8fd78b PA |
5683 | 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com> |
5684 | Pedro Alves <pedro@codesourcery.com> | |
5685 | ||
5686 | * target.h (struct target_ops) <supports_multi_process>: New | |
5687 | callback. | |
5688 | (target_supports_multi_process): New. | |
5689 | * server.c (handle_query): Even if GDB reports support, only | |
5690 | enable multi-process if the target also supports it. Report | |
5691 | multi-process support only if the target backend supports it. | |
5692 | * linux-low.c (linux_supports_multi_process): New function. | |
5693 | (linux_target_ops): Install it as target_supports_multi_process | |
5694 | callback. | |
5695 | ||
47c0c975 DE |
5696 | 2009-05-24 Doug Evans <dje@google.com> |
5697 | ||
e09875d4 DE |
5698 | Global renaming of find_thread_pid to find_thread_ptid. |
5699 | * server.h (find_thread_ptid): Renamed from find_thread_pid. | |
5700 | * inferiors.c (find_thread_ptid): Renamed from find_thread_pid. | |
5701 | All callers updated. | |
5702 | ||
e27d73f6 DE |
5703 | * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp |
5704 | to resume the newly created thread, don't call ptrace (PTRACE_CONT) | |
5705 | directly. | |
5706 | ||
47c0c975 DE |
5707 | * linux-low.c (get_stop_pc): Print pc if debug_threads. |
5708 | (check_removed_breakpoint, linux_wait_for_lwp): Ditto. | |
5709 | (linux_resume_one_lwp): Ditto. | |
5710 | ||
2acc282a DE |
5711 | 2009-05-23 Doug Evans <dje@google.com> |
5712 | ||
5713 | * linux-low.c (linux_resume_one_lwp): Change type of first arg | |
5714 | from struct inferior_list_entry * to struct lwp_info *. | |
5715 | All callers updated. | |
5716 | ||
9f1036c1 DE |
5717 | 2009-05-13 Doug Evans <dje@google.com> |
5718 | ||
5719 | * linux-x86-low.c: Don't include assert.h. | |
5720 | (x86_siginfo_fixup): Use fatal, not assert. | |
5721 | (x86_arch_setup): Fix comment. | |
5722 | ||
d0722149 DE |
5723 | 2009-05-12 Doug Evans <dje@google.com> |
5724 | ||
5725 | Biarch support for i386/amd64 gdbserver. | |
5726 | * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c. | |
5727 | Add linux-x86-low.c. | |
5728 | (linux-i386-low.o, linux-x86-64-low.o): Delete. | |
5729 | (linux-x86-low.o): Add. | |
5730 | * linux-x86-64-low.c: Delete. | |
5731 | * linux-i386-low.c: Delete. | |
5732 | * linux-x86-low.c: New file. | |
5733 | * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with | |
5734 | linux-x86-low.o. | |
5735 | (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with | |
5736 | linux-x86-low.o. | |
5737 | (x86_64-linux srv_regobj): Add reg-i386-linux.o. | |
5738 | * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h. | |
5739 | (linux_child_pid_to_exec_file): New function. | |
5740 | (elf_64_header_p, elf_64_file_p): New functions. | |
5741 | (siginfo_fixup): New function. | |
5742 | (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to | |
5743 | give target a chance to convert layout. | |
5744 | * linux-low.h (linux_target_ops): New member siginfo_fixup. | |
5745 | (linux_child_pid_to_exec_file, elf_64_file_p): Declare. | |
5746 | ||
fdeb2a12 DE |
5747 | 2009-05-07 Doug Evans <dje@google.com> |
5748 | ||
5749 | * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak. | |
5750 | (regsets_store_inferior_registers): Ditto. | |
5751 | ||
a6dbe5df PA |
5752 | 2009-05-06 Pedro Alves <pedro@codesourcery.com> |
5753 | ||
5754 | PR server/10048 | |
5755 | ||
5756 | * linux-low.c (must_set_ptrace_flags): Delete. | |
5757 | (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead | |
5758 | of the global. | |
5759 | (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set | |
5760 | `lwp->must_set_ptrace_flags' instead. | |
ba42693b | 5761 | (linux_wait_for_event_1): Set ptrace options here. |
a6dbe5df PA |
5762 | (linux_wait_1): ... not here. |
5763 | ||
5091eb23 DE |
5764 | 2009-04-30 Doug Evans <dje@google.com> |
5765 | ||
9f767825 DE |
5766 | * inferiors.c (started_inferior_callback): New function. |
5767 | (attached_inferior_callback): New function. | |
5768 | (have_started_inferiors_p, have_attached_inferiors_p): New functions. | |
5769 | * server.c (print_started_pid, print_attached_pid): New functions. | |
5770 | (detach_or_kill_for_exit): New function. | |
5771 | (main): Call it instead of for_each_inferior (kill_inferior_callback). | |
5772 | * server.h (have_started_inferiors_p): Declare. | |
5773 | (have_attached_inferiors_p): Declare. | |
5774 | ||
5091eb23 DE |
5775 | * inferiors.c (remove_process): Fix memory leak, free process. |
5776 | * linux-low.c (linux_remove_process): New function. | |
5777 | (linux_kill): Call it instead of remove_process. | |
5778 | (linux_detach, linux_wait_1): Ditto. | |
5779 | ||
155c8968 PA |
5780 | 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net> |
5781 | ||
5782 | * configure.srv: Add x86 Windows CE target. | |
5783 | ||
7fe519cb UW |
5784 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
5785 | ||
5786 | * inferiors.c (get_thread_process): Make global. | |
5787 | * server.h (get_thread_process): Add prototype. | |
5788 | * thread-db.c (find_one_thread): Use get_thread_process | |
5789 | instead of current_process. | |
5790 | (thread_db_get_tls_address): Do not crash if called when | |
5791 | thread layer is not yet initialized. | |
5792 | ||
5472f405 UW |
5793 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
5794 | ||
5795 | * remote-utils.c (prepare_resume_reply): Null-terminate packet. | |
5796 | * spu-low.c (current_tid): Rename to ... | |
5797 | (current_ptid): ... this. | |
5798 | (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory, | |
5799 | spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use | |
5800 | ptid_get_lwp (current_ptid) instead of current_tid. | |
5801 | (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument | |
5802 | instead of current_tid. Use find_process_pid to verify pid | |
5803 | argument is valid. Pass proper argument to remove_process. | |
5804 | (spu_thread_alive): Compare current_ptid instead of current_tid. | |
5805 | (spu_resume): Likewise. | |
5806 | ||
55ac2b99 PA |
5807 | 2009-04-02 Pedro Alves <pedro@codesourcery.com> |
5808 | ||
5809 | * linux-low.c (usr_store_inferior_registers): Declare local `pid' | |
5810 | variable. | |
5811 | ||
95954743 PA |
5812 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
5813 | ||
5814 | Implement the multiprocess extensions, and add linux multiprocess | |
5815 | support. | |
5816 | ||
5817 | * server.h (ULONGEST): Declare. | |
5818 | (struct ptid, ptid_t): New. | |
5819 | (minus_one_ptid, null_ptid): Declare. | |
5820 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) | |
5821 | (ptid_get_tid, ptid_equal, ptid_is_pid): Declare. | |
5822 | (struct inferior_list_entry): Change `id' type from unsigned from | |
5823 | to ptid_t. | |
5824 | (struct sym_cache, struct breakpoint, struct | |
5825 | process_info_private): Forward declare. | |
5826 | (struct process_info): Declare. | |
5827 | (current_process): Declare. | |
5828 | (all_processes): Declare. | |
5829 | (initialize_inferiors): Declare. | |
5830 | (add_thread): Adjust to use ptid_t. | |
5831 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto. | |
5832 | (add_process, remove_process, find_thread_pid): Declare. | |
5833 | (find_inferior_id): Adjust to use ptid_t. | |
5834 | (cont_thread, general_thread, step_thread): Change type to ptid_t. | |
5835 | (multi_process): Declare. | |
5836 | (push_event): Adjust to use ptid_t. | |
5837 | (read_ptid, write_ptid): Declare. | |
5838 | (prepare_resume_reply): Adjust to use ptid_t. | |
5839 | (clear_symbol_cache): Declare. | |
5840 | * inferiors.c (all_processes): New. | |
5841 | (null_ptid, minus_one_ptid): New. | |
5842 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) | |
5843 | (ptid_get_tid, ptid_equal, ptid_is_pid): New. | |
5844 | (add_thread): Change unsigned long to ptid. Remove gdb_id | |
5845 | parameter. Adjust. | |
5846 | (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid. | |
5847 | (gdb_id_to_thread): Rename to ... | |
5848 | (find_thread_pid): ... this. Change unsigned long to ptid. | |
5849 | (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid. | |
5850 | (loaded_dll, pull_pid_from_list): Adjust. | |
5851 | (add_process, remove_process, find_process_pid) | |
5852 | (get_thread_process, current_process, initialize_inferiors): New. | |
5853 | * target.h (struct thread_resume) <thread>: Change type to ptid_t. | |
5854 | (struct target_waitstatus) <related_pid>: Ditto. | |
5855 | (struct target_ops) <kill, detach>: Add `pid' argument. Change | |
5856 | return type to int. | |
5857 | (struct target_ops) <join>: Add `pid' argument. | |
5858 | (struct target_ops) <thread_alive>: Change pid's type to ptid_t. | |
5859 | (struct target_ops) <wait>: Add `ptid' field. Change return type | |
5860 | to ptid. | |
5861 | (kill_inferior, detach_inferior, join_inferior): Add `pid' argument. | |
5862 | (mywait): Add `ptid' argument. Change return type to ptid_t. | |
5863 | (target_pid_to_str): Declare. | |
5864 | * target.c (set_desired_inferior): Adjust to use ptids. | |
5865 | (mywait): Add new `ptid' argument. Adjust. | |
5866 | (target_pid_to_str): New. | |
5867 | * mem-break.h (free_all_breakpoints): Declare. | |
5868 | * mem-break.c (breakpoints): Delelete. | |
5869 | (set_breakpoint_at, delete_breakpoint, find_breakpoint_at) | |
5870 | (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust | |
5871 | to use per-process breakpoint list. | |
5872 | (free_all_breakpoints): New. | |
5873 | * remote-utils.c (struct sym_cache) <name>: Drop `const'. | |
5874 | (symbol_cache, all_symbols_looked_up): Delete. | |
5875 | (hexchars): New. | |
5876 | (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one, | |
5877 | read_ptid): New. | |
5878 | (prepare_resume_reply): Change ptid argument's type from unsigned | |
5879 | long to ptid_t. Adjust. Implement W;process and X;process. | |
5880 | (free_sym_cache, clear_symbol_cache): New. | |
5881 | (look_up_one_symbol): Adjust to per-process symbol cache. * | |
5882 | * server.c (cont_thread, general_thread, step_thread): Change type | |
5883 | to ptid_t. | |
5884 | (attached): Delete. | |
5885 | (multi_process): New. | |
5886 | (last_ptid): Change type to ptid_t. | |
5887 | (struct vstop_notif) <ptid>: Change type to ptid_t. | |
5888 | (queue_stop_reply, push_event): Change `ptid' argument's type to | |
5889 | ptid_t. | |
5890 | (discard_queued_stop_replies): Add `pid' argument. | |
5891 | (start_inferior): Adjust to use ptids. Adjust to mywait interface | |
5892 | changes. Don't reference the `attached' global. | |
5893 | (attach_inferior): Adjust to mywait interface changes. | |
5894 | (handle_query): Adjust to use ptids. Parse GDB's qSupported | |
5895 | features. Handle and report "multiprocess+". Handle | |
5896 | "qAttached:PID". | |
5897 | (handle_v_cont): Adjust to use ptids. Adjust to mywait interface | |
5898 | changes. | |
5899 | (handle_v_kill): New. | |
5900 | (handle_v_stopped): Adjust to use target_pid_to_str. | |
5901 | (handle_v_requests): Allow multiple attaches and runs when | |
5902 | multiprocess extensions are in effect. Handle "vKill". | |
5903 | (myresume): Adjust to use ptids. | |
5904 | (queue_stop_reply_callback): Add `arg' parameter. Handle it. | |
5905 | (handle_status): Adjust to discard_queued_stop_replies interface | |
5906 | change. | |
5907 | (first_thread_of, kill_inferior_callback) | |
5908 | (detach_or_kill_inferior_callback, join_inferiors_callback): New. | |
5909 | (main): Call initialize_inferiors. Adjust to use ptids, killing | |
5910 | and detaching from all inferiors. Handle multiprocess packet | |
5911 | variants. | |
5912 | * linux-low.h: Include gdb_proc_service.h. | |
5913 | (struct process_info_private): New. | |
5914 | (struct linux_target_ops) <pid_of>: Use ptid_get_pid. | |
5915 | <lwpid_of>: Use ptid_get_lwp. | |
5916 | (get_lwp_thread): Adjust. | |
5917 | (struct lwp_info): Add `dead' member. | |
5918 | (find_lwp_pid): Declare. | |
5919 | * linux-low.c (thread_db_active): Delete. | |
5920 | (new_inferior): Adjust comment. | |
5921 | (inferior_pid): Delete. | |
5922 | (linux_add_process): New. | |
5923 | (handle_extended_wait): Adjust. | |
5924 | (add_lwp): Change unsigned long to ptid. | |
5925 | (linux_create_inferior): Add process to processes table. Adjust | |
5926 | to use ptids. Don't set new_inferior here. | |
5927 | (linux_attach_lwp): Rename to ... | |
5928 | (linux_attach_lwp_1): ... this. Add `initial' argument. Handle | |
5929 | it. Adjust to use ptids. | |
5930 | (linux_attach_lwp): New. | |
5931 | (linux_attach): Add process to processes table. Don't set | |
5932 | new_inferior here. | |
5933 | (struct counter): New. | |
5934 | (second_thread_of_pid_p, last_thread_of_process_p): New. | |
5935 | (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to | |
5936 | multiple processes. | |
5937 | (linux_kill): Add `pid' argument. Handle it. Adjust to multiple | |
5938 | processes. Remove process from process table. | |
5939 | (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust | |
5940 | to multiple processes. | |
5941 | (any_thread_of): New. | |
5942 | (linux_detach): Add `pid' argument, and handle it. Remove process | |
5943 | from processes table. | |
5944 | (linux_join): Add `pid' argument. Handle it. | |
5945 | (linux_thread_alive): Change unsighed long argument to ptid_t. | |
5946 | Consider dead lwps as not being alive. | |
5947 | (status_pending_p): Rename `dummy' argument to `arg'. Filter out | |
5948 | threads we're not interested in. | |
5949 | (same_lwp, find_lwp_pid): New. | |
5950 | (linux_wait_for_lwp): Change `pid' argument's type from int to | |
5951 | ptid_t. Adjust. | |
5952 | (linux_wait_for_event): Rename to ... | |
5953 | (linux_wait_for_event_1): ... this. Change `pid' argument's type | |
5954 | from int to ptid_t. Adjust. | |
5955 | (linux_wait_for_event): New. | |
5956 | (linux_wait_1): Add `ptid' argument. Change return type to | |
5957 | ptid_t. Adjust. Use last_thread_of_process_p. Remove processes | |
5958 | that exit from the process table. | |
5959 | (linux_wait): Add `ptid' argument. Change return type to ptid_t. | |
5960 | Adjust. | |
5961 | (mark_lwp_dead): New. | |
5962 | (wait_for_sigstop): Adjust to use ptids. If a process exits while | |
5963 | stopping all threads, mark its main lwp as dead. | |
5964 | (linux_set_resume_request, linux_resume_one_thread): Adjust to use | |
5965 | ptids. | |
5966 | (fetch_register, usr_store_inferior_registers) | |
5967 | (regsets_fetch_inferior_registers) | |
5968 | (regsets_store_inferior_registers, linux_read_memory) | |
5969 | (linux_write_memory): Inline `inferior_pid'. | |
5970 | (linux_look_up_symbols): Adjust to use per-process | |
5971 | `thread_db_active'. | |
5972 | (linux_request_interrupt): Adjust to use ptids. | |
5973 | (linux_read_auxv): Inline `inferior_pid'. | |
5974 | (initialize_low): Don't reference thread_db_active. | |
5975 | * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove. | |
5976 | * proc-service.c (ps_lgetregs): Use find_lwp_pid. | |
5977 | (ps_getpid): Return the pid of the current inferior. | |
5978 | * thread-db.c (proc_handle, thread_agent): Delete. | |
5979 | (thread_db_create_event, thread_db_enable_reporting): Adjust to | |
5980 | per-process data. | |
5981 | (find_one_thread): Change argument type to ptid_t. Adjust to | |
5982 | per-process data. | |
5983 | (maybe_attach_thread): Adjust to per-process data and ptids. | |
5984 | (thread_db_find_new_threads): Ditto. | |
5985 | (thread_db_init): Ditto. | |
5986 | * spu-low.c (spu_create_inferior, spu_attach): Add process to | |
5987 | processes table. Adjust to use ptids. | |
5988 | (spu_kill, spu_detach): Adjust interface. Remove process from | |
5989 | processes table. | |
5990 | (spu_join, spu_thread_alive): Adjust interface. | |
5991 | (spu_wait): Adjust interface. Remove process from processes | |
5992 | table. Adjust to use ptids. | |
5993 | * win32-low.c (current_inferior_tid): Delete. | |
5994 | (current_inferior_ptid): New. | |
5995 | (debug_event_ptid): New. | |
5996 | (thread_rec): Take a ptid. Adjust. | |
5997 | (child_add_thread): Add `pid' argument. Adjust to use ptids. | |
5998 | (child_delete_thread): Ditto. | |
5999 | (do_initial_child_stuff): Add `attached' argument. Add process to | |
6000 | processes table. | |
6001 | (child_fetch_inferior_registers, child_store_inferior_registers): | |
6002 | Adjust. | |
6003 | (win32_create_inferior): Pass 0 to do_initial_child_stuff. | |
6004 | (win32_attach): Pass 1 to do_initial_child_stuff. | |
6005 | (win32_kill): Adjust interface. Remove process from processes | |
6006 | table. | |
6007 | (win32_detach): Ditto. | |
6008 | (win32_join): Adjust interface. | |
6009 | (win32_thread_alive): Take a ptid. | |
6010 | (win32_resume): Adjust to use ptids. | |
6011 | (get_child_debug_event): Ditto. | |
6012 | (win32_wait): Adjust interface. Remove exiting process from | |
6013 | processes table. | |
6014 | ||
bd99dc85 PA |
6015 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
6016 | ||
6017 | Non-stop mode support. | |
6018 | ||
6019 | * server.h (non_stop): Declare. | |
6020 | (gdb_client_data, handler_func): Declare. | |
6021 | (delete_file_handler, add_file_handler, start_event_loop): | |
6022 | Declare. | |
6023 | (handle_serial_event, handle_target_event, push_event) | |
6024 | (putpkt_notif): Declare. | |
6025 | * target.h (enum resume_kind): New. | |
6026 | (struct thread_resume): Replace `step' field by `kind' field. | |
6027 | (TARGET_WNOHANG): Define. | |
6028 | (struct target_ops) <wait>: Add `options' argument. | |
6029 | <supports_non_stop, async, start_non_stop>: New fields. | |
6030 | (target_supports_non_stop, target_async): New. | |
6031 | (start_non_stop): Declare. | |
6032 | (mywait): Add `options' argument. | |
6033 | * target.c (mywait): Add `options' argument. Print child exit | |
6034 | notifications here. | |
6035 | (start_non_stop): New. | |
6036 | * server.c (non_stop, own_buf, mem_buf): New globals. | |
6037 | (struct vstop_notif): New. | |
6038 | (notif_queue): New global. | |
6039 | (queue_stop_reply, push_event, discard_queued_stop_replies) | |
6040 | (send_next_stop_reply): New. | |
6041 | (start_inferior): Adjust to use resume_kind. Adjust to mywait | |
6042 | interface changes. | |
6043 | (attach_inferior): In non-stop mode, don't wait for the target | |
6044 | here. | |
6045 | (handle_general_set): Handle QNonStop. | |
6046 | (handle_query): When handling qC, return the current general | |
6047 | thread, instead of the first thread of the list. | |
6048 | (handle_query): If the backend supports non-stop mode, include | |
6049 | QNonStop+ in the qSupported query response. | |
6050 | (handle_v_cont): Adjust to use resume_kind. Handle resume_stop | |
6051 | and non-stop mode. | |
6052 | (handle_v_attach, handle_v_run): Handle non-stop mode. | |
6053 | (handle_v_stopped): New. | |
6054 | (handle_v_requests): Report support for vCont;t. Handle vStopped. | |
6055 | (myresume): Adjust to use resume_kind. Handle non-stop. | |
6056 | (queue_stop_reply_callback): New. | |
6057 | (handle_status): Handle non-stop mode. | |
6058 | (main): Clear non_stop flag on reconnection. Use the event-loop. | |
6059 | Refactor serial protocol handling from here ... | |
6060 | (process_serial_event): ... to this new function. When GDB | |
6061 | selects any thread, select one here. In non-stop mode, wait until | |
6062 | GDB acks all pending events before exiting. | |
6063 | (handle_serial_event, handle_target_event): New. | |
6064 | * remote-utils.c (remote_open): Install remote_desc in the event | |
6065 | loop. | |
6066 | (remote_close): Remove remote_desc from the event loop. | |
6067 | (putpkt_binary): Rename to... | |
6068 | (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it. | |
6069 | (putpkt_binary): New as wrapper around putpkt_binary_1. | |
6070 | (putpkt_notif): New. | |
6071 | (prepare_resume_reply): In non-stop mode, don't change the | |
6072 | general_thread. | |
6073 | * event-loop.c: New. | |
6074 | * Makefile.in (OBJ): Add event-loop.o. | |
6075 | (event-loop.o): New rule. | |
6076 | ||
6077 | * linux-low.h (pid_of): Moved here. | |
6078 | (lwpid_of): New. | |
6079 | (get_lwp_thread): Use lwpid_of. | |
6080 | (struct lwp_info): Delete `lwpid' field. Add `suspended' field. | |
6081 | * linux-low.c (pid_of): Delete. | |
6082 | (inferior_pid): Use lwpid_of. | |
6083 | (linux_event_pipe): New. | |
6084 | (target_is_async_p): New. | |
6085 | (delete_lwp): New. | |
6086 | (handle_extended_wait): Use lwpid_of. | |
6087 | (add_lwp): Don't set lwpid field. | |
6088 | (linux_attach_lwp): Adjust debug output. Use lwpid_of. | |
6089 | (linux_kill_one_lwp): If killing a running lwp, stop it first. | |
6090 | Use lwpid_of. Adjust to linux_wait_for_event interface changes. | |
6091 | (linux_detach_one_lwp): If detaching from a running lwp, stop it | |
6092 | first. Adjust to linux_wait_for_event interface changes. Use | |
6093 | lwpid_of. | |
6094 | (linux_detach): Don't delete the main lwp here. | |
6095 | (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of. | |
6096 | (status_pending_p): Don't consider explicitly suspended lwps. | |
6097 | (linux_wait_for_lwp): Take an integer pid instead of a lwp_info | |
6098 | pointer. Add OPTIONS argument. Change return type to int. Use | |
6099 | my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of. | |
6100 | (linux_wait_for_event): Take an integer pid instead of a lwp_info | |
6101 | pointer. Add status pointer argument. Return a pid instead of a | |
6102 | status. Use lwpid_of. Adjust to linux_wait_for_lwp interface | |
6103 | changes. In non-stop mode, don't switch to a random thread. | |
6104 | (linux_wait): Rename to... | |
6105 | (linux_wait_1): ... this. Add target_options argument, and handle | |
6106 | it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode, | |
6107 | don't handle the continue thread. Handle TARGET_WNOHANG. Merge | |
6108 | clean exit and signal exit code. Don't stop all threads in | |
6109 | non-stop mode. In all-stop mode, only stop all threads when | |
6110 | reporting a stop to GDB. Handle explicit thread stop requests. | |
6111 | (async_file_flush, async_file_mark): New. | |
6112 | (linux_wait): New. | |
6113 | (send_sigstop): Use lwpid_of. | |
6114 | (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event | |
6115 | interface changes. In non-stop mode, don't switch to a random | |
6116 | thread. | |
6117 | (linux_resume_one_lwp): Use lwpid_of. | |
6118 | (linux_continue_one_thread, linux_queue_one_thread): Merge into ... | |
6119 | (linux_resume_one_thread): ... this. Handle resume_stop. In | |
6120 | non-stop mode, don't look for pending flag in all threads. | |
6121 | (resume_status_pending_p): Don't consider explicitly suspended | |
6122 | threads. | |
6123 | (my_waitpid): Reimplement. Emulate __WALL. | |
6124 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): | |
6125 | Use lwpid_of. | |
6126 | (sigchld_handler, linux_supports_non_stop, linux_async) | |
6127 | (linux_start_non_stop): New. | |
6128 | (linux_target_ops): Register linux_supports_non_stop, linux_async | |
6129 | and linux_start_non_stop. | |
6130 | (initialize_low): Install SIGCHLD handler. | |
6131 | * thread-db.c (thread_db_create_event, find_one_thread) | |
6132 | (thread_db_get_tls_address): Use lwpid_of. | |
6133 | * win32-low.c (win32_detach): Adjust to use resume_kind. | |
6134 | (win32_wait): Add `options' argument. | |
6135 | * spu-low.c (spu_resume): Adjust to use resume_kind. | |
6136 | (spu_wait): Add `options' argument. | |
6137 | ||
5b1c542e PA |
6138 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
6139 | ||
6140 | Decouple target code from remote protocol. | |
6141 | ||
6142 | * target.h (enum target_waitkind): New. | |
6143 | (struct target_waitstatus): New. | |
6144 | (struct target_ops) <wait>: Return an unsigned long. Take a | |
6145 | target_waitstatus pointer instead of a char pointer. | |
6146 | (mywait): Likewise. | |
6147 | * target.c (mywait): Change prototype to return an unsigned long. | |
6148 | Take a target_waitstatus pointer instead of a char pointer. Adjust. | |
6149 | * server.h (thread_from_wait, old_thread_from_wait): Delete | |
6150 | declarations. | |
6151 | (prepare_resume_reply): Change prototype to take a | |
6152 | target_waitstatus. | |
6153 | * server.c (thread_from_wait, old_thread_from_wait): Delete. | |
6154 | (last_status, last_ptid): New. | |
6155 | (start_inferior): Remove "statusptr" argument. Adjust. Return a | |
6156 | pid instead of a signal. | |
6157 | (attach_inferior): Remove "status" and "signal" parameters. | |
6158 | Adjust. | |
6159 | (handle_query): For qGetTLSAddr, parse the thread id with strtol, | |
6160 | not as an address. | |
6161 | (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill) | |
6162 | (handle_v_requests, myresume): Remove "status" and "signal" | |
6163 | parameters. Adjust. | |
6164 | (handle_status): New. | |
6165 | (main): Delete local `status'. Adjust. | |
6166 | * remote-utils.c: Include target.h. | |
6167 | (prepare_resume_reply): Change prototype to take a | |
6168 | target_waitstatus. Adjust. | |
6169 | ||
6170 | * linux-low.c (linux_wait): Adjust to new target_ops->wait | |
6171 | interface. | |
6172 | * spu-low.c (spu_wait): Adjust. | |
6173 | * win32-low.c (enum target_waitkind, struct target_waitstatus): | |
6174 | Delete. | |
6175 | (win32_wait): Adjust. | |
6176 | ||
2bd7c093 PA |
6177 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
6178 | ||
6179 | * target.h (struct thread_resume): Delete leave_stopped member. | |
6180 | (struct target_ops): Add a `n' argument to the `resume' callback. | |
6181 | * server.c (start_inferior): Adjust. | |
6182 | (handle_v_cont, myresume): Adjust. | |
6183 | * linux-low.c (check_removed_breakpoint): Adjust to resume | |
6184 | interface change, and to removed leave_stopped field. | |
6185 | (resume_ptr): Delete. | |
6186 | (struct thread_resume_array): New. | |
6187 | (linux_set_resume_request): Add new `arg' parameter. Adjust to | |
6188 | resume interface change. | |
6189 | (linux_continue_one_thread, linux_queue_one_thread) | |
6190 | (resume_status_pending_p): Check if the resume field is NULL | |
6191 | instead of checking the leave_stopped member. | |
6192 | (linux_resume): Adjust to the target resume interface change. | |
6193 | * spu-low.c (spu_resume): Adjust to the target resume interface | |
6194 | change. | |
6195 | * win32-low.c (win32_detach, win32_resume): Ditto. | |
6196 | ||
c35fafde PA |
6197 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
6198 | ||
6199 | * linux-low.c (linux_wait_for_event): Don't clear the `stepping' | |
6200 | flag. | |
6201 | (wait_for_sigstop): Don't leave a finished single-step SIGTRAP | |
6202 | pending. | |
6203 | (linux_continue_one_thread): Only preserve the stepping flag if | |
6204 | there's a pending breakpoint. | |
6205 | ||
0a59d50b PA |
6206 | 2009-03-31 Pedro Alves <pedro@codesourcery.com> |
6207 | ||
6208 | * server.c (main): After the inferior having exited, call | |
6209 | remote_close before exiting gdbserver. | |
6210 | ||
f04c6d38 TJB |
6211 | 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6212 | ||
6213 | Fix size of FPSCR in Power 7 processors. | |
6214 | * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define. | |
6215 | (PPC_FEATURE_HAS_DFP): New #define. | |
6216 | (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on | |
6217 | size of the FPSCR. | |
6218 | ||
78e5cee6 PA |
6219 | 2009-03-23 Pedro Alves <pedro@codesourcery.com> |
6220 | ||
6221 | * server.c (handle_query) Whitespace and formatting. | |
6222 | ||
1b3f6016 PA |
6223 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
6224 | ||
6225 | * i387-fp.c, linux-arm-low.c, linux-cris-low.c, | |
6226 | linux-crisv32-low.c, linux-i386-low.c, linux-low.c, | |
6227 | linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c, | |
6228 | linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c, | |
6229 | regcache.c, remote-utils.c, server.c, spu-low.c, target.h, | |
6230 | thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c, | |
6231 | Makefile.in, configure.ac: Fix whitespace throughout. | |
6232 | * configure: Regenerate. | |
6233 | ||
a07b2135 PA |
6234 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
6235 | ||
6236 | * inferiors.c (find_inferior): Make it safe for the callback | |
6237 | function to delete the currently iterated inferior. | |
6238 | ||
67cc2626 PA |
6239 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
6240 | ||
6241 | * Makefile.in (linuw_low_h): Move higher. | |
6242 | (thread-db.o): Depend on $(linux_low_h). | |
6243 | ||
54a0b537 PA |
6244 | 2009-03-17 Pedro Alves <pedro@codesourcery.com> |
6245 | ||
6246 | Rename "process" to "lwp" throughout. | |
6247 | ||
6248 | * linux-low.c (all_processes): Rename to... | |
6249 | (all_lwps): ... this. | |
6250 | (inferior_pid, handle_extended_wait, get_stop_pc): Adjust. | |
6251 | (add_process): Rename to ... | |
6252 | (add_lwp): ... this. Adjust. | |
6253 | (linux_create_inferior): Adjust. | |
6254 | (linux_attach_lwp): Adjust. | |
6255 | (linux_attach): Adjust. | |
6256 | (linux_kill_one_process): Rename to ... | |
6257 | (linux_kill_one_lwp): ... this. Adjust. | |
6258 | (linux_kill): Adjust. | |
6259 | (linux_detach_one_process): Rename to ... | |
6260 | (linux_detach_one_lwp): ... this. Adjust. | |
6261 | (linux_detach): Adjust. | |
6262 | (check_removed_breakpoint): Adjust. | |
6263 | (status_pending_p): Adjust. | |
6264 | (linux_wait_for_process): Rename to ... | |
6265 | (linux_wait_for_lwp): ... this. Adjust. | |
6266 | (linux_wait_for_event): Adjust. | |
6267 | (send_sigstop): Adjust. | |
6268 | (wait_for_sigstop): Adjust. | |
6269 | (stop_all_processes): Rename to ... | |
6270 | (stop_all_lwps): ... this. | |
6271 | (linux_resume_one_process): Rename to ... | |
6272 | (linux_resume_one_lwp): ... this. Adjust. | |
6273 | (linux_set_resume_request, linux_continue_one_thread) | |
6274 | (linux_queue_one_thread, resume_status_pending_p) | |
6275 | (usr_store_inferior_registers, regsets_store_inferior_registers) | |
6276 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): | |
6277 | Adjust. | |
6278 | * linux-low.h (get_process): Rename to ... | |
6279 | (get_lwp): ... this. Adjust. | |
6280 | (get_thread_process): Rename to ... | |
6281 | (get_thread_lwp): ... this. Adjust. | |
6282 | (get_process_thread): Rename to ... | |
6283 | (get_lwp_thread): ... this. Adjust. | |
6284 | (struct process_info): Rename to ... | |
6285 | (struct lwp_info): ... this. | |
6286 | (all_processes): Rename to ... | |
6287 | (all_lwps): ... this. | |
6288 | * proc-service.c (ps_lgetregs): Adjust. | |
6289 | * thread-db.c (thread_db_create_event, find_one_thread) | |
6290 | (maybe_attach_thread, thread_db_get_tls_address): Adjust. | |
6291 | ||
0b16c5cf PA |
6292 | 2009-03-14 Pedro Alves <pedro@codesourcery.com> |
6293 | ||
6294 | * server.c (handle_query): Handle "qAttached". | |
6295 | ||
32de4b9d NS |
6296 | 2009-03-13 Nathan Sidwell <nathan@codesourcery.com> |
6297 | ||
6298 | * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to | |
6299 | GPLv3, update license URL. | |
6300 | ||
2aecd87f DE |
6301 | 2009-03-01 Doug Evans <dje@google.com> |
6302 | ||
93efd302 | 6303 | * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common. |
2aecd87f DE |
6304 | (server_h): Add gdb_signals.h. |
6305 | (signals.o): Update. | |
6306 | * server.h (target_signal_from_host,target_signal_to_host_p) | |
6307 | (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h. | |
6308 | ||
86b1f9c5 PM |
6309 | 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr> |
6310 | ||
6311 | * remote-utils.c (getpkt): Also generate remote-debug | |
6312 | information if noack_mode is set. | |
6313 | ||
4aa995e1 PA |
6314 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
6315 | ||
6316 | * server.c (handle_query): Report qXfer:siginfo:read and | |
6317 | qXfer:siginfo:write as supported and handle them. | |
6318 | * target.h (struct target_ops) <qxfer_siginfo>: New field. | |
6319 | * linux-low.c (linux_xfer_siginfo): New. | |
6320 | (linux_target_ops): Set it. | |
6321 | ||
62709adf PA |
6322 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
6323 | ||
6324 | * server.c (gdbserver_usage): Mention --remote-debug. | |
6325 | (main): Accept '--remote-debug' switch. | |
6326 | ||
aef93bd7 DE |
6327 | 2009-01-18 Doug Evans <dje@google.com> |
6328 | ||
6329 | * regcache.c (new_register_cache): No need to check result of xcalloc. | |
6330 | * server.c (handle_search_memory): Back out calls to xmalloc, | |
6331 | result is checked and error is returned to user upon failure. | |
6332 | (handle_query): Ditto. Add more checks for result of malloc. | |
6333 | (handle_v_cont): Check result of malloc, report error back to | |
6334 | user upon failure. | |
6335 | (handle_v_run): Ditto. Call freeargv. | |
6336 | * server.h (freeargv): Declare. | |
6337 | * utils.c (freeargv): New fn. | |
6338 | ||
54363045 DE |
6339 | 2009-01-15 Doug Evans <dje@google.com> |
6340 | ||
f626972c DE |
6341 | * gdbreplay.c (perror_with_name): Make arg const char *. |
6342 | * server.h (target_signal_to_name): Make return type const char *. | |
0842e787 | 6343 | * thread-db.c (thread_db_err_str): Make return type const char *. |
f626972c | 6344 | * utils.c (perror_with_name): Make arg const char *. |
54363045 | 6345 | |
18aae699 PA |
6346 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
6347 | ||
6348 | * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE | |
6349 | when handling a EXIT_PROCESS_DEBUG_EVENT. | |
6350 | ||
ff703abe JB |
6351 | 2009-01-06 Joel Brobecker <brobecker@adacore.com> |
6352 | ||
6353 | * gdbreplay.c (gdbreplay_version): Update copyright year. | |
6354 | * server.c (gdbserver_version): Likewise. | |
6355 | ||
f21cc1a2 | 6356 | 2009-01-05 Doug Evans <dje@google.com> |
0e21c1ec DE |
6357 | |
6358 | * linux-low.c (linux_attach_lwp): Add some comments/fixmes. | |
f21cc1a2 | 6359 | (handle_extended_wait): Improve comment. |
0e21c1ec | 6360 | |
bca929d3 DE |
6361 | 2008-12-13 Doug Evans <dje@google.com> |
6362 | ||
6363 | * utils.c (xmalloc,xcalloc,xstrdup): New fns. | |
6364 | * server.h (ATTR_MALLOC): New macro. | |
6365 | (xmalloc,xcalloc,xstrdup): Declare. | |
6366 | * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup. | |
6367 | * inferiors.c: Ditto. | |
6368 | * linux-low.c: Ditto. | |
6369 | * mem-break.c: Ditto. | |
6370 | * regcache.c: Ditto. | |
6371 | * remote-utils.c: Ditto. | |
6372 | * server.c: Ditto. | |
6373 | * target.c: Ditto. | |
6374 | * win32-low.c: Ditto. | |
6375 | ||
97438e3f DE |
6376 | 2008-12-12 Doug Evans <dje@google.com> |
6377 | ||
896c7fbb DE |
6378 | * linux-low.c (linux_wait_for_process): Don't clobber current_inferior |
6379 | in debugging printf. | |
6380 | ||
97438e3f DE |
6381 | * linux-low.c (handle_extended_wait): Simplify, use my_waitpid. |
6382 | ||
e3b886f8 DE |
6383 | 2008-12-09 Doug Evans <dje@google.com> |
6384 | ||
6385 | * linux-low.h (struct process_info): Delete member tid, unused. | |
6386 | * thread-db.c (find_one_thread): Update. | |
6387 | (maybe_attach_thread): Update. | |
6388 | ||
07e059b5 VP |
6389 | 2008-12-02 Pedro Alves <pedro@codesourcery.com> |
6390 | ||
889bf7c5 PA |
6391 | * target.h (struct target_ops): Add qxfer_osdata member. |
6392 | * linux-low.c: Include ctype.h and pwd.h and sys/types.h | |
6393 | and dirent.h. | |
6394 | (linux_qxfer_osdata): New functions. | |
6395 | (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata | |
6396 | callback. | |
6397 | * server.c (handle_query): Handle "qXfer:osdata:read:". | |
6398 | * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish) | |
6399 | (buffer_xml_printf): New functions. | |
6400 | * server.h (struct buffer): New. | |
6401 | (buffer_grow_str, buffer_grow_str0): New macros. | |
6402 | (buffer_grow, buffer_free, buffer_init, buffer_finish) | |
6403 | (buffer_xml_printf): Declare. | |
07e059b5 | 6404 | |
4cab47ab DE |
6405 | 2008-11-24 Doug Evans <dje@google.com> |
6406 | ||
6407 | * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused. | |
6408 | ||
f142445f DJ |
6409 | 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com> |
6410 | ||
6411 | * server.c (handle_v_run): Always use the supplied argument list. | |
6412 | ||
d0107bb6 | 6413 | 2008-11-19 Bob Wilson <bob.wilson@acm.org> |
889bf7c5 | 6414 | |
d0107bb6 BW |
6415 | * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4. |
6416 | (xtensa_regmap_table): Add entry for scompare1. | |
889bf7c5 | 6417 | |
2c4ad781 TJB |
6418 | 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6419 | ||
6420 | * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c, | |
6421 | powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c, | |
6422 | powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c, | |
6423 | powerpc-isa205-64l.o, powerpc-isa205-64l.c, | |
6424 | powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c, | |
6425 | powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets. | |
6426 | * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and | |
6427 | XML target descriptions. | |
6428 | * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR | |
6429 | when inferior is running on an ISA 2.05 or later processor. Add | |
6430 | special case to return offset for full 64-bit slot of FPSCR when | |
6431 | in 32-bits. | |
6432 | ||
dfb64f85 DJ |
6433 | 2008-11-14 Daniel Gutson <dgutson@codesourcery.com> |
6434 | ||
6435 | * Makefile.in (SFILES, clean): Added sparc64 files. | |
6436 | (reg-sparc64.o, reg-sparc64.c): New. | |
6437 | * configure.srv (sparc*-*-linux*): New configuration. | |
6438 | * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace | |
6439 | syscall arguments for SPARC. | |
6440 | (regsets_store_inferior_registers): Likewise. | |
6441 | * linux-sparc-low.c: New file. | |
6442 | ||
66b6e1dd DE |
6443 | 2008-10-21 Doug Evans <dje@google.com> |
6444 | ||
6445 | * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete. | |
6446 | (READLINE_DIR,READLINE_DEP): Delete. | |
6447 | (INTERNAL_CFLAGS): Update. | |
6448 | (LINTFLAGS): Update. | |
6449 | ||
9b710a42 PA |
6450 | 2008-10-10 Pedro Alves <pedro@codesourcery.com> |
6451 | ||
6452 | * server.c (handle_v_run): If GDB didn't specify an argv, use the | |
6453 | whole argv from the last run, not just argv[0]. | |
6454 | ||
5822d809 PA |
6455 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
6456 | ||
6457 | * regcache.c (new_register_cache): Return NULL if the register | |
6458 | cache size isn't known yet. | |
6459 | (free_register_cache): Avoid dereferencing a NULL regcache. | |
6460 | ||
74aac56f DJ |
6461 | 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
6462 | ||
6463 | * configure.srv: Merge MIPS and MIPS64. | |
6464 | ||
400b20f5 MR |
6465 | 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org> |
6466 | ||
6467 | * Makefile.in (uninstall): Apply $(EXEEXT) too. | |
6468 | ||
677c5bb1 LM |
6469 | 2008-08-18 Luis Machado <luisgpm@br.ibm.com> |
6470 | ||
6471 | * Makefile.in: Add required vsx dependencies. | |
6472 | ||
6473 | * linux-ppc-low: Define PPC_FEATURE_HAS_VSX. | |
6474 | Declare init_registers_powerpc_vsx32l. | |
6475 | Declare init_registers_powerpc_vsx64l. | |
6476 | Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS. | |
6477 | (ppc_arch_setup): Check for VSX in hwcap. | |
6478 | (ppc_fill_vsxregset): New function. | |
6479 | (ppc_store_vsxregset): New function. | |
6480 | Add new VSX entry in regset_info target_regsets. | |
6481 | ||
6482 | * configure.srv: Add new VSX dependencies. | |
6483 | ||
a6f3e723 SL |
6484 | 2008-08-12 Pedro Alves <pedro@codesourcery.com> |
6485 | ||
6486 | * remote-utils.c (noack_mode, transport_is_reliable): New globals. | |
6487 | (remote_open): Set or clear transport_is_reliable. | |
6488 | (putpkt_binary): Don't expect acks in noack mode. | |
6489 | (getpkt): Don't send ack/nac in noack mode. | |
6490 | * server.c (handle_general_set): Handle QStartNoAckMode. | |
6491 | (handle_query): If connected by tcp pass QStartNoAckMode+ in | |
6492 | qSupported. | |
6493 | (main): Reset noack_mode on every connection. | |
6494 | * server.h (noack_mode): Declare. | |
6495 | ||
a417dc56 RW |
6496 | 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
6497 | ||
6498 | * Makefile.in (GDBREPLAY_OBS): New variable. | |
6499 | (gdbreplay$(EXEEXT)): Use it to avoid unportable $^. | |
6500 | ||
3221518c UW |
6501 | 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com> |
6502 | Daniel Jacobowitz <dan@codesourcery.com> | |
6503 | ||
6504 | * linux-low.c (linux_resume_one_process): Ignore ESRCH. | |
6505 | (usr_store_inferior_registers): Likewise. | |
6506 | (regsets_store_inferior_registers): Likewise. | |
6507 | ||
ec56be1b PA |
6508 | 2008-07-31 Rolf Jansen <rj@surtec.com> |
6509 | Pedro Alves <pedro@codesourcery.com> | |
6510 | ||
6511 | * configure.ac: Check for memmem declaration. | |
6512 | * server.c [HAVE_MALLOC_H]: Include malloc.h. | |
6513 | (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC) | |
6514 | (disable_packet_qfThreadInfo): Unconditionally compile. | |
6515 | * server.h [!HAVE_DECL_MEMMEM]: Declare memmem. | |
6516 | * configure, config.in: Regenerate. | |
6517 | ||
2fe5e3ff DE |
6518 | 2008-07-28 Doug Kwan <dougkwan@google.com> |
6519 | ||
6520 | * linux-low.c (sys/dir.h, sys/user.h): Remove includes. | |
6521 | (linux_write_memory): Remove declaration of errno. | |
6522 | ||
836acd6d UW |
6523 | 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com> |
6524 | ||
6525 | * linux-low.c (handle_extended_wait): Do not use "status" | |
6526 | variable uninitialized. | |
6527 | ||
aeba519e PA |
6528 | 2008-07-07 Pedro Alves <pedro@codesourcery.com> |
6529 | ||
6530 | * server.c (handle_v_attach): Inhibit reporting dll changes. | |
6531 | ||
db42f210 PA |
6532 | 2008-06-27 Pedro Alves <pedro@codesourcery.com> |
6533 | ||
6534 | * remote-utils.c (prepare_resume_reply): If requested, don't | |
6535 | output "thread:TID" in the T stop reply. | |
6536 | ||
6537 | * server.c (disable_packet_vCont, disable_packet_Tthread) | |
6538 | (disable_packet_qC, disable_packet_qfThreadInfo): New globals. | |
6539 | (handle_query): If requested, disable support for qC, qfThreadInfo | |
6540 | and qsThreadInfo. | |
6541 | (handle_v_requests): If requested, disable support for vCont. | |
6542 | (gdbserver_show_disableable): New. | |
6543 | (main): Handle --disable-packet and --disable-packet=LIST. | |
6544 | ||
6545 | * server.h (disable_packet_vCont, disable_packet_Tthread) | |
6546 | (disable_packet_qC, disable_packet_qfThreadInfo): Declare. | |
6547 | ||
8e4c5421 CD |
6548 | 2008-06-20 Carlos O'Donell <carlos@codesourcery.com> |
6549 | ||
6550 | * server.c (gdbserver_usage): Mention --version. | |
6551 | ||
6e23a804 DJ |
6552 | 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com> |
6553 | ||
6554 | * Makefile.in (gdbreplay.o): New rule. | |
6555 | ||
90aa6a40 JM |
6556 | 2008-06-06 Joseph Myers <joseph@codesourcery.com> |
6557 | ||
6558 | * gdbreplay.c (gdbreplay_version): Say gdbreplay in version | |
6559 | message, not gdbserver. | |
6560 | ||
c16158bc | 6561 | 2008-06-05 Vladimir Prus <vladimir@codesourcery.com> |
889bf7c5 PA |
6562 | Nathan Sidwell <nathan@codesourcery.com> |
6563 | Joseph Myers <joseph@codesourcery.com> | |
c16158bc JM |
6564 | |
6565 | * acinclude.m4: Include ../../config/acx.m4. | |
6566 | * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL. | |
6567 | * configure, config.in: Regenerate. | |
6568 | * Makefile.in (gdbreplay$(EXEEXT)): Add version.o. | |
6569 | * server.c (gdbserver_version): Print PKGVERSION. | |
6570 | (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO. | |
6571 | (main): Adjust gdbserver_usage calls. | |
6572 | * gdbreplay.c (version, host_name): Add declarations. | |
6573 | (gdbreplay_version, gdbreplay_usage): New. | |
6574 | (main): Accept --version and --help options. | |
6575 | ||
aeb75bf5 DJ |
6576 | 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com> |
6577 | ||
6578 | * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New. | |
6579 | (arm_breakpoint_at): Handle Thumb. | |
6580 | (the_low_target): Add comment. | |
6581 | ||
76b233dd UW |
6582 | 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com> |
6583 | ||
6584 | * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer. | |
6585 | ||
08388c79 DE |
6586 | 2008-05-09 Doug Evans <dje@google.com> |
6587 | ||
a3c83fae DE |
6588 | * server.h (decode_search_memory_packet): Declare. |
6589 | * remote-utils.c (decode_search_memory_packet): New fn. | |
6590 | * server.c (handle_search_memory_1): New fn. | |
08388c79 DE |
6591 | (handle_search_memory): New fn. |
6592 | (handle_query): Process qSearch:memory packets. | |
6593 | ||
bb9c3d36 UW |
6594 | 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com> |
6595 | ||
6596 | * regcache.c (registers_length): Remove. | |
6597 | (set_register_cache): Verify that PBUFSIZ is large enough to hold a | |
6598 | full register packet. | |
6599 | * regcache.h (registers_length): Remove prototype. | |
6600 | * server.h (PBUFSIZ): Define to 16384. | |
6601 | ||
7284e1be UW |
6602 | 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com> |
6603 | ||
6604 | * configure.srv (powerpc*-*-linux*): Set srv_regobj to | |
6605 | powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o, | |
6606 | powerpc-64l.o, and powerpc-altivec64l.o. | |
6607 | Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and | |
6608 | rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml, | |
6609 | rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml, | |
6610 | rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml, | |
6611 | rs6000/power-linux.xml, and rs6000/power64-linux.xml | |
6612 | to srv_xmlfiles. | |
6613 | ||
6614 | * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ... | |
6615 | (powerpc-32l.o, powerpc-32l.c): ... these new rules. | |
6616 | (powerpc-32.o, powerpc-32.c): Remove, replace by ... | |
6617 | (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules. | |
6618 | (powerpc-e500.o, powerpc-e500.c): Remove, replace by ... | |
6619 | (powerpc-e500l.o, powerpc-e500l.c): ... these new rules. | |
6620 | (reg-ppc64.o, reg-ppc64.c): Remove, replace by ... | |
6621 | (powerpc-64l.o, powerpc-64l.c): ... these new rules. | |
6622 | (powerpc-64.o, powerpc-64.c): Remove, replace by ... | |
6623 | (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules. | |
6624 | (clean): Update. | |
6625 | ||
6626 | * linux-ppc-low.c (init_registers_ppc): Remove, replace by ... | |
6627 | (init_registers_powerpc_32l): ... this new prototype. | |
6628 | (init_registers_powerpc_32): Remove, replace by ... | |
6629 | (init_registers_powerpc_altivec32l): ... this new prototype. | |
6630 | (init_registers_powerpc_e500): Remove, replace by ... | |
6631 | (init_registers_powerpc_e500l): ... this new prototype. | |
6632 | (init_registers_ppc64): Remove, replace by ... | |
6633 | (init_registers_powerpc_64l): ... this new prototype. | |
6634 | (init_registers_powerpc_64): Remove, replace by ... | |
6635 | (init_registers_powerpc_altivec64l): ... this new prototype. | |
6636 | (ppc_num_regs): Set to 73. | |
6637 | (PT_ORIG_R3, PT_TRAP): Define if necessary. | |
6638 | (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap. | |
6639 | (ppc_cannot_store_register): Handle orig_r3 and trap. | |
6640 | (ppc_arch_setup): Update init_registers_... calls. | |
6641 | (ppc_fill_gregset): Handle orig_r3 and trap. | |
6642 | ||
6643 | * inferiors.c (clear_inferiors): Reset current_inferior. | |
6644 | ||
fdc59709 PB |
6645 | 2008-04-23 Paolo Bonzini <bonzini@gnu.org> |
6646 | ||
889bf7c5 PA |
6647 | * acinclude.m4: Add override.m4. |
6648 | * configure: Regenerate. | |
fdc59709 | 6649 | |
c9b2f845 UW |
6650 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
6651 | ||
6652 | * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the | |
6653 | initial call to init_register_ppc64. | |
6654 | ||
550512b8 UW |
6655 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
6656 | ||
43aaf8b6 PA |
6657 | * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into |
6658 | single powerpc*-*-linux* case. | |
550512b8 UW |
6659 | (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case. |
6660 | ||
b6430ec3 UW |
6661 | 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com> |
6662 | ||
6663 | * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from | |
889bf7c5 | 6664 | srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml |
b6430ec3 UW |
6665 | from reg_xmlfiles. |
6666 | * linux-ppc-low.c: Include <elf.h>. | |
6667 | (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define. | |
6668 | (ppc_hwcap): New global variable. | |
6669 | (ppc_regmap): Remove __SPE__ #ifdef sections. | |
6670 | (ppc_regmap_e500): New global variable. | |
6671 | (ppc_cannot_store_register): Update __SPE__ special case. | |
6672 | (ppc_get_hwcap): New function. | |
6673 | (ppc_arch_setup): Use it to determine whether inferior supports | |
6674 | AltiVec or SPE registers. Set the_low_target.regmap if appropriate. | |
6675 | (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally. | |
6676 | Do not access registers if target does not support AltiVec. | |
6677 | (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally. | |
6678 | Do not access registers if target does not support SPE. | |
6679 | (target_regsets): Unconditionally include AltiVec and SPE regsets. | |
6680 | ||
52fa2412 UW |
6681 | 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com> |
6682 | ||
6683 | * linux-low.c (disabled_regsets, num_regsets): New. | |
6684 | (use_regsets_p): Delete. | |
6685 | (linux_wait_for_process): Clear disabled_regsets. | |
6686 | (regsets_fetch_inferior_registers): Check and set it. | |
6687 | (regsets_store_inferior_registers): Likewise. | |
6688 | (linux_fetch_registers, linux_store_registers): Do not use | |
6689 | use_regsets_p. | |
6690 | (initialize_low): Allocate disabled_regsets. | |
6691 | ||
e28b3332 DJ |
6692 | 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
6693 | ||
6694 | * Makefile.in (LIBOBJS): New. | |
6695 | (OBS): Use LIBOBJS. | |
6696 | (memmem.o): New rule. | |
6697 | * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem. | |
6698 | * configure: Regenerated. | |
6699 | ||
4536995d UW |
6700 | 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com> |
6701 | ||
6702 | * server.c (handle_query): Never return "unsupported" for | |
6703 | qXfer:features:read queries. | |
6704 | ||
221c031f UW |
6705 | 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com> |
6706 | ||
6707 | * server.c (get_features_xml): Fix inverted condition. | |
6708 | (handle_query): Always support qXfer:feature:read. | |
6709 | ||
ccd213ac DJ |
6710 | 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com> |
6711 | ||
6712 | * server.c (wrapper_argv): New. | |
6713 | (start_inferior): Handle wrapper_argv. If set, expect an extra | |
6714 | trap. | |
6715 | (gdbserver_usage): Document --wrapper. | |
6716 | (main): Parse --wrapper. | |
6717 | ||
6fe305f7 UW |
6718 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
6719 | ||
6720 | * configure.srv [powerpc64-*-linux*]: Add all files mentioned for | |
6721 | powerpc-*-linux* to srv_regobj and reg_xmlfiles. | |
6722 | * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation. | |
6723 | (ppc_set_pc): Likewise. | |
6724 | (ppc_arch_setup): New function. | |
6725 | (ppc_fill_gregset): Call ppc_collect_ptrace_register instead | |
6726 | of collect_register. | |
889bf7c5 | 6727 | (the_low_target): Use ppc_arch_setup as arch_setup initializer. |
6fe305f7 | 6728 | |
5b0a002e UW |
6729 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
6730 | ||
6731 | * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o | |
6732 | instead of linux-ppc64-low.o. | |
6733 | * linux-ppc64-low.c: Remove file. | |
6734 | * Makefile.in (SFILES): Remove linux-ppc64-low.c. | |
6735 | (linux-ppc64-low.o): Remove rule. | |
6736 | ||
6737 | * linux-ppc-low.c (init_registers_ppc64): Add prototype. | |
6738 | (init_registers_powerpc_64): Likewise. | |
6739 | (ppc_regmap): Conditionally define depending on __powerpc64__. | |
6740 | (ppc_cannot_store_register): Do not special-case "fpscr" when | |
6741 | compiled on __powerpc64__. | |
6742 | (ppc_collect_ptrace_register): New function. | |
6743 | (ppc_supply_ptrace_register): New function. | |
6744 | (ppc_breakpoint): Change type to "unsigned int". | |
6745 | (ppc_breakpoint_at): Change type of "insn" to "unsigned int". | |
6746 | (the_low_target): Conditionally provide initializers for the | |
889bf7c5 | 6747 | arch_setup member depending on __powerpc64__. Install |
5b0a002e UW |
6748 | collect_ptrace_register and supply_ptrace_register members. |
6749 | ||
9b4b61c8 UW |
6750 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
6751 | ||
6752 | * regcache.h (gdbserver_xmltarget): Add extern declaration. | |
6753 | * server.c (gdbserver_xmltarget): Define. | |
6754 | (get_features_xml): Use it to replace "target.xml" and arch_string. | |
6755 | ||
6756 | * configure.srv: Remove srv_xmltarget. Add XML files that were | |
6757 | mentioned there to srv_xmlfiles instead. Remove conditional tests | |
6758 | on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set | |
6759 | srv_xmlfiles and srv_regobj to include all possible choices. | |
6760 | * configure.ac (srv_xmltarget): Remove. | |
6761 | (srv_xmlfiles): Do not add "target.xml". | |
6762 | (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove | |
6763 | checks for supplementary target information. | |
6764 | * configure: Regenerate. | |
6765 | * Makefile.in (XML_TARGET): Remove. | |
6766 | (target.xml): Remove rule. | |
6767 | (clean): Do not clean up target.xml. | |
6768 | (.PRECIOUS): Do not mention target.xml. | |
6769 | ||
6770 | * target.h (struct target_ops): Remove arch_string member. | |
6771 | * linux-low.c (linux_arch_string): Remove. | |
6772 | (linux_target_ops): Remove arch_string initializer. | |
6773 | * linux-low.h (struct linux_target_ops): Remove arch_string member. | |
6774 | * linux-i386-low.c (the_low_target): Remove arch_string initializer. | |
6775 | * linux-x86-64-low.c (the_low_target): Remove arch_string initializer. | |
6776 | * spu-low.c (spu_arch_string): Remove. | |
6777 | (spu_target_ops): Remove arch_string initializer. | |
6778 | * win32-low.c (win32_arch_string): Remove. | |
6779 | (win32_target_ops): Remove arch_string initializer. | |
6780 | * win32-low.h (struct win32_target_ops): Remove arch_string member. | |
6781 | * win32-arm-low.c (the_low_target): Remove arch_string initializer. | |
6782 | * win32-i368-low.c (the_low_target): Remove arch_string initializer. | |
6783 | ||
ee1a7ae4 UW |
6784 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
6785 | ||
6786 | * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field | |
6787 | by collect_ptrace_register and supply_ptrace_register hooks. | |
6788 | * linux-low.c (fetch_register): Use supply_ptrace_register callback | |
6789 | instead of checking for the_low_target.left_pad_xfer. | |
6790 | (usr_store_inferior_registers): Use collect_ptrace_register callback | |
6791 | instead of checking for the_low_target.left_pad_xfer. | |
6792 | ||
6793 | * linux-s390-low.c (s390_collect_ptrace_register): New function. | |
6794 | (s390_supply_ptrace_register): Likewise. | |
6795 | (s390_fill_gregset): Call s390_collect_ptrace_register. | |
6796 | (the_low_target): Update. | |
6797 | ||
6798 | * linux-ppc64-low.c (ppc_collect_ptrace_register): New function. | |
6799 | (ppc_supply_ptrace_register): Likewise. | |
6800 | (the_low_target): Update. | |
6801 | ||
6802 | * linux-i386-low.c (the_low_target): Update. | |
6803 | * linux-x86-64-low.c (the_low_target): Update. | |
6804 | ||
d61ddec4 UW |
6805 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
6806 | ||
6807 | * configure.srv [s390x-*-linux*]: Set srv_regobj to include both | |
6808 | reg-s390.o and reg-s390x.o. | |
6809 | ||
6810 | * linux-low.c (new_inferior): New global variable. | |
6811 | (linux_create_inferior, linux_attach): Set it. | |
6812 | (linux_wait_for_process): Call the_low_target.arch_setup after the | |
6813 | target has stopped for the first time. | |
6814 | (initialize_low): Do not call the_low_target.arch_setup. | |
6815 | ||
6816 | * linux-s390-low.c (s390_get_pc): Support bi-arch operation. | |
6817 | (s390_set_pc): Likewise. | |
6818 | (s390_arch_setup): New function. | |
6819 | (the_low_target): Use s390_arch_setup as arch_setup routine. | |
6820 | ||
6821 | * regcache.c (realloc_register_cache): New function. | |
6822 | (set_register_cache): Call it for each existing regcache. | |
6823 | ||
d05b4ac3 UW |
6824 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
6825 | ||
6826 | * server.h (init_registers): Remove prototype. | |
6827 | ||
6828 | * linux-low.h (struct linux_target_ops): Add arch_setup field. | |
6829 | * linux-low.c (initialize_low): Call the_low_target.arch_setup () | |
6830 | instead of init_registers (). | |
6831 | * linux-arm-low.c (init_registers_arm): Add prototype. | |
6832 | (init_registers_arm_with_iwmmxt): Likewise. | |
6833 | (the_low_target): Add initializer for arch_setup field. | |
6834 | * linux-cris-low.c (init_registers_cris): Add prototype. | |
6835 | (the_low_target): Add initializer for arch_setup field. | |
6836 | * linux-crisv32-low.c (init_registers_crisv32): Add prototype. | |
6837 | (the_low_target): Add initializer for arch_setup field. | |
6838 | * linux-i386-low.c (init_registers_i386_linux): Add prototype. | |
6839 | (the_low_target): Add initializer for arch_setup field. | |
6840 | * linux-ia64-low.c (init_registers_ia64): Add prototype. | |
6841 | (the_low_target): Add initializer for arch_setup field. | |
6842 | * linux-m32r-low.c (init_registers_m32r): Add prototype. | |
6843 | (the_low_target): Add initializer for arch_setup field. | |
6844 | * linux-m68k-low.c (init_registers_m68k): Add prototype. | |
6845 | (the_low_target): Add initializer for arch_setup field. | |
6846 | * linux-mips-low.c (init_registers_mips_linux): Add prototype. | |
6847 | (init_registers_mips64_linux): Likewise. | |
6848 | (the_low_target): Add initializer for arch_setup field. | |
6849 | * linux-ppc-low.c (init_registers_ppc): Add prototype. | |
6850 | (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise. | |
6851 | (the_low_target): Add initializer for arch_setup field. | |
6852 | * linux-ppc64-low.c (init_registers_ppc64): Add prototype. | |
6853 | (init_registers_powerpc_64): Likewise. | |
6854 | (the_low_target): Add initializer for arch_setup field. | |
6855 | * linux-s390-low.c (init_registers_s390): Add prototype. | |
6856 | (init_registers_s390x): Likewise. | |
6857 | (the_low_target): Add initializer for arch_setup field. | |
6858 | * linux-sh-low.c (init_registers_sh): Add prototype. | |
6859 | (the_low_target): Add initializer for arch_setup field. | |
6860 | * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype. | |
6861 | (the_low_target): Add initializer for arch_setup field. | |
6862 | * linux-xtensa-low.c (init_registers_xtensa): Add prototype. | |
6863 | (the_low_target): Add initializer for arch_setup field. | |
6864 | ||
6865 | * win32-low.h (struct win32_target_ops): Add arch_setup field. | |
6866 | * win32-low.c (initialize_low): Call the_low_target.arch_setup () | |
6867 | instead of init_registers (). | |
6868 | * win32-arm-low.c (init_registers_arm): Add prototype. | |
6869 | (the_low_target): Add initializer for arch_setup field. | |
6870 | * win32-i386-low.c (init_registers_i386): Add prototype. | |
6871 | (the_low_target): Add initializer for arch_setup field. | |
6872 | ||
6873 | * spu-low.c (init_registers_spu): Add prototype. | |
6874 | (initialize_low): Call initialie_registers_spu () instead of | |
6875 | initialize_registers (). | |
6876 | ||
fd96d250 PA |
6877 | 2008-02-19 Pedro Alves <pedro@codesourcery.com> |
6878 | ||
6879 | * server.c (handle_v_requests): When handling the vRun and vAttach | |
6880 | packets, if already debugging a process, don't kill it. Return an | |
6881 | error instead. | |
6882 | ||
d41b6bb4 DJ |
6883 | 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com> |
6884 | ||
6885 | * server.c (handle_query): Correct length check. | |
6886 | ||
5ac588cf PA |
6887 | 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt> |
6888 | ||
6889 | * win32-low.c (do_initial_child_stuff): Add process handle | |
6890 | parameter. Set current_process_handle and current_process_id from the | |
6891 | parameters. Clear globals. | |
6892 | (win32_create_inferior): Don't set current_process_handle and | |
6893 | current_process_id here. Instead pass them on the call to | |
6894 | do_initial_child_stuff. | |
6895 | (win32_attach): Likewise. | |
6896 | (win32_clear_inferiors): New. | |
6897 | (win32_kill): Don't close the current process handle or the | |
6898 | current thread handle here. Instead call win32_clear_inferiors. | |
6899 | (win32_detach): Don't open a new handle to the process. Call | |
6900 | win32_clear_inferiors. | |
6901 | (win32_join): Don't rely on current_process_handle; open a new | |
6902 | handle using the process id. | |
6903 | (win32_wait): Call win32_clear_inferiors when the inferior process | |
6904 | has exited. | |
6905 | ||
ecd7ecbc DJ |
6906 | 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com> |
6907 | ||
6908 | * server.c (monitor_show_help): Add "exit". | |
6909 | ||
1525d545 MG |
6910 | 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com> |
6911 | ||
ecd7ecbc | 6912 | * Makefile.in (SFILES): Add linux-xtensa-low.c. |
1525d545 MG |
6913 | (clean): Add reg-xtensa.c. |
6914 | (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies. | |
ecd7ecbc DJ |
6915 | * configure.srv (xtensa*-*-linux*) New target. |
6916 | * linux-xtensa-low.c: New. | |
6917 | * xtensa-xtregs.c: New. | |
1525d545 | 6918 | |
59a016f0 PA |
6919 | 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt> |
6920 | ||
6921 | * hostio.c: Don't include errno.h. | |
6922 | (errno_to_fileio_errno): Move to hostio-errno. | |
6923 | * hostio.c: (hostio_error): Remove the error parameter. Defer the | |
6924 | error number outputting to the target->hostio_last_error callback. | |
6925 | (hostio_packet_error): Use FILEIO_EINVAL directly. | |
6926 | (handle_open, handle_pread, hostio_error, handle_unlink): Update | |
6927 | calls to hostio_error. | |
6928 | * hostio-errno.c: New. | |
6929 | * server.h (hostio_last_error_from_errno): Declare. | |
6930 | * target.h (target_ops): Add hostio_last_error member. | |
6931 | * linux-low.c (linux_target_op): Register hostio_last_error_from_errno | |
6932 | as hostio_last_error handler. | |
889bf7c5 | 6933 | * spu-low.c (spu_target_ops): Likewise. |
59a016f0 PA |
6934 | * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error) |
6935 | (wince_hostio_last_error): New functions. | |
6936 | (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error | |
6937 | as hostio_last_error handler. | |
6938 | (win32_target_ops) [!_WIN32_WCE]: Register | |
6939 | hostio_last_error_from_errno as hostio_last_error handler. | |
6940 | * Makefile.in (SFILES): Add hostio.c and hostio-errno.c. | |
6941 | (hostio-errno.o): New rule. | |
6942 | * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs. | |
6943 | * configure.srv (srv_hostio_err_objs): New variable. Default to | |
6944 | hostio-errno.o. | |
6945 | (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "". | |
6946 | * configure: Regenerate. | |
6947 | ||
2d717e4f DJ |
6948 | 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
6949 | ||
6950 | * linux-low.c (linux_attach_lwp): Do not _exit after errors. | |
6951 | (linux_kill, linux_detach): Clean up the process list. | |
6952 | * remote-utils.c (remote_open): Improve port number parsing. | |
6953 | (putpkt_binary, input_interrupt): Only send interrupts if the target | |
6954 | is running. | |
6955 | * server.c (extended_protocol): Make static. | |
6956 | (attached): Define earlier. | |
6957 | (exit_requested, response_needed, program_argv): New variables. | |
6958 | (target_running): New. | |
6959 | (start_inferior): Clear attached here. | |
6960 | (attach_inferior): Set attached here. | |
6961 | (require_running): Define. | |
6962 | (handle_query): Use require_running and target_running. Implement | |
6963 | "monitor exit". | |
6964 | (handle_v_attach, handle_v_run): New. | |
6965 | (handle_v_requests): Use require_running. Handle vAttach and vRun. | |
6966 | (gdbserver_usage): Update. | |
6967 | (main): Redo argument parsing. Handle --debug and --multi. Handle | |
6968 | --attach along with other options or after the port. Save | |
6969 | program_argv. Support no initial program. Resynchronize | |
6970 | communication with GDB after an error. Handle "monitor exit". | |
6971 | Use require_running and target_running. Always allow the extended | |
6972 | protocol. Do not error out for Hc0 or Hc-1. Do not automatically | |
6973 | restart in extended mode. | |
6974 | * README: Refer to the GDB manual. Update --attach usage. | |
6975 | ||
7407e2de AS |
6976 | 2007-12-20 Andreas Schwab <schwab@suse.de> |
6977 | ||
6978 | * linux-low.c (STACK_SIZE): Define. | |
6979 | (linux_tracefork_child): Use it. Use __clone2 on ia64. | |
6980 | (linux_test_for_tracefork): Likewise. | |
6981 | ||
b65d95c5 DJ |
6982 | 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com> |
6983 | ||
6984 | * linux-low.c (linux_wait_for_event): Update messages. Do not | |
6985 | reinsert auto-delete breakpoints. | |
6986 | * mem-break.c (struct breakpoint): Change return type of handler to | |
6987 | int. | |
6988 | (set_breakpoint_at): Update handler type. | |
6989 | (reinsert_breakpoint_handler): Return 1 instead of calling | |
6990 | delete_breakpoint. | |
6991 | (reinsert_breakpoint_by_bp): Check for the original breakpoint before | |
6992 | setting a new one. | |
6993 | (check_breakpoints): Delete auto-delete breakpoints and return 2. | |
6994 | * mem-break.h (set_breakpoint_at): Update handler type. | |
6995 | * thread-db.c (thread_db_create_event, thread_db_create_event): Update. | |
6996 | * win32-low.c (auto_delete_breakpoint): New. | |
6997 | (get_child_debug_event): Use it. | |
6998 | ||
4e799345 DJ |
6999 | 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com> |
7000 | ||
7001 | * configure.ac: Check for pread and pwrite. | |
7002 | * hostio.c (handle_pread): Fall back to lseek and read. | |
7003 | (handle_pwrite): Fall back to lseek and write. | |
7004 | * config.in, configure: Regenerated. | |
7005 | ||
27524b67 DJ |
7006 | 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com> |
7007 | ||
7008 | * server.c (myresume): Add own_buf argument. | |
7009 | (main): Update calls. | |
7010 | ||
a20d5e98 DJ |
7011 | 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com> |
7012 | ||
7013 | * linux-low.c (linux_wait, linux_resume): Do not handle async I/O. | |
7014 | * remote-utils.c (remote_open): Do not call disable_async_io. | |
7015 | (block_async_io): Delete. | |
7016 | (unblock_async_io): Make static. | |
7017 | (initialize_async_io): New. | |
7018 | * server.c (handle_v_cont): Handle async I/O here. | |
7019 | (myresume): Likewise. Move other common resume tasks here... | |
7020 | (main): ... from here. Call initialize_async_io. Disable async | |
7021 | I/O before the main loop. | |
7022 | * server.h (initialize_async_io): Declare. | |
7023 | (block_async_io, unblock_async_io): Delete prototypes. | |
7024 | * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here. | |
7025 | ||
b79d787e DJ |
7026 | 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au> |
7027 | ||
7028 | * remote-utils.c (readchar): Allow binary data in received messages. | |
7029 | ||
d97903b2 PA |
7030 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
7031 | ||
7032 | * win32-low.c (attaching): New global. | |
7033 | (win32_create_inferior): Clear the `attaching' global. | |
7034 | (win32_attach): Set the `attaching' global. | |
7035 | (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when | |
7036 | attaching. Only set a breakpoint at the entry point if not | |
7037 | attaching. | |
7038 | ||
311de423 PA |
7039 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
7040 | ||
7041 | * server.c (main): Don't report dll events on the initial | |
7042 | connection on attaches. | |
7043 | ||
6c2d16d2 PA |
7044 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
7045 | ||
7046 | * server.c (main): Relax numerical bases supported for the pid of | |
7047 | the --attach command line argument. | |
7048 | ||
5ca906e6 PA |
7049 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
7050 | ||
7051 | * win32-low.c (win32_attach): Call OpenProcess before | |
7052 | DebugActiveProcess, not after. Add last error output to error | |
7053 | call. | |
7054 | ||
9c6c8194 PA |
7055 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
7056 | ||
7057 | * win32-low.c (win32_get_thread_context) | |
7058 | (win32_set_thread_context): New functions. | |
7059 | (thread_rec): Use win32_get_thread_context. | |
7060 | (continue_one_thread, win32_resume): Use win32_set_thread_context. | |
7061 | * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context' | |
7062 | field. | |
7063 | ||
4d5d1aaa PA |
7064 | 2007-12-03 Leo Zayas |
7065 | Pedro Alves <pedro_alves@portugalmail.pt> | |
7066 | ||
7067 | * win32-low.c (soft_interrupt_requested, faked_breakpoint): New | |
7068 | global variables. | |
7069 | (child_add_thread): Minor cleanup. | |
7070 | (child_continue): Resume artificially suspended threads before | |
7071 | calling ContinueDebugEvent. | |
7072 | (suspend_one_thread): New. | |
7073 | (fake_breakpoint_event): New. | |
7074 | (get_child_debug_event): Change return type to int. Check here if | |
7075 | gdb sent an interrupt request. If a soft interrupt was requested, | |
7076 | fake a breakpoint event. Return 0 if there is no event to handle, | |
7077 | and 1 otherwise. | |
7078 | (win32_wait): Don't check here if gdb sent an interrupt request. | |
7079 | Ensure there is a valid event to handle. | |
7080 | (win32_request_interrupt): Add soft interruption method as last | |
7081 | resort. | |
7082 | ||
c436e841 PA |
7083 | 2007-12-03 Leo Zayas |
7084 | Pedro Alves <pedro_alves@portugalmail.pt> | |
7085 | ||
7086 | * win32-low.h (win32_thread_info): Add descriptions to the | |
7087 | structure members. Replace `suspend_count' counter by a | |
7088 | `suspended' flag. | |
7089 | * win32-low.c (thread_rec): Update condition of when to get the | |
7090 | context from the inferior. Rely on ContextFlags being set if it | |
7091 | has already been retrieved. Only suspend the inferior thread if | |
7092 | we haven't already. Warn if that fails. | |
7093 | (continue_one_thread): s/suspend_count/suspended/. Only call | |
7094 | ResumeThread once. Warn if that fails. | |
7095 | ||
e7b5fa67 PA |
7096 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
7097 | ||
7098 | * win32-low.c (win32_wait): Don't read from the inferior when it | |
7099 | has already exited. | |
7100 | ||
a385171d PA |
7101 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
7102 | ||
7103 | * Makefile.in (win32_low_h): New variable. | |
7104 | (win32-low.o): Add dependency on $(win32_low_h). | |
7105 | (win32-arm-low.o, win32-i386-low.o): New rules. | |
7106 | ||
f80c84b3 DJ |
7107 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
7108 | ||
7109 | * hostio.c: Correct copyright year. | |
7110 | ||
a6b151f1 DJ |
7111 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
7112 | ||
7113 | * Makefile.in (OBS): Add hostio.o. | |
7114 | (hostio.o): New rule. | |
7115 | * server.h (handle_vFile): Declare. | |
7116 | * hostio.c: New file. | |
7117 | * server.c (handle_v_requests): Take packet_len and new_packet_len | |
7118 | for binary packets. Call handle_vFile. | |
7119 | (main): Update call to handle_v_requests. | |
7120 | ||
f9387fc3 DJ |
7121 | 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com> |
7122 | ||
7123 | * linux-low.c: Include <sched.h>. | |
7124 | ||
51c2684e DJ |
7125 | 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com> |
7126 | ||
7127 | * linux-low.c (linux_tracefork_grandchild): New. | |
7128 | (linux_tracefork_child): Use clone. | |
7129 | (linux_test_for_tracefork): Use clone; allocate and free a stack. | |
7130 | ||
75f83163 JB |
7131 | 2007-10-31 Joel Brobecker <brobecker@adacore.com> |
7132 | ||
7133 | * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh. | |
7134 | ||
da5898ce DJ |
7135 | 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com> |
7136 | ||
7137 | * linux-low.c (handle_extended_wait): Handle unexpected signals. | |
7138 | ||
24a09b5f DJ |
7139 | 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com> |
7140 | ||
7141 | * inferiors.c (change_inferior_id): Delete. | |
7142 | (add_pid_to_list, pull_pid_from_list): New. | |
7143 | * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG) | |
7144 | (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK) | |
7145 | (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE) | |
7146 | (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK) | |
7147 | (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE) | |
7148 | (PTRACE_EVENT_EXIT, __WALL): Provide default definitions. | |
7149 | (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables. | |
7150 | (using_threads): Always set to 1. | |
7151 | (handle_extended_wait): New. | |
7152 | (add_process): Do not set TID. | |
7153 | (linux_create_inferior): Set must_set_ptrace_flags. | |
7154 | (linux_attach_lwp): Remove TID argument. Do not check using_threads. | |
7155 | Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers. | |
7156 | (linux_thread_alive): Rename TID argument to LWPID. | |
7157 | (linux_wait_for_process): Handle unknown processes. Do not use TID. | |
7158 | (linux_wait_for_event): Do not use TID or check using_threads. Update | |
7159 | call to dead_thread_notify. Call handle_extended_wait. | |
7160 | (linux_create_inferior): Use PTRACE_SETOPTIONS. | |
7161 | (send_sigstop): Delete sigstop_sent. | |
7162 | (wait_for_sigstop): Avoid TID. | |
7163 | (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid) | |
7164 | (linux_test_for_tracefork): New. | |
7165 | (linux_lookup_signals): Use thread_db_active and | |
7166 | linux_supports_tracefork_flag. | |
7167 | (initialize_low): Use thread_db_active and linux_test_for_tracefork. | |
7168 | * linux-low.h (get_process_thread): Avoid TID. | |
7169 | (struct process_ifo): Move thread_known and tid to the end. Remove | |
7170 | sigstop_sent. | |
7171 | (linux_attach_lwp, thread_db_init): Update prototypes. | |
7172 | * server.h (change_inferior_id): Delete prototype. | |
7173 | (add_pid_to_list, pull_pid_from_list): New prototypes. | |
7174 | * thread-db.c (thread_db_use_events): New. | |
7175 | (find_first_thread): Rename to... | |
7176 | (find_one_thread): ...this. Update callers and messages. Do not | |
7177 | call fatal. Check thread_db_use_events. Do not call | |
7178 | change_inferior_id or new_thread_notify. | |
7179 | (maybe_attach_thread): Update. Do not call new_thread_notify. | |
7180 | (thread_db_init): Set thread_db_use_events. Check use_events. | |
7181 | * utils.c (fatal, warning): Correct message prefix. | |
7182 | ||
30ed0a8f DJ |
7183 | 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com> |
7184 | ||
7185 | * Makefile.in (clean): Remove new files. | |
7186 | (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c) | |
7187 | (powerpc-64.o, powerpc-64.c): New rules. | |
7188 | * configure.srv: Use alternate register sets for powerpc64-*-linux* | |
7189 | with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux* | |
7190 | with SPE. | |
7191 | * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for | |
7192 | SPE targets. | |
7193 | (ppc_cannot_store_register): Do not check for FPSCR for SPE targets. | |
7194 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset) | |
7195 | (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS) | |
7196 | (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New. | |
7197 | (target_regsets): Add AltiVec and SPE register sets. | |
7198 | * configure.ac: Check for AltiVec and SPE. | |
7199 | * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS) | |
7200 | (ppc_fill_vrregset, ppc_store_vrregset): New. | |
7201 | (target_regsets): Add AltiVec register set. | |
7202 | * configure: Regenerated. | |
7203 | ||
fd462a61 DJ |
7204 | 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com> |
7205 | ||
7206 | * linux-low.c (O_LARGEFILE): Define. | |
7207 | (linux_read_memory): Use /proc/PID/mem. | |
7208 | * configure.ac: Use AC_GNU_SOURCE. Check for pread64. | |
7209 | * configure, config.in: Regenerated. | |
7210 | ||
69f223ed DJ |
7211 | 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
7212 | ||
7213 | * linux-low.c (linux_wait_for_event): Do not pass signals while | |
7214 | single-stepping. | |
7215 | ||
aec18585 PA |
7216 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
7217 | ||
7218 | * win32-low.c (create_process): New. | |
7219 | (win32_create_inferior): Use create_process instead of | |
7220 | CreateProcess. If create_process failed retry appending an ".exe" | |
7221 | suffix. Store the GetLastError result immediatelly after | |
7222 | create_process calls and use it on the call to error. | |
7223 | ||
34d86ddd PA |
7224 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
7225 | ||
7226 | * win32-low.c (handle_load_dll): Don't use toolhelp when waiting. | |
7227 | ||
5a0e3bd0 JB |
7228 | 2007-08-23 Joel Brobecker <brobecker@adacore.com> |
7229 | ||
7230 | * configure.ac: Switch license to GPLv3. | |
7231 | ||
f88c79e6 MS |
7232 | 2007-08-01 Michael Snyder <msnyder@access-company.com> |
7233 | ||
7234 | * remote-utils.c (putpkt_binary): Memory leak, free buf2. | |
7235 | ||
6b3d9b83 PA |
7236 | 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt> |
7237 | ||
7238 | * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New | |
7239 | typedef. | |
7240 | (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var. | |
7241 | (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get | |
7242 | CloseToolhelp32Snapshot. | |
7243 | (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with | |
7244 | CloseToolhelp32Snapshot. | |
7245 | ||
c588c53c MS |
7246 | 2007-07-27 Michael Snyder <michael.snyder@access-company.com> |
7247 | ||
7248 | * server.c (main): Check for inferior exit before main loop. | |
7249 | ||
aa0403d9 PA |
7250 | 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt> |
7251 | ||
7252 | * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc | |
7253 | instead of on tmp_desc. | |
7254 | ||
255e7678 DJ |
7255 | 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt> |
7256 | Daniel Jacobowitz <dan@codesourcery.com> | |
7257 | ||
7258 | * inferiors.c (all_dlls, dlls_changed, get_dll): New. | |
7259 | (add_thread): Minor cleanups. | |
7260 | (clear_inferiors): Move lower in the file. Clear the DLL | |
7261 | list. | |
7262 | (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New. | |
7263 | * remote-utils.c (prepare_resume_reply): Check dlls_changed. | |
7264 | (xml_escape_text): New. | |
7265 | * server.c (handle_query): Handle qXfer:libraries:read. Report it | |
7266 | for qSupported. | |
7267 | (handle_v_cont): Report errors. | |
7268 | (gdbserver_version): Update. | |
7269 | (main): Correct size of own_buf. Do not report initial DLL events. | |
7270 | * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll) | |
7271 | (unloaded_dll, xml_escape_text): New. | |
7272 | * win32-low.c (enum target_waitkind): Update comments. | |
7273 | (win32_add_one_solib, get_image_name, winapi_EnumProcessModules) | |
7274 | (winapi_GetModuleInformation, winapi_GetModuleFileNameExA) | |
7275 | (win32_EnumProcessModules, win32_GetModuleInformation) | |
7276 | (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name) | |
7277 | (winapi_CreateToolhelp32Snapshot, winapi_Module32First) | |
7278 | (winapi_Module32Next, win32_CreateToolhelp32Snapshot) | |
7279 | (win32_Module32First, win32_Module32Next, load_toolhelp) | |
7280 | (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New. | |
7281 | (get_child_debug_event): Handle DLL events. | |
7282 | (win32_wait): Likewise. | |
7283 | ||
0d37add9 DJ |
7284 | 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
7285 | ||
7286 | * configure.srv: Set srv_linux_regsets for sh*-*-linux*. | |
7287 | * linux-sh-low.c (sh_fill_gregset, target_regsets): New. | |
7288 | ||
45e2715e PA |
7289 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
7290 | ||
7291 | * win32-low.c (handle_output_debug_string): Ignore event if not | |
7292 | waiting. | |
7293 | ||
c5674cf1 PA |
7294 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
7295 | ||
7296 | * win32-arm-low.c (arm_wince_breakpoint): Fix typo. | |
7297 | ||
2bbe3cc1 DJ |
7298 | 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com> |
7299 | ||
7300 | * remote-utils.c (look_up_one_symbol): Handle 'm' packets. | |
7301 | ||
ae13219e DJ |
7302 | 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com> |
7303 | ||
7304 | * inferiors.c (change_inferior_id): Add comment. | |
7305 | * linux-low.c (check_removed_breakpoint): Add an early | |
7306 | prototype. Improve debug output. | |
7307 | (linux_attach): Doc update. | |
7308 | (linux_detach_one_process, linux_detach): Clean up before releasing | |
7309 | each process. | |
7310 | (send_sigstop, wait_for_sigstop): Improve comments and debug output. | |
7311 | * linux-low.h (struct process_info): Doc improvement. | |
7312 | * mem-break.c (delete_all_breakpoints): New. | |
7313 | * mem-break.h (delete_all_breakpoints): New prototype. | |
7314 | * thread-db.c (find_first_thread): New. | |
7315 | (thread_db_create_event): Call it instead of | |
7316 | thread_db_find_new_threads. Clean up unused variables. | |
7317 | (maybe_attach_thread): Remove first thread handling. | |
7318 | (thread_db_find_new_threads): Use find_first_thread. | |
7319 | (thread_db_get_tls_address): Likewise. | |
7320 | ||
4105de34 DJ |
7321 | 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com> |
7322 | ||
7323 | * thread-db.c (thread_db_find_new_threads): Add prototype. | |
7324 | (thread_db_create_event): Check for the main thread before adding | |
7325 | a new thread. | |
7326 | (maybe_attach_thread): Only enable event reporting if TID == 0. | |
7327 | (thread_db_get_tls_address): Check for new threads. | |
7328 | ||
2b876972 DJ |
7329 | 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com> |
7330 | ||
7331 | * linux-low.c (linux_create_inferior): Try execv before execvp. | |
7332 | * spu-low.c (spu_create_inferior): Likewise. | |
7333 | ||
7a245884 DJ |
7334 | 2007-06-13 Mike Frysinger <vapier@gentoo.org> |
7335 | ||
7336 | * linux-low.c (linux_create_inferior): Change execv to execvp. | |
7337 | * spu-low.c (spu_create_inferior): Likewies. | |
7338 | ||
117ce543 DJ |
7339 | 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com> |
7340 | ||
7341 | * Makefile.in (clean): Clean new files instead of deleted ones. | |
7342 | (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete. | |
7343 | (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New | |
7344 | rules. | |
7345 | * configure.srv: Specify XML files and new regformats for MIPS and | |
7346 | MIPS64 GNU/Linux. | |
7347 | * linux-mips-low.c (mips_num_regs): Set to only used registers. | |
7348 | (mips_regmap): Do not fetch $0. Remove unused registers. Add | |
7349 | an entry for the restart register. | |
7350 | (mips_cannot_fetch_register, mips_cannot_store_register) | |
7351 | (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update | |
7352 | register names to match the XML descriptions. | |
7353 | (mips_fill_gregset, mips_store_gregset): Likewise. Handle the | |
7354 | restart register instead of $0. | |
7355 | ||
0e7f50da UW |
7356 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
7357 | Markus Deuling <deuling@de.ibm.com> | |
7358 | ||
7359 | * remote-utils.c (decode_xfer_write): New function. | |
7360 | * server.h (decode_xfer_write): Add prototype. | |
7361 | * server.c (handle_query): Add PACKET_LEN argument. Support | |
7362 | qXfer:spu:read and qXfer:spu:write packets. | |
7363 | (main): Pass packet_len to handle_query. | |
7364 | * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu. | |
7365 | * target.h (target_ops): Add qxfer_spu. | |
7366 | ||
374c1d38 UW |
7367 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
7368 | ||
7369 | * spu-low.c (spu_proc_xfer_spu): Do not return failure when | |
7370 | accessing non-seekable spufs files. | |
7371 | ||
bb63802a UW |
7372 | 2007-05-16 Markus Deuling <deuling@de.ibm.com> |
7373 | ||
889bf7c5 | 7374 | * server.c (handle_query): Add reply for qC packet. |
bb63802a | 7375 | |
7390519e PA |
7376 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7377 | Leo Zayas <lerele@champenstudios@com> | |
7378 | ||
7379 | * server.h (check_remote_input_interrupt_request): New function. | |
7380 | * remote_utils.c (INVALID_DESCRIPTOR): New define. | |
7381 | (remote_desc): Initialize with INVALID_DESCRIPTOR. | |
7382 | (input_interrupt): Expose on USE_WIN32API too. Fix whitespace. | |
7383 | (check_remote_input_interrupt_request): New function. | |
7384 | * server.h (check_remote_input_interrupt_request): Declare. | |
3ecf0694 | 7385 | * win32-low.c (winapi_DebugBreakProcess, |
7390519e PA |
7386 | winapi_GenerateConsoleCtrlEvent): New typedefs. |
7387 | (get_child_debug_event): Lower Win32 debug event polling from 1 sec | |
7388 | to 250 ms. | |
7389 | (win32_wait): Check for remote interrupt request | |
7390 | with check_remote_input_interrupt_request. | |
7391 | (win32_request_interrupt): New function. | |
7392 | (win32_target_op): Set request_interrupt to win32_request_interrupt. | |
7393 | ||
34b34921 PA |
7394 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7395 | ||
7396 | * win32-low.c (debug_registers_changed, | |
7397 | debug_registers_used, CONTEXT_EXTENDED_REGISTERS, | |
7398 | CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS, | |
7399 | CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete. | |
7400 | (thread_rec): Get context using the low target. | |
7401 | (child_add_thread): Call thread_added on the low target, | |
7402 | which does the same thing. | |
7403 | (regptr): Delete. | |
7404 | (do_initial_child_stuff): Remove debug registers references. | |
7405 | Set context using the low target. Resume threads after | |
7406 | setting the contexts. | |
7407 | (child_continue): Remove dead variable. Remove debug | |
7408 | registers references. | |
7409 | (child_fetch_inferior_registers): Go through the low target. | |
7410 | (do_child_store_inferior_registers): Remove. | |
7411 | (child_store_inferior_registers): Go through the low target. | |
7412 | (win32_resume): Remove debug registers references. | |
7413 | Set context using the low target. | |
7414 | (handle_exception): Change return type to void. Don't record | |
7415 | context here. Set status to TARGET_WAITKIND_SPURIOUS on a | |
7416 | first chance exception. | |
889bf7c5 | 7417 | (get_child_debug_event): Change return type to void. Remove |
34b34921 PA |
7418 | goto loop. Always return after waiting for debug event. |
7419 | (win32_wait): Convert to switch statement. Handle spurious | |
7420 | events. | |
7421 | ||
7422 | * win32-i386-low.c (debug_registers_changed, | |
7423 | debug_registers_used): New. | |
7424 | (initial_stuff): Rename to ... | |
7425 | (i386_initial_stuff): ... this. Clear debug registers | |
7426 | state variables. | |
7427 | (store_debug_registers): Delete. | |
7428 | (i386_get_thread_context): New. | |
7429 | (load_debug_registers): Delete. | |
7430 | (i386_set_thread_context): New. | |
7431 | (i386_thread_added): New. | |
7432 | (single_step): Rename to ... | |
7433 | (i386_single_step): ... this. | |
7434 | (do_fetch_inferior_registers): Rename to ... | |
7435 | (i386_fetch_inferior_register): ... this. | |
7436 | (i386_store_inferior_register): New. | |
7437 | (the_low_target): Adapt to new interface. | |
7438 | ||
7439 | * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define. | |
7440 | (arm_get_thread_context): New. | |
7441 | (arm_set_thread_context): New. | |
7442 | (regptr): New. | |
7443 | (do_fetch_inferior_registers): Rename to ... | |
7444 | (arm_fetch_inferior_register): ... this. | |
7445 | (arm_store_inferior_register): New. | |
7446 | (arm_wince_breakpoint): Reimplement as unsigned long. | |
7447 | (arm_wince_breakpoint_len): Define. | |
7448 | (the_low_target): Adapt to new interface. | |
7449 | ||
7450 | * win32-low.h (target_ops): Remove regmap, store_debug_registers and | |
7451 | load_debug_registers. Add get_thread_context, set_thread_context, | |
7452 | thread_added and store_inferior_register. Rename | |
7453 | fetch_inferior_registers to fetch_inferior_register. | |
7454 | (regptr): Remove declaration. | |
7455 | ||
dd6953e1 PA |
7456 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7457 | ||
7458 | * linux-low.c (linux_detach): Change return type to int. Return 0. | |
7459 | * spu-low.c (spu_detach): Likewise. | |
7460 | ||
444d6139 PA |
7461 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7462 | ||
7463 | * target.h (target_ops): Change return type of detach to int. | |
7464 | Add join. | |
7465 | (join_inferior): New. | |
7466 | * server.c (main): Don't skip detach support on mingw32. | |
7467 | If the inferior doesn't support detaching return error. | |
7468 | Call join_inferior instead of using waitpid. | |
7469 | * linux-low.c (linux_join): New. | |
7470 | (linux_target_op): Add linux_join. | |
7471 | * spu-low.c (spu_join): New. | |
7472 | (spu_target_ops): Add spu_join. | |
7473 | * win32-low.c (win32_detach): Adapt to new interface. | |
7474 | Reopen current_process_handle before detaching. Issue a child | |
7475 | resume before detaching. | |
7476 | (win32_join): New. | |
7477 | (win32_target_op): Add win32_join. | |
7478 | ||
1d5315fe PA |
7479 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7480 | ||
7481 | * win32-low.c (win32-attach): Fix return value. | |
7482 | * target.h (target_ops): Describe ATTACH return values. | |
7483 | ||
bf914831 PA |
7484 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7485 | ||
7486 | * win32-low.c (GETPROCADDRESS): Define. | |
7487 | (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer. | |
7488 | (winapi_DebugSetProcessKillOnExit): Likewise. | |
7489 | (win32_create_inferior): Force usage of ansi CreateProcessA. | |
7490 | (win32_attach): Use GETPROCADDRESS. | |
7491 | (win32_detach): Likewise. | |
7492 | ||
f72f3e60 PA |
7493 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7494 | ||
7495 | * win32-low.c (win32_wait): Don't use WSTOPSIG. | |
7496 | ||
ed50f18f PA |
7497 | 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt> |
7498 | ||
7499 | * win32-low.c: Commit leftover changes from 2007-03-29. | |
7500 | ||
0c2ead7e DJ |
7501 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
7502 | ||
7503 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit | |
7504 | fields short instead of int. Add explicit padding. | |
7505 | (i387_cache_to_fsave): Remove unnecessary casts. | |
7506 | (i387_fsave_to_cache): Doc fix. | |
7507 | (i387_cache_to_fxsave): Remove unnecessary casts and masking. | |
7508 | ||
73725ff3 DJ |
7509 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
7510 | ||
7511 | * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use. | |
7512 | (i387_fxsave_to_cache): Check fp->ftag while building ftag value. | |
7513 | ||
d99f33d8 PA |
7514 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
7515 | ||
7516 | * configure.srv (arm*-*-mingw32ce*): Move near the other | |
7517 | arm targets. | |
7518 | ||
68070c10 PA |
7519 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
7520 | ||
2482afc6 | 7521 | * configure.ac: Add errno checking. |
68070c10 PA |
7522 | (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h, |
7523 | sys/file.h and malloc.h. | |
7524 | (AC_CHECK_DECLS): Add perror. | |
7525 | (srv_mingwce): Handle. | |
2482afc6 | 7526 | * configure.srv (i[34567]86-*-cygwin*): Add |
68070c10 PA |
7527 | win32-i386-low.o to srv_tgtobj. |
7528 | (i[34567]86-*-mingw*): Likewise. | |
7529 | (arm*-*-mingw32ce*): Add case. | |
7530 | * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, | |
7531 | HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check. | |
7532 | [__MINGW32CE__] (strerror): New function. | |
7533 | [__MINGW32CE__] (errno): Define to GetLastError. | |
7534 | [__MINGW32CE__] (COUNTOF): New macro. | |
7535 | (remote_open): Remove extra close call. | |
7536 | * mem-break.c (delete_breakpoint_at): New function. | |
7537 | * mem-break.h (delete_breakpoint_at): Declare. | |
7538 | * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, | |
7539 | HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check. | |
7540 | [USE_WIN32API] (read, write): Add char* casts. | |
7541 | * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check. | |
7542 | * server.h: Include wincecompat.h on Windows CE. | |
7543 | [HAVE_ERRNO_H]: Check. | |
7544 | (perror): Declare if not declared. | |
7545 | * utils.c: Add stdlib.h, errno.h and malloc.h includes. | |
7546 | (perror_with_name): Remove errno declaration. | |
7547 | * wincecompat.h: New. | |
7548 | * wincecompat.c: New. | |
7549 | * win32-low.h: New. | |
7550 | * win32-arm-low.c: New. | |
7551 | * win32-i386-low.c: New. | |
7552 | (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h. | |
7553 | (OUTMSG2): Make it safe. | |
7554 | (_T): New macro. | |
7555 | (COUNTOF): New macro. | |
7556 | (NUM_REGS): Get it from the low target. | |
7557 | (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT, | |
7558 | CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0. | |
7559 | (thread_rec): Let low target handle debug registers. | |
7560 | (child_add_thread): Likewise. | |
7561 | (child_init_thread_list): Likewise. | |
7562 | (continue_one_thread): Likewise. | |
7563 | (regptr): New. | |
7564 | (do_child_fetch_inferior_registers): Move to ... | |
7565 | * win32-i386-low.c: ... here, and rename to ... | |
7566 | (do_fetch_inferior_registers): ... this. | |
889bf7c5 | 7567 | * win32-low.c (child_fetch_inferior_registers): |
68070c10 PA |
7568 | Go through the low target. |
7569 | (do_child_store_inferior_registers): Use regptr. | |
7570 | (strwinerror): New function. | |
7571 | (win32_create_inferior): Handle Windows CE. | |
7572 | Use strwinerror instead of strerror on Windows error | |
7573 | codes. Add program to the error output. | |
7574 | Don't close the main thread handle on Windows CE. | |
7575 | (win32_attach): Use coredll.dll on Windows CE. | |
7576 | (win32_kill): Close current process and current | |
7577 | thread handles. | |
7578 | (win32_detach): Use coredll.dll on Windows CE. | |
7579 | (win32_resume): Let low target handle debug registers, and | |
7580 | step request. | |
7581 | (handle_exception): Add/Remove initial breakpoint. Avoid | |
7582 | non-existant WSTOPSIG on Windows CE. | |
7583 | (win32_read_inferior_memory): Cast to remove warning. | |
7584 | (win32_arch_string): Go through the low target. | |
7585 | (initialize_low): Call set_breakpoint_data with the low | |
7586 | target's breakpoint. | |
7587 | * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM, | |
7588 | FOP_REGNUM, mappings): Move to ... | |
7589 | * win32-i386-low.c: ... here. | |
7590 | * win32-low.c (win32_thread_info): Move to ... | |
7591 | * win32-low.h: ... here. | |
7592 | * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c, | |
7593 | win32-arm-low.c and wincecompat.c. | |
7594 | (all:): Add $EXEEXT. | |
7595 | (install-only:): Likewise. | |
7596 | (gdbserver:): Likewise. | |
7597 | (gdbreplay:): Likewise. | |
7598 | * config.in: Regenerate. | |
7599 | * configure: Regenerate. | |
7600 | ||
41093d81 PA |
7601 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
7602 | ||
7603 | * win32-low.c: Rename typedef thread_info to | |
7604 | win32_thread_info throughout. | |
7605 | ||
544afa54 PA |
7606 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
7607 | ||
7608 | * win32-i386-low.c: Rename to ... | |
7609 | * win32-low.c: ... this. | |
7610 | * configure.srv: Replace win32-i386-low.o with win32-low.o. | |
7611 | * Makefile.in: Likewise. | |
7612 | ||
bce7165d PA |
7613 | 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt> |
7614 | ||
7615 | * remote-utils.c (monitor_output): Constify msg parameter. | |
7616 | * server.h (monitor_output): Likewise. | |
7617 | * win32-i386-low.c (handle_output_debug_string): New. | |
7618 | (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using | |
7619 | handle_output_debug_string. | |
7620 | (get_child_debug_event): Likewise. | |
7621 | ||
506c7aa0 DJ |
7622 | 2007-03-27 Mat Hostetter <mat@lcs.mit.edu> |
7623 | ||
7624 | * server.c (main): Correct strtoul check. | |
7625 | ||
42c81e2a DJ |
7626 | 2007-03-27 Jon Ringle <jon@ringle.org> |
7627 | ||
7628 | * linux-low.c: Check __ARCH_HAS_MMU__ also. | |
7629 | ||
9453113a DJ |
7630 | 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com> |
7631 | ||
7632 | * Makefile.in: Add dummy "pdf" and "install-pdf" targets. | |
7633 | ||
64a69107 DJ |
7634 | 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com> |
7635 | ||
7636 | * terminal.h: Check HAVE_SGTTY_H. | |
7637 | ||
7638 | 2007-02-27 Mat Hostetter <mat@lcs.mit.edu> | |
6f8486da DJ |
7639 | |
7640 | * remote-utils.c (remote_open): Print out the assigned port number. | |
7641 | ||
c74d0ad8 DJ |
7642 | 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com> |
7643 | ||
7644 | * remote-utils.c (monitor_output): New function. | |
7645 | * server.c (debug_threads): Define here. | |
7646 | (monitor_show_help): New function. | |
7647 | (handle_query): Handle qRcmd. | |
7648 | (main): Do not handle 'd' packet. | |
7649 | * server.h (debug_threads, remote_debug, monitor_output): Declare. | |
7650 | * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions | |
7651 | of debug_threads. | |
7652 | ||
de7c3b4a PA |
7653 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
7654 | ||
7655 | * Makefile.in (EXEEXT): New. | |
7656 | (clean): Use $(EXEEXT). | |
7657 | ||
ef57601b PA |
7658 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
7659 | ||
7660 | * target.h (target_ops): Rename send_signal to request_interrupt, | |
7661 | and remove enum target_signal parameter. | |
7662 | * linux-low.c (linux_request_interrupt): Rename from | |
7663 | linux_send_signal, and always send SIGINT. | |
7664 | * spu-low.c (spu_request_interrupt): Rename from spu_send_signal, | |
7665 | and always send SIGINT. | |
7666 | * remote-utils.c (putpkt_binary): Call request_interrupt, instead | |
7667 | of send_signal. | |
7668 | (input_interrupt): Likewise. | |
7669 | ||
820f2bda PA |
7670 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
7671 | ||
7672 | * server.c (get_features_xml): Check if target implemented | |
7673 | arch_string. | |
7674 | * win32-i386-low.c (win32_arch_string): New. | |
7675 | (win32_target_ops): Add win32_arch_string as arch_string member. | |
7676 | ||
ab39bf24 UW |
7677 | 2007-02-22 Markus Deuling <deuling@de.ibm.com> |
7678 | ||
7679 | * spu-low.c (spu_arch_string): New. | |
7680 | (spu_target_ops): Add spu_arch_string. | |
7681 | ||
61ff6e04 DJ |
7682 | 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
7683 | ||
7684 | * remote-utils.c: Remove HAVE_TERMINAL_H check. | |
7685 | * configure.ac: Do not check for terminal.h. | |
7686 | * configure, config.in: Regenerated. | |
7687 | ||
fb1e4ffc DJ |
7688 | 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
7689 | ||
7690 | * Makefile.in (OBS): Add $(XML_BUILTIN). | |
7691 | (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New. | |
7692 | (clean): Update. | |
7693 | (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o) | |
7694 | (arm-with-iwmmxt.c): New. | |
7695 | * config.in, configure: Regenerate. | |
7696 | * configure.ac: Check for iWMMXt. Handle srv_xmltarget, | |
7697 | srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML. | |
7698 | * configure.srv: Mention srv_xmltarget and srv_xmlfiles. | |
7699 | (arm*-*-linux*): Add iWMMXt and regset support. | |
7700 | * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define. | |
7701 | (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset) | |
7702 | (arm_store_wmmxregset, target_regsets): New. | |
7703 | * server.c (get_features_xml): Take annex argument. Check builtin | |
7704 | XML documents. | |
7705 | (handle_query): Handle multiple annexes. | |
7706 | ||
0f48aa01 DJ |
7707 | 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
7708 | ||
7709 | * remote-utils.c [USE_WIN32API] (read, write): Define. | |
7710 | (putpkt_binary, input_interrupt, readchar, getpkt): Use read and | |
7711 | write. | |
7712 | ||
23181151 DJ |
7713 | 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com> |
7714 | ||
7715 | * linux-i386-low.c (the_low_target): Set arch_string. | |
7716 | * linux-x86-64-low.c (the_low_target): Likewise. | |
7717 | * linux-low.c (linux_arch_string): New. | |
7718 | (linux_target_ops): Add it. | |
7719 | * linux-low.h (struct linux_target_ops): Add arch_string. | |
7720 | * server.c (write_qxfer_response): Use const void * for DATA. | |
7721 | (get_features_xml): New. | |
7722 | (handle_query): Handle qXfer:features:read. Report it for qSupported. | |
7723 | * target.h (struct target_ops): Add arch_string method. | |
7724 | ||
9d606399 DJ |
7725 | 2007-01-03 Denis Pilat <denis.pilat@st.com> |
7726 | Daniel Jacobowitz <dan@codesourcery.com> | |
7727 | ||
7728 | * linux-low.c (linux_kill): Handle being called with no threads. | |
7729 | * win32-i386-low.c (win32_kill): Likewise. | |
7730 | (get_child_debug_event): Clear current_process_handle. | |
7731 | ||
7732 | 2006-12-30 Denis PILAT <denis.pilat@st.com> | |
8264bb58 DJ |
7733 | Daniel Jacobowitz <dan@codesourcery.com> |
7734 | ||
7735 | * remote-utils.c (remote_open): Check the type of specified | |
7736 | serial port devices before opening them. | |
7737 | * server.c (main): Kill the inferior if an error occurs during | |
7738 | the first remote_open. | |
7739 | ||
a5e13d24 DJ |
7740 | 2006-12-05 Markus Deuling <deuling@de.ibm.com> |
7741 | ||
7742 | * README: Update supported targets. | |
7743 | ||
186947f7 DJ |
7744 | 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com> |
7745 | ||
7746 | * Makefile.in (clean): Remove reg-mips64.c. | |
7747 | (reg-mips64.c, reg-mips64.o): New rules. | |
7748 | * configure.srv: Handle mips64. Include regset support for mips. | |
7749 | * linux-mips-low.c (union mips_register): New. | |
7750 | (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it. | |
7751 | (mips_breakpoint, mips_breakpoint_at): Use int. | |
7752 | (mips_collect_register, mips_supply_register) | |
7753 | (mips_collect_register_32bit, mips_supply_register_32bit) | |
7754 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) | |
7755 | (mips_store_fpregset, target_regsets): New. | |
7756 | * thread-db.c (thread_db_get_tls_address): Use uintptr_t. | |
7757 | ||
a13e2c95 UW |
7758 | 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
7759 | ||
7760 | * configure.srv: Add target "spu*-*-*". | |
7761 | * Makefile.in (clean): Remove reg-spu.c. | |
7762 | (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies. | |
7763 | * spu-low.c: New file. | |
7764 | ||
cb7283db DJ |
7765 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
7766 | ||
7767 | * configure.ac: Correct td_thr_tls_get_addr test. | |
7768 | * configure: Regenerated. | |
7769 | ||
89be2091 DJ |
7770 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
7771 | ||
7772 | * linux-low.c (linux_wait_for_event): Reformat. Use the | |
7773 | pass_signals array. | |
7774 | * remote-utils.c (decode_address_to_semicolon): New. | |
7775 | * server.c (pass_signals, handle_general_set): New. | |
7776 | (handle_query): Mention QPassSignals for qSupported. | |
7777 | (main): Call handle_general_set. | |
7778 | * server.h (pass_signals, decode_address_to_semicolon): New. | |
7779 | ||
000ef4f0 DJ |
7780 | 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com> |
7781 | ||
7782 | * server.c (handle_query): Correct error handling for read_auxv. | |
7783 | ||
b7149293 UW |
7784 | 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com> |
7785 | ||
7786 | * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets | |
7787 | and srv_linux_thread_db to yes. | |
7788 | * linux-s390-low.c (s390_fill_gregset): New function. | |
7789 | (target_regsets): Define data structure. | |
7790 | ||
dae5f5cf DJ |
7791 | 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com> |
7792 | ||
7793 | * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New. | |
7794 | * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR. | |
7795 | * config.in, configure: Regenerated. | |
7796 | * inferiors.c (gdb_id_to_thread): New function. | |
7797 | (gdb_id_to_thread_id): Use it. | |
7798 | * linux-low.c (linux_target_ops): Use thread_db_get_tls_address. | |
7799 | * linux-low.h (struct process_info): Add th member. | |
7800 | (thread_db_get_tls_address): New prototype. | |
7801 | * remote-utils.c (decode_address): Make non-static. | |
7802 | * server.c (handle_query): Handle qGetTLSAddr. | |
7803 | * server.h (gdb_id_to_thread, decode_address): New prototypes. | |
7804 | * target.h (struct target_ops): Add get_tls_address. | |
7805 | * thread-db.c (maybe_attach_thread): Save the thread handle. | |
7806 | (thread_db_get_tls_address): New. | |
7807 | ||
32ca6d61 DJ |
7808 | 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com> |
7809 | ||
7810 | * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define. | |
7811 | (linux_resume_one_process): Take a siginfo_t *. Update all | |
7812 | callers. Queue it if necessary. Use PTRACE_SETSIGINFO. | |
7813 | (struct pending_signals): Add a siginfo_t. | |
7814 | (linux_wait_for_process): Always set last_status. | |
7815 | (linux_wait_for_event): Use PTRACE_GETSIGINFO. | |
7816 | (linux_queue_one_thread): Use PTRACE_GETSIGINFO. | |
7817 | * linux-low.h (struct process_info): Add last_status. | |
7818 | ||
5ffff7c1 DJ |
7819 | 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com> |
7820 | ||
7821 | * remote-utils.c (try_rle): New function. | |
7822 | (putpkt_binary): Use it. | |
7823 | ||
8695c747 DJ |
7824 | 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com> |
7825 | ||
7826 | * Makefile.in (clean): Clean reg-x86-64-linux.c. | |
7827 | (reg-x86-64-linux.o, reg-x86-64-linux.c): New. | |
7828 | * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o. | |
7829 | * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX. | |
7830 | (x86_64_fill_gregset, x86_64_store_gregset): Skip floating | |
7831 | point registers. | |
7832 | ||
290fadea RS |
7833 | 2006-08-08 Richard Sandiford <richard@codesourcery.com> |
7834 | ||
7835 | * server.c (terminal_fd): New variable. | |
7836 | (old_foreground_pgrp): Likewise. | |
7837 | (restore_old_foreground_pgrp): New function. | |
7838 | (start_inferior): Record the terminal file descriptor in terminal_fd | |
7839 | and its original foreground group in old_foreground_pgrp. Register | |
7840 | restore_old_foreground_pgrp with atexit(). | |
7841 | ||
9f2e1e63 DJ |
7842 | 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com> |
7843 | ||
7844 | * server.c (handle_query): Correct qPart to qXfer. | |
7845 | ||
b80864fb DJ |
7846 | 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com> |
7847 | ||
7848 | * configure.ac: Check for more headers which are missing on | |
7849 | Windows. Automatically supply -lwsock32 and USE_WIN32API. | |
7850 | * configure.srv: Add Cygwin and mingw32. | |
7851 | * remote-utils.c: Don't include headers unconditionally which | |
7852 | are missing on mingw32. Include <winsock.h> for mingw32. | |
7853 | (remote_open): Adjust for mingw32 support. Flush | |
7854 | standard error after writing to it. | |
7855 | (remote_close, putpkt_binary, input_interrupt, block_async_io) | |
7856 | (unblock_async_io, enable_async_io, disable_async_io) | |
7857 | (readchar, getpkt): Update for Winsock support. | |
7858 | (prepare_resume_reply): Expect a protocol signal number. | |
7859 | * server.c: Disable <sys/wait.h> on mingw32. | |
7860 | (start_inferior): Adjust for mingw32 support. Flush | |
7861 | standard error after writing to it. | |
7862 | (attach_inferior): Likewise. Use protocol signal | |
7863 | numbers. | |
7864 | (main): Skip 'D' packet on mingw32. Use protocol signal numbers | |
7865 | and names. | |
7866 | * win32-i386-low.c: New file. | |
7867 | * Makefile.in (XM_CLIBS): Set. | |
7868 | (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS). | |
7869 | (win32-i386-low.o): New dependency rule. | |
7870 | * linux-low.c (linux_wait): Use target signal numbers. | |
7871 | * target.h (struct target_ops): Doc fix. | |
7872 | * server.h (target_signal_to_name): New prototype. | |
7873 | * gdbreplay.c: Don't include headers unconditionally which | |
7874 | are missing on mingw32. Include <winsock.h> for mingw32. | |
7875 | (remote_close, remote_open): Adjust for Winsock support. | |
7876 | * configure, config.in: Regenerated. | |
7877 | ||
0876f84a DJ |
7878 | 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
7879 | ||
7880 | * server.c (decode_xfer_read, write_qxfer_response): New. | |
7881 | (handle_query): Take a packet length argument. Handle | |
7882 | qXfer:auxv:read instead of qPart:auxv:read. Mention it in | |
7883 | the qSupported response. | |
7884 | (main): Update call to handle_query. | |
7885 | ||
01f9e8fa DJ |
7886 | 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com> |
7887 | ||
7888 | * remote-utils.c (remote_escape_output, remote_unescape_input): New. | |
7889 | (putpkt_binary): Renamed from putpkt and adjusted for binary | |
7890 | data. | |
7891 | (putpkt): New wrapper for putpkt_binary. | |
7892 | (readchar): Don't mask off the high bit. | |
7893 | (decode_X_packet): New function. | |
7894 | * server.c (main): Call putpkt_binary if a handler sets the packet | |
7895 | length. Save the length of the incoming packet. Handle 'X'. | |
7896 | * server.h (gdb_byte, remote_escape_output, decode_X_packet): New. | |
7897 | ||
be2a5f71 DJ |
7898 | 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com> |
7899 | ||
7900 | * server.c (handle_query): Handle qSupported. | |
7901 | ||
ea025f5f DJ |
7902 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
7903 | ||
7904 | * remote-utils.c (all_symbols_looked_up): New variable. | |
7905 | (look_up_one_symbol): Check it. | |
7906 | * server.h (look_up_one_symbol): New declaration. | |
7907 | * thread-db.c (thread_db_init): Set all_symbols_looked_up. | |
7908 | ||
9308fc88 DJ |
7909 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
7910 | ||
7911 | * Makefile.in (linux-arm-low.o): Update dependencies. | |
66f338c7 | 7912 | * linux-arm-low.c: Include "gdb_proc_service.h". |
9308fc88 DJ |
7913 | (PTRACE_GET_THREAD_AREA): Define. |
7914 | (ps_get_thread_area): New function. | |
7915 | ||
52fb6437 NS |
7916 | 2006-05-09 Nathan Sidwell <nathan@codesourcery.com> |
7917 | ||
7918 | * configure.srv (m68k*-*-uclinux*): New target. | |
7919 | * linux-low.c (linux_create_inferior): Use vfork on mmuless systems. | |
7920 | (linux_resume_one_process): Remove extraneous cast. | |
7921 | (linux_read_offsets): New. | |
7922 | (linux_target_op): Add linux_read_offsets on mmuless systems. | |
7923 | * server.c (handle_query): Add qOffsets logic. | |
7924 | * target.h (struct target_ops): Add read_offsets. | |
7925 | ||
21b0f40c DJ |
7926 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
7927 | ||
7928 | * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h". | |
7929 | (PTRACE_GET_THREAD_AREA): Define. | |
7930 | (ps_get_thread_area): New function. | |
7931 | * Makefile.in (linux-i386-low.o, linux-mips-low.o) | |
7932 | (linux-x86-64-low.o): Update. | |
7933 | ||
0050a760 DJ |
7934 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
7935 | ||
7936 | * configure.ac: Remove checks for prfpregset_t. | |
7937 | * gdb_proc_service.h: New file. | |
7938 | * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the | |
7939 | new "gdb_proc_service.h". | |
7940 | * proc-service.c: Likewise. | |
7941 | (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t. | |
7942 | (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument. | |
7943 | * Makefile.in (gdb_proc_service_h): Updated. | |
7944 | * configure, config.in: Regenerated. | |
7945 | ||
b92a518e DJ |
7946 | 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
7947 | ||
7948 | * remote-utils.c (prepare_resume_reply): Move declaration | |
7949 | of gdb_id_from_wait to the top of the block. | |
7950 | ||
545587ee DJ |
7951 | 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com> |
7952 | ||
7953 | * linux-low.c (regsets_store_inferior_registers): Read the regset | |
7954 | from the target before filling it. | |
7955 | ||
9db87ebd DJ |
7956 | 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
7957 | ||
7958 | * server.c (attach_inferior): Return SIGTRAP for a successful | |
7959 | attach. | |
7960 | ||
dd24457d DJ |
7961 | 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
7962 | ||
7963 | * Makefile.in (OBS): Add version.o. | |
7964 | (STAGESTUFF): Delete. | |
7965 | (version.o): Add dependencies. | |
7966 | (version.c): Replace rule. | |
7967 | (clean): Remove version.c. | |
7968 | * server.c (gdbserver_version): New. | |
7969 | (gdbserver_usage): Use printf. | |
7970 | (main): Handle --version and --help. | |
7971 | * server.h (version, host_name): Add declarations. | |
7972 | ||
6f0f660e EZ |
7973 | 2005-12-23 Eli Zaretskii <eliz@gnu.org> |
7974 | ||
889bf7c5 PA |
7975 | * linux-arm-low.c: |
7976 | * linux-arm-low.c: | |
7977 | * inferiors.c: | |
7978 | * i387-fp.h: | |
7979 | * i387-fp.c: | |
7980 | * gdbreplay.c: | |
7981 | * regcache.c: | |
7982 | * proc-service.c: | |
7983 | * mem-break.h: | |
7984 | * mem-break.c: | |
7985 | * linux-x86-64-low.c: | |
7986 | * linux-sh-low.c: | |
7987 | * linux-s390-low.c: | |
7988 | * linux-ppc64-low.c: | |
7989 | * linux-ppc-low.c: | |
7990 | * linux-mips-low.c: | |
7991 | * linux-m68k-low.c: | |
7992 | * linux-m32r-low.c: | |
7993 | * linux-low.h: | |
7994 | * linux-low.c: | |
7995 | * linux-ia64-low.c: | |
7996 | * linux-i386-low.c: | |
7997 | * linux-crisv32-low.c: | |
7998 | * thread-db.c: | |
7999 | * terminal.h: | |
8000 | * target.h: | |
8001 | * target.c: | |
8002 | * server.h: | |
8003 | * server.c: | |
8004 | * remote-utils.c: | |
8005 | * regcache.h: | |
8006 | * utils.c: | |
8007 | * Makefile.in: | |
8008 | * configure.ac: | |
6f0f660e EZ |
8009 | * gdbserver.1: Add (C) after Copyright. Update the FSF |
8010 | address. | |
8011 | ||
9d1fb177 DJ |
8012 | 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com> |
8013 | ||
8014 | * linux-arm-low.c (arm_eabi_breakpoint): New variable. | |
8015 | (arm_breakpoint_at): Recognize both breakpoints. | |
8016 | (the_low_target): Use the correct breakpoint instruction. | |
8017 | ||
011a70c2 DJ |
8018 | 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com> |
8019 | ||
8020 | * configure.srv (x86_64-*-linux*): Turn on thread_db support. | |
8021 | * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len) | |
8022 | (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New. | |
8023 | (the_low_target): Update. | |
8024 | ||
7fb85e41 AS |
8025 | 2005-10-25 Andreas Schwab <schwab@suse.de> |
8026 | ||
8027 | * server.c (main): Allocate mem_buf with PBUFSIZ bytes. | |
8028 | ||
8029 | * linux-ia64-low.c (ia64_regmap): Remove NAT registers. | |
8030 | (ia64_num_regs): Reduce to 462. | |
8031 | ||
3db0444b DJ |
8032 | 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com> |
8033 | ||
8034 | * acinclude.m4: Correct quoting. | |
8035 | * aclocal.m4: Regenerated. | |
8036 | ||
8037 | Suggested by SZOKOVACS Robert <szo@ies.hu>: | |
8038 | * thread-db.c (thread_db_err_str): Handle TD_VERSION. | |
8039 | (thread_db_init): Call thread_db_err_str. | |
8040 | * configure.ac: Check for TD_VERSION. | |
8041 | * config.in, configure: Regenerated. | |
8042 | ||
bee0189a DJ |
8043 | 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
8044 | ||
8045 | * server.h (error, fatal, warning): Add ATTR_FORMAT. | |
8046 | ||
e9d25b98 DJ |
8047 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
8048 | ||
8049 | * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS | |
8050 | is not available. Define HAVE_PTRACE_GETREGS if it is. | |
8051 | * config.in, configure: Regenerated. | |
8052 | * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64. | |
8053 | * linux-i386-low.c, linux-m68k-low.c: Update to use | |
8054 | HAVE_PTRACE_GETREGS. | |
8055 | * linux-low.c (regsets_fetch_inferior_registers) | |
8056 | (regsets_store_inferior_registers): Only return 0 if we processed | |
8057 | GENERAL_REGS. | |
8058 | * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New. | |
8059 | * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New. | |
8060 | ||
a06660f7 DJ |
8061 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
8062 | ||
8063 | * inferiors.c (struct thread_info): Add gdb_id. | |
8064 | (add_thread): Add gdb_id argument. | |
8065 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New. | |
8066 | * linux-low.c (linux_create_inferior, linux_attach_lwp): Update | |
8067 | calls to add_thread. | |
8068 | * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id. | |
8069 | * server.c (handle_query): Use thread_to_gdb_id. | |
8070 | (handle_v_cont, main): Use gdb_id_to_thread_id. | |
8071 | * server.h (add_thread): Update prototype. | |
8072 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New | |
8073 | prototypes. | |
8074 | ||
5a1f5858 DJ |
8075 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
8076 | ||
8077 | * linux-low.c (fetch_register, usr_store_inferior_registers): Handle | |
8078 | left-padded registers. | |
8079 | * linux-low.h (struct linux_target_ops): Add left_pad_xfer. | |
8080 | * linux-ppc64-low.c (the_low_target): Set left_pad_xfer. | |
8081 | ||
e122f1f5 SE |
8082 | 2005-07-01 Steve Ellcey <sje@cup.hp.com> |
8083 | ||
8084 | * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS. | |
8085 | * configure: Regenerate. | |
8086 | * config.in: Regenerate. | |
8087 | * server.h (NEED_DECLARATION_STRERROR): | |
8088 | Replace with !HAVE_DECL_STRERROR. | |
8089 | ||
d592fa2f DJ |
8090 | 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com> |
8091 | ||
8092 | * linux-low.c (linux_wait, linux_send_signal): Don't test | |
8093 | an unsigned long variable for > 0 if it could be MAX_ULONG. | |
8094 | * server.c (myresume): Likewise. | |
8095 | * target.c (set_desired_inferior): Likewise. | |
8096 | ||
ccbd4912 MK |
8097 | 2005-06-13 Mark Kettenis <kettenis@gnu.org> |
8098 | ||
8099 | * configure.ac: Simplify and improve check for socklen_t. | |
8100 | * configure, config.in: Regenerate. | |
8101 | ||
f450004a DJ |
8102 | 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com> |
8103 | ||
8104 | * acconfig.h: Remove. | |
8105 | * configure.ac: Add a test for socklen_t. Use three-argument | |
8106 | AC_DEFINE throughout. | |
8107 | * config.in: Regenerated using autoheader 2.59. | |
8108 | * configure: Regenerated. | |
8109 | ||
8110 | * gdbreplay.c (socklen_t): Provide a default. | |
8111 | (remote_open): Use socklen_t. | |
8112 | * remote-utils.c (socklen_t): Provide a default. | |
8113 | (remote_open): Use socklen_t. | |
8114 | (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use | |
8115 | unsigned char. | |
8116 | ||
8117 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned | |
8118 | char for buffers. | |
8119 | * linux-low.c (linux_read_memory, linux_write_memory) | |
8120 | (linux_read_auxv): Likewise. | |
8121 | * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read) | |
8122 | (check_mem_write): Likewise. | |
8123 | * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write): | |
8124 | Likewise. | |
8125 | * regcache.c (struct inferior_rgcache_data, registers_to_string) | |
8126 | (registers_from_string, register_data): Likewise. | |
8127 | * server.c (handle_query, main): Likewise. | |
8128 | * server.h (convert_ascii_to_int, convert_int_to_ascii) | |
8129 | (decode_M_packet): Likewise. | |
8130 | * target.c (read_inferior_memory, write_inferior_memory): Likewise. | |
8131 | * target.h (struct target_ops): Update read_memory, write_memory, | |
8132 | and read_auxv. | |
8133 | (read_inferior_memory, write_inferior_memory): Update. | |
8134 | * linux-low.h (struct linux_target_ops): Change type of breakpoint | |
8135 | to unsigned char *. | |
8136 | * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c, | |
8137 | linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c, | |
8138 | linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c, | |
8139 | linux-s390-low.c, linux-sh-low.c: Update for changes in | |
8140 | read_inferior_memory and the_low_target->breakpoint. | |
8141 | ||
eee84df1 DJ |
8142 | 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com> |
8143 | ||
8144 | * Makefile.in (SFILES): Add linux-ppc64-low.c. | |
8145 | (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets. | |
8146 | * configure.srv: Add powerpc64-*-linux*. | |
8147 | * linux-ppc64-low.c: New file. | |
8148 | ||
45b134e5 OF |
8149 | 2005-05-23 Orjan Friberg <orjanf@axis.com> |
8150 | ||
8151 | * linux-cris-low.c: New file with support for CRIS. | |
8152 | * linux-crisv32-low.c: Ditto for CRISv32. | |
8153 | * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c. | |
8154 | (clean): Add reg-cris.c and reg-crisv32.c. | |
889bf7c5 | 8155 | Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c, |
45b134e5 OF |
8156 | reg-crisv32.o, and reg-crisv32.c to make rules. |
8157 | * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of | |
8158 | recognized targets. | |
8159 | ||
48d93c75 UW |
8160 | 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com> |
8161 | ||
8162 | * linux-low.c (fetch_register): Ensure buffer size is a multiple | |
8163 | of sizeof (PTRACE_XFER_TYPE). | |
8164 | (usr_store_inferior_registers): Likewise. Zero out excess bytes. | |
8165 | ||
e013ee27 OF |
8166 | 2005-05-12 Orjan Friberg <orjanf@axis.com> |
8167 | ||
889bf7c5 | 8168 | * target.h (struct target_ops): Add insert_watchpoint, |
e013ee27 OF |
8169 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address function |
8170 | pointers for hardware watchpoint support. | |
8171 | * linux-low.h (struct linux_target_ops): Ditto. | |
8172 | * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint) | |
8173 | (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add | |
8174 | to linux_target_ops. | |
8175 | * remote-utils.c (prepare_resume_reply): Add watchpoint information to | |
8176 | reply packet. | |
8177 | * server.c (main): Recognize 'Z' and 'z' packets. | |
8178 | ||
b0ded00b UW |
8179 | 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com> |
8180 | ||
8181 | * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define. | |
8182 | (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions. | |
8183 | (the_low_target): Add new members. | |
8184 | ||
8643e2ad DJ |
8185 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
8186 | ||
8187 | * proc-service.c (ps_lgetregs): Search all_processes instead of | |
8188 | all_threads. | |
8189 | ||
fc620387 DJ |
8190 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
8191 | ||
8192 | * server.c (start_inferior): Change return type to int. | |
8193 | (attach_inferior): Change sigptr to int *. | |
8194 | (handle_v_cont, handle_v_requests): Change signal to int *. | |
8195 | (main): Change signal to int. | |
8196 | ||
8197 | 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com> | |
7cfbc4a0 KI |
8198 | |
8199 | * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o. | |
8200 | * configure.srv: Add m32r*-*-linux*. | |
8201 | * linux-m32r-low.c: New file. | |
8202 | ||
e0e76420 DJ |
8203 | 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com> |
8204 | ||
8205 | * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly. | |
8206 | ||
a1928bad DJ |
8207 | 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
8208 | ||
8209 | * inferiors.c (change_inferior_id, add_thread, find_inferior_id): | |
8210 | Take unsigned long arguments for PIDs. | |
8211 | * linux-low.c (add_process, linux_attach_lwp, linux_attach) | |
8212 | (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop) | |
8213 | (wait_for_sigstop, linux_resume_one_process) | |
8214 | (regsets_fetch_inferior_registers, linux_send_signal) | |
8215 | (linux_read_auxv): Likewise. Update the types of variables holding | |
8216 | PIDs. Update format string specifiers. | |
8217 | * linux-low.h (struct process_info, linux_attach_lwp): Likewise. | |
8218 | * remote-utils.c (prepare_resume_reply): Likewise. | |
8219 | * server.c (cont_thread, general_thread, step_thread) | |
8220 | (thread_from_wait, old_thread_from_wait, signal_pid): Change type to | |
8221 | unsigned long. | |
8222 | (handle_query): Update format specifiers. | |
8223 | (handle_v_cont, main): Use strtoul for thread IDs. | |
8224 | * server.h (struct inferior_list_entry): Use unsigned long for ID. | |
8225 | (add_thread, find_inferior_id, change_inferior_id, cont_thread) | |
8226 | (general_thread, step_thread, thread_from_wait) | |
8227 | (old_thread_from_wait): Update. | |
8228 | * target.h (struct thread_resume): Use unsigned long for THREAD. | |
8229 | (struct target_ops): Use unsigned long for arguments to attach and | |
8230 | thread_alive. | |
8231 | ||
dcdb98d2 DJ |
8232 | 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com> |
8233 | ||
8234 | * acinclude.m4: Include bfd/bfd.m4 directly. | |
8235 | * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis | |
8236 | <agriffis@toolchain.org>. | |
8237 | * aclocal.m4, configure: Regenerated. | |
8238 | ||
bec39cab AC |
8239 | 2005-01-07 Andrew Cagney <cagney@gnu.org> |
8240 | ||
8241 | * configure.ac: Rename configure.in, require autoconf 2.59. | |
8242 | * configure: Re-generate. | |
8243 | ||
434c4c77 DJ |
8244 | 2004-12-08 Daniel Jacobowitz <dan@debian.org> |
8245 | ||
8246 | * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset | |
8247 | LIBS when finished. | |
8248 | * aclocal.m4: Regenerated. | |
8249 | * configure: Regenerated. | |
8250 | ||
db1d3e1b AS |
8251 | 2004-11-21 Andreas Schwab <schwab@suse.de> |
8252 | ||
8253 | * linux-m68k-low.c (m68k_num_gregs): Define. | |
8254 | (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset) | |
8255 | (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New. | |
8256 | (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc) | |
8257 | (m68k_breakpoint_at): New. Add to the_low_target. | |
8258 | ||
8259 | * configure.srv (m68*-*-linux*): Set srv_linux_regsets and | |
8260 | srv_linux_thread_db to yes. | |
8261 | ||
43360365 JB |
8262 | 2004-10-20 Joel Brobecker <brobecker@gnat.com> |
8263 | ||
8264 | * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing. | |
8265 | (ARCH_SET_FS): Likewise. | |
8266 | (ARCH_GET_FS): Likewise. | |
8267 | (ARCH_GET_GS): Likewise. | |
8268 | ||
fd500816 DJ |
8269 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
8270 | ||
8271 | * linux-i386-low.c (ps_get_thread_area): New. | |
8272 | * linux-x86-64-low.c (ps_get_thread_area): New. | |
8273 | * linux-low.c: Include <sys/syscall.h>. | |
8274 | (linux_kill_one_process): Don't kill the first thread here. | |
8275 | (linux_kill): Kill the first thread here. | |
8276 | (kill_lwp): New function. | |
8277 | (send_sigstop, linux_send_signal): Use it. | |
8278 | * proc-service.c: Clean up #ifdefs. | |
8279 | (fpregset_info): Delete. | |
8280 | (ps_lgetregs): Update and enable implementation. | |
8281 | (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled | |
8282 | implementations. | |
8283 | * remote-utils.c (struct sym_cache, symbol_cache): New. | |
8284 | (input_interrupt): Print a clearer message. | |
8285 | (async_io_enabled): New variable. | |
8286 | (enable_async_io, disable_async_io): Use it. Update comments. | |
8287 | (look_up_one_symbol): Use the symbol cache. | |
8288 | * thread-db.c (thread_db_look_up_symbols): New function. | |
8289 | (thread_db_init): Update comments. Call thread_db_look_up_symbols. | |
8290 | ||
f6de3c42 DJ |
8291 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
8292 | ||
8293 | * configure.in: Test for -rdynamic. | |
8294 | * configure: Regenerated. | |
8295 | * Makefile (INTERNAL_LDFLAGS): New. | |
8296 | (gdbserver, gdbreplay): Use it. | |
8297 | ||
2c0fc042 AC |
8298 | 2004-09-02 Andrew Cagney <cagney@gnu.org> |
8299 | ||
8300 | * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE. | |
8301 | ||
075b3282 DJ |
8302 | 2004-03-23 Daniel Jacobowitz <drow@mvista.com> |
8303 | ||
8304 | * linux-low.c (linux_wait): Clear all_processes list also. | |
8305 | ||
fa6a77dc DJ |
8306 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
8307 | ||
8308 | * linux-low.c: Include <errno.h>. Remove extern declaration of | |
8309 | errno. | |
8310 | ||
6d782a97 DJ |
8311 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
8312 | ||
8313 | * gdbreplay.c, server.h, utils.c: Update copyright years. | |
8314 | ||
3a7fb99b DJ |
8315 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
8316 | ||
8317 | * server.c (main): Print child status or termination signal from | |
8318 | variable 'signal', not 'sig'. | |
8319 | ||
c3e735a6 DJ |
8320 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
8321 | ||
8322 | * linux-low.c (linux_read_memory): Change return type to | |
8323 | int. Check for and return error from ptrace(). | |
8324 | * target.c (read_inferior_memory): Change return type to int. Pass | |
8325 | back return status from the_target->read_memory(). | |
8326 | * target.h (struct target_ops): Adapt *read_memory() prototype. | |
8327 | Update comment. | |
8328 | (read_inferior_memory): Adapt prototype. | |
8329 | * server.c (main): Return an error packet if | |
8330 | read_inferior_memory() returns an error. | |
8331 | ||
a59d1c82 DJ |
8332 | 2004-03-04 Daniel Jacobowitz <drow@mvista.com> |
8333 | ||
8334 | * Makefile.in (distclean): Remove config.h, stamp-h, and config.log. | |
8335 | Unify with other clean targets. | |
8336 | ||
dc3f8883 DJ |
8337 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
8338 | ||
8339 | * server.c (handle_v_cont): Call set_desired_inferior. | |
8340 | ||
89a208da DJ |
8341 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
8342 | ||
8343 | * remote-utils.c (prepare_resume_reply): Always supply "thread:". | |
8344 | ||
62ea82f5 DJ |
8345 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
8346 | ||
8347 | * linux-low.c (linux_wait): Unblock async I/O. | |
8348 | (linux_resume): Block and enable async I/O. | |
8349 | * remote-utils.c (block_async_io, unblock_async_io): New functions. | |
8350 | * server.h (block_async_io, unblock_async_io): Add prototypes. | |
8351 | ||
6910d122 DJ |
8352 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
8353 | ||
8354 | * remote-utils.c (remote_open): Print a status notice after | |
8355 | opening a TCP port. | |
8356 | * server.c (attach_inferior): Print a status notice after | |
8357 | attaching. | |
8358 | ||
8359 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> | |
d677d77d DJ |
8360 | |
8361 | * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. | |
8362 | ||
c89dc5d4 DJ |
8363 | 2004-02-26 Daniel Jacobowitz <drow@mvista.com> |
8364 | ||
8365 | * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the | |
8366 | error packet. | |
8367 | * server.c, target.h: Update copyright years. | |
8368 | ||
4b8dad4a RM |
8369 | 2004-02-25 Roland McGrath <roland@redhat.com> |
8370 | ||
8371 | * target.h (struct target_ops): New member `read_auxv'. | |
8372 | * server.c (handle_query): Handle qPart:auxv:read: query using that. | |
8373 | * linux-low.c (linux_read_auxv): New function. | |
8374 | (linux_target_ops): Initialize `read_auxv' member to that. | |
8375 | ||
d7446758 JB |
8376 | 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
8377 | ||
8378 | Committed by Jim Blandy <jimb@redhat.com>. | |
8379 | ||
8380 | * linux-s390-low.c (s390_num_regs): Update. | |
4b8dad4a | 8381 | (s390_regmap): Remove control registers. Use __s390x__ predefine |
d7446758 JB |
8382 | instead of GPR_SIZE to distiguish s390 and s390x targets. |
8383 | ||
5544ad89 DJ |
8384 | 2004-01-31 Daniel Jacobowitz <drow@mvista.com> |
8385 | ||
8386 | * linux-low.c: Update copyright year. | |
8387 | (check_removed_breakpoint): Clear pending_is_breakpoint. | |
8388 | (linux_set_resume_request, linux_queue_one_thread) | |
8389 | (resume_status_pending_p): New functions. | |
8390 | (linux_continue_one_thread): Use process->resume. | |
8391 | (linux_resume): Only resume threads if there are no pending events. | |
8392 | * linux-low.h (struct process_info): Add resume request | |
8393 | pointer. | |
8394 | ||
2a68b70e DJ |
8395 | 2004-01-30 Daniel Jacobowitz <drow@mvista.com> |
8396 | ||
8397 | * regcache.c (new_register_cache): Clear the allocated register | |
8398 | buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>. | |
8399 | ||
64386c31 DJ |
8400 | 2003-10-13 Daniel Jacobowitz <drow@mvista.com> |
8401 | ||
8402 | * linux-low.c (linux_resume): Take a struct thread_resume * | |
8403 | argument. | |
8404 | (linux_wait): Update call. | |
8405 | (resume_ptr): New static variable. | |
8406 | (linux_continue_one_thread): Renamed from | |
8407 | linux_continue_one_process. Use resume_ptr. | |
8408 | (linux_resume): Use linux_continue_one_thread. | |
8409 | * server.c (handle_v_cont, handle_v_requests): New functions. | |
8410 | (myresume): New function. | |
8411 | (main): Handle 'v' case. | |
8412 | * target.h (struct thread_resume): New type. | |
8413 | (struct target_ops): Change argument of "resume" to struct | |
8414 | thread_resume *. | |
8415 | (myresume): Delete macro. | |
8416 | ||
c938e9b0 L |
8417 | 2003-08-08 H.J. Lu <hongjiu.lu@intel.com> |
8418 | ||
8419 | * Makefile.in (install-only): Create dest dir. Support DESTDIR. | |
8420 | (uninstall): Support DESTDIR. | |
8421 | ||
7f313d07 BC |
8422 | Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com> |
8423 | ||
8424 | * configure.srv: Add xscale*linux copy of arm*linux entry. | |
8425 | ||
3b2fc2ea DJ |
8426 | 2003-07-24 Daniel Jacobowitz <drow@mvista.com> |
8427 | ||
8428 | * linux-arm-low.c (arm_reinsert_addr): New function. | |
8429 | (the_low_target): Add arm_reinsert_addr. | |
8430 | ||
1c0a559e MK |
8431 | 2003-07-08 Mark Kettenis <kettenis@gnu.org> |
8432 | ||
8433 | * mem-break.c: Remove whitespace at end of file. | |
8434 | ||
43d5792c DJ |
8435 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
8436 | ||
8437 | * configure.in: Check whether we need to prototype strerror. | |
8438 | * server.h: Optionally prototype strerror. | |
8439 | * gdbreplay.c (perror_with_name): Use strerror. | |
8440 | * linux-low.c (linux_attach_lwp): Use strerror. | |
8441 | * utils.c (perror_with_name): Use strerror. | |
8442 | * config.in, configure: Regenerated. | |
8443 | ||
c8a86edf DJ |
8444 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
8445 | ||
8446 | * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by | |
8447 | SUGIOKA Toshinobu <sugioka@itonet.co.jp>. | |
8448 | ||
73d37363 DJ |
8449 | 2003-06-20 Daniel Jacobowitz <drow@mvista.com> |
8450 | ||
8451 | * Makefile.in (SFILES): Update. | |
8452 | * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c, | |
8453 | low-sun3.c: Remove files. | |
8454 | ||
6ad8ae5c DJ |
8455 | 2003-06-17 Daniel Jacobowitz <drow@mvista.com> |
8456 | ||
8457 | * linux-low.c: Move comment to linux_thread_alive where it belonged. | |
8458 | (linux_detach_one_process, linux_detach): New functions. | |
8459 | (linux_target_ops): Add linux_detach. | |
8460 | * server.c (main): Handle 'D' packet. | |
8461 | * target.h (struct target_ops): Add "detach" member. | |
8462 | (detach_inferior): Define. | |
8463 | ||
1581182a MK |
8464 | 2003-06-13 Mark Kettenis <kettenis@gnu.org> |
8465 | ||
8466 | From Kelley Cook <kelleycook@wideopenwest.com>: | |
8467 | * configure.srv: Accept i[34567]86 variants. | |
8468 | ||
e5379b03 DJ |
8469 | 2003-06-05 Daniel Jacobowitz <drow@mvista.com> |
8470 | ||
8471 | * linux-low.c (linux_wait_for_event): Correct comment typos. | |
8472 | (linux_resume_one_process): Call check_removed_breakpoint. | |
8473 | (linux_send_signal): New function. | |
8474 | (linux_target_ops): Add linux_send_signal. | |
8475 | * remote-utils.c (putpkt, input_interrupt): Use send_signal instead | |
8476 | of kill. | |
8477 | * target.h (struct target_ops): Add send_signal. | |
8478 | ||
2ff29de4 JB |
8479 | 2003-05-29 Jim Blandy <jimb@redhat.com> |
8480 | ||
8481 | * linux-low.c (usr_store_inferior_registers): Transfer buf in | |
8482 | PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise, | |
8483 | if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing | |
8484 | away part of the register's value. | |
8485 | ||
254787d4 DJ |
8486 | 2003-03-26 Daniel Jacobowitz <drow@mvista.com> |
8487 | ||
8488 | * linux-low.c (linux_create_inferior): Use __SIGRTMIN. | |
8489 | (linux_wait_for_event, linux_init_signals): Likewise. | |
8490 | ||
94e10508 DJ |
8491 | 2003-03-17 Daniel Jacobowitz <drow@mvista.com> |
8492 | ||
8493 | * configure.in: Check for stdlib.h. | |
8494 | * configure: Regenerated. | |
8495 | * config.in: Regenerated. | |
8496 | ||
4c0711e0 DJ |
8497 | 2003-01-04 Andreas Schwab <schwab@suse.de> |
8498 | ||
8499 | * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31. | |
8500 | ||
ef66e766 AC |
8501 | 2003-01-02 Andrew Cagney <ac131313@redhat.com> |
8502 | ||
8503 | * Makefile.in: Remove obsolete code. | |
8504 | ||
a1358604 DJ |
8505 | 2002-11-20 Daniel Jacobowitz <drow@mvista.com> |
8506 | ||
8507 | * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of | |
8508 | defined(PT_FPR0_HI). | |
8509 | ||
23ce3b1c DJ |
8510 | 2002-11-17 Stuart Hughes <seh@zee2.com> |
8511 | ||
8512 | * linux-arm-low.c (arm_num_regs): Increase. | |
8513 | (arm_regmap): Include status register. | |
8514 | ||
8515 | 2002-11-17 Daniel Jacobowitz <drow@mvista.com> | |
8516 | ||
8517 | * linux-low.c (register_addr): Remove incorrect -1 check. | |
8518 | ||
a9fa9f7d DJ |
8519 | 2002-08-29 Daniel Jacobowitz <drow@mvista.com> |
8520 | ||
8521 | * linux-low.c (linux_create_inferior): Call setpgid. Return | |
8522 | the new PID. | |
8523 | (unstopped_p, linux_signal_pid): Remove. | |
8524 | (linux_target_ops): Remove linux_signal_pid. | |
8525 | * remote-utils.c (putpkt, input_interrupt): Use signal_pid | |
8526 | global instead of target method. | |
8527 | * target.h (struct target_ops): Remove signal_pid. Update comment | |
8528 | for create_inferior. | |
8529 | * server.c (signal_pid): New variable. | |
8530 | (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in | |
4b8dad4a | 8531 | gdbserver. Set the child to be the foreground process group. |
a9fa9f7d DJ |
8532 | (attach_inferior): Set signal_pid. |
8533 | ||
17574093 DJ |
8534 | 2002-08-23 Daniel Jacobowitz <drow@mvista.com> |
8535 | ||
8536 | * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2. | |
8537 | ||
8538 | 2002-08-20 Jim Blandy <jimb@redhat.com> | |
8539 | ||
8540 | * Makefile.in (LDFLAGS): Allow the configure script to establish a | |
8541 | default for this. | |
8542 | ||
8543 | 2002-08-01 Andrew Cagney <cagney@redhat.com> | |
8544 | ||
8545 | * Makefile.in: Make chill references obsolete. | |
8546 | ||
8547 | 2002-07-24 Kevin Buettner <kevinb@redhat.com> | |
8548 | ||
8549 | * configure.in (unistd.h): Add to AC_CHECK_HEADERS list. | |
8550 | * configure: Regenerate. | |
8551 | * config.in: Regenerate. | |
8552 | ||
8553 | 2002-07-09 David O'Brien <obrien@FreeBSD.org> | |
8554 | ||
8555 | * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include. | |
8556 | (perror_with_name, remote_close, remote_open, expect, play): Static. | |
8557 | ||
8558 | 2002-07-04 Michal Ludvig <mludvig@suse.cz> | |
8559 | ||
4b8dad4a | 8560 | * linux-x86-64-low.c (x86_64_regmap): Make it an array of |
17574093 DJ |
8561 | byte offsets instead of an array of indexes. |
8562 | (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const. | |
8563 | ||
8564 | 2002-06-13 Daniel Jacobowitz <drow@mvista.com> | |
8565 | ||
8566 | * regcache.c: Add comment. | |
8567 | ||
8568 | 2002-06-11 Daniel Jacobowitz <drow@mvista.com> | |
8569 | ||
8570 | * thread-db.c: New file. | |
8571 | * proc-service.c: New file. | |
8572 | * acinclude.m4: New file. | |
8573 | * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h, | |
8574 | proc-service.o, and thread-db.o. | |
8575 | (linux-low.o): Add USE_THREAD_DB. | |
8576 | * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T, | |
8577 | HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN. | |
8578 | * aclocal.m4: Regenerated. | |
8579 | * config.in: Regenerated. | |
8580 | * configure: Regenerated. | |
8581 | * configure.in: Check for proc_service.h, sys/procfs.h, | |
8582 | thread_db.h, and linux/elf.h headrs. | |
8583 | Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and | |
8584 | PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB. | |
8585 | Check for -lthread_db and thread support. | |
8586 | * configure.srv: Enable thread_db support for ARM, i386, MIPS, | |
8587 | PowerPC, and SuperH. | |
8588 | * i387-fp.c: Constify arguments. | |
8589 | * i387-fp.h: Likewise. | |
8590 | * inferiors.c: (struct thread_info): Renamed from | |
8591 | `struct inferior_info'. Remove PID member. Use generic inferior | |
8592 | list header. All uses updated. | |
8593 | (inferiors, signal_pid): Removed. | |
8594 | (all_threads): New variable. | |
8595 | (get_thread): Define. | |
8596 | (add_inferior_to_list): New function. | |
8597 | (for_each_inferior): New function. | |
8598 | (change_inferior_id): New function. | |
8599 | (add_inferior): Removed. | |
8600 | (remove_inferior): New function. | |
8601 | (add_thread): New function. | |
8602 | (free_one_thread): New function. | |
8603 | (remove_thread): New function. | |
8604 | (clear_inferiors): Use for_each_inferior and free_one_thread. | |
8605 | (find_inferior): New function. | |
8606 | (find_inferior_id): New function. | |
8607 | (inferior_target_data): Update argument type. | |
8608 | (set_inferior_target_data): Likewise. | |
8609 | (inferior_regcache_data): Likewise. | |
8610 | (set_inferior_regcache_data): Likewise. | |
8611 | * linux-low.c (linux_bp_reinsert): Remove. | |
8612 | (all_processes, stopping_threads, using_thrads) | |
8613 | (struct pending_signals, debug_threads, pid_of): New. | |
8614 | (inferior_pid): Replace with macro. | |
8615 | (struct inferior_linux_data): Remove. | |
8616 | (get_stop_pc, add_process): New functions. | |
8617 | (linux_create_inferior): Restore SIGRTMIN+1 before calling exec. | |
8618 | Use add_process and add_thread. | |
8619 | (linux_attach_lwp): New function, based on old linux_attach. Use | |
8620 | add_process and add_thread. Set stop_expected for new threads. | |
8621 | (linux_attach): New function. | |
8622 | (linux_kill_one_process): New function. | |
8623 | (linux_kill): Kill all LWPs. | |
8624 | (linux_thread_alive): Use find_inferior_id. | |
8625 | (check_removed_breakpoints, status_pending_p): New functions. | |
8626 | (linux_wait_for_process): Renamed from linux_wait_for_one_inferior. | |
8627 | Update. Use WNOHANG. Wait for cloned processes also. Update process | |
8628 | struct for the found process. | |
8629 | (linux_wait_for_event): New function. | |
8630 | (linux_wait): Use it. Support LWPs. | |
8631 | (send_sigstop, wait_for_sigstop, stop_all_processes) | |
8632 | (linux_resume_one_process, linux_continue_one_process): New functions. | |
8633 | (linux_resume): Support LWPs. | |
8634 | (REGISTER_RAW_SIZE): Remove. | |
8635 | (fetch_register): Use register_size instead. Call supply_register. | |
8636 | (usr_store_inferior_registers): Likewise. Call collect_register. | |
8637 | Fix recursive case. | |
8638 | (regsets_fetch_inferior_registers): Improve error message. | |
8639 | (regsets_store_inferior_registers): Add debugging. | |
8640 | (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB. | |
8641 | (unstopped_p, linux_signal_pid): New functions. | |
8642 | (linux_target_ops): Add linux_signal_pid. | |
8643 | (linux_init_signals): New function. | |
8644 | (initialize_low): Call it. Initialize using_threads. | |
8645 | * regcache.c (inferior_regcache_data): Add valid | |
8646 | flag. | |
8647 | (get_regcache): Fetch registers lazily. Add fetch argument | |
8648 | and update all callers. | |
8649 | (regcache_invalidate_one, regcache_invalidate): New | |
8650 | functions. | |
8651 | (new_register_cache): Renamed from create_register_cache. | |
8652 | Return the new regcache. | |
8653 | (free_register_cache): Change argument to a void *. | |
8654 | (registers_to_string, registers_from_string): Call get_regcache | |
8655 | with fetch flag set. | |
8656 | (register_data): Make static. Pass fetch flag to get_regcache. | |
8657 | (supply_register): Call get_regcache with fetch flag clear. | |
8658 | (collect_register): Call get_regcache with fetch flag set. | |
8659 | (collect_register_as_string): New function. | |
8660 | * regcache.h: Update. | |
8661 | * remote-utils.c (putpkt): Flush after debug output and use | |
8662 | stderr. | |
8663 | Handle input interrupts while waiting for an ACK. | |
8664 | (input_interrupt): Use signal_pid method. | |
8665 | (getpkt): Flush after debug output and use stderr. | |
8666 | (outreg): Use collect_register_as_string. | |
8667 | (new_thread_notify, dead_thread_notify): New functions. | |
8668 | (prepare_resume_reply): Check using_threads. Set thread_from_wait | |
8669 | and general_thread. | |
8670 | (look_up_one_symbol): Flush after debug output. | |
8671 | * server.c (step_thread, server_waiting): New variables. | |
8672 | (start_inferior): Don't use signal_pid. Update call to mywait. | |
8673 | (attach_inferior): Update call to mywait. | |
8674 | (handle_query): Handle qfThreadInfo and qsThreadInfo. | |
8675 | (main): Don't fetch/store registers explicitly. Use | |
8676 | set_desired_inferior. Support proposed ``Hs'' packet. Update | |
8677 | calls to mywait. | |
8678 | * server.h: Update. | |
8679 | (struct inferior_list, struct_inferior_list_entry): New. | |
8680 | * target.c (set_desired_inferior): New. | |
8681 | (write_inferior_memory): Constify. | |
8682 | (mywait): New function. | |
8683 | * target.h: Update. | |
8684 | (struct target_ops): New signal_pid method. | |
8685 | (mywait): Removed macro, added prototype. | |
8686 | ||
8687 | * linux-low.h (regset_func): Removed. | |
8688 | (regset_fill_func, regset_store_func): New. | |
8689 | (enum regset_type): New. | |
8690 | (struct regset_info): Add type field. Use new operation types. | |
8691 | (struct linux_target_ops): stop_pc renamed to get_pc. | |
8692 | Add decr_pc_after_break and breakpoint_at. | |
8693 | (get_process, get_thread_proess, get_process_thread) | |
8694 | (strut process_info, all_processes, linux_attach_lwp) | |
8695 | (thread_db_init): New. | |
8696 | ||
8697 | * linux-arm-low.c (arm_get_pc, arm_set_pc, | |
8698 | arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New. | |
8699 | (the_low_target): Add new members. | |
8700 | * linux-i386-low.c (i386_store_gregset, i386_store_fpregset) | |
8701 | (i386_store_fpxregset): Constify. | |
8702 | (target_regsets): Add new kind identifier. | |
8703 | (i386_get_pc): Renamed from i386_stop_pc. Simplify. | |
8704 | (i386_set_pc): Add debugging. | |
8705 | (i386_breakpoint_at): New function. | |
8706 | (the_low_target): Add new members. | |
8707 | * linux-mips-low.c (mips_get_pc, mips_set_pc) | |
8708 | (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr) | |
8709 | (mips_breakpoint_at): New. | |
8710 | (the_low_target): Add new members. | |
8711 | * linux-ppc-low.c (ppc_get_pc, ppc_set_pc) | |
8712 | (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New. | |
8713 | (the_low_target): Add new members. | |
8714 | * linux-sh-low.c (sh_get_pc, sh_set_pc) | |
8715 | (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New. | |
8716 | (the_low_target): Add new members. | |
8717 | * linux-x86-64-low.c (target_regsets): Add new kind | |
8718 | identifier. | |
8719 | ||
8720 | 2002-05-15 Daniel Jacobowitz <drow@mvista.com> | |
8721 | ||
8722 | From Martin Pool <mbp@samba.org>: | |
8723 | * server.c (gdbserver_usage): New function. | |
8724 | (main): Call it. | |
8725 | ||
8726 | 2002-05-14 Daniel Jacobowitz <drow@mvista.com> | |
8727 | ||
8728 | * mem-break.c (reinsert_breakpoint_by_bp): Correct typo | |
8729 | stop_at -> stop_pc. | |
8730 | ||
8731 | 2002-05-04 Andrew Cagney <ac131313@redhat.com> | |
8732 | ||
8733 | * Makefile.in: Remove obsolete code. | |
8734 | ||
8735 | 2002-04-24 Michal Ludvig <mludvig@suse.cz> | |
8736 | ||
8737 | * linux-low.c (regsets_fetch_inferior_registers), | |
8738 | (regsets_store_inferior_registers): Removed cast to int from | |
8739 | ptrace() calls. | |
8740 | * regcache.h: Added declaration of struct inferior_info. | |
8741 | ||
8742 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> | |
8743 | ||
8744 | * inferiors.c (struct inferior_info): Add regcache_data. | |
8745 | (add_inferior): Call create_register_cache. | |
8746 | (clear_inferiors): Call free_register_cache. | |
8747 | (inferior_regcache_data, set_inferior_regcache_data): New functions. | |
8748 | * regcache.c (struct inferior_regcache_data): New. | |
8749 | (registers): Remove. | |
8750 | (get_regcache): New function. | |
8751 | (create_register_cache, free_register_cache): New functions. | |
8752 | (set_register_cache): Don't initialize the register cache here. | |
8753 | (registers_to_string, registers_from_string, register_data): Call | |
8754 | get_regcache. | |
8755 | * regcache.h: Add prototypes. | |
8756 | * server.h: Likewise. | |
8757 | ||
8758 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> | |
8759 | ||
8760 | * mem-break.c: New file. | |
8761 | * mem-break.h: New file. | |
8762 | * Makefile.in: Add mem-break.o rule; update server.h | |
8763 | dependencies. | |
8764 | * inferiors.c (struct inferior_info): Add target_data | |
8765 | member. | |
8766 | (clear_inferiors): Free target_data member if set. | |
8767 | (inferior_target_data, set_inferior_target_data): New functions. | |
8768 | * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len) | |
8769 | (i386_stop_pc, i386_set_pc): New. Add to the_low_target. | |
8770 | * linux-low.c (linux_bp_reinsert): New variable. | |
8771 | (struct inferior_linux_data): New. | |
8772 | (linux_create_inferior): Use set_inferior_target_data. | |
8773 | (linux_attach): Likewise. Call add_inferior. | |
8774 | (linux_wait_for_one_inferior): New function. | |
8775 | (linux_wait): Call it. | |
8776 | (linux_write_memory): Add const. | |
8777 | (initialize_low): Call set_breakpoint_data. | |
8778 | * linux-low.h (struct linux_target_ops): Add breakpoint | |
8779 | handling members. | |
8780 | * server.c (attach_inferior): Remove extra add_inferior | |
8781 | call. | |
8782 | * server.h: Include mem-break.h. Update inferior.c | |
8783 | prototypes. | |
8784 | * target.c (read_inferior_memory) | |
8785 | (write_inferior_memory): New functions. | |
8786 | * target.h (read_inferior_memory) | |
8787 | (write_inferior_memory): Change macros to prototypes. | |
8788 | (struct target_ops): Update comments. Add const to write_memory | |
8789 | definition. | |
8790 | ||
8791 | 2002-04-11 Daniel Jacobowitz <drow@mvista.com> | |
8792 | ||
8793 | * linux-low.c (usr_store_inferior_registers): Support | |
8794 | registers which are allowed to fail to store. | |
8795 | * linux-low.h (linux_target_ops): Likewise. | |
8796 | * linux-ppc-low.c (ppc_regmap): Support FPSCR. | |
8797 | (ppc_cannot_store_register): FPSCR may not be storable. | |
8798 | ||
8799 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
8800 | ||
8801 | * server.h: Include <string.h> if HAVE_STRING_H. | |
8802 | * ChangeLog: Correct paths in last ChangeLog entry. | |
8803 | ||
8804 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
8805 | ||
8806 | * linux-low.h: Remove obsolete prototypes. | |
8807 | (struct linux_target_ops): New. | |
8808 | (extern the_low_target): New. | |
8809 | * linux-low.c (num_regs, regmap): Remove declarations. | |
8810 | (register_addr): Use the_low_target explicitly. | |
8811 | (fetch_register): Likewise. | |
8812 | (usr_fetch_inferior_registers): Likewise. | |
8813 | (usr_store_inferior_registers): Likewise. | |
8814 | * linux-arm-low.c (num_regs): Remove. | |
8815 | (arm_num_regs): Define. | |
8816 | (arm_regmap): Renamed from regmap, made static. | |
8817 | (arm_cannot_fetch_register): Renamed from cannot_fetch_register, | |
8818 | made static. | |
8819 | (arm_cannot_store_register): Renamed from cannot_store_register, | |
8820 | made static. | |
8821 | (the_low_target): New. | |
8822 | * linux-i386-low.c (num_regs): Remove. | |
8823 | (i386_num_regs): Define. | |
8824 | (i386_regmap): Renamed from regmap, made static. | |
8825 | (i386_cannot_fetch_register): Renamed from cannot_fetch_register, | |
8826 | made static. | |
8827 | (i386_cannot_store_register): Renamed from cannot_store_register, | |
8828 | made static. | |
8829 | (the_low_target): New. | |
8830 | * linux-ia64-low.c (num_regs): Remove. | |
8831 | (ia64_num_regs): Define. | |
8832 | (ia64_regmap): Renamed from regmap, made static. | |
8833 | (ia64_cannot_fetch_register): Renamed from cannot_fetch_register, | |
8834 | made static. | |
8835 | (ia64_cannot_store_register): Renamed from cannot_store_register, | |
8836 | made static. | |
8837 | (the_low_target): New. | |
8838 | * linux-m68k-low.c (num_regs): Remove. | |
8839 | (m68k_num_regs): Define. | |
8840 | (m68k_regmap): Renamed from regmap, made static. | |
8841 | (m68k_cannot_fetch_register): Renamed from cannot_fetch_register, | |
8842 | made static. | |
8843 | (m68k_cannot_store_register): Renamed from cannot_store_register, | |
8844 | made static. | |
8845 | (the_low_target): New. | |
8846 | * linux-mips-low.c (num_regs): Remove. | |
8847 | (mips_num_regs): Define. | |
8848 | (mips_regmap): Renamed from regmap, made static. | |
8849 | (mips_cannot_fetch_register): Renamed from cannot_fetch_register, | |
8850 | made static. | |
8851 | (mips_cannot_store_register): Renamed from cannot_store_register, | |
8852 | made static. | |
8853 | (the_low_target): New. | |
8854 | * linux-ppc-low.c (num_regs): Remove. | |
8855 | (ppc_num_regs): Define. | |
8856 | (ppc_regmap): Renamed from regmap, made static. | |
8857 | (ppc_cannot_fetch_register): Renamed from cannot_fetch_register, | |
8858 | made static. | |
8859 | (ppc_cannot_store_register): Renamed from cannot_store_register, | |
8860 | made static. | |
8861 | (the_low_target): New. | |
8862 | * linux-s390-low.c (num_regs): Remove. | |
8863 | (s390_num_regs): Define. | |
8864 | (s390_regmap): Renamed from regmap, made static. | |
8865 | (s390_cannot_fetch_register): Renamed from cannot_fetch_register, | |
8866 | made static. | |
8867 | (s390_cannot_store_register): Renamed from cannot_store_register, | |
8868 | made static. | |
8869 | (the_low_target): New. | |
8870 | * linux-sh-low.c (num_regs): Remove. | |
8871 | (sh_num_regs): Define. | |
8872 | (sh_regmap): Renamed from regmap, made static. | |
8873 | (sh_cannot_fetch_register): Renamed from cannot_fetch_register, | |
8874 | made static. | |
8875 | (sh_cannot_store_register): Renamed from cannot_store_register, | |
8876 | made static. | |
8877 | (the_low_target): New. | |
8878 | * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap. | |
8879 | (the_low_target): New. | |
8880 | ||
8881 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
8882 | ||
8883 | * Makefile.in: Add stamp-h target. | |
8884 | * configure.in: Create stamp-h. | |
8885 | * configure: Regenerated. | |
8886 | ||
8887 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
8888 | ||
8889 | * inferiors.c: New file. | |
8890 | * target.c: New file. | |
8891 | * target.h: New file. | |
8892 | * Makefile.in: Add target.o and inferiors.o. Update | |
8893 | dependencies. | |
8894 | * linux-low.c (inferior_pid): New static variable, | |
8895 | moved from server.c. | |
8896 | (linux_create_inferior): Renamed from create_inferior. | |
8897 | Call add_inferior. Return 0 on success instead of a PID. | |
8898 | (linux_attach): Renamed from myattach. | |
8899 | (linux_kill): Renamed from kill_inferior. Call clear_inferiors (). | |
8900 | (linux_thread_alive): Renamed from mythread_alive. | |
8901 | (linux_wait): Renamed from mywait. Call clear_inferiors () if the | |
8902 | child dies. | |
8903 | (linux_resume): Renamed from myresume. Add missing ``return 0''. | |
8904 | (regsets_store_inferior_registers): Correct error message. | |
8905 | Add missing ``return 0''. | |
8906 | (linux_fetch_registers): Renamed from fetch_inferior_registers. | |
8907 | (linux_store_registers): Renamed from store_inferior_registers. | |
8908 | (linux_read_memory): Renamed from read_inferior_memory. | |
8909 | (linux_write_memory): Renamed from write_inferior_memory. | |
8910 | (linux_target_ops): New structure. | |
8911 | (initialize_low): Call set_target_ops (). | |
8912 | * remote-utils.c (unhexify): New function. | |
8913 | (hexify): New function. | |
8914 | (input_interrupt): Send signals to ``signal_pid''. | |
8915 | * server.c (inferior_pid): Remove. | |
8916 | (start_inferior): Update create_inferior call. | |
8917 | (attach_inferior): Call add_inferior. | |
8918 | (handle_query): New function. | |
8919 | (main): Call handle_query for `q' packets. | |
8920 | * server.h: Include "target.h". Remove obsolete prototypes. | |
8921 | Add prototypes for "inferiors.c", "target.c", hexify, and unhexify. | |
8922 | ||
8923 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
8924 | ||
8925 | * Makefile.in: Add WARN_CFLAGS. Update configury | |
8926 | dependencies. | |
8927 | * configure.in: Check for <string.h> | |
8928 | * configure: Regenerate. | |
8929 | * config.in: Regenerate. | |
8930 | * gdbreplay.c: Include needed system headers. | |
8931 | (remote_open): Remove strchr prototype. | |
8932 | * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS. | |
8933 | * regcache.c (supply_register): Change buf argument to const void *. | |
8934 | (supply_register_by_name): Likewise. | |
8935 | (collect_register): Change buf argument to void *. | |
8936 | (collect_register_by_name): Likewise. | |
8937 | * regcache.h: Add missing prototypes. | |
8938 | * remote-utils.c: Include <arpa/inet.h> for inet_ntoa. | |
8939 | * server.c (handle_query): New function. | |
8940 | (attached): New static variable, moved out of main. | |
8941 | (main): Quiet longjmp clobber warnings. | |
8942 | * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes. | |
8943 | * utils.c (error): Remove NORETURN. | |
8944 | (fatal): Likewise. |