]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
Remove Chris Faylor as the ix86 PE maintainer.
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
a010605f
TT
12020-04-16 Tom Tromey <tromey@adacore.com>
2
3 * win32-low.cc (windows_nat::handle_access_violation): New
4 function.
5
e2275c6e
SM
62020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * win32-low.cc (get_child_debug_event): Fix format string warning.
9
73944e9f
TT
102020-04-13 Tom Tromey <tom@tromey.com>
11
12 * server.h (gdb_fildes_t): Remove typedef.
13 * remote-utils.c (remote_desc, list_desc): Now int.
14 (INVALID_DESCRIPTOR): Remove.
15 (gdb_connected, remote_close)
16 (check_remote_input_interrupt_request): Update.
17 * utils.h (pfildes): Don't declare.
18 * utils.c (pfildes): Remove.
19
55d7aec8
TT
202020-04-13 Tom Tromey <tom@tromey.com>
21
22 * server.h (handle_serial_event, handle_target_event): Update.
23 * server.c: Don't call initialize_event_loop.
24 (keep_processing_events): New global.
25 (handle_serial_event): Return void. Set keep_processing_events.
26 (handle_target_event): Return void.
27 (start_event_loop): Move from event-loop.c. Rewrite.
28 * remote-utils.c (handle_accept_event): Return void.
29 (reset_readchar): Use delete_timer.
30 (process_remaining): Return void.
31 (reschedule): Use create_timer.
32 * event-loop.h: Remove.
33 * event-loop.cc: Remove.
34 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
35
e487f994
TT
362020-04-13 Tom Tromey <tom@tromey.com>
37
38 * server.c (invoke_async_signal_handlers)
39 (check_async_event_handlers, flush_streams, gdb_select): New
40 functions.
41
8ae8e197
TT
422020-04-13 Tom Tromey <tom@tromey.com>
43
44 * configure: Rebuild.
45 * config.in: Rebuild.
46
360ad8b3
TT
472020-04-08 Tom Tromey <tromey@adacore.com>
48
49 PR gdb/22992
50 * win32-low.c (child_continue): Call matching_pending_stop.
51 (get_child_debug_event): Call fetch_pending_stop. Push pending
52 stop when needed.
53
523d4f80
TT
542020-04-08 Tom Tromey <tromey@adacore.com>
55
56 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
57 (win32_process_target::supports_stopped_by_sw_breakpoint):
58 Declare.
59 * win32-low.c (win32_supports_z_point_type): Always handle
60 Z_PACKET_SW_BP.
61 (win32_insert_point): Call insert_memory_breakpoint when needed.
62 (win32_remove_point): Call remove_memory_breakpoint when needed.
63 (win32_process_target::stopped_by_sw_breakpoint)
64 (win32_process_target::supports_stopped_by_sw_breakpoint): New
65 methods.
66 (win32_target_ops): Update.
67 (maybe_adjust_pc): New function.
68 (win32_wait): Call maybe_adjust_pc.
69
e54e5929
TT
702020-04-08 Tom Tromey <tromey@adacore.com>
71
72 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
73 field.
74 * win32-i386-low.c (the_low_target): Update.
75 * win32-arm-low.c (the_low_target): Update.
76
d6225aff
TT
772020-04-08 Tom Tromey <tromey@adacore.com>
78
79 * win32-low.h (win32_process_target::read_pc)
80 (win32_process_target::write_pc): Declare.
81 * win32-low.c (win32_process_target::read_pc)
82 (win32_process_target::write_pc): New methods.
83 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
84 functions.
85 (the_low_target): Update.
86 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
87 functions.
88 (the_low_target): Update.
89
2c1d95e8
TT
902020-04-08 Tom Tromey <tromey@adacore.com>
91
92 * win32-low.c (win32_kill, get_child_debug_event): Use
93 wait_for_debug_event.
94
e758e19c
TT
952020-04-08 Tom Tromey <tromey@adacore.com>
96
97 * win32-low.c (child_continue): Call continue_last_debug_event.
98
8d30e395
TT
992020-04-08 Tom Tromey <tromey@adacore.com>
100
101 * win32-low.c (handle_exception): Remove.
102 (windows_nat::handle_ms_vc_exception): New function.
103 (get_child_debug_event): Add "continue_status" parameter.
104 Update.
105 (win32_wait): Update.
106
a816ba18
TT
1072020-04-08 Tom Tromey <tromey@adacore.com>
108
109 * win32-low.c (windows_nat::handle_load_dll): Rename from
110 handle_load_dll. No longer static.
111 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
112 No longer static.
113
d41b524f
TT
1142020-04-08 Tom Tromey <tromey@adacore.com>
115
116 * win32-low.c (handle_output_debug_string): Add parameter. Change
117 return type.
118 (win32_kill, get_child_debug_event): Update.
119
3c76026d
TT
1202020-04-08 Tom Tromey <tromey@adacore.com>
121
122 * win32-low.c (current_process_handle, current_process_id)
123 (main_thread_id, last_sig, current_event, siginfo_er): Move to
124 nat/windows-nat.c.
125
9d8679cc
TT
1262020-04-08 Tom Tromey <tromey@adacore.com>
127
128 * win32-low.c (get_image_name): Remove.
129 (handle_load_dll): Update.
130
28688adf
TT
1312020-04-08 Tom Tromey <tromey@adacore.com>
132
133 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
134 No longer static. Change parameters.
135 (child_add_thread, child_fetch_inferior_registers)
136 (child_store_inferior_registers, win32_resume)
137 (win32_get_tib_address): Update.
138
4834dad0
TT
1392020-04-08 Tom Tromey <tromey@adacore.com>
140
141 * win32-low.h (struct win32_target_ops): Use qualified names where
142 needed.
143 * win32-i386-low.c: Add "using namespace".
144 * win32-low.c: Add "using namespace".
145 * win32-arm-low.c: Add "using namespace".
146
65bafd5b
TT
1472020-04-08 Tom Tromey <tromey@adacore.com>
148
149 * win32-low.c (delete_thread_info): Don't call CloseHandle.
150
98a03287
TT
1512020-04-08 Tom Tromey <tromey@adacore.com>
152
153 * win32-low.c (win32_require_context, suspend_one_thread): Use
154 windows_thread_info::suspend.
155 (continue_one_thread): Use windows_thread_info::resume.
156 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
157
62fe396b
TT
1582020-04-08 Tom Tromey <tromey@adacore.com>
159
160 * win32-i386-low.c (update_debug_registers)
161 (i386_prepare_to_resume, i386_thread_added): Update.
162
e9534bd2
TT
1632020-04-08 Tom Tromey <tromey@adacore.com>
164
165 * win32-low.c (child_add_thread): Use new.
166 (delete_thread_info): Use delete.
167
ae1f8880
TT
1682020-04-08 Tom Tromey <tromey@adacore.com>
169
170 * win32-low.h (struct windows_thread_info): Remove.
171
e56f8ccb
TT
1722020-04-08 Tom Tromey <tromey@adacore.com>
173
174 * win32-low.h (struct windows_thread_info): Rename from
175 win32_thread_info. Remove typedef.
176 (struct win32_target_ops, win32_require_context): Update.
177 * win32-low.c (win32_get_thread_context)
178 (win32_set_thread_context, win32_prepare_to_resume)
179 (win32_require_context, thread_rec, child_add_thread)
180 (delete_thread_info, continue_one_thread)
181 (child_fetch_inferior_registers, child_store_inferior_registers)
182 (win32_resume, suspend_one_thread, win32_get_tib_address):
183 Update.
184 * win32-i386-low.c (update_debug_registers)
185 (win32_get_current_dr, i386_get_thread_context)
186 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
187 (i386_fetch_inferior_register, i386_store_inferior_register):
188 Update.
189 * win32-arm-low.c (arm_get_thread_context)
190 (arm_fetch_inferior_register, arm_store_inferior_register):
191 Update.
192
0dd7b52e
TBA
1932020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
194
195 * linux-low.h (struct linux_target_ops): Remove.
196 (the_low_target): Remove.
197 * linux-x86-low.cc (the_low_target): Remove.
198 * linux-aarch64-low.cc (the_low_target): Ditto.
199 * linux-arm-low.cc (the_low_target): Ditto.
200 * linux-bfin-low.cc (the_low_target): Ditto.
201 * linux-cris-low.cc (the_low_target): Ditto.
202 * linux-crisv32-low.cc (the_low_target): Ditto.
203 * linux-ia64-low.cc (the_low_target): Ditto.
204 * linux-m32r-low.cc (the_low_target): Ditto.
205 * linux-m68k-low.cc (the_low_target): Ditto.
206 * linux-mips-low.cc (the_low_target): Ditto.
207 * linux-nios2-low.cc (the_low_target): Ditto.
208 * linux-ppc-low.cc (the_low_target): Ditto.
209 * linux-riscv-low.cc (the_low_target): Ditto.
210 * linux-s390-low.cc (the_low_target): Ditto.
211 * linux-sh-low.cc (the_low_target): Ditto.
212 * linux-sparc-low.cc (the_low_target): Ditto.
213 * linux-tic6x-low.cc (the_low_target): Ditto.
214 * linux-tile-low.cc (the_low_target): Ditto.
215 * linux-xtensa-low.cc (the_low_target): Ditto.
216
fc5ecdb6
TBA
2172020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
218
219 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
220 linux target define the op by overriding the declaration in
221 process_stratum_target.
222
223 * linux-low.h (struct linux_target_ops): Remove the op.
224 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
225 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
226 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
227 (x86_get_ipa_tdesc_idx): Turn into...
228 (x86_target::get_ipa_tdesc_idx): ...this.
229 (the_low_target): Remove the op field.
230 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
231 (ppc_get_ipa_tdesc_idx): Turn into...
232 (ppc_target::get_ipa_tdesc_idx): ...this.
233 (the_low_target): Remove the op field.
234 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
235 (s390_get_ipa_tdesc_idx): Turn into...
236 (s390_target::get_ipa_tdesc_idx): ...this.
237 (the_low_target): Remove the op field.
238
9eedd27d
TBA
2392020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
240
241 Turn the 'get_syscall_trapinfo' linux target op into a method
242 of process_stratum_target.
243
244 * linux-low.h (struct linux_target_ops): Remove the op.
245 (class linux_process_target) <get_syscall_trapinfo>
246 <gdb_catch_this_syscall>
247 <low_supports_catch_syscall>
248 <low_get_syscall_trapinfo>: Declare.
249 * linux-low.cc (get_syscall_trapinfo): Turn into...
250 (linux_process_target::get_syscall_trapinfo): ...this.
251 (linux_process_target::low_get_syscall_trapinfo): Define.
252 (gdb_catch_this_syscall_p): Turn into...
253 (linux_process_target::gdb_catch_this_syscall): ...this.
254 (linux_process_target::low_supports_catch_syscall): Define.
255
256 Update the callers below.
257
258 (linux_process_target::wait_1)
259 (linux_process_target::supports_catch_syscall)
260
261 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
262 <low_get_syscall_trapinfo>: Declare.
263 (x86_target::low_supports_catch_syscall): Define.
264 (x86_get_syscall_trapinfo): Turn into...
265 (x86_target::low_get_syscall_trapinfo): ...this.
266 (the_low_target): Remove the op field.
267 * linux-aarch64-low.cc (class aarch64_target)
268 <low_supports_catch_syscall>
269 <low_get_syscall_trapinfo>: Declare.
270 (aarch64_target::low_supports_catch_syscall): Define.
271 (aarch64_get_syscall_trapinfo): Turn into...
272 (aarch64_target::low_get_syscall_trapinfo): ...this.
273 (the_low_target): Remove the op field.
274 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
275 <low_get_syscall_trapinfo>: Declare.
276 (arm_target::low_supports_catch_syscall): Define.
277 (arm_get_syscall_trapinfo): Turn into...
278 (arm_target::low_get_syscall_trapinfo): ...this.
279 (the_low_target): Remove the op field.
280 * linux-ppc-low.cc (the_low_target): Remove the op field.
281 * linux-s390-low.cc (the_low_target): Remove the op field.
282
b31cdfa6
TBA
2832020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
284
285 Remove the 'supports_hardware_single_step' linux target op and
286 override the process_stratum_target's op definition in
287 linux_process_target to return true.
288
289 * linux-low.h (struct linux_target_ops): Remove the op.
290 (class linux_process_target) <finish_step_over>
291 <maybe_hw_step>: Declare.
292 * linux-low.cc (can_hardware_single_step): Remove.
293 (maybe_hw_step): Turn into...
294 (linux_process_target::maybe_hw_step): ...this.
295 (finish_step_over): Turn into...
296 (linux_process_target::finish_step_over): ...this.
297 (linux_process_target::supports_hardware_single_step): Update
298 to return true.
299
300 Update the callers below.
301
302 (linux_process_target::single_step)
303 (linux_process_target::resume_one_lwp_throw)
304
305 * linux-arm-low.cc (class arm_target)
306 <supports_hardware_single_step>: Declare.
307 (arm_supports_hardware_single_step): Turn into...
308 (arm_target::supports_hardware_single_step): ...this.
309 (the_low_target): Remove the op field.
310 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
311 (the_low_target): Remove the op field.
312 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
313 Remove.
314 (the_low_target): Remove the op field.
315 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
316 (the_low_target): Remove the op field.
317 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
318 (the_low_target): Remove the op field.
319 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
320 (the_low_target): Remove the op field.
321 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
322 (the_low_target): Remove the op field.
323 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
324 (the_low_target): Remove the op field.
325 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
326 (the_low_target): Remove the op field.
327 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
328 (the_low_target): Remove the op field.
329 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
330 (the_low_target): Remove the op field.
331 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
332 (the_low_target): Remove the op field.
333 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
334 Remove.
335 (the_low_target): Remove the op field.
336
9cfd8715
TBA
3372020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
338
339 Turn the 'supports_range_stepping' linux target op into a method
340 of linux_process_target.
341
342 * linux-low.h (struct linux_target_ops): Remove the op.
343 (class linux_process_target) <low_supports_range_stepping>: Declare.
344 * linux-low.cc (linux_process_target::low_supports_range_stepping):
345 Define.
346 (linux_process_target::supports_range_stepping): Update the call
347 site.
348 * linux-x86-low.cc (class x86_target)
349 <low_supports_range_stepping>: Declare.
350 (x86_supports_range_stepping): Turn into...
351 (x86_target::low_supports_range_stepping): ...this.
352 (the_low_target): Remove the op field.
353 * linux-aarch64-low.cc (class aarch64_target)
354 <low_supports_range_stepping>: Declare.
355 (aarch64_supports_range_stepping): Turn into...
356 (aarch64_target::low_supports_range_stepping): ...this.
357 (the_low_target): Remove the op field.
358 * linux-arm-low.cc (the_low_target): Remove the op field.
359 * linux-bfin-low.cc (the_low_target): Ditto.
360 * linux-crisv32-low.cc (the_low_target): Ditto.
361 * linux-m32r-low.cc (the_low_target): Ditto.
362 * linux-m68k-low.cc (the_low_target): Ditto.
363 * linux-ppc-low.cc (the_low_target): Ditto.
364 * linux-s390-low.cc (the_low_target): Ditto.
365 * linux-sh-low.cc (the_low_target): Ditto.
366 * linux-tic6x-low.cc (the_low_target): Ditto.
367 * linux-tile-low.cc (the_low_target): Ditto.
368 * linux-xtensa-low.cc (the_low_target): Ditto.
369
ab64c999
TBA
3702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
371
372 Remove the 'emit_ops' linux target ops and let the concrete
373 linux target define the op by overriding the declaration of
374 process_stratum_target.
375
376 * linux-low.h (struct linux_target_ops): Remove the op.
377 (class linux_process_target) <emit_ops>: Remove.
378 * linux-low.cc (linux_process_target::emit_ops): Remove.
379 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
380 (x86_emit_ops): Turn into...
381 (x86_target::emit_ops): ...this.
382 (the_low_target): Remove the op field.
383 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
384 (aarch64_emit_ops): Turn into...
385 (aarch64_target::emit_ops): ...this.
386 (the_low_target): Remove the op field.
387 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
388 (ppc_emit_ops): Turn into...
389 (ppc_target::emit_ops): ...this.
390 (the_low_target): Remove the op field.
391 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
392 (s390_emit_ops): Turn into...
393 (s390_target::emit_ops): ...this.
394 (the_low_target): Remove the op field.
395 * linux-arm-low.cc (the_low_target): Remove the op field.
396 * linux-bfin-low.cc (the_low_target): Ditto.
397 * linux-crisv32-low.cc (the_low_target): Ditto.
398 * linux-m32r-low.cc (the_low_target): Ditto.
399 * linux-m68k-low.cc (the_low_target): Ditto.
400 * linux-sh-low.cc (the_low_target): Ditto.
401 * linux-tic6x-low.cc (the_low_target): Ditto.
402 * linux-tile-low.cc (the_low_target): Ditto.
403 * linux-xtensa-low.cc (the_low_target): Ditto.
404
809a0c35
TBA
4052020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
406
407 Remove the 'install_fast_tracepoint_jump_pad' and
408 'get_min_fast_tracepoint_insn_len' linux target ops to let the
409 concrete linux target define the ops by overriding the declarations
410 of process_stratum_target.
411
412 * linux-low.h (struct linux_target_ops): Remove the ops.
413 (class linux_process_target) <supports_fast_tracepoints>
414 <install_fast_tracepoint_jump_pad>
415 <get_min_fast_tracepoint_insn_len>: Remove.
416 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
417 (linux_process_target::install_fast_tracepoint_jump_pad)
418 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
419 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
420 <install_fast_tracepoint_jump_pad>
421 <get_min_fast_tracepoint_insn_len>: Declare.
422 (x86_target::supports_fast_tracepoints): Define.
423 (x86_install_fast_tracepoint_jump_pad): Turn into...
424 (x86_target::install_fast_tracepoint_jump_pad): ...this.
425 (x86_get_min_fast_tracepoint_insn_len): Turn into...
426 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
427 (the_low_target): Remove the op fields.
428 * linux-aarch64-low.cc (class aarch64_target)
429 <supports_fast_tracepoints>
430 <install_fast_tracepoint_jump_pad>
431 <get_min_fast_tracepoint_insn_len>: Declare.
432 (aarch64_target::supports_fast_tracepoints): Define.
433 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
434 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
435 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
436 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
437 (the_low_target): Remove the op fields.
438 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
439 <install_fast_tracepoint_jump_pad>
440 <get_min_fast_tracepoint_insn_len>: Declare.
441 (ppc_target::supports_fast_tracepoints): Define.
442 (ppc_install_fast_tracepoint_jump_pad): Turn into...
443 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
444 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
445 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
446 (the_low_target): Remove the op fields.
447 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
448 <install_fast_tracepoint_jump_pad>
449 <get_min_fast_tracepoint_insn_len>: Declare.
450 (s390_target::supports_fast_tracepoints): Define.
451 (s390_install_fast_tracepoint_jump_pad): Turn into...
452 (s390_target::install_fast_tracepoint_jump_pad): ...this.
453 (s390_get_min_fast_tracepoint_insn_len): Turn into...
454 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
455 (the_low_target): Remove the op fields.
456 * linux-arm-low.cc (the_low_target): Remove the op fields.
457 * linux-bfin-low.cc (the_low_target): Ditto.
458 * linux-crisv32-low.cc (the_low_target): Ditto.
459 * linux-m32r-low.cc (the_low_target): Ditto.
460 * linux-m68k-low.cc (the_low_target): Ditto.
461 * linux-sh-low.cc (the_low_target): Ditto.
462 * linux-tic6x-low.cc (the_low_target): Ditto.
463 * linux-tile-low.cc (the_low_target): Ditto.
464 * linux-xtensa-low.cc (the_low_target): Ditto.
465
13e567af
TBA
4662020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
467
468 Turn the 'get_thread_area' linux target op into a method of
469 process_stratum_target.
470
471 * linux-low.h (struct linux_target_ops): Remove the op.
472 (class linux_process_target) <stuck_in_jump_pad>
473 <linux_fast_tracepoint_collecting>
474 <low_get_thread_area>: Declare.
475 * linux-low.cc (supports_fast_tracepoints): Remove.
476 (linux_fast_tracepoint_collecting): Turn into...
477 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
478 (linux_process_target::low_get_thread_area): Define.
479 (stuck_in_jump_pad_callback): Turn into...
480 (linux_process_target::stuck_in_jump_pad): ...this.
481
482 Update the caller below.
483
484 (linux_process_target::stabilize_threads)
485
486 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
487 Declare.
488 (x86_get_thread_area): Turn into...
489 (x86_target::low_get_thread_area): ...this.
490 (the_low_target): Remove the op field.
491 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
492 Declare.
493 (aarch64_get_thread_area): Turn into...
494 (aarch64_target::low_get_thread_area): ...this.
495 (the_low_target): Remove the op field.
496 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
497 Declare.
498 (ppc_get_thread_area): Turn into...
499 (ppc_target::low_get_thread_area): ...this.
500 (the_low_target): Remove the op field.
501 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
502 Declare.
503 (s390_get_thread_area): Turn into...
504 (s390_target::low_get_thread_area): ...this.
505 (the_low_target): Remove the op field.
506 * linux-arm-low.cc (the_low_target): Remove the op field.
507 * linux-bfin-low.cc (the_low_target): Ditto.
508 * linux-crisv32-low.cc (the_low_target): Ditto.
509 * linux-m32r-low.cc (the_low_target): Ditto.
510 * linux-m68k-low.cc (the_low_target): Ditto.
511 * linux-sh-low.cc (the_low_target): Ditto.
512 * linux-tic6x-low.cc (the_low_target): Ditto.
513 * linux-tile-low.cc (the_low_target): Ditto.
514 * linux-xtensa-low.cc (the_low_target): Ditto.
515
47f70aa7
TBA
5162020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
517
518 Remote the 'supports_tracepoints' linux target op and let the
519 concrete linux target define it by overriding the op declared in
520 process_stratum_target.
521
522 * linux-low.h (struct linux_target_ops): Remove the op.
523 (class linux_process_target) <supports_tracepoints>: Remove.
524 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
525 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
526 Declare.
527 (x86_supports_tracepoints): Turn into...
528 (x86_target::supports_tracepoints): ...this.
529 (the_low_target): Remove the op field.
530 * linux-aarch64-low.cc (class aarch64_target)
531 <supports_tracepoints>: Declare.
532 (aarch64_supports_tracepoints): Turn into...
533 (aarch64_target::supports_tracepoints): ...this.
534 (the_low_target): Remove the op field.
535 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
536 Declare.
537 (ppc_supports_tracepoints): Turn into...
538 (ppc_target::supports_tracepoints): ...this.
539 (the_low_target): Remove the op field.
540 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
541 Declare.
542 (s390_supports_tracepoints): Turn into...
543 (s390_target::supports_tracepoints): ...this.
544 (the_low_target): Remove the op field.
545 * linux-arm-low.cc (the_low_target): Remove the op field.
546 * linux-bfin-low.cc (the_low_target): Ditto.
547 * linux-crisv32-low.cc (the_low_target): Ditto.
548 * linux-m32r-low.cc (the_low_target): Ditto.
549 * linux-m68k-low.cc (the_low_target): Ditto.
550 * linux-sh-low.cc (the_low_target): Ditto.
551 * linux-tic6x-low.cc (the_low_target): Ditto.
552 * linux-tile-low.cc (the_low_target): Ditto.
553 * linux-xtensa-low.cc (the_low_target): Ditto.
554
a5b5da92
TBA
5552020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
556
557 Remove the 'process_qsupported' linux target op and let a concrete
558 linux target define the op by overriding the op declaration in
559 process_stratum_target.
560
561 * linux-low.h (struct linux_target_ops): Remove the op.
562 (class linux_process_target) <process_qsupported>: Remove.
563 * linux-low.cc (linux_process_target::process_qsupported): Remove.
564 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
565 (x86_linux_process_qsupported): Turn into...
566 (x86_target::process_qsupported): ...this.
567 (the_low_target): Remove the op field.
568 * linux-aarch64-low.cc (the_low_target): Remove the op
569 field.
570 * linux-arm-low.cc (the_low_target): Ditto.
571 * linux-bfin-low.cc (the_low_target): Ditto.
572 * linux-crisv32-low.cc (the_low_target): Ditto.
573 * linux-m32r-low.cc (the_low_target): Ditto.
574 * linux-m68k-low.cc (the_low_target): Ditto.
575 * linux-ppc-low.cc (the_low_target): Ditto.
576 * linux-s390-low.cc (the_low_target): Ditto.
577 * linux-sh-low.cc (the_low_target): Ditto.
578 * linux-tic6x-low.cc (the_low_target): Ditto.
579 * linux-tile-low.cc (the_low_target): Ditto.
580 * linux-xtensa-low.cc (the_low_target): Ditto.
581
d7599cc0
TBA
5822020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
583
584 Turn the 'prepare_to_resume' linux target op into a method of
585 linux_process_target.
586
587 * linux-low.h (struct linux_target_ops): Remove the op.
588 (class linux_process_target) <low_prepare_to_resume>: Declare.
589 * linux-low.cc (linux_process_target::low_prepare_to_resume):
590 Define.
591
592 Update the callers below:
593
594 (linux_process_target::resume_one_lwp_throw)
595 (linux_process_target::low_prepare_to_resume)
596
597 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
598 Declare.
599 (x86_target::low_prepare_to_resume): Define.
600 (the_low_target): Remove the op field.
601 * linux-aarch64-low.cc (class aarch64_target)
602 <low_prepare_to_resume>: Declare.
603 (aarch64_target::low_prepare_to_resume): Define.
604 (the_low_target): Remove the op field.
605 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
606 Declare.
607 (arm_prepare_to_resume): Turn into...
608 (arm_target::low_prepare_to_resume): ...this.
609 (the_low_target): Remove the op field.
610 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
611 Declare.
612 (mips_linux_prepare_to_resume): Turn into...
613 (mips_target::low_prepare_to_resume): ...this.
614 (the_low_target): Remove the op field.
615 * linux-bfin-low.cc (the_low_target): Remove the op field.
616 * linux-crisv32-low.cc (the_low_target): Ditto.
617 * linux-m32r-low.cc (the_low_target): Ditto.
618 * linux-m68k-low.cc (the_low_target): Ditto.
619 * linux-ppc-low.cc (the_low_target): Ditto.
620 * linux-s390-low.cc (the_low_target): Ditto.
621 * linux-sh-low.cc (the_low_target): Ditto.
622 * linux-tic6x-low.cc (the_low_target): Ditto.
623 * linux-tile-low.cc (the_low_target): Ditto.
624 * linux-xtensa-low.cc (the_low_target): Ditto.
625
fd000fb3
TBA
6262020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
627
628 Turn the 'new_process', 'delete_process', 'new_thread',
629 'delete_thread', and 'new_fork' linux target ops into methods
630 of linux_process_target.
631
632 * linux-low.h (struct linux_target_ops): Remove the ops.
633 (class linux_process_target) <add_linux_process>
634 <add_lwp>
635 <delete_lwp>
636 <attach_lwp>
637 <detach_one_lwp>
638 <check_zombie_leaders>
639 <filter_exit_event>
640 <low_new_process>
641 <low_delete_process>
642 <low_new_thread>
643 <low_delete_thread>
644 <low_new_fork>: Declare.
645 * linux-low.cc (delete_lwp): Turn into...
646 (linux_process_target::delete_lwp): ...this.
647 (linux_process_target::low_delete_thread): Define.
648 (linux_add_process): Turn into...
649 (linux_process_target::add_linux_process): ...this.
650 (linux_process_target::low_new_process): Define.
651 (linux_process_target::low_delete_process): Define.
652 (linux_process_target::low_new_fork): Define.
653 (add_lwp): Turn into...
654 (linux_process_target::add_lwp): ...this.
655 (linux_process_target::low_new_thread): Define.
656 (linux_attach_lwp): Turn into...
657 (linux_process_target::attach_lwp): ...this.
658 (linux_detach_one_lwp): Turn into...
659 (linux_process_target::detach_one_lwp): ...this.
660 (linux_detach_lwp_callback): Remove and inline...
661 (linux_process_target::detach): ...here.
662 (check_zombie_leaders): Turn into...
663 (linux_process_target::check_zombie_leaders): ...this.
664 (filter_exit_event): Turn into...
665 (linux_process_target::filter_exit_event): ...this.
666
667 Update the callers below.
668
669 (linux_process_target::handle_extended_wait)
670 (linux_process_target::create_inferior)
671 (attach_proc_task_lwp_callback)
672 (linux_process_target::attach)
673 (linux_process_target::detach)
674 (linux_process_target::mourn)
675 * thread-db.cc (attach_thread)
676
677 * linux-x86-low.cc (class x86_target) <low_new_process>
678 <low_delete_process>
679 <low_new_thread>
680 <low_delete_thread>
681 <low_new_fork>: Declare.
682 (x86_linux_new_process): Turn into...
683 (x86_target::low_new_process): ...this.
684 (x86_linux_delete_process): Turn into...
685 (x86_target::low_delete_process): ...this.
686 (x86_target::low_new_thread): Define.
687 (x86_target::low_delete_thread): Define.
688 (x86_linux_new_fork): Turn into...
689 (x86_target::low_new_fork): ...this.
690 (the_low_target): Remove the op fields.
691 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
692 <low_delete_process>
693 <low_new_thread>
694 <low_delete_thread>
695 <low_new_fork>: Declare.
696 (aarch64_linux_new_process): Turn into...
697 (aarch64_target::low_new_process): ...this.
698 (aarch64_linux_delete_process): Turn into...
699 (aarch64_target::low_delete_process): ...this.
700 (aarch64_target::low_new_thread): Define.
701 (aarch64_target::low_delete_thread): Define.
702 (aarch64_linux_new_fork): Turn into...
703 (aarch64_target::low_new_fork): ...this.
704 (the_low_target): Remove the op fields.
705 * linux-arm-low.cc (class arm_target) <low_new_process>
706 <low_delete_process>
707 <low_new_thread>
708 <low_delete_thread>
709 <low_new_fork>: Declare.
710 (arm_new_process): Turn into...
711 (arm_target::low_new_process): ...this.
712 (arm_delete_process): Turn into...
713 (arm_target::low_delete_process): ...this.
714 (arm_new_thread): Turn into...
715 (arm_target::low_new_thread): ...this.
716 (arm_delete_thread): Turn into...
717 (arm_target::low_delete_thread): ...this.
718 (arm_new_fork): Turn into...
719 (arm_target::low_new_fork): ...this.
720 (the_low_target): Remove the op fields.
721 * linux-mips-low.cc (class mips_target) <low_new_process>
722 <low_delete_process>
723 <low_new_thread>
724 <low_delete_thread>
725 <low_new_fork>: Declare.
726 (mips_linux_new_process): Turn into...
727 (mips_target::low_new_process): ...this.
728 (mips_linux_delete_process): Turn into...
729 (mips_target::low_delete_process): ...this.
730 (mips_linux_new_thread): Turn into...
731 (mips_target::low_new_thread): ...this.
732 (mips_linux_delete_thread): Turn into...
733 (mips_target::low_delete_thread): ...this.
734 (mips_linux_new_fork): Turn into...
735 (mips_target::low_new_fork): ...this.
736 (the_low_target): Remove the op fields.
737 * linux-bfin-low.cc (the_low_target): Remove the op fields.
738 * linux-crisv32-low.cc (the_low_target): Ditto.
739 * linux-m32r-low.cc (the_low_target): Ditto.
740 * linux-m68k-low.cc (the_low_target): Ditto.
741 * linux-ppc-low.cc (the_low_target): Ditto.
742 * linux-s390-low.cc (the_low_target): Ditto.
743 * linux-sh-low.cc (the_low_target): Ditto.
744 * linux-tic6x-low.cc (the_low_target): Ditto.
745 * linux-tile-low.cc (the_low_target): Ditto.
746 * linux-xtensa-low.cc (the_low_target): Ditto.
747
cb63de7c
TBA
7482020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
749
750 Turn the 'siginfo_fixup' linux target op into a method of
751 linux_process_target.
752
753 * linux-low.h (struct linux_target_ops): Remove the op.
754 (class linux_process_target) <siginfo_fixup>
755 <low_siginfo_fixup>: Declare.
756 * linux-low.cc (siginfo_fixup): Turn into...
757 (linux_process_target::siginfo_fixup): ...this.
758 (linux_process_target::low_siginfo_fixup): Define.
759 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
760 (x86_siginfo_fixup): Turn into...
761 (x86_target::low_siginfo_fixup): ...this.
762 (the_low_target): Remove the op field.
763 * linux-aarch64-low.cc (class aarch64_target):
764 <low_siginfo_fixup>: Declare.
765 (aarch64_linux_siginfo_fixup): Turn into...
766 (aarch64_target::low_siginfo_fixup): ...this.
767 (the_low_target): Remove the op field.
768 * linux-arm-low.cc (the_low_target): Remove the op field.
769 * linux-bfin-low.cc (the_low_target): Ditto.
770 * linux-crisv32-low.cc (the_low_target): Ditto.
771 * linux-m32r-low.cc (the_low_target): Ditto.
772 * linux-m68k-low.cc (the_low_target): Ditto.
773 * linux-mips-low.cc (the_low_target): Ditto.
774 * linux-ppc-low.cc (the_low_target): Ditto.
775 * linux-s390-low.cc (the_low_target): Ditto.
776 * linux-sh-low.cc (the_low_target): Ditto.
777 * linux-tic6x-low.cc (the_low_target): Ditto.
778 * linux-tile-low.cc (the_low_target): Ditto.
779 * linux-xtensa-low.cc (the_low_target): Ditto.
780
b35db733
TBA
7812020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
782
783 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
784 linux target ops into methods of linux_process_target.
785
786 * linux-low.h (struct linux_target_ops): Remove the ops.
787 (class linux_process_target) <low_collect_ptrace_register>
788 <low_store_ptrace_register>: Declare.
789 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
790 (linux_process_target::low_supply_ptrace_register): Define.
791
792 Update the callers below.
793
794 (linux_process_target::fetch_register)
795 (linux_process_target::store_register)
796
797 * linux-x86-low.cc (the_low_target): Remove the op fields.
798 * linux-aarch64-low.cc (the_low_target): Ditto.
799 * linux-arm-low.cc (the_low_target): Ditto.
800 * linux-bfin-low.cc (the_low_target): Ditto.
801 * linux-crisv32-low.cc (the_low_target): Ditto.
802 * linux-m32r-low.cc (the_low_target): Ditto.
803 * linux-m68k-low.cc (the_low_target): Ditto.
804 * linux-sh-low.cc (the_low_target): Ditto.
805 * linux-sparc-low.cc (the_low_target): Ditto.
806 * linux-tic6x-low.cc (the_low_target): Ditto.
807 * linux-tile-low.cc (the_low_target): Ditto.
808 * linux-xtensa-low.cc (the_low_target): Ditto.
809 * linux-mips-low.cc (class mips_target)
810 <low_collect_ptrace_register>
811 <low_supply_ptrace_register>: Declare.
812 (mips_collect_ptrace_register): Turn into ...
813 (mips_target::low_collect_ptrace_register): ...this.
814 (mips_supply_ptrace_register): Turn into...
815 (mips_target::low_supply_ptrace_register): ...this.
816 (the_low_target): Remove the op fields.
817 * linux-ppc-low.cc (class ppc_target)
818 <low_collect_ptrace_register>
819 <low_supply_ptrace_register>: Declare.
820 (ppc_collect_ptrace_register): Turn into ...
821 (ppc_target::low_collect_ptrace_register): ...this.
822 (ppc_supply_ptrace_register): Turn into ...
823 (ppc_target::low_supply_ptrace_register): ...this.
824 (ppc_fill_gregset): Update for the calls to
825 low_collect_ptrace_register.
826 (the_low_target): Remove the op fields.
827 * linux-s390-low.cc (class s390_target)
828 <low_collect_ptrace_register>
829 <low_supply_ptrace_register>: Declare.
830 (s390_collect_ptrace_register): Turn into ...
831 (s390_target::low_collect_ptrace_register): ...this.
832 (s390_supply_ptrace_register): Turn into ...
833 (s390_target::low_supply_ptrace_register): ...this.
834 (s390_fill_gregset): Update for the calls to
835 low_collect_ptrace_register.
836 (the_low_target): Remove the op fields.
837
ac1bbaca
TBA
8382020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
839
840 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
841 target ops into methods of linux_process_target.
842
843 * linux-low.h (struct linux_target_ops): Remove the ops.
844 (class linux_process_target) <check_stopped_by_watchpoint>
845 <low_stopped_by_watchpoint>
846 <low_stopped_data_address>: Declare.
847 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
848 (linux_process_target::check_stopped_by_watchpoint): ...this.
849 (linux_process_target::low_stopped_by_watchpoint): Define.
850 (linux_process_target::low_stopped_data_address): Define.
851 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
852 <low_stopped_data_address>: Declare.
853 (x86_stopped_by_watchpoint): Turn into...
854 (x86_target::low_stopped_by_watchpoint): ...this.
855 (x86_stopped_data_address): Turn into...
856 (x86_target::low_stopped_data_address): ...this.
857 (the_low_target): Remove the op fields.
858 * linux-aarch64-low.cc (class aarch64_target)
859 <low_stopped_by_watchpoint>
860 <low_stopped_data_address>: Declare.
861 (aarch64_stopped_by_watchpoint): Turn into...
862 (aarch64_target::low_stopped_by_watchpoint): ...this.
863 (aarch64_stopped_data_address): Turn into...
864 (aarch64_target::low_stopped_data_address): ...this.
865 (the_low_target): Remove the op fields.
866 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
867 <low_stopped_data_address>: Declare.
868 (arm_stopped_by_watchpoint): Turn into...
869 (arm_target::low_stopped_by_watchpoint): ...this.
870 (arm_stopped_data_address): Turn into...
871 (arm_target::low_stopped_data_address): ...this.
872 (the_low_target): Remove the op fields.
873 * linux-crisv32-low.cc (class crisv32_target)
874 <low_stopped_by_watchpoint>
875 <low_stopped_data_address>: Declare.
876 (cris_stopped_by_watchpoint): Turn into...
877 (crisv32_target::low_stopped_by_watchpoint): ...this.
878 (cris_stopped_data_address): Turn into...
879 (crisv32_target::low_stopped_data_address): ...this.
880 (the_low_target): Remove the op fields.
881 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
882 <low_stopped_data_address>: Declare.
883 (mips_stopped_by_watchpoint): Turn into...
884 (mips_target::low_stopped_by_watchpoint): ...this.
885 (mips_stopped_data_address): Turn into...
886 (mips_target::low_stopped_data_address): ...this.
887 (the_low_target): Remove the op fields.
888 * linux-bfin-low.cc (the_low_target): Remove the op fields.
889 * linux-m32r-low.cc (the_low_target): Ditto.
890 * linux-m68k-low.cc (the_low_target): Ditto.
891 * linux-ppc-low.cc (the_low_target): Ditto.
892 * linux-s390-low.cc (the_low_target): Ditto.
893 * linux-sh-low.cc (the_low_target): Ditto.
894 * linux-sparc-low.cc (the_low_target): Ditto.
895 * linux-tic6x-low.cc (the_low_target): Ditto.
896 * linux-tile-low.cc (the_low_target): Ditto.
897 * linux-xtensa-low.cc (the_low_target): Ditto.
898
9db9aa23
TBA
8992020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
900
901 Turn the 'insert_point' and 'remove_point' linux target ops into
902 methods of linux_process_target.
903
904 * linux-low.h (struct linux_target_ops): Remove the ops.
905 (class linux_process_target) <low_insert_point>
906 <low_remove_point>: Declare.
907 * linux-low.cc (linux_process_target::low_insert_point)
908 (linux_process_target::low_remove_point): Define.
909 (linux_process_target::insert_point)
910 (linux_process_target::remove_point): Update for calls to
911 low_insert_point and low_remove_point.
912 * linux-x86-low.cc (class x86_target) <low_insert_point>
913 <low_remove_point>: Declare.
914 (x86_insert_point): Turn into...
915 (x86_target::low_insert_point): ...this.
916 (x86_remove_point): Turn into...
917 (x86_target::low_remove_point): ...this.
918 (the_low_target): Remove the op fields.
919 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
920 <low_remove_point>: Declare.
921 (aarch64_insert_point): Turn into...
922 (aarch64_target::low_insert_point): ...this.
923 (aarch64_remove_point): Turn into...
924 (aarch64_target::low_remove_point): ...this.
925 (the_low_target): Remove the op fields.
926 * linux-arm-low.cc (class arm_target) <low_insert_point>
927 <low_remove_point>: Declare.
928 (arm_insert_point): Turn into...
929 (arm_target::low_insert_point): ...this.
930 (arm_remove_point): Turn into...
931 (arm_target::low_remove_point): ...this.
932 (the_low_target): Remove the op fields.
933 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
934 <low_remove_point>: Declare.
935 (crisv32_insert_point): Turn into...
936 (crisv32_target::low_insert_point): ...this.
937 (crisv32_remove_point): Turn into...
938 (crisv32_target::low_remove_point): ...this.
939 (the_low_target): Remove the op fields.
940 * linux-mips-low.cc (class mips_target) <low_insert_point>
941 <low_remove_point>: Declare.
942 (mips_insert_point): Turn into...
943 (mips_target::low_insert_point): ...this.
944 (mips_remove_point): Turn into...
945 (mips_target::low_remove_point): ...this.
946 (the_low_target): Remove the op fields.
947 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
948 <low_remove_point>: Declare.
949 (ppc_insert_point): Turn into...
950 (ppc_target::low_insert_point): ...this.
951 (ppc_remove_point): Turn into...
952 (ppc_target::low_remove_point): ...this.
953 (the_low_target): Remove the op fields.
954 * linux-bfin-low.cc (the_low_target): Remove the op fields.
955 * linux-m32r-low.cc (the_low_target): Ditto.
956 * linux-m68k-low.cc (the_low_target): Ditto.
957 * linux-s390-low.cc (the_low_target): Ditto.
958 * linux-sh-low.cc (the_low_target): Ditto.
959 * linux-sparc-low.cc (the_low_target): Ditto.
960 * linux-tic6x-low.cc (the_low_target): Ditto.
961 * linux-tile-low.cc (the_low_target): Ditto.
962 * linux-xtensa-low.cc (the_low_target): Ditto.
963
007c9b97
TBA
9642020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
965
966 Remove the 'supports_z_point_type' linux target op and let the
967 concrete linux target define it by overriding the op declared in
968 process_stratum_target.
969
970 * linux-low.cc (linux_process_target::supports_z_point_type):
971 Remove.
972 * linux-low.h (struct linux_target_ops): Remove the op.
973 (class linux_process_target) <supports_z_point_type>: Remove.
974 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
975 Declare.
976 (x86_supports_z_point_type): Turn into...
977 (x86_target::supports_z_point_type): ...this.
978 (the_low_target): Remove the op field.
979 * linux-aarch64-low.cc (class aarch64_target)
980 <supports_z_point_type>: Declare.
981 (aarch64_supports_z_point_type): Turn into...
982 (aarch64_target::supports_z_point_type): ...this.
983 (the_low_target): Remove the op field.
984 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
985 Declare.
986 (arm_supports_z_point_type): Turn into...
987 (arm_target::supports_z_point_type): ...this.
988 (the_low_target): Remove the op field.
989 * linux-crisv32-low.cc (class crisv32_target)
990 <supports_z_point_type>: Declare.
991 (cris_supports_z_point_type): Turn into...
992 (crisv32_target::supports_z_point_type): ...this.
993 (the_low_target): Remove the op field.
994 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
995 Declare.
996 (mips_supports_z_point_type): Turn into...
997 (mips_target::supports_z_point_type): ...this.
998 (the_low_target): Remove the op field.
999 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1000 Declare.
1001 (ppc_supports_z_point_type): Turn into...
1002 (ppc_target::supports_z_point_type): ...this.
1003 (the_low_target): Remove the op field.
1004 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1005 Declare.
1006 (s390_supports_z_point_type): Turn into...
1007 (s390_target::supports_z_point_type): ...this.
1008 (the_low_target): Remove the op field.
1009 * linux-bfin-low.cc (the_low_target): Remove the op field.
1010 * linux-m32r-low.cc (the_low_target): Ditto.
1011 * linux-m68k-low.cc (the_low_target): Ditto.
1012 * linux-sh-low.cc (the_low_target): Ditto.
1013 * linux-sparc-low.cc (the_low_target): Ditto.
1014 * linux-tic6x-low.cc (the_low_target): Ditto.
1015 * linux-tile-low.cc (the_low_target): Ditto.
1016 * linux-xtensa-low.cc (the_low_target): Ditto.
1017
d7146cda
TBA
10182020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1019
1020 Turn the 'breakpoint_at' linux target op into a method of
1021 linux_process_target.
1022
1023 * linux-low.h (struct linux_target_ops): Remove the op.
1024 (class linux_process_target) <low_breakpoint_at>: Declare.
1025
1026 Update the callers below:
1027
1028 * linux-low.cc (linux_process_target::save_stop_reason)
1029 (linux_process_target::thread_still_has_status_pending)
1030 (linux_process_target::wait_1)
1031
1032 * linux-x86-low.cc (class x86_target)
1033 <low_breakpoint_at>: Declare.
1034 (x86_breakpoint_at): Turn into...
1035 (x86_target::low_breakpoint_at): ...this.
1036 (the_low_target): Remove the op field.
1037 * linux-aarch64-low.cc (class aarch64_target)
1038 <low_breakpoint_at>: Declare.
1039 (aarch64_breakpoint_at): Turn into...
1040 (aarch64_target::low_breakpoint_at): ...this.
1041 (the_low_target): Remove the op field.
1042 * linux-arm-low.cc (class arm_target)
1043 <low_breakpoint_at>: Declare.
1044 (arm_target::low_breakpoint_at): Define.
1045 (the_low_target): Remove the op field.
1046 * linux-bfin-low.cc (class bfin_target)
1047 <low_breakpoint_at>: Declare.
1048 (bfin_breakpoint_at): Turn into...
1049 (bfin_target::low_breakpoint_at): ...this.
1050 (the_low_target): Remove the op field.
1051 * linux-cris-low.cc (class cris_target)
1052 <low_breakpoint_at>: Declare.
1053 (cris_breakpoint_at): Turn into...
1054 (cris_target::low_breakpoint_at): ...this.
1055 (the_low_target): Remove the op field.
1056 * linux-crisv32-low.cc (class crisv32_target)
1057 <low_breakpoint_at>: Declare.
1058 (crisv32_breakpoint_at): Turn into...
1059 (crisv32_target::low_breakpoint_at): ...this.
1060 (the_low_target): Remove the op field.
1061 * linux-ia64-low.cc (class ia64_target)
1062 <low_breakpoint_at>: Declare.
1063 (ia64_target::low_breakpoint_at): Define.
1064 * linux-m32r-low.cc (class m32r_target)
1065 <low_breakpoint_at>: Declare.
1066 (m32r_breakpoint_at): Turn into...
1067 (m32r_target::low_breakpoint_at): ...this.
1068 (the_low_target): Remove the op field.
1069 * linux-m68k-low.cc (class m68k_target)
1070 <low_breakpoint_at>: Declare.
1071 (m68k_breakpoint_at): Turn into...
1072 (m68k_target::low_breakpoint_at): ...this.
1073 (the_low_target): Remove the op field.
1074 * linux-mips-low.cc (class mips_target)
1075 <low_breakpoint_at>: Declare.
1076 (mips_breakpoint_at): Turn into...
1077 (mips_target::low_breakpoint_at): ...this.
1078 (the_low_target): Remove the op field.
1079 * linux-nios2-low.cc (class nios2_target)
1080 <low_breakpoint_at>: Declare.
1081 (nios2_breakpoint_at): Turn into...
1082 (nios2_target::low_breakpoint_at): ...this.
1083 (the_low_target): Remove the op field.
1084 * linux-ppc-low.cc (class ppc_target)
1085 <low_breakpoint_at>: Declare.
1086 (ppc_breakpoint_at): Turn into...
1087 (ppc_target::low_breakpoint_at): ...this.
1088 (the_low_target): Remove the op field.
1089 * linux-riscv-low.cc (class riscv_target)
1090 <low_breakpoint_at>: Declare.
1091 (riscv_breakpoint_at): Turn into...
1092 (riscv_target::low_breakpoint_at): ...this.
1093 (the_low_target): Remove the op field.
1094 * linux-s390-low.cc (class s390_target)
1095 <low_breakpoint_at>: Declare.
1096 (s390_breakpoint_at): Turn into...
1097 (s390_target::low_breakpoint_at): ...this.
1098 (the_low_target): Remove the op field.
1099 * linux-sh-low.cc (class sh_target)
1100 <low_breakpoint_at>: Declare.
1101 (sh_breakpoint_at): Turn into...
1102 (sh_target::low_breakpoint_at): ...this.
1103 (the_low_target): Remove the op field.
1104 * linux-sparc-low.cc (class sparc_target)
1105 <low_breakpoint_at>: Declare.
1106 (sparc_breakpoint_at): Turn into...
1107 (sparc_target::low_breakpoint_at): ...this.
1108 (the_low_target): Remove the op field.
1109 * linux-tic6x-low.cc (class tic6x_target)
1110 <low_breakpoint_at>: Declare.
1111 (tic6x_breakpoint_at): Turn into...
1112 (tic6x_target::low_breakpoint_at): ...this.
1113 (the_low_target): Remove the op field.
1114 * linux-tile-low.cc (class tile_target)
1115 <low_breakpoint_at>: Declare.
1116 (tile_breakpoint_at): Turn into...
1117 (tile_target::low_breakpoint_at): ...this.
1118 (the_low_target): Remove the op field.
1119 * linux-xtensa-low.cc (class xtensa_target)
1120 <low_breakpoint_at>: Declare.
1121 (xtensa_breakpoint_at): Turn into...
1122 (xtensa_target::low_breakpoint_at): ...this.
1123 (the_low_target): Remove the op field.
1124
d4807ea2
TBA
11252020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1126
1127 Turn the 'decr_pc_after_break' linux_target_ops field into
1128 a method of linux_process_target.
1129
1130 * linux-low.h (struct linux_target_ops)
1131 <decr_pc_after_break>: Remove.
1132 (class linux_process_target) <low_decr_pc_after_break>: New method
1133 declaration.
1134 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1135 New method implementation.
1136
1137 Update the users below.
1138
1139 (linux_process_target::save_stop_reason)
1140 (linux_process_target::wait_1)
1141 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1142 New declaration.
1143 (x86_target::low_decr_pc_after_break): New method implementation.
1144 (the_low_target): Remove the field.
1145 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1146 New declaration.
1147 (bfin_target::low_decr_pc_after_break): New method implementation.
1148 (the_low_target): Remove the field.
1149 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1150 New declaration.
1151 (m68k_target::low_decr_pc_after_break): New method implementation.
1152 (the_low_target): Remove the field.
1153 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1154 New declaration.
1155 (s390_target::low_decr_pc_after_break): New method implementation.
1156 (the_low_target): Remove the field.
1157 * linux-aarch64-low.cc (the_low_target): Remove the field.
1158 * linux-arm-low.cc (the_low_target): Remove the field.
1159 * linux-cris-low.cc (the_low_target): Remove the field.
1160 * linux-crisv32-low.cc (the_low_target): Remove the field.
1161 * linux-m32r-low.cc (the_low_target): Remove the field.
1162 * linux-mips-low.cc (the_low_target): Remove the field.
1163 * linux-nios2-low.cc (the_low_target): Remove the field.
1164 * linux-ppc-low.cc (the_low_target): Remove the field.
1165 * linux-riscv-low.cc (the_low_target): Remove the field.
1166 * linux-sh-low.cc (the_low_target): Remove the field.
1167 * linux-sparc-low.cc (the_low_target): Remove the field.
1168 * linux-tic6x-low.cc (the_low_target): Remove the field.
1169 * linux-tile-low.cc (the_low_target): Remove the field.
1170 * linux-xtensa-low.cc (the_low_target): Remove the field.
1171
7582c77c
TBA
11722020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1173
1174 Remove the 'supports_software_single_step' linux target op and let
1175 the concrete linux target define it by overriding the op in
1176 process_stratum_target.
1177 Turn the 'get_next_pcs' linux target op into a method of
1178 linux_process_target.
1179
1180 * linux-low.h (struct linux_target_ops): Remove the ops.
1181 (class linux_process_target) <supports_software_single_step>:
1182 Remove.
1183 <low_get_next_pcs>: Declare.
1184 * linux-low.cc (can_software_single_step): Remove.
1185 (linux_process_target::low_get_next_pcs): Define.
1186 (linux_process_target::supports_software_single_step): Remove.
1187
1188 Update the callers below.
1189
1190 (linux_process_target::handle_extended_wait)
1191 (linux_process_target::wait_1)
1192 (linux_process_target::install_software_single_step_breakpoints)
1193 (linux_process_target::single_step)
1194 (linux_process_target::thread_needs_step_over)
1195 (linux_process_target::proceed_one_lwp)
1196 (linux_process_target::supports_range_stepping)
1197
1198 * linux-x86-low.cc (the_low_target): Remove the op field.
1199 * linux-aarch64-low.cc (the_low_target): Ditto.
1200 * linux-bfin-low.cc (the_low_target): Ditto.
1201 * linux-cris-low.cc (the_low_target): Ditto.
1202 * linux-crisv32-low.cc (the_low_target): Ditto.
1203 * linux-m32r-low.cc (the_low_target): Ditto.
1204 * linux-m68k-low.cc (the_low_target): Ditto.
1205 * linux-mips-low.cc (the_low_target): Ditto.
1206 * linux-nios2-low.cc (the_low_target): Ditto.
1207 * linux-ppc-low.cc (the_low_target): Ditto.
1208 * linux-riscv-low.cc (the_low_target): Ditto.
1209 * linux-s390-low.cc (the_low_target): Ditto.
1210 * linux-sh-low.cc (the_low_target): Ditto.
1211 * linux-sparc-low.cc (the_low_target): Ditto.
1212 * linux-tic6x-low.cc (the_low_target): Ditto.
1213 * linux-tile-low.cc (the_low_target): Ditto.
1214 * linux-xtensa-low.cc (the_low_target): Ditto.
1215 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1216 <supports_software_single_step>: Declare.
1217 (arm_target::supports_software_single_step): Define.
1218 (arm_gdbserver_get_next_pcs): Turn into...
1219 (arm_target::low_get_next_pcs): ...this.
1220 (the_low_target): Remove the op field.
1221
3ca4edb6
TBA
12222020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1223
1224 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1225 the concrete linux target define it by overriding the op
1226 in process_stratum_target.
1227
1228 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1229 Remove.
1230 * linux-low.h (struct linux_target_ops): Remove the op.
1231 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1232 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1233 Declare.
1234 (x86_sw_breakpoint_from_kind): Turn into...
1235 (x86_target::sw_breakpoint_from_kind): ...this.
1236 (the_low_target): Remove the op field.
1237 * linux-aarch64-low.cc (class aarch64_target)
1238 <sw_breakpoint_from_kind>: Declare.
1239 (aarch64_sw_breakpoint_from_kind): Turn into...
1240 (aarch64_target::sw_breakpoint_from_kind): ...this.
1241 (the_low_target): Remove the op field.
1242 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1243 Declare.
1244 (arm_target::sw_breakpoint_from_kind): Define.
1245 (the_low_target): Remove the op field.
1246 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1247 Declare.
1248 (bfin_sw_breakpoint_from_kind): Turn into...
1249 (bfin_target::sw_breakpoint_from_kind): ...this.
1250 (the_low_target): Remove the op field.
1251 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1252 Declare.
1253 (cris_sw_breakpoint_from_kind): Turn into...
1254 (cris_target::sw_breakpoint_from_kind): ...this.
1255 (the_low_target): Remove the op field.
1256 * linux-crisv32-low.cc (class crisv32_target)
1257 <sw_breakpoint_from_kind>: Declare.
1258 (cris_sw_breakpoint_from_kind): Turn into...
1259 (crisv32_target::sw_breakpoint_from_kind): ...this.
1260 (the_low_target): Remove the op field.
1261 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1262 Declare.
1263 (ia64_target::sw_breakpoint_from_kind): Define.
1264 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1265 Declare.
1266 (m32r_sw_breakpoint_from_kind): Turn into...
1267 (m32r_target::sw_breakpoint_from_kind): ...this.
1268 (the_low_target): Remove the op field.
1269 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1270 Declare.
1271 (m68k_sw_breakpoint_from_kind): Turn into...
1272 (m68k_target::sw_breakpoint_from_kind): ...this.
1273 (the_low_target): Remove the op field.
1274 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1275 Declare.
1276 (mips_sw_breakpoint_from_kind): Turn into...
1277 (mips_target::sw_breakpoint_from_kind): ...this.
1278 (the_low_target): Remove the op field.
1279 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1280 Declare.
1281 (nios2_sw_breakpoint_from_kind): Turn into...
1282 (nios2_target::sw_breakpoint_from_kind): ...this.
1283 (the_low_target): Remove the op field.
1284 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1285 Declare.
1286 (ppc_sw_breakpoint_from_kind): Turn into...
1287 (ppc_target::sw_breakpoint_from_kind): ...this.
1288 (the_low_target): Remove the op field.
1289 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1290 Declare.
1291 (riscv_sw_breakpoint_from_kind): Turn into...
1292 (riscv_target::sw_breakpoint_from_kind): ...this.
1293 (the_low_target): Remove the op field.
1294 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1295 Declare.
1296 (s390_sw_breakpoint_from_kind): Turn into...
1297 (s390_target::sw_breakpoint_from_kind): ...this.
1298 (the_low_target): Remove the op field.
1299 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1300 Declare.
1301 (sh_sw_breakpoint_from_kind): Turn into...
1302 (sh_target::sw_breakpoint_from_kind): ...this.
1303 (the_low_target): Remove the op field.
1304 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1305 Declare.
1306 (sparc_sw_breakpoint_from_kind): Turn into...
1307 (sparc_target::sw_breakpoint_from_kind): ...this.
1308 (the_low_target): Remove the op field.
1309 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1310 Declare.
1311 (tic6x_sw_breakpoint_from_kind): Turn into...
1312 (tic6x_target::sw_breakpoint_from_kind): ...this.
1313 (the_low_target): Remove the op field.
1314 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1315 Declare.
1316 (tile_sw_breakpoint_from_kind): Turn into...
1317 (tile_target::sw_breakpoint_from_kind): ...this.
1318 (the_low_target): Remove the op field.
1319 * linux-xtensa-low.cc (class xtensa_target)
1320 <sw_breakpoint_from_kind>: Declare.
1321 (xtensa_sw_breakpoint_from_kind): Turn into...
1322 (xtensa_target::sw_breakpoint_from_kind): ...this.
1323 (the_low_target): Remove the op field.
1324
06250e4e
TBA
13252020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1326
1327 Remove the 'breakpoint_kind_from_pc' and
1328 'breakpoint_kind_from_current_state' linux target ops, and let the
1329 concrete linux target define them by overriding the ops of
1330 process_stratum_target.
1331
1332 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1333 Remove.
1334 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1335 * linux-low.h (struct linux_target_ops): Remove ops.
1336 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1337 <breakpoint_kind_from_current_state>: Remove.
1338 * linux-x86-low.cc (the_low_target): Remove the op fields.
1339 * linux-bfin-low.cc (the_low_target): Ditto.
1340 * linux-cris-low.cc (the_low_target): Ditto.
1341 * linux-crisv32-low.cc (the_low_target): Ditto.
1342 * linux-m32r-low.cc (the_low_target): Ditto.
1343 * linux-m68k-low.cc (the_low_target): Ditto.
1344 * linux-mips-low.cc (the_low_target): Ditto.
1345 * linux-nios2-low.cc (the_low_target): Ditto.
1346 * linux-ppc-low.cc (the_low_target): Ditto.
1347 * linux-s390-low.cc (the_low_target): Ditto.
1348 * linux-sh-low.cc (the_low_target): Ditto.
1349 * linux-sparc-low.cc (the_low_target): Ditto.
1350 * linux-tic6x-low.cc (the_low_target): Ditto.
1351 * linux-tile-low.cc (the_low_target): Ditto.
1352 * linux-xtensa-low.cc (the_low_target): Ditto.
1353 * linux-aarch64-low.cc (class aarch64_target)
1354 <breakpoint_kind_from_pc>
1355 <breakpoint_kind_from_current_state>: Declare.
1356 (aarch64_breakpoint_kind_from_pc): Turn into...
1357 (aarch64_target::breakpoint_kind_from_pc): ...this.
1358 (aarch64_breakpoint_kind_from_current_state): Turn into...
1359 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1360 (the_low_target): Remove the op fields.
1361 * linux-arm-low.cc (class arm_target):
1362 <breakpoint_kind_from_pc>
1363 <breakpoint_kind_from_current_state>: Declare.
1364 (arm_target::breakpoint_kind_from_pc): Define.
1365 (arm_target::breakpoint_kind_from_current_state): Define.
1366 (the_low_target): Remove the op fields.
1367 * linux-riscv-low.cc (class riscv_target):
1368 <breakpoint_kind_from_pc>: Declare.
1369 (riscv_breakpoint_kind_from_pc): Turn into...
1370 (riscv_target::breakpoint_kind_from_pc): ...this.
1371 (the_low_target): Remove the op fields.
1372
bf9ae9d8
TBA
13732020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1374
1375 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1376 of linux_process_target.
1377
1378 * linux-low.h (struct linux_target_ops): Remove the ops.
1379 (class linux_process_target) <low_supports_breakpoints>
1380 <low_get_pc>
1381 <low_set_pc>: Declare.
1382 * linux-low.cc (supports_breakpoints): Turn into...
1383 (linux_process_target::low_supports_breakpoints): ...this.
1384 (linux_process_target::low_get_pc): Define.
1385 (linux_process_target::low_set_pc): Define.
1386
1387 Update the callers below.
1388
1389 (linux_process_target::get_pc)
1390 (linux_process_target::save_stop_reason)
1391 (linux_process_target::maybe_move_out_of_jump_pad)
1392 (linux_process_target::wait_1)
1393 (linux_process_target::resume_one_lwp_throw)
1394 (linux_process_target::resume)
1395 (linux_process_target::proceed_all_lwps)
1396 (linux_process_target::read_pc)
1397 (linux_process_target::write_pc)
1398
1399 * linux-x86-low.cc (class linux_process_target)
1400 <low_supports_breakpoints>
1401 <low_get_pc>
1402 <low_set_pc>: Declare.
1403 (x86_target::low_supports_breakpoints): Define.
1404 (x86_get_pc): Turn into...
1405 (x86_target::low_get_pc): ...this.
1406 (x86_set_pc): Turn into...
1407 (x86_target::low_set_pc): ...this.
1408 (the_low_target): Remove the op fields.
1409 * linux-arm-low.cc (class arm_target)
1410 <low_supports_breakpoints>
1411 <low_get_pc>
1412 <low_set_pc>: Declare.
1413 (arm_target::low_supports_breakpoints)
1414 (arm_target::low_get_pc)
1415 (arm_target::low_set_pc): Define.
1416 (the_low_target): Remove the op fields.
1417 * linux-bfin-low.cc (class bfin_target)
1418 <low_supports_breakpoints>
1419 <low_get_pc>
1420 <low_set_pc>: Declare.
1421 (bfin_target::low_supports_breakpoints)
1422 (bfin_target::low_get_pc)
1423 (bfin_target::low_set_pc): Define.
1424 (the_low_target): Remove the op fields.
1425 * linux-cris-low.cc (class cris_target)
1426 <low_supports_breakpoints>
1427 <low_get_pc>
1428 <low_set_pc>: Declare.
1429 (cris_target::low_supports_breakpoints)
1430 (cris_target::low_get_pc)
1431 (cris_target::low_set_pc): Define.
1432 (the_low_target): Remove the op fields.
1433 * linux-crisv32-low.cc (class crisv32_target)
1434 <low_supports_breakpoints>
1435 <low_get_pc>
1436 <low_set_pc>: Declare.
1437 (crisv32_target::low_supports_breakpoints)
1438 (crisv32_target::low_get_pc)
1439 (crisv32_target::low_set_pc): Define.
1440 (the_low_target): Remove the op fields.
1441 * linux-m32r-low.cc (class m32r_target)
1442 <low_supports_breakpoints>
1443 <low_get_pc>
1444 <low_set_pc>: Declare.
1445 (m32r_target::low_supports_breakpoints)
1446 (m32r_target::low_get_pc)
1447 (m32r_target::low_set_pc): Define.
1448 (the_low_target): Remove the op fields.
1449 * linux-m68k-low.cc (class m68k_target)
1450 <low_supports_breakpoints>
1451 <low_get_pc>
1452 <low_set_pc>: Declare.
1453 (m68k_target::low_supports_breakpoints)
1454 (m68k_target::low_get_pc)
1455 (m68k_target::low_set_pc): Define.
1456 (the_low_target): Remove the op fields.
1457 * linux-nios2-low.cc (class nios2_target)
1458 <low_supports_breakpoints>
1459 <low_get_pc>
1460 <low_set_pc>: Declare.
1461 (nios2_target::low_supports_breakpoints)
1462 (nios2_target::low_get_pc)
1463 (nios2_target::low_set_pc): Define.
1464 (the_low_target): Remove the op fields.
1465 * linux-sh-low.cc (class sh_target)
1466 <low_supports_breakpoints>
1467 <low_get_pc>
1468 <low_set_pc>: Declare.
1469 (sh_target::low_supports_breakpoints)
1470 (sh_target::low_get_pc)
1471 (sh_target::low_set_pc): Define.
1472 (the_low_target): Remove the op fields.
1473 * linux-xtensa-low.cc (class xtensa_target)
1474 <low_supports_breakpoints>
1475 <low_get_pc>
1476 <low_set_pc>: Declare.
1477 (xtensa_target::low_supports_breakpoints)
1478 (xtensa_target::low_get_pc)
1479 (xtensa_target::low_set_pc): Define.
1480 (the_low_target): Remove the op fields.
1481 * linux-sparc-low.cc (class sparc_target)
1482 <low_supports_breakpoints>
1483 <low_get_pc>: Declare.
1484 (sparc_target::low_supports_breakpoints)
1485 (sparc_target::low_get_pc): Define.
1486 (the_low_target): Remove the op fields.
1487 * linux-tile-low.cc (class tile_target)
1488 <low_supports_breakpoints>
1489 <low_get_pc>
1490 <low_set_pc>: Declare.
1491 (tile_target::low_supports_breakpoints)
1492 (tile_target::low_get_pc)
1493 (tile_target::low_set_pc): Define.
1494 (the_low_target): Remove the op fields.
1495 * linux-aarch64-low.cc (class aarch64_target)
1496 <low_supports_breakpoints>
1497 <low_get_pc>
1498 <low_set_pc>: Declare.
1499 (aarch64_target::low_supports_breakpoints): Define.
1500 (aarch64_get_pc): Turn into...
1501 (aarch64_target::low_get_pc): ...this.
1502 (aarch64_set_pc): Turn into...
1503 (aarch64_target::low_set_pc): ...this.
1504 (the_low_target): Remove the op fields.
1505 * linux-mips-low.cc (class mips_target)
1506 <low_supports_breakpoints>
1507 <low_get_pc>
1508 <low_set_pc>: Declare.
1509 (mips_target::low_supports_breakpoints): Define.
1510 (mips_get_pc): Turn into...
1511 (mips_target::low_get_pc): ...this.
1512 (mips_set_pc): Turn into...
1513 (mips_target::low_set_pc): ...this.
1514 (the_low_target): Remove the op fields.
1515 * linux-ppc-low.cc (class ppc_target)
1516 <low_supports_breakpoints>
1517 <low_get_pc>
1518 <low_set_pc>: Declare.
1519 (ppc_target::low_supports_breakpoints): Define.
1520 (ppc_get_pc): Turn into...
1521 (ppc_target::low_get_pc): ...this.
1522 (ppc_set_pc): Turn into...
1523 (ppc_target::low_set_pc): ...this.
1524 (the_low_target): Remove the op fields.
1525 * linux-riscv-low.cc (class riscv_target)
1526 <low_supports_breakpoints>
1527 <low_get_pc>
1528 <low_set_pc>: Declare.
1529 (riscv_target::low_supports_breakpoints): Define.
1530 (riscv_get_pc): Turn into...
1531 (riscv_target::low_get_pc): ...this.
1532 (riscv_set_pc): Turn into...
1533 (riscv_target::low_set_pc): ...this.
1534 (the_low_target): Remove the op fields.
1535 * linux-s390-low.cc (class s390_target)
1536 <low_supports_breakpoints>
1537 <low_get_pc>
1538 <low_set_pc>: Declare.
1539 (s390_target::low_supports_breakpoints): Define.
1540 (s390_get_pc): Turn into...
1541 (s390_target::low_get_pc): ...this.
1542 (s390_set_pc): Turn into...
1543 (s390_target::low_set_pc): ...this.
1544 (the_low_target): Remove the op fields.
1545 * linux-tic6x-low.cc (class tic6x_target)
1546 <low_supports_breakpoints>
1547 <low_get_pc>
1548 <low_set_pc>: Declare.
1549 (tic6x_target::low_supports_breakpoints): Define.
1550 (tic6x_get_pc): Turn into...
1551 (tic6x_target::low_get_pc): ...this.
1552 (tic6x_set_pc): Turn into...
1553 (tic6x_target::low_set_pc): ...this.
1554 (the_low_target): Remove the op fields.
1555
df95181f
TBA
15562020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1557
1558 Turn some more static methods in linux-low into private methods
1559 of linux_process_target.
1560
1561 * linux-low.cc (get_pc): Turn into...
1562 (linux_process_target::get_pc): ...this.
1563 (save_stop_reason): Turn into...
1564 (linux_process_target::save_stop_reason): ...this.
1565 (thread_still_has_status_pending_p): Turn into...
1566 (linux_process_target::thread_still_has_status_pending): ...this.
1567 (status_pending_p_callback): Turn into...
1568 (linux_process_target::status_pending_p_callback): ...this.
1569 (resume_stopped_resumed_lwps): Turn into...
1570 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1571 (install_software_single_step_breakpoints): Turn into...
1572 (linux_process_target::install_software_single_step_breakpoints):
1573 ...this.
1574 (single_step): Turn into...
1575 (linux_process_target::single_step): ...this.
1576 (linux_resume_one_lwp_throw): Turn into...
1577 (linux_process_target::resume_one_lwp_throw): ...this.
1578 (linux_resume_one_lwp): Turn into...
1579 (linux_process_target::resume_one_lwp): ...this.
1580 (resume_status_pending_p): Turn into...
1581 (linux_process_target::resume_status_pending): ...this.
1582 (need_step_over_p): Turn into...
1583 (linux_process_target::thread_needs_step_over): ...this.
1584 (linux_resume_one_thread): Turn into...
1585 (linux_process_target::resume_one_thread): ...this.
1586 (proceed_one_lwp): Turn into...
1587 (linux_process_target::proceed_one_lwp): ...this.
1588 (unsuspend_and_proceed_one_lwp): Turn into...
1589 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1590
1591 Update the calls/references to the above functions below.
1592
1593 (linux_process_target::handle_extended_wait)
1594 (linux_process_target::filter_event)
1595 (linux_process_target::wait_for_event_filtered)
1596 (linux_process_target::wait_1)
1597 (linux_process_target::move_out_of_jump_pad)
1598 (linux_process_target::start_step_over)
1599 (linux_process_target::resume)
1600 (linux_process_target::proceed_all_lwps)
1601 (regsets_store_inferior_registers)
1602 (linux_process_target::store_register)
1603
1604 * linux-low.h (class linux_process_target)
1605 <get_pc>
1606 <save_stop_reason>
1607 <thread_still_has_status_pending>
1608 <status_pending_p_callback>
1609 <resume_stopped_resumed_lwps>
1610 <install_software_single_step_breakpoints>
1611 <single_step>
1612 <resume_one_lwp_throw>
1613 <resume_one_lwp>
1614 <resume_status_pending>
1615 <thread_needs_step_over>
1616 <resume_one_thread>
1617 <proceed_one_lwp>
1618 <unsuspend_and_proceed_one_lwp>: Declare.
1619
bd70b1f2
TBA
16202020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1621
1622 Turn the 'fetch_register' linux target op into a method of
1623 linux_process_target.
1624
1625 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1626 (class linux_process_target) <low_fetch_register>: Declare.
1627 * linux-x86-low.cc (the_low_target)
1628 * linux-aarch64-low.cc (the_low_target)
1629 * linux-arm-low.cc (the_low_target)
1630 * linux-bfin-low.cc (the_low_target)
1631 * linux-cris-low.cc (the_low_target)
1632 * linux-crisv32-low.cc (the_low_target)
1633 * linux-m32r-low.cc (the_low_target)
1634 * linux-m68k-low.cc (the_low_target)
1635 * linux-nios2-low.cc (the_low_target)
1636 * linux-ppc-low.cc (the_low_target)
1637 * linux-s390-low.cc (the_low_target)
1638 * linux-sh-low.cc (the_low_target)
1639 * linux-sparc-low.cc (the_low_target)
1640 * linux-tic6x-low.cc (the_low_target)
1641 * linux-tile-low.cc (the_low_target)
1642 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1643 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1644 Declare.
1645 (ia64_fetch_register): Turn into...
1646 (ia64_target::low_fetch_register): ...this.
1647 (the_low_target): Remove the op field.
1648 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1649 Declare.
1650 (mips_fetch_register): Turn into...
1651 (mips_target::low_fetch_register): ...this.
1652 (the_low_target): Remove the op field.
1653 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1654 Declare.
1655 (riscv_fetch_register): Turn into...
1656 (riscv_target::low_fetch_register): ...this.
1657 (the_low_target): Remove the op field.
1658
1659 Update the callers below.
1660
1661 * linux-low.cc (linux_process_target::fetch_registers)
1662 (linux_process_target::low_fetch_register)
1663
daca57a7
TBA
16642020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1665
1666 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1667 linux target ops into methods of linux_process_target.
1668
1669 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1670 (class linux_process_target) <fetch_register>
1671 <store_register>
1672 <usr_fetch_inferior_registers>
1673 <usr_store_inferior_registers>
1674 <low_cannot_fetch_register>
1675 <low_cannot_fetch_register> Declare.
1676 * linux-low.cc (fetch_register): Turn into...
1677 (linux_process_target::fetch_register): ...this.
1678 (store_register): Turn into ...
1679 (linux_process_target::store_register): ...this.
1680 (usr_fetch_inferior_registers): Turn into...
1681 (linux_process_target::usr_fetch_inferior_registers): ...this.
1682 (usr_store_inferior_registers): Turn into...
1683 (linux_process_target::usr_store_inferior_registers): ...this.
1684 * linux-x86-low.cc (class x86_target)
1685 <low_cannot_fetch_register>
1686 <low_cannot_store_register>: Declare.
1687 (x86_cannot_store_register): Turn into...
1688 (x86_target::low_cannot_store_register): ...this.
1689 (x86_cannot_fetch_register): Turn into...
1690 (x86_target::low_cannot_fetch_register): ...this.
1691 (the_low_target): Remove the target op fields.
1692 * linux-aarch64-low.cc (class aarch64_target)
1693 <low_cannot_fetch_register>
1694 <low_cannot_store_register>: Declare.
1695 (aarch64_target::low_cannot_fetch_register)
1696 (aarch64_target::low_cannot_store_register): Define.
1697 (the_low_target): Remove the op fields.
1698 * linux-arm-low.cc (class arm_target)
1699 <low_cannot_fetch_register>
1700 <low_cannot_store_register>: Declare.
1701 (arm_cannot_fetch_register): Turn into...
1702 (arm_target::low_cannot_fetch_register): ...this.
1703 (arm_cannot_store_register): Turn into...
1704 (arm_target::low_cannot_store_register): ...this.
1705 (the_low_target): Remove the op fields.
1706 * linux-bfin-low.cc (class bfin_target)
1707 <low_cannot_fetch_register>
1708 <low_cannot_store_register>: Declare.
1709 (bfin_cannot_fetch_register): Turn into...
1710 (bfin_target::low_cannot_fetch_register): ...this.
1711 (bfin_cannot_store_register): Turn into...
1712 (bfin_target::low_cannot_store_register): ...this.
1713 (the_low_target): Remove the op fields.
1714 * linux-cris-low.cc (class cris_target)
1715 <low_cannot_fetch_register>
1716 <low_cannot_store_register>: Declare.
1717 (cris_cannot_fetch_register): Turn into...
1718 (cris_target::low_cannot_fetch_register): ...this.
1719 (cris_cannot_store_register): Turn into...
1720 (cris_target::low_cannot_store_register): ...this.
1721 (the_low_target): Remove the op fields.
1722 * linux-crisv32-low.cc (class crisv32_target)
1723 <low_cannot_fetch_register>
1724 <low_cannot_store_register>: Declare.
1725 (crisv32_target::low_cannot_fetch_register)
1726 (crisv32_target::low_cannot_store_register): Define.
1727 (the_low_target): Remove the op fields.
1728 * linux-ia64-low.cc (class ia64_target)
1729 <low_cannot_fetch_register>
1730 <low_cannot_store_register>: Declare.
1731 (ia64_cannot_fetch_register): Turn into...
1732 (ia64_target::low_cannot_fetch_register): ...this.
1733 (ia64_cannot_store_register): Turn into...
1734 (ia64_target::low_cannot_store_register): ...this.
1735 (the_low_target): Remove the op fields.
1736 * linux-m32r-low.cc (class m32r_target)
1737 <low_cannot_fetch_register>
1738 <low_cannot_store_register>: Declare.
1739 (m32r_cannot_fetch_register): Turn into...
1740 (m32r_target::low_cannot_fetch_register): ...this.
1741 (m32r_cannot_store_register): Turn into...
1742 (m32r_target::low_cannot_store_register): ...this.
1743 (the_low_target): Remove the op fields.
1744 * linux-m68k-low.cc (class m68k_target)
1745 <low_cannot_fetch_register>
1746 <low_cannot_store_register>: Declare.
1747 (m68k_cannot_fetch_register): Turn into...
1748 (m68k_target::low_cannot_fetch_register): ...this.
1749 (m68k_cannot_store_register): Turn into...
1750 (m68k_target::low_cannot_store_register): ...this.
1751 (the_low_target): Remove the op fields.
1752 * linux-mips-low.cc (class mips_target)
1753 <low_cannot_fetch_register>
1754 <low_cannot_store_register>: Declare.
1755 (mips_cannot_fetch_register): Turn into...
1756 (mips_target::low_cannot_fetch_register): ...this.
1757 (mips_cannot_store_register): Turn into...
1758 (mips_target::low_cannot_store_register): ...this.
1759 (get_usrregs_info): Inline at the call sites in
1760 low_cannot_fetch_register and low_cannot_store_register,
1761 and remove.
1762 (the_low_target): Remove the op fields.
1763 * linux-nios2-low.cc (class nios2_target)
1764 <low_cannot_fetch_register>
1765 <low_cannot_store_register>: Declare.
1766 (nios2_cannot_fetch_register): Turn into...
1767 (nios2_target::low_cannot_fetch_register): ...this.
1768 (nios2_cannot_store_register): Turn into...
1769 (nios2_target::low_cannot_store_register): ...this.
1770 (the_low_target): Remove the op fields.
1771 * linux-ppc-low.cc (class ppc_target)
1772 <low_cannot_fetch_register>
1773 <low_cannot_store_register>: Declare.
1774 (ppc_cannot_fetch_register): Turn into...
1775 (ppc_target::low_cannot_fetch_register): ...this.
1776 (ppc_cannot_store_register): Turn into...
1777 (ppc_target::low_cannot_store_register): ...this.
1778 (the_low_target): Remove the op fields.
1779 * linux-riscv-low.cc (class riscv_target)
1780 <low_cannot_fetch_register>
1781 <low_cannot_store_register>: Declare.
1782 (riscv_target::low_cannot_fetch_register)
1783 (riscv_target::low_cannot_store_register): Define.
1784 (the_low_target): Remove the op fields.
1785 * linux-s390-low.cc (class s390_target)
1786 <low_cannot_fetch_register>
1787 <low_cannot_store_register>: Declare.
1788 (s390_cannot_fetch_register): Turn into...
1789 (s390_target::low_cannot_fetch_register): ...this.
1790 (s390_cannot_store_register): Turn into...
1791 (s390_target::low_cannot_store_register): ...this.
1792 (the_low_target): Remove the op fields.
1793 * linux-sh-low.cc (class sh_target)
1794 <low_cannot_fetch_register>
1795 <low_cannot_store_register>: Declare.
1796 (sh_cannot_fetch_register): Turn into...
1797 (sh_target::low_cannot_fetch_register): ...this.
1798 (sh_cannot_store_register): Turn into...
1799 (sh_target::low_cannot_store_register): ...this.
1800 (the_low_target): Remove the op fields.
1801 * linux-sparc-low.cc (class sparc_target)
1802 <low_cannot_fetch_register>
1803 <low_cannot_store_register>: Declare.
1804 (sparc_cannot_fetch_register): Turn into...
1805 (sparc_target::low_cannot_fetch_register): ...this.
1806 (sparc_cannot_store_register): Turn into...
1807 (sparc_target::low_cannot_store_register): ...this.
1808 (the_low_target): Remove the op fields.
1809 * linux-tic6x-low.cc (class tic6x_target)
1810 <low_cannot_fetch_register>
1811 <low_cannot_store_register>: Declare.
1812 (tic6x_cannot_fetch_register): Turn into...
1813 (tic6x_target::low_cannot_fetch_register): ...this.
1814 (tic6x_cannot_store_register): Turn into...
1815 (tic6x_target::low_cannot_store_register): ...this.
1816 (the_low_target): Remove the op fields.
1817 * linux-tile-low.cc (class tile_target)
1818 <low_cannot_fetch_register>
1819 <low_cannot_store_register>: Declare.
1820 (tile_cannot_fetch_register): Turn into...
1821 (tile_target::low_cannot_fetch_register): ...this.
1822 (tile_cannot_store_register): Turn into...
1823 (tile_target::low_cannot_store_register): ...this.
1824 (the_low_target): Remove the op fields.
1825 * linux-xtensa-low.cc (class xtensa_target)
1826 <low_cannot_fetch_register>
1827 <low_cannot_store_register>: Declare.
1828 (xtensa_target::low_cannot_fetch_register)
1829 (xtensa_target::low_cannot_store_register): Define.
1830 (the_low_target): Remove the op fields.
1831
aa8d21c9
TBA
18322020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1833
1834 Turn the 'regs_info' linux target op into a method of
1835 linux_process_target.
1836
1837 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1838 (class linux_process_target) <get_regs_info>: Define.
1839
1840 Update the callers below.
1841
1842 * linux-low.cc (linux_process_target::fetch_registers)
1843 (linux_process_target::store_registers)
1844 * proc-service.cc (gregset_info)
1845
1846 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1847 (x86_linux_regs_info): Turn into ...
1848 (x86_target::get_regs_info): ...this.
1849 (the_low_target): Remove the op field.
1850 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1851 Declare.
1852 (aarch64_regs_info): Turn into ...
1853 (aarch64_target::get_regs_info): ...this.
1854 (the_low_target): Remove the op field.
1855 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1856 (arm_regs_info): Turn into ...
1857 (arm_target::get_regs_info): ...this.
1858 (the_low_target): Remove the op field.
1859 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1860 (bfin_regs_info): Turn into ...
1861 (bfin_target::get_regs_info): ...this.
1862 (the_low_target): Remove the op field.
1863 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1864 (cris_regs_info): Turn into ...
1865 (cris_target::get_regs_info): ...this.
1866 (the_low_target): Remove the op field.
1867 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1868 Declare.
1869 (crisv32_regs_info): Turn into ...
1870 (crisv32_target::get_regs_info): ...this.
1871 (the_low_target): Remove the op field.
1872 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1873 (ia64_regs_info): Turn into ...
1874 (ia64_target::get_regs_info): ...this.
1875 (the_low_target): Remove the op field.
1876 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1877 (m32r_regs_info): Turn into ...
1878 (m32r_target::get_regs_info): ...this.
1879 (the_low_target): Remove the op field.
1880 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1881 (m68k_regs_info): Turn into ...
1882 (m68k_target::get_regs_info): ...this.
1883 (the_low_target): Remove the op field.
1884 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1885 (mips_regs_info): Turn into ...
1886 (mips_target::get_regs_info): ...this.
1887 (the_low_target): Remove the op field.
1888 (get_usrregs_info): Update the call to the op.
1889 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1890 (nios2_regs_info): Turn into ...
1891 (nios2_target::get_regs_info): ...this.
1892 (the_low_target): Remove the op field.
1893 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1894 (ppc_regs_info): Turn into ...
1895 (ppc_target::get_regs_info): ...this.
1896 (the_low_target): Remove the op field.
1897 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1898 (riscv_regs_info): Turn into ...
1899 (riscv_target::get_regs_info): ...this.
1900 (the_low_target): Remove the op field.
1901 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1902 (s390_regs_info): Turn into ...
1903 (s390_target::get_regs_info): ...this.
1904 (the_low_target): Remove the op field.
1905 (s390_collect_ptrace_register)
1906 (s390_supply_ptrace_register)
1907 (s390_fill_gregset): Update the call to the op.
1908 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1909 (sh_regs_info): Turn into ...
1910 (sh_target::get_regs_info): ...this.
1911 (the_low_target): Remove the op field.
1912 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1913 (sparc_regs_info): Turn into ...
1914 (sparc_target::get_regs_info): ...this.
1915 (the_low_target): Remove the op field.
1916 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1917 (tic6x_regs_info): Turn into ...
1918 (tic6x_target::get_regs_info): ...this.
1919 (the_low_target): Remove the op field.
1920 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1921 (tile_regs_info): Turn into ...
1922 (tile_target::get_regs_info): ...this.
1923 (the_low_target): Remove the op field.
1924 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1925 Declare.
1926 (xtensa_regs_info): Turn into ...
1927 (xtensa_target::get_regs_info): ...this.
1928 (the_low_target): Remove the op field.
1929
797bcff5
TBA
19302020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1931
1932 Turn the 'arch_setup' linux target op into a method of
1933 linux_process_target.
1934
1935 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1936 (class linux_process_target) <arch_setup_thread>
1937 <low_arch_setup>: New declarations.
1938 * linux-low.cc (linux_arch_setup): Delete.
1939 (linux_arch_setup_thread): Turn into...
1940 (linux_process_target::arch_setup_thread): ... this.
1941
1942 Update the callers below.
1943
1944 (linux_process_target::handle_extended_wait)
1945 (linux_process_target::post_create_inferior)
1946 (linux_process_target::filter_event)
1947
1948 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1949 declaration.
1950 (x86_linux_update_xmltarget): Turn into...
1951 (x86_target::update_xmltarget): ...this.
1952 (x86_linux_process_qsupported): Update the call to
1953 x86_linux_update_xmltarget.
1954 (x86_arch_setup): Turn into ...
1955 (x86_target::low_arch_setup): ...this.
1956 (the_low_target): Remove the op field.
1957 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1958 declaration.
1959 (aarch64_arch_setup): Turn into ...
1960 (aarch64_target::low_arch_setup): ...this.
1961 (the_low_target): Remove the op field.
1962 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1963 declaration.
1964 (arm_arch_setup): Turn into ...
1965 (arm_target::low_arch_setup): ...this.
1966 (the_low_target): Remove the op field.
1967 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1968 declaration.
1969 (bfin_arch_setup): Turn into ...
1970 (bfin_target::low_arch_setup): ...this.
1971 (the_low_target): Remove the op field.
1972 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1973 declaration.
1974 (cris_arch_setup): Turn into ...
1975 (cris_target::low_arch_setup): ...this.
1976 (the_low_target): Remove the op field.
1977 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1978 declaration.
1979 (crisv32_arch_setup): Turn into ...
1980 (crisv32_target::low_arch_setup): ...this.
1981 (the_low_target): Remove the op field.
1982 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1983 declaration.
1984 (ia64_arch_setup): Turn into ...
1985 (ia64_target::low_arch_setup): ...this.
1986 (the_low_target): Remove the op field.
1987 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1988 declaration.
1989 (m32r_arch_setup): Turn into ...
1990 (m32r_target::low_arch_setup): ...this.
1991 (the_low_target): Remove the op field.
1992 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1993 declaration.
1994 (m68k_arch_setup): Turn into ...
1995 (m68k_target::low_arch_setup): ...this.
1996 (the_low_target): Remove the op field.
1997 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1998 declaration.
1999 (mips_arch_setup): Turn into ...
2000 (mips_target::low_arch_setup): ...this.
2001 (the_low_target): Remove the op field.
2002 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2003 declaration.
2004 (nios2_arch_setup): Turn into ...
2005 (nios2_target::low_arch_setup): ...this.
2006 (the_low_target): Remove the op field.
2007 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2008 declaration.
2009 (ppc_arch_setup): Turn into ...
2010 (ppc_target::low_arch_setup): ...this.
2011 (the_low_target): Remove the op field.
2012 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2013 declaration.
2014 (riscv_arch_setup): Turn into ...
2015 (riscv_target::low_arch_setup): ...this.
2016 (the_low_target): Remove the op field.
2017 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2018 declaration.
2019 (s390_arch_setup): Turn into ...
2020 (s390_target::low_arch_setup): ...this.
2021 (the_low_target): Remove the op field.
2022 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2023 declaration.
2024 (sh_arch_setup): Turn into ...
2025 (sh_target::low_arch_setup): ...this.
2026 (the_low_target): Remove the op field.
2027 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2028 declaration.
2029 (sparc_arch_setup): Turn into ...
2030 (sparc_target::low_arch_setup): ...this.
2031 (the_low_target): Remove the op field.
2032 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2033 declaration.
2034 (tic6x_arch_setup): Turn into ...
2035 (tic6x_target::low_arch_setup): ...this.
2036 (the_low_target): Remove the op field.
2037 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2038 declaration.
2039 (tile_arch_setup): Turn into ...
2040 (tile_target::low_arch_setup): ...this.
2041 (the_low_target): Remove the op field.
2042 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2043 declaration.
2044 (xtensa_arch_setup): Turn into ...
2045 (xtensa_target::low_arch_setup): ...this.
2046 (the_low_target): Remove the op field.
2047
ef0478f6
TBA
20482020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2049
2050 * linux-low.h (the_linux_target): New extern declaration.
2051 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2052 'the_target'.
2053 (the_linux_target): Remove.
2054 * linux-x86-low.cc (class x86_target): New class.
2055 (the_x86_target): New static object.
2056 (the_linux_target): Define as pointer to the_x86_target.
2057 * linux-aarch64-low.cc (class aarch64_target): New class.
2058 (the_aarch64_target): New static object.
2059 (the_linux_target): Define as pointer to the_aarch64_target.
2060 * linux-arm-low.cc (class arm_target): New class.
2061 (the_arm_target): New static object.
2062 (the_linux_target): Define as pointer to the_arm_target.
2063 * linux-bfin-low.cc (class bfin_target): New class.
2064 (the_bfin_target): New static object.
2065 (the_linux_target): Define as pointer to the_bfin_target.
2066 * linux-cris-low.cc (class cris_target): New class.
2067 (the_cris_target): New static object.
2068 (the_linux_target): Define as pointer to the_cris_target.
2069 * linux-crisv32-low.cc (class crisv32_target): New class.
2070 (the_crisv32_target): New static object.
2071 (the_linux_target): Define as pointer to the_crisv32_target.
2072 * linux-ia64-low.cc (class ia64_target): New class.
2073 (the_ia64_target): New static object.
2074 (the_linux_target): Define as pointer to the_ia64_target.
2075 * linux-m32r-low.cc (class m32r_target): New class.
2076 (the_m32r_target): New static object.
2077 (the_linux_target): Define as pointer to the_m32r_target.
2078 * linux-m68k-low.cc (class m68k_target): New class.
2079 (the_m68k_target): New static object.
2080 (the_linux_target): Define as pointer to the_m68k_target.
2081 * linux-mips-low.cc (class mips_target): New class.
2082 (the_mips_target): New static object.
2083 (the_linux_target): Define as pointer to the_mips_target.
2084 * linux-nios2-low.cc (class nios2_target): New class.
2085 (the_nios2_target): New static object.
2086 (the_linux_target): Define as pointer to the_nios2_target.
2087 * linux-ppc-low.cc (class ppc_target): New class.
2088 (the_ppc_target): New static object.
2089 (the_linux_target): Define as pointer to the_ppc_target.
2090 * linux-riscv-low.cc (class riscv_target): New class.
2091 (the_riscv_target): New static object.
2092 (the_linux_target): Define as pointer to the_riscv_target.
2093 * linux-s390-low.cc (class s390_target): New class.
2094 (the_s390_target): New static object.
2095 (the_linux_target): Define as pointer to the_s390_target.
2096 * linux-sh-low.cc (class sh_target): New class.
2097 (the_sh_target): New static object.
2098 (the_linux_target): Define as pointer to the_sh_target.
2099 * linux-sparc-low.cc (class sparc_target): New class.
2100 (the_sparc_target): New static object.
2101 (the_linux_target): Define as pointer to the_sparc_target.
2102 * linux-tic6x-low.cc (class tic6x_target): New class.
2103 (the_tic6x_target): New static object.
2104 (the_linux_target): Define as pointer to the_tic6x_target.
2105 * linux-tile-low.cc (class tile_target): New class.
2106 (the_tile_target): New static object.
2107 (the_linux_target): Define as pointer to the_tile_target.
2108 * linux-xtensa-low.cc (class xtensa_target): New class.
2109 (the_xtensa_target): New static object.
2110 (the_linux_target): Define as pointer to the_xtensa_target.
2111
d16f3f6c
TBA
21122020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2113
2114 Turn some static functions in linux-low.cc into private methods of
2115 linux_process_target.
2116
2117 * linux-low.cc (handle_extended_wait): Turn into ...
2118 (linux_process_target::handle_extended_wait): ...this. Call
2119 'mourn' on 'this' object instead of 'the_target'.
2120 (maybe_move_out_of_jump_pad): Turn into...
2121 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2122 (linux_low_filter_event): Turn into...
2123 (linux_process_target::filter_event): ...this.
2124 (linux_wait_for_event_filtered): Turn into...
2125 (linux_process_target::wait_for_event_filtered): ...this.
2126 (linux_wait_for_event): Turn into...
2127 (linux_process_target::wait_for_event): ...this.
2128 (linux_wait_1): Turn into...
2129 (linux_process_target::wait_1): ...this.
2130 (wait_for_sigstop): Turn into...
2131 (linux_process_target::wait_for_sigstop): ...this.
2132 (move_out_of_jump_pad_callback): Turn into...
2133 (linux_process_target::move_out_of_jump_pad): ...this.
2134 (stop_all_lwps): Turn into...
2135 (linux_process_target::stop_all_lwps): ...this.
2136 (start_step_over): Turn into...
2137 (linux_process_target::start_step_over): ...this.
2138 (complete_ongoing_step_over): Turn into...
2139 (linux_process_target::complete_ongoing_step_over): ...this.
2140 (proceed_all_lwps): Turn into...
2141 (linux_process_target::proceed_all_lwps): ...this.
2142 (unstop_all_lwps): Turn into...
2143 (linux_process_target::unstop_all_lwps): ...this.
2144
2145 * linux-low.h (class linux_process_target)
2146 <handle_extended_wait>
2147 <maybe_move_out_of_jump_pad>
2148 filter_event>
2149 <wait_for_event_filtered>
2150 <wait_for_event>
2151 <wait_1>
2152 <wait_for_sigstop>
2153 <move_out_of_jump_pad>
2154 <stop_all_lwps>
2155 <start_step_over>
2156 <complete_ongoing_step_over>
2157 <proceed_all_lwps>
2158 <unstop_all_lwps>: Declare.
2159
2160 Update the callers below.
2161
2162 * linux-low.cc (linux_process_target::attach): Update.
2163 (linux_process_target::stabilize_threads): Ditto.
2164 (linux_process_target::wait): Ditto.
2165
a5863204
TBA
21662020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2167
2168 * linux-low.h (struct linux_target_ops): Update the comment for
2169 'cannot_store_register' to return 0 or 1.
2170 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2171 of 2.
2172
c884cc46
SM
21732020-03-20 Simon Marchi <simon.marchi@efficios.com>
2174
2175 * config.in: Re-generate.
2176 * configure: Re-generate.
2177
5a82b8a1
KR
21782020-03-17 Kamil Rytarowski <n54@gmx.com>
2179
2180 * regcache.cc (find_register_by_number): Update.
2181 * tdesc.cc (init_target_desc): Likewise.
2182 * tdesc.h (target_desc::reg_defs): Likewise.
2183
4635ff97
TT
21842020-03-12 Tom Tromey <tom@tromey.com>
2185
2186 * configure: Rebuild.
2187 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2188 (WIN32APILIBS): New subst.
2189 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2190 gdbsupport files.
2191 (gdbsupport/%.o): Remove target.
2192 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2193 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2194 (WIN32APILIBS): New variable.
2195 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2196 (gdbreplay$(EXEEXT)): Likewise.
2197
9a665d62
TT
21982020-03-12 Tom Tromey <tom@tromey.com>
2199
2200 * config.in, configure: Rebuild.
2201 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2202 * acinclude.m4: Include gettext-sister.m4.
2203 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2204 variables.
2205 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2206 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2207
272cd5a3
SM
22082020-03-12 Simon Marchi <simon.marchi@efficios.com>
2209
2210 * acinclude.m4: Update path to selftest.m4.
2211
db6878ac
SM
22122020-03-12 Simon Marchi <simon.marchi@efficios.com>
2213
2214 * configure.ac: Don't source bfd/development.sh, move
2215 GDB_AC_COMMON higher.
2216 * configure: Re-generate.
2217
4d696a5c
SM
22182020-03-12 Simon Marchi <simon.marchi@efficios.com>
2219
2220 * configure: Re-generate.
2221
a0761e34
SM
22222020-03-11 Simon Marchi <simon.marchi@efficios.com>
2223
2224 * configure: Re-generate.
2225
20ea4a60
AB
22262020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2227
2228 * .dir-locals.el: New file.
2229
842806cb
TBA
22302020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2231
2232 * .gitattributes: New file.
2233
442131c1
AB
22342020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2235
2236 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2237 reply into an S reply.
2238 * server.cc (disable_packet_T): New global.
2239 (captured_main): Set new global when appropriate.
2240 * server.h (disable_packet_T): Declare.
2241
dda42c0b
TT
22422020-02-21 Tom Tromey <tom@tromey.com>
2243
2244 * Makefile.in (mostlyclean): New target.
2245
52405d85
TBA
22462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2247
2248 * target.h (struct process_stratum_target): Remove.
2249 (class process_target): Rename to ...
2250 (class process_stratum_target): ... this.
2251 * linux-low.h (class linux_process_target): Derive from
2252 'process_stratum_target'.
2253 * linux-low.cc (linux_target_ops): Remove.
2254 (initialize_low): Set the_target to the singleton instance of
2255 linux_process_target.
2256 * lynx-low.h (class lynx_process_target): Derive from
2257 'process_stratum_target'.
2258 * lynx-low.cc (lynx_target_ops): Remove.
2259 (initialize_low): Set the_target to the singleton instance of
2260 lynx_process_target.
2261 * nto-low.h (class nto_process_target): Derive from
2262 'process_stratum_target'.
2263 * nto-low.cc (nto_target_ops): Remove.
2264 (initialize_low): Set the_target to the singleton instance of
2265 nto_process_target.
2266 * win32-low.h (class win32_process_target): Derive from
2267 'process_stratum_target'.
2268 * win32-low.cc (win32_target_ops): Remove.
2269 (initialize_low): Set the_target to the singleton instance of
2270 win32_process_target.
2271
2272 Replace 'the_target->pt' with 'the_target' in the uses below.
2273
2274 * hostio.cc (hostio_error)
2275 (handle_setfs)
2276 (handle_open)
2277 (handle_unlink)
2278 (handle_readlink)
2279 * linux-aarch32-low.cc (arm_breakpoint_at)
2280 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2281 * linux-arm-low.cc (arm_sigreturn_next_pc)
2282 (arm_get_hwcap)
2283 (arm_get_syscall_trapinfo)
2284 * linux-cris-low.cc (cris_breakpoint_at)
2285 * linux-crisv32-low.cc (cris_breakpoint_at)
2286 * linux-low.cc (handle_extended_wait)
2287 (linux_wait_1)
2288 (linux_read_memory)
2289 (linux_process_target::breakpoint_kind_from_pc)
2290 (linux_get_auxv)
2291 * linux-m32r-low.cc (m32r_breakpoint_at)
2292 * linux-mips-low.cc (mips_breakpoint_at)
2293 * linux-nios2-low.cc (nios2_breakpoint_at)
2294 * linux-ppc-low.cc (ppc_breakpoint_at)
2295 * linux-s390-low.cc (s390_get_hwcap)
2296 * linux-sh-low.cc (sh_breakpoint_at)
2297 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2298 (sparc_store_gregset_from_stack)
2299 (sparc_breakpoint_at)
2300 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2301 * linux-tile-low.cc (tile_breakpoint_at)
2302 * linux-x86-low.cc (x86_breakpoint_at)
2303 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2304 * mem-break.cc (bp_size)
2305 (bp_opcode)
2306 (insert_memory_breakpoint)
2307 (set_raw_breakpoint_at)
2308 (delete_raw_breakpoint)
2309 (z_type_supported)
2310 (uninsert_raw_breakpoint)
2311 (reinsert_raw_breakpoint)
2312 (validate_inserted_breakpoint)
2313 * regcache.cc (regcache_read_pc)
2314 (regcache_write_pc)
2315 * remote-utils.cc (putpkt_binary_1)
2316 (input_interrupt)
2317 (getpkt)
2318 (prepare_resume_reply)
2319 * server.cc (handle_general_set)
2320 (handle_detach)
2321 (handle_qxfer_auxv)
2322 (handle_qxfer_exec_file)
2323 (handle_qxfer_libraries_svr4)
2324 (handle_qxfer_osdata)
2325 (handle_qxfer_siginfo)
2326 (handle_qxfer_fdpic)
2327 (handle_query)
2328 (resume)
2329 (handle_v_requests)
2330 (queue_stop_reply_callback)
2331 (captured_main)
2332 * target.cc (prepare_to_access_memory)
2333 (done_accessing_memory)
2334 (read_inferior_memory)
2335 (target_write_memory)
2336 (target_stop_and_wait)
2337 (target_wait)
2338 (target_mourn_inferior)
2339 (target_continue_no_signal)
2340 (target_continue)
2341 (target_supports_multi_process)
2342 (kill_inferior)
2343 * target.h
2344 (target_create_inferior)
2345 (target_post_create_inferior)
2346 (myattach)
2347 (target_supports_fork_events)
2348 (target_supports_vfork_events)
2349 (target_supports_exec_events)
2350 (target_handle_new_gdb_connection)
2351 (detach_inferior)
2352 (mythread_alive)
2353 (fetch_inferior_registers)
2354 (store_inferior_registers)
2355 (join_inferior)
2356 (target_supports_non_stop)
2357 (target_async)
2358 (target_process_qsupported)
2359 (target_supports_catch_syscall)
2360 (target_get_ipa_tdesc_idx)
2361 (target_supports_tracepoints)
2362 (target_supports_fast_tracepoints)
2363 (target_get_min_fast_tracepoint_insn_len)
2364 (target_thread_stopped)
2365 (target_pause_all)
2366 (target_unpause_all)
2367 (target_stabilize_threads)
2368 (target_install_fast_tracepoint_jump_pad)
2369 (target_emit_ops)
2370 (target_supports_disable_randomization)
2371 (target_supports_agent)
2372 (target_enable_btrace)
2373 (target_disable_btrace)
2374 (target_read_btrace)
2375 (target_read_btrace_conf)
2376 (target_supports_range_stepping)
2377 (target_supports_stopped_by_sw_breakpoint)
2378 (target_stopped_by_sw_breakpoint)
2379 (target_supports_stopped_by_hw_breakpoint)
2380 (target_supports_hardware_single_step)
2381 (target_stopped_by_hw_breakpoint)
2382 (target_breakpoint_kind_from_pc)
2383 (target_breakpoint_kind_from_current_state)
2384 (target_supports_software_single_step)
2385 (target_core_of_thread)
2386 (target_thread_name)
2387 (target_thread_handle)
2388 * win32-low.cc (do_initial_child_stuff)
2389
2390 Rename target op default definitions listed below.
2391
2392 * target.cc (process_target::post_create_inferior): Rename as ...
2393 (process_stratum_target::post_create_inferior): ... this.
2394 (process_target::prepare_to_access_memory): Rename as ...
2395 (process_stratum_target::prepare_to_access_memory): ... this.
2396 (process_target::done_accessing_memory): Rename as ...
2397 (process_stratum_target::done_accessing_memory): ... this.
2398 (process_target::look_up_symbols): Rename as ...
2399 (process_stratum_target::look_up_symbols): ... this.
2400 (process_target::supports_read_auxv): Rename as ...
2401 (process_stratum_target::supports_read_auxv): ... this.
2402 (process_target::read_auxv): Rename as ...
2403 (process_stratum_target::read_auxv): ... this.
2404 (process_target::supports_z_point_type): Rename as ...
2405 (process_stratum_target::supports_z_point_type): ... this.
2406 (process_target::insert_point): Rename as ...
2407 (process_stratum_target::insert_point): ... this.
2408 (process_target::remove_point): Rename as ...
2409 (process_stratum_target::remove_point): ... this.
2410 (process_target::stopped_by_sw_breakpoint): Rename as ...
2411 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2412 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2413 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2414 (process_target::stopped_by_hw_breakpoint): Rename as ...
2415 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2416 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2417 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2418 (process_target::supports_hardware_single_step): Rename as ...
2419 (process_stratum_target::supports_hardware_single_step): ... this.
2420 (process_target::stopped_by_watchpoint): Rename as ...
2421 (process_stratum_target::stopped_by_watchpoint): ... this.
2422 (process_target::stopped_data_address): Rename as ...
2423 (process_stratum_target::stopped_data_address): ... this.
2424 (process_target::supports_read_offsets): Rename as ...
2425 (process_stratum_target::supports_read_offsets): ... this.
2426 (process_target::read_offsets): Rename as ...
2427 (process_stratum_target::read_offsets): ... this.
2428 (process_target::supports_get_tls_address): Rename as ...
2429 (process_stratum_target::supports_get_tls_address): ... this.
2430 (process_target::get_tls_address): Rename as ...
2431 (process_stratum_target::get_tls_address): ... this.
2432 (process_target::hostio_last_error): Rename as ...
2433 (process_stratum_target::hostio_last_error): ... this.
2434 (process_target::supports_qxfer_osdata): Rename as ...
2435 (process_stratum_target::supports_qxfer_osdata): ... this.
2436 (process_target::qxfer_osdata): Rename as ...
2437 (process_stratum_target::qxfer_osdata): ... this.
2438 (process_target::supports_qxfer_siginfo): Rename as ...
2439 (process_stratum_target::supports_qxfer_siginfo): ... this.
2440 (process_target::qxfer_siginfo): Rename as ...
2441 (process_stratum_target::qxfer_siginfo): ... this.
2442 (process_target::supports_non_stop): Rename as ...
2443 (process_stratum_target::supports_non_stop): ... this.
2444 (process_target::async): Rename as ...
2445 (process_stratum_target::async): ... this.
2446 (process_target::start_non_stop): Rename as ...
2447 (process_stratum_target::start_non_stop): ... this.
2448 (process_target::supports_multi_process): Rename as ...
2449 (process_stratum_target::supports_multi_process): ... this.
2450 (process_target::supports_fork_events): Rename as ...
2451 (process_stratum_target::supports_fork_events): ... this.
2452 (process_target::supports_vfork_events): Rename as ...
2453 (process_stratum_target::supports_vfork_events): ... this.
2454 (process_target::supports_exec_events): Rename as ...
2455 (process_stratum_target::supports_exec_events): ... this.
2456 (process_target::handle_new_gdb_connection): Rename as ...
2457 (process_stratum_target::handle_new_gdb_connection): ... this.
2458 (process_target::handle_monitor_command): Rename as ...
2459 (process_stratum_target::handle_monitor_command): ... this.
2460 (process_target::core_of_thread): Rename as ...
2461 (process_stratum_target::core_of_thread): ... this.
2462 (process_target::supports_read_loadmap): Rename as ...
2463 (process_stratum_target::supports_read_loadmap): ... this.
2464 (process_target::read_loadmap): Rename as ...
2465 (process_stratum_target::read_loadmap): ... this.
2466 (process_target::process_qsupported): Rename as ...
2467 (process_stratum_target::process_qsupported): ... this.
2468 (process_target::supports_tracepoints): Rename as ...
2469 (process_stratum_target::supports_tracepoints): ... this.
2470 (process_target::read_pc): Rename as ...
2471 (process_stratum_target::read_pc): ... this.
2472 (process_target::write_pc): Rename as ...
2473 (process_stratum_target::write_pc): ... this.
2474 (process_target::supports_thread_stopped): Rename as ...
2475 (process_stratum_target::supports_thread_stopped): ... this.
2476 (process_target::thread_stopped): Rename as ...
2477 (process_stratum_target::thread_stopped): ... this.
2478 (process_target::supports_get_tib_address): Rename as ...
2479 (process_stratum_target::supports_get_tib_address): ... this.
2480 (process_target::get_tib_address): Rename as ...
2481 (process_stratum_target::get_tib_address): ... this.
2482 (process_target::pause_all): Rename as ...
2483 (process_stratum_target::pause_all): ... this.
2484 (process_target::unpause_all): Rename as ...
2485 (process_stratum_target::unpause_all): ... this.
2486 (process_target::stabilize_threads): Rename as ...
2487 (process_stratum_target::stabilize_threads): ... this.
2488 (process_target::supports_fast_tracepoints): Rename as ...
2489 (process_stratum_target::supports_fast_tracepoints): ... this.
2490 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2491 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2492 (process_target::emit_ops): Rename as ...
2493 (process_stratum_target::emit_ops): ... this.
2494 (process_target::supports_disable_randomization): Rename as ...
2495 (process_stratum_target::supports_disable_randomization): ... this.
2496 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2497 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2498 (process_target::qxfer_libraries_svr4): Rename as ...
2499 (process_stratum_target::qxfer_libraries_svr4): ... this.
2500 (process_target::supports_agent): Rename as ...
2501 (process_stratum_target::supports_agent): ... this.
2502 (process_target::enable_btrace): Rename as ...
2503 (process_stratum_target::enable_btrace): ... this.
2504 (process_target::disable_btrace): Rename as ...
2505 (process_stratum_target::disable_btrace): ... this.
2506 (process_target::read_btrace): Rename as ...
2507 (process_stratum_target::read_btrace): ... this.
2508 (process_target::read_btrace_conf): Rename as ...
2509 (process_stratum_target::read_btrace_conf): ... this.
2510 (process_target::supports_range_stepping): Rename as ...
2511 (process_stratum_target::supports_range_stepping): ... this.
2512 (process_target::supports_pid_to_exec_file): Rename as ...
2513 (process_stratum_target::supports_pid_to_exec_file): ... this.
2514 (process_target::pid_to_exec_file): Rename as ...
2515 (process_stratum_target::pid_to_exec_file): ... this.
2516 (process_target::supports_multifs): Rename as ...
2517 (process_stratum_target::supports_multifs): ... this.
2518 (process_target::multifs_open): Rename as ...
2519 (process_stratum_target::multifs_open): ... this.
2520 (process_target::multifs_unlink): Rename as ...
2521 (process_stratum_target::multifs_unlink): ... this.
2522 (process_target::multifs_readlink): Rename as ...
2523 (process_stratum_target::multifs_readlink): ... this.
2524 (process_target::breakpoint_kind_from_pc): Rename as ...
2525 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2526 (process_target::breakpoint_kind_from_current_state): Rename as ...
2527 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2528 (process_target::thread_name): Rename as ...
2529 (process_stratum_target::thread_name): ... this.
2530 (process_target::thread_handle): Rename as ...
2531 (process_stratum_target::thread_handle): ... this.
2532 (process_target::supports_software_single_step): Rename as ...
2533 (process_stratum_target::supports_software_single_step): ... this.
2534 (process_target::supports_catch_syscall): Rename as ...
2535 (process_stratum_target::supports_catch_syscall): ... this.
2536 (process_target::get_ipa_tdesc_idx): Rename as ...
2537 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2538
478f9adf
PA
25392020-02-20 Pedro Alves <palves@redhat.com>
2540
2541 * target.cc (set_target_ops): Simply copy the given target pointer
2542 instead of creating a copy of the pointed object.
2543
d633e831
TBA
25442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2545
2546 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2547 of process_target.
2548
2549 * target.h (struct process_stratum_target): Remove the target op.
2550 (class process_target): Add the target op.
2551 (target_get_ipa_tdesc_idx): Update the macro.
2552 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2553
2554 Update the derived classes and callers below.
2555
2556 * linux-low.cc (linux_target_ops): Update.
2557 (linux_get_ipa_tdesc_idx): Turn into ...
2558 (linux_process_target::get_ipa_tdesc_idx): ... this.
2559 * linux-low.h (class linux_process_target): Update.
2560 * lynx-low.cc (lynx_target_ops): Update.
2561 * nto-low.cc (nto_target_ops): Update.
2562 * win32-low.cc (win32_target_ops): Update.
2563
bc8d3ae4
TBA
25642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2565
2566 Turn process_stratum_target's supports_catch_syscall op into a
2567 method of process_target.
2568
2569 * target.h (struct process_stratum_target): Remove the target op.
2570 (class process_target): Add the target op.
2571 (target_supports_catch_syscall): Update the macro.
2572 * target.cc (process_target::supports_catch_syscall): Define.
2573
2574 Update the derived classes and callers below.
2575
2576 * linux-low.cc (linux_target_ops): Update.
2577 (linux_supports_catch_syscall): Turn into ...
2578 (linux_process_target::supports_catch_syscall): ... this.
2579 * linux-low.h (class linux_process_target): Update.
2580 * lynx-low.cc (lynx_target_ops): Update.
2581 * nto-low.cc (nto_target_ops): Update.
2582 * win32-low.cc (win32_target_ops): Update.
2583
5303a34f
TBA
25842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2585
2586 Turn process_stratum_target's supports_software_single_step op
2587 into a method of process_target.
2588
2589 * target.h (struct process_stratum_target): Remove the target op.
2590 (class process_target): Add the target op.
2591 (target_supports_software_single_step): Update the macro.
2592 * target.cc (process_target::supports_software_single_step): Define.
2593
2594 Update the derived classes and callers below.
2595
2596 * linux-low.cc (linux_target_ops): Update.
2597 (linux_supports_software_single_step): Turn into ...
2598 (linux_process_target::supports_software_single_step): ... this.
2599 * linux-low.h (class linux_process_target): Update.
2600 * lynx-low.cc (lynx_target_ops): Update.
2601 * nto-low.cc (nto_target_ops): Update.
2602 * win32-low.cc (win32_target_ops): Update.
2603
7f63b89b
TBA
26042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2605
2606 Turn process_stratum_target's thread_name and thread_handle ops
2607 into methods of process_target.
2608
2609 * target.h (struct process_stratum_target): Remove the target ops.
2610 (class process_target): Add the target ops.
2611 (target_thread_name): Update the macro.
2612 (target_thread_handle): Update the macro.
2613 * target.cc (process_target::thread_name): Define.
2614 (process_target::thread_handle): Define.
2615
2616 Update the derived classes and callers below.
2617
2618 * linux-low.cc (linux_target_ops): Update.
2619 (linux_process_target::thread_name): Define.
2620 (linux_process_target::thread_handle): Define.
2621 * linux-low.h (class linux_process_target): Update.
2622 * lynx-low.cc (lynx_target_ops): Update.
2623 * nto-low.cc (nto_target_ops): Update.
2624 * win32-low.cc (win32_target_ops): Update.
2625
d367006f
TBA
26262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2627
2628 Turn process_stratum_target's breakpoint_kind_from_pc,
2629 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2630 ops into methods of process_target.
2631
2632 * target.h (struct process_stratum_target): Remove the target op.
2633 (class process_target): Add the target op.
2634 (target_breakpoint_kind_from_pc): Update the macro.
2635 (target_breakpoint_kind_from_current_state): Update the macro.
2636 (default_breakpoint_kind_from_pc): Remove declaration.
2637 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2638 (process_target::breakpoint_kind_from_pc): ... this.
2639 (process_target::breakpoint_kind_from_current_state): Define.
2640
2641 Update the derived classes and callers below.
2642
2643 * mem-break.cc (bp_size): Update.
2644 (bp_opcode): Update.
2645 * linux-low.cc (linux_target_ops): Update.
2646 (linux_wait_1): Update.
2647 (linux_breakpoint_kind_from_pc): Turn into ...
2648 (linux_process_target::breakpoint_kind_from_pc): ... this.
2649 (linux_sw_breakpoint_from_kind): Turn into ...
2650 (linux_process_target::sw_breakpoint_from_kind): ... this.
2651 (linux_breakpoint_kind_from_current_state): Turn into ...
2652 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2653 * linux-low.h (class linux_process_target): Update.
2654 * lynx-low.cc (lynx_target_ops): Update.
2655 (lynx_process_target::sw_breakpoint_from_kind): Define.
2656 * lynx-low.h (class lynx_process_target): Update.
2657 * nto-low.cc (nto_target_ops): Update.
2658 (nto_sw_breakpoint_from_kind): Turn into ...
2659 (nto_process_target::sw_breakpoint_from_kind): ... this.
2660 * nto-low.h (class nto_process_target): Update.
2661 * win32-low.cc (win32_target_ops): Update.
2662 (win32_sw_breakpoint_from_kind): Turn into ...
2663 (win32_process_target::sw_breakpoint_from_kind): ... this.
2664 * win32-low.h (class win32_process_target): Update.
2665
c9b7b804
TBA
26662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2667
2668 Turn process_stratum_target's multifs_open, multifs_readlink,
2669 multifs_unlink ops into methods of process_target.
2670
2671 * target.h (struct process_stratum_target): Remove the target ops.
2672 (class process_target): Add the target ops. Also add
2673 'supports_multifs'.
2674 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2675 "sys/stat.h".
2676 (process_target::supports_multifs): Define.
2677 (process_target::multifs_open): Define.
2678 (process_target::multifs_readlink): Define.
2679 (process_target::multifs_unlink): Define.
2680
2681 Update the derived classes and callers below.
2682
2683 * hostio.cc (handle_setfs): Update.
2684 (handle_open): Update.
2685 (handle_unlink): Update.
2686 (handle_readlink): Update.
2687 * linux-low.cc (linux_target_ops): Update.
2688 (linux_process_target::supports_multifs): Define.
2689 (linux_process_target::multifs_open): Define.
2690 (linux_process_target::multifs_readlink): Define.
2691 (linux_process_target::multifs_unlink): Define.
2692 * linux-low.h (class linux_process_target): Update.
2693 * lynx-low.cc (lynx_target_ops): Update.
2694 * nto-low.cc (nto_target_ops): Update.
2695 * win32-low.cc (win32_target_ops): Update.
2696
8247b823
TBA
26972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2698
2699 Turn process_stratum_target's pid_to_exec_file op into a method
2700 of process_target.
2701
2702 * target.h (struct process_stratum_target): Remove the target op.
2703 (class process_target): Add the target op. Also add
2704 'supports_pid_to_exec_file'.
2705 * target.cc (process_target::pid_to_exec_file): Define.
2706 (process_target::supports_pid_to_exec_file): Define.
2707
2708 Update the derived classes and callers below.
2709
2710 * server.cc (handle_qxfer_exec_file): Update.
2711 (handle_query): Update.
2712 * linux-low.cc (linux_target_ops): Update.
2713 (linux_process_target::supports_pid_to_exec_file): Define.
2714 (linux_process_target::pid_to_exec_file): Define.
2715 * linux-low.h (class linux_process_target): Update.
2716 * lynx-low.cc (lynx_target_ops): Update.
2717 * nto-low.cc (nto_target_ops): Update.
2718 * win32-low.cc (win32_target_ops): Update.
2719
2526e0cd
TBA
27202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2721
2722 Turn process_stratum_target's supports_range_stepping op into a
2723 method of process_target.
2724
2725 * target.h (struct process_stratum_target): Remove the target op.
2726 (class process_target): Add the target op.
2727 (target_supports_range_stepping): Update the macro.
2728 * target.cc (process_target::supports_range_stepping): Define.
2729
2730 Update the derived classes and callers below.
2731
2732 * linux-low.cc (linux_target_ops): Update.
2733 (linux_supports_range_stepping): Turn into ...
2734 (linux_process_target::supports_range_stepping): ... this.
2735 * linux-low.h (class linux_process_target): Update.
2736 * lynx-low.cc (lynx_target_ops): Update.
2737 * nto-low.cc (nto_target_ops): Update.
2738 * win32-low.cc (win32_target_ops): Update.
2739
79597bdd
TBA
27402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2741
2742 Turn process_stratum_target's btrace-related ops (enable_btrace,
2743 disable_btrace, read_btrace, read_btrace_conf) into methods of
2744 process_target.
2745
2746 * target.h (struct process_stratum_target): Remove the target ops.
2747 (class process_target): Add the target ops.
2748 (target_enable_btrace): Update.
2749 (target_disable_btrace): Update.
2750 (target_read_btrace): Update.
2751 (target_read_btrace_conf): Update.
2752 * target.cc (process_target::enable_btrace): Define.
2753 (process_target::disable_btrace): Define.
2754 (process_target::read_btrace): Define.
2755 (process_target::read_btrace_conf): Define.
2756
2757 Update the derived classes and callers below.
2758
2759 * linux-low.cc (linux_target_ops): Update.
2760 (linux_process_target:enable_btrace): Define as a wrapper around
2761 linux_enable_btrace.
2762 (linux_low_disable_btrace): Turn into ...
2763 (linux_process_target::disable_btrace): ... this.
2764 (linux_low_read_btrace): Turn into ...
2765 (linux_process_target::read_btrace): ... this.
2766 (linux_low_btrace_conf): Turn into ...
2767 (linux_process_target::read_btrace_conf): ... this.
2768 * linux-low.h (class linux_process_target): Update.
2769 * lynx-low.cc (lynx_target_ops): Update.
2770 * nto-low.cc (nto_target_ops): Update.
2771 * win32-low.cc (win32_target_ops): Update.
2772
c0245cb9
TBA
27732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2774
2775 Turn process_stratum_target's supports_agent op into a method of
2776 process_target.
2777
2778 * target.h (struct process_stratum_target): Remove the target op.
2779 (class process_target): Add the target op.
2780 (target_supports_agent): Update the macro.
2781 * target.cc (process_target::supports_agent): Define.
2782
2783 Update the derived classes and callers below.
2784
2785 * linux-low.cc (linux_target_ops): Update.
2786 (linux_supports_agent): Turn into ...
2787 (linux_process_target::supports_agent): ... this.
2788 * linux-low.h (class linux_process_target): Update.
2789 * lynx-low.cc (lynx_target_ops): Update.
2790 * nto-low.cc (nto_target_ops): Update.
2791 * win32-low.cc (win32_target_ops): Update.
2792
974387bb
TBA
27932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2794
2795 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2796 method of process_target.
2797
2798 * target.h (struct process_stratum_target): Remove the target op.
2799 (class process_target): Add the target op. Also add
2800 'supports_qxfer_libraries_svr4'.
2801 * target.cc (process_target::qxfer_libraries_svr4): Define.
2802 (process_target::supports_qxfer_libraries_svr4): Define.
2803
2804 Update the derived classes and callers below.
2805
2806 * server.cc (handle_qxfer_libraries_svr4): Update.
2807 (handle_query): Update.
2808 * linux-low.cc (linux_target_ops): Update.
2809 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2810 (linux_qxfer_libraries_svr4): Turn into ...
2811 (linux_process_target::qxfer_libraries_svr4): ... this.
2812 * linux-low.h (class linux_process_target): Update.
2813 * lynx-low.cc (lynx_target_ops): Update.
2814 * nto-low.cc (nto_target_ops): Update.
2815 * win32-low.cc (win32_target_ops): Update.
2816
c756403b
TBA
28172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2818
2819 Turn process_stratum_target's supports_disable_randomization op
2820 into a method of process_target.
2821
2822 * target.h (struct process_stratum_target): Remove the target op.
2823 (class process_target): Add the target op.
2824 (target_supports_disable_randomization): Update the macro.
2825 * target.cc (process_target::supports_disable_randomization): Define.
2826
2827 Update the derived classes and callers below.
2828
2829 * linux-low.cc (linux_target_ops): Update.
2830 (linux_supports_disable_randomization): Turn into ...
2831 (linux_process_target::supports_disable_randomization): ... this.
2832 * linux-low.h (class linux_process_target): Update.
2833 * lynx-low.cc (lynx_target_ops): Update.
2834 * nto-low.cc (nto_target_ops): Update.
2835 * win32-low.cc (win32_target_ops): Update.
2836
345dafad
TBA
28372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2838
2839 Turn process_stratum_target's emit_ops op into a method of
2840 process_target.
2841
2842 * target.h (struct process_stratum_target): Remove the target op.
2843 (class process_target): Add the target op.
2844 (target_emit_ops): Update the macro.
2845 * target.cc (process_target::emit_ops): Define.
2846
2847 Update the derived classes and callers below.
2848
2849 * linux-low.cc (linux_target_ops): Update.
2850 (linux_emit_ops): Turn into ...
2851 (linux_process_target::emit_ops): ... this.
2852 * linux-low.h (class linux_process_target): Update.
2853 * lynx-low.cc (lynx_target_ops): Update.
2854 * nto-low.cc (nto_target_ops): Update.
2855 * win32-low.cc (win32_target_ops): Update.
2856
c23c9391
TBA
28572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2858
2859 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2860 and get_min_fast_tracepoint_insn_len ops into methods of
2861 process_target.
2862
2863 * target.h (struct process_stratum_target): Remove the target ops.
2864 (class process_target): Add the target ops. Also add
2865 'supports_fast_tracepoints'.
2866 (target_supports_fast_tracepoints): Update the macro.
2867 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2868 (install_fast_tracepoint_jump_pad): Update and rename the macro
2869 to ...
2870 (target_install_fast_tracepoint_jump_pad): ... this.
2871 * target.cc (process_target::supports_fast_tracepoints): Define.
2872 (process_target::install_fast_tracepoint_jump_pad): Define.
2873 (process_target::get_min_fast_tracepoint_insn_len): Define.
2874
2875 Update the derived classes and callers below.
2876
2877 * tracepoint.cc (install_fast_tracepoint): Update.
2878 * linux-low.cc (linux_target_ops): Update.
2879 (linux_process_target::supports_fast_tracepoints): Define.
2880 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2881 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2882 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2883 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2884 * linux-low.h (class linux_process_target): Update.
2885 * lynx-low.cc (lynx_target_ops): Update.
2886 * nto-low.cc (nto_target_ops): Update.
2887 * win32-low.cc (win32_target_ops): Update.
2888
5c9eb2f2
TBA
28892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2890
2891 Turn process_stratum_target's stabilize_threads op into a
2892 method of process_target.
2893
2894 * target.h (struct process_stratum_target): Remove the target op.
2895 (class process_target): Add the target op.
2896 (target_stabilize_threads): Update the macro.
2897 * target.cc (process_target::stabilize_threads): Define.
2898
2899 Update the derived classes and callers below.
2900
2901 * server.cc (handle_status): Update.
2902 * tracepoint.cc (cmd_qtdp): Update.
2903 (cmd_qtstart): Update.
2904 * linux-low.cc (linux_target_ops): Update.
2905 (linux_stabilize_threads): Turn into ...
2906 (linux_process_target::stabilize_threads): ... this.
2907 (linux_wait_1): Update.
2908 * linux-low.h (class linux_process_target): Update.
2909 * lynx-low.cc (lynx_target_ops): Update.
2910 * nto-low.cc (nto_target_ops): Update.
2911 * win32-low.cc (win32_target_ops): Update.
2912
29e8dc09
TBA
29132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2914
2915 Turn process_stratum_target's pause_all and unpause_all ops
2916 into methods of process_target.
2917
2918 * target.h (struct process_stratum_target): Remove the target ops.
2919 (class process_target): Add the target ops.
2920 (pause_all): Update the macro and rename to...
2921 (target_pause_all): ... this.
2922 (unpause_all): Update the macro and rename to...
2923 (target_unpause_all): ... this.
2924 * target.cc (process_target::pause_all): Define.
2925 (process_target::unpause_all): Define.
2926
2927 Update the derived classes and callers below.
2928
2929 * server.cc (handle_status): Update.
2930 * tracepoint.cc (clear_installed_tracepoints): Update.
2931 (cmd_qtdp): Update.
2932 (cmd_qtstart): Update.
2933 (stop_tracing): Update.
2934 (cmd_qtstatus): Update.
2935 (upload_fast_traceframes): Update.
2936 (run_inferior_command): Update.
2937 * linux-low.cc (linux_target_ops): Update.
2938 (linux_pause_all): Turn into ...
2939 (linux_process_target::pause_all): ... this.
2940 (linux_unpause_all): Turn into ...
2941 (linux_process_target::unpause_all): ... this.
2942 (linux_process_target::prepare_to_access_memory): Update.
2943 (linux_process_target::done_accessing_memory): Update.
2944 * linux-low.h (class linux_process_target): Update.
2945 * lynx-low.cc (lynx_target_ops): Update.
2946 * nto-low.cc (nto_target_ops): Update.
2947 * win32-low.cc (win32_target_ops): Update.
2948
4e2e869c
TBA
29492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2950
2951 Turn process_stratum_target's get_tib_address op into a method of
2952 process_target.
2953
2954 * target.h (struct process_stratum_target): Remove the target op.
2955 (class process_target): Add the target op. Also add
2956 'supports_get_tib_address'.
2957 * target.cc (process_target::get_tib_address): Define.
2958 (process_target::supports_get_tib_address): Define.
2959
2960 Update the derived classes and callers below.
2961
2962 * server.cc (handle_query): Update.
2963 * linux-low.cc (win32_target_ops): Update.
2964 * lynx-low.cc (lynx_target_ops): Update.
2965 * nto-low.cc (nto_target_ops): Update.
2966 * win32-low.cc (win32_target_ops): Update.
2967 (win32_process_target::supports_get_tib_address): Define.
2968 (win32_get_tib_address): Turn into ...
2969 (win32_process_target::get_tib_address): ... this.
2970 * win32-low.h (class win32_process_target): Update.
2971
68119632
TBA
29722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2973
2974 Turn process_stratum_target's thread_stopped op into a method of
2975 process_target.
2976
2977 * target.h (struct process_stratum_target): Remove the target op.
2978 (class process_target): Add the target op. Also add
2979 'supports_thread_stopped'.
2980 (target_thread_stopped): Update the macro.
2981 * target.cc (process_target::thread_stopped): Define.
2982 (process_target::supports_thread_stopped): Define.
2983 (prepare_to_access_memory): Update.
2984
2985 Update the derived classes and callers below.
2986
2987 * server.cc (queue_stop_reply_callback): Update.
2988 * linux-low.cc (linux_target_ops): Update.
2989 (linux_process_target::supports_thread_stopped): Define.
2990 (linux_thread_stopped): Turn into ...
2991 (linux_process_target::thread_stopped): ... this.
2992 * linux-low.h (class linux_process_target): Update.
2993 * lynx-low.cc (lynx_target_ops): Update.
2994 * nto-low.cc (nto_target_ops): Update.
2995 * win32-low.cc (win32_target_ops): Update.
2996
770d8f6a
TBA
29972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2998
2999 Turn process_stratum_target's read_pc and write_pc ops into
3000 methods of process_target.
3001
3002 * target.h (struct process_stratum_target): Remove the target ops.
3003 (class process_target): Add the target ops.
3004 * target.cc (process_target::read_pc): Define.
3005 (process_target::write_pc): Define.
3006
3007 Update the derived classes and callers below.
3008
3009 * regcache.cc (regcache_read_pc): Update.
3010 (regcache_write_pc): Update.
3011 * linux-low.cc (linux_target_ops): Update.
3012 (linux_read_pc): Turn into ...
3013 (linux_process_target::read_pc): ... this.
3014 (linux_write_pc): Turn into ...
3015 (linux_process_target::write_pc): ... this.
3016 * linux-low.h (class linux_process_target): Update.
3017 * lynx-low.cc (lynx_target_ops): Update.
3018 * nto-low.cc (nto_target_ops): Update.
3019 * win32-low.cc (win32_target_ops): Update.
3020
290732bf
TBA
30212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3022
3023 Turn process_stratum_target's supports_tracepoints op into a
3024 method of process_target.
3025
3026 * target.h (struct process_stratum_target): Remove the target op.
3027 (class process_target): Add the target op.
3028 (target_supports_tracepoints): Update the macro.
3029 * target.cc (process_target::supports_tracepoints): Define.
3030
3031 Update the derived classes and callers below.
3032
3033 * linux-low.cc (linux_target_ops): Update.
3034 (linux_supports_tracepoints): Turn into ...
3035 (linux_process_target::supports_tracepoints): ... this.
3036 * linux-low.h (class linux_process_target): Update.
3037 * lynx-low.cc (lynx_target_ops): Update.
3038 * nto-low.cc (nto_target_ops): Update.
3039 * win32-low.cc (win32_target_ops): Update.
3040
0df28b1b
TBA
30412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3042
3043 Turn process_stratum_target's process_qsupported op into a method
3044 of process_target.
3045
3046 * target.h (struct process_stratum_target): Remove the target op.
3047 (class process_target): Add the target op.
3048 (target_process_qsupported): Update the macro.
3049 * target.cc (process_target::process_qsupported): Define.
3050
3051 Update the derived classes and callers below.
3052
3053 * linux-low.cc (linux_target_ops): Update.
3054 (linux_process_qsupported): Turn into ...
3055 (linux_process_target::process_qsupported): ... this.
3056 * linux-low.h (class linux_process_target): Update.
3057 * lynx-low.cc (lynx_target_ops): Update.
3058 * nto-low.cc (nto_target_ops): Update.
3059 * win32-low.cc (win32_target_ops): Update.
3060
9da41fda
TBA
30612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3062
3063 Turn process_stratum_target's read_loadmap op into a method of
3064 process_target.
3065
3066 * target.h (struct process_stratum_target): Remove the target op.
3067 (class process_target): Add the target op. Also add
3068 'supports_read_loadmap'.
3069 * target.cc (process_target::read_loadmap): Define.
3070 (process_target::supports_read_loadmap): Define.
3071
3072 Update the derived classes and callers below.
3073
3074 * server.cc (handle_qxfer_fdpic): Update.
3075 (handle_query): Update.
3076 * linux-low.cc (linux_target_ops): Update.
3077 (linux_process_target::supports_read_loadmap): Define.
3078 (linux_read_loadmap): Turn into ...
3079 (linux_process_target::read_loadmap): ... this.
3080 * linux-low.h (class linux_process_target): Update.
3081 * lynx-low.cc (lynx_target_ops): Update.
3082 * nto-low.cc (nto_target_ops): Update.
3083 * win32-low.cc (win32_target_ops): Update.
3084
95a45fc1
TBA
30852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3086
3087 Turn process_stratum_target's core_of_thread op into a method of
3088 process_target.
3089
3090 * target.h (struct process_stratum_target): Remove the target op.
3091 (class process_target): Add the target op.
3092 (target_core_of_thread): Update the macro.
3093 * target.cc (process_target::core_of_thread): Define.
3094
3095 Update the derived classes and callers below.
3096
3097 * linux-low.cc (linux_target_ops): Update.
3098 (linux_process_target::core_of_thread): Define.
3099 * linux-low.h (class linux_process_target): Update.
3100 * lynx-low.cc (lynx_target_ops): Update.
3101 * nto-low.cc (nto_target_ops): Update.
3102 * win32-low.cc (win32_target_ops): Update.
3103
55cf3021
TBA
31042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3105
3106 Turn process_stratum_target's handle_monitor_command op into a
3107 method of process_target.
3108
3109 * target.h (struct process_stratum_target): Remove the target op.
3110 (class process_target): Add the target op.
3111 (target_handle_monitor_command): Update the macro.
3112 * target.cc (process_target::handle_monitor_command): Define.
3113
3114 Update the derived classes and callers below.
3115
3116 * server.cc (handle_query): Update.
3117 * linux-low.cc (linux_target_ops): Update.
3118 (linux_process_target::handle_monitor_command): Define.
3119 * linux-low.h (class linux_process_target): Update.
3120 * lynx-low.cc (lynx_target_ops): Update.
3121 * nto-low.cc (nto_target_ops): Update.
3122 * win32-low.cc (win32_target_ops): Update.
3123
fb00dfce
TBA
31242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3125
3126 Turn process_stratum_target's handle_new_gdb_connection op into a
3127 method of process_target.
3128
3129 * target.h (struct process_stratum_target): Remove the target op.
3130 (class process_target): Add the target op.
3131 (target_handle_new_gdb_connection): Update the macro.
3132 * target.cc (process_target::handle_new_gdb_connection): Define.
3133
3134 Update the derived classes and callers below.
3135
3136 * linux-low.cc (linux_target_ops): Update.
3137 (linux_handle_new_gdb_connection): Turn into ...
3138 (linux_process_target::handle_new_gdb_connection): ... this.
3139 * linux-low.h (class linux_process_target): Update.
3140 * lynx-low.cc (lynx_target_ops): Update.
3141 * nto-low.cc (nto_target_ops): Update.
3142 * win32-low.cc (win32_target_ops): Update.
3143
9690a72a
TBA
31442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3145
3146 Turn process_stratum_target's supports_fork_events,
3147 supports_vfork_events, and supports_exec_events ops into methods
3148 of process_target.
3149
3150 * target.h (struct process_stratum_target): Remove the target ops.
3151 (class process_target): Add the target ops.
3152 (target_supports_fork_events): Update the macro.
3153 (target_supports_vfork_events): Update the macro.
3154 (target_supports_exec_events): Update the macro.
3155 * target.cc (process_target::supports_fork_events): Define.
3156 (process_target::supports_vfork_events): Define.
3157 (process_target::supports_exec_events): Define.
3158
3159 Update the derived classes and callers below.
3160
3161 * linux-low.cc (linux_target_ops): Update.
3162 (linux_supports_fork_events): Turn into ...
3163 (linux_process_target::supports_fork_events): ... this.
3164 (linux_supports_vfork_events): Turn into ...
3165 (linux_process_target::supports_vfork_events): ... this.
3166 (linux_supports_exec_events): Turn into ...
3167 (linux_process_target::supports_exec_events): ... this.
3168 * linux-low.h (class linux_process_target): Update.
3169 * lynx-low.cc (lynx_target_ops): Update.
3170 * nto-low.cc (nto_target_ops): Update.
3171 * win32-low.cc (win32_target_ops): Update.
3172
652aef77
TBA
31732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3174
3175 Turn process_stratum_target's supports_multi_process op into a
3176 method of process_target.
3177
3178 * target.h (struct process_stratum_target): Remove the target op.
3179 (class process_target): Add the target op.
3180 * target.cc (process_target::supports_multi_process): Define.
3181 (target_supports_multi_process): Update.
3182
3183 Update the derived classes and callers below.
3184
3185 * linux-low.cc (linux_target_ops): Update.
3186 (linux_supports_multi_process): Turn into ...
3187 (linux_process_target::supports_multi_process): ... this.
3188 * linux-low.h (class linux_process_target): Update.
3189 * lynx-low.cc (lynx_target_ops): Update.
3190 * nto-low.cc (nto_target_ops): Update.
3191 * win32-low.cc (win32_target_ops): Update.
3192
0dc587d4
TBA
31932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3194
3195 Turn process_stratum_target's supports_non_stop, async, and
3196 start_non_stop ops into methods of process_target.
3197
3198 * target.h (struct process_stratum_target): Remove the target ops.
3199 (class process_target): Add the target ops.
3200 (target_supports_non_stop): Update the macro.
3201 (target_async): Update the macro.
3202 (start_non_stop): Remove declaration.
3203 * target.cc (process_target::supports_non_stop): Define.
3204 (process_target::async): Define.
3205 (process_target::start_non_stop): Define.
3206 (start_non_stop): Remove.
3207
3208 Update the derived classes and callers below.
3209
3210 * server.cc (handle_qxfer_siginfo): Update.
3211 (handle_query): Update.
3212 * linux-low.cc (linux_target_ops): Update.
3213 (linux_supports_non_stop): Turn into ...
3214 (linux_process_target::supports_non_stop): ... this.
3215 (linux_async): Turn into ...
3216 (linux_process_target::async): ... this.
3217 (linux_start_non_stop): Turn into ...
3218 (linux_process_target::start_non_stop): ... this.
3219 * linux-low.h (class linux_process_target): Update.
3220 * lynx-low.cc (lynx_target_ops): Update.
3221 * nto-low.cc (nto_target_ops): Update.
3222 (nto_supports_non_stop): Remove; rely on the default behavior
3223 instead.
3224 * win32-low.cc (win32_target_ops): Update.
3225
d7abedf7
TBA
32262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3227
3228 Turn process_stratum_target's qxfer_siginfo op into a method of
3229 process_target.
3230
3231 * target.h (struct process_stratum_target): Remove the target op.
3232 (class process_target): Add the target op. Also add
3233 'supports_qxfer_siginfo'.
3234 * target.cc (process_target::qxfer_siginfo): Define.
3235 (process_target::supports_qxfer_siginfo): Define.
3236
3237 Update the derived classes and callers below.
3238
3239 * server.cc (handle_qxfer_siginfo): Update.
3240 (handle_query): Update.
3241 * linux-low.cc (linux_target_ops): Update.
3242 (linux_process_target::supports_qxfer_siginfo): Define.
3243 (linux_xfer_siginfo): Turn into ...
3244 (linux_process_target::qxfer_siginfo): ... this.
3245 * linux-low.h (class linux_process_target): Update.
3246 * lynx-low.cc (lynx_target_ops): Update.
3247 * nto-low.cc (nto_target_ops): Update.
3248 * win32-low.cc (win32_target_ops): Update.
3249
2d0795ee
TBA
32502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3251
3252 Turn process_stratum_target's qxfer_osdata op into a method of
3253 process_target.
3254
3255 * target.h (struct process_stratum_target): Remove the target op.
3256 (class process_target): Add the target op. Also add
3257 'supports_qxfer_osdata'.
3258 * target.cc (process_target::qxfer_osdata): Define.
3259 (process_target::supports_qxfer_osdata): Define.
3260
3261 Update the derived classes and callers below.
3262
3263 * server.cc (handle_qxfer_osdata): Update.
3264 (handle_query): Update.
3265 * linux-low.cc (linux_target_ops): Update.
3266 (linux_process_target::supports_qxfer_osdata): Define.
3267 (linux_qxfer_osdata): Turn into ...
3268 (linux_process_target::qxfer_osdata): ... this.
3269 * linux-low.h (class linux_process_target): Update.
3270 * lynx-low.cc (lynx_target_ops): Update.
3271 * nto-low.cc (nto_target_ops): Update.
3272 * win32-low.cc (win32_target_ops): Update.
3273
ea06bbaa
TBA
32742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3275
3276 Turn process_stratum_target's hostio_last_error op into a
3277 method of process_target.
3278
3279 * target.h (struct process_stratum_target): Remove the target op.
3280 (class process_target): Add the target op.
3281 * target.cc: Add "hostio.h" to includes.
3282 (process_target::hostio_last_error): Define.
3283
3284 Update the derived classes and callers below.
3285
3286 * hostio.cc (hostio_error): Update.
3287 * linux-low.cc: Remove "hostio.h" from includes.
3288 (linux_target_ops): Update.
3289 * lynx-low.cc (lynx_target_ops): Update.
3290 * nto-low.cc (nto_target_ops): Update.
3291 * win32-low.h (class win32_process_target): Update.
3292 * win32-low.cc (win32_target_ops): Update.
3293 (wince_hostio_last_error): Turn into ...
3294 (win32_process_target::hostio_last_error): ... this.
3295
6e3fd7e9
TBA
32962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3297
3298 Turn process_stratum_target's get_tls_address op into a method of
3299 process_target.
3300
3301 * target.h (struct process_stratum_target): Remove the target op.
3302 (class process_target): Add the target op. Also add
3303 'supports_get_tls_address'.
3304 * target.cc (process_target::get_tls_address): Define.
3305 (process_target::supports_get_tls_address): Define.
3306
3307 Update the derived classes and callers below.
3308
3309 * server.cc (handle_query): Update.
3310 * linux-low.cc (linux_target_ops): Update.
3311 (linux_process_target::supports_get_tls_address): Define.
3312 (linux_process_target::get_tls_address): Define.
3313 * linux-low.h (class linux_process_target): Update.
3314 * lynx-low.cc (lynx_target_ops): Update.
3315 * nto-low.cc (nto_target_ops): Update.
3316 * win32-low.cc (win32_target_ops): Update.
3317
5203ae1e
TBA
33182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3319
3320 Turn process_stratum_target's read_offsets op into a method of
3321 process_target.
3322
3323 * target.h (struct process_stratum_target): Remove the target op.
3324 (class process_target): Add the target op. Also add
3325 'supports_read_offsets'.
3326 * target.cc (process_target::read_offsets): Define.
3327 (process_target::supports_read_offsets): Define.
3328
3329 Update the derived classes and callers below.
3330
3331 * server.cc (handle_query): Update.
3332 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3333 (linux_target_ops): Update.
3334 (linux_process_target::supports_read_offsets): Define.
3335 (linux_read_offsets): Turn into ...
3336 (linux_process_target::read_offsets): ... this.
3337 * linux-low.h (class linux_process_target): Update.
3338 * lynx-low.cc (lynx_target_ops): Update.
3339 * nto-low.cc (nto_target_ops): Update.
3340 * win32-low.cc (win32_target_ops): Update.
3341
6eeb5c55
TBA
33422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3343
3344 Turn process_stratum_target's stopped_by_watchpoint and
3345 stopped_data_address ops into methods of process_target.
3346
3347 * target.h (struct process_stratum_target): Remove the target ops.
3348 (class process_target): Add the target ops.
3349 * target.cc (process_target::stopped_by_watchpoint): Define.
3350 (process_target::stopped_data_address): Define.
3351
3352 Update the derived classes and callers below.
3353
3354 * remote-utils.cc (prepare_resume_reply): Update.
3355 * linux-low.cc (linux_target_ops): Update.
3356 (linux_stopped_by_watchpoint): Turn into ...
3357 (linux_process_target::stopped_by_watchpoint): ... this.
3358 (linux_stopped_data_address): Turn into ...
3359 (linux_process_target::stopped_data_address): ... this.
3360 * linux-low.h (class linux_process_target): Update.
3361 * lynx-low.cc (lynx_target_ops): Update.
3362 * nto-low.cc (nto_target_ops): Update.
3363 (nto_stopped_by_watchpoint): Turn into ...
3364 (nto_process_target::stopped_by_watchpoint): ... this.
3365 (nto_stopped_data_address): Turn into ...
3366 (nto_process_target::stopped_data_address): ... this.
3367 * nto-low.h (class nto_process_target): Update.
3368 * win32-low.cc (win32_target_ops): Update.
3369 (win32_stopped_by_watchpoint): Turn into ...
3370 (win32_process_target::stopped_by_watchpoint): ... this.
3371 (win32_stopped_data_address): Turn into ...
3372 (win32_process_target::stopped_data_address): ... this.
3373 * win32-low.h (class win32_process_target): Update.
3374
22aa6223
TBA
33752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3376
3377 Turn process_stratum_target's supports_hardware_single_step op into
3378 a method of process_target.
3379
3380 * target.h (struct process_stratum_target): Remove the target op.
3381 (class process_target): Add the target op.
3382 (target_supports_hardware_single_step): Update the macro.
3383 (target_can_do_hardware_single_step): Remove declaration.
3384 * target.cc (process_target::supports_hardware_single_step): Define.
3385 (target_can_do_hardware_single_step): Remove.
3386
3387 Update the derived classes and callers below.
3388
3389 * linux-low.h (class linux_process_target): Update.
3390 * linux-low.cc (linux_target_ops): Update.
3391 (linux_supports_hardware_single_step): Turn into ...
3392 (linux_process_target::supports_hardware_single_step): ... this.
3393 * lynx-low.h (class lynx_process_target): Update.
3394 * lynx-low.cc (lynx_target_ops): Update.
3395 (lynx_process_target::supports_hardware_single_step): Define.
3396 * nto-low.h (class nto_process_target): Update.
3397 * nto-low.cc (nto_target_ops): Update.
3398 (nto_process_target::supports_hardware_single_step): Define.
3399 * win32-low.h (class win32_process_target): Update.
3400 * win32-low.cc (win32_target_ops): Update.
3401 (win32_process_target::supports_hardware_single_step): Define.
3402
93fe88b2
TBA
34032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3404
3405 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3406 ops into methods of process_target.
3407
3408 * target.h (struct process_stratum_target): Remove the target ops.
3409 (class process_target): Add the target ops.
3410 (target_stopped_by_hw_breakpoint): Update the macro.
3411 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3412 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3413 (process_target::supports_stopped_by_hw_breakpoint): Define.
3414
3415 Update the derived classes and callers below.
3416
3417 * linux-low.cc (linux_target_ops): Update.
3418 (linux_stopped_by_hw_breakpoint): Turn into ...
3419 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3420 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3421 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3422 * linux-low.h (class linux_process_target): Update.
3423 * lynx-low.cc (lynx_target_ops): Update.
3424 * nto-low.cc (nto_target_ops): Update.
3425 * win32-low.cc (win32_target_ops): Update.
3426
84320c4e
TBA
34272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3428
3429 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3430 ops into methods of process_target.
3431
3432 * target.h (struct process_stratum_target): Remove the target ops.
3433 (class process_target): Add the target ops.
3434 (target_stopped_by_sw_breakpoint): Update the macro.
3435 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3436 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3437 (process_target::supports_stopped_by_sw_breakpoint): Define.
3438
3439 Update the derived classes and callers below.
3440
3441 * linux-low.cc (linux_target_ops): Update.
3442 (linux_stopped_by_sw_breakpoint): Turn into ...
3443 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3444 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3445 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3446 * linux-low.h (class linux_process_target): Update.
3447 * lynx-low.cc (lynx_target_ops): Update.
3448 * nto-low.cc (nto_target_ops): Update.
3449 * win32-low.cc (win32_target_ops): Update.
3450
7e0bde70
TBA
34512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3452
3453 Turn process_stratum_target's insert_point and remove_point ops
3454 into methods of process_target.
3455
3456 * target.h (struct process_stratum_target): Remove the target ops.
3457 (class process_target): Add the target ops.
3458 * target.cc (process_target::insert_point): Define.
3459 (process_target::remove_point): Define.
3460
3461 Update the derived classes and callers below.
3462
3463 * mem-break.cc (set_raw_breakpoint_at): Update.
3464 (delete_raw_breakpoint): Update.
3465 (uninsert_raw_breakpoint): Update.
3466 (reinsert_raw_breakpoint): Update.
3467 * linux-low.cc (linux_target_ops): Update.
3468 (linux_insert_point): Turn into ...
3469 (linux_process_target::insert_point): ... this.
3470 (linux_remove_point): Turn into ...
3471 (linux_process_target::remove_point): ... this.
3472 * linux-low.h (class linux_process_target): Update.
3473 * lynx-low.cc (lynx_target_ops): Update.
3474 * nto-low.cc (nto_target_ops): Update.
3475 (nto_insert_point): Turn into ...
3476 (nto_process_target::insert_point): ... this.
3477 (nto_remove_point): Turn into ...
3478 (nto_process_target::remove_point): ... this.
3479 * nto-low.h (class nto_process_target): Update.
3480 * win32-low.cc (win32_target_ops): Update.
3481 (win32_insert_point): Turn into ...
3482 (win32_process_target::insert_point): ... this.
3483 (win32_remove_point): Turn into ...
3484 (win32_process_target::remove_point): ... this.
3485 * win32-low.h (class win32_process_target): Update.
3486
a2b2297a
TBA
34872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3488
3489 Turn process_stratum_target's supports_z_point_type op into a
3490 method of process_target.
3491
3492 * target.h (struct process_stratum_target): Remove the target op.
3493 (class process_target): Add the target op.
3494 * target.cc (process_target::supports_z_point_type): Define.
3495
3496 Update the derived classes and callers below.
3497
3498 * mem-break.cc (z_type_supported): Update.
3499 * linux-low.cc (linux_target_ops): Update.
3500 (linux_supports_z_point_type): Turn into ...
3501 (linux_process_target::supports_z_point_type): ... this.
3502 * linux-low.h (class linux_process_target): Update.
3503 * lynx-low.cc (lynx_target_ops): Update.
3504 * nto-low.cc (nto_target_ops): Update.
3505 (nto_supports_z_point_type): Turn into ...
3506 (nto_process_target::supports_z_point_type): ... this.
3507 * nto-low.h (class nto_process_target): Update.
3508 * win32-low.cc (win32_target_ops): Update.
3509 (win32_supports_z_point_type): Turn into ...
3510 (win32_process_target::supports_z_point_type): ... this.
3511 * win32-low.h (class win32_process_target): Update.
3512
eac215cc
TBA
35132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3514
3515 Turn process_stratum_target's read_auxv op into a method of
3516 process_target.
3517
3518 * target.h (class process_stratum_target): Remove the target op.
3519 (struct process_target): Add the target op. Also add
3520 'supports_read_auxv'.
3521 * target.cc (process_target::read_auxv): Define.
3522 (process_target::supports_read_auxv): Define.
3523
3524 Update the derived classes and callers below.
3525
3526 * server.cc (handle_qxfer_auxv): Update.
3527 (handle_query): Update.
3528 * linux-low.cc (linux_target_ops): Update.
3529 (linux_process_target::supports_read_auxv): Define.
3530 (linux_read_auxv): Turn into ...
3531 (linux_process_target::read_auxv): ... this.
3532 * linux-low.h (class linux_process_target): Update.
3533 * lynx-low.cc (lynx_target_ops): Update.
3534 * nto-low.cc (nto_target_ops): Update.
3535 (nto_process_target::supports_read_auxv): Define.
3536 (nto_read_auxv): Turn into ...
3537 (nto_process_target::read_auxv): ... this.
3538 * nto-low.h (class nto_process_target): Update.
3539 * win32-low.cc (win32_target_ops): Update.
3540
eb497a2a
TBA
35412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3542
3543 Turn process_stratum_target's request_interrupt op into a method of
3544 process_target.
3545
3546 * target.h (struct process_stratum_target): Remove the target op.
3547 (class process_target): Add the target op.
3548
3549 Update the derived classes and callers below.
3550
3551 * remote-utils.cc (putpkt_binary_1): Update.
3552 (input_interrupt): Update.
3553 (getpkt): Update.
3554 * server.cc (handle_v_requests): Update.
3555 * linux-low.cc (linux_target_ops): Update.
3556 (linux_request_interrupt): Turn into ...
3557 (linux_process_target::request_interrupt): ... this.
3558 * linux-low.h (class linux_process_target): Update.
3559 * lynx-low.cc (lynx_target_ops): Update.
3560 (lynx_request_interrupt): Turn into ...
3561 (lynx_process_target::request_interrupt): ... this.
3562 * lynx-low.h (class lynx_process_target): Update.
3563 * nto-low.cc (nto_target_ops): Update.
3564 (nto_request_interrupt): Turn into ...
3565 (nto_process_target::request_interrupt): ... this.
3566 * nto-low.h (class nto_process_target): Update.
3567 * win32-low.cc (win32_target_ops): Update.
3568 (win32_request_interrupt): Turn into ...
3569 (win32_process_target::request_interrupt): ... this.
3570 * win32-low.h (class win32_process_target): Update.
3571
2a31c7aa
TBA
35722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3573
3574 Turn process_stratum_target's look_up_symbols op into a method of
3575 process_target.
3576
3577 * target.h (struct process_stratum_target): Remove the target op.
3578 (class process_target): Add the target op.
3579 * target.cc (process_target::look_up_symbols): Define.
3580
3581 Update the derived classes and callers below.
3582
3583 * server.cc (handle_query): Update.
3584 * linux-low.cc (linux_target_ops): Update.
3585 (linux_look_up_symbols): Turn into ...
3586 (linux_process_target::look_up_symbols): ... this.
3587 * linux-low.h (class linux_process_target): Update.
3588 * lynx-low.cc (lynx_target_ops): Update.
3589 * nto-low.cc (nto_target_ops): Update.
3590 * win32-low.cc (win32_target_ops): Update.
3591
e2558df3
TBA
35922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3593
3594 Turn process_stratum_target's read_memory and write_memory
3595 ops into methods of process_target.
3596
3597 * target.h (struct process_stratum_target): Remove the target ops.
3598 (class process_target): Add the target ops.
3599
3600 Update the derived classes and callers below.
3601
3602 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3603 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3604 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3605 (arm_get_syscall_trapinfo): Update.
3606 * linux-cris-low.cc (cris_breakpoint_at): Update.
3607 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3608 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3609 * linux-mips-low.cc (mips_breakpoint_at): Update.
3610 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3611 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3612 * linux-sh-low.cc (sh_breakpoint_at): Update.
3613 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3614 (sparc_store_gregset_from_stack): Update.
3615 (sparc_breakpoint_at): Update.
3616 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3617 * linux-tile-low.cc (tile_breakpoint_at): Update.
3618 * linux-x86-low.cc (x86_breakpoint_at): Update.
3619 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3620 * mem-brea.cc (insert_memory_breakpoint): Update.
3621 (validate_inserted_breakpoint): Update.
3622 * target.cc (read_inferior_memory): Update.
3623 (target_write_memory): Update.
3624 * linux-low.cc (linux_target_ops): Update.
3625 (linux_read_memory): Make a wrapper around the read_memory target
3626 op call.
3627 (linux_process_target::read_memory): Rename from linux_read_memory.
3628 (linux_write_memory): Turn into ...
3629 (linux_process_target::write_memory): ... this.
3630 * linux-low.h (class linux_process_target): Update.
3631 * lynx-low.cc (lynx_target_ops): Update.
3632 (lynx_read_memory): Turn into ...
3633 (lynx_process_target::read_memory): ... this.
3634 (lynx_write_memory): Turn into ...
3635 (lynx_process_target::write_memory): ... this.
3636 * lynx-low.h (class lynx_process_target): Update.
3637 * nto-low.cc (nto_target_ops): Update.
3638 (nto_read_memory): Turn into ...
3639 (nto_process_target::read_memory): ... this.
3640 (nto_write_memory): Turn into ...
3641 (nto_process_target::write_memory): ... this.
3642 * nto-low.h (class nto_process_target): Update.
3643 * win32-low.cc (win32_target_ops): Update.
3644 (win32_read_inferior_memory): Turn into ...
3645 (win32_process_target::read_memory): ... this.
3646 (win32_write_inferior_memory): Turn into ...
3647 (win32_process_target::write_memory): ... this.
3648 * win32-low.h (class win32_process_target): Update.
3649
79b44087
TBA
36502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3651
3652 Turn process_stratum_target's prepare_to_access_memory and
3653 done_accessing_memory ops into methods of process_target.
3654
3655 * target.h (struct process_stratum_target): Remove the target ops.
3656 (class process_target): Add the target ops.
3657 * target.cc (process_target::prepare_to_access_memory): Define.
3658 (process_target::done_accessing_memory): Define.
3659 (prepare_to_access_memory): Update.
3660 (done_accessing_memory): Update.
3661
3662 Update the derived classes and callers below.
3663
3664 * linux-low.cc (linux_target_ops): Update.
3665 (linux_prepare_to_access_memory): Turn into ...
3666 (linux_process_target::prepare_to_access_memory): ... this.
3667 (linux_done_accessing_memory): Turn into ...
3668 (linux_process_target::done_accessing_memory): ... this.
3669 * linux-low.h (class linux_process_target): Update.
3670 * lynx-low.cc (lynx_target_ops): Update.
3671 * nto-low.cc (nto_target_ops): Update.
3672 * win32-low.cc (win32_target_ops): Update.
3673
a5a4d4cd
TBA
36742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3675
3676 Turn process_stratum_target's fetch_registers and store_registers
3677 ops into methods of process_target.
3678
3679 * target.h (struct process_stratum_target): Remove the target ops.
3680 (class process_target): Add the target ops.
3681 (fetch_inferior_registers): Update the macro.
3682 (store_inferior_registers): Update the macro.
3683
3684 Update the derived classes and callers below.
3685
3686 * linux-low.cc (linux_target_ops): Update.
3687 (linux_fetch_registers): Turn into ...
3688 (linux_process_target::fetch_registers): ... this.
3689 (linux_store_registers): Turn into ...
3690 (linux_process_target::store_registers): ... this.
3691 * linux-low.h (class linux_process_target): Update.
3692 * lynx-low.cc (lynx_target_ops): Update.
3693 (lynx_fetch_registers): Turn into ...
3694 (lynx_process_target::fetch_registers): ... this.
3695 (lynx_store_registers): Turn into ...
3696 (lynx_process_target::store_registers): ... this.
3697 * lynx-low.h (class lynx_process_target): Update.
3698 * nto-low.cc (nto_target_ops): Update.
3699 (nto_fetch_registers): Turn into ...
3700 (nto_process_target::fetch_registers): ... this.
3701 (nto_store_registers): Turn into ...
3702 (nto_process_target::store_registers): ... this.
3703 * nto-low.h (class nto_process_target): Update.
3704 * win32-low.cc (win32_target_ops): Update.
3705 (win32_fetch_inferior_registers): Turn into ...
3706 (win32_process_target::fetch_registers): ... this.
3707 (win32_store_inferior_registers): Turn into ...
3708 (win32_process_target::store_registers): ... this.
3709 * win32-low.h (class win32_process_target): Update.
3710
6532e7e3
TBA
37112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3712
3713 Turn process_stratum_target's wait op into a method of
3714 process_target.
3715
3716 * target.h (struct process_stratum_target): Remove the target op.
3717 (class process_target): Add the target op.
3718
3719 Update the derived classes and callers below.
3720
3721 * target.cc (target_wait): Update.
3722 * linux-low.cc (linux_target_ops): Update.
3723 (linux_wait): Turn into ...
3724 (linux_process_target::wait): ... this.
3725 * linux-low.h (class linux_process_target): Update.
3726 * lynx-low.cc (lynx_target_ops): Update.
3727 (lynx_wait): Turn into ...
3728 (lynx_process_target::wait): ... this.
3729 * lynx-low.h (class lynx_process_target): Update.
3730 * nto-low.cc (nto_target_ops): Update.
3731 (nto_wait): Turn into ...
3732 (nto_process_target::wait): ... this.
3733 * nto-low.h (class nto_process_target): Update.
3734 * win32-low.cc (win32_target_ops): Update.
3735 (win32_wait): Turn into ...
3736 (win32_process_target::wait): ... this.
3737 (do_initial_child_stuff): Update.
3738 * win32-low.h (class win32_process_target): Update.
3739
0e4d7e35
TBA
37402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3741
3742 Turn process_stratum_target's resume op into a method of
3743 process_target.
3744
3745 * target.h (struct process_stratum_target): Remove the target op.
3746 (class process_target): Add the target op.
3747
3748 Update the derived classes and callers below.
3749
3750 * server.cc (resume): Update.
3751 * target.cc (target_stop_and_wait): Update.
3752 (target_continue_no_signal): Update.
3753 (target_continue): Update.
3754 * linux-low.cc (linux_target_ops): Update.
3755 (linux_resume): Turn into ...
3756 (linux_process_target::resume): ... this.
3757 * linux-low.h (class linux_process_target): Update.
3758 * lynx-low.cc (lynx_target_ops): Update.
3759 (lynx_resume): Turn into ...
3760 (lynx_process_target::resume): ... this.
3761 * lynx-low.h (class lynx_process_target): Update.
3762 * nto-low.cc (nto_target_ops): Update.
3763 (nto_resume): Turn into ...
3764 (nto_process_target::resume): ... this.
3765 * nto-low.h (class nto_process_target): Update.
3766 * win32-low.cc (win32_target_ops): Update.
3767 (win32_resume): Turn into ...
3768 (win32_process_target::resume): ... this.
3769 (win32_process_target::detach): Update.
3770 (do_initial_child_stuff): Update.
3771 * win32-low.h (class win32_process_target): Update.
3772
13d3d99b
TBA
37732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3774
3775 Turn process_stratum_target's thread_alive op into a method of
3776 process_target.
3777
3778 * target.h (struct process_stratum_target): Remove the target op.
3779 (class process_target): Add the target op.
3780 (mythread_alive): Update the macro.
3781
3782 Update the derived classes and callers below.
3783
3784 * linux-low.cc (linux_target_ops): Update.
3785 (linux_thread_alive): Turn into ...
3786 (linux_process_target::thread_alive): ... this.
3787 (wait_for_sigstop): Update.
3788 * linux-low.h (class linux_process_target): Update.
3789 * lynx-low.cc (lynx_target_ops): Update.
3790 (lynx_thread_alive): Turn into ...
3791 (lynx_process_target::thread_alive): ... this.
3792 * lynx-low.h (class lynx_process_target): Update.
3793 * nto-low.cc (nto_target_ops): Update.
3794 (nto_thread_alive): Turn into ...
3795 (nto_process_target::thread_alive): ... this.
3796 * nto-low.h (class nto_process_target): Update.
3797 * win32-low.cc (win32_target_ops): Update.
3798 (win32_thread_alive): Turn into ...
3799 (win32_process_target::thread_alive): ... this.
3800 * win32-low.h (class win32_process_target): Update.
3801
95a49a39
TBA
38022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3803
3804 Turn process_stratum_target's join op into a method of
3805 process_target.
3806
3807 * target.h (struct process_stratum_target): Remove the target op.
3808 (class process_target): Add the target op.
3809 (join_inferior): Update the macro.
3810
3811 Update the derived classes and callers below.
3812
3813 * linux-low.cc (linux_target_ops): Update.
3814 (linux_join): Turn into ...
3815 (linux_process_target::join): ... this.
3816 * linux-low.h (class linux_process_target): Update.
3817 * lynx-low.cc (lynx_target_ops): Update.
3818 (lynx_join): Turn into ...
3819 (lynx_process_target::join): ... this.
3820 * lynx-low.h (class lynx_process_target): Update.
3821 * nto-low.cc (nto_target_ops): Update.
3822 (nto_process_target::join): Define.
3823 * nto-low.h (class nto_process_target): Update.
3824 * win32-low.cc (win32_target_ops): Update.
3825 (win32_join): Turn into ...
3826 (win32_process_target::join): ... this.
3827 * win32-low.h (class win32_process_target): Update.
3828
8adb37b9
TBA
38292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3830
3831 Turn process_stratum_target's mourn op into a method of
3832 process_target.
3833
3834 * target.h (struct process_stratum_target): Remove the target op.
3835 (class process_target): Add the target op.
3836
3837 Update the derived classes and callers below.
3838
3839 * target.cc (target_mourn_inferior): Update.
3840 * linux-low.cc (linux_target_ops): Update.
3841 (linux_mourn): Turn into ...
3842 (linux_process_target::mourn): ... this.
3843 (handle_extended_wait): Update.
3844 (linux_process_target::kill): Update.
3845 (linux_process_target::detach): Update.
3846 * linux-low.h (class linux_process_target): Update.
3847 * lynx-low.cc (lynx_target_ops): Update.
3848 (lynx_mourn): Turn into ...
3849 (lynx_process_target::mourn): ... this.
3850 * lynx-low.h (class lynx_process_target): Update.
3851 * nto-low.cc (nto_target_ops): Update.
3852 (nto_mourn): Turn into ...
3853 (nto_process_target::mourn): ... this.
3854 * nto-low.h (class nto_process_target): Update.
3855 * win32-low.cc (win32_target_ops): Update.
3856 (win32_mourn): Turn into ...
3857 (win32_process_target::mourn): ... this.
3858 * win32-low.h (class win32_process_target): Update.
3859
9061c9cf
TBA
38602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3861
3862 Turn process_stratum_target's detach op into a method of
3863 process_target.
3864
3865 * target.h (struct process_stratum_target): Remove the target op.
3866 (class process_target): Add the target op.
3867 (detach_inferior): Update the macro.
3868
3869 Update the derived classes and callers below.
3870
3871 * linux-low.cc (linux_target_ops): Update.
3872 (linux_detach): Turn into ...
3873 (linux_process_target::detach): ... this.
3874 * linux-low.h (class linux_process_target): Update.
3875 * lynx-low.cc (lynx_target_ops): Update.
3876 (lynx_detach): Turn into ...
3877 (lynx_process_target::detach): ... this.
3878 * lynx-low.h (class lynx_process_target): Update.
3879 * nto-low.cc (nto_target_ops): Update.
3880 (nto_detach): Turn into ...
3881 (nto_process_target::detach): ... this.
3882 * nto-low.h (class nto_process_target): Update.
3883 * win32-low.cc (win32_target_ops): Update.
3884 (win32_detach): Turn into ...
3885 (win32_process_target::detach): ... this.
3886 * win32-low.h (class win32_process_target): Update.
3887
c6885a57
TBA
38882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3889
3890 Turn process_stratum_target's kill op into a method of
3891 process_target.
3892
3893 * target.h (struct process_stratum_target): Remove the target op.
3894 (class process_target): Add the target op.
3895
3896 Update the derived classes and callers below.
3897
3898 * target.cc (kill_inferior): Update.
3899 * linux-low.cc (linux_target_ops): Update.
3900 (linux_kill): Turn into ...
3901 (linux_process_target::kill): ... this.
3902 * linux-low.h (class linux_process_target): Update.
3903 * lynx-low.cc (lynx_target_ops): Update.
3904 (lynx_kill): Turn into ...
3905 (lynx_process_target::kill): ... this.
3906 * lynx-low.h (class lynx_process_target): Update.
3907 * nto-low.cc (nto_target_ops): Update.
3908 (nto_kill): Turn into ...
3909 (nto_process_target::kill): ... this.
3910 * nto-low.h (class nto_process_target): Update.
3911 * win32-low.cc (win32_target_ops): Update.
3912 (win32_kill): Turn into ...
3913 (win32_process_target::kill): ... this.
3914 * win32-low.h (class win32_process_target): Update.
3915
ef03dad8
TBA
39162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3917
3918 Turn process_stratum_target's attach op into a method of
3919 process_target.
3920
3921 * target.h (struct process_stratum_target): Remove the target op.
3922 (class process_target): Add the target op.
3923 (myattach): Update the macro.
3924
3925 Update the derived classes and callers below.
3926
3927 * linux-low.cc (linux_target_ops): Update.
3928 (linux_attach): Turn into ...
3929 (linux_process_target::attach): ... this.
3930 * linux-low.h (class linux_process_target): Update.
3931 * lynx-low.cc (lynx_target_ops): Update.
3932 (lynx_attach): Turn into ...
3933 (lynx_process_target::attach): ... this.
3934 * lynx-low.h (class lynx_process_target): Update.
3935 * nto-low.cc (nto_target_ops): Update.
3936 (nto_attach): Turn into ...
3937 (nto_process_target::attach): ... this.
3938 * nto-low.h (class nto_process_target): Update.
3939 * win32-low.cc (win32_target_ops): Update.
3940 (win32_attach): Turn into ...
3941 (win32_process_target::attach): ... this.
3942 * win32-low.h (class win32_process_target): Update.
3943
6dee9afb
TBA
39442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3945
3946 Turn process_stratum_target's post_create_inferior op into a method
3947 of process_target.
3948
3949 * target.h (struct process_stratum_target): Remove the target op.
3950 (class process_target): Add the target op.
3951 (target_post_create_inferior): Update the macro.
3952 * target.cc (process_target::post_create_inferior): Define.
3953
3954 Update the derived classes and callers below.
3955
3956 * linux-low.cc (linux_target_ops): Update.
3957 (linux_post_create_inferior): Turn into ...
3958 (linux_process_target::post_create_inferior): ... this.
3959 * linux-low.h (class linux_process_target): Update.
3960 * lynx-low.cc (lynx_target_ops): Update.
3961 * nto-low.cc (nto_target_ops): Update.
3962 * win32-low.cc (win32_target_ops): Update.
3963
15295543
TBA
39642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3965
3966 Turn process_stratum_target's create_inferior op into a method of
3967 process_target.
3968
3969 * target.h (struct process_stratum_target): Remove the target op.
3970 (class process_target): Add the target op.
3971 (create_inferior): Rename the macro to ...
3972 (target_create_inferior): ... this.
3973
3974 Update the derived classes and callers below.
3975
3976 * server.cc (handle_v_run): Update.
3977 (captured_main): Update.
3978 (process_serial_event): Update.
3979 * linux-low.cc (linux_target_ops): Update.
3980 (linux_create_inferior): Turn into ...
3981 (linux_process_target::create_inferior): ... this.
3982 * linux-low.h (class linux_process_target): Update.
3983 * lynx-low.cc (lynx_target_ops): Update.
3984 (lynx_create_inferior): Turn into ...
3985 (lynx_process_target::create_inferior): ... this.
3986 * lynx-low.h (class lynx_process_target): Update.
3987 * nto-low.cc (nto_target_ops): Update.
3988 (nto_create_inferior): Turn into ...
3989 (nto_process_target::create_inferior): ... this.
3990 * nto-low.h (class nto_process_target): Update.
3991 * win32-low.cc (win32_target_ops): Update.
3992 (win32_create_inferior): Turn into ...
3993 (win32_process_target::create_inferior): ... this.
3994 * win32-low.h (class win32_process_target): Update.
3995
5ef9273d
TBA
39962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3997
3998 * target.h (class process_target): New class definition.
3999 (struct process_stratum_target) <pt>: New field with type
4000 'process_target*'.
4001 * linux-low.h (class linux_process_target): Define as a derived
4002 class of 'process_target'.
4003 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4004 as the 'pt' field.
4005 * lynx-low.h (class lynx_process_target): Define as a derived
4006 class of 'process_target'.
4007 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4008 as the 'pt' field.
4009 * nto-low.h (class nto_process_target): Define as a derived
4010 class of 'process_target'.
4011 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4012 as the 'pt' field.
4013 * win32-low.h (class win32_process_target): Define as a derived
4014 class of 'process_target'.
4015 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4016 as the 'pt' field.
4017
9f1528a1
AB
40182020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4019
4020 * configure: Regenerate.
4021
bf84f706
MR
40222020-02-19 Maciej W. Rozycki <macro@wdc.com>
4023 Andrew Burgess <andrew.burgess@embecosm.com>
4024
4025 * linux-riscv-low.cc: New file.
4026 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4027 and nat/riscv-linux-tdesc.c.
4028 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4029 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4030 Define.
4031
1a627e7e
TT
40322020-02-14 Tom Tromey <tom@tromey.com>
4033
4034 * acinclude.m4: Don't include acx_configure_dir.m4.
4035 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4036 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4037 (all, install-only, uninstall, clean-info, clean)
4038 (maintainer-clean): Don't recurse.
4039 (subdir_do, all-lib): Remove.
4040 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4041 (GNULIB_H): Remove.
4042 (generated_files): Update.
4043 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4044 * configure: Rebuild.
4045 * configure.ac: Don't configure gnulib or libiberty.
4046 (GNULIB): Update.
4047
a9b34532
EZ
40482020-02-14 Eli Zaretskii <eliz@gnu.org>
4049
4050 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4051 preparing the command line for CreateProcess.
4052 (win32_create_inferior): Reflect the program name in debugging
4053 output that shows the process and its command line.
4054
feacfcac
SM
40552020-02-13 Simon Marchi <simon.marchi@efficios.com>
4056
4057 * Makefile.in: Rename source files from .c to .cc.
4058 * %.c: Rename to %.cc.
4059 * configure.ac: Rename server.c to server.cc.
4060 * configure: Re-generate.
4061
06b3c5bd
SM
40622020-02-13 Simon Marchi <simon.marchi@efficios.com>
4063
4064 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4065
052793ad
HD
40662020-02-12 Hannes Domani <ssbssa@yahoo.de>
4067
4068 * win32-low.c (win32_create_inferior): Set signal_pid.
4069
f20e3e82
MR
40702020-02-12 Maciej W. Rozycki <macro@wdc.com>
4071 Pedro Alves <palves@redhat.com>
4072
4073 Skip building gdbserver in a cross-configuration.
4074 * configure.srv: Set $gdbserver_host depending on whether $target
4075 is $host. Use $gdbserver_host instead of $host.
4076
8ddd8e0e
SM
40772020-02-11 Simon Marchi <simon.marchi@efficios.com>
4078
4079 * configure: Re-generate.
4080
898e7f60
SM
40812020-02-11 Simon Marchi <simon.marchi@efficios.com>
4082
4083 * configure: Re-generate.
4084
58df732b
SM
40852020-02-11 Simon Marchi <simon.marchi@efficios.com>
4086
4087 * acinclude.m4: Update warning.m4 path.
4088
7928d571
HD
40892020-02-09 Hannes Domani <ssbssa@yahoo.de>
4090
4091 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4092 (handle_exception): Set siginfo_er.
4093 (win32_xfer_siginfo): New function.
4094
919adfe8
TT
40952020-02-07 Tom Tromey <tom@tromey.com>
4096 Pedro Alves <palves@redhat.com>
4097
4098 * README: Update build documentation.
4099 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4100 host, not target.
4101 * configure.ac: Update paths.
4102 * configure: Rebuild.
4103 * acinclude.m4: Update paths.
4104 * Makefile.in: Update include paths.
4105 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4106 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4107 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4108 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4109 (%-generated.c): Update paths.
4110 * Move entire directory from ../gdb/gdbserver.
4111
287c844a
MR
41122020-01-29 Maciej W. Rozycki <macro@wdc.com>
4113
4114 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4115
548a204f
PFC
41162020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4117
4118 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4119 assignment instead of srv_linux_obj.
4120
a2236a08
HD
41212020-01-28 Hannes Domani <ssbssa@yahoo.de>
4122
4123 * server.c (handle_qxfer_libraries): Write segment-address with
4124 paddress.
4125
bdaed379
HD
41262020-01-24 Hannes Domani <ssbssa@yahoo.de>
4127
4128 * Makefile.in (install-strip): New target.
4129 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4130 * aclocal.m4: Regenerate.
4131 * configure: Regenerate.
4132 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4133
42cd72aa
MR
41342020-01-24 Maciej W. Rozycki <macro@wdc.com>
4135
4136 * Makefile.in (SFILES): Adjust paths to point to real files.
4137 (OBS): Move waitstatus.o to target/waitstatus.o.
4138 (TAGS): Transform paths appropriately.
4139 (%.o): Rename to...
4140 (nat/%.o): ... this pattern rule.
4141 (%.o): Rename to...
4142 (target/%.o): ... this pattern rule.
4143 * configure.srv: Adjust paths throughout to include nat/ prefix
4144 with the revant files.
4145 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4146 * configure: Regenerate.
4147
42ba50ec
MR
41482020-01-24 Maciej W. Rozycki <macro@wdc.com>
4149
4150 * Makefile.in (TAGS): Remove config files from the recipe.
4151
05ea2a05
TT
41522020-01-14 Tom Tromey <tom@tromey.com>
4153
4154 * configure: Rebuild.
4155 * configure.ac: Remove any checks that were added to common.m4.
4156 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4157 lib-link.m4.
4158
01027315
TT
41592020-01-14 Tom Tromey <tom@tromey.com>
4160
4161 * server.h: Include config.h.
4162 * gdbreplay.c: Include config.h.
4163 * configure: Rebuild.
4164 * configure.ac: Don't source common.host.
4165 * acinclude.m4: Update path.
4166 * Makefile.in (INCSUPPORT): New variable.
4167 (INCLUDE_CFLAGS): Add INCSUPPORT.
4168 (SFILES): Update paths.
4169 (version-generated.c): Update path to create-version.sh.
4170 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4171
b2ceabe8
TT
41722020-01-14 Tom Tromey <tom@tromey.com>
4173
4174 * configure.ac (LIBS): Use WIN32APILIBS.
4175 (USE_WIN32API): Don't define.
4176 * configure: Rebuild.
4177
25c51f71
TT
41782020-01-14 Tom Tromey <tom@tromey.com>
4179
4180 * configure: Rebuild.
4181
c0bd321d
SM
41822020-01-13 Simon Marchi <simon.marchi@efficios.com>
4183
4184 * Makefile.in (%-generated.c): Remove rule for files from
4185 regformats/i386.
4186
bb564c58
SM
41872020-01-13 Simon Marchi <simon.marchi@efficios.com>
4188
4189 * configure: Re-generate.
4190
6e37c371
SM
41912020-01-13 Simon Marchi <simon.marchi@efficios.com>
4192
4193 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4194 Define to static.
4195 * tracepoint.c (stop_tracing, flush_trace_buffer,
4196 about_to_request_buffer_space, get_trace_state_variable_value,
4197 set_trace_state_variable_value, gdb_collect): Add declaration.
4198
df4a0200
SM
41992020-01-13 Simon Marchi <simon.marchi@efficios.com>
4200
4201 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4202 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4203 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4204 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4205 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4206 static.
4207
89e94ec9
SM
42082020-01-13 Simon Marchi <simon.marchi@efficios.com>
4209
4210 * inferiors.c: Include gdbsupport/common-inferior.h.
4211
2552728a
SM
42122020-01-13 Simon Marchi <simon.marchi@efficios.com>
4213
4214 * hostio-errno.c: Include hostio.h.
4215
4025fa09
SM
42162020-01-13 Simon Marchi <simon.marchi@efficios.com>
4217
4218 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4219 prerequisite.
4220
c0b0a142
SM
42212020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4222
4223 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4224 * linux-arm-tdesc.h: Include arch/arm.h.
4225
bb1183e2
SM
42262020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4227
4228 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4229
f5df0b5f
SM
42302020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4231
4232 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4233 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4234
5b6d1e4f
PA
42352020-01-10 Pedro Alves <palves@redhat.com>
4236
4237 * fork-child.c (post_fork_inferior): Pass target down to
4238 startup_inferior.
4239 * inferiors.c (switch_to_thread): Add process_stratum_target
4240 parameter.
4241 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4242 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4243 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4244 * remote-utils.c (prepare_resume_reply): Pass the target to
4245 switch_to_thread.
4246 * target.c (the_target): Now a process_stratum_target.
4247 (done_accessing_memory): Pass the target to switch_to_thread.
4248 (set_target_ops): Ajust to use process_stratum_target.
4249 * target.h (struct target_ops): Rename to ...
4250 (struct process_stratum_target): ... this.
4251 (the_target, set_target_ops): Adjust.
4252 (prepare_to_access_memory): Adjust comment.
4253 * win32-low.c (child_xfer_memory): Adjust to use
4254 process_stratum_target.
4255 (win32_target_ops): Now a process_stratum_target.
4256
559e7e50
EZ
42572020-01-06 Eli Zaretskii <eliz@gnu.org>
4258 Pedro Alves <palves@redhat.com>
4259
4260 * win32-low.c (get_child_debug_event): Extract the fatal exception
4261 from the exit status and convert to the equivalent Posix signal
4262 number.
4263 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4264 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4265
48189bec
HD
42662020-01-01 Hannes Domani <ssbssa@yahoo.de>
4267
4268 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4269
5dd8bf88
JB
42702020-01-01 Joel Brobecker <brobecker@adacore.com>
4271
4272 * server.c (gdbserver_version): Change copyright year to 2020.
4273 * gdbreplay.c (gdbreplay_version): Likewise.
4274
0ad6b8ee
CB
42752019-12-19 Christian Biesinger <cbiesinger@google.com>
4276
4277 * configure: Regenerate.
4278 * configure.ac: Quote variable arguments of test.
4279
1ee7b812
BE
42802019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4281
4282 * Makefile.in: Fix build with GNU Make 3.81
4283
d9fa87f4
TT
42842019-12-16 Tom Tromey <tromey@adacore.com>
4285
4286 * server.c (get_exec_file): Constify result.
4287
ab7d13f0
CB
42882019-12-10 Christian Biesinger <cbiesinger@google.com>
4289
4290 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4291 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4292 * config.in: Regenerate.
4293 * configure: Regenerate.
4294 * configure.ac: Don't check for strerror.
4295 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4296 Call safe_strerror instead of strerror.
4297 * server.h (strerror): Remove this now-unnecessary declaration.
4298 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4299 strerror.
4300 (gdb_agent_helper_thread): Likewise.
4301 * utils.c (perror_with_name): Likewise.
4302
4da8c3a8
TT
43032019-11-26 Tom Tromey <tom@tromey.com>
4304
4305 * configure, config.in: Rebuild.
4306
21987b9c
TT
43072019-11-26 Tom Tromey <tom@tromey.com>
4308
4309 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4310 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4311 gdb_sigmask.
4312 * configure, config.in: Rebuild.
4313
5e030278
TT
43142019-11-26 Tom Tromey <tom@tromey.com>
4315
4316 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4317 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4318 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4319 * acinclude.m4: Include ax_pthread.m4.
4320 * config.in, configure: Rebuild.
4321
6d91ce9a
CB
43222019-11-26 Christian Biesinger <cbiesinger@google.com>
4323
4324 * debug.c (debug_set_output): Call safe_strerror instead of
4325 strerror.
4326 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4327 (linux_kill_one_lwp): Likewise.
4328 (linux_detach_one_lwp): Likewise.
4329 (linux_wait_for_event_filtered): Likewise.
4330 (store_register): Likewise.
4331 * lynx-low.c (lynx_attach): Likewise.
4332 * mem-break.c (insert_memory_breakpoint): Likewise.
4333 (remove_memory_breakpoint): Likewise.
4334 (delete_fast_tracepoint_jump): Likewise.
4335 (set_fast_tracepoint_jump): Likewise.
4336 (uninsert_fast_tracepoint_jumps_at): Likewise.
4337 (reinsert_fast_tracepoint_jumps_at): Likewise.
4338 * nto-low.c (nto_xfer_memory): Likewise.
4339 (nto_resume): Likewise.
4340
6cdd651f
LM
43412019-11-20 Luis Machado <luis.machado@linaro.org>
4342
4343 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4344 instead of register count.
4345 * tdesc.c (tdesc_contains_feature): New function.
4346 * tdesc.h (tdesc_contains_feature): New prototype.
4347
cd850b40
CB
43482019-11-15 Christian Biesinger <cbiesinger@google.com>
4349
4350 * Makefile.in: Add safe-strerror.c.
4351 * configure: Regenerate.
4352 * configure.ac: Don't source common.host.
4353
5abebf3c
CB
43542019-11-15 Christian Biesinger <cbiesinger@google.com>
4355
4356 * config.in: Regenerate.
4357 * configure: Regenerate.
4358
e06f3d6e
AB
43592019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4360
4361 * ax.c (ax_printf): Handle size_t_arg.
4362
ca3a04f6
CB
43632019-11-06 Christian Biesinger <cbiesinger@google.com>
4364
4365 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4366 * mi/mi-main.c (output_cores): Likewise.
4367 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4368 (linux_xfer_osdata_modules): Likewise.
4369 * remote.c (register_remote_support_xml): Likewise.
4370 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4371 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4372
e48f6033
CB
43732019-11-01 Christian Biesinger <cbiesinger@google.com>
4374
4375 * configure: Regenerate.
4376 * configure.ac: Remove check for strerror_r.
4377
e7e97a2e
CB
43782019-10-31 Christian Biesinger <cbiesinger@google.com>
4379
4380 * config.in: Regenerate.
4381 * configure: Regenerate.
4382 * configure.ac: Also check for strerror_r.
4383
75cafaa6
CB
43842019-10-31 Christian Biesinger <cbiesinger@google.com>
4385
4386 * ax.h (debug_agent): Remove duplicate declaration.
4387
30baf67b
TV
43882019-10-26 Tom de Vries <tdevries@suse.de>
4389
4390 * linux-aarch64-low.c: Fix typos in comments.
4391 * linux-arm-low.c: Same.
4392 * linux-low.c: Same.
4393 * linux-ppc-low.c: Same.
4394 * proc-service.c: Same.
4395 * regcache.h: Same.
4396 * server.c: Same.
4397 * tracepoint.c: Same.
4398 * win32-low.c: Same.
4399
52c64cf7
TT
44002019-10-25 Tom Tromey <tromey@adacore.com>
4401
4402 * utils.c (xstrdup): Remove.
4403
c12d372d
TT
44042019-10-23 Tom Tromey <tom@tromey.com>
4405
4406 * configure, config.in: Rebuild.
4407
4d0b984b
TT
44082019-10-23 Tom Tromey <tom@tromey.com>
4409
4410 * configure: Rebuild.
4411 * acinclude.m4: Use m4_include, not sinclude.
4412
c5adaa19
TT
44132019-10-17 Tom Tromey <tromey@adacore.com>
4414
4415 * configure: Rebuild.
4416 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4417 in AC_CONFIG_FILES invocation.
4418 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4419 invocation.
4420
fec4e896
CB
44212019-10-16 Christian Biesinger <cbiesinger@google.com>
4422
4423 * server.c: Include xml-builtin.h.
4424 (get_xml_features): Don't declare xml_builtins here.
4425
00975ff6
AB
44262019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4427
4428 * Makefile.in: Remove references to vec-ipa.o.
4429
0dc32745
AB
44302019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4431
4432 * Makefile.in: Remove references to vec.c.
4433
3e6ec53a
CB
44342019-10-02 Christian Biesinger <cbiesinger@google.com>
4435
4436 * server.c (server_waiting): Change to bool.
4437 (extended_protocol): Likewise.
4438 (response_needed): Likewise.
4439 (exit_requested): Likewise.
4440 (run_once): Likewise.
4441 (report_no_resumed): Likewise.
4442 (non_stop): Likewise.
4443 (disable_packet_vCont): Likewise.
4444 (disable_packet_Tthread): Likewise.
4445 (disable_packet_qC): Likewise.
4446 (disable_packet_qfThreadInfo): Likewise.
4447 (handle_general_set): Update.
4448 (handle_detach): Update.
4449 (handle_monitor_command): Update.
4450 (handle_query): Update.
4451 (captured_main): Update.
4452 (process_serial_event): Update.
4453 * server.h (server_waiting): Change to bool.
4454 (disable_packet_vCont): Likewise.
4455 (disable_packet_Tthread): Likewise.
4456 (disable_packet_qC): Likewise.
4457 (disable_packet_qfThreadInfo): Likewise.
4458 (run_once): Likewise.
4459 (non_stop): Likewise.
4460 * target.c (target_stop_and_wait): Update.
4461
80fd2826
TT
44622019-10-02 Tom Tromey <tromey@adacore.com>
4463
4464 * Makefile.in (SFILES): Add common-inferior.c.
4465 (OBS): Add common-inferior.o.
4466 * server.c (startup_with_shell): Don't define.
4467
46f29a9a
AB
44682019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4469
4470 * linux-low.c (linux_low_read_btrace): Update for change to
4471 std::vector.
4472
f9d949fb
CB
44732019-09-20 Christian Biesinger <cbiesinger@google.com>
4474
4475 * debug.c (debug_threads): Remove comment in favor of the header.
4476 * debug.h (using_threads): Add declaration.
4477 (debug_threads): Add comment.
4478 * linux-aarch64-low.c: Include debug.h and remove declaration of
4479 debug_threads.
4480 * nto-low.c: Likewise.
4481 * remote-utils.c: Likewise.
4482 * thread-db.c: Likewise.
4483
abf516c6
UW
44842019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4485
4486 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4487 and powerpc-cell64l-ipa.o.
4488 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4489 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4490 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4491 (spu*-*-*): Remove.
4492
4493 * spu-low.c: Remove file.
4494
4495 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4496 (parse_spufs_run): Remove.
4497 (ppc_get_pc): Remove Cell/B.E. support.
4498 (ppc_set_pc): Likewise.
4499 (ppc_breakpoint_at): Likewise.
4500 (ppc_arch_setup): Likewise.
4501 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4502 tdesc_powerpc_cell32l.
4503 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4504 or init_registers_powerpc_cell32l.
4505 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4506 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4507 or init_registers_powerpc_cell32l.
4508 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4509 (init_registers_powerpc_cell32l): Remove prototype.
4510 (init_registers_powerpc_cell64l): Likewise.
4511
4512 * target.h (struct target_ops): Remove qxfer_spu member.
4513 * server.c (handle_qxfer_spu): Remove.
4514 (qxfer_packets): Remove entry for "spu".
4515 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4516 * linux-low.c (SPUFS_MAGIC): Remove.
4517 (spu_enumerate_spu_ids): Remove.
4518 (linux_qxfer_spu): Remove.
4519 (linux_target_ops): Remove qxfer_spu member.
4520 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4521 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4522 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4523
2d41fa11
SDJ
45242019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4525
4526 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4527 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4528 * config.in: Regenerate.
4529 * configure: Regenerate.
4530
d59b55f0
TT
45312019-08-15 Tom Tromey <tromey@adacore.com>
4532
4533 * target.c (target_write_memory): Use gdb::byte_vector.
4534
4196ab2a
TT
45352019-08-15 Tom Tromey <tromey@adacore.com>
4536
4537 * tracepoint.c (write_inferior_data_pointer)
4538 (write_inferior_integer, write_inferior_int8)
4539 (write_inferior_uinteger, m_tracepoint_action_download)
4540 (r_tracepoint_action_download, x_tracepoint_action_download)
4541 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4542 (download_agent_expr, download_tracepoint_1)
4543 (download_trace_state_variables, upload_fast_traceframes): Update.
4544 * server.c (gdb_write_memory): Update.
4545 * remote-utils.c (relocate_instruction): Update.
4546 * proc-service.c (ps_pdwrite): Update.
4547 * mem-break.c (remove_memory_breakpoint)
4548 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4549 (uninsert_fast_tracepoint_jumps_at)
4550 (reinsert_fast_tracepoint_jumps_at): Update.
4551 * linux-x86-low.c (append_insns)
4552 (i386_install_fast_tracepoint_jump_pad)
4553 (amd64_write_goto_address, i386_write_goto_address): Update.
4554 * linux-s390-low.c (append_insns, s390_write_goto_address):
4555 Update.
4556 * linux-ppc-low.c (ppc_relocate_instruction)
4557 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4558 (ppc_write_goto_address): Update.
4559 * linux-aarch64-low.c (append_insns): Update.
4560 * target.h (struct target_ops): Update.
4561 (write_inferior_memory): Don't declare.
4562 * target.c (target_write_memory): Rename from
4563 write_inferior_memory. Remove old target_write_memory.
4564
c6778d00
TT
45652019-08-15 Tom Tromey <tromey@adacore.com>
4566
4567 * target.c (write_inferior_memory): Use std::vector.
4568
404f2902
FCE
45692019-08-06 Frank Ch. Eigler <fche@redhat.com>
4570
4571 PR build/24886
4572 * configure.ac: Drop enable-libmcheck support.
4573 * configure, config.in: Rebuild.
4574 * acinclude.m4: Don't include it.
4575
4c5aa8e0
AH
45762019-07-19 Alan Hayward <alan.hayward@arm.com>
4577
4578 * configure.srv: Remove Arm xml files.
4579
7cc17433
AH
45802019-07-19 Alan Hayward <alan.hayward@arm.com>
4581
4582 * configure.srv: Add new files. Remove xml generated files.
4583 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4584 registers.
4585 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4586 * linux-aarch32-tdesc.c: New file.
4587 * linux-aarch32-tdesc.h: New file.
4588 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4589 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4590 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4591 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4592 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4593 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4594 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4595 (arm_read_description): Call arm_linux_read_description.
4596 (initialize_low_arch): Don't init registers.
4597 * linux-arm-tdesc.c: New file.
4598 * linux-arm-tdesc.h: New file.
4599
166a82be
AH
46002019-07-10 Alan Hayward <alan.hayward@arm.com>
4601
4602 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4603 Move counter inside for.
4604 (arm_read_description): Check ptrace earlier.
4605 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4606
268a13a5
TT
46072019-07-09 Tom Tromey <tom@tromey.com>
4608
4609 * configure: Rebuild.
4610 * configure.ac: Change common to gdbsupport.
4611 * acinclude.m4: Change common to gdbsupport.
4612 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4613 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4614 common to gdbsupport.
4615 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4616 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4617 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4618 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4619 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4620 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4621 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4622 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4623 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4624 common to gdbsupport.
4625
350fab54
AH
46262019-07-04 Alan Hayward <alan.hayward@arm.com>
4627
4628 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4629 defines.
4630 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4631
2b40fda7
AH
46322019-07-04 Alan Hayward <alan.hayward@arm.com>
4633
4634 * configure.srv: Remove legacy xml.
4635 * linux-aarch64-low.c (initialize_low_arch): Remove
4636 initialize_low_tdesc call.
4637 * linux-aarch64-tdesc-selftest.c: Remove file.
4638 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4639 * linux-x86-low.c (initialize_low_arch): Remove
4640 initialize_low_tdesc call.
4641 * linux-x86-tdesc-selftest.c: Remove file.
4642 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4643
7d10623d
TV
46442019-06-20 Tom de Vries <tdevries@suse.de>
4645
4646 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4647 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4648
8d6a48df
TV
46492019-06-19 Tom de Vries <tdevries@suse.de>
4650
4651 * debug.h (debug_write): Change return type to ssize_t.
4652 * debug.c (debug_write): Same.
4653
73cc7272
TT
46542019-06-14 Tom Tromey <tom@tromey.com>
4655
4656 * configure.ac: Use new path to gnulib.
4657 * configure: Rebuild.
4658 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4659 to gnulib.
4660
08f10e02
TT
46612019-06-11 Tom Tromey <tom@tromey.com>
4662
4663 * Makefile.in (SFILES): Add alloc.c.
4664 (OBS): Add alloc.o.
4665 (IPA_OBJS): Add alloc-ipa.o.
4666 (alloc-ipa.o): New target.
4667 (%.o: ../%.c): New pattern rule.
4668
422186a9
TT
46692019-06-10 Tom Tromey <tromey@adacore.com>
4670
4671 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4672 end warning with a newline.
4673 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4674 newline.
4675 * thread-db.c (attach_thread): Don't end warning with a newline.
4676 (thread_db_notice_clone): Likewise.
4677 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4678 newline.
4679 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4680 end warning with a newline.
4681
b02f78f9
PA
46822019-06-04 Pedro Alves <palves@redhat.com>
4683
4684 * server.c (captured_main): Use make_unique_xstrdup.
4685
88ed7edb
TT
46862019-06-02 Tom Tromey <tom@tromey.com>
4687
4688 * gdbreplay.c (fromhex): Remove.
4689 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4690
33a6bc35
TT
46912019-05-29 Tom Tromey <tromey@adacore.com>
4692
4693 * configure: Rebuild.
4694
e90a813d
KB
46952019-05-06 Kevin Buettner <kevinb@redhat.com>
4696
4697 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4698 sign extension code on 32-bit builds.
4699
353ea2d1
EZ
47002019-05-03 Eli Zaretskii <eliz@gnu.org>
4701
4702 * remote-utils.c:
4703 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4704
b494cdff
TT
47052019-04-19 Tom Tromey <tom@tromey.com>
4706
4707 * server.c (struct vstop_notif): Derive from notif_event.
4708 <base>: Remove.
4709 (queue_stop_reply): Update.
4710 (remove_all_on_match_ptid): Change type. Rewrite.
4711 (discard_queued_stop_replies): Rewrite.
4712 (in_queued_stop_replies_ptid): Change type.
4713 (in_queued_stop_replies): Rewrite.
4714 (notif_stop): Update.
4715 (queue_stop_reply_callback): Update.
4716 (captured_main): Don't call initialize_notif.
4717 (push_stop_notification): Update.
4718 * notif.c (notif_write_event, handle_notif_ack)
4719 (notif_event_enque, notif_push): Update.
4720 (notif_event_xfree, initialize_notif): Remove.
4721 * notif.h (struct notif_event): Include <list>, not
4722 "common/queue.h".
4723 (struct notif_server) <queue>: Now a std::list.
4724 (notif_event_p): Remove typedef.
4725 (initialize_notif): Don't declare.
4726 (struct notif_event): Add virtual destructor.
4727
a7e559cc
AH
47282019-04-17 Alan Hayward <alan.hayward@arm.com>
4729
4730 * ax.c (ax_vdebug): Call debug_printf.
4731 * debug.c (debug_write): New function.
4732 * debug.h (debug_write): New declaration.
4733 * linux-low.c (sigchld_handler): Call debug_write.
4734
aeb2e706
AH
47352019-04-17 Alan Hayward <alan.hayward@arm.com>
4736
4737 * debug.c (debug_set_output): New function.
4738 (debug_vprintf): Send output to debug_file.
4739 (debug_flush): Likewise.
4740 * debug.h (debug_set_output): New declaration.
4741 * server.c (handle_monitor_command): Add debug-file option.
4742 (captured_main): Likewise.
4743
c1bc0935
AH
47442019-04-17 Alan Hayward <alan.hayward@arm.com>
4745
4746 * debug.c (remote_debug): Add definition.
4747 * debug.h (remote_debug): Add declaration.
4748 * hostio.c (remote_debug): Remove declaration.
4749 * remote-utils.c (struct ui_file): Likewise.
4750 (remote_debug): Likewise.
4751 * remote-utils.h (remote_debug): Likewise,
4752 * server.c (remote_debug): Remove definition.
4753
3f52fdbc
KB
47542019-04-10 Kevin Buettner <kevinb@redhat.com>
4755
4756 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4757 when using a 64-bit gdbserver.
4758
b0319eaa
TT
47592019-04-09 Tom Tromey <tromey@adacore.com>
4760
4761 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4762
eedc3f4f
TT
47632019-04-08 Tom Tromey <tom@tromey.com>
4764
4765 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4766 throw.
4767 (linux_resume_one_lwp): Likewise.
4768
230d2906
TT
47692019-04-08 Tom Tromey <tom@tromey.com>
4770
4771 * gdbreplay.c: Update.
4772 * linux-low.c: Update.
4773 * server.c: Update.
4774
a70b8144
TT
47752019-04-08 Tom Tromey <tom@tromey.com>
4776
4777 * server.c: Use C++ exception handling.
4778 * linux-low.c: Use C++ exception handling.
4779 * gdbreplay.c: Use C++ exception handling.
4780
3d6e9d23
TT
47812019-04-08 Tom Tromey <tom@tromey.com>
4782
4783 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4784 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4785 (captured_main, main): Update.
4786 * gdbreplay.c (main): Update.
4787
0570503d
PFC
47882019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4789
4790 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4791 value in argument pointer, return 1 if the entry is found and 0
4792 otherwise. Move comment.
4793 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4794 * linux-low.h (linux_get_auxv): Declare.
4795 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4796
227a9e65
TT
47972019-04-05 Tom Tromey <tromey@adacore.com>
4798
4799 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4800 variables.
4801
69f4c9cc
AH
48022019-03-28 Alan Hayward <alan.hayward@arm.com>
4803
4804 * linux-low.c (AT_HWCAP2): Add define if not already included.
4805
974c89e0
AH
48062019-03-26 Alan Hayward <alan.hayward@arm.com>
4807
4808 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4809 (aarch64_arch_setup): Call linux_get_hwcap.
4810 * linux-arm-low.c (arm_get_hwcap): Remove function.
4811 (arm_read_description): Call linux_get_hwcap.
4812 * linux-low.c (linux_get_auxv): New function.
4813 (linux_get_hwcap): Likewise.
4814 (linux_get_hwcap2): Likewise.
4815 * linux-low.h (linux_get_hwcap): New declaration.
4816 (linux_get_hwcap2): Likewise.
4817 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4818 (ppc_arch_setup): Call linux_get_hwcap.
4819 * linux-s390-low.c (s390_get_hwcap): Remove function.
4820 (s390_arch_setup): Call linux_get_hwcap.
4821
1ef53e6b
AH
48222019-03-22 Alan Hayward <alan.hayward@arm.com>
4823 Jiong Wang <jiong.wang@arm.com>
4824
4825 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4826 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4827 to fail.
4828 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4829
ee4fbcfa
AH
48302019-03-22 Alan Hayward <alan.hayward@arm.com>
4831 Jiong Wang <jiong.wang@arm.com>
4832
4833 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4834 (aarch64_get_hwcap): New function.
4835 (aarch64_arch_setup): Read APIA hwcap.
4836
6dc0ebde
AH
48372019-03-22 Alan Hayward <alan.hayward@arm.com>
4838 Jiong Wang <jiong.wang@arm.com>
4839
4840 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4841 (initialize_low_tracepoint): Likewise.
4842 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4843 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4844 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4845 (aarch64_linux_read_description): Likewise.
4846 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4847
1163a4b7
JB
48482019-03-12 John Baldwin <jhb@FreeBSD.org>
4849
4850 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4851 i386_create_target_description for 'segments' parameter.
4852 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4853 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4854 * win32-i386-low.c (i386_arch_setup): Likewise.
4855
d3a70e03
TT
48562019-03-12 Tom Tromey <tromey@adacore.com>
4857
4858 * linux-low.c (iterate_over_lwps): Update.
4859
37991b4f
TT
48602019-03-06 Tom Tromey <tom@tromey.com>
4861
4862 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4863 (captured_main): Use SCOPE_EXIT.
4864
45950eb6
SDJ
48652019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4866
4867 * configure.srv: Use '$enable_unittest' instead of '$development'
4868 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4869 case.
4870
43ac54fc
TT
48712019-02-27 Tom Tromey <tromey@adacore.com>
4872
4873 * gdbreplay.c (logchar): Handle \r\n.
4874
df0da8a2
AH
48752019-02-07 Alan Hayward <alan.hayward@arm.com>
4876
4877 * linux-low.c (linux_attach): Add process before lwp.
4878 * server.c (attach_inferior): Check if already attached.
4879
1a5c2598
TT
48802019-02-07 Tom Tromey <tom@tromey.com>
4881
4882 * x86-tdesc.h: Rename include guard.
4883 * x86-low.h: Add include guard.
4884 * wincecompat.h: Rename include guard.
4885 * win32-low.h: Add include guard.
4886 * utils.h: Rename include guard.
4887 * tracepoint.h: Rename include guard.
4888 * tdesc.h: Rename include guard.
4889 * target.h: Rename include guard.
4890 * server.h: Rename include guard.
4891 * remote-utils.h: Rename include guard.
4892 * regcache.h: Rename include guard.
4893 * nto-low.h: Rename include guard.
4894 * notif.h: Add include guard.
4895 * mem-break.h: Rename include guard.
4896 * lynx-low.h: Add include guard.
4897 * linux-x86-tdesc.h: Add include guard.
4898 * linux-s390-tdesc.h: Add include guard.
4899 * linux-ppc-tdesc-init.h: Add include guard.
4900 * linux-low.h: Add include guard.
4901 * linux-aarch64-tdesc.h: Add include guard.
4902 * linux-aarch32-low.h: Add include guard.
4903 * inferiors.h: Rename include guard.
4904 * i387-fp.h: Rename include guard.
4905 * hostio.h: Rename include guard.
4906 * gdbthread.h: Rename include guard.
4907 * gdb_proc_service.h: Rename include guard.
4908 * event-loop.h: Rename include guard.
4909 * dll.h: Rename include guard.
4910 * debug.h: Rename include guard.
4911 * ax.h: Rename include guard.
4912
956cc47c
SN
49132018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4914
4915 PR gdb/23985
4916 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4917 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4918
a0707f3c
TT
49192019-01-25 Tom Tromey <tom@tromey.com>
4920
4921 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4922
0747795c
TT
49232019-01-25 Tom Tromey <tom@tromey.com>
4924
4925 * win32-low.c: Fix common/ includes.
4926 * win32-i386-low.c: Fix common/ includes.
4927 * tracepoint.c: Fix common/ includes.
4928 * thread-db.c: Fix common/ includes.
4929 * target.h: Fix common/ includes.
4930 * symbol.c: Fix common/ includes.
4931 * spu-low.c: Fix common/ includes.
4932 * server.h: Fix common/ includes.
4933 * server.c: Fix common/ includes.
4934 * remote-utils.c: Fix common/ includes.
4935 * regcache.h: Fix common/ includes.
4936 * regcache.c: Fix common/ includes.
4937 * nto-x86-low.c: Fix common/ includes.
4938 * notif.h: Fix common/ includes.
4939 * mem-break.h: Fix common/ includes.
4940 * lynx-low.c: Fix common/ includes.
4941 * lynx-i386-low.c: Fix common/ includes.
4942 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4943 * linux-x86-low.c: Fix common/ includes.
4944 * linux-low.c: Fix common/ includes.
4945 * inferiors.h: Fix common/ includes.
4946 * i387-fp.c: Fix common/ includes.
4947 * hostio.c: Fix common/ includes.
4948 * hostio-errno.c: Fix common/ includes.
4949 * gdbthread.h: Fix common/ includes.
4950 * gdbreplay.c: Fix common/ includes.
4951 * fork-child.c: Fix common/ includes.
4952 * event-loop.c: Fix common/ includes.
4953 * ax.c:
4954 (enum gdb_agent_op): Fix common/ includes.
4955
be6d4f74
TT
49562019-01-21 Tom Tromey <tom@tromey.com>
4957
4958 * tracepoint.c: Fix includes.
4959 * remote-utils.c: Fix includes.
4960 * linux-x86-low.c: Fix includes.
4961
66d91b39
JB
49622019-01-01 Joel Brobecker <brobecker@adacore.com>
4963
4964 * gdbreplay.c (gdbreplay_version): Update copyright year in
4965 version message.
4966 * server.c (gdbserver_version): Likewise.
4967
754e3168
AH
49682018-12-05 Alan Hayward <alan.hayward@arm.com>
4969
4970 * linux-low.c (add_lwp): Switch ordering.
4971
d105de22
TT
49722018-11-29 Tom Tromey <tom@tromey.com>
4973
4974 * win32-low.c (win32_join): Take pid, not process.
4975 * target.h (struct target_ops) <join>: Change argument type.
4976 (join_inferior): Change argument name.
4977 * spu-low.c (spu_join): Take pid, not process.
4978 * server.c (handle_detach): Preserve pid before destroying
4979 process.
4980 * lynx-low.c (lynx_join): Take pid, not process.
4981 * linux-low.c (linux_join): Take pid, not process.
4982
50138245
AH
49832018-11-23 Alan Hayward <alan.hayward@arm.com>
4984
4985 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4986 (aarch64_cannot_fetch_register): Likewise.
4987 (struct linux_target_ops): Update references.
4988
64f57f3d
PFC
49892018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4990
4991 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4992
8d619c01
EBM
49932018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4994
4995 * configure.srv (ipa_ppc_linux_regobj): Add
4996 powerpc-isa207-htm-vsx32l-ipa.o and
4997 powerpc-isa207-htm-vsx64l-ipa.o.
4998 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4999 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5000 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5001 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5002 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5003 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5004 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5005 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5006 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5007 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5008 (init_registers_powerpc_isa207_htm_vsx32l)
5009 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5010 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5011 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5012 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5013 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5014 (ppc_store_tm_ctarregset): New functions.
5015 (ppc_regsets): Add entries for HTM regsets.
5016 (ppc_arch_setup): Set htm in features struct when needed. Set
5017 sizes for the HTM regsets.
5018 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5019 (initialize_low_arch): Call
5020 init_registers_powerpc_isa207_htm_vsx32l and
5021 init_registers_powerpc_isa207_htm_vsx64l.
5022 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5023 PPC_TDESC_ISA207_HTM_VSX.
5024 (initialize_low_tracepoint): Call
5025 init_registers_powerpc_isa207_htm_vsx32l and
5026 init_registers_powerpc_isa207_htm_vsx64l.
5027
232bfb86
EBM
50282018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5029
5030 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5031 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5032 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5033 (ppc_store_pmuregset): New functions.
5034 (ppc_regsets): Add entries for ebb and pmu regsets.
5035 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5036 pmu regsets are available. Set sizes for these regsets.
5037
f2cf6173
EBM
50382018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5039
5040 * configure.srv (ipa_ppc_linux_regobj): Add
5041 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5042 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5043 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5044 rs6000/powerpc-isa207-vsx32l.xml, and
5045 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5046 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5047 <PPC_TDESC_ISA207_VSX>: New enum value.
5048 (init_registers_powerpc_isa207_vsx32l): Declare.
5049 (init_registers_powerpc_isa207_vsx64l): Declare.
5050 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5051 (ppc_store_tarregset): New function.
5052 (ppc_regsets): Add entry for the TAR regset.
5053 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5054 size for the TAR regsets.
5055 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5056 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5057 and init_registers_powerpc_isa207_vsx64l.
5058 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5059 (initialize_low_tracepoint): Call
5060 init_registers_powerpc_isa207_vsx32l and
5061 init_registers_powerpc_isa207_vsx64l.
5062
7ca18ed6
EBM
50632018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5064 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5065
5066 * configure.srv (ipa_ppc_linux_regobj): Add
5067 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5068 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5069 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5070 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5071 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5072 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5073 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5074 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5075 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5076 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5077 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5078 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5079 (ppc_hwcap): Add comment.
5080 (ppc_hwcap2): New global.
5081 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5082 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5083 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5084 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5085 when needed. Set sizes for the the DSCR and PPR regsets.
5086 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5087 (initialize_low_arch): Call
5088 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5089 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5090 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5091 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5092 (initialize_low_tracepoint): Call
5093 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5094 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5095
5c849b22
PFC
50962018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5097
5098 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5099
8ecfd7bd
SDJ
51002018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5101 Simon Marchi <simark@simark.ca>
5102
5103 * acinclude.m4: Include "../selftest.m4".
5104 * configure: Regenerate.
5105 * configure.ac: Use "GDB_AC_SELFTEST".
5106 * configure.srv: Use "$enable_unittests" instead of
5107 "$development" when checking whether unit tests have been
5108 enabled.
5109 * server.c (captured_main): Update message informing that
5110 selftests have been disabled.
5111
96643e35
TT
51122018-10-04 Tom Tromey <tom@tromey.com>
5113
5114 * configure: Rebuild.
5115
da4ae14a
TT
51162018-10-04 Tom Tromey <tom@tromey.com>
5117
5118 * server.c (handle_status): Rename inner "thread".
5119 (process_serial_event): Declare "res" in 'm' case.
5120 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5121 (iterate_over_lwps): Rename inner "thread".
5122 (linux_qxfer_libraries_svr4): Rename inner "len".
5123 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5124
7c619dbd
GB
51252018-10-01 Gary Benson <gbenson@redhat.com>
5126
5127 * gdb_proc_service.h: Moved common code to
5128 common/gdb_proc_service.h.
5129
3795e814
GB
51302018-10-01 Gary Benson <gbenson@redhat.com>
5131
5132 * gdb_proc_service.h: Synchronize comments and whitespace with
5133 GDB's version of this file.
5134
49b036f1
TT
51352018-09-25 Tom Tromey <tom@tromey.com>
5136
5137 * configure: Rebuild.
5138 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5139
8ff03f0b
SM
51402018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5141
5142 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5143 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5144 ($(IPA_LIB)): Sort IPA_OBJS.
5145
a1cd91dc
SM
51462018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5147
5148 * Makefile.in: Remove references to $(ADD_DEPS).
5149
752312ba
TT
51502018-09-16 Tom Tromey <tom@tromey.com>
5151
5152 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5153 variables.
5154 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5155 variables.
5156
f1628857
TT
51572018-09-05 Tom Tromey <tom@tromey.com>
5158
5159 * configure: Rebuild.
5160
ad202fcc
SM
51612018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5162
5163 PR build/23399
5164 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5165
d3d8724a
TT
51662018-08-27 Tom Tromey <tom@tromey.com>
5167
5168 PR build/23087:
5169 * configure: Rebuild.
5170
b4f183d2
TT
51712018-08-27 Tom Tromey <tom@tromey.com>
5172
5173 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5174 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5175 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5176 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5177 (s390x_emit_stack_adjust): Add casts to unsigned char.
5178
4e2aa472
SM
51792018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5180
5181 PR gdb/23374
5182 PR gdb/23375
5183 * server.h (struct client_state) <disable_randomization>:
5184 Initialize to 1.
5185
cf4088a9
SM
51862018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5187
5188 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5189 variable.
5190 (mips_supply_ptrace_register): Likewise.
5191
a0de763e
TT
51922018-07-22 Tom Tromey <tom@tromey.com>
5193
5194 * configure: Rebuild.
5195
b0a7723d
TT
51962018-07-22 Tom Tromey <tom@tromey.com>
5197
5198 * win32-low.c (win32_create_inferior): Remove unused variables.
5199 * gdbreplay.c (remote_open): Remove unused variable.
5200 * remote-utils.c (remote_prepare): Remove unused variable.
5201 * x86-tdesc.h (X86_TDESC_H): Define.
5202 (amd64_expedite_regs): Define conditionally.
5203 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5204 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5205 * remote-utils.c (readchar): Remove unused variable.
5206
a780ef4f
PA
52072018-07-13 Pedro Alves <palves@redhat.com>
5208
5209 * linux-low.c (linux_kill): Change parameter to process_info
5210 pointer instead of pid. Adjust.
5211 * lynx-low.c (lynx_kill): Likewise.
5212 * nto-low.c (nto_kill): Likewise.
5213 * spu-low.c (spu_kill): Likewise.
5214 * win32-low.c (win32_kill): Likewise.
5215 * server.c (handle_v_kill, kill_inferior_callback)
5216 (detach_or_kill_for_exit): Adjust.
5217 * target.c (kill_inferior): Change parameter to process_info
5218 pointer instead of pid. Adjust.
5219 * target.h (struct target_ops) <kill>: Change parameter to
5220 process_info pointer instead of pid. Adjust all implementations
5221 and callers.
5222 (kill_inferior): Likewise.
5223
ef2ddb33
PA
52242018-07-13 Pedro Alves <palves@redhat.com>
5225
5226 * linux-low.c (linux_detach, linux_join): Change parameter to
5227 process_info pointer instead of pid. Adjust.
5228 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5229 * nto-low.c (nto_detach): Likewise.
5230 * spu-low.c (spu_detach, spu_join): Likewise.
5231 * win32-low.c (win32_detach, win32_join): Likewise.
5232 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5233 * target.h (struct target_ops) <detach, join>: Change parameter to
5234 process_info pointer instead of pid. Adjust all implementations
5235 and callers.
5236 (detach_inferior, join_inferior): Rename 'pid' parameter to
5237 'proc'.
5238
c7ab0aef
SDJ
52392018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5240 Jan Kratochvil <jan.kratochvil@redhat.com>
5241 Paul Fertser <fercerpav@gmail.com>
5242 Tsutomu Seki <sekiriki@gmail.com>
5243
5244 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5245 (OBS): Add 'common/netstuff.o'.
5246 (GDBREPLAY_OBS): Likewise.
5247 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5248 (remote_open): Implement support for IPv6
5249 connections.
5250 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5251 and 'wspiapi.h'.
5252 (handle_accept_event): Accept connections from IPv6 sources.
5253 (remote_prepare): Handle IPv6-style hostnames; implement
5254 support for IPv6 connections.
5255 (remote_open): Implement support for printing connections from
5256 IPv6 sources.
5257
31445d10
PA
52582018-07-11 Pedro Alves <palves@redhat.com>
5259
5260 PR gdb/23377
5261 * mem-break.c (any_persistent_commands): Add process_info
5262 parameter and use it instead of relying on the current process.
5263 Change return type to bool.
5264 * mem-break.h (any_persistent_commands): Add process_info
5265 parameter and change return type to bool.
5266 * server.c (handle_detach): Remove require_running_or_return call.
5267 Look up the process_info for the process we're about to detach.
5268 If not found, return back error to GDB. Adjust
5269 any_persistent_commands call to pass down a process pointer.
5270
cb197132
PA
52712018-07-11 Pedro Alves <palves@redhat.com>
5272
5273 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5274 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5275 instead of collect_register_by_name.
5276 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5277 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5278
1b919490
VB
52792018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5280 Pedro Alves <palves@redhat.com>
5281
5282 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5283
d7e15655
TT
52842018-07-03 Tom Tromey <tom@tromey.com>
5285
5286 * linux-low.c: Update.
5287 * lynx-low.c: Update.
5288 * mem-break.c: Update.
5289 * nto-low.c: Update.
5290 * remote-utils.c: Update.
5291 * server.c: Update.
5292 * spu-low.c: Update.
5293 * target.c: Update.
5294 * win32-low.c: Update.
5295
26a57c92
TT
52962018-07-03 Tom Tromey <tom@tromey.com>
5297
5298 * server.c: Update.
5299
0e998d96
TT
53002018-07-03 Tom Tromey <tom@tromey.com>
5301
5302 * linux-low.c: Update.
5303
cc6bcb54
TT
53042018-07-03 Tom Tromey <tom@tromey.com>
5305
5306 * target.c: Update.
5307
e38504b3
TT
53082018-07-03 Tom Tromey <tom@tromey.com>
5309
5310 * linux-low.c: Update.
5311 * linux-mips-low.c: Update.
5312 * lynx-low.c: Update.
5313 * nto-low.c: Update.
5314 * remote-utils.c: Update.
5315 * server.c: Update.
5316 * spu-low.c: Update.
5317 * target.c: Update.
5318 * thread-db.c: Update.
5319
e99b03dc
TT
53202018-07-03 Tom Tromey <tom@tromey.com>
5321
5322 * linux-low.c: Update.
5323 * linux-mips-low.c: Update.
5324 * lynx-low.c: Update.
5325 * mem-break.c: Update.
5326 * nto-low.c: Update.
5327 * remote-utils.c: Update.
5328 * server.c: Update.
5329 * spu-low.c: Update.
5330 * target.c: Update.
5331 * tracepoint.c: Update.
5332
f2907e49
TT
53332018-07-03 Tom Tromey <tom@tromey.com>
5334
5335 * linux-low.c: Update.
5336 * linux-ppc-low.c: Update.
5337 * linux-x86-low.c: Update.
5338 * proc-service.c: Update.
5339 * server.c: Update.
5340 * spu-low.c: Update.
5341 * thread-db.c: Update.
5342 * win32-low.c: Update.
5343
fd79271b
TT
53442018-07-03 Tom Tromey <tom@tromey.com>
5345
5346 * linux-low.c: Update.
5347 * lynx-low.c: Update.
5348 * nto-low.c: Update.
5349 * remote-utils.c: Update.
5350 * spu-low.c: Update.
5351 * thread-db.c: Update.
5352 * win32-low.c: Update.
5353
c0867626
SDJ
53542018-06-29 Joel Brobecker <brobecker@adacore.com>
5355
5356 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5357 parameter in call to 'amd64_create_target_description'.
5358
2512d7ef
JK
53592018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5360
5361 * x86-tdesc.h: Remove executable permission flag.
5362
d0ac1c44
SM
53632018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5364
5365 * configure.ac: Remove AC_PREREQ, add missing quoting.
5366 * configure: Re-generate.
5367 * config.in: Re-generate.
5368 * aclocal.m4: Re-generate.
5369
c4eb05ff
SM
53702018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5371
5372 * tracepoint.h (current_traceframe): Remove declaration.
5373
02895270
AH
53742018-06-18 Alan Hayward <alan.hayward@arm.com>
5375
5376 * linux-aarch64-low.c (is_sve_tdesc): New function.
5377 (aarch64_sve_regs_copy_to_regcache): Likewise.
5378 (aarch64_sve_regs_copy_from_regcache): Likewise.
5379 (aarch64_regs_info): Add SVE checks.
5380 (initialize_low_arch): Initialize SVE.
5381
e9902bfc
AH
53822018-06-18 Alan Hayward <alan.hayward@arm.com>
5383
5384 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5385
fefa175e
AH
53862018-06-11 Alan Hayward <alan.hayward@arm.com>
5387
5388 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5389 (initialize_low_tracepoint): Likewise
5390 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5391 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5392 param.
5393 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5394 checks.
5395 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5396
b91ad3ff
AH
53972018-06-11 Alan Hayward <alan.hayward@arm.com>
5398
5399 * server.h (PBUFSIZ): Increase size
5400
f868386e
AH
54012018-06-11 Alan Hayward <alan.hayward@arm.com>
5402
5403 * regcache.c (regcache::raw_compare): New function.
5404 * regcache.h (regcache::raw_compare): New declaration.
5405
9c861883
AH
54062018-06-11 Alan Hayward <alan.hayward@arm.com>
5407
5408 * regcache.c (new_register_cache): Use new.
5409 (free_register_cache): Use delete.
5410 (register_data): Use const.
5411 (supply_register): Move body inside regcache.
5412 (regcache::raw_supply): New override function.
5413 (collect_register): Move body inside regcache.
5414 (regcache::raw_collect): New override function.
5415 (regcache::get_register_status): New override function.
5416 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5417
40591844
TT
54182018-06-09 Tom Tromey <tom@tromey.com>
5419
5420 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5421 declare queue.
5422 (event_queue): Use std::queue.
5423 (gdb_event_xfree): Remove.
5424 (initialize_event_loop, process_event, wait_for_event): Update.
5425
6341380d
SC
54262018-06-08 Stan Cox <scox@redhat.com>
5427
5428 * win32-low.c (win32_create_inferior): last_ptid and last_status
5429 moved to client_state.
5430
03349c93
PA
54312018-06-08 Pedro Alves <palves@redhat.com>
5432
5433 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5434 common/common-exceptions.o, common/common-utils.o,
5435 common/errors.o, common/print-utils.o and utils.o.
5436 * gdbreplay.c: Include "common-defs.h" instead of the two
5437 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5438 string.h or alloca.h.
5439 (perror_with_name): Delete.
5440 (remote_open): Use xstrdup instead of strdup.
5441 (main): Rename to ...
5442 (captured_main): ... this.
5443 (main): New.
5444
8dcc53b3
TT
54452018-06-08 Tom Tromey <tom@tromey.com>
5446
5447 * linux-low.c (linux_low_read_btrace): Update.
5448
c12a5089
SC
54492018-06-04 Stan Cox <scox@redhat.com>
5450
5451 * server.h (struct client_state): New.
5452 * server.c (cont_thread, general_thread, multi_process)
5453 (report_fork_events, report_vfork_events, report_exec_events)
5454 (report_thread_events, swbreak_feature, hwbreak_feature)
5455 (vCont_supported, disable_randomization, pass_signals)
5456 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5457 Moved to client_state.
5458 * remote-utils.c (remote_debug, noack_mode)
5459 (transport_is_reliable): Moved to client_state.
5460 * tracepoint.c (current_traceframe): Moved to client_state.
5461
5462 Update all callers.
5463 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5464 linux-low.c, remote-utils.h, target.c: Use client_state.
5465
122394f1
AH
54662018-05-31 Alan Hayward <alan.hayward@arm.com>
5467
5468 * configure.srv: Add new c/h file.
5469
95228a0d
AH
54702018-05-31 Alan Hayward <alan.hayward@arm.com>
5471
5472 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5473 null VQ.
5474
d8dab6c3
MR
54752018-05-25 Maciej W. Rozycki <macro@mips.com>
5476
5477 * gdb.arch/mips-fpregset-core.exp: New test.
5478 * gdb.arch/mips-fpregset-core.c: New test source.
5479
81e25b7c
EK
54802018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5481
5482 PR server/23198
5483 * hostio.c (require_int): Do not report overflow for integers
5484 between 0xfffffff and 0x7fffffff.
5485
7e947ad3
MR
54862018-05-22 Maciej W. Rozycki <macro@mips.com>
5487
5488 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5489 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5490 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5491 functions.
5492 (the_low_target): Wire them.
5493
1d75a658
PFC
54942018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5495
5496 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5497 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5498 mode. Call collect_register_by_name with vscr using
5499 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5500 (ppc_store_vrregset): Add and set vscr_offset variable as in
5501 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5502 vscr_offset.
5503
d078308a
PFC
55042018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5505
5506 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5507 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5508 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5509
7273b5fc
PFC
55102018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5511
5512 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5513 (ppc_store_vsxregset): Likewise.
5514 (ppc_fill_vrregset): Likewise.
5515 (ppc_store_vrregset): Likewise.
5516 (ppc_fill_evrregset): Likewise.
5517 (ppc_store_evrregset): Likewise.
5518 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5519 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5520 needed.
5521
2e077f5e
PFC
55222018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5523
5524 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5525 wordsize of the inferior. Call ppc_linux_target_wordsize.
5526
bd64614e
PFC
55272018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5528
5529 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5530 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5531 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5532 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5533 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5534 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5535 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5536 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5537 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5538 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5539 (tdesc_powerpc_e500l): Remove.
5540 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5541 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5542 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5543 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5544 linux-ppc-tdesc.h.
5545 (ppc_arch_setup): Remove target description matching code. Fill a
5546 ppc_linux_features struct and call ppc_linux_match_description
5547 with it.
5548
75d74cca
MR
55492018-05-22 Maciej W. Rozycki <macro@mips.com>
5550
5551 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5552 width of the requested register exceeds the width of the
5553 `ptrace' data type.
5554 (mips_cannot_store_register): Likewise.
5555
e4439e43
MR
55562018-05-21 Maciej W. Rozycki <macro@mips.com>
5557
5558 * linux-mips-low.c (mips_fetch_register): New function. Update
5559 preceding comment.
5560 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5561 (the_low_target): Wire `mips_fetch_register'.
5562
55271bf9
JB
55632018-05-10 Joel Brobecker <brobecker@adacore.com>
5564
5565 * lynx-i386-low.c (LYNXOS_178): New macro.
5566 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5567 the layout on LynxOS-178.
5568 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5569 handle floating point registers that are not supported by
5570 LynxOS-178.
5571
1a34f210
TT
55722018-05-10 Tom Tromey <tom@tromey.com>
5573
5574 * configure: Rebuild.
5575
190852c8
JB
55762018-05-10 Joel Brobecker <brobecker@adacore.com>
5577
5578 PR server/23158:
5579 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5580 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5581 Use it to set the expedite_regs field in the given tdesc.
5582 * x86-tdesc.h: New file.
5583 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5584 Adjust following the addition of the new expedite_regs parameter
5585 to init_target_desc.
5586 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5587 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5588 (i386_linux_read_description, amd64_linux_read_description):
5589 Adjust following the addition of the new expedite_regs parameter
5590 to init_target_desc.
5591 * lynx-i386-low.c: #include "x86-tdesc.h".
5592 (lynx_i386_arch_setup): Adjust following the addition of the new
5593 expedite_regs parameter to init_target_desc.
5594 * nto-x86-low.c: #include "x86-tdesc.h".
5595 (nto_x86_arch_setup): Adjust following the addition of the new
5596 expedite_regs parameter to init_target_desc.
5597 * win32-i386-low.c: #include "x86-tdesc.h".
5598 (i386_arch_setup): Adjust following the addition of the new
5599 expedite_regs parameter to init_target_desc.
5600
7dbac825
JB
56012018-05-10 Joel Brobecker <brobecker@adacore.com>
5602
5603 PR server/23158:
5604 * win32-low.c (win32_create_inferior): Add call to my_wait
5605 setting last_status global.
5606
906994d9
JB
56072018-05-10 Joel Brobecker <brobecker@adacore.com>
5608
5609 PR server/23158:
5610 * win32-low.c (create_process): Only call gdb_tilde_expand if
5611 inferior_cwd is not NULL.
5612
8ee22052
AB
56132018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5614
5615 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5616 registers to the cache if their values have changed.
5617 (i387_xsave_to_cache): Provide default values for x87 control
5618 registers when these features are available, but disabled.
5619 * regcache.c (supply_register_by_name_zeroed): New function.
5620 * regcache.h (supply_register_by_name_zeroed): Declare new
5621 function.
5622
aff689d3
TT
56232018-05-07 Tom Tromey <tom@tromey.com>
5624
5625 * configure: Rebuild.
5626
85e26832
TT
56272018-05-04 Tom Tromey <tom@tromey.com>
5628
5629 * configure: Rebuild.
5630
a3b60e45
JK
56312018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5632 Pedro Alves <palves@redhat.com>
5633
5634 * linux-aarch64-low.c (aarch64_stopped_data_address):
5635 Likewise.
5636
632e107b
TT
56372018-04-27 Tom Tromey <tom@tromey.com>
5638
5639 * configure: Rebuild.
5640
458412c3
TT
56412018-04-23 Tom Tromey <tom@tromey.com>
5642
5643 * configure: Rebuild.
5644
f31c089e
SM
56452018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5646
5647 * Makefile.in (depcomp): Add "..".
5648 (all_deps_files): New and use it.
5649
b319b098
AH
56502018-04-18 Alan Hayward <alan.hayward@arm.com>
5651
5652 * configure.srv (aarch64*-*-linux*): Don't include xml.
5653 (i[34567]86-*-cygwin*): Likewise.
5654 (i[34567]86-*-linux*): Likewise.
5655 (i[34567]86-*-lynxos*): Likewise.
5656 (i[34567]86-*-mingw32ce*): Likewise.
5657 (i[34567]86-*-mingw*): Likewise.
5658 (i[34567]86-*-nto*): Likewise.
5659 (tic6x-*-uclinux): Likewise.
5660 (x86_64-*-linux*): Likewise.
5661 (x86_64-*-mingw*): Likewise.
5662 (x86_64-*-cygwin*): Likewise.
5663
3b74854b
AH
56642018-04-18 Alan Hayward <alan.hayward@arm.com>
5665
5666 * tdesc.c: Remove xml parameter.
5667
e98577a9
AH
56682018-04-18 Alan Hayward <alan.hayward@arm.com>
5669
5670 * server.c (get_features_xml): Remove cast.
5671 * tdesc.c (void target_desc::accept): Fill in function.
5672 (tdesc_get_features_xml): Remove old xml creation.
5673 (print_xml_feature::visit_pre): Add xml vistor.
5674 * tdesc.h (struct target_desc): Make xmltarget mutable.
5675 (tdesc_get_features_xml): Remove declaration.
5676
d278f585
AH
56772018-04-18 Alan Hayward <alan.hayward@arm.com>
5678
5679 * tdesc.c (tdesc_architecture_name): Add new function.
5680 (tdesc_osabi_name): Likewise.
5681 (tdesc_get_features_xml): Use new functions.
5682
eee8a18d
AH
56832018-04-18 Alan Hayward <alan.hayward@arm.com>
5684
5685 * tdesc.c (tdesc_create_flags): Remove.
5686 (tdesc_add_flag): Likewise.
5687 (tdesc_named_type): Likewise.
5688 (tdesc_create_union): Likewise.
5689 (tdesc_create_struct): Likewise.
5690 (tdesc_create_vector): Likewise.
5691 (tdesc_add_bitfield): Likewise.
5692 (tdesc_add_field): Likewise.
5693 (tdesc_set_struct_size): Likewise.
5694
82ec9bc7
AH
56952018-04-18 Alan Hayward <alan.hayward@arm.com>
5696
5697 * tdesc.c (~target_desc): Remove implictly deleted items.
5698 (init_target_desc): Iterate all features.
5699 (tdesc_get_features_xml): Use vector.
5700 (tdesc_create_feature): Create feature.
5701 * tdesc.h (tdesc_feature) Remove
5702 (target_desc): Add features.
5703
ea3e7d71
AH
57042018-04-18 Alan Hayward <alan.hayward@arm.com>
5705
5706 * Makefile.in: Add common/tdesc.c
5707 * tdesc.c (init_target_desc): init all reg_defs from register
5708 vector.
5709 (tdesc_create_reg): Create tdesc_reg.
5710 * tdesc.h (tdesc_feature): Add register vector.
5711
17d08cd4
SM
57122018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5713
5714 * tdesc.h (struct target_desc) <features>: Change type to
5715 std::vector<std::string>.
5716 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5717 changes.
5718 (tdesc_get_features_xml): Likewise.
5719 (tdesc_create_feature): Likewise.
5720
5cd3e386
AH
57212018-03-26 Alan Hayward <alan.hayward@arm.com>
5722
5723 * regcache.c (find_register_by_number): Return a ref.
5724 (find_regno): Use references.
5725 (register_size): Likewise.
5726 (register_data): Likewise.
5727 * tdesc.c (target_desc::~target_desc): Remove free calls.
5728 (target_desc::operator==): Use std::vector compare.
5729 (init_target_desc): Use reference.
5730 (tdesc_create_reg): Use reg constructors.
5731 * tdesc.h (struct target_desc): Replace pointer with object.
5732
dff7492c
AH
57332018-03-23 Alan Hayward <alan.hayward@arm.com>
5734
5735 * regcache.c (find_register_by_number): Make static.
5736 (find_regno): Use find_register_by_number
5737 * regcache.h (struct reg): Remove declaration.
5738
d80e5242
AH
57392018-03-23 Alan Hayward <alan.hayward@arm.com>
5740
5741 * tdesc.c (target_desc::~target_desc): Move to here.
5742 (target_desc::operator==): Likewise.
5743 * tdesc.h (target_desc::~target_desc): Move from here.
5744 (target_desc::operator==): Likewise.
5745
f69c5afb
AA
57462018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5747
5748 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5749
ce29f843
AA
57502018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5751
5752 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5753 S390_TDESC_GS.
5754 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5755 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5756 and init_registers_s390_gs_linux64.
5757
c49bd90b
AA
57582018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5759
5760 * linux-s390-low.c (s390_fill_gs): Remove function.
5761 (s390_fill_gsbc): Remove function.
5762 (s390_regsets): Set fill functions for the guarded storage regsets
5763 to NULL.
5764
7edb9bd3
AA
57652018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5766
5767 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5768 the word size. Add comment.
5769 (s390_get_wordsize): New function.
5770 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5771 pswm with it. Instead, use s390_get_wordsize to determine the
5772 word size first and derive the correct tdesc from that directly.
5773
39be3c7e
SM
57742018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5775
5776 * Makefile.in: Include silent-rules.mk.
5777 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5778 (COMPILE): Add ECHO_CXX.
5779 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5780 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5781 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5782 (version-generated.c): Add ECHO_GEN.
5783 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5784 (IPAGENT_COMPILE): Add ECHO_CXX.
5785 (%-generated.c): Add ECHO_REGDAT.
5786
3ae9ce5d
TT
57872018-03-14 Tom Tromey <tom@tromey.com>
5788
5789 PR cli/14977:
5790 * ax.c (ax_printf): Special case for NULL.
5791
e6a58aa8
SM
57922018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5793
5794 * linux-low.c (linux_qxfer_libraries_svr4): Use
5795 xml_escape_text_append.
5796
f6e8a41e
SM
57972018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5798
5799 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5800
b9671caf
SM
58012018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5802
5803 * server.c (handle_general_set): Remove unnecessary xstrdup.
5804
e80aaf61
SM
58052018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5806
5807 * server.c (parse_debug_format_options): Adjust to
5808 delim_string_to_char_ptr_vec changes.
5809 * thread-db.c (thread_db_load_search): Adjust to
5810 dirnames_to_char_ptr_vec changes.
5811
b1223e78
MM
58122018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5813
5814 * target.h (target_enable_btrace, target_disable_btrace)
5815 (target_read_btrace, target_read_btrace_conf): Turn macro into
5816 inline function. Throw error if target method is not defined.
5817 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5818 check for btrace target method. Be prepared to handle exceptions
5819 from btrace target methods.
5820
81561546
SDJ
58212018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5822
5823 * server.c (captured_main): Change order of error message printed
5824 when the current working directory cannot be found.
5825
25e3c82c
SDJ
58262018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5827
5828 * server.c: Include "filenames.h" and "pathstuff.h".
5829 (program_name): Delete variable.
5830 (program_path): New anonymous class.
5831 (get_exec_wrapper): Use "program_path" instead of
5832 "program_name".
5833 (handle_v_run): Likewise.
5834 (captured_main): Likewise.
5835 (process_serial_event): Likewise.
5836
b4987c95
SDJ
58372018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5838
5839 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5840 (OBJS): Add "pathstuff.o".
5841 * server.c (current_directory): New global variable.
5842 (captured_main): Initialize "current_directory".
5843
f46cd62a
AH
58442018-02-26 Alan Hayward <alan.hayward@arm.com>
5845
5846 * tdesc.c: Use common/tdesc.h.
5847 * tdesc.h: Likewise.
5848
a543c5ca
AH
58492018-02-20 Alan Hayward <alan.hayward@arm.com>
5850 Simon Marchi <simon.marchi@ericsson.com>
5851
5852 * Makefile.in: Switch order of make rules.
5853
b5884fa7
AH
58542018-02-19 Alan Hayward <alan.hayward@arm.com>
5855
5856 * Makefile.in: Add common directory in build.
5857 * configure.ac: Add common reference.
5858 * configure: Regenerate.
5859
de6242d3
MM
58602018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5861
5862 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5863 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5864 * spu-low.c (spu_target_ops): Likewise.
5865 * win32-low.c (win32_target_ops): Likewise.
5866 * server.c (supported_btrace_packets): Report packets unconditionally.
5867 * target.h (target_ops) <supports_btrace>: Remove.
5868 (target_supports_btrace): Remove.
5869
9ee23a85
MM
58702018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5871
5872 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5873 (handle_btrace_disable): Change return type to void. Use exceptions
5874 to report errors.
5875 (handle_btrace_general_set): Catch exception and copy message to
5876 return message.
5877
8ce47547
TT
58782018-02-08 Tom Tromey <tom@tromey.com>
5879
5880 * linux-low.c (install_software_single_step_breakpoints): Use
5881 make_scoped_restore.
5882 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5883 (do_restore_current_thread_cleanup): Remove.
5884 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5885 declare.
5886
45dd3607
TT
58872018-02-08 Tom Tromey <tom@tromey.com>
5888
5889 * mem-break.c (set_raw_breakpoint_at): Use
5890 gdb::unique_xmalloc_ptr.
5891
e671cd59
PA
58922018-01-30 Pedro Alves <palves@redhat.com>
5893
5894 PR gdb/13211
5895 * target.c (target_terminal::terminal_state): Rename to ...
5896 (target_terminal::m_terminal_state): ... this.
5897
a0aad537
JC
58982018-01-19 James Clarke <jrtc27@jrtc27.com>
5899
5900 * linux-low.c (handle_extended_wait): Surround call to
5901 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5902
4d9b86e1
SM
59032018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5904
5905 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5906 linux_ptrace_attach_fail_reason_string now returning an
5907 std::string.
5908 (linux_attach): Likewise.
5909 * thread-db.c (attach_thread): Likewise.
5910
f517c180
EA
59112018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5912
5913 PR gdb/21559
5914 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5915 checking for fs_base/gs_base fields in struct user_regs_struct.
5916 * configure: Regenerate.
5917
9a70f35c
YQ
59182018-01-16 Yao Qi <yao.qi@linaro.org>
5919
5920 PR gdb/18749
5921 * linux-low.c (fetch_register): Call supply_register instead of
5922 error.
5923
605fd3c6
YQ
59242018-01-08 Yao Qi <yao.qi@linaro.org>
5925 Simon Marchi <simon.marchi@ericsson.com>
5926
5927 * Makefile.in (OBS): Remove selftest.o.
5928 * configure.ac: Set srv_selftest_objs if $development is true.
5929 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5930 * configure: Re-generated.
5931 * server.c (captured_main): Wrap variable selftest_filter with
5932 GDB_SELF_TEST.
5933
2cc05030
SM
59342018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5935
5936 * server.c (parse_debug_format_options): Return std::string.
5937 (handle_monitor_command, captured_main): Adjust.
5938
e379cee6
PA
59392018-01-05 Pedro Alves <palves@redhat.com>
5940
5941 PR gdb/18653
5942 * server.c (captured_main): Pass quiet=false to
5943 save_original_signals_state.
5944
82e1e79a
JB
59452018-01-01 Joel Brobecker <brobecker@adacore.com>
5946
5947 * gdbreplay.c (gdbreplay_version): Update copyright year in
5948 version message.
5949 * server.c (gdbserver_version): Likewise.
5950
8e481c3b
TT
59512017-12-08 Tom Tromey <tom@tromey.com>
5952
5953 * ax.c (ax_printf): Update.
5954
a8806230
YQ
59552017-12-07 Yao Qi <yao.qi@linaro.org>
5956
5957 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5958 aarch64_linux_read_description.
5959 * linux-amd64-ipa.c (idx2mask): New array.
5960 (get_ipa_tdesc): Move idx2mask out.
5961 (initialize_low_tracepoint): Initialize target descriptions.
5962 * linux-i386-ipa.c (idx2mask): New array.
5963 (get_ipa_tdesc): Move idx2mask out.
5964 (initialize_low_tracepoint): Initialize target descriptions.
5965
d4a0e8b5
SM
59662017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5967
5968 * tdesc.c (struct tdesc_type): Change return type.
5969 (tdesc_add_flag): Change parameter type.
5970 (tdesc_add_bitfield): Likewise.
5971 (tdesc_add_field): Likewise.
5972 (tdesc_set_struct_size): Likewise.
5973
798a7429
SM
59742017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5975
5976 * regcache.c (registers_to_string): Remove unused variable.
5977
c0e15c9b
SM
59782017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5979
5980 * inferiors.c (for_each_inferior_with_data): Remove.
5981 * inferiors.h (for_each_inferior_with_data): Remove.
5982 * server.c (handle_qxfer_threads_worker): Change parameter type.
5983 (handle_qxfer_threads_proper): Use for_each_thread.
5984
f0045347
SM
59852017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5986
5987 * inferiors.c (for_each_inferior): Remove.
5988 (clear_inferiors): Use for_each_thread.
5989 * inferiors.h (for_each_inferior): Remove.
5990 * linux-low.c (linux_wait_for_event_filtered): Use
5991 for_each_thread.
5992 (linux_stabilize_threads): Likewise.
5993 * regcache.c (regcache_release): Likewise.
5994 * server.c (gdb_wants_all_threads_stopped): Likewise.
5995 (clear_pending_status_callback): Remove.
5996 (handle_status): Use for_each_thread.
5997 (captured_main): Likewise.
5998 * win32-low.c (child_init_thread_list): Likewise.
5999 (win32_clear_inferiors): Likewise.
6000 (fake_breakpoint_event): Likewise.
6001
9521758b
SM
60022017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6003
6004 * inferiors.h (find_inferior): Remove.
6005 * inferiors.c (find_inferior): Remove.
6006
8f86d7aa
SM
60072017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6008
6009 * linux-low.c (resume_status_pending_p): Update comment.
6010 (need_step_over_p): Update comment.
6011
e2b44075
SM
60122017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6013
6014 * linux-low.c (proceed_one_lwp): Return void, change parameter
6015 type.
6016 (unsuspend_and_proceed_one_lwp): Likewise.
6017 (proceed_all_lwps): Use for_each_thread.
6018 (unstop_all_lwps): Likewise.
6019
c80825ff
SM
60202017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6021
6022 * linux-low.c (linux_resume_one_thread): Return void, take
6023 parameter directly.
6024 (linux_resume): Use for_each_thread.
6025
df3e4dbe
SM
60262017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6027
6028 * linux-low.c (send_sigstop_callback): Return void, change
6029 parameter type. Rename to...
6030 (send_sigstop): ... this.
6031 (suspend_and_send_sigstop_callback): Return void, change parameter
6032 type. Rename to...
6033 (suspend_and_send_sigstop): ... this.
6034 (stop_all_lwps): Use for_each_thread.
6035
5a6b0a41
SM
60362017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6037
6038 * linux-low.c (lwp_running): Return bool, remove unused
6039 argument.
6040 (linux_stabilize_threads): Use find_thread.
6041
39a64da5
SM
60422017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6043
6044 * linux-low.c (select_singlestep_lwp_callback): Remove.
6045 (count_events_callback): Remove.
6046 (select_event_lwp_callback): Remove.
6047 (select_event_lwp): Use find_thread/for_each_thread.
6048
a1385b7b
SM
60492017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6050
6051 * linux-low.c (not_stopped_callback): Return bool, take filter
6052 argument directly.
6053 (linux_wait_for_event_filtered): Use find_thread.
6054 (linux_wait_1): Likewise.
6055
454296a2
SM
60562017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6057
6058 * linux-low.c (same_lwp): Remove.
6059 (find_lwp_pid): Use find_thread.
6060
6b2a85da
SM
60612017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6062
6063 * linux-low.c (delete_lwp_callback): Remove.
6064 (linux_mourn): Use for_each_thread.
6065
798a38e8
SM
60662017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6067
6068 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6069 args parameter, don't check for pid.
6070 (linux_detach): Use for_each_thread.
6071
e4eb0dec
SM
60722017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6073
6074 * linux-low.c (struct counter): Remove.
6075 (second_thread_of_pid_p): Remove.
6076 (last_thread_of_process_p): Use find_thread.
6077
83e1b6c1
SM
60782017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6079
6080 * inferiors.c (find_inferior_in_random): Remove.
6081 * inferiors.h (find_inferior_in_random): Remove.
6082 * linux-low.c (status_pending_p_callback): Return bool, accept
6083 parameter ptid directly.
6084 (linux_wait_for_event_filtered): Use find_thread_in_random.
6085 (linux_wait_1): Likewise.
6086
8dc7b443
SM
60872017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6088
6089 * inferiors.c (find_inferior_id): Remove.
6090 (find_thread_ptid): Move implemention from find_inferior_id to
6091 here.
6092 * inferiors.h (find_inferior_id): Remove.
6093 * server.c (handle_status): Use find_thread_ptid.
6094 (process_serial_event): Likewise.
6095 * thread-db.c (find_one_thread): Likewise.
6096 (thread_db_thread_handle): Likewise.
6097 * win32-low.c (thread_rec): Likewise.
6098 (child_delete_thread): Likewise.
6099 (win32_thread_alive): Likewise.
6100 (get_child_debug_event): Likewise.
6101
da25033c
SM
61022017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6103
6104 * linux-mips-low.c (update_watch_registers_callback): Return
6105 void, remove pid_p parameter, don't check for pid.
6106 (mips_insert_point, mips_remove_point): Use for_each_thread.
6107
c91bb56b
SM
61082017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6109
6110 * lynx.low (lynx_delete_thread_callback): Remove.
6111 (lynx_mourn): Use for_each_thread.
6112
634a3254
SM
61132017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6114
6115 * regcache.c (regcache_invalidate_one): Remove.
6116 (regcache_invalidate_pid): use for_each_thread.
6117
41272101
TT
61182017-11-26 Tom Tromey <tom@tromey.com>
6119
6120 * linux-low.c (linux_create_inferior): Update.
6121
f5291a6f
UW
61222017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6123
6124 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6125
6654d750
AH
61262017-11-24 Alan Hayward <alan.hayward@arm.com>
6127
6128 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6129 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6130 * linux-aarch64-tdesc-selftest.c: New file.
6131 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6132
61332017-11-24 Alan Hayward <alan.hayward@arm.com>
6134
6135 * configure.srv: Add new file.
6136 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6137 * linux-aarch64-tdesc-selftest.c: New file.
6138 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6139
49bdb7ee
AH
61402017-11-24 Alan Hayward <alan.hayward@arm.com>
6141
6142 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6143 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6144 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6145
d6d7ce56
AH
61462017-11-24 Alan Hayward <alan.hayward@arm.com>
6147
6148 * configure.srv: Add new files.
6149 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6150 aarch64_linux_read_description.
6151 * linux-aarch64-low.c (aarch64_linux_read_description):
6152 Merge with aarch64_arch_setup.
6153 (aarch64_arch_setup): Call aarch64_linux_read_description.
6154 * linux-aarch64-tdesc.c: New file.
6155 * linux-aarch64-tdesc.h: New file.
6156
506fe5f4
YQ
61572017-11-24 Yao Qi <yao.qi@linaro.org>
6158
6159 * configure.srv: Set $srv_regobj for tic6x-linux.
6160 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6161 (tic6x_read_description): Move some code to tic6x_arch_setup.
6162 (tic6x_tdesc_test): New function.
6163 (initialize_low_arch): Call selftests::register_test.
6164
29f9a567
YQ
61652017-11-22 Yao Qi <yao.qi@linaro.org>
6166
6167 * remote-utils.c (prepare_resume_reply): Use memcpy.
6168
578290ec
SM
61692017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6170
6171 * linux-low.c (kill_one_lwp_callback): Return void, take
6172 argument directly, don't filter on pid.
6173 (linux_kill): Use for_each_thread.
6174
eca55aec
SM
61752017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6176
6177 * linux-low.c (need_step_over_p): Return bool, remove dummy
6178 argument.
6179 (linux_resume, proceed_all_lwps): Use find_thread.
6180
25c28b4d
SM
61812017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6182
6183 * linux-low.c (resume_status_pending_p): Return bool, remove
6184 flag_p argument.
6185 (linux_resume): Use find_thread.
6186
5fdda392
SM
61872017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6188
6189 * linux-low.c (struct thread_resume_array): Remove.
6190 (linux_set_resume_request): Return void, take arguments
6191 directly.
6192 (linux_resume): Use for_each_thread.
6193
fcb056a5
SM
61942017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6195
6196 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6197 return bool, remove data argument.
6198 (linux_stabilize_threads): Use find_thread.
6199
139720c5
SM
62002017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6201
6202 * linux-low.c (unsuspend_one_lwp): Remove.
6203 (unsuspend_all_lwps): Use for_each_thread, inline code from
6204 unsuspend_one_lwp.
6205
6d1e5673
SM
62062017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6207
6208 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6209 * linux-low.c (struct iterate_over_lwps_args): Remove.
6210 (iterate_over_lwps_filter): Remove.
6211 (iterate_over_lwps): Use find_thread.
6212
bbf550d5
SM
62132017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6214
6215 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6216 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6217 code from reset_lwp_ptrace_options_callback.
6218
00192f77
SM
62192017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6220
6221 * linux-arm-low.c (struct update_registers_data): Remove.
6222 (update_registers_callback): Return void, take arguments
6223 directly, don't check thread's pid.
6224 (arm_insert_point, arm_remove_point): Use for_each_thread.
6225
2bee2b6c
SM
62262017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6227
6228 * win32-low.c (continue_one_thread): Return void, take argument
6229 directly.
6230 (child_continue): Use for_each_thread.
6231
0b360f19
SM
62322017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6233
6234 * win32-i386-low.c (update_debug_registers_callback): Rename
6235 to ...
6236 (update_debug_registers): ... this, return void, remove pid_p arg.
6237 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6238
f27866ba
SM
62392017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6240
6241 * inferiors.h (struct process_info): Add constructor, initialize
6242 fields..
6243 <syscalls_to_catch>: Change type to std::vector<int>.
6244 * inferiors.c (add_process): Allocate process_info with new.
6245 (remove_process): Free process_info with delete.
6246 * linux-low.c (handle_extended_wait): Adjust.
6247 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6248 * server.c (handle_general_set): Adjust.
6249
e849ea89
PA
62502017-11-16 Pedro Alves <palves@redhat.com>
6251
6252 * remote-utils.c (remote_close): Block SIGIO signals instead of
6253 uninstalling the SIGIO handler.
6254
1d0aa65c
AH
62552017-11-16 Alan Hayward <alan.hayward@arm.com>
6256
6257 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6258
3491a34c
YQ
62592017-11-16 Yao Qi <yao.qi@linaro.org>
6260
6261 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6262 (tic6x_store_gregset): Likewise.
6263 (tic6x_usrregs_info): Move it up.
6264
a602f924
AH
62652017-11-15 Alan Hayward <alan.hayward@arm.com>
6266
6267 * Makefile.in: Update arch rules.
6268 * configure.srv: Explicitly mark arch/ files.
6269
5616b6c3
AS
62702017-11-13 Andreas Schwab <schwab@suse.de>
6271
6272 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6273 function.
6274 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6275
d1928160
PA
62762017-11-06 Pedro Alves <palves@redhat.com>
6277
6278 * config.in, configure: Regenerate.
6279
bac608e7
SM
62802017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6281
6282 * target.c (struct thread_search): Remove.
6283 (thread_search_callback): Remove.
6284 (prepare_to_access_memory): Use for_each_thread instead of
6285 find_inferior. Inline code from thread_search_callback.
6286
eaddb425
SM
62872017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6288
6289 * server.c (struct visit_actioned_threads_data): Remove.
6290 (visit_actioned_threads): Change prototype to take arguments
6291 directly.
6292 (resume): Use find_thread instead of find_inferior.
6293
99078d34
SM
62942017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6295
6296 * server.c (queue_stop_reply_callback): Change prototype, return
6297 void.
6298 (find_status_pending_thread_callback): Remove.
6299 (handle_status): Replace find_inferior with find_thread and
6300 for_each_thread.
6301
cc628f3d
AH
63022017-10-25 Alan Hayward <alan.hayward@arm.com>
6303
6304 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6305 with REGNO.
6306 (aarch64_store_gregset): Likewise.
6307 (aarch64_fill_fpregset): Likewise.
6308 (aarch64_store_fpregset): Likewise.
6309
4d3bb80e
SM
63102017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6311
6312 * gdbthread.h (find_thread, for_each_thread): New functions.
6313 * inferiors.c (thread_of_pid): Remove.
6314 (find_any_thread_of_pid): Use find_thread.
6315 * linux-low.c (num_lwps): Use for_each_thread.
6316
7a7cdfa0
YQ
63172017-10-17 Yao Qi <yao.qi@linaro.org>
6318
6319 * Makefile.in: Remove one rule.
6320 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6321
e675d170
YQ
63222017-10-17 Yao Qi <yao.qi@linaro.org>
6323
6324 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6325 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6326
7eb4e0f9
YQ
63272017-10-17 Yao Qi <yao.qi@linaro.org>
6328
6329 * configure.srv: Rename arm.o with arch/arm.o.
6330
60d6cfc9
YQ
63312017-10-17 Yao Qi <yao.qi@linaro.org>
6332
6333 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6334 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6335 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6336 (arch-i386.o, arch-amd64.o): Remove rules.
6337 (arch/%.o): New rule.
6338 Update POSTCOMPILE and COMPILE.pre.
6339 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6340 * configure: Re-generated.
6341 * configure.srv: Replace arch-i386.o with arch/i386.o.
6342 Replace arch-amd64.o with arch/amd64.o.
6343
5bfda255
YQ
63442017-10-16 Yao Qi <yao.qi@linaro.org>
6345
6346 * configure: Regenerated.
6347
9c80ecd6
SM
63482017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6349
6350 * inferiors.h: (struct inferior_list): Remove.
6351 (struct inferior_list_entry); Remove.
6352 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6353 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6354 get_first_inferior): Remove.
6355 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6356 find_inferior_id, find_inferior_in_random): Change signature.
6357 * inferiors.c (all_threads): Change type to
6358 std::list<thread_info *>.
6359 (get_thread): Remove macro.
6360 (find_inferior, find_inferior_id): Change signature, implement
6361 using find_thread.
6362 (find_inferior_in_random): Change signature, implement using
6363 find_thread_in_random.
6364 (for_each_inferior, for_each_inferior_with_data): Change
6365 signature, implement using for_each_thread.
6366 (add_inferior_to_list, remove_inferior): Remove.
6367 (add_thread, get_first_thread, thread_of_pid,
6368 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6369 (get_first_inferior, one_inferior_p, clear_inferior_list):
6370 Remove.
6371 (clear_inferiors, get_thread_process): Update.
6372 * gdbthread.h: Include <list>.
6373 (struct thread_info) <entry>: Remove field.
6374 <id>: New field.
6375 (all_threads): Change type to std::list<thread_info *>.
6376 (get_first_inferior): Add doc.
6377 (find_thread, for_each_thread, find_thread_in_random): New
6378 functions.
6379 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6380 * linux-arm-low.c (update_registers_callback): Update.
6381 * linux-low.c (second_thread_of_pid_p): Update.
6382 (kill_one_lwp_callback, linux_detach_lwp_callback,
6383 delete_lwp_callback, status_pending_p_callback, same_lwp,
6384 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6385 iterate_over_lwps, not_stopped_callback,
6386 resume_stopped_resumed_lwps, count_events_callback,
6387 select_singlestep_lwp_callback, select_event_lwp_callback,
6388 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6389 suspend_and_send_sigstop_callback, wait_for_sigstop,
6390 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6391 lwp_running, linux_set_resume_request, resume_status_pending_p,
6392 need_step_over_p, start_step_over, linux_resume_one_thread,
6393 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6394 reset_lwp_ptrace_options_callback): Update.
6395 * linux-mips-low.c (update_watch_registers_callback): Update.
6396 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6397 Update.
6398 (free_register_cache_thread_one): Remove.
6399 (regcache_release): Update.
6400 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6401 handle_qxfer_threads_worker): Update.
6402 (handle_query): Update, use list iterator.
6403 (visit_actioned_threads, handle_pending_status,
6404 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6405 clear_pending_status_callback, set_pending_status_callback,
6406 find_status_pending_thread_callback, handle_status,
6407 process_serial_event): Update.
6408 * target.c (thread_search_callback): Update.
6409 * thread-db.c (thread_db_get_tls_address): Update.
6410 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6411 Update.
6412 * win32-i386-low.c (update_debug_registers_callback): Update.
6413 * win32-low.c (delete_thread_info, child_delete_thread,
6414 continue_one_thread, suspend_one_thread,
6415 get_child_debug_event): Adjust.
6416
9179355e
SM
64172017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6418
6419 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6420 * inferiors.h: Include <list>.
6421 (struct process_info) <entry>: Remove field.
6422 <pid>: New field.
6423 (pid_of): Change macro to function.
6424 (ptid_of, lwpid_of): Remove macro.
6425 (all_processes): Change type to std::list<process_info *>.
6426 (ALL_PROCESSES): Remove macro.
6427 (for_each_process, find_process): New function.
6428 * inferiors.c (all_processes): Change type to
6429 std::list<process_info *>.
6430 (find_thread_process): Adjust.
6431 (add_process): Likewise.
6432 (remove_process): Likewise.
6433 (find_process_pid): Likewise.
6434 (get_first_process): Likewise.
6435 (started_inferior_callback): Remove.
6436 (have_started_inferiors_p): Adjust.
6437 (attached_inferior_callback): Remove.
6438 (have_attached_inferiors_p): Adjust.
6439 * linux-low.c (check_zombie_leaders): Likewise.
6440 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6441 (x86_linux_update_xmltarget): Adjust.
6442 * server.c (handle_query): Likewise.
6443 (gdb_reattached_process): Remove.
6444 (handle_status): Adjust.
6445 (kill_inferior_callback): Likewise.
6446 (detach_or_kill_inferior): Remove.
6447 (print_started_pid): Likewise.
6448 (print_attached_pid): Likewise.
6449 (detach_or_kill_for_exit): Update.
6450 (process_serial_event): Likewise.
6451 * linux-arm-low.c (arm_new_fork): Likewise.
6452
c9cb8905
SM
64532017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6454
6455 * dll.h: Include <list>.
6456 (struct dll_info): Add constructor.
6457 <entry>: Remove field.
6458 (all_dlls): Change type to std::list<dll_info>.
6459 * dll.c: Include <algorithm>.
6460 (get_dll): Remove macro.
6461 (all_dlls): Change type to std::list<dll_info *>.
6462 (free_one_dll): Remove.
6463 (match_dll): Likewise.
6464 (loaded_dll): Adjust.
6465 (unloaded_dll): Adjust to all_dlls type change, use
6466 std::find_if. Inline code from match_dll.
6467 (clear_dlls): Adjust to all_dlls type change.
6468 * server.c (emit_dll_description): Remove.
6469 (handle_qxfer_libraries): Adjust to all_dlls type change,
6470 integrate emit_dll_description's functionality.
6471
04ec7890
SM
64722017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6473
6474 * linux-low.h (struct linux_target_ops) <delete_process>: New
6475 field.
6476 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6477 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6478 (struct linux_target_ops): Add delete_process callback.
6479 * linux-arm-low.c (arm_delete_process): New.
6480 (struct linux_target_ops): Add delete_process callback.
6481 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6482 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6483 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6484 * linux-mips-low.c (mips_linux_delete_process): New.
6485 (struct linux_target_ops): Add delete_process callback.
6486 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6487 * linux-s390-low.c (struct linux_target_ops): Likewise.
6488 * linux-sh-low.c (struct linux_target_ops): Likewise.
6489 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6490 * linux-tile-low.c (struct linux_target_ops): Likewise.
6491 * linux-x86-low.c (x86_linux_delete_process): New.
6492 (struct linux_target_ops): Add delete_process callback.
6493 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6494
466eecee
SM
64952017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6496
6497 * linux-aarch64-low.c (the_low_target): Add thread delete
6498 callback.
6499 * linux-arm-low.c (arm_delete_thread): New function.
6500 (the_low_target): Add thread delete callback.
6501 * linux-bfin-low.c (the_low_target): Likewise.
6502 * linux-crisv32-low.c (the_low_target): Likewise.
6503 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6504 set.
6505 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6506 field.
6507 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6508 * linux-mips-low.c (mips_linux_delete_thread): New function.
6509 (the_low_target): Add thread delete callback.
6510 * linux-ppc-low.c (the_low_target): Likewise.
6511 * linux-s390-low.c (the_low_target): Likewise.
6512 * linux-sh-low.c (the_low_target): Likewise.
6513 * linux-tic6x-low.c (the_low_target): Likewise.
6514 * linux-tile-low.c (the_low_target): Likewise.
6515 * linux-x86-low.c (the_low_target): Likewise.
6516 * linux-xtensa-low.c (the_low_target): Likewise.
6517
b79f7801
YZ
65182017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6519
6520 * win32-low.c: Include "common-inferior.h".
6521
bc3b087d
SDJ
65222017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6523
6524 * inferiors.c (set_inferior_cwd): New function.
6525 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6526 (handle_query): Inform that QSetWorkingDir is supported.
6527 * win32-low.c (create_process): Pass the inferior's cwd to
6528 CreateProcess.
6529
d092c5a2
SDJ
65302017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6531
6532 * inferiors.c (current_inferior_cwd): New global variable.
6533 (get_inferior_cwd): New function.
6534 * inferiors.h (struct process_info) <cwd>: New field.
6535
7da0a886
SDJ
65362017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6537
6538 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6539 (OBS): Add gdb_tilde_expand.o.
6540
289a6840
SM
65412017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6542
6543 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6544 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6545
256642e8
PA
65462017-09-29 Pedro Alves <palves@redhat.com>
6547
6548 * ax.c (gdb_parse_agent_expr): Constify.
6549 * ax.h (gdb_parse_agent_expr): Constify.
6550 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6551 Constify.
6552 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6553 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6554 * remote-utils.h (read_ptid): Constify.
6555 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6556 (process_point_options, process_serial_event): Constify.
6557 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6558 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6559 (cmd_qtbuffer): Constify.
6560
5b9ca4d4
PA
65612017-09-29 Pedro Alves <palves@redhat.com>
6562
6563 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6564 fails.
6565
94c207e0
PA
65662017-09-29 Pedro Alves <palves@redhat.com>
6567
6568 * linux-low.c (handle_extended_wait): Pass parent thread instead
6569 of process to thread_db_notice_clone.
6570 * linux-low.h (thread_db_notice_clone): Replace parent process
6571 parameter with parent thread parameter.
6572 * thread-db.c (find_one_thread): Add comment.
6573 (thread_db_notice_clone): Replace parent process parameter with
6574 parent thread parameter. Temporarily switch to the parent thread.
6575
75352e28
SDJ
65762017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6577
6578 * gdbthread.h: Include "common-gdbthread.h".
6579 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6580 "if" when validating the ptid.
6581 * remote-utils.c: Include "gdbthread.h".
6582 (prepare_resume_reply): Use "switch_to_thread".
6583 * target.c (done_accessing_memory): Likewise.
6584
ad339634
AA
65852017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6586
6587 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6588 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6589 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6590 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6591 s390x-gs-linux64-ipa.o to ipa_obj.
6592 * linux-s390-low.c (HWCAP_S390_GS): New define.
6593 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6594 New functions.
6595 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6596 (s390_arch_setup): Check for guarded-storage support and choose
6597 appropriate tdesc.
6598 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6599 init_registers_s390x_gs_linux64.
6600 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6601 enum value.
6602 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6603 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6604
cc4d742f
SM
66052017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6606
6607 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6608
f6327dcb
KB
66092017-09-21 Kevin Buettner <kevinb@redhat.com>
6610
6611 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6612 (thread_db_thread_handle): Declare.
6613 * linux-low.c (linux_target_ops): Initialize thread_handle.
6614 * server.c (handle_qxfer_threads_worker): Add support for
6615 "handle" attribute.
6616 * target.h (struct target_ops): Add new function pointer,
6617 thread_handle.
6618 (target_thread_handle): Define.
6619 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6620 field in lwp.
6621 (thread_db_thread_handle): New function.
6622
86299109
KB
66232017-09-21 Kevin Buettner <kevinb@redhat.com>
6624
6625 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6626 * linux-low.h (thread_db_notice_clone): Declare.
6627 * thread-db.c (thread_db_notice_clone): New function.
6628
f557a88a
PA
66292017-09-21 Pedro Alves <palves@redhat.com>
6630
6631 * server.c (gdb_read_memory, handle_status, process_serial_event)
6632 (handle_serial_event, handle_target_event): Adjust to
6633 set_desired_thread prototype change.
6634 * target.c (set_desired_thread): Remove 'use_general' parameter
6635 and adjust.
6636 * target.h (set_desired_thread): Remove 'use_general' parameter.
6637
223ffa71
TT
66382017-09-20 Tom Tromey <tom@tromey.com>
6639
6640 * target.c (target_terminal::terminal_state): Define.
6641 (target_terminal::init): Rename from target_terminal_init.
6642 (target_terminal::inferior): Rename from
6643 target_terminal_inferior.
6644 (target_terminal::ours): Rename from target_terminal_ours.
6645 (target_terminal::ours_for_output, target_terminal::info): New.
6646
04fd3ba9
SM
66472017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6648
6649 * server.c (accumulate_file_name_length): Remove.
6650 (emit_dll_description): Adjust to std::string change.
6651 (handle_qxfer_libraries): Use std::string to hold document.
6652
5e187554
SM
66532017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6654
6655 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6656 return type of xml_escape_text.
6657 * server.c (emit_dll_description): Likewise.
6658
1526853e
SM
66592017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6660
6661 * server.c (captured_main): Accept argument for --selftest.
6662 Update run_tests call.
6663 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6664 when registering selftests.
6665
c4dfafab
SDJ
66662017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6667
6668 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6669 instead of "VEC" for "target_desc.reg_defs".
6670 (regcache_cpy): Likewise.
6671 (registers_to_string): Likewise.
6672 (registers_from_string): Likewise.
6673 (find_regno): Likewise.
6674 (supply_regblock): Likewise.
6675 (regcache_raw_read_unsigned): Likewise.
6676 * tdesc.c (init_target_desc): Likewise.
6677 (tdesc_create_reg): Likewise.
6678 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6679 (struct target_desc) <reg_defs>: Convert to "std::vector".
6680 (target_desc): Do not initialize "reg_defs".
6681 (~target_desc): Update code to use "std::vector" instead of "VEC"
6682 for "target_desc.reg_defs".
6683 (operator==): Likewise.
6684
124aceb4
SM
66852017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6686
6687 * inferiors.h (thread_to_gdb_id): Remove.
6688 * inferiors.c (thread_to_gdb_id): Remove.
6689 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6690 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6691 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6692 Likewise.
6693 * nto-low.c (nto_fetch_registers, nto_store_registers,
6694 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6695
96cde54f
SM
66962017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6697
6698 * inferiors.h (gdb_id_to_thread_id): Remove.
6699 * inferiors.c (gdb_id_to_thread_id): Remove.
6700 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6701 removal. Move pid declaration closer to where it's used.
6702
e8ca139e
SM
67032017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6704
6705 * server.c (handle_detach): New function.
6706 (process_serial_event): Move code out, call handle_detach.
6707
f8a4e119
SM
67082017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6709
6710 * server.c (require_running): Rename to ...
6711 (require_running_or_return): ... this ...
6712 (require_running_or_break): ... and this.
6713 (handle_query, process_serial_event): Adjust.
6714
0eb0a407
SM
67152017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6716
6717 * linux-low.c (linux_set_resume_request): Remove unused
6718 variables.
6719
785922a5
SM
67202017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6721
6722 * server.c (first_thread_of): Remove.
6723 (process_serial_event): Replace usage of first_thread_of with
6724 find_any_thread_of_pid.
6725 * tracepoint.c (same_process_p): Remove.
6726 (gdb_agent_about_to_close): Replace usage of same_process_p with
6727 find_any_thread_of_pid.
6728 * linux-x86-low.c (same_process_callback): Remove.
6729 (x86_arch_setup_process_callback): Replace usage of
6730 same_process_callback with find_any_thread_of_pid.
6731 * thread-db.c (any_thread_of): Remove.
6732 (switch_to_process): Replace usage of any_thread_of with
6733 find_any_thread_of_pid.
6734 * inferiors.c (thread_pid_matches_callback): Remove.
6735 (find_thread_process): Adjust to use find_any_thread_of_pid.
6736
a059f00c
SDJ
67372017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6738
6739 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6740 with "!VEC_empty".
a059f00c 6741
cc397f3a
SDJ
67422017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6743
6744 * linux-low.c (handle_extended_wait): Use
6745 "allocate_target_description" instead of "XNEW".
6746 * linux-x86-low.c (initialize_low_arch): Likewise.
6747
22916b07
YQ
67482017-09-05 Yao Qi <yao.qi@linaro.org>
6749
6750 * configure.srv (srv_i386_regobj): Remove.
6751 (srv_amd64_regobj): Remove.
6752 (srv_regobj): Set it to "" for x86 non-linux targets.
6753 * linux-x86-tdesc.c (i386_linux_read_description):
6754 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6755 (init_registers_i386): Remove the declaration.
6756 (tdesc_i386): Remove the declaration.
6757 (lynx_i386_arch_setup): Call i386_create_target_description.
6758 * nto-x86-low.c: Likewise.
6759 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6760 [!__x86_64__]: include arch/i386.h.
6761 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6762
38602d55
YQ
67632017-09-05 Yao Qi <yao.qi@linaro.org>
6764
6765 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6766 i386/amd64-XXX-linux from it.
6767
44b886ff
YQ
67682017-09-05 Yao Qi <yao.qi@linaro.org>
6769
6770 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6771 false.
6772 (ipa_amd64_linux_regobj): Remove.
6773 (ipa_x32_linux_regobj): Remove.
6774
b4570e4b
YQ
67752017-09-05 Yao Qi <yao.qi@linaro.org>
6776
6777 * Makefile.in (arch-amd64.o): New rule.
6778 * configure.srv: Append arch-amd64.o.
6779 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6780 (get_ipa_tdesc): Call amd64_linux_read_description.
6781 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6782 and init_registers_amd64_XXX.
6783 * linux-x86-low.c (x86_linux_read_description): Call
6784 amd64_linux_read_description.
6785 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6786 (initialize_low_arch): Don't call init_registers_x32_XXX and
6787 init_registers_amd64_XXX.
6788 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6789 and tdesc_amd64_XXX.
6790 [__x86_64__] (amd64_tdesc_test): New function.
6791 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6792 and init_registers_amd64_XXX.
6793 * linux-x86-tdesc.c: Include arch/amd64.h.
6794 (xcr0_to_tdesc_idx): New function.
6795 (i386_linux_read_description): New function.
6796 (amd64_get_ipa_tdesc_idx): New function.
6797 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6798 (amd64_get_ipa_tdesc): Declare.
6799
d1f28ea2
YQ
68002017-09-05 Yao Qi <yao.qi@linaro.org>
6801
6802 * configure.srv (srv_i386_linux_xmlfiles): Remove
6803 i386/i386-XXX-linux.xml from it.
6804
25a93583
YQ
68052017-09-05 Yao Qi <yao.qi@linaro.org>
6806
6807 * configure.srv: Set srv_i386_linux_regobj empty if $development
6808 is false.
6809 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6810 initialize_low_tdesc.
6811 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6812 with #if initialize_low_tdesc.
6813 * linux-x86-tdesc-selftest.c: New file.
6814 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6815
5f035c07
YQ
68162017-09-05 Yao Qi <yao.qi@linaro.org>
6817
6818 * Makefile.in (arch-i386.o): New rule.
6819 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6820 (x86_64-*-linux*): Likewise.
6821 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6822 include arch/i386.h.
6823 (i386_linux_read_description): Remove code and call
6824 i386_create_target_description.
6825 * tdesc.c (allocate_target_description): New function.
6826 * tdesc.h (set_tdesc_architecture): Remove declaration.
6827 (set_tdesc_osabi): Likewise.
6828
0abe8a89
YQ
68292017-09-05 Yao Qi <yao.qi@linaro.org>
6830
6831 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6832 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6833 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6834 .xmltarget.
6835 * server.c (get_features_xml): Call tdesc_get_features_xml.
6836 * tdesc.c (set_tdesc_architecture): New function.
6837 (set_tdesc_osabi): New function.
6838 (tdesc_get_features_xml): New function.
6839 (tdesc_create_feature): Add an argument.
6840 * tdesc.h (struct target_desc) <features>: New field.
6841 <arch, osabi>: New field.
6842 (~target_desc): xfree features, arch, and osabi.
6843 (target_desc::oerator==): Don't compare .xmltarget.
6844 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6845 (set_tdesc_osabi): Likewise.
6846 (tdesc_get_features_xml): Likewise.
6847
0a188386
YQ
68482017-09-05 Yao Qi <yao.qi@linaro.org>
6849
6850 * linux-x86-tdesc.c: Include selftest.h.
6851 (i386_tdesc_test): New function.
6852 (initialize_low_tdesc): Call selftests::register_test.
6853 * tdesc.h: Include regdef.h.
6854 (target_desc): Override operator == and !=.
6855
f49ff000
YQ
68562017-09-05 Yao Qi <yao.qi@linaro.org>
6857
6858 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6859 (ipa_obj): Likewise.
6860 * linux-i386-ipa.c: Include common/x86-xstate.h
6861 (get_ipa_tdesc): Call i386_linux_read_description.
6862 (initialize_low_tracepoint): Don't call init_registers_XXX
6863 functions, call initialize_low_tdesc instead.
6864 * linux-x86-low.c (x86_linux_read_description): Call
6865 i386_linux_read_description.
6866 (initialize_low_arch): Don't call init_registers_i386_XXX
6867 functions, call initialize_low_tdesc.
6868 * linux-x86-tdesc.c: New file.
6869 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6870 (i386_get_ipa_tdesc_idx): Declare.
6871 (i386_get_ipa_tdesc): Declare.
6872 (initialize_low_tdesc): Declare.
6873
2b68ef2f
YQ
68742017-09-05 Yao Qi <yao.qi@linaro.org>
6875
6876 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6877 instead of 0.
6878
f7000548
YQ
68792017-09-05 Yao Qi <yao.qi@linaro.org>
6880
6881 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6882 * regcache.c (get_thread_regcache): Use VEC_length.
6883 (init_register_cache): Likewise.
6884 (regcache_cpy): Likewise.
6885 (registers_to_string): Iterate reg_defs via VEC_iterate.
6886 (find_regno): Likewise.
6887 (find_register_by_number): Use VEC_index.
6888 (register_size): Call find_register_by_number.
6889 (register_data): Call find_register_by_number.
6890 (supply_regblock): Use VEC_length.
6891 (regcache_raw_read_unsigned): Likewise.
6892 * tdesc.c (init_target_desc): Iterate reg_defs via
6893 VEC_iterate.
6894 (default_description): Update initializer.
6895 (copy_target_description): Don't update field num_registers.
6896 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6897 <num_registers>: Remove.
6898
50a421ac
SM
68992017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6900
6901 * Makefile.in (.SECONDARY): Define target.
6902
23fdd69e
SM
69032017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6904
6905 * linux-low.c (linux_wait_1): Adjust.
6906 * server.c (queue_stop_reply_callback): Adjust.
6907
0a2dde4a
SDJ
69082017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6909
6910 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6911 QEnvironmentUnset and QEnvironmentReset packets.
6912 (handle_query): Inform remote that QEnvironmentHexEncoded,
6913 QEnvironmentUnset and QEnvironmentReset are supported.
6914
6afd337d
SM
69152017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6916
6917 * inferiors.h (inferior_target_data): Rename to ...
6918 (thread_target_data): ... this.
6919 (inferior_regcache_data): Rename to ...
6920 (thread_regcache_data): ... this.
6921 (set_inferior_regcache_data): Rename to ...
6922 (set_thread_regcache_data): ... this.
6923 * inferiors.c (inferior_target_data): Rename to ...
6924 (thread_target_data): ... this.
6925 (inferior_regcache_data): Rename to ...
6926 (thread_regcache_data): ... this.
6927 (set_inferior_regcache_data): Rename to ...
6928 (set_thread_regcache_data): ... this.
6929 (free_one_thread): Update.
6930 * linux-low.h (get_thread_lwp): Update.
6931 * regcache.c (get_thread_regcache): Update.
6932 (regcache_invalidate_thread): Update.
6933 (free_register_cache_thread): Update.
6934 * win32-i386-low.c (update_debug_registers_callback): Update.
6935 (win32_get_current_dr): Update.
6936 * win32-low.c (thread_rec): Update.
6937 (delete_thread_info): Update.
6938 (continue_one_thread): Update.
6939 (suspend_one_thread): Update.
6940
a160cc46
SM
69412017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6942
6943 * inferiors.c (set_inferior_target_data): Remove.
6944 * inferiors.h (set_inferior_target_data): Remove.
6945
6d580b63
YQ
69462017-08-18 Yao Qi <yao.qi@linaro.org>
6947
6948 * Makefile.in (OBS): Add selftest.o.
6949 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6950 * configure, config.in: Re-generated.
6951 * server.c: Include common/sefltest.h.
6952 (captured_main): Handle option --selftest.
6953
f5a29eb0
YQ
69542017-08-09 Yao Qi <yao.qi@linaro.org>
6955
6956 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6957 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6958 i386-avx-mpx.o and i386-mmx.o.
6959 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6960 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6961 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6962 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6963 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6964 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6965 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6966 i386/amd64-avx-mpx.xml.
6967
57757c2f
YQ
69682017-08-09 Yao Qi <yao.qi@linaro.org>
6969
6970 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6971 and x32-avx-avx512.o.
6972 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6973 i386/x32-avx-avx512.xml.
6974
229d26fc
SM
69752017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6976
6977 * tracepoint.h (enum class fast_tpoint_collect_result): New
6978 enumeration.
6979 (fast_tracepoint_collecting): Change return type to
6980 fast_tpoint_collect_result.
6981 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6982 * linux-low.h: Include tracepoint.h.
6983 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6984 fast_tpoint_collect_result.
6985 * linux-low.c (handle_tracepoints): Adjust.
6986 (linux_fast_tracepoint_collecting): Change return type to
6987 fast_tpoint_collect_result.
6988 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6989 linux_wait_1, stuck_in_jump_pad_callback,
6990 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6991 proceed_one_lwp): Adjust to type change.
6992
2e1e43e1
YQ
69932017-07-10 Yao Qi <yao.qi@linaro.org>
6994
6995 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6996
adc764e7
YQ
69972017-06-29 Yao Qi <yao.qi@linaro.org>
6998
6999 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7000 Remove.
7001 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7002
a206891a
SM
70032017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7004
7005 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7006
9a6c7d9c
SDJ
70072017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7008
7009 * linux-low.c (linux_create_inferior): Adjust code to access the
7010 environment information via 'gdb_environ' class.
7011 * lynx-low.c (lynx_create_inferior): Likewise.
7012 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7013 (get_environ): Return a pointer to 'our_environ'.
7014 (captured_main): Initialize 'our_environ'.
7015 * server.h (get_environ): Adjust prototype.
7016 * spu-low.c (spu_create_inferior): Adjust code to access the
7017 environment information via 'gdb_environ' class.
7018
ae3e2ccf
SM
70192017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7020
7021 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7022 usage of "register" keyword.
7023
3e019bdc
SM
70242017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7025
7026 * configure: Re-generate.
7027
8465943a
SM
70282017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7029
7030 * configure: Re-generate.
7031
cf0dd6f0
SM
70322017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7033
7034 * Makefile.in (COMPILE.pre): Add "-x c++".
7035
9845682b
SDJ
70362017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7037
7038 * fork-child.c: Conditionally include <signal.h>.
7039
aefd8b33
SDJ
70402017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7041
7042 * server.c (handle_general_set): Handle new packet
7043 "QStartupWithShell".
7044 (handle_query): Add "QStartupWithShell" to the list of supported
7045 packets.
7046 (gdbserver_usage): Add help text explaining the
7047 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7048 options.
7049 (captured_main): Recognize and act upon the presence of the new
7050 CLI options.
7051
2090129c
SDJ
70522017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7053 Pedro Alves <palves@redhat.com>
7054
7055 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7056 * configure: Regenerate.
7057 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7058 "fork-inferior.o".
7059 (i[34567]86-*-lynxos*): Likewise.
7060 (spu*-*-*): Likewise.
7061 * fork-child.c: New file.
7062 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7063 and "environ.h".
7064 (linux_ptrace_fun): New function.
7065 (linux_create_inferior): Adjust function prototype to reflect
7066 change on "target.h". Adjust function code to use
7067 "fork_inferior".
7068 (linux_request_interrupt): Delete "signal_pid".
7069 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7070 (lynx_ptrace_fun): New function.
7071 (lynx_create_inferior): Adjust function prototype to reflect
7072 change on "target.h". Adjust function code to use
7073 "fork_inferior".
7074 * nto-low.c (nto_create_inferior): Adjust function prototype and
7075 code to reflect change on "target.h". Update comments.
7076 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7077 "common-terminal.h" and "environ.h".
7078 (terminal_fd): Moved to fork-child.c.
7079 (old_foreground_pgrp): Likewise.
7080 (restore_old_foreground_pgrp): Likewise.
7081 (last_status): Make it global.
7082 (last_ptid): Likewise.
7083 (our_environ): New variable.
7084 (startup_with_shell): Likewise.
7085 (program_name): Likewise.
7086 (program_argv): Rename to...
7087 (program_args): ...this.
7088 (wrapper_argv): New variable.
7089 (start_inferior): Delete function.
7090 (get_exec_wrapper): New function.
7091 (get_exec_file): Likewise.
7092 (get_environ): Likewise.
7093 (prefork_hook): Likewise.
7094 (post_fork_inferior): Likewise.
7095 (postfork_hook): Likewise.
7096 (postfork_child_hook): Likewise.
7097 (handle_v_run): Update code to deal with arguments coming from the
7098 remote host. Update calls from "start_inferior" to
7099 "create_inferior".
7100 (captured_main): Likewise. Initialize environment variable. Call
7101 "have_job_control".
7102 * server.h (post_fork_inferior): New prototype.
7103 (get_environ): Likewise.
7104 (last_status): Declare.
7105 (last_ptid): Likewise.
7106 (signal_pid): Likewise.
7107 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7108 (spu_ptrace_fun): New function.
7109 (spu_create_inferior): Adjust function prototype to reflect change
7110 on "target.h". Adjust function code to use "fork_inferior".
7111 * target.c (target_terminal_init): New function.
7112 (target_terminal_inferior): Likewise.
7113 (target_terminal_ours): Likewise.
7114 * target.h: Include <vector>.
7115 (struct target_ops) <create_inferior>: Update prototype.
7116 (create_inferior): Update macro.
7117 * utils.c (gdb_flush_out_err): New function.
7118 * win32-low.c (win32_create_inferior): Adjust function prototype
7119 and code to reflect change on "target.h".
7120
043a4934
SDJ
71212017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7122
7123 * inferiors.c (switch_to_thread): New function.
7124
15652511
SDJ
71252017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7126
7127 * Makefile.in (SFILE): Add "common/job-control.c".
7128 (OBS): Add "job-control.o".
7129
21ea5acd
SDJ
71302017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7131
7132 * Makefile: Remove "@host_makefile_frag@".
7133
e13cb306
PA
71342017-05-05 Pedro Alves <palves@redhat.com>
7135
7136 * configure: Regenerate.
7137
c94fee56
SDJ
71382017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7139
7140 * configure: Regenerate.
7141
a0ff9e1a
SM
71422017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7143
7144 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7145 software_single_step change of return type to
7146 std::vector<CORE_ADDR>.
7147 * linux-low.c (install_software_single_step_breakpoints):
7148 Likewise.
7149 * linux-low.h (install_software_single_step_breakpoints):
7150 Likewise.
7151
be628ab8
SDJ
71522017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7153
7154 * remote-utils.c: Include "gdb_termios.h" instead of
7155 "terminal.h".
7156 * terminal.h: Delete file.
7157
7c5ded6a
SDJ
71582017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7159
7160 * server.c: Include <vector>.
7161 <program_argv, wrapper_argv>: Convert to std::vector.
7162 (start_inferior): Rewrite function to use C++.
7163 (handle_v_run): Likewise. Update code that calculates the argv
7164 based on the vRun packet; use C++.
7165 (captured_main): Likewise.
7166
436252de
SM
71672017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7168
7169 * server.c (handle_v_cont): Initialize thread_resume::thread
7170 with null_ptid.
7171
9bf2a700
PA
71722017-04-05 Pedro Alves <palves@redhat.com>
7173
7174 * configure: Regenerate.
7175
a121b7c1
PA
71762017-04-05 Pedro Alves <palves@redhat.com>
7177
7178 * gdbreplay.c (sync_error): Constify.
7179 * linux-x86-low.c (push_opcode): Constify.
7180
21c8a587
PA
71812017-04-05 Pedro Alves <palves@redhat.com>
7182
7183 * win32-low.c (get_child_debug_event)
7184 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7185 Report TARGET_WAITKIND_SPURIOUS instead.
7186
fb32b4f7
PA
71872017-04-05 Pedro Alves <palves@redhat.com>
7188
e79be6e5
SM
7189 * remote-utils.c (remote_prepare, remote_open): Constify.
7190 * remote-utils.h (remote_prepare, remote_open): Constify.
7191 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7192
65dd1e59
SM
71932017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7194
7195 * Makefile.in (clean): Clear .deps.
7196
8fa5b777
SM
71972017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7198
7199 * .gitignore: Remove generated files, replace with wildcard.
7200 * (clean): Replace removal of generated files with wildcard.
7201 (version.c): Replace with...
7202 (version-generated.c): ...this.
7203 (xml-builtin.c): Replace with...
7204 (xml-builtin-generated.c): ...this.
7205 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7206 (%.c: *regformats*): Replace with...
7207 (%-generated.c: *regformats*): ...this.
7208
a12e714b
MF
72092017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7210
7211 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7212 (xtensa_fill_gregset): Call collect_register_by_name for
7213 threadptr register.
7214 (xtensa_store_gregset): Call supply_register_by_name for
7215 threadptr register.
7216
1a09b50a
MF
72172017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7218
7219 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7220 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7221 (xtensa_store_gregset): Call supply_register for all registers in
7222 a0_regnum..a0_regnum + C0_NREGS range.
7223
1a01e7c6
SM
72242017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7225
7226 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7227 (ax-ipa.o: ax.c): Remove.
7228 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7229 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7230 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7231 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7232 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7233
36bc18a8
SM
72342017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7235
7236 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7237 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7238 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7239 (errors-ipa.o: ../common/errors.c): Remove.
7240 (format-ipa.o: ../common/format.c): Remove.
7241 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7242
a8ebe3d5
SM
72432017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7244
7245 * Makefile.in (%-ipa.o: %.c): New rule.
7246 (tracepoint-ipa.o: tracepoint.c): Remove.
7247 (utils-ipa.o: utils.c): Remove.
7248 (remote-utils-ipa.o: remote-utils.c): Remove.
7249 (regcache-ipa.o: regcache.c): Remove.
7250 (i386-linux-ipa.o: i386-linux.c): Remove.
7251 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7252 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7253 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7254 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7255 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7256 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7257 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7258 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7259 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7260 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7261 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7262 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7263 (aarch64-ipa.o: aarch64.c): Remove.
7264 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7265 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7266 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7267 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7268 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7269 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7270 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7271 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7272 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7273 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7274 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7275 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7276 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7277 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7278 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7279 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7280 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7281 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7282 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7283 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7284 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7285 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7286 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7287 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7288 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7289 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7290 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7291 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7292 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7293 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7294 (tdesc-ipa.o: tdesc.c): Remove.
7295 (x32-linux-ipa.o: x32-linux.c): Remove.
7296 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7297 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7298
50cfacb7
SM
72992017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7300
7301 * Makefile.in (%.o: ../arch/%.c): New rule.
7302 (arm.o: ../arch/arm.c): Remove.
7303 (arm-linux.o: ../arch/arm-linux.c): Remove.
7304 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7305 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7306
c5a22423
SM
73072017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7308
7309 * Makefile.in (%.o: ../nat/%.c): New rule.
7310 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7311 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7312 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7313 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7314 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7315 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7316 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7317 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7318 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7319 (linux-personality.o: ../nat/linux-personality.c): Remove.
7320 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7321 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7322 (x86-linux.o: ../nat/x86-linux.c): Remove.
7323 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7324 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7325
6bda016b
SM
73262017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7327
7328 * Makefile.in (%.o: ../common/%.c): New rule.
7329 (signals.o: ../common/signals.c): Remove.
7330 (print-utils.o: ../common/print-utils.c): Remove.
7331 (rsp-low.o: ../common/rsp-low.c): Remove.
7332 (common-utils.o: ../common/common-utils.c): Remove.
7333 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7334 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7335 (vec.o: ../common/vec.c): Remove.
7336 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7337 (xml-utils.o: ../common/xml-utils.c): Remove.
7338 (ptid.o: ../common/ptid.c): Remove.
7339 (buffer.o: ../common/buffer.c): Remove.
7340 (format.o: ../common/format.c): Remove.
7341 (filestuff.o: ../common/filestuff.c): Remove.
7342 (agent.o: ../common/agent.c): Remove.
7343 (errors.o: ../common/errors.c): Remove.
7344 (environ.o: ../common/environ.c): Remove.
7345 (common-debug.o: ../common/common-debug.c): Remove.
7346 (cleanups.o: ../common/cleanups.c): Remove.
7347 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7348 (fileio.o: ../common/fileio.c): Remove.
7349 (common-regcache.o: ../common/common-regcache.c): Remove.
7350 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7351 (new-op.o: ../common/new-op.c): Remove.
7352 (btrace-common.o: ../common/btrace-common.c): Remove.
7353
21122961
SM
73542017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7355
7356 * Makefile.in (%.o: ../target/%.c): New rule.
7357 (waitstatus.o: ../target/waitstatus.c): Remove.
7358
c362e621
SM
73592017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7360
7361 * Makefile.in
7362 (%.c: ../regformats/%.dat,
7363 (%.c: ../regformats/arm/%.dat,
7364 (%.c: ../regformats/i386/%.dat,
7365 (%.c: ../regformats/rs6000/%.dat): New rules.
7366 (aarch64.c): Remove.
7367 (reg-arm.c): Remove.
7368 (arm-with-iwmmxt.c): Remove.
7369 (arm-with-vfpv2.c): Remove.
7370 (arm-with-vfpv3.c): Remove.
7371 (arm-with-neon.c): Remove.
7372 (reg-bfin.c): Remove.
7373 (reg-cris.c): Remove.
7374 (reg-crisv32.c): Remove.
7375 (i386.c): Remove.
7376 (i386-linux.c): Remove.
7377 (i386-avx.c): Remove.
7378 (i386-avx-linux.c): Remove.
7379 (i386-avx-avx512.c): Remove.
7380 (i386-avx-avx512-linux.c): Remove.
7381 (i386-mpx.c): Remove.
7382 (i386-mpx-linux.c): Remove.
7383 (i386-avx-mpx-avx512-pku.c): Remove.
7384 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7385 (i386-avx-mpx.c): Remove.
7386 (i386-avx-mpx-linux.c): Remove.
7387 (i386-mmx.c): Remove.
7388 (i386-mmx-linux.c): Remove.
7389 (reg-ia64.c): Remove.
7390 (reg-m32r.c): Remove.
7391 (reg-m68k.c): Remove.
7392 (reg-cf.c): Remove.
7393 (mips-linux.c): Remove.
7394 (mips-dsp-linux.c): Remove.
7395 (mips64-linux.c): Remove.
7396 (mips64-dsp-linux.c): Remove.
7397 (nios2-linux.c): Remove.
7398 (powerpc-32.c): Remove.
7399 (powerpc-32l.c): Remove.
7400 (powerpc-altivec32l.c): Remove.
7401 (powerpc-cell32l.c): Remove.
7402 (powerpc-vsx32l.c): Remove.
7403 (powerpc-isa205-32l.c): Remove.
7404 (powerpc-isa205-altivec32l.c): Remove.
7405 (powerpc-isa205-vsx32l.c): Remove.
7406 (powerpc-e500l.c): Remove.
7407 (powerpc-64l.c): Remove.
7408 (powerpc-altivec64l.c): Remove.
7409 (powerpc-cell64l.c): Remove.
7410 (powerpc-vsx64l.c): Remove.
7411 (powerpc-isa205-64l.c): Remove.
7412 (powerpc-isa205-altivec64l.c): Remove.
7413 (powerpc-isa205-vsx64l.c): Remove.
7414 (s390-linux32.c): Remove.
7415 (s390-linux32v1.c): Remove.
7416 (s390-linux32v2.c): Remove.
7417 (s390-linux64.c): Remove.
7418 (s390-linux64v1.c): Remove.
7419 (s390-linux64v2.c): Remove.
7420 (s390-te-linux64.c): Remove.
7421 (s390-vx-linux64.c): Remove.
7422 (s390-tevx-linux64.c): Remove.
7423 (s390x-linux64.c): Remove.
7424 (s390x-linux64v1.c): Remove.
7425 (s390x-linux64v2.c): Remove.
7426 (s390x-te-linux64.c): Remove.
7427 (s390x-vx-linux64.c): Remove.
7428 (s390x-tevx-linux64.c): Remove.
7429 (tic6x-c64xp-linux.c): Remove.
7430 (tic6x-c64x-linux.c): Remove.
7431 (tic6x-c62x-linux.c): Remove.
7432 (reg-sh.c): Remove.
7433 (reg-sparc64.c): Remove.
7434 (reg-spu.c): Remove.
7435 (amd64.c): Remove.
7436 (amd64-linux.c): Remove.
7437 (amd64-avx.c): Remove.
7438 (amd64-avx-linux.c): Remove.
7439 (amd64-avx-avx512.c): Remove.
7440 (amd64-avx-avx512-linux.c): Remove.
7441 (amd64-mpx.c): Remove.
7442 (amd64-mpx-linux.c): Remove.
7443 (amd64-avx-mpx-avx512-pku.c): Remove.
7444 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7445 (amd64-avx-mpx.c): Remove.
7446 (amd64-avx-mpx-linux.c): Remove.
7447 (x32.c): Remove.
7448 (x32-linux.c): Remove.
7449 (x32-avx.c): Remove.
7450 (x32-avx-linux.c): Remove.
7451 (x32-avx-avx512.c): Remove.
7452 (x32-avx-avx512-linux.c): Remove.
7453 (reg-xtensa.c): Remove.
7454 (reg-tilegx.c): Remove.
7455 (reg-tilegx32.c): Remove.
7456
1672e0d9
SDJ
74572017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7458
7459 * Makefile.in (SFILES): Add "common/environ.c".
7460 (OBJS): Add "common/environ.h".
7461
239b6d10
WT
74622017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7463
7464 * configure.ac: Check if the fs_base and gs_base members of
7465 `struct user_regs_struct' exist.
7466 * config.in: Regenerated.
7467 * configure: Likewise.
7468
694b382c
AT
74692017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7470
7471 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7472 target_read_memory.
7473 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7474 (get_next_pcs_syscall_next_pc): Likewise.
7475
7dc53023
LM
74762016-12-23 Luis Machado <lgustavo@codesourcery.com>
7477
7478 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7479 * nto-x86-low.c: Likewise.
7480
ad02e4fe
SM
74812016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7482
7483 * Makefile.in: Include disable-implicit-rules.mk.
7484
dcb07cfa
PA
74852016-11-23 Pedro Alves <palves@redhat.com>
7486
7487 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7488 (debug_vprintf): Use std::chrono::steady_clock instead of
7489 gettimeofday. Use '.' instead of ':'.
7490 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7491 (get_timestamp): Use std::chrono::steady_clock instead of
7492 gettimeofday.
7493
8629c02c
SM
74942016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7495
7496 * Makefile.in: Fix whitespace formatting.
7497
b593ecca
SM
74982016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7499
7500 * Makefile.in (SFILES, OBS): Flatten list and order
7501 alphabetically.
7502
9986ba08
PA
75032016-11-23 Pedro Alves <palves@redhat.com>
7504
7505 * event-loop.c (handle_file_event): Use warning.
7506 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7507 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7508 Use warning.
7509
4eefa7bc
PA
75102016-11-23 Pedro Alves <palves@redhat.com>
7511
7512 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7513 output.
7514 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7515 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7516 debug_printf and debug_flush for debug output.
7517 * server.c (handle_general_set): Likewise.
7518 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7519 output.
7520
5443506e
SM
75212016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7522
7523 * Makefile.in (.c.o): Replace rule with ...
7524 (%.o: %.c): ... this one.
7525
3b165252
SM
75262016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7527
7528 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7529 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7530 make.
7531 * configure.ac: Remove checks for the make program.
7532 * configure: Re-generate.
7533
0bcda685
PA
75342016-10-28 Pedro Alves <palves@redhat.com>
7535
7536 * Makefile.in (CXX_DIALECT): Get from configure.
7537 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7538 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7539 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7540 * config.in: Regenerate.
7541 * configure: Regenerate.
7542
c3805894
YQ
75432016-10-27 Yao Qi <yao.qi@linaro.org>
7544
7545 * linux-low.c (linux_supports_range_stepping): Return true if
7546 can_software_single_step return true.
7547
89342618
YQ
75482016-10-27 Yao Qi <yao.qi@linaro.org>
7549
7550 * inferiors.c (find_inferior_in_random): New function.
7551 * inferiors.h (find_inferior_in_random): Declare.
7552 * linux-low.c (linux_wait_for_event_filtered): Call
7553 find_inferior_in_random instead of find_inferior.
7554
e3652c84
YQ
75552016-10-27 Yao Qi <yao.qi@linaro.org>
7556
7557 * linux-low.c (linux_wait_1): If single-step breakpoints are
7558 inserted, remove them.
7559
5a04c4cf
PA
75602016-10-26 Pedro Alves <palves@redhat.com>
7561
7562 * linux-low.c (handle_extended_wait): Link parent/child fork
7563 threads.
7564 (linux_wait_1): Unlink them.
7565 (linux_set_resume_request): Ignore resume requests for
7566 already-resumed and unhandled fork child threads.
7567 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7568 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7569 New functions.
7570 (handle_v_requests) <vCont>: Don't call require_running.
7571 * server.h (in_queued_stop_replies): New declaration.
7572
cb93dc7f
YQ
75732016-10-24 Yao Qi <yao.qi@linaro.org>
7574
7575 PR server/20733
7576 * linux-aarch64-low.c (append_insns): Cast the return value to
7577 'uint32_t *'.
7578
a1078bea
YQ
75792016-10-10 Yao Qi <yao.qi@linaro.org>
7580
7581 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7582
1fb77080
SDJ
75832016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7584
7585 * target.c (target_supports_multi_process): New function, moved
7586 from...
7587 * target.h (target_supports_multi_process): ... here. Remove
7588 macro.
7589
39b5a3b9
TT
75902016-10-05 Tom Tromey <tom@tromey.com>
7591
7592 PR remote/20655:
7593 * tracepoint.c (handle_tracepoint_bkpts): Check
7594 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7595
c1d0b70a
YQ
75962016-10-05 Yao Qi <yao.qi@linaro.org>
7597
7598 * configure.srv: Update the path of arm-*.xml files.
7599
0a69eedb
YQ
76002016-10-05 Terry Guo <terry.guo@arm.com>
7601 Yao Qi <yao.qi@linaro.org>
7602
7603 * Makefile.in: Adjust the path of rules.
7604 * configure.srv: Update the path of xml files.
7605 * regformats/arm-with-iwmmxt.dat: Regenerated.
7606 * regformats/arm-with-neon.dat: Likewise.
7607 * regformats/arm-with-vfpv2.dat: Likewise.
7608 * regformats/arm-with-vfpv3.dat Likewise.
7609
17e16485
YQ
76102016-09-30 Yao Qi <yao.qi@linaro.org>
7611
7612 PR gdbserver/20627
7613 * target.c (target_stop_and_wait): Don't call
7614 target_continue_no_signal, use resume_stop instead.
7615
edeeb602
YQ
76162016-09-26 Yao Qi <yao.qi@linaro.org>
7617
7618 * linux-low.c (linux_wait_1): Call debug_exit.
7619
503b1c39
PA
76202016-09-23 Pedro Alves <palves@redhat.com>
7621
7622 * Makefile.in (SFILES): Add common/new-op.c.
7623 (OBS): Add common/new-op.o.
7624 (new-op.o): New rule.
7625
74172ecf
SM
76262016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7627
7628 * .gitinore: Ignore more files.
7629
fc6cda2e
YQ
76302016-09-21 Yao Qi <yao.qi@linaro.org>
7631
7632 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7633 23.
7634
bc1e6c81
SDJ
76352016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7636
7637 * server.c (start_inferior): Call target_mourn_inferior instead of
7638 mourn_inferior; pass ptid_t argument to it.
7639 (resume): Likewise.
7640 (handle_target_event): Likewise.
7641 * target.c (target_mourn_inferior): New function.
7642 * target.h (mourn_inferior): Delete macro.
7643
0e00e962
AA
76442016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7645
7646 * linux-low.c (lwp_is_stepping): New function.
7647
1d8cb77d
CL
76482016-09-06 Carl Love <cel@us.ibm.com>
7649
7650 * server.c (start_inferior): Fixed comment, requested comment change
7651 didn't get updated correctly. Removed reference to ptrace () call as
7652 it is only true on Linux systems.
7653
7313bced
CL
76542016-09-06 Carl Love <cel@us.ibm.com>
7655
7656 * server.c (start_inferior): Do not call
7657 function target_post_create_inferior () if the
7658 inferior process has already exited.
7659
cf6de44d
PA
76602016-09-05 Pedro Alves <palves@redhat.com>
7661
7662 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7663 (COMPILE.pre, CC_LD): Use CXX directly.
7664 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7665 * acinclude.m4: Don't include build-with-cxx.m4.
7666 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7667 * configure: Regenerate.
7668
c1da6748
AT
76692016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7670
7671 PR gdb/19495
7672 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7673 call writing data to own_buf.
7674
f2b9e3df
SDJ
76752016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7676
7677 * target.c (mywait): Call target_wait instead of
7678 the_target->wait.
7679 (target_wait): New function.
7680
049a8570
SDJ
76812016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7682
7683 * server.c (start_inferior): New variable 'ptid'. Replace calls
7684 to the_target->resume by target_continue{,_no_signal}, depending
7685 on the case.
7686 * target.c (target_stop_and_wait): Call target_continue_no_signal
7687 instead of the_target->resume.
7688 (target_continue): New function.
7689
3aa5cfa0
AT
76902016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7691
7692 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7693
754653a7
AZ
76942016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7695
7696 PR server/20491
7697 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7698 ps_prochandle.
7699 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7700 * linux-arm-low.c (ps_get_thread_area): Likewise.
7701 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7702 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7703 * linux-mips-low.c (ps_get_thread_area): Likewise.
7704 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7705 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7706 * linux-x86-low.c (ps_get_thread_area): Likewise.
7707 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7708
ed036b40
PA
77092016-08-19 Pedro Alves <palves@redhat.com>
7710
7711 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7712
c8ef42ee
PA
77132016-08-19 Pedro Alves <palves@redhat.com>
7714
7715 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7716 comment. Use memcpy instead of casting through unsigned long.
7717
9c235a72
PA
77182016-08-19 Pedro Alves <palves@redhat.com>
7719
7720 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7721 allocating around 0x80000000.
7722
201506da
PA
77232016-08-19 Pedro Alves <palves@redhat.com>
7724
7725 PR gdb/20415
7726 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7727 (x32-avx512-linux-ipa.o): New rules.
7728 * configure.ac (x86_64-*-linux*): New x32 check.
7729 * configure.srv (ipa_x32_linux_regobj): New.
7730 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7731 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7732 descriptions.
7733 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7734 descriptions.
7735 * configure: Regenerate.
7736
f348d89a
PA
77372016-08-09 Pedro Alves <palves@redhat.com>
7738
7739 PR gdb/18653
7740 * Makefile.in (OBS): Add signals-state-save-restore.o.
7741 (signals-state-save-restore.o): New rule.
7742 * config.in: Regenerate.
7743 * configure: Regenerate.
7744 * linux-low.c: Include "signals-state-save-restore.h".
7745 (linux_create_inferior): Call
7746 restore_original_signals_state.
7747 * server.c: Include "dispositions-save-restore.h".
7748 (captured_main): Call save_original_signals_state.
7749
1baf5149
PA
77502016-08-05 Pedro Alves <palves@redhat.com>
7751
7752 * configure: Regenerate.
7753
fcd4a73d
YQ
77542016-08-04 Yao Qi <yao.qi@linaro.org>
7755
7756 * linux-low.c (regsets_fetch_inferior_registers): Check
7757 errno is ESRCH or not.
7758
979659d0
YQ
77592016-08-02 Yao Qi <yao.qi@linaro.org>
7760
7761 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7762 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7763 (thread_db_load_search): Update.
7764 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7765 td_ta_set_event and td_ta_event_getmsg.
7766
6598661d
PA
77672016-07-26 Pedro Alves <palves@redhat.com>
7768
7769 PR server/20414
7770 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7771 of unsigned long for 64-bit registers and use uint32_t instead of
7772 unsigned int for 32-bit registers.
7773
9cf12d57
PA
77742016-07-26 Pedro Alves <palves@redhat.com>
7775
7776 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7777 to 'ptrace'.
7778
305450ed
TT
77792016-07-21 Tom Tromey <tom@tromey.com>
7780
7781 * configure: Rebuild.
7782
2583da7c
YQ
77832016-07-21 Yao Qi <yao.qi@linaro.org>
7784
7785 * mem-break.c (find_gdb_breakpoint): Cast bp to
7786 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7787
21536b36
YQ
77882016-07-21 Yao Qi <yao.qi@linaro.org>
7789
7790 * server.c (handle_v_requests): Support s and S actions
7791 if target_supports_software_single_step return true.
7792
8901d193
YQ
77932016-07-21 Yao Qi <yao.qi@linaro.org>
7794
7795 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7796 is resume_step, call maybe_hw_step.
7797 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7798 and unstop them.
7799 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7800 breakpoints or not.
7801 (proceed_one_lwp): If resume request is resume_step, install
7802 reinsert breakpoints and call maybe_hw_step.
7803
0e9a339e
YQ
78042016-07-21 Yao Qi <yao.qi@linaro.org>
7805
7806 * linux-low.c (proceed_one_lwp): Declare.
7807 (linux_resume_one_thread): Remove local variable 'step'.
7808 Lift code enqueue signal. Call proceed_one_lwp instead of
7809 linux_resume_one_lwp.
7810
4281b351
YQ
78112016-07-21 Yao Qi <yao.qi@linaro.org>
7812
7813 * linux-low.c (linux_resume_one_thread): Call
7814 enqueue_pending_signal.
7815
984a2c04
YQ
78162016-07-21 Yao Qi <yao.qi@linaro.org>
7817
7818 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7819 * inferiors.c (do_restore_current_thread_cleanup): New function.
7820 (make_cleanup_restore_current_thread): Likewise.
7821 * linux-low.c (install_software_single_step_breakpoints): Call
7822 make_cleanup_restore_current_thread. Switch current_thread to
7823 thread.
7824
bec903c9
YQ
78252016-07-21 Yao Qi <yao.qi@linaro.org>
7826
7827 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7828 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7829 (clone_one_breakpoint): Likewise.
7830 (delete_reinsert_breakpoints): Change parameter to thread.
7831 Callers updated.
7832 (has_reinsert_breakpoints): Likewise.
7833 (uninsert_reinsert_breakpoints): Likewise.
7834 (reinsert_reinsert_breakpoints): Likewise.
7835 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7836 (delete_reinsert_breakpoints): Likewise.
7837 (reinsert_reinsert_breakpoints): Likewise.
7838 (uninsert_reinsert_breakpoints): Likewise.
7839 (has_reinsert_breakpoints): Likewise.
7840
63c40ec7
YQ
78412016-07-21 Yao Qi <yao.qi@linaro.org>
7842
7843 * inferiors.c (get_thread_process): Make parameter const.
7844 * inferiors.h (get_thread_process): Update declaration.
7845 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7846 Add new parameters child_thread and parent_thread. Callers
7847 updated.
7848 * mem-break.h (clone_all_breakpoints): Update declaration.
7849
9aa76cd0
YQ
78502016-07-21 Yao Qi <yao.qi@linaro.org>
7851
7852 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7853 <command_list, handler>: Remove.
7854 (struct gdb_breakpoint): New.
7855 (struct other_breakpoint): New.
7856 (struct reinsert_breakpoint): New.
7857 (is_gdb_breakpoint): New function.
7858 (any_persistent_commands): Update command_list if
7859 is_gdb_breakpoint returns true.
7860 (set_breakpoint): Create breakpoints according to their types.
7861 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7862 (set_gdb_breakpoint_1): Likewise.
7863 (set_gdb_breakpoint): Likewise.
7864 (clear_breakpoint_conditions): Change parameter type to
7865 'struct gdb_breakpoint *'.
7866 (clear_breakpoint_commands): Likewise.
7867 (clear_breakpoint_conditions_and_commands): Likewise.
7868 (add_condition_to_breakpoint): Likewise.
7869 (add_breakpoint_condition): Likewise.
7870 (add_commands_to_breakpoint): Likewise.
7871 (check_breakpoints): Check other_breakpoint.
7872 (clone_one_breakpoint): Clone breakpopint according to its type.
7873 * mem-break.h (struct gdb_breakpoint): Declare.
7874 (set_gdb_breakpoint): Update declaration.
7875 (clear_breakpoint_conditions_and_commands): Likewise.
7876 (add_breakpoint_condition): Likewise.
7877 (add_breakpoint_commands): Likewise.
7878 * server.c (process_point_options): Change parameter type to
7879 'struct gdb_breakpoint *'.
7880
811f8301
YQ
78812016-07-21 Yao Qi <yao.qi@linaro.org>
7882
7883 * mem-break.c (set_breakpoint_at): Rename it to ...
7884 (set_breakpoint_type_at): ... it.
7885 (set_breakpoint_at): Call set_breakpoint_type_at.
7886 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7887 * mem-break.h (set_breakpoint_at): Update comments.
7888
b1c51e36
CLT
78892016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7890
7891 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7892 to buf parameter.
7893 (nios2_store_gregset): Likewise.
7894
ced2dffb
PA
78952016-07-01 Pedro Alves <palves@redhat.com>
7896 Antoine Tremblay <antoine.tremblay@ericsson.com>
7897
7898 * linux-low.c: Change interface to take the target lwp_info
7899 pointer directly and return void. Handle detaching from a zombie
7900 thread.
7901 (linux_detach_lwp_callback): New function.
7902 (linux_detach): Detach from the leader thread after detaching from
7903 the clone threads.
7904
2ac09a5b
YQ
79052016-06-28 Yao Qi <yao.qi@linaro.org>
7906
7907 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7908 for variable new_offset.
7909 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7910 (aarch64_ftrace_insn_reloc_cb): Likewise.
7911 (aarch64_ftrace_insn_reloc_tb): Likewise.
7912 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7913 PRIx64 instead of PRIx32.
7914
79e7fd4f
YQ
79152016-06-28 Yao Qi <yao.qi@linaro.org>
7916
7917 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7918 (the_low_target): Install arm_get_syscall_trapinfo.
7919
061fc021
YQ
79202016-06-28 Yao Qi <yao.qi@linaro.org>
7921
7922 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7923 function.
7924 (the_low_target): Install aarch64_get_syscall_trapinfo.
7925
4cc32bec
YQ
79262016-06-28 Yao Qi <yao.qi@linaro.org>
7927
7928 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7929 Callers updated.
7930 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7931 Remove parameter sysno.
7932 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7933 sysret.
7934
782c1122
AA
79352016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7936
7937 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7938 (s390_emit_ne_goto): Likewise.
7939 (s390_emit_lt_goto): Likewise.
7940 (s390_emit_le_goto): Likewise.
7941 (s390_emit_gt_goto): Likewise.
7942 (s390_emit_ge_goto): Likewise.
7943 (s390x_emit_eq_goto): Likewise.
7944 (s390x_emit_ne_goto): Likewise.
7945 (s390x_emit_lt_goto): Likewise.
7946 (s390x_emit_le_goto): Likewise.
7947 (s390x_emit_gt_goto): Likewise.
7948 (s390x_emit_ge_goto): Likewise.
7949 (s390_emit_ops_impl): Mark variable static.
7950 (s390x_emit_ops): Likewise.
7951
2e7b624b
YQ
79522016-06-17 Yao Qi <yao.qi@linaro.org>
7953
7954 * linux-low.c (handle_extended_wait): Call
7955 uninsert_reinsert_breakpoints for the parent process. Remove
7956 reinsert breakpoints from the child process. Reinsert them to
7957 the parent process when vfork is done.
7958 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7959 (reinsert_reinsert_breakpoints): New function.
7960 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7961 (reinsert_reinsert_breakpoints): Declare.
7962
8a81c5d7
YQ
79632016-06-17 Yao Qi <yao.qi@linaro.org>
7964
7965 * linux-low.c (handle_extended_wait): If the parent is doing
7966 step-over, remove the reinsert breakpoints from the forked child.
7967
f50bf8e5
YQ
79682016-06-17 Yao Qi <yao.qi@linaro.org>
7969
7970 * linux-low.c (unsuspend_all_lwps): Declare.
7971 (linux_low_filter_event): If thread exited, call finish_step_over.
7972 If step-over is finished, unsuspend other threads.
7973
8376a3cb
YQ
79742016-06-17 Yao Qi <yao.qi@linaro.org>
7975
7976 * linux-low.c (linux_resume_one_lwp_throw): Assert
7977 has_reinsert_breakpoints returns false.
7978 * mem-break.c (delete_disabled_breakpoints): Assert
7979 bp type isn't reinsert_breakpoint.
7980
f79b145d
YQ
79812016-06-17 Yao Qi <yao.qi@linaro.org>
7982
7983 * linux-low.c (maybe_hw_step): New function.
7984 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7985 (finish_step_over): Switch current_thread to lwp temporarily,
7986 and assert has_reinsert_breakpoints returns true.
7987 (proceed_one_lwp): Call maybe_hw_step.
7988 * mem-break.c (has_reinsert_breakpoints): New function.
7989 * mem-break.h (has_reinsert_breakpoints): Declare.
7990
0ae534d2
JT
79912016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7992
7993 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7994
fcdad592
YQ
79952016-05-17 Yao Qi <yao.qi@linaro.org>
7996
7997 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7998 instead of find_inferior.
7999
9e784964
YQ
80002016-05-05 Yao Qi <yao.qi@linaro.org>
8001
8002 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8003 Initialize res to zero.
8004
cf2ebb6e
YQ
80052016-05-05 Yao Qi <yao.qi@linaro.org>
8006
8007 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8008 to uint32_t.
8009
c1aebf87
UW
80102016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8011
8012 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8013 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8014 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8015
35fd2deb 80162016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8017 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8018
8019 * tracepoint.c (write_inferior_int8): New function.
8020 (cmd_qtenable_disable): Write enable flag using
8021 write_inferior_int8.
8022
484b3c32
YQ
80232016-04-25 Yao Qi <yao.qi@linaro.org>
8024
8025 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8026 (need_step_over_p): Return zero if the LWP has pending signals
8027 can be delivered on software single step target.
8028
85ba7d86
YQ
80292016-04-25 Yao Qi <yao.qi@linaro.org>
8030
8031 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8032 return instead of error.
8033
3539aa13
YQ
80342016-04-22 Yao Qi <yao.qi@linaro.org>
8035
8036 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8037 to 23.
8038
5b061e98
YQ
80392016-04-22 Yao Qi <yao.qi@linaro.org>
8040
8041 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8042 signal when stepping over breakpoint with software single
8043 step.
8044
3451269c
PA
80452016-04-21 Pedro Alves <palves@redhat.com>
8046
8047 * linux-s390-low.c (s390_collect_ptrace_register)
8048 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8049 add casts.
8050 (s390_check_regset): Use void * instead of gdb_byte *.
8051
a2358508
PA
80522016-04-20 Pedro Alves <palves@redhat.com>
8053
8054 * configure: Renegerate.
8055
6885166d
YQ
80562016-04-20 Yao Qi <yao.qi@linaro.org>
8057
8058 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8059 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8060 number 16.
8061 (arm_store_gregset): Likewise.
8062
2b863f51
WT
80632016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8064
8065 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8066 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8067 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8068 (amd64-avx-mpx-linux.c): New rules.
8069 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8070 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8071 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8072 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8073 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8074 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8075 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8076 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8077 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8078 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8079 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8080 * linux-x86-low.c (x86_linux_read_description): Add case for
8081 X86_XSTATE_AVX_MPX_MASK.
8082 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8083 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8084 init_registers_i386_avx_mpx_linux.
8085 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8086 (initialize_low_tracepoint): Call
8087 init_registers_i386_avx_mpx_linux.
8088 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8089 (initialize_low_tracepoint): Call
8090 init_registers_amd64_avx_mpx_linux.
8091 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8092 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8093 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8094 declarations.
8095
9b30624b
PA
80962016-04-18 Pedro Alves <palves@redhat.com>
8097
8098 * configure: Regenerate.
8099
45e3745e
AT
81002016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8101
8102 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8103 (aarch64_emit_sub): Likewise.
8104
2afc13ff
PA
81052016-04-12 Pedro Alves <palves@redhat.com>
8106
8107 * utils.c (prepare_to_throw_exception): Delete.
8108
6e774b13
SM
81092016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8110
8111 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8112
4dca19f8
MK
81132016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8114
8115 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8116
d0a9981f
MK
81172016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8118
8119 * linux-aarch64-ipa.c: Add <elf.h> include.
8120 * linux-ppc-ipa.c: Add <elf.h> include.
8121 * linux-s390-ipa.c: Add <elf.h> include.
8122
252db07e
MK
81232016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8124
8125 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8126 (get_raw_reg_ptr): Likewise.
8127 (get_trace_state_variable_value_ptr): Likewise.
8128 (set_trace_state_variable_value_ptr): Likewise.
8129 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8130 char *.
8131
14e2b6d9
MK
81322016-03-31 Wei-cheng Wang <cole945@gmail.com>
8133 Marcin Kościelnicki <koriakin@0x04.net>
8134
8135 PR/17221
8136 * linux-ppc-low.c (emit_insns): New function.
8137 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8138 (ppc_emit_prologue): New function.
8139 (ppc_emit_epilogue): New function.
8140 (ppc_emit_add): New function.
8141 (ppc_emit_sub): New function.
8142 (ppc_emit_mul): New function.
8143 (ppc_emit_lsh): New function.
8144 (ppc_emit_rsh_signed): New function.
8145 (ppc_emit_rsh_unsigned): New function.
8146 (ppc_emit_ext): New function.
8147 (ppc_emit_zero_ext): New function.
8148 (ppc_emit_log_not): New function.
8149 (ppc_emit_bit_and): New function.
8150 (ppc_emit_bit_or): New function.
8151 (ppc_emit_bit_xor): New function.
8152 (ppc_emit_bit_not): New function.
8153 (ppc_emit_equal): New function.
8154 (ppc_emit_less_signed): New function.
8155 (ppc_emit_less_unsigned): New function.
8156 (ppc_emit_ref): New function.
8157 (ppc_emit_const): New function.
8158 (ppc_emit_reg): New function.
8159 (ppc_emit_pop): New function.
8160 (ppc_emit_stack_flush): New function.
8161 (ppc_emit_swap): New function.
8162 (ppc_emit_stack_adjust): New function.
8163 (ppc_emit_call): New function.
8164 (ppc_emit_int_call_1): New function.
8165 (ppc_emit_void_call_2): New function.
8166 (ppc_emit_if_goto): New function.
8167 (ppc_emit_goto): New function.
8168 (ppc_emit_eq_goto): New function.
8169 (ppc_emit_ne_goto): New function.
8170 (ppc_emit_lt_goto): New function.
8171 (ppc_emit_le_goto): New function.
8172 (ppc_emit_gt_goto): New function.
8173 (ppc_emit_ge_goto): New function.
8174 (ppc_write_goto_address): New function.
8175 (ppc_emit_ops_impl): New static variable.
8176 (ppc64v1_emit_prologue): New function.
8177 (ppc64v2_emit_prologue): New function.
8178 (ppc64_emit_epilogue): New function.
8179 (ppc64_emit_add): New function.
8180 (ppc64_emit_sub): New function.
8181 (ppc64_emit_mul): New function.
8182 (ppc64_emit_lsh): New function.
8183 (ppc64_emit_rsh_signed): New function.
8184 (ppc64_emit_rsh_unsigned): New function.
8185 (ppc64_emit_ext): New function.
8186 (ppc64_emit_zero_ext): New function.
8187 (ppc64_emit_log_not): New function.
8188 (ppc64_emit_bit_and): New function.
8189 (ppc64_emit_bit_or): New function.
8190 (ppc64_emit_bit_xor): New function.
8191 (ppc64_emit_bit_not): New function.
8192 (ppc64_emit_equal): New function.
8193 (ppc64_emit_less_signed): New function.
8194 (ppc64_emit_less_unsigned): New function.
8195 (ppc64_emit_ref): New function.
8196 (ppc64_emit_const): New function.
8197 (ppc64v1_emit_reg): New function.
8198 (ppc64v2_emit_reg): New function.
8199 (ppc64_emit_pop): New function.
8200 (ppc64_emit_stack_flush): New function.
8201 (ppc64_emit_swap): New function.
8202 (ppc64v1_emit_call): New function.
8203 (ppc64v2_emit_call): New function.
8204 (ppc64v1_emit_int_call_1): New function.
8205 (ppc64v2_emit_int_call_1): New function.
8206 (ppc64v1_emit_void_call_2): New function.
8207 (ppc64v2_emit_void_call_2): New function.
8208 (ppc64_emit_if_goto): New function.
8209 (ppc64_emit_eq_goto): New function.
8210 (ppc64_emit_ne_goto): New function.
8211 (ppc64_emit_lt_goto): New function.
8212 (ppc64_emit_le_goto): New function.
8213 (ppc64_emit_gt_goto): New function.
8214 (ppc64_emit_ge_goto): New function.
8215 (ppc64v1_emit_ops_impl): New static variable.
8216 (ppc64v2_emit_ops_impl): New static variable.
8217 (ppc_emit_ops): New function.
8218 (linux_low_target): Wire in ppc_emit_ops.
8219
a2174ba4
MK
82202016-03-31 Wei-cheng Wang <cole945@gmail.com>
8221 Marcin Kościelnicki <koriakin@0x04.net>
8222
8223 PR/17221
8224 * Makefile.in: Add powerpc-*-ipa.o
8225 * configure.srv: Add ipa_obj for powerpc*-linux.
8226 * linux-ppc-ipa.c: New file.
8227 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8228 includes.
8229 (PPC_FIELD): New macro.
8230 (PPC_SEXT): New macro.
8231 (PPC_OP6): New macro.
8232 (PPC_BO): New macro.
8233 (PPC_LI): New macro.
8234 (PPC_BD): New macro.
8235 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8236 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8237 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8238 (ppc_get_thread_area): New function.
8239 (is_elfv2_inferior): New function.
8240 (gen_ds_form): New function.
8241 (GEN_STD): New macro.
8242 (GEN_STDU): New macro.
8243 (GEN_LD): New macro.
8244 (GEN_LDU): New macro.
8245 (gen_d_form): New function.
8246 (GEN_ADDI): New macro.
8247 (GEN_ADDIS): New macro.
8248 (GEN_LI): New macro.
8249 (GEN_LIS): New macro.
8250 (GEN_ORI): New macro.
8251 (GEN_ORIS): New macro.
8252 (GEN_LWZ): New macro.
8253 (GEN_STW): New macro.
8254 (GEN_STWU): New macro.
8255 (gen_xfx_form): New function.
8256 (GEN_MFSPR): New macro.
8257 (GEN_MTSPR): New macro.
8258 (GEN_MFCR): New macro.
8259 (GEN_MTCR): New macro.
8260 (GEN_SYNC): New macro.
8261 (GEN_LWSYNC): New macro.
8262 (gen_x_form): New function.
8263 (GEN_OR): New macro.
8264 (GEN_MR): New macro.
8265 (GEN_LWARX): New macro.
8266 (GEN_STWCX): New macro.
8267 (GEN_CMPW): New macro.
8268 (gen_md_form): New function.
8269 (GEN_RLDICL): New macro.
8270 (GEN_RLDICR): New macro.
8271 (gen_i_form): New function.
8272 (GEN_B): New macro.
8273 (GEN_BL): New macro.
8274 (gen_b_form): New function.
8275 (GEN_BNE): New macro.
8276 (GEN_LOAD): New macro.
8277 (GEN_STORE): New macro.
8278 (gen_limm): New function.
8279 (gen_atomic_xchg): New function.
8280 (gen_call): New function.
8281 (ppc_relocate_instruction): New function.
8282 (ppc_install_fast_tracepoint_jump_pad): New function.
8283 (ppc_get_min_fast_tracepoint_insn_len): New function.
8284 (ppc_get_ipa_tdesc_idx): New function.
8285 (the_low_target): Wire in the new functions.
8286 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8287 tdescs.
8288 * linux-ppc-tdesc.h: New file.
8289
a13c4696
MK
82902016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8291
8292 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8293 (alloc_jump_pad_buffer): New function.
8294 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8295 (alloc_jump_pad_buffer): New function.
8296 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8297 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8298 (alloc_jump_pad_buffer): New function.
8299 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8300 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8301 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8302 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8303
1cda1512
MK
83042016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8305
8306 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8307 * linux-amd64-ipa.c: Likewise.
8308 * linux-i386-ipa.c: Likewise.
8309 * linux-s390-ipa.c: Likewise.
8310 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8311 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8312 set_trace_state_variable_value_ptr.
8313 (struct ipa_sym_addresses): Likewise.
8314 (symbol_list): Likewise.
8315 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8316 accessing gdb_collect directly.
8317 (gdb_collect_ptr_type): New typedef.
8318 (get_raw_reg_ptr_type): New typedef.
8319 (get_trace_state_variable_value_ptr_type): New typedef.
8320 (set_trace_state_variable_value_ptr_type): New typedef.
8321 (gdb_collect_ptr): New global.
8322 (get_raw_reg_ptr): New global.
8323 (get_trace_state_variable_value_ptr): New global.
8324 (set_trace_state_variable_value_ptr): New global.
8325 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8326 accessing get_raw_reg directly.
8327 (get_get_tsv_func_addr): Likewise for
8328 get_trace_state_variable_value_ptr.
8329 (get_set_tsv_func_addr): Likewise for
8330 set_trace_state_variable_value_ptr.
8331 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8332
72fb5488
SM
83332016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8334
8335 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8336
28170b88
MK
83372016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8338
8339 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8340 packets.
8341 (relocate_instruction): Remove own_buf.
8342 * server.c (own_buf): Make global.
8343 (handle_v_requests): Make global.
8344 * server.h (own_buf): New declaration.
8345 (handle_v_requests): New prototype.
8346
f39e8743
MK
83472016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8348
8349 PR 18377
8350 * linux-s390-low.c (add_insns): New function.
8351 (s390_emit_prologue): New function.
8352 (s390_emit_epilogue): New function.
8353 (s390_emit_add): New function.
8354 (s390_emit_sub): New function.
8355 (s390_emit_mul): New function.
8356 (s390_emit_lsh): New function.
8357 (s390_emit_rsh_signed): New function.
8358 (s390_emit_rsh_unsigned): New function.
8359 (s390_emit_ext): New function.
8360 (s390_emit_log_not): New function.
8361 (s390_emit_bit_and): New function.
8362 (s390_emit_bit_or): New function.
8363 (s390_emit_bit_xor): New function.
8364 (s390_emit_bit_not): New function.
8365 (s390_emit_equal): New function.
8366 (s390_emit_less_signed): New function.
8367 (s390_emit_less_unsigned): New function.
8368 (s390_emit_ref): New function.
8369 (s390_emit_if_goto): New function.
8370 (s390_emit_goto): New function.
8371 (s390_write_goto_address): New function.
8372 (s390_emit_litpool): New function.
8373 (s390_emit_const): New function.
8374 (s390_emit_call): New function.
8375 (s390_emit_reg): New function.
8376 (s390_emit_pop): New function.
8377 (s390_emit_stack_flush): New function.
8378 (s390_emit_zero_ext): New function.
8379 (s390_emit_swap): New function.
8380 (s390_emit_stack_adjust): New function.
8381 (s390_emit_set_r2): New function.
8382 (s390_emit_int_call_1): New function.
8383 (s390_emit_void_call_2): New function.
8384 (s390_emit_eq_goto): New function.
8385 (s390_emit_ne_goto): New function.
8386 (s390_emit_lt_goto): New function.
8387 (s390_emit_le_goto): New function.
8388 (s390_emit_gt_goto): New function.
8389 (s390_emit_ge_goto): New function.
8390 (s390x_emit_prologue): New function.
8391 (s390x_emit_epilogue): New function.
8392 (s390x_emit_add): New function.
8393 (s390x_emit_sub): New function.
8394 (s390x_emit_mul): New function.
8395 (s390x_emit_lsh): New function.
8396 (s390x_emit_rsh_signed): New function.
8397 (s390x_emit_rsh_unsigned): New function.
8398 (s390x_emit_ext): New function.
8399 (s390x_emit_log_not): New function.
8400 (s390x_emit_bit_and): New function.
8401 (s390x_emit_bit_or): New function.
8402 (s390x_emit_bit_xor): New function.
8403 (s390x_emit_bit_not): New function.
8404 (s390x_emit_equal): New function.
8405 (s390x_emit_less_signed): New function.
8406 (s390x_emit_less_unsigned): New function.
8407 (s390x_emit_ref): New function.
8408 (s390x_emit_if_goto): New function.
8409 (s390x_emit_const): New function.
8410 (s390x_emit_call): New function.
8411 (s390x_emit_reg): New function.
8412 (s390x_emit_pop): New function.
8413 (s390x_emit_stack_flush): New function.
8414 (s390x_emit_zero_ext): New function.
8415 (s390x_emit_swap): New function.
8416 (s390x_emit_stack_adjust): New function.
8417 (s390x_emit_int_call_1): New function.
8418 (s390x_emit_void_call_2): New function.
8419 (s390x_emit_eq_goto): New function.
8420 (s390x_emit_ne_goto): New function.
8421 (s390x_emit_lt_goto): New function.
8422 (s390x_emit_le_goto): New function.
8423 (s390x_emit_gt_goto): New function.
8424 (s390x_emit_ge_goto): New function.
8425 (s390_emit_ops): New function.
8426 (struct linux_target_ops): Fill in emit_ops hook.
8427
abd9baf9
MK
84282016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8429
8430 PR 18377
8431 * Makefile.in: Add s390 IPA files.
8432 * configure.srv: Build IPA for s390.
8433 * linux-s390-ipa.c: New file.
8434 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8435 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8436 (tdesc_s390_linux32): Likewise.
8437 (init_registers_s390_linux32v1): Likewise.
8438 (tdesc_s390_linux32v1): Likewise.
8439 (init_registers_s390_linux32v2): Likewise.
8440 (tdesc_s390_linux32v2): Likewise.
8441 (init_registers_s390_linux64): Likewise.
8442 (tdesc_s390_linux64): Likewise.
8443 (init_registers_s390_linux64v1): Likewise.
8444 (tdesc_s390_linux64v1): Likewise.
8445 (init_registers_s390_linux64v2): Likewise.
8446 (tdesc_s390_linux64v2): Likewise.
8447 (init_registers_s390_te_linux64): Likewise.
8448 (tdesc_s390_te_linux64): Likewise.
8449 (init_registers_s390_vx_linux64): Likewise.
8450 (tdesc_s390_vx_linux64): Likewise.
8451 (init_registers_s390_tevx_linux64): Likewise.
8452 (tdesc_s390_tevx_linux64): Likewise.
8453 (init_registers_s390x_linux64): Likewise.
8454 (tdesc_s390x_linux64): Likewise.
8455 (init_registers_s390x_linux64v1): Likewise.
8456 (tdesc_s390x_linux64v1): Likewise.
8457 (init_registers_s390x_linux64v2): Likewise.
8458 (tdesc_s390x_linux64v2): Likewise.
8459 (init_registers_s390x_te_linux64): Likewise.
8460 (tdesc_s390x_te_linux64): Likewise.
8461 (init_registers_s390x_vx_linux64): Likewise.
8462 (tdesc_s390x_vx_linux64): Likewise.
8463 (init_registers_s390x_tevx_linux64): Likewise.
8464 (tdesc_s390x_tevx_linux64): Likewise.
8465 (have_hwcap_s390_vx): New static variable.
8466 (s390_arch_setup): Fill have_hwcap_s390_vx.
8467 (s390_get_thread_area): New function.
8468 (s390_ft_entry_gpr_esa): New const.
8469 (s390_ft_entry_gpr_zarch): New const.
8470 (s390_ft_entry_misc): New const.
8471 (s390_ft_entry_fr): New const.
8472 (s390_ft_entry_vr): New const.
8473 (s390_ft_main_31): New const.
8474 (s390_ft_main_64): New const.
8475 (s390_ft_exit_fr): New const.
8476 (s390_ft_exit_vr): New const.
8477 (s390_ft_exit_misc): New const.
8478 (s390_ft_exit_gpr_esa): New const.
8479 (s390_ft_exit_gpr_zarch): New const.
8480 (append_insns): New function.
8481 (s390_relocate_instruction): New function.
8482 (s390_install_fast_tracepoint_jump_pad): New function.
8483 (s390_get_min_fast_tracepoint_insn_len): New function.
8484 (s390_get_ipa_tdesc_idx): New function.
8485 (struct linux_target_ops): Wire in the above functions.
8486 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8487 * linux-s390-tdesc.h: New file.
8488
a4105d04
MK
84892016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8490
8491 * linux-s390-low.c (s390_supports_tracepoints): New function.
8492 (struct linux_target_ops): Fill supports_tracepoints hook.
8493
35ac8b3e
YQ
84942016-03-18 Yao Qi <yao.qi@linaro.org>
8495
8496 * linux-low.c (lwp_signal_can_be_delivered): New function.
8497 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8498
94610ec4
YQ
84992016-03-18 Yao Qi <yao.qi@linaro.org>
8500
8501 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8502 0 if signal is enqueued. Remove 'signal' from one debugging
8503 message. Move one debugging message to some lines below.
8504 Remove code setting 'signal' to 0.
8505
80aea927
YQ
85062016-03-18 Yao Qi <yao.qi@linaro.org>
8507
8508 * linux-low.c (linux_low_filter_event): Remove redundant
8509 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8510
b04fd3be
MK
85112016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8512
8513 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8514 (struct linux_target_ops): Wire in the above.
8515
c40c8d4b
YQ
85162016-03-03 Yao Qi <yao.qi@linaro.org>
8517
8518 * linux-low.c: Update comments to start_step_over.
8519
0f8288ae
YQ
85202016-03-03 Yao Qi <yao.qi@linaro.org>
8521
8522 PR server/19736
8523 * linux-low.c (handle_extended_wait): Set child suspended
8524 if event_lwp->bp_reinsert isn't zero.
8525
fdbd04a8
YQ
85262016-03-02 Yao Qi <yao.qi@linaro.org>
8527
8528 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8529 enqueue_pending_signal.
8530
6896a8fa
MK
85312016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8532
8533 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8534 is actually loaded.
8535
ab503087
MK
85362016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8537
8538 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8539 (s390_regmap_3264) [!__s390x__]: New global.
8540 (s390_collect_ptrace_register): Skip map entries containing -1.
8541 (s390_supply_ptrace_register): Ditto.
8542 (s390_fill_gprs_high): New function.
8543 (s390_store_gprs_high): New function.
8544 (s390_regsets): Add NT_S390_HIGH_GPRS.
8545 (s390_get_hwcap): Enable on 31-bit.
8546 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8547 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8548 Detect NT_S390_HIGH_GPRS.
8549 (s390_usrregs_info_3264): Enable on 31-bit.
8550 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8551 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8552
ae91f625
MK
85532016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8554
8555 PR gdb/13808
8556 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8557 * configure.srv: Ditto.
8558 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8559 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8560 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8561 (init_registers_amd64_linux): Remove prototype.
8562 (tdesc_amd64_linux): Remove declaration.
8563 (get_ipa_tdesc): New function.
8564 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8565 initialize remaining tdescs.
8566 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8567 (init_registers_i386_linux): Remove prototype.
8568 (tdesc_i386_linux): Remove declaration.
8569 (get_ipa_tdesc): New function.
8570 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8571 initialize remaining tdescs.
8572 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8573 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8574 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8575 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8576 (x86_get_ipa_tdesc_idx): New function.
8577 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8578 * linux-x86-tdesc.h: New file.
8579 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8580 (target_get_ipa_tdesc_idx): New macro.
8581 * tracepoint.c (ipa_tdesc_idx): New macro.
8582 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8583 (symbol_list): Add ipa_tdesc_idx.
8584 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8585 (ipa_tdesc): Remove.
8586 (ipa_tdesc_idx): New variable.
8587 (get_context_regcache): Use get_ipa_tdesc.
8588 (gdb_collect): Ditto.
8589 (gdb_probe): Ditto.
8590 * tracepoint.h (get_ipa_tdesc): New prototype.
8591 (ipa_tdesc): Remove.
8592
e7ad2f14
PA
85932016-02-24 Pedro Alves <palves@redhat.com>
8594
8595 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8596 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8597 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8598 Factor out common code between the USE_SIGTRAP_SIGINFO and
8599 !USE_SIGTRAP_SIGINFO blocks.
8600 (linux_low_filter_event): Call save_stop_reason instead of
8601 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8602 Update comments.
8603 (linux_wait_1): Update comments.
8604
657f9cde
WW
86052016-02-24 Wei-cheng Wang <cole945@gmail.com>
8606
8607 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8608 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8609 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8610 ppc_insert_point, ppc_remove_point.
8611
b00b61e1
MK
86122016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8613
8614 * linux-s390-low.c (s390_supports_z_point_type): New function.
8615 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8616
553cb527
YQ
86172016-02-16 Yao Qi <yao.qi@linaro.org>
8618
8619 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8620 PC. Get pc from regcache_read_pc.
8621
a5652c21
YQ
86222016-02-12 Yao Qi <yao.qi@linaro.org>
8623
8624 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8625 or linux_get_pc_32bit.
8626 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8627
ed443b61
YQ
86282016-02-12 Yao Qi <yao.qi@linaro.org>
8629
8630 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8631 arm_linux_get_next_pcs_fixup.
8632
020ecd38
MK
86332016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8634
8635 * tracepoint.c (x_tracepoint_action_download): Change
8636 write_inferior_data_ptr to write_inferior_data_pointer.
8637 (cmd_qtstart): Likewise.
8638 (write_inferior_data_ptr): Remove.
8639 (download_agent_expr): Change write_inferior_data_ptr to
8640 write_inferior_data_pointer.
8641 (download_tracepoint_1): Likewise.
8642 (download_tracepoint): Likewise.
8643 (download_trace_state_variables): Likewise.
8644
7cae9051
WW
86452016-02-11 Wei-cheng Wang <cole945@gmail.com>
8646 Marcin Kościelnicki <koriakin@0x04.net>
8647
8648 * tracepoint.c (struct tracepoint_action_ops): Remove.
8649 (struct tracepoint_action): Remove ops.
8650 (m_tracepoint_action_download, r_tracepoint_action_download)
8651 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8652 size and offset accordingly.
8653 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8654 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8655 (tracepoint_action_send, tracepoint_action_download): New functions.
8656 Helpers for trace action handlers.
8657 (add_tracepoint_action): Remove setup actions ops.
8658 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8659
9f6a71b4
YQ
86602016-02-10 Yao Qi <yao.qi@linaro.org>
8661
8662 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8663
1e94266c
SM
86642016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8665
8666 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8667 to AC_OUTPUT.
8668 * configure: Regenerate.
8669
8adce034
SM
86702016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8671
8672 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8673 void * to gdb_byte *.
8674 * linux-low.c (siginfo_fixup): Likewise.
8675 (linux_xfer_siginfo): Likewise.
8676 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8677 Likewise.
8678 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8679
93813b37
WT
86802016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8681
8682 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8683 to srv_tgtobj.
8684 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8685 to srv_tgtobj.
8686 * linux-x86-low.c [__x86_64__]: Include
8687 "nat/amd64-linux-siginfo.h".
8688 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8689 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8690 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8691 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8692 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8693 (cpt_si_fd, si_timerid, si_overrun): Move from
8694 nat/amd64-linux-siginfo.c.
8695 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8696
8424cc97
SM
86972016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8698
8699 * server.c (skip_to_semicolon): Remove.
8700 (process_point_options): Use strchrnul instead of
8701 skip_to_semicolon.
8702
4d18591b
YQ
87032016-01-26 Yao Qi <yao.qi@linaro.org>
8704
8705 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8706 * linux-low.c (install_software_single_step_breakpoints): Don't
8707 call regcache_read_pc.
8708 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8709 argument pc.
8710
d8020970
YQ
87112016-01-26 Yao Qi <yao.qi@linaro.org>
8712
8713 * linux-low.c (install_software_single_step_breakpoints): Call
8714 regcache_read_pc instead of get_pc.
8715
8b207339
YQ
87162016-01-26 Yao Qi <yao.qi@linaro.org>
8717
8718 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8719 (unblock_async_io): Rename to ...
8720 (block_unblock_async_io): ... it. New function.
8721 (enable_async_io): Don't install SIGIO handler. Unblock it
8722 instead.
8723 (disable_async_io): Don't ignore SIGIO. Block it instead.
8724 (initialize_async_io): Install SIGIO handler. Don't call
8725 unblock_async_io.
8726
18879fef
YQ
87272016-01-26 Yao Qi <yao.qi@linaro.org>
8728
8729 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8730 first character is '\003', call *the_target->request_interrupt.
8731
a0f8e08a
YQ
87322016-01-25 Yao Qi <yao.qi@linaro.org>
8733
8734 * remote-utils.c (new_thread_notify): Remove.
8735 (dead_thread_notify): Likewise.
8736 * remote-utils.h (new_thread_notify): Remove declaration.
8737 (dead_thread_notify): Likewise.
8738
cc5fd9ab
MK
87392016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8740
8741 * gdb.trace/pending.exp: Fix expected message on continue.
8742
99e8eb11
MK
87432016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8744
8745 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8746 it works properly on big-endian machines where sizeof (CORE_ADDR)
8747 != sizeof (void *).
8748
a994041d
PA
87492016-01-21 Pedro Alves <palves@redhat.com>
8750
8751 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8752 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8753 * configure: Regenerate.
8754
f7a6a40d
YQ
87552016-01-21 Yao Qi <yao.qi@linaro.org>
8756
8757 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8758 is_thumb and set it according to CPSR saved on the stack.
8759 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8760 arm_sigreturn_next_pc.
8761
6f69e520
YQ
87622016-01-18 Yao Qi <yao.qi@linaro.org>
8763
8764 * linux-low.c (linux_set_pc_64bit): New function.
8765 (linux_get_pc_64bit): New function.
8766 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8767 Declare.
8768 * linux-sparc-low.c (debug_threads): Remove declaration.
8769 (sparc_get_pc): Remove.
8770 (the_low_target): Use linux_get_pc_64bit instead of
8771 sparc_get_pc.
8772 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8773 (the_low_target): Use linux_get_pc_64bit and
8774 linux_set_pc_64bit.
8775
276d4552
YQ
87762016-01-18 Yao Qi <yao.qi@linaro.org>
8777
8778 * linux-arm-low.c (debug_threads): Remove declaration.
8779 (arm_get_pc, arm_set_pc): Remove.
8780 (the_low_target): Use linux_get_pc_32bit and
8781 linux_set_pc_32bit.
8782 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8783 (the_low_target): Use linux_get_pc_32bit and
8784 linux_set_pc_32bit.
8785 * linux-cris-low.c (debug_threads): Remove declaration.
8786 (cris_get_pc, cris_set_pc,): Remove.
8787 (the_low_target): Use linux_get_pc_32bit and
8788 linux_set_pc_32bit.
8789 * linux-crisv32-low.c (debug_threads): Remove declaration.
8790 (cris_get_pc, cris_set_pc): Remove.
8791 (the_low_target): Use linux_get_pc_32bit and
8792 linux_set_pc_32bit.
8793 * linux-low.c: Include inttypes.h.
8794 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8795 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8796 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8797 (the_low_target): Use linux_get_pc_32bit and
8798 linux_set_pc_32bit.
8799 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8800 (the_low_target): Use linux_get_pc_32bit and
8801 linux_set_pc_32bit.
8802 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8803 (the_low_target): Use linux_get_pc_32bit and
8804 linux_set_pc_32bit.
8805 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8806 (the_low_target): Use linux_get_pc_32bit and
8807 linux_set_pc_32bit.
8808 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8809 (the_low_target): Use linux_get_pc_32bit and
8810 linux_set_pc_32bit.
8811
eb0edac8
GB
88122016-01-18 Gary Benson <gbenson@redhat.com>
8813
8814 * configure.ac (AC_FUNC_FORK): New check.
8815 * config.in: Regenerate.
8816 * configure: Likewise.
8817
1b451dda
YQ
88182016-01-14 Yao Qi <yao.qi@linaro.org>
8819
8820 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8821 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8822 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8823 arm_get_next_pcs_ctor.
8824
82075af2
JS
88252016-01-12 Josh Stone <jistone@redhat.com>
8826 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8827
8828 * inferiors.h: Include "gdb_vecs.h".
8829 (struct process_info): Add syscalls_to_catch.
8830 * inferiors.c (remove_process): Free syscalls_to_catch.
8831 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8832 syscall_return stops.
8833 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8834 * server.c (handle_general_set): Handle QCatchSyscalls.
8835 (handle_query): Report support for QCatchSyscalls.
8836 * target.h (struct target_ops): Add supports_catch_syscall.
8837 (target_supports_catch_syscall): New macro.
8838 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8839 (struct lwp_info): Add syscall_state.
8840 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8841 Maintain syscall_state and syscalls_to_catch across exec.
8842 (get_syscall_trapinfo): New function, proxy to the_low_target.
8843 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8844 (linux_low_filter_event): Toggle syscall_state entry/return for
8845 syscall traps, and set it ignored for all others.
8846 (gdb_catching_syscalls_p): New function.
8847 (gdb_catch_this_syscall_p): New function.
8848 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8849 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8850 (linux_supports_catch_syscall): New function.
8851 (linux_target_ops): Install it.
8852 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8853 (the_low_target): Install it.
8854
8f13a3ce
MF
88552016-01-12 Mike Frysinger <vapier@gentoo.org>
8856
8857 * acinclude.m4: Include new ../warning.m4 file.
8858 * configure: Regenerated.
8859 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8860
5b3da067
MF
88612016-01-12 Mike Frysinger <vapier@gentoo.org>
8862
8863 * ax.c (is_goto_target): Mark static.
8864 * linux-low.c (register_addr): Likewise.
8865 (linux_fetch_registers, linux_store_registers): Likewise.
8866 * mem-break.c (any_persistent_commands): Fix old prototype.
8867 (add_commands_to_breakpoint): Mark static.
8868 * regcache.c (find_register_by_name): Delete unused func.
8869 * remote-utils.c (hex_or_minus_one): Mark static.
8870 * server.c (monitor_show_help): Mark static.
8871 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8872 handle_v_requests): Likewise.
8873
bc504a31
PA
88742016-01-12 Pedro Alves <palves@redhat.com>
8875
8876 Remove use of the registered trademark symbol throughout.
8877
5a0dd67a
YQ
88782016-01-08 Yao Qi <yao.qi@linaro.org>
8879
8880 * remote-utils.c (getpkt): If c is '\003', call target hook
8881 request_interrupt.
8882
b2ca446f
YQ
88832016-01-06 Yao Qi <yao.qi@linaro.org>
8884
8885 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8886 linux-aarch32-low.c.
8887 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8888 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8889 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8890 (thumb2_breakpoint): Declare.
8891 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8892 linux-aarch32-low.h.
8893 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8894 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8895 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8896
edd88788
JB
88972016-01-01 Joel Brobecker <brobecker@adacore.com>
8898
8899 * gdbreplay.c (gdbreplay_version): Change copyright year in
8900 version message.
8901 * server.c (gdbserver_version): Likewise.
8902
65da7f14
PP
89032015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8904
8905 * server.c (crc32_table): Delete.
8906 (crc32): Use libiberty's xcrc32 function.
8907
4abd5ed2
JB
89082015-12-22 Joel Brobecker <brobecker@adacore.com>
8909
8910 * lynx-low.c (lynx_delete_thread_callback): New function.
8911 (lynx_mourn): Properly delete our process and all of its
8912 threads. Remove call to clear_inferiors.
8913
0e50fe5c
JB
89142015-12-22 Joel Brobecker <brobecker@adacore.com>
8915
8916 * target.c (thread_search_callback): Add check that
8917 the thread_stopped target callback is not NULL before
8918 calling it.
8919
35adc03f
YQ
89202015-12-21 Yao Qi <yao.qi@linaro.org>
8921
8922 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8923 arm breakpoint.
8924
bd2b2909
AT
89252015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8926
8927 * server.c (handle_query): Call target_supports_software_single_step.
8928
7fe5e27e
AT
89292015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8930
8931 * linux-low.c (single_step): New function.
8932 (linux_resume_one_lwp_throw): Call single_step.
8933 (start_step_over): Likewise.
8934
d9311bfa
AT
89352015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8936
8937 * Makefile.in (SFILES): Append arch/arm-linux.c,
8938 arch/arm-get-next-pcs.c.
8939 (arm-linux.o): New rule.
8940 (arm-get-next-pcs.o): New rule.
8941 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8942 arm-linux.o.
8943 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8944 to linux-aarch32-low.c.
8945 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8946 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8947 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8948 (thumb2_breakpoint_len): Likewise.
8949 (arm_is_thumb_mode): Make non-static.
8950 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8951 from linux-aarch32-low.c.
8952 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8953 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8954 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8955 (thumb2_breakpoint_len): Likewise.
8956 (arm_is_thumb_mode): New declaration.
8957 * linux-arm-low.c: Include arch/arm-linux.h
8958 aarch/arm-get-next-pcs.h, sys/syscall.h.
8959 (get_next_pcs_ops): New struct.
8960 (get_next_pcs_addr_bits_remove): New function.
8961 (get_next_pcs_is_thumb): New function.
8962 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8963 (arm_sigreturn_next_pc): Likewise.
8964 (get_next_pcs_syscall_next_pc): Likewise.
8965 (arm_gdbserver_get_next_pcs): Likewise.
8966 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8967 Initialize.
8968 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8969 * server.h: Include gdb_vecs.h.
8970
68ce2059
AT
89712015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8972
8973 * Makefile.in (SFILES): Append common/common-regcache.c.
8974 (OBS): Append common-regcache.o.
8975 (common-regcache.o): New rule.
8976 * regcache.c (init_register_cache): Initialize cache to
8977 REG_UNAVAILABLE.
8978 (regcache_raw_read_unsigned): New function.
8979 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8980 register_status enum.
8981
fa5308bd
AT
89822015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8983
8984 * linux-aarch64-low.c (the_low_targets): Rename
8985 breakpoint_reinsert_addr to get_next_pcs.
8986 * linux-arm-low.c (the_low_targets): Likewise.
8987 * linux-bfin-low.c (the_low_targets): Likewise.
8988 * linux-cris-low.c (the_low_targets): Likewise.
8989 * linux-crisv32-low.c (the_low_targets): Likewise.
8990 * linux-low.c (can_software_single_step): Likewise.
8991 (install_software_single_step_breakpoints): New function.
8992 (start_step_over): Use install_software_single_step_breakpoints.
8993 * linux-low.h: New CORE_ADDR vector.
8994 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8995 get_next_pcs.
8996 * linux-mips-low.c (the_low_targets): Likewise.
8997 * linux-nios2-low.c (the_low_targets): Likewise.
8998 * linux-sparc-low.c (the_low_targets): Likewise.
8999
4a6ed09b
PA
90002015-12-17 Pedro Alves <palves@redhat.com>
9001
9002 * linux-low.c (linux_kill_one_lwp): Remove references to
9003 LinuxThreads.
9004 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9005 to 'kill'.
9006 (linux_init_signals): Delete.
9007 (initialize_low): Adjust.
9008 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9009
7544db95
PA
90102015-12-16 Pedro Alves <palves@redhat.com>
9011
9012 * configure.ac (compiler warning flags): When testing a
9013 -Wno-foo option, check whether -Wfoo works instead.
9014 * configure: Regenerate.
9015
8020350c
DB
90162015-12-11 Don Breazeal <donb@codesourcery.com>
9017
9018 * server.c (process_serial_event): Don't exit from gdbserver
9019 in remote mode if there are still active inferiors.
9020
db91f502
YQ
90212015-12-11 Yao Qi <yao.qi@linaro.org>
9022
9023 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9024 arm_breakpoint_at if the process is 32-bit.
9025
b37a6290
YQ
90262015-12-11 Yao Qi <yao.qi@linaro.org>
9027
9028 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9029 arm breakpoint.
9030
17b1509a
YQ
90312015-12-07 Yao Qi <yao.qi@linaro.org>
9032
9033 * configure.srv: Append arm.o to srv_tgtobj for
9034 aarch64*-*-linux* target.
9035 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9036 from linux-arm-low.c.
9037 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9038 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9039 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9040 (thumb2_breakpoint_len): Likewise.
9041 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9042 (arm_breakpoint_kinds): Likewise.
9043 (arm_breakpoint_kind_from_pc): Likewise.
9044 (arm_sw_breakpoint_from_kind): Likewise.
9045 (arm_breakpoint_kind_from_current_state): Likewise.
9046 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9047 (arm_sw_breakpoint_from_kind): Declare.
9048 (arm_breakpoint_kind_from_current_state): Declare.
9049 (arm_breakpoint_at): Declare.
9050 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9051 arm_sw_breakpoint_from_kind if process is 32-bit.
9052 (aarch64_breakpoint_kind_from_pc): New function.
9053 (aarch64_breakpoint_kind_from_current_state): New function.
9054 (the_low_target): Initialize fields breakpoint_kind_from_pc
9055 and breakpoint_kind_from_current_state.
9056 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9057 linux-aarch32-low.c.
9058 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9059 (arm_breakpoint, arm_breakpoint_len): Likewise.
9060 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9061 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9062 (arm_is_thumb_mode): Likewise.
9063 (arm_breakpoint_at): Likewise.
9064 (arm_breakpoint_kind_from_pc): Likewise.
9065 (arm_sw_breakpoint_from_kind): Likewise.
9066 (arm_breakpoint_kind_from_current_state): Likewise.
9067
9068 Revert:
9069 2015-08-04 Yao Qi <yao.qi@linaro.org>
9070
9071 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9072 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9073 * server.c (extended_protocol): Remove "static".
9074 * server.h (extended_protocol): Declare it.
9075
ece66d65
JS
90762015-12-04 Josh Stone <jistone@redhat.com>
9077
9078 * target.h (struct target_ops) <arch_setup>: Rename to ...
9079 (struct target_ops) <post_create_inferior>: ... this.
9080 (target_arch_setup): Rename to ...
9081 (target_post_create_inferior): ... this, calling post_create_inferior.
9082 * server.c (start_inferior): Update target_arch_setup calls to
9083 target_post_create_inferior.
9084 * linux-low.c (linux_low_ptrace_options): Forward declare.
9085 (linux_arch_setup): Update its comment for general use.
9086 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9087 (struct linux_target_ops): Use linux_post_create_inferior.
9088 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9089 to post_create_inferior.
9090 * nto-low.c (struct nto_target_ops): Likewise.
9091 * spu-low.c (struct spu_target_ops): Likewise.
9092 * win32-low.c (struct win32_target_ops): Likewise.
9093
e58c48b4
AT
90942015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9095
9096 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9097
fbec8956
AT
90982015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9099
9100 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9101 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9102 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9103 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9104 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9105 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9106 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9107 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9108 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9109 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9110 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9111 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9112
9b4c5f87
AT
91132015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9114
9115 * linux-low.c (linux_look_up_symbols): Don't call
9116 linux_supports_traceclone.
9117 * linux-low.h (thread_db_init): Remove use_events argument.
9118 * thread-db.c (thread_db_use_event): Remove global variable.
9119 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9120 (struct thread_db) <td_create_bp>: Remove field.
9121 (thread_db_create_event): Remove function.
9122 (thread_db_enable_reporting): Likewise.
9123 (find_one_thread): Don't check for thread_db_use_events.
9124 (attach_thread): Likewise.
9125 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9126 (try_thread_db_load_1): Don't check for thread_db_use_events.
9127 (thread_db_init): Remove use_events argument and thread events
9128 handling.
9129 (remove_thread_event_breakpoints): Remove function.
9130 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9131
7d00775e
AT
91322015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9133
9134 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9135 New function.
9136 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9137 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9138 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9139 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9140 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9141 Initialize.
9142 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9143 New function.
9144 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9145 * linux-low.c (can_hardware_single_step): Use
9146 supports_hardware_single_step.
9147 (can_software_single_step): New function.
9148 (start_step_over): Call can_software_single_step.
9149 (linux_supports_hardware_single_step): New function.
9150 (struct target_ops) <supports_software_single_step>: Initialize.
9151 * linux-low.h (struct linux_target_ops)
9152 <supports_hardware_single_step>: Initialize.
9153 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9154 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9155 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9156 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9157 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9158 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9159 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9160 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9161 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9162 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9163 Initialize.
9164 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9165 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9166 Initialize.
9167 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9168 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9169 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9170 New function.
9171 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9172 * target.h (struct target_ops): <supports_software_single_step>:
9173 New field.
9174 (target_supports_software_single_step): New macro.
9175
2d97cd35
AT
91762015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9177
9178 * linux-low.c (linux_wait_1): Fix pc advance condition.
9179 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9180 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9181
769ef81f
AT
91822015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9183
9184 * linux-arm-low.c (arm_is_thumb_mode): New function.
9185 (arm_breakpoint_at): Use arm_is_thumb_mode.
9186 (arm_breakpoint_kind_from_current_state): New function.
9187 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9188 Initialize.
9189 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9190 (linux_breakpoint_kind_from_current_state): New function.
9191 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9192 * linux-low.h (struct linux_target_ops)
9193 <breakpoint_kind_from_current_state>: New field.
9194 * target.h (struct target_ops): Likewise.
9195 (target_breakpoint_kind_from_current_state): New macro.
9196
1bebeeca
PA
91972015-11-30 Pedro Alves <palves@redhat.com>
9198
9199 * linux-low.c (linux_resume): Wake up the event loop before
9200 returning.
9201
a67a9fae
PA
92022015-11-30 Pedro Alves <palves@redhat.com>
9203
9204 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9205 check.
9206 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9207 to -1.
9208 * target.c (struct thread_search): New structure.
9209 (thread_search_callback): New function.
9210 (prev_general_thread): New global.
9211 (prepare_to_access_memory, done_accessing_memory): New functions.
9212 * target.h (prepare_to_access_memory, done_accessing_memory):
9213 Replace macros with function declarations.
9214
f2faf941
PA
92152015-11-30 Pedro Alves <palves@redhat.com>
9216
9217 PR 14618
9218 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9219 report TARGET_WAITKIND_NO_RESUMED.
9220 * remote-utils.c (prepare_resume_reply): Handle
9221 TARGET_WAITKIND_NO_RESUMED.
9222 * server.c (report_no_resumed): New global.
9223 (handle_query) <qSupported>: Handle "no-resumed+". Report
9224 "no-resumed+" support.
9225 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9226 return error if the client doesn't support no-resumed events.
9227 (push_stop_notification): New function.
9228 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9229 events if the client supports them.
9230
a681f9c9
PA
92312015-11-30 Pedro Alves <palves@redhat.com>
9232
9233 * linux-low.c (thread_still_has_status_pending_p): Don't check
9234 vCont;t here.
9235 (lwp_resumed): New function.
9236 (status_pending_p_callback): Return early if the LWP is not
9237 supposed to be resumed.
9238
65706a29
PA
92392015-11-30 Pedro Alves <palves@redhat.com>
9240
9241 * linux-low.c (handle_extended_wait): Assert that the LWP's
9242 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9243 thread create events, leave the new child's status pending.
9244 (linux_low_filter_event): If GDB wants to hear about thread exit
9245 events, leave the LWP marked dead and don't delete it.
9246 (linux_wait_for_event_filtered): Don't check for thread exit.
9247 (filter_exit_event): New function.
9248 (linux_wait_1): Use it, when returning an exit event.
9249 (linux_resume_one_lwp_throw): Assert that the LWP's
9250 waitstatus is TARGET_WAITKIND_IGNORE.
9251 * remote-utils.c (prepare_resume_reply): Handle
9252 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9253 * server.c (report_thread_events): New global.
9254 (handle_general_set): Handle QThreadEvents.
9255 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9256 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9257 TARGET_WAITKIND_THREAD_EXITED.
9258 * server.h (report_thread_events): Declare.
9259
56cf4bed
PA
92602015-11-30 Pedro Alves <palves@redhat.com>
9261
9262 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9263 the thread's last_resume_kind was resume_stop.
9264
500c1d85
PA
92652015-11-30 Pedro Alves <palves@redhat.com>
9266
9267 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9268 before returning.
9269
de979965
PA
92702015-11-30 Pedro Alves <palves@redhat.com>
9271
9272 * server.c (handle_v_requests): Handle vCtrlC.
9273
34c65914
PA
92742015-11-30 Pedro Alves <palves@redhat.com>
9275
9276 * gdbthread.h (find_any_thread_of_pid): Declare.
9277 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9278 functions.
9279 * server.c (handle_query): If current_thread is NULL, look for
9280 another thread of the selected process.
9281
79efa585 92822015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9283 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9284
9285 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9286 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9287 name in reply.
9288 * target.h (struct target_ops) <thread_name>: New field.
9289 (target_thread_name): New macro.
9290
80d82c19
JB
92912015-11-23 Joel Brobecker <brobecker@adacore.com>
9292
9293 * regcache.h (regcache_invalidate_pid): Add declaration.
9294 * regcache.c (regcache_invalidate_pid): New function, extracted
9295 from regcache_invalidate.
9296 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9297 Add trivial documentation comment.
9298 * lynx-low.c: Use regcache_invalidate_pid instead of
9299 regcache_invalidate.
9300
64da5dd5
JB
93012015-11-23 Joel Brobecker <brobecker@adacore.com>
9302
9303 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9304 and Elf64_auxv_t if the target is Android.
9305
37ce4055
DE
93062015-11-22 Doug Evans <xdje42@gmail.com>
9307
9308 * target.h: #include <sys/types.h>.
9309
06e03fff
PA
93102015-11-19 Pedro Alves <palves@redhat.com>
9311
9312 * linux-low.c (linux_process_qsupported): Change prototype.
9313 Adjust.
9314 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9315 Change prototype.
9316 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9317 and adjust to loop over all features.
9318 * server.c (handle_query) <qSupported>: Adjust to call
9319 target_process_qsupported once, passing it a vector of unprocessed
9320 features.
9321 * target.h (struct target_ops) <process_qsupported>: Change
9322 prototype.
9323 (target_process_qsupported): Adjust.
9324
9a084706
PA
93252015-11-19 Pedro Alves <palves@redhat.com>
9326
9327 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9328 mode.
9329 * configure: Regenerate.
9330
dad44a1f
PA
93312015-11-19 Pedro Alves <palves@redhat.com>
9332
9333 * configure: Regenerate.
9334
231c0592
YQ
93352015-11-19 Yao Qi <yao.qi@linaro.org>
9336
9337 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9338 type to uint32_t.
9339
6c1c9a8b
YQ
93402015-11-19 Yao Qi <yao.qi@linaro.org>
9341
9342 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9343 (struct aarch64_operand): Move enum out.
9344
9caa3311
YQ
93452015-11-19 Yao Qi <yao.qi@linaro.org>
9346
9347 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9348 struct user_fpsimd_state *.
9349 (aarch64_store_fpregset): Likewise.
9350
6a69a054
YQ
93512015-11-19 Yao Qi <yao.qi@linaro.org>
9352
9353 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9354 struct user_pt_regs *.
9355 (aarch64_store_gregset): Likewise.
9356
1798301e
PA
93572015-11-18 Pedro Alves <palves@redhat.com>
9358
9359 * Makefile.in (all_object_files): Add $IPA_OBJS.
9360
ce7715e2
PA
93612015-11-17 Pedro Alves <palves@redhat.com>
9362
9363 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9364 GDB_SIGNAL_0 and gdb_signal_to_string.
9365
c0879059
PA
93662015-11-17 Pedro Alves <palves@redhat.com>
9367
9368 * win32-low.c (handle_output_debug_string): Remove parameter.
9369 (win32_kill): Remove our_status local and adjust call to
9370 handle_output_debug_string.
9371 (get_child_debug_event): Adjust call to
9372 handle_output_debug_string.
9373
1996e237
SM
93742015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9375
9376 * linux-mips-low.c (mips_fill_gregset): Add cast.
9377 (mips_store_gregset): Likewise.
9378 (mips_fill_fpregset): Likewise.
9379 (mips_store_fpregset): Likewise.
9380
cbec665b
SM
93812015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9382
9383 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9384 priv.
9385
eb3e3c67
SM
93862015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9387
9388 * linux-mips-low.c (mips_linux_new_thread): Change type of
9389 watch_type to enum target_hw_bp_type.
9390
171de4b8
SM
93912015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9392
9393 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9394 Change return type to arm_hwbp_type.
9395
04248ead
SM
93962015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9397
9398 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9399 (arm_store_gregset): Likewise.
9400 * linux-arm-low.c (arm_get_hwcap): Likewise.
9401 (arm_read_description): Likewise.
9402
04b3479c
SM
94032015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9404
9405 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9406
2bc84e8a
SM
94072015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9408
9409 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9410 (ppc_fill_vsxregset): Likewise.
9411 (ppc_store_vsxregset): Likewise.
9412 (ppc_fill_vrregset): Likewise.
9413 (ppc_store_vrregset): Likewise.
9414 (ppc_fill_evrregset): Likewise.
9415 (ppc_store_evrregset): Likewise.
9416
e6c5bb05
SM
94172015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9418
9419 * linux-ppc-low.c (ppc_usrregs_info): Remove
9420 forward-declaration.
9421 (ppc_arch_setup): Move lower in file.
9422
7ea45d72
SM
94232015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9424
9425 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9426 (ps_pdwrite): Likewise.
9427
69291610
HW
94282015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9429
9430 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9431 to after assert checks.
9432
b42945fd
SM
94332015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9434
9435 * proc-service.c (ps_pdread): Add/adjust casts.
9436 (ps_pdwrite): Add/adjust casts.
9437
d6f85c84
SM
94382015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9439
9440 * server.c (handle_search_memory_1): Cast return value of
9441 memmem.
9442
f98cd059
SM
94432015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9444
9445 * server.c (write_qxfer_response): Change type of data to
9446 gdb_byte *.
9447
d2412fa5
PA
94482015-10-29 Pedro Alves <palves@redhat.com>
9449
9450 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9451
c17414a2
PA
94522015-10-29 Pedro Alves <palves@redhat.com>
9453
9454 * tracepoint.c (clear_installed_tracepoints): Add casts.
9455
e053fbc4
PA
94562015-10-29 Pedro Alves <palves@redhat.com>
9457
9458 * server.c (handle_v_cont, process_serial_event): Add enum
9459 gdb_signal casts to signal parsing code.
9460
add67df8
PA
94612015-10-29 Pedro Alves <palves@redhat.com>
9462
9463 * linux-low.h (NULL_REGSET): Define.
9464 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9465 * linux-arm-low.c (arm_regsets): Likewise.
9466 * linux-crisv32-low.c (cris_regsets): Likewise.
9467 * linux-m68k-low.c (m68k_regsets): Likewise.
9468 * linux-mips-low.c (mips_regsets): Likewise.
9469 * linux-nios2-low.c (nios2_regsets): Likewise.
9470 * linux-ppc-low.c (ppc_regsets): Likewise.
9471 * linux-s390-low.c (s390_regsets): Likewise.
9472 * linux-sh-low.c (sh_regsets): Likewise.
9473 * linux-sparc-low.c (sparc_regsets): Likewise.
9474 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9475 * linux-tile-low.c (tile_regsets): Likewise.
9476 * linux-x86-low.c (x86_regsets): Likewise.
9477 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9478
50bc912a
PA
94792015-10-29 Pedro Alves <palves@redhat.com>
9480
9481 * linux-low.h (NULL_REGSET): Define.
9482 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9483 * linux-arm-low.c (arm_regsets): Likewise.
9484 * linux-crisv32-low.c (cris_regsets): Likewise.
9485 * linux-m68k-low.c (m68k_regsets): Likewise.
9486 * linux-mips-low.c (mips_regsets): Likewise.
9487 * linux-nios2-low.c (nios2_regsets): Likewise.
9488 * linux-ppc-low.c (ppc_regsets): Likewise.
9489 * linux-s390-low.c (s390_regsets): Likewise.
9490 * linux-sh-low.c (sh_regsets): Likewise.
9491 * linux-sparc-low.c (sparc_regsets): Likewise.
9492 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9493 * linux-tile-low.c (tile_regsets): Likewise.
9494 * linux-x86-low.c (x86_regsets): Likewise.
9495 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9496
682b2546
DE
94972015-10-26 Doug Evans <dje@google.com>
9498
9499 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9500
963843d4
DE
95012015-10-26 Doug Evans <dje@google.com>
9502
9503 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9504
d41401ac
DE
95052015-10-26 Doug Evans <dje@google.com>
9506
9507 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9508 for debug_printf.
9509 (attach_thread, find_new_threads_callback): Ditto.
9510
3db28855
AT
95112015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9512
9513 * mem-break.h (set_breakpoint_data): Remove.
9514
fb78e89c
AT
95152015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9516
9517 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9518 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9519 (initialize_low): Remove set_breakpoint_data call.
9520 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9521 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9522 (initialize_low): Remove set_breakpoint_data call.
9523 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9524 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9525 (initialize_low): Remove set_breakpoint_data call.
9526
2e6ee069
AT
95272015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9528
9529 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9530 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9531 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9532 * target.h (target_breakpoint_kind_from_pc): New macro.
9533
1652a986
AT
95342015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9535
9536 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9537 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9538 the default breakpoint kind.
9539
abeead09
AT
95402015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9541
9542 * linux-arm-low.c (arm_supports_z_point_type): Add software
9543 breakpoint support.
9544
b0b4b501
AT
95452015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9546
9547 * linux-arm-low.c: Refactor breakpoint definitions.
9548 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9549 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9550
8689682c
AT
95512015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9552
9553 * Makefile.in: Add arm.c/o.
9554 * configure.srv: Likewise.
9555 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9556 (arm_breakpoint_kind_from_pc): New function.
9557 (arm_sw_breakpoint_from_kind): Return proper kind.
9558 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9559
27165294
AT
95602015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9561
9562 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9563 removal.
9564 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9565 (struct raw_breakpoint) <size>: Remove.
9566 (struct raw_breakpoint) <kind>: Add.
9567 (bp_size): New function.
9568 (bp_opcode): Likewise.
9569 (find_raw_breakpoint_at): Adjust for kind.
9570 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9571 (remove_memory_breakpoint): Adjust for kind call bp_size.
9572 (set_raw_breakpoint_at): Adjust for kind.
9573 (set_breakpoint): Likewise.
9574 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9575 (delete_raw_breakpoint): Adjust for kind.
9576 (delete_breakpoint): Likewise.
9577 (find_gdb_breakpoint): Likewise.
9578 (set_gdb_breakpoint_1): Likewise.
9579 (set_gdb_breakpoint): Likewise.
9580 (delete_gdb_breakpoint_1): Likewise.
9581 (delete_gdb_breakpoint): Likewise.
9582 (uninsert_raw_breakpoint): Likewise.
9583 (reinsert_raw_breakpoint): Likewise.
9584 (set_breakpoint_data): Remove.
9585 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9586 (check_mem_read): Adjust for kind call bp_size.
9587 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9588 (clone_one_breakpoint): Adjust for kind.
9589 * mem-break.h (set_gdb_breakpoint): Likewise.
9590 (delete_gdb_breakpoint): Likewise.
9591 * server.c (process_serial_event): Likewise.
9592
dd373349
AT
95932015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9594
9595 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9596 (struct linux_target_ops) <breakpoint>: Remove.
9597 (struct linux_target_ops) <breakpoint_len>: Remove.
9598 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9599 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9600 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9601 (arm_sw_breakpoint_from_kind): New function.
9602 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9603 (struct linux_target_ops) <breakpoint>: Remove.
9604 (struct linux_target_ops) <breakpoint_len>: Remove.
9605 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9606 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9607 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9608 (struct linux_target_ops) <breakpoint>: Remove.
9609 (struct linux_target_ops) <breakpoint_len>: Remove.
9610 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9611 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9612 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9613 (struct linux_target_ops) <breakpoint>: Remove.
9614 (struct linux_target_ops) <breakpoint_len>: Remove.
9615 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9616 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9617 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9618 and sw_breakpoint_from_kind to increment the pc.
9619 (linux_breakpoint_kind_from_pc): New function.
9620 (linux_sw_breakpoint_from_kind): New function.
9621 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9622 (initialize_low): Call breakpoint_kind_from_pc and
9623 sw_breakpoint_from_kind to replace breakpoint_data/len.
9624 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9625 New field.
9626 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9627 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9628 (struct linux_target_ops) <breakpoint>: Remove.
9629 (struct linux_target_ops) <breakpoint_len>: Remove.
9630 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9631 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9632 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9633 (struct linux_target_ops) <breakpoint>: Remove.
9634 (struct linux_target_ops) <breakpoint_len>: Remove.
9635 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9636 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9637 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9638 (struct linux_target_ops) <breakpoint>: Remove.
9639 (struct linux_target_ops) <breakpoint_len>: Remove.
9640 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9641 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9642 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9643 (struct linux_target_ops) <breakpoint>: Remove.
9644 (struct linux_target_ops) <breakpoint_len>: Remove.
9645 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9646 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9647 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9648 (struct linux_target_ops) <breakpoint>: Remove.
9649 (struct linux_target_ops) <breakpoint_len>: Remove.
9650 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9651 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9652 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9653 (struct linux_target_ops) <breakpoint>: Remove.
9654 (struct linux_target_ops) <breakpoint_len>: Remove.
9655 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9656 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9657 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9658 (struct linux_target_ops) <breakpoint>: Remove.
9659 (struct linux_target_ops) <breakpoint_len>: Remove.
9660 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9661 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9662 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9663 (struct linux_target_ops) <breakpoint>: Remove.
9664 (struct linux_target_ops) <breakpoint_len>: Remove.
9665 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9666 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9667 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9668 (struct linux_target_ops) <breakpoint>: Remove.
9669 (struct linux_target_ops) <breakpoint_len>: Remove.
9670 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9671 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9672 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9673 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9674 (struct linux_target_ops) <breakpoint>: Remove.
9675 (struct linux_target_ops) <breakpoint_len>: Remove.
9676 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9677 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9678 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9679 (struct linux_target_ops) <breakpoint>: Remove.
9680 (struct linux_target_ops) <breakpoint_len>: Remove.
9681 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9682 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9683
4cd98a19
AT
96842015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9685
9686 * linux-cris-low.c (cris_get_pc): Remove void arg.
9687
774ee6d2
AR
96882015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9689
9690 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9691 variable name.
9692
833dcd29
AR
96932015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9694
9695 * inferiors.c (thread_pid_matches_callback): New function.
9696 (find_thread_process): New function.
9697 (remove_thread): Reset current_thread.
9698 (remove_process): Assert threads have been removed first.
9699
8d689ee5
YQ
97002015-10-15 Yao Qi <yao.qi@linaro.org>
9701
9702 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9703 if it is 3.
9704 (aarch64_remove_point): Likewise.
9705 * regcache.c (regcache_register_size): New function.
9706
1c2e1515
YQ
97072015-10-12 Yao Qi <yao.qi@linaro.org>
9708
9709 * linux-aarch64-low.c: Update all callers as emit_load_store
9710 is renamed to aarch64_emit_load_store.
9711
e1c587c3
YQ
97122015-10-12 Yao Qi <yao.qi@linaro.org>
9713
9714 * linux-aarch64-low.c: Update all callers of function renaming
9715 from emit_insn to aarch64_emit_insn.
9716
b6542f81
YQ
97172015-10-12 Yao Qi <yao.qi@linaro.org>
9718
9719 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9720 arch/aarch64-insn.h.
9721 (struct aarch64_memory_operand): Likewise.
9722 (ENCODE): Likewise.
9723 (emit_insn): Move to arch/aarch64-insn.c.
9724 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9725 (emit_load_store): Move to arch/aarch64-insn.c.
9726 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9727 (can_encode_int32): Remove.
9728
246994ce
YQ
97292015-10-12 Yao Qi <yao.qi@linaro.org>
9730
9731 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9732 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9733 (aarch64_relocate_instruction): Likewise.
9734 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9735 (struct aarch64_insn_visitor): Likewise.
9736
0badd99f
YQ
97372015-10-12 Yao Qi <yao.qi@linaro.org>
9738
9739 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9740 (struct aarch64_insn_visitor): New.
9741 (struct aarch64_insn_relocation_data): New.
9742 (aarch64_ftrace_insn_reloc_b): New function.
9743 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9744 (aarch64_ftrace_insn_reloc_cb): Likewise.
9745 (aarch64_ftrace_insn_reloc_tb): Likewise.
9746 (aarch64_ftrace_insn_reloc_adr): Likewise.
9747 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9748 (aarch64_ftrace_insn_reloc_others): Likewise.
9749 (visitor): New.
9750 (aarch64_relocate_instruction): Use visitor.
9751
dfaffe9d
YQ
97522015-10-12 Yao Qi <yao.qi@linaro.org>
9753
9754 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9755 int. Add argument buf.
9756 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9757 aarch64_relocate_instruction.
9758
70b439f0
YQ
97592015-10-12 Yao Qi <yao.qi@linaro.org>
9760
9761 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9762 argument insn. Remove local variable insn. Don't call
9763 target_read_uint32.
9764 (aarch64_install_fast_tracepoint_jump_pad): Call
9765 target_read_uint32.
9766
7781c06f
YQ
97672015-09-30 Yao Qi <yao.qi@linaro.org>
9768
9769 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9770 (emit_load_store_pair): Likewise.
9771
9a3c8263
SM
97722015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9773
9774 * dll.c (match_dll): Add cast(s).
9775 (unloaded_dll): Likewise.
9776 * linux-low.c (second_thread_of_pid_p): Likewise.
9777 (delete_lwp_callback): Likewise.
9778 (count_events_callback): Likewise.
9779 (select_event_lwp_callback): Likewise.
9780 (linux_set_resume_request): Likewise.
9781 * server.c (accumulate_file_name_length): Likewise.
9782 (emit_dll_description): Likewise.
9783 (handle_qxfer_threads_worker): Likewise.
9784 (visit_actioned_threads): Likewise.
9785 * thread-db.c (any_thread_of): Likewise.
9786 * tracepoint.c (same_process_p): Likewise.
9787 (match_blocktype): Likewise.
9788 (build_traceframe_info_xml): Likewise.
9789
224c3ddb
SM
97902015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9791
9792 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9793 assignment.
9794 (gdb_unparse_agent_expr): Likewise.
9795 * hostio.c (require_data): Likewise.
9796 (handle_pread): Likewise.
9797 * linux-low.c (disable_regset): Likewise.
9798 (fetch_register): Likewise.
9799 (store_register): Likewise.
9800 (get_dynamic): Likewise.
9801 (linux_qxfer_libraries_svr4): Likewise.
9802 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9803 (set_fast_tracepoint_jump): Likewise.
9804 (uninsert_fast_tracepoint_jumps_at): Likewise.
9805 (reinsert_fast_tracepoint_jumps_at): Likewise.
9806 (validate_inserted_breakpoint): Likewise.
9807 (clone_agent_expr): Likewise.
9808 * regcache.c (init_register_cache): Likewise.
9809 * remote-utils.c (putpkt_binary_1): Likewise.
9810 (decode_M_packet): Likewise.
9811 (decode_X_packet): Likewise.
9812 (look_up_one_symbol): Likewise.
9813 (relocate_instruction): Likewise.
9814 (monitor_output): Likewise.
9815 * server.c (handle_search_memory): Likewise.
9816 (handle_qxfer_exec_file): Likewise.
9817 (handle_qxfer_libraries): Likewise.
9818 (handle_qxfer): Likewise.
9819 (handle_query): Likewise.
9820 (handle_v_cont): Likewise.
9821 (handle_v_run): Likewise.
9822 (captured_main): Likewise.
9823 * target.c (write_inferior_memory): Likewise.
9824 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9825 * tracepoint.c (init_trace_buffer): Likewise.
9826 (add_tracepoint_action): Likewise.
9827 (add_traceframe): Likewise.
9828 (add_traceframe_block): Likewise.
9829 (cmd_qtdpsrc): Likewise.
9830 (cmd_qtdv): Likewise.
9831 (cmd_qtstatus): Likewise.
9832 (response_source): Likewise.
9833 (response_tsv): Likewise.
9834 (cmd_qtnotes): Likewise.
9835 (gdb_collect): Likewise.
9836 (initialize_tracepoint): Likewise.
9837
afbe19f8
PL
98382015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9839
9840 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9841 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9842 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9843 <NOP>: New.
9844 (enum aarch64_condition_codes): New enum.
9845 (w0): New static global.
9846 (fp): Likewise.
9847 (lr): Likewise.
9848 (struct aarch64_memory_operand) <type>: New
9849 MEMORY_OPERAND_POSTINDEX type.
9850 (postindex_memory_operand): New helper function.
9851 (emit_ret): New function.
9852 (emit_load_store_pair): New function, factored out of emit_stp
9853 with support for MEMORY_OPERAND_POSTINDEX.
9854 (emit_stp): Rewrite using emit_load_store_pair.
9855 (emit_ldp): New function.
9856 (emit_load_store): Likewise.
9857 (emit_ldr): Mention post-index instruction in comment.
9858 (emit_ldrh): New function.
9859 (emit_ldrb): New function.
9860 (emit_ldrsw): Mention post-index instruction in comment.
9861 (emit_str): Likewise.
9862 (emit_subs): New function.
9863 (emit_cmp): Likewise.
9864 (emit_and): Likewise.
9865 (emit_orr): Likewise.
9866 (emit_orn): Likewise.
9867 (emit_eor): Likewise.
9868 (emit_mvn): Likewise.
9869 (emit_lslv): Likewise.
9870 (emit_lsrv): Likewise.
9871 (emit_asrv): Likewise.
9872 (emit_mul): Likewise.
9873 (emit_sbfm): Likewise.
9874 (emit_sbfx): Likewise.
9875 (emit_ubfm): Likewise.
9876 (emit_ubfx): Likewise.
9877 (emit_csinc): Likewise.
9878 (emit_cset): Likewise.
9879 (emit_nop): Likewise.
9880 (emit_ops_insns): New helper function.
9881 (emit_pop): Likewise.
9882 (emit_push): Likewise.
9883 (aarch64_emit_prologue): New function.
9884 (aarch64_emit_epilogue): Likewise.
9885 (aarch64_emit_add): Likewise.
9886 (aarch64_emit_sub): Likewise.
9887 (aarch64_emit_mul): Likewise.
9888 (aarch64_emit_lsh): Likewise.
9889 (aarch64_emit_rsh_signed): Likewise.
9890 (aarch64_emit_rsh_unsigned): Likewise.
9891 (aarch64_emit_ext): Likewise.
9892 (aarch64_emit_log_not): Likewise.
9893 (aarch64_emit_bit_and): Likewise.
9894 (aarch64_emit_bit_or): Likewise.
9895 (aarch64_emit_bit_xor): Likewise.
9896 (aarch64_emit_bit_not): Likewise.
9897 (aarch64_emit_equal): Likewise.
9898 (aarch64_emit_less_signed): Likewise.
9899 (aarch64_emit_less_unsigned): Likewise.
9900 (aarch64_emit_ref): Likewise.
9901 (aarch64_emit_if_goto): Likewise.
9902 (aarch64_emit_goto): Likewise.
9903 (aarch64_write_goto_address): Likewise.
9904 (aarch64_emit_const): Likewise.
9905 (aarch64_emit_call): Likewise.
9906 (aarch64_emit_reg): Likewise.
9907 (aarch64_emit_pop): Likewise.
9908 (aarch64_emit_stack_flush): Likewise.
9909 (aarch64_emit_zero_ext): Likewise.
9910 (aarch64_emit_swap): Likewise.
9911 (aarch64_emit_stack_adjust): Likewise.
9912 (aarch64_emit_int_call_1): Likewise.
9913 (aarch64_emit_void_call_2): Likewise.
9914 (aarch64_emit_eq_goto): Likewise.
9915 (aarch64_emit_ne_goto): Likewise.
9916 (aarch64_emit_lt_goto): Likewise.
9917 (aarch64_emit_le_goto): Likewise.
9918 (aarch64_emit_gt_goto): Likewise.
9919 (aarch64_emit_ge_got): Likewise.
9920 (aarch64_emit_ops_impl): New static global variable.
9921 (aarch64_emit_ops): New target function, return
9922 &aarch64_emit_ops_impl.
9923 (struct linux_target_ops): Install it.
9924
bb903df0
PL
99252015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9926
9927 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9928 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9929 aarch64-ipa.o.
9930 * linux-aarch64-ipa.c: New file.
9931 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9932 and endian.h.
9933 (aarch64_get_thread_area): New target method.
9934 (extract_signed_bitfield): New helper function.
9935 (aarch64_decode_ldr_literal): New function.
9936 (enum aarch64_opcodes): New enum.
9937 (struct aarch64_register): New struct.
9938 (struct aarch64_operand): New struct.
9939 (x0): New static global.
9940 (x1): Likewise.
9941 (x2): Likewise.
9942 (x3): Likewise.
9943 (x4): Likewise.
9944 (w2): Likewise.
9945 (ip0): Likewise.
9946 (sp): Likewise.
9947 (xzr): Likewise.
9948 (aarch64_register): New helper function.
9949 (register_operand): Likewise.
9950 (immediate_operand): Likewise.
9951 (struct aarch64_memory_operand): New struct.
9952 (offset_memory_operand): New helper function.
9953 (preindex_memory_operand): Likewise.
9954 (enum aarch64_system_control_registers): New enum.
9955 (ENCODE): New macro.
9956 (emit_insn): New helper function.
9957 (emit_b): New function.
9958 (emit_bcond): Likewise.
9959 (emit_cb): Likewise.
9960 (emit_tb): Likewise.
9961 (emit_blr): Likewise.
9962 (emit_stp): Likewise.
9963 (emit_ldp_q_offset): Likewise.
9964 (emit_stp_q_offset): Likewise.
9965 (emit_load_store): Likewise.
9966 (emit_ldr): Likewise.
9967 (emit_ldrsw): Likewise.
9968 (emit_str): Likewise.
9969 (emit_ldaxr): Likewise.
9970 (emit_stxr): Likewise.
9971 (emit_stlr): Likewise.
9972 (emit_data_processing_reg): Likewise.
9973 (emit_data_processing): Likewise.
9974 (emit_add): Likewise.
9975 (emit_sub): Likewise.
9976 (emit_mov): Likewise.
9977 (emit_movk): Likewise.
9978 (emit_mov_addr): Likewise.
9979 (emit_mrs): Likewise.
9980 (emit_msr): Likewise.
9981 (emit_sevl): Likewise.
9982 (emit_wfe): Likewise.
9983 (append_insns): Likewise.
9984 (can_encode_int32_in): New helper function.
9985 (aarch64_relocate_instruction): New function.
9986 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9987 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9988 (struct linux_target_ops): Install aarch64_get_thread_area,
9989 aarch64_install_fast_tracepoint_jump_pad and
9990 aarch64_get_min_fast_tracepoint_insn_len.
9991
787749ea
PL
99922015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9993
9994 * Makefile.in (aarch64-insn.o): New rule.
9995 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9996
9812b2e6
YQ
99972015-09-21 Yao Qi <yao.qi@linaro.org>
9998
9999 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10000
18fe412b
YQ
100012015-09-21 Yao Qi <yao.qi@linaro.org>
10002
10003 * tracepoint.c (max_jump_pad_size): Remove.
10004
a0cc84cd
YQ
100052015-09-18 Yao Qi <yao.qi@linaro.org>
10006
10007 * linux-aarch64-low.c: Don't include sys/uio.h.
10008 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10009
d78908cf
WW
100102015-09-16 Wei-cheng Wang <cole945@gmail.com>
10011
10012 * tracepoint.c (eval_result_type): Change prototype.
10013 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10014
d57e0d50
PA
100152015-09-15 Pedro Alves <palves@redhat.com>
10016
10017 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10018 Check whether to report exec events instead of checking whether
10019 multiprocess is enabled.
10020
5a676acc
PA
100212015-09-15 Pedro Alves <palves@redhat.com>
10022
10023 PR remote/18965
10024 * remote-utils.c (prepare_resume_reply): Merge
10025 TARGET_WAITKIND_VFORK_DONE switch case with the
10026 TARGET_WAITKIND_FORKED case.
10027
7c5d0fad
YQ
100282015-09-15 Yao Qi <yao.qi@linaro.org>
10029
10030 * server.c (handle_query): Check string comparison using
10031 "else if" instead of "if".
10032
750ce8d1
YQ
100332015-09-15 Yao Qi <yao.qi@linaro.org>
10034
10035 * server.c (vCont_supported): New global variable.
10036 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10037 matches. Append ";vContSupported+" to own_buf.
10038 (handle_v_requests): Append ";s;S" to own_buf if target supports
10039 hardware single step or vCont_supported is false.
10040 (capture_main): Set vCont_supported to zero.
10041
70b90b91
YQ
100422015-09-15 Yao Qi <yao.qi@linaro.org>
10043
10044 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10045 it to ...
10046 (linux_supports_hardware_single_step): ... New function.
10047 (linux_target_ops): Update.
10048 * lynx-low.c (lynx_target_ops): Set field
10049 supports_hardware_single_step to target_can_do_hardware_single_step.
10050 * nto-low.c (nto_target_ops): Likewise.
10051 * spu-low.c (spu_target_ops): Likewise.
10052 * win32-low.c (win32_target_ops): Likewise.
10053 * target.c (target_can_do_hardware_single_step): New function.
10054 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10055 Remove. <supports_hardware_single_step>: New field.
10056 (target_supports_conditional_breakpoints): Remove.
10057 (target_supports_hardware_single_step): New macro.
10058 (target_can_do_hardware_single_step): Declare.
10059 * server.c (handle_query): Use target_supports_hardware_single_step
10060 instead of target_supports_conditional_breakpoints.
10061
ade90bde
YQ
100622015-09-15 Yao Qi <yao.qi@linaro.org>
10063
10064 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10065 function.
10066 (struct linux_target_ops the_low_target): Install
10067 aarch64_linux_siginfo_fixup.
10068
94585166
DB
100692015-09-11 Don Breazeal <donb@codesourcery.com>
10070 Luis Machado <lgustavo@codesourcery.com>
10071
10072 * linux-low.c (linux_mourn): Static declaration.
10073 (linux_arch_setup): Move in front of
10074 handle_extended_wait.
10075 (linux_arch_setup_thread): New function.
10076 (handle_extended_wait): Handle exec events. Call
10077 linux_arch_setup_thread. Make event_lwp argument a
10078 pointer-to-a-pointer.
10079 (check_zombie_leaders): Do not check stopped threads.
10080 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10081 (linux_low_filter_event): Add lwp and thread for exec'ing
10082 non-leader thread if leader thread has been deleted.
10083 Refactor code into linux_arch_setup_thread and call it.
10084 Pass child lwp pointer by reference to handle_extended_wait.
10085 (linux_wait_for_event_filtered): Update comment.
10086 (linux_wait_1): Prevent clobbering exec event status.
10087 (linux_supports_exec_events): New function.
10088 (linux_target_ops) <supports_exec_events>: Initialize new member.
10089 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10090 new member.
10091 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10092 * server.c (report_exec_events): New global variable.
10093 (handle_query): Handle qSupported query for exec-events feature.
10094 (captured_main): Initialize report_exec_events.
10095 * server.h (report_exec_events): Declare new global variable.
10096 * target.h (struct target_ops) <supports_exec_events>: New
10097 member.
10098 (target_supports_exec_events): New macro.
10099 * win32-low.c (win32_target_ops) <supports_exec_events>:
10100 Initialize new member.
10101
0568462b
MM
101022015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10103
10104 * linux-low.c (linux_low_enable_btrace): Remove.
10105 (linux_target_ops): Replace linux_low_enable_btrace with
10106 linux_enable_btrace.
10107
39edd165
YQ
101082015-09-03 Yao Qi <yao.qi@linaro.org>
10109
10110 * linux-aarch64-low.c (aarch64_insert_point): Call
10111 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10112 returns true.
10113
1db33b5a
UW
101142015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10115
10116 * linux-low.c (check_stopped_by_breakpoint): Use
10117 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10118
ab290430
PA
101192015-08-27 Pedro Alves <palves@redhat.com>
10120
10121 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10122
8d749320
SM
101232015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10124
6711b7f8
SM
10125 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10126 the XNEW-family equivalent.
8d749320
SM
10127 (compile_bytecodes): Likewise.
10128 * dll.c (loaded_dll): Likewise.
10129 * event-loop.c (append_callback_event): Likewise.
10130 (create_file_handler): Likewise.
10131 (create_file_event): Likewise.
10132 * hostio.c (handle_open): Likewise.
10133 * inferiors.c (add_thread): Likewise.
10134 (add_process): Likewise.
10135 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10136 * linux-arm-low.c (arm_new_process): Likewise.
10137 (arm_new_thread): Likewise.
10138 * linux-low.c (add_to_pid_list): Likewise.
10139 (linux_add_process): Likewise.
10140 (handle_extended_wait): Likewise.
10141 (add_lwp): Likewise.
10142 (enqueue_one_deferred_signal): Likewise.
10143 (enqueue_pending_signal): Likewise.
10144 (linux_resume_one_lwp_throw): Likewise.
10145 (linux_resume_one_thread): Likewise.
10146 (linux_read_memory): Likewise.
10147 (linux_write_memory): Likewise.
10148 * linux-mips-low.c (mips_linux_new_process): Likewise.
10149 (mips_linux_new_thread): Likewise.
10150 (mips_add_watchpoint): Likewise.
10151 * linux-x86-low.c (initialize_low_arch): Likewise.
10152 * lynx-low.c (lynx_add_process): Likewise.
10153 * mem-break.c (set_raw_breakpoint_at): Likewise.
10154 (set_breakpoint): Likewise.
10155 (add_condition_to_breakpoint): Likewise.
10156 (add_commands_to_breakpoint): Likewise.
10157 (clone_agent_expr): Likewise.
10158 (clone_one_breakpoint): Likewise.
10159 * regcache.c (new_register_cache): Likewise.
10160 * remote-utils.c (look_up_one_symbol): Likewise.
10161 * server.c (queue_stop_reply): Likewise.
10162 (start_inferior): Likewise.
10163 (queue_stop_reply_callback): Likewise.
10164 (handle_target_event): Likewise.
10165 * spu-low.c (fetch_ppc_memory): Likewise.
10166 (store_ppc_memory): Likewise.
10167 * target.c (set_target_ops): Likewise.
10168 * thread-db.c (thread_db_load_search): Likewise.
10169 (try_thread_db_load_1): Likewise.
10170 * tracepoint.c (add_tracepoint): Likewise.
10171 (add_tracepoint_action): Likewise.
10172 (create_trace_state_variable): Likewise.
10173 (cmd_qtdpsrc): Likewise.
10174 (cmd_qtro): Likewise.
10175 (add_while_stepping_state): Likewise.
10176 * win32-low.c (child_add_thread): Likewise.
10177 (get_image_name): Likewise.
10178
ed8b7b42
YQ
101792015-08-25 Yao Qi <yao.qi@linaro.org>
10180
10181 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10182
db3cb7cb
YQ
101832015-08-25 Yao Qi <yao.qi@linaro.org>
10184
10185 * Makefile.in (aarch64-linux.o): New rule.
10186 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10187 srv_tgtobj.
10188 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10189 (aarch64_init_debug_reg_state): Make it extern.
10190 (aarch64_linux_prepare_to_resume): Remove.
10191
f6011a1c
YQ
101922015-08-25 Yao Qi <yao.qi@linaro.org>
10193
10194 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10195 lwp_arch_private_info and ptid_of_lwp.
10196
88e2cf7e
YQ
101972015-08-25 Yao Qi <yao.qi@linaro.org>
10198
10199 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10200 Find proc_info by find_process_pid. All callers updated.
10201
5e35436e
YQ
102022015-08-25 Yao Qi <yao.qi@linaro.org>
10203
10204 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10205 Remove.
10206 (debug_reg_change_callback): Remove.
10207 (aarch64_notify_debug_reg_change): Remove.
10208
4a8a7965
YQ
102092015-08-25 Yao Qi <yao.qi@linaro.org>
10210
10211 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10212 Call current_lwp_ptid.
10213
32a271ee
YQ
102142015-08-25 Yao Qi <yao.qi@linaro.org>
10215
10216 * linux-aarch64-low.c (debug_reg_change_callback): Use
10217 debug_printf.
10218
0d51c8d7
YQ
102192015-08-25 Yao Qi <yao.qi@linaro.org>
10220
10221 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10222
31a43dd5
YQ
102232015-08-25 Yao Qi <yao.qi@linaro.org>
10224
10225 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10226
8ee52567
YQ
102272015-08-25 Yao Qi <yao.qi@linaro.org>
10228
10229 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10230 the code.
10231
ff3f0f45
YQ
102322015-08-25 Yao Qi <yao.qi@linaro.org>
10233
10234 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10235 Remove.
10236 (debug_reg_change_callback): Remove argument entry and add argument
10237 lwp. Remove local variable thread. Don't print thread id in the
10238 debugging output. Don't check whether pid of thread equals to pid.
10239 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10240 iterate_over_lwps instead find_inferior.
10241
3d40fbb5
PA
102422015-08-24 Pedro Alves <palves@redhat.com>
10243
10244 * inferiors.c (get_first_process): New function.
10245 * inferiors.h (get_first_process): New declaration.
10246 * remote-utils.c (read_ptid): Default to the first process in the
10247 list, instead of to the current thread's process.
10248
438e1e42
PA
102492015-08-24 Pedro Alves <palves@redhat.com>
10250
10251 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10252 * event-loop.c: Likewise.
10253 * remote-utils.c: Likewise.
10254 * tracepoint.c: Likewise.
10255
a8c6d4fc
PA
102562015-08-24 Pedro Alves <palves@redhat.com>
10257
10258 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10259 ptid_get_lwp.
10260
99b0bb12
PA
102612015-08-21 Pedro Alves <palves@redhat.com>
10262
10263 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10264 instead of literal 1.
10265
f8904751
PA
102662015-08-21 Pedro Alves <palves@redhat.com>
10267
10268 * tdesc.c (default_description): Explicitly zero-initialize.
10269
465a859e
PA
102702015-08-21 Pedro Alves <palves@redhat.com>
10271
10272 PR gdb/18749
10273 * inferiors.c (remove_thread): Discard any pending stop reply for
10274 this thread.
10275 * server.c (remove_all_on_match_pid): Rename to ...
10276 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10277 instead of a pid.
10278 (discard_queued_stop_replies): Change parameter to a ptid. Now
10279 extern.
10280 (handle_v_kill, kill_inferior_callback, captured_main)
10281 (process_serial_event): Adjust.
10282 * server.h (discard_queued_stop_replies): Declare.
10283
f0db101d
PA
102842015-08-21 Pedro Alves <palves@redhat.com>
10285
10286 * linux-low.c (wait_for_sigstop): Always switch to no thread
10287 selected if the previously current thread dies.
10288 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10289 process instead of the current thread's.
10290 * remote-utils.c (input_interrupt): Don't check if there's no
10291 current thread.
10292 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10293 current thread to the general thread fails, error out.
10294 (handle_qxfer_auxv, handle_qxfer_libraries)
10295 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10296 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10297 (handle_query): Check if there's a thread selected instead of
10298 checking whether there's any thread in the thread list.
10299 (handle_qxfer_threads, handle_qxfer_btrace)
10300 (handle_qxfer_btrace_conf): Don't error out early if there's no
10301 thread in the thread list.
10302 (handle_v_cont, myresume): Don't set the current thread to the
10303 continue thread.
10304 (process_serial_event) <Hg handling>: Also set thread_id if the
10305 previous general thread is still alive.
10306 (process_serial_event) <g/G handling>: If setting the current
10307 thread to the general thread fails, error out.
10308 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10309 thread's lwp instead of the current thread's.
10310 * target.c (set_desired_thread): If the desired thread was not
10311 found, leave the current thread pointing to NULL. Return an int
10312 (boolean) indicating success.
10313 * target.h (set_desired_thread): Change return type to int.
10314
40045d91
MF
103152015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10316
10317 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10318 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10319 #includes.
10320 (ps_get_thread_area): New function.
10321
45face3b
GB
103222015-08-19 Gary Benson <gbenson@redhat.com>
10323
10324 * hostio.c (handle_pread): Do not attempt to read more data
10325 than hostio_reply_with_data can fit in a packet.
10326
16d5f642
JB
103272015-08-18 Joel Brobecker <brobecker@adacore.com>
10328
10329 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10330
a738da3a
MF
103312015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10332
10333 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10334
33ebda9d
PA
103352015-08-06 Pedro Alves <palves@redhat.com>
10336
10337 * tracepoint.c (expr_eval_result): Now an int.
10338
a44892be
PA
103392015-08-06 Pedro Alves <palves@redhat.com>
10340
10341 * gdbthread.h (struct regcache): Forward declare.
10342 (struct thread_info) <regcache_data>: Now a struct regcache
10343 pointer.
10344 * inferiors.c (inferior_regcache_data)
10345 (set_inferior_regcache_data): Now work with struct regcache
10346 pointers.
10347 * inferiors.h (struct regcache): Forward declare.
10348 (inferior_regcache_data, set_inferior_regcache_data): Now work
10349 with struct regcache pointers.
10350 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10351 (free_register_cache_thread): Remove struct regcache pointer
10352 casts.
10353
608a1e46
PA
103542015-08-06 Pedro Alves <palves@redhat.com>
10355
10356 * server.c (captured_main): On error, print the exception message
10357 to stderr, and if run_once is set, throw a quit.
10358
f0ce0d3a
PA
103592015-08-06 Pedro Alves <palves@redhat.com>
10360
10361 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10362 the current thread.
10363
bf47e248
PA
103642015-08-06 Pedro Alves <palves@redhat.com>
10365
10366 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10367 reading beyond the passed in buffer length.
10368
b6b9ffcc
PL
103692015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10370
10371 * tracepoint.c (symbol_list) <required>: Remove.
10372
863d01bd
PA
103732015-08-06 Pedro Alves <palves@redhat.com>
10374
10375 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10376 count if stopping and suspending threads.
10377 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10378 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10379 (linux_detach): Complete an ongoing step-over.
10380 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10381 throughout.
10382 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10383 (linux_wait_1): If passing a signal to the inferior after
10384 finishing a step-over, unsuspend and re-resume all lwps. If we
10385 see a single-step event but the thread should be continuing, don't
10386 pass the trap to gdb.
10387 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10388 internal_error instead of gdb_assert.
10389 (enqueue_pending_signal): New function.
10390 (check_ptrace_stopped_lwp_gone): Add debug output.
10391 (start_step_over): Use internal_error instead of gdb_assert.
10392 (complete_ongoing_step_over): New function.
10393 (linux_resume_one_thread): Don't resume a suspended thread.
10394 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10395 it stepping.
10396
00db26fa
PA
103972015-08-06 Pedro Alves <palves@redhat.com>
10398
10399 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10400 (linux_thread_alive): Use lwp_is_marked_dead.
10401 (extended_event_reported): Delete.
10402 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10403 instead of extended_event_reported.
10404 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10405 as well.
10406 (lwp_is_marked_dead): New function.
10407 (lwp_running): Use lwp_is_marked_dead.
10408 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10409 comment.
10410
ad071a30
PA
104112015-08-06 Pedro Alves <palves@redhat.com>
10412
10413 * linux-low.c (linux_wait_1): Move fork event output out of the
10414 !report_to_gdb check. Pass event_child->waitstatus to
10415 target_waitstatus_to_string instead of ourstatus.
10416
524b57e6
YQ
104172015-08-04 Yao Qi <yao.qi@linaro.org>
10418
10419 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10420 if current_thread is 32 bit.
10421
6085d6f6
YQ
104222015-08-04 Yao Qi <yao.qi@linaro.org>
10423
10424 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10425 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10426 * server.c (extended_protocol): Remove "static".
10427 * server.h (extended_protocol): Declare it.
10428
8a7e4587
YQ
104292015-08-04 Yao Qi <yao.qi@linaro.org>
10430
10431 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10432 both aarch64 and aarch32.
10433 (aarch64_set_pc): Likewise.
10434
3b53ae99
YQ
104352015-08-04 Yao Qi <yao.qi@linaro.org>
10436
10437 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10438 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10439 arm-with-neon.xml to srv_xmlfiles.
10440 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10441 (is_64bit_tdesc): New function.
10442 (aarch64_linux_read_description): New function.
10443 (aarch64_arch_setup): Call aarch64_linux_read_description.
10444 (regs_info): Rename to regs_info_aarch64.
10445 (aarch64_regs_info): Return right regs_info.
10446 (initialize_low_arch): Call initialize_low_arch_aarch32.
10447
bd9e6534
YQ
104482015-08-04 Yao Qi <yao.qi@linaro.org>
10449
10450 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10451 * linux-aarch32-low.c: New file.
10452 * linux-aarch32-low.h: New file.
10453 * linux-arm-low.c (arm_fill_gregset): Move it to
10454 linux-aarch32-low.c.
10455 (arm_store_gregset): Likewise.
10456 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10457 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10458 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10459 (regs_info): Rename to regs_info_arm.
10460 (arm_regs_info): Return regs_info_aarch32 if
10461 have_ptrace_getregset is 1 and target description is
10462 arm_with_neon or arm_with_vfpv3.
10463 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10464 Call initialize_low_arch_aarch32 instead.
10465
ded48a5e
YQ
104662015-08-04 Yao Qi <yao.qi@linaro.org>
10467
10468 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10469 * linux-low.c: ... here.
10470 * linux-low.h (have_ptrace_getregset): Declare it.
10471
96e9210f
PA
104722015-08-04 Pedro Alves <palves@redhat.com>
10473
10474 * thread-db.c (struct thread_db): Use new typedefs.
10475 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10476 CHK calls.
10477 (disable_thread_event_reporting): Cast result of dlsym to
10478 destination function pointer type.
10479 (thread_db_mourn): Use td_ta_delete_ftype.
10480
af60a1ef
SL
104812015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10482
10483 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10484 arch variant.
10485 (CDX_BREAKPOINT): Define for R2.
10486 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10487 (the_low_target): Add comments.
10488
e8b41681
YQ
104892015-07-30 Yao Qi <yao.qi@linaro.org>
10490
10491 * linux-arm-low.c (arm_hwcap): Remove it.
10492 (arm_read_description): New local variable arm_hwcap. Don't
10493 set arm_hwcap to zero.
10494
89abb039
YQ
104952015-07-30 Yao Qi <yao.qi@linaro.org>
10496
10497 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10498 Use regcache->tdesc instead.
10499 (arm_store_wmmxregset): Likewise.
10500 (arm_fill_vfpregset): Likewise.
10501 (arm_store_vfpregset): Likewise.
10502
deca266c
YQ
105032015-07-30 Yao Qi <yao.qi@linaro.org>
10504
10505 * linux-arm-low.c: Include arch/arm.h.
10506 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10507 (arm_store_gregset): Likewise.
10508
aa58a496
SM
105092015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10510
10511 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10512 ptrace's 4th parameter.
10513
50904b25
YQ
105142015-07-27 Yao Qi <yao.qi@linaro.org>
10515
10516 * configure.srv (case aarch64*-*-linux*): Don't set
10517 srv_linux_usrregs.
10518
5826e159
PA
105192015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10520
10521 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10522 sys/ptrace.h.
10523 * linux-arm-low.c: Likewise.
10524 * linux-cris-low.c: Likewise.
10525 * linux-crisv32-low.c: Likewise.
10526 * linux-low.c: Likewise.
10527 * linux-m68k-low.c: Likewise.
10528 * linux-mips-low.c: Likewise.
10529 * linux-nios2-low.c: Likewise.
10530 * linux-s390-low.c: Likewise.
10531 * linux-sparc-low.c: Likewise.
10532 * linux-tic6x-low.c: Likewise.
10533 * linux-tile-low.c: Likewise.
10534 * linux-x86-low.c: Likewise.
10535
54019719
PA
105362015-07-24 Pedro Alves <palves@redhat.com>
10537
10538 * config.in: Regenerate.
10539 * configure: Regenerate.
10540
eb7aa561
PA
105412015-07-24 Pedro Alves <palves@redhat.com>
10542
10543 * acinclude.m4: Include ../ptrace.m4.
10544 * configure.ac: Call GDB_AC_PTRACE.
10545 * config.in, configure: Regenerate.
10546
55d7b841
YQ
105472015-07-24 Yao Qi <yao.qi@linaro.org>
10548
10549 * linux-low.c (linux_create_inferior): Remove setting to
10550 proc->priv->new_inferior.
10551 (linux_attach): Likewise.
10552 (linux_low_filter_event): Likewise.
10553 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10554
c06cbd92
YQ
105552015-07-24 Yao Qi <yao.qi@linaro.org>
10556
10557 * linux-low.c (linux_arch_setup): New function.
10558 (linux_low_filter_event): If proc->tdesc is NULL and
10559 proc->attached is true, call the_low_target.arch_setup.
10560 Otherwise, keep status pending, and return.
10561 (linux_resume_one_lwp_throw): Don't call get_pc if
10562 thread->while_stepping isn't NULL. Don't call
10563 get_thread_regcache if proc->tdesc is NULL.
10564 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10565 (linux_target_ops): Install arch_setup.
10566 * server.c (start_inferior): Call the_target->arch_setup.
10567 * target.h (struct target_ops) <arch_setup>: New field.
10568 (target_arch_setup): New marco.
10569 * lynx-low.c (lynx_target_ops): Update.
10570 * nto-low.c (nto_target_ops): Update.
10571 * spu-low.c (spu_target_ops): Update.
10572 * win32-low.c (win32_target_ops): Update.
10573
5ae3ebba
YQ
105742015-07-24 Yao Qi <yao.qi@linaro.org>
10575
10576 * linux-low.c (linux_add_process): Don't set
10577 proc->priv->new_inferior.
10578 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10579 (linux_attach): Likewise.
10580
eb97750b
YQ
105812015-07-24 Yao Qi <yao.qi@linaro.org>
10582
10583 * server.c (start_inferior): Code refactor.
10584
51aee833
YQ
105852015-07-24 Yao Qi <yao.qi@linaro.org>
10586
10587 * server.c (process_serial_event): Set general_thread.
10588
af1b22f3
YQ
105892015-07-21 Yao Qi <yao.qi@linaro.org>
10590
10591 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10592 aarch64_linux_get_debug_reg_capacity.
10593
554717a3
YQ
105942015-07-17 Yao Qi <yao.qi@linaro.org>
10595
10596 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10597 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10598 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10599 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10600 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10601 (AARCH64_HWP_ALIGNMENT): Likewise.
10602 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10603 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10604 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10605 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10606 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10607 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10608 (struct aarch64_debug_reg_state): Likewise.
10609 (struct arch_lwp_info): Likewise.
10610 (aarch64_align_watchpoint): Likewise.
10611 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10612 (aarch64_watchpoint_length): Likewise.
10613 (aarch64_point_encode_ctrl_reg): Likewise
10614 (aarch64_point_is_aligned): Likewise.
10615 (aarch64_align_watchpoint): Likewise.
10616 (aarch64_linux_set_debug_regs):
10617 (aarch64_dr_state_insert_one_point): Likewise.
10618 (aarch64_dr_state_remove_one_point): Likewise.
10619 (aarch64_handle_breakpoint): Likewise.
10620 (aarch64_handle_aligned_watchpoint): Likewise.
10621 (aarch64_handle_unaligned_watchpoint): Likewise.
10622 (aarch64_handle_watchpoint): Likewise.
10623
c67ca4de
YQ
106242015-07-17 Yao Qi <yao.qi@linaro.org>
10625
10626 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10627 and don't aarch64_get_debug_reg_state. All callers update.
10628 (aarch64_handle_aligned_watchpoint): Likewise.
10629 (aarch64_handle_unaligned_watchpoint): Likewise.
10630 (aarch64_handle_watchpoint): Likewise.
10631 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10632 (aarch64_remove_point): Likewise.
10633
25abf979
YQ
106342015-07-17 Yao Qi <yao.qi@linaro.org>
10635
10636 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10637 debug_printf.
10638 (aarch64_handle_unaligned_watchpoint): Likewise.
10639
db1ff28b
JK
106402015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10641
10642 Revert the previous 3 commits:
10643 Move gdb_regex* to common/
10644 Move linux_find_memory_regions_full & co.
10645 gdbserver build-id attribute generator
10646
700ca40f
JK
106472015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10648 Jan Kratochvil <jan.kratochvil@redhat.com>
10649
10650 gdbserver build-id attribute generator.
10651 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10652 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10653 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10654 (find_phdr): New.
10655 (get_dynamic): Use find_pdhr to traverse program headers.
10656 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10657 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10658 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10659 (get_hex_build_id): New.
10660 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10661 to reply XML document.
10662
9904185c
JK
106632015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10664 Jan Kratochvil <jan.kratochvil@redhat.com>
10665
10666 * target.c: Include target/target-utils.h and fcntl.h.
10667 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10668 (target_fileio_read_stralloc): New functions.
10669
6e5b4429
JK
106702015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10671
10672 * Makefile.in (OBS): Add gdb_regex.o.
10673 (gdb_regex.o): New.
10674 * config.in: Rebuilt.
10675 * configure: Rebuilt.
10676
ddc98fbf
JK
106772015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10678 Jan Kratochvil <jan.kratochvil@redhat.com>
10679
10680 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10681 * Makefile.in (OBS): Add target-utils.o.
10682 (linux-maps.o, target-utils.o): New.
10683 * configure.srv (srv_linux_obj): Add linux-maps.o.
10684
e57bb7a0
PL
106852015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10686
10687 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10688 function, return 1.
10689 (the_low_target): Install it.
10690
586b02a9
PA
106912015-07-14 Pedro Alves <palves@redhat.com>
10692
10693 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10694 Instead, ignore ECHILD, and throw an error for other errnos.
10695
58c1b36c
PA
106962015-07-10 Pedro Alves <palves@redhat.com>
10697
10698 * event-loop.c (struct callback_event) <data>: Change type to
10699 gdb_client_data instance instead of gdb_client_data pointer.
10700 (append_callback_event): Adjust.
10701
421530db
PL
107022015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10703
10704 * linux-aarch64-low.c: Add comments for each linux_target_ops
10705 method. Remove comments already covered in target_ops and
10706 linux_target_ops definitions.
10707 (the_low_target): Add comments for each unimplemented method.
10708
c2d65f38
YQ
107092015-07-09 Yao Qi <yao.qi@linaro.org>
10710
10711 * linux-aarch64-low.c (aarch64_regmap): Remove.
10712 (aarch64_usrregs_info): Remove.
10713 (regs_info): Set field usrregs to NULL.
10714
b20a6524
MM
107152015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10716
10717 * linux-low.c: Include "rsp-low.h"
10718 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10719 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10720 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10721 (handle_btrace_enable_pt): New.
10722 (handle_btrace_general_set): Support "pt".
10723 (handle_btrace_conf_general_set): Support "pt:size".
10724
96c97461
PL
107252015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10726
10727 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10728 Z_PACKET_SW_BP.
10729
37d66942
PL
107302015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10731
10732 * linux-aarch64-low.c: Remove comment about endianness.
10733 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10734 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10735 memcmp.
10736
dc06243f
GB
107372015-06-24 Gary Benson <gbenson@redhat.com>
10738
10739 * linux-i386-ipa.c (stdint.h): Do not include.
10740 * lynx-i386-low.c (stdint.h): Likewise.
10741 * lynx-ppc-low.c (stdint.h): Likewise.
10742 * mem-break.c (stdint.h): Likewise.
10743 * thread-db.c (stdint.h): Likewise.
10744 * tracepoint.c (stdint.h): Likewise.
10745 * win32-low.c (stdint.h): Likewise.
10746
124e13d9
SM
107472015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10748
10749 * server.c (write_qxfer_response): Update call to
10750 remote_escape_output.
10751
909c2cda
JK
107522015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10753 Jan Kratochvil <jan.kratochvil@redhat.com>
10754
10755 Merge multiple hex conversions.
10756 * gdbreplay.c (tohex): Rename to 'fromhex'.
10757 (logchar): Use fromhex.
10758
24c05f46
JK
107592015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10760
10761 * server.c (handle_qxfer_libraries): Set `version' attribute for
10762 <library-list>.
10763
14d2069a
GB
107642015-06-10 Gary Benson <gbenson@redhat.com>
10765
10766 * target.h (struct target_ops) <multifs_open>: New field.
10767 <multifs_unlink>: Likewise.
10768 <multifs_readlink>: Likewise.
10769 * linux-low.c (nat/linux-namespaces.h): New include.
10770 (linux_target_ops): Initialize the_target->multifs_open,
10771 the_target->multifs_unlink and the_target->multifs_readlink.
10772 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10773 * hostio.c (hostio_fs_pid): New static variable.
10774 (hostio_handle_new_gdb_connection): New function.
10775 (handle_setfs): Likewise.
10776 (handle_open): Use the_target->multifs_open as appropriate.
10777 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10778 (handle_readlink): Use the_target->multifs_readlink as
10779 appropriate.
10780 (handle_vFile): Handle vFile:setfs packets.
10781 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10782 after target_handle_new_gdb_connection.
10783
4b8b5e72
GB
107842015-06-10 Gary Benson <gbenson@redhat.com>
10785
10786 * configure.ac (AC_CHECK_FUNCS): Add setns.
10787 * config.in: Regenerate.
10788 * configure: Likewise.
10789 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10790 (linux-namespaces.o): New rule.
10791 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10792
3ac2e371
GB
107932015-06-09 Gary Benson <gbenson@redhat.com>
10794
10795 * hostio.c (handle_open): Process mode argument with
10796 fileio_to_host_mode.
10797
ca9b78ce
YQ
107982015-06-01 Yao Qi <yao.qi@linaro.org>
10799
10800 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10801 * linux-x86-low.c: Likewise.
10802
bfacd19d
DB
108032015-05-28 Don Breazeal <donb@codesourcery.com>
10804
10805 * linux-low.c (handle_extended_wait): Initialize
10806 thread_info.last_resume_kind for new fork children.
10807
452003ef
PA
108082015-05-15 Pedro Alves <palves@redhat.com>
10809
10810 * target.h (target_handle_new_gdb_connection): Rewrite using if
10811 wrapped in do/while.
10812
1041a03c
JB
108132015-05-14 Joel Brobecker <brobecker@adacore.com>
10814
10815 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10816 * configure, config.in: Regenerate.
10817 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10818 Declare typedef.
10819
c269dbdb
DB
108202015-05-12 Don Breazeal <donb@codesourcery.com>
10821
10822 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10823 PTRACE_EVENT_VFORK_DONE.
10824 (linux_low_ptrace_options, extended_event_reported): Add vfork
10825 events.
10826 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10827 and "vforkdone" for RSP 'T' Stop Reply Packet.
10828 * server.h (report_vfork_events): Declare
10829 global variable.
10830
3a8a0396
DB
108312015-05-12 Don Breazeal <donb@codesourcery.com>
10832
10833 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10834 (the_low_target) <new_fork>: Initialize new member.
10835 * linux-arm-low.c (arm_new_fork): New function.
10836 (the_low_target) <new_fork>: Initialize new member.
10837 * linux-low.c (handle_extended_wait): Call new target function
10838 new_fork.
10839 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10840 * linux-mips-low.c (mips_add_watchpoint): New function
10841 extracted from mips_insert_point.
10842 (the_low_target) <new_fork>: Initialize new member.
10843 (mips_linux_new_fork): New function.
10844 (mips_insert_point): Call mips_add_watchpoint.
10845 * linux-x86-low.c (x86_linux_new_fork): New function.
10846 (the_low_target) <new_fork>: Initialize new member.
10847
de0d863e
DB
108482015-05-12 Don Breazeal <donb@codesourcery.com>
10849
10850 * linux-low.c (handle_extended_wait): Implement return value,
10851 rename argument 'event_child' to 'event_lwp', handle
10852 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10853 (linux_low_ptrace_options): New function.
10854 (linux_low_filter_event): Call linux_low_ptrace_options,
10855 use different argument fo linux_enable_event_reporting,
10856 use return value from handle_extended_wait.
10857 (extended_event_reported): New function.
10858 (linux_wait_1): Call extended_event_reported and set
10859 status to report fork events.
10860 (linux_write_memory): Add pid to debug message.
10861 (reset_lwp_ptrace_options_callback): New function.
10862 (linux_handle_new_gdb_connection): New function.
10863 (linux_target_ops): Initialize new structure member.
10864 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10865 * lynx-low.c: Initialize new structure member.
10866 * remote-utils.c (prepare_resume_reply): Implement stop reason
10867 "fork" for "T" stop message.
10868 * server.c (handle_query): Call handle_new_gdb_connection.
10869 * server.h (report_fork_events): Declare global flag.
10870 * target.h (struct target_ops) <handle_new_gdb_connection>:
10871 New member.
10872 (target_handle_new_gdb_connection): New macro.
10873 * win32-low.c: Initialize new structure member.
10874
ddcbc397
DB
108752015-05-12 Don Breazeal <donb@codesourcery.com>
10876
10877 * mem-break.c (APPEND_TO_LIST): Define macro.
10878 (clone_agent_expr): New function.
10879 (clone_one_breakpoint): New function.
10880 (clone_all_breakpoints): New function.
10881 * mem-break.h: Declare new functions.
10882
89245bc0
DB
108832015-05-12 Don Breazeal <donb@codesourcery.com>
10884
10885 * linux-low.c (linux_supports_fork_events): New function.
10886 (linux_supports_vfork_events): New function.
10887 (linux_target_ops): Initialize new structure members.
10888 (initialize_low): Call linux_check_ptrace_features.
10889 * lynx-low.c (lynx_target_ops): Initialize new structure
10890 members.
10891 * server.c (report_fork_events, report_vfork_events):
10892 New global flags.
10893 (handle_query): Add new features to qSupported packet and
10894 response.
10895 (captured_main): Initialize new global variables.
10896 * target.h (struct target_ops) <supports_fork_events>:
10897 New member.
10898 <supports_vfork_events>: New member.
10899 (target_supports_fork_events): New macro.
10900 (target_supports_vfork_events): New macro.
10901 * win32-low.c (win32_target_ops): Initialize new structure
10902 members.
10903
835205d0
GB
109042015-05-12 Gary Benson <gbenson@redhat.com>
10905
10906 * server.c (handle_qxfer_exec_file): Use current process
10907 if annex is empty.
10908
21e94bd9
SL
109092015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10910
10911 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10912 Remove HAVE_PTRACE_GETREGS conditionals.
10913 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10914 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10915
45614f15
YQ
109162015-05-08 Yao Qi <yao.qi@linaro.org>
10917
10918 * linux-low.c (linux_supports_conditional_breakpoints): New
10919 function.
10920 (linux_target_ops): Install new target method.
10921 * lynx-low.c (lynx_target_ops): Install NULL hook for
10922 supports_conditional_breakpoints.
10923 * nto-low.c (nto_target_ops): Likewise.
10924 * spu-low.c (spu_target_ops): Likewise.
10925 * win32-low.c (win32_target_ops): Likewise.
10926 * server.c (handle_query): Check
10927 target_supports_conditional_breakpoints.
10928 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10929 New field.
10930 (target_supports_conditional_breakpoints): New macro.
10931
80ad801e
PA
109322015-05-06 Pedro Alves <palves@redhat.com>
10933
10934 PR server/18081
10935 * server.c (start_inferior): If the process exits, mourn it.
10936
819843c7
GB
109372015-04-21 Gary Benson <gbenson@redhat.com>
10938
10939 * hostio.c (fileio_open_flags_to_host): Factored out to
10940 fileio_to_host_openflags in common/fileio.c. Single use
10941 updated.
10942
a2d5a9d7
MF
109432015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10944
10945 * linux-xtensa-low.c (xtensa_fill_gregset)
10946 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10947 XCHAL_HAVE_LOOP.
10948
deb44829
MF
109492015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10950
10951 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10952 (regs_info): Replace usrregs pointer with NULL.
10953
e57f1de3
GB
109542015-04-17 Gary Benson <gbenson@redhat.com>
10955
10956 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10957 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10958 * server.c (handle_qxfer_exec_file): New function.
10959 (qxfer_packets): Add exec-file entry.
10960 (handle_query): Report qXfer:exec-file:read as supported packet.
10961
62828379
RN
109622015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10963
10964 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10965
b88bb450
GB
109662015-04-09 Gary Benson <gbenson@redhat.com>
10967
10968 * hostio-errno.c (errno_to_fileio_error): Remove function.
10969 Update caller to use remote_fileio_to_fio_error.
10970
c8f4bfdd
YQ
109712015-04-09 Yao Qi <yao.qi@linaro.org>
10972
10973 * linux-low.c (linux_insert_point): Call
10974 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10975 (linux_remove_point): Call remove_memory_breakpoint if type is
10976 raw_bkpt_type_sw.
10977 * linux-x86-low.c (x86_insert_point): Don't call
10978 insert_memory_breakpoint.
10979 (x86_remove_point): Don't call remove_memory_breakpoint.
10980
41f98f02
PA
109812015-04-01 Pedro Alves <palves@redhat.com>
10982 Cleber Rosa <crosa@redhat.com>
10983
10984 * server.c (gdbserver_usage): Reorganize and extend the usage
10985 message.
10986
2bf6fb9d
PA
109872015-03-24 Pedro Alves <palves@redhat.com>
10988
10989 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10990 output. Also dump TRAP_TRACE.
10991 (linux_low_filter_event): In debug output, distinguish a
10992 resume_stop SIGSTOP from a delayed SIGSTOP.
10993
369f6daa
GB
109942015-03-24 Gary Benson <gbenson@redhat.com>
10995
10996 * linux-x86-low.c (x86_linux_new_thread): Moved to
10997 nat/x86-linux.c.
10998 (x86_linux_prepare_to_resume): Likewise.
10999
8e5d4070
GB
110002015-03-24 Gary Benson <gbenson@redhat.com>
11001
11002 * Makefile.in (x86-linux-dregs.o): New rule.
11003 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11004 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11005 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11006 (x86_linux_dr_get): Likewise.
11007 (x86_linux_dr_set): Likewise.
11008 (update_debug_registers_callback): Likewise.
11009 (x86_linux_dr_set_addr): Likewise.
11010 (x86_linux_dr_get_addr): Likewise.
11011 (x86_linux_dr_set_control): Likewise.
11012 (x86_linux_dr_get_control): Likewise.
11013 (x86_linux_dr_get_status): Likewise.
11014 (x86_linux_update_debug_registers): Likewise.
11015
2b95d440
GB
110162015-03-24 Gary Benson <gbenson@redhat.com>
11017
11018 * linux-x86-low.c (x86_linux_update_debug_registers):
11019 New function, factored out from...
11020 (x86_linux_prepare_to_resume): ...this.
11021
14b0bc68
GB
110222015-03-24 Gary Benson <gbenson@redhat.com>
11023
11024 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11025 (x86_linux_dr_set): Likewise.
11026 (update_debug_registers_callback): Likewise.
11027 (x86_linux_dr_set_addr): Likewise.
11028 (x86_linux_dr_get_addr): Likewise.
11029 (x86_linux_dr_set_control): Likewise.
11030 (x86_linux_dr_get_control): Likewise.
11031 (x86_linux_dr_get_status): Likewise.
11032 (x86_linux_prepare_to_resume): Likewise.
11033
5dfe6ca8
GB
110342015-03-24 Gary Benson <gbenson@redhat.com>
11035
11036 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11037 Use perror_with_name. Pass string through gettext.
11038 (x86_linux_dr_set): Likewise.
11039
d33472ad
GB
110402015-03-24 Gary Benson <gbenson@redhat.com>
11041
11042 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11043 (x86_linux_dr_set_addr): ...this.
11044 (x86_dr_low_get_addr): Rename to...
11045 (x86_linux_dr_get_addr): ...this.
11046 (x86_dr_low_set_control): Rename to...
11047 (x86_linux_dr_set_control): ...this.
11048 (x86_dr_low_get_control): Rename to...
11049 (x86_linux_dr_get_control): ...this.
11050 (x86_dr_low_get_status): Rename to...
11051 (x86_linux_dr_get_status): ...this.
11052 (x86_dr_low): Update with new function names.
11053
4b134ca1
GB
110542015-03-24 Gary Benson <gbenson@redhat.com>
11055
11056 * Makefile.in (x86-linux.o): New rule.
11057 * configure.srv: Add x86-linux.o to relevant targets.
11058 * linux-low.c (lwp_set_arch_private_info): New function.
11059 (lwp_arch_private_info): Likewise.
11060 * linux-x86-low.c: Include nat/x86-linux.h.
11061 (arch_lwp_info): Removed structure.
11062 (update_debug_registers_callback):
11063 Use lwp_set_debug_registers_changed.
11064 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11065 and lwp_set_debug_registers_changed.
11066 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11067
34c703da
GB
110682015-03-24 Gary Benson <gbenson@redhat.com>
11069
11070 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11071 * linux-arm-low.c (arm_new_thread): Likewise.
11072 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11073 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11074 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11075 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11076
cff068da
GB
110772015-03-24 Gary Benson <gbenson@redhat.com>
11078
11079 * linux-low.c (ptid_of_lwp): New function.
11080 (lwp_is_stopped): Likewise.
11081 (lwp_stop_reason): Likewise.
11082 * linux-x86-low.c (update_debug_registers_callback):
11083 Use lwp_is_stopped.
11084 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11085 lwp_stop_reason.
11086
b2f7c7e8
GB
110872015-03-24 Gary Benson <gbenson@redhat.com>
11088
11089 * linux-low.h (linux_stop_lwp): Remove declaration.
11090
6d4ee8c6
GB
110912015-03-24 Gary Benson <gbenson@redhat.com>
11092
11093 * linux-low.h: Include nat/linux-nat.h.
11094 * linux-low.c (iterate_over_lwps_args): New structure.
11095 (iterate_over_lwps_filter): New function.
11096 (iterate_over_lwps): Likewise.
11097 * linux-x86-low.c (update_debug_registers_callback):
11098 Update signature to what iterate_over_lwps expects.
11099 Remove PID check that iterate_over_lwps now performs.
11100 (x86_dr_low_set_addr): Use iterate_over_lwps.
11101 (x86_dr_low_set_control): Likewise.
11102
70a0bb6b
GB
111032015-03-24 Gary Benson <gbenson@redhat.com>
11104
11105 * linux-x86-low.c (x86_debug_reg_state): New function.
11106 (x86_linux_prepare_to_resume): Use the above.
11107
7b669087
GB
111082015-03-24 Gary Benson <gbenson@redhat.com>
11109
11110 * linux-low.c (current_lwp_ptid): New function.
11111 * linux-x86-low.c: Include nat/linux-nat.h.
11112 (x86_dr_low_get_addr): Use current_lwp_ptid.
11113 (x86_dr_low_get_control): Likewise.
11114 (x86_dr_low_get_status): Likewise.
11115
eef49a3d
PA
111162015-03-20 Pedro Alves <palves@redhat.com>
11117
11118 * tracepoint.c (cmd_qtstatus): Make "str" const.
11119
b2333d22
PA
111202015-03-20 Pedro Alves <palves@redhat.com>
11121
11122 * server.c (handle_general_set): Make "req_str" const.
11123
23f238d3
PA
111242015-03-19 Pedro Alves <palves@redhat.com>
11125
11126 * linux-low.c (linux_resume_one_lwp): Rename to ...
11127 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11128 instead call perror_with_name.
11129 (check_ptrace_stopped_lwp_gone): New function.
11130 (linux_resume_one_lwp): Reimplement as wrapper around
11131 linux_resume_one_lwp_throw that swallows errors if the LWP is
11132 gone.
11133
91baf43f
PA
111342015-03-19 Pedro Alves <palves@redhat.com>
11135
11136 * linux-low.c (count_events_callback, select_event_lwp_callback):
11137 No longer check whether the thread has resume_stop as last resume
11138 kind.
11139
8bf3b159
PA
111402015-03-19 Pedro Alves <palves@redhat.com>
11141
11142 * linux-low.c (count_events_callback, select_event_lwp_callback):
11143 Use the lwp's status_pending_p field, not the thread's.
11144
b90fc188
PA
111452015-03-19 Pedro Alves <palves@redhat.com>
11146
11147 * linux-low.c (select_event_lwp_callback): Update comments to
11148 no longer mention SIGTRAP.
11149
464b0089
GB
111502015-03-18 Gary Benson <gbenson@redhat.com>
11151
11152 * server.c (handle_query): Do not report vFile:fstat as supported.
11153
aa9e327f
GB
111542015-03-11 Gary Benson <gbenson@redhat.com>
11155
11156 * hostio.c (sys/types.h): New include.
11157 (sys/stat.h): Likewise.
11158 (common-remote-fileio.h): Likewise.
11159 (handle_fstat): New function.
11160 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11161
791c0056
GB
111622015-03-11 Gary Benson <gbenson@redhat.com>
11163
11164 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11165 struct stat.st_blocks and struct stat.st_blksize.
11166 * configure: Regenerate.
11167 * config.in: Likewise.
11168 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11169 (OBS): Add common-remote-fileio.o.
11170 (common-remote-fileio.o): New rule.
11171
9a9df970
PA
111722015-03-09 Pedro Alves <palves@redhat.com>
11173
11174 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11175 'struct sockaddr' pointer in 'accept' call.
11176
9eb1356e
PA
111772015-03-09 Pedro Alves <palves@redhat.com>
11178
11179 Revert:
11180 2015-03-07 Pedro Alves <palves@redhat.com>
11181 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11182 or <winsock2.h> here. Instead include "gdb_socket.h".
11183 (remote_open): Use union gdb_sockaddr_u.
11184 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11185 or <winsock2.h> here. Instead include "gdb_socket.h".
11186 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11187 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11188 or <sys/un.h>.
11189 (init_named_socket, gdb_agent_helper_thread): Use union
11190 gdb_sockaddr_u.
11191
aac331e4
PA
111922015-03-07 Pedro Alves <palves@redhat.com>
11193
11194 * configure.ac (build_warnings): Move
11195 -Wdeclaration-after-statement to the C-specific set.
11196 * configure: Regenerate.
11197
366c75fc
PA
111982015-03-07 Pedro Alves <palves@redhat.com>
11199
11200 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11201 or <winsock2.h> here. Instead include "gdb_socket.h".
11202 (remote_open): Use union gdb_sockaddr_u.
11203 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11204 or <winsock2.h> here. Instead include "gdb_socket.h".
11205 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11206 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11207 or <sys/un.h>.
11208 (init_named_socket, gdb_agent_helper_thread): Use union
11209 gdb_sockaddr_u.
11210
492d29ea
PA
112112015-03-07 Pedro Alves <palves@redhat.com>
11212
11213 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11214 instead.
11215
60a191ed
YQ
112162015-03-06 Yao Qi <yao.qi@linaro.org>
11217
11218 * linux-aarch64-low.c (aarch64_insert_point): Use
11219 show_debug_regs as a boolean.
11220 (aarch64_remove_point): Likewise.
11221
f5771b1d
PA
112222015-03-05 Pedro Alves <palves@redhat.com>
11223
11224 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11225 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11226 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11227 * nto-low.c (nto_target_ops): Likewise.
11228 * spu-low.c (spu_target_ops): Likewise.
11229 * win32-low.c (win32_target_ops): Likewise.
11230
3e572f71
PA
112312015-03-04 Pedro Alves <palves@redhat.com>
11232
72f4393d 11233 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11234 Decide whether a breakpoint triggered based on the SIGTRAP's
11235 siginfo.si_code.
72f4393d
L
11236 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11237 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11238 (linux_low_filter_event): Check for breakpoints before checking
11239 watchpoints.
11240 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11241 siginfo.si_code.
72f4393d
L
11242 (linux_stopped_by_sw_breakpoint)
11243 (linux_supports_stopped_by_sw_breakpoint)
11244 (linux_stopped_by_hw_breakpoint)
11245 (linux_supports_stopped_by_hw_breakpoint): New functions.
11246 (linux_target_ops): Install new target methods.
3e572f71 11247
1ec68e26
PA
112482015-03-04 Pedro Alves <palves@redhat.com>
11249
11250 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11251 * server.c (swbreak_feature, hwbreak_feature): New globals.
11252 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11253 (captured_main): Clear swbreak_feature and hwbreak_feature.
11254 * server.h (swbreak_feature, hwbreak_feature): Declare.
11255 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11256 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11257 supports_stopped_by_hw_breakpoint>: New fields.
11258 (target_supports_stopped_by_sw_breakpoint)
11259 (target_stopped_by_sw_breakpoint)
11260 (target_supports_stopped_by_hw_breakpoint)
11261 (target_stopped_by_hw_breakpoint): Declare.
11262
15c66dd6
PA
112632015-03-04 Pedro Alves <palves@redhat.com>
11264
11265 enum lwp_stop_reason -> enum target_stop_reason
11266 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11267 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11268 (linux_wait_1, stuck_in_jump_pad_callback)
11269 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11270 (linux_stopped_by_watchpoint):
11271 * linux-low.h (enum lwp_stop_reason): Delete.
11272 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11273 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11274
98fc70d6
YQ
112752015-03-04 Yao Qi <yao.qi@linaro.org>
11276
11277 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11278
dd2ac174
GB
112792015-03-03 Gary Benson <gbenson@redhat.com>
11280
11281 * hostio.c (handle_vFile): Fix prefix lengths.
11282
d68e53f4
MM
112832015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11284
11285 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11286 ptr_bits.
11287
bf2d68ab
AA
112882015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11289
11290 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11291 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11292 (clean): Add "rm -f" for above C files.
11293 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11294 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11295 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11296 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11297 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11298 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11299 (init_registers_s390x_vx_linux64)
11300 (init_registers_s390x_tevx_linux64)
11301 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11302 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11303 declarations.
11304 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11305 (s390_store_vxrs_high): New functions.
11306 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11307 NT_S390_VXRS_HIGH.
11308 (s390_arch_setup): Add logic for selecting one of the new target
11309 descriptions. Activate the new vector regsets if applicable.
11310 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11311 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11312 and init_registers_s390x_tevx_linux64.
11313
c966a859
PA
113142015-03-01 Pedro Alves <palves@redhat.com>
11315
11316 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11317 parameter.
11318
4180215b
PA
113192015-02-27 Pedro Alves <palves@redhat.com>
11320
11321 * linux-x86-low.c (u_debugreg_offset): New function.
11322 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11323
749bab01
PA
113242015-02-27 Pedro Alves <palves@redhat.com>
11325
11326 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11327 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11328 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11329 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11330 (ps_lsetfpregs, ps_getpid)
11331 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11332 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11333 (ps_lsetxregs, ps_plog): Declare.
11334
3c14e5a3
PA
113352015-02-27 Pedro Alves <palves@redhat.com>
11336
11337 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11338 IP_AGENT_EXPORT_FUNC.
11339 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11340 IP_AGENT_EXPORT_FUNC.
11341 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11342 (IP_AGENT_EXPORT): Delete.
11343 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11344 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11345 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11346 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11347 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11348 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11349 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11350 (traceframe_read_count, traceframe_write_count)
11351 (traceframes_created, trace_state_variables, get_raw_reg)
11352 (get_trace_state_variable_value, set_trace_state_variable_value)
11353 (ust_loaded, helper_thread_id, cmd_buf): Use
11354 IPA_SYM_EXPORTED_NAME.
11355 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11356 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11357 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11358 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11359 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11360 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11361 EXTERN_C_PUSH/EXTERN_C_POP.
11362 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11363 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11364 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11365 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11366 (traceframe_write_count, traceframe_read_count)
11367 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11368 (about_to_request_buffer_space, get_trace_state_variable_value)
11369 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11370 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11371 EXTERN_C_PUSH/EXTERN_C_POP.
11372 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11373 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11374 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11375 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11376 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11377 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11378 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11379 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11380 Define.
11381 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11382 (IP_AGENT_EXPORT_VAR_DECL): Define.
11383 (tracing): Declare.
11384 (gdb_agent_get_raw_reg): Declare.
11385
fe978cb0
PA
113862015-02-27 Tom Tromey <tromey@redhat.com>
11387 Pedro Alves <palves@redhat.com>
11388
11389 Rename symbols whose names are reserved C++ keywords throughout.
11390
3bc3d82a
PA
113912015-02-27 Pedro Alves <palves@redhat.com>
11392
11393 * Makefile.in (COMPILER): New, get it from autoconf.
11394 (CXX): Get from autoconf instead.
11395 (COMPILE.pre): Use COMPILER.
11396 (CC-LD): Rename to ...
11397 (CC_LD): ... this. Use COMPILER.
11398 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11399 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11400 * acinclude.m4: Include build-with-cxx.m4.
11401 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11402 Disable -Werror by default if building in C++ mode.
11403 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11404 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11405 the C++ compiler. Save/restore CXXFLAGS too.
11406 * configure: Regenerate.
11407
07697489
PA
114082015-02-27 Pedro Alves <palves@redhat.com>
11409
11410 * acinclude.m4: Include libiberty.m4.
11411 * configure.ac: Call libiberty_INIT.
11412 * config.in, configure: Regenerate.
11413
9beb7c4e
PA
114142015-02-26 Pedro Alves <palves@redhat.com>
11415
11416 * linux-low.c (linux_wait_1): When incrementing the PC past a
11417 program breakpoint always use the_low_target.breakpoint_len as
11418 increment, rather than the maximum between that and
11419 the_low_target.decr_pc_after_break.
11420
8090aef2
PA
114212015-02-23 Pedro Alves <palves@redhat.com>
11422
11423 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11424 thread was doing a step-over; always adjust the PC if
11425 we stepped over a permanent breakpoint.
11426 (linux_wait_1): If we stepped over breakpoint that was on top of a
11427 permanent breakpoint, manually advance the PC past it.
11428
bc9540e8
PA
114292015-02-23 Pedro Alves <palves@redhat.com>
11430
11431 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11432 modes.
11433 (x86_fill_gregset, x86_store_gregset): Use it when handling
11434 $orig_eax.
11435
2db9a427
PA
114362015-02-20 Pedro Alves <palves@redhat.com>
11437
11438 * thread-db.c: Include "nat/linux-procfs.h".
11439 (thread_db_init): Skip listing new threads if the kernel supports
11440 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11441
afa8d396
PA
114422015-02-20 Pedro Alves <palves@redhat.com>
11443
11444 * linux-low.c (status_pending_p_callback): Use ptid_match.
11445
c9587f88
AT
114462015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11447
11448 PR breakpoints/16812
11449 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11450 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11451 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11452
b05ec7a5
AT
114532015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11454
11455 PR breakpoints/15956
11456 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11457
d33501a5
MM
114582015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11459
11460 * linux-low.c (linux_low_btrace_conf): Print size.
11461 * server.c (handle_btrace_conf_general_set): New.
11462 (hanle_general_set): Call handle_btrace_conf_general_set.
11463 (handle_query): Report Qbtrace-conf:bts:size as supported.
11464
f4abbc16
MM
114652015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11466
11467 * linux-low.c (linux_low_enable_btrace): Update parameters.
11468 (linux_low_btrace_conf): New.
11469 (linux_target_ops)<to_btrace_conf>: Initialize.
11470 * server.c (current_btrace_conf): New.
11471 (handle_btrace_enable): Rename to ...
11472 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11473 to target_enable_btrace. Update comment. Update users.
11474 (handle_qxfer_btrace_conf): New.
11475 (qxfer_packets): Add btrace-conf entry.
11476 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11477 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11478 (target_ops)<read_btrace_conf>: New.
11479 (target_enable_btrace): Update parameters.
11480 (target_read_btrace_conf): New.
11481
043c3577
MM
114822015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11483
11484 * server.c (handle_btrace_general_set): Remove call to
11485 target_supports_btrace.
11486 (supported_btrace_packets): New.
11487 (handle_query): Call supported_btrace_packets.
11488 * target.h: include btrace-common.h.
11489 (btrace_target_info): Removed.
11490 (supports_btrace, target_supports_btrace): Update parameters.
11491
734b0e4b
MM
114922015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11493
11494 * Makefile.in (SFILES): Add common/btrace-common.c.
11495 (OBS): Add common/btrace-common.o.
11496 (btrace-common.o): Add build rules.
11497 * linux-low: Include btrace-common.h.
11498 (linux_low_read_btrace): Use struct btrace_data. Call
11499 btrace_data_init and btrace_data_fini.
11500
d6c146e9
PA
115012015-02-06 Pedro Alves <palves@redhat.com>
11502
11503 * thread-db.c (find_new_threads_callback): Add debug output.
11504
20ba1ce6
PA
115052015-02-04 Pedro Alves <palves@redhat.com>
11506
11507 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11508 (resume_stopped_resumed_lwps): New function.
11509 (linux_wait_for_event_filtered): Use it.
11510
8cc73a39
SDJ
115112015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11512
11513 * Makefile.in (SFILES): Add linux-personality.c.
11514 (linux-personality.o): New rule.
11515 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11516 list of objects to be built.
11517 * linux-low.c: Include nat/linux-personality.h.
11518 (linux_create_inferior): Remove code to disable address space
11519 randomization (moved to ../nat/linux-personality.c). Create
11520 cleanup to disable address space randomization.
11521
fb23d554
SDJ
115222015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11523
11524 * Makefile.in (posix-strerror.o): New rule.
11525 (mingw-strerror.o): Likewise.
11526 * configure: Regenerated.
11527 * configure.ac: Source file ../common/common.host. Initialize new
11528 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11529
cdf43629
YQ
115302015-01-14 Yao Qi <yao@codesourcery.com>
11531
11532 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11533 (ppc-linux.o): New rule.
11534 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11535 * configure.ac: AC_CHECK_FUNCS(getauxval).
11536 * config.in: Re-generated.
11537 * configure: Re-generated.
11538 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11539 ppc64_64bit_inferior_p
11540
514c5338
YQ
115412015-01-14 Yao Qi <yao@codesourcery.com>
11542
11543 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11544 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11545 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11546 (PT_ORIG_R3, PT_TRAP): Likewise.
11547 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11548 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11549 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11550
3368c1e5
JB
115512015-01-10 Joel Brobecker <brobecker@adacore.com>
11552
11553 * i387-fp.c (i387_cache_to_xsave): In look over
11554 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11555 zmmh_low_space field by use of zmmh_high_space.
11556
582511be
PA
115572015-01-09 Pedro Alves <palves@redhat.com>
11558
11559 * linux-low.c (step_over_bkpt): Move higher up in the file.
11560 (handle_extended_wait): Don't store the stop_pc here.
11561 (get_stop_pc): Adjust comments and rename to ...
11562 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11563 stopped for a software breakpoint or hardware breakpoint.
11564 (thread_still_has_status_pending_p): New function.
11565 (status_pending_p_callback): Use
11566 thread_still_has_status_pending_p. If the event is no longer
11567 interesting, resume the LWP.
11568 (handle_tracepoints): Add assert.
11569 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11570 (wstatus_maybe_breakpoint): New function.
11571 (cancel_breakpoint): Delete function.
11572 (check_stopped_by_watchpoint): New function, factored out from
11573 linux_low_filter_event.
11574 (lp_status_maybe_breakpoint): Delete function.
11575 (linux_low_filter_event): Remove filter_ptid argument.
11576 Leave thread group exits pending here. Store the LWP's stop PC.
11577 Always leave events pending.
11578 (linux_wait_for_event_filtered): Pull all events out of the
11579 kernel, and leave them all pending.
11580 (count_events_callback, select_event_lwp_callback): Consider all
11581 events.
11582 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11583 (select_event_lwp): Only give preference to the stepping LWP in
11584 all-stop mode. Adjust comments.
11585 (ignore_event): New function.
11586 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11587 references to cancel_breakpoints. Adjust to renames. Also give
11588 equal priority to all LWPs that have had events in non-stop mode.
11589 If reporting a software breakpoint event, unadjust the LWP's PC.
11590 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11591 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11592 Adjust.
11593 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11594 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11595 (linux_stopped_by_watchpoint): Adjust.
11596 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11597 * linux-low.h (enum lwp_stop_reason): New.
11598 (struct lwp_info) <stop_pc>: Adjust comment.
11599 <stopped_by_watchpoint>: Delete field.
11600 <stop_reason>: New field.
11601 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11602 * mem-break.c (software_breakpoint_inserted_here)
11603 (hardware_breakpoint_inserted_here): New function.
11604 * mem-break.h (software_breakpoint_inserted_here)
11605 (hardware_breakpoint_inserted_here): Declare.
11606 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11607 (cancel_breakpoints): Delete.
11608 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11609 (upload_fast_traceframes): Remove references to
11610 cancel_breakpoints.
11611
a33e3959
PA
116122015-01-09 Pedro Alves <palves@redhat.com>
11613
11614 * thread-db.c (find_new_threads_callback): Ignore thread if the
11615 kernel thread ID is -1.
11616
8784d563
PA
116172015-01-09 Pedro Alves <palves@redhat.com>
11618
11619 * linux-low.c (linux_attach_fail_reason_string): Move to
11620 nat/linux-ptrace.c, and rename.
11621 (linux_attach_lwp): Update comment.
11622 (attach_proc_task_lwp_callback): New function.
11623 (linux_attach): Adjust to rename and use
11624 linux_proc_attach_tgid_threads.
11625 (linux_attach_fail_reason_string): Delete declaration.
11626
76f2b779
JB
116272015-01-01 Joel Brobecker <brobecker@adacore.com>
11628
11629 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11630 * server.c (gdbserver_version): Likewise.
11631
fafcc06a
SDJ
116322014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11633
11634 * remote-utils.c: Include ctype.h.
11635 (input_interrupt): Explicitly handle the case when the char
11636 received is the NUL byte. Improve the printing of non-ASCII
11637 characters.
11638
beed38b8
JB
116392014-12-16 Joel Brobecker <brobecker@adacore.com>
11640
11641 * linux-low.c (linux_low_filter_event): Update call to
11642 linux_enable_event_reporting following the addition of
11643 a new parameter to that function.
11644
bf330350
CU
116452014-12-16 Catalin Udma <catalin.udma@freescale.com>
11646
11647 PR server/17457
11648 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11649 (AARCH64_FPCR_REGNO): Likewise.
11650 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11651 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11652 (aarch64_store_fpregset): Likewise.
11653
5227d625
JB
116542014-12-15 Joel Brobecker <brobecker@adacore.com>
11655
11656 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11657 Remove FIXME comment about assumption about N.
11658
f93b65a0
JB
116592014-12-13 Joel Brobecker <brobecker@adacore.com>
11660
11661 * configure.ac: If large-file support is disabled in GDBserver,
11662 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11663 * configure: Regenerate.
11664
e5a9158d
AA
116652014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11666
11667 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11668 warning upon ENODATA from ptrace.
11669 * linux-s390-low.c (s390_store_tdb): New.
11670 (s390_regsets): Add regset for NT_S390_TDB.
11671
feea5f36
AA
116722014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11673
11674 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11675 without a fill_function.
11676 * linux-s390-low.c (s390_fill_last_break): Remove.
11677 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11678 (s390_arch_setup): Use regset's size instead of fill_function for
11679 loop end condition.
11680
098dbe61
AA
116812014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11682
11683 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11684 the regset's store function when ptrace returned an error.
11685 * regcache.c (get_thread_regcache): Invalidate register cache
11686 before fetching inferior's registers.
11687
28eef672
AA
116882014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11689
11690 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11691 while-loop as for-loop.
11692 (regsets_store_inferior_registers): Likewise.
11693
bdca27a2
YQ
116942014-11-28 Yao Qi <yao@codesourcery.com>
11695
11696 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11697 * config.in, configure: Re-generate.
11698 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11699 is defined.
11700
9c232dda
YQ
117012014-11-21 Yao Qi <yao@codesourcery.com>
11702
11703 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11704 (AC_CHECK_HEADERS): Remove malloc.h.
11705 * configure: Re-generated.
11706 * config.in: Re-generated.
11707 * server.h: Don't include alloca.h and malloc.h.
11708 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11709 Don't include malloc.h.
11710
43968415
JB
117112014-11-17 Joel Brobecker <brobecker@adacore.com>
11712
11713 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11714 corresponding ERRNO check in same block.
11715
40e91bc7
PA
117162014-11-12 Pedro Alves <palves@redhat.com>
11717
11718 * server.c (cont_thread): Update comment.
11719 (start_inferior, attach_inferior): No longer clear cont_thread.
11720 (handle_v_cont): No longer set cont_thread.
11721 (captured_main): Clear cont_thread each time a GDB connects.
11722
c2c118cf
PA
117232014-11-12 Pedro Alves <palves@redhat.com>
11724
11725 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11726 thread, and don't resume all threads if the Hc thread has exited.
11727
78708b7c
PA
117282014-11-12 Pedro Alves <palves@redhat.com>
11729
11730 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11731 the process group instead of to a specific LWP.
11732
a2abc7de
PA
117332014-10-15 Pedro Alves <palves@redhat.com>
11734
11735 PR server/17487
11736 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11737 parameter.
11738 (arm_set_thread_context): Delete.
11739 (the_low_target): Adjust.
11740 * win32-i386-low.c (debug_registers_changed)
11741 (debug_registers_used): Delete.
11742 (update_debug_registers_callback): New function.
11743 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11744 needing to update their debug registers.
11745 (win32_get_current_dr): New function.
11746 (x86_dr_low_get_addr, x86_dr_low_get_control)
11747 (x86_dr_low_get_status): Fetch the debug register from the thread
11748 record's context.
11749 (i386_initial_stuff): Adjust.
11750 (i386_get_thread_context): Remove current_event parameter. Don't
11751 clear debug_registers_changed nor copy DR values to
11752 debug_reg_state.
11753 (i386_set_thread_context): Delete.
11754 (i386_prepare_to_resume): New function.
11755 (i386_thread_added): Mark the thread as needing to update irs
11756 debug registers.
11757 (the_low_target): Remove i386_set_thread_context and install
11758 i386_prepare_to_resume.
11759 * win32-low.c (win32_get_thread_context): Adjust.
11760 (win32_set_thread_context): Use SetThreadContext
11761 directly.
11762 (win32_prepare_to_resume): New function.
11763 (win32_require_context): New function, factored out from ...
11764 (thread_rec): ... this.
11765 (continue_one_thread): Call win32_prepare_to_resume on each thread
11766 we're about to continue.
11767 (win32_resume): Call win32_prepare_to_resume on the event thread.
11768 * win32-low.h (struct win32_thread_info)
11769 <debug_registers_changed>: New field.
11770 (struct win32_target_ops): Change prototype of set_thread_context,
11771 delete set_thread_context and add prepare_to_resume.
11772 (win32_require_context): New declaration.
11773
a442d071
GB
117742014-10-08 Gary Benson <gbenson@redhat.com>
11775
11776 * server.h: Do not include common-exceptions.h.
11777
6f1947e8
GB
117782014-10-08 Gary Benson <gbenson@redhat.com>
11779
11780 * server.h: Do not include cleanups.h.
11781
63b434a4
JH
117822014-09-30 James Hogan <james.hogan@imgtec.com>
11783
11784 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11785 mips64-dsp-linux.c.
11786
c4d9ceb6
YQ
117872014-09-23 Yao Qi <yao@codesourcery.com>
11788
11789 * linux-low.c (lp_status_maybe_breakpoint): New function.
11790 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11791 (count_events_callback): Likewise.
11792 (select_event_lwp_callback): Likewise.
11793 (cancel_breakpoints_callback): Likewise.
11794
89a5711c
DB
117952014-09-19 Don Breazeal <donb@codesourcery.com>
11796
11797 * linux-low.c (handle_extended_wait): Call
11798 linux_ptrace_get_extended_event.
11799 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11800 linux_is_extended_waitstatus.
11801
bffc0964
JB
118022014-09-16 Joel Brobecker <brobecker@adacore.com>
11803
11804 * Makefile.in (CPPFLAGS): Define.
11805 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11806 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11807
0bfdf32f
GB
118082014-09-16 Gary Benson <gbenson@redhat.com>
11809
11810 * inferiors.h (current_inferior): Renamed as...
11811 (current_thread): New variable. All uses updated.
11812 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11813 (maybe_move_out_of_jump_pad): Likewise.
11814 (cancel_breakpoint): Likewise.
11815 (linux_low_filter_event): Likewise.
11816 (wait_for_sigstop): Likewise.
11817 (linux_resume_one_lwp): Likewise.
11818 (need_step_over_p): Likewise.
11819 (start_step_over): Likewise.
11820 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11821 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11822 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11823 and save_inferior as saved_thread.
11824 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11825 saved_thread.
11826 (regcache_invalidate_thread): Likewise.
11827 * remote-utils.c (prepare_resume_reply): Likewise.
11828 * thread-db.c (thread_db_get_tls_address): Likewise.
11829 (disable_thread_event_reporting): Likewise.
11830 (remove_thread_event_breakpoints): Likewise.
11831 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11832 as saved_thread.
11833 * target.h (set_desired_inferior): Renamed as...
11834 (set_desired_thread): New declaration. All uses updated.
11835 * server.c (myresume): Updated comment to reference thread instead
11836 of inferior.
11837 (handle_serial_event): Likewise.
11838 (handle_target_event): Likewise.
11839
361c8ade
GB
118402014-09-12 Tom Tromey <tromey@redhat.com>
11841 Gary Benson <gbenson@redhat.com>
11842
11843 * regcache.h: Include common-regcache.h.
11844 (regcache_read_pc): Don't declare.
11845 * regcache.c (get_thread_regcache_for_ptid): New function.
11846
bd9269f7
GB
118472014-09-11 Tom Tromey <tromey@redhat.com>
11848 Gary Benson <gbenson@redhat.com>
11849
11850 * symbol.c: New file.
11851 * Makefile.in (SFILES): Add symbol.c.
11852 (OBS): Add symbol.o.
11853
f8c1d06b
GB
118542014-09-11 Gary Benson <gbenson@redhat.com>
11855
11856 * target.c (target_stop_ptid, target_continue_ptid): New
11857 functions.
11858
721ec300
GB
118592014-09-11 Tom Tromey <tromey@redhat.com>
11860 Gary Benson <gbenson@redhat.com>
11861
11862 * target.h: Include target/target.h.
11863 * target.c (target_read_memory, target_read_uint32)
11864 (target_write_memory): New functions.
11865
c5e92cca
GB
118662014-09-11 Gary Benson <gbenson@redhat.com>
11867
11868 * server.h (debug_hw_points): Don't declare.
11869 * server.c (debug_hw_points): Don't define. Replace all uses
11870 with show_debug_regs.
11871 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11872 all uses with show_debug_regs.
11873
2e4bb98a
EBM
118742014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11875
11876 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11877 endianness into account.
11878 (ppc_supply_ptrace_register): Likewise.
11879
ac740bc7
JH
118802014-09-03 James Hogan <james.hogan@imgtec.com>
11881
11882 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11883 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11884
97ea6506
GB
118852014-09-03 Gary Benson <gbenson@redhat.com>
11886
11887 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11888 ALL_DEBUG_ADDRESS_REGISTERS.
11889
df7e5265
GB
118902014-09-02 Gary Benson <gbenson@redhat.com>
11891
11892 * i386-low.h: Renamed as...
11893 * x86-low.h: New file. All type, function and variable name
11894 prefixes changed from "i386_" to "x86_". All references updated.
11895 * i386-low.c: Renamed as...
11896 * x86-low.c: New file. All type, function and variable name
11897 prefixes changed from "i386_" to "x86_". All references updated.
11898
ed859da7
GB
118992014-09-02 Gary Benson <gbenson@redhat.com>
11900
11901 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11902 (x86_linux_new_thread): Likewise.
11903
860789c7
GB
119042014-08-29 Gary Benson <gbenson@redhat.com>
11905
11906 * server.h (setjmp.h): Do not include.
11907 (toplevel): Do not declare.
11908 (common-exceptions.h): Include.
11909 (cleanups.h): Likewise.
11910 * server.c (toplevel): Do not define.
11911 (exit_code): New static global.
11912 (detach_or_kill_for_exit_cleanup): New function.
11913 (main): New function. Original main renamed to...
11914 (captured_main): New function.
11915 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11916
ff55e1b5
GB
119172014-08-29 Gary Benson <gbenson@redhat.com>
11918
11919 * Makefile.in (SFILES): Add common/common-exceptions.c.
11920 (OBS): Add common-exceptions.o.
11921 (common-exceptions.o): New rule.
11922 * utils.c (prepare_to_throw_exception): New function.
11923
e9bcb658
GB
119242014-08-29 Gary Benson <gbenson@redhat.com>
11925
11926 * config.in: Regenerate.
11927 * configure: Likewise.
11928
e3180625
GB
119292014-08-29 Gary Benson <gbenson@redhat.com>
11930
11931 * Makefile.in (SFILES): Add common/cleanups.c.
11932 (OBS): cleanups.o.
11933 (cleanups.o): New rule.
11934
e3d6ba5d
GB
119352014-08-29 Gary Benson <gbenson@redhat.com>
11936
11937 * utils.c (internal_vwarning): New function.
11938
7096e886
GB
119392014-08-28 Gary Benson <gbenson@redhat.com>
11940
11941 * utils.h (fatal): Remove declaration.
11942 * utils.c (fatal): Remove function.
11943
14ce3192
GB
119442014-08-28 Gary Benson <gbenson@redhat.com>
11945
11946 * tracepoint.c (gdb_agent_init): Replace fatal with
11947 perror_with_name.
11948 (initialize_tracepoint): Likewise.
11949
50278d59
GB
119502014-08-28 Gary Benson <gbenson@redhat.com>
11951
11952 * remote-utils.c (remote_prepare): Replace fatal with error.
11953
aa96c426
GB
119542014-08-28 Gary Benson <gbenson@redhat.com>
11955
11956 * linux-low.c (linux_async): Replace fatal with warning.
11957 Tidy up and return.
11958 (linux_start_non_stop): Return -1 if linux_async failed.
11959
f7160e97
GB
119602014-08-28 Gary Benson <gbenson@redhat.com>
11961
11962 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11963 gdb_assert.
11964 (i386_dr_low_get_addr): Remove vague comment.
11965 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11966 gdb_assert.
11967
38e08fca
GB
119682014-08-28 Gary Benson <gbenson@redhat.com>
11969
11970 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11971 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11972 internal_error.
11973 (linux_resume_one_lwp): Likewise.
11974 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11975 gdb_assert.
11976 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11977 with internal_error.
11978 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11979 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11980 (find_register_by_name): Replace fatal with internal_error.
11981 (find_regno): Likewise.
11982 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11983 * thread-db.c (thread_db_create_event): Likewise.
11984 (thread_db_load_search): Likewise.
11985 (try_thread_db_load_1): Likewise.
11986 * tracepoint.c (get_jump_space_head): Replace fatal with
11987 internal_error.
11988 (claim_trampoline_space): Likewise.
11989 (have_fast_tracepoint_trampoline_buffer): Likewise.
11990 (cmd_qtstart): Likewise.
11991 (stop_tracing): Likewise.
11992 (fast_tracepoint_collecting): Likewise.
11993 (target_malloc): Likewise.
11994 (download_tracepoint): Likewise.
11995 (download_trace_state_variables): Replace check with gdb_assert.
11996 (upload_fast_traceframes): Replace fatal with internal_error.
11997
34abf635
GB
119982014-08-19 Tom Tromey <tromey@redhat.com>
11999 Gary Benson <gbenson@redhat.com>
12000
12001 * Makefile.in (SFILES): Add common/common-debug.c.
12002 (OBS): Add common-debug.o.
12003 (common-debug.o): New rule.
12004 * debug.h (debug_printf): Don't declare.
12005 * debug.c (debug_printf): Renamed and rewritten as...
12006 (debug_vprintf): New function.
12007
f6e94d78
GB
120082014-08-19 Gary Benson <gbenson@redhat.com>
12009
12010 * utils.h: Do not include print-utils.h.
12011
9239eeab
GB
120122014-08-19 Tom Tromey <tromey@redhat.com>
12013 Gary Benson <gbenson@redhat.com>
12014
12015 * server.h: Add static assertion.
12016 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12017
ef87c8bb
GB
120182014-08-19 Tom Tromey <tromey@redhat.com>
12019 Gary Benson <gbenson@redhat.com>
12020
12021 * Makefile.in (SFILES): Add common/errors.c.
12022 (OBS): Add errors.o.
12023 (IPA_OBS): Add errors-ipa.o.
12024 (errors.o): New rule.
12025 (errors-ipa.o): Likewise.
12026 * utils.h (perror_with_name, error, warning): Don't declare.
12027 * utils.c (warning): Renamed and rewritten as...
12028 (vwarning): New function.
12029 (error): Renamed and rewritten as...
12030 (verror): New function.
12031 (internal_error): Renamed and rewritten as...
12032 (internal_verror): New function.
12033
bb974a24
GB
120342014-08-07 Gary Benson <gbenson@redhat.com>
12035
12036 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12037 * configure: Regenerate.
12038 * config.in: Likewise.
12039 * server.h: Do not include errno.h.
12040 * event-loop.c: Likewise.
12041 * hostio-errno.c: Likewise.
12042 * linux-low.c: Likewise.
12043 * remote-utils.c: Likewise.
12044 * spu-low.c: Likewise.
12045 * utils.c: Likewise.
12046 * gdbreplay.c: Unconditionally include errno.h.
12047
6d3d12eb
GB
120482014-08-07 Gary Benson <gbenson@redhat.com>
12049
12050 * server.h: Do not include string.h.
12051 * event-loop.c: Likewise.
12052 * linux-low.c: Likewise.
12053 * regcache.c: Likewise.
12054 * remote-utils.c: Likewise.
12055 * spu-low.c: Likewise.
12056 * utils.c: Likewise.
12057
dccbb609
GB
120582014-08-07 Gary Benson <gbenson@redhat.com>
12059
12060 * server.h: Do not include gdb_assert.h.
12061
e76df0d0
GB
120622014-08-07 Gary Benson <gbenson@redhat.com>
12063
12064 * server.h: Do not include common-utils.h.
12065
4cb9c816
GB
120662014-08-07 Gary Benson <gbenson@redhat.com>
12067
12068 * server.h: Do not include ptid.h.
12069 * notif.h: Likewise.
12070
3995eeee
GB
120712014-08-07 Gary Benson <gbenson@redhat.com>
12072
12073 * server.h: Do not include gdb_locale.h.
12074
cb9f1a9b
GB
120752014-08-07 Gary Benson <gbenson@redhat.com>
12076
12077 * server.h: Do not include gdb/signals.h.
12078 * win32-low.c: Likewise.
12079
a5fceff8
GB
120802014-08-07 Gary Benson <gbenson@redhat.com>
12081
12082 * server.h: Do not include pathmax.h.
12083
b9391142
GB
120842014-08-07 Gary Benson <gbenson@redhat.com>
12085
12086 * server.h: Do not include libiberty.h.
12087 * linux-bfin-low.c: Likewise.
12088
0e443c87
GB
120892014-08-07 Gary Benson <gbenson@redhat.com>
12090
12091 * server.h: Do not include ansidecl.h.
12092
8ebb3f56
GB
120932014-08-07 Gary Benson <gbenson@redhat.com>
12094
12095 * linux-x86-low.c: Do not include stddef.h.
12096 * lynx-ppc-low.c: Likewise.
12097 * tracepoint.c: Likewise.
12098
8980bdf6
GB
120992014-08-07 Gary Benson <gbenson@redhat.com>
12100
12101 * server.h: Do not include stdarg.h.
12102 * nto-low.c: Likewise.
12103
d7096f71
GB
121042014-08-07 Gary Benson <gbenson@redhat.com>
12105
12106 * server.h: Do not include stdlib.h.
12107 * inferiors.c: Likewise.
12108 * linux-low.c: Likewise.
12109 * regcache.c: Likewise.
12110 * spu-low.c: Likewise.
12111 * tracepoint.c: Likewise.
12112 * utils.c: Likewise.
12113
d02f550d
GB
121142014-08-07 Gary Benson <gbenson@redhat.com>
12115
12116 * server.h: Do not include stdio.h.
12117 * linux-low.c: Likewise.
12118 * remote-utils.c: Likewise.
12119 * spu-low.c: Likewise.
12120 * utils.c: Likewise.
12121 * wincecompat.c: Likewise.
12122
87f6c4e3
GB
121232014-08-06 Gary Benson <gbenson@redhat.com>
12124
12125 * regcache.c (init_register_cache): Move conditionals inside if.
12126
7089dca4
GB
121272014-08-06 Gary Benson <gbenson@redhat.com>
12128
12129 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12130
462f517e
GB
121312014-07-31 Gary Benson <gbenson@redhat.com>
12132
12133 * ax.h: Do not include server.h.
12134 * gdbthread.h: Likewise.
12135 * lynx-low.h: Likewise.
12136 * notif.h: Likewise.
12137
976411d6
GB
121382014-07-30 Gary Benson <gbenson@redhat.com>
12139
12140 * server.h: Include common-defs.h.
12141 Do not include config.h or build-gnulib-gdbserver/config.h.
12142
d41f6d8e
GB
121432014-07-30 Gary Benson <gbenson@redhat.com>
12144
12145 * hostio-errno.c: Move server.h to top of includes list.
12146 * inferiors.c: Likewise.
12147 * linux-x86-low.c: Likewise.
12148 * notif.c: Include server.h.
12149
314c6a35
TT
121502014-07-24 Tom Tromey <tromey@redhat.com>
12151 Gary Benson <gbenson@redhat.com>
12152
12153 * server.h (CORE_ADDR): Now unsigned.
12154
69ff6be5
PA
121552014-07-16 Pedro Alves <palves@redhat.com>
12156
12157 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12158
ce9e3fe7
PA
121592014-07-15 Pedro Alves <palves@redhat.com>
12160
12161 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12162 copy.
12163
e76126e8
PA
121642014-07-11 Pedro Alves <palves@redhat.com>
12165
12166 * linux-low.c (kill_wait_lwp): New function, based on
12167 kill_one_lwp_callback, but use my_waitpid directly.
12168 (kill_one_lwp_callback, linux_kill): Use it.
12169
8e9db26e
PA
121702014-06-23 Pedro Alves <palves@redhat.com>
12171
12172 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12173 before setting DR0..DR3.
12174
698b3e08
GB
121752014-06-20 Gary Benson <gbenson@redhat.com>
12176
12177 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12178 * configure: Regenerated.
12179 * config.in: Likewise.
12180
125f8a3d
GB
121812014-06-20 Gary Benson <gbenson@redhat.com>
12182
12183 * Makefile.in (SFILES): Update locations for files moved
12184 from common to nat.
12185 (object file files): Reordered.
12186
42995dbd
GB
121872014-06-20 Gary Benson <gbenson@redhat.com>
12188
12189 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12190 (i386_dr_low_set_addr): Likewise.
12191 (i386_dr_low_get_addr): Likewise.
12192 (i386_dr_low_can_set_control): Likewise.
12193 (i386_dr_low_set_control): Likewise.
12194 (i386_dr_low_get_control): Likewise.
12195 (i386_dr_low_get_status): Likewise.
12196 (i386_get_debug_register_length): Likewise.
12197 * linux-x86-low.c (i386_dr_low_set_addr):
12198 Changed signature. Made static.
12199 (i386_dr_low_get_addr): Likewise.
12200 (i386_dr_low_set_control): Likewise.
12201 (i386_dr_low_get_control): Likewise.
12202 (i386_dr_low_get_status): Likewise.
12203 (i386_dr_low): New global variable.
12204 * win32-i386-low.c (i386_dr_low_set_addr):
12205 Changed signature. Made static.
12206 (i386_dr_low_get_addr): Likewise.
12207 (i386_dr_low_set_control): Likewise.
12208 (i386_dr_low_get_control): Likewise.
12209 (i386_dr_low_get_status): Likewise.
12210 (i386_dr_low): New global variable.
12211
e1d2394b
MS
122122014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12213
12214 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12215 * Makefile.in (AR, AR_FLAGS): Define.
12216 * configure: Regenerate.
12217
3a8ee006
GB
122182014-06-19 Gary Benson <gbenson@redhat.com>
12219
12220 * Makefile.in (i386-dregs.o): New rule.
12221 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12222 * i386-low.c (target.h): Remove include.
12223 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12224 (DR_CONTROL_SHIFT): Likewise.
12225 (DR_CONTROL_SIZE): Likewise.
12226 (DR_RW_EXECUTE): Likewise.
12227 (DR_RW_WRITE): Likewise.
12228 (DR_RW_READ): Likewise.
12229 (DR_RW_IORW): Likewise.
12230 (DR_LEN_1): Likewise.
12231 (DR_LEN_2): Likewise.
12232 (DR_LEN_4): Likewise.
12233 (DR_LEN_8): Likewise.
12234 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12235 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12236 (DR_ENABLE_SIZE): Likewise.
12237 (DR_LOCAL_SLOWDOWN): Likewise.
12238 (DR_GLOBAL_SLOWDOWN): Likewise.
12239 (DR_CONTROL_RESERVED): Likewise.
12240 (I386_DR_CONTROL_MASK): Likewise.
12241 (I386_DR_VACANT): Likewise.
12242 (I386_DR_LOCAL_ENABLE): Likewise.
12243 (I386_DR_GLOBAL_ENABLE): Likewise.
12244 (I386_DR_DISABLE): Likewise.
12245 (I386_DR_SET_RW_LEN): Likewise.
12246 (I386_DR_GET_RW_LEN): Likewise.
12247 (I386_DR_WATCH_HIT): Likewise.
12248 (i386_wp_op_t): Likewise.
12249 (i386_show_dr): Likewise.
12250 (i386_length_and_rw_bits): Likewise.
12251 (i386_insert_aligned_watchpoint): Likewise.
12252 (i386_remove_aligned_watchpoint): Likewise.
12253 (i386_handle_nonaligned_watchpoint): Likewise.
12254 i386_update_inferior_debug_regs(): Likewise.
12255 (i386_dr_insert_watchpoint): Likewise.
12256 (i386_dr_remove_watchpoint): Likewise.
12257 (i386_dr_region_ok_for_watchpoint): Likewise.
12258 (i386_dr_stopped_data_address): Likewise.
12259 (i386_dr_stopped_by_watchpoint): Likewise.
12260
8f26655c
GB
122612014-06-19 Gary Benson <gbenson@redhat.com>
12262
12263 * i386-low.c (i386_dr_show): Renamed to
12264 i386_show_dr and made static. All uses updated.
12265 (i386_dr_length_and_rw_bits): Renamed to
12266 i386_length_and_rw_bits and made static.
12267 All uses updated.
12268 (i386_dr_insert_aligned_watchpoint): Renamed to
12269 i386_insert_aligned_watchpoint and made static.
12270 All uses updated.
12271 (i386_dr_remove_aligned_watchpoint): Renamed to
12272 i386_remove_aligned_watchpoint and made static.
12273 All uses updated.
12274 (i386_dr_update_inferior_debug_regs): Renamed to
12275 i386_update_inferior_debug_regs and made static.
12276 All uses updated.
12277
b9228891
GB
122782014-06-18 Gary Benson <gbenson@redhat.com>
12279
5171def3
GB
12280 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12281 (i386_dr_low_can_set_control): Likewise.
12282 (i386_get_debug_register_length): Likewise.
12283 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12284 (i386_dr_low_can_set_control): Likewise.
12285 (i386_get_debug_register_length): Likewise.
12286
122872014-06-17 Gary Benson <gbenson@redhat.com>
12288
b9228891
GB
12289 * i386-low.h (i386-dregs.h): New include.
12290 (DR_FIRSTADDR): Now in i386-dregs.h.
12291 (DR_LASTADDR): Likewise.
12292 (DR_NADDR): Likewise.
12293 (DR_STATUS): Likewise.
12294 (DR_CONTROL): Likewise.
12295 (i386_debug_reg_state): Likewise.
12296 (i386_dr_insert_watchpoint): Likewise.
12297 (i386_dr_remove_watchpoint): Likewise.
12298 (i386_dr_region_ok_for_watchpoint): Likewise.
12299 (i386_dr_stopped_data_address): Likewise.
12300 (i386_dr_stopped_by_watchpoint): Likewise.
12301 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12302
4be83cc2
GB
123032014-06-18 Gary Benson <gbenson@redhat.com>
12304
12305 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12306 i386_dr_insert_watchpoint.
12307 (i386_low_remove_watchpoint): Renamed to
12308 i386_dr_remove_watchpoint.
12309 (i386_low_region_ok_for_watchpoint): Renamed to
12310 i386_dr_region_ok_for_watchpoint.
12311 (i386_low_stopped_data_address): Renamed to
12312 i386_dr_stopped_data_address.
12313 (i386_low_stopped_by_watchpoint): Renamed to
12314 i386_dr_stopped_by_watchpoint.
12315 * i386-low.c (i386_show_dr): Renamed to
12316 i386_dr_show and made nonstatic. All uses updated.
12317 (i386_length_and_rw_bits): Renamed to
12318 i386_dr_length_and_rw_bits and made nonstatic.
12319 All uses updated.
12320 (i386_insert_aligned_watchpoint): Renamed to
12321 i386_dr_insert_aligned_watchpoint and made nonstatic.
12322 All uses updated.
12323 (i386_remove_aligned_watchpoint): Renamed to
12324 i386_dr_remove_aligned_watchpoint and made nonstatic.
12325 All uses updated.
12326 (i386_update_inferior_debug_regs): Renamed to
12327 i386_dr_update_inferior_debug_regs and made nonstatic.
12328 All uses updated.
12329 (i386_low_insert_watchpoint): Renamed to
12330 i386_dr_insert_watchpoint. All uses updated.
12331 (i386_low_remove_watchpoint): Renamed to
12332 i386_dr_remove_watchpoint. All uses updated.
12333 (i386_low_region_ok_for_watchpoint): Renamed to
12334 i386_dr_region_ok_for_watchpoint. All uses updated.
12335 (i386_low_stopped_data_address): Renamed to
12336 i386_dr_stopped_data_address. All uses updated.
12337 (i386_low_stopped_by_watchpoint): Renamed to
12338 i386_dr_stopped_by_watchpoint. All uses updated.
12339
131aa0d4
GB
123402014-06-18 Gary Benson <gbenson@redhat.com>
12341
12342 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12343 (i386_dr_low_can_set_control): Likewise.
12344 (i386_insert_aligned_watchpoint): New check.
12345
d9305f7f
GB
123462014-06-18 Gary Benson <gbenson@redhat.com>
12347
12348 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12349 Renamed to state.
12350
e927c9fc
GB
123512014-06-18 Gary Benson <gbenson@redhat.com>
12352
12353 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12354 instead of fatal and error.
12355 (i386_handle_nonaligned_watchpoint): Likewise.
12356
1b6d4134
GB
123572014-06-18 Gary Benson <gbenson@redhat.com>
12358
12359 * i386-low.c (i386_get_debug_register_length): New macro.
12360 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12361 (i386_show_dr): Use debug_printf instead of fprintf. Use
12362 phex to format values.
12363
6e62758f
GB
123642014-06-18 Gary Benson <gbenson@redhat.com>
12365
12366 * i386-low.h: Comment changes.
12367 * i386-low.c: Likewise.
12368
fc6e2f03
GB
123692014-06-18 Gary Benson <gbenson@redhat.com>
12370
12371 * i386-low.c: Whitespace changes.
12372
f9d1eeed
TT
123732014-06-12 Tom Tromey <tromey@redhat.com>
12374
12375 * utils.c (freeargv): Remove.
12376
0b04e523
TT
123772014-06-12 Tom Tromey <tromey@redhat.com>
12378
12379 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12380 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12381 (parse_debug_format_options): Likewise.
12382 (gdbserver_usage): Likewise.
12383 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12384 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12385 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12386 against libiberty.
12387 ($(LIBGNU)): Depend on libiberty.
12388 (all-lib): Recurse into all subdirs.
12389 (install-only): Invoke "install" target in subdirs.
12390 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12391 targets.
12392 * configure: Rebuild.
12393 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12394 for vasprintf, vsnprintf, or gettimeofday.
12395 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12396 srv_tgtobj.
12397
270c9937
JB
123982014-06-05 Joel Brobecker <brobecker@adacore.com>
12399
12400 * development.sh: Delete.
12401 * Makefile.in (config.status): Adjust dependency on development.sh.
12402 * configure.ac: Adjust development.sh source call.
12403 * configure: Regenerate.
12404
0a261ed8
PA
124052014-06-02 Pedro Alves <palves@redhat.com>
12406
12407 * ax.c (gdb_free_agent_expr): New function.
12408 * ax.h (gdb_free_agent_expr): New declaration.
12409 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12410 list.
12411 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12412 static.
12413 (clear_breakpoint_conditions_and_commands): New function.
12414 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12415 (clear_breakpoint_conditions_and_commands): New declaration.
12416
e9dae05e
RR
124172014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12418
12419 * linux-aarch64-low.c (asm/ptrace.h): Include.
12420
5876f503
JK
124212014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12422
12423 Fix TLS access for -static -pthread.
12424 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12425 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12426 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12427
802e8e6d
PA
124282014-05-20 Pedro Alves <palves@redhat.com>
12429
12430 * linux-aarch64-low.c (aarch64_insert_point)
12431 (aarch64_remove_point): No longer check whether the type is
12432 supported here. Adjust to new interface.
12433 (the_low_target): Install aarch64_supports_z_point_type as
12434 supports_z_point_type method.
12435 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12436 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12437 instead of a Z packet char. Adjust.
12438 (arm_supports_z_point_type): New function.
12439 (arm_insert_point, arm_remove_point): Adjust to new interface.
12440 (the_low_target): Install arm_supports_z_point_type.
12441 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12442 (cris_insert_point, cris_remove_point): Adjust to new interface.
12443 Don't check whether the type is supported here.
12444 (the_low_target): Install cris_supports_z_point_type.
12445 * linux-low.c (linux_supports_z_point_type): New function.
12446 (linux_insert_point, linux_remove_point): Adjust to new interface.
12447 * linux-low.h (struct linux_target_ops) <insert_point,
12448 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12449 raw_breakpoint pointer parameter.
12450 <supports_z_point_type>: New method.
12451 * linux-mips-low.c (mips_supports_z_point_type): New function.
12452 (mips_insert_point, mips_remove_point): Adjust to new interface.
12453 Use mips_supports_z_point_type.
12454 (the_low_target): Install mips_supports_z_point_type.
12455 * linux-ppc-low.c (the_low_target): Install NULL as
12456 supports_z_point_type method.
12457 * linux-s390-low.c (the_low_target): Install NULL as
12458 supports_z_point_type method.
12459 * linux-sparc-low.c (the_low_target): Install NULL as
12460 supports_z_point_type method.
12461 * linux-x86-low.c (x86_supports_z_point_type): New function.
12462 (x86_insert_point): Adjust to new insert_point interface. Use
12463 insert_memory_breakpoint. Adjust to new
12464 i386_low_insert_watchpoint interface.
12465 (x86_remove_point): Adjust to remove_point interface. Use
12466 remove_memory_breakpoint. Adjust to new
12467 i386_low_remove_watchpoint interface.
12468 (the_low_target): Install x86_supports_z_point_type.
12469 * lynx-low.c (lynx_target_ops): Install NULL as
12470 supports_z_point_type callback.
12471 * nto-low.c (nto_supports_z_point_type): New.
12472 (nto_insert_point, nto_remove_point): Adjust to new interface.
12473 (nto_target_ops): Install nto_supports_z_point_type.
12474 * mem-break.c: Adjust intro comment.
12475 (struct raw_breakpoint) <raw_type, size>: New fields.
12476 <inserted>: Update comment.
12477 <shlib_disabled>: Delete field.
12478 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12479 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12480 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12481 (raw_bkpt_type_to_target_hw_bp_type): New function.
12482 (find_enabled_raw_code_breakpoint_at): New function.
12483 (find_raw_breakpoint_at): New type and size parameters. Use them.
12484 (insert_memory_breakpoint): New function, based off
12485 set_raw_breakpoint_at.
12486 (remove_memory_breakpoint): New function.
12487 (set_raw_breakpoint_at): Reimplement.
12488 (set_breakpoint): New, based on set_breakpoint_at.
12489 (set_breakpoint_at): Reimplement.
12490 (delete_raw_breakpoint): Go through the_target->remove_point
12491 instead of assuming memory breakpoints.
12492 (find_gdb_breakpoint_at): Delete.
12493 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12494 (find_gdb_breakpoint): New function.
12495 (set_gdb_breakpoint_at): Delete.
12496 (z_type_supported): New function.
12497 (set_gdb_breakpoint_1): New function, loosely based off
12498 set_gdb_breakpoint_at.
12499 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12500 (delete_gdb_breakpoint_at): Delete.
12501 (delete_gdb_breakpoint_1): New function, loosely based off
12502 delete_gdb_breakpoint_at.
12503 (delete_gdb_breakpoint): New function.
12504 (clear_gdb_breakpoint_conditions): Rename to ...
12505 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12506 breakpoint.
12507 (add_condition_to_breakpoint): Make static.
12508 (add_breakpoint_condition): Take a struct breakpoint pointer
12509 instead of an address. Adjust.
12510 (gdb_condition_true_at_breakpoint): Rename to ...
12511 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12512 z_type parameter.
12513 (gdb_condition_true_at_breakpoint): Reimplement.
12514 (add_breakpoint_commands): Take a struct breakpoint pointer
12515 instead of an address. Adjust.
12516 (gdb_no_commands_at_breakpoint): Rename to ...
12517 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12518 parameter. Return true if no breakpoint was found. Change debug
12519 output.
12520 (gdb_no_commands_at_breakpoint): Reimplement.
12521 (run_breakpoint_commands): Rename to ...
12522 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12523 and change return type to boolean.
12524 (run_breakpoint_commands): New function.
12525 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12526 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12527 breakpoint. Go through the_target->remove_point instead of
12528 assuming memory breakpoint.
12529 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12530 software and hardware breakpoints.
12531 (reinsert_raw_breakpoint): Go through the_target->insert_point
12532 instead of assuming memory breakpoint.
12533 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12534 software and hardware breakpoints.
12535 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12536 Check both software and hardware breakpoints.
12537 (validate_inserted_breakpoint): Assert the breakpoint is a
12538 software breakpoint. Set the inserted flag to -1 instead of
12539 setting shlib_disabled.
12540 (delete_disabled_breakpoints): Adjust.
12541 (validate_breakpoints): Only validate software breakpoints.
12542 Adjust to inserted flag change.
12543 (check_mem_read, check_mem_write): Skip breakpoint types other
12544 than software breakpoints. Adjust to inserted flag change.
12545 * mem-break.h (enum raw_bkpt_type): New enum.
12546 (raw_breakpoint, struct process_info): Forward declare.
12547 (Z_packet_to_target_hw_bp_type): Delete declaration.
12548 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12549 (set_gdb_breakpoint, delete_gdb_breakpoint)
12550 (clear_breakpoint_conditions): New declarations.
12551 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12552 (breakpoint_inserted_here): Update comment.
12553 (add_breakpoint_condition, add_breakpoint_commands): Replace
12554 address parameter with a breakpoint pointer parameter.
12555 (gdb_breakpoint_here): Update comment.
12556 (delete_gdb_breakpoint_at): Delete.
12557 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12558 * server.c (process_point_options): Take a struct breakpoint
12559 pointer instead of an address. Adjust.
12560 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12561 delete_gdb_breakpoint.
12562 * spu-low.c (spu_target_ops): Install NULL as
12563 supports_z_point_type method.
12564 * target.h: Include mem-break.h.
12565 (struct target_ops) <prepare_to_access_memory>: Update comment.
12566 <supports_z_point_type>: New field.
12567 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12568 instead of a char. Also take a raw breakpoint pointer.
12569 * win32-arm-low.c (the_low_target): Install NULL as
12570 supports_z_point_type.
12571 * win32-i386-low.c (i386_supports_z_point_type): New function.
12572 (i386_insert_point, i386_remove_point): Adjust to new interface.
12573 (the_low_target): Install i386_supports_z_point_type.
12574 * win32-low.c (win32_supports_z_point_type): New function.
12575 (win32_insert_point, win32_remove_point): Adjust to new interface.
12576 (win32_target_ops): Install win32_supports_z_point_type.
12577 * win32-low.h (struct win32_target_ops):
12578 <supports_z_point_type>: New method.
12579 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12580 instead of a char. Also take a raw breakpoint pointer.
12581
932539e3
PA
125822014-05-20 Pedro Alves <palves@redhat.com>
12583
12584 * mem-break.h: Include break-common.h.
12585 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12586 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12587 (Z_packet_to_target_hw_bp_type): New declaration.
12588 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12589 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12590 (Z_PACKET_ACCESS_WP): Delete macros.
12591 (Z_packet_to_hw_type): Delete function.
12592 * i386-low.h: Don't include break-common.h here.
12593 (Z_packet_to_hw_type): Delete declaration.
12594 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12595 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12596 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12597 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12598 * linux-aarch64-low.c: Don't include break-common.h here.
12599 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12600 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12601 (Z_packet_to_target_hw_bp_type): Delete function.
12602 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12603 function.
12604 (mips_insert_point, mips_remove_point): Use
12605 Z_packet_to_target_hw_bp_type.
12606
4ff0d3d8
PA
126072014-05-20 Pedro Alves <palves@redhat.com>
12608
12609 * linux-aarch64-low.c: Include break-common.h.
12610 (enum target_point_type): Delete.
12611 (Z_packet_to_point_type): Rename to ...
12612 (Z_packet_to_target_hw_bp_type): ... this, and return a
12613 target_hw_bp_type instead.
12614 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12615 instead of an enum target_point_type.
12616 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12617 breakpoint type.
12618 (aarch64_dr_state_insert_one_point)
12619 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12620 (aarch64_handle_aligned_watchpoint)
12621 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12622 Take an enum target_hw_bp_type instead of an enum
12623 target_point_type.
12624 (aarch64_supports_z_point_type): New function.
12625 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12626 use Z_packet_to_target_hw_bp_type.
12627
786dc519
JB
126282014-05-20 Joel Brobecker <brobecker@adacore.com>
12629
12630 * configure.ac: Only use -Werror by default when DEVELOPMENT
12631 is true.
12632 * configure: Regenerate.
12633
9e0aa64f
JK
126342014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12635
12636 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12637 * linux-x86-low.c (X86_64_USER_REGS): New.
12638 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12639
2b577b92
YQ
126402014-04-28 Yao Qi <yao@codesourcery.com>
12641
12642 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12643 name.
12644
94611da2
PA
126452014-04-25 Pedro Alves <palves@redhat.com>
12646
12647 PR server/16255
12648 * linux-low.c (linux_attach_fail_reason_string): New function.
12649 (linux_attach_lwp): Delete.
12650 (linux_attach_lwp_1): Rename to ...
12651 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12652 argument. Remove "initial" parameter. Return int instead of
12653 void. Don't error or warn here.
12654 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12655 failure to attach to the tgid. Call warning when failing to
12656 attach to an lwp.
12657 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12658 argument. Remove "initial" parameter. Return int instead of
12659 void. Don't error or warn here.
12660 (linux_attach_fail_reason_string): New declaration.
12661 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12662 interface change. Use linux_attach_fail_reason_string.
12663
01f9f808
MS
126642014-04-24 Michael Sturm <michael.sturm@mintel.com>
12665 Walfred Tedeschi <walfred.tedeschi@intel.com>
12666
12667 * Makefile.in: Added rules to handle new files
12668 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12669 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12670 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12671 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12672 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12673 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12674 x32-avx512-linux.o.
12675 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12676 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12677 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12678 i386/x32-avx512.xml.
12679 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12680 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12681 i386/x32-avx512-linux.xml.
12682 * i387-fp.c (num_avx512_k_registers): New constant for number
12683 of K registers.
12684 (num_avx512_zmmh_low_registers): New constant for number of
12685 lower ZMM registers (0-15).
12686 (num_avx512_zmmh_high_registers): New constant for number of
12687 higher ZMM registers (16-31).
12688 (num_avx512_ymmh_registers): New contant for number of higher
12689 YMM registers (ymm16-31 added by avx521 on x86_64).
12690 (num_avx512_xmm_registers): New constant for number of higher
12691 XMM registers (xmm16-31 added by AVX512 on x86_64).
12692 (struct i387_xsave): Add space for AVX512 registers.
12693 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12694 Add code to handle AVX512 registers.
12695 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12696 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12697 prototypei from generated file.
12698 (tdesc_amd64_avx512_linux): Likewise.
12699 (init_registers_x32_avx512_linux): Likewise.
12700 (tdesc_x32_avx512_linux): Likewise.
12701 (init_registers_i386_avx512_linux): Likewise.
12702 (tdesc_i386_avx512_linux): Likewise.
12703 (x86_64_regmap): Add AVX512 registers.
12704 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12705 mask.
12706 (initialize_low_arch): Add code to initialize AVX512 registers.
12707
51aa91f9
PA
127082014-04-23 Pedro Alves <palves@redhat.com>
12709
12710 * mem-break.c (find_gdb_breakpoint_at): Make static.
12711 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12712
a4165e94
PA
127132014-04-23 Pedro Alves <palves@redhat.com>
12714
12715 * i386-low.c: Don't include break-common.h here.
12716 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12717 prototype to take target_hw_bp_type as argument instead of a Z
12718 packet char.
12719 * i386-low.h: Include break-common.h here.
12720 (Z_packet_to_hw_type): Declare.
12721 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12722 prototypes.
12723 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12724 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12725 (x86_remove_point): Convert the packet number to a
12726 target_hw_bp_type before calling i386_low_remove_watchpoint.
12727 * win32-i386-low.c (i386_insert_point): Convert the packet number
12728 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12729 (i386_remove_point): Convert the packet number to a
12730 target_hw_bp_type before calling i386_low_remove_watchpoint.
12731
b8acf843
PA
127322014-04-23 Pedro Alves <palves@redhat.com>
12733
12734 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12735
d708bcd1
PA
127362014-04-10 Pedro Alves <palves@redhat.com>
12737
12738 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12739 Check if the condition or command is NULL before checking if the
12740 breakpoint is known. On success, return true.
12741 * mem-break.h (add_breakpoint_condition): Document return.
12742 (add_breakpoint_commands): Add describing comment.
12743 * server.c (skip_to_semicolon): New function.
12744 (process_point_options): Use it.
12745
2eec7d5b
PA
127462014-04-09 Pedro Alves <palves@redhat.com>
12747
12748 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12749 to lwpid_of.
12750
fa96cb38
PA
127512014-02-27 Pedro Alves <palves@redhat.com>
12752
12753 PR 12702
12754 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12755 macros.
12756 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12757 output.
12758 (last_thread_of_process_p): Take a PID argument instead of a
12759 thread pointer.
12760 (linux_wait_for_lwp): Delete.
12761 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12762 functions.
12763 (linux_low_filter_event): New function, party factored out from
12764 linux_wait_for_event.
12765 (linux_wait_for_event): Rename to ...
12766 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12767 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12768 sigsuspend. Check for zombie leaders.
12769 (linux_wait_for_event): Reimplement as wrapper around
12770 linux_wait_for_event_filtered.
12771 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12772 a normal or signal exit is seen, it's the whole process exiting.
12773 (wait_for_sigstop): No longer a for_each_inferior callback.
12774 Rewrite on top of linux_wait_for_event_filtered.
12775 (stop_all_lwps): Call wait_for_sigstop directly.
12776 * server.c (resume, handle_target_event): Handle
12777 TARGET_WAITKIND_NO_RESUMED.
12778
d763de10
JB
127792014-02-26 Joel Brobecker <brobecker@adacore.com>
12780
12781 * win32-low.c (psapi_get_dll_name,
12782 * win32_CreateToolhelp32Snapshot): Delete.
12783 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12784 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12785 Delete.
12786 (handle_load_dll): Add function description.
12787 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12788
850a0f76
JB
127892014-02-26 Joel Brobecker <brobecker@adacore.com>
12790
12791 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12792 Add comment.
12793 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12794 base address when calling win32_add_one_solib.
12795 (handle_load_dll): Delete local variable load_addr.
12796 Remove 0x1000 offset applied to DLL base address when calling
12797 win32_add_one_solib.
12798 (handle_unload_dll): Add comment.
12799
f25b3fc3
JB
128002014-02-26 Joel Brobecker <brobecker@adacore.com>
12801
12802 * win32-low.c (win32_add_all_dlls): Renames
12803 win32_ensure_ntdll_loaded. Rewrite function documentation.
12804 Adjust implementation to always load all DLLs.
12805 Add 0x1000 offset to DLL base address when calling
12806 win32_add_one_solib.
12807 (child_initialization_done): New static global.
12808 (do_initial_child_stuff): Set child_initialization_done to
12809 zero during child initialization, and 1 after. Replace call
12810 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12811 Add comment.
12812 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12813 (handle_unload_dll): Add function documentation.
12814 (get_child_debug_event): Ignore load and unload DLL events
12815 during child initialization.
12816
d86d4aaf
DE
128172014-02-20 Doug Evans <dje@google.com>
12818
3bc32da3 12819 Remove global all_lwps.
d86d4aaf
DE
12820 * inferiors.h (ptid_of): Move here from linux-low.h.
12821 (pid_of, lwpid_of): Ditto.
12822 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12823 parameter is a struct thread_info * now.
12824 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12825 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12826 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12827 directly.
12828 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12829 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12830 * linux-arm-low.c (update_registers_callback): Update, "entry"
12831 parameter is a struct thread_info * now.
12832 Fetch lwpid from current_inferior directly.
12833 (arm_insert_point): Pass &all_threads to find_inferior instead of
12834 &all_lwps.
12835 (arm_remove_point): Ditto.
12836 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12837 (arm_prepare_to_resume): Fetch pid from thread.
12838 (arm_read_description): Fetch lwpid from current_inferior directly.
12839 * linux-low.c (all_lwps): Delete.
12840 (delete_lwp): Delete call to remove_inferior.
12841 (handle_extended_wait): Fetch lwpid from thread.
12842 (add_lwp): Don't set lwp->entry.id. Remove call to
12843 add_inferior_to_list.
12844 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12845 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12846 (kill_one_lwp_callback): Ditto.
12847 (linux_kill): Don't dereference NULL pointer.
12848 Fetch ptid,lwpid from thread.
12849 (get_detach_signal): Fetch ptid from thread.
12850 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12851 Simplify call to regcache_invalidate_thread.
12852 (delete_lwp_callback): Update, "entry" parameter is a
12853 struct thread_info * now. Fetch pid from thread.
12854 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12855 (status_pending_p_callback): Update, "entry" parameter is a
12856 struct thread_info * now. Fetch ptid from thread.
12857 (find_lwp_pid): Update, "entry" parameter is a
12858 struct thread_info * now.
12859 (linux_wait_for_lwp): Fetch pid from thread.
12860 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12861 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12862 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12863 (dequeue_one_deferred_signal): Ditto.
12864 (cancel_breakpoint): Fetch ptid from current_inferior.
12865 (linux_wait_for_event): Pass &all_threads to find_inferior,
12866 not &all_lwps. Fetch ptid, lwpid from thread.
12867 (count_events_callback): Update, "entry" parameter is a
12868 struct thread_info * now.
12869 (select_singlestep_lwp_callback): Ditto.
12870 (select_event_lwp_callback): Ditto.
12871 (cancel_breakpoints_callback): Ditto.
12872 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12873 not &all_lwps.
12874 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12875 (unsuspend_one_lwp): Update, "entry" parameter is a
12876 struct thread_info * now.
12877 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12878 not &all_lwps.
12879 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12880 Fetch lwpid from thread, not lwp.
12881 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12882 Pass &all_threads to find_inferior, not &all_lwps.
12883 (send_sigstop): Fetch lwpid from thread, not lwp.
12884 (send_sigstop_callback): Update, "entry" parameter is a
12885 struct thread_info * now.
12886 (suspend_and_send_sigstop_callback): Ditto.
12887 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12888 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12889 struct thread_info * now.
12890 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12891 from thread, lwp.
12892 (lwp_running): Update, "entry" parameter is a
12893 struct thread_info * now.
12894 (stop_all_lwps): Fetch ptid from thread.
12895 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12896 (linux_resume_one_lwp): Fetch lwpid from thread.
12897 (linux_set_resume_request): Update, "entry" parameter is a
12898 struct thread_info * now. Fetch pid, lwpid from thread.
12899 (resume_status_pending_p): Update, "entry" parameter is a
12900 struct thread_info * now.
12901 (need_step_over_p): Ditto. Fetch lwpid from thread.
12902 (start_step_over): Fetch lwpid from thread.
12903 (linux_resume_one_thread): Update, "entry" parameter is a
12904 struct thread_info * now. Fetch lwpid from thread.
12905 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12906 (proceed_one_lwp): Update, "entry" parameter is a
12907 struct thread_info * now. Fetch lwpid from thread.
12908 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12909 struct thread_info * now.
12910 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12911 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12912 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12913 directly.
12914 (regsets_store_inferior_registers): Ditto.
12915 (fetch_register, store_register): Ditto.
12916 (linux_read_memory, linux_write_memory): Ditto.
12917 (linux_request_interrupt): Ditto.
12918 (linux_read_auxv): Ditto.
12919 (linux_xfer_siginfo): Ditto.
12920 (linux_qxfer_spu): Ditto.
12921 (linux_qxfer_libraries_svr4): Ditto.
12922 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12923 moved to inferiors.h.
12924 (get_lwp): Delete.
12925 (get_thread_lwp): Update.
12926 (struct lwp_info): Delete member "entry". Simplify comment for
12927 member "thread".
12928 (all_lwps): Delete.
12929 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12930 current_inferior directly.
12931 (update_watch_registers_callback): Update, "entry" parameter is a
12932 struct thread_info * now. Fetch pid from thread.
12933 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12934 (mips_insert_point): Fetch lwpid from current_inferior.
12935 Pass &all_threads to find_inferior, not &all_lwps.
12936 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12937 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12938 directly.
12939 (mips_stopped_data_address): Ditto.
12940 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12941 directly.
12942 * linux-tile-low.c (tile_arch_setup): Ditto.
12943 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12944 (update_debug_registers_callback): Update, "entry" parameter is a
12945 struct thread_info * now. Fetch pid from thread.
12946 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12947 Pass &all_threads to find_inferior, not &all_lwps.
12948 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12949 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12950 Pass &all_threads to find_inferior, not &all_lwps.
12951 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12952 (i386_dr_low_get_status): Ditto.
12953 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12954 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12955 (x86_linux_read_description): Ditto.
12956 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12957
3b8361aa
DE
129582014-02-20 Doug Evans <dje@google.com>
12959
12960 * inferiors.c (get_first_inferior): Fix buglet.
12961
f7667f0d
DE
129622014-02-19 Doug Evans <dje@google.com>
12963
12964 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12965 * inferiors.c (add_thread): Change result type to struct thread_info *.
12966 All callers updated.
12967 (add_lwp): Call add_thread here instead of in callers.
12968 All callers updated.
12969 * linux-low.h (get_lwp_thread): Rewrite.
12970 (struct lwp_info): New member "thread".
12971
b3312d80
DE
129722014-02-19 Doug Evans <dje@google.com>
12973
12974 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12975 All callers updated.
12976
ecc6f45c
DE
129772014-02-19 Doug Evans <dje@google.com>
12978
12979 * inferiors.c (add_thread): Fix whitespace.
12980
649ebbca
DE
129812014-02-19 Doug Evans <dje@google.com>
12982
12983 * dll.c (clear_dlls): Replace accessing list implemention details
12984 with API function.
12985 * gdbthread.h (get_first_thread): Declare.
12986 * inferiors.c (for_each_inferior_with_data): New function.
12987 (get_first_thread): New function.
12988 (find_thread_ptid): Simplify.
12989 (get_first_inferior): New function.
12990 (clear_list): Delete.
12991 (one_inferior_p): New function.
12992 (clear_inferior_list): New function.
12993 (clear_inferiors): Update.
12994 * inferiors.h (for_each_inferior_with_data): Declare.
12995 (clear_inferior_list): Declare.
12996 (one_inferior_p): Declare.
12997 (get_first_inferior): Declare.
12998 * linux-low.c (linux_wait_for_event): Replace accessing list
12999 implemention details with API function.
13000 * server.c (target_running): Ditto.
13001 (accumulate_file_name_length): New function.
13002 (emit_dll_description): New function.
13003 (handle_qxfer_libraries): Replace accessing list implemention
13004 details with API function.
13005 (handle_qxfer_threads_worker): New function.
13006 (handle_qxfer_threads_proper): Replace accessing list implemention
13007 details with API function.
13008 (handle_query): Ditto.
13009 (visit_actioned_threads_callback_ftype): New typedef.
13010 (visit_actioned_threads_data): New struct.
13011 (visit_actioned_threads): Rewrite to be find_inferior callback.
13012 (resume): Call find_inferior.
13013 (handle_status): Replace accessing list implemention
13014 details with API function.
13015 (process_serial_event): Replace accessing list implemention details
13016 with API function.
13017 * target.c (set_desired_inferior): Replace accessing list implemention
13018 details with API function.
13019 * tracepoint.c (same_process_p): New function.
13020 (gdb_agent_about_to_close): Replace accessing list implemention
13021 details with API function.
13022 * win32-low.c (child_delete_thread): Replace accessing list
13023 implemention details with API function.
13024 (match_dll_by_basename): New function.
13025 (dll_is_loaded_by_basename): New function.
13026 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13027 details call to dll_is_loaded_by_basename.
13028
80894984
DE
130292014-02-19 Doug Evans <dje@google.com>
13030
13031 * dll.h (struct dll_info): Add comment.
13032 * gdbthread.h (struct thread_info): Add comment.
13033 (current_ptid): Simplify.
13034 * inferiors.c (add_process): Update.
13035 (remove_process): Update.
13036 * inferiors.h (struct process_info): Rename member "head" to "entry".
13037 * linux-low.c (delete_lwp): Update.
13038 (add_lwp): Update.
13039 (last_thread_of_process_p): Update.
13040 (kill_one_lwp_callback, linux_kill): Update.
13041 (status_pending_p_callback): Update.
13042 (wait_for_sigstop): Update. Simplify read of ptid.
13043 (start_step_over): Update.
13044 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13045 (get_lwp_thread): Update.
13046 (struct lwp_info): Rename member "head" to "entry".
13047 * regcache.h (inferior_list_entry): Delete.
13048 * server.c (kill_inferior_callback): Update.
13049 (detach_or_kill_inferior_callback): Update.
13050 (print_started_pid): Update.
13051 (print_attached_pid): Update.
13052 (process_serial_event): Simplify read of ptid.
13053 * thread-db.c (thread_db_create_event): Update.
13054 (thread_db_get_tls_address): Update.
13055 * win32-low.c (current_inferior_ptid): Simplify.
13056
46917d26
TT
130572014-02-19 Tom Tromey <tromey@redhat.com>
13058
13059 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13060 argument.
13061 (target_supports_btrace): Update.
13062
0759a81e
YQ
130632014-02-14 Yao Qi <yao@codesourcery.com>
13064
13065 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13066 (rsp-low-ipa.o): New target.
13067
a7191e8b
TT
130682014-02-12 Tom Tromey <tromey@redhat.com>
13069
13070 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13071 convert_ascii_to_int.
13072 * regcache.c (registers_to_string): Likewise.
13073 * remote-utils.c (decode_M_packet): Likewise.
13074 * server.c (process_serial_event): Likewise.
13075
ff0e980e
TT
130762014-02-12 Tom Tromey <tromey@redhat.com>
13077
13078 * server.c (handle_query, handle_v_run): Use hex2bin, not
13079 unhexify.
13080 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13081
e9371aff
TT
130822014-02-12 Tom Tromey <tromey@redhat.com>
13083
13084 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13085 convert_int_to_ascii.
13086 * regcache.c (registers_to_string, collect_register_as_string):
13087 Likewise.
13088 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13089 Likewise.
13090 * server.c (process_serial_event): Likewise.
13091 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13092 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13093
971dc0b8
TT
130942014-02-12 Tom Tromey <tromey@redhat.com>
13095
13096 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13097 bin2hex, not hexify.
13098 * tracepoint.c (cmd_qtstatus): Likewise.
13099
0a822afb
TT
131002014-02-12 Tom Tromey <tromey@redhat.com>
13101
13102 * remote-utils.c (monitor_output): Pass explicit length to
13103 hexify.
13104
9c3d6531
TT
131052014-02-12 Tom Tromey <tromey@redhat.com>
13106
13107 * tracepoint.c: Include rsp-low.h.
13108 * server.c: Include rsp-low.h.
13109 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13110 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13111 declare.
13112 * remote-utils.c: Include rsp-low.h.
13113 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13114 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13115 (convert_int_to_ascii, convert_ascii_to_int): Move to
13116 common/rsp-low.c.
13117 * regcache.c: Include rsp-low.h.
13118 * ax.c: Include rsp-low.h.
13119 * Makefile.in (SFILES): Add common/rsp-low.c.
13120 (OBS): Add rsp-low.o.
13121 (rsp-low.o): New target.
13122
01fd3ea5
TT
131232014-02-12 Tom Tromey <tromey@redhat.com>
13124
13125 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13126 Include print-utils.h.
13127 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13128 (plongest, thirty_two, phex_nz): Remove.
13129 * Makefile.in (SFILES): Add common/print-utils.c.
13130 (OBS): Add print-utils.o.
13131 (print-utils-ipa.o): New target.
13132 (print-utils.o): New target.
13133 (IPA_OBJS): Add print-utils-ipa.o.
13134
e99dc820
TT
131352014-02-06 Tom Tromey <tromey@redhat.com>
13136
13137 * Makefile.in (SFILES): Fix indentation.
13138
ee1e2d4f
DE
131392014-02-05 Doug Evans <dje@google.com>
13140
13141 * linux-low.c (linux_wait_for_event): Improve comment.
13142 (linux_wait_1): Keep current_inferior in sync with event_child.
13143
f5a02773
DE
131442014-01-22 Doug Evans <dje@google.com>
13145
13146 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13147
87ce2a04
DE
131482014-01-22 Doug Evans <dje@google.com>
13149
13150 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13151 * configure: Regenerate.
13152 * config.in: Regenerate.
13153 * Makefile.in (SFILES): Add debug.c.
13154 (OBS): Add debug.o.
13155 * debug.c: New file.
13156 * debug.h: New file.
13157 * linux-aarch64-low.c (*): Update all debugging printfs to use
13158 debug_printf instead of fprintf.
13159 * linux-arm-low.c (*): Ditto.
13160 * linux-cris-low.c (*): Ditto.
13161 * linux-crisv32-low.c (*): Ditto.
13162 * linux-m32r-low.c (*): Ditto.
13163 * linux-sparc-low.c (*): Ditto.
13164 * linux-x86.c (*): Ditto.
13165 * linux-low.c (*): Ditto.
13166 (linux_wait_1): Add calls to debug_enter, debug_exit.
13167 (linux_wait): Remove redundant debugging printf.
13168 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13169 (linux_resume, unstop_all_lwps): Ditto.
13170 * mem-break.c (*): Update all debugging printfs to use
13171 debug_printf instead of fprintf.
13172 * remote-utils.c (*): Ditto.
13173 * thread-db.c (*): Ditto.
13174 * server.c #include <ctype.h>, "gdb_vecs.h".
13175 (debug_threads): Moved to debug.c.
13176 (*): Update all debugging printfs to use debug_printf instead of
13177 fprintf.
13178 (start_inferior): Replace call to fflush with call to debug_flush.
13179 (monitor_show_help): Mention set debug-format.
13180 (parse_debug_format_options): New function.
13181 (handle_monitor_command): Handle "monitor set debug-format".
13182 (gdbserver_usage): Mention --debug-format.
13183 (main): Parse --debug-format.
13184 * server.h (debug_threads): Declaration moved to debug.h.
13185 #include "debug.h".
13186 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13187 trace_debug_1 that uses debug_printf.
13188 (tracepoint_look_up_symbols): Update all debugging printfs to use
13189 debug_printf instead of fprintf.
13190
e671835b
BS
131912014-01-20 Baruch Siach <baruch@tkos.co.il>
13192
13193 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13194 sys/ptrace.h.
13195
b5737fa9
PA
131962014-01-17 Pedro Alves <palves@redhat.com>
13197
ea38d2a9 13198 PR build/16445
c7faa97a
PA
13199 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13200 defined after including gdb_proc_service.h.
b5737fa9 13201
40ed484e
DE
132022014-01-16 Doug Evans <dje@google.com>
13203
13204 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13205 (match_dll): Use it.
13206
969c39fb
MM
132072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13208
13209 * target.h (target_ops) <read_btrace>: Change parameters and
13210 return type to allow error reporting.
13211 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13212 trace reading errors on.
13213 * linux-low.c (linux_low_read_btrace): Pass trace reading
13214 errors on.
13215 (linux_low_disable_btrace): New.
13216
ab7f45ba
DE
132172014-01-15 Doug Evans <dje@google.com>
13218
13219 * inferiors.c (thread_id_to_gdb_id): Delete.
13220 * inferiors.h (thread_id_to_gdb_id): Delete.
13221
66af0f44
EZ
132222014-01-13 Eli Zaretskii <eliz@gnu.org>
13223
13224 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13225 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13226 versions.
13227
9939e131
PA
132282014-01-08 Pedro Alves <palves@redhat.com>
13229
13230 * server.c (handle_status): Don't discard previous queued stop
13231 replies or thread's pending status here.
13232 (main) <disconnection>: Do it here instead.
13233
b7ea362b
PA
132342014-01-08 Pedro Alves <palves@redhat.com>
13235
13236 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13237 * server.c (visit_actioned_threads, handle_pending_status): New
13238 function.
13239 (handle_v_cont): Factor out parts to ...
13240 (resume): ... this new function. If in all-stop, and a thread
13241 being resumed has a pending status, report it without actually
13242 resuming.
13243 (myresume): Adjust to use the new 'resume' function.
13244 (clear_pending_status_callback, set_pending_status_callback)
13245 (find_status_pending_thread_callback): New functions.
13246 (handle_status): Handle the case of multiple threads having
13247 interesting statuses to report. Report threads' real last signal
13248 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13249 with an interesting thread to report the status for, instead of
13250 always reporting the status of the first thread.
13251
28498c42
JB
132522014-01-01 Joel Brobecker <brobecker@adacore.com>
13253
13254 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13255 * gdbreplay.c (gdbreplay_version): Likewise.
13256
f45c82da
YZ
132572013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13258
13259 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13260 iov.iov_len with the real length in use.
13261
379a5e2d
JB
132622013-12-13 Joel Brobecker <brobecker@adacore.com>
13263
13264 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13265 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13266 for all targets that use win32-low.c.
13267 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13268 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13269
4210d83e
PA
132702013-12-13 Pedro Alves <palves@redhat.com>
13271
13272 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13273 if equal to TARGET_WAITKIND_LOADED.
13274 * win32-low.c (cached_status): New static global.
13275 (win32_wait): Add declaration.
13276 (do_initial_child_stuff): Flush all initial pending debug events
13277 up to the initial breakpoint.
13278 (win32_wait): If CACHED_STATUS was set, return that instead
13279 of doing a real wait. Remove the code resuming the execution
13280 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13281 during the initial phase. Also remove the code changing
13282 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13283 TARGET_WAITKIND_STOPPED.
13284
e7f0d979
YQ
132852013-12-11 Yao Qi <yao@codesourcery.com>
13286
13287 * notif.c (handle_notif_ack): Return 0 if no notification
13288 matches.
13289
ebcf782c
DE
132902013-11-20 Doug Evans <dje@google.com>
13291
13292 * linux-low.c (linux_set_resume_request): Fix comment.
13293
20ad9378
DE
132942013-11-20 Doug Evans <dje@google.com>
13295
13296 * linux-low.c (resume_status_pending_p): Tweak comment.
13297
a196ebeb
WT
132982013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13299
13300 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13301 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13302 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13303 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13304 (srv_amd64_regobj): Add amd64-mpx.o.
13305 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13306 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13307 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13308 * i387-fp.c (num_pl_bnd_register) Added constant.
13309 (num_pl_bnd_cfg_registers) Added constant.
13310 (struct i387_xsave) Added reserved area and MPX fields.
13311 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13312 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13313 function.
13314 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13315 (init_registers_amd64_mpx_linux): Declare new function.
13316 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13317 (x86_64_regmap): Add MPX registers.
13318 (x86_linux_read_description): Add MPX case.
13319 (initialize_low_arch): Initialize MPX targets.
13320
0080a2f6
TT
133212013-11-18 Tom Tromey <tromey@redhat.com>
13322
13323 * configure: Rebuild.
13324 * configure.ac: Don't check for stdlib.h.
13325 * gdbreplay.c: Unconditionally include stdlib.h.
13326
2978b111
TT
133272013-11-18 Tom Tromey <tromey@redhat.com>
13328
13329 * config.in: Rebuild.
13330 * configure: Rebuild.
13331 * configure.ac: Don't use AC_HEADER_DIRENT.
13332
a3d08894
TT
133332013-11-18 Tom Tromey <tromey@redhat.com>
13334
13335 * server.h: Don't check HAVE_STRING_H.
13336 * gdbreplay.c: Don't check HAVE_STRING_H.
13337 * configure: Rebuild.
13338
0a5dd17d
TT
133392013-11-18 Tom Tromey <tromey@redhat.com>
13340
13341 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13342 LIBGNU.
13343
1bd2f0ba
TT
133442013-11-08 Tom Tromey <tromey@redhat.com>
13345
13346 * configure, config.in: Rebuild.
13347 * configure.ac: Remove unused configury.
13348
3266f10b
TT
133492013-11-08 Tom Tromey <tromey@redhat.com>
13350
13351 * acinclude.m4: Include common.m4, codeset.m4.
13352 * configure, config.in: Rebuild.
13353 * configure.ac: Use GDB_AC_COMMON.
13354
6682d959
AA
133552013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13356
13357 * linux-s390-low.c (HWCAP_S390_TE): New define.
13358 (s390_arch_setup): Consider the TE field in the HWCAP for
13359 determining 'have_regset_tdb'.
13360
fd0a4d76
SDJ
133612013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13362
13363 PR gdb/16014
13364 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13365 call to sizeof.
13366
1a3d890b
PA
133672013-10-02 Pedro Alves <palves@redhat.com>
13368
13369 * server.c (process_serial_event): Don't output "GDBserver
13370 exiting" if GDB is connected through stdio.
13371 * target.c (mywait): Likewise, be silent if GDB is connected
13372 through stdio.
13373
97ad4581
JB
133742013-10-01 Joel Brobecker <brobecker@adacore.com>
13375
13376 * lynx-low.c (lynx_add_threads_after_attach): New function.
13377 (lynx_attach): Remove call to add_thread. Add call to
13378 lynx_add_threads_after_attach instead.
13379
5b4e221c
MF
133802013-09-28 Mike Frysinger <vapier@gentoo.org>
13381
13382 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13383 * config.in, configure: Regenerated.
13384
ee47b2f8
YQ
133852013-09-18 Yao Qi <yao@codesourcery.com>
13386
13387 PR server/15959
13388 * server.c (start_inferior): Clear 'resume_info'.
13389
d6707650 133902013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13391
d6707650
JW
13392 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13393 for each register.
13394
9243dd0e 133952013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13396
9243dd0e
JW
13397 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13398 linux-tile-low.o to srv_tgtobj.
13399
c623a6ef
WN
134002013-09-16 Will Newton <will.newton@linaro.org>
13401
13402 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13403 out regs.
13404
fb71d39e
PA
134052013-09-06 Pedro Alves <palves@redhat.com>
13406
13407 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13408 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13409 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13410 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13411 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13412 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13413
8e7e9910
PA
134142013-09-06 Pedro Alves <palves@redhat.com>
13415
13416 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13417 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13418
7c3a12ca
PA
134192013-09-06 Pedro Alves <palves@redhat.com>
13420
13421 * linux-amd64-ipa.c: Include tracepoint.h.
13422 * linux-i386-ipa.c: Include tracepoint.h.
13423
8eb3d7b6
RW
134242013-09-06 Ricard Wanderlof <ricardw@axis.com>
13425
13426 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13427 (ps_get_thread_area): New function.
13428
eddddb9d
RW
134292013-09-06 Ricard Wanderlof <ricardw@axis.com>
13430
13431 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13432 (initialize_low_arch): Call init_registers_crisv32 rather than
13433 init_register_crisv32.
13434
533b0600
PA
134352013-09-05 Pedro Alves <palves@redhat.com>
13436
13437 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13438 to ...
13439 * hostio.h: ... this new file.
13440 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13441 win32-low.c: Include hostio.h.
13442
0ce3d3b5
PA
134432013-09-05 Pedro Alves <palves@redhat.com>
13444
13445 * server.h (gdb_client_data, handler_func, callback_handler_func)
13446 (delete_file_handler, add_file_handler, append_callback_event)
13447 (delete_callback_event, start_event_loop, initialize_event_loop):
13448 Move to event-loop.h and include it.
13449 * event-loop.h: New file.
13450
799cdc37
PA
134512013-09-05 Pedro Alves <palves@redhat.com>
13452
13453 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13454 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13455 (loaded_dll, unloaded_dll): Move to ...
13456 * dll.h: ... this new file.
13457 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13458
6a6bbd9d
PA
134592013-09-05 Pedro Alves <palves@redhat.com>
13460
13461 * server.h (current_process, get_thread_process, all_processes)
13462 (add_inferior_to_list, for_each_inferior, current_inferior)
13463 (remove_inferior, add_process, remove_process, find_process_pid)
13464 (have_started_inferiors_p, have_attached_inferiors_p)
13465 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13466 (clear_inferiors, find_inferior, find_inferior_id)
13467 (inferior_target_data, set_inferior_target_data)
13468 (inferior_regcache_data, set_inferior_regcache_data): Move to
13469 inferiors.h, and include it.
13470 * inferiors.h: New file.
13471
f699aaba
PA
134722013-09-05 Pedro Alves <palves@redhat.com>
13473
13474 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13475 Move ...
72f4393d 13476 * ax.h: ... here.
f699aaba 13477
c144c7a0
PA
134782013-09-05 Pedro Alves <palves@redhat.com>
13479
13480 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13481 tracepoint.h.
13482 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13483 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13484 (handle_tracepoint_general_set, handle_tracepoint_query)
13485 (tracepoint_finished_step, tracepoint_was_hit)
13486 (release_while_stepping_state_list, current_traceframe)
13487 (in_readonly_region, traceframe_read_mem)
13488 (fetch_traceframe_registers, traceframe_read_sdata)
13489 (traceframe_read_info, struct fast_tpoint_collect_status)
13490 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13491 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13492 (supply_fast_tracepoint_registers)
13493 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13494 (ipa_tdesc, claim_trampoline_space)
13495 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13496 (agent_mem_read, agent_get_trace_state_variable_value)
13497 (agent_set_trace_state_variable_value, agent_tsv_read)
13498 (agent_mem_read_string, get_raw_reg_func_addr)
13499 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13500 * tracepoint.h: ... this new file.
13501
ff42e6ab
PA
135022013-09-05 Pedro Alves <palves@redhat.com>
13503
13504 * server.h (perror_with_name, error, fatal, warning, paddress)
13505 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13506 include it.
13507 * utils.h: New file.
13508
541af0f4
PA
135092013-09-05 Pedro Alves <palves@redhat.com>
13510
13511 * server.h (remote_debug, noack_mode, transport_is_reliable)
13512 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13513 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13514 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13515 (write_enn, initialize_async_io, enable_async_io)
13516 (disable_async_io, check_remote_input_interrupt_request)
13517 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13518 (dead_thread_notify, prepare_resume_reply)
13519 (decode_address_to_semicolon, decode_address, decode_m_packet)
13520 (decode_M_packet, decode_X_packet, decode_xfer_write)
13521 (decode_search_memory_packet, unhexify, hexify)
13522 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13523 (look_up_one_symbol, relocate_instruction)
13524 (monitor_output): Move to remote-utils.h, and include it.
13525 * remote-utils.h: New file.
13526
eebdf26b
PA
135272013-09-05 Pedro Alves <palves@redhat.com>
13528
13529 * server.h (_): Delete.
13530
3aafd2ff
PA
135312013-09-02 Pedro Alves <palves@redhat.com>
13532
13533 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13534 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13535 allocated.
13536 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13537
cee83bcb
PM
135382013-09-02 Pierre Muller <muller@sourceware.org>
13539
13540 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13541 or WriteProcessMemory complete successfully and handle
13542 ERROR_PARTIAL_COPY error.
13543
9a13b2fa
PA
135442013-09-02 Pedro Alves <palves@redhat.com>
13545
13546 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13547 error instead of EIO.
13548
602e3198
JK
135492013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13550
13551 PR server/15604
13552 * linux-low.c: Include filestuff.h.
13553 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13554 * lynx-low.c: Include filestuff.h.
13555 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13556 * server.c: Include filestuff.h.
13557 (main): Call notice_open_fds.
13558 * spu-low.c: Include filestuff.h.
13559 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13560
96d7229d
LM
135612013-08-22 Luis Machado <lgustavo@codesourcery.com>
13562
13563 * Makefile.in: Explain why ../target and ../nat are not
13564 listed as include file search paths.
13565 (linux-waitpid.o): New object file rule.
13566 * configure.srv (srv_native_linux_obj): New variable.
13567 Replace all occurrences of linux native object files with
13568 $srv_native_linux_obj.
13569 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13570 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13571 (linux_enable_event_reporting): Remove declaration.
13572 (my_waitpid): Moved to common/linux-waitpid.c.
13573 (linux_wait_for_event): Pass ptid when calling
13574 linux_enable_event_reporting.
13575 (linux_supports_tracefork_flag): Remove.
13576 (linux_enable_event_reporting): Likewise.
13577 (linux_tracefork_grandchild): Remove.
13578 (STACK_SIZE): Moved to common/linux-ptrace.c.
13579 (linux_tracefork_child): Remove.
13580 (linux_test_for_tracefork): Remove.
13581 (linux_look_up_symbols): Call linux_supports_traceclone.
13582 (initialize_low): Remove call to linux_test_for_tracefork.
13583 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13584 common/linux-ptrace.h.
13585 (PTRACE_TYPE_ARG4): Likewise.
13586 Include linux-ptrace.h.
13587
32940073
PA
135882013-08-21 Pedro Alves <palves@redhat.com>
13589
13590 * config.in: Renegerate.
13591
33b60d58 135922013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13593
33b60d58
LM
13594 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13595 (SFILES): Remove $(srcdir)/common/target-common.c and
13596 add $(srcdir)/target/waitstatus.c.
13597 (OBS): Remove target-common.o and add waitstatus.o.
13598 (server_h): Remove $(srcdir)/../common/target-common.h and
13599 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13600 and $(srcdir)/../target/waitstatus.h.
13601 (target-common.o): Remove.
13602 (waitstatus.o): New target object file.
13603 * target.h: Do not include target-common.h and
13604 include target/resume.h, target/wait.h and
13605 target/waitstatus.h.
13606
b8e1b30e
LM
136072013-08-13 Luis Machado <lgustavo@codesourcery.com>
13608
13609 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13610 to PTRACE_TYPE_ARG3.
13611 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13612 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13613 PTRACE_TYPE_ARG4.
13614 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13615 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13616
7a60ad40
YQ
136172013-07-27 Jie Zhang <jie@codesourcery.com>
13618 Daniel Jacobowitz <dan@codesourcery.com>
13619 Yao Qi <yao@codesourcery.com>
13620
13621 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13622 (mips-linux-watch.o): New rule.
13623 (mips_linux_watch_h): New variable.
13624 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13625 srv_tgtobj.
13626 * linux-mips-low.c: Include mips-linux-watch.h.
13627 (struct arch_process_info, struct arch_lwp_info): New.
13628 (update_watch_registers_callback): New function.
13629 (mips_linux_new_process, mips_linux_new_thread) New functions.
13630 (mips_linux_prepare_to_resume, mips_insert_point): New
13631 functions.
13632 (mips_remove_point, mips_stopped_by_watchpoint): New
13633 functions.
13634 (rsp_bp_type_to_target_hw_bp_type): New function.
13635 (mips_stopped_data_address): New function.
13636 (the_low_target): Add watchpoint support functions.
13637
de6f69ad
YQ
136382013-07-27 Yao Qi <yao@codesourcery.com>
13639
13640 * i386-low.c: Include break-common.h.
13641 (enum target_hw_bp_type): Remove.
13642
3360c0bf
LM
136432013-07-24 Luis Machado <lgustavo@codesourcery.com>
13644
13645 * Makefile.in (SFILES): /common/target-common.c.
13646 (OBS): Add target-common.o.
13647 (server_h): Add $(srcdir)/../common/target-common.h.
13648 (target-common.o): New target.
13649 * server.c (queue_stop_reply_callback): Free
13650 status string after use.
13651 * target.c (target_waitstatus_to_string): Remove.
13652 * target.h: Include target-common.h.
13653 (resume_kind): Likewise.
13654 (target_waitkind): Likewise.
13655 (target_waitstatus): Likewise.
13656 (TARGET_WNOHANG): Likewise.
13657
bd885420
YQ
136582013-07-04 Yao Qi <yao@codesourcery.com>
13659
13660 * Makefile.in (host_alias): Use @host_noncanonical@.
13661 (target_alias): Use @target_noncanonical@.
13662 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13663 ACX_NONCANONICAL_HOST.
13664 * configure: Regenerated.
13665
13666 Revert:
13667 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13668
13669 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13670 * configure: Rebuild.
13671 * Makefile.in (version_host, version_target): Get from configure.
13672 (version.c): Use $(version_host) and $(version_target).
13673
17ef446e
PA
136742013-07-03 Pedro Alves <palves@redhat.com>
13675
13676 * Makefile.in (config.status): Depend on development.sh.
13677 * acinclude.m4: Include libmcheck.m4.
13678 * configure: Regenerate.
13679
7a9a7487
MG
136802013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13681
13682 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13683 attribute inside the parentheses.
13684 (winapi_DebugSetProcessKillOnExit): Ditto.
13685 (winapi_DebugBreakProcess): Ditto.
13686 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13687
49b64de6
MG
136882013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13689
13690 * notif.h (notif_event): Add a dummy member to avoid compiler
13691 errors.
13692
d5749ee7
PA
136932013-07-01 Pedro Alves <palves@redhat.com>
13694
13695 * hostio.c (HOSTIO_PATH_MAX): Define.
13696 (require_filename, handle_open, handle_unlink, handle_readlink):
13697 Use it.
13698
d8d2a3ee
PA
136992013-07-01 Pedro Alves <palves@redhat.com>
13700
13701 * server.h: Include "pathmax.h".
13702 * linux-low.c: Don't include sys/param.h.
13703 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13704 MAXPATHLEN.
13705 * win32-low.c: Don't include sys/param.h.
13706 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13707
bc7dea8d
PA
137082013-07-01 Pedro Alves <palves@redhat.com>
13709
13710 * event-loop.c: Don't check HAVE_UNISTD_H before including
13711 <unistd.h>.
13712 * gdbreplay.c: Likewise.
13713 * remote-utils.c: Likewise.
13714 * server.c: Likewise.
13715 * configure.ac: Don't check for unistd.h.
13716 * configure: Regenerate.
13717
d6c2da54
TT
137182013-06-28 Tom Tromey <tromey@redhat.com>
13719
13720 * Makefile.in (version.c): Use version.in, not
13721 common/version.in.
13722
257b6bec
MG
137232013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13724
13725 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13726 * configure: Rebuild.
13727 * Makefile.in (version_host, version_target): Get from configure.
13728 (version.c): Use $(version_host) and $(version_target).
13729
86ebe149
DK
137302013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13731
13732 Fix trace-status to output user name without trailing colon.
13733 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13734
f30aa5af
DK
137352013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13736
13737 Fix trace-status to output proper start-time and stop-time.
13738 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13739 output start time and stop time in hex as gdb expects.
13740
28a93511
YQ
137412013-06-26 Pedro Alves <pedro@codesourcery.com>
13742
13743 * tracepoint.c (build_traceframe_info_xml): Output trace state
13744 variables present in the trace buffer.
13745
01208463
TT
137462013-06-24 Tom Tromey <tromey@redhat.com>
13747
13748 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13749 create-version.sh.
13750 (version.o): Remove.
13751 * gdbreplay.c: Include version.h.
13752 (version, host_name): Don't declare.
13753 * server.h: Include version.h.
13754 (version, host_name): Don't declare.
13755
760256f9
PA
137562013-06-12 Pedro Alves <palves@redhat.com>
13757
13758 * linux-x86-low.c (linux_is_elf64): Delete global.
13759 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13760 with local linux_pid_exe_is_elf_64_file use.
13761
030031ee
PA
137622013-06-11 Pedro Alves <palves@redhat.com>
13763
13764 * linux-low.c (regset_disabled, disable_regset): New functions.
13765 (regsets_fetch_inferior_registers)
13766 (regsets_store_inferior_registers): Use them.
13767 (initialize_regsets_info); Don't allocate the disabled_regsets
13768 array here.
13769 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13770 comment.
13771
5da6eb0a
PA
137722013-06-11 Pedro Alves <palves@redhat.com>
13773
13774 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13775 xmalloc.
13776
7e5aaa09
PA
137772013-06-11 Pedro Alves <palves@redhat.com>
13778
13779 * linux-x86-low.c (initialize_low_arch): Call
13780 init_registers_x32_avx_linux.
13781
d878444c
JK
137822013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13783
13784 Fix compatibility with Android Bionic.
13785 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13786 it is not empty.
13787
3aee8918
PA
137882013-06-07 Pedro Alves <palves@redhat.com>
13789
5f2b57b5 13790 PR server/14823
3aee8918
PA
13791 * Makefile.in (OBS): Add tdesc.o.
13792 (IPA_OBJS): Add tdesc-ipa.o.
13793 (tdesc-ipa.o): New rule.
13794 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13795 interface.
13796 * linux-low.c (new_inferior): Delete.
13797 (disabled_regsets, num_regsets): Delete.
13798 (linux_add_process): Adjust to set the new per-process
13799 new_inferior flag.
13800 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13801 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13802 was a stop. When calling arch_setup, switch the current inferior
13803 to the thread that got an event.
13804 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13805 (regsets_fetch_inferior_registers)
13806 (regsets_store_inferior_registers): New regsets_info parameter.
13807 Adjust to use it.
13808 (linux_register_in_regsets): New regs_info parameter. Adjust to
13809 use it.
13810 (register_addr, fetch_register, store_register): New usrregs_info
13811 parameter. Adjust to use it.
13812 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13813 parameter regs_info. Adjust to use it.
13814 (linux_fetch_registers): Get the current inferior's regs_info, and
13815 adjust to use it.
13816 (linux_store_registers): Ditto.
13817 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13818 (initialize_low): Don't initialize the target_regsets here. Call
13819 initialize_low_arch.
13820 * linux-low.h (target_regsets): Delete declaration.
13821 (struct regsets_info): New.
13822 (struct usrregs_info): New.
13823 (struct regs_info): New.
13824 (struct process_info_private) <new_inferior>: New field.
13825 (struct linux_target_ops): Delete the num_regs, regmap, and
13826 regset_bitmap fields. New field regs_info.
13827 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13828 * i387-fp.c (num_xmm_registers): Delete.
13829 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13830 calls to new interface.
13831 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13832 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13833 Infer the number of xmm registers from the regcache's target
13834 description.
13835 * i387-fp.h (num_xmm_registers): Delete.
13836 * inferiors.c (add_thread): Don't install the thread's regcache
13837 here.
13838 * proc-service.c (gregset_info): Fetch the current inferior's
13839 regs_info. Adjust to use it.
13840 * regcache.c: Include tdesc.h.
13841 (register_bytes, reg_defs, num_registers)
13842 (gdbserver_expedite_regs): Delete.
13843 (get_thread_regcache): If the thread doesn't have a regcache yet,
13844 create one, instead of aborting gdbserver.
13845 (regcache_invalidate_one): Rename to ...
13846 (regcache_invalidate_thread): ... this.
13847 (regcache_invalidate_one): New.
13848 (regcache_invalidate): Only invalidate registers of the current
13849 process.
13850 (init_register_cache): Add target_desc parameter, and use it.
13851 (new_register_cache): Ditto. Assert the target description has a
13852 non zero registers_size.
13853 (regcache_cpy): Add assertions. Adjust.
13854 (realloc_register_cache, set_register_cache): Delete.
13855 (registers_to_string, registers_from_string): Adjust.
13856 (find_register_by_name, find_regno, find_register_by_number)
13857 (register_cache_size): Add target_desc parameter, and use it.
13858 (free_register_cache_thread, free_register_cache_thread_one)
13859 (regcache_release, register_cache_size): New.
13860 (register_size): Add target_desc parameter, and use it.
13861 (register_data, supply_register, supply_register_zeroed)
13862 (supply_regblock, supply_register_by_name, collect_register)
13863 (collect_register_as_string, collect_register_by_name): Adjust.
13864 * regcache.h (struct target_desc): Forward declare.
13865 (struct regcache) <tdesc>: New field.
13866 (init_register_cache, new_register_cache): Add target_desc
13867 parameter.
13868 (regcache_invalidate_thread): Declare.
13869 (regcache_invalidate_one): Delete declaration.
13870 (regcache_release): Declare.
13871 (find_register_by_number, register_cache_size, register_size)
13872 (find_regno): Add target_desc parameter.
13873 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13874 declarations.
13875 * remote-utils.c: Include tdesc.h.
13876 (outreg, prepare_resume_reply): Adjust.
13877 * server.c: Include tdesc.h.
13878 (gdbserver_xmltarget): Delete declaration.
13879 (get_features_xml, process_serial_event): Adjust.
13880 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13881 declare.
13882 (struct process_info) <tdesc>: New field.
13883 (ipa_tdesc): Declare.
13884 * tdesc.c: New file.
13885 * tdesc.h: New file.
13886 * tracepoint.c: Include tdesc.h.
13887 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13888 (get_context_regcache): Adjust to pass ipa_tdesc down.
13889 (do_action_at_tracepoint): Adjust to get the register cache size
13890 from the context regcache's description.
13891 (traceframe_walk_blocks): Adjust to get the register cache size
13892 from the current trace frame's description.
13893 (traceframe_get_pc): Adjust to get current trace frame's
13894 description and pass it down.
13895 (gdb_collect): Adjust to get the register cache size from the
13896 IPA's description.
13897 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13898 (gdbserver_xmltarget): Delete.
13899 (initialize_low_tracepoint): Set the ipa's target description.
13900 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13901 (initialize_low_tracepoint): Set the ipa's target description.
13902 * linux-x86-low.c: Include tdesc.h.
13903 [__x86_64__] (is_64bit_tdesc): New.
13904 (ps_get_thread_area, x86_get_thread_area): Use it.
13905 (i386_cannot_store_register): Rename to ...
13906 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13907 (i386_cannot_fetch_register): Rename to ...
13908 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13909 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13910 to new interface.
13911 (target_regsets): Rename to ...
13912 (x86_regsets): ... this.
13913 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13914 interface.
13915 (x86_siginfo_fixup): Use is_64bit_tdesc.
13916 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13917 (tdesc_x32_avx_linux, tdesc_x32_linux)
13918 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13919 Declare.
13920 (x86_linux_update_xmltarget): Delete.
13921 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13922 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13923 (AMD64_LINUX_USER64_CS): New.
13924 (x86_linux_read_description): New, based on
13925 x86_linux_update_xmltarget.
13926 (same_process_callback): New.
13927 (x86_arch_setup_process_callback): New.
13928 (x86_linux_update_xmltarget): New.
13929 (x86_regsets_info): New.
13930 (amd64_linux_regs_info): New.
13931 (i386_linux_usrregs_info): New.
13932 (i386_linux_regs_info): New.
13933 (x86_linux_regs_info): New.
13934 (x86_arch_setup): Reimplement.
13935 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13936 (x86_emit_ops): Ditto.
13937 (the_low_target): Adjust. Install x86_linux_regs_info,
13938 x86_cannot_fetch_register, and x86_cannot_store_register.
13939 (initialize_low_arch): New.
13940 * linux-ia64-low.c (tdesc_ia64): Declare.
13941 (ia64_fetch_register): Adjust.
13942 (ia64_usrregs_info, regs_info): New globals.
13943 (ia64_regs_info): New function.
13944 (the_low_target): Adjust.
13945 (initialize_low_arch): New function.
13946 * linux-sparc-low.c (tdesc_sparc64): Declare.
13947 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13948 Adjust.
13949 (sparc_arch_setup): New function.
13950 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13951 (the_low_target): Adjust.
13952 (initialize_low_arch): New function.
13953 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13954 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13955 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13956 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13957 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13958 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13959 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13960 (tdesc_powerpc_isa205_vsx64l): Declare.
13961 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13962 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13963 (ppc_set_pc, ppc_get_hwcap): Adjust.
13964 (ppc_usrregs_info): Forward declare.
13965 (!__powerpc64__) ppc_regmap_adjusted: New global.
13966 (ppc_arch_setup): Adjust to the current process'es target
13967 description.
13968 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13969 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13970 (ppc_store_evrregset): Adjust.
13971 (target_regsets): Rename to ...
13972 (ppc_regsets): ... this, and make static.
13973 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13974 (ppc_regs_info): New function.
13975 (the_low_target): Adjust.
13976 (initialize_low_arch): New function.
13977 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13978 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13979 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13980 (tdesc_s390x_linux64v2): Declare.
13981 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13982 (s390_fill_gregset, s390_store_last_break): Adjust.
13983 (target_regsets): Rename to ...
13984 (s390_regsets): ... this, and make static.
13985 (s390_get_pc, s390_set_pc): Adjust.
13986 (s390_get_hwcap): New target_desc parameter, and use it.
13987 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13988 (s390_arch_setup): Adjust to set the current process'es target
13989 description. Don't adjust the regmap.
13990 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13991 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13992 (regs_info_3264): New globals.
13993 (s390_regs_info): New function.
13994 (the_low_target): Adjust.
13995 (initialize_low_arch): New function.
13996 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13997 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13998 [__mips64] (init_registers_mips_linux)
13999 (init_registers_mips_dsp_linux): Delete defines.
14000 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14001 (have_dsp): New global.
14002 (mips_read_description): New, based on mips_arch_setup.
14003 (mips_arch_setup): Reimplement.
14004 (get_usrregs_info): New function.
14005 (mips_cannot_fetch_register, mips_cannot_store_register)
14006 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14007 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14008 (target_regsets): Rename to ...
14009 (mips_regsets): ... this, and make static.
14010 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14011 (dsp_regs_info, regs_info): New globals.
14012 (mips_regs_info): New function.
14013 (the_low_target): Adjust.
14014 (initialize_low_arch): New function.
14015 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14016 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14017 Declare.
14018 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14019 (arm_read_description): New, with bits factored from
14020 arm_arch_setup.
14021 (arm_arch_setup): Reimplement.
14022 (target_regsets): Rename to ...
14023 (arm_regsets): ... this, and make static.
14024 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14025 (arm_regs_info): New function.
14026 (the_low_target): Adjust.
14027 (initialize_low_arch): New function.
14028 * linux-m68k-low.c (tdesc_m68k): Declare.
14029 (target_regsets): Rename to ...
14030 (m68k_regsets): ... this, and make static.
14031 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14032 (m68k_regs_info): New function.
14033 (m68k_arch_setup): New function.
14034 (the_low_target): Adjust.
14035 (initialize_low_arch): New function.
14036 * linux-sh-low.c (tdesc_sharch): Declare.
14037 (target_regsets): Rename to ...
14038 (sh_regsets): ... this, and make static.
14039 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14040 (sh_regs_info, sh_arch_setup): New functions.
14041 (the_low_target): Adjust.
14042 (initialize_low_arch): New function.
14043 * linux-bfin-low.c (tdesc_bfin): Declare.
14044 (bfin_arch_setup): New function.
14045 (bfin_usrregs_info, regs_info): New globals.
14046 (bfin_regs_info): New function.
14047 (the_low_target): Adjust.
14048 (initialize_low_arch): New function.
14049 * linux-cris-low.c (tdesc_cris): Declare.
14050 (cris_arch_setup): New function.
14051 (cris_usrregs_info, regs_info): New globals.
14052 (cris_regs_info): New function.
14053 (the_low_target): Adjust.
14054 (initialize_low_arch): New function.
14055 * linux-cris-low.c (tdesc_crisv32): Declare.
14056 (cris_arch_setup): New function.
14057 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14058 (cris_regs_info): New function.
14059 (the_low_target): Adjust.
14060 (initialize_low_arch): New function.
14061 * linux-m32r-low.c (tdesc_m32r): Declare.
14062 (m32r_arch_setup): New function.
14063 (m32r_usrregs_info, regs_info): New globals.
14064 (m32r_regs_info): Adjust.
14065 (initialize_low_arch): New function.
14066 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14067 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14068 (tic6x_usrregs_info): Forward declare.
14069 (tic6x_read_description): New function, based on ...
14070 (tic6x_arch_setup): ... this. Reimplement.
14071 (target_regsets): Rename to ...
14072 (tic6x_regsets): ... this, and make static.
14073 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14074 (tic6x_regs_info): New function.
14075 (the_low_target): Adjust.
14076 (initialize_low_arch): New function.
14077 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14078 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14079 (target_regsets): Rename to ...
14080 (xtensa_regsets): ... this, and make static.
14081 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14082 globals.
14083 (xtensa_arch_setup, xtensa_regs_info): New functions.
14084 (the_low_target): Adjust.
14085 (initialize_low_arch): New function.
14086 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14087 (nios2_arch_setup): Set the current process'es tdesc.
14088 (target_regsets): Rename to ...
14089 (nios2_regsets): ... this.
14090 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14091 (nios2_regs_info): New function.
14092 (the_low_target): Adjust.
14093 (initialize_low_arch): New function.
a261b8f5
PA
14094 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14095 (aarch64_arch_setup): Set the current process'es tdesc.
14096 (target_regsets): Rename to ...
14097 (aarch64_regsets): ... this.
14098 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14099 (aarch64_regs_info): New function.
14100 (the_low_target): Adjust.
14101 (initialize_low_arch): New function.
3aee8918
PA
14102 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14103 globals.
14104 (target_regsets): Rename to ...
14105 (tile_regsets): ... this.
14106 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14107 (tile_regs_info): New function.
14108 (tile_arch_setup): Set the current process'es tdesc.
14109 (the_low_target): Adjust.
14110 (initialize_low_arch): New function.
14111 * spu-low.c (tdesc_spu): Declare.
14112 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14113 * win32-arm-low.c (tdesc_arm): Declare.
14114 (arm_arch_setup): New function.
14115 (the_low_target): Install arm_arch_setup instead of
14116 init_registers_arm.
14117 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14118 (init_windows_x86): Rename to ...
14119 (i386_arch_setup): ... this. Set `win32_tdesc'.
14120 (the_low_target): Adjust.
14121 * win32-low.c (win32_tdesc): New global.
14122 (child_add_thread): Don't create the thread cache here.
14123 (do_initial_child_stuff): Set the new process'es tdesc.
14124 * win32-low.h (struct target_desc): Forward declare.
14125 (win32_tdesc): Declare.
14126 * lynx-i386-low.c (tdesc_i386): Declare global.
14127 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14128 * lynx-low.c (lynx_tdesc): New global.
14129 (lynx_add_process): Set the new process'es tdesc.
14130 * lynx-low.h (struct target_desc): Forward declare.
14131 (lynx_tdesc): Declare global.
14132 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14133 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14134 * nto-low.c (nto_tdesc): New global.
14135 (do_attach): Set the new process'es tdesc.
14136 * nto-low.h (struct target_desc): Forward declare.
14137 (nto_tdesc): Declare.
14138 * nto-x86-low.c (tdesc_i386): Declare.
14139 (nto_x86_arch_setup): Set `nto_tdesc'.
14140
b1fbec62
GB
141412013-06-04 Gary Benson <gbenson@redhat.com>
14142
14143 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14144 to qSupported response when appropriate.
14145 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14146 with nonzero-length annex.
14147 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14148 arguments supplied in annex.
14149
d1ec4ce7
DE
141502013-05-31 Doug Evans <dje@google.com>
14151
ac44adcb 14152 PR server/15594
d1ec4ce7
DE
14153 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14154 64 bits in 64-cross-32 environment.
14155
9b25f2d3
PA
141562013-05-28 Pedro Alves <palves@redhat.com>
14157
14158 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14159 (aarch64-without-fpu.c): Delete rule.
14160 * configure.srv (aarch64*-*-linux*): Remove references to
14161 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14162 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14163 declaration.
14164
6740dc9c
PA
141652013-05-24 Pedro Alves <palves@redhat.com>
14166
14167 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14168 instead of strchr/decode_address. Error if the range isn't split
14169 with a ','. Don't assume there's be a ':' in the action.
14170
c2d6af84
PA
141712013-05-23 Yao Qi <yao@codesourcery.com>
14172 Pedro Alves <palves@redhat.com>
14173
14174 * linux-low.c (lwp_in_step_range): New function.
14175 (linux_wait_1): If the thread was range stepping and stopped
14176 outside the stepping range, report the stop to GDB. Otherwise,
14177 continue stepping. Add range stepping debug output.
14178 (linux_set_resume_request): Copy the step range from the resume
14179 request to the lwp.
14180 (linux_supports_range_stepping): New.
14181 (linux_target_ops) <supports_range_stepping>: Set to
14182 linux_supports_range_stepping.
14183 * linux-low.h (struct linux_target_ops)
14184 <supports_range_stepping>: New field.
14185 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14186 * linux-x86-low.c (x86_supports_range_stepping): New.
14187 (the_low_target) <supports_range_stepping>: Set to
14188 x86_supports_range_stepping.
14189 * server.c (handle_v_cont): Handle 'r' action.
14190 (handle_v_requests): Append ";r" if the target supports range
14191 stepping.
14192 * target.h (struct thread_resume) <step_range_start,
14193 step_range_end>: New fields.
14194 (struct target_ops) <supports_range_stepping>:
14195 New field.
14196 (target_supports_range_stepping): New macro.
14197
58794e1a
JB
141982013-05-17 Joel Brobecker <brobecker@adacore.com>
14199
14200 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14201 confusion in comment.
14202
d631c5a7
JB
142032013-05-17 Joel Brobecker <brobecker@adacore.com>
14204
14205 * lynx-low.c (struct process_info_private): New type.
14206 (lynx_add_process): New function.
14207 (lynx_create_inferior, lynx_attach): Replace calls to
14208 add_process by calls to lynx_add_process.
14209 (lynx_resume): If PTID is null, then try using
14210 current_process()->private->last_wait_event_ptid.
14211 Add comments.
14212 (lynx_clear_inferiors): Delete. The contents of that function
14213 has been inlined in lynx_mourn;
14214 (lynx_wait_1): Save the ptid in the process's private data.
14215 (lynx_mourn): Free the process' private data. Replace call
14216 to lynx_clear_inferiors by call to clear_inferiors.
14217
96f7a20f
YQ
142182013-05-17 Yao Qi <yao@codesourcery.com>
14219
14220 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14221 the right place.
14222
db0dfaa0
LM
142232013-05-16 Luis Machado <lgustavo@codesourcery.com>
14224
14225 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14226 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14227 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14228 PT_TEXT_END_ADDR guards. Update comments.
14229 (linux_target_op) <read_offsets>: Conditionally define to
14230 linux_read_offsets if the target is UCLIBC and if it defines
14231 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14232
68f5f838
SL
142332013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14234 Andrew Jenner <andrew@codesourcery.com>
14235
14236 * Makefile.in (SFILES): Add linux-nios2-low.c.
14237 (clean): Add action to delete nios2-linux.c.
14238 (nios2-linux.c): New rule.
14239 * configure.srv: Add nios2*-*-linux*.
14240 * linux-nios2-low.c: New.
14241
1ebff1fd
HAQ
142422013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14243
14244 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14245
f6150862
HZ
142462013-04-25 Hui Zhu <hui@codesourcery.com>
14247
14248 PR gdb/15186
f6150862
HZ
14249 * ax.c (ax_printf): Add fflush.
14250
614c279d
TT
142512013-04-22 Tom Tromey <tromey@redhat.com>
14252
14253 * Makefile.in (SFILES): Add filestuff.c.
14254 (OBS): Add filestuff.o.
14255 (filestuff.o): New target.
14256 * config.in, configure: Rebuild.
14257 * configure.ac: Check for fdwalk, pipe2.
14258
7d4e5717
PA
142592013-04-17 Pedro Alves <palves@redhat.com>
14260
14261 * configure.ac (USE_THREAD_DB): Delete variable.
14262 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14263 Don't AC_SUBST USE_THREAD_DB.
14264 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14265 * config.in, configure: Regenerate.
14266
d5c93e41
PA
142672013-04-16 Pedro Alves <palves@redhat.com>
14268
14269 * linux-low.h (struct lwp_info) <thread_known>: Move under
14270 the USE_THREAD_DB #ifdef.
14271
04f5fe89
PA
142722013-04-16 Pedro Alves <palves@redhat.com>
14273
14274 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14275 (linux-low.o): Delete rule.
14276 * linux-low.h: Always include "gdb_thread_db.h" instead of
14277 conditionally including thread_db.h.
14278 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14279 HAVE_THREAD_DB_H.
14280
480b27bf
JK
142812013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14282
14283 * Makefile.in (install-only): Fix make install regression.
14284
43662968
JK
142852013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14286
14287 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14288 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14289 installation.
14290 * gdbserver.1: Remove.
14291
3e74e146
PA
142922013-03-22 Pedro Alves <palves@redhat.com>
14293
14294 * linux-low.c (handle_extended_wait): Don't call
14295 linux_enable_event_reporting.
14296
a8347a2a
TT
142972013-03-15 Tony Theodore <tonyt@logyst.com>
14298
14299 PR build/9098:
14300 * Makefile.in (SHELL): Use @SHELL@.
14301
eeb56fa7
SDJ
143022013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14303
14304 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14305 compiler warning.
14306
4fa7e2ff
JB
143072013-03-13 Joel Brobecker <brobecker@adacore.com>
14308
14309 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14310 Remove extraneous NULL element.
14311
8ddb1965
YQ
143122013-03-13 Yao Qi <yao@codesourcery.com>
14313
14314 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14315 'V' block in trace frame.
14316
9accd112
MM
143172013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14318
14319 * target.h (struct target_ops): Add btrace ops.
14320 (target_supports_btrace): New macro.
14321 (target_enable_btrace): New macro.
14322 (target_disable_btrace): New macro.
14323 (target_read_btrace): New macro.
14324 * gdbthread.h (struct thread_info): Add btrace field.
14325 * server.c: Include btrace-common.h.
14326 (handle_btrace_general_set): New function.
14327 (handle_btrace_enable): New function.
14328 (handle_btrace_disable): New function.
14329 (handle_general_set): Call handle_btrace_general_set.
14330 (handle_qxfer_btrace): New function.
14331 (struct qxfer qxfer_packets[]): Add btrace entry.
14332 * inferiors.c (remove_thread): Disable btrace.
14333 * linux-low: Include linux-btrace.h.
14334 (linux_low_enable_btrace): New function.
14335 (linux_low_read_btrace): New function.
14336 (linux_target_ops): Add btrace ops.
14337 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14338 Add srv_linux_btrace=yes.
14339 (x86_64-*-linux*): Add linux-btrace.o.
14340 Add srv_linux_btrace=yes.
14341 * configure.ac: Define HAVE_LINUX_BTRACE.
14342 * config.in: Regenerated.
14343 * configure: Regenerated.
14344
5cc22e4c
MM
143452013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14346
14347 * server.c (handle_qxfer): Preserve error message if -3 is
14348 returned.
14349 (qxfer): Document the -3 return value.
14350
7c97f91e
MM
143512013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14352
14353 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14354 (linux_btrace_h): New variable.
14355 (linux-btrace.o): New rule.
14356
be9a119c 143572013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14358 Hafiz Abid Qadeer <abidh@codesourcery.com>
14359
14360 * tracepoint.c (trace_buffer_size): New global.
14361 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14362 (init_trace_buffer): Change to one-argument function. Allocate
14363 trace buffer memory.
14364 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14365 handle QTBuffer:size packet.
14366 (cmd_bigqtbuffer_size): New function.
14367 (initialize_tracepoint): Call init_trace_buffer with
14368 DEFAULT_TRACE_BUFFER_SIZE.
14369 * server.c (handle_query): Add QTBuffer:size in the
14370 supported packets.
14371
e64f7499
YQ
143722013-03-07 Yao Qi <yao@codesourcery.com>
14373
14374 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14375 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14376 of -1.
14377 (cmd_qtsp): Adjust condition. Do post increment.
14378 Set cur_action and cur_step_action back to 0.
14379
f0ae6fc3
PA
143802013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14381
14382 PR server/15236
14383 * linux-low.c (linux_write_memory): Return early success if LEN is
14384 zero.
14385
b5b0b0af
CV
143862013-03-05 Corinna Vinschen <vinschen@redhat.de>
14387
334ad4a8 14388 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14389
589bc927
TT
143902013-02-28 Tom Tromey <tromey@redhat.com>
14391
14392 * configure.ac: Invoke AC_SYS_LARGEFILE.
14393 * configure, config.in: Rebuild.
14394
dfe07582
CV
143952013-02-28 Corinna Vinschen <vinschen@redhat.com>
14396
14397 * win32-low.c: Throughout, fix format strings and casts of
14398 printf-like functions to avoid type related warnings on all
14399 platforms.
14400 (get_child_debug_event): Print dwDebugEventCode as hex since
14401 that's how it's usually documented.
14402
736cd585
YQ
144032013-02-28 Yao Qi <yao@codesourcery.com>
14404
14405 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14406 pulongest.
14407
e1f58301
JW
144082013-02-27 Jiong Wang <jiwang@tilera.com>
14409
14410 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14411 (reg-tilegx32.c): New rule.
14412 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14413 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14414 different register info initializer according to elf class.
14415 (init_registers_tilgx32): New function. The tilegx32 register info
14416 initializer.
14417 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14418 (tile_store_gregset): Likewise.
14419
d171ca78
YQ
144202013-02-27 Yao Qi <yao@codesourcery.com>
14421
14422 * server.c (process_point_options): Print debug message when
14423 debug_threads is true.
14424
282bbdf3
YQ
144252013-02-26 Yao Qi <yao@codesourcery.com>
14426
14427 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14428
aca22551
PA
144292013-02-19 Pedro Alves <palves@redhat.com>
14430 Kai Tietz <ktietz@redhat.com>
14431
14432 PR gdb/15161
14433
14434 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14435 instead of strtoul to extract address from packet.
14436 (process_serial_event) <'z'>: Likewise.
14437
4f3cee1c
YQ
144382013-02-18 Yao Qi <yao@codesourcery.com>
14439
14440 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14441
8e1d55a3
PA
144422013-02-14 Pedro Alves <palves@redhat.com>
14443
14444 Plug memory leak.
14445
14446 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14447 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14448
458820da
PA
144492013-02-14 Pedro Alves <palves@redhat.com>
14450
14451 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14452
baea0dae
PA
144532013-02-14 Pedro Alves <palves@redhat.com>
14454
14455 * tracepoint.c (save_string): Delete.
14456 (add_tracepoint_action): Use savestring instead of save_string.
14457
0b1afbb3
PA
144582013-02-12 Pedro Alves <palves@redhat.com>
14459
14460 * linux-xtensa-low.c: Ditto.
14461 * xtensa-xtregs.c: Ditto.
14462
8a4ac37e
PA
144632013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14464
14465 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14466 thread_db.
14467
148de6bb
MS
144682013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14469
14470 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14471 aarch64_num_wp_regs and aarch64_num_bp_regs to
14472 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14473
55fac6e0
MS
144742013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14475
14476 * linux-aarch64-low.c (ps_get_thread_area): Replace
14477 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14478
176eb98c
MS
144792013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14480 Marcus Shawcroft <marcus.shawcroft@arm.com>
14481 Nigel Stephens <nigel.stephens@arm.com>
14482 Yufeng Zhang <yufeng.zhang@arm.com>
14483
14484 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14485 (aarch64.c, aarch64-without-fpu.c): New targets.
14486 * configure.srv (aarch64*-*-linux*): New.
14487 * linux-aarch64-low.c: New file.
14488
56f7af9c
MS
144892013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14490
43aaf8b6 14491 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14492 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14493 (dequeue_one_deferred_signal, linux_resume_one_thread)
14494 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14495 (linux_tracefork_grandchild, linux_test_for_tracefork)
14496 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14497 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14498 where the argument is 0.
14499
60f662b0
YQ
145002013-01-25 Yao Qi <yao@codesourcery.com>
14501
14502 * event-loop.c: Include "queue.h".
14503 (gdb_event_p): New typedef.
14504 (struct gdb_event) <next_event>: Remove.
14505 (event_queue): Change to QUEUE(gdb_event_p).
14506 (async_queue_event): Remove.
14507 (gdb_event_xfree): New.
14508 (initialize_event_loop): New.
14509 (process_event): Use API from QUEUE.
14510 (wait_for_event): Likewise.
14511 * server.c (main): Call initialize_event_loop.
14512 * server.h (initialize_event_loop): Declare.
14513
5ae4861a
YQ
145142013-01-18 Yao Qi <yao@codesourcery.com>
14515
14516 * ax.h (struct eval_agent_expr_context): New.
14517 (gdb_eval_agent_expr): Update declaration.
14518 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14519 TFRAME. Add new argument CTX.
14520 * server.h (struct eval_agent_expr_context): Declare.
14521 (agent_mem_read, agent_tsv_read): Update declaration.
14522 (agent_mem_read_string): Likewise.
14523 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14524 (add_traceframe_block): Add new argument TPOINT.
14525 Increase TPOINT->traceframe_usage.
14526 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14527 eval_tracepoint_agent_expr.
14528 (condition_true_at_tracepoint): Likewise.
14529 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14530 (agent_mem_read_string, agent_tsv_read): Likewise.
14531
85e00e85
YQ
145322013-01-16 Yao Qi <yao@codesourcery.com>
14533
14534 * linux-low.c (linux_resume_one_lwp): Don't check
14535 'lwp->bp_reinsert != 0'.
14536
4039cf45
JB
145372013-01-07 Joel Brobecker <brobecker@adacore.com>
14538 Pedro Alves <palves@redhat.com>
14539
14540 * lynx-low.c (ptrace_request_to_str): Define a temporary
14541 macro and use it to simplify this function's implementation.
14542
9044dee2
JB
145432013-01-07 Joel Brobecker <brobecker@adacore.com>
14544
14545 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14546 sets errno.
14547
e6352c8f
JB
145482013-01-07 Joel Brobecker <brobecker@adacore.com>
14549
14550 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14551
50681a27
JB
145522013-01-07 Joel Brobecker <brobecker@adacore.com>
14553
14554 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14555
3f6e77ef
JB
145562013-01-07 Joel Brobecker <brobecker@adacore.com>
14557
14558 * lynx-low.c (lynx_resume): Use the resume_info parameter
14559 to determine the ptid for the lynx_ptrace call, unless
14560 it is equal to minus_one_ptid, in which case we use the
14561 ptid of the current_inferior.
14562 (lynx_wait_1): After having received a thread create/exit
14563 event, resume the inferior's execution using the signaling
14564 thread's ptid, rather than the old ptid.
14565
7fda33ae
JB
145662013-01-07 Joel Brobecker <brobecker@adacore.com>
14567
14568 * lynx-low.c (lynx_resume): Delete variable ret.
14569
b9786c74
JB
145702013-01-01 Joel Brobecker <brobecker@adacore.com>
14571
14572 * gdbreplay.c (gdbreplay_version): Update copyright year.
14573 * server.c (gdbserver_version): Likewise.
14574
8b93d60f
JB
145752012-12-17 Joel Brobecker <brobecker@adacore.com>
14576
14577 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14578 new thread.
14579
037335a7
JB
145802012-12-17 Joel Brobecker <brobecker@adacore.com>
14581
14582 * lynx-low.c (ptrace_request_to_str): Add handling for
14583 PTRACE_GETTRACESIG.
14584
52d4cbd8
JB
145852012-12-17 Joel Brobecker <brobecker@adacore.com>
14586
14587 * lynx-low.c (lynx_attach): Delete variable new_process.
14588
ab8f6ca9
JB
145892012-12-17 Joel Brobecker <brobecker@adacore.com>
14590
14591 * lynx-low.c (lynx_create_inferior): Delete variable
14592 new_process.
14593
78cbc024
JB
145942012-12-17 Joel Brobecker <brobecker@adacore.com>
14595
14596 * lynx-low.c (ptrace_request_to_str): Do not handle
14597 PTRACE_GETTHREADLIST if this macro does not exist.
14598
14a00470
YQ
145992012-12-15 Yao Qi <yao@codesourcery.com>
14600
14601 * Makefile.in (OBS): Add notif.o.
14602 * notif.c, notif.h: New.
14603 * server.c: Include "notif.h".
14604 (struct vstop_notif) <next>: Remove.
14605 <base>: New field.
14606 (queue_stop_reply): Update.
14607 (push_event, send_next_stop_reply): Remove.
14608 (discard_queued_stop_replies): Update.
14609 (notif_stop): New variable.
14610 (handle_v_stopped): Remove.
14611 (handle_v_requests): Don't call handle_v_stopped. Call
14612 handle_ack_notif instead.
14613 (queue_stop_reply_callback): Call notif_event_enque instead
14614 of queue_stop_reply.
14615 (handle_status): Don't call send_next_stop_reply, call
14616 notif_write_event instead.
14617 (kill_inferior_callback): Likewise.
14618 (detach_or_kill_inferior_callback): Likewise.
14619 (main): Call initialize_notif.
14620 (process_serial_event): Call QUEUE_is_empty.
14621 (handle_target_event): Call notif_push instead of push event.
14622 * server.h (push_event): Remove declaration.
14623
61c125b9
TT
146242012-12-10 Tom Tromey <tromey@redhat.com>
14625
14626 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14627 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14628 macros.
14629 (.c.o): Rewrite.
14630 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14631 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14632 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14633 (amd64-linux-ipa.o, ax.o): Rewrite.
14634 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14635 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14636 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14637 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14638 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14639 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14640 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14641 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14642 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14643 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14644 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14645 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14646 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14647 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14648 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14649 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14650 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14651 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14652 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14653 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14654 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14655 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14656 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14657 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14658 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14659 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14660 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14661 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14662 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14663 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14664 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14665 (reg-tilegx.o): Remove.
14666 (all_object_files): New macro.
14667 Include .deps files.
14668 * aclocal.m4, configure: Rebuild.
14669 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14670 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14671 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14672
e90e9ad9
TT
146732012-12-05 Tom Tromey <tromey@redhat.com>
14674
14675 PR gdb/14917:
14676 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14677
02d403bf 146782012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14679
14680 * configure.ac: Check for linux/perf_event.h.
14681 * config.in: Regenerated.
14682 * configure: Regenerated.
14683
0270a750
PA
146842012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14685
14686 * hostio.c (handle_readlink): Decrease buffer size
14687 parameter passed to readlink by one byte.
14688
8c29b58e
YQ
146892012-11-26 Yao Qi <yao@codesourcery.com>
14690
14691 * configure.ac (build_warnings): Append '-Wempty-body'.
14692 * configure: Regenerated.
14693 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14694 body.
14695
8bdce1ff
PM
146962012-11-15 Pierre Muller <muller@sourceware.org>
14697
14698 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14699 * config.in: Regenerate.
14700 * configure: Regenerate.
14701 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14702 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14703 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14704 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14705 header.
14706 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14707 instead of <sys/wait.h> header.
14708 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14709
02d403bf 147102012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14711
14712 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14713 (various make rules): Remove -DGDBSERVER
14714
fbd5db48
YQ
147152012-11-09 Yao Qi <yao@codesourcery.com>
14716
14717 * spu-low.c (current_ptid): Move it to ..
14718 * gdbthread.h: ... here. New.
14719 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14720 * server.c (myresume, process_serial_event): Likewise.
14721 * thread-db.c (thread_db_find_new_threads): Likewise.
14722 * tracepoint.c (run_inferior_command): Likewise.
14723
b3dc46ff
AB
147242012-10-01 Andrew Burgess <aburgess@broadcom.com>
14725
14726 * server.c (handle_search_memory_1): Include access length in
14727 warning message.
14728
07c04788
HPN
147292012-09-05 Michael Brandt <michael.brandt@axis.com>
14730
14731 * linux-crisv32-low.c: Fix compile errors.
14732
918d227b
YQ
147332012-09-04 Yao Qi <yao@codesourcery.com>
14734
14735 * tracepoint.c (cmd_qtsv): Adjust debug message.
14736 Don't check CUR_TPOINT.
14737
18c1b81a
YQ
147382012-08-28 Yao Qi <yao@codesourcery.com>
14739
14740 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14741 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14742 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14743 Remove declarations of xmalloc, xreallloc, xstrdup and
14744 freeargv.
14745 * Makefile.in (libiberty_h): New.
14746 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14747 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14748
dc82f37b
YQ
147492012-08-23 Yao Qi <yao@codesourcery.com>
14750
14751 * server.h: Remove declaration of 'xsnprintf'.
14752
406b1477
KS
147532012-08-22 Keith Seitz <keiths@redhat.com>
14754
14755 * server.h: Include build-gnulib-gbserver/config.h.
14756 * gdbreplay.c: Likewise.
14757
e6712ff1
DE
147582012-08-08 Doug Evans <dje@google.com>
14759
14760 * Makefile.in (SFILES): Add gdb_vecs.c.
14761 (OBS): Add gdb_vecs.o.
14762 (gdb_vecs_h, host_defs_h): New variables.
14763 (thread-db.o): Add $(gdb_vecs_h) dependency.
14764 (gdb_vecs.o): New rule.
14765 * thread-db.c: #include "gdb_vecs.h".
14766 (thread_db_load_search): Use a vector to iterate over path elements.
14767 Handle text appearing after "$pdir".
14768
14769 * configure.ac: Add check for strstr.
14770 * config.in: Regenerate.
14771 * configure: Regenerate.
14772
7c3270ae
UW
147732012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14774
14775 * hostio.c (handle_pread): If pread fails, fall back to attempting
14776 lseek/read.
14777 (handle_pwrite): Likewise for pwrite.
14778
b62e2b27
UW
147792012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14780
14781 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14782 between unsupported TYPE and unimplementable ADDR/LEN combination.
14783 (arm_insert_point): Act on new return value.
14784
78a99e91
PA
147852012-07-31 Pedro Alves <palves@redhat.com>
14786
14787 * server.c (process_point_options): Only skip tokens if we find
14788 one that is unrecognized. Don't treat 'X' specially while
14789 skipping unrecognized tokens.
14790
fcf303ab
UW
147912012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14792
14793 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14794 to 4-byte-align HW breakpoint addresses for Thumb.
14795
7255706c
YQ
147962012-07-27 Yao Qi <yao@codesourcery.com>
14797
14798 PR remote/14161.
14799
14800 * server.h: Declare gdb_agent_about_to_close.
14801 * target.c (kill_inferior): Include "agent.h".
14802 New. Send command 'kill'.
14803 * target.h (kill_inferior): Removed macro.
14804 * tracepoint.c (gdb_agent_about_to_close): New.
14805 (gdb_agent_helper_thread): Handle command 'close'.
14806 Wait endlessly until the inferior stops.
14807 Install gdb_agent_remove_socket to atexit hook.
14808 (agent_socket_name): New static variable.
14809 (gdb_agent_socket_init): Replace local variable 'name' with
14810 'agent_socket_name'.
14811 (gdb_agent_remove_socket): New.
14812
5a3f286f
YQ
148132012-07-27 Yao Qi <yao@codesourcery.com>
14814
14815 * server.c (process_point_options): Stop at 'X' when parsing.
14816
961bd387
ME
148172012-07-19 Michael Eager <eager@eagercon.com>
14818
a261b8f5 14819 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14820 to hw_execute.
14821 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14822 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14823 hardware breakpoint.
14824
aa7c7447
JK
148252012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14826
14827 * gdbserver/linux-low.c (initialize_low): Call
14828 linux_ptrace_init_warnings.
14829
7f216e7c
DE
148302012-07-02 Doug Evans <dje@google.com>
14831
14832 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14833 pointer to int.
14834
d3ce09f5
SS
148352012-07-02 Stan Shebs <stan@codesourcery.com>
14836
14837 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14838 (ax.o): Add it to build rule.
14839 (ax-ipa.o): Ditto.
14840 (OBS): Add format.o.
14841 (IPA_OBS): Add format.o.
14842 * server.c (handle_query): Claim support for breakpoint commands.
14843 (process_point_options): Add command case.
14844 (process_serial_event): Leave running if there are printfs in
14845 effect.
14846 * mem-break.h (any_persistent_commands): Declare.
14847 (add_breakpoint_commands): Declare.
14848 (gdb_no_commands_at_breakpoint): Declare.
14849 (run_breakpoint_commands): Declare.
14850 * mem-break.c (struct point_command_list): New struct.
14851 (struct breakpoint): New field command_list.
14852 (any_persistent_commands): New function.
14853 (add_commands_to_breakpoint): New function.
14854 (add_breakpoint_commands): New function.
14855 (gdb_no_commands_at_breakpoint): New function.
14856 (run_breakpoint_commands): New function.
14857 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14858 locally.
14859 * ax.c: Include format.h.
14860 (ax_printf): New function.
14861 (gdb_eval_agent_expr): Add printf opcode.
14862
2f8f6aed
YQ
148632012-06-13 Yao Qi <yao@codesourcery.com>
14864
14865 * server.c (start_inferior): Remove duplicated writes to fields
14866 'last_resume_kind' and 'last_status' of 'current_inferior'.
14867
0c9070b3
YQ
148682012-06-12 Yao Qi <yao@codesourcery.com>
14869 Pedro Alves <palves@redhat.com>
14870
14871 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14872 comment.
14873 * server.c (handle_v_cont): Extend comment.
14874
c52daf70
YQ
148752012-06-11 Yao Qi <yao@codesourcery.com>
14876
14877 * linux-low.c (linux_attach): Add 'static'.
14878
d38bbb0a
YQ
148792012-06-06 Yao Qi <yao@codesourcery.com>
14880
14881 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14882
89dc0afd
JK
148832012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14884
14885 Fix gcc -flto compilation warning.
14886 * server.c (main): Make variable multi_mode and attach volatile.
14887
75f62ce7
TJB
148882012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14889
14890 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14891 if the platform doesn't know about it.
14892
65f479b6
PA
148932012-05-30 Jeff Kenton <jkenton@tilera.com>
14894
14895 * Makefile.in (SFILES): Add linux-tile-low.c.
14896 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14897 * configure.srv: Handle tilegx-*-linux*.
14898 * linux-tile-low.c: New file.
14899
0c5bf5a9
JK
149002012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14901
14902 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14903
a493e3e2
PA
149042012-05-24 Pedro Alves <palves@redhat.com>
14905
14906 PR gdb/7205
14907
43aaf8b6 14908 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 14909
2ea28649
PA
149102012-05-24 Pedro Alves <palves@redhat.com>
14911
14912 PR gdb/7205
14913
14914 Replace target_signal with gdb_signal throughout.
14915
8d409d16
MR
149162012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14917
14918 * linux-low.c (linux_store_registers): Avoid the copying sequence
14919 when no data has been retrieved by ptrace.
14920
23512c01
MGD
149212012-05-22 Will Deacon <will.deacon@arm.com>
14922
14923 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14924 Include asm/ptrace.h.
14925 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14926 already defined.
14927
4934b29e
MR
149282012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14929
14930 * linux-low.c (linux_store_registers): Don't re-retrieve data
14931 with ptrace that has already been obtained from /proc. Always
14932 copy any data retrieved with ptrace to the buffer supplied.
14933
bde24c0a
PA
149342012-05-11 Yao Qi <yao@codesourcery.com>
14935 Pedro Alves <palves@redhat.com>
14936
14937 * linux-low.c (enum stopping_threads_kind): New.
14938 (stopping_threads): Change type to `enum stopping_threads_kind'.
14939 (handle_extended_wait): If stopping and suspending threads, leave
14940 the new_lwp suspended too.
14941 (linux_wait_for_event): Adjust.
14942 (stop_all_lwps): Set `stopping_threads' to
14943 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14944 whether we're suspending threads or just stopping them. Assert no
14945 recursion happens.
14946
623b6bdf
YQ
149472012-04-29 Yao Qi <yao@codesourcery.com>
14948
14949 * server.h: Move some code to ...
14950 * gdbthread.h: ... here. New.
14951 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14952 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14953 (nto-low.o, win32-low.o): Likewise.
14954 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14955 * regcache.c, remote-utils.c, server.c: Likewise.
14956 * target.c, tracepoint.c, win32-low.c: Likewise.
14957
f15f9948
TJB
149582012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14959
14960 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14961 (PTRACE_ARG4_TYPE): Likewise.
14962 (PTRACE_XFER_TYPE): Likewise.
14963 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14964 ptrace to PTRACE_ARG3_TYPE.
14965 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14966 (PTRACE_ARG4_TYPE): Likewise.
14967 (PTRACE_XFER_TYPE): Likewise.
14968 (linux_detach_one_lwp): Cast fourth argument of
14969 ptrace to long then PTRACE_ARG4_TYPE.
14970 (regsets_fetch_inferior_registers): Cast third argument of
14971 ptrace to long then PTRACE_ARG3_TYPE.
14972 (regsets_store_inferior_registers): Likewise.
14973
38ea300a
PA
149742012-04-20 Pedro Alves <palves@redhat.com>
14975
14976 * configure: Regenerate.
14977
c971b7fa
PA
149782012-04-19 Pedro Alves <palves@redhat.com>
14979
43aaf8b6 14980 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 14981 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
14982 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14983 (all, install-only, uninstall, clean-info, all-lib, clean): No
14984 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14985 (maintainer-clean realclean distclean): Use subdir_do.
14986 (subdir_do): New.
14987 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 14988 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
14989 * acinclude.m4: Include acx_configure_dir.m4.
14990 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14991 calls. Call AC_PROG_RANLIB. Configure gnulib using
14992 ACX_CONFIGURE_DIR.
14993 (GNULIB): New.
14994 (GNULIB_STDINT_H): Adjust.
14995 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14996 * gdbreplay.c: Include build-gnulib/config.h.
14997 * server.h: Likewise.
14998 * aclocal.m4: Regenerate.
14999 * config.in: Regenerate.
15000 * configure: Regenerate.
c971b7fa 15001
809277f8
PA
150022012-04-19 Pedro Alves <palves@redhat.com>
15003
15004 * Makefile.in (LIBGNU, INCGNU): Adjust.
15005 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15006 (all, install-only, uninstall, clean-info, all-lib, clean)
15007 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15008 * configure.ac: Adjust AC_OUTPUT output.
15009 * aclocal.m4: Regenerate.
15010 * configure: Regenerate.
15011
fd9bb8b8
PA
150122012-04-19 Pedro Alves <palves@redhat.com>
15013
15014 * Makefile.in (generated_files): New.
15015 (server_h): Remove the explicit dependency on config.h, and depend
15016 on $generated_files.
15017
1c298c66
PA
150182012-04-19 Pedro Alves <palves@redhat.com>
15019
15020 * Makefile.in (INCGNU): Add -Ignulib.
15021
57c4b50b
PA
150222012-04-19 Pedro Alves <palves@redhat.com>
15023
15024 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15025 (INCGNU): ... this, and spell out -I here.
15026 (GNULIB_LIB): Rename to ...
15027 (LIBGNU): ... this.
15028 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15029
1030e047
PA
150302012-04-19 Pedro Alves <palves@redhat.com>
15031
15032 * config.in: Regenerate.
15033
447d4319
PA
150342012-04-19 Pedro Alves <palves@redhat.com>
15035
15036 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15037 * server.h (memmem): Remove declaration.
15038 * config.in: Regenerate.
15039 * configure: Regenerate.
15040
aad9eab9
YQ
150412012-04-19 Yao Qi <yao@codesourcery.com>
15042
15043 * Makefile.in (SFILES): Add common/vec.c.
15044 (OBS): Add vec.o.
15045 (vec.o): New rule.
15046
3e10640f
YQ
150472012-04-19 Yao Qi <yao@codesourcery.com>
15048
15049 * remote-utils.c (prepare_resume_reply): Replace with macro
15050 target_core_of_thread.
15051 * server.c (handle_qxfer_threads_proper): Likewise.
15052 * target.h (traget_core_of_thread): New macro.
15053
71622373
PA
150542012-04-18 Pedro Alves <palves@redhat.com>
15055
15056 * aclocal.m4: Regenerate.
15057 * configure: Regenerate.
15058
80d26939
YQ
150592012-04-16 Yao Qi <yao@codesourcery.com>
15060
15061 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15062 duplicated on address.
15063
42476b70
YQ
150642012-04-16 Yao Qi <yao@codesourcery.com>
15065
15066 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15067 (struct tracepoint_action_ops) <send>: New field.
15068 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15069 (agent_expr_send, x_tracepoint_action_send): New.
15070 (l_tracepoint_action_send): New.
15071 (cmd_qtdp): Download and install tracepoint
15072 according to `use_agent'.
15073 (run_inferior_command): Add one more parameter `len'.
15074 Update callers.
15075 (tracepoint_send_agent): New.
15076 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15077
7bc83639
YQ
150782012-04-16 Yao Qi <yao@codesourcery.com>
15079
15080 * tracepoint.c (download_tracepoints): Moved to ...
15081 (cmd_qtstart): ... here.
15082
5f18041e
YQ
150832012-04-14 Yao Qi <yao@codesourcery.com>
15084
15085 * tracepoint.c: Include inttypes.h.
15086 (struct collect_memory_action): Use sized types.
15087 (struct tracepoint): Likewise.
15088 (cmd_qtdp, stop_tracing): Update print specifiers.
15089 (cmd_qtp, response_tracepoint): Likewise.
15090 (collect_data_at_tracepoint): Likewise.
15091 (collect_data_at_step): Likewise.
15092
55a8c076
YQ
150932012-04-14 Yao Qi <yao@codesourcery.com>
15094
15095 Import gnulib module inttypes.
15096 * aclocal.m4, config.in, configure: Regenerated.
15097
dc750257
YQ
150982012-04-14 Yao Qi <yao@codesourcery.com>
15099
15100 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15101 Makefile and config.status at last.
15102
0ab5faf9
YQ
151032012-04-13 Yao Qi <yao@codesourcery.com>
15104
15105 * tracepoint.c: Include stdint.h unconditionally.
15106
18f5fd81
TJB
151072012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15108
15109 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15110 on BFD_HAVE_SYS_PROCFS_TYPE.
15111 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15112 * configure: Regenerate.
15113 * config.in: Likewise.
15114
4d47af5c
L
151152012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15116
15117 * Makefile.in (clean): Also remove x32.c x32-linux.c
15118 x32-avx.c x32-avx-linux.c.
15119 (x32.o): New target.
15120 (x32.c): Likewise.
15121 (x32-linux.o): Likewise.
15122 (x32-linux.c): Likewise.
15123 (x32-avx.o): Likewise.
15124 (x32-avx.c): Likewise.
15125 (x32-avx-linux.o): Likewise.
15126 (x32-avx-linux.c): Likewise.
15127
15128 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15129 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15130 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15131 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15132 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15133 i386/x32-avx-linux.xml.
15134
15135 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15136 (init_registers_x32_avx_linux): Likwise.
15137 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15138 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15139
ecedbe58
PA
151402012-04-13 Pedro Alves <palves@redhat.com>
15141
15142 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15143 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15144 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15145 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15146 the sub-make.
15147
c92b5177
L
151482012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15149
15150 * linux-x86-low.c (compat_x32_clock_t): New.
15151 (compat_x32_siginfo_t): Likewise.
15152 (compat_x32_siginfo_from_siginfo): Likewise.
15153 (siginfo_from_compat_x32_siginfo): Likewise.
15154 (linux_is_elf64): Likewise.
15155 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15156 and siginfo_from_compat_x32_siginfo for x32.
15157 (x86_arch_setup): Set linux_is_elf64.
15158
214d508e
L
151592012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15160
15161 PR gdb/13969
15162 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15163 e_machine field.
15164 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15165 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15166 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15167 compatible with process.
15168
c9a1864a
YQ
151692012-04-12 Yao Qi <yao@codesourcery.com>
15170
15171 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15172 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15173 (install-only, install-info, clean): Handle sub dir gnulib.
15174 (all-lib, am--refresh): New targets.
15175 (memmem.o): Remove target.
15176 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15177 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15178 (AC_REPLACE_FUNCS): Remove memmem.
15179 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15180 (AC_OUTPUT): Generate Makefile in gnulib/.
15181 * aclocal.m4, config.in, configure: Regenerated.
15182
367ba2c2
MR
151832012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15184
15185 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15186
9d236627
PA
151872012-04-05 Pedro Alves <palves@redhat.com>
15188
15189 -Werror=strict-aliasing
15190
15191 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15192 pointer.
15193
111217b3
PA
151942012-04-04 Pedro Alves <palves@redhat.com>
15195
15196 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15197 (sparc_store_gregset_from_stack, sparc_store_gregset)
15198 (sparc_breakpoint_at): Fix formatting.
15199
8365dcf5
TJB
152002012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15201
15202 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15203 are available.
15204 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15205 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15206 * config.in: Regenerate.
15207 * configure: Likewise.
15208
689cc2ae
PA
152092012-03-29 Pedro Alves <palves@redhat.com>
15210
15211 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15212 Correct ptrace arguments.
15213
c14dfd32
PA
152142012-03-28 Pedro Alves <palves@redhat.com>
15215
15216 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15217 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15218 (IA64_FR1_REGNUM): New defines.
15219 (ia64_fetch_register): New.
15220 (the_low_target): Install it.
15221 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15222 field.
15223 * linux-low.c (linux_fetch_registers): Try the
15224 the_low_target.fetch_register hook first.
15225
15226 * linux-arm-low.c (the_low_target): Adjust.
15227 * linux-bfin-low.c (the_low_target): Adjust.
15228 * linux-cris-low.c (the_low_target): Adjust.
15229 * linux-crisv32-low.c (the_low_target): Adjust.
15230 * linux-m32r-low.c (the_low_target): Adjust.
15231 * linux-m68k-low.c (the_low_target): Adjust.
15232 * linux-mips-low.c (the_low_target): Adjust.
15233 * linux-ppc-low.c (the_low_target): Adjust.
15234 * linux-s390-low.c (the_low_target): Adjust.
15235 * linux-sh-low.c (the_low_target): Adjust.
15236 * linux-sparc-low.c (the_low_target): Adjust.
15237 * linux-tic6x-low.c (the_low_target): Adjust.
15238 * linux-x86-low.c (the_low_target): Adjust.
15239 * linux-xtensa-low.c (the_low_target): Adjust.
15240
63c88e13
PA
152412012-03-26 Pedro Alves <palves@redhat.com>
15242
15243 * server.c (handle_qxfer_libraries): Don't bail early if
15244 the_target->qxfer_libraries_svr4 is not NULL.
15245
fb723180
PA
152462012-03-26 Pedro Alves <palves@redhat.com>
15247
15248 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15249
0afae3cf
PA
152502012-03-23 Pedro Alves <palves@redhat.com>
15251
15252 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15253 "library-list-svr4" element's start tag when the the DSO list is
15254 empty.
15255
485f1ee4
PA
152562012-03-23 Pedro Alves <palves@redhat.com>
15257
15258 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15259 a variable whose type size is the same as the inferior's pointer
15260 size.
15261
a5362b9a
TS
152622012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15263
15264 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15265 struct siginfo.
15266 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15267 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15268 * linux-low.h: Include <signal.h>.
15269 (struct siginfo): Remove forward declaration.
15270 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15271 struct siginfo.
15272
d226c142
MF
152732012-03-21 Mike Frysinger <vapier@gentoo.org>
15274
15275 * .gitignore: Ignore more files.
15276
122f36ef
PA
152772012-03-19 Pedro Alves <palves@redhat.com>
15278 Jan Kratochvil <jan.kratochvil@redhat.com>
15279
15280 * server.c (cont_thread, general_thread): Add describing comments.
15281 (start_inferior): Clear `cont_thread'.
15282 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15283 of a process.
15284
fc3e5175
YQ
152852012-03-15 Yao Qi <yao@codesourcery.com>
15286
15287 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15288 handling to ...
15289 (cmd_qtdp): ... here.
15290
8d0d92cd
YQ
152912012-03-15 Yao Qi <yao@codesourcery.com>
15292
15293 * tracepoint.c (struct tracepoint_action_ops): New.
15294 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15295 (m_tracepoint_action_download): New.
15296 (r_tracepoint_action_download): New.
15297 (x_tracepoint_action_download): New.
15298 (l_tracepoint_action_download): New.
15299 (add_tracepoint_action): Install `action->ops' according type.
15300 (download_tracepoint_1): Move code `download' function pointer
15301 of various tracepoint_action_ops.
15302
87b0bb13
JK
153032012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15304
15305 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15306 linux_ptrace_attach_warnings.
15307
5f572dec
JK
153082012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15309
15310 * Makefile.in (linux-ptrace.o): New.
15311 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15312 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15313 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15314 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15315 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15316 of these targets.
15317 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15318
f4647387
YQ
153192012-03-08 Yao Qi <yao@codesourcery.com>
15320 Pedro Alves <palves@redhat.com>
15321
15322 Fix PR server/13392.
15323 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15324 offset of JMP insn.
15325 * tracepoint.c (remove_tracepoint): New.
15326 (cmd_qtdp): Call remove_tracepoint when failed to install.
15327
9b224c5e
PA
153282012-03-07 Pedro Alves <palves@redhat.com>
15329
15330 * linux-low.c (get_detach_signal): New.
15331 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15332 Pass on pending signals to PTRACE_DETACH. Check the result of the
15333 ptrace call.
15334 * server.c (program_signals, program_signals_p): New.
15335 (handle_general_set): Handle QProgramSignals.
15336 * server.h (program_signals, program_signals_p): Declare.
15337
e237a7e2
JK
153382012-03-05 Pedro Alves <palves@redhat.com>
15339 Jan Kratochvil <jan.kratochvil@redhat.com>
15340
15341 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15342 New comment why.
15343
5808517f
YQ
153442012-03-03 Yao Qi <yao@codesourcery.com>
15345
15346 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15347 agent_look_up_symbols.
15348
58b4daa5
YQ
153492012-03-03 Yao Qi <yao@codesourcery.com>
15350
15351 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15352 (linux-x86-low.o): Likewise.
15353 * server.h: Remove in_process_agent_loaded.
15354 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15355 common/agent.c.
15356 Update callers.
15357
8ffcbaaf
YQ
153582012-03-03 Yao Qi <yao@codesourcery.com>
15359
15360 * tracepoint.c (gdb_agent_capability): New global.
15361 (in_process_agent_loaded_ust): Renamed to
15362 `in_process_agent_supports_ust'.
15363 Update callers.
15364 (in_process_agent_supports_ust): Call agent_capability_check.
15365 (clear_installed_tracepoints): Assert that agent supports
15366 agent.
15367
d1feda86
YQ
153682012-03-03 Yao Qi <yao@codesourcery.com>
15369
15370 * linux-low.c (linux_supports_agent): New.
15371 (linux_target_ops): Initialize field `supports_agent' with
15372 linux_supports_agent.
15373 * target.h (struct target_ops) <supports_agent>: New.
15374 (target_supports_agent): New macro.
15375 * server.c (handle_general_set): Handle packet 'QAgent'.
15376 (handle_query): Send `QAgent+'.
15377 * Makefile.in (server.o): Depends on agent.h.
15378
2fa291ac
YQ
153792012-03-03 Yao Qi <yao@codesourcery.com>
15380
15381 * Makefile.in (OBS): Add agent.o.
15382 Add new rule for agent.o.
15383 Track dependence of tracepoint.c on agent.h.
15384 * tracepoint.c (run_inferior_command_1):
15385 (run_inferior_command): Call agent_run_command.
15386 (gdb_ust_connect_sync_socket): Deleted. Move it to
15387 common/agent.c.
15388 (resume_thread, stop_thread): Likewise.
15389 (gdb_ust_socket_init): Renamed to ...
15390 (gdb_agent_socket_init): ... New.
15391 (gdb_ust_thread): Renamed to ...
15392 (gdb_agent_helper_thread): ... New.
15393 (gdb_ust_init): Move some code to ...
15394 (gdb_agent_init): ... here. New.
15395 [HAVE_UST]: Call gdb_ust_init.
15396 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15397 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15398 * config.in, configure: Regenerated.
15399
05044653
PA
154002012-03-02 Pedro Alves <palves@redhat.com>
15401
15402 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15403 * linux-low.c (struct simple_pid_list): New.
15404 (stopped_pids): New a struct simple_pid_list pointer.
15405 (add_to_pid_list, pull_pid_from_list): New.
15406 (handle_extended_wait): Don't assume the first signal new children
15407 report is SIGSTOP. Adjust call to pull_pid_from_list.
15408 (linux_wait_for_lwp): Adjust.
15409
8d00225b
YQ
154102012-03-02 Yao Qi <yao@codesourcery.com>
15411
15412 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15413 debug log.
15414
19560ba5
YQ
154152012-03-02 Yao Qi <yao@codesourcery.com>
15416
15417 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15418 `stop_pc' and `tpoint'. Update caller.
15419
1faeff08
MR
154202012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15421
15422 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15423 * linux-low.c (use_linux_regsets): New macro.
15424 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15425 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15426 (linux_register_in_regsets): New function.
15427 (usr_fetch_inferior_registers): Skip registers covered by
15428 regsets.
15429 (usr_store_inferior_registers): Likewise.
15430 (usr_fetch_inferior_registers): New macro.
15431 (usr_store_inferior_registers): Likewise.
15432 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15433 (linux_store_registers): Likewise.
15434 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15435 prototype.
15436 (init_registers_mips64_dsp_linux): Likewise.
15437 (init_registers_mips_linux): New macro.
15438 (init_registers_mips_dsp_linux): Likewise.
15439 (mips_dsp_num_regs): Likewise.
15440 (DSP_BASE, DSP_CONTROL): New fallback macros.
15441 (mips_base_regs): New macro.
15442 (mips_regmap): Use it. Fix the size.
15443 (mips_dsp_regmap): New variable.
15444 (mips_dsp_regset_bitmap): Likewise.
15445 (mips_arch_setup): New function.
15446 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15447 than mips_regmap.
15448 (mips_cannot_store_register): Likewise.
15449 (the_low_target): Update .arch_setup, .num_regs and .regmap
15450 initializers. Add .regset_bitmap initializer.
15451 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15452 initializer.
15453 * linux-bfin-low.c (the_low_target): Likewise.
15454 * linux-cris-low.c (the_low_target): Likewise.
15455 * linux-crisv32-low.c (the_low_target): Likewise.
15456 * linux-ia64-low.c (the_low_target): Likewise.
15457 * linux-m32r-low.c (the_low_target): Likewise.
15458 * linux-m68k-low.c (the_low_target): Likewise.
15459 * linux-ppc-low.c (the_low_target): Likewise.
15460 * linux-s390-low.c (the_low_target): Likewise.
15461 * linux-sh-low.c (the_low_target): Likewise.
15462 * linux-sparc-low.c (the_low_target): Likewise.
15463 * linux-tic6x-low.c (the_low_target): Likewise.
15464 * linux-x86-low.c (the_low_target): Likewise.
15465 * linux-xtensa-low.c (the_low_target): Likewise.
15466 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15467 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15468 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15469 srv_xmlfiles.
15470 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15471 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15472
c03e6ccc
YQ
154732012-02-29 Yao Qi <yao@codesourcery.com>
15474 Pedro Alves <palves@redhat.com>
15475
15476 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15477 `step_over_finished' is true.
15478
644cebc9
PA
154792012-02-27 Pedro Alves <palves@redhat.com>
15480
15481 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15482 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15483
c14d7ab2
PA
154842012-02-27 Pedro Alves <palves@redhat.com>
15485
15486 PR server/9684
15487 * linux-low.c (pid_is_stopped): New.
15488 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15489
412c89dd
LM
154902012-02-25 Luis Machado <lgustavo@codesourcery.com>
15491
15492 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15493 of conditions.
15494
b745defe
MR
154952012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15496
15497 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15498
9f3a5c85
LM
154992012-02-24 Luis Machado <lgustavo@codesourcery>
15500
15501 * server.c (handle_query): Advertise support for target-side
15502 breakpoint condition evaluation.
15503 (process_point_options): New function.
15504 (process_serial_event): When inserting a breakpoint, check for
15505 a target-side condition that should be evaluated.
15506
15507 * mem-break.c: Include regcache.h and ax.h.
15508 (point_cond_list_t): New data structure.
15509 (breakpoint) <cond_list>: New field.
15510 (find_gdb_breakpoint_at): Make non-static.
15511 (delete_gdb_breakpoint_at): Clear any target-side
15512 conditions.
15513 (clear_gdb_breakpoint_conditions): New function.
15514 (add_condition_to_breakpoint): Likewise.
15515 (add_breakpoint_condition): Likewise.
15516 (gdb_condition_true_at_breakpoint): Likewise.
15517 (gdb_breakpoint_here): Return result directly instead
15518 of going through a local variable.
15519
15520 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15521 (clear_gdb_breakpoint_conditions): Likewise.
15522 (add_breakpoint_condition): Likewise.
15523 (gdb_condition_true_at_breakpoint): Likewise.
15524
15525 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15526 (need_step_over_p): Take target-side breakpoint condition into
15527 consideration.
15528
5e1dc496
LM
155292012-02-24 Luis Machado <lgustavo@codesourcery>
15530
15531 * server.h: Include tracepoint.h.
15532 (agent_mem_read, agent_get_trace_state_variable_value,
15533 agent_set_trace_state_variable_value,
15534 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15535 get_set_tsv_func_addr): New prototypes.
15536
15537 * ax.h: New include file.
15538 * ax.c: New source file.
15539
15540 * tracepoint.c: Include ax.h.
15541 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15542 agent_expr, eval_result_type): Move to ax.h.
15543 (parse_agent_expr): Rename to ...
15544 (gdb_parse_agent_expr): ... this, make it non-static and move
15545 to ax.h.
15546 (unparse_agent_expr) Rename to ...
15547 (gdb_unparse_agent_expr): ... this, make it non-static and move
15548 to ax.h.
15549 (eval_agent_expr): Rename to ...
15550 (eval_tracepoint_agent_expr): ... this.
15551 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15552 forward declarations.
15553 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15554 (agent_get_trace_state_variable_value): New function.
15555 (agent_set_trace_state_variable_value): New function.
15556 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15557 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15558 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15559 (condition_true_at_tracepoint): Likewise.
15560 (parse_agent_expr): Rename to ...
15561 (gdb_parse_agent_expr): ... this and move to ax.c.
15562 (unparse_agent_expr): Rename to ...
15563 (gdb_unparse_agent_expr): ... this and move to ax.c.
15564 (gdb_agent_op_name): Move to ax.c.
15565 (eval_agent_expr): Rename to ...
15566 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15567 and move to ax.c.
15568 (eval_tracepoint_agent_expr): New function.
15569 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15570 non-static.
5e1dc496
LM
15571 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15572 ax.c.
15573 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15574 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15575 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15576 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15577 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15578 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15579 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15580 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15581 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15582 (compile_bytecodes): Remove forward declaration.
15583 (is_goto_target): Move to ax.c.
15584 (compile_bytecodes): Move to ax.c and call
15585 agent_get_trace_state_variable_value (...) and
15586 agent_set_trace_state_variable_value (...).
15587
15588 * Makefile.in: Update ax.c and IPA dependencies.
15589
277e4e52
PA
155902012-02-24 Pedro Alves <palves@redhat.com>
15591
15592 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15593 (cmd_bigqtbuffer_circular): ... this. Only handle
15594 'QTBuffer:circular:'.
15595 (handle_tracepoint_general_set): Adjust.
15596
bf4c19f7
YQ
155972012-02-16 Yao Qi <yao@codesourcery.com>
15598
15599 * inferiors.c: Move code to ...
15600 * dll.c: .... here. New.
15601 * server.h: Declare clear_dlls.
15602 * Makefile.in (SFILES): Add dll.c.
15603 (OBS): Add dll.o
15604 (dll.o): New rule.
15605
d73f2619
YQ
156062012-02-11 Yao Qi <yao@codesourcery.com>
15607
15608 * server.c: (handle_monitor_command): Add a new parameter
15609 `own_buf'.
15610 (handle_query): Update caller.
15611
f8255c2a
JB
156122012-02-09 Joel Brobecker <brobecker@adacore.com>
15613
15614 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15615 * configure, config.in: Regenerate.
15616 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15617 is not defined.
15618
da84f473
PA
156192012-02-02 Pedro Alves <palves@redhat.com>
15620
15621 Try SIGKILL first, then PTRACE_KILL.
15622 * linux-low.c (linux_kill_one_lwp): New.
15623 (linux_kill_one_lwp): Rename to ...
15624 (kill_one_lwp_callback): ... this. Use the new
15625 linux_kill_one_lwp.
15626
e886a173
PA
156272012-02-02 Pedro Alves <palves@redhat.com>
15628
15629 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15630 inferior.
15631
be07f1a2
PA
156322012-01-27 Pedro Alves <palves@redhat.com>
15633
15634 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15635 (elf_64_file_p): Make static.
15636 (linux_pid_exe_is_elf_64_file): New.
15637 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15638 Delete declarations.
15639 (linux_pid_exe_is_elf_64_file): Declare.
15640 * linux-x86-low.c (x86_arch_setup): Use
15641 linux_pid_exe_is_elf_64_file.
15642
d8301ad1
JK
156432012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15644
15645 * linux-low.c (linux_wait_for_event_1): Rename to ...
15646 (linux_wait_for_event): ... here and merge it with former
15647 linux_wait_for_event - new variable wait_ptid, use it.
15648 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15649
01b17894
PA
156502012-01-23 Pedro Alves <palves@redhat.com>
15651
15652 * server.c (main): Avoid yet another case of infinite loop while
15653 detaching/killing after a longjmp.
15654
e825046f
JK
156552012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15656
15657 Code cleanup.
15658 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15659
b9e7b9c3
UW
156602012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15661
15662 * hostio.c (handle_readlink): New function.
15663 (handle_vFile): Call it to handle "vFile:readlink" packets.
15664
901f9912
UW
156652012-01-20 Pedro Alves <palves@redhat.com>
15666 Ulrich Weigand <ulrich.weigand@linaro.org>
15667
15668 * server.c (handle_v_requests): Only support vAttach and vRun to
15669 start multiple processes when in extended protocol mode.
15670
fc1ab1a0
PA
156712012-01-17 Pedro Alves <palves@redhat.com>
15672
15673 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15674 memalign plus mprotect to allocate the scratch buffer.
15675
7d5d4e98
PA
156762012-01-13 Pedro Alves <palves@redhat.com>
15677
15678 * server.c (attach_inferior): Clear `cont_thread'.
15679
f128d5e9
PA
156802012-01-13 Pedro Alves <palves@redhat.com>
15681
15682 * server.c (main): Avoid infinite loop while detaching/killing
15683 after a longjmp.
15684
06db92f0
DE
156852012-01-09 Doug Evans <dje@google.com>
15686
15687 * server.c (start_inferior): Set last_ptid in --wrapper case.
15688
32d92999
YQ
156892012-01-06 Yao Qi <yao@codesourcery.com>
15690
15691 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15692 defined.
15693 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15694
5e0a92a9
YQ
156952012-01-04 Yao Qi <yao@codesourcery.com>
15696
15697 * tracepoint.c (cmd_qtdp): Print debug message
15698 for static tracepoint.
15699
ae639e8c
YQ
157002012-01-04 Yao Qi <yao@codesourcery.com>
15701
15702 * tracepoint.c (trace_vdebug): Differentiate debug message
15703 between gdbserver and IPA.
15704
f72429c5
YQ
157052012-01-03 Yao Qi <yao@codesourcery.com>
15706
15707 * tracepoint.c (tracepoint_was_hit): Don't collect for
15708 static tracepoint.
15709
12c3e59c
JB
157102012-01-02 Joel Brobecker <brobecker@adacore.com>
15711
15712 * terminal.h: Reformat copyright header.
15713
67827812
JB
157142012-01-02 Joel Brobecker <brobecker@adacore.com>
15715
15716 * server.c (gdbserver_version): Update copyright year.
15717 * gdbreplay.c (gdbreplay_version): Likewise.
15718
3e52c33d
JK
157192011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15720
15721 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15722
15723 Revert:
15724 2011-12-18 Hui Zhu <teawater@gmail.com>
15725 * linux-low.c (linux_create_inferior): Save return value to ret.
15726
66f1260e
HZ
157272011-12-18 Hui Zhu <teawater@gmail.com>
15728
15729 * linux-low.c (linux_create_inferior): Save return value to ret.
15730
e77616d7
DE
157312011-12-16 Doug Evans <dje@google.com>
15732
e7b06c57
DE
15733 * linux-low.c (linux_create_inferior): If stdio connection,
15734 redirect stdin from /dev/null, stdout to stderr.
15735 * remote-utils.c (remote_is_stdio): New static global.
15736 (remote_connection_is_stdio): New function.
15737 (remote_prepare): Handle stdio connection.
15738 (remote_open): Ditto.
15739 (remote_close): Don't close stdin for stdio connections.
15740 (read_prim,write_prim): New functions. Replace all calls to
15741 read/write to these.
15742 * server.c (main): Watch for "-" argument. Move call to
15743 remote_prepare before start_inferior.
15744 * server.h (STDIO_CONNECTION_NAME): New macro.
15745 (remote_connection_is_stdio): Declare.
15746
e77616d7
DE
15747 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15748 in debugging output.
15749
82067193
YQ
157502011-12-15 Yao Qi <yao@codesourcery.com>
15751
15752 * tracepoint.c: Include sys/syscall.h.
15753 (gdb_ust_thread): Remove preprocessor conditional.
15754
82bfbe7e
PA
157552011-12-14 Pedro Alves <pedro@codesourcery.com>
15756
15757 * linux-low.c (linux_detach_one_lwp): Call
15758 the_low_target.prepare_to_resume before detaching.
15759
712c6575
YQ
157602011-12-14 Yao Qi <yao@codesourcery.com>
15761
15762 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15763 of write.
15764
d54d1edf
YQ
157652011-12-14 Yao Qi <yao@codesourcery.com>
15766
15767 * i386-low.c (i386_low_stopped_data_address): Initialize local
15768 variable `control'.
15769
6210a125
PA
157702011-12-13 Pedro Alves <pedro@codesourcery.com>
15771
15772 PR remote/13492
15773
15774 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15775 DR_CONTROL unless necessary. Extend comments.
15776 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15777 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15778
2ece8244
YQ
157792011-12-13 Yao Qi <yao@codesourcery.com>
15780
15781 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15782 macros.
15783 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15784
784867a5
JK
157852011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15786
15787 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15788 Print new debug message for such case.
15789
6bf36717
JK
157902011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15791
15792 Fix overlapping memcpy.
15793 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15794 the read_inferior_memory transfer.
15795 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15796 write_inferior_memory transfer.
15797 (set_fast_tracepoint_jump): New variable buf. Use it for the
15798 read_inferior_memory and write_inferior_memory transfers.
15799 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15800 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15801 Use it for the write_inferior_memory transfer.
15802 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15803 buffers.
15804
50275556
MR
158052011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15806
15807 * linux-low.c (fetch_register, store_register): Make code
15808 consistent, fix formatting.
15809
7325beb4
MR
158102011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15811
15812 * linux-low.c (usr_store_inferior_registers): Factor out code
15813 to handle individual registers into...
15814 (store_register): ... this new function.
15815
c642a434
UW
158162011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15817
15818 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15819 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15820 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15821 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15822 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15823 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15824 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15825 (srv_xmlfiles): Add new XML files.
15826
15827 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15828 and <sys/uio.h>.
15829 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15830 (init_registers_s390_linux32v1): Add prototype.
15831 (init_registers_s390_linux32v2): Likewise.
15832 (init_registers_s390_linux64v1): Likewise.
15833 (init_registers_s390_linux64v2): Likewise.
15834 (init_registers_s390x_linux64v1): Likewise.
15835 (init_registers_s390x_linux64v2): Likewise.
15836 (s390_num_regs): Increment to 52.
15837 (s390_regmap): Add orig_r2 register.
15838 (s390_num_regs_3264): Increment to 68.
15839 (s390_regmap_3264): Add orig_r2 register.
15840 (s390_collect_ptrace_register): Handle orig_r2 register.
15841 (s390_supply_ptrace_register): Likewise.
15842 (s390_fill_last_break): New function.
15843 (s390_store_last_break): Likewise.
15844 (s390_fill_system_call): New function.
15845 (s390_store_system_call): Likewise.
15846 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15847 register sets.
15848 (s390_check_regset): New function.
15849 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15850 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15851 Update target_regsets for available register sets.
15852
2268b414
JK
158532011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15854 Jan Kratochvil <jan.kratochvil@redhat.com>
15855
15856 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15857 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15858 New.
15859 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15860 * linux-low.h (struct process_info_private): New member r_debug.
15861 * server.c (handle_qxfer_libraries): Call
15862 the_target->qxfer_libraries_svr4.
15863 (handle_qxfer_libraries_svr4): New function.
15864 (qxfer_packets): New entry "libraries-svr4".
15865 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15866 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15867 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15868 PACKET_qXfer_libraries_svr4.
15869
d6db1fab
UW
158702011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15871
15872 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15873 PSW address/mask between 8-byte and 16-byte formats.
15874 (s390_supply_ptrace_register): Likewise.
15875 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15876 basic addressing mode bit.
15877
242f5f1c
SS
158782011-11-24 Stan Shebs <stan@codesourcery.com>
15879
15880 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15881
f196051f
SS
158822011-11-17 Stan Shebs <stan@codesourcery.com>
15883
15884 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15885 (tracing_start_time): New global.
15886 (tracing_stop_time): New global.
15887 (tracing_user_name): New global.
15888 (tracing_notes): New global.
15889 (tracing_stop_note): New global.
15890 (cmd_qtstart): Set traceframe_usage, start_time.
15891 (stop_tracing): Set stop_time.
15892 (cmd_qtstatus): Report additional status.
15893 (cmd_qtp): New function.
15894 (handle_tracepoint_query): Call it.
15895 (cmd_qtnotes): New function.
15896 (handle_tracepoint_general_set): Call it.
15897 (get_timestamp): Rename from tsv_get_timestamp.
15898
405f8e94
SS
158992011-11-14 Stan Shebs <stan@codesourcery.com>
15900 Kwok Cheung Yeung <kcy@codesourcery.com>
15901
15902 * linux-x86-low.c (small_jump_insn): New.
15903 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15904 trampoline and error message, build a trampoline and issue a small
15905 jump instruction to it.
15906 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15907 trampoline and error message.
15908 (x86_get_min_fast_tracepoint_insn_len): New.
15909 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15910 * linux-low.h (struct linux_target_ops): Add arguments to
15911 install_fast_tracepoint_jump_pad operation, add new operation.
15912 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15913 arguments.
15914 (linux_get_min_fast_tracepoint_insn_len): New function.
15915 (linux_target_op): Add new operation.
15916 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15917 (gdb_trampoline_buffer_end): Ditto.
15918 (gdb_trampoline_buffer_error): Ditto.
15919 (struct ipa_sym_addresses): Add fields for new IPA variables.
15920 (symbol_list): Add entries for new IPA variables.
15921 (struct tracepoint): Add fields to hold the address range of the
15922 trampoline used by the tracepoint.
15923 (trampoline_buffer_head): New static variable.
15924 (trampoline_buffer_tail): Ditto.
15925 (claim_trampoline_space): New function.
15926 (have_fast_tracepoint_trampoline_buffer): New function.
15927 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15928 structure.
15929 (install_fast_tracepoint): Ditto, also add error buffer argument.
15930 (cmd_qtminftpilen): New function.
15931 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15932 (fast_tracepoint_from_trampoline_address): New function.
15933 (fast_tracepoint_collecting): Handle trampoline as part of jump
15934 pad space.
15935 (set_trampoline_buffer_space): New function.
15936 (initialize_tracepoint): Initialize new IPA variables.
15937 * target.h (struct target_ops): Add arguments to
15938 install_fast_tracepoint_jump_pad operation, add new
15939 get_min_fast_tracepoint_insn_len operation.
15940 (target_get_min_fast_tracepoint_insn_len): New.
15941 (install_fast_tracepoint_jump_pad): Add arguments.
15942 * server.h (IPA_BUFSIZ): Define.
15943 * linux-i386-ipa.c: Include extra header files.
15944 (initialize_fast_tracepoint_trampoline_buffer): New function.
15945 (initialize_low_tracepoint): Call it.
15946 * server.h (set_trampoline_buffer_space): Declare.
15947 (claim_trampoline_space): Ditto.
15948 (have_fast_tracepoint_trampoline_buffer): Ditto.
15949
1e4d1764
YQ
159502011-11-14 Yao Qi <yao@codesourcery.com>
15951
15952 * server.c (handle_query): Handle InstallInTrace for qSupported.
15953 * tracepoint.c (add_tracepoint): Sort list.
15954 (install_tracepoint, download_tracepoint): New.
15955 (cmd_qtdp): Call them to install and download tracepoints.
15956 (sort_tracepoints): Removed.
15957 (cmd_qtstart): Update.
15958
5c73ff4e
YQ
159592011-11-14 Yao Qi <yao@codesourcery.com>
15960
15961 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15962 * mem-break.h: Declare.
15963 * tracepoint.c (cmd_qtstart): Move some code to ...
15964 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15965 New.
15966 (download_tracepoints): Move some code to ...
15967 (download_tracepoint_1): ... here. New.
15968
86a30030
YQ
159692011-11-08 Yao Qi <yao@codesourcery.com>
15970
15971 * remote-utils.c (relocate_instruction): A comment fix.
15972
8d26e50c
JB
159732011-11-07 Joel Brobecker <brobecker@adacore.com>
15974
15975 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15976 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15977 dr_status_mirror and dr_control_mirror from debug_reg_state.
15978 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15979 (i386_initial_stuff): Remove use of deleted globals.
15980 (i386_get_thread_context, i386_set_thread_context,
15981 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15982 from debug_reg_state.
15983
a59306a3
YQ
159842011-11-05 Yao Qi <yao@codesourcery.com>
15985
15986 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15987 address as TPOINT's.
15988
3065dfb6
SS
159892011-11-02 Stan Shebs <stan@codesourcery.com>
15990
15991 * tracepoint.c (agent_mem_read_string): New function.
15992 (eval_agent_expr): Call it for tracenz.
15993 * server.c (handle_query): Report support for tracenz.
15994
fd0d8c7c
YQ
159952011-11-02 Yao Qi <yao@codesourcery.com>
15996
15997 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15998
609086b1
YQ
159992011-11-02 Yao Qi <yao@codesourcery.com>
16000
16001 * target.h: Fix a typo in comment.
16002
b9fd1791
PA
160032011-10-31 Pedro Alves <pedro@codesourcery.com>
16004
16005 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16006 clobber the breakpoints' shadows with fast tracepoint jumps.
16007 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16008 * target.c (write_inferior_memory): Also pass MYADDR down to
16009 check_mem_write.
16010
03583c20
UW
160112011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16012
16013 * configure.ac: Check support for personality routine.
16014 * configure: Regenerate.
16015 * config.in: Likewise.
16016 * linux-low.c: Include <sys/personality.h>.
16017 Define ADDR_NO_RANDOMIZE if necessary.
16018 (linux_create_inferior): Disable address space randomization when
16019 forking inferior, if requested.
16020 (linux_supports_disable_randomization): New function.
16021 (linux_target_ops): Install it.
16022 * server.h (disable_randomization): Declare.
16023 * server.c (disable_randomization): New global variable.
16024 (handle_general_set): Handle QDisableRandomization.
16025 (handle_query): Likewise for qSupported.
16026 (main): Support --disable-randomization and --no-disable-randomization
16027 command line arguments.
16028 * target.h (struct target_ops): Add supports_disable_randomization.
16029 (target_supports_disable_randomization): New macro.
16030
723b724b
MF
160312011-09-29 Mike Frysinger <vapier@gentoo.org>
16032
16033 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16034 ifdef check.
16035 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16036 [!PT_GETDSBT] (target_loadmap): New definition.
16037 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16038 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16039 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16040 and PT_GETDSBT to LINUX_LOADMAP.
16041 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16042 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16043
55329a5c 160442011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16045
16046 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16047 (arm_linux_hwbp_cap): New static variable.
16048 (arm_linux_get_hwbp_cap): Replace by ...
16049 (arm_linux_init_hwbp_cap): ... this new function.
16050 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16051 (arm_linux_get_hw_watchpoint_count): Likewise.
16052 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16053 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16054 (arm_prepare_to_resume): Use perror_with_name instead of error.
16055
55329a5c 160562011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16057
16058 * linux-arm-low.c: Include <signal.h>.
16059 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16060 (struct arm_linux_hwbp_cap): New data type.
16061 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16062 (struct arm_linux_hw_breakpoint): New data type.
16063 (MAX_BPTS, MAX_WPTS): Define.
16064 (struct arch_process_info, struct arch_lwp_info): New data types.
16065 (arm_linux_get_hwbp_cap): New function.
16066 (arm_linux_get_hw_breakpoint_count): Likewise.
16067 (arm_linux_get_hw_watchpoint_count): Likewise.
16068 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16069 (arm_hwbp_control_initialize): Likewise.
16070 (arm_hwbp_control_is_enabled): Likewise.
16071 (arm_hwbp_control_is_initialized): Likewise.
16072 (arm_hwbp_control_disable): Likewise.
16073 (arm_linux_hw_breakpoint_equal): Likewise.
16074 (arm_linux_hw_point_initialize): Likewise.
16075 (struct update_registers_data): New data structure.
16076 (update_registers_callback: New function.
16077 (arm_insert_point): Likewise.
16078 (arm_remove_point): Likewise.
16079 (arm_stopped_by_watchpoint): Likewise.
16080 (arm_stopped_data_address): Likewise.
16081 (arm_new_process): Likewise.
16082 (arm_new_thread): Likewise.
16083 (arm_prepare_to_resume): Likewise.
16084 (the_low_target): Register arm_insert_point, arm_remove_point,
16085 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16086 arm_new_thread, and arm_prepare_to_resume.
16087
6b9801d4
SS
160882011-09-15 Stan Shebs <stan@codesourcery.com>
16089
16090 * server.h (struct emit_ops): Add compare-goto fields.
16091 * tracepoint.c (gdb_agent_op_sizes): New table.
16092 (emit_eq_goto): New function.
16093 (emit_ne_goto): New function.
16094 (emit_lt_goto): New function.
16095 (emit_le_goto): New function.
16096 (emit_gt_goto): New function.
16097 (emit_ge_goto): New function.
16098 (is_goto_target): New function.
16099 (compile_bytecodes): Recognize special cases of compare-goto
16100 combinations and call specialized emitters for them.
16101 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16102 (amd64_emit_ne_goto): New function.
16103 (amd64_emit_lt_goto): New function.
16104 (amd64_emit_le_goto): New function.
16105 (amd64_emit_gt_goto): New function.
16106 (amd64_emit_ge_goto): New function.
16107 (amd64_emit_ops): Add the new functions.
16108 (i386_emit_eq_goto): New function.
16109 (i386_emit_ne_goto): New function.
16110 (i386_emit_lt_goto): New function.
16111 (i386_emit_le_goto): New function.
16112 (i386_emit_gt_goto): New function.
16113 (i386_emit_ge_goto): New function.
16114 (i386_emit_ops): Add the new functions.
16115
bf15cbda
SS
161162011-09-08 Stan Shebs <stan@codesourcery.com>
16117
16118 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16119 (i386_emit_epilogue): Restore %ebx.
16120
943ca1dd
JZ
161212011-08-31 Jie Zhang <jzhang918@gmail.com>
16122
16123 * server.c (step_thread): Remove definition.
16124 (process_serial_event): Don't handle Hs.
16125 * server.h (step_thread): Remove declaration.
16126 * target.c (set_desired_inferior): Remove use of step_thread.
16127
e3deef73
LM
161282011-08-24 Luis Machado <lgustavo@codesourcery.com>
16129
16130 * linux-low.c: Include linux-procfs.h.
16131 (linux_attach_lwp_1): Update comments.
16132 (linux_attach): Scan for existing threads when attaching to a
16133 process that is the tgid.
16134 * Makefile.in: Update dependencies.
16135
13da1c97
LM
161362011-08-24 Luis Machado <lgustavo@codesourcery.com>
16137
16138 * configure.srv: Add linux-procfs.o dependencies.
16139
881127c9
YQ
161402011-08-14 Yao Qi <yao@codesourcery.com>
16141
16142 * target.h (struct target_ops): Fix indent.
16143 * win32-low.c (win32_target_ops): Fix comment.
16144
58dbd541
YQ
161452011-08-14 Andrew Jenner <andrew@codesourcery.com>
16146 Yao Qi <yao@codesourcery.com>
16147
16148 * Makefile.in (clean): Remove tic6x-*.c files.
16149 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16150 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16151 (tic6x-c64xp-linux.c): Likewise.
16152 * configure.srv: Add support for tic6x-*-uclinux.
16153 * linux-tic6x-low.c: New.
16154 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16155
78d85199
YQ
161562011-08-14 Andrew Stubbs <ams@codesourcery.com>
16157 Yao Qi <yao@codesourcery.com>
16158
16159 * target.h (struct target_ops): Add read_loadmap.
16160 * linux-low.c (struct target_loadseg): New type.
16161 (struct target_loadmap): New type.
16162 (linux_read_loadmap): New function.
16163 (linux_target_ops): Add linux_read_loadmap.
16164 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16165 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16166 to NULL.
78d85199 16167
a959a88d
EZ
161682011-08-05 Eli Zaretskii <eliz@gnu.org>
16169
16170 * win32-low.c: Include <stdint.h>.
16171
1ced966e
PA
161722011-07-22 Pedro Alves <pedro@codesourcery.com>
16173
16174 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16175 to the inferior here.
16176 (i386_remove_aligned_watchpoint): Ditto.
16177 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16178 fit part of the watchpoint in the debug registers.
16179 (i386_update_inferior_debug_regs): New.
16180 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16181 registers, and only update the inferior on success.
16182 (i386_low_remove_watchpoint): Ditto.
16183
d26e3629
KY
161842011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16185
16186 * linux-low.c (compare_ints, unique, list_threads, show_process,
16187 linux_core_of_thread): Delete.
16188 (linux_target_ops): Change linux_core_of_thread to
16189 linux_common_core_of_thread.
16190 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16191 * utils.c (malloc_failure): Change type of argument.
16192 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16193 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16194 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16195 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16196 (IPA_OBJS): Add common-utils-ipa.o.
16197 (ptid_h, linux_osdata_h): New macros.
16198 (server_h): Add common/common-utils.h, common/xml-utils.h,
16199 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16200 common/ptid.h.
16201 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16202 ptid.o, buffer.o): New rules.
16203 (linux-low.o): Add common/linux-osdata.h as a dependency.
16204 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16205 * configure.ac: Add AC_HEADER_DIRENT check.
16206 * config.in: Regenerate.
16207 * configure: Regenerate.
16208 * remote-utils.c (xml_escape_text): Delete.
16209 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16210 buffer_xml_printf): Move to common/buffer.c.
16211 * server.c (main): Remove call to initialize_inferiors.
16212 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16213 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16214 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16215 internal_error, gdb_assert, gdb_assert_fail): Delete.
16216 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16217 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16218 common/buffer.h.
16219 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16220 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16221 initialize_inferiors): Delete.
16222
2275a1a7
PA
162232011-07-20 Pedro Alves <pedro@codesourcery.com>
16224
16225 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16226 symbol error.
16227
0a5b1e09
PA
162282011-05-31 Pedro Alves <pedro@codesourcery.com>
16229
16230 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16231 assertion.
16232 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16233
6938fd34
YQ
162342011-05-26 Yao Qi <yao@codesourcery.com>
16235
16236 * Makefile.in (thread-db.o): Track dependence to
16237 common/gdb_thread_db.h.
16238 * thread-db.c: include gdb_thread_db.h from right place.
16239
b481f9e0
TT
162402011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16241
16242 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16243 __FILE__ and __LINE__ to internal_error.
16244
98a5dd13
DE
162452011-05-13 Doug Evans <dje@google.com>
16246
16247 * thread-db.c (try_thread_db_load_from_sdir): New function.
16248 (try_thread_db_load_from_dir): New function.
16249 (thread_db_load_search): Handle $sdir, ignore $pdir.
16250 Remove trying of system directories if search of
16251 libthread-db-search-path fails, that is now done via $sdir.
16252
d248b706
KY
162532011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16254
16255 * server.c (handle_query): Add EnableDisableTracepoints to the list
16256 of supported features.
43aaf8b6 16257 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16258 tracepoints.
43aaf8b6
PA
16259 (cmd_qtenable_disable): New.
16260 (cmd_qtstart): Install tracepoints even if disabled.
16261 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16262 receiving a QTEnable or QTDisable packet.
16263 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16264 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16265 tracepoints.
16266 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16267
84e578fb
DE
162682011-05-10 Doug Evans <dje@google.com>
16269
16270 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16271
71f55dd8
DE
162722011-05-04 Doug Evans <dje@google.com>
16273
16274 * linux-low.c (linux_join): Skip process lookup.
16275 * spu-low.c (spu_join): Ditto.
16276 * server.c (join_inferiors_callback): Delete.
16277 (process_serial_event): For 'D' packet (detach) call join_inferior
16278 directly.
16279
4d393d60
JM
162802011-05-04 Joseph Myers <joseph@codesourcery.com>
16281
16282 * README: Don't mention xscale*-*-linux*.
16283 * configure.srv (xscale*-*-linux*): Don't handle target.
16284
b00ad6ff
NF
162852011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16286
16287 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16288 casting pointers.
16289 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16290 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16291 (i386_emit_void_call_2): Likewise.
16292
af96c192
YQ
162932011-04-26 Yao Qi <yao@codesourcery.com>
16294
43aaf8b6
PA
16295 * linux-low.c: Move common macros to linux-ptrace.h.
16296 Include linux-ptrace.h.
af96c192
YQ
16297 * Makefile.in (linux_ptrace_h): New.
16298 (linux-low.o): Depends on linux-ptrace.h.
16299
03f2bd59
JK
163002011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16301
16302 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16303 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16304 (remote_prepare): New function with most of the TCP code from ...
16305 (remote_open): ... here. Detect PORT here unconditionally. Move also
16306 setting transport_is_reliable.
16307 * server.c (run_once): New variable.
16308 (gdbserver_usage): Document it.
16309 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16310 the first run if RUN_ONCE.
16311 * server.h (run_once, remote_prepare): New declarations.
16312
7a9dd1b2
TT
163132011-04-19 Tom Tromey <tromey@redhat.com>
16314
16315 * win32-low.c (handle_load_dll): Remove duplicate "the".
16316
81239425
PM
163172011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16318
16319 Remove support for old Cygwin 1.5 versions.
16320 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16321 function to avoid warning.
16322 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16323 warning.
16324
9e0627f1
PM
163252011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16326
16327 * gdbserver/server.h (Macro _): Define it if not available.
16328
588eebee
MS
163292011-03-14 Michael Snyder <msnyder@vmware.com>
16330
348af9f7 16331 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16332
43f70d4c
JB
163332011-03-10 Joel Brobecker <brobecker@adacore.com>
16334
16335 * Makefile.in (maintainer-clean realclean distclean): Remove
16336 "make ... subdir_do" command.
16337
348af9f7
MS
163382011-03-10 Michael Snyder <msnyder@vmware.com>
16339
16340 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16341
16342 * server.c (handle_v_run): Free alloced buffer on early return.
16343
e637a4f5
YQ
163442011-03-09 Yao Qi <yao@codesourcery.com>
16345
16346 Revert:
16347 2011-03-04 Yao Qi <yao@codesourcery.com>
16348
16349 * Makefile.in: Remove GNU make feature --directory.
16350
16351 2011-03-05 Yao Qi <yao@codesourcery.com>
16352
16353 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16354 (subdir_do): New make target. Copied from gdb/Makefile.
16355 (maintainer-clean, realclean, distclean, clean): Call corresponding
16356 make targets in common/Makefile.
16357
16358 2011-02-11 Yao Qi <yao@codesourcery.com>
16359
16360 * configure.ac: Call AC_PROG_RANLIB.
16361 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16362 * configure: Regenerate.
16363
e6edda56
JK
163642011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16365
16366 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16367
e5141119
JB
163682011-03-06 Yao Qi <yao@codesourcery.com>
16369
16370 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16371
64794aa4
JB
163722011-03-05 Yao Qi <yao@codesourcery.com>
16373
16374 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16375 (subdir_do): New make target. Copied from gdb/Makefile.
16376 (maintainer-clean, realclean, distclean, clean): Call corresponding
16377 make targets in common/Makefile.
16378
7a762829
YQ
163792011-03-04 Yao Qi <yao@codesourcery.com>
16380
16381 * Makefile.in: Remove GNU make feature --directory.
16382
348af9f7
MS
163832011-03-04 Michael Snyder <msnyder@vmware.com>
16384
16385 * server.c (queue_stop_reply): Call xmalloc not malloc.
16386
163872011-03-02 Michael Snyder <msnyder@vmware.com>
16388
16389 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16390
9f72fee2
MS
163912011-02-28 Michael Snyder <msnyder@vmware.com>
16392
588eebee
MS
16393 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16394 (cmd_qtframe): Ditto.
16395 (cmd_qtbuffer): Ditto.
16396 (cmd_bigqtbuffer): Ditto.
16397
9f72fee2
MS
16398 * utils.c (decimal2str): Initialize 'width' to nine, then
16399 don't mess with it.
16400
8040bd49
UW
164012011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16402
16403 * hostio.c (require_data): Free *data, not data.
16404
7e52cbd0
JK
164052011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16406
16407 * hostio.c (require_data): Use free, not xfree.
16408
9130f83e
MS
164092011-02-27 Michael Snyder <msnyder@vmware.com>
16410
4b812f4e
MS
16411 * server.c (handle_query): Discard unused value.
16412
9130f83e
MS
16413 * hostio.c (require_data): Free malloc memory before returning
16414 error.
16415
69d37113
MS
164162011-02-26 Michael Snyder <msnyder@vmware.com>
16417
16418 * linux-low.c (list_threads): Call closedir for dirent.
16419
35f5825a
MS
164202011-02-27 Michael Snyder <msnyder@vmware.com>
16421
2a589cef
MS
16422 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16423 a case statement falls through.
16424
0adea5f7
MS
16425 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16426
35f5825a
MS
16427 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16428 in comparison.
16429
238f1c74
MS
164302011-02-26 Michael Snyder <msnyder@vmware.com>
16431
16432 * utils.c (decimal2str): Eliminate dead code and dead param.
16433 (pulongest): Drop dead param from call to decimal2str.
16434 (plongest): Ditto.
16435
633ff500
JB
164362011-02-24 Joel Brobecker <brobecker@adacore.com>
16437
16438 Revert the following patch (not approved yet):
16439 2011-02-21 Hui Zhu <teawater@gmail.com>
16440 * tracepoint.c (tp_printf): New function.
16441 (eval_agent_expr): Handle gdb_agent_op_printf.
16442
f9c6ff72
HZ
164432011-02-21 Hui Zhu <teawater@gmail.com>
16444
16445 * tracepoint.c (tp_printf): New function.
16446 (eval_agent_expr): Handle gdb_agent_op_printf.
16447
94d5e490
TT
164482011-02-18 Tom Tromey <tromey@redhat.com>
16449
16450 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16451 (tracepoint.o): Likewise.
16452 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16453 (gdb_agent_op_names): Likewise.
16454
c7f96d2b
TT
164552011-02-18 Tom Tromey <tromey@redhat.com>
16456
16457 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16458 gdb_agent_op_rot>: New constants.
16459 (gdb_agent_op_names): Add pick and roll.
16460 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16461 cases.
16462
0feedb2c
JK
164632011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16464
16465 * aclocal.m4: Regenerated with aclocal-1.11.1.
16466
b3b9301e
PA
164672011-02-14 Pedro Alves <pedro@codesourcery.com>
16468
16469 * server.c (handle_qxfer_traceframe_info): New.
16470 (qxfer_packets): Register "traceframe-info".
16471 (handle_query): Report support for qXfer:traceframe-info:read+.
16472 * tracepoint.c (match_blocktype): New.
16473 (traceframe_find_block_type): Rename to ...
16474 (traceframe_walk_blocks): ... this. Add callback filter argument,
16475 and use it.
16476 (traceframe_find_block_type): New, reimplemented on top of
16477 traceframe_walk_blocks.
16478 (build_traceframe_info_xml): New.
16479 (traceframe_read_info): New.
16480 * server.h (traceframe_read_info): Declare.
16481
4f3e6fb7
YQ
164822011-02-11 Yao Qi <yao@codesourcery.com>
16483
16484 * configure.ac: Call AC_PROG_RANLIB.
16485 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16486 * configure: Regenerate.
16487
764880b7
PA
164882011-02-07 Pedro Alves <pedro@codesourcery.com>
16489
16490 * server.c (gdb_read_memory): Change return semantics to allow
16491 partial transfers.
16492 (handle_search_memory_1): Adjust.
16493 (process_serial_event) <'m' packet>: Handle partial transfers.
16494 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16495
1c79eb8a
PA
164962011-01-28 Pedro Alves <pedro@codesourcery.com>
16497
16498 * regcache.c (init_register_cache): Initialize
16499 regcache->register_status.
16500 (free_register_cache): Release regcache->register_status.
16501 (regcache_cpy): Copy register_status.
16502 (registers_to_string): Print 'x's for unavailable registers.
16503 (supply_register): Mark the register's status valid or
16504 unavailable, depending on whether a buffer was passed in or not.
16505 (supply_register_zeroed): New.
16506 (supply_regblock): Mark the registers' status valid or
16507 unavailable, depending on whether a buffer was passed in or not.
16508 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16509 (struct regcache): New `register_status' field.
16510 (supply_register_zeroed): Declare.
16511 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16512 supply_register_zeroed, rather than passing a NULL buffer to
16513 supply_register.
16514 * tracepoint.c (fetch_traceframe_registers): Update comment.
16515
85724a0e
PA
165162011-01-28 Pedro Alves <pedro@codesourcery.com>
16517
16518 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16519 buffer explicit.
16520
d08aafef
PA
165212011-01-25 Pedro Alves <pedro@codesourcery.com>
16522
16523 * server.h (decode_xfer_write): Change prototype.
16524 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16525 and don't extract the annex here.
16526 * server.c (decode_xfer_read): Remove `annex' parameter,
16527 and don't extract the annex here.
16528 (decode_xfer): New.
16529 (struct qxfer): New.
16530 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16531 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16532 (handle_qxfer_statictrace): New functions, abstracted out from
16533 handle_query, and made to use the struct qxfer interface.
16534 (handle_threads_qxfer_proper): Rename to ...
16535 (handle_qxfer_threads_proper): ... this.
16536 (handle_threads_qxfer): Rename to ...
16537 (handle_qxfer_threads): ... this. Adjust.
16538 (qxfer_packets): New array.
16539 (handle_qxfer): New function.
16540 (handle_query): Use handle_qxfer.
16541
493e2a69
MS
165422011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16543
16544 * gdbreplay.c: Shorten lines of >= 80 columns.
16545 * linux-low.c: Ditto.
16546 * linux-ppc-low.c: Ditto.
16547 * linux-s390-low.c: Ditto.
16548 * linux-sparc-low.c: Ditto.
16549 * linux-x86-low.c: Ditto.
16550 * linux-xtensa-low.c: Ditto.
16551 * mem-break.c: Ditto.
16552 * nto-low.c: Ditto.
16553 * regcache.h: Ditto.
16554 * remote-utils.c: Ditto.
16555 * server.c: Ditto.
16556 * server.h: Ditto.
16557 * thread-db.c: Ditto.
16558 * tracepoint.c: Ditto.
16559 * utils.c: Ditto.
16560 * win32-low.h: Ditto.
16561
44944448
JB
165622011-01-05 Joel Brobecker <brobecker@adacore.com>
16563
16564 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16565 update.
16566
71ce852c
JB
165672011-01-01 Joel Brobecker <brobecker@adacore.com>
16568
16569 * server.c (gdbserver_version): Update copyright year in version
16570 output.
16571 * gdbreplay.c (gdbreplay_version): Ditto.
16572
eb826dc6
MF
165732010-12-29 Jie Zhang <jie.zhang@analog.com>
16574
16575 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16576 * linux-bfin-low.c: New file.
16577 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16578 PT_DATA_ADDR for BFIN targets.
16579 * Makefile.in (SFILES): Add linux-bfin-low.c.
16580 (clean): Remove reg-bfin.c.
16581 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16582 * README: Mention supported Blackfin targets.
16583
39ab222a
MF
165842010-12-23 Mike Frysinger <vapier@gentoo.org>
16585
16586 * .gitignore: New file.
16587
a1f2ce7d
MF
165882010-11-16 Mike Frysinger <vapier@gentoo.org>
16589
16590 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16591
f474844c
JZ
165922010-10-22 Jie Zhang <jie@codesourcery.com>
16593
16594 * Makefile.in: Add FLAGS_TO_PASS variable.
16595 (install): Remove dependency of install-only and recursively
16596 invoke make for install-only.
16597
f1048712
DE
165982010-10-04 Doug Evans <dje@google.com>
16599
16600 * Makefile.in (uninstall): Use $(DESTDIR).
16601
b53a1623
PA
166022010-09-24 Pedro Alves <pedro@codesourcery.com>
16603
e6ee044d
PA
16604 PR gdb/11842
16605
b53a1623
PA
16606 * linux-x86-low.c (compat_siginfo_from_siginfo)
16607 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16608 si_code is < 0. Check for si_code == SI_TIMER before checking for
16609 si_code < 0.
16610
fa1bd1e4
JB
166112010-09-13 Joel Brobecker <brobecker@adacore.com>
16612
16613 * lynx-i386-low.c: New file.
16614 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16615
47fac8f8
JB
166162010-09-13 Joel Brobecker <brobecker@adacore.com>
16617
16618 * lynx-low.c (ptrace_request_to_str): Remove handling for
16619 request values that have been removed in LynxOS 5.x.
16620
1adfc54d
JB
166212010-09-13 Joel Brobecker <brobecker@adacore.com>
16622
16623 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16624 <ptrace.h>
16625
c2a66c29
NS
166262010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16627
16628 * configure.ac: Add --enable-inprocess-agent option.
16629 * configure: Rebuilt.
16630
32fcada3
YQ
166312010-09-06 Yao Qi <yao@codesourcery.com>
16632
16633 * linux-low.c (linux_kill): Remove unused variable.
16634 (linux_stabilize_threads): Likewise.
16635 * server.c (start_inferior): Likewise.
16636 (queue_stop_reply_callback): Likewise.
16637 * tracepoint.c (do_action_at_tracepoint): Likewise.
16638
0cccb683
YQ
166392010-09-06 Yao Qi <yao@codesourcery.com>
16640
16641 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16642 on return.
16643
423ec54c
JK
166442010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16645
16646 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16647
12ac6819
PA
166482010-09-06 Pedro Alves <pedro@codesourcery.com>
16649
16650 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16651 "$(IPA_DEPFILES)".
16652
8ed54b31
JB
166532010-09-01 Joel Brobecker <brobecker@adacore.com>
16654
16655 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16656 gdbserver/lynx-ppc-low.c: New files.
16657 * Makefile.in (lynx_low_h): New variable.
16658 (lynx-low.o, lynx-ppc-low.o): New rules.
16659 * configure.ac: On LynxOS, link with -lnetinet.
16660 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16661 * configure: regenerate.
16662
bb0116a4
JB
166632010-09-01 Joel Brobecker <brobecker@adacore.com>
16664
16665 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16666 * configure.ac: Add check for vasprintf and vsnprintf.
16667 * configure, config.in: Regenerate.
16668 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16669
a778ab81 166702010-09-01 Joel Brobecker <brobecker@adacore.com>
16671
16672 * gdbreplay.c: Move include of alloca.h up, next to include of
16673 malloc.h.
16674 * server.h: Add include of malloc.h.
16675 * mem-break.c: Remove include of malloc.h.
16676 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16677
8b034a19 166782010-09-01 Joel Brobecker <brobecker@adacore.com>
16679
16680 * Makefile.in (memmem.o): Build with -Wno-error.
16681
166822010-09-01 Joel Brobecker <brobecker@adacore.com>
16683
16684 * utils.c (xsnprintf): Make non-static.
16685 * server.h: Add xsnprintf declaration.
16686 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16687 replace calls to snprintf by calls to xsnprintf throughout.
16688
166892010-09-01 Joel Brobecker <brobecker@adacore.com>
16690
16691 * configure.ac: Add configure check for alloca.
16692 * configure, config.in: Regenerate.
16693 * server.h: Include alloca.h if it exists.
16694 * gdbreplay.c: Include alloca.h if it exists.
16695
1a981360
PA
166962010-08-28 Pedro Alves <pedro@codesourcery.com>
16697
16698 * linux-low.c (__SIGRTMIN): Define if not already defined.
16699 (linux_create_inferior): Check for __ANDROID__ rather than
16700 __SIGRTMIN.
16701 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16702 are already deferred.
16703 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16704 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16705 stopped and already has a pending signal to report.
16706 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16707 a pending signal to report or is moving out of a jump pad.
16708 (linux_init_signals): Check for __ANDROID__ rather than
16709 __SIGRTMIN.
16710
b4d51a55
PA
167112010-08-28 Pedro Alves <pedro@codesourcery.com>
16712
16713 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16714 debug_threads check. Avoid a linear search when not doing debug
16715 output.
16716
ec48365d
PA
167172010-08-27 Pedro Alves <pedro@codesourcery.com>
16718
16719 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16720 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16721 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16722 (process_event): Change local fd's type to gdb_fildes_t.
16723 (create_file_handler): Adjust prototype.
16724 (delete_file_handler): Adjust prototype.
16725 (handle_file_event): Adjust prototype. Use pfildes.
16726 (create_file_event): Adjsut prototype.
16727 * remote-utils.c (remote_desc, listen_desc): Change type to
16728 gdb_fildes_t.
16729 * server.h: New gdb_fildes_t typedef.
16730 [USE_WIN32API]: Include winsock2.h.
16731 (delete_file_handler, add_file_handler): Adjust prototypes.
16732 (pfildes): Declare.
16733 * utils.c (pfildes): New.
16734
854d88f0
PA
167352010-08-27 Pedro Alves <pedro@codesourcery.com>
16736
16737 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16738 * configure: Regenerate.
16739
0146f85b
PA
167402010-08-27 Pedro Alves <pedro@codesourcery.com>
16741
16742 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16743 (linux_done_accessing_memory): ... this.
16744 (linux_target_ops): Adjust.
16745 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16746 * nto-low.c (nto_target_ops): Adjust comment.
16747 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16748 * spu-low.c (spu_target_ops): Adjust comment.
16749 * target.h (target_ops): Rename unprepare_to_access_memory field
16750 to done_accessing_memory.
16751 (unprepare_to_access_memory): Rename to ...
16752 (done_accessing_memory): ... this.
16753
90d74c30
PA
167542010-08-26 Pedro Alves <pedro@codesourcery.com>
16755
16756 * linux-low.c (linux_prepare_to_access_memory): New.
16757 (linux_unprepare_to_access_memory): New.
16758 (linux_target_ops): Install them.
16759 * server.c (read_memory): Rename to ...
16760 (gdb_read_memory): ... this. Use
16761 prepare_to_access_memory/prepare_to_access_memory.
16762 (write_memory): Rename to ...
16763 (gdb_write_memory): ... this. Use
16764 prepare_to_access_memory/prepare_to_access_memory.
16765 (handle_search_memory_1): Adjust.
16766 (process_serial_event): Adjust.
16767 * target.h (struct target_ops): New fields
16768 prepare_to_access_memory and unprepare_to_access_memory.
16769 (prepare_to_access_memory, unprepare_to_access_memory): New.
16770 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16771 prepare_to_access_memory/prepare_to_access_memory.
16772 * nto-low.c (nto_target_ops): Adjust.
16773 * spu-low.c (spu_target_ops): Adjust.
16774 * win32-low.c (win32_target_ops): Adjust.
16775
fd467969
PA
167762010-08-26 Pedro Alves <pedro@codesourcery.com>
16777
16778 * Makefile.in (WARN_CFLAGS): Get it from configure.
16779 (WERROR_CFLAGS): New.
16780 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16781 * configure.ac: Introduce --enable-werror, which adds -Werror to
16782 the compiler command line. Enabled by default. Disable with
16783 --disable-werror. Add -Wdeclaration-after-statement
16784 Wpointer-arith and -Wformat-nonliteral to warning flags.
16785 * configure: Regenerate.
16786
331e2f5f
PA
167872010-08-26 Pedro Alves <pedro@codesourcery.com>
16788
16789 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16790
e581f2b4
PA
167912010-08-26 Pedro Alves <pedro@codesourcery.com>
16792
16793 * gdbreplay.c (remote_error): New.
16794 (gdbchar): New.
16795 (expect): Use gdbchar. Check for error reading from GDB.
16796 Clarify sync error output.
16797 (play): Check for errors writing to GDB.
16798 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16799 * remote-utils.c (getpkt): Check for errors writing to the remote
16800 descriptor.
16801
3c11dd79
PA
168022010-08-25 Pedro Alves <pedro@codesourcery.com>
16803
16804 * linux-low.c (linux_wait_1): Move non-debugging code out of
16805 `debug_threads' control.
16806
d20a8ad9
PA
168072010-08-25 Pedro Alves <pedro@codesourcery.com>
16808
16809 * linux-low.c (linux_wait_1): Don't set last_status here.
16810 * server.c (push_event, queue_stop_reply_callback): Assert we're
16811 not pushing a TARGET_WAITKIND_IGNORE event.
16812 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16813 (myresume, handle_target_event): Set the thread's last_resume_kind
16814 and last_status from the target returned status.
16815
964e4306
PA
168162010-08-25 Pedro Alves <pedro@codesourcery.com>
16817
16818 PR threads/10729
16819
16820 * linux-x86-low.c (update_debug_registers_callback): New.
16821 (i386_dr_low_set_addr): Use it.
16822 (i386_dr_low_get_addr): New.
16823 (i386_dr_low_set_control): Use update_debug_registers_callback.
16824 (i386_dr_low_get_control): New.
16825 (i386_dr_low_get_status): Adjust.
16826 * linux-low.c (linux_stop_lwp): New.
16827 * linux-low.h (linux_stop_lwp): Declare.
16828
16829 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16830 argument instead of a i386_debug_reg_state.
16831 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16832 a i386_debug_reg_state.
16833 (i386_insert_aligned_watchpoint): Adjust.
16834 (i386_remove_aligned_watchpoint): Adjust.
16835 (i386_low_stopped_data_address): Read the debug registers from the
16836 inferior instead of from the mirrors.
16837 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16838 (i386_dr_low_get_addr): Declare.
16839 (i386_dr_low_get_control): Declare.
16840 (i386_dr_low_get_status): Change prototype.
16841
16842 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16843 (i386_dr_low_get_addr): New.
16844 (i386_dr_low_get_control): New.
16845 (i386_dr_low_get_status): Adjust prototype. Return
16846 dr_status_mirror.
16847 (i386_initial_stuff): Clear dr_status_mirror and
16848 dr_control_mirror.
16849 (i386_get_thread_context): Adjust.
16850 (i386_set_thread_context): Adjust.
16851 (i386_thread_added): Adjust.
16852
5f21a75b
PA
168532010-08-24 Pedro Alves <pedro@codesourcery.com>
16854
16855 * linux-low.h (linux_thread_area): Delete declaration.
16856
3e4c1235
TS
168572010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16858
16859 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16860 after its termination.
16861
1971b033
PA
168622010-08-09 Pedro Alves <pedro@codesourcery.com>
16863
16864 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16865 (gdb_wants_all_stopped): Delete.
16866 (linux_wait_1): Don't call them.
16867 * server.c (handle_v_cont): Tag all threads as want-stopped.
16868 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16869 stopped as "client-wants-stopped".
16870
310444ac
PA
168712010-07-31 Pedro Alves <pedro@codesourcery.com>
16872
16873 * Makefile.in (signals_h): New.
16874 (server_h): Depend on it.
16875 (server.o): Don't depend on $(signals_def).
16876 (signals.o): Depend on $(signals_def).
16877
a19cae16
JK
168782010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16879
16880 * Makefile.in (signals_def): New.
16881 (server_h): Append include/gdb/signals.h and signals_def.
16882 (server.o): Append signals_def.
16883
30d50328
JK
168842010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16885
16886 * server.c (handle_target_event): Use target_signal_to_host for
16887 resume_info.sig initialization.
16888 * target.h (struct thread_resume) <sig>: New comment.
16889
5c3216e2
OS
168902010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16891
c6f46ca0
OS
16892 * server.c (handle_query): strcpy() the returned string from paddress()
16893 instead of sprintf().
5c3216e2
OS
16894 * utils.c (paddress): Return phex_nz().
16895
6bd31874
JB
168962010-07-07 Joel Brobecker <brobecker@adacore.com>
16897
16898 * server.c (handle_v_cont): Call mourn_inferior if process
16899 just exited.
16900 (myresume): Likewise.
16901
0fb4aa4b
PA
169022010-07-01 Pedro Alves <pedro@codesourcery.com>
16903
16904 Static tracepoints, and integration with UST.
16905
16906 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16907 * mem-break.c (uninsert_all_breakpoints)
16908 (reinsert_all_breakpoints): New.
16909 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16910 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16911 (gdb_agent_ust_loaded, helper_thread_id)
16912 (gdb_agent_helper_thread_id): New macros.
16913 (struct ipa_sym_addresses): Add addr_ust_loaded,
16914 addr_helper_thread_id, addr_cmd_buf.
16915 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16916 (in_process_agent_loaded_ust): New.
16917 (write_e_ust_not_loaded): New.
16918 (maybe_write_ipa_ust_not_loaded): New.
16919 (struct collect_static_trace_data_action): New.
16920 (enum tracepoint_type) <static_tracepoint>: New.
16921 (struct tracepoint) <handle>: Mention static tracepoints.
16922 (struct static_tracepoint_ctx): New.
16923 (CMD_BUF_SIZE): New.
16924 (add_tracepoint_action): Handle static tracepoint actions.
16925 (unprobe_marker_at): New.
16926 (clear_installed_tracepoints): Handle static tracepoints.
16927 (cmd_qtdp): Handle static tracepoints.
16928 (probe_marker_at): New.
16929 (cmd_qtstart): Handle static tracepoints.
16930 (response_tracepoint): Handle static tracepoints.
16931 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16932 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16933 (get_context_regcache): Handle static tracepoints.
16934 (do_action_at_tracepoint): Handle static tracepoint actions.
16935 (traceframe_find_block_type): Handle static trace data blocks.
16936 (traceframe_read_sdata): New.
16937 (download_tracepoints): Download static tracepoint actions.
16938 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16939 (GDB_PROBE_NAME): New.
16940 (ust_ops): New.
16941 (GET_UST_SYM): New.
16942 (USTF): New.
16943 (dlsym_ust): New.
16944 (ust_marker_to_static_tracepoint): New.
16945 (gdb_probe): New.
16946 (collect_ust_data_at_tracepoint): New.
16947 (gdb_ust_probe): New.
16948 (UNIX_PATH_MAX, SOCK_DIR): New.
16949 (gdb_ust_connect_sync_socket): New.
16950 (resume_thread, stop_thread): New.
16951 (run_inferior_command): New.
16952 (init_named_socket): New.
16953 (gdb_ust_socket_init): New.
16954 (cstr_to_hexstr): New.
16955 (next_st): New.
16956 (first_marker, next_marker): New.
16957 (response_ust_marker): New.
16958 (cmd_qtfstm, cmd_qtsstm): New.
16959 (unprobe_marker_at, probe_marker_at): New.
16960 (cmd_qtstmat, gdb_ust_thread): New.
16961 (gdb_ust_init): New.
16962 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16963 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16964 (ST_REGENTRY): New.
16965 (x86_64_st_collect_regmap): New.
16966 (X86_64_NUM_ST_COLLECT_GREGS): New.
16967 (AMD64_RIP_REGNUM): New.
16968 (supply_static_tracepoint_registers): New.
16969 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16970 (ST_REGENTRY): New.
16971 (i386_st_collect_regmap): New.
16972 (i386_NUM_ST_COLLECT_GREGS): New.
16973 (supply_static_tracepoint_registers): New.
16974 * server.c (handle_query): Handle qXfer:statictrace:read.
16975 <qSupported>: Report support for StaticTracepoints, and
16976 qXfer:statictrace:read features.
16977 * server.h (traceframe_read_sdata)
16978 (supply_static_tracepoint_registers): Declare.
16979 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16980 (unpack_varlen_hex): Include in IPA build.
16981 * Makefile.in (ustlibs, ustinc): New.
16982 (IPA_OBJS): Add remote-utils-ipa.o.
16983 ($(IPA_LIB)): Link -ldl and -lpthread.
16984 (UST_CFLAGS): New.
16985 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16986 * config.in, configure: Regenerate.
16987
9e4344e5
PA
169882010-06-20 Ian Lance Taylor <iant@google.com>
16989 Pedro Alves <pedro@codesourcery.com>
16990
16991 * linux-x86-low.c (always_true): Delete.
16992 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16993 trying to fool the compiler with always_true.
16994
c6beb2cb
PA
169952010-06-20 Pedro Alves <pedro@codesourcery.com>
16996
16997 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16998 conditions in gdbserver.
16999
d2ed6730
UW
170002010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17001
17002 * spu-low.c (spu_read_memory): Wrap around local store limit.
17003 (spu_write_memory): Likewise.
17004
4e29fb54
PA
170052010-06-15 Pedro Alves <pedro@codesourcery.com>
17006
17007 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17008 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17009 LONGEST uses.
17010 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17011 uses.
17012 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17013 uses with LONGEST uses.
17014
6a271cae
PA
170152010-06-14 Stan Shebs <stan@codesourcery.com>
17016 Pedro Alves <pedro@codesourcery.com>
17017
17018 Bytecode compiler.
17019
17020 * linux-x86-low.c: Include limits.h.
17021 (add_insns): New.
17022 (always_true): New.
17023 (EMIT_ASM): New.
17024 (EMIT_ASM32): New.
17025 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17026 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17027 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17028 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17029 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17030 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17031 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17032 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17033 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17034 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17035 (amd64_emit_void_call_2): New.
17036 (amd64_emit_ops): New.
17037 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17038 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17039 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17040 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17041 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17042 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17043 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17044 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17045 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17046 (i386_emit_stack_adjust, i386_emit_int_call_1)
17047 (i386_emit_void_call_2): New.
17048 (i386_emit_ops): New.
17049 (x86_emit_ops): New.
17050 (the_low_target): Install x86_emit_ops.
17051 * server.h (struct emit_ops): New.
17052 (get_raw_reg_func_addr): Declare.
17053 (current_insn_ptr, emit_error): Declare.
17054 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17055 (set_trace_state_variable_value): New defines.
17056 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17057 addr_get_trace_state_variable_value and
17058 addr_set_trace_state_variable_value.
17059 (symbol_list): New fields for get_raw_reg,
17060 get_trace_state_variable_value and set_trace_state_variable_value.
17061 (condfn): New typedef.
17062 (struct tracepoint): New field `compiled_cond'.
17063 (do_action_at_tracepoint): Clear compiled_cond.
17064 (get_trace_state_variable_value, set_trace_state_variable_value):
17065 Export in the IPA.
17066 (condition_true_at_tracepoint): If there's a compiled condition,
17067 run that.
17068 (current_insn_ptr, emit_error): New globals.
17069 (struct bytecode_address): New.
17070 (get_raw_reg_func_addr): New.
17071 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17072 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17073 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17074 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17075 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17076 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17077 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17078 (compile_tracepoint_condition, compile_bytecodes): New.
17079 * target.h (emit_ops): Forward declare.
17080 (struct target_ops): New field emit_ops.
17081 (target_emit_ops): New.
17082 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17083 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17084 * linux-low.c (linux_emit_ops): New.
17085 (linux_target_ops): Install it.
17086 * linux-low.h (struct linux_target_ops): New field emit_ops.
17087
92b72907
UW
170882010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17089
17090 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17091 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17092
fa593d66
PA
170932010-06-01 Pedro Alves <pedro@codesourcery.com>
17094 Stan Shebs <stan@codesourcery.com>
17095
17096 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17097 (all): Depend on $(extra_libraries).
17098 (install-only): Install the IPA.
17099 (IPA_OBJS, IPA_LIB): New.
17100 (clean): Remove the IPA lib.
17101 (IPAGENT_CFLAGS): New.
17102 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17103 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17104 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17105 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17106 * configure.ac: Check for atomic builtins support in the compiler.
17107 (IPA_DEPFILES, extra_libraries): Define.
17108 * configure.srv (ipa_obj): Add description.
17109 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17110 (i[34567]86-*-linux*): Set ipa_obj.
17111 (x86_64-*-linux*): Set ipa_obj.
17112 * linux-low.c (stabilizing_threads): New.
17113 (supports_fast_tracepoints): New.
17114 (linux_detach): Stabilize threads before detaching.
17115 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17116 the lwp is either not stabilizing, or is moving out of a jump pad.
17117 (linux_fast_tracepoint_collecting): New.
17118 (maybe_move_out_of_jump_pad): New.
17119 (enqueue_one_deferred_signal): New.
17120 (dequeue_one_deferred_signal): New.
17121 (linux_wait_for_event_1): If moving out of a jump pad, defer
17122 pending signals to later.
17123 (linux_stabilize_threads): New.
17124 (linux_wait_1): Check if threads need moving out of jump pads, and
17125 do it if so.
17126 (stuck_in_jump_pad_callback): New.
17127 (move_out_of_jump_pad_callback): New.
17128 (lwp_running): New.
17129 (linux_resume_one_lwp): Handle moving out of jump pads.
17130 (linux_set_resume_request): Dequeue deferred signals.
17131 (need_step_over_p): Also step over fast tracepoint jumps.
17132 (start_step_over): Also uninsert fast tracepoint jumps.
17133 (finish_step_over): Also reinsert fast tracepoint jumps.
17134 (linux_install_fast_tracepoint_jump): New.
17135 (linux_target_ops): Install linux_stabilize_threads and
17136 linux_install_fast_tracepoint_jump_pad.
17137 * linux-low.h (linux_target_ops) <get_thread_area,
17138 install_fast_tracepoint_jump_pad>: New fields.
17139 (struct lwp_info) <collecting_fast_tracepoint,
17140 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17141 (linux_get_thread_area): Declare.
17142 * linux-x86-low.c (jump_insn): New.
17143 (x86_get_thread_area): New.
17144 (append_insns): New.
17145 (push_opcode): New.
17146 (amd64_install_fast_tracepoint_jump_pad): New.
17147 (i386_install_fast_tracepoint_jump_pad): New.
17148 (x86_install_fast_tracepoint_jump_pad): New.
17149 (the_low_target): Install x86_get_thread_area and
17150 x86_install_fast_tracepoint_jump_pad.
17151 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17152 (struct fast_tracepoint_jump): New.
17153 (fast_tracepoint_jump_insn): New.
17154 (fast_tracepoint_jump_shadow): New.
17155 (find_fast_tracepoint_jump_at): New.
17156 (fast_tracepoint_jump_here): New.
17157 (delete_fast_tracepoint_jump): New.
17158 (set_fast_tracepoint_jump): New.
17159 (uninsert_fast_tracepoint_jumps_at): New.
17160 (reinsert_fast_tracepoint_jumps_at): New.
17161 (set_breakpoint_at): Use write_inferior_memory.
17162 (uninsert_raw_breakpoint): Use write_inferior_memory.
17163 (check_mem_read): Mask out fast tracepoint jumps.
17164 (check_mem_write): Mask out fast tracepoint jumps.
17165 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17166 (set_fast_tracepoint_jump): Declare.
17167 (delete_fast_tracepoint_jump)
17168 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17169 (reinsert_fast_tracepoint_jumps_at): Declare.
17170 * regcache.c: Don't compile many functions when building the
17171 in-process agent library.
17172 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17173 the register buffer in the heap.
17174 (free_register_cache): If the register buffer isn't owned by the
17175 regcache, don't free it.
17176 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17177 pre-existing register caches.
17178 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17179 type.
17180 (convert_ascii_to_int): : Constify `from' parameter type.
17181 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17182 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17183 the needed buffer in-place.
17184 (relocate_instruction): New.
17185 * server.c (handle_query) <qSymbols>: If the target supports
17186 tracepoints, give it a chance of looking up symbols. Report
17187 support for fast tracepoints.
17188 (handle_status): Stabilize threads.
17189 (process_serial_event): Adjust.
17190 * server.h (struct fast_tracepoint_jump): Forward declare.
17191 (struct process_info) <fast_tracepoint_jumps>: New field.
17192 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17193 (decode_X_packet, decode_M_packet): Adjust.
17194 (relocate_instruction): Declare.
17195 (in_process_agent_loaded): Declare.
17196 (tracepoint_look_up_symbols): Declare.
17197 (struct fast_tpoint_collect_status): Declare.
17198 (fast_tracepoint_collecting): Declare.
17199 (force_unlock_trace_buffer): Declare.
17200 (handle_tracepoint_bkpts): Declare.
17201 (initialize_low_tracepoint)
17202 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17203 * target.h (struct target_ops) <stabilize_threads,
17204 install_fast_tracepoint_jump_pad>: New fields.
17205 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17206 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17207 [HAVE_STDINT_H]: Include stdint.h.
17208 (trace_debug_1): Rename to ...
17209 (trace_vdebug): ... this.
17210 (trace_debug): Rename to ...
17211 (trace_debug_1): ... this. Add `level' parameter.
17212 (trace_debug): New.
17213 (ATTR_USED, ATTR_NOINLINE): New.
17214 (IP_AGENT_EXPORT): New.
17215 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17216 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17217 (about_to_request_buffer_space, trace_buffer_is_full)
17218 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17219 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17220 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17221 (traceframe_write_count, traceframes_created)
17222 (trace_state_variables)
17223 New renaming defines.
17224 (struct ipa_sym_addresses): New.
17225 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17226 (symbol_list): New.
17227 (ipa_sym_addrs): New.
17228 (all_tracepoint_symbols_looked_up): New.
17229 (in_process_agent_loaded): New.
17230 (write_e_ipa_not_loaded): New.
17231 (maybe_write_ipa_not_loaded): New.
17232 (tracepoint_look_up_symbols): New.
17233 (debug_threads) [IN_PROCESS_AGENT]: New.
17234 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17235 (UNKNOWN_SIDE_EFFECTS): New.
17236 (stop_tracing): New.
17237 (flush_trace_buffer): New.
17238 (stop_tracing_bkpt): New.
17239 (flush_trace_buffer_bkpt): New.
17240 (read_inferior_integer): New.
17241 (read_inferior_uinteger): New.
17242 (read_inferior_data_pointer): New.
17243 (write_inferior_data_pointer): New.
17244 (write_inferior_integer): New.
17245 (write_inferior_uinteger): New.
17246 (struct collect_static_trace_data_action): Delete.
17247 (enum tracepoint_type): New.
17248 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17249 <actions_str, step_actions, step_actions_str>: Only include in
17250 GDBserver.
fa593d66
PA
17251 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17252 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17253 (tracepoints): Use IP_AGENT_EXPORT.
17254 (last_tracepoint): Don't include in the IPA.
17255 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17256 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17257 (alloced_trace_state_variables): New.
17258 (trace_state_variables): Use IP_AGENT_EXPORT.
17259 (traceframe_t): Delete unused variable.
17260 (circular_trace_buffer): Don't include in the IPA.
17261 (trace_buffer_start): Delete.
17262 (struct trace_buffer_control): New.
17263 (trace_buffer_free): Delete.
17264 (struct ipa_trace_buffer_control): New.
17265 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17266 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17267 New.
17268 (trace_buffer_ctrl): New.
17269 (TRACE_BUFFER_CTRL_CURR): New.
17270 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17271 Reimplement as macros.
17272 (trace_buffer_wrap): Delete.
17273 (traceframe_write_count, traceframe_read_count)
17274 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17275 (struct tracepoint_hit_ctx) <type>: New field.
17276 (struct fast_tracepoint_ctx): New.
17277 (memory_barrier): New.
17278 (cmpxchg): New.
17279 (record_tracepoint_error): Update atomically in the IPA.
17280 (clear_inferior_trace_buffer): New.
17281 (about_to_request_buffer_space): New.
17282 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17283 updating the same buffer.
17284 (add_tracepoint): Default the tracepoint's type to trap
17285 tracepoint, and orig_size to -1.
17286 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17287 internal variables.
17288 (create_trace_state_variable): New parameter `gdb'. Handle it.
17289 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17290 (cmd_qtdp): Handle fast tracepoints.
17291 (cmd_qtdv): Adjust.
17292 (max_jump_pad_size): New.
17293 (gdb_jump_pad_head): New.
17294 (get_jump_space_head): New.
17295 (claim_jump_space): New.
17296 (sort_tracepoints): New.
17297 (MAX_JUMP_SIZE): New.
17298 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17299 IPA.
17300 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17301 support. Upload fast traceframes, and delete internal IPA
17302 breakpoints.
17303 (stop_tracing_handler): New.
17304 (flush_trace_buffer_handler): New.
17305 (cmd_qtstop): Upload fast tracepoints.
17306 (response_tracepoint): Handle fast tracepoints.
17307 (tracepoint_finished_step): Upload fast traceframes. Set the
17308 tracepoint hit context's tracepoint type.
17309 (handle_tracepoint_bkpts): New.
17310 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17311 type. Add comment about fast tracepoints.
17312 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17313 non-existing action_str field.
17314 (get_context_regcache): Handle fast tracepoints.
17315 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17316 to the regcache.
17317 (fast_tracepoint_from_jump_pad_address): New.
17318 (fast_tracepoint_from_ipa_tpoint_address): New.
17319 (collecting_t): New.
17320 (force_unlock_trace_buffer): New.
17321 (fast_tracepoint_collecting): New.
17322 (collecting): New.
17323 (gdb_collect): New.
17324 (write_inferior_data_ptr): New.
17325 (target_tp_heap): New.
17326 (target_malloc): New.
17327 (download_agent_expr): New.
17328 (UALIGN): New.
17329 (download_tracepoints): New.
17330 (download_trace_state_variables): New.
17331 (upload_fast_traceframes): New.
17332 (IPA_FIRST_TRACEFRAME): New.
17333 (IPA_NEXT_TRACEFRAME_1): New.
17334 (IPA_NEXT_TRACEFRAME): New.
17335 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17336 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17337 (gdb_jump_pad_buffer_end): New.
17338 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17339 (initialize_tracepoint): Adjust.
17340 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17341 buffer. Initialize the low module.
17342 * utils.c (PREFIX, TOOLNAME): New.
17343 (malloc_failure): Use PREFIX.
17344 (error): In the IPA, an error causes an exit.
17345 (fatal, warning): Use PREFIX.
17346 (internal_error): Use TOOLNAME.
17347 (NUMCELLS): Increase to 10.
17348 * configure, config.in: Regenerate.
17349
d149dd1d
PA
173502010-06-01 Pedro Alves <pedro@codesourcery.com>
17351
17352 * server.c (handle_query) <qSupported>: Do two passes over the
17353 qSupported string to avoid nesting strtok.
17354
f6528abd
JK
173552010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17356
17357 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17358 (CDEPS): New.
17359 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17360 -Wl,--dynamic-list.
17361 * configure: Regenerate.
17362 * proc-service.list: New.
17363
ca2a87a0
JK
173642010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17365
17366 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17367 New comment.
17368
363a6e9f
OS
173692010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17370
17371 * gdbreplay.c (remote_open): Check error return from socket() call by
17372 its equality to -1 not by it being negative.
17373 * remote-utils.c (remote_open): Likewise.
17374
d23b6cb1
PA
173752010-05-23 Pedro Alves <pedro@codesourcery.com>
17376
17377 * config.h: Regenerate.
17378
28d3cf85
MK
173792010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17380
17381 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17382 doesn't provide PTRACE_GET_THREAD_AREA.
17383
fea36a59
MK
173842010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17385
17386 * linux-m68k-low.c: Include <asm/ptrace.h>
17387 (ps_get_thread_area): Implement.
17388
24b066ba
DE
173892010-05-03 Doug Evans <dje@google.com>
17390
17391 * event-loop.c (struct callback_event): New struct.
17392 (callback_list): New global.
17393 (append_callback_event, delete_callback_event): New functions.
17394 (process_callback): New function.
17395 (start_event_loop): Call it.
17396 * remote-utils.c (NOT_SCHEDULED): Define.
17397 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17398 moved out of readchar.
17399 (readchar): Rewrite. Call reschedule before returning.
17400 (reset_readchar): New function.
17401 (remote_close): Call it.
17402 (process_remaining, reschedule): New functions.
17403 * server.h (callback_handler_func): New typedef.
17404 (append_callback_event, delete_callback_event): Declare.
17405
9836d6ea
PA
174062010-05-03 Pedro Alves <pedro@codesourcery.com>
17407
17408 * proc-service.c (ps_pglobal_lookup): Use
17409 thread_db_look_up_one_symbol.
17410 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17411 parameter. Use it instead of all_symbols_looked_up.
17412 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17413 field.
17414 (all_symbols_looked_up): Don't declare.
17415 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17416 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17417 field.
17418 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17419 Set all_symbols_looked_up here.
17420 (thread_db_look_up_one_symbol): New.
17421 (thread_db_get_tls_address): Adjust.
17422 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17423 thread_db object on the heap, and tentatively set it in the
17424 process structure.
17425 (thread_db_init): Don't set all_symbols_looked_up here.
17426 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17427
7984d532
PA
174282010-05-03 Pedro Alves <pedro@codesourcery.com>
17429
17430 * linux-low.c (linux_kill, linux_detach): Adjust.
17431 (status_pending_p_callback): Remove redundant statement. Check
17432 for !TARGET_WAITIKIND_IGNORE, instead of
17433 TARGET_WAITKIND_STOPPED.
17434 (handle_tracepoints): Make sure LWP is locked. Adjust.
17435 (linux_wait_for_event_1): Adjust.
17436 (linux_cancel_breakpoints): New.
17437 (unsuspend_one_lwp): New.
17438 (unsuspend_all_lwps): New.
17439 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17440 (send_sigstop_callback): Change return type to int, add new
17441 `except' parameter and handle it.
17442 (suspend_and_send_sigstop_callback): New.
17443 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17444 pass them down. If SUSPEND, also increment the lwp's suspend
17445 count.
17446 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17447 (need_step_over_p): Don't consider suspended LWPs.
17448 (start_step_over): Adjust.
17449 (proceed_one_lwp): Change return type to int, add new `except'
17450 parameter and handle it.
17451 (unsuspend_and_proceed_one_lwp): New.
17452 (proceed_all_lwps): Use find_inferior instead of
17453 for_each_inferior.
17454 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17455 also decrement the suspend count of LWPs. Pass `except' down,
17456 instead of hacking its suspend count.
17457 (linux_pause_all): Add `freeze' parameter. Adjust.
17458 (linux_unpause_all): New.
17459 (linux_target_ops): Install linux_unpause_all.
17460 * server.c (handle_status): Adjust.
17461 * target.h (struct target_ops): New fields `unpause_all' and
17462 `cancel_breakpoints'. Add new parameter to `pause_all'.
17463 (pause_all): Add new `freeze' parameter.
17464 (unpause_all): New.
17465 (cancel_breakpoints): New.
17466 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17467 cancel breakpoints.
17468 (cmd_qtstart): Pause threads.
17469 (stop_tracing): Pause threads, and cancel breakpoints.
17470 * win32-low.c (win32_target_ops): Adjust.
17471
e471f25b
PA
174722010-05-03 Pedro Alves <pedro@codesourcery.com>
17473
17474 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17475 the inferior right away from here...
17476 (linux_wait_1): ... to here, and adjust to check the thread's
17477 last_resume_kind instead of the lwp's step or stop_expected flags.
17478
1915ef4f
PA
174792010-05-02 Pedro Alves <pedro@codesourcery.com>
17480
17481 * README: Use consistent `GDB' and `GDBserver' spellings.
17482
f9e39928
PA
174832010-05-02 Pedro Alves <pedro@codesourcery.com>
17484
17485 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17486 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17487 (linux_detach_one_lwp): Assume the lwp is stopped.
17488 (any_thread_of): Delete.
17489 (linux_detach): Stop all lwps here. Don't blindly delete all
17490 breakpoints.
17491 (delete_lwp_callback): New.
17492 (linux_mourn): Delete all lwps of the process that is gone.
17493 (linux_wait_1): Don't delete the last lwp of the process here.
17494 * mem-break.h (mark_breakpoints_out): Declare.
17495 * mem-break.c (mark_breakpoints_out): New.
17496 (free_all_breakpoints): Use it.
17497 * server.c (handle_target_event): If the process is gone, mark
17498 breakpoints out.
17499 * thread-db.c (struct thread_db) <create_bp>: New field.
17500 (thread_db_enable_reporting): Fix prototype. Store a thread event
17501 breakpoint reference in the thread_db struct.
17502 (thread_db_load_search): Clear the thread_db object.
17503 (try_thread_db_load_1): Ditto.
17504 (switch_to_process): New.
17505 (disable_thread_event_reporting): Use it.
17506 (remove_thread_event_breakpoints): New.
17507 (thread_db_detach, thread_db_mourn): Use it.
17508
1e7fc18c
PA
175092010-05-01 Pedro Alves <pedro@codesourcery.com>
17510
17511 * linux-low.c (linux_enable_event_reporting): New.
17512 (linux_wait_for_event_1, handle_extended_wait): Use it.
17513
02fc4de7
PA
175142010-04-30 Pedro Alves <pedro@codesourcery.com>
17515
17516 * linux-low.c (linux_kill_one_lwp, linux_kill)
17517 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17518 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17519 SIGSTOP even if the LWP is stopped.
17520 (send_sigstop_callback): New.
17521 (stop_all_lwps): Use send_sigstop_callback instead.
17522 (linux_resume_one_thread): Adjust.
17523 (proceed_one_lwp): Still proceed an LWP that the client has
17524 requested to stop, if we haven't reported it as stopped yet. Make
17525 sure that LWPs the client want stopped, have a pending SIGSTOP.
17526
bc3b5632
DE
175272010-04-26 Doug Evans <dje@google.com>
17528
ae1ada35
DE
17529 * server.c (handle_general_set): Make static.
17530
bc3b5632
DE
17531 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17532 Print received char after testing for error/eof instead of before.
17533 (input_interrupt): Tweak comment.
17534
65730243
DE
175352010-04-23 Doug Evans <dje@google.com>
17536
17537 * server.c (start_inferior): Print inferior argv if --debug.
17538
a8ae7dc0
AR
175392010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17540
17541 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17542 * nto-x86-low.c: Include server.h
17543
1c07cc19
PM
175442010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17545
17546 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17547 be consistent with other sources of this directory.
17548 (init_registers_amd64): Correct name of source file of this function
17549 in the comment.
17550
e0a61e09
PM
175512010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17552
17553 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17554 64-bit executables.
17555
54709339
PM
175562010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17557
17558 * win32-i386-low.c: Add 64-bit support.
17559 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17560 (init_registers_amd64): Declare.
17561 (mappings): Add 64-bit version of array.
17562 (init_windows_x86): New function.
17563 (the_low_target): Change init_arch field to init_windows_x86.
17564
e8f0053d
PM
175652010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17566
17567 * win32-low.c: Adapt to support also 64-bit architecture.
17568 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17569 (get_image_name): Use SIZE_T type for local variable `done'.
17570 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17571 (toolhelp_get_dll_name): Idem.
17572 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17573 Use uintptr_t typecast to avoid warning.
17574 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17575 (handle_exception): Use phex_nz to avoid warning.
17576 (win32_wait): Remove unused local variable `process'.
17577
c481e77e
PM
175782010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17579
17580 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17581 `amd64-avx.o'.
17582
12ea4b69
PM
175832010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17584
17585 * configure.ac: Use `ws2_32' library for srv_mingw.
17586 * configure: Regenerate.
17587 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17588 * remote-utils.c: Likewise.
17589
f6d1620c
L
175902010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17591
17592 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17593 if __x86_64__ is defined.
17594
8e642873
PM
175952010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17596
17597 * configure: Regenerate.
17598
711e434b
PM
175992010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17600
17601 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17602 * target.h (target_ops): New get_tib_address field.
17603 * win32-low.h (win32_thread_info): Add thread_local_base field.
17604 * win32-low.c (child_add_thread): Add tlb argument.
17605 Set thread_local_base field to TLB.
17606 (get_child_debug_event): Adapt to child_add_thread change.
17607 (win32_get_tib_address): New function.
17608 (win32_target_ops): Set get_tib_address field to
17609 win32_get_tib_address.
17610 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17611
505106cd
PA
176122010-04-12 Pedro Alves <pedro@codesourcery.com>
17613
505106cd
PA
17614 * linux-low.c (linux_mourn): Also remove the process.
17615 * server.c (handle_target_event): Don't remove the process here.
17616 * nto-low.c (nto_mourn): New.
17617 (nto_target_ops): Install it.
17618 * spu-low.c (spu_mourn): New.
17619 (spu_target_ops): Install it.
17620 * win32-low.c (win32_mourn): New.
17621 (win32_target_ops): Install it.
17622
e8470a06
PA
176232010-04-12 Pedro Alves <pedro@codesourcery.com>
17624
17625 * server.h (buffer_xml_printf): Remove redundant `;'.
17626
45ba0d02
PA
176272010-04-12 Pedro Alves <pedro@codesourcery.com>
17628
17629 * regcache.c (set_register_cache): Invalidate regcaches before
17630 changing the register cache layout.
17631 (regcache_invalidate_one): Allow a NULL regcache.
17632 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17633 regcaches before changing the register cache layout or the target
17634 regsets.
17635
59e04013
L
176362010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17637
17638 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17639 variable warning on Linux/x86-64.
17640
8336d594
PA
176412010-04-11 Pedro Alves <pedro@codesourcery.com>
17642
17643 GDBserver disconnected tracing support.
17644
17645 * linux-low.c (linux_remove_process): Delete.
17646 (add_lwp): Don't set last_resume_kind here.
17647 (linux_kill): Use `mourn'.
17648 (linux_detach): Use `thread_db_detach', and `mourn'.
17649 (linux_mourn): New.
17650 (linux_attach_lwp_1): Adjust comment.
17651 (linux_attach): last_resume_kind moved the thread_info; adjust.
17652 (status_pending_p_callback): Adjust.
17653 (linux_wait_for_event_1): Adjust.
17654 (count_events_callback, select_singlestep_lwp_callback)
17655 (select_event_lwp_callback, cancel_breakpoints_callback)
17656 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17657 (proceed_one_lwp): Adjust.
17658 (linux_async): Add debug output.
17659 (linux_thread_stopped): New.
17660 (linux_pause_all): New.
17661 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17662 linux_pause_all.
17663 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17664 (thread_db_free): Delete declaration.
17665 (thread_db_detach, thread_db_mourn): Declare.
17666 * thread-db.c (thread_db_init): Use thread_db_mourn.
17667 (thread_db_free): Delete, split in two.
17668 (disable_thread_event_reporting): New.
17669 (thread_db_detach): New.
17670 (thread_db_mourn): New.
17671
17672 * server.h (struct thread_info) <last_resume_kind>: New field.
17673 <attached>: Add comment.
17674 <gdb_detached>: New field.
17675 (handler_func): Change return type to int.
17676 (handle_serial_event, handle_target_event): Ditto.
17677 (gdb_connected): Declare.
17678 (tracing): Delete.
17679 (disconnected_tracing): Declare.
17680 (stop_tracing): Declare.
17681
17682 * server.c (handle_query) <qSupported>: Report support for
17683 disconnected tracing.
17684 (queue_stop_reply_callback): Account for running threads.
17685 (gdb_wants_thread_stopped): New.
17686 (gdb_wants_all_threads_stopped): New.
17687 (gdb_reattached_process): New.
17688 (handle_status): Clear the `gdb_detached' flag of all processes.
17689 In all-stop, stop all threads.
17690 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17691 (process_serial_event): If the remote connection breaks, or if an
17692 exit was forced with "monitor exit", force an event loop exit.
17693 Handle disconnected tracing on detach.
17694 (handle_serial_event): Adjust.
17695 (handle_target_event): If GDB isn't connected, forward events back
17696 to the inferior, unless the last process exited, in which case,
17697 exit gdbserver. Adjust interface.
17698
17699 * remote-utils.c (remote_open): Don't block in accept. Instead
17700 register an event loop source on the listen socket file
17701 descriptor. Refactor bits into ...
17702 (listen_desc): ... this new global.
17703 (gdb_connected): ... this new function.
17704 (enable_async_notification): ... this new function.
17705 (handle_accept_event): ... this new function.
17706 (remote_close): Clear remote_desc.
17707
17708 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17709
17710 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17711 New fields.
17712 (mourn_inferior): Define.
17713 (target_process_qsupported): Avoid the dangling else problem.
17714 (thread_stopped): Define.
17715 (pause_all): Define.
17716 (target_waitstatus_to_string): Declare.
17717 * target.c (target_waitstatus_to_string): New.
17718
17719 * tracepoint.c (tracing): Make extern.
17720 (disconnected_tracing): New.
17721 (stop_tracing): Make extern. Handle tracing stops due to GDB
17722 disconnecting.
17723 (cmd_qtdisconnected): New.
17724 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17725 (handle_tracepoint_general_set): Handle QTDisconnected.
17726
17727 * event-loop.c (event_handler_func): Change return type to int.
17728 (process_event): Bail out if the event handler wants the event
17729 loop to stop.
17730 (handle_file_event): Ditto.
17731 (start_event_loop): Bail out if the event handler wants the event
17732 loop to stop.
17733
17734 * nto-low.c (nto_target_ops): Adjust.
17735 * spu-low.c (spu_wait): Don't remove the process here.
17736 (spu_target_ops): Adjust.
17737 * win32-low.c (win32_wait): Don't remove the process here.
17738 (win32_target_ops): Adjust.
17739
5d267c4c
PA
177402010-04-11 Pedro Alves <pedro@codesourcery.com>
17741
17742 * regcache.c (realloc_register_cache): Invalidate inferior's
17743 regcache before recreating it.
17744
623ccd72
PA
177452010-04-09 Pedro Alves <pedro@codesourcery.com>
17746
17747 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17748
219f2f23
PA
177492010-04-09 Stan Shebs <stan@codesourcery.com>
17750 Pedro Alves <pedro@codesourcery.com>
17751
17752 * server.h (LONGEST): New.
17753 (struct thread_info) <while_stepping>: New field.
17754 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17755 Declare.
17756 (initialize_tracepoint, handle_tracepoint_general_set)
17757 (handle_tracepoint_query, tracepoint_finished_step)
17758 (tracepoint_was_hit, release_while_stepping_state_list):
17759 (current_traceframe): Declare.
17760 * server.c (handle_general_set): Handle tracepoint packets.
17761 (read_memory): New.
17762 (write_memory): New.
17763 (handle_search_memory_1): Use read_memory.
17764 (handle_query): Report support for conditional tracepoints, trace
17765 state variables, and tracepoint sources. Handle tracepoint
17766 queries.
17767 (main): Initialize the tracepoints module.
17768 (process_serial_event): Handle traceframe reads/writes.
17769
17770 * linux-low.c (handle_tracepoints): New.
17771 (linux_wait_1): Call it.
17772 (linux_resume_one_lwp): Handle while-stepping.
17773 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17774 (linux_target_ops): Install them.
17775 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17776 New field.
17777 * linux-x86-low.c (x86_supports_tracepoints): New.
17778 (the_low_target). Install it.
17779
17780 * mem-break.h (delete_breakpoint): Declare.
17781 * mem-break.c (delete_breakpoint): Make external.
17782
17783 * target.h (struct target_ops): Add `supports_tracepoints',
17784 `read_pc', and `write_pc' fields.
17785 (target_supports_tracepoints): Define.
17786 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17787 (phex_nz): New.
17788
17789 * regcache.h (struct regcache) <registers_owned>: New field.
17790 (init_register_cache, regcache_cpy): Declare.
17791 (regcache_read_pc, regcache_write_pc): Declare.
17792 (register_cache_size): Declare.
17793 (supply_regblock): Declare.
17794 * regcache.c (init_register_cache): New.
17795 (new_register_cache): Use it.
17796 (regcache_cpy): New.
17797 (register_cache_size): New.
17798 (supply_regblock): New.
17799 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17800
219f2f23
PA
17801 * tracepoint.c: New.
17802
17803 * Makefile.in (OBS): Add tracepoint.o.
17804 (tracepoint.o): New rule.
17805
3a13a53b
L
178062010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17807
17808 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17809 (i386-mmx.o): New.
17810 (i386-mmx.c): Likewise.
17811 (i386-mmx-linux.o): Likewise.
17812 (i386-mmx-linux.c): Likewise.
17813
17814 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17815 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17816 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17817 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17818
17819 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17820 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17821 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17822
1570b33e
L
178232010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17824
17825 * Makefile.in (clean): Updated.
17826 (i386-avx.o): New.
17827 (i386-avx.c): Likewise.
17828 (i386-avx-linux.o): Likewise.
17829 (i386-avx-linux.c): Likewise.
17830 (amd64-avx.o): Likewise.
17831 (amd64-avx.c): Likewise.
17832 (amd64-avx-linux.o): Likewise.
17833 (amd64-avx-linux.c): Likewise.
17834
17835 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17836 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17837 (srv_amd64_regobj): Add amd64-avx.o.
17838 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17839 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17840 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17841 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17842 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17843 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17844 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17845
17846 * i387-fp.c: Include "i386-xstate.h".
17847 (i387_xsave): New.
17848 (i387_cache_to_xsave): Likewise.
17849 (i387_xsave_to_cache): Likewise.
17850 (x86_xcr0): Likewise.
17851
17852 * i387-fp.h (i387_cache_to_xsave): Likewise.
17853 (i387_xsave_to_cache): Likewise.
17854 (x86_xcr0): Likewise.
17855
17856 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17857 * linux-crisv32-low.c (target_regsets): Likewise.
17858 * linux-m68k-low.c (target_regsets): Likewise.
17859 * linux-mips-low.c (target_regsets): Likewise.
17860 * linux-ppc-low.c (target_regsets): Likewise.
17861 * linux-s390-low.c (target_regsets): Likewise.
17862 * linux-sh-low.c (target_regsets): Likewise.
17863 * linux-sparc-low.c (target_regsets): Likewise.
17864 * linux-xtensa-low.c (target_regsets): Likewise.
17865
17866 * linux-low.c: Include <sys/uio.h>.
17867 (regsets_fetch_inferior_registers): Support nt_type.
17868 (regsets_store_inferior_registers): Likewise.
17869 (linux_process_qsupported): New.
17870 (linux_target_ops): Add linux_process_qsupported.
17871
17872 * linux-low.h (regset_info): Add nt_type.
17873 (linux_target_ops): Add process_qsupported.
17874
17875 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17876 and <sys/uio.h>.
17877 (init_registers_i386_avx_linux): New.
17878 (init_registers_amd64_avx_linux): Likewise.
17879 (xmltarget_i386_linux_no_xml): Likewise.
17880 (xmltarget_amd64_linux_no_xml): Likewise.
17881 (PTRACE_GETREGSET): Likewise.
17882 (PTRACE_SETREGSET): Likewise.
17883 (x86_fill_xstateregset): Likewise.
17884 (x86_store_xstateregset): Likewise.
17885 (use_xml): Likewise.
17886 (x86_linux_update_xmltarget): Likewise.
17887 (x86_linux_process_qsupported): Likewise.
17888 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17889 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17890 init_registers_i386_linux here. Call
17891 x86_linux_update_xmltarget.
17892 (the_low_target): Add x86_linux_process_qsupported.
17893
17894 * server.c (handle_query): Call target_process_qsupported.
17895
17896 * target.h (target_ops): Add process_qsupported.
17897 (target_process_qsupported): New.
17898
fc7238bb
PA
178992010-04-03 Pedro Alves <pedro@codesourcery.com>
17900
17901 * inferiors.c (add_thread): Set last_status kind to
17902 TARGET_WAITKIND_IGNORE.
17903 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17904 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17905 (linux_wait_1): Move `thread' local definition to block that uses
17906 it. Don't NULL initialize `event_child'.
17907 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17908 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17909 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17910
bdabb078
PA
179112010-04-01 Pedro Alves <pedro@codesourcery.com>
17912
17913 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17914 an extended waitstatus, or by a watchpoint.
17915 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17916 thread was stepping or has been stopped by a watchpoint.
17917
d3bbe7a0
PA
179182010-04-01 Pedro Alves <pedro@codesourcery.com>
17919
17920 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17921 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17922 of another, then delete the previous, and validate all
17923 breakpoints.
17924 (validate_inserted_breakpoint): New.
17925 (delete_disabled_breakpoints): New.
17926 (validate_breakpoints): New.
17927 (check_mem_read): Validate breakpoints before trusting their
17928 shadow. Delete disabled breakpoints.
17929 (check_mem_write): Validate breakpoints before trusting they
17930 should be inserted. Delete disabled breakpoints.
17931 * mem-break.h (validate_breakpoints):
17932 * server.c (handle_query): Validate breakpoints when we see a
17933 qSymbol query.
17934
8b07ae33
PA
179352010-04-01 Pedro Alves <pedro@codesourcery.com>
17936
17937 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17938 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17939 if we could tell there's a GDB breakpoint at stop_pc.
17940 (need_step_over_p): Don't do a step over if we find a GDB
17941 breakpoint at the resume PC.
17942
17943 * mem-break.c (struct raw_breakpoint): New.
17944 (enum bkpt_type): New type `gdb_breakpoint'.
17945 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17946 fields. New field `raw'.
17947 (find_raw_breakpoint_at): New.
17948 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17949 breakpoint instead.
17950 (set_breakpoint_at): Adjust.
17951 (delete_raw_breakpoint): New.
17952 (release_breakpoint): New.
17953 (delete_breakpoint): Rename to...
17954 (delete_breakpoint_1): ... this. Add proc parameter. Use
17955 release_breakpoint. Return ENOENT.
17956 (delete_breakpoint): Reimplement.
17957 (find_breakpoint_at): Delete.
17958 (find_gdb_breakpoint_at): New.
17959 (delete_breakpoint_at): Delete.
17960 (set_gdb_breakpoint_at): New.
17961 (delete_gdb_breakpoint_at): New.
17962 (gdb_breakpoint_here): New.
17963 (set_reinsert_breakpoint): Use release_breakpoint.
17964 (uninsert_breakpoint): Rename to ...
17965 (uninsert_raw_breakpoint): ... this.
17966 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17967 (reinsert_raw_breakpoint): Change parameter type to
17968 raw_breakpoint.
17969 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17970 instead.
17971 (check_breakpoints): Adjust. Use release_breakpoint.
17972 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17973 (breakpoint_inserted_here): Ditto.
17974 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17975 Don't trust the breakpoint's shadow if it is not inserted.
17976 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17977 (delete_all_breakpoints): Adjust.
17978 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17979 use delete_breakpoint_1.
17980
17981 * mem-break.h (breakpoints_supported): Delete declaration.
17982 (set_gdb_breakpoint_at): Declare.
17983 (gdb_breakpoint_here): Declare.
17984 (delete_breakpoint_at): Delete.
17985 (delete_gdb_breakpoint_at): Declare.
17986
17987 * server.h (struct raw_breakpoint): Forward declare.
17988 (struct process_info): New field `raw_breakpoints'.
17989
17990 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17991 breakpoints.
17992
6bf5e0ba
PA
179932010-03-24 Pedro Alves <pedro@codesourcery.com>
17994
17995 * linux-low.c (status_pending_p_callback): Fix comment.
17996 (linux_wait_for_event_1): Move most of the internal breakpoint
17997 handling from here...
17998 (linux_wait_1): ... to here.
17999 (count_events_callback): New.
18000 (select_singlestep_lwp_callback): New.
18001 (select_event_lwp_callback): New.
18002 (cancel_breakpoints_callback): New.
18003 (select_event_lwp): New.
18004 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18005 priority to all LWPs that have had events that should be reported
18006 to the client. Cancel breakpoints when about to reporting the
18007 event to the client, not while stopping lwps. No longer cancel
18008 finished single-steps here.
18009 (cancel_finished_single_step): Delete.
18010 (cancel_finished_single_steps): Delete.
18011
414a389f
PA
180122010-03-24 Pedro Alves <pedro@codesourcery.com>
18013
18014 * mem-break.c (enum bkpt_type): New.
18015 (struct breakpoint): New field `type'.
18016 (set_breakpoint_at): Change return type to struct breakpoint
18017 pointer. Set type to `other_breakpoint' by default.
18018 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18019 in the breakpoint list.
18020 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18021 (reinsert_breakpoint): Rename to ...
18022 (reinsert_raw_breakpoint): ... this.
18023 (reinsert_breakpoints_at): Adjust.
18024 * mem-break.h (struct breakpoint): Declare.
18025 (set_breakpoint_at): Change return type to struct breakpoint
18026 pointer.
18027
2280c721
PA
180282010-03-24 Pedro Alves <pedro@codesourcery.com>
18029
18030 * server.c (handle_query): Assign, not compare.
18031
d50171e4
PA
180322010-03-24 Pedro Alves <pedro@codesourcery.com>
18033
18034 Teach linux gdbserver to step-over-breakpoints.
18035
18036 * linux-low.c (can_hardware_single_step): New.
18037 (supports_breakpoints): New.
18038 (handle_extended_wait): If stopping threads, read the stop pc of
18039 the new cloned LWP.
18040 (get_pc): New.
18041 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18042 low target doesn't support retrieving the PC.
18043 (add_lwp): Set last_resume_kind to resume_continue.
18044 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18045 (linux_attach): Don't clear stop_expected. Set the lwp's
18046 last_resume_kind to resume_stop.
18047 (linux_detach_one_lwp): Don't check for removed breakpoints.
18048 (check_removed_breakpoint): Delete.
18049 (status_pending_p): Rename to ...
18050 (status_pending_p_callback): ... this. Don't check for removed
18051 breakpoints. Don't consider threads that are stopped from GDB's
18052 perspective.
18053 (linux_wait_for_lwp): Always read the stop_pc here.
18054 (cancel_breakpoint): New.
18055 (step_over_bkpt): New global.
18056 (linux_wait_for_event_1): Implement stepping over breakpoints.
18057 (gdb_wants_lwp_stopped): New.
18058 (gdb_wants_all_stopped): New.
18059 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18060 single-step traps here. Store the thread's last reported target
18061 wait status.
18062 (send_sigstop): Don't clear stop_expected. Always set it,
18063 instead.
18064 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18065 (cancel_finished_single_step): New.
18066 (cancel_finished_single_steps): New.
18067 (wait_for_sigstop): Don't cancel finished single-step traps here.
18068 (linux_resume_one_lwp): Don't check for removed breakpoints.
18069 Don't set `step' on non-hardware step archs.
18070 (linux_set_resume_request): Ignore resume_stop requests if already
18071 stopping or stopped. Set the lwp's last_resume_kind.
18072 (resume_status_pending_p): Don't check for removed breakpoints.
18073 (need_step_over_p): New.
18074 (start_step_over): New.
18075 (finish_step_over): New.
18076 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18077 requests. Clear the thread's last reported target waitstatus.
18078 Don't use the `suspended' flag. Don't consider pending breakpoints.
18079 (linux_resume): Start a step-over if necessary.
18080 (proceed_one_lwp): New.
18081 (proceed_all_lwps): New.
18082 (unstop_all_lwps): New.
18083 * linux-low.h (struct lwp_info): Rewrite comment for the
18084 `suspended' flag. Add the `stop_pc' field. Delete the
18085 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18086 Add `'last_resume_kind' and `need_step_over' fields.
18087 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18088 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18089 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18090 (set_raw_breakpoint_at): New.
18091 (set_breakpoint_at): Rewrite to use it.
18092 (reinsert_breakpoint_handler): Delete.
18093 (set_reinsert_breakpoint): New.
18094 (reinsert_breakpoint_by_bp): Delete.
18095 (delete_reinsert_breakpoints): New.
18096 (uninsert_breakpoint): Rewrite.
18097 (uninsert_breakpoints_at): New.
18098 (reinsert_breakpoint): Rewrite.
18099 (reinsert_breakpoints_at): New.
18100 (check_breakpoints): Rewrite.
18101 (breakpoint_here): New.
18102 (breakpoint_inserted_here): New.
18103 (check_mem_read): Adjust.
18104 * mem-break.h (breakpoints_supported, breakpoint_here)
18105 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18106 (reinsert_breakpoint_by_bp): Delete declaration.
18107 (delete_reinsert_breakpoints): Declare.
18108 (reinsert_breakpoint): Delete declaration.
18109 (reinsert_breakpoints_at): Declare.
18110 (uninsert_breakpoint): Delete declaration.
18111 (uninsert_breakpoints_at): Declare.
18112 (check_breakpoints): Adjust prototype.
18113 * server.h: Adjust include order.
18114 (struct thread_info): Declare here. Add a `last_status' field.
18115
30ba68cb
MS
181162010-03-23 Michael Snyder <msnyder@vmware.com>
18117
18118 * server.c (crc32): New function.
18119 (handle_query): Add handling for 'qCRC:' request.
18120
b9a881c2
PA
181212010-03-23 Pedro Alves <pedro@codesourcery.com>
18122
18123 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18124 lwp had been stopped by a watchpoint.
18125
e92d13d5
PA
181262010-03-16 Pedro Alves <pedro@codesourcery.com>
18127
18128 * server.h (internal_error): Declare.
18129 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18130 * utils.c (internal_error): New function.
18131
64daa791
AS
181322010-03-15 Andreas Schwab <schwab@redhat.com>
18133
18134 * configure.srv: Fix typo setting srv_regobj.
18135
f52cd8cd
PA
181362010-03-15 Pedro Alves <pedro@codesourcery.com>
18137
18138 * linux-low.c (fetch_register): Avoid passing a non string literal
18139 format to `error'.
18140 (usr_store_inferior_registers): Ditto.
18141
93ae6fdc
PA
181422010-03-14 Pedro Alves <pedro@codesourcery.com>
18143
18144 * linux-low.c (linux_write_memory): Bail out early if peeking
18145 memory failed.
18146
c3adc08c
PA
181472010-03-14 Pedro Alves <pedro@codesourcery.com>
18148
18149 * linux-low.h (struct lwp_info): New fields
18150 `stopped_by_watchpoint' and `stopped_data_address'.
18151 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18152 here, and cache them in the lwp object.
18153 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18154 directly.
18155 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18156 field.
18157 (linux_stopped_by_watchpoint): Rewrite.
18158 (linux_stopped_data_address): Rewrite.
18159
bce522a2
PA
181602010-03-06 Simo Melenius <simo.melenius@iki.fi>
18161
18162 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18163 switching the current inferior, not before.
18164
90884b2b
L
181652010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18166
18167 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18168 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18169 i386-linux.c and amd64-linux.c.
18170 (reg-i386.o): Removed.
18171 (reg-i386.c): Likewise.
18172 (reg-i386-linux.o): Likewise.
18173 (reg-i386-linux.c): Likewise.
18174 (reg-x86-64.o): Likewise.
18175 (reg-x86-64.c): Likewise.
18176 (reg-x86-64-linux.o): Likewise.
18177 (reg-x86-64-linux.c): Likewise.
18178 (i386.o): New.
18179 (i386.c): Likewise.
18180 (i386-linux.o): Likewise.
18181 (i386-linux.c): Likewise.
18182 (amd64.o): Likewise.
18183 (amd64.c): Likewise.
18184 (amd64-linux.o): Likewise.
18185 (amd64-linux.c): Likewise.
18186
18187 * configure.srv (srv_i386_regobj): New.
18188 (srv_i386_linux_regobj): Likewise.
18189 (srv_amd64_regobj): Likewise.
18190 (srv_amd64_linux_regobj): Likewise.
18191 (srv_i386_32bit_xmlfiles): Likewise.
18192 (srv_i386_64bit_xmlfiles): Likewise.
18193 (srv_i386_xmlfiles): Likewise.
18194 (srv_amd64_xmlfiles): Likewise.
18195 (srv_i386_linux_xmlfiles): Likewise.
18196 (srv_amd64_linux_xmlfiles): Likewise.
18197 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18198 srv_xmlfiles to $srv_i386_xmlfiles.
18199 (i[34567]86-*-mingw32ce*): Likewise.
18200 (i[34567]86-*-mingw*): Likewise.
18201 (i[34567]86-*-nto*): Likewise.
18202 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18203 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18204 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18205 (x86_64-*-linux*): Likewise.
18206
18207 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18208 (init_registers_amd64_linux): New.
18209 (x86_arch_setup): Replace init_registers_x86_64_linux with
18210 init_registers_amd64_linux.
18211
193f13e6
MK
182122010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18213
18214 * configure.ac: Check for libdl. If it is not available link against
18215 static libthread_db.
18216 * configure: Regenerate.
18217
85d721b8
PA
182182010-02-22 Pedro Alves <pedro@codesourcery.com>
18219
18220 PR9605
18221
18222 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18223 handing a read watchpoint.
18224 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18225
6076632b
DE
182262010-02-12 Doug Evans <dje@google.com>
18227
18228 * linux-low.c (linux_supports_tracefork_flag): Document.
18229 (linux_look_up_symbols): Add comment.
18230
3327ccf7
L
182312010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18232
18233 * regcache.c (supply_register): Clear regcache if buf is NULL.
18234
0718675c 182352010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18236 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18237
18238 * inferiors.c (find_inferior): Add function documentation.
18239 (unloaded_dll): Handle the case where the unloaded dll has not
18240 been previously registered in the dll list.
18241
177321bd
DJ
182422010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18243
18244 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18245 (thumb2_breakpoint): New.
18246 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18247
2b009048
DJ
182482010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18249
18250 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18251 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18252 breakpoints.
18253
3be029c7
PA
182542010-01-21 Pedro Alves <pedro@codesourcery.com>
18255
18256 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18257
18f5de3b
JK
182582010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18259
18260 * linux-s390-low.c (s390_collect_ptrace_register)
18261 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18262
3743bb4f
DE
182632010-01-21 Doug Evans <dje@google.com>
18264
14ce3065
DE
18265 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18266 (PTRACE_ARG4_TYPE): New macro.
18267 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18268 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18269 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18270 (usr_store_inferior_registers): Ditto.
18271 (linux_read_memory, linux_write_memory): Ditto.
18272 (linux_test_for_tracefork): Ditto.
18273
3743bb4f
DE
18274 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18275 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18276
8b315be5
PA
182772010-01-21 Pedro Alves <pedro@codesourcery.com>
18278
18279 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18280 target.
18281
85492558
PA
182822010-01-21 Pedro Alves <pedro@codesourcery.com>
18283
18284 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18285 prototype to take a regcache. Adjust.
18286
442ea881
PA
182872010-01-20 Pedro Alves <pedro@codesourcery.com>
18288
18289 * regcache.h (struct thread_info): Forward declare.
18290 (struct regcache): New.
18291 (new_register_cache): Adjust prototype.
18292 (get_thread_regcache): Declare.
18293 (free_register_cache): Adjust prototype.
18294 (registers_to_string, registers_from_string): Ditto.
18295 (supply_register, supply_register_by_name, collect_register)
18296 (collect_register_as_string, collect_register_by_name): Ditto.
18297 * regcache.c (struct inferior_regcache_data): Delete.
18298 (get_regcache): Rename to ...
18299 (get_thread_regcache): ... this. Adjust. Switch inferior before
18300 fetching registers.
18301 (regcache_invalidate_one): Adjust.
18302 (regcache_invalidate): Fix prototype.
18303 (new_register_cache): Return the new register cache.
18304 (free_register_cache): Change prototype.
18305 (realloc_register_cache): Adjust.
18306 (registers_to_string): Change prototype to take a regcache. Adjust.
18307 (registers_from_string): Ditto.
18308 (register_data): Ditto.
18309 (supply_register): Ditto.
18310 (supply_register_by_name): Ditto.
18311 (collect_register): Ditto.
18312 (collect_register_as_string): Ditto.
18313 (collect_register_by_name): Ditto.
18314 * server.c (process_serial_event): Adjust.
18315 * linux-low.h (regset_fill_func, regset_store_func): Change
18316 prototype.
18317 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18318 Change prototype.
18319 * linux-low.c (get_stop_pc): Adjust.
18320 (check_removed_breakpoint): Adjust.
18321 (linux_wait_for_event): Adjust.
18322 (linux_resume_one_lwp): Adjust.
18323 (fetch_register): Add regcache parameter. Adjust.
18324 (usr_store_inferior_registers): Ditto.
18325 (regsets_fetch_inferior_registers): Ditto.
18326 (regsets_store_inferior_registers): Ditto.
18327 (linux_fetch_registers, linux_store_registers): Ditto.
18328 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18329 regcache. Adjust.
43aaf8b6
PA
18330 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18331 Ditto.
442ea881
PA
18332 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18333 prototype to take a regcache.
18334 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18335 * remote-utils.c (convert_ascii_to_int, outreg)
18336 (prepare_resume_reply): Change prototype to take a regcache.
18337 Adjust.
18338 * target.h (struct target_ops) <fetch_registers, store_registers>:
18339 Change prototype to take a regcache.
18340 (fetch_inferior_registers, store_inferior_registers): Change
18341 prototype to take a regcache. Adjust.
18342 * proc-service.c (ps_lgetregs): Adjust.
18343 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18344 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18345 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18346 take a regcache. Adjust.
18347 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18348 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18349 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18350 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18351 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18352 (cris_cannot_fetch_register):
18353 (cris_breakpoint_at): Change prototype to take a regcache.
18354 Adjust.
18355 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18356 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18357 to take a regcache. Adjust.
18358 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18359 Adjust.
18360 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18361 take a regcache. Adjust.
18362 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18363 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18364 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18365 * linux-mips-low.c (mips_get_pc):
18366 (mips_set_pc): Change prototype to take a regcache. Adjust.
18367 (mips_reinsert_addr): Adjust.
18368 (mips_collect_register): Change prototype to take a regcache.
18369 Adjust.
18370 (mips_supply_register):
18371 (mips_collect_register_32bit, mips_supply_register_32bit)
18372 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18373 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18374 * linux-ppc-low.c (ppc_supply_ptrace_register)
18375 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18376 (parse_spufs_run): Adjust.
18377 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18378 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18379 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18380 take a regcache. Adjust.
18381 * linux-s390-low.c (s390_collect_ptrace_register)
18382 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18383 (s390_set_pc): Change prototype to take a regcache. Adjust.
18384 (s390_arch_setup): Adjust.
18385 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18386 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18387 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18388 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18389 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18390 regcache. Adjust.
18391 (sparc_breakpoint_at): Adjust.
18392 * linux-xtensa-low.c (xtensa_fill_gregset):
18393 (xtensa_store_gregset):
18394 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18395 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18396 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18397 prototype to take a regcache. Adjust.
18398 * win32-arm-low.c (arm_fetch_inferior_register)
18399 (arm_store_inferior_register): Change prototype to take a
18400 regcache. Adjust.
18401 * win32-i386-low.c (i386_fetch_inferior_register)
18402 (i386_store_inferior_register): Change prototype to take a
18403 regcache. Adjust.
18404 * win32-low.c (child_fetch_inferior_registers)
18405 (child_store_inferior_registers): Change prototype to take a
18406 regcache. Adjust.
18407 (win32_wait): Adjust.
18408 (win32_fetch_inferior_registers): Change prototype to take a
18409 regcache. Adjust.
18410 (win32_store_inferior_registers): Adjust.
18411 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18412 store_inferior_register>: Change prototype to take a regcache.
18413
60c3d7b0
DE
184142010-01-20 Doug Evans <dje@google.com>
18415
18416 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18417 #ifdef.
18418 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18419 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18420
dc146f7c
VP
184212010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18422
18423 * linux-low.c (linux_core_of_thread): New.
18424 (compare_ints, show_process, list_threads): New.
18425 (linux_qxfer_osdata): Report threads and cores.
18426 (linux_target_op): Register linux_core_of_thread.
18427 * remote-utils.c (prepare_resume_reply): Report the core.
18428 (buffer_xml_printf): Support %d specifier.
18429 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18430 New.
18431 (handle_query): Handle qXfer:threads. Announce availability
18432 thereof.
18433 * target.h (struct target_ops): New field core_of_thread.
18434
7803799a
UW
184352010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18436
18437 * Makefile.in (clean): Remove new generated files.
18438 (reg-s390.o, reg-s390.c): Remove rules.
18439 (reg-s390x.o, reg-s390x.c): Likewise.
18440 (s390-linux32.o, s390-linux32.c): Add rules.
18441 (s390-linux64.o, s390-linux64.c): Likewise.
18442 (s390x-linux64.o, s390x-linux64.c): Likewise.
18443 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18444 * linux-s390-low.c: Include <elf.h>.
18445 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18446 (init_registers_s390): Remove prototype.
18447 (init_registers_s390x): Likewise.
18448 (init_registers_s390_linux32): Add prototype.
18449 (init_registers_s390_linux64): Likewise.
18450 (init_registers_s390x_linux64): Likewise.
18451 (s390_num_regs_3264): New define.
18452 (s390_regmap_3264): New global variable.
18453 (s390_cannot_fetch_register): Remove obsolete check.
18454 (s390_cannot_store_register): Likewise.
18455 (s390_collect_ptrace_register): Handle upper/lower register halves.
18456 (s390_supply_ptrace_register): Likewise.
18457 (s390_fill_gregset): Update to register number changes.
18458 (s390_get_hwcap): New routine.
18459 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18460 Install appropriate regmap and register set.
18461
6e7ffa39
JB
184622010-01-01 Joel Brobecker <brobecker@adacore.com>
18463
18464 * server.c (gdbserver_version): Update copyright year to 2010.
18465 * gdbreplay.c (gdbreplay_version): Likewise.
18466
957f3f49
DE
184672009-12-28 Doug Evans <dje@google.com>
18468
18469 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18470 elf/external.h. Include <elf.h> instead but only if necessary.
18471
ca5c370d
PA
184722009-12-28 Pedro Alves <pedro@codesourcery.com>
18473
18474 * linux-low.c (linux_remove_process): Remove `detaching'
18475 parameter. Don't release/detach from thread_db here.
18476 (linux_kill): Release/detach from thread_db here, ...
18477 (linux_detach): ... and here, before actually detaching.
18478 (linux_wait_1): ... and here, when a process exits.
18479 * thread-db.c (any_thread_of): New.
18480 (thread_db_free): Switch the current inferior to a thread of the
18481 passed in process.
18482
4ee62156
DE
184832009-12-21 Doug Evans <dje@google.com>
18484
d90e6a88
DE
18485 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18486
c5f62d5f
DE
18487 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18488 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18489 warning ifndef __NR_tkill. Move setting of errno there too.
18490 Delete unnecessary resetting of errno after syscall.
18491 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18492
10e86dd7
DE
18493 * configure.ac: Check for dladdr.
18494 * config.in: Regenerate.
18495 * configure: Regenerate.
18496 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18497 (try_thread_db_load): Update.
18498
4ee62156
DE
18499 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18500
00f515da
DE
185012009-12-18 Doug Evans <dje@google.com>
18502
e9464885
DE
18503 * event-loop.c: Include unistd.h if it exists.
18504
07d4f67e
DE
18505 * linux-low.c (my_waitpid): Move definition away from being in
18506 between linux_tracefork_child/linux_test_for_tracefork.
18507
00f515da
DE
18508 * gdb_proc_service.h (psaddr_t): Fix type.
18509 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18510 signature to match glibc.
18511
1de1badb
DE
185122009-12-16 Doug Evans <dje@google.com>
18513
18514 * linux-low.c (linux_read_memory): Fix argument to read.
18515
aeeb81d1
PA
185162009-11-26 Pedro Alves <pedro@codesourcery.com>
18517
18518 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18519 events, don't leave current_inferior pointing at null.
18520
10357975
PA
185212009-11-26 Pedro Alves <pedro@codesourcery.com>
18522
18523 * win32-low.c (LOG): Delete.
18524 (OUTMSG): Output to stderr.
18525 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18526 on compile time LOG macro.
18527 (win32_wait): Fix debug output.
18528
cf6e3471
PA
185292009-11-26 Pedro Alves <pedro@codesourcery.com>
18530
18531 * win32-low.c (win32_add_one_solib): If the dll name is
18532 "ntdll.dll", prepend the system directory to the dll path.
18533
0c85e18e
MK
185342009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18535
18536 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18537
9ac544ce 185382009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18539 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18540
18541 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18542 * configure.ac: Check for __mcoldfire__ and set
18543 gdb_cv_m68k_is_coldfire.
18544 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18545 reg-cf.o and reg-m68k.o.
18546 * configure: Regenerated.
18547
fd7dd3e6
PA
185482009-11-16 Pedro Alves <pedro@codesourcery.com>
18549
18550 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18551 Pass it to thread_db_free.
18552 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18553 proper `detaching' argument to linux_remove_process.
18554 * linux-low.h (thread_db_free): Add `detaching' parameter.
18555 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18556 to thread_db_free.
18557 (thread_db_free): Add `detaching' parameter. Only
18558 call td_ta_clear_event if detaching from process.
18559
75aa492e
MK
185602009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18561
18562 * thread-db.c (thread_db_free): Fix typo.
18563
21e1bee4
PP
185642009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18565
18566 PR gdb/10838
18567 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18568
8838b45e
NS
185692009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18570
18571 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18572 with an i686 compiler.
18573 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18574 needed.
18575 * configure: Rebuilt.
18576
8a35fb51
SL
185772009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18578
18579 PR gdb/10783
18580
18581 * server.c (handle_search_memory_1): Correct read_addr initialization
18582 in loop for searching subsequent chunks.
18583
96f15937
PP
185842009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18585
18586 * configure.ac: New --with-libthread-db option.
18587 * thread-db.c: Allow direct dependence on libthread_db.
18588 (thread_db_free): Adjust.
18589 * config.in: Regenerate.
18590 * configure: Likewise.
889bf7c5 18591
5f7d1694
PP
185922009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18593
18594 PR gdb/10757
18595 * thread-db.c (attach_thread): New function.
18596 (maybe_attach_thread): Return success/failure.
18597 (find_new_threads_callback): Adjust.
889bf7c5
PA
18598 (thread_db_find_new_threads): Loop until no new threads.
18599
88e3b899
PA
186002009-10-13 Pedro Alves <pedro@codesourcery.com>
18601
18602 * proc-service.c (ps_lgetregs): Formatting.
18603
cdbfd419
PP
186042009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18605
18606 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18607 * configure.ac: Adjust.
18608 * linux-low.h (struct process_info_private): Move members to struct
18609 thread_db.
18610 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18611 * linux-low.c (linux_remove_process): Adjust.
18612 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18613 * server.c (handle_query): Move code ...
18614 (handle_monitor_command): ... here. New function.
18615 * target.h (struct target_ops): New member.
18616 * thread-db.c (struct thread_db): New.
18617 (libthread_db_search_path): New variable.
18618 (thread_db_create_event, thread_db_enable_reporting)
18619 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18620 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18621 (try_thread_db_load_1, dladdr_to_soname): New functions.
18622 (try_thread_db_load, thread_db_load_search): New functions.
18623 (thread_db_init): Search for libthread_db.
18624 (thread_db_free): New function.
18625 (thread_db_handle_monitor_command): Likewise.
18626 * config.in: Regenerate.
18627 * configure: Regenerate.
889bf7c5 18628
4168d2d6
UW
186292009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18630
18631 * spu-low.c (spu_kill): Wait for inferior to terminate.
18632 Call clear_inferiors.
18633 (spu_detach): Call clear_inferiors.
18634
81ecdfbb
RW
186352009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18636
18637 * aclocal.m4: Regenerate.
18638 * config.in: Likewise.
18639 * configure: Likewise.
18640
0b9ff2c0
UW
186412009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18642
18643 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18644 (parse_spufs_run): New function.
18645 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18646 (ppc_breakpoint_at): Handle SPU breakpoints.
18647
efcbbd14
UW
186482009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18649
18650 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18651 (SPUFS_MAGIC): Define.
18652 (spu_enumerate_spu_ids): New function.
18653 (linux_qxfer_spu): New function.
18654 (linux_target_ops): Install linux_qxfer_spu.
18655
f4d9bade
UW
186562009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18657
18658 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18659 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18660 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18661 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18662 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18663 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18664 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18665 (init_registers_powerpc_cell32l): Add prototype.
18666 (init_registers_powerpc_cell64l): Likewise.
18667 (ppc_arch_setup): Detect Cell/B.E. architecture.
18668
96e946ca
RW
186692009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18670
18671 * Makefile.in (datarootdir): New variable.
18672
58d6951d
DJ
186732009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18674
18675 * linux-low.c (linux_write_memory): Update debugging output.
18676 * Makefile.in (clean): Add new descriptions.
18677 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18678 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18679 * configure.srv: Add new files for arm*-*-linux*.
18680 * linux-arm-low.c: Add new declarations.
18681 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18682 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18683 (HWCAP_VFPv3D16): New.
18684 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18685 instead of __IWMMXT__.
18686 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18687 (arm_arch_setup): New.
18688 (target_regsets): Remove #ifdef. Add VFP regset.
18689 (the_low_target): Use arm_arch_setup.
18690
12b42a12
DJ
186912009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18692
18693 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18694 the main thread again.
18695
ac8c974e
AR
186962009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18697
18698 Adding Neutrino gdbserver.
18699 * configure: Regenerated.
18700 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18701 * configure.srv (i[34567]86-*-nto*): New target.
18702 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18703 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18704 (nto_comctrl) [__QNX__]: New function.
18705 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18706
4424e0c3 187072009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18708
18709 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18710 srv_tgtobj.
18711
912cf4ba
PA
187122009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18713 Pedro Alves <pedro@codesourcery.com>
18714
18715 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18716 don't support CONTEXT_EXTENDED_REGISTERS.
18717 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18718 (the_low_target): Install them.
18719 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18720 failing with ERROR_PIPE_NOT_CONNECTED.
18721
aa5ca48f
DE
187222009-06-30 Doug Evans <dje@google.com>
18723 Pierre Muller <muller@ics.u-strasbg.fr>
18724
18725 Add h/w watchpoint support to x86-linux, win32-i386.
18726 * Makefile.in (SFILES): Add i386-low.c
18727 (i386_low_h): Define.
18728 (i386-low.o): Add dependencies.
18729 (linux-x86-low.o): Add i386-low.h dependency.
18730 (win32-i386-low.o): Ditto.
18731 * i386-low.c: New file.
18732 * i386-low.h: New file.
18733 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18734 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18735 * linux-low.c (linux_add_process): Initialize arch_private.
18736 (linux_remove_process): Free arch_private.
18737 (add_lwp): Initialize arch_private.
18738 (delete_lwp): Free arch_private.
18739 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18740 provided.
18741 * linux-low.h (process_info_private): New member arch_private.
18742 (lwp_info): New member arch_private.
18743 (linux_target_ops): New members new_process, new_thread,
18744 prepare_to_resume.
18745 (ptid_of): New macro.
18746 * linux-x86-low.c: Include stddef.h, i386-low.h.
18747 (arch_process_info): New struct.
18748 (arch_lwp_info): New struct.
18749 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18750 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18751 (i386_dr_low_get_status): New function.
18752 (x86_insert_point, x86_remove_point): New functions.
18753 (x86_stopped_by_watchpoint): New function.
18754 (x86_stopped_data_address): New function.
18755 (x86_linux_new_process, x86_linux_new_thread): New functions.
18756 (x86_linux_prepare_to_resume): New function.
18757 (the_low_target): Add entries for insert_point, remove_point,
18758 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18759 prepare_to_resume.
18760 * server.c (debug_hw_points): New global.
18761 (monitor_show_help): Document set debug-hw-points.
18762 (handle_query): Process "set debug-hw-points".
18763 * server.h (debug_hw_points): Declare.
18764 (paddress): Declare.
18765 * utils.c (NUMCELLS, CELLSIZE): New macros.
18766 (get_sell, xsnprintf, paddress): New functions.
18767 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18768 remove_point, stopped_by_watchpoint, stopped_data_address.
18769 * win32-i386-low.c: Include i386-low.h.
18770 (debug_reg_state): Replaces dr.
18771 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18772 (i386_dr_low_get_status): New function.
18773 (i386_insert_point, i386_remove_point): New functions.
18774 (i386_stopped_by_watchpoint): New function.
18775 (i386_stopped_data_address): New function.
18776 (i386_initial_stuff): Update.
18777 (get_thread_context,set_thread_context,i386_thread_added): Update.
18778 (the_low_target): Add entries for insert_point,
18779 remove_point, stopped_by_watchpoint, stopped_data_address.
18780 * win32-low.c (win32_insert_watchpoint): New function.
18781 (win32_remove_watchpoint): New function.
18782 (win32_stopped_by_watchpoint): New function.
18783 (win32_stopped_data_address): New function.
18784 (win32_target_ops): Add entries for insert_watchpoint,
18785 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18786 * win32-low.h (win32_target_ops): New members insert_point,
18787 remove_point, stopped_by_watchpoint, stopped_data_address.
18788
d993e290
PA
187892009-06-25 Pedro Alves <pedro@codesourcery.com>
18790
18791 * server.c (process_serial_event): Re-return unsupported, not
18792 error, if the type isn't recognized. Re-allow supporting only
18793 insert or remove packets. Also call require_running for
18794 breakpoints. Add missing break statement to default case. Tidy.
18795 * target.h (struct target_ops): Rename insert_watchpoint to
18796 insert_point, and remove_watchpoint to remove_point.
18797
18798 * linux-low.h (struct linux_target_ops): Likewise.
18799 * linux-low.c (linux_insert_watchpoint): Rename to ...
18800 (linux_insert_point): ... this. Adjust.
18801 (linux_remove_watchpoint): Rename to ...
18802 (linux_remove_point): ... this. Adjust.
18803 (linux_target_ops): Adjust.
18804 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18805 (cris_insert_point): ... this.
18806 (cris_remove_watchpoint): Rename to ...
18807 (cris_remove_point): ... this.
18808 (the_low_target): Adjust.
18809
0f54c268
PM
188102009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18811
18812 * server.c (handle_v_kill): Pass signal_pid to
18813 kill_inferior if multi_process is zero.
18814
c6314022
AR
188152009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18816
18817 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18818 * target.h (target_ops): Comment for *_watchpoint to make it clear
18819 the functions can get types '0' and '1'.
18820
4463ce24
AR
188212009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18822
18823 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18824 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18825 * regcache.c (get_regcache): Likewise.
18826 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18827 * win32-low.c (child_fetch_inferior_registers): Remove check for
18828 regno 0.
18829
cf8fd78b
PA
188302009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18831 Pedro Alves <pedro@codesourcery.com>
18832
18833 * target.h (struct target_ops) <supports_multi_process>: New
18834 callback.
18835 (target_supports_multi_process): New.
18836 * server.c (handle_query): Even if GDB reports support, only
18837 enable multi-process if the target also supports it. Report
18838 multi-process support only if the target backend supports it.
18839 * linux-low.c (linux_supports_multi_process): New function.
18840 (linux_target_ops): Install it as target_supports_multi_process
18841 callback.
18842
47c0c975
DE
188432009-05-24 Doug Evans <dje@google.com>
18844
e09875d4
DE
18845 Global renaming of find_thread_pid to find_thread_ptid.
18846 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18847 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18848 All callers updated.
18849
e27d73f6
DE
18850 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18851 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18852 directly.
18853
47c0c975
DE
18854 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18855 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18856 (linux_resume_one_lwp): Ditto.
18857
2acc282a
DE
188582009-05-23 Doug Evans <dje@google.com>
18859
18860 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18861 from struct inferior_list_entry * to struct lwp_info *.
18862 All callers updated.
18863
9f1036c1
DE
188642009-05-13 Doug Evans <dje@google.com>
18865
18866 * linux-x86-low.c: Don't include assert.h.
18867 (x86_siginfo_fixup): Use fatal, not assert.
18868 (x86_arch_setup): Fix comment.
18869
d0722149
DE
188702009-05-12 Doug Evans <dje@google.com>
18871
18872 Biarch support for i386/amd64 gdbserver.
18873 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18874 Add linux-x86-low.c.
18875 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18876 (linux-x86-low.o): Add.
18877 * linux-x86-64-low.c: Delete.
18878 * linux-i386-low.c: Delete.
18879 * linux-x86-low.c: New file.
18880 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18881 linux-x86-low.o.
18882 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18883 linux-x86-low.o.
18884 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18885 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18886 (linux_child_pid_to_exec_file): New function.
18887 (elf_64_header_p, elf_64_file_p): New functions.
18888 (siginfo_fixup): New function.
18889 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18890 give target a chance to convert layout.
18891 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18892 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18893
fdeb2a12
DE
188942009-05-07 Doug Evans <dje@google.com>
18895
18896 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18897 (regsets_store_inferior_registers): Ditto.
18898
a6dbe5df
PA
188992009-05-06 Pedro Alves <pedro@codesourcery.com>
18900
18901 PR server/10048
18902
18903 * linux-low.c (must_set_ptrace_flags): Delete.
18904 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18905 of the global.
18906 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18907 `lwp->must_set_ptrace_flags' instead.
ba42693b 18908 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
18909 (linux_wait_1): ... not here.
18910
5091eb23
DE
189112009-04-30 Doug Evans <dje@google.com>
18912
9f767825
DE
18913 * inferiors.c (started_inferior_callback): New function.
18914 (attached_inferior_callback): New function.
18915 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18916 * server.c (print_started_pid, print_attached_pid): New functions.
18917 (detach_or_kill_for_exit): New function.
18918 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18919 * server.h (have_started_inferiors_p): Declare.
18920 (have_attached_inferiors_p): Declare.
18921
5091eb23
DE
18922 * inferiors.c (remove_process): Fix memory leak, free process.
18923 * linux-low.c (linux_remove_process): New function.
18924 (linux_kill): Call it instead of remove_process.
18925 (linux_detach, linux_wait_1): Ditto.
18926
155c8968
PA
189272009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18928
18929 * configure.srv: Add x86 Windows CE target.
18930
7fe519cb
UW
189312009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18932
18933 * inferiors.c (get_thread_process): Make global.
18934 * server.h (get_thread_process): Add prototype.
18935 * thread-db.c (find_one_thread): Use get_thread_process
18936 instead of current_process.
18937 (thread_db_get_tls_address): Do not crash if called when
18938 thread layer is not yet initialized.
18939
5472f405
UW
189402009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18941
18942 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18943 * spu-low.c (current_tid): Rename to ...
18944 (current_ptid): ... this.
18945 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18946 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18947 ptid_get_lwp (current_ptid) instead of current_tid.
18948 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18949 instead of current_tid. Use find_process_pid to verify pid
18950 argument is valid. Pass proper argument to remove_process.
18951 (spu_thread_alive): Compare current_ptid instead of current_tid.
18952 (spu_resume): Likewise.
18953
55ac2b99
PA
189542009-04-02 Pedro Alves <pedro@codesourcery.com>
18955
18956 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18957 variable.
18958
95954743
PA
189592009-04-01 Pedro Alves <pedro@codesourcery.com>
18960
18961 Implement the multiprocess extensions, and add linux multiprocess
18962 support.
18963
18964 * server.h (ULONGEST): Declare.
18965 (struct ptid, ptid_t): New.
18966 (minus_one_ptid, null_ptid): Declare.
18967 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18968 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18969 (struct inferior_list_entry): Change `id' type from unsigned from
18970 to ptid_t.
18971 (struct sym_cache, struct breakpoint, struct
18972 process_info_private): Forward declare.
18973 (struct process_info): Declare.
18974 (current_process): Declare.
18975 (all_processes): Declare.
18976 (initialize_inferiors): Declare.
18977 (add_thread): Adjust to use ptid_t.
18978 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18979 (add_process, remove_process, find_thread_pid): Declare.
18980 (find_inferior_id): Adjust to use ptid_t.
18981 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18982 (multi_process): Declare.
18983 (push_event): Adjust to use ptid_t.
18984 (read_ptid, write_ptid): Declare.
18985 (prepare_resume_reply): Adjust to use ptid_t.
18986 (clear_symbol_cache): Declare.
18987 * inferiors.c (all_processes): New.
18988 (null_ptid, minus_one_ptid): New.
18989 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18990 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18991 (add_thread): Change unsigned long to ptid. Remove gdb_id
18992 parameter. Adjust.
18993 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18994 (gdb_id_to_thread): Rename to ...
18995 (find_thread_pid): ... this. Change unsigned long to ptid.
18996 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18997 (loaded_dll, pull_pid_from_list): Adjust.
18998 (add_process, remove_process, find_process_pid)
18999 (get_thread_process, current_process, initialize_inferiors): New.
19000 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19001 (struct target_waitstatus) <related_pid>: Ditto.
19002 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19003 return type to int.
19004 (struct target_ops) <join>: Add `pid' argument.
19005 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19006 (struct target_ops) <wait>: Add `ptid' field. Change return type
19007 to ptid.
19008 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19009 (mywait): Add `ptid' argument. Change return type to ptid_t.
19010 (target_pid_to_str): Declare.
19011 * target.c (set_desired_inferior): Adjust to use ptids.
19012 (mywait): Add new `ptid' argument. Adjust.
19013 (target_pid_to_str): New.
19014 * mem-break.h (free_all_breakpoints): Declare.
19015 * mem-break.c (breakpoints): Delelete.
19016 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19017 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19018 to use per-process breakpoint list.
19019 (free_all_breakpoints): New.
19020 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19021 (symbol_cache, all_symbols_looked_up): Delete.
19022 (hexchars): New.
19023 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19024 read_ptid): New.
19025 (prepare_resume_reply): Change ptid argument's type from unsigned
19026 long to ptid_t. Adjust. Implement W;process and X;process.
19027 (free_sym_cache, clear_symbol_cache): New.
19028 (look_up_one_symbol): Adjust to per-process symbol cache. *
19029 * server.c (cont_thread, general_thread, step_thread): Change type
19030 to ptid_t.
19031 (attached): Delete.
19032 (multi_process): New.
19033 (last_ptid): Change type to ptid_t.
19034 (struct vstop_notif) <ptid>: Change type to ptid_t.
19035 (queue_stop_reply, push_event): Change `ptid' argument's type to
19036 ptid_t.
19037 (discard_queued_stop_replies): Add `pid' argument.
19038 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19039 changes. Don't reference the `attached' global.
19040 (attach_inferior): Adjust to mywait interface changes.
19041 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19042 features. Handle and report "multiprocess+". Handle
19043 "qAttached:PID".
19044 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19045 changes.
19046 (handle_v_kill): New.
19047 (handle_v_stopped): Adjust to use target_pid_to_str.
19048 (handle_v_requests): Allow multiple attaches and runs when
19049 multiprocess extensions are in effect. Handle "vKill".
19050 (myresume): Adjust to use ptids.
19051 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19052 (handle_status): Adjust to discard_queued_stop_replies interface
19053 change.
19054 (first_thread_of, kill_inferior_callback)
19055 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19056 (main): Call initialize_inferiors. Adjust to use ptids, killing
19057 and detaching from all inferiors. Handle multiprocess packet
19058 variants.
19059 * linux-low.h: Include gdb_proc_service.h.
19060 (struct process_info_private): New.
19061 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19062 <lwpid_of>: Use ptid_get_lwp.
19063 (get_lwp_thread): Adjust.
19064 (struct lwp_info): Add `dead' member.
19065 (find_lwp_pid): Declare.
19066 * linux-low.c (thread_db_active): Delete.
19067 (new_inferior): Adjust comment.
19068 (inferior_pid): Delete.
19069 (linux_add_process): New.
19070 (handle_extended_wait): Adjust.
19071 (add_lwp): Change unsigned long to ptid.
19072 (linux_create_inferior): Add process to processes table. Adjust
19073 to use ptids. Don't set new_inferior here.
19074 (linux_attach_lwp): Rename to ...
19075 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19076 it. Adjust to use ptids.
19077 (linux_attach_lwp): New.
19078 (linux_attach): Add process to processes table. Don't set
19079 new_inferior here.
19080 (struct counter): New.
19081 (second_thread_of_pid_p, last_thread_of_process_p): New.
19082 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19083 multiple processes.
19084 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19085 processes. Remove process from process table.
19086 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19087 to multiple processes.
19088 (any_thread_of): New.
19089 (linux_detach): Add `pid' argument, and handle it. Remove process
19090 from processes table.
19091 (linux_join): Add `pid' argument. Handle it.
19092 (linux_thread_alive): Change unsighed long argument to ptid_t.
19093 Consider dead lwps as not being alive.
19094 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19095 threads we're not interested in.
19096 (same_lwp, find_lwp_pid): New.
19097 (linux_wait_for_lwp): Change `pid' argument's type from int to
19098 ptid_t. Adjust.
19099 (linux_wait_for_event): Rename to ...
19100 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19101 from int to ptid_t. Adjust.
19102 (linux_wait_for_event): New.
19103 (linux_wait_1): Add `ptid' argument. Change return type to
19104 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19105 that exit from the process table.
19106 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19107 Adjust.
19108 (mark_lwp_dead): New.
19109 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19110 stopping all threads, mark its main lwp as dead.
19111 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19112 ptids.
19113 (fetch_register, usr_store_inferior_registers)
19114 (regsets_fetch_inferior_registers)
19115 (regsets_store_inferior_registers, linux_read_memory)
19116 (linux_write_memory): Inline `inferior_pid'.
19117 (linux_look_up_symbols): Adjust to use per-process
19118 `thread_db_active'.
19119 (linux_request_interrupt): Adjust to use ptids.
19120 (linux_read_auxv): Inline `inferior_pid'.
19121 (initialize_low): Don't reference thread_db_active.
19122 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19123 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19124 (ps_getpid): Return the pid of the current inferior.
19125 * thread-db.c (proc_handle, thread_agent): Delete.
19126 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19127 per-process data.
19128 (find_one_thread): Change argument type to ptid_t. Adjust to
19129 per-process data.
19130 (maybe_attach_thread): Adjust to per-process data and ptids.
19131 (thread_db_find_new_threads): Ditto.
19132 (thread_db_init): Ditto.
19133 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19134 processes table. Adjust to use ptids.
19135 (spu_kill, spu_detach): Adjust interface. Remove process from
19136 processes table.
19137 (spu_join, spu_thread_alive): Adjust interface.
19138 (spu_wait): Adjust interface. Remove process from processes
19139 table. Adjust to use ptids.
19140 * win32-low.c (current_inferior_tid): Delete.
19141 (current_inferior_ptid): New.
19142 (debug_event_ptid): New.
19143 (thread_rec): Take a ptid. Adjust.
19144 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19145 (child_delete_thread): Ditto.
19146 (do_initial_child_stuff): Add `attached' argument. Add process to
19147 processes table.
19148 (child_fetch_inferior_registers, child_store_inferior_registers):
19149 Adjust.
19150 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19151 (win32_attach): Pass 1 to do_initial_child_stuff.
19152 (win32_kill): Adjust interface. Remove process from processes
19153 table.
19154 (win32_detach): Ditto.
19155 (win32_join): Adjust interface.
19156 (win32_thread_alive): Take a ptid.
19157 (win32_resume): Adjust to use ptids.
19158 (get_child_debug_event): Ditto.
19159 (win32_wait): Adjust interface. Remove exiting process from
19160 processes table.
19161
bd99dc85
PA
191622009-04-01 Pedro Alves <pedro@codesourcery.com>
19163
19164 Non-stop mode support.
19165
19166 * server.h (non_stop): Declare.
19167 (gdb_client_data, handler_func): Declare.
19168 (delete_file_handler, add_file_handler, start_event_loop):
19169 Declare.
19170 (handle_serial_event, handle_target_event, push_event)
19171 (putpkt_notif): Declare.
19172 * target.h (enum resume_kind): New.
19173 (struct thread_resume): Replace `step' field by `kind' field.
19174 (TARGET_WNOHANG): Define.
19175 (struct target_ops) <wait>: Add `options' argument.
19176 <supports_non_stop, async, start_non_stop>: New fields.
19177 (target_supports_non_stop, target_async): New.
19178 (start_non_stop): Declare.
19179 (mywait): Add `options' argument.
19180 * target.c (mywait): Add `options' argument. Print child exit
19181 notifications here.
19182 (start_non_stop): New.
19183 * server.c (non_stop, own_buf, mem_buf): New globals.
19184 (struct vstop_notif): New.
19185 (notif_queue): New global.
19186 (queue_stop_reply, push_event, discard_queued_stop_replies)
19187 (send_next_stop_reply): New.
19188 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19189 interface changes.
19190 (attach_inferior): In non-stop mode, don't wait for the target
19191 here.
19192 (handle_general_set): Handle QNonStop.
19193 (handle_query): When handling qC, return the current general
19194 thread, instead of the first thread of the list.
19195 (handle_query): If the backend supports non-stop mode, include
19196 QNonStop+ in the qSupported query response.
19197 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19198 and non-stop mode.
19199 (handle_v_attach, handle_v_run): Handle non-stop mode.
19200 (handle_v_stopped): New.
19201 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19202 (myresume): Adjust to use resume_kind. Handle non-stop.
19203 (queue_stop_reply_callback): New.
19204 (handle_status): Handle non-stop mode.
19205 (main): Clear non_stop flag on reconnection. Use the event-loop.
19206 Refactor serial protocol handling from here ...
19207 (process_serial_event): ... to this new function. When GDB
19208 selects any thread, select one here. In non-stop mode, wait until
19209 GDB acks all pending events before exiting.
19210 (handle_serial_event, handle_target_event): New.
19211 * remote-utils.c (remote_open): Install remote_desc in the event
19212 loop.
19213 (remote_close): Remove remote_desc from the event loop.
19214 (putpkt_binary): Rename to...
19215 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19216 (putpkt_binary): New as wrapper around putpkt_binary_1.
19217 (putpkt_notif): New.
19218 (prepare_resume_reply): In non-stop mode, don't change the
19219 general_thread.
19220 * event-loop.c: New.
19221 * Makefile.in (OBJ): Add event-loop.o.
19222 (event-loop.o): New rule.
19223
19224 * linux-low.h (pid_of): Moved here.
19225 (lwpid_of): New.
19226 (get_lwp_thread): Use lwpid_of.
19227 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19228 * linux-low.c (pid_of): Delete.
19229 (inferior_pid): Use lwpid_of.
19230 (linux_event_pipe): New.
19231 (target_is_async_p): New.
19232 (delete_lwp): New.
19233 (handle_extended_wait): Use lwpid_of.
19234 (add_lwp): Don't set lwpid field.
19235 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19236 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19237 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19238 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19239 first. Adjust to linux_wait_for_event interface changes. Use
19240 lwpid_of.
19241 (linux_detach): Don't delete the main lwp here.
19242 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19243 (status_pending_p): Don't consider explicitly suspended lwps.
19244 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19245 pointer. Add OPTIONS argument. Change return type to int. Use
19246 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19247 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19248 pointer. Add status pointer argument. Return a pid instead of a
19249 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19250 changes. In non-stop mode, don't switch to a random thread.
19251 (linux_wait): Rename to...
19252 (linux_wait_1): ... this. Add target_options argument, and handle
19253 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19254 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19255 clean exit and signal exit code. Don't stop all threads in
19256 non-stop mode. In all-stop mode, only stop all threads when
19257 reporting a stop to GDB. Handle explicit thread stop requests.
19258 (async_file_flush, async_file_mark): New.
19259 (linux_wait): New.
19260 (send_sigstop): Use lwpid_of.
19261 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19262 interface changes. In non-stop mode, don't switch to a random
19263 thread.
19264 (linux_resume_one_lwp): Use lwpid_of.
19265 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19266 (linux_resume_one_thread): ... this. Handle resume_stop. In
19267 non-stop mode, don't look for pending flag in all threads.
19268 (resume_status_pending_p): Don't consider explicitly suspended
19269 threads.
19270 (my_waitpid): Reimplement. Emulate __WALL.
19271 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19272 Use lwpid_of.
19273 (sigchld_handler, linux_supports_non_stop, linux_async)
19274 (linux_start_non_stop): New.
19275 (linux_target_ops): Register linux_supports_non_stop, linux_async
19276 and linux_start_non_stop.
19277 (initialize_low): Install SIGCHLD handler.
19278 * thread-db.c (thread_db_create_event, find_one_thread)
19279 (thread_db_get_tls_address): Use lwpid_of.
19280 * win32-low.c (win32_detach): Adjust to use resume_kind.
19281 (win32_wait): Add `options' argument.
19282 * spu-low.c (spu_resume): Adjust to use resume_kind.
19283 (spu_wait): Add `options' argument.
19284
5b1c542e
PA
192852009-04-01 Pedro Alves <pedro@codesourcery.com>
19286
19287 Decouple target code from remote protocol.
19288
19289 * target.h (enum target_waitkind): New.
19290 (struct target_waitstatus): New.
19291 (struct target_ops) <wait>: Return an unsigned long. Take a
19292 target_waitstatus pointer instead of a char pointer.
19293 (mywait): Likewise.
19294 * target.c (mywait): Change prototype to return an unsigned long.
19295 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19296 * server.h (thread_from_wait, old_thread_from_wait): Delete
19297 declarations.
19298 (prepare_resume_reply): Change prototype to take a
19299 target_waitstatus.
19300 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19301 (last_status, last_ptid): New.
19302 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19303 pid instead of a signal.
19304 (attach_inferior): Remove "status" and "signal" parameters.
19305 Adjust.
19306 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19307 not as an address.
19308 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19309 (handle_v_requests, myresume): Remove "status" and "signal"
19310 parameters. Adjust.
19311 (handle_status): New.
19312 (main): Delete local `status'. Adjust.
19313 * remote-utils.c: Include target.h.
19314 (prepare_resume_reply): Change prototype to take a
19315 target_waitstatus. Adjust.
19316
19317 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19318 interface.
19319 * spu-low.c (spu_wait): Adjust.
19320 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19321 Delete.
19322 (win32_wait): Adjust.
19323
2bd7c093
PA
193242009-04-01 Pedro Alves <pedro@codesourcery.com>
19325
19326 * target.h (struct thread_resume): Delete leave_stopped member.
19327 (struct target_ops): Add a `n' argument to the `resume' callback.
19328 * server.c (start_inferior): Adjust.
19329 (handle_v_cont, myresume): Adjust.
19330 * linux-low.c (check_removed_breakpoint): Adjust to resume
19331 interface change, and to removed leave_stopped field.
19332 (resume_ptr): Delete.
19333 (struct thread_resume_array): New.
19334 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19335 resume interface change.
19336 (linux_continue_one_thread, linux_queue_one_thread)
19337 (resume_status_pending_p): Check if the resume field is NULL
19338 instead of checking the leave_stopped member.
19339 (linux_resume): Adjust to the target resume interface change.
19340 * spu-low.c (spu_resume): Adjust to the target resume interface
19341 change.
19342 * win32-low.c (win32_detach, win32_resume): Ditto.
19343
c35fafde
PA
193442009-04-01 Pedro Alves <pedro@codesourcery.com>
19345
19346 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19347 flag.
19348 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19349 pending.
19350 (linux_continue_one_thread): Only preserve the stepping flag if
19351 there's a pending breakpoint.
19352
0a59d50b
PA
193532009-03-31 Pedro Alves <pedro@codesourcery.com>
19354
19355 * server.c (main): After the inferior having exited, call
19356 remote_close before exiting gdbserver.
19357
f04c6d38
TJB
193582009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19359
19360 Fix size of FPSCR in Power 7 processors.
19361 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19362 (PPC_FEATURE_HAS_DFP): New #define.
19363 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19364 size of the FPSCR.
19365
78e5cee6
PA
193662009-03-23 Pedro Alves <pedro@codesourcery.com>
19367
19368 * server.c (handle_query) Whitespace and formatting.
19369
1b3f6016
PA
193702009-03-22 Pedro Alves <pedro@codesourcery.com>
19371
19372 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19373 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19374 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19375 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19376 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19377 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19378 Makefile.in, configure.ac: Fix whitespace throughout.
19379 * configure: Regenerate.
19380
a07b2135
PA
193812009-03-22 Pedro Alves <pedro@codesourcery.com>
19382
19383 * inferiors.c (find_inferior): Make it safe for the callback
19384 function to delete the currently iterated inferior.
19385
67cc2626
PA
193862009-03-22 Pedro Alves <pedro@codesourcery.com>
19387
19388 * Makefile.in (linuw_low_h): Move higher.
19389 (thread-db.o): Depend on $(linux_low_h).
19390
54a0b537
PA
193912009-03-17 Pedro Alves <pedro@codesourcery.com>
19392
19393 Rename "process" to "lwp" throughout.
19394
19395 * linux-low.c (all_processes): Rename to...
19396 (all_lwps): ... this.
19397 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19398 (add_process): Rename to ...
19399 (add_lwp): ... this. Adjust.
19400 (linux_create_inferior): Adjust.
19401 (linux_attach_lwp): Adjust.
19402 (linux_attach): Adjust.
19403 (linux_kill_one_process): Rename to ...
19404 (linux_kill_one_lwp): ... this. Adjust.
19405 (linux_kill): Adjust.
19406 (linux_detach_one_process): Rename to ...
19407 (linux_detach_one_lwp): ... this. Adjust.
19408 (linux_detach): Adjust.
19409 (check_removed_breakpoint): Adjust.
19410 (status_pending_p): Adjust.
19411 (linux_wait_for_process): Rename to ...
19412 (linux_wait_for_lwp): ... this. Adjust.
19413 (linux_wait_for_event): Adjust.
19414 (send_sigstop): Adjust.
19415 (wait_for_sigstop): Adjust.
19416 (stop_all_processes): Rename to ...
19417 (stop_all_lwps): ... this.
19418 (linux_resume_one_process): Rename to ...
19419 (linux_resume_one_lwp): ... this. Adjust.
19420 (linux_set_resume_request, linux_continue_one_thread)
19421 (linux_queue_one_thread, resume_status_pending_p)
19422 (usr_store_inferior_registers, regsets_store_inferior_registers)
19423 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19424 Adjust.
19425 * linux-low.h (get_process): Rename to ...
19426 (get_lwp): ... this. Adjust.
19427 (get_thread_process): Rename to ...
19428 (get_thread_lwp): ... this. Adjust.
19429 (get_process_thread): Rename to ...
19430 (get_lwp_thread): ... this. Adjust.
19431 (struct process_info): Rename to ...
19432 (struct lwp_info): ... this.
19433 (all_processes): Rename to ...
19434 (all_lwps): ... this.
19435 * proc-service.c (ps_lgetregs): Adjust.
19436 * thread-db.c (thread_db_create_event, find_one_thread)
19437 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19438
0b16c5cf
PA
194392009-03-14 Pedro Alves <pedro@codesourcery.com>
19440
19441 * server.c (handle_query): Handle "qAttached".
19442
32de4b9d
NS
194432009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19444
19445 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19446 GPLv3, update license URL.
19447
2aecd87f
DE
194482009-03-01 Doug Evans <dje@google.com>
19449
93efd302 19450 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19451 (server_h): Add gdb_signals.h.
19452 (signals.o): Update.
19453 * server.h (target_signal_from_host,target_signal_to_host_p)
19454 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19455
86b1f9c5
PM
194562009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19457
19458 * remote-utils.c (getpkt): Also generate remote-debug
19459 information if noack_mode is set.
19460
4aa995e1
PA
194612009-02-06 Pedro Alves <pedro@codesourcery.com>
19462
19463 * server.c (handle_query): Report qXfer:siginfo:read and
19464 qXfer:siginfo:write as supported and handle them.
19465 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19466 * linux-low.c (linux_xfer_siginfo): New.
19467 (linux_target_ops): Set it.
19468
62709adf
PA
194692009-01-26 Pedro Alves <pedro@codesourcery.com>
19470
19471 * server.c (gdbserver_usage): Mention --remote-debug.
19472 (main): Accept '--remote-debug' switch.
19473
aef93bd7
DE
194742009-01-18 Doug Evans <dje@google.com>
19475
19476 * regcache.c (new_register_cache): No need to check result of xcalloc.
19477 * server.c (handle_search_memory): Back out calls to xmalloc,
19478 result is checked and error is returned to user upon failure.
19479 (handle_query): Ditto. Add more checks for result of malloc.
19480 (handle_v_cont): Check result of malloc, report error back to
19481 user upon failure.
19482 (handle_v_run): Ditto. Call freeargv.
19483 * server.h (freeargv): Declare.
19484 * utils.c (freeargv): New fn.
19485
54363045
DE
194862009-01-15 Doug Evans <dje@google.com>
19487
f626972c
DE
19488 * gdbreplay.c (perror_with_name): Make arg const char *.
19489 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19490 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19491 * utils.c (perror_with_name): Make arg const char *.
54363045 19492
18aae699
PA
194932009-01-14 Pedro Alves <pedro@codesourcery.com>
19494
19495 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19496 when handling a EXIT_PROCESS_DEBUG_EVENT.
19497
ff703abe
JB
194982009-01-06 Joel Brobecker <brobecker@adacore.com>
19499
19500 * gdbreplay.c (gdbreplay_version): Update copyright year.
19501 * server.c (gdbserver_version): Likewise.
19502
f21cc1a2 195032009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19504
19505 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19506 (handle_extended_wait): Improve comment.
0e21c1ec 19507
bca929d3
DE
195082008-12-13 Doug Evans <dje@google.com>
19509
19510 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19511 * server.h (ATTR_MALLOC): New macro.
19512 (xmalloc,xcalloc,xstrdup): Declare.
19513 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19514 * inferiors.c: Ditto.
19515 * linux-low.c: Ditto.
19516 * mem-break.c: Ditto.
19517 * regcache.c: Ditto.
19518 * remote-utils.c: Ditto.
19519 * server.c: Ditto.
19520 * target.c: Ditto.
19521 * win32-low.c: Ditto.
19522
97438e3f
DE
195232008-12-12 Doug Evans <dje@google.com>
19524
896c7fbb
DE
19525 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19526 in debugging printf.
19527
97438e3f
DE
19528 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19529
e3b886f8
DE
195302008-12-09 Doug Evans <dje@google.com>
19531
19532 * linux-low.h (struct process_info): Delete member tid, unused.
19533 * thread-db.c (find_one_thread): Update.
19534 (maybe_attach_thread): Update.
19535
07e059b5
VP
195362008-12-02 Pedro Alves <pedro@codesourcery.com>
19537
889bf7c5
PA
19538 * target.h (struct target_ops): Add qxfer_osdata member.
19539 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19540 and dirent.h.
19541 (linux_qxfer_osdata): New functions.
19542 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19543 callback.
19544 * server.c (handle_query): Handle "qXfer:osdata:read:".
19545 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19546 (buffer_xml_printf): New functions.
19547 * server.h (struct buffer): New.
19548 (buffer_grow_str, buffer_grow_str0): New macros.
19549 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19550 (buffer_xml_printf): Declare.
07e059b5 19551
4cab47ab
DE
195522008-11-24 Doug Evans <dje@google.com>
19553
19554 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19555
f142445f
DJ
195562008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19557
19558 * server.c (handle_v_run): Always use the supplied argument list.
19559
d0107bb6 195602008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19561
d0107bb6
BW
19562 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19563 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19564
2c4ad781
TJB
195652008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19566
19567 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19568 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19569 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19570 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19571 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19572 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19573 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19574 XML target descriptions.
19575 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19576 when inferior is running on an ISA 2.05 or later processor. Add
19577 special case to return offset for full 64-bit slot of FPSCR when
19578 in 32-bits.
19579
dfb64f85
DJ
195802008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19581
19582 * Makefile.in (SFILES, clean): Added sparc64 files.
19583 (reg-sparc64.o, reg-sparc64.c): New.
19584 * configure.srv (sparc*-*-linux*): New configuration.
19585 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19586 syscall arguments for SPARC.
19587 (regsets_store_inferior_registers): Likewise.
19588 * linux-sparc-low.c: New file.
19589
66b6e1dd
DE
195902008-10-21 Doug Evans <dje@google.com>
19591
19592 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19593 (READLINE_DIR,READLINE_DEP): Delete.
19594 (INTERNAL_CFLAGS): Update.
19595 (LINTFLAGS): Update.
19596
9b710a42
PA
195972008-10-10 Pedro Alves <pedro@codesourcery.com>
19598
19599 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19600 whole argv from the last run, not just argv[0].
19601
5822d809
PA
196022008-09-08 Pedro Alves <pedro@codesourcery.com>
19603
19604 * regcache.c (new_register_cache): Return NULL if the register
19605 cache size isn't known yet.
19606 (free_register_cache): Avoid dereferencing a NULL regcache.
19607
74aac56f
DJ
196082008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19609
19610 * configure.srv: Merge MIPS and MIPS64.
19611
400b20f5
MR
196122008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19613
19614 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19615
677c5bb1
LM
196162008-08-18 Luis Machado <luisgpm@br.ibm.com>
19617
19618 * Makefile.in: Add required vsx dependencies.
19619
19620 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19621 Declare init_registers_powerpc_vsx32l.
19622 Declare init_registers_powerpc_vsx64l.
19623 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19624 (ppc_arch_setup): Check for VSX in hwcap.
19625 (ppc_fill_vsxregset): New function.
19626 (ppc_store_vsxregset): New function.
19627 Add new VSX entry in regset_info target_regsets.
19628
19629 * configure.srv: Add new VSX dependencies.
19630
a6f3e723
SL
196312008-08-12 Pedro Alves <pedro@codesourcery.com>
19632
19633 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19634 (remote_open): Set or clear transport_is_reliable.
19635 (putpkt_binary): Don't expect acks in noack mode.
19636 (getpkt): Don't send ack/nac in noack mode.
19637 * server.c (handle_general_set): Handle QStartNoAckMode.
19638 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19639 qSupported.
19640 (main): Reset noack_mode on every connection.
19641 * server.h (noack_mode): Declare.
19642
a417dc56
RW
196432008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19644
19645 * Makefile.in (GDBREPLAY_OBS): New variable.
19646 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19647
3221518c
UW
196482008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19649 Daniel Jacobowitz <dan@codesourcery.com>
19650
19651 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19652 (usr_store_inferior_registers): Likewise.
19653 (regsets_store_inferior_registers): Likewise.
19654
ec56be1b
PA
196552008-07-31 Rolf Jansen <rj@surtec.com>
19656 Pedro Alves <pedro@codesourcery.com>
19657
19658 * configure.ac: Check for memmem declaration.
19659 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19660 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19661 (disable_packet_qfThreadInfo): Unconditionally compile.
19662 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19663 * configure, config.in: Regenerate.
19664
2fe5e3ff
DE
196652008-07-28 Doug Kwan <dougkwan@google.com>
19666
19667 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19668 (linux_write_memory): Remove declaration of errno.
19669
836acd6d
UW
196702008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19671
19672 * linux-low.c (handle_extended_wait): Do not use "status"
19673 variable uninitialized.
19674
aeba519e
PA
196752008-07-07 Pedro Alves <pedro@codesourcery.com>
19676
19677 * server.c (handle_v_attach): Inhibit reporting dll changes.
19678
db42f210
PA
196792008-06-27 Pedro Alves <pedro@codesourcery.com>
19680
19681 * remote-utils.c (prepare_resume_reply): If requested, don't
19682 output "thread:TID" in the T stop reply.
19683
19684 * server.c (disable_packet_vCont, disable_packet_Tthread)
19685 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19686 (handle_query): If requested, disable support for qC, qfThreadInfo
19687 and qsThreadInfo.
19688 (handle_v_requests): If requested, disable support for vCont.
19689 (gdbserver_show_disableable): New.
19690 (main): Handle --disable-packet and --disable-packet=LIST.
19691
19692 * server.h (disable_packet_vCont, disable_packet_Tthread)
19693 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19694
8e4c5421
CD
196952008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19696
19697 * server.c (gdbserver_usage): Mention --version.
19698
6e23a804
DJ
196992008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19700
19701 * Makefile.in (gdbreplay.o): New rule.
19702
90aa6a40
JM
197032008-06-06 Joseph Myers <joseph@codesourcery.com>
19704
19705 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19706 message, not gdbserver.
19707
c16158bc 197082008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19709 Nathan Sidwell <nathan@codesourcery.com>
19710 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19711
19712 * acinclude.m4: Include ../../config/acx.m4.
19713 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19714 * configure, config.in: Regenerate.
19715 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19716 * server.c (gdbserver_version): Print PKGVERSION.
19717 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19718 (main): Adjust gdbserver_usage calls.
19719 * gdbreplay.c (version, host_name): Add declarations.
19720 (gdbreplay_version, gdbreplay_usage): New.
19721 (main): Accept --version and --help options.
19722
aeb75bf5
DJ
197232008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19724
19725 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19726 (arm_breakpoint_at): Handle Thumb.
19727 (the_low_target): Add comment.
19728
76b233dd
UW
197292008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19730
19731 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19732
08388c79
DE
197332008-05-09 Doug Evans <dje@google.com>
19734
a3c83fae
DE
19735 * server.h (decode_search_memory_packet): Declare.
19736 * remote-utils.c (decode_search_memory_packet): New fn.
19737 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19738 (handle_search_memory): New fn.
19739 (handle_query): Process qSearch:memory packets.
19740
bb9c3d36
UW
197412008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19742
19743 * regcache.c (registers_length): Remove.
19744 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19745 full register packet.
19746 * regcache.h (registers_length): Remove prototype.
19747 * server.h (PBUFSIZ): Define to 16384.
19748
7284e1be
UW
197492008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19750
19751 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19752 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19753 powerpc-64l.o, and powerpc-altivec64l.o.
19754 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19755 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19756 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19757 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19758 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19759 to srv_xmlfiles.
19760
19761 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19762 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19763 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19764 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19765 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19766 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19767 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19768 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19769 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19770 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19771 (clean): Update.
19772
19773 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19774 (init_registers_powerpc_32l): ... this new prototype.
19775 (init_registers_powerpc_32): Remove, replace by ...
19776 (init_registers_powerpc_altivec32l): ... this new prototype.
19777 (init_registers_powerpc_e500): Remove, replace by ...
19778 (init_registers_powerpc_e500l): ... this new prototype.
19779 (init_registers_ppc64): Remove, replace by ...
19780 (init_registers_powerpc_64l): ... this new prototype.
19781 (init_registers_powerpc_64): Remove, replace by ...
19782 (init_registers_powerpc_altivec64l): ... this new prototype.
19783 (ppc_num_regs): Set to 73.
19784 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19785 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19786 (ppc_cannot_store_register): Handle orig_r3 and trap.
19787 (ppc_arch_setup): Update init_registers_... calls.
19788 (ppc_fill_gregset): Handle orig_r3 and trap.
19789
19790 * inferiors.c (clear_inferiors): Reset current_inferior.
19791
fdc59709
PB
197922008-04-23 Paolo Bonzini <bonzini@gnu.org>
19793
889bf7c5
PA
19794 * acinclude.m4: Add override.m4.
19795 * configure: Regenerate.
fdc59709 19796
c9b2f845
UW
197972008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19798
19799 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19800 initial call to init_register_ppc64.
19801
550512b8
UW
198022008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19803
43aaf8b6
PA
19804 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19805 single powerpc*-*-linux* case.
550512b8
UW
19806 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19807
b6430ec3
UW
198082008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19809
19810 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19811 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19812 from reg_xmlfiles.
19813 * linux-ppc-low.c: Include <elf.h>.
19814 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19815 (ppc_hwcap): New global variable.
19816 (ppc_regmap): Remove __SPE__ #ifdef sections.
19817 (ppc_regmap_e500): New global variable.
19818 (ppc_cannot_store_register): Update __SPE__ special case.
19819 (ppc_get_hwcap): New function.
19820 (ppc_arch_setup): Use it to determine whether inferior supports
19821 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19822 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19823 Do not access registers if target does not support AltiVec.
19824 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19825 Do not access registers if target does not support SPE.
19826 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19827
52fa2412
UW
198282008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19829
19830 * linux-low.c (disabled_regsets, num_regsets): New.
19831 (use_regsets_p): Delete.
19832 (linux_wait_for_process): Clear disabled_regsets.
19833 (regsets_fetch_inferior_registers): Check and set it.
19834 (regsets_store_inferior_registers): Likewise.
19835 (linux_fetch_registers, linux_store_registers): Do not use
19836 use_regsets_p.
19837 (initialize_low): Allocate disabled_regsets.
19838
e28b3332
DJ
198392008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19840
19841 * Makefile.in (LIBOBJS): New.
19842 (OBS): Use LIBOBJS.
19843 (memmem.o): New rule.
19844 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19845 * configure: Regenerated.
19846
4536995d
UW
198472008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19848
19849 * server.c (handle_query): Never return "unsupported" for
19850 qXfer:features:read queries.
19851
221c031f
UW
198522008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19853
19854 * server.c (get_features_xml): Fix inverted condition.
19855 (handle_query): Always support qXfer:feature:read.
19856
ccd213ac
DJ
198572008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19858
19859 * server.c (wrapper_argv): New.
19860 (start_inferior): Handle wrapper_argv. If set, expect an extra
19861 trap.
19862 (gdbserver_usage): Document --wrapper.
19863 (main): Parse --wrapper.
19864
6fe305f7
UW
198652008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19866
19867 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19868 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19869 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19870 (ppc_set_pc): Likewise.
19871 (ppc_arch_setup): New function.
19872 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19873 of collect_register.
889bf7c5 19874 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 19875
5b0a002e
UW
198762008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19877
19878 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19879 instead of linux-ppc64-low.o.
19880 * linux-ppc64-low.c: Remove file.
19881 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19882 (linux-ppc64-low.o): Remove rule.
19883
19884 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19885 (init_registers_powerpc_64): Likewise.
19886 (ppc_regmap): Conditionally define depending on __powerpc64__.
19887 (ppc_cannot_store_register): Do not special-case "fpscr" when
19888 compiled on __powerpc64__.
19889 (ppc_collect_ptrace_register): New function.
19890 (ppc_supply_ptrace_register): New function.
19891 (ppc_breakpoint): Change type to "unsigned int".
19892 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19893 (the_low_target): Conditionally provide initializers for the
889bf7c5 19894 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
19895 collect_ptrace_register and supply_ptrace_register members.
19896
9b4b61c8
UW
198972008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19898
19899 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19900 * server.c (gdbserver_xmltarget): Define.
19901 (get_features_xml): Use it to replace "target.xml" and arch_string.
19902
19903 * configure.srv: Remove srv_xmltarget. Add XML files that were
19904 mentioned there to srv_xmlfiles instead. Remove conditional tests
19905 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19906 srv_xmlfiles and srv_regobj to include all possible choices.
19907 * configure.ac (srv_xmltarget): Remove.
19908 (srv_xmlfiles): Do not add "target.xml".
19909 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19910 checks for supplementary target information.
19911 * configure: Regenerate.
19912 * Makefile.in (XML_TARGET): Remove.
19913 (target.xml): Remove rule.
19914 (clean): Do not clean up target.xml.
19915 (.PRECIOUS): Do not mention target.xml.
19916
19917 * target.h (struct target_ops): Remove arch_string member.
19918 * linux-low.c (linux_arch_string): Remove.
19919 (linux_target_ops): Remove arch_string initializer.
19920 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19921 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19922 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19923 * spu-low.c (spu_arch_string): Remove.
19924 (spu_target_ops): Remove arch_string initializer.
19925 * win32-low.c (win32_arch_string): Remove.
19926 (win32_target_ops): Remove arch_string initializer.
19927 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19928 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19929 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19930
ee1a7ae4
UW
199312008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19932
19933 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19934 by collect_ptrace_register and supply_ptrace_register hooks.
19935 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19936 instead of checking for the_low_target.left_pad_xfer.
19937 (usr_store_inferior_registers): Use collect_ptrace_register callback
19938 instead of checking for the_low_target.left_pad_xfer.
19939
19940 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19941 (s390_supply_ptrace_register): Likewise.
19942 (s390_fill_gregset): Call s390_collect_ptrace_register.
19943 (the_low_target): Update.
19944
19945 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19946 (ppc_supply_ptrace_register): Likewise.
19947 (the_low_target): Update.
19948
19949 * linux-i386-low.c (the_low_target): Update.
19950 * linux-x86-64-low.c (the_low_target): Update.
19951
d61ddec4
UW
199522008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19953
19954 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19955 reg-s390.o and reg-s390x.o.
19956
19957 * linux-low.c (new_inferior): New global variable.
19958 (linux_create_inferior, linux_attach): Set it.
19959 (linux_wait_for_process): Call the_low_target.arch_setup after the
19960 target has stopped for the first time.
19961 (initialize_low): Do not call the_low_target.arch_setup.
19962
19963 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19964 (s390_set_pc): Likewise.
19965 (s390_arch_setup): New function.
19966 (the_low_target): Use s390_arch_setup as arch_setup routine.
19967
19968 * regcache.c (realloc_register_cache): New function.
19969 (set_register_cache): Call it for each existing regcache.
19970
d05b4ac3
UW
199712008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19972
19973 * server.h (init_registers): Remove prototype.
19974
19975 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19976 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19977 instead of init_registers ().
19978 * linux-arm-low.c (init_registers_arm): Add prototype.
19979 (init_registers_arm_with_iwmmxt): Likewise.
19980 (the_low_target): Add initializer for arch_setup field.
19981 * linux-cris-low.c (init_registers_cris): Add prototype.
19982 (the_low_target): Add initializer for arch_setup field.
19983 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19984 (the_low_target): Add initializer for arch_setup field.
19985 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19986 (the_low_target): Add initializer for arch_setup field.
19987 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19988 (the_low_target): Add initializer for arch_setup field.
19989 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19990 (the_low_target): Add initializer for arch_setup field.
19991 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19992 (the_low_target): Add initializer for arch_setup field.
19993 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19994 (init_registers_mips64_linux): Likewise.
19995 (the_low_target): Add initializer for arch_setup field.
19996 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19997 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19998 (the_low_target): Add initializer for arch_setup field.
19999 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20000 (init_registers_powerpc_64): Likewise.
20001 (the_low_target): Add initializer for arch_setup field.
20002 * linux-s390-low.c (init_registers_s390): Add prototype.
20003 (init_registers_s390x): Likewise.
20004 (the_low_target): Add initializer for arch_setup field.
20005 * linux-sh-low.c (init_registers_sh): Add prototype.
20006 (the_low_target): Add initializer for arch_setup field.
20007 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20008 (the_low_target): Add initializer for arch_setup field.
20009 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20010 (the_low_target): Add initializer for arch_setup field.
20011
20012 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20013 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20014 instead of init_registers ().
20015 * win32-arm-low.c (init_registers_arm): Add prototype.
20016 (the_low_target): Add initializer for arch_setup field.
20017 * win32-i386-low.c (init_registers_i386): Add prototype.
20018 (the_low_target): Add initializer for arch_setup field.
20019
20020 * spu-low.c (init_registers_spu): Add prototype.
20021 (initialize_low): Call initialie_registers_spu () instead of
20022 initialize_registers ().
20023
fd96d250
PA
200242008-02-19 Pedro Alves <pedro@codesourcery.com>
20025
20026 * server.c (handle_v_requests): When handling the vRun and vAttach
20027 packets, if already debugging a process, don't kill it. Return an
20028 error instead.
20029
d41b6bb4
DJ
200302008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20031
20032 * server.c (handle_query): Correct length check.
20033
5ac588cf
PA
200342008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20035
20036 * win32-low.c (do_initial_child_stuff): Add process handle
20037 parameter. Set current_process_handle and current_process_id from the
20038 parameters. Clear globals.
20039 (win32_create_inferior): Don't set current_process_handle and
20040 current_process_id here. Instead pass them on the call to
20041 do_initial_child_stuff.
20042 (win32_attach): Likewise.
20043 (win32_clear_inferiors): New.
20044 (win32_kill): Don't close the current process handle or the
20045 current thread handle here. Instead call win32_clear_inferiors.
20046 (win32_detach): Don't open a new handle to the process. Call
20047 win32_clear_inferiors.
20048 (win32_join): Don't rely on current_process_handle; open a new
20049 handle using the process id.
20050 (win32_wait): Call win32_clear_inferiors when the inferior process
20051 has exited.
20052
ecd7ecbc
DJ
200532008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20054
20055 * server.c (monitor_show_help): Add "exit".
20056
1525d545
MG
200572008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20058
ecd7ecbc 20059 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20060 (clean): Add reg-xtensa.c.
20061 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20062 * configure.srv (xtensa*-*-linux*) New target.
20063 * linux-xtensa-low.c: New.
20064 * xtensa-xtregs.c: New.
1525d545 20065
59a016f0
PA
200662008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20067
20068 * hostio.c: Don't include errno.h.
20069 (errno_to_fileio_errno): Move to hostio-errno.
20070 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20071 error number outputting to the target->hostio_last_error callback.
20072 (hostio_packet_error): Use FILEIO_EINVAL directly.
20073 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20074 calls to hostio_error.
20075 * hostio-errno.c: New.
20076 * server.h (hostio_last_error_from_errno): Declare.
20077 * target.h (target_ops): Add hostio_last_error member.
20078 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20079 as hostio_last_error handler.
889bf7c5 20080 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20081 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20082 (wince_hostio_last_error): New functions.
20083 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20084 as hostio_last_error handler.
20085 (win32_target_ops) [!_WIN32_WCE]: Register
20086 hostio_last_error_from_errno as hostio_last_error handler.
20087 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20088 (hostio-errno.o): New rule.
20089 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20090 * configure.srv (srv_hostio_err_objs): New variable. Default to
20091 hostio-errno.o.
20092 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20093 * configure: Regenerate.
20094
2d717e4f
DJ
200952008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20096
20097 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20098 (linux_kill, linux_detach): Clean up the process list.
20099 * remote-utils.c (remote_open): Improve port number parsing.
20100 (putpkt_binary, input_interrupt): Only send interrupts if the target
20101 is running.
20102 * server.c (extended_protocol): Make static.
20103 (attached): Define earlier.
20104 (exit_requested, response_needed, program_argv): New variables.
20105 (target_running): New.
20106 (start_inferior): Clear attached here.
20107 (attach_inferior): Set attached here.
20108 (require_running): Define.
20109 (handle_query): Use require_running and target_running. Implement
20110 "monitor exit".
20111 (handle_v_attach, handle_v_run): New.
20112 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20113 (gdbserver_usage): Update.
20114 (main): Redo argument parsing. Handle --debug and --multi. Handle
20115 --attach along with other options or after the port. Save
20116 program_argv. Support no initial program. Resynchronize
20117 communication with GDB after an error. Handle "monitor exit".
20118 Use require_running and target_running. Always allow the extended
20119 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20120 restart in extended mode.
20121 * README: Refer to the GDB manual. Update --attach usage.
20122
7407e2de
AS
201232007-12-20 Andreas Schwab <schwab@suse.de>
20124
20125 * linux-low.c (STACK_SIZE): Define.
20126 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20127 (linux_test_for_tracefork): Likewise.
20128
b65d95c5
DJ
201292007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20130
20131 * linux-low.c (linux_wait_for_event): Update messages. Do not
20132 reinsert auto-delete breakpoints.
20133 * mem-break.c (struct breakpoint): Change return type of handler to
20134 int.
20135 (set_breakpoint_at): Update handler type.
20136 (reinsert_breakpoint_handler): Return 1 instead of calling
20137 delete_breakpoint.
20138 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20139 setting a new one.
20140 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20141 * mem-break.h (set_breakpoint_at): Update handler type.
20142 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20143 * win32-low.c (auto_delete_breakpoint): New.
20144 (get_child_debug_event): Use it.
20145
4e799345
DJ
201462007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20147
20148 * configure.ac: Check for pread and pwrite.
20149 * hostio.c (handle_pread): Fall back to lseek and read.
20150 (handle_pwrite): Fall back to lseek and write.
20151 * config.in, configure: Regenerated.
20152
27524b67
DJ
201532007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20154
20155 * server.c (myresume): Add own_buf argument.
20156 (main): Update calls.
20157
a20d5e98
DJ
201582007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20159
20160 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20161 * remote-utils.c (remote_open): Do not call disable_async_io.
20162 (block_async_io): Delete.
20163 (unblock_async_io): Make static.
20164 (initialize_async_io): New.
20165 * server.c (handle_v_cont): Handle async I/O here.
20166 (myresume): Likewise. Move other common resume tasks here...
20167 (main): ... from here. Call initialize_async_io. Disable async
20168 I/O before the main loop.
20169 * server.h (initialize_async_io): Declare.
20170 (block_async_io, unblock_async_io): Delete prototypes.
20171 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20172
b79d787e
DJ
201732007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20174
20175 * remote-utils.c (readchar): Allow binary data in received messages.
20176
d97903b2
PA
201772007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20178
20179 * win32-low.c (attaching): New global.
20180 (win32_create_inferior): Clear the `attaching' global.
20181 (win32_attach): Set the `attaching' global.
20182 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20183 attaching. Only set a breakpoint at the entry point if not
20184 attaching.
20185
311de423
PA
201862007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20187
20188 * server.c (main): Don't report dll events on the initial
20189 connection on attaches.
20190
6c2d16d2
PA
201912007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20192
20193 * server.c (main): Relax numerical bases supported for the pid of
20194 the --attach command line argument.
20195
5ca906e6
PA
201962007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20197
20198 * win32-low.c (win32_attach): Call OpenProcess before
20199 DebugActiveProcess, not after. Add last error output to error
20200 call.
20201
9c6c8194
PA
202022007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20203
20204 * win32-low.c (win32_get_thread_context)
20205 (win32_set_thread_context): New functions.
20206 (thread_rec): Use win32_get_thread_context.
20207 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20208 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20209 field.
20210
4d5d1aaa
PA
202112007-12-03 Leo Zayas
20212 Pedro Alves <pedro_alves@portugalmail.pt>
20213
20214 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20215 global variables.
20216 (child_add_thread): Minor cleanup.
20217 (child_continue): Resume artificially suspended threads before
20218 calling ContinueDebugEvent.
20219 (suspend_one_thread): New.
20220 (fake_breakpoint_event): New.
20221 (get_child_debug_event): Change return type to int. Check here if
20222 gdb sent an interrupt request. If a soft interrupt was requested,
20223 fake a breakpoint event. Return 0 if there is no event to handle,
20224 and 1 otherwise.
20225 (win32_wait): Don't check here if gdb sent an interrupt request.
20226 Ensure there is a valid event to handle.
20227 (win32_request_interrupt): Add soft interruption method as last
20228 resort.
20229
c436e841
PA
202302007-12-03 Leo Zayas
20231 Pedro Alves <pedro_alves@portugalmail.pt>
20232
20233 * win32-low.h (win32_thread_info): Add descriptions to the
20234 structure members. Replace `suspend_count' counter by a
20235 `suspended' flag.
20236 * win32-low.c (thread_rec): Update condition of when to get the
20237 context from the inferior. Rely on ContextFlags being set if it
20238 has already been retrieved. Only suspend the inferior thread if
20239 we haven't already. Warn if that fails.
20240 (continue_one_thread): s/suspend_count/suspended/. Only call
20241 ResumeThread once. Warn if that fails.
20242
e7b5fa67
PA
202432007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20244
20245 * win32-low.c (win32_wait): Don't read from the inferior when it
20246 has already exited.
20247
a385171d
PA
202482007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20249
20250 * Makefile.in (win32_low_h): New variable.
20251 (win32-low.o): Add dependency on $(win32_low_h).
20252 (win32-arm-low.o, win32-i386-low.o): New rules.
20253
f80c84b3
DJ
202542007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20255
20256 * hostio.c: Correct copyright year.
20257
a6b151f1
DJ
202582007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20259
20260 * Makefile.in (OBS): Add hostio.o.
20261 (hostio.o): New rule.
20262 * server.h (handle_vFile): Declare.
20263 * hostio.c: New file.
20264 * server.c (handle_v_requests): Take packet_len and new_packet_len
20265 for binary packets. Call handle_vFile.
20266 (main): Update call to handle_v_requests.
20267
f9387fc3
DJ
202682007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20269
20270 * linux-low.c: Include <sched.h>.
20271
51c2684e
DJ
202722007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20273
20274 * linux-low.c (linux_tracefork_grandchild): New.
20275 (linux_tracefork_child): Use clone.
20276 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20277
75f83163
JB
202782007-10-31 Joel Brobecker <brobecker@adacore.com>
20279
20280 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20281
da5898ce
DJ
202822007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20283
20284 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20285
24a09b5f
DJ
202862007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20287
20288 * inferiors.c (change_inferior_id): Delete.
20289 (add_pid_to_list, pull_pid_from_list): New.
20290 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20291 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20292 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20293 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20294 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20295 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20296 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20297 (using_threads): Always set to 1.
20298 (handle_extended_wait): New.
20299 (add_process): Do not set TID.
20300 (linux_create_inferior): Set must_set_ptrace_flags.
20301 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20302 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20303 (linux_thread_alive): Rename TID argument to LWPID.
20304 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20305 (linux_wait_for_event): Do not use TID or check using_threads. Update
20306 call to dead_thread_notify. Call handle_extended_wait.
20307 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20308 (send_sigstop): Delete sigstop_sent.
20309 (wait_for_sigstop): Avoid TID.
20310 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20311 (linux_test_for_tracefork): New.
20312 (linux_lookup_signals): Use thread_db_active and
20313 linux_supports_tracefork_flag.
20314 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20315 * linux-low.h (get_process_thread): Avoid TID.
20316 (struct process_ifo): Move thread_known and tid to the end. Remove
20317 sigstop_sent.
20318 (linux_attach_lwp, thread_db_init): Update prototypes.
20319 * server.h (change_inferior_id): Delete prototype.
20320 (add_pid_to_list, pull_pid_from_list): New prototypes.
20321 * thread-db.c (thread_db_use_events): New.
20322 (find_first_thread): Rename to...
20323 (find_one_thread): ...this. Update callers and messages. Do not
20324 call fatal. Check thread_db_use_events. Do not call
20325 change_inferior_id or new_thread_notify.
20326 (maybe_attach_thread): Update. Do not call new_thread_notify.
20327 (thread_db_init): Set thread_db_use_events. Check use_events.
20328 * utils.c (fatal, warning): Correct message prefix.
20329
30ed0a8f
DJ
203302007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20331
20332 * Makefile.in (clean): Remove new files.
20333 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20334 (powerpc-64.o, powerpc-64.c): New rules.
20335 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20336 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20337 with SPE.
20338 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20339 SPE targets.
20340 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20341 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20342 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20343 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20344 (target_regsets): Add AltiVec and SPE register sets.
20345 * configure.ac: Check for AltiVec and SPE.
20346 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20347 (ppc_fill_vrregset, ppc_store_vrregset): New.
20348 (target_regsets): Add AltiVec register set.
20349 * configure: Regenerated.
20350
fd462a61
DJ
203512007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20352
20353 * linux-low.c (O_LARGEFILE): Define.
20354 (linux_read_memory): Use /proc/PID/mem.
20355 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20356 * configure, config.in: Regenerated.
20357
69f223ed
DJ
203582007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20359
20360 * linux-low.c (linux_wait_for_event): Do not pass signals while
20361 single-stepping.
20362
aec18585
PA
203632007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20364
20365 * win32-low.c (create_process): New.
20366 (win32_create_inferior): Use create_process instead of
20367 CreateProcess. If create_process failed retry appending an ".exe"
20368 suffix. Store the GetLastError result immediatelly after
20369 create_process calls and use it on the call to error.
20370
34d86ddd
PA
203712007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20372
20373 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20374
5a0e3bd0
JB
203752007-08-23 Joel Brobecker <brobecker@adacore.com>
20376
20377 * configure.ac: Switch license to GPLv3.
20378
f88c79e6
MS
203792007-08-01 Michael Snyder <msnyder@access-company.com>
20380
20381 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20382
6b3d9b83
PA
203832007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20384
20385 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20386 typedef.
20387 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20388 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20389 CloseToolhelp32Snapshot.
20390 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20391 CloseToolhelp32Snapshot.
20392
c588c53c
MS
203932007-07-27 Michael Snyder <michael.snyder@access-company.com>
20394
20395 * server.c (main): Check for inferior exit before main loop.
20396
aa0403d9
PA
203972007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20398
20399 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20400 instead of on tmp_desc.
20401
255e7678
DJ
204022007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20403 Daniel Jacobowitz <dan@codesourcery.com>
20404
20405 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20406 (add_thread): Minor cleanups.
20407 (clear_inferiors): Move lower in the file. Clear the DLL
20408 list.
20409 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20410 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20411 (xml_escape_text): New.
20412 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20413 for qSupported.
20414 (handle_v_cont): Report errors.
20415 (gdbserver_version): Update.
20416 (main): Correct size of own_buf. Do not report initial DLL events.
20417 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20418 (unloaded_dll, xml_escape_text): New.
20419 * win32-low.c (enum target_waitkind): Update comments.
20420 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20421 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20422 (win32_EnumProcessModules, win32_GetModuleInformation)
20423 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20424 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20425 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20426 (win32_Module32First, win32_Module32Next, load_toolhelp)
20427 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20428 (get_child_debug_event): Handle DLL events.
20429 (win32_wait): Likewise.
20430
0d37add9
DJ
204312007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20432
20433 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20434 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20435
45e2715e
PA
204362007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20437
20438 * win32-low.c (handle_output_debug_string): Ignore event if not
20439 waiting.
20440
c5674cf1
PA
204412007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20442
20443 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20444
2bbe3cc1
DJ
204452007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20446
20447 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20448
ae13219e
DJ
204492007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20450
20451 * inferiors.c (change_inferior_id): Add comment.
20452 * linux-low.c (check_removed_breakpoint): Add an early
20453 prototype. Improve debug output.
20454 (linux_attach): Doc update.
20455 (linux_detach_one_process, linux_detach): Clean up before releasing
20456 each process.
20457 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20458 * linux-low.h (struct process_info): Doc improvement.
20459 * mem-break.c (delete_all_breakpoints): New.
20460 * mem-break.h (delete_all_breakpoints): New prototype.
20461 * thread-db.c (find_first_thread): New.
20462 (thread_db_create_event): Call it instead of
20463 thread_db_find_new_threads. Clean up unused variables.
20464 (maybe_attach_thread): Remove first thread handling.
20465 (thread_db_find_new_threads): Use find_first_thread.
20466 (thread_db_get_tls_address): Likewise.
20467
4105de34
DJ
204682007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20469
20470 * thread-db.c (thread_db_find_new_threads): Add prototype.
20471 (thread_db_create_event): Check for the main thread before adding
20472 a new thread.
20473 (maybe_attach_thread): Only enable event reporting if TID == 0.
20474 (thread_db_get_tls_address): Check for new threads.
20475
2b876972
DJ
204762007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20477
20478 * linux-low.c (linux_create_inferior): Try execv before execvp.
20479 * spu-low.c (spu_create_inferior): Likewise.
20480
7a245884
DJ
204812007-06-13 Mike Frysinger <vapier@gentoo.org>
20482
20483 * linux-low.c (linux_create_inferior): Change execv to execvp.
20484 * spu-low.c (spu_create_inferior): Likewies.
20485
117ce543
DJ
204862007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20487
20488 * Makefile.in (clean): Clean new files instead of deleted ones.
20489 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20490 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20491 rules.
20492 * configure.srv: Specify XML files and new regformats for MIPS and
20493 MIPS64 GNU/Linux.
20494 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20495 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20496 an entry for the restart register.
20497 (mips_cannot_fetch_register, mips_cannot_store_register)
20498 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20499 register names to match the XML descriptions.
20500 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20501 restart register instead of $0.
20502
0e7f50da
UW
205032007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20504 Markus Deuling <deuling@de.ibm.com>
20505
20506 * remote-utils.c (decode_xfer_write): New function.
20507 * server.h (decode_xfer_write): Add prototype.
20508 * server.c (handle_query): Add PACKET_LEN argument. Support
20509 qXfer:spu:read and qXfer:spu:write packets.
20510 (main): Pass packet_len to handle_query.
20511 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20512 * target.h (target_ops): Add qxfer_spu.
20513
374c1d38
UW
205142007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20515
20516 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20517 accessing non-seekable spufs files.
20518
bb63802a
UW
205192007-05-16 Markus Deuling <deuling@de.ibm.com>
20520
889bf7c5 20521 * server.c (handle_query): Add reply for qC packet.
bb63802a 20522
7390519e
PA
205232007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20524 Leo Zayas <lerele@champenstudios@com>
20525
20526 * server.h (check_remote_input_interrupt_request): New function.
20527 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20528 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20529 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20530 (check_remote_input_interrupt_request): New function.
20531 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20532 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20533 winapi_GenerateConsoleCtrlEvent): New typedefs.
20534 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20535 to 250 ms.
20536 (win32_wait): Check for remote interrupt request
20537 with check_remote_input_interrupt_request.
20538 (win32_request_interrupt): New function.
20539 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20540
34b34921
PA
205412007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20542
20543 * win32-low.c (debug_registers_changed,
20544 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20545 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20546 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20547 (thread_rec): Get context using the low target.
20548 (child_add_thread): Call thread_added on the low target,
20549 which does the same thing.
20550 (regptr): Delete.
20551 (do_initial_child_stuff): Remove debug registers references.
20552 Set context using the low target. Resume threads after
20553 setting the contexts.
20554 (child_continue): Remove dead variable. Remove debug
20555 registers references.
20556 (child_fetch_inferior_registers): Go through the low target.
20557 (do_child_store_inferior_registers): Remove.
20558 (child_store_inferior_registers): Go through the low target.
20559 (win32_resume): Remove debug registers references.
20560 Set context using the low target.
20561 (handle_exception): Change return type to void. Don't record
20562 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20563 first chance exception.
889bf7c5 20564 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20565 goto loop. Always return after waiting for debug event.
20566 (win32_wait): Convert to switch statement. Handle spurious
20567 events.
20568
20569 * win32-i386-low.c (debug_registers_changed,
20570 debug_registers_used): New.
20571 (initial_stuff): Rename to ...
20572 (i386_initial_stuff): ... this. Clear debug registers
20573 state variables.
20574 (store_debug_registers): Delete.
20575 (i386_get_thread_context): New.
20576 (load_debug_registers): Delete.
20577 (i386_set_thread_context): New.
20578 (i386_thread_added): New.
20579 (single_step): Rename to ...
20580 (i386_single_step): ... this.
20581 (do_fetch_inferior_registers): Rename to ...
20582 (i386_fetch_inferior_register): ... this.
20583 (i386_store_inferior_register): New.
20584 (the_low_target): Adapt to new interface.
20585
20586 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20587 (arm_get_thread_context): New.
20588 (arm_set_thread_context): New.
20589 (regptr): New.
20590 (do_fetch_inferior_registers): Rename to ...
20591 (arm_fetch_inferior_register): ... this.
20592 (arm_store_inferior_register): New.
20593 (arm_wince_breakpoint): Reimplement as unsigned long.
20594 (arm_wince_breakpoint_len): Define.
20595 (the_low_target): Adapt to new interface.
20596
20597 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20598 load_debug_registers. Add get_thread_context, set_thread_context,
20599 thread_added and store_inferior_register. Rename
20600 fetch_inferior_registers to fetch_inferior_register.
20601 (regptr): Remove declaration.
20602
dd6953e1
PA
206032007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20604
20605 * linux-low.c (linux_detach): Change return type to int. Return 0.
20606 * spu-low.c (spu_detach): Likewise.
20607
444d6139
PA
206082007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20609
20610 * target.h (target_ops): Change return type of detach to int.
20611 Add join.
20612 (join_inferior): New.
20613 * server.c (main): Don't skip detach support on mingw32.
20614 If the inferior doesn't support detaching return error.
20615 Call join_inferior instead of using waitpid.
20616 * linux-low.c (linux_join): New.
20617 (linux_target_op): Add linux_join.
20618 * spu-low.c (spu_join): New.
20619 (spu_target_ops): Add spu_join.
20620 * win32-low.c (win32_detach): Adapt to new interface.
20621 Reopen current_process_handle before detaching. Issue a child
20622 resume before detaching.
20623 (win32_join): New.
20624 (win32_target_op): Add win32_join.
20625
1d5315fe
PA
206262007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20627
20628 * win32-low.c (win32-attach): Fix return value.
20629 * target.h (target_ops): Describe ATTACH return values.
20630
bf914831
PA
206312007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20632
20633 * win32-low.c (GETPROCADDRESS): Define.
20634 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20635 (winapi_DebugSetProcessKillOnExit): Likewise.
20636 (win32_create_inferior): Force usage of ansi CreateProcessA.
20637 (win32_attach): Use GETPROCADDRESS.
20638 (win32_detach): Likewise.
20639
f72f3e60
PA
206402007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20641
20642 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20643
ed50f18f
PA
206442007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20645
20646 * win32-low.c: Commit leftover changes from 2007-03-29.
20647
0c2ead7e
DJ
206482007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20649
20650 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20651 fields short instead of int. Add explicit padding.
20652 (i387_cache_to_fsave): Remove unnecessary casts.
20653 (i387_fsave_to_cache): Doc fix.
20654 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20655
73725ff3
DJ
206562007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20657
20658 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20659 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20660
d99f33d8
PA
206612007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20662
20663 * configure.srv (arm*-*-mingw32ce*): Move near the other
20664 arm targets.
20665
68070c10
PA
206662007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20667
2482afc6 20668 * configure.ac: Add errno checking.
68070c10
PA
20669 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20670 sys/file.h and malloc.h.
20671 (AC_CHECK_DECLS): Add perror.
20672 (srv_mingwce): Handle.
2482afc6 20673 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20674 win32-i386-low.o to srv_tgtobj.
20675 (i[34567]86-*-mingw*): Likewise.
20676 (arm*-*-mingw32ce*): Add case.
20677 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20678 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20679 [__MINGW32CE__] (strerror): New function.
20680 [__MINGW32CE__] (errno): Define to GetLastError.
20681 [__MINGW32CE__] (COUNTOF): New macro.
20682 (remote_open): Remove extra close call.
20683 * mem-break.c (delete_breakpoint_at): New function.
20684 * mem-break.h (delete_breakpoint_at): Declare.
20685 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20686 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20687 [USE_WIN32API] (read, write): Add char* casts.
20688 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20689 * server.h: Include wincecompat.h on Windows CE.
20690 [HAVE_ERRNO_H]: Check.
20691 (perror): Declare if not declared.
20692 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20693 (perror_with_name): Remove errno declaration.
20694 * wincecompat.h: New.
20695 * wincecompat.c: New.
20696 * win32-low.h: New.
20697 * win32-arm-low.c: New.
20698 * win32-i386-low.c: New.
20699 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20700 (OUTMSG2): Make it safe.
20701 (_T): New macro.
20702 (COUNTOF): New macro.
20703 (NUM_REGS): Get it from the low target.
20704 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20705 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20706 (thread_rec): Let low target handle debug registers.
20707 (child_add_thread): Likewise.
20708 (child_init_thread_list): Likewise.
20709 (continue_one_thread): Likewise.
20710 (regptr): New.
20711 (do_child_fetch_inferior_registers): Move to ...
20712 * win32-i386-low.c: ... here, and rename to ...
20713 (do_fetch_inferior_registers): ... this.
889bf7c5 20714 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20715 Go through the low target.
20716 (do_child_store_inferior_registers): Use regptr.
20717 (strwinerror): New function.
20718 (win32_create_inferior): Handle Windows CE.
20719 Use strwinerror instead of strerror on Windows error
20720 codes. Add program to the error output.
20721 Don't close the main thread handle on Windows CE.
20722 (win32_attach): Use coredll.dll on Windows CE.
20723 (win32_kill): Close current process and current
20724 thread handles.
20725 (win32_detach): Use coredll.dll on Windows CE.
20726 (win32_resume): Let low target handle debug registers, and
20727 step request.
20728 (handle_exception): Add/Remove initial breakpoint. Avoid
20729 non-existant WSTOPSIG on Windows CE.
20730 (win32_read_inferior_memory): Cast to remove warning.
20731 (win32_arch_string): Go through the low target.
20732 (initialize_low): Call set_breakpoint_data with the low
20733 target's breakpoint.
20734 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20735 FOP_REGNUM, mappings): Move to ...
20736 * win32-i386-low.c: ... here.
20737 * win32-low.c (win32_thread_info): Move to ...
20738 * win32-low.h: ... here.
20739 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20740 win32-arm-low.c and wincecompat.c.
20741 (all:): Add $EXEEXT.
20742 (install-only:): Likewise.
20743 (gdbserver:): Likewise.
20744 (gdbreplay:): Likewise.
20745 * config.in: Regenerate.
20746 * configure: Regenerate.
20747
41093d81
PA
207482007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20749
20750 * win32-low.c: Rename typedef thread_info to
20751 win32_thread_info throughout.
20752
544afa54
PA
207532007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20754
20755 * win32-i386-low.c: Rename to ...
20756 * win32-low.c: ... this.
20757 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20758 * Makefile.in: Likewise.
20759
bce7165d
PA
207602007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20761
20762 * remote-utils.c (monitor_output): Constify msg parameter.
20763 * server.h (monitor_output): Likewise.
20764 * win32-i386-low.c (handle_output_debug_string): New.
20765 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20766 handle_output_debug_string.
20767 (get_child_debug_event): Likewise.
20768
506c7aa0
DJ
207692007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20770
20771 * server.c (main): Correct strtoul check.
20772
42c81e2a
DJ
207732007-03-27 Jon Ringle <jon@ringle.org>
20774
20775 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20776
9453113a
DJ
207772007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20778
20779 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20780
64a69107
DJ
207812007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20782
20783 * terminal.h: Check HAVE_SGTTY_H.
20784
207852007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20786
20787 * remote-utils.c (remote_open): Print out the assigned port number.
20788
c74d0ad8
DJ
207892007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20790
20791 * remote-utils.c (monitor_output): New function.
20792 * server.c (debug_threads): Define here.
20793 (monitor_show_help): New function.
20794 (handle_query): Handle qRcmd.
20795 (main): Do not handle 'd' packet.
20796 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20797 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20798 of debug_threads.
20799
de7c3b4a
PA
208002007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20801
20802 * Makefile.in (EXEEXT): New.
20803 (clean): Use $(EXEEXT).
20804
ef57601b
PA
208052007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20806
20807 * target.h (target_ops): Rename send_signal to request_interrupt,
20808 and remove enum target_signal parameter.
20809 * linux-low.c (linux_request_interrupt): Rename from
20810 linux_send_signal, and always send SIGINT.
20811 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20812 and always send SIGINT.
20813 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20814 of send_signal.
20815 (input_interrupt): Likewise.
20816
820f2bda
PA
208172007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20818
20819 * server.c (get_features_xml): Check if target implemented
20820 arch_string.
20821 * win32-i386-low.c (win32_arch_string): New.
20822 (win32_target_ops): Add win32_arch_string as arch_string member.
20823
ab39bf24
UW
208242007-02-22 Markus Deuling <deuling@de.ibm.com>
20825
20826 * spu-low.c (spu_arch_string): New.
20827 (spu_target_ops): Add spu_arch_string.
20828
61ff6e04
DJ
208292007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20830
20831 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20832 * configure.ac: Do not check for terminal.h.
20833 * configure, config.in: Regenerated.
20834
fb1e4ffc
DJ
208352007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20836
20837 * Makefile.in (OBS): Add $(XML_BUILTIN).
20838 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20839 (clean): Update.
20840 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20841 (arm-with-iwmmxt.c): New.
20842 * config.in, configure: Regenerate.
20843 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20844 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20845 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20846 (arm*-*-linux*): Add iWMMXt and regset support.
20847 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20848 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20849 (arm_store_wmmxregset, target_regsets): New.
20850 * server.c (get_features_xml): Take annex argument. Check builtin
20851 XML documents.
20852 (handle_query): Handle multiple annexes.
20853
0f48aa01
DJ
208542007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20855
20856 * remote-utils.c [USE_WIN32API] (read, write): Define.
20857 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20858 write.
20859
23181151
DJ
208602007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20861
20862 * linux-i386-low.c (the_low_target): Set arch_string.
20863 * linux-x86-64-low.c (the_low_target): Likewise.
20864 * linux-low.c (linux_arch_string): New.
20865 (linux_target_ops): Add it.
20866 * linux-low.h (struct linux_target_ops): Add arch_string.
20867 * server.c (write_qxfer_response): Use const void * for DATA.
20868 (get_features_xml): New.
20869 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20870 * target.h (struct target_ops): Add arch_string method.
20871
9d606399
DJ
208722007-01-03 Denis Pilat <denis.pilat@st.com>
20873 Daniel Jacobowitz <dan@codesourcery.com>
20874
20875 * linux-low.c (linux_kill): Handle being called with no threads.
20876 * win32-i386-low.c (win32_kill): Likewise.
20877 (get_child_debug_event): Clear current_process_handle.
20878
208792006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
20880 Daniel Jacobowitz <dan@codesourcery.com>
20881
20882 * remote-utils.c (remote_open): Check the type of specified
20883 serial port devices before opening them.
20884 * server.c (main): Kill the inferior if an error occurs during
20885 the first remote_open.
20886
a5e13d24
DJ
208872006-12-05 Markus Deuling <deuling@de.ibm.com>
20888
20889 * README: Update supported targets.
20890
186947f7
DJ
208912006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20892
20893 * Makefile.in (clean): Remove reg-mips64.c.
20894 (reg-mips64.c, reg-mips64.o): New rules.
20895 * configure.srv: Handle mips64. Include regset support for mips.
20896 * linux-mips-low.c (union mips_register): New.
20897 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20898 (mips_breakpoint, mips_breakpoint_at): Use int.
20899 (mips_collect_register, mips_supply_register)
20900 (mips_collect_register_32bit, mips_supply_register_32bit)
20901 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20902 (mips_store_fpregset, target_regsets): New.
20903 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20904
a13e2c95
UW
209052006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20906
20907 * configure.srv: Add target "spu*-*-*".
20908 * Makefile.in (clean): Remove reg-spu.c.
20909 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20910 * spu-low.c: New file.
20911
cb7283db
DJ
209122006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20913
20914 * configure.ac: Correct td_thr_tls_get_addr test.
20915 * configure: Regenerated.
20916
89be2091
DJ
209172006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20918
20919 * linux-low.c (linux_wait_for_event): Reformat. Use the
20920 pass_signals array.
20921 * remote-utils.c (decode_address_to_semicolon): New.
20922 * server.c (pass_signals, handle_general_set): New.
20923 (handle_query): Mention QPassSignals for qSupported.
20924 (main): Call handle_general_set.
20925 * server.h (pass_signals, decode_address_to_semicolon): New.
20926
000ef4f0
DJ
209272006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20928
20929 * server.c (handle_query): Correct error handling for read_auxv.
20930
b7149293
UW
209312005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20932
20933 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20934 and srv_linux_thread_db to yes.
20935 * linux-s390-low.c (s390_fill_gregset): New function.
20936 (target_regsets): Define data structure.
20937
dae5f5cf
DJ
209382006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20939
20940 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20941 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20942 * config.in, configure: Regenerated.
20943 * inferiors.c (gdb_id_to_thread): New function.
20944 (gdb_id_to_thread_id): Use it.
20945 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20946 * linux-low.h (struct process_info): Add th member.
20947 (thread_db_get_tls_address): New prototype.
20948 * remote-utils.c (decode_address): Make non-static.
20949 * server.c (handle_query): Handle qGetTLSAddr.
20950 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20951 * target.h (struct target_ops): Add get_tls_address.
20952 * thread-db.c (maybe_attach_thread): Save the thread handle.
20953 (thread_db_get_tls_address): New.
20954
32ca6d61
DJ
209552006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20956
20957 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20958 (linux_resume_one_process): Take a siginfo_t *. Update all
20959 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20960 (struct pending_signals): Add a siginfo_t.
20961 (linux_wait_for_process): Always set last_status.
20962 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20963 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20964 * linux-low.h (struct process_info): Add last_status.
20965
5ffff7c1
DJ
209662006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20967
20968 * remote-utils.c (try_rle): New function.
20969 (putpkt_binary): Use it.
20970
8695c747
DJ
209712006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20972
20973 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20974 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20975 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20976 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20977 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20978 point registers.
20979
290fadea
RS
209802006-08-08 Richard Sandiford <richard@codesourcery.com>
20981
20982 * server.c (terminal_fd): New variable.
20983 (old_foreground_pgrp): Likewise.
20984 (restore_old_foreground_pgrp): New function.
20985 (start_inferior): Record the terminal file descriptor in terminal_fd
20986 and its original foreground group in old_foreground_pgrp. Register
20987 restore_old_foreground_pgrp with atexit().
20988
9f2e1e63
DJ
209892006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20990
20991 * server.c (handle_query): Correct qPart to qXfer.
20992
b80864fb
DJ
209932006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20994
20995 * configure.ac: Check for more headers which are missing on
20996 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20997 * configure.srv: Add Cygwin and mingw32.
20998 * remote-utils.c: Don't include headers unconditionally which
20999 are missing on mingw32. Include <winsock.h> for mingw32.
21000 (remote_open): Adjust for mingw32 support. Flush
21001 standard error after writing to it.
21002 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21003 (unblock_async_io, enable_async_io, disable_async_io)
21004 (readchar, getpkt): Update for Winsock support.
21005 (prepare_resume_reply): Expect a protocol signal number.
21006 * server.c: Disable <sys/wait.h> on mingw32.
21007 (start_inferior): Adjust for mingw32 support. Flush
21008 standard error after writing to it.
21009 (attach_inferior): Likewise. Use protocol signal
21010 numbers.
21011 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21012 and names.
21013 * win32-i386-low.c: New file.
21014 * Makefile.in (XM_CLIBS): Set.
21015 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21016 (win32-i386-low.o): New dependency rule.
21017 * linux-low.c (linux_wait): Use target signal numbers.
21018 * target.h (struct target_ops): Doc fix.
21019 * server.h (target_signal_to_name): New prototype.
21020 * gdbreplay.c: Don't include headers unconditionally which
21021 are missing on mingw32. Include <winsock.h> for mingw32.
21022 (remote_close, remote_open): Adjust for Winsock support.
21023 * configure, config.in: Regenerated.
21024
0876f84a
DJ
210252006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21026
21027 * server.c (decode_xfer_read, write_qxfer_response): New.
21028 (handle_query): Take a packet length argument. Handle
21029 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21030 the qSupported response.
21031 (main): Update call to handle_query.
21032
01f9e8fa
DJ
210332006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21034
21035 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21036 (putpkt_binary): Renamed from putpkt and adjusted for binary
21037 data.
21038 (putpkt): New wrapper for putpkt_binary.
21039 (readchar): Don't mask off the high bit.
21040 (decode_X_packet): New function.
21041 * server.c (main): Call putpkt_binary if a handler sets the packet
21042 length. Save the length of the incoming packet. Handle 'X'.
21043 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21044
be2a5f71
DJ
210452006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21046
21047 * server.c (handle_query): Handle qSupported.
21048
ea025f5f
DJ
210492006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21050
21051 * remote-utils.c (all_symbols_looked_up): New variable.
21052 (look_up_one_symbol): Check it.
21053 * server.h (look_up_one_symbol): New declaration.
21054 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21055
9308fc88
DJ
210562006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21057
21058 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21059 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21060 (PTRACE_GET_THREAD_AREA): Define.
21061 (ps_get_thread_area): New function.
21062
52fb6437
NS
210632006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21064
21065 * configure.srv (m68k*-*-uclinux*): New target.
21066 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21067 (linux_resume_one_process): Remove extraneous cast.
21068 (linux_read_offsets): New.
21069 (linux_target_op): Add linux_read_offsets on mmuless systems.
21070 * server.c (handle_query): Add qOffsets logic.
21071 * target.h (struct target_ops): Add read_offsets.
21072
21b0f40c
DJ
210732006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21074
21075 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21076 (PTRACE_GET_THREAD_AREA): Define.
21077 (ps_get_thread_area): New function.
21078 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21079 (linux-x86-64-low.o): Update.
21080
0050a760
DJ
210812006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21082
21083 * configure.ac: Remove checks for prfpregset_t.
21084 * gdb_proc_service.h: New file.
21085 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21086 new "gdb_proc_service.h".
21087 * proc-service.c: Likewise.
21088 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21089 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21090 * Makefile.in (gdb_proc_service_h): Updated.
21091 * configure, config.in: Regenerated.
21092
b92a518e
DJ
210932006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21094
21095 * remote-utils.c (prepare_resume_reply): Move declaration
21096 of gdb_id_from_wait to the top of the block.
21097
545587ee
DJ
210982006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21099
21100 * linux-low.c (regsets_store_inferior_registers): Read the regset
21101 from the target before filling it.
21102
9db87ebd
DJ
211032006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21104
21105 * server.c (attach_inferior): Return SIGTRAP for a successful
21106 attach.
21107
dd24457d
DJ
211082006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21109
21110 * Makefile.in (OBS): Add version.o.
21111 (STAGESTUFF): Delete.
21112 (version.o): Add dependencies.
21113 (version.c): Replace rule.
21114 (clean): Remove version.c.
21115 * server.c (gdbserver_version): New.
21116 (gdbserver_usage): Use printf.
21117 (main): Handle --version and --help.
21118 * server.h (version, host_name): Add declarations.
21119
6f0f660e
EZ
211202005-12-23 Eli Zaretskii <eliz@gnu.org>
21121
889bf7c5
PA
21122 * linux-arm-low.c:
21123 * linux-arm-low.c:
21124 * inferiors.c:
21125 * i387-fp.h:
21126 * i387-fp.c:
21127 * gdbreplay.c:
21128 * regcache.c:
21129 * proc-service.c:
21130 * mem-break.h:
21131 * mem-break.c:
21132 * linux-x86-64-low.c:
21133 * linux-sh-low.c:
21134 * linux-s390-low.c:
21135 * linux-ppc64-low.c:
21136 * linux-ppc-low.c:
21137 * linux-mips-low.c:
21138 * linux-m68k-low.c:
21139 * linux-m32r-low.c:
21140 * linux-low.h:
21141 * linux-low.c:
21142 * linux-ia64-low.c:
21143 * linux-i386-low.c:
21144 * linux-crisv32-low.c:
21145 * thread-db.c:
21146 * terminal.h:
21147 * target.h:
21148 * target.c:
21149 * server.h:
21150 * server.c:
21151 * remote-utils.c:
21152 * regcache.h:
21153 * utils.c:
21154 * Makefile.in:
21155 * configure.ac:
6f0f660e
EZ
21156 * gdbserver.1: Add (C) after Copyright. Update the FSF
21157 address.
21158
9d1fb177
DJ
211592005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21160
21161 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21162 (arm_breakpoint_at): Recognize both breakpoints.
21163 (the_low_target): Use the correct breakpoint instruction.
21164
011a70c2
DJ
211652005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21166
21167 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21168 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21169 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21170 (the_low_target): Update.
21171
7fb85e41
AS
211722005-10-25 Andreas Schwab <schwab@suse.de>
21173
21174 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21175
21176 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21177 (ia64_num_regs): Reduce to 462.
21178
3db0444b
DJ
211792005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21180
21181 * acinclude.m4: Correct quoting.
21182 * aclocal.m4: Regenerated.
21183
21184 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21185 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21186 (thread_db_init): Call thread_db_err_str.
21187 * configure.ac: Check for TD_VERSION.
21188 * config.in, configure: Regenerated.
21189
bee0189a
DJ
211902005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21191
21192 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21193
e9d25b98
DJ
211942005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21195
21196 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21197 is not available. Define HAVE_PTRACE_GETREGS if it is.
21198 * config.in, configure: Regenerated.
21199 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21200 * linux-i386-low.c, linux-m68k-low.c: Update to use
21201 HAVE_PTRACE_GETREGS.
21202 * linux-low.c (regsets_fetch_inferior_registers)
21203 (regsets_store_inferior_registers): Only return 0 if we processed
21204 GENERAL_REGS.
21205 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21206 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21207
a06660f7
DJ
212082005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21209
21210 * inferiors.c (struct thread_info): Add gdb_id.
21211 (add_thread): Add gdb_id argument.
21212 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21213 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21214 calls to add_thread.
21215 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21216 * server.c (handle_query): Use thread_to_gdb_id.
21217 (handle_v_cont, main): Use gdb_id_to_thread_id.
21218 * server.h (add_thread): Update prototype.
21219 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21220 prototypes.
21221
5a1f5858
DJ
212222005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21223
21224 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21225 left-padded registers.
21226 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21227 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21228
e122f1f5
SE
212292005-07-01 Steve Ellcey <sje@cup.hp.com>
21230
21231 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21232 * configure: Regenerate.
21233 * config.in: Regenerate.
21234 * server.h (NEED_DECLARATION_STRERROR):
21235 Replace with !HAVE_DECL_STRERROR.
21236
d592fa2f
DJ
212372005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21238
21239 * linux-low.c (linux_wait, linux_send_signal): Don't test
21240 an unsigned long variable for > 0 if it could be MAX_ULONG.
21241 * server.c (myresume): Likewise.
21242 * target.c (set_desired_inferior): Likewise.
21243
ccbd4912
MK
212442005-06-13 Mark Kettenis <kettenis@gnu.org>
21245
21246 * configure.ac: Simplify and improve check for socklen_t.
21247 * configure, config.in: Regenerate.
21248
f450004a
DJ
212492005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21250
21251 * acconfig.h: Remove.
21252 * configure.ac: Add a test for socklen_t. Use three-argument
21253 AC_DEFINE throughout.
21254 * config.in: Regenerated using autoheader 2.59.
21255 * configure: Regenerated.
21256
21257 * gdbreplay.c (socklen_t): Provide a default.
21258 (remote_open): Use socklen_t.
21259 * remote-utils.c (socklen_t): Provide a default.
21260 (remote_open): Use socklen_t.
21261 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21262 unsigned char.
21263
21264 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21265 char for buffers.
21266 * linux-low.c (linux_read_memory, linux_write_memory)
21267 (linux_read_auxv): Likewise.
21268 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21269 (check_mem_write): Likewise.
21270 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21271 Likewise.
21272 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21273 (registers_from_string, register_data): Likewise.
21274 * server.c (handle_query, main): Likewise.
21275 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21276 (decode_M_packet): Likewise.
21277 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21278 * target.h (struct target_ops): Update read_memory, write_memory,
21279 and read_auxv.
21280 (read_inferior_memory, write_inferior_memory): Update.
21281 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21282 to unsigned char *.
21283 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21284 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21285 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21286 linux-s390-low.c, linux-sh-low.c: Update for changes in
21287 read_inferior_memory and the_low_target->breakpoint.
21288
eee84df1
DJ
212892005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21290
21291 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21292 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21293 * configure.srv: Add powerpc64-*-linux*.
21294 * linux-ppc64-low.c: New file.
21295
45b134e5
OF
212962005-05-23 Orjan Friberg <orjanf@axis.com>
21297
21298 * linux-cris-low.c: New file with support for CRIS.
21299 * linux-crisv32-low.c: Ditto for CRISv32.
21300 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21301 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21302 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21303 reg-crisv32.o, and reg-crisv32.c to make rules.
21304 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21305 recognized targets.
21306
48d93c75
UW
213072005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21308
21309 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21310 of sizeof (PTRACE_XFER_TYPE).
21311 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21312
e013ee27
OF
213132005-05-12 Orjan Friberg <orjanf@axis.com>
21314
889bf7c5 21315 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21316 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21317 pointers for hardware watchpoint support.
21318 * linux-low.h (struct linux_target_ops): Ditto.
21319 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21320 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21321 to linux_target_ops.
21322 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21323 reply packet.
21324 * server.c (main): Recognize 'Z' and 'z' packets.
21325
b0ded00b
UW
213262005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21327
21328 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21329 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21330 (the_low_target): Add new members.
21331
8643e2ad
DJ
213322005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21333
21334 * proc-service.c (ps_lgetregs): Search all_processes instead of
21335 all_threads.
21336
fc620387
DJ
213372005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21338
21339 * server.c (start_inferior): Change return type to int.
21340 (attach_inferior): Change sigptr to int *.
21341 (handle_v_cont, handle_v_requests): Change signal to int *.
21342 (main): Change signal to int.
21343
213442005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21345
21346 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21347 * configure.srv: Add m32r*-*-linux*.
21348 * linux-m32r-low.c: New file.
21349
e0e76420
DJ
213502005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21351
21352 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21353
a1928bad
DJ
213542005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21355
21356 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21357 Take unsigned long arguments for PIDs.
21358 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21359 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21360 (wait_for_sigstop, linux_resume_one_process)
21361 (regsets_fetch_inferior_registers, linux_send_signal)
21362 (linux_read_auxv): Likewise. Update the types of variables holding
21363 PIDs. Update format string specifiers.
21364 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21365 * remote-utils.c (prepare_resume_reply): Likewise.
21366 * server.c (cont_thread, general_thread, step_thread)
21367 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21368 unsigned long.
21369 (handle_query): Update format specifiers.
21370 (handle_v_cont, main): Use strtoul for thread IDs.
21371 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21372 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21373 (general_thread, step_thread, thread_from_wait)
21374 (old_thread_from_wait): Update.
21375 * target.h (struct thread_resume): Use unsigned long for THREAD.
21376 (struct target_ops): Use unsigned long for arguments to attach and
21377 thread_alive.
21378
dcdb98d2
DJ
213792005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21380
21381 * acinclude.m4: Include bfd/bfd.m4 directly.
21382 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21383 <agriffis@toolchain.org>.
21384 * aclocal.m4, configure: Regenerated.
21385
bec39cab
AC
213862005-01-07 Andrew Cagney <cagney@gnu.org>
21387
21388 * configure.ac: Rename configure.in, require autoconf 2.59.
21389 * configure: Re-generate.
21390
434c4c77
DJ
213912004-12-08 Daniel Jacobowitz <dan@debian.org>
21392
21393 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21394 LIBS when finished.
21395 * aclocal.m4: Regenerated.
21396 * configure: Regenerated.
21397
db1d3e1b
AS
213982004-11-21 Andreas Schwab <schwab@suse.de>
21399
21400 * linux-m68k-low.c (m68k_num_gregs): Define.
21401 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21402 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21403 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21404 (m68k_breakpoint_at): New. Add to the_low_target.
21405
21406 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21407 srv_linux_thread_db to yes.
21408
43360365
JB
214092004-10-20 Joel Brobecker <brobecker@gnat.com>
21410
21411 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21412 (ARCH_SET_FS): Likewise.
21413 (ARCH_GET_FS): Likewise.
21414 (ARCH_GET_GS): Likewise.
21415
fd500816
DJ
214162004-10-16 Daniel Jacobowitz <dan@debian.org>
21417
21418 * linux-i386-low.c (ps_get_thread_area): New.
21419 * linux-x86-64-low.c (ps_get_thread_area): New.
21420 * linux-low.c: Include <sys/syscall.h>.
21421 (linux_kill_one_process): Don't kill the first thread here.
21422 (linux_kill): Kill the first thread here.
21423 (kill_lwp): New function.
21424 (send_sigstop, linux_send_signal): Use it.
21425 * proc-service.c: Clean up #ifdefs.
21426 (fpregset_info): Delete.
21427 (ps_lgetregs): Update and enable implementation.
21428 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21429 implementations.
21430 * remote-utils.c (struct sym_cache, symbol_cache): New.
21431 (input_interrupt): Print a clearer message.
21432 (async_io_enabled): New variable.
21433 (enable_async_io, disable_async_io): Use it. Update comments.
21434 (look_up_one_symbol): Use the symbol cache.
21435 * thread-db.c (thread_db_look_up_symbols): New function.
21436 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21437
f6de3c42
DJ
214382004-10-16 Daniel Jacobowitz <dan@debian.org>
21439
21440 * configure.in: Test for -rdynamic.
21441 * configure: Regenerated.
21442 * Makefile (INTERNAL_LDFLAGS): New.
21443 (gdbserver, gdbreplay): Use it.
21444
2c0fc042
AC
214452004-09-02 Andrew Cagney <cagney@gnu.org>
21446
21447 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21448
075b3282
DJ
214492004-03-23 Daniel Jacobowitz <drow@mvista.com>
21450
21451 * linux-low.c (linux_wait): Clear all_processes list also.
21452
fa6a77dc
DJ
214532004-03-12 Daniel Jacobowitz <drow@mvista.com>
21454
21455 * linux-low.c: Include <errno.h>. Remove extern declaration of
21456 errno.
21457
6d782a97
DJ
214582004-03-12 Daniel Jacobowitz <drow@mvista.com>
21459
21460 * gdbreplay.c, server.h, utils.c: Update copyright years.
21461
3a7fb99b
DJ
214622004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21463
21464 * server.c (main): Print child status or termination signal from
21465 variable 'signal', not 'sig'.
21466
c3e735a6
DJ
214672004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21468
21469 * linux-low.c (linux_read_memory): Change return type to
21470 int. Check for and return error from ptrace().
21471 * target.c (read_inferior_memory): Change return type to int. Pass
21472 back return status from the_target->read_memory().
21473 * target.h (struct target_ops): Adapt *read_memory() prototype.
21474 Update comment.
21475 (read_inferior_memory): Adapt prototype.
21476 * server.c (main): Return an error packet if
21477 read_inferior_memory() returns an error.
21478
a59d1c82
DJ
214792004-03-04 Daniel Jacobowitz <drow@mvista.com>
21480
21481 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21482 Unify with other clean targets.
21483
dc3f8883
DJ
214842004-02-29 Daniel Jacobowitz <drow@mvista.com>
21485
21486 * server.c (handle_v_cont): Call set_desired_inferior.
21487
89a208da
DJ
214882004-02-29 Daniel Jacobowitz <drow@mvista.com>
21489
21490 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21491
62ea82f5
DJ
214922004-02-29 Daniel Jacobowitz <drow@mvista.com>
21493
21494 * linux-low.c (linux_wait): Unblock async I/O.
21495 (linux_resume): Block and enable async I/O.
21496 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21497 * server.h (block_async_io, unblock_async_io): Add prototypes.
21498
6910d122
DJ
214992004-02-29 Daniel Jacobowitz <drow@mvista.com>
21500
21501 * remote-utils.c (remote_open): Print a status notice after
21502 opening a TCP port.
21503 * server.c (attach_inferior): Print a status notice after
21504 attaching.
21505
215062004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21507
21508 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21509
c89dc5d4
DJ
215102004-02-26 Daniel Jacobowitz <drow@mvista.com>
21511
21512 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21513 error packet.
21514 * server.c, target.h: Update copyright years.
21515
4b8dad4a
RM
215162004-02-25 Roland McGrath <roland@redhat.com>
21517
21518 * target.h (struct target_ops): New member `read_auxv'.
21519 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21520 * linux-low.c (linux_read_auxv): New function.
21521 (linux_target_ops): Initialize `read_auxv' member to that.
21522
d7446758
JB
215232004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21524
21525 Committed by Jim Blandy <jimb@redhat.com>.
21526
21527 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21528 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21529 instead of GPR_SIZE to distiguish s390 and s390x targets.
21530
5544ad89
DJ
215312004-01-31 Daniel Jacobowitz <drow@mvista.com>
21532
21533 * linux-low.c: Update copyright year.
21534 (check_removed_breakpoint): Clear pending_is_breakpoint.
21535 (linux_set_resume_request, linux_queue_one_thread)
21536 (resume_status_pending_p): New functions.
21537 (linux_continue_one_thread): Use process->resume.
21538 (linux_resume): Only resume threads if there are no pending events.
21539 * linux-low.h (struct process_info): Add resume request
21540 pointer.
21541
2a68b70e
DJ
215422004-01-30 Daniel Jacobowitz <drow@mvista.com>
21543
21544 * regcache.c (new_register_cache): Clear the allocated register
21545 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21546
64386c31
DJ
215472003-10-13 Daniel Jacobowitz <drow@mvista.com>
21548
21549 * linux-low.c (linux_resume): Take a struct thread_resume *
21550 argument.
21551 (linux_wait): Update call.
21552 (resume_ptr): New static variable.
21553 (linux_continue_one_thread): Renamed from
21554 linux_continue_one_process. Use resume_ptr.
21555 (linux_resume): Use linux_continue_one_thread.
21556 * server.c (handle_v_cont, handle_v_requests): New functions.
21557 (myresume): New function.
21558 (main): Handle 'v' case.
21559 * target.h (struct thread_resume): New type.
21560 (struct target_ops): Change argument of "resume" to struct
21561 thread_resume *.
21562 (myresume): Delete macro.
21563
c938e9b0
L
215642003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21565
21566 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21567 (uninstall): Support DESTDIR.
21568
7f313d07
BC
21569Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21570
21571 * configure.srv: Add xscale*linux copy of arm*linux entry.
21572
3b2fc2ea
DJ
215732003-07-24 Daniel Jacobowitz <drow@mvista.com>
21574
21575 * linux-arm-low.c (arm_reinsert_addr): New function.
21576 (the_low_target): Add arm_reinsert_addr.
21577
1c0a559e
MK
215782003-07-08 Mark Kettenis <kettenis@gnu.org>
21579
21580 * mem-break.c: Remove whitespace at end of file.
21581
43d5792c
DJ
215822003-06-28 Daniel Jacobowitz <drow@mvista.com>
21583
21584 * configure.in: Check whether we need to prototype strerror.
21585 * server.h: Optionally prototype strerror.
21586 * gdbreplay.c (perror_with_name): Use strerror.
21587 * linux-low.c (linux_attach_lwp): Use strerror.
21588 * utils.c (perror_with_name): Use strerror.
21589 * config.in, configure: Regenerated.
21590
c8a86edf
DJ
215912003-06-28 Daniel Jacobowitz <drow@mvista.com>
21592
21593 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21594 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21595
73d37363
DJ
215962003-06-20 Daniel Jacobowitz <drow@mvista.com>
21597
21598 * Makefile.in (SFILES): Update.
21599 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21600 low-sun3.c: Remove files.
21601
6ad8ae5c
DJ
216022003-06-17 Daniel Jacobowitz <drow@mvista.com>
21603
21604 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21605 (linux_detach_one_process, linux_detach): New functions.
21606 (linux_target_ops): Add linux_detach.
21607 * server.c (main): Handle 'D' packet.
21608 * target.h (struct target_ops): Add "detach" member.
21609 (detach_inferior): Define.
21610
1581182a
MK
216112003-06-13 Mark Kettenis <kettenis@gnu.org>
21612
21613 From Kelley Cook <kelleycook@wideopenwest.com>:
21614 * configure.srv: Accept i[34567]86 variants.
21615
e5379b03
DJ
216162003-06-05 Daniel Jacobowitz <drow@mvista.com>
21617
21618 * linux-low.c (linux_wait_for_event): Correct comment typos.
21619 (linux_resume_one_process): Call check_removed_breakpoint.
21620 (linux_send_signal): New function.
21621 (linux_target_ops): Add linux_send_signal.
21622 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21623 of kill.
21624 * target.h (struct target_ops): Add send_signal.
21625
2ff29de4
JB
216262003-05-29 Jim Blandy <jimb@redhat.com>
21627
21628 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21629 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21630 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21631 away part of the register's value.
21632
254787d4
DJ
216332003-03-26 Daniel Jacobowitz <drow@mvista.com>
21634
21635 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21636 (linux_wait_for_event, linux_init_signals): Likewise.
21637
94e10508
DJ
216382003-03-17 Daniel Jacobowitz <drow@mvista.com>
21639
21640 * configure.in: Check for stdlib.h.
21641 * configure: Regenerated.
21642 * config.in: Regenerated.
21643
4c0711e0
DJ
216442003-01-04 Andreas Schwab <schwab@suse.de>
21645
21646 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21647
ef66e766
AC
216482003-01-02 Andrew Cagney <ac131313@redhat.com>
21649
21650 * Makefile.in: Remove obsolete code.
21651
a1358604
DJ
216522002-11-20 Daniel Jacobowitz <drow@mvista.com>
21653
21654 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21655 defined(PT_FPR0_HI).
21656
23ce3b1c
DJ
216572002-11-17 Stuart Hughes <seh@zee2.com>
21658
21659 * linux-arm-low.c (arm_num_regs): Increase.
21660 (arm_regmap): Include status register.
21661
216622002-11-17 Daniel Jacobowitz <drow@mvista.com>
21663
21664 * linux-low.c (register_addr): Remove incorrect -1 check.
21665
a9fa9f7d
DJ
216662002-08-29 Daniel Jacobowitz <drow@mvista.com>
21667
21668 * linux-low.c (linux_create_inferior): Call setpgid. Return
21669 the new PID.
21670 (unstopped_p, linux_signal_pid): Remove.
21671 (linux_target_ops): Remove linux_signal_pid.
21672 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21673 global instead of target method.
21674 * target.h (struct target_ops): Remove signal_pid. Update comment
21675 for create_inferior.
21676 * server.c (signal_pid): New variable.
21677 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21678 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21679 (attach_inferior): Set signal_pid.
21680
17574093
DJ
216812002-08-23 Daniel Jacobowitz <drow@mvista.com>
21682
21683 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21684
216852002-08-20 Jim Blandy <jimb@redhat.com>
21686
21687 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21688 default for this.
21689
216902002-08-01 Andrew Cagney <cagney@redhat.com>
21691
21692 * Makefile.in: Make chill references obsolete.
21693
216942002-07-24 Kevin Buettner <kevinb@redhat.com>
21695
21696 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21697 * configure: Regenerate.
21698 * config.in: Regenerate.
21699
217002002-07-09 David O'Brien <obrien@FreeBSD.org>
21701
21702 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21703 (perror_with_name, remote_close, remote_open, expect, play): Static.
21704
217052002-07-04 Michal Ludvig <mludvig@suse.cz>
21706
4b8dad4a 21707 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21708 byte offsets instead of an array of indexes.
21709 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21710
217112002-06-13 Daniel Jacobowitz <drow@mvista.com>
21712
21713 * regcache.c: Add comment.
21714
217152002-06-11 Daniel Jacobowitz <drow@mvista.com>
21716
21717 * thread-db.c: New file.
21718 * proc-service.c: New file.
21719 * acinclude.m4: New file.
21720 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21721 proc-service.o, and thread-db.o.
21722 (linux-low.o): Add USE_THREAD_DB.
21723 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21724 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21725 * aclocal.m4: Regenerated.
21726 * config.in: Regenerated.
21727 * configure: Regenerated.
21728 * configure.in: Check for proc_service.h, sys/procfs.h,
21729 thread_db.h, and linux/elf.h headrs.
21730 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21731 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21732 Check for -lthread_db and thread support.
21733 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21734 PowerPC, and SuperH.
21735 * i387-fp.c: Constify arguments.
21736 * i387-fp.h: Likewise.
21737 * inferiors.c: (struct thread_info): Renamed from
21738 `struct inferior_info'. Remove PID member. Use generic inferior
21739 list header. All uses updated.
21740 (inferiors, signal_pid): Removed.
21741 (all_threads): New variable.
21742 (get_thread): Define.
21743 (add_inferior_to_list): New function.
21744 (for_each_inferior): New function.
21745 (change_inferior_id): New function.
21746 (add_inferior): Removed.
21747 (remove_inferior): New function.
21748 (add_thread): New function.
21749 (free_one_thread): New function.
21750 (remove_thread): New function.
21751 (clear_inferiors): Use for_each_inferior and free_one_thread.
21752 (find_inferior): New function.
21753 (find_inferior_id): New function.
21754 (inferior_target_data): Update argument type.
21755 (set_inferior_target_data): Likewise.
21756 (inferior_regcache_data): Likewise.
21757 (set_inferior_regcache_data): Likewise.
21758 * linux-low.c (linux_bp_reinsert): Remove.
21759 (all_processes, stopping_threads, using_thrads)
21760 (struct pending_signals, debug_threads, pid_of): New.
21761 (inferior_pid): Replace with macro.
21762 (struct inferior_linux_data): Remove.
21763 (get_stop_pc, add_process): New functions.
21764 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21765 Use add_process and add_thread.
21766 (linux_attach_lwp): New function, based on old linux_attach. Use
21767 add_process and add_thread. Set stop_expected for new threads.
21768 (linux_attach): New function.
21769 (linux_kill_one_process): New function.
21770 (linux_kill): Kill all LWPs.
21771 (linux_thread_alive): Use find_inferior_id.
21772 (check_removed_breakpoints, status_pending_p): New functions.
21773 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21774 Update. Use WNOHANG. Wait for cloned processes also. Update process
21775 struct for the found process.
21776 (linux_wait_for_event): New function.
21777 (linux_wait): Use it. Support LWPs.
21778 (send_sigstop, wait_for_sigstop, stop_all_processes)
21779 (linux_resume_one_process, linux_continue_one_process): New functions.
21780 (linux_resume): Support LWPs.
21781 (REGISTER_RAW_SIZE): Remove.
21782 (fetch_register): Use register_size instead. Call supply_register.
21783 (usr_store_inferior_registers): Likewise. Call collect_register.
21784 Fix recursive case.
21785 (regsets_fetch_inferior_registers): Improve error message.
21786 (regsets_store_inferior_registers): Add debugging.
21787 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21788 (unstopped_p, linux_signal_pid): New functions.
21789 (linux_target_ops): Add linux_signal_pid.
21790 (linux_init_signals): New function.
21791 (initialize_low): Call it. Initialize using_threads.
21792 * regcache.c (inferior_regcache_data): Add valid
21793 flag.
21794 (get_regcache): Fetch registers lazily. Add fetch argument
21795 and update all callers.
21796 (regcache_invalidate_one, regcache_invalidate): New
21797 functions.
21798 (new_register_cache): Renamed from create_register_cache.
21799 Return the new regcache.
21800 (free_register_cache): Change argument to a void *.
21801 (registers_to_string, registers_from_string): Call get_regcache
21802 with fetch flag set.
21803 (register_data): Make static. Pass fetch flag to get_regcache.
21804 (supply_register): Call get_regcache with fetch flag clear.
21805 (collect_register): Call get_regcache with fetch flag set.
21806 (collect_register_as_string): New function.
21807 * regcache.h: Update.
21808 * remote-utils.c (putpkt): Flush after debug output and use
21809 stderr.
21810 Handle input interrupts while waiting for an ACK.
21811 (input_interrupt): Use signal_pid method.
21812 (getpkt): Flush after debug output and use stderr.
21813 (outreg): Use collect_register_as_string.
21814 (new_thread_notify, dead_thread_notify): New functions.
21815 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21816 and general_thread.
21817 (look_up_one_symbol): Flush after debug output.
21818 * server.c (step_thread, server_waiting): New variables.
21819 (start_inferior): Don't use signal_pid. Update call to mywait.
21820 (attach_inferior): Update call to mywait.
21821 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21822 (main): Don't fetch/store registers explicitly. Use
21823 set_desired_inferior. Support proposed ``Hs'' packet. Update
21824 calls to mywait.
21825 * server.h: Update.
21826 (struct inferior_list, struct_inferior_list_entry): New.
21827 * target.c (set_desired_inferior): New.
21828 (write_inferior_memory): Constify.
21829 (mywait): New function.
21830 * target.h: Update.
21831 (struct target_ops): New signal_pid method.
21832 (mywait): Removed macro, added prototype.
21833
21834 * linux-low.h (regset_func): Removed.
21835 (regset_fill_func, regset_store_func): New.
21836 (enum regset_type): New.
21837 (struct regset_info): Add type field. Use new operation types.
21838 (struct linux_target_ops): stop_pc renamed to get_pc.
21839 Add decr_pc_after_break and breakpoint_at.
21840 (get_process, get_thread_proess, get_process_thread)
21841 (strut process_info, all_processes, linux_attach_lwp)
21842 (thread_db_init): New.
21843
21844 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21845 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21846 (the_low_target): Add new members.
21847 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21848 (i386_store_fpxregset): Constify.
21849 (target_regsets): Add new kind identifier.
21850 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21851 (i386_set_pc): Add debugging.
21852 (i386_breakpoint_at): New function.
21853 (the_low_target): Add new members.
21854 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21855 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21856 (mips_breakpoint_at): New.
21857 (the_low_target): Add new members.
21858 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21859 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21860 (the_low_target): Add new members.
21861 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21862 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21863 (the_low_target): Add new members.
21864 * linux-x86-64-low.c (target_regsets): Add new kind
21865 identifier.
21866
218672002-05-15 Daniel Jacobowitz <drow@mvista.com>
21868
21869 From Martin Pool <mbp@samba.org>:
21870 * server.c (gdbserver_usage): New function.
21871 (main): Call it.
21872
218732002-05-14 Daniel Jacobowitz <drow@mvista.com>
21874
21875 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21876 stop_at -> stop_pc.
21877
218782002-05-04 Andrew Cagney <ac131313@redhat.com>
21879
21880 * Makefile.in: Remove obsolete code.
21881
218822002-04-24 Michal Ludvig <mludvig@suse.cz>
21883
21884 * linux-low.c (regsets_fetch_inferior_registers),
21885 (regsets_store_inferior_registers): Removed cast to int from
21886 ptrace() calls.
21887 * regcache.h: Added declaration of struct inferior_info.
21888
218892002-04-20 Daniel Jacobowitz <drow@mvista.com>
21890
21891 * inferiors.c (struct inferior_info): Add regcache_data.
21892 (add_inferior): Call create_register_cache.
21893 (clear_inferiors): Call free_register_cache.
21894 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21895 * regcache.c (struct inferior_regcache_data): New.
21896 (registers): Remove.
21897 (get_regcache): New function.
21898 (create_register_cache, free_register_cache): New functions.
21899 (set_register_cache): Don't initialize the register cache here.
21900 (registers_to_string, registers_from_string, register_data): Call
21901 get_regcache.
21902 * regcache.h: Add prototypes.
21903 * server.h: Likewise.
21904
219052002-04-20 Daniel Jacobowitz <drow@mvista.com>
21906
21907 * mem-break.c: New file.
21908 * mem-break.h: New file.
21909 * Makefile.in: Add mem-break.o rule; update server.h
21910 dependencies.
21911 * inferiors.c (struct inferior_info): Add target_data
21912 member.
21913 (clear_inferiors): Free target_data member if set.
21914 (inferior_target_data, set_inferior_target_data): New functions.
21915 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21916 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21917 * linux-low.c (linux_bp_reinsert): New variable.
21918 (struct inferior_linux_data): New.
21919 (linux_create_inferior): Use set_inferior_target_data.
21920 (linux_attach): Likewise. Call add_inferior.
21921 (linux_wait_for_one_inferior): New function.
21922 (linux_wait): Call it.
21923 (linux_write_memory): Add const.
21924 (initialize_low): Call set_breakpoint_data.
21925 * linux-low.h (struct linux_target_ops): Add breakpoint
21926 handling members.
21927 * server.c (attach_inferior): Remove extra add_inferior
21928 call.
21929 * server.h: Include mem-break.h. Update inferior.c
21930 prototypes.
21931 * target.c (read_inferior_memory)
21932 (write_inferior_memory): New functions.
21933 * target.h (read_inferior_memory)
21934 (write_inferior_memory): Change macros to prototypes.
21935 (struct target_ops): Update comments. Add const to write_memory
21936 definition.
21937
219382002-04-11 Daniel Jacobowitz <drow@mvista.com>
21939
21940 * linux-low.c (usr_store_inferior_registers): Support
21941 registers which are allowed to fail to store.
21942 * linux-low.h (linux_target_ops): Likewise.
21943 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21944 (ppc_cannot_store_register): FPSCR may not be storable.
21945
219462002-04-09 Daniel Jacobowitz <drow@mvista.com>
21947
21948 * server.h: Include <string.h> if HAVE_STRING_H.
21949 * ChangeLog: Correct paths in last ChangeLog entry.
21950
219512002-04-09 Daniel Jacobowitz <drow@mvista.com>
21952
21953 * linux-low.h: Remove obsolete prototypes.
21954 (struct linux_target_ops): New.
21955 (extern the_low_target): New.
21956 * linux-low.c (num_regs, regmap): Remove declarations.
21957 (register_addr): Use the_low_target explicitly.
21958 (fetch_register): Likewise.
21959 (usr_fetch_inferior_registers): Likewise.
21960 (usr_store_inferior_registers): Likewise.
21961 * linux-arm-low.c (num_regs): Remove.
21962 (arm_num_regs): Define.
21963 (arm_regmap): Renamed from regmap, made static.
21964 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21965 made static.
21966 (arm_cannot_store_register): Renamed from cannot_store_register,
21967 made static.
21968 (the_low_target): New.
21969 * linux-i386-low.c (num_regs): Remove.
21970 (i386_num_regs): Define.
21971 (i386_regmap): Renamed from regmap, made static.
21972 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21973 made static.
21974 (i386_cannot_store_register): Renamed from cannot_store_register,
21975 made static.
21976 (the_low_target): New.
21977 * linux-ia64-low.c (num_regs): Remove.
21978 (ia64_num_regs): Define.
21979 (ia64_regmap): Renamed from regmap, made static.
21980 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21981 made static.
21982 (ia64_cannot_store_register): Renamed from cannot_store_register,
21983 made static.
21984 (the_low_target): New.
21985 * linux-m68k-low.c (num_regs): Remove.
21986 (m68k_num_regs): Define.
21987 (m68k_regmap): Renamed from regmap, made static.
21988 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21989 made static.
21990 (m68k_cannot_store_register): Renamed from cannot_store_register,
21991 made static.
21992 (the_low_target): New.
21993 * linux-mips-low.c (num_regs): Remove.
21994 (mips_num_regs): Define.
21995 (mips_regmap): Renamed from regmap, made static.
21996 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21997 made static.
21998 (mips_cannot_store_register): Renamed from cannot_store_register,
21999 made static.
22000 (the_low_target): New.
22001 * linux-ppc-low.c (num_regs): Remove.
22002 (ppc_num_regs): Define.
22003 (ppc_regmap): Renamed from regmap, made static.
22004 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22005 made static.
22006 (ppc_cannot_store_register): Renamed from cannot_store_register,
22007 made static.
22008 (the_low_target): New.
22009 * linux-s390-low.c (num_regs): Remove.
22010 (s390_num_regs): Define.
22011 (s390_regmap): Renamed from regmap, made static.
22012 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22013 made static.
22014 (s390_cannot_store_register): Renamed from cannot_store_register,
22015 made static.
22016 (the_low_target): New.
22017 * linux-sh-low.c (num_regs): Remove.
22018 (sh_num_regs): Define.
22019 (sh_regmap): Renamed from regmap, made static.
22020 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22021 made static.
22022 (sh_cannot_store_register): Renamed from cannot_store_register,
22023 made static.
22024 (the_low_target): New.
22025 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22026 (the_low_target): New.
22027
220282002-04-09 Daniel Jacobowitz <drow@mvista.com>
22029
22030 * Makefile.in: Add stamp-h target.
22031 * configure.in: Create stamp-h.
22032 * configure: Regenerated.
22033
220342002-04-09 Daniel Jacobowitz <drow@mvista.com>
22035
22036 * inferiors.c: New file.
22037 * target.c: New file.
22038 * target.h: New file.
22039 * Makefile.in: Add target.o and inferiors.o. Update
22040 dependencies.
22041 * linux-low.c (inferior_pid): New static variable,
22042 moved from server.c.
22043 (linux_create_inferior): Renamed from create_inferior.
22044 Call add_inferior. Return 0 on success instead of a PID.
22045 (linux_attach): Renamed from myattach.
22046 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22047 (linux_thread_alive): Renamed from mythread_alive.
22048 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22049 child dies.
22050 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22051 (regsets_store_inferior_registers): Correct error message.
22052 Add missing ``return 0''.
22053 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22054 (linux_store_registers): Renamed from store_inferior_registers.
22055 (linux_read_memory): Renamed from read_inferior_memory.
22056 (linux_write_memory): Renamed from write_inferior_memory.
22057 (linux_target_ops): New structure.
22058 (initialize_low): Call set_target_ops ().
22059 * remote-utils.c (unhexify): New function.
22060 (hexify): New function.
22061 (input_interrupt): Send signals to ``signal_pid''.
22062 * server.c (inferior_pid): Remove.
22063 (start_inferior): Update create_inferior call.
22064 (attach_inferior): Call add_inferior.
22065 (handle_query): New function.
22066 (main): Call handle_query for `q' packets.
22067 * server.h: Include "target.h". Remove obsolete prototypes.
22068 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22069
220702002-04-09 Daniel Jacobowitz <drow@mvista.com>
22071
22072 * Makefile.in: Add WARN_CFLAGS. Update configury
22073 dependencies.
22074 * configure.in: Check for <string.h>
22075 * configure: Regenerate.
22076 * config.in: Regenerate.
22077 * gdbreplay.c: Include needed system headers.
22078 (remote_open): Remove strchr prototype.
22079 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22080 * regcache.c (supply_register): Change buf argument to const void *.
22081 (supply_register_by_name): Likewise.
22082 (collect_register): Change buf argument to void *.
22083 (collect_register_by_name): Likewise.
22084 * regcache.h: Add missing prototypes.
22085 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22086 * server.c (handle_query): New function.
22087 (attached): New static variable, moved out of main.
22088 (main): Quiet longjmp clobber warnings.
22089 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22090 * utils.c (error): Remove NORETURN.
22091 (fatal): Likewise.