Commit | Line | Data |
---|---|---|
f699aaba PA |
1 | 2013-09-05 Pedro Alves <palves@redhat.com> |
2 | ||
3 | * server.h (struct emit_ops, current_insn_ptr, emit_error): | |
4 | Move ... | |
5 | * ax.h: ... here. | |
6 | ||
c144c7a0 PA |
7 | 2013-09-05 Pedro Alves <palves@redhat.com> |
8 | ||
9 | * ax.c, linux-low.c, linux-x86-low.c, server.c: Include | |
10 | tracepoint.h. | |
11 | * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing) | |
12 | (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing | |
13 | (handle_tracepoint_general_set, handle_tracepoint_query) | |
14 | (tracepoint_finished_step, tracepoint_was_hit) | |
15 | (release_while_stepping_state_list, current_traceframe) | |
16 | (in_readonly_region, traceframe_read_mem) | |
17 | (fetch_traceframe_registers, traceframe_read_sdata) | |
18 | (traceframe_read_info, struct fast_tpoint_collect_status) | |
19 | (fast_tracepoint_collecting, force_unlock_trace_buffer) | |
20 | (handle_tracepoit_bkpts, initialize_low_tracepoint) | |
21 | (supply_fast_tracepoint_registers) | |
22 | (supply_static_tracepoint_registers, set_trampoline_buffer_space) | |
23 | (ipa_tdesc, claim_trampoline_space) | |
24 | (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close) | |
25 | (agent_mem_read, agent_get_trace_state_variable_value) | |
26 | (agent_set_trace_state_variable_value, agent_tsv_read) | |
27 | (agent_mem_read_string, get_raw_reg_func_addr) | |
28 | (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ... | |
29 | * tracepoint.h: ... this new file. | |
30 | ||
ff42e6ab PA |
31 | 2013-09-05 Pedro Alves <palves@redhat.com> |
32 | ||
33 | * server.h (perror_with_name, error, fatal, warning, paddress) | |
34 | (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and | |
35 | include it. | |
36 | * utils.h: New file. | |
37 | ||
541af0f4 PA |
38 | 2013-09-05 Pedro Alves <palves@redhat.com> |
39 | ||
40 | * server.h (remote_debug, noack_mode, transport_is_reliable) | |
41 | (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio) | |
42 | (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif) | |
43 | (getpkt, remote_prepare, remote_open, remote_close, write_ok) | |
44 | (write_enn, initialize_async_io, enable_async_io) | |
45 | (disable_async_io, check_remote_input_interrupt_request) | |
46 | (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify) | |
47 | (dead_thread_notify, prepare_resume_reply) | |
48 | (decode_address_to_semicolon, decode_address, decode_m_packet) | |
49 | (decode_M_packet, decode_X_packet, decode_xfer_write) | |
50 | (decode_search_memory_packet, unhexify, hexify) | |
51 | (remote_escape_output, unpack_varlen_hex, clear_symbol_cache) | |
52 | (look_up_one_symbol, relocate_instruction) | |
53 | (monitor_output): Move to remote-utils.h, and include it. | |
54 | * remote-utils.h: New file. | |
55 | ||
eebdf26b PA |
56 | 2013-09-05 Pedro Alves <palves@redhat.com> |
57 | ||
58 | * server.h (_): Delete. | |
59 | ||
3aafd2ff PA |
60 | 2013-09-02 Pedro Alves <palves@redhat.com> |
61 | ||
62 | * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro. | |
63 | (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is | |
64 | allocated. | |
65 | (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE. | |
66 | ||
cee83bcb PM |
67 | 2013-09-02 Pierre Muller <muller@sourceware.org> |
68 | ||
69 | * win32-low.c (child_xfer_memory): Check if ReadProcessMemory | |
70 | or WriteProcessMemory complete successfully and handle | |
71 | ERROR_PARTIAL_COPY error. | |
72 | ||
9a13b2fa PA |
73 | 2013-09-02 Pedro Alves <palves@redhat.com> |
74 | ||
75 | * server.c (gdb_read_memory): Return -1 on traceframe memory read | |
76 | error instead of EIO. | |
77 | ||
602e3198 JK |
78 | 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
79 | ||
80 | PR server/15604 | |
81 | * linux-low.c: Include filestuff.h. | |
82 | (linux_create_inferior) <pid == 0>: Call close_most_fds. | |
83 | * lynx-low.c: Include filestuff.h. | |
84 | (lynx_create_inferior) <pid == 0>: Call close_most_fds. | |
85 | * server.c: Include filestuff.h. | |
86 | (main): Call notice_open_fds. | |
87 | * spu-low.c: Include filestuff.h. | |
88 | (spu_create_inferior) <pid == 0>: Call close_most_fds. | |
89 | ||
96d7229d LM |
90 | 2013-08-22 Luis Machado <lgustavo@codesourcery.com> |
91 | ||
92 | * Makefile.in: Explain why ../target and ../nat are not | |
93 | listed as include file search paths. | |
94 | (linux-waitpid.o): New object file rule. | |
95 | * configure.srv (srv_native_linux_obj): New variable. | |
96 | Replace all occurrences of linux native object files with | |
97 | $srv_native_linux_obj. | |
98 | * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h. | |
99 | (HAS_NOMMU): Move defining logic to common/linux-ptrace.c. | |
100 | (linux_enable_event_reporting): Remove declaration. | |
101 | (my_waitpid): Moved to common/linux-waitpid.c. | |
102 | (linux_wait_for_event): Pass ptid when calling | |
103 | linux_enable_event_reporting. | |
104 | (linux_supports_tracefork_flag): Remove. | |
105 | (linux_enable_event_reporting): Likewise. | |
106 | (linux_tracefork_grandchild): Remove. | |
107 | (STACK_SIZE): Moved to common/linux-ptrace.c. | |
108 | (linux_tracefork_child): Remove. | |
109 | (linux_test_for_tracefork): Remove. | |
110 | (linux_look_up_symbols): Call linux_supports_traceclone. | |
111 | (initialize_low): Remove call to linux_test_for_tracefork. | |
112 | * linux-low.h (PTRACE_TYPE_ARG3): Move to | |
113 | common/linux-ptrace.h. | |
114 | (PTRACE_TYPE_ARG4): Likewise. | |
115 | Include linux-ptrace.h. | |
116 | ||
32940073 PA |
117 | 2013-08-21 Pedro Alves <palves@redhat.com> |
118 | ||
119 | * config.in: Renegerate. | |
120 | ||
33b60d58 | 121 | 2013-08-19 Luis Machado <lgustavo@codesourcery.com> |
a261b8f5 | 122 | |
33b60d58 LM |
123 | * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../. |
124 | (SFILES): Remove $(srcdir)/common/target-common.c and | |
125 | add $(srcdir)/target/waitstatus.c. | |
126 | (OBS): Remove target-common.o and add waitstatus.o. | |
127 | (server_h): Remove $(srcdir)/../common/target-common.h and | |
128 | add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h | |
129 | and $(srcdir)/../target/waitstatus.h. | |
130 | (target-common.o): Remove. | |
131 | (waitstatus.o): New target object file. | |
132 | * target.h: Do not include target-common.h and | |
133 | include target/resume.h, target/wait.h and | |
134 | target/waitstatus.h. | |
135 | ||
b8e1b30e LM |
136 | 2013-08-13 Luis Machado <lgustavo@codesourcery.com> |
137 | ||
138 | * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE | |
139 | to PTRACE_TYPE_ARG3. | |
140 | * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE | |
141 | to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to | |
142 | PTRACE_TYPE_ARG4. | |
143 | * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3. | |
144 | (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4. | |
145 | ||
7a60ad40 YQ |
146 | 2013-07-27 Jie Zhang <jie@codesourcery.com> |
147 | Daniel Jacobowitz <dan@codesourcery.com> | |
148 | Yao Qi <yao@codesourcery.com> | |
149 | ||
150 | * Makefile.in (SFILES): Add common/mips-linux-watch.c. | |
151 | (mips-linux-watch.o): New rule. | |
152 | (mips_linux_watch_h): New variable. | |
153 | * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to | |
154 | srv_tgtobj. | |
155 | * linux-mips-low.c: Include mips-linux-watch.h. | |
156 | (struct arch_process_info, struct arch_lwp_info): New. | |
157 | (update_watch_registers_callback): New function. | |
158 | (mips_linux_new_process, mips_linux_new_thread) New functions. | |
159 | (mips_linux_prepare_to_resume, mips_insert_point): New | |
160 | functions. | |
161 | (mips_remove_point, mips_stopped_by_watchpoint): New | |
162 | functions. | |
163 | (rsp_bp_type_to_target_hw_bp_type): New function. | |
164 | (mips_stopped_data_address): New function. | |
165 | (the_low_target): Add watchpoint support functions. | |
166 | ||
de6f69ad YQ |
167 | 2013-07-27 Yao Qi <yao@codesourcery.com> |
168 | ||
169 | * i386-low.c: Include break-common.h. | |
170 | (enum target_hw_bp_type): Remove. | |
171 | ||
3360c0bf LM |
172 | 2013-07-24 Luis Machado <lgustavo@codesourcery.com> |
173 | ||
174 | * Makefile.in (SFILES): /common/target-common.c. | |
175 | (OBS): Add target-common.o. | |
176 | (server_h): Add $(srcdir)/../common/target-common.h. | |
177 | (target-common.o): New target. | |
178 | * server.c (queue_stop_reply_callback): Free | |
179 | status string after use. | |
180 | * target.c (target_waitstatus_to_string): Remove. | |
181 | * target.h: Include target-common.h. | |
182 | (resume_kind): Likewise. | |
183 | (target_waitkind): Likewise. | |
184 | (target_waitstatus): Likewise. | |
185 | (TARGET_WNOHANG): Likewise. | |
186 | ||
bd885420 YQ |
187 | 2013-07-04 Yao Qi <yao@codesourcery.com> |
188 | ||
189 | * Makefile.in (host_alias): Use @host_noncanonical@. | |
190 | (target_alias): Use @target_noncanonical@. | |
191 | * configure.ac: Use ACX_NONCANONICAL_TARGET and | |
192 | ACX_NONCANONICAL_HOST. | |
193 | * configure: Regenerated. | |
194 | ||
195 | Revert: | |
196 | 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com> | |
197 | ||
198 | * configure.ac (version_host, version_target): Set and AC_SUBST them. | |
199 | * configure: Rebuild. | |
200 | * Makefile.in (version_host, version_target): Get from configure. | |
201 | (version.c): Use $(version_host) and $(version_target). | |
202 | ||
17ef446e PA |
203 | 2013-07-03 Pedro Alves <palves@redhat.com> |
204 | ||
205 | * Makefile.in (config.status): Depend on development.sh. | |
206 | * acinclude.m4: Include libmcheck.m4. | |
207 | * configure: Regenerate. | |
208 | ||
7a9a7487 MG |
209 | 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com> |
210 | ||
211 | * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI | |
212 | attribute inside the parentheses. | |
213 | (winapi_DebugSetProcessKillOnExit): Ditto. | |
214 | (winapi_DebugBreakProcess): Ditto. | |
215 | (winapi_GenerateConsoleCtrlEvent): Ditto. | |
a261b8f5 | 216 | |
49b64de6 MG |
217 | 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com> |
218 | ||
219 | * notif.h (notif_event): Add a dummy member to avoid compiler | |
220 | errors. | |
221 | ||
d5749ee7 PA |
222 | 2013-07-01 Pedro Alves <palves@redhat.com> |
223 | ||
224 | * hostio.c (HOSTIO_PATH_MAX): Define. | |
225 | (require_filename, handle_open, handle_unlink, handle_readlink): | |
226 | Use it. | |
227 | ||
d8d2a3ee PA |
228 | 2013-07-01 Pedro Alves <palves@redhat.com> |
229 | ||
230 | * server.h: Include "pathmax.h". | |
231 | * linux-low.c: Don't include sys/param.h. | |
232 | (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of | |
233 | MAXPATHLEN. | |
234 | * win32-low.c: Don't include sys/param.h. | |
235 | (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN. | |
236 | ||
bc7dea8d PA |
237 | 2013-07-01 Pedro Alves <palves@redhat.com> |
238 | ||
239 | * event-loop.c: Don't check HAVE_UNISTD_H before including | |
240 | <unistd.h>. | |
241 | * gdbreplay.c: Likewise. | |
242 | * remote-utils.c: Likewise. | |
243 | * server.c: Likewise. | |
244 | * configure.ac: Don't check for unistd.h. | |
245 | * configure: Regenerate. | |
246 | ||
d6c2da54 TT |
247 | 2013-06-28 Tom Tromey <tromey@redhat.com> |
248 | ||
249 | * Makefile.in (version.c): Use version.in, not | |
250 | common/version.in. | |
251 | ||
257b6bec MG |
252 | 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com> |
253 | ||
254 | * configure.ac (version_host, version_target): Set and AC_SUBST them. | |
255 | * configure: Rebuild. | |
256 | * Makefile.in (version_host, version_target): Get from configure. | |
257 | (version.c): Use $(version_host) and $(version_target). | |
258 | ||
86ebe149 DK |
259 | 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com> |
260 | ||
261 | Fix trace-status to output user name without trailing colon. | |
262 | * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name. | |
263 | ||
f30aa5af DK |
264 | 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com> |
265 | ||
266 | Fix trace-status to output proper start-time and stop-time. | |
267 | * tracepoint.c (cmd_qtstatus): Modify trace-status output to | |
268 | output start time and stop time in hex as gdb expects. | |
269 | ||
28a93511 YQ |
270 | 2013-06-26 Pedro Alves <pedro@codesourcery.com> |
271 | ||
272 | * tracepoint.c (build_traceframe_info_xml): Output trace state | |
273 | variables present in the trace buffer. | |
274 | ||
01208463 TT |
275 | 2013-06-24 Tom Tromey <tromey@redhat.com> |
276 | ||
277 | * Makefile.in (version.c): Use bfd/version.h, common/version.in, | |
278 | create-version.sh. | |
279 | (version.o): Remove. | |
280 | * gdbreplay.c: Include version.h. | |
281 | (version, host_name): Don't declare. | |
282 | * server.h: Include version.h. | |
283 | (version, host_name): Don't declare. | |
284 | ||
760256f9 PA |
285 | 2013-06-12 Pedro Alves <palves@redhat.com> |
286 | ||
287 | * linux-x86-low.c (linux_is_elf64): Delete global. | |
288 | (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global | |
289 | with local linux_pid_exe_is_elf_64_file use. | |
290 | ||
030031ee PA |
291 | 2013-06-11 Pedro Alves <palves@redhat.com> |
292 | ||
293 | * linux-low.c (regset_disabled, disable_regset): New functions. | |
294 | (regsets_fetch_inferior_registers) | |
295 | (regsets_store_inferior_registers): Use them. | |
296 | (initialize_regsets_info); Don't allocate the disabled_regsets | |
297 | array here. | |
298 | * linux-low.h (struct regsets_info) <disabled_regsets>: Extend | |
299 | comment. | |
300 | ||
5da6eb0a PA |
301 | 2013-06-11 Pedro Alves <palves@redhat.com> |
302 | ||
303 | * linux-low.c (initialize_regsets_info): Use xcalloc instead of | |
304 | xmalloc. | |
305 | ||
7e5aaa09 PA |
306 | 2013-06-11 Pedro Alves <palves@redhat.com> |
307 | ||
308 | * linux-x86-low.c (initialize_low_arch): Call | |
309 | init_registers_x32_avx_linux. | |
310 | ||
d878444c JK |
311 | 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
312 | ||
313 | Fix compatibility with Android Bionic. | |
314 | * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if | |
315 | it is not empty. | |
316 | ||
3aee8918 PA |
317 | 2013-06-07 Pedro Alves <palves@redhat.com> |
318 | ||
5f2b57b5 | 319 | PR server/14823 |
3aee8918 PA |
320 | * Makefile.in (OBS): Add tdesc.o. |
321 | (IPA_OBJS): Add tdesc-ipa.o. | |
322 | (tdesc-ipa.o): New rule. | |
323 | * ax.c (gdb_eval_agent_expr): Adjust register_size call to new | |
324 | interface. | |
325 | * linux-low.c (new_inferior): Delete. | |
326 | (disabled_regsets, num_regsets): Delete. | |
327 | (linux_add_process): Adjust to set the new per-process | |
328 | new_inferior flag. | |
329 | (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread. | |
330 | (linux_wait_for_lwp): Adjust. Only call arch_setup if the event | |
331 | was a stop. When calling arch_setup, switch the current inferior | |
332 | to the thread that got an event. | |
333 | (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread. | |
334 | (regsets_fetch_inferior_registers) | |
335 | (regsets_store_inferior_registers): New regsets_info parameter. | |
336 | Adjust to use it. | |
337 | (linux_register_in_regsets): New regs_info parameter. Adjust to | |
338 | use it. | |
339 | (register_addr, fetch_register, store_register): New usrregs_info | |
340 | parameter. Adjust to use it. | |
341 | (usr_fetch_inferior_registers, usr_store_inferior_registers): New | |
342 | parameter regs_info. Adjust to use it. | |
343 | (linux_fetch_registers): Get the current inferior's regs_info, and | |
344 | adjust to use it. | |
345 | (linux_store_registers): Ditto. | |
346 | [HAVE_LINUX_REGSETS] (initialize_regsets_info): New. | |
347 | (initialize_low): Don't initialize the target_regsets here. Call | |
348 | initialize_low_arch. | |
349 | * linux-low.h (target_regsets): Delete declaration. | |
350 | (struct regsets_info): New. | |
351 | (struct usrregs_info): New. | |
352 | (struct regs_info): New. | |
353 | (struct process_info_private) <new_inferior>: New field. | |
354 | (struct linux_target_ops): Delete the num_regs, regmap, and | |
355 | regset_bitmap fields. New field regs_info. | |
356 | [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare. | |
357 | * i387-fp.c (num_xmm_registers): Delete. | |
358 | (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno | |
359 | calls to new interface. | |
360 | (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache) | |
361 | (i387_xsave_to_cache): Adjust find_regno calls to new interface. | |
362 | Infer the number of xmm registers from the regcache's target | |
363 | description. | |
364 | * i387-fp.h (num_xmm_registers): Delete. | |
365 | * inferiors.c (add_thread): Don't install the thread's regcache | |
366 | here. | |
367 | * proc-service.c (gregset_info): Fetch the current inferior's | |
368 | regs_info. Adjust to use it. | |
369 | * regcache.c: Include tdesc.h. | |
370 | (register_bytes, reg_defs, num_registers) | |
371 | (gdbserver_expedite_regs): Delete. | |
372 | (get_thread_regcache): If the thread doesn't have a regcache yet, | |
373 | create one, instead of aborting gdbserver. | |
374 | (regcache_invalidate_one): Rename to ... | |
375 | (regcache_invalidate_thread): ... this. | |
376 | (regcache_invalidate_one): New. | |
377 | (regcache_invalidate): Only invalidate registers of the current | |
378 | process. | |
379 | (init_register_cache): Add target_desc parameter, and use it. | |
380 | (new_register_cache): Ditto. Assert the target description has a | |
381 | non zero registers_size. | |
382 | (regcache_cpy): Add assertions. Adjust. | |
383 | (realloc_register_cache, set_register_cache): Delete. | |
384 | (registers_to_string, registers_from_string): Adjust. | |
385 | (find_register_by_name, find_regno, find_register_by_number) | |
386 | (register_cache_size): Add target_desc parameter, and use it. | |
387 | (free_register_cache_thread, free_register_cache_thread_one) | |
388 | (regcache_release, register_cache_size): New. | |
389 | (register_size): Add target_desc parameter, and use it. | |
390 | (register_data, supply_register, supply_register_zeroed) | |
391 | (supply_regblock, supply_register_by_name, collect_register) | |
392 | (collect_register_as_string, collect_register_by_name): Adjust. | |
393 | * regcache.h (struct target_desc): Forward declare. | |
394 | (struct regcache) <tdesc>: New field. | |
395 | (init_register_cache, new_register_cache): Add target_desc | |
396 | parameter. | |
397 | (regcache_invalidate_thread): Declare. | |
398 | (regcache_invalidate_one): Delete declaration. | |
399 | (regcache_release): Declare. | |
400 | (find_register_by_number, register_cache_size, register_size) | |
401 | (find_regno): Add target_desc parameter. | |
402 | (gdbserver_expedite_regs, gdbserver_xmltarget): Delete | |
403 | declarations. | |
404 | * remote-utils.c: Include tdesc.h. | |
405 | (outreg, prepare_resume_reply): Adjust. | |
406 | * server.c: Include tdesc.h. | |
407 | (gdbserver_xmltarget): Delete declaration. | |
408 | (get_features_xml, process_serial_event): Adjust. | |
409 | * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward | |
410 | declare. | |
411 | (struct process_info) <tdesc>: New field. | |
412 | (ipa_tdesc): Declare. | |
413 | * tdesc.c: New file. | |
414 | * tdesc.h: New file. | |
415 | * tracepoint.c: Include tdesc.h. | |
416 | [IN_PROCESS_AGENT] (ipa_tdesc): Define. | |
417 | (get_context_regcache): Adjust to pass ipa_tdesc down. | |
418 | (do_action_at_tracepoint): Adjust to get the register cache size | |
419 | from the context regcache's description. | |
420 | (traceframe_walk_blocks): Adjust to get the register cache size | |
421 | from the current trace frame's description. | |
422 | (traceframe_get_pc): Adjust to get current trace frame's | |
423 | description and pass it down. | |
424 | (gdb_collect): Adjust to get the register cache size from the | |
425 | IPA's description. | |
426 | * linux-amd64-ipa.c (tdesc_amd64_linux): Declare. | |
427 | (gdbserver_xmltarget): Delete. | |
428 | (initialize_low_tracepoint): Set the ipa's target description. | |
429 | * linux-i386-ipa.c (tdesc_i386_linux): Declare. | |
430 | (initialize_low_tracepoint): Set the ipa's target description. | |
431 | * linux-x86-low.c: Include tdesc.h. | |
432 | [__x86_64__] (is_64bit_tdesc): New. | |
433 | (ps_get_thread_area, x86_get_thread_area): Use it. | |
434 | (i386_cannot_store_register): Rename to ... | |
435 | (x86_cannot_store_register): ... this. Use is_64bit_tdesc. | |
436 | (i386_cannot_fetch_register): Rename to ... | |
437 | (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc. | |
438 | (x86_fill_gregset, x86_store_gregset): Adjust register_size calls | |
439 | to new interface. | |
440 | (target_regsets): Rename to ... | |
441 | (x86_regsets): ... this. | |
442 | (x86_get_pc, x86_set_pc): Adjust register_size calls to new | |
443 | interface. | |
444 | (x86_siginfo_fixup): Use is_64bit_tdesc. | |
445 | [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux) | |
446 | (tdesc_x32_avx_linux, tdesc_x32_linux) | |
447 | (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux): | |
448 | Declare. | |
449 | (x86_linux_update_xmltarget): Delete. | |
450 | (I386_LINUX_XSAVE_XCR0_OFFSET): Define. | |
451 | (have_ptrace_getfpxregs, have_ptrace_getregset): New. | |
452 | (AMD64_LINUX_USER64_CS): New. | |
453 | (x86_linux_read_description): New, based on | |
454 | x86_linux_update_xmltarget. | |
455 | (same_process_callback): New. | |
456 | (x86_arch_setup_process_callback): New. | |
457 | (x86_linux_update_xmltarget): New. | |
458 | (x86_regsets_info): New. | |
459 | (amd64_linux_regs_info): New. | |
460 | (i386_linux_usrregs_info): New. | |
461 | (i386_linux_regs_info): New. | |
462 | (x86_linux_regs_info): New. | |
463 | (x86_arch_setup): Reimplement. | |
464 | (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc. | |
465 | (x86_emit_ops): Ditto. | |
466 | (the_low_target): Adjust. Install x86_linux_regs_info, | |
467 | x86_cannot_fetch_register, and x86_cannot_store_register. | |
468 | (initialize_low_arch): New. | |
469 | * linux-ia64-low.c (tdesc_ia64): Declare. | |
470 | (ia64_fetch_register): Adjust. | |
471 | (ia64_usrregs_info, regs_info): New globals. | |
472 | (ia64_regs_info): New function. | |
473 | (the_low_target): Adjust. | |
474 | (initialize_low_arch): New function. | |
475 | * linux-sparc-low.c (tdesc_sparc64): Declare. | |
476 | (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack): | |
477 | Adjust. | |
478 | (sparc_arch_setup): New function. | |
479 | (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals. | |
480 | (the_low_target): Adjust. | |
481 | (initialize_low_arch): New function. | |
482 | * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l) | |
483 | (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l) | |
484 | (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l) | |
485 | (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l) | |
486 | (tdesc_powerpc_64l, tdesc_powerpc_altivec64l) | |
487 | (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l) | |
488 | (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l) | |
489 | (tdesc_powerpc_isa205_vsx64l): Declare. | |
490 | (ppc_cannot_store_register, ppc_collect_ptrace_register) | |
491 | (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc) | |
492 | (ppc_set_pc, ppc_get_hwcap): Adjust. | |
493 | (ppc_usrregs_info): Forward declare. | |
494 | (!__powerpc64__) ppc_regmap_adjusted: New global. | |
495 | (ppc_arch_setup): Adjust to the current process'es target | |
496 | description. | |
497 | (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset) | |
498 | (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse) | |
499 | (ppc_store_evrregset): Adjust. | |
500 | (target_regsets): Rename to ... | |
501 | (ppc_regsets): ... this, and make static. | |
502 | (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals. | |
503 | (ppc_regs_info): New function. | |
504 | (the_low_target): Adjust. | |
505 | (initialize_low_arch): New function. | |
506 | * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1) | |
507 | (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1) | |
508 | (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1) | |
509 | (tdesc_s390x_linux64v2): Declare. | |
510 | (s390_collect_ptrace_register, s390_supply_ptrace_register) | |
511 | (s390_fill_gregset, s390_store_last_break): Adjust. | |
512 | (target_regsets): Rename to ... | |
513 | (s390_regsets): ... this, and make static. | |
514 | (s390_get_pc, s390_set_pc): Adjust. | |
515 | (s390_get_hwcap): New target_desc parameter, and use it. | |
516 | [__s390x__] (have_hwcap_s390_high_gprs): New global. | |
517 | (s390_arch_setup): Adjust to set the current process'es target | |
518 | description. Don't adjust the regmap. | |
519 | (s390_usrregs_info, s390_regsets_info, regs_info): New globals. | |
520 | [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264) | |
521 | (regs_info_3264): New globals. | |
522 | (s390_regs_info): New function. | |
523 | (the_low_target): Adjust. | |
524 | (initialize_low_arch): New function. | |
525 | * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux) | |
526 | (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare. | |
527 | [__mips64] (init_registers_mips_linux) | |
528 | (init_registers_mips_dsp_linux): Delete defines. | |
529 | [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines. | |
530 | (have_dsp): New global. | |
531 | (mips_read_description): New, based on mips_arch_setup. | |
532 | (mips_arch_setup): Reimplement. | |
533 | (get_usrregs_info): New function. | |
534 | (mips_cannot_fetch_register, mips_cannot_store_register) | |
535 | (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset) | |
536 | (mips_fill_fpregset, mips_store_fpregset): Adjust. | |
537 | (target_regsets): Rename to ... | |
538 | (mips_regsets): ... this, and make static. | |
539 | (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info) | |
540 | (dsp_regs_info, regs_info): New globals. | |
541 | (mips_regs_info): New function. | |
542 | (the_low_target): Adjust. | |
543 | (initialize_low_arch): New function. | |
544 | * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt) | |
545 | (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon): | |
546 | Declare. | |
547 | (arm_fill_vfpregset, arm_store_vfpregset): Adjust. | |
548 | (arm_read_description): New, with bits factored from | |
549 | arm_arch_setup. | |
550 | (arm_arch_setup): Reimplement. | |
551 | (target_regsets): Rename to ... | |
552 | (arm_regsets): ... this, and make static. | |
553 | (arm_regsets_info, arm_usrregs_info, regs_info): New globals. | |
554 | (arm_regs_info): New function. | |
555 | (the_low_target): Adjust. | |
556 | (initialize_low_arch): New function. | |
557 | * linux-m68k-low.c (tdesc_m68k): Declare. | |
558 | (target_regsets): Rename to ... | |
559 | (m68k_regsets): ... this, and make static. | |
560 | (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals. | |
561 | (m68k_regs_info): New function. | |
562 | (m68k_arch_setup): New function. | |
563 | (the_low_target): Adjust. | |
564 | (initialize_low_arch): New function. | |
565 | * linux-sh-low.c (tdesc_sharch): Declare. | |
566 | (target_regsets): Rename to ... | |
567 | (sh_regsets): ... this, and make static. | |
568 | (sh_regsets_info, sh_usrregs_info, regs_info): New globals. | |
569 | (sh_regs_info, sh_arch_setup): New functions. | |
570 | (the_low_target): Adjust. | |
571 | (initialize_low_arch): New function. | |
572 | * linux-bfin-low.c (tdesc_bfin): Declare. | |
573 | (bfin_arch_setup): New function. | |
574 | (bfin_usrregs_info, regs_info): New globals. | |
575 | (bfin_regs_info): New function. | |
576 | (the_low_target): Adjust. | |
577 | (initialize_low_arch): New function. | |
578 | * linux-cris-low.c (tdesc_cris): Declare. | |
579 | (cris_arch_setup): New function. | |
580 | (cris_usrregs_info, regs_info): New globals. | |
581 | (cris_regs_info): New function. | |
582 | (the_low_target): Adjust. | |
583 | (initialize_low_arch): New function. | |
584 | * linux-cris-low.c (tdesc_crisv32): Declare. | |
585 | (cris_arch_setup): New function. | |
586 | (cris_regsets_info, cris_usrregs_info, regs_info): New globals. | |
587 | (cris_regs_info): New function. | |
588 | (the_low_target): Adjust. | |
589 | (initialize_low_arch): New function. | |
590 | * linux-m32r-low.c (tdesc_m32r): Declare. | |
591 | (m32r_arch_setup): New function. | |
592 | (m32r_usrregs_info, regs_info): New globals. | |
593 | (m32r_regs_info): Adjust. | |
594 | (initialize_low_arch): New function. | |
595 | * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux) | |
596 | (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare. | |
597 | (tic6x_usrregs_info): Forward declare. | |
598 | (tic6x_read_description): New function, based on ... | |
599 | (tic6x_arch_setup): ... this. Reimplement. | |
600 | (target_regsets): Rename to ... | |
601 | (tic6x_regsets): ... this, and make static. | |
602 | (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals. | |
603 | (tic6x_regs_info): New function. | |
604 | (the_low_target): Adjust. | |
605 | (initialize_low_arch): New function. | |
606 | * linux-xtensa-low.c (tdesc_xtensa): Declare. | |
607 | (xtensa_fill_gregset, xtensa_store_gregset): Adjust. | |
608 | (target_regsets): Rename to ... | |
609 | (xtensa_regsets): ... this, and make static. | |
610 | (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New | |
611 | globals. | |
612 | (xtensa_arch_setup, xtensa_regs_info): New functions. | |
613 | (the_low_target): Adjust. | |
614 | (initialize_low_arch): New function. | |
615 | * linux-nios2-low.c (tdesc_nios2_linux): Declare. | |
616 | (nios2_arch_setup): Set the current process'es tdesc. | |
617 | (target_regsets): Rename to ... | |
618 | (nios2_regsets): ... this. | |
619 | (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals. | |
620 | (nios2_regs_info): New function. | |
621 | (the_low_target): Adjust. | |
622 | (initialize_low_arch): New function. | |
a261b8f5 PA |
623 | * linux-aarch64-low.c (tdesc_aarch64): Declare. |
624 | (aarch64_arch_setup): Set the current process'es tdesc. | |
625 | (target_regsets): Rename to ... | |
626 | (aarch64_regsets): ... this. | |
627 | (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals. | |
628 | (aarch64_regs_info): New function. | |
629 | (the_low_target): Adjust. | |
630 | (initialize_low_arch): New function. | |
3aee8918 PA |
631 | * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare |
632 | globals. | |
633 | (target_regsets): Rename to ... | |
634 | (tile_regsets): ... this. | |
635 | (tile_regsets_info, tile_usrregs_info, regs_info): New globals. | |
636 | (tile_regs_info): New function. | |
637 | (tile_arch_setup): Set the current process'es tdesc. | |
638 | (the_low_target): Adjust. | |
639 | (initialize_low_arch): New function. | |
640 | * spu-low.c (tdesc_spu): Declare. | |
641 | (spu_create_inferior, spu_attach): Set the new process'es tdesc. | |
642 | * win32-arm-low.c (tdesc_arm): Declare. | |
643 | (arm_arch_setup): New function. | |
644 | (the_low_target): Install arm_arch_setup instead of | |
645 | init_registers_arm. | |
646 | * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare. | |
647 | (init_windows_x86): Rename to ... | |
648 | (i386_arch_setup): ... this. Set `win32_tdesc'. | |
649 | (the_low_target): Adjust. | |
650 | * win32-low.c (win32_tdesc): New global. | |
651 | (child_add_thread): Don't create the thread cache here. | |
652 | (do_initial_child_stuff): Set the new process'es tdesc. | |
653 | * win32-low.h (struct target_desc): Forward declare. | |
654 | (win32_tdesc): Declare. | |
655 | * lynx-i386-low.c (tdesc_i386): Declare global. | |
656 | (lynx_i386_arch_setup): Set `lynx_tdesc'. | |
657 | * lynx-low.c (lynx_tdesc): New global. | |
658 | (lynx_add_process): Set the new process'es tdesc. | |
659 | * lynx-low.h (struct target_desc): Forward declare. | |
660 | (lynx_tdesc): Declare global. | |
661 | * lynx-ppc-low.c (tdesc_powerpc_32): Declare global. | |
662 | (lynx_ppc_arch_setup): Set `lynx_tdesc'. | |
663 | * nto-low.c (nto_tdesc): New global. | |
664 | (do_attach): Set the new process'es tdesc. | |
665 | * nto-low.h (struct target_desc): Forward declare. | |
666 | (nto_tdesc): Declare. | |
667 | * nto-x86-low.c (tdesc_i386): Declare. | |
668 | (nto_x86_arch_setup): Set `nto_tdesc'. | |
669 | ||
b1fbec62 GB |
670 | 2013-06-04 Gary Benson <gbenson@redhat.com> |
671 | ||
672 | * server.c (handle_query): Add "augmented-libraries-svr4-read+" | |
673 | to qSupported response when appropriate. | |
674 | (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read | |
675 | with nonzero-length annex. | |
676 | * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle | |
677 | arguments supplied in annex. | |
678 | ||
d1ec4ce7 DE |
679 | 2013-05-31 Doug Evans <dje@google.com> |
680 | ||
ac44adcb | 681 | PR server/15594 |
d1ec4ce7 DE |
682 | * linux-x86-low.c (ps_get_thread_area): Properly extend address to |
683 | 64 bits in 64-cross-32 environment. | |
684 | ||
9b25f2d3 PA |
685 | 2013-05-28 Pedro Alves <palves@redhat.com> |
686 | ||
687 | * Makefile.in (clean): Remove reference to aarch64-without-fpu.c. | |
688 | (aarch64-without-fpu.c): Delete rule. | |
689 | * configure.srv (aarch64*-*-linux*): Remove references to | |
690 | aarch64-without-fpu.o and aarch64-without-fpu.xml. | |
691 | * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove | |
692 | declaration. | |
693 | ||
6740dc9c PA |
694 | 2013-05-24 Pedro Alves <palves@redhat.com> |
695 | ||
696 | * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex | |
697 | instead of strchr/decode_address. Error if the range isn't split | |
698 | with a ','. Don't assume there's be a ':' in the action. | |
699 | ||
c2d6af84 PA |
700 | 2013-05-23 Yao Qi <yao@codesourcery.com> |
701 | Pedro Alves <palves@redhat.com> | |
702 | ||
703 | * linux-low.c (lwp_in_step_range): New function. | |
704 | (linux_wait_1): If the thread was range stepping and stopped | |
705 | outside the stepping range, report the stop to GDB. Otherwise, | |
706 | continue stepping. Add range stepping debug output. | |
707 | (linux_set_resume_request): Copy the step range from the resume | |
708 | request to the lwp. | |
709 | (linux_supports_range_stepping): New. | |
710 | (linux_target_ops) <supports_range_stepping>: Set to | |
711 | linux_supports_range_stepping. | |
712 | * linux-low.h (struct linux_target_ops) | |
713 | <supports_range_stepping>: New field. | |
714 | (struct lwp_info) <step_range_start, step_range_end>: New fields. | |
715 | * linux-x86-low.c (x86_supports_range_stepping): New. | |
716 | (the_low_target) <supports_range_stepping>: Set to | |
717 | x86_supports_range_stepping. | |
718 | * server.c (handle_v_cont): Handle 'r' action. | |
719 | (handle_v_requests): Append ";r" if the target supports range | |
720 | stepping. | |
721 | * target.h (struct thread_resume) <step_range_start, | |
722 | step_range_end>: New fields. | |
723 | (struct target_ops) <supports_range_stepping>: | |
724 | New field. | |
725 | (target_supports_range_stepping): New macro. | |
726 | ||
58794e1a JB |
727 | 2013-05-17 Joel Brobecker <brobecker@adacore.com> |
728 | ||
729 | * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid | |
730 | confusion in comment. | |
731 | ||
d631c5a7 JB |
732 | 2013-05-17 Joel Brobecker <brobecker@adacore.com> |
733 | ||
734 | * lynx-low.c (struct process_info_private): New type. | |
735 | (lynx_add_process): New function. | |
736 | (lynx_create_inferior, lynx_attach): Replace calls to | |
737 | add_process by calls to lynx_add_process. | |
738 | (lynx_resume): If PTID is null, then try using | |
739 | current_process()->private->last_wait_event_ptid. | |
740 | Add comments. | |
741 | (lynx_clear_inferiors): Delete. The contents of that function | |
742 | has been inlined in lynx_mourn; | |
743 | (lynx_wait_1): Save the ptid in the process's private data. | |
744 | (lynx_mourn): Free the process' private data. Replace call | |
745 | to lynx_clear_inferiors by call to clear_inferiors. | |
746 | ||
96f7a20f YQ |
747 | 2013-05-17 Yao Qi <yao@codesourcery.com> |
748 | ||
749 | * i386-low.c (i386_length_and_rw_bits): Move the comment to | |
750 | the right place. | |
751 | ||
db0dfaa0 LM |
752 | 2013-05-16 Luis Machado <lgustavo@codesourcery.com> |
753 | ||
754 | * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR, | |
755 | PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments. | |
756 | (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and | |
757 | PT_TEXT_END_ADDR guards. Update comments. | |
758 | (linux_target_op) <read_offsets>: Conditionally define to | |
759 | linux_read_offsets if the target is UCLIBC and if it defines | |
760 | PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR. | |
761 | ||
68f5f838 SL |
762 | 2013-05-06 Sandra Loosemore <sandra@codesourcery.com> |
763 | Andrew Jenner <andrew@codesourcery.com> | |
764 | ||
765 | * Makefile.in (SFILES): Add linux-nios2-low.c. | |
766 | (clean): Add action to delete nios2-linux.c. | |
767 | (nios2-linux.c): New rule. | |
768 | * configure.srv: Add nios2*-*-linux*. | |
769 | * linux-nios2-low.c: New. | |
770 | ||
1ebff1fd HAQ |
771 | 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com> |
772 | ||
773 | * tracepoint.c (cmd_qtinit): Call 'stop_tracing'. | |
774 | ||
f6150862 HZ |
775 | 2013-04-25 Hui Zhu <hui@codesourcery.com> |
776 | ||
777 | PR gdb/15186 | |
f6150862 HZ |
778 | * ax.c (ax_printf): Add fflush. |
779 | ||
614c279d TT |
780 | 2013-04-22 Tom Tromey <tromey@redhat.com> |
781 | ||
782 | * Makefile.in (SFILES): Add filestuff.c. | |
783 | (OBS): Add filestuff.o. | |
784 | (filestuff.o): New target. | |
785 | * config.in, configure: Rebuild. | |
786 | * configure.ac: Check for fdwalk, pipe2. | |
787 | ||
7d4e5717 PA |
788 | 2013-04-17 Pedro Alves <palves@redhat.com> |
789 | ||
790 | * configure.ac (USE_THREAD_DB): Delete variable. | |
791 | (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB. | |
792 | Don't AC_SUBST USE_THREAD_DB. | |
793 | * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@. | |
794 | * config.in, configure: Regenerate. | |
795 | ||
d5c93e41 PA |
796 | 2013-04-16 Pedro Alves <palves@redhat.com> |
797 | ||
798 | * linux-low.h (struct lwp_info) <thread_known>: Move under | |
799 | the USE_THREAD_DB #ifdef. | |
800 | ||
04f5fe89 PA |
801 | 2013-04-16 Pedro Alves <palves@redhat.com> |
802 | ||
803 | * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@. | |
804 | (linux-low.o): Delete rule. | |
805 | * linux-low.h: Always include "gdb_thread_db.h" instead of | |
806 | conditionally including thread_db.h. | |
807 | (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of | |
808 | HAVE_THREAD_DB_H. | |
809 | ||
480b27bf JK |
810 | 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
811 | ||
812 | * Makefile.in (install-only): Fix make install regression. | |
813 | ||
43662968 JK |
814 | 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
815 | ||
816 | Convert man pages to texinfo, new gdbinit.5 texinfo page. | |
817 | * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1 | |
818 | installation. | |
819 | * gdbserver.1: Remove. | |
820 | ||
3e74e146 PA |
821 | 2013-03-22 Pedro Alves <palves@redhat.com> |
822 | ||
823 | * linux-low.c (handle_extended_wait): Don't call | |
824 | linux_enable_event_reporting. | |
825 | ||
a8347a2a TT |
826 | 2013-03-15 Tony Theodore <tonyt@logyst.com> |
827 | ||
828 | PR build/9098: | |
829 | * Makefile.in (SHELL): Use @SHELL@. | |
830 | ||
eeb56fa7 SDJ |
831 | 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com> |
832 | ||
833 | * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing | |
834 | compiler warning. | |
835 | ||
4fa7e2ff JB |
836 | 2013-03-13 Joel Brobecker <brobecker@adacore.com> |
837 | ||
838 | * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]: | |
839 | Remove extraneous NULL element. | |
840 | ||
8ddb1965 YQ |
841 | 2013-03-13 Yao Qi <yao@codesourcery.com> |
842 | ||
843 | * tracepoint.c (traceframe_read_tsv): Look for the last matched | |
844 | 'V' block in trace frame. | |
845 | ||
9accd112 MM |
846 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
847 | ||
848 | * target.h (struct target_ops): Add btrace ops. | |
849 | (target_supports_btrace): New macro. | |
850 | (target_enable_btrace): New macro. | |
851 | (target_disable_btrace): New macro. | |
852 | (target_read_btrace): New macro. | |
853 | * gdbthread.h (struct thread_info): Add btrace field. | |
854 | * server.c: Include btrace-common.h. | |
855 | (handle_btrace_general_set): New function. | |
856 | (handle_btrace_enable): New function. | |
857 | (handle_btrace_disable): New function. | |
858 | (handle_general_set): Call handle_btrace_general_set. | |
859 | (handle_qxfer_btrace): New function. | |
860 | (struct qxfer qxfer_packets[]): Add btrace entry. | |
861 | * inferiors.c (remove_thread): Disable btrace. | |
862 | * linux-low: Include linux-btrace.h. | |
863 | (linux_low_enable_btrace): New function. | |
864 | (linux_low_read_btrace): New function. | |
865 | (linux_target_ops): Add btrace ops. | |
866 | * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o. | |
867 | Add srv_linux_btrace=yes. | |
868 | (x86_64-*-linux*): Add linux-btrace.o. | |
869 | Add srv_linux_btrace=yes. | |
870 | * configure.ac: Define HAVE_LINUX_BTRACE. | |
871 | * config.in: Regenerated. | |
872 | * configure: Regenerated. | |
873 | ||
5cc22e4c MM |
874 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
875 | ||
876 | * server.c (handle_qxfer): Preserve error message if -3 is | |
877 | returned. | |
878 | (qxfer): Document the -3 return value. | |
879 | ||
7c97f91e MM |
880 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
881 | ||
882 | * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c. | |
883 | (linux_btrace_h): New variable. | |
884 | (linux-btrace.o): New rule. | |
885 | ||
be9a119c | 886 | 2013-03-08 Stan Shebs <stan@codesourcery.com> |
f6f899bf HAQ |
887 | Hafiz Abid Qadeer <abidh@codesourcery.com> |
888 | ||
889 | * tracepoint.c (trace_buffer_size): New global. | |
890 | (DEFAULT_TRACE_BUFFER_SIZE): New define. | |
891 | (init_trace_buffer): Change to one-argument function. Allocate | |
892 | trace buffer memory. | |
893 | (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to | |
894 | handle QTBuffer:size packet. | |
895 | (cmd_bigqtbuffer_size): New function. | |
896 | (initialize_tracepoint): Call init_trace_buffer with | |
897 | DEFAULT_TRACE_BUFFER_SIZE. | |
898 | * server.c (handle_query): Add QTBuffer:size in the | |
899 | supported packets. | |
900 | ||
e64f7499 YQ |
901 | 2013-03-07 Yao Qi <yao@codesourcery.com> |
902 | ||
903 | * tracepoint.c (cur_action, cur_step_action): Make them unsigned. | |
904 | (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead | |
905 | of -1. | |
906 | (cmd_qtsp): Adjust condition. Do post increment. | |
907 | Set cur_action and cur_step_action back to 0. | |
908 | ||
f0ae6fc3 PA |
909 | 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com> |
910 | ||
911 | PR server/15236 | |
912 | * linux-low.c (linux_write_memory): Return early success if LEN is | |
913 | zero. | |
914 | ||
b5b0b0af CV |
915 | 2013-03-05 Corinna Vinschen <vinschen@redhat.de> |
916 | ||
334ad4a8 | 917 | * configure.srv: Add x86_64-*-cygwin* as target. |
b5b0b0af | 918 | |
589bc927 TT |
919 | 2013-02-28 Tom Tromey <tromey@redhat.com> |
920 | ||
921 | * configure.ac: Invoke AC_SYS_LARGEFILE. | |
922 | * configure, config.in: Rebuild. | |
923 | ||
dfe07582 CV |
924 | 2013-02-28 Corinna Vinschen <vinschen@redhat.com> |
925 | ||
926 | * win32-low.c: Throughout, fix format strings and casts of | |
927 | printf-like functions to avoid type related warnings on all | |
928 | platforms. | |
929 | (get_child_debug_event): Print dwDebugEventCode as hex since | |
930 | that's how it's usually documented. | |
931 | ||
736cd585 YQ |
932 | 2013-02-28 Yao Qi <yao@codesourcery.com> |
933 | ||
934 | * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of | |
935 | pulongest. | |
936 | ||
e1f58301 JW |
937 | 2013-02-27 Jiong Wang <jiwang@tilera.com> |
938 | ||
939 | * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c. | |
940 | (reg-tilegx32.c): New rule. | |
941 | * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj. | |
942 | * linux-tile-low.c (tile_arch_setup): New function. Invoke | |
943 | different register info initializer according to elf class. | |
944 | (init_registers_tilgx32): New function. The tilegx32 register info | |
945 | initializer. | |
946 | (tile_fill_gregset): Use "uint_reg_t" to represent register size. | |
947 | (tile_store_gregset): Likewise. | |
948 | ||
d171ca78 YQ |
949 | 2013-02-27 Yao Qi <yao@codesourcery.com> |
950 | ||
951 | * server.c (process_point_options): Print debug message when | |
952 | debug_threads is true. | |
953 | ||
282bbdf3 YQ |
954 | 2013-02-26 Yao Qi <yao@codesourcery.com> |
955 | ||
956 | * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF. | |
957 | ||
aca22551 PA |
958 | 2013-02-19 Pedro Alves <palves@redhat.com> |
959 | Kai Tietz <ktietz@redhat.com> | |
960 | ||
961 | PR gdb/15161 | |
962 | ||
963 | * server.c (handle_query) <CRC check>: Use unpack_varlen_hex | |
964 | instead of strtoul to extract address from packet. | |
965 | (process_serial_event) <'z'>: Likewise. | |
966 | ||
4f3cee1c YQ |
967 | 2013-02-18 Yao Qi <yao@codesourcery.com> |
968 | ||
969 | * linux-bfin-low.c (the_low_target): Use NULL instead of 0. | |
970 | ||
8e1d55a3 PA |
971 | 2013-02-14 Pedro Alves <palves@redhat.com> |
972 | ||
973 | Plug memory leak. | |
974 | ||
975 | * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME, | |
976 | TRACING_NOTES and TRACING_STOP_NOTE before clobbering. | |
977 | ||
458820da PA |
978 | 2013-02-14 Pedro Alves <palves@redhat.com> |
979 | ||
980 | * tracepoint.c (cmd_qtdpsrc): Use savestring. | |
981 | ||
baea0dae PA |
982 | 2013-02-14 Pedro Alves <palves@redhat.com> |
983 | ||
984 | * tracepoint.c (save_string): Delete. | |
985 | (add_tracepoint_action): Use savestring instead of save_string. | |
986 | ||
0b1afbb3 PA |
987 | 2013-02-12 Pedro Alves <palves@redhat.com> |
988 | ||
989 | * linux-xtensa-low.c: Ditto. | |
990 | * xtensa-xtregs.c: Ditto. | |
991 | ||
8a4ac37e PA |
992 | 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com> |
993 | ||
994 | * thread-db.c (thread_db_get_tls_address): NULL pointer check | |
995 | thread_db. | |
996 | ||
148de6bb MS |
997 | 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com> |
998 | ||
999 | * linux-aarch64-low.c (aarch64_arch_setup): Clamp | |
1000 | aarch64_num_wp_regs and aarch64_num_bp_regs to | |
1001 | AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively. | |
1002 | ||
55fac6e0 MS |
1003 | 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com> |
1004 | ||
1005 | * linux-aarch64-low.c (ps_get_thread_area): Replace | |
1006 | PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET. | |
1007 | ||
176eb98c MS |
1008 | 2013-02-04 Jim MacArthur <jim.macarthur@arm.com> |
1009 | Marcus Shawcroft <marcus.shawcroft@arm.com> | |
1010 | Nigel Stephens <nigel.stephens@arm.com> | |
1011 | Yufeng Zhang <yufeng.zhang@arm.com> | |
1012 | ||
1013 | * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c. | |
1014 | (aarch64.c, aarch64-without-fpu.c): New targets. | |
1015 | * configure.srv (aarch64*-*-linux*): New. | |
1016 | * linux-aarch64-low.c: New file. | |
1017 | ||
56f7af9c MS |
1018 | 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com> |
1019 | ||
43aaf8b6 | 1020 | * linux-low.c (handle_extended_wait, linux_create_inferior) |
56f7af9c MS |
1021 | (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp) |
1022 | (dequeue_one_deferred_signal, linux_resume_one_thread) | |
1023 | (fetch_register, linux_write_memory, linux_enable_event_reporting) | |
1024 | (linux_tracefork_grandchild, linux_test_for_tracefork) | |
1025 | (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add | |
1026 | PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments | |
1027 | where the argument is 0. | |
1028 | ||
60f662b0 YQ |
1029 | 2013-01-25 Yao Qi <yao@codesourcery.com> |
1030 | ||
1031 | * event-loop.c: Include "queue.h". | |
1032 | (gdb_event_p): New typedef. | |
1033 | (struct gdb_event) <next_event>: Remove. | |
1034 | (event_queue): Change to QUEUE(gdb_event_p). | |
1035 | (async_queue_event): Remove. | |
1036 | (gdb_event_xfree): New. | |
1037 | (initialize_event_loop): New. | |
1038 | (process_event): Use API from QUEUE. | |
1039 | (wait_for_event): Likewise. | |
1040 | * server.c (main): Call initialize_event_loop. | |
1041 | * server.h (initialize_event_loop): Declare. | |
1042 | ||
5ae4861a YQ |
1043 | 2013-01-18 Yao Qi <yao@codesourcery.com> |
1044 | ||
1045 | * ax.h (struct eval_agent_expr_context): New. | |
1046 | (gdb_eval_agent_expr): Update declaration. | |
1047 | * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and | |
1048 | TFRAME. Add new argument CTX. | |
1049 | * server.h (struct eval_agent_expr_context): Declare. | |
1050 | (agent_mem_read, agent_tsv_read): Update declaration. | |
1051 | (agent_mem_read_string): Likewise. | |
1052 | * tracepoint.c (eval_tracepoint_agent_expr): Remove. | |
1053 | (add_traceframe_block): Add new argument TPOINT. | |
1054 | Increase TPOINT->traceframe_usage. | |
1055 | (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of | |
1056 | eval_tracepoint_agent_expr. | |
1057 | (condition_true_at_tracepoint): Likewise. | |
1058 | (agent_mem_read): Remove argument TFRAME. Add argument CTX. | |
1059 | (agent_mem_read_string, agent_tsv_read): Likewise. | |
1060 | ||
85e00e85 YQ |
1061 | 2013-01-16 Yao Qi <yao@codesourcery.com> |
1062 | ||
1063 | * linux-low.c (linux_resume_one_lwp): Don't check | |
1064 | 'lwp->bp_reinsert != 0'. | |
1065 | ||
4039cf45 JB |
1066 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
1067 | Pedro Alves <palves@redhat.com> | |
1068 | ||
1069 | * lynx-low.c (ptrace_request_to_str): Define a temporary | |
1070 | macro and use it to simplify this function's implementation. | |
1071 | ||
9044dee2 JB |
1072 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
1073 | ||
1074 | * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace | |
1075 | sets errno. | |
1076 | ||
e6352c8f JB |
1077 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
1078 | ||
1079 | * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles. | |
1080 | ||
50681a27 JB |
1081 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
1082 | ||
1083 | * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles. | |
1084 | ||
3f6e77ef JB |
1085 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
1086 | ||
1087 | * lynx-low.c (lynx_resume): Use the resume_info parameter | |
1088 | to determine the ptid for the lynx_ptrace call, unless | |
1089 | it is equal to minus_one_ptid, in which case we use the | |
1090 | ptid of the current_inferior. | |
1091 | (lynx_wait_1): After having received a thread create/exit | |
1092 | event, resume the inferior's execution using the signaling | |
1093 | thread's ptid, rather than the old ptid. | |
1094 | ||
7fda33ae JB |
1095 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
1096 | ||
1097 | * lynx-low.c (lynx_resume): Delete variable ret. | |
1098 | ||
b9786c74 JB |
1099 | 2013-01-01 Joel Brobecker <brobecker@adacore.com> |
1100 | ||
1101 | * gdbreplay.c (gdbreplay_version): Update copyright year. | |
1102 | * server.c (gdbserver_version): Likewise. | |
1103 | ||
8b93d60f JB |
1104 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
1105 | ||
1106 | * lynx-low.c (lynx_wait_1): Add debug trace before adding | |
1107 | new thread. | |
1108 | ||
037335a7 JB |
1109 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
1110 | ||
1111 | * lynx-low.c (ptrace_request_to_str): Add handling for | |
1112 | PTRACE_GETTRACESIG. | |
1113 | ||
52d4cbd8 JB |
1114 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
1115 | ||
1116 | * lynx-low.c (lynx_attach): Delete variable new_process. | |
1117 | ||
ab8f6ca9 JB |
1118 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
1119 | ||
1120 | * lynx-low.c (lynx_create_inferior): Delete variable | |
1121 | new_process. | |
1122 | ||
78cbc024 JB |
1123 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
1124 | ||
1125 | * lynx-low.c (ptrace_request_to_str): Do not handle | |
1126 | PTRACE_GETTHREADLIST if this macro does not exist. | |
1127 | ||
14a00470 YQ |
1128 | 2012-12-15 Yao Qi <yao@codesourcery.com> |
1129 | ||
1130 | * Makefile.in (OBS): Add notif.o. | |
1131 | * notif.c, notif.h: New. | |
1132 | * server.c: Include "notif.h". | |
1133 | (struct vstop_notif) <next>: Remove. | |
1134 | <base>: New field. | |
1135 | (queue_stop_reply): Update. | |
1136 | (push_event, send_next_stop_reply): Remove. | |
1137 | (discard_queued_stop_replies): Update. | |
1138 | (notif_stop): New variable. | |
1139 | (handle_v_stopped): Remove. | |
1140 | (handle_v_requests): Don't call handle_v_stopped. Call | |
1141 | handle_ack_notif instead. | |
1142 | (queue_stop_reply_callback): Call notif_event_enque instead | |
1143 | of queue_stop_reply. | |
1144 | (handle_status): Don't call send_next_stop_reply, call | |
1145 | notif_write_event instead. | |
1146 | (kill_inferior_callback): Likewise. | |
1147 | (detach_or_kill_inferior_callback): Likewise. | |
1148 | (main): Call initialize_notif. | |
1149 | (process_serial_event): Call QUEUE_is_empty. | |
1150 | (handle_target_event): Call notif_push instead of push event. | |
1151 | * server.h (push_event): Remove declaration. | |
1152 | ||
61c125b9 TT |
1153 | 2012-12-10 Tom Tromey <tromey@redhat.com> |
1154 | ||
1155 | * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre) | |
1156 | (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New | |
1157 | macros. | |
1158 | (.c.o): Rewrite. | |
1159 | (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o) | |
1160 | (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o) | |
1161 | (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o) | |
1162 | (amd64-linux-ipa.o, ax.o): Rewrite. | |
1163 | (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o) | |
1164 | (proc-service.o, regcache.o, remote-utils.o, server.o, target.o) | |
1165 | (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove. | |
1166 | (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o) | |
1167 | (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o) | |
1168 | (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite. | |
1169 | (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o) | |
1170 | (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o) | |
1171 | (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o) | |
1172 | (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o) | |
1173 | (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o) | |
1174 | (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o) | |
1175 | (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o) | |
1176 | (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o) | |
1177 | (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o) | |
1178 | (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o) | |
1179 | (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o) | |
1180 | (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o) | |
1181 | (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o) | |
1182 | (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o) | |
1183 | (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o) | |
1184 | (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o) | |
1185 | (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o) | |
1186 | (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o) | |
1187 | (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o) | |
1188 | (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o) | |
1189 | (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o) | |
1190 | (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o) | |
1191 | (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o) | |
1192 | (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o) | |
1193 | (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o) | |
1194 | (reg-tilegx.o): Remove. | |
1195 | (all_object_files): New macro. | |
1196 | Include .deps files. | |
1197 | * aclocal.m4, configure: Rebuild. | |
1198 | * acinclude.m4: Include depstand.m4, lead-dot.m4. | |
1199 | * configure.ac: Invoke ZW_CREATE_DEPDIR, | |
1200 | ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition. | |
1201 | ||
e90e9ad9 TT |
1202 | 2012-12-05 Tom Tromey <tromey@redhat.com> |
1203 | ||
1204 | PR gdb/14917: | |
1205 | * server.h (current_insn_ptr, emit_error): Declare 'extern'. | |
1206 | ||
02d403bf | 1207 | 2012-11-28 Markus Metzger <markus.t.metzger@intel.com> |
945bf713 MM |
1208 | |
1209 | * configure.ac: Check for linux/perf_event.h. | |
1210 | * config.in: Regenerated. | |
1211 | * configure: Regenerated. | |
1212 | ||
0270a750 PA |
1213 | 2012-11-26 Maxime Villard <rustyBSD@gmx.fr> |
1214 | ||
1215 | * hostio.c (handle_readlink): Decrease buffer size | |
1216 | parameter passed to readlink by one byte. | |
1217 | ||
8c29b58e YQ |
1218 | 2012-11-26 Yao Qi <yao@codesourcery.com> |
1219 | ||
1220 | * configure.ac (build_warnings): Append '-Wempty-body'. | |
1221 | * configure: Regenerated. | |
1222 | * linux-low.c (linux_create_inferior): Use braces for empty 'if' | |
1223 | body. | |
1224 | ||
8bdce1ff PM |
1225 | 2012-11-15 Pierre Muller <muller@sourceware.org> |
1226 | ||
1227 | * configure.ac (AC_CHECK_HEADERS): Add wait.h header. | |
1228 | * config.in: Regenerate. | |
1229 | * configure: Regenerate. | |
1230 | * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header. | |
1231 | Use "gdb_wait.h" header instead of <sys/wait.h> header. | |
1232 | * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header. | |
1233 | * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h> | |
1234 | header. | |
1235 | * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header | |
1236 | instead of <sys/wait.h> header. | |
1237 | * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header. | |
1238 | ||
02d403bf | 1239 | 2012-11-13 Markus Metzger <markus.t.metzger@intel.com> |
3ba6ad0f MM |
1240 | |
1241 | * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER | |
1242 | (various make rules): Remove -DGDBSERVER | |
1243 | ||
fbd5db48 YQ |
1244 | 2012-11-09 Yao Qi <yao@codesourcery.com> |
1245 | ||
1246 | * spu-low.c (current_ptid): Move it to .. | |
1247 | * gdbthread.h: ... here. New. | |
1248 | * remote-utils.c (read_ptid): Use macro 'current_ptid'. | |
1249 | * server.c (myresume, process_serial_event): Likewise. | |
1250 | * thread-db.c (thread_db_find_new_threads): Likewise. | |
1251 | * tracepoint.c (run_inferior_command): Likewise. | |
1252 | ||
b3dc46ff AB |
1253 | 2012-10-01 Andrew Burgess <aburgess@broadcom.com> |
1254 | ||
1255 | * server.c (handle_search_memory_1): Include access length in | |
1256 | warning message. | |
1257 | ||
07c04788 HPN |
1258 | 2012-09-05 Michael Brandt <michael.brandt@axis.com> |
1259 | ||
1260 | * linux-crisv32-low.c: Fix compile errors. | |
1261 | ||
918d227b YQ |
1262 | 2012-09-04 Yao Qi <yao@codesourcery.com> |
1263 | ||
1264 | * tracepoint.c (cmd_qtsv): Adjust debug message. | |
1265 | Don't check CUR_TPOINT. | |
1266 | ||
18c1b81a YQ |
1267 | 2012-08-28 Yao Qi <yao@codesourcery.com> |
1268 | ||
1269 | * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF. | |
1270 | * server.h: Include 'libiberty.h' and 'ansidecl.h'. | |
1271 | (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove. | |
1272 | Remove declarations of xmalloc, xreallloc, xstrdup and | |
1273 | freeargv. | |
1274 | * Makefile.in (libiberty_h): New. | |
1275 | (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'. | |
1276 | (linux-bfin-low.o): Append dependency 'libiberty.h'. | |
1277 | ||
dc82f37b YQ |
1278 | 2012-08-23 Yao Qi <yao@codesourcery.com> |
1279 | ||
1280 | * server.h: Remove declaration of 'xsnprintf'. | |
1281 | ||
406b1477 KS |
1282 | 2012-08-22 Keith Seitz <keiths@redhat.com> |
1283 | ||
1284 | * server.h: Include build-gnulib-gbserver/config.h. | |
1285 | * gdbreplay.c: Likewise. | |
1286 | ||
e6712ff1 DE |
1287 | 2012-08-08 Doug Evans <dje@google.com> |
1288 | ||
1289 | * Makefile.in (SFILES): Add gdb_vecs.c. | |
1290 | (OBS): Add gdb_vecs.o. | |
1291 | (gdb_vecs_h, host_defs_h): New variables. | |
1292 | (thread-db.o): Add $(gdb_vecs_h) dependency. | |
1293 | (gdb_vecs.o): New rule. | |
1294 | * thread-db.c: #include "gdb_vecs.h". | |
1295 | (thread_db_load_search): Use a vector to iterate over path elements. | |
1296 | Handle text appearing after "$pdir". | |
1297 | ||
1298 | * configure.ac: Add check for strstr. | |
1299 | * config.in: Regenerate. | |
1300 | * configure: Regenerate. | |
1301 | ||
7c3270ae UW |
1302 | 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
1303 | ||
1304 | * hostio.c (handle_pread): If pread fails, fall back to attempting | |
1305 | lseek/read. | |
1306 | (handle_pwrite): Likewise for pwrite. | |
1307 | ||
b62e2b27 UW |
1308 | 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
1309 | ||
1310 | * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish | |
1311 | between unsupported TYPE and unimplementable ADDR/LEN combination. | |
1312 | (arm_insert_point): Act on new return value. | |
1313 | ||
78a99e91 PA |
1314 | 2012-07-31 Pedro Alves <palves@redhat.com> |
1315 | ||
1316 | * server.c (process_point_options): Only skip tokens if we find | |
1317 | one that is unrecognized. Don't treat 'X' specially while | |
1318 | skipping unrecognized tokens. | |
1319 | ||
fcf303ab UW |
1320 | 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org> |
1321 | ||
1322 | * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt | |
1323 | to 4-byte-align HW breakpoint addresses for Thumb. | |
1324 | ||
7255706c YQ |
1325 | 2012-07-27 Yao Qi <yao@codesourcery.com> |
1326 | ||
1327 | PR remote/14161. | |
1328 | ||
1329 | * server.h: Declare gdb_agent_about_to_close. | |
1330 | * target.c (kill_inferior): Include "agent.h". | |
1331 | New. Send command 'kill'. | |
1332 | * target.h (kill_inferior): Removed macro. | |
1333 | * tracepoint.c (gdb_agent_about_to_close): New. | |
1334 | (gdb_agent_helper_thread): Handle command 'close'. | |
1335 | Wait endlessly until the inferior stops. | |
1336 | Install gdb_agent_remove_socket to atexit hook. | |
1337 | (agent_socket_name): New static variable. | |
1338 | (gdb_agent_socket_init): Replace local variable 'name' with | |
1339 | 'agent_socket_name'. | |
1340 | (gdb_agent_remove_socket): New. | |
1341 | ||
5a3f286f YQ |
1342 | 2012-07-27 Yao Qi <yao@codesourcery.com> |
1343 | ||
1344 | * server.c (process_point_options): Stop at 'X' when parsing. | |
1345 | ||
961bd387 ME |
1346 | 2012-07-19 Michael Eager <eager@eagercon.com> |
1347 | ||
a261b8f5 | 1348 | * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate |
961bd387 ME |
1349 | to hw_execute. |
1350 | * linux-x86-low.c (x86_insert_point, x86_remove_point): | |
1351 | Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del | |
1352 | hardware breakpoint. | |
1353 | ||
aa7c7447 JK |
1354 | 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
1355 | ||
1356 | * gdbserver/linux-low.c (initialize_low): Call | |
1357 | linux_ptrace_init_warnings. | |
1358 | ||
7f216e7c DE |
1359 | 2012-07-02 Doug Evans <dje@google.com> |
1360 | ||
1361 | * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from | |
1362 | pointer to int. | |
1363 | ||
d3ce09f5 SS |
1364 | 2012-07-02 Stan Shebs <stan@codesourcery.com> |
1365 | ||
1366 | * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define. | |
1367 | (ax.o): Add it to build rule. | |
1368 | (ax-ipa.o): Ditto. | |
1369 | (OBS): Add format.o. | |
1370 | (IPA_OBS): Add format.o. | |
1371 | * server.c (handle_query): Claim support for breakpoint commands. | |
1372 | (process_point_options): Add command case. | |
1373 | (process_serial_event): Leave running if there are printfs in | |
1374 | effect. | |
1375 | * mem-break.h (any_persistent_commands): Declare. | |
1376 | (add_breakpoint_commands): Declare. | |
1377 | (gdb_no_commands_at_breakpoint): Declare. | |
1378 | (run_breakpoint_commands): Declare. | |
1379 | * mem-break.c (struct point_command_list): New struct. | |
1380 | (struct breakpoint): New field command_list. | |
1381 | (any_persistent_commands): New function. | |
1382 | (add_commands_to_breakpoint): New function. | |
1383 | (add_breakpoint_commands): New function. | |
1384 | (gdb_no_commands_at_breakpoint): New function. | |
1385 | (run_breakpoint_commands): New function. | |
1386 | * linux-low.c (linux_wait_1): Test for and run breakpoint commands | |
1387 | locally. | |
1388 | * ax.c: Include format.h. | |
1389 | (ax_printf): New function. | |
1390 | (gdb_eval_agent_expr): Add printf opcode. | |
1391 | ||
2f8f6aed YQ |
1392 | 2012-06-13 Yao Qi <yao@codesourcery.com> |
1393 | ||
1394 | * server.c (start_inferior): Remove duplicated writes to fields | |
1395 | 'last_resume_kind' and 'last_status' of 'current_inferior'. | |
1396 | ||
0c9070b3 YQ |
1397 | 2012-06-12 Yao Qi <yao@codesourcery.com> |
1398 | Pedro Alves <palves@redhat.com> | |
1399 | ||
1400 | * linux-low.c (linux_set_resume_request): Simplify predicate. Add | |
1401 | comment. | |
1402 | * server.c (handle_v_cont): Extend comment. | |
1403 | ||
c52daf70 YQ |
1404 | 2012-06-11 Yao Qi <yao@codesourcery.com> |
1405 | ||
1406 | * linux-low.c (linux_attach): Add 'static'. | |
1407 | ||
d38bbb0a YQ |
1408 | 2012-06-06 Yao Qi <yao@codesourcery.com> |
1409 | ||
1410 | * ax.c (gdb_eval_agent_expr): Print `top' in hex. | |
1411 | ||
89dc0afd JK |
1412 | 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
1413 | ||
1414 | Fix gcc -flto compilation warning. | |
1415 | * server.c (main): Make variable multi_mode and attach volatile. | |
1416 | ||
75f62ce7 TJB |
1417 | 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
1418 | ||
1419 | * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP | |
1420 | if the platform doesn't know about it. | |
1421 | ||
65f479b6 PA |
1422 | 2012-05-30 Jeff Kenton <jkenton@tilera.com> |
1423 | ||
1424 | * Makefile.in (SFILES): Add linux-tile-low.c. | |
1425 | (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules. | |
1426 | * configure.srv: Handle tilegx-*-linux*. | |
1427 | * linux-tile-low.c: New file. | |
1428 | ||
0c5bf5a9 JK |
1429 | 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
1430 | ||
1431 | * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1. | |
1432 | ||
a493e3e2 PA |
1433 | 2012-05-24 Pedro Alves <palves@redhat.com> |
1434 | ||
1435 | PR gdb/7205 | |
1436 | ||
43aaf8b6 | 1437 | Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. |
a493e3e2 | 1438 | |
2ea28649 PA |
1439 | 2012-05-24 Pedro Alves <palves@redhat.com> |
1440 | ||
1441 | PR gdb/7205 | |
1442 | ||
1443 | Replace target_signal with gdb_signal throughout. | |
1444 | ||
8d409d16 MR |
1445 | 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com> |
1446 | ||
1447 | * linux-low.c (linux_store_registers): Avoid the copying sequence | |
1448 | when no data has been retrieved by ptrace. | |
1449 | ||
23512c01 MGD |
1450 | 2012-05-22 Will Deacon <will.deacon@arm.com> |
1451 | ||
1452 | * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)): | |
1453 | Include asm/ptrace.h. | |
1454 | (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not | |
1455 | already defined. | |
1456 | ||
4934b29e MR |
1457 | 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com> |
1458 | ||
1459 | * linux-low.c (linux_store_registers): Don't re-retrieve data | |
1460 | with ptrace that has already been obtained from /proc. Always | |
1461 | copy any data retrieved with ptrace to the buffer supplied. | |
1462 | ||
bde24c0a PA |
1463 | 2012-05-11 Yao Qi <yao@codesourcery.com> |
1464 | Pedro Alves <palves@redhat.com> | |
1465 | ||
1466 | * linux-low.c (enum stopping_threads_kind): New. | |
1467 | (stopping_threads): Change type to `enum stopping_threads_kind'. | |
1468 | (handle_extended_wait): If stopping and suspending threads, leave | |
1469 | the new_lwp suspended too. | |
1470 | (linux_wait_for_event): Adjust. | |
1471 | (stop_all_lwps): Set `stopping_threads' to | |
1472 | STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on | |
1473 | whether we're suspending threads or just stopping them. Assert no | |
1474 | recursion happens. | |
1475 | ||
623b6bdf YQ |
1476 | 2012-04-29 Yao Qi <yao@codesourcery.com> |
1477 | ||
1478 | * server.h: Move some code to ... | |
1479 | * gdbthread.h: ... here. New. | |
1480 | * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h | |
1481 | (remote-utils.o, server.o, target.o tracepoint.o): Likewise. | |
1482 | (nto-low.o, win32-low.o): Likewise. | |
1483 | * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h. | |
1484 | * regcache.c, remote-utils.c, server.c: Likewise. | |
1485 | * target.c, tracepoint.c, win32-low.c: Likewise. | |
1486 | ||
f15f9948 TJB |
1487 | 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
1488 | ||
1489 | * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c. | |
1490 | (PTRACE_ARG4_TYPE): Likewise. | |
1491 | (PTRACE_XFER_TYPE): Likewise. | |
1492 | * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of | |
1493 | ptrace to PTRACE_ARG3_TYPE. | |
1494 | * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h. | |
1495 | (PTRACE_ARG4_TYPE): Likewise. | |
1496 | (PTRACE_XFER_TYPE): Likewise. | |
1497 | (linux_detach_one_lwp): Cast fourth argument of | |
1498 | ptrace to long then PTRACE_ARG4_TYPE. | |
1499 | (regsets_fetch_inferior_registers): Cast third argument of | |
1500 | ptrace to long then PTRACE_ARG3_TYPE. | |
1501 | (regsets_store_inferior_registers): Likewise. | |
1502 | ||
38ea300a PA |
1503 | 2012-04-20 Pedro Alves <palves@redhat.com> |
1504 | ||
1505 | * configure: Regenerate. | |
1506 | ||
c971b7fa PA |
1507 | 2012-04-19 Pedro Alves <palves@redhat.com> |
1508 | ||
43aaf8b6 | 1509 | * Makefile.in (GNULIB_BUILDDIR): New. |
c971b7fa | 1510 | (LIBGNU, INCGNU, GNULIB_H): Adjust. |
43aaf8b6 PA |
1511 | (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New. |
1512 | (all, install-only, uninstall, clean-info, all-lib, clean): No | |
1513 | longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do. | |
1514 | (maintainer-clean realclean distclean): Use subdir_do. | |
1515 | (subdir_do): New. | |
1516 | (gnulib/import/Makefile): Adjust. Replace gnulib/import with | |
c971b7fa | 1517 | $(GNULIB_BUILDDIR). Don't pass argument to config.status. |
43aaf8b6 PA |
1518 | * acinclude.m4: Include acx_configure_dir.m4. |
1519 | * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE | |
1520 | calls. Call AC_PROG_RANLIB. Configure gnulib using | |
1521 | ACX_CONFIGURE_DIR. | |
1522 | (GNULIB): New. | |
1523 | (GNULIB_STDINT_H): Adjust. | |
1524 | (AC_OUTPUT): Don't output gnulib/Makefile anymore. | |
1525 | * gdbreplay.c: Include build-gnulib/config.h. | |
1526 | * server.h: Likewise. | |
1527 | * aclocal.m4: Regenerate. | |
1528 | * config.in: Regenerate. | |
1529 | * configure: Regenerate. | |
c971b7fa | 1530 | |
809277f8 PA |
1531 | 2012-04-19 Pedro Alves <palves@redhat.com> |
1532 | ||
1533 | * Makefile.in (LIBGNU, INCGNU): Adjust. | |
1534 | (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust. | |
1535 | (all, install-only, uninstall, clean-info, all-lib, clean) | |
1536 | (maintainer-clean, Makefile, gnulib/Makefile): Adjust. | |
1537 | * configure.ac: Adjust AC_OUTPUT output. | |
1538 | * aclocal.m4: Regenerate. | |
1539 | * configure: Regenerate. | |
1540 | ||
fd9bb8b8 PA |
1541 | 2012-04-19 Pedro Alves <palves@redhat.com> |
1542 | ||
1543 | * Makefile.in (generated_files): New. | |
1544 | (server_h): Remove the explicit dependency on config.h, and depend | |
1545 | on $generated_files. | |
1546 | ||
1c298c66 PA |
1547 | 2012-04-19 Pedro Alves <palves@redhat.com> |
1548 | ||
1549 | * Makefile.in (INCGNU): Add -Ignulib. | |
1550 | ||
57c4b50b PA |
1551 | 2012-04-19 Pedro Alves <palves@redhat.com> |
1552 | ||
1553 | * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ... | |
1554 | (INCGNU): ... this, and spell out -I here. | |
1555 | (GNULIB_LIB): Rename to ... | |
1556 | (LIBGNU): ... this. | |
1557 | (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust. | |
1558 | ||
1030e047 PA |
1559 | 2012-04-19 Pedro Alves <palves@redhat.com> |
1560 | ||
1561 | * config.in: Regenerate. | |
1562 | ||
447d4319 PA |
1563 | 2012-04-19 Pedro Alves <palves@redhat.com> |
1564 | ||
1565 | * configure.ac: Remove AC_CHECK_DECLS check for memmem. | |
1566 | * server.h (memmem): Remove declaration. | |
1567 | * config.in: Regenerate. | |
1568 | * configure: Regenerate. | |
1569 | ||
aad9eab9 YQ |
1570 | 2012-04-19 Yao Qi <yao@codesourcery.com> |
1571 | ||
1572 | * Makefile.in (SFILES): Add common/vec.c. | |
1573 | (OBS): Add vec.o. | |
1574 | (vec.o): New rule. | |
1575 | ||
3e10640f YQ |
1576 | 2012-04-19 Yao Qi <yao@codesourcery.com> |
1577 | ||
1578 | * remote-utils.c (prepare_resume_reply): Replace with macro | |
1579 | target_core_of_thread. | |
1580 | * server.c (handle_qxfer_threads_proper): Likewise. | |
1581 | * target.h (traget_core_of_thread): New macro. | |
1582 | ||
71622373 PA |
1583 | 2012-04-18 Pedro Alves <palves@redhat.com> |
1584 | ||
1585 | * aclocal.m4: Regenerate. | |
1586 | * configure: Regenerate. | |
1587 | ||
80d26939 YQ |
1588 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
1589 | ||
1590 | * tracepoint.c (cmd_qtstart): Download tracepoints even when they are | |
1591 | duplicated on address. | |
1592 | ||
42476b70 YQ |
1593 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
1594 | ||
1595 | * tracepoint.c (COPY_FIELD_TO_BUF): New macro. | |
1596 | (struct tracepoint_action_ops) <send>: New field. | |
1597 | (m_tracepoint_action_send, r_tracepoint_action_send): New. | |
1598 | (agent_expr_send, x_tracepoint_action_send): New. | |
1599 | (l_tracepoint_action_send): New. | |
1600 | (cmd_qtdp): Download and install tracepoint | |
1601 | according to `use_agent'. | |
1602 | (run_inferior_command): Add one more parameter `len'. | |
1603 | Update callers. | |
1604 | (tracepoint_send_agent): New. | |
1605 | (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent. | |
1606 | ||
7bc83639 YQ |
1607 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
1608 | ||
1609 | * tracepoint.c (download_tracepoints): Moved to ... | |
1610 | (cmd_qtstart): ... here. | |
1611 | ||
5f18041e YQ |
1612 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
1613 | ||
1614 | * tracepoint.c: Include inttypes.h. | |
1615 | (struct collect_memory_action): Use sized types. | |
1616 | (struct tracepoint): Likewise. | |
1617 | (cmd_qtdp, stop_tracing): Update print specifiers. | |
1618 | (cmd_qtp, response_tracepoint): Likewise. | |
1619 | (collect_data_at_tracepoint): Likewise. | |
1620 | (collect_data_at_step): Likewise. | |
1621 | ||
55a8c076 YQ |
1622 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
1623 | ||
1624 | Import gnulib module inttypes. | |
1625 | * aclocal.m4, config.in, configure: Regenerated. | |
1626 | ||
dc750257 YQ |
1627 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
1628 | ||
1629 | * Makefile.in (maintainer-clean, realclean, distclean): Remove | |
1630 | Makefile and config.status at last. | |
1631 | ||
0ab5faf9 YQ |
1632 | 2012-04-13 Yao Qi <yao@codesourcery.com> |
1633 | ||
1634 | * tracepoint.c: Include stdint.h unconditionally. | |
1635 | ||
18f5fd81 TJB |
1636 | 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
1637 | ||
1638 | * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based | |
1639 | on BFD_HAVE_SYS_PROCFS_TYPE. | |
1640 | * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h. | |
1641 | * configure: Regenerate. | |
1642 | * config.in: Likewise. | |
1643 | ||
4d47af5c L |
1644 | 2012-04-13 H.J. Lu <hongjiu.lu@intel.com> |
1645 | ||
1646 | * Makefile.in (clean): Also remove x32.c x32-linux.c | |
1647 | x32-avx.c x32-avx-linux.c. | |
1648 | (x32.o): New target. | |
1649 | (x32.c): Likewise. | |
1650 | (x32-linux.o): Likewise. | |
1651 | (x32-linux.c): Likewise. | |
1652 | (x32-avx.o): Likewise. | |
1653 | (x32-avx.c): Likewise. | |
1654 | (x32-avx-linux.o): Likewise. | |
1655 | (x32-avx-linux.c): Likewise. | |
1656 | ||
1657 | * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o. | |
1658 | (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o. | |
1659 | (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml. | |
1660 | (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml. | |
1661 | (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml | |
1662 | i386/x32-avx-linux.xml. | |
1663 | ||
1664 | * linux-x86-low.c (init_registers_x32_linux): New prototype. | |
1665 | (init_registers_x32_avx_linux): Likwise. | |
1666 | (x86_linux_update_xmltarget): Call init_registers_x32_linux | |
1667 | or init_registers_x32_avx_linux if linux_is_elf64 is false. | |
1668 | ||
ecedbe58 PA |
1669 | 2012-04-13 Pedro Alves <palves@redhat.com> |
1670 | ||
1671 | * Makefile.in (GNULIB_FLAGS_TO_PASS): New. | |
1672 | (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH. | |
1673 | (all, uninstall, clean-info, all-lib, clean, maintainer-clean) | |
1674 | (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to | |
1675 | the sub-make. | |
1676 | ||
c92b5177 L |
1677 | 2012-04-12 H.J. Lu <hongjiu.lu@intel.com> |
1678 | ||
1679 | * linux-x86-low.c (compat_x32_clock_t): New. | |
1680 | (compat_x32_siginfo_t): Likewise. | |
1681 | (compat_x32_siginfo_from_siginfo): Likewise. | |
1682 | (siginfo_from_compat_x32_siginfo): Likewise. | |
1683 | (linux_is_elf64): Likewise. | |
1684 | (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo | |
1685 | and siginfo_from_compat_x32_siginfo for x32. | |
1686 | (x86_arch_setup): Set linux_is_elf64. | |
1687 | ||
214d508e L |
1688 | 2012-04-12 H.J. Lu <hongjiu.lu@intel.com> |
1689 | ||
1690 | PR gdb/13969 | |
1691 | * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the | |
1692 | e_machine field. | |
1693 | (linux_qxfer_libraries_svr4): Update call to elf_64_file_p. | |
1694 | * linux-low.h (linux_pid_exe_is_elf_64_file): Updated. | |
1695 | * linux-x86-low.c (x86_arch_setup): Check if GDBserver is | |
1696 | compatible with process. | |
1697 | ||
c9a1864a YQ |
1698 | 2012-04-12 Yao Qi <yao@codesourcery.com> |
1699 | ||
1700 | * Makefile.in: Define abs_top_srcdir and abs_srcdir. | |
1701 | (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR. | |
1702 | (install-only, install-info, clean): Handle sub dir gnulib. | |
1703 | (all-lib, am--refresh): New targets. | |
1704 | (memmem.o): Remove target. | |
1705 | * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR. | |
1706 | Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make. | |
1707 | (AC_REPLACE_FUNCS): Remove memmem. | |
1708 | Invoke gl_INIT and AM_INIT_AUTOMAKE. | |
1709 | (AC_OUTPUT): Generate Makefile in gnulib/. | |
1710 | * aclocal.m4, config.in, configure: Regenerated. | |
1711 | ||
367ba2c2 MR |
1712 | 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com> |
1713 | ||
1714 | * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP. | |
1715 | ||
9d236627 PA |
1716 | 2012-04-05 Pedro Alves <palves@redhat.com> |
1717 | ||
1718 | -Werror=strict-aliasing | |
1719 | ||
1720 | * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned | |
1721 | pointer. | |
1722 | ||
111217b3 PA |
1723 | 2012-04-04 Pedro Alves <palves@redhat.com> |
1724 | ||
1725 | * linux-sparc-low.c (sparc_fill_gregset_to_stack) | |
1726 | (sparc_store_gregset_from_stack, sparc_store_gregset) | |
1727 | (sparc_breakpoint_at): Fix formatting. | |
1728 | ||
8365dcf5 TJB |
1729 | 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
1730 | ||
1731 | * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t | |
1732 | are available. | |
1733 | * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef. | |
1734 | [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise. | |
1735 | * config.in: Regenerate. | |
1736 | * configure: Likewise. | |
1737 | ||
689cc2ae PA |
1738 | 2012-03-29 Pedro Alves <palves@redhat.com> |
1739 | ||
1740 | * linux-low.c (regsets_store_inferior_registers) [__sparc__]: | |
1741 | Correct ptrace arguments. | |
1742 | ||
c14dfd32 PA |
1743 | 2012-03-28 Pedro Alves <palves@redhat.com> |
1744 | ||
1745 | * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC. | |
1746 | (IA64_GR0_REGNUM, IA64_FR0_REGNUM) | |
1747 | (IA64_FR1_REGNUM): New defines. | |
1748 | (ia64_fetch_register): New. | |
1749 | (the_low_target): Install it. | |
1750 | * linux-low.h (struct linux_target_ops) <fetch_register>: New | |
1751 | field. | |
1752 | * linux-low.c (linux_fetch_registers): Try the | |
1753 | the_low_target.fetch_register hook first. | |
1754 | ||
1755 | * linux-arm-low.c (the_low_target): Adjust. | |
1756 | * linux-bfin-low.c (the_low_target): Adjust. | |
1757 | * linux-cris-low.c (the_low_target): Adjust. | |
1758 | * linux-crisv32-low.c (the_low_target): Adjust. | |
1759 | * linux-m32r-low.c (the_low_target): Adjust. | |
1760 | * linux-m68k-low.c (the_low_target): Adjust. | |
1761 | * linux-mips-low.c (the_low_target): Adjust. | |
1762 | * linux-ppc-low.c (the_low_target): Adjust. | |
1763 | * linux-s390-low.c (the_low_target): Adjust. | |
1764 | * linux-sh-low.c (the_low_target): Adjust. | |
1765 | * linux-sparc-low.c (the_low_target): Adjust. | |
1766 | * linux-tic6x-low.c (the_low_target): Adjust. | |
1767 | * linux-x86-low.c (the_low_target): Adjust. | |
1768 | * linux-xtensa-low.c (the_low_target): Adjust. | |
1769 | ||
63c88e13 PA |
1770 | 2012-03-26 Pedro Alves <palves@redhat.com> |
1771 | ||
1772 | * server.c (handle_qxfer_libraries): Don't bail early if | |
1773 | the_target->qxfer_libraries_svr4 is not NULL. | |
1774 | ||
fb723180 PA |
1775 | 2012-03-26 Pedro Alves <palves@redhat.com> |
1776 | ||
1777 | * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment. | |
1778 | ||
0afae3cf PA |
1779 | 2012-03-23 Pedro Alves <palves@redhat.com> |
1780 | ||
1781 | * linux-low.c (linux_qxfer_libraries_svr4): Terminate the | |
1782 | "library-list-svr4" element's start tag when the the DSO list is | |
1783 | empty. | |
1784 | ||
485f1ee4 PA |
1785 | 2012-03-23 Pedro Alves <palves@redhat.com> |
1786 | ||
1787 | * linux-low.c (read_one_ptr): Read the inferior's pointer through | |
1788 | a variable whose type size is the same as the inferior's pointer | |
1789 | size. | |
1790 | ||
a5362b9a TS |
1791 | 2012-03-21 Thomas Schwinge <thomas@codesourcery.com> |
1792 | ||
1793 | * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of | |
1794 | struct siginfo. | |
1795 | * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise. | |
1796 | * linux-x86-low.c (x86_siginfo_fixup): Likewise. | |
1797 | * linux-low.h: Include <signal.h>. | |
1798 | (struct siginfo): Remove forward declaration. | |
1799 | (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of | |
1800 | struct siginfo. | |
1801 | ||
d226c142 MF |
1802 | 2012-03-21 Mike Frysinger <vapier@gentoo.org> |
1803 | ||
1804 | * .gitignore: Ignore more files. | |
1805 | ||
122f36ef PA |
1806 | 2012-03-19 Pedro Alves <palves@redhat.com> |
1807 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
1808 | ||
1809 | * server.c (cont_thread, general_thread): Add describing comments. | |
1810 | (start_inferior): Clear `cont_thread'. | |
1811 | (handle_v_cont): Don't set `cont_thread' if resuming all threads | |
1812 | of a process. | |
1813 | ||
fc3e5175 YQ |
1814 | 2012-03-15 Yao Qi <yao@codesourcery.com> |
1815 | ||
1816 | * tracepoint.c (install_tracepoint): Move duplicated tracepoint | |
1817 | handling to ... | |
1818 | (cmd_qtdp): ... here. | |
1819 | ||
8d0d92cd YQ |
1820 | 2012-03-15 Yao Qi <yao@codesourcery.com> |
1821 | ||
1822 | * tracepoint.c (struct tracepoint_action_ops): New. | |
1823 | (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field. | |
1824 | (m_tracepoint_action_download): New. | |
1825 | (r_tracepoint_action_download): New. | |
1826 | (x_tracepoint_action_download): New. | |
1827 | (l_tracepoint_action_download): New. | |
1828 | (add_tracepoint_action): Install `action->ops' according type. | |
1829 | (download_tracepoint_1): Move code `download' function pointer | |
1830 | of various tracepoint_action_ops. | |
1831 | ||
87b0bb13 JK |
1832 | 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
1833 | ||
1834 | * linux-low.c (linux_attach_lwp_1): New variable buffer. Call | |
1835 | linux_ptrace_attach_warnings. | |
1836 | ||
5f572dec JK |
1837 | 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
1838 | ||
1839 | * Makefile.in (linux-ptrace.o): New. | |
1840 | * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*) | |
1841 | (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*) | |
1842 | (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*) | |
1843 | (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux) | |
1844 | (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ | |
1845 | of these targets. | |
1846 | * linux-low.c (linux_attach_lwp_1): Remove redundent else clause. | |
1847 | ||
f4647387 YQ |
1848 | 2012-03-08 Yao Qi <yao@codesourcery.com> |
1849 | Pedro Alves <palves@redhat.com> | |
1850 | ||
1851 | Fix PR server/13392. | |
1852 | * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check | |
1853 | offset of JMP insn. | |
1854 | * tracepoint.c (remove_tracepoint): New. | |
1855 | (cmd_qtdp): Call remove_tracepoint when failed to install. | |
1856 | ||
9b224c5e PA |
1857 | 2012-03-07 Pedro Alves <palves@redhat.com> |
1858 | ||
1859 | * linux-low.c (get_detach_signal): New. | |
1860 | (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT. | |
1861 | Pass on pending signals to PTRACE_DETACH. Check the result of the | |
1862 | ptrace call. | |
1863 | * server.c (program_signals, program_signals_p): New. | |
1864 | (handle_general_set): Handle QProgramSignals. | |
1865 | * server.h (program_signals, program_signals_p): Declare. | |
1866 | ||
e237a7e2 JK |
1867 | 2012-03-05 Pedro Alves <palves@redhat.com> |
1868 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
1869 | ||
1870 | * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found. | |
1871 | New comment why. | |
1872 | ||
5808517f YQ |
1873 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
1874 | ||
1875 | * tracepoint.c (tracepoint_look_up_symbols): Update call to | |
1876 | agent_look_up_symbols. | |
1877 | ||
58b4daa5 YQ |
1878 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
1879 | ||
1880 | * Makefile.in (linux-low.o): Keep dependence on agent.h. | |
1881 | (linux-x86-low.o): Likewise. | |
1882 | * server.h: Remove in_process_agent_loaded. | |
1883 | * tracepoint.c (in_process_agent_loaded): Removed. Moved it | |
1884 | common/agent.c. | |
1885 | Update callers. | |
1886 | ||
8ffcbaaf YQ |
1887 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
1888 | ||
1889 | * tracepoint.c (gdb_agent_capability): New global. | |
1890 | (in_process_agent_loaded_ust): Renamed to | |
1891 | `in_process_agent_supports_ust'. | |
1892 | Update callers. | |
1893 | (in_process_agent_supports_ust): Call agent_capability_check. | |
1894 | (clear_installed_tracepoints): Assert that agent supports | |
1895 | agent. | |
1896 | ||
d1feda86 YQ |
1897 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
1898 | ||
1899 | * linux-low.c (linux_supports_agent): New. | |
1900 | (linux_target_ops): Initialize field `supports_agent' with | |
1901 | linux_supports_agent. | |
1902 | * target.h (struct target_ops) <supports_agent>: New. | |
1903 | (target_supports_agent): New macro. | |
1904 | * server.c (handle_general_set): Handle packet 'QAgent'. | |
1905 | (handle_query): Send `QAgent+'. | |
1906 | * Makefile.in (server.o): Depends on agent.h. | |
1907 | ||
2fa291ac YQ |
1908 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
1909 | ||
1910 | * Makefile.in (OBS): Add agent.o. | |
1911 | Add new rule for agent.o. | |
1912 | Track dependence of tracepoint.c on agent.h. | |
1913 | * tracepoint.c (run_inferior_command_1): | |
1914 | (run_inferior_command): Call agent_run_command. | |
1915 | (gdb_ust_connect_sync_socket): Deleted. Move it to | |
1916 | common/agent.c. | |
1917 | (resume_thread, stop_thread): Likewise. | |
1918 | (gdb_ust_socket_init): Renamed to ... | |
1919 | (gdb_agent_socket_init): ... New. | |
1920 | (gdb_ust_thread): Renamed to ... | |
1921 | (gdb_agent_helper_thread): ... New. | |
1922 | (gdb_ust_init): Move some code to ... | |
1923 | (gdb_agent_init): ... here. New. | |
1924 | [HAVE_UST]: Call gdb_ust_init. | |
1925 | (initialize_tracepoint_ftlib): Call gdb_agent_init. | |
1926 | * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS. | |
1927 | * config.in, configure: Regenerated. | |
1928 | ||
05044653 PA |
1929 | 2012-03-02 Pedro Alves <palves@redhat.com> |
1930 | ||
1931 | * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete. | |
1932 | * linux-low.c (struct simple_pid_list): New. | |
1933 | (stopped_pids): New a struct simple_pid_list pointer. | |
1934 | (add_to_pid_list, pull_pid_from_list): New. | |
1935 | (handle_extended_wait): Don't assume the first signal new children | |
1936 | report is SIGSTOP. Adjust call to pull_pid_from_list. | |
1937 | (linux_wait_for_lwp): Adjust. | |
1938 | ||
8d00225b YQ |
1939 | 2012-03-02 Yao Qi <yao@codesourcery.com> |
1940 | ||
1941 | * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in | |
1942 | debug log. | |
1943 | ||
19560ba5 YQ |
1944 | 2012-03-02 Yao Qi <yao@codesourcery.com> |
1945 | ||
1946 | * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters | |
1947 | `stop_pc' and `tpoint'. Update caller. | |
1948 | ||
1faeff08 MR |
1949 | 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com> |
1950 | ||
1951 | * linux-low.h (linux_target_ops): Add regset_bitmap member. | |
1952 | * linux-low.c (use_linux_regsets): New macro. | |
1953 | [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise. | |
1954 | [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise. | |
1955 | (linux_register_in_regsets): New function. | |
1956 | (usr_fetch_inferior_registers): Skip registers covered by | |
1957 | regsets. | |
1958 | (usr_store_inferior_registers): Likewise. | |
1959 | (usr_fetch_inferior_registers): New macro. | |
1960 | (usr_store_inferior_registers): Likewise. | |
1961 | (linux_fetch_registers): Handle mixed regset/non-regset targets. | |
1962 | (linux_store_registers): Likewise. | |
1963 | * linux-mips-low.c (init_registers_mips_dsp_linux): New | |
1964 | prototype. | |
1965 | (init_registers_mips64_dsp_linux): Likewise. | |
1966 | (init_registers_mips_linux): New macro. | |
1967 | (init_registers_mips_dsp_linux): Likewise. | |
1968 | (mips_dsp_num_regs): Likewise. | |
1969 | (DSP_BASE, DSP_CONTROL): New fallback macros. | |
1970 | (mips_base_regs): New macro. | |
1971 | (mips_regmap): Use it. Fix the size. | |
1972 | (mips_dsp_regmap): New variable. | |
1973 | (mips_dsp_regset_bitmap): Likewise. | |
1974 | (mips_arch_setup): New function. | |
1975 | (mips_cannot_fetch_register): Use the_low_target.regmap rather | |
1976 | than mips_regmap. | |
1977 | (mips_cannot_store_register): Likewise. | |
1978 | (the_low_target): Update .arch_setup, .num_regs and .regmap | |
1979 | initializers. Add .regset_bitmap initializer. | |
1980 | * linux-arm-low.c (the_low_target): Add .regset_bitmap | |
1981 | initializer. | |
1982 | * linux-bfin-low.c (the_low_target): Likewise. | |
1983 | * linux-cris-low.c (the_low_target): Likewise. | |
1984 | * linux-crisv32-low.c (the_low_target): Likewise. | |
1985 | * linux-ia64-low.c (the_low_target): Likewise. | |
1986 | * linux-m32r-low.c (the_low_target): Likewise. | |
1987 | * linux-m68k-low.c (the_low_target): Likewise. | |
1988 | * linux-ppc-low.c (the_low_target): Likewise. | |
1989 | * linux-s390-low.c (the_low_target): Likewise. | |
1990 | * linux-sh-low.c (the_low_target): Likewise. | |
1991 | * linux-sparc-low.c (the_low_target): Likewise. | |
1992 | * linux-tic6x-low.c (the_low_target): Likewise. | |
1993 | * linux-x86-low.c (the_low_target): Likewise. | |
1994 | * linux-xtensa-low.c (the_low_target): Likewise. | |
1995 | * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and | |
1996 | mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml, | |
1997 | mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to | |
1998 | srv_xmlfiles. | |
1999 | * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets. | |
2000 | (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise. | |
2001 | ||
c03e6ccc YQ |
2002 | 2012-02-29 Yao Qi <yao@codesourcery.com> |
2003 | Pedro Alves <palves@redhat.com> | |
2004 | ||
2005 | * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when | |
2006 | `step_over_finished' is true. | |
2007 | ||
644cebc9 PA |
2008 | 2012-02-27 Pedro Alves <palves@redhat.com> |
2009 | ||
2010 | * linux-low.c (pid_is_stopped): Delete, moved to common/. | |
2011 | (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped. | |
2012 | ||
c14d7ab2 PA |
2013 | 2012-02-27 Pedro Alves <palves@redhat.com> |
2014 | ||
2015 | PR server/9684 | |
2016 | * linux-low.c (pid_is_stopped): New. | |
2017 | (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes. | |
2018 | ||
412c89dd LM |
2019 | 2012-02-25 Luis Machado <lgustavo@codesourcery.com> |
2020 | ||
2021 | * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation | |
2022 | of conditions. | |
2023 | ||
b745defe MR |
2024 | 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com> |
2025 | ||
2026 | * linux-mips-low.c (mips_regmap): Correct the index of $f9. | |
2027 | ||
9f3a5c85 LM |
2028 | 2012-02-24 Luis Machado <lgustavo@codesourcery> |
2029 | ||
2030 | * server.c (handle_query): Advertise support for target-side | |
2031 | breakpoint condition evaluation. | |
2032 | (process_point_options): New function. | |
2033 | (process_serial_event): When inserting a breakpoint, check for | |
2034 | a target-side condition that should be evaluated. | |
2035 | ||
2036 | * mem-break.c: Include regcache.h and ax.h. | |
2037 | (point_cond_list_t): New data structure. | |
2038 | (breakpoint) <cond_list>: New field. | |
2039 | (find_gdb_breakpoint_at): Make non-static. | |
2040 | (delete_gdb_breakpoint_at): Clear any target-side | |
2041 | conditions. | |
2042 | (clear_gdb_breakpoint_conditions): New function. | |
2043 | (add_condition_to_breakpoint): Likewise. | |
2044 | (add_breakpoint_condition): Likewise. | |
2045 | (gdb_condition_true_at_breakpoint): Likewise. | |
2046 | (gdb_breakpoint_here): Return result directly instead | |
2047 | of going through a local variable. | |
2048 | ||
2049 | * mem-break.h (find_gdb_breakpoint_at): New prototype. | |
2050 | (clear_gdb_breakpoint_conditions): Likewise. | |
2051 | (add_breakpoint_condition): Likewise. | |
2052 | (gdb_condition_true_at_breakpoint): Likewise. | |
2053 | ||
2054 | * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition. | |
2055 | (need_step_over_p): Take target-side breakpoint condition into | |
2056 | consideration. | |
2057 | ||
5e1dc496 LM |
2058 | 2012-02-24 Luis Machado <lgustavo@codesourcery> |
2059 | ||
2060 | * server.h: Include tracepoint.h. | |
2061 | (agent_mem_read, agent_get_trace_state_variable_value, | |
2062 | agent_set_trace_state_variable_value, | |
2063 | agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr, | |
2064 | get_set_tsv_func_addr): New prototypes. | |
2065 | ||
2066 | * ax.h: New include file. | |
2067 | * ax.c: New source file. | |
2068 | ||
2069 | * tracepoint.c: Include ax.h. | |
2070 | (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes, | |
2071 | agent_expr, eval_result_type): Move to ax.h. | |
2072 | (parse_agent_expr): Rename to ... | |
2073 | (gdb_parse_agent_expr): ... this, make it non-static and move | |
2074 | to ax.h. | |
2075 | (unparse_agent_expr) Rename to ... | |
2076 | (gdb_unparse_agent_expr): ... this, make it non-static and move | |
2077 | to ax.h. | |
2078 | (eval_agent_expr): Rename to ... | |
2079 | (eval_tracepoint_agent_expr): ... this. | |
2080 | (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove | |
2081 | forward declarations. | |
2082 | (add_tracepoint_action): Call gdb_parse_agent_expr (...). | |
2083 | (agent_get_trace_state_variable_value): New function. | |
2084 | (agent_set_trace_state_variable_value): New function. | |
2085 | (cmd_qtdp): Call gdb_parse_agent_expr (...). | |
2086 | (response_tracepoint): Call gdb_unparse_agent_expr (...). | |
2087 | (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...). | |
2088 | (condition_true_at_tracepoint): Likewise. | |
2089 | (parse_agent_expr): Rename to ... | |
2090 | (gdb_parse_agent_expr): ... this and move to ax.c. | |
2091 | (unparse_agent_expr): Rename to ... | |
2092 | (gdb_unparse_agent_expr): ... this and move to ax.c. | |
2093 | (gdb_agent_op_name): Move to ax.c. | |
2094 | (eval_agent_expr): Rename to ... | |
2095 | (gdb_eval_agent_expr): ... this, use regcache passed as parameter | |
2096 | and move to ax.c. | |
2097 | (eval_tracepoint_agent_expr): New function. | |
2098 | (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make | |
43aaf8b6 | 2099 | non-static. |
5e1dc496 LM |
2100 | (current_insn_ptr, emit_error, struct bytecode_address): Move to |
2101 | ax.c. | |
2102 | (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh, | |
2103 | emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not, | |
2104 | emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal, | |
2105 | emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto, | |
2106 | emit_goto, write_goto_address, emit_const, emit_reg, emit_pop, | |
2107 | emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust, | |
2108 | emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto, | |
2109 | emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c. | |
2110 | (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions. | |
2111 | (compile_bytecodes): Remove forward declaration. | |
2112 | (is_goto_target): Move to ax.c. | |
2113 | (compile_bytecodes): Move to ax.c and call | |
2114 | agent_get_trace_state_variable_value (...) and | |
2115 | agent_set_trace_state_variable_value (...). | |
2116 | ||
2117 | * Makefile.in: Update ax.c and IPA dependencies. | |
2118 | ||
277e4e52 PA |
2119 | 2012-02-24 Pedro Alves <palves@redhat.com> |
2120 | ||
2121 | * tracepoint.c (cmd_bigqtbuffer): Rename as ... | |
2122 | (cmd_bigqtbuffer_circular): ... this. Only handle | |
2123 | 'QTBuffer:circular:'. | |
2124 | (handle_tracepoint_general_set): Adjust. | |
2125 | ||
bf4c19f7 YQ |
2126 | 2012-02-16 Yao Qi <yao@codesourcery.com> |
2127 | ||
2128 | * inferiors.c: Move code to ... | |
2129 | * dll.c: .... here. New. | |
2130 | * server.h: Declare clear_dlls. | |
2131 | * Makefile.in (SFILES): Add dll.c. | |
2132 | (OBS): Add dll.o | |
2133 | (dll.o): New rule. | |
2134 | ||
d73f2619 YQ |
2135 | 2012-02-11 Yao Qi <yao@codesourcery.com> |
2136 | ||
2137 | * server.c: (handle_monitor_command): Add a new parameter | |
2138 | `own_buf'. | |
2139 | (handle_query): Update caller. | |
2140 | ||
f8255c2a JB |
2141 | 2012-02-09 Joel Brobecker <brobecker@adacore.com> |
2142 | ||
2143 | * configure.ac: Add readlink to AC_CHECK_FUNCS list. | |
2144 | * configure, config.in: Regenerate. | |
2145 | * hostio.c: Provide an alternate implementation if HAVE_READLINK | |
2146 | is not defined. | |
2147 | ||
da84f473 PA |
2148 | 2012-02-02 Pedro Alves <palves@redhat.com> |
2149 | ||
2150 | Try SIGKILL first, then PTRACE_KILL. | |
2151 | * linux-low.c (linux_kill_one_lwp): New. | |
2152 | (linux_kill_one_lwp): Rename to ... | |
2153 | (kill_one_lwp_callback): ... this. Use the new | |
2154 | linux_kill_one_lwp. | |
2155 | ||
e886a173 PA |
2156 | 2012-02-02 Pedro Alves <palves@redhat.com> |
2157 | ||
2158 | * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current | |
2159 | inferior. | |
2160 | ||
be07f1a2 PA |
2161 | 2012-01-27 Pedro Alves <palves@redhat.com> |
2162 | ||
2163 | * linux-low.c (linux_child_pid_to_exec_file): Delete. | |
2164 | (elf_64_file_p): Make static. | |
2165 | (linux_pid_exe_is_elf_64_file): New. | |
2166 | * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p): | |
2167 | Delete declarations. | |
2168 | (linux_pid_exe_is_elf_64_file): Declare. | |
2169 | * linux-x86-low.c (x86_arch_setup): Use | |
2170 | linux_pid_exe_is_elf_64_file. | |
2171 | ||
d8301ad1 JK |
2172 | 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
2173 | ||
2174 | * linux-low.c (linux_wait_for_event_1): Rename to ... | |
2175 | (linux_wait_for_event): ... here and merge it with former | |
2176 | linux_wait_for_event - new variable wait_ptid, use it. | |
2177 | (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1. | |
2178 | ||
01b17894 PA |
2179 | 2012-01-23 Pedro Alves <palves@redhat.com> |
2180 | ||
2181 | * server.c (main): Avoid yet another case of infinite loop while | |
2182 | detaching/killing after a longjmp. | |
2183 | ||
e825046f JK |
2184 | 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
2185 | ||
2186 | Code cleanup. | |
2187 | * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid. | |
2188 | ||
b9e7b9c3 UW |
2189 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
2190 | ||
2191 | * hostio.c (handle_readlink): New function. | |
2192 | (handle_vFile): Call it to handle "vFile:readlink" packets. | |
2193 | ||
901f9912 UW |
2194 | 2012-01-20 Pedro Alves <palves@redhat.com> |
2195 | Ulrich Weigand <ulrich.weigand@linaro.org> | |
2196 | ||
2197 | * server.c (handle_v_requests): Only support vAttach and vRun to | |
2198 | start multiple processes when in extended protocol mode. | |
2199 | ||
fc1ab1a0 PA |
2200 | 2012-01-17 Pedro Alves <palves@redhat.com> |
2201 | ||
2202 | * tracepoint.c (initialize_tracepoint): Use mmap instead of | |
2203 | memalign plus mprotect to allocate the scratch buffer. | |
2204 | ||
7d5d4e98 PA |
2205 | 2012-01-13 Pedro Alves <palves@redhat.com> |
2206 | ||
2207 | * server.c (attach_inferior): Clear `cont_thread'. | |
2208 | ||
f128d5e9 PA |
2209 | 2012-01-13 Pedro Alves <palves@redhat.com> |
2210 | ||
2211 | * server.c (main): Avoid infinite loop while detaching/killing | |
2212 | after a longjmp. | |
2213 | ||
06db92f0 DE |
2214 | 2012-01-09 Doug Evans <dje@google.com> |
2215 | ||
2216 | * server.c (start_inferior): Set last_ptid in --wrapper case. | |
2217 | ||
32d92999 YQ |
2218 | 2012-01-06 Yao Qi <yao@codesourcery.com> |
2219 | ||
2220 | * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro | |
2221 | defined. | |
2222 | [IN_PROCESS_AGENT] (debug_agent): New global variable. | |
2223 | ||
5e0a92a9 YQ |
2224 | 2012-01-04 Yao Qi <yao@codesourcery.com> |
2225 | ||
2226 | * tracepoint.c (cmd_qtdp): Print debug message | |
2227 | for static tracepoint. | |
2228 | ||
ae639e8c YQ |
2229 | 2012-01-04 Yao Qi <yao@codesourcery.com> |
2230 | ||
2231 | * tracepoint.c (trace_vdebug): Differentiate debug message | |
2232 | between gdbserver and IPA. | |
2233 | ||
f72429c5 YQ |
2234 | 2012-01-03 Yao Qi <yao@codesourcery.com> |
2235 | ||
2236 | * tracepoint.c (tracepoint_was_hit): Don't collect for | |
2237 | static tracepoint. | |
2238 | ||
12c3e59c JB |
2239 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
2240 | ||
2241 | * terminal.h: Reformat copyright header. | |
2242 | ||
67827812 JB |
2243 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
2244 | ||
2245 | * server.c (gdbserver_version): Update copyright year. | |
2246 | * gdbreplay.c (gdbreplay_version): Likewise. | |
2247 | ||
3e52c33d JK |
2248 | 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
2249 | ||
2250 | * linux-low.c (linux_create_inferior): Put empty if clause for write. | |
2251 | ||
2252 | Revert: | |
2253 | 2011-12-18 Hui Zhu <teawater@gmail.com> | |
2254 | * linux-low.c (linux_create_inferior): Save return value to ret. | |
2255 | ||
66f1260e HZ |
2256 | 2011-12-18 Hui Zhu <teawater@gmail.com> |
2257 | ||
2258 | * linux-low.c (linux_create_inferior): Save return value to ret. | |
2259 | ||
e77616d7 DE |
2260 | 2011-12-16 Doug Evans <dje@google.com> |
2261 | ||
e7b06c57 DE |
2262 | * linux-low.c (linux_create_inferior): If stdio connection, |
2263 | redirect stdin from /dev/null, stdout to stderr. | |
2264 | * remote-utils.c (remote_is_stdio): New static global. | |
2265 | (remote_connection_is_stdio): New function. | |
2266 | (remote_prepare): Handle stdio connection. | |
2267 | (remote_open): Ditto. | |
2268 | (remote_close): Don't close stdin for stdio connections. | |
2269 | (read_prim,write_prim): New functions. Replace all calls to | |
2270 | read/write to these. | |
2271 | * server.c (main): Watch for "-" argument. Move call to | |
2272 | remote_prepare before start_inferior. | |
2273 | * server.h (STDIO_CONNECTION_NAME): New macro. | |
2274 | (remote_connection_is_stdio): Declare. | |
2275 | ||
e77616d7 DE |
2276 | * remote-utils.c (prepare_resume_reply): Remove extraneous \n |
2277 | in debugging output. | |
2278 | ||
82067193 YQ |
2279 | 2011-12-15 Yao Qi <yao@codesourcery.com> |
2280 | ||
2281 | * tracepoint.c: Include sys/syscall.h. | |
2282 | (gdb_ust_thread): Remove preprocessor conditional. | |
2283 | ||
82bfbe7e PA |
2284 | 2011-12-14 Pedro Alves <pedro@codesourcery.com> |
2285 | ||
2286 | * linux-low.c (linux_detach_one_lwp): Call | |
2287 | the_low_target.prepare_to_resume before detaching. | |
2288 | ||
712c6575 YQ |
2289 | 2011-12-14 Yao Qi <yao@codesourcery.com> |
2290 | ||
2291 | * tracepoint.c (gdb_ust_thread): Don't ignore return value | |
2292 | of write. | |
2293 | ||
d54d1edf YQ |
2294 | 2011-12-14 Yao Qi <yao@codesourcery.com> |
2295 | ||
2296 | * i386-low.c (i386_low_stopped_data_address): Initialize local | |
2297 | variable `control'. | |
2298 | ||
6210a125 PA |
2299 | 2011-12-13 Pedro Alves <pedro@codesourcery.com> |
2300 | ||
2301 | PR remote/13492 | |
2302 | ||
2303 | * i386-low.c (i386_low_stopped_data_address): Avoid fetching | |
2304 | DR_CONTROL unless necessary. Extend comments. | |
2305 | * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to | |
2306 | DR0-3 if not used. If any watchpoint was set, clear DR_STATUS. | |
2307 | ||
2ece8244 YQ |
2308 | 2011-12-13 Yao Qi <yao@codesourcery.com> |
2309 | ||
2310 | * tracepoint.c (trace_buffer_alloc): Replace magic numbers with | |
2311 | macros. | |
2312 | (upload_fast_traceframes, upload_fast_traceframes): Likewise. | |
2313 | ||
784867a5 JK |
2314 | 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
2315 | ||
2316 | * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist. | |
2317 | Print new debug message for such case. | |
2318 | ||
6bf36717 JK |
2319 | 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
2320 | ||
2321 | Fix overlapping memcpy. | |
2322 | * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for | |
2323 | the read_inferior_memory transfer. | |
2324 | (delete_fast_tracepoint_jump): New variable buf. Use it for the | |
2325 | write_inferior_memory transfer. | |
2326 | (set_fast_tracepoint_jump): New variable buf. Use it for the | |
2327 | read_inferior_memory and write_inferior_memory transfers. | |
2328 | (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at) | |
2329 | (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf. | |
2330 | Use it for the write_inferior_memory transfer. | |
2331 | (check_mem_read, check_mem_write): New gdb_asserts for overlapping | |
2332 | buffers. | |
2333 | ||
50275556 MR |
2334 | 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com> |
2335 | ||
2336 | * linux-low.c (fetch_register, store_register): Make code | |
2337 | consistent, fix formatting. | |
2338 | ||
7325beb4 MR |
2339 | 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com> |
2340 | ||
2341 | * linux-low.c (usr_store_inferior_registers): Factor out code | |
2342 | to handle individual registers into... | |
2343 | (store_register): ... this new function. | |
2344 | ||
c642a434 UW |
2345 | 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com> |
2346 | ||
2347 | * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules. | |
2348 | (s390-linux32v2.o, s390-linux32v2.c): Likewise. | |
2349 | (s390-linux64v1.o, s390-linux64v1.c): Likewise. | |
2350 | (s390-linux64v2.o, s390-linux64v2.c): Likewise. | |
2351 | (s390x-linux64v1.o, s390x-linux64v1.c): Likewise. | |
2352 | (s390x-linux64v2.o, s390x-linux64v2.c): Likewise. | |
2353 | * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects. | |
2354 | (srv_xmlfiles): Add new XML files. | |
2355 | ||
2356 | * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>, | |
2357 | and <sys/uio.h>. | |
2358 | (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined. | |
2359 | (init_registers_s390_linux32v1): Add prototype. | |
2360 | (init_registers_s390_linux32v2): Likewise. | |
2361 | (init_registers_s390_linux64v1): Likewise. | |
2362 | (init_registers_s390_linux64v2): Likewise. | |
2363 | (init_registers_s390x_linux64v1): Likewise. | |
2364 | (init_registers_s390x_linux64v2): Likewise. | |
2365 | (s390_num_regs): Increment to 52. | |
2366 | (s390_regmap): Add orig_r2 register. | |
2367 | (s390_num_regs_3264): Increment to 68. | |
2368 | (s390_regmap_3264): Add orig_r2 register. | |
2369 | (s390_collect_ptrace_register): Handle orig_r2 register. | |
2370 | (s390_supply_ptrace_register): Likewise. | |
2371 | (s390_fill_last_break): New function. | |
2372 | (s390_store_last_break): Likewise. | |
2373 | (s390_fill_system_call): New function. | |
2374 | (s390_store_system_call): Likewise. | |
2375 | (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL | |
2376 | register sets. | |
2377 | (s390_check_regset): New function. | |
2378 | (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and | |
2379 | NT_S390_SYSTEM_CALL regsets and use appropriate description. | |
2380 | Update target_regsets for available register sets. | |
2381 | ||
2268b414 JK |
2382 | 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com> |
2383 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
2384 | ||
2385 | * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug) | |
2386 | (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4): | |
2387 | New. | |
2388 | (struct linux_target_ops): Install linux_qxfer_libraries_svr4. | |
2389 | * linux-low.h (struct process_info_private): New member r_debug. | |
2390 | * server.c (handle_qxfer_libraries): Call | |
2391 | the_target->qxfer_libraries_svr4. | |
2392 | (handle_qxfer_libraries_svr4): New function. | |
2393 | (qxfer_packets): New entry "libraries-svr4". | |
2394 | (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4. | |
2395 | * target.h (struct target_ops): New member qxfer_libraries_svr4. | |
2396 | * remote.c (remote_xfer_partial): Call add_packet_config_cmd for | |
2397 | PACKET_qXfer_libraries_svr4. | |
2398 | ||
d6db1fab UW |
2399 | 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com> |
2400 | ||
2401 | * linux-s390-low.c (s390_collect_ptrace_register): Fully convert | |
2402 | PSW address/mask between 8-byte and 16-byte formats. | |
2403 | (s390_supply_ptrace_register): Likewise. | |
2404 | (s390_get_pc, s390_set_pc): 4-byte PSW address always includes | |
2405 | basic addressing mode bit. | |
2406 | ||
242f5f1c SS |
2407 | 2011-11-24 Stan Shebs <stan@codesourcery.com> |
2408 | ||
2409 | * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx. | |
2410 | ||
f196051f SS |
2411 | 2011-11-17 Stan Shebs <stan@codesourcery.com> |
2412 | ||
2413 | * tracepoint.c (struct tracepoint): New field traceframe_usage. | |
2414 | (tracing_start_time): New global. | |
2415 | (tracing_stop_time): New global. | |
2416 | (tracing_user_name): New global. | |
2417 | (tracing_notes): New global. | |
2418 | (tracing_stop_note): New global. | |
2419 | (cmd_qtstart): Set traceframe_usage, start_time. | |
2420 | (stop_tracing): Set stop_time. | |
2421 | (cmd_qtstatus): Report additional status. | |
2422 | (cmd_qtp): New function. | |
2423 | (handle_tracepoint_query): Call it. | |
2424 | (cmd_qtnotes): New function. | |
2425 | (handle_tracepoint_general_set): Call it. | |
2426 | (get_timestamp): Rename from tsv_get_timestamp. | |
2427 | ||
405f8e94 SS |
2428 | 2011-11-14 Stan Shebs <stan@codesourcery.com> |
2429 | Kwok Cheung Yeung <kcy@codesourcery.com> | |
2430 | ||
2431 | * linux-x86-low.c (small_jump_insn): New. | |
2432 | (i386_install_fast_tracepoint_jump_pad): Add arguments for | |
2433 | trampoline and error message, build a trampoline and issue a small | |
2434 | jump instruction to it. | |
2435 | (x86_install_fast_tracepoint_jump_pad): Add arguments for | |
2436 | trampoline and error message. | |
2437 | (x86_get_min_fast_tracepoint_insn_len): New. | |
2438 | (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len. | |
2439 | * linux-low.h (struct linux_target_ops): Add arguments to | |
2440 | install_fast_tracepoint_jump_pad operation, add new operation. | |
2441 | * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add | |
2442 | arguments. | |
2443 | (linux_get_min_fast_tracepoint_insn_len): New function. | |
2444 | (linux_target_op): Add new operation. | |
2445 | * tracepoint.c (gdb_trampoline_buffer): New IPA variable. | |
2446 | (gdb_trampoline_buffer_end): Ditto. | |
2447 | (gdb_trampoline_buffer_error): Ditto. | |
2448 | (struct ipa_sym_addresses): Add fields for new IPA variables. | |
2449 | (symbol_list): Add entries for new IPA variables. | |
2450 | (struct tracepoint): Add fields to hold the address range of the | |
2451 | trampoline used by the tracepoint. | |
2452 | (trampoline_buffer_head): New static variable. | |
2453 | (trampoline_buffer_tail): Ditto. | |
2454 | (claim_trampoline_space): New function. | |
2455 | (have_fast_tracepoint_trampoline_buffer): New function. | |
2456 | (clone_fast_tracepoint): Fill in trampoline fields of tracepoint | |
2457 | structure. | |
2458 | (install_fast_tracepoint): Ditto, also add error buffer argument. | |
2459 | (cmd_qtminftpilen): New function. | |
2460 | (handle_tracepoint_query): Add response to qTMinFTPILen packet. | |
2461 | (fast_tracepoint_from_trampoline_address): New function. | |
2462 | (fast_tracepoint_collecting): Handle trampoline as part of jump | |
2463 | pad space. | |
2464 | (set_trampoline_buffer_space): New function. | |
2465 | (initialize_tracepoint): Initialize new IPA variables. | |
2466 | * target.h (struct target_ops): Add arguments to | |
2467 | install_fast_tracepoint_jump_pad operation, add new | |
2468 | get_min_fast_tracepoint_insn_len operation. | |
2469 | (target_get_min_fast_tracepoint_insn_len): New. | |
2470 | (install_fast_tracepoint_jump_pad): Add arguments. | |
2471 | * server.h (IPA_BUFSIZ): Define. | |
2472 | * linux-i386-ipa.c: Include extra header files. | |
2473 | (initialize_fast_tracepoint_trampoline_buffer): New function. | |
2474 | (initialize_low_tracepoint): Call it. | |
2475 | * server.h (set_trampoline_buffer_space): Declare. | |
2476 | (claim_trampoline_space): Ditto. | |
2477 | (have_fast_tracepoint_trampoline_buffer): Ditto. | |
2478 | ||
1e4d1764 YQ |
2479 | 2011-11-14 Yao Qi <yao@codesourcery.com> |
2480 | ||
2481 | * server.c (handle_query): Handle InstallInTrace for qSupported. | |
2482 | * tracepoint.c (add_tracepoint): Sort list. | |
2483 | (install_tracepoint, download_tracepoint): New. | |
2484 | (cmd_qtdp): Call them to install and download tracepoints. | |
2485 | (sort_tracepoints): Removed. | |
2486 | (cmd_qtstart): Update. | |
2487 | ||
5c73ff4e YQ |
2488 | 2011-11-14 Yao Qi <yao@codesourcery.com> |
2489 | ||
2490 | * mem-break.c (inc_ref_fast_tracepoint_jump): New. | |
2491 | * mem-break.h: Declare. | |
2492 | * tracepoint.c (cmd_qtstart): Move some code to ... | |
2493 | (clone_fast_tracepoint, install_fast_tracepoint): ... here. | |
2494 | New. | |
2495 | (download_tracepoints): Move some code to ... | |
2496 | (download_tracepoint_1): ... here. New. | |
2497 | ||
86a30030 YQ |
2498 | 2011-11-08 Yao Qi <yao@codesourcery.com> |
2499 | ||
2500 | * remote-utils.c (relocate_instruction): A comment fix. | |
2501 | ||
8d26e50c JB |
2502 | 2011-11-07 Joel Brobecker <brobecker@adacore.com> |
2503 | ||
2504 | * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete. | |
2505 | (i386_dr_low_get_control, i386_dr_low_get_status): Use | |
2506 | dr_status_mirror and dr_control_mirror from debug_reg_state. | |
2507 | (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror | |
2508 | (i386_initial_stuff): Remove use of deleted globals. | |
2509 | (i386_get_thread_context, i386_set_thread_context, | |
2510 | i386_thread_added): Use dr_status_mirror and dr_control_mirror | |
2511 | from debug_reg_state. | |
2512 | ||
a59306a3 YQ |
2513 | 2011-11-05 Yao Qi <yao@codesourcery.com> |
2514 | ||
2515 | * tracepoint.c (gdb_collect): Loop over tracepoints of same | |
2516 | address as TPOINT's. | |
2517 | ||
3065dfb6 SS |
2518 | 2011-11-02 Stan Shebs <stan@codesourcery.com> |
2519 | ||
2520 | * tracepoint.c (agent_mem_read_string): New function. | |
2521 | (eval_agent_expr): Call it for tracenz. | |
2522 | * server.c (handle_query): Report support for tracenz. | |
2523 | ||
fd0d8c7c YQ |
2524 | 2011-11-02 Yao Qi <yao@codesourcery.com> |
2525 | ||
2526 | * tracepoint.c (cmd_qtstart): Remove unused local variables. | |
2527 | ||
609086b1 YQ |
2528 | 2011-11-02 Yao Qi <yao@codesourcery.com> |
2529 | ||
2530 | * target.h: Fix a typo in comment. | |
2531 | ||
b9fd1791 PA |
2532 | 2011-10-31 Pedro Alves <pedro@codesourcery.com> |
2533 | ||
2534 | * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't | |
2535 | clobber the breakpoints' shadows with fast tracepoint jumps. | |
2536 | * mem-break.h (check_mem_write): Add `myaddr' parameter. | |
2537 | * target.c (write_inferior_memory): Also pass MYADDR down to | |
2538 | check_mem_write. | |
2539 | ||
03583c20 UW |
2540 | 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org> |
2541 | ||
2542 | * configure.ac: Check support for personality routine. | |
2543 | * configure: Regenerate. | |
2544 | * config.in: Likewise. | |
2545 | * linux-low.c: Include <sys/personality.h>. | |
2546 | Define ADDR_NO_RANDOMIZE if necessary. | |
2547 | (linux_create_inferior): Disable address space randomization when | |
2548 | forking inferior, if requested. | |
2549 | (linux_supports_disable_randomization): New function. | |
2550 | (linux_target_ops): Install it. | |
2551 | * server.h (disable_randomization): Declare. | |
2552 | * server.c (disable_randomization): New global variable. | |
2553 | (handle_general_set): Handle QDisableRandomization. | |
2554 | (handle_query): Likewise for qSupported. | |
2555 | (main): Support --disable-randomization and --no-disable-randomization | |
2556 | command line arguments. | |
2557 | * target.h (struct target_ops): Add supports_disable_randomization. | |
2558 | (target_supports_disable_randomization): New macro. | |
2559 | ||
723b724b MF |
2560 | 2011-09-29 Mike Frysinger <vapier@gentoo.org> |
2561 | ||
2562 | * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the | |
2563 | ifdef check. | |
2564 | [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check. | |
2565 | [!PT_GETDSBT] (target_loadmap): New definition. | |
2566 | (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define. | |
2567 | (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to | |
2568 | LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP, | |
2569 | and PT_GETDSBT to LINUX_LOADMAP. | |
2570 | [!PT_GETDSBT] (linux_read_loadmap): Define to NULL. | |
2571 | (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check. | |
2572 | ||
55329a5c | 2573 | 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org> |
71487fd7 UW |
2574 | |
2575 | * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove. | |
2576 | (arm_linux_hwbp_cap): New static variable. | |
2577 | (arm_linux_get_hwbp_cap): Replace by ... | |
2578 | (arm_linux_init_hwbp_cap): ... this new function. | |
2579 | (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap. | |
2580 | (arm_linux_get_hw_watchpoint_count): Likewise. | |
2581 | (arm_linux_get_hw_watchpoint_max_length): Likewise. | |
2582 | (arm_arch_setup): Call arm_linux_init_hwbp_cap. | |
2583 | (arm_prepare_to_resume): Use perror_with_name instead of error. | |
2584 | ||
55329a5c | 2585 | 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org> |
09b4ad9f UW |
2586 | |
2587 | * linux-arm-low.c: Include <signal.h>. | |
2588 | (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary. | |
2589 | (struct arm_linux_hwbp_cap): New data type. | |
2590 | (arm_hwbp_type, arm_hwbp_control_t): New typedefs. | |
2591 | (struct arm_linux_hw_breakpoint): New data type. | |
2592 | (MAX_BPTS, MAX_WPTS): Define. | |
2593 | (struct arch_process_info, struct arch_lwp_info): New data types. | |
2594 | (arm_linux_get_hwbp_cap): New function. | |
2595 | (arm_linux_get_hw_breakpoint_count): Likewise. | |
2596 | (arm_linux_get_hw_watchpoint_count): Likewise. | |
2597 | (arm_linux_get_hw_watchpoint_max_length): Likewise. | |
2598 | (arm_hwbp_control_initialize): Likewise. | |
2599 | (arm_hwbp_control_is_enabled): Likewise. | |
2600 | (arm_hwbp_control_is_initialized): Likewise. | |
2601 | (arm_hwbp_control_disable): Likewise. | |
2602 | (arm_linux_hw_breakpoint_equal): Likewise. | |
2603 | (arm_linux_hw_point_initialize): Likewise. | |
2604 | (struct update_registers_data): New data structure. | |
2605 | (update_registers_callback: New function. | |
2606 | (arm_insert_point): Likewise. | |
2607 | (arm_remove_point): Likewise. | |
2608 | (arm_stopped_by_watchpoint): Likewise. | |
2609 | (arm_stopped_data_address): Likewise. | |
2610 | (arm_new_process): Likewise. | |
2611 | (arm_new_thread): Likewise. | |
2612 | (arm_prepare_to_resume): Likewise. | |
2613 | (the_low_target): Register arm_insert_point, arm_remove_point, | |
2614 | arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process, | |
2615 | arm_new_thread, and arm_prepare_to_resume. | |
2616 | ||
6b9801d4 SS |
2617 | 2011-09-15 Stan Shebs <stan@codesourcery.com> |
2618 | ||
2619 | * server.h (struct emit_ops): Add compare-goto fields. | |
2620 | * tracepoint.c (gdb_agent_op_sizes): New table. | |
2621 | (emit_eq_goto): New function. | |
2622 | (emit_ne_goto): New function. | |
2623 | (emit_lt_goto): New function. | |
2624 | (emit_le_goto): New function. | |
2625 | (emit_gt_goto): New function. | |
2626 | (emit_ge_goto): New function. | |
2627 | (is_goto_target): New function. | |
2628 | (compile_bytecodes): Recognize special cases of compare-goto | |
2629 | combinations and call specialized emitters for them. | |
2630 | * linux-x86-low.c (amd64_emit_eq_goto): New function. | |
2631 | (amd64_emit_ne_goto): New function. | |
2632 | (amd64_emit_lt_goto): New function. | |
2633 | (amd64_emit_le_goto): New function. | |
2634 | (amd64_emit_gt_goto): New function. | |
2635 | (amd64_emit_ge_goto): New function. | |
2636 | (amd64_emit_ops): Add the new functions. | |
2637 | (i386_emit_eq_goto): New function. | |
2638 | (i386_emit_ne_goto): New function. | |
2639 | (i386_emit_lt_goto): New function. | |
2640 | (i386_emit_le_goto): New function. | |
2641 | (i386_emit_gt_goto): New function. | |
2642 | (i386_emit_ge_goto): New function. | |
2643 | (i386_emit_ops): Add the new functions. | |
2644 | ||
bf15cbda SS |
2645 | 2011-09-08 Stan Shebs <stan@codesourcery.com> |
2646 | ||
2647 | * linux-x86-low.c (i386_emit_prologue): Save %ebx. | |
2648 | (i386_emit_epilogue): Restore %ebx. | |
2649 | ||
943ca1dd JZ |
2650 | 2011-08-31 Jie Zhang <jzhang918@gmail.com> |
2651 | ||
2652 | * server.c (step_thread): Remove definition. | |
2653 | (process_serial_event): Don't handle Hs. | |
2654 | * server.h (step_thread): Remove declaration. | |
2655 | * target.c (set_desired_inferior): Remove use of step_thread. | |
2656 | ||
e3deef73 LM |
2657 | 2011-08-24 Luis Machado <lgustavo@codesourcery.com> |
2658 | ||
2659 | * linux-low.c: Include linux-procfs.h. | |
2660 | (linux_attach_lwp_1): Update comments. | |
2661 | (linux_attach): Scan for existing threads when attaching to a | |
2662 | process that is the tgid. | |
2663 | * Makefile.in: Update dependencies. | |
2664 | ||
13da1c97 LM |
2665 | 2011-08-24 Luis Machado <lgustavo@codesourcery.com> |
2666 | ||
2667 | * configure.srv: Add linux-procfs.o dependencies. | |
2668 | ||
881127c9 YQ |
2669 | 2011-08-14 Yao Qi <yao@codesourcery.com> |
2670 | ||
2671 | * target.h (struct target_ops): Fix indent. | |
2672 | * win32-low.c (win32_target_ops): Fix comment. | |
2673 | ||
58dbd541 YQ |
2674 | 2011-08-14 Andrew Jenner <andrew@codesourcery.com> |
2675 | Yao Qi <yao@codesourcery.com> | |
2676 | ||
2677 | * Makefile.in (clean): Remove tic6x-*.c files. | |
2678 | (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules. | |
2679 | (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise. | |
2680 | (tic6x-c64xp-linux.c): Likewise. | |
2681 | * configure.srv: Add support for tic6x-*-uclinux. | |
2682 | * linux-tic6x-low.c: New. | |
2683 | * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define. | |
2684 | ||
78d85199 YQ |
2685 | 2011-08-14 Andrew Stubbs <ams@codesourcery.com> |
2686 | Yao Qi <yao@codesourcery.com> | |
2687 | ||
2688 | * target.h (struct target_ops): Add read_loadmap. | |
2689 | * linux-low.c (struct target_loadseg): New type. | |
2690 | (struct target_loadmap): New type. | |
2691 | (linux_read_loadmap): New function. | |
2692 | (linux_target_ops): Add linux_read_loadmap. | |
2693 | * server.c (handle_query): Support qXfer:fdpic:read packet. | |
43aaf8b6 PA |
2694 | * win32-low.c (win32_target_ops): Initialize field `read_loadmap' |
2695 | to NULL. | |
78d85199 | 2696 | |
a959a88d EZ |
2697 | 2011-08-05 Eli Zaretskii <eliz@gnu.org> |
2698 | ||
2699 | * win32-low.c: Include <stdint.h>. | |
2700 | ||
1ced966e PA |
2701 | 2011-07-22 Pedro Alves <pedro@codesourcery.com> |
2702 | ||
2703 | * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info | |
2704 | to the inferior here. | |
2705 | (i386_remove_aligned_watchpoint): Ditto. | |
2706 | (i386_handle_nonaligned_watchpoint): Return immediate on fail to | |
2707 | fit part of the watchpoint in the debug registers. | |
2708 | (i386_update_inferior_debug_regs): New. | |
2709 | (i386_low_insert_watchpoint): Work on a local mirror of the debug | |
2710 | registers, and only update the inferior on success. | |
2711 | (i386_low_remove_watchpoint): Ditto. | |
2712 | ||
d26e3629 KY |
2713 | 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com> |
2714 | ||
2715 | * linux-low.c (compare_ints, unique, list_threads, show_process, | |
2716 | linux_core_of_thread): Delete. | |
2717 | (linux_target_ops): Change linux_core_of_thread to | |
2718 | linux_common_core_of_thread. | |
2719 | (linux_qxfer_osdata): Defer to linux_common_xfer_osdata. | |
2720 | * utils.c (malloc_failure): Change type of argument. | |
2721 | (xmalloc, xrealloc, xcalloc, xsnprintf): Delete. | |
2722 | * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c, | |
2723 | common/linux-osdata.c, common/ptid.c and common/buffer.c. | |
2724 | (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o. | |
2725 | (IPA_OBJS): Add common-utils-ipa.o. | |
2726 | (ptid_h, linux_osdata_h): New macros. | |
2727 | (server_h): Add common/common-utils.h, common/xml-utils.h, | |
2728 | common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and | |
2729 | common/ptid.h. | |
2730 | (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o, | |
2731 | ptid.o, buffer.o): New rules. | |
2732 | (linux-low.o): Add common/linux-osdata.h as a dependency. | |
2733 | * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets. | |
2734 | * configure.ac: Add AC_HEADER_DIRENT check. | |
2735 | * config.in: Regenerate. | |
2736 | * configure: Regenerate. | |
2737 | * remote-utils.c (xml_escape_text): Delete. | |
2738 | (buffer_grow, buffer_free, buffer_init, buffer_finish, | |
2739 | buffer_xml_printf): Move to common/buffer.c. | |
2740 | * server.c (main): Remove call to initialize_inferiors. | |
2741 | * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid, | |
2742 | ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid, | |
2743 | ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text, | |
2744 | internal_error, gdb_assert, gdb_assert_fail): Delete. | |
2745 | (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish, | |
2746 | buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to | |
2747 | common/buffer.h. | |
2748 | * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid, | |
2749 | ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid, | |
2750 | initialize_inferiors): Delete. | |
2751 | ||
2275a1a7 PA |
2752 | 2011-07-20 Pedro Alves <pedro@codesourcery.com> |
2753 | ||
2754 | * tracepoint.c (tracepoint_look_up_symbols): Return upon the first | |
2755 | symbol error. | |
2756 | ||
0a5b1e09 PA |
2757 | 2011-05-31 Pedro Alves <pedro@codesourcery.com> |
2758 | ||
2759 | * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in | |
2760 | assertion. | |
2761 | * win32-i386-low.c (i386_dr_low_get_addr): Ditto. | |
2762 | ||
6938fd34 YQ |
2763 | 2011-05-26 Yao Qi <yao@codesourcery.com> |
2764 | ||
2765 | * Makefile.in (thread-db.o): Track dependence to | |
2766 | common/gdb_thread_db.h. | |
2767 | * thread-db.c: include gdb_thread_db.h from right place. | |
2768 | ||
b481f9e0 TT |
2769 | 2011-05-16 Adrian Cornish <gnu@bluedreamer.com> |
2770 | ||
2771 | * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass | |
2772 | __FILE__ and __LINE__ to internal_error. | |
2773 | ||
98a5dd13 DE |
2774 | 2011-05-13 Doug Evans <dje@google.com> |
2775 | ||
2776 | * thread-db.c (try_thread_db_load_from_sdir): New function. | |
2777 | (try_thread_db_load_from_dir): New function. | |
2778 | (thread_db_load_search): Handle $sdir, ignore $pdir. | |
2779 | Remove trying of system directories if search of | |
2780 | libthread-db-search-path fails, that is now done via $sdir. | |
2781 | ||
d248b706 KY |
2782 | 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com> |
2783 | ||
2784 | * server.c (handle_query): Add EnableDisableTracepoints to the list | |
2785 | of supported features. | |
43aaf8b6 | 2786 | * tracepoint.c (clear_installed_tracepoints): Uninstall disabled |
d248b706 | 2787 | tracepoints. |
43aaf8b6 PA |
2788 | (cmd_qtenable_disable): New. |
2789 | (cmd_qtstart): Install tracepoints even if disabled. | |
2790 | (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on | |
2791 | receiving a QTEnable or QTDisable packet. | |
2792 | (gdb_collect): Skip data collection if fast tracepoint is disabled. | |
2793 | (ust_marker_to_static_tracepoint): Do not ignore disabled static | |
2794 | tracepoints. | |
2795 | (gdb_probe): Skip data collection if static tracepoint is disabled. | |
d248b706 | 2796 | |
84e578fb DE |
2797 | 2011-05-10 Doug Evans <dje@google.com> |
2798 | ||
2799 | * thread-db.c (thread_db_handle_monitor_command): Handle elided path. | |
2800 | ||
71f55dd8 DE |
2801 | 2011-05-04 Doug Evans <dje@google.com> |
2802 | ||
2803 | * linux-low.c (linux_join): Skip process lookup. | |
2804 | * spu-low.c (spu_join): Ditto. | |
2805 | * server.c (join_inferiors_callback): Delete. | |
2806 | (process_serial_event): For 'D' packet (detach) call join_inferior | |
2807 | directly. | |
2808 | ||
4d393d60 JM |
2809 | 2011-05-04 Joseph Myers <joseph@codesourcery.com> |
2810 | ||
2811 | * README: Don't mention xscale*-*-linux*. | |
2812 | * configure.srv (xscale*-*-linux*): Don't handle target. | |
2813 | ||
b00ad6ff NF |
2814 | 2011-04-27 Nathan Froyd <froydnj@codesourcery.com> |
2815 | ||
2816 | * linux-x86-low.c (amd64_emit_const): Call memcpy instead of | |
2817 | casting pointers. | |
2818 | (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2): | |
2819 | (i386_emit_const, i386_emit_reg, i386_emit_int_call_1): | |
2820 | (i386_emit_void_call_2): Likewise. | |
2821 | ||
af96c192 YQ |
2822 | 2011-04-26 Yao Qi <yao@codesourcery.com> |
2823 | ||
43aaf8b6 PA |
2824 | * linux-low.c: Move common macros to linux-ptrace.h. |
2825 | Include linux-ptrace.h. | |
af96c192 YQ |
2826 | * Makefile.in (linux_ptrace_h): New. |
2827 | (linux-low.o): Depends on linux-ptrace.h. | |
2828 | ||
03f2bd59 JK |
2829 | 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
2830 | ||
2831 | * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if | |
2832 | RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call. | |
2833 | (remote_prepare): New function with most of the TCP code from ... | |
2834 | (remote_open): ... here. Detect PORT here unconditionally. Move also | |
2835 | setting transport_is_reliable. | |
2836 | * server.c (run_once): New variable. | |
2837 | (gdbserver_usage): Document it. | |
2838 | (main): Set run_once for `--once'. Call remote_prepare. Exit after | |
2839 | the first run if RUN_ONCE. | |
2840 | * server.h (run_once, remote_prepare): New declarations. | |
2841 | ||
7a9dd1b2 TT |
2842 | 2011-04-19 Tom Tromey <tromey@redhat.com> |
2843 | ||
2844 | * win32-low.c (handle_load_dll): Remove duplicate "the". | |
2845 | ||
81239425 PM |
2846 | 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr> |
2847 | ||
2848 | Remove support for old Cygwin 1.5 versions. | |
2849 | * win32-low.c (win32_create_inferior): Use new cygwin_path_list | |
2850 | function to avoid warning. | |
2851 | (win32_add_one_solib): Use cygwin_conv_path function to avoid | |
2852 | warning. | |
2853 | ||
9e0627f1 PM |
2854 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
2855 | ||
2856 | * gdbserver/server.h (Macro _): Define it if not available. | |
2857 | ||
588eebee MS |
2858 | 2011-03-14 Michael Snyder <msnyder@vmware.com> |
2859 | ||
348af9f7 | 2860 | * hostio.c (handle_close): Remove unnecessary null test. |
588eebee | 2861 | |
43f70d4c JB |
2862 | 2011-03-10 Joel Brobecker <brobecker@adacore.com> |
2863 | ||
2864 | * Makefile.in (maintainer-clean realclean distclean): Remove | |
2865 | "make ... subdir_do" command. | |
2866 | ||
348af9f7 MS |
2867 | 2011-03-10 Michael Snyder <msnyder@vmware.com> |
2868 | ||
2869 | * tracepoint.c (tracepoint_finish_step): Fix loop variable. | |
2870 | ||
2871 | * server.c (handle_v_run): Free alloced buffer on early return. | |
2872 | ||
e637a4f5 YQ |
2873 | 2011-03-09 Yao Qi <yao@codesourcery.com> |
2874 | ||
2875 | Revert: | |
2876 | 2011-03-04 Yao Qi <yao@codesourcery.com> | |
2877 | ||
2878 | * Makefile.in: Remove GNU make feature --directory. | |
2879 | ||
2880 | 2011-03-05 Yao Qi <yao@codesourcery.com> | |
2881 | ||
2882 | * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable. | |
2883 | (subdir_do): New make target. Copied from gdb/Makefile. | |
2884 | (maintainer-clean, realclean, distclean, clean): Call corresponding | |
2885 | make targets in common/Makefile. | |
2886 | ||
2887 | 2011-02-11 Yao Qi <yao@codesourcery.com> | |
2888 | ||
2889 | * configure.ac: Call AC_PROG_RANLIB. | |
2890 | * Makefile.in: Remove signals.o from OBS. Link libcommon.a. | |
2891 | * configure: Regenerate. | |
2892 | ||
e6edda56 JK |
2893 | 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
2894 | ||
2895 | * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically. | |
2896 | ||
e5141119 JB |
2897 | 2011-03-06 Yao Qi <yao@codesourcery.com> |
2898 | ||
2899 | * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR). | |
2900 | ||
64794aa4 JB |
2901 | 2011-03-05 Yao Qi <yao@codesourcery.com> |
2902 | ||
2903 | * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable. | |
2904 | (subdir_do): New make target. Copied from gdb/Makefile. | |
2905 | (maintainer-clean, realclean, distclean, clean): Call corresponding | |
2906 | make targets in common/Makefile. | |
2907 | ||
7a762829 YQ |
2908 | 2011-03-04 Yao Qi <yao@codesourcery.com> |
2909 | ||
2910 | * Makefile.in: Remove GNU make feature --directory. | |
2911 | ||
348af9f7 MS |
2912 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
2913 | ||
2914 | * server.c (queue_stop_reply): Call xmalloc not malloc. | |
2915 | ||
2916 | 2011-03-02 Michael Snyder <msnyder@vmware.com> | |
2917 | ||
2918 | * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc. | |
2919 | ||
9f72fee2 MS |
2920 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
2921 | ||
588eebee MS |
2922 | * tracepoint.c (cmd_qtv): Discard unused value 'packet'. |
2923 | (cmd_qtframe): Ditto. | |
2924 | (cmd_qtbuffer): Ditto. | |
2925 | (cmd_bigqtbuffer): Ditto. | |
2926 | ||
9f72fee2 MS |
2927 | * utils.c (decimal2str): Initialize 'width' to nine, then |
2928 | don't mess with it. | |
2929 | ||
8040bd49 UW |
2930 | 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
2931 | ||
2932 | * hostio.c (require_data): Free *data, not data. | |
2933 | ||
7e52cbd0 JK |
2934 | 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2935 | ||
2936 | * hostio.c (require_data): Use free, not xfree. | |
2937 | ||
9130f83e MS |
2938 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
2939 | ||
4b812f4e MS |
2940 | * server.c (handle_query): Discard unused value. |
2941 | ||
9130f83e MS |
2942 | * hostio.c (require_data): Free malloc memory before returning |
2943 | error. | |
2944 | ||
69d37113 MS |
2945 | 2011-02-26 Michael Snyder <msnyder@vmware.com> |
2946 | ||
2947 | * linux-low.c (list_threads): Call closedir for dirent. | |
2948 | ||
35f5825a MS |
2949 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
2950 | ||
2a589cef MS |
2951 | * i386-low.c (i386-length_and_rw_bits): Comment the fact that |
2952 | a case statement falls through. | |
2953 | ||
0adea5f7 MS |
2954 | * linux-low.c (linux_xfer_siginfo): Fix fencepost error. |
2955 | ||
35f5825a MS |
2956 | * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error |
2957 | in comparison. | |
2958 | ||
238f1c74 MS |
2959 | 2011-02-26 Michael Snyder <msnyder@vmware.com> |
2960 | ||
2961 | * utils.c (decimal2str): Eliminate dead code and dead param. | |
2962 | (pulongest): Drop dead param from call to decimal2str. | |
2963 | (plongest): Ditto. | |
2964 | ||
633ff500 JB |
2965 | 2011-02-24 Joel Brobecker <brobecker@adacore.com> |
2966 | ||
2967 | Revert the following patch (not approved yet): | |
2968 | 2011-02-21 Hui Zhu <teawater@gmail.com> | |
2969 | * tracepoint.c (tp_printf): New function. | |
2970 | (eval_agent_expr): Handle gdb_agent_op_printf. | |
2971 | ||
f9c6ff72 HZ |
2972 | 2011-02-21 Hui Zhu <teawater@gmail.com> |
2973 | ||
2974 | * tracepoint.c (tp_printf): New function. | |
2975 | (eval_agent_expr): Handle gdb_agent_op_printf. | |
2976 | ||
94d5e490 TT |
2977 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
2978 | ||
2979 | * Makefile.in (tracepoint-ipa.o): Depend on ax.def. | |
2980 | (tracepoint.o): Likewise. | |
2981 | * tracepoint.c (enum gdb_agent_op): Use ax.def. | |
2982 | (gdb_agent_op_names): Likewise. | |
2983 | ||
c7f96d2b TT |
2984 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
2985 | ||
2986 | * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick, | |
2987 | gdb_agent_op_rot>: New constants. | |
2988 | (gdb_agent_op_names): Add pick and roll. | |
2989 | (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New | |
2990 | cases. | |
2991 | ||
0feedb2c JK |
2992 | 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
2993 | ||
2994 | * aclocal.m4: Regenerated with aclocal-1.11.1. | |
2995 | ||
b3b9301e PA |
2996 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
2997 | ||
2998 | * server.c (handle_qxfer_traceframe_info): New. | |
2999 | (qxfer_packets): Register "traceframe-info". | |
3000 | (handle_query): Report support for qXfer:traceframe-info:read+. | |
3001 | * tracepoint.c (match_blocktype): New. | |
3002 | (traceframe_find_block_type): Rename to ... | |
3003 | (traceframe_walk_blocks): ... this. Add callback filter argument, | |
3004 | and use it. | |
3005 | (traceframe_find_block_type): New, reimplemented on top of | |
3006 | traceframe_walk_blocks. | |
3007 | (build_traceframe_info_xml): New. | |
3008 | (traceframe_read_info): New. | |
3009 | * server.h (traceframe_read_info): Declare. | |
3010 | ||
4f3e6fb7 YQ |
3011 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
3012 | ||
3013 | * configure.ac: Call AC_PROG_RANLIB. | |
3014 | * Makefile.in: Remove signals.o from OBS. Link libcommon.a. | |
3015 | * configure: Regenerate. | |
3016 | ||
764880b7 PA |
3017 | 2011-02-07 Pedro Alves <pedro@codesourcery.com> |
3018 | ||
3019 | * server.c (gdb_read_memory): Change return semantics to allow | |
3020 | partial transfers. | |
3021 | (handle_search_memory_1): Adjust. | |
3022 | (process_serial_event) <'m' packet>: Handle partial transfers. | |
3023 | * tracepoint.c (traceframe_read_mem): Handle partial transfers. | |
3024 | ||
1c79eb8a PA |
3025 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
3026 | ||
3027 | * regcache.c (init_register_cache): Initialize | |
3028 | regcache->register_status. | |
3029 | (free_register_cache): Release regcache->register_status. | |
3030 | (regcache_cpy): Copy register_status. | |
3031 | (registers_to_string): Print 'x's for unavailable registers. | |
3032 | (supply_register): Mark the register's status valid or | |
3033 | unavailable, depending on whether a buffer was passed in or not. | |
3034 | (supply_register_zeroed): New. | |
3035 | (supply_regblock): Mark the registers' status valid or | |
3036 | unavailable, depending on whether a buffer was passed in or not. | |
3037 | * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines. | |
3038 | (struct regcache): New `register_status' field. | |
3039 | (supply_register_zeroed): Declare. | |
3040 | * i387-fp.c (i387_xsave_to_cache): Zero out registers using | |
3041 | supply_register_zeroed, rather than passing a NULL buffer to | |
3042 | supply_register. | |
3043 | * tracepoint.c (fetch_traceframe_registers): Update comment. | |
3044 | ||
85724a0e PA |
3045 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
3046 | ||
3047 | * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register | |
3048 | buffer explicit. | |
3049 | ||
d08aafef PA |
3050 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
3051 | ||
3052 | * server.h (decode_xfer_write): Change prototype. | |
3053 | * remote-utils.c (decode_xfer_write): Remove `annex' parameter, | |
3054 | and don't extract the annex here. | |
3055 | * server.c (decode_xfer_read): Remove `annex' parameter, | |
3056 | and don't extract the annex here. | |
3057 | (decode_xfer): New. | |
3058 | (struct qxfer): New. | |
3059 | (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries) | |
3060 | (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu) | |
3061 | (handle_qxfer_statictrace): New functions, abstracted out from | |
3062 | handle_query, and made to use the struct qxfer interface. | |
3063 | (handle_threads_qxfer_proper): Rename to ... | |
3064 | (handle_qxfer_threads_proper): ... this. | |
3065 | (handle_threads_qxfer): Rename to ... | |
3066 | (handle_qxfer_threads): ... this. Adjust. | |
3067 | (qxfer_packets): New array. | |
3068 | (handle_qxfer): New function. | |
3069 | (handle_query): Use handle_qxfer. | |
3070 | ||
493e2a69 MS |
3071 | 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com> |
3072 | ||
3073 | * gdbreplay.c: Shorten lines of >= 80 columns. | |
3074 | * linux-low.c: Ditto. | |
3075 | * linux-ppc-low.c: Ditto. | |
3076 | * linux-s390-low.c: Ditto. | |
3077 | * linux-sparc-low.c: Ditto. | |
3078 | * linux-x86-low.c: Ditto. | |
3079 | * linux-xtensa-low.c: Ditto. | |
3080 | * mem-break.c: Ditto. | |
3081 | * nto-low.c: Ditto. | |
3082 | * regcache.h: Ditto. | |
3083 | * remote-utils.c: Ditto. | |
3084 | * server.c: Ditto. | |
3085 | * server.h: Ditto. | |
3086 | * thread-db.c: Ditto. | |
3087 | * tracepoint.c: Ditto. | |
3088 | * utils.c: Ditto. | |
3089 | * win32-low.h: Ditto. | |
3090 | ||
44944448 JB |
3091 | 2011-01-05 Joel Brobecker <brobecker@adacore.com> |
3092 | ||
3093 | * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year | |
3094 | update. | |
3095 | ||
71ce852c JB |
3096 | 2011-01-01 Joel Brobecker <brobecker@adacore.com> |
3097 | ||
3098 | * server.c (gdbserver_version): Update copyright year in version | |
3099 | output. | |
3100 | * gdbreplay.c (gdbreplay_version): Ditto. | |
3101 | ||
eb826dc6 MF |
3102 | 2010-12-29 Jie Zhang <jie.zhang@analog.com> |
3103 | ||
3104 | * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets. | |
3105 | * linux-bfin-low.c: New file. | |
3106 | * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and | |
3107 | PT_DATA_ADDR for BFIN targets. | |
3108 | * Makefile.in (SFILES): Add linux-bfin-low.c. | |
3109 | (clean): Remove reg-bfin.c. | |
3110 | (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets. | |
3111 | * README: Mention supported Blackfin targets. | |
3112 | ||
39ab222a MF |
3113 | 2010-12-23 Mike Frysinger <vapier@gentoo.org> |
3114 | ||
3115 | * .gitignore: New file. | |
3116 | ||
a1f2ce7d MF |
3117 | 2010-11-16 Mike Frysinger <vapier@gentoo.org> |
3118 | ||
3119 | * linux-low.c (linux_tracefork_child): Add char* cast to arg. | |
3120 | ||
f474844c JZ |
3121 | 2010-10-22 Jie Zhang <jie@codesourcery.com> |
3122 | ||
3123 | * Makefile.in: Add FLAGS_TO_PASS variable. | |
3124 | (install): Remove dependency of install-only and recursively | |
3125 | invoke make for install-only. | |
3126 | ||
f1048712 DE |
3127 | 2010-10-04 Doug Evans <dje@google.com> |
3128 | ||
3129 | * Makefile.in (uninstall): Use $(DESTDIR). | |
3130 | ||
b53a1623 PA |
3131 | 2010-09-24 Pedro Alves <pedro@codesourcery.com> |
3132 | ||
e6ee044d PA |
3133 | PR gdb/11842 |
3134 | ||
b53a1623 PA |
3135 | * linux-x86-low.c (compat_siginfo_from_siginfo) |
3136 | (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when | |
3137 | si_code is < 0. Check for si_code == SI_TIMER before checking for | |
3138 | si_code < 0. | |
3139 | ||
fa1bd1e4 JB |
3140 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
3141 | ||
3142 | * lynx-i386-low.c: New file. | |
3143 | * configure.srv: Add handling of i[34567]86-*-lynxos* targets. | |
3144 | ||
47fac8f8 JB |
3145 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
3146 | ||
3147 | * lynx-low.c (ptrace_request_to_str): Remove handling for | |
3148 | request values that have been removed in LynxOS 5.x. | |
3149 | ||
1adfc54d JB |
3150 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
3151 | ||
3152 | * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of | |
3153 | <ptrace.h> | |
3154 | ||
c2a66c29 NS |
3155 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
3156 | ||
3157 | * configure.ac: Add --enable-inprocess-agent option. | |
3158 | * configure: Rebuilt. | |
3159 | ||
32fcada3 YQ |
3160 | 2010-09-06 Yao Qi <yao@codesourcery.com> |
3161 | ||
3162 | * linux-low.c (linux_kill): Remove unused variable. | |
3163 | (linux_stabilize_threads): Likewise. | |
3164 | * server.c (start_inferior): Likewise. | |
3165 | (queue_stop_reply_callback): Likewise. | |
3166 | * tracepoint.c (do_action_at_tracepoint): Likewise. | |
3167 | ||
0cccb683 YQ |
3168 | 2010-09-06 Yao Qi <yao@codesourcery.com> |
3169 | ||
3170 | * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior | |
3171 | on return. | |
3172 | ||
423ec54c JK |
3173 | 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
3174 | ||
3175 | * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER. | |
3176 | ||
12ac6819 PA |
3177 | 2010-09-06 Pedro Alves <pedro@codesourcery.com> |
3178 | ||
3179 | * Makefile.in (install-only): Replace $IPA_DEPFILES with | |
3180 | "$(IPA_DEPFILES)". | |
3181 | ||
8ed54b31 JB |
3182 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
3183 | ||
3184 | * gdbserver/lynx-low.c, gdbserver/lynx-low.h, | |
3185 | gdbserver/lynx-ppc-low.c: New files. | |
3186 | * Makefile.in (lynx_low_h): New variable. | |
3187 | (lynx-low.o, lynx-ppc-low.o): New rules. | |
3188 | * configure.ac: On LynxOS, link with -lnetinet. | |
3189 | * configure.srv: Add handling of powerpc-*-lynxos* targets. | |
3190 | * configure: regenerate. | |
3191 | ||
bb0116a4 JB |
3192 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
3193 | ||
3194 | * Makefile.in (vasprintf.o, vsnprintf.o): New rules. | |
3195 | * configure.ac: Add check for vasprintf and vsnprintf. | |
3196 | * configure, config.in: Regenerate. | |
3197 | * server.h (vasprintf, vsnprintf): Add conditional declarations. | |
3198 | ||
a778ab81 | 3199 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
3200 | ||
3201 | * gdbreplay.c: Move include of alloca.h up, next to include of | |
3202 | malloc.h. | |
3203 | * server.h: Add include of malloc.h. | |
3204 | * mem-break.c: Remove include of malloc.h. | |
3205 | * server.c, tracepoint.c, utils.c, win32-low.c: Likewise. | |
3206 | ||
8b034a19 | 3207 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
3208 | ||
3209 | * Makefile.in (memmem.o): Build with -Wno-error. | |
3210 | ||
3211 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> | |
3212 | ||
3213 | * utils.c (xsnprintf): Make non-static. | |
3214 | * server.h: Add xsnprintf declaration. | |
3215 | * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c: | |
3216 | replace calls to snprintf by calls to xsnprintf throughout. | |
3217 | ||
3218 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> | |
3219 | ||
3220 | * configure.ac: Add configure check for alloca. | |
3221 | * configure, config.in: Regenerate. | |
3222 | * server.h: Include alloca.h if it exists. | |
3223 | * gdbreplay.c: Include alloca.h if it exists. | |
3224 | ||
1a981360 PA |
3225 | 2010-08-28 Pedro Alves <pedro@codesourcery.com> |
3226 | ||
3227 | * linux-low.c (__SIGRTMIN): Define if not already defined. | |
3228 | (linux_create_inferior): Check for __ANDROID__ rather than | |
3229 | __SIGRTMIN. | |
3230 | (enqueue_one_deferred_signal): Don't requeue non-RT signals that | |
3231 | are already deferred. | |
3232 | (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN. | |
3233 | (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is | |
3234 | stopped and already has a pending signal to report. | |
3235 | (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has | |
3236 | a pending signal to report or is moving out of a jump pad. | |
3237 | (linux_init_signals): Check for __ANDROID__ rather than | |
3238 | __SIGRTMIN. | |
3239 | ||
b4d51a55 PA |
3240 | 2010-08-28 Pedro Alves <pedro@codesourcery.com> |
3241 | ||
3242 | * linux-low.c (linux_stabilize_threads): Wrap debug output in a | |
3243 | debug_threads check. Avoid a linear search when not doing debug | |
3244 | output. | |
3245 | ||
ec48365d PA |
3246 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
3247 | ||
3248 | * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t. | |
3249 | (struct gdb_event) <fd>: Change type to gdb_fildes_t. | |
3250 | (struct file_handler) <fd>: Change type to gdb_fildes_t. | |
3251 | (process_event): Change local fd's type to gdb_fildes_t. | |
3252 | (create_file_handler): Adjust prototype. | |
3253 | (delete_file_handler): Adjust prototype. | |
3254 | (handle_file_event): Adjust prototype. Use pfildes. | |
3255 | (create_file_event): Adjsut prototype. | |
3256 | * remote-utils.c (remote_desc, listen_desc): Change type to | |
3257 | gdb_fildes_t. | |
3258 | * server.h: New gdb_fildes_t typedef. | |
3259 | [USE_WIN32API]: Include winsock2.h. | |
3260 | (delete_file_handler, add_file_handler): Adjust prototypes. | |
3261 | (pfildes): Declare. | |
3262 | * utils.c (pfildes): New. | |
3263 | ||
854d88f0 PA |
3264 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
3265 | ||
3266 | * configure.ac (build_warnings): Add -Wno-char-subscripts. | |
3267 | * configure: Regenerate. | |
3268 | ||
0146f85b PA |
3269 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
3270 | ||
3271 | * linux-low.c (linux_unprepare_to_access_memory): Rename to ... | |
3272 | (linux_done_accessing_memory): ... this. | |
3273 | (linux_target_ops): Adjust. | |
3274 | * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust. | |
3275 | * nto-low.c (nto_target_ops): Adjust comment. | |
3276 | * server.c (gdb_read_memory, gdb_write_memory): Adjust. | |
3277 | * spu-low.c (spu_target_ops): Adjust comment. | |
3278 | * target.h (target_ops): Rename unprepare_to_access_memory field | |
3279 | to done_accessing_memory. | |
3280 | (unprepare_to_access_memory): Rename to ... | |
3281 | (done_accessing_memory): ... this. | |
3282 | ||
90d74c30 PA |
3283 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
3284 | ||
3285 | * linux-low.c (linux_prepare_to_access_memory): New. | |
3286 | (linux_unprepare_to_access_memory): New. | |
3287 | (linux_target_ops): Install them. | |
3288 | * server.c (read_memory): Rename to ... | |
3289 | (gdb_read_memory): ... this. Use | |
3290 | prepare_to_access_memory/prepare_to_access_memory. | |
3291 | (write_memory): Rename to ... | |
3292 | (gdb_write_memory): ... this. Use | |
3293 | prepare_to_access_memory/prepare_to_access_memory. | |
3294 | (handle_search_memory_1): Adjust. | |
3295 | (process_serial_event): Adjust. | |
3296 | * target.h (struct target_ops): New fields | |
3297 | prepare_to_access_memory and unprepare_to_access_memory. | |
3298 | (prepare_to_access_memory, unprepare_to_access_memory): New. | |
3299 | * linux-x86-low.c (x86_insert_point, x86_remove_point): Use | |
3300 | prepare_to_access_memory/prepare_to_access_memory. | |
3301 | * nto-low.c (nto_target_ops): Adjust. | |
3302 | * spu-low.c (spu_target_ops): Adjust. | |
3303 | * win32-low.c (win32_target_ops): Adjust. | |
3304 | ||
fd467969 PA |
3305 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
3306 | ||
3307 | * Makefile.in (WARN_CFLAGS): Get it from configure. | |
3308 | (WERROR_CFLAGS): New. | |
3309 | (INTERNAL_CFLAGS): Add WERROR_CFLAGS. | |
3310 | * configure.ac: Introduce --enable-werror, which adds -Werror to | |
3311 | the compiler command line. Enabled by default. Disable with | |
3312 | --disable-werror. Add -Wdeclaration-after-statement | |
3313 | Wpointer-arith and -Wformat-nonliteral to warning flags. | |
3314 | * configure: Regenerate. | |
3315 | ||
331e2f5f PA |
3316 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
3317 | ||
3318 | * mem-break.c [HAVE_MALLOC_H]: Include malloc.h. | |
3319 | ||
e581f2b4 PA |
3320 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
3321 | ||
3322 | * gdbreplay.c (remote_error): New. | |
3323 | (gdbchar): New. | |
3324 | (expect): Use gdbchar. Check for error reading from GDB. | |
3325 | Clarify sync error output. | |
3326 | (play): Check for errors writing to GDB. | |
3327 | * linux-low.c (sigchld_handler): Really ignore `write' errors. | |
3328 | * remote-utils.c (getpkt): Check for errors writing to the remote | |
3329 | descriptor. | |
3330 | ||
3c11dd79 PA |
3331 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
3332 | ||
3333 | * linux-low.c (linux_wait_1): Move non-debugging code out of | |
3334 | `debug_threads' control. | |
3335 | ||
d20a8ad9 PA |
3336 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
3337 | ||
3338 | * linux-low.c (linux_wait_1): Don't set last_status here. | |
3339 | * server.c (push_event, queue_stop_reply_callback): Assert we're | |
3340 | not pushing a TARGET_WAITKIND_IGNORE event. | |
3341 | (start_inferior, start_inferior, attach_inferior, handle_v_cont) | |
3342 | (myresume, handle_target_event): Set the thread's last_resume_kind | |
3343 | and last_status from the target returned status. | |
3344 | ||
964e4306 PA |
3345 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
3346 | ||
3347 | PR threads/10729 | |
3348 | ||
3349 | * linux-x86-low.c (update_debug_registers_callback): New. | |
3350 | (i386_dr_low_set_addr): Use it. | |
3351 | (i386_dr_low_get_addr): New. | |
3352 | (i386_dr_low_set_control): Use update_debug_registers_callback. | |
3353 | (i386_dr_low_get_control): New. | |
3354 | (i386_dr_low_get_status): Adjust. | |
3355 | * linux-low.c (linux_stop_lwp): New. | |
3356 | * linux-low.h (linux_stop_lwp): Declare. | |
3357 | ||
3358 | * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as | |
3359 | argument instead of a i386_debug_reg_state. | |
3360 | (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of | |
3361 | a i386_debug_reg_state. | |
3362 | (i386_insert_aligned_watchpoint): Adjust. | |
3363 | (i386_remove_aligned_watchpoint): Adjust. | |
3364 | (i386_low_stopped_data_address): Read the debug registers from the | |
3365 | inferior instead of from the mirrors. | |
3366 | * i386-low.h (struct i386_debug_reg_state): Extend comment. | |
3367 | (i386_dr_low_get_addr): Declare. | |
3368 | (i386_dr_low_get_control): Declare. | |
3369 | (i386_dr_low_get_status): Change prototype. | |
3370 | ||
3371 | * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals. | |
3372 | (i386_dr_low_get_addr): New. | |
3373 | (i386_dr_low_get_control): New. | |
3374 | (i386_dr_low_get_status): Adjust prototype. Return | |
3375 | dr_status_mirror. | |
3376 | (i386_initial_stuff): Clear dr_status_mirror and | |
3377 | dr_control_mirror. | |
3378 | (i386_get_thread_context): Adjust. | |
3379 | (i386_set_thread_context): Adjust. | |
3380 | (i386_thread_added): Adjust. | |
3381 | ||
5f21a75b PA |
3382 | 2010-08-24 Pedro Alves <pedro@codesourcery.com> |
3383 | ||
3384 | * linux-low.h (linux_thread_area): Delete declaration. | |
3385 | ||
3e4c1235 TS |
3386 | 2010-08-11 Thomas Schwinge <thomas@codesourcery.com> |
3387 | ||
3388 | * linux-low.c (linux_wait_1): Correctly return the ptid of the child | |
3389 | after its termination. | |
3390 | ||
1971b033 PA |
3391 | 2010-08-09 Pedro Alves <pedro@codesourcery.com> |
3392 | ||
3393 | * linux-low.c (gdb_wants_lwp_stopped): Delete. | |
3394 | (gdb_wants_all_stopped): Delete. | |
3395 | (linux_wait_1): Don't call them. | |
3396 | * server.c (handle_v_cont): Tag all threads as want-stopped. | |
3397 | (gdb_wants_thread_stopped): Fix comments. Tag the thread that | |
3398 | stopped as "client-wants-stopped". | |
3399 | ||
310444ac PA |
3400 | 2010-07-31 Pedro Alves <pedro@codesourcery.com> |
3401 | ||
3402 | * Makefile.in (signals_h): New. | |
3403 | (server_h): Depend on it. | |
3404 | (server.o): Don't depend on $(signals_def). | |
3405 | (signals.o): Depend on $(signals_def). | |
3406 | ||
a19cae16 JK |
3407 | 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
3408 | ||
3409 | * Makefile.in (signals_def): New. | |
3410 | (server_h): Append include/gdb/signals.h and signals_def. | |
3411 | (server.o): Append signals_def. | |
3412 | ||
30d50328 JK |
3413 | 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
3414 | ||
3415 | * server.c (handle_target_event): Use target_signal_to_host for | |
3416 | resume_info.sig initialization. | |
3417 | * target.h (struct thread_resume) <sig>: New comment. | |
3418 | ||
5c3216e2 OS |
3419 | 2010-07-20 Ozkan Sezer <sezeroz@gmail.com> |
3420 | ||
c6f46ca0 OS |
3421 | * server.c (handle_query): strcpy() the returned string from paddress() |
3422 | instead of sprintf(). | |
5c3216e2 OS |
3423 | * utils.c (paddress): Return phex_nz(). |
3424 | ||
6bd31874 JB |
3425 | 2010-07-07 Joel Brobecker <brobecker@adacore.com> |
3426 | ||
3427 | * server.c (handle_v_cont): Call mourn_inferior if process | |
3428 | just exited. | |
3429 | (myresume): Likewise. | |
3430 | ||
0fb4aa4b PA |
3431 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
3432 | ||
3433 | Static tracepoints, and integration with UST. | |
3434 | ||
3435 | * configure.ac: Handle --with-ust. substitute ustlibs and ustinc. | |
3436 | * mem-break.c (uninsert_all_breakpoints) | |
3437 | (reinsert_all_breakpoints): New. | |
3438 | * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints): | |
3439 | * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New. | |
3440 | (gdb_agent_ust_loaded, helper_thread_id) | |
3441 | (gdb_agent_helper_thread_id): New macros. | |
3442 | (struct ipa_sym_addresses): Add addr_ust_loaded, | |
3443 | addr_helper_thread_id, addr_cmd_buf. | |
3444 | (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf. | |
3445 | (in_process_agent_loaded_ust): New. | |
3446 | (write_e_ust_not_loaded): New. | |
3447 | (maybe_write_ipa_ust_not_loaded): New. | |
3448 | (struct collect_static_trace_data_action): New. | |
3449 | (enum tracepoint_type) <static_tracepoint>: New. | |
3450 | (struct tracepoint) <handle>: Mention static tracepoints. | |
3451 | (struct static_tracepoint_ctx): New. | |
3452 | (CMD_BUF_SIZE): New. | |
3453 | (add_tracepoint_action): Handle static tracepoint actions. | |
3454 | (unprobe_marker_at): New. | |
3455 | (clear_installed_tracepoints): Handle static tracepoints. | |
3456 | (cmd_qtdp): Handle static tracepoints. | |
3457 | (probe_marker_at): New. | |
3458 | (cmd_qtstart): Handle static tracepoints. | |
3459 | (response_tracepoint): Handle static tracepoints. | |
3460 | (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New. | |
3461 | (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat. | |
3462 | (get_context_regcache): Handle static tracepoints. | |
3463 | (do_action_at_tracepoint): Handle static tracepoint actions. | |
3464 | (traceframe_find_block_type): Handle static trace data blocks. | |
3465 | (traceframe_read_sdata): New. | |
3466 | (download_tracepoints): Download static tracepoint actions. | |
3467 | [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h. | |
3468 | (GDB_PROBE_NAME): New. | |
3469 | (ust_ops): New. | |
3470 | (GET_UST_SYM): New. | |
3471 | (USTF): New. | |
3472 | (dlsym_ust): New. | |
3473 | (ust_marker_to_static_tracepoint): New. | |
3474 | (gdb_probe): New. | |
3475 | (collect_ust_data_at_tracepoint): New. | |
3476 | (gdb_ust_probe): New. | |
3477 | (UNIX_PATH_MAX, SOCK_DIR): New. | |
3478 | (gdb_ust_connect_sync_socket): New. | |
3479 | (resume_thread, stop_thread): New. | |
3480 | (run_inferior_command): New. | |
3481 | (init_named_socket): New. | |
3482 | (gdb_ust_socket_init): New. | |
3483 | (cstr_to_hexstr): New. | |
3484 | (next_st): New. | |
3485 | (first_marker, next_marker): New. | |
3486 | (response_ust_marker): New. | |
3487 | (cmd_qtfstm, cmd_qtsstm): New. | |
3488 | (unprobe_marker_at, probe_marker_at): New. | |
3489 | (cmd_qtstmat, gdb_ust_thread): New. | |
3490 | (gdb_ust_init): New. | |
3491 | (initialize_tracepoint_ftlib): Call gdb_ust_init. | |
3492 | * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h | |
3493 | (ST_REGENTRY): New. | |
3494 | (x86_64_st_collect_regmap): New. | |
3495 | (X86_64_NUM_ST_COLLECT_GREGS): New. | |
3496 | (AMD64_RIP_REGNUM): New. | |
3497 | (supply_static_tracepoint_registers): New. | |
3498 | * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h | |
3499 | (ST_REGENTRY): New. | |
3500 | (i386_st_collect_regmap): New. | |
3501 | (i386_NUM_ST_COLLECT_GREGS): New. | |
3502 | (supply_static_tracepoint_registers): New. | |
3503 | * server.c (handle_query): Handle qXfer:statictrace:read. | |
3504 | <qSupported>: Report support for StaticTracepoints, and | |
3505 | qXfer:statictrace:read features. | |
3506 | * server.h (traceframe_read_sdata) | |
3507 | (supply_static_tracepoint_registers): Declare. | |
3508 | * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex) | |
3509 | (unpack_varlen_hex): Include in IPA build. | |
3510 | * Makefile.in (ustlibs, ustinc): New. | |
3511 | (IPA_OBJS): Add remote-utils-ipa.o. | |
3512 | ($(IPA_LIB)): Link -ldl and -lpthread. | |
3513 | (UST_CFLAGS): New. | |
3514 | (IPAGENT_CFLAGS): Add UST_CFLAGS. | |
3515 | * config.in, configure: Regenerate. | |
3516 | ||
9e4344e5 PA |
3517 | 2010-06-20 Ian Lance Taylor <iant@google.com> |
3518 | Pedro Alves <pedro@codesourcery.com> | |
3519 | ||
3520 | * linux-x86-low.c (always_true): Delete. | |
3521 | (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of | |
3522 | trying to fool the compiler with always_true. | |
3523 | ||
c6beb2cb PA |
3524 | 2010-06-20 Pedro Alves <pedro@codesourcery.com> |
3525 | ||
3526 | * tracepoint.c (condition_true_at_tracepoint): Don't run compiled | |
3527 | conditions in gdbserver. | |
3528 | ||
d2ed6730 UW |
3529 | 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com> |
3530 | ||
3531 | * spu-low.c (spu_read_memory): Wrap around local store limit. | |
3532 | (spu_write_memory): Likewise. | |
3533 | ||
4e29fb54 PA |
3534 | 2010-06-15 Pedro Alves <pedro@codesourcery.com> |
3535 | ||
3536 | * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2) | |
3537 | (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with | |
3538 | LONGEST uses. | |
3539 | * server.h (struct emit_ops): Replace int64_t uses with LONGEST | |
3540 | uses. | |
3541 | * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t | |
3542 | uses with LONGEST uses. | |
3543 | ||
6a271cae PA |
3544 | 2010-06-14 Stan Shebs <stan@codesourcery.com> |
3545 | Pedro Alves <pedro@codesourcery.com> | |
3546 | ||
3547 | Bytecode compiler. | |
3548 | ||
3549 | * linux-x86-low.c: Include limits.h. | |
3550 | (add_insns): New. | |
3551 | (always_true): New. | |
3552 | (EMIT_ASM): New. | |
3553 | (EMIT_ASM32): New. | |
3554 | (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add) | |
3555 | (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh) | |
3556 | (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext, | |
3557 | (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or) | |
3558 | (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal, | |
3559 | (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref, | |
3560 | (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address) | |
3561 | (amd64_emit_const, amd64_emit_call, amd64_emit_reg) | |
3562 | (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext) | |
3563 | (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1) | |
3564 | (amd64_emit_void_call_2): New. | |
3565 | (amd64_emit_ops): New. | |
3566 | (i386_emit_prologue, i386_emit_epilogue, i386_emit_add) | |
3567 | (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed) | |
3568 | (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not) | |
3569 | (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor) | |
3570 | (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed) | |
3571 | (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto) | |
3572 | (i386_emit_goto, i386_write_goto_address, i386_emit_const) | |
3573 | (i386_emit_call, i386_emit_reg, i386_emit_pop) | |
3574 | (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap) | |
3575 | (i386_emit_stack_adjust, i386_emit_int_call_1) | |
3576 | (i386_emit_void_call_2): New. | |
3577 | (i386_emit_ops): New. | |
3578 | (x86_emit_ops): New. | |
3579 | (the_low_target): Install x86_emit_ops. | |
3580 | * server.h (struct emit_ops): New. | |
3581 | (get_raw_reg_func_addr): Declare. | |
3582 | (current_insn_ptr, emit_error): Declare. | |
3583 | * tracepoint.c (get_raw_reg, get_trace_state_variable_value) | |
3584 | (set_trace_state_variable_value): New defines. | |
3585 | (struct ipa_sym_addresses): New fields addr_get_raw_reg, | |
3586 | addr_get_trace_state_variable_value and | |
3587 | addr_set_trace_state_variable_value. | |
3588 | (symbol_list): New fields for get_raw_reg, | |
3589 | get_trace_state_variable_value and set_trace_state_variable_value. | |
3590 | (condfn): New typedef. | |
3591 | (struct tracepoint): New field `compiled_cond'. | |
3592 | (do_action_at_tracepoint): Clear compiled_cond. | |
3593 | (get_trace_state_variable_value, set_trace_state_variable_value): | |
3594 | Export in the IPA. | |
3595 | (condition_true_at_tracepoint): If there's a compiled condition, | |
3596 | run that. | |
3597 | (current_insn_ptr, emit_error): New globals. | |
3598 | (struct bytecode_address): New. | |
3599 | (get_raw_reg_func_addr): New. | |
3600 | (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul) | |
3601 | (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext) | |
3602 | (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor) | |
3603 | (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned) | |
3604 | (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const) | |
3605 | (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap) | |
3606 | (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New. | |
3607 | (compile_tracepoint_condition, compile_bytecodes): New. | |
3608 | * target.h (emit_ops): Forward declare. | |
3609 | (struct target_ops): New field emit_ops. | |
3610 | (target_emit_ops): New. | |
3611 | * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New. | |
3612 | * linux-i386-ipa.c (gdb_agent_get_raw_reg): New. | |
3613 | * linux-low.c (linux_emit_ops): New. | |
3614 | (linux_target_ops): Install it. | |
3615 | * linux-low.h (struct linux_target_ops): New field emit_ops. | |
3616 | ||
92b72907 UW |
3617 | 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com> |
3618 | ||
3619 | * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR. | |
3620 | * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW. | |
3621 | ||
fa593d66 PA |
3622 | 2010-06-01 Pedro Alves <pedro@codesourcery.com> |
3623 | Stan Shebs <stan@codesourcery.com> | |
3624 | ||
3625 | * Makefile.in (IPA_DEPFILES, extra_libraries): New. | |
3626 | (all): Depend on $(extra_libraries). | |
3627 | (install-only): Install the IPA. | |
3628 | (IPA_OBJS, IPA_LIB): New. | |
3629 | (clean): Remove the IPA lib. | |
3630 | (IPAGENT_CFLAGS): New. | |
3631 | (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o) | |
3632 | (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o) | |
3633 | (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules. | |
3634 | * linux-amd64-ipa.c, linux-i386-ipa.c: New files. | |
3635 | * configure.ac: Check for atomic builtins support in the compiler. | |
3636 | (IPA_DEPFILES, extra_libraries): Define. | |
3637 | * configure.srv (ipa_obj): Add description. | |
3638 | (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define. | |
3639 | (i[34567]86-*-linux*): Set ipa_obj. | |
3640 | (x86_64-*-linux*): Set ipa_obj. | |
3641 | * linux-low.c (stabilizing_threads): New. | |
3642 | (supports_fast_tracepoints): New. | |
3643 | (linux_detach): Stabilize threads before detaching. | |
3644 | (handle_tracepoints): Handle internal tracing breakpoints. Assert | |
3645 | the lwp is either not stabilizing, or is moving out of a jump pad. | |
3646 | (linux_fast_tracepoint_collecting): New. | |
3647 | (maybe_move_out_of_jump_pad): New. | |
3648 | (enqueue_one_deferred_signal): New. | |
3649 | (dequeue_one_deferred_signal): New. | |
3650 | (linux_wait_for_event_1): If moving out of a jump pad, defer | |
3651 | pending signals to later. | |
3652 | (linux_stabilize_threads): New. | |
3653 | (linux_wait_1): Check if threads need moving out of jump pads, and | |
3654 | do it if so. | |
3655 | (stuck_in_jump_pad_callback): New. | |
3656 | (move_out_of_jump_pad_callback): New. | |
3657 | (lwp_running): New. | |
3658 | (linux_resume_one_lwp): Handle moving out of jump pads. | |
3659 | (linux_set_resume_request): Dequeue deferred signals. | |
3660 | (need_step_over_p): Also step over fast tracepoint jumps. | |
3661 | (start_step_over): Also uninsert fast tracepoint jumps. | |
3662 | (finish_step_over): Also reinsert fast tracepoint jumps. | |
3663 | (linux_install_fast_tracepoint_jump): New. | |
3664 | (linux_target_ops): Install linux_stabilize_threads and | |
3665 | linux_install_fast_tracepoint_jump_pad. | |
3666 | * linux-low.h (linux_target_ops) <get_thread_area, | |
3667 | install_fast_tracepoint_jump_pad>: New fields. | |
3668 | (struct lwp_info) <collecting_fast_tracepoint, | |
3669 | pending_signals_to_report, exit_jump_pad_bkpt>: New fields. | |
3670 | (linux_get_thread_area): Declare. | |
3671 | * linux-x86-low.c (jump_insn): New. | |
3672 | (x86_get_thread_area): New. | |
3673 | (append_insns): New. | |
3674 | (push_opcode): New. | |
3675 | (amd64_install_fast_tracepoint_jump_pad): New. | |
3676 | (i386_install_fast_tracepoint_jump_pad): New. | |
3677 | (x86_install_fast_tracepoint_jump_pad): New. | |
3678 | (the_low_target): Install x86_get_thread_area and | |
3679 | x86_install_fast_tracepoint_jump_pad. | |
3680 | * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory. | |
3681 | (struct fast_tracepoint_jump): New. | |
3682 | (fast_tracepoint_jump_insn): New. | |
3683 | (fast_tracepoint_jump_shadow): New. | |
3684 | (find_fast_tracepoint_jump_at): New. | |
3685 | (fast_tracepoint_jump_here): New. | |
3686 | (delete_fast_tracepoint_jump): New. | |
3687 | (set_fast_tracepoint_jump): New. | |
3688 | (uninsert_fast_tracepoint_jumps_at): New. | |
3689 | (reinsert_fast_tracepoint_jumps_at): New. | |
3690 | (set_breakpoint_at): Use write_inferior_memory. | |
3691 | (uninsert_raw_breakpoint): Use write_inferior_memory. | |
3692 | (check_mem_read): Mask out fast tracepoint jumps. | |
3693 | (check_mem_write): Mask out fast tracepoint jumps. | |
3694 | * mem-break.h (struct fast_tracepoint_jump): Forward declare. | |
3695 | (set_fast_tracepoint_jump): Declare. | |
3696 | (delete_fast_tracepoint_jump) | |
3697 | (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at) | |
3698 | (reinsert_fast_tracepoint_jumps_at): Declare. | |
3699 | * regcache.c: Don't compile many functions when building the | |
3700 | in-process agent library. | |
3701 | (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating | |
3702 | the register buffer in the heap. | |
3703 | (free_register_cache): If the register buffer isn't owned by the | |
3704 | regcache, don't free it. | |
3705 | (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate | |
3706 | pre-existing register caches. | |
3707 | * remote-utils.c (convert_int_to_ascii): Constify `from' parameter | |
3708 | type. | |
3709 | (convert_ascii_to_int): : Constify `from' parameter type. | |
3710 | (decode_M_packet, decode_X_packet): Replace the `to' parameter by | |
3711 | a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc | |
3712 | the needed buffer in-place. | |
3713 | (relocate_instruction): New. | |
3714 | * server.c (handle_query) <qSymbols>: If the target supports | |
3715 | tracepoints, give it a chance of looking up symbols. Report | |
3716 | support for fast tracepoints. | |
3717 | (handle_status): Stabilize threads. | |
3718 | (process_serial_event): Adjust. | |
3719 | * server.h (struct fast_tracepoint_jump): Forward declare. | |
3720 | (struct process_info) <fast_tracepoint_jumps>: New field. | |
3721 | (convert_ascii_to_int, convert_int_to_ascii): Adjust. | |
3722 | (decode_X_packet, decode_M_packet): Adjust. | |
3723 | (relocate_instruction): Declare. | |
3724 | (in_process_agent_loaded): Declare. | |
3725 | (tracepoint_look_up_symbols): Declare. | |
3726 | (struct fast_tpoint_collect_status): Declare. | |
3727 | (fast_tracepoint_collecting): Declare. | |
3728 | (force_unlock_trace_buffer): Declare. | |
3729 | (handle_tracepoint_bkpts): Declare. | |
3730 | (initialize_low_tracepoint) | |
3731 | (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare. | |
3732 | * target.h (struct target_ops) <stabilize_threads, | |
3733 | install_fast_tracepoint_jump_pad>: New fields. | |
3734 | (stabilize_threads, install_fast_tracepoint_jump_pad): New. | |
3735 | * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h. | |
3736 | [HAVE_STDINT_H]: Include stdint.h. | |
3737 | (trace_debug_1): Rename to ... | |
3738 | (trace_vdebug): ... this. | |
3739 | (trace_debug): Rename to ... | |
3740 | (trace_debug_1): ... this. Add `level' parameter. | |
3741 | (trace_debug): New. | |
3742 | (ATTR_USED, ATTR_NOINLINE): New. | |
3743 | (IP_AGENT_EXPORT): New. | |
3744 | (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end) | |
3745 | (collecting, gdb_collect, stop_tracing, flush_trace_buffer) | |
3746 | (about_to_request_buffer_space, trace_buffer_is_full) | |
3747 | (stopping_tracepoint, expr_eval_result, error_tracepoint) | |
3748 | (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr) | |
3749 | (trace_buffer_lo, trace_buffer_hi, traceframe_read_count) | |
3750 | (traceframe_write_count, traceframes_created) | |
3751 | (trace_state_variables) | |
3752 | New renaming defines. | |
3753 | (struct ipa_sym_addresses): New. | |
3754 | (STRINGIZE_1, STRINGIZE, IPA_SYM): New. | |
3755 | (symbol_list): New. | |
3756 | (ipa_sym_addrs): New. | |
3757 | (all_tracepoint_symbols_looked_up): New. | |
3758 | (in_process_agent_loaded): New. | |
3759 | (write_e_ipa_not_loaded): New. | |
3760 | (maybe_write_ipa_not_loaded): New. | |
3761 | (tracepoint_look_up_symbols): New. | |
3762 | (debug_threads) [IN_PROCESS_AGENT]: New. | |
3763 | (read_inferior_memory) [IN_PROCESS_AGENT]: New. | |
3764 | (UNKNOWN_SIDE_EFFECTS): New. | |
3765 | (stop_tracing): New. | |
3766 | (flush_trace_buffer): New. | |
3767 | (stop_tracing_bkpt): New. | |
3768 | (flush_trace_buffer_bkpt): New. | |
3769 | (read_inferior_integer): New. | |
3770 | (read_inferior_uinteger): New. | |
3771 | (read_inferior_data_pointer): New. | |
3772 | (write_inferior_data_pointer): New. | |
3773 | (write_inferior_integer): New. | |
3774 | (write_inferior_uinteger): New. | |
3775 | (struct collect_static_trace_data_action): Delete. | |
3776 | (enum tracepoint_type): New. | |
3777 | (struct tracepoint) <type>: New field `type'. | |
43aaf8b6 PA |
3778 | <actions_str, step_actions, step_actions_str>: Only include in |
3779 | GDBserver. | |
fa593d66 PA |
3780 | <orig_size, obj_addr_on_target, adjusted_insn_addr> |
3781 | <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields. | |
3782 | (tracepoints): Use IP_AGENT_EXPORT. | |
3783 | (last_tracepoint): Don't include in the IPA. | |
3784 | (stopping_tracepoint): Use IP_AGENT_EXPORT. | |
3785 | (trace_buffer_is_full): Use IP_AGENT_EXPORT. | |
3786 | (alloced_trace_state_variables): New. | |
3787 | (trace_state_variables): Use IP_AGENT_EXPORT. | |
3788 | (traceframe_t): Delete unused variable. | |
3789 | (circular_trace_buffer): Don't include in the IPA. | |
3790 | (trace_buffer_start): Delete. | |
3791 | (struct trace_buffer_control): New. | |
3792 | (trace_buffer_free): Delete. | |
3793 | (struct ipa_trace_buffer_control): New. | |
3794 | (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV) | |
3795 | (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT): | |
3796 | New. | |
3797 | (trace_buffer_ctrl): New. | |
3798 | (TRACE_BUFFER_CTRL_CURR): New. | |
3799 | (trace_buffer_start, trace_buffer_free, trace_buffer_end_free): | |
3800 | Reimplement as macros. | |
3801 | (trace_buffer_wrap): Delete. | |
3802 | (traceframe_write_count, traceframe_read_count) | |
3803 | (traceframes_created, tracing): Use IP_AGENT_EXPORT. | |
3804 | (struct tracepoint_hit_ctx) <type>: New field. | |
3805 | (struct fast_tracepoint_ctx): New. | |
3806 | (memory_barrier): New. | |
3807 | (cmpxchg): New. | |
3808 | (record_tracepoint_error): Update atomically in the IPA. | |
3809 | (clear_inferior_trace_buffer): New. | |
3810 | (about_to_request_buffer_space): New. | |
3811 | (trace_buffer_alloc): Handle GDBserver and inferior simulatenous | |
3812 | updating the same buffer. | |
3813 | (add_tracepoint): Default the tracepoint's type to trap | |
3814 | tracepoint, and orig_size to -1. | |
3815 | (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated | |
3816 | internal variables. | |
3817 | (create_trace_state_variable): New parameter `gdb'. Handle it. | |
3818 | (clear_installed_tracepoints): Clear fast tracepoint jumps. | |
3819 | (cmd_qtdp): Handle fast tracepoints. | |
3820 | (cmd_qtdv): Adjust. | |
3821 | (max_jump_pad_size): New. | |
3822 | (gdb_jump_pad_head): New. | |
3823 | (get_jump_space_head): New. | |
3824 | (claim_jump_space): New. | |
3825 | (sort_tracepoints): New. | |
3826 | (MAX_JUMP_SIZE): New. | |
3827 | (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the | |
3828 | IPA. | |
3829 | (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected | |
3830 | support. Upload fast traceframes, and delete internal IPA | |
3831 | breakpoints. | |
3832 | (stop_tracing_handler): New. | |
3833 | (flush_trace_buffer_handler): New. | |
3834 | (cmd_qtstop): Upload fast tracepoints. | |
3835 | (response_tracepoint): Handle fast tracepoints. | |
3836 | (tracepoint_finished_step): Upload fast traceframes. Set the | |
3837 | tracepoint hit context's tracepoint type. | |
3838 | (handle_tracepoint_bkpts): New. | |
3839 | (tracepoint_was_hit): Set the tracepoint hit context's tracepoint | |
3840 | type. Add comment about fast tracepoints. | |
3841 | (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the | |
3842 | non-existing action_str field. | |
3843 | (get_context_regcache): Handle fast tracepoints. | |
3844 | (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC | |
3845 | to the regcache. | |
3846 | (fast_tracepoint_from_jump_pad_address): New. | |
3847 | (fast_tracepoint_from_ipa_tpoint_address): New. | |
3848 | (collecting_t): New. | |
3849 | (force_unlock_trace_buffer): New. | |
3850 | (fast_tracepoint_collecting): New. | |
3851 | (collecting): New. | |
3852 | (gdb_collect): New. | |
3853 | (write_inferior_data_ptr): New. | |
3854 | (target_tp_heap): New. | |
3855 | (target_malloc): New. | |
3856 | (download_agent_expr): New. | |
3857 | (UALIGN): New. | |
3858 | (download_tracepoints): New. | |
3859 | (download_trace_state_variables): New. | |
3860 | (upload_fast_traceframes): New. | |
3861 | (IPA_FIRST_TRACEFRAME): New. | |
3862 | (IPA_NEXT_TRACEFRAME_1): New. | |
3863 | (IPA_NEXT_TRACEFRAME): New. | |
3864 | [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h. | |
3865 | [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer) | |
3866 | (gdb_jump_pad_buffer_end): New. | |
3867 | [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New. | |
3868 | (initialize_tracepoint): Adjust. | |
3869 | [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch | |
3870 | buffer. Initialize the low module. | |
3871 | * utils.c (PREFIX, TOOLNAME): New. | |
3872 | (malloc_failure): Use PREFIX. | |
3873 | (error): In the IPA, an error causes an exit. | |
3874 | (fatal, warning): Use PREFIX. | |
3875 | (internal_error): Use TOOLNAME. | |
3876 | (NUMCELLS): Increase to 10. | |
3877 | * configure, config.in: Regenerate. | |
3878 | ||
d149dd1d PA |
3879 | 2010-06-01 Pedro Alves <pedro@codesourcery.com> |
3880 | ||
3881 | * server.c (handle_query) <qSupported>: Do two passes over the | |
3882 | qSupported string to avoid nesting strtok. | |
3883 | ||
f6528abd JK |
3884 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3885 | ||
3886 | * Makefile.in (SFILES): Add $(srcdir)/proc-service.list. | |
3887 | (CDEPS): New. | |
3888 | * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also | |
3889 | -Wl,--dynamic-list. | |
3890 | * configure: Regenerate. | |
3891 | * proc-service.list: New. | |
3892 | ||
ca2a87a0 JK |
3893 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3894 | ||
3895 | * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT. | |
3896 | New comment. | |
3897 | ||
363a6e9f OS |
3898 | 2010-05-26 Ozkan Sezer <sezeroz@gmail.com> |
3899 | ||
3900 | * gdbreplay.c (remote_open): Check error return from socket() call by | |
3901 | its equality to -1 not by it being negative. | |
3902 | * remote-utils.c (remote_open): Likewise. | |
3903 | ||
d23b6cb1 PA |
3904 | 2010-05-23 Pedro Alves <pedro@codesourcery.com> |
3905 | ||
3906 | * config.h: Regenerate. | |
3907 | ||
28d3cf85 MK |
3908 | 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com> |
3909 | ||
3910 | * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel | |
3911 | doesn't provide PTRACE_GET_THREAD_AREA. | |
3912 | ||
fea36a59 MK |
3913 | 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com> |
3914 | ||
3915 | * linux-m68k-low.c: Include <asm/ptrace.h> | |
3916 | (ps_get_thread_area): Implement. | |
3917 | ||
24b066ba DE |
3918 | 2010-05-03 Doug Evans <dje@google.com> |
3919 | ||
3920 | * event-loop.c (struct callback_event): New struct. | |
3921 | (callback_list): New global. | |
3922 | (append_callback_event, delete_callback_event): New functions. | |
3923 | (process_callback): New function. | |
3924 | (start_event_loop): Call it. | |
3925 | * remote-utils.c (NOT_SCHEDULED): Define. | |
3926 | (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals, | |
3927 | moved out of readchar. | |
3928 | (readchar): Rewrite. Call reschedule before returning. | |
3929 | (reset_readchar): New function. | |
3930 | (remote_close): Call it. | |
3931 | (process_remaining, reschedule): New functions. | |
3932 | * server.h (callback_handler_func): New typedef. | |
3933 | (append_callback_event, delete_callback_event): Declare. | |
3934 | ||
9836d6ea PA |
3935 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
3936 | ||
3937 | * proc-service.c (ps_pglobal_lookup): Use | |
3938 | thread_db_look_up_one_symbol. | |
3939 | * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb' | |
3940 | parameter. Use it instead of all_symbols_looked_up. | |
3941 | * server.h (struct process_info) <all_symbols_looked_up>: Delete | |
3942 | field. | |
3943 | (all_symbols_looked_up): Don't declare. | |
3944 | (look_up_one_symbol): Add new `may_ask_gdb' parameter. | |
3945 | * thread-db.c (struct thread_db) <all_symbols_looked_up>: New | |
3946 | field. | |
3947 | (thread_db_look_up_symbols): Adjust call to look_up_one_symbol. | |
3948 | Set all_symbols_looked_up here. | |
3949 | (thread_db_look_up_one_symbol): New. | |
3950 | (thread_db_get_tls_address): Adjust. | |
3951 | (thread_db_load_search, try_thread_db_load_1): Always allocate the | |
3952 | thread_db object on the heap, and tentatively set it in the | |
3953 | process structure. | |
3954 | (thread_db_init): Don't set all_symbols_looked_up here. | |
3955 | * linux-low.h (thread_db_look_up_one_symbol): Declare. | |
3956 | ||
7984d532 PA |
3957 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
3958 | ||
3959 | * linux-low.c (linux_kill, linux_detach): Adjust. | |
3960 | (status_pending_p_callback): Remove redundant statement. Check | |
3961 | for !TARGET_WAITIKIND_IGNORE, instead of | |
3962 | TARGET_WAITKIND_STOPPED. | |
3963 | (handle_tracepoints): Make sure LWP is locked. Adjust. | |
3964 | (linux_wait_for_event_1): Adjust. | |
3965 | (linux_cancel_breakpoints): New. | |
3966 | (unsuspend_one_lwp): New. | |
3967 | (unsuspend_all_lwps): New. | |
3968 | (linux_wait_1): If finishing a step-over, unsuspend all lwps. | |
3969 | (send_sigstop_callback): Change return type to int, add new | |
3970 | `except' parameter and handle it. | |
3971 | (suspend_and_send_sigstop_callback): New. | |
3972 | (stop_all_lwps): Add new `suspend' and `expect' parameters, and | |
3973 | pass them down. If SUSPEND, also increment the lwp's suspend | |
3974 | count. | |
3975 | (linux_resume_one_lwp): Add notice about resuming a suspended LWP. | |
3976 | (need_step_over_p): Don't consider suspended LWPs. | |
3977 | (start_step_over): Adjust. | |
3978 | (proceed_one_lwp): Change return type to int, add new `except' | |
3979 | parameter and handle it. | |
3980 | (unsuspend_and_proceed_one_lwp): New. | |
3981 | (proceed_all_lwps): Use find_inferior instead of | |
3982 | for_each_inferior. | |
3983 | (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them | |
3984 | also decrement the suspend count of LWPs. Pass `except' down, | |
3985 | instead of hacking its suspend count. | |
3986 | (linux_pause_all): Add `freeze' parameter. Adjust. | |
3987 | (linux_unpause_all): New. | |
3988 | (linux_target_ops): Install linux_unpause_all. | |
3989 | * server.c (handle_status): Adjust. | |
3990 | * target.h (struct target_ops): New fields `unpause_all' and | |
3991 | `cancel_breakpoints'. Add new parameter to `pause_all'. | |
3992 | (pause_all): Add new `freeze' parameter. | |
3993 | (unpause_all): New. | |
3994 | (cancel_breakpoints): New. | |
3995 | * tracepoint.c (clear_installed_tracepoints): Pause threads, and | |
3996 | cancel breakpoints. | |
3997 | (cmd_qtstart): Pause threads. | |
3998 | (stop_tracing): Pause threads, and cancel breakpoints. | |
3999 | * win32-low.c (win32_target_ops): Adjust. | |
4000 | ||
e471f25b PA |
4001 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
4002 | ||
4003 | * linux-low.c (linux_wait_for_event_1): Move passing the signal to | |
4004 | the inferior right away from here... | |
4005 | (linux_wait_1): ... to here, and adjust to check the thread's | |
4006 | last_resume_kind instead of the lwp's step or stop_expected flags. | |
4007 | ||
1915ef4f PA |
4008 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
4009 | ||
4010 | * README: Use consistent `GDB' and `GDBserver' spellings. | |
4011 | ||
f9e39928 PA |
4012 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
4013 | ||
4014 | * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped. | |
4015 | (linux_kill): Stop all lwps here. Don't delete the main lwp here. | |
4016 | (linux_detach_one_lwp): Assume the lwp is stopped. | |
4017 | (any_thread_of): Delete. | |
4018 | (linux_detach): Stop all lwps here. Don't blindly delete all | |
4019 | breakpoints. | |
4020 | (delete_lwp_callback): New. | |
4021 | (linux_mourn): Delete all lwps of the process that is gone. | |
4022 | (linux_wait_1): Don't delete the last lwp of the process here. | |
4023 | * mem-break.h (mark_breakpoints_out): Declare. | |
4024 | * mem-break.c (mark_breakpoints_out): New. | |
4025 | (free_all_breakpoints): Use it. | |
4026 | * server.c (handle_target_event): If the process is gone, mark | |
4027 | breakpoints out. | |
4028 | * thread-db.c (struct thread_db) <create_bp>: New field. | |
4029 | (thread_db_enable_reporting): Fix prototype. Store a thread event | |
4030 | breakpoint reference in the thread_db struct. | |
4031 | (thread_db_load_search): Clear the thread_db object. | |
4032 | (try_thread_db_load_1): Ditto. | |
4033 | (switch_to_process): New. | |
4034 | (disable_thread_event_reporting): Use it. | |
4035 | (remove_thread_event_breakpoints): New. | |
4036 | (thread_db_detach, thread_db_mourn): Use it. | |
4037 | ||
1e7fc18c PA |
4038 | 2010-05-01 Pedro Alves <pedro@codesourcery.com> |
4039 | ||
4040 | * linux-low.c (linux_enable_event_reporting): New. | |
4041 | (linux_wait_for_event_1, handle_extended_wait): Use it. | |
4042 | ||
02fc4de7 PA |
4043 | 2010-04-30 Pedro Alves <pedro@codesourcery.com> |
4044 | ||
4045 | * linux-low.c (linux_kill_one_lwp, linux_kill) | |
4046 | (linux_detach_one_lwp): Adjust to send_sigstop interface change. | |
4047 | (send_sigstop): Take an lwp_info as parameter instead. Queue a | |
4048 | SIGSTOP even if the LWP is stopped. | |
4049 | (send_sigstop_callback): New. | |
4050 | (stop_all_lwps): Use send_sigstop_callback instead. | |
4051 | (linux_resume_one_thread): Adjust. | |
4052 | (proceed_one_lwp): Still proceed an LWP that the client has | |
4053 | requested to stop, if we haven't reported it as stopped yet. Make | |
4054 | sure that LWPs the client want stopped, have a pending SIGSTOP. | |
4055 | ||
bc3b5632 DE |
4056 | 2010-04-26 Doug Evans <dje@google.com> |
4057 | ||
ae1ada35 DE |
4058 | * server.c (handle_general_set): Make static. |
4059 | ||
bc3b5632 DE |
4060 | * remote-utils.c (putpkt_binary_1): Call readchar instead of read. |
4061 | Print received char after testing for error/eof instead of before. | |
4062 | (input_interrupt): Tweak comment. | |
4063 | ||
65730243 DE |
4064 | 2010-04-23 Doug Evans <dje@google.com> |
4065 | ||
4066 | * server.c (start_inferior): Print inferior argv if --debug. | |
4067 | ||
a8ae7dc0 AR |
4068 | 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com> |
4069 | ||
4070 | * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists. | |
4071 | * nto-x86-low.c: Include server.h | |
4072 | ||
1c07cc19 PM |
4073 | 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr> |
4074 | ||
4075 | * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to | |
4076 | be consistent with other sources of this directory. | |
4077 | (init_registers_amd64): Correct name of source file of this function | |
4078 | in the comment. | |
4079 | ||
e0a61e09 PM |
4080 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
4081 | ||
4082 | * configure.srv (x86_64-*-mingw*): New configuration for Windows | |
4083 | 64-bit executables. | |
4084 | ||
54709339 PM |
4085 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
4086 | ||
4087 | * win32-i386-low.c: Add 64-bit support. | |
4088 | (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting. | |
4089 | (init_registers_amd64): Declare. | |
4090 | (mappings): Add 64-bit version of array. | |
4091 | (init_windows_x86): New function. | |
4092 | (the_low_target): Change init_arch field to init_windows_x86. | |
4093 | ||
e8f0053d PM |
4094 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
4095 | ||
4096 | * win32-low.c: Adapt to support also 64-bit architecture. | |
4097 | (child_xfer_memory): Use uintptr_t type for local variable `addr'. | |
4098 | (get_image_name): Use SIZE_T type for local variable `done'. | |
4099 | (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'. | |
4100 | (toolhelp_get_dll_name): Idem. | |
4101 | (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'. | |
4102 | Use uintptr_t typecast to avoid warning. | |
4103 | (handle_unload_dll): Use uintptr_t typecast to avoid warning. | |
4104 | (handle_exception): Use phex_nz to avoid warning. | |
4105 | (win32_wait): Remove unused local variable `process'. | |
4106 | ||
c481e77e PM |
4107 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
4108 | ||
4109 | * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by | |
4110 | `amd64-avx.o'. | |
4111 | ||
12ea4b69 PM |
4112 | 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr> |
4113 | ||
4114 | * configure.ac: Use `ws2_32' library for srv_mingw. | |
4115 | * configure: Regenerate. | |
4116 | * gdbreplay.c: Include winsock2.h instead of winsock.h. | |
4117 | * remote-utils.c: Likewise. | |
4118 | ||
f6d1620c L |
4119 | 2010-04-17 H.J. Lu <hongjiu.lu@intel.com> |
4120 | ||
4121 | * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only | |
4122 | if __x86_64__ is defined. | |
4123 | ||
8e642873 PM |
4124 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
4125 | ||
4126 | * configure: Regenerate. | |
4127 | ||
711e434b PM |
4128 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
4129 | ||
4130 | * server.c (handle_query): Handle 'qGetTIBAddr' query. | |
4131 | * target.h (target_ops): New get_tib_address field. | |
4132 | * win32-low.h (win32_thread_info): Add thread_local_base field. | |
4133 | * win32-low.c (child_add_thread): Add tlb argument. | |
4134 | Set thread_local_base field to TLB. | |
4135 | (get_child_debug_event): Adapt to child_add_thread change. | |
4136 | (win32_get_tib_address): New function. | |
4137 | (win32_target_ops): Set get_tib_address field to | |
4138 | win32_get_tib_address. | |
4139 | * linux-low.c (linux_target_ops): Set get_tib_address field to NULL. | |
4140 | ||
505106cd PA |
4141 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
4142 | ||
505106cd PA |
4143 | * linux-low.c (linux_mourn): Also remove the process. |
4144 | * server.c (handle_target_event): Don't remove the process here. | |
4145 | * nto-low.c (nto_mourn): New. | |
4146 | (nto_target_ops): Install it. | |
4147 | * spu-low.c (spu_mourn): New. | |
4148 | (spu_target_ops): Install it. | |
4149 | * win32-low.c (win32_mourn): New. | |
4150 | (win32_target_ops): Install it. | |
4151 | ||
e8470a06 PA |
4152 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
4153 | ||
4154 | * server.h (buffer_xml_printf): Remove redundant `;'. | |
4155 | ||
45ba0d02 PA |
4156 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
4157 | ||
4158 | * regcache.c (set_register_cache): Invalidate regcaches before | |
4159 | changing the register cache layout. | |
4160 | (regcache_invalidate_one): Allow a NULL regcache. | |
4161 | * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate | |
4162 | regcaches before changing the register cache layout or the target | |
4163 | regsets. | |
4164 | ||
59e04013 L |
4165 | 2010-04-12 H.J. Lu <hongjiu.lu@intel.com> |
4166 | ||
4167 | * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused | |
4168 | variable warning on Linux/x86-64. | |
4169 | ||
8336d594 PA |
4170 | 2010-04-11 Pedro Alves <pedro@codesourcery.com> |
4171 | ||
4172 | GDBserver disconnected tracing support. | |
4173 | ||
4174 | * linux-low.c (linux_remove_process): Delete. | |
4175 | (add_lwp): Don't set last_resume_kind here. | |
4176 | (linux_kill): Use `mourn'. | |
4177 | (linux_detach): Use `thread_db_detach', and `mourn'. | |
4178 | (linux_mourn): New. | |
4179 | (linux_attach_lwp_1): Adjust comment. | |
4180 | (linux_attach): last_resume_kind moved the thread_info; adjust. | |
4181 | (status_pending_p_callback): Adjust. | |
4182 | (linux_wait_for_event_1): Adjust. | |
4183 | (count_events_callback, select_singlestep_lwp_callback) | |
4184 | (select_event_lwp_callback, cancel_breakpoints_callback) | |
4185 | (db_wants_lwp_stopped, linux_wait_1, need_step_over_p) | |
4186 | (proceed_one_lwp): Adjust. | |
4187 | (linux_async): Add debug output. | |
4188 | (linux_thread_stopped): New. | |
4189 | (linux_pause_all): New. | |
4190 | (linux_target_ops): Install linux_mourn, linux_thread_stopped and | |
4191 | linux_pause_all. | |
4192 | * linux-low.h (struct lwp_info): Delete last_resume_kind field. | |
4193 | (thread_db_free): Delete declaration. | |
4194 | (thread_db_detach, thread_db_mourn): Declare. | |
4195 | * thread-db.c (thread_db_init): Use thread_db_mourn. | |
4196 | (thread_db_free): Delete, split in two. | |
4197 | (disable_thread_event_reporting): New. | |
4198 | (thread_db_detach): New. | |
4199 | (thread_db_mourn): New. | |
4200 | ||
4201 | * server.h (struct thread_info) <last_resume_kind>: New field. | |
4202 | <attached>: Add comment. | |
4203 | <gdb_detached>: New field. | |
4204 | (handler_func): Change return type to int. | |
4205 | (handle_serial_event, handle_target_event): Ditto. | |
4206 | (gdb_connected): Declare. | |
4207 | (tracing): Delete. | |
4208 | (disconnected_tracing): Declare. | |
4209 | (stop_tracing): Declare. | |
4210 | ||
4211 | * server.c (handle_query) <qSupported>: Report support for | |
4212 | disconnected tracing. | |
4213 | (queue_stop_reply_callback): Account for running threads. | |
4214 | (gdb_wants_thread_stopped): New. | |
4215 | (gdb_wants_all_threads_stopped): New. | |
4216 | (gdb_reattached_process): New. | |
4217 | (handle_status): Clear the `gdb_detached' flag of all processes. | |
4218 | In all-stop, stop all threads. | |
4219 | (main): Be sure to leave tfind mode. Handle disconnected tracing. | |
4220 | (process_serial_event): If the remote connection breaks, or if an | |
4221 | exit was forced with "monitor exit", force an event loop exit. | |
4222 | Handle disconnected tracing on detach. | |
4223 | (handle_serial_event): Adjust. | |
4224 | (handle_target_event): If GDB isn't connected, forward events back | |
4225 | to the inferior, unless the last process exited, in which case, | |
4226 | exit gdbserver. Adjust interface. | |
4227 | ||
4228 | * remote-utils.c (remote_open): Don't block in accept. Instead | |
4229 | register an event loop source on the listen socket file | |
4230 | descriptor. Refactor bits into ... | |
4231 | (listen_desc): ... this new global. | |
4232 | (gdb_connected): ... this new function. | |
4233 | (enable_async_notification): ... this new function. | |
4234 | (handle_accept_event): ... this new function. | |
4235 | (remote_close): Clear remote_desc. | |
4236 | ||
4237 | * inferiors.c (add_thread): Set the new thread's last_resume_kind. | |
4238 | ||
4239 | * target.h (struct target_ops) <mourn, thread_stopped, pause_all>: | |
4240 | New fields. | |
4241 | (mourn_inferior): Define. | |
4242 | (target_process_qsupported): Avoid the dangling else problem. | |
4243 | (thread_stopped): Define. | |
4244 | (pause_all): Define. | |
4245 | (target_waitstatus_to_string): Declare. | |
4246 | * target.c (target_waitstatus_to_string): New. | |
4247 | ||
4248 | * tracepoint.c (tracing): Make extern. | |
4249 | (disconnected_tracing): New. | |
4250 | (stop_tracing): Make extern. Handle tracing stops due to GDB | |
4251 | disconnecting. | |
4252 | (cmd_qtdisconnected): New. | |
4253 | (cmd_qtstatus): Report disconnected tracing status in trace reply. | |
4254 | (handle_tracepoint_general_set): Handle QTDisconnected. | |
4255 | ||
4256 | * event-loop.c (event_handler_func): Change return type to int. | |
4257 | (process_event): Bail out if the event handler wants the event | |
4258 | loop to stop. | |
4259 | (handle_file_event): Ditto. | |
4260 | (start_event_loop): Bail out if the event handler wants the event | |
4261 | loop to stop. | |
4262 | ||
4263 | * nto-low.c (nto_target_ops): Adjust. | |
4264 | * spu-low.c (spu_wait): Don't remove the process here. | |
4265 | (spu_target_ops): Adjust. | |
4266 | * win32-low.c (win32_wait): Don't remove the process here. | |
4267 | (win32_target_ops): Adjust. | |
4268 | ||
5d267c4c PA |
4269 | 2010-04-11 Pedro Alves <pedro@codesourcery.com> |
4270 | ||
4271 | * regcache.c (realloc_register_cache): Invalidate inferior's | |
4272 | regcache before recreating it. | |
4273 | ||
623ccd72 PA |
4274 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
4275 | ||
4276 | * tracepoint.c (cmd_qtstatus): Report trace buffer circularity. | |
4277 | ||
219f2f23 PA |
4278 | 2010-04-09 Stan Shebs <stan@codesourcery.com> |
4279 | Pedro Alves <pedro@codesourcery.com> | |
4280 | ||
4281 | * server.h (LONGEST): New. | |
4282 | (struct thread_info) <while_stepping>: New field. | |
4283 | (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz): | |
4284 | Declare. | |
4285 | (initialize_tracepoint, handle_tracepoint_general_set) | |
4286 | (handle_tracepoint_query, tracepoint_finished_step) | |
4287 | (tracepoint_was_hit, release_while_stepping_state_list): | |
4288 | (current_traceframe): Declare. | |
4289 | * server.c (handle_general_set): Handle tracepoint packets. | |
4290 | (read_memory): New. | |
4291 | (write_memory): New. | |
4292 | (handle_search_memory_1): Use read_memory. | |
4293 | (handle_query): Report support for conditional tracepoints, trace | |
4294 | state variables, and tracepoint sources. Handle tracepoint | |
4295 | queries. | |
4296 | (main): Initialize the tracepoints module. | |
4297 | (process_serial_event): Handle traceframe reads/writes. | |
4298 | ||
4299 | * linux-low.c (handle_tracepoints): New. | |
4300 | (linux_wait_1): Call it. | |
4301 | (linux_resume_one_lwp): Handle while-stepping. | |
4302 | (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New. | |
4303 | (linux_target_ops): Install them. | |
4304 | * linux-low.h (struct linux_target_ops) <supports_tracepoints>: | |
4305 | New field. | |
4306 | * linux-x86-low.c (x86_supports_tracepoints): New. | |
4307 | (the_low_target). Install it. | |
4308 | ||
4309 | * mem-break.h (delete_breakpoint): Declare. | |
4310 | * mem-break.c (delete_breakpoint): Make external. | |
4311 | ||
4312 | * target.h (struct target_ops): Add `supports_tracepoints', | |
4313 | `read_pc', and `write_pc' fields. | |
4314 | (target_supports_tracepoints): Define. | |
4315 | * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two) | |
4316 | (phex_nz): New. | |
4317 | ||
4318 | * regcache.h (struct regcache) <registers_owned>: New field. | |
4319 | (init_register_cache, regcache_cpy): Declare. | |
4320 | (regcache_read_pc, regcache_write_pc): Declare. | |
4321 | (register_cache_size): Declare. | |
4322 | (supply_regblock): Declare. | |
4323 | * regcache.c (init_register_cache): New. | |
4324 | (new_register_cache): Use it. | |
4325 | (regcache_cpy): New. | |
4326 | (register_cache_size): New. | |
4327 | (supply_regblock): New. | |
4328 | (regcache_read_pc, regcache_write_pc): New. | |
889bf7c5 | 4329 | |
219f2f23 PA |
4330 | * tracepoint.c: New. |
4331 | ||
4332 | * Makefile.in (OBS): Add tracepoint.o. | |
4333 | (tracepoint.o): New rule. | |
4334 | ||
3a13a53b L |
4335 | 2010-04-08 H.J. Lu <hongjiu.lu@intel.com> |
4336 | ||
4337 | * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c. | |
4338 | (i386-mmx.o): New. | |
4339 | (i386-mmx.c): Likewise. | |
4340 | (i386-mmx-linux.o): Likewise. | |
4341 | (i386-mmx-linux.c): Likewise. | |
4342 | ||
4343 | * configure.srv (srv_i386_regobj): Add i386-mmx.o. | |
4344 | (srv_i386_linux_regobj): Add i386-mmx-linux.o. | |
4345 | (srv_i386_xmlfiles): Add i386/i386-mmx.xml. | |
4346 | (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml. | |
4347 | ||
4348 | * linux-x86-low.c (init_registers_i386_mmx_linux): New. | |
4349 | (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux | |
4350 | and return if ptrace PTRACE_GETFPXREGS failed in 32bit. | |
4351 | ||
1570b33e L |
4352 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
4353 | ||
4354 | * Makefile.in (clean): Updated. | |
4355 | (i386-avx.o): New. | |
4356 | (i386-avx.c): Likewise. | |
4357 | (i386-avx-linux.o): Likewise. | |
4358 | (i386-avx-linux.c): Likewise. | |
4359 | (amd64-avx.o): Likewise. | |
4360 | (amd64-avx.c): Likewise. | |
4361 | (amd64-avx-linux.o): Likewise. | |
4362 | (amd64-avx-linux.c): Likewise. | |
4363 | ||
4364 | * configure.srv (srv_i386_regobj): Add i386-avx.o. | |
4365 | (srv_i386_linux_regobj): Add i386-avx-linux.o. | |
4366 | (srv_amd64_regobj): Add amd64-avx.o. | |
4367 | (srv_amd64_linux_regobj): Add amd64-avx-linux.o. | |
4368 | (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml. | |
4369 | (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml. | |
4370 | (srv_i386_xmlfiles): Add i386/i386-avx.xml. | |
4371 | (srv_amd64_xmlfiles): Add i386/amd64-avx.xml. | |
4372 | (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml. | |
4373 | (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml. | |
4374 | ||
4375 | * i387-fp.c: Include "i386-xstate.h". | |
4376 | (i387_xsave): New. | |
4377 | (i387_cache_to_xsave): Likewise. | |
4378 | (i387_xsave_to_cache): Likewise. | |
4379 | (x86_xcr0): Likewise. | |
4380 | ||
4381 | * i387-fp.h (i387_cache_to_xsave): Likewise. | |
4382 | (i387_xsave_to_cache): Likewise. | |
4383 | (x86_xcr0): Likewise. | |
4384 | ||
4385 | * linux-arm-low.c (target_regsets): Initialize nt_type to 0. | |
4386 | * linux-crisv32-low.c (target_regsets): Likewise. | |
4387 | * linux-m68k-low.c (target_regsets): Likewise. | |
4388 | * linux-mips-low.c (target_regsets): Likewise. | |
4389 | * linux-ppc-low.c (target_regsets): Likewise. | |
4390 | * linux-s390-low.c (target_regsets): Likewise. | |
4391 | * linux-sh-low.c (target_regsets): Likewise. | |
4392 | * linux-sparc-low.c (target_regsets): Likewise. | |
4393 | * linux-xtensa-low.c (target_regsets): Likewise. | |
4394 | ||
4395 | * linux-low.c: Include <sys/uio.h>. | |
4396 | (regsets_fetch_inferior_registers): Support nt_type. | |
4397 | (regsets_store_inferior_registers): Likewise. | |
4398 | (linux_process_qsupported): New. | |
4399 | (linux_target_ops): Add linux_process_qsupported. | |
4400 | ||
4401 | * linux-low.h (regset_info): Add nt_type. | |
4402 | (linux_target_ops): Add process_qsupported. | |
4403 | ||
4404 | * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h" | |
4405 | and <sys/uio.h>. | |
4406 | (init_registers_i386_avx_linux): New. | |
4407 | (init_registers_amd64_avx_linux): Likewise. | |
4408 | (xmltarget_i386_linux_no_xml): Likewise. | |
4409 | (xmltarget_amd64_linux_no_xml): Likewise. | |
4410 | (PTRACE_GETREGSET): Likewise. | |
4411 | (PTRACE_SETREGSET): Likewise. | |
4412 | (x86_fill_xstateregset): Likewise. | |
4413 | (x86_store_xstateregset): Likewise. | |
4414 | (use_xml): Likewise. | |
4415 | (x86_linux_update_xmltarget): Likewise. | |
4416 | (x86_linux_process_qsupported): Likewise. | |
4417 | (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type. | |
4418 | (x86_arch_setup): Don't call init_registers_amd64_linux nor | |
4419 | init_registers_i386_linux here. Call | |
4420 | x86_linux_update_xmltarget. | |
4421 | (the_low_target): Add x86_linux_process_qsupported. | |
4422 | ||
4423 | * server.c (handle_query): Call target_process_qsupported. | |
4424 | ||
4425 | * target.h (target_ops): Add process_qsupported. | |
4426 | (target_process_qsupported): New. | |
4427 | ||
fc7238bb PA |
4428 | 2010-04-03 Pedro Alves <pedro@codesourcery.com> |
4429 | ||
4430 | * inferiors.c (add_thread): Set last_status kind to | |
4431 | TARGET_WAITKIND_IGNORE. | |
4432 | * linux-low.c (cancel_breakpoint): Remove unnecessary regcache | |
4433 | fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls. | |
4434 | (linux_wait_1): Move `thread' local definition to block that uses | |
4435 | it. Don't NULL initialize `event_child'. | |
4436 | (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls. | |
4437 | Alway set the thread's last_status to TARGET_WAITKIND_IGNORE. | |
4438 | * linux-x86-low.c (x86_breakpoint_at): Read raw memory. | |
4439 | ||
bdabb078 PA |
4440 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
4441 | ||
4442 | * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with | |
4443 | an extended waitstatus, or by a watchpoint. | |
4444 | (cancel_breakpoints_callback): Don't cancel a breakpoint if the | |
4445 | thread was stepping or has been stopped by a watchpoint. | |
4446 | ||
d3bbe7a0 PA |
4447 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
4448 | ||
4449 | * mem-break.c (struct raw_breakpoint): New field shlib_disabled. | |
4450 | (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top | |
4451 | of another, then delete the previous, and validate all | |
4452 | breakpoints. | |
4453 | (validate_inserted_breakpoint): New. | |
4454 | (delete_disabled_breakpoints): New. | |
4455 | (validate_breakpoints): New. | |
4456 | (check_mem_read): Validate breakpoints before trusting their | |
4457 | shadow. Delete disabled breakpoints. | |
4458 | (check_mem_write): Validate breakpoints before trusting they | |
4459 | should be inserted. Delete disabled breakpoints. | |
4460 | * mem-break.h (validate_breakpoints): | |
4461 | * server.c (handle_query): Validate breakpoints when we see a | |
4462 | qSymbol query. | |
4463 | ||
8b07ae33 PA |
4464 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
4465 | ||
4466 | * linux-low.c (linux_wait_1): Avoid setting need_step_over is | |
4467 | there's a GDB breakpoint at stop_pc. Always report a trap to GDB | |
4468 | if we could tell there's a GDB breakpoint at stop_pc. | |
4469 | (need_step_over_p): Don't do a step over if we find a GDB | |
4470 | breakpoint at the resume PC. | |
4471 | ||
4472 | * mem-break.c (struct raw_breakpoint): New. | |
4473 | (enum bkpt_type): New type `gdb_breakpoint'. | |
4474 | (struct breakpoint): Delete the `PC', `old_data' and `inserted' | |
4475 | fields. New field `raw'. | |
4476 | (find_raw_breakpoint_at): New. | |
4477 | (set_raw_breakpoint_at): Handle refcounting. Create a raw | |
4478 | breakpoint instead. | |
4479 | (set_breakpoint_at): Adjust. | |
4480 | (delete_raw_breakpoint): New. | |
4481 | (release_breakpoint): New. | |
4482 | (delete_breakpoint): Rename to... | |
4483 | (delete_breakpoint_1): ... this. Add proc parameter. Use | |
4484 | release_breakpoint. Return ENOENT. | |
4485 | (delete_breakpoint): Reimplement. | |
4486 | (find_breakpoint_at): Delete. | |
4487 | (find_gdb_breakpoint_at): New. | |
4488 | (delete_breakpoint_at): Delete. | |
4489 | (set_gdb_breakpoint_at): New. | |
4490 | (delete_gdb_breakpoint_at): New. | |
4491 | (gdb_breakpoint_here): New. | |
4492 | (set_reinsert_breakpoint): Use release_breakpoint. | |
4493 | (uninsert_breakpoint): Rename to ... | |
4494 | (uninsert_raw_breakpoint): ... this. | |
4495 | (uninsert_breakpoints_at): Adjust to handle raw breakpoints. | |
4496 | (reinsert_raw_breakpoint): Change parameter type to | |
4497 | raw_breakpoint. | |
4498 | (reinsert_breakpoints_at): Adjust to handle raw breakpoints | |
4499 | instead. | |
4500 | (check_breakpoints): Adjust. Use release_breakpoint. | |
4501 | (breakpoint_here): Rewrite using find_raw_breakpoint_at. | |
4502 | (breakpoint_inserted_here): Ditto. | |
4503 | (check_mem_read): Adjust to iterate over raw breakpoints instead. | |
4504 | Don't trust the breakpoint's shadow if it is not inserted. | |
4505 | (check_mem_write): Adjust to iterate over raw breakpoints instead. | |
4506 | (delete_all_breakpoints): Adjust. | |
4507 | (free_all_breakpoints): Mark all breakpoints as uninserted, and | |
4508 | use delete_breakpoint_1. | |
4509 | ||
4510 | * mem-break.h (breakpoints_supported): Delete declaration. | |
4511 | (set_gdb_breakpoint_at): Declare. | |
4512 | (gdb_breakpoint_here): Declare. | |
4513 | (delete_breakpoint_at): Delete. | |
4514 | (delete_gdb_breakpoint_at): Declare. | |
4515 | ||
4516 | * server.h (struct raw_breakpoint): Forward declare. | |
4517 | (struct process_info): New field `raw_breakpoints'. | |
4518 | ||
4519 | * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0 | |
4520 | breakpoints. | |
4521 | ||
6bf5e0ba PA |
4522 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
4523 | ||
4524 | * linux-low.c (status_pending_p_callback): Fix comment. | |
4525 | (linux_wait_for_event_1): Move most of the internal breakpoint | |
4526 | handling from here... | |
4527 | (linux_wait_1): ... to here. | |
4528 | (count_events_callback): New. | |
4529 | (select_singlestep_lwp_callback): New. | |
4530 | (select_event_lwp_callback): New. | |
4531 | (cancel_breakpoints_callback): New. | |
4532 | (select_event_lwp): New. | |
4533 | (linux_wait_1): Simplify internal breakpoint handling. Give equal | |
4534 | priority to all LWPs that have had events that should be reported | |
4535 | to the client. Cancel breakpoints when about to reporting the | |
4536 | event to the client, not while stopping lwps. No longer cancel | |
4537 | finished single-steps here. | |
4538 | (cancel_finished_single_step): Delete. | |
4539 | (cancel_finished_single_steps): Delete. | |
4540 | ||
414a389f PA |
4541 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
4542 | ||
4543 | * mem-break.c (enum bkpt_type): New. | |
4544 | (struct breakpoint): New field `type'. | |
4545 | (set_breakpoint_at): Change return type to struct breakpoint | |
4546 | pointer. Set type to `other_breakpoint' by default. | |
4547 | (delete_breakpoint): Rewrite, supporting more than one breakpoint | |
4548 | in the breakpoint list. | |
4549 | (delete_reinsert_breakpoints): Only delete reinsert breakpoints. | |
4550 | (reinsert_breakpoint): Rename to ... | |
4551 | (reinsert_raw_breakpoint): ... this. | |
4552 | (reinsert_breakpoints_at): Adjust. | |
4553 | * mem-break.h (struct breakpoint): Declare. | |
4554 | (set_breakpoint_at): Change return type to struct breakpoint | |
4555 | pointer. | |
4556 | ||
2280c721 PA |
4557 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
4558 | ||
4559 | * server.c (handle_query): Assign, not compare. | |
4560 | ||
d50171e4 PA |
4561 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
4562 | ||
4563 | Teach linux gdbserver to step-over-breakpoints. | |
4564 | ||
4565 | * linux-low.c (can_hardware_single_step): New. | |
4566 | (supports_breakpoints): New. | |
4567 | (handle_extended_wait): If stopping threads, read the stop pc of | |
4568 | the new cloned LWP. | |
4569 | (get_pc): New. | |
4570 | (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the | |
4571 | low target doesn't support retrieving the PC. | |
4572 | (add_lwp): Set last_resume_kind to resume_continue. | |
4573 | (linux_attach_lwp_1): Adjust comments. Always set stop_expected. | |
4574 | (linux_attach): Don't clear stop_expected. Set the lwp's | |
4575 | last_resume_kind to resume_stop. | |
4576 | (linux_detach_one_lwp): Don't check for removed breakpoints. | |
4577 | (check_removed_breakpoint): Delete. | |
4578 | (status_pending_p): Rename to ... | |
4579 | (status_pending_p_callback): ... this. Don't check for removed | |
4580 | breakpoints. Don't consider threads that are stopped from GDB's | |
4581 | perspective. | |
4582 | (linux_wait_for_lwp): Always read the stop_pc here. | |
4583 | (cancel_breakpoint): New. | |
4584 | (step_over_bkpt): New global. | |
4585 | (linux_wait_for_event_1): Implement stepping over breakpoints. | |
4586 | (gdb_wants_lwp_stopped): New. | |
4587 | (gdb_wants_all_stopped): New. | |
4588 | (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished | |
4589 | single-step traps here. Store the thread's last reported target | |
4590 | wait status. | |
4591 | (send_sigstop): Don't clear stop_expected. Always set it, | |
4592 | instead. | |
4593 | (mark_lwp_dead): Remove reference to pending_is_breakpoint. | |
4594 | (cancel_finished_single_step): New. | |
4595 | (cancel_finished_single_steps): New. | |
4596 | (wait_for_sigstop): Don't cancel finished single-step traps here. | |
4597 | (linux_resume_one_lwp): Don't check for removed breakpoints. | |
4598 | Don't set `step' on non-hardware step archs. | |
4599 | (linux_set_resume_request): Ignore resume_stop requests if already | |
4600 | stopping or stopped. Set the lwp's last_resume_kind. | |
4601 | (resume_status_pending_p): Don't check for removed breakpoints. | |
4602 | (need_step_over_p): New. | |
4603 | (start_step_over): New. | |
4604 | (finish_step_over): New. | |
4605 | (linux_resume_one_thread): Always queue a sigstop for resume_stop | |
4606 | requests. Clear the thread's last reported target waitstatus. | |
4607 | Don't use the `suspended' flag. Don't consider pending breakpoints. | |
4608 | (linux_resume): Start a step-over if necessary. | |
4609 | (proceed_one_lwp): New. | |
4610 | (proceed_all_lwps): New. | |
4611 | (unstop_all_lwps): New. | |
4612 | * linux-low.h (struct lwp_info): Rewrite comment for the | |
4613 | `suspended' flag. Add the `stop_pc' field. Delete the | |
4614 | `pending_stop_pc' field. Tweak the `stepping' flag's comment. | |
4615 | Add `'last_resume_kind' and `need_step_over' fields. | |
4616 | * inferiors.c (struct thread_info): Delete, moved elsewhere. | |
4617 | * mem-break.c (struct breakpoint): Delete `reinserting' flag. | |
4618 | Delete `breakpoint_to_reinsert' field. New flag `inserted'. | |
4619 | (set_raw_breakpoint_at): New. | |
4620 | (set_breakpoint_at): Rewrite to use it. | |
4621 | (reinsert_breakpoint_handler): Delete. | |
4622 | (set_reinsert_breakpoint): New. | |
4623 | (reinsert_breakpoint_by_bp): Delete. | |
4624 | (delete_reinsert_breakpoints): New. | |
4625 | (uninsert_breakpoint): Rewrite. | |
4626 | (uninsert_breakpoints_at): New. | |
4627 | (reinsert_breakpoint): Rewrite. | |
4628 | (reinsert_breakpoints_at): New. | |
4629 | (check_breakpoints): Rewrite. | |
4630 | (breakpoint_here): New. | |
4631 | (breakpoint_inserted_here): New. | |
4632 | (check_mem_read): Adjust. | |
4633 | * mem-break.h (breakpoints_supported, breakpoint_here) | |
4634 | (breakpoint_inserted_here, set_reinsert_breakpoint): Declare. | |
4635 | (reinsert_breakpoint_by_bp): Delete declaration. | |
4636 | (delete_reinsert_breakpoints): Declare. | |
4637 | (reinsert_breakpoint): Delete declaration. | |
4638 | (reinsert_breakpoints_at): Declare. | |
4639 | (uninsert_breakpoint): Delete declaration. | |
4640 | (uninsert_breakpoints_at): Declare. | |
4641 | (check_breakpoints): Adjust prototype. | |
4642 | * server.h: Adjust include order. | |
4643 | (struct thread_info): Declare here. Add a `last_status' field. | |
4644 | ||
30ba68cb MS |
4645 | 2010-03-23 Michael Snyder <msnyder@vmware.com> |
4646 | ||
4647 | * server.c (crc32): New function. | |
4648 | (handle_query): Add handling for 'qCRC:' request. | |
4649 | ||
b9a881c2 PA |
4650 | 2010-03-23 Pedro Alves <pedro@codesourcery.com> |
4651 | ||
4652 | * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the | |
4653 | lwp had been stopped by a watchpoint. | |
4654 | ||
e92d13d5 PA |
4655 | 2010-03-16 Pedro Alves <pedro@codesourcery.com> |
4656 | ||
4657 | * server.h (internal_error): Declare. | |
4658 | (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define. | |
4659 | * utils.c (internal_error): New function. | |
4660 | ||
64daa791 AS |
4661 | 2010-03-15 Andreas Schwab <schwab@redhat.com> |
4662 | ||
4663 | * configure.srv: Fix typo setting srv_regobj. | |
4664 | ||
f52cd8cd PA |
4665 | 2010-03-15 Pedro Alves <pedro@codesourcery.com> |
4666 | ||
4667 | * linux-low.c (fetch_register): Avoid passing a non string literal | |
4668 | format to `error'. | |
4669 | (usr_store_inferior_registers): Ditto. | |
4670 | ||
93ae6fdc PA |
4671 | 2010-03-14 Pedro Alves <pedro@codesourcery.com> |
4672 | ||
4673 | * linux-low.c (linux_write_memory): Bail out early if peeking | |
4674 | memory failed. | |
4675 | ||
c3adc08c PA |
4676 | 2010-03-14 Pedro Alves <pedro@codesourcery.com> |
4677 | ||
4678 | * linux-low.h (struct lwp_info): New fields | |
4679 | `stopped_by_watchpoint' and `stopped_data_address'. | |
4680 | * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers | |
4681 | here, and cache them in the lwp object. | |
4682 | (wait_for_sigstop): Check stopped_by_watchpoint lwp field | |
4683 | directly. | |
4684 | (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint | |
4685 | field. | |
4686 | (linux_stopped_by_watchpoint): Rewrite. | |
4687 | (linux_stopped_data_address): Rewrite. | |
4688 | ||
bce522a2 PA |
4689 | 2010-03-06 Simo Melenius <simo.melenius@iki.fi> |
4690 | ||
4691 | * linux-low.c (linux_wait_for_lwp): Fetch the regcache after | |
4692 | switching the current inferior, not before. | |
4693 | ||
90884b2b L |
4694 | 2010-03-01 H.J. Lu <hongjiu.lu@intel.com> |
4695 | ||
4696 | * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c, | |
4697 | reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c, | |
4698 | i386-linux.c and amd64-linux.c. | |
4699 | (reg-i386.o): Removed. | |
4700 | (reg-i386.c): Likewise. | |
4701 | (reg-i386-linux.o): Likewise. | |
4702 | (reg-i386-linux.c): Likewise. | |
4703 | (reg-x86-64.o): Likewise. | |
4704 | (reg-x86-64.c): Likewise. | |
4705 | (reg-x86-64-linux.o): Likewise. | |
4706 | (reg-x86-64-linux.c): Likewise. | |
4707 | (i386.o): New. | |
4708 | (i386.c): Likewise. | |
4709 | (i386-linux.o): Likewise. | |
4710 | (i386-linux.c): Likewise. | |
4711 | (amd64.o): Likewise. | |
4712 | (amd64.c): Likewise. | |
4713 | (amd64-linux.o): Likewise. | |
4714 | (amd64-linux.c): Likewise. | |
4715 | ||
4716 | * configure.srv (srv_i386_regobj): New. | |
4717 | (srv_i386_linux_regobj): Likewise. | |
4718 | (srv_amd64_regobj): Likewise. | |
4719 | (srv_amd64_linux_regobj): Likewise. | |
4720 | (srv_i386_32bit_xmlfiles): Likewise. | |
4721 | (srv_i386_64bit_xmlfiles): Likewise. | |
4722 | (srv_i386_xmlfiles): Likewise. | |
4723 | (srv_amd64_xmlfiles): Likewise. | |
4724 | (srv_i386_linux_xmlfiles): Likewise. | |
4725 | (srv_amd64_linux_xmlfiles): Likewise. | |
4726 | (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set | |
4727 | srv_xmlfiles to $srv_i386_xmlfiles. | |
4728 | (i[34567]86-*-mingw32ce*): Likewise. | |
4729 | (i[34567]86-*-mingw*): Likewise. | |
4730 | (i[34567]86-*-nto*): Likewise. | |
4731 | (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj | |
4732 | and $srv_amd64_linux_regobj. Set srv_xmlfiles to | |
4733 | $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles. | |
4734 | (x86_64-*-linux*): Likewise. | |
4735 | ||
4736 | * linux-x86-low.c (init_registers_x86_64_linux): Removed. | |
4737 | (init_registers_amd64_linux): New. | |
4738 | (x86_arch_setup): Replace init_registers_x86_64_linux with | |
4739 | init_registers_amd64_linux. | |
4740 | ||
193f13e6 MK |
4741 | 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com> |
4742 | ||
4743 | * configure.ac: Check for libdl. If it is not available link against | |
4744 | static libthread_db. | |
4745 | * configure: Regenerate. | |
4746 | ||
85d721b8 PA |
4747 | 2010-02-22 Pedro Alves <pedro@codesourcery.com> |
4748 | ||
4749 | PR9605 | |
4750 | ||
4751 | * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if | |
4752 | handing a read watchpoint. | |
4753 | (i386_low_insert_watchpoint): Read watchpoints aren't supported. | |
4754 | ||
6076632b DE |
4755 | 2010-02-12 Doug Evans <dje@google.com> |
4756 | ||
4757 | * linux-low.c (linux_supports_tracefork_flag): Document. | |
4758 | (linux_look_up_symbols): Add comment. | |
4759 | ||
3327ccf7 L |
4760 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
4761 | ||
4762 | * regcache.c (supply_register): Clear regcache if buf is NULL. | |
4763 | ||
0718675c | 4764 | 2010-02-02 Nicolas Roche <roche@sourceware.org> |
3327ccf7 | 4765 | Joel Brobecker <brobecker@adacore.com> |
0718675c JB |
4766 | |
4767 | * inferiors.c (find_inferior): Add function documentation. | |
4768 | (unloaded_dll): Handle the case where the unloaded dll has not | |
4769 | been previously registered in the dll list. | |
4770 | ||
177321bd DJ |
4771 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
4772 | ||
4773 | * linux-arm-low.c (thumb_breakpoint_len): Delete. | |
4774 | (thumb2_breakpoint): New. | |
4775 | (arm_breakpoint_at): Check for Thumb-2 breakpoints. | |
4776 | ||
2b009048 DJ |
4777 | 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
4778 | ||
4779 | * linux-low.c (get_stop_pc): Check for SIGTRAP. | |
4780 | (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible | |
4781 | breakpoints. | |
4782 | ||
3be029c7 PA |
4783 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
4784 | ||
4785 | * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes. | |
4786 | ||
18f5de3b JK |
4787 | 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
4788 | ||
4789 | * linux-s390-low.c (s390_collect_ptrace_register) | |
4790 | (s390_supply_ptrace_register): Adjust it for the new regcache parameter. | |
4791 | ||
3743bb4f DE |
4792 | 2010-01-21 Doug Evans <dje@google.com> |
4793 | ||
14ce3065 DE |
4794 | * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*. |
4795 | (PTRACE_ARG4_TYPE): New macro. | |
4796 | (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE. | |
4797 | (linux_wait_for_event_1, linux_resume_one_lwp): Ditto. | |
4798 | (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE. | |
4799 | (usr_store_inferior_registers): Ditto. | |
4800 | (linux_read_memory, linux_write_memory): Ditto. | |
4801 | (linux_test_for_tracefork): Ditto. | |
4802 | ||
3743bb4f DE |
4803 | * linux-arm-low.c: Remove redundant include of gdb_proc_service.h. |
4804 | Only include elf.h if gdb_proc_service.h didn't include linux/elf.h. | |
4805 | ||
8b315be5 PA |
4806 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
4807 | ||
4808 | * proc-service.c (ps_lgetregs): Don't refetch registers from the | |
4809 | target. | |
4810 | ||
85492558 PA |
4811 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
4812 | ||
4813 | * spu-low.c (spu_fetch_registers, spu_store_registers): Change | |
4814 | prototype to take a regcache. Adjust. | |
4815 | ||
442ea881 PA |
4816 | 2010-01-20 Pedro Alves <pedro@codesourcery.com> |
4817 | ||
4818 | * regcache.h (struct thread_info): Forward declare. | |
4819 | (struct regcache): New. | |
4820 | (new_register_cache): Adjust prototype. | |
4821 | (get_thread_regcache): Declare. | |
4822 | (free_register_cache): Adjust prototype. | |
4823 | (registers_to_string, registers_from_string): Ditto. | |
4824 | (supply_register, supply_register_by_name, collect_register) | |
4825 | (collect_register_as_string, collect_register_by_name): Ditto. | |
4826 | * regcache.c (struct inferior_regcache_data): Delete. | |
4827 | (get_regcache): Rename to ... | |
4828 | (get_thread_regcache): ... this. Adjust. Switch inferior before | |
4829 | fetching registers. | |
4830 | (regcache_invalidate_one): Adjust. | |
4831 | (regcache_invalidate): Fix prototype. | |
4832 | (new_register_cache): Return the new register cache. | |
4833 | (free_register_cache): Change prototype. | |
4834 | (realloc_register_cache): Adjust. | |
4835 | (registers_to_string): Change prototype to take a regcache. Adjust. | |
4836 | (registers_from_string): Ditto. | |
4837 | (register_data): Ditto. | |
4838 | (supply_register): Ditto. | |
4839 | (supply_register_by_name): Ditto. | |
4840 | (collect_register): Ditto. | |
4841 | (collect_register_as_string): Ditto. | |
4842 | (collect_register_by_name): Ditto. | |
4843 | * server.c (process_serial_event): Adjust. | |
4844 | * linux-low.h (regset_fill_func, regset_store_func): Change | |
4845 | prototype. | |
4846 | (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register): | |
4847 | Change prototype. | |
4848 | * linux-low.c (get_stop_pc): Adjust. | |
4849 | (check_removed_breakpoint): Adjust. | |
4850 | (linux_wait_for_event): Adjust. | |
4851 | (linux_resume_one_lwp): Adjust. | |
4852 | (fetch_register): Add regcache parameter. Adjust. | |
4853 | (usr_store_inferior_registers): Ditto. | |
4854 | (regsets_fetch_inferior_registers): Ditto. | |
4855 | (regsets_store_inferior_registers): Ditto. | |
4856 | (linux_fetch_registers, linux_store_registers): Ditto. | |
4857 | * i387-fp.c (i387_cache_to_fsave): Change prototype to take a | |
4858 | regcache. Adjust. | |
43aaf8b6 PA |
4859 | (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache): |
4860 | Ditto. | |
442ea881 PA |
4861 | * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change |
4862 | prototype to take a regcache. | |
4863 | (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto. | |
4864 | * remote-utils.c (convert_ascii_to_int, outreg) | |
4865 | (prepare_resume_reply): Change prototype to take a regcache. | |
4866 | Adjust. | |
4867 | * target.h (struct target_ops) <fetch_registers, store_registers>: | |
4868 | Change prototype to take a regcache. | |
4869 | (fetch_inferior_registers, store_inferior_registers): Change | |
4870 | prototype to take a regcache. Adjust. | |
4871 | * proc-service.c (ps_lgetregs): Adjust. | |
4872 | * linux-x86-low.c (x86_fill_gregset, x86_store_gregset) | |
4873 | (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset) | |
4874 | (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to | |
4875 | take a regcache. Adjust. | |
4876 | * linux-arm-low.c (arm_fill_gregset, arm_store_gregset) | |
4877 | (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset) | |
4878 | (arm_store_vfpregset, arm_get_pc, arm_set_pc): | |
4879 | (arm_breakpoint_at): Change prototype to take a regcache. Adjust. | |
4880 | * linux-cris-low.c (cris_get_pc, cris_set_pc) | |
4881 | (cris_cannot_fetch_register): | |
4882 | (cris_breakpoint_at): Change prototype to take a regcache. | |
4883 | Adjust. | |
4884 | * linux-crisv32-low.c (cris_get_pc, cris_set_pc, | |
4885 | cris_reinsert_addr, cris_write_data_breakpoint): Change prototype | |
4886 | to take a regcache. Adjust. | |
4887 | (cris_breakpoint_at, cris_insert_point, cris_remove_point): | |
4888 | Adjust. | |
4889 | * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to | |
4890 | take a regcache. Adjust. | |
4891 | * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset) | |
4892 | (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc, | |
4893 | (m68k_set_pc): Change prototype to take a regcache. Adjust. | |
4894 | * linux-mips-low.c (mips_get_pc): | |
4895 | (mips_set_pc): Change prototype to take a regcache. Adjust. | |
4896 | (mips_reinsert_addr): Adjust. | |
4897 | (mips_collect_register): Change prototype to take a regcache. | |
4898 | Adjust. | |
4899 | (mips_supply_register): | |
4900 | (mips_collect_register_32bit, mips_supply_register_32bit) | |
4901 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) | |
4902 | (mips_store_fpregset): Ditto. | |
43aaf8b6 PA |
4903 | * linux-ppc-low.c (ppc_supply_ptrace_register) |
4904 | (ppc_supply_ptrace_register): Ditto. | |
442ea881 PA |
4905 | (parse_spufs_run): Adjust. |
4906 | (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset) | |
4907 | (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset) | |
4908 | (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to | |
4909 | take a regcache. Adjust. | |
4910 | * linux-s390-low.c (s390_collect_ptrace_register) | |
4911 | (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc) | |
4912 | (s390_set_pc): Change prototype to take a regcache. Adjust. | |
4913 | (s390_arch_setup): Adjust. | |
4914 | * linux-sh-low.c (sh_get_pc, sh_breakpoint_at) | |
4915 | (sh_fill_gregset): Change prototype to take a regcache. Adjust. | |
4916 | * linux-sparc-low.c (sparc_fill_gregset_to_stack) | |
4917 | (sparc_fill_gregset, sparc_store_gregset_from_stack) | |
4918 | (sparc_store_gregset, sparc_get_pc): Change prototype to take a | |
4919 | regcache. Adjust. | |
4920 | (sparc_breakpoint_at): Adjust. | |
4921 | * linux-xtensa-low.c (xtensa_fill_gregset): | |
4922 | (xtensa_store_gregset): | |
4923 | (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc) | |
4924 | (xtensa_set_pc): Change prototype to take a regcache. Adjust. | |
4925 | * nto-low.c (nto_fetch_registers, nto_store_registers): Change | |
4926 | prototype to take a regcache. Adjust. | |
4927 | * win32-arm-low.c (arm_fetch_inferior_register) | |
4928 | (arm_store_inferior_register): Change prototype to take a | |
4929 | regcache. Adjust. | |
4930 | * win32-i386-low.c (i386_fetch_inferior_register) | |
4931 | (i386_store_inferior_register): Change prototype to take a | |
4932 | regcache. Adjust. | |
4933 | * win32-low.c (child_fetch_inferior_registers) | |
4934 | (child_store_inferior_registers): Change prototype to take a | |
4935 | regcache. Adjust. | |
4936 | (win32_wait): Adjust. | |
4937 | (win32_fetch_inferior_registers): Change prototype to take a | |
4938 | regcache. Adjust. | |
4939 | (win32_store_inferior_registers): Adjust. | |
4940 | * win32-low.h (struct win32_target_ops) <fetch_inferior_register, | |
4941 | store_inferior_register>: Change prototype to take a regcache. | |
4942 | ||
60c3d7b0 DE |
4943 | 2010-01-20 Doug Evans <dje@google.com> |
4944 | ||
4945 | * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in | |
4946 | #ifdef. | |
4947 | (linux_wait_for_event1, linux_init_signals): Ditto. | |
ec8ebe72 | 4948 | (W_STOPCODE): Provide definition if missing. |
60c3d7b0 | 4949 | |
dc146f7c VP |
4950 | 2010-01-13 Vladimir Prus <vladimir@codesourcery.com> |
4951 | ||
4952 | * linux-low.c (linux_core_of_thread): New. | |
4953 | (compare_ints, show_process, list_threads): New. | |
4954 | (linux_qxfer_osdata): Report threads and cores. | |
4955 | (linux_target_op): Register linux_core_of_thread. | |
4956 | * remote-utils.c (prepare_resume_reply): Report the core. | |
4957 | (buffer_xml_printf): Support %d specifier. | |
4958 | * server.c (handle_threads_qxfer_proper, handle_threads_qxfer): | |
4959 | New. | |
4960 | (handle_query): Handle qXfer:threads. Announce availability | |
4961 | thereof. | |
4962 | * target.h (struct target_ops): New field core_of_thread. | |
4963 | ||
7803799a UW |
4964 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
4965 | ||
4966 | * Makefile.in (clean): Remove new generated files. | |
4967 | (reg-s390.o, reg-s390.c): Remove rules. | |
4968 | (reg-s390x.o, reg-s390x.c): Likewise. | |
4969 | (s390-linux32.o, s390-linux32.c): Add rules. | |
4970 | (s390-linux64.o, s390-linux64.c): Likewise. | |
4971 | (s390x-linux64.o, s390x-linux64.c): Likewise. | |
4972 | * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles. | |
4973 | * linux-s390-low.c: Include <elf.h>. | |
4974 | (HWCAP_S390_HIGH_GPRS): Define if undefined. | |
4975 | (init_registers_s390): Remove prototype. | |
4976 | (init_registers_s390x): Likewise. | |
4977 | (init_registers_s390_linux32): Add prototype. | |
4978 | (init_registers_s390_linux64): Likewise. | |
4979 | (init_registers_s390x_linux64): Likewise. | |
4980 | (s390_num_regs_3264): New define. | |
4981 | (s390_regmap_3264): New global variable. | |
4982 | (s390_cannot_fetch_register): Remove obsolete check. | |
4983 | (s390_cannot_store_register): Likewise. | |
4984 | (s390_collect_ptrace_register): Handle upper/lower register halves. | |
4985 | (s390_supply_ptrace_register): Likewise. | |
4986 | (s390_fill_gregset): Update to register number changes. | |
4987 | (s390_get_hwcap): New routine. | |
4988 | (s390_arch_setup): Detect 32-bit process running on 64-bit system. | |
4989 | Install appropriate regmap and register set. | |
4990 | ||
6e7ffa39 JB |
4991 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
4992 | ||
4993 | * server.c (gdbserver_version): Update copyright year to 2010. | |
4994 | * gdbreplay.c (gdbreplay_version): Likewise. | |
4995 | ||
957f3f49 DE |
4996 | 2009-12-28 Doug Evans <dje@google.com> |
4997 | ||
4998 | * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h, | |
4999 | elf/external.h. Include <elf.h> instead but only if necessary. | |
5000 | ||
ca5c370d PA |
5001 | 2009-12-28 Pedro Alves <pedro@codesourcery.com> |
5002 | ||
5003 | * linux-low.c (linux_remove_process): Remove `detaching' | |
5004 | parameter. Don't release/detach from thread_db here. | |
5005 | (linux_kill): Release/detach from thread_db here, ... | |
5006 | (linux_detach): ... and here, before actually detaching. | |
5007 | (linux_wait_1): ... and here, when a process exits. | |
5008 | * thread-db.c (any_thread_of): New. | |
5009 | (thread_db_free): Switch the current inferior to a thread of the | |
5010 | passed in process. | |
5011 | ||
4ee62156 DE |
5012 | 2009-12-21 Doug Evans <dje@google.com> |
5013 | ||
d90e6a88 DE |
5014 | * linux-x86-low.c: Delete outdated comment about Elf32_Phdr. |
5015 | ||
c5f62d5f DE |
5016 | * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill. |
5017 | Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc | |
5018 | warning ifndef __NR_tkill. Move setting of errno there too. | |
5019 | Delete unnecessary resetting of errno after syscall. | |
5020 | Minor comment changes to match gdb/linux-nat.c:kill_lwp. | |
5021 | ||
10e86dd7 DE |
5022 | * configure.ac: Check for dladdr. |
5023 | * config.in: Regenerate. | |
5024 | * configure: Regenerate. | |
5025 | * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR. | |
5026 | (try_thread_db_load): Update. | |
5027 | ||
4ee62156 DE |
5028 | * linux-low.c (my_waitpid): Delete unnecessary prototype. |
5029 | ||
00f515da DE |
5030 | 2009-12-18 Doug Evans <dje@google.com> |
5031 | ||
e9464885 DE |
5032 | * event-loop.c: Include unistd.h if it exists. |
5033 | ||
07d4f67e DE |
5034 | * linux-low.c (my_waitpid): Move definition away from being in |
5035 | between linux_tracefork_child/linux_test_for_tracefork. | |
5036 | ||
00f515da DE |
5037 | * gdb_proc_service.h (psaddr_t): Fix type. |
5038 | * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix | |
5039 | signature to match glibc. | |
5040 | ||
1de1badb DE |
5041 | 2009-12-16 Doug Evans <dje@google.com> |
5042 | ||
5043 | * linux-low.c (linux_read_memory): Fix argument to read. | |
5044 | ||
aeeb81d1 PA |
5045 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
5046 | ||
5047 | * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT | |
5048 | events, don't leave current_inferior pointing at null. | |
5049 | ||
10357975 PA |
5050 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
5051 | ||
5052 | * win32-low.c (LOG): Delete. | |
5053 | (OUTMSG): Output to stderr. | |
5054 | (OUTMSG2): Conditionalize on `debug_threads' variable, instead of | |
5055 | on compile time LOG macro. | |
5056 | (win32_wait): Fix debug output. | |
5057 | ||
cf6e3471 PA |
5058 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
5059 | ||
5060 | * win32-low.c (win32_add_one_solib): If the dll name is | |
5061 | "ntdll.dll", prepend the system directory to the dll path. | |
5062 | ||
0c85e18e MK |
5063 | 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com> |
5064 | ||
5065 | * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization. | |
5066 | ||
9ac544ce | 5067 | 2009-11-17 Nathan Sidwell <nathan@codesourcery.com> |
889bf7c5 | 5068 | Vladimir Prus <vladimir@codesourcery.com> |
9ac544ce MK |
5069 | |
5070 | * Makefile.in (reg-cf.o, reg-cf.c): New targets. | |
5071 | * configure.ac: Check for __mcoldfire__ and set | |
5072 | gdb_cv_m68k_is_coldfire. | |
5073 | * configure.srv: Use gdb_cv_m68k_is_coldfire to select between | |
5074 | reg-cf.o and reg-m68k.o. | |
5075 | * configure: Regenerated. | |
5076 | ||
fd7dd3e6 PA |
5077 | 2009-11-16 Pedro Alves <pedro@codesourcery.com> |
5078 | ||
5079 | * linux-low.c (linux_remove_process): Add `detaching' parameter. | |
5080 | Pass it to thread_db_free. | |
5081 | (linux_kill, linux_detach, linux_wait_1): Adjust to pass the | |
5082 | proper `detaching' argument to linux_remove_process. | |
5083 | * linux-low.h (thread_db_free): Add `detaching' parameter. | |
5084 | * thread-db.c (thread_db_init): Pass false as `detaching' argument | |
5085 | to thread_db_free. | |
5086 | (thread_db_free): Add `detaching' parameter. Only | |
5087 | call td_ta_clear_event if detaching from process. | |
5088 | ||
75aa492e MK |
5089 | 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com> |
5090 | ||
5091 | * thread-db.c (thread_db_free): Fix typo. | |
5092 | ||
21e1bee4 PP |
5093 | 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com> |
5094 | ||
5095 | PR gdb/10838 | |
5096 | * thread-db.c (thread_db_free): Call td_ta_clear_event. | |
5097 | ||
8838b45e NS |
5098 | 2009-11-03 Nathan Sidwell <nathan@codesourcery.com> |
5099 | ||
5100 | * configure.ac (i[34567]86-*): Check if we're targetting x86-64 | |
5101 | with an i686 compiler. | |
5102 | * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if | |
5103 | needed. | |
5104 | * configure: Rebuilt. | |
5105 | ||
8a35fb51 SL |
5106 | 2009-10-29 Sandra Loosemore <sandra@codesourcery.com> |
5107 | ||
5108 | PR gdb/10783 | |
5109 | ||
5110 | * server.c (handle_search_memory_1): Correct read_addr initialization | |
5111 | in loop for searching subsequent chunks. | |
5112 | ||
96f15937 PP |
5113 | 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com> |
5114 | ||
5115 | * configure.ac: New --with-libthread-db option. | |
5116 | * thread-db.c: Allow direct dependence on libthread_db. | |
5117 | (thread_db_free): Adjust. | |
5118 | * config.in: Regenerate. | |
5119 | * configure: Likewise. | |
889bf7c5 | 5120 | |
5f7d1694 PP |
5121 | 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com> |
5122 | ||
5123 | PR gdb/10757 | |
5124 | * thread-db.c (attach_thread): New function. | |
5125 | (maybe_attach_thread): Return success/failure. | |
5126 | (find_new_threads_callback): Adjust. | |
889bf7c5 PA |
5127 | (thread_db_find_new_threads): Loop until no new threads. |
5128 | ||
88e3b899 PA |
5129 | 2009-10-13 Pedro Alves <pedro@codesourcery.com> |
5130 | ||
5131 | * proc-service.c (ps_lgetregs): Formatting. | |
5132 | ||
cdbfd419 PP |
5133 | 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com> |
5134 | ||
5135 | * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove. | |
5136 | * configure.ac: Adjust. | |
5137 | * linux-low.h (struct process_info_private): Move members to struct | |
5138 | thread_db. | |
5139 | (thread_db_free, thread_db_handle_monitor_command): New prototype. | |
5140 | * linux-low.c (linux_remove_process): Adjust. | |
5141 | (linux_wait_for_event_1, linux_look_up_symbols): Likewise. | |
5142 | * server.c (handle_query): Move code ... | |
5143 | (handle_monitor_command): ... here. New function. | |
5144 | * target.h (struct target_ops): New member. | |
5145 | * thread-db.c (struct thread_db): New. | |
5146 | (libthread_db_search_path): New variable. | |
5147 | (thread_db_create_event, thread_db_enable_reporting) | |
5148 | (find_one_thread, maybe_attach_thread, find_new_threads_callback) | |
5149 | (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust. | |
5150 | (try_thread_db_load_1, dladdr_to_soname): New functions. | |
5151 | (try_thread_db_load, thread_db_load_search): New functions. | |
5152 | (thread_db_init): Search for libthread_db. | |
5153 | (thread_db_free): New function. | |
5154 | (thread_db_handle_monitor_command): Likewise. | |
5155 | * config.in: Regenerate. | |
5156 | * configure: Regenerate. | |
889bf7c5 | 5157 | |
4168d2d6 UW |
5158 | 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
5159 | ||
5160 | * spu-low.c (spu_kill): Wait for inferior to terminate. | |
5161 | Call clear_inferiors. | |
5162 | (spu_detach): Call clear_inferiors. | |
5163 | ||
81ecdfbb RW |
5164 | 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
5165 | ||
5166 | * aclocal.m4: Regenerate. | |
5167 | * config.in: Likewise. | |
5168 | * configure: Likewise. | |
5169 | ||
0b9ff2c0 UW |
5170 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
5171 | ||
5172 | * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define. | |
5173 | (parse_spufs_run): New function. | |
5174 | (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC. | |
5175 | (ppc_breakpoint_at): Handle SPU breakpoints. | |
5176 | ||
efcbbd14 UW |
5177 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
5178 | ||
5179 | * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>. | |
5180 | (SPUFS_MAGIC): Define. | |
5181 | (spu_enumerate_spu_ids): New function. | |
5182 | (linux_qxfer_spu): New function. | |
5183 | (linux_target_ops): Install linux_qxfer_spu. | |
5184 | ||
f4d9bade UW |
5185 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
5186 | ||
5187 | * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o | |
5188 | and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml | |
5189 | and rs6000/powerpc-cell64l.xml to srv_xmlfiles. | |
5190 | * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules. | |
5191 | (powerpc-cell64l.o, powerpc-cell64l.c): Likewise. | |
5192 | (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c. | |
5193 | * linux-ppc-low.c (PPC_FEATURE_CELL): Define. | |
5194 | (init_registers_powerpc_cell32l): Add prototype. | |
5195 | (init_registers_powerpc_cell64l): Likewise. | |
5196 | (ppc_arch_setup): Detect Cell/B.E. architecture. | |
5197 | ||
96e946ca RW |
5198 | 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
5199 | ||
5200 | * Makefile.in (datarootdir): New variable. | |
5201 | ||
58d6951d DJ |
5202 | 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
5203 | ||
5204 | * linux-low.c (linux_write_memory): Update debugging output. | |
5205 | * Makefile.in (clean): Add new descriptions. | |
5206 | (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o) | |
5207 | (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules. | |
5208 | * configure.srv: Add new files for arm*-*-linux*. | |
5209 | * linux-arm-low.c: Add new declarations. | |
5210 | (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined. | |
5211 | (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3) | |
5212 | (HWCAP_VFPv3D16): New. | |
5213 | (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT | |
5214 | instead of __IWMMXT__. | |
5215 | (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap) | |
5216 | (arm_arch_setup): New. | |
5217 | (target_regsets): Remove #ifdef. Add VFP regset. | |
5218 | (the_low_target): Use arm_arch_setup. | |
5219 | ||
12b42a12 DJ |
5220 | 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
5221 | ||
5222 | * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip | |
5223 | the main thread again. | |
5224 | ||
ac8c974e AR |
5225 | 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com> |
5226 | ||
5227 | Adding Neutrino gdbserver. | |
5228 | * configure: Regenerated. | |
5229 | * configure.ac: Add case for srv_qnx and set LIBS accordingly. | |
5230 | * configure.srv (i[34567]86-*-nto*): New target. | |
5231 | * nto-low.c, nto-low.h, nto-x86-low.c: New files. | |
5232 | * remote-utils.c [__QNX__]: Include sys/iomgr.h | |
5233 | (nto_comctrl) [__QNX__]: New function. | |
5234 | (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl. | |
5235 | ||
4424e0c3 | 5236 | 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net> |
7437790a PA |
5237 | |
5238 | * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to | |
5239 | srv_tgtobj. | |
5240 | ||
912cf4ba PA |
5241 | 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net> |
5242 | Pedro Alves <pedro@codesourcery.com> | |
5243 | ||
5244 | * win32-i386-low.c (i386_get_thread_context): Handle systems that | |
5245 | don't support CONTEXT_EXTENDED_REGISTERS. | |
5246 | (i386_win32_breakpoint, i386_win32_breakpoint_len): New. | |
5247 | (the_low_target): Install them. | |
5248 | * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent | |
5249 | failing with ERROR_PIPE_NOT_CONNECTED. | |
5250 | ||
aa5ca48f DE |
5251 | 2009-06-30 Doug Evans <dje@google.com> |
5252 | Pierre Muller <muller@ics.u-strasbg.fr> | |
5253 | ||
5254 | Add h/w watchpoint support to x86-linux, win32-i386. | |
5255 | * Makefile.in (SFILES): Add i386-low.c | |
5256 | (i386_low_h): Define. | |
5257 | (i386-low.o): Add dependencies. | |
5258 | (linux-x86-low.o): Add i386-low.h dependency. | |
5259 | (win32-i386-low.o): Ditto. | |
5260 | * i386-low.c: New file. | |
5261 | * i386-low.h: New file. | |
5262 | * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj. | |
5263 | (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto. | |
5264 | * linux-low.c (linux_add_process): Initialize arch_private. | |
5265 | (linux_remove_process): Free arch_private. | |
5266 | (add_lwp): Initialize arch_private. | |
5267 | (delete_lwp): Free arch_private. | |
5268 | (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if | |
5269 | provided. | |
5270 | * linux-low.h (process_info_private): New member arch_private. | |
5271 | (lwp_info): New member arch_private. | |
5272 | (linux_target_ops): New members new_process, new_thread, | |
5273 | prepare_to_resume. | |
5274 | (ptid_of): New macro. | |
5275 | * linux-x86-low.c: Include stddef.h, i386-low.h. | |
5276 | (arch_process_info): New struct. | |
5277 | (arch_lwp_info): New struct. | |
5278 | (x86_linux_dr_get, x86_linux_dr_set): New functions. | |
5279 | (i386_dr_low_set_addr, i386_dr_low_set_control): New functions. | |
5280 | (i386_dr_low_get_status): New function. | |
5281 | (x86_insert_point, x86_remove_point): New functions. | |
5282 | (x86_stopped_by_watchpoint): New function. | |
5283 | (x86_stopped_data_address): New function. | |
5284 | (x86_linux_new_process, x86_linux_new_thread): New functions. | |
5285 | (x86_linux_prepare_to_resume): New function. | |
5286 | (the_low_target): Add entries for insert_point, remove_point, | |
5287 | stopped_by_watchpoint, stopped_data_address, new_process, new_thread, | |
5288 | prepare_to_resume. | |
5289 | * server.c (debug_hw_points): New global. | |
5290 | (monitor_show_help): Document set debug-hw-points. | |
5291 | (handle_query): Process "set debug-hw-points". | |
5292 | * server.h (debug_hw_points): Declare. | |
5293 | (paddress): Declare. | |
5294 | * utils.c (NUMCELLS, CELLSIZE): New macros. | |
5295 | (get_sell, xsnprintf, paddress): New functions. | |
5296 | * win32-arm-low.c (the_low_target): Add entries for insert_point, | |
5297 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
5298 | * win32-i386-low.c: Include i386-low.h. | |
5299 | (debug_reg_state): Replaces dr. | |
5300 | (i386_dr_low_set_addr, i386_dr_low_set_control): New functions. | |
5301 | (i386_dr_low_get_status): New function. | |
5302 | (i386_insert_point, i386_remove_point): New functions. | |
5303 | (i386_stopped_by_watchpoint): New function. | |
5304 | (i386_stopped_data_address): New function. | |
5305 | (i386_initial_stuff): Update. | |
5306 | (get_thread_context,set_thread_context,i386_thread_added): Update. | |
5307 | (the_low_target): Add entries for insert_point, | |
5308 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
5309 | * win32-low.c (win32_insert_watchpoint): New function. | |
5310 | (win32_remove_watchpoint): New function. | |
5311 | (win32_stopped_by_watchpoint): New function. | |
5312 | (win32_stopped_data_address): New function. | |
5313 | (win32_target_ops): Add entries for insert_watchpoint, | |
5314 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address. | |
5315 | * win32-low.h (win32_target_ops): New members insert_point, | |
5316 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
5317 | ||
d993e290 PA |
5318 | 2009-06-25 Pedro Alves <pedro@codesourcery.com> |
5319 | ||
5320 | * server.c (process_serial_event): Re-return unsupported, not | |
5321 | error, if the type isn't recognized. Re-allow supporting only | |
5322 | insert or remove packets. Also call require_running for | |
5323 | breakpoints. Add missing break statement to default case. Tidy. | |
5324 | * target.h (struct target_ops): Rename insert_watchpoint to | |
5325 | insert_point, and remove_watchpoint to remove_point. | |
5326 | ||
5327 | * linux-low.h (struct linux_target_ops): Likewise. | |
5328 | * linux-low.c (linux_insert_watchpoint): Rename to ... | |
5329 | (linux_insert_point): ... this. Adjust. | |
5330 | (linux_remove_watchpoint): Rename to ... | |
5331 | (linux_remove_point): ... this. Adjust. | |
5332 | (linux_target_ops): Adjust. | |
5333 | * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ... | |
5334 | (cris_insert_point): ... this. | |
5335 | (cris_remove_watchpoint): Rename to ... | |
5336 | (cris_remove_point): ... this. | |
5337 | (the_low_target): Adjust. | |
5338 | ||
0f54c268 PM |
5339 | 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr> |
5340 | ||
5341 | * server.c (handle_v_kill): Pass signal_pid to | |
5342 | kill_inferior if multi_process is zero. | |
5343 | ||
c6314022 AR |
5344 | 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com> |
5345 | ||
5346 | * server.c (process_serial_event): Add support for Z0 and Z1 packet. | |
5347 | * target.h (target_ops): Comment for *_watchpoint to make it clear | |
5348 | the functions can get types '0' and '1'. | |
5349 | ||
4463ce24 AR |
5350 | 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com> |
5351 | ||
5352 | * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0. | |
5353 | * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers. | |
5354 | * regcache.c (get_regcache): Likewise. | |
5355 | * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion. | |
5356 | * win32-low.c (child_fetch_inferior_registers): Remove check for | |
5357 | regno 0. | |
5358 | ||
cf8fd78b PA |
5359 | 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com> |
5360 | Pedro Alves <pedro@codesourcery.com> | |
5361 | ||
5362 | * target.h (struct target_ops) <supports_multi_process>: New | |
5363 | callback. | |
5364 | (target_supports_multi_process): New. | |
5365 | * server.c (handle_query): Even if GDB reports support, only | |
5366 | enable multi-process if the target also supports it. Report | |
5367 | multi-process support only if the target backend supports it. | |
5368 | * linux-low.c (linux_supports_multi_process): New function. | |
5369 | (linux_target_ops): Install it as target_supports_multi_process | |
5370 | callback. | |
5371 | ||
47c0c975 DE |
5372 | 2009-05-24 Doug Evans <dje@google.com> |
5373 | ||
e09875d4 DE |
5374 | Global renaming of find_thread_pid to find_thread_ptid. |
5375 | * server.h (find_thread_ptid): Renamed from find_thread_pid. | |
5376 | * inferiors.c (find_thread_ptid): Renamed from find_thread_pid. | |
5377 | All callers updated. | |
5378 | ||
e27d73f6 DE |
5379 | * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp |
5380 | to resume the newly created thread, don't call ptrace (PTRACE_CONT) | |
5381 | directly. | |
5382 | ||
47c0c975 DE |
5383 | * linux-low.c (get_stop_pc): Print pc if debug_threads. |
5384 | (check_removed_breakpoint, linux_wait_for_lwp): Ditto. | |
5385 | (linux_resume_one_lwp): Ditto. | |
5386 | ||
2acc282a DE |
5387 | 2009-05-23 Doug Evans <dje@google.com> |
5388 | ||
5389 | * linux-low.c (linux_resume_one_lwp): Change type of first arg | |
5390 | from struct inferior_list_entry * to struct lwp_info *. | |
5391 | All callers updated. | |
5392 | ||
9f1036c1 DE |
5393 | 2009-05-13 Doug Evans <dje@google.com> |
5394 | ||
5395 | * linux-x86-low.c: Don't include assert.h. | |
5396 | (x86_siginfo_fixup): Use fatal, not assert. | |
5397 | (x86_arch_setup): Fix comment. | |
5398 | ||
d0722149 DE |
5399 | 2009-05-12 Doug Evans <dje@google.com> |
5400 | ||
5401 | Biarch support for i386/amd64 gdbserver. | |
5402 | * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c. | |
5403 | Add linux-x86-low.c. | |
5404 | (linux-i386-low.o, linux-x86-64-low.o): Delete. | |
5405 | (linux-x86-low.o): Add. | |
5406 | * linux-x86-64-low.c: Delete. | |
5407 | * linux-i386-low.c: Delete. | |
5408 | * linux-x86-low.c: New file. | |
5409 | * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with | |
5410 | linux-x86-low.o. | |
5411 | (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with | |
5412 | linux-x86-low.o. | |
5413 | (x86_64-linux srv_regobj): Add reg-i386-linux.o. | |
5414 | * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h. | |
5415 | (linux_child_pid_to_exec_file): New function. | |
5416 | (elf_64_header_p, elf_64_file_p): New functions. | |
5417 | (siginfo_fixup): New function. | |
5418 | (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to | |
5419 | give target a chance to convert layout. | |
5420 | * linux-low.h (linux_target_ops): New member siginfo_fixup. | |
5421 | (linux_child_pid_to_exec_file, elf_64_file_p): Declare. | |
5422 | ||
fdeb2a12 DE |
5423 | 2009-05-07 Doug Evans <dje@google.com> |
5424 | ||
5425 | * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak. | |
5426 | (regsets_store_inferior_registers): Ditto. | |
5427 | ||
a6dbe5df PA |
5428 | 2009-05-06 Pedro Alves <pedro@codesourcery.com> |
5429 | ||
5430 | PR server/10048 | |
5431 | ||
5432 | * linux-low.c (must_set_ptrace_flags): Delete. | |
5433 | (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead | |
5434 | of the global. | |
5435 | (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set | |
5436 | `lwp->must_set_ptrace_flags' instead. | |
ba42693b | 5437 | (linux_wait_for_event_1): Set ptrace options here. |
a6dbe5df PA |
5438 | (linux_wait_1): ... not here. |
5439 | ||
5091eb23 DE |
5440 | 2009-04-30 Doug Evans <dje@google.com> |
5441 | ||
9f767825 DE |
5442 | * inferiors.c (started_inferior_callback): New function. |
5443 | (attached_inferior_callback): New function. | |
5444 | (have_started_inferiors_p, have_attached_inferiors_p): New functions. | |
5445 | * server.c (print_started_pid, print_attached_pid): New functions. | |
5446 | (detach_or_kill_for_exit): New function. | |
5447 | (main): Call it instead of for_each_inferior (kill_inferior_callback). | |
5448 | * server.h (have_started_inferiors_p): Declare. | |
5449 | (have_attached_inferiors_p): Declare. | |
5450 | ||
5091eb23 DE |
5451 | * inferiors.c (remove_process): Fix memory leak, free process. |
5452 | * linux-low.c (linux_remove_process): New function. | |
5453 | (linux_kill): Call it instead of remove_process. | |
5454 | (linux_detach, linux_wait_1): Ditto. | |
5455 | ||
155c8968 PA |
5456 | 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net> |
5457 | ||
5458 | * configure.srv: Add x86 Windows CE target. | |
5459 | ||
7fe519cb UW |
5460 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
5461 | ||
5462 | * inferiors.c (get_thread_process): Make global. | |
5463 | * server.h (get_thread_process): Add prototype. | |
5464 | * thread-db.c (find_one_thread): Use get_thread_process | |
5465 | instead of current_process. | |
5466 | (thread_db_get_tls_address): Do not crash if called when | |
5467 | thread layer is not yet initialized. | |
5468 | ||
5472f405 UW |
5469 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
5470 | ||
5471 | * remote-utils.c (prepare_resume_reply): Null-terminate packet. | |
5472 | * spu-low.c (current_tid): Rename to ... | |
5473 | (current_ptid): ... this. | |
5474 | (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory, | |
5475 | spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use | |
5476 | ptid_get_lwp (current_ptid) instead of current_tid. | |
5477 | (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument | |
5478 | instead of current_tid. Use find_process_pid to verify pid | |
5479 | argument is valid. Pass proper argument to remove_process. | |
5480 | (spu_thread_alive): Compare current_ptid instead of current_tid. | |
5481 | (spu_resume): Likewise. | |
5482 | ||
55ac2b99 PA |
5483 | 2009-04-02 Pedro Alves <pedro@codesourcery.com> |
5484 | ||
5485 | * linux-low.c (usr_store_inferior_registers): Declare local `pid' | |
5486 | variable. | |
5487 | ||
95954743 PA |
5488 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
5489 | ||
5490 | Implement the multiprocess extensions, and add linux multiprocess | |
5491 | support. | |
5492 | ||
5493 | * server.h (ULONGEST): Declare. | |
5494 | (struct ptid, ptid_t): New. | |
5495 | (minus_one_ptid, null_ptid): Declare. | |
5496 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) | |
5497 | (ptid_get_tid, ptid_equal, ptid_is_pid): Declare. | |
5498 | (struct inferior_list_entry): Change `id' type from unsigned from | |
5499 | to ptid_t. | |
5500 | (struct sym_cache, struct breakpoint, struct | |
5501 | process_info_private): Forward declare. | |
5502 | (struct process_info): Declare. | |
5503 | (current_process): Declare. | |
5504 | (all_processes): Declare. | |
5505 | (initialize_inferiors): Declare. | |
5506 | (add_thread): Adjust to use ptid_t. | |
5507 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto. | |
5508 | (add_process, remove_process, find_thread_pid): Declare. | |
5509 | (find_inferior_id): Adjust to use ptid_t. | |
5510 | (cont_thread, general_thread, step_thread): Change type to ptid_t. | |
5511 | (multi_process): Declare. | |
5512 | (push_event): Adjust to use ptid_t. | |
5513 | (read_ptid, write_ptid): Declare. | |
5514 | (prepare_resume_reply): Adjust to use ptid_t. | |
5515 | (clear_symbol_cache): Declare. | |
5516 | * inferiors.c (all_processes): New. | |
5517 | (null_ptid, minus_one_ptid): New. | |
5518 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) | |
5519 | (ptid_get_tid, ptid_equal, ptid_is_pid): New. | |
5520 | (add_thread): Change unsigned long to ptid. Remove gdb_id | |
5521 | parameter. Adjust. | |
5522 | (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid. | |
5523 | (gdb_id_to_thread): Rename to ... | |
5524 | (find_thread_pid): ... this. Change unsigned long to ptid. | |
5525 | (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid. | |
5526 | (loaded_dll, pull_pid_from_list): Adjust. | |
5527 | (add_process, remove_process, find_process_pid) | |
5528 | (get_thread_process, current_process, initialize_inferiors): New. | |
5529 | * target.h (struct thread_resume) <thread>: Change type to ptid_t. | |
5530 | (struct target_waitstatus) <related_pid>: Ditto. | |
5531 | (struct target_ops) <kill, detach>: Add `pid' argument. Change | |
5532 | return type to int. | |
5533 | (struct target_ops) <join>: Add `pid' argument. | |
5534 | (struct target_ops) <thread_alive>: Change pid's type to ptid_t. | |
5535 | (struct target_ops) <wait>: Add `ptid' field. Change return type | |
5536 | to ptid. | |
5537 | (kill_inferior, detach_inferior, join_inferior): Add `pid' argument. | |
5538 | (mywait): Add `ptid' argument. Change return type to ptid_t. | |
5539 | (target_pid_to_str): Declare. | |
5540 | * target.c (set_desired_inferior): Adjust to use ptids. | |
5541 | (mywait): Add new `ptid' argument. Adjust. | |
5542 | (target_pid_to_str): New. | |
5543 | * mem-break.h (free_all_breakpoints): Declare. | |
5544 | * mem-break.c (breakpoints): Delelete. | |
5545 | (set_breakpoint_at, delete_breakpoint, find_breakpoint_at) | |
5546 | (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust | |
5547 | to use per-process breakpoint list. | |
5548 | (free_all_breakpoints): New. | |
5549 | * remote-utils.c (struct sym_cache) <name>: Drop `const'. | |
5550 | (symbol_cache, all_symbols_looked_up): Delete. | |
5551 | (hexchars): New. | |
5552 | (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one, | |
5553 | read_ptid): New. | |
5554 | (prepare_resume_reply): Change ptid argument's type from unsigned | |
5555 | long to ptid_t. Adjust. Implement W;process and X;process. | |
5556 | (free_sym_cache, clear_symbol_cache): New. | |
5557 | (look_up_one_symbol): Adjust to per-process symbol cache. * | |
5558 | * server.c (cont_thread, general_thread, step_thread): Change type | |
5559 | to ptid_t. | |
5560 | (attached): Delete. | |
5561 | (multi_process): New. | |
5562 | (last_ptid): Change type to ptid_t. | |
5563 | (struct vstop_notif) <ptid>: Change type to ptid_t. | |
5564 | (queue_stop_reply, push_event): Change `ptid' argument's type to | |
5565 | ptid_t. | |
5566 | (discard_queued_stop_replies): Add `pid' argument. | |
5567 | (start_inferior): Adjust to use ptids. Adjust to mywait interface | |
5568 | changes. Don't reference the `attached' global. | |
5569 | (attach_inferior): Adjust to mywait interface changes. | |
5570 | (handle_query): Adjust to use ptids. Parse GDB's qSupported | |
5571 | features. Handle and report "multiprocess+". Handle | |
5572 | "qAttached:PID". | |
5573 | (handle_v_cont): Adjust to use ptids. Adjust to mywait interface | |
5574 | changes. | |
5575 | (handle_v_kill): New. | |
5576 | (handle_v_stopped): Adjust to use target_pid_to_str. | |
5577 | (handle_v_requests): Allow multiple attaches and runs when | |
5578 | multiprocess extensions are in effect. Handle "vKill". | |
5579 | (myresume): Adjust to use ptids. | |
5580 | (queue_stop_reply_callback): Add `arg' parameter. Handle it. | |
5581 | (handle_status): Adjust to discard_queued_stop_replies interface | |
5582 | change. | |
5583 | (first_thread_of, kill_inferior_callback) | |
5584 | (detach_or_kill_inferior_callback, join_inferiors_callback): New. | |
5585 | (main): Call initialize_inferiors. Adjust to use ptids, killing | |
5586 | and detaching from all inferiors. Handle multiprocess packet | |
5587 | variants. | |
5588 | * linux-low.h: Include gdb_proc_service.h. | |
5589 | (struct process_info_private): New. | |
5590 | (struct linux_target_ops) <pid_of>: Use ptid_get_pid. | |
5591 | <lwpid_of>: Use ptid_get_lwp. | |
5592 | (get_lwp_thread): Adjust. | |
5593 | (struct lwp_info): Add `dead' member. | |
5594 | (find_lwp_pid): Declare. | |
5595 | * linux-low.c (thread_db_active): Delete. | |
5596 | (new_inferior): Adjust comment. | |
5597 | (inferior_pid): Delete. | |
5598 | (linux_add_process): New. | |
5599 | (handle_extended_wait): Adjust. | |
5600 | (add_lwp): Change unsigned long to ptid. | |
5601 | (linux_create_inferior): Add process to processes table. Adjust | |
5602 | to use ptids. Don't set new_inferior here. | |
5603 | (linux_attach_lwp): Rename to ... | |
5604 | (linux_attach_lwp_1): ... this. Add `initial' argument. Handle | |
5605 | it. Adjust to use ptids. | |
5606 | (linux_attach_lwp): New. | |
5607 | (linux_attach): Add process to processes table. Don't set | |
5608 | new_inferior here. | |
5609 | (struct counter): New. | |
5610 | (second_thread_of_pid_p, last_thread_of_process_p): New. | |
5611 | (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to | |
5612 | multiple processes. | |
5613 | (linux_kill): Add `pid' argument. Handle it. Adjust to multiple | |
5614 | processes. Remove process from process table. | |
5615 | (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust | |
5616 | to multiple processes. | |
5617 | (any_thread_of): New. | |
5618 | (linux_detach): Add `pid' argument, and handle it. Remove process | |
5619 | from processes table. | |
5620 | (linux_join): Add `pid' argument. Handle it. | |
5621 | (linux_thread_alive): Change unsighed long argument to ptid_t. | |
5622 | Consider dead lwps as not being alive. | |
5623 | (status_pending_p): Rename `dummy' argument to `arg'. Filter out | |
5624 | threads we're not interested in. | |
5625 | (same_lwp, find_lwp_pid): New. | |
5626 | (linux_wait_for_lwp): Change `pid' argument's type from int to | |
5627 | ptid_t. Adjust. | |
5628 | (linux_wait_for_event): Rename to ... | |
5629 | (linux_wait_for_event_1): ... this. Change `pid' argument's type | |
5630 | from int to ptid_t. Adjust. | |
5631 | (linux_wait_for_event): New. | |
5632 | (linux_wait_1): Add `ptid' argument. Change return type to | |
5633 | ptid_t. Adjust. Use last_thread_of_process_p. Remove processes | |
5634 | that exit from the process table. | |
5635 | (linux_wait): Add `ptid' argument. Change return type to ptid_t. | |
5636 | Adjust. | |
5637 | (mark_lwp_dead): New. | |
5638 | (wait_for_sigstop): Adjust to use ptids. If a process exits while | |
5639 | stopping all threads, mark its main lwp as dead. | |
5640 | (linux_set_resume_request, linux_resume_one_thread): Adjust to use | |
5641 | ptids. | |
5642 | (fetch_register, usr_store_inferior_registers) | |
5643 | (regsets_fetch_inferior_registers) | |
5644 | (regsets_store_inferior_registers, linux_read_memory) | |
5645 | (linux_write_memory): Inline `inferior_pid'. | |
5646 | (linux_look_up_symbols): Adjust to use per-process | |
5647 | `thread_db_active'. | |
5648 | (linux_request_interrupt): Adjust to use ptids. | |
5649 | (linux_read_auxv): Inline `inferior_pid'. | |
5650 | (initialize_low): Don't reference thread_db_active. | |
5651 | * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove. | |
5652 | * proc-service.c (ps_lgetregs): Use find_lwp_pid. | |
5653 | (ps_getpid): Return the pid of the current inferior. | |
5654 | * thread-db.c (proc_handle, thread_agent): Delete. | |
5655 | (thread_db_create_event, thread_db_enable_reporting): Adjust to | |
5656 | per-process data. | |
5657 | (find_one_thread): Change argument type to ptid_t. Adjust to | |
5658 | per-process data. | |
5659 | (maybe_attach_thread): Adjust to per-process data and ptids. | |
5660 | (thread_db_find_new_threads): Ditto. | |
5661 | (thread_db_init): Ditto. | |
5662 | * spu-low.c (spu_create_inferior, spu_attach): Add process to | |
5663 | processes table. Adjust to use ptids. | |
5664 | (spu_kill, spu_detach): Adjust interface. Remove process from | |
5665 | processes table. | |
5666 | (spu_join, spu_thread_alive): Adjust interface. | |
5667 | (spu_wait): Adjust interface. Remove process from processes | |
5668 | table. Adjust to use ptids. | |
5669 | * win32-low.c (current_inferior_tid): Delete. | |
5670 | (current_inferior_ptid): New. | |
5671 | (debug_event_ptid): New. | |
5672 | (thread_rec): Take a ptid. Adjust. | |
5673 | (child_add_thread): Add `pid' argument. Adjust to use ptids. | |
5674 | (child_delete_thread): Ditto. | |
5675 | (do_initial_child_stuff): Add `attached' argument. Add process to | |
5676 | processes table. | |
5677 | (child_fetch_inferior_registers, child_store_inferior_registers): | |
5678 | Adjust. | |
5679 | (win32_create_inferior): Pass 0 to do_initial_child_stuff. | |
5680 | (win32_attach): Pass 1 to do_initial_child_stuff. | |
5681 | (win32_kill): Adjust interface. Remove process from processes | |
5682 | table. | |
5683 | (win32_detach): Ditto. | |
5684 | (win32_join): Adjust interface. | |
5685 | (win32_thread_alive): Take a ptid. | |
5686 | (win32_resume): Adjust to use ptids. | |
5687 | (get_child_debug_event): Ditto. | |
5688 | (win32_wait): Adjust interface. Remove exiting process from | |
5689 | processes table. | |
5690 | ||
bd99dc85 PA |
5691 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
5692 | ||
5693 | Non-stop mode support. | |
5694 | ||
5695 | * server.h (non_stop): Declare. | |
5696 | (gdb_client_data, handler_func): Declare. | |
5697 | (delete_file_handler, add_file_handler, start_event_loop): | |
5698 | Declare. | |
5699 | (handle_serial_event, handle_target_event, push_event) | |
5700 | (putpkt_notif): Declare. | |
5701 | * target.h (enum resume_kind): New. | |
5702 | (struct thread_resume): Replace `step' field by `kind' field. | |
5703 | (TARGET_WNOHANG): Define. | |
5704 | (struct target_ops) <wait>: Add `options' argument. | |
5705 | <supports_non_stop, async, start_non_stop>: New fields. | |
5706 | (target_supports_non_stop, target_async): New. | |
5707 | (start_non_stop): Declare. | |
5708 | (mywait): Add `options' argument. | |
5709 | * target.c (mywait): Add `options' argument. Print child exit | |
5710 | notifications here. | |
5711 | (start_non_stop): New. | |
5712 | * server.c (non_stop, own_buf, mem_buf): New globals. | |
5713 | (struct vstop_notif): New. | |
5714 | (notif_queue): New global. | |
5715 | (queue_stop_reply, push_event, discard_queued_stop_replies) | |
5716 | (send_next_stop_reply): New. | |
5717 | (start_inferior): Adjust to use resume_kind. Adjust to mywait | |
5718 | interface changes. | |
5719 | (attach_inferior): In non-stop mode, don't wait for the target | |
5720 | here. | |
5721 | (handle_general_set): Handle QNonStop. | |
5722 | (handle_query): When handling qC, return the current general | |
5723 | thread, instead of the first thread of the list. | |
5724 | (handle_query): If the backend supports non-stop mode, include | |
5725 | QNonStop+ in the qSupported query response. | |
5726 | (handle_v_cont): Adjust to use resume_kind. Handle resume_stop | |
5727 | and non-stop mode. | |
5728 | (handle_v_attach, handle_v_run): Handle non-stop mode. | |
5729 | (handle_v_stopped): New. | |
5730 | (handle_v_requests): Report support for vCont;t. Handle vStopped. | |
5731 | (myresume): Adjust to use resume_kind. Handle non-stop. | |
5732 | (queue_stop_reply_callback): New. | |
5733 | (handle_status): Handle non-stop mode. | |
5734 | (main): Clear non_stop flag on reconnection. Use the event-loop. | |
5735 | Refactor serial protocol handling from here ... | |
5736 | (process_serial_event): ... to this new function. When GDB | |
5737 | selects any thread, select one here. In non-stop mode, wait until | |
5738 | GDB acks all pending events before exiting. | |
5739 | (handle_serial_event, handle_target_event): New. | |
5740 | * remote-utils.c (remote_open): Install remote_desc in the event | |
5741 | loop. | |
5742 | (remote_close): Remove remote_desc from the event loop. | |
5743 | (putpkt_binary): Rename to... | |
5744 | (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it. | |
5745 | (putpkt_binary): New as wrapper around putpkt_binary_1. | |
5746 | (putpkt_notif): New. | |
5747 | (prepare_resume_reply): In non-stop mode, don't change the | |
5748 | general_thread. | |
5749 | * event-loop.c: New. | |
5750 | * Makefile.in (OBJ): Add event-loop.o. | |
5751 | (event-loop.o): New rule. | |
5752 | ||
5753 | * linux-low.h (pid_of): Moved here. | |
5754 | (lwpid_of): New. | |
5755 | (get_lwp_thread): Use lwpid_of. | |
5756 | (struct lwp_info): Delete `lwpid' field. Add `suspended' field. | |
5757 | * linux-low.c (pid_of): Delete. | |
5758 | (inferior_pid): Use lwpid_of. | |
5759 | (linux_event_pipe): New. | |
5760 | (target_is_async_p): New. | |
5761 | (delete_lwp): New. | |
5762 | (handle_extended_wait): Use lwpid_of. | |
5763 | (add_lwp): Don't set lwpid field. | |
5764 | (linux_attach_lwp): Adjust debug output. Use lwpid_of. | |
5765 | (linux_kill_one_lwp): If killing a running lwp, stop it first. | |
5766 | Use lwpid_of. Adjust to linux_wait_for_event interface changes. | |
5767 | (linux_detach_one_lwp): If detaching from a running lwp, stop it | |
5768 | first. Adjust to linux_wait_for_event interface changes. Use | |
5769 | lwpid_of. | |
5770 | (linux_detach): Don't delete the main lwp here. | |
5771 | (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of. | |
5772 | (status_pending_p): Don't consider explicitly suspended lwps. | |
5773 | (linux_wait_for_lwp): Take an integer pid instead of a lwp_info | |
5774 | pointer. Add OPTIONS argument. Change return type to int. Use | |
5775 | my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of. | |
5776 | (linux_wait_for_event): Take an integer pid instead of a lwp_info | |
5777 | pointer. Add status pointer argument. Return a pid instead of a | |
5778 | status. Use lwpid_of. Adjust to linux_wait_for_lwp interface | |
5779 | changes. In non-stop mode, don't switch to a random thread. | |
5780 | (linux_wait): Rename to... | |
5781 | (linux_wait_1): ... this. Add target_options argument, and handle | |
5782 | it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode, | |
5783 | don't handle the continue thread. Handle TARGET_WNOHANG. Merge | |
5784 | clean exit and signal exit code. Don't stop all threads in | |
5785 | non-stop mode. In all-stop mode, only stop all threads when | |
5786 | reporting a stop to GDB. Handle explicit thread stop requests. | |
5787 | (async_file_flush, async_file_mark): New. | |
5788 | (linux_wait): New. | |
5789 | (send_sigstop): Use lwpid_of. | |
5790 | (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event | |
5791 | interface changes. In non-stop mode, don't switch to a random | |
5792 | thread. | |
5793 | (linux_resume_one_lwp): Use lwpid_of. | |
5794 | (linux_continue_one_thread, linux_queue_one_thread): Merge into ... | |
5795 | (linux_resume_one_thread): ... this. Handle resume_stop. In | |
5796 | non-stop mode, don't look for pending flag in all threads. | |
5797 | (resume_status_pending_p): Don't consider explicitly suspended | |
5798 | threads. | |
5799 | (my_waitpid): Reimplement. Emulate __WALL. | |
5800 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): | |
5801 | Use lwpid_of. | |
5802 | (sigchld_handler, linux_supports_non_stop, linux_async) | |
5803 | (linux_start_non_stop): New. | |
5804 | (linux_target_ops): Register linux_supports_non_stop, linux_async | |
5805 | and linux_start_non_stop. | |
5806 | (initialize_low): Install SIGCHLD handler. | |
5807 | * thread-db.c (thread_db_create_event, find_one_thread) | |
5808 | (thread_db_get_tls_address): Use lwpid_of. | |
5809 | * win32-low.c (win32_detach): Adjust to use resume_kind. | |
5810 | (win32_wait): Add `options' argument. | |
5811 | * spu-low.c (spu_resume): Adjust to use resume_kind. | |
5812 | (spu_wait): Add `options' argument. | |
5813 | ||
5b1c542e PA |
5814 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
5815 | ||
5816 | Decouple target code from remote protocol. | |
5817 | ||
5818 | * target.h (enum target_waitkind): New. | |
5819 | (struct target_waitstatus): New. | |
5820 | (struct target_ops) <wait>: Return an unsigned long. Take a | |
5821 | target_waitstatus pointer instead of a char pointer. | |
5822 | (mywait): Likewise. | |
5823 | * target.c (mywait): Change prototype to return an unsigned long. | |
5824 | Take a target_waitstatus pointer instead of a char pointer. Adjust. | |
5825 | * server.h (thread_from_wait, old_thread_from_wait): Delete | |
5826 | declarations. | |
5827 | (prepare_resume_reply): Change prototype to take a | |
5828 | target_waitstatus. | |
5829 | * server.c (thread_from_wait, old_thread_from_wait): Delete. | |
5830 | (last_status, last_ptid): New. | |
5831 | (start_inferior): Remove "statusptr" argument. Adjust. Return a | |
5832 | pid instead of a signal. | |
5833 | (attach_inferior): Remove "status" and "signal" parameters. | |
5834 | Adjust. | |
5835 | (handle_query): For qGetTLSAddr, parse the thread id with strtol, | |
5836 | not as an address. | |
5837 | (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill) | |
5838 | (handle_v_requests, myresume): Remove "status" and "signal" | |
5839 | parameters. Adjust. | |
5840 | (handle_status): New. | |
5841 | (main): Delete local `status'. Adjust. | |
5842 | * remote-utils.c: Include target.h. | |
5843 | (prepare_resume_reply): Change prototype to take a | |
5844 | target_waitstatus. Adjust. | |
5845 | ||
5846 | * linux-low.c (linux_wait): Adjust to new target_ops->wait | |
5847 | interface. | |
5848 | * spu-low.c (spu_wait): Adjust. | |
5849 | * win32-low.c (enum target_waitkind, struct target_waitstatus): | |
5850 | Delete. | |
5851 | (win32_wait): Adjust. | |
5852 | ||
2bd7c093 PA |
5853 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
5854 | ||
5855 | * target.h (struct thread_resume): Delete leave_stopped member. | |
5856 | (struct target_ops): Add a `n' argument to the `resume' callback. | |
5857 | * server.c (start_inferior): Adjust. | |
5858 | (handle_v_cont, myresume): Adjust. | |
5859 | * linux-low.c (check_removed_breakpoint): Adjust to resume | |
5860 | interface change, and to removed leave_stopped field. | |
5861 | (resume_ptr): Delete. | |
5862 | (struct thread_resume_array): New. | |
5863 | (linux_set_resume_request): Add new `arg' parameter. Adjust to | |
5864 | resume interface change. | |
5865 | (linux_continue_one_thread, linux_queue_one_thread) | |
5866 | (resume_status_pending_p): Check if the resume field is NULL | |
5867 | instead of checking the leave_stopped member. | |
5868 | (linux_resume): Adjust to the target resume interface change. | |
5869 | * spu-low.c (spu_resume): Adjust to the target resume interface | |
5870 | change. | |
5871 | * win32-low.c (win32_detach, win32_resume): Ditto. | |
5872 | ||
c35fafde PA |
5873 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
5874 | ||
5875 | * linux-low.c (linux_wait_for_event): Don't clear the `stepping' | |
5876 | flag. | |
5877 | (wait_for_sigstop): Don't leave a finished single-step SIGTRAP | |
5878 | pending. | |
5879 | (linux_continue_one_thread): Only preserve the stepping flag if | |
5880 | there's a pending breakpoint. | |
5881 | ||
0a59d50b PA |
5882 | 2009-03-31 Pedro Alves <pedro@codesourcery.com> |
5883 | ||
5884 | * server.c (main): After the inferior having exited, call | |
5885 | remote_close before exiting gdbserver. | |
5886 | ||
f04c6d38 TJB |
5887 | 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com> |
5888 | ||
5889 | Fix size of FPSCR in Power 7 processors. | |
5890 | * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define. | |
5891 | (PPC_FEATURE_HAS_DFP): New #define. | |
5892 | (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on | |
5893 | size of the FPSCR. | |
5894 | ||
78e5cee6 PA |
5895 | 2009-03-23 Pedro Alves <pedro@codesourcery.com> |
5896 | ||
5897 | * server.c (handle_query) Whitespace and formatting. | |
5898 | ||
1b3f6016 PA |
5899 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
5900 | ||
5901 | * i387-fp.c, linux-arm-low.c, linux-cris-low.c, | |
5902 | linux-crisv32-low.c, linux-i386-low.c, linux-low.c, | |
5903 | linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c, | |
5904 | linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c, | |
5905 | regcache.c, remote-utils.c, server.c, spu-low.c, target.h, | |
5906 | thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c, | |
5907 | Makefile.in, configure.ac: Fix whitespace throughout. | |
5908 | * configure: Regenerate. | |
5909 | ||
a07b2135 PA |
5910 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
5911 | ||
5912 | * inferiors.c (find_inferior): Make it safe for the callback | |
5913 | function to delete the currently iterated inferior. | |
5914 | ||
67cc2626 PA |
5915 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
5916 | ||
5917 | * Makefile.in (linuw_low_h): Move higher. | |
5918 | (thread-db.o): Depend on $(linux_low_h). | |
5919 | ||
54a0b537 PA |
5920 | 2009-03-17 Pedro Alves <pedro@codesourcery.com> |
5921 | ||
5922 | Rename "process" to "lwp" throughout. | |
5923 | ||
5924 | * linux-low.c (all_processes): Rename to... | |
5925 | (all_lwps): ... this. | |
5926 | (inferior_pid, handle_extended_wait, get_stop_pc): Adjust. | |
5927 | (add_process): Rename to ... | |
5928 | (add_lwp): ... this. Adjust. | |
5929 | (linux_create_inferior): Adjust. | |
5930 | (linux_attach_lwp): Adjust. | |
5931 | (linux_attach): Adjust. | |
5932 | (linux_kill_one_process): Rename to ... | |
5933 | (linux_kill_one_lwp): ... this. Adjust. | |
5934 | (linux_kill): Adjust. | |
5935 | (linux_detach_one_process): Rename to ... | |
5936 | (linux_detach_one_lwp): ... this. Adjust. | |
5937 | (linux_detach): Adjust. | |
5938 | (check_removed_breakpoint): Adjust. | |
5939 | (status_pending_p): Adjust. | |
5940 | (linux_wait_for_process): Rename to ... | |
5941 | (linux_wait_for_lwp): ... this. Adjust. | |
5942 | (linux_wait_for_event): Adjust. | |
5943 | (send_sigstop): Adjust. | |
5944 | (wait_for_sigstop): Adjust. | |
5945 | (stop_all_processes): Rename to ... | |
5946 | (stop_all_lwps): ... this. | |
5947 | (linux_resume_one_process): Rename to ... | |
5948 | (linux_resume_one_lwp): ... this. Adjust. | |
5949 | (linux_set_resume_request, linux_continue_one_thread) | |
5950 | (linux_queue_one_thread, resume_status_pending_p) | |
5951 | (usr_store_inferior_registers, regsets_store_inferior_registers) | |
5952 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): | |
5953 | Adjust. | |
5954 | * linux-low.h (get_process): Rename to ... | |
5955 | (get_lwp): ... this. Adjust. | |
5956 | (get_thread_process): Rename to ... | |
5957 | (get_thread_lwp): ... this. Adjust. | |
5958 | (get_process_thread): Rename to ... | |
5959 | (get_lwp_thread): ... this. Adjust. | |
5960 | (struct process_info): Rename to ... | |
5961 | (struct lwp_info): ... this. | |
5962 | (all_processes): Rename to ... | |
5963 | (all_lwps): ... this. | |
5964 | * proc-service.c (ps_lgetregs): Adjust. | |
5965 | * thread-db.c (thread_db_create_event, find_one_thread) | |
5966 | (maybe_attach_thread, thread_db_get_tls_address): Adjust. | |
5967 | ||
0b16c5cf PA |
5968 | 2009-03-14 Pedro Alves <pedro@codesourcery.com> |
5969 | ||
5970 | * server.c (handle_query): Handle "qAttached". | |
5971 | ||
32de4b9d NS |
5972 | 2009-03-13 Nathan Sidwell <nathan@codesourcery.com> |
5973 | ||
5974 | * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to | |
5975 | GPLv3, update license URL. | |
5976 | ||
2aecd87f DE |
5977 | 2009-03-01 Doug Evans <dje@google.com> |
5978 | ||
93efd302 | 5979 | * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common. |
2aecd87f DE |
5980 | (server_h): Add gdb_signals.h. |
5981 | (signals.o): Update. | |
5982 | * server.h (target_signal_from_host,target_signal_to_host_p) | |
5983 | (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h. | |
5984 | ||
86b1f9c5 PM |
5985 | 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr> |
5986 | ||
5987 | * remote-utils.c (getpkt): Also generate remote-debug | |
5988 | information if noack_mode is set. | |
5989 | ||
4aa995e1 PA |
5990 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
5991 | ||
5992 | * server.c (handle_query): Report qXfer:siginfo:read and | |
5993 | qXfer:siginfo:write as supported and handle them. | |
5994 | * target.h (struct target_ops) <qxfer_siginfo>: New field. | |
5995 | * linux-low.c (linux_xfer_siginfo): New. | |
5996 | (linux_target_ops): Set it. | |
5997 | ||
62709adf PA |
5998 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
5999 | ||
6000 | * server.c (gdbserver_usage): Mention --remote-debug. | |
6001 | (main): Accept '--remote-debug' switch. | |
6002 | ||
aef93bd7 DE |
6003 | 2009-01-18 Doug Evans <dje@google.com> |
6004 | ||
6005 | * regcache.c (new_register_cache): No need to check result of xcalloc. | |
6006 | * server.c (handle_search_memory): Back out calls to xmalloc, | |
6007 | result is checked and error is returned to user upon failure. | |
6008 | (handle_query): Ditto. Add more checks for result of malloc. | |
6009 | (handle_v_cont): Check result of malloc, report error back to | |
6010 | user upon failure. | |
6011 | (handle_v_run): Ditto. Call freeargv. | |
6012 | * server.h (freeargv): Declare. | |
6013 | * utils.c (freeargv): New fn. | |
6014 | ||
54363045 DE |
6015 | 2009-01-15 Doug Evans <dje@google.com> |
6016 | ||
f626972c DE |
6017 | * gdbreplay.c (perror_with_name): Make arg const char *. |
6018 | * server.h (target_signal_to_name): Make return type const char *. | |
0842e787 | 6019 | * thread-db.c (thread_db_err_str): Make return type const char *. |
f626972c | 6020 | * utils.c (perror_with_name): Make arg const char *. |
54363045 | 6021 | |
18aae699 PA |
6022 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
6023 | ||
6024 | * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE | |
6025 | when handling a EXIT_PROCESS_DEBUG_EVENT. | |
6026 | ||
ff703abe JB |
6027 | 2009-01-06 Joel Brobecker <brobecker@adacore.com> |
6028 | ||
6029 | * gdbreplay.c (gdbreplay_version): Update copyright year. | |
6030 | * server.c (gdbserver_version): Likewise. | |
6031 | ||
f21cc1a2 | 6032 | 2009-01-05 Doug Evans <dje@google.com> |
0e21c1ec DE |
6033 | |
6034 | * linux-low.c (linux_attach_lwp): Add some comments/fixmes. | |
f21cc1a2 | 6035 | (handle_extended_wait): Improve comment. |
0e21c1ec | 6036 | |
bca929d3 DE |
6037 | 2008-12-13 Doug Evans <dje@google.com> |
6038 | ||
6039 | * utils.c (xmalloc,xcalloc,xstrdup): New fns. | |
6040 | * server.h (ATTR_MALLOC): New macro. | |
6041 | (xmalloc,xcalloc,xstrdup): Declare. | |
6042 | * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup. | |
6043 | * inferiors.c: Ditto. | |
6044 | * linux-low.c: Ditto. | |
6045 | * mem-break.c: Ditto. | |
6046 | * regcache.c: Ditto. | |
6047 | * remote-utils.c: Ditto. | |
6048 | * server.c: Ditto. | |
6049 | * target.c: Ditto. | |
6050 | * win32-low.c: Ditto. | |
6051 | ||
97438e3f DE |
6052 | 2008-12-12 Doug Evans <dje@google.com> |
6053 | ||
896c7fbb DE |
6054 | * linux-low.c (linux_wait_for_process): Don't clobber current_inferior |
6055 | in debugging printf. | |
6056 | ||
97438e3f DE |
6057 | * linux-low.c (handle_extended_wait): Simplify, use my_waitpid. |
6058 | ||
e3b886f8 DE |
6059 | 2008-12-09 Doug Evans <dje@google.com> |
6060 | ||
6061 | * linux-low.h (struct process_info): Delete member tid, unused. | |
6062 | * thread-db.c (find_one_thread): Update. | |
6063 | (maybe_attach_thread): Update. | |
6064 | ||
07e059b5 VP |
6065 | 2008-12-02 Pedro Alves <pedro@codesourcery.com> |
6066 | ||
889bf7c5 PA |
6067 | * target.h (struct target_ops): Add qxfer_osdata member. |
6068 | * linux-low.c: Include ctype.h and pwd.h and sys/types.h | |
6069 | and dirent.h. | |
6070 | (linux_qxfer_osdata): New functions. | |
6071 | (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata | |
6072 | callback. | |
6073 | * server.c (handle_query): Handle "qXfer:osdata:read:". | |
6074 | * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish) | |
6075 | (buffer_xml_printf): New functions. | |
6076 | * server.h (struct buffer): New. | |
6077 | (buffer_grow_str, buffer_grow_str0): New macros. | |
6078 | (buffer_grow, buffer_free, buffer_init, buffer_finish) | |
6079 | (buffer_xml_printf): Declare. | |
07e059b5 | 6080 | |
4cab47ab DE |
6081 | 2008-11-24 Doug Evans <dje@google.com> |
6082 | ||
6083 | * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused. | |
6084 | ||
f142445f DJ |
6085 | 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com> |
6086 | ||
6087 | * server.c (handle_v_run): Always use the supplied argument list. | |
6088 | ||
d0107bb6 | 6089 | 2008-11-19 Bob Wilson <bob.wilson@acm.org> |
889bf7c5 | 6090 | |
d0107bb6 BW |
6091 | * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4. |
6092 | (xtensa_regmap_table): Add entry for scompare1. | |
889bf7c5 | 6093 | |
2c4ad781 TJB |
6094 | 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6095 | ||
6096 | * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c, | |
6097 | powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c, | |
6098 | powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c, | |
6099 | powerpc-isa205-64l.o, powerpc-isa205-64l.c, | |
6100 | powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c, | |
6101 | powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets. | |
6102 | * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and | |
6103 | XML target descriptions. | |
6104 | * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR | |
6105 | when inferior is running on an ISA 2.05 or later processor. Add | |
6106 | special case to return offset for full 64-bit slot of FPSCR when | |
6107 | in 32-bits. | |
6108 | ||
dfb64f85 DJ |
6109 | 2008-11-14 Daniel Gutson <dgutson@codesourcery.com> |
6110 | ||
6111 | * Makefile.in (SFILES, clean): Added sparc64 files. | |
6112 | (reg-sparc64.o, reg-sparc64.c): New. | |
6113 | * configure.srv (sparc*-*-linux*): New configuration. | |
6114 | * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace | |
6115 | syscall arguments for SPARC. | |
6116 | (regsets_store_inferior_registers): Likewise. | |
6117 | * linux-sparc-low.c: New file. | |
6118 | ||
66b6e1dd DE |
6119 | 2008-10-21 Doug Evans <dje@google.com> |
6120 | ||
6121 | * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete. | |
6122 | (READLINE_DIR,READLINE_DEP): Delete. | |
6123 | (INTERNAL_CFLAGS): Update. | |
6124 | (LINTFLAGS): Update. | |
6125 | ||
9b710a42 PA |
6126 | 2008-10-10 Pedro Alves <pedro@codesourcery.com> |
6127 | ||
6128 | * server.c (handle_v_run): If GDB didn't specify an argv, use the | |
6129 | whole argv from the last run, not just argv[0]. | |
6130 | ||
5822d809 PA |
6131 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
6132 | ||
6133 | * regcache.c (new_register_cache): Return NULL if the register | |
6134 | cache size isn't known yet. | |
6135 | (free_register_cache): Avoid dereferencing a NULL regcache. | |
6136 | ||
74aac56f DJ |
6137 | 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
6138 | ||
6139 | * configure.srv: Merge MIPS and MIPS64. | |
6140 | ||
400b20f5 MR |
6141 | 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org> |
6142 | ||
6143 | * Makefile.in (uninstall): Apply $(EXEEXT) too. | |
6144 | ||
677c5bb1 LM |
6145 | 2008-08-18 Luis Machado <luisgpm@br.ibm.com> |
6146 | ||
6147 | * Makefile.in: Add required vsx dependencies. | |
6148 | ||
6149 | * linux-ppc-low: Define PPC_FEATURE_HAS_VSX. | |
6150 | Declare init_registers_powerpc_vsx32l. | |
6151 | Declare init_registers_powerpc_vsx64l. | |
6152 | Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS. | |
6153 | (ppc_arch_setup): Check for VSX in hwcap. | |
6154 | (ppc_fill_vsxregset): New function. | |
6155 | (ppc_store_vsxregset): New function. | |
6156 | Add new VSX entry in regset_info target_regsets. | |
6157 | ||
6158 | * configure.srv: Add new VSX dependencies. | |
6159 | ||
a6f3e723 SL |
6160 | 2008-08-12 Pedro Alves <pedro@codesourcery.com> |
6161 | ||
6162 | * remote-utils.c (noack_mode, transport_is_reliable): New globals. | |
6163 | (remote_open): Set or clear transport_is_reliable. | |
6164 | (putpkt_binary): Don't expect acks in noack mode. | |
6165 | (getpkt): Don't send ack/nac in noack mode. | |
6166 | * server.c (handle_general_set): Handle QStartNoAckMode. | |
6167 | (handle_query): If connected by tcp pass QStartNoAckMode+ in | |
6168 | qSupported. | |
6169 | (main): Reset noack_mode on every connection. | |
6170 | * server.h (noack_mode): Declare. | |
6171 | ||
a417dc56 RW |
6172 | 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
6173 | ||
6174 | * Makefile.in (GDBREPLAY_OBS): New variable. | |
6175 | (gdbreplay$(EXEEXT)): Use it to avoid unportable $^. | |
6176 | ||
3221518c UW |
6177 | 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com> |
6178 | Daniel Jacobowitz <dan@codesourcery.com> | |
6179 | ||
6180 | * linux-low.c (linux_resume_one_process): Ignore ESRCH. | |
6181 | (usr_store_inferior_registers): Likewise. | |
6182 | (regsets_store_inferior_registers): Likewise. | |
6183 | ||
ec56be1b PA |
6184 | 2008-07-31 Rolf Jansen <rj@surtec.com> |
6185 | Pedro Alves <pedro@codesourcery.com> | |
6186 | ||
6187 | * configure.ac: Check for memmem declaration. | |
6188 | * server.c [HAVE_MALLOC_H]: Include malloc.h. | |
6189 | (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC) | |
6190 | (disable_packet_qfThreadInfo): Unconditionally compile. | |
6191 | * server.h [!HAVE_DECL_MEMMEM]: Declare memmem. | |
6192 | * configure, config.in: Regenerate. | |
6193 | ||
2fe5e3ff DE |
6194 | 2008-07-28 Doug Kwan <dougkwan@google.com> |
6195 | ||
6196 | * linux-low.c (sys/dir.h, sys/user.h): Remove includes. | |
6197 | (linux_write_memory): Remove declaration of errno. | |
6198 | ||
836acd6d UW |
6199 | 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com> |
6200 | ||
6201 | * linux-low.c (handle_extended_wait): Do not use "status" | |
6202 | variable uninitialized. | |
6203 | ||
aeba519e PA |
6204 | 2008-07-07 Pedro Alves <pedro@codesourcery.com> |
6205 | ||
6206 | * server.c (handle_v_attach): Inhibit reporting dll changes. | |
6207 | ||
db42f210 PA |
6208 | 2008-06-27 Pedro Alves <pedro@codesourcery.com> |
6209 | ||
6210 | * remote-utils.c (prepare_resume_reply): If requested, don't | |
6211 | output "thread:TID" in the T stop reply. | |
6212 | ||
6213 | * server.c (disable_packet_vCont, disable_packet_Tthread) | |
6214 | (disable_packet_qC, disable_packet_qfThreadInfo): New globals. | |
6215 | (handle_query): If requested, disable support for qC, qfThreadInfo | |
6216 | and qsThreadInfo. | |
6217 | (handle_v_requests): If requested, disable support for vCont. | |
6218 | (gdbserver_show_disableable): New. | |
6219 | (main): Handle --disable-packet and --disable-packet=LIST. | |
6220 | ||
6221 | * server.h (disable_packet_vCont, disable_packet_Tthread) | |
6222 | (disable_packet_qC, disable_packet_qfThreadInfo): Declare. | |
6223 | ||
8e4c5421 CD |
6224 | 2008-06-20 Carlos O'Donell <carlos@codesourcery.com> |
6225 | ||
6226 | * server.c (gdbserver_usage): Mention --version. | |
6227 | ||
6e23a804 DJ |
6228 | 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com> |
6229 | ||
6230 | * Makefile.in (gdbreplay.o): New rule. | |
6231 | ||
90aa6a40 JM |
6232 | 2008-06-06 Joseph Myers <joseph@codesourcery.com> |
6233 | ||
6234 | * gdbreplay.c (gdbreplay_version): Say gdbreplay in version | |
6235 | message, not gdbserver. | |
6236 | ||
c16158bc | 6237 | 2008-06-05 Vladimir Prus <vladimir@codesourcery.com> |
889bf7c5 PA |
6238 | Nathan Sidwell <nathan@codesourcery.com> |
6239 | Joseph Myers <joseph@codesourcery.com> | |
c16158bc JM |
6240 | |
6241 | * acinclude.m4: Include ../../config/acx.m4. | |
6242 | * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL. | |
6243 | * configure, config.in: Regenerate. | |
6244 | * Makefile.in (gdbreplay$(EXEEXT)): Add version.o. | |
6245 | * server.c (gdbserver_version): Print PKGVERSION. | |
6246 | (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO. | |
6247 | (main): Adjust gdbserver_usage calls. | |
6248 | * gdbreplay.c (version, host_name): Add declarations. | |
6249 | (gdbreplay_version, gdbreplay_usage): New. | |
6250 | (main): Accept --version and --help options. | |
6251 | ||
aeb75bf5 DJ |
6252 | 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com> |
6253 | ||
6254 | * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New. | |
6255 | (arm_breakpoint_at): Handle Thumb. | |
6256 | (the_low_target): Add comment. | |
6257 | ||
76b233dd UW |
6258 | 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com> |
6259 | ||
6260 | * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer. | |
6261 | ||
08388c79 DE |
6262 | 2008-05-09 Doug Evans <dje@google.com> |
6263 | ||
a3c83fae DE |
6264 | * server.h (decode_search_memory_packet): Declare. |
6265 | * remote-utils.c (decode_search_memory_packet): New fn. | |
6266 | * server.c (handle_search_memory_1): New fn. | |
08388c79 DE |
6267 | (handle_search_memory): New fn. |
6268 | (handle_query): Process qSearch:memory packets. | |
6269 | ||
bb9c3d36 UW |
6270 | 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com> |
6271 | ||
6272 | * regcache.c (registers_length): Remove. | |
6273 | (set_register_cache): Verify that PBUFSIZ is large enough to hold a | |
6274 | full register packet. | |
6275 | * regcache.h (registers_length): Remove prototype. | |
6276 | * server.h (PBUFSIZ): Define to 16384. | |
6277 | ||
7284e1be UW |
6278 | 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com> |
6279 | ||
6280 | * configure.srv (powerpc*-*-linux*): Set srv_regobj to | |
6281 | powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o, | |
6282 | powerpc-64l.o, and powerpc-altivec64l.o. | |
6283 | Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and | |
6284 | rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml, | |
6285 | rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml, | |
6286 | rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml, | |
6287 | rs6000/power-linux.xml, and rs6000/power64-linux.xml | |
6288 | to srv_xmlfiles. | |
6289 | ||
6290 | * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ... | |
6291 | (powerpc-32l.o, powerpc-32l.c): ... these new rules. | |
6292 | (powerpc-32.o, powerpc-32.c): Remove, replace by ... | |
6293 | (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules. | |
6294 | (powerpc-e500.o, powerpc-e500.c): Remove, replace by ... | |
6295 | (powerpc-e500l.o, powerpc-e500l.c): ... these new rules. | |
6296 | (reg-ppc64.o, reg-ppc64.c): Remove, replace by ... | |
6297 | (powerpc-64l.o, powerpc-64l.c): ... these new rules. | |
6298 | (powerpc-64.o, powerpc-64.c): Remove, replace by ... | |
6299 | (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules. | |
6300 | (clean): Update. | |
6301 | ||
6302 | * linux-ppc-low.c (init_registers_ppc): Remove, replace by ... | |
6303 | (init_registers_powerpc_32l): ... this new prototype. | |
6304 | (init_registers_powerpc_32): Remove, replace by ... | |
6305 | (init_registers_powerpc_altivec32l): ... this new prototype. | |
6306 | (init_registers_powerpc_e500): Remove, replace by ... | |
6307 | (init_registers_powerpc_e500l): ... this new prototype. | |
6308 | (init_registers_ppc64): Remove, replace by ... | |
6309 | (init_registers_powerpc_64l): ... this new prototype. | |
6310 | (init_registers_powerpc_64): Remove, replace by ... | |
6311 | (init_registers_powerpc_altivec64l): ... this new prototype. | |
6312 | (ppc_num_regs): Set to 73. | |
6313 | (PT_ORIG_R3, PT_TRAP): Define if necessary. | |
6314 | (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap. | |
6315 | (ppc_cannot_store_register): Handle orig_r3 and trap. | |
6316 | (ppc_arch_setup): Update init_registers_... calls. | |
6317 | (ppc_fill_gregset): Handle orig_r3 and trap. | |
6318 | ||
6319 | * inferiors.c (clear_inferiors): Reset current_inferior. | |
6320 | ||
fdc59709 PB |
6321 | 2008-04-23 Paolo Bonzini <bonzini@gnu.org> |
6322 | ||
889bf7c5 PA |
6323 | * acinclude.m4: Add override.m4. |
6324 | * configure: Regenerate. | |
fdc59709 | 6325 | |
c9b2f845 UW |
6326 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
6327 | ||
6328 | * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the | |
6329 | initial call to init_register_ppc64. | |
6330 | ||
550512b8 UW |
6331 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
6332 | ||
43aaf8b6 PA |
6333 | * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into |
6334 | single powerpc*-*-linux* case. | |
550512b8 UW |
6335 | (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case. |
6336 | ||
b6430ec3 UW |
6337 | 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com> |
6338 | ||
6339 | * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from | |
889bf7c5 | 6340 | srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml |
b6430ec3 UW |
6341 | from reg_xmlfiles. |
6342 | * linux-ppc-low.c: Include <elf.h>. | |
6343 | (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define. | |
6344 | (ppc_hwcap): New global variable. | |
6345 | (ppc_regmap): Remove __SPE__ #ifdef sections. | |
6346 | (ppc_regmap_e500): New global variable. | |
6347 | (ppc_cannot_store_register): Update __SPE__ special case. | |
6348 | (ppc_get_hwcap): New function. | |
6349 | (ppc_arch_setup): Use it to determine whether inferior supports | |
6350 | AltiVec or SPE registers. Set the_low_target.regmap if appropriate. | |
6351 | (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally. | |
6352 | Do not access registers if target does not support AltiVec. | |
6353 | (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally. | |
6354 | Do not access registers if target does not support SPE. | |
6355 | (target_regsets): Unconditionally include AltiVec and SPE regsets. | |
6356 | ||
52fa2412 UW |
6357 | 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com> |
6358 | ||
6359 | * linux-low.c (disabled_regsets, num_regsets): New. | |
6360 | (use_regsets_p): Delete. | |
6361 | (linux_wait_for_process): Clear disabled_regsets. | |
6362 | (regsets_fetch_inferior_registers): Check and set it. | |
6363 | (regsets_store_inferior_registers): Likewise. | |
6364 | (linux_fetch_registers, linux_store_registers): Do not use | |
6365 | use_regsets_p. | |
6366 | (initialize_low): Allocate disabled_regsets. | |
6367 | ||
e28b3332 DJ |
6368 | 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
6369 | ||
6370 | * Makefile.in (LIBOBJS): New. | |
6371 | (OBS): Use LIBOBJS. | |
6372 | (memmem.o): New rule. | |
6373 | * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem. | |
6374 | * configure: Regenerated. | |
6375 | ||
4536995d UW |
6376 | 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com> |
6377 | ||
6378 | * server.c (handle_query): Never return "unsupported" for | |
6379 | qXfer:features:read queries. | |
6380 | ||
221c031f UW |
6381 | 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com> |
6382 | ||
6383 | * server.c (get_features_xml): Fix inverted condition. | |
6384 | (handle_query): Always support qXfer:feature:read. | |
6385 | ||
ccd213ac DJ |
6386 | 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com> |
6387 | ||
6388 | * server.c (wrapper_argv): New. | |
6389 | (start_inferior): Handle wrapper_argv. If set, expect an extra | |
6390 | trap. | |
6391 | (gdbserver_usage): Document --wrapper. | |
6392 | (main): Parse --wrapper. | |
6393 | ||
6fe305f7 UW |
6394 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
6395 | ||
6396 | * configure.srv [powerpc64-*-linux*]: Add all files mentioned for | |
6397 | powerpc-*-linux* to srv_regobj and reg_xmlfiles. | |
6398 | * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation. | |
6399 | (ppc_set_pc): Likewise. | |
6400 | (ppc_arch_setup): New function. | |
6401 | (ppc_fill_gregset): Call ppc_collect_ptrace_register instead | |
6402 | of collect_register. | |
889bf7c5 | 6403 | (the_low_target): Use ppc_arch_setup as arch_setup initializer. |
6fe305f7 | 6404 | |
5b0a002e UW |
6405 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
6406 | ||
6407 | * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o | |
6408 | instead of linux-ppc64-low.o. | |
6409 | * linux-ppc64-low.c: Remove file. | |
6410 | * Makefile.in (SFILES): Remove linux-ppc64-low.c. | |
6411 | (linux-ppc64-low.o): Remove rule. | |
6412 | ||
6413 | * linux-ppc-low.c (init_registers_ppc64): Add prototype. | |
6414 | (init_registers_powerpc_64): Likewise. | |
6415 | (ppc_regmap): Conditionally define depending on __powerpc64__. | |
6416 | (ppc_cannot_store_register): Do not special-case "fpscr" when | |
6417 | compiled on __powerpc64__. | |
6418 | (ppc_collect_ptrace_register): New function. | |
6419 | (ppc_supply_ptrace_register): New function. | |
6420 | (ppc_breakpoint): Change type to "unsigned int". | |
6421 | (ppc_breakpoint_at): Change type of "insn" to "unsigned int". | |
6422 | (the_low_target): Conditionally provide initializers for the | |
889bf7c5 | 6423 | arch_setup member depending on __powerpc64__. Install |
5b0a002e UW |
6424 | collect_ptrace_register and supply_ptrace_register members. |
6425 | ||
9b4b61c8 UW |
6426 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
6427 | ||
6428 | * regcache.h (gdbserver_xmltarget): Add extern declaration. | |
6429 | * server.c (gdbserver_xmltarget): Define. | |
6430 | (get_features_xml): Use it to replace "target.xml" and arch_string. | |
6431 | ||
6432 | * configure.srv: Remove srv_xmltarget. Add XML files that were | |
6433 | mentioned there to srv_xmlfiles instead. Remove conditional tests | |
6434 | on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set | |
6435 | srv_xmlfiles and srv_regobj to include all possible choices. | |
6436 | * configure.ac (srv_xmltarget): Remove. | |
6437 | (srv_xmlfiles): Do not add "target.xml". | |
6438 | (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove | |
6439 | checks for supplementary target information. | |
6440 | * configure: Regenerate. | |
6441 | * Makefile.in (XML_TARGET): Remove. | |
6442 | (target.xml): Remove rule. | |
6443 | (clean): Do not clean up target.xml. | |
6444 | (.PRECIOUS): Do not mention target.xml. | |
6445 | ||
6446 | * target.h (struct target_ops): Remove arch_string member. | |
6447 | * linux-low.c (linux_arch_string): Remove. | |
6448 | (linux_target_ops): Remove arch_string initializer. | |
6449 | * linux-low.h (struct linux_target_ops): Remove arch_string member. | |
6450 | * linux-i386-low.c (the_low_target): Remove arch_string initializer. | |
6451 | * linux-x86-64-low.c (the_low_target): Remove arch_string initializer. | |
6452 | * spu-low.c (spu_arch_string): Remove. | |
6453 | (spu_target_ops): Remove arch_string initializer. | |
6454 | * win32-low.c (win32_arch_string): Remove. | |
6455 | (win32_target_ops): Remove arch_string initializer. | |
6456 | * win32-low.h (struct win32_target_ops): Remove arch_string member. | |
6457 | * win32-arm-low.c (the_low_target): Remove arch_string initializer. | |
6458 | * win32-i368-low.c (the_low_target): Remove arch_string initializer. | |
6459 | ||
ee1a7ae4 UW |
6460 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
6461 | ||
6462 | * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field | |
6463 | by collect_ptrace_register and supply_ptrace_register hooks. | |
6464 | * linux-low.c (fetch_register): Use supply_ptrace_register callback | |
6465 | instead of checking for the_low_target.left_pad_xfer. | |
6466 | (usr_store_inferior_registers): Use collect_ptrace_register callback | |
6467 | instead of checking for the_low_target.left_pad_xfer. | |
6468 | ||
6469 | * linux-s390-low.c (s390_collect_ptrace_register): New function. | |
6470 | (s390_supply_ptrace_register): Likewise. | |
6471 | (s390_fill_gregset): Call s390_collect_ptrace_register. | |
6472 | (the_low_target): Update. | |
6473 | ||
6474 | * linux-ppc64-low.c (ppc_collect_ptrace_register): New function. | |
6475 | (ppc_supply_ptrace_register): Likewise. | |
6476 | (the_low_target): Update. | |
6477 | ||
6478 | * linux-i386-low.c (the_low_target): Update. | |
6479 | * linux-x86-64-low.c (the_low_target): Update. | |
6480 | ||
d61ddec4 UW |
6481 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
6482 | ||
6483 | * configure.srv [s390x-*-linux*]: Set srv_regobj to include both | |
6484 | reg-s390.o and reg-s390x.o. | |
6485 | ||
6486 | * linux-low.c (new_inferior): New global variable. | |
6487 | (linux_create_inferior, linux_attach): Set it. | |
6488 | (linux_wait_for_process): Call the_low_target.arch_setup after the | |
6489 | target has stopped for the first time. | |
6490 | (initialize_low): Do not call the_low_target.arch_setup. | |
6491 | ||
6492 | * linux-s390-low.c (s390_get_pc): Support bi-arch operation. | |
6493 | (s390_set_pc): Likewise. | |
6494 | (s390_arch_setup): New function. | |
6495 | (the_low_target): Use s390_arch_setup as arch_setup routine. | |
6496 | ||
6497 | * regcache.c (realloc_register_cache): New function. | |
6498 | (set_register_cache): Call it for each existing regcache. | |
6499 | ||
d05b4ac3 UW |
6500 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
6501 | ||
6502 | * server.h (init_registers): Remove prototype. | |
6503 | ||
6504 | * linux-low.h (struct linux_target_ops): Add arch_setup field. | |
6505 | * linux-low.c (initialize_low): Call the_low_target.arch_setup () | |
6506 | instead of init_registers (). | |
6507 | * linux-arm-low.c (init_registers_arm): Add prototype. | |
6508 | (init_registers_arm_with_iwmmxt): Likewise. | |
6509 | (the_low_target): Add initializer for arch_setup field. | |
6510 | * linux-cris-low.c (init_registers_cris): Add prototype. | |
6511 | (the_low_target): Add initializer for arch_setup field. | |
6512 | * linux-crisv32-low.c (init_registers_crisv32): Add prototype. | |
6513 | (the_low_target): Add initializer for arch_setup field. | |
6514 | * linux-i386-low.c (init_registers_i386_linux): Add prototype. | |
6515 | (the_low_target): Add initializer for arch_setup field. | |
6516 | * linux-ia64-low.c (init_registers_ia64): Add prototype. | |
6517 | (the_low_target): Add initializer for arch_setup field. | |
6518 | * linux-m32r-low.c (init_registers_m32r): Add prototype. | |
6519 | (the_low_target): Add initializer for arch_setup field. | |
6520 | * linux-m68k-low.c (init_registers_m68k): Add prototype. | |
6521 | (the_low_target): Add initializer for arch_setup field. | |
6522 | * linux-mips-low.c (init_registers_mips_linux): Add prototype. | |
6523 | (init_registers_mips64_linux): Likewise. | |
6524 | (the_low_target): Add initializer for arch_setup field. | |
6525 | * linux-ppc-low.c (init_registers_ppc): Add prototype. | |
6526 | (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise. | |
6527 | (the_low_target): Add initializer for arch_setup field. | |
6528 | * linux-ppc64-low.c (init_registers_ppc64): Add prototype. | |
6529 | (init_registers_powerpc_64): Likewise. | |
6530 | (the_low_target): Add initializer for arch_setup field. | |
6531 | * linux-s390-low.c (init_registers_s390): Add prototype. | |
6532 | (init_registers_s390x): Likewise. | |
6533 | (the_low_target): Add initializer for arch_setup field. | |
6534 | * linux-sh-low.c (init_registers_sh): Add prototype. | |
6535 | (the_low_target): Add initializer for arch_setup field. | |
6536 | * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype. | |
6537 | (the_low_target): Add initializer for arch_setup field. | |
6538 | * linux-xtensa-low.c (init_registers_xtensa): Add prototype. | |
6539 | (the_low_target): Add initializer for arch_setup field. | |
6540 | ||
6541 | * win32-low.h (struct win32_target_ops): Add arch_setup field. | |
6542 | * win32-low.c (initialize_low): Call the_low_target.arch_setup () | |
6543 | instead of init_registers (). | |
6544 | * win32-arm-low.c (init_registers_arm): Add prototype. | |
6545 | (the_low_target): Add initializer for arch_setup field. | |
6546 | * win32-i386-low.c (init_registers_i386): Add prototype. | |
6547 | (the_low_target): Add initializer for arch_setup field. | |
6548 | ||
6549 | * spu-low.c (init_registers_spu): Add prototype. | |
6550 | (initialize_low): Call initialie_registers_spu () instead of | |
6551 | initialize_registers (). | |
6552 | ||
fd96d250 PA |
6553 | 2008-02-19 Pedro Alves <pedro@codesourcery.com> |
6554 | ||
6555 | * server.c (handle_v_requests): When handling the vRun and vAttach | |
6556 | packets, if already debugging a process, don't kill it. Return an | |
6557 | error instead. | |
6558 | ||
d41b6bb4 DJ |
6559 | 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com> |
6560 | ||
6561 | * server.c (handle_query): Correct length check. | |
6562 | ||
5ac588cf PA |
6563 | 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt> |
6564 | ||
6565 | * win32-low.c (do_initial_child_stuff): Add process handle | |
6566 | parameter. Set current_process_handle and current_process_id from the | |
6567 | parameters. Clear globals. | |
6568 | (win32_create_inferior): Don't set current_process_handle and | |
6569 | current_process_id here. Instead pass them on the call to | |
6570 | do_initial_child_stuff. | |
6571 | (win32_attach): Likewise. | |
6572 | (win32_clear_inferiors): New. | |
6573 | (win32_kill): Don't close the current process handle or the | |
6574 | current thread handle here. Instead call win32_clear_inferiors. | |
6575 | (win32_detach): Don't open a new handle to the process. Call | |
6576 | win32_clear_inferiors. | |
6577 | (win32_join): Don't rely on current_process_handle; open a new | |
6578 | handle using the process id. | |
6579 | (win32_wait): Call win32_clear_inferiors when the inferior process | |
6580 | has exited. | |
6581 | ||
ecd7ecbc DJ |
6582 | 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com> |
6583 | ||
6584 | * server.c (monitor_show_help): Add "exit". | |
6585 | ||
1525d545 MG |
6586 | 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com> |
6587 | ||
ecd7ecbc | 6588 | * Makefile.in (SFILES): Add linux-xtensa-low.c. |
1525d545 MG |
6589 | (clean): Add reg-xtensa.c. |
6590 | (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies. | |
ecd7ecbc DJ |
6591 | * configure.srv (xtensa*-*-linux*) New target. |
6592 | * linux-xtensa-low.c: New. | |
6593 | * xtensa-xtregs.c: New. | |
1525d545 | 6594 | |
59a016f0 PA |
6595 | 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt> |
6596 | ||
6597 | * hostio.c: Don't include errno.h. | |
6598 | (errno_to_fileio_errno): Move to hostio-errno. | |
6599 | * hostio.c: (hostio_error): Remove the error parameter. Defer the | |
6600 | error number outputting to the target->hostio_last_error callback. | |
6601 | (hostio_packet_error): Use FILEIO_EINVAL directly. | |
6602 | (handle_open, handle_pread, hostio_error, handle_unlink): Update | |
6603 | calls to hostio_error. | |
6604 | * hostio-errno.c: New. | |
6605 | * server.h (hostio_last_error_from_errno): Declare. | |
6606 | * target.h (target_ops): Add hostio_last_error member. | |
6607 | * linux-low.c (linux_target_op): Register hostio_last_error_from_errno | |
6608 | as hostio_last_error handler. | |
889bf7c5 | 6609 | * spu-low.c (spu_target_ops): Likewise. |
59a016f0 PA |
6610 | * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error) |
6611 | (wince_hostio_last_error): New functions. | |
6612 | (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error | |
6613 | as hostio_last_error handler. | |
6614 | (win32_target_ops) [!_WIN32_WCE]: Register | |
6615 | hostio_last_error_from_errno as hostio_last_error handler. | |
6616 | * Makefile.in (SFILES): Add hostio.c and hostio-errno.c. | |
6617 | (hostio-errno.o): New rule. | |
6618 | * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs. | |
6619 | * configure.srv (srv_hostio_err_objs): New variable. Default to | |
6620 | hostio-errno.o. | |
6621 | (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "". | |
6622 | * configure: Regenerate. | |
6623 | ||
2d717e4f DJ |
6624 | 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
6625 | ||
6626 | * linux-low.c (linux_attach_lwp): Do not _exit after errors. | |
6627 | (linux_kill, linux_detach): Clean up the process list. | |
6628 | * remote-utils.c (remote_open): Improve port number parsing. | |
6629 | (putpkt_binary, input_interrupt): Only send interrupts if the target | |
6630 | is running. | |
6631 | * server.c (extended_protocol): Make static. | |
6632 | (attached): Define earlier. | |
6633 | (exit_requested, response_needed, program_argv): New variables. | |
6634 | (target_running): New. | |
6635 | (start_inferior): Clear attached here. | |
6636 | (attach_inferior): Set attached here. | |
6637 | (require_running): Define. | |
6638 | (handle_query): Use require_running and target_running. Implement | |
6639 | "monitor exit". | |
6640 | (handle_v_attach, handle_v_run): New. | |
6641 | (handle_v_requests): Use require_running. Handle vAttach and vRun. | |
6642 | (gdbserver_usage): Update. | |
6643 | (main): Redo argument parsing. Handle --debug and --multi. Handle | |
6644 | --attach along with other options or after the port. Save | |
6645 | program_argv. Support no initial program. Resynchronize | |
6646 | communication with GDB after an error. Handle "monitor exit". | |
6647 | Use require_running and target_running. Always allow the extended | |
6648 | protocol. Do not error out for Hc0 or Hc-1. Do not automatically | |
6649 | restart in extended mode. | |
6650 | * README: Refer to the GDB manual. Update --attach usage. | |
6651 | ||
7407e2de AS |
6652 | 2007-12-20 Andreas Schwab <schwab@suse.de> |
6653 | ||
6654 | * linux-low.c (STACK_SIZE): Define. | |
6655 | (linux_tracefork_child): Use it. Use __clone2 on ia64. | |
6656 | (linux_test_for_tracefork): Likewise. | |
6657 | ||
b65d95c5 DJ |
6658 | 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com> |
6659 | ||
6660 | * linux-low.c (linux_wait_for_event): Update messages. Do not | |
6661 | reinsert auto-delete breakpoints. | |
6662 | * mem-break.c (struct breakpoint): Change return type of handler to | |
6663 | int. | |
6664 | (set_breakpoint_at): Update handler type. | |
6665 | (reinsert_breakpoint_handler): Return 1 instead of calling | |
6666 | delete_breakpoint. | |
6667 | (reinsert_breakpoint_by_bp): Check for the original breakpoint before | |
6668 | setting a new one. | |
6669 | (check_breakpoints): Delete auto-delete breakpoints and return 2. | |
6670 | * mem-break.h (set_breakpoint_at): Update handler type. | |
6671 | * thread-db.c (thread_db_create_event, thread_db_create_event): Update. | |
6672 | * win32-low.c (auto_delete_breakpoint): New. | |
6673 | (get_child_debug_event): Use it. | |
6674 | ||
4e799345 DJ |
6675 | 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com> |
6676 | ||
6677 | * configure.ac: Check for pread and pwrite. | |
6678 | * hostio.c (handle_pread): Fall back to lseek and read. | |
6679 | (handle_pwrite): Fall back to lseek and write. | |
6680 | * config.in, configure: Regenerated. | |
6681 | ||
27524b67 DJ |
6682 | 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com> |
6683 | ||
6684 | * server.c (myresume): Add own_buf argument. | |
6685 | (main): Update calls. | |
6686 | ||
a20d5e98 DJ |
6687 | 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com> |
6688 | ||
6689 | * linux-low.c (linux_wait, linux_resume): Do not handle async I/O. | |
6690 | * remote-utils.c (remote_open): Do not call disable_async_io. | |
6691 | (block_async_io): Delete. | |
6692 | (unblock_async_io): Make static. | |
6693 | (initialize_async_io): New. | |
6694 | * server.c (handle_v_cont): Handle async I/O here. | |
6695 | (myresume): Likewise. Move other common resume tasks here... | |
6696 | (main): ... from here. Call initialize_async_io. Disable async | |
6697 | I/O before the main loop. | |
6698 | * server.h (initialize_async_io): Declare. | |
6699 | (block_async_io, unblock_async_io): Delete prototypes. | |
6700 | * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here. | |
6701 | ||
b79d787e DJ |
6702 | 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au> |
6703 | ||
6704 | * remote-utils.c (readchar): Allow binary data in received messages. | |
6705 | ||
d97903b2 PA |
6706 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
6707 | ||
6708 | * win32-low.c (attaching): New global. | |
6709 | (win32_create_inferior): Clear the `attaching' global. | |
6710 | (win32_attach): Set the `attaching' global. | |
6711 | (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when | |
6712 | attaching. Only set a breakpoint at the entry point if not | |
6713 | attaching. | |
6714 | ||
311de423 PA |
6715 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
6716 | ||
6717 | * server.c (main): Don't report dll events on the initial | |
6718 | connection on attaches. | |
6719 | ||
6c2d16d2 PA |
6720 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
6721 | ||
6722 | * server.c (main): Relax numerical bases supported for the pid of | |
6723 | the --attach command line argument. | |
6724 | ||
5ca906e6 PA |
6725 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
6726 | ||
6727 | * win32-low.c (win32_attach): Call OpenProcess before | |
6728 | DebugActiveProcess, not after. Add last error output to error | |
6729 | call. | |
6730 | ||
9c6c8194 PA |
6731 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
6732 | ||
6733 | * win32-low.c (win32_get_thread_context) | |
6734 | (win32_set_thread_context): New functions. | |
6735 | (thread_rec): Use win32_get_thread_context. | |
6736 | (continue_one_thread, win32_resume): Use win32_set_thread_context. | |
6737 | * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context' | |
6738 | field. | |
6739 | ||
4d5d1aaa PA |
6740 | 2007-12-03 Leo Zayas |
6741 | Pedro Alves <pedro_alves@portugalmail.pt> | |
6742 | ||
6743 | * win32-low.c (soft_interrupt_requested, faked_breakpoint): New | |
6744 | global variables. | |
6745 | (child_add_thread): Minor cleanup. | |
6746 | (child_continue): Resume artificially suspended threads before | |
6747 | calling ContinueDebugEvent. | |
6748 | (suspend_one_thread): New. | |
6749 | (fake_breakpoint_event): New. | |
6750 | (get_child_debug_event): Change return type to int. Check here if | |
6751 | gdb sent an interrupt request. If a soft interrupt was requested, | |
6752 | fake a breakpoint event. Return 0 if there is no event to handle, | |
6753 | and 1 otherwise. | |
6754 | (win32_wait): Don't check here if gdb sent an interrupt request. | |
6755 | Ensure there is a valid event to handle. | |
6756 | (win32_request_interrupt): Add soft interruption method as last | |
6757 | resort. | |
6758 | ||
c436e841 PA |
6759 | 2007-12-03 Leo Zayas |
6760 | Pedro Alves <pedro_alves@portugalmail.pt> | |
6761 | ||
6762 | * win32-low.h (win32_thread_info): Add descriptions to the | |
6763 | structure members. Replace `suspend_count' counter by a | |
6764 | `suspended' flag. | |
6765 | * win32-low.c (thread_rec): Update condition of when to get the | |
6766 | context from the inferior. Rely on ContextFlags being set if it | |
6767 | has already been retrieved. Only suspend the inferior thread if | |
6768 | we haven't already. Warn if that fails. | |
6769 | (continue_one_thread): s/suspend_count/suspended/. Only call | |
6770 | ResumeThread once. Warn if that fails. | |
6771 | ||
e7b5fa67 PA |
6772 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
6773 | ||
6774 | * win32-low.c (win32_wait): Don't read from the inferior when it | |
6775 | has already exited. | |
6776 | ||
a385171d PA |
6777 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
6778 | ||
6779 | * Makefile.in (win32_low_h): New variable. | |
6780 | (win32-low.o): Add dependency on $(win32_low_h). | |
6781 | (win32-arm-low.o, win32-i386-low.o): New rules. | |
6782 | ||
f80c84b3 DJ |
6783 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
6784 | ||
6785 | * hostio.c: Correct copyright year. | |
6786 | ||
a6b151f1 DJ |
6787 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
6788 | ||
6789 | * Makefile.in (OBS): Add hostio.o. | |
6790 | (hostio.o): New rule. | |
6791 | * server.h (handle_vFile): Declare. | |
6792 | * hostio.c: New file. | |
6793 | * server.c (handle_v_requests): Take packet_len and new_packet_len | |
6794 | for binary packets. Call handle_vFile. | |
6795 | (main): Update call to handle_v_requests. | |
6796 | ||
f9387fc3 DJ |
6797 | 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com> |
6798 | ||
6799 | * linux-low.c: Include <sched.h>. | |
6800 | ||
51c2684e DJ |
6801 | 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com> |
6802 | ||
6803 | * linux-low.c (linux_tracefork_grandchild): New. | |
6804 | (linux_tracefork_child): Use clone. | |
6805 | (linux_test_for_tracefork): Use clone; allocate and free a stack. | |
6806 | ||
75f83163 JB |
6807 | 2007-10-31 Joel Brobecker <brobecker@adacore.com> |
6808 | ||
6809 | * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh. | |
6810 | ||
da5898ce DJ |
6811 | 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com> |
6812 | ||
6813 | * linux-low.c (handle_extended_wait): Handle unexpected signals. | |
6814 | ||
24a09b5f DJ |
6815 | 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com> |
6816 | ||
6817 | * inferiors.c (change_inferior_id): Delete. | |
6818 | (add_pid_to_list, pull_pid_from_list): New. | |
6819 | * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG) | |
6820 | (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK) | |
6821 | (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE) | |
6822 | (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK) | |
6823 | (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE) | |
6824 | (PTRACE_EVENT_EXIT, __WALL): Provide default definitions. | |
6825 | (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables. | |
6826 | (using_threads): Always set to 1. | |
6827 | (handle_extended_wait): New. | |
6828 | (add_process): Do not set TID. | |
6829 | (linux_create_inferior): Set must_set_ptrace_flags. | |
6830 | (linux_attach_lwp): Remove TID argument. Do not check using_threads. | |
6831 | Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers. | |
6832 | (linux_thread_alive): Rename TID argument to LWPID. | |
6833 | (linux_wait_for_process): Handle unknown processes. Do not use TID. | |
6834 | (linux_wait_for_event): Do not use TID or check using_threads. Update | |
6835 | call to dead_thread_notify. Call handle_extended_wait. | |
6836 | (linux_create_inferior): Use PTRACE_SETOPTIONS. | |
6837 | (send_sigstop): Delete sigstop_sent. | |
6838 | (wait_for_sigstop): Avoid TID. | |
6839 | (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid) | |
6840 | (linux_test_for_tracefork): New. | |
6841 | (linux_lookup_signals): Use thread_db_active and | |
6842 | linux_supports_tracefork_flag. | |
6843 | (initialize_low): Use thread_db_active and linux_test_for_tracefork. | |
6844 | * linux-low.h (get_process_thread): Avoid TID. | |
6845 | (struct process_ifo): Move thread_known and tid to the end. Remove | |
6846 | sigstop_sent. | |
6847 | (linux_attach_lwp, thread_db_init): Update prototypes. | |
6848 | * server.h (change_inferior_id): Delete prototype. | |
6849 | (add_pid_to_list, pull_pid_from_list): New prototypes. | |
6850 | * thread-db.c (thread_db_use_events): New. | |
6851 | (find_first_thread): Rename to... | |
6852 | (find_one_thread): ...this. Update callers and messages. Do not | |
6853 | call fatal. Check thread_db_use_events. Do not call | |
6854 | change_inferior_id or new_thread_notify. | |
6855 | (maybe_attach_thread): Update. Do not call new_thread_notify. | |
6856 | (thread_db_init): Set thread_db_use_events. Check use_events. | |
6857 | * utils.c (fatal, warning): Correct message prefix. | |
6858 | ||
30ed0a8f DJ |
6859 | 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com> |
6860 | ||
6861 | * Makefile.in (clean): Remove new files. | |
6862 | (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c) | |
6863 | (powerpc-64.o, powerpc-64.c): New rules. | |
6864 | * configure.srv: Use alternate register sets for powerpc64-*-linux* | |
6865 | with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux* | |
6866 | with SPE. | |
6867 | * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for | |
6868 | SPE targets. | |
6869 | (ppc_cannot_store_register): Do not check for FPSCR for SPE targets. | |
6870 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset) | |
6871 | (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS) | |
6872 | (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New. | |
6873 | (target_regsets): Add AltiVec and SPE register sets. | |
6874 | * configure.ac: Check for AltiVec and SPE. | |
6875 | * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS) | |
6876 | (ppc_fill_vrregset, ppc_store_vrregset): New. | |
6877 | (target_regsets): Add AltiVec register set. | |
6878 | * configure: Regenerated. | |
6879 | ||
fd462a61 DJ |
6880 | 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com> |
6881 | ||
6882 | * linux-low.c (O_LARGEFILE): Define. | |
6883 | (linux_read_memory): Use /proc/PID/mem. | |
6884 | * configure.ac: Use AC_GNU_SOURCE. Check for pread64. | |
6885 | * configure, config.in: Regenerated. | |
6886 | ||
69f223ed DJ |
6887 | 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
6888 | ||
6889 | * linux-low.c (linux_wait_for_event): Do not pass signals while | |
6890 | single-stepping. | |
6891 | ||
aec18585 PA |
6892 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
6893 | ||
6894 | * win32-low.c (create_process): New. | |
6895 | (win32_create_inferior): Use create_process instead of | |
6896 | CreateProcess. If create_process failed retry appending an ".exe" | |
6897 | suffix. Store the GetLastError result immediatelly after | |
6898 | create_process calls and use it on the call to error. | |
6899 | ||
34d86ddd PA |
6900 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
6901 | ||
6902 | * win32-low.c (handle_load_dll): Don't use toolhelp when waiting. | |
6903 | ||
5a0e3bd0 JB |
6904 | 2007-08-23 Joel Brobecker <brobecker@adacore.com> |
6905 | ||
6906 | * configure.ac: Switch license to GPLv3. | |
6907 | ||
f88c79e6 MS |
6908 | 2007-08-01 Michael Snyder <msnyder@access-company.com> |
6909 | ||
6910 | * remote-utils.c (putpkt_binary): Memory leak, free buf2. | |
6911 | ||
6b3d9b83 PA |
6912 | 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt> |
6913 | ||
6914 | * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New | |
6915 | typedef. | |
6916 | (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var. | |
6917 | (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get | |
6918 | CloseToolhelp32Snapshot. | |
6919 | (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with | |
6920 | CloseToolhelp32Snapshot. | |
6921 | ||
c588c53c MS |
6922 | 2007-07-27 Michael Snyder <michael.snyder@access-company.com> |
6923 | ||
6924 | * server.c (main): Check for inferior exit before main loop. | |
6925 | ||
aa0403d9 PA |
6926 | 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt> |
6927 | ||
6928 | * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc | |
6929 | instead of on tmp_desc. | |
6930 | ||
255e7678 DJ |
6931 | 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt> |
6932 | Daniel Jacobowitz <dan@codesourcery.com> | |
6933 | ||
6934 | * inferiors.c (all_dlls, dlls_changed, get_dll): New. | |
6935 | (add_thread): Minor cleanups. | |
6936 | (clear_inferiors): Move lower in the file. Clear the DLL | |
6937 | list. | |
6938 | (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New. | |
6939 | * remote-utils.c (prepare_resume_reply): Check dlls_changed. | |
6940 | (xml_escape_text): New. | |
6941 | * server.c (handle_query): Handle qXfer:libraries:read. Report it | |
6942 | for qSupported. | |
6943 | (handle_v_cont): Report errors. | |
6944 | (gdbserver_version): Update. | |
6945 | (main): Correct size of own_buf. Do not report initial DLL events. | |
6946 | * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll) | |
6947 | (unloaded_dll, xml_escape_text): New. | |
6948 | * win32-low.c (enum target_waitkind): Update comments. | |
6949 | (win32_add_one_solib, get_image_name, winapi_EnumProcessModules) | |
6950 | (winapi_GetModuleInformation, winapi_GetModuleFileNameExA) | |
6951 | (win32_EnumProcessModules, win32_GetModuleInformation) | |
6952 | (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name) | |
6953 | (winapi_CreateToolhelp32Snapshot, winapi_Module32First) | |
6954 | (winapi_Module32Next, win32_CreateToolhelp32Snapshot) | |
6955 | (win32_Module32First, win32_Module32Next, load_toolhelp) | |
6956 | (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New. | |
6957 | (get_child_debug_event): Handle DLL events. | |
6958 | (win32_wait): Likewise. | |
6959 | ||
0d37add9 DJ |
6960 | 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
6961 | ||
6962 | * configure.srv: Set srv_linux_regsets for sh*-*-linux*. | |
6963 | * linux-sh-low.c (sh_fill_gregset, target_regsets): New. | |
6964 | ||
45e2715e PA |
6965 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
6966 | ||
6967 | * win32-low.c (handle_output_debug_string): Ignore event if not | |
6968 | waiting. | |
6969 | ||
c5674cf1 PA |
6970 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
6971 | ||
6972 | * win32-arm-low.c (arm_wince_breakpoint): Fix typo. | |
6973 | ||
2bbe3cc1 DJ |
6974 | 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com> |
6975 | ||
6976 | * remote-utils.c (look_up_one_symbol): Handle 'm' packets. | |
6977 | ||
ae13219e DJ |
6978 | 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com> |
6979 | ||
6980 | * inferiors.c (change_inferior_id): Add comment. | |
6981 | * linux-low.c (check_removed_breakpoint): Add an early | |
6982 | prototype. Improve debug output. | |
6983 | (linux_attach): Doc update. | |
6984 | (linux_detach_one_process, linux_detach): Clean up before releasing | |
6985 | each process. | |
6986 | (send_sigstop, wait_for_sigstop): Improve comments and debug output. | |
6987 | * linux-low.h (struct process_info): Doc improvement. | |
6988 | * mem-break.c (delete_all_breakpoints): New. | |
6989 | * mem-break.h (delete_all_breakpoints): New prototype. | |
6990 | * thread-db.c (find_first_thread): New. | |
6991 | (thread_db_create_event): Call it instead of | |
6992 | thread_db_find_new_threads. Clean up unused variables. | |
6993 | (maybe_attach_thread): Remove first thread handling. | |
6994 | (thread_db_find_new_threads): Use find_first_thread. | |
6995 | (thread_db_get_tls_address): Likewise. | |
6996 | ||
4105de34 DJ |
6997 | 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com> |
6998 | ||
6999 | * thread-db.c (thread_db_find_new_threads): Add prototype. | |
7000 | (thread_db_create_event): Check for the main thread before adding | |
7001 | a new thread. | |
7002 | (maybe_attach_thread): Only enable event reporting if TID == 0. | |
7003 | (thread_db_get_tls_address): Check for new threads. | |
7004 | ||
2b876972 DJ |
7005 | 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com> |
7006 | ||
7007 | * linux-low.c (linux_create_inferior): Try execv before execvp. | |
7008 | * spu-low.c (spu_create_inferior): Likewise. | |
7009 | ||
7a245884 DJ |
7010 | 2007-06-13 Mike Frysinger <vapier@gentoo.org> |
7011 | ||
7012 | * linux-low.c (linux_create_inferior): Change execv to execvp. | |
7013 | * spu-low.c (spu_create_inferior): Likewies. | |
7014 | ||
117ce543 DJ |
7015 | 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com> |
7016 | ||
7017 | * Makefile.in (clean): Clean new files instead of deleted ones. | |
7018 | (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete. | |
7019 | (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New | |
7020 | rules. | |
7021 | * configure.srv: Specify XML files and new regformats for MIPS and | |
7022 | MIPS64 GNU/Linux. | |
7023 | * linux-mips-low.c (mips_num_regs): Set to only used registers. | |
7024 | (mips_regmap): Do not fetch $0. Remove unused registers. Add | |
7025 | an entry for the restart register. | |
7026 | (mips_cannot_fetch_register, mips_cannot_store_register) | |
7027 | (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update | |
7028 | register names to match the XML descriptions. | |
7029 | (mips_fill_gregset, mips_store_gregset): Likewise. Handle the | |
7030 | restart register instead of $0. | |
7031 | ||
0e7f50da UW |
7032 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
7033 | Markus Deuling <deuling@de.ibm.com> | |
7034 | ||
7035 | * remote-utils.c (decode_xfer_write): New function. | |
7036 | * server.h (decode_xfer_write): Add prototype. | |
7037 | * server.c (handle_query): Add PACKET_LEN argument. Support | |
7038 | qXfer:spu:read and qXfer:spu:write packets. | |
7039 | (main): Pass packet_len to handle_query. | |
7040 | * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu. | |
7041 | * target.h (target_ops): Add qxfer_spu. | |
7042 | ||
374c1d38 UW |
7043 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
7044 | ||
7045 | * spu-low.c (spu_proc_xfer_spu): Do not return failure when | |
7046 | accessing non-seekable spufs files. | |
7047 | ||
bb63802a UW |
7048 | 2007-05-16 Markus Deuling <deuling@de.ibm.com> |
7049 | ||
889bf7c5 | 7050 | * server.c (handle_query): Add reply for qC packet. |
bb63802a | 7051 | |
7390519e PA |
7052 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7053 | Leo Zayas <lerele@champenstudios@com> | |
7054 | ||
7055 | * server.h (check_remote_input_interrupt_request): New function. | |
7056 | * remote_utils.c (INVALID_DESCRIPTOR): New define. | |
7057 | (remote_desc): Initialize with INVALID_DESCRIPTOR. | |
7058 | (input_interrupt): Expose on USE_WIN32API too. Fix whitespace. | |
7059 | (check_remote_input_interrupt_request): New function. | |
7060 | * server.h (check_remote_input_interrupt_request): Declare. | |
3ecf0694 | 7061 | * win32-low.c (winapi_DebugBreakProcess, |
7390519e PA |
7062 | winapi_GenerateConsoleCtrlEvent): New typedefs. |
7063 | (get_child_debug_event): Lower Win32 debug event polling from 1 sec | |
7064 | to 250 ms. | |
7065 | (win32_wait): Check for remote interrupt request | |
7066 | with check_remote_input_interrupt_request. | |
7067 | (win32_request_interrupt): New function. | |
7068 | (win32_target_op): Set request_interrupt to win32_request_interrupt. | |
7069 | ||
34b34921 PA |
7070 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7071 | ||
7072 | * win32-low.c (debug_registers_changed, | |
7073 | debug_registers_used, CONTEXT_EXTENDED_REGISTERS, | |
7074 | CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS, | |
7075 | CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete. | |
7076 | (thread_rec): Get context using the low target. | |
7077 | (child_add_thread): Call thread_added on the low target, | |
7078 | which does the same thing. | |
7079 | (regptr): Delete. | |
7080 | (do_initial_child_stuff): Remove debug registers references. | |
7081 | Set context using the low target. Resume threads after | |
7082 | setting the contexts. | |
7083 | (child_continue): Remove dead variable. Remove debug | |
7084 | registers references. | |
7085 | (child_fetch_inferior_registers): Go through the low target. | |
7086 | (do_child_store_inferior_registers): Remove. | |
7087 | (child_store_inferior_registers): Go through the low target. | |
7088 | (win32_resume): Remove debug registers references. | |
7089 | Set context using the low target. | |
7090 | (handle_exception): Change return type to void. Don't record | |
7091 | context here. Set status to TARGET_WAITKIND_SPURIOUS on a | |
7092 | first chance exception. | |
889bf7c5 | 7093 | (get_child_debug_event): Change return type to void. Remove |
34b34921 PA |
7094 | goto loop. Always return after waiting for debug event. |
7095 | (win32_wait): Convert to switch statement. Handle spurious | |
7096 | events. | |
7097 | ||
7098 | * win32-i386-low.c (debug_registers_changed, | |
7099 | debug_registers_used): New. | |
7100 | (initial_stuff): Rename to ... | |
7101 | (i386_initial_stuff): ... this. Clear debug registers | |
7102 | state variables. | |
7103 | (store_debug_registers): Delete. | |
7104 | (i386_get_thread_context): New. | |
7105 | (load_debug_registers): Delete. | |
7106 | (i386_set_thread_context): New. | |
7107 | (i386_thread_added): New. | |
7108 | (single_step): Rename to ... | |
7109 | (i386_single_step): ... this. | |
7110 | (do_fetch_inferior_registers): Rename to ... | |
7111 | (i386_fetch_inferior_register): ... this. | |
7112 | (i386_store_inferior_register): New. | |
7113 | (the_low_target): Adapt to new interface. | |
7114 | ||
7115 | * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define. | |
7116 | (arm_get_thread_context): New. | |
7117 | (arm_set_thread_context): New. | |
7118 | (regptr): New. | |
7119 | (do_fetch_inferior_registers): Rename to ... | |
7120 | (arm_fetch_inferior_register): ... this. | |
7121 | (arm_store_inferior_register): New. | |
7122 | (arm_wince_breakpoint): Reimplement as unsigned long. | |
7123 | (arm_wince_breakpoint_len): Define. | |
7124 | (the_low_target): Adapt to new interface. | |
7125 | ||
7126 | * win32-low.h (target_ops): Remove regmap, store_debug_registers and | |
7127 | load_debug_registers. Add get_thread_context, set_thread_context, | |
7128 | thread_added and store_inferior_register. Rename | |
7129 | fetch_inferior_registers to fetch_inferior_register. | |
7130 | (regptr): Remove declaration. | |
7131 | ||
dd6953e1 PA |
7132 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7133 | ||
7134 | * linux-low.c (linux_detach): Change return type to int. Return 0. | |
7135 | * spu-low.c (spu_detach): Likewise. | |
7136 | ||
444d6139 PA |
7137 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7138 | ||
7139 | * target.h (target_ops): Change return type of detach to int. | |
7140 | Add join. | |
7141 | (join_inferior): New. | |
7142 | * server.c (main): Don't skip detach support on mingw32. | |
7143 | If the inferior doesn't support detaching return error. | |
7144 | Call join_inferior instead of using waitpid. | |
7145 | * linux-low.c (linux_join): New. | |
7146 | (linux_target_op): Add linux_join. | |
7147 | * spu-low.c (spu_join): New. | |
7148 | (spu_target_ops): Add spu_join. | |
7149 | * win32-low.c (win32_detach): Adapt to new interface. | |
7150 | Reopen current_process_handle before detaching. Issue a child | |
7151 | resume before detaching. | |
7152 | (win32_join): New. | |
7153 | (win32_target_op): Add win32_join. | |
7154 | ||
1d5315fe PA |
7155 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7156 | ||
7157 | * win32-low.c (win32-attach): Fix return value. | |
7158 | * target.h (target_ops): Describe ATTACH return values. | |
7159 | ||
bf914831 PA |
7160 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7161 | ||
7162 | * win32-low.c (GETPROCADDRESS): Define. | |
7163 | (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer. | |
7164 | (winapi_DebugSetProcessKillOnExit): Likewise. | |
7165 | (win32_create_inferior): Force usage of ansi CreateProcessA. | |
7166 | (win32_attach): Use GETPROCADDRESS. | |
7167 | (win32_detach): Likewise. | |
7168 | ||
f72f3e60 PA |
7169 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
7170 | ||
7171 | * win32-low.c (win32_wait): Don't use WSTOPSIG. | |
7172 | ||
ed50f18f PA |
7173 | 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt> |
7174 | ||
7175 | * win32-low.c: Commit leftover changes from 2007-03-29. | |
7176 | ||
0c2ead7e DJ |
7177 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
7178 | ||
7179 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit | |
7180 | fields short instead of int. Add explicit padding. | |
7181 | (i387_cache_to_fsave): Remove unnecessary casts. | |
7182 | (i387_fsave_to_cache): Doc fix. | |
7183 | (i387_cache_to_fxsave): Remove unnecessary casts and masking. | |
7184 | ||
73725ff3 DJ |
7185 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
7186 | ||
7187 | * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use. | |
7188 | (i387_fxsave_to_cache): Check fp->ftag while building ftag value. | |
7189 | ||
d99f33d8 PA |
7190 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
7191 | ||
7192 | * configure.srv (arm*-*-mingw32ce*): Move near the other | |
7193 | arm targets. | |
7194 | ||
68070c10 PA |
7195 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
7196 | ||
2482afc6 | 7197 | * configure.ac: Add errno checking. |
68070c10 PA |
7198 | (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h, |
7199 | sys/file.h and malloc.h. | |
7200 | (AC_CHECK_DECLS): Add perror. | |
7201 | (srv_mingwce): Handle. | |
2482afc6 | 7202 | * configure.srv (i[34567]86-*-cygwin*): Add |
68070c10 PA |
7203 | win32-i386-low.o to srv_tgtobj. |
7204 | (i[34567]86-*-mingw*): Likewise. | |
7205 | (arm*-*-mingw32ce*): Add case. | |
7206 | * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, | |
7207 | HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check. | |
7208 | [__MINGW32CE__] (strerror): New function. | |
7209 | [__MINGW32CE__] (errno): Define to GetLastError. | |
7210 | [__MINGW32CE__] (COUNTOF): New macro. | |
7211 | (remote_open): Remove extra close call. | |
7212 | * mem-break.c (delete_breakpoint_at): New function. | |
7213 | * mem-break.h (delete_breakpoint_at): Declare. | |
7214 | * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, | |
7215 | HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check. | |
7216 | [USE_WIN32API] (read, write): Add char* casts. | |
7217 | * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check. | |
7218 | * server.h: Include wincecompat.h on Windows CE. | |
7219 | [HAVE_ERRNO_H]: Check. | |
7220 | (perror): Declare if not declared. | |
7221 | * utils.c: Add stdlib.h, errno.h and malloc.h includes. | |
7222 | (perror_with_name): Remove errno declaration. | |
7223 | * wincecompat.h: New. | |
7224 | * wincecompat.c: New. | |
7225 | * win32-low.h: New. | |
7226 | * win32-arm-low.c: New. | |
7227 | * win32-i386-low.c: New. | |
7228 | (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h. | |
7229 | (OUTMSG2): Make it safe. | |
7230 | (_T): New macro. | |
7231 | (COUNTOF): New macro. | |
7232 | (NUM_REGS): Get it from the low target. | |
7233 | (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT, | |
7234 | CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0. | |
7235 | (thread_rec): Let low target handle debug registers. | |
7236 | (child_add_thread): Likewise. | |
7237 | (child_init_thread_list): Likewise. | |
7238 | (continue_one_thread): Likewise. | |
7239 | (regptr): New. | |
7240 | (do_child_fetch_inferior_registers): Move to ... | |
7241 | * win32-i386-low.c: ... here, and rename to ... | |
7242 | (do_fetch_inferior_registers): ... this. | |
889bf7c5 | 7243 | * win32-low.c (child_fetch_inferior_registers): |
68070c10 PA |
7244 | Go through the low target. |
7245 | (do_child_store_inferior_registers): Use regptr. | |
7246 | (strwinerror): New function. | |
7247 | (win32_create_inferior): Handle Windows CE. | |
7248 | Use strwinerror instead of strerror on Windows error | |
7249 | codes. Add program to the error output. | |
7250 | Don't close the main thread handle on Windows CE. | |
7251 | (win32_attach): Use coredll.dll on Windows CE. | |
7252 | (win32_kill): Close current process and current | |
7253 | thread handles. | |
7254 | (win32_detach): Use coredll.dll on Windows CE. | |
7255 | (win32_resume): Let low target handle debug registers, and | |
7256 | step request. | |
7257 | (handle_exception): Add/Remove initial breakpoint. Avoid | |
7258 | non-existant WSTOPSIG on Windows CE. | |
7259 | (win32_read_inferior_memory): Cast to remove warning. | |
7260 | (win32_arch_string): Go through the low target. | |
7261 | (initialize_low): Call set_breakpoint_data with the low | |
7262 | target's breakpoint. | |
7263 | * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM, | |
7264 | FOP_REGNUM, mappings): Move to ... | |
7265 | * win32-i386-low.c: ... here. | |
7266 | * win32-low.c (win32_thread_info): Move to ... | |
7267 | * win32-low.h: ... here. | |
7268 | * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c, | |
7269 | win32-arm-low.c and wincecompat.c. | |
7270 | (all:): Add $EXEEXT. | |
7271 | (install-only:): Likewise. | |
7272 | (gdbserver:): Likewise. | |
7273 | (gdbreplay:): Likewise. | |
7274 | * config.in: Regenerate. | |
7275 | * configure: Regenerate. | |
7276 | ||
41093d81 PA |
7277 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
7278 | ||
7279 | * win32-low.c: Rename typedef thread_info to | |
7280 | win32_thread_info throughout. | |
7281 | ||
544afa54 PA |
7282 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
7283 | ||
7284 | * win32-i386-low.c: Rename to ... | |
7285 | * win32-low.c: ... this. | |
7286 | * configure.srv: Replace win32-i386-low.o with win32-low.o. | |
7287 | * Makefile.in: Likewise. | |
7288 | ||
bce7165d PA |
7289 | 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt> |
7290 | ||
7291 | * remote-utils.c (monitor_output): Constify msg parameter. | |
7292 | * server.h (monitor_output): Likewise. | |
7293 | * win32-i386-low.c (handle_output_debug_string): New. | |
7294 | (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using | |
7295 | handle_output_debug_string. | |
7296 | (get_child_debug_event): Likewise. | |
7297 | ||
506c7aa0 DJ |
7298 | 2007-03-27 Mat Hostetter <mat@lcs.mit.edu> |
7299 | ||
7300 | * server.c (main): Correct strtoul check. | |
7301 | ||
42c81e2a DJ |
7302 | 2007-03-27 Jon Ringle <jon@ringle.org> |
7303 | ||
7304 | * linux-low.c: Check __ARCH_HAS_MMU__ also. | |
7305 | ||
9453113a DJ |
7306 | 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com> |
7307 | ||
7308 | * Makefile.in: Add dummy "pdf" and "install-pdf" targets. | |
7309 | ||
64a69107 DJ |
7310 | 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com> |
7311 | ||
7312 | * terminal.h: Check HAVE_SGTTY_H. | |
7313 | ||
7314 | 2007-02-27 Mat Hostetter <mat@lcs.mit.edu> | |
6f8486da DJ |
7315 | |
7316 | * remote-utils.c (remote_open): Print out the assigned port number. | |
7317 | ||
c74d0ad8 DJ |
7318 | 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com> |
7319 | ||
7320 | * remote-utils.c (monitor_output): New function. | |
7321 | * server.c (debug_threads): Define here. | |
7322 | (monitor_show_help): New function. | |
7323 | (handle_query): Handle qRcmd. | |
7324 | (main): Do not handle 'd' packet. | |
7325 | * server.h (debug_threads, remote_debug, monitor_output): Declare. | |
7326 | * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions | |
7327 | of debug_threads. | |
7328 | ||
de7c3b4a PA |
7329 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
7330 | ||
7331 | * Makefile.in (EXEEXT): New. | |
7332 | (clean): Use $(EXEEXT). | |
7333 | ||
ef57601b PA |
7334 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
7335 | ||
7336 | * target.h (target_ops): Rename send_signal to request_interrupt, | |
7337 | and remove enum target_signal parameter. | |
7338 | * linux-low.c (linux_request_interrupt): Rename from | |
7339 | linux_send_signal, and always send SIGINT. | |
7340 | * spu-low.c (spu_request_interrupt): Rename from spu_send_signal, | |
7341 | and always send SIGINT. | |
7342 | * remote-utils.c (putpkt_binary): Call request_interrupt, instead | |
7343 | of send_signal. | |
7344 | (input_interrupt): Likewise. | |
7345 | ||
820f2bda PA |
7346 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
7347 | ||
7348 | * server.c (get_features_xml): Check if target implemented | |
7349 | arch_string. | |
7350 | * win32-i386-low.c (win32_arch_string): New. | |
7351 | (win32_target_ops): Add win32_arch_string as arch_string member. | |
7352 | ||
ab39bf24 UW |
7353 | 2007-02-22 Markus Deuling <deuling@de.ibm.com> |
7354 | ||
7355 | * spu-low.c (spu_arch_string): New. | |
7356 | (spu_target_ops): Add spu_arch_string. | |
7357 | ||
61ff6e04 DJ |
7358 | 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
7359 | ||
7360 | * remote-utils.c: Remove HAVE_TERMINAL_H check. | |
7361 | * configure.ac: Do not check for terminal.h. | |
7362 | * configure, config.in: Regenerated. | |
7363 | ||
fb1e4ffc DJ |
7364 | 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
7365 | ||
7366 | * Makefile.in (OBS): Add $(XML_BUILTIN). | |
7367 | (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New. | |
7368 | (clean): Update. | |
7369 | (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o) | |
7370 | (arm-with-iwmmxt.c): New. | |
7371 | * config.in, configure: Regenerate. | |
7372 | * configure.ac: Check for iWMMXt. Handle srv_xmltarget, | |
7373 | srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML. | |
7374 | * configure.srv: Mention srv_xmltarget and srv_xmlfiles. | |
7375 | (arm*-*-linux*): Add iWMMXt and regset support. | |
7376 | * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define. | |
7377 | (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset) | |
7378 | (arm_store_wmmxregset, target_regsets): New. | |
7379 | * server.c (get_features_xml): Take annex argument. Check builtin | |
7380 | XML documents. | |
7381 | (handle_query): Handle multiple annexes. | |
7382 | ||
0f48aa01 DJ |
7383 | 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
7384 | ||
7385 | * remote-utils.c [USE_WIN32API] (read, write): Define. | |
7386 | (putpkt_binary, input_interrupt, readchar, getpkt): Use read and | |
7387 | write. | |
7388 | ||
23181151 DJ |
7389 | 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com> |
7390 | ||
7391 | * linux-i386-low.c (the_low_target): Set arch_string. | |
7392 | * linux-x86-64-low.c (the_low_target): Likewise. | |
7393 | * linux-low.c (linux_arch_string): New. | |
7394 | (linux_target_ops): Add it. | |
7395 | * linux-low.h (struct linux_target_ops): Add arch_string. | |
7396 | * server.c (write_qxfer_response): Use const void * for DATA. | |
7397 | (get_features_xml): New. | |
7398 | (handle_query): Handle qXfer:features:read. Report it for qSupported. | |
7399 | * target.h (struct target_ops): Add arch_string method. | |
7400 | ||
9d606399 DJ |
7401 | 2007-01-03 Denis Pilat <denis.pilat@st.com> |
7402 | Daniel Jacobowitz <dan@codesourcery.com> | |
7403 | ||
7404 | * linux-low.c (linux_kill): Handle being called with no threads. | |
7405 | * win32-i386-low.c (win32_kill): Likewise. | |
7406 | (get_child_debug_event): Clear current_process_handle. | |
7407 | ||
7408 | 2006-12-30 Denis PILAT <denis.pilat@st.com> | |
8264bb58 DJ |
7409 | Daniel Jacobowitz <dan@codesourcery.com> |
7410 | ||
7411 | * remote-utils.c (remote_open): Check the type of specified | |
7412 | serial port devices before opening them. | |
7413 | * server.c (main): Kill the inferior if an error occurs during | |
7414 | the first remote_open. | |
7415 | ||
a5e13d24 DJ |
7416 | 2006-12-05 Markus Deuling <deuling@de.ibm.com> |
7417 | ||
7418 | * README: Update supported targets. | |
7419 | ||
186947f7 DJ |
7420 | 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com> |
7421 | ||
7422 | * Makefile.in (clean): Remove reg-mips64.c. | |
7423 | (reg-mips64.c, reg-mips64.o): New rules. | |
7424 | * configure.srv: Handle mips64. Include regset support for mips. | |
7425 | * linux-mips-low.c (union mips_register): New. | |
7426 | (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it. | |
7427 | (mips_breakpoint, mips_breakpoint_at): Use int. | |
7428 | (mips_collect_register, mips_supply_register) | |
7429 | (mips_collect_register_32bit, mips_supply_register_32bit) | |
7430 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) | |
7431 | (mips_store_fpregset, target_regsets): New. | |
7432 | * thread-db.c (thread_db_get_tls_address): Use uintptr_t. | |
7433 | ||
a13e2c95 UW |
7434 | 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
7435 | ||
7436 | * configure.srv: Add target "spu*-*-*". | |
7437 | * Makefile.in (clean): Remove reg-spu.c. | |
7438 | (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies. | |
7439 | * spu-low.c: New file. | |
7440 | ||
cb7283db DJ |
7441 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
7442 | ||
7443 | * configure.ac: Correct td_thr_tls_get_addr test. | |
7444 | * configure: Regenerated. | |
7445 | ||
89be2091 DJ |
7446 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
7447 | ||
7448 | * linux-low.c (linux_wait_for_event): Reformat. Use the | |
7449 | pass_signals array. | |
7450 | * remote-utils.c (decode_address_to_semicolon): New. | |
7451 | * server.c (pass_signals, handle_general_set): New. | |
7452 | (handle_query): Mention QPassSignals for qSupported. | |
7453 | (main): Call handle_general_set. | |
7454 | * server.h (pass_signals, decode_address_to_semicolon): New. | |
7455 | ||
000ef4f0 DJ |
7456 | 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com> |
7457 | ||
7458 | * server.c (handle_query): Correct error handling for read_auxv. | |
7459 | ||
b7149293 UW |
7460 | 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com> |
7461 | ||
7462 | * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets | |
7463 | and srv_linux_thread_db to yes. | |
7464 | * linux-s390-low.c (s390_fill_gregset): New function. | |
7465 | (target_regsets): Define data structure. | |
7466 | ||
dae5f5cf DJ |
7467 | 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com> |
7468 | ||
7469 | * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New. | |
7470 | * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR. | |
7471 | * config.in, configure: Regenerated. | |
7472 | * inferiors.c (gdb_id_to_thread): New function. | |
7473 | (gdb_id_to_thread_id): Use it. | |
7474 | * linux-low.c (linux_target_ops): Use thread_db_get_tls_address. | |
7475 | * linux-low.h (struct process_info): Add th member. | |
7476 | (thread_db_get_tls_address): New prototype. | |
7477 | * remote-utils.c (decode_address): Make non-static. | |
7478 | * server.c (handle_query): Handle qGetTLSAddr. | |
7479 | * server.h (gdb_id_to_thread, decode_address): New prototypes. | |
7480 | * target.h (struct target_ops): Add get_tls_address. | |
7481 | * thread-db.c (maybe_attach_thread): Save the thread handle. | |
7482 | (thread_db_get_tls_address): New. | |
7483 | ||
32ca6d61 DJ |
7484 | 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com> |
7485 | ||
7486 | * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define. | |
7487 | (linux_resume_one_process): Take a siginfo_t *. Update all | |
7488 | callers. Queue it if necessary. Use PTRACE_SETSIGINFO. | |
7489 | (struct pending_signals): Add a siginfo_t. | |
7490 | (linux_wait_for_process): Always set last_status. | |
7491 | (linux_wait_for_event): Use PTRACE_GETSIGINFO. | |
7492 | (linux_queue_one_thread): Use PTRACE_GETSIGINFO. | |
7493 | * linux-low.h (struct process_info): Add last_status. | |
7494 | ||
5ffff7c1 DJ |
7495 | 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com> |
7496 | ||
7497 | * remote-utils.c (try_rle): New function. | |
7498 | (putpkt_binary): Use it. | |
7499 | ||
8695c747 DJ |
7500 | 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com> |
7501 | ||
7502 | * Makefile.in (clean): Clean reg-x86-64-linux.c. | |
7503 | (reg-x86-64-linux.o, reg-x86-64-linux.c): New. | |
7504 | * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o. | |
7505 | * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX. | |
7506 | (x86_64_fill_gregset, x86_64_store_gregset): Skip floating | |
7507 | point registers. | |
7508 | ||
290fadea RS |
7509 | 2006-08-08 Richard Sandiford <richard@codesourcery.com> |
7510 | ||
7511 | * server.c (terminal_fd): New variable. | |
7512 | (old_foreground_pgrp): Likewise. | |
7513 | (restore_old_foreground_pgrp): New function. | |
7514 | (start_inferior): Record the terminal file descriptor in terminal_fd | |
7515 | and its original foreground group in old_foreground_pgrp. Register | |
7516 | restore_old_foreground_pgrp with atexit(). | |
7517 | ||
9f2e1e63 DJ |
7518 | 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com> |
7519 | ||
7520 | * server.c (handle_query): Correct qPart to qXfer. | |
7521 | ||
b80864fb DJ |
7522 | 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com> |
7523 | ||
7524 | * configure.ac: Check for more headers which are missing on | |
7525 | Windows. Automatically supply -lwsock32 and USE_WIN32API. | |
7526 | * configure.srv: Add Cygwin and mingw32. | |
7527 | * remote-utils.c: Don't include headers unconditionally which | |
7528 | are missing on mingw32. Include <winsock.h> for mingw32. | |
7529 | (remote_open): Adjust for mingw32 support. Flush | |
7530 | standard error after writing to it. | |
7531 | (remote_close, putpkt_binary, input_interrupt, block_async_io) | |
7532 | (unblock_async_io, enable_async_io, disable_async_io) | |
7533 | (readchar, getpkt): Update for Winsock support. | |
7534 | (prepare_resume_reply): Expect a protocol signal number. | |
7535 | * server.c: Disable <sys/wait.h> on mingw32. | |
7536 | (start_inferior): Adjust for mingw32 support. Flush | |
7537 | standard error after writing to it. | |
7538 | (attach_inferior): Likewise. Use protocol signal | |
7539 | numbers. | |
7540 | (main): Skip 'D' packet on mingw32. Use protocol signal numbers | |
7541 | and names. | |
7542 | * win32-i386-low.c: New file. | |
7543 | * Makefile.in (XM_CLIBS): Set. | |
7544 | (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS). | |
7545 | (win32-i386-low.o): New dependency rule. | |
7546 | * linux-low.c (linux_wait): Use target signal numbers. | |
7547 | * target.h (struct target_ops): Doc fix. | |
7548 | * server.h (target_signal_to_name): New prototype. | |
7549 | * gdbreplay.c: Don't include headers unconditionally which | |
7550 | are missing on mingw32. Include <winsock.h> for mingw32. | |
7551 | (remote_close, remote_open): Adjust for Winsock support. | |
7552 | * configure, config.in: Regenerated. | |
7553 | ||
0876f84a DJ |
7554 | 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
7555 | ||
7556 | * server.c (decode_xfer_read, write_qxfer_response): New. | |
7557 | (handle_query): Take a packet length argument. Handle | |
7558 | qXfer:auxv:read instead of qPart:auxv:read. Mention it in | |
7559 | the qSupported response. | |
7560 | (main): Update call to handle_query. | |
7561 | ||
01f9e8fa DJ |
7562 | 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com> |
7563 | ||
7564 | * remote-utils.c (remote_escape_output, remote_unescape_input): New. | |
7565 | (putpkt_binary): Renamed from putpkt and adjusted for binary | |
7566 | data. | |
7567 | (putpkt): New wrapper for putpkt_binary. | |
7568 | (readchar): Don't mask off the high bit. | |
7569 | (decode_X_packet): New function. | |
7570 | * server.c (main): Call putpkt_binary if a handler sets the packet | |
7571 | length. Save the length of the incoming packet. Handle 'X'. | |
7572 | * server.h (gdb_byte, remote_escape_output, decode_X_packet): New. | |
7573 | ||
be2a5f71 DJ |
7574 | 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com> |
7575 | ||
7576 | * server.c (handle_query): Handle qSupported. | |
7577 | ||
ea025f5f DJ |
7578 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
7579 | ||
7580 | * remote-utils.c (all_symbols_looked_up): New variable. | |
7581 | (look_up_one_symbol): Check it. | |
7582 | * server.h (look_up_one_symbol): New declaration. | |
7583 | * thread-db.c (thread_db_init): Set all_symbols_looked_up. | |
7584 | ||
9308fc88 DJ |
7585 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
7586 | ||
7587 | * Makefile.in (linux-arm-low.o): Update dependencies. | |
66f338c7 | 7588 | * linux-arm-low.c: Include "gdb_proc_service.h". |
9308fc88 DJ |
7589 | (PTRACE_GET_THREAD_AREA): Define. |
7590 | (ps_get_thread_area): New function. | |
7591 | ||
52fb6437 NS |
7592 | 2006-05-09 Nathan Sidwell <nathan@codesourcery.com> |
7593 | ||
7594 | * configure.srv (m68k*-*-uclinux*): New target. | |
7595 | * linux-low.c (linux_create_inferior): Use vfork on mmuless systems. | |
7596 | (linux_resume_one_process): Remove extraneous cast. | |
7597 | (linux_read_offsets): New. | |
7598 | (linux_target_op): Add linux_read_offsets on mmuless systems. | |
7599 | * server.c (handle_query): Add qOffsets logic. | |
7600 | * target.h (struct target_ops): Add read_offsets. | |
7601 | ||
21b0f40c DJ |
7602 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
7603 | ||
7604 | * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h". | |
7605 | (PTRACE_GET_THREAD_AREA): Define. | |
7606 | (ps_get_thread_area): New function. | |
7607 | * Makefile.in (linux-i386-low.o, linux-mips-low.o) | |
7608 | (linux-x86-64-low.o): Update. | |
7609 | ||
0050a760 DJ |
7610 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
7611 | ||
7612 | * configure.ac: Remove checks for prfpregset_t. | |
7613 | * gdb_proc_service.h: New file. | |
7614 | * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the | |
7615 | new "gdb_proc_service.h". | |
7616 | * proc-service.c: Likewise. | |
7617 | (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t. | |
7618 | (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument. | |
7619 | * Makefile.in (gdb_proc_service_h): Updated. | |
7620 | * configure, config.in: Regenerated. | |
7621 | ||
b92a518e DJ |
7622 | 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
7623 | ||
7624 | * remote-utils.c (prepare_resume_reply): Move declaration | |
7625 | of gdb_id_from_wait to the top of the block. | |
7626 | ||
545587ee DJ |
7627 | 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com> |
7628 | ||
7629 | * linux-low.c (regsets_store_inferior_registers): Read the regset | |
7630 | from the target before filling it. | |
7631 | ||
9db87ebd DJ |
7632 | 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
7633 | ||
7634 | * server.c (attach_inferior): Return SIGTRAP for a successful | |
7635 | attach. | |
7636 | ||
dd24457d DJ |
7637 | 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
7638 | ||
7639 | * Makefile.in (OBS): Add version.o. | |
7640 | (STAGESTUFF): Delete. | |
7641 | (version.o): Add dependencies. | |
7642 | (version.c): Replace rule. | |
7643 | (clean): Remove version.c. | |
7644 | * server.c (gdbserver_version): New. | |
7645 | (gdbserver_usage): Use printf. | |
7646 | (main): Handle --version and --help. | |
7647 | * server.h (version, host_name): Add declarations. | |
7648 | ||
6f0f660e EZ |
7649 | 2005-12-23 Eli Zaretskii <eliz@gnu.org> |
7650 | ||
889bf7c5 PA |
7651 | * linux-arm-low.c: |
7652 | * linux-arm-low.c: | |
7653 | * inferiors.c: | |
7654 | * i387-fp.h: | |
7655 | * i387-fp.c: | |
7656 | * gdbreplay.c: | |
7657 | * regcache.c: | |
7658 | * proc-service.c: | |
7659 | * mem-break.h: | |
7660 | * mem-break.c: | |
7661 | * linux-x86-64-low.c: | |
7662 | * linux-sh-low.c: | |
7663 | * linux-s390-low.c: | |
7664 | * linux-ppc64-low.c: | |
7665 | * linux-ppc-low.c: | |
7666 | * linux-mips-low.c: | |
7667 | * linux-m68k-low.c: | |
7668 | * linux-m32r-low.c: | |
7669 | * linux-low.h: | |
7670 | * linux-low.c: | |
7671 | * linux-ia64-low.c: | |
7672 | * linux-i386-low.c: | |
7673 | * linux-crisv32-low.c: | |
7674 | * thread-db.c: | |
7675 | * terminal.h: | |
7676 | * target.h: | |
7677 | * target.c: | |
7678 | * server.h: | |
7679 | * server.c: | |
7680 | * remote-utils.c: | |
7681 | * regcache.h: | |
7682 | * utils.c: | |
7683 | * Makefile.in: | |
7684 | * configure.ac: | |
6f0f660e EZ |
7685 | * gdbserver.1: Add (C) after Copyright. Update the FSF |
7686 | address. | |
7687 | ||
9d1fb177 DJ |
7688 | 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com> |
7689 | ||
7690 | * linux-arm-low.c (arm_eabi_breakpoint): New variable. | |
7691 | (arm_breakpoint_at): Recognize both breakpoints. | |
7692 | (the_low_target): Use the correct breakpoint instruction. | |
7693 | ||
011a70c2 DJ |
7694 | 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com> |
7695 | ||
7696 | * configure.srv (x86_64-*-linux*): Turn on thread_db support. | |
7697 | * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len) | |
7698 | (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New. | |
7699 | (the_low_target): Update. | |
7700 | ||
7fb85e41 AS |
7701 | 2005-10-25 Andreas Schwab <schwab@suse.de> |
7702 | ||
7703 | * server.c (main): Allocate mem_buf with PBUFSIZ bytes. | |
7704 | ||
7705 | * linux-ia64-low.c (ia64_regmap): Remove NAT registers. | |
7706 | (ia64_num_regs): Reduce to 462. | |
7707 | ||
3db0444b DJ |
7708 | 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com> |
7709 | ||
7710 | * acinclude.m4: Correct quoting. | |
7711 | * aclocal.m4: Regenerated. | |
7712 | ||
7713 | Suggested by SZOKOVACS Robert <szo@ies.hu>: | |
7714 | * thread-db.c (thread_db_err_str): Handle TD_VERSION. | |
7715 | (thread_db_init): Call thread_db_err_str. | |
7716 | * configure.ac: Check for TD_VERSION. | |
7717 | * config.in, configure: Regenerated. | |
7718 | ||
bee0189a DJ |
7719 | 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
7720 | ||
7721 | * server.h (error, fatal, warning): Add ATTR_FORMAT. | |
7722 | ||
e9d25b98 DJ |
7723 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
7724 | ||
7725 | * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS | |
7726 | is not available. Define HAVE_PTRACE_GETREGS if it is. | |
7727 | * config.in, configure: Regenerated. | |
7728 | * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64. | |
7729 | * linux-i386-low.c, linux-m68k-low.c: Update to use | |
7730 | HAVE_PTRACE_GETREGS. | |
7731 | * linux-low.c (regsets_fetch_inferior_registers) | |
7732 | (regsets_store_inferior_registers): Only return 0 if we processed | |
7733 | GENERAL_REGS. | |
7734 | * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New. | |
7735 | * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New. | |
7736 | ||
a06660f7 DJ |
7737 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
7738 | ||
7739 | * inferiors.c (struct thread_info): Add gdb_id. | |
7740 | (add_thread): Add gdb_id argument. | |
7741 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New. | |
7742 | * linux-low.c (linux_create_inferior, linux_attach_lwp): Update | |
7743 | calls to add_thread. | |
7744 | * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id. | |
7745 | * server.c (handle_query): Use thread_to_gdb_id. | |
7746 | (handle_v_cont, main): Use gdb_id_to_thread_id. | |
7747 | * server.h (add_thread): Update prototype. | |
7748 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New | |
7749 | prototypes. | |
7750 | ||
5a1f5858 DJ |
7751 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
7752 | ||
7753 | * linux-low.c (fetch_register, usr_store_inferior_registers): Handle | |
7754 | left-padded registers. | |
7755 | * linux-low.h (struct linux_target_ops): Add left_pad_xfer. | |
7756 | * linux-ppc64-low.c (the_low_target): Set left_pad_xfer. | |
7757 | ||
e122f1f5 SE |
7758 | 2005-07-01 Steve Ellcey <sje@cup.hp.com> |
7759 | ||
7760 | * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS. | |
7761 | * configure: Regenerate. | |
7762 | * config.in: Regenerate. | |
7763 | * server.h (NEED_DECLARATION_STRERROR): | |
7764 | Replace with !HAVE_DECL_STRERROR. | |
7765 | ||
d592fa2f DJ |
7766 | 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com> |
7767 | ||
7768 | * linux-low.c (linux_wait, linux_send_signal): Don't test | |
7769 | an unsigned long variable for > 0 if it could be MAX_ULONG. | |
7770 | * server.c (myresume): Likewise. | |
7771 | * target.c (set_desired_inferior): Likewise. | |
7772 | ||
ccbd4912 MK |
7773 | 2005-06-13 Mark Kettenis <kettenis@gnu.org> |
7774 | ||
7775 | * configure.ac: Simplify and improve check for socklen_t. | |
7776 | * configure, config.in: Regenerate. | |
7777 | ||
f450004a DJ |
7778 | 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com> |
7779 | ||
7780 | * acconfig.h: Remove. | |
7781 | * configure.ac: Add a test for socklen_t. Use three-argument | |
7782 | AC_DEFINE throughout. | |
7783 | * config.in: Regenerated using autoheader 2.59. | |
7784 | * configure: Regenerated. | |
7785 | ||
7786 | * gdbreplay.c (socklen_t): Provide a default. | |
7787 | (remote_open): Use socklen_t. | |
7788 | * remote-utils.c (socklen_t): Provide a default. | |
7789 | (remote_open): Use socklen_t. | |
7790 | (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use | |
7791 | unsigned char. | |
7792 | ||
7793 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned | |
7794 | char for buffers. | |
7795 | * linux-low.c (linux_read_memory, linux_write_memory) | |
7796 | (linux_read_auxv): Likewise. | |
7797 | * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read) | |
7798 | (check_mem_write): Likewise. | |
7799 | * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write): | |
7800 | Likewise. | |
7801 | * regcache.c (struct inferior_rgcache_data, registers_to_string) | |
7802 | (registers_from_string, register_data): Likewise. | |
7803 | * server.c (handle_query, main): Likewise. | |
7804 | * server.h (convert_ascii_to_int, convert_int_to_ascii) | |
7805 | (decode_M_packet): Likewise. | |
7806 | * target.c (read_inferior_memory, write_inferior_memory): Likewise. | |
7807 | * target.h (struct target_ops): Update read_memory, write_memory, | |
7808 | and read_auxv. | |
7809 | (read_inferior_memory, write_inferior_memory): Update. | |
7810 | * linux-low.h (struct linux_target_ops): Change type of breakpoint | |
7811 | to unsigned char *. | |
7812 | * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c, | |
7813 | linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c, | |
7814 | linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c, | |
7815 | linux-s390-low.c, linux-sh-low.c: Update for changes in | |
7816 | read_inferior_memory and the_low_target->breakpoint. | |
7817 | ||
eee84df1 DJ |
7818 | 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com> |
7819 | ||
7820 | * Makefile.in (SFILES): Add linux-ppc64-low.c. | |
7821 | (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets. | |
7822 | * configure.srv: Add powerpc64-*-linux*. | |
7823 | * linux-ppc64-low.c: New file. | |
7824 | ||
45b134e5 OF |
7825 | 2005-05-23 Orjan Friberg <orjanf@axis.com> |
7826 | ||
7827 | * linux-cris-low.c: New file with support for CRIS. | |
7828 | * linux-crisv32-low.c: Ditto for CRISv32. | |
7829 | * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c. | |
7830 | (clean): Add reg-cris.c and reg-crisv32.c. | |
889bf7c5 | 7831 | Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c, |
45b134e5 OF |
7832 | reg-crisv32.o, and reg-crisv32.c to make rules. |
7833 | * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of | |
7834 | recognized targets. | |
7835 | ||
48d93c75 UW |
7836 | 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com> |
7837 | ||
7838 | * linux-low.c (fetch_register): Ensure buffer size is a multiple | |
7839 | of sizeof (PTRACE_XFER_TYPE). | |
7840 | (usr_store_inferior_registers): Likewise. Zero out excess bytes. | |
7841 | ||
e013ee27 OF |
7842 | 2005-05-12 Orjan Friberg <orjanf@axis.com> |
7843 | ||
889bf7c5 | 7844 | * target.h (struct target_ops): Add insert_watchpoint, |
e013ee27 OF |
7845 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address function |
7846 | pointers for hardware watchpoint support. | |
7847 | * linux-low.h (struct linux_target_ops): Ditto. | |
7848 | * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint) | |
7849 | (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add | |
7850 | to linux_target_ops. | |
7851 | * remote-utils.c (prepare_resume_reply): Add watchpoint information to | |
7852 | reply packet. | |
7853 | * server.c (main): Recognize 'Z' and 'z' packets. | |
7854 | ||
b0ded00b UW |
7855 | 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com> |
7856 | ||
7857 | * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define. | |
7858 | (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions. | |
7859 | (the_low_target): Add new members. | |
7860 | ||
8643e2ad DJ |
7861 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
7862 | ||
7863 | * proc-service.c (ps_lgetregs): Search all_processes instead of | |
7864 | all_threads. | |
7865 | ||
fc620387 DJ |
7866 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
7867 | ||
7868 | * server.c (start_inferior): Change return type to int. | |
7869 | (attach_inferior): Change sigptr to int *. | |
7870 | (handle_v_cont, handle_v_requests): Change signal to int *. | |
7871 | (main): Change signal to int. | |
7872 | ||
7873 | 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com> | |
7cfbc4a0 KI |
7874 | |
7875 | * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o. | |
7876 | * configure.srv: Add m32r*-*-linux*. | |
7877 | * linux-m32r-low.c: New file. | |
7878 | ||
e0e76420 DJ |
7879 | 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com> |
7880 | ||
7881 | * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly. | |
7882 | ||
a1928bad DJ |
7883 | 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
7884 | ||
7885 | * inferiors.c (change_inferior_id, add_thread, find_inferior_id): | |
7886 | Take unsigned long arguments for PIDs. | |
7887 | * linux-low.c (add_process, linux_attach_lwp, linux_attach) | |
7888 | (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop) | |
7889 | (wait_for_sigstop, linux_resume_one_process) | |
7890 | (regsets_fetch_inferior_registers, linux_send_signal) | |
7891 | (linux_read_auxv): Likewise. Update the types of variables holding | |
7892 | PIDs. Update format string specifiers. | |
7893 | * linux-low.h (struct process_info, linux_attach_lwp): Likewise. | |
7894 | * remote-utils.c (prepare_resume_reply): Likewise. | |
7895 | * server.c (cont_thread, general_thread, step_thread) | |
7896 | (thread_from_wait, old_thread_from_wait, signal_pid): Change type to | |
7897 | unsigned long. | |
7898 | (handle_query): Update format specifiers. | |
7899 | (handle_v_cont, main): Use strtoul for thread IDs. | |
7900 | * server.h (struct inferior_list_entry): Use unsigned long for ID. | |
7901 | (add_thread, find_inferior_id, change_inferior_id, cont_thread) | |
7902 | (general_thread, step_thread, thread_from_wait) | |
7903 | (old_thread_from_wait): Update. | |
7904 | * target.h (struct thread_resume): Use unsigned long for THREAD. | |
7905 | (struct target_ops): Use unsigned long for arguments to attach and | |
7906 | thread_alive. | |
7907 | ||
dcdb98d2 DJ |
7908 | 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com> |
7909 | ||
7910 | * acinclude.m4: Include bfd/bfd.m4 directly. | |
7911 | * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis | |
7912 | <agriffis@toolchain.org>. | |
7913 | * aclocal.m4, configure: Regenerated. | |
7914 | ||
bec39cab AC |
7915 | 2005-01-07 Andrew Cagney <cagney@gnu.org> |
7916 | ||
7917 | * configure.ac: Rename configure.in, require autoconf 2.59. | |
7918 | * configure: Re-generate. | |
7919 | ||
434c4c77 DJ |
7920 | 2004-12-08 Daniel Jacobowitz <dan@debian.org> |
7921 | ||
7922 | * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset | |
7923 | LIBS when finished. | |
7924 | * aclocal.m4: Regenerated. | |
7925 | * configure: Regenerated. | |
7926 | ||
db1d3e1b AS |
7927 | 2004-11-21 Andreas Schwab <schwab@suse.de> |
7928 | ||
7929 | * linux-m68k-low.c (m68k_num_gregs): Define. | |
7930 | (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset) | |
7931 | (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New. | |
7932 | (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc) | |
7933 | (m68k_breakpoint_at): New. Add to the_low_target. | |
7934 | ||
7935 | * configure.srv (m68*-*-linux*): Set srv_linux_regsets and | |
7936 | srv_linux_thread_db to yes. | |
7937 | ||
43360365 JB |
7938 | 2004-10-20 Joel Brobecker <brobecker@gnat.com> |
7939 | ||
7940 | * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing. | |
7941 | (ARCH_SET_FS): Likewise. | |
7942 | (ARCH_GET_FS): Likewise. | |
7943 | (ARCH_GET_GS): Likewise. | |
7944 | ||
fd500816 DJ |
7945 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
7946 | ||
7947 | * linux-i386-low.c (ps_get_thread_area): New. | |
7948 | * linux-x86-64-low.c (ps_get_thread_area): New. | |
7949 | * linux-low.c: Include <sys/syscall.h>. | |
7950 | (linux_kill_one_process): Don't kill the first thread here. | |
7951 | (linux_kill): Kill the first thread here. | |
7952 | (kill_lwp): New function. | |
7953 | (send_sigstop, linux_send_signal): Use it. | |
7954 | * proc-service.c: Clean up #ifdefs. | |
7955 | (fpregset_info): Delete. | |
7956 | (ps_lgetregs): Update and enable implementation. | |
7957 | (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled | |
7958 | implementations. | |
7959 | * remote-utils.c (struct sym_cache, symbol_cache): New. | |
7960 | (input_interrupt): Print a clearer message. | |
7961 | (async_io_enabled): New variable. | |
7962 | (enable_async_io, disable_async_io): Use it. Update comments. | |
7963 | (look_up_one_symbol): Use the symbol cache. | |
7964 | * thread-db.c (thread_db_look_up_symbols): New function. | |
7965 | (thread_db_init): Update comments. Call thread_db_look_up_symbols. | |
7966 | ||
f6de3c42 DJ |
7967 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
7968 | ||
7969 | * configure.in: Test for -rdynamic. | |
7970 | * configure: Regenerated. | |
7971 | * Makefile (INTERNAL_LDFLAGS): New. | |
7972 | (gdbserver, gdbreplay): Use it. | |
7973 | ||
2c0fc042 AC |
7974 | 2004-09-02 Andrew Cagney <cagney@gnu.org> |
7975 | ||
7976 | * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE. | |
7977 | ||
075b3282 DJ |
7978 | 2004-03-23 Daniel Jacobowitz <drow@mvista.com> |
7979 | ||
7980 | * linux-low.c (linux_wait): Clear all_processes list also. | |
7981 | ||
fa6a77dc DJ |
7982 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
7983 | ||
7984 | * linux-low.c: Include <errno.h>. Remove extern declaration of | |
7985 | errno. | |
7986 | ||
6d782a97 DJ |
7987 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
7988 | ||
7989 | * gdbreplay.c, server.h, utils.c: Update copyright years. | |
7990 | ||
3a7fb99b DJ |
7991 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
7992 | ||
7993 | * server.c (main): Print child status or termination signal from | |
7994 | variable 'signal', not 'sig'. | |
7995 | ||
c3e735a6 DJ |
7996 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
7997 | ||
7998 | * linux-low.c (linux_read_memory): Change return type to | |
7999 | int. Check for and return error from ptrace(). | |
8000 | * target.c (read_inferior_memory): Change return type to int. Pass | |
8001 | back return status from the_target->read_memory(). | |
8002 | * target.h (struct target_ops): Adapt *read_memory() prototype. | |
8003 | Update comment. | |
8004 | (read_inferior_memory): Adapt prototype. | |
8005 | * server.c (main): Return an error packet if | |
8006 | read_inferior_memory() returns an error. | |
8007 | ||
a59d1c82 DJ |
8008 | 2004-03-04 Daniel Jacobowitz <drow@mvista.com> |
8009 | ||
8010 | * Makefile.in (distclean): Remove config.h, stamp-h, and config.log. | |
8011 | Unify with other clean targets. | |
8012 | ||
dc3f8883 DJ |
8013 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
8014 | ||
8015 | * server.c (handle_v_cont): Call set_desired_inferior. | |
8016 | ||
89a208da DJ |
8017 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
8018 | ||
8019 | * remote-utils.c (prepare_resume_reply): Always supply "thread:". | |
8020 | ||
62ea82f5 DJ |
8021 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
8022 | ||
8023 | * linux-low.c (linux_wait): Unblock async I/O. | |
8024 | (linux_resume): Block and enable async I/O. | |
8025 | * remote-utils.c (block_async_io, unblock_async_io): New functions. | |
8026 | * server.h (block_async_io, unblock_async_io): Add prototypes. | |
8027 | ||
6910d122 DJ |
8028 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
8029 | ||
8030 | * remote-utils.c (remote_open): Print a status notice after | |
8031 | opening a TCP port. | |
8032 | * server.c (attach_inferior): Print a status notice after | |
8033 | attaching. | |
8034 | ||
8035 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> | |
d677d77d DJ |
8036 | |
8037 | * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. | |
8038 | ||
c89dc5d4 DJ |
8039 | 2004-02-26 Daniel Jacobowitz <drow@mvista.com> |
8040 | ||
8041 | * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the | |
8042 | error packet. | |
8043 | * server.c, target.h: Update copyright years. | |
8044 | ||
4b8dad4a RM |
8045 | 2004-02-25 Roland McGrath <roland@redhat.com> |
8046 | ||
8047 | * target.h (struct target_ops): New member `read_auxv'. | |
8048 | * server.c (handle_query): Handle qPart:auxv:read: query using that. | |
8049 | * linux-low.c (linux_read_auxv): New function. | |
8050 | (linux_target_ops): Initialize `read_auxv' member to that. | |
8051 | ||
d7446758 JB |
8052 | 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
8053 | ||
8054 | Committed by Jim Blandy <jimb@redhat.com>. | |
8055 | ||
8056 | * linux-s390-low.c (s390_num_regs): Update. | |
4b8dad4a | 8057 | (s390_regmap): Remove control registers. Use __s390x__ predefine |
d7446758 JB |
8058 | instead of GPR_SIZE to distiguish s390 and s390x targets. |
8059 | ||
5544ad89 DJ |
8060 | 2004-01-31 Daniel Jacobowitz <drow@mvista.com> |
8061 | ||
8062 | * linux-low.c: Update copyright year. | |
8063 | (check_removed_breakpoint): Clear pending_is_breakpoint. | |
8064 | (linux_set_resume_request, linux_queue_one_thread) | |
8065 | (resume_status_pending_p): New functions. | |
8066 | (linux_continue_one_thread): Use process->resume. | |
8067 | (linux_resume): Only resume threads if there are no pending events. | |
8068 | * linux-low.h (struct process_info): Add resume request | |
8069 | pointer. | |
8070 | ||
2a68b70e DJ |
8071 | 2004-01-30 Daniel Jacobowitz <drow@mvista.com> |
8072 | ||
8073 | * regcache.c (new_register_cache): Clear the allocated register | |
8074 | buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>. | |
8075 | ||
64386c31 DJ |
8076 | 2003-10-13 Daniel Jacobowitz <drow@mvista.com> |
8077 | ||
8078 | * linux-low.c (linux_resume): Take a struct thread_resume * | |
8079 | argument. | |
8080 | (linux_wait): Update call. | |
8081 | (resume_ptr): New static variable. | |
8082 | (linux_continue_one_thread): Renamed from | |
8083 | linux_continue_one_process. Use resume_ptr. | |
8084 | (linux_resume): Use linux_continue_one_thread. | |
8085 | * server.c (handle_v_cont, handle_v_requests): New functions. | |
8086 | (myresume): New function. | |
8087 | (main): Handle 'v' case. | |
8088 | * target.h (struct thread_resume): New type. | |
8089 | (struct target_ops): Change argument of "resume" to struct | |
8090 | thread_resume *. | |
8091 | (myresume): Delete macro. | |
8092 | ||
c938e9b0 L |
8093 | 2003-08-08 H.J. Lu <hongjiu.lu@intel.com> |
8094 | ||
8095 | * Makefile.in (install-only): Create dest dir. Support DESTDIR. | |
8096 | (uninstall): Support DESTDIR. | |
8097 | ||
7f313d07 BC |
8098 | Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com> |
8099 | ||
8100 | * configure.srv: Add xscale*linux copy of arm*linux entry. | |
8101 | ||
3b2fc2ea DJ |
8102 | 2003-07-24 Daniel Jacobowitz <drow@mvista.com> |
8103 | ||
8104 | * linux-arm-low.c (arm_reinsert_addr): New function. | |
8105 | (the_low_target): Add arm_reinsert_addr. | |
8106 | ||
1c0a559e MK |
8107 | 2003-07-08 Mark Kettenis <kettenis@gnu.org> |
8108 | ||
8109 | * mem-break.c: Remove whitespace at end of file. | |
8110 | ||
43d5792c DJ |
8111 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
8112 | ||
8113 | * configure.in: Check whether we need to prototype strerror. | |
8114 | * server.h: Optionally prototype strerror. | |
8115 | * gdbreplay.c (perror_with_name): Use strerror. | |
8116 | * linux-low.c (linux_attach_lwp): Use strerror. | |
8117 | * utils.c (perror_with_name): Use strerror. | |
8118 | * config.in, configure: Regenerated. | |
8119 | ||
c8a86edf DJ |
8120 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
8121 | ||
8122 | * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by | |
8123 | SUGIOKA Toshinobu <sugioka@itonet.co.jp>. | |
8124 | ||
73d37363 DJ |
8125 | 2003-06-20 Daniel Jacobowitz <drow@mvista.com> |
8126 | ||
8127 | * Makefile.in (SFILES): Update. | |
8128 | * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c, | |
8129 | low-sun3.c: Remove files. | |
8130 | ||
6ad8ae5c DJ |
8131 | 2003-06-17 Daniel Jacobowitz <drow@mvista.com> |
8132 | ||
8133 | * linux-low.c: Move comment to linux_thread_alive where it belonged. | |
8134 | (linux_detach_one_process, linux_detach): New functions. | |
8135 | (linux_target_ops): Add linux_detach. | |
8136 | * server.c (main): Handle 'D' packet. | |
8137 | * target.h (struct target_ops): Add "detach" member. | |
8138 | (detach_inferior): Define. | |
8139 | ||
1581182a MK |
8140 | 2003-06-13 Mark Kettenis <kettenis@gnu.org> |
8141 | ||
8142 | From Kelley Cook <kelleycook@wideopenwest.com>: | |
8143 | * configure.srv: Accept i[34567]86 variants. | |
8144 | ||
e5379b03 DJ |
8145 | 2003-06-05 Daniel Jacobowitz <drow@mvista.com> |
8146 | ||
8147 | * linux-low.c (linux_wait_for_event): Correct comment typos. | |
8148 | (linux_resume_one_process): Call check_removed_breakpoint. | |
8149 | (linux_send_signal): New function. | |
8150 | (linux_target_ops): Add linux_send_signal. | |
8151 | * remote-utils.c (putpkt, input_interrupt): Use send_signal instead | |
8152 | of kill. | |
8153 | * target.h (struct target_ops): Add send_signal. | |
8154 | ||
2ff29de4 JB |
8155 | 2003-05-29 Jim Blandy <jimb@redhat.com> |
8156 | ||
8157 | * linux-low.c (usr_store_inferior_registers): Transfer buf in | |
8158 | PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise, | |
8159 | if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing | |
8160 | away part of the register's value. | |
8161 | ||
254787d4 DJ |
8162 | 2003-03-26 Daniel Jacobowitz <drow@mvista.com> |
8163 | ||
8164 | * linux-low.c (linux_create_inferior): Use __SIGRTMIN. | |
8165 | (linux_wait_for_event, linux_init_signals): Likewise. | |
8166 | ||
94e10508 DJ |
8167 | 2003-03-17 Daniel Jacobowitz <drow@mvista.com> |
8168 | ||
8169 | * configure.in: Check for stdlib.h. | |
8170 | * configure: Regenerated. | |
8171 | * config.in: Regenerated. | |
8172 | ||
4c0711e0 DJ |
8173 | 2003-01-04 Andreas Schwab <schwab@suse.de> |
8174 | ||
8175 | * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31. | |
8176 | ||
ef66e766 AC |
8177 | 2003-01-02 Andrew Cagney <ac131313@redhat.com> |
8178 | ||
8179 | * Makefile.in: Remove obsolete code. | |
8180 | ||
a1358604 DJ |
8181 | 2002-11-20 Daniel Jacobowitz <drow@mvista.com> |
8182 | ||
8183 | * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of | |
8184 | defined(PT_FPR0_HI). | |
8185 | ||
23ce3b1c DJ |
8186 | 2002-11-17 Stuart Hughes <seh@zee2.com> |
8187 | ||
8188 | * linux-arm-low.c (arm_num_regs): Increase. | |
8189 | (arm_regmap): Include status register. | |
8190 | ||
8191 | 2002-11-17 Daniel Jacobowitz <drow@mvista.com> | |
8192 | ||
8193 | * linux-low.c (register_addr): Remove incorrect -1 check. | |
8194 | ||
a9fa9f7d DJ |
8195 | 2002-08-29 Daniel Jacobowitz <drow@mvista.com> |
8196 | ||
8197 | * linux-low.c (linux_create_inferior): Call setpgid. Return | |
8198 | the new PID. | |
8199 | (unstopped_p, linux_signal_pid): Remove. | |
8200 | (linux_target_ops): Remove linux_signal_pid. | |
8201 | * remote-utils.c (putpkt, input_interrupt): Use signal_pid | |
8202 | global instead of target method. | |
8203 | * target.h (struct target_ops): Remove signal_pid. Update comment | |
8204 | for create_inferior. | |
8205 | * server.c (signal_pid): New variable. | |
8206 | (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in | |
4b8dad4a | 8207 | gdbserver. Set the child to be the foreground process group. |
a9fa9f7d DJ |
8208 | (attach_inferior): Set signal_pid. |
8209 | ||
17574093 DJ |
8210 | 2002-08-23 Daniel Jacobowitz <drow@mvista.com> |
8211 | ||
8212 | * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2. | |
8213 | ||
8214 | 2002-08-20 Jim Blandy <jimb@redhat.com> | |
8215 | ||
8216 | * Makefile.in (LDFLAGS): Allow the configure script to establish a | |
8217 | default for this. | |
8218 | ||
8219 | 2002-08-01 Andrew Cagney <cagney@redhat.com> | |
8220 | ||
8221 | * Makefile.in: Make chill references obsolete. | |
8222 | ||
8223 | 2002-07-24 Kevin Buettner <kevinb@redhat.com> | |
8224 | ||
8225 | * configure.in (unistd.h): Add to AC_CHECK_HEADERS list. | |
8226 | * configure: Regenerate. | |
8227 | * config.in: Regenerate. | |
8228 | ||
8229 | 2002-07-09 David O'Brien <obrien@FreeBSD.org> | |
8230 | ||
8231 | * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include. | |
8232 | (perror_with_name, remote_close, remote_open, expect, play): Static. | |
8233 | ||
8234 | 2002-07-04 Michal Ludvig <mludvig@suse.cz> | |
8235 | ||
4b8dad4a | 8236 | * linux-x86-64-low.c (x86_64_regmap): Make it an array of |
17574093 DJ |
8237 | byte offsets instead of an array of indexes. |
8238 | (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const. | |
8239 | ||
8240 | 2002-06-13 Daniel Jacobowitz <drow@mvista.com> | |
8241 | ||
8242 | * regcache.c: Add comment. | |
8243 | ||
8244 | 2002-06-11 Daniel Jacobowitz <drow@mvista.com> | |
8245 | ||
8246 | * thread-db.c: New file. | |
8247 | * proc-service.c: New file. | |
8248 | * acinclude.m4: New file. | |
8249 | * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h, | |
8250 | proc-service.o, and thread-db.o. | |
8251 | (linux-low.o): Add USE_THREAD_DB. | |
8252 | * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T, | |
8253 | HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN. | |
8254 | * aclocal.m4: Regenerated. | |
8255 | * config.in: Regenerated. | |
8256 | * configure: Regenerated. | |
8257 | * configure.in: Check for proc_service.h, sys/procfs.h, | |
8258 | thread_db.h, and linux/elf.h headrs. | |
8259 | Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and | |
8260 | PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB. | |
8261 | Check for -lthread_db and thread support. | |
8262 | * configure.srv: Enable thread_db support for ARM, i386, MIPS, | |
8263 | PowerPC, and SuperH. | |
8264 | * i387-fp.c: Constify arguments. | |
8265 | * i387-fp.h: Likewise. | |
8266 | * inferiors.c: (struct thread_info): Renamed from | |
8267 | `struct inferior_info'. Remove PID member. Use generic inferior | |
8268 | list header. All uses updated. | |
8269 | (inferiors, signal_pid): Removed. | |
8270 | (all_threads): New variable. | |
8271 | (get_thread): Define. | |
8272 | (add_inferior_to_list): New function. | |
8273 | (for_each_inferior): New function. | |
8274 | (change_inferior_id): New function. | |
8275 | (add_inferior): Removed. | |
8276 | (remove_inferior): New function. | |
8277 | (add_thread): New function. | |
8278 | (free_one_thread): New function. | |
8279 | (remove_thread): New function. | |
8280 | (clear_inferiors): Use for_each_inferior and free_one_thread. | |
8281 | (find_inferior): New function. | |
8282 | (find_inferior_id): New function. | |
8283 | (inferior_target_data): Update argument type. | |
8284 | (set_inferior_target_data): Likewise. | |
8285 | (inferior_regcache_data): Likewise. | |
8286 | (set_inferior_regcache_data): Likewise. | |
8287 | * linux-low.c (linux_bp_reinsert): Remove. | |
8288 | (all_processes, stopping_threads, using_thrads) | |
8289 | (struct pending_signals, debug_threads, pid_of): New. | |
8290 | (inferior_pid): Replace with macro. | |
8291 | (struct inferior_linux_data): Remove. | |
8292 | (get_stop_pc, add_process): New functions. | |
8293 | (linux_create_inferior): Restore SIGRTMIN+1 before calling exec. | |
8294 | Use add_process and add_thread. | |
8295 | (linux_attach_lwp): New function, based on old linux_attach. Use | |
8296 | add_process and add_thread. Set stop_expected for new threads. | |
8297 | (linux_attach): New function. | |
8298 | (linux_kill_one_process): New function. | |
8299 | (linux_kill): Kill all LWPs. | |
8300 | (linux_thread_alive): Use find_inferior_id. | |
8301 | (check_removed_breakpoints, status_pending_p): New functions. | |
8302 | (linux_wait_for_process): Renamed from linux_wait_for_one_inferior. | |
8303 | Update. Use WNOHANG. Wait for cloned processes also. Update process | |
8304 | struct for the found process. | |
8305 | (linux_wait_for_event): New function. | |
8306 | (linux_wait): Use it. Support LWPs. | |
8307 | (send_sigstop, wait_for_sigstop, stop_all_processes) | |
8308 | (linux_resume_one_process, linux_continue_one_process): New functions. | |
8309 | (linux_resume): Support LWPs. | |
8310 | (REGISTER_RAW_SIZE): Remove. | |
8311 | (fetch_register): Use register_size instead. Call supply_register. | |
8312 | (usr_store_inferior_registers): Likewise. Call collect_register. | |
8313 | Fix recursive case. | |
8314 | (regsets_fetch_inferior_registers): Improve error message. | |
8315 | (regsets_store_inferior_registers): Add debugging. | |
8316 | (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB. | |
8317 | (unstopped_p, linux_signal_pid): New functions. | |
8318 | (linux_target_ops): Add linux_signal_pid. | |
8319 | (linux_init_signals): New function. | |
8320 | (initialize_low): Call it. Initialize using_threads. | |
8321 | * regcache.c (inferior_regcache_data): Add valid | |
8322 | flag. | |
8323 | (get_regcache): Fetch registers lazily. Add fetch argument | |
8324 | and update all callers. | |
8325 | (regcache_invalidate_one, regcache_invalidate): New | |
8326 | functions. | |
8327 | (new_register_cache): Renamed from create_register_cache. | |
8328 | Return the new regcache. | |
8329 | (free_register_cache): Change argument to a void *. | |
8330 | (registers_to_string, registers_from_string): Call get_regcache | |
8331 | with fetch flag set. | |
8332 | (register_data): Make static. Pass fetch flag to get_regcache. | |
8333 | (supply_register): Call get_regcache with fetch flag clear. | |
8334 | (collect_register): Call get_regcache with fetch flag set. | |
8335 | (collect_register_as_string): New function. | |
8336 | * regcache.h: Update. | |
8337 | * remote-utils.c (putpkt): Flush after debug output and use | |
8338 | stderr. | |
8339 | Handle input interrupts while waiting for an ACK. | |
8340 | (input_interrupt): Use signal_pid method. | |
8341 | (getpkt): Flush after debug output and use stderr. | |
8342 | (outreg): Use collect_register_as_string. | |
8343 | (new_thread_notify, dead_thread_notify): New functions. | |
8344 | (prepare_resume_reply): Check using_threads. Set thread_from_wait | |
8345 | and general_thread. | |
8346 | (look_up_one_symbol): Flush after debug output. | |
8347 | * server.c (step_thread, server_waiting): New variables. | |
8348 | (start_inferior): Don't use signal_pid. Update call to mywait. | |
8349 | (attach_inferior): Update call to mywait. | |
8350 | (handle_query): Handle qfThreadInfo and qsThreadInfo. | |
8351 | (main): Don't fetch/store registers explicitly. Use | |
8352 | set_desired_inferior. Support proposed ``Hs'' packet. Update | |
8353 | calls to mywait. | |
8354 | * server.h: Update. | |
8355 | (struct inferior_list, struct_inferior_list_entry): New. | |
8356 | * target.c (set_desired_inferior): New. | |
8357 | (write_inferior_memory): Constify. | |
8358 | (mywait): New function. | |
8359 | * target.h: Update. | |
8360 | (struct target_ops): New signal_pid method. | |
8361 | (mywait): Removed macro, added prototype. | |
8362 | ||
8363 | * linux-low.h (regset_func): Removed. | |
8364 | (regset_fill_func, regset_store_func): New. | |
8365 | (enum regset_type): New. | |
8366 | (struct regset_info): Add type field. Use new operation types. | |
8367 | (struct linux_target_ops): stop_pc renamed to get_pc. | |
8368 | Add decr_pc_after_break and breakpoint_at. | |
8369 | (get_process, get_thread_proess, get_process_thread) | |
8370 | (strut process_info, all_processes, linux_attach_lwp) | |
8371 | (thread_db_init): New. | |
8372 | ||
8373 | * linux-arm-low.c (arm_get_pc, arm_set_pc, | |
8374 | arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New. | |
8375 | (the_low_target): Add new members. | |
8376 | * linux-i386-low.c (i386_store_gregset, i386_store_fpregset) | |
8377 | (i386_store_fpxregset): Constify. | |
8378 | (target_regsets): Add new kind identifier. | |
8379 | (i386_get_pc): Renamed from i386_stop_pc. Simplify. | |
8380 | (i386_set_pc): Add debugging. | |
8381 | (i386_breakpoint_at): New function. | |
8382 | (the_low_target): Add new members. | |
8383 | * linux-mips-low.c (mips_get_pc, mips_set_pc) | |
8384 | (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr) | |
8385 | (mips_breakpoint_at): New. | |
8386 | (the_low_target): Add new members. | |
8387 | * linux-ppc-low.c (ppc_get_pc, ppc_set_pc) | |
8388 | (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New. | |
8389 | (the_low_target): Add new members. | |
8390 | * linux-sh-low.c (sh_get_pc, sh_set_pc) | |
8391 | (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New. | |
8392 | (the_low_target): Add new members. | |
8393 | * linux-x86-64-low.c (target_regsets): Add new kind | |
8394 | identifier. | |
8395 | ||
8396 | 2002-05-15 Daniel Jacobowitz <drow@mvista.com> | |
8397 | ||
8398 | From Martin Pool <mbp@samba.org>: | |
8399 | * server.c (gdbserver_usage): New function. | |
8400 | (main): Call it. | |
8401 | ||
8402 | 2002-05-14 Daniel Jacobowitz <drow@mvista.com> | |
8403 | ||
8404 | * mem-break.c (reinsert_breakpoint_by_bp): Correct typo | |
8405 | stop_at -> stop_pc. | |
8406 | ||
8407 | 2002-05-04 Andrew Cagney <ac131313@redhat.com> | |
8408 | ||
8409 | * Makefile.in: Remove obsolete code. | |
8410 | ||
8411 | 2002-04-24 Michal Ludvig <mludvig@suse.cz> | |
8412 | ||
8413 | * linux-low.c (regsets_fetch_inferior_registers), | |
8414 | (regsets_store_inferior_registers): Removed cast to int from | |
8415 | ptrace() calls. | |
8416 | * regcache.h: Added declaration of struct inferior_info. | |
8417 | ||
8418 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> | |
8419 | ||
8420 | * inferiors.c (struct inferior_info): Add regcache_data. | |
8421 | (add_inferior): Call create_register_cache. | |
8422 | (clear_inferiors): Call free_register_cache. | |
8423 | (inferior_regcache_data, set_inferior_regcache_data): New functions. | |
8424 | * regcache.c (struct inferior_regcache_data): New. | |
8425 | (registers): Remove. | |
8426 | (get_regcache): New function. | |
8427 | (create_register_cache, free_register_cache): New functions. | |
8428 | (set_register_cache): Don't initialize the register cache here. | |
8429 | (registers_to_string, registers_from_string, register_data): Call | |
8430 | get_regcache. | |
8431 | * regcache.h: Add prototypes. | |
8432 | * server.h: Likewise. | |
8433 | ||
8434 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> | |
8435 | ||
8436 | * mem-break.c: New file. | |
8437 | * mem-break.h: New file. | |
8438 | * Makefile.in: Add mem-break.o rule; update server.h | |
8439 | dependencies. | |
8440 | * inferiors.c (struct inferior_info): Add target_data | |
8441 | member. | |
8442 | (clear_inferiors): Free target_data member if set. | |
8443 | (inferior_target_data, set_inferior_target_data): New functions. | |
8444 | * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len) | |
8445 | (i386_stop_pc, i386_set_pc): New. Add to the_low_target. | |
8446 | * linux-low.c (linux_bp_reinsert): New variable. | |
8447 | (struct inferior_linux_data): New. | |
8448 | (linux_create_inferior): Use set_inferior_target_data. | |
8449 | (linux_attach): Likewise. Call add_inferior. | |
8450 | (linux_wait_for_one_inferior): New function. | |
8451 | (linux_wait): Call it. | |
8452 | (linux_write_memory): Add const. | |
8453 | (initialize_low): Call set_breakpoint_data. | |
8454 | * linux-low.h (struct linux_target_ops): Add breakpoint | |
8455 | handling members. | |
8456 | * server.c (attach_inferior): Remove extra add_inferior | |
8457 | call. | |
8458 | * server.h: Include mem-break.h. Update inferior.c | |
8459 | prototypes. | |
8460 | * target.c (read_inferior_memory) | |
8461 | (write_inferior_memory): New functions. | |
8462 | * target.h (read_inferior_memory) | |
8463 | (write_inferior_memory): Change macros to prototypes. | |
8464 | (struct target_ops): Update comments. Add const to write_memory | |
8465 | definition. | |
8466 | ||
8467 | 2002-04-11 Daniel Jacobowitz <drow@mvista.com> | |
8468 | ||
8469 | * linux-low.c (usr_store_inferior_registers): Support | |
8470 | registers which are allowed to fail to store. | |
8471 | * linux-low.h (linux_target_ops): Likewise. | |
8472 | * linux-ppc-low.c (ppc_regmap): Support FPSCR. | |
8473 | (ppc_cannot_store_register): FPSCR may not be storable. | |
8474 | ||
8475 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
8476 | ||
8477 | * server.h: Include <string.h> if HAVE_STRING_H. | |
8478 | * ChangeLog: Correct paths in last ChangeLog entry. | |
8479 | ||
8480 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
8481 | ||
8482 | * linux-low.h: Remove obsolete prototypes. | |
8483 | (struct linux_target_ops): New. | |
8484 | (extern the_low_target): New. | |
8485 | * linux-low.c (num_regs, regmap): Remove declarations. | |
8486 | (register_addr): Use the_low_target explicitly. | |
8487 | (fetch_register): Likewise. | |
8488 | (usr_fetch_inferior_registers): Likewise. | |
8489 | (usr_store_inferior_registers): Likewise. | |
8490 | * linux-arm-low.c (num_regs): Remove. | |
8491 | (arm_num_regs): Define. | |
8492 | (arm_regmap): Renamed from regmap, made static. | |
8493 | (arm_cannot_fetch_register): Renamed from cannot_fetch_register, | |
8494 | made static. | |
8495 | (arm_cannot_store_register): Renamed from cannot_store_register, | |
8496 | made static. | |
8497 | (the_low_target): New. | |
8498 | * linux-i386-low.c (num_regs): Remove. | |
8499 | (i386_num_regs): Define. | |
8500 | (i386_regmap): Renamed from regmap, made static. | |
8501 | (i386_cannot_fetch_register): Renamed from cannot_fetch_register, | |
8502 | made static. | |
8503 | (i386_cannot_store_register): Renamed from cannot_store_register, | |
8504 | made static. | |
8505 | (the_low_target): New. | |
8506 | * linux-ia64-low.c (num_regs): Remove. | |
8507 | (ia64_num_regs): Define. | |
8508 | (ia64_regmap): Renamed from regmap, made static. | |
8509 | (ia64_cannot_fetch_register): Renamed from cannot_fetch_register, | |
8510 | made static. | |
8511 | (ia64_cannot_store_register): Renamed from cannot_store_register, | |
8512 | made static. | |
8513 | (the_low_target): New. | |
8514 | * linux-m68k-low.c (num_regs): Remove. | |
8515 | (m68k_num_regs): Define. | |
8516 | (m68k_regmap): Renamed from regmap, made static. | |
8517 | (m68k_cannot_fetch_register): Renamed from cannot_fetch_register, | |
8518 | made static. | |
8519 | (m68k_cannot_store_register): Renamed from cannot_store_register, | |
8520 | made static. | |
8521 | (the_low_target): New. | |
8522 | * linux-mips-low.c (num_regs): Remove. | |
8523 | (mips_num_regs): Define. | |
8524 | (mips_regmap): Renamed from regmap, made static. | |
8525 | (mips_cannot_fetch_register): Renamed from cannot_fetch_register, | |
8526 | made static. | |
8527 | (mips_cannot_store_register): Renamed from cannot_store_register, | |
8528 | made static. | |
8529 | (the_low_target): New. | |
8530 | * linux-ppc-low.c (num_regs): Remove. | |
8531 | (ppc_num_regs): Define. | |
8532 | (ppc_regmap): Renamed from regmap, made static. | |
8533 | (ppc_cannot_fetch_register): Renamed from cannot_fetch_register, | |
8534 | made static. | |
8535 | (ppc_cannot_store_register): Renamed from cannot_store_register, | |
8536 | made static. | |
8537 | (the_low_target): New. | |
8538 | * linux-s390-low.c (num_regs): Remove. | |
8539 | (s390_num_regs): Define. | |
8540 | (s390_regmap): Renamed from regmap, made static. | |
8541 | (s390_cannot_fetch_register): Renamed from cannot_fetch_register, | |
8542 | made static. | |
8543 | (s390_cannot_store_register): Renamed from cannot_store_register, | |
8544 | made static. | |
8545 | (the_low_target): New. | |
8546 | * linux-sh-low.c (num_regs): Remove. | |
8547 | (sh_num_regs): Define. | |
8548 | (sh_regmap): Renamed from regmap, made static. | |
8549 | (sh_cannot_fetch_register): Renamed from cannot_fetch_register, | |
8550 | made static. | |
8551 | (sh_cannot_store_register): Renamed from cannot_store_register, | |
8552 | made static. | |
8553 | (the_low_target): New. | |
8554 | * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap. | |
8555 | (the_low_target): New. | |
8556 | ||
8557 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
8558 | ||
8559 | * Makefile.in: Add stamp-h target. | |
8560 | * configure.in: Create stamp-h. | |
8561 | * configure: Regenerated. | |
8562 | ||
8563 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
8564 | ||
8565 | * inferiors.c: New file. | |
8566 | * target.c: New file. | |
8567 | * target.h: New file. | |
8568 | * Makefile.in: Add target.o and inferiors.o. Update | |
8569 | dependencies. | |
8570 | * linux-low.c (inferior_pid): New static variable, | |
8571 | moved from server.c. | |
8572 | (linux_create_inferior): Renamed from create_inferior. | |
8573 | Call add_inferior. Return 0 on success instead of a PID. | |
8574 | (linux_attach): Renamed from myattach. | |
8575 | (linux_kill): Renamed from kill_inferior. Call clear_inferiors (). | |
8576 | (linux_thread_alive): Renamed from mythread_alive. | |
8577 | (linux_wait): Renamed from mywait. Call clear_inferiors () if the | |
8578 | child dies. | |
8579 | (linux_resume): Renamed from myresume. Add missing ``return 0''. | |
8580 | (regsets_store_inferior_registers): Correct error message. | |
8581 | Add missing ``return 0''. | |
8582 | (linux_fetch_registers): Renamed from fetch_inferior_registers. | |
8583 | (linux_store_registers): Renamed from store_inferior_registers. | |
8584 | (linux_read_memory): Renamed from read_inferior_memory. | |
8585 | (linux_write_memory): Renamed from write_inferior_memory. | |
8586 | (linux_target_ops): New structure. | |
8587 | (initialize_low): Call set_target_ops (). | |
8588 | * remote-utils.c (unhexify): New function. | |
8589 | (hexify): New function. | |
8590 | (input_interrupt): Send signals to ``signal_pid''. | |
8591 | * server.c (inferior_pid): Remove. | |
8592 | (start_inferior): Update create_inferior call. | |
8593 | (attach_inferior): Call add_inferior. | |
8594 | (handle_query): New function. | |
8595 | (main): Call handle_query for `q' packets. | |
8596 | * server.h: Include "target.h". Remove obsolete prototypes. | |
8597 | Add prototypes for "inferiors.c", "target.c", hexify, and unhexify. | |
8598 | ||
8599 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
8600 | ||
8601 | * Makefile.in: Add WARN_CFLAGS. Update configury | |
8602 | dependencies. | |
8603 | * configure.in: Check for <string.h> | |
8604 | * configure: Regenerate. | |
8605 | * config.in: Regenerate. | |
8606 | * gdbreplay.c: Include needed system headers. | |
8607 | (remote_open): Remove strchr prototype. | |
8608 | * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS. | |
8609 | * regcache.c (supply_register): Change buf argument to const void *. | |
8610 | (supply_register_by_name): Likewise. | |
8611 | (collect_register): Change buf argument to void *. | |
8612 | (collect_register_by_name): Likewise. | |
8613 | * regcache.h: Add missing prototypes. | |
8614 | * remote-utils.c: Include <arpa/inet.h> for inet_ntoa. | |
8615 | * server.c (handle_query): New function. | |
8616 | (attached): New static variable, moved out of main. | |
8617 | (main): Quiet longjmp clobber warnings. | |
8618 | * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes. | |
8619 | * utils.c (error): Remove NORETURN. | |
8620 | (fatal): Likewise. |