Add pending stop support to gdbserver's Windows port
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
360ad8b3
TT
12020-04-08 Tom Tromey <tromey@adacore.com>
2
3 PR gdb/22992
4 * win32-low.c (child_continue): Call matching_pending_stop.
5 (get_child_debug_event): Call fetch_pending_stop. Push pending
6 stop when needed.
7
523d4f80
TT
82020-04-08 Tom Tromey <tromey@adacore.com>
9
10 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
11 (win32_process_target::supports_stopped_by_sw_breakpoint):
12 Declare.
13 * win32-low.c (win32_supports_z_point_type): Always handle
14 Z_PACKET_SW_BP.
15 (win32_insert_point): Call insert_memory_breakpoint when needed.
16 (win32_remove_point): Call remove_memory_breakpoint when needed.
17 (win32_process_target::stopped_by_sw_breakpoint)
18 (win32_process_target::supports_stopped_by_sw_breakpoint): New
19 methods.
20 (win32_target_ops): Update.
21 (maybe_adjust_pc): New function.
22 (win32_wait): Call maybe_adjust_pc.
23
e54e5929
TT
242020-04-08 Tom Tromey <tromey@adacore.com>
25
26 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
27 field.
28 * win32-i386-low.c (the_low_target): Update.
29 * win32-arm-low.c (the_low_target): Update.
30
d6225aff
TT
312020-04-08 Tom Tromey <tromey@adacore.com>
32
33 * win32-low.h (win32_process_target::read_pc)
34 (win32_process_target::write_pc): Declare.
35 * win32-low.c (win32_process_target::read_pc)
36 (win32_process_target::write_pc): New methods.
37 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
38 functions.
39 (the_low_target): Update.
40 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
41 functions.
42 (the_low_target): Update.
43
2c1d95e8
TT
442020-04-08 Tom Tromey <tromey@adacore.com>
45
46 * win32-low.c (win32_kill, get_child_debug_event): Use
47 wait_for_debug_event.
48
e758e19c
TT
492020-04-08 Tom Tromey <tromey@adacore.com>
50
51 * win32-low.c (child_continue): Call continue_last_debug_event.
52
8d30e395
TT
532020-04-08 Tom Tromey <tromey@adacore.com>
54
55 * win32-low.c (handle_exception): Remove.
56 (windows_nat::handle_ms_vc_exception): New function.
57 (get_child_debug_event): Add "continue_status" parameter.
58 Update.
59 (win32_wait): Update.
60
a816ba18
TT
612020-04-08 Tom Tromey <tromey@adacore.com>
62
63 * win32-low.c (windows_nat::handle_load_dll): Rename from
64 handle_load_dll. No longer static.
65 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
66 No longer static.
67
d41b524f
TT
682020-04-08 Tom Tromey <tromey@adacore.com>
69
70 * win32-low.c (handle_output_debug_string): Add parameter. Change
71 return type.
72 (win32_kill, get_child_debug_event): Update.
73
3c76026d
TT
742020-04-08 Tom Tromey <tromey@adacore.com>
75
76 * win32-low.c (current_process_handle, current_process_id)
77 (main_thread_id, last_sig, current_event, siginfo_er): Move to
78 nat/windows-nat.c.
79
9d8679cc
TT
802020-04-08 Tom Tromey <tromey@adacore.com>
81
82 * win32-low.c (get_image_name): Remove.
83 (handle_load_dll): Update.
84
28688adf
TT
852020-04-08 Tom Tromey <tromey@adacore.com>
86
87 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
88 No longer static. Change parameters.
89 (child_add_thread, child_fetch_inferior_registers)
90 (child_store_inferior_registers, win32_resume)
91 (win32_get_tib_address): Update.
92
4834dad0
TT
932020-04-08 Tom Tromey <tromey@adacore.com>
94
95 * win32-low.h (struct win32_target_ops): Use qualified names where
96 needed.
97 * win32-i386-low.c: Add "using namespace".
98 * win32-low.c: Add "using namespace".
99 * win32-arm-low.c: Add "using namespace".
100
65bafd5b
TT
1012020-04-08 Tom Tromey <tromey@adacore.com>
102
103 * win32-low.c (delete_thread_info): Don't call CloseHandle.
104
98a03287
TT
1052020-04-08 Tom Tromey <tromey@adacore.com>
106
107 * win32-low.c (win32_require_context, suspend_one_thread): Use
108 windows_thread_info::suspend.
109 (continue_one_thread): Use windows_thread_info::resume.
110 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
111
62fe396b
TT
1122020-04-08 Tom Tromey <tromey@adacore.com>
113
114 * win32-i386-low.c (update_debug_registers)
115 (i386_prepare_to_resume, i386_thread_added): Update.
116
e9534bd2
TT
1172020-04-08 Tom Tromey <tromey@adacore.com>
118
119 * win32-low.c (child_add_thread): Use new.
120 (delete_thread_info): Use delete.
121
ae1f8880
TT
1222020-04-08 Tom Tromey <tromey@adacore.com>
123
124 * win32-low.h (struct windows_thread_info): Remove.
125
e56f8ccb
TT
1262020-04-08 Tom Tromey <tromey@adacore.com>
127
128 * win32-low.h (struct windows_thread_info): Rename from
129 win32_thread_info. Remove typedef.
130 (struct win32_target_ops, win32_require_context): Update.
131 * win32-low.c (win32_get_thread_context)
132 (win32_set_thread_context, win32_prepare_to_resume)
133 (win32_require_context, thread_rec, child_add_thread)
134 (delete_thread_info, continue_one_thread)
135 (child_fetch_inferior_registers, child_store_inferior_registers)
136 (win32_resume, suspend_one_thread, win32_get_tib_address):
137 Update.
138 * win32-i386-low.c (update_debug_registers)
139 (win32_get_current_dr, i386_get_thread_context)
140 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
141 (i386_fetch_inferior_register, i386_store_inferior_register):
142 Update.
143 * win32-arm-low.c (arm_get_thread_context)
144 (arm_fetch_inferior_register, arm_store_inferior_register):
145 Update.
146
0dd7b52e
TBA
1472020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
148
149 * linux-low.h (struct linux_target_ops): Remove.
150 (the_low_target): Remove.
151 * linux-x86-low.cc (the_low_target): Remove.
152 * linux-aarch64-low.cc (the_low_target): Ditto.
153 * linux-arm-low.cc (the_low_target): Ditto.
154 * linux-bfin-low.cc (the_low_target): Ditto.
155 * linux-cris-low.cc (the_low_target): Ditto.
156 * linux-crisv32-low.cc (the_low_target): Ditto.
157 * linux-ia64-low.cc (the_low_target): Ditto.
158 * linux-m32r-low.cc (the_low_target): Ditto.
159 * linux-m68k-low.cc (the_low_target): Ditto.
160 * linux-mips-low.cc (the_low_target): Ditto.
161 * linux-nios2-low.cc (the_low_target): Ditto.
162 * linux-ppc-low.cc (the_low_target): Ditto.
163 * linux-riscv-low.cc (the_low_target): Ditto.
164 * linux-s390-low.cc (the_low_target): Ditto.
165 * linux-sh-low.cc (the_low_target): Ditto.
166 * linux-sparc-low.cc (the_low_target): Ditto.
167 * linux-tic6x-low.cc (the_low_target): Ditto.
168 * linux-tile-low.cc (the_low_target): Ditto.
169 * linux-xtensa-low.cc (the_low_target): Ditto.
170
fc5ecdb6
TBA
1712020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
172
173 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
174 linux target define the op by overriding the declaration in
175 process_stratum_target.
176
177 * linux-low.h (struct linux_target_ops): Remove the op.
178 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
179 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
180 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
181 (x86_get_ipa_tdesc_idx): Turn into...
182 (x86_target::get_ipa_tdesc_idx): ...this.
183 (the_low_target): Remove the op field.
184 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
185 (ppc_get_ipa_tdesc_idx): Turn into...
186 (ppc_target::get_ipa_tdesc_idx): ...this.
187 (the_low_target): Remove the op field.
188 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
189 (s390_get_ipa_tdesc_idx): Turn into...
190 (s390_target::get_ipa_tdesc_idx): ...this.
191 (the_low_target): Remove the op field.
192
9eedd27d
TBA
1932020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
194
195 Turn the 'get_syscall_trapinfo' linux target op into a method
196 of process_stratum_target.
197
198 * linux-low.h (struct linux_target_ops): Remove the op.
199 (class linux_process_target) <get_syscall_trapinfo>
200 <gdb_catch_this_syscall>
201 <low_supports_catch_syscall>
202 <low_get_syscall_trapinfo>: Declare.
203 * linux-low.cc (get_syscall_trapinfo): Turn into...
204 (linux_process_target::get_syscall_trapinfo): ...this.
205 (linux_process_target::low_get_syscall_trapinfo): Define.
206 (gdb_catch_this_syscall_p): Turn into...
207 (linux_process_target::gdb_catch_this_syscall): ...this.
208 (linux_process_target::low_supports_catch_syscall): Define.
209
210 Update the callers below.
211
212 (linux_process_target::wait_1)
213 (linux_process_target::supports_catch_syscall)
214
215 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
216 <low_get_syscall_trapinfo>: Declare.
217 (x86_target::low_supports_catch_syscall): Define.
218 (x86_get_syscall_trapinfo): Turn into...
219 (x86_target::low_get_syscall_trapinfo): ...this.
220 (the_low_target): Remove the op field.
221 * linux-aarch64-low.cc (class aarch64_target)
222 <low_supports_catch_syscall>
223 <low_get_syscall_trapinfo>: Declare.
224 (aarch64_target::low_supports_catch_syscall): Define.
225 (aarch64_get_syscall_trapinfo): Turn into...
226 (aarch64_target::low_get_syscall_trapinfo): ...this.
227 (the_low_target): Remove the op field.
228 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
229 <low_get_syscall_trapinfo>: Declare.
230 (arm_target::low_supports_catch_syscall): Define.
231 (arm_get_syscall_trapinfo): Turn into...
232 (arm_target::low_get_syscall_trapinfo): ...this.
233 (the_low_target): Remove the op field.
234 * linux-ppc-low.cc (the_low_target): Remove the op field.
235 * linux-s390-low.cc (the_low_target): Remove the op field.
236
b31cdfa6
TBA
2372020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
238
239 Remove the 'supports_hardware_single_step' linux target op and
240 override the process_stratum_target's op definition in
241 linux_process_target to return true.
242
243 * linux-low.h (struct linux_target_ops): Remove the op.
244 (class linux_process_target) <finish_step_over>
245 <maybe_hw_step>: Declare.
246 * linux-low.cc (can_hardware_single_step): Remove.
247 (maybe_hw_step): Turn into...
248 (linux_process_target::maybe_hw_step): ...this.
249 (finish_step_over): Turn into...
250 (linux_process_target::finish_step_over): ...this.
251 (linux_process_target::supports_hardware_single_step): Update
252 to return true.
253
254 Update the callers below.
255
256 (linux_process_target::single_step)
257 (linux_process_target::resume_one_lwp_throw)
258
259 * linux-arm-low.cc (class arm_target)
260 <supports_hardware_single_step>: Declare.
261 (arm_supports_hardware_single_step): Turn into...
262 (arm_target::supports_hardware_single_step): ...this.
263 (the_low_target): Remove the op field.
264 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
265 (the_low_target): Remove the op field.
266 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
267 Remove.
268 (the_low_target): Remove the op field.
269 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
270 (the_low_target): Remove the op field.
271 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
272 (the_low_target): Remove the op field.
273 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
274 (the_low_target): Remove the op field.
275 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
276 (the_low_target): Remove the op field.
277 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
278 (the_low_target): Remove the op field.
279 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
280 (the_low_target): Remove the op field.
281 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
282 (the_low_target): Remove the op field.
283 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
284 (the_low_target): Remove the op field.
285 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
286 (the_low_target): Remove the op field.
287 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
288 Remove.
289 (the_low_target): Remove the op field.
290
9cfd8715
TBA
2912020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
292
293 Turn the 'supports_range_stepping' linux target op into a method
294 of linux_process_target.
295
296 * linux-low.h (struct linux_target_ops): Remove the op.
297 (class linux_process_target) <low_supports_range_stepping>: Declare.
298 * linux-low.cc (linux_process_target::low_supports_range_stepping):
299 Define.
300 (linux_process_target::supports_range_stepping): Update the call
301 site.
302 * linux-x86-low.cc (class x86_target)
303 <low_supports_range_stepping>: Declare.
304 (x86_supports_range_stepping): Turn into...
305 (x86_target::low_supports_range_stepping): ...this.
306 (the_low_target): Remove the op field.
307 * linux-aarch64-low.cc (class aarch64_target)
308 <low_supports_range_stepping>: Declare.
309 (aarch64_supports_range_stepping): Turn into...
310 (aarch64_target::low_supports_range_stepping): ...this.
311 (the_low_target): Remove the op field.
312 * linux-arm-low.cc (the_low_target): Remove the op field.
313 * linux-bfin-low.cc (the_low_target): Ditto.
314 * linux-crisv32-low.cc (the_low_target): Ditto.
315 * linux-m32r-low.cc (the_low_target): Ditto.
316 * linux-m68k-low.cc (the_low_target): Ditto.
317 * linux-ppc-low.cc (the_low_target): Ditto.
318 * linux-s390-low.cc (the_low_target): Ditto.
319 * linux-sh-low.cc (the_low_target): Ditto.
320 * linux-tic6x-low.cc (the_low_target): Ditto.
321 * linux-tile-low.cc (the_low_target): Ditto.
322 * linux-xtensa-low.cc (the_low_target): Ditto.
323
ab64c999
TBA
3242020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
325
326 Remove the 'emit_ops' linux target ops and let the concrete
327 linux target define the op by overriding the declaration of
328 process_stratum_target.
329
330 * linux-low.h (struct linux_target_ops): Remove the op.
331 (class linux_process_target) <emit_ops>: Remove.
332 * linux-low.cc (linux_process_target::emit_ops): Remove.
333 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
334 (x86_emit_ops): Turn into...
335 (x86_target::emit_ops): ...this.
336 (the_low_target): Remove the op field.
337 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
338 (aarch64_emit_ops): Turn into...
339 (aarch64_target::emit_ops): ...this.
340 (the_low_target): Remove the op field.
341 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
342 (ppc_emit_ops): Turn into...
343 (ppc_target::emit_ops): ...this.
344 (the_low_target): Remove the op field.
345 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
346 (s390_emit_ops): Turn into...
347 (s390_target::emit_ops): ...this.
348 (the_low_target): Remove the op field.
349 * linux-arm-low.cc (the_low_target): Remove the op field.
350 * linux-bfin-low.cc (the_low_target): Ditto.
351 * linux-crisv32-low.cc (the_low_target): Ditto.
352 * linux-m32r-low.cc (the_low_target): Ditto.
353 * linux-m68k-low.cc (the_low_target): Ditto.
354 * linux-sh-low.cc (the_low_target): Ditto.
355 * linux-tic6x-low.cc (the_low_target): Ditto.
356 * linux-tile-low.cc (the_low_target): Ditto.
357 * linux-xtensa-low.cc (the_low_target): Ditto.
358
809a0c35
TBA
3592020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
360
361 Remove the 'install_fast_tracepoint_jump_pad' and
362 'get_min_fast_tracepoint_insn_len' linux target ops to let the
363 concrete linux target define the ops by overriding the declarations
364 of process_stratum_target.
365
366 * linux-low.h (struct linux_target_ops): Remove the ops.
367 (class linux_process_target) <supports_fast_tracepoints>
368 <install_fast_tracepoint_jump_pad>
369 <get_min_fast_tracepoint_insn_len>: Remove.
370 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
371 (linux_process_target::install_fast_tracepoint_jump_pad)
372 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
373 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
374 <install_fast_tracepoint_jump_pad>
375 <get_min_fast_tracepoint_insn_len>: Declare.
376 (x86_target::supports_fast_tracepoints): Define.
377 (x86_install_fast_tracepoint_jump_pad): Turn into...
378 (x86_target::install_fast_tracepoint_jump_pad): ...this.
379 (x86_get_min_fast_tracepoint_insn_len): Turn into...
380 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
381 (the_low_target): Remove the op fields.
382 * linux-aarch64-low.cc (class aarch64_target)
383 <supports_fast_tracepoints>
384 <install_fast_tracepoint_jump_pad>
385 <get_min_fast_tracepoint_insn_len>: Declare.
386 (aarch64_target::supports_fast_tracepoints): Define.
387 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
388 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
389 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
390 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
391 (the_low_target): Remove the op fields.
392 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
393 <install_fast_tracepoint_jump_pad>
394 <get_min_fast_tracepoint_insn_len>: Declare.
395 (ppc_target::supports_fast_tracepoints): Define.
396 (ppc_install_fast_tracepoint_jump_pad): Turn into...
397 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
398 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
399 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
400 (the_low_target): Remove the op fields.
401 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
402 <install_fast_tracepoint_jump_pad>
403 <get_min_fast_tracepoint_insn_len>: Declare.
404 (s390_target::supports_fast_tracepoints): Define.
405 (s390_install_fast_tracepoint_jump_pad): Turn into...
406 (s390_target::install_fast_tracepoint_jump_pad): ...this.
407 (s390_get_min_fast_tracepoint_insn_len): Turn into...
408 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
409 (the_low_target): Remove the op fields.
410 * linux-arm-low.cc (the_low_target): Remove the op fields.
411 * linux-bfin-low.cc (the_low_target): Ditto.
412 * linux-crisv32-low.cc (the_low_target): Ditto.
413 * linux-m32r-low.cc (the_low_target): Ditto.
414 * linux-m68k-low.cc (the_low_target): Ditto.
415 * linux-sh-low.cc (the_low_target): Ditto.
416 * linux-tic6x-low.cc (the_low_target): Ditto.
417 * linux-tile-low.cc (the_low_target): Ditto.
418 * linux-xtensa-low.cc (the_low_target): Ditto.
419
13e567af
TBA
4202020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
421
422 Turn the 'get_thread_area' linux target op into a method of
423 process_stratum_target.
424
425 * linux-low.h (struct linux_target_ops): Remove the op.
426 (class linux_process_target) <stuck_in_jump_pad>
427 <linux_fast_tracepoint_collecting>
428 <low_get_thread_area>: Declare.
429 * linux-low.cc (supports_fast_tracepoints): Remove.
430 (linux_fast_tracepoint_collecting): Turn into...
431 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
432 (linux_process_target::low_get_thread_area): Define.
433 (stuck_in_jump_pad_callback): Turn into...
434 (linux_process_target::stuck_in_jump_pad): ...this.
435
436 Update the caller below.
437
438 (linux_process_target::stabilize_threads)
439
440 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
441 Declare.
442 (x86_get_thread_area): Turn into...
443 (x86_target::low_get_thread_area): ...this.
444 (the_low_target): Remove the op field.
445 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
446 Declare.
447 (aarch64_get_thread_area): Turn into...
448 (aarch64_target::low_get_thread_area): ...this.
449 (the_low_target): Remove the op field.
450 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
451 Declare.
452 (ppc_get_thread_area): Turn into...
453 (ppc_target::low_get_thread_area): ...this.
454 (the_low_target): Remove the op field.
455 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
456 Declare.
457 (s390_get_thread_area): Turn into...
458 (s390_target::low_get_thread_area): ...this.
459 (the_low_target): Remove the op field.
460 * linux-arm-low.cc (the_low_target): Remove the op field.
461 * linux-bfin-low.cc (the_low_target): Ditto.
462 * linux-crisv32-low.cc (the_low_target): Ditto.
463 * linux-m32r-low.cc (the_low_target): Ditto.
464 * linux-m68k-low.cc (the_low_target): Ditto.
465 * linux-sh-low.cc (the_low_target): Ditto.
466 * linux-tic6x-low.cc (the_low_target): Ditto.
467 * linux-tile-low.cc (the_low_target): Ditto.
468 * linux-xtensa-low.cc (the_low_target): Ditto.
469
47f70aa7
TBA
4702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
471
472 Remote the 'supports_tracepoints' linux target op and let the
473 concrete linux target define it by overriding the op declared in
474 process_stratum_target.
475
476 * linux-low.h (struct linux_target_ops): Remove the op.
477 (class linux_process_target) <supports_tracepoints>: Remove.
478 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
479 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
480 Declare.
481 (x86_supports_tracepoints): Turn into...
482 (x86_target::supports_tracepoints): ...this.
483 (the_low_target): Remove the op field.
484 * linux-aarch64-low.cc (class aarch64_target)
485 <supports_tracepoints>: Declare.
486 (aarch64_supports_tracepoints): Turn into...
487 (aarch64_target::supports_tracepoints): ...this.
488 (the_low_target): Remove the op field.
489 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
490 Declare.
491 (ppc_supports_tracepoints): Turn into...
492 (ppc_target::supports_tracepoints): ...this.
493 (the_low_target): Remove the op field.
494 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
495 Declare.
496 (s390_supports_tracepoints): Turn into...
497 (s390_target::supports_tracepoints): ...this.
498 (the_low_target): Remove the op field.
499 * linux-arm-low.cc (the_low_target): Remove the op field.
500 * linux-bfin-low.cc (the_low_target): Ditto.
501 * linux-crisv32-low.cc (the_low_target): Ditto.
502 * linux-m32r-low.cc (the_low_target): Ditto.
503 * linux-m68k-low.cc (the_low_target): Ditto.
504 * linux-sh-low.cc (the_low_target): Ditto.
505 * linux-tic6x-low.cc (the_low_target): Ditto.
506 * linux-tile-low.cc (the_low_target): Ditto.
507 * linux-xtensa-low.cc (the_low_target): Ditto.
508
a5b5da92
TBA
5092020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
510
511 Remove the 'process_qsupported' linux target op and let a concrete
512 linux target define the op by overriding the op declaration in
513 process_stratum_target.
514
515 * linux-low.h (struct linux_target_ops): Remove the op.
516 (class linux_process_target) <process_qsupported>: Remove.
517 * linux-low.cc (linux_process_target::process_qsupported): Remove.
518 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
519 (x86_linux_process_qsupported): Turn into...
520 (x86_target::process_qsupported): ...this.
521 (the_low_target): Remove the op field.
522 * linux-aarch64-low.cc (the_low_target): Remove the op
523 field.
524 * linux-arm-low.cc (the_low_target): Ditto.
525 * linux-bfin-low.cc (the_low_target): Ditto.
526 * linux-crisv32-low.cc (the_low_target): Ditto.
527 * linux-m32r-low.cc (the_low_target): Ditto.
528 * linux-m68k-low.cc (the_low_target): Ditto.
529 * linux-ppc-low.cc (the_low_target): Ditto.
530 * linux-s390-low.cc (the_low_target): Ditto.
531 * linux-sh-low.cc (the_low_target): Ditto.
532 * linux-tic6x-low.cc (the_low_target): Ditto.
533 * linux-tile-low.cc (the_low_target): Ditto.
534 * linux-xtensa-low.cc (the_low_target): Ditto.
535
d7599cc0
TBA
5362020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
537
538 Turn the 'prepare_to_resume' linux target op into a method of
539 linux_process_target.
540
541 * linux-low.h (struct linux_target_ops): Remove the op.
542 (class linux_process_target) <low_prepare_to_resume>: Declare.
543 * linux-low.cc (linux_process_target::low_prepare_to_resume):
544 Define.
545
546 Update the callers below:
547
548 (linux_process_target::resume_one_lwp_throw)
549 (linux_process_target::low_prepare_to_resume)
550
551 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
552 Declare.
553 (x86_target::low_prepare_to_resume): Define.
554 (the_low_target): Remove the op field.
555 * linux-aarch64-low.cc (class aarch64_target)
556 <low_prepare_to_resume>: Declare.
557 (aarch64_target::low_prepare_to_resume): Define.
558 (the_low_target): Remove the op field.
559 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
560 Declare.
561 (arm_prepare_to_resume): Turn into...
562 (arm_target::low_prepare_to_resume): ...this.
563 (the_low_target): Remove the op field.
564 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
565 Declare.
566 (mips_linux_prepare_to_resume): Turn into...
567 (mips_target::low_prepare_to_resume): ...this.
568 (the_low_target): Remove the op field.
569 * linux-bfin-low.cc (the_low_target): Remove the op field.
570 * linux-crisv32-low.cc (the_low_target): Ditto.
571 * linux-m32r-low.cc (the_low_target): Ditto.
572 * linux-m68k-low.cc (the_low_target): Ditto.
573 * linux-ppc-low.cc (the_low_target): Ditto.
574 * linux-s390-low.cc (the_low_target): Ditto.
575 * linux-sh-low.cc (the_low_target): Ditto.
576 * linux-tic6x-low.cc (the_low_target): Ditto.
577 * linux-tile-low.cc (the_low_target): Ditto.
578 * linux-xtensa-low.cc (the_low_target): Ditto.
579
fd000fb3
TBA
5802020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
581
582 Turn the 'new_process', 'delete_process', 'new_thread',
583 'delete_thread', and 'new_fork' linux target ops into methods
584 of linux_process_target.
585
586 * linux-low.h (struct linux_target_ops): Remove the ops.
587 (class linux_process_target) <add_linux_process>
588 <add_lwp>
589 <delete_lwp>
590 <attach_lwp>
591 <detach_one_lwp>
592 <check_zombie_leaders>
593 <filter_exit_event>
594 <low_new_process>
595 <low_delete_process>
596 <low_new_thread>
597 <low_delete_thread>
598 <low_new_fork>: Declare.
599 * linux-low.cc (delete_lwp): Turn into...
600 (linux_process_target::delete_lwp): ...this.
601 (linux_process_target::low_delete_thread): Define.
602 (linux_add_process): Turn into...
603 (linux_process_target::add_linux_process): ...this.
604 (linux_process_target::low_new_process): Define.
605 (linux_process_target::low_delete_process): Define.
606 (linux_process_target::low_new_fork): Define.
607 (add_lwp): Turn into...
608 (linux_process_target::add_lwp): ...this.
609 (linux_process_target::low_new_thread): Define.
610 (linux_attach_lwp): Turn into...
611 (linux_process_target::attach_lwp): ...this.
612 (linux_detach_one_lwp): Turn into...
613 (linux_process_target::detach_one_lwp): ...this.
614 (linux_detach_lwp_callback): Remove and inline...
615 (linux_process_target::detach): ...here.
616 (check_zombie_leaders): Turn into...
617 (linux_process_target::check_zombie_leaders): ...this.
618 (filter_exit_event): Turn into...
619 (linux_process_target::filter_exit_event): ...this.
620
621 Update the callers below.
622
623 (linux_process_target::handle_extended_wait)
624 (linux_process_target::create_inferior)
625 (attach_proc_task_lwp_callback)
626 (linux_process_target::attach)
627 (linux_process_target::detach)
628 (linux_process_target::mourn)
629 * thread-db.cc (attach_thread)
630
631 * linux-x86-low.cc (class x86_target) <low_new_process>
632 <low_delete_process>
633 <low_new_thread>
634 <low_delete_thread>
635 <low_new_fork>: Declare.
636 (x86_linux_new_process): Turn into...
637 (x86_target::low_new_process): ...this.
638 (x86_linux_delete_process): Turn into...
639 (x86_target::low_delete_process): ...this.
640 (x86_target::low_new_thread): Define.
641 (x86_target::low_delete_thread): Define.
642 (x86_linux_new_fork): Turn into...
643 (x86_target::low_new_fork): ...this.
644 (the_low_target): Remove the op fields.
645 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
646 <low_delete_process>
647 <low_new_thread>
648 <low_delete_thread>
649 <low_new_fork>: Declare.
650 (aarch64_linux_new_process): Turn into...
651 (aarch64_target::low_new_process): ...this.
652 (aarch64_linux_delete_process): Turn into...
653 (aarch64_target::low_delete_process): ...this.
654 (aarch64_target::low_new_thread): Define.
655 (aarch64_target::low_delete_thread): Define.
656 (aarch64_linux_new_fork): Turn into...
657 (aarch64_target::low_new_fork): ...this.
658 (the_low_target): Remove the op fields.
659 * linux-arm-low.cc (class arm_target) <low_new_process>
660 <low_delete_process>
661 <low_new_thread>
662 <low_delete_thread>
663 <low_new_fork>: Declare.
664 (arm_new_process): Turn into...
665 (arm_target::low_new_process): ...this.
666 (arm_delete_process): Turn into...
667 (arm_target::low_delete_process): ...this.
668 (arm_new_thread): Turn into...
669 (arm_target::low_new_thread): ...this.
670 (arm_delete_thread): Turn into...
671 (arm_target::low_delete_thread): ...this.
672 (arm_new_fork): Turn into...
673 (arm_target::low_new_fork): ...this.
674 (the_low_target): Remove the op fields.
675 * linux-mips-low.cc (class mips_target) <low_new_process>
676 <low_delete_process>
677 <low_new_thread>
678 <low_delete_thread>
679 <low_new_fork>: Declare.
680 (mips_linux_new_process): Turn into...
681 (mips_target::low_new_process): ...this.
682 (mips_linux_delete_process): Turn into...
683 (mips_target::low_delete_process): ...this.
684 (mips_linux_new_thread): Turn into...
685 (mips_target::low_new_thread): ...this.
686 (mips_linux_delete_thread): Turn into...
687 (mips_target::low_delete_thread): ...this.
688 (mips_linux_new_fork): Turn into...
689 (mips_target::low_new_fork): ...this.
690 (the_low_target): Remove the op fields.
691 * linux-bfin-low.cc (the_low_target): Remove the op fields.
692 * linux-crisv32-low.cc (the_low_target): Ditto.
693 * linux-m32r-low.cc (the_low_target): Ditto.
694 * linux-m68k-low.cc (the_low_target): Ditto.
695 * linux-ppc-low.cc (the_low_target): Ditto.
696 * linux-s390-low.cc (the_low_target): Ditto.
697 * linux-sh-low.cc (the_low_target): Ditto.
698 * linux-tic6x-low.cc (the_low_target): Ditto.
699 * linux-tile-low.cc (the_low_target): Ditto.
700 * linux-xtensa-low.cc (the_low_target): Ditto.
701
cb63de7c
TBA
7022020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
703
704 Turn the 'siginfo_fixup' linux target op into a method of
705 linux_process_target.
706
707 * linux-low.h (struct linux_target_ops): Remove the op.
708 (class linux_process_target) <siginfo_fixup>
709 <low_siginfo_fixup>: Declare.
710 * linux-low.cc (siginfo_fixup): Turn into...
711 (linux_process_target::siginfo_fixup): ...this.
712 (linux_process_target::low_siginfo_fixup): Define.
713 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
714 (x86_siginfo_fixup): Turn into...
715 (x86_target::low_siginfo_fixup): ...this.
716 (the_low_target): Remove the op field.
717 * linux-aarch64-low.cc (class aarch64_target):
718 <low_siginfo_fixup>: Declare.
719 (aarch64_linux_siginfo_fixup): Turn into...
720 (aarch64_target::low_siginfo_fixup): ...this.
721 (the_low_target): Remove the op field.
722 * linux-arm-low.cc (the_low_target): Remove the op field.
723 * linux-bfin-low.cc (the_low_target): Ditto.
724 * linux-crisv32-low.cc (the_low_target): Ditto.
725 * linux-m32r-low.cc (the_low_target): Ditto.
726 * linux-m68k-low.cc (the_low_target): Ditto.
727 * linux-mips-low.cc (the_low_target): Ditto.
728 * linux-ppc-low.cc (the_low_target): Ditto.
729 * linux-s390-low.cc (the_low_target): Ditto.
730 * linux-sh-low.cc (the_low_target): Ditto.
731 * linux-tic6x-low.cc (the_low_target): Ditto.
732 * linux-tile-low.cc (the_low_target): Ditto.
733 * linux-xtensa-low.cc (the_low_target): Ditto.
734
b35db733
TBA
7352020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
736
737 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
738 linux target ops into methods of linux_process_target.
739
740 * linux-low.h (struct linux_target_ops): Remove the ops.
741 (class linux_process_target) <low_collect_ptrace_register>
742 <low_store_ptrace_register>: Declare.
743 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
744 (linux_process_target::low_supply_ptrace_register): Define.
745
746 Update the callers below.
747
748 (linux_process_target::fetch_register)
749 (linux_process_target::store_register)
750
751 * linux-x86-low.cc (the_low_target): Remove the op fields.
752 * linux-aarch64-low.cc (the_low_target): Ditto.
753 * linux-arm-low.cc (the_low_target): Ditto.
754 * linux-bfin-low.cc (the_low_target): Ditto.
755 * linux-crisv32-low.cc (the_low_target): Ditto.
756 * linux-m32r-low.cc (the_low_target): Ditto.
757 * linux-m68k-low.cc (the_low_target): Ditto.
758 * linux-sh-low.cc (the_low_target): Ditto.
759 * linux-sparc-low.cc (the_low_target): Ditto.
760 * linux-tic6x-low.cc (the_low_target): Ditto.
761 * linux-tile-low.cc (the_low_target): Ditto.
762 * linux-xtensa-low.cc (the_low_target): Ditto.
763 * linux-mips-low.cc (class mips_target)
764 <low_collect_ptrace_register>
765 <low_supply_ptrace_register>: Declare.
766 (mips_collect_ptrace_register): Turn into ...
767 (mips_target::low_collect_ptrace_register): ...this.
768 (mips_supply_ptrace_register): Turn into...
769 (mips_target::low_supply_ptrace_register): ...this.
770 (the_low_target): Remove the op fields.
771 * linux-ppc-low.cc (class ppc_target)
772 <low_collect_ptrace_register>
773 <low_supply_ptrace_register>: Declare.
774 (ppc_collect_ptrace_register): Turn into ...
775 (ppc_target::low_collect_ptrace_register): ...this.
776 (ppc_supply_ptrace_register): Turn into ...
777 (ppc_target::low_supply_ptrace_register): ...this.
778 (ppc_fill_gregset): Update for the calls to
779 low_collect_ptrace_register.
780 (the_low_target): Remove the op fields.
781 * linux-s390-low.cc (class s390_target)
782 <low_collect_ptrace_register>
783 <low_supply_ptrace_register>: Declare.
784 (s390_collect_ptrace_register): Turn into ...
785 (s390_target::low_collect_ptrace_register): ...this.
786 (s390_supply_ptrace_register): Turn into ...
787 (s390_target::low_supply_ptrace_register): ...this.
788 (s390_fill_gregset): Update for the calls to
789 low_collect_ptrace_register.
790 (the_low_target): Remove the op fields.
791
ac1bbaca
TBA
7922020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
793
794 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
795 target ops into methods of linux_process_target.
796
797 * linux-low.h (struct linux_target_ops): Remove the ops.
798 (class linux_process_target) <check_stopped_by_watchpoint>
799 <low_stopped_by_watchpoint>
800 <low_stopped_data_address>: Declare.
801 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
802 (linux_process_target::check_stopped_by_watchpoint): ...this.
803 (linux_process_target::low_stopped_by_watchpoint): Define.
804 (linux_process_target::low_stopped_data_address): Define.
805 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
806 <low_stopped_data_address>: Declare.
807 (x86_stopped_by_watchpoint): Turn into...
808 (x86_target::low_stopped_by_watchpoint): ...this.
809 (x86_stopped_data_address): Turn into...
810 (x86_target::low_stopped_data_address): ...this.
811 (the_low_target): Remove the op fields.
812 * linux-aarch64-low.cc (class aarch64_target)
813 <low_stopped_by_watchpoint>
814 <low_stopped_data_address>: Declare.
815 (aarch64_stopped_by_watchpoint): Turn into...
816 (aarch64_target::low_stopped_by_watchpoint): ...this.
817 (aarch64_stopped_data_address): Turn into...
818 (aarch64_target::low_stopped_data_address): ...this.
819 (the_low_target): Remove the op fields.
820 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
821 <low_stopped_data_address>: Declare.
822 (arm_stopped_by_watchpoint): Turn into...
823 (arm_target::low_stopped_by_watchpoint): ...this.
824 (arm_stopped_data_address): Turn into...
825 (arm_target::low_stopped_data_address): ...this.
826 (the_low_target): Remove the op fields.
827 * linux-crisv32-low.cc (class crisv32_target)
828 <low_stopped_by_watchpoint>
829 <low_stopped_data_address>: Declare.
830 (cris_stopped_by_watchpoint): Turn into...
831 (crisv32_target::low_stopped_by_watchpoint): ...this.
832 (cris_stopped_data_address): Turn into...
833 (crisv32_target::low_stopped_data_address): ...this.
834 (the_low_target): Remove the op fields.
835 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
836 <low_stopped_data_address>: Declare.
837 (mips_stopped_by_watchpoint): Turn into...
838 (mips_target::low_stopped_by_watchpoint): ...this.
839 (mips_stopped_data_address): Turn into...
840 (mips_target::low_stopped_data_address): ...this.
841 (the_low_target): Remove the op fields.
842 * linux-bfin-low.cc (the_low_target): Remove the op fields.
843 * linux-m32r-low.cc (the_low_target): Ditto.
844 * linux-m68k-low.cc (the_low_target): Ditto.
845 * linux-ppc-low.cc (the_low_target): Ditto.
846 * linux-s390-low.cc (the_low_target): Ditto.
847 * linux-sh-low.cc (the_low_target): Ditto.
848 * linux-sparc-low.cc (the_low_target): Ditto.
849 * linux-tic6x-low.cc (the_low_target): Ditto.
850 * linux-tile-low.cc (the_low_target): Ditto.
851 * linux-xtensa-low.cc (the_low_target): Ditto.
852
9db9aa23
TBA
8532020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
854
855 Turn the 'insert_point' and 'remove_point' linux target ops into
856 methods of linux_process_target.
857
858 * linux-low.h (struct linux_target_ops): Remove the ops.
859 (class linux_process_target) <low_insert_point>
860 <low_remove_point>: Declare.
861 * linux-low.cc (linux_process_target::low_insert_point)
862 (linux_process_target::low_remove_point): Define.
863 (linux_process_target::insert_point)
864 (linux_process_target::remove_point): Update for calls to
865 low_insert_point and low_remove_point.
866 * linux-x86-low.cc (class x86_target) <low_insert_point>
867 <low_remove_point>: Declare.
868 (x86_insert_point): Turn into...
869 (x86_target::low_insert_point): ...this.
870 (x86_remove_point): Turn into...
871 (x86_target::low_remove_point): ...this.
872 (the_low_target): Remove the op fields.
873 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
874 <low_remove_point>: Declare.
875 (aarch64_insert_point): Turn into...
876 (aarch64_target::low_insert_point): ...this.
877 (aarch64_remove_point): Turn into...
878 (aarch64_target::low_remove_point): ...this.
879 (the_low_target): Remove the op fields.
880 * linux-arm-low.cc (class arm_target) <low_insert_point>
881 <low_remove_point>: Declare.
882 (arm_insert_point): Turn into...
883 (arm_target::low_insert_point): ...this.
884 (arm_remove_point): Turn into...
885 (arm_target::low_remove_point): ...this.
886 (the_low_target): Remove the op fields.
887 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
888 <low_remove_point>: Declare.
889 (crisv32_insert_point): Turn into...
890 (crisv32_target::low_insert_point): ...this.
891 (crisv32_remove_point): Turn into...
892 (crisv32_target::low_remove_point): ...this.
893 (the_low_target): Remove the op fields.
894 * linux-mips-low.cc (class mips_target) <low_insert_point>
895 <low_remove_point>: Declare.
896 (mips_insert_point): Turn into...
897 (mips_target::low_insert_point): ...this.
898 (mips_remove_point): Turn into...
899 (mips_target::low_remove_point): ...this.
900 (the_low_target): Remove the op fields.
901 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
902 <low_remove_point>: Declare.
903 (ppc_insert_point): Turn into...
904 (ppc_target::low_insert_point): ...this.
905 (ppc_remove_point): Turn into...
906 (ppc_target::low_remove_point): ...this.
907 (the_low_target): Remove the op fields.
908 * linux-bfin-low.cc (the_low_target): Remove the op fields.
909 * linux-m32r-low.cc (the_low_target): Ditto.
910 * linux-m68k-low.cc (the_low_target): Ditto.
911 * linux-s390-low.cc (the_low_target): Ditto.
912 * linux-sh-low.cc (the_low_target): Ditto.
913 * linux-sparc-low.cc (the_low_target): Ditto.
914 * linux-tic6x-low.cc (the_low_target): Ditto.
915 * linux-tile-low.cc (the_low_target): Ditto.
916 * linux-xtensa-low.cc (the_low_target): Ditto.
917
007c9b97
TBA
9182020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
919
920 Remove the 'supports_z_point_type' linux target op and let the
921 concrete linux target define it by overriding the op declared in
922 process_stratum_target.
923
924 * linux-low.cc (linux_process_target::supports_z_point_type):
925 Remove.
926 * linux-low.h (struct linux_target_ops): Remove the op.
927 (class linux_process_target) <supports_z_point_type>: Remove.
928 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
929 Declare.
930 (x86_supports_z_point_type): Turn into...
931 (x86_target::supports_z_point_type): ...this.
932 (the_low_target): Remove the op field.
933 * linux-aarch64-low.cc (class aarch64_target)
934 <supports_z_point_type>: Declare.
935 (aarch64_supports_z_point_type): Turn into...
936 (aarch64_target::supports_z_point_type): ...this.
937 (the_low_target): Remove the op field.
938 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
939 Declare.
940 (arm_supports_z_point_type): Turn into...
941 (arm_target::supports_z_point_type): ...this.
942 (the_low_target): Remove the op field.
943 * linux-crisv32-low.cc (class crisv32_target)
944 <supports_z_point_type>: Declare.
945 (cris_supports_z_point_type): Turn into...
946 (crisv32_target::supports_z_point_type): ...this.
947 (the_low_target): Remove the op field.
948 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
949 Declare.
950 (mips_supports_z_point_type): Turn into...
951 (mips_target::supports_z_point_type): ...this.
952 (the_low_target): Remove the op field.
953 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
954 Declare.
955 (ppc_supports_z_point_type): Turn into...
956 (ppc_target::supports_z_point_type): ...this.
957 (the_low_target): Remove the op field.
958 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
959 Declare.
960 (s390_supports_z_point_type): Turn into...
961 (s390_target::supports_z_point_type): ...this.
962 (the_low_target): Remove the op field.
963 * linux-bfin-low.cc (the_low_target): Remove the op field.
964 * linux-m32r-low.cc (the_low_target): Ditto.
965 * linux-m68k-low.cc (the_low_target): Ditto.
966 * linux-sh-low.cc (the_low_target): Ditto.
967 * linux-sparc-low.cc (the_low_target): Ditto.
968 * linux-tic6x-low.cc (the_low_target): Ditto.
969 * linux-tile-low.cc (the_low_target): Ditto.
970 * linux-xtensa-low.cc (the_low_target): Ditto.
971
d7146cda
TBA
9722020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
973
974 Turn the 'breakpoint_at' linux target op into a method of
975 linux_process_target.
976
977 * linux-low.h (struct linux_target_ops): Remove the op.
978 (class linux_process_target) <low_breakpoint_at>: Declare.
979
980 Update the callers below:
981
982 * linux-low.cc (linux_process_target::save_stop_reason)
983 (linux_process_target::thread_still_has_status_pending)
984 (linux_process_target::wait_1)
985
986 * linux-x86-low.cc (class x86_target)
987 <low_breakpoint_at>: Declare.
988 (x86_breakpoint_at): Turn into...
989 (x86_target::low_breakpoint_at): ...this.
990 (the_low_target): Remove the op field.
991 * linux-aarch64-low.cc (class aarch64_target)
992 <low_breakpoint_at>: Declare.
993 (aarch64_breakpoint_at): Turn into...
994 (aarch64_target::low_breakpoint_at): ...this.
995 (the_low_target): Remove the op field.
996 * linux-arm-low.cc (class arm_target)
997 <low_breakpoint_at>: Declare.
998 (arm_target::low_breakpoint_at): Define.
999 (the_low_target): Remove the op field.
1000 * linux-bfin-low.cc (class bfin_target)
1001 <low_breakpoint_at>: Declare.
1002 (bfin_breakpoint_at): Turn into...
1003 (bfin_target::low_breakpoint_at): ...this.
1004 (the_low_target): Remove the op field.
1005 * linux-cris-low.cc (class cris_target)
1006 <low_breakpoint_at>: Declare.
1007 (cris_breakpoint_at): Turn into...
1008 (cris_target::low_breakpoint_at): ...this.
1009 (the_low_target): Remove the op field.
1010 * linux-crisv32-low.cc (class crisv32_target)
1011 <low_breakpoint_at>: Declare.
1012 (crisv32_breakpoint_at): Turn into...
1013 (crisv32_target::low_breakpoint_at): ...this.
1014 (the_low_target): Remove the op field.
1015 * linux-ia64-low.cc (class ia64_target)
1016 <low_breakpoint_at>: Declare.
1017 (ia64_target::low_breakpoint_at): Define.
1018 * linux-m32r-low.cc (class m32r_target)
1019 <low_breakpoint_at>: Declare.
1020 (m32r_breakpoint_at): Turn into...
1021 (m32r_target::low_breakpoint_at): ...this.
1022 (the_low_target): Remove the op field.
1023 * linux-m68k-low.cc (class m68k_target)
1024 <low_breakpoint_at>: Declare.
1025 (m68k_breakpoint_at): Turn into...
1026 (m68k_target::low_breakpoint_at): ...this.
1027 (the_low_target): Remove the op field.
1028 * linux-mips-low.cc (class mips_target)
1029 <low_breakpoint_at>: Declare.
1030 (mips_breakpoint_at): Turn into...
1031 (mips_target::low_breakpoint_at): ...this.
1032 (the_low_target): Remove the op field.
1033 * linux-nios2-low.cc (class nios2_target)
1034 <low_breakpoint_at>: Declare.
1035 (nios2_breakpoint_at): Turn into...
1036 (nios2_target::low_breakpoint_at): ...this.
1037 (the_low_target): Remove the op field.
1038 * linux-ppc-low.cc (class ppc_target)
1039 <low_breakpoint_at>: Declare.
1040 (ppc_breakpoint_at): Turn into...
1041 (ppc_target::low_breakpoint_at): ...this.
1042 (the_low_target): Remove the op field.
1043 * linux-riscv-low.cc (class riscv_target)
1044 <low_breakpoint_at>: Declare.
1045 (riscv_breakpoint_at): Turn into...
1046 (riscv_target::low_breakpoint_at): ...this.
1047 (the_low_target): Remove the op field.
1048 * linux-s390-low.cc (class s390_target)
1049 <low_breakpoint_at>: Declare.
1050 (s390_breakpoint_at): Turn into...
1051 (s390_target::low_breakpoint_at): ...this.
1052 (the_low_target): Remove the op field.
1053 * linux-sh-low.cc (class sh_target)
1054 <low_breakpoint_at>: Declare.
1055 (sh_breakpoint_at): Turn into...
1056 (sh_target::low_breakpoint_at): ...this.
1057 (the_low_target): Remove the op field.
1058 * linux-sparc-low.cc (class sparc_target)
1059 <low_breakpoint_at>: Declare.
1060 (sparc_breakpoint_at): Turn into...
1061 (sparc_target::low_breakpoint_at): ...this.
1062 (the_low_target): Remove the op field.
1063 * linux-tic6x-low.cc (class tic6x_target)
1064 <low_breakpoint_at>: Declare.
1065 (tic6x_breakpoint_at): Turn into...
1066 (tic6x_target::low_breakpoint_at): ...this.
1067 (the_low_target): Remove the op field.
1068 * linux-tile-low.cc (class tile_target)
1069 <low_breakpoint_at>: Declare.
1070 (tile_breakpoint_at): Turn into...
1071 (tile_target::low_breakpoint_at): ...this.
1072 (the_low_target): Remove the op field.
1073 * linux-xtensa-low.cc (class xtensa_target)
1074 <low_breakpoint_at>: Declare.
1075 (xtensa_breakpoint_at): Turn into...
1076 (xtensa_target::low_breakpoint_at): ...this.
1077 (the_low_target): Remove the op field.
1078
d4807ea2
TBA
10792020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1080
1081 Turn the 'decr_pc_after_break' linux_target_ops field into
1082 a method of linux_process_target.
1083
1084 * linux-low.h (struct linux_target_ops)
1085 <decr_pc_after_break>: Remove.
1086 (class linux_process_target) <low_decr_pc_after_break>: New method
1087 declaration.
1088 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1089 New method implementation.
1090
1091 Update the users below.
1092
1093 (linux_process_target::save_stop_reason)
1094 (linux_process_target::wait_1)
1095 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1096 New declaration.
1097 (x86_target::low_decr_pc_after_break): New method implementation.
1098 (the_low_target): Remove the field.
1099 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1100 New declaration.
1101 (bfin_target::low_decr_pc_after_break): New method implementation.
1102 (the_low_target): Remove the field.
1103 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1104 New declaration.
1105 (m68k_target::low_decr_pc_after_break): New method implementation.
1106 (the_low_target): Remove the field.
1107 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1108 New declaration.
1109 (s390_target::low_decr_pc_after_break): New method implementation.
1110 (the_low_target): Remove the field.
1111 * linux-aarch64-low.cc (the_low_target): Remove the field.
1112 * linux-arm-low.cc (the_low_target): Remove the field.
1113 * linux-cris-low.cc (the_low_target): Remove the field.
1114 * linux-crisv32-low.cc (the_low_target): Remove the field.
1115 * linux-m32r-low.cc (the_low_target): Remove the field.
1116 * linux-mips-low.cc (the_low_target): Remove the field.
1117 * linux-nios2-low.cc (the_low_target): Remove the field.
1118 * linux-ppc-low.cc (the_low_target): Remove the field.
1119 * linux-riscv-low.cc (the_low_target): Remove the field.
1120 * linux-sh-low.cc (the_low_target): Remove the field.
1121 * linux-sparc-low.cc (the_low_target): Remove the field.
1122 * linux-tic6x-low.cc (the_low_target): Remove the field.
1123 * linux-tile-low.cc (the_low_target): Remove the field.
1124 * linux-xtensa-low.cc (the_low_target): Remove the field.
1125
7582c77c
TBA
11262020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1127
1128 Remove the 'supports_software_single_step' linux target op and let
1129 the concrete linux target define it by overriding the op in
1130 process_stratum_target.
1131 Turn the 'get_next_pcs' linux target op into a method of
1132 linux_process_target.
1133
1134 * linux-low.h (struct linux_target_ops): Remove the ops.
1135 (class linux_process_target) <supports_software_single_step>:
1136 Remove.
1137 <low_get_next_pcs>: Declare.
1138 * linux-low.cc (can_software_single_step): Remove.
1139 (linux_process_target::low_get_next_pcs): Define.
1140 (linux_process_target::supports_software_single_step): Remove.
1141
1142 Update the callers below.
1143
1144 (linux_process_target::handle_extended_wait)
1145 (linux_process_target::wait_1)
1146 (linux_process_target::install_software_single_step_breakpoints)
1147 (linux_process_target::single_step)
1148 (linux_process_target::thread_needs_step_over)
1149 (linux_process_target::proceed_one_lwp)
1150 (linux_process_target::supports_range_stepping)
1151
1152 * linux-x86-low.cc (the_low_target): Remove the op field.
1153 * linux-aarch64-low.cc (the_low_target): Ditto.
1154 * linux-bfin-low.cc (the_low_target): Ditto.
1155 * linux-cris-low.cc (the_low_target): Ditto.
1156 * linux-crisv32-low.cc (the_low_target): Ditto.
1157 * linux-m32r-low.cc (the_low_target): Ditto.
1158 * linux-m68k-low.cc (the_low_target): Ditto.
1159 * linux-mips-low.cc (the_low_target): Ditto.
1160 * linux-nios2-low.cc (the_low_target): Ditto.
1161 * linux-ppc-low.cc (the_low_target): Ditto.
1162 * linux-riscv-low.cc (the_low_target): Ditto.
1163 * linux-s390-low.cc (the_low_target): Ditto.
1164 * linux-sh-low.cc (the_low_target): Ditto.
1165 * linux-sparc-low.cc (the_low_target): Ditto.
1166 * linux-tic6x-low.cc (the_low_target): Ditto.
1167 * linux-tile-low.cc (the_low_target): Ditto.
1168 * linux-xtensa-low.cc (the_low_target): Ditto.
1169 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1170 <supports_software_single_step>: Declare.
1171 (arm_target::supports_software_single_step): Define.
1172 (arm_gdbserver_get_next_pcs): Turn into...
1173 (arm_target::low_get_next_pcs): ...this.
1174 (the_low_target): Remove the op field.
1175
3ca4edb6
TBA
11762020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1177
1178 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1179 the concrete linux target define it by overriding the op
1180 in process_stratum_target.
1181
1182 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1183 Remove.
1184 * linux-low.h (struct linux_target_ops): Remove the op.
1185 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1186 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1187 Declare.
1188 (x86_sw_breakpoint_from_kind): Turn into...
1189 (x86_target::sw_breakpoint_from_kind): ...this.
1190 (the_low_target): Remove the op field.
1191 * linux-aarch64-low.cc (class aarch64_target)
1192 <sw_breakpoint_from_kind>: Declare.
1193 (aarch64_sw_breakpoint_from_kind): Turn into...
1194 (aarch64_target::sw_breakpoint_from_kind): ...this.
1195 (the_low_target): Remove the op field.
1196 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1197 Declare.
1198 (arm_target::sw_breakpoint_from_kind): Define.
1199 (the_low_target): Remove the op field.
1200 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1201 Declare.
1202 (bfin_sw_breakpoint_from_kind): Turn into...
1203 (bfin_target::sw_breakpoint_from_kind): ...this.
1204 (the_low_target): Remove the op field.
1205 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1206 Declare.
1207 (cris_sw_breakpoint_from_kind): Turn into...
1208 (cris_target::sw_breakpoint_from_kind): ...this.
1209 (the_low_target): Remove the op field.
1210 * linux-crisv32-low.cc (class crisv32_target)
1211 <sw_breakpoint_from_kind>: Declare.
1212 (cris_sw_breakpoint_from_kind): Turn into...
1213 (crisv32_target::sw_breakpoint_from_kind): ...this.
1214 (the_low_target): Remove the op field.
1215 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1216 Declare.
1217 (ia64_target::sw_breakpoint_from_kind): Define.
1218 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1219 Declare.
1220 (m32r_sw_breakpoint_from_kind): Turn into...
1221 (m32r_target::sw_breakpoint_from_kind): ...this.
1222 (the_low_target): Remove the op field.
1223 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1224 Declare.
1225 (m68k_sw_breakpoint_from_kind): Turn into...
1226 (m68k_target::sw_breakpoint_from_kind): ...this.
1227 (the_low_target): Remove the op field.
1228 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1229 Declare.
1230 (mips_sw_breakpoint_from_kind): Turn into...
1231 (mips_target::sw_breakpoint_from_kind): ...this.
1232 (the_low_target): Remove the op field.
1233 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1234 Declare.
1235 (nios2_sw_breakpoint_from_kind): Turn into...
1236 (nios2_target::sw_breakpoint_from_kind): ...this.
1237 (the_low_target): Remove the op field.
1238 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1239 Declare.
1240 (ppc_sw_breakpoint_from_kind): Turn into...
1241 (ppc_target::sw_breakpoint_from_kind): ...this.
1242 (the_low_target): Remove the op field.
1243 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1244 Declare.
1245 (riscv_sw_breakpoint_from_kind): Turn into...
1246 (riscv_target::sw_breakpoint_from_kind): ...this.
1247 (the_low_target): Remove the op field.
1248 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1249 Declare.
1250 (s390_sw_breakpoint_from_kind): Turn into...
1251 (s390_target::sw_breakpoint_from_kind): ...this.
1252 (the_low_target): Remove the op field.
1253 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1254 Declare.
1255 (sh_sw_breakpoint_from_kind): Turn into...
1256 (sh_target::sw_breakpoint_from_kind): ...this.
1257 (the_low_target): Remove the op field.
1258 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1259 Declare.
1260 (sparc_sw_breakpoint_from_kind): Turn into...
1261 (sparc_target::sw_breakpoint_from_kind): ...this.
1262 (the_low_target): Remove the op field.
1263 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1264 Declare.
1265 (tic6x_sw_breakpoint_from_kind): Turn into...
1266 (tic6x_target::sw_breakpoint_from_kind): ...this.
1267 (the_low_target): Remove the op field.
1268 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1269 Declare.
1270 (tile_sw_breakpoint_from_kind): Turn into...
1271 (tile_target::sw_breakpoint_from_kind): ...this.
1272 (the_low_target): Remove the op field.
1273 * linux-xtensa-low.cc (class xtensa_target)
1274 <sw_breakpoint_from_kind>: Declare.
1275 (xtensa_sw_breakpoint_from_kind): Turn into...
1276 (xtensa_target::sw_breakpoint_from_kind): ...this.
1277 (the_low_target): Remove the op field.
1278
06250e4e
TBA
12792020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1280
1281 Remove the 'breakpoint_kind_from_pc' and
1282 'breakpoint_kind_from_current_state' linux target ops, and let the
1283 concrete linux target define them by overriding the ops of
1284 process_stratum_target.
1285
1286 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1287 Remove.
1288 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1289 * linux-low.h (struct linux_target_ops): Remove ops.
1290 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1291 <breakpoint_kind_from_current_state>: Remove.
1292 * linux-x86-low.cc (the_low_target): Remove the op fields.
1293 * linux-bfin-low.cc (the_low_target): Ditto.
1294 * linux-cris-low.cc (the_low_target): Ditto.
1295 * linux-crisv32-low.cc (the_low_target): Ditto.
1296 * linux-m32r-low.cc (the_low_target): Ditto.
1297 * linux-m68k-low.cc (the_low_target): Ditto.
1298 * linux-mips-low.cc (the_low_target): Ditto.
1299 * linux-nios2-low.cc (the_low_target): Ditto.
1300 * linux-ppc-low.cc (the_low_target): Ditto.
1301 * linux-s390-low.cc (the_low_target): Ditto.
1302 * linux-sh-low.cc (the_low_target): Ditto.
1303 * linux-sparc-low.cc (the_low_target): Ditto.
1304 * linux-tic6x-low.cc (the_low_target): Ditto.
1305 * linux-tile-low.cc (the_low_target): Ditto.
1306 * linux-xtensa-low.cc (the_low_target): Ditto.
1307 * linux-aarch64-low.cc (class aarch64_target)
1308 <breakpoint_kind_from_pc>
1309 <breakpoint_kind_from_current_state>: Declare.
1310 (aarch64_breakpoint_kind_from_pc): Turn into...
1311 (aarch64_target::breakpoint_kind_from_pc): ...this.
1312 (aarch64_breakpoint_kind_from_current_state): Turn into...
1313 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1314 (the_low_target): Remove the op fields.
1315 * linux-arm-low.cc (class arm_target):
1316 <breakpoint_kind_from_pc>
1317 <breakpoint_kind_from_current_state>: Declare.
1318 (arm_target::breakpoint_kind_from_pc): Define.
1319 (arm_target::breakpoint_kind_from_current_state): Define.
1320 (the_low_target): Remove the op fields.
1321 * linux-riscv-low.cc (class riscv_target):
1322 <breakpoint_kind_from_pc>: Declare.
1323 (riscv_breakpoint_kind_from_pc): Turn into...
1324 (riscv_target::breakpoint_kind_from_pc): ...this.
1325 (the_low_target): Remove the op fields.
1326
bf9ae9d8
TBA
13272020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1328
1329 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1330 of linux_process_target.
1331
1332 * linux-low.h (struct linux_target_ops): Remove the ops.
1333 (class linux_process_target) <low_supports_breakpoints>
1334 <low_get_pc>
1335 <low_set_pc>: Declare.
1336 * linux-low.cc (supports_breakpoints): Turn into...
1337 (linux_process_target::low_supports_breakpoints): ...this.
1338 (linux_process_target::low_get_pc): Define.
1339 (linux_process_target::low_set_pc): Define.
1340
1341 Update the callers below.
1342
1343 (linux_process_target::get_pc)
1344 (linux_process_target::save_stop_reason)
1345 (linux_process_target::maybe_move_out_of_jump_pad)
1346 (linux_process_target::wait_1)
1347 (linux_process_target::resume_one_lwp_throw)
1348 (linux_process_target::resume)
1349 (linux_process_target::proceed_all_lwps)
1350 (linux_process_target::read_pc)
1351 (linux_process_target::write_pc)
1352
1353 * linux-x86-low.cc (class linux_process_target)
1354 <low_supports_breakpoints>
1355 <low_get_pc>
1356 <low_set_pc>: Declare.
1357 (x86_target::low_supports_breakpoints): Define.
1358 (x86_get_pc): Turn into...
1359 (x86_target::low_get_pc): ...this.
1360 (x86_set_pc): Turn into...
1361 (x86_target::low_set_pc): ...this.
1362 (the_low_target): Remove the op fields.
1363 * linux-arm-low.cc (class arm_target)
1364 <low_supports_breakpoints>
1365 <low_get_pc>
1366 <low_set_pc>: Declare.
1367 (arm_target::low_supports_breakpoints)
1368 (arm_target::low_get_pc)
1369 (arm_target::low_set_pc): Define.
1370 (the_low_target): Remove the op fields.
1371 * linux-bfin-low.cc (class bfin_target)
1372 <low_supports_breakpoints>
1373 <low_get_pc>
1374 <low_set_pc>: Declare.
1375 (bfin_target::low_supports_breakpoints)
1376 (bfin_target::low_get_pc)
1377 (bfin_target::low_set_pc): Define.
1378 (the_low_target): Remove the op fields.
1379 * linux-cris-low.cc (class cris_target)
1380 <low_supports_breakpoints>
1381 <low_get_pc>
1382 <low_set_pc>: Declare.
1383 (cris_target::low_supports_breakpoints)
1384 (cris_target::low_get_pc)
1385 (cris_target::low_set_pc): Define.
1386 (the_low_target): Remove the op fields.
1387 * linux-crisv32-low.cc (class crisv32_target)
1388 <low_supports_breakpoints>
1389 <low_get_pc>
1390 <low_set_pc>: Declare.
1391 (crisv32_target::low_supports_breakpoints)
1392 (crisv32_target::low_get_pc)
1393 (crisv32_target::low_set_pc): Define.
1394 (the_low_target): Remove the op fields.
1395 * linux-m32r-low.cc (class m32r_target)
1396 <low_supports_breakpoints>
1397 <low_get_pc>
1398 <low_set_pc>: Declare.
1399 (m32r_target::low_supports_breakpoints)
1400 (m32r_target::low_get_pc)
1401 (m32r_target::low_set_pc): Define.
1402 (the_low_target): Remove the op fields.
1403 * linux-m68k-low.cc (class m68k_target)
1404 <low_supports_breakpoints>
1405 <low_get_pc>
1406 <low_set_pc>: Declare.
1407 (m68k_target::low_supports_breakpoints)
1408 (m68k_target::low_get_pc)
1409 (m68k_target::low_set_pc): Define.
1410 (the_low_target): Remove the op fields.
1411 * linux-nios2-low.cc (class nios2_target)
1412 <low_supports_breakpoints>
1413 <low_get_pc>
1414 <low_set_pc>: Declare.
1415 (nios2_target::low_supports_breakpoints)
1416 (nios2_target::low_get_pc)
1417 (nios2_target::low_set_pc): Define.
1418 (the_low_target): Remove the op fields.
1419 * linux-sh-low.cc (class sh_target)
1420 <low_supports_breakpoints>
1421 <low_get_pc>
1422 <low_set_pc>: Declare.
1423 (sh_target::low_supports_breakpoints)
1424 (sh_target::low_get_pc)
1425 (sh_target::low_set_pc): Define.
1426 (the_low_target): Remove the op fields.
1427 * linux-xtensa-low.cc (class xtensa_target)
1428 <low_supports_breakpoints>
1429 <low_get_pc>
1430 <low_set_pc>: Declare.
1431 (xtensa_target::low_supports_breakpoints)
1432 (xtensa_target::low_get_pc)
1433 (xtensa_target::low_set_pc): Define.
1434 (the_low_target): Remove the op fields.
1435 * linux-sparc-low.cc (class sparc_target)
1436 <low_supports_breakpoints>
1437 <low_get_pc>: Declare.
1438 (sparc_target::low_supports_breakpoints)
1439 (sparc_target::low_get_pc): Define.
1440 (the_low_target): Remove the op fields.
1441 * linux-tile-low.cc (class tile_target)
1442 <low_supports_breakpoints>
1443 <low_get_pc>
1444 <low_set_pc>: Declare.
1445 (tile_target::low_supports_breakpoints)
1446 (tile_target::low_get_pc)
1447 (tile_target::low_set_pc): Define.
1448 (the_low_target): Remove the op fields.
1449 * linux-aarch64-low.cc (class aarch64_target)
1450 <low_supports_breakpoints>
1451 <low_get_pc>
1452 <low_set_pc>: Declare.
1453 (aarch64_target::low_supports_breakpoints): Define.
1454 (aarch64_get_pc): Turn into...
1455 (aarch64_target::low_get_pc): ...this.
1456 (aarch64_set_pc): Turn into...
1457 (aarch64_target::low_set_pc): ...this.
1458 (the_low_target): Remove the op fields.
1459 * linux-mips-low.cc (class mips_target)
1460 <low_supports_breakpoints>
1461 <low_get_pc>
1462 <low_set_pc>: Declare.
1463 (mips_target::low_supports_breakpoints): Define.
1464 (mips_get_pc): Turn into...
1465 (mips_target::low_get_pc): ...this.
1466 (mips_set_pc): Turn into...
1467 (mips_target::low_set_pc): ...this.
1468 (the_low_target): Remove the op fields.
1469 * linux-ppc-low.cc (class ppc_target)
1470 <low_supports_breakpoints>
1471 <low_get_pc>
1472 <low_set_pc>: Declare.
1473 (ppc_target::low_supports_breakpoints): Define.
1474 (ppc_get_pc): Turn into...
1475 (ppc_target::low_get_pc): ...this.
1476 (ppc_set_pc): Turn into...
1477 (ppc_target::low_set_pc): ...this.
1478 (the_low_target): Remove the op fields.
1479 * linux-riscv-low.cc (class riscv_target)
1480 <low_supports_breakpoints>
1481 <low_get_pc>
1482 <low_set_pc>: Declare.
1483 (riscv_target::low_supports_breakpoints): Define.
1484 (riscv_get_pc): Turn into...
1485 (riscv_target::low_get_pc): ...this.
1486 (riscv_set_pc): Turn into...
1487 (riscv_target::low_set_pc): ...this.
1488 (the_low_target): Remove the op fields.
1489 * linux-s390-low.cc (class s390_target)
1490 <low_supports_breakpoints>
1491 <low_get_pc>
1492 <low_set_pc>: Declare.
1493 (s390_target::low_supports_breakpoints): Define.
1494 (s390_get_pc): Turn into...
1495 (s390_target::low_get_pc): ...this.
1496 (s390_set_pc): Turn into...
1497 (s390_target::low_set_pc): ...this.
1498 (the_low_target): Remove the op fields.
1499 * linux-tic6x-low.cc (class tic6x_target)
1500 <low_supports_breakpoints>
1501 <low_get_pc>
1502 <low_set_pc>: Declare.
1503 (tic6x_target::low_supports_breakpoints): Define.
1504 (tic6x_get_pc): Turn into...
1505 (tic6x_target::low_get_pc): ...this.
1506 (tic6x_set_pc): Turn into...
1507 (tic6x_target::low_set_pc): ...this.
1508 (the_low_target): Remove the op fields.
1509
df95181f
TBA
15102020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1511
1512 Turn some more static methods in linux-low into private methods
1513 of linux_process_target.
1514
1515 * linux-low.cc (get_pc): Turn into...
1516 (linux_process_target::get_pc): ...this.
1517 (save_stop_reason): Turn into...
1518 (linux_process_target::save_stop_reason): ...this.
1519 (thread_still_has_status_pending_p): Turn into...
1520 (linux_process_target::thread_still_has_status_pending): ...this.
1521 (status_pending_p_callback): Turn into...
1522 (linux_process_target::status_pending_p_callback): ...this.
1523 (resume_stopped_resumed_lwps): Turn into...
1524 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1525 (install_software_single_step_breakpoints): Turn into...
1526 (linux_process_target::install_software_single_step_breakpoints):
1527 ...this.
1528 (single_step): Turn into...
1529 (linux_process_target::single_step): ...this.
1530 (linux_resume_one_lwp_throw): Turn into...
1531 (linux_process_target::resume_one_lwp_throw): ...this.
1532 (linux_resume_one_lwp): Turn into...
1533 (linux_process_target::resume_one_lwp): ...this.
1534 (resume_status_pending_p): Turn into...
1535 (linux_process_target::resume_status_pending): ...this.
1536 (need_step_over_p): Turn into...
1537 (linux_process_target::thread_needs_step_over): ...this.
1538 (linux_resume_one_thread): Turn into...
1539 (linux_process_target::resume_one_thread): ...this.
1540 (proceed_one_lwp): Turn into...
1541 (linux_process_target::proceed_one_lwp): ...this.
1542 (unsuspend_and_proceed_one_lwp): Turn into...
1543 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1544
1545 Update the calls/references to the above functions below.
1546
1547 (linux_process_target::handle_extended_wait)
1548 (linux_process_target::filter_event)
1549 (linux_process_target::wait_for_event_filtered)
1550 (linux_process_target::wait_1)
1551 (linux_process_target::move_out_of_jump_pad)
1552 (linux_process_target::start_step_over)
1553 (linux_process_target::resume)
1554 (linux_process_target::proceed_all_lwps)
1555 (regsets_store_inferior_registers)
1556 (linux_process_target::store_register)
1557
1558 * linux-low.h (class linux_process_target)
1559 <get_pc>
1560 <save_stop_reason>
1561 <thread_still_has_status_pending>
1562 <status_pending_p_callback>
1563 <resume_stopped_resumed_lwps>
1564 <install_software_single_step_breakpoints>
1565 <single_step>
1566 <resume_one_lwp_throw>
1567 <resume_one_lwp>
1568 <resume_status_pending>
1569 <thread_needs_step_over>
1570 <resume_one_thread>
1571 <proceed_one_lwp>
1572 <unsuspend_and_proceed_one_lwp>: Declare.
1573
bd70b1f2
TBA
15742020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1575
1576 Turn the 'fetch_register' linux target op into a method of
1577 linux_process_target.
1578
1579 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1580 (class linux_process_target) <low_fetch_register>: Declare.
1581 * linux-x86-low.cc (the_low_target)
1582 * linux-aarch64-low.cc (the_low_target)
1583 * linux-arm-low.cc (the_low_target)
1584 * linux-bfin-low.cc (the_low_target)
1585 * linux-cris-low.cc (the_low_target)
1586 * linux-crisv32-low.cc (the_low_target)
1587 * linux-m32r-low.cc (the_low_target)
1588 * linux-m68k-low.cc (the_low_target)
1589 * linux-nios2-low.cc (the_low_target)
1590 * linux-ppc-low.cc (the_low_target)
1591 * linux-s390-low.cc (the_low_target)
1592 * linux-sh-low.cc (the_low_target)
1593 * linux-sparc-low.cc (the_low_target)
1594 * linux-tic6x-low.cc (the_low_target)
1595 * linux-tile-low.cc (the_low_target)
1596 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1597 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1598 Declare.
1599 (ia64_fetch_register): Turn into...
1600 (ia64_target::low_fetch_register): ...this.
1601 (the_low_target): Remove the op field.
1602 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1603 Declare.
1604 (mips_fetch_register): Turn into...
1605 (mips_target::low_fetch_register): ...this.
1606 (the_low_target): Remove the op field.
1607 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1608 Declare.
1609 (riscv_fetch_register): Turn into...
1610 (riscv_target::low_fetch_register): ...this.
1611 (the_low_target): Remove the op field.
1612
1613 Update the callers below.
1614
1615 * linux-low.cc (linux_process_target::fetch_registers)
1616 (linux_process_target::low_fetch_register)
1617
daca57a7
TBA
16182020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1619
1620 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1621 linux target ops into methods of linux_process_target.
1622
1623 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1624 (class linux_process_target) <fetch_register>
1625 <store_register>
1626 <usr_fetch_inferior_registers>
1627 <usr_store_inferior_registers>
1628 <low_cannot_fetch_register>
1629 <low_cannot_fetch_register> Declare.
1630 * linux-low.cc (fetch_register): Turn into...
1631 (linux_process_target::fetch_register): ...this.
1632 (store_register): Turn into ...
1633 (linux_process_target::store_register): ...this.
1634 (usr_fetch_inferior_registers): Turn into...
1635 (linux_process_target::usr_fetch_inferior_registers): ...this.
1636 (usr_store_inferior_registers): Turn into...
1637 (linux_process_target::usr_store_inferior_registers): ...this.
1638 * linux-x86-low.cc (class x86_target)
1639 <low_cannot_fetch_register>
1640 <low_cannot_store_register>: Declare.
1641 (x86_cannot_store_register): Turn into...
1642 (x86_target::low_cannot_store_register): ...this.
1643 (x86_cannot_fetch_register): Turn into...
1644 (x86_target::low_cannot_fetch_register): ...this.
1645 (the_low_target): Remove the target op fields.
1646 * linux-aarch64-low.cc (class aarch64_target)
1647 <low_cannot_fetch_register>
1648 <low_cannot_store_register>: Declare.
1649 (aarch64_target::low_cannot_fetch_register)
1650 (aarch64_target::low_cannot_store_register): Define.
1651 (the_low_target): Remove the op fields.
1652 * linux-arm-low.cc (class arm_target)
1653 <low_cannot_fetch_register>
1654 <low_cannot_store_register>: Declare.
1655 (arm_cannot_fetch_register): Turn into...
1656 (arm_target::low_cannot_fetch_register): ...this.
1657 (arm_cannot_store_register): Turn into...
1658 (arm_target::low_cannot_store_register): ...this.
1659 (the_low_target): Remove the op fields.
1660 * linux-bfin-low.cc (class bfin_target)
1661 <low_cannot_fetch_register>
1662 <low_cannot_store_register>: Declare.
1663 (bfin_cannot_fetch_register): Turn into...
1664 (bfin_target::low_cannot_fetch_register): ...this.
1665 (bfin_cannot_store_register): Turn into...
1666 (bfin_target::low_cannot_store_register): ...this.
1667 (the_low_target): Remove the op fields.
1668 * linux-cris-low.cc (class cris_target)
1669 <low_cannot_fetch_register>
1670 <low_cannot_store_register>: Declare.
1671 (cris_cannot_fetch_register): Turn into...
1672 (cris_target::low_cannot_fetch_register): ...this.
1673 (cris_cannot_store_register): Turn into...
1674 (cris_target::low_cannot_store_register): ...this.
1675 (the_low_target): Remove the op fields.
1676 * linux-crisv32-low.cc (class crisv32_target)
1677 <low_cannot_fetch_register>
1678 <low_cannot_store_register>: Declare.
1679 (crisv32_target::low_cannot_fetch_register)
1680 (crisv32_target::low_cannot_store_register): Define.
1681 (the_low_target): Remove the op fields.
1682 * linux-ia64-low.cc (class ia64_target)
1683 <low_cannot_fetch_register>
1684 <low_cannot_store_register>: Declare.
1685 (ia64_cannot_fetch_register): Turn into...
1686 (ia64_target::low_cannot_fetch_register): ...this.
1687 (ia64_cannot_store_register): Turn into...
1688 (ia64_target::low_cannot_store_register): ...this.
1689 (the_low_target): Remove the op fields.
1690 * linux-m32r-low.cc (class m32r_target)
1691 <low_cannot_fetch_register>
1692 <low_cannot_store_register>: Declare.
1693 (m32r_cannot_fetch_register): Turn into...
1694 (m32r_target::low_cannot_fetch_register): ...this.
1695 (m32r_cannot_store_register): Turn into...
1696 (m32r_target::low_cannot_store_register): ...this.
1697 (the_low_target): Remove the op fields.
1698 * linux-m68k-low.cc (class m68k_target)
1699 <low_cannot_fetch_register>
1700 <low_cannot_store_register>: Declare.
1701 (m68k_cannot_fetch_register): Turn into...
1702 (m68k_target::low_cannot_fetch_register): ...this.
1703 (m68k_cannot_store_register): Turn into...
1704 (m68k_target::low_cannot_store_register): ...this.
1705 (the_low_target): Remove the op fields.
1706 * linux-mips-low.cc (class mips_target)
1707 <low_cannot_fetch_register>
1708 <low_cannot_store_register>: Declare.
1709 (mips_cannot_fetch_register): Turn into...
1710 (mips_target::low_cannot_fetch_register): ...this.
1711 (mips_cannot_store_register): Turn into...
1712 (mips_target::low_cannot_store_register): ...this.
1713 (get_usrregs_info): Inline at the call sites in
1714 low_cannot_fetch_register and low_cannot_store_register,
1715 and remove.
1716 (the_low_target): Remove the op fields.
1717 * linux-nios2-low.cc (class nios2_target)
1718 <low_cannot_fetch_register>
1719 <low_cannot_store_register>: Declare.
1720 (nios2_cannot_fetch_register): Turn into...
1721 (nios2_target::low_cannot_fetch_register): ...this.
1722 (nios2_cannot_store_register): Turn into...
1723 (nios2_target::low_cannot_store_register): ...this.
1724 (the_low_target): Remove the op fields.
1725 * linux-ppc-low.cc (class ppc_target)
1726 <low_cannot_fetch_register>
1727 <low_cannot_store_register>: Declare.
1728 (ppc_cannot_fetch_register): Turn into...
1729 (ppc_target::low_cannot_fetch_register): ...this.
1730 (ppc_cannot_store_register): Turn into...
1731 (ppc_target::low_cannot_store_register): ...this.
1732 (the_low_target): Remove the op fields.
1733 * linux-riscv-low.cc (class riscv_target)
1734 <low_cannot_fetch_register>
1735 <low_cannot_store_register>: Declare.
1736 (riscv_target::low_cannot_fetch_register)
1737 (riscv_target::low_cannot_store_register): Define.
1738 (the_low_target): Remove the op fields.
1739 * linux-s390-low.cc (class s390_target)
1740 <low_cannot_fetch_register>
1741 <low_cannot_store_register>: Declare.
1742 (s390_cannot_fetch_register): Turn into...
1743 (s390_target::low_cannot_fetch_register): ...this.
1744 (s390_cannot_store_register): Turn into...
1745 (s390_target::low_cannot_store_register): ...this.
1746 (the_low_target): Remove the op fields.
1747 * linux-sh-low.cc (class sh_target)
1748 <low_cannot_fetch_register>
1749 <low_cannot_store_register>: Declare.
1750 (sh_cannot_fetch_register): Turn into...
1751 (sh_target::low_cannot_fetch_register): ...this.
1752 (sh_cannot_store_register): Turn into...
1753 (sh_target::low_cannot_store_register): ...this.
1754 (the_low_target): Remove the op fields.
1755 * linux-sparc-low.cc (class sparc_target)
1756 <low_cannot_fetch_register>
1757 <low_cannot_store_register>: Declare.
1758 (sparc_cannot_fetch_register): Turn into...
1759 (sparc_target::low_cannot_fetch_register): ...this.
1760 (sparc_cannot_store_register): Turn into...
1761 (sparc_target::low_cannot_store_register): ...this.
1762 (the_low_target): Remove the op fields.
1763 * linux-tic6x-low.cc (class tic6x_target)
1764 <low_cannot_fetch_register>
1765 <low_cannot_store_register>: Declare.
1766 (tic6x_cannot_fetch_register): Turn into...
1767 (tic6x_target::low_cannot_fetch_register): ...this.
1768 (tic6x_cannot_store_register): Turn into...
1769 (tic6x_target::low_cannot_store_register): ...this.
1770 (the_low_target): Remove the op fields.
1771 * linux-tile-low.cc (class tile_target)
1772 <low_cannot_fetch_register>
1773 <low_cannot_store_register>: Declare.
1774 (tile_cannot_fetch_register): Turn into...
1775 (tile_target::low_cannot_fetch_register): ...this.
1776 (tile_cannot_store_register): Turn into...
1777 (tile_target::low_cannot_store_register): ...this.
1778 (the_low_target): Remove the op fields.
1779 * linux-xtensa-low.cc (class xtensa_target)
1780 <low_cannot_fetch_register>
1781 <low_cannot_store_register>: Declare.
1782 (xtensa_target::low_cannot_fetch_register)
1783 (xtensa_target::low_cannot_store_register): Define.
1784 (the_low_target): Remove the op fields.
1785
aa8d21c9
TBA
17862020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1787
1788 Turn the 'regs_info' linux target op into a method of
1789 linux_process_target.
1790
1791 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1792 (class linux_process_target) <get_regs_info>: Define.
1793
1794 Update the callers below.
1795
1796 * linux-low.cc (linux_process_target::fetch_registers)
1797 (linux_process_target::store_registers)
1798 * proc-service.cc (gregset_info)
1799
1800 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1801 (x86_linux_regs_info): Turn into ...
1802 (x86_target::get_regs_info): ...this.
1803 (the_low_target): Remove the op field.
1804 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1805 Declare.
1806 (aarch64_regs_info): Turn into ...
1807 (aarch64_target::get_regs_info): ...this.
1808 (the_low_target): Remove the op field.
1809 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1810 (arm_regs_info): Turn into ...
1811 (arm_target::get_regs_info): ...this.
1812 (the_low_target): Remove the op field.
1813 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1814 (bfin_regs_info): Turn into ...
1815 (bfin_target::get_regs_info): ...this.
1816 (the_low_target): Remove the op field.
1817 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1818 (cris_regs_info): Turn into ...
1819 (cris_target::get_regs_info): ...this.
1820 (the_low_target): Remove the op field.
1821 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1822 Declare.
1823 (crisv32_regs_info): Turn into ...
1824 (crisv32_target::get_regs_info): ...this.
1825 (the_low_target): Remove the op field.
1826 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1827 (ia64_regs_info): Turn into ...
1828 (ia64_target::get_regs_info): ...this.
1829 (the_low_target): Remove the op field.
1830 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1831 (m32r_regs_info): Turn into ...
1832 (m32r_target::get_regs_info): ...this.
1833 (the_low_target): Remove the op field.
1834 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1835 (m68k_regs_info): Turn into ...
1836 (m68k_target::get_regs_info): ...this.
1837 (the_low_target): Remove the op field.
1838 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1839 (mips_regs_info): Turn into ...
1840 (mips_target::get_regs_info): ...this.
1841 (the_low_target): Remove the op field.
1842 (get_usrregs_info): Update the call to the op.
1843 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1844 (nios2_regs_info): Turn into ...
1845 (nios2_target::get_regs_info): ...this.
1846 (the_low_target): Remove the op field.
1847 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1848 (ppc_regs_info): Turn into ...
1849 (ppc_target::get_regs_info): ...this.
1850 (the_low_target): Remove the op field.
1851 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1852 (riscv_regs_info): Turn into ...
1853 (riscv_target::get_regs_info): ...this.
1854 (the_low_target): Remove the op field.
1855 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1856 (s390_regs_info): Turn into ...
1857 (s390_target::get_regs_info): ...this.
1858 (the_low_target): Remove the op field.
1859 (s390_collect_ptrace_register)
1860 (s390_supply_ptrace_register)
1861 (s390_fill_gregset): Update the call to the op.
1862 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1863 (sh_regs_info): Turn into ...
1864 (sh_target::get_regs_info): ...this.
1865 (the_low_target): Remove the op field.
1866 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1867 (sparc_regs_info): Turn into ...
1868 (sparc_target::get_regs_info): ...this.
1869 (the_low_target): Remove the op field.
1870 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1871 (tic6x_regs_info): Turn into ...
1872 (tic6x_target::get_regs_info): ...this.
1873 (the_low_target): Remove the op field.
1874 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1875 (tile_regs_info): Turn into ...
1876 (tile_target::get_regs_info): ...this.
1877 (the_low_target): Remove the op field.
1878 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1879 Declare.
1880 (xtensa_regs_info): Turn into ...
1881 (xtensa_target::get_regs_info): ...this.
1882 (the_low_target): Remove the op field.
1883
797bcff5
TBA
18842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1885
1886 Turn the 'arch_setup' linux target op into a method of
1887 linux_process_target.
1888
1889 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1890 (class linux_process_target) <arch_setup_thread>
1891 <low_arch_setup>: New declarations.
1892 * linux-low.cc (linux_arch_setup): Delete.
1893 (linux_arch_setup_thread): Turn into...
1894 (linux_process_target::arch_setup_thread): ... this.
1895
1896 Update the callers below.
1897
1898 (linux_process_target::handle_extended_wait)
1899 (linux_process_target::post_create_inferior)
1900 (linux_process_target::filter_event)
1901
1902 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1903 declaration.
1904 (x86_linux_update_xmltarget): Turn into...
1905 (x86_target::update_xmltarget): ...this.
1906 (x86_linux_process_qsupported): Update the call to
1907 x86_linux_update_xmltarget.
1908 (x86_arch_setup): Turn into ...
1909 (x86_target::low_arch_setup): ...this.
1910 (the_low_target): Remove the op field.
1911 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1912 declaration.
1913 (aarch64_arch_setup): Turn into ...
1914 (aarch64_target::low_arch_setup): ...this.
1915 (the_low_target): Remove the op field.
1916 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1917 declaration.
1918 (arm_arch_setup): Turn into ...
1919 (arm_target::low_arch_setup): ...this.
1920 (the_low_target): Remove the op field.
1921 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1922 declaration.
1923 (bfin_arch_setup): Turn into ...
1924 (bfin_target::low_arch_setup): ...this.
1925 (the_low_target): Remove the op field.
1926 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1927 declaration.
1928 (cris_arch_setup): Turn into ...
1929 (cris_target::low_arch_setup): ...this.
1930 (the_low_target): Remove the op field.
1931 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1932 declaration.
1933 (crisv32_arch_setup): Turn into ...
1934 (crisv32_target::low_arch_setup): ...this.
1935 (the_low_target): Remove the op field.
1936 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1937 declaration.
1938 (ia64_arch_setup): Turn into ...
1939 (ia64_target::low_arch_setup): ...this.
1940 (the_low_target): Remove the op field.
1941 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1942 declaration.
1943 (m32r_arch_setup): Turn into ...
1944 (m32r_target::low_arch_setup): ...this.
1945 (the_low_target): Remove the op field.
1946 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1947 declaration.
1948 (m68k_arch_setup): Turn into ...
1949 (m68k_target::low_arch_setup): ...this.
1950 (the_low_target): Remove the op field.
1951 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1952 declaration.
1953 (mips_arch_setup): Turn into ...
1954 (mips_target::low_arch_setup): ...this.
1955 (the_low_target): Remove the op field.
1956 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1957 declaration.
1958 (nios2_arch_setup): Turn into ...
1959 (nios2_target::low_arch_setup): ...this.
1960 (the_low_target): Remove the op field.
1961 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1962 declaration.
1963 (ppc_arch_setup): Turn into ...
1964 (ppc_target::low_arch_setup): ...this.
1965 (the_low_target): Remove the op field.
1966 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1967 declaration.
1968 (riscv_arch_setup): Turn into ...
1969 (riscv_target::low_arch_setup): ...this.
1970 (the_low_target): Remove the op field.
1971 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1972 declaration.
1973 (s390_arch_setup): Turn into ...
1974 (s390_target::low_arch_setup): ...this.
1975 (the_low_target): Remove the op field.
1976 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1977 declaration.
1978 (sh_arch_setup): Turn into ...
1979 (sh_target::low_arch_setup): ...this.
1980 (the_low_target): Remove the op field.
1981 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1982 declaration.
1983 (sparc_arch_setup): Turn into ...
1984 (sparc_target::low_arch_setup): ...this.
1985 (the_low_target): Remove the op field.
1986 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1987 declaration.
1988 (tic6x_arch_setup): Turn into ...
1989 (tic6x_target::low_arch_setup): ...this.
1990 (the_low_target): Remove the op field.
1991 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1992 declaration.
1993 (tile_arch_setup): Turn into ...
1994 (tile_target::low_arch_setup): ...this.
1995 (the_low_target): Remove the op field.
1996 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1997 declaration.
1998 (xtensa_arch_setup): Turn into ...
1999 (xtensa_target::low_arch_setup): ...this.
2000 (the_low_target): Remove the op field.
2001
ef0478f6
TBA
20022020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2003
2004 * linux-low.h (the_linux_target): New extern declaration.
2005 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2006 'the_target'.
2007 (the_linux_target): Remove.
2008 * linux-x86-low.cc (class x86_target): New class.
2009 (the_x86_target): New static object.
2010 (the_linux_target): Define as pointer to the_x86_target.
2011 * linux-aarch64-low.cc (class aarch64_target): New class.
2012 (the_aarch64_target): New static object.
2013 (the_linux_target): Define as pointer to the_aarch64_target.
2014 * linux-arm-low.cc (class arm_target): New class.
2015 (the_arm_target): New static object.
2016 (the_linux_target): Define as pointer to the_arm_target.
2017 * linux-bfin-low.cc (class bfin_target): New class.
2018 (the_bfin_target): New static object.
2019 (the_linux_target): Define as pointer to the_bfin_target.
2020 * linux-cris-low.cc (class cris_target): New class.
2021 (the_cris_target): New static object.
2022 (the_linux_target): Define as pointer to the_cris_target.
2023 * linux-crisv32-low.cc (class crisv32_target): New class.
2024 (the_crisv32_target): New static object.
2025 (the_linux_target): Define as pointer to the_crisv32_target.
2026 * linux-ia64-low.cc (class ia64_target): New class.
2027 (the_ia64_target): New static object.
2028 (the_linux_target): Define as pointer to the_ia64_target.
2029 * linux-m32r-low.cc (class m32r_target): New class.
2030 (the_m32r_target): New static object.
2031 (the_linux_target): Define as pointer to the_m32r_target.
2032 * linux-m68k-low.cc (class m68k_target): New class.
2033 (the_m68k_target): New static object.
2034 (the_linux_target): Define as pointer to the_m68k_target.
2035 * linux-mips-low.cc (class mips_target): New class.
2036 (the_mips_target): New static object.
2037 (the_linux_target): Define as pointer to the_mips_target.
2038 * linux-nios2-low.cc (class nios2_target): New class.
2039 (the_nios2_target): New static object.
2040 (the_linux_target): Define as pointer to the_nios2_target.
2041 * linux-ppc-low.cc (class ppc_target): New class.
2042 (the_ppc_target): New static object.
2043 (the_linux_target): Define as pointer to the_ppc_target.
2044 * linux-riscv-low.cc (class riscv_target): New class.
2045 (the_riscv_target): New static object.
2046 (the_linux_target): Define as pointer to the_riscv_target.
2047 * linux-s390-low.cc (class s390_target): New class.
2048 (the_s390_target): New static object.
2049 (the_linux_target): Define as pointer to the_s390_target.
2050 * linux-sh-low.cc (class sh_target): New class.
2051 (the_sh_target): New static object.
2052 (the_linux_target): Define as pointer to the_sh_target.
2053 * linux-sparc-low.cc (class sparc_target): New class.
2054 (the_sparc_target): New static object.
2055 (the_linux_target): Define as pointer to the_sparc_target.
2056 * linux-tic6x-low.cc (class tic6x_target): New class.
2057 (the_tic6x_target): New static object.
2058 (the_linux_target): Define as pointer to the_tic6x_target.
2059 * linux-tile-low.cc (class tile_target): New class.
2060 (the_tile_target): New static object.
2061 (the_linux_target): Define as pointer to the_tile_target.
2062 * linux-xtensa-low.cc (class xtensa_target): New class.
2063 (the_xtensa_target): New static object.
2064 (the_linux_target): Define as pointer to the_xtensa_target.
2065
d16f3f6c
TBA
20662020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2067
2068 Turn some static functions in linux-low.cc into private methods of
2069 linux_process_target.
2070
2071 * linux-low.cc (handle_extended_wait): Turn into ...
2072 (linux_process_target::handle_extended_wait): ...this. Call
2073 'mourn' on 'this' object instead of 'the_target'.
2074 (maybe_move_out_of_jump_pad): Turn into...
2075 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2076 (linux_low_filter_event): Turn into...
2077 (linux_process_target::filter_event): ...this.
2078 (linux_wait_for_event_filtered): Turn into...
2079 (linux_process_target::wait_for_event_filtered): ...this.
2080 (linux_wait_for_event): Turn into...
2081 (linux_process_target::wait_for_event): ...this.
2082 (linux_wait_1): Turn into...
2083 (linux_process_target::wait_1): ...this.
2084 (wait_for_sigstop): Turn into...
2085 (linux_process_target::wait_for_sigstop): ...this.
2086 (move_out_of_jump_pad_callback): Turn into...
2087 (linux_process_target::move_out_of_jump_pad): ...this.
2088 (stop_all_lwps): Turn into...
2089 (linux_process_target::stop_all_lwps): ...this.
2090 (start_step_over): Turn into...
2091 (linux_process_target::start_step_over): ...this.
2092 (complete_ongoing_step_over): Turn into...
2093 (linux_process_target::complete_ongoing_step_over): ...this.
2094 (proceed_all_lwps): Turn into...
2095 (linux_process_target::proceed_all_lwps): ...this.
2096 (unstop_all_lwps): Turn into...
2097 (linux_process_target::unstop_all_lwps): ...this.
2098
2099 * linux-low.h (class linux_process_target)
2100 <handle_extended_wait>
2101 <maybe_move_out_of_jump_pad>
2102 filter_event>
2103 <wait_for_event_filtered>
2104 <wait_for_event>
2105 <wait_1>
2106 <wait_for_sigstop>
2107 <move_out_of_jump_pad>
2108 <stop_all_lwps>
2109 <start_step_over>
2110 <complete_ongoing_step_over>
2111 <proceed_all_lwps>
2112 <unstop_all_lwps>: Declare.
2113
2114 Update the callers below.
2115
2116 * linux-low.cc (linux_process_target::attach): Update.
2117 (linux_process_target::stabilize_threads): Ditto.
2118 (linux_process_target::wait): Ditto.
2119
a5863204
TBA
21202020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2121
2122 * linux-low.h (struct linux_target_ops): Update the comment for
2123 'cannot_store_register' to return 0 or 1.
2124 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2125 of 2.
2126
c884cc46
SM
21272020-03-20 Simon Marchi <simon.marchi@efficios.com>
2128
2129 * config.in: Re-generate.
2130 * configure: Re-generate.
2131
5a82b8a1
KR
21322020-03-17 Kamil Rytarowski <n54@gmx.com>
2133
2134 * regcache.cc (find_register_by_number): Update.
2135 * tdesc.cc (init_target_desc): Likewise.
2136 * tdesc.h (target_desc::reg_defs): Likewise.
2137
4635ff97
TT
21382020-03-12 Tom Tromey <tom@tromey.com>
2139
2140 * configure: Rebuild.
2141 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2142 (WIN32APILIBS): New subst.
2143 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2144 gdbsupport files.
2145 (gdbsupport/%.o): Remove target.
2146 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2147 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2148 (WIN32APILIBS): New variable.
2149 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2150 (gdbreplay$(EXEEXT)): Likewise.
2151
9a665d62
TT
21522020-03-12 Tom Tromey <tom@tromey.com>
2153
2154 * config.in, configure: Rebuild.
2155 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2156 * acinclude.m4: Include gettext-sister.m4.
2157 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2158 variables.
2159 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2160 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2161
272cd5a3
SM
21622020-03-12 Simon Marchi <simon.marchi@efficios.com>
2163
2164 * acinclude.m4: Update path to selftest.m4.
2165
db6878ac
SM
21662020-03-12 Simon Marchi <simon.marchi@efficios.com>
2167
2168 * configure.ac: Don't source bfd/development.sh, move
2169 GDB_AC_COMMON higher.
2170 * configure: Re-generate.
2171
4d696a5c
SM
21722020-03-12 Simon Marchi <simon.marchi@efficios.com>
2173
2174 * configure: Re-generate.
2175
a0761e34
SM
21762020-03-11 Simon Marchi <simon.marchi@efficios.com>
2177
2178 * configure: Re-generate.
2179
20ea4a60
AB
21802020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2181
2182 * .dir-locals.el: New file.
2183
842806cb
TBA
21842020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2185
2186 * .gitattributes: New file.
2187
442131c1
AB
21882020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2189
2190 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2191 reply into an S reply.
2192 * server.cc (disable_packet_T): New global.
2193 (captured_main): Set new global when appropriate.
2194 * server.h (disable_packet_T): Declare.
2195
dda42c0b
TT
21962020-02-21 Tom Tromey <tom@tromey.com>
2197
2198 * Makefile.in (mostlyclean): New target.
2199
52405d85
TBA
22002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2201
2202 * target.h (struct process_stratum_target): Remove.
2203 (class process_target): Rename to ...
2204 (class process_stratum_target): ... this.
2205 * linux-low.h (class linux_process_target): Derive from
2206 'process_stratum_target'.
2207 * linux-low.cc (linux_target_ops): Remove.
2208 (initialize_low): Set the_target to the singleton instance of
2209 linux_process_target.
2210 * lynx-low.h (class lynx_process_target): Derive from
2211 'process_stratum_target'.
2212 * lynx-low.cc (lynx_target_ops): Remove.
2213 (initialize_low): Set the_target to the singleton instance of
2214 lynx_process_target.
2215 * nto-low.h (class nto_process_target): Derive from
2216 'process_stratum_target'.
2217 * nto-low.cc (nto_target_ops): Remove.
2218 (initialize_low): Set the_target to the singleton instance of
2219 nto_process_target.
2220 * win32-low.h (class win32_process_target): Derive from
2221 'process_stratum_target'.
2222 * win32-low.cc (win32_target_ops): Remove.
2223 (initialize_low): Set the_target to the singleton instance of
2224 win32_process_target.
2225
2226 Replace 'the_target->pt' with 'the_target' in the uses below.
2227
2228 * hostio.cc (hostio_error)
2229 (handle_setfs)
2230 (handle_open)
2231 (handle_unlink)
2232 (handle_readlink)
2233 * linux-aarch32-low.cc (arm_breakpoint_at)
2234 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2235 * linux-arm-low.cc (arm_sigreturn_next_pc)
2236 (arm_get_hwcap)
2237 (arm_get_syscall_trapinfo)
2238 * linux-cris-low.cc (cris_breakpoint_at)
2239 * linux-crisv32-low.cc (cris_breakpoint_at)
2240 * linux-low.cc (handle_extended_wait)
2241 (linux_wait_1)
2242 (linux_read_memory)
2243 (linux_process_target::breakpoint_kind_from_pc)
2244 (linux_get_auxv)
2245 * linux-m32r-low.cc (m32r_breakpoint_at)
2246 * linux-mips-low.cc (mips_breakpoint_at)
2247 * linux-nios2-low.cc (nios2_breakpoint_at)
2248 * linux-ppc-low.cc (ppc_breakpoint_at)
2249 * linux-s390-low.cc (s390_get_hwcap)
2250 * linux-sh-low.cc (sh_breakpoint_at)
2251 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2252 (sparc_store_gregset_from_stack)
2253 (sparc_breakpoint_at)
2254 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2255 * linux-tile-low.cc (tile_breakpoint_at)
2256 * linux-x86-low.cc (x86_breakpoint_at)
2257 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2258 * mem-break.cc (bp_size)
2259 (bp_opcode)
2260 (insert_memory_breakpoint)
2261 (set_raw_breakpoint_at)
2262 (delete_raw_breakpoint)
2263 (z_type_supported)
2264 (uninsert_raw_breakpoint)
2265 (reinsert_raw_breakpoint)
2266 (validate_inserted_breakpoint)
2267 * regcache.cc (regcache_read_pc)
2268 (regcache_write_pc)
2269 * remote-utils.cc (putpkt_binary_1)
2270 (input_interrupt)
2271 (getpkt)
2272 (prepare_resume_reply)
2273 * server.cc (handle_general_set)
2274 (handle_detach)
2275 (handle_qxfer_auxv)
2276 (handle_qxfer_exec_file)
2277 (handle_qxfer_libraries_svr4)
2278 (handle_qxfer_osdata)
2279 (handle_qxfer_siginfo)
2280 (handle_qxfer_fdpic)
2281 (handle_query)
2282 (resume)
2283 (handle_v_requests)
2284 (queue_stop_reply_callback)
2285 (captured_main)
2286 * target.cc (prepare_to_access_memory)
2287 (done_accessing_memory)
2288 (read_inferior_memory)
2289 (target_write_memory)
2290 (target_stop_and_wait)
2291 (target_wait)
2292 (target_mourn_inferior)
2293 (target_continue_no_signal)
2294 (target_continue)
2295 (target_supports_multi_process)
2296 (kill_inferior)
2297 * target.h
2298 (target_create_inferior)
2299 (target_post_create_inferior)
2300 (myattach)
2301 (target_supports_fork_events)
2302 (target_supports_vfork_events)
2303 (target_supports_exec_events)
2304 (target_handle_new_gdb_connection)
2305 (detach_inferior)
2306 (mythread_alive)
2307 (fetch_inferior_registers)
2308 (store_inferior_registers)
2309 (join_inferior)
2310 (target_supports_non_stop)
2311 (target_async)
2312 (target_process_qsupported)
2313 (target_supports_catch_syscall)
2314 (target_get_ipa_tdesc_idx)
2315 (target_supports_tracepoints)
2316 (target_supports_fast_tracepoints)
2317 (target_get_min_fast_tracepoint_insn_len)
2318 (target_thread_stopped)
2319 (target_pause_all)
2320 (target_unpause_all)
2321 (target_stabilize_threads)
2322 (target_install_fast_tracepoint_jump_pad)
2323 (target_emit_ops)
2324 (target_supports_disable_randomization)
2325 (target_supports_agent)
2326 (target_enable_btrace)
2327 (target_disable_btrace)
2328 (target_read_btrace)
2329 (target_read_btrace_conf)
2330 (target_supports_range_stepping)
2331 (target_supports_stopped_by_sw_breakpoint)
2332 (target_stopped_by_sw_breakpoint)
2333 (target_supports_stopped_by_hw_breakpoint)
2334 (target_supports_hardware_single_step)
2335 (target_stopped_by_hw_breakpoint)
2336 (target_breakpoint_kind_from_pc)
2337 (target_breakpoint_kind_from_current_state)
2338 (target_supports_software_single_step)
2339 (target_core_of_thread)
2340 (target_thread_name)
2341 (target_thread_handle)
2342 * win32-low.cc (do_initial_child_stuff)
2343
2344 Rename target op default definitions listed below.
2345
2346 * target.cc (process_target::post_create_inferior): Rename as ...
2347 (process_stratum_target::post_create_inferior): ... this.
2348 (process_target::prepare_to_access_memory): Rename as ...
2349 (process_stratum_target::prepare_to_access_memory): ... this.
2350 (process_target::done_accessing_memory): Rename as ...
2351 (process_stratum_target::done_accessing_memory): ... this.
2352 (process_target::look_up_symbols): Rename as ...
2353 (process_stratum_target::look_up_symbols): ... this.
2354 (process_target::supports_read_auxv): Rename as ...
2355 (process_stratum_target::supports_read_auxv): ... this.
2356 (process_target::read_auxv): Rename as ...
2357 (process_stratum_target::read_auxv): ... this.
2358 (process_target::supports_z_point_type): Rename as ...
2359 (process_stratum_target::supports_z_point_type): ... this.
2360 (process_target::insert_point): Rename as ...
2361 (process_stratum_target::insert_point): ... this.
2362 (process_target::remove_point): Rename as ...
2363 (process_stratum_target::remove_point): ... this.
2364 (process_target::stopped_by_sw_breakpoint): Rename as ...
2365 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2366 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2367 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2368 (process_target::stopped_by_hw_breakpoint): Rename as ...
2369 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2370 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2371 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2372 (process_target::supports_hardware_single_step): Rename as ...
2373 (process_stratum_target::supports_hardware_single_step): ... this.
2374 (process_target::stopped_by_watchpoint): Rename as ...
2375 (process_stratum_target::stopped_by_watchpoint): ... this.
2376 (process_target::stopped_data_address): Rename as ...
2377 (process_stratum_target::stopped_data_address): ... this.
2378 (process_target::supports_read_offsets): Rename as ...
2379 (process_stratum_target::supports_read_offsets): ... this.
2380 (process_target::read_offsets): Rename as ...
2381 (process_stratum_target::read_offsets): ... this.
2382 (process_target::supports_get_tls_address): Rename as ...
2383 (process_stratum_target::supports_get_tls_address): ... this.
2384 (process_target::get_tls_address): Rename as ...
2385 (process_stratum_target::get_tls_address): ... this.
2386 (process_target::hostio_last_error): Rename as ...
2387 (process_stratum_target::hostio_last_error): ... this.
2388 (process_target::supports_qxfer_osdata): Rename as ...
2389 (process_stratum_target::supports_qxfer_osdata): ... this.
2390 (process_target::qxfer_osdata): Rename as ...
2391 (process_stratum_target::qxfer_osdata): ... this.
2392 (process_target::supports_qxfer_siginfo): Rename as ...
2393 (process_stratum_target::supports_qxfer_siginfo): ... this.
2394 (process_target::qxfer_siginfo): Rename as ...
2395 (process_stratum_target::qxfer_siginfo): ... this.
2396 (process_target::supports_non_stop): Rename as ...
2397 (process_stratum_target::supports_non_stop): ... this.
2398 (process_target::async): Rename as ...
2399 (process_stratum_target::async): ... this.
2400 (process_target::start_non_stop): Rename as ...
2401 (process_stratum_target::start_non_stop): ... this.
2402 (process_target::supports_multi_process): Rename as ...
2403 (process_stratum_target::supports_multi_process): ... this.
2404 (process_target::supports_fork_events): Rename as ...
2405 (process_stratum_target::supports_fork_events): ... this.
2406 (process_target::supports_vfork_events): Rename as ...
2407 (process_stratum_target::supports_vfork_events): ... this.
2408 (process_target::supports_exec_events): Rename as ...
2409 (process_stratum_target::supports_exec_events): ... this.
2410 (process_target::handle_new_gdb_connection): Rename as ...
2411 (process_stratum_target::handle_new_gdb_connection): ... this.
2412 (process_target::handle_monitor_command): Rename as ...
2413 (process_stratum_target::handle_monitor_command): ... this.
2414 (process_target::core_of_thread): Rename as ...
2415 (process_stratum_target::core_of_thread): ... this.
2416 (process_target::supports_read_loadmap): Rename as ...
2417 (process_stratum_target::supports_read_loadmap): ... this.
2418 (process_target::read_loadmap): Rename as ...
2419 (process_stratum_target::read_loadmap): ... this.
2420 (process_target::process_qsupported): Rename as ...
2421 (process_stratum_target::process_qsupported): ... this.
2422 (process_target::supports_tracepoints): Rename as ...
2423 (process_stratum_target::supports_tracepoints): ... this.
2424 (process_target::read_pc): Rename as ...
2425 (process_stratum_target::read_pc): ... this.
2426 (process_target::write_pc): Rename as ...
2427 (process_stratum_target::write_pc): ... this.
2428 (process_target::supports_thread_stopped): Rename as ...
2429 (process_stratum_target::supports_thread_stopped): ... this.
2430 (process_target::thread_stopped): Rename as ...
2431 (process_stratum_target::thread_stopped): ... this.
2432 (process_target::supports_get_tib_address): Rename as ...
2433 (process_stratum_target::supports_get_tib_address): ... this.
2434 (process_target::get_tib_address): Rename as ...
2435 (process_stratum_target::get_tib_address): ... this.
2436 (process_target::pause_all): Rename as ...
2437 (process_stratum_target::pause_all): ... this.
2438 (process_target::unpause_all): Rename as ...
2439 (process_stratum_target::unpause_all): ... this.
2440 (process_target::stabilize_threads): Rename as ...
2441 (process_stratum_target::stabilize_threads): ... this.
2442 (process_target::supports_fast_tracepoints): Rename as ...
2443 (process_stratum_target::supports_fast_tracepoints): ... this.
2444 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2445 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2446 (process_target::emit_ops): Rename as ...
2447 (process_stratum_target::emit_ops): ... this.
2448 (process_target::supports_disable_randomization): Rename as ...
2449 (process_stratum_target::supports_disable_randomization): ... this.
2450 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2451 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2452 (process_target::qxfer_libraries_svr4): Rename as ...
2453 (process_stratum_target::qxfer_libraries_svr4): ... this.
2454 (process_target::supports_agent): Rename as ...
2455 (process_stratum_target::supports_agent): ... this.
2456 (process_target::enable_btrace): Rename as ...
2457 (process_stratum_target::enable_btrace): ... this.
2458 (process_target::disable_btrace): Rename as ...
2459 (process_stratum_target::disable_btrace): ... this.
2460 (process_target::read_btrace): Rename as ...
2461 (process_stratum_target::read_btrace): ... this.
2462 (process_target::read_btrace_conf): Rename as ...
2463 (process_stratum_target::read_btrace_conf): ... this.
2464 (process_target::supports_range_stepping): Rename as ...
2465 (process_stratum_target::supports_range_stepping): ... this.
2466 (process_target::supports_pid_to_exec_file): Rename as ...
2467 (process_stratum_target::supports_pid_to_exec_file): ... this.
2468 (process_target::pid_to_exec_file): Rename as ...
2469 (process_stratum_target::pid_to_exec_file): ... this.
2470 (process_target::supports_multifs): Rename as ...
2471 (process_stratum_target::supports_multifs): ... this.
2472 (process_target::multifs_open): Rename as ...
2473 (process_stratum_target::multifs_open): ... this.
2474 (process_target::multifs_unlink): Rename as ...
2475 (process_stratum_target::multifs_unlink): ... this.
2476 (process_target::multifs_readlink): Rename as ...
2477 (process_stratum_target::multifs_readlink): ... this.
2478 (process_target::breakpoint_kind_from_pc): Rename as ...
2479 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2480 (process_target::breakpoint_kind_from_current_state): Rename as ...
2481 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2482 (process_target::thread_name): Rename as ...
2483 (process_stratum_target::thread_name): ... this.
2484 (process_target::thread_handle): Rename as ...
2485 (process_stratum_target::thread_handle): ... this.
2486 (process_target::supports_software_single_step): Rename as ...
2487 (process_stratum_target::supports_software_single_step): ... this.
2488 (process_target::supports_catch_syscall): Rename as ...
2489 (process_stratum_target::supports_catch_syscall): ... this.
2490 (process_target::get_ipa_tdesc_idx): Rename as ...
2491 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2492
478f9adf
PA
24932020-02-20 Pedro Alves <palves@redhat.com>
2494
2495 * target.cc (set_target_ops): Simply copy the given target pointer
2496 instead of creating a copy of the pointed object.
2497
d633e831
TBA
24982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2499
2500 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2501 of process_target.
2502
2503 * target.h (struct process_stratum_target): Remove the target op.
2504 (class process_target): Add the target op.
2505 (target_get_ipa_tdesc_idx): Update the macro.
2506 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2507
2508 Update the derived classes and callers below.
2509
2510 * linux-low.cc (linux_target_ops): Update.
2511 (linux_get_ipa_tdesc_idx): Turn into ...
2512 (linux_process_target::get_ipa_tdesc_idx): ... this.
2513 * linux-low.h (class linux_process_target): Update.
2514 * lynx-low.cc (lynx_target_ops): Update.
2515 * nto-low.cc (nto_target_ops): Update.
2516 * win32-low.cc (win32_target_ops): Update.
2517
bc8d3ae4
TBA
25182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2519
2520 Turn process_stratum_target's supports_catch_syscall op into a
2521 method of process_target.
2522
2523 * target.h (struct process_stratum_target): Remove the target op.
2524 (class process_target): Add the target op.
2525 (target_supports_catch_syscall): Update the macro.
2526 * target.cc (process_target::supports_catch_syscall): Define.
2527
2528 Update the derived classes and callers below.
2529
2530 * linux-low.cc (linux_target_ops): Update.
2531 (linux_supports_catch_syscall): Turn into ...
2532 (linux_process_target::supports_catch_syscall): ... this.
2533 * linux-low.h (class linux_process_target): Update.
2534 * lynx-low.cc (lynx_target_ops): Update.
2535 * nto-low.cc (nto_target_ops): Update.
2536 * win32-low.cc (win32_target_ops): Update.
2537
5303a34f
TBA
25382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2539
2540 Turn process_stratum_target's supports_software_single_step op
2541 into a method of process_target.
2542
2543 * target.h (struct process_stratum_target): Remove the target op.
2544 (class process_target): Add the target op.
2545 (target_supports_software_single_step): Update the macro.
2546 * target.cc (process_target::supports_software_single_step): Define.
2547
2548 Update the derived classes and callers below.
2549
2550 * linux-low.cc (linux_target_ops): Update.
2551 (linux_supports_software_single_step): Turn into ...
2552 (linux_process_target::supports_software_single_step): ... this.
2553 * linux-low.h (class linux_process_target): Update.
2554 * lynx-low.cc (lynx_target_ops): Update.
2555 * nto-low.cc (nto_target_ops): Update.
2556 * win32-low.cc (win32_target_ops): Update.
2557
7f63b89b
TBA
25582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2559
2560 Turn process_stratum_target's thread_name and thread_handle ops
2561 into methods of process_target.
2562
2563 * target.h (struct process_stratum_target): Remove the target ops.
2564 (class process_target): Add the target ops.
2565 (target_thread_name): Update the macro.
2566 (target_thread_handle): Update the macro.
2567 * target.cc (process_target::thread_name): Define.
2568 (process_target::thread_handle): Define.
2569
2570 Update the derived classes and callers below.
2571
2572 * linux-low.cc (linux_target_ops): Update.
2573 (linux_process_target::thread_name): Define.
2574 (linux_process_target::thread_handle): Define.
2575 * linux-low.h (class linux_process_target): Update.
2576 * lynx-low.cc (lynx_target_ops): Update.
2577 * nto-low.cc (nto_target_ops): Update.
2578 * win32-low.cc (win32_target_ops): Update.
2579
d367006f
TBA
25802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2581
2582 Turn process_stratum_target's breakpoint_kind_from_pc,
2583 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2584 ops into methods of process_target.
2585
2586 * target.h (struct process_stratum_target): Remove the target op.
2587 (class process_target): Add the target op.
2588 (target_breakpoint_kind_from_pc): Update the macro.
2589 (target_breakpoint_kind_from_current_state): Update the macro.
2590 (default_breakpoint_kind_from_pc): Remove declaration.
2591 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2592 (process_target::breakpoint_kind_from_pc): ... this.
2593 (process_target::breakpoint_kind_from_current_state): Define.
2594
2595 Update the derived classes and callers below.
2596
2597 * mem-break.cc (bp_size): Update.
2598 (bp_opcode): Update.
2599 * linux-low.cc (linux_target_ops): Update.
2600 (linux_wait_1): Update.
2601 (linux_breakpoint_kind_from_pc): Turn into ...
2602 (linux_process_target::breakpoint_kind_from_pc): ... this.
2603 (linux_sw_breakpoint_from_kind): Turn into ...
2604 (linux_process_target::sw_breakpoint_from_kind): ... this.
2605 (linux_breakpoint_kind_from_current_state): Turn into ...
2606 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2607 * linux-low.h (class linux_process_target): Update.
2608 * lynx-low.cc (lynx_target_ops): Update.
2609 (lynx_process_target::sw_breakpoint_from_kind): Define.
2610 * lynx-low.h (class lynx_process_target): Update.
2611 * nto-low.cc (nto_target_ops): Update.
2612 (nto_sw_breakpoint_from_kind): Turn into ...
2613 (nto_process_target::sw_breakpoint_from_kind): ... this.
2614 * nto-low.h (class nto_process_target): Update.
2615 * win32-low.cc (win32_target_ops): Update.
2616 (win32_sw_breakpoint_from_kind): Turn into ...
2617 (win32_process_target::sw_breakpoint_from_kind): ... this.
2618 * win32-low.h (class win32_process_target): Update.
2619
c9b7b804
TBA
26202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2621
2622 Turn process_stratum_target's multifs_open, multifs_readlink,
2623 multifs_unlink ops into methods of process_target.
2624
2625 * target.h (struct process_stratum_target): Remove the target ops.
2626 (class process_target): Add the target ops. Also add
2627 'supports_multifs'.
2628 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2629 "sys/stat.h".
2630 (process_target::supports_multifs): Define.
2631 (process_target::multifs_open): Define.
2632 (process_target::multifs_readlink): Define.
2633 (process_target::multifs_unlink): Define.
2634
2635 Update the derived classes and callers below.
2636
2637 * hostio.cc (handle_setfs): Update.
2638 (handle_open): Update.
2639 (handle_unlink): Update.
2640 (handle_readlink): Update.
2641 * linux-low.cc (linux_target_ops): Update.
2642 (linux_process_target::supports_multifs): Define.
2643 (linux_process_target::multifs_open): Define.
2644 (linux_process_target::multifs_readlink): Define.
2645 (linux_process_target::multifs_unlink): Define.
2646 * linux-low.h (class linux_process_target): Update.
2647 * lynx-low.cc (lynx_target_ops): Update.
2648 * nto-low.cc (nto_target_ops): Update.
2649 * win32-low.cc (win32_target_ops): Update.
2650
8247b823
TBA
26512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2652
2653 Turn process_stratum_target's pid_to_exec_file op into a method
2654 of process_target.
2655
2656 * target.h (struct process_stratum_target): Remove the target op.
2657 (class process_target): Add the target op. Also add
2658 'supports_pid_to_exec_file'.
2659 * target.cc (process_target::pid_to_exec_file): Define.
2660 (process_target::supports_pid_to_exec_file): Define.
2661
2662 Update the derived classes and callers below.
2663
2664 * server.cc (handle_qxfer_exec_file): Update.
2665 (handle_query): Update.
2666 * linux-low.cc (linux_target_ops): Update.
2667 (linux_process_target::supports_pid_to_exec_file): Define.
2668 (linux_process_target::pid_to_exec_file): Define.
2669 * linux-low.h (class linux_process_target): Update.
2670 * lynx-low.cc (lynx_target_ops): Update.
2671 * nto-low.cc (nto_target_ops): Update.
2672 * win32-low.cc (win32_target_ops): Update.
2673
2526e0cd
TBA
26742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2675
2676 Turn process_stratum_target's supports_range_stepping op into a
2677 method of process_target.
2678
2679 * target.h (struct process_stratum_target): Remove the target op.
2680 (class process_target): Add the target op.
2681 (target_supports_range_stepping): Update the macro.
2682 * target.cc (process_target::supports_range_stepping): Define.
2683
2684 Update the derived classes and callers below.
2685
2686 * linux-low.cc (linux_target_ops): Update.
2687 (linux_supports_range_stepping): Turn into ...
2688 (linux_process_target::supports_range_stepping): ... this.
2689 * linux-low.h (class linux_process_target): Update.
2690 * lynx-low.cc (lynx_target_ops): Update.
2691 * nto-low.cc (nto_target_ops): Update.
2692 * win32-low.cc (win32_target_ops): Update.
2693
79597bdd
TBA
26942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2695
2696 Turn process_stratum_target's btrace-related ops (enable_btrace,
2697 disable_btrace, read_btrace, read_btrace_conf) into methods of
2698 process_target.
2699
2700 * target.h (struct process_stratum_target): Remove the target ops.
2701 (class process_target): Add the target ops.
2702 (target_enable_btrace): Update.
2703 (target_disable_btrace): Update.
2704 (target_read_btrace): Update.
2705 (target_read_btrace_conf): Update.
2706 * target.cc (process_target::enable_btrace): Define.
2707 (process_target::disable_btrace): Define.
2708 (process_target::read_btrace): Define.
2709 (process_target::read_btrace_conf): Define.
2710
2711 Update the derived classes and callers below.
2712
2713 * linux-low.cc (linux_target_ops): Update.
2714 (linux_process_target:enable_btrace): Define as a wrapper around
2715 linux_enable_btrace.
2716 (linux_low_disable_btrace): Turn into ...
2717 (linux_process_target::disable_btrace): ... this.
2718 (linux_low_read_btrace): Turn into ...
2719 (linux_process_target::read_btrace): ... this.
2720 (linux_low_btrace_conf): Turn into ...
2721 (linux_process_target::read_btrace_conf): ... this.
2722 * linux-low.h (class linux_process_target): Update.
2723 * lynx-low.cc (lynx_target_ops): Update.
2724 * nto-low.cc (nto_target_ops): Update.
2725 * win32-low.cc (win32_target_ops): Update.
2726
c0245cb9
TBA
27272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2728
2729 Turn process_stratum_target's supports_agent op into a method of
2730 process_target.
2731
2732 * target.h (struct process_stratum_target): Remove the target op.
2733 (class process_target): Add the target op.
2734 (target_supports_agent): Update the macro.
2735 * target.cc (process_target::supports_agent): Define.
2736
2737 Update the derived classes and callers below.
2738
2739 * linux-low.cc (linux_target_ops): Update.
2740 (linux_supports_agent): Turn into ...
2741 (linux_process_target::supports_agent): ... this.
2742 * linux-low.h (class linux_process_target): Update.
2743 * lynx-low.cc (lynx_target_ops): Update.
2744 * nto-low.cc (nto_target_ops): Update.
2745 * win32-low.cc (win32_target_ops): Update.
2746
974387bb
TBA
27472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2748
2749 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2750 method of process_target.
2751
2752 * target.h (struct process_stratum_target): Remove the target op.
2753 (class process_target): Add the target op. Also add
2754 'supports_qxfer_libraries_svr4'.
2755 * target.cc (process_target::qxfer_libraries_svr4): Define.
2756 (process_target::supports_qxfer_libraries_svr4): Define.
2757
2758 Update the derived classes and callers below.
2759
2760 * server.cc (handle_qxfer_libraries_svr4): Update.
2761 (handle_query): Update.
2762 * linux-low.cc (linux_target_ops): Update.
2763 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2764 (linux_qxfer_libraries_svr4): Turn into ...
2765 (linux_process_target::qxfer_libraries_svr4): ... this.
2766 * linux-low.h (class linux_process_target): Update.
2767 * lynx-low.cc (lynx_target_ops): Update.
2768 * nto-low.cc (nto_target_ops): Update.
2769 * win32-low.cc (win32_target_ops): Update.
2770
c756403b
TBA
27712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2772
2773 Turn process_stratum_target's supports_disable_randomization op
2774 into a method of process_target.
2775
2776 * target.h (struct process_stratum_target): Remove the target op.
2777 (class process_target): Add the target op.
2778 (target_supports_disable_randomization): Update the macro.
2779 * target.cc (process_target::supports_disable_randomization): Define.
2780
2781 Update the derived classes and callers below.
2782
2783 * linux-low.cc (linux_target_ops): Update.
2784 (linux_supports_disable_randomization): Turn into ...
2785 (linux_process_target::supports_disable_randomization): ... this.
2786 * linux-low.h (class linux_process_target): Update.
2787 * lynx-low.cc (lynx_target_ops): Update.
2788 * nto-low.cc (nto_target_ops): Update.
2789 * win32-low.cc (win32_target_ops): Update.
2790
345dafad
TBA
27912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2792
2793 Turn process_stratum_target's emit_ops op into a method of
2794 process_target.
2795
2796 * target.h (struct process_stratum_target): Remove the target op.
2797 (class process_target): Add the target op.
2798 (target_emit_ops): Update the macro.
2799 * target.cc (process_target::emit_ops): Define.
2800
2801 Update the derived classes and callers below.
2802
2803 * linux-low.cc (linux_target_ops): Update.
2804 (linux_emit_ops): Turn into ...
2805 (linux_process_target::emit_ops): ... this.
2806 * linux-low.h (class linux_process_target): Update.
2807 * lynx-low.cc (lynx_target_ops): Update.
2808 * nto-low.cc (nto_target_ops): Update.
2809 * win32-low.cc (win32_target_ops): Update.
2810
c23c9391
TBA
28112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2812
2813 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2814 and get_min_fast_tracepoint_insn_len ops into methods of
2815 process_target.
2816
2817 * target.h (struct process_stratum_target): Remove the target ops.
2818 (class process_target): Add the target ops. Also add
2819 'supports_fast_tracepoints'.
2820 (target_supports_fast_tracepoints): Update the macro.
2821 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2822 (install_fast_tracepoint_jump_pad): Update and rename the macro
2823 to ...
2824 (target_install_fast_tracepoint_jump_pad): ... this.
2825 * target.cc (process_target::supports_fast_tracepoints): Define.
2826 (process_target::install_fast_tracepoint_jump_pad): Define.
2827 (process_target::get_min_fast_tracepoint_insn_len): Define.
2828
2829 Update the derived classes and callers below.
2830
2831 * tracepoint.cc (install_fast_tracepoint): Update.
2832 * linux-low.cc (linux_target_ops): Update.
2833 (linux_process_target::supports_fast_tracepoints): Define.
2834 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2835 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2836 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2837 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2838 * linux-low.h (class linux_process_target): Update.
2839 * lynx-low.cc (lynx_target_ops): Update.
2840 * nto-low.cc (nto_target_ops): Update.
2841 * win32-low.cc (win32_target_ops): Update.
2842
5c9eb2f2
TBA
28432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2844
2845 Turn process_stratum_target's stabilize_threads op into a
2846 method of process_target.
2847
2848 * target.h (struct process_stratum_target): Remove the target op.
2849 (class process_target): Add the target op.
2850 (target_stabilize_threads): Update the macro.
2851 * target.cc (process_target::stabilize_threads): Define.
2852
2853 Update the derived classes and callers below.
2854
2855 * server.cc (handle_status): Update.
2856 * tracepoint.cc (cmd_qtdp): Update.
2857 (cmd_qtstart): Update.
2858 * linux-low.cc (linux_target_ops): Update.
2859 (linux_stabilize_threads): Turn into ...
2860 (linux_process_target::stabilize_threads): ... this.
2861 (linux_wait_1): Update.
2862 * linux-low.h (class linux_process_target): Update.
2863 * lynx-low.cc (lynx_target_ops): Update.
2864 * nto-low.cc (nto_target_ops): Update.
2865 * win32-low.cc (win32_target_ops): Update.
2866
29e8dc09
TBA
28672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2868
2869 Turn process_stratum_target's pause_all and unpause_all ops
2870 into methods of process_target.
2871
2872 * target.h (struct process_stratum_target): Remove the target ops.
2873 (class process_target): Add the target ops.
2874 (pause_all): Update the macro and rename to...
2875 (target_pause_all): ... this.
2876 (unpause_all): Update the macro and rename to...
2877 (target_unpause_all): ... this.
2878 * target.cc (process_target::pause_all): Define.
2879 (process_target::unpause_all): Define.
2880
2881 Update the derived classes and callers below.
2882
2883 * server.cc (handle_status): Update.
2884 * tracepoint.cc (clear_installed_tracepoints): Update.
2885 (cmd_qtdp): Update.
2886 (cmd_qtstart): Update.
2887 (stop_tracing): Update.
2888 (cmd_qtstatus): Update.
2889 (upload_fast_traceframes): Update.
2890 (run_inferior_command): Update.
2891 * linux-low.cc (linux_target_ops): Update.
2892 (linux_pause_all): Turn into ...
2893 (linux_process_target::pause_all): ... this.
2894 (linux_unpause_all): Turn into ...
2895 (linux_process_target::unpause_all): ... this.
2896 (linux_process_target::prepare_to_access_memory): Update.
2897 (linux_process_target::done_accessing_memory): Update.
2898 * linux-low.h (class linux_process_target): Update.
2899 * lynx-low.cc (lynx_target_ops): Update.
2900 * nto-low.cc (nto_target_ops): Update.
2901 * win32-low.cc (win32_target_ops): Update.
2902
4e2e869c
TBA
29032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2904
2905 Turn process_stratum_target's get_tib_address op into a method of
2906 process_target.
2907
2908 * target.h (struct process_stratum_target): Remove the target op.
2909 (class process_target): Add the target op. Also add
2910 'supports_get_tib_address'.
2911 * target.cc (process_target::get_tib_address): Define.
2912 (process_target::supports_get_tib_address): Define.
2913
2914 Update the derived classes and callers below.
2915
2916 * server.cc (handle_query): Update.
2917 * linux-low.cc (win32_target_ops): Update.
2918 * lynx-low.cc (lynx_target_ops): Update.
2919 * nto-low.cc (nto_target_ops): Update.
2920 * win32-low.cc (win32_target_ops): Update.
2921 (win32_process_target::supports_get_tib_address): Define.
2922 (win32_get_tib_address): Turn into ...
2923 (win32_process_target::get_tib_address): ... this.
2924 * win32-low.h (class win32_process_target): Update.
2925
68119632
TBA
29262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2927
2928 Turn process_stratum_target's thread_stopped op into a method of
2929 process_target.
2930
2931 * target.h (struct process_stratum_target): Remove the target op.
2932 (class process_target): Add the target op. Also add
2933 'supports_thread_stopped'.
2934 (target_thread_stopped): Update the macro.
2935 * target.cc (process_target::thread_stopped): Define.
2936 (process_target::supports_thread_stopped): Define.
2937 (prepare_to_access_memory): Update.
2938
2939 Update the derived classes and callers below.
2940
2941 * server.cc (queue_stop_reply_callback): Update.
2942 * linux-low.cc (linux_target_ops): Update.
2943 (linux_process_target::supports_thread_stopped): Define.
2944 (linux_thread_stopped): Turn into ...
2945 (linux_process_target::thread_stopped): ... this.
2946 * linux-low.h (class linux_process_target): Update.
2947 * lynx-low.cc (lynx_target_ops): Update.
2948 * nto-low.cc (nto_target_ops): Update.
2949 * win32-low.cc (win32_target_ops): Update.
2950
770d8f6a
TBA
29512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2952
2953 Turn process_stratum_target's read_pc and write_pc ops into
2954 methods of process_target.
2955
2956 * target.h (struct process_stratum_target): Remove the target ops.
2957 (class process_target): Add the target ops.
2958 * target.cc (process_target::read_pc): Define.
2959 (process_target::write_pc): Define.
2960
2961 Update the derived classes and callers below.
2962
2963 * regcache.cc (regcache_read_pc): Update.
2964 (regcache_write_pc): Update.
2965 * linux-low.cc (linux_target_ops): Update.
2966 (linux_read_pc): Turn into ...
2967 (linux_process_target::read_pc): ... this.
2968 (linux_write_pc): Turn into ...
2969 (linux_process_target::write_pc): ... this.
2970 * linux-low.h (class linux_process_target): Update.
2971 * lynx-low.cc (lynx_target_ops): Update.
2972 * nto-low.cc (nto_target_ops): Update.
2973 * win32-low.cc (win32_target_ops): Update.
2974
290732bf
TBA
29752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2976
2977 Turn process_stratum_target's supports_tracepoints op into a
2978 method of process_target.
2979
2980 * target.h (struct process_stratum_target): Remove the target op.
2981 (class process_target): Add the target op.
2982 (target_supports_tracepoints): Update the macro.
2983 * target.cc (process_target::supports_tracepoints): Define.
2984
2985 Update the derived classes and callers below.
2986
2987 * linux-low.cc (linux_target_ops): Update.
2988 (linux_supports_tracepoints): Turn into ...
2989 (linux_process_target::supports_tracepoints): ... this.
2990 * linux-low.h (class linux_process_target): Update.
2991 * lynx-low.cc (lynx_target_ops): Update.
2992 * nto-low.cc (nto_target_ops): Update.
2993 * win32-low.cc (win32_target_ops): Update.
2994
0df28b1b
TBA
29952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2996
2997 Turn process_stratum_target's process_qsupported op into a method
2998 of process_target.
2999
3000 * target.h (struct process_stratum_target): Remove the target op.
3001 (class process_target): Add the target op.
3002 (target_process_qsupported): Update the macro.
3003 * target.cc (process_target::process_qsupported): Define.
3004
3005 Update the derived classes and callers below.
3006
3007 * linux-low.cc (linux_target_ops): Update.
3008 (linux_process_qsupported): Turn into ...
3009 (linux_process_target::process_qsupported): ... this.
3010 * linux-low.h (class linux_process_target): Update.
3011 * lynx-low.cc (lynx_target_ops): Update.
3012 * nto-low.cc (nto_target_ops): Update.
3013 * win32-low.cc (win32_target_ops): Update.
3014
9da41fda
TBA
30152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3016
3017 Turn process_stratum_target's read_loadmap op into a method of
3018 process_target.
3019
3020 * target.h (struct process_stratum_target): Remove the target op.
3021 (class process_target): Add the target op. Also add
3022 'supports_read_loadmap'.
3023 * target.cc (process_target::read_loadmap): Define.
3024 (process_target::supports_read_loadmap): Define.
3025
3026 Update the derived classes and callers below.
3027
3028 * server.cc (handle_qxfer_fdpic): Update.
3029 (handle_query): Update.
3030 * linux-low.cc (linux_target_ops): Update.
3031 (linux_process_target::supports_read_loadmap): Define.
3032 (linux_read_loadmap): Turn into ...
3033 (linux_process_target::read_loadmap): ... this.
3034 * linux-low.h (class linux_process_target): Update.
3035 * lynx-low.cc (lynx_target_ops): Update.
3036 * nto-low.cc (nto_target_ops): Update.
3037 * win32-low.cc (win32_target_ops): Update.
3038
95a45fc1
TBA
30392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3040
3041 Turn process_stratum_target's core_of_thread op into a method of
3042 process_target.
3043
3044 * target.h (struct process_stratum_target): Remove the target op.
3045 (class process_target): Add the target op.
3046 (target_core_of_thread): Update the macro.
3047 * target.cc (process_target::core_of_thread): Define.
3048
3049 Update the derived classes and callers below.
3050
3051 * linux-low.cc (linux_target_ops): Update.
3052 (linux_process_target::core_of_thread): Define.
3053 * linux-low.h (class linux_process_target): Update.
3054 * lynx-low.cc (lynx_target_ops): Update.
3055 * nto-low.cc (nto_target_ops): Update.
3056 * win32-low.cc (win32_target_ops): Update.
3057
55cf3021
TBA
30582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3059
3060 Turn process_stratum_target's handle_monitor_command op into a
3061 method of process_target.
3062
3063 * target.h (struct process_stratum_target): Remove the target op.
3064 (class process_target): Add the target op.
3065 (target_handle_monitor_command): Update the macro.
3066 * target.cc (process_target::handle_monitor_command): Define.
3067
3068 Update the derived classes and callers below.
3069
3070 * server.cc (handle_query): Update.
3071 * linux-low.cc (linux_target_ops): Update.
3072 (linux_process_target::handle_monitor_command): Define.
3073 * linux-low.h (class linux_process_target): Update.
3074 * lynx-low.cc (lynx_target_ops): Update.
3075 * nto-low.cc (nto_target_ops): Update.
3076 * win32-low.cc (win32_target_ops): Update.
3077
fb00dfce
TBA
30782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3079
3080 Turn process_stratum_target's handle_new_gdb_connection op into a
3081 method of process_target.
3082
3083 * target.h (struct process_stratum_target): Remove the target op.
3084 (class process_target): Add the target op.
3085 (target_handle_new_gdb_connection): Update the macro.
3086 * target.cc (process_target::handle_new_gdb_connection): Define.
3087
3088 Update the derived classes and callers below.
3089
3090 * linux-low.cc (linux_target_ops): Update.
3091 (linux_handle_new_gdb_connection): Turn into ...
3092 (linux_process_target::handle_new_gdb_connection): ... this.
3093 * linux-low.h (class linux_process_target): Update.
3094 * lynx-low.cc (lynx_target_ops): Update.
3095 * nto-low.cc (nto_target_ops): Update.
3096 * win32-low.cc (win32_target_ops): Update.
3097
9690a72a
TBA
30982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3099
3100 Turn process_stratum_target's supports_fork_events,
3101 supports_vfork_events, and supports_exec_events ops into methods
3102 of process_target.
3103
3104 * target.h (struct process_stratum_target): Remove the target ops.
3105 (class process_target): Add the target ops.
3106 (target_supports_fork_events): Update the macro.
3107 (target_supports_vfork_events): Update the macro.
3108 (target_supports_exec_events): Update the macro.
3109 * target.cc (process_target::supports_fork_events): Define.
3110 (process_target::supports_vfork_events): Define.
3111 (process_target::supports_exec_events): Define.
3112
3113 Update the derived classes and callers below.
3114
3115 * linux-low.cc (linux_target_ops): Update.
3116 (linux_supports_fork_events): Turn into ...
3117 (linux_process_target::supports_fork_events): ... this.
3118 (linux_supports_vfork_events): Turn into ...
3119 (linux_process_target::supports_vfork_events): ... this.
3120 (linux_supports_exec_events): Turn into ...
3121 (linux_process_target::supports_exec_events): ... this.
3122 * linux-low.h (class linux_process_target): Update.
3123 * lynx-low.cc (lynx_target_ops): Update.
3124 * nto-low.cc (nto_target_ops): Update.
3125 * win32-low.cc (win32_target_ops): Update.
3126
652aef77
TBA
31272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3128
3129 Turn process_stratum_target's supports_multi_process op into a
3130 method of process_target.
3131
3132 * target.h (struct process_stratum_target): Remove the target op.
3133 (class process_target): Add the target op.
3134 * target.cc (process_target::supports_multi_process): Define.
3135 (target_supports_multi_process): Update.
3136
3137 Update the derived classes and callers below.
3138
3139 * linux-low.cc (linux_target_ops): Update.
3140 (linux_supports_multi_process): Turn into ...
3141 (linux_process_target::supports_multi_process): ... this.
3142 * linux-low.h (class linux_process_target): Update.
3143 * lynx-low.cc (lynx_target_ops): Update.
3144 * nto-low.cc (nto_target_ops): Update.
3145 * win32-low.cc (win32_target_ops): Update.
3146
0dc587d4
TBA
31472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3148
3149 Turn process_stratum_target's supports_non_stop, async, and
3150 start_non_stop ops into methods of process_target.
3151
3152 * target.h (struct process_stratum_target): Remove the target ops.
3153 (class process_target): Add the target ops.
3154 (target_supports_non_stop): Update the macro.
3155 (target_async): Update the macro.
3156 (start_non_stop): Remove declaration.
3157 * target.cc (process_target::supports_non_stop): Define.
3158 (process_target::async): Define.
3159 (process_target::start_non_stop): Define.
3160 (start_non_stop): Remove.
3161
3162 Update the derived classes and callers below.
3163
3164 * server.cc (handle_qxfer_siginfo): Update.
3165 (handle_query): Update.
3166 * linux-low.cc (linux_target_ops): Update.
3167 (linux_supports_non_stop): Turn into ...
3168 (linux_process_target::supports_non_stop): ... this.
3169 (linux_async): Turn into ...
3170 (linux_process_target::async): ... this.
3171 (linux_start_non_stop): Turn into ...
3172 (linux_process_target::start_non_stop): ... this.
3173 * linux-low.h (class linux_process_target): Update.
3174 * lynx-low.cc (lynx_target_ops): Update.
3175 * nto-low.cc (nto_target_ops): Update.
3176 (nto_supports_non_stop): Remove; rely on the default behavior
3177 instead.
3178 * win32-low.cc (win32_target_ops): Update.
3179
d7abedf7
TBA
31802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3181
3182 Turn process_stratum_target's qxfer_siginfo op into a method of
3183 process_target.
3184
3185 * target.h (struct process_stratum_target): Remove the target op.
3186 (class process_target): Add the target op. Also add
3187 'supports_qxfer_siginfo'.
3188 * target.cc (process_target::qxfer_siginfo): Define.
3189 (process_target::supports_qxfer_siginfo): Define.
3190
3191 Update the derived classes and callers below.
3192
3193 * server.cc (handle_qxfer_siginfo): Update.
3194 (handle_query): Update.
3195 * linux-low.cc (linux_target_ops): Update.
3196 (linux_process_target::supports_qxfer_siginfo): Define.
3197 (linux_xfer_siginfo): Turn into ...
3198 (linux_process_target::qxfer_siginfo): ... this.
3199 * linux-low.h (class linux_process_target): Update.
3200 * lynx-low.cc (lynx_target_ops): Update.
3201 * nto-low.cc (nto_target_ops): Update.
3202 * win32-low.cc (win32_target_ops): Update.
3203
2d0795ee
TBA
32042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3205
3206 Turn process_stratum_target's qxfer_osdata op into a method of
3207 process_target.
3208
3209 * target.h (struct process_stratum_target): Remove the target op.
3210 (class process_target): Add the target op. Also add
3211 'supports_qxfer_osdata'.
3212 * target.cc (process_target::qxfer_osdata): Define.
3213 (process_target::supports_qxfer_osdata): Define.
3214
3215 Update the derived classes and callers below.
3216
3217 * server.cc (handle_qxfer_osdata): Update.
3218 (handle_query): Update.
3219 * linux-low.cc (linux_target_ops): Update.
3220 (linux_process_target::supports_qxfer_osdata): Define.
3221 (linux_qxfer_osdata): Turn into ...
3222 (linux_process_target::qxfer_osdata): ... this.
3223 * linux-low.h (class linux_process_target): Update.
3224 * lynx-low.cc (lynx_target_ops): Update.
3225 * nto-low.cc (nto_target_ops): Update.
3226 * win32-low.cc (win32_target_ops): Update.
3227
ea06bbaa
TBA
32282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3229
3230 Turn process_stratum_target's hostio_last_error op into a
3231 method of process_target.
3232
3233 * target.h (struct process_stratum_target): Remove the target op.
3234 (class process_target): Add the target op.
3235 * target.cc: Add "hostio.h" to includes.
3236 (process_target::hostio_last_error): Define.
3237
3238 Update the derived classes and callers below.
3239
3240 * hostio.cc (hostio_error): Update.
3241 * linux-low.cc: Remove "hostio.h" from includes.
3242 (linux_target_ops): Update.
3243 * lynx-low.cc (lynx_target_ops): Update.
3244 * nto-low.cc (nto_target_ops): Update.
3245 * win32-low.h (class win32_process_target): Update.
3246 * win32-low.cc (win32_target_ops): Update.
3247 (wince_hostio_last_error): Turn into ...
3248 (win32_process_target::hostio_last_error): ... this.
3249
6e3fd7e9
TBA
32502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3251
3252 Turn process_stratum_target's get_tls_address 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_get_tls_address'.
3258 * target.cc (process_target::get_tls_address): Define.
3259 (process_target::supports_get_tls_address): Define.
3260
3261 Update the derived classes and callers below.
3262
3263 * server.cc (handle_query): Update.
3264 * linux-low.cc (linux_target_ops): Update.
3265 (linux_process_target::supports_get_tls_address): Define.
3266 (linux_process_target::get_tls_address): Define.
3267 * linux-low.h (class linux_process_target): Update.
3268 * lynx-low.cc (lynx_target_ops): Update.
3269 * nto-low.cc (nto_target_ops): Update.
3270 * win32-low.cc (win32_target_ops): Update.
3271
5203ae1e
TBA
32722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3273
3274 Turn process_stratum_target's read_offsets op into a method of
3275 process_target.
3276
3277 * target.h (struct process_stratum_target): Remove the target op.
3278 (class process_target): Add the target op. Also add
3279 'supports_read_offsets'.
3280 * target.cc (process_target::read_offsets): Define.
3281 (process_target::supports_read_offsets): Define.
3282
3283 Update the derived classes and callers below.
3284
3285 * server.cc (handle_query): Update.
3286 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3287 (linux_target_ops): Update.
3288 (linux_process_target::supports_read_offsets): Define.
3289 (linux_read_offsets): Turn into ...
3290 (linux_process_target::read_offsets): ... this.
3291 * linux-low.h (class linux_process_target): Update.
3292 * lynx-low.cc (lynx_target_ops): Update.
3293 * nto-low.cc (nto_target_ops): Update.
3294 * win32-low.cc (win32_target_ops): Update.
3295
6eeb5c55
TBA
32962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3297
3298 Turn process_stratum_target's stopped_by_watchpoint and
3299 stopped_data_address ops into methods of process_target.
3300
3301 * target.h (struct process_stratum_target): Remove the target ops.
3302 (class process_target): Add the target ops.
3303 * target.cc (process_target::stopped_by_watchpoint): Define.
3304 (process_target::stopped_data_address): Define.
3305
3306 Update the derived classes and callers below.
3307
3308 * remote-utils.cc (prepare_resume_reply): Update.
3309 * linux-low.cc (linux_target_ops): Update.
3310 (linux_stopped_by_watchpoint): Turn into ...
3311 (linux_process_target::stopped_by_watchpoint): ... this.
3312 (linux_stopped_data_address): Turn into ...
3313 (linux_process_target::stopped_data_address): ... this.
3314 * linux-low.h (class linux_process_target): Update.
3315 * lynx-low.cc (lynx_target_ops): Update.
3316 * nto-low.cc (nto_target_ops): Update.
3317 (nto_stopped_by_watchpoint): Turn into ...
3318 (nto_process_target::stopped_by_watchpoint): ... this.
3319 (nto_stopped_data_address): Turn into ...
3320 (nto_process_target::stopped_data_address): ... this.
3321 * nto-low.h (class nto_process_target): Update.
3322 * win32-low.cc (win32_target_ops): Update.
3323 (win32_stopped_by_watchpoint): Turn into ...
3324 (win32_process_target::stopped_by_watchpoint): ... this.
3325 (win32_stopped_data_address): Turn into ...
3326 (win32_process_target::stopped_data_address): ... this.
3327 * win32-low.h (class win32_process_target): Update.
3328
22aa6223
TBA
33292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3330
3331 Turn process_stratum_target's supports_hardware_single_step op into
3332 a method of process_target.
3333
3334 * target.h (struct process_stratum_target): Remove the target op.
3335 (class process_target): Add the target op.
3336 (target_supports_hardware_single_step): Update the macro.
3337 (target_can_do_hardware_single_step): Remove declaration.
3338 * target.cc (process_target::supports_hardware_single_step): Define.
3339 (target_can_do_hardware_single_step): Remove.
3340
3341 Update the derived classes and callers below.
3342
3343 * linux-low.h (class linux_process_target): Update.
3344 * linux-low.cc (linux_target_ops): Update.
3345 (linux_supports_hardware_single_step): Turn into ...
3346 (linux_process_target::supports_hardware_single_step): ... this.
3347 * lynx-low.h (class lynx_process_target): Update.
3348 * lynx-low.cc (lynx_target_ops): Update.
3349 (lynx_process_target::supports_hardware_single_step): Define.
3350 * nto-low.h (class nto_process_target): Update.
3351 * nto-low.cc (nto_target_ops): Update.
3352 (nto_process_target::supports_hardware_single_step): Define.
3353 * win32-low.h (class win32_process_target): Update.
3354 * win32-low.cc (win32_target_ops): Update.
3355 (win32_process_target::supports_hardware_single_step): Define.
3356
93fe88b2
TBA
33572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3358
3359 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3360 ops into methods of process_target.
3361
3362 * target.h (struct process_stratum_target): Remove the target ops.
3363 (class process_target): Add the target ops.
3364 (target_stopped_by_hw_breakpoint): Update the macro.
3365 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3366 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3367 (process_target::supports_stopped_by_hw_breakpoint): Define.
3368
3369 Update the derived classes and callers below.
3370
3371 * linux-low.cc (linux_target_ops): Update.
3372 (linux_stopped_by_hw_breakpoint): Turn into ...
3373 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3374 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3375 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3376 * linux-low.h (class linux_process_target): Update.
3377 * lynx-low.cc (lynx_target_ops): Update.
3378 * nto-low.cc (nto_target_ops): Update.
3379 * win32-low.cc (win32_target_ops): Update.
3380
84320c4e
TBA
33812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3382
3383 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3384 ops into methods of process_target.
3385
3386 * target.h (struct process_stratum_target): Remove the target ops.
3387 (class process_target): Add the target ops.
3388 (target_stopped_by_sw_breakpoint): Update the macro.
3389 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3390 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3391 (process_target::supports_stopped_by_sw_breakpoint): Define.
3392
3393 Update the derived classes and callers below.
3394
3395 * linux-low.cc (linux_target_ops): Update.
3396 (linux_stopped_by_sw_breakpoint): Turn into ...
3397 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3398 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3399 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3400 * linux-low.h (class linux_process_target): Update.
3401 * lynx-low.cc (lynx_target_ops): Update.
3402 * nto-low.cc (nto_target_ops): Update.
3403 * win32-low.cc (win32_target_ops): Update.
3404
7e0bde70
TBA
34052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3406
3407 Turn process_stratum_target's insert_point and remove_point ops
3408 into methods of process_target.
3409
3410 * target.h (struct process_stratum_target): Remove the target ops.
3411 (class process_target): Add the target ops.
3412 * target.cc (process_target::insert_point): Define.
3413 (process_target::remove_point): Define.
3414
3415 Update the derived classes and callers below.
3416
3417 * mem-break.cc (set_raw_breakpoint_at): Update.
3418 (delete_raw_breakpoint): Update.
3419 (uninsert_raw_breakpoint): Update.
3420 (reinsert_raw_breakpoint): Update.
3421 * linux-low.cc (linux_target_ops): Update.
3422 (linux_insert_point): Turn into ...
3423 (linux_process_target::insert_point): ... this.
3424 (linux_remove_point): Turn into ...
3425 (linux_process_target::remove_point): ... this.
3426 * linux-low.h (class linux_process_target): Update.
3427 * lynx-low.cc (lynx_target_ops): Update.
3428 * nto-low.cc (nto_target_ops): Update.
3429 (nto_insert_point): Turn into ...
3430 (nto_process_target::insert_point): ... this.
3431 (nto_remove_point): Turn into ...
3432 (nto_process_target::remove_point): ... this.
3433 * nto-low.h (class nto_process_target): Update.
3434 * win32-low.cc (win32_target_ops): Update.
3435 (win32_insert_point): Turn into ...
3436 (win32_process_target::insert_point): ... this.
3437 (win32_remove_point): Turn into ...
3438 (win32_process_target::remove_point): ... this.
3439 * win32-low.h (class win32_process_target): Update.
3440
a2b2297a
TBA
34412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3442
3443 Turn process_stratum_target's supports_z_point_type op into a
3444 method of process_target.
3445
3446 * target.h (struct process_stratum_target): Remove the target op.
3447 (class process_target): Add the target op.
3448 * target.cc (process_target::supports_z_point_type): Define.
3449
3450 Update the derived classes and callers below.
3451
3452 * mem-break.cc (z_type_supported): Update.
3453 * linux-low.cc (linux_target_ops): Update.
3454 (linux_supports_z_point_type): Turn into ...
3455 (linux_process_target::supports_z_point_type): ... this.
3456 * linux-low.h (class linux_process_target): Update.
3457 * lynx-low.cc (lynx_target_ops): Update.
3458 * nto-low.cc (nto_target_ops): Update.
3459 (nto_supports_z_point_type): Turn into ...
3460 (nto_process_target::supports_z_point_type): ... this.
3461 * nto-low.h (class nto_process_target): Update.
3462 * win32-low.cc (win32_target_ops): Update.
3463 (win32_supports_z_point_type): Turn into ...
3464 (win32_process_target::supports_z_point_type): ... this.
3465 * win32-low.h (class win32_process_target): Update.
3466
eac215cc
TBA
34672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3468
3469 Turn process_stratum_target's read_auxv op into a method of
3470 process_target.
3471
3472 * target.h (class process_stratum_target): Remove the target op.
3473 (struct process_target): Add the target op. Also add
3474 'supports_read_auxv'.
3475 * target.cc (process_target::read_auxv): Define.
3476 (process_target::supports_read_auxv): Define.
3477
3478 Update the derived classes and callers below.
3479
3480 * server.cc (handle_qxfer_auxv): Update.
3481 (handle_query): Update.
3482 * linux-low.cc (linux_target_ops): Update.
3483 (linux_process_target::supports_read_auxv): Define.
3484 (linux_read_auxv): Turn into ...
3485 (linux_process_target::read_auxv): ... this.
3486 * linux-low.h (class linux_process_target): Update.
3487 * lynx-low.cc (lynx_target_ops): Update.
3488 * nto-low.cc (nto_target_ops): Update.
3489 (nto_process_target::supports_read_auxv): Define.
3490 (nto_read_auxv): Turn into ...
3491 (nto_process_target::read_auxv): ... this.
3492 * nto-low.h (class nto_process_target): Update.
3493 * win32-low.cc (win32_target_ops): Update.
3494
eb497a2a
TBA
34952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3496
3497 Turn process_stratum_target's request_interrupt op into a method of
3498 process_target.
3499
3500 * target.h (struct process_stratum_target): Remove the target op.
3501 (class process_target): Add the target op.
3502
3503 Update the derived classes and callers below.
3504
3505 * remote-utils.cc (putpkt_binary_1): Update.
3506 (input_interrupt): Update.
3507 (getpkt): Update.
3508 * server.cc (handle_v_requests): Update.
3509 * linux-low.cc (linux_target_ops): Update.
3510 (linux_request_interrupt): Turn into ...
3511 (linux_process_target::request_interrupt): ... this.
3512 * linux-low.h (class linux_process_target): Update.
3513 * lynx-low.cc (lynx_target_ops): Update.
3514 (lynx_request_interrupt): Turn into ...
3515 (lynx_process_target::request_interrupt): ... this.
3516 * lynx-low.h (class lynx_process_target): Update.
3517 * nto-low.cc (nto_target_ops): Update.
3518 (nto_request_interrupt): Turn into ...
3519 (nto_process_target::request_interrupt): ... this.
3520 * nto-low.h (class nto_process_target): Update.
3521 * win32-low.cc (win32_target_ops): Update.
3522 (win32_request_interrupt): Turn into ...
3523 (win32_process_target::request_interrupt): ... this.
3524 * win32-low.h (class win32_process_target): Update.
3525
2a31c7aa
TBA
35262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3527
3528 Turn process_stratum_target's look_up_symbols op into a method of
3529 process_target.
3530
3531 * target.h (struct process_stratum_target): Remove the target op.
3532 (class process_target): Add the target op.
3533 * target.cc (process_target::look_up_symbols): Define.
3534
3535 Update the derived classes and callers below.
3536
3537 * server.cc (handle_query): Update.
3538 * linux-low.cc (linux_target_ops): Update.
3539 (linux_look_up_symbols): Turn into ...
3540 (linux_process_target::look_up_symbols): ... this.
3541 * linux-low.h (class linux_process_target): Update.
3542 * lynx-low.cc (lynx_target_ops): Update.
3543 * nto-low.cc (nto_target_ops): Update.
3544 * win32-low.cc (win32_target_ops): Update.
3545
e2558df3
TBA
35462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3547
3548 Turn process_stratum_target's read_memory and write_memory
3549 ops into methods of process_target.
3550
3551 * target.h (struct process_stratum_target): Remove the target ops.
3552 (class process_target): Add the target ops.
3553
3554 Update the derived classes and callers below.
3555
3556 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3557 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3558 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3559 (arm_get_syscall_trapinfo): Update.
3560 * linux-cris-low.cc (cris_breakpoint_at): Update.
3561 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3562 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3563 * linux-mips-low.cc (mips_breakpoint_at): Update.
3564 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3565 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3566 * linux-sh-low.cc (sh_breakpoint_at): Update.
3567 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3568 (sparc_store_gregset_from_stack): Update.
3569 (sparc_breakpoint_at): Update.
3570 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3571 * linux-tile-low.cc (tile_breakpoint_at): Update.
3572 * linux-x86-low.cc (x86_breakpoint_at): Update.
3573 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3574 * mem-brea.cc (insert_memory_breakpoint): Update.
3575 (validate_inserted_breakpoint): Update.
3576 * target.cc (read_inferior_memory): Update.
3577 (target_write_memory): Update.
3578 * linux-low.cc (linux_target_ops): Update.
3579 (linux_read_memory): Make a wrapper around the read_memory target
3580 op call.
3581 (linux_process_target::read_memory): Rename from linux_read_memory.
3582 (linux_write_memory): Turn into ...
3583 (linux_process_target::write_memory): ... this.
3584 * linux-low.h (class linux_process_target): Update.
3585 * lynx-low.cc (lynx_target_ops): Update.
3586 (lynx_read_memory): Turn into ...
3587 (lynx_process_target::read_memory): ... this.
3588 (lynx_write_memory): Turn into ...
3589 (lynx_process_target::write_memory): ... this.
3590 * lynx-low.h (class lynx_process_target): Update.
3591 * nto-low.cc (nto_target_ops): Update.
3592 (nto_read_memory): Turn into ...
3593 (nto_process_target::read_memory): ... this.
3594 (nto_write_memory): Turn into ...
3595 (nto_process_target::write_memory): ... this.
3596 * nto-low.h (class nto_process_target): Update.
3597 * win32-low.cc (win32_target_ops): Update.
3598 (win32_read_inferior_memory): Turn into ...
3599 (win32_process_target::read_memory): ... this.
3600 (win32_write_inferior_memory): Turn into ...
3601 (win32_process_target::write_memory): ... this.
3602 * win32-low.h (class win32_process_target): Update.
3603
79b44087
TBA
36042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3605
3606 Turn process_stratum_target's prepare_to_access_memory and
3607 done_accessing_memory ops into methods of process_target.
3608
3609 * target.h (struct process_stratum_target): Remove the target ops.
3610 (class process_target): Add the target ops.
3611 * target.cc (process_target::prepare_to_access_memory): Define.
3612 (process_target::done_accessing_memory): Define.
3613 (prepare_to_access_memory): Update.
3614 (done_accessing_memory): Update.
3615
3616 Update the derived classes and callers below.
3617
3618 * linux-low.cc (linux_target_ops): Update.
3619 (linux_prepare_to_access_memory): Turn into ...
3620 (linux_process_target::prepare_to_access_memory): ... this.
3621 (linux_done_accessing_memory): Turn into ...
3622 (linux_process_target::done_accessing_memory): ... this.
3623 * linux-low.h (class linux_process_target): Update.
3624 * lynx-low.cc (lynx_target_ops): Update.
3625 * nto-low.cc (nto_target_ops): Update.
3626 * win32-low.cc (win32_target_ops): Update.
3627
a5a4d4cd
TBA
36282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3629
3630 Turn process_stratum_target's fetch_registers and store_registers
3631 ops into methods of process_target.
3632
3633 * target.h (struct process_stratum_target): Remove the target ops.
3634 (class process_target): Add the target ops.
3635 (fetch_inferior_registers): Update the macro.
3636 (store_inferior_registers): Update the macro.
3637
3638 Update the derived classes and callers below.
3639
3640 * linux-low.cc (linux_target_ops): Update.
3641 (linux_fetch_registers): Turn into ...
3642 (linux_process_target::fetch_registers): ... this.
3643 (linux_store_registers): Turn into ...
3644 (linux_process_target::store_registers): ... this.
3645 * linux-low.h (class linux_process_target): Update.
3646 * lynx-low.cc (lynx_target_ops): Update.
3647 (lynx_fetch_registers): Turn into ...
3648 (lynx_process_target::fetch_registers): ... this.
3649 (lynx_store_registers): Turn into ...
3650 (lynx_process_target::store_registers): ... this.
3651 * lynx-low.h (class lynx_process_target): Update.
3652 * nto-low.cc (nto_target_ops): Update.
3653 (nto_fetch_registers): Turn into ...
3654 (nto_process_target::fetch_registers): ... this.
3655 (nto_store_registers): Turn into ...
3656 (nto_process_target::store_registers): ... this.
3657 * nto-low.h (class nto_process_target): Update.
3658 * win32-low.cc (win32_target_ops): Update.
3659 (win32_fetch_inferior_registers): Turn into ...
3660 (win32_process_target::fetch_registers): ... this.
3661 (win32_store_inferior_registers): Turn into ...
3662 (win32_process_target::store_registers): ... this.
3663 * win32-low.h (class win32_process_target): Update.
3664
6532e7e3
TBA
36652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3666
3667 Turn process_stratum_target's wait op into a method of
3668 process_target.
3669
3670 * target.h (struct process_stratum_target): Remove the target op.
3671 (class process_target): Add the target op.
3672
3673 Update the derived classes and callers below.
3674
3675 * target.cc (target_wait): Update.
3676 * linux-low.cc (linux_target_ops): Update.
3677 (linux_wait): Turn into ...
3678 (linux_process_target::wait): ... this.
3679 * linux-low.h (class linux_process_target): Update.
3680 * lynx-low.cc (lynx_target_ops): Update.
3681 (lynx_wait): Turn into ...
3682 (lynx_process_target::wait): ... this.
3683 * lynx-low.h (class lynx_process_target): Update.
3684 * nto-low.cc (nto_target_ops): Update.
3685 (nto_wait): Turn into ...
3686 (nto_process_target::wait): ... this.
3687 * nto-low.h (class nto_process_target): Update.
3688 * win32-low.cc (win32_target_ops): Update.
3689 (win32_wait): Turn into ...
3690 (win32_process_target::wait): ... this.
3691 (do_initial_child_stuff): Update.
3692 * win32-low.h (class win32_process_target): Update.
3693
0e4d7e35
TBA
36942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3695
3696 Turn process_stratum_target's resume op into a method of
3697 process_target.
3698
3699 * target.h (struct process_stratum_target): Remove the target op.
3700 (class process_target): Add the target op.
3701
3702 Update the derived classes and callers below.
3703
3704 * server.cc (resume): Update.
3705 * target.cc (target_stop_and_wait): Update.
3706 (target_continue_no_signal): Update.
3707 (target_continue): Update.
3708 * linux-low.cc (linux_target_ops): Update.
3709 (linux_resume): Turn into ...
3710 (linux_process_target::resume): ... this.
3711 * linux-low.h (class linux_process_target): Update.
3712 * lynx-low.cc (lynx_target_ops): Update.
3713 (lynx_resume): Turn into ...
3714 (lynx_process_target::resume): ... this.
3715 * lynx-low.h (class lynx_process_target): Update.
3716 * nto-low.cc (nto_target_ops): Update.
3717 (nto_resume): Turn into ...
3718 (nto_process_target::resume): ... this.
3719 * nto-low.h (class nto_process_target): Update.
3720 * win32-low.cc (win32_target_ops): Update.
3721 (win32_resume): Turn into ...
3722 (win32_process_target::resume): ... this.
3723 (win32_process_target::detach): Update.
3724 (do_initial_child_stuff): Update.
3725 * win32-low.h (class win32_process_target): Update.
3726
13d3d99b
TBA
37272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3728
3729 Turn process_stratum_target's thread_alive op into a method of
3730 process_target.
3731
3732 * target.h (struct process_stratum_target): Remove the target op.
3733 (class process_target): Add the target op.
3734 (mythread_alive): Update the macro.
3735
3736 Update the derived classes and callers below.
3737
3738 * linux-low.cc (linux_target_ops): Update.
3739 (linux_thread_alive): Turn into ...
3740 (linux_process_target::thread_alive): ... this.
3741 (wait_for_sigstop): Update.
3742 * linux-low.h (class linux_process_target): Update.
3743 * lynx-low.cc (lynx_target_ops): Update.
3744 (lynx_thread_alive): Turn into ...
3745 (lynx_process_target::thread_alive): ... this.
3746 * lynx-low.h (class lynx_process_target): Update.
3747 * nto-low.cc (nto_target_ops): Update.
3748 (nto_thread_alive): Turn into ...
3749 (nto_process_target::thread_alive): ... this.
3750 * nto-low.h (class nto_process_target): Update.
3751 * win32-low.cc (win32_target_ops): Update.
3752 (win32_thread_alive): Turn into ...
3753 (win32_process_target::thread_alive): ... this.
3754 * win32-low.h (class win32_process_target): Update.
3755
95a49a39
TBA
37562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3757
3758 Turn process_stratum_target's join op into a method of
3759 process_target.
3760
3761 * target.h (struct process_stratum_target): Remove the target op.
3762 (class process_target): Add the target op.
3763 (join_inferior): Update the macro.
3764
3765 Update the derived classes and callers below.
3766
3767 * linux-low.cc (linux_target_ops): Update.
3768 (linux_join): Turn into ...
3769 (linux_process_target::join): ... this.
3770 * linux-low.h (class linux_process_target): Update.
3771 * lynx-low.cc (lynx_target_ops): Update.
3772 (lynx_join): Turn into ...
3773 (lynx_process_target::join): ... this.
3774 * lynx-low.h (class lynx_process_target): Update.
3775 * nto-low.cc (nto_target_ops): Update.
3776 (nto_process_target::join): Define.
3777 * nto-low.h (class nto_process_target): Update.
3778 * win32-low.cc (win32_target_ops): Update.
3779 (win32_join): Turn into ...
3780 (win32_process_target::join): ... this.
3781 * win32-low.h (class win32_process_target): Update.
3782
8adb37b9
TBA
37832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3784
3785 Turn process_stratum_target's mourn op into a method of
3786 process_target.
3787
3788 * target.h (struct process_stratum_target): Remove the target op.
3789 (class process_target): Add the target op.
3790
3791 Update the derived classes and callers below.
3792
3793 * target.cc (target_mourn_inferior): Update.
3794 * linux-low.cc (linux_target_ops): Update.
3795 (linux_mourn): Turn into ...
3796 (linux_process_target::mourn): ... this.
3797 (handle_extended_wait): Update.
3798 (linux_process_target::kill): Update.
3799 (linux_process_target::detach): Update.
3800 * linux-low.h (class linux_process_target): Update.
3801 * lynx-low.cc (lynx_target_ops): Update.
3802 (lynx_mourn): Turn into ...
3803 (lynx_process_target::mourn): ... this.
3804 * lynx-low.h (class lynx_process_target): Update.
3805 * nto-low.cc (nto_target_ops): Update.
3806 (nto_mourn): Turn into ...
3807 (nto_process_target::mourn): ... this.
3808 * nto-low.h (class nto_process_target): Update.
3809 * win32-low.cc (win32_target_ops): Update.
3810 (win32_mourn): Turn into ...
3811 (win32_process_target::mourn): ... this.
3812 * win32-low.h (class win32_process_target): Update.
3813
9061c9cf
TBA
38142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3815
3816 Turn process_stratum_target's detach op into a method of
3817 process_target.
3818
3819 * target.h (struct process_stratum_target): Remove the target op.
3820 (class process_target): Add the target op.
3821 (detach_inferior): Update the macro.
3822
3823 Update the derived classes and callers below.
3824
3825 * linux-low.cc (linux_target_ops): Update.
3826 (linux_detach): Turn into ...
3827 (linux_process_target::detach): ... this.
3828 * linux-low.h (class linux_process_target): Update.
3829 * lynx-low.cc (lynx_target_ops): Update.
3830 (lynx_detach): Turn into ...
3831 (lynx_process_target::detach): ... this.
3832 * lynx-low.h (class lynx_process_target): Update.
3833 * nto-low.cc (nto_target_ops): Update.
3834 (nto_detach): Turn into ...
3835 (nto_process_target::detach): ... this.
3836 * nto-low.h (class nto_process_target): Update.
3837 * win32-low.cc (win32_target_ops): Update.
3838 (win32_detach): Turn into ...
3839 (win32_process_target::detach): ... this.
3840 * win32-low.h (class win32_process_target): Update.
3841
c6885a57
TBA
38422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3843
3844 Turn process_stratum_target's kill op into a method of
3845 process_target.
3846
3847 * target.h (struct process_stratum_target): Remove the target op.
3848 (class process_target): Add the target op.
3849
3850 Update the derived classes and callers below.
3851
3852 * target.cc (kill_inferior): Update.
3853 * linux-low.cc (linux_target_ops): Update.
3854 (linux_kill): Turn into ...
3855 (linux_process_target::kill): ... this.
3856 * linux-low.h (class linux_process_target): Update.
3857 * lynx-low.cc (lynx_target_ops): Update.
3858 (lynx_kill): Turn into ...
3859 (lynx_process_target::kill): ... this.
3860 * lynx-low.h (class lynx_process_target): Update.
3861 * nto-low.cc (nto_target_ops): Update.
3862 (nto_kill): Turn into ...
3863 (nto_process_target::kill): ... this.
3864 * nto-low.h (class nto_process_target): Update.
3865 * win32-low.cc (win32_target_ops): Update.
3866 (win32_kill): Turn into ...
3867 (win32_process_target::kill): ... this.
3868 * win32-low.h (class win32_process_target): Update.
3869
ef03dad8
TBA
38702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3871
3872 Turn process_stratum_target's attach op into a method of
3873 process_target.
3874
3875 * target.h (struct process_stratum_target): Remove the target op.
3876 (class process_target): Add the target op.
3877 (myattach): Update the macro.
3878
3879 Update the derived classes and callers below.
3880
3881 * linux-low.cc (linux_target_ops): Update.
3882 (linux_attach): Turn into ...
3883 (linux_process_target::attach): ... this.
3884 * linux-low.h (class linux_process_target): Update.
3885 * lynx-low.cc (lynx_target_ops): Update.
3886 (lynx_attach): Turn into ...
3887 (lynx_process_target::attach): ... this.
3888 * lynx-low.h (class lynx_process_target): Update.
3889 * nto-low.cc (nto_target_ops): Update.
3890 (nto_attach): Turn into ...
3891 (nto_process_target::attach): ... this.
3892 * nto-low.h (class nto_process_target): Update.
3893 * win32-low.cc (win32_target_ops): Update.
3894 (win32_attach): Turn into ...
3895 (win32_process_target::attach): ... this.
3896 * win32-low.h (class win32_process_target): Update.
3897
6dee9afb
TBA
38982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3899
3900 Turn process_stratum_target's post_create_inferior op into a method
3901 of process_target.
3902
3903 * target.h (struct process_stratum_target): Remove the target op.
3904 (class process_target): Add the target op.
3905 (target_post_create_inferior): Update the macro.
3906 * target.cc (process_target::post_create_inferior): Define.
3907
3908 Update the derived classes and callers below.
3909
3910 * linux-low.cc (linux_target_ops): Update.
3911 (linux_post_create_inferior): Turn into ...
3912 (linux_process_target::post_create_inferior): ... this.
3913 * linux-low.h (class linux_process_target): Update.
3914 * lynx-low.cc (lynx_target_ops): Update.
3915 * nto-low.cc (nto_target_ops): Update.
3916 * win32-low.cc (win32_target_ops): Update.
3917
15295543
TBA
39182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3919
3920 Turn process_stratum_target's create_inferior op into a method of
3921 process_target.
3922
3923 * target.h (struct process_stratum_target): Remove the target op.
3924 (class process_target): Add the target op.
3925 (create_inferior): Rename the macro to ...
3926 (target_create_inferior): ... this.
3927
3928 Update the derived classes and callers below.
3929
3930 * server.cc (handle_v_run): Update.
3931 (captured_main): Update.
3932 (process_serial_event): Update.
3933 * linux-low.cc (linux_target_ops): Update.
3934 (linux_create_inferior): Turn into ...
3935 (linux_process_target::create_inferior): ... this.
3936 * linux-low.h (class linux_process_target): Update.
3937 * lynx-low.cc (lynx_target_ops): Update.
3938 (lynx_create_inferior): Turn into ...
3939 (lynx_process_target::create_inferior): ... this.
3940 * lynx-low.h (class lynx_process_target): Update.
3941 * nto-low.cc (nto_target_ops): Update.
3942 (nto_create_inferior): Turn into ...
3943 (nto_process_target::create_inferior): ... this.
3944 * nto-low.h (class nto_process_target): Update.
3945 * win32-low.cc (win32_target_ops): Update.
3946 (win32_create_inferior): Turn into ...
3947 (win32_process_target::create_inferior): ... this.
3948 * win32-low.h (class win32_process_target): Update.
3949
5ef9273d
TBA
39502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3951
3952 * target.h (class process_target): New class definition.
3953 (struct process_stratum_target) <pt>: New field with type
3954 'process_target*'.
3955 * linux-low.h (class linux_process_target): Define as a derived
3956 class of 'process_target'.
3957 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3958 as the 'pt' field.
3959 * lynx-low.h (class lynx_process_target): Define as a derived
3960 class of 'process_target'.
3961 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3962 as the 'pt' field.
3963 * nto-low.h (class nto_process_target): Define as a derived
3964 class of 'process_target'.
3965 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3966 as the 'pt' field.
3967 * win32-low.h (class win32_process_target): Define as a derived
3968 class of 'process_target'.
3969 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3970 as the 'pt' field.
3971
9f1528a1
AB
39722020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3973
3974 * configure: Regenerate.
3975
bf84f706
MR
39762020-02-19 Maciej W. Rozycki <macro@wdc.com>
3977 Andrew Burgess <andrew.burgess@embecosm.com>
3978
3979 * linux-riscv-low.cc: New file.
3980 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3981 and nat/riscv-linux-tdesc.c.
3982 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3983 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3984 Define.
3985
1a627e7e
TT
39862020-02-14 Tom Tromey <tom@tromey.com>
3987
3988 * acinclude.m4: Don't include acx_configure_dir.m4.
3989 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3990 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3991 (all, install-only, uninstall, clean-info, clean)
3992 (maintainer-clean): Don't recurse.
3993 (subdir_do, all-lib): Remove.
3994 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3995 (GNULIB_H): Remove.
3996 (generated_files): Update.
3997 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3998 * configure: Rebuild.
3999 * configure.ac: Don't configure gnulib or libiberty.
4000 (GNULIB): Update.
4001
a9b34532
EZ
40022020-02-14 Eli Zaretskii <eliz@gnu.org>
4003
4004 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4005 preparing the command line for CreateProcess.
4006 (win32_create_inferior): Reflect the program name in debugging
4007 output that shows the process and its command line.
4008
feacfcac
SM
40092020-02-13 Simon Marchi <simon.marchi@efficios.com>
4010
4011 * Makefile.in: Rename source files from .c to .cc.
4012 * %.c: Rename to %.cc.
4013 * configure.ac: Rename server.c to server.cc.
4014 * configure: Re-generate.
4015
06b3c5bd
SM
40162020-02-13 Simon Marchi <simon.marchi@efficios.com>
4017
4018 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4019
052793ad
HD
40202020-02-12 Hannes Domani <ssbssa@yahoo.de>
4021
4022 * win32-low.c (win32_create_inferior): Set signal_pid.
4023
f20e3e82
MR
40242020-02-12 Maciej W. Rozycki <macro@wdc.com>
4025 Pedro Alves <palves@redhat.com>
4026
4027 Skip building gdbserver in a cross-configuration.
4028 * configure.srv: Set $gdbserver_host depending on whether $target
4029 is $host. Use $gdbserver_host instead of $host.
4030
8ddd8e0e
SM
40312020-02-11 Simon Marchi <simon.marchi@efficios.com>
4032
4033 * configure: Re-generate.
4034
898e7f60
SM
40352020-02-11 Simon Marchi <simon.marchi@efficios.com>
4036
4037 * configure: Re-generate.
4038
58df732b
SM
40392020-02-11 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * acinclude.m4: Update warning.m4 path.
4042
7928d571
HD
40432020-02-09 Hannes Domani <ssbssa@yahoo.de>
4044
4045 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4046 (handle_exception): Set siginfo_er.
4047 (win32_xfer_siginfo): New function.
4048
919adfe8
TT
40492020-02-07 Tom Tromey <tom@tromey.com>
4050 Pedro Alves <palves@redhat.com>
4051
4052 * README: Update build documentation.
4053 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4054 host, not target.
4055 * configure.ac: Update paths.
4056 * configure: Rebuild.
4057 * acinclude.m4: Update paths.
4058 * Makefile.in: Update include paths.
4059 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4060 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4061 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4062 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4063 (%-generated.c): Update paths.
4064 * Move entire directory from ../gdb/gdbserver.
4065
287c844a
MR
40662020-01-29 Maciej W. Rozycki <macro@wdc.com>
4067
4068 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4069
548a204f
PFC
40702020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4071
4072 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4073 assignment instead of srv_linux_obj.
4074
a2236a08
HD
40752020-01-28 Hannes Domani <ssbssa@yahoo.de>
4076
4077 * server.c (handle_qxfer_libraries): Write segment-address with
4078 paddress.
4079
bdaed379
HD
40802020-01-24 Hannes Domani <ssbssa@yahoo.de>
4081
4082 * Makefile.in (install-strip): New target.
4083 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4084 * aclocal.m4: Regenerate.
4085 * configure: Regenerate.
4086 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4087
42cd72aa
MR
40882020-01-24 Maciej W. Rozycki <macro@wdc.com>
4089
4090 * Makefile.in (SFILES): Adjust paths to point to real files.
4091 (OBS): Move waitstatus.o to target/waitstatus.o.
4092 (TAGS): Transform paths appropriately.
4093 (%.o): Rename to...
4094 (nat/%.o): ... this pattern rule.
4095 (%.o): Rename to...
4096 (target/%.o): ... this pattern rule.
4097 * configure.srv: Adjust paths throughout to include nat/ prefix
4098 with the revant files.
4099 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4100 * configure: Regenerate.
4101
42ba50ec
MR
41022020-01-24 Maciej W. Rozycki <macro@wdc.com>
4103
4104 * Makefile.in (TAGS): Remove config files from the recipe.
4105
05ea2a05
TT
41062020-01-14 Tom Tromey <tom@tromey.com>
4107
4108 * configure: Rebuild.
4109 * configure.ac: Remove any checks that were added to common.m4.
4110 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4111 lib-link.m4.
4112
01027315
TT
41132020-01-14 Tom Tromey <tom@tromey.com>
4114
4115 * server.h: Include config.h.
4116 * gdbreplay.c: Include config.h.
4117 * configure: Rebuild.
4118 * configure.ac: Don't source common.host.
4119 * acinclude.m4: Update path.
4120 * Makefile.in (INCSUPPORT): New variable.
4121 (INCLUDE_CFLAGS): Add INCSUPPORT.
4122 (SFILES): Update paths.
4123 (version-generated.c): Update path to create-version.sh.
4124 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4125
b2ceabe8
TT
41262020-01-14 Tom Tromey <tom@tromey.com>
4127
4128 * configure.ac (LIBS): Use WIN32APILIBS.
4129 (USE_WIN32API): Don't define.
4130 * configure: Rebuild.
4131
25c51f71
TT
41322020-01-14 Tom Tromey <tom@tromey.com>
4133
4134 * configure: Rebuild.
4135
c0bd321d
SM
41362020-01-13 Simon Marchi <simon.marchi@efficios.com>
4137
4138 * Makefile.in (%-generated.c): Remove rule for files from
4139 regformats/i386.
4140
bb564c58
SM
41412020-01-13 Simon Marchi <simon.marchi@efficios.com>
4142
4143 * configure: Re-generate.
4144
6e37c371
SM
41452020-01-13 Simon Marchi <simon.marchi@efficios.com>
4146
4147 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4148 Define to static.
4149 * tracepoint.c (stop_tracing, flush_trace_buffer,
4150 about_to_request_buffer_space, get_trace_state_variable_value,
4151 set_trace_state_variable_value, gdb_collect): Add declaration.
4152
df4a0200
SM
41532020-01-13 Simon Marchi <simon.marchi@efficios.com>
4154
4155 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4156 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4157 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4158 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4159 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4160 static.
4161
89e94ec9
SM
41622020-01-13 Simon Marchi <simon.marchi@efficios.com>
4163
4164 * inferiors.c: Include gdbsupport/common-inferior.h.
4165
2552728a
SM
41662020-01-13 Simon Marchi <simon.marchi@efficios.com>
4167
4168 * hostio-errno.c: Include hostio.h.
4169
4025fa09
SM
41702020-01-13 Simon Marchi <simon.marchi@efficios.com>
4171
4172 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4173 prerequisite.
4174
c0b0a142
SM
41752020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4176
4177 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4178 * linux-arm-tdesc.h: Include arch/arm.h.
4179
bb1183e2
SM
41802020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4181
4182 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4183
f5df0b5f
SM
41842020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4185
4186 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4187 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4188
5b6d1e4f
PA
41892020-01-10 Pedro Alves <palves@redhat.com>
4190
4191 * fork-child.c (post_fork_inferior): Pass target down to
4192 startup_inferior.
4193 * inferiors.c (switch_to_thread): Add process_stratum_target
4194 parameter.
4195 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4196 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4197 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4198 * remote-utils.c (prepare_resume_reply): Pass the target to
4199 switch_to_thread.
4200 * target.c (the_target): Now a process_stratum_target.
4201 (done_accessing_memory): Pass the target to switch_to_thread.
4202 (set_target_ops): Ajust to use process_stratum_target.
4203 * target.h (struct target_ops): Rename to ...
4204 (struct process_stratum_target): ... this.
4205 (the_target, set_target_ops): Adjust.
4206 (prepare_to_access_memory): Adjust comment.
4207 * win32-low.c (child_xfer_memory): Adjust to use
4208 process_stratum_target.
4209 (win32_target_ops): Now a process_stratum_target.
4210
559e7e50
EZ
42112020-01-06 Eli Zaretskii <eliz@gnu.org>
4212 Pedro Alves <palves@redhat.com>
4213
4214 * win32-low.c (get_child_debug_event): Extract the fatal exception
4215 from the exit status and convert to the equivalent Posix signal
4216 number.
4217 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4218 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4219
48189bec
HD
42202020-01-01 Hannes Domani <ssbssa@yahoo.de>
4221
4222 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4223
5dd8bf88
JB
42242020-01-01 Joel Brobecker <brobecker@adacore.com>
4225
4226 * server.c (gdbserver_version): Change copyright year to 2020.
4227 * gdbreplay.c (gdbreplay_version): Likewise.
4228
0ad6b8ee
CB
42292019-12-19 Christian Biesinger <cbiesinger@google.com>
4230
4231 * configure: Regenerate.
4232 * configure.ac: Quote variable arguments of test.
4233
1ee7b812
BE
42342019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4235
4236 * Makefile.in: Fix build with GNU Make 3.81
4237
d9fa87f4
TT
42382019-12-16 Tom Tromey <tromey@adacore.com>
4239
4240 * server.c (get_exec_file): Constify result.
4241
ab7d13f0
CB
42422019-12-10 Christian Biesinger <cbiesinger@google.com>
4243
4244 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4245 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4246 * config.in: Regenerate.
4247 * configure: Regenerate.
4248 * configure.ac: Don't check for strerror.
4249 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4250 Call safe_strerror instead of strerror.
4251 * server.h (strerror): Remove this now-unnecessary declaration.
4252 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4253 strerror.
4254 (gdb_agent_helper_thread): Likewise.
4255 * utils.c (perror_with_name): Likewise.
4256
4da8c3a8
TT
42572019-11-26 Tom Tromey <tom@tromey.com>
4258
4259 * configure, config.in: Rebuild.
4260
21987b9c
TT
42612019-11-26 Tom Tromey <tom@tromey.com>
4262
4263 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4264 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4265 gdb_sigmask.
4266 * configure, config.in: Rebuild.
4267
5e030278
TT
42682019-11-26 Tom Tromey <tom@tromey.com>
4269
4270 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4271 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4272 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4273 * acinclude.m4: Include ax_pthread.m4.
4274 * config.in, configure: Rebuild.
4275
6d91ce9a
CB
42762019-11-26 Christian Biesinger <cbiesinger@google.com>
4277
4278 * debug.c (debug_set_output): Call safe_strerror instead of
4279 strerror.
4280 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4281 (linux_kill_one_lwp): Likewise.
4282 (linux_detach_one_lwp): Likewise.
4283 (linux_wait_for_event_filtered): Likewise.
4284 (store_register): Likewise.
4285 * lynx-low.c (lynx_attach): Likewise.
4286 * mem-break.c (insert_memory_breakpoint): Likewise.
4287 (remove_memory_breakpoint): Likewise.
4288 (delete_fast_tracepoint_jump): Likewise.
4289 (set_fast_tracepoint_jump): Likewise.
4290 (uninsert_fast_tracepoint_jumps_at): Likewise.
4291 (reinsert_fast_tracepoint_jumps_at): Likewise.
4292 * nto-low.c (nto_xfer_memory): Likewise.
4293 (nto_resume): Likewise.
4294
6cdd651f
LM
42952019-11-20 Luis Machado <luis.machado@linaro.org>
4296
4297 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4298 instead of register count.
4299 * tdesc.c (tdesc_contains_feature): New function.
4300 * tdesc.h (tdesc_contains_feature): New prototype.
4301
cd850b40
CB
43022019-11-15 Christian Biesinger <cbiesinger@google.com>
4303
4304 * Makefile.in: Add safe-strerror.c.
4305 * configure: Regenerate.
4306 * configure.ac: Don't source common.host.
4307
5abebf3c
CB
43082019-11-15 Christian Biesinger <cbiesinger@google.com>
4309
4310 * config.in: Regenerate.
4311 * configure: Regenerate.
4312
e06f3d6e
AB
43132019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4314
4315 * ax.c (ax_printf): Handle size_t_arg.
4316
ca3a04f6
CB
43172019-11-06 Christian Biesinger <cbiesinger@google.com>
4318
4319 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4320 * mi/mi-main.c (output_cores): Likewise.
4321 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4322 (linux_xfer_osdata_modules): Likewise.
4323 * remote.c (register_remote_support_xml): Likewise.
4324 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4325 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4326
e48f6033
CB
43272019-11-01 Christian Biesinger <cbiesinger@google.com>
4328
4329 * configure: Regenerate.
4330 * configure.ac: Remove check for strerror_r.
4331
e7e97a2e
CB
43322019-10-31 Christian Biesinger <cbiesinger@google.com>
4333
4334 * config.in: Regenerate.
4335 * configure: Regenerate.
4336 * configure.ac: Also check for strerror_r.
4337
75cafaa6
CB
43382019-10-31 Christian Biesinger <cbiesinger@google.com>
4339
4340 * ax.h (debug_agent): Remove duplicate declaration.
4341
30baf67b
TV
43422019-10-26 Tom de Vries <tdevries@suse.de>
4343
4344 * linux-aarch64-low.c: Fix typos in comments.
4345 * linux-arm-low.c: Same.
4346 * linux-low.c: Same.
4347 * linux-ppc-low.c: Same.
4348 * proc-service.c: Same.
4349 * regcache.h: Same.
4350 * server.c: Same.
4351 * tracepoint.c: Same.
4352 * win32-low.c: Same.
4353
52c64cf7
TT
43542019-10-25 Tom Tromey <tromey@adacore.com>
4355
4356 * utils.c (xstrdup): Remove.
4357
c12d372d
TT
43582019-10-23 Tom Tromey <tom@tromey.com>
4359
4360 * configure, config.in: Rebuild.
4361
4d0b984b
TT
43622019-10-23 Tom Tromey <tom@tromey.com>
4363
4364 * configure: Rebuild.
4365 * acinclude.m4: Use m4_include, not sinclude.
4366
c5adaa19
TT
43672019-10-17 Tom Tromey <tromey@adacore.com>
4368
4369 * configure: Rebuild.
4370 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4371 in AC_CONFIG_FILES invocation.
4372 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4373 invocation.
4374
fec4e896
CB
43752019-10-16 Christian Biesinger <cbiesinger@google.com>
4376
4377 * server.c: Include xml-builtin.h.
4378 (get_xml_features): Don't declare xml_builtins here.
4379
00975ff6
AB
43802019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4381
4382 * Makefile.in: Remove references to vec-ipa.o.
4383
0dc32745
AB
43842019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4385
4386 * Makefile.in: Remove references to vec.c.
4387
3e6ec53a
CB
43882019-10-02 Christian Biesinger <cbiesinger@google.com>
4389
4390 * server.c (server_waiting): Change to bool.
4391 (extended_protocol): Likewise.
4392 (response_needed): Likewise.
4393 (exit_requested): Likewise.
4394 (run_once): Likewise.
4395 (report_no_resumed): Likewise.
4396 (non_stop): Likewise.
4397 (disable_packet_vCont): Likewise.
4398 (disable_packet_Tthread): Likewise.
4399 (disable_packet_qC): Likewise.
4400 (disable_packet_qfThreadInfo): Likewise.
4401 (handle_general_set): Update.
4402 (handle_detach): Update.
4403 (handle_monitor_command): Update.
4404 (handle_query): Update.
4405 (captured_main): Update.
4406 (process_serial_event): Update.
4407 * server.h (server_waiting): Change to bool.
4408 (disable_packet_vCont): Likewise.
4409 (disable_packet_Tthread): Likewise.
4410 (disable_packet_qC): Likewise.
4411 (disable_packet_qfThreadInfo): Likewise.
4412 (run_once): Likewise.
4413 (non_stop): Likewise.
4414 * target.c (target_stop_and_wait): Update.
4415
80fd2826
TT
44162019-10-02 Tom Tromey <tromey@adacore.com>
4417
4418 * Makefile.in (SFILES): Add common-inferior.c.
4419 (OBS): Add common-inferior.o.
4420 * server.c (startup_with_shell): Don't define.
4421
46f29a9a
AB
44222019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4423
4424 * linux-low.c (linux_low_read_btrace): Update for change to
4425 std::vector.
4426
f9d949fb
CB
44272019-09-20 Christian Biesinger <cbiesinger@google.com>
4428
4429 * debug.c (debug_threads): Remove comment in favor of the header.
4430 * debug.h (using_threads): Add declaration.
4431 (debug_threads): Add comment.
4432 * linux-aarch64-low.c: Include debug.h and remove declaration of
4433 debug_threads.
4434 * nto-low.c: Likewise.
4435 * remote-utils.c: Likewise.
4436 * thread-db.c: Likewise.
4437
abf516c6
UW
44382019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4439
4440 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4441 and powerpc-cell64l-ipa.o.
4442 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4443 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4444 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4445 (spu*-*-*): Remove.
4446
4447 * spu-low.c: Remove file.
4448
4449 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4450 (parse_spufs_run): Remove.
4451 (ppc_get_pc): Remove Cell/B.E. support.
4452 (ppc_set_pc): Likewise.
4453 (ppc_breakpoint_at): Likewise.
4454 (ppc_arch_setup): Likewise.
4455 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4456 tdesc_powerpc_cell32l.
4457 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4458 or init_registers_powerpc_cell32l.
4459 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4460 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4461 or init_registers_powerpc_cell32l.
4462 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4463 (init_registers_powerpc_cell32l): Remove prototype.
4464 (init_registers_powerpc_cell64l): Likewise.
4465
4466 * target.h (struct target_ops): Remove qxfer_spu member.
4467 * server.c (handle_qxfer_spu): Remove.
4468 (qxfer_packets): Remove entry for "spu".
4469 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4470 * linux-low.c (SPUFS_MAGIC): Remove.
4471 (spu_enumerate_spu_ids): Remove.
4472 (linux_qxfer_spu): Remove.
4473 (linux_target_ops): Remove qxfer_spu member.
4474 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4475 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4476 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4477
2d41fa11
SDJ
44782019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4479
4480 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4481 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4482 * config.in: Regenerate.
4483 * configure: Regenerate.
4484
d59b55f0
TT
44852019-08-15 Tom Tromey <tromey@adacore.com>
4486
4487 * target.c (target_write_memory): Use gdb::byte_vector.
4488
4196ab2a
TT
44892019-08-15 Tom Tromey <tromey@adacore.com>
4490
4491 * tracepoint.c (write_inferior_data_pointer)
4492 (write_inferior_integer, write_inferior_int8)
4493 (write_inferior_uinteger, m_tracepoint_action_download)
4494 (r_tracepoint_action_download, x_tracepoint_action_download)
4495 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4496 (download_agent_expr, download_tracepoint_1)
4497 (download_trace_state_variables, upload_fast_traceframes): Update.
4498 * server.c (gdb_write_memory): Update.
4499 * remote-utils.c (relocate_instruction): Update.
4500 * proc-service.c (ps_pdwrite): Update.
4501 * mem-break.c (remove_memory_breakpoint)
4502 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4503 (uninsert_fast_tracepoint_jumps_at)
4504 (reinsert_fast_tracepoint_jumps_at): Update.
4505 * linux-x86-low.c (append_insns)
4506 (i386_install_fast_tracepoint_jump_pad)
4507 (amd64_write_goto_address, i386_write_goto_address): Update.
4508 * linux-s390-low.c (append_insns, s390_write_goto_address):
4509 Update.
4510 * linux-ppc-low.c (ppc_relocate_instruction)
4511 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4512 (ppc_write_goto_address): Update.
4513 * linux-aarch64-low.c (append_insns): Update.
4514 * target.h (struct target_ops): Update.
4515 (write_inferior_memory): Don't declare.
4516 * target.c (target_write_memory): Rename from
4517 write_inferior_memory. Remove old target_write_memory.
4518
c6778d00
TT
45192019-08-15 Tom Tromey <tromey@adacore.com>
4520
4521 * target.c (write_inferior_memory): Use std::vector.
4522
404f2902
FCE
45232019-08-06 Frank Ch. Eigler <fche@redhat.com>
4524
4525 PR build/24886
4526 * configure.ac: Drop enable-libmcheck support.
4527 * configure, config.in: Rebuild.
4528 * acinclude.m4: Don't include it.
4529
4c5aa8e0
AH
45302019-07-19 Alan Hayward <alan.hayward@arm.com>
4531
4532 * configure.srv: Remove Arm xml files.
4533
7cc17433
AH
45342019-07-19 Alan Hayward <alan.hayward@arm.com>
4535
4536 * configure.srv: Add new files. Remove xml generated files.
4537 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4538 registers.
4539 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4540 * linux-aarch32-tdesc.c: New file.
4541 * linux-aarch32-tdesc.h: New file.
4542 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4543 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4544 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4545 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4546 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4547 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4548 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4549 (arm_read_description): Call arm_linux_read_description.
4550 (initialize_low_arch): Don't init registers.
4551 * linux-arm-tdesc.c: New file.
4552 * linux-arm-tdesc.h: New file.
4553
166a82be
AH
45542019-07-10 Alan Hayward <alan.hayward@arm.com>
4555
4556 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4557 Move counter inside for.
4558 (arm_read_description): Check ptrace earlier.
4559 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4560
268a13a5
TT
45612019-07-09 Tom Tromey <tom@tromey.com>
4562
4563 * configure: Rebuild.
4564 * configure.ac: Change common to gdbsupport.
4565 * acinclude.m4: Change common to gdbsupport.
4566 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4567 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4568 common to gdbsupport.
4569 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4570 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4571 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4572 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4573 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4574 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4575 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4576 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4577 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4578 common to gdbsupport.
4579
350fab54
AH
45802019-07-04 Alan Hayward <alan.hayward@arm.com>
4581
4582 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4583 defines.
4584 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4585
2b40fda7
AH
45862019-07-04 Alan Hayward <alan.hayward@arm.com>
4587
4588 * configure.srv: Remove legacy xml.
4589 * linux-aarch64-low.c (initialize_low_arch): Remove
4590 initialize_low_tdesc call.
4591 * linux-aarch64-tdesc-selftest.c: Remove file.
4592 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4593 * linux-x86-low.c (initialize_low_arch): Remove
4594 initialize_low_tdesc call.
4595 * linux-x86-tdesc-selftest.c: Remove file.
4596 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4597
7d10623d
TV
45982019-06-20 Tom de Vries <tdevries@suse.de>
4599
4600 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4601 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4602
8d6a48df
TV
46032019-06-19 Tom de Vries <tdevries@suse.de>
4604
4605 * debug.h (debug_write): Change return type to ssize_t.
4606 * debug.c (debug_write): Same.
4607
73cc7272
TT
46082019-06-14 Tom Tromey <tom@tromey.com>
4609
4610 * configure.ac: Use new path to gnulib.
4611 * configure: Rebuild.
4612 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4613 to gnulib.
4614
08f10e02
TT
46152019-06-11 Tom Tromey <tom@tromey.com>
4616
4617 * Makefile.in (SFILES): Add alloc.c.
4618 (OBS): Add alloc.o.
4619 (IPA_OBJS): Add alloc-ipa.o.
4620 (alloc-ipa.o): New target.
4621 (%.o: ../%.c): New pattern rule.
4622
422186a9
TT
46232019-06-10 Tom Tromey <tromey@adacore.com>
4624
4625 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4626 end warning with a newline.
4627 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4628 newline.
4629 * thread-db.c (attach_thread): Don't end warning with a newline.
4630 (thread_db_notice_clone): Likewise.
4631 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4632 newline.
4633 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4634 end warning with a newline.
4635
b02f78f9
PA
46362019-06-04 Pedro Alves <palves@redhat.com>
4637
4638 * server.c (captured_main): Use make_unique_xstrdup.
4639
88ed7edb
TT
46402019-06-02 Tom Tromey <tom@tromey.com>
4641
4642 * gdbreplay.c (fromhex): Remove.
4643 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4644
33a6bc35
TT
46452019-05-29 Tom Tromey <tromey@adacore.com>
4646
4647 * configure: Rebuild.
4648
e90a813d
KB
46492019-05-06 Kevin Buettner <kevinb@redhat.com>
4650
4651 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4652 sign extension code on 32-bit builds.
4653
353ea2d1
EZ
46542019-05-03 Eli Zaretskii <eliz@gnu.org>
4655
4656 * remote-utils.c:
4657 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4658
b494cdff
TT
46592019-04-19 Tom Tromey <tom@tromey.com>
4660
4661 * server.c (struct vstop_notif): Derive from notif_event.
4662 <base>: Remove.
4663 (queue_stop_reply): Update.
4664 (remove_all_on_match_ptid): Change type. Rewrite.
4665 (discard_queued_stop_replies): Rewrite.
4666 (in_queued_stop_replies_ptid): Change type.
4667 (in_queued_stop_replies): Rewrite.
4668 (notif_stop): Update.
4669 (queue_stop_reply_callback): Update.
4670 (captured_main): Don't call initialize_notif.
4671 (push_stop_notification): Update.
4672 * notif.c (notif_write_event, handle_notif_ack)
4673 (notif_event_enque, notif_push): Update.
4674 (notif_event_xfree, initialize_notif): Remove.
4675 * notif.h (struct notif_event): Include <list>, not
4676 "common/queue.h".
4677 (struct notif_server) <queue>: Now a std::list.
4678 (notif_event_p): Remove typedef.
4679 (initialize_notif): Don't declare.
4680 (struct notif_event): Add virtual destructor.
4681
a7e559cc
AH
46822019-04-17 Alan Hayward <alan.hayward@arm.com>
4683
4684 * ax.c (ax_vdebug): Call debug_printf.
4685 * debug.c (debug_write): New function.
4686 * debug.h (debug_write): New declaration.
4687 * linux-low.c (sigchld_handler): Call debug_write.
4688
aeb2e706
AH
46892019-04-17 Alan Hayward <alan.hayward@arm.com>
4690
4691 * debug.c (debug_set_output): New function.
4692 (debug_vprintf): Send output to debug_file.
4693 (debug_flush): Likewise.
4694 * debug.h (debug_set_output): New declaration.
4695 * server.c (handle_monitor_command): Add debug-file option.
4696 (captured_main): Likewise.
4697
c1bc0935
AH
46982019-04-17 Alan Hayward <alan.hayward@arm.com>
4699
4700 * debug.c (remote_debug): Add definition.
4701 * debug.h (remote_debug): Add declaration.
4702 * hostio.c (remote_debug): Remove declaration.
4703 * remote-utils.c (struct ui_file): Likewise.
4704 (remote_debug): Likewise.
4705 * remote-utils.h (remote_debug): Likewise,
4706 * server.c (remote_debug): Remove definition.
4707
3f52fdbc
KB
47082019-04-10 Kevin Buettner <kevinb@redhat.com>
4709
4710 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4711 when using a 64-bit gdbserver.
4712
b0319eaa
TT
47132019-04-09 Tom Tromey <tromey@adacore.com>
4714
4715 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4716
eedc3f4f
TT
47172019-04-08 Tom Tromey <tom@tromey.com>
4718
4719 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4720 throw.
4721 (linux_resume_one_lwp): Likewise.
4722
230d2906
TT
47232019-04-08 Tom Tromey <tom@tromey.com>
4724
4725 * gdbreplay.c: Update.
4726 * linux-low.c: Update.
4727 * server.c: Update.
4728
a70b8144
TT
47292019-04-08 Tom Tromey <tom@tromey.com>
4730
4731 * server.c: Use C++ exception handling.
4732 * linux-low.c: Use C++ exception handling.
4733 * gdbreplay.c: Use C++ exception handling.
4734
3d6e9d23
TT
47352019-04-08 Tom Tromey <tom@tromey.com>
4736
4737 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4738 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4739 (captured_main, main): Update.
4740 * gdbreplay.c (main): Update.
4741
0570503d
PFC
47422019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4743
4744 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4745 value in argument pointer, return 1 if the entry is found and 0
4746 otherwise. Move comment.
4747 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4748 * linux-low.h (linux_get_auxv): Declare.
4749 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4750
227a9e65
TT
47512019-04-05 Tom Tromey <tromey@adacore.com>
4752
4753 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4754 variables.
4755
69f4c9cc
AH
47562019-03-28 Alan Hayward <alan.hayward@arm.com>
4757
4758 * linux-low.c (AT_HWCAP2): Add define if not already included.
4759
974c89e0
AH
47602019-03-26 Alan Hayward <alan.hayward@arm.com>
4761
4762 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4763 (aarch64_arch_setup): Call linux_get_hwcap.
4764 * linux-arm-low.c (arm_get_hwcap): Remove function.
4765 (arm_read_description): Call linux_get_hwcap.
4766 * linux-low.c (linux_get_auxv): New function.
4767 (linux_get_hwcap): Likewise.
4768 (linux_get_hwcap2): Likewise.
4769 * linux-low.h (linux_get_hwcap): New declaration.
4770 (linux_get_hwcap2): Likewise.
4771 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4772 (ppc_arch_setup): Call linux_get_hwcap.
4773 * linux-s390-low.c (s390_get_hwcap): Remove function.
4774 (s390_arch_setup): Call linux_get_hwcap.
4775
1ef53e6b
AH
47762019-03-22 Alan Hayward <alan.hayward@arm.com>
4777 Jiong Wang <jiong.wang@arm.com>
4778
4779 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4780 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4781 to fail.
4782 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4783
ee4fbcfa
AH
47842019-03-22 Alan Hayward <alan.hayward@arm.com>
4785 Jiong Wang <jiong.wang@arm.com>
4786
4787 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4788 (aarch64_get_hwcap): New function.
4789 (aarch64_arch_setup): Read APIA hwcap.
4790
6dc0ebde
AH
47912019-03-22 Alan Hayward <alan.hayward@arm.com>
4792 Jiong Wang <jiong.wang@arm.com>
4793
4794 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4795 (initialize_low_tracepoint): Likewise.
4796 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4797 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4798 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4799 (aarch64_linux_read_description): Likewise.
4800 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4801
1163a4b7
JB
48022019-03-12 John Baldwin <jhb@FreeBSD.org>
4803
4804 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4805 i386_create_target_description for 'segments' parameter.
4806 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4807 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4808 * win32-i386-low.c (i386_arch_setup): Likewise.
4809
d3a70e03
TT
48102019-03-12 Tom Tromey <tromey@adacore.com>
4811
4812 * linux-low.c (iterate_over_lwps): Update.
4813
37991b4f
TT
48142019-03-06 Tom Tromey <tom@tromey.com>
4815
4816 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4817 (captured_main): Use SCOPE_EXIT.
4818
45950eb6
SDJ
48192019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4820
4821 * configure.srv: Use '$enable_unittest' instead of '$development'
4822 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4823 case.
4824
43ac54fc
TT
48252019-02-27 Tom Tromey <tromey@adacore.com>
4826
4827 * gdbreplay.c (logchar): Handle \r\n.
4828
df0da8a2
AH
48292019-02-07 Alan Hayward <alan.hayward@arm.com>
4830
4831 * linux-low.c (linux_attach): Add process before lwp.
4832 * server.c (attach_inferior): Check if already attached.
4833
1a5c2598
TT
48342019-02-07 Tom Tromey <tom@tromey.com>
4835
4836 * x86-tdesc.h: Rename include guard.
4837 * x86-low.h: Add include guard.
4838 * wincecompat.h: Rename include guard.
4839 * win32-low.h: Add include guard.
4840 * utils.h: Rename include guard.
4841 * tracepoint.h: Rename include guard.
4842 * tdesc.h: Rename include guard.
4843 * target.h: Rename include guard.
4844 * server.h: Rename include guard.
4845 * remote-utils.h: Rename include guard.
4846 * regcache.h: Rename include guard.
4847 * nto-low.h: Rename include guard.
4848 * notif.h: Add include guard.
4849 * mem-break.h: Rename include guard.
4850 * lynx-low.h: Add include guard.
4851 * linux-x86-tdesc.h: Add include guard.
4852 * linux-s390-tdesc.h: Add include guard.
4853 * linux-ppc-tdesc-init.h: Add include guard.
4854 * linux-low.h: Add include guard.
4855 * linux-aarch64-tdesc.h: Add include guard.
4856 * linux-aarch32-low.h: Add include guard.
4857 * inferiors.h: Rename include guard.
4858 * i387-fp.h: Rename include guard.
4859 * hostio.h: Rename include guard.
4860 * gdbthread.h: Rename include guard.
4861 * gdb_proc_service.h: Rename include guard.
4862 * event-loop.h: Rename include guard.
4863 * dll.h: Rename include guard.
4864 * debug.h: Rename include guard.
4865 * ax.h: Rename include guard.
4866
956cc47c
SN
48672018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4868
4869 PR gdb/23985
4870 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4871 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4872
a0707f3c
TT
48732019-01-25 Tom Tromey <tom@tromey.com>
4874
4875 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4876
0747795c
TT
48772019-01-25 Tom Tromey <tom@tromey.com>
4878
4879 * win32-low.c: Fix common/ includes.
4880 * win32-i386-low.c: Fix common/ includes.
4881 * tracepoint.c: Fix common/ includes.
4882 * thread-db.c: Fix common/ includes.
4883 * target.h: Fix common/ includes.
4884 * symbol.c: Fix common/ includes.
4885 * spu-low.c: Fix common/ includes.
4886 * server.h: Fix common/ includes.
4887 * server.c: Fix common/ includes.
4888 * remote-utils.c: Fix common/ includes.
4889 * regcache.h: Fix common/ includes.
4890 * regcache.c: Fix common/ includes.
4891 * nto-x86-low.c: Fix common/ includes.
4892 * notif.h: Fix common/ includes.
4893 * mem-break.h: Fix common/ includes.
4894 * lynx-low.c: Fix common/ includes.
4895 * lynx-i386-low.c: Fix common/ includes.
4896 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4897 * linux-x86-low.c: Fix common/ includes.
4898 * linux-low.c: Fix common/ includes.
4899 * inferiors.h: Fix common/ includes.
4900 * i387-fp.c: Fix common/ includes.
4901 * hostio.c: Fix common/ includes.
4902 * hostio-errno.c: Fix common/ includes.
4903 * gdbthread.h: Fix common/ includes.
4904 * gdbreplay.c: Fix common/ includes.
4905 * fork-child.c: Fix common/ includes.
4906 * event-loop.c: Fix common/ includes.
4907 * ax.c:
4908 (enum gdb_agent_op): Fix common/ includes.
4909
be6d4f74
TT
49102019-01-21 Tom Tromey <tom@tromey.com>
4911
4912 * tracepoint.c: Fix includes.
4913 * remote-utils.c: Fix includes.
4914 * linux-x86-low.c: Fix includes.
4915
66d91b39
JB
49162019-01-01 Joel Brobecker <brobecker@adacore.com>
4917
4918 * gdbreplay.c (gdbreplay_version): Update copyright year in
4919 version message.
4920 * server.c (gdbserver_version): Likewise.
4921
754e3168
AH
49222018-12-05 Alan Hayward <alan.hayward@arm.com>
4923
4924 * linux-low.c (add_lwp): Switch ordering.
4925
d105de22
TT
49262018-11-29 Tom Tromey <tom@tromey.com>
4927
4928 * win32-low.c (win32_join): Take pid, not process.
4929 * target.h (struct target_ops) <join>: Change argument type.
4930 (join_inferior): Change argument name.
4931 * spu-low.c (spu_join): Take pid, not process.
4932 * server.c (handle_detach): Preserve pid before destroying
4933 process.
4934 * lynx-low.c (lynx_join): Take pid, not process.
4935 * linux-low.c (linux_join): Take pid, not process.
4936
50138245
AH
49372018-11-23 Alan Hayward <alan.hayward@arm.com>
4938
4939 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4940 (aarch64_cannot_fetch_register): Likewise.
4941 (struct linux_target_ops): Update references.
4942
64f57f3d
PFC
49432018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4944
4945 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4946
8d619c01
EBM
49472018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4948
4949 * configure.srv (ipa_ppc_linux_regobj): Add
4950 powerpc-isa207-htm-vsx32l-ipa.o and
4951 powerpc-isa207-htm-vsx64l-ipa.o.
4952 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4953 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4954 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4955 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4956 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4957 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4958 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4959 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4960 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4961 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4962 (init_registers_powerpc_isa207_htm_vsx32l)
4963 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4964 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4965 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4966 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4967 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4968 (ppc_store_tm_ctarregset): New functions.
4969 (ppc_regsets): Add entries for HTM regsets.
4970 (ppc_arch_setup): Set htm in features struct when needed. Set
4971 sizes for the HTM regsets.
4972 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4973 (initialize_low_arch): Call
4974 init_registers_powerpc_isa207_htm_vsx32l and
4975 init_registers_powerpc_isa207_htm_vsx64l.
4976 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4977 PPC_TDESC_ISA207_HTM_VSX.
4978 (initialize_low_tracepoint): Call
4979 init_registers_powerpc_isa207_htm_vsx32l and
4980 init_registers_powerpc_isa207_htm_vsx64l.
4981
232bfb86
EBM
49822018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4983
4984 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4985 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4986 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4987 (ppc_store_pmuregset): New functions.
4988 (ppc_regsets): Add entries for ebb and pmu regsets.
4989 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4990 pmu regsets are available. Set sizes for these regsets.
4991
f2cf6173
EBM
49922018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4993
4994 * configure.srv (ipa_ppc_linux_regobj): Add
4995 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4996 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4997 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4998 rs6000/powerpc-isa207-vsx32l.xml, and
4999 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5000 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5001 <PPC_TDESC_ISA207_VSX>: New enum value.
5002 (init_registers_powerpc_isa207_vsx32l): Declare.
5003 (init_registers_powerpc_isa207_vsx64l): Declare.
5004 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5005 (ppc_store_tarregset): New function.
5006 (ppc_regsets): Add entry for the TAR regset.
5007 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5008 size for the TAR regsets.
5009 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5010 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5011 and init_registers_powerpc_isa207_vsx64l.
5012 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5013 (initialize_low_tracepoint): Call
5014 init_registers_powerpc_isa207_vsx32l and
5015 init_registers_powerpc_isa207_vsx64l.
5016
7ca18ed6
EBM
50172018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5018 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5019
5020 * configure.srv (ipa_ppc_linux_regobj): Add
5021 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5022 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5023 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5024 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5025 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5026 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5027 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5028 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5029 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5030 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5031 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5032 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5033 (ppc_hwcap): Add comment.
5034 (ppc_hwcap2): New global.
5035 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5036 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5037 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5038 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5039 when needed. Set sizes for the the DSCR and PPR regsets.
5040 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5041 (initialize_low_arch): Call
5042 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5043 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5044 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5045 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5046 (initialize_low_tracepoint): Call
5047 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5048 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5049
5c849b22
PFC
50502018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5051
5052 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5053
8ecfd7bd
SDJ
50542018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5055 Simon Marchi <simark@simark.ca>
5056
5057 * acinclude.m4: Include "../selftest.m4".
5058 * configure: Regenerate.
5059 * configure.ac: Use "GDB_AC_SELFTEST".
5060 * configure.srv: Use "$enable_unittests" instead of
5061 "$development" when checking whether unit tests have been
5062 enabled.
5063 * server.c (captured_main): Update message informing that
5064 selftests have been disabled.
5065
96643e35
TT
50662018-10-04 Tom Tromey <tom@tromey.com>
5067
5068 * configure: Rebuild.
5069
da4ae14a
TT
50702018-10-04 Tom Tromey <tom@tromey.com>
5071
5072 * server.c (handle_status): Rename inner "thread".
5073 (process_serial_event): Declare "res" in 'm' case.
5074 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5075 (iterate_over_lwps): Rename inner "thread".
5076 (linux_qxfer_libraries_svr4): Rename inner "len".
5077 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5078
7c619dbd
GB
50792018-10-01 Gary Benson <gbenson@redhat.com>
5080
5081 * gdb_proc_service.h: Moved common code to
5082 common/gdb_proc_service.h.
5083
3795e814
GB
50842018-10-01 Gary Benson <gbenson@redhat.com>
5085
5086 * gdb_proc_service.h: Synchronize comments and whitespace with
5087 GDB's version of this file.
5088
49b036f1
TT
50892018-09-25 Tom Tromey <tom@tromey.com>
5090
5091 * configure: Rebuild.
5092 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5093
8ff03f0b
SM
50942018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5095
5096 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5097 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5098 ($(IPA_LIB)): Sort IPA_OBJS.
5099
a1cd91dc
SM
51002018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5101
5102 * Makefile.in: Remove references to $(ADD_DEPS).
5103
752312ba
TT
51042018-09-16 Tom Tromey <tom@tromey.com>
5105
5106 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5107 variables.
5108 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5109 variables.
5110
f1628857
TT
51112018-09-05 Tom Tromey <tom@tromey.com>
5112
5113 * configure: Rebuild.
5114
ad202fcc
SM
51152018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5116
5117 PR build/23399
5118 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5119
d3d8724a
TT
51202018-08-27 Tom Tromey <tom@tromey.com>
5121
5122 PR build/23087:
5123 * configure: Rebuild.
5124
b4f183d2
TT
51252018-08-27 Tom Tromey <tom@tromey.com>
5126
5127 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5128 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5129 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5130 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5131 (s390x_emit_stack_adjust): Add casts to unsigned char.
5132
4e2aa472
SM
51332018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5134
5135 PR gdb/23374
5136 PR gdb/23375
5137 * server.h (struct client_state) <disable_randomization>:
5138 Initialize to 1.
5139
cf4088a9
SM
51402018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5141
5142 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5143 variable.
5144 (mips_supply_ptrace_register): Likewise.
5145
a0de763e
TT
51462018-07-22 Tom Tromey <tom@tromey.com>
5147
5148 * configure: Rebuild.
5149
b0a7723d
TT
51502018-07-22 Tom Tromey <tom@tromey.com>
5151
5152 * win32-low.c (win32_create_inferior): Remove unused variables.
5153 * gdbreplay.c (remote_open): Remove unused variable.
5154 * remote-utils.c (remote_prepare): Remove unused variable.
5155 * x86-tdesc.h (X86_TDESC_H): Define.
5156 (amd64_expedite_regs): Define conditionally.
5157 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5158 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5159 * remote-utils.c (readchar): Remove unused variable.
5160
a780ef4f
PA
51612018-07-13 Pedro Alves <palves@redhat.com>
5162
5163 * linux-low.c (linux_kill): Change parameter to process_info
5164 pointer instead of pid. Adjust.
5165 * lynx-low.c (lynx_kill): Likewise.
5166 * nto-low.c (nto_kill): Likewise.
5167 * spu-low.c (spu_kill): Likewise.
5168 * win32-low.c (win32_kill): Likewise.
5169 * server.c (handle_v_kill, kill_inferior_callback)
5170 (detach_or_kill_for_exit): Adjust.
5171 * target.c (kill_inferior): Change parameter to process_info
5172 pointer instead of pid. Adjust.
5173 * target.h (struct target_ops) <kill>: Change parameter to
5174 process_info pointer instead of pid. Adjust all implementations
5175 and callers.
5176 (kill_inferior): Likewise.
5177
ef2ddb33
PA
51782018-07-13 Pedro Alves <palves@redhat.com>
5179
5180 * linux-low.c (linux_detach, linux_join): Change parameter to
5181 process_info pointer instead of pid. Adjust.
5182 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5183 * nto-low.c (nto_detach): Likewise.
5184 * spu-low.c (spu_detach, spu_join): Likewise.
5185 * win32-low.c (win32_detach, win32_join): Likewise.
5186 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5187 * target.h (struct target_ops) <detach, join>: Change parameter to
5188 process_info pointer instead of pid. Adjust all implementations
5189 and callers.
5190 (detach_inferior, join_inferior): Rename 'pid' parameter to
5191 'proc'.
5192
c7ab0aef
SDJ
51932018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5194 Jan Kratochvil <jan.kratochvil@redhat.com>
5195 Paul Fertser <fercerpav@gmail.com>
5196 Tsutomu Seki <sekiriki@gmail.com>
5197
5198 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5199 (OBS): Add 'common/netstuff.o'.
5200 (GDBREPLAY_OBS): Likewise.
5201 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5202 (remote_open): Implement support for IPv6
5203 connections.
5204 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5205 and 'wspiapi.h'.
5206 (handle_accept_event): Accept connections from IPv6 sources.
5207 (remote_prepare): Handle IPv6-style hostnames; implement
5208 support for IPv6 connections.
5209 (remote_open): Implement support for printing connections from
5210 IPv6 sources.
5211
31445d10
PA
52122018-07-11 Pedro Alves <palves@redhat.com>
5213
5214 PR gdb/23377
5215 * mem-break.c (any_persistent_commands): Add process_info
5216 parameter and use it instead of relying on the current process.
5217 Change return type to bool.
5218 * mem-break.h (any_persistent_commands): Add process_info
5219 parameter and change return type to bool.
5220 * server.c (handle_detach): Remove require_running_or_return call.
5221 Look up the process_info for the process we're about to detach.
5222 If not found, return back error to GDB. Adjust
5223 any_persistent_commands call to pass down a process pointer.
5224
cb197132
PA
52252018-07-11 Pedro Alves <palves@redhat.com>
5226
5227 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5228 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5229 instead of collect_register_by_name.
5230 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5231 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5232
1b919490
VB
52332018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5234 Pedro Alves <palves@redhat.com>
5235
5236 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5237
d7e15655
TT
52382018-07-03 Tom Tromey <tom@tromey.com>
5239
5240 * linux-low.c: Update.
5241 * lynx-low.c: Update.
5242 * mem-break.c: Update.
5243 * nto-low.c: Update.
5244 * remote-utils.c: Update.
5245 * server.c: Update.
5246 * spu-low.c: Update.
5247 * target.c: Update.
5248 * win32-low.c: Update.
5249
26a57c92
TT
52502018-07-03 Tom Tromey <tom@tromey.com>
5251
5252 * server.c: Update.
5253
0e998d96
TT
52542018-07-03 Tom Tromey <tom@tromey.com>
5255
5256 * linux-low.c: Update.
5257
cc6bcb54
TT
52582018-07-03 Tom Tromey <tom@tromey.com>
5259
5260 * target.c: Update.
5261
e38504b3
TT
52622018-07-03 Tom Tromey <tom@tromey.com>
5263
5264 * linux-low.c: Update.
5265 * linux-mips-low.c: Update.
5266 * lynx-low.c: Update.
5267 * nto-low.c: Update.
5268 * remote-utils.c: Update.
5269 * server.c: Update.
5270 * spu-low.c: Update.
5271 * target.c: Update.
5272 * thread-db.c: Update.
5273
e99b03dc
TT
52742018-07-03 Tom Tromey <tom@tromey.com>
5275
5276 * linux-low.c: Update.
5277 * linux-mips-low.c: Update.
5278 * lynx-low.c: Update.
5279 * mem-break.c: Update.
5280 * nto-low.c: Update.
5281 * remote-utils.c: Update.
5282 * server.c: Update.
5283 * spu-low.c: Update.
5284 * target.c: Update.
5285 * tracepoint.c: Update.
5286
f2907e49
TT
52872018-07-03 Tom Tromey <tom@tromey.com>
5288
5289 * linux-low.c: Update.
5290 * linux-ppc-low.c: Update.
5291 * linux-x86-low.c: Update.
5292 * proc-service.c: Update.
5293 * server.c: Update.
5294 * spu-low.c: Update.
5295 * thread-db.c: Update.
5296 * win32-low.c: Update.
5297
fd79271b
TT
52982018-07-03 Tom Tromey <tom@tromey.com>
5299
5300 * linux-low.c: Update.
5301 * lynx-low.c: Update.
5302 * nto-low.c: Update.
5303 * remote-utils.c: Update.
5304 * spu-low.c: Update.
5305 * thread-db.c: Update.
5306 * win32-low.c: Update.
5307
c0867626
SDJ
53082018-06-29 Joel Brobecker <brobecker@adacore.com>
5309
5310 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5311 parameter in call to 'amd64_create_target_description'.
5312
2512d7ef
JK
53132018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5314
5315 * x86-tdesc.h: Remove executable permission flag.
5316
d0ac1c44
SM
53172018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5318
5319 * configure.ac: Remove AC_PREREQ, add missing quoting.
5320 * configure: Re-generate.
5321 * config.in: Re-generate.
5322 * aclocal.m4: Re-generate.
5323
c4eb05ff
SM
53242018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5325
5326 * tracepoint.h (current_traceframe): Remove declaration.
5327
02895270
AH
53282018-06-18 Alan Hayward <alan.hayward@arm.com>
5329
5330 * linux-aarch64-low.c (is_sve_tdesc): New function.
5331 (aarch64_sve_regs_copy_to_regcache): Likewise.
5332 (aarch64_sve_regs_copy_from_regcache): Likewise.
5333 (aarch64_regs_info): Add SVE checks.
5334 (initialize_low_arch): Initialize SVE.
5335
e9902bfc
AH
53362018-06-18 Alan Hayward <alan.hayward@arm.com>
5337
5338 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5339
fefa175e
AH
53402018-06-11 Alan Hayward <alan.hayward@arm.com>
5341
5342 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5343 (initialize_low_tracepoint): Likewise
5344 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5345 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5346 param.
5347 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5348 checks.
5349 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5350
b91ad3ff
AH
53512018-06-11 Alan Hayward <alan.hayward@arm.com>
5352
5353 * server.h (PBUFSIZ): Increase size
5354
f868386e
AH
53552018-06-11 Alan Hayward <alan.hayward@arm.com>
5356
5357 * regcache.c (regcache::raw_compare): New function.
5358 * regcache.h (regcache::raw_compare): New declaration.
5359
9c861883
AH
53602018-06-11 Alan Hayward <alan.hayward@arm.com>
5361
5362 * regcache.c (new_register_cache): Use new.
5363 (free_register_cache): Use delete.
5364 (register_data): Use const.
5365 (supply_register): Move body inside regcache.
5366 (regcache::raw_supply): New override function.
5367 (collect_register): Move body inside regcache.
5368 (regcache::raw_collect): New override function.
5369 (regcache::get_register_status): New override function.
5370 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5371
40591844
TT
53722018-06-09 Tom Tromey <tom@tromey.com>
5373
5374 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5375 declare queue.
5376 (event_queue): Use std::queue.
5377 (gdb_event_xfree): Remove.
5378 (initialize_event_loop, process_event, wait_for_event): Update.
5379
6341380d
SC
53802018-06-08 Stan Cox <scox@redhat.com>
5381
5382 * win32-low.c (win32_create_inferior): last_ptid and last_status
5383 moved to client_state.
5384
03349c93
PA
53852018-06-08 Pedro Alves <palves@redhat.com>
5386
5387 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5388 common/common-exceptions.o, common/common-utils.o,
5389 common/errors.o, common/print-utils.o and utils.o.
5390 * gdbreplay.c: Include "common-defs.h" instead of the two
5391 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5392 string.h or alloca.h.
5393 (perror_with_name): Delete.
5394 (remote_open): Use xstrdup instead of strdup.
5395 (main): Rename to ...
5396 (captured_main): ... this.
5397 (main): New.
5398
8dcc53b3
TT
53992018-06-08 Tom Tromey <tom@tromey.com>
5400
5401 * linux-low.c (linux_low_read_btrace): Update.
5402
c12a5089
SC
54032018-06-04 Stan Cox <scox@redhat.com>
5404
5405 * server.h (struct client_state): New.
5406 * server.c (cont_thread, general_thread, multi_process)
5407 (report_fork_events, report_vfork_events, report_exec_events)
5408 (report_thread_events, swbreak_feature, hwbreak_feature)
5409 (vCont_supported, disable_randomization, pass_signals)
5410 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5411 Moved to client_state.
5412 * remote-utils.c (remote_debug, noack_mode)
5413 (transport_is_reliable): Moved to client_state.
5414 * tracepoint.c (current_traceframe): Moved to client_state.
5415
5416 Update all callers.
5417 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5418 linux-low.c, remote-utils.h, target.c: Use client_state.
5419
122394f1
AH
54202018-05-31 Alan Hayward <alan.hayward@arm.com>
5421
5422 * configure.srv: Add new c/h file.
5423
95228a0d
AH
54242018-05-31 Alan Hayward <alan.hayward@arm.com>
5425
5426 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5427 null VQ.
5428
d8dab6c3
MR
54292018-05-25 Maciej W. Rozycki <macro@mips.com>
5430
5431 * gdb.arch/mips-fpregset-core.exp: New test.
5432 * gdb.arch/mips-fpregset-core.c: New test source.
5433
81e25b7c
EK
54342018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5435
5436 PR server/23198
5437 * hostio.c (require_int): Do not report overflow for integers
5438 between 0xfffffff and 0x7fffffff.
5439
7e947ad3
MR
54402018-05-22 Maciej W. Rozycki <macro@mips.com>
5441
5442 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5443 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5444 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5445 functions.
5446 (the_low_target): Wire them.
5447
1d75a658
PFC
54482018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5449
5450 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5451 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5452 mode. Call collect_register_by_name with vscr using
5453 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5454 (ppc_store_vrregset): Add and set vscr_offset variable as in
5455 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5456 vscr_offset.
5457
d078308a
PFC
54582018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5459
5460 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5461 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5462 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5463
7273b5fc
PFC
54642018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5465
5466 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5467 (ppc_store_vsxregset): Likewise.
5468 (ppc_fill_vrregset): Likewise.
5469 (ppc_store_vrregset): Likewise.
5470 (ppc_fill_evrregset): Likewise.
5471 (ppc_store_evrregset): Likewise.
5472 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5473 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5474 needed.
5475
2e077f5e
PFC
54762018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5477
5478 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5479 wordsize of the inferior. Call ppc_linux_target_wordsize.
5480
bd64614e
PFC
54812018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5482
5483 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5484 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5485 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5486 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5487 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5488 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5489 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5490 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5491 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5492 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5493 (tdesc_powerpc_e500l): Remove.
5494 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5495 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5496 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5497 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5498 linux-ppc-tdesc.h.
5499 (ppc_arch_setup): Remove target description matching code. Fill a
5500 ppc_linux_features struct and call ppc_linux_match_description
5501 with it.
5502
75d74cca
MR
55032018-05-22 Maciej W. Rozycki <macro@mips.com>
5504
5505 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5506 width of the requested register exceeds the width of the
5507 `ptrace' data type.
5508 (mips_cannot_store_register): Likewise.
5509
e4439e43
MR
55102018-05-21 Maciej W. Rozycki <macro@mips.com>
5511
5512 * linux-mips-low.c (mips_fetch_register): New function. Update
5513 preceding comment.
5514 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5515 (the_low_target): Wire `mips_fetch_register'.
5516
55271bf9
JB
55172018-05-10 Joel Brobecker <brobecker@adacore.com>
5518
5519 * lynx-i386-low.c (LYNXOS_178): New macro.
5520 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5521 the layout on LynxOS-178.
5522 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5523 handle floating point registers that are not supported by
5524 LynxOS-178.
5525
1a34f210
TT
55262018-05-10 Tom Tromey <tom@tromey.com>
5527
5528 * configure: Rebuild.
5529
190852c8
JB
55302018-05-10 Joel Brobecker <brobecker@adacore.com>
5531
5532 PR server/23158:
5533 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5534 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5535 Use it to set the expedite_regs field in the given tdesc.
5536 * x86-tdesc.h: New file.
5537 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5538 Adjust following the addition of the new expedite_regs parameter
5539 to init_target_desc.
5540 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5541 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5542 (i386_linux_read_description, amd64_linux_read_description):
5543 Adjust following the addition of the new expedite_regs parameter
5544 to init_target_desc.
5545 * lynx-i386-low.c: #include "x86-tdesc.h".
5546 (lynx_i386_arch_setup): Adjust following the addition of the new
5547 expedite_regs parameter to init_target_desc.
5548 * nto-x86-low.c: #include "x86-tdesc.h".
5549 (nto_x86_arch_setup): Adjust following the addition of the new
5550 expedite_regs parameter to init_target_desc.
5551 * win32-i386-low.c: #include "x86-tdesc.h".
5552 (i386_arch_setup): Adjust following the addition of the new
5553 expedite_regs parameter to init_target_desc.
5554
7dbac825
JB
55552018-05-10 Joel Brobecker <brobecker@adacore.com>
5556
5557 PR server/23158:
5558 * win32-low.c (win32_create_inferior): Add call to my_wait
5559 setting last_status global.
5560
906994d9
JB
55612018-05-10 Joel Brobecker <brobecker@adacore.com>
5562
5563 PR server/23158:
5564 * win32-low.c (create_process): Only call gdb_tilde_expand if
5565 inferior_cwd is not NULL.
5566
8ee22052
AB
55672018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5568
5569 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5570 registers to the cache if their values have changed.
5571 (i387_xsave_to_cache): Provide default values for x87 control
5572 registers when these features are available, but disabled.
5573 * regcache.c (supply_register_by_name_zeroed): New function.
5574 * regcache.h (supply_register_by_name_zeroed): Declare new
5575 function.
5576
aff689d3
TT
55772018-05-07 Tom Tromey <tom@tromey.com>
5578
5579 * configure: Rebuild.
5580
85e26832
TT
55812018-05-04 Tom Tromey <tom@tromey.com>
5582
5583 * configure: Rebuild.
5584
a3b60e45
JK
55852018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5586 Pedro Alves <palves@redhat.com>
5587
5588 * linux-aarch64-low.c (aarch64_stopped_data_address):
5589 Likewise.
5590
632e107b
TT
55912018-04-27 Tom Tromey <tom@tromey.com>
5592
5593 * configure: Rebuild.
5594
458412c3
TT
55952018-04-23 Tom Tromey <tom@tromey.com>
5596
5597 * configure: Rebuild.
5598
f31c089e
SM
55992018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5600
5601 * Makefile.in (depcomp): Add "..".
5602 (all_deps_files): New and use it.
5603
b319b098
AH
56042018-04-18 Alan Hayward <alan.hayward@arm.com>
5605
5606 * configure.srv (aarch64*-*-linux*): Don't include xml.
5607 (i[34567]86-*-cygwin*): Likewise.
5608 (i[34567]86-*-linux*): Likewise.
5609 (i[34567]86-*-lynxos*): Likewise.
5610 (i[34567]86-*-mingw32ce*): Likewise.
5611 (i[34567]86-*-mingw*): Likewise.
5612 (i[34567]86-*-nto*): Likewise.
5613 (tic6x-*-uclinux): Likewise.
5614 (x86_64-*-linux*): Likewise.
5615 (x86_64-*-mingw*): Likewise.
5616 (x86_64-*-cygwin*): Likewise.
5617
3b74854b
AH
56182018-04-18 Alan Hayward <alan.hayward@arm.com>
5619
5620 * tdesc.c: Remove xml parameter.
5621
e98577a9
AH
56222018-04-18 Alan Hayward <alan.hayward@arm.com>
5623
5624 * server.c (get_features_xml): Remove cast.
5625 * tdesc.c (void target_desc::accept): Fill in function.
5626 (tdesc_get_features_xml): Remove old xml creation.
5627 (print_xml_feature::visit_pre): Add xml vistor.
5628 * tdesc.h (struct target_desc): Make xmltarget mutable.
5629 (tdesc_get_features_xml): Remove declaration.
5630
d278f585
AH
56312018-04-18 Alan Hayward <alan.hayward@arm.com>
5632
5633 * tdesc.c (tdesc_architecture_name): Add new function.
5634 (tdesc_osabi_name): Likewise.
5635 (tdesc_get_features_xml): Use new functions.
5636
eee8a18d
AH
56372018-04-18 Alan Hayward <alan.hayward@arm.com>
5638
5639 * tdesc.c (tdesc_create_flags): Remove.
5640 (tdesc_add_flag): Likewise.
5641 (tdesc_named_type): Likewise.
5642 (tdesc_create_union): Likewise.
5643 (tdesc_create_struct): Likewise.
5644 (tdesc_create_vector): Likewise.
5645 (tdesc_add_bitfield): Likewise.
5646 (tdesc_add_field): Likewise.
5647 (tdesc_set_struct_size): Likewise.
5648
82ec9bc7
AH
56492018-04-18 Alan Hayward <alan.hayward@arm.com>
5650
5651 * tdesc.c (~target_desc): Remove implictly deleted items.
5652 (init_target_desc): Iterate all features.
5653 (tdesc_get_features_xml): Use vector.
5654 (tdesc_create_feature): Create feature.
5655 * tdesc.h (tdesc_feature) Remove
5656 (target_desc): Add features.
5657
ea3e7d71
AH
56582018-04-18 Alan Hayward <alan.hayward@arm.com>
5659
5660 * Makefile.in: Add common/tdesc.c
5661 * tdesc.c (init_target_desc): init all reg_defs from register
5662 vector.
5663 (tdesc_create_reg): Create tdesc_reg.
5664 * tdesc.h (tdesc_feature): Add register vector.
5665
17d08cd4
SM
56662018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5667
5668 * tdesc.h (struct target_desc) <features>: Change type to
5669 std::vector<std::string>.
5670 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5671 changes.
5672 (tdesc_get_features_xml): Likewise.
5673 (tdesc_create_feature): Likewise.
5674
5cd3e386
AH
56752018-03-26 Alan Hayward <alan.hayward@arm.com>
5676
5677 * regcache.c (find_register_by_number): Return a ref.
5678 (find_regno): Use references.
5679 (register_size): Likewise.
5680 (register_data): Likewise.
5681 * tdesc.c (target_desc::~target_desc): Remove free calls.
5682 (target_desc::operator==): Use std::vector compare.
5683 (init_target_desc): Use reference.
5684 (tdesc_create_reg): Use reg constructors.
5685 * tdesc.h (struct target_desc): Replace pointer with object.
5686
dff7492c
AH
56872018-03-23 Alan Hayward <alan.hayward@arm.com>
5688
5689 * regcache.c (find_register_by_number): Make static.
5690 (find_regno): Use find_register_by_number
5691 * regcache.h (struct reg): Remove declaration.
5692
d80e5242
AH
56932018-03-23 Alan Hayward <alan.hayward@arm.com>
5694
5695 * tdesc.c (target_desc::~target_desc): Move to here.
5696 (target_desc::operator==): Likewise.
5697 * tdesc.h (target_desc::~target_desc): Move from here.
5698 (target_desc::operator==): Likewise.
5699
f69c5afb
AA
57002018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5701
5702 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5703
ce29f843
AA
57042018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5705
5706 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5707 S390_TDESC_GS.
5708 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5709 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5710 and init_registers_s390_gs_linux64.
5711
c49bd90b
AA
57122018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5713
5714 * linux-s390-low.c (s390_fill_gs): Remove function.
5715 (s390_fill_gsbc): Remove function.
5716 (s390_regsets): Set fill functions for the guarded storage regsets
5717 to NULL.
5718
7edb9bd3
AA
57192018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5720
5721 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5722 the word size. Add comment.
5723 (s390_get_wordsize): New function.
5724 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5725 pswm with it. Instead, use s390_get_wordsize to determine the
5726 word size first and derive the correct tdesc from that directly.
5727
39be3c7e
SM
57282018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5729
5730 * Makefile.in: Include silent-rules.mk.
5731 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5732 (COMPILE): Add ECHO_CXX.
5733 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5734 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5735 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5736 (version-generated.c): Add ECHO_GEN.
5737 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5738 (IPAGENT_COMPILE): Add ECHO_CXX.
5739 (%-generated.c): Add ECHO_REGDAT.
5740
3ae9ce5d
TT
57412018-03-14 Tom Tromey <tom@tromey.com>
5742
5743 PR cli/14977:
5744 * ax.c (ax_printf): Special case for NULL.
5745
e6a58aa8
SM
57462018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5747
5748 * linux-low.c (linux_qxfer_libraries_svr4): Use
5749 xml_escape_text_append.
5750
f6e8a41e
SM
57512018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5752
5753 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5754
b9671caf
SM
57552018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5756
5757 * server.c (handle_general_set): Remove unnecessary xstrdup.
5758
e80aaf61
SM
57592018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5760
5761 * server.c (parse_debug_format_options): Adjust to
5762 delim_string_to_char_ptr_vec changes.
5763 * thread-db.c (thread_db_load_search): Adjust to
5764 dirnames_to_char_ptr_vec changes.
5765
b1223e78
MM
57662018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5767
5768 * target.h (target_enable_btrace, target_disable_btrace)
5769 (target_read_btrace, target_read_btrace_conf): Turn macro into
5770 inline function. Throw error if target method is not defined.
5771 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5772 check for btrace target method. Be prepared to handle exceptions
5773 from btrace target methods.
5774
81561546
SDJ
57752018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5776
5777 * server.c (captured_main): Change order of error message printed
5778 when the current working directory cannot be found.
5779
25e3c82c
SDJ
57802018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5781
5782 * server.c: Include "filenames.h" and "pathstuff.h".
5783 (program_name): Delete variable.
5784 (program_path): New anonymous class.
5785 (get_exec_wrapper): Use "program_path" instead of
5786 "program_name".
5787 (handle_v_run): Likewise.
5788 (captured_main): Likewise.
5789 (process_serial_event): Likewise.
5790
b4987c95
SDJ
57912018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5792
5793 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5794 (OBJS): Add "pathstuff.o".
5795 * server.c (current_directory): New global variable.
5796 (captured_main): Initialize "current_directory".
5797
f46cd62a
AH
57982018-02-26 Alan Hayward <alan.hayward@arm.com>
5799
5800 * tdesc.c: Use common/tdesc.h.
5801 * tdesc.h: Likewise.
5802
a543c5ca
AH
58032018-02-20 Alan Hayward <alan.hayward@arm.com>
5804 Simon Marchi <simon.marchi@ericsson.com>
5805
5806 * Makefile.in: Switch order of make rules.
5807
b5884fa7
AH
58082018-02-19 Alan Hayward <alan.hayward@arm.com>
5809
5810 * Makefile.in: Add common directory in build.
5811 * configure.ac: Add common reference.
5812 * configure: Regenerate.
5813
de6242d3
MM
58142018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5815
5816 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5817 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5818 * spu-low.c (spu_target_ops): Likewise.
5819 * win32-low.c (win32_target_ops): Likewise.
5820 * server.c (supported_btrace_packets): Report packets unconditionally.
5821 * target.h (target_ops) <supports_btrace>: Remove.
5822 (target_supports_btrace): Remove.
5823
9ee23a85
MM
58242018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5825
5826 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5827 (handle_btrace_disable): Change return type to void. Use exceptions
5828 to report errors.
5829 (handle_btrace_general_set): Catch exception and copy message to
5830 return message.
5831
8ce47547
TT
58322018-02-08 Tom Tromey <tom@tromey.com>
5833
5834 * linux-low.c (install_software_single_step_breakpoints): Use
5835 make_scoped_restore.
5836 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5837 (do_restore_current_thread_cleanup): Remove.
5838 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5839 declare.
5840
45dd3607
TT
58412018-02-08 Tom Tromey <tom@tromey.com>
5842
5843 * mem-break.c (set_raw_breakpoint_at): Use
5844 gdb::unique_xmalloc_ptr.
5845
e671cd59
PA
58462018-01-30 Pedro Alves <palves@redhat.com>
5847
5848 PR gdb/13211
5849 * target.c (target_terminal::terminal_state): Rename to ...
5850 (target_terminal::m_terminal_state): ... this.
5851
a0aad537
JC
58522018-01-19 James Clarke <jrtc27@jrtc27.com>
5853
5854 * linux-low.c (handle_extended_wait): Surround call to
5855 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5856
4d9b86e1
SM
58572018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5858
5859 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5860 linux_ptrace_attach_fail_reason_string now returning an
5861 std::string.
5862 (linux_attach): Likewise.
5863 * thread-db.c (attach_thread): Likewise.
5864
f517c180
EA
58652018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5866
5867 PR gdb/21559
5868 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5869 checking for fs_base/gs_base fields in struct user_regs_struct.
5870 * configure: Regenerate.
5871
9a70f35c
YQ
58722018-01-16 Yao Qi <yao.qi@linaro.org>
5873
5874 PR gdb/18749
5875 * linux-low.c (fetch_register): Call supply_register instead of
5876 error.
5877
605fd3c6
YQ
58782018-01-08 Yao Qi <yao.qi@linaro.org>
5879 Simon Marchi <simon.marchi@ericsson.com>
5880
5881 * Makefile.in (OBS): Remove selftest.o.
5882 * configure.ac: Set srv_selftest_objs if $development is true.
5883 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5884 * configure: Re-generated.
5885 * server.c (captured_main): Wrap variable selftest_filter with
5886 GDB_SELF_TEST.
5887
2cc05030
SM
58882018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5889
5890 * server.c (parse_debug_format_options): Return std::string.
5891 (handle_monitor_command, captured_main): Adjust.
5892
e379cee6
PA
58932018-01-05 Pedro Alves <palves@redhat.com>
5894
5895 PR gdb/18653
5896 * server.c (captured_main): Pass quiet=false to
5897 save_original_signals_state.
5898
82e1e79a
JB
58992018-01-01 Joel Brobecker <brobecker@adacore.com>
5900
5901 * gdbreplay.c (gdbreplay_version): Update copyright year in
5902 version message.
5903 * server.c (gdbserver_version): Likewise.
5904
8e481c3b
TT
59052017-12-08 Tom Tromey <tom@tromey.com>
5906
5907 * ax.c (ax_printf): Update.
5908
a8806230
YQ
59092017-12-07 Yao Qi <yao.qi@linaro.org>
5910
5911 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5912 aarch64_linux_read_description.
5913 * linux-amd64-ipa.c (idx2mask): New array.
5914 (get_ipa_tdesc): Move idx2mask out.
5915 (initialize_low_tracepoint): Initialize target descriptions.
5916 * linux-i386-ipa.c (idx2mask): New array.
5917 (get_ipa_tdesc): Move idx2mask out.
5918 (initialize_low_tracepoint): Initialize target descriptions.
5919
d4a0e8b5
SM
59202017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5921
5922 * tdesc.c (struct tdesc_type): Change return type.
5923 (tdesc_add_flag): Change parameter type.
5924 (tdesc_add_bitfield): Likewise.
5925 (tdesc_add_field): Likewise.
5926 (tdesc_set_struct_size): Likewise.
5927
798a7429
SM
59282017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5929
5930 * regcache.c (registers_to_string): Remove unused variable.
5931
c0e15c9b
SM
59322017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5933
5934 * inferiors.c (for_each_inferior_with_data): Remove.
5935 * inferiors.h (for_each_inferior_with_data): Remove.
5936 * server.c (handle_qxfer_threads_worker): Change parameter type.
5937 (handle_qxfer_threads_proper): Use for_each_thread.
5938
f0045347
SM
59392017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5940
5941 * inferiors.c (for_each_inferior): Remove.
5942 (clear_inferiors): Use for_each_thread.
5943 * inferiors.h (for_each_inferior): Remove.
5944 * linux-low.c (linux_wait_for_event_filtered): Use
5945 for_each_thread.
5946 (linux_stabilize_threads): Likewise.
5947 * regcache.c (regcache_release): Likewise.
5948 * server.c (gdb_wants_all_threads_stopped): Likewise.
5949 (clear_pending_status_callback): Remove.
5950 (handle_status): Use for_each_thread.
5951 (captured_main): Likewise.
5952 * win32-low.c (child_init_thread_list): Likewise.
5953 (win32_clear_inferiors): Likewise.
5954 (fake_breakpoint_event): Likewise.
5955
9521758b
SM
59562017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5957
5958 * inferiors.h (find_inferior): Remove.
5959 * inferiors.c (find_inferior): Remove.
5960
8f86d7aa
SM
59612017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5962
5963 * linux-low.c (resume_status_pending_p): Update comment.
5964 (need_step_over_p): Update comment.
5965
e2b44075
SM
59662017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5967
5968 * linux-low.c (proceed_one_lwp): Return void, change parameter
5969 type.
5970 (unsuspend_and_proceed_one_lwp): Likewise.
5971 (proceed_all_lwps): Use for_each_thread.
5972 (unstop_all_lwps): Likewise.
5973
c80825ff
SM
59742017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5975
5976 * linux-low.c (linux_resume_one_thread): Return void, take
5977 parameter directly.
5978 (linux_resume): Use for_each_thread.
5979
df3e4dbe
SM
59802017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5981
5982 * linux-low.c (send_sigstop_callback): Return void, change
5983 parameter type. Rename to...
5984 (send_sigstop): ... this.
5985 (suspend_and_send_sigstop_callback): Return void, change parameter
5986 type. Rename to...
5987 (suspend_and_send_sigstop): ... this.
5988 (stop_all_lwps): Use for_each_thread.
5989
5a6b0a41
SM
59902017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5991
5992 * linux-low.c (lwp_running): Return bool, remove unused
5993 argument.
5994 (linux_stabilize_threads): Use find_thread.
5995
39a64da5
SM
59962017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5997
5998 * linux-low.c (select_singlestep_lwp_callback): Remove.
5999 (count_events_callback): Remove.
6000 (select_event_lwp_callback): Remove.
6001 (select_event_lwp): Use find_thread/for_each_thread.
6002
a1385b7b
SM
60032017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6004
6005 * linux-low.c (not_stopped_callback): Return bool, take filter
6006 argument directly.
6007 (linux_wait_for_event_filtered): Use find_thread.
6008 (linux_wait_1): Likewise.
6009
454296a2
SM
60102017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6011
6012 * linux-low.c (same_lwp): Remove.
6013 (find_lwp_pid): Use find_thread.
6014
6b2a85da
SM
60152017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6016
6017 * linux-low.c (delete_lwp_callback): Remove.
6018 (linux_mourn): Use for_each_thread.
6019
798a38e8
SM
60202017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6021
6022 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6023 args parameter, don't check for pid.
6024 (linux_detach): Use for_each_thread.
6025
e4eb0dec
SM
60262017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6027
6028 * linux-low.c (struct counter): Remove.
6029 (second_thread_of_pid_p): Remove.
6030 (last_thread_of_process_p): Use find_thread.
6031
83e1b6c1
SM
60322017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6033
6034 * inferiors.c (find_inferior_in_random): Remove.
6035 * inferiors.h (find_inferior_in_random): Remove.
6036 * linux-low.c (status_pending_p_callback): Return bool, accept
6037 parameter ptid directly.
6038 (linux_wait_for_event_filtered): Use find_thread_in_random.
6039 (linux_wait_1): Likewise.
6040
8dc7b443
SM
60412017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6042
6043 * inferiors.c (find_inferior_id): Remove.
6044 (find_thread_ptid): Move implemention from find_inferior_id to
6045 here.
6046 * inferiors.h (find_inferior_id): Remove.
6047 * server.c (handle_status): Use find_thread_ptid.
6048 (process_serial_event): Likewise.
6049 * thread-db.c (find_one_thread): Likewise.
6050 (thread_db_thread_handle): Likewise.
6051 * win32-low.c (thread_rec): Likewise.
6052 (child_delete_thread): Likewise.
6053 (win32_thread_alive): Likewise.
6054 (get_child_debug_event): Likewise.
6055
da25033c
SM
60562017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6057
6058 * linux-mips-low.c (update_watch_registers_callback): Return
6059 void, remove pid_p parameter, don't check for pid.
6060 (mips_insert_point, mips_remove_point): Use for_each_thread.
6061
c91bb56b
SM
60622017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6063
6064 * lynx.low (lynx_delete_thread_callback): Remove.
6065 (lynx_mourn): Use for_each_thread.
6066
634a3254
SM
60672017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6068
6069 * regcache.c (regcache_invalidate_one): Remove.
6070 (regcache_invalidate_pid): use for_each_thread.
6071
41272101
TT
60722017-11-26 Tom Tromey <tom@tromey.com>
6073
6074 * linux-low.c (linux_create_inferior): Update.
6075
f5291a6f
UW
60762017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6077
6078 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6079
6654d750
AH
60802017-11-24 Alan Hayward <alan.hayward@arm.com>
6081
6082 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6083 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6084 * linux-aarch64-tdesc-selftest.c: New file.
6085 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6086
60872017-11-24 Alan Hayward <alan.hayward@arm.com>
6088
6089 * configure.srv: Add new file.
6090 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6091 * linux-aarch64-tdesc-selftest.c: New file.
6092 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6093
49bdb7ee
AH
60942017-11-24 Alan Hayward <alan.hayward@arm.com>
6095
6096 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6097 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6098 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6099
d6d7ce56
AH
61002017-11-24 Alan Hayward <alan.hayward@arm.com>
6101
6102 * configure.srv: Add new files.
6103 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6104 aarch64_linux_read_description.
6105 * linux-aarch64-low.c (aarch64_linux_read_description):
6106 Merge with aarch64_arch_setup.
6107 (aarch64_arch_setup): Call aarch64_linux_read_description.
6108 * linux-aarch64-tdesc.c: New file.
6109 * linux-aarch64-tdesc.h: New file.
6110
506fe5f4
YQ
61112017-11-24 Yao Qi <yao.qi@linaro.org>
6112
6113 * configure.srv: Set $srv_regobj for tic6x-linux.
6114 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6115 (tic6x_read_description): Move some code to tic6x_arch_setup.
6116 (tic6x_tdesc_test): New function.
6117 (initialize_low_arch): Call selftests::register_test.
6118
29f9a567
YQ
61192017-11-22 Yao Qi <yao.qi@linaro.org>
6120
6121 * remote-utils.c (prepare_resume_reply): Use memcpy.
6122
578290ec
SM
61232017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6124
6125 * linux-low.c (kill_one_lwp_callback): Return void, take
6126 argument directly, don't filter on pid.
6127 (linux_kill): Use for_each_thread.
6128
eca55aec
SM
61292017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6130
6131 * linux-low.c (need_step_over_p): Return bool, remove dummy
6132 argument.
6133 (linux_resume, proceed_all_lwps): Use find_thread.
6134
25c28b4d
SM
61352017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6136
6137 * linux-low.c (resume_status_pending_p): Return bool, remove
6138 flag_p argument.
6139 (linux_resume): Use find_thread.
6140
5fdda392
SM
61412017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6142
6143 * linux-low.c (struct thread_resume_array): Remove.
6144 (linux_set_resume_request): Return void, take arguments
6145 directly.
6146 (linux_resume): Use for_each_thread.
6147
fcb056a5
SM
61482017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6149
6150 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6151 return bool, remove data argument.
6152 (linux_stabilize_threads): Use find_thread.
6153
139720c5
SM
61542017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6155
6156 * linux-low.c (unsuspend_one_lwp): Remove.
6157 (unsuspend_all_lwps): Use for_each_thread, inline code from
6158 unsuspend_one_lwp.
6159
6d1e5673
SM
61602017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6161
6162 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6163 * linux-low.c (struct iterate_over_lwps_args): Remove.
6164 (iterate_over_lwps_filter): Remove.
6165 (iterate_over_lwps): Use find_thread.
6166
bbf550d5
SM
61672017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6168
6169 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6170 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6171 code from reset_lwp_ptrace_options_callback.
6172
00192f77
SM
61732017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6174
6175 * linux-arm-low.c (struct update_registers_data): Remove.
6176 (update_registers_callback): Return void, take arguments
6177 directly, don't check thread's pid.
6178 (arm_insert_point, arm_remove_point): Use for_each_thread.
6179
2bee2b6c
SM
61802017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6181
6182 * win32-low.c (continue_one_thread): Return void, take argument
6183 directly.
6184 (child_continue): Use for_each_thread.
6185
0b360f19
SM
61862017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6187
6188 * win32-i386-low.c (update_debug_registers_callback): Rename
6189 to ...
6190 (update_debug_registers): ... this, return void, remove pid_p arg.
6191 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6192
f27866ba
SM
61932017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6194
6195 * inferiors.h (struct process_info): Add constructor, initialize
6196 fields..
6197 <syscalls_to_catch>: Change type to std::vector<int>.
6198 * inferiors.c (add_process): Allocate process_info with new.
6199 (remove_process): Free process_info with delete.
6200 * linux-low.c (handle_extended_wait): Adjust.
6201 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6202 * server.c (handle_general_set): Adjust.
6203
e849ea89
PA
62042017-11-16 Pedro Alves <palves@redhat.com>
6205
6206 * remote-utils.c (remote_close): Block SIGIO signals instead of
6207 uninstalling the SIGIO handler.
6208
1d0aa65c
AH
62092017-11-16 Alan Hayward <alan.hayward@arm.com>
6210
6211 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6212
3491a34c
YQ
62132017-11-16 Yao Qi <yao.qi@linaro.org>
6214
6215 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6216 (tic6x_store_gregset): Likewise.
6217 (tic6x_usrregs_info): Move it up.
6218
a602f924
AH
62192017-11-15 Alan Hayward <alan.hayward@arm.com>
6220
6221 * Makefile.in: Update arch rules.
6222 * configure.srv: Explicitly mark arch/ files.
6223
5616b6c3
AS
62242017-11-13 Andreas Schwab <schwab@suse.de>
6225
6226 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6227 function.
6228 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6229
d1928160
PA
62302017-11-06 Pedro Alves <palves@redhat.com>
6231
6232 * config.in, configure: Regenerate.
6233
bac608e7
SM
62342017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6235
6236 * target.c (struct thread_search): Remove.
6237 (thread_search_callback): Remove.
6238 (prepare_to_access_memory): Use for_each_thread instead of
6239 find_inferior. Inline code from thread_search_callback.
6240
eaddb425
SM
62412017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6242
6243 * server.c (struct visit_actioned_threads_data): Remove.
6244 (visit_actioned_threads): Change prototype to take arguments
6245 directly.
6246 (resume): Use find_thread instead of find_inferior.
6247
99078d34
SM
62482017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6249
6250 * server.c (queue_stop_reply_callback): Change prototype, return
6251 void.
6252 (find_status_pending_thread_callback): Remove.
6253 (handle_status): Replace find_inferior with find_thread and
6254 for_each_thread.
6255
cc628f3d
AH
62562017-10-25 Alan Hayward <alan.hayward@arm.com>
6257
6258 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6259 with REGNO.
6260 (aarch64_store_gregset): Likewise.
6261 (aarch64_fill_fpregset): Likewise.
6262 (aarch64_store_fpregset): Likewise.
6263
4d3bb80e
SM
62642017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6265
6266 * gdbthread.h (find_thread, for_each_thread): New functions.
6267 * inferiors.c (thread_of_pid): Remove.
6268 (find_any_thread_of_pid): Use find_thread.
6269 * linux-low.c (num_lwps): Use for_each_thread.
6270
7a7cdfa0
YQ
62712017-10-17 Yao Qi <yao.qi@linaro.org>
6272
6273 * Makefile.in: Remove one rule.
6274 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6275
e675d170
YQ
62762017-10-17 Yao Qi <yao.qi@linaro.org>
6277
6278 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6279 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6280
7eb4e0f9
YQ
62812017-10-17 Yao Qi <yao.qi@linaro.org>
6282
6283 * configure.srv: Rename arm.o with arch/arm.o.
6284
60d6cfc9
YQ
62852017-10-17 Yao Qi <yao.qi@linaro.org>
6286
6287 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6288 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6289 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6290 (arch-i386.o, arch-amd64.o): Remove rules.
6291 (arch/%.o): New rule.
6292 Update POSTCOMPILE and COMPILE.pre.
6293 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6294 * configure: Re-generated.
6295 * configure.srv: Replace arch-i386.o with arch/i386.o.
6296 Replace arch-amd64.o with arch/amd64.o.
6297
5bfda255
YQ
62982017-10-16 Yao Qi <yao.qi@linaro.org>
6299
6300 * configure: Regenerated.
6301
9c80ecd6
SM
63022017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6303
6304 * inferiors.h: (struct inferior_list): Remove.
6305 (struct inferior_list_entry); Remove.
6306 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6307 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6308 get_first_inferior): Remove.
6309 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6310 find_inferior_id, find_inferior_in_random): Change signature.
6311 * inferiors.c (all_threads): Change type to
6312 std::list<thread_info *>.
6313 (get_thread): Remove macro.
6314 (find_inferior, find_inferior_id): Change signature, implement
6315 using find_thread.
6316 (find_inferior_in_random): Change signature, implement using
6317 find_thread_in_random.
6318 (for_each_inferior, for_each_inferior_with_data): Change
6319 signature, implement using for_each_thread.
6320 (add_inferior_to_list, remove_inferior): Remove.
6321 (add_thread, get_first_thread, thread_of_pid,
6322 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6323 (get_first_inferior, one_inferior_p, clear_inferior_list):
6324 Remove.
6325 (clear_inferiors, get_thread_process): Update.
6326 * gdbthread.h: Include <list>.
6327 (struct thread_info) <entry>: Remove field.
6328 <id>: New field.
6329 (all_threads): Change type to std::list<thread_info *>.
6330 (get_first_inferior): Add doc.
6331 (find_thread, for_each_thread, find_thread_in_random): New
6332 functions.
6333 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6334 * linux-arm-low.c (update_registers_callback): Update.
6335 * linux-low.c (second_thread_of_pid_p): Update.
6336 (kill_one_lwp_callback, linux_detach_lwp_callback,
6337 delete_lwp_callback, status_pending_p_callback, same_lwp,
6338 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6339 iterate_over_lwps, not_stopped_callback,
6340 resume_stopped_resumed_lwps, count_events_callback,
6341 select_singlestep_lwp_callback, select_event_lwp_callback,
6342 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6343 suspend_and_send_sigstop_callback, wait_for_sigstop,
6344 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6345 lwp_running, linux_set_resume_request, resume_status_pending_p,
6346 need_step_over_p, start_step_over, linux_resume_one_thread,
6347 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6348 reset_lwp_ptrace_options_callback): Update.
6349 * linux-mips-low.c (update_watch_registers_callback): Update.
6350 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6351 Update.
6352 (free_register_cache_thread_one): Remove.
6353 (regcache_release): Update.
6354 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6355 handle_qxfer_threads_worker): Update.
6356 (handle_query): Update, use list iterator.
6357 (visit_actioned_threads, handle_pending_status,
6358 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6359 clear_pending_status_callback, set_pending_status_callback,
6360 find_status_pending_thread_callback, handle_status,
6361 process_serial_event): Update.
6362 * target.c (thread_search_callback): Update.
6363 * thread-db.c (thread_db_get_tls_address): Update.
6364 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6365 Update.
6366 * win32-i386-low.c (update_debug_registers_callback): Update.
6367 * win32-low.c (delete_thread_info, child_delete_thread,
6368 continue_one_thread, suspend_one_thread,
6369 get_child_debug_event): Adjust.
6370
9179355e
SM
63712017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6372
6373 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6374 * inferiors.h: Include <list>.
6375 (struct process_info) <entry>: Remove field.
6376 <pid>: New field.
6377 (pid_of): Change macro to function.
6378 (ptid_of, lwpid_of): Remove macro.
6379 (all_processes): Change type to std::list<process_info *>.
6380 (ALL_PROCESSES): Remove macro.
6381 (for_each_process, find_process): New function.
6382 * inferiors.c (all_processes): Change type to
6383 std::list<process_info *>.
6384 (find_thread_process): Adjust.
6385 (add_process): Likewise.
6386 (remove_process): Likewise.
6387 (find_process_pid): Likewise.
6388 (get_first_process): Likewise.
6389 (started_inferior_callback): Remove.
6390 (have_started_inferiors_p): Adjust.
6391 (attached_inferior_callback): Remove.
6392 (have_attached_inferiors_p): Adjust.
6393 * linux-low.c (check_zombie_leaders): Likewise.
6394 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6395 (x86_linux_update_xmltarget): Adjust.
6396 * server.c (handle_query): Likewise.
6397 (gdb_reattached_process): Remove.
6398 (handle_status): Adjust.
6399 (kill_inferior_callback): Likewise.
6400 (detach_or_kill_inferior): Remove.
6401 (print_started_pid): Likewise.
6402 (print_attached_pid): Likewise.
6403 (detach_or_kill_for_exit): Update.
6404 (process_serial_event): Likewise.
6405 * linux-arm-low.c (arm_new_fork): Likewise.
6406
c9cb8905
SM
64072017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6408
6409 * dll.h: Include <list>.
6410 (struct dll_info): Add constructor.
6411 <entry>: Remove field.
6412 (all_dlls): Change type to std::list<dll_info>.
6413 * dll.c: Include <algorithm>.
6414 (get_dll): Remove macro.
6415 (all_dlls): Change type to std::list<dll_info *>.
6416 (free_one_dll): Remove.
6417 (match_dll): Likewise.
6418 (loaded_dll): Adjust.
6419 (unloaded_dll): Adjust to all_dlls type change, use
6420 std::find_if. Inline code from match_dll.
6421 (clear_dlls): Adjust to all_dlls type change.
6422 * server.c (emit_dll_description): Remove.
6423 (handle_qxfer_libraries): Adjust to all_dlls type change,
6424 integrate emit_dll_description's functionality.
6425
04ec7890
SM
64262017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6427
6428 * linux-low.h (struct linux_target_ops) <delete_process>: New
6429 field.
6430 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6431 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6432 (struct linux_target_ops): Add delete_process callback.
6433 * linux-arm-low.c (arm_delete_process): New.
6434 (struct linux_target_ops): Add delete_process callback.
6435 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6436 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6437 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6438 * linux-mips-low.c (mips_linux_delete_process): New.
6439 (struct linux_target_ops): Add delete_process callback.
6440 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6441 * linux-s390-low.c (struct linux_target_ops): Likewise.
6442 * linux-sh-low.c (struct linux_target_ops): Likewise.
6443 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6444 * linux-tile-low.c (struct linux_target_ops): Likewise.
6445 * linux-x86-low.c (x86_linux_delete_process): New.
6446 (struct linux_target_ops): Add delete_process callback.
6447 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6448
466eecee
SM
64492017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6450
6451 * linux-aarch64-low.c (the_low_target): Add thread delete
6452 callback.
6453 * linux-arm-low.c (arm_delete_thread): New function.
6454 (the_low_target): Add thread delete callback.
6455 * linux-bfin-low.c (the_low_target): Likewise.
6456 * linux-crisv32-low.c (the_low_target): Likewise.
6457 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6458 set.
6459 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6460 field.
6461 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6462 * linux-mips-low.c (mips_linux_delete_thread): New function.
6463 (the_low_target): Add thread delete callback.
6464 * linux-ppc-low.c (the_low_target): Likewise.
6465 * linux-s390-low.c (the_low_target): Likewise.
6466 * linux-sh-low.c (the_low_target): Likewise.
6467 * linux-tic6x-low.c (the_low_target): Likewise.
6468 * linux-tile-low.c (the_low_target): Likewise.
6469 * linux-x86-low.c (the_low_target): Likewise.
6470 * linux-xtensa-low.c (the_low_target): Likewise.
6471
b79f7801
YZ
64722017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6473
6474 * win32-low.c: Include "common-inferior.h".
6475
bc3b087d
SDJ
64762017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6477
6478 * inferiors.c (set_inferior_cwd): New function.
6479 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6480 (handle_query): Inform that QSetWorkingDir is supported.
6481 * win32-low.c (create_process): Pass the inferior's cwd to
6482 CreateProcess.
6483
d092c5a2
SDJ
64842017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6485
6486 * inferiors.c (current_inferior_cwd): New global variable.
6487 (get_inferior_cwd): New function.
6488 * inferiors.h (struct process_info) <cwd>: New field.
6489
7da0a886
SDJ
64902017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6491
6492 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6493 (OBS): Add gdb_tilde_expand.o.
6494
289a6840
SM
64952017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6496
6497 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6498 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6499
256642e8
PA
65002017-09-29 Pedro Alves <palves@redhat.com>
6501
6502 * ax.c (gdb_parse_agent_expr): Constify.
6503 * ax.h (gdb_parse_agent_expr): Constify.
6504 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6505 Constify.
6506 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6507 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6508 * remote-utils.h (read_ptid): Constify.
6509 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6510 (process_point_options, process_serial_event): Constify.
6511 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6512 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6513 (cmd_qtbuffer): Constify.
6514
5b9ca4d4
PA
65152017-09-29 Pedro Alves <palves@redhat.com>
6516
6517 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6518 fails.
6519
94c207e0
PA
65202017-09-29 Pedro Alves <palves@redhat.com>
6521
6522 * linux-low.c (handle_extended_wait): Pass parent thread instead
6523 of process to thread_db_notice_clone.
6524 * linux-low.h (thread_db_notice_clone): Replace parent process
6525 parameter with parent thread parameter.
6526 * thread-db.c (find_one_thread): Add comment.
6527 (thread_db_notice_clone): Replace parent process parameter with
6528 parent thread parameter. Temporarily switch to the parent thread.
6529
75352e28
SDJ
65302017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6531
6532 * gdbthread.h: Include "common-gdbthread.h".
6533 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6534 "if" when validating the ptid.
6535 * remote-utils.c: Include "gdbthread.h".
6536 (prepare_resume_reply): Use "switch_to_thread".
6537 * target.c (done_accessing_memory): Likewise.
6538
ad339634
AA
65392017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6540
6541 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6542 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6543 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6544 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6545 s390x-gs-linux64-ipa.o to ipa_obj.
6546 * linux-s390-low.c (HWCAP_S390_GS): New define.
6547 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6548 New functions.
6549 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6550 (s390_arch_setup): Check for guarded-storage support and choose
6551 appropriate tdesc.
6552 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6553 init_registers_s390x_gs_linux64.
6554 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6555 enum value.
6556 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6557 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6558
cc4d742f
SM
65592017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6560
6561 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6562
f6327dcb
KB
65632017-09-21 Kevin Buettner <kevinb@redhat.com>
6564
6565 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6566 (thread_db_thread_handle): Declare.
6567 * linux-low.c (linux_target_ops): Initialize thread_handle.
6568 * server.c (handle_qxfer_threads_worker): Add support for
6569 "handle" attribute.
6570 * target.h (struct target_ops): Add new function pointer,
6571 thread_handle.
6572 (target_thread_handle): Define.
6573 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6574 field in lwp.
6575 (thread_db_thread_handle): New function.
6576
86299109
KB
65772017-09-21 Kevin Buettner <kevinb@redhat.com>
6578
6579 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6580 * linux-low.h (thread_db_notice_clone): Declare.
6581 * thread-db.c (thread_db_notice_clone): New function.
6582
f557a88a
PA
65832017-09-21 Pedro Alves <palves@redhat.com>
6584
6585 * server.c (gdb_read_memory, handle_status, process_serial_event)
6586 (handle_serial_event, handle_target_event): Adjust to
6587 set_desired_thread prototype change.
6588 * target.c (set_desired_thread): Remove 'use_general' parameter
6589 and adjust.
6590 * target.h (set_desired_thread): Remove 'use_general' parameter.
6591
223ffa71
TT
65922017-09-20 Tom Tromey <tom@tromey.com>
6593
6594 * target.c (target_terminal::terminal_state): Define.
6595 (target_terminal::init): Rename from target_terminal_init.
6596 (target_terminal::inferior): Rename from
6597 target_terminal_inferior.
6598 (target_terminal::ours): Rename from target_terminal_ours.
6599 (target_terminal::ours_for_output, target_terminal::info): New.
6600
04fd3ba9
SM
66012017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6602
6603 * server.c (accumulate_file_name_length): Remove.
6604 (emit_dll_description): Adjust to std::string change.
6605 (handle_qxfer_libraries): Use std::string to hold document.
6606
5e187554
SM
66072017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6608
6609 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6610 return type of xml_escape_text.
6611 * server.c (emit_dll_description): Likewise.
6612
1526853e
SM
66132017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6614
6615 * server.c (captured_main): Accept argument for --selftest.
6616 Update run_tests call.
6617 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6618 when registering selftests.
6619
c4dfafab
SDJ
66202017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6621
6622 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6623 instead of "VEC" for "target_desc.reg_defs".
6624 (regcache_cpy): Likewise.
6625 (registers_to_string): Likewise.
6626 (registers_from_string): Likewise.
6627 (find_regno): Likewise.
6628 (supply_regblock): Likewise.
6629 (regcache_raw_read_unsigned): Likewise.
6630 * tdesc.c (init_target_desc): Likewise.
6631 (tdesc_create_reg): Likewise.
6632 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6633 (struct target_desc) <reg_defs>: Convert to "std::vector".
6634 (target_desc): Do not initialize "reg_defs".
6635 (~target_desc): Update code to use "std::vector" instead of "VEC"
6636 for "target_desc.reg_defs".
6637 (operator==): Likewise.
6638
124aceb4
SM
66392017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6640
6641 * inferiors.h (thread_to_gdb_id): Remove.
6642 * inferiors.c (thread_to_gdb_id): Remove.
6643 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6644 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6645 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6646 Likewise.
6647 * nto-low.c (nto_fetch_registers, nto_store_registers,
6648 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6649
96cde54f
SM
66502017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6651
6652 * inferiors.h (gdb_id_to_thread_id): Remove.
6653 * inferiors.c (gdb_id_to_thread_id): Remove.
6654 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6655 removal. Move pid declaration closer to where it's used.
6656
e8ca139e
SM
66572017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6658
6659 * server.c (handle_detach): New function.
6660 (process_serial_event): Move code out, call handle_detach.
6661
f8a4e119
SM
66622017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6663
6664 * server.c (require_running): Rename to ...
6665 (require_running_or_return): ... this ...
6666 (require_running_or_break): ... and this.
6667 (handle_query, process_serial_event): Adjust.
6668
0eb0a407
SM
66692017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6670
6671 * linux-low.c (linux_set_resume_request): Remove unused
6672 variables.
6673
785922a5
SM
66742017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6675
6676 * server.c (first_thread_of): Remove.
6677 (process_serial_event): Replace usage of first_thread_of with
6678 find_any_thread_of_pid.
6679 * tracepoint.c (same_process_p): Remove.
6680 (gdb_agent_about_to_close): Replace usage of same_process_p with
6681 find_any_thread_of_pid.
6682 * linux-x86-low.c (same_process_callback): Remove.
6683 (x86_arch_setup_process_callback): Replace usage of
6684 same_process_callback with find_any_thread_of_pid.
6685 * thread-db.c (any_thread_of): Remove.
6686 (switch_to_process): Replace usage of any_thread_of with
6687 find_any_thread_of_pid.
6688 * inferiors.c (thread_pid_matches_callback): Remove.
6689 (find_thread_process): Adjust to use find_any_thread_of_pid.
6690
a059f00c
SDJ
66912017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6692
6693 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6694 with "!VEC_empty".
a059f00c 6695
cc397f3a
SDJ
66962017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6697
6698 * linux-low.c (handle_extended_wait): Use
6699 "allocate_target_description" instead of "XNEW".
6700 * linux-x86-low.c (initialize_low_arch): Likewise.
6701
22916b07
YQ
67022017-09-05 Yao Qi <yao.qi@linaro.org>
6703
6704 * configure.srv (srv_i386_regobj): Remove.
6705 (srv_amd64_regobj): Remove.
6706 (srv_regobj): Set it to "" for x86 non-linux targets.
6707 * linux-x86-tdesc.c (i386_linux_read_description):
6708 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6709 (init_registers_i386): Remove the declaration.
6710 (tdesc_i386): Remove the declaration.
6711 (lynx_i386_arch_setup): Call i386_create_target_description.
6712 * nto-x86-low.c: Likewise.
6713 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6714 [!__x86_64__]: include arch/i386.h.
6715 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6716
38602d55
YQ
67172017-09-05 Yao Qi <yao.qi@linaro.org>
6718
6719 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6720 i386/amd64-XXX-linux from it.
6721
44b886ff
YQ
67222017-09-05 Yao Qi <yao.qi@linaro.org>
6723
6724 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6725 false.
6726 (ipa_amd64_linux_regobj): Remove.
6727 (ipa_x32_linux_regobj): Remove.
6728
b4570e4b
YQ
67292017-09-05 Yao Qi <yao.qi@linaro.org>
6730
6731 * Makefile.in (arch-amd64.o): New rule.
6732 * configure.srv: Append arch-amd64.o.
6733 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6734 (get_ipa_tdesc): Call amd64_linux_read_description.
6735 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6736 and init_registers_amd64_XXX.
6737 * linux-x86-low.c (x86_linux_read_description): Call
6738 amd64_linux_read_description.
6739 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6740 (initialize_low_arch): Don't call init_registers_x32_XXX and
6741 init_registers_amd64_XXX.
6742 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6743 and tdesc_amd64_XXX.
6744 [__x86_64__] (amd64_tdesc_test): New function.
6745 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6746 and init_registers_amd64_XXX.
6747 * linux-x86-tdesc.c: Include arch/amd64.h.
6748 (xcr0_to_tdesc_idx): New function.
6749 (i386_linux_read_description): New function.
6750 (amd64_get_ipa_tdesc_idx): New function.
6751 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6752 (amd64_get_ipa_tdesc): Declare.
6753
d1f28ea2
YQ
67542017-09-05 Yao Qi <yao.qi@linaro.org>
6755
6756 * configure.srv (srv_i386_linux_xmlfiles): Remove
6757 i386/i386-XXX-linux.xml from it.
6758
25a93583
YQ
67592017-09-05 Yao Qi <yao.qi@linaro.org>
6760
6761 * configure.srv: Set srv_i386_linux_regobj empty if $development
6762 is false.
6763 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6764 initialize_low_tdesc.
6765 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6766 with #if initialize_low_tdesc.
6767 * linux-x86-tdesc-selftest.c: New file.
6768 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6769
5f035c07
YQ
67702017-09-05 Yao Qi <yao.qi@linaro.org>
6771
6772 * Makefile.in (arch-i386.o): New rule.
6773 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6774 (x86_64-*-linux*): Likewise.
6775 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6776 include arch/i386.h.
6777 (i386_linux_read_description): Remove code and call
6778 i386_create_target_description.
6779 * tdesc.c (allocate_target_description): New function.
6780 * tdesc.h (set_tdesc_architecture): Remove declaration.
6781 (set_tdesc_osabi): Likewise.
6782
0abe8a89
YQ
67832017-09-05 Yao Qi <yao.qi@linaro.org>
6784
6785 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6786 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6787 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6788 .xmltarget.
6789 * server.c (get_features_xml): Call tdesc_get_features_xml.
6790 * tdesc.c (set_tdesc_architecture): New function.
6791 (set_tdesc_osabi): New function.
6792 (tdesc_get_features_xml): New function.
6793 (tdesc_create_feature): Add an argument.
6794 * tdesc.h (struct target_desc) <features>: New field.
6795 <arch, osabi>: New field.
6796 (~target_desc): xfree features, arch, and osabi.
6797 (target_desc::oerator==): Don't compare .xmltarget.
6798 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6799 (set_tdesc_osabi): Likewise.
6800 (tdesc_get_features_xml): Likewise.
6801
0a188386
YQ
68022017-09-05 Yao Qi <yao.qi@linaro.org>
6803
6804 * linux-x86-tdesc.c: Include selftest.h.
6805 (i386_tdesc_test): New function.
6806 (initialize_low_tdesc): Call selftests::register_test.
6807 * tdesc.h: Include regdef.h.
6808 (target_desc): Override operator == and !=.
6809
f49ff000
YQ
68102017-09-05 Yao Qi <yao.qi@linaro.org>
6811
6812 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6813 (ipa_obj): Likewise.
6814 * linux-i386-ipa.c: Include common/x86-xstate.h
6815 (get_ipa_tdesc): Call i386_linux_read_description.
6816 (initialize_low_tracepoint): Don't call init_registers_XXX
6817 functions, call initialize_low_tdesc instead.
6818 * linux-x86-low.c (x86_linux_read_description): Call
6819 i386_linux_read_description.
6820 (initialize_low_arch): Don't call init_registers_i386_XXX
6821 functions, call initialize_low_tdesc.
6822 * linux-x86-tdesc.c: New file.
6823 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6824 (i386_get_ipa_tdesc_idx): Declare.
6825 (i386_get_ipa_tdesc): Declare.
6826 (initialize_low_tdesc): Declare.
6827
2b68ef2f
YQ
68282017-09-05 Yao Qi <yao.qi@linaro.org>
6829
6830 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6831 instead of 0.
6832
f7000548
YQ
68332017-09-05 Yao Qi <yao.qi@linaro.org>
6834
6835 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6836 * regcache.c (get_thread_regcache): Use VEC_length.
6837 (init_register_cache): Likewise.
6838 (regcache_cpy): Likewise.
6839 (registers_to_string): Iterate reg_defs via VEC_iterate.
6840 (find_regno): Likewise.
6841 (find_register_by_number): Use VEC_index.
6842 (register_size): Call find_register_by_number.
6843 (register_data): Call find_register_by_number.
6844 (supply_regblock): Use VEC_length.
6845 (regcache_raw_read_unsigned): Likewise.
6846 * tdesc.c (init_target_desc): Iterate reg_defs via
6847 VEC_iterate.
6848 (default_description): Update initializer.
6849 (copy_target_description): Don't update field num_registers.
6850 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6851 <num_registers>: Remove.
6852
50a421ac
SM
68532017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6854
6855 * Makefile.in (.SECONDARY): Define target.
6856
23fdd69e
SM
68572017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6858
6859 * linux-low.c (linux_wait_1): Adjust.
6860 * server.c (queue_stop_reply_callback): Adjust.
6861
0a2dde4a
SDJ
68622017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6863
6864 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6865 QEnvironmentUnset and QEnvironmentReset packets.
6866 (handle_query): Inform remote that QEnvironmentHexEncoded,
6867 QEnvironmentUnset and QEnvironmentReset are supported.
6868
6afd337d
SM
68692017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6870
6871 * inferiors.h (inferior_target_data): Rename to ...
6872 (thread_target_data): ... this.
6873 (inferior_regcache_data): Rename to ...
6874 (thread_regcache_data): ... this.
6875 (set_inferior_regcache_data): Rename to ...
6876 (set_thread_regcache_data): ... this.
6877 * inferiors.c (inferior_target_data): Rename to ...
6878 (thread_target_data): ... this.
6879 (inferior_regcache_data): Rename to ...
6880 (thread_regcache_data): ... this.
6881 (set_inferior_regcache_data): Rename to ...
6882 (set_thread_regcache_data): ... this.
6883 (free_one_thread): Update.
6884 * linux-low.h (get_thread_lwp): Update.
6885 * regcache.c (get_thread_regcache): Update.
6886 (regcache_invalidate_thread): Update.
6887 (free_register_cache_thread): Update.
6888 * win32-i386-low.c (update_debug_registers_callback): Update.
6889 (win32_get_current_dr): Update.
6890 * win32-low.c (thread_rec): Update.
6891 (delete_thread_info): Update.
6892 (continue_one_thread): Update.
6893 (suspend_one_thread): Update.
6894
a160cc46
SM
68952017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6896
6897 * inferiors.c (set_inferior_target_data): Remove.
6898 * inferiors.h (set_inferior_target_data): Remove.
6899
6d580b63
YQ
69002017-08-18 Yao Qi <yao.qi@linaro.org>
6901
6902 * Makefile.in (OBS): Add selftest.o.
6903 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6904 * configure, config.in: Re-generated.
6905 * server.c: Include common/sefltest.h.
6906 (captured_main): Handle option --selftest.
6907
f5a29eb0
YQ
69082017-08-09 Yao Qi <yao.qi@linaro.org>
6909
6910 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6911 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6912 i386-avx-mpx.o and i386-mmx.o.
6913 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6914 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6915 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6916 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6917 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6918 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6919 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6920 i386/amd64-avx-mpx.xml.
6921
57757c2f
YQ
69222017-08-09 Yao Qi <yao.qi@linaro.org>
6923
6924 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6925 and x32-avx-avx512.o.
6926 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6927 i386/x32-avx-avx512.xml.
6928
229d26fc
SM
69292017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6930
6931 * tracepoint.h (enum class fast_tpoint_collect_result): New
6932 enumeration.
6933 (fast_tracepoint_collecting): Change return type to
6934 fast_tpoint_collect_result.
6935 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6936 * linux-low.h: Include tracepoint.h.
6937 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6938 fast_tpoint_collect_result.
6939 * linux-low.c (handle_tracepoints): Adjust.
6940 (linux_fast_tracepoint_collecting): Change return type to
6941 fast_tpoint_collect_result.
6942 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6943 linux_wait_1, stuck_in_jump_pad_callback,
6944 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6945 proceed_one_lwp): Adjust to type change.
6946
2e1e43e1
YQ
69472017-07-10 Yao Qi <yao.qi@linaro.org>
6948
6949 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6950
adc764e7
YQ
69512017-06-29 Yao Qi <yao.qi@linaro.org>
6952
6953 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6954 Remove.
6955 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6956
a206891a
SM
69572017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6958
6959 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6960
9a6c7d9c
SDJ
69612017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6962
6963 * linux-low.c (linux_create_inferior): Adjust code to access the
6964 environment information via 'gdb_environ' class.
6965 * lynx-low.c (lynx_create_inferior): Likewise.
6966 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6967 (get_environ): Return a pointer to 'our_environ'.
6968 (captured_main): Initialize 'our_environ'.
6969 * server.h (get_environ): Adjust prototype.
6970 * spu-low.c (spu_create_inferior): Adjust code to access the
6971 environment information via 'gdb_environ' class.
6972
ae3e2ccf
SM
69732017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6974
6975 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6976 usage of "register" keyword.
6977
3e019bdc
SM
69782017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6979
6980 * configure: Re-generate.
6981
8465943a
SM
69822017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6983
6984 * configure: Re-generate.
6985
cf0dd6f0
SM
69862017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6987
6988 * Makefile.in (COMPILE.pre): Add "-x c++".
6989
9845682b
SDJ
69902017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6991
6992 * fork-child.c: Conditionally include <signal.h>.
6993
aefd8b33
SDJ
69942017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6995
6996 * server.c (handle_general_set): Handle new packet
6997 "QStartupWithShell".
6998 (handle_query): Add "QStartupWithShell" to the list of supported
6999 packets.
7000 (gdbserver_usage): Add help text explaining the
7001 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7002 options.
7003 (captured_main): Recognize and act upon the presence of the new
7004 CLI options.
7005
2090129c
SDJ
70062017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7007 Pedro Alves <palves@redhat.com>
7008
7009 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7010 * configure: Regenerate.
7011 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7012 "fork-inferior.o".
7013 (i[34567]86-*-lynxos*): Likewise.
7014 (spu*-*-*): Likewise.
7015 * fork-child.c: New file.
7016 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7017 and "environ.h".
7018 (linux_ptrace_fun): New function.
7019 (linux_create_inferior): Adjust function prototype to reflect
7020 change on "target.h". Adjust function code to use
7021 "fork_inferior".
7022 (linux_request_interrupt): Delete "signal_pid".
7023 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7024 (lynx_ptrace_fun): New function.
7025 (lynx_create_inferior): Adjust function prototype to reflect
7026 change on "target.h". Adjust function code to use
7027 "fork_inferior".
7028 * nto-low.c (nto_create_inferior): Adjust function prototype and
7029 code to reflect change on "target.h". Update comments.
7030 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7031 "common-terminal.h" and "environ.h".
7032 (terminal_fd): Moved to fork-child.c.
7033 (old_foreground_pgrp): Likewise.
7034 (restore_old_foreground_pgrp): Likewise.
7035 (last_status): Make it global.
7036 (last_ptid): Likewise.
7037 (our_environ): New variable.
7038 (startup_with_shell): Likewise.
7039 (program_name): Likewise.
7040 (program_argv): Rename to...
7041 (program_args): ...this.
7042 (wrapper_argv): New variable.
7043 (start_inferior): Delete function.
7044 (get_exec_wrapper): New function.
7045 (get_exec_file): Likewise.
7046 (get_environ): Likewise.
7047 (prefork_hook): Likewise.
7048 (post_fork_inferior): Likewise.
7049 (postfork_hook): Likewise.
7050 (postfork_child_hook): Likewise.
7051 (handle_v_run): Update code to deal with arguments coming from the
7052 remote host. Update calls from "start_inferior" to
7053 "create_inferior".
7054 (captured_main): Likewise. Initialize environment variable. Call
7055 "have_job_control".
7056 * server.h (post_fork_inferior): New prototype.
7057 (get_environ): Likewise.
7058 (last_status): Declare.
7059 (last_ptid): Likewise.
7060 (signal_pid): Likewise.
7061 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7062 (spu_ptrace_fun): New function.
7063 (spu_create_inferior): Adjust function prototype to reflect change
7064 on "target.h". Adjust function code to use "fork_inferior".
7065 * target.c (target_terminal_init): New function.
7066 (target_terminal_inferior): Likewise.
7067 (target_terminal_ours): Likewise.
7068 * target.h: Include <vector>.
7069 (struct target_ops) <create_inferior>: Update prototype.
7070 (create_inferior): Update macro.
7071 * utils.c (gdb_flush_out_err): New function.
7072 * win32-low.c (win32_create_inferior): Adjust function prototype
7073 and code to reflect change on "target.h".
7074
043a4934
SDJ
70752017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7076
7077 * inferiors.c (switch_to_thread): New function.
7078
15652511
SDJ
70792017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7080
7081 * Makefile.in (SFILE): Add "common/job-control.c".
7082 (OBS): Add "job-control.o".
7083
21ea5acd
SDJ
70842017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7085
7086 * Makefile: Remove "@host_makefile_frag@".
7087
e13cb306
PA
70882017-05-05 Pedro Alves <palves@redhat.com>
7089
7090 * configure: Regenerate.
7091
c94fee56
SDJ
70922017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7093
7094 * configure: Regenerate.
7095
a0ff9e1a
SM
70962017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7097
7098 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7099 software_single_step change of return type to
7100 std::vector<CORE_ADDR>.
7101 * linux-low.c (install_software_single_step_breakpoints):
7102 Likewise.
7103 * linux-low.h (install_software_single_step_breakpoints):
7104 Likewise.
7105
be628ab8
SDJ
71062017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7107
7108 * remote-utils.c: Include "gdb_termios.h" instead of
7109 "terminal.h".
7110 * terminal.h: Delete file.
7111
7c5ded6a
SDJ
71122017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7113
7114 * server.c: Include <vector>.
7115 <program_argv, wrapper_argv>: Convert to std::vector.
7116 (start_inferior): Rewrite function to use C++.
7117 (handle_v_run): Likewise. Update code that calculates the argv
7118 based on the vRun packet; use C++.
7119 (captured_main): Likewise.
7120
436252de
SM
71212017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7122
7123 * server.c (handle_v_cont): Initialize thread_resume::thread
7124 with null_ptid.
7125
9bf2a700
PA
71262017-04-05 Pedro Alves <palves@redhat.com>
7127
7128 * configure: Regenerate.
7129
a121b7c1
PA
71302017-04-05 Pedro Alves <palves@redhat.com>
7131
7132 * gdbreplay.c (sync_error): Constify.
7133 * linux-x86-low.c (push_opcode): Constify.
7134
21c8a587
PA
71352017-04-05 Pedro Alves <palves@redhat.com>
7136
7137 * win32-low.c (get_child_debug_event)
7138 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7139 Report TARGET_WAITKIND_SPURIOUS instead.
7140
fb32b4f7
PA
71412017-04-05 Pedro Alves <palves@redhat.com>
7142
e79be6e5
SM
7143 * remote-utils.c (remote_prepare, remote_open): Constify.
7144 * remote-utils.h (remote_prepare, remote_open): Constify.
7145 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7146
65dd1e59
SM
71472017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7148
7149 * Makefile.in (clean): Clear .deps.
7150
8fa5b777
SM
71512017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7152
7153 * .gitignore: Remove generated files, replace with wildcard.
7154 * (clean): Replace removal of generated files with wildcard.
7155 (version.c): Replace with...
7156 (version-generated.c): ...this.
7157 (xml-builtin.c): Replace with...
7158 (xml-builtin-generated.c): ...this.
7159 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7160 (%.c: *regformats*): Replace with...
7161 (%-generated.c: *regformats*): ...this.
7162
a12e714b
MF
71632017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7164
7165 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7166 (xtensa_fill_gregset): Call collect_register_by_name for
7167 threadptr register.
7168 (xtensa_store_gregset): Call supply_register_by_name for
7169 threadptr register.
7170
1a09b50a
MF
71712017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7172
7173 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7174 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7175 (xtensa_store_gregset): Call supply_register for all registers in
7176 a0_regnum..a0_regnum + C0_NREGS range.
7177
1a01e7c6
SM
71782017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7179
7180 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7181 (ax-ipa.o: ax.c): Remove.
7182 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7183 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7184 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7185 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7186 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7187
36bc18a8
SM
71882017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7189
7190 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7191 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7192 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7193 (errors-ipa.o: ../common/errors.c): Remove.
7194 (format-ipa.o: ../common/format.c): Remove.
7195 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7196
a8ebe3d5
SM
71972017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7198
7199 * Makefile.in (%-ipa.o: %.c): New rule.
7200 (tracepoint-ipa.o: tracepoint.c): Remove.
7201 (utils-ipa.o: utils.c): Remove.
7202 (remote-utils-ipa.o: remote-utils.c): Remove.
7203 (regcache-ipa.o: regcache.c): Remove.
7204 (i386-linux-ipa.o: i386-linux.c): Remove.
7205 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7206 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7207 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7208 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7209 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7210 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7211 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7212 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7213 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7214 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7215 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7216 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7217 (aarch64-ipa.o: aarch64.c): Remove.
7218 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7219 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7220 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7221 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7222 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7223 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7224 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7225 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7226 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7227 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7228 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7229 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7230 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7231 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7232 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7233 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7234 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7235 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7236 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7237 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7238 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7239 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7240 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7241 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7242 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7243 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7244 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7245 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7246 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7247 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7248 (tdesc-ipa.o: tdesc.c): Remove.
7249 (x32-linux-ipa.o: x32-linux.c): Remove.
7250 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7251 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7252
50cfacb7
SM
72532017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7254
7255 * Makefile.in (%.o: ../arch/%.c): New rule.
7256 (arm.o: ../arch/arm.c): Remove.
7257 (arm-linux.o: ../arch/arm-linux.c): Remove.
7258 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7259 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7260
c5a22423
SM
72612017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7262
7263 * Makefile.in (%.o: ../nat/%.c): New rule.
7264 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7265 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7266 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7267 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7268 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7269 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7270 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7271 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7272 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7273 (linux-personality.o: ../nat/linux-personality.c): Remove.
7274 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7275 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7276 (x86-linux.o: ../nat/x86-linux.c): Remove.
7277 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7278 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7279
6bda016b
SM
72802017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7281
7282 * Makefile.in (%.o: ../common/%.c): New rule.
7283 (signals.o: ../common/signals.c): Remove.
7284 (print-utils.o: ../common/print-utils.c): Remove.
7285 (rsp-low.o: ../common/rsp-low.c): Remove.
7286 (common-utils.o: ../common/common-utils.c): Remove.
7287 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7288 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7289 (vec.o: ../common/vec.c): Remove.
7290 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7291 (xml-utils.o: ../common/xml-utils.c): Remove.
7292 (ptid.o: ../common/ptid.c): Remove.
7293 (buffer.o: ../common/buffer.c): Remove.
7294 (format.o: ../common/format.c): Remove.
7295 (filestuff.o: ../common/filestuff.c): Remove.
7296 (agent.o: ../common/agent.c): Remove.
7297 (errors.o: ../common/errors.c): Remove.
7298 (environ.o: ../common/environ.c): Remove.
7299 (common-debug.o: ../common/common-debug.c): Remove.
7300 (cleanups.o: ../common/cleanups.c): Remove.
7301 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7302 (fileio.o: ../common/fileio.c): Remove.
7303 (common-regcache.o: ../common/common-regcache.c): Remove.
7304 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7305 (new-op.o: ../common/new-op.c): Remove.
7306 (btrace-common.o: ../common/btrace-common.c): Remove.
7307
21122961
SM
73082017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7309
7310 * Makefile.in (%.o: ../target/%.c): New rule.
7311 (waitstatus.o: ../target/waitstatus.c): Remove.
7312
c362e621
SM
73132017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7314
7315 * Makefile.in
7316 (%.c: ../regformats/%.dat,
7317 (%.c: ../regformats/arm/%.dat,
7318 (%.c: ../regformats/i386/%.dat,
7319 (%.c: ../regformats/rs6000/%.dat): New rules.
7320 (aarch64.c): Remove.
7321 (reg-arm.c): Remove.
7322 (arm-with-iwmmxt.c): Remove.
7323 (arm-with-vfpv2.c): Remove.
7324 (arm-with-vfpv3.c): Remove.
7325 (arm-with-neon.c): Remove.
7326 (reg-bfin.c): Remove.
7327 (reg-cris.c): Remove.
7328 (reg-crisv32.c): Remove.
7329 (i386.c): Remove.
7330 (i386-linux.c): Remove.
7331 (i386-avx.c): Remove.
7332 (i386-avx-linux.c): Remove.
7333 (i386-avx-avx512.c): Remove.
7334 (i386-avx-avx512-linux.c): Remove.
7335 (i386-mpx.c): Remove.
7336 (i386-mpx-linux.c): Remove.
7337 (i386-avx-mpx-avx512-pku.c): Remove.
7338 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7339 (i386-avx-mpx.c): Remove.
7340 (i386-avx-mpx-linux.c): Remove.
7341 (i386-mmx.c): Remove.
7342 (i386-mmx-linux.c): Remove.
7343 (reg-ia64.c): Remove.
7344 (reg-m32r.c): Remove.
7345 (reg-m68k.c): Remove.
7346 (reg-cf.c): Remove.
7347 (mips-linux.c): Remove.
7348 (mips-dsp-linux.c): Remove.
7349 (mips64-linux.c): Remove.
7350 (mips64-dsp-linux.c): Remove.
7351 (nios2-linux.c): Remove.
7352 (powerpc-32.c): Remove.
7353 (powerpc-32l.c): Remove.
7354 (powerpc-altivec32l.c): Remove.
7355 (powerpc-cell32l.c): Remove.
7356 (powerpc-vsx32l.c): Remove.
7357 (powerpc-isa205-32l.c): Remove.
7358 (powerpc-isa205-altivec32l.c): Remove.
7359 (powerpc-isa205-vsx32l.c): Remove.
7360 (powerpc-e500l.c): Remove.
7361 (powerpc-64l.c): Remove.
7362 (powerpc-altivec64l.c): Remove.
7363 (powerpc-cell64l.c): Remove.
7364 (powerpc-vsx64l.c): Remove.
7365 (powerpc-isa205-64l.c): Remove.
7366 (powerpc-isa205-altivec64l.c): Remove.
7367 (powerpc-isa205-vsx64l.c): Remove.
7368 (s390-linux32.c): Remove.
7369 (s390-linux32v1.c): Remove.
7370 (s390-linux32v2.c): Remove.
7371 (s390-linux64.c): Remove.
7372 (s390-linux64v1.c): Remove.
7373 (s390-linux64v2.c): Remove.
7374 (s390-te-linux64.c): Remove.
7375 (s390-vx-linux64.c): Remove.
7376 (s390-tevx-linux64.c): Remove.
7377 (s390x-linux64.c): Remove.
7378 (s390x-linux64v1.c): Remove.
7379 (s390x-linux64v2.c): Remove.
7380 (s390x-te-linux64.c): Remove.
7381 (s390x-vx-linux64.c): Remove.
7382 (s390x-tevx-linux64.c): Remove.
7383 (tic6x-c64xp-linux.c): Remove.
7384 (tic6x-c64x-linux.c): Remove.
7385 (tic6x-c62x-linux.c): Remove.
7386 (reg-sh.c): Remove.
7387 (reg-sparc64.c): Remove.
7388 (reg-spu.c): Remove.
7389 (amd64.c): Remove.
7390 (amd64-linux.c): Remove.
7391 (amd64-avx.c): Remove.
7392 (amd64-avx-linux.c): Remove.
7393 (amd64-avx-avx512.c): Remove.
7394 (amd64-avx-avx512-linux.c): Remove.
7395 (amd64-mpx.c): Remove.
7396 (amd64-mpx-linux.c): Remove.
7397 (amd64-avx-mpx-avx512-pku.c): Remove.
7398 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7399 (amd64-avx-mpx.c): Remove.
7400 (amd64-avx-mpx-linux.c): Remove.
7401 (x32.c): Remove.
7402 (x32-linux.c): Remove.
7403 (x32-avx.c): Remove.
7404 (x32-avx-linux.c): Remove.
7405 (x32-avx-avx512.c): Remove.
7406 (x32-avx-avx512-linux.c): Remove.
7407 (reg-xtensa.c): Remove.
7408 (reg-tilegx.c): Remove.
7409 (reg-tilegx32.c): Remove.
7410
1672e0d9
SDJ
74112017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7412
7413 * Makefile.in (SFILES): Add "common/environ.c".
7414 (OBJS): Add "common/environ.h".
7415
239b6d10
WT
74162017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7417
7418 * configure.ac: Check if the fs_base and gs_base members of
7419 `struct user_regs_struct' exist.
7420 * config.in: Regenerated.
7421 * configure: Likewise.
7422
694b382c
AT
74232017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7424
7425 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7426 target_read_memory.
7427 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7428 (get_next_pcs_syscall_next_pc): Likewise.
7429
7dc53023
LM
74302016-12-23 Luis Machado <lgustavo@codesourcery.com>
7431
7432 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7433 * nto-x86-low.c: Likewise.
7434
ad02e4fe
SM
74352016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7436
7437 * Makefile.in: Include disable-implicit-rules.mk.
7438
dcb07cfa
PA
74392016-11-23 Pedro Alves <palves@redhat.com>
7440
7441 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7442 (debug_vprintf): Use std::chrono::steady_clock instead of
7443 gettimeofday. Use '.' instead of ':'.
7444 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7445 (get_timestamp): Use std::chrono::steady_clock instead of
7446 gettimeofday.
7447
8629c02c
SM
74482016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7449
7450 * Makefile.in: Fix whitespace formatting.
7451
b593ecca
SM
74522016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7453
7454 * Makefile.in (SFILES, OBS): Flatten list and order
7455 alphabetically.
7456
9986ba08
PA
74572016-11-23 Pedro Alves <palves@redhat.com>
7458
7459 * event-loop.c (handle_file_event): Use warning.
7460 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7461 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7462 Use warning.
7463
4eefa7bc
PA
74642016-11-23 Pedro Alves <palves@redhat.com>
7465
7466 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7467 output.
7468 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7469 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7470 debug_printf and debug_flush for debug output.
7471 * server.c (handle_general_set): Likewise.
7472 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7473 output.
7474
5443506e
SM
74752016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7476
7477 * Makefile.in (.c.o): Replace rule with ...
7478 (%.o: %.c): ... this one.
7479
3b165252
SM
74802016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7481
7482 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7483 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7484 make.
7485 * configure.ac: Remove checks for the make program.
7486 * configure: Re-generate.
7487
0bcda685
PA
74882016-10-28 Pedro Alves <palves@redhat.com>
7489
7490 * Makefile.in (CXX_DIALECT): Get from configure.
7491 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7492 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7493 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7494 * config.in: Regenerate.
7495 * configure: Regenerate.
7496
c3805894
YQ
74972016-10-27 Yao Qi <yao.qi@linaro.org>
7498
7499 * linux-low.c (linux_supports_range_stepping): Return true if
7500 can_software_single_step return true.
7501
89342618
YQ
75022016-10-27 Yao Qi <yao.qi@linaro.org>
7503
7504 * inferiors.c (find_inferior_in_random): New function.
7505 * inferiors.h (find_inferior_in_random): Declare.
7506 * linux-low.c (linux_wait_for_event_filtered): Call
7507 find_inferior_in_random instead of find_inferior.
7508
e3652c84
YQ
75092016-10-27 Yao Qi <yao.qi@linaro.org>
7510
7511 * linux-low.c (linux_wait_1): If single-step breakpoints are
7512 inserted, remove them.
7513
5a04c4cf
PA
75142016-10-26 Pedro Alves <palves@redhat.com>
7515
7516 * linux-low.c (handle_extended_wait): Link parent/child fork
7517 threads.
7518 (linux_wait_1): Unlink them.
7519 (linux_set_resume_request): Ignore resume requests for
7520 already-resumed and unhandled fork child threads.
7521 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7522 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7523 New functions.
7524 (handle_v_requests) <vCont>: Don't call require_running.
7525 * server.h (in_queued_stop_replies): New declaration.
7526
cb93dc7f
YQ
75272016-10-24 Yao Qi <yao.qi@linaro.org>
7528
7529 PR server/20733
7530 * linux-aarch64-low.c (append_insns): Cast the return value to
7531 'uint32_t *'.
7532
a1078bea
YQ
75332016-10-10 Yao Qi <yao.qi@linaro.org>
7534
7535 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7536
1fb77080
SDJ
75372016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7538
7539 * target.c (target_supports_multi_process): New function, moved
7540 from...
7541 * target.h (target_supports_multi_process): ... here. Remove
7542 macro.
7543
39b5a3b9
TT
75442016-10-05 Tom Tromey <tom@tromey.com>
7545
7546 PR remote/20655:
7547 * tracepoint.c (handle_tracepoint_bkpts): Check
7548 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7549
c1d0b70a
YQ
75502016-10-05 Yao Qi <yao.qi@linaro.org>
7551
7552 * configure.srv: Update the path of arm-*.xml files.
7553
0a69eedb
YQ
75542016-10-05 Terry Guo <terry.guo@arm.com>
7555 Yao Qi <yao.qi@linaro.org>
7556
7557 * Makefile.in: Adjust the path of rules.
7558 * configure.srv: Update the path of xml files.
7559 * regformats/arm-with-iwmmxt.dat: Regenerated.
7560 * regformats/arm-with-neon.dat: Likewise.
7561 * regformats/arm-with-vfpv2.dat: Likewise.
7562 * regformats/arm-with-vfpv3.dat Likewise.
7563
17e16485
YQ
75642016-09-30 Yao Qi <yao.qi@linaro.org>
7565
7566 PR gdbserver/20627
7567 * target.c (target_stop_and_wait): Don't call
7568 target_continue_no_signal, use resume_stop instead.
7569
edeeb602
YQ
75702016-09-26 Yao Qi <yao.qi@linaro.org>
7571
7572 * linux-low.c (linux_wait_1): Call debug_exit.
7573
503b1c39
PA
75742016-09-23 Pedro Alves <palves@redhat.com>
7575
7576 * Makefile.in (SFILES): Add common/new-op.c.
7577 (OBS): Add common/new-op.o.
7578 (new-op.o): New rule.
7579
74172ecf
SM
75802016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7581
7582 * .gitinore: Ignore more files.
7583
fc6cda2e
YQ
75842016-09-21 Yao Qi <yao.qi@linaro.org>
7585
7586 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7587 23.
7588
bc1e6c81
SDJ
75892016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7590
7591 * server.c (start_inferior): Call target_mourn_inferior instead of
7592 mourn_inferior; pass ptid_t argument to it.
7593 (resume): Likewise.
7594 (handle_target_event): Likewise.
7595 * target.c (target_mourn_inferior): New function.
7596 * target.h (mourn_inferior): Delete macro.
7597
0e00e962
AA
75982016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7599
7600 * linux-low.c (lwp_is_stepping): New function.
7601
1d8cb77d
CL
76022016-09-06 Carl Love <cel@us.ibm.com>
7603
7604 * server.c (start_inferior): Fixed comment, requested comment change
7605 didn't get updated correctly. Removed reference to ptrace () call as
7606 it is only true on Linux systems.
7607
7313bced
CL
76082016-09-06 Carl Love <cel@us.ibm.com>
7609
7610 * server.c (start_inferior): Do not call
7611 function target_post_create_inferior () if the
7612 inferior process has already exited.
7613
cf6de44d
PA
76142016-09-05 Pedro Alves <palves@redhat.com>
7615
7616 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7617 (COMPILE.pre, CC_LD): Use CXX directly.
7618 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7619 * acinclude.m4: Don't include build-with-cxx.m4.
7620 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7621 * configure: Regenerate.
7622
c1da6748
AT
76232016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7624
7625 PR gdb/19495
7626 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7627 call writing data to own_buf.
7628
f2b9e3df
SDJ
76292016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7630
7631 * target.c (mywait): Call target_wait instead of
7632 the_target->wait.
7633 (target_wait): New function.
7634
049a8570
SDJ
76352016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7636
7637 * server.c (start_inferior): New variable 'ptid'. Replace calls
7638 to the_target->resume by target_continue{,_no_signal}, depending
7639 on the case.
7640 * target.c (target_stop_and_wait): Call target_continue_no_signal
7641 instead of the_target->resume.
7642 (target_continue): New function.
7643
3aa5cfa0
AT
76442016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7645
7646 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7647
754653a7
AZ
76482016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7649
7650 PR server/20491
7651 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7652 ps_prochandle.
7653 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7654 * linux-arm-low.c (ps_get_thread_area): Likewise.
7655 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7656 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7657 * linux-mips-low.c (ps_get_thread_area): Likewise.
7658 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7659 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7660 * linux-x86-low.c (ps_get_thread_area): Likewise.
7661 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7662
ed036b40
PA
76632016-08-19 Pedro Alves <palves@redhat.com>
7664
7665 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7666
c8ef42ee
PA
76672016-08-19 Pedro Alves <palves@redhat.com>
7668
7669 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7670 comment. Use memcpy instead of casting through unsigned long.
7671
9c235a72
PA
76722016-08-19 Pedro Alves <palves@redhat.com>
7673
7674 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7675 allocating around 0x80000000.
7676
201506da
PA
76772016-08-19 Pedro Alves <palves@redhat.com>
7678
7679 PR gdb/20415
7680 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7681 (x32-avx512-linux-ipa.o): New rules.
7682 * configure.ac (x86_64-*-linux*): New x32 check.
7683 * configure.srv (ipa_x32_linux_regobj): New.
7684 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7685 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7686 descriptions.
7687 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7688 descriptions.
7689 * configure: Regenerate.
7690
f348d89a
PA
76912016-08-09 Pedro Alves <palves@redhat.com>
7692
7693 PR gdb/18653
7694 * Makefile.in (OBS): Add signals-state-save-restore.o.
7695 (signals-state-save-restore.o): New rule.
7696 * config.in: Regenerate.
7697 * configure: Regenerate.
7698 * linux-low.c: Include "signals-state-save-restore.h".
7699 (linux_create_inferior): Call
7700 restore_original_signals_state.
7701 * server.c: Include "dispositions-save-restore.h".
7702 (captured_main): Call save_original_signals_state.
7703
1baf5149
PA
77042016-08-05 Pedro Alves <palves@redhat.com>
7705
7706 * configure: Regenerate.
7707
fcd4a73d
YQ
77082016-08-04 Yao Qi <yao.qi@linaro.org>
7709
7710 * linux-low.c (regsets_fetch_inferior_registers): Check
7711 errno is ESRCH or not.
7712
979659d0
YQ
77132016-08-02 Yao Qi <yao.qi@linaro.org>
7714
7715 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7716 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7717 (thread_db_load_search): Update.
7718 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7719 td_ta_set_event and td_ta_event_getmsg.
7720
6598661d
PA
77212016-07-26 Pedro Alves <palves@redhat.com>
7722
7723 PR server/20414
7724 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7725 of unsigned long for 64-bit registers and use uint32_t instead of
7726 unsigned int for 32-bit registers.
7727
9cf12d57
PA
77282016-07-26 Pedro Alves <palves@redhat.com>
7729
7730 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7731 to 'ptrace'.
7732
305450ed
TT
77332016-07-21 Tom Tromey <tom@tromey.com>
7734
7735 * configure: Rebuild.
7736
2583da7c
YQ
77372016-07-21 Yao Qi <yao.qi@linaro.org>
7738
7739 * mem-break.c (find_gdb_breakpoint): Cast bp to
7740 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7741
21536b36
YQ
77422016-07-21 Yao Qi <yao.qi@linaro.org>
7743
7744 * server.c (handle_v_requests): Support s and S actions
7745 if target_supports_software_single_step return true.
7746
8901d193
YQ
77472016-07-21 Yao Qi <yao.qi@linaro.org>
7748
7749 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7750 is resume_step, call maybe_hw_step.
7751 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7752 and unstop them.
7753 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7754 breakpoints or not.
7755 (proceed_one_lwp): If resume request is resume_step, install
7756 reinsert breakpoints and call maybe_hw_step.
7757
0e9a339e
YQ
77582016-07-21 Yao Qi <yao.qi@linaro.org>
7759
7760 * linux-low.c (proceed_one_lwp): Declare.
7761 (linux_resume_one_thread): Remove local variable 'step'.
7762 Lift code enqueue signal. Call proceed_one_lwp instead of
7763 linux_resume_one_lwp.
7764
4281b351
YQ
77652016-07-21 Yao Qi <yao.qi@linaro.org>
7766
7767 * linux-low.c (linux_resume_one_thread): Call
7768 enqueue_pending_signal.
7769
984a2c04
YQ
77702016-07-21 Yao Qi <yao.qi@linaro.org>
7771
7772 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7773 * inferiors.c (do_restore_current_thread_cleanup): New function.
7774 (make_cleanup_restore_current_thread): Likewise.
7775 * linux-low.c (install_software_single_step_breakpoints): Call
7776 make_cleanup_restore_current_thread. Switch current_thread to
7777 thread.
7778
bec903c9
YQ
77792016-07-21 Yao Qi <yao.qi@linaro.org>
7780
7781 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7782 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7783 (clone_one_breakpoint): Likewise.
7784 (delete_reinsert_breakpoints): Change parameter to thread.
7785 Callers updated.
7786 (has_reinsert_breakpoints): Likewise.
7787 (uninsert_reinsert_breakpoints): Likewise.
7788 (reinsert_reinsert_breakpoints): Likewise.
7789 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7790 (delete_reinsert_breakpoints): Likewise.
7791 (reinsert_reinsert_breakpoints): Likewise.
7792 (uninsert_reinsert_breakpoints): Likewise.
7793 (has_reinsert_breakpoints): Likewise.
7794
63c40ec7
YQ
77952016-07-21 Yao Qi <yao.qi@linaro.org>
7796
7797 * inferiors.c (get_thread_process): Make parameter const.
7798 * inferiors.h (get_thread_process): Update declaration.
7799 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7800 Add new parameters child_thread and parent_thread. Callers
7801 updated.
7802 * mem-break.h (clone_all_breakpoints): Update declaration.
7803
9aa76cd0
YQ
78042016-07-21 Yao Qi <yao.qi@linaro.org>
7805
7806 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7807 <command_list, handler>: Remove.
7808 (struct gdb_breakpoint): New.
7809 (struct other_breakpoint): New.
7810 (struct reinsert_breakpoint): New.
7811 (is_gdb_breakpoint): New function.
7812 (any_persistent_commands): Update command_list if
7813 is_gdb_breakpoint returns true.
7814 (set_breakpoint): Create breakpoints according to their types.
7815 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7816 (set_gdb_breakpoint_1): Likewise.
7817 (set_gdb_breakpoint): Likewise.
7818 (clear_breakpoint_conditions): Change parameter type to
7819 'struct gdb_breakpoint *'.
7820 (clear_breakpoint_commands): Likewise.
7821 (clear_breakpoint_conditions_and_commands): Likewise.
7822 (add_condition_to_breakpoint): Likewise.
7823 (add_breakpoint_condition): Likewise.
7824 (add_commands_to_breakpoint): Likewise.
7825 (check_breakpoints): Check other_breakpoint.
7826 (clone_one_breakpoint): Clone breakpopint according to its type.
7827 * mem-break.h (struct gdb_breakpoint): Declare.
7828 (set_gdb_breakpoint): Update declaration.
7829 (clear_breakpoint_conditions_and_commands): Likewise.
7830 (add_breakpoint_condition): Likewise.
7831 (add_breakpoint_commands): Likewise.
7832 * server.c (process_point_options): Change parameter type to
7833 'struct gdb_breakpoint *'.
7834
811f8301
YQ
78352016-07-21 Yao Qi <yao.qi@linaro.org>
7836
7837 * mem-break.c (set_breakpoint_at): Rename it to ...
7838 (set_breakpoint_type_at): ... it.
7839 (set_breakpoint_at): Call set_breakpoint_type_at.
7840 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7841 * mem-break.h (set_breakpoint_at): Update comments.
7842
b1c51e36
CLT
78432016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7844
7845 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7846 to buf parameter.
7847 (nios2_store_gregset): Likewise.
7848
ced2dffb
PA
78492016-07-01 Pedro Alves <palves@redhat.com>
7850 Antoine Tremblay <antoine.tremblay@ericsson.com>
7851
7852 * linux-low.c: Change interface to take the target lwp_info
7853 pointer directly and return void. Handle detaching from a zombie
7854 thread.
7855 (linux_detach_lwp_callback): New function.
7856 (linux_detach): Detach from the leader thread after detaching from
7857 the clone threads.
7858
2ac09a5b
YQ
78592016-06-28 Yao Qi <yao.qi@linaro.org>
7860
7861 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7862 for variable new_offset.
7863 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7864 (aarch64_ftrace_insn_reloc_cb): Likewise.
7865 (aarch64_ftrace_insn_reloc_tb): Likewise.
7866 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7867 PRIx64 instead of PRIx32.
7868
79e7fd4f
YQ
78692016-06-28 Yao Qi <yao.qi@linaro.org>
7870
7871 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7872 (the_low_target): Install arm_get_syscall_trapinfo.
7873
061fc021
YQ
78742016-06-28 Yao Qi <yao.qi@linaro.org>
7875
7876 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7877 function.
7878 (the_low_target): Install aarch64_get_syscall_trapinfo.
7879
4cc32bec
YQ
78802016-06-28 Yao Qi <yao.qi@linaro.org>
7881
7882 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7883 Callers updated.
7884 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7885 Remove parameter sysno.
7886 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7887 sysret.
7888
782c1122
AA
78892016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7890
7891 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7892 (s390_emit_ne_goto): Likewise.
7893 (s390_emit_lt_goto): Likewise.
7894 (s390_emit_le_goto): Likewise.
7895 (s390_emit_gt_goto): Likewise.
7896 (s390_emit_ge_goto): Likewise.
7897 (s390x_emit_eq_goto): Likewise.
7898 (s390x_emit_ne_goto): Likewise.
7899 (s390x_emit_lt_goto): Likewise.
7900 (s390x_emit_le_goto): Likewise.
7901 (s390x_emit_gt_goto): Likewise.
7902 (s390x_emit_ge_goto): Likewise.
7903 (s390_emit_ops_impl): Mark variable static.
7904 (s390x_emit_ops): Likewise.
7905
2e7b624b
YQ
79062016-06-17 Yao Qi <yao.qi@linaro.org>
7907
7908 * linux-low.c (handle_extended_wait): Call
7909 uninsert_reinsert_breakpoints for the parent process. Remove
7910 reinsert breakpoints from the child process. Reinsert them to
7911 the parent process when vfork is done.
7912 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7913 (reinsert_reinsert_breakpoints): New function.
7914 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7915 (reinsert_reinsert_breakpoints): Declare.
7916
8a81c5d7
YQ
79172016-06-17 Yao Qi <yao.qi@linaro.org>
7918
7919 * linux-low.c (handle_extended_wait): If the parent is doing
7920 step-over, remove the reinsert breakpoints from the forked child.
7921
f50bf8e5
YQ
79222016-06-17 Yao Qi <yao.qi@linaro.org>
7923
7924 * linux-low.c (unsuspend_all_lwps): Declare.
7925 (linux_low_filter_event): If thread exited, call finish_step_over.
7926 If step-over is finished, unsuspend other threads.
7927
8376a3cb
YQ
79282016-06-17 Yao Qi <yao.qi@linaro.org>
7929
7930 * linux-low.c (linux_resume_one_lwp_throw): Assert
7931 has_reinsert_breakpoints returns false.
7932 * mem-break.c (delete_disabled_breakpoints): Assert
7933 bp type isn't reinsert_breakpoint.
7934
f79b145d
YQ
79352016-06-17 Yao Qi <yao.qi@linaro.org>
7936
7937 * linux-low.c (maybe_hw_step): New function.
7938 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7939 (finish_step_over): Switch current_thread to lwp temporarily,
7940 and assert has_reinsert_breakpoints returns true.
7941 (proceed_one_lwp): Call maybe_hw_step.
7942 * mem-break.c (has_reinsert_breakpoints): New function.
7943 * mem-break.h (has_reinsert_breakpoints): Declare.
7944
0ae534d2
JT
79452016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7946
7947 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7948
fcdad592
YQ
79492016-05-17 Yao Qi <yao.qi@linaro.org>
7950
7951 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7952 instead of find_inferior.
7953
9e784964
YQ
79542016-05-05 Yao Qi <yao.qi@linaro.org>
7955
7956 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7957 Initialize res to zero.
7958
cf2ebb6e
YQ
79592016-05-05 Yao Qi <yao.qi@linaro.org>
7960
7961 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7962 to uint32_t.
7963
c1aebf87
UW
79642016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7965
7966 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7967 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7968 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7969
35fd2deb 79702016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 7971 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
7972
7973 * tracepoint.c (write_inferior_int8): New function.
7974 (cmd_qtenable_disable): Write enable flag using
7975 write_inferior_int8.
7976
484b3c32
YQ
79772016-04-25 Yao Qi <yao.qi@linaro.org>
7978
7979 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7980 (need_step_over_p): Return zero if the LWP has pending signals
7981 can be delivered on software single step target.
7982
85ba7d86
YQ
79832016-04-25 Yao Qi <yao.qi@linaro.org>
7984
7985 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7986 return instead of error.
7987
3539aa13
YQ
79882016-04-22 Yao Qi <yao.qi@linaro.org>
7989
7990 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7991 to 23.
7992
5b061e98
YQ
79932016-04-22 Yao Qi <yao.qi@linaro.org>
7994
7995 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7996 signal when stepping over breakpoint with software single
7997 step.
7998
3451269c
PA
79992016-04-21 Pedro Alves <palves@redhat.com>
8000
8001 * linux-s390-low.c (s390_collect_ptrace_register)
8002 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8003 add casts.
8004 (s390_check_regset): Use void * instead of gdb_byte *.
8005
a2358508
PA
80062016-04-20 Pedro Alves <palves@redhat.com>
8007
8008 * configure: Renegerate.
8009
6885166d
YQ
80102016-04-20 Yao Qi <yao.qi@linaro.org>
8011
8012 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8013 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8014 number 16.
8015 (arm_store_gregset): Likewise.
8016
2b863f51
WT
80172016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8018
8019 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8020 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8021 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8022 (amd64-avx-mpx-linux.c): New rules.
8023 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8024 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8025 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8026 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8027 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8028 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8029 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8030 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8031 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8032 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8033 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8034 * linux-x86-low.c (x86_linux_read_description): Add case for
8035 X86_XSTATE_AVX_MPX_MASK.
8036 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8037 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8038 init_registers_i386_avx_mpx_linux.
8039 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8040 (initialize_low_tracepoint): Call
8041 init_registers_i386_avx_mpx_linux.
8042 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8043 (initialize_low_tracepoint): Call
8044 init_registers_amd64_avx_mpx_linux.
8045 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8046 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8047 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8048 declarations.
8049
9b30624b
PA
80502016-04-18 Pedro Alves <palves@redhat.com>
8051
8052 * configure: Regenerate.
8053
45e3745e
AT
80542016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8055
8056 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8057 (aarch64_emit_sub): Likewise.
8058
2afc13ff
PA
80592016-04-12 Pedro Alves <palves@redhat.com>
8060
8061 * utils.c (prepare_to_throw_exception): Delete.
8062
6e774b13
SM
80632016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8064
8065 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8066
4dca19f8
MK
80672016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8068
8069 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8070
d0a9981f
MK
80712016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8072
8073 * linux-aarch64-ipa.c: Add <elf.h> include.
8074 * linux-ppc-ipa.c: Add <elf.h> include.
8075 * linux-s390-ipa.c: Add <elf.h> include.
8076
252db07e
MK
80772016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8078
8079 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8080 (get_raw_reg_ptr): Likewise.
8081 (get_trace_state_variable_value_ptr): Likewise.
8082 (set_trace_state_variable_value_ptr): Likewise.
8083 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8084 char *.
8085
14e2b6d9
MK
80862016-03-31 Wei-cheng Wang <cole945@gmail.com>
8087 Marcin Kościelnicki <koriakin@0x04.net>
8088
8089 PR/17221
8090 * linux-ppc-low.c (emit_insns): New function.
8091 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8092 (ppc_emit_prologue): New function.
8093 (ppc_emit_epilogue): New function.
8094 (ppc_emit_add): New function.
8095 (ppc_emit_sub): New function.
8096 (ppc_emit_mul): New function.
8097 (ppc_emit_lsh): New function.
8098 (ppc_emit_rsh_signed): New function.
8099 (ppc_emit_rsh_unsigned): New function.
8100 (ppc_emit_ext): New function.
8101 (ppc_emit_zero_ext): New function.
8102 (ppc_emit_log_not): New function.
8103 (ppc_emit_bit_and): New function.
8104 (ppc_emit_bit_or): New function.
8105 (ppc_emit_bit_xor): New function.
8106 (ppc_emit_bit_not): New function.
8107 (ppc_emit_equal): New function.
8108 (ppc_emit_less_signed): New function.
8109 (ppc_emit_less_unsigned): New function.
8110 (ppc_emit_ref): New function.
8111 (ppc_emit_const): New function.
8112 (ppc_emit_reg): New function.
8113 (ppc_emit_pop): New function.
8114 (ppc_emit_stack_flush): New function.
8115 (ppc_emit_swap): New function.
8116 (ppc_emit_stack_adjust): New function.
8117 (ppc_emit_call): New function.
8118 (ppc_emit_int_call_1): New function.
8119 (ppc_emit_void_call_2): New function.
8120 (ppc_emit_if_goto): New function.
8121 (ppc_emit_goto): New function.
8122 (ppc_emit_eq_goto): New function.
8123 (ppc_emit_ne_goto): New function.
8124 (ppc_emit_lt_goto): New function.
8125 (ppc_emit_le_goto): New function.
8126 (ppc_emit_gt_goto): New function.
8127 (ppc_emit_ge_goto): New function.
8128 (ppc_write_goto_address): New function.
8129 (ppc_emit_ops_impl): New static variable.
8130 (ppc64v1_emit_prologue): New function.
8131 (ppc64v2_emit_prologue): New function.
8132 (ppc64_emit_epilogue): New function.
8133 (ppc64_emit_add): New function.
8134 (ppc64_emit_sub): New function.
8135 (ppc64_emit_mul): New function.
8136 (ppc64_emit_lsh): New function.
8137 (ppc64_emit_rsh_signed): New function.
8138 (ppc64_emit_rsh_unsigned): New function.
8139 (ppc64_emit_ext): New function.
8140 (ppc64_emit_zero_ext): New function.
8141 (ppc64_emit_log_not): New function.
8142 (ppc64_emit_bit_and): New function.
8143 (ppc64_emit_bit_or): New function.
8144 (ppc64_emit_bit_xor): New function.
8145 (ppc64_emit_bit_not): New function.
8146 (ppc64_emit_equal): New function.
8147 (ppc64_emit_less_signed): New function.
8148 (ppc64_emit_less_unsigned): New function.
8149 (ppc64_emit_ref): New function.
8150 (ppc64_emit_const): New function.
8151 (ppc64v1_emit_reg): New function.
8152 (ppc64v2_emit_reg): New function.
8153 (ppc64_emit_pop): New function.
8154 (ppc64_emit_stack_flush): New function.
8155 (ppc64_emit_swap): New function.
8156 (ppc64v1_emit_call): New function.
8157 (ppc64v2_emit_call): New function.
8158 (ppc64v1_emit_int_call_1): New function.
8159 (ppc64v2_emit_int_call_1): New function.
8160 (ppc64v1_emit_void_call_2): New function.
8161 (ppc64v2_emit_void_call_2): New function.
8162 (ppc64_emit_if_goto): New function.
8163 (ppc64_emit_eq_goto): New function.
8164 (ppc64_emit_ne_goto): New function.
8165 (ppc64_emit_lt_goto): New function.
8166 (ppc64_emit_le_goto): New function.
8167 (ppc64_emit_gt_goto): New function.
8168 (ppc64_emit_ge_goto): New function.
8169 (ppc64v1_emit_ops_impl): New static variable.
8170 (ppc64v2_emit_ops_impl): New static variable.
8171 (ppc_emit_ops): New function.
8172 (linux_low_target): Wire in ppc_emit_ops.
8173
a2174ba4
MK
81742016-03-31 Wei-cheng Wang <cole945@gmail.com>
8175 Marcin Kościelnicki <koriakin@0x04.net>
8176
8177 PR/17221
8178 * Makefile.in: Add powerpc-*-ipa.o
8179 * configure.srv: Add ipa_obj for powerpc*-linux.
8180 * linux-ppc-ipa.c: New file.
8181 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8182 includes.
8183 (PPC_FIELD): New macro.
8184 (PPC_SEXT): New macro.
8185 (PPC_OP6): New macro.
8186 (PPC_BO): New macro.
8187 (PPC_LI): New macro.
8188 (PPC_BD): New macro.
8189 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8190 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8191 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8192 (ppc_get_thread_area): New function.
8193 (is_elfv2_inferior): New function.
8194 (gen_ds_form): New function.
8195 (GEN_STD): New macro.
8196 (GEN_STDU): New macro.
8197 (GEN_LD): New macro.
8198 (GEN_LDU): New macro.
8199 (gen_d_form): New function.
8200 (GEN_ADDI): New macro.
8201 (GEN_ADDIS): New macro.
8202 (GEN_LI): New macro.
8203 (GEN_LIS): New macro.
8204 (GEN_ORI): New macro.
8205 (GEN_ORIS): New macro.
8206 (GEN_LWZ): New macro.
8207 (GEN_STW): New macro.
8208 (GEN_STWU): New macro.
8209 (gen_xfx_form): New function.
8210 (GEN_MFSPR): New macro.
8211 (GEN_MTSPR): New macro.
8212 (GEN_MFCR): New macro.
8213 (GEN_MTCR): New macro.
8214 (GEN_SYNC): New macro.
8215 (GEN_LWSYNC): New macro.
8216 (gen_x_form): New function.
8217 (GEN_OR): New macro.
8218 (GEN_MR): New macro.
8219 (GEN_LWARX): New macro.
8220 (GEN_STWCX): New macro.
8221 (GEN_CMPW): New macro.
8222 (gen_md_form): New function.
8223 (GEN_RLDICL): New macro.
8224 (GEN_RLDICR): New macro.
8225 (gen_i_form): New function.
8226 (GEN_B): New macro.
8227 (GEN_BL): New macro.
8228 (gen_b_form): New function.
8229 (GEN_BNE): New macro.
8230 (GEN_LOAD): New macro.
8231 (GEN_STORE): New macro.
8232 (gen_limm): New function.
8233 (gen_atomic_xchg): New function.
8234 (gen_call): New function.
8235 (ppc_relocate_instruction): New function.
8236 (ppc_install_fast_tracepoint_jump_pad): New function.
8237 (ppc_get_min_fast_tracepoint_insn_len): New function.
8238 (ppc_get_ipa_tdesc_idx): New function.
8239 (the_low_target): Wire in the new functions.
8240 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8241 tdescs.
8242 * linux-ppc-tdesc.h: New file.
8243
a13c4696
MK
82442016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8245
8246 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8247 (alloc_jump_pad_buffer): New function.
8248 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8249 (alloc_jump_pad_buffer): New function.
8250 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8251 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8252 (alloc_jump_pad_buffer): New function.
8253 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8254 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8255 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8256 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8257
1cda1512
MK
82582016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8259
8260 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8261 * linux-amd64-ipa.c: Likewise.
8262 * linux-i386-ipa.c: Likewise.
8263 * linux-s390-ipa.c: Likewise.
8264 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8265 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8266 set_trace_state_variable_value_ptr.
8267 (struct ipa_sym_addresses): Likewise.
8268 (symbol_list): Likewise.
8269 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8270 accessing gdb_collect directly.
8271 (gdb_collect_ptr_type): New typedef.
8272 (get_raw_reg_ptr_type): New typedef.
8273 (get_trace_state_variable_value_ptr_type): New typedef.
8274 (set_trace_state_variable_value_ptr_type): New typedef.
8275 (gdb_collect_ptr): New global.
8276 (get_raw_reg_ptr): New global.
8277 (get_trace_state_variable_value_ptr): New global.
8278 (set_trace_state_variable_value_ptr): New global.
8279 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8280 accessing get_raw_reg directly.
8281 (get_get_tsv_func_addr): Likewise for
8282 get_trace_state_variable_value_ptr.
8283 (get_set_tsv_func_addr): Likewise for
8284 set_trace_state_variable_value_ptr.
8285 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8286
72fb5488
SM
82872016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8288
8289 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8290
28170b88
MK
82912016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8292
8293 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8294 packets.
8295 (relocate_instruction): Remove own_buf.
8296 * server.c (own_buf): Make global.
8297 (handle_v_requests): Make global.
8298 * server.h (own_buf): New declaration.
8299 (handle_v_requests): New prototype.
8300
f39e8743
MK
83012016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8302
8303 PR 18377
8304 * linux-s390-low.c (add_insns): New function.
8305 (s390_emit_prologue): New function.
8306 (s390_emit_epilogue): New function.
8307 (s390_emit_add): New function.
8308 (s390_emit_sub): New function.
8309 (s390_emit_mul): New function.
8310 (s390_emit_lsh): New function.
8311 (s390_emit_rsh_signed): New function.
8312 (s390_emit_rsh_unsigned): New function.
8313 (s390_emit_ext): New function.
8314 (s390_emit_log_not): New function.
8315 (s390_emit_bit_and): New function.
8316 (s390_emit_bit_or): New function.
8317 (s390_emit_bit_xor): New function.
8318 (s390_emit_bit_not): New function.
8319 (s390_emit_equal): New function.
8320 (s390_emit_less_signed): New function.
8321 (s390_emit_less_unsigned): New function.
8322 (s390_emit_ref): New function.
8323 (s390_emit_if_goto): New function.
8324 (s390_emit_goto): New function.
8325 (s390_write_goto_address): New function.
8326 (s390_emit_litpool): New function.
8327 (s390_emit_const): New function.
8328 (s390_emit_call): New function.
8329 (s390_emit_reg): New function.
8330 (s390_emit_pop): New function.
8331 (s390_emit_stack_flush): New function.
8332 (s390_emit_zero_ext): New function.
8333 (s390_emit_swap): New function.
8334 (s390_emit_stack_adjust): New function.
8335 (s390_emit_set_r2): New function.
8336 (s390_emit_int_call_1): New function.
8337 (s390_emit_void_call_2): New function.
8338 (s390_emit_eq_goto): New function.
8339 (s390_emit_ne_goto): New function.
8340 (s390_emit_lt_goto): New function.
8341 (s390_emit_le_goto): New function.
8342 (s390_emit_gt_goto): New function.
8343 (s390_emit_ge_goto): New function.
8344 (s390x_emit_prologue): New function.
8345 (s390x_emit_epilogue): New function.
8346 (s390x_emit_add): New function.
8347 (s390x_emit_sub): New function.
8348 (s390x_emit_mul): New function.
8349 (s390x_emit_lsh): New function.
8350 (s390x_emit_rsh_signed): New function.
8351 (s390x_emit_rsh_unsigned): New function.
8352 (s390x_emit_ext): New function.
8353 (s390x_emit_log_not): New function.
8354 (s390x_emit_bit_and): New function.
8355 (s390x_emit_bit_or): New function.
8356 (s390x_emit_bit_xor): New function.
8357 (s390x_emit_bit_not): New function.
8358 (s390x_emit_equal): New function.
8359 (s390x_emit_less_signed): New function.
8360 (s390x_emit_less_unsigned): New function.
8361 (s390x_emit_ref): New function.
8362 (s390x_emit_if_goto): New function.
8363 (s390x_emit_const): New function.
8364 (s390x_emit_call): New function.
8365 (s390x_emit_reg): New function.
8366 (s390x_emit_pop): New function.
8367 (s390x_emit_stack_flush): New function.
8368 (s390x_emit_zero_ext): New function.
8369 (s390x_emit_swap): New function.
8370 (s390x_emit_stack_adjust): New function.
8371 (s390x_emit_int_call_1): New function.
8372 (s390x_emit_void_call_2): New function.
8373 (s390x_emit_eq_goto): New function.
8374 (s390x_emit_ne_goto): New function.
8375 (s390x_emit_lt_goto): New function.
8376 (s390x_emit_le_goto): New function.
8377 (s390x_emit_gt_goto): New function.
8378 (s390x_emit_ge_goto): New function.
8379 (s390_emit_ops): New function.
8380 (struct linux_target_ops): Fill in emit_ops hook.
8381
abd9baf9
MK
83822016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8383
8384 PR 18377
8385 * Makefile.in: Add s390 IPA files.
8386 * configure.srv: Build IPA for s390.
8387 * linux-s390-ipa.c: New file.
8388 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8389 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8390 (tdesc_s390_linux32): Likewise.
8391 (init_registers_s390_linux32v1): Likewise.
8392 (tdesc_s390_linux32v1): Likewise.
8393 (init_registers_s390_linux32v2): Likewise.
8394 (tdesc_s390_linux32v2): Likewise.
8395 (init_registers_s390_linux64): Likewise.
8396 (tdesc_s390_linux64): Likewise.
8397 (init_registers_s390_linux64v1): Likewise.
8398 (tdesc_s390_linux64v1): Likewise.
8399 (init_registers_s390_linux64v2): Likewise.
8400 (tdesc_s390_linux64v2): Likewise.
8401 (init_registers_s390_te_linux64): Likewise.
8402 (tdesc_s390_te_linux64): Likewise.
8403 (init_registers_s390_vx_linux64): Likewise.
8404 (tdesc_s390_vx_linux64): Likewise.
8405 (init_registers_s390_tevx_linux64): Likewise.
8406 (tdesc_s390_tevx_linux64): Likewise.
8407 (init_registers_s390x_linux64): Likewise.
8408 (tdesc_s390x_linux64): Likewise.
8409 (init_registers_s390x_linux64v1): Likewise.
8410 (tdesc_s390x_linux64v1): Likewise.
8411 (init_registers_s390x_linux64v2): Likewise.
8412 (tdesc_s390x_linux64v2): Likewise.
8413 (init_registers_s390x_te_linux64): Likewise.
8414 (tdesc_s390x_te_linux64): Likewise.
8415 (init_registers_s390x_vx_linux64): Likewise.
8416 (tdesc_s390x_vx_linux64): Likewise.
8417 (init_registers_s390x_tevx_linux64): Likewise.
8418 (tdesc_s390x_tevx_linux64): Likewise.
8419 (have_hwcap_s390_vx): New static variable.
8420 (s390_arch_setup): Fill have_hwcap_s390_vx.
8421 (s390_get_thread_area): New function.
8422 (s390_ft_entry_gpr_esa): New const.
8423 (s390_ft_entry_gpr_zarch): New const.
8424 (s390_ft_entry_misc): New const.
8425 (s390_ft_entry_fr): New const.
8426 (s390_ft_entry_vr): New const.
8427 (s390_ft_main_31): New const.
8428 (s390_ft_main_64): New const.
8429 (s390_ft_exit_fr): New const.
8430 (s390_ft_exit_vr): New const.
8431 (s390_ft_exit_misc): New const.
8432 (s390_ft_exit_gpr_esa): New const.
8433 (s390_ft_exit_gpr_zarch): New const.
8434 (append_insns): New function.
8435 (s390_relocate_instruction): New function.
8436 (s390_install_fast_tracepoint_jump_pad): New function.
8437 (s390_get_min_fast_tracepoint_insn_len): New function.
8438 (s390_get_ipa_tdesc_idx): New function.
8439 (struct linux_target_ops): Wire in the above functions.
8440 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8441 * linux-s390-tdesc.h: New file.
8442
a4105d04
MK
84432016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8444
8445 * linux-s390-low.c (s390_supports_tracepoints): New function.
8446 (struct linux_target_ops): Fill supports_tracepoints hook.
8447
35ac8b3e
YQ
84482016-03-18 Yao Qi <yao.qi@linaro.org>
8449
8450 * linux-low.c (lwp_signal_can_be_delivered): New function.
8451 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8452
94610ec4
YQ
84532016-03-18 Yao Qi <yao.qi@linaro.org>
8454
8455 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8456 0 if signal is enqueued. Remove 'signal' from one debugging
8457 message. Move one debugging message to some lines below.
8458 Remove code setting 'signal' to 0.
8459
80aea927
YQ
84602016-03-18 Yao Qi <yao.qi@linaro.org>
8461
8462 * linux-low.c (linux_low_filter_event): Remove redundant
8463 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8464
b04fd3be
MK
84652016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8466
8467 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8468 (struct linux_target_ops): Wire in the above.
8469
c40c8d4b
YQ
84702016-03-03 Yao Qi <yao.qi@linaro.org>
8471
8472 * linux-low.c: Update comments to start_step_over.
8473
0f8288ae
YQ
84742016-03-03 Yao Qi <yao.qi@linaro.org>
8475
8476 PR server/19736
8477 * linux-low.c (handle_extended_wait): Set child suspended
8478 if event_lwp->bp_reinsert isn't zero.
8479
fdbd04a8
YQ
84802016-03-02 Yao Qi <yao.qi@linaro.org>
8481
8482 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8483 enqueue_pending_signal.
8484
6896a8fa
MK
84852016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8486
8487 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8488 is actually loaded.
8489
ab503087
MK
84902016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8491
8492 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8493 (s390_regmap_3264) [!__s390x__]: New global.
8494 (s390_collect_ptrace_register): Skip map entries containing -1.
8495 (s390_supply_ptrace_register): Ditto.
8496 (s390_fill_gprs_high): New function.
8497 (s390_store_gprs_high): New function.
8498 (s390_regsets): Add NT_S390_HIGH_GPRS.
8499 (s390_get_hwcap): Enable on 31-bit.
8500 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8501 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8502 Detect NT_S390_HIGH_GPRS.
8503 (s390_usrregs_info_3264): Enable on 31-bit.
8504 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8505 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8506
ae91f625
MK
85072016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8508
8509 PR gdb/13808
8510 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8511 * configure.srv: Ditto.
8512 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8513 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8514 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8515 (init_registers_amd64_linux): Remove prototype.
8516 (tdesc_amd64_linux): Remove declaration.
8517 (get_ipa_tdesc): New function.
8518 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8519 initialize remaining tdescs.
8520 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8521 (init_registers_i386_linux): Remove prototype.
8522 (tdesc_i386_linux): Remove declaration.
8523 (get_ipa_tdesc): New function.
8524 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8525 initialize remaining tdescs.
8526 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8527 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8528 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8529 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8530 (x86_get_ipa_tdesc_idx): New function.
8531 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8532 * linux-x86-tdesc.h: New file.
8533 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8534 (target_get_ipa_tdesc_idx): New macro.
8535 * tracepoint.c (ipa_tdesc_idx): New macro.
8536 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8537 (symbol_list): Add ipa_tdesc_idx.
8538 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8539 (ipa_tdesc): Remove.
8540 (ipa_tdesc_idx): New variable.
8541 (get_context_regcache): Use get_ipa_tdesc.
8542 (gdb_collect): Ditto.
8543 (gdb_probe): Ditto.
8544 * tracepoint.h (get_ipa_tdesc): New prototype.
8545 (ipa_tdesc): Remove.
8546
e7ad2f14
PA
85472016-02-24 Pedro Alves <palves@redhat.com>
8548
8549 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8550 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8551 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8552 Factor out common code between the USE_SIGTRAP_SIGINFO and
8553 !USE_SIGTRAP_SIGINFO blocks.
8554 (linux_low_filter_event): Call save_stop_reason instead of
8555 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8556 Update comments.
8557 (linux_wait_1): Update comments.
8558
657f9cde
WW
85592016-02-24 Wei-cheng Wang <cole945@gmail.com>
8560
8561 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8562 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8563 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8564 ppc_insert_point, ppc_remove_point.
8565
b00b61e1
MK
85662016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8567
8568 * linux-s390-low.c (s390_supports_z_point_type): New function.
8569 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8570
553cb527
YQ
85712016-02-16 Yao Qi <yao.qi@linaro.org>
8572
8573 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8574 PC. Get pc from regcache_read_pc.
8575
a5652c21
YQ
85762016-02-12 Yao Qi <yao.qi@linaro.org>
8577
8578 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8579 or linux_get_pc_32bit.
8580 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8581
ed443b61
YQ
85822016-02-12 Yao Qi <yao.qi@linaro.org>
8583
8584 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8585 arm_linux_get_next_pcs_fixup.
8586
020ecd38
MK
85872016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8588
8589 * tracepoint.c (x_tracepoint_action_download): Change
8590 write_inferior_data_ptr to write_inferior_data_pointer.
8591 (cmd_qtstart): Likewise.
8592 (write_inferior_data_ptr): Remove.
8593 (download_agent_expr): Change write_inferior_data_ptr to
8594 write_inferior_data_pointer.
8595 (download_tracepoint_1): Likewise.
8596 (download_tracepoint): Likewise.
8597 (download_trace_state_variables): Likewise.
8598
7cae9051
WW
85992016-02-11 Wei-cheng Wang <cole945@gmail.com>
8600 Marcin Kościelnicki <koriakin@0x04.net>
8601
8602 * tracepoint.c (struct tracepoint_action_ops): Remove.
8603 (struct tracepoint_action): Remove ops.
8604 (m_tracepoint_action_download, r_tracepoint_action_download)
8605 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8606 size and offset accordingly.
8607 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8608 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8609 (tracepoint_action_send, tracepoint_action_download): New functions.
8610 Helpers for trace action handlers.
8611 (add_tracepoint_action): Remove setup actions ops.
8612 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8613
9f6a71b4
YQ
86142016-02-10 Yao Qi <yao.qi@linaro.org>
8615
8616 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8617
1e94266c
SM
86182016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8619
8620 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8621 to AC_OUTPUT.
8622 * configure: Regenerate.
8623
8adce034
SM
86242016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8625
8626 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8627 void * to gdb_byte *.
8628 * linux-low.c (siginfo_fixup): Likewise.
8629 (linux_xfer_siginfo): Likewise.
8630 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8631 Likewise.
8632 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8633
93813b37
WT
86342016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8635
8636 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8637 to srv_tgtobj.
8638 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8639 to srv_tgtobj.
8640 * linux-x86-low.c [__x86_64__]: Include
8641 "nat/amd64-linux-siginfo.h".
8642 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8643 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8644 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8645 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8646 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8647 (cpt_si_fd, si_timerid, si_overrun): Move from
8648 nat/amd64-linux-siginfo.c.
8649 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8650
8424cc97
SM
86512016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8652
8653 * server.c (skip_to_semicolon): Remove.
8654 (process_point_options): Use strchrnul instead of
8655 skip_to_semicolon.
8656
4d18591b
YQ
86572016-01-26 Yao Qi <yao.qi@linaro.org>
8658
8659 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8660 * linux-low.c (install_software_single_step_breakpoints): Don't
8661 call regcache_read_pc.
8662 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8663 argument pc.
8664
d8020970
YQ
86652016-01-26 Yao Qi <yao.qi@linaro.org>
8666
8667 * linux-low.c (install_software_single_step_breakpoints): Call
8668 regcache_read_pc instead of get_pc.
8669
8b207339
YQ
86702016-01-26 Yao Qi <yao.qi@linaro.org>
8671
8672 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8673 (unblock_async_io): Rename to ...
8674 (block_unblock_async_io): ... it. New function.
8675 (enable_async_io): Don't install SIGIO handler. Unblock it
8676 instead.
8677 (disable_async_io): Don't ignore SIGIO. Block it instead.
8678 (initialize_async_io): Install SIGIO handler. Don't call
8679 unblock_async_io.
8680
18879fef
YQ
86812016-01-26 Yao Qi <yao.qi@linaro.org>
8682
8683 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8684 first character is '\003', call *the_target->request_interrupt.
8685
a0f8e08a
YQ
86862016-01-25 Yao Qi <yao.qi@linaro.org>
8687
8688 * remote-utils.c (new_thread_notify): Remove.
8689 (dead_thread_notify): Likewise.
8690 * remote-utils.h (new_thread_notify): Remove declaration.
8691 (dead_thread_notify): Likewise.
8692
cc5fd9ab
MK
86932016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8694
8695 * gdb.trace/pending.exp: Fix expected message on continue.
8696
99e8eb11
MK
86972016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8698
8699 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8700 it works properly on big-endian machines where sizeof (CORE_ADDR)
8701 != sizeof (void *).
8702
a994041d
PA
87032016-01-21 Pedro Alves <palves@redhat.com>
8704
8705 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8706 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8707 * configure: Regenerate.
8708
f7a6a40d
YQ
87092016-01-21 Yao Qi <yao.qi@linaro.org>
8710
8711 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8712 is_thumb and set it according to CPSR saved on the stack.
8713 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8714 arm_sigreturn_next_pc.
8715
6f69e520
YQ
87162016-01-18 Yao Qi <yao.qi@linaro.org>
8717
8718 * linux-low.c (linux_set_pc_64bit): New function.
8719 (linux_get_pc_64bit): New function.
8720 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8721 Declare.
8722 * linux-sparc-low.c (debug_threads): Remove declaration.
8723 (sparc_get_pc): Remove.
8724 (the_low_target): Use linux_get_pc_64bit instead of
8725 sparc_get_pc.
8726 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8727 (the_low_target): Use linux_get_pc_64bit and
8728 linux_set_pc_64bit.
8729
276d4552
YQ
87302016-01-18 Yao Qi <yao.qi@linaro.org>
8731
8732 * linux-arm-low.c (debug_threads): Remove declaration.
8733 (arm_get_pc, arm_set_pc): Remove.
8734 (the_low_target): Use linux_get_pc_32bit and
8735 linux_set_pc_32bit.
8736 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8737 (the_low_target): Use linux_get_pc_32bit and
8738 linux_set_pc_32bit.
8739 * linux-cris-low.c (debug_threads): Remove declaration.
8740 (cris_get_pc, cris_set_pc,): Remove.
8741 (the_low_target): Use linux_get_pc_32bit and
8742 linux_set_pc_32bit.
8743 * linux-crisv32-low.c (debug_threads): Remove declaration.
8744 (cris_get_pc, cris_set_pc): Remove.
8745 (the_low_target): Use linux_get_pc_32bit and
8746 linux_set_pc_32bit.
8747 * linux-low.c: Include inttypes.h.
8748 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8749 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8750 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8751 (the_low_target): Use linux_get_pc_32bit and
8752 linux_set_pc_32bit.
8753 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8754 (the_low_target): Use linux_get_pc_32bit and
8755 linux_set_pc_32bit.
8756 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8757 (the_low_target): Use linux_get_pc_32bit and
8758 linux_set_pc_32bit.
8759 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8760 (the_low_target): Use linux_get_pc_32bit and
8761 linux_set_pc_32bit.
8762 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8763 (the_low_target): Use linux_get_pc_32bit and
8764 linux_set_pc_32bit.
8765
eb0edac8
GB
87662016-01-18 Gary Benson <gbenson@redhat.com>
8767
8768 * configure.ac (AC_FUNC_FORK): New check.
8769 * config.in: Regenerate.
8770 * configure: Likewise.
8771
1b451dda
YQ
87722016-01-14 Yao Qi <yao.qi@linaro.org>
8773
8774 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8775 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8776 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8777 arm_get_next_pcs_ctor.
8778
82075af2
JS
87792016-01-12 Josh Stone <jistone@redhat.com>
8780 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8781
8782 * inferiors.h: Include "gdb_vecs.h".
8783 (struct process_info): Add syscalls_to_catch.
8784 * inferiors.c (remove_process): Free syscalls_to_catch.
8785 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8786 syscall_return stops.
8787 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8788 * server.c (handle_general_set): Handle QCatchSyscalls.
8789 (handle_query): Report support for QCatchSyscalls.
8790 * target.h (struct target_ops): Add supports_catch_syscall.
8791 (target_supports_catch_syscall): New macro.
8792 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8793 (struct lwp_info): Add syscall_state.
8794 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8795 Maintain syscall_state and syscalls_to_catch across exec.
8796 (get_syscall_trapinfo): New function, proxy to the_low_target.
8797 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8798 (linux_low_filter_event): Toggle syscall_state entry/return for
8799 syscall traps, and set it ignored for all others.
8800 (gdb_catching_syscalls_p): New function.
8801 (gdb_catch_this_syscall_p): New function.
8802 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8803 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8804 (linux_supports_catch_syscall): New function.
8805 (linux_target_ops): Install it.
8806 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8807 (the_low_target): Install it.
8808
8f13a3ce
MF
88092016-01-12 Mike Frysinger <vapier@gentoo.org>
8810
8811 * acinclude.m4: Include new ../warning.m4 file.
8812 * configure: Regenerated.
8813 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8814
5b3da067
MF
88152016-01-12 Mike Frysinger <vapier@gentoo.org>
8816
8817 * ax.c (is_goto_target): Mark static.
8818 * linux-low.c (register_addr): Likewise.
8819 (linux_fetch_registers, linux_store_registers): Likewise.
8820 * mem-break.c (any_persistent_commands): Fix old prototype.
8821 (add_commands_to_breakpoint): Mark static.
8822 * regcache.c (find_register_by_name): Delete unused func.
8823 * remote-utils.c (hex_or_minus_one): Mark static.
8824 * server.c (monitor_show_help): Mark static.
8825 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8826 handle_v_requests): Likewise.
8827
bc504a31
PA
88282016-01-12 Pedro Alves <palves@redhat.com>
8829
8830 Remove use of the registered trademark symbol throughout.
8831
5a0dd67a
YQ
88322016-01-08 Yao Qi <yao.qi@linaro.org>
8833
8834 * remote-utils.c (getpkt): If c is '\003', call target hook
8835 request_interrupt.
8836
b2ca446f
YQ
88372016-01-06 Yao Qi <yao.qi@linaro.org>
8838
8839 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8840 linux-aarch32-low.c.
8841 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8842 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8843 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8844 (thumb2_breakpoint): Declare.
8845 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8846 linux-aarch32-low.h.
8847 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8848 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8849 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8850
edd88788
JB
88512016-01-01 Joel Brobecker <brobecker@adacore.com>
8852
8853 * gdbreplay.c (gdbreplay_version): Change copyright year in
8854 version message.
8855 * server.c (gdbserver_version): Likewise.
8856
65da7f14
PP
88572015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8858
8859 * server.c (crc32_table): Delete.
8860 (crc32): Use libiberty's xcrc32 function.
8861
4abd5ed2
JB
88622015-12-22 Joel Brobecker <brobecker@adacore.com>
8863
8864 * lynx-low.c (lynx_delete_thread_callback): New function.
8865 (lynx_mourn): Properly delete our process and all of its
8866 threads. Remove call to clear_inferiors.
8867
0e50fe5c
JB
88682015-12-22 Joel Brobecker <brobecker@adacore.com>
8869
8870 * target.c (thread_search_callback): Add check that
8871 the thread_stopped target callback is not NULL before
8872 calling it.
8873
35adc03f
YQ
88742015-12-21 Yao Qi <yao.qi@linaro.org>
8875
8876 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8877 arm breakpoint.
8878
bd2b2909
AT
88792015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8880
8881 * server.c (handle_query): Call target_supports_software_single_step.
8882
7fe5e27e
AT
88832015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8884
8885 * linux-low.c (single_step): New function.
8886 (linux_resume_one_lwp_throw): Call single_step.
8887 (start_step_over): Likewise.
8888
d9311bfa
AT
88892015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8890
8891 * Makefile.in (SFILES): Append arch/arm-linux.c,
8892 arch/arm-get-next-pcs.c.
8893 (arm-linux.o): New rule.
8894 (arm-get-next-pcs.o): New rule.
8895 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8896 arm-linux.o.
8897 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8898 to linux-aarch32-low.c.
8899 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8900 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8901 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8902 (thumb2_breakpoint_len): Likewise.
8903 (arm_is_thumb_mode): Make non-static.
8904 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8905 from linux-aarch32-low.c.
8906 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8907 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8908 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8909 (thumb2_breakpoint_len): Likewise.
8910 (arm_is_thumb_mode): New declaration.
8911 * linux-arm-low.c: Include arch/arm-linux.h
8912 aarch/arm-get-next-pcs.h, sys/syscall.h.
8913 (get_next_pcs_ops): New struct.
8914 (get_next_pcs_addr_bits_remove): New function.
8915 (get_next_pcs_is_thumb): New function.
8916 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8917 (arm_sigreturn_next_pc): Likewise.
8918 (get_next_pcs_syscall_next_pc): Likewise.
8919 (arm_gdbserver_get_next_pcs): Likewise.
8920 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8921 Initialize.
8922 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8923 * server.h: Include gdb_vecs.h.
8924
68ce2059
AT
89252015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8926
8927 * Makefile.in (SFILES): Append common/common-regcache.c.
8928 (OBS): Append common-regcache.o.
8929 (common-regcache.o): New rule.
8930 * regcache.c (init_register_cache): Initialize cache to
8931 REG_UNAVAILABLE.
8932 (regcache_raw_read_unsigned): New function.
8933 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8934 register_status enum.
8935
fa5308bd
AT
89362015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8937
8938 * linux-aarch64-low.c (the_low_targets): Rename
8939 breakpoint_reinsert_addr to get_next_pcs.
8940 * linux-arm-low.c (the_low_targets): Likewise.
8941 * linux-bfin-low.c (the_low_targets): Likewise.
8942 * linux-cris-low.c (the_low_targets): Likewise.
8943 * linux-crisv32-low.c (the_low_targets): Likewise.
8944 * linux-low.c (can_software_single_step): Likewise.
8945 (install_software_single_step_breakpoints): New function.
8946 (start_step_over): Use install_software_single_step_breakpoints.
8947 * linux-low.h: New CORE_ADDR vector.
8948 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8949 get_next_pcs.
8950 * linux-mips-low.c (the_low_targets): Likewise.
8951 * linux-nios2-low.c (the_low_targets): Likewise.
8952 * linux-sparc-low.c (the_low_targets): Likewise.
8953
4a6ed09b
PA
89542015-12-17 Pedro Alves <palves@redhat.com>
8955
8956 * linux-low.c (linux_kill_one_lwp): Remove references to
8957 LinuxThreads.
8958 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8959 to 'kill'.
8960 (linux_init_signals): Delete.
8961 (initialize_low): Adjust.
8962 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8963
7544db95
PA
89642015-12-16 Pedro Alves <palves@redhat.com>
8965
8966 * configure.ac (compiler warning flags): When testing a
8967 -Wno-foo option, check whether -Wfoo works instead.
8968 * configure: Regenerate.
8969
8020350c
DB
89702015-12-11 Don Breazeal <donb@codesourcery.com>
8971
8972 * server.c (process_serial_event): Don't exit from gdbserver
8973 in remote mode if there are still active inferiors.
8974
db91f502
YQ
89752015-12-11 Yao Qi <yao.qi@linaro.org>
8976
8977 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8978 arm_breakpoint_at if the process is 32-bit.
8979
b37a6290
YQ
89802015-12-11 Yao Qi <yao.qi@linaro.org>
8981
8982 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8983 arm breakpoint.
8984
17b1509a
YQ
89852015-12-07 Yao Qi <yao.qi@linaro.org>
8986
8987 * configure.srv: Append arm.o to srv_tgtobj for
8988 aarch64*-*-linux* target.
8989 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8990 from linux-arm-low.c.
8991 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8992 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8993 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8994 (thumb2_breakpoint_len): Likewise.
8995 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8996 (arm_breakpoint_kinds): Likewise.
8997 (arm_breakpoint_kind_from_pc): Likewise.
8998 (arm_sw_breakpoint_from_kind): Likewise.
8999 (arm_breakpoint_kind_from_current_state): Likewise.
9000 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9001 (arm_sw_breakpoint_from_kind): Declare.
9002 (arm_breakpoint_kind_from_current_state): Declare.
9003 (arm_breakpoint_at): Declare.
9004 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9005 arm_sw_breakpoint_from_kind if process is 32-bit.
9006 (aarch64_breakpoint_kind_from_pc): New function.
9007 (aarch64_breakpoint_kind_from_current_state): New function.
9008 (the_low_target): Initialize fields breakpoint_kind_from_pc
9009 and breakpoint_kind_from_current_state.
9010 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9011 linux-aarch32-low.c.
9012 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9013 (arm_breakpoint, arm_breakpoint_len): Likewise.
9014 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9015 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9016 (arm_is_thumb_mode): Likewise.
9017 (arm_breakpoint_at): Likewise.
9018 (arm_breakpoint_kind_from_pc): Likewise.
9019 (arm_sw_breakpoint_from_kind): Likewise.
9020 (arm_breakpoint_kind_from_current_state): Likewise.
9021
9022 Revert:
9023 2015-08-04 Yao Qi <yao.qi@linaro.org>
9024
9025 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9026 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9027 * server.c (extended_protocol): Remove "static".
9028 * server.h (extended_protocol): Declare it.
9029
ece66d65
JS
90302015-12-04 Josh Stone <jistone@redhat.com>
9031
9032 * target.h (struct target_ops) <arch_setup>: Rename to ...
9033 (struct target_ops) <post_create_inferior>: ... this.
9034 (target_arch_setup): Rename to ...
9035 (target_post_create_inferior): ... this, calling post_create_inferior.
9036 * server.c (start_inferior): Update target_arch_setup calls to
9037 target_post_create_inferior.
9038 * linux-low.c (linux_low_ptrace_options): Forward declare.
9039 (linux_arch_setup): Update its comment for general use.
9040 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9041 (struct linux_target_ops): Use linux_post_create_inferior.
9042 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9043 to post_create_inferior.
9044 * nto-low.c (struct nto_target_ops): Likewise.
9045 * spu-low.c (struct spu_target_ops): Likewise.
9046 * win32-low.c (struct win32_target_ops): Likewise.
9047
e58c48b4
AT
90482015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9049
9050 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9051
fbec8956
AT
90522015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9053
9054 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9055 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9056 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9057 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9058 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9059 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9060 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9061 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9062 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9063 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9064 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9065 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9066
9b4c5f87
AT
90672015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9068
9069 * linux-low.c (linux_look_up_symbols): Don't call
9070 linux_supports_traceclone.
9071 * linux-low.h (thread_db_init): Remove use_events argument.
9072 * thread-db.c (thread_db_use_event): Remove global variable.
9073 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9074 (struct thread_db) <td_create_bp>: Remove field.
9075 (thread_db_create_event): Remove function.
9076 (thread_db_enable_reporting): Likewise.
9077 (find_one_thread): Don't check for thread_db_use_events.
9078 (attach_thread): Likewise.
9079 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9080 (try_thread_db_load_1): Don't check for thread_db_use_events.
9081 (thread_db_init): Remove use_events argument and thread events
9082 handling.
9083 (remove_thread_event_breakpoints): Remove function.
9084 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9085
7d00775e
AT
90862015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9087
9088 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9089 New function.
9090 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9091 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9092 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9093 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9094 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9095 Initialize.
9096 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9097 New function.
9098 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9099 * linux-low.c (can_hardware_single_step): Use
9100 supports_hardware_single_step.
9101 (can_software_single_step): New function.
9102 (start_step_over): Call can_software_single_step.
9103 (linux_supports_hardware_single_step): New function.
9104 (struct target_ops) <supports_software_single_step>: Initialize.
9105 * linux-low.h (struct linux_target_ops)
9106 <supports_hardware_single_step>: Initialize.
9107 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9108 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9109 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9110 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9111 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9112 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9113 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9114 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9115 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9116 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9117 Initialize.
9118 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9119 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9120 Initialize.
9121 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9122 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9123 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9124 New function.
9125 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9126 * target.h (struct target_ops): <supports_software_single_step>:
9127 New field.
9128 (target_supports_software_single_step): New macro.
9129
2d97cd35
AT
91302015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9131
9132 * linux-low.c (linux_wait_1): Fix pc advance condition.
9133 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9134 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9135
769ef81f
AT
91362015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9137
9138 * linux-arm-low.c (arm_is_thumb_mode): New function.
9139 (arm_breakpoint_at): Use arm_is_thumb_mode.
9140 (arm_breakpoint_kind_from_current_state): New function.
9141 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9142 Initialize.
9143 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9144 (linux_breakpoint_kind_from_current_state): New function.
9145 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9146 * linux-low.h (struct linux_target_ops)
9147 <breakpoint_kind_from_current_state>: New field.
9148 * target.h (struct target_ops): Likewise.
9149 (target_breakpoint_kind_from_current_state): New macro.
9150
1bebeeca
PA
91512015-11-30 Pedro Alves <palves@redhat.com>
9152
9153 * linux-low.c (linux_resume): Wake up the event loop before
9154 returning.
9155
a67a9fae
PA
91562015-11-30 Pedro Alves <palves@redhat.com>
9157
9158 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9159 check.
9160 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9161 to -1.
9162 * target.c (struct thread_search): New structure.
9163 (thread_search_callback): New function.
9164 (prev_general_thread): New global.
9165 (prepare_to_access_memory, done_accessing_memory): New functions.
9166 * target.h (prepare_to_access_memory, done_accessing_memory):
9167 Replace macros with function declarations.
9168
f2faf941
PA
91692015-11-30 Pedro Alves <palves@redhat.com>
9170
9171 PR 14618
9172 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9173 report TARGET_WAITKIND_NO_RESUMED.
9174 * remote-utils.c (prepare_resume_reply): Handle
9175 TARGET_WAITKIND_NO_RESUMED.
9176 * server.c (report_no_resumed): New global.
9177 (handle_query) <qSupported>: Handle "no-resumed+". Report
9178 "no-resumed+" support.
9179 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9180 return error if the client doesn't support no-resumed events.
9181 (push_stop_notification): New function.
9182 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9183 events if the client supports them.
9184
a681f9c9
PA
91852015-11-30 Pedro Alves <palves@redhat.com>
9186
9187 * linux-low.c (thread_still_has_status_pending_p): Don't check
9188 vCont;t here.
9189 (lwp_resumed): New function.
9190 (status_pending_p_callback): Return early if the LWP is not
9191 supposed to be resumed.
9192
65706a29
PA
91932015-11-30 Pedro Alves <palves@redhat.com>
9194
9195 * linux-low.c (handle_extended_wait): Assert that the LWP's
9196 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9197 thread create events, leave the new child's status pending.
9198 (linux_low_filter_event): If GDB wants to hear about thread exit
9199 events, leave the LWP marked dead and don't delete it.
9200 (linux_wait_for_event_filtered): Don't check for thread exit.
9201 (filter_exit_event): New function.
9202 (linux_wait_1): Use it, when returning an exit event.
9203 (linux_resume_one_lwp_throw): Assert that the LWP's
9204 waitstatus is TARGET_WAITKIND_IGNORE.
9205 * remote-utils.c (prepare_resume_reply): Handle
9206 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9207 * server.c (report_thread_events): New global.
9208 (handle_general_set): Handle QThreadEvents.
9209 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9210 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9211 TARGET_WAITKIND_THREAD_EXITED.
9212 * server.h (report_thread_events): Declare.
9213
56cf4bed
PA
92142015-11-30 Pedro Alves <palves@redhat.com>
9215
9216 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9217 the thread's last_resume_kind was resume_stop.
9218
500c1d85
PA
92192015-11-30 Pedro Alves <palves@redhat.com>
9220
9221 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9222 before returning.
9223
de979965
PA
92242015-11-30 Pedro Alves <palves@redhat.com>
9225
9226 * server.c (handle_v_requests): Handle vCtrlC.
9227
34c65914
PA
92282015-11-30 Pedro Alves <palves@redhat.com>
9229
9230 * gdbthread.h (find_any_thread_of_pid): Declare.
9231 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9232 functions.
9233 * server.c (handle_query): If current_thread is NULL, look for
9234 another thread of the selected process.
9235
79efa585 92362015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9237 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9238
9239 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9240 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9241 name in reply.
9242 * target.h (struct target_ops) <thread_name>: New field.
9243 (target_thread_name): New macro.
9244
80d82c19
JB
92452015-11-23 Joel Brobecker <brobecker@adacore.com>
9246
9247 * regcache.h (regcache_invalidate_pid): Add declaration.
9248 * regcache.c (regcache_invalidate_pid): New function, extracted
9249 from regcache_invalidate.
9250 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9251 Add trivial documentation comment.
9252 * lynx-low.c: Use regcache_invalidate_pid instead of
9253 regcache_invalidate.
9254
64da5dd5
JB
92552015-11-23 Joel Brobecker <brobecker@adacore.com>
9256
9257 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9258 and Elf64_auxv_t if the target is Android.
9259
37ce4055
DE
92602015-11-22 Doug Evans <xdje42@gmail.com>
9261
9262 * target.h: #include <sys/types.h>.
9263
06e03fff
PA
92642015-11-19 Pedro Alves <palves@redhat.com>
9265
9266 * linux-low.c (linux_process_qsupported): Change prototype.
9267 Adjust.
9268 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9269 Change prototype.
9270 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9271 and adjust to loop over all features.
9272 * server.c (handle_query) <qSupported>: Adjust to call
9273 target_process_qsupported once, passing it a vector of unprocessed
9274 features.
9275 * target.h (struct target_ops) <process_qsupported>: Change
9276 prototype.
9277 (target_process_qsupported): Adjust.
9278
9a084706
PA
92792015-11-19 Pedro Alves <palves@redhat.com>
9280
9281 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9282 mode.
9283 * configure: Regenerate.
9284
dad44a1f
PA
92852015-11-19 Pedro Alves <palves@redhat.com>
9286
9287 * configure: Regenerate.
9288
231c0592
YQ
92892015-11-19 Yao Qi <yao.qi@linaro.org>
9290
9291 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9292 type to uint32_t.
9293
6c1c9a8b
YQ
92942015-11-19 Yao Qi <yao.qi@linaro.org>
9295
9296 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9297 (struct aarch64_operand): Move enum out.
9298
9caa3311
YQ
92992015-11-19 Yao Qi <yao.qi@linaro.org>
9300
9301 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9302 struct user_fpsimd_state *.
9303 (aarch64_store_fpregset): Likewise.
9304
6a69a054
YQ
93052015-11-19 Yao Qi <yao.qi@linaro.org>
9306
9307 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9308 struct user_pt_regs *.
9309 (aarch64_store_gregset): Likewise.
9310
1798301e
PA
93112015-11-18 Pedro Alves <palves@redhat.com>
9312
9313 * Makefile.in (all_object_files): Add $IPA_OBJS.
9314
ce7715e2
PA
93152015-11-17 Pedro Alves <palves@redhat.com>
9316
9317 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9318 GDB_SIGNAL_0 and gdb_signal_to_string.
9319
c0879059
PA
93202015-11-17 Pedro Alves <palves@redhat.com>
9321
9322 * win32-low.c (handle_output_debug_string): Remove parameter.
9323 (win32_kill): Remove our_status local and adjust call to
9324 handle_output_debug_string.
9325 (get_child_debug_event): Adjust call to
9326 handle_output_debug_string.
9327
1996e237
SM
93282015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9329
9330 * linux-mips-low.c (mips_fill_gregset): Add cast.
9331 (mips_store_gregset): Likewise.
9332 (mips_fill_fpregset): Likewise.
9333 (mips_store_fpregset): Likewise.
9334
cbec665b
SM
93352015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9336
9337 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9338 priv.
9339
eb3e3c67
SM
93402015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9341
9342 * linux-mips-low.c (mips_linux_new_thread): Change type of
9343 watch_type to enum target_hw_bp_type.
9344
171de4b8
SM
93452015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9346
9347 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9348 Change return type to arm_hwbp_type.
9349
04248ead
SM
93502015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9351
9352 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9353 (arm_store_gregset): Likewise.
9354 * linux-arm-low.c (arm_get_hwcap): Likewise.
9355 (arm_read_description): Likewise.
9356
04b3479c
SM
93572015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9358
9359 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9360
2bc84e8a
SM
93612015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9362
9363 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9364 (ppc_fill_vsxregset): Likewise.
9365 (ppc_store_vsxregset): Likewise.
9366 (ppc_fill_vrregset): Likewise.
9367 (ppc_store_vrregset): Likewise.
9368 (ppc_fill_evrregset): Likewise.
9369 (ppc_store_evrregset): Likewise.
9370
e6c5bb05
SM
93712015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9372
9373 * linux-ppc-low.c (ppc_usrregs_info): Remove
9374 forward-declaration.
9375 (ppc_arch_setup): Move lower in file.
9376
7ea45d72
SM
93772015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9378
9379 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9380 (ps_pdwrite): Likewise.
9381
69291610
HW
93822015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9383
9384 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9385 to after assert checks.
9386
b42945fd
SM
93872015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9388
9389 * proc-service.c (ps_pdread): Add/adjust casts.
9390 (ps_pdwrite): Add/adjust casts.
9391
d6f85c84
SM
93922015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9393
9394 * server.c (handle_search_memory_1): Cast return value of
9395 memmem.
9396
f98cd059
SM
93972015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9398
9399 * server.c (write_qxfer_response): Change type of data to
9400 gdb_byte *.
9401
d2412fa5
PA
94022015-10-29 Pedro Alves <palves@redhat.com>
9403
9404 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9405
c17414a2
PA
94062015-10-29 Pedro Alves <palves@redhat.com>
9407
9408 * tracepoint.c (clear_installed_tracepoints): Add casts.
9409
e053fbc4
PA
94102015-10-29 Pedro Alves <palves@redhat.com>
9411
9412 * server.c (handle_v_cont, process_serial_event): Add enum
9413 gdb_signal casts to signal parsing code.
9414
add67df8
PA
94152015-10-29 Pedro Alves <palves@redhat.com>
9416
9417 * linux-low.h (NULL_REGSET): Define.
9418 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9419 * linux-arm-low.c (arm_regsets): Likewise.
9420 * linux-crisv32-low.c (cris_regsets): Likewise.
9421 * linux-m68k-low.c (m68k_regsets): Likewise.
9422 * linux-mips-low.c (mips_regsets): Likewise.
9423 * linux-nios2-low.c (nios2_regsets): Likewise.
9424 * linux-ppc-low.c (ppc_regsets): Likewise.
9425 * linux-s390-low.c (s390_regsets): Likewise.
9426 * linux-sh-low.c (sh_regsets): Likewise.
9427 * linux-sparc-low.c (sparc_regsets): Likewise.
9428 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9429 * linux-tile-low.c (tile_regsets): Likewise.
9430 * linux-x86-low.c (x86_regsets): Likewise.
9431 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9432
50bc912a
PA
94332015-10-29 Pedro Alves <palves@redhat.com>
9434
9435 * linux-low.h (NULL_REGSET): Define.
9436 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9437 * linux-arm-low.c (arm_regsets): Likewise.
9438 * linux-crisv32-low.c (cris_regsets): Likewise.
9439 * linux-m68k-low.c (m68k_regsets): Likewise.
9440 * linux-mips-low.c (mips_regsets): Likewise.
9441 * linux-nios2-low.c (nios2_regsets): Likewise.
9442 * linux-ppc-low.c (ppc_regsets): Likewise.
9443 * linux-s390-low.c (s390_regsets): Likewise.
9444 * linux-sh-low.c (sh_regsets): Likewise.
9445 * linux-sparc-low.c (sparc_regsets): Likewise.
9446 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9447 * linux-tile-low.c (tile_regsets): Likewise.
9448 * linux-x86-low.c (x86_regsets): Likewise.
9449 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9450
682b2546
DE
94512015-10-26 Doug Evans <dje@google.com>
9452
9453 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9454
963843d4
DE
94552015-10-26 Doug Evans <dje@google.com>
9456
9457 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9458
d41401ac
DE
94592015-10-26 Doug Evans <dje@google.com>
9460
9461 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9462 for debug_printf.
9463 (attach_thread, find_new_threads_callback): Ditto.
9464
3db28855
AT
94652015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9466
9467 * mem-break.h (set_breakpoint_data): Remove.
9468
fb78e89c
AT
94692015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9470
9471 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9472 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9473 (initialize_low): Remove set_breakpoint_data call.
9474 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9475 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9476 (initialize_low): Remove set_breakpoint_data call.
9477 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9478 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9479 (initialize_low): Remove set_breakpoint_data call.
9480
2e6ee069
AT
94812015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9482
9483 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9484 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9485 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9486 * target.h (target_breakpoint_kind_from_pc): New macro.
9487
1652a986
AT
94882015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9489
9490 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9491 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9492 the default breakpoint kind.
9493
abeead09
AT
94942015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9495
9496 * linux-arm-low.c (arm_supports_z_point_type): Add software
9497 breakpoint support.
9498
b0b4b501
AT
94992015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9500
9501 * linux-arm-low.c: Refactor breakpoint definitions.
9502 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9503 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9504
8689682c
AT
95052015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9506
9507 * Makefile.in: Add arm.c/o.
9508 * configure.srv: Likewise.
9509 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9510 (arm_breakpoint_kind_from_pc): New function.
9511 (arm_sw_breakpoint_from_kind): Return proper kind.
9512 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9513
27165294
AT
95142015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9515
9516 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9517 removal.
9518 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9519 (struct raw_breakpoint) <size>: Remove.
9520 (struct raw_breakpoint) <kind>: Add.
9521 (bp_size): New function.
9522 (bp_opcode): Likewise.
9523 (find_raw_breakpoint_at): Adjust for kind.
9524 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9525 (remove_memory_breakpoint): Adjust for kind call bp_size.
9526 (set_raw_breakpoint_at): Adjust for kind.
9527 (set_breakpoint): Likewise.
9528 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9529 (delete_raw_breakpoint): Adjust for kind.
9530 (delete_breakpoint): Likewise.
9531 (find_gdb_breakpoint): Likewise.
9532 (set_gdb_breakpoint_1): Likewise.
9533 (set_gdb_breakpoint): Likewise.
9534 (delete_gdb_breakpoint_1): Likewise.
9535 (delete_gdb_breakpoint): Likewise.
9536 (uninsert_raw_breakpoint): Likewise.
9537 (reinsert_raw_breakpoint): Likewise.
9538 (set_breakpoint_data): Remove.
9539 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9540 (check_mem_read): Adjust for kind call bp_size.
9541 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9542 (clone_one_breakpoint): Adjust for kind.
9543 * mem-break.h (set_gdb_breakpoint): Likewise.
9544 (delete_gdb_breakpoint): Likewise.
9545 * server.c (process_serial_event): Likewise.
9546
dd373349
AT
95472015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9548
9549 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9550 (struct linux_target_ops) <breakpoint>: Remove.
9551 (struct linux_target_ops) <breakpoint_len>: Remove.
9552 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9553 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9554 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9555 (arm_sw_breakpoint_from_kind): New function.
9556 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9557 (struct linux_target_ops) <breakpoint>: Remove.
9558 (struct linux_target_ops) <breakpoint_len>: Remove.
9559 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9560 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9561 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9562 (struct linux_target_ops) <breakpoint>: Remove.
9563 (struct linux_target_ops) <breakpoint_len>: Remove.
9564 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9565 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9566 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9567 (struct linux_target_ops) <breakpoint>: Remove.
9568 (struct linux_target_ops) <breakpoint_len>: Remove.
9569 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9570 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9571 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9572 and sw_breakpoint_from_kind to increment the pc.
9573 (linux_breakpoint_kind_from_pc): New function.
9574 (linux_sw_breakpoint_from_kind): New function.
9575 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9576 (initialize_low): Call breakpoint_kind_from_pc and
9577 sw_breakpoint_from_kind to replace breakpoint_data/len.
9578 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9579 New field.
9580 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9581 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9582 (struct linux_target_ops) <breakpoint>: Remove.
9583 (struct linux_target_ops) <breakpoint_len>: Remove.
9584 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9585 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9586 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9587 (struct linux_target_ops) <breakpoint>: Remove.
9588 (struct linux_target_ops) <breakpoint_len>: Remove.
9589 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9590 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9591 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9592 (struct linux_target_ops) <breakpoint>: Remove.
9593 (struct linux_target_ops) <breakpoint_len>: Remove.
9594 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9595 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9596 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9597 (struct linux_target_ops) <breakpoint>: Remove.
9598 (struct linux_target_ops) <breakpoint_len>: Remove.
9599 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9600 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9601 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9602 (struct linux_target_ops) <breakpoint>: Remove.
9603 (struct linux_target_ops) <breakpoint_len>: Remove.
9604 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9605 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9606 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9607 (struct linux_target_ops) <breakpoint>: Remove.
9608 (struct linux_target_ops) <breakpoint_len>: Remove.
9609 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9610 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9611 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9612 (struct linux_target_ops) <breakpoint>: Remove.
9613 (struct linux_target_ops) <breakpoint_len>: Remove.
9614 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9615 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9616 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9617 (struct linux_target_ops) <breakpoint>: Remove.
9618 (struct linux_target_ops) <breakpoint_len>: Remove.
9619 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9620 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9621 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9622 (struct linux_target_ops) <breakpoint>: Remove.
9623 (struct linux_target_ops) <breakpoint_len>: Remove.
9624 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9625 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9626 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9627 * linux-x86-low.c (x86_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-xtensa-low.c (xtensa_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
4cd98a19
AT
96382015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9639
9640 * linux-cris-low.c (cris_get_pc): Remove void arg.
9641
774ee6d2
AR
96422015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9643
9644 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9645 variable name.
9646
833dcd29
AR
96472015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9648
9649 * inferiors.c (thread_pid_matches_callback): New function.
9650 (find_thread_process): New function.
9651 (remove_thread): Reset current_thread.
9652 (remove_process): Assert threads have been removed first.
9653
8d689ee5
YQ
96542015-10-15 Yao Qi <yao.qi@linaro.org>
9655
9656 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9657 if it is 3.
9658 (aarch64_remove_point): Likewise.
9659 * regcache.c (regcache_register_size): New function.
9660
1c2e1515
YQ
96612015-10-12 Yao Qi <yao.qi@linaro.org>
9662
9663 * linux-aarch64-low.c: Update all callers as emit_load_store
9664 is renamed to aarch64_emit_load_store.
9665
e1c587c3
YQ
96662015-10-12 Yao Qi <yao.qi@linaro.org>
9667
9668 * linux-aarch64-low.c: Update all callers of function renaming
9669 from emit_insn to aarch64_emit_insn.
9670
b6542f81
YQ
96712015-10-12 Yao Qi <yao.qi@linaro.org>
9672
9673 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9674 arch/aarch64-insn.h.
9675 (struct aarch64_memory_operand): Likewise.
9676 (ENCODE): Likewise.
9677 (emit_insn): Move to arch/aarch64-insn.c.
9678 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9679 (emit_load_store): Move to arch/aarch64-insn.c.
9680 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9681 (can_encode_int32): Remove.
9682
246994ce
YQ
96832015-10-12 Yao Qi <yao.qi@linaro.org>
9684
9685 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9686 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9687 (aarch64_relocate_instruction): Likewise.
9688 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9689 (struct aarch64_insn_visitor): Likewise.
9690
0badd99f
YQ
96912015-10-12 Yao Qi <yao.qi@linaro.org>
9692
9693 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9694 (struct aarch64_insn_visitor): New.
9695 (struct aarch64_insn_relocation_data): New.
9696 (aarch64_ftrace_insn_reloc_b): New function.
9697 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9698 (aarch64_ftrace_insn_reloc_cb): Likewise.
9699 (aarch64_ftrace_insn_reloc_tb): Likewise.
9700 (aarch64_ftrace_insn_reloc_adr): Likewise.
9701 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9702 (aarch64_ftrace_insn_reloc_others): Likewise.
9703 (visitor): New.
9704 (aarch64_relocate_instruction): Use visitor.
9705
dfaffe9d
YQ
97062015-10-12 Yao Qi <yao.qi@linaro.org>
9707
9708 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9709 int. Add argument buf.
9710 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9711 aarch64_relocate_instruction.
9712
70b439f0
YQ
97132015-10-12 Yao Qi <yao.qi@linaro.org>
9714
9715 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9716 argument insn. Remove local variable insn. Don't call
9717 target_read_uint32.
9718 (aarch64_install_fast_tracepoint_jump_pad): Call
9719 target_read_uint32.
9720
7781c06f
YQ
97212015-09-30 Yao Qi <yao.qi@linaro.org>
9722
9723 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9724 (emit_load_store_pair): Likewise.
9725
9a3c8263
SM
97262015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9727
9728 * dll.c (match_dll): Add cast(s).
9729 (unloaded_dll): Likewise.
9730 * linux-low.c (second_thread_of_pid_p): Likewise.
9731 (delete_lwp_callback): Likewise.
9732 (count_events_callback): Likewise.
9733 (select_event_lwp_callback): Likewise.
9734 (linux_set_resume_request): Likewise.
9735 * server.c (accumulate_file_name_length): Likewise.
9736 (emit_dll_description): Likewise.
9737 (handle_qxfer_threads_worker): Likewise.
9738 (visit_actioned_threads): Likewise.
9739 * thread-db.c (any_thread_of): Likewise.
9740 * tracepoint.c (same_process_p): Likewise.
9741 (match_blocktype): Likewise.
9742 (build_traceframe_info_xml): Likewise.
9743
224c3ddb
SM
97442015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9745
9746 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9747 assignment.
9748 (gdb_unparse_agent_expr): Likewise.
9749 * hostio.c (require_data): Likewise.
9750 (handle_pread): Likewise.
9751 * linux-low.c (disable_regset): Likewise.
9752 (fetch_register): Likewise.
9753 (store_register): Likewise.
9754 (get_dynamic): Likewise.
9755 (linux_qxfer_libraries_svr4): Likewise.
9756 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9757 (set_fast_tracepoint_jump): Likewise.
9758 (uninsert_fast_tracepoint_jumps_at): Likewise.
9759 (reinsert_fast_tracepoint_jumps_at): Likewise.
9760 (validate_inserted_breakpoint): Likewise.
9761 (clone_agent_expr): Likewise.
9762 * regcache.c (init_register_cache): Likewise.
9763 * remote-utils.c (putpkt_binary_1): Likewise.
9764 (decode_M_packet): Likewise.
9765 (decode_X_packet): Likewise.
9766 (look_up_one_symbol): Likewise.
9767 (relocate_instruction): Likewise.
9768 (monitor_output): Likewise.
9769 * server.c (handle_search_memory): Likewise.
9770 (handle_qxfer_exec_file): Likewise.
9771 (handle_qxfer_libraries): Likewise.
9772 (handle_qxfer): Likewise.
9773 (handle_query): Likewise.
9774 (handle_v_cont): Likewise.
9775 (handle_v_run): Likewise.
9776 (captured_main): Likewise.
9777 * target.c (write_inferior_memory): Likewise.
9778 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9779 * tracepoint.c (init_trace_buffer): Likewise.
9780 (add_tracepoint_action): Likewise.
9781 (add_traceframe): Likewise.
9782 (add_traceframe_block): Likewise.
9783 (cmd_qtdpsrc): Likewise.
9784 (cmd_qtdv): Likewise.
9785 (cmd_qtstatus): Likewise.
9786 (response_source): Likewise.
9787 (response_tsv): Likewise.
9788 (cmd_qtnotes): Likewise.
9789 (gdb_collect): Likewise.
9790 (initialize_tracepoint): Likewise.
9791
afbe19f8
PL
97922015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9793
9794 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9795 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9796 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9797 <NOP>: New.
9798 (enum aarch64_condition_codes): New enum.
9799 (w0): New static global.
9800 (fp): Likewise.
9801 (lr): Likewise.
9802 (struct aarch64_memory_operand) <type>: New
9803 MEMORY_OPERAND_POSTINDEX type.
9804 (postindex_memory_operand): New helper function.
9805 (emit_ret): New function.
9806 (emit_load_store_pair): New function, factored out of emit_stp
9807 with support for MEMORY_OPERAND_POSTINDEX.
9808 (emit_stp): Rewrite using emit_load_store_pair.
9809 (emit_ldp): New function.
9810 (emit_load_store): Likewise.
9811 (emit_ldr): Mention post-index instruction in comment.
9812 (emit_ldrh): New function.
9813 (emit_ldrb): New function.
9814 (emit_ldrsw): Mention post-index instruction in comment.
9815 (emit_str): Likewise.
9816 (emit_subs): New function.
9817 (emit_cmp): Likewise.
9818 (emit_and): Likewise.
9819 (emit_orr): Likewise.
9820 (emit_orn): Likewise.
9821 (emit_eor): Likewise.
9822 (emit_mvn): Likewise.
9823 (emit_lslv): Likewise.
9824 (emit_lsrv): Likewise.
9825 (emit_asrv): Likewise.
9826 (emit_mul): Likewise.
9827 (emit_sbfm): Likewise.
9828 (emit_sbfx): Likewise.
9829 (emit_ubfm): Likewise.
9830 (emit_ubfx): Likewise.
9831 (emit_csinc): Likewise.
9832 (emit_cset): Likewise.
9833 (emit_nop): Likewise.
9834 (emit_ops_insns): New helper function.
9835 (emit_pop): Likewise.
9836 (emit_push): Likewise.
9837 (aarch64_emit_prologue): New function.
9838 (aarch64_emit_epilogue): Likewise.
9839 (aarch64_emit_add): Likewise.
9840 (aarch64_emit_sub): Likewise.
9841 (aarch64_emit_mul): Likewise.
9842 (aarch64_emit_lsh): Likewise.
9843 (aarch64_emit_rsh_signed): Likewise.
9844 (aarch64_emit_rsh_unsigned): Likewise.
9845 (aarch64_emit_ext): Likewise.
9846 (aarch64_emit_log_not): Likewise.
9847 (aarch64_emit_bit_and): Likewise.
9848 (aarch64_emit_bit_or): Likewise.
9849 (aarch64_emit_bit_xor): Likewise.
9850 (aarch64_emit_bit_not): Likewise.
9851 (aarch64_emit_equal): Likewise.
9852 (aarch64_emit_less_signed): Likewise.
9853 (aarch64_emit_less_unsigned): Likewise.
9854 (aarch64_emit_ref): Likewise.
9855 (aarch64_emit_if_goto): Likewise.
9856 (aarch64_emit_goto): Likewise.
9857 (aarch64_write_goto_address): Likewise.
9858 (aarch64_emit_const): Likewise.
9859 (aarch64_emit_call): Likewise.
9860 (aarch64_emit_reg): Likewise.
9861 (aarch64_emit_pop): Likewise.
9862 (aarch64_emit_stack_flush): Likewise.
9863 (aarch64_emit_zero_ext): Likewise.
9864 (aarch64_emit_swap): Likewise.
9865 (aarch64_emit_stack_adjust): Likewise.
9866 (aarch64_emit_int_call_1): Likewise.
9867 (aarch64_emit_void_call_2): Likewise.
9868 (aarch64_emit_eq_goto): Likewise.
9869 (aarch64_emit_ne_goto): Likewise.
9870 (aarch64_emit_lt_goto): Likewise.
9871 (aarch64_emit_le_goto): Likewise.
9872 (aarch64_emit_gt_goto): Likewise.
9873 (aarch64_emit_ge_got): Likewise.
9874 (aarch64_emit_ops_impl): New static global variable.
9875 (aarch64_emit_ops): New target function, return
9876 &aarch64_emit_ops_impl.
9877 (struct linux_target_ops): Install it.
9878
bb903df0
PL
98792015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9880
9881 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9882 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9883 aarch64-ipa.o.
9884 * linux-aarch64-ipa.c: New file.
9885 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9886 and endian.h.
9887 (aarch64_get_thread_area): New target method.
9888 (extract_signed_bitfield): New helper function.
9889 (aarch64_decode_ldr_literal): New function.
9890 (enum aarch64_opcodes): New enum.
9891 (struct aarch64_register): New struct.
9892 (struct aarch64_operand): New struct.
9893 (x0): New static global.
9894 (x1): Likewise.
9895 (x2): Likewise.
9896 (x3): Likewise.
9897 (x4): Likewise.
9898 (w2): Likewise.
9899 (ip0): Likewise.
9900 (sp): Likewise.
9901 (xzr): Likewise.
9902 (aarch64_register): New helper function.
9903 (register_operand): Likewise.
9904 (immediate_operand): Likewise.
9905 (struct aarch64_memory_operand): New struct.
9906 (offset_memory_operand): New helper function.
9907 (preindex_memory_operand): Likewise.
9908 (enum aarch64_system_control_registers): New enum.
9909 (ENCODE): New macro.
9910 (emit_insn): New helper function.
9911 (emit_b): New function.
9912 (emit_bcond): Likewise.
9913 (emit_cb): Likewise.
9914 (emit_tb): Likewise.
9915 (emit_blr): Likewise.
9916 (emit_stp): Likewise.
9917 (emit_ldp_q_offset): Likewise.
9918 (emit_stp_q_offset): Likewise.
9919 (emit_load_store): Likewise.
9920 (emit_ldr): Likewise.
9921 (emit_ldrsw): Likewise.
9922 (emit_str): Likewise.
9923 (emit_ldaxr): Likewise.
9924 (emit_stxr): Likewise.
9925 (emit_stlr): Likewise.
9926 (emit_data_processing_reg): Likewise.
9927 (emit_data_processing): Likewise.
9928 (emit_add): Likewise.
9929 (emit_sub): Likewise.
9930 (emit_mov): Likewise.
9931 (emit_movk): Likewise.
9932 (emit_mov_addr): Likewise.
9933 (emit_mrs): Likewise.
9934 (emit_msr): Likewise.
9935 (emit_sevl): Likewise.
9936 (emit_wfe): Likewise.
9937 (append_insns): Likewise.
9938 (can_encode_int32_in): New helper function.
9939 (aarch64_relocate_instruction): New function.
9940 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9941 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9942 (struct linux_target_ops): Install aarch64_get_thread_area,
9943 aarch64_install_fast_tracepoint_jump_pad and
9944 aarch64_get_min_fast_tracepoint_insn_len.
9945
787749ea
PL
99462015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9947
9948 * Makefile.in (aarch64-insn.o): New rule.
9949 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9950
9812b2e6
YQ
99512015-09-21 Yao Qi <yao.qi@linaro.org>
9952
9953 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9954
18fe412b
YQ
99552015-09-21 Yao Qi <yao.qi@linaro.org>
9956
9957 * tracepoint.c (max_jump_pad_size): Remove.
9958
a0cc84cd
YQ
99592015-09-18 Yao Qi <yao.qi@linaro.org>
9960
9961 * linux-aarch64-low.c: Don't include sys/uio.h.
9962 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9963
d78908cf
WW
99642015-09-16 Wei-cheng Wang <cole945@gmail.com>
9965
9966 * tracepoint.c (eval_result_type): Change prototype.
9967 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9968
d57e0d50
PA
99692015-09-15 Pedro Alves <palves@redhat.com>
9970
9971 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9972 Check whether to report exec events instead of checking whether
9973 multiprocess is enabled.
9974
5a676acc
PA
99752015-09-15 Pedro Alves <palves@redhat.com>
9976
9977 PR remote/18965
9978 * remote-utils.c (prepare_resume_reply): Merge
9979 TARGET_WAITKIND_VFORK_DONE switch case with the
9980 TARGET_WAITKIND_FORKED case.
9981
7c5d0fad
YQ
99822015-09-15 Yao Qi <yao.qi@linaro.org>
9983
9984 * server.c (handle_query): Check string comparison using
9985 "else if" instead of "if".
9986
750ce8d1
YQ
99872015-09-15 Yao Qi <yao.qi@linaro.org>
9988
9989 * server.c (vCont_supported): New global variable.
9990 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9991 matches. Append ";vContSupported+" to own_buf.
9992 (handle_v_requests): Append ";s;S" to own_buf if target supports
9993 hardware single step or vCont_supported is false.
9994 (capture_main): Set vCont_supported to zero.
9995
70b90b91
YQ
99962015-09-15 Yao Qi <yao.qi@linaro.org>
9997
9998 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9999 it to ...
10000 (linux_supports_hardware_single_step): ... New function.
10001 (linux_target_ops): Update.
10002 * lynx-low.c (lynx_target_ops): Set field
10003 supports_hardware_single_step to target_can_do_hardware_single_step.
10004 * nto-low.c (nto_target_ops): Likewise.
10005 * spu-low.c (spu_target_ops): Likewise.
10006 * win32-low.c (win32_target_ops): Likewise.
10007 * target.c (target_can_do_hardware_single_step): New function.
10008 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10009 Remove. <supports_hardware_single_step>: New field.
10010 (target_supports_conditional_breakpoints): Remove.
10011 (target_supports_hardware_single_step): New macro.
10012 (target_can_do_hardware_single_step): Declare.
10013 * server.c (handle_query): Use target_supports_hardware_single_step
10014 instead of target_supports_conditional_breakpoints.
10015
ade90bde
YQ
100162015-09-15 Yao Qi <yao.qi@linaro.org>
10017
10018 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10019 function.
10020 (struct linux_target_ops the_low_target): Install
10021 aarch64_linux_siginfo_fixup.
10022
94585166
DB
100232015-09-11 Don Breazeal <donb@codesourcery.com>
10024 Luis Machado <lgustavo@codesourcery.com>
10025
10026 * linux-low.c (linux_mourn): Static declaration.
10027 (linux_arch_setup): Move in front of
10028 handle_extended_wait.
10029 (linux_arch_setup_thread): New function.
10030 (handle_extended_wait): Handle exec events. Call
10031 linux_arch_setup_thread. Make event_lwp argument a
10032 pointer-to-a-pointer.
10033 (check_zombie_leaders): Do not check stopped threads.
10034 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10035 (linux_low_filter_event): Add lwp and thread for exec'ing
10036 non-leader thread if leader thread has been deleted.
10037 Refactor code into linux_arch_setup_thread and call it.
10038 Pass child lwp pointer by reference to handle_extended_wait.
10039 (linux_wait_for_event_filtered): Update comment.
10040 (linux_wait_1): Prevent clobbering exec event status.
10041 (linux_supports_exec_events): New function.
10042 (linux_target_ops) <supports_exec_events>: Initialize new member.
10043 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10044 new member.
10045 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10046 * server.c (report_exec_events): New global variable.
10047 (handle_query): Handle qSupported query for exec-events feature.
10048 (captured_main): Initialize report_exec_events.
10049 * server.h (report_exec_events): Declare new global variable.
10050 * target.h (struct target_ops) <supports_exec_events>: New
10051 member.
10052 (target_supports_exec_events): New macro.
10053 * win32-low.c (win32_target_ops) <supports_exec_events>:
10054 Initialize new member.
10055
0568462b
MM
100562015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10057
10058 * linux-low.c (linux_low_enable_btrace): Remove.
10059 (linux_target_ops): Replace linux_low_enable_btrace with
10060 linux_enable_btrace.
10061
39edd165
YQ
100622015-09-03 Yao Qi <yao.qi@linaro.org>
10063
10064 * linux-aarch64-low.c (aarch64_insert_point): Call
10065 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10066 returns true.
10067
1db33b5a
UW
100682015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10069
10070 * linux-low.c (check_stopped_by_breakpoint): Use
10071 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10072
ab290430
PA
100732015-08-27 Pedro Alves <palves@redhat.com>
10074
10075 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10076
8d749320
SM
100772015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10078
6711b7f8
SM
10079 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10080 the XNEW-family equivalent.
8d749320
SM
10081 (compile_bytecodes): Likewise.
10082 * dll.c (loaded_dll): Likewise.
10083 * event-loop.c (append_callback_event): Likewise.
10084 (create_file_handler): Likewise.
10085 (create_file_event): Likewise.
10086 * hostio.c (handle_open): Likewise.
10087 * inferiors.c (add_thread): Likewise.
10088 (add_process): Likewise.
10089 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10090 * linux-arm-low.c (arm_new_process): Likewise.
10091 (arm_new_thread): Likewise.
10092 * linux-low.c (add_to_pid_list): Likewise.
10093 (linux_add_process): Likewise.
10094 (handle_extended_wait): Likewise.
10095 (add_lwp): Likewise.
10096 (enqueue_one_deferred_signal): Likewise.
10097 (enqueue_pending_signal): Likewise.
10098 (linux_resume_one_lwp_throw): Likewise.
10099 (linux_resume_one_thread): Likewise.
10100 (linux_read_memory): Likewise.
10101 (linux_write_memory): Likewise.
10102 * linux-mips-low.c (mips_linux_new_process): Likewise.
10103 (mips_linux_new_thread): Likewise.
10104 (mips_add_watchpoint): Likewise.
10105 * linux-x86-low.c (initialize_low_arch): Likewise.
10106 * lynx-low.c (lynx_add_process): Likewise.
10107 * mem-break.c (set_raw_breakpoint_at): Likewise.
10108 (set_breakpoint): Likewise.
10109 (add_condition_to_breakpoint): Likewise.
10110 (add_commands_to_breakpoint): Likewise.
10111 (clone_agent_expr): Likewise.
10112 (clone_one_breakpoint): Likewise.
10113 * regcache.c (new_register_cache): Likewise.
10114 * remote-utils.c (look_up_one_symbol): Likewise.
10115 * server.c (queue_stop_reply): Likewise.
10116 (start_inferior): Likewise.
10117 (queue_stop_reply_callback): Likewise.
10118 (handle_target_event): Likewise.
10119 * spu-low.c (fetch_ppc_memory): Likewise.
10120 (store_ppc_memory): Likewise.
10121 * target.c (set_target_ops): Likewise.
10122 * thread-db.c (thread_db_load_search): Likewise.
10123 (try_thread_db_load_1): Likewise.
10124 * tracepoint.c (add_tracepoint): Likewise.
10125 (add_tracepoint_action): Likewise.
10126 (create_trace_state_variable): Likewise.
10127 (cmd_qtdpsrc): Likewise.
10128 (cmd_qtro): Likewise.
10129 (add_while_stepping_state): Likewise.
10130 * win32-low.c (child_add_thread): Likewise.
10131 (get_image_name): Likewise.
10132
ed8b7b42
YQ
101332015-08-25 Yao Qi <yao.qi@linaro.org>
10134
10135 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10136
db3cb7cb
YQ
101372015-08-25 Yao Qi <yao.qi@linaro.org>
10138
10139 * Makefile.in (aarch64-linux.o): New rule.
10140 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10141 srv_tgtobj.
10142 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10143 (aarch64_init_debug_reg_state): Make it extern.
10144 (aarch64_linux_prepare_to_resume): Remove.
10145
f6011a1c
YQ
101462015-08-25 Yao Qi <yao.qi@linaro.org>
10147
10148 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10149 lwp_arch_private_info and ptid_of_lwp.
10150
88e2cf7e
YQ
101512015-08-25 Yao Qi <yao.qi@linaro.org>
10152
10153 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10154 Find proc_info by find_process_pid. All callers updated.
10155
5e35436e
YQ
101562015-08-25 Yao Qi <yao.qi@linaro.org>
10157
10158 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10159 Remove.
10160 (debug_reg_change_callback): Remove.
10161 (aarch64_notify_debug_reg_change): Remove.
10162
4a8a7965
YQ
101632015-08-25 Yao Qi <yao.qi@linaro.org>
10164
10165 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10166 Call current_lwp_ptid.
10167
32a271ee
YQ
101682015-08-25 Yao Qi <yao.qi@linaro.org>
10169
10170 * linux-aarch64-low.c (debug_reg_change_callback): Use
10171 debug_printf.
10172
0d51c8d7
YQ
101732015-08-25 Yao Qi <yao.qi@linaro.org>
10174
10175 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10176
31a43dd5
YQ
101772015-08-25 Yao Qi <yao.qi@linaro.org>
10178
10179 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10180
8ee52567
YQ
101812015-08-25 Yao Qi <yao.qi@linaro.org>
10182
10183 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10184 the code.
10185
ff3f0f45
YQ
101862015-08-25 Yao Qi <yao.qi@linaro.org>
10187
10188 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10189 Remove.
10190 (debug_reg_change_callback): Remove argument entry and add argument
10191 lwp. Remove local variable thread. Don't print thread id in the
10192 debugging output. Don't check whether pid of thread equals to pid.
10193 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10194 iterate_over_lwps instead find_inferior.
10195
3d40fbb5
PA
101962015-08-24 Pedro Alves <palves@redhat.com>
10197
10198 * inferiors.c (get_first_process): New function.
10199 * inferiors.h (get_first_process): New declaration.
10200 * remote-utils.c (read_ptid): Default to the first process in the
10201 list, instead of to the current thread's process.
10202
438e1e42
PA
102032015-08-24 Pedro Alves <palves@redhat.com>
10204
10205 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10206 * event-loop.c: Likewise.
10207 * remote-utils.c: Likewise.
10208 * tracepoint.c: Likewise.
10209
a8c6d4fc
PA
102102015-08-24 Pedro Alves <palves@redhat.com>
10211
10212 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10213 ptid_get_lwp.
10214
99b0bb12
PA
102152015-08-21 Pedro Alves <palves@redhat.com>
10216
10217 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10218 instead of literal 1.
10219
f8904751
PA
102202015-08-21 Pedro Alves <palves@redhat.com>
10221
10222 * tdesc.c (default_description): Explicitly zero-initialize.
10223
465a859e
PA
102242015-08-21 Pedro Alves <palves@redhat.com>
10225
10226 PR gdb/18749
10227 * inferiors.c (remove_thread): Discard any pending stop reply for
10228 this thread.
10229 * server.c (remove_all_on_match_pid): Rename to ...
10230 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10231 instead of a pid.
10232 (discard_queued_stop_replies): Change parameter to a ptid. Now
10233 extern.
10234 (handle_v_kill, kill_inferior_callback, captured_main)
10235 (process_serial_event): Adjust.
10236 * server.h (discard_queued_stop_replies): Declare.
10237
f0db101d
PA
102382015-08-21 Pedro Alves <palves@redhat.com>
10239
10240 * linux-low.c (wait_for_sigstop): Always switch to no thread
10241 selected if the previously current thread dies.
10242 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10243 process instead of the current thread's.
10244 * remote-utils.c (input_interrupt): Don't check if there's no
10245 current thread.
10246 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10247 current thread to the general thread fails, error out.
10248 (handle_qxfer_auxv, handle_qxfer_libraries)
10249 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10250 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10251 (handle_query): Check if there's a thread selected instead of
10252 checking whether there's any thread in the thread list.
10253 (handle_qxfer_threads, handle_qxfer_btrace)
10254 (handle_qxfer_btrace_conf): Don't error out early if there's no
10255 thread in the thread list.
10256 (handle_v_cont, myresume): Don't set the current thread to the
10257 continue thread.
10258 (process_serial_event) <Hg handling>: Also set thread_id if the
10259 previous general thread is still alive.
10260 (process_serial_event) <g/G handling>: If setting the current
10261 thread to the general thread fails, error out.
10262 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10263 thread's lwp instead of the current thread's.
10264 * target.c (set_desired_thread): If the desired thread was not
10265 found, leave the current thread pointing to NULL. Return an int
10266 (boolean) indicating success.
10267 * target.h (set_desired_thread): Change return type to int.
10268
40045d91
MF
102692015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10270
10271 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10272 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10273 #includes.
10274 (ps_get_thread_area): New function.
10275
45face3b
GB
102762015-08-19 Gary Benson <gbenson@redhat.com>
10277
10278 * hostio.c (handle_pread): Do not attempt to read more data
10279 than hostio_reply_with_data can fit in a packet.
10280
16d5f642
JB
102812015-08-18 Joel Brobecker <brobecker@adacore.com>
10282
10283 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10284
a738da3a
MF
102852015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10286
10287 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10288
33ebda9d
PA
102892015-08-06 Pedro Alves <palves@redhat.com>
10290
10291 * tracepoint.c (expr_eval_result): Now an int.
10292
a44892be
PA
102932015-08-06 Pedro Alves <palves@redhat.com>
10294
10295 * gdbthread.h (struct regcache): Forward declare.
10296 (struct thread_info) <regcache_data>: Now a struct regcache
10297 pointer.
10298 * inferiors.c (inferior_regcache_data)
10299 (set_inferior_regcache_data): Now work with struct regcache
10300 pointers.
10301 * inferiors.h (struct regcache): Forward declare.
10302 (inferior_regcache_data, set_inferior_regcache_data): Now work
10303 with struct regcache pointers.
10304 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10305 (free_register_cache_thread): Remove struct regcache pointer
10306 casts.
10307
608a1e46
PA
103082015-08-06 Pedro Alves <palves@redhat.com>
10309
10310 * server.c (captured_main): On error, print the exception message
10311 to stderr, and if run_once is set, throw a quit.
10312
f0ce0d3a
PA
103132015-08-06 Pedro Alves <palves@redhat.com>
10314
10315 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10316 the current thread.
10317
bf47e248
PA
103182015-08-06 Pedro Alves <palves@redhat.com>
10319
10320 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10321 reading beyond the passed in buffer length.
10322
b6b9ffcc
PL
103232015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10324
10325 * tracepoint.c (symbol_list) <required>: Remove.
10326
863d01bd
PA
103272015-08-06 Pedro Alves <palves@redhat.com>
10328
10329 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10330 count if stopping and suspending threads.
10331 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10332 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10333 (linux_detach): Complete an ongoing step-over.
10334 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10335 throughout.
10336 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10337 (linux_wait_1): If passing a signal to the inferior after
10338 finishing a step-over, unsuspend and re-resume all lwps. If we
10339 see a single-step event but the thread should be continuing, don't
10340 pass the trap to gdb.
10341 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10342 internal_error instead of gdb_assert.
10343 (enqueue_pending_signal): New function.
10344 (check_ptrace_stopped_lwp_gone): Add debug output.
10345 (start_step_over): Use internal_error instead of gdb_assert.
10346 (complete_ongoing_step_over): New function.
10347 (linux_resume_one_thread): Don't resume a suspended thread.
10348 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10349 it stepping.
10350
00db26fa
PA
103512015-08-06 Pedro Alves <palves@redhat.com>
10352
10353 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10354 (linux_thread_alive): Use lwp_is_marked_dead.
10355 (extended_event_reported): Delete.
10356 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10357 instead of extended_event_reported.
10358 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10359 as well.
10360 (lwp_is_marked_dead): New function.
10361 (lwp_running): Use lwp_is_marked_dead.
10362 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10363 comment.
10364
ad071a30
PA
103652015-08-06 Pedro Alves <palves@redhat.com>
10366
10367 * linux-low.c (linux_wait_1): Move fork event output out of the
10368 !report_to_gdb check. Pass event_child->waitstatus to
10369 target_waitstatus_to_string instead of ourstatus.
10370
524b57e6
YQ
103712015-08-04 Yao Qi <yao.qi@linaro.org>
10372
10373 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10374 if current_thread is 32 bit.
10375
6085d6f6
YQ
103762015-08-04 Yao Qi <yao.qi@linaro.org>
10377
10378 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10379 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10380 * server.c (extended_protocol): Remove "static".
10381 * server.h (extended_protocol): Declare it.
10382
8a7e4587
YQ
103832015-08-04 Yao Qi <yao.qi@linaro.org>
10384
10385 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10386 both aarch64 and aarch32.
10387 (aarch64_set_pc): Likewise.
10388
3b53ae99
YQ
103892015-08-04 Yao Qi <yao.qi@linaro.org>
10390
10391 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10392 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10393 arm-with-neon.xml to srv_xmlfiles.
10394 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10395 (is_64bit_tdesc): New function.
10396 (aarch64_linux_read_description): New function.
10397 (aarch64_arch_setup): Call aarch64_linux_read_description.
10398 (regs_info): Rename to regs_info_aarch64.
10399 (aarch64_regs_info): Return right regs_info.
10400 (initialize_low_arch): Call initialize_low_arch_aarch32.
10401
bd9e6534
YQ
104022015-08-04 Yao Qi <yao.qi@linaro.org>
10403
10404 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10405 * linux-aarch32-low.c: New file.
10406 * linux-aarch32-low.h: New file.
10407 * linux-arm-low.c (arm_fill_gregset): Move it to
10408 linux-aarch32-low.c.
10409 (arm_store_gregset): Likewise.
10410 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10411 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10412 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10413 (regs_info): Rename to regs_info_arm.
10414 (arm_regs_info): Return regs_info_aarch32 if
10415 have_ptrace_getregset is 1 and target description is
10416 arm_with_neon or arm_with_vfpv3.
10417 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10418 Call initialize_low_arch_aarch32 instead.
10419
ded48a5e
YQ
104202015-08-04 Yao Qi <yao.qi@linaro.org>
10421
10422 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10423 * linux-low.c: ... here.
10424 * linux-low.h (have_ptrace_getregset): Declare it.
10425
96e9210f
PA
104262015-08-04 Pedro Alves <palves@redhat.com>
10427
10428 * thread-db.c (struct thread_db): Use new typedefs.
10429 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10430 CHK calls.
10431 (disable_thread_event_reporting): Cast result of dlsym to
10432 destination function pointer type.
10433 (thread_db_mourn): Use td_ta_delete_ftype.
10434
af60a1ef
SL
104352015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10436
10437 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10438 arch variant.
10439 (CDX_BREAKPOINT): Define for R2.
10440 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10441 (the_low_target): Add comments.
10442
e8b41681
YQ
104432015-07-30 Yao Qi <yao.qi@linaro.org>
10444
10445 * linux-arm-low.c (arm_hwcap): Remove it.
10446 (arm_read_description): New local variable arm_hwcap. Don't
10447 set arm_hwcap to zero.
10448
89abb039
YQ
104492015-07-30 Yao Qi <yao.qi@linaro.org>
10450
10451 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10452 Use regcache->tdesc instead.
10453 (arm_store_wmmxregset): Likewise.
10454 (arm_fill_vfpregset): Likewise.
10455 (arm_store_vfpregset): Likewise.
10456
deca266c
YQ
104572015-07-30 Yao Qi <yao.qi@linaro.org>
10458
10459 * linux-arm-low.c: Include arch/arm.h.
10460 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10461 (arm_store_gregset): Likewise.
10462
aa58a496
SM
104632015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10464
10465 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10466 ptrace's 4th parameter.
10467
50904b25
YQ
104682015-07-27 Yao Qi <yao.qi@linaro.org>
10469
10470 * configure.srv (case aarch64*-*-linux*): Don't set
10471 srv_linux_usrregs.
10472
5826e159
PA
104732015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10474
10475 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10476 sys/ptrace.h.
10477 * linux-arm-low.c: Likewise.
10478 * linux-cris-low.c: Likewise.
10479 * linux-crisv32-low.c: Likewise.
10480 * linux-low.c: Likewise.
10481 * linux-m68k-low.c: Likewise.
10482 * linux-mips-low.c: Likewise.
10483 * linux-nios2-low.c: Likewise.
10484 * linux-s390-low.c: Likewise.
10485 * linux-sparc-low.c: Likewise.
10486 * linux-tic6x-low.c: Likewise.
10487 * linux-tile-low.c: Likewise.
10488 * linux-x86-low.c: Likewise.
10489
54019719
PA
104902015-07-24 Pedro Alves <palves@redhat.com>
10491
10492 * config.in: Regenerate.
10493 * configure: Regenerate.
10494
eb7aa561
PA
104952015-07-24 Pedro Alves <palves@redhat.com>
10496
10497 * acinclude.m4: Include ../ptrace.m4.
10498 * configure.ac: Call GDB_AC_PTRACE.
10499 * config.in, configure: Regenerate.
10500
55d7b841
YQ
105012015-07-24 Yao Qi <yao.qi@linaro.org>
10502
10503 * linux-low.c (linux_create_inferior): Remove setting to
10504 proc->priv->new_inferior.
10505 (linux_attach): Likewise.
10506 (linux_low_filter_event): Likewise.
10507 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10508
c06cbd92
YQ
105092015-07-24 Yao Qi <yao.qi@linaro.org>
10510
10511 * linux-low.c (linux_arch_setup): New function.
10512 (linux_low_filter_event): If proc->tdesc is NULL and
10513 proc->attached is true, call the_low_target.arch_setup.
10514 Otherwise, keep status pending, and return.
10515 (linux_resume_one_lwp_throw): Don't call get_pc if
10516 thread->while_stepping isn't NULL. Don't call
10517 get_thread_regcache if proc->tdesc is NULL.
10518 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10519 (linux_target_ops): Install arch_setup.
10520 * server.c (start_inferior): Call the_target->arch_setup.
10521 * target.h (struct target_ops) <arch_setup>: New field.
10522 (target_arch_setup): New marco.
10523 * lynx-low.c (lynx_target_ops): Update.
10524 * nto-low.c (nto_target_ops): Update.
10525 * spu-low.c (spu_target_ops): Update.
10526 * win32-low.c (win32_target_ops): Update.
10527
5ae3ebba
YQ
105282015-07-24 Yao Qi <yao.qi@linaro.org>
10529
10530 * linux-low.c (linux_add_process): Don't set
10531 proc->priv->new_inferior.
10532 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10533 (linux_attach): Likewise.
10534
eb97750b
YQ
105352015-07-24 Yao Qi <yao.qi@linaro.org>
10536
10537 * server.c (start_inferior): Code refactor.
10538
51aee833
YQ
105392015-07-24 Yao Qi <yao.qi@linaro.org>
10540
10541 * server.c (process_serial_event): Set general_thread.
10542
af1b22f3
YQ
105432015-07-21 Yao Qi <yao.qi@linaro.org>
10544
10545 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10546 aarch64_linux_get_debug_reg_capacity.
10547
554717a3
YQ
105482015-07-17 Yao Qi <yao.qi@linaro.org>
10549
10550 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10551 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10552 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10553 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10554 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10555 (AARCH64_HWP_ALIGNMENT): Likewise.
10556 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10557 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10558 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10559 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10560 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10561 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10562 (struct aarch64_debug_reg_state): Likewise.
10563 (struct arch_lwp_info): Likewise.
10564 (aarch64_align_watchpoint): Likewise.
10565 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10566 (aarch64_watchpoint_length): Likewise.
10567 (aarch64_point_encode_ctrl_reg): Likewise
10568 (aarch64_point_is_aligned): Likewise.
10569 (aarch64_align_watchpoint): Likewise.
10570 (aarch64_linux_set_debug_regs):
10571 (aarch64_dr_state_insert_one_point): Likewise.
10572 (aarch64_dr_state_remove_one_point): Likewise.
10573 (aarch64_handle_breakpoint): Likewise.
10574 (aarch64_handle_aligned_watchpoint): Likewise.
10575 (aarch64_handle_unaligned_watchpoint): Likewise.
10576 (aarch64_handle_watchpoint): Likewise.
10577
c67ca4de
YQ
105782015-07-17 Yao Qi <yao.qi@linaro.org>
10579
10580 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10581 and don't aarch64_get_debug_reg_state. All callers update.
10582 (aarch64_handle_aligned_watchpoint): Likewise.
10583 (aarch64_handle_unaligned_watchpoint): Likewise.
10584 (aarch64_handle_watchpoint): Likewise.
10585 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10586 (aarch64_remove_point): Likewise.
10587
25abf979
YQ
105882015-07-17 Yao Qi <yao.qi@linaro.org>
10589
10590 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10591 debug_printf.
10592 (aarch64_handle_unaligned_watchpoint): Likewise.
10593
db1ff28b
JK
105942015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10595
10596 Revert the previous 3 commits:
10597 Move gdb_regex* to common/
10598 Move linux_find_memory_regions_full & co.
10599 gdbserver build-id attribute generator
10600
700ca40f
JK
106012015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10602 Jan Kratochvil <jan.kratochvil@redhat.com>
10603
10604 gdbserver build-id attribute generator.
10605 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10606 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10607 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10608 (find_phdr): New.
10609 (get_dynamic): Use find_pdhr to traverse program headers.
10610 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10611 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10612 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10613 (get_hex_build_id): New.
10614 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10615 to reply XML document.
10616
9904185c
JK
106172015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10618 Jan Kratochvil <jan.kratochvil@redhat.com>
10619
10620 * target.c: Include target/target-utils.h and fcntl.h.
10621 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10622 (target_fileio_read_stralloc): New functions.
10623
6e5b4429
JK
106242015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10625
10626 * Makefile.in (OBS): Add gdb_regex.o.
10627 (gdb_regex.o): New.
10628 * config.in: Rebuilt.
10629 * configure: Rebuilt.
10630
ddc98fbf
JK
106312015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10632 Jan Kratochvil <jan.kratochvil@redhat.com>
10633
10634 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10635 * Makefile.in (OBS): Add target-utils.o.
10636 (linux-maps.o, target-utils.o): New.
10637 * configure.srv (srv_linux_obj): Add linux-maps.o.
10638
e57bb7a0
PL
106392015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10640
10641 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10642 function, return 1.
10643 (the_low_target): Install it.
10644
586b02a9
PA
106452015-07-14 Pedro Alves <palves@redhat.com>
10646
10647 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10648 Instead, ignore ECHILD, and throw an error for other errnos.
10649
58c1b36c
PA
106502015-07-10 Pedro Alves <palves@redhat.com>
10651
10652 * event-loop.c (struct callback_event) <data>: Change type to
10653 gdb_client_data instance instead of gdb_client_data pointer.
10654 (append_callback_event): Adjust.
10655
421530db
PL
106562015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10657
10658 * linux-aarch64-low.c: Add comments for each linux_target_ops
10659 method. Remove comments already covered in target_ops and
10660 linux_target_ops definitions.
10661 (the_low_target): Add comments for each unimplemented method.
10662
c2d65f38
YQ
106632015-07-09 Yao Qi <yao.qi@linaro.org>
10664
10665 * linux-aarch64-low.c (aarch64_regmap): Remove.
10666 (aarch64_usrregs_info): Remove.
10667 (regs_info): Set field usrregs to NULL.
10668
b20a6524
MM
106692015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10670
10671 * linux-low.c: Include "rsp-low.h"
10672 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10673 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10674 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10675 (handle_btrace_enable_pt): New.
10676 (handle_btrace_general_set): Support "pt".
10677 (handle_btrace_conf_general_set): Support "pt:size".
10678
96c97461
PL
106792015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10680
10681 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10682 Z_PACKET_SW_BP.
10683
37d66942
PL
106842015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10685
10686 * linux-aarch64-low.c: Remove comment about endianness.
10687 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10688 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10689 memcmp.
10690
dc06243f
GB
106912015-06-24 Gary Benson <gbenson@redhat.com>
10692
10693 * linux-i386-ipa.c (stdint.h): Do not include.
10694 * lynx-i386-low.c (stdint.h): Likewise.
10695 * lynx-ppc-low.c (stdint.h): Likewise.
10696 * mem-break.c (stdint.h): Likewise.
10697 * thread-db.c (stdint.h): Likewise.
10698 * tracepoint.c (stdint.h): Likewise.
10699 * win32-low.c (stdint.h): Likewise.
10700
124e13d9
SM
107012015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10702
10703 * server.c (write_qxfer_response): Update call to
10704 remote_escape_output.
10705
909c2cda
JK
107062015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10707 Jan Kratochvil <jan.kratochvil@redhat.com>
10708
10709 Merge multiple hex conversions.
10710 * gdbreplay.c (tohex): Rename to 'fromhex'.
10711 (logchar): Use fromhex.
10712
24c05f46
JK
107132015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10714
10715 * server.c (handle_qxfer_libraries): Set `version' attribute for
10716 <library-list>.
10717
14d2069a
GB
107182015-06-10 Gary Benson <gbenson@redhat.com>
10719
10720 * target.h (struct target_ops) <multifs_open>: New field.
10721 <multifs_unlink>: Likewise.
10722 <multifs_readlink>: Likewise.
10723 * linux-low.c (nat/linux-namespaces.h): New include.
10724 (linux_target_ops): Initialize the_target->multifs_open,
10725 the_target->multifs_unlink and the_target->multifs_readlink.
10726 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10727 * hostio.c (hostio_fs_pid): New static variable.
10728 (hostio_handle_new_gdb_connection): New function.
10729 (handle_setfs): Likewise.
10730 (handle_open): Use the_target->multifs_open as appropriate.
10731 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10732 (handle_readlink): Use the_target->multifs_readlink as
10733 appropriate.
10734 (handle_vFile): Handle vFile:setfs packets.
10735 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10736 after target_handle_new_gdb_connection.
10737
4b8b5e72
GB
107382015-06-10 Gary Benson <gbenson@redhat.com>
10739
10740 * configure.ac (AC_CHECK_FUNCS): Add setns.
10741 * config.in: Regenerate.
10742 * configure: Likewise.
10743 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10744 (linux-namespaces.o): New rule.
10745 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10746
3ac2e371
GB
107472015-06-09 Gary Benson <gbenson@redhat.com>
10748
10749 * hostio.c (handle_open): Process mode argument with
10750 fileio_to_host_mode.
10751
ca9b78ce
YQ
107522015-06-01 Yao Qi <yao.qi@linaro.org>
10753
10754 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10755 * linux-x86-low.c: Likewise.
10756
bfacd19d
DB
107572015-05-28 Don Breazeal <donb@codesourcery.com>
10758
10759 * linux-low.c (handle_extended_wait): Initialize
10760 thread_info.last_resume_kind for new fork children.
10761
452003ef
PA
107622015-05-15 Pedro Alves <palves@redhat.com>
10763
10764 * target.h (target_handle_new_gdb_connection): Rewrite using if
10765 wrapped in do/while.
10766
1041a03c
JB
107672015-05-14 Joel Brobecker <brobecker@adacore.com>
10768
10769 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10770 * configure, config.in: Regenerate.
10771 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10772 Declare typedef.
10773
c269dbdb
DB
107742015-05-12 Don Breazeal <donb@codesourcery.com>
10775
10776 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10777 PTRACE_EVENT_VFORK_DONE.
10778 (linux_low_ptrace_options, extended_event_reported): Add vfork
10779 events.
10780 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10781 and "vforkdone" for RSP 'T' Stop Reply Packet.
10782 * server.h (report_vfork_events): Declare
10783 global variable.
10784
3a8a0396
DB
107852015-05-12 Don Breazeal <donb@codesourcery.com>
10786
10787 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10788 (the_low_target) <new_fork>: Initialize new member.
10789 * linux-arm-low.c (arm_new_fork): New function.
10790 (the_low_target) <new_fork>: Initialize new member.
10791 * linux-low.c (handle_extended_wait): Call new target function
10792 new_fork.
10793 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10794 * linux-mips-low.c (mips_add_watchpoint): New function
10795 extracted from mips_insert_point.
10796 (the_low_target) <new_fork>: Initialize new member.
10797 (mips_linux_new_fork): New function.
10798 (mips_insert_point): Call mips_add_watchpoint.
10799 * linux-x86-low.c (x86_linux_new_fork): New function.
10800 (the_low_target) <new_fork>: Initialize new member.
10801
de0d863e
DB
108022015-05-12 Don Breazeal <donb@codesourcery.com>
10803
10804 * linux-low.c (handle_extended_wait): Implement return value,
10805 rename argument 'event_child' to 'event_lwp', handle
10806 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10807 (linux_low_ptrace_options): New function.
10808 (linux_low_filter_event): Call linux_low_ptrace_options,
10809 use different argument fo linux_enable_event_reporting,
10810 use return value from handle_extended_wait.
10811 (extended_event_reported): New function.
10812 (linux_wait_1): Call extended_event_reported and set
10813 status to report fork events.
10814 (linux_write_memory): Add pid to debug message.
10815 (reset_lwp_ptrace_options_callback): New function.
10816 (linux_handle_new_gdb_connection): New function.
10817 (linux_target_ops): Initialize new structure member.
10818 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10819 * lynx-low.c: Initialize new structure member.
10820 * remote-utils.c (prepare_resume_reply): Implement stop reason
10821 "fork" for "T" stop message.
10822 * server.c (handle_query): Call handle_new_gdb_connection.
10823 * server.h (report_fork_events): Declare global flag.
10824 * target.h (struct target_ops) <handle_new_gdb_connection>:
10825 New member.
10826 (target_handle_new_gdb_connection): New macro.
10827 * win32-low.c: Initialize new structure member.
10828
ddcbc397
DB
108292015-05-12 Don Breazeal <donb@codesourcery.com>
10830
10831 * mem-break.c (APPEND_TO_LIST): Define macro.
10832 (clone_agent_expr): New function.
10833 (clone_one_breakpoint): New function.
10834 (clone_all_breakpoints): New function.
10835 * mem-break.h: Declare new functions.
10836
89245bc0
DB
108372015-05-12 Don Breazeal <donb@codesourcery.com>
10838
10839 * linux-low.c (linux_supports_fork_events): New function.
10840 (linux_supports_vfork_events): New function.
10841 (linux_target_ops): Initialize new structure members.
10842 (initialize_low): Call linux_check_ptrace_features.
10843 * lynx-low.c (lynx_target_ops): Initialize new structure
10844 members.
10845 * server.c (report_fork_events, report_vfork_events):
10846 New global flags.
10847 (handle_query): Add new features to qSupported packet and
10848 response.
10849 (captured_main): Initialize new global variables.
10850 * target.h (struct target_ops) <supports_fork_events>:
10851 New member.
10852 <supports_vfork_events>: New member.
10853 (target_supports_fork_events): New macro.
10854 (target_supports_vfork_events): New macro.
10855 * win32-low.c (win32_target_ops): Initialize new structure
10856 members.
10857
835205d0
GB
108582015-05-12 Gary Benson <gbenson@redhat.com>
10859
10860 * server.c (handle_qxfer_exec_file): Use current process
10861 if annex is empty.
10862
21e94bd9
SL
108632015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10864
10865 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10866 Remove HAVE_PTRACE_GETREGS conditionals.
10867 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10868 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10869
45614f15
YQ
108702015-05-08 Yao Qi <yao.qi@linaro.org>
10871
10872 * linux-low.c (linux_supports_conditional_breakpoints): New
10873 function.
10874 (linux_target_ops): Install new target method.
10875 * lynx-low.c (lynx_target_ops): Install NULL hook for
10876 supports_conditional_breakpoints.
10877 * nto-low.c (nto_target_ops): Likewise.
10878 * spu-low.c (spu_target_ops): Likewise.
10879 * win32-low.c (win32_target_ops): Likewise.
10880 * server.c (handle_query): Check
10881 target_supports_conditional_breakpoints.
10882 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10883 New field.
10884 (target_supports_conditional_breakpoints): New macro.
10885
80ad801e
PA
108862015-05-06 Pedro Alves <palves@redhat.com>
10887
10888 PR server/18081
10889 * server.c (start_inferior): If the process exits, mourn it.
10890
819843c7
GB
108912015-04-21 Gary Benson <gbenson@redhat.com>
10892
10893 * hostio.c (fileio_open_flags_to_host): Factored out to
10894 fileio_to_host_openflags in common/fileio.c. Single use
10895 updated.
10896
a2d5a9d7
MF
108972015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10898
10899 * linux-xtensa-low.c (xtensa_fill_gregset)
10900 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10901 XCHAL_HAVE_LOOP.
10902
deb44829
MF
109032015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10904
10905 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10906 (regs_info): Replace usrregs pointer with NULL.
10907
e57f1de3
GB
109082015-04-17 Gary Benson <gbenson@redhat.com>
10909
10910 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10911 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10912 * server.c (handle_qxfer_exec_file): New function.
10913 (qxfer_packets): Add exec-file entry.
10914 (handle_query): Report qXfer:exec-file:read as supported packet.
10915
62828379
RN
109162015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10917
10918 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10919
b88bb450
GB
109202015-04-09 Gary Benson <gbenson@redhat.com>
10921
10922 * hostio-errno.c (errno_to_fileio_error): Remove function.
10923 Update caller to use remote_fileio_to_fio_error.
10924
c8f4bfdd
YQ
109252015-04-09 Yao Qi <yao.qi@linaro.org>
10926
10927 * linux-low.c (linux_insert_point): Call
10928 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10929 (linux_remove_point): Call remove_memory_breakpoint if type is
10930 raw_bkpt_type_sw.
10931 * linux-x86-low.c (x86_insert_point): Don't call
10932 insert_memory_breakpoint.
10933 (x86_remove_point): Don't call remove_memory_breakpoint.
10934
41f98f02
PA
109352015-04-01 Pedro Alves <palves@redhat.com>
10936 Cleber Rosa <crosa@redhat.com>
10937
10938 * server.c (gdbserver_usage): Reorganize and extend the usage
10939 message.
10940
2bf6fb9d
PA
109412015-03-24 Pedro Alves <palves@redhat.com>
10942
10943 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10944 output. Also dump TRAP_TRACE.
10945 (linux_low_filter_event): In debug output, distinguish a
10946 resume_stop SIGSTOP from a delayed SIGSTOP.
10947
369f6daa
GB
109482015-03-24 Gary Benson <gbenson@redhat.com>
10949
10950 * linux-x86-low.c (x86_linux_new_thread): Moved to
10951 nat/x86-linux.c.
10952 (x86_linux_prepare_to_resume): Likewise.
10953
8e5d4070
GB
109542015-03-24 Gary Benson <gbenson@redhat.com>
10955
10956 * Makefile.in (x86-linux-dregs.o): New rule.
10957 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10958 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10959 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10960 (x86_linux_dr_get): Likewise.
10961 (x86_linux_dr_set): Likewise.
10962 (update_debug_registers_callback): Likewise.
10963 (x86_linux_dr_set_addr): Likewise.
10964 (x86_linux_dr_get_addr): Likewise.
10965 (x86_linux_dr_set_control): Likewise.
10966 (x86_linux_dr_get_control): Likewise.
10967 (x86_linux_dr_get_status): Likewise.
10968 (x86_linux_update_debug_registers): Likewise.
10969
2b95d440
GB
109702015-03-24 Gary Benson <gbenson@redhat.com>
10971
10972 * linux-x86-low.c (x86_linux_update_debug_registers):
10973 New function, factored out from...
10974 (x86_linux_prepare_to_resume): ...this.
10975
14b0bc68
GB
109762015-03-24 Gary Benson <gbenson@redhat.com>
10977
10978 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10979 (x86_linux_dr_set): Likewise.
10980 (update_debug_registers_callback): Likewise.
10981 (x86_linux_dr_set_addr): Likewise.
10982 (x86_linux_dr_get_addr): Likewise.
10983 (x86_linux_dr_set_control): Likewise.
10984 (x86_linux_dr_get_control): Likewise.
10985 (x86_linux_dr_get_status): Likewise.
10986 (x86_linux_prepare_to_resume): Likewise.
10987
5dfe6ca8
GB
109882015-03-24 Gary Benson <gbenson@redhat.com>
10989
10990 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10991 Use perror_with_name. Pass string through gettext.
10992 (x86_linux_dr_set): Likewise.
10993
d33472ad
GB
109942015-03-24 Gary Benson <gbenson@redhat.com>
10995
10996 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10997 (x86_linux_dr_set_addr): ...this.
10998 (x86_dr_low_get_addr): Rename to...
10999 (x86_linux_dr_get_addr): ...this.
11000 (x86_dr_low_set_control): Rename to...
11001 (x86_linux_dr_set_control): ...this.
11002 (x86_dr_low_get_control): Rename to...
11003 (x86_linux_dr_get_control): ...this.
11004 (x86_dr_low_get_status): Rename to...
11005 (x86_linux_dr_get_status): ...this.
11006 (x86_dr_low): Update with new function names.
11007
4b134ca1
GB
110082015-03-24 Gary Benson <gbenson@redhat.com>
11009
11010 * Makefile.in (x86-linux.o): New rule.
11011 * configure.srv: Add x86-linux.o to relevant targets.
11012 * linux-low.c (lwp_set_arch_private_info): New function.
11013 (lwp_arch_private_info): Likewise.
11014 * linux-x86-low.c: Include nat/x86-linux.h.
11015 (arch_lwp_info): Removed structure.
11016 (update_debug_registers_callback):
11017 Use lwp_set_debug_registers_changed.
11018 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11019 and lwp_set_debug_registers_changed.
11020 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11021
34c703da
GB
110222015-03-24 Gary Benson <gbenson@redhat.com>
11023
11024 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11025 * linux-arm-low.c (arm_new_thread): Likewise.
11026 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11027 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11028 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11029 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11030
cff068da
GB
110312015-03-24 Gary Benson <gbenson@redhat.com>
11032
11033 * linux-low.c (ptid_of_lwp): New function.
11034 (lwp_is_stopped): Likewise.
11035 (lwp_stop_reason): Likewise.
11036 * linux-x86-low.c (update_debug_registers_callback):
11037 Use lwp_is_stopped.
11038 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11039 lwp_stop_reason.
11040
b2f7c7e8
GB
110412015-03-24 Gary Benson <gbenson@redhat.com>
11042
11043 * linux-low.h (linux_stop_lwp): Remove declaration.
11044
6d4ee8c6
GB
110452015-03-24 Gary Benson <gbenson@redhat.com>
11046
11047 * linux-low.h: Include nat/linux-nat.h.
11048 * linux-low.c (iterate_over_lwps_args): New structure.
11049 (iterate_over_lwps_filter): New function.
11050 (iterate_over_lwps): Likewise.
11051 * linux-x86-low.c (update_debug_registers_callback):
11052 Update signature to what iterate_over_lwps expects.
11053 Remove PID check that iterate_over_lwps now performs.
11054 (x86_dr_low_set_addr): Use iterate_over_lwps.
11055 (x86_dr_low_set_control): Likewise.
11056
70a0bb6b
GB
110572015-03-24 Gary Benson <gbenson@redhat.com>
11058
11059 * linux-x86-low.c (x86_debug_reg_state): New function.
11060 (x86_linux_prepare_to_resume): Use the above.
11061
7b669087
GB
110622015-03-24 Gary Benson <gbenson@redhat.com>
11063
11064 * linux-low.c (current_lwp_ptid): New function.
11065 * linux-x86-low.c: Include nat/linux-nat.h.
11066 (x86_dr_low_get_addr): Use current_lwp_ptid.
11067 (x86_dr_low_get_control): Likewise.
11068 (x86_dr_low_get_status): Likewise.
11069
eef49a3d
PA
110702015-03-20 Pedro Alves <palves@redhat.com>
11071
11072 * tracepoint.c (cmd_qtstatus): Make "str" const.
11073
b2333d22
PA
110742015-03-20 Pedro Alves <palves@redhat.com>
11075
11076 * server.c (handle_general_set): Make "req_str" const.
11077
23f238d3
PA
110782015-03-19 Pedro Alves <palves@redhat.com>
11079
11080 * linux-low.c (linux_resume_one_lwp): Rename to ...
11081 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11082 instead call perror_with_name.
11083 (check_ptrace_stopped_lwp_gone): New function.
11084 (linux_resume_one_lwp): Reimplement as wrapper around
11085 linux_resume_one_lwp_throw that swallows errors if the LWP is
11086 gone.
11087
91baf43f
PA
110882015-03-19 Pedro Alves <palves@redhat.com>
11089
11090 * linux-low.c (count_events_callback, select_event_lwp_callback):
11091 No longer check whether the thread has resume_stop as last resume
11092 kind.
11093
8bf3b159
PA
110942015-03-19 Pedro Alves <palves@redhat.com>
11095
11096 * linux-low.c (count_events_callback, select_event_lwp_callback):
11097 Use the lwp's status_pending_p field, not the thread's.
11098
b90fc188
PA
110992015-03-19 Pedro Alves <palves@redhat.com>
11100
11101 * linux-low.c (select_event_lwp_callback): Update comments to
11102 no longer mention SIGTRAP.
11103
464b0089
GB
111042015-03-18 Gary Benson <gbenson@redhat.com>
11105
11106 * server.c (handle_query): Do not report vFile:fstat as supported.
11107
aa9e327f
GB
111082015-03-11 Gary Benson <gbenson@redhat.com>
11109
11110 * hostio.c (sys/types.h): New include.
11111 (sys/stat.h): Likewise.
11112 (common-remote-fileio.h): Likewise.
11113 (handle_fstat): New function.
11114 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11115
791c0056
GB
111162015-03-11 Gary Benson <gbenson@redhat.com>
11117
11118 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11119 struct stat.st_blocks and struct stat.st_blksize.
11120 * configure: Regenerate.
11121 * config.in: Likewise.
11122 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11123 (OBS): Add common-remote-fileio.o.
11124 (common-remote-fileio.o): New rule.
11125
9a9df970
PA
111262015-03-09 Pedro Alves <palves@redhat.com>
11127
11128 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11129 'struct sockaddr' pointer in 'accept' call.
11130
9eb1356e
PA
111312015-03-09 Pedro Alves <palves@redhat.com>
11132
11133 Revert:
11134 2015-03-07 Pedro Alves <palves@redhat.com>
11135 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11136 or <winsock2.h> here. Instead include "gdb_socket.h".
11137 (remote_open): Use union gdb_sockaddr_u.
11138 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11139 or <winsock2.h> here. Instead include "gdb_socket.h".
11140 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11141 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11142 or <sys/un.h>.
11143 (init_named_socket, gdb_agent_helper_thread): Use union
11144 gdb_sockaddr_u.
11145
aac331e4
PA
111462015-03-07 Pedro Alves <palves@redhat.com>
11147
11148 * configure.ac (build_warnings): Move
11149 -Wdeclaration-after-statement to the C-specific set.
11150 * configure: Regenerate.
11151
366c75fc
PA
111522015-03-07 Pedro Alves <palves@redhat.com>
11153
11154 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11155 or <winsock2.h> here. Instead include "gdb_socket.h".
11156 (remote_open): Use union gdb_sockaddr_u.
11157 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11158 or <winsock2.h> here. Instead include "gdb_socket.h".
11159 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11160 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11161 or <sys/un.h>.
11162 (init_named_socket, gdb_agent_helper_thread): Use union
11163 gdb_sockaddr_u.
11164
492d29ea
PA
111652015-03-07 Pedro Alves <palves@redhat.com>
11166
11167 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11168 instead.
11169
60a191ed
YQ
111702015-03-06 Yao Qi <yao.qi@linaro.org>
11171
11172 * linux-aarch64-low.c (aarch64_insert_point): Use
11173 show_debug_regs as a boolean.
11174 (aarch64_remove_point): Likewise.
11175
f5771b1d
PA
111762015-03-05 Pedro Alves <palves@redhat.com>
11177
11178 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11179 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11180 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11181 * nto-low.c (nto_target_ops): Likewise.
11182 * spu-low.c (spu_target_ops): Likewise.
11183 * win32-low.c (win32_target_ops): Likewise.
11184
3e572f71
PA
111852015-03-04 Pedro Alves <palves@redhat.com>
11186
72f4393d 11187 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11188 Decide whether a breakpoint triggered based on the SIGTRAP's
11189 siginfo.si_code.
72f4393d
L
11190 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11191 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11192 (linux_low_filter_event): Check for breakpoints before checking
11193 watchpoints.
11194 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11195 siginfo.si_code.
72f4393d
L
11196 (linux_stopped_by_sw_breakpoint)
11197 (linux_supports_stopped_by_sw_breakpoint)
11198 (linux_stopped_by_hw_breakpoint)
11199 (linux_supports_stopped_by_hw_breakpoint): New functions.
11200 (linux_target_ops): Install new target methods.
3e572f71 11201
1ec68e26
PA
112022015-03-04 Pedro Alves <palves@redhat.com>
11203
11204 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11205 * server.c (swbreak_feature, hwbreak_feature): New globals.
11206 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11207 (captured_main): Clear swbreak_feature and hwbreak_feature.
11208 * server.h (swbreak_feature, hwbreak_feature): Declare.
11209 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11210 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11211 supports_stopped_by_hw_breakpoint>: New fields.
11212 (target_supports_stopped_by_sw_breakpoint)
11213 (target_stopped_by_sw_breakpoint)
11214 (target_supports_stopped_by_hw_breakpoint)
11215 (target_stopped_by_hw_breakpoint): Declare.
11216
15c66dd6
PA
112172015-03-04 Pedro Alves <palves@redhat.com>
11218
11219 enum lwp_stop_reason -> enum target_stop_reason
11220 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11221 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11222 (linux_wait_1, stuck_in_jump_pad_callback)
11223 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11224 (linux_stopped_by_watchpoint):
11225 * linux-low.h (enum lwp_stop_reason): Delete.
11226 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11227 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11228
98fc70d6
YQ
112292015-03-04 Yao Qi <yao.qi@linaro.org>
11230
11231 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11232
dd2ac174
GB
112332015-03-03 Gary Benson <gbenson@redhat.com>
11234
11235 * hostio.c (handle_vFile): Fix prefix lengths.
11236
d68e53f4
MM
112372015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11238
11239 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11240 ptr_bits.
11241
bf2d68ab
AA
112422015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11243
11244 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11245 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11246 (clean): Add "rm -f" for above C files.
11247 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11248 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11249 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11250 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11251 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11252 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11253 (init_registers_s390x_vx_linux64)
11254 (init_registers_s390x_tevx_linux64)
11255 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11256 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11257 declarations.
11258 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11259 (s390_store_vxrs_high): New functions.
11260 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11261 NT_S390_VXRS_HIGH.
11262 (s390_arch_setup): Add logic for selecting one of the new target
11263 descriptions. Activate the new vector regsets if applicable.
11264 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11265 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11266 and init_registers_s390x_tevx_linux64.
11267
c966a859
PA
112682015-03-01 Pedro Alves <palves@redhat.com>
11269
11270 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11271 parameter.
11272
4180215b
PA
112732015-02-27 Pedro Alves <palves@redhat.com>
11274
11275 * linux-x86-low.c (u_debugreg_offset): New function.
11276 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11277
749bab01
PA
112782015-02-27 Pedro Alves <palves@redhat.com>
11279
11280 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11281 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11282 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11283 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11284 (ps_lsetfpregs, ps_getpid)
11285 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11286 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11287 (ps_lsetxregs, ps_plog): Declare.
11288
3c14e5a3
PA
112892015-02-27 Pedro Alves <palves@redhat.com>
11290
11291 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11292 IP_AGENT_EXPORT_FUNC.
11293 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11294 IP_AGENT_EXPORT_FUNC.
11295 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11296 (IP_AGENT_EXPORT): Delete.
11297 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11298 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11299 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11300 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11301 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11302 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11303 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11304 (traceframe_read_count, traceframe_write_count)
11305 (traceframes_created, trace_state_variables, get_raw_reg)
11306 (get_trace_state_variable_value, set_trace_state_variable_value)
11307 (ust_loaded, helper_thread_id, cmd_buf): Use
11308 IPA_SYM_EXPORTED_NAME.
11309 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11310 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11311 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11312 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11313 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11314 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11315 EXTERN_C_PUSH/EXTERN_C_POP.
11316 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11317 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11318 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11319 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11320 (traceframe_write_count, traceframe_read_count)
11321 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11322 (about_to_request_buffer_space, get_trace_state_variable_value)
11323 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11324 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11325 EXTERN_C_PUSH/EXTERN_C_POP.
11326 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11327 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11328 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11329 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11330 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11331 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11332 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11333 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11334 Define.
11335 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11336 (IP_AGENT_EXPORT_VAR_DECL): Define.
11337 (tracing): Declare.
11338 (gdb_agent_get_raw_reg): Declare.
11339
fe978cb0
PA
113402015-02-27 Tom Tromey <tromey@redhat.com>
11341 Pedro Alves <palves@redhat.com>
11342
11343 Rename symbols whose names are reserved C++ keywords throughout.
11344
3bc3d82a
PA
113452015-02-27 Pedro Alves <palves@redhat.com>
11346
11347 * Makefile.in (COMPILER): New, get it from autoconf.
11348 (CXX): Get from autoconf instead.
11349 (COMPILE.pre): Use COMPILER.
11350 (CC-LD): Rename to ...
11351 (CC_LD): ... this. Use COMPILER.
11352 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11353 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11354 * acinclude.m4: Include build-with-cxx.m4.
11355 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11356 Disable -Werror by default if building in C++ mode.
11357 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11358 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11359 the C++ compiler. Save/restore CXXFLAGS too.
11360 * configure: Regenerate.
11361
07697489
PA
113622015-02-27 Pedro Alves <palves@redhat.com>
11363
11364 * acinclude.m4: Include libiberty.m4.
11365 * configure.ac: Call libiberty_INIT.
11366 * config.in, configure: Regenerate.
11367
9beb7c4e
PA
113682015-02-26 Pedro Alves <palves@redhat.com>
11369
11370 * linux-low.c (linux_wait_1): When incrementing the PC past a
11371 program breakpoint always use the_low_target.breakpoint_len as
11372 increment, rather than the maximum between that and
11373 the_low_target.decr_pc_after_break.
11374
8090aef2
PA
113752015-02-23 Pedro Alves <palves@redhat.com>
11376
11377 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11378 thread was doing a step-over; always adjust the PC if
11379 we stepped over a permanent breakpoint.
11380 (linux_wait_1): If we stepped over breakpoint that was on top of a
11381 permanent breakpoint, manually advance the PC past it.
11382
bc9540e8
PA
113832015-02-23 Pedro Alves <palves@redhat.com>
11384
11385 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11386 modes.
11387 (x86_fill_gregset, x86_store_gregset): Use it when handling
11388 $orig_eax.
11389
2db9a427
PA
113902015-02-20 Pedro Alves <palves@redhat.com>
11391
11392 * thread-db.c: Include "nat/linux-procfs.h".
11393 (thread_db_init): Skip listing new threads if the kernel supports
11394 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11395
afa8d396
PA
113962015-02-20 Pedro Alves <palves@redhat.com>
11397
11398 * linux-low.c (status_pending_p_callback): Use ptid_match.
11399
c9587f88
AT
114002015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11401
11402 PR breakpoints/16812
11403 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11404 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11405 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11406
b05ec7a5
AT
114072015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11408
11409 PR breakpoints/15956
11410 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11411
d33501a5
MM
114122015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11413
11414 * linux-low.c (linux_low_btrace_conf): Print size.
11415 * server.c (handle_btrace_conf_general_set): New.
11416 (hanle_general_set): Call handle_btrace_conf_general_set.
11417 (handle_query): Report Qbtrace-conf:bts:size as supported.
11418
f4abbc16
MM
114192015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11420
11421 * linux-low.c (linux_low_enable_btrace): Update parameters.
11422 (linux_low_btrace_conf): New.
11423 (linux_target_ops)<to_btrace_conf>: Initialize.
11424 * server.c (current_btrace_conf): New.
11425 (handle_btrace_enable): Rename to ...
11426 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11427 to target_enable_btrace. Update comment. Update users.
11428 (handle_qxfer_btrace_conf): New.
11429 (qxfer_packets): Add btrace-conf entry.
11430 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11431 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11432 (target_ops)<read_btrace_conf>: New.
11433 (target_enable_btrace): Update parameters.
11434 (target_read_btrace_conf): New.
11435
043c3577
MM
114362015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11437
11438 * server.c (handle_btrace_general_set): Remove call to
11439 target_supports_btrace.
11440 (supported_btrace_packets): New.
11441 (handle_query): Call supported_btrace_packets.
11442 * target.h: include btrace-common.h.
11443 (btrace_target_info): Removed.
11444 (supports_btrace, target_supports_btrace): Update parameters.
11445
734b0e4b
MM
114462015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11447
11448 * Makefile.in (SFILES): Add common/btrace-common.c.
11449 (OBS): Add common/btrace-common.o.
11450 (btrace-common.o): Add build rules.
11451 * linux-low: Include btrace-common.h.
11452 (linux_low_read_btrace): Use struct btrace_data. Call
11453 btrace_data_init and btrace_data_fini.
11454
d6c146e9
PA
114552015-02-06 Pedro Alves <palves@redhat.com>
11456
11457 * thread-db.c (find_new_threads_callback): Add debug output.
11458
20ba1ce6
PA
114592015-02-04 Pedro Alves <palves@redhat.com>
11460
11461 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11462 (resume_stopped_resumed_lwps): New function.
11463 (linux_wait_for_event_filtered): Use it.
11464
8cc73a39
SDJ
114652015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11466
11467 * Makefile.in (SFILES): Add linux-personality.c.
11468 (linux-personality.o): New rule.
11469 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11470 list of objects to be built.
11471 * linux-low.c: Include nat/linux-personality.h.
11472 (linux_create_inferior): Remove code to disable address space
11473 randomization (moved to ../nat/linux-personality.c). Create
11474 cleanup to disable address space randomization.
11475
fb23d554
SDJ
114762015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11477
11478 * Makefile.in (posix-strerror.o): New rule.
11479 (mingw-strerror.o): Likewise.
11480 * configure: Regenerated.
11481 * configure.ac: Source file ../common/common.host. Initialize new
11482 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11483
cdf43629
YQ
114842015-01-14 Yao Qi <yao@codesourcery.com>
11485
11486 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11487 (ppc-linux.o): New rule.
11488 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11489 * configure.ac: AC_CHECK_FUNCS(getauxval).
11490 * config.in: Re-generated.
11491 * configure: Re-generated.
11492 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11493 ppc64_64bit_inferior_p
11494
514c5338
YQ
114952015-01-14 Yao Qi <yao@codesourcery.com>
11496
11497 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11498 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11499 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11500 (PT_ORIG_R3, PT_TRAP): Likewise.
11501 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11502 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11503 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11504
3368c1e5
JB
115052015-01-10 Joel Brobecker <brobecker@adacore.com>
11506
11507 * i387-fp.c (i387_cache_to_xsave): In look over
11508 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11509 zmmh_low_space field by use of zmmh_high_space.
11510
582511be
PA
115112015-01-09 Pedro Alves <palves@redhat.com>
11512
11513 * linux-low.c (step_over_bkpt): Move higher up in the file.
11514 (handle_extended_wait): Don't store the stop_pc here.
11515 (get_stop_pc): Adjust comments and rename to ...
11516 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11517 stopped for a software breakpoint or hardware breakpoint.
11518 (thread_still_has_status_pending_p): New function.
11519 (status_pending_p_callback): Use
11520 thread_still_has_status_pending_p. If the event is no longer
11521 interesting, resume the LWP.
11522 (handle_tracepoints): Add assert.
11523 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11524 (wstatus_maybe_breakpoint): New function.
11525 (cancel_breakpoint): Delete function.
11526 (check_stopped_by_watchpoint): New function, factored out from
11527 linux_low_filter_event.
11528 (lp_status_maybe_breakpoint): Delete function.
11529 (linux_low_filter_event): Remove filter_ptid argument.
11530 Leave thread group exits pending here. Store the LWP's stop PC.
11531 Always leave events pending.
11532 (linux_wait_for_event_filtered): Pull all events out of the
11533 kernel, and leave them all pending.
11534 (count_events_callback, select_event_lwp_callback): Consider all
11535 events.
11536 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11537 (select_event_lwp): Only give preference to the stepping LWP in
11538 all-stop mode. Adjust comments.
11539 (ignore_event): New function.
11540 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11541 references to cancel_breakpoints. Adjust to renames. Also give
11542 equal priority to all LWPs that have had events in non-stop mode.
11543 If reporting a software breakpoint event, unadjust the LWP's PC.
11544 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11545 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11546 Adjust.
11547 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11548 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11549 (linux_stopped_by_watchpoint): Adjust.
11550 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11551 * linux-low.h (enum lwp_stop_reason): New.
11552 (struct lwp_info) <stop_pc>: Adjust comment.
11553 <stopped_by_watchpoint>: Delete field.
11554 <stop_reason>: New field.
11555 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11556 * mem-break.c (software_breakpoint_inserted_here)
11557 (hardware_breakpoint_inserted_here): New function.
11558 * mem-break.h (software_breakpoint_inserted_here)
11559 (hardware_breakpoint_inserted_here): Declare.
11560 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11561 (cancel_breakpoints): Delete.
11562 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11563 (upload_fast_traceframes): Remove references to
11564 cancel_breakpoints.
11565
a33e3959
PA
115662015-01-09 Pedro Alves <palves@redhat.com>
11567
11568 * thread-db.c (find_new_threads_callback): Ignore thread if the
11569 kernel thread ID is -1.
11570
8784d563
PA
115712015-01-09 Pedro Alves <palves@redhat.com>
11572
11573 * linux-low.c (linux_attach_fail_reason_string): Move to
11574 nat/linux-ptrace.c, and rename.
11575 (linux_attach_lwp): Update comment.
11576 (attach_proc_task_lwp_callback): New function.
11577 (linux_attach): Adjust to rename and use
11578 linux_proc_attach_tgid_threads.
11579 (linux_attach_fail_reason_string): Delete declaration.
11580
76f2b779
JB
115812015-01-01 Joel Brobecker <brobecker@adacore.com>
11582
11583 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11584 * server.c (gdbserver_version): Likewise.
11585
fafcc06a
SDJ
115862014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11587
11588 * remote-utils.c: Include ctype.h.
11589 (input_interrupt): Explicitly handle the case when the char
11590 received is the NUL byte. Improve the printing of non-ASCII
11591 characters.
11592
beed38b8
JB
115932014-12-16 Joel Brobecker <brobecker@adacore.com>
11594
11595 * linux-low.c (linux_low_filter_event): Update call to
11596 linux_enable_event_reporting following the addition of
11597 a new parameter to that function.
11598
bf330350
CU
115992014-12-16 Catalin Udma <catalin.udma@freescale.com>
11600
11601 PR server/17457
11602 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11603 (AARCH64_FPCR_REGNO): Likewise.
11604 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11605 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11606 (aarch64_store_fpregset): Likewise.
11607
5227d625
JB
116082014-12-15 Joel Brobecker <brobecker@adacore.com>
11609
11610 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11611 Remove FIXME comment about assumption about N.
11612
f93b65a0
JB
116132014-12-13 Joel Brobecker <brobecker@adacore.com>
11614
11615 * configure.ac: If large-file support is disabled in GDBserver,
11616 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11617 * configure: Regenerate.
11618
e5a9158d
AA
116192014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11620
11621 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11622 warning upon ENODATA from ptrace.
11623 * linux-s390-low.c (s390_store_tdb): New.
11624 (s390_regsets): Add regset for NT_S390_TDB.
11625
feea5f36
AA
116262014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11627
11628 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11629 without a fill_function.
11630 * linux-s390-low.c (s390_fill_last_break): Remove.
11631 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11632 (s390_arch_setup): Use regset's size instead of fill_function for
11633 loop end condition.
11634
098dbe61
AA
116352014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11636
11637 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11638 the regset's store function when ptrace returned an error.
11639 * regcache.c (get_thread_regcache): Invalidate register cache
11640 before fetching inferior's registers.
11641
28eef672
AA
116422014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11643
11644 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11645 while-loop as for-loop.
11646 (regsets_store_inferior_registers): Likewise.
11647
bdca27a2
YQ
116482014-11-28 Yao Qi <yao@codesourcery.com>
11649
11650 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11651 * config.in, configure: Re-generate.
11652 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11653 is defined.
11654
9c232dda
YQ
116552014-11-21 Yao Qi <yao@codesourcery.com>
11656
11657 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11658 (AC_CHECK_HEADERS): Remove malloc.h.
11659 * configure: Re-generated.
11660 * config.in: Re-generated.
11661 * server.h: Don't include alloca.h and malloc.h.
11662 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11663 Don't include malloc.h.
11664
43968415
JB
116652014-11-17 Joel Brobecker <brobecker@adacore.com>
11666
11667 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11668 corresponding ERRNO check in same block.
11669
40e91bc7
PA
116702014-11-12 Pedro Alves <palves@redhat.com>
11671
11672 * server.c (cont_thread): Update comment.
11673 (start_inferior, attach_inferior): No longer clear cont_thread.
11674 (handle_v_cont): No longer set cont_thread.
11675 (captured_main): Clear cont_thread each time a GDB connects.
11676
c2c118cf
PA
116772014-11-12 Pedro Alves <palves@redhat.com>
11678
11679 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11680 thread, and don't resume all threads if the Hc thread has exited.
11681
78708b7c
PA
116822014-11-12 Pedro Alves <palves@redhat.com>
11683
11684 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11685 the process group instead of to a specific LWP.
11686
a2abc7de
PA
116872014-10-15 Pedro Alves <palves@redhat.com>
11688
11689 PR server/17487
11690 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11691 parameter.
11692 (arm_set_thread_context): Delete.
11693 (the_low_target): Adjust.
11694 * win32-i386-low.c (debug_registers_changed)
11695 (debug_registers_used): Delete.
11696 (update_debug_registers_callback): New function.
11697 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11698 needing to update their debug registers.
11699 (win32_get_current_dr): New function.
11700 (x86_dr_low_get_addr, x86_dr_low_get_control)
11701 (x86_dr_low_get_status): Fetch the debug register from the thread
11702 record's context.
11703 (i386_initial_stuff): Adjust.
11704 (i386_get_thread_context): Remove current_event parameter. Don't
11705 clear debug_registers_changed nor copy DR values to
11706 debug_reg_state.
11707 (i386_set_thread_context): Delete.
11708 (i386_prepare_to_resume): New function.
11709 (i386_thread_added): Mark the thread as needing to update irs
11710 debug registers.
11711 (the_low_target): Remove i386_set_thread_context and install
11712 i386_prepare_to_resume.
11713 * win32-low.c (win32_get_thread_context): Adjust.
11714 (win32_set_thread_context): Use SetThreadContext
11715 directly.
11716 (win32_prepare_to_resume): New function.
11717 (win32_require_context): New function, factored out from ...
11718 (thread_rec): ... this.
11719 (continue_one_thread): Call win32_prepare_to_resume on each thread
11720 we're about to continue.
11721 (win32_resume): Call win32_prepare_to_resume on the event thread.
11722 * win32-low.h (struct win32_thread_info)
11723 <debug_registers_changed>: New field.
11724 (struct win32_target_ops): Change prototype of set_thread_context,
11725 delete set_thread_context and add prepare_to_resume.
11726 (win32_require_context): New declaration.
11727
a442d071
GB
117282014-10-08 Gary Benson <gbenson@redhat.com>
11729
11730 * server.h: Do not include common-exceptions.h.
11731
6f1947e8
GB
117322014-10-08 Gary Benson <gbenson@redhat.com>
11733
11734 * server.h: Do not include cleanups.h.
11735
63b434a4
JH
117362014-09-30 James Hogan <james.hogan@imgtec.com>
11737
11738 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11739 mips64-dsp-linux.c.
11740
c4d9ceb6
YQ
117412014-09-23 Yao Qi <yao@codesourcery.com>
11742
11743 * linux-low.c (lp_status_maybe_breakpoint): New function.
11744 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11745 (count_events_callback): Likewise.
11746 (select_event_lwp_callback): Likewise.
11747 (cancel_breakpoints_callback): Likewise.
11748
89a5711c
DB
117492014-09-19 Don Breazeal <donb@codesourcery.com>
11750
11751 * linux-low.c (handle_extended_wait): Call
11752 linux_ptrace_get_extended_event.
11753 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11754 linux_is_extended_waitstatus.
11755
bffc0964
JB
117562014-09-16 Joel Brobecker <brobecker@adacore.com>
11757
11758 * Makefile.in (CPPFLAGS): Define.
11759 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11760 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11761
0bfdf32f
GB
117622014-09-16 Gary Benson <gbenson@redhat.com>
11763
11764 * inferiors.h (current_inferior): Renamed as...
11765 (current_thread): New variable. All uses updated.
11766 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11767 (maybe_move_out_of_jump_pad): Likewise.
11768 (cancel_breakpoint): Likewise.
11769 (linux_low_filter_event): Likewise.
11770 (wait_for_sigstop): Likewise.
11771 (linux_resume_one_lwp): Likewise.
11772 (need_step_over_p): Likewise.
11773 (start_step_over): Likewise.
11774 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11775 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11776 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11777 and save_inferior as saved_thread.
11778 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11779 saved_thread.
11780 (regcache_invalidate_thread): Likewise.
11781 * remote-utils.c (prepare_resume_reply): Likewise.
11782 * thread-db.c (thread_db_get_tls_address): Likewise.
11783 (disable_thread_event_reporting): Likewise.
11784 (remove_thread_event_breakpoints): Likewise.
11785 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11786 as saved_thread.
11787 * target.h (set_desired_inferior): Renamed as...
11788 (set_desired_thread): New declaration. All uses updated.
11789 * server.c (myresume): Updated comment to reference thread instead
11790 of inferior.
11791 (handle_serial_event): Likewise.
11792 (handle_target_event): Likewise.
11793
361c8ade
GB
117942014-09-12 Tom Tromey <tromey@redhat.com>
11795 Gary Benson <gbenson@redhat.com>
11796
11797 * regcache.h: Include common-regcache.h.
11798 (regcache_read_pc): Don't declare.
11799 * regcache.c (get_thread_regcache_for_ptid): New function.
11800
bd9269f7
GB
118012014-09-11 Tom Tromey <tromey@redhat.com>
11802 Gary Benson <gbenson@redhat.com>
11803
11804 * symbol.c: New file.
11805 * Makefile.in (SFILES): Add symbol.c.
11806 (OBS): Add symbol.o.
11807
f8c1d06b
GB
118082014-09-11 Gary Benson <gbenson@redhat.com>
11809
11810 * target.c (target_stop_ptid, target_continue_ptid): New
11811 functions.
11812
721ec300
GB
118132014-09-11 Tom Tromey <tromey@redhat.com>
11814 Gary Benson <gbenson@redhat.com>
11815
11816 * target.h: Include target/target.h.
11817 * target.c (target_read_memory, target_read_uint32)
11818 (target_write_memory): New functions.
11819
c5e92cca
GB
118202014-09-11 Gary Benson <gbenson@redhat.com>
11821
11822 * server.h (debug_hw_points): Don't declare.
11823 * server.c (debug_hw_points): Don't define. Replace all uses
11824 with show_debug_regs.
11825 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11826 all uses with show_debug_regs.
11827
2e4bb98a
EBM
118282014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11829
11830 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11831 endianness into account.
11832 (ppc_supply_ptrace_register): Likewise.
11833
ac740bc7
JH
118342014-09-03 James Hogan <james.hogan@imgtec.com>
11835
11836 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11837 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11838
97ea6506
GB
118392014-09-03 Gary Benson <gbenson@redhat.com>
11840
11841 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11842 ALL_DEBUG_ADDRESS_REGISTERS.
11843
df7e5265
GB
118442014-09-02 Gary Benson <gbenson@redhat.com>
11845
11846 * i386-low.h: Renamed as...
11847 * x86-low.h: New file. All type, function and variable name
11848 prefixes changed from "i386_" to "x86_". All references updated.
11849 * i386-low.c: Renamed as...
11850 * x86-low.c: New file. All type, function and variable name
11851 prefixes changed from "i386_" to "x86_". All references updated.
11852
ed859da7
GB
118532014-09-02 Gary Benson <gbenson@redhat.com>
11854
11855 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11856 (x86_linux_new_thread): Likewise.
11857
860789c7
GB
118582014-08-29 Gary Benson <gbenson@redhat.com>
11859
11860 * server.h (setjmp.h): Do not include.
11861 (toplevel): Do not declare.
11862 (common-exceptions.h): Include.
11863 (cleanups.h): Likewise.
11864 * server.c (toplevel): Do not define.
11865 (exit_code): New static global.
11866 (detach_or_kill_for_exit_cleanup): New function.
11867 (main): New function. Original main renamed to...
11868 (captured_main): New function.
11869 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11870
ff55e1b5
GB
118712014-08-29 Gary Benson <gbenson@redhat.com>
11872
11873 * Makefile.in (SFILES): Add common/common-exceptions.c.
11874 (OBS): Add common-exceptions.o.
11875 (common-exceptions.o): New rule.
11876 * utils.c (prepare_to_throw_exception): New function.
11877
e9bcb658
GB
118782014-08-29 Gary Benson <gbenson@redhat.com>
11879
11880 * config.in: Regenerate.
11881 * configure: Likewise.
11882
e3180625
GB
118832014-08-29 Gary Benson <gbenson@redhat.com>
11884
11885 * Makefile.in (SFILES): Add common/cleanups.c.
11886 (OBS): cleanups.o.
11887 (cleanups.o): New rule.
11888
e3d6ba5d
GB
118892014-08-29 Gary Benson <gbenson@redhat.com>
11890
11891 * utils.c (internal_vwarning): New function.
11892
7096e886
GB
118932014-08-28 Gary Benson <gbenson@redhat.com>
11894
11895 * utils.h (fatal): Remove declaration.
11896 * utils.c (fatal): Remove function.
11897
14ce3192
GB
118982014-08-28 Gary Benson <gbenson@redhat.com>
11899
11900 * tracepoint.c (gdb_agent_init): Replace fatal with
11901 perror_with_name.
11902 (initialize_tracepoint): Likewise.
11903
50278d59
GB
119042014-08-28 Gary Benson <gbenson@redhat.com>
11905
11906 * remote-utils.c (remote_prepare): Replace fatal with error.
11907
aa96c426
GB
119082014-08-28 Gary Benson <gbenson@redhat.com>
11909
11910 * linux-low.c (linux_async): Replace fatal with warning.
11911 Tidy up and return.
11912 (linux_start_non_stop): Return -1 if linux_async failed.
11913
f7160e97
GB
119142014-08-28 Gary Benson <gbenson@redhat.com>
11915
11916 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11917 gdb_assert.
11918 (i386_dr_low_get_addr): Remove vague comment.
11919 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11920 gdb_assert.
11921
38e08fca
GB
119222014-08-28 Gary Benson <gbenson@redhat.com>
11923
11924 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11925 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11926 internal_error.
11927 (linux_resume_one_lwp): Likewise.
11928 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11929 gdb_assert.
11930 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11931 with internal_error.
11932 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11933 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11934 (find_register_by_name): Replace fatal with internal_error.
11935 (find_regno): Likewise.
11936 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11937 * thread-db.c (thread_db_create_event): Likewise.
11938 (thread_db_load_search): Likewise.
11939 (try_thread_db_load_1): Likewise.
11940 * tracepoint.c (get_jump_space_head): Replace fatal with
11941 internal_error.
11942 (claim_trampoline_space): Likewise.
11943 (have_fast_tracepoint_trampoline_buffer): Likewise.
11944 (cmd_qtstart): Likewise.
11945 (stop_tracing): Likewise.
11946 (fast_tracepoint_collecting): Likewise.
11947 (target_malloc): Likewise.
11948 (download_tracepoint): Likewise.
11949 (download_trace_state_variables): Replace check with gdb_assert.
11950 (upload_fast_traceframes): Replace fatal with internal_error.
11951
34abf635
GB
119522014-08-19 Tom Tromey <tromey@redhat.com>
11953 Gary Benson <gbenson@redhat.com>
11954
11955 * Makefile.in (SFILES): Add common/common-debug.c.
11956 (OBS): Add common-debug.o.
11957 (common-debug.o): New rule.
11958 * debug.h (debug_printf): Don't declare.
11959 * debug.c (debug_printf): Renamed and rewritten as...
11960 (debug_vprintf): New function.
11961
f6e94d78
GB
119622014-08-19 Gary Benson <gbenson@redhat.com>
11963
11964 * utils.h: Do not include print-utils.h.
11965
9239eeab
GB
119662014-08-19 Tom Tromey <tromey@redhat.com>
11967 Gary Benson <gbenson@redhat.com>
11968
11969 * server.h: Add static assertion.
11970 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11971
ef87c8bb
GB
119722014-08-19 Tom Tromey <tromey@redhat.com>
11973 Gary Benson <gbenson@redhat.com>
11974
11975 * Makefile.in (SFILES): Add common/errors.c.
11976 (OBS): Add errors.o.
11977 (IPA_OBS): Add errors-ipa.o.
11978 (errors.o): New rule.
11979 (errors-ipa.o): Likewise.
11980 * utils.h (perror_with_name, error, warning): Don't declare.
11981 * utils.c (warning): Renamed and rewritten as...
11982 (vwarning): New function.
11983 (error): Renamed and rewritten as...
11984 (verror): New function.
11985 (internal_error): Renamed and rewritten as...
11986 (internal_verror): New function.
11987
bb974a24
GB
119882014-08-07 Gary Benson <gbenson@redhat.com>
11989
11990 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11991 * configure: Regenerate.
11992 * config.in: Likewise.
11993 * server.h: Do not include errno.h.
11994 * event-loop.c: Likewise.
11995 * hostio-errno.c: Likewise.
11996 * linux-low.c: Likewise.
11997 * remote-utils.c: Likewise.
11998 * spu-low.c: Likewise.
11999 * utils.c: Likewise.
12000 * gdbreplay.c: Unconditionally include errno.h.
12001
6d3d12eb
GB
120022014-08-07 Gary Benson <gbenson@redhat.com>
12003
12004 * server.h: Do not include string.h.
12005 * event-loop.c: Likewise.
12006 * linux-low.c: Likewise.
12007 * regcache.c: Likewise.
12008 * remote-utils.c: Likewise.
12009 * spu-low.c: Likewise.
12010 * utils.c: Likewise.
12011
dccbb609
GB
120122014-08-07 Gary Benson <gbenson@redhat.com>
12013
12014 * server.h: Do not include gdb_assert.h.
12015
e76df0d0
GB
120162014-08-07 Gary Benson <gbenson@redhat.com>
12017
12018 * server.h: Do not include common-utils.h.
12019
4cb9c816
GB
120202014-08-07 Gary Benson <gbenson@redhat.com>
12021
12022 * server.h: Do not include ptid.h.
12023 * notif.h: Likewise.
12024
3995eeee
GB
120252014-08-07 Gary Benson <gbenson@redhat.com>
12026
12027 * server.h: Do not include gdb_locale.h.
12028
cb9f1a9b
GB
120292014-08-07 Gary Benson <gbenson@redhat.com>
12030
12031 * server.h: Do not include gdb/signals.h.
12032 * win32-low.c: Likewise.
12033
a5fceff8
GB
120342014-08-07 Gary Benson <gbenson@redhat.com>
12035
12036 * server.h: Do not include pathmax.h.
12037
b9391142
GB
120382014-08-07 Gary Benson <gbenson@redhat.com>
12039
12040 * server.h: Do not include libiberty.h.
12041 * linux-bfin-low.c: Likewise.
12042
0e443c87
GB
120432014-08-07 Gary Benson <gbenson@redhat.com>
12044
12045 * server.h: Do not include ansidecl.h.
12046
8ebb3f56
GB
120472014-08-07 Gary Benson <gbenson@redhat.com>
12048
12049 * linux-x86-low.c: Do not include stddef.h.
12050 * lynx-ppc-low.c: Likewise.
12051 * tracepoint.c: Likewise.
12052
8980bdf6
GB
120532014-08-07 Gary Benson <gbenson@redhat.com>
12054
12055 * server.h: Do not include stdarg.h.
12056 * nto-low.c: Likewise.
12057
d7096f71
GB
120582014-08-07 Gary Benson <gbenson@redhat.com>
12059
12060 * server.h: Do not include stdlib.h.
12061 * inferiors.c: Likewise.
12062 * linux-low.c: Likewise.
12063 * regcache.c: Likewise.
12064 * spu-low.c: Likewise.
12065 * tracepoint.c: Likewise.
12066 * utils.c: Likewise.
12067
d02f550d
GB
120682014-08-07 Gary Benson <gbenson@redhat.com>
12069
12070 * server.h: Do not include stdio.h.
12071 * linux-low.c: Likewise.
12072 * remote-utils.c: Likewise.
12073 * spu-low.c: Likewise.
12074 * utils.c: Likewise.
12075 * wincecompat.c: Likewise.
12076
87f6c4e3
GB
120772014-08-06 Gary Benson <gbenson@redhat.com>
12078
12079 * regcache.c (init_register_cache): Move conditionals inside if.
12080
7089dca4
GB
120812014-08-06 Gary Benson <gbenson@redhat.com>
12082
12083 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12084
462f517e
GB
120852014-07-31 Gary Benson <gbenson@redhat.com>
12086
12087 * ax.h: Do not include server.h.
12088 * gdbthread.h: Likewise.
12089 * lynx-low.h: Likewise.
12090 * notif.h: Likewise.
12091
976411d6
GB
120922014-07-30 Gary Benson <gbenson@redhat.com>
12093
12094 * server.h: Include common-defs.h.
12095 Do not include config.h or build-gnulib-gdbserver/config.h.
12096
d41f6d8e
GB
120972014-07-30 Gary Benson <gbenson@redhat.com>
12098
12099 * hostio-errno.c: Move server.h to top of includes list.
12100 * inferiors.c: Likewise.
12101 * linux-x86-low.c: Likewise.
12102 * notif.c: Include server.h.
12103
314c6a35
TT
121042014-07-24 Tom Tromey <tromey@redhat.com>
12105 Gary Benson <gbenson@redhat.com>
12106
12107 * server.h (CORE_ADDR): Now unsigned.
12108
69ff6be5
PA
121092014-07-16 Pedro Alves <palves@redhat.com>
12110
12111 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12112
ce9e3fe7
PA
121132014-07-15 Pedro Alves <palves@redhat.com>
12114
12115 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12116 copy.
12117
e76126e8
PA
121182014-07-11 Pedro Alves <palves@redhat.com>
12119
12120 * linux-low.c (kill_wait_lwp): New function, based on
12121 kill_one_lwp_callback, but use my_waitpid directly.
12122 (kill_one_lwp_callback, linux_kill): Use it.
12123
8e9db26e
PA
121242014-06-23 Pedro Alves <palves@redhat.com>
12125
12126 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12127 before setting DR0..DR3.
12128
698b3e08
GB
121292014-06-20 Gary Benson <gbenson@redhat.com>
12130
12131 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12132 * configure: Regenerated.
12133 * config.in: Likewise.
12134
125f8a3d
GB
121352014-06-20 Gary Benson <gbenson@redhat.com>
12136
12137 * Makefile.in (SFILES): Update locations for files moved
12138 from common to nat.
12139 (object file files): Reordered.
12140
42995dbd
GB
121412014-06-20 Gary Benson <gbenson@redhat.com>
12142
12143 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12144 (i386_dr_low_set_addr): Likewise.
12145 (i386_dr_low_get_addr): Likewise.
12146 (i386_dr_low_can_set_control): Likewise.
12147 (i386_dr_low_set_control): Likewise.
12148 (i386_dr_low_get_control): Likewise.
12149 (i386_dr_low_get_status): Likewise.
12150 (i386_get_debug_register_length): Likewise.
12151 * linux-x86-low.c (i386_dr_low_set_addr):
12152 Changed signature. Made static.
12153 (i386_dr_low_get_addr): Likewise.
12154 (i386_dr_low_set_control): Likewise.
12155 (i386_dr_low_get_control): Likewise.
12156 (i386_dr_low_get_status): Likewise.
12157 (i386_dr_low): New global variable.
12158 * win32-i386-low.c (i386_dr_low_set_addr):
12159 Changed signature. Made static.
12160 (i386_dr_low_get_addr): Likewise.
12161 (i386_dr_low_set_control): Likewise.
12162 (i386_dr_low_get_control): Likewise.
12163 (i386_dr_low_get_status): Likewise.
12164 (i386_dr_low): New global variable.
12165
e1d2394b
MS
121662014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12167
12168 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12169 * Makefile.in (AR, AR_FLAGS): Define.
12170 * configure: Regenerate.
12171
3a8ee006
GB
121722014-06-19 Gary Benson <gbenson@redhat.com>
12173
12174 * Makefile.in (i386-dregs.o): New rule.
12175 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12176 * i386-low.c (target.h): Remove include.
12177 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12178 (DR_CONTROL_SHIFT): Likewise.
12179 (DR_CONTROL_SIZE): Likewise.
12180 (DR_RW_EXECUTE): Likewise.
12181 (DR_RW_WRITE): Likewise.
12182 (DR_RW_READ): Likewise.
12183 (DR_RW_IORW): Likewise.
12184 (DR_LEN_1): Likewise.
12185 (DR_LEN_2): Likewise.
12186 (DR_LEN_4): Likewise.
12187 (DR_LEN_8): Likewise.
12188 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12189 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12190 (DR_ENABLE_SIZE): Likewise.
12191 (DR_LOCAL_SLOWDOWN): Likewise.
12192 (DR_GLOBAL_SLOWDOWN): Likewise.
12193 (DR_CONTROL_RESERVED): Likewise.
12194 (I386_DR_CONTROL_MASK): Likewise.
12195 (I386_DR_VACANT): Likewise.
12196 (I386_DR_LOCAL_ENABLE): Likewise.
12197 (I386_DR_GLOBAL_ENABLE): Likewise.
12198 (I386_DR_DISABLE): Likewise.
12199 (I386_DR_SET_RW_LEN): Likewise.
12200 (I386_DR_GET_RW_LEN): Likewise.
12201 (I386_DR_WATCH_HIT): Likewise.
12202 (i386_wp_op_t): Likewise.
12203 (i386_show_dr): Likewise.
12204 (i386_length_and_rw_bits): Likewise.
12205 (i386_insert_aligned_watchpoint): Likewise.
12206 (i386_remove_aligned_watchpoint): Likewise.
12207 (i386_handle_nonaligned_watchpoint): Likewise.
12208 i386_update_inferior_debug_regs(): Likewise.
12209 (i386_dr_insert_watchpoint): Likewise.
12210 (i386_dr_remove_watchpoint): Likewise.
12211 (i386_dr_region_ok_for_watchpoint): Likewise.
12212 (i386_dr_stopped_data_address): Likewise.
12213 (i386_dr_stopped_by_watchpoint): Likewise.
12214
8f26655c
GB
122152014-06-19 Gary Benson <gbenson@redhat.com>
12216
12217 * i386-low.c (i386_dr_show): Renamed to
12218 i386_show_dr and made static. All uses updated.
12219 (i386_dr_length_and_rw_bits): Renamed to
12220 i386_length_and_rw_bits and made static.
12221 All uses updated.
12222 (i386_dr_insert_aligned_watchpoint): Renamed to
12223 i386_insert_aligned_watchpoint and made static.
12224 All uses updated.
12225 (i386_dr_remove_aligned_watchpoint): Renamed to
12226 i386_remove_aligned_watchpoint and made static.
12227 All uses updated.
12228 (i386_dr_update_inferior_debug_regs): Renamed to
12229 i386_update_inferior_debug_regs and made static.
12230 All uses updated.
12231
b9228891
GB
122322014-06-18 Gary Benson <gbenson@redhat.com>
12233
5171def3
GB
12234 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12235 (i386_dr_low_can_set_control): Likewise.
12236 (i386_get_debug_register_length): Likewise.
12237 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12238 (i386_dr_low_can_set_control): Likewise.
12239 (i386_get_debug_register_length): Likewise.
12240
122412014-06-17 Gary Benson <gbenson@redhat.com>
12242
b9228891
GB
12243 * i386-low.h (i386-dregs.h): New include.
12244 (DR_FIRSTADDR): Now in i386-dregs.h.
12245 (DR_LASTADDR): Likewise.
12246 (DR_NADDR): Likewise.
12247 (DR_STATUS): Likewise.
12248 (DR_CONTROL): Likewise.
12249 (i386_debug_reg_state): Likewise.
12250 (i386_dr_insert_watchpoint): Likewise.
12251 (i386_dr_remove_watchpoint): Likewise.
12252 (i386_dr_region_ok_for_watchpoint): Likewise.
12253 (i386_dr_stopped_data_address): Likewise.
12254 (i386_dr_stopped_by_watchpoint): Likewise.
12255 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12256
4be83cc2
GB
122572014-06-18 Gary Benson <gbenson@redhat.com>
12258
12259 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12260 i386_dr_insert_watchpoint.
12261 (i386_low_remove_watchpoint): Renamed to
12262 i386_dr_remove_watchpoint.
12263 (i386_low_region_ok_for_watchpoint): Renamed to
12264 i386_dr_region_ok_for_watchpoint.
12265 (i386_low_stopped_data_address): Renamed to
12266 i386_dr_stopped_data_address.
12267 (i386_low_stopped_by_watchpoint): Renamed to
12268 i386_dr_stopped_by_watchpoint.
12269 * i386-low.c (i386_show_dr): Renamed to
12270 i386_dr_show and made nonstatic. All uses updated.
12271 (i386_length_and_rw_bits): Renamed to
12272 i386_dr_length_and_rw_bits and made nonstatic.
12273 All uses updated.
12274 (i386_insert_aligned_watchpoint): Renamed to
12275 i386_dr_insert_aligned_watchpoint and made nonstatic.
12276 All uses updated.
12277 (i386_remove_aligned_watchpoint): Renamed to
12278 i386_dr_remove_aligned_watchpoint and made nonstatic.
12279 All uses updated.
12280 (i386_update_inferior_debug_regs): Renamed to
12281 i386_dr_update_inferior_debug_regs and made nonstatic.
12282 All uses updated.
12283 (i386_low_insert_watchpoint): Renamed to
12284 i386_dr_insert_watchpoint. All uses updated.
12285 (i386_low_remove_watchpoint): Renamed to
12286 i386_dr_remove_watchpoint. All uses updated.
12287 (i386_low_region_ok_for_watchpoint): Renamed to
12288 i386_dr_region_ok_for_watchpoint. All uses updated.
12289 (i386_low_stopped_data_address): Renamed to
12290 i386_dr_stopped_data_address. All uses updated.
12291 (i386_low_stopped_by_watchpoint): Renamed to
12292 i386_dr_stopped_by_watchpoint. All uses updated.
12293
131aa0d4
GB
122942014-06-18 Gary Benson <gbenson@redhat.com>
12295
12296 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12297 (i386_dr_low_can_set_control): Likewise.
12298 (i386_insert_aligned_watchpoint): New check.
12299
d9305f7f
GB
123002014-06-18 Gary Benson <gbenson@redhat.com>
12301
12302 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12303 Renamed to state.
12304
e927c9fc
GB
123052014-06-18 Gary Benson <gbenson@redhat.com>
12306
12307 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12308 instead of fatal and error.
12309 (i386_handle_nonaligned_watchpoint): Likewise.
12310
1b6d4134
GB
123112014-06-18 Gary Benson <gbenson@redhat.com>
12312
12313 * i386-low.c (i386_get_debug_register_length): New macro.
12314 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12315 (i386_show_dr): Use debug_printf instead of fprintf. Use
12316 phex to format values.
12317
6e62758f
GB
123182014-06-18 Gary Benson <gbenson@redhat.com>
12319
12320 * i386-low.h: Comment changes.
12321 * i386-low.c: Likewise.
12322
fc6e2f03
GB
123232014-06-18 Gary Benson <gbenson@redhat.com>
12324
12325 * i386-low.c: Whitespace changes.
12326
f9d1eeed
TT
123272014-06-12 Tom Tromey <tromey@redhat.com>
12328
12329 * utils.c (freeargv): Remove.
12330
0b04e523
TT
123312014-06-12 Tom Tromey <tromey@redhat.com>
12332
12333 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12334 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12335 (parse_debug_format_options): Likewise.
12336 (gdbserver_usage): Likewise.
12337 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12338 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12339 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12340 against libiberty.
12341 ($(LIBGNU)): Depend on libiberty.
12342 (all-lib): Recurse into all subdirs.
12343 (install-only): Invoke "install" target in subdirs.
12344 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12345 targets.
12346 * configure: Rebuild.
12347 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12348 for vasprintf, vsnprintf, or gettimeofday.
12349 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12350 srv_tgtobj.
12351
270c9937
JB
123522014-06-05 Joel Brobecker <brobecker@adacore.com>
12353
12354 * development.sh: Delete.
12355 * Makefile.in (config.status): Adjust dependency on development.sh.
12356 * configure.ac: Adjust development.sh source call.
12357 * configure: Regenerate.
12358
0a261ed8
PA
123592014-06-02 Pedro Alves <palves@redhat.com>
12360
12361 * ax.c (gdb_free_agent_expr): New function.
12362 * ax.h (gdb_free_agent_expr): New declaration.
12363 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12364 list.
12365 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12366 static.
12367 (clear_breakpoint_conditions_and_commands): New function.
12368 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12369 (clear_breakpoint_conditions_and_commands): New declaration.
12370
e9dae05e
RR
123712014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12372
12373 * linux-aarch64-low.c (asm/ptrace.h): Include.
12374
5876f503
JK
123752014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12376
12377 Fix TLS access for -static -pthread.
12378 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12379 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12380 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12381
802e8e6d
PA
123822014-05-20 Pedro Alves <palves@redhat.com>
12383
12384 * linux-aarch64-low.c (aarch64_insert_point)
12385 (aarch64_remove_point): No longer check whether the type is
12386 supported here. Adjust to new interface.
12387 (the_low_target): Install aarch64_supports_z_point_type as
12388 supports_z_point_type method.
12389 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12390 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12391 instead of a Z packet char. Adjust.
12392 (arm_supports_z_point_type): New function.
12393 (arm_insert_point, arm_remove_point): Adjust to new interface.
12394 (the_low_target): Install arm_supports_z_point_type.
12395 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12396 (cris_insert_point, cris_remove_point): Adjust to new interface.
12397 Don't check whether the type is supported here.
12398 (the_low_target): Install cris_supports_z_point_type.
12399 * linux-low.c (linux_supports_z_point_type): New function.
12400 (linux_insert_point, linux_remove_point): Adjust to new interface.
12401 * linux-low.h (struct linux_target_ops) <insert_point,
12402 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12403 raw_breakpoint pointer parameter.
12404 <supports_z_point_type>: New method.
12405 * linux-mips-low.c (mips_supports_z_point_type): New function.
12406 (mips_insert_point, mips_remove_point): Adjust to new interface.
12407 Use mips_supports_z_point_type.
12408 (the_low_target): Install mips_supports_z_point_type.
12409 * linux-ppc-low.c (the_low_target): Install NULL as
12410 supports_z_point_type method.
12411 * linux-s390-low.c (the_low_target): Install NULL as
12412 supports_z_point_type method.
12413 * linux-sparc-low.c (the_low_target): Install NULL as
12414 supports_z_point_type method.
12415 * linux-x86-low.c (x86_supports_z_point_type): New function.
12416 (x86_insert_point): Adjust to new insert_point interface. Use
12417 insert_memory_breakpoint. Adjust to new
12418 i386_low_insert_watchpoint interface.
12419 (x86_remove_point): Adjust to remove_point interface. Use
12420 remove_memory_breakpoint. Adjust to new
12421 i386_low_remove_watchpoint interface.
12422 (the_low_target): Install x86_supports_z_point_type.
12423 * lynx-low.c (lynx_target_ops): Install NULL as
12424 supports_z_point_type callback.
12425 * nto-low.c (nto_supports_z_point_type): New.
12426 (nto_insert_point, nto_remove_point): Adjust to new interface.
12427 (nto_target_ops): Install nto_supports_z_point_type.
12428 * mem-break.c: Adjust intro comment.
12429 (struct raw_breakpoint) <raw_type, size>: New fields.
12430 <inserted>: Update comment.
12431 <shlib_disabled>: Delete field.
12432 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12433 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12434 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12435 (raw_bkpt_type_to_target_hw_bp_type): New function.
12436 (find_enabled_raw_code_breakpoint_at): New function.
12437 (find_raw_breakpoint_at): New type and size parameters. Use them.
12438 (insert_memory_breakpoint): New function, based off
12439 set_raw_breakpoint_at.
12440 (remove_memory_breakpoint): New function.
12441 (set_raw_breakpoint_at): Reimplement.
12442 (set_breakpoint): New, based on set_breakpoint_at.
12443 (set_breakpoint_at): Reimplement.
12444 (delete_raw_breakpoint): Go through the_target->remove_point
12445 instead of assuming memory breakpoints.
12446 (find_gdb_breakpoint_at): Delete.
12447 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12448 (find_gdb_breakpoint): New function.
12449 (set_gdb_breakpoint_at): Delete.
12450 (z_type_supported): New function.
12451 (set_gdb_breakpoint_1): New function, loosely based off
12452 set_gdb_breakpoint_at.
12453 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12454 (delete_gdb_breakpoint_at): Delete.
12455 (delete_gdb_breakpoint_1): New function, loosely based off
12456 delete_gdb_breakpoint_at.
12457 (delete_gdb_breakpoint): New function.
12458 (clear_gdb_breakpoint_conditions): Rename to ...
12459 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12460 breakpoint.
12461 (add_condition_to_breakpoint): Make static.
12462 (add_breakpoint_condition): Take a struct breakpoint pointer
12463 instead of an address. Adjust.
12464 (gdb_condition_true_at_breakpoint): Rename to ...
12465 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12466 z_type parameter.
12467 (gdb_condition_true_at_breakpoint): Reimplement.
12468 (add_breakpoint_commands): Take a struct breakpoint pointer
12469 instead of an address. Adjust.
12470 (gdb_no_commands_at_breakpoint): Rename to ...
12471 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12472 parameter. Return true if no breakpoint was found. Change debug
12473 output.
12474 (gdb_no_commands_at_breakpoint): Reimplement.
12475 (run_breakpoint_commands): Rename to ...
12476 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12477 and change return type to boolean.
12478 (run_breakpoint_commands): New function.
12479 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12480 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12481 breakpoint. Go through the_target->remove_point instead of
12482 assuming memory breakpoint.
12483 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12484 software and hardware breakpoints.
12485 (reinsert_raw_breakpoint): Go through the_target->insert_point
12486 instead of assuming memory breakpoint.
12487 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12488 software and hardware breakpoints.
12489 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12490 Check both software and hardware breakpoints.
12491 (validate_inserted_breakpoint): Assert the breakpoint is a
12492 software breakpoint. Set the inserted flag to -1 instead of
12493 setting shlib_disabled.
12494 (delete_disabled_breakpoints): Adjust.
12495 (validate_breakpoints): Only validate software breakpoints.
12496 Adjust to inserted flag change.
12497 (check_mem_read, check_mem_write): Skip breakpoint types other
12498 than software breakpoints. Adjust to inserted flag change.
12499 * mem-break.h (enum raw_bkpt_type): New enum.
12500 (raw_breakpoint, struct process_info): Forward declare.
12501 (Z_packet_to_target_hw_bp_type): Delete declaration.
12502 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12503 (set_gdb_breakpoint, delete_gdb_breakpoint)
12504 (clear_breakpoint_conditions): New declarations.
12505 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12506 (breakpoint_inserted_here): Update comment.
12507 (add_breakpoint_condition, add_breakpoint_commands): Replace
12508 address parameter with a breakpoint pointer parameter.
12509 (gdb_breakpoint_here): Update comment.
12510 (delete_gdb_breakpoint_at): Delete.
12511 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12512 * server.c (process_point_options): Take a struct breakpoint
12513 pointer instead of an address. Adjust.
12514 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12515 delete_gdb_breakpoint.
12516 * spu-low.c (spu_target_ops): Install NULL as
12517 supports_z_point_type method.
12518 * target.h: Include mem-break.h.
12519 (struct target_ops) <prepare_to_access_memory>: Update comment.
12520 <supports_z_point_type>: New field.
12521 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12522 instead of a char. Also take a raw breakpoint pointer.
12523 * win32-arm-low.c (the_low_target): Install NULL as
12524 supports_z_point_type.
12525 * win32-i386-low.c (i386_supports_z_point_type): New function.
12526 (i386_insert_point, i386_remove_point): Adjust to new interface.
12527 (the_low_target): Install i386_supports_z_point_type.
12528 * win32-low.c (win32_supports_z_point_type): New function.
12529 (win32_insert_point, win32_remove_point): Adjust to new interface.
12530 (win32_target_ops): Install win32_supports_z_point_type.
12531 * win32-low.h (struct win32_target_ops):
12532 <supports_z_point_type>: New method.
12533 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12534 instead of a char. Also take a raw breakpoint pointer.
12535
932539e3
PA
125362014-05-20 Pedro Alves <palves@redhat.com>
12537
12538 * mem-break.h: Include break-common.h.
12539 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12540 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12541 (Z_packet_to_target_hw_bp_type): New declaration.
12542 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12543 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12544 (Z_PACKET_ACCESS_WP): Delete macros.
12545 (Z_packet_to_hw_type): Delete function.
12546 * i386-low.h: Don't include break-common.h here.
12547 (Z_packet_to_hw_type): Delete declaration.
12548 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12549 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12550 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12551 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12552 * linux-aarch64-low.c: Don't include break-common.h here.
12553 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12554 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12555 (Z_packet_to_target_hw_bp_type): Delete function.
12556 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12557 function.
12558 (mips_insert_point, mips_remove_point): Use
12559 Z_packet_to_target_hw_bp_type.
12560
4ff0d3d8
PA
125612014-05-20 Pedro Alves <palves@redhat.com>
12562
12563 * linux-aarch64-low.c: Include break-common.h.
12564 (enum target_point_type): Delete.
12565 (Z_packet_to_point_type): Rename to ...
12566 (Z_packet_to_target_hw_bp_type): ... this, and return a
12567 target_hw_bp_type instead.
12568 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12569 instead of an enum target_point_type.
12570 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12571 breakpoint type.
12572 (aarch64_dr_state_insert_one_point)
12573 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12574 (aarch64_handle_aligned_watchpoint)
12575 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12576 Take an enum target_hw_bp_type instead of an enum
12577 target_point_type.
12578 (aarch64_supports_z_point_type): New function.
12579 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12580 use Z_packet_to_target_hw_bp_type.
12581
786dc519
JB
125822014-05-20 Joel Brobecker <brobecker@adacore.com>
12583
12584 * configure.ac: Only use -Werror by default when DEVELOPMENT
12585 is true.
12586 * configure: Regenerate.
12587
9e0aa64f
JK
125882014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12589
12590 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12591 * linux-x86-low.c (X86_64_USER_REGS): New.
12592 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12593
2b577b92
YQ
125942014-04-28 Yao Qi <yao@codesourcery.com>
12595
12596 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12597 name.
12598
94611da2
PA
125992014-04-25 Pedro Alves <palves@redhat.com>
12600
12601 PR server/16255
12602 * linux-low.c (linux_attach_fail_reason_string): New function.
12603 (linux_attach_lwp): Delete.
12604 (linux_attach_lwp_1): Rename to ...
12605 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12606 argument. Remove "initial" parameter. Return int instead of
12607 void. Don't error or warn here.
12608 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12609 failure to attach to the tgid. Call warning when failing to
12610 attach to an lwp.
12611 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12612 argument. Remove "initial" parameter. Return int instead of
12613 void. Don't error or warn here.
12614 (linux_attach_fail_reason_string): New declaration.
12615 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12616 interface change. Use linux_attach_fail_reason_string.
12617
01f9f808
MS
126182014-04-24 Michael Sturm <michael.sturm@mintel.com>
12619 Walfred Tedeschi <walfred.tedeschi@intel.com>
12620
12621 * Makefile.in: Added rules to handle new files
12622 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12623 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12624 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12625 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12626 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12627 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12628 x32-avx512-linux.o.
12629 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12630 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12631 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12632 i386/x32-avx512.xml.
12633 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12634 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12635 i386/x32-avx512-linux.xml.
12636 * i387-fp.c (num_avx512_k_registers): New constant for number
12637 of K registers.
12638 (num_avx512_zmmh_low_registers): New constant for number of
12639 lower ZMM registers (0-15).
12640 (num_avx512_zmmh_high_registers): New constant for number of
12641 higher ZMM registers (16-31).
12642 (num_avx512_ymmh_registers): New contant for number of higher
12643 YMM registers (ymm16-31 added by avx521 on x86_64).
12644 (num_avx512_xmm_registers): New constant for number of higher
12645 XMM registers (xmm16-31 added by AVX512 on x86_64).
12646 (struct i387_xsave): Add space for AVX512 registers.
12647 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12648 Add code to handle AVX512 registers.
12649 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12650 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12651 prototypei from generated file.
12652 (tdesc_amd64_avx512_linux): Likewise.
12653 (init_registers_x32_avx512_linux): Likewise.
12654 (tdesc_x32_avx512_linux): Likewise.
12655 (init_registers_i386_avx512_linux): Likewise.
12656 (tdesc_i386_avx512_linux): Likewise.
12657 (x86_64_regmap): Add AVX512 registers.
12658 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12659 mask.
12660 (initialize_low_arch): Add code to initialize AVX512 registers.
12661
51aa91f9
PA
126622014-04-23 Pedro Alves <palves@redhat.com>
12663
12664 * mem-break.c (find_gdb_breakpoint_at): Make static.
12665 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12666
a4165e94
PA
126672014-04-23 Pedro Alves <palves@redhat.com>
12668
12669 * i386-low.c: Don't include break-common.h here.
12670 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12671 prototype to take target_hw_bp_type as argument instead of a Z
12672 packet char.
12673 * i386-low.h: Include break-common.h here.
12674 (Z_packet_to_hw_type): Declare.
12675 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12676 prototypes.
12677 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12678 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12679 (x86_remove_point): Convert the packet number to a
12680 target_hw_bp_type before calling i386_low_remove_watchpoint.
12681 * win32-i386-low.c (i386_insert_point): Convert the packet number
12682 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12683 (i386_remove_point): Convert the packet number to a
12684 target_hw_bp_type before calling i386_low_remove_watchpoint.
12685
b8acf843
PA
126862014-04-23 Pedro Alves <palves@redhat.com>
12687
12688 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12689
d708bcd1
PA
126902014-04-10 Pedro Alves <palves@redhat.com>
12691
12692 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12693 Check if the condition or command is NULL before checking if the
12694 breakpoint is known. On success, return true.
12695 * mem-break.h (add_breakpoint_condition): Document return.
12696 (add_breakpoint_commands): Add describing comment.
12697 * server.c (skip_to_semicolon): New function.
12698 (process_point_options): Use it.
12699
2eec7d5b
PA
127002014-04-09 Pedro Alves <palves@redhat.com>
12701
12702 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12703 to lwpid_of.
12704
fa96cb38
PA
127052014-02-27 Pedro Alves <palves@redhat.com>
12706
12707 PR 12702
12708 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12709 macros.
12710 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12711 output.
12712 (last_thread_of_process_p): Take a PID argument instead of a
12713 thread pointer.
12714 (linux_wait_for_lwp): Delete.
12715 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12716 functions.
12717 (linux_low_filter_event): New function, party factored out from
12718 linux_wait_for_event.
12719 (linux_wait_for_event): Rename to ...
12720 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12721 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12722 sigsuspend. Check for zombie leaders.
12723 (linux_wait_for_event): Reimplement as wrapper around
12724 linux_wait_for_event_filtered.
12725 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12726 a normal or signal exit is seen, it's the whole process exiting.
12727 (wait_for_sigstop): No longer a for_each_inferior callback.
12728 Rewrite on top of linux_wait_for_event_filtered.
12729 (stop_all_lwps): Call wait_for_sigstop directly.
12730 * server.c (resume, handle_target_event): Handle
12731 TARGET_WAITKIND_NO_RESUMED.
12732
d763de10
JB
127332014-02-26 Joel Brobecker <brobecker@adacore.com>
12734
12735 * win32-low.c (psapi_get_dll_name,
12736 * win32_CreateToolhelp32Snapshot): Delete.
12737 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12738 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12739 Delete.
12740 (handle_load_dll): Add function description.
12741 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12742
850a0f76
JB
127432014-02-26 Joel Brobecker <brobecker@adacore.com>
12744
12745 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12746 Add comment.
12747 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12748 base address when calling win32_add_one_solib.
12749 (handle_load_dll): Delete local variable load_addr.
12750 Remove 0x1000 offset applied to DLL base address when calling
12751 win32_add_one_solib.
12752 (handle_unload_dll): Add comment.
12753
f25b3fc3
JB
127542014-02-26 Joel Brobecker <brobecker@adacore.com>
12755
12756 * win32-low.c (win32_add_all_dlls): Renames
12757 win32_ensure_ntdll_loaded. Rewrite function documentation.
12758 Adjust implementation to always load all DLLs.
12759 Add 0x1000 offset to DLL base address when calling
12760 win32_add_one_solib.
12761 (child_initialization_done): New static global.
12762 (do_initial_child_stuff): Set child_initialization_done to
12763 zero during child initialization, and 1 after. Replace call
12764 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12765 Add comment.
12766 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12767 (handle_unload_dll): Add function documentation.
12768 (get_child_debug_event): Ignore load and unload DLL events
12769 during child initialization.
12770
d86d4aaf
DE
127712014-02-20 Doug Evans <dje@google.com>
12772
3bc32da3 12773 Remove global all_lwps.
d86d4aaf
DE
12774 * inferiors.h (ptid_of): Move here from linux-low.h.
12775 (pid_of, lwpid_of): Ditto.
12776 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12777 parameter is a struct thread_info * now.
12778 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12779 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12780 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12781 directly.
12782 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12783 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12784 * linux-arm-low.c (update_registers_callback): Update, "entry"
12785 parameter is a struct thread_info * now.
12786 Fetch lwpid from current_inferior directly.
12787 (arm_insert_point): Pass &all_threads to find_inferior instead of
12788 &all_lwps.
12789 (arm_remove_point): Ditto.
12790 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12791 (arm_prepare_to_resume): Fetch pid from thread.
12792 (arm_read_description): Fetch lwpid from current_inferior directly.
12793 * linux-low.c (all_lwps): Delete.
12794 (delete_lwp): Delete call to remove_inferior.
12795 (handle_extended_wait): Fetch lwpid from thread.
12796 (add_lwp): Don't set lwp->entry.id. Remove call to
12797 add_inferior_to_list.
12798 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12799 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12800 (kill_one_lwp_callback): Ditto.
12801 (linux_kill): Don't dereference NULL pointer.
12802 Fetch ptid,lwpid from thread.
12803 (get_detach_signal): Fetch ptid from thread.
12804 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12805 Simplify call to regcache_invalidate_thread.
12806 (delete_lwp_callback): Update, "entry" parameter is a
12807 struct thread_info * now. Fetch pid from thread.
12808 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12809 (status_pending_p_callback): Update, "entry" parameter is a
12810 struct thread_info * now. Fetch ptid from thread.
12811 (find_lwp_pid): Update, "entry" parameter is a
12812 struct thread_info * now.
12813 (linux_wait_for_lwp): Fetch pid from thread.
12814 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12815 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12816 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12817 (dequeue_one_deferred_signal): Ditto.
12818 (cancel_breakpoint): Fetch ptid from current_inferior.
12819 (linux_wait_for_event): Pass &all_threads to find_inferior,
12820 not &all_lwps. Fetch ptid, lwpid from thread.
12821 (count_events_callback): Update, "entry" parameter is a
12822 struct thread_info * now.
12823 (select_singlestep_lwp_callback): Ditto.
12824 (select_event_lwp_callback): Ditto.
12825 (cancel_breakpoints_callback): Ditto.
12826 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12827 not &all_lwps.
12828 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12829 (unsuspend_one_lwp): Update, "entry" parameter is a
12830 struct thread_info * now.
12831 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12832 not &all_lwps.
12833 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12834 Fetch lwpid from thread, not lwp.
12835 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12836 Pass &all_threads to find_inferior, not &all_lwps.
12837 (send_sigstop): Fetch lwpid from thread, not lwp.
12838 (send_sigstop_callback): Update, "entry" parameter is a
12839 struct thread_info * now.
12840 (suspend_and_send_sigstop_callback): Ditto.
12841 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12842 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12843 struct thread_info * now.
12844 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12845 from thread, lwp.
12846 (lwp_running): Update, "entry" parameter is a
12847 struct thread_info * now.
12848 (stop_all_lwps): Fetch ptid from thread.
12849 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12850 (linux_resume_one_lwp): Fetch lwpid from thread.
12851 (linux_set_resume_request): Update, "entry" parameter is a
12852 struct thread_info * now. Fetch pid, lwpid from thread.
12853 (resume_status_pending_p): Update, "entry" parameter is a
12854 struct thread_info * now.
12855 (need_step_over_p): Ditto. Fetch lwpid from thread.
12856 (start_step_over): Fetch lwpid from thread.
12857 (linux_resume_one_thread): Update, "entry" parameter is a
12858 struct thread_info * now. Fetch lwpid from thread.
12859 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12860 (proceed_one_lwp): Update, "entry" parameter is a
12861 struct thread_info * now. Fetch lwpid from thread.
12862 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12863 struct thread_info * now.
12864 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12865 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12866 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12867 directly.
12868 (regsets_store_inferior_registers): Ditto.
12869 (fetch_register, store_register): Ditto.
12870 (linux_read_memory, linux_write_memory): Ditto.
12871 (linux_request_interrupt): Ditto.
12872 (linux_read_auxv): Ditto.
12873 (linux_xfer_siginfo): Ditto.
12874 (linux_qxfer_spu): Ditto.
12875 (linux_qxfer_libraries_svr4): Ditto.
12876 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12877 moved to inferiors.h.
12878 (get_lwp): Delete.
12879 (get_thread_lwp): Update.
12880 (struct lwp_info): Delete member "entry". Simplify comment for
12881 member "thread".
12882 (all_lwps): Delete.
12883 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12884 current_inferior directly.
12885 (update_watch_registers_callback): Update, "entry" parameter is a
12886 struct thread_info * now. Fetch pid from thread.
12887 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12888 (mips_insert_point): Fetch lwpid from current_inferior.
12889 Pass &all_threads to find_inferior, not &all_lwps.
12890 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12891 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12892 directly.
12893 (mips_stopped_data_address): Ditto.
12894 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12895 directly.
12896 * linux-tile-low.c (tile_arch_setup): Ditto.
12897 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12898 (update_debug_registers_callback): Update, "entry" parameter is a
12899 struct thread_info * now. Fetch pid from thread.
12900 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12901 Pass &all_threads to find_inferior, not &all_lwps.
12902 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12903 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12904 Pass &all_threads to find_inferior, not &all_lwps.
12905 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12906 (i386_dr_low_get_status): Ditto.
12907 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12908 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12909 (x86_linux_read_description): Ditto.
12910 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12911
3b8361aa
DE
129122014-02-20 Doug Evans <dje@google.com>
12913
12914 * inferiors.c (get_first_inferior): Fix buglet.
12915
f7667f0d
DE
129162014-02-19 Doug Evans <dje@google.com>
12917
12918 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12919 * inferiors.c (add_thread): Change result type to struct thread_info *.
12920 All callers updated.
12921 (add_lwp): Call add_thread here instead of in callers.
12922 All callers updated.
12923 * linux-low.h (get_lwp_thread): Rewrite.
12924 (struct lwp_info): New member "thread".
12925
b3312d80
DE
129262014-02-19 Doug Evans <dje@google.com>
12927
12928 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12929 All callers updated.
12930
ecc6f45c
DE
129312014-02-19 Doug Evans <dje@google.com>
12932
12933 * inferiors.c (add_thread): Fix whitespace.
12934
649ebbca
DE
129352014-02-19 Doug Evans <dje@google.com>
12936
12937 * dll.c (clear_dlls): Replace accessing list implemention details
12938 with API function.
12939 * gdbthread.h (get_first_thread): Declare.
12940 * inferiors.c (for_each_inferior_with_data): New function.
12941 (get_first_thread): New function.
12942 (find_thread_ptid): Simplify.
12943 (get_first_inferior): New function.
12944 (clear_list): Delete.
12945 (one_inferior_p): New function.
12946 (clear_inferior_list): New function.
12947 (clear_inferiors): Update.
12948 * inferiors.h (for_each_inferior_with_data): Declare.
12949 (clear_inferior_list): Declare.
12950 (one_inferior_p): Declare.
12951 (get_first_inferior): Declare.
12952 * linux-low.c (linux_wait_for_event): Replace accessing list
12953 implemention details with API function.
12954 * server.c (target_running): Ditto.
12955 (accumulate_file_name_length): New function.
12956 (emit_dll_description): New function.
12957 (handle_qxfer_libraries): Replace accessing list implemention
12958 details with API function.
12959 (handle_qxfer_threads_worker): New function.
12960 (handle_qxfer_threads_proper): Replace accessing list implemention
12961 details with API function.
12962 (handle_query): Ditto.
12963 (visit_actioned_threads_callback_ftype): New typedef.
12964 (visit_actioned_threads_data): New struct.
12965 (visit_actioned_threads): Rewrite to be find_inferior callback.
12966 (resume): Call find_inferior.
12967 (handle_status): Replace accessing list implemention
12968 details with API function.
12969 (process_serial_event): Replace accessing list implemention details
12970 with API function.
12971 * target.c (set_desired_inferior): Replace accessing list implemention
12972 details with API function.
12973 * tracepoint.c (same_process_p): New function.
12974 (gdb_agent_about_to_close): Replace accessing list implemention
12975 details with API function.
12976 * win32-low.c (child_delete_thread): Replace accessing list
12977 implemention details with API function.
12978 (match_dll_by_basename): New function.
12979 (dll_is_loaded_by_basename): New function.
12980 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12981 details call to dll_is_loaded_by_basename.
12982
80894984
DE
129832014-02-19 Doug Evans <dje@google.com>
12984
12985 * dll.h (struct dll_info): Add comment.
12986 * gdbthread.h (struct thread_info): Add comment.
12987 (current_ptid): Simplify.
12988 * inferiors.c (add_process): Update.
12989 (remove_process): Update.
12990 * inferiors.h (struct process_info): Rename member "head" to "entry".
12991 * linux-low.c (delete_lwp): Update.
12992 (add_lwp): Update.
12993 (last_thread_of_process_p): Update.
12994 (kill_one_lwp_callback, linux_kill): Update.
12995 (status_pending_p_callback): Update.
12996 (wait_for_sigstop): Update. Simplify read of ptid.
12997 (start_step_over): Update.
12998 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12999 (get_lwp_thread): Update.
13000 (struct lwp_info): Rename member "head" to "entry".
13001 * regcache.h (inferior_list_entry): Delete.
13002 * server.c (kill_inferior_callback): Update.
13003 (detach_or_kill_inferior_callback): Update.
13004 (print_started_pid): Update.
13005 (print_attached_pid): Update.
13006 (process_serial_event): Simplify read of ptid.
13007 * thread-db.c (thread_db_create_event): Update.
13008 (thread_db_get_tls_address): Update.
13009 * win32-low.c (current_inferior_ptid): Simplify.
13010
46917d26
TT
130112014-02-19 Tom Tromey <tromey@redhat.com>
13012
13013 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13014 argument.
13015 (target_supports_btrace): Update.
13016
0759a81e
YQ
130172014-02-14 Yao Qi <yao@codesourcery.com>
13018
13019 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13020 (rsp-low-ipa.o): New target.
13021
a7191e8b
TT
130222014-02-12 Tom Tromey <tromey@redhat.com>
13023
13024 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13025 convert_ascii_to_int.
13026 * regcache.c (registers_to_string): Likewise.
13027 * remote-utils.c (decode_M_packet): Likewise.
13028 * server.c (process_serial_event): Likewise.
13029
ff0e980e
TT
130302014-02-12 Tom Tromey <tromey@redhat.com>
13031
13032 * server.c (handle_query, handle_v_run): Use hex2bin, not
13033 unhexify.
13034 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13035
e9371aff
TT
130362014-02-12 Tom Tromey <tromey@redhat.com>
13037
13038 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13039 convert_int_to_ascii.
13040 * regcache.c (registers_to_string, collect_register_as_string):
13041 Likewise.
13042 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13043 Likewise.
13044 * server.c (process_serial_event): Likewise.
13045 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13046 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13047
971dc0b8
TT
130482014-02-12 Tom Tromey <tromey@redhat.com>
13049
13050 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13051 bin2hex, not hexify.
13052 * tracepoint.c (cmd_qtstatus): Likewise.
13053
0a822afb
TT
130542014-02-12 Tom Tromey <tromey@redhat.com>
13055
13056 * remote-utils.c (monitor_output): Pass explicit length to
13057 hexify.
13058
9c3d6531
TT
130592014-02-12 Tom Tromey <tromey@redhat.com>
13060
13061 * tracepoint.c: Include rsp-low.h.
13062 * server.c: Include rsp-low.h.
13063 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13064 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13065 declare.
13066 * remote-utils.c: Include rsp-low.h.
13067 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13068 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13069 (convert_int_to_ascii, convert_ascii_to_int): Move to
13070 common/rsp-low.c.
13071 * regcache.c: Include rsp-low.h.
13072 * ax.c: Include rsp-low.h.
13073 * Makefile.in (SFILES): Add common/rsp-low.c.
13074 (OBS): Add rsp-low.o.
13075 (rsp-low.o): New target.
13076
01fd3ea5
TT
130772014-02-12 Tom Tromey <tromey@redhat.com>
13078
13079 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13080 Include print-utils.h.
13081 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13082 (plongest, thirty_two, phex_nz): Remove.
13083 * Makefile.in (SFILES): Add common/print-utils.c.
13084 (OBS): Add print-utils.o.
13085 (print-utils-ipa.o): New target.
13086 (print-utils.o): New target.
13087 (IPA_OBJS): Add print-utils-ipa.o.
13088
e99dc820
TT
130892014-02-06 Tom Tromey <tromey@redhat.com>
13090
13091 * Makefile.in (SFILES): Fix indentation.
13092
ee1e2d4f
DE
130932014-02-05 Doug Evans <dje@google.com>
13094
13095 * linux-low.c (linux_wait_for_event): Improve comment.
13096 (linux_wait_1): Keep current_inferior in sync with event_child.
13097
f5a02773
DE
130982014-01-22 Doug Evans <dje@google.com>
13099
13100 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13101
87ce2a04
DE
131022014-01-22 Doug Evans <dje@google.com>
13103
13104 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13105 * configure: Regenerate.
13106 * config.in: Regenerate.
13107 * Makefile.in (SFILES): Add debug.c.
13108 (OBS): Add debug.o.
13109 * debug.c: New file.
13110 * debug.h: New file.
13111 * linux-aarch64-low.c (*): Update all debugging printfs to use
13112 debug_printf instead of fprintf.
13113 * linux-arm-low.c (*): Ditto.
13114 * linux-cris-low.c (*): Ditto.
13115 * linux-crisv32-low.c (*): Ditto.
13116 * linux-m32r-low.c (*): Ditto.
13117 * linux-sparc-low.c (*): Ditto.
13118 * linux-x86.c (*): Ditto.
13119 * linux-low.c (*): Ditto.
13120 (linux_wait_1): Add calls to debug_enter, debug_exit.
13121 (linux_wait): Remove redundant debugging printf.
13122 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13123 (linux_resume, unstop_all_lwps): Ditto.
13124 * mem-break.c (*): Update all debugging printfs to use
13125 debug_printf instead of fprintf.
13126 * remote-utils.c (*): Ditto.
13127 * thread-db.c (*): Ditto.
13128 * server.c #include <ctype.h>, "gdb_vecs.h".
13129 (debug_threads): Moved to debug.c.
13130 (*): Update all debugging printfs to use debug_printf instead of
13131 fprintf.
13132 (start_inferior): Replace call to fflush with call to debug_flush.
13133 (monitor_show_help): Mention set debug-format.
13134 (parse_debug_format_options): New function.
13135 (handle_monitor_command): Handle "monitor set debug-format".
13136 (gdbserver_usage): Mention --debug-format.
13137 (main): Parse --debug-format.
13138 * server.h (debug_threads): Declaration moved to debug.h.
13139 #include "debug.h".
13140 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13141 trace_debug_1 that uses debug_printf.
13142 (tracepoint_look_up_symbols): Update all debugging printfs to use
13143 debug_printf instead of fprintf.
13144
e671835b
BS
131452014-01-20 Baruch Siach <baruch@tkos.co.il>
13146
13147 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13148 sys/ptrace.h.
13149
b5737fa9
PA
131502014-01-17 Pedro Alves <palves@redhat.com>
13151
ea38d2a9 13152 PR build/16445
c7faa97a
PA
13153 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13154 defined after including gdb_proc_service.h.
b5737fa9 13155
40ed484e
DE
131562014-01-16 Doug Evans <dje@google.com>
13157
13158 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13159 (match_dll): Use it.
13160
969c39fb
MM
131612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13162
13163 * target.h (target_ops) <read_btrace>: Change parameters and
13164 return type to allow error reporting.
13165 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13166 trace reading errors on.
13167 * linux-low.c (linux_low_read_btrace): Pass trace reading
13168 errors on.
13169 (linux_low_disable_btrace): New.
13170
ab7f45ba
DE
131712014-01-15 Doug Evans <dje@google.com>
13172
13173 * inferiors.c (thread_id_to_gdb_id): Delete.
13174 * inferiors.h (thread_id_to_gdb_id): Delete.
13175
66af0f44
EZ
131762014-01-13 Eli Zaretskii <eliz@gnu.org>
13177
13178 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13179 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13180 versions.
13181
9939e131
PA
131822014-01-08 Pedro Alves <palves@redhat.com>
13183
13184 * server.c (handle_status): Don't discard previous queued stop
13185 replies or thread's pending status here.
13186 (main) <disconnection>: Do it here instead.
13187
b7ea362b
PA
131882014-01-08 Pedro Alves <palves@redhat.com>
13189
13190 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13191 * server.c (visit_actioned_threads, handle_pending_status): New
13192 function.
13193 (handle_v_cont): Factor out parts to ...
13194 (resume): ... this new function. If in all-stop, and a thread
13195 being resumed has a pending status, report it without actually
13196 resuming.
13197 (myresume): Adjust to use the new 'resume' function.
13198 (clear_pending_status_callback, set_pending_status_callback)
13199 (find_status_pending_thread_callback): New functions.
13200 (handle_status): Handle the case of multiple threads having
13201 interesting statuses to report. Report threads' real last signal
13202 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13203 with an interesting thread to report the status for, instead of
13204 always reporting the status of the first thread.
13205
28498c42
JB
132062014-01-01 Joel Brobecker <brobecker@adacore.com>
13207
13208 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13209 * gdbreplay.c (gdbreplay_version): Likewise.
13210
f45c82da
YZ
132112013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13212
13213 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13214 iov.iov_len with the real length in use.
13215
379a5e2d
JB
132162013-12-13 Joel Brobecker <brobecker@adacore.com>
13217
13218 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13219 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13220 for all targets that use win32-low.c.
13221 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13222 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13223
4210d83e
PA
132242013-12-13 Pedro Alves <palves@redhat.com>
13225
13226 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13227 if equal to TARGET_WAITKIND_LOADED.
13228 * win32-low.c (cached_status): New static global.
13229 (win32_wait): Add declaration.
13230 (do_initial_child_stuff): Flush all initial pending debug events
13231 up to the initial breakpoint.
13232 (win32_wait): If CACHED_STATUS was set, return that instead
13233 of doing a real wait. Remove the code resuming the execution
13234 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13235 during the initial phase. Also remove the code changing
13236 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13237 TARGET_WAITKIND_STOPPED.
13238
e7f0d979
YQ
132392013-12-11 Yao Qi <yao@codesourcery.com>
13240
13241 * notif.c (handle_notif_ack): Return 0 if no notification
13242 matches.
13243
ebcf782c
DE
132442013-11-20 Doug Evans <dje@google.com>
13245
13246 * linux-low.c (linux_set_resume_request): Fix comment.
13247
20ad9378
DE
132482013-11-20 Doug Evans <dje@google.com>
13249
13250 * linux-low.c (resume_status_pending_p): Tweak comment.
13251
a196ebeb
WT
132522013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13253
13254 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13255 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13256 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13257 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13258 (srv_amd64_regobj): Add amd64-mpx.o.
13259 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13260 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13261 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13262 * i387-fp.c (num_pl_bnd_register) Added constant.
13263 (num_pl_bnd_cfg_registers) Added constant.
13264 (struct i387_xsave) Added reserved area and MPX fields.
13265 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13266 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13267 function.
13268 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13269 (init_registers_amd64_mpx_linux): Declare new function.
13270 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13271 (x86_64_regmap): Add MPX registers.
13272 (x86_linux_read_description): Add MPX case.
13273 (initialize_low_arch): Initialize MPX targets.
13274
0080a2f6
TT
132752013-11-18 Tom Tromey <tromey@redhat.com>
13276
13277 * configure: Rebuild.
13278 * configure.ac: Don't check for stdlib.h.
13279 * gdbreplay.c: Unconditionally include stdlib.h.
13280
2978b111
TT
132812013-11-18 Tom Tromey <tromey@redhat.com>
13282
13283 * config.in: Rebuild.
13284 * configure: Rebuild.
13285 * configure.ac: Don't use AC_HEADER_DIRENT.
13286
a3d08894
TT
132872013-11-18 Tom Tromey <tromey@redhat.com>
13288
13289 * server.h: Don't check HAVE_STRING_H.
13290 * gdbreplay.c: Don't check HAVE_STRING_H.
13291 * configure: Rebuild.
13292
0a5dd17d
TT
132932013-11-18 Tom Tromey <tromey@redhat.com>
13294
13295 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13296 LIBGNU.
13297
1bd2f0ba
TT
132982013-11-08 Tom Tromey <tromey@redhat.com>
13299
13300 * configure, config.in: Rebuild.
13301 * configure.ac: Remove unused configury.
13302
3266f10b
TT
133032013-11-08 Tom Tromey <tromey@redhat.com>
13304
13305 * acinclude.m4: Include common.m4, codeset.m4.
13306 * configure, config.in: Rebuild.
13307 * configure.ac: Use GDB_AC_COMMON.
13308
6682d959
AA
133092013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13310
13311 * linux-s390-low.c (HWCAP_S390_TE): New define.
13312 (s390_arch_setup): Consider the TE field in the HWCAP for
13313 determining 'have_regset_tdb'.
13314
fd0a4d76
SDJ
133152013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13316
13317 PR gdb/16014
13318 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13319 call to sizeof.
13320
1a3d890b
PA
133212013-10-02 Pedro Alves <palves@redhat.com>
13322
13323 * server.c (process_serial_event): Don't output "GDBserver
13324 exiting" if GDB is connected through stdio.
13325 * target.c (mywait): Likewise, be silent if GDB is connected
13326 through stdio.
13327
97ad4581
JB
133282013-10-01 Joel Brobecker <brobecker@adacore.com>
13329
13330 * lynx-low.c (lynx_add_threads_after_attach): New function.
13331 (lynx_attach): Remove call to add_thread. Add call to
13332 lynx_add_threads_after_attach instead.
13333
5b4e221c
MF
133342013-09-28 Mike Frysinger <vapier@gentoo.org>
13335
13336 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13337 * config.in, configure: Regenerated.
13338
ee47b2f8
YQ
133392013-09-18 Yao Qi <yao@codesourcery.com>
13340
13341 PR server/15959
13342 * server.c (start_inferior): Clear 'resume_info'.
13343
d6707650 133442013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13345
d6707650
JW
13346 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13347 for each register.
13348
9243dd0e 133492013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13350
9243dd0e
JW
13351 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13352 linux-tile-low.o to srv_tgtobj.
13353
c623a6ef
WN
133542013-09-16 Will Newton <will.newton@linaro.org>
13355
13356 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13357 out regs.
13358
fb71d39e
PA
133592013-09-06 Pedro Alves <palves@redhat.com>
13360
13361 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13362 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13363 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13364 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13365 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13366 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13367
8e7e9910
PA
133682013-09-06 Pedro Alves <palves@redhat.com>
13369
13370 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13371 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13372
7c3a12ca
PA
133732013-09-06 Pedro Alves <palves@redhat.com>
13374
13375 * linux-amd64-ipa.c: Include tracepoint.h.
13376 * linux-i386-ipa.c: Include tracepoint.h.
13377
8eb3d7b6
RW
133782013-09-06 Ricard Wanderlof <ricardw@axis.com>
13379
13380 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13381 (ps_get_thread_area): New function.
13382
eddddb9d
RW
133832013-09-06 Ricard Wanderlof <ricardw@axis.com>
13384
13385 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13386 (initialize_low_arch): Call init_registers_crisv32 rather than
13387 init_register_crisv32.
13388
533b0600
PA
133892013-09-05 Pedro Alves <palves@redhat.com>
13390
13391 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13392 to ...
13393 * hostio.h: ... this new file.
13394 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13395 win32-low.c: Include hostio.h.
13396
0ce3d3b5
PA
133972013-09-05 Pedro Alves <palves@redhat.com>
13398
13399 * server.h (gdb_client_data, handler_func, callback_handler_func)
13400 (delete_file_handler, add_file_handler, append_callback_event)
13401 (delete_callback_event, start_event_loop, initialize_event_loop):
13402 Move to event-loop.h and include it.
13403 * event-loop.h: New file.
13404
799cdc37
PA
134052013-09-05 Pedro Alves <palves@redhat.com>
13406
13407 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13408 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13409 (loaded_dll, unloaded_dll): Move to ...
13410 * dll.h: ... this new file.
13411 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13412
6a6bbd9d
PA
134132013-09-05 Pedro Alves <palves@redhat.com>
13414
13415 * server.h (current_process, get_thread_process, all_processes)
13416 (add_inferior_to_list, for_each_inferior, current_inferior)
13417 (remove_inferior, add_process, remove_process, find_process_pid)
13418 (have_started_inferiors_p, have_attached_inferiors_p)
13419 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13420 (clear_inferiors, find_inferior, find_inferior_id)
13421 (inferior_target_data, set_inferior_target_data)
13422 (inferior_regcache_data, set_inferior_regcache_data): Move to
13423 inferiors.h, and include it.
13424 * inferiors.h: New file.
13425
f699aaba
PA
134262013-09-05 Pedro Alves <palves@redhat.com>
13427
13428 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13429 Move ...
72f4393d 13430 * ax.h: ... here.
f699aaba 13431
c144c7a0
PA
134322013-09-05 Pedro Alves <palves@redhat.com>
13433
13434 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13435 tracepoint.h.
13436 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13437 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13438 (handle_tracepoint_general_set, handle_tracepoint_query)
13439 (tracepoint_finished_step, tracepoint_was_hit)
13440 (release_while_stepping_state_list, current_traceframe)
13441 (in_readonly_region, traceframe_read_mem)
13442 (fetch_traceframe_registers, traceframe_read_sdata)
13443 (traceframe_read_info, struct fast_tpoint_collect_status)
13444 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13445 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13446 (supply_fast_tracepoint_registers)
13447 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13448 (ipa_tdesc, claim_trampoline_space)
13449 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13450 (agent_mem_read, agent_get_trace_state_variable_value)
13451 (agent_set_trace_state_variable_value, agent_tsv_read)
13452 (agent_mem_read_string, get_raw_reg_func_addr)
13453 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13454 * tracepoint.h: ... this new file.
13455
ff42e6ab
PA
134562013-09-05 Pedro Alves <palves@redhat.com>
13457
13458 * server.h (perror_with_name, error, fatal, warning, paddress)
13459 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13460 include it.
13461 * utils.h: New file.
13462
541af0f4
PA
134632013-09-05 Pedro Alves <palves@redhat.com>
13464
13465 * server.h (remote_debug, noack_mode, transport_is_reliable)
13466 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13467 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13468 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13469 (write_enn, initialize_async_io, enable_async_io)
13470 (disable_async_io, check_remote_input_interrupt_request)
13471 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13472 (dead_thread_notify, prepare_resume_reply)
13473 (decode_address_to_semicolon, decode_address, decode_m_packet)
13474 (decode_M_packet, decode_X_packet, decode_xfer_write)
13475 (decode_search_memory_packet, unhexify, hexify)
13476 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13477 (look_up_one_symbol, relocate_instruction)
13478 (monitor_output): Move to remote-utils.h, and include it.
13479 * remote-utils.h: New file.
13480
eebdf26b
PA
134812013-09-05 Pedro Alves <palves@redhat.com>
13482
13483 * server.h (_): Delete.
13484
3aafd2ff
PA
134852013-09-02 Pedro Alves <palves@redhat.com>
13486
13487 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13488 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13489 allocated.
13490 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13491
cee83bcb
PM
134922013-09-02 Pierre Muller <muller@sourceware.org>
13493
13494 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13495 or WriteProcessMemory complete successfully and handle
13496 ERROR_PARTIAL_COPY error.
13497
9a13b2fa
PA
134982013-09-02 Pedro Alves <palves@redhat.com>
13499
13500 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13501 error instead of EIO.
13502
602e3198
JK
135032013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13504
13505 PR server/15604
13506 * linux-low.c: Include filestuff.h.
13507 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13508 * lynx-low.c: Include filestuff.h.
13509 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13510 * server.c: Include filestuff.h.
13511 (main): Call notice_open_fds.
13512 * spu-low.c: Include filestuff.h.
13513 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13514
96d7229d
LM
135152013-08-22 Luis Machado <lgustavo@codesourcery.com>
13516
13517 * Makefile.in: Explain why ../target and ../nat are not
13518 listed as include file search paths.
13519 (linux-waitpid.o): New object file rule.
13520 * configure.srv (srv_native_linux_obj): New variable.
13521 Replace all occurrences of linux native object files with
13522 $srv_native_linux_obj.
13523 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13524 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13525 (linux_enable_event_reporting): Remove declaration.
13526 (my_waitpid): Moved to common/linux-waitpid.c.
13527 (linux_wait_for_event): Pass ptid when calling
13528 linux_enable_event_reporting.
13529 (linux_supports_tracefork_flag): Remove.
13530 (linux_enable_event_reporting): Likewise.
13531 (linux_tracefork_grandchild): Remove.
13532 (STACK_SIZE): Moved to common/linux-ptrace.c.
13533 (linux_tracefork_child): Remove.
13534 (linux_test_for_tracefork): Remove.
13535 (linux_look_up_symbols): Call linux_supports_traceclone.
13536 (initialize_low): Remove call to linux_test_for_tracefork.
13537 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13538 common/linux-ptrace.h.
13539 (PTRACE_TYPE_ARG4): Likewise.
13540 Include linux-ptrace.h.
13541
32940073
PA
135422013-08-21 Pedro Alves <palves@redhat.com>
13543
13544 * config.in: Renegerate.
13545
33b60d58 135462013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13547
33b60d58
LM
13548 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13549 (SFILES): Remove $(srcdir)/common/target-common.c and
13550 add $(srcdir)/target/waitstatus.c.
13551 (OBS): Remove target-common.o and add waitstatus.o.
13552 (server_h): Remove $(srcdir)/../common/target-common.h and
13553 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13554 and $(srcdir)/../target/waitstatus.h.
13555 (target-common.o): Remove.
13556 (waitstatus.o): New target object file.
13557 * target.h: Do not include target-common.h and
13558 include target/resume.h, target/wait.h and
13559 target/waitstatus.h.
13560
b8e1b30e
LM
135612013-08-13 Luis Machado <lgustavo@codesourcery.com>
13562
13563 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13564 to PTRACE_TYPE_ARG3.
13565 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13566 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13567 PTRACE_TYPE_ARG4.
13568 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13569 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13570
7a60ad40
YQ
135712013-07-27 Jie Zhang <jie@codesourcery.com>
13572 Daniel Jacobowitz <dan@codesourcery.com>
13573 Yao Qi <yao@codesourcery.com>
13574
13575 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13576 (mips-linux-watch.o): New rule.
13577 (mips_linux_watch_h): New variable.
13578 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13579 srv_tgtobj.
13580 * linux-mips-low.c: Include mips-linux-watch.h.
13581 (struct arch_process_info, struct arch_lwp_info): New.
13582 (update_watch_registers_callback): New function.
13583 (mips_linux_new_process, mips_linux_new_thread) New functions.
13584 (mips_linux_prepare_to_resume, mips_insert_point): New
13585 functions.
13586 (mips_remove_point, mips_stopped_by_watchpoint): New
13587 functions.
13588 (rsp_bp_type_to_target_hw_bp_type): New function.
13589 (mips_stopped_data_address): New function.
13590 (the_low_target): Add watchpoint support functions.
13591
de6f69ad
YQ
135922013-07-27 Yao Qi <yao@codesourcery.com>
13593
13594 * i386-low.c: Include break-common.h.
13595 (enum target_hw_bp_type): Remove.
13596
3360c0bf
LM
135972013-07-24 Luis Machado <lgustavo@codesourcery.com>
13598
13599 * Makefile.in (SFILES): /common/target-common.c.
13600 (OBS): Add target-common.o.
13601 (server_h): Add $(srcdir)/../common/target-common.h.
13602 (target-common.o): New target.
13603 * server.c (queue_stop_reply_callback): Free
13604 status string after use.
13605 * target.c (target_waitstatus_to_string): Remove.
13606 * target.h: Include target-common.h.
13607 (resume_kind): Likewise.
13608 (target_waitkind): Likewise.
13609 (target_waitstatus): Likewise.
13610 (TARGET_WNOHANG): Likewise.
13611
bd885420
YQ
136122013-07-04 Yao Qi <yao@codesourcery.com>
13613
13614 * Makefile.in (host_alias): Use @host_noncanonical@.
13615 (target_alias): Use @target_noncanonical@.
13616 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13617 ACX_NONCANONICAL_HOST.
13618 * configure: Regenerated.
13619
13620 Revert:
13621 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13622
13623 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13624 * configure: Rebuild.
13625 * Makefile.in (version_host, version_target): Get from configure.
13626 (version.c): Use $(version_host) and $(version_target).
13627
17ef446e
PA
136282013-07-03 Pedro Alves <palves@redhat.com>
13629
13630 * Makefile.in (config.status): Depend on development.sh.
13631 * acinclude.m4: Include libmcheck.m4.
13632 * configure: Regenerate.
13633
7a9a7487
MG
136342013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13635
13636 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13637 attribute inside the parentheses.
13638 (winapi_DebugSetProcessKillOnExit): Ditto.
13639 (winapi_DebugBreakProcess): Ditto.
13640 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13641
49b64de6
MG
136422013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13643
13644 * notif.h (notif_event): Add a dummy member to avoid compiler
13645 errors.
13646
d5749ee7
PA
136472013-07-01 Pedro Alves <palves@redhat.com>
13648
13649 * hostio.c (HOSTIO_PATH_MAX): Define.
13650 (require_filename, handle_open, handle_unlink, handle_readlink):
13651 Use it.
13652
d8d2a3ee
PA
136532013-07-01 Pedro Alves <palves@redhat.com>
13654
13655 * server.h: Include "pathmax.h".
13656 * linux-low.c: Don't include sys/param.h.
13657 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13658 MAXPATHLEN.
13659 * win32-low.c: Don't include sys/param.h.
13660 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13661
bc7dea8d
PA
136622013-07-01 Pedro Alves <palves@redhat.com>
13663
13664 * event-loop.c: Don't check HAVE_UNISTD_H before including
13665 <unistd.h>.
13666 * gdbreplay.c: Likewise.
13667 * remote-utils.c: Likewise.
13668 * server.c: Likewise.
13669 * configure.ac: Don't check for unistd.h.
13670 * configure: Regenerate.
13671
d6c2da54
TT
136722013-06-28 Tom Tromey <tromey@redhat.com>
13673
13674 * Makefile.in (version.c): Use version.in, not
13675 common/version.in.
13676
257b6bec
MG
136772013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13678
13679 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13680 * configure: Rebuild.
13681 * Makefile.in (version_host, version_target): Get from configure.
13682 (version.c): Use $(version_host) and $(version_target).
13683
86ebe149
DK
136842013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13685
13686 Fix trace-status to output user name without trailing colon.
13687 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13688
f30aa5af
DK
136892013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13690
13691 Fix trace-status to output proper start-time and stop-time.
13692 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13693 output start time and stop time in hex as gdb expects.
13694
28a93511
YQ
136952013-06-26 Pedro Alves <pedro@codesourcery.com>
13696
13697 * tracepoint.c (build_traceframe_info_xml): Output trace state
13698 variables present in the trace buffer.
13699
01208463
TT
137002013-06-24 Tom Tromey <tromey@redhat.com>
13701
13702 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13703 create-version.sh.
13704 (version.o): Remove.
13705 * gdbreplay.c: Include version.h.
13706 (version, host_name): Don't declare.
13707 * server.h: Include version.h.
13708 (version, host_name): Don't declare.
13709
760256f9
PA
137102013-06-12 Pedro Alves <palves@redhat.com>
13711
13712 * linux-x86-low.c (linux_is_elf64): Delete global.
13713 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13714 with local linux_pid_exe_is_elf_64_file use.
13715
030031ee
PA
137162013-06-11 Pedro Alves <palves@redhat.com>
13717
13718 * linux-low.c (regset_disabled, disable_regset): New functions.
13719 (regsets_fetch_inferior_registers)
13720 (regsets_store_inferior_registers): Use them.
13721 (initialize_regsets_info); Don't allocate the disabled_regsets
13722 array here.
13723 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13724 comment.
13725
5da6eb0a
PA
137262013-06-11 Pedro Alves <palves@redhat.com>
13727
13728 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13729 xmalloc.
13730
7e5aaa09
PA
137312013-06-11 Pedro Alves <palves@redhat.com>
13732
13733 * linux-x86-low.c (initialize_low_arch): Call
13734 init_registers_x32_avx_linux.
13735
d878444c
JK
137362013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13737
13738 Fix compatibility with Android Bionic.
13739 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13740 it is not empty.
13741
3aee8918
PA
137422013-06-07 Pedro Alves <palves@redhat.com>
13743
5f2b57b5 13744 PR server/14823
3aee8918
PA
13745 * Makefile.in (OBS): Add tdesc.o.
13746 (IPA_OBJS): Add tdesc-ipa.o.
13747 (tdesc-ipa.o): New rule.
13748 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13749 interface.
13750 * linux-low.c (new_inferior): Delete.
13751 (disabled_regsets, num_regsets): Delete.
13752 (linux_add_process): Adjust to set the new per-process
13753 new_inferior flag.
13754 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13755 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13756 was a stop. When calling arch_setup, switch the current inferior
13757 to the thread that got an event.
13758 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13759 (regsets_fetch_inferior_registers)
13760 (regsets_store_inferior_registers): New regsets_info parameter.
13761 Adjust to use it.
13762 (linux_register_in_regsets): New regs_info parameter. Adjust to
13763 use it.
13764 (register_addr, fetch_register, store_register): New usrregs_info
13765 parameter. Adjust to use it.
13766 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13767 parameter regs_info. Adjust to use it.
13768 (linux_fetch_registers): Get the current inferior's regs_info, and
13769 adjust to use it.
13770 (linux_store_registers): Ditto.
13771 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13772 (initialize_low): Don't initialize the target_regsets here. Call
13773 initialize_low_arch.
13774 * linux-low.h (target_regsets): Delete declaration.
13775 (struct regsets_info): New.
13776 (struct usrregs_info): New.
13777 (struct regs_info): New.
13778 (struct process_info_private) <new_inferior>: New field.
13779 (struct linux_target_ops): Delete the num_regs, regmap, and
13780 regset_bitmap fields. New field regs_info.
13781 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13782 * i387-fp.c (num_xmm_registers): Delete.
13783 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13784 calls to new interface.
13785 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13786 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13787 Infer the number of xmm registers from the regcache's target
13788 description.
13789 * i387-fp.h (num_xmm_registers): Delete.
13790 * inferiors.c (add_thread): Don't install the thread's regcache
13791 here.
13792 * proc-service.c (gregset_info): Fetch the current inferior's
13793 regs_info. Adjust to use it.
13794 * regcache.c: Include tdesc.h.
13795 (register_bytes, reg_defs, num_registers)
13796 (gdbserver_expedite_regs): Delete.
13797 (get_thread_regcache): If the thread doesn't have a regcache yet,
13798 create one, instead of aborting gdbserver.
13799 (regcache_invalidate_one): Rename to ...
13800 (regcache_invalidate_thread): ... this.
13801 (regcache_invalidate_one): New.
13802 (regcache_invalidate): Only invalidate registers of the current
13803 process.
13804 (init_register_cache): Add target_desc parameter, and use it.
13805 (new_register_cache): Ditto. Assert the target description has a
13806 non zero registers_size.
13807 (regcache_cpy): Add assertions. Adjust.
13808 (realloc_register_cache, set_register_cache): Delete.
13809 (registers_to_string, registers_from_string): Adjust.
13810 (find_register_by_name, find_regno, find_register_by_number)
13811 (register_cache_size): Add target_desc parameter, and use it.
13812 (free_register_cache_thread, free_register_cache_thread_one)
13813 (regcache_release, register_cache_size): New.
13814 (register_size): Add target_desc parameter, and use it.
13815 (register_data, supply_register, supply_register_zeroed)
13816 (supply_regblock, supply_register_by_name, collect_register)
13817 (collect_register_as_string, collect_register_by_name): Adjust.
13818 * regcache.h (struct target_desc): Forward declare.
13819 (struct regcache) <tdesc>: New field.
13820 (init_register_cache, new_register_cache): Add target_desc
13821 parameter.
13822 (regcache_invalidate_thread): Declare.
13823 (regcache_invalidate_one): Delete declaration.
13824 (regcache_release): Declare.
13825 (find_register_by_number, register_cache_size, register_size)
13826 (find_regno): Add target_desc parameter.
13827 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13828 declarations.
13829 * remote-utils.c: Include tdesc.h.
13830 (outreg, prepare_resume_reply): Adjust.
13831 * server.c: Include tdesc.h.
13832 (gdbserver_xmltarget): Delete declaration.
13833 (get_features_xml, process_serial_event): Adjust.
13834 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13835 declare.
13836 (struct process_info) <tdesc>: New field.
13837 (ipa_tdesc): Declare.
13838 * tdesc.c: New file.
13839 * tdesc.h: New file.
13840 * tracepoint.c: Include tdesc.h.
13841 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13842 (get_context_regcache): Adjust to pass ipa_tdesc down.
13843 (do_action_at_tracepoint): Adjust to get the register cache size
13844 from the context regcache's description.
13845 (traceframe_walk_blocks): Adjust to get the register cache size
13846 from the current trace frame's description.
13847 (traceframe_get_pc): Adjust to get current trace frame's
13848 description and pass it down.
13849 (gdb_collect): Adjust to get the register cache size from the
13850 IPA's description.
13851 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13852 (gdbserver_xmltarget): Delete.
13853 (initialize_low_tracepoint): Set the ipa's target description.
13854 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13855 (initialize_low_tracepoint): Set the ipa's target description.
13856 * linux-x86-low.c: Include tdesc.h.
13857 [__x86_64__] (is_64bit_tdesc): New.
13858 (ps_get_thread_area, x86_get_thread_area): Use it.
13859 (i386_cannot_store_register): Rename to ...
13860 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13861 (i386_cannot_fetch_register): Rename to ...
13862 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13863 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13864 to new interface.
13865 (target_regsets): Rename to ...
13866 (x86_regsets): ... this.
13867 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13868 interface.
13869 (x86_siginfo_fixup): Use is_64bit_tdesc.
13870 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13871 (tdesc_x32_avx_linux, tdesc_x32_linux)
13872 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13873 Declare.
13874 (x86_linux_update_xmltarget): Delete.
13875 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13876 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13877 (AMD64_LINUX_USER64_CS): New.
13878 (x86_linux_read_description): New, based on
13879 x86_linux_update_xmltarget.
13880 (same_process_callback): New.
13881 (x86_arch_setup_process_callback): New.
13882 (x86_linux_update_xmltarget): New.
13883 (x86_regsets_info): New.
13884 (amd64_linux_regs_info): New.
13885 (i386_linux_usrregs_info): New.
13886 (i386_linux_regs_info): New.
13887 (x86_linux_regs_info): New.
13888 (x86_arch_setup): Reimplement.
13889 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13890 (x86_emit_ops): Ditto.
13891 (the_low_target): Adjust. Install x86_linux_regs_info,
13892 x86_cannot_fetch_register, and x86_cannot_store_register.
13893 (initialize_low_arch): New.
13894 * linux-ia64-low.c (tdesc_ia64): Declare.
13895 (ia64_fetch_register): Adjust.
13896 (ia64_usrregs_info, regs_info): New globals.
13897 (ia64_regs_info): New function.
13898 (the_low_target): Adjust.
13899 (initialize_low_arch): New function.
13900 * linux-sparc-low.c (tdesc_sparc64): Declare.
13901 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13902 Adjust.
13903 (sparc_arch_setup): New function.
13904 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13905 (the_low_target): Adjust.
13906 (initialize_low_arch): New function.
13907 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13908 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13909 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13910 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13911 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13912 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13913 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13914 (tdesc_powerpc_isa205_vsx64l): Declare.
13915 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13916 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13917 (ppc_set_pc, ppc_get_hwcap): Adjust.
13918 (ppc_usrregs_info): Forward declare.
13919 (!__powerpc64__) ppc_regmap_adjusted: New global.
13920 (ppc_arch_setup): Adjust to the current process'es target
13921 description.
13922 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13923 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13924 (ppc_store_evrregset): Adjust.
13925 (target_regsets): Rename to ...
13926 (ppc_regsets): ... this, and make static.
13927 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13928 (ppc_regs_info): New function.
13929 (the_low_target): Adjust.
13930 (initialize_low_arch): New function.
13931 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13932 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13933 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13934 (tdesc_s390x_linux64v2): Declare.
13935 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13936 (s390_fill_gregset, s390_store_last_break): Adjust.
13937 (target_regsets): Rename to ...
13938 (s390_regsets): ... this, and make static.
13939 (s390_get_pc, s390_set_pc): Adjust.
13940 (s390_get_hwcap): New target_desc parameter, and use it.
13941 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13942 (s390_arch_setup): Adjust to set the current process'es target
13943 description. Don't adjust the regmap.
13944 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13945 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13946 (regs_info_3264): New globals.
13947 (s390_regs_info): New function.
13948 (the_low_target): Adjust.
13949 (initialize_low_arch): New function.
13950 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13951 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13952 [__mips64] (init_registers_mips_linux)
13953 (init_registers_mips_dsp_linux): Delete defines.
13954 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13955 (have_dsp): New global.
13956 (mips_read_description): New, based on mips_arch_setup.
13957 (mips_arch_setup): Reimplement.
13958 (get_usrregs_info): New function.
13959 (mips_cannot_fetch_register, mips_cannot_store_register)
13960 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13961 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13962 (target_regsets): Rename to ...
13963 (mips_regsets): ... this, and make static.
13964 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13965 (dsp_regs_info, regs_info): New globals.
13966 (mips_regs_info): New function.
13967 (the_low_target): Adjust.
13968 (initialize_low_arch): New function.
13969 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13970 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13971 Declare.
13972 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13973 (arm_read_description): New, with bits factored from
13974 arm_arch_setup.
13975 (arm_arch_setup): Reimplement.
13976 (target_regsets): Rename to ...
13977 (arm_regsets): ... this, and make static.
13978 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13979 (arm_regs_info): New function.
13980 (the_low_target): Adjust.
13981 (initialize_low_arch): New function.
13982 * linux-m68k-low.c (tdesc_m68k): Declare.
13983 (target_regsets): Rename to ...
13984 (m68k_regsets): ... this, and make static.
13985 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13986 (m68k_regs_info): New function.
13987 (m68k_arch_setup): New function.
13988 (the_low_target): Adjust.
13989 (initialize_low_arch): New function.
13990 * linux-sh-low.c (tdesc_sharch): Declare.
13991 (target_regsets): Rename to ...
13992 (sh_regsets): ... this, and make static.
13993 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13994 (sh_regs_info, sh_arch_setup): New functions.
13995 (the_low_target): Adjust.
13996 (initialize_low_arch): New function.
13997 * linux-bfin-low.c (tdesc_bfin): Declare.
13998 (bfin_arch_setup): New function.
13999 (bfin_usrregs_info, regs_info): New globals.
14000 (bfin_regs_info): New function.
14001 (the_low_target): Adjust.
14002 (initialize_low_arch): New function.
14003 * linux-cris-low.c (tdesc_cris): Declare.
14004 (cris_arch_setup): New function.
14005 (cris_usrregs_info, regs_info): New globals.
14006 (cris_regs_info): New function.
14007 (the_low_target): Adjust.
14008 (initialize_low_arch): New function.
14009 * linux-cris-low.c (tdesc_crisv32): Declare.
14010 (cris_arch_setup): New function.
14011 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14012 (cris_regs_info): New function.
14013 (the_low_target): Adjust.
14014 (initialize_low_arch): New function.
14015 * linux-m32r-low.c (tdesc_m32r): Declare.
14016 (m32r_arch_setup): New function.
14017 (m32r_usrregs_info, regs_info): New globals.
14018 (m32r_regs_info): Adjust.
14019 (initialize_low_arch): New function.
14020 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14021 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14022 (tic6x_usrregs_info): Forward declare.
14023 (tic6x_read_description): New function, based on ...
14024 (tic6x_arch_setup): ... this. Reimplement.
14025 (target_regsets): Rename to ...
14026 (tic6x_regsets): ... this, and make static.
14027 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14028 (tic6x_regs_info): New function.
14029 (the_low_target): Adjust.
14030 (initialize_low_arch): New function.
14031 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14032 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14033 (target_regsets): Rename to ...
14034 (xtensa_regsets): ... this, and make static.
14035 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14036 globals.
14037 (xtensa_arch_setup, xtensa_regs_info): New functions.
14038 (the_low_target): Adjust.
14039 (initialize_low_arch): New function.
14040 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14041 (nios2_arch_setup): Set the current process'es tdesc.
14042 (target_regsets): Rename to ...
14043 (nios2_regsets): ... this.
14044 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14045 (nios2_regs_info): New function.
14046 (the_low_target): Adjust.
14047 (initialize_low_arch): New function.
a261b8f5
PA
14048 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14049 (aarch64_arch_setup): Set the current process'es tdesc.
14050 (target_regsets): Rename to ...
14051 (aarch64_regsets): ... this.
14052 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14053 (aarch64_regs_info): New function.
14054 (the_low_target): Adjust.
14055 (initialize_low_arch): New function.
3aee8918
PA
14056 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14057 globals.
14058 (target_regsets): Rename to ...
14059 (tile_regsets): ... this.
14060 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14061 (tile_regs_info): New function.
14062 (tile_arch_setup): Set the current process'es tdesc.
14063 (the_low_target): Adjust.
14064 (initialize_low_arch): New function.
14065 * spu-low.c (tdesc_spu): Declare.
14066 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14067 * win32-arm-low.c (tdesc_arm): Declare.
14068 (arm_arch_setup): New function.
14069 (the_low_target): Install arm_arch_setup instead of
14070 init_registers_arm.
14071 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14072 (init_windows_x86): Rename to ...
14073 (i386_arch_setup): ... this. Set `win32_tdesc'.
14074 (the_low_target): Adjust.
14075 * win32-low.c (win32_tdesc): New global.
14076 (child_add_thread): Don't create the thread cache here.
14077 (do_initial_child_stuff): Set the new process'es tdesc.
14078 * win32-low.h (struct target_desc): Forward declare.
14079 (win32_tdesc): Declare.
14080 * lynx-i386-low.c (tdesc_i386): Declare global.
14081 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14082 * lynx-low.c (lynx_tdesc): New global.
14083 (lynx_add_process): Set the new process'es tdesc.
14084 * lynx-low.h (struct target_desc): Forward declare.
14085 (lynx_tdesc): Declare global.
14086 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14087 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14088 * nto-low.c (nto_tdesc): New global.
14089 (do_attach): Set the new process'es tdesc.
14090 * nto-low.h (struct target_desc): Forward declare.
14091 (nto_tdesc): Declare.
14092 * nto-x86-low.c (tdesc_i386): Declare.
14093 (nto_x86_arch_setup): Set `nto_tdesc'.
14094
b1fbec62
GB
140952013-06-04 Gary Benson <gbenson@redhat.com>
14096
14097 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14098 to qSupported response when appropriate.
14099 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14100 with nonzero-length annex.
14101 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14102 arguments supplied in annex.
14103
d1ec4ce7
DE
141042013-05-31 Doug Evans <dje@google.com>
14105
ac44adcb 14106 PR server/15594
d1ec4ce7
DE
14107 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14108 64 bits in 64-cross-32 environment.
14109
9b25f2d3
PA
141102013-05-28 Pedro Alves <palves@redhat.com>
14111
14112 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14113 (aarch64-without-fpu.c): Delete rule.
14114 * configure.srv (aarch64*-*-linux*): Remove references to
14115 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14116 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14117 declaration.
14118
6740dc9c
PA
141192013-05-24 Pedro Alves <palves@redhat.com>
14120
14121 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14122 instead of strchr/decode_address. Error if the range isn't split
14123 with a ','. Don't assume there's be a ':' in the action.
14124
c2d6af84
PA
141252013-05-23 Yao Qi <yao@codesourcery.com>
14126 Pedro Alves <palves@redhat.com>
14127
14128 * linux-low.c (lwp_in_step_range): New function.
14129 (linux_wait_1): If the thread was range stepping and stopped
14130 outside the stepping range, report the stop to GDB. Otherwise,
14131 continue stepping. Add range stepping debug output.
14132 (linux_set_resume_request): Copy the step range from the resume
14133 request to the lwp.
14134 (linux_supports_range_stepping): New.
14135 (linux_target_ops) <supports_range_stepping>: Set to
14136 linux_supports_range_stepping.
14137 * linux-low.h (struct linux_target_ops)
14138 <supports_range_stepping>: New field.
14139 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14140 * linux-x86-low.c (x86_supports_range_stepping): New.
14141 (the_low_target) <supports_range_stepping>: Set to
14142 x86_supports_range_stepping.
14143 * server.c (handle_v_cont): Handle 'r' action.
14144 (handle_v_requests): Append ";r" if the target supports range
14145 stepping.
14146 * target.h (struct thread_resume) <step_range_start,
14147 step_range_end>: New fields.
14148 (struct target_ops) <supports_range_stepping>:
14149 New field.
14150 (target_supports_range_stepping): New macro.
14151
58794e1a
JB
141522013-05-17 Joel Brobecker <brobecker@adacore.com>
14153
14154 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14155 confusion in comment.
14156
d631c5a7
JB
141572013-05-17 Joel Brobecker <brobecker@adacore.com>
14158
14159 * lynx-low.c (struct process_info_private): New type.
14160 (lynx_add_process): New function.
14161 (lynx_create_inferior, lynx_attach): Replace calls to
14162 add_process by calls to lynx_add_process.
14163 (lynx_resume): If PTID is null, then try using
14164 current_process()->private->last_wait_event_ptid.
14165 Add comments.
14166 (lynx_clear_inferiors): Delete. The contents of that function
14167 has been inlined in lynx_mourn;
14168 (lynx_wait_1): Save the ptid in the process's private data.
14169 (lynx_mourn): Free the process' private data. Replace call
14170 to lynx_clear_inferiors by call to clear_inferiors.
14171
96f7a20f
YQ
141722013-05-17 Yao Qi <yao@codesourcery.com>
14173
14174 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14175 the right place.
14176
db0dfaa0
LM
141772013-05-16 Luis Machado <lgustavo@codesourcery.com>
14178
14179 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14180 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14181 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14182 PT_TEXT_END_ADDR guards. Update comments.
14183 (linux_target_op) <read_offsets>: Conditionally define to
14184 linux_read_offsets if the target is UCLIBC and if it defines
14185 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14186
68f5f838
SL
141872013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14188 Andrew Jenner <andrew@codesourcery.com>
14189
14190 * Makefile.in (SFILES): Add linux-nios2-low.c.
14191 (clean): Add action to delete nios2-linux.c.
14192 (nios2-linux.c): New rule.
14193 * configure.srv: Add nios2*-*-linux*.
14194 * linux-nios2-low.c: New.
14195
1ebff1fd
HAQ
141962013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14197
14198 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14199
f6150862
HZ
142002013-04-25 Hui Zhu <hui@codesourcery.com>
14201
14202 PR gdb/15186
f6150862
HZ
14203 * ax.c (ax_printf): Add fflush.
14204
614c279d
TT
142052013-04-22 Tom Tromey <tromey@redhat.com>
14206
14207 * Makefile.in (SFILES): Add filestuff.c.
14208 (OBS): Add filestuff.o.
14209 (filestuff.o): New target.
14210 * config.in, configure: Rebuild.
14211 * configure.ac: Check for fdwalk, pipe2.
14212
7d4e5717
PA
142132013-04-17 Pedro Alves <palves@redhat.com>
14214
14215 * configure.ac (USE_THREAD_DB): Delete variable.
14216 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14217 Don't AC_SUBST USE_THREAD_DB.
14218 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14219 * config.in, configure: Regenerate.
14220
d5c93e41
PA
142212013-04-16 Pedro Alves <palves@redhat.com>
14222
14223 * linux-low.h (struct lwp_info) <thread_known>: Move under
14224 the USE_THREAD_DB #ifdef.
14225
04f5fe89
PA
142262013-04-16 Pedro Alves <palves@redhat.com>
14227
14228 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14229 (linux-low.o): Delete rule.
14230 * linux-low.h: Always include "gdb_thread_db.h" instead of
14231 conditionally including thread_db.h.
14232 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14233 HAVE_THREAD_DB_H.
14234
480b27bf
JK
142352013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14236
14237 * Makefile.in (install-only): Fix make install regression.
14238
43662968
JK
142392013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14240
14241 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14242 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14243 installation.
14244 * gdbserver.1: Remove.
14245
3e74e146
PA
142462013-03-22 Pedro Alves <palves@redhat.com>
14247
14248 * linux-low.c (handle_extended_wait): Don't call
14249 linux_enable_event_reporting.
14250
a8347a2a
TT
142512013-03-15 Tony Theodore <tonyt@logyst.com>
14252
14253 PR build/9098:
14254 * Makefile.in (SHELL): Use @SHELL@.
14255
eeb56fa7
SDJ
142562013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14257
14258 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14259 compiler warning.
14260
4fa7e2ff
JB
142612013-03-13 Joel Brobecker <brobecker@adacore.com>
14262
14263 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14264 Remove extraneous NULL element.
14265
8ddb1965
YQ
142662013-03-13 Yao Qi <yao@codesourcery.com>
14267
14268 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14269 'V' block in trace frame.
14270
9accd112
MM
142712013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14272
14273 * target.h (struct target_ops): Add btrace ops.
14274 (target_supports_btrace): New macro.
14275 (target_enable_btrace): New macro.
14276 (target_disable_btrace): New macro.
14277 (target_read_btrace): New macro.
14278 * gdbthread.h (struct thread_info): Add btrace field.
14279 * server.c: Include btrace-common.h.
14280 (handle_btrace_general_set): New function.
14281 (handle_btrace_enable): New function.
14282 (handle_btrace_disable): New function.
14283 (handle_general_set): Call handle_btrace_general_set.
14284 (handle_qxfer_btrace): New function.
14285 (struct qxfer qxfer_packets[]): Add btrace entry.
14286 * inferiors.c (remove_thread): Disable btrace.
14287 * linux-low: Include linux-btrace.h.
14288 (linux_low_enable_btrace): New function.
14289 (linux_low_read_btrace): New function.
14290 (linux_target_ops): Add btrace ops.
14291 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14292 Add srv_linux_btrace=yes.
14293 (x86_64-*-linux*): Add linux-btrace.o.
14294 Add srv_linux_btrace=yes.
14295 * configure.ac: Define HAVE_LINUX_BTRACE.
14296 * config.in: Regenerated.
14297 * configure: Regenerated.
14298
5cc22e4c
MM
142992013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14300
14301 * server.c (handle_qxfer): Preserve error message if -3 is
14302 returned.
14303 (qxfer): Document the -3 return value.
14304
7c97f91e
MM
143052013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14306
14307 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14308 (linux_btrace_h): New variable.
14309 (linux-btrace.o): New rule.
14310
be9a119c 143112013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14312 Hafiz Abid Qadeer <abidh@codesourcery.com>
14313
14314 * tracepoint.c (trace_buffer_size): New global.
14315 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14316 (init_trace_buffer): Change to one-argument function. Allocate
14317 trace buffer memory.
14318 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14319 handle QTBuffer:size packet.
14320 (cmd_bigqtbuffer_size): New function.
14321 (initialize_tracepoint): Call init_trace_buffer with
14322 DEFAULT_TRACE_BUFFER_SIZE.
14323 * server.c (handle_query): Add QTBuffer:size in the
14324 supported packets.
14325
e64f7499
YQ
143262013-03-07 Yao Qi <yao@codesourcery.com>
14327
14328 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14329 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14330 of -1.
14331 (cmd_qtsp): Adjust condition. Do post increment.
14332 Set cur_action and cur_step_action back to 0.
14333
f0ae6fc3
PA
143342013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14335
14336 PR server/15236
14337 * linux-low.c (linux_write_memory): Return early success if LEN is
14338 zero.
14339
b5b0b0af
CV
143402013-03-05 Corinna Vinschen <vinschen@redhat.de>
14341
334ad4a8 14342 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14343
589bc927
TT
143442013-02-28 Tom Tromey <tromey@redhat.com>
14345
14346 * configure.ac: Invoke AC_SYS_LARGEFILE.
14347 * configure, config.in: Rebuild.
14348
dfe07582
CV
143492013-02-28 Corinna Vinschen <vinschen@redhat.com>
14350
14351 * win32-low.c: Throughout, fix format strings and casts of
14352 printf-like functions to avoid type related warnings on all
14353 platforms.
14354 (get_child_debug_event): Print dwDebugEventCode as hex since
14355 that's how it's usually documented.
14356
736cd585
YQ
143572013-02-28 Yao Qi <yao@codesourcery.com>
14358
14359 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14360 pulongest.
14361
e1f58301
JW
143622013-02-27 Jiong Wang <jiwang@tilera.com>
14363
14364 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14365 (reg-tilegx32.c): New rule.
14366 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14367 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14368 different register info initializer according to elf class.
14369 (init_registers_tilgx32): New function. The tilegx32 register info
14370 initializer.
14371 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14372 (tile_store_gregset): Likewise.
14373
d171ca78
YQ
143742013-02-27 Yao Qi <yao@codesourcery.com>
14375
14376 * server.c (process_point_options): Print debug message when
14377 debug_threads is true.
14378
282bbdf3
YQ
143792013-02-26 Yao Qi <yao@codesourcery.com>
14380
14381 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14382
aca22551
PA
143832013-02-19 Pedro Alves <palves@redhat.com>
14384 Kai Tietz <ktietz@redhat.com>
14385
14386 PR gdb/15161
14387
14388 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14389 instead of strtoul to extract address from packet.
14390 (process_serial_event) <'z'>: Likewise.
14391
4f3cee1c
YQ
143922013-02-18 Yao Qi <yao@codesourcery.com>
14393
14394 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14395
8e1d55a3
PA
143962013-02-14 Pedro Alves <palves@redhat.com>
14397
14398 Plug memory leak.
14399
14400 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14401 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14402
458820da
PA
144032013-02-14 Pedro Alves <palves@redhat.com>
14404
14405 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14406
baea0dae
PA
144072013-02-14 Pedro Alves <palves@redhat.com>
14408
14409 * tracepoint.c (save_string): Delete.
14410 (add_tracepoint_action): Use savestring instead of save_string.
14411
0b1afbb3
PA
144122013-02-12 Pedro Alves <palves@redhat.com>
14413
14414 * linux-xtensa-low.c: Ditto.
14415 * xtensa-xtregs.c: Ditto.
14416
8a4ac37e
PA
144172013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14418
14419 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14420 thread_db.
14421
148de6bb
MS
144222013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14423
14424 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14425 aarch64_num_wp_regs and aarch64_num_bp_regs to
14426 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14427
55fac6e0
MS
144282013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14429
14430 * linux-aarch64-low.c (ps_get_thread_area): Replace
14431 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14432
176eb98c
MS
144332013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14434 Marcus Shawcroft <marcus.shawcroft@arm.com>
14435 Nigel Stephens <nigel.stephens@arm.com>
14436 Yufeng Zhang <yufeng.zhang@arm.com>
14437
14438 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14439 (aarch64.c, aarch64-without-fpu.c): New targets.
14440 * configure.srv (aarch64*-*-linux*): New.
14441 * linux-aarch64-low.c: New file.
14442
56f7af9c
MS
144432013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14444
43aaf8b6 14445 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14446 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14447 (dequeue_one_deferred_signal, linux_resume_one_thread)
14448 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14449 (linux_tracefork_grandchild, linux_test_for_tracefork)
14450 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14451 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14452 where the argument is 0.
14453
60f662b0
YQ
144542013-01-25 Yao Qi <yao@codesourcery.com>
14455
14456 * event-loop.c: Include "queue.h".
14457 (gdb_event_p): New typedef.
14458 (struct gdb_event) <next_event>: Remove.
14459 (event_queue): Change to QUEUE(gdb_event_p).
14460 (async_queue_event): Remove.
14461 (gdb_event_xfree): New.
14462 (initialize_event_loop): New.
14463 (process_event): Use API from QUEUE.
14464 (wait_for_event): Likewise.
14465 * server.c (main): Call initialize_event_loop.
14466 * server.h (initialize_event_loop): Declare.
14467
5ae4861a
YQ
144682013-01-18 Yao Qi <yao@codesourcery.com>
14469
14470 * ax.h (struct eval_agent_expr_context): New.
14471 (gdb_eval_agent_expr): Update declaration.
14472 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14473 TFRAME. Add new argument CTX.
14474 * server.h (struct eval_agent_expr_context): Declare.
14475 (agent_mem_read, agent_tsv_read): Update declaration.
14476 (agent_mem_read_string): Likewise.
14477 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14478 (add_traceframe_block): Add new argument TPOINT.
14479 Increase TPOINT->traceframe_usage.
14480 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14481 eval_tracepoint_agent_expr.
14482 (condition_true_at_tracepoint): Likewise.
14483 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14484 (agent_mem_read_string, agent_tsv_read): Likewise.
14485
85e00e85
YQ
144862013-01-16 Yao Qi <yao@codesourcery.com>
14487
14488 * linux-low.c (linux_resume_one_lwp): Don't check
14489 'lwp->bp_reinsert != 0'.
14490
4039cf45
JB
144912013-01-07 Joel Brobecker <brobecker@adacore.com>
14492 Pedro Alves <palves@redhat.com>
14493
14494 * lynx-low.c (ptrace_request_to_str): Define a temporary
14495 macro and use it to simplify this function's implementation.
14496
9044dee2
JB
144972013-01-07 Joel Brobecker <brobecker@adacore.com>
14498
14499 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14500 sets errno.
14501
e6352c8f
JB
145022013-01-07 Joel Brobecker <brobecker@adacore.com>
14503
14504 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14505
50681a27
JB
145062013-01-07 Joel Brobecker <brobecker@adacore.com>
14507
14508 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14509
3f6e77ef
JB
145102013-01-07 Joel Brobecker <brobecker@adacore.com>
14511
14512 * lynx-low.c (lynx_resume): Use the resume_info parameter
14513 to determine the ptid for the lynx_ptrace call, unless
14514 it is equal to minus_one_ptid, in which case we use the
14515 ptid of the current_inferior.
14516 (lynx_wait_1): After having received a thread create/exit
14517 event, resume the inferior's execution using the signaling
14518 thread's ptid, rather than the old ptid.
14519
7fda33ae
JB
145202013-01-07 Joel Brobecker <brobecker@adacore.com>
14521
14522 * lynx-low.c (lynx_resume): Delete variable ret.
14523
b9786c74
JB
145242013-01-01 Joel Brobecker <brobecker@adacore.com>
14525
14526 * gdbreplay.c (gdbreplay_version): Update copyright year.
14527 * server.c (gdbserver_version): Likewise.
14528
8b93d60f
JB
145292012-12-17 Joel Brobecker <brobecker@adacore.com>
14530
14531 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14532 new thread.
14533
037335a7
JB
145342012-12-17 Joel Brobecker <brobecker@adacore.com>
14535
14536 * lynx-low.c (ptrace_request_to_str): Add handling for
14537 PTRACE_GETTRACESIG.
14538
52d4cbd8
JB
145392012-12-17 Joel Brobecker <brobecker@adacore.com>
14540
14541 * lynx-low.c (lynx_attach): Delete variable new_process.
14542
ab8f6ca9
JB
145432012-12-17 Joel Brobecker <brobecker@adacore.com>
14544
14545 * lynx-low.c (lynx_create_inferior): Delete variable
14546 new_process.
14547
78cbc024
JB
145482012-12-17 Joel Brobecker <brobecker@adacore.com>
14549
14550 * lynx-low.c (ptrace_request_to_str): Do not handle
14551 PTRACE_GETTHREADLIST if this macro does not exist.
14552
14a00470
YQ
145532012-12-15 Yao Qi <yao@codesourcery.com>
14554
14555 * Makefile.in (OBS): Add notif.o.
14556 * notif.c, notif.h: New.
14557 * server.c: Include "notif.h".
14558 (struct vstop_notif) <next>: Remove.
14559 <base>: New field.
14560 (queue_stop_reply): Update.
14561 (push_event, send_next_stop_reply): Remove.
14562 (discard_queued_stop_replies): Update.
14563 (notif_stop): New variable.
14564 (handle_v_stopped): Remove.
14565 (handle_v_requests): Don't call handle_v_stopped. Call
14566 handle_ack_notif instead.
14567 (queue_stop_reply_callback): Call notif_event_enque instead
14568 of queue_stop_reply.
14569 (handle_status): Don't call send_next_stop_reply, call
14570 notif_write_event instead.
14571 (kill_inferior_callback): Likewise.
14572 (detach_or_kill_inferior_callback): Likewise.
14573 (main): Call initialize_notif.
14574 (process_serial_event): Call QUEUE_is_empty.
14575 (handle_target_event): Call notif_push instead of push event.
14576 * server.h (push_event): Remove declaration.
14577
61c125b9
TT
145782012-12-10 Tom Tromey <tromey@redhat.com>
14579
14580 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14581 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14582 macros.
14583 (.c.o): Rewrite.
14584 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14585 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14586 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14587 (amd64-linux-ipa.o, ax.o): Rewrite.
14588 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14589 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14590 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14591 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14592 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14593 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14594 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14595 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14596 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14597 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14598 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14599 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14600 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14601 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14602 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14603 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14604 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14605 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14606 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14607 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14608 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14609 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14610 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14611 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14612 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14613 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14614 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14615 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14616 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14617 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14618 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14619 (reg-tilegx.o): Remove.
14620 (all_object_files): New macro.
14621 Include .deps files.
14622 * aclocal.m4, configure: Rebuild.
14623 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14624 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14625 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14626
e90e9ad9
TT
146272012-12-05 Tom Tromey <tromey@redhat.com>
14628
14629 PR gdb/14917:
14630 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14631
02d403bf 146322012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14633
14634 * configure.ac: Check for linux/perf_event.h.
14635 * config.in: Regenerated.
14636 * configure: Regenerated.
14637
0270a750
PA
146382012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14639
14640 * hostio.c (handle_readlink): Decrease buffer size
14641 parameter passed to readlink by one byte.
14642
8c29b58e
YQ
146432012-11-26 Yao Qi <yao@codesourcery.com>
14644
14645 * configure.ac (build_warnings): Append '-Wempty-body'.
14646 * configure: Regenerated.
14647 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14648 body.
14649
8bdce1ff
PM
146502012-11-15 Pierre Muller <muller@sourceware.org>
14651
14652 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14653 * config.in: Regenerate.
14654 * configure: Regenerate.
14655 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14656 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14657 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14658 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14659 header.
14660 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14661 instead of <sys/wait.h> header.
14662 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14663
02d403bf 146642012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14665
14666 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14667 (various make rules): Remove -DGDBSERVER
14668
fbd5db48
YQ
146692012-11-09 Yao Qi <yao@codesourcery.com>
14670
14671 * spu-low.c (current_ptid): Move it to ..
14672 * gdbthread.h: ... here. New.
14673 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14674 * server.c (myresume, process_serial_event): Likewise.
14675 * thread-db.c (thread_db_find_new_threads): Likewise.
14676 * tracepoint.c (run_inferior_command): Likewise.
14677
b3dc46ff
AB
146782012-10-01 Andrew Burgess <aburgess@broadcom.com>
14679
14680 * server.c (handle_search_memory_1): Include access length in
14681 warning message.
14682
07c04788
HPN
146832012-09-05 Michael Brandt <michael.brandt@axis.com>
14684
14685 * linux-crisv32-low.c: Fix compile errors.
14686
918d227b
YQ
146872012-09-04 Yao Qi <yao@codesourcery.com>
14688
14689 * tracepoint.c (cmd_qtsv): Adjust debug message.
14690 Don't check CUR_TPOINT.
14691
18c1b81a
YQ
146922012-08-28 Yao Qi <yao@codesourcery.com>
14693
14694 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14695 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14696 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14697 Remove declarations of xmalloc, xreallloc, xstrdup and
14698 freeargv.
14699 * Makefile.in (libiberty_h): New.
14700 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14701 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14702
dc82f37b
YQ
147032012-08-23 Yao Qi <yao@codesourcery.com>
14704
14705 * server.h: Remove declaration of 'xsnprintf'.
14706
406b1477
KS
147072012-08-22 Keith Seitz <keiths@redhat.com>
14708
14709 * server.h: Include build-gnulib-gbserver/config.h.
14710 * gdbreplay.c: Likewise.
14711
e6712ff1
DE
147122012-08-08 Doug Evans <dje@google.com>
14713
14714 * Makefile.in (SFILES): Add gdb_vecs.c.
14715 (OBS): Add gdb_vecs.o.
14716 (gdb_vecs_h, host_defs_h): New variables.
14717 (thread-db.o): Add $(gdb_vecs_h) dependency.
14718 (gdb_vecs.o): New rule.
14719 * thread-db.c: #include "gdb_vecs.h".
14720 (thread_db_load_search): Use a vector to iterate over path elements.
14721 Handle text appearing after "$pdir".
14722
14723 * configure.ac: Add check for strstr.
14724 * config.in: Regenerate.
14725 * configure: Regenerate.
14726
7c3270ae
UW
147272012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14728
14729 * hostio.c (handle_pread): If pread fails, fall back to attempting
14730 lseek/read.
14731 (handle_pwrite): Likewise for pwrite.
14732
b62e2b27
UW
147332012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14734
14735 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14736 between unsupported TYPE and unimplementable ADDR/LEN combination.
14737 (arm_insert_point): Act on new return value.
14738
78a99e91
PA
147392012-07-31 Pedro Alves <palves@redhat.com>
14740
14741 * server.c (process_point_options): Only skip tokens if we find
14742 one that is unrecognized. Don't treat 'X' specially while
14743 skipping unrecognized tokens.
14744
fcf303ab
UW
147452012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14746
14747 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14748 to 4-byte-align HW breakpoint addresses for Thumb.
14749
7255706c
YQ
147502012-07-27 Yao Qi <yao@codesourcery.com>
14751
14752 PR remote/14161.
14753
14754 * server.h: Declare gdb_agent_about_to_close.
14755 * target.c (kill_inferior): Include "agent.h".
14756 New. Send command 'kill'.
14757 * target.h (kill_inferior): Removed macro.
14758 * tracepoint.c (gdb_agent_about_to_close): New.
14759 (gdb_agent_helper_thread): Handle command 'close'.
14760 Wait endlessly until the inferior stops.
14761 Install gdb_agent_remove_socket to atexit hook.
14762 (agent_socket_name): New static variable.
14763 (gdb_agent_socket_init): Replace local variable 'name' with
14764 'agent_socket_name'.
14765 (gdb_agent_remove_socket): New.
14766
5a3f286f
YQ
147672012-07-27 Yao Qi <yao@codesourcery.com>
14768
14769 * server.c (process_point_options): Stop at 'X' when parsing.
14770
961bd387
ME
147712012-07-19 Michael Eager <eager@eagercon.com>
14772
a261b8f5 14773 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14774 to hw_execute.
14775 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14776 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14777 hardware breakpoint.
14778
aa7c7447
JK
147792012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14780
14781 * gdbserver/linux-low.c (initialize_low): Call
14782 linux_ptrace_init_warnings.
14783
7f216e7c
DE
147842012-07-02 Doug Evans <dje@google.com>
14785
14786 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14787 pointer to int.
14788
d3ce09f5
SS
147892012-07-02 Stan Shebs <stan@codesourcery.com>
14790
14791 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14792 (ax.o): Add it to build rule.
14793 (ax-ipa.o): Ditto.
14794 (OBS): Add format.o.
14795 (IPA_OBS): Add format.o.
14796 * server.c (handle_query): Claim support for breakpoint commands.
14797 (process_point_options): Add command case.
14798 (process_serial_event): Leave running if there are printfs in
14799 effect.
14800 * mem-break.h (any_persistent_commands): Declare.
14801 (add_breakpoint_commands): Declare.
14802 (gdb_no_commands_at_breakpoint): Declare.
14803 (run_breakpoint_commands): Declare.
14804 * mem-break.c (struct point_command_list): New struct.
14805 (struct breakpoint): New field command_list.
14806 (any_persistent_commands): New function.
14807 (add_commands_to_breakpoint): New function.
14808 (add_breakpoint_commands): New function.
14809 (gdb_no_commands_at_breakpoint): New function.
14810 (run_breakpoint_commands): New function.
14811 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14812 locally.
14813 * ax.c: Include format.h.
14814 (ax_printf): New function.
14815 (gdb_eval_agent_expr): Add printf opcode.
14816
2f8f6aed
YQ
148172012-06-13 Yao Qi <yao@codesourcery.com>
14818
14819 * server.c (start_inferior): Remove duplicated writes to fields
14820 'last_resume_kind' and 'last_status' of 'current_inferior'.
14821
0c9070b3
YQ
148222012-06-12 Yao Qi <yao@codesourcery.com>
14823 Pedro Alves <palves@redhat.com>
14824
14825 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14826 comment.
14827 * server.c (handle_v_cont): Extend comment.
14828
c52daf70
YQ
148292012-06-11 Yao Qi <yao@codesourcery.com>
14830
14831 * linux-low.c (linux_attach): Add 'static'.
14832
d38bbb0a
YQ
148332012-06-06 Yao Qi <yao@codesourcery.com>
14834
14835 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14836
89dc0afd
JK
148372012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14838
14839 Fix gcc -flto compilation warning.
14840 * server.c (main): Make variable multi_mode and attach volatile.
14841
75f62ce7
TJB
148422012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14843
14844 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14845 if the platform doesn't know about it.
14846
65f479b6
PA
148472012-05-30 Jeff Kenton <jkenton@tilera.com>
14848
14849 * Makefile.in (SFILES): Add linux-tile-low.c.
14850 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14851 * configure.srv: Handle tilegx-*-linux*.
14852 * linux-tile-low.c: New file.
14853
0c5bf5a9
JK
148542012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14855
14856 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14857
a493e3e2
PA
148582012-05-24 Pedro Alves <palves@redhat.com>
14859
14860 PR gdb/7205
14861
43aaf8b6 14862 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 14863
2ea28649
PA
148642012-05-24 Pedro Alves <palves@redhat.com>
14865
14866 PR gdb/7205
14867
14868 Replace target_signal with gdb_signal throughout.
14869
8d409d16
MR
148702012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14871
14872 * linux-low.c (linux_store_registers): Avoid the copying sequence
14873 when no data has been retrieved by ptrace.
14874
23512c01
MGD
148752012-05-22 Will Deacon <will.deacon@arm.com>
14876
14877 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14878 Include asm/ptrace.h.
14879 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14880 already defined.
14881
4934b29e
MR
148822012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14883
14884 * linux-low.c (linux_store_registers): Don't re-retrieve data
14885 with ptrace that has already been obtained from /proc. Always
14886 copy any data retrieved with ptrace to the buffer supplied.
14887
bde24c0a
PA
148882012-05-11 Yao Qi <yao@codesourcery.com>
14889 Pedro Alves <palves@redhat.com>
14890
14891 * linux-low.c (enum stopping_threads_kind): New.
14892 (stopping_threads): Change type to `enum stopping_threads_kind'.
14893 (handle_extended_wait): If stopping and suspending threads, leave
14894 the new_lwp suspended too.
14895 (linux_wait_for_event): Adjust.
14896 (stop_all_lwps): Set `stopping_threads' to
14897 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14898 whether we're suspending threads or just stopping them. Assert no
14899 recursion happens.
14900
623b6bdf
YQ
149012012-04-29 Yao Qi <yao@codesourcery.com>
14902
14903 * server.h: Move some code to ...
14904 * gdbthread.h: ... here. New.
14905 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14906 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14907 (nto-low.o, win32-low.o): Likewise.
14908 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14909 * regcache.c, remote-utils.c, server.c: Likewise.
14910 * target.c, tracepoint.c, win32-low.c: Likewise.
14911
f15f9948
TJB
149122012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14913
14914 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14915 (PTRACE_ARG4_TYPE): Likewise.
14916 (PTRACE_XFER_TYPE): Likewise.
14917 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14918 ptrace to PTRACE_ARG3_TYPE.
14919 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14920 (PTRACE_ARG4_TYPE): Likewise.
14921 (PTRACE_XFER_TYPE): Likewise.
14922 (linux_detach_one_lwp): Cast fourth argument of
14923 ptrace to long then PTRACE_ARG4_TYPE.
14924 (regsets_fetch_inferior_registers): Cast third argument of
14925 ptrace to long then PTRACE_ARG3_TYPE.
14926 (regsets_store_inferior_registers): Likewise.
14927
38ea300a
PA
149282012-04-20 Pedro Alves <palves@redhat.com>
14929
14930 * configure: Regenerate.
14931
c971b7fa
PA
149322012-04-19 Pedro Alves <palves@redhat.com>
14933
43aaf8b6 14934 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 14935 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
14936 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14937 (all, install-only, uninstall, clean-info, all-lib, clean): No
14938 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14939 (maintainer-clean realclean distclean): Use subdir_do.
14940 (subdir_do): New.
14941 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 14942 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
14943 * acinclude.m4: Include acx_configure_dir.m4.
14944 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14945 calls. Call AC_PROG_RANLIB. Configure gnulib using
14946 ACX_CONFIGURE_DIR.
14947 (GNULIB): New.
14948 (GNULIB_STDINT_H): Adjust.
14949 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14950 * gdbreplay.c: Include build-gnulib/config.h.
14951 * server.h: Likewise.
14952 * aclocal.m4: Regenerate.
14953 * config.in: Regenerate.
14954 * configure: Regenerate.
c971b7fa 14955
809277f8
PA
149562012-04-19 Pedro Alves <palves@redhat.com>
14957
14958 * Makefile.in (LIBGNU, INCGNU): Adjust.
14959 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14960 (all, install-only, uninstall, clean-info, all-lib, clean)
14961 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14962 * configure.ac: Adjust AC_OUTPUT output.
14963 * aclocal.m4: Regenerate.
14964 * configure: Regenerate.
14965
fd9bb8b8
PA
149662012-04-19 Pedro Alves <palves@redhat.com>
14967
14968 * Makefile.in (generated_files): New.
14969 (server_h): Remove the explicit dependency on config.h, and depend
14970 on $generated_files.
14971
1c298c66
PA
149722012-04-19 Pedro Alves <palves@redhat.com>
14973
14974 * Makefile.in (INCGNU): Add -Ignulib.
14975
57c4b50b
PA
149762012-04-19 Pedro Alves <palves@redhat.com>
14977
14978 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14979 (INCGNU): ... this, and spell out -I here.
14980 (GNULIB_LIB): Rename to ...
14981 (LIBGNU): ... this.
14982 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14983
1030e047
PA
149842012-04-19 Pedro Alves <palves@redhat.com>
14985
14986 * config.in: Regenerate.
14987
447d4319
PA
149882012-04-19 Pedro Alves <palves@redhat.com>
14989
14990 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14991 * server.h (memmem): Remove declaration.
14992 * config.in: Regenerate.
14993 * configure: Regenerate.
14994
aad9eab9
YQ
149952012-04-19 Yao Qi <yao@codesourcery.com>
14996
14997 * Makefile.in (SFILES): Add common/vec.c.
14998 (OBS): Add vec.o.
14999 (vec.o): New rule.
15000
3e10640f
YQ
150012012-04-19 Yao Qi <yao@codesourcery.com>
15002
15003 * remote-utils.c (prepare_resume_reply): Replace with macro
15004 target_core_of_thread.
15005 * server.c (handle_qxfer_threads_proper): Likewise.
15006 * target.h (traget_core_of_thread): New macro.
15007
71622373
PA
150082012-04-18 Pedro Alves <palves@redhat.com>
15009
15010 * aclocal.m4: Regenerate.
15011 * configure: Regenerate.
15012
80d26939
YQ
150132012-04-16 Yao Qi <yao@codesourcery.com>
15014
15015 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15016 duplicated on address.
15017
42476b70
YQ
150182012-04-16 Yao Qi <yao@codesourcery.com>
15019
15020 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15021 (struct tracepoint_action_ops) <send>: New field.
15022 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15023 (agent_expr_send, x_tracepoint_action_send): New.
15024 (l_tracepoint_action_send): New.
15025 (cmd_qtdp): Download and install tracepoint
15026 according to `use_agent'.
15027 (run_inferior_command): Add one more parameter `len'.
15028 Update callers.
15029 (tracepoint_send_agent): New.
15030 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15031
7bc83639
YQ
150322012-04-16 Yao Qi <yao@codesourcery.com>
15033
15034 * tracepoint.c (download_tracepoints): Moved to ...
15035 (cmd_qtstart): ... here.
15036
5f18041e
YQ
150372012-04-14 Yao Qi <yao@codesourcery.com>
15038
15039 * tracepoint.c: Include inttypes.h.
15040 (struct collect_memory_action): Use sized types.
15041 (struct tracepoint): Likewise.
15042 (cmd_qtdp, stop_tracing): Update print specifiers.
15043 (cmd_qtp, response_tracepoint): Likewise.
15044 (collect_data_at_tracepoint): Likewise.
15045 (collect_data_at_step): Likewise.
15046
55a8c076
YQ
150472012-04-14 Yao Qi <yao@codesourcery.com>
15048
15049 Import gnulib module inttypes.
15050 * aclocal.m4, config.in, configure: Regenerated.
15051
dc750257
YQ
150522012-04-14 Yao Qi <yao@codesourcery.com>
15053
15054 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15055 Makefile and config.status at last.
15056
0ab5faf9
YQ
150572012-04-13 Yao Qi <yao@codesourcery.com>
15058
15059 * tracepoint.c: Include stdint.h unconditionally.
15060
18f5fd81
TJB
150612012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15062
15063 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15064 on BFD_HAVE_SYS_PROCFS_TYPE.
15065 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15066 * configure: Regenerate.
15067 * config.in: Likewise.
15068
4d47af5c
L
150692012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15070
15071 * Makefile.in (clean): Also remove x32.c x32-linux.c
15072 x32-avx.c x32-avx-linux.c.
15073 (x32.o): New target.
15074 (x32.c): Likewise.
15075 (x32-linux.o): Likewise.
15076 (x32-linux.c): Likewise.
15077 (x32-avx.o): Likewise.
15078 (x32-avx.c): Likewise.
15079 (x32-avx-linux.o): Likewise.
15080 (x32-avx-linux.c): Likewise.
15081
15082 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15083 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15084 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15085 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15086 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15087 i386/x32-avx-linux.xml.
15088
15089 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15090 (init_registers_x32_avx_linux): Likwise.
15091 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15092 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15093
ecedbe58
PA
150942012-04-13 Pedro Alves <palves@redhat.com>
15095
15096 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15097 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15098 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15099 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15100 the sub-make.
15101
c92b5177
L
151022012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15103
15104 * linux-x86-low.c (compat_x32_clock_t): New.
15105 (compat_x32_siginfo_t): Likewise.
15106 (compat_x32_siginfo_from_siginfo): Likewise.
15107 (siginfo_from_compat_x32_siginfo): Likewise.
15108 (linux_is_elf64): Likewise.
15109 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15110 and siginfo_from_compat_x32_siginfo for x32.
15111 (x86_arch_setup): Set linux_is_elf64.
15112
214d508e
L
151132012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15114
15115 PR gdb/13969
15116 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15117 e_machine field.
15118 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15119 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15120 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15121 compatible with process.
15122
c9a1864a
YQ
151232012-04-12 Yao Qi <yao@codesourcery.com>
15124
15125 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15126 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15127 (install-only, install-info, clean): Handle sub dir gnulib.
15128 (all-lib, am--refresh): New targets.
15129 (memmem.o): Remove target.
15130 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15131 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15132 (AC_REPLACE_FUNCS): Remove memmem.
15133 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15134 (AC_OUTPUT): Generate Makefile in gnulib/.
15135 * aclocal.m4, config.in, configure: Regenerated.
15136
367ba2c2
MR
151372012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15138
15139 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15140
9d236627
PA
151412012-04-05 Pedro Alves <palves@redhat.com>
15142
15143 -Werror=strict-aliasing
15144
15145 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15146 pointer.
15147
111217b3
PA
151482012-04-04 Pedro Alves <palves@redhat.com>
15149
15150 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15151 (sparc_store_gregset_from_stack, sparc_store_gregset)
15152 (sparc_breakpoint_at): Fix formatting.
15153
8365dcf5
TJB
151542012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15155
15156 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15157 are available.
15158 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15159 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15160 * config.in: Regenerate.
15161 * configure: Likewise.
15162
689cc2ae
PA
151632012-03-29 Pedro Alves <palves@redhat.com>
15164
15165 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15166 Correct ptrace arguments.
15167
c14dfd32
PA
151682012-03-28 Pedro Alves <palves@redhat.com>
15169
15170 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15171 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15172 (IA64_FR1_REGNUM): New defines.
15173 (ia64_fetch_register): New.
15174 (the_low_target): Install it.
15175 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15176 field.
15177 * linux-low.c (linux_fetch_registers): Try the
15178 the_low_target.fetch_register hook first.
15179
15180 * linux-arm-low.c (the_low_target): Adjust.
15181 * linux-bfin-low.c (the_low_target): Adjust.
15182 * linux-cris-low.c (the_low_target): Adjust.
15183 * linux-crisv32-low.c (the_low_target): Adjust.
15184 * linux-m32r-low.c (the_low_target): Adjust.
15185 * linux-m68k-low.c (the_low_target): Adjust.
15186 * linux-mips-low.c (the_low_target): Adjust.
15187 * linux-ppc-low.c (the_low_target): Adjust.
15188 * linux-s390-low.c (the_low_target): Adjust.
15189 * linux-sh-low.c (the_low_target): Adjust.
15190 * linux-sparc-low.c (the_low_target): Adjust.
15191 * linux-tic6x-low.c (the_low_target): Adjust.
15192 * linux-x86-low.c (the_low_target): Adjust.
15193 * linux-xtensa-low.c (the_low_target): Adjust.
15194
63c88e13
PA
151952012-03-26 Pedro Alves <palves@redhat.com>
15196
15197 * server.c (handle_qxfer_libraries): Don't bail early if
15198 the_target->qxfer_libraries_svr4 is not NULL.
15199
fb723180
PA
152002012-03-26 Pedro Alves <palves@redhat.com>
15201
15202 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15203
0afae3cf
PA
152042012-03-23 Pedro Alves <palves@redhat.com>
15205
15206 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15207 "library-list-svr4" element's start tag when the the DSO list is
15208 empty.
15209
485f1ee4
PA
152102012-03-23 Pedro Alves <palves@redhat.com>
15211
15212 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15213 a variable whose type size is the same as the inferior's pointer
15214 size.
15215
a5362b9a
TS
152162012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15217
15218 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15219 struct siginfo.
15220 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15221 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15222 * linux-low.h: Include <signal.h>.
15223 (struct siginfo): Remove forward declaration.
15224 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15225 struct siginfo.
15226
d226c142
MF
152272012-03-21 Mike Frysinger <vapier@gentoo.org>
15228
15229 * .gitignore: Ignore more files.
15230
122f36ef
PA
152312012-03-19 Pedro Alves <palves@redhat.com>
15232 Jan Kratochvil <jan.kratochvil@redhat.com>
15233
15234 * server.c (cont_thread, general_thread): Add describing comments.
15235 (start_inferior): Clear `cont_thread'.
15236 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15237 of a process.
15238
fc3e5175
YQ
152392012-03-15 Yao Qi <yao@codesourcery.com>
15240
15241 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15242 handling to ...
15243 (cmd_qtdp): ... here.
15244
8d0d92cd
YQ
152452012-03-15 Yao Qi <yao@codesourcery.com>
15246
15247 * tracepoint.c (struct tracepoint_action_ops): New.
15248 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15249 (m_tracepoint_action_download): New.
15250 (r_tracepoint_action_download): New.
15251 (x_tracepoint_action_download): New.
15252 (l_tracepoint_action_download): New.
15253 (add_tracepoint_action): Install `action->ops' according type.
15254 (download_tracepoint_1): Move code `download' function pointer
15255 of various tracepoint_action_ops.
15256
87b0bb13
JK
152572012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15258
15259 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15260 linux_ptrace_attach_warnings.
15261
5f572dec
JK
152622012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15263
15264 * Makefile.in (linux-ptrace.o): New.
15265 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15266 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15267 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15268 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15269 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15270 of these targets.
15271 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15272
f4647387
YQ
152732012-03-08 Yao Qi <yao@codesourcery.com>
15274 Pedro Alves <palves@redhat.com>
15275
15276 Fix PR server/13392.
15277 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15278 offset of JMP insn.
15279 * tracepoint.c (remove_tracepoint): New.
15280 (cmd_qtdp): Call remove_tracepoint when failed to install.
15281
9b224c5e
PA
152822012-03-07 Pedro Alves <palves@redhat.com>
15283
15284 * linux-low.c (get_detach_signal): New.
15285 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15286 Pass on pending signals to PTRACE_DETACH. Check the result of the
15287 ptrace call.
15288 * server.c (program_signals, program_signals_p): New.
15289 (handle_general_set): Handle QProgramSignals.
15290 * server.h (program_signals, program_signals_p): Declare.
15291
e237a7e2
JK
152922012-03-05 Pedro Alves <palves@redhat.com>
15293 Jan Kratochvil <jan.kratochvil@redhat.com>
15294
15295 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15296 New comment why.
15297
5808517f
YQ
152982012-03-03 Yao Qi <yao@codesourcery.com>
15299
15300 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15301 agent_look_up_symbols.
15302
58b4daa5
YQ
153032012-03-03 Yao Qi <yao@codesourcery.com>
15304
15305 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15306 (linux-x86-low.o): Likewise.
15307 * server.h: Remove in_process_agent_loaded.
15308 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15309 common/agent.c.
15310 Update callers.
15311
8ffcbaaf
YQ
153122012-03-03 Yao Qi <yao@codesourcery.com>
15313
15314 * tracepoint.c (gdb_agent_capability): New global.
15315 (in_process_agent_loaded_ust): Renamed to
15316 `in_process_agent_supports_ust'.
15317 Update callers.
15318 (in_process_agent_supports_ust): Call agent_capability_check.
15319 (clear_installed_tracepoints): Assert that agent supports
15320 agent.
15321
d1feda86
YQ
153222012-03-03 Yao Qi <yao@codesourcery.com>
15323
15324 * linux-low.c (linux_supports_agent): New.
15325 (linux_target_ops): Initialize field `supports_agent' with
15326 linux_supports_agent.
15327 * target.h (struct target_ops) <supports_agent>: New.
15328 (target_supports_agent): New macro.
15329 * server.c (handle_general_set): Handle packet 'QAgent'.
15330 (handle_query): Send `QAgent+'.
15331 * Makefile.in (server.o): Depends on agent.h.
15332
2fa291ac
YQ
153332012-03-03 Yao Qi <yao@codesourcery.com>
15334
15335 * Makefile.in (OBS): Add agent.o.
15336 Add new rule for agent.o.
15337 Track dependence of tracepoint.c on agent.h.
15338 * tracepoint.c (run_inferior_command_1):
15339 (run_inferior_command): Call agent_run_command.
15340 (gdb_ust_connect_sync_socket): Deleted. Move it to
15341 common/agent.c.
15342 (resume_thread, stop_thread): Likewise.
15343 (gdb_ust_socket_init): Renamed to ...
15344 (gdb_agent_socket_init): ... New.
15345 (gdb_ust_thread): Renamed to ...
15346 (gdb_agent_helper_thread): ... New.
15347 (gdb_ust_init): Move some code to ...
15348 (gdb_agent_init): ... here. New.
15349 [HAVE_UST]: Call gdb_ust_init.
15350 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15351 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15352 * config.in, configure: Regenerated.
15353
05044653
PA
153542012-03-02 Pedro Alves <palves@redhat.com>
15355
15356 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15357 * linux-low.c (struct simple_pid_list): New.
15358 (stopped_pids): New a struct simple_pid_list pointer.
15359 (add_to_pid_list, pull_pid_from_list): New.
15360 (handle_extended_wait): Don't assume the first signal new children
15361 report is SIGSTOP. Adjust call to pull_pid_from_list.
15362 (linux_wait_for_lwp): Adjust.
15363
8d00225b
YQ
153642012-03-02 Yao Qi <yao@codesourcery.com>
15365
15366 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15367 debug log.
15368
19560ba5
YQ
153692012-03-02 Yao Qi <yao@codesourcery.com>
15370
15371 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15372 `stop_pc' and `tpoint'. Update caller.
15373
1faeff08
MR
153742012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15375
15376 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15377 * linux-low.c (use_linux_regsets): New macro.
15378 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15379 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15380 (linux_register_in_regsets): New function.
15381 (usr_fetch_inferior_registers): Skip registers covered by
15382 regsets.
15383 (usr_store_inferior_registers): Likewise.
15384 (usr_fetch_inferior_registers): New macro.
15385 (usr_store_inferior_registers): Likewise.
15386 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15387 (linux_store_registers): Likewise.
15388 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15389 prototype.
15390 (init_registers_mips64_dsp_linux): Likewise.
15391 (init_registers_mips_linux): New macro.
15392 (init_registers_mips_dsp_linux): Likewise.
15393 (mips_dsp_num_regs): Likewise.
15394 (DSP_BASE, DSP_CONTROL): New fallback macros.
15395 (mips_base_regs): New macro.
15396 (mips_regmap): Use it. Fix the size.
15397 (mips_dsp_regmap): New variable.
15398 (mips_dsp_regset_bitmap): Likewise.
15399 (mips_arch_setup): New function.
15400 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15401 than mips_regmap.
15402 (mips_cannot_store_register): Likewise.
15403 (the_low_target): Update .arch_setup, .num_regs and .regmap
15404 initializers. Add .regset_bitmap initializer.
15405 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15406 initializer.
15407 * linux-bfin-low.c (the_low_target): Likewise.
15408 * linux-cris-low.c (the_low_target): Likewise.
15409 * linux-crisv32-low.c (the_low_target): Likewise.
15410 * linux-ia64-low.c (the_low_target): Likewise.
15411 * linux-m32r-low.c (the_low_target): Likewise.
15412 * linux-m68k-low.c (the_low_target): Likewise.
15413 * linux-ppc-low.c (the_low_target): Likewise.
15414 * linux-s390-low.c (the_low_target): Likewise.
15415 * linux-sh-low.c (the_low_target): Likewise.
15416 * linux-sparc-low.c (the_low_target): Likewise.
15417 * linux-tic6x-low.c (the_low_target): Likewise.
15418 * linux-x86-low.c (the_low_target): Likewise.
15419 * linux-xtensa-low.c (the_low_target): Likewise.
15420 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15421 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15422 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15423 srv_xmlfiles.
15424 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15425 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15426
c03e6ccc
YQ
154272012-02-29 Yao Qi <yao@codesourcery.com>
15428 Pedro Alves <palves@redhat.com>
15429
15430 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15431 `step_over_finished' is true.
15432
644cebc9
PA
154332012-02-27 Pedro Alves <palves@redhat.com>
15434
15435 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15436 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15437
c14d7ab2
PA
154382012-02-27 Pedro Alves <palves@redhat.com>
15439
15440 PR server/9684
15441 * linux-low.c (pid_is_stopped): New.
15442 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15443
412c89dd
LM
154442012-02-25 Luis Machado <lgustavo@codesourcery.com>
15445
15446 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15447 of conditions.
15448
b745defe
MR
154492012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15450
15451 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15452
9f3a5c85
LM
154532012-02-24 Luis Machado <lgustavo@codesourcery>
15454
15455 * server.c (handle_query): Advertise support for target-side
15456 breakpoint condition evaluation.
15457 (process_point_options): New function.
15458 (process_serial_event): When inserting a breakpoint, check for
15459 a target-side condition that should be evaluated.
15460
15461 * mem-break.c: Include regcache.h and ax.h.
15462 (point_cond_list_t): New data structure.
15463 (breakpoint) <cond_list>: New field.
15464 (find_gdb_breakpoint_at): Make non-static.
15465 (delete_gdb_breakpoint_at): Clear any target-side
15466 conditions.
15467 (clear_gdb_breakpoint_conditions): New function.
15468 (add_condition_to_breakpoint): Likewise.
15469 (add_breakpoint_condition): Likewise.
15470 (gdb_condition_true_at_breakpoint): Likewise.
15471 (gdb_breakpoint_here): Return result directly instead
15472 of going through a local variable.
15473
15474 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15475 (clear_gdb_breakpoint_conditions): Likewise.
15476 (add_breakpoint_condition): Likewise.
15477 (gdb_condition_true_at_breakpoint): Likewise.
15478
15479 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15480 (need_step_over_p): Take target-side breakpoint condition into
15481 consideration.
15482
5e1dc496
LM
154832012-02-24 Luis Machado <lgustavo@codesourcery>
15484
15485 * server.h: Include tracepoint.h.
15486 (agent_mem_read, agent_get_trace_state_variable_value,
15487 agent_set_trace_state_variable_value,
15488 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15489 get_set_tsv_func_addr): New prototypes.
15490
15491 * ax.h: New include file.
15492 * ax.c: New source file.
15493
15494 * tracepoint.c: Include ax.h.
15495 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15496 agent_expr, eval_result_type): Move to ax.h.
15497 (parse_agent_expr): Rename to ...
15498 (gdb_parse_agent_expr): ... this, make it non-static and move
15499 to ax.h.
15500 (unparse_agent_expr) Rename to ...
15501 (gdb_unparse_agent_expr): ... this, make it non-static and move
15502 to ax.h.
15503 (eval_agent_expr): Rename to ...
15504 (eval_tracepoint_agent_expr): ... this.
15505 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15506 forward declarations.
15507 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15508 (agent_get_trace_state_variable_value): New function.
15509 (agent_set_trace_state_variable_value): New function.
15510 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15511 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15512 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15513 (condition_true_at_tracepoint): Likewise.
15514 (parse_agent_expr): Rename to ...
15515 (gdb_parse_agent_expr): ... this and move to ax.c.
15516 (unparse_agent_expr): Rename to ...
15517 (gdb_unparse_agent_expr): ... this and move to ax.c.
15518 (gdb_agent_op_name): Move to ax.c.
15519 (eval_agent_expr): Rename to ...
15520 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15521 and move to ax.c.
15522 (eval_tracepoint_agent_expr): New function.
15523 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15524 non-static.
5e1dc496
LM
15525 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15526 ax.c.
15527 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15528 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15529 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15530 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15531 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15532 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15533 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15534 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15535 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15536 (compile_bytecodes): Remove forward declaration.
15537 (is_goto_target): Move to ax.c.
15538 (compile_bytecodes): Move to ax.c and call
15539 agent_get_trace_state_variable_value (...) and
15540 agent_set_trace_state_variable_value (...).
15541
15542 * Makefile.in: Update ax.c and IPA dependencies.
15543
277e4e52
PA
155442012-02-24 Pedro Alves <palves@redhat.com>
15545
15546 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15547 (cmd_bigqtbuffer_circular): ... this. Only handle
15548 'QTBuffer:circular:'.
15549 (handle_tracepoint_general_set): Adjust.
15550
bf4c19f7
YQ
155512012-02-16 Yao Qi <yao@codesourcery.com>
15552
15553 * inferiors.c: Move code to ...
15554 * dll.c: .... here. New.
15555 * server.h: Declare clear_dlls.
15556 * Makefile.in (SFILES): Add dll.c.
15557 (OBS): Add dll.o
15558 (dll.o): New rule.
15559
d73f2619
YQ
155602012-02-11 Yao Qi <yao@codesourcery.com>
15561
15562 * server.c: (handle_monitor_command): Add a new parameter
15563 `own_buf'.
15564 (handle_query): Update caller.
15565
f8255c2a
JB
155662012-02-09 Joel Brobecker <brobecker@adacore.com>
15567
15568 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15569 * configure, config.in: Regenerate.
15570 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15571 is not defined.
15572
da84f473
PA
155732012-02-02 Pedro Alves <palves@redhat.com>
15574
15575 Try SIGKILL first, then PTRACE_KILL.
15576 * linux-low.c (linux_kill_one_lwp): New.
15577 (linux_kill_one_lwp): Rename to ...
15578 (kill_one_lwp_callback): ... this. Use the new
15579 linux_kill_one_lwp.
15580
e886a173
PA
155812012-02-02 Pedro Alves <palves@redhat.com>
15582
15583 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15584 inferior.
15585
be07f1a2
PA
155862012-01-27 Pedro Alves <palves@redhat.com>
15587
15588 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15589 (elf_64_file_p): Make static.
15590 (linux_pid_exe_is_elf_64_file): New.
15591 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15592 Delete declarations.
15593 (linux_pid_exe_is_elf_64_file): Declare.
15594 * linux-x86-low.c (x86_arch_setup): Use
15595 linux_pid_exe_is_elf_64_file.
15596
d8301ad1
JK
155972012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15598
15599 * linux-low.c (linux_wait_for_event_1): Rename to ...
15600 (linux_wait_for_event): ... here and merge it with former
15601 linux_wait_for_event - new variable wait_ptid, use it.
15602 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15603
01b17894
PA
156042012-01-23 Pedro Alves <palves@redhat.com>
15605
15606 * server.c (main): Avoid yet another case of infinite loop while
15607 detaching/killing after a longjmp.
15608
e825046f
JK
156092012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15610
15611 Code cleanup.
15612 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15613
b9e7b9c3
UW
156142012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15615
15616 * hostio.c (handle_readlink): New function.
15617 (handle_vFile): Call it to handle "vFile:readlink" packets.
15618
901f9912
UW
156192012-01-20 Pedro Alves <palves@redhat.com>
15620 Ulrich Weigand <ulrich.weigand@linaro.org>
15621
15622 * server.c (handle_v_requests): Only support vAttach and vRun to
15623 start multiple processes when in extended protocol mode.
15624
fc1ab1a0
PA
156252012-01-17 Pedro Alves <palves@redhat.com>
15626
15627 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15628 memalign plus mprotect to allocate the scratch buffer.
15629
7d5d4e98
PA
156302012-01-13 Pedro Alves <palves@redhat.com>
15631
15632 * server.c (attach_inferior): Clear `cont_thread'.
15633
f128d5e9
PA
156342012-01-13 Pedro Alves <palves@redhat.com>
15635
15636 * server.c (main): Avoid infinite loop while detaching/killing
15637 after a longjmp.
15638
06db92f0
DE
156392012-01-09 Doug Evans <dje@google.com>
15640
15641 * server.c (start_inferior): Set last_ptid in --wrapper case.
15642
32d92999
YQ
156432012-01-06 Yao Qi <yao@codesourcery.com>
15644
15645 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15646 defined.
15647 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15648
5e0a92a9
YQ
156492012-01-04 Yao Qi <yao@codesourcery.com>
15650
15651 * tracepoint.c (cmd_qtdp): Print debug message
15652 for static tracepoint.
15653
ae639e8c
YQ
156542012-01-04 Yao Qi <yao@codesourcery.com>
15655
15656 * tracepoint.c (trace_vdebug): Differentiate debug message
15657 between gdbserver and IPA.
15658
f72429c5
YQ
156592012-01-03 Yao Qi <yao@codesourcery.com>
15660
15661 * tracepoint.c (tracepoint_was_hit): Don't collect for
15662 static tracepoint.
15663
12c3e59c
JB
156642012-01-02 Joel Brobecker <brobecker@adacore.com>
15665
15666 * terminal.h: Reformat copyright header.
15667
67827812
JB
156682012-01-02 Joel Brobecker <brobecker@adacore.com>
15669
15670 * server.c (gdbserver_version): Update copyright year.
15671 * gdbreplay.c (gdbreplay_version): Likewise.
15672
3e52c33d
JK
156732011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15674
15675 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15676
15677 Revert:
15678 2011-12-18 Hui Zhu <teawater@gmail.com>
15679 * linux-low.c (linux_create_inferior): Save return value to ret.
15680
66f1260e
HZ
156812011-12-18 Hui Zhu <teawater@gmail.com>
15682
15683 * linux-low.c (linux_create_inferior): Save return value to ret.
15684
e77616d7
DE
156852011-12-16 Doug Evans <dje@google.com>
15686
e7b06c57
DE
15687 * linux-low.c (linux_create_inferior): If stdio connection,
15688 redirect stdin from /dev/null, stdout to stderr.
15689 * remote-utils.c (remote_is_stdio): New static global.
15690 (remote_connection_is_stdio): New function.
15691 (remote_prepare): Handle stdio connection.
15692 (remote_open): Ditto.
15693 (remote_close): Don't close stdin for stdio connections.
15694 (read_prim,write_prim): New functions. Replace all calls to
15695 read/write to these.
15696 * server.c (main): Watch for "-" argument. Move call to
15697 remote_prepare before start_inferior.
15698 * server.h (STDIO_CONNECTION_NAME): New macro.
15699 (remote_connection_is_stdio): Declare.
15700
e77616d7
DE
15701 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15702 in debugging output.
15703
82067193
YQ
157042011-12-15 Yao Qi <yao@codesourcery.com>
15705
15706 * tracepoint.c: Include sys/syscall.h.
15707 (gdb_ust_thread): Remove preprocessor conditional.
15708
82bfbe7e
PA
157092011-12-14 Pedro Alves <pedro@codesourcery.com>
15710
15711 * linux-low.c (linux_detach_one_lwp): Call
15712 the_low_target.prepare_to_resume before detaching.
15713
712c6575
YQ
157142011-12-14 Yao Qi <yao@codesourcery.com>
15715
15716 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15717 of write.
15718
d54d1edf
YQ
157192011-12-14 Yao Qi <yao@codesourcery.com>
15720
15721 * i386-low.c (i386_low_stopped_data_address): Initialize local
15722 variable `control'.
15723
6210a125
PA
157242011-12-13 Pedro Alves <pedro@codesourcery.com>
15725
15726 PR remote/13492
15727
15728 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15729 DR_CONTROL unless necessary. Extend comments.
15730 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15731 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15732
2ece8244
YQ
157332011-12-13 Yao Qi <yao@codesourcery.com>
15734
15735 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15736 macros.
15737 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15738
784867a5
JK
157392011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15740
15741 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15742 Print new debug message for such case.
15743
6bf36717
JK
157442011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15745
15746 Fix overlapping memcpy.
15747 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15748 the read_inferior_memory transfer.
15749 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15750 write_inferior_memory transfer.
15751 (set_fast_tracepoint_jump): New variable buf. Use it for the
15752 read_inferior_memory and write_inferior_memory transfers.
15753 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15754 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15755 Use it for the write_inferior_memory transfer.
15756 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15757 buffers.
15758
50275556
MR
157592011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15760
15761 * linux-low.c (fetch_register, store_register): Make code
15762 consistent, fix formatting.
15763
7325beb4
MR
157642011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15765
15766 * linux-low.c (usr_store_inferior_registers): Factor out code
15767 to handle individual registers into...
15768 (store_register): ... this new function.
15769
c642a434
UW
157702011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15771
15772 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15773 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15774 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15775 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15776 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15777 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15778 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15779 (srv_xmlfiles): Add new XML files.
15780
15781 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15782 and <sys/uio.h>.
15783 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15784 (init_registers_s390_linux32v1): Add prototype.
15785 (init_registers_s390_linux32v2): Likewise.
15786 (init_registers_s390_linux64v1): Likewise.
15787 (init_registers_s390_linux64v2): Likewise.
15788 (init_registers_s390x_linux64v1): Likewise.
15789 (init_registers_s390x_linux64v2): Likewise.
15790 (s390_num_regs): Increment to 52.
15791 (s390_regmap): Add orig_r2 register.
15792 (s390_num_regs_3264): Increment to 68.
15793 (s390_regmap_3264): Add orig_r2 register.
15794 (s390_collect_ptrace_register): Handle orig_r2 register.
15795 (s390_supply_ptrace_register): Likewise.
15796 (s390_fill_last_break): New function.
15797 (s390_store_last_break): Likewise.
15798 (s390_fill_system_call): New function.
15799 (s390_store_system_call): Likewise.
15800 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15801 register sets.
15802 (s390_check_regset): New function.
15803 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15804 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15805 Update target_regsets for available register sets.
15806
2268b414
JK
158072011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15808 Jan Kratochvil <jan.kratochvil@redhat.com>
15809
15810 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15811 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15812 New.
15813 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15814 * linux-low.h (struct process_info_private): New member r_debug.
15815 * server.c (handle_qxfer_libraries): Call
15816 the_target->qxfer_libraries_svr4.
15817 (handle_qxfer_libraries_svr4): New function.
15818 (qxfer_packets): New entry "libraries-svr4".
15819 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15820 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15821 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15822 PACKET_qXfer_libraries_svr4.
15823
d6db1fab
UW
158242011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15825
15826 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15827 PSW address/mask between 8-byte and 16-byte formats.
15828 (s390_supply_ptrace_register): Likewise.
15829 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15830 basic addressing mode bit.
15831
242f5f1c
SS
158322011-11-24 Stan Shebs <stan@codesourcery.com>
15833
15834 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15835
f196051f
SS
158362011-11-17 Stan Shebs <stan@codesourcery.com>
15837
15838 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15839 (tracing_start_time): New global.
15840 (tracing_stop_time): New global.
15841 (tracing_user_name): New global.
15842 (tracing_notes): New global.
15843 (tracing_stop_note): New global.
15844 (cmd_qtstart): Set traceframe_usage, start_time.
15845 (stop_tracing): Set stop_time.
15846 (cmd_qtstatus): Report additional status.
15847 (cmd_qtp): New function.
15848 (handle_tracepoint_query): Call it.
15849 (cmd_qtnotes): New function.
15850 (handle_tracepoint_general_set): Call it.
15851 (get_timestamp): Rename from tsv_get_timestamp.
15852
405f8e94
SS
158532011-11-14 Stan Shebs <stan@codesourcery.com>
15854 Kwok Cheung Yeung <kcy@codesourcery.com>
15855
15856 * linux-x86-low.c (small_jump_insn): New.
15857 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15858 trampoline and error message, build a trampoline and issue a small
15859 jump instruction to it.
15860 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15861 trampoline and error message.
15862 (x86_get_min_fast_tracepoint_insn_len): New.
15863 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15864 * linux-low.h (struct linux_target_ops): Add arguments to
15865 install_fast_tracepoint_jump_pad operation, add new operation.
15866 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15867 arguments.
15868 (linux_get_min_fast_tracepoint_insn_len): New function.
15869 (linux_target_op): Add new operation.
15870 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15871 (gdb_trampoline_buffer_end): Ditto.
15872 (gdb_trampoline_buffer_error): Ditto.
15873 (struct ipa_sym_addresses): Add fields for new IPA variables.
15874 (symbol_list): Add entries for new IPA variables.
15875 (struct tracepoint): Add fields to hold the address range of the
15876 trampoline used by the tracepoint.
15877 (trampoline_buffer_head): New static variable.
15878 (trampoline_buffer_tail): Ditto.
15879 (claim_trampoline_space): New function.
15880 (have_fast_tracepoint_trampoline_buffer): New function.
15881 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15882 structure.
15883 (install_fast_tracepoint): Ditto, also add error buffer argument.
15884 (cmd_qtminftpilen): New function.
15885 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15886 (fast_tracepoint_from_trampoline_address): New function.
15887 (fast_tracepoint_collecting): Handle trampoline as part of jump
15888 pad space.
15889 (set_trampoline_buffer_space): New function.
15890 (initialize_tracepoint): Initialize new IPA variables.
15891 * target.h (struct target_ops): Add arguments to
15892 install_fast_tracepoint_jump_pad operation, add new
15893 get_min_fast_tracepoint_insn_len operation.
15894 (target_get_min_fast_tracepoint_insn_len): New.
15895 (install_fast_tracepoint_jump_pad): Add arguments.
15896 * server.h (IPA_BUFSIZ): Define.
15897 * linux-i386-ipa.c: Include extra header files.
15898 (initialize_fast_tracepoint_trampoline_buffer): New function.
15899 (initialize_low_tracepoint): Call it.
15900 * server.h (set_trampoline_buffer_space): Declare.
15901 (claim_trampoline_space): Ditto.
15902 (have_fast_tracepoint_trampoline_buffer): Ditto.
15903
1e4d1764
YQ
159042011-11-14 Yao Qi <yao@codesourcery.com>
15905
15906 * server.c (handle_query): Handle InstallInTrace for qSupported.
15907 * tracepoint.c (add_tracepoint): Sort list.
15908 (install_tracepoint, download_tracepoint): New.
15909 (cmd_qtdp): Call them to install and download tracepoints.
15910 (sort_tracepoints): Removed.
15911 (cmd_qtstart): Update.
15912
5c73ff4e
YQ
159132011-11-14 Yao Qi <yao@codesourcery.com>
15914
15915 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15916 * mem-break.h: Declare.
15917 * tracepoint.c (cmd_qtstart): Move some code to ...
15918 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15919 New.
15920 (download_tracepoints): Move some code to ...
15921 (download_tracepoint_1): ... here. New.
15922
86a30030
YQ
159232011-11-08 Yao Qi <yao@codesourcery.com>
15924
15925 * remote-utils.c (relocate_instruction): A comment fix.
15926
8d26e50c
JB
159272011-11-07 Joel Brobecker <brobecker@adacore.com>
15928
15929 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15930 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15931 dr_status_mirror and dr_control_mirror from debug_reg_state.
15932 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15933 (i386_initial_stuff): Remove use of deleted globals.
15934 (i386_get_thread_context, i386_set_thread_context,
15935 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15936 from debug_reg_state.
15937
a59306a3
YQ
159382011-11-05 Yao Qi <yao@codesourcery.com>
15939
15940 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15941 address as TPOINT's.
15942
3065dfb6
SS
159432011-11-02 Stan Shebs <stan@codesourcery.com>
15944
15945 * tracepoint.c (agent_mem_read_string): New function.
15946 (eval_agent_expr): Call it for tracenz.
15947 * server.c (handle_query): Report support for tracenz.
15948
fd0d8c7c
YQ
159492011-11-02 Yao Qi <yao@codesourcery.com>
15950
15951 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15952
609086b1
YQ
159532011-11-02 Yao Qi <yao@codesourcery.com>
15954
15955 * target.h: Fix a typo in comment.
15956
b9fd1791
PA
159572011-10-31 Pedro Alves <pedro@codesourcery.com>
15958
15959 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15960 clobber the breakpoints' shadows with fast tracepoint jumps.
15961 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15962 * target.c (write_inferior_memory): Also pass MYADDR down to
15963 check_mem_write.
15964
03583c20
UW
159652011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15966
15967 * configure.ac: Check support for personality routine.
15968 * configure: Regenerate.
15969 * config.in: Likewise.
15970 * linux-low.c: Include <sys/personality.h>.
15971 Define ADDR_NO_RANDOMIZE if necessary.
15972 (linux_create_inferior): Disable address space randomization when
15973 forking inferior, if requested.
15974 (linux_supports_disable_randomization): New function.
15975 (linux_target_ops): Install it.
15976 * server.h (disable_randomization): Declare.
15977 * server.c (disable_randomization): New global variable.
15978 (handle_general_set): Handle QDisableRandomization.
15979 (handle_query): Likewise for qSupported.
15980 (main): Support --disable-randomization and --no-disable-randomization
15981 command line arguments.
15982 * target.h (struct target_ops): Add supports_disable_randomization.
15983 (target_supports_disable_randomization): New macro.
15984
723b724b
MF
159852011-09-29 Mike Frysinger <vapier@gentoo.org>
15986
15987 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15988 ifdef check.
15989 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15990 [!PT_GETDSBT] (target_loadmap): New definition.
15991 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15992 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15993 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15994 and PT_GETDSBT to LINUX_LOADMAP.
15995 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15996 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15997
55329a5c 159982011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
15999
16000 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16001 (arm_linux_hwbp_cap): New static variable.
16002 (arm_linux_get_hwbp_cap): Replace by ...
16003 (arm_linux_init_hwbp_cap): ... this new function.
16004 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16005 (arm_linux_get_hw_watchpoint_count): Likewise.
16006 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16007 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16008 (arm_prepare_to_resume): Use perror_with_name instead of error.
16009
55329a5c 160102011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16011
16012 * linux-arm-low.c: Include <signal.h>.
16013 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16014 (struct arm_linux_hwbp_cap): New data type.
16015 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16016 (struct arm_linux_hw_breakpoint): New data type.
16017 (MAX_BPTS, MAX_WPTS): Define.
16018 (struct arch_process_info, struct arch_lwp_info): New data types.
16019 (arm_linux_get_hwbp_cap): New function.
16020 (arm_linux_get_hw_breakpoint_count): Likewise.
16021 (arm_linux_get_hw_watchpoint_count): Likewise.
16022 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16023 (arm_hwbp_control_initialize): Likewise.
16024 (arm_hwbp_control_is_enabled): Likewise.
16025 (arm_hwbp_control_is_initialized): Likewise.
16026 (arm_hwbp_control_disable): Likewise.
16027 (arm_linux_hw_breakpoint_equal): Likewise.
16028 (arm_linux_hw_point_initialize): Likewise.
16029 (struct update_registers_data): New data structure.
16030 (update_registers_callback: New function.
16031 (arm_insert_point): Likewise.
16032 (arm_remove_point): Likewise.
16033 (arm_stopped_by_watchpoint): Likewise.
16034 (arm_stopped_data_address): Likewise.
16035 (arm_new_process): Likewise.
16036 (arm_new_thread): Likewise.
16037 (arm_prepare_to_resume): Likewise.
16038 (the_low_target): Register arm_insert_point, arm_remove_point,
16039 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16040 arm_new_thread, and arm_prepare_to_resume.
16041
6b9801d4
SS
160422011-09-15 Stan Shebs <stan@codesourcery.com>
16043
16044 * server.h (struct emit_ops): Add compare-goto fields.
16045 * tracepoint.c (gdb_agent_op_sizes): New table.
16046 (emit_eq_goto): New function.
16047 (emit_ne_goto): New function.
16048 (emit_lt_goto): New function.
16049 (emit_le_goto): New function.
16050 (emit_gt_goto): New function.
16051 (emit_ge_goto): New function.
16052 (is_goto_target): New function.
16053 (compile_bytecodes): Recognize special cases of compare-goto
16054 combinations and call specialized emitters for them.
16055 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16056 (amd64_emit_ne_goto): New function.
16057 (amd64_emit_lt_goto): New function.
16058 (amd64_emit_le_goto): New function.
16059 (amd64_emit_gt_goto): New function.
16060 (amd64_emit_ge_goto): New function.
16061 (amd64_emit_ops): Add the new functions.
16062 (i386_emit_eq_goto): New function.
16063 (i386_emit_ne_goto): New function.
16064 (i386_emit_lt_goto): New function.
16065 (i386_emit_le_goto): New function.
16066 (i386_emit_gt_goto): New function.
16067 (i386_emit_ge_goto): New function.
16068 (i386_emit_ops): Add the new functions.
16069
bf15cbda
SS
160702011-09-08 Stan Shebs <stan@codesourcery.com>
16071
16072 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16073 (i386_emit_epilogue): Restore %ebx.
16074
943ca1dd
JZ
160752011-08-31 Jie Zhang <jzhang918@gmail.com>
16076
16077 * server.c (step_thread): Remove definition.
16078 (process_serial_event): Don't handle Hs.
16079 * server.h (step_thread): Remove declaration.
16080 * target.c (set_desired_inferior): Remove use of step_thread.
16081
e3deef73
LM
160822011-08-24 Luis Machado <lgustavo@codesourcery.com>
16083
16084 * linux-low.c: Include linux-procfs.h.
16085 (linux_attach_lwp_1): Update comments.
16086 (linux_attach): Scan for existing threads when attaching to a
16087 process that is the tgid.
16088 * Makefile.in: Update dependencies.
16089
13da1c97
LM
160902011-08-24 Luis Machado <lgustavo@codesourcery.com>
16091
16092 * configure.srv: Add linux-procfs.o dependencies.
16093
881127c9
YQ
160942011-08-14 Yao Qi <yao@codesourcery.com>
16095
16096 * target.h (struct target_ops): Fix indent.
16097 * win32-low.c (win32_target_ops): Fix comment.
16098
58dbd541
YQ
160992011-08-14 Andrew Jenner <andrew@codesourcery.com>
16100 Yao Qi <yao@codesourcery.com>
16101
16102 * Makefile.in (clean): Remove tic6x-*.c files.
16103 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16104 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16105 (tic6x-c64xp-linux.c): Likewise.
16106 * configure.srv: Add support for tic6x-*-uclinux.
16107 * linux-tic6x-low.c: New.
16108 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16109
78d85199
YQ
161102011-08-14 Andrew Stubbs <ams@codesourcery.com>
16111 Yao Qi <yao@codesourcery.com>
16112
16113 * target.h (struct target_ops): Add read_loadmap.
16114 * linux-low.c (struct target_loadseg): New type.
16115 (struct target_loadmap): New type.
16116 (linux_read_loadmap): New function.
16117 (linux_target_ops): Add linux_read_loadmap.
16118 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16119 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16120 to NULL.
78d85199 16121
a959a88d
EZ
161222011-08-05 Eli Zaretskii <eliz@gnu.org>
16123
16124 * win32-low.c: Include <stdint.h>.
16125
1ced966e
PA
161262011-07-22 Pedro Alves <pedro@codesourcery.com>
16127
16128 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16129 to the inferior here.
16130 (i386_remove_aligned_watchpoint): Ditto.
16131 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16132 fit part of the watchpoint in the debug registers.
16133 (i386_update_inferior_debug_regs): New.
16134 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16135 registers, and only update the inferior on success.
16136 (i386_low_remove_watchpoint): Ditto.
16137
d26e3629
KY
161382011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16139
16140 * linux-low.c (compare_ints, unique, list_threads, show_process,
16141 linux_core_of_thread): Delete.
16142 (linux_target_ops): Change linux_core_of_thread to
16143 linux_common_core_of_thread.
16144 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16145 * utils.c (malloc_failure): Change type of argument.
16146 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16147 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16148 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16149 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16150 (IPA_OBJS): Add common-utils-ipa.o.
16151 (ptid_h, linux_osdata_h): New macros.
16152 (server_h): Add common/common-utils.h, common/xml-utils.h,
16153 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16154 common/ptid.h.
16155 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16156 ptid.o, buffer.o): New rules.
16157 (linux-low.o): Add common/linux-osdata.h as a dependency.
16158 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16159 * configure.ac: Add AC_HEADER_DIRENT check.
16160 * config.in: Regenerate.
16161 * configure: Regenerate.
16162 * remote-utils.c (xml_escape_text): Delete.
16163 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16164 buffer_xml_printf): Move to common/buffer.c.
16165 * server.c (main): Remove call to initialize_inferiors.
16166 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16167 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16168 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16169 internal_error, gdb_assert, gdb_assert_fail): Delete.
16170 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16171 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16172 common/buffer.h.
16173 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16174 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16175 initialize_inferiors): Delete.
16176
2275a1a7
PA
161772011-07-20 Pedro Alves <pedro@codesourcery.com>
16178
16179 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16180 symbol error.
16181
0a5b1e09
PA
161822011-05-31 Pedro Alves <pedro@codesourcery.com>
16183
16184 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16185 assertion.
16186 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16187
6938fd34
YQ
161882011-05-26 Yao Qi <yao@codesourcery.com>
16189
16190 * Makefile.in (thread-db.o): Track dependence to
16191 common/gdb_thread_db.h.
16192 * thread-db.c: include gdb_thread_db.h from right place.
16193
b481f9e0
TT
161942011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16195
16196 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16197 __FILE__ and __LINE__ to internal_error.
16198
98a5dd13
DE
161992011-05-13 Doug Evans <dje@google.com>
16200
16201 * thread-db.c (try_thread_db_load_from_sdir): New function.
16202 (try_thread_db_load_from_dir): New function.
16203 (thread_db_load_search): Handle $sdir, ignore $pdir.
16204 Remove trying of system directories if search of
16205 libthread-db-search-path fails, that is now done via $sdir.
16206
d248b706
KY
162072011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16208
16209 * server.c (handle_query): Add EnableDisableTracepoints to the list
16210 of supported features.
43aaf8b6 16211 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16212 tracepoints.
43aaf8b6
PA
16213 (cmd_qtenable_disable): New.
16214 (cmd_qtstart): Install tracepoints even if disabled.
16215 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16216 receiving a QTEnable or QTDisable packet.
16217 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16218 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16219 tracepoints.
16220 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16221
84e578fb
DE
162222011-05-10 Doug Evans <dje@google.com>
16223
16224 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16225
71f55dd8
DE
162262011-05-04 Doug Evans <dje@google.com>
16227
16228 * linux-low.c (linux_join): Skip process lookup.
16229 * spu-low.c (spu_join): Ditto.
16230 * server.c (join_inferiors_callback): Delete.
16231 (process_serial_event): For 'D' packet (detach) call join_inferior
16232 directly.
16233
4d393d60
JM
162342011-05-04 Joseph Myers <joseph@codesourcery.com>
16235
16236 * README: Don't mention xscale*-*-linux*.
16237 * configure.srv (xscale*-*-linux*): Don't handle target.
16238
b00ad6ff
NF
162392011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16240
16241 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16242 casting pointers.
16243 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16244 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16245 (i386_emit_void_call_2): Likewise.
16246
af96c192
YQ
162472011-04-26 Yao Qi <yao@codesourcery.com>
16248
43aaf8b6
PA
16249 * linux-low.c: Move common macros to linux-ptrace.h.
16250 Include linux-ptrace.h.
af96c192
YQ
16251 * Makefile.in (linux_ptrace_h): New.
16252 (linux-low.o): Depends on linux-ptrace.h.
16253
03f2bd59
JK
162542011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16255
16256 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16257 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16258 (remote_prepare): New function with most of the TCP code from ...
16259 (remote_open): ... here. Detect PORT here unconditionally. Move also
16260 setting transport_is_reliable.
16261 * server.c (run_once): New variable.
16262 (gdbserver_usage): Document it.
16263 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16264 the first run if RUN_ONCE.
16265 * server.h (run_once, remote_prepare): New declarations.
16266
7a9dd1b2
TT
162672011-04-19 Tom Tromey <tromey@redhat.com>
16268
16269 * win32-low.c (handle_load_dll): Remove duplicate "the".
16270
81239425
PM
162712011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16272
16273 Remove support for old Cygwin 1.5 versions.
16274 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16275 function to avoid warning.
16276 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16277 warning.
16278
9e0627f1
PM
162792011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16280
16281 * gdbserver/server.h (Macro _): Define it if not available.
16282
588eebee
MS
162832011-03-14 Michael Snyder <msnyder@vmware.com>
16284
348af9f7 16285 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16286
43f70d4c
JB
162872011-03-10 Joel Brobecker <brobecker@adacore.com>
16288
16289 * Makefile.in (maintainer-clean realclean distclean): Remove
16290 "make ... subdir_do" command.
16291
348af9f7
MS
162922011-03-10 Michael Snyder <msnyder@vmware.com>
16293
16294 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16295
16296 * server.c (handle_v_run): Free alloced buffer on early return.
16297
e637a4f5
YQ
162982011-03-09 Yao Qi <yao@codesourcery.com>
16299
16300 Revert:
16301 2011-03-04 Yao Qi <yao@codesourcery.com>
16302
16303 * Makefile.in: Remove GNU make feature --directory.
16304
16305 2011-03-05 Yao Qi <yao@codesourcery.com>
16306
16307 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16308 (subdir_do): New make target. Copied from gdb/Makefile.
16309 (maintainer-clean, realclean, distclean, clean): Call corresponding
16310 make targets in common/Makefile.
16311
16312 2011-02-11 Yao Qi <yao@codesourcery.com>
16313
16314 * configure.ac: Call AC_PROG_RANLIB.
16315 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16316 * configure: Regenerate.
16317
e6edda56
JK
163182011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16319
16320 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16321
e5141119
JB
163222011-03-06 Yao Qi <yao@codesourcery.com>
16323
16324 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16325
64794aa4
JB
163262011-03-05 Yao Qi <yao@codesourcery.com>
16327
16328 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16329 (subdir_do): New make target. Copied from gdb/Makefile.
16330 (maintainer-clean, realclean, distclean, clean): Call corresponding
16331 make targets in common/Makefile.
16332
7a762829
YQ
163332011-03-04 Yao Qi <yao@codesourcery.com>
16334
16335 * Makefile.in: Remove GNU make feature --directory.
16336
348af9f7
MS
163372011-03-04 Michael Snyder <msnyder@vmware.com>
16338
16339 * server.c (queue_stop_reply): Call xmalloc not malloc.
16340
163412011-03-02 Michael Snyder <msnyder@vmware.com>
16342
16343 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16344
9f72fee2
MS
163452011-02-28 Michael Snyder <msnyder@vmware.com>
16346
588eebee
MS
16347 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16348 (cmd_qtframe): Ditto.
16349 (cmd_qtbuffer): Ditto.
16350 (cmd_bigqtbuffer): Ditto.
16351
9f72fee2
MS
16352 * utils.c (decimal2str): Initialize 'width' to nine, then
16353 don't mess with it.
16354
8040bd49
UW
163552011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16356
16357 * hostio.c (require_data): Free *data, not data.
16358
7e52cbd0
JK
163592011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16360
16361 * hostio.c (require_data): Use free, not xfree.
16362
9130f83e
MS
163632011-02-27 Michael Snyder <msnyder@vmware.com>
16364
4b812f4e
MS
16365 * server.c (handle_query): Discard unused value.
16366
9130f83e
MS
16367 * hostio.c (require_data): Free malloc memory before returning
16368 error.
16369
69d37113
MS
163702011-02-26 Michael Snyder <msnyder@vmware.com>
16371
16372 * linux-low.c (list_threads): Call closedir for dirent.
16373
35f5825a
MS
163742011-02-27 Michael Snyder <msnyder@vmware.com>
16375
2a589cef
MS
16376 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16377 a case statement falls through.
16378
0adea5f7
MS
16379 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16380
35f5825a
MS
16381 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16382 in comparison.
16383
238f1c74
MS
163842011-02-26 Michael Snyder <msnyder@vmware.com>
16385
16386 * utils.c (decimal2str): Eliminate dead code and dead param.
16387 (pulongest): Drop dead param from call to decimal2str.
16388 (plongest): Ditto.
16389
633ff500
JB
163902011-02-24 Joel Brobecker <brobecker@adacore.com>
16391
16392 Revert the following patch (not approved yet):
16393 2011-02-21 Hui Zhu <teawater@gmail.com>
16394 * tracepoint.c (tp_printf): New function.
16395 (eval_agent_expr): Handle gdb_agent_op_printf.
16396
f9c6ff72
HZ
163972011-02-21 Hui Zhu <teawater@gmail.com>
16398
16399 * tracepoint.c (tp_printf): New function.
16400 (eval_agent_expr): Handle gdb_agent_op_printf.
16401
94d5e490
TT
164022011-02-18 Tom Tromey <tromey@redhat.com>
16403
16404 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16405 (tracepoint.o): Likewise.
16406 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16407 (gdb_agent_op_names): Likewise.
16408
c7f96d2b
TT
164092011-02-18 Tom Tromey <tromey@redhat.com>
16410
16411 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16412 gdb_agent_op_rot>: New constants.
16413 (gdb_agent_op_names): Add pick and roll.
16414 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16415 cases.
16416
0feedb2c
JK
164172011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16418
16419 * aclocal.m4: Regenerated with aclocal-1.11.1.
16420
b3b9301e
PA
164212011-02-14 Pedro Alves <pedro@codesourcery.com>
16422
16423 * server.c (handle_qxfer_traceframe_info): New.
16424 (qxfer_packets): Register "traceframe-info".
16425 (handle_query): Report support for qXfer:traceframe-info:read+.
16426 * tracepoint.c (match_blocktype): New.
16427 (traceframe_find_block_type): Rename to ...
16428 (traceframe_walk_blocks): ... this. Add callback filter argument,
16429 and use it.
16430 (traceframe_find_block_type): New, reimplemented on top of
16431 traceframe_walk_blocks.
16432 (build_traceframe_info_xml): New.
16433 (traceframe_read_info): New.
16434 * server.h (traceframe_read_info): Declare.
16435
4f3e6fb7
YQ
164362011-02-11 Yao Qi <yao@codesourcery.com>
16437
16438 * configure.ac: Call AC_PROG_RANLIB.
16439 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16440 * configure: Regenerate.
16441
764880b7
PA
164422011-02-07 Pedro Alves <pedro@codesourcery.com>
16443
16444 * server.c (gdb_read_memory): Change return semantics to allow
16445 partial transfers.
16446 (handle_search_memory_1): Adjust.
16447 (process_serial_event) <'m' packet>: Handle partial transfers.
16448 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16449
1c79eb8a
PA
164502011-01-28 Pedro Alves <pedro@codesourcery.com>
16451
16452 * regcache.c (init_register_cache): Initialize
16453 regcache->register_status.
16454 (free_register_cache): Release regcache->register_status.
16455 (regcache_cpy): Copy register_status.
16456 (registers_to_string): Print 'x's for unavailable registers.
16457 (supply_register): Mark the register's status valid or
16458 unavailable, depending on whether a buffer was passed in or not.
16459 (supply_register_zeroed): New.
16460 (supply_regblock): Mark the registers' status valid or
16461 unavailable, depending on whether a buffer was passed in or not.
16462 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16463 (struct regcache): New `register_status' field.
16464 (supply_register_zeroed): Declare.
16465 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16466 supply_register_zeroed, rather than passing a NULL buffer to
16467 supply_register.
16468 * tracepoint.c (fetch_traceframe_registers): Update comment.
16469
85724a0e
PA
164702011-01-28 Pedro Alves <pedro@codesourcery.com>
16471
16472 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16473 buffer explicit.
16474
d08aafef
PA
164752011-01-25 Pedro Alves <pedro@codesourcery.com>
16476
16477 * server.h (decode_xfer_write): Change prototype.
16478 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16479 and don't extract the annex here.
16480 * server.c (decode_xfer_read): Remove `annex' parameter,
16481 and don't extract the annex here.
16482 (decode_xfer): New.
16483 (struct qxfer): New.
16484 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16485 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16486 (handle_qxfer_statictrace): New functions, abstracted out from
16487 handle_query, and made to use the struct qxfer interface.
16488 (handle_threads_qxfer_proper): Rename to ...
16489 (handle_qxfer_threads_proper): ... this.
16490 (handle_threads_qxfer): Rename to ...
16491 (handle_qxfer_threads): ... this. Adjust.
16492 (qxfer_packets): New array.
16493 (handle_qxfer): New function.
16494 (handle_query): Use handle_qxfer.
16495
493e2a69
MS
164962011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16497
16498 * gdbreplay.c: Shorten lines of >= 80 columns.
16499 * linux-low.c: Ditto.
16500 * linux-ppc-low.c: Ditto.
16501 * linux-s390-low.c: Ditto.
16502 * linux-sparc-low.c: Ditto.
16503 * linux-x86-low.c: Ditto.
16504 * linux-xtensa-low.c: Ditto.
16505 * mem-break.c: Ditto.
16506 * nto-low.c: Ditto.
16507 * regcache.h: Ditto.
16508 * remote-utils.c: Ditto.
16509 * server.c: Ditto.
16510 * server.h: Ditto.
16511 * thread-db.c: Ditto.
16512 * tracepoint.c: Ditto.
16513 * utils.c: Ditto.
16514 * win32-low.h: Ditto.
16515
44944448
JB
165162011-01-05 Joel Brobecker <brobecker@adacore.com>
16517
16518 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16519 update.
16520
71ce852c
JB
165212011-01-01 Joel Brobecker <brobecker@adacore.com>
16522
16523 * server.c (gdbserver_version): Update copyright year in version
16524 output.
16525 * gdbreplay.c (gdbreplay_version): Ditto.
16526
eb826dc6
MF
165272010-12-29 Jie Zhang <jie.zhang@analog.com>
16528
16529 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16530 * linux-bfin-low.c: New file.
16531 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16532 PT_DATA_ADDR for BFIN targets.
16533 * Makefile.in (SFILES): Add linux-bfin-low.c.
16534 (clean): Remove reg-bfin.c.
16535 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16536 * README: Mention supported Blackfin targets.
16537
39ab222a
MF
165382010-12-23 Mike Frysinger <vapier@gentoo.org>
16539
16540 * .gitignore: New file.
16541
a1f2ce7d
MF
165422010-11-16 Mike Frysinger <vapier@gentoo.org>
16543
16544 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16545
f474844c
JZ
165462010-10-22 Jie Zhang <jie@codesourcery.com>
16547
16548 * Makefile.in: Add FLAGS_TO_PASS variable.
16549 (install): Remove dependency of install-only and recursively
16550 invoke make for install-only.
16551
f1048712
DE
165522010-10-04 Doug Evans <dje@google.com>
16553
16554 * Makefile.in (uninstall): Use $(DESTDIR).
16555
b53a1623
PA
165562010-09-24 Pedro Alves <pedro@codesourcery.com>
16557
e6ee044d
PA
16558 PR gdb/11842
16559
b53a1623
PA
16560 * linux-x86-low.c (compat_siginfo_from_siginfo)
16561 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16562 si_code is < 0. Check for si_code == SI_TIMER before checking for
16563 si_code < 0.
16564
fa1bd1e4
JB
165652010-09-13 Joel Brobecker <brobecker@adacore.com>
16566
16567 * lynx-i386-low.c: New file.
16568 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16569
47fac8f8
JB
165702010-09-13 Joel Brobecker <brobecker@adacore.com>
16571
16572 * lynx-low.c (ptrace_request_to_str): Remove handling for
16573 request values that have been removed in LynxOS 5.x.
16574
1adfc54d
JB
165752010-09-13 Joel Brobecker <brobecker@adacore.com>
16576
16577 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16578 <ptrace.h>
16579
c2a66c29
NS
165802010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16581
16582 * configure.ac: Add --enable-inprocess-agent option.
16583 * configure: Rebuilt.
16584
32fcada3
YQ
165852010-09-06 Yao Qi <yao@codesourcery.com>
16586
16587 * linux-low.c (linux_kill): Remove unused variable.
16588 (linux_stabilize_threads): Likewise.
16589 * server.c (start_inferior): Likewise.
16590 (queue_stop_reply_callback): Likewise.
16591 * tracepoint.c (do_action_at_tracepoint): Likewise.
16592
0cccb683
YQ
165932010-09-06 Yao Qi <yao@codesourcery.com>
16594
16595 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16596 on return.
16597
423ec54c
JK
165982010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16599
16600 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16601
12ac6819
PA
166022010-09-06 Pedro Alves <pedro@codesourcery.com>
16603
16604 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16605 "$(IPA_DEPFILES)".
16606
8ed54b31
JB
166072010-09-01 Joel Brobecker <brobecker@adacore.com>
16608
16609 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16610 gdbserver/lynx-ppc-low.c: New files.
16611 * Makefile.in (lynx_low_h): New variable.
16612 (lynx-low.o, lynx-ppc-low.o): New rules.
16613 * configure.ac: On LynxOS, link with -lnetinet.
16614 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16615 * configure: regenerate.
16616
bb0116a4
JB
166172010-09-01 Joel Brobecker <brobecker@adacore.com>
16618
16619 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16620 * configure.ac: Add check for vasprintf and vsnprintf.
16621 * configure, config.in: Regenerate.
16622 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16623
a778ab81 166242010-09-01 Joel Brobecker <brobecker@adacore.com>
16625
16626 * gdbreplay.c: Move include of alloca.h up, next to include of
16627 malloc.h.
16628 * server.h: Add include of malloc.h.
16629 * mem-break.c: Remove include of malloc.h.
16630 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16631
8b034a19 166322010-09-01 Joel Brobecker <brobecker@adacore.com>
16633
16634 * Makefile.in (memmem.o): Build with -Wno-error.
16635
166362010-09-01 Joel Brobecker <brobecker@adacore.com>
16637
16638 * utils.c (xsnprintf): Make non-static.
16639 * server.h: Add xsnprintf declaration.
16640 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16641 replace calls to snprintf by calls to xsnprintf throughout.
16642
166432010-09-01 Joel Brobecker <brobecker@adacore.com>
16644
16645 * configure.ac: Add configure check for alloca.
16646 * configure, config.in: Regenerate.
16647 * server.h: Include alloca.h if it exists.
16648 * gdbreplay.c: Include alloca.h if it exists.
16649
1a981360
PA
166502010-08-28 Pedro Alves <pedro@codesourcery.com>
16651
16652 * linux-low.c (__SIGRTMIN): Define if not already defined.
16653 (linux_create_inferior): Check for __ANDROID__ rather than
16654 __SIGRTMIN.
16655 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16656 are already deferred.
16657 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16658 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16659 stopped and already has a pending signal to report.
16660 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16661 a pending signal to report or is moving out of a jump pad.
16662 (linux_init_signals): Check for __ANDROID__ rather than
16663 __SIGRTMIN.
16664
b4d51a55
PA
166652010-08-28 Pedro Alves <pedro@codesourcery.com>
16666
16667 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16668 debug_threads check. Avoid a linear search when not doing debug
16669 output.
16670
ec48365d
PA
166712010-08-27 Pedro Alves <pedro@codesourcery.com>
16672
16673 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16674 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16675 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16676 (process_event): Change local fd's type to gdb_fildes_t.
16677 (create_file_handler): Adjust prototype.
16678 (delete_file_handler): Adjust prototype.
16679 (handle_file_event): Adjust prototype. Use pfildes.
16680 (create_file_event): Adjsut prototype.
16681 * remote-utils.c (remote_desc, listen_desc): Change type to
16682 gdb_fildes_t.
16683 * server.h: New gdb_fildes_t typedef.
16684 [USE_WIN32API]: Include winsock2.h.
16685 (delete_file_handler, add_file_handler): Adjust prototypes.
16686 (pfildes): Declare.
16687 * utils.c (pfildes): New.
16688
854d88f0
PA
166892010-08-27 Pedro Alves <pedro@codesourcery.com>
16690
16691 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16692 * configure: Regenerate.
16693
0146f85b
PA
166942010-08-27 Pedro Alves <pedro@codesourcery.com>
16695
16696 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16697 (linux_done_accessing_memory): ... this.
16698 (linux_target_ops): Adjust.
16699 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16700 * nto-low.c (nto_target_ops): Adjust comment.
16701 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16702 * spu-low.c (spu_target_ops): Adjust comment.
16703 * target.h (target_ops): Rename unprepare_to_access_memory field
16704 to done_accessing_memory.
16705 (unprepare_to_access_memory): Rename to ...
16706 (done_accessing_memory): ... this.
16707
90d74c30
PA
167082010-08-26 Pedro Alves <pedro@codesourcery.com>
16709
16710 * linux-low.c (linux_prepare_to_access_memory): New.
16711 (linux_unprepare_to_access_memory): New.
16712 (linux_target_ops): Install them.
16713 * server.c (read_memory): Rename to ...
16714 (gdb_read_memory): ... this. Use
16715 prepare_to_access_memory/prepare_to_access_memory.
16716 (write_memory): Rename to ...
16717 (gdb_write_memory): ... this. Use
16718 prepare_to_access_memory/prepare_to_access_memory.
16719 (handle_search_memory_1): Adjust.
16720 (process_serial_event): Adjust.
16721 * target.h (struct target_ops): New fields
16722 prepare_to_access_memory and unprepare_to_access_memory.
16723 (prepare_to_access_memory, unprepare_to_access_memory): New.
16724 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16725 prepare_to_access_memory/prepare_to_access_memory.
16726 * nto-low.c (nto_target_ops): Adjust.
16727 * spu-low.c (spu_target_ops): Adjust.
16728 * win32-low.c (win32_target_ops): Adjust.
16729
fd467969
PA
167302010-08-26 Pedro Alves <pedro@codesourcery.com>
16731
16732 * Makefile.in (WARN_CFLAGS): Get it from configure.
16733 (WERROR_CFLAGS): New.
16734 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16735 * configure.ac: Introduce --enable-werror, which adds -Werror to
16736 the compiler command line. Enabled by default. Disable with
16737 --disable-werror. Add -Wdeclaration-after-statement
16738 Wpointer-arith and -Wformat-nonliteral to warning flags.
16739 * configure: Regenerate.
16740
331e2f5f
PA
167412010-08-26 Pedro Alves <pedro@codesourcery.com>
16742
16743 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16744
e581f2b4
PA
167452010-08-26 Pedro Alves <pedro@codesourcery.com>
16746
16747 * gdbreplay.c (remote_error): New.
16748 (gdbchar): New.
16749 (expect): Use gdbchar. Check for error reading from GDB.
16750 Clarify sync error output.
16751 (play): Check for errors writing to GDB.
16752 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16753 * remote-utils.c (getpkt): Check for errors writing to the remote
16754 descriptor.
16755
3c11dd79
PA
167562010-08-25 Pedro Alves <pedro@codesourcery.com>
16757
16758 * linux-low.c (linux_wait_1): Move non-debugging code out of
16759 `debug_threads' control.
16760
d20a8ad9
PA
167612010-08-25 Pedro Alves <pedro@codesourcery.com>
16762
16763 * linux-low.c (linux_wait_1): Don't set last_status here.
16764 * server.c (push_event, queue_stop_reply_callback): Assert we're
16765 not pushing a TARGET_WAITKIND_IGNORE event.
16766 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16767 (myresume, handle_target_event): Set the thread's last_resume_kind
16768 and last_status from the target returned status.
16769
964e4306
PA
167702010-08-25 Pedro Alves <pedro@codesourcery.com>
16771
16772 PR threads/10729
16773
16774 * linux-x86-low.c (update_debug_registers_callback): New.
16775 (i386_dr_low_set_addr): Use it.
16776 (i386_dr_low_get_addr): New.
16777 (i386_dr_low_set_control): Use update_debug_registers_callback.
16778 (i386_dr_low_get_control): New.
16779 (i386_dr_low_get_status): Adjust.
16780 * linux-low.c (linux_stop_lwp): New.
16781 * linux-low.h (linux_stop_lwp): Declare.
16782
16783 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16784 argument instead of a i386_debug_reg_state.
16785 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16786 a i386_debug_reg_state.
16787 (i386_insert_aligned_watchpoint): Adjust.
16788 (i386_remove_aligned_watchpoint): Adjust.
16789 (i386_low_stopped_data_address): Read the debug registers from the
16790 inferior instead of from the mirrors.
16791 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16792 (i386_dr_low_get_addr): Declare.
16793 (i386_dr_low_get_control): Declare.
16794 (i386_dr_low_get_status): Change prototype.
16795
16796 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16797 (i386_dr_low_get_addr): New.
16798 (i386_dr_low_get_control): New.
16799 (i386_dr_low_get_status): Adjust prototype. Return
16800 dr_status_mirror.
16801 (i386_initial_stuff): Clear dr_status_mirror and
16802 dr_control_mirror.
16803 (i386_get_thread_context): Adjust.
16804 (i386_set_thread_context): Adjust.
16805 (i386_thread_added): Adjust.
16806
5f21a75b
PA
168072010-08-24 Pedro Alves <pedro@codesourcery.com>
16808
16809 * linux-low.h (linux_thread_area): Delete declaration.
16810
3e4c1235
TS
168112010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16812
16813 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16814 after its termination.
16815
1971b033
PA
168162010-08-09 Pedro Alves <pedro@codesourcery.com>
16817
16818 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16819 (gdb_wants_all_stopped): Delete.
16820 (linux_wait_1): Don't call them.
16821 * server.c (handle_v_cont): Tag all threads as want-stopped.
16822 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16823 stopped as "client-wants-stopped".
16824
310444ac
PA
168252010-07-31 Pedro Alves <pedro@codesourcery.com>
16826
16827 * Makefile.in (signals_h): New.
16828 (server_h): Depend on it.
16829 (server.o): Don't depend on $(signals_def).
16830 (signals.o): Depend on $(signals_def).
16831
a19cae16
JK
168322010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16833
16834 * Makefile.in (signals_def): New.
16835 (server_h): Append include/gdb/signals.h and signals_def.
16836 (server.o): Append signals_def.
16837
30d50328
JK
168382010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16839
16840 * server.c (handle_target_event): Use target_signal_to_host for
16841 resume_info.sig initialization.
16842 * target.h (struct thread_resume) <sig>: New comment.
16843
5c3216e2
OS
168442010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16845
c6f46ca0
OS
16846 * server.c (handle_query): strcpy() the returned string from paddress()
16847 instead of sprintf().
5c3216e2
OS
16848 * utils.c (paddress): Return phex_nz().
16849
6bd31874
JB
168502010-07-07 Joel Brobecker <brobecker@adacore.com>
16851
16852 * server.c (handle_v_cont): Call mourn_inferior if process
16853 just exited.
16854 (myresume): Likewise.
16855
0fb4aa4b
PA
168562010-07-01 Pedro Alves <pedro@codesourcery.com>
16857
16858 Static tracepoints, and integration with UST.
16859
16860 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16861 * mem-break.c (uninsert_all_breakpoints)
16862 (reinsert_all_breakpoints): New.
16863 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16864 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16865 (gdb_agent_ust_loaded, helper_thread_id)
16866 (gdb_agent_helper_thread_id): New macros.
16867 (struct ipa_sym_addresses): Add addr_ust_loaded,
16868 addr_helper_thread_id, addr_cmd_buf.
16869 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16870 (in_process_agent_loaded_ust): New.
16871 (write_e_ust_not_loaded): New.
16872 (maybe_write_ipa_ust_not_loaded): New.
16873 (struct collect_static_trace_data_action): New.
16874 (enum tracepoint_type) <static_tracepoint>: New.
16875 (struct tracepoint) <handle>: Mention static tracepoints.
16876 (struct static_tracepoint_ctx): New.
16877 (CMD_BUF_SIZE): New.
16878 (add_tracepoint_action): Handle static tracepoint actions.
16879 (unprobe_marker_at): New.
16880 (clear_installed_tracepoints): Handle static tracepoints.
16881 (cmd_qtdp): Handle static tracepoints.
16882 (probe_marker_at): New.
16883 (cmd_qtstart): Handle static tracepoints.
16884 (response_tracepoint): Handle static tracepoints.
16885 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16886 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16887 (get_context_regcache): Handle static tracepoints.
16888 (do_action_at_tracepoint): Handle static tracepoint actions.
16889 (traceframe_find_block_type): Handle static trace data blocks.
16890 (traceframe_read_sdata): New.
16891 (download_tracepoints): Download static tracepoint actions.
16892 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16893 (GDB_PROBE_NAME): New.
16894 (ust_ops): New.
16895 (GET_UST_SYM): New.
16896 (USTF): New.
16897 (dlsym_ust): New.
16898 (ust_marker_to_static_tracepoint): New.
16899 (gdb_probe): New.
16900 (collect_ust_data_at_tracepoint): New.
16901 (gdb_ust_probe): New.
16902 (UNIX_PATH_MAX, SOCK_DIR): New.
16903 (gdb_ust_connect_sync_socket): New.
16904 (resume_thread, stop_thread): New.
16905 (run_inferior_command): New.
16906 (init_named_socket): New.
16907 (gdb_ust_socket_init): New.
16908 (cstr_to_hexstr): New.
16909 (next_st): New.
16910 (first_marker, next_marker): New.
16911 (response_ust_marker): New.
16912 (cmd_qtfstm, cmd_qtsstm): New.
16913 (unprobe_marker_at, probe_marker_at): New.
16914 (cmd_qtstmat, gdb_ust_thread): New.
16915 (gdb_ust_init): New.
16916 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16917 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16918 (ST_REGENTRY): New.
16919 (x86_64_st_collect_regmap): New.
16920 (X86_64_NUM_ST_COLLECT_GREGS): New.
16921 (AMD64_RIP_REGNUM): New.
16922 (supply_static_tracepoint_registers): New.
16923 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16924 (ST_REGENTRY): New.
16925 (i386_st_collect_regmap): New.
16926 (i386_NUM_ST_COLLECT_GREGS): New.
16927 (supply_static_tracepoint_registers): New.
16928 * server.c (handle_query): Handle qXfer:statictrace:read.
16929 <qSupported>: Report support for StaticTracepoints, and
16930 qXfer:statictrace:read features.
16931 * server.h (traceframe_read_sdata)
16932 (supply_static_tracepoint_registers): Declare.
16933 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16934 (unpack_varlen_hex): Include in IPA build.
16935 * Makefile.in (ustlibs, ustinc): New.
16936 (IPA_OBJS): Add remote-utils-ipa.o.
16937 ($(IPA_LIB)): Link -ldl and -lpthread.
16938 (UST_CFLAGS): New.
16939 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16940 * config.in, configure: Regenerate.
16941
9e4344e5
PA
169422010-06-20 Ian Lance Taylor <iant@google.com>
16943 Pedro Alves <pedro@codesourcery.com>
16944
16945 * linux-x86-low.c (always_true): Delete.
16946 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16947 trying to fool the compiler with always_true.
16948
c6beb2cb
PA
169492010-06-20 Pedro Alves <pedro@codesourcery.com>
16950
16951 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16952 conditions in gdbserver.
16953
d2ed6730
UW
169542010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16955
16956 * spu-low.c (spu_read_memory): Wrap around local store limit.
16957 (spu_write_memory): Likewise.
16958
4e29fb54
PA
169592010-06-15 Pedro Alves <pedro@codesourcery.com>
16960
16961 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16962 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16963 LONGEST uses.
16964 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16965 uses.
16966 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16967 uses with LONGEST uses.
16968
6a271cae
PA
169692010-06-14 Stan Shebs <stan@codesourcery.com>
16970 Pedro Alves <pedro@codesourcery.com>
16971
16972 Bytecode compiler.
16973
16974 * linux-x86-low.c: Include limits.h.
16975 (add_insns): New.
16976 (always_true): New.
16977 (EMIT_ASM): New.
16978 (EMIT_ASM32): New.
16979 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16980 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16981 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16982 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16983 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16984 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16985 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16986 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16987 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16988 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16989 (amd64_emit_void_call_2): New.
16990 (amd64_emit_ops): New.
16991 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16992 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16993 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16994 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16995 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16996 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16997 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16998 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16999 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17000 (i386_emit_stack_adjust, i386_emit_int_call_1)
17001 (i386_emit_void_call_2): New.
17002 (i386_emit_ops): New.
17003 (x86_emit_ops): New.
17004 (the_low_target): Install x86_emit_ops.
17005 * server.h (struct emit_ops): New.
17006 (get_raw_reg_func_addr): Declare.
17007 (current_insn_ptr, emit_error): Declare.
17008 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17009 (set_trace_state_variable_value): New defines.
17010 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17011 addr_get_trace_state_variable_value and
17012 addr_set_trace_state_variable_value.
17013 (symbol_list): New fields for get_raw_reg,
17014 get_trace_state_variable_value and set_trace_state_variable_value.
17015 (condfn): New typedef.
17016 (struct tracepoint): New field `compiled_cond'.
17017 (do_action_at_tracepoint): Clear compiled_cond.
17018 (get_trace_state_variable_value, set_trace_state_variable_value):
17019 Export in the IPA.
17020 (condition_true_at_tracepoint): If there's a compiled condition,
17021 run that.
17022 (current_insn_ptr, emit_error): New globals.
17023 (struct bytecode_address): New.
17024 (get_raw_reg_func_addr): New.
17025 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17026 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17027 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17028 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17029 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17030 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17031 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17032 (compile_tracepoint_condition, compile_bytecodes): New.
17033 * target.h (emit_ops): Forward declare.
17034 (struct target_ops): New field emit_ops.
17035 (target_emit_ops): New.
17036 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17037 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17038 * linux-low.c (linux_emit_ops): New.
17039 (linux_target_ops): Install it.
17040 * linux-low.h (struct linux_target_ops): New field emit_ops.
17041
92b72907
UW
170422010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17043
17044 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17045 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17046
fa593d66
PA
170472010-06-01 Pedro Alves <pedro@codesourcery.com>
17048 Stan Shebs <stan@codesourcery.com>
17049
17050 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17051 (all): Depend on $(extra_libraries).
17052 (install-only): Install the IPA.
17053 (IPA_OBJS, IPA_LIB): New.
17054 (clean): Remove the IPA lib.
17055 (IPAGENT_CFLAGS): New.
17056 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17057 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17058 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17059 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17060 * configure.ac: Check for atomic builtins support in the compiler.
17061 (IPA_DEPFILES, extra_libraries): Define.
17062 * configure.srv (ipa_obj): Add description.
17063 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17064 (i[34567]86-*-linux*): Set ipa_obj.
17065 (x86_64-*-linux*): Set ipa_obj.
17066 * linux-low.c (stabilizing_threads): New.
17067 (supports_fast_tracepoints): New.
17068 (linux_detach): Stabilize threads before detaching.
17069 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17070 the lwp is either not stabilizing, or is moving out of a jump pad.
17071 (linux_fast_tracepoint_collecting): New.
17072 (maybe_move_out_of_jump_pad): New.
17073 (enqueue_one_deferred_signal): New.
17074 (dequeue_one_deferred_signal): New.
17075 (linux_wait_for_event_1): If moving out of a jump pad, defer
17076 pending signals to later.
17077 (linux_stabilize_threads): New.
17078 (linux_wait_1): Check if threads need moving out of jump pads, and
17079 do it if so.
17080 (stuck_in_jump_pad_callback): New.
17081 (move_out_of_jump_pad_callback): New.
17082 (lwp_running): New.
17083 (linux_resume_one_lwp): Handle moving out of jump pads.
17084 (linux_set_resume_request): Dequeue deferred signals.
17085 (need_step_over_p): Also step over fast tracepoint jumps.
17086 (start_step_over): Also uninsert fast tracepoint jumps.
17087 (finish_step_over): Also reinsert fast tracepoint jumps.
17088 (linux_install_fast_tracepoint_jump): New.
17089 (linux_target_ops): Install linux_stabilize_threads and
17090 linux_install_fast_tracepoint_jump_pad.
17091 * linux-low.h (linux_target_ops) <get_thread_area,
17092 install_fast_tracepoint_jump_pad>: New fields.
17093 (struct lwp_info) <collecting_fast_tracepoint,
17094 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17095 (linux_get_thread_area): Declare.
17096 * linux-x86-low.c (jump_insn): New.
17097 (x86_get_thread_area): New.
17098 (append_insns): New.
17099 (push_opcode): New.
17100 (amd64_install_fast_tracepoint_jump_pad): New.
17101 (i386_install_fast_tracepoint_jump_pad): New.
17102 (x86_install_fast_tracepoint_jump_pad): New.
17103 (the_low_target): Install x86_get_thread_area and
17104 x86_install_fast_tracepoint_jump_pad.
17105 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17106 (struct fast_tracepoint_jump): New.
17107 (fast_tracepoint_jump_insn): New.
17108 (fast_tracepoint_jump_shadow): New.
17109 (find_fast_tracepoint_jump_at): New.
17110 (fast_tracepoint_jump_here): New.
17111 (delete_fast_tracepoint_jump): New.
17112 (set_fast_tracepoint_jump): New.
17113 (uninsert_fast_tracepoint_jumps_at): New.
17114 (reinsert_fast_tracepoint_jumps_at): New.
17115 (set_breakpoint_at): Use write_inferior_memory.
17116 (uninsert_raw_breakpoint): Use write_inferior_memory.
17117 (check_mem_read): Mask out fast tracepoint jumps.
17118 (check_mem_write): Mask out fast tracepoint jumps.
17119 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17120 (set_fast_tracepoint_jump): Declare.
17121 (delete_fast_tracepoint_jump)
17122 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17123 (reinsert_fast_tracepoint_jumps_at): Declare.
17124 * regcache.c: Don't compile many functions when building the
17125 in-process agent library.
17126 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17127 the register buffer in the heap.
17128 (free_register_cache): If the register buffer isn't owned by the
17129 regcache, don't free it.
17130 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17131 pre-existing register caches.
17132 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17133 type.
17134 (convert_ascii_to_int): : Constify `from' parameter type.
17135 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17136 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17137 the needed buffer in-place.
17138 (relocate_instruction): New.
17139 * server.c (handle_query) <qSymbols>: If the target supports
17140 tracepoints, give it a chance of looking up symbols. Report
17141 support for fast tracepoints.
17142 (handle_status): Stabilize threads.
17143 (process_serial_event): Adjust.
17144 * server.h (struct fast_tracepoint_jump): Forward declare.
17145 (struct process_info) <fast_tracepoint_jumps>: New field.
17146 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17147 (decode_X_packet, decode_M_packet): Adjust.
17148 (relocate_instruction): Declare.
17149 (in_process_agent_loaded): Declare.
17150 (tracepoint_look_up_symbols): Declare.
17151 (struct fast_tpoint_collect_status): Declare.
17152 (fast_tracepoint_collecting): Declare.
17153 (force_unlock_trace_buffer): Declare.
17154 (handle_tracepoint_bkpts): Declare.
17155 (initialize_low_tracepoint)
17156 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17157 * target.h (struct target_ops) <stabilize_threads,
17158 install_fast_tracepoint_jump_pad>: New fields.
17159 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17160 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17161 [HAVE_STDINT_H]: Include stdint.h.
17162 (trace_debug_1): Rename to ...
17163 (trace_vdebug): ... this.
17164 (trace_debug): Rename to ...
17165 (trace_debug_1): ... this. Add `level' parameter.
17166 (trace_debug): New.
17167 (ATTR_USED, ATTR_NOINLINE): New.
17168 (IP_AGENT_EXPORT): New.
17169 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17170 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17171 (about_to_request_buffer_space, trace_buffer_is_full)
17172 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17173 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17174 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17175 (traceframe_write_count, traceframes_created)
17176 (trace_state_variables)
17177 New renaming defines.
17178 (struct ipa_sym_addresses): New.
17179 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17180 (symbol_list): New.
17181 (ipa_sym_addrs): New.
17182 (all_tracepoint_symbols_looked_up): New.
17183 (in_process_agent_loaded): New.
17184 (write_e_ipa_not_loaded): New.
17185 (maybe_write_ipa_not_loaded): New.
17186 (tracepoint_look_up_symbols): New.
17187 (debug_threads) [IN_PROCESS_AGENT]: New.
17188 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17189 (UNKNOWN_SIDE_EFFECTS): New.
17190 (stop_tracing): New.
17191 (flush_trace_buffer): New.
17192 (stop_tracing_bkpt): New.
17193 (flush_trace_buffer_bkpt): New.
17194 (read_inferior_integer): New.
17195 (read_inferior_uinteger): New.
17196 (read_inferior_data_pointer): New.
17197 (write_inferior_data_pointer): New.
17198 (write_inferior_integer): New.
17199 (write_inferior_uinteger): New.
17200 (struct collect_static_trace_data_action): Delete.
17201 (enum tracepoint_type): New.
17202 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17203 <actions_str, step_actions, step_actions_str>: Only include in
17204 GDBserver.
fa593d66
PA
17205 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17206 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17207 (tracepoints): Use IP_AGENT_EXPORT.
17208 (last_tracepoint): Don't include in the IPA.
17209 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17210 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17211 (alloced_trace_state_variables): New.
17212 (trace_state_variables): Use IP_AGENT_EXPORT.
17213 (traceframe_t): Delete unused variable.
17214 (circular_trace_buffer): Don't include in the IPA.
17215 (trace_buffer_start): Delete.
17216 (struct trace_buffer_control): New.
17217 (trace_buffer_free): Delete.
17218 (struct ipa_trace_buffer_control): New.
17219 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17220 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17221 New.
17222 (trace_buffer_ctrl): New.
17223 (TRACE_BUFFER_CTRL_CURR): New.
17224 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17225 Reimplement as macros.
17226 (trace_buffer_wrap): Delete.
17227 (traceframe_write_count, traceframe_read_count)
17228 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17229 (struct tracepoint_hit_ctx) <type>: New field.
17230 (struct fast_tracepoint_ctx): New.
17231 (memory_barrier): New.
17232 (cmpxchg): New.
17233 (record_tracepoint_error): Update atomically in the IPA.
17234 (clear_inferior_trace_buffer): New.
17235 (about_to_request_buffer_space): New.
17236 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17237 updating the same buffer.
17238 (add_tracepoint): Default the tracepoint's type to trap
17239 tracepoint, and orig_size to -1.
17240 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17241 internal variables.
17242 (create_trace_state_variable): New parameter `gdb'. Handle it.
17243 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17244 (cmd_qtdp): Handle fast tracepoints.
17245 (cmd_qtdv): Adjust.
17246 (max_jump_pad_size): New.
17247 (gdb_jump_pad_head): New.
17248 (get_jump_space_head): New.
17249 (claim_jump_space): New.
17250 (sort_tracepoints): New.
17251 (MAX_JUMP_SIZE): New.
17252 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17253 IPA.
17254 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17255 support. Upload fast traceframes, and delete internal IPA
17256 breakpoints.
17257 (stop_tracing_handler): New.
17258 (flush_trace_buffer_handler): New.
17259 (cmd_qtstop): Upload fast tracepoints.
17260 (response_tracepoint): Handle fast tracepoints.
17261 (tracepoint_finished_step): Upload fast traceframes. Set the
17262 tracepoint hit context's tracepoint type.
17263 (handle_tracepoint_bkpts): New.
17264 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17265 type. Add comment about fast tracepoints.
17266 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17267 non-existing action_str field.
17268 (get_context_regcache): Handle fast tracepoints.
17269 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17270 to the regcache.
17271 (fast_tracepoint_from_jump_pad_address): New.
17272 (fast_tracepoint_from_ipa_tpoint_address): New.
17273 (collecting_t): New.
17274 (force_unlock_trace_buffer): New.
17275 (fast_tracepoint_collecting): New.
17276 (collecting): New.
17277 (gdb_collect): New.
17278 (write_inferior_data_ptr): New.
17279 (target_tp_heap): New.
17280 (target_malloc): New.
17281 (download_agent_expr): New.
17282 (UALIGN): New.
17283 (download_tracepoints): New.
17284 (download_trace_state_variables): New.
17285 (upload_fast_traceframes): New.
17286 (IPA_FIRST_TRACEFRAME): New.
17287 (IPA_NEXT_TRACEFRAME_1): New.
17288 (IPA_NEXT_TRACEFRAME): New.
17289 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17290 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17291 (gdb_jump_pad_buffer_end): New.
17292 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17293 (initialize_tracepoint): Adjust.
17294 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17295 buffer. Initialize the low module.
17296 * utils.c (PREFIX, TOOLNAME): New.
17297 (malloc_failure): Use PREFIX.
17298 (error): In the IPA, an error causes an exit.
17299 (fatal, warning): Use PREFIX.
17300 (internal_error): Use TOOLNAME.
17301 (NUMCELLS): Increase to 10.
17302 * configure, config.in: Regenerate.
17303
d149dd1d
PA
173042010-06-01 Pedro Alves <pedro@codesourcery.com>
17305
17306 * server.c (handle_query) <qSupported>: Do two passes over the
17307 qSupported string to avoid nesting strtok.
17308
f6528abd
JK
173092010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17310
17311 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17312 (CDEPS): New.
17313 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17314 -Wl,--dynamic-list.
17315 * configure: Regenerate.
17316 * proc-service.list: New.
17317
ca2a87a0
JK
173182010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17319
17320 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17321 New comment.
17322
363a6e9f
OS
173232010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17324
17325 * gdbreplay.c (remote_open): Check error return from socket() call by
17326 its equality to -1 not by it being negative.
17327 * remote-utils.c (remote_open): Likewise.
17328
d23b6cb1
PA
173292010-05-23 Pedro Alves <pedro@codesourcery.com>
17330
17331 * config.h: Regenerate.
17332
28d3cf85
MK
173332010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17334
17335 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17336 doesn't provide PTRACE_GET_THREAD_AREA.
17337
fea36a59
MK
173382010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17339
17340 * linux-m68k-low.c: Include <asm/ptrace.h>
17341 (ps_get_thread_area): Implement.
17342
24b066ba
DE
173432010-05-03 Doug Evans <dje@google.com>
17344
17345 * event-loop.c (struct callback_event): New struct.
17346 (callback_list): New global.
17347 (append_callback_event, delete_callback_event): New functions.
17348 (process_callback): New function.
17349 (start_event_loop): Call it.
17350 * remote-utils.c (NOT_SCHEDULED): Define.
17351 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17352 moved out of readchar.
17353 (readchar): Rewrite. Call reschedule before returning.
17354 (reset_readchar): New function.
17355 (remote_close): Call it.
17356 (process_remaining, reschedule): New functions.
17357 * server.h (callback_handler_func): New typedef.
17358 (append_callback_event, delete_callback_event): Declare.
17359
9836d6ea
PA
173602010-05-03 Pedro Alves <pedro@codesourcery.com>
17361
17362 * proc-service.c (ps_pglobal_lookup): Use
17363 thread_db_look_up_one_symbol.
17364 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17365 parameter. Use it instead of all_symbols_looked_up.
17366 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17367 field.
17368 (all_symbols_looked_up): Don't declare.
17369 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17370 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17371 field.
17372 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17373 Set all_symbols_looked_up here.
17374 (thread_db_look_up_one_symbol): New.
17375 (thread_db_get_tls_address): Adjust.
17376 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17377 thread_db object on the heap, and tentatively set it in the
17378 process structure.
17379 (thread_db_init): Don't set all_symbols_looked_up here.
17380 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17381
7984d532
PA
173822010-05-03 Pedro Alves <pedro@codesourcery.com>
17383
17384 * linux-low.c (linux_kill, linux_detach): Adjust.
17385 (status_pending_p_callback): Remove redundant statement. Check
17386 for !TARGET_WAITIKIND_IGNORE, instead of
17387 TARGET_WAITKIND_STOPPED.
17388 (handle_tracepoints): Make sure LWP is locked. Adjust.
17389 (linux_wait_for_event_1): Adjust.
17390 (linux_cancel_breakpoints): New.
17391 (unsuspend_one_lwp): New.
17392 (unsuspend_all_lwps): New.
17393 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17394 (send_sigstop_callback): Change return type to int, add new
17395 `except' parameter and handle it.
17396 (suspend_and_send_sigstop_callback): New.
17397 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17398 pass them down. If SUSPEND, also increment the lwp's suspend
17399 count.
17400 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17401 (need_step_over_p): Don't consider suspended LWPs.
17402 (start_step_over): Adjust.
17403 (proceed_one_lwp): Change return type to int, add new `except'
17404 parameter and handle it.
17405 (unsuspend_and_proceed_one_lwp): New.
17406 (proceed_all_lwps): Use find_inferior instead of
17407 for_each_inferior.
17408 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17409 also decrement the suspend count of LWPs. Pass `except' down,
17410 instead of hacking its suspend count.
17411 (linux_pause_all): Add `freeze' parameter. Adjust.
17412 (linux_unpause_all): New.
17413 (linux_target_ops): Install linux_unpause_all.
17414 * server.c (handle_status): Adjust.
17415 * target.h (struct target_ops): New fields `unpause_all' and
17416 `cancel_breakpoints'. Add new parameter to `pause_all'.
17417 (pause_all): Add new `freeze' parameter.
17418 (unpause_all): New.
17419 (cancel_breakpoints): New.
17420 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17421 cancel breakpoints.
17422 (cmd_qtstart): Pause threads.
17423 (stop_tracing): Pause threads, and cancel breakpoints.
17424 * win32-low.c (win32_target_ops): Adjust.
17425
e471f25b
PA
174262010-05-03 Pedro Alves <pedro@codesourcery.com>
17427
17428 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17429 the inferior right away from here...
17430 (linux_wait_1): ... to here, and adjust to check the thread's
17431 last_resume_kind instead of the lwp's step or stop_expected flags.
17432
1915ef4f
PA
174332010-05-02 Pedro Alves <pedro@codesourcery.com>
17434
17435 * README: Use consistent `GDB' and `GDBserver' spellings.
17436
f9e39928
PA
174372010-05-02 Pedro Alves <pedro@codesourcery.com>
17438
17439 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17440 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17441 (linux_detach_one_lwp): Assume the lwp is stopped.
17442 (any_thread_of): Delete.
17443 (linux_detach): Stop all lwps here. Don't blindly delete all
17444 breakpoints.
17445 (delete_lwp_callback): New.
17446 (linux_mourn): Delete all lwps of the process that is gone.
17447 (linux_wait_1): Don't delete the last lwp of the process here.
17448 * mem-break.h (mark_breakpoints_out): Declare.
17449 * mem-break.c (mark_breakpoints_out): New.
17450 (free_all_breakpoints): Use it.
17451 * server.c (handle_target_event): If the process is gone, mark
17452 breakpoints out.
17453 * thread-db.c (struct thread_db) <create_bp>: New field.
17454 (thread_db_enable_reporting): Fix prototype. Store a thread event
17455 breakpoint reference in the thread_db struct.
17456 (thread_db_load_search): Clear the thread_db object.
17457 (try_thread_db_load_1): Ditto.
17458 (switch_to_process): New.
17459 (disable_thread_event_reporting): Use it.
17460 (remove_thread_event_breakpoints): New.
17461 (thread_db_detach, thread_db_mourn): Use it.
17462
1e7fc18c
PA
174632010-05-01 Pedro Alves <pedro@codesourcery.com>
17464
17465 * linux-low.c (linux_enable_event_reporting): New.
17466 (linux_wait_for_event_1, handle_extended_wait): Use it.
17467
02fc4de7
PA
174682010-04-30 Pedro Alves <pedro@codesourcery.com>
17469
17470 * linux-low.c (linux_kill_one_lwp, linux_kill)
17471 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17472 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17473 SIGSTOP even if the LWP is stopped.
17474 (send_sigstop_callback): New.
17475 (stop_all_lwps): Use send_sigstop_callback instead.
17476 (linux_resume_one_thread): Adjust.
17477 (proceed_one_lwp): Still proceed an LWP that the client has
17478 requested to stop, if we haven't reported it as stopped yet. Make
17479 sure that LWPs the client want stopped, have a pending SIGSTOP.
17480
bc3b5632
DE
174812010-04-26 Doug Evans <dje@google.com>
17482
ae1ada35
DE
17483 * server.c (handle_general_set): Make static.
17484
bc3b5632
DE
17485 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17486 Print received char after testing for error/eof instead of before.
17487 (input_interrupt): Tweak comment.
17488
65730243
DE
174892010-04-23 Doug Evans <dje@google.com>
17490
17491 * server.c (start_inferior): Print inferior argv if --debug.
17492
a8ae7dc0
AR
174932010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17494
17495 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17496 * nto-x86-low.c: Include server.h
17497
1c07cc19
PM
174982010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17499
17500 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17501 be consistent with other sources of this directory.
17502 (init_registers_amd64): Correct name of source file of this function
17503 in the comment.
17504
e0a61e09
PM
175052010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17506
17507 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17508 64-bit executables.
17509
54709339
PM
175102010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17511
17512 * win32-i386-low.c: Add 64-bit support.
17513 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17514 (init_registers_amd64): Declare.
17515 (mappings): Add 64-bit version of array.
17516 (init_windows_x86): New function.
17517 (the_low_target): Change init_arch field to init_windows_x86.
17518
e8f0053d
PM
175192010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17520
17521 * win32-low.c: Adapt to support also 64-bit architecture.
17522 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17523 (get_image_name): Use SIZE_T type for local variable `done'.
17524 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17525 (toolhelp_get_dll_name): Idem.
17526 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17527 Use uintptr_t typecast to avoid warning.
17528 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17529 (handle_exception): Use phex_nz to avoid warning.
17530 (win32_wait): Remove unused local variable `process'.
17531
c481e77e
PM
175322010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17533
17534 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17535 `amd64-avx.o'.
17536
12ea4b69
PM
175372010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17538
17539 * configure.ac: Use `ws2_32' library for srv_mingw.
17540 * configure: Regenerate.
17541 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17542 * remote-utils.c: Likewise.
17543
f6d1620c
L
175442010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17545
17546 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17547 if __x86_64__ is defined.
17548
8e642873
PM
175492010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17550
17551 * configure: Regenerate.
17552
711e434b
PM
175532010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17554
17555 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17556 * target.h (target_ops): New get_tib_address field.
17557 * win32-low.h (win32_thread_info): Add thread_local_base field.
17558 * win32-low.c (child_add_thread): Add tlb argument.
17559 Set thread_local_base field to TLB.
17560 (get_child_debug_event): Adapt to child_add_thread change.
17561 (win32_get_tib_address): New function.
17562 (win32_target_ops): Set get_tib_address field to
17563 win32_get_tib_address.
17564 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17565
505106cd
PA
175662010-04-12 Pedro Alves <pedro@codesourcery.com>
17567
505106cd
PA
17568 * linux-low.c (linux_mourn): Also remove the process.
17569 * server.c (handle_target_event): Don't remove the process here.
17570 * nto-low.c (nto_mourn): New.
17571 (nto_target_ops): Install it.
17572 * spu-low.c (spu_mourn): New.
17573 (spu_target_ops): Install it.
17574 * win32-low.c (win32_mourn): New.
17575 (win32_target_ops): Install it.
17576
e8470a06
PA
175772010-04-12 Pedro Alves <pedro@codesourcery.com>
17578
17579 * server.h (buffer_xml_printf): Remove redundant `;'.
17580
45ba0d02
PA
175812010-04-12 Pedro Alves <pedro@codesourcery.com>
17582
17583 * regcache.c (set_register_cache): Invalidate regcaches before
17584 changing the register cache layout.
17585 (regcache_invalidate_one): Allow a NULL regcache.
17586 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17587 regcaches before changing the register cache layout or the target
17588 regsets.
17589
59e04013
L
175902010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17591
17592 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17593 variable warning on Linux/x86-64.
17594
8336d594
PA
175952010-04-11 Pedro Alves <pedro@codesourcery.com>
17596
17597 GDBserver disconnected tracing support.
17598
17599 * linux-low.c (linux_remove_process): Delete.
17600 (add_lwp): Don't set last_resume_kind here.
17601 (linux_kill): Use `mourn'.
17602 (linux_detach): Use `thread_db_detach', and `mourn'.
17603 (linux_mourn): New.
17604 (linux_attach_lwp_1): Adjust comment.
17605 (linux_attach): last_resume_kind moved the thread_info; adjust.
17606 (status_pending_p_callback): Adjust.
17607 (linux_wait_for_event_1): Adjust.
17608 (count_events_callback, select_singlestep_lwp_callback)
17609 (select_event_lwp_callback, cancel_breakpoints_callback)
17610 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17611 (proceed_one_lwp): Adjust.
17612 (linux_async): Add debug output.
17613 (linux_thread_stopped): New.
17614 (linux_pause_all): New.
17615 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17616 linux_pause_all.
17617 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17618 (thread_db_free): Delete declaration.
17619 (thread_db_detach, thread_db_mourn): Declare.
17620 * thread-db.c (thread_db_init): Use thread_db_mourn.
17621 (thread_db_free): Delete, split in two.
17622 (disable_thread_event_reporting): New.
17623 (thread_db_detach): New.
17624 (thread_db_mourn): New.
17625
17626 * server.h (struct thread_info) <last_resume_kind>: New field.
17627 <attached>: Add comment.
17628 <gdb_detached>: New field.
17629 (handler_func): Change return type to int.
17630 (handle_serial_event, handle_target_event): Ditto.
17631 (gdb_connected): Declare.
17632 (tracing): Delete.
17633 (disconnected_tracing): Declare.
17634 (stop_tracing): Declare.
17635
17636 * server.c (handle_query) <qSupported>: Report support for
17637 disconnected tracing.
17638 (queue_stop_reply_callback): Account for running threads.
17639 (gdb_wants_thread_stopped): New.
17640 (gdb_wants_all_threads_stopped): New.
17641 (gdb_reattached_process): New.
17642 (handle_status): Clear the `gdb_detached' flag of all processes.
17643 In all-stop, stop all threads.
17644 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17645 (process_serial_event): If the remote connection breaks, or if an
17646 exit was forced with "monitor exit", force an event loop exit.
17647 Handle disconnected tracing on detach.
17648 (handle_serial_event): Adjust.
17649 (handle_target_event): If GDB isn't connected, forward events back
17650 to the inferior, unless the last process exited, in which case,
17651 exit gdbserver. Adjust interface.
17652
17653 * remote-utils.c (remote_open): Don't block in accept. Instead
17654 register an event loop source on the listen socket file
17655 descriptor. Refactor bits into ...
17656 (listen_desc): ... this new global.
17657 (gdb_connected): ... this new function.
17658 (enable_async_notification): ... this new function.
17659 (handle_accept_event): ... this new function.
17660 (remote_close): Clear remote_desc.
17661
17662 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17663
17664 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17665 New fields.
17666 (mourn_inferior): Define.
17667 (target_process_qsupported): Avoid the dangling else problem.
17668 (thread_stopped): Define.
17669 (pause_all): Define.
17670 (target_waitstatus_to_string): Declare.
17671 * target.c (target_waitstatus_to_string): New.
17672
17673 * tracepoint.c (tracing): Make extern.
17674 (disconnected_tracing): New.
17675 (stop_tracing): Make extern. Handle tracing stops due to GDB
17676 disconnecting.
17677 (cmd_qtdisconnected): New.
17678 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17679 (handle_tracepoint_general_set): Handle QTDisconnected.
17680
17681 * event-loop.c (event_handler_func): Change return type to int.
17682 (process_event): Bail out if the event handler wants the event
17683 loop to stop.
17684 (handle_file_event): Ditto.
17685 (start_event_loop): Bail out if the event handler wants the event
17686 loop to stop.
17687
17688 * nto-low.c (nto_target_ops): Adjust.
17689 * spu-low.c (spu_wait): Don't remove the process here.
17690 (spu_target_ops): Adjust.
17691 * win32-low.c (win32_wait): Don't remove the process here.
17692 (win32_target_ops): Adjust.
17693
5d267c4c
PA
176942010-04-11 Pedro Alves <pedro@codesourcery.com>
17695
17696 * regcache.c (realloc_register_cache): Invalidate inferior's
17697 regcache before recreating it.
17698
623ccd72
PA
176992010-04-09 Pedro Alves <pedro@codesourcery.com>
17700
17701 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17702
219f2f23
PA
177032010-04-09 Stan Shebs <stan@codesourcery.com>
17704 Pedro Alves <pedro@codesourcery.com>
17705
17706 * server.h (LONGEST): New.
17707 (struct thread_info) <while_stepping>: New field.
17708 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17709 Declare.
17710 (initialize_tracepoint, handle_tracepoint_general_set)
17711 (handle_tracepoint_query, tracepoint_finished_step)
17712 (tracepoint_was_hit, release_while_stepping_state_list):
17713 (current_traceframe): Declare.
17714 * server.c (handle_general_set): Handle tracepoint packets.
17715 (read_memory): New.
17716 (write_memory): New.
17717 (handle_search_memory_1): Use read_memory.
17718 (handle_query): Report support for conditional tracepoints, trace
17719 state variables, and tracepoint sources. Handle tracepoint
17720 queries.
17721 (main): Initialize the tracepoints module.
17722 (process_serial_event): Handle traceframe reads/writes.
17723
17724 * linux-low.c (handle_tracepoints): New.
17725 (linux_wait_1): Call it.
17726 (linux_resume_one_lwp): Handle while-stepping.
17727 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17728 (linux_target_ops): Install them.
17729 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17730 New field.
17731 * linux-x86-low.c (x86_supports_tracepoints): New.
17732 (the_low_target). Install it.
17733
17734 * mem-break.h (delete_breakpoint): Declare.
17735 * mem-break.c (delete_breakpoint): Make external.
17736
17737 * target.h (struct target_ops): Add `supports_tracepoints',
17738 `read_pc', and `write_pc' fields.
17739 (target_supports_tracepoints): Define.
17740 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17741 (phex_nz): New.
17742
17743 * regcache.h (struct regcache) <registers_owned>: New field.
17744 (init_register_cache, regcache_cpy): Declare.
17745 (regcache_read_pc, regcache_write_pc): Declare.
17746 (register_cache_size): Declare.
17747 (supply_regblock): Declare.
17748 * regcache.c (init_register_cache): New.
17749 (new_register_cache): Use it.
17750 (regcache_cpy): New.
17751 (register_cache_size): New.
17752 (supply_regblock): New.
17753 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17754
219f2f23
PA
17755 * tracepoint.c: New.
17756
17757 * Makefile.in (OBS): Add tracepoint.o.
17758 (tracepoint.o): New rule.
17759
3a13a53b
L
177602010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17761
17762 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17763 (i386-mmx.o): New.
17764 (i386-mmx.c): Likewise.
17765 (i386-mmx-linux.o): Likewise.
17766 (i386-mmx-linux.c): Likewise.
17767
17768 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17769 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17770 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17771 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17772
17773 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17774 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17775 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17776
1570b33e
L
177772010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17778
17779 * Makefile.in (clean): Updated.
17780 (i386-avx.o): New.
17781 (i386-avx.c): Likewise.
17782 (i386-avx-linux.o): Likewise.
17783 (i386-avx-linux.c): Likewise.
17784 (amd64-avx.o): Likewise.
17785 (amd64-avx.c): Likewise.
17786 (amd64-avx-linux.o): Likewise.
17787 (amd64-avx-linux.c): Likewise.
17788
17789 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17790 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17791 (srv_amd64_regobj): Add amd64-avx.o.
17792 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17793 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17794 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17795 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17796 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17797 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17798 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17799
17800 * i387-fp.c: Include "i386-xstate.h".
17801 (i387_xsave): New.
17802 (i387_cache_to_xsave): Likewise.
17803 (i387_xsave_to_cache): Likewise.
17804 (x86_xcr0): Likewise.
17805
17806 * i387-fp.h (i387_cache_to_xsave): Likewise.
17807 (i387_xsave_to_cache): Likewise.
17808 (x86_xcr0): Likewise.
17809
17810 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17811 * linux-crisv32-low.c (target_regsets): Likewise.
17812 * linux-m68k-low.c (target_regsets): Likewise.
17813 * linux-mips-low.c (target_regsets): Likewise.
17814 * linux-ppc-low.c (target_regsets): Likewise.
17815 * linux-s390-low.c (target_regsets): Likewise.
17816 * linux-sh-low.c (target_regsets): Likewise.
17817 * linux-sparc-low.c (target_regsets): Likewise.
17818 * linux-xtensa-low.c (target_regsets): Likewise.
17819
17820 * linux-low.c: Include <sys/uio.h>.
17821 (regsets_fetch_inferior_registers): Support nt_type.
17822 (regsets_store_inferior_registers): Likewise.
17823 (linux_process_qsupported): New.
17824 (linux_target_ops): Add linux_process_qsupported.
17825
17826 * linux-low.h (regset_info): Add nt_type.
17827 (linux_target_ops): Add process_qsupported.
17828
17829 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17830 and <sys/uio.h>.
17831 (init_registers_i386_avx_linux): New.
17832 (init_registers_amd64_avx_linux): Likewise.
17833 (xmltarget_i386_linux_no_xml): Likewise.
17834 (xmltarget_amd64_linux_no_xml): Likewise.
17835 (PTRACE_GETREGSET): Likewise.
17836 (PTRACE_SETREGSET): Likewise.
17837 (x86_fill_xstateregset): Likewise.
17838 (x86_store_xstateregset): Likewise.
17839 (use_xml): Likewise.
17840 (x86_linux_update_xmltarget): Likewise.
17841 (x86_linux_process_qsupported): Likewise.
17842 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17843 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17844 init_registers_i386_linux here. Call
17845 x86_linux_update_xmltarget.
17846 (the_low_target): Add x86_linux_process_qsupported.
17847
17848 * server.c (handle_query): Call target_process_qsupported.
17849
17850 * target.h (target_ops): Add process_qsupported.
17851 (target_process_qsupported): New.
17852
fc7238bb
PA
178532010-04-03 Pedro Alves <pedro@codesourcery.com>
17854
17855 * inferiors.c (add_thread): Set last_status kind to
17856 TARGET_WAITKIND_IGNORE.
17857 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17858 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17859 (linux_wait_1): Move `thread' local definition to block that uses
17860 it. Don't NULL initialize `event_child'.
17861 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17862 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17863 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17864
bdabb078
PA
178652010-04-01 Pedro Alves <pedro@codesourcery.com>
17866
17867 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17868 an extended waitstatus, or by a watchpoint.
17869 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17870 thread was stepping or has been stopped by a watchpoint.
17871
d3bbe7a0
PA
178722010-04-01 Pedro Alves <pedro@codesourcery.com>
17873
17874 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17875 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17876 of another, then delete the previous, and validate all
17877 breakpoints.
17878 (validate_inserted_breakpoint): New.
17879 (delete_disabled_breakpoints): New.
17880 (validate_breakpoints): New.
17881 (check_mem_read): Validate breakpoints before trusting their
17882 shadow. Delete disabled breakpoints.
17883 (check_mem_write): Validate breakpoints before trusting they
17884 should be inserted. Delete disabled breakpoints.
17885 * mem-break.h (validate_breakpoints):
17886 * server.c (handle_query): Validate breakpoints when we see a
17887 qSymbol query.
17888
8b07ae33
PA
178892010-04-01 Pedro Alves <pedro@codesourcery.com>
17890
17891 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17892 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17893 if we could tell there's a GDB breakpoint at stop_pc.
17894 (need_step_over_p): Don't do a step over if we find a GDB
17895 breakpoint at the resume PC.
17896
17897 * mem-break.c (struct raw_breakpoint): New.
17898 (enum bkpt_type): New type `gdb_breakpoint'.
17899 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17900 fields. New field `raw'.
17901 (find_raw_breakpoint_at): New.
17902 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17903 breakpoint instead.
17904 (set_breakpoint_at): Adjust.
17905 (delete_raw_breakpoint): New.
17906 (release_breakpoint): New.
17907 (delete_breakpoint): Rename to...
17908 (delete_breakpoint_1): ... this. Add proc parameter. Use
17909 release_breakpoint. Return ENOENT.
17910 (delete_breakpoint): Reimplement.
17911 (find_breakpoint_at): Delete.
17912 (find_gdb_breakpoint_at): New.
17913 (delete_breakpoint_at): Delete.
17914 (set_gdb_breakpoint_at): New.
17915 (delete_gdb_breakpoint_at): New.
17916 (gdb_breakpoint_here): New.
17917 (set_reinsert_breakpoint): Use release_breakpoint.
17918 (uninsert_breakpoint): Rename to ...
17919 (uninsert_raw_breakpoint): ... this.
17920 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17921 (reinsert_raw_breakpoint): Change parameter type to
17922 raw_breakpoint.
17923 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17924 instead.
17925 (check_breakpoints): Adjust. Use release_breakpoint.
17926 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17927 (breakpoint_inserted_here): Ditto.
17928 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17929 Don't trust the breakpoint's shadow if it is not inserted.
17930 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17931 (delete_all_breakpoints): Adjust.
17932 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17933 use delete_breakpoint_1.
17934
17935 * mem-break.h (breakpoints_supported): Delete declaration.
17936 (set_gdb_breakpoint_at): Declare.
17937 (gdb_breakpoint_here): Declare.
17938 (delete_breakpoint_at): Delete.
17939 (delete_gdb_breakpoint_at): Declare.
17940
17941 * server.h (struct raw_breakpoint): Forward declare.
17942 (struct process_info): New field `raw_breakpoints'.
17943
17944 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17945 breakpoints.
17946
6bf5e0ba
PA
179472010-03-24 Pedro Alves <pedro@codesourcery.com>
17948
17949 * linux-low.c (status_pending_p_callback): Fix comment.
17950 (linux_wait_for_event_1): Move most of the internal breakpoint
17951 handling from here...
17952 (linux_wait_1): ... to here.
17953 (count_events_callback): New.
17954 (select_singlestep_lwp_callback): New.
17955 (select_event_lwp_callback): New.
17956 (cancel_breakpoints_callback): New.
17957 (select_event_lwp): New.
17958 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17959 priority to all LWPs that have had events that should be reported
17960 to the client. Cancel breakpoints when about to reporting the
17961 event to the client, not while stopping lwps. No longer cancel
17962 finished single-steps here.
17963 (cancel_finished_single_step): Delete.
17964 (cancel_finished_single_steps): Delete.
17965
414a389f
PA
179662010-03-24 Pedro Alves <pedro@codesourcery.com>
17967
17968 * mem-break.c (enum bkpt_type): New.
17969 (struct breakpoint): New field `type'.
17970 (set_breakpoint_at): Change return type to struct breakpoint
17971 pointer. Set type to `other_breakpoint' by default.
17972 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17973 in the breakpoint list.
17974 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17975 (reinsert_breakpoint): Rename to ...
17976 (reinsert_raw_breakpoint): ... this.
17977 (reinsert_breakpoints_at): Adjust.
17978 * mem-break.h (struct breakpoint): Declare.
17979 (set_breakpoint_at): Change return type to struct breakpoint
17980 pointer.
17981
2280c721
PA
179822010-03-24 Pedro Alves <pedro@codesourcery.com>
17983
17984 * server.c (handle_query): Assign, not compare.
17985
d50171e4
PA
179862010-03-24 Pedro Alves <pedro@codesourcery.com>
17987
17988 Teach linux gdbserver to step-over-breakpoints.
17989
17990 * linux-low.c (can_hardware_single_step): New.
17991 (supports_breakpoints): New.
17992 (handle_extended_wait): If stopping threads, read the stop pc of
17993 the new cloned LWP.
17994 (get_pc): New.
17995 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17996 low target doesn't support retrieving the PC.
17997 (add_lwp): Set last_resume_kind to resume_continue.
17998 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17999 (linux_attach): Don't clear stop_expected. Set the lwp's
18000 last_resume_kind to resume_stop.
18001 (linux_detach_one_lwp): Don't check for removed breakpoints.
18002 (check_removed_breakpoint): Delete.
18003 (status_pending_p): Rename to ...
18004 (status_pending_p_callback): ... this. Don't check for removed
18005 breakpoints. Don't consider threads that are stopped from GDB's
18006 perspective.
18007 (linux_wait_for_lwp): Always read the stop_pc here.
18008 (cancel_breakpoint): New.
18009 (step_over_bkpt): New global.
18010 (linux_wait_for_event_1): Implement stepping over breakpoints.
18011 (gdb_wants_lwp_stopped): New.
18012 (gdb_wants_all_stopped): New.
18013 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18014 single-step traps here. Store the thread's last reported target
18015 wait status.
18016 (send_sigstop): Don't clear stop_expected. Always set it,
18017 instead.
18018 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18019 (cancel_finished_single_step): New.
18020 (cancel_finished_single_steps): New.
18021 (wait_for_sigstop): Don't cancel finished single-step traps here.
18022 (linux_resume_one_lwp): Don't check for removed breakpoints.
18023 Don't set `step' on non-hardware step archs.
18024 (linux_set_resume_request): Ignore resume_stop requests if already
18025 stopping or stopped. Set the lwp's last_resume_kind.
18026 (resume_status_pending_p): Don't check for removed breakpoints.
18027 (need_step_over_p): New.
18028 (start_step_over): New.
18029 (finish_step_over): New.
18030 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18031 requests. Clear the thread's last reported target waitstatus.
18032 Don't use the `suspended' flag. Don't consider pending breakpoints.
18033 (linux_resume): Start a step-over if necessary.
18034 (proceed_one_lwp): New.
18035 (proceed_all_lwps): New.
18036 (unstop_all_lwps): New.
18037 * linux-low.h (struct lwp_info): Rewrite comment for the
18038 `suspended' flag. Add the `stop_pc' field. Delete the
18039 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18040 Add `'last_resume_kind' and `need_step_over' fields.
18041 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18042 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18043 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18044 (set_raw_breakpoint_at): New.
18045 (set_breakpoint_at): Rewrite to use it.
18046 (reinsert_breakpoint_handler): Delete.
18047 (set_reinsert_breakpoint): New.
18048 (reinsert_breakpoint_by_bp): Delete.
18049 (delete_reinsert_breakpoints): New.
18050 (uninsert_breakpoint): Rewrite.
18051 (uninsert_breakpoints_at): New.
18052 (reinsert_breakpoint): Rewrite.
18053 (reinsert_breakpoints_at): New.
18054 (check_breakpoints): Rewrite.
18055 (breakpoint_here): New.
18056 (breakpoint_inserted_here): New.
18057 (check_mem_read): Adjust.
18058 * mem-break.h (breakpoints_supported, breakpoint_here)
18059 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18060 (reinsert_breakpoint_by_bp): Delete declaration.
18061 (delete_reinsert_breakpoints): Declare.
18062 (reinsert_breakpoint): Delete declaration.
18063 (reinsert_breakpoints_at): Declare.
18064 (uninsert_breakpoint): Delete declaration.
18065 (uninsert_breakpoints_at): Declare.
18066 (check_breakpoints): Adjust prototype.
18067 * server.h: Adjust include order.
18068 (struct thread_info): Declare here. Add a `last_status' field.
18069
30ba68cb
MS
180702010-03-23 Michael Snyder <msnyder@vmware.com>
18071
18072 * server.c (crc32): New function.
18073 (handle_query): Add handling for 'qCRC:' request.
18074
b9a881c2
PA
180752010-03-23 Pedro Alves <pedro@codesourcery.com>
18076
18077 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18078 lwp had been stopped by a watchpoint.
18079
e92d13d5
PA
180802010-03-16 Pedro Alves <pedro@codesourcery.com>
18081
18082 * server.h (internal_error): Declare.
18083 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18084 * utils.c (internal_error): New function.
18085
64daa791
AS
180862010-03-15 Andreas Schwab <schwab@redhat.com>
18087
18088 * configure.srv: Fix typo setting srv_regobj.
18089
f52cd8cd
PA
180902010-03-15 Pedro Alves <pedro@codesourcery.com>
18091
18092 * linux-low.c (fetch_register): Avoid passing a non string literal
18093 format to `error'.
18094 (usr_store_inferior_registers): Ditto.
18095
93ae6fdc
PA
180962010-03-14 Pedro Alves <pedro@codesourcery.com>
18097
18098 * linux-low.c (linux_write_memory): Bail out early if peeking
18099 memory failed.
18100
c3adc08c
PA
181012010-03-14 Pedro Alves <pedro@codesourcery.com>
18102
18103 * linux-low.h (struct lwp_info): New fields
18104 `stopped_by_watchpoint' and `stopped_data_address'.
18105 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18106 here, and cache them in the lwp object.
18107 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18108 directly.
18109 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18110 field.
18111 (linux_stopped_by_watchpoint): Rewrite.
18112 (linux_stopped_data_address): Rewrite.
18113
bce522a2
PA
181142010-03-06 Simo Melenius <simo.melenius@iki.fi>
18115
18116 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18117 switching the current inferior, not before.
18118
90884b2b
L
181192010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18120
18121 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18122 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18123 i386-linux.c and amd64-linux.c.
18124 (reg-i386.o): Removed.
18125 (reg-i386.c): Likewise.
18126 (reg-i386-linux.o): Likewise.
18127 (reg-i386-linux.c): Likewise.
18128 (reg-x86-64.o): Likewise.
18129 (reg-x86-64.c): Likewise.
18130 (reg-x86-64-linux.o): Likewise.
18131 (reg-x86-64-linux.c): Likewise.
18132 (i386.o): New.
18133 (i386.c): Likewise.
18134 (i386-linux.o): Likewise.
18135 (i386-linux.c): Likewise.
18136 (amd64.o): Likewise.
18137 (amd64.c): Likewise.
18138 (amd64-linux.o): Likewise.
18139 (amd64-linux.c): Likewise.
18140
18141 * configure.srv (srv_i386_regobj): New.
18142 (srv_i386_linux_regobj): Likewise.
18143 (srv_amd64_regobj): Likewise.
18144 (srv_amd64_linux_regobj): Likewise.
18145 (srv_i386_32bit_xmlfiles): Likewise.
18146 (srv_i386_64bit_xmlfiles): Likewise.
18147 (srv_i386_xmlfiles): Likewise.
18148 (srv_amd64_xmlfiles): Likewise.
18149 (srv_i386_linux_xmlfiles): Likewise.
18150 (srv_amd64_linux_xmlfiles): Likewise.
18151 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18152 srv_xmlfiles to $srv_i386_xmlfiles.
18153 (i[34567]86-*-mingw32ce*): Likewise.
18154 (i[34567]86-*-mingw*): Likewise.
18155 (i[34567]86-*-nto*): Likewise.
18156 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18157 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18158 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18159 (x86_64-*-linux*): Likewise.
18160
18161 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18162 (init_registers_amd64_linux): New.
18163 (x86_arch_setup): Replace init_registers_x86_64_linux with
18164 init_registers_amd64_linux.
18165
193f13e6
MK
181662010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18167
18168 * configure.ac: Check for libdl. If it is not available link against
18169 static libthread_db.
18170 * configure: Regenerate.
18171
85d721b8
PA
181722010-02-22 Pedro Alves <pedro@codesourcery.com>
18173
18174 PR9605
18175
18176 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18177 handing a read watchpoint.
18178 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18179
6076632b
DE
181802010-02-12 Doug Evans <dje@google.com>
18181
18182 * linux-low.c (linux_supports_tracefork_flag): Document.
18183 (linux_look_up_symbols): Add comment.
18184
3327ccf7
L
181852010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18186
18187 * regcache.c (supply_register): Clear regcache if buf is NULL.
18188
0718675c 181892010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18190 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18191
18192 * inferiors.c (find_inferior): Add function documentation.
18193 (unloaded_dll): Handle the case where the unloaded dll has not
18194 been previously registered in the dll list.
18195
177321bd
DJ
181962010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18197
18198 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18199 (thumb2_breakpoint): New.
18200 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18201
2b009048
DJ
182022010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18203
18204 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18205 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18206 breakpoints.
18207
3be029c7
PA
182082010-01-21 Pedro Alves <pedro@codesourcery.com>
18209
18210 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18211
18f5de3b
JK
182122010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18213
18214 * linux-s390-low.c (s390_collect_ptrace_register)
18215 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18216
3743bb4f
DE
182172010-01-21 Doug Evans <dje@google.com>
18218
14ce3065
DE
18219 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18220 (PTRACE_ARG4_TYPE): New macro.
18221 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18222 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18223 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18224 (usr_store_inferior_registers): Ditto.
18225 (linux_read_memory, linux_write_memory): Ditto.
18226 (linux_test_for_tracefork): Ditto.
18227
3743bb4f
DE
18228 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18229 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18230
8b315be5
PA
182312010-01-21 Pedro Alves <pedro@codesourcery.com>
18232
18233 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18234 target.
18235
85492558
PA
182362010-01-21 Pedro Alves <pedro@codesourcery.com>
18237
18238 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18239 prototype to take a regcache. Adjust.
18240
442ea881
PA
182412010-01-20 Pedro Alves <pedro@codesourcery.com>
18242
18243 * regcache.h (struct thread_info): Forward declare.
18244 (struct regcache): New.
18245 (new_register_cache): Adjust prototype.
18246 (get_thread_regcache): Declare.
18247 (free_register_cache): Adjust prototype.
18248 (registers_to_string, registers_from_string): Ditto.
18249 (supply_register, supply_register_by_name, collect_register)
18250 (collect_register_as_string, collect_register_by_name): Ditto.
18251 * regcache.c (struct inferior_regcache_data): Delete.
18252 (get_regcache): Rename to ...
18253 (get_thread_regcache): ... this. Adjust. Switch inferior before
18254 fetching registers.
18255 (regcache_invalidate_one): Adjust.
18256 (regcache_invalidate): Fix prototype.
18257 (new_register_cache): Return the new register cache.
18258 (free_register_cache): Change prototype.
18259 (realloc_register_cache): Adjust.
18260 (registers_to_string): Change prototype to take a regcache. Adjust.
18261 (registers_from_string): Ditto.
18262 (register_data): Ditto.
18263 (supply_register): Ditto.
18264 (supply_register_by_name): Ditto.
18265 (collect_register): Ditto.
18266 (collect_register_as_string): Ditto.
18267 (collect_register_by_name): Ditto.
18268 * server.c (process_serial_event): Adjust.
18269 * linux-low.h (regset_fill_func, regset_store_func): Change
18270 prototype.
18271 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18272 Change prototype.
18273 * linux-low.c (get_stop_pc): Adjust.
18274 (check_removed_breakpoint): Adjust.
18275 (linux_wait_for_event): Adjust.
18276 (linux_resume_one_lwp): Adjust.
18277 (fetch_register): Add regcache parameter. Adjust.
18278 (usr_store_inferior_registers): Ditto.
18279 (regsets_fetch_inferior_registers): Ditto.
18280 (regsets_store_inferior_registers): Ditto.
18281 (linux_fetch_registers, linux_store_registers): Ditto.
18282 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18283 regcache. Adjust.
43aaf8b6
PA
18284 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18285 Ditto.
442ea881
PA
18286 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18287 prototype to take a regcache.
18288 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18289 * remote-utils.c (convert_ascii_to_int, outreg)
18290 (prepare_resume_reply): Change prototype to take a regcache.
18291 Adjust.
18292 * target.h (struct target_ops) <fetch_registers, store_registers>:
18293 Change prototype to take a regcache.
18294 (fetch_inferior_registers, store_inferior_registers): Change
18295 prototype to take a regcache. Adjust.
18296 * proc-service.c (ps_lgetregs): Adjust.
18297 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18298 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18299 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18300 take a regcache. Adjust.
18301 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18302 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18303 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18304 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18305 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18306 (cris_cannot_fetch_register):
18307 (cris_breakpoint_at): Change prototype to take a regcache.
18308 Adjust.
18309 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18310 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18311 to take a regcache. Adjust.
18312 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18313 Adjust.
18314 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18315 take a regcache. Adjust.
18316 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18317 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18318 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18319 * linux-mips-low.c (mips_get_pc):
18320 (mips_set_pc): Change prototype to take a regcache. Adjust.
18321 (mips_reinsert_addr): Adjust.
18322 (mips_collect_register): Change prototype to take a regcache.
18323 Adjust.
18324 (mips_supply_register):
18325 (mips_collect_register_32bit, mips_supply_register_32bit)
18326 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18327 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18328 * linux-ppc-low.c (ppc_supply_ptrace_register)
18329 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18330 (parse_spufs_run): Adjust.
18331 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18332 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18333 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18334 take a regcache. Adjust.
18335 * linux-s390-low.c (s390_collect_ptrace_register)
18336 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18337 (s390_set_pc): Change prototype to take a regcache. Adjust.
18338 (s390_arch_setup): Adjust.
18339 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18340 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18341 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18342 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18343 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18344 regcache. Adjust.
18345 (sparc_breakpoint_at): Adjust.
18346 * linux-xtensa-low.c (xtensa_fill_gregset):
18347 (xtensa_store_gregset):
18348 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18349 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18350 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18351 prototype to take a regcache. Adjust.
18352 * win32-arm-low.c (arm_fetch_inferior_register)
18353 (arm_store_inferior_register): Change prototype to take a
18354 regcache. Adjust.
18355 * win32-i386-low.c (i386_fetch_inferior_register)
18356 (i386_store_inferior_register): Change prototype to take a
18357 regcache. Adjust.
18358 * win32-low.c (child_fetch_inferior_registers)
18359 (child_store_inferior_registers): Change prototype to take a
18360 regcache. Adjust.
18361 (win32_wait): Adjust.
18362 (win32_fetch_inferior_registers): Change prototype to take a
18363 regcache. Adjust.
18364 (win32_store_inferior_registers): Adjust.
18365 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18366 store_inferior_register>: Change prototype to take a regcache.
18367
60c3d7b0
DE
183682010-01-20 Doug Evans <dje@google.com>
18369
18370 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18371 #ifdef.
18372 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18373 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18374
dc146f7c
VP
183752010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18376
18377 * linux-low.c (linux_core_of_thread): New.
18378 (compare_ints, show_process, list_threads): New.
18379 (linux_qxfer_osdata): Report threads and cores.
18380 (linux_target_op): Register linux_core_of_thread.
18381 * remote-utils.c (prepare_resume_reply): Report the core.
18382 (buffer_xml_printf): Support %d specifier.
18383 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18384 New.
18385 (handle_query): Handle qXfer:threads. Announce availability
18386 thereof.
18387 * target.h (struct target_ops): New field core_of_thread.
18388
7803799a
UW
183892010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18390
18391 * Makefile.in (clean): Remove new generated files.
18392 (reg-s390.o, reg-s390.c): Remove rules.
18393 (reg-s390x.o, reg-s390x.c): Likewise.
18394 (s390-linux32.o, s390-linux32.c): Add rules.
18395 (s390-linux64.o, s390-linux64.c): Likewise.
18396 (s390x-linux64.o, s390x-linux64.c): Likewise.
18397 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18398 * linux-s390-low.c: Include <elf.h>.
18399 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18400 (init_registers_s390): Remove prototype.
18401 (init_registers_s390x): Likewise.
18402 (init_registers_s390_linux32): Add prototype.
18403 (init_registers_s390_linux64): Likewise.
18404 (init_registers_s390x_linux64): Likewise.
18405 (s390_num_regs_3264): New define.
18406 (s390_regmap_3264): New global variable.
18407 (s390_cannot_fetch_register): Remove obsolete check.
18408 (s390_cannot_store_register): Likewise.
18409 (s390_collect_ptrace_register): Handle upper/lower register halves.
18410 (s390_supply_ptrace_register): Likewise.
18411 (s390_fill_gregset): Update to register number changes.
18412 (s390_get_hwcap): New routine.
18413 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18414 Install appropriate regmap and register set.
18415
6e7ffa39
JB
184162010-01-01 Joel Brobecker <brobecker@adacore.com>
18417
18418 * server.c (gdbserver_version): Update copyright year to 2010.
18419 * gdbreplay.c (gdbreplay_version): Likewise.
18420
957f3f49
DE
184212009-12-28 Doug Evans <dje@google.com>
18422
18423 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18424 elf/external.h. Include <elf.h> instead but only if necessary.
18425
ca5c370d
PA
184262009-12-28 Pedro Alves <pedro@codesourcery.com>
18427
18428 * linux-low.c (linux_remove_process): Remove `detaching'
18429 parameter. Don't release/detach from thread_db here.
18430 (linux_kill): Release/detach from thread_db here, ...
18431 (linux_detach): ... and here, before actually detaching.
18432 (linux_wait_1): ... and here, when a process exits.
18433 * thread-db.c (any_thread_of): New.
18434 (thread_db_free): Switch the current inferior to a thread of the
18435 passed in process.
18436
4ee62156
DE
184372009-12-21 Doug Evans <dje@google.com>
18438
d90e6a88
DE
18439 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18440
c5f62d5f
DE
18441 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18442 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18443 warning ifndef __NR_tkill. Move setting of errno there too.
18444 Delete unnecessary resetting of errno after syscall.
18445 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18446
10e86dd7
DE
18447 * configure.ac: Check for dladdr.
18448 * config.in: Regenerate.
18449 * configure: Regenerate.
18450 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18451 (try_thread_db_load): Update.
18452
4ee62156
DE
18453 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18454
00f515da
DE
184552009-12-18 Doug Evans <dje@google.com>
18456
e9464885
DE
18457 * event-loop.c: Include unistd.h if it exists.
18458
07d4f67e
DE
18459 * linux-low.c (my_waitpid): Move definition away from being in
18460 between linux_tracefork_child/linux_test_for_tracefork.
18461
00f515da
DE
18462 * gdb_proc_service.h (psaddr_t): Fix type.
18463 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18464 signature to match glibc.
18465
1de1badb
DE
184662009-12-16 Doug Evans <dje@google.com>
18467
18468 * linux-low.c (linux_read_memory): Fix argument to read.
18469
aeeb81d1
PA
184702009-11-26 Pedro Alves <pedro@codesourcery.com>
18471
18472 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18473 events, don't leave current_inferior pointing at null.
18474
10357975
PA
184752009-11-26 Pedro Alves <pedro@codesourcery.com>
18476
18477 * win32-low.c (LOG): Delete.
18478 (OUTMSG): Output to stderr.
18479 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18480 on compile time LOG macro.
18481 (win32_wait): Fix debug output.
18482
cf6e3471
PA
184832009-11-26 Pedro Alves <pedro@codesourcery.com>
18484
18485 * win32-low.c (win32_add_one_solib): If the dll name is
18486 "ntdll.dll", prepend the system directory to the dll path.
18487
0c85e18e
MK
184882009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18489
18490 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18491
9ac544ce 184922009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18493 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18494
18495 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18496 * configure.ac: Check for __mcoldfire__ and set
18497 gdb_cv_m68k_is_coldfire.
18498 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18499 reg-cf.o and reg-m68k.o.
18500 * configure: Regenerated.
18501
fd7dd3e6
PA
185022009-11-16 Pedro Alves <pedro@codesourcery.com>
18503
18504 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18505 Pass it to thread_db_free.
18506 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18507 proper `detaching' argument to linux_remove_process.
18508 * linux-low.h (thread_db_free): Add `detaching' parameter.
18509 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18510 to thread_db_free.
18511 (thread_db_free): Add `detaching' parameter. Only
18512 call td_ta_clear_event if detaching from process.
18513
75aa492e
MK
185142009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18515
18516 * thread-db.c (thread_db_free): Fix typo.
18517
21e1bee4
PP
185182009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18519
18520 PR gdb/10838
18521 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18522
8838b45e
NS
185232009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18524
18525 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18526 with an i686 compiler.
18527 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18528 needed.
18529 * configure: Rebuilt.
18530
8a35fb51
SL
185312009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18532
18533 PR gdb/10783
18534
18535 * server.c (handle_search_memory_1): Correct read_addr initialization
18536 in loop for searching subsequent chunks.
18537
96f15937
PP
185382009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18539
18540 * configure.ac: New --with-libthread-db option.
18541 * thread-db.c: Allow direct dependence on libthread_db.
18542 (thread_db_free): Adjust.
18543 * config.in: Regenerate.
18544 * configure: Likewise.
889bf7c5 18545
5f7d1694
PP
185462009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18547
18548 PR gdb/10757
18549 * thread-db.c (attach_thread): New function.
18550 (maybe_attach_thread): Return success/failure.
18551 (find_new_threads_callback): Adjust.
889bf7c5
PA
18552 (thread_db_find_new_threads): Loop until no new threads.
18553
88e3b899
PA
185542009-10-13 Pedro Alves <pedro@codesourcery.com>
18555
18556 * proc-service.c (ps_lgetregs): Formatting.
18557
cdbfd419
PP
185582009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18559
18560 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18561 * configure.ac: Adjust.
18562 * linux-low.h (struct process_info_private): Move members to struct
18563 thread_db.
18564 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18565 * linux-low.c (linux_remove_process): Adjust.
18566 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18567 * server.c (handle_query): Move code ...
18568 (handle_monitor_command): ... here. New function.
18569 * target.h (struct target_ops): New member.
18570 * thread-db.c (struct thread_db): New.
18571 (libthread_db_search_path): New variable.
18572 (thread_db_create_event, thread_db_enable_reporting)
18573 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18574 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18575 (try_thread_db_load_1, dladdr_to_soname): New functions.
18576 (try_thread_db_load, thread_db_load_search): New functions.
18577 (thread_db_init): Search for libthread_db.
18578 (thread_db_free): New function.
18579 (thread_db_handle_monitor_command): Likewise.
18580 * config.in: Regenerate.
18581 * configure: Regenerate.
889bf7c5 18582
4168d2d6
UW
185832009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18584
18585 * spu-low.c (spu_kill): Wait for inferior to terminate.
18586 Call clear_inferiors.
18587 (spu_detach): Call clear_inferiors.
18588
81ecdfbb
RW
185892009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18590
18591 * aclocal.m4: Regenerate.
18592 * config.in: Likewise.
18593 * configure: Likewise.
18594
0b9ff2c0
UW
185952009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18596
18597 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18598 (parse_spufs_run): New function.
18599 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18600 (ppc_breakpoint_at): Handle SPU breakpoints.
18601
efcbbd14
UW
186022009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18603
18604 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18605 (SPUFS_MAGIC): Define.
18606 (spu_enumerate_spu_ids): New function.
18607 (linux_qxfer_spu): New function.
18608 (linux_target_ops): Install linux_qxfer_spu.
18609
f4d9bade
UW
186102009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18611
18612 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18613 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18614 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18615 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18616 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18617 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18618 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18619 (init_registers_powerpc_cell32l): Add prototype.
18620 (init_registers_powerpc_cell64l): Likewise.
18621 (ppc_arch_setup): Detect Cell/B.E. architecture.
18622
96e946ca
RW
186232009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18624
18625 * Makefile.in (datarootdir): New variable.
18626
58d6951d
DJ
186272009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18628
18629 * linux-low.c (linux_write_memory): Update debugging output.
18630 * Makefile.in (clean): Add new descriptions.
18631 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18632 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18633 * configure.srv: Add new files for arm*-*-linux*.
18634 * linux-arm-low.c: Add new declarations.
18635 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18636 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18637 (HWCAP_VFPv3D16): New.
18638 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18639 instead of __IWMMXT__.
18640 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18641 (arm_arch_setup): New.
18642 (target_regsets): Remove #ifdef. Add VFP regset.
18643 (the_low_target): Use arm_arch_setup.
18644
12b42a12
DJ
186452009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18646
18647 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18648 the main thread again.
18649
ac8c974e
AR
186502009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18651
18652 Adding Neutrino gdbserver.
18653 * configure: Regenerated.
18654 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18655 * configure.srv (i[34567]86-*-nto*): New target.
18656 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18657 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18658 (nto_comctrl) [__QNX__]: New function.
18659 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18660
4424e0c3 186612009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18662
18663 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18664 srv_tgtobj.
18665
912cf4ba
PA
186662009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18667 Pedro Alves <pedro@codesourcery.com>
18668
18669 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18670 don't support CONTEXT_EXTENDED_REGISTERS.
18671 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18672 (the_low_target): Install them.
18673 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18674 failing with ERROR_PIPE_NOT_CONNECTED.
18675
aa5ca48f
DE
186762009-06-30 Doug Evans <dje@google.com>
18677 Pierre Muller <muller@ics.u-strasbg.fr>
18678
18679 Add h/w watchpoint support to x86-linux, win32-i386.
18680 * Makefile.in (SFILES): Add i386-low.c
18681 (i386_low_h): Define.
18682 (i386-low.o): Add dependencies.
18683 (linux-x86-low.o): Add i386-low.h dependency.
18684 (win32-i386-low.o): Ditto.
18685 * i386-low.c: New file.
18686 * i386-low.h: New file.
18687 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18688 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18689 * linux-low.c (linux_add_process): Initialize arch_private.
18690 (linux_remove_process): Free arch_private.
18691 (add_lwp): Initialize arch_private.
18692 (delete_lwp): Free arch_private.
18693 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18694 provided.
18695 * linux-low.h (process_info_private): New member arch_private.
18696 (lwp_info): New member arch_private.
18697 (linux_target_ops): New members new_process, new_thread,
18698 prepare_to_resume.
18699 (ptid_of): New macro.
18700 * linux-x86-low.c: Include stddef.h, i386-low.h.
18701 (arch_process_info): New struct.
18702 (arch_lwp_info): New struct.
18703 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18704 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18705 (i386_dr_low_get_status): New function.
18706 (x86_insert_point, x86_remove_point): New functions.
18707 (x86_stopped_by_watchpoint): New function.
18708 (x86_stopped_data_address): New function.
18709 (x86_linux_new_process, x86_linux_new_thread): New functions.
18710 (x86_linux_prepare_to_resume): New function.
18711 (the_low_target): Add entries for insert_point, remove_point,
18712 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18713 prepare_to_resume.
18714 * server.c (debug_hw_points): New global.
18715 (monitor_show_help): Document set debug-hw-points.
18716 (handle_query): Process "set debug-hw-points".
18717 * server.h (debug_hw_points): Declare.
18718 (paddress): Declare.
18719 * utils.c (NUMCELLS, CELLSIZE): New macros.
18720 (get_sell, xsnprintf, paddress): New functions.
18721 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18722 remove_point, stopped_by_watchpoint, stopped_data_address.
18723 * win32-i386-low.c: Include i386-low.h.
18724 (debug_reg_state): Replaces dr.
18725 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18726 (i386_dr_low_get_status): New function.
18727 (i386_insert_point, i386_remove_point): New functions.
18728 (i386_stopped_by_watchpoint): New function.
18729 (i386_stopped_data_address): New function.
18730 (i386_initial_stuff): Update.
18731 (get_thread_context,set_thread_context,i386_thread_added): Update.
18732 (the_low_target): Add entries for insert_point,
18733 remove_point, stopped_by_watchpoint, stopped_data_address.
18734 * win32-low.c (win32_insert_watchpoint): New function.
18735 (win32_remove_watchpoint): New function.
18736 (win32_stopped_by_watchpoint): New function.
18737 (win32_stopped_data_address): New function.
18738 (win32_target_ops): Add entries for insert_watchpoint,
18739 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18740 * win32-low.h (win32_target_ops): New members insert_point,
18741 remove_point, stopped_by_watchpoint, stopped_data_address.
18742
d993e290
PA
187432009-06-25 Pedro Alves <pedro@codesourcery.com>
18744
18745 * server.c (process_serial_event): Re-return unsupported, not
18746 error, if the type isn't recognized. Re-allow supporting only
18747 insert or remove packets. Also call require_running for
18748 breakpoints. Add missing break statement to default case. Tidy.
18749 * target.h (struct target_ops): Rename insert_watchpoint to
18750 insert_point, and remove_watchpoint to remove_point.
18751
18752 * linux-low.h (struct linux_target_ops): Likewise.
18753 * linux-low.c (linux_insert_watchpoint): Rename to ...
18754 (linux_insert_point): ... this. Adjust.
18755 (linux_remove_watchpoint): Rename to ...
18756 (linux_remove_point): ... this. Adjust.
18757 (linux_target_ops): Adjust.
18758 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18759 (cris_insert_point): ... this.
18760 (cris_remove_watchpoint): Rename to ...
18761 (cris_remove_point): ... this.
18762 (the_low_target): Adjust.
18763
0f54c268
PM
187642009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18765
18766 * server.c (handle_v_kill): Pass signal_pid to
18767 kill_inferior if multi_process is zero.
18768
c6314022
AR
187692009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18770
18771 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18772 * target.h (target_ops): Comment for *_watchpoint to make it clear
18773 the functions can get types '0' and '1'.
18774
4463ce24
AR
187752009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18776
18777 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18778 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18779 * regcache.c (get_regcache): Likewise.
18780 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18781 * win32-low.c (child_fetch_inferior_registers): Remove check for
18782 regno 0.
18783
cf8fd78b
PA
187842009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18785 Pedro Alves <pedro@codesourcery.com>
18786
18787 * target.h (struct target_ops) <supports_multi_process>: New
18788 callback.
18789 (target_supports_multi_process): New.
18790 * server.c (handle_query): Even if GDB reports support, only
18791 enable multi-process if the target also supports it. Report
18792 multi-process support only if the target backend supports it.
18793 * linux-low.c (linux_supports_multi_process): New function.
18794 (linux_target_ops): Install it as target_supports_multi_process
18795 callback.
18796
47c0c975
DE
187972009-05-24 Doug Evans <dje@google.com>
18798
e09875d4
DE
18799 Global renaming of find_thread_pid to find_thread_ptid.
18800 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18801 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18802 All callers updated.
18803
e27d73f6
DE
18804 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18805 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18806 directly.
18807
47c0c975
DE
18808 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18809 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18810 (linux_resume_one_lwp): Ditto.
18811
2acc282a
DE
188122009-05-23 Doug Evans <dje@google.com>
18813
18814 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18815 from struct inferior_list_entry * to struct lwp_info *.
18816 All callers updated.
18817
9f1036c1
DE
188182009-05-13 Doug Evans <dje@google.com>
18819
18820 * linux-x86-low.c: Don't include assert.h.
18821 (x86_siginfo_fixup): Use fatal, not assert.
18822 (x86_arch_setup): Fix comment.
18823
d0722149
DE
188242009-05-12 Doug Evans <dje@google.com>
18825
18826 Biarch support for i386/amd64 gdbserver.
18827 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18828 Add linux-x86-low.c.
18829 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18830 (linux-x86-low.o): Add.
18831 * linux-x86-64-low.c: Delete.
18832 * linux-i386-low.c: Delete.
18833 * linux-x86-low.c: New file.
18834 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18835 linux-x86-low.o.
18836 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18837 linux-x86-low.o.
18838 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18839 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18840 (linux_child_pid_to_exec_file): New function.
18841 (elf_64_header_p, elf_64_file_p): New functions.
18842 (siginfo_fixup): New function.
18843 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18844 give target a chance to convert layout.
18845 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18846 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18847
fdeb2a12
DE
188482009-05-07 Doug Evans <dje@google.com>
18849
18850 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18851 (regsets_store_inferior_registers): Ditto.
18852
a6dbe5df
PA
188532009-05-06 Pedro Alves <pedro@codesourcery.com>
18854
18855 PR server/10048
18856
18857 * linux-low.c (must_set_ptrace_flags): Delete.
18858 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18859 of the global.
18860 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18861 `lwp->must_set_ptrace_flags' instead.
ba42693b 18862 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
18863 (linux_wait_1): ... not here.
18864
5091eb23
DE
188652009-04-30 Doug Evans <dje@google.com>
18866
9f767825
DE
18867 * inferiors.c (started_inferior_callback): New function.
18868 (attached_inferior_callback): New function.
18869 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18870 * server.c (print_started_pid, print_attached_pid): New functions.
18871 (detach_or_kill_for_exit): New function.
18872 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18873 * server.h (have_started_inferiors_p): Declare.
18874 (have_attached_inferiors_p): Declare.
18875
5091eb23
DE
18876 * inferiors.c (remove_process): Fix memory leak, free process.
18877 * linux-low.c (linux_remove_process): New function.
18878 (linux_kill): Call it instead of remove_process.
18879 (linux_detach, linux_wait_1): Ditto.
18880
155c8968
PA
188812009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18882
18883 * configure.srv: Add x86 Windows CE target.
18884
7fe519cb
UW
188852009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18886
18887 * inferiors.c (get_thread_process): Make global.
18888 * server.h (get_thread_process): Add prototype.
18889 * thread-db.c (find_one_thread): Use get_thread_process
18890 instead of current_process.
18891 (thread_db_get_tls_address): Do not crash if called when
18892 thread layer is not yet initialized.
18893
5472f405
UW
188942009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18895
18896 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18897 * spu-low.c (current_tid): Rename to ...
18898 (current_ptid): ... this.
18899 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18900 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18901 ptid_get_lwp (current_ptid) instead of current_tid.
18902 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18903 instead of current_tid. Use find_process_pid to verify pid
18904 argument is valid. Pass proper argument to remove_process.
18905 (spu_thread_alive): Compare current_ptid instead of current_tid.
18906 (spu_resume): Likewise.
18907
55ac2b99
PA
189082009-04-02 Pedro Alves <pedro@codesourcery.com>
18909
18910 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18911 variable.
18912
95954743
PA
189132009-04-01 Pedro Alves <pedro@codesourcery.com>
18914
18915 Implement the multiprocess extensions, and add linux multiprocess
18916 support.
18917
18918 * server.h (ULONGEST): Declare.
18919 (struct ptid, ptid_t): New.
18920 (minus_one_ptid, null_ptid): Declare.
18921 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18922 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18923 (struct inferior_list_entry): Change `id' type from unsigned from
18924 to ptid_t.
18925 (struct sym_cache, struct breakpoint, struct
18926 process_info_private): Forward declare.
18927 (struct process_info): Declare.
18928 (current_process): Declare.
18929 (all_processes): Declare.
18930 (initialize_inferiors): Declare.
18931 (add_thread): Adjust to use ptid_t.
18932 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18933 (add_process, remove_process, find_thread_pid): Declare.
18934 (find_inferior_id): Adjust to use ptid_t.
18935 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18936 (multi_process): Declare.
18937 (push_event): Adjust to use ptid_t.
18938 (read_ptid, write_ptid): Declare.
18939 (prepare_resume_reply): Adjust to use ptid_t.
18940 (clear_symbol_cache): Declare.
18941 * inferiors.c (all_processes): New.
18942 (null_ptid, minus_one_ptid): New.
18943 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18944 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18945 (add_thread): Change unsigned long to ptid. Remove gdb_id
18946 parameter. Adjust.
18947 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18948 (gdb_id_to_thread): Rename to ...
18949 (find_thread_pid): ... this. Change unsigned long to ptid.
18950 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18951 (loaded_dll, pull_pid_from_list): Adjust.
18952 (add_process, remove_process, find_process_pid)
18953 (get_thread_process, current_process, initialize_inferiors): New.
18954 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18955 (struct target_waitstatus) <related_pid>: Ditto.
18956 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18957 return type to int.
18958 (struct target_ops) <join>: Add `pid' argument.
18959 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18960 (struct target_ops) <wait>: Add `ptid' field. Change return type
18961 to ptid.
18962 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18963 (mywait): Add `ptid' argument. Change return type to ptid_t.
18964 (target_pid_to_str): Declare.
18965 * target.c (set_desired_inferior): Adjust to use ptids.
18966 (mywait): Add new `ptid' argument. Adjust.
18967 (target_pid_to_str): New.
18968 * mem-break.h (free_all_breakpoints): Declare.
18969 * mem-break.c (breakpoints): Delelete.
18970 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18971 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18972 to use per-process breakpoint list.
18973 (free_all_breakpoints): New.
18974 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18975 (symbol_cache, all_symbols_looked_up): Delete.
18976 (hexchars): New.
18977 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18978 read_ptid): New.
18979 (prepare_resume_reply): Change ptid argument's type from unsigned
18980 long to ptid_t. Adjust. Implement W;process and X;process.
18981 (free_sym_cache, clear_symbol_cache): New.
18982 (look_up_one_symbol): Adjust to per-process symbol cache. *
18983 * server.c (cont_thread, general_thread, step_thread): Change type
18984 to ptid_t.
18985 (attached): Delete.
18986 (multi_process): New.
18987 (last_ptid): Change type to ptid_t.
18988 (struct vstop_notif) <ptid>: Change type to ptid_t.
18989 (queue_stop_reply, push_event): Change `ptid' argument's type to
18990 ptid_t.
18991 (discard_queued_stop_replies): Add `pid' argument.
18992 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18993 changes. Don't reference the `attached' global.
18994 (attach_inferior): Adjust to mywait interface changes.
18995 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18996 features. Handle and report "multiprocess+". Handle
18997 "qAttached:PID".
18998 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18999 changes.
19000 (handle_v_kill): New.
19001 (handle_v_stopped): Adjust to use target_pid_to_str.
19002 (handle_v_requests): Allow multiple attaches and runs when
19003 multiprocess extensions are in effect. Handle "vKill".
19004 (myresume): Adjust to use ptids.
19005 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19006 (handle_status): Adjust to discard_queued_stop_replies interface
19007 change.
19008 (first_thread_of, kill_inferior_callback)
19009 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19010 (main): Call initialize_inferiors. Adjust to use ptids, killing
19011 and detaching from all inferiors. Handle multiprocess packet
19012 variants.
19013 * linux-low.h: Include gdb_proc_service.h.
19014 (struct process_info_private): New.
19015 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19016 <lwpid_of>: Use ptid_get_lwp.
19017 (get_lwp_thread): Adjust.
19018 (struct lwp_info): Add `dead' member.
19019 (find_lwp_pid): Declare.
19020 * linux-low.c (thread_db_active): Delete.
19021 (new_inferior): Adjust comment.
19022 (inferior_pid): Delete.
19023 (linux_add_process): New.
19024 (handle_extended_wait): Adjust.
19025 (add_lwp): Change unsigned long to ptid.
19026 (linux_create_inferior): Add process to processes table. Adjust
19027 to use ptids. Don't set new_inferior here.
19028 (linux_attach_lwp): Rename to ...
19029 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19030 it. Adjust to use ptids.
19031 (linux_attach_lwp): New.
19032 (linux_attach): Add process to processes table. Don't set
19033 new_inferior here.
19034 (struct counter): New.
19035 (second_thread_of_pid_p, last_thread_of_process_p): New.
19036 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19037 multiple processes.
19038 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19039 processes. Remove process from process table.
19040 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19041 to multiple processes.
19042 (any_thread_of): New.
19043 (linux_detach): Add `pid' argument, and handle it. Remove process
19044 from processes table.
19045 (linux_join): Add `pid' argument. Handle it.
19046 (linux_thread_alive): Change unsighed long argument to ptid_t.
19047 Consider dead lwps as not being alive.
19048 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19049 threads we're not interested in.
19050 (same_lwp, find_lwp_pid): New.
19051 (linux_wait_for_lwp): Change `pid' argument's type from int to
19052 ptid_t. Adjust.
19053 (linux_wait_for_event): Rename to ...
19054 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19055 from int to ptid_t. Adjust.
19056 (linux_wait_for_event): New.
19057 (linux_wait_1): Add `ptid' argument. Change return type to
19058 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19059 that exit from the process table.
19060 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19061 Adjust.
19062 (mark_lwp_dead): New.
19063 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19064 stopping all threads, mark its main lwp as dead.
19065 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19066 ptids.
19067 (fetch_register, usr_store_inferior_registers)
19068 (regsets_fetch_inferior_registers)
19069 (regsets_store_inferior_registers, linux_read_memory)
19070 (linux_write_memory): Inline `inferior_pid'.
19071 (linux_look_up_symbols): Adjust to use per-process
19072 `thread_db_active'.
19073 (linux_request_interrupt): Adjust to use ptids.
19074 (linux_read_auxv): Inline `inferior_pid'.
19075 (initialize_low): Don't reference thread_db_active.
19076 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19077 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19078 (ps_getpid): Return the pid of the current inferior.
19079 * thread-db.c (proc_handle, thread_agent): Delete.
19080 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19081 per-process data.
19082 (find_one_thread): Change argument type to ptid_t. Adjust to
19083 per-process data.
19084 (maybe_attach_thread): Adjust to per-process data and ptids.
19085 (thread_db_find_new_threads): Ditto.
19086 (thread_db_init): Ditto.
19087 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19088 processes table. Adjust to use ptids.
19089 (spu_kill, spu_detach): Adjust interface. Remove process from
19090 processes table.
19091 (spu_join, spu_thread_alive): Adjust interface.
19092 (spu_wait): Adjust interface. Remove process from processes
19093 table. Adjust to use ptids.
19094 * win32-low.c (current_inferior_tid): Delete.
19095 (current_inferior_ptid): New.
19096 (debug_event_ptid): New.
19097 (thread_rec): Take a ptid. Adjust.
19098 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19099 (child_delete_thread): Ditto.
19100 (do_initial_child_stuff): Add `attached' argument. Add process to
19101 processes table.
19102 (child_fetch_inferior_registers, child_store_inferior_registers):
19103 Adjust.
19104 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19105 (win32_attach): Pass 1 to do_initial_child_stuff.
19106 (win32_kill): Adjust interface. Remove process from processes
19107 table.
19108 (win32_detach): Ditto.
19109 (win32_join): Adjust interface.
19110 (win32_thread_alive): Take a ptid.
19111 (win32_resume): Adjust to use ptids.
19112 (get_child_debug_event): Ditto.
19113 (win32_wait): Adjust interface. Remove exiting process from
19114 processes table.
19115
bd99dc85
PA
191162009-04-01 Pedro Alves <pedro@codesourcery.com>
19117
19118 Non-stop mode support.
19119
19120 * server.h (non_stop): Declare.
19121 (gdb_client_data, handler_func): Declare.
19122 (delete_file_handler, add_file_handler, start_event_loop):
19123 Declare.
19124 (handle_serial_event, handle_target_event, push_event)
19125 (putpkt_notif): Declare.
19126 * target.h (enum resume_kind): New.
19127 (struct thread_resume): Replace `step' field by `kind' field.
19128 (TARGET_WNOHANG): Define.
19129 (struct target_ops) <wait>: Add `options' argument.
19130 <supports_non_stop, async, start_non_stop>: New fields.
19131 (target_supports_non_stop, target_async): New.
19132 (start_non_stop): Declare.
19133 (mywait): Add `options' argument.
19134 * target.c (mywait): Add `options' argument. Print child exit
19135 notifications here.
19136 (start_non_stop): New.
19137 * server.c (non_stop, own_buf, mem_buf): New globals.
19138 (struct vstop_notif): New.
19139 (notif_queue): New global.
19140 (queue_stop_reply, push_event, discard_queued_stop_replies)
19141 (send_next_stop_reply): New.
19142 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19143 interface changes.
19144 (attach_inferior): In non-stop mode, don't wait for the target
19145 here.
19146 (handle_general_set): Handle QNonStop.
19147 (handle_query): When handling qC, return the current general
19148 thread, instead of the first thread of the list.
19149 (handle_query): If the backend supports non-stop mode, include
19150 QNonStop+ in the qSupported query response.
19151 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19152 and non-stop mode.
19153 (handle_v_attach, handle_v_run): Handle non-stop mode.
19154 (handle_v_stopped): New.
19155 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19156 (myresume): Adjust to use resume_kind. Handle non-stop.
19157 (queue_stop_reply_callback): New.
19158 (handle_status): Handle non-stop mode.
19159 (main): Clear non_stop flag on reconnection. Use the event-loop.
19160 Refactor serial protocol handling from here ...
19161 (process_serial_event): ... to this new function. When GDB
19162 selects any thread, select one here. In non-stop mode, wait until
19163 GDB acks all pending events before exiting.
19164 (handle_serial_event, handle_target_event): New.
19165 * remote-utils.c (remote_open): Install remote_desc in the event
19166 loop.
19167 (remote_close): Remove remote_desc from the event loop.
19168 (putpkt_binary): Rename to...
19169 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19170 (putpkt_binary): New as wrapper around putpkt_binary_1.
19171 (putpkt_notif): New.
19172 (prepare_resume_reply): In non-stop mode, don't change the
19173 general_thread.
19174 * event-loop.c: New.
19175 * Makefile.in (OBJ): Add event-loop.o.
19176 (event-loop.o): New rule.
19177
19178 * linux-low.h (pid_of): Moved here.
19179 (lwpid_of): New.
19180 (get_lwp_thread): Use lwpid_of.
19181 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19182 * linux-low.c (pid_of): Delete.
19183 (inferior_pid): Use lwpid_of.
19184 (linux_event_pipe): New.
19185 (target_is_async_p): New.
19186 (delete_lwp): New.
19187 (handle_extended_wait): Use lwpid_of.
19188 (add_lwp): Don't set lwpid field.
19189 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19190 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19191 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19192 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19193 first. Adjust to linux_wait_for_event interface changes. Use
19194 lwpid_of.
19195 (linux_detach): Don't delete the main lwp here.
19196 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19197 (status_pending_p): Don't consider explicitly suspended lwps.
19198 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19199 pointer. Add OPTIONS argument. Change return type to int. Use
19200 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19201 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19202 pointer. Add status pointer argument. Return a pid instead of a
19203 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19204 changes. In non-stop mode, don't switch to a random thread.
19205 (linux_wait): Rename to...
19206 (linux_wait_1): ... this. Add target_options argument, and handle
19207 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19208 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19209 clean exit and signal exit code. Don't stop all threads in
19210 non-stop mode. In all-stop mode, only stop all threads when
19211 reporting a stop to GDB. Handle explicit thread stop requests.
19212 (async_file_flush, async_file_mark): New.
19213 (linux_wait): New.
19214 (send_sigstop): Use lwpid_of.
19215 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19216 interface changes. In non-stop mode, don't switch to a random
19217 thread.
19218 (linux_resume_one_lwp): Use lwpid_of.
19219 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19220 (linux_resume_one_thread): ... this. Handle resume_stop. In
19221 non-stop mode, don't look for pending flag in all threads.
19222 (resume_status_pending_p): Don't consider explicitly suspended
19223 threads.
19224 (my_waitpid): Reimplement. Emulate __WALL.
19225 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19226 Use lwpid_of.
19227 (sigchld_handler, linux_supports_non_stop, linux_async)
19228 (linux_start_non_stop): New.
19229 (linux_target_ops): Register linux_supports_non_stop, linux_async
19230 and linux_start_non_stop.
19231 (initialize_low): Install SIGCHLD handler.
19232 * thread-db.c (thread_db_create_event, find_one_thread)
19233 (thread_db_get_tls_address): Use lwpid_of.
19234 * win32-low.c (win32_detach): Adjust to use resume_kind.
19235 (win32_wait): Add `options' argument.
19236 * spu-low.c (spu_resume): Adjust to use resume_kind.
19237 (spu_wait): Add `options' argument.
19238
5b1c542e
PA
192392009-04-01 Pedro Alves <pedro@codesourcery.com>
19240
19241 Decouple target code from remote protocol.
19242
19243 * target.h (enum target_waitkind): New.
19244 (struct target_waitstatus): New.
19245 (struct target_ops) <wait>: Return an unsigned long. Take a
19246 target_waitstatus pointer instead of a char pointer.
19247 (mywait): Likewise.
19248 * target.c (mywait): Change prototype to return an unsigned long.
19249 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19250 * server.h (thread_from_wait, old_thread_from_wait): Delete
19251 declarations.
19252 (prepare_resume_reply): Change prototype to take a
19253 target_waitstatus.
19254 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19255 (last_status, last_ptid): New.
19256 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19257 pid instead of a signal.
19258 (attach_inferior): Remove "status" and "signal" parameters.
19259 Adjust.
19260 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19261 not as an address.
19262 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19263 (handle_v_requests, myresume): Remove "status" and "signal"
19264 parameters. Adjust.
19265 (handle_status): New.
19266 (main): Delete local `status'. Adjust.
19267 * remote-utils.c: Include target.h.
19268 (prepare_resume_reply): Change prototype to take a
19269 target_waitstatus. Adjust.
19270
19271 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19272 interface.
19273 * spu-low.c (spu_wait): Adjust.
19274 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19275 Delete.
19276 (win32_wait): Adjust.
19277
2bd7c093
PA
192782009-04-01 Pedro Alves <pedro@codesourcery.com>
19279
19280 * target.h (struct thread_resume): Delete leave_stopped member.
19281 (struct target_ops): Add a `n' argument to the `resume' callback.
19282 * server.c (start_inferior): Adjust.
19283 (handle_v_cont, myresume): Adjust.
19284 * linux-low.c (check_removed_breakpoint): Adjust to resume
19285 interface change, and to removed leave_stopped field.
19286 (resume_ptr): Delete.
19287 (struct thread_resume_array): New.
19288 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19289 resume interface change.
19290 (linux_continue_one_thread, linux_queue_one_thread)
19291 (resume_status_pending_p): Check if the resume field is NULL
19292 instead of checking the leave_stopped member.
19293 (linux_resume): Adjust to the target resume interface change.
19294 * spu-low.c (spu_resume): Adjust to the target resume interface
19295 change.
19296 * win32-low.c (win32_detach, win32_resume): Ditto.
19297
c35fafde
PA
192982009-04-01 Pedro Alves <pedro@codesourcery.com>
19299
19300 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19301 flag.
19302 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19303 pending.
19304 (linux_continue_one_thread): Only preserve the stepping flag if
19305 there's a pending breakpoint.
19306
0a59d50b
PA
193072009-03-31 Pedro Alves <pedro@codesourcery.com>
19308
19309 * server.c (main): After the inferior having exited, call
19310 remote_close before exiting gdbserver.
19311
f04c6d38
TJB
193122009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19313
19314 Fix size of FPSCR in Power 7 processors.
19315 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19316 (PPC_FEATURE_HAS_DFP): New #define.
19317 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19318 size of the FPSCR.
19319
78e5cee6
PA
193202009-03-23 Pedro Alves <pedro@codesourcery.com>
19321
19322 * server.c (handle_query) Whitespace and formatting.
19323
1b3f6016
PA
193242009-03-22 Pedro Alves <pedro@codesourcery.com>
19325
19326 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19327 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19328 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19329 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19330 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19331 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19332 Makefile.in, configure.ac: Fix whitespace throughout.
19333 * configure: Regenerate.
19334
a07b2135
PA
193352009-03-22 Pedro Alves <pedro@codesourcery.com>
19336
19337 * inferiors.c (find_inferior): Make it safe for the callback
19338 function to delete the currently iterated inferior.
19339
67cc2626
PA
193402009-03-22 Pedro Alves <pedro@codesourcery.com>
19341
19342 * Makefile.in (linuw_low_h): Move higher.
19343 (thread-db.o): Depend on $(linux_low_h).
19344
54a0b537
PA
193452009-03-17 Pedro Alves <pedro@codesourcery.com>
19346
19347 Rename "process" to "lwp" throughout.
19348
19349 * linux-low.c (all_processes): Rename to...
19350 (all_lwps): ... this.
19351 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19352 (add_process): Rename to ...
19353 (add_lwp): ... this. Adjust.
19354 (linux_create_inferior): Adjust.
19355 (linux_attach_lwp): Adjust.
19356 (linux_attach): Adjust.
19357 (linux_kill_one_process): Rename to ...
19358 (linux_kill_one_lwp): ... this. Adjust.
19359 (linux_kill): Adjust.
19360 (linux_detach_one_process): Rename to ...
19361 (linux_detach_one_lwp): ... this. Adjust.
19362 (linux_detach): Adjust.
19363 (check_removed_breakpoint): Adjust.
19364 (status_pending_p): Adjust.
19365 (linux_wait_for_process): Rename to ...
19366 (linux_wait_for_lwp): ... this. Adjust.
19367 (linux_wait_for_event): Adjust.
19368 (send_sigstop): Adjust.
19369 (wait_for_sigstop): Adjust.
19370 (stop_all_processes): Rename to ...
19371 (stop_all_lwps): ... this.
19372 (linux_resume_one_process): Rename to ...
19373 (linux_resume_one_lwp): ... this. Adjust.
19374 (linux_set_resume_request, linux_continue_one_thread)
19375 (linux_queue_one_thread, resume_status_pending_p)
19376 (usr_store_inferior_registers, regsets_store_inferior_registers)
19377 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19378 Adjust.
19379 * linux-low.h (get_process): Rename to ...
19380 (get_lwp): ... this. Adjust.
19381 (get_thread_process): Rename to ...
19382 (get_thread_lwp): ... this. Adjust.
19383 (get_process_thread): Rename to ...
19384 (get_lwp_thread): ... this. Adjust.
19385 (struct process_info): Rename to ...
19386 (struct lwp_info): ... this.
19387 (all_processes): Rename to ...
19388 (all_lwps): ... this.
19389 * proc-service.c (ps_lgetregs): Adjust.
19390 * thread-db.c (thread_db_create_event, find_one_thread)
19391 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19392
0b16c5cf
PA
193932009-03-14 Pedro Alves <pedro@codesourcery.com>
19394
19395 * server.c (handle_query): Handle "qAttached".
19396
32de4b9d
NS
193972009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19398
19399 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19400 GPLv3, update license URL.
19401
2aecd87f
DE
194022009-03-01 Doug Evans <dje@google.com>
19403
93efd302 19404 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19405 (server_h): Add gdb_signals.h.
19406 (signals.o): Update.
19407 * server.h (target_signal_from_host,target_signal_to_host_p)
19408 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19409
86b1f9c5
PM
194102009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19411
19412 * remote-utils.c (getpkt): Also generate remote-debug
19413 information if noack_mode is set.
19414
4aa995e1
PA
194152009-02-06 Pedro Alves <pedro@codesourcery.com>
19416
19417 * server.c (handle_query): Report qXfer:siginfo:read and
19418 qXfer:siginfo:write as supported and handle them.
19419 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19420 * linux-low.c (linux_xfer_siginfo): New.
19421 (linux_target_ops): Set it.
19422
62709adf
PA
194232009-01-26 Pedro Alves <pedro@codesourcery.com>
19424
19425 * server.c (gdbserver_usage): Mention --remote-debug.
19426 (main): Accept '--remote-debug' switch.
19427
aef93bd7
DE
194282009-01-18 Doug Evans <dje@google.com>
19429
19430 * regcache.c (new_register_cache): No need to check result of xcalloc.
19431 * server.c (handle_search_memory): Back out calls to xmalloc,
19432 result is checked and error is returned to user upon failure.
19433 (handle_query): Ditto. Add more checks for result of malloc.
19434 (handle_v_cont): Check result of malloc, report error back to
19435 user upon failure.
19436 (handle_v_run): Ditto. Call freeargv.
19437 * server.h (freeargv): Declare.
19438 * utils.c (freeargv): New fn.
19439
54363045
DE
194402009-01-15 Doug Evans <dje@google.com>
19441
f626972c
DE
19442 * gdbreplay.c (perror_with_name): Make arg const char *.
19443 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19444 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19445 * utils.c (perror_with_name): Make arg const char *.
54363045 19446
18aae699
PA
194472009-01-14 Pedro Alves <pedro@codesourcery.com>
19448
19449 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19450 when handling a EXIT_PROCESS_DEBUG_EVENT.
19451
ff703abe
JB
194522009-01-06 Joel Brobecker <brobecker@adacore.com>
19453
19454 * gdbreplay.c (gdbreplay_version): Update copyright year.
19455 * server.c (gdbserver_version): Likewise.
19456
f21cc1a2 194572009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19458
19459 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19460 (handle_extended_wait): Improve comment.
0e21c1ec 19461
bca929d3
DE
194622008-12-13 Doug Evans <dje@google.com>
19463
19464 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19465 * server.h (ATTR_MALLOC): New macro.
19466 (xmalloc,xcalloc,xstrdup): Declare.
19467 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19468 * inferiors.c: Ditto.
19469 * linux-low.c: Ditto.
19470 * mem-break.c: Ditto.
19471 * regcache.c: Ditto.
19472 * remote-utils.c: Ditto.
19473 * server.c: Ditto.
19474 * target.c: Ditto.
19475 * win32-low.c: Ditto.
19476
97438e3f
DE
194772008-12-12 Doug Evans <dje@google.com>
19478
896c7fbb
DE
19479 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19480 in debugging printf.
19481
97438e3f
DE
19482 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19483
e3b886f8
DE
194842008-12-09 Doug Evans <dje@google.com>
19485
19486 * linux-low.h (struct process_info): Delete member tid, unused.
19487 * thread-db.c (find_one_thread): Update.
19488 (maybe_attach_thread): Update.
19489
07e059b5
VP
194902008-12-02 Pedro Alves <pedro@codesourcery.com>
19491
889bf7c5
PA
19492 * target.h (struct target_ops): Add qxfer_osdata member.
19493 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19494 and dirent.h.
19495 (linux_qxfer_osdata): New functions.
19496 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19497 callback.
19498 * server.c (handle_query): Handle "qXfer:osdata:read:".
19499 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19500 (buffer_xml_printf): New functions.
19501 * server.h (struct buffer): New.
19502 (buffer_grow_str, buffer_grow_str0): New macros.
19503 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19504 (buffer_xml_printf): Declare.
07e059b5 19505
4cab47ab
DE
195062008-11-24 Doug Evans <dje@google.com>
19507
19508 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19509
f142445f
DJ
195102008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19511
19512 * server.c (handle_v_run): Always use the supplied argument list.
19513
d0107bb6 195142008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19515
d0107bb6
BW
19516 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19517 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19518
2c4ad781
TJB
195192008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19520
19521 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19522 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19523 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19524 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19525 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19526 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19527 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19528 XML target descriptions.
19529 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19530 when inferior is running on an ISA 2.05 or later processor. Add
19531 special case to return offset for full 64-bit slot of FPSCR when
19532 in 32-bits.
19533
dfb64f85
DJ
195342008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19535
19536 * Makefile.in (SFILES, clean): Added sparc64 files.
19537 (reg-sparc64.o, reg-sparc64.c): New.
19538 * configure.srv (sparc*-*-linux*): New configuration.
19539 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19540 syscall arguments for SPARC.
19541 (regsets_store_inferior_registers): Likewise.
19542 * linux-sparc-low.c: New file.
19543
66b6e1dd
DE
195442008-10-21 Doug Evans <dje@google.com>
19545
19546 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19547 (READLINE_DIR,READLINE_DEP): Delete.
19548 (INTERNAL_CFLAGS): Update.
19549 (LINTFLAGS): Update.
19550
9b710a42
PA
195512008-10-10 Pedro Alves <pedro@codesourcery.com>
19552
19553 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19554 whole argv from the last run, not just argv[0].
19555
5822d809
PA
195562008-09-08 Pedro Alves <pedro@codesourcery.com>
19557
19558 * regcache.c (new_register_cache): Return NULL if the register
19559 cache size isn't known yet.
19560 (free_register_cache): Avoid dereferencing a NULL regcache.
19561
74aac56f
DJ
195622008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19563
19564 * configure.srv: Merge MIPS and MIPS64.
19565
400b20f5
MR
195662008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19567
19568 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19569
677c5bb1
LM
195702008-08-18 Luis Machado <luisgpm@br.ibm.com>
19571
19572 * Makefile.in: Add required vsx dependencies.
19573
19574 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19575 Declare init_registers_powerpc_vsx32l.
19576 Declare init_registers_powerpc_vsx64l.
19577 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19578 (ppc_arch_setup): Check for VSX in hwcap.
19579 (ppc_fill_vsxregset): New function.
19580 (ppc_store_vsxregset): New function.
19581 Add new VSX entry in regset_info target_regsets.
19582
19583 * configure.srv: Add new VSX dependencies.
19584
a6f3e723
SL
195852008-08-12 Pedro Alves <pedro@codesourcery.com>
19586
19587 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19588 (remote_open): Set or clear transport_is_reliable.
19589 (putpkt_binary): Don't expect acks in noack mode.
19590 (getpkt): Don't send ack/nac in noack mode.
19591 * server.c (handle_general_set): Handle QStartNoAckMode.
19592 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19593 qSupported.
19594 (main): Reset noack_mode on every connection.
19595 * server.h (noack_mode): Declare.
19596
a417dc56
RW
195972008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19598
19599 * Makefile.in (GDBREPLAY_OBS): New variable.
19600 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19601
3221518c
UW
196022008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19603 Daniel Jacobowitz <dan@codesourcery.com>
19604
19605 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19606 (usr_store_inferior_registers): Likewise.
19607 (regsets_store_inferior_registers): Likewise.
19608
ec56be1b
PA
196092008-07-31 Rolf Jansen <rj@surtec.com>
19610 Pedro Alves <pedro@codesourcery.com>
19611
19612 * configure.ac: Check for memmem declaration.
19613 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19614 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19615 (disable_packet_qfThreadInfo): Unconditionally compile.
19616 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19617 * configure, config.in: Regenerate.
19618
2fe5e3ff
DE
196192008-07-28 Doug Kwan <dougkwan@google.com>
19620
19621 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19622 (linux_write_memory): Remove declaration of errno.
19623
836acd6d
UW
196242008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19625
19626 * linux-low.c (handle_extended_wait): Do not use "status"
19627 variable uninitialized.
19628
aeba519e
PA
196292008-07-07 Pedro Alves <pedro@codesourcery.com>
19630
19631 * server.c (handle_v_attach): Inhibit reporting dll changes.
19632
db42f210
PA
196332008-06-27 Pedro Alves <pedro@codesourcery.com>
19634
19635 * remote-utils.c (prepare_resume_reply): If requested, don't
19636 output "thread:TID" in the T stop reply.
19637
19638 * server.c (disable_packet_vCont, disable_packet_Tthread)
19639 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19640 (handle_query): If requested, disable support for qC, qfThreadInfo
19641 and qsThreadInfo.
19642 (handle_v_requests): If requested, disable support for vCont.
19643 (gdbserver_show_disableable): New.
19644 (main): Handle --disable-packet and --disable-packet=LIST.
19645
19646 * server.h (disable_packet_vCont, disable_packet_Tthread)
19647 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19648
8e4c5421
CD
196492008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19650
19651 * server.c (gdbserver_usage): Mention --version.
19652
6e23a804
DJ
196532008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19654
19655 * Makefile.in (gdbreplay.o): New rule.
19656
90aa6a40
JM
196572008-06-06 Joseph Myers <joseph@codesourcery.com>
19658
19659 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19660 message, not gdbserver.
19661
c16158bc 196622008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19663 Nathan Sidwell <nathan@codesourcery.com>
19664 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19665
19666 * acinclude.m4: Include ../../config/acx.m4.
19667 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19668 * configure, config.in: Regenerate.
19669 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19670 * server.c (gdbserver_version): Print PKGVERSION.
19671 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19672 (main): Adjust gdbserver_usage calls.
19673 * gdbreplay.c (version, host_name): Add declarations.
19674 (gdbreplay_version, gdbreplay_usage): New.
19675 (main): Accept --version and --help options.
19676
aeb75bf5
DJ
196772008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19678
19679 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19680 (arm_breakpoint_at): Handle Thumb.
19681 (the_low_target): Add comment.
19682
76b233dd
UW
196832008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19684
19685 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19686
08388c79
DE
196872008-05-09 Doug Evans <dje@google.com>
19688
a3c83fae
DE
19689 * server.h (decode_search_memory_packet): Declare.
19690 * remote-utils.c (decode_search_memory_packet): New fn.
19691 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19692 (handle_search_memory): New fn.
19693 (handle_query): Process qSearch:memory packets.
19694
bb9c3d36
UW
196952008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19696
19697 * regcache.c (registers_length): Remove.
19698 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19699 full register packet.
19700 * regcache.h (registers_length): Remove prototype.
19701 * server.h (PBUFSIZ): Define to 16384.
19702
7284e1be
UW
197032008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19704
19705 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19706 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19707 powerpc-64l.o, and powerpc-altivec64l.o.
19708 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19709 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19710 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19711 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19712 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19713 to srv_xmlfiles.
19714
19715 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19716 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19717 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19718 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19719 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19720 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19721 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19722 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19723 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19724 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19725 (clean): Update.
19726
19727 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19728 (init_registers_powerpc_32l): ... this new prototype.
19729 (init_registers_powerpc_32): Remove, replace by ...
19730 (init_registers_powerpc_altivec32l): ... this new prototype.
19731 (init_registers_powerpc_e500): Remove, replace by ...
19732 (init_registers_powerpc_e500l): ... this new prototype.
19733 (init_registers_ppc64): Remove, replace by ...
19734 (init_registers_powerpc_64l): ... this new prototype.
19735 (init_registers_powerpc_64): Remove, replace by ...
19736 (init_registers_powerpc_altivec64l): ... this new prototype.
19737 (ppc_num_regs): Set to 73.
19738 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19739 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19740 (ppc_cannot_store_register): Handle orig_r3 and trap.
19741 (ppc_arch_setup): Update init_registers_... calls.
19742 (ppc_fill_gregset): Handle orig_r3 and trap.
19743
19744 * inferiors.c (clear_inferiors): Reset current_inferior.
19745
fdc59709
PB
197462008-04-23 Paolo Bonzini <bonzini@gnu.org>
19747
889bf7c5
PA
19748 * acinclude.m4: Add override.m4.
19749 * configure: Regenerate.
fdc59709 19750
c9b2f845
UW
197512008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19752
19753 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19754 initial call to init_register_ppc64.
19755
550512b8
UW
197562008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19757
43aaf8b6
PA
19758 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19759 single powerpc*-*-linux* case.
550512b8
UW
19760 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19761
b6430ec3
UW
197622008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19763
19764 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19765 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19766 from reg_xmlfiles.
19767 * linux-ppc-low.c: Include <elf.h>.
19768 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19769 (ppc_hwcap): New global variable.
19770 (ppc_regmap): Remove __SPE__ #ifdef sections.
19771 (ppc_regmap_e500): New global variable.
19772 (ppc_cannot_store_register): Update __SPE__ special case.
19773 (ppc_get_hwcap): New function.
19774 (ppc_arch_setup): Use it to determine whether inferior supports
19775 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19776 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19777 Do not access registers if target does not support AltiVec.
19778 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19779 Do not access registers if target does not support SPE.
19780 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19781
52fa2412
UW
197822008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19783
19784 * linux-low.c (disabled_regsets, num_regsets): New.
19785 (use_regsets_p): Delete.
19786 (linux_wait_for_process): Clear disabled_regsets.
19787 (regsets_fetch_inferior_registers): Check and set it.
19788 (regsets_store_inferior_registers): Likewise.
19789 (linux_fetch_registers, linux_store_registers): Do not use
19790 use_regsets_p.
19791 (initialize_low): Allocate disabled_regsets.
19792
e28b3332
DJ
197932008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19794
19795 * Makefile.in (LIBOBJS): New.
19796 (OBS): Use LIBOBJS.
19797 (memmem.o): New rule.
19798 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19799 * configure: Regenerated.
19800
4536995d
UW
198012008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19802
19803 * server.c (handle_query): Never return "unsupported" for
19804 qXfer:features:read queries.
19805
221c031f
UW
198062008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19807
19808 * server.c (get_features_xml): Fix inverted condition.
19809 (handle_query): Always support qXfer:feature:read.
19810
ccd213ac
DJ
198112008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19812
19813 * server.c (wrapper_argv): New.
19814 (start_inferior): Handle wrapper_argv. If set, expect an extra
19815 trap.
19816 (gdbserver_usage): Document --wrapper.
19817 (main): Parse --wrapper.
19818
6fe305f7
UW
198192008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19820
19821 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19822 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19823 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19824 (ppc_set_pc): Likewise.
19825 (ppc_arch_setup): New function.
19826 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19827 of collect_register.
889bf7c5 19828 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 19829
5b0a002e
UW
198302008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19831
19832 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19833 instead of linux-ppc64-low.o.
19834 * linux-ppc64-low.c: Remove file.
19835 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19836 (linux-ppc64-low.o): Remove rule.
19837
19838 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19839 (init_registers_powerpc_64): Likewise.
19840 (ppc_regmap): Conditionally define depending on __powerpc64__.
19841 (ppc_cannot_store_register): Do not special-case "fpscr" when
19842 compiled on __powerpc64__.
19843 (ppc_collect_ptrace_register): New function.
19844 (ppc_supply_ptrace_register): New function.
19845 (ppc_breakpoint): Change type to "unsigned int".
19846 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19847 (the_low_target): Conditionally provide initializers for the
889bf7c5 19848 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
19849 collect_ptrace_register and supply_ptrace_register members.
19850
9b4b61c8
UW
198512008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19852
19853 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19854 * server.c (gdbserver_xmltarget): Define.
19855 (get_features_xml): Use it to replace "target.xml" and arch_string.
19856
19857 * configure.srv: Remove srv_xmltarget. Add XML files that were
19858 mentioned there to srv_xmlfiles instead. Remove conditional tests
19859 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19860 srv_xmlfiles and srv_regobj to include all possible choices.
19861 * configure.ac (srv_xmltarget): Remove.
19862 (srv_xmlfiles): Do not add "target.xml".
19863 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19864 checks for supplementary target information.
19865 * configure: Regenerate.
19866 * Makefile.in (XML_TARGET): Remove.
19867 (target.xml): Remove rule.
19868 (clean): Do not clean up target.xml.
19869 (.PRECIOUS): Do not mention target.xml.
19870
19871 * target.h (struct target_ops): Remove arch_string member.
19872 * linux-low.c (linux_arch_string): Remove.
19873 (linux_target_ops): Remove arch_string initializer.
19874 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19875 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19876 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19877 * spu-low.c (spu_arch_string): Remove.
19878 (spu_target_ops): Remove arch_string initializer.
19879 * win32-low.c (win32_arch_string): Remove.
19880 (win32_target_ops): Remove arch_string initializer.
19881 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19882 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19883 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19884
ee1a7ae4
UW
198852008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19886
19887 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19888 by collect_ptrace_register and supply_ptrace_register hooks.
19889 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19890 instead of checking for the_low_target.left_pad_xfer.
19891 (usr_store_inferior_registers): Use collect_ptrace_register callback
19892 instead of checking for the_low_target.left_pad_xfer.
19893
19894 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19895 (s390_supply_ptrace_register): Likewise.
19896 (s390_fill_gregset): Call s390_collect_ptrace_register.
19897 (the_low_target): Update.
19898
19899 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19900 (ppc_supply_ptrace_register): Likewise.
19901 (the_low_target): Update.
19902
19903 * linux-i386-low.c (the_low_target): Update.
19904 * linux-x86-64-low.c (the_low_target): Update.
19905
d61ddec4
UW
199062008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19907
19908 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19909 reg-s390.o and reg-s390x.o.
19910
19911 * linux-low.c (new_inferior): New global variable.
19912 (linux_create_inferior, linux_attach): Set it.
19913 (linux_wait_for_process): Call the_low_target.arch_setup after the
19914 target has stopped for the first time.
19915 (initialize_low): Do not call the_low_target.arch_setup.
19916
19917 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19918 (s390_set_pc): Likewise.
19919 (s390_arch_setup): New function.
19920 (the_low_target): Use s390_arch_setup as arch_setup routine.
19921
19922 * regcache.c (realloc_register_cache): New function.
19923 (set_register_cache): Call it for each existing regcache.
19924
d05b4ac3
UW
199252008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19926
19927 * server.h (init_registers): Remove prototype.
19928
19929 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19930 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19931 instead of init_registers ().
19932 * linux-arm-low.c (init_registers_arm): Add prototype.
19933 (init_registers_arm_with_iwmmxt): Likewise.
19934 (the_low_target): Add initializer for arch_setup field.
19935 * linux-cris-low.c (init_registers_cris): Add prototype.
19936 (the_low_target): Add initializer for arch_setup field.
19937 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19938 (the_low_target): Add initializer for arch_setup field.
19939 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19940 (the_low_target): Add initializer for arch_setup field.
19941 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19942 (the_low_target): Add initializer for arch_setup field.
19943 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19944 (the_low_target): Add initializer for arch_setup field.
19945 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19946 (the_low_target): Add initializer for arch_setup field.
19947 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19948 (init_registers_mips64_linux): Likewise.
19949 (the_low_target): Add initializer for arch_setup field.
19950 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19951 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19952 (the_low_target): Add initializer for arch_setup field.
19953 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19954 (init_registers_powerpc_64): Likewise.
19955 (the_low_target): Add initializer for arch_setup field.
19956 * linux-s390-low.c (init_registers_s390): Add prototype.
19957 (init_registers_s390x): Likewise.
19958 (the_low_target): Add initializer for arch_setup field.
19959 * linux-sh-low.c (init_registers_sh): Add prototype.
19960 (the_low_target): Add initializer for arch_setup field.
19961 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19962 (the_low_target): Add initializer for arch_setup field.
19963 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19964 (the_low_target): Add initializer for arch_setup field.
19965
19966 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19967 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19968 instead of init_registers ().
19969 * win32-arm-low.c (init_registers_arm): Add prototype.
19970 (the_low_target): Add initializer for arch_setup field.
19971 * win32-i386-low.c (init_registers_i386): Add prototype.
19972 (the_low_target): Add initializer for arch_setup field.
19973
19974 * spu-low.c (init_registers_spu): Add prototype.
19975 (initialize_low): Call initialie_registers_spu () instead of
19976 initialize_registers ().
19977
fd96d250
PA
199782008-02-19 Pedro Alves <pedro@codesourcery.com>
19979
19980 * server.c (handle_v_requests): When handling the vRun and vAttach
19981 packets, if already debugging a process, don't kill it. Return an
19982 error instead.
19983
d41b6bb4
DJ
199842008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19985
19986 * server.c (handle_query): Correct length check.
19987
5ac588cf
PA
199882008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19989
19990 * win32-low.c (do_initial_child_stuff): Add process handle
19991 parameter. Set current_process_handle and current_process_id from the
19992 parameters. Clear globals.
19993 (win32_create_inferior): Don't set current_process_handle and
19994 current_process_id here. Instead pass them on the call to
19995 do_initial_child_stuff.
19996 (win32_attach): Likewise.
19997 (win32_clear_inferiors): New.
19998 (win32_kill): Don't close the current process handle or the
19999 current thread handle here. Instead call win32_clear_inferiors.
20000 (win32_detach): Don't open a new handle to the process. Call
20001 win32_clear_inferiors.
20002 (win32_join): Don't rely on current_process_handle; open a new
20003 handle using the process id.
20004 (win32_wait): Call win32_clear_inferiors when the inferior process
20005 has exited.
20006
ecd7ecbc
DJ
200072008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20008
20009 * server.c (monitor_show_help): Add "exit".
20010
1525d545
MG
200112008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20012
ecd7ecbc 20013 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20014 (clean): Add reg-xtensa.c.
20015 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20016 * configure.srv (xtensa*-*-linux*) New target.
20017 * linux-xtensa-low.c: New.
20018 * xtensa-xtregs.c: New.
1525d545 20019
59a016f0
PA
200202008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20021
20022 * hostio.c: Don't include errno.h.
20023 (errno_to_fileio_errno): Move to hostio-errno.
20024 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20025 error number outputting to the target->hostio_last_error callback.
20026 (hostio_packet_error): Use FILEIO_EINVAL directly.
20027 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20028 calls to hostio_error.
20029 * hostio-errno.c: New.
20030 * server.h (hostio_last_error_from_errno): Declare.
20031 * target.h (target_ops): Add hostio_last_error member.
20032 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20033 as hostio_last_error handler.
889bf7c5 20034 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20035 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20036 (wince_hostio_last_error): New functions.
20037 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20038 as hostio_last_error handler.
20039 (win32_target_ops) [!_WIN32_WCE]: Register
20040 hostio_last_error_from_errno as hostio_last_error handler.
20041 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20042 (hostio-errno.o): New rule.
20043 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20044 * configure.srv (srv_hostio_err_objs): New variable. Default to
20045 hostio-errno.o.
20046 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20047 * configure: Regenerate.
20048
2d717e4f
DJ
200492008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20050
20051 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20052 (linux_kill, linux_detach): Clean up the process list.
20053 * remote-utils.c (remote_open): Improve port number parsing.
20054 (putpkt_binary, input_interrupt): Only send interrupts if the target
20055 is running.
20056 * server.c (extended_protocol): Make static.
20057 (attached): Define earlier.
20058 (exit_requested, response_needed, program_argv): New variables.
20059 (target_running): New.
20060 (start_inferior): Clear attached here.
20061 (attach_inferior): Set attached here.
20062 (require_running): Define.
20063 (handle_query): Use require_running and target_running. Implement
20064 "monitor exit".
20065 (handle_v_attach, handle_v_run): New.
20066 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20067 (gdbserver_usage): Update.
20068 (main): Redo argument parsing. Handle --debug and --multi. Handle
20069 --attach along with other options or after the port. Save
20070 program_argv. Support no initial program. Resynchronize
20071 communication with GDB after an error. Handle "monitor exit".
20072 Use require_running and target_running. Always allow the extended
20073 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20074 restart in extended mode.
20075 * README: Refer to the GDB manual. Update --attach usage.
20076
7407e2de
AS
200772007-12-20 Andreas Schwab <schwab@suse.de>
20078
20079 * linux-low.c (STACK_SIZE): Define.
20080 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20081 (linux_test_for_tracefork): Likewise.
20082
b65d95c5
DJ
200832007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20084
20085 * linux-low.c (linux_wait_for_event): Update messages. Do not
20086 reinsert auto-delete breakpoints.
20087 * mem-break.c (struct breakpoint): Change return type of handler to
20088 int.
20089 (set_breakpoint_at): Update handler type.
20090 (reinsert_breakpoint_handler): Return 1 instead of calling
20091 delete_breakpoint.
20092 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20093 setting a new one.
20094 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20095 * mem-break.h (set_breakpoint_at): Update handler type.
20096 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20097 * win32-low.c (auto_delete_breakpoint): New.
20098 (get_child_debug_event): Use it.
20099
4e799345
DJ
201002007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20101
20102 * configure.ac: Check for pread and pwrite.
20103 * hostio.c (handle_pread): Fall back to lseek and read.
20104 (handle_pwrite): Fall back to lseek and write.
20105 * config.in, configure: Regenerated.
20106
27524b67
DJ
201072007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20108
20109 * server.c (myresume): Add own_buf argument.
20110 (main): Update calls.
20111
a20d5e98
DJ
201122007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20113
20114 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20115 * remote-utils.c (remote_open): Do not call disable_async_io.
20116 (block_async_io): Delete.
20117 (unblock_async_io): Make static.
20118 (initialize_async_io): New.
20119 * server.c (handle_v_cont): Handle async I/O here.
20120 (myresume): Likewise. Move other common resume tasks here...
20121 (main): ... from here. Call initialize_async_io. Disable async
20122 I/O before the main loop.
20123 * server.h (initialize_async_io): Declare.
20124 (block_async_io, unblock_async_io): Delete prototypes.
20125 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20126
b79d787e
DJ
201272007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20128
20129 * remote-utils.c (readchar): Allow binary data in received messages.
20130
d97903b2
PA
201312007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20132
20133 * win32-low.c (attaching): New global.
20134 (win32_create_inferior): Clear the `attaching' global.
20135 (win32_attach): Set the `attaching' global.
20136 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20137 attaching. Only set a breakpoint at the entry point if not
20138 attaching.
20139
311de423
PA
201402007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20141
20142 * server.c (main): Don't report dll events on the initial
20143 connection on attaches.
20144
6c2d16d2
PA
201452007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20146
20147 * server.c (main): Relax numerical bases supported for the pid of
20148 the --attach command line argument.
20149
5ca906e6
PA
201502007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20151
20152 * win32-low.c (win32_attach): Call OpenProcess before
20153 DebugActiveProcess, not after. Add last error output to error
20154 call.
20155
9c6c8194
PA
201562007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20157
20158 * win32-low.c (win32_get_thread_context)
20159 (win32_set_thread_context): New functions.
20160 (thread_rec): Use win32_get_thread_context.
20161 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20162 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20163 field.
20164
4d5d1aaa
PA
201652007-12-03 Leo Zayas
20166 Pedro Alves <pedro_alves@portugalmail.pt>
20167
20168 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20169 global variables.
20170 (child_add_thread): Minor cleanup.
20171 (child_continue): Resume artificially suspended threads before
20172 calling ContinueDebugEvent.
20173 (suspend_one_thread): New.
20174 (fake_breakpoint_event): New.
20175 (get_child_debug_event): Change return type to int. Check here if
20176 gdb sent an interrupt request. If a soft interrupt was requested,
20177 fake a breakpoint event. Return 0 if there is no event to handle,
20178 and 1 otherwise.
20179 (win32_wait): Don't check here if gdb sent an interrupt request.
20180 Ensure there is a valid event to handle.
20181 (win32_request_interrupt): Add soft interruption method as last
20182 resort.
20183
c436e841
PA
201842007-12-03 Leo Zayas
20185 Pedro Alves <pedro_alves@portugalmail.pt>
20186
20187 * win32-low.h (win32_thread_info): Add descriptions to the
20188 structure members. Replace `suspend_count' counter by a
20189 `suspended' flag.
20190 * win32-low.c (thread_rec): Update condition of when to get the
20191 context from the inferior. Rely on ContextFlags being set if it
20192 has already been retrieved. Only suspend the inferior thread if
20193 we haven't already. Warn if that fails.
20194 (continue_one_thread): s/suspend_count/suspended/. Only call
20195 ResumeThread once. Warn if that fails.
20196
e7b5fa67
PA
201972007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20198
20199 * win32-low.c (win32_wait): Don't read from the inferior when it
20200 has already exited.
20201
a385171d
PA
202022007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20203
20204 * Makefile.in (win32_low_h): New variable.
20205 (win32-low.o): Add dependency on $(win32_low_h).
20206 (win32-arm-low.o, win32-i386-low.o): New rules.
20207
f80c84b3
DJ
202082007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20209
20210 * hostio.c: Correct copyright year.
20211
a6b151f1
DJ
202122007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20213
20214 * Makefile.in (OBS): Add hostio.o.
20215 (hostio.o): New rule.
20216 * server.h (handle_vFile): Declare.
20217 * hostio.c: New file.
20218 * server.c (handle_v_requests): Take packet_len and new_packet_len
20219 for binary packets. Call handle_vFile.
20220 (main): Update call to handle_v_requests.
20221
f9387fc3
DJ
202222007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20223
20224 * linux-low.c: Include <sched.h>.
20225
51c2684e
DJ
202262007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20227
20228 * linux-low.c (linux_tracefork_grandchild): New.
20229 (linux_tracefork_child): Use clone.
20230 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20231
75f83163
JB
202322007-10-31 Joel Brobecker <brobecker@adacore.com>
20233
20234 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20235
da5898ce
DJ
202362007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20237
20238 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20239
24a09b5f
DJ
202402007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20241
20242 * inferiors.c (change_inferior_id): Delete.
20243 (add_pid_to_list, pull_pid_from_list): New.
20244 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20245 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20246 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20247 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20248 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20249 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20250 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20251 (using_threads): Always set to 1.
20252 (handle_extended_wait): New.
20253 (add_process): Do not set TID.
20254 (linux_create_inferior): Set must_set_ptrace_flags.
20255 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20256 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20257 (linux_thread_alive): Rename TID argument to LWPID.
20258 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20259 (linux_wait_for_event): Do not use TID or check using_threads. Update
20260 call to dead_thread_notify. Call handle_extended_wait.
20261 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20262 (send_sigstop): Delete sigstop_sent.
20263 (wait_for_sigstop): Avoid TID.
20264 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20265 (linux_test_for_tracefork): New.
20266 (linux_lookup_signals): Use thread_db_active and
20267 linux_supports_tracefork_flag.
20268 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20269 * linux-low.h (get_process_thread): Avoid TID.
20270 (struct process_ifo): Move thread_known and tid to the end. Remove
20271 sigstop_sent.
20272 (linux_attach_lwp, thread_db_init): Update prototypes.
20273 * server.h (change_inferior_id): Delete prototype.
20274 (add_pid_to_list, pull_pid_from_list): New prototypes.
20275 * thread-db.c (thread_db_use_events): New.
20276 (find_first_thread): Rename to...
20277 (find_one_thread): ...this. Update callers and messages. Do not
20278 call fatal. Check thread_db_use_events. Do not call
20279 change_inferior_id or new_thread_notify.
20280 (maybe_attach_thread): Update. Do not call new_thread_notify.
20281 (thread_db_init): Set thread_db_use_events. Check use_events.
20282 * utils.c (fatal, warning): Correct message prefix.
20283
30ed0a8f
DJ
202842007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20285
20286 * Makefile.in (clean): Remove new files.
20287 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20288 (powerpc-64.o, powerpc-64.c): New rules.
20289 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20290 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20291 with SPE.
20292 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20293 SPE targets.
20294 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20295 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20296 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20297 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20298 (target_regsets): Add AltiVec and SPE register sets.
20299 * configure.ac: Check for AltiVec and SPE.
20300 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20301 (ppc_fill_vrregset, ppc_store_vrregset): New.
20302 (target_regsets): Add AltiVec register set.
20303 * configure: Regenerated.
20304
fd462a61
DJ
203052007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20306
20307 * linux-low.c (O_LARGEFILE): Define.
20308 (linux_read_memory): Use /proc/PID/mem.
20309 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20310 * configure, config.in: Regenerated.
20311
69f223ed
DJ
203122007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20313
20314 * linux-low.c (linux_wait_for_event): Do not pass signals while
20315 single-stepping.
20316
aec18585
PA
203172007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20318
20319 * win32-low.c (create_process): New.
20320 (win32_create_inferior): Use create_process instead of
20321 CreateProcess. If create_process failed retry appending an ".exe"
20322 suffix. Store the GetLastError result immediatelly after
20323 create_process calls and use it on the call to error.
20324
34d86ddd
PA
203252007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20326
20327 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20328
5a0e3bd0
JB
203292007-08-23 Joel Brobecker <brobecker@adacore.com>
20330
20331 * configure.ac: Switch license to GPLv3.
20332
f88c79e6
MS
203332007-08-01 Michael Snyder <msnyder@access-company.com>
20334
20335 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20336
6b3d9b83
PA
203372007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20338
20339 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20340 typedef.
20341 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20342 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20343 CloseToolhelp32Snapshot.
20344 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20345 CloseToolhelp32Snapshot.
20346
c588c53c
MS
203472007-07-27 Michael Snyder <michael.snyder@access-company.com>
20348
20349 * server.c (main): Check for inferior exit before main loop.
20350
aa0403d9
PA
203512007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20352
20353 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20354 instead of on tmp_desc.
20355
255e7678
DJ
203562007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20357 Daniel Jacobowitz <dan@codesourcery.com>
20358
20359 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20360 (add_thread): Minor cleanups.
20361 (clear_inferiors): Move lower in the file. Clear the DLL
20362 list.
20363 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20364 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20365 (xml_escape_text): New.
20366 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20367 for qSupported.
20368 (handle_v_cont): Report errors.
20369 (gdbserver_version): Update.
20370 (main): Correct size of own_buf. Do not report initial DLL events.
20371 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20372 (unloaded_dll, xml_escape_text): New.
20373 * win32-low.c (enum target_waitkind): Update comments.
20374 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20375 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20376 (win32_EnumProcessModules, win32_GetModuleInformation)
20377 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20378 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20379 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20380 (win32_Module32First, win32_Module32Next, load_toolhelp)
20381 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20382 (get_child_debug_event): Handle DLL events.
20383 (win32_wait): Likewise.
20384
0d37add9
DJ
203852007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20386
20387 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20388 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20389
45e2715e
PA
203902007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20391
20392 * win32-low.c (handle_output_debug_string): Ignore event if not
20393 waiting.
20394
c5674cf1
PA
203952007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20396
20397 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20398
2bbe3cc1
DJ
203992007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20400
20401 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20402
ae13219e
DJ
204032007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20404
20405 * inferiors.c (change_inferior_id): Add comment.
20406 * linux-low.c (check_removed_breakpoint): Add an early
20407 prototype. Improve debug output.
20408 (linux_attach): Doc update.
20409 (linux_detach_one_process, linux_detach): Clean up before releasing
20410 each process.
20411 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20412 * linux-low.h (struct process_info): Doc improvement.
20413 * mem-break.c (delete_all_breakpoints): New.
20414 * mem-break.h (delete_all_breakpoints): New prototype.
20415 * thread-db.c (find_first_thread): New.
20416 (thread_db_create_event): Call it instead of
20417 thread_db_find_new_threads. Clean up unused variables.
20418 (maybe_attach_thread): Remove first thread handling.
20419 (thread_db_find_new_threads): Use find_first_thread.
20420 (thread_db_get_tls_address): Likewise.
20421
4105de34
DJ
204222007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20423
20424 * thread-db.c (thread_db_find_new_threads): Add prototype.
20425 (thread_db_create_event): Check for the main thread before adding
20426 a new thread.
20427 (maybe_attach_thread): Only enable event reporting if TID == 0.
20428 (thread_db_get_tls_address): Check for new threads.
20429
2b876972
DJ
204302007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20431
20432 * linux-low.c (linux_create_inferior): Try execv before execvp.
20433 * spu-low.c (spu_create_inferior): Likewise.
20434
7a245884
DJ
204352007-06-13 Mike Frysinger <vapier@gentoo.org>
20436
20437 * linux-low.c (linux_create_inferior): Change execv to execvp.
20438 * spu-low.c (spu_create_inferior): Likewies.
20439
117ce543
DJ
204402007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20441
20442 * Makefile.in (clean): Clean new files instead of deleted ones.
20443 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20444 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20445 rules.
20446 * configure.srv: Specify XML files and new regformats for MIPS and
20447 MIPS64 GNU/Linux.
20448 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20449 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20450 an entry for the restart register.
20451 (mips_cannot_fetch_register, mips_cannot_store_register)
20452 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20453 register names to match the XML descriptions.
20454 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20455 restart register instead of $0.
20456
0e7f50da
UW
204572007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20458 Markus Deuling <deuling@de.ibm.com>
20459
20460 * remote-utils.c (decode_xfer_write): New function.
20461 * server.h (decode_xfer_write): Add prototype.
20462 * server.c (handle_query): Add PACKET_LEN argument. Support
20463 qXfer:spu:read and qXfer:spu:write packets.
20464 (main): Pass packet_len to handle_query.
20465 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20466 * target.h (target_ops): Add qxfer_spu.
20467
374c1d38
UW
204682007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20469
20470 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20471 accessing non-seekable spufs files.
20472
bb63802a
UW
204732007-05-16 Markus Deuling <deuling@de.ibm.com>
20474
889bf7c5 20475 * server.c (handle_query): Add reply for qC packet.
bb63802a 20476
7390519e
PA
204772007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20478 Leo Zayas <lerele@champenstudios@com>
20479
20480 * server.h (check_remote_input_interrupt_request): New function.
20481 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20482 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20483 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20484 (check_remote_input_interrupt_request): New function.
20485 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20486 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20487 winapi_GenerateConsoleCtrlEvent): New typedefs.
20488 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20489 to 250 ms.
20490 (win32_wait): Check for remote interrupt request
20491 with check_remote_input_interrupt_request.
20492 (win32_request_interrupt): New function.
20493 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20494
34b34921
PA
204952007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20496
20497 * win32-low.c (debug_registers_changed,
20498 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20499 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20500 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20501 (thread_rec): Get context using the low target.
20502 (child_add_thread): Call thread_added on the low target,
20503 which does the same thing.
20504 (regptr): Delete.
20505 (do_initial_child_stuff): Remove debug registers references.
20506 Set context using the low target. Resume threads after
20507 setting the contexts.
20508 (child_continue): Remove dead variable. Remove debug
20509 registers references.
20510 (child_fetch_inferior_registers): Go through the low target.
20511 (do_child_store_inferior_registers): Remove.
20512 (child_store_inferior_registers): Go through the low target.
20513 (win32_resume): Remove debug registers references.
20514 Set context using the low target.
20515 (handle_exception): Change return type to void. Don't record
20516 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20517 first chance exception.
889bf7c5 20518 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20519 goto loop. Always return after waiting for debug event.
20520 (win32_wait): Convert to switch statement. Handle spurious
20521 events.
20522
20523 * win32-i386-low.c (debug_registers_changed,
20524 debug_registers_used): New.
20525 (initial_stuff): Rename to ...
20526 (i386_initial_stuff): ... this. Clear debug registers
20527 state variables.
20528 (store_debug_registers): Delete.
20529 (i386_get_thread_context): New.
20530 (load_debug_registers): Delete.
20531 (i386_set_thread_context): New.
20532 (i386_thread_added): New.
20533 (single_step): Rename to ...
20534 (i386_single_step): ... this.
20535 (do_fetch_inferior_registers): Rename to ...
20536 (i386_fetch_inferior_register): ... this.
20537 (i386_store_inferior_register): New.
20538 (the_low_target): Adapt to new interface.
20539
20540 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20541 (arm_get_thread_context): New.
20542 (arm_set_thread_context): New.
20543 (regptr): New.
20544 (do_fetch_inferior_registers): Rename to ...
20545 (arm_fetch_inferior_register): ... this.
20546 (arm_store_inferior_register): New.
20547 (arm_wince_breakpoint): Reimplement as unsigned long.
20548 (arm_wince_breakpoint_len): Define.
20549 (the_low_target): Adapt to new interface.
20550
20551 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20552 load_debug_registers. Add get_thread_context, set_thread_context,
20553 thread_added and store_inferior_register. Rename
20554 fetch_inferior_registers to fetch_inferior_register.
20555 (regptr): Remove declaration.
20556
dd6953e1
PA
205572007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20558
20559 * linux-low.c (linux_detach): Change return type to int. Return 0.
20560 * spu-low.c (spu_detach): Likewise.
20561
444d6139
PA
205622007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20563
20564 * target.h (target_ops): Change return type of detach to int.
20565 Add join.
20566 (join_inferior): New.
20567 * server.c (main): Don't skip detach support on mingw32.
20568 If the inferior doesn't support detaching return error.
20569 Call join_inferior instead of using waitpid.
20570 * linux-low.c (linux_join): New.
20571 (linux_target_op): Add linux_join.
20572 * spu-low.c (spu_join): New.
20573 (spu_target_ops): Add spu_join.
20574 * win32-low.c (win32_detach): Adapt to new interface.
20575 Reopen current_process_handle before detaching. Issue a child
20576 resume before detaching.
20577 (win32_join): New.
20578 (win32_target_op): Add win32_join.
20579
1d5315fe
PA
205802007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20581
20582 * win32-low.c (win32-attach): Fix return value.
20583 * target.h (target_ops): Describe ATTACH return values.
20584
bf914831
PA
205852007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20586
20587 * win32-low.c (GETPROCADDRESS): Define.
20588 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20589 (winapi_DebugSetProcessKillOnExit): Likewise.
20590 (win32_create_inferior): Force usage of ansi CreateProcessA.
20591 (win32_attach): Use GETPROCADDRESS.
20592 (win32_detach): Likewise.
20593
f72f3e60
PA
205942007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20595
20596 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20597
ed50f18f
PA
205982007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20599
20600 * win32-low.c: Commit leftover changes from 2007-03-29.
20601
0c2ead7e
DJ
206022007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20603
20604 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20605 fields short instead of int. Add explicit padding.
20606 (i387_cache_to_fsave): Remove unnecessary casts.
20607 (i387_fsave_to_cache): Doc fix.
20608 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20609
73725ff3
DJ
206102007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20611
20612 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20613 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20614
d99f33d8
PA
206152007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20616
20617 * configure.srv (arm*-*-mingw32ce*): Move near the other
20618 arm targets.
20619
68070c10
PA
206202007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20621
2482afc6 20622 * configure.ac: Add errno checking.
68070c10
PA
20623 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20624 sys/file.h and malloc.h.
20625 (AC_CHECK_DECLS): Add perror.
20626 (srv_mingwce): Handle.
2482afc6 20627 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20628 win32-i386-low.o to srv_tgtobj.
20629 (i[34567]86-*-mingw*): Likewise.
20630 (arm*-*-mingw32ce*): Add case.
20631 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20632 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20633 [__MINGW32CE__] (strerror): New function.
20634 [__MINGW32CE__] (errno): Define to GetLastError.
20635 [__MINGW32CE__] (COUNTOF): New macro.
20636 (remote_open): Remove extra close call.
20637 * mem-break.c (delete_breakpoint_at): New function.
20638 * mem-break.h (delete_breakpoint_at): Declare.
20639 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20640 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20641 [USE_WIN32API] (read, write): Add char* casts.
20642 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20643 * server.h: Include wincecompat.h on Windows CE.
20644 [HAVE_ERRNO_H]: Check.
20645 (perror): Declare if not declared.
20646 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20647 (perror_with_name): Remove errno declaration.
20648 * wincecompat.h: New.
20649 * wincecompat.c: New.
20650 * win32-low.h: New.
20651 * win32-arm-low.c: New.
20652 * win32-i386-low.c: New.
20653 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20654 (OUTMSG2): Make it safe.
20655 (_T): New macro.
20656 (COUNTOF): New macro.
20657 (NUM_REGS): Get it from the low target.
20658 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20659 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20660 (thread_rec): Let low target handle debug registers.
20661 (child_add_thread): Likewise.
20662 (child_init_thread_list): Likewise.
20663 (continue_one_thread): Likewise.
20664 (regptr): New.
20665 (do_child_fetch_inferior_registers): Move to ...
20666 * win32-i386-low.c: ... here, and rename to ...
20667 (do_fetch_inferior_registers): ... this.
889bf7c5 20668 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20669 Go through the low target.
20670 (do_child_store_inferior_registers): Use regptr.
20671 (strwinerror): New function.
20672 (win32_create_inferior): Handle Windows CE.
20673 Use strwinerror instead of strerror on Windows error
20674 codes. Add program to the error output.
20675 Don't close the main thread handle on Windows CE.
20676 (win32_attach): Use coredll.dll on Windows CE.
20677 (win32_kill): Close current process and current
20678 thread handles.
20679 (win32_detach): Use coredll.dll on Windows CE.
20680 (win32_resume): Let low target handle debug registers, and
20681 step request.
20682 (handle_exception): Add/Remove initial breakpoint. Avoid
20683 non-existant WSTOPSIG on Windows CE.
20684 (win32_read_inferior_memory): Cast to remove warning.
20685 (win32_arch_string): Go through the low target.
20686 (initialize_low): Call set_breakpoint_data with the low
20687 target's breakpoint.
20688 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20689 FOP_REGNUM, mappings): Move to ...
20690 * win32-i386-low.c: ... here.
20691 * win32-low.c (win32_thread_info): Move to ...
20692 * win32-low.h: ... here.
20693 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20694 win32-arm-low.c and wincecompat.c.
20695 (all:): Add $EXEEXT.
20696 (install-only:): Likewise.
20697 (gdbserver:): Likewise.
20698 (gdbreplay:): Likewise.
20699 * config.in: Regenerate.
20700 * configure: Regenerate.
20701
41093d81
PA
207022007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20703
20704 * win32-low.c: Rename typedef thread_info to
20705 win32_thread_info throughout.
20706
544afa54
PA
207072007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20708
20709 * win32-i386-low.c: Rename to ...
20710 * win32-low.c: ... this.
20711 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20712 * Makefile.in: Likewise.
20713
bce7165d
PA
207142007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20715
20716 * remote-utils.c (monitor_output): Constify msg parameter.
20717 * server.h (monitor_output): Likewise.
20718 * win32-i386-low.c (handle_output_debug_string): New.
20719 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20720 handle_output_debug_string.
20721 (get_child_debug_event): Likewise.
20722
506c7aa0
DJ
207232007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20724
20725 * server.c (main): Correct strtoul check.
20726
42c81e2a
DJ
207272007-03-27 Jon Ringle <jon@ringle.org>
20728
20729 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20730
9453113a
DJ
207312007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20732
20733 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20734
64a69107
DJ
207352007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20736
20737 * terminal.h: Check HAVE_SGTTY_H.
20738
207392007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20740
20741 * remote-utils.c (remote_open): Print out the assigned port number.
20742
c74d0ad8
DJ
207432007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20744
20745 * remote-utils.c (monitor_output): New function.
20746 * server.c (debug_threads): Define here.
20747 (monitor_show_help): New function.
20748 (handle_query): Handle qRcmd.
20749 (main): Do not handle 'd' packet.
20750 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20751 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20752 of debug_threads.
20753
de7c3b4a
PA
207542007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20755
20756 * Makefile.in (EXEEXT): New.
20757 (clean): Use $(EXEEXT).
20758
ef57601b
PA
207592007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20760
20761 * target.h (target_ops): Rename send_signal to request_interrupt,
20762 and remove enum target_signal parameter.
20763 * linux-low.c (linux_request_interrupt): Rename from
20764 linux_send_signal, and always send SIGINT.
20765 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20766 and always send SIGINT.
20767 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20768 of send_signal.
20769 (input_interrupt): Likewise.
20770
820f2bda
PA
207712007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20772
20773 * server.c (get_features_xml): Check if target implemented
20774 arch_string.
20775 * win32-i386-low.c (win32_arch_string): New.
20776 (win32_target_ops): Add win32_arch_string as arch_string member.
20777
ab39bf24
UW
207782007-02-22 Markus Deuling <deuling@de.ibm.com>
20779
20780 * spu-low.c (spu_arch_string): New.
20781 (spu_target_ops): Add spu_arch_string.
20782
61ff6e04
DJ
207832007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20784
20785 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20786 * configure.ac: Do not check for terminal.h.
20787 * configure, config.in: Regenerated.
20788
fb1e4ffc
DJ
207892007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20790
20791 * Makefile.in (OBS): Add $(XML_BUILTIN).
20792 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20793 (clean): Update.
20794 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20795 (arm-with-iwmmxt.c): New.
20796 * config.in, configure: Regenerate.
20797 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20798 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20799 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20800 (arm*-*-linux*): Add iWMMXt and regset support.
20801 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20802 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20803 (arm_store_wmmxregset, target_regsets): New.
20804 * server.c (get_features_xml): Take annex argument. Check builtin
20805 XML documents.
20806 (handle_query): Handle multiple annexes.
20807
0f48aa01
DJ
208082007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20809
20810 * remote-utils.c [USE_WIN32API] (read, write): Define.
20811 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20812 write.
20813
23181151
DJ
208142007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20815
20816 * linux-i386-low.c (the_low_target): Set arch_string.
20817 * linux-x86-64-low.c (the_low_target): Likewise.
20818 * linux-low.c (linux_arch_string): New.
20819 (linux_target_ops): Add it.
20820 * linux-low.h (struct linux_target_ops): Add arch_string.
20821 * server.c (write_qxfer_response): Use const void * for DATA.
20822 (get_features_xml): New.
20823 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20824 * target.h (struct target_ops): Add arch_string method.
20825
9d606399
DJ
208262007-01-03 Denis Pilat <denis.pilat@st.com>
20827 Daniel Jacobowitz <dan@codesourcery.com>
20828
20829 * linux-low.c (linux_kill): Handle being called with no threads.
20830 * win32-i386-low.c (win32_kill): Likewise.
20831 (get_child_debug_event): Clear current_process_handle.
20832
208332006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
20834 Daniel Jacobowitz <dan@codesourcery.com>
20835
20836 * remote-utils.c (remote_open): Check the type of specified
20837 serial port devices before opening them.
20838 * server.c (main): Kill the inferior if an error occurs during
20839 the first remote_open.
20840
a5e13d24
DJ
208412006-12-05 Markus Deuling <deuling@de.ibm.com>
20842
20843 * README: Update supported targets.
20844
186947f7
DJ
208452006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20846
20847 * Makefile.in (clean): Remove reg-mips64.c.
20848 (reg-mips64.c, reg-mips64.o): New rules.
20849 * configure.srv: Handle mips64. Include regset support for mips.
20850 * linux-mips-low.c (union mips_register): New.
20851 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20852 (mips_breakpoint, mips_breakpoint_at): Use int.
20853 (mips_collect_register, mips_supply_register)
20854 (mips_collect_register_32bit, mips_supply_register_32bit)
20855 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20856 (mips_store_fpregset, target_regsets): New.
20857 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20858
a13e2c95
UW
208592006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20860
20861 * configure.srv: Add target "spu*-*-*".
20862 * Makefile.in (clean): Remove reg-spu.c.
20863 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20864 * spu-low.c: New file.
20865
cb7283db
DJ
208662006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20867
20868 * configure.ac: Correct td_thr_tls_get_addr test.
20869 * configure: Regenerated.
20870
89be2091
DJ
208712006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20872
20873 * linux-low.c (linux_wait_for_event): Reformat. Use the
20874 pass_signals array.
20875 * remote-utils.c (decode_address_to_semicolon): New.
20876 * server.c (pass_signals, handle_general_set): New.
20877 (handle_query): Mention QPassSignals for qSupported.
20878 (main): Call handle_general_set.
20879 * server.h (pass_signals, decode_address_to_semicolon): New.
20880
000ef4f0
DJ
208812006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20882
20883 * server.c (handle_query): Correct error handling for read_auxv.
20884
b7149293
UW
208852005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20886
20887 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20888 and srv_linux_thread_db to yes.
20889 * linux-s390-low.c (s390_fill_gregset): New function.
20890 (target_regsets): Define data structure.
20891
dae5f5cf
DJ
208922006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20893
20894 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20895 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20896 * config.in, configure: Regenerated.
20897 * inferiors.c (gdb_id_to_thread): New function.
20898 (gdb_id_to_thread_id): Use it.
20899 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20900 * linux-low.h (struct process_info): Add th member.
20901 (thread_db_get_tls_address): New prototype.
20902 * remote-utils.c (decode_address): Make non-static.
20903 * server.c (handle_query): Handle qGetTLSAddr.
20904 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20905 * target.h (struct target_ops): Add get_tls_address.
20906 * thread-db.c (maybe_attach_thread): Save the thread handle.
20907 (thread_db_get_tls_address): New.
20908
32ca6d61
DJ
209092006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20910
20911 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20912 (linux_resume_one_process): Take a siginfo_t *. Update all
20913 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20914 (struct pending_signals): Add a siginfo_t.
20915 (linux_wait_for_process): Always set last_status.
20916 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20917 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20918 * linux-low.h (struct process_info): Add last_status.
20919
5ffff7c1
DJ
209202006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20921
20922 * remote-utils.c (try_rle): New function.
20923 (putpkt_binary): Use it.
20924
8695c747
DJ
209252006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20926
20927 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20928 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20929 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20930 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20931 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20932 point registers.
20933
290fadea
RS
209342006-08-08 Richard Sandiford <richard@codesourcery.com>
20935
20936 * server.c (terminal_fd): New variable.
20937 (old_foreground_pgrp): Likewise.
20938 (restore_old_foreground_pgrp): New function.
20939 (start_inferior): Record the terminal file descriptor in terminal_fd
20940 and its original foreground group in old_foreground_pgrp. Register
20941 restore_old_foreground_pgrp with atexit().
20942
9f2e1e63
DJ
209432006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20944
20945 * server.c (handle_query): Correct qPart to qXfer.
20946
b80864fb
DJ
209472006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20948
20949 * configure.ac: Check for more headers which are missing on
20950 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20951 * configure.srv: Add Cygwin and mingw32.
20952 * remote-utils.c: Don't include headers unconditionally which
20953 are missing on mingw32. Include <winsock.h> for mingw32.
20954 (remote_open): Adjust for mingw32 support. Flush
20955 standard error after writing to it.
20956 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20957 (unblock_async_io, enable_async_io, disable_async_io)
20958 (readchar, getpkt): Update for Winsock support.
20959 (prepare_resume_reply): Expect a protocol signal number.
20960 * server.c: Disable <sys/wait.h> on mingw32.
20961 (start_inferior): Adjust for mingw32 support. Flush
20962 standard error after writing to it.
20963 (attach_inferior): Likewise. Use protocol signal
20964 numbers.
20965 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20966 and names.
20967 * win32-i386-low.c: New file.
20968 * Makefile.in (XM_CLIBS): Set.
20969 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20970 (win32-i386-low.o): New dependency rule.
20971 * linux-low.c (linux_wait): Use target signal numbers.
20972 * target.h (struct target_ops): Doc fix.
20973 * server.h (target_signal_to_name): New prototype.
20974 * gdbreplay.c: Don't include headers unconditionally which
20975 are missing on mingw32. Include <winsock.h> for mingw32.
20976 (remote_close, remote_open): Adjust for Winsock support.
20977 * configure, config.in: Regenerated.
20978
0876f84a
DJ
209792006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20980
20981 * server.c (decode_xfer_read, write_qxfer_response): New.
20982 (handle_query): Take a packet length argument. Handle
20983 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20984 the qSupported response.
20985 (main): Update call to handle_query.
20986
01f9e8fa
DJ
209872006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20988
20989 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20990 (putpkt_binary): Renamed from putpkt and adjusted for binary
20991 data.
20992 (putpkt): New wrapper for putpkt_binary.
20993 (readchar): Don't mask off the high bit.
20994 (decode_X_packet): New function.
20995 * server.c (main): Call putpkt_binary if a handler sets the packet
20996 length. Save the length of the incoming packet. Handle 'X'.
20997 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20998
be2a5f71
DJ
209992006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21000
21001 * server.c (handle_query): Handle qSupported.
21002
ea025f5f
DJ
210032006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21004
21005 * remote-utils.c (all_symbols_looked_up): New variable.
21006 (look_up_one_symbol): Check it.
21007 * server.h (look_up_one_symbol): New declaration.
21008 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21009
9308fc88
DJ
210102006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21011
21012 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21013 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21014 (PTRACE_GET_THREAD_AREA): Define.
21015 (ps_get_thread_area): New function.
21016
52fb6437
NS
210172006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21018
21019 * configure.srv (m68k*-*-uclinux*): New target.
21020 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21021 (linux_resume_one_process): Remove extraneous cast.
21022 (linux_read_offsets): New.
21023 (linux_target_op): Add linux_read_offsets on mmuless systems.
21024 * server.c (handle_query): Add qOffsets logic.
21025 * target.h (struct target_ops): Add read_offsets.
21026
21b0f40c
DJ
210272006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21028
21029 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21030 (PTRACE_GET_THREAD_AREA): Define.
21031 (ps_get_thread_area): New function.
21032 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21033 (linux-x86-64-low.o): Update.
21034
0050a760
DJ
210352006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21036
21037 * configure.ac: Remove checks for prfpregset_t.
21038 * gdb_proc_service.h: New file.
21039 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21040 new "gdb_proc_service.h".
21041 * proc-service.c: Likewise.
21042 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21043 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21044 * Makefile.in (gdb_proc_service_h): Updated.
21045 * configure, config.in: Regenerated.
21046
b92a518e
DJ
210472006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21048
21049 * remote-utils.c (prepare_resume_reply): Move declaration
21050 of gdb_id_from_wait to the top of the block.
21051
545587ee
DJ
210522006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21053
21054 * linux-low.c (regsets_store_inferior_registers): Read the regset
21055 from the target before filling it.
21056
9db87ebd
DJ
210572006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21058
21059 * server.c (attach_inferior): Return SIGTRAP for a successful
21060 attach.
21061
dd24457d
DJ
210622006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21063
21064 * Makefile.in (OBS): Add version.o.
21065 (STAGESTUFF): Delete.
21066 (version.o): Add dependencies.
21067 (version.c): Replace rule.
21068 (clean): Remove version.c.
21069 * server.c (gdbserver_version): New.
21070 (gdbserver_usage): Use printf.
21071 (main): Handle --version and --help.
21072 * server.h (version, host_name): Add declarations.
21073
6f0f660e
EZ
210742005-12-23 Eli Zaretskii <eliz@gnu.org>
21075
889bf7c5
PA
21076 * linux-arm-low.c:
21077 * linux-arm-low.c:
21078 * inferiors.c:
21079 * i387-fp.h:
21080 * i387-fp.c:
21081 * gdbreplay.c:
21082 * regcache.c:
21083 * proc-service.c:
21084 * mem-break.h:
21085 * mem-break.c:
21086 * linux-x86-64-low.c:
21087 * linux-sh-low.c:
21088 * linux-s390-low.c:
21089 * linux-ppc64-low.c:
21090 * linux-ppc-low.c:
21091 * linux-mips-low.c:
21092 * linux-m68k-low.c:
21093 * linux-m32r-low.c:
21094 * linux-low.h:
21095 * linux-low.c:
21096 * linux-ia64-low.c:
21097 * linux-i386-low.c:
21098 * linux-crisv32-low.c:
21099 * thread-db.c:
21100 * terminal.h:
21101 * target.h:
21102 * target.c:
21103 * server.h:
21104 * server.c:
21105 * remote-utils.c:
21106 * regcache.h:
21107 * utils.c:
21108 * Makefile.in:
21109 * configure.ac:
6f0f660e
EZ
21110 * gdbserver.1: Add (C) after Copyright. Update the FSF
21111 address.
21112
9d1fb177
DJ
211132005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21114
21115 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21116 (arm_breakpoint_at): Recognize both breakpoints.
21117 (the_low_target): Use the correct breakpoint instruction.
21118
011a70c2
DJ
211192005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21120
21121 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21122 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21123 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21124 (the_low_target): Update.
21125
7fb85e41
AS
211262005-10-25 Andreas Schwab <schwab@suse.de>
21127
21128 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21129
21130 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21131 (ia64_num_regs): Reduce to 462.
21132
3db0444b
DJ
211332005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21134
21135 * acinclude.m4: Correct quoting.
21136 * aclocal.m4: Regenerated.
21137
21138 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21139 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21140 (thread_db_init): Call thread_db_err_str.
21141 * configure.ac: Check for TD_VERSION.
21142 * config.in, configure: Regenerated.
21143
bee0189a
DJ
211442005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21145
21146 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21147
e9d25b98
DJ
211482005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21149
21150 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21151 is not available. Define HAVE_PTRACE_GETREGS if it is.
21152 * config.in, configure: Regenerated.
21153 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21154 * linux-i386-low.c, linux-m68k-low.c: Update to use
21155 HAVE_PTRACE_GETREGS.
21156 * linux-low.c (regsets_fetch_inferior_registers)
21157 (regsets_store_inferior_registers): Only return 0 if we processed
21158 GENERAL_REGS.
21159 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21160 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21161
a06660f7
DJ
211622005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21163
21164 * inferiors.c (struct thread_info): Add gdb_id.
21165 (add_thread): Add gdb_id argument.
21166 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21167 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21168 calls to add_thread.
21169 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21170 * server.c (handle_query): Use thread_to_gdb_id.
21171 (handle_v_cont, main): Use gdb_id_to_thread_id.
21172 * server.h (add_thread): Update prototype.
21173 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21174 prototypes.
21175
5a1f5858
DJ
211762005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21177
21178 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21179 left-padded registers.
21180 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21181 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21182
e122f1f5
SE
211832005-07-01 Steve Ellcey <sje@cup.hp.com>
21184
21185 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21186 * configure: Regenerate.
21187 * config.in: Regenerate.
21188 * server.h (NEED_DECLARATION_STRERROR):
21189 Replace with !HAVE_DECL_STRERROR.
21190
d592fa2f
DJ
211912005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21192
21193 * linux-low.c (linux_wait, linux_send_signal): Don't test
21194 an unsigned long variable for > 0 if it could be MAX_ULONG.
21195 * server.c (myresume): Likewise.
21196 * target.c (set_desired_inferior): Likewise.
21197
ccbd4912
MK
211982005-06-13 Mark Kettenis <kettenis@gnu.org>
21199
21200 * configure.ac: Simplify and improve check for socklen_t.
21201 * configure, config.in: Regenerate.
21202
f450004a
DJ
212032005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21204
21205 * acconfig.h: Remove.
21206 * configure.ac: Add a test for socklen_t. Use three-argument
21207 AC_DEFINE throughout.
21208 * config.in: Regenerated using autoheader 2.59.
21209 * configure: Regenerated.
21210
21211 * gdbreplay.c (socklen_t): Provide a default.
21212 (remote_open): Use socklen_t.
21213 * remote-utils.c (socklen_t): Provide a default.
21214 (remote_open): Use socklen_t.
21215 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21216 unsigned char.
21217
21218 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21219 char for buffers.
21220 * linux-low.c (linux_read_memory, linux_write_memory)
21221 (linux_read_auxv): Likewise.
21222 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21223 (check_mem_write): Likewise.
21224 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21225 Likewise.
21226 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21227 (registers_from_string, register_data): Likewise.
21228 * server.c (handle_query, main): Likewise.
21229 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21230 (decode_M_packet): Likewise.
21231 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21232 * target.h (struct target_ops): Update read_memory, write_memory,
21233 and read_auxv.
21234 (read_inferior_memory, write_inferior_memory): Update.
21235 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21236 to unsigned char *.
21237 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21238 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21239 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21240 linux-s390-low.c, linux-sh-low.c: Update for changes in
21241 read_inferior_memory and the_low_target->breakpoint.
21242
eee84df1
DJ
212432005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21244
21245 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21246 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21247 * configure.srv: Add powerpc64-*-linux*.
21248 * linux-ppc64-low.c: New file.
21249
45b134e5
OF
212502005-05-23 Orjan Friberg <orjanf@axis.com>
21251
21252 * linux-cris-low.c: New file with support for CRIS.
21253 * linux-crisv32-low.c: Ditto for CRISv32.
21254 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21255 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21256 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21257 reg-crisv32.o, and reg-crisv32.c to make rules.
21258 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21259 recognized targets.
21260
48d93c75
UW
212612005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21262
21263 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21264 of sizeof (PTRACE_XFER_TYPE).
21265 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21266
e013ee27
OF
212672005-05-12 Orjan Friberg <orjanf@axis.com>
21268
889bf7c5 21269 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21270 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21271 pointers for hardware watchpoint support.
21272 * linux-low.h (struct linux_target_ops): Ditto.
21273 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21274 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21275 to linux_target_ops.
21276 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21277 reply packet.
21278 * server.c (main): Recognize 'Z' and 'z' packets.
21279
b0ded00b
UW
212802005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21281
21282 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21283 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21284 (the_low_target): Add new members.
21285
8643e2ad
DJ
212862005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21287
21288 * proc-service.c (ps_lgetregs): Search all_processes instead of
21289 all_threads.
21290
fc620387
DJ
212912005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21292
21293 * server.c (start_inferior): Change return type to int.
21294 (attach_inferior): Change sigptr to int *.
21295 (handle_v_cont, handle_v_requests): Change signal to int *.
21296 (main): Change signal to int.
21297
212982005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21299
21300 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21301 * configure.srv: Add m32r*-*-linux*.
21302 * linux-m32r-low.c: New file.
21303
e0e76420
DJ
213042005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21305
21306 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21307
a1928bad
DJ
213082005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21309
21310 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21311 Take unsigned long arguments for PIDs.
21312 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21313 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21314 (wait_for_sigstop, linux_resume_one_process)
21315 (regsets_fetch_inferior_registers, linux_send_signal)
21316 (linux_read_auxv): Likewise. Update the types of variables holding
21317 PIDs. Update format string specifiers.
21318 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21319 * remote-utils.c (prepare_resume_reply): Likewise.
21320 * server.c (cont_thread, general_thread, step_thread)
21321 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21322 unsigned long.
21323 (handle_query): Update format specifiers.
21324 (handle_v_cont, main): Use strtoul for thread IDs.
21325 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21326 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21327 (general_thread, step_thread, thread_from_wait)
21328 (old_thread_from_wait): Update.
21329 * target.h (struct thread_resume): Use unsigned long for THREAD.
21330 (struct target_ops): Use unsigned long for arguments to attach and
21331 thread_alive.
21332
dcdb98d2
DJ
213332005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21334
21335 * acinclude.m4: Include bfd/bfd.m4 directly.
21336 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21337 <agriffis@toolchain.org>.
21338 * aclocal.m4, configure: Regenerated.
21339
bec39cab
AC
213402005-01-07 Andrew Cagney <cagney@gnu.org>
21341
21342 * configure.ac: Rename configure.in, require autoconf 2.59.
21343 * configure: Re-generate.
21344
434c4c77
DJ
213452004-12-08 Daniel Jacobowitz <dan@debian.org>
21346
21347 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21348 LIBS when finished.
21349 * aclocal.m4: Regenerated.
21350 * configure: Regenerated.
21351
db1d3e1b
AS
213522004-11-21 Andreas Schwab <schwab@suse.de>
21353
21354 * linux-m68k-low.c (m68k_num_gregs): Define.
21355 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21356 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21357 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21358 (m68k_breakpoint_at): New. Add to the_low_target.
21359
21360 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21361 srv_linux_thread_db to yes.
21362
43360365
JB
213632004-10-20 Joel Brobecker <brobecker@gnat.com>
21364
21365 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21366 (ARCH_SET_FS): Likewise.
21367 (ARCH_GET_FS): Likewise.
21368 (ARCH_GET_GS): Likewise.
21369
fd500816
DJ
213702004-10-16 Daniel Jacobowitz <dan@debian.org>
21371
21372 * linux-i386-low.c (ps_get_thread_area): New.
21373 * linux-x86-64-low.c (ps_get_thread_area): New.
21374 * linux-low.c: Include <sys/syscall.h>.
21375 (linux_kill_one_process): Don't kill the first thread here.
21376 (linux_kill): Kill the first thread here.
21377 (kill_lwp): New function.
21378 (send_sigstop, linux_send_signal): Use it.
21379 * proc-service.c: Clean up #ifdefs.
21380 (fpregset_info): Delete.
21381 (ps_lgetregs): Update and enable implementation.
21382 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21383 implementations.
21384 * remote-utils.c (struct sym_cache, symbol_cache): New.
21385 (input_interrupt): Print a clearer message.
21386 (async_io_enabled): New variable.
21387 (enable_async_io, disable_async_io): Use it. Update comments.
21388 (look_up_one_symbol): Use the symbol cache.
21389 * thread-db.c (thread_db_look_up_symbols): New function.
21390 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21391
f6de3c42
DJ
213922004-10-16 Daniel Jacobowitz <dan@debian.org>
21393
21394 * configure.in: Test for -rdynamic.
21395 * configure: Regenerated.
21396 * Makefile (INTERNAL_LDFLAGS): New.
21397 (gdbserver, gdbreplay): Use it.
21398
2c0fc042
AC
213992004-09-02 Andrew Cagney <cagney@gnu.org>
21400
21401 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21402
075b3282
DJ
214032004-03-23 Daniel Jacobowitz <drow@mvista.com>
21404
21405 * linux-low.c (linux_wait): Clear all_processes list also.
21406
fa6a77dc
DJ
214072004-03-12 Daniel Jacobowitz <drow@mvista.com>
21408
21409 * linux-low.c: Include <errno.h>. Remove extern declaration of
21410 errno.
21411
6d782a97
DJ
214122004-03-12 Daniel Jacobowitz <drow@mvista.com>
21413
21414 * gdbreplay.c, server.h, utils.c: Update copyright years.
21415
3a7fb99b
DJ
214162004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21417
21418 * server.c (main): Print child status or termination signal from
21419 variable 'signal', not 'sig'.
21420
c3e735a6
DJ
214212004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21422
21423 * linux-low.c (linux_read_memory): Change return type to
21424 int. Check for and return error from ptrace().
21425 * target.c (read_inferior_memory): Change return type to int. Pass
21426 back return status from the_target->read_memory().
21427 * target.h (struct target_ops): Adapt *read_memory() prototype.
21428 Update comment.
21429 (read_inferior_memory): Adapt prototype.
21430 * server.c (main): Return an error packet if
21431 read_inferior_memory() returns an error.
21432
a59d1c82
DJ
214332004-03-04 Daniel Jacobowitz <drow@mvista.com>
21434
21435 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21436 Unify with other clean targets.
21437
dc3f8883
DJ
214382004-02-29 Daniel Jacobowitz <drow@mvista.com>
21439
21440 * server.c (handle_v_cont): Call set_desired_inferior.
21441
89a208da
DJ
214422004-02-29 Daniel Jacobowitz <drow@mvista.com>
21443
21444 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21445
62ea82f5
DJ
214462004-02-29 Daniel Jacobowitz <drow@mvista.com>
21447
21448 * linux-low.c (linux_wait): Unblock async I/O.
21449 (linux_resume): Block and enable async I/O.
21450 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21451 * server.h (block_async_io, unblock_async_io): Add prototypes.
21452
6910d122
DJ
214532004-02-29 Daniel Jacobowitz <drow@mvista.com>
21454
21455 * remote-utils.c (remote_open): Print a status notice after
21456 opening a TCP port.
21457 * server.c (attach_inferior): Print a status notice after
21458 attaching.
21459
214602004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21461
21462 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21463
c89dc5d4
DJ
214642004-02-26 Daniel Jacobowitz <drow@mvista.com>
21465
21466 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21467 error packet.
21468 * server.c, target.h: Update copyright years.
21469
4b8dad4a
RM
214702004-02-25 Roland McGrath <roland@redhat.com>
21471
21472 * target.h (struct target_ops): New member `read_auxv'.
21473 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21474 * linux-low.c (linux_read_auxv): New function.
21475 (linux_target_ops): Initialize `read_auxv' member to that.
21476
d7446758
JB
214772004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21478
21479 Committed by Jim Blandy <jimb@redhat.com>.
21480
21481 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21482 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21483 instead of GPR_SIZE to distiguish s390 and s390x targets.
21484
5544ad89
DJ
214852004-01-31 Daniel Jacobowitz <drow@mvista.com>
21486
21487 * linux-low.c: Update copyright year.
21488 (check_removed_breakpoint): Clear pending_is_breakpoint.
21489 (linux_set_resume_request, linux_queue_one_thread)
21490 (resume_status_pending_p): New functions.
21491 (linux_continue_one_thread): Use process->resume.
21492 (linux_resume): Only resume threads if there are no pending events.
21493 * linux-low.h (struct process_info): Add resume request
21494 pointer.
21495
2a68b70e
DJ
214962004-01-30 Daniel Jacobowitz <drow@mvista.com>
21497
21498 * regcache.c (new_register_cache): Clear the allocated register
21499 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21500
64386c31
DJ
215012003-10-13 Daniel Jacobowitz <drow@mvista.com>
21502
21503 * linux-low.c (linux_resume): Take a struct thread_resume *
21504 argument.
21505 (linux_wait): Update call.
21506 (resume_ptr): New static variable.
21507 (linux_continue_one_thread): Renamed from
21508 linux_continue_one_process. Use resume_ptr.
21509 (linux_resume): Use linux_continue_one_thread.
21510 * server.c (handle_v_cont, handle_v_requests): New functions.
21511 (myresume): New function.
21512 (main): Handle 'v' case.
21513 * target.h (struct thread_resume): New type.
21514 (struct target_ops): Change argument of "resume" to struct
21515 thread_resume *.
21516 (myresume): Delete macro.
21517
c938e9b0
L
215182003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21519
21520 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21521 (uninstall): Support DESTDIR.
21522
7f313d07
BC
21523Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21524
21525 * configure.srv: Add xscale*linux copy of arm*linux entry.
21526
3b2fc2ea
DJ
215272003-07-24 Daniel Jacobowitz <drow@mvista.com>
21528
21529 * linux-arm-low.c (arm_reinsert_addr): New function.
21530 (the_low_target): Add arm_reinsert_addr.
21531
1c0a559e
MK
215322003-07-08 Mark Kettenis <kettenis@gnu.org>
21533
21534 * mem-break.c: Remove whitespace at end of file.
21535
43d5792c
DJ
215362003-06-28 Daniel Jacobowitz <drow@mvista.com>
21537
21538 * configure.in: Check whether we need to prototype strerror.
21539 * server.h: Optionally prototype strerror.
21540 * gdbreplay.c (perror_with_name): Use strerror.
21541 * linux-low.c (linux_attach_lwp): Use strerror.
21542 * utils.c (perror_with_name): Use strerror.
21543 * config.in, configure: Regenerated.
21544
c8a86edf
DJ
215452003-06-28 Daniel Jacobowitz <drow@mvista.com>
21546
21547 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21548 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21549
73d37363
DJ
215502003-06-20 Daniel Jacobowitz <drow@mvista.com>
21551
21552 * Makefile.in (SFILES): Update.
21553 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21554 low-sun3.c: Remove files.
21555
6ad8ae5c
DJ
215562003-06-17 Daniel Jacobowitz <drow@mvista.com>
21557
21558 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21559 (linux_detach_one_process, linux_detach): New functions.
21560 (linux_target_ops): Add linux_detach.
21561 * server.c (main): Handle 'D' packet.
21562 * target.h (struct target_ops): Add "detach" member.
21563 (detach_inferior): Define.
21564
1581182a
MK
215652003-06-13 Mark Kettenis <kettenis@gnu.org>
21566
21567 From Kelley Cook <kelleycook@wideopenwest.com>:
21568 * configure.srv: Accept i[34567]86 variants.
21569
e5379b03
DJ
215702003-06-05 Daniel Jacobowitz <drow@mvista.com>
21571
21572 * linux-low.c (linux_wait_for_event): Correct comment typos.
21573 (linux_resume_one_process): Call check_removed_breakpoint.
21574 (linux_send_signal): New function.
21575 (linux_target_ops): Add linux_send_signal.
21576 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21577 of kill.
21578 * target.h (struct target_ops): Add send_signal.
21579
2ff29de4
JB
215802003-05-29 Jim Blandy <jimb@redhat.com>
21581
21582 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21583 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21584 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21585 away part of the register's value.
21586
254787d4
DJ
215872003-03-26 Daniel Jacobowitz <drow@mvista.com>
21588
21589 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21590 (linux_wait_for_event, linux_init_signals): Likewise.
21591
94e10508
DJ
215922003-03-17 Daniel Jacobowitz <drow@mvista.com>
21593
21594 * configure.in: Check for stdlib.h.
21595 * configure: Regenerated.
21596 * config.in: Regenerated.
21597
4c0711e0
DJ
215982003-01-04 Andreas Schwab <schwab@suse.de>
21599
21600 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21601
ef66e766
AC
216022003-01-02 Andrew Cagney <ac131313@redhat.com>
21603
21604 * Makefile.in: Remove obsolete code.
21605
a1358604
DJ
216062002-11-20 Daniel Jacobowitz <drow@mvista.com>
21607
21608 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21609 defined(PT_FPR0_HI).
21610
23ce3b1c
DJ
216112002-11-17 Stuart Hughes <seh@zee2.com>
21612
21613 * linux-arm-low.c (arm_num_regs): Increase.
21614 (arm_regmap): Include status register.
21615
216162002-11-17 Daniel Jacobowitz <drow@mvista.com>
21617
21618 * linux-low.c (register_addr): Remove incorrect -1 check.
21619
a9fa9f7d
DJ
216202002-08-29 Daniel Jacobowitz <drow@mvista.com>
21621
21622 * linux-low.c (linux_create_inferior): Call setpgid. Return
21623 the new PID.
21624 (unstopped_p, linux_signal_pid): Remove.
21625 (linux_target_ops): Remove linux_signal_pid.
21626 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21627 global instead of target method.
21628 * target.h (struct target_ops): Remove signal_pid. Update comment
21629 for create_inferior.
21630 * server.c (signal_pid): New variable.
21631 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21632 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21633 (attach_inferior): Set signal_pid.
21634
17574093
DJ
216352002-08-23 Daniel Jacobowitz <drow@mvista.com>
21636
21637 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21638
216392002-08-20 Jim Blandy <jimb@redhat.com>
21640
21641 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21642 default for this.
21643
216442002-08-01 Andrew Cagney <cagney@redhat.com>
21645
21646 * Makefile.in: Make chill references obsolete.
21647
216482002-07-24 Kevin Buettner <kevinb@redhat.com>
21649
21650 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21651 * configure: Regenerate.
21652 * config.in: Regenerate.
21653
216542002-07-09 David O'Brien <obrien@FreeBSD.org>
21655
21656 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21657 (perror_with_name, remote_close, remote_open, expect, play): Static.
21658
216592002-07-04 Michal Ludvig <mludvig@suse.cz>
21660
4b8dad4a 21661 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21662 byte offsets instead of an array of indexes.
21663 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21664
216652002-06-13 Daniel Jacobowitz <drow@mvista.com>
21666
21667 * regcache.c: Add comment.
21668
216692002-06-11 Daniel Jacobowitz <drow@mvista.com>
21670
21671 * thread-db.c: New file.
21672 * proc-service.c: New file.
21673 * acinclude.m4: New file.
21674 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21675 proc-service.o, and thread-db.o.
21676 (linux-low.o): Add USE_THREAD_DB.
21677 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21678 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21679 * aclocal.m4: Regenerated.
21680 * config.in: Regenerated.
21681 * configure: Regenerated.
21682 * configure.in: Check for proc_service.h, sys/procfs.h,
21683 thread_db.h, and linux/elf.h headrs.
21684 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21685 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21686 Check for -lthread_db and thread support.
21687 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21688 PowerPC, and SuperH.
21689 * i387-fp.c: Constify arguments.
21690 * i387-fp.h: Likewise.
21691 * inferiors.c: (struct thread_info): Renamed from
21692 `struct inferior_info'. Remove PID member. Use generic inferior
21693 list header. All uses updated.
21694 (inferiors, signal_pid): Removed.
21695 (all_threads): New variable.
21696 (get_thread): Define.
21697 (add_inferior_to_list): New function.
21698 (for_each_inferior): New function.
21699 (change_inferior_id): New function.
21700 (add_inferior): Removed.
21701 (remove_inferior): New function.
21702 (add_thread): New function.
21703 (free_one_thread): New function.
21704 (remove_thread): New function.
21705 (clear_inferiors): Use for_each_inferior and free_one_thread.
21706 (find_inferior): New function.
21707 (find_inferior_id): New function.
21708 (inferior_target_data): Update argument type.
21709 (set_inferior_target_data): Likewise.
21710 (inferior_regcache_data): Likewise.
21711 (set_inferior_regcache_data): Likewise.
21712 * linux-low.c (linux_bp_reinsert): Remove.
21713 (all_processes, stopping_threads, using_thrads)
21714 (struct pending_signals, debug_threads, pid_of): New.
21715 (inferior_pid): Replace with macro.
21716 (struct inferior_linux_data): Remove.
21717 (get_stop_pc, add_process): New functions.
21718 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21719 Use add_process and add_thread.
21720 (linux_attach_lwp): New function, based on old linux_attach. Use
21721 add_process and add_thread. Set stop_expected for new threads.
21722 (linux_attach): New function.
21723 (linux_kill_one_process): New function.
21724 (linux_kill): Kill all LWPs.
21725 (linux_thread_alive): Use find_inferior_id.
21726 (check_removed_breakpoints, status_pending_p): New functions.
21727 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21728 Update. Use WNOHANG. Wait for cloned processes also. Update process
21729 struct for the found process.
21730 (linux_wait_for_event): New function.
21731 (linux_wait): Use it. Support LWPs.
21732 (send_sigstop, wait_for_sigstop, stop_all_processes)
21733 (linux_resume_one_process, linux_continue_one_process): New functions.
21734 (linux_resume): Support LWPs.
21735 (REGISTER_RAW_SIZE): Remove.
21736 (fetch_register): Use register_size instead. Call supply_register.
21737 (usr_store_inferior_registers): Likewise. Call collect_register.
21738 Fix recursive case.
21739 (regsets_fetch_inferior_registers): Improve error message.
21740 (regsets_store_inferior_registers): Add debugging.
21741 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21742 (unstopped_p, linux_signal_pid): New functions.
21743 (linux_target_ops): Add linux_signal_pid.
21744 (linux_init_signals): New function.
21745 (initialize_low): Call it. Initialize using_threads.
21746 * regcache.c (inferior_regcache_data): Add valid
21747 flag.
21748 (get_regcache): Fetch registers lazily. Add fetch argument
21749 and update all callers.
21750 (regcache_invalidate_one, regcache_invalidate): New
21751 functions.
21752 (new_register_cache): Renamed from create_register_cache.
21753 Return the new regcache.
21754 (free_register_cache): Change argument to a void *.
21755 (registers_to_string, registers_from_string): Call get_regcache
21756 with fetch flag set.
21757 (register_data): Make static. Pass fetch flag to get_regcache.
21758 (supply_register): Call get_regcache with fetch flag clear.
21759 (collect_register): Call get_regcache with fetch flag set.
21760 (collect_register_as_string): New function.
21761 * regcache.h: Update.
21762 * remote-utils.c (putpkt): Flush after debug output and use
21763 stderr.
21764 Handle input interrupts while waiting for an ACK.
21765 (input_interrupt): Use signal_pid method.
21766 (getpkt): Flush after debug output and use stderr.
21767 (outreg): Use collect_register_as_string.
21768 (new_thread_notify, dead_thread_notify): New functions.
21769 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21770 and general_thread.
21771 (look_up_one_symbol): Flush after debug output.
21772 * server.c (step_thread, server_waiting): New variables.
21773 (start_inferior): Don't use signal_pid. Update call to mywait.
21774 (attach_inferior): Update call to mywait.
21775 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21776 (main): Don't fetch/store registers explicitly. Use
21777 set_desired_inferior. Support proposed ``Hs'' packet. Update
21778 calls to mywait.
21779 * server.h: Update.
21780 (struct inferior_list, struct_inferior_list_entry): New.
21781 * target.c (set_desired_inferior): New.
21782 (write_inferior_memory): Constify.
21783 (mywait): New function.
21784 * target.h: Update.
21785 (struct target_ops): New signal_pid method.
21786 (mywait): Removed macro, added prototype.
21787
21788 * linux-low.h (regset_func): Removed.
21789 (regset_fill_func, regset_store_func): New.
21790 (enum regset_type): New.
21791 (struct regset_info): Add type field. Use new operation types.
21792 (struct linux_target_ops): stop_pc renamed to get_pc.
21793 Add decr_pc_after_break and breakpoint_at.
21794 (get_process, get_thread_proess, get_process_thread)
21795 (strut process_info, all_processes, linux_attach_lwp)
21796 (thread_db_init): New.
21797
21798 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21799 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21800 (the_low_target): Add new members.
21801 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21802 (i386_store_fpxregset): Constify.
21803 (target_regsets): Add new kind identifier.
21804 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21805 (i386_set_pc): Add debugging.
21806 (i386_breakpoint_at): New function.
21807 (the_low_target): Add new members.
21808 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21809 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21810 (mips_breakpoint_at): New.
21811 (the_low_target): Add new members.
21812 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21813 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21814 (the_low_target): Add new members.
21815 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21816 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21817 (the_low_target): Add new members.
21818 * linux-x86-64-low.c (target_regsets): Add new kind
21819 identifier.
21820
218212002-05-15 Daniel Jacobowitz <drow@mvista.com>
21822
21823 From Martin Pool <mbp@samba.org>:
21824 * server.c (gdbserver_usage): New function.
21825 (main): Call it.
21826
218272002-05-14 Daniel Jacobowitz <drow@mvista.com>
21828
21829 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21830 stop_at -> stop_pc.
21831
218322002-05-04 Andrew Cagney <ac131313@redhat.com>
21833
21834 * Makefile.in: Remove obsolete code.
21835
218362002-04-24 Michal Ludvig <mludvig@suse.cz>
21837
21838 * linux-low.c (regsets_fetch_inferior_registers),
21839 (regsets_store_inferior_registers): Removed cast to int from
21840 ptrace() calls.
21841 * regcache.h: Added declaration of struct inferior_info.
21842
218432002-04-20 Daniel Jacobowitz <drow@mvista.com>
21844
21845 * inferiors.c (struct inferior_info): Add regcache_data.
21846 (add_inferior): Call create_register_cache.
21847 (clear_inferiors): Call free_register_cache.
21848 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21849 * regcache.c (struct inferior_regcache_data): New.
21850 (registers): Remove.
21851 (get_regcache): New function.
21852 (create_register_cache, free_register_cache): New functions.
21853 (set_register_cache): Don't initialize the register cache here.
21854 (registers_to_string, registers_from_string, register_data): Call
21855 get_regcache.
21856 * regcache.h: Add prototypes.
21857 * server.h: Likewise.
21858
218592002-04-20 Daniel Jacobowitz <drow@mvista.com>
21860
21861 * mem-break.c: New file.
21862 * mem-break.h: New file.
21863 * Makefile.in: Add mem-break.o rule; update server.h
21864 dependencies.
21865 * inferiors.c (struct inferior_info): Add target_data
21866 member.
21867 (clear_inferiors): Free target_data member if set.
21868 (inferior_target_data, set_inferior_target_data): New functions.
21869 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21870 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21871 * linux-low.c (linux_bp_reinsert): New variable.
21872 (struct inferior_linux_data): New.
21873 (linux_create_inferior): Use set_inferior_target_data.
21874 (linux_attach): Likewise. Call add_inferior.
21875 (linux_wait_for_one_inferior): New function.
21876 (linux_wait): Call it.
21877 (linux_write_memory): Add const.
21878 (initialize_low): Call set_breakpoint_data.
21879 * linux-low.h (struct linux_target_ops): Add breakpoint
21880 handling members.
21881 * server.c (attach_inferior): Remove extra add_inferior
21882 call.
21883 * server.h: Include mem-break.h. Update inferior.c
21884 prototypes.
21885 * target.c (read_inferior_memory)
21886 (write_inferior_memory): New functions.
21887 * target.h (read_inferior_memory)
21888 (write_inferior_memory): Change macros to prototypes.
21889 (struct target_ops): Update comments. Add const to write_memory
21890 definition.
21891
218922002-04-11 Daniel Jacobowitz <drow@mvista.com>
21893
21894 * linux-low.c (usr_store_inferior_registers): Support
21895 registers which are allowed to fail to store.
21896 * linux-low.h (linux_target_ops): Likewise.
21897 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21898 (ppc_cannot_store_register): FPSCR may not be storable.
21899
219002002-04-09 Daniel Jacobowitz <drow@mvista.com>
21901
21902 * server.h: Include <string.h> if HAVE_STRING_H.
21903 * ChangeLog: Correct paths in last ChangeLog entry.
21904
219052002-04-09 Daniel Jacobowitz <drow@mvista.com>
21906
21907 * linux-low.h: Remove obsolete prototypes.
21908 (struct linux_target_ops): New.
21909 (extern the_low_target): New.
21910 * linux-low.c (num_regs, regmap): Remove declarations.
21911 (register_addr): Use the_low_target explicitly.
21912 (fetch_register): Likewise.
21913 (usr_fetch_inferior_registers): Likewise.
21914 (usr_store_inferior_registers): Likewise.
21915 * linux-arm-low.c (num_regs): Remove.
21916 (arm_num_regs): Define.
21917 (arm_regmap): Renamed from regmap, made static.
21918 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21919 made static.
21920 (arm_cannot_store_register): Renamed from cannot_store_register,
21921 made static.
21922 (the_low_target): New.
21923 * linux-i386-low.c (num_regs): Remove.
21924 (i386_num_regs): Define.
21925 (i386_regmap): Renamed from regmap, made static.
21926 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21927 made static.
21928 (i386_cannot_store_register): Renamed from cannot_store_register,
21929 made static.
21930 (the_low_target): New.
21931 * linux-ia64-low.c (num_regs): Remove.
21932 (ia64_num_regs): Define.
21933 (ia64_regmap): Renamed from regmap, made static.
21934 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21935 made static.
21936 (ia64_cannot_store_register): Renamed from cannot_store_register,
21937 made static.
21938 (the_low_target): New.
21939 * linux-m68k-low.c (num_regs): Remove.
21940 (m68k_num_regs): Define.
21941 (m68k_regmap): Renamed from regmap, made static.
21942 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21943 made static.
21944 (m68k_cannot_store_register): Renamed from cannot_store_register,
21945 made static.
21946 (the_low_target): New.
21947 * linux-mips-low.c (num_regs): Remove.
21948 (mips_num_regs): Define.
21949 (mips_regmap): Renamed from regmap, made static.
21950 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21951 made static.
21952 (mips_cannot_store_register): Renamed from cannot_store_register,
21953 made static.
21954 (the_low_target): New.
21955 * linux-ppc-low.c (num_regs): Remove.
21956 (ppc_num_regs): Define.
21957 (ppc_regmap): Renamed from regmap, made static.
21958 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21959 made static.
21960 (ppc_cannot_store_register): Renamed from cannot_store_register,
21961 made static.
21962 (the_low_target): New.
21963 * linux-s390-low.c (num_regs): Remove.
21964 (s390_num_regs): Define.
21965 (s390_regmap): Renamed from regmap, made static.
21966 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21967 made static.
21968 (s390_cannot_store_register): Renamed from cannot_store_register,
21969 made static.
21970 (the_low_target): New.
21971 * linux-sh-low.c (num_regs): Remove.
21972 (sh_num_regs): Define.
21973 (sh_regmap): Renamed from regmap, made static.
21974 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21975 made static.
21976 (sh_cannot_store_register): Renamed from cannot_store_register,
21977 made static.
21978 (the_low_target): New.
21979 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21980 (the_low_target): New.
21981
219822002-04-09 Daniel Jacobowitz <drow@mvista.com>
21983
21984 * Makefile.in: Add stamp-h target.
21985 * configure.in: Create stamp-h.
21986 * configure: Regenerated.
21987
219882002-04-09 Daniel Jacobowitz <drow@mvista.com>
21989
21990 * inferiors.c: New file.
21991 * target.c: New file.
21992 * target.h: New file.
21993 * Makefile.in: Add target.o and inferiors.o. Update
21994 dependencies.
21995 * linux-low.c (inferior_pid): New static variable,
21996 moved from server.c.
21997 (linux_create_inferior): Renamed from create_inferior.
21998 Call add_inferior. Return 0 on success instead of a PID.
21999 (linux_attach): Renamed from myattach.
22000 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22001 (linux_thread_alive): Renamed from mythread_alive.
22002 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22003 child dies.
22004 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22005 (regsets_store_inferior_registers): Correct error message.
22006 Add missing ``return 0''.
22007 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22008 (linux_store_registers): Renamed from store_inferior_registers.
22009 (linux_read_memory): Renamed from read_inferior_memory.
22010 (linux_write_memory): Renamed from write_inferior_memory.
22011 (linux_target_ops): New structure.
22012 (initialize_low): Call set_target_ops ().
22013 * remote-utils.c (unhexify): New function.
22014 (hexify): New function.
22015 (input_interrupt): Send signals to ``signal_pid''.
22016 * server.c (inferior_pid): Remove.
22017 (start_inferior): Update create_inferior call.
22018 (attach_inferior): Call add_inferior.
22019 (handle_query): New function.
22020 (main): Call handle_query for `q' packets.
22021 * server.h: Include "target.h". Remove obsolete prototypes.
22022 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22023
220242002-04-09 Daniel Jacobowitz <drow@mvista.com>
22025
22026 * Makefile.in: Add WARN_CFLAGS. Update configury
22027 dependencies.
22028 * configure.in: Check for <string.h>
22029 * configure: Regenerate.
22030 * config.in: Regenerate.
22031 * gdbreplay.c: Include needed system headers.
22032 (remote_open): Remove strchr prototype.
22033 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22034 * regcache.c (supply_register): Change buf argument to const void *.
22035 (supply_register_by_name): Likewise.
22036 (collect_register): Change buf argument to void *.
22037 (collect_register_by_name): Likewise.
22038 * regcache.h: Add missing prototypes.
22039 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22040 * server.c (handle_query): New function.
22041 (attached): New static variable, moved out of main.
22042 (main): Quiet longjmp clobber warnings.
22043 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22044 * utils.c (error): Remove NORETURN.
22045 (fatal): Likewise.
This page took 5.419501 seconds and 4 git commands to generate.