Share windows_thread_info between gdb and gdbserver
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
ae1f8880
TT
12020-04-08 Tom Tromey <tromey@adacore.com>
2
3 * win32-low.h (struct windows_thread_info): Remove.
4
e56f8ccb
TT
52020-04-08 Tom Tromey <tromey@adacore.com>
6
7 * win32-low.h (struct windows_thread_info): Rename from
8 win32_thread_info. Remove typedef.
9 (struct win32_target_ops, win32_require_context): Update.
10 * win32-low.c (win32_get_thread_context)
11 (win32_set_thread_context, win32_prepare_to_resume)
12 (win32_require_context, thread_rec, child_add_thread)
13 (delete_thread_info, continue_one_thread)
14 (child_fetch_inferior_registers, child_store_inferior_registers)
15 (win32_resume, suspend_one_thread, win32_get_tib_address):
16 Update.
17 * win32-i386-low.c (update_debug_registers)
18 (win32_get_current_dr, i386_get_thread_context)
19 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
20 (i386_fetch_inferior_register, i386_store_inferior_register):
21 Update.
22 * win32-arm-low.c (arm_get_thread_context)
23 (arm_fetch_inferior_register, arm_store_inferior_register):
24 Update.
25
0dd7b52e
TBA
262020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
27
28 * linux-low.h (struct linux_target_ops): Remove.
29 (the_low_target): Remove.
30 * linux-x86-low.cc (the_low_target): Remove.
31 * linux-aarch64-low.cc (the_low_target): Ditto.
32 * linux-arm-low.cc (the_low_target): Ditto.
33 * linux-bfin-low.cc (the_low_target): Ditto.
34 * linux-cris-low.cc (the_low_target): Ditto.
35 * linux-crisv32-low.cc (the_low_target): Ditto.
36 * linux-ia64-low.cc (the_low_target): Ditto.
37 * linux-m32r-low.cc (the_low_target): Ditto.
38 * linux-m68k-low.cc (the_low_target): Ditto.
39 * linux-mips-low.cc (the_low_target): Ditto.
40 * linux-nios2-low.cc (the_low_target): Ditto.
41 * linux-ppc-low.cc (the_low_target): Ditto.
42 * linux-riscv-low.cc (the_low_target): Ditto.
43 * linux-s390-low.cc (the_low_target): Ditto.
44 * linux-sh-low.cc (the_low_target): Ditto.
45 * linux-sparc-low.cc (the_low_target): Ditto.
46 * linux-tic6x-low.cc (the_low_target): Ditto.
47 * linux-tile-low.cc (the_low_target): Ditto.
48 * linux-xtensa-low.cc (the_low_target): Ditto.
49
fc5ecdb6
TBA
502020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
51
52 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
53 linux target define the op by overriding the declaration in
54 process_stratum_target.
55
56 * linux-low.h (struct linux_target_ops): Remove the op.
57 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
58 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
59 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
60 (x86_get_ipa_tdesc_idx): Turn into...
61 (x86_target::get_ipa_tdesc_idx): ...this.
62 (the_low_target): Remove the op field.
63 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
64 (ppc_get_ipa_tdesc_idx): Turn into...
65 (ppc_target::get_ipa_tdesc_idx): ...this.
66 (the_low_target): Remove the op field.
67 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
68 (s390_get_ipa_tdesc_idx): Turn into...
69 (s390_target::get_ipa_tdesc_idx): ...this.
70 (the_low_target): Remove the op field.
71
9eedd27d
TBA
722020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
73
74 Turn the 'get_syscall_trapinfo' linux target op into a method
75 of process_stratum_target.
76
77 * linux-low.h (struct linux_target_ops): Remove the op.
78 (class linux_process_target) <get_syscall_trapinfo>
79 <gdb_catch_this_syscall>
80 <low_supports_catch_syscall>
81 <low_get_syscall_trapinfo>: Declare.
82 * linux-low.cc (get_syscall_trapinfo): Turn into...
83 (linux_process_target::get_syscall_trapinfo): ...this.
84 (linux_process_target::low_get_syscall_trapinfo): Define.
85 (gdb_catch_this_syscall_p): Turn into...
86 (linux_process_target::gdb_catch_this_syscall): ...this.
87 (linux_process_target::low_supports_catch_syscall): Define.
88
89 Update the callers below.
90
91 (linux_process_target::wait_1)
92 (linux_process_target::supports_catch_syscall)
93
94 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
95 <low_get_syscall_trapinfo>: Declare.
96 (x86_target::low_supports_catch_syscall): Define.
97 (x86_get_syscall_trapinfo): Turn into...
98 (x86_target::low_get_syscall_trapinfo): ...this.
99 (the_low_target): Remove the op field.
100 * linux-aarch64-low.cc (class aarch64_target)
101 <low_supports_catch_syscall>
102 <low_get_syscall_trapinfo>: Declare.
103 (aarch64_target::low_supports_catch_syscall): Define.
104 (aarch64_get_syscall_trapinfo): Turn into...
105 (aarch64_target::low_get_syscall_trapinfo): ...this.
106 (the_low_target): Remove the op field.
107 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
108 <low_get_syscall_trapinfo>: Declare.
109 (arm_target::low_supports_catch_syscall): Define.
110 (arm_get_syscall_trapinfo): Turn into...
111 (arm_target::low_get_syscall_trapinfo): ...this.
112 (the_low_target): Remove the op field.
113 * linux-ppc-low.cc (the_low_target): Remove the op field.
114 * linux-s390-low.cc (the_low_target): Remove the op field.
115
b31cdfa6
TBA
1162020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
117
118 Remove the 'supports_hardware_single_step' linux target op and
119 override the process_stratum_target's op definition in
120 linux_process_target to return true.
121
122 * linux-low.h (struct linux_target_ops): Remove the op.
123 (class linux_process_target) <finish_step_over>
124 <maybe_hw_step>: Declare.
125 * linux-low.cc (can_hardware_single_step): Remove.
126 (maybe_hw_step): Turn into...
127 (linux_process_target::maybe_hw_step): ...this.
128 (finish_step_over): Turn into...
129 (linux_process_target::finish_step_over): ...this.
130 (linux_process_target::supports_hardware_single_step): Update
131 to return true.
132
133 Update the callers below.
134
135 (linux_process_target::single_step)
136 (linux_process_target::resume_one_lwp_throw)
137
138 * linux-arm-low.cc (class arm_target)
139 <supports_hardware_single_step>: Declare.
140 (arm_supports_hardware_single_step): Turn into...
141 (arm_target::supports_hardware_single_step): ...this.
142 (the_low_target): Remove the op field.
143 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
144 (the_low_target): Remove the op field.
145 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
146 Remove.
147 (the_low_target): Remove the op field.
148 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
149 (the_low_target): Remove the op field.
150 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
151 (the_low_target): Remove the op field.
152 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
153 (the_low_target): Remove the op field.
154 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
155 (the_low_target): Remove the op field.
156 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
157 (the_low_target): Remove the op field.
158 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
159 (the_low_target): Remove the op field.
160 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
161 (the_low_target): Remove the op field.
162 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
163 (the_low_target): Remove the op field.
164 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
165 (the_low_target): Remove the op field.
166 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
167 Remove.
168 (the_low_target): Remove the op field.
169
9cfd8715
TBA
1702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
171
172 Turn the 'supports_range_stepping' linux target op into a method
173 of linux_process_target.
174
175 * linux-low.h (struct linux_target_ops): Remove the op.
176 (class linux_process_target) <low_supports_range_stepping>: Declare.
177 * linux-low.cc (linux_process_target::low_supports_range_stepping):
178 Define.
179 (linux_process_target::supports_range_stepping): Update the call
180 site.
181 * linux-x86-low.cc (class x86_target)
182 <low_supports_range_stepping>: Declare.
183 (x86_supports_range_stepping): Turn into...
184 (x86_target::low_supports_range_stepping): ...this.
185 (the_low_target): Remove the op field.
186 * linux-aarch64-low.cc (class aarch64_target)
187 <low_supports_range_stepping>: Declare.
188 (aarch64_supports_range_stepping): Turn into...
189 (aarch64_target::low_supports_range_stepping): ...this.
190 (the_low_target): Remove the op field.
191 * linux-arm-low.cc (the_low_target): Remove the op field.
192 * linux-bfin-low.cc (the_low_target): Ditto.
193 * linux-crisv32-low.cc (the_low_target): Ditto.
194 * linux-m32r-low.cc (the_low_target): Ditto.
195 * linux-m68k-low.cc (the_low_target): Ditto.
196 * linux-ppc-low.cc (the_low_target): Ditto.
197 * linux-s390-low.cc (the_low_target): Ditto.
198 * linux-sh-low.cc (the_low_target): Ditto.
199 * linux-tic6x-low.cc (the_low_target): Ditto.
200 * linux-tile-low.cc (the_low_target): Ditto.
201 * linux-xtensa-low.cc (the_low_target): Ditto.
202
ab64c999
TBA
2032020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
204
205 Remove the 'emit_ops' linux target ops and let the concrete
206 linux target define the op by overriding the declaration of
207 process_stratum_target.
208
209 * linux-low.h (struct linux_target_ops): Remove the op.
210 (class linux_process_target) <emit_ops>: Remove.
211 * linux-low.cc (linux_process_target::emit_ops): Remove.
212 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
213 (x86_emit_ops): Turn into...
214 (x86_target::emit_ops): ...this.
215 (the_low_target): Remove the op field.
216 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
217 (aarch64_emit_ops): Turn into...
218 (aarch64_target::emit_ops): ...this.
219 (the_low_target): Remove the op field.
220 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
221 (ppc_emit_ops): Turn into...
222 (ppc_target::emit_ops): ...this.
223 (the_low_target): Remove the op field.
224 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
225 (s390_emit_ops): Turn into...
226 (s390_target::emit_ops): ...this.
227 (the_low_target): Remove the op field.
228 * linux-arm-low.cc (the_low_target): Remove the op field.
229 * linux-bfin-low.cc (the_low_target): Ditto.
230 * linux-crisv32-low.cc (the_low_target): Ditto.
231 * linux-m32r-low.cc (the_low_target): Ditto.
232 * linux-m68k-low.cc (the_low_target): Ditto.
233 * linux-sh-low.cc (the_low_target): Ditto.
234 * linux-tic6x-low.cc (the_low_target): Ditto.
235 * linux-tile-low.cc (the_low_target): Ditto.
236 * linux-xtensa-low.cc (the_low_target): Ditto.
237
809a0c35
TBA
2382020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
239
240 Remove the 'install_fast_tracepoint_jump_pad' and
241 'get_min_fast_tracepoint_insn_len' linux target ops to let the
242 concrete linux target define the ops by overriding the declarations
243 of process_stratum_target.
244
245 * linux-low.h (struct linux_target_ops): Remove the ops.
246 (class linux_process_target) <supports_fast_tracepoints>
247 <install_fast_tracepoint_jump_pad>
248 <get_min_fast_tracepoint_insn_len>: Remove.
249 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
250 (linux_process_target::install_fast_tracepoint_jump_pad)
251 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
252 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
253 <install_fast_tracepoint_jump_pad>
254 <get_min_fast_tracepoint_insn_len>: Declare.
255 (x86_target::supports_fast_tracepoints): Define.
256 (x86_install_fast_tracepoint_jump_pad): Turn into...
257 (x86_target::install_fast_tracepoint_jump_pad): ...this.
258 (x86_get_min_fast_tracepoint_insn_len): Turn into...
259 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
260 (the_low_target): Remove the op fields.
261 * linux-aarch64-low.cc (class aarch64_target)
262 <supports_fast_tracepoints>
263 <install_fast_tracepoint_jump_pad>
264 <get_min_fast_tracepoint_insn_len>: Declare.
265 (aarch64_target::supports_fast_tracepoints): Define.
266 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
267 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
268 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
269 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
270 (the_low_target): Remove the op fields.
271 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
272 <install_fast_tracepoint_jump_pad>
273 <get_min_fast_tracepoint_insn_len>: Declare.
274 (ppc_target::supports_fast_tracepoints): Define.
275 (ppc_install_fast_tracepoint_jump_pad): Turn into...
276 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
277 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
278 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
279 (the_low_target): Remove the op fields.
280 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
281 <install_fast_tracepoint_jump_pad>
282 <get_min_fast_tracepoint_insn_len>: Declare.
283 (s390_target::supports_fast_tracepoints): Define.
284 (s390_install_fast_tracepoint_jump_pad): Turn into...
285 (s390_target::install_fast_tracepoint_jump_pad): ...this.
286 (s390_get_min_fast_tracepoint_insn_len): Turn into...
287 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
288 (the_low_target): Remove the op fields.
289 * linux-arm-low.cc (the_low_target): Remove the op fields.
290 * linux-bfin-low.cc (the_low_target): Ditto.
291 * linux-crisv32-low.cc (the_low_target): Ditto.
292 * linux-m32r-low.cc (the_low_target): Ditto.
293 * linux-m68k-low.cc (the_low_target): Ditto.
294 * linux-sh-low.cc (the_low_target): Ditto.
295 * linux-tic6x-low.cc (the_low_target): Ditto.
296 * linux-tile-low.cc (the_low_target): Ditto.
297 * linux-xtensa-low.cc (the_low_target): Ditto.
298
13e567af
TBA
2992020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
300
301 Turn the 'get_thread_area' linux target op into a method of
302 process_stratum_target.
303
304 * linux-low.h (struct linux_target_ops): Remove the op.
305 (class linux_process_target) <stuck_in_jump_pad>
306 <linux_fast_tracepoint_collecting>
307 <low_get_thread_area>: Declare.
308 * linux-low.cc (supports_fast_tracepoints): Remove.
309 (linux_fast_tracepoint_collecting): Turn into...
310 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
311 (linux_process_target::low_get_thread_area): Define.
312 (stuck_in_jump_pad_callback): Turn into...
313 (linux_process_target::stuck_in_jump_pad): ...this.
314
315 Update the caller below.
316
317 (linux_process_target::stabilize_threads)
318
319 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
320 Declare.
321 (x86_get_thread_area): Turn into...
322 (x86_target::low_get_thread_area): ...this.
323 (the_low_target): Remove the op field.
324 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
325 Declare.
326 (aarch64_get_thread_area): Turn into...
327 (aarch64_target::low_get_thread_area): ...this.
328 (the_low_target): Remove the op field.
329 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
330 Declare.
331 (ppc_get_thread_area): Turn into...
332 (ppc_target::low_get_thread_area): ...this.
333 (the_low_target): Remove the op field.
334 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
335 Declare.
336 (s390_get_thread_area): Turn into...
337 (s390_target::low_get_thread_area): ...this.
338 (the_low_target): Remove the op field.
339 * linux-arm-low.cc (the_low_target): Remove the op field.
340 * linux-bfin-low.cc (the_low_target): Ditto.
341 * linux-crisv32-low.cc (the_low_target): Ditto.
342 * linux-m32r-low.cc (the_low_target): Ditto.
343 * linux-m68k-low.cc (the_low_target): Ditto.
344 * linux-sh-low.cc (the_low_target): Ditto.
345 * linux-tic6x-low.cc (the_low_target): Ditto.
346 * linux-tile-low.cc (the_low_target): Ditto.
347 * linux-xtensa-low.cc (the_low_target): Ditto.
348
47f70aa7
TBA
3492020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
350
351 Remote the 'supports_tracepoints' linux target op and let the
352 concrete linux target define it by overriding the op declared in
353 process_stratum_target.
354
355 * linux-low.h (struct linux_target_ops): Remove the op.
356 (class linux_process_target) <supports_tracepoints>: Remove.
357 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
358 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
359 Declare.
360 (x86_supports_tracepoints): Turn into...
361 (x86_target::supports_tracepoints): ...this.
362 (the_low_target): Remove the op field.
363 * linux-aarch64-low.cc (class aarch64_target)
364 <supports_tracepoints>: Declare.
365 (aarch64_supports_tracepoints): Turn into...
366 (aarch64_target::supports_tracepoints): ...this.
367 (the_low_target): Remove the op field.
368 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
369 Declare.
370 (ppc_supports_tracepoints): Turn into...
371 (ppc_target::supports_tracepoints): ...this.
372 (the_low_target): Remove the op field.
373 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
374 Declare.
375 (s390_supports_tracepoints): Turn into...
376 (s390_target::supports_tracepoints): ...this.
377 (the_low_target): Remove the op field.
378 * linux-arm-low.cc (the_low_target): Remove the op field.
379 * linux-bfin-low.cc (the_low_target): Ditto.
380 * linux-crisv32-low.cc (the_low_target): Ditto.
381 * linux-m32r-low.cc (the_low_target): Ditto.
382 * linux-m68k-low.cc (the_low_target): Ditto.
383 * linux-sh-low.cc (the_low_target): Ditto.
384 * linux-tic6x-low.cc (the_low_target): Ditto.
385 * linux-tile-low.cc (the_low_target): Ditto.
386 * linux-xtensa-low.cc (the_low_target): Ditto.
387
a5b5da92
TBA
3882020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
389
390 Remove the 'process_qsupported' linux target op and let a concrete
391 linux target define the op by overriding the op declaration in
392 process_stratum_target.
393
394 * linux-low.h (struct linux_target_ops): Remove the op.
395 (class linux_process_target) <process_qsupported>: Remove.
396 * linux-low.cc (linux_process_target::process_qsupported): Remove.
397 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
398 (x86_linux_process_qsupported): Turn into...
399 (x86_target::process_qsupported): ...this.
400 (the_low_target): Remove the op field.
401 * linux-aarch64-low.cc (the_low_target): Remove the op
402 field.
403 * linux-arm-low.cc (the_low_target): Ditto.
404 * linux-bfin-low.cc (the_low_target): Ditto.
405 * linux-crisv32-low.cc (the_low_target): Ditto.
406 * linux-m32r-low.cc (the_low_target): Ditto.
407 * linux-m68k-low.cc (the_low_target): Ditto.
408 * linux-ppc-low.cc (the_low_target): Ditto.
409 * linux-s390-low.cc (the_low_target): Ditto.
410 * linux-sh-low.cc (the_low_target): Ditto.
411 * linux-tic6x-low.cc (the_low_target): Ditto.
412 * linux-tile-low.cc (the_low_target): Ditto.
413 * linux-xtensa-low.cc (the_low_target): Ditto.
414
d7599cc0
TBA
4152020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
416
417 Turn the 'prepare_to_resume' linux target op into a method of
418 linux_process_target.
419
420 * linux-low.h (struct linux_target_ops): Remove the op.
421 (class linux_process_target) <low_prepare_to_resume>: Declare.
422 * linux-low.cc (linux_process_target::low_prepare_to_resume):
423 Define.
424
425 Update the callers below:
426
427 (linux_process_target::resume_one_lwp_throw)
428 (linux_process_target::low_prepare_to_resume)
429
430 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
431 Declare.
432 (x86_target::low_prepare_to_resume): Define.
433 (the_low_target): Remove the op field.
434 * linux-aarch64-low.cc (class aarch64_target)
435 <low_prepare_to_resume>: Declare.
436 (aarch64_target::low_prepare_to_resume): Define.
437 (the_low_target): Remove the op field.
438 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
439 Declare.
440 (arm_prepare_to_resume): Turn into...
441 (arm_target::low_prepare_to_resume): ...this.
442 (the_low_target): Remove the op field.
443 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
444 Declare.
445 (mips_linux_prepare_to_resume): Turn into...
446 (mips_target::low_prepare_to_resume): ...this.
447 (the_low_target): Remove the op field.
448 * linux-bfin-low.cc (the_low_target): Remove the op field.
449 * linux-crisv32-low.cc (the_low_target): Ditto.
450 * linux-m32r-low.cc (the_low_target): Ditto.
451 * linux-m68k-low.cc (the_low_target): Ditto.
452 * linux-ppc-low.cc (the_low_target): Ditto.
453 * linux-s390-low.cc (the_low_target): Ditto.
454 * linux-sh-low.cc (the_low_target): Ditto.
455 * linux-tic6x-low.cc (the_low_target): Ditto.
456 * linux-tile-low.cc (the_low_target): Ditto.
457 * linux-xtensa-low.cc (the_low_target): Ditto.
458
fd000fb3
TBA
4592020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
460
461 Turn the 'new_process', 'delete_process', 'new_thread',
462 'delete_thread', and 'new_fork' linux target ops into methods
463 of linux_process_target.
464
465 * linux-low.h (struct linux_target_ops): Remove the ops.
466 (class linux_process_target) <add_linux_process>
467 <add_lwp>
468 <delete_lwp>
469 <attach_lwp>
470 <detach_one_lwp>
471 <check_zombie_leaders>
472 <filter_exit_event>
473 <low_new_process>
474 <low_delete_process>
475 <low_new_thread>
476 <low_delete_thread>
477 <low_new_fork>: Declare.
478 * linux-low.cc (delete_lwp): Turn into...
479 (linux_process_target::delete_lwp): ...this.
480 (linux_process_target::low_delete_thread): Define.
481 (linux_add_process): Turn into...
482 (linux_process_target::add_linux_process): ...this.
483 (linux_process_target::low_new_process): Define.
484 (linux_process_target::low_delete_process): Define.
485 (linux_process_target::low_new_fork): Define.
486 (add_lwp): Turn into...
487 (linux_process_target::add_lwp): ...this.
488 (linux_process_target::low_new_thread): Define.
489 (linux_attach_lwp): Turn into...
490 (linux_process_target::attach_lwp): ...this.
491 (linux_detach_one_lwp): Turn into...
492 (linux_process_target::detach_one_lwp): ...this.
493 (linux_detach_lwp_callback): Remove and inline...
494 (linux_process_target::detach): ...here.
495 (check_zombie_leaders): Turn into...
496 (linux_process_target::check_zombie_leaders): ...this.
497 (filter_exit_event): Turn into...
498 (linux_process_target::filter_exit_event): ...this.
499
500 Update the callers below.
501
502 (linux_process_target::handle_extended_wait)
503 (linux_process_target::create_inferior)
504 (attach_proc_task_lwp_callback)
505 (linux_process_target::attach)
506 (linux_process_target::detach)
507 (linux_process_target::mourn)
508 * thread-db.cc (attach_thread)
509
510 * linux-x86-low.cc (class x86_target) <low_new_process>
511 <low_delete_process>
512 <low_new_thread>
513 <low_delete_thread>
514 <low_new_fork>: Declare.
515 (x86_linux_new_process): Turn into...
516 (x86_target::low_new_process): ...this.
517 (x86_linux_delete_process): Turn into...
518 (x86_target::low_delete_process): ...this.
519 (x86_target::low_new_thread): Define.
520 (x86_target::low_delete_thread): Define.
521 (x86_linux_new_fork): Turn into...
522 (x86_target::low_new_fork): ...this.
523 (the_low_target): Remove the op fields.
524 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
525 <low_delete_process>
526 <low_new_thread>
527 <low_delete_thread>
528 <low_new_fork>: Declare.
529 (aarch64_linux_new_process): Turn into...
530 (aarch64_target::low_new_process): ...this.
531 (aarch64_linux_delete_process): Turn into...
532 (aarch64_target::low_delete_process): ...this.
533 (aarch64_target::low_new_thread): Define.
534 (aarch64_target::low_delete_thread): Define.
535 (aarch64_linux_new_fork): Turn into...
536 (aarch64_target::low_new_fork): ...this.
537 (the_low_target): Remove the op fields.
538 * linux-arm-low.cc (class arm_target) <low_new_process>
539 <low_delete_process>
540 <low_new_thread>
541 <low_delete_thread>
542 <low_new_fork>: Declare.
543 (arm_new_process): Turn into...
544 (arm_target::low_new_process): ...this.
545 (arm_delete_process): Turn into...
546 (arm_target::low_delete_process): ...this.
547 (arm_new_thread): Turn into...
548 (arm_target::low_new_thread): ...this.
549 (arm_delete_thread): Turn into...
550 (arm_target::low_delete_thread): ...this.
551 (arm_new_fork): Turn into...
552 (arm_target::low_new_fork): ...this.
553 (the_low_target): Remove the op fields.
554 * linux-mips-low.cc (class mips_target) <low_new_process>
555 <low_delete_process>
556 <low_new_thread>
557 <low_delete_thread>
558 <low_new_fork>: Declare.
559 (mips_linux_new_process): Turn into...
560 (mips_target::low_new_process): ...this.
561 (mips_linux_delete_process): Turn into...
562 (mips_target::low_delete_process): ...this.
563 (mips_linux_new_thread): Turn into...
564 (mips_target::low_new_thread): ...this.
565 (mips_linux_delete_thread): Turn into...
566 (mips_target::low_delete_thread): ...this.
567 (mips_linux_new_fork): Turn into...
568 (mips_target::low_new_fork): ...this.
569 (the_low_target): Remove the op fields.
570 * linux-bfin-low.cc (the_low_target): Remove the op fields.
571 * linux-crisv32-low.cc (the_low_target): Ditto.
572 * linux-m32r-low.cc (the_low_target): Ditto.
573 * linux-m68k-low.cc (the_low_target): Ditto.
574 * linux-ppc-low.cc (the_low_target): Ditto.
575 * linux-s390-low.cc (the_low_target): Ditto.
576 * linux-sh-low.cc (the_low_target): Ditto.
577 * linux-tic6x-low.cc (the_low_target): Ditto.
578 * linux-tile-low.cc (the_low_target): Ditto.
579 * linux-xtensa-low.cc (the_low_target): Ditto.
580
cb63de7c
TBA
5812020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
582
583 Turn the 'siginfo_fixup' linux target op into a method of
584 linux_process_target.
585
586 * linux-low.h (struct linux_target_ops): Remove the op.
587 (class linux_process_target) <siginfo_fixup>
588 <low_siginfo_fixup>: Declare.
589 * linux-low.cc (siginfo_fixup): Turn into...
590 (linux_process_target::siginfo_fixup): ...this.
591 (linux_process_target::low_siginfo_fixup): Define.
592 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
593 (x86_siginfo_fixup): Turn into...
594 (x86_target::low_siginfo_fixup): ...this.
595 (the_low_target): Remove the op field.
596 * linux-aarch64-low.cc (class aarch64_target):
597 <low_siginfo_fixup>: Declare.
598 (aarch64_linux_siginfo_fixup): Turn into...
599 (aarch64_target::low_siginfo_fixup): ...this.
600 (the_low_target): Remove the op field.
601 * linux-arm-low.cc (the_low_target): Remove the op field.
602 * linux-bfin-low.cc (the_low_target): Ditto.
603 * linux-crisv32-low.cc (the_low_target): Ditto.
604 * linux-m32r-low.cc (the_low_target): Ditto.
605 * linux-m68k-low.cc (the_low_target): Ditto.
606 * linux-mips-low.cc (the_low_target): Ditto.
607 * linux-ppc-low.cc (the_low_target): Ditto.
608 * linux-s390-low.cc (the_low_target): Ditto.
609 * linux-sh-low.cc (the_low_target): Ditto.
610 * linux-tic6x-low.cc (the_low_target): Ditto.
611 * linux-tile-low.cc (the_low_target): Ditto.
612 * linux-xtensa-low.cc (the_low_target): Ditto.
613
b35db733
TBA
6142020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
615
616 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
617 linux target ops into methods of linux_process_target.
618
619 * linux-low.h (struct linux_target_ops): Remove the ops.
620 (class linux_process_target) <low_collect_ptrace_register>
621 <low_store_ptrace_register>: Declare.
622 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
623 (linux_process_target::low_supply_ptrace_register): Define.
624
625 Update the callers below.
626
627 (linux_process_target::fetch_register)
628 (linux_process_target::store_register)
629
630 * linux-x86-low.cc (the_low_target): Remove the op fields.
631 * linux-aarch64-low.cc (the_low_target): Ditto.
632 * linux-arm-low.cc (the_low_target): Ditto.
633 * linux-bfin-low.cc (the_low_target): Ditto.
634 * linux-crisv32-low.cc (the_low_target): Ditto.
635 * linux-m32r-low.cc (the_low_target): Ditto.
636 * linux-m68k-low.cc (the_low_target): Ditto.
637 * linux-sh-low.cc (the_low_target): Ditto.
638 * linux-sparc-low.cc (the_low_target): Ditto.
639 * linux-tic6x-low.cc (the_low_target): Ditto.
640 * linux-tile-low.cc (the_low_target): Ditto.
641 * linux-xtensa-low.cc (the_low_target): Ditto.
642 * linux-mips-low.cc (class mips_target)
643 <low_collect_ptrace_register>
644 <low_supply_ptrace_register>: Declare.
645 (mips_collect_ptrace_register): Turn into ...
646 (mips_target::low_collect_ptrace_register): ...this.
647 (mips_supply_ptrace_register): Turn into...
648 (mips_target::low_supply_ptrace_register): ...this.
649 (the_low_target): Remove the op fields.
650 * linux-ppc-low.cc (class ppc_target)
651 <low_collect_ptrace_register>
652 <low_supply_ptrace_register>: Declare.
653 (ppc_collect_ptrace_register): Turn into ...
654 (ppc_target::low_collect_ptrace_register): ...this.
655 (ppc_supply_ptrace_register): Turn into ...
656 (ppc_target::low_supply_ptrace_register): ...this.
657 (ppc_fill_gregset): Update for the calls to
658 low_collect_ptrace_register.
659 (the_low_target): Remove the op fields.
660 * linux-s390-low.cc (class s390_target)
661 <low_collect_ptrace_register>
662 <low_supply_ptrace_register>: Declare.
663 (s390_collect_ptrace_register): Turn into ...
664 (s390_target::low_collect_ptrace_register): ...this.
665 (s390_supply_ptrace_register): Turn into ...
666 (s390_target::low_supply_ptrace_register): ...this.
667 (s390_fill_gregset): Update for the calls to
668 low_collect_ptrace_register.
669 (the_low_target): Remove the op fields.
670
ac1bbaca
TBA
6712020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
672
673 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
674 target ops into methods of linux_process_target.
675
676 * linux-low.h (struct linux_target_ops): Remove the ops.
677 (class linux_process_target) <check_stopped_by_watchpoint>
678 <low_stopped_by_watchpoint>
679 <low_stopped_data_address>: Declare.
680 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
681 (linux_process_target::check_stopped_by_watchpoint): ...this.
682 (linux_process_target::low_stopped_by_watchpoint): Define.
683 (linux_process_target::low_stopped_data_address): Define.
684 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
685 <low_stopped_data_address>: Declare.
686 (x86_stopped_by_watchpoint): Turn into...
687 (x86_target::low_stopped_by_watchpoint): ...this.
688 (x86_stopped_data_address): Turn into...
689 (x86_target::low_stopped_data_address): ...this.
690 (the_low_target): Remove the op fields.
691 * linux-aarch64-low.cc (class aarch64_target)
692 <low_stopped_by_watchpoint>
693 <low_stopped_data_address>: Declare.
694 (aarch64_stopped_by_watchpoint): Turn into...
695 (aarch64_target::low_stopped_by_watchpoint): ...this.
696 (aarch64_stopped_data_address): Turn into...
697 (aarch64_target::low_stopped_data_address): ...this.
698 (the_low_target): Remove the op fields.
699 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
700 <low_stopped_data_address>: Declare.
701 (arm_stopped_by_watchpoint): Turn into...
702 (arm_target::low_stopped_by_watchpoint): ...this.
703 (arm_stopped_data_address): Turn into...
704 (arm_target::low_stopped_data_address): ...this.
705 (the_low_target): Remove the op fields.
706 * linux-crisv32-low.cc (class crisv32_target)
707 <low_stopped_by_watchpoint>
708 <low_stopped_data_address>: Declare.
709 (cris_stopped_by_watchpoint): Turn into...
710 (crisv32_target::low_stopped_by_watchpoint): ...this.
711 (cris_stopped_data_address): Turn into...
712 (crisv32_target::low_stopped_data_address): ...this.
713 (the_low_target): Remove the op fields.
714 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
715 <low_stopped_data_address>: Declare.
716 (mips_stopped_by_watchpoint): Turn into...
717 (mips_target::low_stopped_by_watchpoint): ...this.
718 (mips_stopped_data_address): Turn into...
719 (mips_target::low_stopped_data_address): ...this.
720 (the_low_target): Remove the op fields.
721 * linux-bfin-low.cc (the_low_target): Remove the op fields.
722 * linux-m32r-low.cc (the_low_target): Ditto.
723 * linux-m68k-low.cc (the_low_target): Ditto.
724 * linux-ppc-low.cc (the_low_target): Ditto.
725 * linux-s390-low.cc (the_low_target): Ditto.
726 * linux-sh-low.cc (the_low_target): Ditto.
727 * linux-sparc-low.cc (the_low_target): Ditto.
728 * linux-tic6x-low.cc (the_low_target): Ditto.
729 * linux-tile-low.cc (the_low_target): Ditto.
730 * linux-xtensa-low.cc (the_low_target): Ditto.
731
9db9aa23
TBA
7322020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
733
734 Turn the 'insert_point' and 'remove_point' linux target ops into
735 methods of linux_process_target.
736
737 * linux-low.h (struct linux_target_ops): Remove the ops.
738 (class linux_process_target) <low_insert_point>
739 <low_remove_point>: Declare.
740 * linux-low.cc (linux_process_target::low_insert_point)
741 (linux_process_target::low_remove_point): Define.
742 (linux_process_target::insert_point)
743 (linux_process_target::remove_point): Update for calls to
744 low_insert_point and low_remove_point.
745 * linux-x86-low.cc (class x86_target) <low_insert_point>
746 <low_remove_point>: Declare.
747 (x86_insert_point): Turn into...
748 (x86_target::low_insert_point): ...this.
749 (x86_remove_point): Turn into...
750 (x86_target::low_remove_point): ...this.
751 (the_low_target): Remove the op fields.
752 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
753 <low_remove_point>: Declare.
754 (aarch64_insert_point): Turn into...
755 (aarch64_target::low_insert_point): ...this.
756 (aarch64_remove_point): Turn into...
757 (aarch64_target::low_remove_point): ...this.
758 (the_low_target): Remove the op fields.
759 * linux-arm-low.cc (class arm_target) <low_insert_point>
760 <low_remove_point>: Declare.
761 (arm_insert_point): Turn into...
762 (arm_target::low_insert_point): ...this.
763 (arm_remove_point): Turn into...
764 (arm_target::low_remove_point): ...this.
765 (the_low_target): Remove the op fields.
766 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
767 <low_remove_point>: Declare.
768 (crisv32_insert_point): Turn into...
769 (crisv32_target::low_insert_point): ...this.
770 (crisv32_remove_point): Turn into...
771 (crisv32_target::low_remove_point): ...this.
772 (the_low_target): Remove the op fields.
773 * linux-mips-low.cc (class mips_target) <low_insert_point>
774 <low_remove_point>: Declare.
775 (mips_insert_point): Turn into...
776 (mips_target::low_insert_point): ...this.
777 (mips_remove_point): Turn into...
778 (mips_target::low_remove_point): ...this.
779 (the_low_target): Remove the op fields.
780 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
781 <low_remove_point>: Declare.
782 (ppc_insert_point): Turn into...
783 (ppc_target::low_insert_point): ...this.
784 (ppc_remove_point): Turn into...
785 (ppc_target::low_remove_point): ...this.
786 (the_low_target): Remove the op fields.
787 * linux-bfin-low.cc (the_low_target): Remove the op fields.
788 * linux-m32r-low.cc (the_low_target): Ditto.
789 * linux-m68k-low.cc (the_low_target): Ditto.
790 * linux-s390-low.cc (the_low_target): Ditto.
791 * linux-sh-low.cc (the_low_target): Ditto.
792 * linux-sparc-low.cc (the_low_target): Ditto.
793 * linux-tic6x-low.cc (the_low_target): Ditto.
794 * linux-tile-low.cc (the_low_target): Ditto.
795 * linux-xtensa-low.cc (the_low_target): Ditto.
796
007c9b97
TBA
7972020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
798
799 Remove the 'supports_z_point_type' linux target op and let the
800 concrete linux target define it by overriding the op declared in
801 process_stratum_target.
802
803 * linux-low.cc (linux_process_target::supports_z_point_type):
804 Remove.
805 * linux-low.h (struct linux_target_ops): Remove the op.
806 (class linux_process_target) <supports_z_point_type>: Remove.
807 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
808 Declare.
809 (x86_supports_z_point_type): Turn into...
810 (x86_target::supports_z_point_type): ...this.
811 (the_low_target): Remove the op field.
812 * linux-aarch64-low.cc (class aarch64_target)
813 <supports_z_point_type>: Declare.
814 (aarch64_supports_z_point_type): Turn into...
815 (aarch64_target::supports_z_point_type): ...this.
816 (the_low_target): Remove the op field.
817 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
818 Declare.
819 (arm_supports_z_point_type): Turn into...
820 (arm_target::supports_z_point_type): ...this.
821 (the_low_target): Remove the op field.
822 * linux-crisv32-low.cc (class crisv32_target)
823 <supports_z_point_type>: Declare.
824 (cris_supports_z_point_type): Turn into...
825 (crisv32_target::supports_z_point_type): ...this.
826 (the_low_target): Remove the op field.
827 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
828 Declare.
829 (mips_supports_z_point_type): Turn into...
830 (mips_target::supports_z_point_type): ...this.
831 (the_low_target): Remove the op field.
832 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
833 Declare.
834 (ppc_supports_z_point_type): Turn into...
835 (ppc_target::supports_z_point_type): ...this.
836 (the_low_target): Remove the op field.
837 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
838 Declare.
839 (s390_supports_z_point_type): Turn into...
840 (s390_target::supports_z_point_type): ...this.
841 (the_low_target): Remove the op field.
842 * linux-bfin-low.cc (the_low_target): Remove the op field.
843 * linux-m32r-low.cc (the_low_target): Ditto.
844 * linux-m68k-low.cc (the_low_target): Ditto.
845 * linux-sh-low.cc (the_low_target): Ditto.
846 * linux-sparc-low.cc (the_low_target): Ditto.
847 * linux-tic6x-low.cc (the_low_target): Ditto.
848 * linux-tile-low.cc (the_low_target): Ditto.
849 * linux-xtensa-low.cc (the_low_target): Ditto.
850
d7146cda
TBA
8512020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
852
853 Turn the 'breakpoint_at' linux target op into a method of
854 linux_process_target.
855
856 * linux-low.h (struct linux_target_ops): Remove the op.
857 (class linux_process_target) <low_breakpoint_at>: Declare.
858
859 Update the callers below:
860
861 * linux-low.cc (linux_process_target::save_stop_reason)
862 (linux_process_target::thread_still_has_status_pending)
863 (linux_process_target::wait_1)
864
865 * linux-x86-low.cc (class x86_target)
866 <low_breakpoint_at>: Declare.
867 (x86_breakpoint_at): Turn into...
868 (x86_target::low_breakpoint_at): ...this.
869 (the_low_target): Remove the op field.
870 * linux-aarch64-low.cc (class aarch64_target)
871 <low_breakpoint_at>: Declare.
872 (aarch64_breakpoint_at): Turn into...
873 (aarch64_target::low_breakpoint_at): ...this.
874 (the_low_target): Remove the op field.
875 * linux-arm-low.cc (class arm_target)
876 <low_breakpoint_at>: Declare.
877 (arm_target::low_breakpoint_at): Define.
878 (the_low_target): Remove the op field.
879 * linux-bfin-low.cc (class bfin_target)
880 <low_breakpoint_at>: Declare.
881 (bfin_breakpoint_at): Turn into...
882 (bfin_target::low_breakpoint_at): ...this.
883 (the_low_target): Remove the op field.
884 * linux-cris-low.cc (class cris_target)
885 <low_breakpoint_at>: Declare.
886 (cris_breakpoint_at): Turn into...
887 (cris_target::low_breakpoint_at): ...this.
888 (the_low_target): Remove the op field.
889 * linux-crisv32-low.cc (class crisv32_target)
890 <low_breakpoint_at>: Declare.
891 (crisv32_breakpoint_at): Turn into...
892 (crisv32_target::low_breakpoint_at): ...this.
893 (the_low_target): Remove the op field.
894 * linux-ia64-low.cc (class ia64_target)
895 <low_breakpoint_at>: Declare.
896 (ia64_target::low_breakpoint_at): Define.
897 * linux-m32r-low.cc (class m32r_target)
898 <low_breakpoint_at>: Declare.
899 (m32r_breakpoint_at): Turn into...
900 (m32r_target::low_breakpoint_at): ...this.
901 (the_low_target): Remove the op field.
902 * linux-m68k-low.cc (class m68k_target)
903 <low_breakpoint_at>: Declare.
904 (m68k_breakpoint_at): Turn into...
905 (m68k_target::low_breakpoint_at): ...this.
906 (the_low_target): Remove the op field.
907 * linux-mips-low.cc (class mips_target)
908 <low_breakpoint_at>: Declare.
909 (mips_breakpoint_at): Turn into...
910 (mips_target::low_breakpoint_at): ...this.
911 (the_low_target): Remove the op field.
912 * linux-nios2-low.cc (class nios2_target)
913 <low_breakpoint_at>: Declare.
914 (nios2_breakpoint_at): Turn into...
915 (nios2_target::low_breakpoint_at): ...this.
916 (the_low_target): Remove the op field.
917 * linux-ppc-low.cc (class ppc_target)
918 <low_breakpoint_at>: Declare.
919 (ppc_breakpoint_at): Turn into...
920 (ppc_target::low_breakpoint_at): ...this.
921 (the_low_target): Remove the op field.
922 * linux-riscv-low.cc (class riscv_target)
923 <low_breakpoint_at>: Declare.
924 (riscv_breakpoint_at): Turn into...
925 (riscv_target::low_breakpoint_at): ...this.
926 (the_low_target): Remove the op field.
927 * linux-s390-low.cc (class s390_target)
928 <low_breakpoint_at>: Declare.
929 (s390_breakpoint_at): Turn into...
930 (s390_target::low_breakpoint_at): ...this.
931 (the_low_target): Remove the op field.
932 * linux-sh-low.cc (class sh_target)
933 <low_breakpoint_at>: Declare.
934 (sh_breakpoint_at): Turn into...
935 (sh_target::low_breakpoint_at): ...this.
936 (the_low_target): Remove the op field.
937 * linux-sparc-low.cc (class sparc_target)
938 <low_breakpoint_at>: Declare.
939 (sparc_breakpoint_at): Turn into...
940 (sparc_target::low_breakpoint_at): ...this.
941 (the_low_target): Remove the op field.
942 * linux-tic6x-low.cc (class tic6x_target)
943 <low_breakpoint_at>: Declare.
944 (tic6x_breakpoint_at): Turn into...
945 (tic6x_target::low_breakpoint_at): ...this.
946 (the_low_target): Remove the op field.
947 * linux-tile-low.cc (class tile_target)
948 <low_breakpoint_at>: Declare.
949 (tile_breakpoint_at): Turn into...
950 (tile_target::low_breakpoint_at): ...this.
951 (the_low_target): Remove the op field.
952 * linux-xtensa-low.cc (class xtensa_target)
953 <low_breakpoint_at>: Declare.
954 (xtensa_breakpoint_at): Turn into...
955 (xtensa_target::low_breakpoint_at): ...this.
956 (the_low_target): Remove the op field.
957
d4807ea2
TBA
9582020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
959
960 Turn the 'decr_pc_after_break' linux_target_ops field into
961 a method of linux_process_target.
962
963 * linux-low.h (struct linux_target_ops)
964 <decr_pc_after_break>: Remove.
965 (class linux_process_target) <low_decr_pc_after_break>: New method
966 declaration.
967 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
968 New method implementation.
969
970 Update the users below.
971
972 (linux_process_target::save_stop_reason)
973 (linux_process_target::wait_1)
974 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
975 New declaration.
976 (x86_target::low_decr_pc_after_break): New method implementation.
977 (the_low_target): Remove the field.
978 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
979 New declaration.
980 (bfin_target::low_decr_pc_after_break): New method implementation.
981 (the_low_target): Remove the field.
982 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
983 New declaration.
984 (m68k_target::low_decr_pc_after_break): New method implementation.
985 (the_low_target): Remove the field.
986 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
987 New declaration.
988 (s390_target::low_decr_pc_after_break): New method implementation.
989 (the_low_target): Remove the field.
990 * linux-aarch64-low.cc (the_low_target): Remove the field.
991 * linux-arm-low.cc (the_low_target): Remove the field.
992 * linux-cris-low.cc (the_low_target): Remove the field.
993 * linux-crisv32-low.cc (the_low_target): Remove the field.
994 * linux-m32r-low.cc (the_low_target): Remove the field.
995 * linux-mips-low.cc (the_low_target): Remove the field.
996 * linux-nios2-low.cc (the_low_target): Remove the field.
997 * linux-ppc-low.cc (the_low_target): Remove the field.
998 * linux-riscv-low.cc (the_low_target): Remove the field.
999 * linux-sh-low.cc (the_low_target): Remove the field.
1000 * linux-sparc-low.cc (the_low_target): Remove the field.
1001 * linux-tic6x-low.cc (the_low_target): Remove the field.
1002 * linux-tile-low.cc (the_low_target): Remove the field.
1003 * linux-xtensa-low.cc (the_low_target): Remove the field.
1004
7582c77c
TBA
10052020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1006
1007 Remove the 'supports_software_single_step' linux target op and let
1008 the concrete linux target define it by overriding the op in
1009 process_stratum_target.
1010 Turn the 'get_next_pcs' linux target op into a method of
1011 linux_process_target.
1012
1013 * linux-low.h (struct linux_target_ops): Remove the ops.
1014 (class linux_process_target) <supports_software_single_step>:
1015 Remove.
1016 <low_get_next_pcs>: Declare.
1017 * linux-low.cc (can_software_single_step): Remove.
1018 (linux_process_target::low_get_next_pcs): Define.
1019 (linux_process_target::supports_software_single_step): Remove.
1020
1021 Update the callers below.
1022
1023 (linux_process_target::handle_extended_wait)
1024 (linux_process_target::wait_1)
1025 (linux_process_target::install_software_single_step_breakpoints)
1026 (linux_process_target::single_step)
1027 (linux_process_target::thread_needs_step_over)
1028 (linux_process_target::proceed_one_lwp)
1029 (linux_process_target::supports_range_stepping)
1030
1031 * linux-x86-low.cc (the_low_target): Remove the op field.
1032 * linux-aarch64-low.cc (the_low_target): Ditto.
1033 * linux-bfin-low.cc (the_low_target): Ditto.
1034 * linux-cris-low.cc (the_low_target): Ditto.
1035 * linux-crisv32-low.cc (the_low_target): Ditto.
1036 * linux-m32r-low.cc (the_low_target): Ditto.
1037 * linux-m68k-low.cc (the_low_target): Ditto.
1038 * linux-mips-low.cc (the_low_target): Ditto.
1039 * linux-nios2-low.cc (the_low_target): Ditto.
1040 * linux-ppc-low.cc (the_low_target): Ditto.
1041 * linux-riscv-low.cc (the_low_target): Ditto.
1042 * linux-s390-low.cc (the_low_target): Ditto.
1043 * linux-sh-low.cc (the_low_target): Ditto.
1044 * linux-sparc-low.cc (the_low_target): Ditto.
1045 * linux-tic6x-low.cc (the_low_target): Ditto.
1046 * linux-tile-low.cc (the_low_target): Ditto.
1047 * linux-xtensa-low.cc (the_low_target): Ditto.
1048 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1049 <supports_software_single_step>: Declare.
1050 (arm_target::supports_software_single_step): Define.
1051 (arm_gdbserver_get_next_pcs): Turn into...
1052 (arm_target::low_get_next_pcs): ...this.
1053 (the_low_target): Remove the op field.
1054
3ca4edb6
TBA
10552020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1056
1057 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1058 the concrete linux target define it by overriding the op
1059 in process_stratum_target.
1060
1061 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1062 Remove.
1063 * linux-low.h (struct linux_target_ops): Remove the op.
1064 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1065 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1066 Declare.
1067 (x86_sw_breakpoint_from_kind): Turn into...
1068 (x86_target::sw_breakpoint_from_kind): ...this.
1069 (the_low_target): Remove the op field.
1070 * linux-aarch64-low.cc (class aarch64_target)
1071 <sw_breakpoint_from_kind>: Declare.
1072 (aarch64_sw_breakpoint_from_kind): Turn into...
1073 (aarch64_target::sw_breakpoint_from_kind): ...this.
1074 (the_low_target): Remove the op field.
1075 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1076 Declare.
1077 (arm_target::sw_breakpoint_from_kind): Define.
1078 (the_low_target): Remove the op field.
1079 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1080 Declare.
1081 (bfin_sw_breakpoint_from_kind): Turn into...
1082 (bfin_target::sw_breakpoint_from_kind): ...this.
1083 (the_low_target): Remove the op field.
1084 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1085 Declare.
1086 (cris_sw_breakpoint_from_kind): Turn into...
1087 (cris_target::sw_breakpoint_from_kind): ...this.
1088 (the_low_target): Remove the op field.
1089 * linux-crisv32-low.cc (class crisv32_target)
1090 <sw_breakpoint_from_kind>: Declare.
1091 (cris_sw_breakpoint_from_kind): Turn into...
1092 (crisv32_target::sw_breakpoint_from_kind): ...this.
1093 (the_low_target): Remove the op field.
1094 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1095 Declare.
1096 (ia64_target::sw_breakpoint_from_kind): Define.
1097 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1098 Declare.
1099 (m32r_sw_breakpoint_from_kind): Turn into...
1100 (m32r_target::sw_breakpoint_from_kind): ...this.
1101 (the_low_target): Remove the op field.
1102 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1103 Declare.
1104 (m68k_sw_breakpoint_from_kind): Turn into...
1105 (m68k_target::sw_breakpoint_from_kind): ...this.
1106 (the_low_target): Remove the op field.
1107 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1108 Declare.
1109 (mips_sw_breakpoint_from_kind): Turn into...
1110 (mips_target::sw_breakpoint_from_kind): ...this.
1111 (the_low_target): Remove the op field.
1112 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1113 Declare.
1114 (nios2_sw_breakpoint_from_kind): Turn into...
1115 (nios2_target::sw_breakpoint_from_kind): ...this.
1116 (the_low_target): Remove the op field.
1117 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1118 Declare.
1119 (ppc_sw_breakpoint_from_kind): Turn into...
1120 (ppc_target::sw_breakpoint_from_kind): ...this.
1121 (the_low_target): Remove the op field.
1122 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1123 Declare.
1124 (riscv_sw_breakpoint_from_kind): Turn into...
1125 (riscv_target::sw_breakpoint_from_kind): ...this.
1126 (the_low_target): Remove the op field.
1127 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1128 Declare.
1129 (s390_sw_breakpoint_from_kind): Turn into...
1130 (s390_target::sw_breakpoint_from_kind): ...this.
1131 (the_low_target): Remove the op field.
1132 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1133 Declare.
1134 (sh_sw_breakpoint_from_kind): Turn into...
1135 (sh_target::sw_breakpoint_from_kind): ...this.
1136 (the_low_target): Remove the op field.
1137 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1138 Declare.
1139 (sparc_sw_breakpoint_from_kind): Turn into...
1140 (sparc_target::sw_breakpoint_from_kind): ...this.
1141 (the_low_target): Remove the op field.
1142 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1143 Declare.
1144 (tic6x_sw_breakpoint_from_kind): Turn into...
1145 (tic6x_target::sw_breakpoint_from_kind): ...this.
1146 (the_low_target): Remove the op field.
1147 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1148 Declare.
1149 (tile_sw_breakpoint_from_kind): Turn into...
1150 (tile_target::sw_breakpoint_from_kind): ...this.
1151 (the_low_target): Remove the op field.
1152 * linux-xtensa-low.cc (class xtensa_target)
1153 <sw_breakpoint_from_kind>: Declare.
1154 (xtensa_sw_breakpoint_from_kind): Turn into...
1155 (xtensa_target::sw_breakpoint_from_kind): ...this.
1156 (the_low_target): Remove the op field.
1157
06250e4e
TBA
11582020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1159
1160 Remove the 'breakpoint_kind_from_pc' and
1161 'breakpoint_kind_from_current_state' linux target ops, and let the
1162 concrete linux target define them by overriding the ops of
1163 process_stratum_target.
1164
1165 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1166 Remove.
1167 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1168 * linux-low.h (struct linux_target_ops): Remove ops.
1169 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1170 <breakpoint_kind_from_current_state>: Remove.
1171 * linux-x86-low.cc (the_low_target): Remove the op fields.
1172 * linux-bfin-low.cc (the_low_target): Ditto.
1173 * linux-cris-low.cc (the_low_target): Ditto.
1174 * linux-crisv32-low.cc (the_low_target): Ditto.
1175 * linux-m32r-low.cc (the_low_target): Ditto.
1176 * linux-m68k-low.cc (the_low_target): Ditto.
1177 * linux-mips-low.cc (the_low_target): Ditto.
1178 * linux-nios2-low.cc (the_low_target): Ditto.
1179 * linux-ppc-low.cc (the_low_target): Ditto.
1180 * linux-s390-low.cc (the_low_target): Ditto.
1181 * linux-sh-low.cc (the_low_target): Ditto.
1182 * linux-sparc-low.cc (the_low_target): Ditto.
1183 * linux-tic6x-low.cc (the_low_target): Ditto.
1184 * linux-tile-low.cc (the_low_target): Ditto.
1185 * linux-xtensa-low.cc (the_low_target): Ditto.
1186 * linux-aarch64-low.cc (class aarch64_target)
1187 <breakpoint_kind_from_pc>
1188 <breakpoint_kind_from_current_state>: Declare.
1189 (aarch64_breakpoint_kind_from_pc): Turn into...
1190 (aarch64_target::breakpoint_kind_from_pc): ...this.
1191 (aarch64_breakpoint_kind_from_current_state): Turn into...
1192 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1193 (the_low_target): Remove the op fields.
1194 * linux-arm-low.cc (class arm_target):
1195 <breakpoint_kind_from_pc>
1196 <breakpoint_kind_from_current_state>: Declare.
1197 (arm_target::breakpoint_kind_from_pc): Define.
1198 (arm_target::breakpoint_kind_from_current_state): Define.
1199 (the_low_target): Remove the op fields.
1200 * linux-riscv-low.cc (class riscv_target):
1201 <breakpoint_kind_from_pc>: Declare.
1202 (riscv_breakpoint_kind_from_pc): Turn into...
1203 (riscv_target::breakpoint_kind_from_pc): ...this.
1204 (the_low_target): Remove the op fields.
1205
bf9ae9d8
TBA
12062020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1207
1208 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1209 of linux_process_target.
1210
1211 * linux-low.h (struct linux_target_ops): Remove the ops.
1212 (class linux_process_target) <low_supports_breakpoints>
1213 <low_get_pc>
1214 <low_set_pc>: Declare.
1215 * linux-low.cc (supports_breakpoints): Turn into...
1216 (linux_process_target::low_supports_breakpoints): ...this.
1217 (linux_process_target::low_get_pc): Define.
1218 (linux_process_target::low_set_pc): Define.
1219
1220 Update the callers below.
1221
1222 (linux_process_target::get_pc)
1223 (linux_process_target::save_stop_reason)
1224 (linux_process_target::maybe_move_out_of_jump_pad)
1225 (linux_process_target::wait_1)
1226 (linux_process_target::resume_one_lwp_throw)
1227 (linux_process_target::resume)
1228 (linux_process_target::proceed_all_lwps)
1229 (linux_process_target::read_pc)
1230 (linux_process_target::write_pc)
1231
1232 * linux-x86-low.cc (class linux_process_target)
1233 <low_supports_breakpoints>
1234 <low_get_pc>
1235 <low_set_pc>: Declare.
1236 (x86_target::low_supports_breakpoints): Define.
1237 (x86_get_pc): Turn into...
1238 (x86_target::low_get_pc): ...this.
1239 (x86_set_pc): Turn into...
1240 (x86_target::low_set_pc): ...this.
1241 (the_low_target): Remove the op fields.
1242 * linux-arm-low.cc (class arm_target)
1243 <low_supports_breakpoints>
1244 <low_get_pc>
1245 <low_set_pc>: Declare.
1246 (arm_target::low_supports_breakpoints)
1247 (arm_target::low_get_pc)
1248 (arm_target::low_set_pc): Define.
1249 (the_low_target): Remove the op fields.
1250 * linux-bfin-low.cc (class bfin_target)
1251 <low_supports_breakpoints>
1252 <low_get_pc>
1253 <low_set_pc>: Declare.
1254 (bfin_target::low_supports_breakpoints)
1255 (bfin_target::low_get_pc)
1256 (bfin_target::low_set_pc): Define.
1257 (the_low_target): Remove the op fields.
1258 * linux-cris-low.cc (class cris_target)
1259 <low_supports_breakpoints>
1260 <low_get_pc>
1261 <low_set_pc>: Declare.
1262 (cris_target::low_supports_breakpoints)
1263 (cris_target::low_get_pc)
1264 (cris_target::low_set_pc): Define.
1265 (the_low_target): Remove the op fields.
1266 * linux-crisv32-low.cc (class crisv32_target)
1267 <low_supports_breakpoints>
1268 <low_get_pc>
1269 <low_set_pc>: Declare.
1270 (crisv32_target::low_supports_breakpoints)
1271 (crisv32_target::low_get_pc)
1272 (crisv32_target::low_set_pc): Define.
1273 (the_low_target): Remove the op fields.
1274 * linux-m32r-low.cc (class m32r_target)
1275 <low_supports_breakpoints>
1276 <low_get_pc>
1277 <low_set_pc>: Declare.
1278 (m32r_target::low_supports_breakpoints)
1279 (m32r_target::low_get_pc)
1280 (m32r_target::low_set_pc): Define.
1281 (the_low_target): Remove the op fields.
1282 * linux-m68k-low.cc (class m68k_target)
1283 <low_supports_breakpoints>
1284 <low_get_pc>
1285 <low_set_pc>: Declare.
1286 (m68k_target::low_supports_breakpoints)
1287 (m68k_target::low_get_pc)
1288 (m68k_target::low_set_pc): Define.
1289 (the_low_target): Remove the op fields.
1290 * linux-nios2-low.cc (class nios2_target)
1291 <low_supports_breakpoints>
1292 <low_get_pc>
1293 <low_set_pc>: Declare.
1294 (nios2_target::low_supports_breakpoints)
1295 (nios2_target::low_get_pc)
1296 (nios2_target::low_set_pc): Define.
1297 (the_low_target): Remove the op fields.
1298 * linux-sh-low.cc (class sh_target)
1299 <low_supports_breakpoints>
1300 <low_get_pc>
1301 <low_set_pc>: Declare.
1302 (sh_target::low_supports_breakpoints)
1303 (sh_target::low_get_pc)
1304 (sh_target::low_set_pc): Define.
1305 (the_low_target): Remove the op fields.
1306 * linux-xtensa-low.cc (class xtensa_target)
1307 <low_supports_breakpoints>
1308 <low_get_pc>
1309 <low_set_pc>: Declare.
1310 (xtensa_target::low_supports_breakpoints)
1311 (xtensa_target::low_get_pc)
1312 (xtensa_target::low_set_pc): Define.
1313 (the_low_target): Remove the op fields.
1314 * linux-sparc-low.cc (class sparc_target)
1315 <low_supports_breakpoints>
1316 <low_get_pc>: Declare.
1317 (sparc_target::low_supports_breakpoints)
1318 (sparc_target::low_get_pc): Define.
1319 (the_low_target): Remove the op fields.
1320 * linux-tile-low.cc (class tile_target)
1321 <low_supports_breakpoints>
1322 <low_get_pc>
1323 <low_set_pc>: Declare.
1324 (tile_target::low_supports_breakpoints)
1325 (tile_target::low_get_pc)
1326 (tile_target::low_set_pc): Define.
1327 (the_low_target): Remove the op fields.
1328 * linux-aarch64-low.cc (class aarch64_target)
1329 <low_supports_breakpoints>
1330 <low_get_pc>
1331 <low_set_pc>: Declare.
1332 (aarch64_target::low_supports_breakpoints): Define.
1333 (aarch64_get_pc): Turn into...
1334 (aarch64_target::low_get_pc): ...this.
1335 (aarch64_set_pc): Turn into...
1336 (aarch64_target::low_set_pc): ...this.
1337 (the_low_target): Remove the op fields.
1338 * linux-mips-low.cc (class mips_target)
1339 <low_supports_breakpoints>
1340 <low_get_pc>
1341 <low_set_pc>: Declare.
1342 (mips_target::low_supports_breakpoints): Define.
1343 (mips_get_pc): Turn into...
1344 (mips_target::low_get_pc): ...this.
1345 (mips_set_pc): Turn into...
1346 (mips_target::low_set_pc): ...this.
1347 (the_low_target): Remove the op fields.
1348 * linux-ppc-low.cc (class ppc_target)
1349 <low_supports_breakpoints>
1350 <low_get_pc>
1351 <low_set_pc>: Declare.
1352 (ppc_target::low_supports_breakpoints): Define.
1353 (ppc_get_pc): Turn into...
1354 (ppc_target::low_get_pc): ...this.
1355 (ppc_set_pc): Turn into...
1356 (ppc_target::low_set_pc): ...this.
1357 (the_low_target): Remove the op fields.
1358 * linux-riscv-low.cc (class riscv_target)
1359 <low_supports_breakpoints>
1360 <low_get_pc>
1361 <low_set_pc>: Declare.
1362 (riscv_target::low_supports_breakpoints): Define.
1363 (riscv_get_pc): Turn into...
1364 (riscv_target::low_get_pc): ...this.
1365 (riscv_set_pc): Turn into...
1366 (riscv_target::low_set_pc): ...this.
1367 (the_low_target): Remove the op fields.
1368 * linux-s390-low.cc (class s390_target)
1369 <low_supports_breakpoints>
1370 <low_get_pc>
1371 <low_set_pc>: Declare.
1372 (s390_target::low_supports_breakpoints): Define.
1373 (s390_get_pc): Turn into...
1374 (s390_target::low_get_pc): ...this.
1375 (s390_set_pc): Turn into...
1376 (s390_target::low_set_pc): ...this.
1377 (the_low_target): Remove the op fields.
1378 * linux-tic6x-low.cc (class tic6x_target)
1379 <low_supports_breakpoints>
1380 <low_get_pc>
1381 <low_set_pc>: Declare.
1382 (tic6x_target::low_supports_breakpoints): Define.
1383 (tic6x_get_pc): Turn into...
1384 (tic6x_target::low_get_pc): ...this.
1385 (tic6x_set_pc): Turn into...
1386 (tic6x_target::low_set_pc): ...this.
1387 (the_low_target): Remove the op fields.
1388
df95181f
TBA
13892020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1390
1391 Turn some more static methods in linux-low into private methods
1392 of linux_process_target.
1393
1394 * linux-low.cc (get_pc): Turn into...
1395 (linux_process_target::get_pc): ...this.
1396 (save_stop_reason): Turn into...
1397 (linux_process_target::save_stop_reason): ...this.
1398 (thread_still_has_status_pending_p): Turn into...
1399 (linux_process_target::thread_still_has_status_pending): ...this.
1400 (status_pending_p_callback): Turn into...
1401 (linux_process_target::status_pending_p_callback): ...this.
1402 (resume_stopped_resumed_lwps): Turn into...
1403 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1404 (install_software_single_step_breakpoints): Turn into...
1405 (linux_process_target::install_software_single_step_breakpoints):
1406 ...this.
1407 (single_step): Turn into...
1408 (linux_process_target::single_step): ...this.
1409 (linux_resume_one_lwp_throw): Turn into...
1410 (linux_process_target::resume_one_lwp_throw): ...this.
1411 (linux_resume_one_lwp): Turn into...
1412 (linux_process_target::resume_one_lwp): ...this.
1413 (resume_status_pending_p): Turn into...
1414 (linux_process_target::resume_status_pending): ...this.
1415 (need_step_over_p): Turn into...
1416 (linux_process_target::thread_needs_step_over): ...this.
1417 (linux_resume_one_thread): Turn into...
1418 (linux_process_target::resume_one_thread): ...this.
1419 (proceed_one_lwp): Turn into...
1420 (linux_process_target::proceed_one_lwp): ...this.
1421 (unsuspend_and_proceed_one_lwp): Turn into...
1422 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1423
1424 Update the calls/references to the above functions below.
1425
1426 (linux_process_target::handle_extended_wait)
1427 (linux_process_target::filter_event)
1428 (linux_process_target::wait_for_event_filtered)
1429 (linux_process_target::wait_1)
1430 (linux_process_target::move_out_of_jump_pad)
1431 (linux_process_target::start_step_over)
1432 (linux_process_target::resume)
1433 (linux_process_target::proceed_all_lwps)
1434 (regsets_store_inferior_registers)
1435 (linux_process_target::store_register)
1436
1437 * linux-low.h (class linux_process_target)
1438 <get_pc>
1439 <save_stop_reason>
1440 <thread_still_has_status_pending>
1441 <status_pending_p_callback>
1442 <resume_stopped_resumed_lwps>
1443 <install_software_single_step_breakpoints>
1444 <single_step>
1445 <resume_one_lwp_throw>
1446 <resume_one_lwp>
1447 <resume_status_pending>
1448 <thread_needs_step_over>
1449 <resume_one_thread>
1450 <proceed_one_lwp>
1451 <unsuspend_and_proceed_one_lwp>: Declare.
1452
bd70b1f2
TBA
14532020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1454
1455 Turn the 'fetch_register' linux target op into a method of
1456 linux_process_target.
1457
1458 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1459 (class linux_process_target) <low_fetch_register>: Declare.
1460 * linux-x86-low.cc (the_low_target)
1461 * linux-aarch64-low.cc (the_low_target)
1462 * linux-arm-low.cc (the_low_target)
1463 * linux-bfin-low.cc (the_low_target)
1464 * linux-cris-low.cc (the_low_target)
1465 * linux-crisv32-low.cc (the_low_target)
1466 * linux-m32r-low.cc (the_low_target)
1467 * linux-m68k-low.cc (the_low_target)
1468 * linux-nios2-low.cc (the_low_target)
1469 * linux-ppc-low.cc (the_low_target)
1470 * linux-s390-low.cc (the_low_target)
1471 * linux-sh-low.cc (the_low_target)
1472 * linux-sparc-low.cc (the_low_target)
1473 * linux-tic6x-low.cc (the_low_target)
1474 * linux-tile-low.cc (the_low_target)
1475 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1476 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1477 Declare.
1478 (ia64_fetch_register): Turn into...
1479 (ia64_target::low_fetch_register): ...this.
1480 (the_low_target): Remove the op field.
1481 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1482 Declare.
1483 (mips_fetch_register): Turn into...
1484 (mips_target::low_fetch_register): ...this.
1485 (the_low_target): Remove the op field.
1486 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1487 Declare.
1488 (riscv_fetch_register): Turn into...
1489 (riscv_target::low_fetch_register): ...this.
1490 (the_low_target): Remove the op field.
1491
1492 Update the callers below.
1493
1494 * linux-low.cc (linux_process_target::fetch_registers)
1495 (linux_process_target::low_fetch_register)
1496
daca57a7
TBA
14972020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1498
1499 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1500 linux target ops into methods of linux_process_target.
1501
1502 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1503 (class linux_process_target) <fetch_register>
1504 <store_register>
1505 <usr_fetch_inferior_registers>
1506 <usr_store_inferior_registers>
1507 <low_cannot_fetch_register>
1508 <low_cannot_fetch_register> Declare.
1509 * linux-low.cc (fetch_register): Turn into...
1510 (linux_process_target::fetch_register): ...this.
1511 (store_register): Turn into ...
1512 (linux_process_target::store_register): ...this.
1513 (usr_fetch_inferior_registers): Turn into...
1514 (linux_process_target::usr_fetch_inferior_registers): ...this.
1515 (usr_store_inferior_registers): Turn into...
1516 (linux_process_target::usr_store_inferior_registers): ...this.
1517 * linux-x86-low.cc (class x86_target)
1518 <low_cannot_fetch_register>
1519 <low_cannot_store_register>: Declare.
1520 (x86_cannot_store_register): Turn into...
1521 (x86_target::low_cannot_store_register): ...this.
1522 (x86_cannot_fetch_register): Turn into...
1523 (x86_target::low_cannot_fetch_register): ...this.
1524 (the_low_target): Remove the target op fields.
1525 * linux-aarch64-low.cc (class aarch64_target)
1526 <low_cannot_fetch_register>
1527 <low_cannot_store_register>: Declare.
1528 (aarch64_target::low_cannot_fetch_register)
1529 (aarch64_target::low_cannot_store_register): Define.
1530 (the_low_target): Remove the op fields.
1531 * linux-arm-low.cc (class arm_target)
1532 <low_cannot_fetch_register>
1533 <low_cannot_store_register>: Declare.
1534 (arm_cannot_fetch_register): Turn into...
1535 (arm_target::low_cannot_fetch_register): ...this.
1536 (arm_cannot_store_register): Turn into...
1537 (arm_target::low_cannot_store_register): ...this.
1538 (the_low_target): Remove the op fields.
1539 * linux-bfin-low.cc (class bfin_target)
1540 <low_cannot_fetch_register>
1541 <low_cannot_store_register>: Declare.
1542 (bfin_cannot_fetch_register): Turn into...
1543 (bfin_target::low_cannot_fetch_register): ...this.
1544 (bfin_cannot_store_register): Turn into...
1545 (bfin_target::low_cannot_store_register): ...this.
1546 (the_low_target): Remove the op fields.
1547 * linux-cris-low.cc (class cris_target)
1548 <low_cannot_fetch_register>
1549 <low_cannot_store_register>: Declare.
1550 (cris_cannot_fetch_register): Turn into...
1551 (cris_target::low_cannot_fetch_register): ...this.
1552 (cris_cannot_store_register): Turn into...
1553 (cris_target::low_cannot_store_register): ...this.
1554 (the_low_target): Remove the op fields.
1555 * linux-crisv32-low.cc (class crisv32_target)
1556 <low_cannot_fetch_register>
1557 <low_cannot_store_register>: Declare.
1558 (crisv32_target::low_cannot_fetch_register)
1559 (crisv32_target::low_cannot_store_register): Define.
1560 (the_low_target): Remove the op fields.
1561 * linux-ia64-low.cc (class ia64_target)
1562 <low_cannot_fetch_register>
1563 <low_cannot_store_register>: Declare.
1564 (ia64_cannot_fetch_register): Turn into...
1565 (ia64_target::low_cannot_fetch_register): ...this.
1566 (ia64_cannot_store_register): Turn into...
1567 (ia64_target::low_cannot_store_register): ...this.
1568 (the_low_target): Remove the op fields.
1569 * linux-m32r-low.cc (class m32r_target)
1570 <low_cannot_fetch_register>
1571 <low_cannot_store_register>: Declare.
1572 (m32r_cannot_fetch_register): Turn into...
1573 (m32r_target::low_cannot_fetch_register): ...this.
1574 (m32r_cannot_store_register): Turn into...
1575 (m32r_target::low_cannot_store_register): ...this.
1576 (the_low_target): Remove the op fields.
1577 * linux-m68k-low.cc (class m68k_target)
1578 <low_cannot_fetch_register>
1579 <low_cannot_store_register>: Declare.
1580 (m68k_cannot_fetch_register): Turn into...
1581 (m68k_target::low_cannot_fetch_register): ...this.
1582 (m68k_cannot_store_register): Turn into...
1583 (m68k_target::low_cannot_store_register): ...this.
1584 (the_low_target): Remove the op fields.
1585 * linux-mips-low.cc (class mips_target)
1586 <low_cannot_fetch_register>
1587 <low_cannot_store_register>: Declare.
1588 (mips_cannot_fetch_register): Turn into...
1589 (mips_target::low_cannot_fetch_register): ...this.
1590 (mips_cannot_store_register): Turn into...
1591 (mips_target::low_cannot_store_register): ...this.
1592 (get_usrregs_info): Inline at the call sites in
1593 low_cannot_fetch_register and low_cannot_store_register,
1594 and remove.
1595 (the_low_target): Remove the op fields.
1596 * linux-nios2-low.cc (class nios2_target)
1597 <low_cannot_fetch_register>
1598 <low_cannot_store_register>: Declare.
1599 (nios2_cannot_fetch_register): Turn into...
1600 (nios2_target::low_cannot_fetch_register): ...this.
1601 (nios2_cannot_store_register): Turn into...
1602 (nios2_target::low_cannot_store_register): ...this.
1603 (the_low_target): Remove the op fields.
1604 * linux-ppc-low.cc (class ppc_target)
1605 <low_cannot_fetch_register>
1606 <low_cannot_store_register>: Declare.
1607 (ppc_cannot_fetch_register): Turn into...
1608 (ppc_target::low_cannot_fetch_register): ...this.
1609 (ppc_cannot_store_register): Turn into...
1610 (ppc_target::low_cannot_store_register): ...this.
1611 (the_low_target): Remove the op fields.
1612 * linux-riscv-low.cc (class riscv_target)
1613 <low_cannot_fetch_register>
1614 <low_cannot_store_register>: Declare.
1615 (riscv_target::low_cannot_fetch_register)
1616 (riscv_target::low_cannot_store_register): Define.
1617 (the_low_target): Remove the op fields.
1618 * linux-s390-low.cc (class s390_target)
1619 <low_cannot_fetch_register>
1620 <low_cannot_store_register>: Declare.
1621 (s390_cannot_fetch_register): Turn into...
1622 (s390_target::low_cannot_fetch_register): ...this.
1623 (s390_cannot_store_register): Turn into...
1624 (s390_target::low_cannot_store_register): ...this.
1625 (the_low_target): Remove the op fields.
1626 * linux-sh-low.cc (class sh_target)
1627 <low_cannot_fetch_register>
1628 <low_cannot_store_register>: Declare.
1629 (sh_cannot_fetch_register): Turn into...
1630 (sh_target::low_cannot_fetch_register): ...this.
1631 (sh_cannot_store_register): Turn into...
1632 (sh_target::low_cannot_store_register): ...this.
1633 (the_low_target): Remove the op fields.
1634 * linux-sparc-low.cc (class sparc_target)
1635 <low_cannot_fetch_register>
1636 <low_cannot_store_register>: Declare.
1637 (sparc_cannot_fetch_register): Turn into...
1638 (sparc_target::low_cannot_fetch_register): ...this.
1639 (sparc_cannot_store_register): Turn into...
1640 (sparc_target::low_cannot_store_register): ...this.
1641 (the_low_target): Remove the op fields.
1642 * linux-tic6x-low.cc (class tic6x_target)
1643 <low_cannot_fetch_register>
1644 <low_cannot_store_register>: Declare.
1645 (tic6x_cannot_fetch_register): Turn into...
1646 (tic6x_target::low_cannot_fetch_register): ...this.
1647 (tic6x_cannot_store_register): Turn into...
1648 (tic6x_target::low_cannot_store_register): ...this.
1649 (the_low_target): Remove the op fields.
1650 * linux-tile-low.cc (class tile_target)
1651 <low_cannot_fetch_register>
1652 <low_cannot_store_register>: Declare.
1653 (tile_cannot_fetch_register): Turn into...
1654 (tile_target::low_cannot_fetch_register): ...this.
1655 (tile_cannot_store_register): Turn into...
1656 (tile_target::low_cannot_store_register): ...this.
1657 (the_low_target): Remove the op fields.
1658 * linux-xtensa-low.cc (class xtensa_target)
1659 <low_cannot_fetch_register>
1660 <low_cannot_store_register>: Declare.
1661 (xtensa_target::low_cannot_fetch_register)
1662 (xtensa_target::low_cannot_store_register): Define.
1663 (the_low_target): Remove the op fields.
1664
aa8d21c9
TBA
16652020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1666
1667 Turn the 'regs_info' linux target op into a method of
1668 linux_process_target.
1669
1670 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1671 (class linux_process_target) <get_regs_info>: Define.
1672
1673 Update the callers below.
1674
1675 * linux-low.cc (linux_process_target::fetch_registers)
1676 (linux_process_target::store_registers)
1677 * proc-service.cc (gregset_info)
1678
1679 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1680 (x86_linux_regs_info): Turn into ...
1681 (x86_target::get_regs_info): ...this.
1682 (the_low_target): Remove the op field.
1683 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1684 Declare.
1685 (aarch64_regs_info): Turn into ...
1686 (aarch64_target::get_regs_info): ...this.
1687 (the_low_target): Remove the op field.
1688 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1689 (arm_regs_info): Turn into ...
1690 (arm_target::get_regs_info): ...this.
1691 (the_low_target): Remove the op field.
1692 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1693 (bfin_regs_info): Turn into ...
1694 (bfin_target::get_regs_info): ...this.
1695 (the_low_target): Remove the op field.
1696 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1697 (cris_regs_info): Turn into ...
1698 (cris_target::get_regs_info): ...this.
1699 (the_low_target): Remove the op field.
1700 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1701 Declare.
1702 (crisv32_regs_info): Turn into ...
1703 (crisv32_target::get_regs_info): ...this.
1704 (the_low_target): Remove the op field.
1705 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1706 (ia64_regs_info): Turn into ...
1707 (ia64_target::get_regs_info): ...this.
1708 (the_low_target): Remove the op field.
1709 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1710 (m32r_regs_info): Turn into ...
1711 (m32r_target::get_regs_info): ...this.
1712 (the_low_target): Remove the op field.
1713 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1714 (m68k_regs_info): Turn into ...
1715 (m68k_target::get_regs_info): ...this.
1716 (the_low_target): Remove the op field.
1717 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1718 (mips_regs_info): Turn into ...
1719 (mips_target::get_regs_info): ...this.
1720 (the_low_target): Remove the op field.
1721 (get_usrregs_info): Update the call to the op.
1722 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1723 (nios2_regs_info): Turn into ...
1724 (nios2_target::get_regs_info): ...this.
1725 (the_low_target): Remove the op field.
1726 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1727 (ppc_regs_info): Turn into ...
1728 (ppc_target::get_regs_info): ...this.
1729 (the_low_target): Remove the op field.
1730 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1731 (riscv_regs_info): Turn into ...
1732 (riscv_target::get_regs_info): ...this.
1733 (the_low_target): Remove the op field.
1734 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1735 (s390_regs_info): Turn into ...
1736 (s390_target::get_regs_info): ...this.
1737 (the_low_target): Remove the op field.
1738 (s390_collect_ptrace_register)
1739 (s390_supply_ptrace_register)
1740 (s390_fill_gregset): Update the call to the op.
1741 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1742 (sh_regs_info): Turn into ...
1743 (sh_target::get_regs_info): ...this.
1744 (the_low_target): Remove the op field.
1745 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1746 (sparc_regs_info): Turn into ...
1747 (sparc_target::get_regs_info): ...this.
1748 (the_low_target): Remove the op field.
1749 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1750 (tic6x_regs_info): Turn into ...
1751 (tic6x_target::get_regs_info): ...this.
1752 (the_low_target): Remove the op field.
1753 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1754 (tile_regs_info): Turn into ...
1755 (tile_target::get_regs_info): ...this.
1756 (the_low_target): Remove the op field.
1757 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1758 Declare.
1759 (xtensa_regs_info): Turn into ...
1760 (xtensa_target::get_regs_info): ...this.
1761 (the_low_target): Remove the op field.
1762
797bcff5
TBA
17632020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1764
1765 Turn the 'arch_setup' linux target op into a method of
1766 linux_process_target.
1767
1768 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1769 (class linux_process_target) <arch_setup_thread>
1770 <low_arch_setup>: New declarations.
1771 * linux-low.cc (linux_arch_setup): Delete.
1772 (linux_arch_setup_thread): Turn into...
1773 (linux_process_target::arch_setup_thread): ... this.
1774
1775 Update the callers below.
1776
1777 (linux_process_target::handle_extended_wait)
1778 (linux_process_target::post_create_inferior)
1779 (linux_process_target::filter_event)
1780
1781 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1782 declaration.
1783 (x86_linux_update_xmltarget): Turn into...
1784 (x86_target::update_xmltarget): ...this.
1785 (x86_linux_process_qsupported): Update the call to
1786 x86_linux_update_xmltarget.
1787 (x86_arch_setup): Turn into ...
1788 (x86_target::low_arch_setup): ...this.
1789 (the_low_target): Remove the op field.
1790 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1791 declaration.
1792 (aarch64_arch_setup): Turn into ...
1793 (aarch64_target::low_arch_setup): ...this.
1794 (the_low_target): Remove the op field.
1795 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1796 declaration.
1797 (arm_arch_setup): Turn into ...
1798 (arm_target::low_arch_setup): ...this.
1799 (the_low_target): Remove the op field.
1800 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1801 declaration.
1802 (bfin_arch_setup): Turn into ...
1803 (bfin_target::low_arch_setup): ...this.
1804 (the_low_target): Remove the op field.
1805 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1806 declaration.
1807 (cris_arch_setup): Turn into ...
1808 (cris_target::low_arch_setup): ...this.
1809 (the_low_target): Remove the op field.
1810 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1811 declaration.
1812 (crisv32_arch_setup): Turn into ...
1813 (crisv32_target::low_arch_setup): ...this.
1814 (the_low_target): Remove the op field.
1815 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1816 declaration.
1817 (ia64_arch_setup): Turn into ...
1818 (ia64_target::low_arch_setup): ...this.
1819 (the_low_target): Remove the op field.
1820 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1821 declaration.
1822 (m32r_arch_setup): Turn into ...
1823 (m32r_target::low_arch_setup): ...this.
1824 (the_low_target): Remove the op field.
1825 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1826 declaration.
1827 (m68k_arch_setup): Turn into ...
1828 (m68k_target::low_arch_setup): ...this.
1829 (the_low_target): Remove the op field.
1830 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1831 declaration.
1832 (mips_arch_setup): Turn into ...
1833 (mips_target::low_arch_setup): ...this.
1834 (the_low_target): Remove the op field.
1835 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1836 declaration.
1837 (nios2_arch_setup): Turn into ...
1838 (nios2_target::low_arch_setup): ...this.
1839 (the_low_target): Remove the op field.
1840 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1841 declaration.
1842 (ppc_arch_setup): Turn into ...
1843 (ppc_target::low_arch_setup): ...this.
1844 (the_low_target): Remove the op field.
1845 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1846 declaration.
1847 (riscv_arch_setup): Turn into ...
1848 (riscv_target::low_arch_setup): ...this.
1849 (the_low_target): Remove the op field.
1850 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1851 declaration.
1852 (s390_arch_setup): Turn into ...
1853 (s390_target::low_arch_setup): ...this.
1854 (the_low_target): Remove the op field.
1855 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1856 declaration.
1857 (sh_arch_setup): Turn into ...
1858 (sh_target::low_arch_setup): ...this.
1859 (the_low_target): Remove the op field.
1860 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1861 declaration.
1862 (sparc_arch_setup): Turn into ...
1863 (sparc_target::low_arch_setup): ...this.
1864 (the_low_target): Remove the op field.
1865 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1866 declaration.
1867 (tic6x_arch_setup): Turn into ...
1868 (tic6x_target::low_arch_setup): ...this.
1869 (the_low_target): Remove the op field.
1870 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1871 declaration.
1872 (tile_arch_setup): Turn into ...
1873 (tile_target::low_arch_setup): ...this.
1874 (the_low_target): Remove the op field.
1875 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1876 declaration.
1877 (xtensa_arch_setup): Turn into ...
1878 (xtensa_target::low_arch_setup): ...this.
1879 (the_low_target): Remove the op field.
1880
ef0478f6
TBA
18812020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1882
1883 * linux-low.h (the_linux_target): New extern declaration.
1884 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1885 'the_target'.
1886 (the_linux_target): Remove.
1887 * linux-x86-low.cc (class x86_target): New class.
1888 (the_x86_target): New static object.
1889 (the_linux_target): Define as pointer to the_x86_target.
1890 * linux-aarch64-low.cc (class aarch64_target): New class.
1891 (the_aarch64_target): New static object.
1892 (the_linux_target): Define as pointer to the_aarch64_target.
1893 * linux-arm-low.cc (class arm_target): New class.
1894 (the_arm_target): New static object.
1895 (the_linux_target): Define as pointer to the_arm_target.
1896 * linux-bfin-low.cc (class bfin_target): New class.
1897 (the_bfin_target): New static object.
1898 (the_linux_target): Define as pointer to the_bfin_target.
1899 * linux-cris-low.cc (class cris_target): New class.
1900 (the_cris_target): New static object.
1901 (the_linux_target): Define as pointer to the_cris_target.
1902 * linux-crisv32-low.cc (class crisv32_target): New class.
1903 (the_crisv32_target): New static object.
1904 (the_linux_target): Define as pointer to the_crisv32_target.
1905 * linux-ia64-low.cc (class ia64_target): New class.
1906 (the_ia64_target): New static object.
1907 (the_linux_target): Define as pointer to the_ia64_target.
1908 * linux-m32r-low.cc (class m32r_target): New class.
1909 (the_m32r_target): New static object.
1910 (the_linux_target): Define as pointer to the_m32r_target.
1911 * linux-m68k-low.cc (class m68k_target): New class.
1912 (the_m68k_target): New static object.
1913 (the_linux_target): Define as pointer to the_m68k_target.
1914 * linux-mips-low.cc (class mips_target): New class.
1915 (the_mips_target): New static object.
1916 (the_linux_target): Define as pointer to the_mips_target.
1917 * linux-nios2-low.cc (class nios2_target): New class.
1918 (the_nios2_target): New static object.
1919 (the_linux_target): Define as pointer to the_nios2_target.
1920 * linux-ppc-low.cc (class ppc_target): New class.
1921 (the_ppc_target): New static object.
1922 (the_linux_target): Define as pointer to the_ppc_target.
1923 * linux-riscv-low.cc (class riscv_target): New class.
1924 (the_riscv_target): New static object.
1925 (the_linux_target): Define as pointer to the_riscv_target.
1926 * linux-s390-low.cc (class s390_target): New class.
1927 (the_s390_target): New static object.
1928 (the_linux_target): Define as pointer to the_s390_target.
1929 * linux-sh-low.cc (class sh_target): New class.
1930 (the_sh_target): New static object.
1931 (the_linux_target): Define as pointer to the_sh_target.
1932 * linux-sparc-low.cc (class sparc_target): New class.
1933 (the_sparc_target): New static object.
1934 (the_linux_target): Define as pointer to the_sparc_target.
1935 * linux-tic6x-low.cc (class tic6x_target): New class.
1936 (the_tic6x_target): New static object.
1937 (the_linux_target): Define as pointer to the_tic6x_target.
1938 * linux-tile-low.cc (class tile_target): New class.
1939 (the_tile_target): New static object.
1940 (the_linux_target): Define as pointer to the_tile_target.
1941 * linux-xtensa-low.cc (class xtensa_target): New class.
1942 (the_xtensa_target): New static object.
1943 (the_linux_target): Define as pointer to the_xtensa_target.
1944
d16f3f6c
TBA
19452020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1946
1947 Turn some static functions in linux-low.cc into private methods of
1948 linux_process_target.
1949
1950 * linux-low.cc (handle_extended_wait): Turn into ...
1951 (linux_process_target::handle_extended_wait): ...this. Call
1952 'mourn' on 'this' object instead of 'the_target'.
1953 (maybe_move_out_of_jump_pad): Turn into...
1954 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
1955 (linux_low_filter_event): Turn into...
1956 (linux_process_target::filter_event): ...this.
1957 (linux_wait_for_event_filtered): Turn into...
1958 (linux_process_target::wait_for_event_filtered): ...this.
1959 (linux_wait_for_event): Turn into...
1960 (linux_process_target::wait_for_event): ...this.
1961 (linux_wait_1): Turn into...
1962 (linux_process_target::wait_1): ...this.
1963 (wait_for_sigstop): Turn into...
1964 (linux_process_target::wait_for_sigstop): ...this.
1965 (move_out_of_jump_pad_callback): Turn into...
1966 (linux_process_target::move_out_of_jump_pad): ...this.
1967 (stop_all_lwps): Turn into...
1968 (linux_process_target::stop_all_lwps): ...this.
1969 (start_step_over): Turn into...
1970 (linux_process_target::start_step_over): ...this.
1971 (complete_ongoing_step_over): Turn into...
1972 (linux_process_target::complete_ongoing_step_over): ...this.
1973 (proceed_all_lwps): Turn into...
1974 (linux_process_target::proceed_all_lwps): ...this.
1975 (unstop_all_lwps): Turn into...
1976 (linux_process_target::unstop_all_lwps): ...this.
1977
1978 * linux-low.h (class linux_process_target)
1979 <handle_extended_wait>
1980 <maybe_move_out_of_jump_pad>
1981 filter_event>
1982 <wait_for_event_filtered>
1983 <wait_for_event>
1984 <wait_1>
1985 <wait_for_sigstop>
1986 <move_out_of_jump_pad>
1987 <stop_all_lwps>
1988 <start_step_over>
1989 <complete_ongoing_step_over>
1990 <proceed_all_lwps>
1991 <unstop_all_lwps>: Declare.
1992
1993 Update the callers below.
1994
1995 * linux-low.cc (linux_process_target::attach): Update.
1996 (linux_process_target::stabilize_threads): Ditto.
1997 (linux_process_target::wait): Ditto.
1998
a5863204
TBA
19992020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2000
2001 * linux-low.h (struct linux_target_ops): Update the comment for
2002 'cannot_store_register' to return 0 or 1.
2003 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2004 of 2.
2005
c884cc46
SM
20062020-03-20 Simon Marchi <simon.marchi@efficios.com>
2007
2008 * config.in: Re-generate.
2009 * configure: Re-generate.
2010
5a82b8a1
KR
20112020-03-17 Kamil Rytarowski <n54@gmx.com>
2012
2013 * regcache.cc (find_register_by_number): Update.
2014 * tdesc.cc (init_target_desc): Likewise.
2015 * tdesc.h (target_desc::reg_defs): Likewise.
2016
4635ff97
TT
20172020-03-12 Tom Tromey <tom@tromey.com>
2018
2019 * configure: Rebuild.
2020 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2021 (WIN32APILIBS): New subst.
2022 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2023 gdbsupport files.
2024 (gdbsupport/%.o): Remove target.
2025 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2026 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2027 (WIN32APILIBS): New variable.
2028 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2029 (gdbreplay$(EXEEXT)): Likewise.
2030
9a665d62
TT
20312020-03-12 Tom Tromey <tom@tromey.com>
2032
2033 * config.in, configure: Rebuild.
2034 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2035 * acinclude.m4: Include gettext-sister.m4.
2036 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2037 variables.
2038 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2039 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2040
272cd5a3
SM
20412020-03-12 Simon Marchi <simon.marchi@efficios.com>
2042
2043 * acinclude.m4: Update path to selftest.m4.
2044
db6878ac
SM
20452020-03-12 Simon Marchi <simon.marchi@efficios.com>
2046
2047 * configure.ac: Don't source bfd/development.sh, move
2048 GDB_AC_COMMON higher.
2049 * configure: Re-generate.
2050
4d696a5c
SM
20512020-03-12 Simon Marchi <simon.marchi@efficios.com>
2052
2053 * configure: Re-generate.
2054
a0761e34
SM
20552020-03-11 Simon Marchi <simon.marchi@efficios.com>
2056
2057 * configure: Re-generate.
2058
20ea4a60
AB
20592020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2060
2061 * .dir-locals.el: New file.
2062
842806cb
TBA
20632020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2064
2065 * .gitattributes: New file.
2066
442131c1
AB
20672020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2068
2069 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2070 reply into an S reply.
2071 * server.cc (disable_packet_T): New global.
2072 (captured_main): Set new global when appropriate.
2073 * server.h (disable_packet_T): Declare.
2074
dda42c0b
TT
20752020-02-21 Tom Tromey <tom@tromey.com>
2076
2077 * Makefile.in (mostlyclean): New target.
2078
52405d85
TBA
20792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2080
2081 * target.h (struct process_stratum_target): Remove.
2082 (class process_target): Rename to ...
2083 (class process_stratum_target): ... this.
2084 * linux-low.h (class linux_process_target): Derive from
2085 'process_stratum_target'.
2086 * linux-low.cc (linux_target_ops): Remove.
2087 (initialize_low): Set the_target to the singleton instance of
2088 linux_process_target.
2089 * lynx-low.h (class lynx_process_target): Derive from
2090 'process_stratum_target'.
2091 * lynx-low.cc (lynx_target_ops): Remove.
2092 (initialize_low): Set the_target to the singleton instance of
2093 lynx_process_target.
2094 * nto-low.h (class nto_process_target): Derive from
2095 'process_stratum_target'.
2096 * nto-low.cc (nto_target_ops): Remove.
2097 (initialize_low): Set the_target to the singleton instance of
2098 nto_process_target.
2099 * win32-low.h (class win32_process_target): Derive from
2100 'process_stratum_target'.
2101 * win32-low.cc (win32_target_ops): Remove.
2102 (initialize_low): Set the_target to the singleton instance of
2103 win32_process_target.
2104
2105 Replace 'the_target->pt' with 'the_target' in the uses below.
2106
2107 * hostio.cc (hostio_error)
2108 (handle_setfs)
2109 (handle_open)
2110 (handle_unlink)
2111 (handle_readlink)
2112 * linux-aarch32-low.cc (arm_breakpoint_at)
2113 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2114 * linux-arm-low.cc (arm_sigreturn_next_pc)
2115 (arm_get_hwcap)
2116 (arm_get_syscall_trapinfo)
2117 * linux-cris-low.cc (cris_breakpoint_at)
2118 * linux-crisv32-low.cc (cris_breakpoint_at)
2119 * linux-low.cc (handle_extended_wait)
2120 (linux_wait_1)
2121 (linux_read_memory)
2122 (linux_process_target::breakpoint_kind_from_pc)
2123 (linux_get_auxv)
2124 * linux-m32r-low.cc (m32r_breakpoint_at)
2125 * linux-mips-low.cc (mips_breakpoint_at)
2126 * linux-nios2-low.cc (nios2_breakpoint_at)
2127 * linux-ppc-low.cc (ppc_breakpoint_at)
2128 * linux-s390-low.cc (s390_get_hwcap)
2129 * linux-sh-low.cc (sh_breakpoint_at)
2130 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2131 (sparc_store_gregset_from_stack)
2132 (sparc_breakpoint_at)
2133 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2134 * linux-tile-low.cc (tile_breakpoint_at)
2135 * linux-x86-low.cc (x86_breakpoint_at)
2136 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2137 * mem-break.cc (bp_size)
2138 (bp_opcode)
2139 (insert_memory_breakpoint)
2140 (set_raw_breakpoint_at)
2141 (delete_raw_breakpoint)
2142 (z_type_supported)
2143 (uninsert_raw_breakpoint)
2144 (reinsert_raw_breakpoint)
2145 (validate_inserted_breakpoint)
2146 * regcache.cc (regcache_read_pc)
2147 (regcache_write_pc)
2148 * remote-utils.cc (putpkt_binary_1)
2149 (input_interrupt)
2150 (getpkt)
2151 (prepare_resume_reply)
2152 * server.cc (handle_general_set)
2153 (handle_detach)
2154 (handle_qxfer_auxv)
2155 (handle_qxfer_exec_file)
2156 (handle_qxfer_libraries_svr4)
2157 (handle_qxfer_osdata)
2158 (handle_qxfer_siginfo)
2159 (handle_qxfer_fdpic)
2160 (handle_query)
2161 (resume)
2162 (handle_v_requests)
2163 (queue_stop_reply_callback)
2164 (captured_main)
2165 * target.cc (prepare_to_access_memory)
2166 (done_accessing_memory)
2167 (read_inferior_memory)
2168 (target_write_memory)
2169 (target_stop_and_wait)
2170 (target_wait)
2171 (target_mourn_inferior)
2172 (target_continue_no_signal)
2173 (target_continue)
2174 (target_supports_multi_process)
2175 (kill_inferior)
2176 * target.h
2177 (target_create_inferior)
2178 (target_post_create_inferior)
2179 (myattach)
2180 (target_supports_fork_events)
2181 (target_supports_vfork_events)
2182 (target_supports_exec_events)
2183 (target_handle_new_gdb_connection)
2184 (detach_inferior)
2185 (mythread_alive)
2186 (fetch_inferior_registers)
2187 (store_inferior_registers)
2188 (join_inferior)
2189 (target_supports_non_stop)
2190 (target_async)
2191 (target_process_qsupported)
2192 (target_supports_catch_syscall)
2193 (target_get_ipa_tdesc_idx)
2194 (target_supports_tracepoints)
2195 (target_supports_fast_tracepoints)
2196 (target_get_min_fast_tracepoint_insn_len)
2197 (target_thread_stopped)
2198 (target_pause_all)
2199 (target_unpause_all)
2200 (target_stabilize_threads)
2201 (target_install_fast_tracepoint_jump_pad)
2202 (target_emit_ops)
2203 (target_supports_disable_randomization)
2204 (target_supports_agent)
2205 (target_enable_btrace)
2206 (target_disable_btrace)
2207 (target_read_btrace)
2208 (target_read_btrace_conf)
2209 (target_supports_range_stepping)
2210 (target_supports_stopped_by_sw_breakpoint)
2211 (target_stopped_by_sw_breakpoint)
2212 (target_supports_stopped_by_hw_breakpoint)
2213 (target_supports_hardware_single_step)
2214 (target_stopped_by_hw_breakpoint)
2215 (target_breakpoint_kind_from_pc)
2216 (target_breakpoint_kind_from_current_state)
2217 (target_supports_software_single_step)
2218 (target_core_of_thread)
2219 (target_thread_name)
2220 (target_thread_handle)
2221 * win32-low.cc (do_initial_child_stuff)
2222
2223 Rename target op default definitions listed below.
2224
2225 * target.cc (process_target::post_create_inferior): Rename as ...
2226 (process_stratum_target::post_create_inferior): ... this.
2227 (process_target::prepare_to_access_memory): Rename as ...
2228 (process_stratum_target::prepare_to_access_memory): ... this.
2229 (process_target::done_accessing_memory): Rename as ...
2230 (process_stratum_target::done_accessing_memory): ... this.
2231 (process_target::look_up_symbols): Rename as ...
2232 (process_stratum_target::look_up_symbols): ... this.
2233 (process_target::supports_read_auxv): Rename as ...
2234 (process_stratum_target::supports_read_auxv): ... this.
2235 (process_target::read_auxv): Rename as ...
2236 (process_stratum_target::read_auxv): ... this.
2237 (process_target::supports_z_point_type): Rename as ...
2238 (process_stratum_target::supports_z_point_type): ... this.
2239 (process_target::insert_point): Rename as ...
2240 (process_stratum_target::insert_point): ... this.
2241 (process_target::remove_point): Rename as ...
2242 (process_stratum_target::remove_point): ... this.
2243 (process_target::stopped_by_sw_breakpoint): Rename as ...
2244 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2245 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2246 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2247 (process_target::stopped_by_hw_breakpoint): Rename as ...
2248 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2249 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2250 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2251 (process_target::supports_hardware_single_step): Rename as ...
2252 (process_stratum_target::supports_hardware_single_step): ... this.
2253 (process_target::stopped_by_watchpoint): Rename as ...
2254 (process_stratum_target::stopped_by_watchpoint): ... this.
2255 (process_target::stopped_data_address): Rename as ...
2256 (process_stratum_target::stopped_data_address): ... this.
2257 (process_target::supports_read_offsets): Rename as ...
2258 (process_stratum_target::supports_read_offsets): ... this.
2259 (process_target::read_offsets): Rename as ...
2260 (process_stratum_target::read_offsets): ... this.
2261 (process_target::supports_get_tls_address): Rename as ...
2262 (process_stratum_target::supports_get_tls_address): ... this.
2263 (process_target::get_tls_address): Rename as ...
2264 (process_stratum_target::get_tls_address): ... this.
2265 (process_target::hostio_last_error): Rename as ...
2266 (process_stratum_target::hostio_last_error): ... this.
2267 (process_target::supports_qxfer_osdata): Rename as ...
2268 (process_stratum_target::supports_qxfer_osdata): ... this.
2269 (process_target::qxfer_osdata): Rename as ...
2270 (process_stratum_target::qxfer_osdata): ... this.
2271 (process_target::supports_qxfer_siginfo): Rename as ...
2272 (process_stratum_target::supports_qxfer_siginfo): ... this.
2273 (process_target::qxfer_siginfo): Rename as ...
2274 (process_stratum_target::qxfer_siginfo): ... this.
2275 (process_target::supports_non_stop): Rename as ...
2276 (process_stratum_target::supports_non_stop): ... this.
2277 (process_target::async): Rename as ...
2278 (process_stratum_target::async): ... this.
2279 (process_target::start_non_stop): Rename as ...
2280 (process_stratum_target::start_non_stop): ... this.
2281 (process_target::supports_multi_process): Rename as ...
2282 (process_stratum_target::supports_multi_process): ... this.
2283 (process_target::supports_fork_events): Rename as ...
2284 (process_stratum_target::supports_fork_events): ... this.
2285 (process_target::supports_vfork_events): Rename as ...
2286 (process_stratum_target::supports_vfork_events): ... this.
2287 (process_target::supports_exec_events): Rename as ...
2288 (process_stratum_target::supports_exec_events): ... this.
2289 (process_target::handle_new_gdb_connection): Rename as ...
2290 (process_stratum_target::handle_new_gdb_connection): ... this.
2291 (process_target::handle_monitor_command): Rename as ...
2292 (process_stratum_target::handle_monitor_command): ... this.
2293 (process_target::core_of_thread): Rename as ...
2294 (process_stratum_target::core_of_thread): ... this.
2295 (process_target::supports_read_loadmap): Rename as ...
2296 (process_stratum_target::supports_read_loadmap): ... this.
2297 (process_target::read_loadmap): Rename as ...
2298 (process_stratum_target::read_loadmap): ... this.
2299 (process_target::process_qsupported): Rename as ...
2300 (process_stratum_target::process_qsupported): ... this.
2301 (process_target::supports_tracepoints): Rename as ...
2302 (process_stratum_target::supports_tracepoints): ... this.
2303 (process_target::read_pc): Rename as ...
2304 (process_stratum_target::read_pc): ... this.
2305 (process_target::write_pc): Rename as ...
2306 (process_stratum_target::write_pc): ... this.
2307 (process_target::supports_thread_stopped): Rename as ...
2308 (process_stratum_target::supports_thread_stopped): ... this.
2309 (process_target::thread_stopped): Rename as ...
2310 (process_stratum_target::thread_stopped): ... this.
2311 (process_target::supports_get_tib_address): Rename as ...
2312 (process_stratum_target::supports_get_tib_address): ... this.
2313 (process_target::get_tib_address): Rename as ...
2314 (process_stratum_target::get_tib_address): ... this.
2315 (process_target::pause_all): Rename as ...
2316 (process_stratum_target::pause_all): ... this.
2317 (process_target::unpause_all): Rename as ...
2318 (process_stratum_target::unpause_all): ... this.
2319 (process_target::stabilize_threads): Rename as ...
2320 (process_stratum_target::stabilize_threads): ... this.
2321 (process_target::supports_fast_tracepoints): Rename as ...
2322 (process_stratum_target::supports_fast_tracepoints): ... this.
2323 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2324 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2325 (process_target::emit_ops): Rename as ...
2326 (process_stratum_target::emit_ops): ... this.
2327 (process_target::supports_disable_randomization): Rename as ...
2328 (process_stratum_target::supports_disable_randomization): ... this.
2329 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2330 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2331 (process_target::qxfer_libraries_svr4): Rename as ...
2332 (process_stratum_target::qxfer_libraries_svr4): ... this.
2333 (process_target::supports_agent): Rename as ...
2334 (process_stratum_target::supports_agent): ... this.
2335 (process_target::enable_btrace): Rename as ...
2336 (process_stratum_target::enable_btrace): ... this.
2337 (process_target::disable_btrace): Rename as ...
2338 (process_stratum_target::disable_btrace): ... this.
2339 (process_target::read_btrace): Rename as ...
2340 (process_stratum_target::read_btrace): ... this.
2341 (process_target::read_btrace_conf): Rename as ...
2342 (process_stratum_target::read_btrace_conf): ... this.
2343 (process_target::supports_range_stepping): Rename as ...
2344 (process_stratum_target::supports_range_stepping): ... this.
2345 (process_target::supports_pid_to_exec_file): Rename as ...
2346 (process_stratum_target::supports_pid_to_exec_file): ... this.
2347 (process_target::pid_to_exec_file): Rename as ...
2348 (process_stratum_target::pid_to_exec_file): ... this.
2349 (process_target::supports_multifs): Rename as ...
2350 (process_stratum_target::supports_multifs): ... this.
2351 (process_target::multifs_open): Rename as ...
2352 (process_stratum_target::multifs_open): ... this.
2353 (process_target::multifs_unlink): Rename as ...
2354 (process_stratum_target::multifs_unlink): ... this.
2355 (process_target::multifs_readlink): Rename as ...
2356 (process_stratum_target::multifs_readlink): ... this.
2357 (process_target::breakpoint_kind_from_pc): Rename as ...
2358 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2359 (process_target::breakpoint_kind_from_current_state): Rename as ...
2360 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2361 (process_target::thread_name): Rename as ...
2362 (process_stratum_target::thread_name): ... this.
2363 (process_target::thread_handle): Rename as ...
2364 (process_stratum_target::thread_handle): ... this.
2365 (process_target::supports_software_single_step): Rename as ...
2366 (process_stratum_target::supports_software_single_step): ... this.
2367 (process_target::supports_catch_syscall): Rename as ...
2368 (process_stratum_target::supports_catch_syscall): ... this.
2369 (process_target::get_ipa_tdesc_idx): Rename as ...
2370 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2371
478f9adf
PA
23722020-02-20 Pedro Alves <palves@redhat.com>
2373
2374 * target.cc (set_target_ops): Simply copy the given target pointer
2375 instead of creating a copy of the pointed object.
2376
d633e831
TBA
23772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2378
2379 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2380 of process_target.
2381
2382 * target.h (struct process_stratum_target): Remove the target op.
2383 (class process_target): Add the target op.
2384 (target_get_ipa_tdesc_idx): Update the macro.
2385 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2386
2387 Update the derived classes and callers below.
2388
2389 * linux-low.cc (linux_target_ops): Update.
2390 (linux_get_ipa_tdesc_idx): Turn into ...
2391 (linux_process_target::get_ipa_tdesc_idx): ... this.
2392 * linux-low.h (class linux_process_target): Update.
2393 * lynx-low.cc (lynx_target_ops): Update.
2394 * nto-low.cc (nto_target_ops): Update.
2395 * win32-low.cc (win32_target_ops): Update.
2396
bc8d3ae4
TBA
23972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2398
2399 Turn process_stratum_target's supports_catch_syscall op into a
2400 method of process_target.
2401
2402 * target.h (struct process_stratum_target): Remove the target op.
2403 (class process_target): Add the target op.
2404 (target_supports_catch_syscall): Update the macro.
2405 * target.cc (process_target::supports_catch_syscall): Define.
2406
2407 Update the derived classes and callers below.
2408
2409 * linux-low.cc (linux_target_ops): Update.
2410 (linux_supports_catch_syscall): Turn into ...
2411 (linux_process_target::supports_catch_syscall): ... this.
2412 * linux-low.h (class linux_process_target): Update.
2413 * lynx-low.cc (lynx_target_ops): Update.
2414 * nto-low.cc (nto_target_ops): Update.
2415 * win32-low.cc (win32_target_ops): Update.
2416
5303a34f
TBA
24172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2418
2419 Turn process_stratum_target's supports_software_single_step op
2420 into a method of process_target.
2421
2422 * target.h (struct process_stratum_target): Remove the target op.
2423 (class process_target): Add the target op.
2424 (target_supports_software_single_step): Update the macro.
2425 * target.cc (process_target::supports_software_single_step): Define.
2426
2427 Update the derived classes and callers below.
2428
2429 * linux-low.cc (linux_target_ops): Update.
2430 (linux_supports_software_single_step): Turn into ...
2431 (linux_process_target::supports_software_single_step): ... this.
2432 * linux-low.h (class linux_process_target): Update.
2433 * lynx-low.cc (lynx_target_ops): Update.
2434 * nto-low.cc (nto_target_ops): Update.
2435 * win32-low.cc (win32_target_ops): Update.
2436
7f63b89b
TBA
24372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2438
2439 Turn process_stratum_target's thread_name and thread_handle ops
2440 into methods of process_target.
2441
2442 * target.h (struct process_stratum_target): Remove the target ops.
2443 (class process_target): Add the target ops.
2444 (target_thread_name): Update the macro.
2445 (target_thread_handle): Update the macro.
2446 * target.cc (process_target::thread_name): Define.
2447 (process_target::thread_handle): Define.
2448
2449 Update the derived classes and callers below.
2450
2451 * linux-low.cc (linux_target_ops): Update.
2452 (linux_process_target::thread_name): Define.
2453 (linux_process_target::thread_handle): Define.
2454 * linux-low.h (class linux_process_target): Update.
2455 * lynx-low.cc (lynx_target_ops): Update.
2456 * nto-low.cc (nto_target_ops): Update.
2457 * win32-low.cc (win32_target_ops): Update.
2458
d367006f
TBA
24592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2460
2461 Turn process_stratum_target's breakpoint_kind_from_pc,
2462 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2463 ops into methods of process_target.
2464
2465 * target.h (struct process_stratum_target): Remove the target op.
2466 (class process_target): Add the target op.
2467 (target_breakpoint_kind_from_pc): Update the macro.
2468 (target_breakpoint_kind_from_current_state): Update the macro.
2469 (default_breakpoint_kind_from_pc): Remove declaration.
2470 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2471 (process_target::breakpoint_kind_from_pc): ... this.
2472 (process_target::breakpoint_kind_from_current_state): Define.
2473
2474 Update the derived classes and callers below.
2475
2476 * mem-break.cc (bp_size): Update.
2477 (bp_opcode): Update.
2478 * linux-low.cc (linux_target_ops): Update.
2479 (linux_wait_1): Update.
2480 (linux_breakpoint_kind_from_pc): Turn into ...
2481 (linux_process_target::breakpoint_kind_from_pc): ... this.
2482 (linux_sw_breakpoint_from_kind): Turn into ...
2483 (linux_process_target::sw_breakpoint_from_kind): ... this.
2484 (linux_breakpoint_kind_from_current_state): Turn into ...
2485 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2486 * linux-low.h (class linux_process_target): Update.
2487 * lynx-low.cc (lynx_target_ops): Update.
2488 (lynx_process_target::sw_breakpoint_from_kind): Define.
2489 * lynx-low.h (class lynx_process_target): Update.
2490 * nto-low.cc (nto_target_ops): Update.
2491 (nto_sw_breakpoint_from_kind): Turn into ...
2492 (nto_process_target::sw_breakpoint_from_kind): ... this.
2493 * nto-low.h (class nto_process_target): Update.
2494 * win32-low.cc (win32_target_ops): Update.
2495 (win32_sw_breakpoint_from_kind): Turn into ...
2496 (win32_process_target::sw_breakpoint_from_kind): ... this.
2497 * win32-low.h (class win32_process_target): Update.
2498
c9b7b804
TBA
24992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2500
2501 Turn process_stratum_target's multifs_open, multifs_readlink,
2502 multifs_unlink ops into methods of process_target.
2503
2504 * target.h (struct process_stratum_target): Remove the target ops.
2505 (class process_target): Add the target ops. Also add
2506 'supports_multifs'.
2507 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2508 "sys/stat.h".
2509 (process_target::supports_multifs): Define.
2510 (process_target::multifs_open): Define.
2511 (process_target::multifs_readlink): Define.
2512 (process_target::multifs_unlink): Define.
2513
2514 Update the derived classes and callers below.
2515
2516 * hostio.cc (handle_setfs): Update.
2517 (handle_open): Update.
2518 (handle_unlink): Update.
2519 (handle_readlink): Update.
2520 * linux-low.cc (linux_target_ops): Update.
2521 (linux_process_target::supports_multifs): Define.
2522 (linux_process_target::multifs_open): Define.
2523 (linux_process_target::multifs_readlink): Define.
2524 (linux_process_target::multifs_unlink): Define.
2525 * linux-low.h (class linux_process_target): Update.
2526 * lynx-low.cc (lynx_target_ops): Update.
2527 * nto-low.cc (nto_target_ops): Update.
2528 * win32-low.cc (win32_target_ops): Update.
2529
8247b823
TBA
25302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2531
2532 Turn process_stratum_target's pid_to_exec_file op into a method
2533 of process_target.
2534
2535 * target.h (struct process_stratum_target): Remove the target op.
2536 (class process_target): Add the target op. Also add
2537 'supports_pid_to_exec_file'.
2538 * target.cc (process_target::pid_to_exec_file): Define.
2539 (process_target::supports_pid_to_exec_file): Define.
2540
2541 Update the derived classes and callers below.
2542
2543 * server.cc (handle_qxfer_exec_file): Update.
2544 (handle_query): Update.
2545 * linux-low.cc (linux_target_ops): Update.
2546 (linux_process_target::supports_pid_to_exec_file): Define.
2547 (linux_process_target::pid_to_exec_file): Define.
2548 * linux-low.h (class linux_process_target): Update.
2549 * lynx-low.cc (lynx_target_ops): Update.
2550 * nto-low.cc (nto_target_ops): Update.
2551 * win32-low.cc (win32_target_ops): Update.
2552
2526e0cd
TBA
25532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2554
2555 Turn process_stratum_target's supports_range_stepping op into a
2556 method of process_target.
2557
2558 * target.h (struct process_stratum_target): Remove the target op.
2559 (class process_target): Add the target op.
2560 (target_supports_range_stepping): Update the macro.
2561 * target.cc (process_target::supports_range_stepping): Define.
2562
2563 Update the derived classes and callers below.
2564
2565 * linux-low.cc (linux_target_ops): Update.
2566 (linux_supports_range_stepping): Turn into ...
2567 (linux_process_target::supports_range_stepping): ... this.
2568 * linux-low.h (class linux_process_target): Update.
2569 * lynx-low.cc (lynx_target_ops): Update.
2570 * nto-low.cc (nto_target_ops): Update.
2571 * win32-low.cc (win32_target_ops): Update.
2572
79597bdd
TBA
25732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2574
2575 Turn process_stratum_target's btrace-related ops (enable_btrace,
2576 disable_btrace, read_btrace, read_btrace_conf) into methods of
2577 process_target.
2578
2579 * target.h (struct process_stratum_target): Remove the target ops.
2580 (class process_target): Add the target ops.
2581 (target_enable_btrace): Update.
2582 (target_disable_btrace): Update.
2583 (target_read_btrace): Update.
2584 (target_read_btrace_conf): Update.
2585 * target.cc (process_target::enable_btrace): Define.
2586 (process_target::disable_btrace): Define.
2587 (process_target::read_btrace): Define.
2588 (process_target::read_btrace_conf): Define.
2589
2590 Update the derived classes and callers below.
2591
2592 * linux-low.cc (linux_target_ops): Update.
2593 (linux_process_target:enable_btrace): Define as a wrapper around
2594 linux_enable_btrace.
2595 (linux_low_disable_btrace): Turn into ...
2596 (linux_process_target::disable_btrace): ... this.
2597 (linux_low_read_btrace): Turn into ...
2598 (linux_process_target::read_btrace): ... this.
2599 (linux_low_btrace_conf): Turn into ...
2600 (linux_process_target::read_btrace_conf): ... this.
2601 * linux-low.h (class linux_process_target): Update.
2602 * lynx-low.cc (lynx_target_ops): Update.
2603 * nto-low.cc (nto_target_ops): Update.
2604 * win32-low.cc (win32_target_ops): Update.
2605
c0245cb9
TBA
26062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2607
2608 Turn process_stratum_target's supports_agent op into a method of
2609 process_target.
2610
2611 * target.h (struct process_stratum_target): Remove the target op.
2612 (class process_target): Add the target op.
2613 (target_supports_agent): Update the macro.
2614 * target.cc (process_target::supports_agent): Define.
2615
2616 Update the derived classes and callers below.
2617
2618 * linux-low.cc (linux_target_ops): Update.
2619 (linux_supports_agent): Turn into ...
2620 (linux_process_target::supports_agent): ... this.
2621 * linux-low.h (class linux_process_target): Update.
2622 * lynx-low.cc (lynx_target_ops): Update.
2623 * nto-low.cc (nto_target_ops): Update.
2624 * win32-low.cc (win32_target_ops): Update.
2625
974387bb
TBA
26262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2627
2628 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2629 method of process_target.
2630
2631 * target.h (struct process_stratum_target): Remove the target op.
2632 (class process_target): Add the target op. Also add
2633 'supports_qxfer_libraries_svr4'.
2634 * target.cc (process_target::qxfer_libraries_svr4): Define.
2635 (process_target::supports_qxfer_libraries_svr4): Define.
2636
2637 Update the derived classes and callers below.
2638
2639 * server.cc (handle_qxfer_libraries_svr4): Update.
2640 (handle_query): Update.
2641 * linux-low.cc (linux_target_ops): Update.
2642 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2643 (linux_qxfer_libraries_svr4): Turn into ...
2644 (linux_process_target::qxfer_libraries_svr4): ... this.
2645 * linux-low.h (class linux_process_target): Update.
2646 * lynx-low.cc (lynx_target_ops): Update.
2647 * nto-low.cc (nto_target_ops): Update.
2648 * win32-low.cc (win32_target_ops): Update.
2649
c756403b
TBA
26502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2651
2652 Turn process_stratum_target's supports_disable_randomization op
2653 into a method of process_target.
2654
2655 * target.h (struct process_stratum_target): Remove the target op.
2656 (class process_target): Add the target op.
2657 (target_supports_disable_randomization): Update the macro.
2658 * target.cc (process_target::supports_disable_randomization): Define.
2659
2660 Update the derived classes and callers below.
2661
2662 * linux-low.cc (linux_target_ops): Update.
2663 (linux_supports_disable_randomization): Turn into ...
2664 (linux_process_target::supports_disable_randomization): ... this.
2665 * linux-low.h (class linux_process_target): Update.
2666 * lynx-low.cc (lynx_target_ops): Update.
2667 * nto-low.cc (nto_target_ops): Update.
2668 * win32-low.cc (win32_target_ops): Update.
2669
345dafad
TBA
26702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2671
2672 Turn process_stratum_target's emit_ops op into a method of
2673 process_target.
2674
2675 * target.h (struct process_stratum_target): Remove the target op.
2676 (class process_target): Add the target op.
2677 (target_emit_ops): Update the macro.
2678 * target.cc (process_target::emit_ops): Define.
2679
2680 Update the derived classes and callers below.
2681
2682 * linux-low.cc (linux_target_ops): Update.
2683 (linux_emit_ops): Turn into ...
2684 (linux_process_target::emit_ops): ... this.
2685 * linux-low.h (class linux_process_target): Update.
2686 * lynx-low.cc (lynx_target_ops): Update.
2687 * nto-low.cc (nto_target_ops): Update.
2688 * win32-low.cc (win32_target_ops): Update.
2689
c23c9391
TBA
26902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2691
2692 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2693 and get_min_fast_tracepoint_insn_len ops into methods of
2694 process_target.
2695
2696 * target.h (struct process_stratum_target): Remove the target ops.
2697 (class process_target): Add the target ops. Also add
2698 'supports_fast_tracepoints'.
2699 (target_supports_fast_tracepoints): Update the macro.
2700 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2701 (install_fast_tracepoint_jump_pad): Update and rename the macro
2702 to ...
2703 (target_install_fast_tracepoint_jump_pad): ... this.
2704 * target.cc (process_target::supports_fast_tracepoints): Define.
2705 (process_target::install_fast_tracepoint_jump_pad): Define.
2706 (process_target::get_min_fast_tracepoint_insn_len): Define.
2707
2708 Update the derived classes and callers below.
2709
2710 * tracepoint.cc (install_fast_tracepoint): Update.
2711 * linux-low.cc (linux_target_ops): Update.
2712 (linux_process_target::supports_fast_tracepoints): Define.
2713 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2714 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2715 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2716 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2717 * linux-low.h (class linux_process_target): Update.
2718 * lynx-low.cc (lynx_target_ops): Update.
2719 * nto-low.cc (nto_target_ops): Update.
2720 * win32-low.cc (win32_target_ops): Update.
2721
5c9eb2f2
TBA
27222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2723
2724 Turn process_stratum_target's stabilize_threads op into a
2725 method of process_target.
2726
2727 * target.h (struct process_stratum_target): Remove the target op.
2728 (class process_target): Add the target op.
2729 (target_stabilize_threads): Update the macro.
2730 * target.cc (process_target::stabilize_threads): Define.
2731
2732 Update the derived classes and callers below.
2733
2734 * server.cc (handle_status): Update.
2735 * tracepoint.cc (cmd_qtdp): Update.
2736 (cmd_qtstart): Update.
2737 * linux-low.cc (linux_target_ops): Update.
2738 (linux_stabilize_threads): Turn into ...
2739 (linux_process_target::stabilize_threads): ... this.
2740 (linux_wait_1): Update.
2741 * linux-low.h (class linux_process_target): Update.
2742 * lynx-low.cc (lynx_target_ops): Update.
2743 * nto-low.cc (nto_target_ops): Update.
2744 * win32-low.cc (win32_target_ops): Update.
2745
29e8dc09
TBA
27462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2747
2748 Turn process_stratum_target's pause_all and unpause_all ops
2749 into methods of process_target.
2750
2751 * target.h (struct process_stratum_target): Remove the target ops.
2752 (class process_target): Add the target ops.
2753 (pause_all): Update the macro and rename to...
2754 (target_pause_all): ... this.
2755 (unpause_all): Update the macro and rename to...
2756 (target_unpause_all): ... this.
2757 * target.cc (process_target::pause_all): Define.
2758 (process_target::unpause_all): Define.
2759
2760 Update the derived classes and callers below.
2761
2762 * server.cc (handle_status): Update.
2763 * tracepoint.cc (clear_installed_tracepoints): Update.
2764 (cmd_qtdp): Update.
2765 (cmd_qtstart): Update.
2766 (stop_tracing): Update.
2767 (cmd_qtstatus): Update.
2768 (upload_fast_traceframes): Update.
2769 (run_inferior_command): Update.
2770 * linux-low.cc (linux_target_ops): Update.
2771 (linux_pause_all): Turn into ...
2772 (linux_process_target::pause_all): ... this.
2773 (linux_unpause_all): Turn into ...
2774 (linux_process_target::unpause_all): ... this.
2775 (linux_process_target::prepare_to_access_memory): Update.
2776 (linux_process_target::done_accessing_memory): Update.
2777 * linux-low.h (class linux_process_target): Update.
2778 * lynx-low.cc (lynx_target_ops): Update.
2779 * nto-low.cc (nto_target_ops): Update.
2780 * win32-low.cc (win32_target_ops): Update.
2781
4e2e869c
TBA
27822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2783
2784 Turn process_stratum_target's get_tib_address op into a method of
2785 process_target.
2786
2787 * target.h (struct process_stratum_target): Remove the target op.
2788 (class process_target): Add the target op. Also add
2789 'supports_get_tib_address'.
2790 * target.cc (process_target::get_tib_address): Define.
2791 (process_target::supports_get_tib_address): Define.
2792
2793 Update the derived classes and callers below.
2794
2795 * server.cc (handle_query): Update.
2796 * linux-low.cc (win32_target_ops): Update.
2797 * lynx-low.cc (lynx_target_ops): Update.
2798 * nto-low.cc (nto_target_ops): Update.
2799 * win32-low.cc (win32_target_ops): Update.
2800 (win32_process_target::supports_get_tib_address): Define.
2801 (win32_get_tib_address): Turn into ...
2802 (win32_process_target::get_tib_address): ... this.
2803 * win32-low.h (class win32_process_target): Update.
2804
68119632
TBA
28052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2806
2807 Turn process_stratum_target's thread_stopped op into a method of
2808 process_target.
2809
2810 * target.h (struct process_stratum_target): Remove the target op.
2811 (class process_target): Add the target op. Also add
2812 'supports_thread_stopped'.
2813 (target_thread_stopped): Update the macro.
2814 * target.cc (process_target::thread_stopped): Define.
2815 (process_target::supports_thread_stopped): Define.
2816 (prepare_to_access_memory): Update.
2817
2818 Update the derived classes and callers below.
2819
2820 * server.cc (queue_stop_reply_callback): Update.
2821 * linux-low.cc (linux_target_ops): Update.
2822 (linux_process_target::supports_thread_stopped): Define.
2823 (linux_thread_stopped): Turn into ...
2824 (linux_process_target::thread_stopped): ... this.
2825 * linux-low.h (class linux_process_target): Update.
2826 * lynx-low.cc (lynx_target_ops): Update.
2827 * nto-low.cc (nto_target_ops): Update.
2828 * win32-low.cc (win32_target_ops): Update.
2829
770d8f6a
TBA
28302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2831
2832 Turn process_stratum_target's read_pc and write_pc ops into
2833 methods of process_target.
2834
2835 * target.h (struct process_stratum_target): Remove the target ops.
2836 (class process_target): Add the target ops.
2837 * target.cc (process_target::read_pc): Define.
2838 (process_target::write_pc): Define.
2839
2840 Update the derived classes and callers below.
2841
2842 * regcache.cc (regcache_read_pc): Update.
2843 (regcache_write_pc): Update.
2844 * linux-low.cc (linux_target_ops): Update.
2845 (linux_read_pc): Turn into ...
2846 (linux_process_target::read_pc): ... this.
2847 (linux_write_pc): Turn into ...
2848 (linux_process_target::write_pc): ... this.
2849 * linux-low.h (class linux_process_target): Update.
2850 * lynx-low.cc (lynx_target_ops): Update.
2851 * nto-low.cc (nto_target_ops): Update.
2852 * win32-low.cc (win32_target_ops): Update.
2853
290732bf
TBA
28542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2855
2856 Turn process_stratum_target's supports_tracepoints op into a
2857 method of process_target.
2858
2859 * target.h (struct process_stratum_target): Remove the target op.
2860 (class process_target): Add the target op.
2861 (target_supports_tracepoints): Update the macro.
2862 * target.cc (process_target::supports_tracepoints): Define.
2863
2864 Update the derived classes and callers below.
2865
2866 * linux-low.cc (linux_target_ops): Update.
2867 (linux_supports_tracepoints): Turn into ...
2868 (linux_process_target::supports_tracepoints): ... this.
2869 * linux-low.h (class linux_process_target): Update.
2870 * lynx-low.cc (lynx_target_ops): Update.
2871 * nto-low.cc (nto_target_ops): Update.
2872 * win32-low.cc (win32_target_ops): Update.
2873
0df28b1b
TBA
28742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2875
2876 Turn process_stratum_target's process_qsupported op into a method
2877 of process_target.
2878
2879 * target.h (struct process_stratum_target): Remove the target op.
2880 (class process_target): Add the target op.
2881 (target_process_qsupported): Update the macro.
2882 * target.cc (process_target::process_qsupported): Define.
2883
2884 Update the derived classes and callers below.
2885
2886 * linux-low.cc (linux_target_ops): Update.
2887 (linux_process_qsupported): Turn into ...
2888 (linux_process_target::process_qsupported): ... this.
2889 * linux-low.h (class linux_process_target): Update.
2890 * lynx-low.cc (lynx_target_ops): Update.
2891 * nto-low.cc (nto_target_ops): Update.
2892 * win32-low.cc (win32_target_ops): Update.
2893
9da41fda
TBA
28942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2895
2896 Turn process_stratum_target's read_loadmap op into a method of
2897 process_target.
2898
2899 * target.h (struct process_stratum_target): Remove the target op.
2900 (class process_target): Add the target op. Also add
2901 'supports_read_loadmap'.
2902 * target.cc (process_target::read_loadmap): Define.
2903 (process_target::supports_read_loadmap): Define.
2904
2905 Update the derived classes and callers below.
2906
2907 * server.cc (handle_qxfer_fdpic): Update.
2908 (handle_query): Update.
2909 * linux-low.cc (linux_target_ops): Update.
2910 (linux_process_target::supports_read_loadmap): Define.
2911 (linux_read_loadmap): Turn into ...
2912 (linux_process_target::read_loadmap): ... this.
2913 * linux-low.h (class linux_process_target): Update.
2914 * lynx-low.cc (lynx_target_ops): Update.
2915 * nto-low.cc (nto_target_ops): Update.
2916 * win32-low.cc (win32_target_ops): Update.
2917
95a45fc1
TBA
29182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2919
2920 Turn process_stratum_target's core_of_thread op into a method of
2921 process_target.
2922
2923 * target.h (struct process_stratum_target): Remove the target op.
2924 (class process_target): Add the target op.
2925 (target_core_of_thread): Update the macro.
2926 * target.cc (process_target::core_of_thread): Define.
2927
2928 Update the derived classes and callers below.
2929
2930 * linux-low.cc (linux_target_ops): Update.
2931 (linux_process_target::core_of_thread): Define.
2932 * linux-low.h (class linux_process_target): Update.
2933 * lynx-low.cc (lynx_target_ops): Update.
2934 * nto-low.cc (nto_target_ops): Update.
2935 * win32-low.cc (win32_target_ops): Update.
2936
55cf3021
TBA
29372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2938
2939 Turn process_stratum_target's handle_monitor_command op into a
2940 method of process_target.
2941
2942 * target.h (struct process_stratum_target): Remove the target op.
2943 (class process_target): Add the target op.
2944 (target_handle_monitor_command): Update the macro.
2945 * target.cc (process_target::handle_monitor_command): Define.
2946
2947 Update the derived classes and callers below.
2948
2949 * server.cc (handle_query): Update.
2950 * linux-low.cc (linux_target_ops): Update.
2951 (linux_process_target::handle_monitor_command): Define.
2952 * linux-low.h (class linux_process_target): Update.
2953 * lynx-low.cc (lynx_target_ops): Update.
2954 * nto-low.cc (nto_target_ops): Update.
2955 * win32-low.cc (win32_target_ops): Update.
2956
fb00dfce
TBA
29572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2958
2959 Turn process_stratum_target's handle_new_gdb_connection op into a
2960 method of process_target.
2961
2962 * target.h (struct process_stratum_target): Remove the target op.
2963 (class process_target): Add the target op.
2964 (target_handle_new_gdb_connection): Update the macro.
2965 * target.cc (process_target::handle_new_gdb_connection): Define.
2966
2967 Update the derived classes and callers below.
2968
2969 * linux-low.cc (linux_target_ops): Update.
2970 (linux_handle_new_gdb_connection): Turn into ...
2971 (linux_process_target::handle_new_gdb_connection): ... this.
2972 * linux-low.h (class linux_process_target): Update.
2973 * lynx-low.cc (lynx_target_ops): Update.
2974 * nto-low.cc (nto_target_ops): Update.
2975 * win32-low.cc (win32_target_ops): Update.
2976
9690a72a
TBA
29772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2978
2979 Turn process_stratum_target's supports_fork_events,
2980 supports_vfork_events, and supports_exec_events ops into methods
2981 of process_target.
2982
2983 * target.h (struct process_stratum_target): Remove the target ops.
2984 (class process_target): Add the target ops.
2985 (target_supports_fork_events): Update the macro.
2986 (target_supports_vfork_events): Update the macro.
2987 (target_supports_exec_events): Update the macro.
2988 * target.cc (process_target::supports_fork_events): Define.
2989 (process_target::supports_vfork_events): Define.
2990 (process_target::supports_exec_events): Define.
2991
2992 Update the derived classes and callers below.
2993
2994 * linux-low.cc (linux_target_ops): Update.
2995 (linux_supports_fork_events): Turn into ...
2996 (linux_process_target::supports_fork_events): ... this.
2997 (linux_supports_vfork_events): Turn into ...
2998 (linux_process_target::supports_vfork_events): ... this.
2999 (linux_supports_exec_events): Turn into ...
3000 (linux_process_target::supports_exec_events): ... this.
3001 * linux-low.h (class linux_process_target): Update.
3002 * lynx-low.cc (lynx_target_ops): Update.
3003 * nto-low.cc (nto_target_ops): Update.
3004 * win32-low.cc (win32_target_ops): Update.
3005
652aef77
TBA
30062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3007
3008 Turn process_stratum_target's supports_multi_process op into a
3009 method of process_target.
3010
3011 * target.h (struct process_stratum_target): Remove the target op.
3012 (class process_target): Add the target op.
3013 * target.cc (process_target::supports_multi_process): Define.
3014 (target_supports_multi_process): Update.
3015
3016 Update the derived classes and callers below.
3017
3018 * linux-low.cc (linux_target_ops): Update.
3019 (linux_supports_multi_process): Turn into ...
3020 (linux_process_target::supports_multi_process): ... this.
3021 * linux-low.h (class linux_process_target): Update.
3022 * lynx-low.cc (lynx_target_ops): Update.
3023 * nto-low.cc (nto_target_ops): Update.
3024 * win32-low.cc (win32_target_ops): Update.
3025
0dc587d4
TBA
30262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3027
3028 Turn process_stratum_target's supports_non_stop, async, and
3029 start_non_stop ops into methods of process_target.
3030
3031 * target.h (struct process_stratum_target): Remove the target ops.
3032 (class process_target): Add the target ops.
3033 (target_supports_non_stop): Update the macro.
3034 (target_async): Update the macro.
3035 (start_non_stop): Remove declaration.
3036 * target.cc (process_target::supports_non_stop): Define.
3037 (process_target::async): Define.
3038 (process_target::start_non_stop): Define.
3039 (start_non_stop): Remove.
3040
3041 Update the derived classes and callers below.
3042
3043 * server.cc (handle_qxfer_siginfo): Update.
3044 (handle_query): Update.
3045 * linux-low.cc (linux_target_ops): Update.
3046 (linux_supports_non_stop): Turn into ...
3047 (linux_process_target::supports_non_stop): ... this.
3048 (linux_async): Turn into ...
3049 (linux_process_target::async): ... this.
3050 (linux_start_non_stop): Turn into ...
3051 (linux_process_target::start_non_stop): ... this.
3052 * linux-low.h (class linux_process_target): Update.
3053 * lynx-low.cc (lynx_target_ops): Update.
3054 * nto-low.cc (nto_target_ops): Update.
3055 (nto_supports_non_stop): Remove; rely on the default behavior
3056 instead.
3057 * win32-low.cc (win32_target_ops): Update.
3058
d7abedf7
TBA
30592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3060
3061 Turn process_stratum_target's qxfer_siginfo op into a method of
3062 process_target.
3063
3064 * target.h (struct process_stratum_target): Remove the target op.
3065 (class process_target): Add the target op. Also add
3066 'supports_qxfer_siginfo'.
3067 * target.cc (process_target::qxfer_siginfo): Define.
3068 (process_target::supports_qxfer_siginfo): Define.
3069
3070 Update the derived classes and callers below.
3071
3072 * server.cc (handle_qxfer_siginfo): Update.
3073 (handle_query): Update.
3074 * linux-low.cc (linux_target_ops): Update.
3075 (linux_process_target::supports_qxfer_siginfo): Define.
3076 (linux_xfer_siginfo): Turn into ...
3077 (linux_process_target::qxfer_siginfo): ... this.
3078 * linux-low.h (class linux_process_target): Update.
3079 * lynx-low.cc (lynx_target_ops): Update.
3080 * nto-low.cc (nto_target_ops): Update.
3081 * win32-low.cc (win32_target_ops): Update.
3082
2d0795ee
TBA
30832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3084
3085 Turn process_stratum_target's qxfer_osdata op into a method of
3086 process_target.
3087
3088 * target.h (struct process_stratum_target): Remove the target op.
3089 (class process_target): Add the target op. Also add
3090 'supports_qxfer_osdata'.
3091 * target.cc (process_target::qxfer_osdata): Define.
3092 (process_target::supports_qxfer_osdata): Define.
3093
3094 Update the derived classes and callers below.
3095
3096 * server.cc (handle_qxfer_osdata): Update.
3097 (handle_query): Update.
3098 * linux-low.cc (linux_target_ops): Update.
3099 (linux_process_target::supports_qxfer_osdata): Define.
3100 (linux_qxfer_osdata): Turn into ...
3101 (linux_process_target::qxfer_osdata): ... this.
3102 * linux-low.h (class linux_process_target): Update.
3103 * lynx-low.cc (lynx_target_ops): Update.
3104 * nto-low.cc (nto_target_ops): Update.
3105 * win32-low.cc (win32_target_ops): Update.
3106
ea06bbaa
TBA
31072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3108
3109 Turn process_stratum_target's hostio_last_error op into a
3110 method of process_target.
3111
3112 * target.h (struct process_stratum_target): Remove the target op.
3113 (class process_target): Add the target op.
3114 * target.cc: Add "hostio.h" to includes.
3115 (process_target::hostio_last_error): Define.
3116
3117 Update the derived classes and callers below.
3118
3119 * hostio.cc (hostio_error): Update.
3120 * linux-low.cc: Remove "hostio.h" from includes.
3121 (linux_target_ops): Update.
3122 * lynx-low.cc (lynx_target_ops): Update.
3123 * nto-low.cc (nto_target_ops): Update.
3124 * win32-low.h (class win32_process_target): Update.
3125 * win32-low.cc (win32_target_ops): Update.
3126 (wince_hostio_last_error): Turn into ...
3127 (win32_process_target::hostio_last_error): ... this.
3128
6e3fd7e9
TBA
31292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3130
3131 Turn process_stratum_target's get_tls_address op into a method of
3132 process_target.
3133
3134 * target.h (struct process_stratum_target): Remove the target op.
3135 (class process_target): Add the target op. Also add
3136 'supports_get_tls_address'.
3137 * target.cc (process_target::get_tls_address): Define.
3138 (process_target::supports_get_tls_address): Define.
3139
3140 Update the derived classes and callers below.
3141
3142 * server.cc (handle_query): Update.
3143 * linux-low.cc (linux_target_ops): Update.
3144 (linux_process_target::supports_get_tls_address): Define.
3145 (linux_process_target::get_tls_address): Define.
3146 * linux-low.h (class linux_process_target): Update.
3147 * lynx-low.cc (lynx_target_ops): Update.
3148 * nto-low.cc (nto_target_ops): Update.
3149 * win32-low.cc (win32_target_ops): Update.
3150
5203ae1e
TBA
31512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3152
3153 Turn process_stratum_target's read_offsets op into a method of
3154 process_target.
3155
3156 * target.h (struct process_stratum_target): Remove the target op.
3157 (class process_target): Add the target op. Also add
3158 'supports_read_offsets'.
3159 * target.cc (process_target::read_offsets): Define.
3160 (process_target::supports_read_offsets): Define.
3161
3162 Update the derived classes and callers below.
3163
3164 * server.cc (handle_query): Update.
3165 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3166 (linux_target_ops): Update.
3167 (linux_process_target::supports_read_offsets): Define.
3168 (linux_read_offsets): Turn into ...
3169 (linux_process_target::read_offsets): ... this.
3170 * linux-low.h (class linux_process_target): Update.
3171 * lynx-low.cc (lynx_target_ops): Update.
3172 * nto-low.cc (nto_target_ops): Update.
3173 * win32-low.cc (win32_target_ops): Update.
3174
6eeb5c55
TBA
31752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3176
3177 Turn process_stratum_target's stopped_by_watchpoint and
3178 stopped_data_address ops into methods of process_target.
3179
3180 * target.h (struct process_stratum_target): Remove the target ops.
3181 (class process_target): Add the target ops.
3182 * target.cc (process_target::stopped_by_watchpoint): Define.
3183 (process_target::stopped_data_address): Define.
3184
3185 Update the derived classes and callers below.
3186
3187 * remote-utils.cc (prepare_resume_reply): Update.
3188 * linux-low.cc (linux_target_ops): Update.
3189 (linux_stopped_by_watchpoint): Turn into ...
3190 (linux_process_target::stopped_by_watchpoint): ... this.
3191 (linux_stopped_data_address): Turn into ...
3192 (linux_process_target::stopped_data_address): ... this.
3193 * linux-low.h (class linux_process_target): Update.
3194 * lynx-low.cc (lynx_target_ops): Update.
3195 * nto-low.cc (nto_target_ops): Update.
3196 (nto_stopped_by_watchpoint): Turn into ...
3197 (nto_process_target::stopped_by_watchpoint): ... this.
3198 (nto_stopped_data_address): Turn into ...
3199 (nto_process_target::stopped_data_address): ... this.
3200 * nto-low.h (class nto_process_target): Update.
3201 * win32-low.cc (win32_target_ops): Update.
3202 (win32_stopped_by_watchpoint): Turn into ...
3203 (win32_process_target::stopped_by_watchpoint): ... this.
3204 (win32_stopped_data_address): Turn into ...
3205 (win32_process_target::stopped_data_address): ... this.
3206 * win32-low.h (class win32_process_target): Update.
3207
22aa6223
TBA
32082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3209
3210 Turn process_stratum_target's supports_hardware_single_step op into
3211 a method of process_target.
3212
3213 * target.h (struct process_stratum_target): Remove the target op.
3214 (class process_target): Add the target op.
3215 (target_supports_hardware_single_step): Update the macro.
3216 (target_can_do_hardware_single_step): Remove declaration.
3217 * target.cc (process_target::supports_hardware_single_step): Define.
3218 (target_can_do_hardware_single_step): Remove.
3219
3220 Update the derived classes and callers below.
3221
3222 * linux-low.h (class linux_process_target): Update.
3223 * linux-low.cc (linux_target_ops): Update.
3224 (linux_supports_hardware_single_step): Turn into ...
3225 (linux_process_target::supports_hardware_single_step): ... this.
3226 * lynx-low.h (class lynx_process_target): Update.
3227 * lynx-low.cc (lynx_target_ops): Update.
3228 (lynx_process_target::supports_hardware_single_step): Define.
3229 * nto-low.h (class nto_process_target): Update.
3230 * nto-low.cc (nto_target_ops): Update.
3231 (nto_process_target::supports_hardware_single_step): Define.
3232 * win32-low.h (class win32_process_target): Update.
3233 * win32-low.cc (win32_target_ops): Update.
3234 (win32_process_target::supports_hardware_single_step): Define.
3235
93fe88b2
TBA
32362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3237
3238 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3239 ops into methods of process_target.
3240
3241 * target.h (struct process_stratum_target): Remove the target ops.
3242 (class process_target): Add the target ops.
3243 (target_stopped_by_hw_breakpoint): Update the macro.
3244 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3245 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3246 (process_target::supports_stopped_by_hw_breakpoint): Define.
3247
3248 Update the derived classes and callers below.
3249
3250 * linux-low.cc (linux_target_ops): Update.
3251 (linux_stopped_by_hw_breakpoint): Turn into ...
3252 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3253 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3254 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3255 * linux-low.h (class linux_process_target): Update.
3256 * lynx-low.cc (lynx_target_ops): Update.
3257 * nto-low.cc (nto_target_ops): Update.
3258 * win32-low.cc (win32_target_ops): Update.
3259
84320c4e
TBA
32602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3261
3262 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3263 ops into methods of process_target.
3264
3265 * target.h (struct process_stratum_target): Remove the target ops.
3266 (class process_target): Add the target ops.
3267 (target_stopped_by_sw_breakpoint): Update the macro.
3268 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3269 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3270 (process_target::supports_stopped_by_sw_breakpoint): Define.
3271
3272 Update the derived classes and callers below.
3273
3274 * linux-low.cc (linux_target_ops): Update.
3275 (linux_stopped_by_sw_breakpoint): Turn into ...
3276 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3277 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3278 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3279 * linux-low.h (class linux_process_target): Update.
3280 * lynx-low.cc (lynx_target_ops): Update.
3281 * nto-low.cc (nto_target_ops): Update.
3282 * win32-low.cc (win32_target_ops): Update.
3283
7e0bde70
TBA
32842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3285
3286 Turn process_stratum_target's insert_point and remove_point ops
3287 into methods of process_target.
3288
3289 * target.h (struct process_stratum_target): Remove the target ops.
3290 (class process_target): Add the target ops.
3291 * target.cc (process_target::insert_point): Define.
3292 (process_target::remove_point): Define.
3293
3294 Update the derived classes and callers below.
3295
3296 * mem-break.cc (set_raw_breakpoint_at): Update.
3297 (delete_raw_breakpoint): Update.
3298 (uninsert_raw_breakpoint): Update.
3299 (reinsert_raw_breakpoint): Update.
3300 * linux-low.cc (linux_target_ops): Update.
3301 (linux_insert_point): Turn into ...
3302 (linux_process_target::insert_point): ... this.
3303 (linux_remove_point): Turn into ...
3304 (linux_process_target::remove_point): ... this.
3305 * linux-low.h (class linux_process_target): Update.
3306 * lynx-low.cc (lynx_target_ops): Update.
3307 * nto-low.cc (nto_target_ops): Update.
3308 (nto_insert_point): Turn into ...
3309 (nto_process_target::insert_point): ... this.
3310 (nto_remove_point): Turn into ...
3311 (nto_process_target::remove_point): ... this.
3312 * nto-low.h (class nto_process_target): Update.
3313 * win32-low.cc (win32_target_ops): Update.
3314 (win32_insert_point): Turn into ...
3315 (win32_process_target::insert_point): ... this.
3316 (win32_remove_point): Turn into ...
3317 (win32_process_target::remove_point): ... this.
3318 * win32-low.h (class win32_process_target): Update.
3319
a2b2297a
TBA
33202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3321
3322 Turn process_stratum_target's supports_z_point_type op into a
3323 method of process_target.
3324
3325 * target.h (struct process_stratum_target): Remove the target op.
3326 (class process_target): Add the target op.
3327 * target.cc (process_target::supports_z_point_type): Define.
3328
3329 Update the derived classes and callers below.
3330
3331 * mem-break.cc (z_type_supported): Update.
3332 * linux-low.cc (linux_target_ops): Update.
3333 (linux_supports_z_point_type): Turn into ...
3334 (linux_process_target::supports_z_point_type): ... this.
3335 * linux-low.h (class linux_process_target): Update.
3336 * lynx-low.cc (lynx_target_ops): Update.
3337 * nto-low.cc (nto_target_ops): Update.
3338 (nto_supports_z_point_type): Turn into ...
3339 (nto_process_target::supports_z_point_type): ... this.
3340 * nto-low.h (class nto_process_target): Update.
3341 * win32-low.cc (win32_target_ops): Update.
3342 (win32_supports_z_point_type): Turn into ...
3343 (win32_process_target::supports_z_point_type): ... this.
3344 * win32-low.h (class win32_process_target): Update.
3345
eac215cc
TBA
33462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3347
3348 Turn process_stratum_target's read_auxv op into a method of
3349 process_target.
3350
3351 * target.h (class process_stratum_target): Remove the target op.
3352 (struct process_target): Add the target op. Also add
3353 'supports_read_auxv'.
3354 * target.cc (process_target::read_auxv): Define.
3355 (process_target::supports_read_auxv): Define.
3356
3357 Update the derived classes and callers below.
3358
3359 * server.cc (handle_qxfer_auxv): Update.
3360 (handle_query): Update.
3361 * linux-low.cc (linux_target_ops): Update.
3362 (linux_process_target::supports_read_auxv): Define.
3363 (linux_read_auxv): Turn into ...
3364 (linux_process_target::read_auxv): ... this.
3365 * linux-low.h (class linux_process_target): Update.
3366 * lynx-low.cc (lynx_target_ops): Update.
3367 * nto-low.cc (nto_target_ops): Update.
3368 (nto_process_target::supports_read_auxv): Define.
3369 (nto_read_auxv): Turn into ...
3370 (nto_process_target::read_auxv): ... this.
3371 * nto-low.h (class nto_process_target): Update.
3372 * win32-low.cc (win32_target_ops): Update.
3373
eb497a2a
TBA
33742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3375
3376 Turn process_stratum_target's request_interrupt op into a method of
3377 process_target.
3378
3379 * target.h (struct process_stratum_target): Remove the target op.
3380 (class process_target): Add the target op.
3381
3382 Update the derived classes and callers below.
3383
3384 * remote-utils.cc (putpkt_binary_1): Update.
3385 (input_interrupt): Update.
3386 (getpkt): Update.
3387 * server.cc (handle_v_requests): Update.
3388 * linux-low.cc (linux_target_ops): Update.
3389 (linux_request_interrupt): Turn into ...
3390 (linux_process_target::request_interrupt): ... this.
3391 * linux-low.h (class linux_process_target): Update.
3392 * lynx-low.cc (lynx_target_ops): Update.
3393 (lynx_request_interrupt): Turn into ...
3394 (lynx_process_target::request_interrupt): ... this.
3395 * lynx-low.h (class lynx_process_target): Update.
3396 * nto-low.cc (nto_target_ops): Update.
3397 (nto_request_interrupt): Turn into ...
3398 (nto_process_target::request_interrupt): ... this.
3399 * nto-low.h (class nto_process_target): Update.
3400 * win32-low.cc (win32_target_ops): Update.
3401 (win32_request_interrupt): Turn into ...
3402 (win32_process_target::request_interrupt): ... this.
3403 * win32-low.h (class win32_process_target): Update.
3404
2a31c7aa
TBA
34052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3406
3407 Turn process_stratum_target's look_up_symbols op into a method of
3408 process_target.
3409
3410 * target.h (struct process_stratum_target): Remove the target op.
3411 (class process_target): Add the target op.
3412 * target.cc (process_target::look_up_symbols): Define.
3413
3414 Update the derived classes and callers below.
3415
3416 * server.cc (handle_query): Update.
3417 * linux-low.cc (linux_target_ops): Update.
3418 (linux_look_up_symbols): Turn into ...
3419 (linux_process_target::look_up_symbols): ... this.
3420 * linux-low.h (class linux_process_target): Update.
3421 * lynx-low.cc (lynx_target_ops): Update.
3422 * nto-low.cc (nto_target_ops): Update.
3423 * win32-low.cc (win32_target_ops): Update.
3424
e2558df3
TBA
34252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3426
3427 Turn process_stratum_target's read_memory and write_memory
3428 ops into methods of process_target.
3429
3430 * target.h (struct process_stratum_target): Remove the target ops.
3431 (class process_target): Add the target ops.
3432
3433 Update the derived classes and callers below.
3434
3435 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3436 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3437 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3438 (arm_get_syscall_trapinfo): Update.
3439 * linux-cris-low.cc (cris_breakpoint_at): Update.
3440 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3441 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3442 * linux-mips-low.cc (mips_breakpoint_at): Update.
3443 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3444 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3445 * linux-sh-low.cc (sh_breakpoint_at): Update.
3446 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3447 (sparc_store_gregset_from_stack): Update.
3448 (sparc_breakpoint_at): Update.
3449 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3450 * linux-tile-low.cc (tile_breakpoint_at): Update.
3451 * linux-x86-low.cc (x86_breakpoint_at): Update.
3452 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3453 * mem-brea.cc (insert_memory_breakpoint): Update.
3454 (validate_inserted_breakpoint): Update.
3455 * target.cc (read_inferior_memory): Update.
3456 (target_write_memory): Update.
3457 * linux-low.cc (linux_target_ops): Update.
3458 (linux_read_memory): Make a wrapper around the read_memory target
3459 op call.
3460 (linux_process_target::read_memory): Rename from linux_read_memory.
3461 (linux_write_memory): Turn into ...
3462 (linux_process_target::write_memory): ... this.
3463 * linux-low.h (class linux_process_target): Update.
3464 * lynx-low.cc (lynx_target_ops): Update.
3465 (lynx_read_memory): Turn into ...
3466 (lynx_process_target::read_memory): ... this.
3467 (lynx_write_memory): Turn into ...
3468 (lynx_process_target::write_memory): ... this.
3469 * lynx-low.h (class lynx_process_target): Update.
3470 * nto-low.cc (nto_target_ops): Update.
3471 (nto_read_memory): Turn into ...
3472 (nto_process_target::read_memory): ... this.
3473 (nto_write_memory): Turn into ...
3474 (nto_process_target::write_memory): ... this.
3475 * nto-low.h (class nto_process_target): Update.
3476 * win32-low.cc (win32_target_ops): Update.
3477 (win32_read_inferior_memory): Turn into ...
3478 (win32_process_target::read_memory): ... this.
3479 (win32_write_inferior_memory): Turn into ...
3480 (win32_process_target::write_memory): ... this.
3481 * win32-low.h (class win32_process_target): Update.
3482
79b44087
TBA
34832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3484
3485 Turn process_stratum_target's prepare_to_access_memory and
3486 done_accessing_memory ops into methods of process_target.
3487
3488 * target.h (struct process_stratum_target): Remove the target ops.
3489 (class process_target): Add the target ops.
3490 * target.cc (process_target::prepare_to_access_memory): Define.
3491 (process_target::done_accessing_memory): Define.
3492 (prepare_to_access_memory): Update.
3493 (done_accessing_memory): Update.
3494
3495 Update the derived classes and callers below.
3496
3497 * linux-low.cc (linux_target_ops): Update.
3498 (linux_prepare_to_access_memory): Turn into ...
3499 (linux_process_target::prepare_to_access_memory): ... this.
3500 (linux_done_accessing_memory): Turn into ...
3501 (linux_process_target::done_accessing_memory): ... this.
3502 * linux-low.h (class linux_process_target): Update.
3503 * lynx-low.cc (lynx_target_ops): Update.
3504 * nto-low.cc (nto_target_ops): Update.
3505 * win32-low.cc (win32_target_ops): Update.
3506
a5a4d4cd
TBA
35072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3508
3509 Turn process_stratum_target's fetch_registers and store_registers
3510 ops into methods of process_target.
3511
3512 * target.h (struct process_stratum_target): Remove the target ops.
3513 (class process_target): Add the target ops.
3514 (fetch_inferior_registers): Update the macro.
3515 (store_inferior_registers): Update the macro.
3516
3517 Update the derived classes and callers below.
3518
3519 * linux-low.cc (linux_target_ops): Update.
3520 (linux_fetch_registers): Turn into ...
3521 (linux_process_target::fetch_registers): ... this.
3522 (linux_store_registers): Turn into ...
3523 (linux_process_target::store_registers): ... this.
3524 * linux-low.h (class linux_process_target): Update.
3525 * lynx-low.cc (lynx_target_ops): Update.
3526 (lynx_fetch_registers): Turn into ...
3527 (lynx_process_target::fetch_registers): ... this.
3528 (lynx_store_registers): Turn into ...
3529 (lynx_process_target::store_registers): ... this.
3530 * lynx-low.h (class lynx_process_target): Update.
3531 * nto-low.cc (nto_target_ops): Update.
3532 (nto_fetch_registers): Turn into ...
3533 (nto_process_target::fetch_registers): ... this.
3534 (nto_store_registers): Turn into ...
3535 (nto_process_target::store_registers): ... this.
3536 * nto-low.h (class nto_process_target): Update.
3537 * win32-low.cc (win32_target_ops): Update.
3538 (win32_fetch_inferior_registers): Turn into ...
3539 (win32_process_target::fetch_registers): ... this.
3540 (win32_store_inferior_registers): Turn into ...
3541 (win32_process_target::store_registers): ... this.
3542 * win32-low.h (class win32_process_target): Update.
3543
6532e7e3
TBA
35442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3545
3546 Turn process_stratum_target's wait op into a method of
3547 process_target.
3548
3549 * target.h (struct process_stratum_target): Remove the target op.
3550 (class process_target): Add the target op.
3551
3552 Update the derived classes and callers below.
3553
3554 * target.cc (target_wait): Update.
3555 * linux-low.cc (linux_target_ops): Update.
3556 (linux_wait): Turn into ...
3557 (linux_process_target::wait): ... this.
3558 * linux-low.h (class linux_process_target): Update.
3559 * lynx-low.cc (lynx_target_ops): Update.
3560 (lynx_wait): Turn into ...
3561 (lynx_process_target::wait): ... this.
3562 * lynx-low.h (class lynx_process_target): Update.
3563 * nto-low.cc (nto_target_ops): Update.
3564 (nto_wait): Turn into ...
3565 (nto_process_target::wait): ... this.
3566 * nto-low.h (class nto_process_target): Update.
3567 * win32-low.cc (win32_target_ops): Update.
3568 (win32_wait): Turn into ...
3569 (win32_process_target::wait): ... this.
3570 (do_initial_child_stuff): Update.
3571 * win32-low.h (class win32_process_target): Update.
3572
0e4d7e35
TBA
35732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3574
3575 Turn process_stratum_target's resume op into a method of
3576 process_target.
3577
3578 * target.h (struct process_stratum_target): Remove the target op.
3579 (class process_target): Add the target op.
3580
3581 Update the derived classes and callers below.
3582
3583 * server.cc (resume): Update.
3584 * target.cc (target_stop_and_wait): Update.
3585 (target_continue_no_signal): Update.
3586 (target_continue): Update.
3587 * linux-low.cc (linux_target_ops): Update.
3588 (linux_resume): Turn into ...
3589 (linux_process_target::resume): ... this.
3590 * linux-low.h (class linux_process_target): Update.
3591 * lynx-low.cc (lynx_target_ops): Update.
3592 (lynx_resume): Turn into ...
3593 (lynx_process_target::resume): ... this.
3594 * lynx-low.h (class lynx_process_target): Update.
3595 * nto-low.cc (nto_target_ops): Update.
3596 (nto_resume): Turn into ...
3597 (nto_process_target::resume): ... this.
3598 * nto-low.h (class nto_process_target): Update.
3599 * win32-low.cc (win32_target_ops): Update.
3600 (win32_resume): Turn into ...
3601 (win32_process_target::resume): ... this.
3602 (win32_process_target::detach): Update.
3603 (do_initial_child_stuff): Update.
3604 * win32-low.h (class win32_process_target): Update.
3605
13d3d99b
TBA
36062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3607
3608 Turn process_stratum_target's thread_alive op into a method of
3609 process_target.
3610
3611 * target.h (struct process_stratum_target): Remove the target op.
3612 (class process_target): Add the target op.
3613 (mythread_alive): Update the macro.
3614
3615 Update the derived classes and callers below.
3616
3617 * linux-low.cc (linux_target_ops): Update.
3618 (linux_thread_alive): Turn into ...
3619 (linux_process_target::thread_alive): ... this.
3620 (wait_for_sigstop): Update.
3621 * linux-low.h (class linux_process_target): Update.
3622 * lynx-low.cc (lynx_target_ops): Update.
3623 (lynx_thread_alive): Turn into ...
3624 (lynx_process_target::thread_alive): ... this.
3625 * lynx-low.h (class lynx_process_target): Update.
3626 * nto-low.cc (nto_target_ops): Update.
3627 (nto_thread_alive): Turn into ...
3628 (nto_process_target::thread_alive): ... this.
3629 * nto-low.h (class nto_process_target): Update.
3630 * win32-low.cc (win32_target_ops): Update.
3631 (win32_thread_alive): Turn into ...
3632 (win32_process_target::thread_alive): ... this.
3633 * win32-low.h (class win32_process_target): Update.
3634
95a49a39
TBA
36352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3636
3637 Turn process_stratum_target's join op into a method of
3638 process_target.
3639
3640 * target.h (struct process_stratum_target): Remove the target op.
3641 (class process_target): Add the target op.
3642 (join_inferior): Update the macro.
3643
3644 Update the derived classes and callers below.
3645
3646 * linux-low.cc (linux_target_ops): Update.
3647 (linux_join): Turn into ...
3648 (linux_process_target::join): ... this.
3649 * linux-low.h (class linux_process_target): Update.
3650 * lynx-low.cc (lynx_target_ops): Update.
3651 (lynx_join): Turn into ...
3652 (lynx_process_target::join): ... this.
3653 * lynx-low.h (class lynx_process_target): Update.
3654 * nto-low.cc (nto_target_ops): Update.
3655 (nto_process_target::join): Define.
3656 * nto-low.h (class nto_process_target): Update.
3657 * win32-low.cc (win32_target_ops): Update.
3658 (win32_join): Turn into ...
3659 (win32_process_target::join): ... this.
3660 * win32-low.h (class win32_process_target): Update.
3661
8adb37b9
TBA
36622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3663
3664 Turn process_stratum_target's mourn op into a method of
3665 process_target.
3666
3667 * target.h (struct process_stratum_target): Remove the target op.
3668 (class process_target): Add the target op.
3669
3670 Update the derived classes and callers below.
3671
3672 * target.cc (target_mourn_inferior): Update.
3673 * linux-low.cc (linux_target_ops): Update.
3674 (linux_mourn): Turn into ...
3675 (linux_process_target::mourn): ... this.
3676 (handle_extended_wait): Update.
3677 (linux_process_target::kill): Update.
3678 (linux_process_target::detach): Update.
3679 * linux-low.h (class linux_process_target): Update.
3680 * lynx-low.cc (lynx_target_ops): Update.
3681 (lynx_mourn): Turn into ...
3682 (lynx_process_target::mourn): ... this.
3683 * lynx-low.h (class lynx_process_target): Update.
3684 * nto-low.cc (nto_target_ops): Update.
3685 (nto_mourn): Turn into ...
3686 (nto_process_target::mourn): ... this.
3687 * nto-low.h (class nto_process_target): Update.
3688 * win32-low.cc (win32_target_ops): Update.
3689 (win32_mourn): Turn into ...
3690 (win32_process_target::mourn): ... this.
3691 * win32-low.h (class win32_process_target): Update.
3692
9061c9cf
TBA
36932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3694
3695 Turn process_stratum_target's detach op into a method of
3696 process_target.
3697
3698 * target.h (struct process_stratum_target): Remove the target op.
3699 (class process_target): Add the target op.
3700 (detach_inferior): Update the macro.
3701
3702 Update the derived classes and callers below.
3703
3704 * linux-low.cc (linux_target_ops): Update.
3705 (linux_detach): Turn into ...
3706 (linux_process_target::detach): ... this.
3707 * linux-low.h (class linux_process_target): Update.
3708 * lynx-low.cc (lynx_target_ops): Update.
3709 (lynx_detach): Turn into ...
3710 (lynx_process_target::detach): ... this.
3711 * lynx-low.h (class lynx_process_target): Update.
3712 * nto-low.cc (nto_target_ops): Update.
3713 (nto_detach): Turn into ...
3714 (nto_process_target::detach): ... this.
3715 * nto-low.h (class nto_process_target): Update.
3716 * win32-low.cc (win32_target_ops): Update.
3717 (win32_detach): Turn into ...
3718 (win32_process_target::detach): ... this.
3719 * win32-low.h (class win32_process_target): Update.
3720
c6885a57
TBA
37212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3722
3723 Turn process_stratum_target's kill op into a method of
3724 process_target.
3725
3726 * target.h (struct process_stratum_target): Remove the target op.
3727 (class process_target): Add the target op.
3728
3729 Update the derived classes and callers below.
3730
3731 * target.cc (kill_inferior): Update.
3732 * linux-low.cc (linux_target_ops): Update.
3733 (linux_kill): Turn into ...
3734 (linux_process_target::kill): ... this.
3735 * linux-low.h (class linux_process_target): Update.
3736 * lynx-low.cc (lynx_target_ops): Update.
3737 (lynx_kill): Turn into ...
3738 (lynx_process_target::kill): ... this.
3739 * lynx-low.h (class lynx_process_target): Update.
3740 * nto-low.cc (nto_target_ops): Update.
3741 (nto_kill): Turn into ...
3742 (nto_process_target::kill): ... this.
3743 * nto-low.h (class nto_process_target): Update.
3744 * win32-low.cc (win32_target_ops): Update.
3745 (win32_kill): Turn into ...
3746 (win32_process_target::kill): ... this.
3747 * win32-low.h (class win32_process_target): Update.
3748
ef03dad8
TBA
37492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3750
3751 Turn process_stratum_target's attach op into a method of
3752 process_target.
3753
3754 * target.h (struct process_stratum_target): Remove the target op.
3755 (class process_target): Add the target op.
3756 (myattach): Update the macro.
3757
3758 Update the derived classes and callers below.
3759
3760 * linux-low.cc (linux_target_ops): Update.
3761 (linux_attach): Turn into ...
3762 (linux_process_target::attach): ... this.
3763 * linux-low.h (class linux_process_target): Update.
3764 * lynx-low.cc (lynx_target_ops): Update.
3765 (lynx_attach): Turn into ...
3766 (lynx_process_target::attach): ... this.
3767 * lynx-low.h (class lynx_process_target): Update.
3768 * nto-low.cc (nto_target_ops): Update.
3769 (nto_attach): Turn into ...
3770 (nto_process_target::attach): ... this.
3771 * nto-low.h (class nto_process_target): Update.
3772 * win32-low.cc (win32_target_ops): Update.
3773 (win32_attach): Turn into ...
3774 (win32_process_target::attach): ... this.
3775 * win32-low.h (class win32_process_target): Update.
3776
6dee9afb
TBA
37772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3778
3779 Turn process_stratum_target's post_create_inferior op into a method
3780 of process_target.
3781
3782 * target.h (struct process_stratum_target): Remove the target op.
3783 (class process_target): Add the target op.
3784 (target_post_create_inferior): Update the macro.
3785 * target.cc (process_target::post_create_inferior): Define.
3786
3787 Update the derived classes and callers below.
3788
3789 * linux-low.cc (linux_target_ops): Update.
3790 (linux_post_create_inferior): Turn into ...
3791 (linux_process_target::post_create_inferior): ... this.
3792 * linux-low.h (class linux_process_target): Update.
3793 * lynx-low.cc (lynx_target_ops): Update.
3794 * nto-low.cc (nto_target_ops): Update.
3795 * win32-low.cc (win32_target_ops): Update.
3796
15295543
TBA
37972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3798
3799 Turn process_stratum_target's create_inferior op into a method of
3800 process_target.
3801
3802 * target.h (struct process_stratum_target): Remove the target op.
3803 (class process_target): Add the target op.
3804 (create_inferior): Rename the macro to ...
3805 (target_create_inferior): ... this.
3806
3807 Update the derived classes and callers below.
3808
3809 * server.cc (handle_v_run): Update.
3810 (captured_main): Update.
3811 (process_serial_event): Update.
3812 * linux-low.cc (linux_target_ops): Update.
3813 (linux_create_inferior): Turn into ...
3814 (linux_process_target::create_inferior): ... this.
3815 * linux-low.h (class linux_process_target): Update.
3816 * lynx-low.cc (lynx_target_ops): Update.
3817 (lynx_create_inferior): Turn into ...
3818 (lynx_process_target::create_inferior): ... this.
3819 * lynx-low.h (class lynx_process_target): Update.
3820 * nto-low.cc (nto_target_ops): Update.
3821 (nto_create_inferior): Turn into ...
3822 (nto_process_target::create_inferior): ... this.
3823 * nto-low.h (class nto_process_target): Update.
3824 * win32-low.cc (win32_target_ops): Update.
3825 (win32_create_inferior): Turn into ...
3826 (win32_process_target::create_inferior): ... this.
3827 * win32-low.h (class win32_process_target): Update.
3828
5ef9273d
TBA
38292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3830
3831 * target.h (class process_target): New class definition.
3832 (struct process_stratum_target) <pt>: New field with type
3833 'process_target*'.
3834 * linux-low.h (class linux_process_target): Define as a derived
3835 class of 'process_target'.
3836 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3837 as the 'pt' field.
3838 * lynx-low.h (class lynx_process_target): Define as a derived
3839 class of 'process_target'.
3840 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3841 as the 'pt' field.
3842 * nto-low.h (class nto_process_target): Define as a derived
3843 class of 'process_target'.
3844 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3845 as the 'pt' field.
3846 * win32-low.h (class win32_process_target): Define as a derived
3847 class of 'process_target'.
3848 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3849 as the 'pt' field.
3850
9f1528a1
AB
38512020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3852
3853 * configure: Regenerate.
3854
bf84f706
MR
38552020-02-19 Maciej W. Rozycki <macro@wdc.com>
3856 Andrew Burgess <andrew.burgess@embecosm.com>
3857
3858 * linux-riscv-low.cc: New file.
3859 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3860 and nat/riscv-linux-tdesc.c.
3861 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3862 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3863 Define.
3864
1a627e7e
TT
38652020-02-14 Tom Tromey <tom@tromey.com>
3866
3867 * acinclude.m4: Don't include acx_configure_dir.m4.
3868 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3869 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3870 (all, install-only, uninstall, clean-info, clean)
3871 (maintainer-clean): Don't recurse.
3872 (subdir_do, all-lib): Remove.
3873 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3874 (GNULIB_H): Remove.
3875 (generated_files): Update.
3876 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3877 * configure: Rebuild.
3878 * configure.ac: Don't configure gnulib or libiberty.
3879 (GNULIB): Update.
3880
a9b34532
EZ
38812020-02-14 Eli Zaretskii <eliz@gnu.org>
3882
3883 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3884 preparing the command line for CreateProcess.
3885 (win32_create_inferior): Reflect the program name in debugging
3886 output that shows the process and its command line.
3887
feacfcac
SM
38882020-02-13 Simon Marchi <simon.marchi@efficios.com>
3889
3890 * Makefile.in: Rename source files from .c to .cc.
3891 * %.c: Rename to %.cc.
3892 * configure.ac: Rename server.c to server.cc.
3893 * configure: Re-generate.
3894
06b3c5bd
SM
38952020-02-13 Simon Marchi <simon.marchi@efficios.com>
3896
3897 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3898
052793ad
HD
38992020-02-12 Hannes Domani <ssbssa@yahoo.de>
3900
3901 * win32-low.c (win32_create_inferior): Set signal_pid.
3902
f20e3e82
MR
39032020-02-12 Maciej W. Rozycki <macro@wdc.com>
3904 Pedro Alves <palves@redhat.com>
3905
3906 Skip building gdbserver in a cross-configuration.
3907 * configure.srv: Set $gdbserver_host depending on whether $target
3908 is $host. Use $gdbserver_host instead of $host.
3909
8ddd8e0e
SM
39102020-02-11 Simon Marchi <simon.marchi@efficios.com>
3911
3912 * configure: Re-generate.
3913
898e7f60
SM
39142020-02-11 Simon Marchi <simon.marchi@efficios.com>
3915
3916 * configure: Re-generate.
3917
58df732b
SM
39182020-02-11 Simon Marchi <simon.marchi@efficios.com>
3919
3920 * acinclude.m4: Update warning.m4 path.
3921
7928d571
HD
39222020-02-09 Hannes Domani <ssbssa@yahoo.de>
3923
3924 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3925 (handle_exception): Set siginfo_er.
3926 (win32_xfer_siginfo): New function.
3927
919adfe8
TT
39282020-02-07 Tom Tromey <tom@tromey.com>
3929 Pedro Alves <palves@redhat.com>
3930
3931 * README: Update build documentation.
3932 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
3933 host, not target.
3934 * configure.ac: Update paths.
3935 * configure: Rebuild.
3936 * acinclude.m4: Update paths.
3937 * Makefile.in: Update include paths.
3938 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
3939 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
3940 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
3941 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
3942 (%-generated.c): Update paths.
3943 * Move entire directory from ../gdb/gdbserver.
3944
287c844a
MR
39452020-01-29 Maciej W. Rozycki <macro@wdc.com>
3946
3947 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3948
548a204f
PFC
39492020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3950
3951 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
3952 assignment instead of srv_linux_obj.
3953
a2236a08
HD
39542020-01-28 Hannes Domani <ssbssa@yahoo.de>
3955
3956 * server.c (handle_qxfer_libraries): Write segment-address with
3957 paddress.
3958
bdaed379
HD
39592020-01-24 Hannes Domani <ssbssa@yahoo.de>
3960
3961 * Makefile.in (install-strip): New target.
3962 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
3963 * aclocal.m4: Regenerate.
3964 * configure: Regenerate.
3965 * configure.ac: Add AM_PROG_INSTALL_STRIP.
3966
42cd72aa
MR
39672020-01-24 Maciej W. Rozycki <macro@wdc.com>
3968
3969 * Makefile.in (SFILES): Adjust paths to point to real files.
3970 (OBS): Move waitstatus.o to target/waitstatus.o.
3971 (TAGS): Transform paths appropriately.
3972 (%.o): Rename to...
3973 (nat/%.o): ... this pattern rule.
3974 (%.o): Rename to...
3975 (target/%.o): ... this pattern rule.
3976 * configure.srv: Adjust paths throughout to include nat/ prefix
3977 with the revant files.
3978 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
3979 * configure: Regenerate.
3980
42ba50ec
MR
39812020-01-24 Maciej W. Rozycki <macro@wdc.com>
3982
3983 * Makefile.in (TAGS): Remove config files from the recipe.
3984
05ea2a05
TT
39852020-01-14 Tom Tromey <tom@tromey.com>
3986
3987 * configure: Rebuild.
3988 * configure.ac: Remove any checks that were added to common.m4.
3989 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
3990 lib-link.m4.
3991
01027315
TT
39922020-01-14 Tom Tromey <tom@tromey.com>
3993
3994 * server.h: Include config.h.
3995 * gdbreplay.c: Include config.h.
3996 * configure: Rebuild.
3997 * configure.ac: Don't source common.host.
3998 * acinclude.m4: Update path.
3999 * Makefile.in (INCSUPPORT): New variable.
4000 (INCLUDE_CFLAGS): Add INCSUPPORT.
4001 (SFILES): Update paths.
4002 (version-generated.c): Update path to create-version.sh.
4003 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4004
b2ceabe8
TT
40052020-01-14 Tom Tromey <tom@tromey.com>
4006
4007 * configure.ac (LIBS): Use WIN32APILIBS.
4008 (USE_WIN32API): Don't define.
4009 * configure: Rebuild.
4010
25c51f71
TT
40112020-01-14 Tom Tromey <tom@tromey.com>
4012
4013 * configure: Rebuild.
4014
c0bd321d
SM
40152020-01-13 Simon Marchi <simon.marchi@efficios.com>
4016
4017 * Makefile.in (%-generated.c): Remove rule for files from
4018 regformats/i386.
4019
bb564c58
SM
40202020-01-13 Simon Marchi <simon.marchi@efficios.com>
4021
4022 * configure: Re-generate.
4023
6e37c371
SM
40242020-01-13 Simon Marchi <simon.marchi@efficios.com>
4025
4026 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4027 Define to static.
4028 * tracepoint.c (stop_tracing, flush_trace_buffer,
4029 about_to_request_buffer_space, get_trace_state_variable_value,
4030 set_trace_state_variable_value, gdb_collect): Add declaration.
4031
df4a0200
SM
40322020-01-13 Simon Marchi <simon.marchi@efficios.com>
4033
4034 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4035 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4036 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4037 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4038 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4039 static.
4040
89e94ec9
SM
40412020-01-13 Simon Marchi <simon.marchi@efficios.com>
4042
4043 * inferiors.c: Include gdbsupport/common-inferior.h.
4044
2552728a
SM
40452020-01-13 Simon Marchi <simon.marchi@efficios.com>
4046
4047 * hostio-errno.c: Include hostio.h.
4048
4025fa09
SM
40492020-01-13 Simon Marchi <simon.marchi@efficios.com>
4050
4051 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4052 prerequisite.
4053
c0b0a142
SM
40542020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4055
4056 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4057 * linux-arm-tdesc.h: Include arch/arm.h.
4058
bb1183e2
SM
40592020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4060
4061 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4062
f5df0b5f
SM
40632020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4064
4065 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4066 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4067
5b6d1e4f
PA
40682020-01-10 Pedro Alves <palves@redhat.com>
4069
4070 * fork-child.c (post_fork_inferior): Pass target down to
4071 startup_inferior.
4072 * inferiors.c (switch_to_thread): Add process_stratum_target
4073 parameter.
4074 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4075 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4076 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4077 * remote-utils.c (prepare_resume_reply): Pass the target to
4078 switch_to_thread.
4079 * target.c (the_target): Now a process_stratum_target.
4080 (done_accessing_memory): Pass the target to switch_to_thread.
4081 (set_target_ops): Ajust to use process_stratum_target.
4082 * target.h (struct target_ops): Rename to ...
4083 (struct process_stratum_target): ... this.
4084 (the_target, set_target_ops): Adjust.
4085 (prepare_to_access_memory): Adjust comment.
4086 * win32-low.c (child_xfer_memory): Adjust to use
4087 process_stratum_target.
4088 (win32_target_ops): Now a process_stratum_target.
4089
559e7e50
EZ
40902020-01-06 Eli Zaretskii <eliz@gnu.org>
4091 Pedro Alves <palves@redhat.com>
4092
4093 * win32-low.c (get_child_debug_event): Extract the fatal exception
4094 from the exit status and convert to the equivalent Posix signal
4095 number.
4096 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4097 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4098
48189bec
HD
40992020-01-01 Hannes Domani <ssbssa@yahoo.de>
4100
4101 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4102
5dd8bf88
JB
41032020-01-01 Joel Brobecker <brobecker@adacore.com>
4104
4105 * server.c (gdbserver_version): Change copyright year to 2020.
4106 * gdbreplay.c (gdbreplay_version): Likewise.
4107
0ad6b8ee
CB
41082019-12-19 Christian Biesinger <cbiesinger@google.com>
4109
4110 * configure: Regenerate.
4111 * configure.ac: Quote variable arguments of test.
4112
1ee7b812
BE
41132019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4114
4115 * Makefile.in: Fix build with GNU Make 3.81
4116
d9fa87f4
TT
41172019-12-16 Tom Tromey <tromey@adacore.com>
4118
4119 * server.c (get_exec_file): Constify result.
4120
ab7d13f0
CB
41212019-12-10 Christian Biesinger <cbiesinger@google.com>
4122
4123 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4124 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4125 * config.in: Regenerate.
4126 * configure: Regenerate.
4127 * configure.ac: Don't check for strerror.
4128 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4129 Call safe_strerror instead of strerror.
4130 * server.h (strerror): Remove this now-unnecessary declaration.
4131 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4132 strerror.
4133 (gdb_agent_helper_thread): Likewise.
4134 * utils.c (perror_with_name): Likewise.
4135
4da8c3a8
TT
41362019-11-26 Tom Tromey <tom@tromey.com>
4137
4138 * configure, config.in: Rebuild.
4139
21987b9c
TT
41402019-11-26 Tom Tromey <tom@tromey.com>
4141
4142 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4143 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4144 gdb_sigmask.
4145 * configure, config.in: Rebuild.
4146
5e030278
TT
41472019-11-26 Tom Tromey <tom@tromey.com>
4148
4149 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4150 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4151 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4152 * acinclude.m4: Include ax_pthread.m4.
4153 * config.in, configure: Rebuild.
4154
6d91ce9a
CB
41552019-11-26 Christian Biesinger <cbiesinger@google.com>
4156
4157 * debug.c (debug_set_output): Call safe_strerror instead of
4158 strerror.
4159 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4160 (linux_kill_one_lwp): Likewise.
4161 (linux_detach_one_lwp): Likewise.
4162 (linux_wait_for_event_filtered): Likewise.
4163 (store_register): Likewise.
4164 * lynx-low.c (lynx_attach): Likewise.
4165 * mem-break.c (insert_memory_breakpoint): Likewise.
4166 (remove_memory_breakpoint): Likewise.
4167 (delete_fast_tracepoint_jump): Likewise.
4168 (set_fast_tracepoint_jump): Likewise.
4169 (uninsert_fast_tracepoint_jumps_at): Likewise.
4170 (reinsert_fast_tracepoint_jumps_at): Likewise.
4171 * nto-low.c (nto_xfer_memory): Likewise.
4172 (nto_resume): Likewise.
4173
6cdd651f
LM
41742019-11-20 Luis Machado <luis.machado@linaro.org>
4175
4176 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4177 instead of register count.
4178 * tdesc.c (tdesc_contains_feature): New function.
4179 * tdesc.h (tdesc_contains_feature): New prototype.
4180
cd850b40
CB
41812019-11-15 Christian Biesinger <cbiesinger@google.com>
4182
4183 * Makefile.in: Add safe-strerror.c.
4184 * configure: Regenerate.
4185 * configure.ac: Don't source common.host.
4186
5abebf3c
CB
41872019-11-15 Christian Biesinger <cbiesinger@google.com>
4188
4189 * config.in: Regenerate.
4190 * configure: Regenerate.
4191
e06f3d6e
AB
41922019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4193
4194 * ax.c (ax_printf): Handle size_t_arg.
4195
ca3a04f6
CB
41962019-11-06 Christian Biesinger <cbiesinger@google.com>
4197
4198 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4199 * mi/mi-main.c (output_cores): Likewise.
4200 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4201 (linux_xfer_osdata_modules): Likewise.
4202 * remote.c (register_remote_support_xml): Likewise.
4203 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4204 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4205
e48f6033
CB
42062019-11-01 Christian Biesinger <cbiesinger@google.com>
4207
4208 * configure: Regenerate.
4209 * configure.ac: Remove check for strerror_r.
4210
e7e97a2e
CB
42112019-10-31 Christian Biesinger <cbiesinger@google.com>
4212
4213 * config.in: Regenerate.
4214 * configure: Regenerate.
4215 * configure.ac: Also check for strerror_r.
4216
75cafaa6
CB
42172019-10-31 Christian Biesinger <cbiesinger@google.com>
4218
4219 * ax.h (debug_agent): Remove duplicate declaration.
4220
30baf67b
TV
42212019-10-26 Tom de Vries <tdevries@suse.de>
4222
4223 * linux-aarch64-low.c: Fix typos in comments.
4224 * linux-arm-low.c: Same.
4225 * linux-low.c: Same.
4226 * linux-ppc-low.c: Same.
4227 * proc-service.c: Same.
4228 * regcache.h: Same.
4229 * server.c: Same.
4230 * tracepoint.c: Same.
4231 * win32-low.c: Same.
4232
52c64cf7
TT
42332019-10-25 Tom Tromey <tromey@adacore.com>
4234
4235 * utils.c (xstrdup): Remove.
4236
c12d372d
TT
42372019-10-23 Tom Tromey <tom@tromey.com>
4238
4239 * configure, config.in: Rebuild.
4240
4d0b984b
TT
42412019-10-23 Tom Tromey <tom@tromey.com>
4242
4243 * configure: Rebuild.
4244 * acinclude.m4: Use m4_include, not sinclude.
4245
c5adaa19
TT
42462019-10-17 Tom Tromey <tromey@adacore.com>
4247
4248 * configure: Rebuild.
4249 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4250 in AC_CONFIG_FILES invocation.
4251 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4252 invocation.
4253
fec4e896
CB
42542019-10-16 Christian Biesinger <cbiesinger@google.com>
4255
4256 * server.c: Include xml-builtin.h.
4257 (get_xml_features): Don't declare xml_builtins here.
4258
00975ff6
AB
42592019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4260
4261 * Makefile.in: Remove references to vec-ipa.o.
4262
0dc32745
AB
42632019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4264
4265 * Makefile.in: Remove references to vec.c.
4266
3e6ec53a
CB
42672019-10-02 Christian Biesinger <cbiesinger@google.com>
4268
4269 * server.c (server_waiting): Change to bool.
4270 (extended_protocol): Likewise.
4271 (response_needed): Likewise.
4272 (exit_requested): Likewise.
4273 (run_once): Likewise.
4274 (report_no_resumed): Likewise.
4275 (non_stop): Likewise.
4276 (disable_packet_vCont): Likewise.
4277 (disable_packet_Tthread): Likewise.
4278 (disable_packet_qC): Likewise.
4279 (disable_packet_qfThreadInfo): Likewise.
4280 (handle_general_set): Update.
4281 (handle_detach): Update.
4282 (handle_monitor_command): Update.
4283 (handle_query): Update.
4284 (captured_main): Update.
4285 (process_serial_event): Update.
4286 * server.h (server_waiting): Change to bool.
4287 (disable_packet_vCont): Likewise.
4288 (disable_packet_Tthread): Likewise.
4289 (disable_packet_qC): Likewise.
4290 (disable_packet_qfThreadInfo): Likewise.
4291 (run_once): Likewise.
4292 (non_stop): Likewise.
4293 * target.c (target_stop_and_wait): Update.
4294
80fd2826
TT
42952019-10-02 Tom Tromey <tromey@adacore.com>
4296
4297 * Makefile.in (SFILES): Add common-inferior.c.
4298 (OBS): Add common-inferior.o.
4299 * server.c (startup_with_shell): Don't define.
4300
46f29a9a
AB
43012019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4302
4303 * linux-low.c (linux_low_read_btrace): Update for change to
4304 std::vector.
4305
f9d949fb
CB
43062019-09-20 Christian Biesinger <cbiesinger@google.com>
4307
4308 * debug.c (debug_threads): Remove comment in favor of the header.
4309 * debug.h (using_threads): Add declaration.
4310 (debug_threads): Add comment.
4311 * linux-aarch64-low.c: Include debug.h and remove declaration of
4312 debug_threads.
4313 * nto-low.c: Likewise.
4314 * remote-utils.c: Likewise.
4315 * thread-db.c: Likewise.
4316
abf516c6
UW
43172019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4318
4319 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4320 and powerpc-cell64l-ipa.o.
4321 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4322 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4323 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4324 (spu*-*-*): Remove.
4325
4326 * spu-low.c: Remove file.
4327
4328 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4329 (parse_spufs_run): Remove.
4330 (ppc_get_pc): Remove Cell/B.E. support.
4331 (ppc_set_pc): Likewise.
4332 (ppc_breakpoint_at): Likewise.
4333 (ppc_arch_setup): Likewise.
4334 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4335 tdesc_powerpc_cell32l.
4336 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4337 or init_registers_powerpc_cell32l.
4338 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4339 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4340 or init_registers_powerpc_cell32l.
4341 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4342 (init_registers_powerpc_cell32l): Remove prototype.
4343 (init_registers_powerpc_cell64l): Likewise.
4344
4345 * target.h (struct target_ops): Remove qxfer_spu member.
4346 * server.c (handle_qxfer_spu): Remove.
4347 (qxfer_packets): Remove entry for "spu".
4348 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4349 * linux-low.c (SPUFS_MAGIC): Remove.
4350 (spu_enumerate_spu_ids): Remove.
4351 (linux_qxfer_spu): Remove.
4352 (linux_target_ops): Remove qxfer_spu member.
4353 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4354 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4355 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4356
2d41fa11
SDJ
43572019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4358
4359 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4360 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4361 * config.in: Regenerate.
4362 * configure: Regenerate.
4363
d59b55f0
TT
43642019-08-15 Tom Tromey <tromey@adacore.com>
4365
4366 * target.c (target_write_memory): Use gdb::byte_vector.
4367
4196ab2a
TT
43682019-08-15 Tom Tromey <tromey@adacore.com>
4369
4370 * tracepoint.c (write_inferior_data_pointer)
4371 (write_inferior_integer, write_inferior_int8)
4372 (write_inferior_uinteger, m_tracepoint_action_download)
4373 (r_tracepoint_action_download, x_tracepoint_action_download)
4374 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4375 (download_agent_expr, download_tracepoint_1)
4376 (download_trace_state_variables, upload_fast_traceframes): Update.
4377 * server.c (gdb_write_memory): Update.
4378 * remote-utils.c (relocate_instruction): Update.
4379 * proc-service.c (ps_pdwrite): Update.
4380 * mem-break.c (remove_memory_breakpoint)
4381 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4382 (uninsert_fast_tracepoint_jumps_at)
4383 (reinsert_fast_tracepoint_jumps_at): Update.
4384 * linux-x86-low.c (append_insns)
4385 (i386_install_fast_tracepoint_jump_pad)
4386 (amd64_write_goto_address, i386_write_goto_address): Update.
4387 * linux-s390-low.c (append_insns, s390_write_goto_address):
4388 Update.
4389 * linux-ppc-low.c (ppc_relocate_instruction)
4390 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4391 (ppc_write_goto_address): Update.
4392 * linux-aarch64-low.c (append_insns): Update.
4393 * target.h (struct target_ops): Update.
4394 (write_inferior_memory): Don't declare.
4395 * target.c (target_write_memory): Rename from
4396 write_inferior_memory. Remove old target_write_memory.
4397
c6778d00
TT
43982019-08-15 Tom Tromey <tromey@adacore.com>
4399
4400 * target.c (write_inferior_memory): Use std::vector.
4401
404f2902
FCE
44022019-08-06 Frank Ch. Eigler <fche@redhat.com>
4403
4404 PR build/24886
4405 * configure.ac: Drop enable-libmcheck support.
4406 * configure, config.in: Rebuild.
4407 * acinclude.m4: Don't include it.
4408
4c5aa8e0
AH
44092019-07-19 Alan Hayward <alan.hayward@arm.com>
4410
4411 * configure.srv: Remove Arm xml files.
4412
7cc17433
AH
44132019-07-19 Alan Hayward <alan.hayward@arm.com>
4414
4415 * configure.srv: Add new files. Remove xml generated files.
4416 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4417 registers.
4418 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4419 * linux-aarch32-tdesc.c: New file.
4420 * linux-aarch32-tdesc.h: New file.
4421 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4422 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4423 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4424 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4425 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4426 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4427 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4428 (arm_read_description): Call arm_linux_read_description.
4429 (initialize_low_arch): Don't init registers.
4430 * linux-arm-tdesc.c: New file.
4431 * linux-arm-tdesc.h: New file.
4432
166a82be
AH
44332019-07-10 Alan Hayward <alan.hayward@arm.com>
4434
4435 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4436 Move counter inside for.
4437 (arm_read_description): Check ptrace earlier.
4438 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4439
268a13a5
TT
44402019-07-09 Tom Tromey <tom@tromey.com>
4441
4442 * configure: Rebuild.
4443 * configure.ac: Change common to gdbsupport.
4444 * acinclude.m4: Change common to gdbsupport.
4445 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4446 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4447 common to gdbsupport.
4448 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4449 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4450 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4451 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4452 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4453 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4454 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4455 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4456 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4457 common to gdbsupport.
4458
350fab54
AH
44592019-07-04 Alan Hayward <alan.hayward@arm.com>
4460
4461 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4462 defines.
4463 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4464
2b40fda7
AH
44652019-07-04 Alan Hayward <alan.hayward@arm.com>
4466
4467 * configure.srv: Remove legacy xml.
4468 * linux-aarch64-low.c (initialize_low_arch): Remove
4469 initialize_low_tdesc call.
4470 * linux-aarch64-tdesc-selftest.c: Remove file.
4471 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4472 * linux-x86-low.c (initialize_low_arch): Remove
4473 initialize_low_tdesc call.
4474 * linux-x86-tdesc-selftest.c: Remove file.
4475 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4476
7d10623d
TV
44772019-06-20 Tom de Vries <tdevries@suse.de>
4478
4479 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4480 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4481
8d6a48df
TV
44822019-06-19 Tom de Vries <tdevries@suse.de>
4483
4484 * debug.h (debug_write): Change return type to ssize_t.
4485 * debug.c (debug_write): Same.
4486
73cc7272
TT
44872019-06-14 Tom Tromey <tom@tromey.com>
4488
4489 * configure.ac: Use new path to gnulib.
4490 * configure: Rebuild.
4491 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4492 to gnulib.
4493
08f10e02
TT
44942019-06-11 Tom Tromey <tom@tromey.com>
4495
4496 * Makefile.in (SFILES): Add alloc.c.
4497 (OBS): Add alloc.o.
4498 (IPA_OBJS): Add alloc-ipa.o.
4499 (alloc-ipa.o): New target.
4500 (%.o: ../%.c): New pattern rule.
4501
422186a9
TT
45022019-06-10 Tom Tromey <tromey@adacore.com>
4503
4504 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4505 end warning with a newline.
4506 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4507 newline.
4508 * thread-db.c (attach_thread): Don't end warning with a newline.
4509 (thread_db_notice_clone): Likewise.
4510 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4511 newline.
4512 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4513 end warning with a newline.
4514
b02f78f9
PA
45152019-06-04 Pedro Alves <palves@redhat.com>
4516
4517 * server.c (captured_main): Use make_unique_xstrdup.
4518
88ed7edb
TT
45192019-06-02 Tom Tromey <tom@tromey.com>
4520
4521 * gdbreplay.c (fromhex): Remove.
4522 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4523
33a6bc35
TT
45242019-05-29 Tom Tromey <tromey@adacore.com>
4525
4526 * configure: Rebuild.
4527
e90a813d
KB
45282019-05-06 Kevin Buettner <kevinb@redhat.com>
4529
4530 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4531 sign extension code on 32-bit builds.
4532
353ea2d1
EZ
45332019-05-03 Eli Zaretskii <eliz@gnu.org>
4534
4535 * remote-utils.c:
4536 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4537
b494cdff
TT
45382019-04-19 Tom Tromey <tom@tromey.com>
4539
4540 * server.c (struct vstop_notif): Derive from notif_event.
4541 <base>: Remove.
4542 (queue_stop_reply): Update.
4543 (remove_all_on_match_ptid): Change type. Rewrite.
4544 (discard_queued_stop_replies): Rewrite.
4545 (in_queued_stop_replies_ptid): Change type.
4546 (in_queued_stop_replies): Rewrite.
4547 (notif_stop): Update.
4548 (queue_stop_reply_callback): Update.
4549 (captured_main): Don't call initialize_notif.
4550 (push_stop_notification): Update.
4551 * notif.c (notif_write_event, handle_notif_ack)
4552 (notif_event_enque, notif_push): Update.
4553 (notif_event_xfree, initialize_notif): Remove.
4554 * notif.h (struct notif_event): Include <list>, not
4555 "common/queue.h".
4556 (struct notif_server) <queue>: Now a std::list.
4557 (notif_event_p): Remove typedef.
4558 (initialize_notif): Don't declare.
4559 (struct notif_event): Add virtual destructor.
4560
a7e559cc
AH
45612019-04-17 Alan Hayward <alan.hayward@arm.com>
4562
4563 * ax.c (ax_vdebug): Call debug_printf.
4564 * debug.c (debug_write): New function.
4565 * debug.h (debug_write): New declaration.
4566 * linux-low.c (sigchld_handler): Call debug_write.
4567
aeb2e706
AH
45682019-04-17 Alan Hayward <alan.hayward@arm.com>
4569
4570 * debug.c (debug_set_output): New function.
4571 (debug_vprintf): Send output to debug_file.
4572 (debug_flush): Likewise.
4573 * debug.h (debug_set_output): New declaration.
4574 * server.c (handle_monitor_command): Add debug-file option.
4575 (captured_main): Likewise.
4576
c1bc0935
AH
45772019-04-17 Alan Hayward <alan.hayward@arm.com>
4578
4579 * debug.c (remote_debug): Add definition.
4580 * debug.h (remote_debug): Add declaration.
4581 * hostio.c (remote_debug): Remove declaration.
4582 * remote-utils.c (struct ui_file): Likewise.
4583 (remote_debug): Likewise.
4584 * remote-utils.h (remote_debug): Likewise,
4585 * server.c (remote_debug): Remove definition.
4586
3f52fdbc
KB
45872019-04-10 Kevin Buettner <kevinb@redhat.com>
4588
4589 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4590 when using a 64-bit gdbserver.
4591
b0319eaa
TT
45922019-04-09 Tom Tromey <tromey@adacore.com>
4593
4594 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4595
eedc3f4f
TT
45962019-04-08 Tom Tromey <tom@tromey.com>
4597
4598 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4599 throw.
4600 (linux_resume_one_lwp): Likewise.
4601
230d2906
TT
46022019-04-08 Tom Tromey <tom@tromey.com>
4603
4604 * gdbreplay.c: Update.
4605 * linux-low.c: Update.
4606 * server.c: Update.
4607
a70b8144
TT
46082019-04-08 Tom Tromey <tom@tromey.com>
4609
4610 * server.c: Use C++ exception handling.
4611 * linux-low.c: Use C++ exception handling.
4612 * gdbreplay.c: Use C++ exception handling.
4613
3d6e9d23
TT
46142019-04-08 Tom Tromey <tom@tromey.com>
4615
4616 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4617 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4618 (captured_main, main): Update.
4619 * gdbreplay.c (main): Update.
4620
0570503d
PFC
46212019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4622
4623 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4624 value in argument pointer, return 1 if the entry is found and 0
4625 otherwise. Move comment.
4626 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4627 * linux-low.h (linux_get_auxv): Declare.
4628 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4629
227a9e65
TT
46302019-04-05 Tom Tromey <tromey@adacore.com>
4631
4632 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4633 variables.
4634
69f4c9cc
AH
46352019-03-28 Alan Hayward <alan.hayward@arm.com>
4636
4637 * linux-low.c (AT_HWCAP2): Add define if not already included.
4638
974c89e0
AH
46392019-03-26 Alan Hayward <alan.hayward@arm.com>
4640
4641 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4642 (aarch64_arch_setup): Call linux_get_hwcap.
4643 * linux-arm-low.c (arm_get_hwcap): Remove function.
4644 (arm_read_description): Call linux_get_hwcap.
4645 * linux-low.c (linux_get_auxv): New function.
4646 (linux_get_hwcap): Likewise.
4647 (linux_get_hwcap2): Likewise.
4648 * linux-low.h (linux_get_hwcap): New declaration.
4649 (linux_get_hwcap2): Likewise.
4650 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4651 (ppc_arch_setup): Call linux_get_hwcap.
4652 * linux-s390-low.c (s390_get_hwcap): Remove function.
4653 (s390_arch_setup): Call linux_get_hwcap.
4654
1ef53e6b
AH
46552019-03-22 Alan Hayward <alan.hayward@arm.com>
4656 Jiong Wang <jiong.wang@arm.com>
4657
4658 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4659 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4660 to fail.
4661 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4662
ee4fbcfa
AH
46632019-03-22 Alan Hayward <alan.hayward@arm.com>
4664 Jiong Wang <jiong.wang@arm.com>
4665
4666 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4667 (aarch64_get_hwcap): New function.
4668 (aarch64_arch_setup): Read APIA hwcap.
4669
6dc0ebde
AH
46702019-03-22 Alan Hayward <alan.hayward@arm.com>
4671 Jiong Wang <jiong.wang@arm.com>
4672
4673 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4674 (initialize_low_tracepoint): Likewise.
4675 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4676 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4677 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4678 (aarch64_linux_read_description): Likewise.
4679 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4680
1163a4b7
JB
46812019-03-12 John Baldwin <jhb@FreeBSD.org>
4682
4683 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4684 i386_create_target_description for 'segments' parameter.
4685 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4686 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4687 * win32-i386-low.c (i386_arch_setup): Likewise.
4688
d3a70e03
TT
46892019-03-12 Tom Tromey <tromey@adacore.com>
4690
4691 * linux-low.c (iterate_over_lwps): Update.
4692
37991b4f
TT
46932019-03-06 Tom Tromey <tom@tromey.com>
4694
4695 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4696 (captured_main): Use SCOPE_EXIT.
4697
45950eb6
SDJ
46982019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4699
4700 * configure.srv: Use '$enable_unittest' instead of '$development'
4701 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4702 case.
4703
43ac54fc
TT
47042019-02-27 Tom Tromey <tromey@adacore.com>
4705
4706 * gdbreplay.c (logchar): Handle \r\n.
4707
df0da8a2
AH
47082019-02-07 Alan Hayward <alan.hayward@arm.com>
4709
4710 * linux-low.c (linux_attach): Add process before lwp.
4711 * server.c (attach_inferior): Check if already attached.
4712
1a5c2598
TT
47132019-02-07 Tom Tromey <tom@tromey.com>
4714
4715 * x86-tdesc.h: Rename include guard.
4716 * x86-low.h: Add include guard.
4717 * wincecompat.h: Rename include guard.
4718 * win32-low.h: Add include guard.
4719 * utils.h: Rename include guard.
4720 * tracepoint.h: Rename include guard.
4721 * tdesc.h: Rename include guard.
4722 * target.h: Rename include guard.
4723 * server.h: Rename include guard.
4724 * remote-utils.h: Rename include guard.
4725 * regcache.h: Rename include guard.
4726 * nto-low.h: Rename include guard.
4727 * notif.h: Add include guard.
4728 * mem-break.h: Rename include guard.
4729 * lynx-low.h: Add include guard.
4730 * linux-x86-tdesc.h: Add include guard.
4731 * linux-s390-tdesc.h: Add include guard.
4732 * linux-ppc-tdesc-init.h: Add include guard.
4733 * linux-low.h: Add include guard.
4734 * linux-aarch64-tdesc.h: Add include guard.
4735 * linux-aarch32-low.h: Add include guard.
4736 * inferiors.h: Rename include guard.
4737 * i387-fp.h: Rename include guard.
4738 * hostio.h: Rename include guard.
4739 * gdbthread.h: Rename include guard.
4740 * gdb_proc_service.h: Rename include guard.
4741 * event-loop.h: Rename include guard.
4742 * dll.h: Rename include guard.
4743 * debug.h: Rename include guard.
4744 * ax.h: Rename include guard.
4745
956cc47c
SN
47462018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4747
4748 PR gdb/23985
4749 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4750 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4751
a0707f3c
TT
47522019-01-25 Tom Tromey <tom@tromey.com>
4753
4754 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4755
0747795c
TT
47562019-01-25 Tom Tromey <tom@tromey.com>
4757
4758 * win32-low.c: Fix common/ includes.
4759 * win32-i386-low.c: Fix common/ includes.
4760 * tracepoint.c: Fix common/ includes.
4761 * thread-db.c: Fix common/ includes.
4762 * target.h: Fix common/ includes.
4763 * symbol.c: Fix common/ includes.
4764 * spu-low.c: Fix common/ includes.
4765 * server.h: Fix common/ includes.
4766 * server.c: Fix common/ includes.
4767 * remote-utils.c: Fix common/ includes.
4768 * regcache.h: Fix common/ includes.
4769 * regcache.c: Fix common/ includes.
4770 * nto-x86-low.c: Fix common/ includes.
4771 * notif.h: Fix common/ includes.
4772 * mem-break.h: Fix common/ includes.
4773 * lynx-low.c: Fix common/ includes.
4774 * lynx-i386-low.c: Fix common/ includes.
4775 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4776 * linux-x86-low.c: Fix common/ includes.
4777 * linux-low.c: Fix common/ includes.
4778 * inferiors.h: Fix common/ includes.
4779 * i387-fp.c: Fix common/ includes.
4780 * hostio.c: Fix common/ includes.
4781 * hostio-errno.c: Fix common/ includes.
4782 * gdbthread.h: Fix common/ includes.
4783 * gdbreplay.c: Fix common/ includes.
4784 * fork-child.c: Fix common/ includes.
4785 * event-loop.c: Fix common/ includes.
4786 * ax.c:
4787 (enum gdb_agent_op): Fix common/ includes.
4788
be6d4f74
TT
47892019-01-21 Tom Tromey <tom@tromey.com>
4790
4791 * tracepoint.c: Fix includes.
4792 * remote-utils.c: Fix includes.
4793 * linux-x86-low.c: Fix includes.
4794
66d91b39
JB
47952019-01-01 Joel Brobecker <brobecker@adacore.com>
4796
4797 * gdbreplay.c (gdbreplay_version): Update copyright year in
4798 version message.
4799 * server.c (gdbserver_version): Likewise.
4800
754e3168
AH
48012018-12-05 Alan Hayward <alan.hayward@arm.com>
4802
4803 * linux-low.c (add_lwp): Switch ordering.
4804
d105de22
TT
48052018-11-29 Tom Tromey <tom@tromey.com>
4806
4807 * win32-low.c (win32_join): Take pid, not process.
4808 * target.h (struct target_ops) <join>: Change argument type.
4809 (join_inferior): Change argument name.
4810 * spu-low.c (spu_join): Take pid, not process.
4811 * server.c (handle_detach): Preserve pid before destroying
4812 process.
4813 * lynx-low.c (lynx_join): Take pid, not process.
4814 * linux-low.c (linux_join): Take pid, not process.
4815
50138245
AH
48162018-11-23 Alan Hayward <alan.hayward@arm.com>
4817
4818 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4819 (aarch64_cannot_fetch_register): Likewise.
4820 (struct linux_target_ops): Update references.
4821
64f57f3d
PFC
48222018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4823
4824 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4825
8d619c01
EBM
48262018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4827
4828 * configure.srv (ipa_ppc_linux_regobj): Add
4829 powerpc-isa207-htm-vsx32l-ipa.o and
4830 powerpc-isa207-htm-vsx64l-ipa.o.
4831 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4832 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4833 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4834 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4835 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4836 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4837 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4838 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4839 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4840 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4841 (init_registers_powerpc_isa207_htm_vsx32l)
4842 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4843 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4844 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4845 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4846 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4847 (ppc_store_tm_ctarregset): New functions.
4848 (ppc_regsets): Add entries for HTM regsets.
4849 (ppc_arch_setup): Set htm in features struct when needed. Set
4850 sizes for the HTM regsets.
4851 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4852 (initialize_low_arch): Call
4853 init_registers_powerpc_isa207_htm_vsx32l and
4854 init_registers_powerpc_isa207_htm_vsx64l.
4855 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4856 PPC_TDESC_ISA207_HTM_VSX.
4857 (initialize_low_tracepoint): Call
4858 init_registers_powerpc_isa207_htm_vsx32l and
4859 init_registers_powerpc_isa207_htm_vsx64l.
4860
232bfb86
EBM
48612018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4862
4863 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4864 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4865 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4866 (ppc_store_pmuregset): New functions.
4867 (ppc_regsets): Add entries for ebb and pmu regsets.
4868 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4869 pmu regsets are available. Set sizes for these regsets.
4870
f2cf6173
EBM
48712018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4872
4873 * configure.srv (ipa_ppc_linux_regobj): Add
4874 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4875 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4876 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4877 rs6000/powerpc-isa207-vsx32l.xml, and
4878 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4879 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4880 <PPC_TDESC_ISA207_VSX>: New enum value.
4881 (init_registers_powerpc_isa207_vsx32l): Declare.
4882 (init_registers_powerpc_isa207_vsx64l): Declare.
4883 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4884 (ppc_store_tarregset): New function.
4885 (ppc_regsets): Add entry for the TAR regset.
4886 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4887 size for the TAR regsets.
4888 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4889 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4890 and init_registers_powerpc_isa207_vsx64l.
4891 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4892 (initialize_low_tracepoint): Call
4893 init_registers_powerpc_isa207_vsx32l and
4894 init_registers_powerpc_isa207_vsx64l.
4895
7ca18ed6
EBM
48962018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4897 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4898
4899 * configure.srv (ipa_ppc_linux_regobj): Add
4900 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4901 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4902 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4903 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4904 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4905 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4906 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4907 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4908 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4909 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4910 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4911 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4912 (ppc_hwcap): Add comment.
4913 (ppc_hwcap2): New global.
4914 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4915 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4916 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4917 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4918 when needed. Set sizes for the the DSCR and PPR regsets.
4919 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4920 (initialize_low_arch): Call
4921 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4922 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4923 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4924 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4925 (initialize_low_tracepoint): Call
4926 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4927 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4928
5c849b22
PFC
49292018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4930
4931 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4932
8ecfd7bd
SDJ
49332018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4934 Simon Marchi <simark@simark.ca>
4935
4936 * acinclude.m4: Include "../selftest.m4".
4937 * configure: Regenerate.
4938 * configure.ac: Use "GDB_AC_SELFTEST".
4939 * configure.srv: Use "$enable_unittests" instead of
4940 "$development" when checking whether unit tests have been
4941 enabled.
4942 * server.c (captured_main): Update message informing that
4943 selftests have been disabled.
4944
96643e35
TT
49452018-10-04 Tom Tromey <tom@tromey.com>
4946
4947 * configure: Rebuild.
4948
da4ae14a
TT
49492018-10-04 Tom Tromey <tom@tromey.com>
4950
4951 * server.c (handle_status): Rename inner "thread".
4952 (process_serial_event): Declare "res" in 'm' case.
4953 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
4954 (iterate_over_lwps): Rename inner "thread".
4955 (linux_qxfer_libraries_svr4): Rename inner "len".
4956 * gdbthread.h (find_thread_in_random): Rename inner "thread".
4957
7c619dbd
GB
49582018-10-01 Gary Benson <gbenson@redhat.com>
4959
4960 * gdb_proc_service.h: Moved common code to
4961 common/gdb_proc_service.h.
4962
3795e814
GB
49632018-10-01 Gary Benson <gbenson@redhat.com>
4964
4965 * gdb_proc_service.h: Synchronize comments and whitespace with
4966 GDB's version of this file.
4967
49b036f1
TT
49682018-09-25 Tom Tromey <tom@tromey.com>
4969
4970 * configure: Rebuild.
4971 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
4972
8ff03f0b
SM
49732018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4974
4975 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
4976 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
4977 ($(IPA_LIB)): Sort IPA_OBJS.
4978
a1cd91dc
SM
49792018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4980
4981 * Makefile.in: Remove references to $(ADD_DEPS).
4982
752312ba
TT
49832018-09-16 Tom Tromey <tom@tromey.com>
4984
4985 * remote-utils.c (remote_open): Use GNU style for metasyntactic
4986 variables.
4987 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
4988 variables.
4989
f1628857
TT
49902018-09-05 Tom Tromey <tom@tromey.com>
4991
4992 * configure: Rebuild.
4993
ad202fcc
SM
49942018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4995
4996 PR build/23399
4997 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
4998
d3d8724a
TT
49992018-08-27 Tom Tromey <tom@tromey.com>
5000
5001 PR build/23087:
5002 * configure: Rebuild.
5003
b4f183d2
TT
50042018-08-27 Tom Tromey <tom@tromey.com>
5005
5006 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5007 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5008 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5009 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5010 (s390x_emit_stack_adjust): Add casts to unsigned char.
5011
4e2aa472
SM
50122018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5013
5014 PR gdb/23374
5015 PR gdb/23375
5016 * server.h (struct client_state) <disable_randomization>:
5017 Initialize to 1.
5018
cf4088a9
SM
50192018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5020
5021 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5022 variable.
5023 (mips_supply_ptrace_register): Likewise.
5024
a0de763e
TT
50252018-07-22 Tom Tromey <tom@tromey.com>
5026
5027 * configure: Rebuild.
5028
b0a7723d
TT
50292018-07-22 Tom Tromey <tom@tromey.com>
5030
5031 * win32-low.c (win32_create_inferior): Remove unused variables.
5032 * gdbreplay.c (remote_open): Remove unused variable.
5033 * remote-utils.c (remote_prepare): Remove unused variable.
5034 * x86-tdesc.h (X86_TDESC_H): Define.
5035 (amd64_expedite_regs): Define conditionally.
5036 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5037 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5038 * remote-utils.c (readchar): Remove unused variable.
5039
a780ef4f
PA
50402018-07-13 Pedro Alves <palves@redhat.com>
5041
5042 * linux-low.c (linux_kill): Change parameter to process_info
5043 pointer instead of pid. Adjust.
5044 * lynx-low.c (lynx_kill): Likewise.
5045 * nto-low.c (nto_kill): Likewise.
5046 * spu-low.c (spu_kill): Likewise.
5047 * win32-low.c (win32_kill): Likewise.
5048 * server.c (handle_v_kill, kill_inferior_callback)
5049 (detach_or_kill_for_exit): Adjust.
5050 * target.c (kill_inferior): Change parameter to process_info
5051 pointer instead of pid. Adjust.
5052 * target.h (struct target_ops) <kill>: Change parameter to
5053 process_info pointer instead of pid. Adjust all implementations
5054 and callers.
5055 (kill_inferior): Likewise.
5056
ef2ddb33
PA
50572018-07-13 Pedro Alves <palves@redhat.com>
5058
5059 * linux-low.c (linux_detach, linux_join): Change parameter to
5060 process_info pointer instead of pid. Adjust.
5061 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5062 * nto-low.c (nto_detach): Likewise.
5063 * spu-low.c (spu_detach, spu_join): Likewise.
5064 * win32-low.c (win32_detach, win32_join): Likewise.
5065 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5066 * target.h (struct target_ops) <detach, join>: Change parameter to
5067 process_info pointer instead of pid. Adjust all implementations
5068 and callers.
5069 (detach_inferior, join_inferior): Rename 'pid' parameter to
5070 'proc'.
5071
c7ab0aef
SDJ
50722018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5073 Jan Kratochvil <jan.kratochvil@redhat.com>
5074 Paul Fertser <fercerpav@gmail.com>
5075 Tsutomu Seki <sekiriki@gmail.com>
5076
5077 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5078 (OBS): Add 'common/netstuff.o'.
5079 (GDBREPLAY_OBS): Likewise.
5080 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5081 (remote_open): Implement support for IPv6
5082 connections.
5083 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5084 and 'wspiapi.h'.
5085 (handle_accept_event): Accept connections from IPv6 sources.
5086 (remote_prepare): Handle IPv6-style hostnames; implement
5087 support for IPv6 connections.
5088 (remote_open): Implement support for printing connections from
5089 IPv6 sources.
5090
31445d10
PA
50912018-07-11 Pedro Alves <palves@redhat.com>
5092
5093 PR gdb/23377
5094 * mem-break.c (any_persistent_commands): Add process_info
5095 parameter and use it instead of relying on the current process.
5096 Change return type to bool.
5097 * mem-break.h (any_persistent_commands): Add process_info
5098 parameter and change return type to bool.
5099 * server.c (handle_detach): Remove require_running_or_return call.
5100 Look up the process_info for the process we're about to detach.
5101 If not found, return back error to GDB. Adjust
5102 any_persistent_commands call to pass down a process pointer.
5103
cb197132
PA
51042018-07-11 Pedro Alves <palves@redhat.com>
5105
5106 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5107 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5108 instead of collect_register_by_name.
5109 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5110 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5111
1b919490
VB
51122018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5113 Pedro Alves <palves@redhat.com>
5114
5115 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5116
d7e15655
TT
51172018-07-03 Tom Tromey <tom@tromey.com>
5118
5119 * linux-low.c: Update.
5120 * lynx-low.c: Update.
5121 * mem-break.c: Update.
5122 * nto-low.c: Update.
5123 * remote-utils.c: Update.
5124 * server.c: Update.
5125 * spu-low.c: Update.
5126 * target.c: Update.
5127 * win32-low.c: Update.
5128
26a57c92
TT
51292018-07-03 Tom Tromey <tom@tromey.com>
5130
5131 * server.c: Update.
5132
0e998d96
TT
51332018-07-03 Tom Tromey <tom@tromey.com>
5134
5135 * linux-low.c: Update.
5136
cc6bcb54
TT
51372018-07-03 Tom Tromey <tom@tromey.com>
5138
5139 * target.c: Update.
5140
e38504b3
TT
51412018-07-03 Tom Tromey <tom@tromey.com>
5142
5143 * linux-low.c: Update.
5144 * linux-mips-low.c: Update.
5145 * lynx-low.c: Update.
5146 * nto-low.c: Update.
5147 * remote-utils.c: Update.
5148 * server.c: Update.
5149 * spu-low.c: Update.
5150 * target.c: Update.
5151 * thread-db.c: Update.
5152
e99b03dc
TT
51532018-07-03 Tom Tromey <tom@tromey.com>
5154
5155 * linux-low.c: Update.
5156 * linux-mips-low.c: Update.
5157 * lynx-low.c: Update.
5158 * mem-break.c: Update.
5159 * nto-low.c: Update.
5160 * remote-utils.c: Update.
5161 * server.c: Update.
5162 * spu-low.c: Update.
5163 * target.c: Update.
5164 * tracepoint.c: Update.
5165
f2907e49
TT
51662018-07-03 Tom Tromey <tom@tromey.com>
5167
5168 * linux-low.c: Update.
5169 * linux-ppc-low.c: Update.
5170 * linux-x86-low.c: Update.
5171 * proc-service.c: Update.
5172 * server.c: Update.
5173 * spu-low.c: Update.
5174 * thread-db.c: Update.
5175 * win32-low.c: Update.
5176
fd79271b
TT
51772018-07-03 Tom Tromey <tom@tromey.com>
5178
5179 * linux-low.c: Update.
5180 * lynx-low.c: Update.
5181 * nto-low.c: Update.
5182 * remote-utils.c: Update.
5183 * spu-low.c: Update.
5184 * thread-db.c: Update.
5185 * win32-low.c: Update.
5186
c0867626
SDJ
51872018-06-29 Joel Brobecker <brobecker@adacore.com>
5188
5189 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5190 parameter in call to 'amd64_create_target_description'.
5191
2512d7ef
JK
51922018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5193
5194 * x86-tdesc.h: Remove executable permission flag.
5195
d0ac1c44
SM
51962018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5197
5198 * configure.ac: Remove AC_PREREQ, add missing quoting.
5199 * configure: Re-generate.
5200 * config.in: Re-generate.
5201 * aclocal.m4: Re-generate.
5202
c4eb05ff
SM
52032018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5204
5205 * tracepoint.h (current_traceframe): Remove declaration.
5206
02895270
AH
52072018-06-18 Alan Hayward <alan.hayward@arm.com>
5208
5209 * linux-aarch64-low.c (is_sve_tdesc): New function.
5210 (aarch64_sve_regs_copy_to_regcache): Likewise.
5211 (aarch64_sve_regs_copy_from_regcache): Likewise.
5212 (aarch64_regs_info): Add SVE checks.
5213 (initialize_low_arch): Initialize SVE.
5214
e9902bfc
AH
52152018-06-18 Alan Hayward <alan.hayward@arm.com>
5216
5217 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5218
fefa175e
AH
52192018-06-11 Alan Hayward <alan.hayward@arm.com>
5220
5221 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5222 (initialize_low_tracepoint): Likewise
5223 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5224 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5225 param.
5226 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5227 checks.
5228 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5229
b91ad3ff
AH
52302018-06-11 Alan Hayward <alan.hayward@arm.com>
5231
5232 * server.h (PBUFSIZ): Increase size
5233
f868386e
AH
52342018-06-11 Alan Hayward <alan.hayward@arm.com>
5235
5236 * regcache.c (regcache::raw_compare): New function.
5237 * regcache.h (regcache::raw_compare): New declaration.
5238
9c861883
AH
52392018-06-11 Alan Hayward <alan.hayward@arm.com>
5240
5241 * regcache.c (new_register_cache): Use new.
5242 (free_register_cache): Use delete.
5243 (register_data): Use const.
5244 (supply_register): Move body inside regcache.
5245 (regcache::raw_supply): New override function.
5246 (collect_register): Move body inside regcache.
5247 (regcache::raw_collect): New override function.
5248 (regcache::get_register_status): New override function.
5249 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5250
40591844
TT
52512018-06-09 Tom Tromey <tom@tromey.com>
5252
5253 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5254 declare queue.
5255 (event_queue): Use std::queue.
5256 (gdb_event_xfree): Remove.
5257 (initialize_event_loop, process_event, wait_for_event): Update.
5258
6341380d
SC
52592018-06-08 Stan Cox <scox@redhat.com>
5260
5261 * win32-low.c (win32_create_inferior): last_ptid and last_status
5262 moved to client_state.
5263
03349c93
PA
52642018-06-08 Pedro Alves <palves@redhat.com>
5265
5266 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5267 common/common-exceptions.o, common/common-utils.o,
5268 common/errors.o, common/print-utils.o and utils.o.
5269 * gdbreplay.c: Include "common-defs.h" instead of the two
5270 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5271 string.h or alloca.h.
5272 (perror_with_name): Delete.
5273 (remote_open): Use xstrdup instead of strdup.
5274 (main): Rename to ...
5275 (captured_main): ... this.
5276 (main): New.
5277
8dcc53b3
TT
52782018-06-08 Tom Tromey <tom@tromey.com>
5279
5280 * linux-low.c (linux_low_read_btrace): Update.
5281
c12a5089
SC
52822018-06-04 Stan Cox <scox@redhat.com>
5283
5284 * server.h (struct client_state): New.
5285 * server.c (cont_thread, general_thread, multi_process)
5286 (report_fork_events, report_vfork_events, report_exec_events)
5287 (report_thread_events, swbreak_feature, hwbreak_feature)
5288 (vCont_supported, disable_randomization, pass_signals)
5289 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5290 Moved to client_state.
5291 * remote-utils.c (remote_debug, noack_mode)
5292 (transport_is_reliable): Moved to client_state.
5293 * tracepoint.c (current_traceframe): Moved to client_state.
5294
5295 Update all callers.
5296 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5297 linux-low.c, remote-utils.h, target.c: Use client_state.
5298
122394f1
AH
52992018-05-31 Alan Hayward <alan.hayward@arm.com>
5300
5301 * configure.srv: Add new c/h file.
5302
95228a0d
AH
53032018-05-31 Alan Hayward <alan.hayward@arm.com>
5304
5305 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5306 null VQ.
5307
d8dab6c3
MR
53082018-05-25 Maciej W. Rozycki <macro@mips.com>
5309
5310 * gdb.arch/mips-fpregset-core.exp: New test.
5311 * gdb.arch/mips-fpregset-core.c: New test source.
5312
81e25b7c
EK
53132018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5314
5315 PR server/23198
5316 * hostio.c (require_int): Do not report overflow for integers
5317 between 0xfffffff and 0x7fffffff.
5318
7e947ad3
MR
53192018-05-22 Maciej W. Rozycki <macro@mips.com>
5320
5321 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5322 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5323 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5324 functions.
5325 (the_low_target): Wire them.
5326
1d75a658
PFC
53272018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5328
5329 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5330 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5331 mode. Call collect_register_by_name with vscr using
5332 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5333 (ppc_store_vrregset): Add and set vscr_offset variable as in
5334 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5335 vscr_offset.
5336
d078308a
PFC
53372018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5338
5339 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5340 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5341 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5342
7273b5fc
PFC
53432018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5344
5345 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5346 (ppc_store_vsxregset): Likewise.
5347 (ppc_fill_vrregset): Likewise.
5348 (ppc_store_vrregset): Likewise.
5349 (ppc_fill_evrregset): Likewise.
5350 (ppc_store_evrregset): Likewise.
5351 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5352 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5353 needed.
5354
2e077f5e
PFC
53552018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5356
5357 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5358 wordsize of the inferior. Call ppc_linux_target_wordsize.
5359
bd64614e
PFC
53602018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5361
5362 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5363 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5364 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5365 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5366 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5367 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5368 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5369 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5370 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5371 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5372 (tdesc_powerpc_e500l): Remove.
5373 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5374 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5375 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5376 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5377 linux-ppc-tdesc.h.
5378 (ppc_arch_setup): Remove target description matching code. Fill a
5379 ppc_linux_features struct and call ppc_linux_match_description
5380 with it.
5381
75d74cca
MR
53822018-05-22 Maciej W. Rozycki <macro@mips.com>
5383
5384 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5385 width of the requested register exceeds the width of the
5386 `ptrace' data type.
5387 (mips_cannot_store_register): Likewise.
5388
e4439e43
MR
53892018-05-21 Maciej W. Rozycki <macro@mips.com>
5390
5391 * linux-mips-low.c (mips_fetch_register): New function. Update
5392 preceding comment.
5393 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5394 (the_low_target): Wire `mips_fetch_register'.
5395
55271bf9
JB
53962018-05-10 Joel Brobecker <brobecker@adacore.com>
5397
5398 * lynx-i386-low.c (LYNXOS_178): New macro.
5399 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5400 the layout on LynxOS-178.
5401 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5402 handle floating point registers that are not supported by
5403 LynxOS-178.
5404
1a34f210
TT
54052018-05-10 Tom Tromey <tom@tromey.com>
5406
5407 * configure: Rebuild.
5408
190852c8
JB
54092018-05-10 Joel Brobecker <brobecker@adacore.com>
5410
5411 PR server/23158:
5412 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5413 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5414 Use it to set the expedite_regs field in the given tdesc.
5415 * x86-tdesc.h: New file.
5416 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5417 Adjust following the addition of the new expedite_regs parameter
5418 to init_target_desc.
5419 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5420 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5421 (i386_linux_read_description, amd64_linux_read_description):
5422 Adjust following the addition of the new expedite_regs parameter
5423 to init_target_desc.
5424 * lynx-i386-low.c: #include "x86-tdesc.h".
5425 (lynx_i386_arch_setup): Adjust following the addition of the new
5426 expedite_regs parameter to init_target_desc.
5427 * nto-x86-low.c: #include "x86-tdesc.h".
5428 (nto_x86_arch_setup): Adjust following the addition of the new
5429 expedite_regs parameter to init_target_desc.
5430 * win32-i386-low.c: #include "x86-tdesc.h".
5431 (i386_arch_setup): Adjust following the addition of the new
5432 expedite_regs parameter to init_target_desc.
5433
7dbac825
JB
54342018-05-10 Joel Brobecker <brobecker@adacore.com>
5435
5436 PR server/23158:
5437 * win32-low.c (win32_create_inferior): Add call to my_wait
5438 setting last_status global.
5439
906994d9
JB
54402018-05-10 Joel Brobecker <brobecker@adacore.com>
5441
5442 PR server/23158:
5443 * win32-low.c (create_process): Only call gdb_tilde_expand if
5444 inferior_cwd is not NULL.
5445
8ee22052
AB
54462018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5447
5448 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5449 registers to the cache if their values have changed.
5450 (i387_xsave_to_cache): Provide default values for x87 control
5451 registers when these features are available, but disabled.
5452 * regcache.c (supply_register_by_name_zeroed): New function.
5453 * regcache.h (supply_register_by_name_zeroed): Declare new
5454 function.
5455
aff689d3
TT
54562018-05-07 Tom Tromey <tom@tromey.com>
5457
5458 * configure: Rebuild.
5459
85e26832
TT
54602018-05-04 Tom Tromey <tom@tromey.com>
5461
5462 * configure: Rebuild.
5463
a3b60e45
JK
54642018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5465 Pedro Alves <palves@redhat.com>
5466
5467 * linux-aarch64-low.c (aarch64_stopped_data_address):
5468 Likewise.
5469
632e107b
TT
54702018-04-27 Tom Tromey <tom@tromey.com>
5471
5472 * configure: Rebuild.
5473
458412c3
TT
54742018-04-23 Tom Tromey <tom@tromey.com>
5475
5476 * configure: Rebuild.
5477
f31c089e
SM
54782018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5479
5480 * Makefile.in (depcomp): Add "..".
5481 (all_deps_files): New and use it.
5482
b319b098
AH
54832018-04-18 Alan Hayward <alan.hayward@arm.com>
5484
5485 * configure.srv (aarch64*-*-linux*): Don't include xml.
5486 (i[34567]86-*-cygwin*): Likewise.
5487 (i[34567]86-*-linux*): Likewise.
5488 (i[34567]86-*-lynxos*): Likewise.
5489 (i[34567]86-*-mingw32ce*): Likewise.
5490 (i[34567]86-*-mingw*): Likewise.
5491 (i[34567]86-*-nto*): Likewise.
5492 (tic6x-*-uclinux): Likewise.
5493 (x86_64-*-linux*): Likewise.
5494 (x86_64-*-mingw*): Likewise.
5495 (x86_64-*-cygwin*): Likewise.
5496
3b74854b
AH
54972018-04-18 Alan Hayward <alan.hayward@arm.com>
5498
5499 * tdesc.c: Remove xml parameter.
5500
e98577a9
AH
55012018-04-18 Alan Hayward <alan.hayward@arm.com>
5502
5503 * server.c (get_features_xml): Remove cast.
5504 * tdesc.c (void target_desc::accept): Fill in function.
5505 (tdesc_get_features_xml): Remove old xml creation.
5506 (print_xml_feature::visit_pre): Add xml vistor.
5507 * tdesc.h (struct target_desc): Make xmltarget mutable.
5508 (tdesc_get_features_xml): Remove declaration.
5509
d278f585
AH
55102018-04-18 Alan Hayward <alan.hayward@arm.com>
5511
5512 * tdesc.c (tdesc_architecture_name): Add new function.
5513 (tdesc_osabi_name): Likewise.
5514 (tdesc_get_features_xml): Use new functions.
5515
eee8a18d
AH
55162018-04-18 Alan Hayward <alan.hayward@arm.com>
5517
5518 * tdesc.c (tdesc_create_flags): Remove.
5519 (tdesc_add_flag): Likewise.
5520 (tdesc_named_type): Likewise.
5521 (tdesc_create_union): Likewise.
5522 (tdesc_create_struct): Likewise.
5523 (tdesc_create_vector): Likewise.
5524 (tdesc_add_bitfield): Likewise.
5525 (tdesc_add_field): Likewise.
5526 (tdesc_set_struct_size): Likewise.
5527
82ec9bc7
AH
55282018-04-18 Alan Hayward <alan.hayward@arm.com>
5529
5530 * tdesc.c (~target_desc): Remove implictly deleted items.
5531 (init_target_desc): Iterate all features.
5532 (tdesc_get_features_xml): Use vector.
5533 (tdesc_create_feature): Create feature.
5534 * tdesc.h (tdesc_feature) Remove
5535 (target_desc): Add features.
5536
ea3e7d71
AH
55372018-04-18 Alan Hayward <alan.hayward@arm.com>
5538
5539 * Makefile.in: Add common/tdesc.c
5540 * tdesc.c (init_target_desc): init all reg_defs from register
5541 vector.
5542 (tdesc_create_reg): Create tdesc_reg.
5543 * tdesc.h (tdesc_feature): Add register vector.
5544
17d08cd4
SM
55452018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5546
5547 * tdesc.h (struct target_desc) <features>: Change type to
5548 std::vector<std::string>.
5549 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5550 changes.
5551 (tdesc_get_features_xml): Likewise.
5552 (tdesc_create_feature): Likewise.
5553
5cd3e386
AH
55542018-03-26 Alan Hayward <alan.hayward@arm.com>
5555
5556 * regcache.c (find_register_by_number): Return a ref.
5557 (find_regno): Use references.
5558 (register_size): Likewise.
5559 (register_data): Likewise.
5560 * tdesc.c (target_desc::~target_desc): Remove free calls.
5561 (target_desc::operator==): Use std::vector compare.
5562 (init_target_desc): Use reference.
5563 (tdesc_create_reg): Use reg constructors.
5564 * tdesc.h (struct target_desc): Replace pointer with object.
5565
dff7492c
AH
55662018-03-23 Alan Hayward <alan.hayward@arm.com>
5567
5568 * regcache.c (find_register_by_number): Make static.
5569 (find_regno): Use find_register_by_number
5570 * regcache.h (struct reg): Remove declaration.
5571
d80e5242
AH
55722018-03-23 Alan Hayward <alan.hayward@arm.com>
5573
5574 * tdesc.c (target_desc::~target_desc): Move to here.
5575 (target_desc::operator==): Likewise.
5576 * tdesc.h (target_desc::~target_desc): Move from here.
5577 (target_desc::operator==): Likewise.
5578
f69c5afb
AA
55792018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5580
5581 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5582
ce29f843
AA
55832018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5584
5585 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5586 S390_TDESC_GS.
5587 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5588 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5589 and init_registers_s390_gs_linux64.
5590
c49bd90b
AA
55912018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5592
5593 * linux-s390-low.c (s390_fill_gs): Remove function.
5594 (s390_fill_gsbc): Remove function.
5595 (s390_regsets): Set fill functions for the guarded storage regsets
5596 to NULL.
5597
7edb9bd3
AA
55982018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5599
5600 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5601 the word size. Add comment.
5602 (s390_get_wordsize): New function.
5603 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5604 pswm with it. Instead, use s390_get_wordsize to determine the
5605 word size first and derive the correct tdesc from that directly.
5606
39be3c7e
SM
56072018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5608
5609 * Makefile.in: Include silent-rules.mk.
5610 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5611 (COMPILE): Add ECHO_CXX.
5612 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5613 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5614 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5615 (version-generated.c): Add ECHO_GEN.
5616 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5617 (IPAGENT_COMPILE): Add ECHO_CXX.
5618 (%-generated.c): Add ECHO_REGDAT.
5619
3ae9ce5d
TT
56202018-03-14 Tom Tromey <tom@tromey.com>
5621
5622 PR cli/14977:
5623 * ax.c (ax_printf): Special case for NULL.
5624
e6a58aa8
SM
56252018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5626
5627 * linux-low.c (linux_qxfer_libraries_svr4): Use
5628 xml_escape_text_append.
5629
f6e8a41e
SM
56302018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5631
5632 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5633
b9671caf
SM
56342018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5635
5636 * server.c (handle_general_set): Remove unnecessary xstrdup.
5637
e80aaf61
SM
56382018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5639
5640 * server.c (parse_debug_format_options): Adjust to
5641 delim_string_to_char_ptr_vec changes.
5642 * thread-db.c (thread_db_load_search): Adjust to
5643 dirnames_to_char_ptr_vec changes.
5644
b1223e78
MM
56452018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5646
5647 * target.h (target_enable_btrace, target_disable_btrace)
5648 (target_read_btrace, target_read_btrace_conf): Turn macro into
5649 inline function. Throw error if target method is not defined.
5650 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5651 check for btrace target method. Be prepared to handle exceptions
5652 from btrace target methods.
5653
81561546
SDJ
56542018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5655
5656 * server.c (captured_main): Change order of error message printed
5657 when the current working directory cannot be found.
5658
25e3c82c
SDJ
56592018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5660
5661 * server.c: Include "filenames.h" and "pathstuff.h".
5662 (program_name): Delete variable.
5663 (program_path): New anonymous class.
5664 (get_exec_wrapper): Use "program_path" instead of
5665 "program_name".
5666 (handle_v_run): Likewise.
5667 (captured_main): Likewise.
5668 (process_serial_event): Likewise.
5669
b4987c95
SDJ
56702018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5671
5672 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5673 (OBJS): Add "pathstuff.o".
5674 * server.c (current_directory): New global variable.
5675 (captured_main): Initialize "current_directory".
5676
f46cd62a
AH
56772018-02-26 Alan Hayward <alan.hayward@arm.com>
5678
5679 * tdesc.c: Use common/tdesc.h.
5680 * tdesc.h: Likewise.
5681
a543c5ca
AH
56822018-02-20 Alan Hayward <alan.hayward@arm.com>
5683 Simon Marchi <simon.marchi@ericsson.com>
5684
5685 * Makefile.in: Switch order of make rules.
5686
b5884fa7
AH
56872018-02-19 Alan Hayward <alan.hayward@arm.com>
5688
5689 * Makefile.in: Add common directory in build.
5690 * configure.ac: Add common reference.
5691 * configure: Regenerate.
5692
de6242d3
MM
56932018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5694
5695 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5696 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5697 * spu-low.c (spu_target_ops): Likewise.
5698 * win32-low.c (win32_target_ops): Likewise.
5699 * server.c (supported_btrace_packets): Report packets unconditionally.
5700 * target.h (target_ops) <supports_btrace>: Remove.
5701 (target_supports_btrace): Remove.
5702
9ee23a85
MM
57032018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5704
5705 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5706 (handle_btrace_disable): Change return type to void. Use exceptions
5707 to report errors.
5708 (handle_btrace_general_set): Catch exception and copy message to
5709 return message.
5710
8ce47547
TT
57112018-02-08 Tom Tromey <tom@tromey.com>
5712
5713 * linux-low.c (install_software_single_step_breakpoints): Use
5714 make_scoped_restore.
5715 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5716 (do_restore_current_thread_cleanup): Remove.
5717 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5718 declare.
5719
45dd3607
TT
57202018-02-08 Tom Tromey <tom@tromey.com>
5721
5722 * mem-break.c (set_raw_breakpoint_at): Use
5723 gdb::unique_xmalloc_ptr.
5724
e671cd59
PA
57252018-01-30 Pedro Alves <palves@redhat.com>
5726
5727 PR gdb/13211
5728 * target.c (target_terminal::terminal_state): Rename to ...
5729 (target_terminal::m_terminal_state): ... this.
5730
a0aad537
JC
57312018-01-19 James Clarke <jrtc27@jrtc27.com>
5732
5733 * linux-low.c (handle_extended_wait): Surround call to
5734 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5735
4d9b86e1
SM
57362018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5737
5738 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5739 linux_ptrace_attach_fail_reason_string now returning an
5740 std::string.
5741 (linux_attach): Likewise.
5742 * thread-db.c (attach_thread): Likewise.
5743
f517c180
EA
57442018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5745
5746 PR gdb/21559
5747 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5748 checking for fs_base/gs_base fields in struct user_regs_struct.
5749 * configure: Regenerate.
5750
9a70f35c
YQ
57512018-01-16 Yao Qi <yao.qi@linaro.org>
5752
5753 PR gdb/18749
5754 * linux-low.c (fetch_register): Call supply_register instead of
5755 error.
5756
605fd3c6
YQ
57572018-01-08 Yao Qi <yao.qi@linaro.org>
5758 Simon Marchi <simon.marchi@ericsson.com>
5759
5760 * Makefile.in (OBS): Remove selftest.o.
5761 * configure.ac: Set srv_selftest_objs if $development is true.
5762 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5763 * configure: Re-generated.
5764 * server.c (captured_main): Wrap variable selftest_filter with
5765 GDB_SELF_TEST.
5766
2cc05030
SM
57672018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5768
5769 * server.c (parse_debug_format_options): Return std::string.
5770 (handle_monitor_command, captured_main): Adjust.
5771
e379cee6
PA
57722018-01-05 Pedro Alves <palves@redhat.com>
5773
5774 PR gdb/18653
5775 * server.c (captured_main): Pass quiet=false to
5776 save_original_signals_state.
5777
82e1e79a
JB
57782018-01-01 Joel Brobecker <brobecker@adacore.com>
5779
5780 * gdbreplay.c (gdbreplay_version): Update copyright year in
5781 version message.
5782 * server.c (gdbserver_version): Likewise.
5783
8e481c3b
TT
57842017-12-08 Tom Tromey <tom@tromey.com>
5785
5786 * ax.c (ax_printf): Update.
5787
a8806230
YQ
57882017-12-07 Yao Qi <yao.qi@linaro.org>
5789
5790 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5791 aarch64_linux_read_description.
5792 * linux-amd64-ipa.c (idx2mask): New array.
5793 (get_ipa_tdesc): Move idx2mask out.
5794 (initialize_low_tracepoint): Initialize target descriptions.
5795 * linux-i386-ipa.c (idx2mask): New array.
5796 (get_ipa_tdesc): Move idx2mask out.
5797 (initialize_low_tracepoint): Initialize target descriptions.
5798
d4a0e8b5
SM
57992017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5800
5801 * tdesc.c (struct tdesc_type): Change return type.
5802 (tdesc_add_flag): Change parameter type.
5803 (tdesc_add_bitfield): Likewise.
5804 (tdesc_add_field): Likewise.
5805 (tdesc_set_struct_size): Likewise.
5806
798a7429
SM
58072017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5808
5809 * regcache.c (registers_to_string): Remove unused variable.
5810
c0e15c9b
SM
58112017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5812
5813 * inferiors.c (for_each_inferior_with_data): Remove.
5814 * inferiors.h (for_each_inferior_with_data): Remove.
5815 * server.c (handle_qxfer_threads_worker): Change parameter type.
5816 (handle_qxfer_threads_proper): Use for_each_thread.
5817
f0045347
SM
58182017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5819
5820 * inferiors.c (for_each_inferior): Remove.
5821 (clear_inferiors): Use for_each_thread.
5822 * inferiors.h (for_each_inferior): Remove.
5823 * linux-low.c (linux_wait_for_event_filtered): Use
5824 for_each_thread.
5825 (linux_stabilize_threads): Likewise.
5826 * regcache.c (regcache_release): Likewise.
5827 * server.c (gdb_wants_all_threads_stopped): Likewise.
5828 (clear_pending_status_callback): Remove.
5829 (handle_status): Use for_each_thread.
5830 (captured_main): Likewise.
5831 * win32-low.c (child_init_thread_list): Likewise.
5832 (win32_clear_inferiors): Likewise.
5833 (fake_breakpoint_event): Likewise.
5834
9521758b
SM
58352017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5836
5837 * inferiors.h (find_inferior): Remove.
5838 * inferiors.c (find_inferior): Remove.
5839
8f86d7aa
SM
58402017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5841
5842 * linux-low.c (resume_status_pending_p): Update comment.
5843 (need_step_over_p): Update comment.
5844
e2b44075
SM
58452017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5846
5847 * linux-low.c (proceed_one_lwp): Return void, change parameter
5848 type.
5849 (unsuspend_and_proceed_one_lwp): Likewise.
5850 (proceed_all_lwps): Use for_each_thread.
5851 (unstop_all_lwps): Likewise.
5852
c80825ff
SM
58532017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5854
5855 * linux-low.c (linux_resume_one_thread): Return void, take
5856 parameter directly.
5857 (linux_resume): Use for_each_thread.
5858
df3e4dbe
SM
58592017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5860
5861 * linux-low.c (send_sigstop_callback): Return void, change
5862 parameter type. Rename to...
5863 (send_sigstop): ... this.
5864 (suspend_and_send_sigstop_callback): Return void, change parameter
5865 type. Rename to...
5866 (suspend_and_send_sigstop): ... this.
5867 (stop_all_lwps): Use for_each_thread.
5868
5a6b0a41
SM
58692017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5870
5871 * linux-low.c (lwp_running): Return bool, remove unused
5872 argument.
5873 (linux_stabilize_threads): Use find_thread.
5874
39a64da5
SM
58752017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5876
5877 * linux-low.c (select_singlestep_lwp_callback): Remove.
5878 (count_events_callback): Remove.
5879 (select_event_lwp_callback): Remove.
5880 (select_event_lwp): Use find_thread/for_each_thread.
5881
a1385b7b
SM
58822017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5883
5884 * linux-low.c (not_stopped_callback): Return bool, take filter
5885 argument directly.
5886 (linux_wait_for_event_filtered): Use find_thread.
5887 (linux_wait_1): Likewise.
5888
454296a2
SM
58892017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5890
5891 * linux-low.c (same_lwp): Remove.
5892 (find_lwp_pid): Use find_thread.
5893
6b2a85da
SM
58942017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5895
5896 * linux-low.c (delete_lwp_callback): Remove.
5897 (linux_mourn): Use for_each_thread.
5898
798a38e8
SM
58992017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5900
5901 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5902 args parameter, don't check for pid.
5903 (linux_detach): Use for_each_thread.
5904
e4eb0dec
SM
59052017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5906
5907 * linux-low.c (struct counter): Remove.
5908 (second_thread_of_pid_p): Remove.
5909 (last_thread_of_process_p): Use find_thread.
5910
83e1b6c1
SM
59112017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5912
5913 * inferiors.c (find_inferior_in_random): Remove.
5914 * inferiors.h (find_inferior_in_random): Remove.
5915 * linux-low.c (status_pending_p_callback): Return bool, accept
5916 parameter ptid directly.
5917 (linux_wait_for_event_filtered): Use find_thread_in_random.
5918 (linux_wait_1): Likewise.
5919
8dc7b443
SM
59202017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5921
5922 * inferiors.c (find_inferior_id): Remove.
5923 (find_thread_ptid): Move implemention from find_inferior_id to
5924 here.
5925 * inferiors.h (find_inferior_id): Remove.
5926 * server.c (handle_status): Use find_thread_ptid.
5927 (process_serial_event): Likewise.
5928 * thread-db.c (find_one_thread): Likewise.
5929 (thread_db_thread_handle): Likewise.
5930 * win32-low.c (thread_rec): Likewise.
5931 (child_delete_thread): Likewise.
5932 (win32_thread_alive): Likewise.
5933 (get_child_debug_event): Likewise.
5934
da25033c
SM
59352017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5936
5937 * linux-mips-low.c (update_watch_registers_callback): Return
5938 void, remove pid_p parameter, don't check for pid.
5939 (mips_insert_point, mips_remove_point): Use for_each_thread.
5940
c91bb56b
SM
59412017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5942
5943 * lynx.low (lynx_delete_thread_callback): Remove.
5944 (lynx_mourn): Use for_each_thread.
5945
634a3254
SM
59462017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5947
5948 * regcache.c (regcache_invalidate_one): Remove.
5949 (regcache_invalidate_pid): use for_each_thread.
5950
41272101
TT
59512017-11-26 Tom Tromey <tom@tromey.com>
5952
5953 * linux-low.c (linux_create_inferior): Update.
5954
f5291a6f
UW
59552017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5956
5957 * spu-low.c (spu_create_inferior): Fix typo in argument name.
5958
6654d750
AH
59592017-11-24 Alan Hayward <alan.hayward@arm.com>
5960
5961 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
5962 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5963 * linux-aarch64-tdesc-selftest.c: New file.
5964 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5965
59662017-11-24 Alan Hayward <alan.hayward@arm.com>
5967
5968 * configure.srv: Add new file.
5969 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5970 * linux-aarch64-tdesc-selftest.c: New file.
5971 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5972
49bdb7ee
AH
59732017-11-24 Alan Hayward <alan.hayward@arm.com>
5974
5975 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
5976 * linux-aarch64-low.c (initialize_low_arch): Remove init.
5977 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
5978
d6d7ce56
AH
59792017-11-24 Alan Hayward <alan.hayward@arm.com>
5980
5981 * configure.srv: Add new files.
5982 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
5983 aarch64_linux_read_description.
5984 * linux-aarch64-low.c (aarch64_linux_read_description):
5985 Merge with aarch64_arch_setup.
5986 (aarch64_arch_setup): Call aarch64_linux_read_description.
5987 * linux-aarch64-tdesc.c: New file.
5988 * linux-aarch64-tdesc.h: New file.
5989
506fe5f4
YQ
59902017-11-24 Yao Qi <yao.qi@linaro.org>
5991
5992 * configure.srv: Set $srv_regobj for tic6x-linux.
5993 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
5994 (tic6x_read_description): Move some code to tic6x_arch_setup.
5995 (tic6x_tdesc_test): New function.
5996 (initialize_low_arch): Call selftests::register_test.
5997
29f9a567
YQ
59982017-11-22 Yao Qi <yao.qi@linaro.org>
5999
6000 * remote-utils.c (prepare_resume_reply): Use memcpy.
6001
578290ec
SM
60022017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6003
6004 * linux-low.c (kill_one_lwp_callback): Return void, take
6005 argument directly, don't filter on pid.
6006 (linux_kill): Use for_each_thread.
6007
eca55aec
SM
60082017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6009
6010 * linux-low.c (need_step_over_p): Return bool, remove dummy
6011 argument.
6012 (linux_resume, proceed_all_lwps): Use find_thread.
6013
25c28b4d
SM
60142017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6015
6016 * linux-low.c (resume_status_pending_p): Return bool, remove
6017 flag_p argument.
6018 (linux_resume): Use find_thread.
6019
5fdda392
SM
60202017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6021
6022 * linux-low.c (struct thread_resume_array): Remove.
6023 (linux_set_resume_request): Return void, take arguments
6024 directly.
6025 (linux_resume): Use for_each_thread.
6026
fcb056a5
SM
60272017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6028
6029 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6030 return bool, remove data argument.
6031 (linux_stabilize_threads): Use find_thread.
6032
139720c5
SM
60332017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6034
6035 * linux-low.c (unsuspend_one_lwp): Remove.
6036 (unsuspend_all_lwps): Use for_each_thread, inline code from
6037 unsuspend_one_lwp.
6038
6d1e5673
SM
60392017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6040
6041 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6042 * linux-low.c (struct iterate_over_lwps_args): Remove.
6043 (iterate_over_lwps_filter): Remove.
6044 (iterate_over_lwps): Use find_thread.
6045
bbf550d5
SM
60462017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6047
6048 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6049 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6050 code from reset_lwp_ptrace_options_callback.
6051
00192f77
SM
60522017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6053
6054 * linux-arm-low.c (struct update_registers_data): Remove.
6055 (update_registers_callback): Return void, take arguments
6056 directly, don't check thread's pid.
6057 (arm_insert_point, arm_remove_point): Use for_each_thread.
6058
2bee2b6c
SM
60592017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6060
6061 * win32-low.c (continue_one_thread): Return void, take argument
6062 directly.
6063 (child_continue): Use for_each_thread.
6064
0b360f19
SM
60652017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6066
6067 * win32-i386-low.c (update_debug_registers_callback): Rename
6068 to ...
6069 (update_debug_registers): ... this, return void, remove pid_p arg.
6070 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6071
f27866ba
SM
60722017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6073
6074 * inferiors.h (struct process_info): Add constructor, initialize
6075 fields..
6076 <syscalls_to_catch>: Change type to std::vector<int>.
6077 * inferiors.c (add_process): Allocate process_info with new.
6078 (remove_process): Free process_info with delete.
6079 * linux-low.c (handle_extended_wait): Adjust.
6080 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6081 * server.c (handle_general_set): Adjust.
6082
e849ea89
PA
60832017-11-16 Pedro Alves <palves@redhat.com>
6084
6085 * remote-utils.c (remote_close): Block SIGIO signals instead of
6086 uninstalling the SIGIO handler.
6087
1d0aa65c
AH
60882017-11-16 Alan Hayward <alan.hayward@arm.com>
6089
6090 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6091
3491a34c
YQ
60922017-11-16 Yao Qi <yao.qi@linaro.org>
6093
6094 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6095 (tic6x_store_gregset): Likewise.
6096 (tic6x_usrregs_info): Move it up.
6097
a602f924
AH
60982017-11-15 Alan Hayward <alan.hayward@arm.com>
6099
6100 * Makefile.in: Update arch rules.
6101 * configure.srv: Explicitly mark arch/ files.
6102
5616b6c3
AS
61032017-11-13 Andreas Schwab <schwab@suse.de>
6104
6105 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6106 function.
6107 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6108
d1928160
PA
61092017-11-06 Pedro Alves <palves@redhat.com>
6110
6111 * config.in, configure: Regenerate.
6112
bac608e7
SM
61132017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6114
6115 * target.c (struct thread_search): Remove.
6116 (thread_search_callback): Remove.
6117 (prepare_to_access_memory): Use for_each_thread instead of
6118 find_inferior. Inline code from thread_search_callback.
6119
eaddb425
SM
61202017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6121
6122 * server.c (struct visit_actioned_threads_data): Remove.
6123 (visit_actioned_threads): Change prototype to take arguments
6124 directly.
6125 (resume): Use find_thread instead of find_inferior.
6126
99078d34
SM
61272017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6128
6129 * server.c (queue_stop_reply_callback): Change prototype, return
6130 void.
6131 (find_status_pending_thread_callback): Remove.
6132 (handle_status): Replace find_inferior with find_thread and
6133 for_each_thread.
6134
cc628f3d
AH
61352017-10-25 Alan Hayward <alan.hayward@arm.com>
6136
6137 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6138 with REGNO.
6139 (aarch64_store_gregset): Likewise.
6140 (aarch64_fill_fpregset): Likewise.
6141 (aarch64_store_fpregset): Likewise.
6142
4d3bb80e
SM
61432017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6144
6145 * gdbthread.h (find_thread, for_each_thread): New functions.
6146 * inferiors.c (thread_of_pid): Remove.
6147 (find_any_thread_of_pid): Use find_thread.
6148 * linux-low.c (num_lwps): Use for_each_thread.
6149
7a7cdfa0
YQ
61502017-10-17 Yao Qi <yao.qi@linaro.org>
6151
6152 * Makefile.in: Remove one rule.
6153 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6154
e675d170
YQ
61552017-10-17 Yao Qi <yao.qi@linaro.org>
6156
6157 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6158 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6159
7eb4e0f9
YQ
61602017-10-17 Yao Qi <yao.qi@linaro.org>
6161
6162 * configure.srv: Rename arm.o with arch/arm.o.
6163
60d6cfc9
YQ
61642017-10-17 Yao Qi <yao.qi@linaro.org>
6165
6166 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6167 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6168 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6169 (arch-i386.o, arch-amd64.o): Remove rules.
6170 (arch/%.o): New rule.
6171 Update POSTCOMPILE and COMPILE.pre.
6172 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6173 * configure: Re-generated.
6174 * configure.srv: Replace arch-i386.o with arch/i386.o.
6175 Replace arch-amd64.o with arch/amd64.o.
6176
5bfda255
YQ
61772017-10-16 Yao Qi <yao.qi@linaro.org>
6178
6179 * configure: Regenerated.
6180
9c80ecd6
SM
61812017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6182
6183 * inferiors.h: (struct inferior_list): Remove.
6184 (struct inferior_list_entry); Remove.
6185 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6186 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6187 get_first_inferior): Remove.
6188 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6189 find_inferior_id, find_inferior_in_random): Change signature.
6190 * inferiors.c (all_threads): Change type to
6191 std::list<thread_info *>.
6192 (get_thread): Remove macro.
6193 (find_inferior, find_inferior_id): Change signature, implement
6194 using find_thread.
6195 (find_inferior_in_random): Change signature, implement using
6196 find_thread_in_random.
6197 (for_each_inferior, for_each_inferior_with_data): Change
6198 signature, implement using for_each_thread.
6199 (add_inferior_to_list, remove_inferior): Remove.
6200 (add_thread, get_first_thread, thread_of_pid,
6201 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6202 (get_first_inferior, one_inferior_p, clear_inferior_list):
6203 Remove.
6204 (clear_inferiors, get_thread_process): Update.
6205 * gdbthread.h: Include <list>.
6206 (struct thread_info) <entry>: Remove field.
6207 <id>: New field.
6208 (all_threads): Change type to std::list<thread_info *>.
6209 (get_first_inferior): Add doc.
6210 (find_thread, for_each_thread, find_thread_in_random): New
6211 functions.
6212 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6213 * linux-arm-low.c (update_registers_callback): Update.
6214 * linux-low.c (second_thread_of_pid_p): Update.
6215 (kill_one_lwp_callback, linux_detach_lwp_callback,
6216 delete_lwp_callback, status_pending_p_callback, same_lwp,
6217 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6218 iterate_over_lwps, not_stopped_callback,
6219 resume_stopped_resumed_lwps, count_events_callback,
6220 select_singlestep_lwp_callback, select_event_lwp_callback,
6221 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6222 suspend_and_send_sigstop_callback, wait_for_sigstop,
6223 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6224 lwp_running, linux_set_resume_request, resume_status_pending_p,
6225 need_step_over_p, start_step_over, linux_resume_one_thread,
6226 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6227 reset_lwp_ptrace_options_callback): Update.
6228 * linux-mips-low.c (update_watch_registers_callback): Update.
6229 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6230 Update.
6231 (free_register_cache_thread_one): Remove.
6232 (regcache_release): Update.
6233 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6234 handle_qxfer_threads_worker): Update.
6235 (handle_query): Update, use list iterator.
6236 (visit_actioned_threads, handle_pending_status,
6237 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6238 clear_pending_status_callback, set_pending_status_callback,
6239 find_status_pending_thread_callback, handle_status,
6240 process_serial_event): Update.
6241 * target.c (thread_search_callback): Update.
6242 * thread-db.c (thread_db_get_tls_address): Update.
6243 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6244 Update.
6245 * win32-i386-low.c (update_debug_registers_callback): Update.
6246 * win32-low.c (delete_thread_info, child_delete_thread,
6247 continue_one_thread, suspend_one_thread,
6248 get_child_debug_event): Adjust.
6249
9179355e
SM
62502017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6251
6252 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6253 * inferiors.h: Include <list>.
6254 (struct process_info) <entry>: Remove field.
6255 <pid>: New field.
6256 (pid_of): Change macro to function.
6257 (ptid_of, lwpid_of): Remove macro.
6258 (all_processes): Change type to std::list<process_info *>.
6259 (ALL_PROCESSES): Remove macro.
6260 (for_each_process, find_process): New function.
6261 * inferiors.c (all_processes): Change type to
6262 std::list<process_info *>.
6263 (find_thread_process): Adjust.
6264 (add_process): Likewise.
6265 (remove_process): Likewise.
6266 (find_process_pid): Likewise.
6267 (get_first_process): Likewise.
6268 (started_inferior_callback): Remove.
6269 (have_started_inferiors_p): Adjust.
6270 (attached_inferior_callback): Remove.
6271 (have_attached_inferiors_p): Adjust.
6272 * linux-low.c (check_zombie_leaders): Likewise.
6273 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6274 (x86_linux_update_xmltarget): Adjust.
6275 * server.c (handle_query): Likewise.
6276 (gdb_reattached_process): Remove.
6277 (handle_status): Adjust.
6278 (kill_inferior_callback): Likewise.
6279 (detach_or_kill_inferior): Remove.
6280 (print_started_pid): Likewise.
6281 (print_attached_pid): Likewise.
6282 (detach_or_kill_for_exit): Update.
6283 (process_serial_event): Likewise.
6284 * linux-arm-low.c (arm_new_fork): Likewise.
6285
c9cb8905
SM
62862017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6287
6288 * dll.h: Include <list>.
6289 (struct dll_info): Add constructor.
6290 <entry>: Remove field.
6291 (all_dlls): Change type to std::list<dll_info>.
6292 * dll.c: Include <algorithm>.
6293 (get_dll): Remove macro.
6294 (all_dlls): Change type to std::list<dll_info *>.
6295 (free_one_dll): Remove.
6296 (match_dll): Likewise.
6297 (loaded_dll): Adjust.
6298 (unloaded_dll): Adjust to all_dlls type change, use
6299 std::find_if. Inline code from match_dll.
6300 (clear_dlls): Adjust to all_dlls type change.
6301 * server.c (emit_dll_description): Remove.
6302 (handle_qxfer_libraries): Adjust to all_dlls type change,
6303 integrate emit_dll_description's functionality.
6304
04ec7890
SM
63052017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6306
6307 * linux-low.h (struct linux_target_ops) <delete_process>: New
6308 field.
6309 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6310 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6311 (struct linux_target_ops): Add delete_process callback.
6312 * linux-arm-low.c (arm_delete_process): New.
6313 (struct linux_target_ops): Add delete_process callback.
6314 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6315 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6316 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6317 * linux-mips-low.c (mips_linux_delete_process): New.
6318 (struct linux_target_ops): Add delete_process callback.
6319 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6320 * linux-s390-low.c (struct linux_target_ops): Likewise.
6321 * linux-sh-low.c (struct linux_target_ops): Likewise.
6322 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6323 * linux-tile-low.c (struct linux_target_ops): Likewise.
6324 * linux-x86-low.c (x86_linux_delete_process): New.
6325 (struct linux_target_ops): Add delete_process callback.
6326 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6327
466eecee
SM
63282017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6329
6330 * linux-aarch64-low.c (the_low_target): Add thread delete
6331 callback.
6332 * linux-arm-low.c (arm_delete_thread): New function.
6333 (the_low_target): Add thread delete callback.
6334 * linux-bfin-low.c (the_low_target): Likewise.
6335 * linux-crisv32-low.c (the_low_target): Likewise.
6336 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6337 set.
6338 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6339 field.
6340 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6341 * linux-mips-low.c (mips_linux_delete_thread): New function.
6342 (the_low_target): Add thread delete callback.
6343 * linux-ppc-low.c (the_low_target): Likewise.
6344 * linux-s390-low.c (the_low_target): Likewise.
6345 * linux-sh-low.c (the_low_target): Likewise.
6346 * linux-tic6x-low.c (the_low_target): Likewise.
6347 * linux-tile-low.c (the_low_target): Likewise.
6348 * linux-x86-low.c (the_low_target): Likewise.
6349 * linux-xtensa-low.c (the_low_target): Likewise.
6350
b79f7801
YZ
63512017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6352
6353 * win32-low.c: Include "common-inferior.h".
6354
bc3b087d
SDJ
63552017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6356
6357 * inferiors.c (set_inferior_cwd): New function.
6358 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6359 (handle_query): Inform that QSetWorkingDir is supported.
6360 * win32-low.c (create_process): Pass the inferior's cwd to
6361 CreateProcess.
6362
d092c5a2
SDJ
63632017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6364
6365 * inferiors.c (current_inferior_cwd): New global variable.
6366 (get_inferior_cwd): New function.
6367 * inferiors.h (struct process_info) <cwd>: New field.
6368
7da0a886
SDJ
63692017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6370
6371 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6372 (OBS): Add gdb_tilde_expand.o.
6373
289a6840
SM
63742017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6375
6376 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6377 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6378
256642e8
PA
63792017-09-29 Pedro Alves <palves@redhat.com>
6380
6381 * ax.c (gdb_parse_agent_expr): Constify.
6382 * ax.h (gdb_parse_agent_expr): Constify.
6383 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6384 Constify.
6385 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6386 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6387 * remote-utils.h (read_ptid): Constify.
6388 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6389 (process_point_options, process_serial_event): Constify.
6390 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6391 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6392 (cmd_qtbuffer): Constify.
6393
5b9ca4d4
PA
63942017-09-29 Pedro Alves <palves@redhat.com>
6395
6396 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6397 fails.
6398
94c207e0
PA
63992017-09-29 Pedro Alves <palves@redhat.com>
6400
6401 * linux-low.c (handle_extended_wait): Pass parent thread instead
6402 of process to thread_db_notice_clone.
6403 * linux-low.h (thread_db_notice_clone): Replace parent process
6404 parameter with parent thread parameter.
6405 * thread-db.c (find_one_thread): Add comment.
6406 (thread_db_notice_clone): Replace parent process parameter with
6407 parent thread parameter. Temporarily switch to the parent thread.
6408
75352e28
SDJ
64092017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6410
6411 * gdbthread.h: Include "common-gdbthread.h".
6412 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6413 "if" when validating the ptid.
6414 * remote-utils.c: Include "gdbthread.h".
6415 (prepare_resume_reply): Use "switch_to_thread".
6416 * target.c (done_accessing_memory): Likewise.
6417
ad339634
AA
64182017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6419
6420 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6421 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6422 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6423 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6424 s390x-gs-linux64-ipa.o to ipa_obj.
6425 * linux-s390-low.c (HWCAP_S390_GS): New define.
6426 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6427 New functions.
6428 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6429 (s390_arch_setup): Check for guarded-storage support and choose
6430 appropriate tdesc.
6431 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6432 init_registers_s390x_gs_linux64.
6433 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6434 enum value.
6435 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6436 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6437
cc4d742f
SM
64382017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6439
6440 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6441
f6327dcb
KB
64422017-09-21 Kevin Buettner <kevinb@redhat.com>
6443
6444 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6445 (thread_db_thread_handle): Declare.
6446 * linux-low.c (linux_target_ops): Initialize thread_handle.
6447 * server.c (handle_qxfer_threads_worker): Add support for
6448 "handle" attribute.
6449 * target.h (struct target_ops): Add new function pointer,
6450 thread_handle.
6451 (target_thread_handle): Define.
6452 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6453 field in lwp.
6454 (thread_db_thread_handle): New function.
6455
86299109
KB
64562017-09-21 Kevin Buettner <kevinb@redhat.com>
6457
6458 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6459 * linux-low.h (thread_db_notice_clone): Declare.
6460 * thread-db.c (thread_db_notice_clone): New function.
6461
f557a88a
PA
64622017-09-21 Pedro Alves <palves@redhat.com>
6463
6464 * server.c (gdb_read_memory, handle_status, process_serial_event)
6465 (handle_serial_event, handle_target_event): Adjust to
6466 set_desired_thread prototype change.
6467 * target.c (set_desired_thread): Remove 'use_general' parameter
6468 and adjust.
6469 * target.h (set_desired_thread): Remove 'use_general' parameter.
6470
223ffa71
TT
64712017-09-20 Tom Tromey <tom@tromey.com>
6472
6473 * target.c (target_terminal::terminal_state): Define.
6474 (target_terminal::init): Rename from target_terminal_init.
6475 (target_terminal::inferior): Rename from
6476 target_terminal_inferior.
6477 (target_terminal::ours): Rename from target_terminal_ours.
6478 (target_terminal::ours_for_output, target_terminal::info): New.
6479
04fd3ba9
SM
64802017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6481
6482 * server.c (accumulate_file_name_length): Remove.
6483 (emit_dll_description): Adjust to std::string change.
6484 (handle_qxfer_libraries): Use std::string to hold document.
6485
5e187554
SM
64862017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6487
6488 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6489 return type of xml_escape_text.
6490 * server.c (emit_dll_description): Likewise.
6491
1526853e
SM
64922017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6493
6494 * server.c (captured_main): Accept argument for --selftest.
6495 Update run_tests call.
6496 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6497 when registering selftests.
6498
c4dfafab
SDJ
64992017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6500
6501 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6502 instead of "VEC" for "target_desc.reg_defs".
6503 (regcache_cpy): Likewise.
6504 (registers_to_string): Likewise.
6505 (registers_from_string): Likewise.
6506 (find_regno): Likewise.
6507 (supply_regblock): Likewise.
6508 (regcache_raw_read_unsigned): Likewise.
6509 * tdesc.c (init_target_desc): Likewise.
6510 (tdesc_create_reg): Likewise.
6511 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6512 (struct target_desc) <reg_defs>: Convert to "std::vector".
6513 (target_desc): Do not initialize "reg_defs".
6514 (~target_desc): Update code to use "std::vector" instead of "VEC"
6515 for "target_desc.reg_defs".
6516 (operator==): Likewise.
6517
124aceb4
SM
65182017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6519
6520 * inferiors.h (thread_to_gdb_id): Remove.
6521 * inferiors.c (thread_to_gdb_id): Remove.
6522 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6523 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6524 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6525 Likewise.
6526 * nto-low.c (nto_fetch_registers, nto_store_registers,
6527 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6528
96cde54f
SM
65292017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6530
6531 * inferiors.h (gdb_id_to_thread_id): Remove.
6532 * inferiors.c (gdb_id_to_thread_id): Remove.
6533 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6534 removal. Move pid declaration closer to where it's used.
6535
e8ca139e
SM
65362017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6537
6538 * server.c (handle_detach): New function.
6539 (process_serial_event): Move code out, call handle_detach.
6540
f8a4e119
SM
65412017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6542
6543 * server.c (require_running): Rename to ...
6544 (require_running_or_return): ... this ...
6545 (require_running_or_break): ... and this.
6546 (handle_query, process_serial_event): Adjust.
6547
0eb0a407
SM
65482017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6549
6550 * linux-low.c (linux_set_resume_request): Remove unused
6551 variables.
6552
785922a5
SM
65532017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6554
6555 * server.c (first_thread_of): Remove.
6556 (process_serial_event): Replace usage of first_thread_of with
6557 find_any_thread_of_pid.
6558 * tracepoint.c (same_process_p): Remove.
6559 (gdb_agent_about_to_close): Replace usage of same_process_p with
6560 find_any_thread_of_pid.
6561 * linux-x86-low.c (same_process_callback): Remove.
6562 (x86_arch_setup_process_callback): Replace usage of
6563 same_process_callback with find_any_thread_of_pid.
6564 * thread-db.c (any_thread_of): Remove.
6565 (switch_to_process): Replace usage of any_thread_of with
6566 find_any_thread_of_pid.
6567 * inferiors.c (thread_pid_matches_callback): Remove.
6568 (find_thread_process): Adjust to use find_any_thread_of_pid.
6569
a059f00c
SDJ
65702017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6571
6572 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6573 with "!VEC_empty".
a059f00c 6574
cc397f3a
SDJ
65752017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6576
6577 * linux-low.c (handle_extended_wait): Use
6578 "allocate_target_description" instead of "XNEW".
6579 * linux-x86-low.c (initialize_low_arch): Likewise.
6580
22916b07
YQ
65812017-09-05 Yao Qi <yao.qi@linaro.org>
6582
6583 * configure.srv (srv_i386_regobj): Remove.
6584 (srv_amd64_regobj): Remove.
6585 (srv_regobj): Set it to "" for x86 non-linux targets.
6586 * linux-x86-tdesc.c (i386_linux_read_description):
6587 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6588 (init_registers_i386): Remove the declaration.
6589 (tdesc_i386): Remove the declaration.
6590 (lynx_i386_arch_setup): Call i386_create_target_description.
6591 * nto-x86-low.c: Likewise.
6592 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6593 [!__x86_64__]: include arch/i386.h.
6594 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6595
38602d55
YQ
65962017-09-05 Yao Qi <yao.qi@linaro.org>
6597
6598 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6599 i386/amd64-XXX-linux from it.
6600
44b886ff
YQ
66012017-09-05 Yao Qi <yao.qi@linaro.org>
6602
6603 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6604 false.
6605 (ipa_amd64_linux_regobj): Remove.
6606 (ipa_x32_linux_regobj): Remove.
6607
b4570e4b
YQ
66082017-09-05 Yao Qi <yao.qi@linaro.org>
6609
6610 * Makefile.in (arch-amd64.o): New rule.
6611 * configure.srv: Append arch-amd64.o.
6612 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6613 (get_ipa_tdesc): Call amd64_linux_read_description.
6614 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6615 and init_registers_amd64_XXX.
6616 * linux-x86-low.c (x86_linux_read_description): Call
6617 amd64_linux_read_description.
6618 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6619 (initialize_low_arch): Don't call init_registers_x32_XXX and
6620 init_registers_amd64_XXX.
6621 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6622 and tdesc_amd64_XXX.
6623 [__x86_64__] (amd64_tdesc_test): New function.
6624 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6625 and init_registers_amd64_XXX.
6626 * linux-x86-tdesc.c: Include arch/amd64.h.
6627 (xcr0_to_tdesc_idx): New function.
6628 (i386_linux_read_description): New function.
6629 (amd64_get_ipa_tdesc_idx): New function.
6630 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6631 (amd64_get_ipa_tdesc): Declare.
6632
d1f28ea2
YQ
66332017-09-05 Yao Qi <yao.qi@linaro.org>
6634
6635 * configure.srv (srv_i386_linux_xmlfiles): Remove
6636 i386/i386-XXX-linux.xml from it.
6637
25a93583
YQ
66382017-09-05 Yao Qi <yao.qi@linaro.org>
6639
6640 * configure.srv: Set srv_i386_linux_regobj empty if $development
6641 is false.
6642 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6643 initialize_low_tdesc.
6644 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6645 with #if initialize_low_tdesc.
6646 * linux-x86-tdesc-selftest.c: New file.
6647 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6648
5f035c07
YQ
66492017-09-05 Yao Qi <yao.qi@linaro.org>
6650
6651 * Makefile.in (arch-i386.o): New rule.
6652 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6653 (x86_64-*-linux*): Likewise.
6654 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6655 include arch/i386.h.
6656 (i386_linux_read_description): Remove code and call
6657 i386_create_target_description.
6658 * tdesc.c (allocate_target_description): New function.
6659 * tdesc.h (set_tdesc_architecture): Remove declaration.
6660 (set_tdesc_osabi): Likewise.
6661
0abe8a89
YQ
66622017-09-05 Yao Qi <yao.qi@linaro.org>
6663
6664 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6665 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6666 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6667 .xmltarget.
6668 * server.c (get_features_xml): Call tdesc_get_features_xml.
6669 * tdesc.c (set_tdesc_architecture): New function.
6670 (set_tdesc_osabi): New function.
6671 (tdesc_get_features_xml): New function.
6672 (tdesc_create_feature): Add an argument.
6673 * tdesc.h (struct target_desc) <features>: New field.
6674 <arch, osabi>: New field.
6675 (~target_desc): xfree features, arch, and osabi.
6676 (target_desc::oerator==): Don't compare .xmltarget.
6677 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6678 (set_tdesc_osabi): Likewise.
6679 (tdesc_get_features_xml): Likewise.
6680
0a188386
YQ
66812017-09-05 Yao Qi <yao.qi@linaro.org>
6682
6683 * linux-x86-tdesc.c: Include selftest.h.
6684 (i386_tdesc_test): New function.
6685 (initialize_low_tdesc): Call selftests::register_test.
6686 * tdesc.h: Include regdef.h.
6687 (target_desc): Override operator == and !=.
6688
f49ff000
YQ
66892017-09-05 Yao Qi <yao.qi@linaro.org>
6690
6691 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6692 (ipa_obj): Likewise.
6693 * linux-i386-ipa.c: Include common/x86-xstate.h
6694 (get_ipa_tdesc): Call i386_linux_read_description.
6695 (initialize_low_tracepoint): Don't call init_registers_XXX
6696 functions, call initialize_low_tdesc instead.
6697 * linux-x86-low.c (x86_linux_read_description): Call
6698 i386_linux_read_description.
6699 (initialize_low_arch): Don't call init_registers_i386_XXX
6700 functions, call initialize_low_tdesc.
6701 * linux-x86-tdesc.c: New file.
6702 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6703 (i386_get_ipa_tdesc_idx): Declare.
6704 (i386_get_ipa_tdesc): Declare.
6705 (initialize_low_tdesc): Declare.
6706
2b68ef2f
YQ
67072017-09-05 Yao Qi <yao.qi@linaro.org>
6708
6709 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6710 instead of 0.
6711
f7000548
YQ
67122017-09-05 Yao Qi <yao.qi@linaro.org>
6713
6714 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6715 * regcache.c (get_thread_regcache): Use VEC_length.
6716 (init_register_cache): Likewise.
6717 (regcache_cpy): Likewise.
6718 (registers_to_string): Iterate reg_defs via VEC_iterate.
6719 (find_regno): Likewise.
6720 (find_register_by_number): Use VEC_index.
6721 (register_size): Call find_register_by_number.
6722 (register_data): Call find_register_by_number.
6723 (supply_regblock): Use VEC_length.
6724 (regcache_raw_read_unsigned): Likewise.
6725 * tdesc.c (init_target_desc): Iterate reg_defs via
6726 VEC_iterate.
6727 (default_description): Update initializer.
6728 (copy_target_description): Don't update field num_registers.
6729 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6730 <num_registers>: Remove.
6731
50a421ac
SM
67322017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6733
6734 * Makefile.in (.SECONDARY): Define target.
6735
23fdd69e
SM
67362017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6737
6738 * linux-low.c (linux_wait_1): Adjust.
6739 * server.c (queue_stop_reply_callback): Adjust.
6740
0a2dde4a
SDJ
67412017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6742
6743 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6744 QEnvironmentUnset and QEnvironmentReset packets.
6745 (handle_query): Inform remote that QEnvironmentHexEncoded,
6746 QEnvironmentUnset and QEnvironmentReset are supported.
6747
6afd337d
SM
67482017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6749
6750 * inferiors.h (inferior_target_data): Rename to ...
6751 (thread_target_data): ... this.
6752 (inferior_regcache_data): Rename to ...
6753 (thread_regcache_data): ... this.
6754 (set_inferior_regcache_data): Rename to ...
6755 (set_thread_regcache_data): ... this.
6756 * inferiors.c (inferior_target_data): Rename to ...
6757 (thread_target_data): ... this.
6758 (inferior_regcache_data): Rename to ...
6759 (thread_regcache_data): ... this.
6760 (set_inferior_regcache_data): Rename to ...
6761 (set_thread_regcache_data): ... this.
6762 (free_one_thread): Update.
6763 * linux-low.h (get_thread_lwp): Update.
6764 * regcache.c (get_thread_regcache): Update.
6765 (regcache_invalidate_thread): Update.
6766 (free_register_cache_thread): Update.
6767 * win32-i386-low.c (update_debug_registers_callback): Update.
6768 (win32_get_current_dr): Update.
6769 * win32-low.c (thread_rec): Update.
6770 (delete_thread_info): Update.
6771 (continue_one_thread): Update.
6772 (suspend_one_thread): Update.
6773
a160cc46
SM
67742017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6775
6776 * inferiors.c (set_inferior_target_data): Remove.
6777 * inferiors.h (set_inferior_target_data): Remove.
6778
6d580b63
YQ
67792017-08-18 Yao Qi <yao.qi@linaro.org>
6780
6781 * Makefile.in (OBS): Add selftest.o.
6782 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6783 * configure, config.in: Re-generated.
6784 * server.c: Include common/sefltest.h.
6785 (captured_main): Handle option --selftest.
6786
f5a29eb0
YQ
67872017-08-09 Yao Qi <yao.qi@linaro.org>
6788
6789 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6790 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6791 i386-avx-mpx.o and i386-mmx.o.
6792 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6793 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6794 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6795 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6796 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6797 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6798 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6799 i386/amd64-avx-mpx.xml.
6800
57757c2f
YQ
68012017-08-09 Yao Qi <yao.qi@linaro.org>
6802
6803 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6804 and x32-avx-avx512.o.
6805 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6806 i386/x32-avx-avx512.xml.
6807
229d26fc
SM
68082017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6809
6810 * tracepoint.h (enum class fast_tpoint_collect_result): New
6811 enumeration.
6812 (fast_tracepoint_collecting): Change return type to
6813 fast_tpoint_collect_result.
6814 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6815 * linux-low.h: Include tracepoint.h.
6816 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6817 fast_tpoint_collect_result.
6818 * linux-low.c (handle_tracepoints): Adjust.
6819 (linux_fast_tracepoint_collecting): Change return type to
6820 fast_tpoint_collect_result.
6821 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6822 linux_wait_1, stuck_in_jump_pad_callback,
6823 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6824 proceed_one_lwp): Adjust to type change.
6825
2e1e43e1
YQ
68262017-07-10 Yao Qi <yao.qi@linaro.org>
6827
6828 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6829
adc764e7
YQ
68302017-06-29 Yao Qi <yao.qi@linaro.org>
6831
6832 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6833 Remove.
6834 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6835
a206891a
SM
68362017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6837
6838 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6839
9a6c7d9c
SDJ
68402017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6841
6842 * linux-low.c (linux_create_inferior): Adjust code to access the
6843 environment information via 'gdb_environ' class.
6844 * lynx-low.c (lynx_create_inferior): Likewise.
6845 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6846 (get_environ): Return a pointer to 'our_environ'.
6847 (captured_main): Initialize 'our_environ'.
6848 * server.h (get_environ): Adjust prototype.
6849 * spu-low.c (spu_create_inferior): Adjust code to access the
6850 environment information via 'gdb_environ' class.
6851
ae3e2ccf
SM
68522017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6853
6854 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6855 usage of "register" keyword.
6856
3e019bdc
SM
68572017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6858
6859 * configure: Re-generate.
6860
8465943a
SM
68612017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6862
6863 * configure: Re-generate.
6864
cf0dd6f0
SM
68652017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6866
6867 * Makefile.in (COMPILE.pre): Add "-x c++".
6868
9845682b
SDJ
68692017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6870
6871 * fork-child.c: Conditionally include <signal.h>.
6872
aefd8b33
SDJ
68732017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6874
6875 * server.c (handle_general_set): Handle new packet
6876 "QStartupWithShell".
6877 (handle_query): Add "QStartupWithShell" to the list of supported
6878 packets.
6879 (gdbserver_usage): Add help text explaining the
6880 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6881 options.
6882 (captured_main): Recognize and act upon the presence of the new
6883 CLI options.
6884
2090129c
SDJ
68852017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6886 Pedro Alves <palves@redhat.com>
6887
6888 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6889 * configure: Regenerate.
6890 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6891 "fork-inferior.o".
6892 (i[34567]86-*-lynxos*): Likewise.
6893 (spu*-*-*): Likewise.
6894 * fork-child.c: New file.
6895 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6896 and "environ.h".
6897 (linux_ptrace_fun): New function.
6898 (linux_create_inferior): Adjust function prototype to reflect
6899 change on "target.h". Adjust function code to use
6900 "fork_inferior".
6901 (linux_request_interrupt): Delete "signal_pid".
6902 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6903 (lynx_ptrace_fun): New function.
6904 (lynx_create_inferior): Adjust function prototype to reflect
6905 change on "target.h". Adjust function code to use
6906 "fork_inferior".
6907 * nto-low.c (nto_create_inferior): Adjust function prototype and
6908 code to reflect change on "target.h". Update comments.
6909 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6910 "common-terminal.h" and "environ.h".
6911 (terminal_fd): Moved to fork-child.c.
6912 (old_foreground_pgrp): Likewise.
6913 (restore_old_foreground_pgrp): Likewise.
6914 (last_status): Make it global.
6915 (last_ptid): Likewise.
6916 (our_environ): New variable.
6917 (startup_with_shell): Likewise.
6918 (program_name): Likewise.
6919 (program_argv): Rename to...
6920 (program_args): ...this.
6921 (wrapper_argv): New variable.
6922 (start_inferior): Delete function.
6923 (get_exec_wrapper): New function.
6924 (get_exec_file): Likewise.
6925 (get_environ): Likewise.
6926 (prefork_hook): Likewise.
6927 (post_fork_inferior): Likewise.
6928 (postfork_hook): Likewise.
6929 (postfork_child_hook): Likewise.
6930 (handle_v_run): Update code to deal with arguments coming from the
6931 remote host. Update calls from "start_inferior" to
6932 "create_inferior".
6933 (captured_main): Likewise. Initialize environment variable. Call
6934 "have_job_control".
6935 * server.h (post_fork_inferior): New prototype.
6936 (get_environ): Likewise.
6937 (last_status): Declare.
6938 (last_ptid): Likewise.
6939 (signal_pid): Likewise.
6940 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6941 (spu_ptrace_fun): New function.
6942 (spu_create_inferior): Adjust function prototype to reflect change
6943 on "target.h". Adjust function code to use "fork_inferior".
6944 * target.c (target_terminal_init): New function.
6945 (target_terminal_inferior): Likewise.
6946 (target_terminal_ours): Likewise.
6947 * target.h: Include <vector>.
6948 (struct target_ops) <create_inferior>: Update prototype.
6949 (create_inferior): Update macro.
6950 * utils.c (gdb_flush_out_err): New function.
6951 * win32-low.c (win32_create_inferior): Adjust function prototype
6952 and code to reflect change on "target.h".
6953
043a4934
SDJ
69542017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6955
6956 * inferiors.c (switch_to_thread): New function.
6957
15652511
SDJ
69582017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6959
6960 * Makefile.in (SFILE): Add "common/job-control.c".
6961 (OBS): Add "job-control.o".
6962
21ea5acd
SDJ
69632017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6964
6965 * Makefile: Remove "@host_makefile_frag@".
6966
e13cb306
PA
69672017-05-05 Pedro Alves <palves@redhat.com>
6968
6969 * configure: Regenerate.
6970
c94fee56
SDJ
69712017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6972
6973 * configure: Regenerate.
6974
a0ff9e1a
SM
69752017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6976
6977 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
6978 software_single_step change of return type to
6979 std::vector<CORE_ADDR>.
6980 * linux-low.c (install_software_single_step_breakpoints):
6981 Likewise.
6982 * linux-low.h (install_software_single_step_breakpoints):
6983 Likewise.
6984
be628ab8
SDJ
69852017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6986
6987 * remote-utils.c: Include "gdb_termios.h" instead of
6988 "terminal.h".
6989 * terminal.h: Delete file.
6990
7c5ded6a
SDJ
69912017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6992
6993 * server.c: Include <vector>.
6994 <program_argv, wrapper_argv>: Convert to std::vector.
6995 (start_inferior): Rewrite function to use C++.
6996 (handle_v_run): Likewise. Update code that calculates the argv
6997 based on the vRun packet; use C++.
6998 (captured_main): Likewise.
6999
436252de
SM
70002017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7001
7002 * server.c (handle_v_cont): Initialize thread_resume::thread
7003 with null_ptid.
7004
9bf2a700
PA
70052017-04-05 Pedro Alves <palves@redhat.com>
7006
7007 * configure: Regenerate.
7008
a121b7c1
PA
70092017-04-05 Pedro Alves <palves@redhat.com>
7010
7011 * gdbreplay.c (sync_error): Constify.
7012 * linux-x86-low.c (push_opcode): Constify.
7013
21c8a587
PA
70142017-04-05 Pedro Alves <palves@redhat.com>
7015
7016 * win32-low.c (get_child_debug_event)
7017 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7018 Report TARGET_WAITKIND_SPURIOUS instead.
7019
fb32b4f7
PA
70202017-04-05 Pedro Alves <palves@redhat.com>
7021
e79be6e5
SM
7022 * remote-utils.c (remote_prepare, remote_open): Constify.
7023 * remote-utils.h (remote_prepare, remote_open): Constify.
7024 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7025
65dd1e59
SM
70262017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7027
7028 * Makefile.in (clean): Clear .deps.
7029
8fa5b777
SM
70302017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7031
7032 * .gitignore: Remove generated files, replace with wildcard.
7033 * (clean): Replace removal of generated files with wildcard.
7034 (version.c): Replace with...
7035 (version-generated.c): ...this.
7036 (xml-builtin.c): Replace with...
7037 (xml-builtin-generated.c): ...this.
7038 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7039 (%.c: *regformats*): Replace with...
7040 (%-generated.c: *regformats*): ...this.
7041
a12e714b
MF
70422017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7043
7044 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7045 (xtensa_fill_gregset): Call collect_register_by_name for
7046 threadptr register.
7047 (xtensa_store_gregset): Call supply_register_by_name for
7048 threadptr register.
7049
1a09b50a
MF
70502017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7051
7052 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7053 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7054 (xtensa_store_gregset): Call supply_register for all registers in
7055 a0_regnum..a0_regnum + C0_NREGS range.
7056
1a01e7c6
SM
70572017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7058
7059 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7060 (ax-ipa.o: ax.c): Remove.
7061 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7062 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7063 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7064 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7065 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7066
36bc18a8
SM
70672017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7068
7069 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7070 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7071 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7072 (errors-ipa.o: ../common/errors.c): Remove.
7073 (format-ipa.o: ../common/format.c): Remove.
7074 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7075
a8ebe3d5
SM
70762017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7077
7078 * Makefile.in (%-ipa.o: %.c): New rule.
7079 (tracepoint-ipa.o: tracepoint.c): Remove.
7080 (utils-ipa.o: utils.c): Remove.
7081 (remote-utils-ipa.o: remote-utils.c): Remove.
7082 (regcache-ipa.o: regcache.c): Remove.
7083 (i386-linux-ipa.o: i386-linux.c): Remove.
7084 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7085 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7086 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7087 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7088 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7089 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7090 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7091 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7092 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7093 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7094 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7095 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7096 (aarch64-ipa.o: aarch64.c): Remove.
7097 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7098 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7099 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7100 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7101 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7102 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7103 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7104 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7105 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7106 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7107 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7108 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7109 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7110 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7111 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7112 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7113 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7114 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7115 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7116 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7117 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7118 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7119 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7120 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7121 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7122 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7123 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7124 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7125 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7126 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7127 (tdesc-ipa.o: tdesc.c): Remove.
7128 (x32-linux-ipa.o: x32-linux.c): Remove.
7129 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7130 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7131
50cfacb7
SM
71322017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7133
7134 * Makefile.in (%.o: ../arch/%.c): New rule.
7135 (arm.o: ../arch/arm.c): Remove.
7136 (arm-linux.o: ../arch/arm-linux.c): Remove.
7137 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7138 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7139
c5a22423
SM
71402017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7141
7142 * Makefile.in (%.o: ../nat/%.c): New rule.
7143 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7144 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7145 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7146 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7147 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7148 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7149 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7150 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7151 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7152 (linux-personality.o: ../nat/linux-personality.c): Remove.
7153 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7154 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7155 (x86-linux.o: ../nat/x86-linux.c): Remove.
7156 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7157 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7158
6bda016b
SM
71592017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7160
7161 * Makefile.in (%.o: ../common/%.c): New rule.
7162 (signals.o: ../common/signals.c): Remove.
7163 (print-utils.o: ../common/print-utils.c): Remove.
7164 (rsp-low.o: ../common/rsp-low.c): Remove.
7165 (common-utils.o: ../common/common-utils.c): Remove.
7166 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7167 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7168 (vec.o: ../common/vec.c): Remove.
7169 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7170 (xml-utils.o: ../common/xml-utils.c): Remove.
7171 (ptid.o: ../common/ptid.c): Remove.
7172 (buffer.o: ../common/buffer.c): Remove.
7173 (format.o: ../common/format.c): Remove.
7174 (filestuff.o: ../common/filestuff.c): Remove.
7175 (agent.o: ../common/agent.c): Remove.
7176 (errors.o: ../common/errors.c): Remove.
7177 (environ.o: ../common/environ.c): Remove.
7178 (common-debug.o: ../common/common-debug.c): Remove.
7179 (cleanups.o: ../common/cleanups.c): Remove.
7180 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7181 (fileio.o: ../common/fileio.c): Remove.
7182 (common-regcache.o: ../common/common-regcache.c): Remove.
7183 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7184 (new-op.o: ../common/new-op.c): Remove.
7185 (btrace-common.o: ../common/btrace-common.c): Remove.
7186
21122961
SM
71872017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7188
7189 * Makefile.in (%.o: ../target/%.c): New rule.
7190 (waitstatus.o: ../target/waitstatus.c): Remove.
7191
c362e621
SM
71922017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7193
7194 * Makefile.in
7195 (%.c: ../regformats/%.dat,
7196 (%.c: ../regformats/arm/%.dat,
7197 (%.c: ../regformats/i386/%.dat,
7198 (%.c: ../regformats/rs6000/%.dat): New rules.
7199 (aarch64.c): Remove.
7200 (reg-arm.c): Remove.
7201 (arm-with-iwmmxt.c): Remove.
7202 (arm-with-vfpv2.c): Remove.
7203 (arm-with-vfpv3.c): Remove.
7204 (arm-with-neon.c): Remove.
7205 (reg-bfin.c): Remove.
7206 (reg-cris.c): Remove.
7207 (reg-crisv32.c): Remove.
7208 (i386.c): Remove.
7209 (i386-linux.c): Remove.
7210 (i386-avx.c): Remove.
7211 (i386-avx-linux.c): Remove.
7212 (i386-avx-avx512.c): Remove.
7213 (i386-avx-avx512-linux.c): Remove.
7214 (i386-mpx.c): Remove.
7215 (i386-mpx-linux.c): Remove.
7216 (i386-avx-mpx-avx512-pku.c): Remove.
7217 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7218 (i386-avx-mpx.c): Remove.
7219 (i386-avx-mpx-linux.c): Remove.
7220 (i386-mmx.c): Remove.
7221 (i386-mmx-linux.c): Remove.
7222 (reg-ia64.c): Remove.
7223 (reg-m32r.c): Remove.
7224 (reg-m68k.c): Remove.
7225 (reg-cf.c): Remove.
7226 (mips-linux.c): Remove.
7227 (mips-dsp-linux.c): Remove.
7228 (mips64-linux.c): Remove.
7229 (mips64-dsp-linux.c): Remove.
7230 (nios2-linux.c): Remove.
7231 (powerpc-32.c): Remove.
7232 (powerpc-32l.c): Remove.
7233 (powerpc-altivec32l.c): Remove.
7234 (powerpc-cell32l.c): Remove.
7235 (powerpc-vsx32l.c): Remove.
7236 (powerpc-isa205-32l.c): Remove.
7237 (powerpc-isa205-altivec32l.c): Remove.
7238 (powerpc-isa205-vsx32l.c): Remove.
7239 (powerpc-e500l.c): Remove.
7240 (powerpc-64l.c): Remove.
7241 (powerpc-altivec64l.c): Remove.
7242 (powerpc-cell64l.c): Remove.
7243 (powerpc-vsx64l.c): Remove.
7244 (powerpc-isa205-64l.c): Remove.
7245 (powerpc-isa205-altivec64l.c): Remove.
7246 (powerpc-isa205-vsx64l.c): Remove.
7247 (s390-linux32.c): Remove.
7248 (s390-linux32v1.c): Remove.
7249 (s390-linux32v2.c): Remove.
7250 (s390-linux64.c): Remove.
7251 (s390-linux64v1.c): Remove.
7252 (s390-linux64v2.c): Remove.
7253 (s390-te-linux64.c): Remove.
7254 (s390-vx-linux64.c): Remove.
7255 (s390-tevx-linux64.c): Remove.
7256 (s390x-linux64.c): Remove.
7257 (s390x-linux64v1.c): Remove.
7258 (s390x-linux64v2.c): Remove.
7259 (s390x-te-linux64.c): Remove.
7260 (s390x-vx-linux64.c): Remove.
7261 (s390x-tevx-linux64.c): Remove.
7262 (tic6x-c64xp-linux.c): Remove.
7263 (tic6x-c64x-linux.c): Remove.
7264 (tic6x-c62x-linux.c): Remove.
7265 (reg-sh.c): Remove.
7266 (reg-sparc64.c): Remove.
7267 (reg-spu.c): Remove.
7268 (amd64.c): Remove.
7269 (amd64-linux.c): Remove.
7270 (amd64-avx.c): Remove.
7271 (amd64-avx-linux.c): Remove.
7272 (amd64-avx-avx512.c): Remove.
7273 (amd64-avx-avx512-linux.c): Remove.
7274 (amd64-mpx.c): Remove.
7275 (amd64-mpx-linux.c): Remove.
7276 (amd64-avx-mpx-avx512-pku.c): Remove.
7277 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7278 (amd64-avx-mpx.c): Remove.
7279 (amd64-avx-mpx-linux.c): Remove.
7280 (x32.c): Remove.
7281 (x32-linux.c): Remove.
7282 (x32-avx.c): Remove.
7283 (x32-avx-linux.c): Remove.
7284 (x32-avx-avx512.c): Remove.
7285 (x32-avx-avx512-linux.c): Remove.
7286 (reg-xtensa.c): Remove.
7287 (reg-tilegx.c): Remove.
7288 (reg-tilegx32.c): Remove.
7289
1672e0d9
SDJ
72902017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7291
7292 * Makefile.in (SFILES): Add "common/environ.c".
7293 (OBJS): Add "common/environ.h".
7294
239b6d10
WT
72952017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7296
7297 * configure.ac: Check if the fs_base and gs_base members of
7298 `struct user_regs_struct' exist.
7299 * config.in: Regenerated.
7300 * configure: Likewise.
7301
694b382c
AT
73022017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7303
7304 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7305 target_read_memory.
7306 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7307 (get_next_pcs_syscall_next_pc): Likewise.
7308
7dc53023
LM
73092016-12-23 Luis Machado <lgustavo@codesourcery.com>
7310
7311 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7312 * nto-x86-low.c: Likewise.
7313
ad02e4fe
SM
73142016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7315
7316 * Makefile.in: Include disable-implicit-rules.mk.
7317
dcb07cfa
PA
73182016-11-23 Pedro Alves <palves@redhat.com>
7319
7320 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7321 (debug_vprintf): Use std::chrono::steady_clock instead of
7322 gettimeofday. Use '.' instead of ':'.
7323 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7324 (get_timestamp): Use std::chrono::steady_clock instead of
7325 gettimeofday.
7326
8629c02c
SM
73272016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7328
7329 * Makefile.in: Fix whitespace formatting.
7330
b593ecca
SM
73312016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7332
7333 * Makefile.in (SFILES, OBS): Flatten list and order
7334 alphabetically.
7335
9986ba08
PA
73362016-11-23 Pedro Alves <palves@redhat.com>
7337
7338 * event-loop.c (handle_file_event): Use warning.
7339 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7340 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7341 Use warning.
7342
4eefa7bc
PA
73432016-11-23 Pedro Alves <palves@redhat.com>
7344
7345 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7346 output.
7347 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7348 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7349 debug_printf and debug_flush for debug output.
7350 * server.c (handle_general_set): Likewise.
7351 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7352 output.
7353
5443506e
SM
73542016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7355
7356 * Makefile.in (.c.o): Replace rule with ...
7357 (%.o: %.c): ... this one.
7358
3b165252
SM
73592016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7360
7361 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7362 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7363 make.
7364 * configure.ac: Remove checks for the make program.
7365 * configure: Re-generate.
7366
0bcda685
PA
73672016-10-28 Pedro Alves <palves@redhat.com>
7368
7369 * Makefile.in (CXX_DIALECT): Get from configure.
7370 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7371 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7372 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7373 * config.in: Regenerate.
7374 * configure: Regenerate.
7375
c3805894
YQ
73762016-10-27 Yao Qi <yao.qi@linaro.org>
7377
7378 * linux-low.c (linux_supports_range_stepping): Return true if
7379 can_software_single_step return true.
7380
89342618
YQ
73812016-10-27 Yao Qi <yao.qi@linaro.org>
7382
7383 * inferiors.c (find_inferior_in_random): New function.
7384 * inferiors.h (find_inferior_in_random): Declare.
7385 * linux-low.c (linux_wait_for_event_filtered): Call
7386 find_inferior_in_random instead of find_inferior.
7387
e3652c84
YQ
73882016-10-27 Yao Qi <yao.qi@linaro.org>
7389
7390 * linux-low.c (linux_wait_1): If single-step breakpoints are
7391 inserted, remove them.
7392
5a04c4cf
PA
73932016-10-26 Pedro Alves <palves@redhat.com>
7394
7395 * linux-low.c (handle_extended_wait): Link parent/child fork
7396 threads.
7397 (linux_wait_1): Unlink them.
7398 (linux_set_resume_request): Ignore resume requests for
7399 already-resumed and unhandled fork child threads.
7400 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7401 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7402 New functions.
7403 (handle_v_requests) <vCont>: Don't call require_running.
7404 * server.h (in_queued_stop_replies): New declaration.
7405
cb93dc7f
YQ
74062016-10-24 Yao Qi <yao.qi@linaro.org>
7407
7408 PR server/20733
7409 * linux-aarch64-low.c (append_insns): Cast the return value to
7410 'uint32_t *'.
7411
a1078bea
YQ
74122016-10-10 Yao Qi <yao.qi@linaro.org>
7413
7414 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7415
1fb77080
SDJ
74162016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7417
7418 * target.c (target_supports_multi_process): New function, moved
7419 from...
7420 * target.h (target_supports_multi_process): ... here. Remove
7421 macro.
7422
39b5a3b9
TT
74232016-10-05 Tom Tromey <tom@tromey.com>
7424
7425 PR remote/20655:
7426 * tracepoint.c (handle_tracepoint_bkpts): Check
7427 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7428
c1d0b70a
YQ
74292016-10-05 Yao Qi <yao.qi@linaro.org>
7430
7431 * configure.srv: Update the path of arm-*.xml files.
7432
0a69eedb
YQ
74332016-10-05 Terry Guo <terry.guo@arm.com>
7434 Yao Qi <yao.qi@linaro.org>
7435
7436 * Makefile.in: Adjust the path of rules.
7437 * configure.srv: Update the path of xml files.
7438 * regformats/arm-with-iwmmxt.dat: Regenerated.
7439 * regformats/arm-with-neon.dat: Likewise.
7440 * regformats/arm-with-vfpv2.dat: Likewise.
7441 * regformats/arm-with-vfpv3.dat Likewise.
7442
17e16485
YQ
74432016-09-30 Yao Qi <yao.qi@linaro.org>
7444
7445 PR gdbserver/20627
7446 * target.c (target_stop_and_wait): Don't call
7447 target_continue_no_signal, use resume_stop instead.
7448
edeeb602
YQ
74492016-09-26 Yao Qi <yao.qi@linaro.org>
7450
7451 * linux-low.c (linux_wait_1): Call debug_exit.
7452
503b1c39
PA
74532016-09-23 Pedro Alves <palves@redhat.com>
7454
7455 * Makefile.in (SFILES): Add common/new-op.c.
7456 (OBS): Add common/new-op.o.
7457 (new-op.o): New rule.
7458
74172ecf
SM
74592016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7460
7461 * .gitinore: Ignore more files.
7462
fc6cda2e
YQ
74632016-09-21 Yao Qi <yao.qi@linaro.org>
7464
7465 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7466 23.
7467
bc1e6c81
SDJ
74682016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7469
7470 * server.c (start_inferior): Call target_mourn_inferior instead of
7471 mourn_inferior; pass ptid_t argument to it.
7472 (resume): Likewise.
7473 (handle_target_event): Likewise.
7474 * target.c (target_mourn_inferior): New function.
7475 * target.h (mourn_inferior): Delete macro.
7476
0e00e962
AA
74772016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7478
7479 * linux-low.c (lwp_is_stepping): New function.
7480
1d8cb77d
CL
74812016-09-06 Carl Love <cel@us.ibm.com>
7482
7483 * server.c (start_inferior): Fixed comment, requested comment change
7484 didn't get updated correctly. Removed reference to ptrace () call as
7485 it is only true on Linux systems.
7486
7313bced
CL
74872016-09-06 Carl Love <cel@us.ibm.com>
7488
7489 * server.c (start_inferior): Do not call
7490 function target_post_create_inferior () if the
7491 inferior process has already exited.
7492
cf6de44d
PA
74932016-09-05 Pedro Alves <palves@redhat.com>
7494
7495 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7496 (COMPILE.pre, CC_LD): Use CXX directly.
7497 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7498 * acinclude.m4: Don't include build-with-cxx.m4.
7499 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7500 * configure: Regenerate.
7501
c1da6748
AT
75022016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7503
7504 PR gdb/19495
7505 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7506 call writing data to own_buf.
7507
f2b9e3df
SDJ
75082016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7509
7510 * target.c (mywait): Call target_wait instead of
7511 the_target->wait.
7512 (target_wait): New function.
7513
049a8570
SDJ
75142016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7515
7516 * server.c (start_inferior): New variable 'ptid'. Replace calls
7517 to the_target->resume by target_continue{,_no_signal}, depending
7518 on the case.
7519 * target.c (target_stop_and_wait): Call target_continue_no_signal
7520 instead of the_target->resume.
7521 (target_continue): New function.
7522
3aa5cfa0
AT
75232016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7524
7525 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7526
754653a7
AZ
75272016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7528
7529 PR server/20491
7530 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7531 ps_prochandle.
7532 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7533 * linux-arm-low.c (ps_get_thread_area): Likewise.
7534 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7535 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7536 * linux-mips-low.c (ps_get_thread_area): Likewise.
7537 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7538 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7539 * linux-x86-low.c (ps_get_thread_area): Likewise.
7540 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7541
ed036b40
PA
75422016-08-19 Pedro Alves <palves@redhat.com>
7543
7544 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7545
c8ef42ee
PA
75462016-08-19 Pedro Alves <palves@redhat.com>
7547
7548 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7549 comment. Use memcpy instead of casting through unsigned long.
7550
9c235a72
PA
75512016-08-19 Pedro Alves <palves@redhat.com>
7552
7553 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7554 allocating around 0x80000000.
7555
201506da
PA
75562016-08-19 Pedro Alves <palves@redhat.com>
7557
7558 PR gdb/20415
7559 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7560 (x32-avx512-linux-ipa.o): New rules.
7561 * configure.ac (x86_64-*-linux*): New x32 check.
7562 * configure.srv (ipa_x32_linux_regobj): New.
7563 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7564 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7565 descriptions.
7566 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7567 descriptions.
7568 * configure: Regenerate.
7569
f348d89a
PA
75702016-08-09 Pedro Alves <palves@redhat.com>
7571
7572 PR gdb/18653
7573 * Makefile.in (OBS): Add signals-state-save-restore.o.
7574 (signals-state-save-restore.o): New rule.
7575 * config.in: Regenerate.
7576 * configure: Regenerate.
7577 * linux-low.c: Include "signals-state-save-restore.h".
7578 (linux_create_inferior): Call
7579 restore_original_signals_state.
7580 * server.c: Include "dispositions-save-restore.h".
7581 (captured_main): Call save_original_signals_state.
7582
1baf5149
PA
75832016-08-05 Pedro Alves <palves@redhat.com>
7584
7585 * configure: Regenerate.
7586
fcd4a73d
YQ
75872016-08-04 Yao Qi <yao.qi@linaro.org>
7588
7589 * linux-low.c (regsets_fetch_inferior_registers): Check
7590 errno is ESRCH or not.
7591
979659d0
YQ
75922016-08-02 Yao Qi <yao.qi@linaro.org>
7593
7594 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7595 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7596 (thread_db_load_search): Update.
7597 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7598 td_ta_set_event and td_ta_event_getmsg.
7599
6598661d
PA
76002016-07-26 Pedro Alves <palves@redhat.com>
7601
7602 PR server/20414
7603 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7604 of unsigned long for 64-bit registers and use uint32_t instead of
7605 unsigned int for 32-bit registers.
7606
9cf12d57
PA
76072016-07-26 Pedro Alves <palves@redhat.com>
7608
7609 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7610 to 'ptrace'.
7611
305450ed
TT
76122016-07-21 Tom Tromey <tom@tromey.com>
7613
7614 * configure: Rebuild.
7615
2583da7c
YQ
76162016-07-21 Yao Qi <yao.qi@linaro.org>
7617
7618 * mem-break.c (find_gdb_breakpoint): Cast bp to
7619 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7620
21536b36
YQ
76212016-07-21 Yao Qi <yao.qi@linaro.org>
7622
7623 * server.c (handle_v_requests): Support s and S actions
7624 if target_supports_software_single_step return true.
7625
8901d193
YQ
76262016-07-21 Yao Qi <yao.qi@linaro.org>
7627
7628 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7629 is resume_step, call maybe_hw_step.
7630 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7631 and unstop them.
7632 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7633 breakpoints or not.
7634 (proceed_one_lwp): If resume request is resume_step, install
7635 reinsert breakpoints and call maybe_hw_step.
7636
0e9a339e
YQ
76372016-07-21 Yao Qi <yao.qi@linaro.org>
7638
7639 * linux-low.c (proceed_one_lwp): Declare.
7640 (linux_resume_one_thread): Remove local variable 'step'.
7641 Lift code enqueue signal. Call proceed_one_lwp instead of
7642 linux_resume_one_lwp.
7643
4281b351
YQ
76442016-07-21 Yao Qi <yao.qi@linaro.org>
7645
7646 * linux-low.c (linux_resume_one_thread): Call
7647 enqueue_pending_signal.
7648
984a2c04
YQ
76492016-07-21 Yao Qi <yao.qi@linaro.org>
7650
7651 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7652 * inferiors.c (do_restore_current_thread_cleanup): New function.
7653 (make_cleanup_restore_current_thread): Likewise.
7654 * linux-low.c (install_software_single_step_breakpoints): Call
7655 make_cleanup_restore_current_thread. Switch current_thread to
7656 thread.
7657
bec903c9
YQ
76582016-07-21 Yao Qi <yao.qi@linaro.org>
7659
7660 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7661 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7662 (clone_one_breakpoint): Likewise.
7663 (delete_reinsert_breakpoints): Change parameter to thread.
7664 Callers updated.
7665 (has_reinsert_breakpoints): Likewise.
7666 (uninsert_reinsert_breakpoints): Likewise.
7667 (reinsert_reinsert_breakpoints): Likewise.
7668 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7669 (delete_reinsert_breakpoints): Likewise.
7670 (reinsert_reinsert_breakpoints): Likewise.
7671 (uninsert_reinsert_breakpoints): Likewise.
7672 (has_reinsert_breakpoints): Likewise.
7673
63c40ec7
YQ
76742016-07-21 Yao Qi <yao.qi@linaro.org>
7675
7676 * inferiors.c (get_thread_process): Make parameter const.
7677 * inferiors.h (get_thread_process): Update declaration.
7678 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7679 Add new parameters child_thread and parent_thread. Callers
7680 updated.
7681 * mem-break.h (clone_all_breakpoints): Update declaration.
7682
9aa76cd0
YQ
76832016-07-21 Yao Qi <yao.qi@linaro.org>
7684
7685 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7686 <command_list, handler>: Remove.
7687 (struct gdb_breakpoint): New.
7688 (struct other_breakpoint): New.
7689 (struct reinsert_breakpoint): New.
7690 (is_gdb_breakpoint): New function.
7691 (any_persistent_commands): Update command_list if
7692 is_gdb_breakpoint returns true.
7693 (set_breakpoint): Create breakpoints according to their types.
7694 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7695 (set_gdb_breakpoint_1): Likewise.
7696 (set_gdb_breakpoint): Likewise.
7697 (clear_breakpoint_conditions): Change parameter type to
7698 'struct gdb_breakpoint *'.
7699 (clear_breakpoint_commands): Likewise.
7700 (clear_breakpoint_conditions_and_commands): Likewise.
7701 (add_condition_to_breakpoint): Likewise.
7702 (add_breakpoint_condition): Likewise.
7703 (add_commands_to_breakpoint): Likewise.
7704 (check_breakpoints): Check other_breakpoint.
7705 (clone_one_breakpoint): Clone breakpopint according to its type.
7706 * mem-break.h (struct gdb_breakpoint): Declare.
7707 (set_gdb_breakpoint): Update declaration.
7708 (clear_breakpoint_conditions_and_commands): Likewise.
7709 (add_breakpoint_condition): Likewise.
7710 (add_breakpoint_commands): Likewise.
7711 * server.c (process_point_options): Change parameter type to
7712 'struct gdb_breakpoint *'.
7713
811f8301
YQ
77142016-07-21 Yao Qi <yao.qi@linaro.org>
7715
7716 * mem-break.c (set_breakpoint_at): Rename it to ...
7717 (set_breakpoint_type_at): ... it.
7718 (set_breakpoint_at): Call set_breakpoint_type_at.
7719 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7720 * mem-break.h (set_breakpoint_at): Update comments.
7721
b1c51e36
CLT
77222016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7723
7724 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7725 to buf parameter.
7726 (nios2_store_gregset): Likewise.
7727
ced2dffb
PA
77282016-07-01 Pedro Alves <palves@redhat.com>
7729 Antoine Tremblay <antoine.tremblay@ericsson.com>
7730
7731 * linux-low.c: Change interface to take the target lwp_info
7732 pointer directly and return void. Handle detaching from a zombie
7733 thread.
7734 (linux_detach_lwp_callback): New function.
7735 (linux_detach): Detach from the leader thread after detaching from
7736 the clone threads.
7737
2ac09a5b
YQ
77382016-06-28 Yao Qi <yao.qi@linaro.org>
7739
7740 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7741 for variable new_offset.
7742 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7743 (aarch64_ftrace_insn_reloc_cb): Likewise.
7744 (aarch64_ftrace_insn_reloc_tb): Likewise.
7745 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7746 PRIx64 instead of PRIx32.
7747
79e7fd4f
YQ
77482016-06-28 Yao Qi <yao.qi@linaro.org>
7749
7750 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7751 (the_low_target): Install arm_get_syscall_trapinfo.
7752
061fc021
YQ
77532016-06-28 Yao Qi <yao.qi@linaro.org>
7754
7755 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7756 function.
7757 (the_low_target): Install aarch64_get_syscall_trapinfo.
7758
4cc32bec
YQ
77592016-06-28 Yao Qi <yao.qi@linaro.org>
7760
7761 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7762 Callers updated.
7763 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7764 Remove parameter sysno.
7765 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7766 sysret.
7767
782c1122
AA
77682016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7769
7770 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7771 (s390_emit_ne_goto): Likewise.
7772 (s390_emit_lt_goto): Likewise.
7773 (s390_emit_le_goto): Likewise.
7774 (s390_emit_gt_goto): Likewise.
7775 (s390_emit_ge_goto): Likewise.
7776 (s390x_emit_eq_goto): Likewise.
7777 (s390x_emit_ne_goto): Likewise.
7778 (s390x_emit_lt_goto): Likewise.
7779 (s390x_emit_le_goto): Likewise.
7780 (s390x_emit_gt_goto): Likewise.
7781 (s390x_emit_ge_goto): Likewise.
7782 (s390_emit_ops_impl): Mark variable static.
7783 (s390x_emit_ops): Likewise.
7784
2e7b624b
YQ
77852016-06-17 Yao Qi <yao.qi@linaro.org>
7786
7787 * linux-low.c (handle_extended_wait): Call
7788 uninsert_reinsert_breakpoints for the parent process. Remove
7789 reinsert breakpoints from the child process. Reinsert them to
7790 the parent process when vfork is done.
7791 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7792 (reinsert_reinsert_breakpoints): New function.
7793 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7794 (reinsert_reinsert_breakpoints): Declare.
7795
8a81c5d7
YQ
77962016-06-17 Yao Qi <yao.qi@linaro.org>
7797
7798 * linux-low.c (handle_extended_wait): If the parent is doing
7799 step-over, remove the reinsert breakpoints from the forked child.
7800
f50bf8e5
YQ
78012016-06-17 Yao Qi <yao.qi@linaro.org>
7802
7803 * linux-low.c (unsuspend_all_lwps): Declare.
7804 (linux_low_filter_event): If thread exited, call finish_step_over.
7805 If step-over is finished, unsuspend other threads.
7806
8376a3cb
YQ
78072016-06-17 Yao Qi <yao.qi@linaro.org>
7808
7809 * linux-low.c (linux_resume_one_lwp_throw): Assert
7810 has_reinsert_breakpoints returns false.
7811 * mem-break.c (delete_disabled_breakpoints): Assert
7812 bp type isn't reinsert_breakpoint.
7813
f79b145d
YQ
78142016-06-17 Yao Qi <yao.qi@linaro.org>
7815
7816 * linux-low.c (maybe_hw_step): New function.
7817 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7818 (finish_step_over): Switch current_thread to lwp temporarily,
7819 and assert has_reinsert_breakpoints returns true.
7820 (proceed_one_lwp): Call maybe_hw_step.
7821 * mem-break.c (has_reinsert_breakpoints): New function.
7822 * mem-break.h (has_reinsert_breakpoints): Declare.
7823
0ae534d2
JT
78242016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7825
7826 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7827
fcdad592
YQ
78282016-05-17 Yao Qi <yao.qi@linaro.org>
7829
7830 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7831 instead of find_inferior.
7832
9e784964
YQ
78332016-05-05 Yao Qi <yao.qi@linaro.org>
7834
7835 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7836 Initialize res to zero.
7837
cf2ebb6e
YQ
78382016-05-05 Yao Qi <yao.qi@linaro.org>
7839
7840 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7841 to uint32_t.
7842
c1aebf87
UW
78432016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7844
7845 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7846 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7847 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7848
35fd2deb 78492016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 7850 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
7851
7852 * tracepoint.c (write_inferior_int8): New function.
7853 (cmd_qtenable_disable): Write enable flag using
7854 write_inferior_int8.
7855
484b3c32
YQ
78562016-04-25 Yao Qi <yao.qi@linaro.org>
7857
7858 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7859 (need_step_over_p): Return zero if the LWP has pending signals
7860 can be delivered on software single step target.
7861
85ba7d86
YQ
78622016-04-25 Yao Qi <yao.qi@linaro.org>
7863
7864 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7865 return instead of error.
7866
3539aa13
YQ
78672016-04-22 Yao Qi <yao.qi@linaro.org>
7868
7869 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7870 to 23.
7871
5b061e98
YQ
78722016-04-22 Yao Qi <yao.qi@linaro.org>
7873
7874 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7875 signal when stepping over breakpoint with software single
7876 step.
7877
3451269c
PA
78782016-04-21 Pedro Alves <palves@redhat.com>
7879
7880 * linux-s390-low.c (s390_collect_ptrace_register)
7881 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7882 add casts.
7883 (s390_check_regset): Use void * instead of gdb_byte *.
7884
a2358508
PA
78852016-04-20 Pedro Alves <palves@redhat.com>
7886
7887 * configure: Renegerate.
7888
6885166d
YQ
78892016-04-20 Yao Qi <yao.qi@linaro.org>
7890
7891 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7892 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7893 number 16.
7894 (arm_store_gregset): Likewise.
7895
2b863f51
WT
78962016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7897
7898 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7899 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7900 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7901 (amd64-avx-mpx-linux.c): New rules.
7902 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7903 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7904 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7905 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7906 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7907 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7908 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7909 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7910 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7911 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7912 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7913 * linux-x86-low.c (x86_linux_read_description): Add case for
7914 X86_XSTATE_AVX_MPX_MASK.
7915 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7916 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7917 init_registers_i386_avx_mpx_linux.
7918 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7919 (initialize_low_tracepoint): Call
7920 init_registers_i386_avx_mpx_linux.
7921 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7922 (initialize_low_tracepoint): Call
7923 init_registers_amd64_avx_mpx_linux.
7924 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7925 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7926 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7927 declarations.
7928
9b30624b
PA
79292016-04-18 Pedro Alves <palves@redhat.com>
7930
7931 * configure: Regenerate.
7932
45e3745e
AT
79332016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7934
7935 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7936 (aarch64_emit_sub): Likewise.
7937
2afc13ff
PA
79382016-04-12 Pedro Alves <palves@redhat.com>
7939
7940 * utils.c (prepare_to_throw_exception): Delete.
7941
6e774b13
SM
79422016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7943
7944 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7945
4dca19f8
MK
79462016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7947
7948 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7949
d0a9981f
MK
79502016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
7951
7952 * linux-aarch64-ipa.c: Add <elf.h> include.
7953 * linux-ppc-ipa.c: Add <elf.h> include.
7954 * linux-s390-ipa.c: Add <elf.h> include.
7955
252db07e
MK
79562016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7957
7958 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
7959 (get_raw_reg_ptr): Likewise.
7960 (get_trace_state_variable_value_ptr): Likewise.
7961 (set_trace_state_variable_value_ptr): Likewise.
7962 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
7963 char *.
7964
14e2b6d9
MK
79652016-03-31 Wei-cheng Wang <cole945@gmail.com>
7966 Marcin Kościelnicki <koriakin@0x04.net>
7967
7968 PR/17221
7969 * linux-ppc-low.c (emit_insns): New function.
7970 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
7971 (ppc_emit_prologue): New function.
7972 (ppc_emit_epilogue): New function.
7973 (ppc_emit_add): New function.
7974 (ppc_emit_sub): New function.
7975 (ppc_emit_mul): New function.
7976 (ppc_emit_lsh): New function.
7977 (ppc_emit_rsh_signed): New function.
7978 (ppc_emit_rsh_unsigned): New function.
7979 (ppc_emit_ext): New function.
7980 (ppc_emit_zero_ext): New function.
7981 (ppc_emit_log_not): New function.
7982 (ppc_emit_bit_and): New function.
7983 (ppc_emit_bit_or): New function.
7984 (ppc_emit_bit_xor): New function.
7985 (ppc_emit_bit_not): New function.
7986 (ppc_emit_equal): New function.
7987 (ppc_emit_less_signed): New function.
7988 (ppc_emit_less_unsigned): New function.
7989 (ppc_emit_ref): New function.
7990 (ppc_emit_const): New function.
7991 (ppc_emit_reg): New function.
7992 (ppc_emit_pop): New function.
7993 (ppc_emit_stack_flush): New function.
7994 (ppc_emit_swap): New function.
7995 (ppc_emit_stack_adjust): New function.
7996 (ppc_emit_call): New function.
7997 (ppc_emit_int_call_1): New function.
7998 (ppc_emit_void_call_2): New function.
7999 (ppc_emit_if_goto): New function.
8000 (ppc_emit_goto): New function.
8001 (ppc_emit_eq_goto): New function.
8002 (ppc_emit_ne_goto): New function.
8003 (ppc_emit_lt_goto): New function.
8004 (ppc_emit_le_goto): New function.
8005 (ppc_emit_gt_goto): New function.
8006 (ppc_emit_ge_goto): New function.
8007 (ppc_write_goto_address): New function.
8008 (ppc_emit_ops_impl): New static variable.
8009 (ppc64v1_emit_prologue): New function.
8010 (ppc64v2_emit_prologue): New function.
8011 (ppc64_emit_epilogue): New function.
8012 (ppc64_emit_add): New function.
8013 (ppc64_emit_sub): New function.
8014 (ppc64_emit_mul): New function.
8015 (ppc64_emit_lsh): New function.
8016 (ppc64_emit_rsh_signed): New function.
8017 (ppc64_emit_rsh_unsigned): New function.
8018 (ppc64_emit_ext): New function.
8019 (ppc64_emit_zero_ext): New function.
8020 (ppc64_emit_log_not): New function.
8021 (ppc64_emit_bit_and): New function.
8022 (ppc64_emit_bit_or): New function.
8023 (ppc64_emit_bit_xor): New function.
8024 (ppc64_emit_bit_not): New function.
8025 (ppc64_emit_equal): New function.
8026 (ppc64_emit_less_signed): New function.
8027 (ppc64_emit_less_unsigned): New function.
8028 (ppc64_emit_ref): New function.
8029 (ppc64_emit_const): New function.
8030 (ppc64v1_emit_reg): New function.
8031 (ppc64v2_emit_reg): New function.
8032 (ppc64_emit_pop): New function.
8033 (ppc64_emit_stack_flush): New function.
8034 (ppc64_emit_swap): New function.
8035 (ppc64v1_emit_call): New function.
8036 (ppc64v2_emit_call): New function.
8037 (ppc64v1_emit_int_call_1): New function.
8038 (ppc64v2_emit_int_call_1): New function.
8039 (ppc64v1_emit_void_call_2): New function.
8040 (ppc64v2_emit_void_call_2): New function.
8041 (ppc64_emit_if_goto): New function.
8042 (ppc64_emit_eq_goto): New function.
8043 (ppc64_emit_ne_goto): New function.
8044 (ppc64_emit_lt_goto): New function.
8045 (ppc64_emit_le_goto): New function.
8046 (ppc64_emit_gt_goto): New function.
8047 (ppc64_emit_ge_goto): New function.
8048 (ppc64v1_emit_ops_impl): New static variable.
8049 (ppc64v2_emit_ops_impl): New static variable.
8050 (ppc_emit_ops): New function.
8051 (linux_low_target): Wire in ppc_emit_ops.
8052
a2174ba4
MK
80532016-03-31 Wei-cheng Wang <cole945@gmail.com>
8054 Marcin Kościelnicki <koriakin@0x04.net>
8055
8056 PR/17221
8057 * Makefile.in: Add powerpc-*-ipa.o
8058 * configure.srv: Add ipa_obj for powerpc*-linux.
8059 * linux-ppc-ipa.c: New file.
8060 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8061 includes.
8062 (PPC_FIELD): New macro.
8063 (PPC_SEXT): New macro.
8064 (PPC_OP6): New macro.
8065 (PPC_BO): New macro.
8066 (PPC_LI): New macro.
8067 (PPC_BD): New macro.
8068 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8069 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8070 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8071 (ppc_get_thread_area): New function.
8072 (is_elfv2_inferior): New function.
8073 (gen_ds_form): New function.
8074 (GEN_STD): New macro.
8075 (GEN_STDU): New macro.
8076 (GEN_LD): New macro.
8077 (GEN_LDU): New macro.
8078 (gen_d_form): New function.
8079 (GEN_ADDI): New macro.
8080 (GEN_ADDIS): New macro.
8081 (GEN_LI): New macro.
8082 (GEN_LIS): New macro.
8083 (GEN_ORI): New macro.
8084 (GEN_ORIS): New macro.
8085 (GEN_LWZ): New macro.
8086 (GEN_STW): New macro.
8087 (GEN_STWU): New macro.
8088 (gen_xfx_form): New function.
8089 (GEN_MFSPR): New macro.
8090 (GEN_MTSPR): New macro.
8091 (GEN_MFCR): New macro.
8092 (GEN_MTCR): New macro.
8093 (GEN_SYNC): New macro.
8094 (GEN_LWSYNC): New macro.
8095 (gen_x_form): New function.
8096 (GEN_OR): New macro.
8097 (GEN_MR): New macro.
8098 (GEN_LWARX): New macro.
8099 (GEN_STWCX): New macro.
8100 (GEN_CMPW): New macro.
8101 (gen_md_form): New function.
8102 (GEN_RLDICL): New macro.
8103 (GEN_RLDICR): New macro.
8104 (gen_i_form): New function.
8105 (GEN_B): New macro.
8106 (GEN_BL): New macro.
8107 (gen_b_form): New function.
8108 (GEN_BNE): New macro.
8109 (GEN_LOAD): New macro.
8110 (GEN_STORE): New macro.
8111 (gen_limm): New function.
8112 (gen_atomic_xchg): New function.
8113 (gen_call): New function.
8114 (ppc_relocate_instruction): New function.
8115 (ppc_install_fast_tracepoint_jump_pad): New function.
8116 (ppc_get_min_fast_tracepoint_insn_len): New function.
8117 (ppc_get_ipa_tdesc_idx): New function.
8118 (the_low_target): Wire in the new functions.
8119 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8120 tdescs.
8121 * linux-ppc-tdesc.h: New file.
8122
a13c4696
MK
81232016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8124
8125 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8126 (alloc_jump_pad_buffer): New function.
8127 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8128 (alloc_jump_pad_buffer): New function.
8129 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8130 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8131 (alloc_jump_pad_buffer): New function.
8132 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8133 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8134 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8135 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8136
1cda1512
MK
81372016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8138
8139 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8140 * linux-amd64-ipa.c: Likewise.
8141 * linux-i386-ipa.c: Likewise.
8142 * linux-s390-ipa.c: Likewise.
8143 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8144 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8145 set_trace_state_variable_value_ptr.
8146 (struct ipa_sym_addresses): Likewise.
8147 (symbol_list): Likewise.
8148 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8149 accessing gdb_collect directly.
8150 (gdb_collect_ptr_type): New typedef.
8151 (get_raw_reg_ptr_type): New typedef.
8152 (get_trace_state_variable_value_ptr_type): New typedef.
8153 (set_trace_state_variable_value_ptr_type): New typedef.
8154 (gdb_collect_ptr): New global.
8155 (get_raw_reg_ptr): New global.
8156 (get_trace_state_variable_value_ptr): New global.
8157 (set_trace_state_variable_value_ptr): New global.
8158 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8159 accessing get_raw_reg directly.
8160 (get_get_tsv_func_addr): Likewise for
8161 get_trace_state_variable_value_ptr.
8162 (get_set_tsv_func_addr): Likewise for
8163 set_trace_state_variable_value_ptr.
8164 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8165
72fb5488
SM
81662016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8167
8168 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8169
28170b88
MK
81702016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8171
8172 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8173 packets.
8174 (relocate_instruction): Remove own_buf.
8175 * server.c (own_buf): Make global.
8176 (handle_v_requests): Make global.
8177 * server.h (own_buf): New declaration.
8178 (handle_v_requests): New prototype.
8179
f39e8743
MK
81802016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8181
8182 PR 18377
8183 * linux-s390-low.c (add_insns): New function.
8184 (s390_emit_prologue): New function.
8185 (s390_emit_epilogue): New function.
8186 (s390_emit_add): New function.
8187 (s390_emit_sub): New function.
8188 (s390_emit_mul): New function.
8189 (s390_emit_lsh): New function.
8190 (s390_emit_rsh_signed): New function.
8191 (s390_emit_rsh_unsigned): New function.
8192 (s390_emit_ext): New function.
8193 (s390_emit_log_not): New function.
8194 (s390_emit_bit_and): New function.
8195 (s390_emit_bit_or): New function.
8196 (s390_emit_bit_xor): New function.
8197 (s390_emit_bit_not): New function.
8198 (s390_emit_equal): New function.
8199 (s390_emit_less_signed): New function.
8200 (s390_emit_less_unsigned): New function.
8201 (s390_emit_ref): New function.
8202 (s390_emit_if_goto): New function.
8203 (s390_emit_goto): New function.
8204 (s390_write_goto_address): New function.
8205 (s390_emit_litpool): New function.
8206 (s390_emit_const): New function.
8207 (s390_emit_call): New function.
8208 (s390_emit_reg): New function.
8209 (s390_emit_pop): New function.
8210 (s390_emit_stack_flush): New function.
8211 (s390_emit_zero_ext): New function.
8212 (s390_emit_swap): New function.
8213 (s390_emit_stack_adjust): New function.
8214 (s390_emit_set_r2): New function.
8215 (s390_emit_int_call_1): New function.
8216 (s390_emit_void_call_2): New function.
8217 (s390_emit_eq_goto): New function.
8218 (s390_emit_ne_goto): New function.
8219 (s390_emit_lt_goto): New function.
8220 (s390_emit_le_goto): New function.
8221 (s390_emit_gt_goto): New function.
8222 (s390_emit_ge_goto): New function.
8223 (s390x_emit_prologue): New function.
8224 (s390x_emit_epilogue): New function.
8225 (s390x_emit_add): New function.
8226 (s390x_emit_sub): New function.
8227 (s390x_emit_mul): New function.
8228 (s390x_emit_lsh): New function.
8229 (s390x_emit_rsh_signed): New function.
8230 (s390x_emit_rsh_unsigned): New function.
8231 (s390x_emit_ext): New function.
8232 (s390x_emit_log_not): New function.
8233 (s390x_emit_bit_and): New function.
8234 (s390x_emit_bit_or): New function.
8235 (s390x_emit_bit_xor): New function.
8236 (s390x_emit_bit_not): New function.
8237 (s390x_emit_equal): New function.
8238 (s390x_emit_less_signed): New function.
8239 (s390x_emit_less_unsigned): New function.
8240 (s390x_emit_ref): New function.
8241 (s390x_emit_if_goto): New function.
8242 (s390x_emit_const): New function.
8243 (s390x_emit_call): New function.
8244 (s390x_emit_reg): New function.
8245 (s390x_emit_pop): New function.
8246 (s390x_emit_stack_flush): New function.
8247 (s390x_emit_zero_ext): New function.
8248 (s390x_emit_swap): New function.
8249 (s390x_emit_stack_adjust): New function.
8250 (s390x_emit_int_call_1): New function.
8251 (s390x_emit_void_call_2): New function.
8252 (s390x_emit_eq_goto): New function.
8253 (s390x_emit_ne_goto): New function.
8254 (s390x_emit_lt_goto): New function.
8255 (s390x_emit_le_goto): New function.
8256 (s390x_emit_gt_goto): New function.
8257 (s390x_emit_ge_goto): New function.
8258 (s390_emit_ops): New function.
8259 (struct linux_target_ops): Fill in emit_ops hook.
8260
abd9baf9
MK
82612016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8262
8263 PR 18377
8264 * Makefile.in: Add s390 IPA files.
8265 * configure.srv: Build IPA for s390.
8266 * linux-s390-ipa.c: New file.
8267 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8268 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8269 (tdesc_s390_linux32): Likewise.
8270 (init_registers_s390_linux32v1): Likewise.
8271 (tdesc_s390_linux32v1): Likewise.
8272 (init_registers_s390_linux32v2): Likewise.
8273 (tdesc_s390_linux32v2): Likewise.
8274 (init_registers_s390_linux64): Likewise.
8275 (tdesc_s390_linux64): Likewise.
8276 (init_registers_s390_linux64v1): Likewise.
8277 (tdesc_s390_linux64v1): Likewise.
8278 (init_registers_s390_linux64v2): Likewise.
8279 (tdesc_s390_linux64v2): Likewise.
8280 (init_registers_s390_te_linux64): Likewise.
8281 (tdesc_s390_te_linux64): Likewise.
8282 (init_registers_s390_vx_linux64): Likewise.
8283 (tdesc_s390_vx_linux64): Likewise.
8284 (init_registers_s390_tevx_linux64): Likewise.
8285 (tdesc_s390_tevx_linux64): Likewise.
8286 (init_registers_s390x_linux64): Likewise.
8287 (tdesc_s390x_linux64): Likewise.
8288 (init_registers_s390x_linux64v1): Likewise.
8289 (tdesc_s390x_linux64v1): Likewise.
8290 (init_registers_s390x_linux64v2): Likewise.
8291 (tdesc_s390x_linux64v2): Likewise.
8292 (init_registers_s390x_te_linux64): Likewise.
8293 (tdesc_s390x_te_linux64): Likewise.
8294 (init_registers_s390x_vx_linux64): Likewise.
8295 (tdesc_s390x_vx_linux64): Likewise.
8296 (init_registers_s390x_tevx_linux64): Likewise.
8297 (tdesc_s390x_tevx_linux64): Likewise.
8298 (have_hwcap_s390_vx): New static variable.
8299 (s390_arch_setup): Fill have_hwcap_s390_vx.
8300 (s390_get_thread_area): New function.
8301 (s390_ft_entry_gpr_esa): New const.
8302 (s390_ft_entry_gpr_zarch): New const.
8303 (s390_ft_entry_misc): New const.
8304 (s390_ft_entry_fr): New const.
8305 (s390_ft_entry_vr): New const.
8306 (s390_ft_main_31): New const.
8307 (s390_ft_main_64): New const.
8308 (s390_ft_exit_fr): New const.
8309 (s390_ft_exit_vr): New const.
8310 (s390_ft_exit_misc): New const.
8311 (s390_ft_exit_gpr_esa): New const.
8312 (s390_ft_exit_gpr_zarch): New const.
8313 (append_insns): New function.
8314 (s390_relocate_instruction): New function.
8315 (s390_install_fast_tracepoint_jump_pad): New function.
8316 (s390_get_min_fast_tracepoint_insn_len): New function.
8317 (s390_get_ipa_tdesc_idx): New function.
8318 (struct linux_target_ops): Wire in the above functions.
8319 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8320 * linux-s390-tdesc.h: New file.
8321
a4105d04
MK
83222016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8323
8324 * linux-s390-low.c (s390_supports_tracepoints): New function.
8325 (struct linux_target_ops): Fill supports_tracepoints hook.
8326
35ac8b3e
YQ
83272016-03-18 Yao Qi <yao.qi@linaro.org>
8328
8329 * linux-low.c (lwp_signal_can_be_delivered): New function.
8330 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8331
94610ec4
YQ
83322016-03-18 Yao Qi <yao.qi@linaro.org>
8333
8334 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8335 0 if signal is enqueued. Remove 'signal' from one debugging
8336 message. Move one debugging message to some lines below.
8337 Remove code setting 'signal' to 0.
8338
80aea927
YQ
83392016-03-18 Yao Qi <yao.qi@linaro.org>
8340
8341 * linux-low.c (linux_low_filter_event): Remove redundant
8342 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8343
b04fd3be
MK
83442016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8345
8346 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8347 (struct linux_target_ops): Wire in the above.
8348
c40c8d4b
YQ
83492016-03-03 Yao Qi <yao.qi@linaro.org>
8350
8351 * linux-low.c: Update comments to start_step_over.
8352
0f8288ae
YQ
83532016-03-03 Yao Qi <yao.qi@linaro.org>
8354
8355 PR server/19736
8356 * linux-low.c (handle_extended_wait): Set child suspended
8357 if event_lwp->bp_reinsert isn't zero.
8358
fdbd04a8
YQ
83592016-03-02 Yao Qi <yao.qi@linaro.org>
8360
8361 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8362 enqueue_pending_signal.
8363
6896a8fa
MK
83642016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8365
8366 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8367 is actually loaded.
8368
ab503087
MK
83692016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8370
8371 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8372 (s390_regmap_3264) [!__s390x__]: New global.
8373 (s390_collect_ptrace_register): Skip map entries containing -1.
8374 (s390_supply_ptrace_register): Ditto.
8375 (s390_fill_gprs_high): New function.
8376 (s390_store_gprs_high): New function.
8377 (s390_regsets): Add NT_S390_HIGH_GPRS.
8378 (s390_get_hwcap): Enable on 31-bit.
8379 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8380 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8381 Detect NT_S390_HIGH_GPRS.
8382 (s390_usrregs_info_3264): Enable on 31-bit.
8383 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8384 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8385
ae91f625
MK
83862016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8387
8388 PR gdb/13808
8389 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8390 * configure.srv: Ditto.
8391 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8392 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8393 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8394 (init_registers_amd64_linux): Remove prototype.
8395 (tdesc_amd64_linux): Remove declaration.
8396 (get_ipa_tdesc): New function.
8397 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8398 initialize remaining tdescs.
8399 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8400 (init_registers_i386_linux): Remove prototype.
8401 (tdesc_i386_linux): Remove declaration.
8402 (get_ipa_tdesc): New function.
8403 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8404 initialize remaining tdescs.
8405 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8406 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8407 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8408 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8409 (x86_get_ipa_tdesc_idx): New function.
8410 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8411 * linux-x86-tdesc.h: New file.
8412 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8413 (target_get_ipa_tdesc_idx): New macro.
8414 * tracepoint.c (ipa_tdesc_idx): New macro.
8415 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8416 (symbol_list): Add ipa_tdesc_idx.
8417 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8418 (ipa_tdesc): Remove.
8419 (ipa_tdesc_idx): New variable.
8420 (get_context_regcache): Use get_ipa_tdesc.
8421 (gdb_collect): Ditto.
8422 (gdb_probe): Ditto.
8423 * tracepoint.h (get_ipa_tdesc): New prototype.
8424 (ipa_tdesc): Remove.
8425
e7ad2f14
PA
84262016-02-24 Pedro Alves <palves@redhat.com>
8427
8428 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8429 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8430 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8431 Factor out common code between the USE_SIGTRAP_SIGINFO and
8432 !USE_SIGTRAP_SIGINFO blocks.
8433 (linux_low_filter_event): Call save_stop_reason instead of
8434 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8435 Update comments.
8436 (linux_wait_1): Update comments.
8437
657f9cde
WW
84382016-02-24 Wei-cheng Wang <cole945@gmail.com>
8439
8440 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8441 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8442 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8443 ppc_insert_point, ppc_remove_point.
8444
b00b61e1
MK
84452016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8446
8447 * linux-s390-low.c (s390_supports_z_point_type): New function.
8448 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8449
553cb527
YQ
84502016-02-16 Yao Qi <yao.qi@linaro.org>
8451
8452 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8453 PC. Get pc from regcache_read_pc.
8454
a5652c21
YQ
84552016-02-12 Yao Qi <yao.qi@linaro.org>
8456
8457 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8458 or linux_get_pc_32bit.
8459 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8460
ed443b61
YQ
84612016-02-12 Yao Qi <yao.qi@linaro.org>
8462
8463 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8464 arm_linux_get_next_pcs_fixup.
8465
020ecd38
MK
84662016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8467
8468 * tracepoint.c (x_tracepoint_action_download): Change
8469 write_inferior_data_ptr to write_inferior_data_pointer.
8470 (cmd_qtstart): Likewise.
8471 (write_inferior_data_ptr): Remove.
8472 (download_agent_expr): Change write_inferior_data_ptr to
8473 write_inferior_data_pointer.
8474 (download_tracepoint_1): Likewise.
8475 (download_tracepoint): Likewise.
8476 (download_trace_state_variables): Likewise.
8477
7cae9051
WW
84782016-02-11 Wei-cheng Wang <cole945@gmail.com>
8479 Marcin Kościelnicki <koriakin@0x04.net>
8480
8481 * tracepoint.c (struct tracepoint_action_ops): Remove.
8482 (struct tracepoint_action): Remove ops.
8483 (m_tracepoint_action_download, r_tracepoint_action_download)
8484 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8485 size and offset accordingly.
8486 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8487 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8488 (tracepoint_action_send, tracepoint_action_download): New functions.
8489 Helpers for trace action handlers.
8490 (add_tracepoint_action): Remove setup actions ops.
8491 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8492
9f6a71b4
YQ
84932016-02-10 Yao Qi <yao.qi@linaro.org>
8494
8495 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8496
1e94266c
SM
84972016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8498
8499 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8500 to AC_OUTPUT.
8501 * configure: Regenerate.
8502
8adce034
SM
85032016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8504
8505 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8506 void * to gdb_byte *.
8507 * linux-low.c (siginfo_fixup): Likewise.
8508 (linux_xfer_siginfo): Likewise.
8509 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8510 Likewise.
8511 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8512
93813b37
WT
85132016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8514
8515 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8516 to srv_tgtobj.
8517 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8518 to srv_tgtobj.
8519 * linux-x86-low.c [__x86_64__]: Include
8520 "nat/amd64-linux-siginfo.h".
8521 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8522 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8523 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8524 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8525 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8526 (cpt_si_fd, si_timerid, si_overrun): Move from
8527 nat/amd64-linux-siginfo.c.
8528 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8529
8424cc97
SM
85302016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8531
8532 * server.c (skip_to_semicolon): Remove.
8533 (process_point_options): Use strchrnul instead of
8534 skip_to_semicolon.
8535
4d18591b
YQ
85362016-01-26 Yao Qi <yao.qi@linaro.org>
8537
8538 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8539 * linux-low.c (install_software_single_step_breakpoints): Don't
8540 call regcache_read_pc.
8541 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8542 argument pc.
8543
d8020970
YQ
85442016-01-26 Yao Qi <yao.qi@linaro.org>
8545
8546 * linux-low.c (install_software_single_step_breakpoints): Call
8547 regcache_read_pc instead of get_pc.
8548
8b207339
YQ
85492016-01-26 Yao Qi <yao.qi@linaro.org>
8550
8551 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8552 (unblock_async_io): Rename to ...
8553 (block_unblock_async_io): ... it. New function.
8554 (enable_async_io): Don't install SIGIO handler. Unblock it
8555 instead.
8556 (disable_async_io): Don't ignore SIGIO. Block it instead.
8557 (initialize_async_io): Install SIGIO handler. Don't call
8558 unblock_async_io.
8559
18879fef
YQ
85602016-01-26 Yao Qi <yao.qi@linaro.org>
8561
8562 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8563 first character is '\003', call *the_target->request_interrupt.
8564
a0f8e08a
YQ
85652016-01-25 Yao Qi <yao.qi@linaro.org>
8566
8567 * remote-utils.c (new_thread_notify): Remove.
8568 (dead_thread_notify): Likewise.
8569 * remote-utils.h (new_thread_notify): Remove declaration.
8570 (dead_thread_notify): Likewise.
8571
cc5fd9ab
MK
85722016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8573
8574 * gdb.trace/pending.exp: Fix expected message on continue.
8575
99e8eb11
MK
85762016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8577
8578 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8579 it works properly on big-endian machines where sizeof (CORE_ADDR)
8580 != sizeof (void *).
8581
a994041d
PA
85822016-01-21 Pedro Alves <palves@redhat.com>
8583
8584 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8585 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8586 * configure: Regenerate.
8587
f7a6a40d
YQ
85882016-01-21 Yao Qi <yao.qi@linaro.org>
8589
8590 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8591 is_thumb and set it according to CPSR saved on the stack.
8592 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8593 arm_sigreturn_next_pc.
8594
6f69e520
YQ
85952016-01-18 Yao Qi <yao.qi@linaro.org>
8596
8597 * linux-low.c (linux_set_pc_64bit): New function.
8598 (linux_get_pc_64bit): New function.
8599 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8600 Declare.
8601 * linux-sparc-low.c (debug_threads): Remove declaration.
8602 (sparc_get_pc): Remove.
8603 (the_low_target): Use linux_get_pc_64bit instead of
8604 sparc_get_pc.
8605 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8606 (the_low_target): Use linux_get_pc_64bit and
8607 linux_set_pc_64bit.
8608
276d4552
YQ
86092016-01-18 Yao Qi <yao.qi@linaro.org>
8610
8611 * linux-arm-low.c (debug_threads): Remove declaration.
8612 (arm_get_pc, arm_set_pc): Remove.
8613 (the_low_target): Use linux_get_pc_32bit and
8614 linux_set_pc_32bit.
8615 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8616 (the_low_target): Use linux_get_pc_32bit and
8617 linux_set_pc_32bit.
8618 * linux-cris-low.c (debug_threads): Remove declaration.
8619 (cris_get_pc, cris_set_pc,): Remove.
8620 (the_low_target): Use linux_get_pc_32bit and
8621 linux_set_pc_32bit.
8622 * linux-crisv32-low.c (debug_threads): Remove declaration.
8623 (cris_get_pc, cris_set_pc): Remove.
8624 (the_low_target): Use linux_get_pc_32bit and
8625 linux_set_pc_32bit.
8626 * linux-low.c: Include inttypes.h.
8627 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8628 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8629 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8630 (the_low_target): Use linux_get_pc_32bit and
8631 linux_set_pc_32bit.
8632 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8633 (the_low_target): Use linux_get_pc_32bit and
8634 linux_set_pc_32bit.
8635 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8636 (the_low_target): Use linux_get_pc_32bit and
8637 linux_set_pc_32bit.
8638 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8639 (the_low_target): Use linux_get_pc_32bit and
8640 linux_set_pc_32bit.
8641 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8642 (the_low_target): Use linux_get_pc_32bit and
8643 linux_set_pc_32bit.
8644
eb0edac8
GB
86452016-01-18 Gary Benson <gbenson@redhat.com>
8646
8647 * configure.ac (AC_FUNC_FORK): New check.
8648 * config.in: Regenerate.
8649 * configure: Likewise.
8650
1b451dda
YQ
86512016-01-14 Yao Qi <yao.qi@linaro.org>
8652
8653 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8654 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8655 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8656 arm_get_next_pcs_ctor.
8657
82075af2
JS
86582016-01-12 Josh Stone <jistone@redhat.com>
8659 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8660
8661 * inferiors.h: Include "gdb_vecs.h".
8662 (struct process_info): Add syscalls_to_catch.
8663 * inferiors.c (remove_process): Free syscalls_to_catch.
8664 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8665 syscall_return stops.
8666 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8667 * server.c (handle_general_set): Handle QCatchSyscalls.
8668 (handle_query): Report support for QCatchSyscalls.
8669 * target.h (struct target_ops): Add supports_catch_syscall.
8670 (target_supports_catch_syscall): New macro.
8671 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8672 (struct lwp_info): Add syscall_state.
8673 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8674 Maintain syscall_state and syscalls_to_catch across exec.
8675 (get_syscall_trapinfo): New function, proxy to the_low_target.
8676 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8677 (linux_low_filter_event): Toggle syscall_state entry/return for
8678 syscall traps, and set it ignored for all others.
8679 (gdb_catching_syscalls_p): New function.
8680 (gdb_catch_this_syscall_p): New function.
8681 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8682 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8683 (linux_supports_catch_syscall): New function.
8684 (linux_target_ops): Install it.
8685 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8686 (the_low_target): Install it.
8687
8f13a3ce
MF
86882016-01-12 Mike Frysinger <vapier@gentoo.org>
8689
8690 * acinclude.m4: Include new ../warning.m4 file.
8691 * configure: Regenerated.
8692 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8693
5b3da067
MF
86942016-01-12 Mike Frysinger <vapier@gentoo.org>
8695
8696 * ax.c (is_goto_target): Mark static.
8697 * linux-low.c (register_addr): Likewise.
8698 (linux_fetch_registers, linux_store_registers): Likewise.
8699 * mem-break.c (any_persistent_commands): Fix old prototype.
8700 (add_commands_to_breakpoint): Mark static.
8701 * regcache.c (find_register_by_name): Delete unused func.
8702 * remote-utils.c (hex_or_minus_one): Mark static.
8703 * server.c (monitor_show_help): Mark static.
8704 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8705 handle_v_requests): Likewise.
8706
bc504a31
PA
87072016-01-12 Pedro Alves <palves@redhat.com>
8708
8709 Remove use of the registered trademark symbol throughout.
8710
5a0dd67a
YQ
87112016-01-08 Yao Qi <yao.qi@linaro.org>
8712
8713 * remote-utils.c (getpkt): If c is '\003', call target hook
8714 request_interrupt.
8715
b2ca446f
YQ
87162016-01-06 Yao Qi <yao.qi@linaro.org>
8717
8718 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8719 linux-aarch32-low.c.
8720 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8721 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8722 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8723 (thumb2_breakpoint): Declare.
8724 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8725 linux-aarch32-low.h.
8726 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8727 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8728 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8729
edd88788
JB
87302016-01-01 Joel Brobecker <brobecker@adacore.com>
8731
8732 * gdbreplay.c (gdbreplay_version): Change copyright year in
8733 version message.
8734 * server.c (gdbserver_version): Likewise.
8735
65da7f14
PP
87362015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8737
8738 * server.c (crc32_table): Delete.
8739 (crc32): Use libiberty's xcrc32 function.
8740
4abd5ed2
JB
87412015-12-22 Joel Brobecker <brobecker@adacore.com>
8742
8743 * lynx-low.c (lynx_delete_thread_callback): New function.
8744 (lynx_mourn): Properly delete our process and all of its
8745 threads. Remove call to clear_inferiors.
8746
0e50fe5c
JB
87472015-12-22 Joel Brobecker <brobecker@adacore.com>
8748
8749 * target.c (thread_search_callback): Add check that
8750 the thread_stopped target callback is not NULL before
8751 calling it.
8752
35adc03f
YQ
87532015-12-21 Yao Qi <yao.qi@linaro.org>
8754
8755 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8756 arm breakpoint.
8757
bd2b2909
AT
87582015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8759
8760 * server.c (handle_query): Call target_supports_software_single_step.
8761
7fe5e27e
AT
87622015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8763
8764 * linux-low.c (single_step): New function.
8765 (linux_resume_one_lwp_throw): Call single_step.
8766 (start_step_over): Likewise.
8767
d9311bfa
AT
87682015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8769
8770 * Makefile.in (SFILES): Append arch/arm-linux.c,
8771 arch/arm-get-next-pcs.c.
8772 (arm-linux.o): New rule.
8773 (arm-get-next-pcs.o): New rule.
8774 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8775 arm-linux.o.
8776 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8777 to linux-aarch32-low.c.
8778 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8779 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8780 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8781 (thumb2_breakpoint_len): Likewise.
8782 (arm_is_thumb_mode): Make non-static.
8783 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8784 from linux-aarch32-low.c.
8785 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8786 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8787 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8788 (thumb2_breakpoint_len): Likewise.
8789 (arm_is_thumb_mode): New declaration.
8790 * linux-arm-low.c: Include arch/arm-linux.h
8791 aarch/arm-get-next-pcs.h, sys/syscall.h.
8792 (get_next_pcs_ops): New struct.
8793 (get_next_pcs_addr_bits_remove): New function.
8794 (get_next_pcs_is_thumb): New function.
8795 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8796 (arm_sigreturn_next_pc): Likewise.
8797 (get_next_pcs_syscall_next_pc): Likewise.
8798 (arm_gdbserver_get_next_pcs): Likewise.
8799 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8800 Initialize.
8801 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8802 * server.h: Include gdb_vecs.h.
8803
68ce2059
AT
88042015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8805
8806 * Makefile.in (SFILES): Append common/common-regcache.c.
8807 (OBS): Append common-regcache.o.
8808 (common-regcache.o): New rule.
8809 * regcache.c (init_register_cache): Initialize cache to
8810 REG_UNAVAILABLE.
8811 (regcache_raw_read_unsigned): New function.
8812 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8813 register_status enum.
8814
fa5308bd
AT
88152015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8816
8817 * linux-aarch64-low.c (the_low_targets): Rename
8818 breakpoint_reinsert_addr to get_next_pcs.
8819 * linux-arm-low.c (the_low_targets): Likewise.
8820 * linux-bfin-low.c (the_low_targets): Likewise.
8821 * linux-cris-low.c (the_low_targets): Likewise.
8822 * linux-crisv32-low.c (the_low_targets): Likewise.
8823 * linux-low.c (can_software_single_step): Likewise.
8824 (install_software_single_step_breakpoints): New function.
8825 (start_step_over): Use install_software_single_step_breakpoints.
8826 * linux-low.h: New CORE_ADDR vector.
8827 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8828 get_next_pcs.
8829 * linux-mips-low.c (the_low_targets): Likewise.
8830 * linux-nios2-low.c (the_low_targets): Likewise.
8831 * linux-sparc-low.c (the_low_targets): Likewise.
8832
4a6ed09b
PA
88332015-12-17 Pedro Alves <palves@redhat.com>
8834
8835 * linux-low.c (linux_kill_one_lwp): Remove references to
8836 LinuxThreads.
8837 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8838 to 'kill'.
8839 (linux_init_signals): Delete.
8840 (initialize_low): Adjust.
8841 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8842
7544db95
PA
88432015-12-16 Pedro Alves <palves@redhat.com>
8844
8845 * configure.ac (compiler warning flags): When testing a
8846 -Wno-foo option, check whether -Wfoo works instead.
8847 * configure: Regenerate.
8848
8020350c
DB
88492015-12-11 Don Breazeal <donb@codesourcery.com>
8850
8851 * server.c (process_serial_event): Don't exit from gdbserver
8852 in remote mode if there are still active inferiors.
8853
db91f502
YQ
88542015-12-11 Yao Qi <yao.qi@linaro.org>
8855
8856 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8857 arm_breakpoint_at if the process is 32-bit.
8858
b37a6290
YQ
88592015-12-11 Yao Qi <yao.qi@linaro.org>
8860
8861 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8862 arm breakpoint.
8863
17b1509a
YQ
88642015-12-07 Yao Qi <yao.qi@linaro.org>
8865
8866 * configure.srv: Append arm.o to srv_tgtobj for
8867 aarch64*-*-linux* target.
8868 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8869 from linux-arm-low.c.
8870 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8871 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8872 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8873 (thumb2_breakpoint_len): Likewise.
8874 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8875 (arm_breakpoint_kinds): Likewise.
8876 (arm_breakpoint_kind_from_pc): Likewise.
8877 (arm_sw_breakpoint_from_kind): Likewise.
8878 (arm_breakpoint_kind_from_current_state): Likewise.
8879 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8880 (arm_sw_breakpoint_from_kind): Declare.
8881 (arm_breakpoint_kind_from_current_state): Declare.
8882 (arm_breakpoint_at): Declare.
8883 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8884 arm_sw_breakpoint_from_kind if process is 32-bit.
8885 (aarch64_breakpoint_kind_from_pc): New function.
8886 (aarch64_breakpoint_kind_from_current_state): New function.
8887 (the_low_target): Initialize fields breakpoint_kind_from_pc
8888 and breakpoint_kind_from_current_state.
8889 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8890 linux-aarch32-low.c.
8891 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8892 (arm_breakpoint, arm_breakpoint_len): Likewise.
8893 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8894 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8895 (arm_is_thumb_mode): Likewise.
8896 (arm_breakpoint_at): Likewise.
8897 (arm_breakpoint_kind_from_pc): Likewise.
8898 (arm_sw_breakpoint_from_kind): Likewise.
8899 (arm_breakpoint_kind_from_current_state): Likewise.
8900
8901 Revert:
8902 2015-08-04 Yao Qi <yao.qi@linaro.org>
8903
8904 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8905 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8906 * server.c (extended_protocol): Remove "static".
8907 * server.h (extended_protocol): Declare it.
8908
ece66d65
JS
89092015-12-04 Josh Stone <jistone@redhat.com>
8910
8911 * target.h (struct target_ops) <arch_setup>: Rename to ...
8912 (struct target_ops) <post_create_inferior>: ... this.
8913 (target_arch_setup): Rename to ...
8914 (target_post_create_inferior): ... this, calling post_create_inferior.
8915 * server.c (start_inferior): Update target_arch_setup calls to
8916 target_post_create_inferior.
8917 * linux-low.c (linux_low_ptrace_options): Forward declare.
8918 (linux_arch_setup): Update its comment for general use.
8919 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8920 (struct linux_target_ops): Use linux_post_create_inferior.
8921 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8922 to post_create_inferior.
8923 * nto-low.c (struct nto_target_ops): Likewise.
8924 * spu-low.c (struct spu_target_ops): Likewise.
8925 * win32-low.c (struct win32_target_ops): Likewise.
8926
e58c48b4
AT
89272015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8928
8929 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8930
fbec8956
AT
89312015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8932
8933 * linux-arm-low.c (arm_reinsert_addr): Remove function.
8934 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
8935 * linux-cris-low.c (cris_reinsert_addr> Remove function.
8936 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8937 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
8938 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8939 * linux-mips-low.c (mips_reinsert_addr): Remove function.
8940 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8941 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
8942 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8943 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
8944 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8945
9b4c5f87
AT
89462015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8947
8948 * linux-low.c (linux_look_up_symbols): Don't call
8949 linux_supports_traceclone.
8950 * linux-low.h (thread_db_init): Remove use_events argument.
8951 * thread-db.c (thread_db_use_event): Remove global variable.
8952 (struct thread_db) <td_thr_event_enable_p>: Remove field.
8953 (struct thread_db) <td_create_bp>: Remove field.
8954 (thread_db_create_event): Remove function.
8955 (thread_db_enable_reporting): Likewise.
8956 (find_one_thread): Don't check for thread_db_use_events.
8957 (attach_thread): Likewise.
8958 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
8959 (try_thread_db_load_1): Don't check for thread_db_use_events.
8960 (thread_db_init): Remove use_events argument and thread events
8961 handling.
8962 (remove_thread_event_breakpoints): Remove function.
8963 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
8964
7d00775e
AT
89652015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8966
8967 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
8968 New function.
8969 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8970 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
8971 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8972 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
8973 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
8974 Initialize.
8975 * linux-crisv32-low.c (cris_supports_hardware_single_step):
8976 New function.
8977 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8978 * linux-low.c (can_hardware_single_step): Use
8979 supports_hardware_single_step.
8980 (can_software_single_step): New function.
8981 (start_step_over): Call can_software_single_step.
8982 (linux_supports_hardware_single_step): New function.
8983 (struct target_ops) <supports_software_single_step>: Initialize.
8984 * linux-low.h (struct linux_target_ops)
8985 <supports_hardware_single_step>: Initialize.
8986 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
8987 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8988 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
8989 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
8990 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
8991 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8992 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
8993 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8994 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
8995 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
8996 Initialize.
8997 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
8998 (struct linux_target_ops) <tile_supports_hardware_single_step>:
8999 Initialize.
9000 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9001 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9002 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9003 New function.
9004 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9005 * target.h (struct target_ops): <supports_software_single_step>:
9006 New field.
9007 (target_supports_software_single_step): New macro.
9008
2d97cd35
AT
90092015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9010
9011 * linux-low.c (linux_wait_1): Fix pc advance condition.
9012 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9013 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9014
769ef81f
AT
90152015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9016
9017 * linux-arm-low.c (arm_is_thumb_mode): New function.
9018 (arm_breakpoint_at): Use arm_is_thumb_mode.
9019 (arm_breakpoint_kind_from_current_state): New function.
9020 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9021 Initialize.
9022 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9023 (linux_breakpoint_kind_from_current_state): New function.
9024 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9025 * linux-low.h (struct linux_target_ops)
9026 <breakpoint_kind_from_current_state>: New field.
9027 * target.h (struct target_ops): Likewise.
9028 (target_breakpoint_kind_from_current_state): New macro.
9029
1bebeeca
PA
90302015-11-30 Pedro Alves <palves@redhat.com>
9031
9032 * linux-low.c (linux_resume): Wake up the event loop before
9033 returning.
9034
a67a9fae
PA
90352015-11-30 Pedro Alves <palves@redhat.com>
9036
9037 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9038 check.
9039 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9040 to -1.
9041 * target.c (struct thread_search): New structure.
9042 (thread_search_callback): New function.
9043 (prev_general_thread): New global.
9044 (prepare_to_access_memory, done_accessing_memory): New functions.
9045 * target.h (prepare_to_access_memory, done_accessing_memory):
9046 Replace macros with function declarations.
9047
f2faf941
PA
90482015-11-30 Pedro Alves <palves@redhat.com>
9049
9050 PR 14618
9051 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9052 report TARGET_WAITKIND_NO_RESUMED.
9053 * remote-utils.c (prepare_resume_reply): Handle
9054 TARGET_WAITKIND_NO_RESUMED.
9055 * server.c (report_no_resumed): New global.
9056 (handle_query) <qSupported>: Handle "no-resumed+". Report
9057 "no-resumed+" support.
9058 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9059 return error if the client doesn't support no-resumed events.
9060 (push_stop_notification): New function.
9061 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9062 events if the client supports them.
9063
a681f9c9
PA
90642015-11-30 Pedro Alves <palves@redhat.com>
9065
9066 * linux-low.c (thread_still_has_status_pending_p): Don't check
9067 vCont;t here.
9068 (lwp_resumed): New function.
9069 (status_pending_p_callback): Return early if the LWP is not
9070 supposed to be resumed.
9071
65706a29
PA
90722015-11-30 Pedro Alves <palves@redhat.com>
9073
9074 * linux-low.c (handle_extended_wait): Assert that the LWP's
9075 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9076 thread create events, leave the new child's status pending.
9077 (linux_low_filter_event): If GDB wants to hear about thread exit
9078 events, leave the LWP marked dead and don't delete it.
9079 (linux_wait_for_event_filtered): Don't check for thread exit.
9080 (filter_exit_event): New function.
9081 (linux_wait_1): Use it, when returning an exit event.
9082 (linux_resume_one_lwp_throw): Assert that the LWP's
9083 waitstatus is TARGET_WAITKIND_IGNORE.
9084 * remote-utils.c (prepare_resume_reply): Handle
9085 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9086 * server.c (report_thread_events): New global.
9087 (handle_general_set): Handle QThreadEvents.
9088 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9089 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9090 TARGET_WAITKIND_THREAD_EXITED.
9091 * server.h (report_thread_events): Declare.
9092
56cf4bed
PA
90932015-11-30 Pedro Alves <palves@redhat.com>
9094
9095 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9096 the thread's last_resume_kind was resume_stop.
9097
500c1d85
PA
90982015-11-30 Pedro Alves <palves@redhat.com>
9099
9100 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9101 before returning.
9102
de979965
PA
91032015-11-30 Pedro Alves <palves@redhat.com>
9104
9105 * server.c (handle_v_requests): Handle vCtrlC.
9106
34c65914
PA
91072015-11-30 Pedro Alves <palves@redhat.com>
9108
9109 * gdbthread.h (find_any_thread_of_pid): Declare.
9110 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9111 functions.
9112 * server.c (handle_query): If current_thread is NULL, look for
9113 another thread of the selected process.
9114
79efa585 91152015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9116 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9117
9118 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9119 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9120 name in reply.
9121 * target.h (struct target_ops) <thread_name>: New field.
9122 (target_thread_name): New macro.
9123
80d82c19
JB
91242015-11-23 Joel Brobecker <brobecker@adacore.com>
9125
9126 * regcache.h (regcache_invalidate_pid): Add declaration.
9127 * regcache.c (regcache_invalidate_pid): New function, extracted
9128 from regcache_invalidate.
9129 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9130 Add trivial documentation comment.
9131 * lynx-low.c: Use regcache_invalidate_pid instead of
9132 regcache_invalidate.
9133
64da5dd5
JB
91342015-11-23 Joel Brobecker <brobecker@adacore.com>
9135
9136 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9137 and Elf64_auxv_t if the target is Android.
9138
37ce4055
DE
91392015-11-22 Doug Evans <xdje42@gmail.com>
9140
9141 * target.h: #include <sys/types.h>.
9142
06e03fff
PA
91432015-11-19 Pedro Alves <palves@redhat.com>
9144
9145 * linux-low.c (linux_process_qsupported): Change prototype.
9146 Adjust.
9147 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9148 Change prototype.
9149 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9150 and adjust to loop over all features.
9151 * server.c (handle_query) <qSupported>: Adjust to call
9152 target_process_qsupported once, passing it a vector of unprocessed
9153 features.
9154 * target.h (struct target_ops) <process_qsupported>: Change
9155 prototype.
9156 (target_process_qsupported): Adjust.
9157
9a084706
PA
91582015-11-19 Pedro Alves <palves@redhat.com>
9159
9160 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9161 mode.
9162 * configure: Regenerate.
9163
dad44a1f
PA
91642015-11-19 Pedro Alves <palves@redhat.com>
9165
9166 * configure: Regenerate.
9167
231c0592
YQ
91682015-11-19 Yao Qi <yao.qi@linaro.org>
9169
9170 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9171 type to uint32_t.
9172
6c1c9a8b
YQ
91732015-11-19 Yao Qi <yao.qi@linaro.org>
9174
9175 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9176 (struct aarch64_operand): Move enum out.
9177
9caa3311
YQ
91782015-11-19 Yao Qi <yao.qi@linaro.org>
9179
9180 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9181 struct user_fpsimd_state *.
9182 (aarch64_store_fpregset): Likewise.
9183
6a69a054
YQ
91842015-11-19 Yao Qi <yao.qi@linaro.org>
9185
9186 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9187 struct user_pt_regs *.
9188 (aarch64_store_gregset): Likewise.
9189
1798301e
PA
91902015-11-18 Pedro Alves <palves@redhat.com>
9191
9192 * Makefile.in (all_object_files): Add $IPA_OBJS.
9193
ce7715e2
PA
91942015-11-17 Pedro Alves <palves@redhat.com>
9195
9196 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9197 GDB_SIGNAL_0 and gdb_signal_to_string.
9198
c0879059
PA
91992015-11-17 Pedro Alves <palves@redhat.com>
9200
9201 * win32-low.c (handle_output_debug_string): Remove parameter.
9202 (win32_kill): Remove our_status local and adjust call to
9203 handle_output_debug_string.
9204 (get_child_debug_event): Adjust call to
9205 handle_output_debug_string.
9206
1996e237
SM
92072015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9208
9209 * linux-mips-low.c (mips_fill_gregset): Add cast.
9210 (mips_store_gregset): Likewise.
9211 (mips_fill_fpregset): Likewise.
9212 (mips_store_fpregset): Likewise.
9213
cbec665b
SM
92142015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9215
9216 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9217 priv.
9218
eb3e3c67
SM
92192015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9220
9221 * linux-mips-low.c (mips_linux_new_thread): Change type of
9222 watch_type to enum target_hw_bp_type.
9223
171de4b8
SM
92242015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9225
9226 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9227 Change return type to arm_hwbp_type.
9228
04248ead
SM
92292015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9230
9231 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9232 (arm_store_gregset): Likewise.
9233 * linux-arm-low.c (arm_get_hwcap): Likewise.
9234 (arm_read_description): Likewise.
9235
04b3479c
SM
92362015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9237
9238 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9239
2bc84e8a
SM
92402015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9241
9242 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9243 (ppc_fill_vsxregset): Likewise.
9244 (ppc_store_vsxregset): Likewise.
9245 (ppc_fill_vrregset): Likewise.
9246 (ppc_store_vrregset): Likewise.
9247 (ppc_fill_evrregset): Likewise.
9248 (ppc_store_evrregset): Likewise.
9249
e6c5bb05
SM
92502015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9251
9252 * linux-ppc-low.c (ppc_usrregs_info): Remove
9253 forward-declaration.
9254 (ppc_arch_setup): Move lower in file.
9255
7ea45d72
SM
92562015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9257
9258 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9259 (ps_pdwrite): Likewise.
9260
69291610
HW
92612015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9262
9263 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9264 to after assert checks.
9265
b42945fd
SM
92662015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9267
9268 * proc-service.c (ps_pdread): Add/adjust casts.
9269 (ps_pdwrite): Add/adjust casts.
9270
d6f85c84
SM
92712015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9272
9273 * server.c (handle_search_memory_1): Cast return value of
9274 memmem.
9275
f98cd059
SM
92762015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9277
9278 * server.c (write_qxfer_response): Change type of data to
9279 gdb_byte *.
9280
d2412fa5
PA
92812015-10-29 Pedro Alves <palves@redhat.com>
9282
9283 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9284
c17414a2
PA
92852015-10-29 Pedro Alves <palves@redhat.com>
9286
9287 * tracepoint.c (clear_installed_tracepoints): Add casts.
9288
e053fbc4
PA
92892015-10-29 Pedro Alves <palves@redhat.com>
9290
9291 * server.c (handle_v_cont, process_serial_event): Add enum
9292 gdb_signal casts to signal parsing code.
9293
add67df8
PA
92942015-10-29 Pedro Alves <palves@redhat.com>
9295
9296 * linux-low.h (NULL_REGSET): Define.
9297 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9298 * linux-arm-low.c (arm_regsets): Likewise.
9299 * linux-crisv32-low.c (cris_regsets): Likewise.
9300 * linux-m68k-low.c (m68k_regsets): Likewise.
9301 * linux-mips-low.c (mips_regsets): Likewise.
9302 * linux-nios2-low.c (nios2_regsets): Likewise.
9303 * linux-ppc-low.c (ppc_regsets): Likewise.
9304 * linux-s390-low.c (s390_regsets): Likewise.
9305 * linux-sh-low.c (sh_regsets): Likewise.
9306 * linux-sparc-low.c (sparc_regsets): Likewise.
9307 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9308 * linux-tile-low.c (tile_regsets): Likewise.
9309 * linux-x86-low.c (x86_regsets): Likewise.
9310 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9311
50bc912a
PA
93122015-10-29 Pedro Alves <palves@redhat.com>
9313
9314 * linux-low.h (NULL_REGSET): Define.
9315 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9316 * linux-arm-low.c (arm_regsets): Likewise.
9317 * linux-crisv32-low.c (cris_regsets): Likewise.
9318 * linux-m68k-low.c (m68k_regsets): Likewise.
9319 * linux-mips-low.c (mips_regsets): Likewise.
9320 * linux-nios2-low.c (nios2_regsets): Likewise.
9321 * linux-ppc-low.c (ppc_regsets): Likewise.
9322 * linux-s390-low.c (s390_regsets): Likewise.
9323 * linux-sh-low.c (sh_regsets): Likewise.
9324 * linux-sparc-low.c (sparc_regsets): Likewise.
9325 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9326 * linux-tile-low.c (tile_regsets): Likewise.
9327 * linux-x86-low.c (x86_regsets): Likewise.
9328 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9329
682b2546
DE
93302015-10-26 Doug Evans <dje@google.com>
9331
9332 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9333
963843d4
DE
93342015-10-26 Doug Evans <dje@google.com>
9335
9336 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9337
d41401ac
DE
93382015-10-26 Doug Evans <dje@google.com>
9339
9340 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9341 for debug_printf.
9342 (attach_thread, find_new_threads_callback): Ditto.
9343
3db28855
AT
93442015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9345
9346 * mem-break.h (set_breakpoint_data): Remove.
9347
fb78e89c
AT
93482015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9349
9350 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9351 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9352 (initialize_low): Remove set_breakpoint_data call.
9353 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9354 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9355 (initialize_low): Remove set_breakpoint_data call.
9356 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9357 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9358 (initialize_low): Remove set_breakpoint_data call.
9359
2e6ee069
AT
93602015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9361
9362 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9363 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9364 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9365 * target.h (target_breakpoint_kind_from_pc): New macro.
9366
1652a986
AT
93672015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9368
9369 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9370 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9371 the default breakpoint kind.
9372
abeead09
AT
93732015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9374
9375 * linux-arm-low.c (arm_supports_z_point_type): Add software
9376 breakpoint support.
9377
b0b4b501
AT
93782015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9379
9380 * linux-arm-low.c: Refactor breakpoint definitions.
9381 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9382 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9383
8689682c
AT
93842015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9385
9386 * Makefile.in: Add arm.c/o.
9387 * configure.srv: Likewise.
9388 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9389 (arm_breakpoint_kind_from_pc): New function.
9390 (arm_sw_breakpoint_from_kind): Return proper kind.
9391 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9392
27165294
AT
93932015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9394
9395 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9396 removal.
9397 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9398 (struct raw_breakpoint) <size>: Remove.
9399 (struct raw_breakpoint) <kind>: Add.
9400 (bp_size): New function.
9401 (bp_opcode): Likewise.
9402 (find_raw_breakpoint_at): Adjust for kind.
9403 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9404 (remove_memory_breakpoint): Adjust for kind call bp_size.
9405 (set_raw_breakpoint_at): Adjust for kind.
9406 (set_breakpoint): Likewise.
9407 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9408 (delete_raw_breakpoint): Adjust for kind.
9409 (delete_breakpoint): Likewise.
9410 (find_gdb_breakpoint): Likewise.
9411 (set_gdb_breakpoint_1): Likewise.
9412 (set_gdb_breakpoint): Likewise.
9413 (delete_gdb_breakpoint_1): Likewise.
9414 (delete_gdb_breakpoint): Likewise.
9415 (uninsert_raw_breakpoint): Likewise.
9416 (reinsert_raw_breakpoint): Likewise.
9417 (set_breakpoint_data): Remove.
9418 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9419 (check_mem_read): Adjust for kind call bp_size.
9420 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9421 (clone_one_breakpoint): Adjust for kind.
9422 * mem-break.h (set_gdb_breakpoint): Likewise.
9423 (delete_gdb_breakpoint): Likewise.
9424 * server.c (process_serial_event): Likewise.
9425
dd373349
AT
94262015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9427
9428 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9429 (struct linux_target_ops) <breakpoint>: Remove.
9430 (struct linux_target_ops) <breakpoint_len>: Remove.
9431 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9432 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9433 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9434 (arm_sw_breakpoint_from_kind): New function.
9435 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9436 (struct linux_target_ops) <breakpoint>: Remove.
9437 (struct linux_target_ops) <breakpoint_len>: Remove.
9438 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9439 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9440 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9441 (struct linux_target_ops) <breakpoint>: Remove.
9442 (struct linux_target_ops) <breakpoint_len>: Remove.
9443 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9444 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9445 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9446 (struct linux_target_ops) <breakpoint>: Remove.
9447 (struct linux_target_ops) <breakpoint_len>: Remove.
9448 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9449 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9450 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9451 and sw_breakpoint_from_kind to increment the pc.
9452 (linux_breakpoint_kind_from_pc): New function.
9453 (linux_sw_breakpoint_from_kind): New function.
9454 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9455 (initialize_low): Call breakpoint_kind_from_pc and
9456 sw_breakpoint_from_kind to replace breakpoint_data/len.
9457 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9458 New field.
9459 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9460 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9461 (struct linux_target_ops) <breakpoint>: Remove.
9462 (struct linux_target_ops) <breakpoint_len>: Remove.
9463 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9464 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9465 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9466 (struct linux_target_ops) <breakpoint>: Remove.
9467 (struct linux_target_ops) <breakpoint_len>: Remove.
9468 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9469 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9470 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9471 (struct linux_target_ops) <breakpoint>: Remove.
9472 (struct linux_target_ops) <breakpoint_len>: Remove.
9473 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9474 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9475 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9476 (struct linux_target_ops) <breakpoint>: Remove.
9477 (struct linux_target_ops) <breakpoint_len>: Remove.
9478 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9479 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9480 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9481 (struct linux_target_ops) <breakpoint>: Remove.
9482 (struct linux_target_ops) <breakpoint_len>: Remove.
9483 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9484 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9485 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9486 (struct linux_target_ops) <breakpoint>: Remove.
9487 (struct linux_target_ops) <breakpoint_len>: Remove.
9488 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9489 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9490 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9491 (struct linux_target_ops) <breakpoint>: Remove.
9492 (struct linux_target_ops) <breakpoint_len>: Remove.
9493 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9494 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9495 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9496 (struct linux_target_ops) <breakpoint>: Remove.
9497 (struct linux_target_ops) <breakpoint_len>: Remove.
9498 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9499 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9500 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9501 (struct linux_target_ops) <breakpoint>: Remove.
9502 (struct linux_target_ops) <breakpoint_len>: Remove.
9503 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9504 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9505 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9506 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9507 (struct linux_target_ops) <breakpoint>: Remove.
9508 (struct linux_target_ops) <breakpoint_len>: Remove.
9509 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9510 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9511 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9512 (struct linux_target_ops) <breakpoint>: Remove.
9513 (struct linux_target_ops) <breakpoint_len>: Remove.
9514 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9515 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9516
4cd98a19
AT
95172015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9518
9519 * linux-cris-low.c (cris_get_pc): Remove void arg.
9520
774ee6d2
AR
95212015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9522
9523 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9524 variable name.
9525
833dcd29
AR
95262015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9527
9528 * inferiors.c (thread_pid_matches_callback): New function.
9529 (find_thread_process): New function.
9530 (remove_thread): Reset current_thread.
9531 (remove_process): Assert threads have been removed first.
9532
8d689ee5
YQ
95332015-10-15 Yao Qi <yao.qi@linaro.org>
9534
9535 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9536 if it is 3.
9537 (aarch64_remove_point): Likewise.
9538 * regcache.c (regcache_register_size): New function.
9539
1c2e1515
YQ
95402015-10-12 Yao Qi <yao.qi@linaro.org>
9541
9542 * linux-aarch64-low.c: Update all callers as emit_load_store
9543 is renamed to aarch64_emit_load_store.
9544
e1c587c3
YQ
95452015-10-12 Yao Qi <yao.qi@linaro.org>
9546
9547 * linux-aarch64-low.c: Update all callers of function renaming
9548 from emit_insn to aarch64_emit_insn.
9549
b6542f81
YQ
95502015-10-12 Yao Qi <yao.qi@linaro.org>
9551
9552 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9553 arch/aarch64-insn.h.
9554 (struct aarch64_memory_operand): Likewise.
9555 (ENCODE): Likewise.
9556 (emit_insn): Move to arch/aarch64-insn.c.
9557 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9558 (emit_load_store): Move to arch/aarch64-insn.c.
9559 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9560 (can_encode_int32): Remove.
9561
246994ce
YQ
95622015-10-12 Yao Qi <yao.qi@linaro.org>
9563
9564 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9565 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9566 (aarch64_relocate_instruction): Likewise.
9567 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9568 (struct aarch64_insn_visitor): Likewise.
9569
0badd99f
YQ
95702015-10-12 Yao Qi <yao.qi@linaro.org>
9571
9572 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9573 (struct aarch64_insn_visitor): New.
9574 (struct aarch64_insn_relocation_data): New.
9575 (aarch64_ftrace_insn_reloc_b): New function.
9576 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9577 (aarch64_ftrace_insn_reloc_cb): Likewise.
9578 (aarch64_ftrace_insn_reloc_tb): Likewise.
9579 (aarch64_ftrace_insn_reloc_adr): Likewise.
9580 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9581 (aarch64_ftrace_insn_reloc_others): Likewise.
9582 (visitor): New.
9583 (aarch64_relocate_instruction): Use visitor.
9584
dfaffe9d
YQ
95852015-10-12 Yao Qi <yao.qi@linaro.org>
9586
9587 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9588 int. Add argument buf.
9589 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9590 aarch64_relocate_instruction.
9591
70b439f0
YQ
95922015-10-12 Yao Qi <yao.qi@linaro.org>
9593
9594 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9595 argument insn. Remove local variable insn. Don't call
9596 target_read_uint32.
9597 (aarch64_install_fast_tracepoint_jump_pad): Call
9598 target_read_uint32.
9599
7781c06f
YQ
96002015-09-30 Yao Qi <yao.qi@linaro.org>
9601
9602 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9603 (emit_load_store_pair): Likewise.
9604
9a3c8263
SM
96052015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9606
9607 * dll.c (match_dll): Add cast(s).
9608 (unloaded_dll): Likewise.
9609 * linux-low.c (second_thread_of_pid_p): Likewise.
9610 (delete_lwp_callback): Likewise.
9611 (count_events_callback): Likewise.
9612 (select_event_lwp_callback): Likewise.
9613 (linux_set_resume_request): Likewise.
9614 * server.c (accumulate_file_name_length): Likewise.
9615 (emit_dll_description): Likewise.
9616 (handle_qxfer_threads_worker): Likewise.
9617 (visit_actioned_threads): Likewise.
9618 * thread-db.c (any_thread_of): Likewise.
9619 * tracepoint.c (same_process_p): Likewise.
9620 (match_blocktype): Likewise.
9621 (build_traceframe_info_xml): Likewise.
9622
224c3ddb
SM
96232015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9624
9625 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9626 assignment.
9627 (gdb_unparse_agent_expr): Likewise.
9628 * hostio.c (require_data): Likewise.
9629 (handle_pread): Likewise.
9630 * linux-low.c (disable_regset): Likewise.
9631 (fetch_register): Likewise.
9632 (store_register): Likewise.
9633 (get_dynamic): Likewise.
9634 (linux_qxfer_libraries_svr4): Likewise.
9635 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9636 (set_fast_tracepoint_jump): Likewise.
9637 (uninsert_fast_tracepoint_jumps_at): Likewise.
9638 (reinsert_fast_tracepoint_jumps_at): Likewise.
9639 (validate_inserted_breakpoint): Likewise.
9640 (clone_agent_expr): Likewise.
9641 * regcache.c (init_register_cache): Likewise.
9642 * remote-utils.c (putpkt_binary_1): Likewise.
9643 (decode_M_packet): Likewise.
9644 (decode_X_packet): Likewise.
9645 (look_up_one_symbol): Likewise.
9646 (relocate_instruction): Likewise.
9647 (monitor_output): Likewise.
9648 * server.c (handle_search_memory): Likewise.
9649 (handle_qxfer_exec_file): Likewise.
9650 (handle_qxfer_libraries): Likewise.
9651 (handle_qxfer): Likewise.
9652 (handle_query): Likewise.
9653 (handle_v_cont): Likewise.
9654 (handle_v_run): Likewise.
9655 (captured_main): Likewise.
9656 * target.c (write_inferior_memory): Likewise.
9657 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9658 * tracepoint.c (init_trace_buffer): Likewise.
9659 (add_tracepoint_action): Likewise.
9660 (add_traceframe): Likewise.
9661 (add_traceframe_block): Likewise.
9662 (cmd_qtdpsrc): Likewise.
9663 (cmd_qtdv): Likewise.
9664 (cmd_qtstatus): Likewise.
9665 (response_source): Likewise.
9666 (response_tsv): Likewise.
9667 (cmd_qtnotes): Likewise.
9668 (gdb_collect): Likewise.
9669 (initialize_tracepoint): Likewise.
9670
afbe19f8
PL
96712015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9672
9673 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9674 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9675 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9676 <NOP>: New.
9677 (enum aarch64_condition_codes): New enum.
9678 (w0): New static global.
9679 (fp): Likewise.
9680 (lr): Likewise.
9681 (struct aarch64_memory_operand) <type>: New
9682 MEMORY_OPERAND_POSTINDEX type.
9683 (postindex_memory_operand): New helper function.
9684 (emit_ret): New function.
9685 (emit_load_store_pair): New function, factored out of emit_stp
9686 with support for MEMORY_OPERAND_POSTINDEX.
9687 (emit_stp): Rewrite using emit_load_store_pair.
9688 (emit_ldp): New function.
9689 (emit_load_store): Likewise.
9690 (emit_ldr): Mention post-index instruction in comment.
9691 (emit_ldrh): New function.
9692 (emit_ldrb): New function.
9693 (emit_ldrsw): Mention post-index instruction in comment.
9694 (emit_str): Likewise.
9695 (emit_subs): New function.
9696 (emit_cmp): Likewise.
9697 (emit_and): Likewise.
9698 (emit_orr): Likewise.
9699 (emit_orn): Likewise.
9700 (emit_eor): Likewise.
9701 (emit_mvn): Likewise.
9702 (emit_lslv): Likewise.
9703 (emit_lsrv): Likewise.
9704 (emit_asrv): Likewise.
9705 (emit_mul): Likewise.
9706 (emit_sbfm): Likewise.
9707 (emit_sbfx): Likewise.
9708 (emit_ubfm): Likewise.
9709 (emit_ubfx): Likewise.
9710 (emit_csinc): Likewise.
9711 (emit_cset): Likewise.
9712 (emit_nop): Likewise.
9713 (emit_ops_insns): New helper function.
9714 (emit_pop): Likewise.
9715 (emit_push): Likewise.
9716 (aarch64_emit_prologue): New function.
9717 (aarch64_emit_epilogue): Likewise.
9718 (aarch64_emit_add): Likewise.
9719 (aarch64_emit_sub): Likewise.
9720 (aarch64_emit_mul): Likewise.
9721 (aarch64_emit_lsh): Likewise.
9722 (aarch64_emit_rsh_signed): Likewise.
9723 (aarch64_emit_rsh_unsigned): Likewise.
9724 (aarch64_emit_ext): Likewise.
9725 (aarch64_emit_log_not): Likewise.
9726 (aarch64_emit_bit_and): Likewise.
9727 (aarch64_emit_bit_or): Likewise.
9728 (aarch64_emit_bit_xor): Likewise.
9729 (aarch64_emit_bit_not): Likewise.
9730 (aarch64_emit_equal): Likewise.
9731 (aarch64_emit_less_signed): Likewise.
9732 (aarch64_emit_less_unsigned): Likewise.
9733 (aarch64_emit_ref): Likewise.
9734 (aarch64_emit_if_goto): Likewise.
9735 (aarch64_emit_goto): Likewise.
9736 (aarch64_write_goto_address): Likewise.
9737 (aarch64_emit_const): Likewise.
9738 (aarch64_emit_call): Likewise.
9739 (aarch64_emit_reg): Likewise.
9740 (aarch64_emit_pop): Likewise.
9741 (aarch64_emit_stack_flush): Likewise.
9742 (aarch64_emit_zero_ext): Likewise.
9743 (aarch64_emit_swap): Likewise.
9744 (aarch64_emit_stack_adjust): Likewise.
9745 (aarch64_emit_int_call_1): Likewise.
9746 (aarch64_emit_void_call_2): Likewise.
9747 (aarch64_emit_eq_goto): Likewise.
9748 (aarch64_emit_ne_goto): Likewise.
9749 (aarch64_emit_lt_goto): Likewise.
9750 (aarch64_emit_le_goto): Likewise.
9751 (aarch64_emit_gt_goto): Likewise.
9752 (aarch64_emit_ge_got): Likewise.
9753 (aarch64_emit_ops_impl): New static global variable.
9754 (aarch64_emit_ops): New target function, return
9755 &aarch64_emit_ops_impl.
9756 (struct linux_target_ops): Install it.
9757
bb903df0
PL
97582015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9759
9760 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9761 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9762 aarch64-ipa.o.
9763 * linux-aarch64-ipa.c: New file.
9764 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9765 and endian.h.
9766 (aarch64_get_thread_area): New target method.
9767 (extract_signed_bitfield): New helper function.
9768 (aarch64_decode_ldr_literal): New function.
9769 (enum aarch64_opcodes): New enum.
9770 (struct aarch64_register): New struct.
9771 (struct aarch64_operand): New struct.
9772 (x0): New static global.
9773 (x1): Likewise.
9774 (x2): Likewise.
9775 (x3): Likewise.
9776 (x4): Likewise.
9777 (w2): Likewise.
9778 (ip0): Likewise.
9779 (sp): Likewise.
9780 (xzr): Likewise.
9781 (aarch64_register): New helper function.
9782 (register_operand): Likewise.
9783 (immediate_operand): Likewise.
9784 (struct aarch64_memory_operand): New struct.
9785 (offset_memory_operand): New helper function.
9786 (preindex_memory_operand): Likewise.
9787 (enum aarch64_system_control_registers): New enum.
9788 (ENCODE): New macro.
9789 (emit_insn): New helper function.
9790 (emit_b): New function.
9791 (emit_bcond): Likewise.
9792 (emit_cb): Likewise.
9793 (emit_tb): Likewise.
9794 (emit_blr): Likewise.
9795 (emit_stp): Likewise.
9796 (emit_ldp_q_offset): Likewise.
9797 (emit_stp_q_offset): Likewise.
9798 (emit_load_store): Likewise.
9799 (emit_ldr): Likewise.
9800 (emit_ldrsw): Likewise.
9801 (emit_str): Likewise.
9802 (emit_ldaxr): Likewise.
9803 (emit_stxr): Likewise.
9804 (emit_stlr): Likewise.
9805 (emit_data_processing_reg): Likewise.
9806 (emit_data_processing): Likewise.
9807 (emit_add): Likewise.
9808 (emit_sub): Likewise.
9809 (emit_mov): Likewise.
9810 (emit_movk): Likewise.
9811 (emit_mov_addr): Likewise.
9812 (emit_mrs): Likewise.
9813 (emit_msr): Likewise.
9814 (emit_sevl): Likewise.
9815 (emit_wfe): Likewise.
9816 (append_insns): Likewise.
9817 (can_encode_int32_in): New helper function.
9818 (aarch64_relocate_instruction): New function.
9819 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9820 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9821 (struct linux_target_ops): Install aarch64_get_thread_area,
9822 aarch64_install_fast_tracepoint_jump_pad and
9823 aarch64_get_min_fast_tracepoint_insn_len.
9824
787749ea
PL
98252015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9826
9827 * Makefile.in (aarch64-insn.o): New rule.
9828 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9829
9812b2e6
YQ
98302015-09-21 Yao Qi <yao.qi@linaro.org>
9831
9832 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9833
18fe412b
YQ
98342015-09-21 Yao Qi <yao.qi@linaro.org>
9835
9836 * tracepoint.c (max_jump_pad_size): Remove.
9837
a0cc84cd
YQ
98382015-09-18 Yao Qi <yao.qi@linaro.org>
9839
9840 * linux-aarch64-low.c: Don't include sys/uio.h.
9841 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9842
d78908cf
WW
98432015-09-16 Wei-cheng Wang <cole945@gmail.com>
9844
9845 * tracepoint.c (eval_result_type): Change prototype.
9846 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9847
d57e0d50
PA
98482015-09-15 Pedro Alves <palves@redhat.com>
9849
9850 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9851 Check whether to report exec events instead of checking whether
9852 multiprocess is enabled.
9853
5a676acc
PA
98542015-09-15 Pedro Alves <palves@redhat.com>
9855
9856 PR remote/18965
9857 * remote-utils.c (prepare_resume_reply): Merge
9858 TARGET_WAITKIND_VFORK_DONE switch case with the
9859 TARGET_WAITKIND_FORKED case.
9860
7c5d0fad
YQ
98612015-09-15 Yao Qi <yao.qi@linaro.org>
9862
9863 * server.c (handle_query): Check string comparison using
9864 "else if" instead of "if".
9865
750ce8d1
YQ
98662015-09-15 Yao Qi <yao.qi@linaro.org>
9867
9868 * server.c (vCont_supported): New global variable.
9869 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9870 matches. Append ";vContSupported+" to own_buf.
9871 (handle_v_requests): Append ";s;S" to own_buf if target supports
9872 hardware single step or vCont_supported is false.
9873 (capture_main): Set vCont_supported to zero.
9874
70b90b91
YQ
98752015-09-15 Yao Qi <yao.qi@linaro.org>
9876
9877 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9878 it to ...
9879 (linux_supports_hardware_single_step): ... New function.
9880 (linux_target_ops): Update.
9881 * lynx-low.c (lynx_target_ops): Set field
9882 supports_hardware_single_step to target_can_do_hardware_single_step.
9883 * nto-low.c (nto_target_ops): Likewise.
9884 * spu-low.c (spu_target_ops): Likewise.
9885 * win32-low.c (win32_target_ops): Likewise.
9886 * target.c (target_can_do_hardware_single_step): New function.
9887 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9888 Remove. <supports_hardware_single_step>: New field.
9889 (target_supports_conditional_breakpoints): Remove.
9890 (target_supports_hardware_single_step): New macro.
9891 (target_can_do_hardware_single_step): Declare.
9892 * server.c (handle_query): Use target_supports_hardware_single_step
9893 instead of target_supports_conditional_breakpoints.
9894
ade90bde
YQ
98952015-09-15 Yao Qi <yao.qi@linaro.org>
9896
9897 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9898 function.
9899 (struct linux_target_ops the_low_target): Install
9900 aarch64_linux_siginfo_fixup.
9901
94585166
DB
99022015-09-11 Don Breazeal <donb@codesourcery.com>
9903 Luis Machado <lgustavo@codesourcery.com>
9904
9905 * linux-low.c (linux_mourn): Static declaration.
9906 (linux_arch_setup): Move in front of
9907 handle_extended_wait.
9908 (linux_arch_setup_thread): New function.
9909 (handle_extended_wait): Handle exec events. Call
9910 linux_arch_setup_thread. Make event_lwp argument a
9911 pointer-to-a-pointer.
9912 (check_zombie_leaders): Do not check stopped threads.
9913 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9914 (linux_low_filter_event): Add lwp and thread for exec'ing
9915 non-leader thread if leader thread has been deleted.
9916 Refactor code into linux_arch_setup_thread and call it.
9917 Pass child lwp pointer by reference to handle_extended_wait.
9918 (linux_wait_for_event_filtered): Update comment.
9919 (linux_wait_1): Prevent clobbering exec event status.
9920 (linux_supports_exec_events): New function.
9921 (linux_target_ops) <supports_exec_events>: Initialize new member.
9922 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9923 new member.
9924 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9925 * server.c (report_exec_events): New global variable.
9926 (handle_query): Handle qSupported query for exec-events feature.
9927 (captured_main): Initialize report_exec_events.
9928 * server.h (report_exec_events): Declare new global variable.
9929 * target.h (struct target_ops) <supports_exec_events>: New
9930 member.
9931 (target_supports_exec_events): New macro.
9932 * win32-low.c (win32_target_ops) <supports_exec_events>:
9933 Initialize new member.
9934
0568462b
MM
99352015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9936
9937 * linux-low.c (linux_low_enable_btrace): Remove.
9938 (linux_target_ops): Replace linux_low_enable_btrace with
9939 linux_enable_btrace.
9940
39edd165
YQ
99412015-09-03 Yao Qi <yao.qi@linaro.org>
9942
9943 * linux-aarch64-low.c (aarch64_insert_point): Call
9944 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
9945 returns true.
9946
1db33b5a
UW
99472015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9948
9949 * linux-low.c (check_stopped_by_breakpoint): Use
9950 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
9951
ab290430
PA
99522015-08-27 Pedro Alves <palves@redhat.com>
9953
9954 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9955
8d749320
SM
99562015-08-26 Simon Marchi <simon.marchi@ericsson.com>
9957
6711b7f8
SM
9958 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
9959 the XNEW-family equivalent.
8d749320
SM
9960 (compile_bytecodes): Likewise.
9961 * dll.c (loaded_dll): Likewise.
9962 * event-loop.c (append_callback_event): Likewise.
9963 (create_file_handler): Likewise.
9964 (create_file_event): Likewise.
9965 * hostio.c (handle_open): Likewise.
9966 * inferiors.c (add_thread): Likewise.
9967 (add_process): Likewise.
9968 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
9969 * linux-arm-low.c (arm_new_process): Likewise.
9970 (arm_new_thread): Likewise.
9971 * linux-low.c (add_to_pid_list): Likewise.
9972 (linux_add_process): Likewise.
9973 (handle_extended_wait): Likewise.
9974 (add_lwp): Likewise.
9975 (enqueue_one_deferred_signal): Likewise.
9976 (enqueue_pending_signal): Likewise.
9977 (linux_resume_one_lwp_throw): Likewise.
9978 (linux_resume_one_thread): Likewise.
9979 (linux_read_memory): Likewise.
9980 (linux_write_memory): Likewise.
9981 * linux-mips-low.c (mips_linux_new_process): Likewise.
9982 (mips_linux_new_thread): Likewise.
9983 (mips_add_watchpoint): Likewise.
9984 * linux-x86-low.c (initialize_low_arch): Likewise.
9985 * lynx-low.c (lynx_add_process): Likewise.
9986 * mem-break.c (set_raw_breakpoint_at): Likewise.
9987 (set_breakpoint): Likewise.
9988 (add_condition_to_breakpoint): Likewise.
9989 (add_commands_to_breakpoint): Likewise.
9990 (clone_agent_expr): Likewise.
9991 (clone_one_breakpoint): Likewise.
9992 * regcache.c (new_register_cache): Likewise.
9993 * remote-utils.c (look_up_one_symbol): Likewise.
9994 * server.c (queue_stop_reply): Likewise.
9995 (start_inferior): Likewise.
9996 (queue_stop_reply_callback): Likewise.
9997 (handle_target_event): Likewise.
9998 * spu-low.c (fetch_ppc_memory): Likewise.
9999 (store_ppc_memory): Likewise.
10000 * target.c (set_target_ops): Likewise.
10001 * thread-db.c (thread_db_load_search): Likewise.
10002 (try_thread_db_load_1): Likewise.
10003 * tracepoint.c (add_tracepoint): Likewise.
10004 (add_tracepoint_action): Likewise.
10005 (create_trace_state_variable): Likewise.
10006 (cmd_qtdpsrc): Likewise.
10007 (cmd_qtro): Likewise.
10008 (add_while_stepping_state): Likewise.
10009 * win32-low.c (child_add_thread): Likewise.
10010 (get_image_name): Likewise.
10011
ed8b7b42
YQ
100122015-08-25 Yao Qi <yao.qi@linaro.org>
10013
10014 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10015
db3cb7cb
YQ
100162015-08-25 Yao Qi <yao.qi@linaro.org>
10017
10018 * Makefile.in (aarch64-linux.o): New rule.
10019 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10020 srv_tgtobj.
10021 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10022 (aarch64_init_debug_reg_state): Make it extern.
10023 (aarch64_linux_prepare_to_resume): Remove.
10024
f6011a1c
YQ
100252015-08-25 Yao Qi <yao.qi@linaro.org>
10026
10027 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10028 lwp_arch_private_info and ptid_of_lwp.
10029
88e2cf7e
YQ
100302015-08-25 Yao Qi <yao.qi@linaro.org>
10031
10032 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10033 Find proc_info by find_process_pid. All callers updated.
10034
5e35436e
YQ
100352015-08-25 Yao Qi <yao.qi@linaro.org>
10036
10037 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10038 Remove.
10039 (debug_reg_change_callback): Remove.
10040 (aarch64_notify_debug_reg_change): Remove.
10041
4a8a7965
YQ
100422015-08-25 Yao Qi <yao.qi@linaro.org>
10043
10044 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10045 Call current_lwp_ptid.
10046
32a271ee
YQ
100472015-08-25 Yao Qi <yao.qi@linaro.org>
10048
10049 * linux-aarch64-low.c (debug_reg_change_callback): Use
10050 debug_printf.
10051
0d51c8d7
YQ
100522015-08-25 Yao Qi <yao.qi@linaro.org>
10053
10054 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10055
31a43dd5
YQ
100562015-08-25 Yao Qi <yao.qi@linaro.org>
10057
10058 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10059
8ee52567
YQ
100602015-08-25 Yao Qi <yao.qi@linaro.org>
10061
10062 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10063 the code.
10064
ff3f0f45
YQ
100652015-08-25 Yao Qi <yao.qi@linaro.org>
10066
10067 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10068 Remove.
10069 (debug_reg_change_callback): Remove argument entry and add argument
10070 lwp. Remove local variable thread. Don't print thread id in the
10071 debugging output. Don't check whether pid of thread equals to pid.
10072 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10073 iterate_over_lwps instead find_inferior.
10074
3d40fbb5
PA
100752015-08-24 Pedro Alves <palves@redhat.com>
10076
10077 * inferiors.c (get_first_process): New function.
10078 * inferiors.h (get_first_process): New declaration.
10079 * remote-utils.c (read_ptid): Default to the first process in the
10080 list, instead of to the current thread's process.
10081
438e1e42
PA
100822015-08-24 Pedro Alves <palves@redhat.com>
10083
10084 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10085 * event-loop.c: Likewise.
10086 * remote-utils.c: Likewise.
10087 * tracepoint.c: Likewise.
10088
a8c6d4fc
PA
100892015-08-24 Pedro Alves <palves@redhat.com>
10090
10091 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10092 ptid_get_lwp.
10093
99b0bb12
PA
100942015-08-21 Pedro Alves <palves@redhat.com>
10095
10096 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10097 instead of literal 1.
10098
f8904751
PA
100992015-08-21 Pedro Alves <palves@redhat.com>
10100
10101 * tdesc.c (default_description): Explicitly zero-initialize.
10102
465a859e
PA
101032015-08-21 Pedro Alves <palves@redhat.com>
10104
10105 PR gdb/18749
10106 * inferiors.c (remove_thread): Discard any pending stop reply for
10107 this thread.
10108 * server.c (remove_all_on_match_pid): Rename to ...
10109 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10110 instead of a pid.
10111 (discard_queued_stop_replies): Change parameter to a ptid. Now
10112 extern.
10113 (handle_v_kill, kill_inferior_callback, captured_main)
10114 (process_serial_event): Adjust.
10115 * server.h (discard_queued_stop_replies): Declare.
10116
f0db101d
PA
101172015-08-21 Pedro Alves <palves@redhat.com>
10118
10119 * linux-low.c (wait_for_sigstop): Always switch to no thread
10120 selected if the previously current thread dies.
10121 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10122 process instead of the current thread's.
10123 * remote-utils.c (input_interrupt): Don't check if there's no
10124 current thread.
10125 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10126 current thread to the general thread fails, error out.
10127 (handle_qxfer_auxv, handle_qxfer_libraries)
10128 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10129 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10130 (handle_query): Check if there's a thread selected instead of
10131 checking whether there's any thread in the thread list.
10132 (handle_qxfer_threads, handle_qxfer_btrace)
10133 (handle_qxfer_btrace_conf): Don't error out early if there's no
10134 thread in the thread list.
10135 (handle_v_cont, myresume): Don't set the current thread to the
10136 continue thread.
10137 (process_serial_event) <Hg handling>: Also set thread_id if the
10138 previous general thread is still alive.
10139 (process_serial_event) <g/G handling>: If setting the current
10140 thread to the general thread fails, error out.
10141 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10142 thread's lwp instead of the current thread's.
10143 * target.c (set_desired_thread): If the desired thread was not
10144 found, leave the current thread pointing to NULL. Return an int
10145 (boolean) indicating success.
10146 * target.h (set_desired_thread): Change return type to int.
10147
40045d91
MF
101482015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10149
10150 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10151 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10152 #includes.
10153 (ps_get_thread_area): New function.
10154
45face3b
GB
101552015-08-19 Gary Benson <gbenson@redhat.com>
10156
10157 * hostio.c (handle_pread): Do not attempt to read more data
10158 than hostio_reply_with_data can fit in a packet.
10159
16d5f642
JB
101602015-08-18 Joel Brobecker <brobecker@adacore.com>
10161
10162 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10163
a738da3a
MF
101642015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10165
10166 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10167
33ebda9d
PA
101682015-08-06 Pedro Alves <palves@redhat.com>
10169
10170 * tracepoint.c (expr_eval_result): Now an int.
10171
a44892be
PA
101722015-08-06 Pedro Alves <palves@redhat.com>
10173
10174 * gdbthread.h (struct regcache): Forward declare.
10175 (struct thread_info) <regcache_data>: Now a struct regcache
10176 pointer.
10177 * inferiors.c (inferior_regcache_data)
10178 (set_inferior_regcache_data): Now work with struct regcache
10179 pointers.
10180 * inferiors.h (struct regcache): Forward declare.
10181 (inferior_regcache_data, set_inferior_regcache_data): Now work
10182 with struct regcache pointers.
10183 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10184 (free_register_cache_thread): Remove struct regcache pointer
10185 casts.
10186
608a1e46
PA
101872015-08-06 Pedro Alves <palves@redhat.com>
10188
10189 * server.c (captured_main): On error, print the exception message
10190 to stderr, and if run_once is set, throw a quit.
10191
f0ce0d3a
PA
101922015-08-06 Pedro Alves <palves@redhat.com>
10193
10194 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10195 the current thread.
10196
bf47e248
PA
101972015-08-06 Pedro Alves <palves@redhat.com>
10198
10199 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10200 reading beyond the passed in buffer length.
10201
b6b9ffcc
PL
102022015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10203
10204 * tracepoint.c (symbol_list) <required>: Remove.
10205
863d01bd
PA
102062015-08-06 Pedro Alves <palves@redhat.com>
10207
10208 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10209 count if stopping and suspending threads.
10210 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10211 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10212 (linux_detach): Complete an ongoing step-over.
10213 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10214 throughout.
10215 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10216 (linux_wait_1): If passing a signal to the inferior after
10217 finishing a step-over, unsuspend and re-resume all lwps. If we
10218 see a single-step event but the thread should be continuing, don't
10219 pass the trap to gdb.
10220 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10221 internal_error instead of gdb_assert.
10222 (enqueue_pending_signal): New function.
10223 (check_ptrace_stopped_lwp_gone): Add debug output.
10224 (start_step_over): Use internal_error instead of gdb_assert.
10225 (complete_ongoing_step_over): New function.
10226 (linux_resume_one_thread): Don't resume a suspended thread.
10227 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10228 it stepping.
10229
00db26fa
PA
102302015-08-06 Pedro Alves <palves@redhat.com>
10231
10232 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10233 (linux_thread_alive): Use lwp_is_marked_dead.
10234 (extended_event_reported): Delete.
10235 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10236 instead of extended_event_reported.
10237 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10238 as well.
10239 (lwp_is_marked_dead): New function.
10240 (lwp_running): Use lwp_is_marked_dead.
10241 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10242 comment.
10243
ad071a30
PA
102442015-08-06 Pedro Alves <palves@redhat.com>
10245
10246 * linux-low.c (linux_wait_1): Move fork event output out of the
10247 !report_to_gdb check. Pass event_child->waitstatus to
10248 target_waitstatus_to_string instead of ourstatus.
10249
524b57e6
YQ
102502015-08-04 Yao Qi <yao.qi@linaro.org>
10251
10252 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10253 if current_thread is 32 bit.
10254
6085d6f6
YQ
102552015-08-04 Yao Qi <yao.qi@linaro.org>
10256
10257 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10258 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10259 * server.c (extended_protocol): Remove "static".
10260 * server.h (extended_protocol): Declare it.
10261
8a7e4587
YQ
102622015-08-04 Yao Qi <yao.qi@linaro.org>
10263
10264 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10265 both aarch64 and aarch32.
10266 (aarch64_set_pc): Likewise.
10267
3b53ae99
YQ
102682015-08-04 Yao Qi <yao.qi@linaro.org>
10269
10270 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10271 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10272 arm-with-neon.xml to srv_xmlfiles.
10273 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10274 (is_64bit_tdesc): New function.
10275 (aarch64_linux_read_description): New function.
10276 (aarch64_arch_setup): Call aarch64_linux_read_description.
10277 (regs_info): Rename to regs_info_aarch64.
10278 (aarch64_regs_info): Return right regs_info.
10279 (initialize_low_arch): Call initialize_low_arch_aarch32.
10280
bd9e6534
YQ
102812015-08-04 Yao Qi <yao.qi@linaro.org>
10282
10283 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10284 * linux-aarch32-low.c: New file.
10285 * linux-aarch32-low.h: New file.
10286 * linux-arm-low.c (arm_fill_gregset): Move it to
10287 linux-aarch32-low.c.
10288 (arm_store_gregset): Likewise.
10289 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10290 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10291 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10292 (regs_info): Rename to regs_info_arm.
10293 (arm_regs_info): Return regs_info_aarch32 if
10294 have_ptrace_getregset is 1 and target description is
10295 arm_with_neon or arm_with_vfpv3.
10296 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10297 Call initialize_low_arch_aarch32 instead.
10298
ded48a5e
YQ
102992015-08-04 Yao Qi <yao.qi@linaro.org>
10300
10301 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10302 * linux-low.c: ... here.
10303 * linux-low.h (have_ptrace_getregset): Declare it.
10304
96e9210f
PA
103052015-08-04 Pedro Alves <palves@redhat.com>
10306
10307 * thread-db.c (struct thread_db): Use new typedefs.
10308 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10309 CHK calls.
10310 (disable_thread_event_reporting): Cast result of dlsym to
10311 destination function pointer type.
10312 (thread_db_mourn): Use td_ta_delete_ftype.
10313
af60a1ef
SL
103142015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10315
10316 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10317 arch variant.
10318 (CDX_BREAKPOINT): Define for R2.
10319 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10320 (the_low_target): Add comments.
10321
e8b41681
YQ
103222015-07-30 Yao Qi <yao.qi@linaro.org>
10323
10324 * linux-arm-low.c (arm_hwcap): Remove it.
10325 (arm_read_description): New local variable arm_hwcap. Don't
10326 set arm_hwcap to zero.
10327
89abb039
YQ
103282015-07-30 Yao Qi <yao.qi@linaro.org>
10329
10330 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10331 Use regcache->tdesc instead.
10332 (arm_store_wmmxregset): Likewise.
10333 (arm_fill_vfpregset): Likewise.
10334 (arm_store_vfpregset): Likewise.
10335
deca266c
YQ
103362015-07-30 Yao Qi <yao.qi@linaro.org>
10337
10338 * linux-arm-low.c: Include arch/arm.h.
10339 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10340 (arm_store_gregset): Likewise.
10341
aa58a496
SM
103422015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10343
10344 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10345 ptrace's 4th parameter.
10346
50904b25
YQ
103472015-07-27 Yao Qi <yao.qi@linaro.org>
10348
10349 * configure.srv (case aarch64*-*-linux*): Don't set
10350 srv_linux_usrregs.
10351
5826e159
PA
103522015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10353
10354 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10355 sys/ptrace.h.
10356 * linux-arm-low.c: Likewise.
10357 * linux-cris-low.c: Likewise.
10358 * linux-crisv32-low.c: Likewise.
10359 * linux-low.c: Likewise.
10360 * linux-m68k-low.c: Likewise.
10361 * linux-mips-low.c: Likewise.
10362 * linux-nios2-low.c: Likewise.
10363 * linux-s390-low.c: Likewise.
10364 * linux-sparc-low.c: Likewise.
10365 * linux-tic6x-low.c: Likewise.
10366 * linux-tile-low.c: Likewise.
10367 * linux-x86-low.c: Likewise.
10368
54019719
PA
103692015-07-24 Pedro Alves <palves@redhat.com>
10370
10371 * config.in: Regenerate.
10372 * configure: Regenerate.
10373
eb7aa561
PA
103742015-07-24 Pedro Alves <palves@redhat.com>
10375
10376 * acinclude.m4: Include ../ptrace.m4.
10377 * configure.ac: Call GDB_AC_PTRACE.
10378 * config.in, configure: Regenerate.
10379
55d7b841
YQ
103802015-07-24 Yao Qi <yao.qi@linaro.org>
10381
10382 * linux-low.c (linux_create_inferior): Remove setting to
10383 proc->priv->new_inferior.
10384 (linux_attach): Likewise.
10385 (linux_low_filter_event): Likewise.
10386 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10387
c06cbd92
YQ
103882015-07-24 Yao Qi <yao.qi@linaro.org>
10389
10390 * linux-low.c (linux_arch_setup): New function.
10391 (linux_low_filter_event): If proc->tdesc is NULL and
10392 proc->attached is true, call the_low_target.arch_setup.
10393 Otherwise, keep status pending, and return.
10394 (linux_resume_one_lwp_throw): Don't call get_pc if
10395 thread->while_stepping isn't NULL. Don't call
10396 get_thread_regcache if proc->tdesc is NULL.
10397 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10398 (linux_target_ops): Install arch_setup.
10399 * server.c (start_inferior): Call the_target->arch_setup.
10400 * target.h (struct target_ops) <arch_setup>: New field.
10401 (target_arch_setup): New marco.
10402 * lynx-low.c (lynx_target_ops): Update.
10403 * nto-low.c (nto_target_ops): Update.
10404 * spu-low.c (spu_target_ops): Update.
10405 * win32-low.c (win32_target_ops): Update.
10406
5ae3ebba
YQ
104072015-07-24 Yao Qi <yao.qi@linaro.org>
10408
10409 * linux-low.c (linux_add_process): Don't set
10410 proc->priv->new_inferior.
10411 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10412 (linux_attach): Likewise.
10413
eb97750b
YQ
104142015-07-24 Yao Qi <yao.qi@linaro.org>
10415
10416 * server.c (start_inferior): Code refactor.
10417
51aee833
YQ
104182015-07-24 Yao Qi <yao.qi@linaro.org>
10419
10420 * server.c (process_serial_event): Set general_thread.
10421
af1b22f3
YQ
104222015-07-21 Yao Qi <yao.qi@linaro.org>
10423
10424 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10425 aarch64_linux_get_debug_reg_capacity.
10426
554717a3
YQ
104272015-07-17 Yao Qi <yao.qi@linaro.org>
10428
10429 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10430 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10431 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10432 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10433 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10434 (AARCH64_HWP_ALIGNMENT): Likewise.
10435 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10436 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10437 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10438 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10439 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10440 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10441 (struct aarch64_debug_reg_state): Likewise.
10442 (struct arch_lwp_info): Likewise.
10443 (aarch64_align_watchpoint): Likewise.
10444 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10445 (aarch64_watchpoint_length): Likewise.
10446 (aarch64_point_encode_ctrl_reg): Likewise
10447 (aarch64_point_is_aligned): Likewise.
10448 (aarch64_align_watchpoint): Likewise.
10449 (aarch64_linux_set_debug_regs):
10450 (aarch64_dr_state_insert_one_point): Likewise.
10451 (aarch64_dr_state_remove_one_point): Likewise.
10452 (aarch64_handle_breakpoint): Likewise.
10453 (aarch64_handle_aligned_watchpoint): Likewise.
10454 (aarch64_handle_unaligned_watchpoint): Likewise.
10455 (aarch64_handle_watchpoint): Likewise.
10456
c67ca4de
YQ
104572015-07-17 Yao Qi <yao.qi@linaro.org>
10458
10459 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10460 and don't aarch64_get_debug_reg_state. All callers update.
10461 (aarch64_handle_aligned_watchpoint): Likewise.
10462 (aarch64_handle_unaligned_watchpoint): Likewise.
10463 (aarch64_handle_watchpoint): Likewise.
10464 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10465 (aarch64_remove_point): Likewise.
10466
25abf979
YQ
104672015-07-17 Yao Qi <yao.qi@linaro.org>
10468
10469 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10470 debug_printf.
10471 (aarch64_handle_unaligned_watchpoint): Likewise.
10472
db1ff28b
JK
104732015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10474
10475 Revert the previous 3 commits:
10476 Move gdb_regex* to common/
10477 Move linux_find_memory_regions_full & co.
10478 gdbserver build-id attribute generator
10479
700ca40f
JK
104802015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10481 Jan Kratochvil <jan.kratochvil@redhat.com>
10482
10483 gdbserver build-id attribute generator.
10484 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10485 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10486 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10487 (find_phdr): New.
10488 (get_dynamic): Use find_pdhr to traverse program headers.
10489 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10490 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10491 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10492 (get_hex_build_id): New.
10493 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10494 to reply XML document.
10495
9904185c
JK
104962015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10497 Jan Kratochvil <jan.kratochvil@redhat.com>
10498
10499 * target.c: Include target/target-utils.h and fcntl.h.
10500 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10501 (target_fileio_read_stralloc): New functions.
10502
6e5b4429
JK
105032015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10504
10505 * Makefile.in (OBS): Add gdb_regex.o.
10506 (gdb_regex.o): New.
10507 * config.in: Rebuilt.
10508 * configure: Rebuilt.
10509
ddc98fbf
JK
105102015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10511 Jan Kratochvil <jan.kratochvil@redhat.com>
10512
10513 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10514 * Makefile.in (OBS): Add target-utils.o.
10515 (linux-maps.o, target-utils.o): New.
10516 * configure.srv (srv_linux_obj): Add linux-maps.o.
10517
e57bb7a0
PL
105182015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10519
10520 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10521 function, return 1.
10522 (the_low_target): Install it.
10523
586b02a9
PA
105242015-07-14 Pedro Alves <palves@redhat.com>
10525
10526 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10527 Instead, ignore ECHILD, and throw an error for other errnos.
10528
58c1b36c
PA
105292015-07-10 Pedro Alves <palves@redhat.com>
10530
10531 * event-loop.c (struct callback_event) <data>: Change type to
10532 gdb_client_data instance instead of gdb_client_data pointer.
10533 (append_callback_event): Adjust.
10534
421530db
PL
105352015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10536
10537 * linux-aarch64-low.c: Add comments for each linux_target_ops
10538 method. Remove comments already covered in target_ops and
10539 linux_target_ops definitions.
10540 (the_low_target): Add comments for each unimplemented method.
10541
c2d65f38
YQ
105422015-07-09 Yao Qi <yao.qi@linaro.org>
10543
10544 * linux-aarch64-low.c (aarch64_regmap): Remove.
10545 (aarch64_usrregs_info): Remove.
10546 (regs_info): Set field usrregs to NULL.
10547
b20a6524
MM
105482015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10549
10550 * linux-low.c: Include "rsp-low.h"
10551 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10552 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10553 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10554 (handle_btrace_enable_pt): New.
10555 (handle_btrace_general_set): Support "pt".
10556 (handle_btrace_conf_general_set): Support "pt:size".
10557
96c97461
PL
105582015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10559
10560 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10561 Z_PACKET_SW_BP.
10562
37d66942
PL
105632015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10564
10565 * linux-aarch64-low.c: Remove comment about endianness.
10566 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10567 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10568 memcmp.
10569
dc06243f
GB
105702015-06-24 Gary Benson <gbenson@redhat.com>
10571
10572 * linux-i386-ipa.c (stdint.h): Do not include.
10573 * lynx-i386-low.c (stdint.h): Likewise.
10574 * lynx-ppc-low.c (stdint.h): Likewise.
10575 * mem-break.c (stdint.h): Likewise.
10576 * thread-db.c (stdint.h): Likewise.
10577 * tracepoint.c (stdint.h): Likewise.
10578 * win32-low.c (stdint.h): Likewise.
10579
124e13d9
SM
105802015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10581
10582 * server.c (write_qxfer_response): Update call to
10583 remote_escape_output.
10584
909c2cda
JK
105852015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10586 Jan Kratochvil <jan.kratochvil@redhat.com>
10587
10588 Merge multiple hex conversions.
10589 * gdbreplay.c (tohex): Rename to 'fromhex'.
10590 (logchar): Use fromhex.
10591
24c05f46
JK
105922015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10593
10594 * server.c (handle_qxfer_libraries): Set `version' attribute for
10595 <library-list>.
10596
14d2069a
GB
105972015-06-10 Gary Benson <gbenson@redhat.com>
10598
10599 * target.h (struct target_ops) <multifs_open>: New field.
10600 <multifs_unlink>: Likewise.
10601 <multifs_readlink>: Likewise.
10602 * linux-low.c (nat/linux-namespaces.h): New include.
10603 (linux_target_ops): Initialize the_target->multifs_open,
10604 the_target->multifs_unlink and the_target->multifs_readlink.
10605 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10606 * hostio.c (hostio_fs_pid): New static variable.
10607 (hostio_handle_new_gdb_connection): New function.
10608 (handle_setfs): Likewise.
10609 (handle_open): Use the_target->multifs_open as appropriate.
10610 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10611 (handle_readlink): Use the_target->multifs_readlink as
10612 appropriate.
10613 (handle_vFile): Handle vFile:setfs packets.
10614 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10615 after target_handle_new_gdb_connection.
10616
4b8b5e72
GB
106172015-06-10 Gary Benson <gbenson@redhat.com>
10618
10619 * configure.ac (AC_CHECK_FUNCS): Add setns.
10620 * config.in: Regenerate.
10621 * configure: Likewise.
10622 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10623 (linux-namespaces.o): New rule.
10624 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10625
3ac2e371
GB
106262015-06-09 Gary Benson <gbenson@redhat.com>
10627
10628 * hostio.c (handle_open): Process mode argument with
10629 fileio_to_host_mode.
10630
ca9b78ce
YQ
106312015-06-01 Yao Qi <yao.qi@linaro.org>
10632
10633 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10634 * linux-x86-low.c: Likewise.
10635
bfacd19d
DB
106362015-05-28 Don Breazeal <donb@codesourcery.com>
10637
10638 * linux-low.c (handle_extended_wait): Initialize
10639 thread_info.last_resume_kind for new fork children.
10640
452003ef
PA
106412015-05-15 Pedro Alves <palves@redhat.com>
10642
10643 * target.h (target_handle_new_gdb_connection): Rewrite using if
10644 wrapped in do/while.
10645
1041a03c
JB
106462015-05-14 Joel Brobecker <brobecker@adacore.com>
10647
10648 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10649 * configure, config.in: Regenerate.
10650 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10651 Declare typedef.
10652
c269dbdb
DB
106532015-05-12 Don Breazeal <donb@codesourcery.com>
10654
10655 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10656 PTRACE_EVENT_VFORK_DONE.
10657 (linux_low_ptrace_options, extended_event_reported): Add vfork
10658 events.
10659 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10660 and "vforkdone" for RSP 'T' Stop Reply Packet.
10661 * server.h (report_vfork_events): Declare
10662 global variable.
10663
3a8a0396
DB
106642015-05-12 Don Breazeal <donb@codesourcery.com>
10665
10666 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10667 (the_low_target) <new_fork>: Initialize new member.
10668 * linux-arm-low.c (arm_new_fork): New function.
10669 (the_low_target) <new_fork>: Initialize new member.
10670 * linux-low.c (handle_extended_wait): Call new target function
10671 new_fork.
10672 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10673 * linux-mips-low.c (mips_add_watchpoint): New function
10674 extracted from mips_insert_point.
10675 (the_low_target) <new_fork>: Initialize new member.
10676 (mips_linux_new_fork): New function.
10677 (mips_insert_point): Call mips_add_watchpoint.
10678 * linux-x86-low.c (x86_linux_new_fork): New function.
10679 (the_low_target) <new_fork>: Initialize new member.
10680
de0d863e
DB
106812015-05-12 Don Breazeal <donb@codesourcery.com>
10682
10683 * linux-low.c (handle_extended_wait): Implement return value,
10684 rename argument 'event_child' to 'event_lwp', handle
10685 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10686 (linux_low_ptrace_options): New function.
10687 (linux_low_filter_event): Call linux_low_ptrace_options,
10688 use different argument fo linux_enable_event_reporting,
10689 use return value from handle_extended_wait.
10690 (extended_event_reported): New function.
10691 (linux_wait_1): Call extended_event_reported and set
10692 status to report fork events.
10693 (linux_write_memory): Add pid to debug message.
10694 (reset_lwp_ptrace_options_callback): New function.
10695 (linux_handle_new_gdb_connection): New function.
10696 (linux_target_ops): Initialize new structure member.
10697 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10698 * lynx-low.c: Initialize new structure member.
10699 * remote-utils.c (prepare_resume_reply): Implement stop reason
10700 "fork" for "T" stop message.
10701 * server.c (handle_query): Call handle_new_gdb_connection.
10702 * server.h (report_fork_events): Declare global flag.
10703 * target.h (struct target_ops) <handle_new_gdb_connection>:
10704 New member.
10705 (target_handle_new_gdb_connection): New macro.
10706 * win32-low.c: Initialize new structure member.
10707
ddcbc397
DB
107082015-05-12 Don Breazeal <donb@codesourcery.com>
10709
10710 * mem-break.c (APPEND_TO_LIST): Define macro.
10711 (clone_agent_expr): New function.
10712 (clone_one_breakpoint): New function.
10713 (clone_all_breakpoints): New function.
10714 * mem-break.h: Declare new functions.
10715
89245bc0
DB
107162015-05-12 Don Breazeal <donb@codesourcery.com>
10717
10718 * linux-low.c (linux_supports_fork_events): New function.
10719 (linux_supports_vfork_events): New function.
10720 (linux_target_ops): Initialize new structure members.
10721 (initialize_low): Call linux_check_ptrace_features.
10722 * lynx-low.c (lynx_target_ops): Initialize new structure
10723 members.
10724 * server.c (report_fork_events, report_vfork_events):
10725 New global flags.
10726 (handle_query): Add new features to qSupported packet and
10727 response.
10728 (captured_main): Initialize new global variables.
10729 * target.h (struct target_ops) <supports_fork_events>:
10730 New member.
10731 <supports_vfork_events>: New member.
10732 (target_supports_fork_events): New macro.
10733 (target_supports_vfork_events): New macro.
10734 * win32-low.c (win32_target_ops): Initialize new structure
10735 members.
10736
835205d0
GB
107372015-05-12 Gary Benson <gbenson@redhat.com>
10738
10739 * server.c (handle_qxfer_exec_file): Use current process
10740 if annex is empty.
10741
21e94bd9
SL
107422015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10743
10744 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10745 Remove HAVE_PTRACE_GETREGS conditionals.
10746 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10747 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10748
45614f15
YQ
107492015-05-08 Yao Qi <yao.qi@linaro.org>
10750
10751 * linux-low.c (linux_supports_conditional_breakpoints): New
10752 function.
10753 (linux_target_ops): Install new target method.
10754 * lynx-low.c (lynx_target_ops): Install NULL hook for
10755 supports_conditional_breakpoints.
10756 * nto-low.c (nto_target_ops): Likewise.
10757 * spu-low.c (spu_target_ops): Likewise.
10758 * win32-low.c (win32_target_ops): Likewise.
10759 * server.c (handle_query): Check
10760 target_supports_conditional_breakpoints.
10761 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10762 New field.
10763 (target_supports_conditional_breakpoints): New macro.
10764
80ad801e
PA
107652015-05-06 Pedro Alves <palves@redhat.com>
10766
10767 PR server/18081
10768 * server.c (start_inferior): If the process exits, mourn it.
10769
819843c7
GB
107702015-04-21 Gary Benson <gbenson@redhat.com>
10771
10772 * hostio.c (fileio_open_flags_to_host): Factored out to
10773 fileio_to_host_openflags in common/fileio.c. Single use
10774 updated.
10775
a2d5a9d7
MF
107762015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10777
10778 * linux-xtensa-low.c (xtensa_fill_gregset)
10779 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10780 XCHAL_HAVE_LOOP.
10781
deb44829
MF
107822015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10783
10784 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10785 (regs_info): Replace usrregs pointer with NULL.
10786
e57f1de3
GB
107872015-04-17 Gary Benson <gbenson@redhat.com>
10788
10789 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10790 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10791 * server.c (handle_qxfer_exec_file): New function.
10792 (qxfer_packets): Add exec-file entry.
10793 (handle_query): Report qXfer:exec-file:read as supported packet.
10794
62828379
RN
107952015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10796
10797 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10798
b88bb450
GB
107992015-04-09 Gary Benson <gbenson@redhat.com>
10800
10801 * hostio-errno.c (errno_to_fileio_error): Remove function.
10802 Update caller to use remote_fileio_to_fio_error.
10803
c8f4bfdd
YQ
108042015-04-09 Yao Qi <yao.qi@linaro.org>
10805
10806 * linux-low.c (linux_insert_point): Call
10807 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10808 (linux_remove_point): Call remove_memory_breakpoint if type is
10809 raw_bkpt_type_sw.
10810 * linux-x86-low.c (x86_insert_point): Don't call
10811 insert_memory_breakpoint.
10812 (x86_remove_point): Don't call remove_memory_breakpoint.
10813
41f98f02
PA
108142015-04-01 Pedro Alves <palves@redhat.com>
10815 Cleber Rosa <crosa@redhat.com>
10816
10817 * server.c (gdbserver_usage): Reorganize and extend the usage
10818 message.
10819
2bf6fb9d
PA
108202015-03-24 Pedro Alves <palves@redhat.com>
10821
10822 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10823 output. Also dump TRAP_TRACE.
10824 (linux_low_filter_event): In debug output, distinguish a
10825 resume_stop SIGSTOP from a delayed SIGSTOP.
10826
369f6daa
GB
108272015-03-24 Gary Benson <gbenson@redhat.com>
10828
10829 * linux-x86-low.c (x86_linux_new_thread): Moved to
10830 nat/x86-linux.c.
10831 (x86_linux_prepare_to_resume): Likewise.
10832
8e5d4070
GB
108332015-03-24 Gary Benson <gbenson@redhat.com>
10834
10835 * Makefile.in (x86-linux-dregs.o): New rule.
10836 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10837 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10838 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10839 (x86_linux_dr_get): Likewise.
10840 (x86_linux_dr_set): Likewise.
10841 (update_debug_registers_callback): Likewise.
10842 (x86_linux_dr_set_addr): Likewise.
10843 (x86_linux_dr_get_addr): Likewise.
10844 (x86_linux_dr_set_control): Likewise.
10845 (x86_linux_dr_get_control): Likewise.
10846 (x86_linux_dr_get_status): Likewise.
10847 (x86_linux_update_debug_registers): Likewise.
10848
2b95d440
GB
108492015-03-24 Gary Benson <gbenson@redhat.com>
10850
10851 * linux-x86-low.c (x86_linux_update_debug_registers):
10852 New function, factored out from...
10853 (x86_linux_prepare_to_resume): ...this.
10854
14b0bc68
GB
108552015-03-24 Gary Benson <gbenson@redhat.com>
10856
10857 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10858 (x86_linux_dr_set): Likewise.
10859 (update_debug_registers_callback): Likewise.
10860 (x86_linux_dr_set_addr): Likewise.
10861 (x86_linux_dr_get_addr): Likewise.
10862 (x86_linux_dr_set_control): Likewise.
10863 (x86_linux_dr_get_control): Likewise.
10864 (x86_linux_dr_get_status): Likewise.
10865 (x86_linux_prepare_to_resume): Likewise.
10866
5dfe6ca8
GB
108672015-03-24 Gary Benson <gbenson@redhat.com>
10868
10869 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10870 Use perror_with_name. Pass string through gettext.
10871 (x86_linux_dr_set): Likewise.
10872
d33472ad
GB
108732015-03-24 Gary Benson <gbenson@redhat.com>
10874
10875 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10876 (x86_linux_dr_set_addr): ...this.
10877 (x86_dr_low_get_addr): Rename to...
10878 (x86_linux_dr_get_addr): ...this.
10879 (x86_dr_low_set_control): Rename to...
10880 (x86_linux_dr_set_control): ...this.
10881 (x86_dr_low_get_control): Rename to...
10882 (x86_linux_dr_get_control): ...this.
10883 (x86_dr_low_get_status): Rename to...
10884 (x86_linux_dr_get_status): ...this.
10885 (x86_dr_low): Update with new function names.
10886
4b134ca1
GB
108872015-03-24 Gary Benson <gbenson@redhat.com>
10888
10889 * Makefile.in (x86-linux.o): New rule.
10890 * configure.srv: Add x86-linux.o to relevant targets.
10891 * linux-low.c (lwp_set_arch_private_info): New function.
10892 (lwp_arch_private_info): Likewise.
10893 * linux-x86-low.c: Include nat/x86-linux.h.
10894 (arch_lwp_info): Removed structure.
10895 (update_debug_registers_callback):
10896 Use lwp_set_debug_registers_changed.
10897 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10898 and lwp_set_debug_registers_changed.
10899 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10900
34c703da
GB
109012015-03-24 Gary Benson <gbenson@redhat.com>
10902
10903 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10904 * linux-arm-low.c (arm_new_thread): Likewise.
10905 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10906 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10907 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10908 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10909
cff068da
GB
109102015-03-24 Gary Benson <gbenson@redhat.com>
10911
10912 * linux-low.c (ptid_of_lwp): New function.
10913 (lwp_is_stopped): Likewise.
10914 (lwp_stop_reason): Likewise.
10915 * linux-x86-low.c (update_debug_registers_callback):
10916 Use lwp_is_stopped.
10917 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10918 lwp_stop_reason.
10919
b2f7c7e8
GB
109202015-03-24 Gary Benson <gbenson@redhat.com>
10921
10922 * linux-low.h (linux_stop_lwp): Remove declaration.
10923
6d4ee8c6
GB
109242015-03-24 Gary Benson <gbenson@redhat.com>
10925
10926 * linux-low.h: Include nat/linux-nat.h.
10927 * linux-low.c (iterate_over_lwps_args): New structure.
10928 (iterate_over_lwps_filter): New function.
10929 (iterate_over_lwps): Likewise.
10930 * linux-x86-low.c (update_debug_registers_callback):
10931 Update signature to what iterate_over_lwps expects.
10932 Remove PID check that iterate_over_lwps now performs.
10933 (x86_dr_low_set_addr): Use iterate_over_lwps.
10934 (x86_dr_low_set_control): Likewise.
10935
70a0bb6b
GB
109362015-03-24 Gary Benson <gbenson@redhat.com>
10937
10938 * linux-x86-low.c (x86_debug_reg_state): New function.
10939 (x86_linux_prepare_to_resume): Use the above.
10940
7b669087
GB
109412015-03-24 Gary Benson <gbenson@redhat.com>
10942
10943 * linux-low.c (current_lwp_ptid): New function.
10944 * linux-x86-low.c: Include nat/linux-nat.h.
10945 (x86_dr_low_get_addr): Use current_lwp_ptid.
10946 (x86_dr_low_get_control): Likewise.
10947 (x86_dr_low_get_status): Likewise.
10948
eef49a3d
PA
109492015-03-20 Pedro Alves <palves@redhat.com>
10950
10951 * tracepoint.c (cmd_qtstatus): Make "str" const.
10952
b2333d22
PA
109532015-03-20 Pedro Alves <palves@redhat.com>
10954
10955 * server.c (handle_general_set): Make "req_str" const.
10956
23f238d3
PA
109572015-03-19 Pedro Alves <palves@redhat.com>
10958
10959 * linux-low.c (linux_resume_one_lwp): Rename to ...
10960 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10961 instead call perror_with_name.
10962 (check_ptrace_stopped_lwp_gone): New function.
10963 (linux_resume_one_lwp): Reimplement as wrapper around
10964 linux_resume_one_lwp_throw that swallows errors if the LWP is
10965 gone.
10966
91baf43f
PA
109672015-03-19 Pedro Alves <palves@redhat.com>
10968
10969 * linux-low.c (count_events_callback, select_event_lwp_callback):
10970 No longer check whether the thread has resume_stop as last resume
10971 kind.
10972
8bf3b159
PA
109732015-03-19 Pedro Alves <palves@redhat.com>
10974
10975 * linux-low.c (count_events_callback, select_event_lwp_callback):
10976 Use the lwp's status_pending_p field, not the thread's.
10977
b90fc188
PA
109782015-03-19 Pedro Alves <palves@redhat.com>
10979
10980 * linux-low.c (select_event_lwp_callback): Update comments to
10981 no longer mention SIGTRAP.
10982
464b0089
GB
109832015-03-18 Gary Benson <gbenson@redhat.com>
10984
10985 * server.c (handle_query): Do not report vFile:fstat as supported.
10986
aa9e327f
GB
109872015-03-11 Gary Benson <gbenson@redhat.com>
10988
10989 * hostio.c (sys/types.h): New include.
10990 (sys/stat.h): Likewise.
10991 (common-remote-fileio.h): Likewise.
10992 (handle_fstat): New function.
10993 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 10994
791c0056
GB
109952015-03-11 Gary Benson <gbenson@redhat.com>
10996
10997 * configure.ac (AC_CHECK_MEMBERS): Add checks for
10998 struct stat.st_blocks and struct stat.st_blksize.
10999 * configure: Regenerate.
11000 * config.in: Likewise.
11001 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11002 (OBS): Add common-remote-fileio.o.
11003 (common-remote-fileio.o): New rule.
11004
9a9df970
PA
110052015-03-09 Pedro Alves <palves@redhat.com>
11006
11007 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11008 'struct sockaddr' pointer in 'accept' call.
11009
9eb1356e
PA
110102015-03-09 Pedro Alves <palves@redhat.com>
11011
11012 Revert:
11013 2015-03-07 Pedro Alves <palves@redhat.com>
11014 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11015 or <winsock2.h> here. Instead include "gdb_socket.h".
11016 (remote_open): Use union gdb_sockaddr_u.
11017 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11018 or <winsock2.h> here. Instead include "gdb_socket.h".
11019 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11020 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11021 or <sys/un.h>.
11022 (init_named_socket, gdb_agent_helper_thread): Use union
11023 gdb_sockaddr_u.
11024
aac331e4
PA
110252015-03-07 Pedro Alves <palves@redhat.com>
11026
11027 * configure.ac (build_warnings): Move
11028 -Wdeclaration-after-statement to the C-specific set.
11029 * configure: Regenerate.
11030
366c75fc
PA
110312015-03-07 Pedro Alves <palves@redhat.com>
11032
11033 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11034 or <winsock2.h> here. Instead include "gdb_socket.h".
11035 (remote_open): Use union gdb_sockaddr_u.
11036 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11037 or <winsock2.h> here. Instead include "gdb_socket.h".
11038 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11039 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11040 or <sys/un.h>.
11041 (init_named_socket, gdb_agent_helper_thread): Use union
11042 gdb_sockaddr_u.
11043
492d29ea
PA
110442015-03-07 Pedro Alves <palves@redhat.com>
11045
11046 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11047 instead.
11048
60a191ed
YQ
110492015-03-06 Yao Qi <yao.qi@linaro.org>
11050
11051 * linux-aarch64-low.c (aarch64_insert_point): Use
11052 show_debug_regs as a boolean.
11053 (aarch64_remove_point): Likewise.
11054
f5771b1d
PA
110552015-03-05 Pedro Alves <palves@redhat.com>
11056
11057 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11058 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11059 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11060 * nto-low.c (nto_target_ops): Likewise.
11061 * spu-low.c (spu_target_ops): Likewise.
11062 * win32-low.c (win32_target_ops): Likewise.
11063
3e572f71
PA
110642015-03-04 Pedro Alves <palves@redhat.com>
11065
72f4393d 11066 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11067 Decide whether a breakpoint triggered based on the SIGTRAP's
11068 siginfo.si_code.
72f4393d
L
11069 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11070 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11071 (linux_low_filter_event): Check for breakpoints before checking
11072 watchpoints.
11073 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11074 siginfo.si_code.
72f4393d
L
11075 (linux_stopped_by_sw_breakpoint)
11076 (linux_supports_stopped_by_sw_breakpoint)
11077 (linux_stopped_by_hw_breakpoint)
11078 (linux_supports_stopped_by_hw_breakpoint): New functions.
11079 (linux_target_ops): Install new target methods.
3e572f71 11080
1ec68e26
PA
110812015-03-04 Pedro Alves <palves@redhat.com>
11082
11083 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11084 * server.c (swbreak_feature, hwbreak_feature): New globals.
11085 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11086 (captured_main): Clear swbreak_feature and hwbreak_feature.
11087 * server.h (swbreak_feature, hwbreak_feature): Declare.
11088 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11089 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11090 supports_stopped_by_hw_breakpoint>: New fields.
11091 (target_supports_stopped_by_sw_breakpoint)
11092 (target_stopped_by_sw_breakpoint)
11093 (target_supports_stopped_by_hw_breakpoint)
11094 (target_stopped_by_hw_breakpoint): Declare.
11095
15c66dd6
PA
110962015-03-04 Pedro Alves <palves@redhat.com>
11097
11098 enum lwp_stop_reason -> enum target_stop_reason
11099 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11100 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11101 (linux_wait_1, stuck_in_jump_pad_callback)
11102 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11103 (linux_stopped_by_watchpoint):
11104 * linux-low.h (enum lwp_stop_reason): Delete.
11105 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11106 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11107
98fc70d6
YQ
111082015-03-04 Yao Qi <yao.qi@linaro.org>
11109
11110 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11111
dd2ac174
GB
111122015-03-03 Gary Benson <gbenson@redhat.com>
11113
11114 * hostio.c (handle_vFile): Fix prefix lengths.
11115
d68e53f4
MM
111162015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11117
11118 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11119 ptr_bits.
11120
bf2d68ab
AA
111212015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11122
11123 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11124 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11125 (clean): Add "rm -f" for above C files.
11126 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11127 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11128 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11129 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11130 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11131 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11132 (init_registers_s390x_vx_linux64)
11133 (init_registers_s390x_tevx_linux64)
11134 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11135 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11136 declarations.
11137 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11138 (s390_store_vxrs_high): New functions.
11139 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11140 NT_S390_VXRS_HIGH.
11141 (s390_arch_setup): Add logic for selecting one of the new target
11142 descriptions. Activate the new vector regsets if applicable.
11143 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11144 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11145 and init_registers_s390x_tevx_linux64.
11146
c966a859
PA
111472015-03-01 Pedro Alves <palves@redhat.com>
11148
11149 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11150 parameter.
11151
4180215b
PA
111522015-02-27 Pedro Alves <palves@redhat.com>
11153
11154 * linux-x86-low.c (u_debugreg_offset): New function.
11155 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11156
749bab01
PA
111572015-02-27 Pedro Alves <palves@redhat.com>
11158
11159 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11160 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11161 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11162 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11163 (ps_lsetfpregs, ps_getpid)
11164 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11165 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11166 (ps_lsetxregs, ps_plog): Declare.
11167
3c14e5a3
PA
111682015-02-27 Pedro Alves <palves@redhat.com>
11169
11170 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11171 IP_AGENT_EXPORT_FUNC.
11172 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11173 IP_AGENT_EXPORT_FUNC.
11174 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11175 (IP_AGENT_EXPORT): Delete.
11176 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11177 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11178 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11179 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11180 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11181 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11182 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11183 (traceframe_read_count, traceframe_write_count)
11184 (traceframes_created, trace_state_variables, get_raw_reg)
11185 (get_trace_state_variable_value, set_trace_state_variable_value)
11186 (ust_loaded, helper_thread_id, cmd_buf): Use
11187 IPA_SYM_EXPORTED_NAME.
11188 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11189 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11190 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11191 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11192 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11193 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11194 EXTERN_C_PUSH/EXTERN_C_POP.
11195 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11196 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11197 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11198 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11199 (traceframe_write_count, traceframe_read_count)
11200 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11201 (about_to_request_buffer_space, get_trace_state_variable_value)
11202 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11203 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11204 EXTERN_C_PUSH/EXTERN_C_POP.
11205 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11206 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11207 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11208 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11209 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11210 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11211 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11212 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11213 Define.
11214 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11215 (IP_AGENT_EXPORT_VAR_DECL): Define.
11216 (tracing): Declare.
11217 (gdb_agent_get_raw_reg): Declare.
11218
fe978cb0
PA
112192015-02-27 Tom Tromey <tromey@redhat.com>
11220 Pedro Alves <palves@redhat.com>
11221
11222 Rename symbols whose names are reserved C++ keywords throughout.
11223
3bc3d82a
PA
112242015-02-27 Pedro Alves <palves@redhat.com>
11225
11226 * Makefile.in (COMPILER): New, get it from autoconf.
11227 (CXX): Get from autoconf instead.
11228 (COMPILE.pre): Use COMPILER.
11229 (CC-LD): Rename to ...
11230 (CC_LD): ... this. Use COMPILER.
11231 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11232 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11233 * acinclude.m4: Include build-with-cxx.m4.
11234 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11235 Disable -Werror by default if building in C++ mode.
11236 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11237 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11238 the C++ compiler. Save/restore CXXFLAGS too.
11239 * configure: Regenerate.
11240
07697489
PA
112412015-02-27 Pedro Alves <palves@redhat.com>
11242
11243 * acinclude.m4: Include libiberty.m4.
11244 * configure.ac: Call libiberty_INIT.
11245 * config.in, configure: Regenerate.
11246
9beb7c4e
PA
112472015-02-26 Pedro Alves <palves@redhat.com>
11248
11249 * linux-low.c (linux_wait_1): When incrementing the PC past a
11250 program breakpoint always use the_low_target.breakpoint_len as
11251 increment, rather than the maximum between that and
11252 the_low_target.decr_pc_after_break.
11253
8090aef2
PA
112542015-02-23 Pedro Alves <palves@redhat.com>
11255
11256 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11257 thread was doing a step-over; always adjust the PC if
11258 we stepped over a permanent breakpoint.
11259 (linux_wait_1): If we stepped over breakpoint that was on top of a
11260 permanent breakpoint, manually advance the PC past it.
11261
bc9540e8
PA
112622015-02-23 Pedro Alves <palves@redhat.com>
11263
11264 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11265 modes.
11266 (x86_fill_gregset, x86_store_gregset): Use it when handling
11267 $orig_eax.
11268
2db9a427
PA
112692015-02-20 Pedro Alves <palves@redhat.com>
11270
11271 * thread-db.c: Include "nat/linux-procfs.h".
11272 (thread_db_init): Skip listing new threads if the kernel supports
11273 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11274
afa8d396
PA
112752015-02-20 Pedro Alves <palves@redhat.com>
11276
11277 * linux-low.c (status_pending_p_callback): Use ptid_match.
11278
c9587f88
AT
112792015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11280
11281 PR breakpoints/16812
11282 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11283 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11284 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11285
b05ec7a5
AT
112862015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11287
11288 PR breakpoints/15956
11289 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11290
d33501a5
MM
112912015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11292
11293 * linux-low.c (linux_low_btrace_conf): Print size.
11294 * server.c (handle_btrace_conf_general_set): New.
11295 (hanle_general_set): Call handle_btrace_conf_general_set.
11296 (handle_query): Report Qbtrace-conf:bts:size as supported.
11297
f4abbc16
MM
112982015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11299
11300 * linux-low.c (linux_low_enable_btrace): Update parameters.
11301 (linux_low_btrace_conf): New.
11302 (linux_target_ops)<to_btrace_conf>: Initialize.
11303 * server.c (current_btrace_conf): New.
11304 (handle_btrace_enable): Rename to ...
11305 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11306 to target_enable_btrace. Update comment. Update users.
11307 (handle_qxfer_btrace_conf): New.
11308 (qxfer_packets): Add btrace-conf entry.
11309 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11310 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11311 (target_ops)<read_btrace_conf>: New.
11312 (target_enable_btrace): Update parameters.
11313 (target_read_btrace_conf): New.
11314
043c3577
MM
113152015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11316
11317 * server.c (handle_btrace_general_set): Remove call to
11318 target_supports_btrace.
11319 (supported_btrace_packets): New.
11320 (handle_query): Call supported_btrace_packets.
11321 * target.h: include btrace-common.h.
11322 (btrace_target_info): Removed.
11323 (supports_btrace, target_supports_btrace): Update parameters.
11324
734b0e4b
MM
113252015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11326
11327 * Makefile.in (SFILES): Add common/btrace-common.c.
11328 (OBS): Add common/btrace-common.o.
11329 (btrace-common.o): Add build rules.
11330 * linux-low: Include btrace-common.h.
11331 (linux_low_read_btrace): Use struct btrace_data. Call
11332 btrace_data_init and btrace_data_fini.
11333
d6c146e9
PA
113342015-02-06 Pedro Alves <palves@redhat.com>
11335
11336 * thread-db.c (find_new_threads_callback): Add debug output.
11337
20ba1ce6
PA
113382015-02-04 Pedro Alves <palves@redhat.com>
11339
11340 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11341 (resume_stopped_resumed_lwps): New function.
11342 (linux_wait_for_event_filtered): Use it.
11343
8cc73a39
SDJ
113442015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11345
11346 * Makefile.in (SFILES): Add linux-personality.c.
11347 (linux-personality.o): New rule.
11348 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11349 list of objects to be built.
11350 * linux-low.c: Include nat/linux-personality.h.
11351 (linux_create_inferior): Remove code to disable address space
11352 randomization (moved to ../nat/linux-personality.c). Create
11353 cleanup to disable address space randomization.
11354
fb23d554
SDJ
113552015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11356
11357 * Makefile.in (posix-strerror.o): New rule.
11358 (mingw-strerror.o): Likewise.
11359 * configure: Regenerated.
11360 * configure.ac: Source file ../common/common.host. Initialize new
11361 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11362
cdf43629
YQ
113632015-01-14 Yao Qi <yao@codesourcery.com>
11364
11365 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11366 (ppc-linux.o): New rule.
11367 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11368 * configure.ac: AC_CHECK_FUNCS(getauxval).
11369 * config.in: Re-generated.
11370 * configure: Re-generated.
11371 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11372 ppc64_64bit_inferior_p
11373
514c5338
YQ
113742015-01-14 Yao Qi <yao@codesourcery.com>
11375
11376 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11377 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11378 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11379 (PT_ORIG_R3, PT_TRAP): Likewise.
11380 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11381 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11382 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11383
3368c1e5
JB
113842015-01-10 Joel Brobecker <brobecker@adacore.com>
11385
11386 * i387-fp.c (i387_cache_to_xsave): In look over
11387 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11388 zmmh_low_space field by use of zmmh_high_space.
11389
582511be
PA
113902015-01-09 Pedro Alves <palves@redhat.com>
11391
11392 * linux-low.c (step_over_bkpt): Move higher up in the file.
11393 (handle_extended_wait): Don't store the stop_pc here.
11394 (get_stop_pc): Adjust comments and rename to ...
11395 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11396 stopped for a software breakpoint or hardware breakpoint.
11397 (thread_still_has_status_pending_p): New function.
11398 (status_pending_p_callback): Use
11399 thread_still_has_status_pending_p. If the event is no longer
11400 interesting, resume the LWP.
11401 (handle_tracepoints): Add assert.
11402 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11403 (wstatus_maybe_breakpoint): New function.
11404 (cancel_breakpoint): Delete function.
11405 (check_stopped_by_watchpoint): New function, factored out from
11406 linux_low_filter_event.
11407 (lp_status_maybe_breakpoint): Delete function.
11408 (linux_low_filter_event): Remove filter_ptid argument.
11409 Leave thread group exits pending here. Store the LWP's stop PC.
11410 Always leave events pending.
11411 (linux_wait_for_event_filtered): Pull all events out of the
11412 kernel, and leave them all pending.
11413 (count_events_callback, select_event_lwp_callback): Consider all
11414 events.
11415 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11416 (select_event_lwp): Only give preference to the stepping LWP in
11417 all-stop mode. Adjust comments.
11418 (ignore_event): New function.
11419 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11420 references to cancel_breakpoints. Adjust to renames. Also give
11421 equal priority to all LWPs that have had events in non-stop mode.
11422 If reporting a software breakpoint event, unadjust the LWP's PC.
11423 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11424 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11425 Adjust.
11426 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11427 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11428 (linux_stopped_by_watchpoint): Adjust.
11429 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11430 * linux-low.h (enum lwp_stop_reason): New.
11431 (struct lwp_info) <stop_pc>: Adjust comment.
11432 <stopped_by_watchpoint>: Delete field.
11433 <stop_reason>: New field.
11434 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11435 * mem-break.c (software_breakpoint_inserted_here)
11436 (hardware_breakpoint_inserted_here): New function.
11437 * mem-break.h (software_breakpoint_inserted_here)
11438 (hardware_breakpoint_inserted_here): Declare.
11439 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11440 (cancel_breakpoints): Delete.
11441 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11442 (upload_fast_traceframes): Remove references to
11443 cancel_breakpoints.
11444
a33e3959
PA
114452015-01-09 Pedro Alves <palves@redhat.com>
11446
11447 * thread-db.c (find_new_threads_callback): Ignore thread if the
11448 kernel thread ID is -1.
11449
8784d563
PA
114502015-01-09 Pedro Alves <palves@redhat.com>
11451
11452 * linux-low.c (linux_attach_fail_reason_string): Move to
11453 nat/linux-ptrace.c, and rename.
11454 (linux_attach_lwp): Update comment.
11455 (attach_proc_task_lwp_callback): New function.
11456 (linux_attach): Adjust to rename and use
11457 linux_proc_attach_tgid_threads.
11458 (linux_attach_fail_reason_string): Delete declaration.
11459
76f2b779
JB
114602015-01-01 Joel Brobecker <brobecker@adacore.com>
11461
11462 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11463 * server.c (gdbserver_version): Likewise.
11464
fafcc06a
SDJ
114652014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11466
11467 * remote-utils.c: Include ctype.h.
11468 (input_interrupt): Explicitly handle the case when the char
11469 received is the NUL byte. Improve the printing of non-ASCII
11470 characters.
11471
beed38b8
JB
114722014-12-16 Joel Brobecker <brobecker@adacore.com>
11473
11474 * linux-low.c (linux_low_filter_event): Update call to
11475 linux_enable_event_reporting following the addition of
11476 a new parameter to that function.
11477
bf330350
CU
114782014-12-16 Catalin Udma <catalin.udma@freescale.com>
11479
11480 PR server/17457
11481 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11482 (AARCH64_FPCR_REGNO): Likewise.
11483 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11484 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11485 (aarch64_store_fpregset): Likewise.
11486
5227d625
JB
114872014-12-15 Joel Brobecker <brobecker@adacore.com>
11488
11489 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11490 Remove FIXME comment about assumption about N.
11491
f93b65a0
JB
114922014-12-13 Joel Brobecker <brobecker@adacore.com>
11493
11494 * configure.ac: If large-file support is disabled in GDBserver,
11495 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11496 * configure: Regenerate.
11497
e5a9158d
AA
114982014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11499
11500 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11501 warning upon ENODATA from ptrace.
11502 * linux-s390-low.c (s390_store_tdb): New.
11503 (s390_regsets): Add regset for NT_S390_TDB.
11504
feea5f36
AA
115052014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11506
11507 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11508 without a fill_function.
11509 * linux-s390-low.c (s390_fill_last_break): Remove.
11510 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11511 (s390_arch_setup): Use regset's size instead of fill_function for
11512 loop end condition.
11513
098dbe61
AA
115142014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11515
11516 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11517 the regset's store function when ptrace returned an error.
11518 * regcache.c (get_thread_regcache): Invalidate register cache
11519 before fetching inferior's registers.
11520
28eef672
AA
115212014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11522
11523 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11524 while-loop as for-loop.
11525 (regsets_store_inferior_registers): Likewise.
11526
bdca27a2
YQ
115272014-11-28 Yao Qi <yao@codesourcery.com>
11528
11529 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11530 * config.in, configure: Re-generate.
11531 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11532 is defined.
11533
9c232dda
YQ
115342014-11-21 Yao Qi <yao@codesourcery.com>
11535
11536 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11537 (AC_CHECK_HEADERS): Remove malloc.h.
11538 * configure: Re-generated.
11539 * config.in: Re-generated.
11540 * server.h: Don't include alloca.h and malloc.h.
11541 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11542 Don't include malloc.h.
11543
43968415
JB
115442014-11-17 Joel Brobecker <brobecker@adacore.com>
11545
11546 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11547 corresponding ERRNO check in same block.
11548
40e91bc7
PA
115492014-11-12 Pedro Alves <palves@redhat.com>
11550
11551 * server.c (cont_thread): Update comment.
11552 (start_inferior, attach_inferior): No longer clear cont_thread.
11553 (handle_v_cont): No longer set cont_thread.
11554 (captured_main): Clear cont_thread each time a GDB connects.
11555
c2c118cf
PA
115562014-11-12 Pedro Alves <palves@redhat.com>
11557
11558 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11559 thread, and don't resume all threads if the Hc thread has exited.
11560
78708b7c
PA
115612014-11-12 Pedro Alves <palves@redhat.com>
11562
11563 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11564 the process group instead of to a specific LWP.
11565
a2abc7de
PA
115662014-10-15 Pedro Alves <palves@redhat.com>
11567
11568 PR server/17487
11569 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11570 parameter.
11571 (arm_set_thread_context): Delete.
11572 (the_low_target): Adjust.
11573 * win32-i386-low.c (debug_registers_changed)
11574 (debug_registers_used): Delete.
11575 (update_debug_registers_callback): New function.
11576 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11577 needing to update their debug registers.
11578 (win32_get_current_dr): New function.
11579 (x86_dr_low_get_addr, x86_dr_low_get_control)
11580 (x86_dr_low_get_status): Fetch the debug register from the thread
11581 record's context.
11582 (i386_initial_stuff): Adjust.
11583 (i386_get_thread_context): Remove current_event parameter. Don't
11584 clear debug_registers_changed nor copy DR values to
11585 debug_reg_state.
11586 (i386_set_thread_context): Delete.
11587 (i386_prepare_to_resume): New function.
11588 (i386_thread_added): Mark the thread as needing to update irs
11589 debug registers.
11590 (the_low_target): Remove i386_set_thread_context and install
11591 i386_prepare_to_resume.
11592 * win32-low.c (win32_get_thread_context): Adjust.
11593 (win32_set_thread_context): Use SetThreadContext
11594 directly.
11595 (win32_prepare_to_resume): New function.
11596 (win32_require_context): New function, factored out from ...
11597 (thread_rec): ... this.
11598 (continue_one_thread): Call win32_prepare_to_resume on each thread
11599 we're about to continue.
11600 (win32_resume): Call win32_prepare_to_resume on the event thread.
11601 * win32-low.h (struct win32_thread_info)
11602 <debug_registers_changed>: New field.
11603 (struct win32_target_ops): Change prototype of set_thread_context,
11604 delete set_thread_context and add prepare_to_resume.
11605 (win32_require_context): New declaration.
11606
a442d071
GB
116072014-10-08 Gary Benson <gbenson@redhat.com>
11608
11609 * server.h: Do not include common-exceptions.h.
11610
6f1947e8
GB
116112014-10-08 Gary Benson <gbenson@redhat.com>
11612
11613 * server.h: Do not include cleanups.h.
11614
63b434a4
JH
116152014-09-30 James Hogan <james.hogan@imgtec.com>
11616
11617 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11618 mips64-dsp-linux.c.
11619
c4d9ceb6
YQ
116202014-09-23 Yao Qi <yao@codesourcery.com>
11621
11622 * linux-low.c (lp_status_maybe_breakpoint): New function.
11623 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11624 (count_events_callback): Likewise.
11625 (select_event_lwp_callback): Likewise.
11626 (cancel_breakpoints_callback): Likewise.
11627
89a5711c
DB
116282014-09-19 Don Breazeal <donb@codesourcery.com>
11629
11630 * linux-low.c (handle_extended_wait): Call
11631 linux_ptrace_get_extended_event.
11632 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11633 linux_is_extended_waitstatus.
11634
bffc0964
JB
116352014-09-16 Joel Brobecker <brobecker@adacore.com>
11636
11637 * Makefile.in (CPPFLAGS): Define.
11638 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11639 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11640
0bfdf32f
GB
116412014-09-16 Gary Benson <gbenson@redhat.com>
11642
11643 * inferiors.h (current_inferior): Renamed as...
11644 (current_thread): New variable. All uses updated.
11645 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11646 (maybe_move_out_of_jump_pad): Likewise.
11647 (cancel_breakpoint): Likewise.
11648 (linux_low_filter_event): Likewise.
11649 (wait_for_sigstop): Likewise.
11650 (linux_resume_one_lwp): Likewise.
11651 (need_step_over_p): Likewise.
11652 (start_step_over): Likewise.
11653 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11654 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11655 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11656 and save_inferior as saved_thread.
11657 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11658 saved_thread.
11659 (regcache_invalidate_thread): Likewise.
11660 * remote-utils.c (prepare_resume_reply): Likewise.
11661 * thread-db.c (thread_db_get_tls_address): Likewise.
11662 (disable_thread_event_reporting): Likewise.
11663 (remove_thread_event_breakpoints): Likewise.
11664 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11665 as saved_thread.
11666 * target.h (set_desired_inferior): Renamed as...
11667 (set_desired_thread): New declaration. All uses updated.
11668 * server.c (myresume): Updated comment to reference thread instead
11669 of inferior.
11670 (handle_serial_event): Likewise.
11671 (handle_target_event): Likewise.
11672
361c8ade
GB
116732014-09-12 Tom Tromey <tromey@redhat.com>
11674 Gary Benson <gbenson@redhat.com>
11675
11676 * regcache.h: Include common-regcache.h.
11677 (regcache_read_pc): Don't declare.
11678 * regcache.c (get_thread_regcache_for_ptid): New function.
11679
bd9269f7
GB
116802014-09-11 Tom Tromey <tromey@redhat.com>
11681 Gary Benson <gbenson@redhat.com>
11682
11683 * symbol.c: New file.
11684 * Makefile.in (SFILES): Add symbol.c.
11685 (OBS): Add symbol.o.
11686
f8c1d06b
GB
116872014-09-11 Gary Benson <gbenson@redhat.com>
11688
11689 * target.c (target_stop_ptid, target_continue_ptid): New
11690 functions.
11691
721ec300
GB
116922014-09-11 Tom Tromey <tromey@redhat.com>
11693 Gary Benson <gbenson@redhat.com>
11694
11695 * target.h: Include target/target.h.
11696 * target.c (target_read_memory, target_read_uint32)
11697 (target_write_memory): New functions.
11698
c5e92cca
GB
116992014-09-11 Gary Benson <gbenson@redhat.com>
11700
11701 * server.h (debug_hw_points): Don't declare.
11702 * server.c (debug_hw_points): Don't define. Replace all uses
11703 with show_debug_regs.
11704 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11705 all uses with show_debug_regs.
11706
2e4bb98a
EBM
117072014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11708
11709 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11710 endianness into account.
11711 (ppc_supply_ptrace_register): Likewise.
11712
ac740bc7
JH
117132014-09-03 James Hogan <james.hogan@imgtec.com>
11714
11715 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11716 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11717
97ea6506
GB
117182014-09-03 Gary Benson <gbenson@redhat.com>
11719
11720 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11721 ALL_DEBUG_ADDRESS_REGISTERS.
11722
df7e5265
GB
117232014-09-02 Gary Benson <gbenson@redhat.com>
11724
11725 * i386-low.h: Renamed as...
11726 * x86-low.h: New file. All type, function and variable name
11727 prefixes changed from "i386_" to "x86_". All references updated.
11728 * i386-low.c: Renamed as...
11729 * x86-low.c: New file. All type, function and variable name
11730 prefixes changed from "i386_" to "x86_". All references updated.
11731
ed859da7
GB
117322014-09-02 Gary Benson <gbenson@redhat.com>
11733
11734 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11735 (x86_linux_new_thread): Likewise.
11736
860789c7
GB
117372014-08-29 Gary Benson <gbenson@redhat.com>
11738
11739 * server.h (setjmp.h): Do not include.
11740 (toplevel): Do not declare.
11741 (common-exceptions.h): Include.
11742 (cleanups.h): Likewise.
11743 * server.c (toplevel): Do not define.
11744 (exit_code): New static global.
11745 (detach_or_kill_for_exit_cleanup): New function.
11746 (main): New function. Original main renamed to...
11747 (captured_main): New function.
11748 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11749
ff55e1b5
GB
117502014-08-29 Gary Benson <gbenson@redhat.com>
11751
11752 * Makefile.in (SFILES): Add common/common-exceptions.c.
11753 (OBS): Add common-exceptions.o.
11754 (common-exceptions.o): New rule.
11755 * utils.c (prepare_to_throw_exception): New function.
11756
e9bcb658
GB
117572014-08-29 Gary Benson <gbenson@redhat.com>
11758
11759 * config.in: Regenerate.
11760 * configure: Likewise.
11761
e3180625
GB
117622014-08-29 Gary Benson <gbenson@redhat.com>
11763
11764 * Makefile.in (SFILES): Add common/cleanups.c.
11765 (OBS): cleanups.o.
11766 (cleanups.o): New rule.
11767
e3d6ba5d
GB
117682014-08-29 Gary Benson <gbenson@redhat.com>
11769
11770 * utils.c (internal_vwarning): New function.
11771
7096e886
GB
117722014-08-28 Gary Benson <gbenson@redhat.com>
11773
11774 * utils.h (fatal): Remove declaration.
11775 * utils.c (fatal): Remove function.
11776
14ce3192
GB
117772014-08-28 Gary Benson <gbenson@redhat.com>
11778
11779 * tracepoint.c (gdb_agent_init): Replace fatal with
11780 perror_with_name.
11781 (initialize_tracepoint): Likewise.
11782
50278d59
GB
117832014-08-28 Gary Benson <gbenson@redhat.com>
11784
11785 * remote-utils.c (remote_prepare): Replace fatal with error.
11786
aa96c426
GB
117872014-08-28 Gary Benson <gbenson@redhat.com>
11788
11789 * linux-low.c (linux_async): Replace fatal with warning.
11790 Tidy up and return.
11791 (linux_start_non_stop): Return -1 if linux_async failed.
11792
f7160e97
GB
117932014-08-28 Gary Benson <gbenson@redhat.com>
11794
11795 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11796 gdb_assert.
11797 (i386_dr_low_get_addr): Remove vague comment.
11798 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11799 gdb_assert.
11800
38e08fca
GB
118012014-08-28 Gary Benson <gbenson@redhat.com>
11802
11803 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11804 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11805 internal_error.
11806 (linux_resume_one_lwp): Likewise.
11807 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11808 gdb_assert.
11809 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11810 with internal_error.
11811 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11812 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11813 (find_register_by_name): Replace fatal with internal_error.
11814 (find_regno): Likewise.
11815 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11816 * thread-db.c (thread_db_create_event): Likewise.
11817 (thread_db_load_search): Likewise.
11818 (try_thread_db_load_1): Likewise.
11819 * tracepoint.c (get_jump_space_head): Replace fatal with
11820 internal_error.
11821 (claim_trampoline_space): Likewise.
11822 (have_fast_tracepoint_trampoline_buffer): Likewise.
11823 (cmd_qtstart): Likewise.
11824 (stop_tracing): Likewise.
11825 (fast_tracepoint_collecting): Likewise.
11826 (target_malloc): Likewise.
11827 (download_tracepoint): Likewise.
11828 (download_trace_state_variables): Replace check with gdb_assert.
11829 (upload_fast_traceframes): Replace fatal with internal_error.
11830
34abf635
GB
118312014-08-19 Tom Tromey <tromey@redhat.com>
11832 Gary Benson <gbenson@redhat.com>
11833
11834 * Makefile.in (SFILES): Add common/common-debug.c.
11835 (OBS): Add common-debug.o.
11836 (common-debug.o): New rule.
11837 * debug.h (debug_printf): Don't declare.
11838 * debug.c (debug_printf): Renamed and rewritten as...
11839 (debug_vprintf): New function.
11840
f6e94d78
GB
118412014-08-19 Gary Benson <gbenson@redhat.com>
11842
11843 * utils.h: Do not include print-utils.h.
11844
9239eeab
GB
118452014-08-19 Tom Tromey <tromey@redhat.com>
11846 Gary Benson <gbenson@redhat.com>
11847
11848 * server.h: Add static assertion.
11849 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11850
ef87c8bb
GB
118512014-08-19 Tom Tromey <tromey@redhat.com>
11852 Gary Benson <gbenson@redhat.com>
11853
11854 * Makefile.in (SFILES): Add common/errors.c.
11855 (OBS): Add errors.o.
11856 (IPA_OBS): Add errors-ipa.o.
11857 (errors.o): New rule.
11858 (errors-ipa.o): Likewise.
11859 * utils.h (perror_with_name, error, warning): Don't declare.
11860 * utils.c (warning): Renamed and rewritten as...
11861 (vwarning): New function.
11862 (error): Renamed and rewritten as...
11863 (verror): New function.
11864 (internal_error): Renamed and rewritten as...
11865 (internal_verror): New function.
11866
bb974a24
GB
118672014-08-07 Gary Benson <gbenson@redhat.com>
11868
11869 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11870 * configure: Regenerate.
11871 * config.in: Likewise.
11872 * server.h: Do not include errno.h.
11873 * event-loop.c: Likewise.
11874 * hostio-errno.c: Likewise.
11875 * linux-low.c: Likewise.
11876 * remote-utils.c: Likewise.
11877 * spu-low.c: Likewise.
11878 * utils.c: Likewise.
11879 * gdbreplay.c: Unconditionally include errno.h.
11880
6d3d12eb
GB
118812014-08-07 Gary Benson <gbenson@redhat.com>
11882
11883 * server.h: Do not include string.h.
11884 * event-loop.c: Likewise.
11885 * linux-low.c: Likewise.
11886 * regcache.c: Likewise.
11887 * remote-utils.c: Likewise.
11888 * spu-low.c: Likewise.
11889 * utils.c: Likewise.
11890
dccbb609
GB
118912014-08-07 Gary Benson <gbenson@redhat.com>
11892
11893 * server.h: Do not include gdb_assert.h.
11894
e76df0d0
GB
118952014-08-07 Gary Benson <gbenson@redhat.com>
11896
11897 * server.h: Do not include common-utils.h.
11898
4cb9c816
GB
118992014-08-07 Gary Benson <gbenson@redhat.com>
11900
11901 * server.h: Do not include ptid.h.
11902 * notif.h: Likewise.
11903
3995eeee
GB
119042014-08-07 Gary Benson <gbenson@redhat.com>
11905
11906 * server.h: Do not include gdb_locale.h.
11907
cb9f1a9b
GB
119082014-08-07 Gary Benson <gbenson@redhat.com>
11909
11910 * server.h: Do not include gdb/signals.h.
11911 * win32-low.c: Likewise.
11912
a5fceff8
GB
119132014-08-07 Gary Benson <gbenson@redhat.com>
11914
11915 * server.h: Do not include pathmax.h.
11916
b9391142
GB
119172014-08-07 Gary Benson <gbenson@redhat.com>
11918
11919 * server.h: Do not include libiberty.h.
11920 * linux-bfin-low.c: Likewise.
11921
0e443c87
GB
119222014-08-07 Gary Benson <gbenson@redhat.com>
11923
11924 * server.h: Do not include ansidecl.h.
11925
8ebb3f56
GB
119262014-08-07 Gary Benson <gbenson@redhat.com>
11927
11928 * linux-x86-low.c: Do not include stddef.h.
11929 * lynx-ppc-low.c: Likewise.
11930 * tracepoint.c: Likewise.
11931
8980bdf6
GB
119322014-08-07 Gary Benson <gbenson@redhat.com>
11933
11934 * server.h: Do not include stdarg.h.
11935 * nto-low.c: Likewise.
11936
d7096f71
GB
119372014-08-07 Gary Benson <gbenson@redhat.com>
11938
11939 * server.h: Do not include stdlib.h.
11940 * inferiors.c: Likewise.
11941 * linux-low.c: Likewise.
11942 * regcache.c: Likewise.
11943 * spu-low.c: Likewise.
11944 * tracepoint.c: Likewise.
11945 * utils.c: Likewise.
11946
d02f550d
GB
119472014-08-07 Gary Benson <gbenson@redhat.com>
11948
11949 * server.h: Do not include stdio.h.
11950 * linux-low.c: Likewise.
11951 * remote-utils.c: Likewise.
11952 * spu-low.c: Likewise.
11953 * utils.c: Likewise.
11954 * wincecompat.c: Likewise.
11955
87f6c4e3
GB
119562014-08-06 Gary Benson <gbenson@redhat.com>
11957
11958 * regcache.c (init_register_cache): Move conditionals inside if.
11959
7089dca4
GB
119602014-08-06 Gary Benson <gbenson@redhat.com>
11961
11962 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
11963
462f517e
GB
119642014-07-31 Gary Benson <gbenson@redhat.com>
11965
11966 * ax.h: Do not include server.h.
11967 * gdbthread.h: Likewise.
11968 * lynx-low.h: Likewise.
11969 * notif.h: Likewise.
11970
976411d6
GB
119712014-07-30 Gary Benson <gbenson@redhat.com>
11972
11973 * server.h: Include common-defs.h.
11974 Do not include config.h or build-gnulib-gdbserver/config.h.
11975
d41f6d8e
GB
119762014-07-30 Gary Benson <gbenson@redhat.com>
11977
11978 * hostio-errno.c: Move server.h to top of includes list.
11979 * inferiors.c: Likewise.
11980 * linux-x86-low.c: Likewise.
11981 * notif.c: Include server.h.
11982
314c6a35
TT
119832014-07-24 Tom Tromey <tromey@redhat.com>
11984 Gary Benson <gbenson@redhat.com>
11985
11986 * server.h (CORE_ADDR): Now unsigned.
11987
69ff6be5
PA
119882014-07-16 Pedro Alves <palves@redhat.com>
11989
11990 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
11991
ce9e3fe7
PA
119922014-07-15 Pedro Alves <palves@redhat.com>
11993
11994 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
11995 copy.
11996
e76126e8
PA
119972014-07-11 Pedro Alves <palves@redhat.com>
11998
11999 * linux-low.c (kill_wait_lwp): New function, based on
12000 kill_one_lwp_callback, but use my_waitpid directly.
12001 (kill_one_lwp_callback, linux_kill): Use it.
12002
8e9db26e
PA
120032014-06-23 Pedro Alves <palves@redhat.com>
12004
12005 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12006 before setting DR0..DR3.
12007
698b3e08
GB
120082014-06-20 Gary Benson <gbenson@redhat.com>
12009
12010 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12011 * configure: Regenerated.
12012 * config.in: Likewise.
12013
125f8a3d
GB
120142014-06-20 Gary Benson <gbenson@redhat.com>
12015
12016 * Makefile.in (SFILES): Update locations for files moved
12017 from common to nat.
12018 (object file files): Reordered.
12019
42995dbd
GB
120202014-06-20 Gary Benson <gbenson@redhat.com>
12021
12022 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12023 (i386_dr_low_set_addr): Likewise.
12024 (i386_dr_low_get_addr): Likewise.
12025 (i386_dr_low_can_set_control): Likewise.
12026 (i386_dr_low_set_control): Likewise.
12027 (i386_dr_low_get_control): Likewise.
12028 (i386_dr_low_get_status): Likewise.
12029 (i386_get_debug_register_length): Likewise.
12030 * linux-x86-low.c (i386_dr_low_set_addr):
12031 Changed signature. Made static.
12032 (i386_dr_low_get_addr): Likewise.
12033 (i386_dr_low_set_control): Likewise.
12034 (i386_dr_low_get_control): Likewise.
12035 (i386_dr_low_get_status): Likewise.
12036 (i386_dr_low): New global variable.
12037 * win32-i386-low.c (i386_dr_low_set_addr):
12038 Changed signature. Made static.
12039 (i386_dr_low_get_addr): Likewise.
12040 (i386_dr_low_set_control): Likewise.
12041 (i386_dr_low_get_control): Likewise.
12042 (i386_dr_low_get_status): Likewise.
12043 (i386_dr_low): New global variable.
12044
e1d2394b
MS
120452014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12046
12047 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12048 * Makefile.in (AR, AR_FLAGS): Define.
12049 * configure: Regenerate.
12050
3a8ee006
GB
120512014-06-19 Gary Benson <gbenson@redhat.com>
12052
12053 * Makefile.in (i386-dregs.o): New rule.
12054 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12055 * i386-low.c (target.h): Remove include.
12056 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12057 (DR_CONTROL_SHIFT): Likewise.
12058 (DR_CONTROL_SIZE): Likewise.
12059 (DR_RW_EXECUTE): Likewise.
12060 (DR_RW_WRITE): Likewise.
12061 (DR_RW_READ): Likewise.
12062 (DR_RW_IORW): Likewise.
12063 (DR_LEN_1): Likewise.
12064 (DR_LEN_2): Likewise.
12065 (DR_LEN_4): Likewise.
12066 (DR_LEN_8): Likewise.
12067 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12068 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12069 (DR_ENABLE_SIZE): Likewise.
12070 (DR_LOCAL_SLOWDOWN): Likewise.
12071 (DR_GLOBAL_SLOWDOWN): Likewise.
12072 (DR_CONTROL_RESERVED): Likewise.
12073 (I386_DR_CONTROL_MASK): Likewise.
12074 (I386_DR_VACANT): Likewise.
12075 (I386_DR_LOCAL_ENABLE): Likewise.
12076 (I386_DR_GLOBAL_ENABLE): Likewise.
12077 (I386_DR_DISABLE): Likewise.
12078 (I386_DR_SET_RW_LEN): Likewise.
12079 (I386_DR_GET_RW_LEN): Likewise.
12080 (I386_DR_WATCH_HIT): Likewise.
12081 (i386_wp_op_t): Likewise.
12082 (i386_show_dr): Likewise.
12083 (i386_length_and_rw_bits): Likewise.
12084 (i386_insert_aligned_watchpoint): Likewise.
12085 (i386_remove_aligned_watchpoint): Likewise.
12086 (i386_handle_nonaligned_watchpoint): Likewise.
12087 i386_update_inferior_debug_regs(): Likewise.
12088 (i386_dr_insert_watchpoint): Likewise.
12089 (i386_dr_remove_watchpoint): Likewise.
12090 (i386_dr_region_ok_for_watchpoint): Likewise.
12091 (i386_dr_stopped_data_address): Likewise.
12092 (i386_dr_stopped_by_watchpoint): Likewise.
12093
8f26655c
GB
120942014-06-19 Gary Benson <gbenson@redhat.com>
12095
12096 * i386-low.c (i386_dr_show): Renamed to
12097 i386_show_dr and made static. All uses updated.
12098 (i386_dr_length_and_rw_bits): Renamed to
12099 i386_length_and_rw_bits and made static.
12100 All uses updated.
12101 (i386_dr_insert_aligned_watchpoint): Renamed to
12102 i386_insert_aligned_watchpoint and made static.
12103 All uses updated.
12104 (i386_dr_remove_aligned_watchpoint): Renamed to
12105 i386_remove_aligned_watchpoint and made static.
12106 All uses updated.
12107 (i386_dr_update_inferior_debug_regs): Renamed to
12108 i386_update_inferior_debug_regs and made static.
12109 All uses updated.
12110
b9228891
GB
121112014-06-18 Gary Benson <gbenson@redhat.com>
12112
5171def3
GB
12113 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12114 (i386_dr_low_can_set_control): Likewise.
12115 (i386_get_debug_register_length): Likewise.
12116 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12117 (i386_dr_low_can_set_control): Likewise.
12118 (i386_get_debug_register_length): Likewise.
12119
121202014-06-17 Gary Benson <gbenson@redhat.com>
12121
b9228891
GB
12122 * i386-low.h (i386-dregs.h): New include.
12123 (DR_FIRSTADDR): Now in i386-dregs.h.
12124 (DR_LASTADDR): Likewise.
12125 (DR_NADDR): Likewise.
12126 (DR_STATUS): Likewise.
12127 (DR_CONTROL): Likewise.
12128 (i386_debug_reg_state): Likewise.
12129 (i386_dr_insert_watchpoint): Likewise.
12130 (i386_dr_remove_watchpoint): Likewise.
12131 (i386_dr_region_ok_for_watchpoint): Likewise.
12132 (i386_dr_stopped_data_address): Likewise.
12133 (i386_dr_stopped_by_watchpoint): Likewise.
12134 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12135
4be83cc2
GB
121362014-06-18 Gary Benson <gbenson@redhat.com>
12137
12138 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12139 i386_dr_insert_watchpoint.
12140 (i386_low_remove_watchpoint): Renamed to
12141 i386_dr_remove_watchpoint.
12142 (i386_low_region_ok_for_watchpoint): Renamed to
12143 i386_dr_region_ok_for_watchpoint.
12144 (i386_low_stopped_data_address): Renamed to
12145 i386_dr_stopped_data_address.
12146 (i386_low_stopped_by_watchpoint): Renamed to
12147 i386_dr_stopped_by_watchpoint.
12148 * i386-low.c (i386_show_dr): Renamed to
12149 i386_dr_show and made nonstatic. All uses updated.
12150 (i386_length_and_rw_bits): Renamed to
12151 i386_dr_length_and_rw_bits and made nonstatic.
12152 All uses updated.
12153 (i386_insert_aligned_watchpoint): Renamed to
12154 i386_dr_insert_aligned_watchpoint and made nonstatic.
12155 All uses updated.
12156 (i386_remove_aligned_watchpoint): Renamed to
12157 i386_dr_remove_aligned_watchpoint and made nonstatic.
12158 All uses updated.
12159 (i386_update_inferior_debug_regs): Renamed to
12160 i386_dr_update_inferior_debug_regs and made nonstatic.
12161 All uses updated.
12162 (i386_low_insert_watchpoint): Renamed to
12163 i386_dr_insert_watchpoint. All uses updated.
12164 (i386_low_remove_watchpoint): Renamed to
12165 i386_dr_remove_watchpoint. All uses updated.
12166 (i386_low_region_ok_for_watchpoint): Renamed to
12167 i386_dr_region_ok_for_watchpoint. All uses updated.
12168 (i386_low_stopped_data_address): Renamed to
12169 i386_dr_stopped_data_address. All uses updated.
12170 (i386_low_stopped_by_watchpoint): Renamed to
12171 i386_dr_stopped_by_watchpoint. All uses updated.
12172
131aa0d4
GB
121732014-06-18 Gary Benson <gbenson@redhat.com>
12174
12175 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12176 (i386_dr_low_can_set_control): Likewise.
12177 (i386_insert_aligned_watchpoint): New check.
12178
d9305f7f
GB
121792014-06-18 Gary Benson <gbenson@redhat.com>
12180
12181 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12182 Renamed to state.
12183
e927c9fc
GB
121842014-06-18 Gary Benson <gbenson@redhat.com>
12185
12186 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12187 instead of fatal and error.
12188 (i386_handle_nonaligned_watchpoint): Likewise.
12189
1b6d4134
GB
121902014-06-18 Gary Benson <gbenson@redhat.com>
12191
12192 * i386-low.c (i386_get_debug_register_length): New macro.
12193 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12194 (i386_show_dr): Use debug_printf instead of fprintf. Use
12195 phex to format values.
12196
6e62758f
GB
121972014-06-18 Gary Benson <gbenson@redhat.com>
12198
12199 * i386-low.h: Comment changes.
12200 * i386-low.c: Likewise.
12201
fc6e2f03
GB
122022014-06-18 Gary Benson <gbenson@redhat.com>
12203
12204 * i386-low.c: Whitespace changes.
12205
f9d1eeed
TT
122062014-06-12 Tom Tromey <tromey@redhat.com>
12207
12208 * utils.c (freeargv): Remove.
12209
0b04e523
TT
122102014-06-12 Tom Tromey <tromey@redhat.com>
12211
12212 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12213 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12214 (parse_debug_format_options): Likewise.
12215 (gdbserver_usage): Likewise.
12216 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12217 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12218 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12219 against libiberty.
12220 ($(LIBGNU)): Depend on libiberty.
12221 (all-lib): Recurse into all subdirs.
12222 (install-only): Invoke "install" target in subdirs.
12223 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12224 targets.
12225 * configure: Rebuild.
12226 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12227 for vasprintf, vsnprintf, or gettimeofday.
12228 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12229 srv_tgtobj.
12230
270c9937
JB
122312014-06-05 Joel Brobecker <brobecker@adacore.com>
12232
12233 * development.sh: Delete.
12234 * Makefile.in (config.status): Adjust dependency on development.sh.
12235 * configure.ac: Adjust development.sh source call.
12236 * configure: Regenerate.
12237
0a261ed8
PA
122382014-06-02 Pedro Alves <palves@redhat.com>
12239
12240 * ax.c (gdb_free_agent_expr): New function.
12241 * ax.h (gdb_free_agent_expr): New declaration.
12242 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12243 list.
12244 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12245 static.
12246 (clear_breakpoint_conditions_and_commands): New function.
12247 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12248 (clear_breakpoint_conditions_and_commands): New declaration.
12249
e9dae05e
RR
122502014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12251
12252 * linux-aarch64-low.c (asm/ptrace.h): Include.
12253
5876f503
JK
122542014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12255
12256 Fix TLS access for -static -pthread.
12257 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12258 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12259 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12260
802e8e6d
PA
122612014-05-20 Pedro Alves <palves@redhat.com>
12262
12263 * linux-aarch64-low.c (aarch64_insert_point)
12264 (aarch64_remove_point): No longer check whether the type is
12265 supported here. Adjust to new interface.
12266 (the_low_target): Install aarch64_supports_z_point_type as
12267 supports_z_point_type method.
12268 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12269 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12270 instead of a Z packet char. Adjust.
12271 (arm_supports_z_point_type): New function.
12272 (arm_insert_point, arm_remove_point): Adjust to new interface.
12273 (the_low_target): Install arm_supports_z_point_type.
12274 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12275 (cris_insert_point, cris_remove_point): Adjust to new interface.
12276 Don't check whether the type is supported here.
12277 (the_low_target): Install cris_supports_z_point_type.
12278 * linux-low.c (linux_supports_z_point_type): New function.
12279 (linux_insert_point, linux_remove_point): Adjust to new interface.
12280 * linux-low.h (struct linux_target_ops) <insert_point,
12281 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12282 raw_breakpoint pointer parameter.
12283 <supports_z_point_type>: New method.
12284 * linux-mips-low.c (mips_supports_z_point_type): New function.
12285 (mips_insert_point, mips_remove_point): Adjust to new interface.
12286 Use mips_supports_z_point_type.
12287 (the_low_target): Install mips_supports_z_point_type.
12288 * linux-ppc-low.c (the_low_target): Install NULL as
12289 supports_z_point_type method.
12290 * linux-s390-low.c (the_low_target): Install NULL as
12291 supports_z_point_type method.
12292 * linux-sparc-low.c (the_low_target): Install NULL as
12293 supports_z_point_type method.
12294 * linux-x86-low.c (x86_supports_z_point_type): New function.
12295 (x86_insert_point): Adjust to new insert_point interface. Use
12296 insert_memory_breakpoint. Adjust to new
12297 i386_low_insert_watchpoint interface.
12298 (x86_remove_point): Adjust to remove_point interface. Use
12299 remove_memory_breakpoint. Adjust to new
12300 i386_low_remove_watchpoint interface.
12301 (the_low_target): Install x86_supports_z_point_type.
12302 * lynx-low.c (lynx_target_ops): Install NULL as
12303 supports_z_point_type callback.
12304 * nto-low.c (nto_supports_z_point_type): New.
12305 (nto_insert_point, nto_remove_point): Adjust to new interface.
12306 (nto_target_ops): Install nto_supports_z_point_type.
12307 * mem-break.c: Adjust intro comment.
12308 (struct raw_breakpoint) <raw_type, size>: New fields.
12309 <inserted>: Update comment.
12310 <shlib_disabled>: Delete field.
12311 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12312 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12313 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12314 (raw_bkpt_type_to_target_hw_bp_type): New function.
12315 (find_enabled_raw_code_breakpoint_at): New function.
12316 (find_raw_breakpoint_at): New type and size parameters. Use them.
12317 (insert_memory_breakpoint): New function, based off
12318 set_raw_breakpoint_at.
12319 (remove_memory_breakpoint): New function.
12320 (set_raw_breakpoint_at): Reimplement.
12321 (set_breakpoint): New, based on set_breakpoint_at.
12322 (set_breakpoint_at): Reimplement.
12323 (delete_raw_breakpoint): Go through the_target->remove_point
12324 instead of assuming memory breakpoints.
12325 (find_gdb_breakpoint_at): Delete.
12326 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12327 (find_gdb_breakpoint): New function.
12328 (set_gdb_breakpoint_at): Delete.
12329 (z_type_supported): New function.
12330 (set_gdb_breakpoint_1): New function, loosely based off
12331 set_gdb_breakpoint_at.
12332 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12333 (delete_gdb_breakpoint_at): Delete.
12334 (delete_gdb_breakpoint_1): New function, loosely based off
12335 delete_gdb_breakpoint_at.
12336 (delete_gdb_breakpoint): New function.
12337 (clear_gdb_breakpoint_conditions): Rename to ...
12338 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12339 breakpoint.
12340 (add_condition_to_breakpoint): Make static.
12341 (add_breakpoint_condition): Take a struct breakpoint pointer
12342 instead of an address. Adjust.
12343 (gdb_condition_true_at_breakpoint): Rename to ...
12344 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12345 z_type parameter.
12346 (gdb_condition_true_at_breakpoint): Reimplement.
12347 (add_breakpoint_commands): Take a struct breakpoint pointer
12348 instead of an address. Adjust.
12349 (gdb_no_commands_at_breakpoint): Rename to ...
12350 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12351 parameter. Return true if no breakpoint was found. Change debug
12352 output.
12353 (gdb_no_commands_at_breakpoint): Reimplement.
12354 (run_breakpoint_commands): Rename to ...
12355 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12356 and change return type to boolean.
12357 (run_breakpoint_commands): New function.
12358 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12359 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12360 breakpoint. Go through the_target->remove_point instead of
12361 assuming memory breakpoint.
12362 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12363 software and hardware breakpoints.
12364 (reinsert_raw_breakpoint): Go through the_target->insert_point
12365 instead of assuming memory breakpoint.
12366 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12367 software and hardware breakpoints.
12368 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12369 Check both software and hardware breakpoints.
12370 (validate_inserted_breakpoint): Assert the breakpoint is a
12371 software breakpoint. Set the inserted flag to -1 instead of
12372 setting shlib_disabled.
12373 (delete_disabled_breakpoints): Adjust.
12374 (validate_breakpoints): Only validate software breakpoints.
12375 Adjust to inserted flag change.
12376 (check_mem_read, check_mem_write): Skip breakpoint types other
12377 than software breakpoints. Adjust to inserted flag change.
12378 * mem-break.h (enum raw_bkpt_type): New enum.
12379 (raw_breakpoint, struct process_info): Forward declare.
12380 (Z_packet_to_target_hw_bp_type): Delete declaration.
12381 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12382 (set_gdb_breakpoint, delete_gdb_breakpoint)
12383 (clear_breakpoint_conditions): New declarations.
12384 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12385 (breakpoint_inserted_here): Update comment.
12386 (add_breakpoint_condition, add_breakpoint_commands): Replace
12387 address parameter with a breakpoint pointer parameter.
12388 (gdb_breakpoint_here): Update comment.
12389 (delete_gdb_breakpoint_at): Delete.
12390 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12391 * server.c (process_point_options): Take a struct breakpoint
12392 pointer instead of an address. Adjust.
12393 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12394 delete_gdb_breakpoint.
12395 * spu-low.c (spu_target_ops): Install NULL as
12396 supports_z_point_type method.
12397 * target.h: Include mem-break.h.
12398 (struct target_ops) <prepare_to_access_memory>: Update comment.
12399 <supports_z_point_type>: New field.
12400 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12401 instead of a char. Also take a raw breakpoint pointer.
12402 * win32-arm-low.c (the_low_target): Install NULL as
12403 supports_z_point_type.
12404 * win32-i386-low.c (i386_supports_z_point_type): New function.
12405 (i386_insert_point, i386_remove_point): Adjust to new interface.
12406 (the_low_target): Install i386_supports_z_point_type.
12407 * win32-low.c (win32_supports_z_point_type): New function.
12408 (win32_insert_point, win32_remove_point): Adjust to new interface.
12409 (win32_target_ops): Install win32_supports_z_point_type.
12410 * win32-low.h (struct win32_target_ops):
12411 <supports_z_point_type>: New method.
12412 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12413 instead of a char. Also take a raw breakpoint pointer.
12414
932539e3
PA
124152014-05-20 Pedro Alves <palves@redhat.com>
12416
12417 * mem-break.h: Include break-common.h.
12418 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12419 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12420 (Z_packet_to_target_hw_bp_type): New declaration.
12421 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12422 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12423 (Z_PACKET_ACCESS_WP): Delete macros.
12424 (Z_packet_to_hw_type): Delete function.
12425 * i386-low.h: Don't include break-common.h here.
12426 (Z_packet_to_hw_type): Delete declaration.
12427 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12428 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12429 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12430 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12431 * linux-aarch64-low.c: Don't include break-common.h here.
12432 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12433 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12434 (Z_packet_to_target_hw_bp_type): Delete function.
12435 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12436 function.
12437 (mips_insert_point, mips_remove_point): Use
12438 Z_packet_to_target_hw_bp_type.
12439
4ff0d3d8
PA
124402014-05-20 Pedro Alves <palves@redhat.com>
12441
12442 * linux-aarch64-low.c: Include break-common.h.
12443 (enum target_point_type): Delete.
12444 (Z_packet_to_point_type): Rename to ...
12445 (Z_packet_to_target_hw_bp_type): ... this, and return a
12446 target_hw_bp_type instead.
12447 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12448 instead of an enum target_point_type.
12449 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12450 breakpoint type.
12451 (aarch64_dr_state_insert_one_point)
12452 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12453 (aarch64_handle_aligned_watchpoint)
12454 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12455 Take an enum target_hw_bp_type instead of an enum
12456 target_point_type.
12457 (aarch64_supports_z_point_type): New function.
12458 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12459 use Z_packet_to_target_hw_bp_type.
12460
786dc519
JB
124612014-05-20 Joel Brobecker <brobecker@adacore.com>
12462
12463 * configure.ac: Only use -Werror by default when DEVELOPMENT
12464 is true.
12465 * configure: Regenerate.
12466
9e0aa64f
JK
124672014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12468
12469 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12470 * linux-x86-low.c (X86_64_USER_REGS): New.
12471 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12472
2b577b92
YQ
124732014-04-28 Yao Qi <yao@codesourcery.com>
12474
12475 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12476 name.
12477
94611da2
PA
124782014-04-25 Pedro Alves <palves@redhat.com>
12479
12480 PR server/16255
12481 * linux-low.c (linux_attach_fail_reason_string): New function.
12482 (linux_attach_lwp): Delete.
12483 (linux_attach_lwp_1): Rename to ...
12484 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12485 argument. Remove "initial" parameter. Return int instead of
12486 void. Don't error or warn here.
12487 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12488 failure to attach to the tgid. Call warning when failing to
12489 attach to an lwp.
12490 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12491 argument. Remove "initial" parameter. Return int instead of
12492 void. Don't error or warn here.
12493 (linux_attach_fail_reason_string): New declaration.
12494 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12495 interface change. Use linux_attach_fail_reason_string.
12496
01f9f808
MS
124972014-04-24 Michael Sturm <michael.sturm@mintel.com>
12498 Walfred Tedeschi <walfred.tedeschi@intel.com>
12499
12500 * Makefile.in: Added rules to handle new files
12501 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12502 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12503 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12504 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12505 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12506 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12507 x32-avx512-linux.o.
12508 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12509 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12510 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12511 i386/x32-avx512.xml.
12512 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12513 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12514 i386/x32-avx512-linux.xml.
12515 * i387-fp.c (num_avx512_k_registers): New constant for number
12516 of K registers.
12517 (num_avx512_zmmh_low_registers): New constant for number of
12518 lower ZMM registers (0-15).
12519 (num_avx512_zmmh_high_registers): New constant for number of
12520 higher ZMM registers (16-31).
12521 (num_avx512_ymmh_registers): New contant for number of higher
12522 YMM registers (ymm16-31 added by avx521 on x86_64).
12523 (num_avx512_xmm_registers): New constant for number of higher
12524 XMM registers (xmm16-31 added by AVX512 on x86_64).
12525 (struct i387_xsave): Add space for AVX512 registers.
12526 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12527 Add code to handle AVX512 registers.
12528 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12529 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12530 prototypei from generated file.
12531 (tdesc_amd64_avx512_linux): Likewise.
12532 (init_registers_x32_avx512_linux): Likewise.
12533 (tdesc_x32_avx512_linux): Likewise.
12534 (init_registers_i386_avx512_linux): Likewise.
12535 (tdesc_i386_avx512_linux): Likewise.
12536 (x86_64_regmap): Add AVX512 registers.
12537 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12538 mask.
12539 (initialize_low_arch): Add code to initialize AVX512 registers.
12540
51aa91f9
PA
125412014-04-23 Pedro Alves <palves@redhat.com>
12542
12543 * mem-break.c (find_gdb_breakpoint_at): Make static.
12544 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12545
a4165e94
PA
125462014-04-23 Pedro Alves <palves@redhat.com>
12547
12548 * i386-low.c: Don't include break-common.h here.
12549 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12550 prototype to take target_hw_bp_type as argument instead of a Z
12551 packet char.
12552 * i386-low.h: Include break-common.h here.
12553 (Z_packet_to_hw_type): Declare.
12554 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12555 prototypes.
12556 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12557 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12558 (x86_remove_point): Convert the packet number to a
12559 target_hw_bp_type before calling i386_low_remove_watchpoint.
12560 * win32-i386-low.c (i386_insert_point): Convert the packet number
12561 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12562 (i386_remove_point): Convert the packet number to a
12563 target_hw_bp_type before calling i386_low_remove_watchpoint.
12564
b8acf843
PA
125652014-04-23 Pedro Alves <palves@redhat.com>
12566
12567 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12568
d708bcd1
PA
125692014-04-10 Pedro Alves <palves@redhat.com>
12570
12571 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12572 Check if the condition or command is NULL before checking if the
12573 breakpoint is known. On success, return true.
12574 * mem-break.h (add_breakpoint_condition): Document return.
12575 (add_breakpoint_commands): Add describing comment.
12576 * server.c (skip_to_semicolon): New function.
12577 (process_point_options): Use it.
12578
2eec7d5b
PA
125792014-04-09 Pedro Alves <palves@redhat.com>
12580
12581 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12582 to lwpid_of.
12583
fa96cb38
PA
125842014-02-27 Pedro Alves <palves@redhat.com>
12585
12586 PR 12702
12587 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12588 macros.
12589 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12590 output.
12591 (last_thread_of_process_p): Take a PID argument instead of a
12592 thread pointer.
12593 (linux_wait_for_lwp): Delete.
12594 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12595 functions.
12596 (linux_low_filter_event): New function, party factored out from
12597 linux_wait_for_event.
12598 (linux_wait_for_event): Rename to ...
12599 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12600 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12601 sigsuspend. Check for zombie leaders.
12602 (linux_wait_for_event): Reimplement as wrapper around
12603 linux_wait_for_event_filtered.
12604 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12605 a normal or signal exit is seen, it's the whole process exiting.
12606 (wait_for_sigstop): No longer a for_each_inferior callback.
12607 Rewrite on top of linux_wait_for_event_filtered.
12608 (stop_all_lwps): Call wait_for_sigstop directly.
12609 * server.c (resume, handle_target_event): Handle
12610 TARGET_WAITKIND_NO_RESUMED.
12611
d763de10
JB
126122014-02-26 Joel Brobecker <brobecker@adacore.com>
12613
12614 * win32-low.c (psapi_get_dll_name,
12615 * win32_CreateToolhelp32Snapshot): Delete.
12616 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12617 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12618 Delete.
12619 (handle_load_dll): Add function description.
12620 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12621
850a0f76
JB
126222014-02-26 Joel Brobecker <brobecker@adacore.com>
12623
12624 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12625 Add comment.
12626 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12627 base address when calling win32_add_one_solib.
12628 (handle_load_dll): Delete local variable load_addr.
12629 Remove 0x1000 offset applied to DLL base address when calling
12630 win32_add_one_solib.
12631 (handle_unload_dll): Add comment.
12632
f25b3fc3
JB
126332014-02-26 Joel Brobecker <brobecker@adacore.com>
12634
12635 * win32-low.c (win32_add_all_dlls): Renames
12636 win32_ensure_ntdll_loaded. Rewrite function documentation.
12637 Adjust implementation to always load all DLLs.
12638 Add 0x1000 offset to DLL base address when calling
12639 win32_add_one_solib.
12640 (child_initialization_done): New static global.
12641 (do_initial_child_stuff): Set child_initialization_done to
12642 zero during child initialization, and 1 after. Replace call
12643 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12644 Add comment.
12645 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12646 (handle_unload_dll): Add function documentation.
12647 (get_child_debug_event): Ignore load and unload DLL events
12648 during child initialization.
12649
d86d4aaf
DE
126502014-02-20 Doug Evans <dje@google.com>
12651
3bc32da3 12652 Remove global all_lwps.
d86d4aaf
DE
12653 * inferiors.h (ptid_of): Move here from linux-low.h.
12654 (pid_of, lwpid_of): Ditto.
12655 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12656 parameter is a struct thread_info * now.
12657 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12658 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12659 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12660 directly.
12661 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12662 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12663 * linux-arm-low.c (update_registers_callback): Update, "entry"
12664 parameter is a struct thread_info * now.
12665 Fetch lwpid from current_inferior directly.
12666 (arm_insert_point): Pass &all_threads to find_inferior instead of
12667 &all_lwps.
12668 (arm_remove_point): Ditto.
12669 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12670 (arm_prepare_to_resume): Fetch pid from thread.
12671 (arm_read_description): Fetch lwpid from current_inferior directly.
12672 * linux-low.c (all_lwps): Delete.
12673 (delete_lwp): Delete call to remove_inferior.
12674 (handle_extended_wait): Fetch lwpid from thread.
12675 (add_lwp): Don't set lwp->entry.id. Remove call to
12676 add_inferior_to_list.
12677 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12678 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12679 (kill_one_lwp_callback): Ditto.
12680 (linux_kill): Don't dereference NULL pointer.
12681 Fetch ptid,lwpid from thread.
12682 (get_detach_signal): Fetch ptid from thread.
12683 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12684 Simplify call to regcache_invalidate_thread.
12685 (delete_lwp_callback): Update, "entry" parameter is a
12686 struct thread_info * now. Fetch pid from thread.
12687 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12688 (status_pending_p_callback): Update, "entry" parameter is a
12689 struct thread_info * now. Fetch ptid from thread.
12690 (find_lwp_pid): Update, "entry" parameter is a
12691 struct thread_info * now.
12692 (linux_wait_for_lwp): Fetch pid from thread.
12693 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12694 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12695 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12696 (dequeue_one_deferred_signal): Ditto.
12697 (cancel_breakpoint): Fetch ptid from current_inferior.
12698 (linux_wait_for_event): Pass &all_threads to find_inferior,
12699 not &all_lwps. Fetch ptid, lwpid from thread.
12700 (count_events_callback): Update, "entry" parameter is a
12701 struct thread_info * now.
12702 (select_singlestep_lwp_callback): Ditto.
12703 (select_event_lwp_callback): Ditto.
12704 (cancel_breakpoints_callback): Ditto.
12705 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12706 not &all_lwps.
12707 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12708 (unsuspend_one_lwp): Update, "entry" parameter is a
12709 struct thread_info * now.
12710 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12711 not &all_lwps.
12712 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12713 Fetch lwpid from thread, not lwp.
12714 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12715 Pass &all_threads to find_inferior, not &all_lwps.
12716 (send_sigstop): Fetch lwpid from thread, not lwp.
12717 (send_sigstop_callback): Update, "entry" parameter is a
12718 struct thread_info * now.
12719 (suspend_and_send_sigstop_callback): Ditto.
12720 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12721 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12722 struct thread_info * now.
12723 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12724 from thread, lwp.
12725 (lwp_running): Update, "entry" parameter is a
12726 struct thread_info * now.
12727 (stop_all_lwps): Fetch ptid from thread.
12728 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12729 (linux_resume_one_lwp): Fetch lwpid from thread.
12730 (linux_set_resume_request): Update, "entry" parameter is a
12731 struct thread_info * now. Fetch pid, lwpid from thread.
12732 (resume_status_pending_p): Update, "entry" parameter is a
12733 struct thread_info * now.
12734 (need_step_over_p): Ditto. Fetch lwpid from thread.
12735 (start_step_over): Fetch lwpid from thread.
12736 (linux_resume_one_thread): Update, "entry" parameter is a
12737 struct thread_info * now. Fetch lwpid from thread.
12738 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12739 (proceed_one_lwp): Update, "entry" parameter is a
12740 struct thread_info * now. Fetch lwpid from thread.
12741 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12742 struct thread_info * now.
12743 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12744 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12745 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12746 directly.
12747 (regsets_store_inferior_registers): Ditto.
12748 (fetch_register, store_register): Ditto.
12749 (linux_read_memory, linux_write_memory): Ditto.
12750 (linux_request_interrupt): Ditto.
12751 (linux_read_auxv): Ditto.
12752 (linux_xfer_siginfo): Ditto.
12753 (linux_qxfer_spu): Ditto.
12754 (linux_qxfer_libraries_svr4): Ditto.
12755 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12756 moved to inferiors.h.
12757 (get_lwp): Delete.
12758 (get_thread_lwp): Update.
12759 (struct lwp_info): Delete member "entry". Simplify comment for
12760 member "thread".
12761 (all_lwps): Delete.
12762 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12763 current_inferior directly.
12764 (update_watch_registers_callback): Update, "entry" parameter is a
12765 struct thread_info * now. Fetch pid from thread.
12766 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12767 (mips_insert_point): Fetch lwpid from current_inferior.
12768 Pass &all_threads to find_inferior, not &all_lwps.
12769 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12770 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12771 directly.
12772 (mips_stopped_data_address): Ditto.
12773 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12774 directly.
12775 * linux-tile-low.c (tile_arch_setup): Ditto.
12776 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12777 (update_debug_registers_callback): Update, "entry" parameter is a
12778 struct thread_info * now. Fetch pid from thread.
12779 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12780 Pass &all_threads to find_inferior, not &all_lwps.
12781 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12782 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12783 Pass &all_threads to find_inferior, not &all_lwps.
12784 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12785 (i386_dr_low_get_status): Ditto.
12786 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12787 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12788 (x86_linux_read_description): Ditto.
12789 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12790
3b8361aa
DE
127912014-02-20 Doug Evans <dje@google.com>
12792
12793 * inferiors.c (get_first_inferior): Fix buglet.
12794
f7667f0d
DE
127952014-02-19 Doug Evans <dje@google.com>
12796
12797 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12798 * inferiors.c (add_thread): Change result type to struct thread_info *.
12799 All callers updated.
12800 (add_lwp): Call add_thread here instead of in callers.
12801 All callers updated.
12802 * linux-low.h (get_lwp_thread): Rewrite.
12803 (struct lwp_info): New member "thread".
12804
b3312d80
DE
128052014-02-19 Doug Evans <dje@google.com>
12806
12807 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12808 All callers updated.
12809
ecc6f45c
DE
128102014-02-19 Doug Evans <dje@google.com>
12811
12812 * inferiors.c (add_thread): Fix whitespace.
12813
649ebbca
DE
128142014-02-19 Doug Evans <dje@google.com>
12815
12816 * dll.c (clear_dlls): Replace accessing list implemention details
12817 with API function.
12818 * gdbthread.h (get_first_thread): Declare.
12819 * inferiors.c (for_each_inferior_with_data): New function.
12820 (get_first_thread): New function.
12821 (find_thread_ptid): Simplify.
12822 (get_first_inferior): New function.
12823 (clear_list): Delete.
12824 (one_inferior_p): New function.
12825 (clear_inferior_list): New function.
12826 (clear_inferiors): Update.
12827 * inferiors.h (for_each_inferior_with_data): Declare.
12828 (clear_inferior_list): Declare.
12829 (one_inferior_p): Declare.
12830 (get_first_inferior): Declare.
12831 * linux-low.c (linux_wait_for_event): Replace accessing list
12832 implemention details with API function.
12833 * server.c (target_running): Ditto.
12834 (accumulate_file_name_length): New function.
12835 (emit_dll_description): New function.
12836 (handle_qxfer_libraries): Replace accessing list implemention
12837 details with API function.
12838 (handle_qxfer_threads_worker): New function.
12839 (handle_qxfer_threads_proper): Replace accessing list implemention
12840 details with API function.
12841 (handle_query): Ditto.
12842 (visit_actioned_threads_callback_ftype): New typedef.
12843 (visit_actioned_threads_data): New struct.
12844 (visit_actioned_threads): Rewrite to be find_inferior callback.
12845 (resume): Call find_inferior.
12846 (handle_status): Replace accessing list implemention
12847 details with API function.
12848 (process_serial_event): Replace accessing list implemention details
12849 with API function.
12850 * target.c (set_desired_inferior): Replace accessing list implemention
12851 details with API function.
12852 * tracepoint.c (same_process_p): New function.
12853 (gdb_agent_about_to_close): Replace accessing list implemention
12854 details with API function.
12855 * win32-low.c (child_delete_thread): Replace accessing list
12856 implemention details with API function.
12857 (match_dll_by_basename): New function.
12858 (dll_is_loaded_by_basename): New function.
12859 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12860 details call to dll_is_loaded_by_basename.
12861
80894984
DE
128622014-02-19 Doug Evans <dje@google.com>
12863
12864 * dll.h (struct dll_info): Add comment.
12865 * gdbthread.h (struct thread_info): Add comment.
12866 (current_ptid): Simplify.
12867 * inferiors.c (add_process): Update.
12868 (remove_process): Update.
12869 * inferiors.h (struct process_info): Rename member "head" to "entry".
12870 * linux-low.c (delete_lwp): Update.
12871 (add_lwp): Update.
12872 (last_thread_of_process_p): Update.
12873 (kill_one_lwp_callback, linux_kill): Update.
12874 (status_pending_p_callback): Update.
12875 (wait_for_sigstop): Update. Simplify read of ptid.
12876 (start_step_over): Update.
12877 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12878 (get_lwp_thread): Update.
12879 (struct lwp_info): Rename member "head" to "entry".
12880 * regcache.h (inferior_list_entry): Delete.
12881 * server.c (kill_inferior_callback): Update.
12882 (detach_or_kill_inferior_callback): Update.
12883 (print_started_pid): Update.
12884 (print_attached_pid): Update.
12885 (process_serial_event): Simplify read of ptid.
12886 * thread-db.c (thread_db_create_event): Update.
12887 (thread_db_get_tls_address): Update.
12888 * win32-low.c (current_inferior_ptid): Simplify.
12889
46917d26
TT
128902014-02-19 Tom Tromey <tromey@redhat.com>
12891
12892 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12893 argument.
12894 (target_supports_btrace): Update.
12895
0759a81e
YQ
128962014-02-14 Yao Qi <yao@codesourcery.com>
12897
12898 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12899 (rsp-low-ipa.o): New target.
12900
a7191e8b
TT
129012014-02-12 Tom Tromey <tromey@redhat.com>
12902
12903 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12904 convert_ascii_to_int.
12905 * regcache.c (registers_to_string): Likewise.
12906 * remote-utils.c (decode_M_packet): Likewise.
12907 * server.c (process_serial_event): Likewise.
12908
ff0e980e
TT
129092014-02-12 Tom Tromey <tromey@redhat.com>
12910
12911 * server.c (handle_query, handle_v_run): Use hex2bin, not
12912 unhexify.
12913 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12914
e9371aff
TT
129152014-02-12 Tom Tromey <tromey@redhat.com>
12916
12917 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12918 convert_int_to_ascii.
12919 * regcache.c (registers_to_string, collect_register_as_string):
12920 Likewise.
12921 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12922 Likewise.
12923 * server.c (process_serial_event): Likewise.
12924 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12925 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12926
971dc0b8
TT
129272014-02-12 Tom Tromey <tromey@redhat.com>
12928
12929 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12930 bin2hex, not hexify.
12931 * tracepoint.c (cmd_qtstatus): Likewise.
12932
0a822afb
TT
129332014-02-12 Tom Tromey <tromey@redhat.com>
12934
12935 * remote-utils.c (monitor_output): Pass explicit length to
12936 hexify.
12937
9c3d6531
TT
129382014-02-12 Tom Tromey <tromey@redhat.com>
12939
12940 * tracepoint.c: Include rsp-low.h.
12941 * server.c: Include rsp-low.h.
12942 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
12943 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
12944 declare.
12945 * remote-utils.c: Include rsp-low.h.
12946 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
12947 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
12948 (convert_int_to_ascii, convert_ascii_to_int): Move to
12949 common/rsp-low.c.
12950 * regcache.c: Include rsp-low.h.
12951 * ax.c: Include rsp-low.h.
12952 * Makefile.in (SFILES): Add common/rsp-low.c.
12953 (OBS): Add rsp-low.o.
12954 (rsp-low.o): New target.
12955
01fd3ea5
TT
129562014-02-12 Tom Tromey <tromey@redhat.com>
12957
12958 * utils.h (pulongest, plongest, phex_nz): Don't declare.
12959 Include print-utils.h.
12960 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12961 (plongest, thirty_two, phex_nz): Remove.
12962 * Makefile.in (SFILES): Add common/print-utils.c.
12963 (OBS): Add print-utils.o.
12964 (print-utils-ipa.o): New target.
12965 (print-utils.o): New target.
12966 (IPA_OBJS): Add print-utils-ipa.o.
12967
e99dc820
TT
129682014-02-06 Tom Tromey <tromey@redhat.com>
12969
12970 * Makefile.in (SFILES): Fix indentation.
12971
ee1e2d4f
DE
129722014-02-05 Doug Evans <dje@google.com>
12973
12974 * linux-low.c (linux_wait_for_event): Improve comment.
12975 (linux_wait_1): Keep current_inferior in sync with event_child.
12976
f5a02773
DE
129772014-01-22 Doug Evans <dje@google.com>
12978
12979 * gdbthread.h (gdb_id_to_thread): Delete, unused.
12980
87ce2a04
DE
129812014-01-22 Doug Evans <dje@google.com>
12982
12983 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
12984 * configure: Regenerate.
12985 * config.in: Regenerate.
12986 * Makefile.in (SFILES): Add debug.c.
12987 (OBS): Add debug.o.
12988 * debug.c: New file.
12989 * debug.h: New file.
12990 * linux-aarch64-low.c (*): Update all debugging printfs to use
12991 debug_printf instead of fprintf.
12992 * linux-arm-low.c (*): Ditto.
12993 * linux-cris-low.c (*): Ditto.
12994 * linux-crisv32-low.c (*): Ditto.
12995 * linux-m32r-low.c (*): Ditto.
12996 * linux-sparc-low.c (*): Ditto.
12997 * linux-x86.c (*): Ditto.
12998 * linux-low.c (*): Ditto.
12999 (linux_wait_1): Add calls to debug_enter, debug_exit.
13000 (linux_wait): Remove redundant debugging printf.
13001 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13002 (linux_resume, unstop_all_lwps): Ditto.
13003 * mem-break.c (*): Update all debugging printfs to use
13004 debug_printf instead of fprintf.
13005 * remote-utils.c (*): Ditto.
13006 * thread-db.c (*): Ditto.
13007 * server.c #include <ctype.h>, "gdb_vecs.h".
13008 (debug_threads): Moved to debug.c.
13009 (*): Update all debugging printfs to use debug_printf instead of
13010 fprintf.
13011 (start_inferior): Replace call to fflush with call to debug_flush.
13012 (monitor_show_help): Mention set debug-format.
13013 (parse_debug_format_options): New function.
13014 (handle_monitor_command): Handle "monitor set debug-format".
13015 (gdbserver_usage): Mention --debug-format.
13016 (main): Parse --debug-format.
13017 * server.h (debug_threads): Declaration moved to debug.h.
13018 #include "debug.h".
13019 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13020 trace_debug_1 that uses debug_printf.
13021 (tracepoint_look_up_symbols): Update all debugging printfs to use
13022 debug_printf instead of fprintf.
13023
e671835b
BS
130242014-01-20 Baruch Siach <baruch@tkos.co.il>
13025
13026 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13027 sys/ptrace.h.
13028
b5737fa9
PA
130292014-01-17 Pedro Alves <palves@redhat.com>
13030
ea38d2a9 13031 PR build/16445
c7faa97a
PA
13032 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13033 defined after including gdb_proc_service.h.
b5737fa9 13034
40ed484e
DE
130352014-01-16 Doug Evans <dje@google.com>
13036
13037 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13038 (match_dll): Use it.
13039
969c39fb
MM
130402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13041
13042 * target.h (target_ops) <read_btrace>: Change parameters and
13043 return type to allow error reporting.
13044 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13045 trace reading errors on.
13046 * linux-low.c (linux_low_read_btrace): Pass trace reading
13047 errors on.
13048 (linux_low_disable_btrace): New.
13049
ab7f45ba
DE
130502014-01-15 Doug Evans <dje@google.com>
13051
13052 * inferiors.c (thread_id_to_gdb_id): Delete.
13053 * inferiors.h (thread_id_to_gdb_id): Delete.
13054
66af0f44
EZ
130552014-01-13 Eli Zaretskii <eliz@gnu.org>
13056
13057 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13058 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13059 versions.
13060
9939e131
PA
130612014-01-08 Pedro Alves <palves@redhat.com>
13062
13063 * server.c (handle_status): Don't discard previous queued stop
13064 replies or thread's pending status here.
13065 (main) <disconnection>: Do it here instead.
13066
b7ea362b
PA
130672014-01-08 Pedro Alves <palves@redhat.com>
13068
13069 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13070 * server.c (visit_actioned_threads, handle_pending_status): New
13071 function.
13072 (handle_v_cont): Factor out parts to ...
13073 (resume): ... this new function. If in all-stop, and a thread
13074 being resumed has a pending status, report it without actually
13075 resuming.
13076 (myresume): Adjust to use the new 'resume' function.
13077 (clear_pending_status_callback, set_pending_status_callback)
13078 (find_status_pending_thread_callback): New functions.
13079 (handle_status): Handle the case of multiple threads having
13080 interesting statuses to report. Report threads' real last signal
13081 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13082 with an interesting thread to report the status for, instead of
13083 always reporting the status of the first thread.
13084
28498c42
JB
130852014-01-01 Joel Brobecker <brobecker@adacore.com>
13086
13087 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13088 * gdbreplay.c (gdbreplay_version): Likewise.
13089
f45c82da
YZ
130902013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13091
13092 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13093 iov.iov_len with the real length in use.
13094
379a5e2d
JB
130952013-12-13 Joel Brobecker <brobecker@adacore.com>
13096
13097 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13098 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13099 for all targets that use win32-low.c.
13100 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13101 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13102
4210d83e
PA
131032013-12-13 Pedro Alves <palves@redhat.com>
13104
13105 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13106 if equal to TARGET_WAITKIND_LOADED.
13107 * win32-low.c (cached_status): New static global.
13108 (win32_wait): Add declaration.
13109 (do_initial_child_stuff): Flush all initial pending debug events
13110 up to the initial breakpoint.
13111 (win32_wait): If CACHED_STATUS was set, return that instead
13112 of doing a real wait. Remove the code resuming the execution
13113 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13114 during the initial phase. Also remove the code changing
13115 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13116 TARGET_WAITKIND_STOPPED.
13117
e7f0d979
YQ
131182013-12-11 Yao Qi <yao@codesourcery.com>
13119
13120 * notif.c (handle_notif_ack): Return 0 if no notification
13121 matches.
13122
ebcf782c
DE
131232013-11-20 Doug Evans <dje@google.com>
13124
13125 * linux-low.c (linux_set_resume_request): Fix comment.
13126
20ad9378
DE
131272013-11-20 Doug Evans <dje@google.com>
13128
13129 * linux-low.c (resume_status_pending_p): Tweak comment.
13130
a196ebeb
WT
131312013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13132
13133 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13134 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13135 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13136 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13137 (srv_amd64_regobj): Add amd64-mpx.o.
13138 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13139 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13140 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13141 * i387-fp.c (num_pl_bnd_register) Added constant.
13142 (num_pl_bnd_cfg_registers) Added constant.
13143 (struct i387_xsave) Added reserved area and MPX fields.
13144 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13145 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13146 function.
13147 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13148 (init_registers_amd64_mpx_linux): Declare new function.
13149 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13150 (x86_64_regmap): Add MPX registers.
13151 (x86_linux_read_description): Add MPX case.
13152 (initialize_low_arch): Initialize MPX targets.
13153
0080a2f6
TT
131542013-11-18 Tom Tromey <tromey@redhat.com>
13155
13156 * configure: Rebuild.
13157 * configure.ac: Don't check for stdlib.h.
13158 * gdbreplay.c: Unconditionally include stdlib.h.
13159
2978b111
TT
131602013-11-18 Tom Tromey <tromey@redhat.com>
13161
13162 * config.in: Rebuild.
13163 * configure: Rebuild.
13164 * configure.ac: Don't use AC_HEADER_DIRENT.
13165
a3d08894
TT
131662013-11-18 Tom Tromey <tromey@redhat.com>
13167
13168 * server.h: Don't check HAVE_STRING_H.
13169 * gdbreplay.c: Don't check HAVE_STRING_H.
13170 * configure: Rebuild.
13171
0a5dd17d
TT
131722013-11-18 Tom Tromey <tromey@redhat.com>
13173
13174 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13175 LIBGNU.
13176
1bd2f0ba
TT
131772013-11-08 Tom Tromey <tromey@redhat.com>
13178
13179 * configure, config.in: Rebuild.
13180 * configure.ac: Remove unused configury.
13181
3266f10b
TT
131822013-11-08 Tom Tromey <tromey@redhat.com>
13183
13184 * acinclude.m4: Include common.m4, codeset.m4.
13185 * configure, config.in: Rebuild.
13186 * configure.ac: Use GDB_AC_COMMON.
13187
6682d959
AA
131882013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13189
13190 * linux-s390-low.c (HWCAP_S390_TE): New define.
13191 (s390_arch_setup): Consider the TE field in the HWCAP for
13192 determining 'have_regset_tdb'.
13193
fd0a4d76
SDJ
131942013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13195
13196 PR gdb/16014
13197 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13198 call to sizeof.
13199
1a3d890b
PA
132002013-10-02 Pedro Alves <palves@redhat.com>
13201
13202 * server.c (process_serial_event): Don't output "GDBserver
13203 exiting" if GDB is connected through stdio.
13204 * target.c (mywait): Likewise, be silent if GDB is connected
13205 through stdio.
13206
97ad4581
JB
132072013-10-01 Joel Brobecker <brobecker@adacore.com>
13208
13209 * lynx-low.c (lynx_add_threads_after_attach): New function.
13210 (lynx_attach): Remove call to add_thread. Add call to
13211 lynx_add_threads_after_attach instead.
13212
5b4e221c
MF
132132013-09-28 Mike Frysinger <vapier@gentoo.org>
13214
13215 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13216 * config.in, configure: Regenerated.
13217
ee47b2f8
YQ
132182013-09-18 Yao Qi <yao@codesourcery.com>
13219
13220 PR server/15959
13221 * server.c (start_inferior): Clear 'resume_info'.
13222
d6707650 132232013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13224
d6707650
JW
13225 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13226 for each register.
13227
9243dd0e 132282013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13229
9243dd0e
JW
13230 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13231 linux-tile-low.o to srv_tgtobj.
13232
c623a6ef
WN
132332013-09-16 Will Newton <will.newton@linaro.org>
13234
13235 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13236 out regs.
13237
fb71d39e
PA
132382013-09-06 Pedro Alves <palves@redhat.com>
13239
13240 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13241 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13242 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13243 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13244 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13245 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13246
8e7e9910
PA
132472013-09-06 Pedro Alves <palves@redhat.com>
13248
13249 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13250 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13251
7c3a12ca
PA
132522013-09-06 Pedro Alves <palves@redhat.com>
13253
13254 * linux-amd64-ipa.c: Include tracepoint.h.
13255 * linux-i386-ipa.c: Include tracepoint.h.
13256
8eb3d7b6
RW
132572013-09-06 Ricard Wanderlof <ricardw@axis.com>
13258
13259 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13260 (ps_get_thread_area): New function.
13261
eddddb9d
RW
132622013-09-06 Ricard Wanderlof <ricardw@axis.com>
13263
13264 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13265 (initialize_low_arch): Call init_registers_crisv32 rather than
13266 init_register_crisv32.
13267
533b0600
PA
132682013-09-05 Pedro Alves <palves@redhat.com>
13269
13270 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13271 to ...
13272 * hostio.h: ... this new file.
13273 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13274 win32-low.c: Include hostio.h.
13275
0ce3d3b5
PA
132762013-09-05 Pedro Alves <palves@redhat.com>
13277
13278 * server.h (gdb_client_data, handler_func, callback_handler_func)
13279 (delete_file_handler, add_file_handler, append_callback_event)
13280 (delete_callback_event, start_event_loop, initialize_event_loop):
13281 Move to event-loop.h and include it.
13282 * event-loop.h: New file.
13283
799cdc37
PA
132842013-09-05 Pedro Alves <palves@redhat.com>
13285
13286 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13287 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13288 (loaded_dll, unloaded_dll): Move to ...
13289 * dll.h: ... this new file.
13290 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13291
6a6bbd9d
PA
132922013-09-05 Pedro Alves <palves@redhat.com>
13293
13294 * server.h (current_process, get_thread_process, all_processes)
13295 (add_inferior_to_list, for_each_inferior, current_inferior)
13296 (remove_inferior, add_process, remove_process, find_process_pid)
13297 (have_started_inferiors_p, have_attached_inferiors_p)
13298 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13299 (clear_inferiors, find_inferior, find_inferior_id)
13300 (inferior_target_data, set_inferior_target_data)
13301 (inferior_regcache_data, set_inferior_regcache_data): Move to
13302 inferiors.h, and include it.
13303 * inferiors.h: New file.
13304
f699aaba
PA
133052013-09-05 Pedro Alves <palves@redhat.com>
13306
13307 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13308 Move ...
72f4393d 13309 * ax.h: ... here.
f699aaba 13310
c144c7a0
PA
133112013-09-05 Pedro Alves <palves@redhat.com>
13312
13313 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13314 tracepoint.h.
13315 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13316 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13317 (handle_tracepoint_general_set, handle_tracepoint_query)
13318 (tracepoint_finished_step, tracepoint_was_hit)
13319 (release_while_stepping_state_list, current_traceframe)
13320 (in_readonly_region, traceframe_read_mem)
13321 (fetch_traceframe_registers, traceframe_read_sdata)
13322 (traceframe_read_info, struct fast_tpoint_collect_status)
13323 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13324 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13325 (supply_fast_tracepoint_registers)
13326 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13327 (ipa_tdesc, claim_trampoline_space)
13328 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13329 (agent_mem_read, agent_get_trace_state_variable_value)
13330 (agent_set_trace_state_variable_value, agent_tsv_read)
13331 (agent_mem_read_string, get_raw_reg_func_addr)
13332 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13333 * tracepoint.h: ... this new file.
13334
ff42e6ab
PA
133352013-09-05 Pedro Alves <palves@redhat.com>
13336
13337 * server.h (perror_with_name, error, fatal, warning, paddress)
13338 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13339 include it.
13340 * utils.h: New file.
13341
541af0f4
PA
133422013-09-05 Pedro Alves <palves@redhat.com>
13343
13344 * server.h (remote_debug, noack_mode, transport_is_reliable)
13345 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13346 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13347 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13348 (write_enn, initialize_async_io, enable_async_io)
13349 (disable_async_io, check_remote_input_interrupt_request)
13350 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13351 (dead_thread_notify, prepare_resume_reply)
13352 (decode_address_to_semicolon, decode_address, decode_m_packet)
13353 (decode_M_packet, decode_X_packet, decode_xfer_write)
13354 (decode_search_memory_packet, unhexify, hexify)
13355 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13356 (look_up_one_symbol, relocate_instruction)
13357 (monitor_output): Move to remote-utils.h, and include it.
13358 * remote-utils.h: New file.
13359
eebdf26b
PA
133602013-09-05 Pedro Alves <palves@redhat.com>
13361
13362 * server.h (_): Delete.
13363
3aafd2ff
PA
133642013-09-02 Pedro Alves <palves@redhat.com>
13365
13366 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13367 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13368 allocated.
13369 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13370
cee83bcb
PM
133712013-09-02 Pierre Muller <muller@sourceware.org>
13372
13373 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13374 or WriteProcessMemory complete successfully and handle
13375 ERROR_PARTIAL_COPY error.
13376
9a13b2fa
PA
133772013-09-02 Pedro Alves <palves@redhat.com>
13378
13379 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13380 error instead of EIO.
13381
602e3198
JK
133822013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13383
13384 PR server/15604
13385 * linux-low.c: Include filestuff.h.
13386 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13387 * lynx-low.c: Include filestuff.h.
13388 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13389 * server.c: Include filestuff.h.
13390 (main): Call notice_open_fds.
13391 * spu-low.c: Include filestuff.h.
13392 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13393
96d7229d
LM
133942013-08-22 Luis Machado <lgustavo@codesourcery.com>
13395
13396 * Makefile.in: Explain why ../target and ../nat are not
13397 listed as include file search paths.
13398 (linux-waitpid.o): New object file rule.
13399 * configure.srv (srv_native_linux_obj): New variable.
13400 Replace all occurrences of linux native object files with
13401 $srv_native_linux_obj.
13402 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13403 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13404 (linux_enable_event_reporting): Remove declaration.
13405 (my_waitpid): Moved to common/linux-waitpid.c.
13406 (linux_wait_for_event): Pass ptid when calling
13407 linux_enable_event_reporting.
13408 (linux_supports_tracefork_flag): Remove.
13409 (linux_enable_event_reporting): Likewise.
13410 (linux_tracefork_grandchild): Remove.
13411 (STACK_SIZE): Moved to common/linux-ptrace.c.
13412 (linux_tracefork_child): Remove.
13413 (linux_test_for_tracefork): Remove.
13414 (linux_look_up_symbols): Call linux_supports_traceclone.
13415 (initialize_low): Remove call to linux_test_for_tracefork.
13416 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13417 common/linux-ptrace.h.
13418 (PTRACE_TYPE_ARG4): Likewise.
13419 Include linux-ptrace.h.
13420
32940073
PA
134212013-08-21 Pedro Alves <palves@redhat.com>
13422
13423 * config.in: Renegerate.
13424
33b60d58 134252013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13426
33b60d58
LM
13427 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13428 (SFILES): Remove $(srcdir)/common/target-common.c and
13429 add $(srcdir)/target/waitstatus.c.
13430 (OBS): Remove target-common.o and add waitstatus.o.
13431 (server_h): Remove $(srcdir)/../common/target-common.h and
13432 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13433 and $(srcdir)/../target/waitstatus.h.
13434 (target-common.o): Remove.
13435 (waitstatus.o): New target object file.
13436 * target.h: Do not include target-common.h and
13437 include target/resume.h, target/wait.h and
13438 target/waitstatus.h.
13439
b8e1b30e
LM
134402013-08-13 Luis Machado <lgustavo@codesourcery.com>
13441
13442 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13443 to PTRACE_TYPE_ARG3.
13444 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13445 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13446 PTRACE_TYPE_ARG4.
13447 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13448 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13449
7a60ad40
YQ
134502013-07-27 Jie Zhang <jie@codesourcery.com>
13451 Daniel Jacobowitz <dan@codesourcery.com>
13452 Yao Qi <yao@codesourcery.com>
13453
13454 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13455 (mips-linux-watch.o): New rule.
13456 (mips_linux_watch_h): New variable.
13457 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13458 srv_tgtobj.
13459 * linux-mips-low.c: Include mips-linux-watch.h.
13460 (struct arch_process_info, struct arch_lwp_info): New.
13461 (update_watch_registers_callback): New function.
13462 (mips_linux_new_process, mips_linux_new_thread) New functions.
13463 (mips_linux_prepare_to_resume, mips_insert_point): New
13464 functions.
13465 (mips_remove_point, mips_stopped_by_watchpoint): New
13466 functions.
13467 (rsp_bp_type_to_target_hw_bp_type): New function.
13468 (mips_stopped_data_address): New function.
13469 (the_low_target): Add watchpoint support functions.
13470
de6f69ad
YQ
134712013-07-27 Yao Qi <yao@codesourcery.com>
13472
13473 * i386-low.c: Include break-common.h.
13474 (enum target_hw_bp_type): Remove.
13475
3360c0bf
LM
134762013-07-24 Luis Machado <lgustavo@codesourcery.com>
13477
13478 * Makefile.in (SFILES): /common/target-common.c.
13479 (OBS): Add target-common.o.
13480 (server_h): Add $(srcdir)/../common/target-common.h.
13481 (target-common.o): New target.
13482 * server.c (queue_stop_reply_callback): Free
13483 status string after use.
13484 * target.c (target_waitstatus_to_string): Remove.
13485 * target.h: Include target-common.h.
13486 (resume_kind): Likewise.
13487 (target_waitkind): Likewise.
13488 (target_waitstatus): Likewise.
13489 (TARGET_WNOHANG): Likewise.
13490
bd885420
YQ
134912013-07-04 Yao Qi <yao@codesourcery.com>
13492
13493 * Makefile.in (host_alias): Use @host_noncanonical@.
13494 (target_alias): Use @target_noncanonical@.
13495 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13496 ACX_NONCANONICAL_HOST.
13497 * configure: Regenerated.
13498
13499 Revert:
13500 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13501
13502 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13503 * configure: Rebuild.
13504 * Makefile.in (version_host, version_target): Get from configure.
13505 (version.c): Use $(version_host) and $(version_target).
13506
17ef446e
PA
135072013-07-03 Pedro Alves <palves@redhat.com>
13508
13509 * Makefile.in (config.status): Depend on development.sh.
13510 * acinclude.m4: Include libmcheck.m4.
13511 * configure: Regenerate.
13512
7a9a7487
MG
135132013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13514
13515 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13516 attribute inside the parentheses.
13517 (winapi_DebugSetProcessKillOnExit): Ditto.
13518 (winapi_DebugBreakProcess): Ditto.
13519 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13520
49b64de6
MG
135212013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13522
13523 * notif.h (notif_event): Add a dummy member to avoid compiler
13524 errors.
13525
d5749ee7
PA
135262013-07-01 Pedro Alves <palves@redhat.com>
13527
13528 * hostio.c (HOSTIO_PATH_MAX): Define.
13529 (require_filename, handle_open, handle_unlink, handle_readlink):
13530 Use it.
13531
d8d2a3ee
PA
135322013-07-01 Pedro Alves <palves@redhat.com>
13533
13534 * server.h: Include "pathmax.h".
13535 * linux-low.c: Don't include sys/param.h.
13536 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13537 MAXPATHLEN.
13538 * win32-low.c: Don't include sys/param.h.
13539 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13540
bc7dea8d
PA
135412013-07-01 Pedro Alves <palves@redhat.com>
13542
13543 * event-loop.c: Don't check HAVE_UNISTD_H before including
13544 <unistd.h>.
13545 * gdbreplay.c: Likewise.
13546 * remote-utils.c: Likewise.
13547 * server.c: Likewise.
13548 * configure.ac: Don't check for unistd.h.
13549 * configure: Regenerate.
13550
d6c2da54
TT
135512013-06-28 Tom Tromey <tromey@redhat.com>
13552
13553 * Makefile.in (version.c): Use version.in, not
13554 common/version.in.
13555
257b6bec
MG
135562013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13557
13558 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13559 * configure: Rebuild.
13560 * Makefile.in (version_host, version_target): Get from configure.
13561 (version.c): Use $(version_host) and $(version_target).
13562
86ebe149
DK
135632013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13564
13565 Fix trace-status to output user name without trailing colon.
13566 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13567
f30aa5af
DK
135682013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13569
13570 Fix trace-status to output proper start-time and stop-time.
13571 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13572 output start time and stop time in hex as gdb expects.
13573
28a93511
YQ
135742013-06-26 Pedro Alves <pedro@codesourcery.com>
13575
13576 * tracepoint.c (build_traceframe_info_xml): Output trace state
13577 variables present in the trace buffer.
13578
01208463
TT
135792013-06-24 Tom Tromey <tromey@redhat.com>
13580
13581 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13582 create-version.sh.
13583 (version.o): Remove.
13584 * gdbreplay.c: Include version.h.
13585 (version, host_name): Don't declare.
13586 * server.h: Include version.h.
13587 (version, host_name): Don't declare.
13588
760256f9
PA
135892013-06-12 Pedro Alves <palves@redhat.com>
13590
13591 * linux-x86-low.c (linux_is_elf64): Delete global.
13592 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13593 with local linux_pid_exe_is_elf_64_file use.
13594
030031ee
PA
135952013-06-11 Pedro Alves <palves@redhat.com>
13596
13597 * linux-low.c (regset_disabled, disable_regset): New functions.
13598 (regsets_fetch_inferior_registers)
13599 (regsets_store_inferior_registers): Use them.
13600 (initialize_regsets_info); Don't allocate the disabled_regsets
13601 array here.
13602 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13603 comment.
13604
5da6eb0a
PA
136052013-06-11 Pedro Alves <palves@redhat.com>
13606
13607 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13608 xmalloc.
13609
7e5aaa09
PA
136102013-06-11 Pedro Alves <palves@redhat.com>
13611
13612 * linux-x86-low.c (initialize_low_arch): Call
13613 init_registers_x32_avx_linux.
13614
d878444c
JK
136152013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13616
13617 Fix compatibility with Android Bionic.
13618 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13619 it is not empty.
13620
3aee8918
PA
136212013-06-07 Pedro Alves <palves@redhat.com>
13622
5f2b57b5 13623 PR server/14823
3aee8918
PA
13624 * Makefile.in (OBS): Add tdesc.o.
13625 (IPA_OBJS): Add tdesc-ipa.o.
13626 (tdesc-ipa.o): New rule.
13627 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13628 interface.
13629 * linux-low.c (new_inferior): Delete.
13630 (disabled_regsets, num_regsets): Delete.
13631 (linux_add_process): Adjust to set the new per-process
13632 new_inferior flag.
13633 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13634 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13635 was a stop. When calling arch_setup, switch the current inferior
13636 to the thread that got an event.
13637 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13638 (regsets_fetch_inferior_registers)
13639 (regsets_store_inferior_registers): New regsets_info parameter.
13640 Adjust to use it.
13641 (linux_register_in_regsets): New regs_info parameter. Adjust to
13642 use it.
13643 (register_addr, fetch_register, store_register): New usrregs_info
13644 parameter. Adjust to use it.
13645 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13646 parameter regs_info. Adjust to use it.
13647 (linux_fetch_registers): Get the current inferior's regs_info, and
13648 adjust to use it.
13649 (linux_store_registers): Ditto.
13650 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13651 (initialize_low): Don't initialize the target_regsets here. Call
13652 initialize_low_arch.
13653 * linux-low.h (target_regsets): Delete declaration.
13654 (struct regsets_info): New.
13655 (struct usrregs_info): New.
13656 (struct regs_info): New.
13657 (struct process_info_private) <new_inferior>: New field.
13658 (struct linux_target_ops): Delete the num_regs, regmap, and
13659 regset_bitmap fields. New field regs_info.
13660 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13661 * i387-fp.c (num_xmm_registers): Delete.
13662 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13663 calls to new interface.
13664 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13665 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13666 Infer the number of xmm registers from the regcache's target
13667 description.
13668 * i387-fp.h (num_xmm_registers): Delete.
13669 * inferiors.c (add_thread): Don't install the thread's regcache
13670 here.
13671 * proc-service.c (gregset_info): Fetch the current inferior's
13672 regs_info. Adjust to use it.
13673 * regcache.c: Include tdesc.h.
13674 (register_bytes, reg_defs, num_registers)
13675 (gdbserver_expedite_regs): Delete.
13676 (get_thread_regcache): If the thread doesn't have a regcache yet,
13677 create one, instead of aborting gdbserver.
13678 (regcache_invalidate_one): Rename to ...
13679 (regcache_invalidate_thread): ... this.
13680 (regcache_invalidate_one): New.
13681 (regcache_invalidate): Only invalidate registers of the current
13682 process.
13683 (init_register_cache): Add target_desc parameter, and use it.
13684 (new_register_cache): Ditto. Assert the target description has a
13685 non zero registers_size.
13686 (regcache_cpy): Add assertions. Adjust.
13687 (realloc_register_cache, set_register_cache): Delete.
13688 (registers_to_string, registers_from_string): Adjust.
13689 (find_register_by_name, find_regno, find_register_by_number)
13690 (register_cache_size): Add target_desc parameter, and use it.
13691 (free_register_cache_thread, free_register_cache_thread_one)
13692 (regcache_release, register_cache_size): New.
13693 (register_size): Add target_desc parameter, and use it.
13694 (register_data, supply_register, supply_register_zeroed)
13695 (supply_regblock, supply_register_by_name, collect_register)
13696 (collect_register_as_string, collect_register_by_name): Adjust.
13697 * regcache.h (struct target_desc): Forward declare.
13698 (struct regcache) <tdesc>: New field.
13699 (init_register_cache, new_register_cache): Add target_desc
13700 parameter.
13701 (regcache_invalidate_thread): Declare.
13702 (regcache_invalidate_one): Delete declaration.
13703 (regcache_release): Declare.
13704 (find_register_by_number, register_cache_size, register_size)
13705 (find_regno): Add target_desc parameter.
13706 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13707 declarations.
13708 * remote-utils.c: Include tdesc.h.
13709 (outreg, prepare_resume_reply): Adjust.
13710 * server.c: Include tdesc.h.
13711 (gdbserver_xmltarget): Delete declaration.
13712 (get_features_xml, process_serial_event): Adjust.
13713 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13714 declare.
13715 (struct process_info) <tdesc>: New field.
13716 (ipa_tdesc): Declare.
13717 * tdesc.c: New file.
13718 * tdesc.h: New file.
13719 * tracepoint.c: Include tdesc.h.
13720 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13721 (get_context_regcache): Adjust to pass ipa_tdesc down.
13722 (do_action_at_tracepoint): Adjust to get the register cache size
13723 from the context regcache's description.
13724 (traceframe_walk_blocks): Adjust to get the register cache size
13725 from the current trace frame's description.
13726 (traceframe_get_pc): Adjust to get current trace frame's
13727 description and pass it down.
13728 (gdb_collect): Adjust to get the register cache size from the
13729 IPA's description.
13730 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13731 (gdbserver_xmltarget): Delete.
13732 (initialize_low_tracepoint): Set the ipa's target description.
13733 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13734 (initialize_low_tracepoint): Set the ipa's target description.
13735 * linux-x86-low.c: Include tdesc.h.
13736 [__x86_64__] (is_64bit_tdesc): New.
13737 (ps_get_thread_area, x86_get_thread_area): Use it.
13738 (i386_cannot_store_register): Rename to ...
13739 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13740 (i386_cannot_fetch_register): Rename to ...
13741 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13742 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13743 to new interface.
13744 (target_regsets): Rename to ...
13745 (x86_regsets): ... this.
13746 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13747 interface.
13748 (x86_siginfo_fixup): Use is_64bit_tdesc.
13749 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13750 (tdesc_x32_avx_linux, tdesc_x32_linux)
13751 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13752 Declare.
13753 (x86_linux_update_xmltarget): Delete.
13754 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13755 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13756 (AMD64_LINUX_USER64_CS): New.
13757 (x86_linux_read_description): New, based on
13758 x86_linux_update_xmltarget.
13759 (same_process_callback): New.
13760 (x86_arch_setup_process_callback): New.
13761 (x86_linux_update_xmltarget): New.
13762 (x86_regsets_info): New.
13763 (amd64_linux_regs_info): New.
13764 (i386_linux_usrregs_info): New.
13765 (i386_linux_regs_info): New.
13766 (x86_linux_regs_info): New.
13767 (x86_arch_setup): Reimplement.
13768 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13769 (x86_emit_ops): Ditto.
13770 (the_low_target): Adjust. Install x86_linux_regs_info,
13771 x86_cannot_fetch_register, and x86_cannot_store_register.
13772 (initialize_low_arch): New.
13773 * linux-ia64-low.c (tdesc_ia64): Declare.
13774 (ia64_fetch_register): Adjust.
13775 (ia64_usrregs_info, regs_info): New globals.
13776 (ia64_regs_info): New function.
13777 (the_low_target): Adjust.
13778 (initialize_low_arch): New function.
13779 * linux-sparc-low.c (tdesc_sparc64): Declare.
13780 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13781 Adjust.
13782 (sparc_arch_setup): New function.
13783 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13784 (the_low_target): Adjust.
13785 (initialize_low_arch): New function.
13786 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13787 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13788 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13789 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13790 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13791 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13792 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13793 (tdesc_powerpc_isa205_vsx64l): Declare.
13794 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13795 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13796 (ppc_set_pc, ppc_get_hwcap): Adjust.
13797 (ppc_usrregs_info): Forward declare.
13798 (!__powerpc64__) ppc_regmap_adjusted: New global.
13799 (ppc_arch_setup): Adjust to the current process'es target
13800 description.
13801 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13802 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13803 (ppc_store_evrregset): Adjust.
13804 (target_regsets): Rename to ...
13805 (ppc_regsets): ... this, and make static.
13806 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13807 (ppc_regs_info): New function.
13808 (the_low_target): Adjust.
13809 (initialize_low_arch): New function.
13810 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13811 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13812 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13813 (tdesc_s390x_linux64v2): Declare.
13814 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13815 (s390_fill_gregset, s390_store_last_break): Adjust.
13816 (target_regsets): Rename to ...
13817 (s390_regsets): ... this, and make static.
13818 (s390_get_pc, s390_set_pc): Adjust.
13819 (s390_get_hwcap): New target_desc parameter, and use it.
13820 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13821 (s390_arch_setup): Adjust to set the current process'es target
13822 description. Don't adjust the regmap.
13823 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13824 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13825 (regs_info_3264): New globals.
13826 (s390_regs_info): New function.
13827 (the_low_target): Adjust.
13828 (initialize_low_arch): New function.
13829 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13830 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13831 [__mips64] (init_registers_mips_linux)
13832 (init_registers_mips_dsp_linux): Delete defines.
13833 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13834 (have_dsp): New global.
13835 (mips_read_description): New, based on mips_arch_setup.
13836 (mips_arch_setup): Reimplement.
13837 (get_usrregs_info): New function.
13838 (mips_cannot_fetch_register, mips_cannot_store_register)
13839 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13840 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13841 (target_regsets): Rename to ...
13842 (mips_regsets): ... this, and make static.
13843 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13844 (dsp_regs_info, regs_info): New globals.
13845 (mips_regs_info): New function.
13846 (the_low_target): Adjust.
13847 (initialize_low_arch): New function.
13848 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13849 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13850 Declare.
13851 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13852 (arm_read_description): New, with bits factored from
13853 arm_arch_setup.
13854 (arm_arch_setup): Reimplement.
13855 (target_regsets): Rename to ...
13856 (arm_regsets): ... this, and make static.
13857 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13858 (arm_regs_info): New function.
13859 (the_low_target): Adjust.
13860 (initialize_low_arch): New function.
13861 * linux-m68k-low.c (tdesc_m68k): Declare.
13862 (target_regsets): Rename to ...
13863 (m68k_regsets): ... this, and make static.
13864 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13865 (m68k_regs_info): New function.
13866 (m68k_arch_setup): New function.
13867 (the_low_target): Adjust.
13868 (initialize_low_arch): New function.
13869 * linux-sh-low.c (tdesc_sharch): Declare.
13870 (target_regsets): Rename to ...
13871 (sh_regsets): ... this, and make static.
13872 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13873 (sh_regs_info, sh_arch_setup): New functions.
13874 (the_low_target): Adjust.
13875 (initialize_low_arch): New function.
13876 * linux-bfin-low.c (tdesc_bfin): Declare.
13877 (bfin_arch_setup): New function.
13878 (bfin_usrregs_info, regs_info): New globals.
13879 (bfin_regs_info): New function.
13880 (the_low_target): Adjust.
13881 (initialize_low_arch): New function.
13882 * linux-cris-low.c (tdesc_cris): Declare.
13883 (cris_arch_setup): New function.
13884 (cris_usrregs_info, regs_info): New globals.
13885 (cris_regs_info): New function.
13886 (the_low_target): Adjust.
13887 (initialize_low_arch): New function.
13888 * linux-cris-low.c (tdesc_crisv32): Declare.
13889 (cris_arch_setup): New function.
13890 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13891 (cris_regs_info): New function.
13892 (the_low_target): Adjust.
13893 (initialize_low_arch): New function.
13894 * linux-m32r-low.c (tdesc_m32r): Declare.
13895 (m32r_arch_setup): New function.
13896 (m32r_usrregs_info, regs_info): New globals.
13897 (m32r_regs_info): Adjust.
13898 (initialize_low_arch): New function.
13899 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13900 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13901 (tic6x_usrregs_info): Forward declare.
13902 (tic6x_read_description): New function, based on ...
13903 (tic6x_arch_setup): ... this. Reimplement.
13904 (target_regsets): Rename to ...
13905 (tic6x_regsets): ... this, and make static.
13906 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13907 (tic6x_regs_info): New function.
13908 (the_low_target): Adjust.
13909 (initialize_low_arch): New function.
13910 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13911 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13912 (target_regsets): Rename to ...
13913 (xtensa_regsets): ... this, and make static.
13914 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13915 globals.
13916 (xtensa_arch_setup, xtensa_regs_info): New functions.
13917 (the_low_target): Adjust.
13918 (initialize_low_arch): New function.
13919 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13920 (nios2_arch_setup): Set the current process'es tdesc.
13921 (target_regsets): Rename to ...
13922 (nios2_regsets): ... this.
13923 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13924 (nios2_regs_info): New function.
13925 (the_low_target): Adjust.
13926 (initialize_low_arch): New function.
a261b8f5
PA
13927 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13928 (aarch64_arch_setup): Set the current process'es tdesc.
13929 (target_regsets): Rename to ...
13930 (aarch64_regsets): ... this.
13931 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
13932 (aarch64_regs_info): New function.
13933 (the_low_target): Adjust.
13934 (initialize_low_arch): New function.
3aee8918
PA
13935 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
13936 globals.
13937 (target_regsets): Rename to ...
13938 (tile_regsets): ... this.
13939 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
13940 (tile_regs_info): New function.
13941 (tile_arch_setup): Set the current process'es tdesc.
13942 (the_low_target): Adjust.
13943 (initialize_low_arch): New function.
13944 * spu-low.c (tdesc_spu): Declare.
13945 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
13946 * win32-arm-low.c (tdesc_arm): Declare.
13947 (arm_arch_setup): New function.
13948 (the_low_target): Install arm_arch_setup instead of
13949 init_registers_arm.
13950 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
13951 (init_windows_x86): Rename to ...
13952 (i386_arch_setup): ... this. Set `win32_tdesc'.
13953 (the_low_target): Adjust.
13954 * win32-low.c (win32_tdesc): New global.
13955 (child_add_thread): Don't create the thread cache here.
13956 (do_initial_child_stuff): Set the new process'es tdesc.
13957 * win32-low.h (struct target_desc): Forward declare.
13958 (win32_tdesc): Declare.
13959 * lynx-i386-low.c (tdesc_i386): Declare global.
13960 (lynx_i386_arch_setup): Set `lynx_tdesc'.
13961 * lynx-low.c (lynx_tdesc): New global.
13962 (lynx_add_process): Set the new process'es tdesc.
13963 * lynx-low.h (struct target_desc): Forward declare.
13964 (lynx_tdesc): Declare global.
13965 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
13966 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
13967 * nto-low.c (nto_tdesc): New global.
13968 (do_attach): Set the new process'es tdesc.
13969 * nto-low.h (struct target_desc): Forward declare.
13970 (nto_tdesc): Declare.
13971 * nto-x86-low.c (tdesc_i386): Declare.
13972 (nto_x86_arch_setup): Set `nto_tdesc'.
13973
b1fbec62
GB
139742013-06-04 Gary Benson <gbenson@redhat.com>
13975
13976 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
13977 to qSupported response when appropriate.
13978 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
13979 with nonzero-length annex.
13980 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
13981 arguments supplied in annex.
13982
d1ec4ce7
DE
139832013-05-31 Doug Evans <dje@google.com>
13984
ac44adcb 13985 PR server/15594
d1ec4ce7
DE
13986 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
13987 64 bits in 64-cross-32 environment.
13988
9b25f2d3
PA
139892013-05-28 Pedro Alves <palves@redhat.com>
13990
13991 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
13992 (aarch64-without-fpu.c): Delete rule.
13993 * configure.srv (aarch64*-*-linux*): Remove references to
13994 aarch64-without-fpu.o and aarch64-without-fpu.xml.
13995 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
13996 declaration.
13997
6740dc9c
PA
139982013-05-24 Pedro Alves <palves@redhat.com>
13999
14000 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14001 instead of strchr/decode_address. Error if the range isn't split
14002 with a ','. Don't assume there's be a ':' in the action.
14003
c2d6af84
PA
140042013-05-23 Yao Qi <yao@codesourcery.com>
14005 Pedro Alves <palves@redhat.com>
14006
14007 * linux-low.c (lwp_in_step_range): New function.
14008 (linux_wait_1): If the thread was range stepping and stopped
14009 outside the stepping range, report the stop to GDB. Otherwise,
14010 continue stepping. Add range stepping debug output.
14011 (linux_set_resume_request): Copy the step range from the resume
14012 request to the lwp.
14013 (linux_supports_range_stepping): New.
14014 (linux_target_ops) <supports_range_stepping>: Set to
14015 linux_supports_range_stepping.
14016 * linux-low.h (struct linux_target_ops)
14017 <supports_range_stepping>: New field.
14018 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14019 * linux-x86-low.c (x86_supports_range_stepping): New.
14020 (the_low_target) <supports_range_stepping>: Set to
14021 x86_supports_range_stepping.
14022 * server.c (handle_v_cont): Handle 'r' action.
14023 (handle_v_requests): Append ";r" if the target supports range
14024 stepping.
14025 * target.h (struct thread_resume) <step_range_start,
14026 step_range_end>: New fields.
14027 (struct target_ops) <supports_range_stepping>:
14028 New field.
14029 (target_supports_range_stepping): New macro.
14030
58794e1a
JB
140312013-05-17 Joel Brobecker <brobecker@adacore.com>
14032
14033 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14034 confusion in comment.
14035
d631c5a7
JB
140362013-05-17 Joel Brobecker <brobecker@adacore.com>
14037
14038 * lynx-low.c (struct process_info_private): New type.
14039 (lynx_add_process): New function.
14040 (lynx_create_inferior, lynx_attach): Replace calls to
14041 add_process by calls to lynx_add_process.
14042 (lynx_resume): If PTID is null, then try using
14043 current_process()->private->last_wait_event_ptid.
14044 Add comments.
14045 (lynx_clear_inferiors): Delete. The contents of that function
14046 has been inlined in lynx_mourn;
14047 (lynx_wait_1): Save the ptid in the process's private data.
14048 (lynx_mourn): Free the process' private data. Replace call
14049 to lynx_clear_inferiors by call to clear_inferiors.
14050
96f7a20f
YQ
140512013-05-17 Yao Qi <yao@codesourcery.com>
14052
14053 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14054 the right place.
14055
db0dfaa0
LM
140562013-05-16 Luis Machado <lgustavo@codesourcery.com>
14057
14058 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14059 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14060 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14061 PT_TEXT_END_ADDR guards. Update comments.
14062 (linux_target_op) <read_offsets>: Conditionally define to
14063 linux_read_offsets if the target is UCLIBC and if it defines
14064 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14065
68f5f838
SL
140662013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14067 Andrew Jenner <andrew@codesourcery.com>
14068
14069 * Makefile.in (SFILES): Add linux-nios2-low.c.
14070 (clean): Add action to delete nios2-linux.c.
14071 (nios2-linux.c): New rule.
14072 * configure.srv: Add nios2*-*-linux*.
14073 * linux-nios2-low.c: New.
14074
1ebff1fd
HAQ
140752013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14076
14077 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14078
f6150862
HZ
140792013-04-25 Hui Zhu <hui@codesourcery.com>
14080
14081 PR gdb/15186
f6150862
HZ
14082 * ax.c (ax_printf): Add fflush.
14083
614c279d
TT
140842013-04-22 Tom Tromey <tromey@redhat.com>
14085
14086 * Makefile.in (SFILES): Add filestuff.c.
14087 (OBS): Add filestuff.o.
14088 (filestuff.o): New target.
14089 * config.in, configure: Rebuild.
14090 * configure.ac: Check for fdwalk, pipe2.
14091
7d4e5717
PA
140922013-04-17 Pedro Alves <palves@redhat.com>
14093
14094 * configure.ac (USE_THREAD_DB): Delete variable.
14095 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14096 Don't AC_SUBST USE_THREAD_DB.
14097 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14098 * config.in, configure: Regenerate.
14099
d5c93e41
PA
141002013-04-16 Pedro Alves <palves@redhat.com>
14101
14102 * linux-low.h (struct lwp_info) <thread_known>: Move under
14103 the USE_THREAD_DB #ifdef.
14104
04f5fe89
PA
141052013-04-16 Pedro Alves <palves@redhat.com>
14106
14107 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14108 (linux-low.o): Delete rule.
14109 * linux-low.h: Always include "gdb_thread_db.h" instead of
14110 conditionally including thread_db.h.
14111 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14112 HAVE_THREAD_DB_H.
14113
480b27bf
JK
141142013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14115
14116 * Makefile.in (install-only): Fix make install regression.
14117
43662968
JK
141182013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14119
14120 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14121 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14122 installation.
14123 * gdbserver.1: Remove.
14124
3e74e146
PA
141252013-03-22 Pedro Alves <palves@redhat.com>
14126
14127 * linux-low.c (handle_extended_wait): Don't call
14128 linux_enable_event_reporting.
14129
a8347a2a
TT
141302013-03-15 Tony Theodore <tonyt@logyst.com>
14131
14132 PR build/9098:
14133 * Makefile.in (SHELL): Use @SHELL@.
14134
eeb56fa7
SDJ
141352013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14136
14137 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14138 compiler warning.
14139
4fa7e2ff
JB
141402013-03-13 Joel Brobecker <brobecker@adacore.com>
14141
14142 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14143 Remove extraneous NULL element.
14144
8ddb1965
YQ
141452013-03-13 Yao Qi <yao@codesourcery.com>
14146
14147 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14148 'V' block in trace frame.
14149
9accd112
MM
141502013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14151
14152 * target.h (struct target_ops): Add btrace ops.
14153 (target_supports_btrace): New macro.
14154 (target_enable_btrace): New macro.
14155 (target_disable_btrace): New macro.
14156 (target_read_btrace): New macro.
14157 * gdbthread.h (struct thread_info): Add btrace field.
14158 * server.c: Include btrace-common.h.
14159 (handle_btrace_general_set): New function.
14160 (handle_btrace_enable): New function.
14161 (handle_btrace_disable): New function.
14162 (handle_general_set): Call handle_btrace_general_set.
14163 (handle_qxfer_btrace): New function.
14164 (struct qxfer qxfer_packets[]): Add btrace entry.
14165 * inferiors.c (remove_thread): Disable btrace.
14166 * linux-low: Include linux-btrace.h.
14167 (linux_low_enable_btrace): New function.
14168 (linux_low_read_btrace): New function.
14169 (linux_target_ops): Add btrace ops.
14170 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14171 Add srv_linux_btrace=yes.
14172 (x86_64-*-linux*): Add linux-btrace.o.
14173 Add srv_linux_btrace=yes.
14174 * configure.ac: Define HAVE_LINUX_BTRACE.
14175 * config.in: Regenerated.
14176 * configure: Regenerated.
14177
5cc22e4c
MM
141782013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14179
14180 * server.c (handle_qxfer): Preserve error message if -3 is
14181 returned.
14182 (qxfer): Document the -3 return value.
14183
7c97f91e
MM
141842013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14185
14186 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14187 (linux_btrace_h): New variable.
14188 (linux-btrace.o): New rule.
14189
be9a119c 141902013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14191 Hafiz Abid Qadeer <abidh@codesourcery.com>
14192
14193 * tracepoint.c (trace_buffer_size): New global.
14194 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14195 (init_trace_buffer): Change to one-argument function. Allocate
14196 trace buffer memory.
14197 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14198 handle QTBuffer:size packet.
14199 (cmd_bigqtbuffer_size): New function.
14200 (initialize_tracepoint): Call init_trace_buffer with
14201 DEFAULT_TRACE_BUFFER_SIZE.
14202 * server.c (handle_query): Add QTBuffer:size in the
14203 supported packets.
14204
e64f7499
YQ
142052013-03-07 Yao Qi <yao@codesourcery.com>
14206
14207 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14208 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14209 of -1.
14210 (cmd_qtsp): Adjust condition. Do post increment.
14211 Set cur_action and cur_step_action back to 0.
14212
f0ae6fc3
PA
142132013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14214
14215 PR server/15236
14216 * linux-low.c (linux_write_memory): Return early success if LEN is
14217 zero.
14218
b5b0b0af
CV
142192013-03-05 Corinna Vinschen <vinschen@redhat.de>
14220
334ad4a8 14221 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14222
589bc927
TT
142232013-02-28 Tom Tromey <tromey@redhat.com>
14224
14225 * configure.ac: Invoke AC_SYS_LARGEFILE.
14226 * configure, config.in: Rebuild.
14227
dfe07582
CV
142282013-02-28 Corinna Vinschen <vinschen@redhat.com>
14229
14230 * win32-low.c: Throughout, fix format strings and casts of
14231 printf-like functions to avoid type related warnings on all
14232 platforms.
14233 (get_child_debug_event): Print dwDebugEventCode as hex since
14234 that's how it's usually documented.
14235
736cd585
YQ
142362013-02-28 Yao Qi <yao@codesourcery.com>
14237
14238 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14239 pulongest.
14240
e1f58301
JW
142412013-02-27 Jiong Wang <jiwang@tilera.com>
14242
14243 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14244 (reg-tilegx32.c): New rule.
14245 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14246 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14247 different register info initializer according to elf class.
14248 (init_registers_tilgx32): New function. The tilegx32 register info
14249 initializer.
14250 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14251 (tile_store_gregset): Likewise.
14252
d171ca78
YQ
142532013-02-27 Yao Qi <yao@codesourcery.com>
14254
14255 * server.c (process_point_options): Print debug message when
14256 debug_threads is true.
14257
282bbdf3
YQ
142582013-02-26 Yao Qi <yao@codesourcery.com>
14259
14260 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14261
aca22551
PA
142622013-02-19 Pedro Alves <palves@redhat.com>
14263 Kai Tietz <ktietz@redhat.com>
14264
14265 PR gdb/15161
14266
14267 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14268 instead of strtoul to extract address from packet.
14269 (process_serial_event) <'z'>: Likewise.
14270
4f3cee1c
YQ
142712013-02-18 Yao Qi <yao@codesourcery.com>
14272
14273 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14274
8e1d55a3
PA
142752013-02-14 Pedro Alves <palves@redhat.com>
14276
14277 Plug memory leak.
14278
14279 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14280 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14281
458820da
PA
142822013-02-14 Pedro Alves <palves@redhat.com>
14283
14284 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14285
baea0dae
PA
142862013-02-14 Pedro Alves <palves@redhat.com>
14287
14288 * tracepoint.c (save_string): Delete.
14289 (add_tracepoint_action): Use savestring instead of save_string.
14290
0b1afbb3
PA
142912013-02-12 Pedro Alves <palves@redhat.com>
14292
14293 * linux-xtensa-low.c: Ditto.
14294 * xtensa-xtregs.c: Ditto.
14295
8a4ac37e
PA
142962013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14297
14298 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14299 thread_db.
14300
148de6bb
MS
143012013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14302
14303 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14304 aarch64_num_wp_regs and aarch64_num_bp_regs to
14305 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14306
55fac6e0
MS
143072013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14308
14309 * linux-aarch64-low.c (ps_get_thread_area): Replace
14310 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14311
176eb98c
MS
143122013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14313 Marcus Shawcroft <marcus.shawcroft@arm.com>
14314 Nigel Stephens <nigel.stephens@arm.com>
14315 Yufeng Zhang <yufeng.zhang@arm.com>
14316
14317 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14318 (aarch64.c, aarch64-without-fpu.c): New targets.
14319 * configure.srv (aarch64*-*-linux*): New.
14320 * linux-aarch64-low.c: New file.
14321
56f7af9c
MS
143222013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14323
43aaf8b6 14324 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14325 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14326 (dequeue_one_deferred_signal, linux_resume_one_thread)
14327 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14328 (linux_tracefork_grandchild, linux_test_for_tracefork)
14329 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14330 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14331 where the argument is 0.
14332
60f662b0
YQ
143332013-01-25 Yao Qi <yao@codesourcery.com>
14334
14335 * event-loop.c: Include "queue.h".
14336 (gdb_event_p): New typedef.
14337 (struct gdb_event) <next_event>: Remove.
14338 (event_queue): Change to QUEUE(gdb_event_p).
14339 (async_queue_event): Remove.
14340 (gdb_event_xfree): New.
14341 (initialize_event_loop): New.
14342 (process_event): Use API from QUEUE.
14343 (wait_for_event): Likewise.
14344 * server.c (main): Call initialize_event_loop.
14345 * server.h (initialize_event_loop): Declare.
14346
5ae4861a
YQ
143472013-01-18 Yao Qi <yao@codesourcery.com>
14348
14349 * ax.h (struct eval_agent_expr_context): New.
14350 (gdb_eval_agent_expr): Update declaration.
14351 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14352 TFRAME. Add new argument CTX.
14353 * server.h (struct eval_agent_expr_context): Declare.
14354 (agent_mem_read, agent_tsv_read): Update declaration.
14355 (agent_mem_read_string): Likewise.
14356 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14357 (add_traceframe_block): Add new argument TPOINT.
14358 Increase TPOINT->traceframe_usage.
14359 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14360 eval_tracepoint_agent_expr.
14361 (condition_true_at_tracepoint): Likewise.
14362 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14363 (agent_mem_read_string, agent_tsv_read): Likewise.
14364
85e00e85
YQ
143652013-01-16 Yao Qi <yao@codesourcery.com>
14366
14367 * linux-low.c (linux_resume_one_lwp): Don't check
14368 'lwp->bp_reinsert != 0'.
14369
4039cf45
JB
143702013-01-07 Joel Brobecker <brobecker@adacore.com>
14371 Pedro Alves <palves@redhat.com>
14372
14373 * lynx-low.c (ptrace_request_to_str): Define a temporary
14374 macro and use it to simplify this function's implementation.
14375
9044dee2
JB
143762013-01-07 Joel Brobecker <brobecker@adacore.com>
14377
14378 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14379 sets errno.
14380
e6352c8f
JB
143812013-01-07 Joel Brobecker <brobecker@adacore.com>
14382
14383 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14384
50681a27
JB
143852013-01-07 Joel Brobecker <brobecker@adacore.com>
14386
14387 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14388
3f6e77ef
JB
143892013-01-07 Joel Brobecker <brobecker@adacore.com>
14390
14391 * lynx-low.c (lynx_resume): Use the resume_info parameter
14392 to determine the ptid for the lynx_ptrace call, unless
14393 it is equal to minus_one_ptid, in which case we use the
14394 ptid of the current_inferior.
14395 (lynx_wait_1): After having received a thread create/exit
14396 event, resume the inferior's execution using the signaling
14397 thread's ptid, rather than the old ptid.
14398
7fda33ae
JB
143992013-01-07 Joel Brobecker <brobecker@adacore.com>
14400
14401 * lynx-low.c (lynx_resume): Delete variable ret.
14402
b9786c74
JB
144032013-01-01 Joel Brobecker <brobecker@adacore.com>
14404
14405 * gdbreplay.c (gdbreplay_version): Update copyright year.
14406 * server.c (gdbserver_version): Likewise.
14407
8b93d60f
JB
144082012-12-17 Joel Brobecker <brobecker@adacore.com>
14409
14410 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14411 new thread.
14412
037335a7
JB
144132012-12-17 Joel Brobecker <brobecker@adacore.com>
14414
14415 * lynx-low.c (ptrace_request_to_str): Add handling for
14416 PTRACE_GETTRACESIG.
14417
52d4cbd8
JB
144182012-12-17 Joel Brobecker <brobecker@adacore.com>
14419
14420 * lynx-low.c (lynx_attach): Delete variable new_process.
14421
ab8f6ca9
JB
144222012-12-17 Joel Brobecker <brobecker@adacore.com>
14423
14424 * lynx-low.c (lynx_create_inferior): Delete variable
14425 new_process.
14426
78cbc024
JB
144272012-12-17 Joel Brobecker <brobecker@adacore.com>
14428
14429 * lynx-low.c (ptrace_request_to_str): Do not handle
14430 PTRACE_GETTHREADLIST if this macro does not exist.
14431
14a00470
YQ
144322012-12-15 Yao Qi <yao@codesourcery.com>
14433
14434 * Makefile.in (OBS): Add notif.o.
14435 * notif.c, notif.h: New.
14436 * server.c: Include "notif.h".
14437 (struct vstop_notif) <next>: Remove.
14438 <base>: New field.
14439 (queue_stop_reply): Update.
14440 (push_event, send_next_stop_reply): Remove.
14441 (discard_queued_stop_replies): Update.
14442 (notif_stop): New variable.
14443 (handle_v_stopped): Remove.
14444 (handle_v_requests): Don't call handle_v_stopped. Call
14445 handle_ack_notif instead.
14446 (queue_stop_reply_callback): Call notif_event_enque instead
14447 of queue_stop_reply.
14448 (handle_status): Don't call send_next_stop_reply, call
14449 notif_write_event instead.
14450 (kill_inferior_callback): Likewise.
14451 (detach_or_kill_inferior_callback): Likewise.
14452 (main): Call initialize_notif.
14453 (process_serial_event): Call QUEUE_is_empty.
14454 (handle_target_event): Call notif_push instead of push event.
14455 * server.h (push_event): Remove declaration.
14456
61c125b9
TT
144572012-12-10 Tom Tromey <tromey@redhat.com>
14458
14459 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14460 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14461 macros.
14462 (.c.o): Rewrite.
14463 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14464 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14465 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14466 (amd64-linux-ipa.o, ax.o): Rewrite.
14467 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14468 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14469 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14470 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14471 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14472 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14473 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14474 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14475 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14476 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14477 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14478 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14479 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14480 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14481 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14482 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14483 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14484 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14485 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14486 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14487 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14488 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14489 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14490 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14491 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14492 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14493 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14494 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14495 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14496 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14497 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14498 (reg-tilegx.o): Remove.
14499 (all_object_files): New macro.
14500 Include .deps files.
14501 * aclocal.m4, configure: Rebuild.
14502 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14503 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14504 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14505
e90e9ad9
TT
145062012-12-05 Tom Tromey <tromey@redhat.com>
14507
14508 PR gdb/14917:
14509 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14510
02d403bf 145112012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14512
14513 * configure.ac: Check for linux/perf_event.h.
14514 * config.in: Regenerated.
14515 * configure: Regenerated.
14516
0270a750
PA
145172012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14518
14519 * hostio.c (handle_readlink): Decrease buffer size
14520 parameter passed to readlink by one byte.
14521
8c29b58e
YQ
145222012-11-26 Yao Qi <yao@codesourcery.com>
14523
14524 * configure.ac (build_warnings): Append '-Wempty-body'.
14525 * configure: Regenerated.
14526 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14527 body.
14528
8bdce1ff
PM
145292012-11-15 Pierre Muller <muller@sourceware.org>
14530
14531 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14532 * config.in: Regenerate.
14533 * configure: Regenerate.
14534 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14535 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14536 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14537 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14538 header.
14539 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14540 instead of <sys/wait.h> header.
14541 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14542
02d403bf 145432012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14544
14545 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14546 (various make rules): Remove -DGDBSERVER
14547
fbd5db48
YQ
145482012-11-09 Yao Qi <yao@codesourcery.com>
14549
14550 * spu-low.c (current_ptid): Move it to ..
14551 * gdbthread.h: ... here. New.
14552 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14553 * server.c (myresume, process_serial_event): Likewise.
14554 * thread-db.c (thread_db_find_new_threads): Likewise.
14555 * tracepoint.c (run_inferior_command): Likewise.
14556
b3dc46ff
AB
145572012-10-01 Andrew Burgess <aburgess@broadcom.com>
14558
14559 * server.c (handle_search_memory_1): Include access length in
14560 warning message.
14561
07c04788
HPN
145622012-09-05 Michael Brandt <michael.brandt@axis.com>
14563
14564 * linux-crisv32-low.c: Fix compile errors.
14565
918d227b
YQ
145662012-09-04 Yao Qi <yao@codesourcery.com>
14567
14568 * tracepoint.c (cmd_qtsv): Adjust debug message.
14569 Don't check CUR_TPOINT.
14570
18c1b81a
YQ
145712012-08-28 Yao Qi <yao@codesourcery.com>
14572
14573 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14574 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14575 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14576 Remove declarations of xmalloc, xreallloc, xstrdup and
14577 freeargv.
14578 * Makefile.in (libiberty_h): New.
14579 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14580 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14581
dc82f37b
YQ
145822012-08-23 Yao Qi <yao@codesourcery.com>
14583
14584 * server.h: Remove declaration of 'xsnprintf'.
14585
406b1477
KS
145862012-08-22 Keith Seitz <keiths@redhat.com>
14587
14588 * server.h: Include build-gnulib-gbserver/config.h.
14589 * gdbreplay.c: Likewise.
14590
e6712ff1
DE
145912012-08-08 Doug Evans <dje@google.com>
14592
14593 * Makefile.in (SFILES): Add gdb_vecs.c.
14594 (OBS): Add gdb_vecs.o.
14595 (gdb_vecs_h, host_defs_h): New variables.
14596 (thread-db.o): Add $(gdb_vecs_h) dependency.
14597 (gdb_vecs.o): New rule.
14598 * thread-db.c: #include "gdb_vecs.h".
14599 (thread_db_load_search): Use a vector to iterate over path elements.
14600 Handle text appearing after "$pdir".
14601
14602 * configure.ac: Add check for strstr.
14603 * config.in: Regenerate.
14604 * configure: Regenerate.
14605
7c3270ae
UW
146062012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14607
14608 * hostio.c (handle_pread): If pread fails, fall back to attempting
14609 lseek/read.
14610 (handle_pwrite): Likewise for pwrite.
14611
b62e2b27
UW
146122012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14613
14614 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14615 between unsupported TYPE and unimplementable ADDR/LEN combination.
14616 (arm_insert_point): Act on new return value.
14617
78a99e91
PA
146182012-07-31 Pedro Alves <palves@redhat.com>
14619
14620 * server.c (process_point_options): Only skip tokens if we find
14621 one that is unrecognized. Don't treat 'X' specially while
14622 skipping unrecognized tokens.
14623
fcf303ab
UW
146242012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14625
14626 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14627 to 4-byte-align HW breakpoint addresses for Thumb.
14628
7255706c
YQ
146292012-07-27 Yao Qi <yao@codesourcery.com>
14630
14631 PR remote/14161.
14632
14633 * server.h: Declare gdb_agent_about_to_close.
14634 * target.c (kill_inferior): Include "agent.h".
14635 New. Send command 'kill'.
14636 * target.h (kill_inferior): Removed macro.
14637 * tracepoint.c (gdb_agent_about_to_close): New.
14638 (gdb_agent_helper_thread): Handle command 'close'.
14639 Wait endlessly until the inferior stops.
14640 Install gdb_agent_remove_socket to atexit hook.
14641 (agent_socket_name): New static variable.
14642 (gdb_agent_socket_init): Replace local variable 'name' with
14643 'agent_socket_name'.
14644 (gdb_agent_remove_socket): New.
14645
5a3f286f
YQ
146462012-07-27 Yao Qi <yao@codesourcery.com>
14647
14648 * server.c (process_point_options): Stop at 'X' when parsing.
14649
961bd387
ME
146502012-07-19 Michael Eager <eager@eagercon.com>
14651
a261b8f5 14652 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14653 to hw_execute.
14654 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14655 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14656 hardware breakpoint.
14657
aa7c7447
JK
146582012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14659
14660 * gdbserver/linux-low.c (initialize_low): Call
14661 linux_ptrace_init_warnings.
14662
7f216e7c
DE
146632012-07-02 Doug Evans <dje@google.com>
14664
14665 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14666 pointer to int.
14667
d3ce09f5
SS
146682012-07-02 Stan Shebs <stan@codesourcery.com>
14669
14670 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14671 (ax.o): Add it to build rule.
14672 (ax-ipa.o): Ditto.
14673 (OBS): Add format.o.
14674 (IPA_OBS): Add format.o.
14675 * server.c (handle_query): Claim support for breakpoint commands.
14676 (process_point_options): Add command case.
14677 (process_serial_event): Leave running if there are printfs in
14678 effect.
14679 * mem-break.h (any_persistent_commands): Declare.
14680 (add_breakpoint_commands): Declare.
14681 (gdb_no_commands_at_breakpoint): Declare.
14682 (run_breakpoint_commands): Declare.
14683 * mem-break.c (struct point_command_list): New struct.
14684 (struct breakpoint): New field command_list.
14685 (any_persistent_commands): New function.
14686 (add_commands_to_breakpoint): New function.
14687 (add_breakpoint_commands): New function.
14688 (gdb_no_commands_at_breakpoint): New function.
14689 (run_breakpoint_commands): New function.
14690 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14691 locally.
14692 * ax.c: Include format.h.
14693 (ax_printf): New function.
14694 (gdb_eval_agent_expr): Add printf opcode.
14695
2f8f6aed
YQ
146962012-06-13 Yao Qi <yao@codesourcery.com>
14697
14698 * server.c (start_inferior): Remove duplicated writes to fields
14699 'last_resume_kind' and 'last_status' of 'current_inferior'.
14700
0c9070b3
YQ
147012012-06-12 Yao Qi <yao@codesourcery.com>
14702 Pedro Alves <palves@redhat.com>
14703
14704 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14705 comment.
14706 * server.c (handle_v_cont): Extend comment.
14707
c52daf70
YQ
147082012-06-11 Yao Qi <yao@codesourcery.com>
14709
14710 * linux-low.c (linux_attach): Add 'static'.
14711
d38bbb0a
YQ
147122012-06-06 Yao Qi <yao@codesourcery.com>
14713
14714 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14715
89dc0afd
JK
147162012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14717
14718 Fix gcc -flto compilation warning.
14719 * server.c (main): Make variable multi_mode and attach volatile.
14720
75f62ce7
TJB
147212012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14722
14723 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14724 if the platform doesn't know about it.
14725
65f479b6
PA
147262012-05-30 Jeff Kenton <jkenton@tilera.com>
14727
14728 * Makefile.in (SFILES): Add linux-tile-low.c.
14729 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14730 * configure.srv: Handle tilegx-*-linux*.
14731 * linux-tile-low.c: New file.
14732
0c5bf5a9
JK
147332012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14734
14735 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14736
a493e3e2
PA
147372012-05-24 Pedro Alves <palves@redhat.com>
14738
14739 PR gdb/7205
14740
43aaf8b6 14741 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 14742
2ea28649
PA
147432012-05-24 Pedro Alves <palves@redhat.com>
14744
14745 PR gdb/7205
14746
14747 Replace target_signal with gdb_signal throughout.
14748
8d409d16
MR
147492012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14750
14751 * linux-low.c (linux_store_registers): Avoid the copying sequence
14752 when no data has been retrieved by ptrace.
14753
23512c01
MGD
147542012-05-22 Will Deacon <will.deacon@arm.com>
14755
14756 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14757 Include asm/ptrace.h.
14758 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14759 already defined.
14760
4934b29e
MR
147612012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14762
14763 * linux-low.c (linux_store_registers): Don't re-retrieve data
14764 with ptrace that has already been obtained from /proc. Always
14765 copy any data retrieved with ptrace to the buffer supplied.
14766
bde24c0a
PA
147672012-05-11 Yao Qi <yao@codesourcery.com>
14768 Pedro Alves <palves@redhat.com>
14769
14770 * linux-low.c (enum stopping_threads_kind): New.
14771 (stopping_threads): Change type to `enum stopping_threads_kind'.
14772 (handle_extended_wait): If stopping and suspending threads, leave
14773 the new_lwp suspended too.
14774 (linux_wait_for_event): Adjust.
14775 (stop_all_lwps): Set `stopping_threads' to
14776 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14777 whether we're suspending threads or just stopping them. Assert no
14778 recursion happens.
14779
623b6bdf
YQ
147802012-04-29 Yao Qi <yao@codesourcery.com>
14781
14782 * server.h: Move some code to ...
14783 * gdbthread.h: ... here. New.
14784 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14785 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14786 (nto-low.o, win32-low.o): Likewise.
14787 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14788 * regcache.c, remote-utils.c, server.c: Likewise.
14789 * target.c, tracepoint.c, win32-low.c: Likewise.
14790
f15f9948
TJB
147912012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14792
14793 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14794 (PTRACE_ARG4_TYPE): Likewise.
14795 (PTRACE_XFER_TYPE): Likewise.
14796 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14797 ptrace to PTRACE_ARG3_TYPE.
14798 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14799 (PTRACE_ARG4_TYPE): Likewise.
14800 (PTRACE_XFER_TYPE): Likewise.
14801 (linux_detach_one_lwp): Cast fourth argument of
14802 ptrace to long then PTRACE_ARG4_TYPE.
14803 (regsets_fetch_inferior_registers): Cast third argument of
14804 ptrace to long then PTRACE_ARG3_TYPE.
14805 (regsets_store_inferior_registers): Likewise.
14806
38ea300a
PA
148072012-04-20 Pedro Alves <palves@redhat.com>
14808
14809 * configure: Regenerate.
14810
c971b7fa
PA
148112012-04-19 Pedro Alves <palves@redhat.com>
14812
43aaf8b6 14813 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 14814 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
14815 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14816 (all, install-only, uninstall, clean-info, all-lib, clean): No
14817 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14818 (maintainer-clean realclean distclean): Use subdir_do.
14819 (subdir_do): New.
14820 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 14821 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
14822 * acinclude.m4: Include acx_configure_dir.m4.
14823 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14824 calls. Call AC_PROG_RANLIB. Configure gnulib using
14825 ACX_CONFIGURE_DIR.
14826 (GNULIB): New.
14827 (GNULIB_STDINT_H): Adjust.
14828 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14829 * gdbreplay.c: Include build-gnulib/config.h.
14830 * server.h: Likewise.
14831 * aclocal.m4: Regenerate.
14832 * config.in: Regenerate.
14833 * configure: Regenerate.
c971b7fa 14834
809277f8
PA
148352012-04-19 Pedro Alves <palves@redhat.com>
14836
14837 * Makefile.in (LIBGNU, INCGNU): Adjust.
14838 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14839 (all, install-only, uninstall, clean-info, all-lib, clean)
14840 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14841 * configure.ac: Adjust AC_OUTPUT output.
14842 * aclocal.m4: Regenerate.
14843 * configure: Regenerate.
14844
fd9bb8b8
PA
148452012-04-19 Pedro Alves <palves@redhat.com>
14846
14847 * Makefile.in (generated_files): New.
14848 (server_h): Remove the explicit dependency on config.h, and depend
14849 on $generated_files.
14850
1c298c66
PA
148512012-04-19 Pedro Alves <palves@redhat.com>
14852
14853 * Makefile.in (INCGNU): Add -Ignulib.
14854
57c4b50b
PA
148552012-04-19 Pedro Alves <palves@redhat.com>
14856
14857 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14858 (INCGNU): ... this, and spell out -I here.
14859 (GNULIB_LIB): Rename to ...
14860 (LIBGNU): ... this.
14861 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14862
1030e047
PA
148632012-04-19 Pedro Alves <palves@redhat.com>
14864
14865 * config.in: Regenerate.
14866
447d4319
PA
148672012-04-19 Pedro Alves <palves@redhat.com>
14868
14869 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14870 * server.h (memmem): Remove declaration.
14871 * config.in: Regenerate.
14872 * configure: Regenerate.
14873
aad9eab9
YQ
148742012-04-19 Yao Qi <yao@codesourcery.com>
14875
14876 * Makefile.in (SFILES): Add common/vec.c.
14877 (OBS): Add vec.o.
14878 (vec.o): New rule.
14879
3e10640f
YQ
148802012-04-19 Yao Qi <yao@codesourcery.com>
14881
14882 * remote-utils.c (prepare_resume_reply): Replace with macro
14883 target_core_of_thread.
14884 * server.c (handle_qxfer_threads_proper): Likewise.
14885 * target.h (traget_core_of_thread): New macro.
14886
71622373
PA
148872012-04-18 Pedro Alves <palves@redhat.com>
14888
14889 * aclocal.m4: Regenerate.
14890 * configure: Regenerate.
14891
80d26939
YQ
148922012-04-16 Yao Qi <yao@codesourcery.com>
14893
14894 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14895 duplicated on address.
14896
42476b70
YQ
148972012-04-16 Yao Qi <yao@codesourcery.com>
14898
14899 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14900 (struct tracepoint_action_ops) <send>: New field.
14901 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14902 (agent_expr_send, x_tracepoint_action_send): New.
14903 (l_tracepoint_action_send): New.
14904 (cmd_qtdp): Download and install tracepoint
14905 according to `use_agent'.
14906 (run_inferior_command): Add one more parameter `len'.
14907 Update callers.
14908 (tracepoint_send_agent): New.
14909 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14910
7bc83639
YQ
149112012-04-16 Yao Qi <yao@codesourcery.com>
14912
14913 * tracepoint.c (download_tracepoints): Moved to ...
14914 (cmd_qtstart): ... here.
14915
5f18041e
YQ
149162012-04-14 Yao Qi <yao@codesourcery.com>
14917
14918 * tracepoint.c: Include inttypes.h.
14919 (struct collect_memory_action): Use sized types.
14920 (struct tracepoint): Likewise.
14921 (cmd_qtdp, stop_tracing): Update print specifiers.
14922 (cmd_qtp, response_tracepoint): Likewise.
14923 (collect_data_at_tracepoint): Likewise.
14924 (collect_data_at_step): Likewise.
14925
55a8c076
YQ
149262012-04-14 Yao Qi <yao@codesourcery.com>
14927
14928 Import gnulib module inttypes.
14929 * aclocal.m4, config.in, configure: Regenerated.
14930
dc750257
YQ
149312012-04-14 Yao Qi <yao@codesourcery.com>
14932
14933 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14934 Makefile and config.status at last.
14935
0ab5faf9
YQ
149362012-04-13 Yao Qi <yao@codesourcery.com>
14937
14938 * tracepoint.c: Include stdint.h unconditionally.
14939
18f5fd81
TJB
149402012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14941
14942 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
14943 on BFD_HAVE_SYS_PROCFS_TYPE.
14944 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
14945 * configure: Regenerate.
14946 * config.in: Likewise.
14947
4d47af5c
L
149482012-04-13 H.J. Lu <hongjiu.lu@intel.com>
14949
14950 * Makefile.in (clean): Also remove x32.c x32-linux.c
14951 x32-avx.c x32-avx-linux.c.
14952 (x32.o): New target.
14953 (x32.c): Likewise.
14954 (x32-linux.o): Likewise.
14955 (x32-linux.c): Likewise.
14956 (x32-avx.o): Likewise.
14957 (x32-avx.c): Likewise.
14958 (x32-avx-linux.o): Likewise.
14959 (x32-avx-linux.c): Likewise.
14960
14961 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
14962 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
14963 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
14964 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
14965 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
14966 i386/x32-avx-linux.xml.
14967
14968 * linux-x86-low.c (init_registers_x32_linux): New prototype.
14969 (init_registers_x32_avx_linux): Likwise.
14970 (x86_linux_update_xmltarget): Call init_registers_x32_linux
14971 or init_registers_x32_avx_linux if linux_is_elf64 is false.
14972
ecedbe58
PA
149732012-04-13 Pedro Alves <palves@redhat.com>
14974
14975 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
14976 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
14977 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
14978 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
14979 the sub-make.
14980
c92b5177
L
149812012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14982
14983 * linux-x86-low.c (compat_x32_clock_t): New.
14984 (compat_x32_siginfo_t): Likewise.
14985 (compat_x32_siginfo_from_siginfo): Likewise.
14986 (siginfo_from_compat_x32_siginfo): Likewise.
14987 (linux_is_elf64): Likewise.
14988 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
14989 and siginfo_from_compat_x32_siginfo for x32.
14990 (x86_arch_setup): Set linux_is_elf64.
14991
214d508e
L
149922012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14993
14994 PR gdb/13969
14995 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
14996 e_machine field.
14997 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
14998 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
14999 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15000 compatible with process.
15001
c9a1864a
YQ
150022012-04-12 Yao Qi <yao@codesourcery.com>
15003
15004 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15005 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15006 (install-only, install-info, clean): Handle sub dir gnulib.
15007 (all-lib, am--refresh): New targets.
15008 (memmem.o): Remove target.
15009 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15010 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15011 (AC_REPLACE_FUNCS): Remove memmem.
15012 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15013 (AC_OUTPUT): Generate Makefile in gnulib/.
15014 * aclocal.m4, config.in, configure: Regenerated.
15015
367ba2c2
MR
150162012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15017
15018 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15019
9d236627
PA
150202012-04-05 Pedro Alves <palves@redhat.com>
15021
15022 -Werror=strict-aliasing
15023
15024 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15025 pointer.
15026
111217b3
PA
150272012-04-04 Pedro Alves <palves@redhat.com>
15028
15029 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15030 (sparc_store_gregset_from_stack, sparc_store_gregset)
15031 (sparc_breakpoint_at): Fix formatting.
15032
8365dcf5
TJB
150332012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15034
15035 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15036 are available.
15037 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15038 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15039 * config.in: Regenerate.
15040 * configure: Likewise.
15041
689cc2ae
PA
150422012-03-29 Pedro Alves <palves@redhat.com>
15043
15044 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15045 Correct ptrace arguments.
15046
c14dfd32
PA
150472012-03-28 Pedro Alves <palves@redhat.com>
15048
15049 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15050 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15051 (IA64_FR1_REGNUM): New defines.
15052 (ia64_fetch_register): New.
15053 (the_low_target): Install it.
15054 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15055 field.
15056 * linux-low.c (linux_fetch_registers): Try the
15057 the_low_target.fetch_register hook first.
15058
15059 * linux-arm-low.c (the_low_target): Adjust.
15060 * linux-bfin-low.c (the_low_target): Adjust.
15061 * linux-cris-low.c (the_low_target): Adjust.
15062 * linux-crisv32-low.c (the_low_target): Adjust.
15063 * linux-m32r-low.c (the_low_target): Adjust.
15064 * linux-m68k-low.c (the_low_target): Adjust.
15065 * linux-mips-low.c (the_low_target): Adjust.
15066 * linux-ppc-low.c (the_low_target): Adjust.
15067 * linux-s390-low.c (the_low_target): Adjust.
15068 * linux-sh-low.c (the_low_target): Adjust.
15069 * linux-sparc-low.c (the_low_target): Adjust.
15070 * linux-tic6x-low.c (the_low_target): Adjust.
15071 * linux-x86-low.c (the_low_target): Adjust.
15072 * linux-xtensa-low.c (the_low_target): Adjust.
15073
63c88e13
PA
150742012-03-26 Pedro Alves <palves@redhat.com>
15075
15076 * server.c (handle_qxfer_libraries): Don't bail early if
15077 the_target->qxfer_libraries_svr4 is not NULL.
15078
fb723180
PA
150792012-03-26 Pedro Alves <palves@redhat.com>
15080
15081 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15082
0afae3cf
PA
150832012-03-23 Pedro Alves <palves@redhat.com>
15084
15085 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15086 "library-list-svr4" element's start tag when the the DSO list is
15087 empty.
15088
485f1ee4
PA
150892012-03-23 Pedro Alves <palves@redhat.com>
15090
15091 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15092 a variable whose type size is the same as the inferior's pointer
15093 size.
15094
a5362b9a
TS
150952012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15096
15097 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15098 struct siginfo.
15099 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15100 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15101 * linux-low.h: Include <signal.h>.
15102 (struct siginfo): Remove forward declaration.
15103 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15104 struct siginfo.
15105
d226c142
MF
151062012-03-21 Mike Frysinger <vapier@gentoo.org>
15107
15108 * .gitignore: Ignore more files.
15109
122f36ef
PA
151102012-03-19 Pedro Alves <palves@redhat.com>
15111 Jan Kratochvil <jan.kratochvil@redhat.com>
15112
15113 * server.c (cont_thread, general_thread): Add describing comments.
15114 (start_inferior): Clear `cont_thread'.
15115 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15116 of a process.
15117
fc3e5175
YQ
151182012-03-15 Yao Qi <yao@codesourcery.com>
15119
15120 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15121 handling to ...
15122 (cmd_qtdp): ... here.
15123
8d0d92cd
YQ
151242012-03-15 Yao Qi <yao@codesourcery.com>
15125
15126 * tracepoint.c (struct tracepoint_action_ops): New.
15127 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15128 (m_tracepoint_action_download): New.
15129 (r_tracepoint_action_download): New.
15130 (x_tracepoint_action_download): New.
15131 (l_tracepoint_action_download): New.
15132 (add_tracepoint_action): Install `action->ops' according type.
15133 (download_tracepoint_1): Move code `download' function pointer
15134 of various tracepoint_action_ops.
15135
87b0bb13
JK
151362012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15137
15138 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15139 linux_ptrace_attach_warnings.
15140
5f572dec
JK
151412012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15142
15143 * Makefile.in (linux-ptrace.o): New.
15144 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15145 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15146 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15147 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15148 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15149 of these targets.
15150 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15151
f4647387
YQ
151522012-03-08 Yao Qi <yao@codesourcery.com>
15153 Pedro Alves <palves@redhat.com>
15154
15155 Fix PR server/13392.
15156 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15157 offset of JMP insn.
15158 * tracepoint.c (remove_tracepoint): New.
15159 (cmd_qtdp): Call remove_tracepoint when failed to install.
15160
9b224c5e
PA
151612012-03-07 Pedro Alves <palves@redhat.com>
15162
15163 * linux-low.c (get_detach_signal): New.
15164 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15165 Pass on pending signals to PTRACE_DETACH. Check the result of the
15166 ptrace call.
15167 * server.c (program_signals, program_signals_p): New.
15168 (handle_general_set): Handle QProgramSignals.
15169 * server.h (program_signals, program_signals_p): Declare.
15170
e237a7e2
JK
151712012-03-05 Pedro Alves <palves@redhat.com>
15172 Jan Kratochvil <jan.kratochvil@redhat.com>
15173
15174 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15175 New comment why.
15176
5808517f
YQ
151772012-03-03 Yao Qi <yao@codesourcery.com>
15178
15179 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15180 agent_look_up_symbols.
15181
58b4daa5
YQ
151822012-03-03 Yao Qi <yao@codesourcery.com>
15183
15184 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15185 (linux-x86-low.o): Likewise.
15186 * server.h: Remove in_process_agent_loaded.
15187 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15188 common/agent.c.
15189 Update callers.
15190
8ffcbaaf
YQ
151912012-03-03 Yao Qi <yao@codesourcery.com>
15192
15193 * tracepoint.c (gdb_agent_capability): New global.
15194 (in_process_agent_loaded_ust): Renamed to
15195 `in_process_agent_supports_ust'.
15196 Update callers.
15197 (in_process_agent_supports_ust): Call agent_capability_check.
15198 (clear_installed_tracepoints): Assert that agent supports
15199 agent.
15200
d1feda86
YQ
152012012-03-03 Yao Qi <yao@codesourcery.com>
15202
15203 * linux-low.c (linux_supports_agent): New.
15204 (linux_target_ops): Initialize field `supports_agent' with
15205 linux_supports_agent.
15206 * target.h (struct target_ops) <supports_agent>: New.
15207 (target_supports_agent): New macro.
15208 * server.c (handle_general_set): Handle packet 'QAgent'.
15209 (handle_query): Send `QAgent+'.
15210 * Makefile.in (server.o): Depends on agent.h.
15211
2fa291ac
YQ
152122012-03-03 Yao Qi <yao@codesourcery.com>
15213
15214 * Makefile.in (OBS): Add agent.o.
15215 Add new rule for agent.o.
15216 Track dependence of tracepoint.c on agent.h.
15217 * tracepoint.c (run_inferior_command_1):
15218 (run_inferior_command): Call agent_run_command.
15219 (gdb_ust_connect_sync_socket): Deleted. Move it to
15220 common/agent.c.
15221 (resume_thread, stop_thread): Likewise.
15222 (gdb_ust_socket_init): Renamed to ...
15223 (gdb_agent_socket_init): ... New.
15224 (gdb_ust_thread): Renamed to ...
15225 (gdb_agent_helper_thread): ... New.
15226 (gdb_ust_init): Move some code to ...
15227 (gdb_agent_init): ... here. New.
15228 [HAVE_UST]: Call gdb_ust_init.
15229 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15230 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15231 * config.in, configure: Regenerated.
15232
05044653
PA
152332012-03-02 Pedro Alves <palves@redhat.com>
15234
15235 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15236 * linux-low.c (struct simple_pid_list): New.
15237 (stopped_pids): New a struct simple_pid_list pointer.
15238 (add_to_pid_list, pull_pid_from_list): New.
15239 (handle_extended_wait): Don't assume the first signal new children
15240 report is SIGSTOP. Adjust call to pull_pid_from_list.
15241 (linux_wait_for_lwp): Adjust.
15242
8d00225b
YQ
152432012-03-02 Yao Qi <yao@codesourcery.com>
15244
15245 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15246 debug log.
15247
19560ba5
YQ
152482012-03-02 Yao Qi <yao@codesourcery.com>
15249
15250 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15251 `stop_pc' and `tpoint'. Update caller.
15252
1faeff08
MR
152532012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15254
15255 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15256 * linux-low.c (use_linux_regsets): New macro.
15257 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15258 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15259 (linux_register_in_regsets): New function.
15260 (usr_fetch_inferior_registers): Skip registers covered by
15261 regsets.
15262 (usr_store_inferior_registers): Likewise.
15263 (usr_fetch_inferior_registers): New macro.
15264 (usr_store_inferior_registers): Likewise.
15265 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15266 (linux_store_registers): Likewise.
15267 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15268 prototype.
15269 (init_registers_mips64_dsp_linux): Likewise.
15270 (init_registers_mips_linux): New macro.
15271 (init_registers_mips_dsp_linux): Likewise.
15272 (mips_dsp_num_regs): Likewise.
15273 (DSP_BASE, DSP_CONTROL): New fallback macros.
15274 (mips_base_regs): New macro.
15275 (mips_regmap): Use it. Fix the size.
15276 (mips_dsp_regmap): New variable.
15277 (mips_dsp_regset_bitmap): Likewise.
15278 (mips_arch_setup): New function.
15279 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15280 than mips_regmap.
15281 (mips_cannot_store_register): Likewise.
15282 (the_low_target): Update .arch_setup, .num_regs and .regmap
15283 initializers. Add .regset_bitmap initializer.
15284 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15285 initializer.
15286 * linux-bfin-low.c (the_low_target): Likewise.
15287 * linux-cris-low.c (the_low_target): Likewise.
15288 * linux-crisv32-low.c (the_low_target): Likewise.
15289 * linux-ia64-low.c (the_low_target): Likewise.
15290 * linux-m32r-low.c (the_low_target): Likewise.
15291 * linux-m68k-low.c (the_low_target): Likewise.
15292 * linux-ppc-low.c (the_low_target): Likewise.
15293 * linux-s390-low.c (the_low_target): Likewise.
15294 * linux-sh-low.c (the_low_target): Likewise.
15295 * linux-sparc-low.c (the_low_target): Likewise.
15296 * linux-tic6x-low.c (the_low_target): Likewise.
15297 * linux-x86-low.c (the_low_target): Likewise.
15298 * linux-xtensa-low.c (the_low_target): Likewise.
15299 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15300 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15301 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15302 srv_xmlfiles.
15303 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15304 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15305
c03e6ccc
YQ
153062012-02-29 Yao Qi <yao@codesourcery.com>
15307 Pedro Alves <palves@redhat.com>
15308
15309 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15310 `step_over_finished' is true.
15311
644cebc9
PA
153122012-02-27 Pedro Alves <palves@redhat.com>
15313
15314 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15315 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15316
c14d7ab2
PA
153172012-02-27 Pedro Alves <palves@redhat.com>
15318
15319 PR server/9684
15320 * linux-low.c (pid_is_stopped): New.
15321 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15322
412c89dd
LM
153232012-02-25 Luis Machado <lgustavo@codesourcery.com>
15324
15325 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15326 of conditions.
15327
b745defe
MR
153282012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15329
15330 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15331
9f3a5c85
LM
153322012-02-24 Luis Machado <lgustavo@codesourcery>
15333
15334 * server.c (handle_query): Advertise support for target-side
15335 breakpoint condition evaluation.
15336 (process_point_options): New function.
15337 (process_serial_event): When inserting a breakpoint, check for
15338 a target-side condition that should be evaluated.
15339
15340 * mem-break.c: Include regcache.h and ax.h.
15341 (point_cond_list_t): New data structure.
15342 (breakpoint) <cond_list>: New field.
15343 (find_gdb_breakpoint_at): Make non-static.
15344 (delete_gdb_breakpoint_at): Clear any target-side
15345 conditions.
15346 (clear_gdb_breakpoint_conditions): New function.
15347 (add_condition_to_breakpoint): Likewise.
15348 (add_breakpoint_condition): Likewise.
15349 (gdb_condition_true_at_breakpoint): Likewise.
15350 (gdb_breakpoint_here): Return result directly instead
15351 of going through a local variable.
15352
15353 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15354 (clear_gdb_breakpoint_conditions): Likewise.
15355 (add_breakpoint_condition): Likewise.
15356 (gdb_condition_true_at_breakpoint): Likewise.
15357
15358 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15359 (need_step_over_p): Take target-side breakpoint condition into
15360 consideration.
15361
5e1dc496
LM
153622012-02-24 Luis Machado <lgustavo@codesourcery>
15363
15364 * server.h: Include tracepoint.h.
15365 (agent_mem_read, agent_get_trace_state_variable_value,
15366 agent_set_trace_state_variable_value,
15367 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15368 get_set_tsv_func_addr): New prototypes.
15369
15370 * ax.h: New include file.
15371 * ax.c: New source file.
15372
15373 * tracepoint.c: Include ax.h.
15374 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15375 agent_expr, eval_result_type): Move to ax.h.
15376 (parse_agent_expr): Rename to ...
15377 (gdb_parse_agent_expr): ... this, make it non-static and move
15378 to ax.h.
15379 (unparse_agent_expr) Rename to ...
15380 (gdb_unparse_agent_expr): ... this, make it non-static and move
15381 to ax.h.
15382 (eval_agent_expr): Rename to ...
15383 (eval_tracepoint_agent_expr): ... this.
15384 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15385 forward declarations.
15386 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15387 (agent_get_trace_state_variable_value): New function.
15388 (agent_set_trace_state_variable_value): New function.
15389 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15390 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15391 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15392 (condition_true_at_tracepoint): Likewise.
15393 (parse_agent_expr): Rename to ...
15394 (gdb_parse_agent_expr): ... this and move to ax.c.
15395 (unparse_agent_expr): Rename to ...
15396 (gdb_unparse_agent_expr): ... this and move to ax.c.
15397 (gdb_agent_op_name): Move to ax.c.
15398 (eval_agent_expr): Rename to ...
15399 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15400 and move to ax.c.
15401 (eval_tracepoint_agent_expr): New function.
15402 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15403 non-static.
5e1dc496
LM
15404 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15405 ax.c.
15406 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15407 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15408 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15409 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15410 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15411 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15412 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15413 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15414 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15415 (compile_bytecodes): Remove forward declaration.
15416 (is_goto_target): Move to ax.c.
15417 (compile_bytecodes): Move to ax.c and call
15418 agent_get_trace_state_variable_value (...) and
15419 agent_set_trace_state_variable_value (...).
15420
15421 * Makefile.in: Update ax.c and IPA dependencies.
15422
277e4e52
PA
154232012-02-24 Pedro Alves <palves@redhat.com>
15424
15425 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15426 (cmd_bigqtbuffer_circular): ... this. Only handle
15427 'QTBuffer:circular:'.
15428 (handle_tracepoint_general_set): Adjust.
15429
bf4c19f7
YQ
154302012-02-16 Yao Qi <yao@codesourcery.com>
15431
15432 * inferiors.c: Move code to ...
15433 * dll.c: .... here. New.
15434 * server.h: Declare clear_dlls.
15435 * Makefile.in (SFILES): Add dll.c.
15436 (OBS): Add dll.o
15437 (dll.o): New rule.
15438
d73f2619
YQ
154392012-02-11 Yao Qi <yao@codesourcery.com>
15440
15441 * server.c: (handle_monitor_command): Add a new parameter
15442 `own_buf'.
15443 (handle_query): Update caller.
15444
f8255c2a
JB
154452012-02-09 Joel Brobecker <brobecker@adacore.com>
15446
15447 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15448 * configure, config.in: Regenerate.
15449 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15450 is not defined.
15451
da84f473
PA
154522012-02-02 Pedro Alves <palves@redhat.com>
15453
15454 Try SIGKILL first, then PTRACE_KILL.
15455 * linux-low.c (linux_kill_one_lwp): New.
15456 (linux_kill_one_lwp): Rename to ...
15457 (kill_one_lwp_callback): ... this. Use the new
15458 linux_kill_one_lwp.
15459
e886a173
PA
154602012-02-02 Pedro Alves <palves@redhat.com>
15461
15462 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15463 inferior.
15464
be07f1a2
PA
154652012-01-27 Pedro Alves <palves@redhat.com>
15466
15467 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15468 (elf_64_file_p): Make static.
15469 (linux_pid_exe_is_elf_64_file): New.
15470 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15471 Delete declarations.
15472 (linux_pid_exe_is_elf_64_file): Declare.
15473 * linux-x86-low.c (x86_arch_setup): Use
15474 linux_pid_exe_is_elf_64_file.
15475
d8301ad1
JK
154762012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15477
15478 * linux-low.c (linux_wait_for_event_1): Rename to ...
15479 (linux_wait_for_event): ... here and merge it with former
15480 linux_wait_for_event - new variable wait_ptid, use it.
15481 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15482
01b17894
PA
154832012-01-23 Pedro Alves <palves@redhat.com>
15484
15485 * server.c (main): Avoid yet another case of infinite loop while
15486 detaching/killing after a longjmp.
15487
e825046f
JK
154882012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15489
15490 Code cleanup.
15491 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15492
b9e7b9c3
UW
154932012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15494
15495 * hostio.c (handle_readlink): New function.
15496 (handle_vFile): Call it to handle "vFile:readlink" packets.
15497
901f9912
UW
154982012-01-20 Pedro Alves <palves@redhat.com>
15499 Ulrich Weigand <ulrich.weigand@linaro.org>
15500
15501 * server.c (handle_v_requests): Only support vAttach and vRun to
15502 start multiple processes when in extended protocol mode.
15503
fc1ab1a0
PA
155042012-01-17 Pedro Alves <palves@redhat.com>
15505
15506 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15507 memalign plus mprotect to allocate the scratch buffer.
15508
7d5d4e98
PA
155092012-01-13 Pedro Alves <palves@redhat.com>
15510
15511 * server.c (attach_inferior): Clear `cont_thread'.
15512
f128d5e9
PA
155132012-01-13 Pedro Alves <palves@redhat.com>
15514
15515 * server.c (main): Avoid infinite loop while detaching/killing
15516 after a longjmp.
15517
06db92f0
DE
155182012-01-09 Doug Evans <dje@google.com>
15519
15520 * server.c (start_inferior): Set last_ptid in --wrapper case.
15521
32d92999
YQ
155222012-01-06 Yao Qi <yao@codesourcery.com>
15523
15524 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15525 defined.
15526 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15527
5e0a92a9
YQ
155282012-01-04 Yao Qi <yao@codesourcery.com>
15529
15530 * tracepoint.c (cmd_qtdp): Print debug message
15531 for static tracepoint.
15532
ae639e8c
YQ
155332012-01-04 Yao Qi <yao@codesourcery.com>
15534
15535 * tracepoint.c (trace_vdebug): Differentiate debug message
15536 between gdbserver and IPA.
15537
f72429c5
YQ
155382012-01-03 Yao Qi <yao@codesourcery.com>
15539
15540 * tracepoint.c (tracepoint_was_hit): Don't collect for
15541 static tracepoint.
15542
12c3e59c
JB
155432012-01-02 Joel Brobecker <brobecker@adacore.com>
15544
15545 * terminal.h: Reformat copyright header.
15546
67827812
JB
155472012-01-02 Joel Brobecker <brobecker@adacore.com>
15548
15549 * server.c (gdbserver_version): Update copyright year.
15550 * gdbreplay.c (gdbreplay_version): Likewise.
15551
3e52c33d
JK
155522011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15553
15554 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15555
15556 Revert:
15557 2011-12-18 Hui Zhu <teawater@gmail.com>
15558 * linux-low.c (linux_create_inferior): Save return value to ret.
15559
66f1260e
HZ
155602011-12-18 Hui Zhu <teawater@gmail.com>
15561
15562 * linux-low.c (linux_create_inferior): Save return value to ret.
15563
e77616d7
DE
155642011-12-16 Doug Evans <dje@google.com>
15565
e7b06c57
DE
15566 * linux-low.c (linux_create_inferior): If stdio connection,
15567 redirect stdin from /dev/null, stdout to stderr.
15568 * remote-utils.c (remote_is_stdio): New static global.
15569 (remote_connection_is_stdio): New function.
15570 (remote_prepare): Handle stdio connection.
15571 (remote_open): Ditto.
15572 (remote_close): Don't close stdin for stdio connections.
15573 (read_prim,write_prim): New functions. Replace all calls to
15574 read/write to these.
15575 * server.c (main): Watch for "-" argument. Move call to
15576 remote_prepare before start_inferior.
15577 * server.h (STDIO_CONNECTION_NAME): New macro.
15578 (remote_connection_is_stdio): Declare.
15579
e77616d7
DE
15580 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15581 in debugging output.
15582
82067193
YQ
155832011-12-15 Yao Qi <yao@codesourcery.com>
15584
15585 * tracepoint.c: Include sys/syscall.h.
15586 (gdb_ust_thread): Remove preprocessor conditional.
15587
82bfbe7e
PA
155882011-12-14 Pedro Alves <pedro@codesourcery.com>
15589
15590 * linux-low.c (linux_detach_one_lwp): Call
15591 the_low_target.prepare_to_resume before detaching.
15592
712c6575
YQ
155932011-12-14 Yao Qi <yao@codesourcery.com>
15594
15595 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15596 of write.
15597
d54d1edf
YQ
155982011-12-14 Yao Qi <yao@codesourcery.com>
15599
15600 * i386-low.c (i386_low_stopped_data_address): Initialize local
15601 variable `control'.
15602
6210a125
PA
156032011-12-13 Pedro Alves <pedro@codesourcery.com>
15604
15605 PR remote/13492
15606
15607 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15608 DR_CONTROL unless necessary. Extend comments.
15609 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15610 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15611
2ece8244
YQ
156122011-12-13 Yao Qi <yao@codesourcery.com>
15613
15614 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15615 macros.
15616 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15617
784867a5
JK
156182011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15619
15620 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15621 Print new debug message for such case.
15622
6bf36717
JK
156232011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15624
15625 Fix overlapping memcpy.
15626 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15627 the read_inferior_memory transfer.
15628 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15629 write_inferior_memory transfer.
15630 (set_fast_tracepoint_jump): New variable buf. Use it for the
15631 read_inferior_memory and write_inferior_memory transfers.
15632 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15633 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15634 Use it for the write_inferior_memory transfer.
15635 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15636 buffers.
15637
50275556
MR
156382011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15639
15640 * linux-low.c (fetch_register, store_register): Make code
15641 consistent, fix formatting.
15642
7325beb4
MR
156432011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15644
15645 * linux-low.c (usr_store_inferior_registers): Factor out code
15646 to handle individual registers into...
15647 (store_register): ... this new function.
15648
c642a434
UW
156492011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15650
15651 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15652 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15653 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15654 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15655 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15656 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15657 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15658 (srv_xmlfiles): Add new XML files.
15659
15660 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15661 and <sys/uio.h>.
15662 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15663 (init_registers_s390_linux32v1): Add prototype.
15664 (init_registers_s390_linux32v2): Likewise.
15665 (init_registers_s390_linux64v1): Likewise.
15666 (init_registers_s390_linux64v2): Likewise.
15667 (init_registers_s390x_linux64v1): Likewise.
15668 (init_registers_s390x_linux64v2): Likewise.
15669 (s390_num_regs): Increment to 52.
15670 (s390_regmap): Add orig_r2 register.
15671 (s390_num_regs_3264): Increment to 68.
15672 (s390_regmap_3264): Add orig_r2 register.
15673 (s390_collect_ptrace_register): Handle orig_r2 register.
15674 (s390_supply_ptrace_register): Likewise.
15675 (s390_fill_last_break): New function.
15676 (s390_store_last_break): Likewise.
15677 (s390_fill_system_call): New function.
15678 (s390_store_system_call): Likewise.
15679 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15680 register sets.
15681 (s390_check_regset): New function.
15682 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15683 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15684 Update target_regsets for available register sets.
15685
2268b414
JK
156862011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15687 Jan Kratochvil <jan.kratochvil@redhat.com>
15688
15689 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15690 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15691 New.
15692 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15693 * linux-low.h (struct process_info_private): New member r_debug.
15694 * server.c (handle_qxfer_libraries): Call
15695 the_target->qxfer_libraries_svr4.
15696 (handle_qxfer_libraries_svr4): New function.
15697 (qxfer_packets): New entry "libraries-svr4".
15698 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15699 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15700 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15701 PACKET_qXfer_libraries_svr4.
15702
d6db1fab
UW
157032011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15704
15705 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15706 PSW address/mask between 8-byte and 16-byte formats.
15707 (s390_supply_ptrace_register): Likewise.
15708 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15709 basic addressing mode bit.
15710
242f5f1c
SS
157112011-11-24 Stan Shebs <stan@codesourcery.com>
15712
15713 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15714
f196051f
SS
157152011-11-17 Stan Shebs <stan@codesourcery.com>
15716
15717 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15718 (tracing_start_time): New global.
15719 (tracing_stop_time): New global.
15720 (tracing_user_name): New global.
15721 (tracing_notes): New global.
15722 (tracing_stop_note): New global.
15723 (cmd_qtstart): Set traceframe_usage, start_time.
15724 (stop_tracing): Set stop_time.
15725 (cmd_qtstatus): Report additional status.
15726 (cmd_qtp): New function.
15727 (handle_tracepoint_query): Call it.
15728 (cmd_qtnotes): New function.
15729 (handle_tracepoint_general_set): Call it.
15730 (get_timestamp): Rename from tsv_get_timestamp.
15731
405f8e94
SS
157322011-11-14 Stan Shebs <stan@codesourcery.com>
15733 Kwok Cheung Yeung <kcy@codesourcery.com>
15734
15735 * linux-x86-low.c (small_jump_insn): New.
15736 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15737 trampoline and error message, build a trampoline and issue a small
15738 jump instruction to it.
15739 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15740 trampoline and error message.
15741 (x86_get_min_fast_tracepoint_insn_len): New.
15742 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15743 * linux-low.h (struct linux_target_ops): Add arguments to
15744 install_fast_tracepoint_jump_pad operation, add new operation.
15745 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15746 arguments.
15747 (linux_get_min_fast_tracepoint_insn_len): New function.
15748 (linux_target_op): Add new operation.
15749 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15750 (gdb_trampoline_buffer_end): Ditto.
15751 (gdb_trampoline_buffer_error): Ditto.
15752 (struct ipa_sym_addresses): Add fields for new IPA variables.
15753 (symbol_list): Add entries for new IPA variables.
15754 (struct tracepoint): Add fields to hold the address range of the
15755 trampoline used by the tracepoint.
15756 (trampoline_buffer_head): New static variable.
15757 (trampoline_buffer_tail): Ditto.
15758 (claim_trampoline_space): New function.
15759 (have_fast_tracepoint_trampoline_buffer): New function.
15760 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15761 structure.
15762 (install_fast_tracepoint): Ditto, also add error buffer argument.
15763 (cmd_qtminftpilen): New function.
15764 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15765 (fast_tracepoint_from_trampoline_address): New function.
15766 (fast_tracepoint_collecting): Handle trampoline as part of jump
15767 pad space.
15768 (set_trampoline_buffer_space): New function.
15769 (initialize_tracepoint): Initialize new IPA variables.
15770 * target.h (struct target_ops): Add arguments to
15771 install_fast_tracepoint_jump_pad operation, add new
15772 get_min_fast_tracepoint_insn_len operation.
15773 (target_get_min_fast_tracepoint_insn_len): New.
15774 (install_fast_tracepoint_jump_pad): Add arguments.
15775 * server.h (IPA_BUFSIZ): Define.
15776 * linux-i386-ipa.c: Include extra header files.
15777 (initialize_fast_tracepoint_trampoline_buffer): New function.
15778 (initialize_low_tracepoint): Call it.
15779 * server.h (set_trampoline_buffer_space): Declare.
15780 (claim_trampoline_space): Ditto.
15781 (have_fast_tracepoint_trampoline_buffer): Ditto.
15782
1e4d1764
YQ
157832011-11-14 Yao Qi <yao@codesourcery.com>
15784
15785 * server.c (handle_query): Handle InstallInTrace for qSupported.
15786 * tracepoint.c (add_tracepoint): Sort list.
15787 (install_tracepoint, download_tracepoint): New.
15788 (cmd_qtdp): Call them to install and download tracepoints.
15789 (sort_tracepoints): Removed.
15790 (cmd_qtstart): Update.
15791
5c73ff4e
YQ
157922011-11-14 Yao Qi <yao@codesourcery.com>
15793
15794 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15795 * mem-break.h: Declare.
15796 * tracepoint.c (cmd_qtstart): Move some code to ...
15797 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15798 New.
15799 (download_tracepoints): Move some code to ...
15800 (download_tracepoint_1): ... here. New.
15801
86a30030
YQ
158022011-11-08 Yao Qi <yao@codesourcery.com>
15803
15804 * remote-utils.c (relocate_instruction): A comment fix.
15805
8d26e50c
JB
158062011-11-07 Joel Brobecker <brobecker@adacore.com>
15807
15808 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15809 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15810 dr_status_mirror and dr_control_mirror from debug_reg_state.
15811 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15812 (i386_initial_stuff): Remove use of deleted globals.
15813 (i386_get_thread_context, i386_set_thread_context,
15814 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15815 from debug_reg_state.
15816
a59306a3
YQ
158172011-11-05 Yao Qi <yao@codesourcery.com>
15818
15819 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15820 address as TPOINT's.
15821
3065dfb6
SS
158222011-11-02 Stan Shebs <stan@codesourcery.com>
15823
15824 * tracepoint.c (agent_mem_read_string): New function.
15825 (eval_agent_expr): Call it for tracenz.
15826 * server.c (handle_query): Report support for tracenz.
15827
fd0d8c7c
YQ
158282011-11-02 Yao Qi <yao@codesourcery.com>
15829
15830 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15831
609086b1
YQ
158322011-11-02 Yao Qi <yao@codesourcery.com>
15833
15834 * target.h: Fix a typo in comment.
15835
b9fd1791
PA
158362011-10-31 Pedro Alves <pedro@codesourcery.com>
15837
15838 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15839 clobber the breakpoints' shadows with fast tracepoint jumps.
15840 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15841 * target.c (write_inferior_memory): Also pass MYADDR down to
15842 check_mem_write.
15843
03583c20
UW
158442011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15845
15846 * configure.ac: Check support for personality routine.
15847 * configure: Regenerate.
15848 * config.in: Likewise.
15849 * linux-low.c: Include <sys/personality.h>.
15850 Define ADDR_NO_RANDOMIZE if necessary.
15851 (linux_create_inferior): Disable address space randomization when
15852 forking inferior, if requested.
15853 (linux_supports_disable_randomization): New function.
15854 (linux_target_ops): Install it.
15855 * server.h (disable_randomization): Declare.
15856 * server.c (disable_randomization): New global variable.
15857 (handle_general_set): Handle QDisableRandomization.
15858 (handle_query): Likewise for qSupported.
15859 (main): Support --disable-randomization and --no-disable-randomization
15860 command line arguments.
15861 * target.h (struct target_ops): Add supports_disable_randomization.
15862 (target_supports_disable_randomization): New macro.
15863
723b724b
MF
158642011-09-29 Mike Frysinger <vapier@gentoo.org>
15865
15866 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15867 ifdef check.
15868 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15869 [!PT_GETDSBT] (target_loadmap): New definition.
15870 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15871 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15872 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15873 and PT_GETDSBT to LINUX_LOADMAP.
15874 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15875 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15876
55329a5c 158772011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
15878
15879 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15880 (arm_linux_hwbp_cap): New static variable.
15881 (arm_linux_get_hwbp_cap): Replace by ...
15882 (arm_linux_init_hwbp_cap): ... this new function.
15883 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15884 (arm_linux_get_hw_watchpoint_count): Likewise.
15885 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15886 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15887 (arm_prepare_to_resume): Use perror_with_name instead of error.
15888
55329a5c 158892011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
15890
15891 * linux-arm-low.c: Include <signal.h>.
15892 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15893 (struct arm_linux_hwbp_cap): New data type.
15894 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15895 (struct arm_linux_hw_breakpoint): New data type.
15896 (MAX_BPTS, MAX_WPTS): Define.
15897 (struct arch_process_info, struct arch_lwp_info): New data types.
15898 (arm_linux_get_hwbp_cap): New function.
15899 (arm_linux_get_hw_breakpoint_count): Likewise.
15900 (arm_linux_get_hw_watchpoint_count): Likewise.
15901 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15902 (arm_hwbp_control_initialize): Likewise.
15903 (arm_hwbp_control_is_enabled): Likewise.
15904 (arm_hwbp_control_is_initialized): Likewise.
15905 (arm_hwbp_control_disable): Likewise.
15906 (arm_linux_hw_breakpoint_equal): Likewise.
15907 (arm_linux_hw_point_initialize): Likewise.
15908 (struct update_registers_data): New data structure.
15909 (update_registers_callback: New function.
15910 (arm_insert_point): Likewise.
15911 (arm_remove_point): Likewise.
15912 (arm_stopped_by_watchpoint): Likewise.
15913 (arm_stopped_data_address): Likewise.
15914 (arm_new_process): Likewise.
15915 (arm_new_thread): Likewise.
15916 (arm_prepare_to_resume): Likewise.
15917 (the_low_target): Register arm_insert_point, arm_remove_point,
15918 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15919 arm_new_thread, and arm_prepare_to_resume.
15920
6b9801d4
SS
159212011-09-15 Stan Shebs <stan@codesourcery.com>
15922
15923 * server.h (struct emit_ops): Add compare-goto fields.
15924 * tracepoint.c (gdb_agent_op_sizes): New table.
15925 (emit_eq_goto): New function.
15926 (emit_ne_goto): New function.
15927 (emit_lt_goto): New function.
15928 (emit_le_goto): New function.
15929 (emit_gt_goto): New function.
15930 (emit_ge_goto): New function.
15931 (is_goto_target): New function.
15932 (compile_bytecodes): Recognize special cases of compare-goto
15933 combinations and call specialized emitters for them.
15934 * linux-x86-low.c (amd64_emit_eq_goto): New function.
15935 (amd64_emit_ne_goto): New function.
15936 (amd64_emit_lt_goto): New function.
15937 (amd64_emit_le_goto): New function.
15938 (amd64_emit_gt_goto): New function.
15939 (amd64_emit_ge_goto): New function.
15940 (amd64_emit_ops): Add the new functions.
15941 (i386_emit_eq_goto): New function.
15942 (i386_emit_ne_goto): New function.
15943 (i386_emit_lt_goto): New function.
15944 (i386_emit_le_goto): New function.
15945 (i386_emit_gt_goto): New function.
15946 (i386_emit_ge_goto): New function.
15947 (i386_emit_ops): Add the new functions.
15948
bf15cbda
SS
159492011-09-08 Stan Shebs <stan@codesourcery.com>
15950
15951 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
15952 (i386_emit_epilogue): Restore %ebx.
15953
943ca1dd
JZ
159542011-08-31 Jie Zhang <jzhang918@gmail.com>
15955
15956 * server.c (step_thread): Remove definition.
15957 (process_serial_event): Don't handle Hs.
15958 * server.h (step_thread): Remove declaration.
15959 * target.c (set_desired_inferior): Remove use of step_thread.
15960
e3deef73
LM
159612011-08-24 Luis Machado <lgustavo@codesourcery.com>
15962
15963 * linux-low.c: Include linux-procfs.h.
15964 (linux_attach_lwp_1): Update comments.
15965 (linux_attach): Scan for existing threads when attaching to a
15966 process that is the tgid.
15967 * Makefile.in: Update dependencies.
15968
13da1c97
LM
159692011-08-24 Luis Machado <lgustavo@codesourcery.com>
15970
15971 * configure.srv: Add linux-procfs.o dependencies.
15972
881127c9
YQ
159732011-08-14 Yao Qi <yao@codesourcery.com>
15974
15975 * target.h (struct target_ops): Fix indent.
15976 * win32-low.c (win32_target_ops): Fix comment.
15977
58dbd541
YQ
159782011-08-14 Andrew Jenner <andrew@codesourcery.com>
15979 Yao Qi <yao@codesourcery.com>
15980
15981 * Makefile.in (clean): Remove tic6x-*.c files.
15982 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
15983 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
15984 (tic6x-c64xp-linux.c): Likewise.
15985 * configure.srv: Add support for tic6x-*-uclinux.
15986 * linux-tic6x-low.c: New.
15987 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
15988
78d85199
YQ
159892011-08-14 Andrew Stubbs <ams@codesourcery.com>
15990 Yao Qi <yao@codesourcery.com>
15991
15992 * target.h (struct target_ops): Add read_loadmap.
15993 * linux-low.c (struct target_loadseg): New type.
15994 (struct target_loadmap): New type.
15995 (linux_read_loadmap): New function.
15996 (linux_target_ops): Add linux_read_loadmap.
15997 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
15998 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
15999 to NULL.
78d85199 16000
a959a88d
EZ
160012011-08-05 Eli Zaretskii <eliz@gnu.org>
16002
16003 * win32-low.c: Include <stdint.h>.
16004
1ced966e
PA
160052011-07-22 Pedro Alves <pedro@codesourcery.com>
16006
16007 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16008 to the inferior here.
16009 (i386_remove_aligned_watchpoint): Ditto.
16010 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16011 fit part of the watchpoint in the debug registers.
16012 (i386_update_inferior_debug_regs): New.
16013 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16014 registers, and only update the inferior on success.
16015 (i386_low_remove_watchpoint): Ditto.
16016
d26e3629
KY
160172011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16018
16019 * linux-low.c (compare_ints, unique, list_threads, show_process,
16020 linux_core_of_thread): Delete.
16021 (linux_target_ops): Change linux_core_of_thread to
16022 linux_common_core_of_thread.
16023 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16024 * utils.c (malloc_failure): Change type of argument.
16025 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16026 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16027 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16028 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16029 (IPA_OBJS): Add common-utils-ipa.o.
16030 (ptid_h, linux_osdata_h): New macros.
16031 (server_h): Add common/common-utils.h, common/xml-utils.h,
16032 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16033 common/ptid.h.
16034 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16035 ptid.o, buffer.o): New rules.
16036 (linux-low.o): Add common/linux-osdata.h as a dependency.
16037 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16038 * configure.ac: Add AC_HEADER_DIRENT check.
16039 * config.in: Regenerate.
16040 * configure: Regenerate.
16041 * remote-utils.c (xml_escape_text): Delete.
16042 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16043 buffer_xml_printf): Move to common/buffer.c.
16044 * server.c (main): Remove call to initialize_inferiors.
16045 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16046 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16047 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16048 internal_error, gdb_assert, gdb_assert_fail): Delete.
16049 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16050 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16051 common/buffer.h.
16052 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16053 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16054 initialize_inferiors): Delete.
16055
2275a1a7
PA
160562011-07-20 Pedro Alves <pedro@codesourcery.com>
16057
16058 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16059 symbol error.
16060
0a5b1e09
PA
160612011-05-31 Pedro Alves <pedro@codesourcery.com>
16062
16063 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16064 assertion.
16065 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16066
6938fd34
YQ
160672011-05-26 Yao Qi <yao@codesourcery.com>
16068
16069 * Makefile.in (thread-db.o): Track dependence to
16070 common/gdb_thread_db.h.
16071 * thread-db.c: include gdb_thread_db.h from right place.
16072
b481f9e0
TT
160732011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16074
16075 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16076 __FILE__ and __LINE__ to internal_error.
16077
98a5dd13
DE
160782011-05-13 Doug Evans <dje@google.com>
16079
16080 * thread-db.c (try_thread_db_load_from_sdir): New function.
16081 (try_thread_db_load_from_dir): New function.
16082 (thread_db_load_search): Handle $sdir, ignore $pdir.
16083 Remove trying of system directories if search of
16084 libthread-db-search-path fails, that is now done via $sdir.
16085
d248b706
KY
160862011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16087
16088 * server.c (handle_query): Add EnableDisableTracepoints to the list
16089 of supported features.
43aaf8b6 16090 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16091 tracepoints.
43aaf8b6
PA
16092 (cmd_qtenable_disable): New.
16093 (cmd_qtstart): Install tracepoints even if disabled.
16094 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16095 receiving a QTEnable or QTDisable packet.
16096 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16097 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16098 tracepoints.
16099 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16100
84e578fb
DE
161012011-05-10 Doug Evans <dje@google.com>
16102
16103 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16104
71f55dd8
DE
161052011-05-04 Doug Evans <dje@google.com>
16106
16107 * linux-low.c (linux_join): Skip process lookup.
16108 * spu-low.c (spu_join): Ditto.
16109 * server.c (join_inferiors_callback): Delete.
16110 (process_serial_event): For 'D' packet (detach) call join_inferior
16111 directly.
16112
4d393d60
JM
161132011-05-04 Joseph Myers <joseph@codesourcery.com>
16114
16115 * README: Don't mention xscale*-*-linux*.
16116 * configure.srv (xscale*-*-linux*): Don't handle target.
16117
b00ad6ff
NF
161182011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16119
16120 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16121 casting pointers.
16122 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16123 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16124 (i386_emit_void_call_2): Likewise.
16125
af96c192
YQ
161262011-04-26 Yao Qi <yao@codesourcery.com>
16127
43aaf8b6
PA
16128 * linux-low.c: Move common macros to linux-ptrace.h.
16129 Include linux-ptrace.h.
af96c192
YQ
16130 * Makefile.in (linux_ptrace_h): New.
16131 (linux-low.o): Depends on linux-ptrace.h.
16132
03f2bd59
JK
161332011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16134
16135 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16136 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16137 (remote_prepare): New function with most of the TCP code from ...
16138 (remote_open): ... here. Detect PORT here unconditionally. Move also
16139 setting transport_is_reliable.
16140 * server.c (run_once): New variable.
16141 (gdbserver_usage): Document it.
16142 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16143 the first run if RUN_ONCE.
16144 * server.h (run_once, remote_prepare): New declarations.
16145
7a9dd1b2
TT
161462011-04-19 Tom Tromey <tromey@redhat.com>
16147
16148 * win32-low.c (handle_load_dll): Remove duplicate "the".
16149
81239425
PM
161502011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16151
16152 Remove support for old Cygwin 1.5 versions.
16153 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16154 function to avoid warning.
16155 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16156 warning.
16157
9e0627f1
PM
161582011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16159
16160 * gdbserver/server.h (Macro _): Define it if not available.
16161
588eebee
MS
161622011-03-14 Michael Snyder <msnyder@vmware.com>
16163
348af9f7 16164 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16165
43f70d4c
JB
161662011-03-10 Joel Brobecker <brobecker@adacore.com>
16167
16168 * Makefile.in (maintainer-clean realclean distclean): Remove
16169 "make ... subdir_do" command.
16170
348af9f7
MS
161712011-03-10 Michael Snyder <msnyder@vmware.com>
16172
16173 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16174
16175 * server.c (handle_v_run): Free alloced buffer on early return.
16176
e637a4f5
YQ
161772011-03-09 Yao Qi <yao@codesourcery.com>
16178
16179 Revert:
16180 2011-03-04 Yao Qi <yao@codesourcery.com>
16181
16182 * Makefile.in: Remove GNU make feature --directory.
16183
16184 2011-03-05 Yao Qi <yao@codesourcery.com>
16185
16186 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16187 (subdir_do): New make target. Copied from gdb/Makefile.
16188 (maintainer-clean, realclean, distclean, clean): Call corresponding
16189 make targets in common/Makefile.
16190
16191 2011-02-11 Yao Qi <yao@codesourcery.com>
16192
16193 * configure.ac: Call AC_PROG_RANLIB.
16194 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16195 * configure: Regenerate.
16196
e6edda56
JK
161972011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16198
16199 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16200
e5141119
JB
162012011-03-06 Yao Qi <yao@codesourcery.com>
16202
16203 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16204
64794aa4
JB
162052011-03-05 Yao Qi <yao@codesourcery.com>
16206
16207 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16208 (subdir_do): New make target. Copied from gdb/Makefile.
16209 (maintainer-clean, realclean, distclean, clean): Call corresponding
16210 make targets in common/Makefile.
16211
7a762829
YQ
162122011-03-04 Yao Qi <yao@codesourcery.com>
16213
16214 * Makefile.in: Remove GNU make feature --directory.
16215
348af9f7
MS
162162011-03-04 Michael Snyder <msnyder@vmware.com>
16217
16218 * server.c (queue_stop_reply): Call xmalloc not malloc.
16219
162202011-03-02 Michael Snyder <msnyder@vmware.com>
16221
16222 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16223
9f72fee2
MS
162242011-02-28 Michael Snyder <msnyder@vmware.com>
16225
588eebee
MS
16226 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16227 (cmd_qtframe): Ditto.
16228 (cmd_qtbuffer): Ditto.
16229 (cmd_bigqtbuffer): Ditto.
16230
9f72fee2
MS
16231 * utils.c (decimal2str): Initialize 'width' to nine, then
16232 don't mess with it.
16233
8040bd49
UW
162342011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16235
16236 * hostio.c (require_data): Free *data, not data.
16237
7e52cbd0
JK
162382011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16239
16240 * hostio.c (require_data): Use free, not xfree.
16241
9130f83e
MS
162422011-02-27 Michael Snyder <msnyder@vmware.com>
16243
4b812f4e
MS
16244 * server.c (handle_query): Discard unused value.
16245
9130f83e
MS
16246 * hostio.c (require_data): Free malloc memory before returning
16247 error.
16248
69d37113
MS
162492011-02-26 Michael Snyder <msnyder@vmware.com>
16250
16251 * linux-low.c (list_threads): Call closedir for dirent.
16252
35f5825a
MS
162532011-02-27 Michael Snyder <msnyder@vmware.com>
16254
2a589cef
MS
16255 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16256 a case statement falls through.
16257
0adea5f7
MS
16258 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16259
35f5825a
MS
16260 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16261 in comparison.
16262
238f1c74
MS
162632011-02-26 Michael Snyder <msnyder@vmware.com>
16264
16265 * utils.c (decimal2str): Eliminate dead code and dead param.
16266 (pulongest): Drop dead param from call to decimal2str.
16267 (plongest): Ditto.
16268
633ff500
JB
162692011-02-24 Joel Brobecker <brobecker@adacore.com>
16270
16271 Revert the following patch (not approved yet):
16272 2011-02-21 Hui Zhu <teawater@gmail.com>
16273 * tracepoint.c (tp_printf): New function.
16274 (eval_agent_expr): Handle gdb_agent_op_printf.
16275
f9c6ff72
HZ
162762011-02-21 Hui Zhu <teawater@gmail.com>
16277
16278 * tracepoint.c (tp_printf): New function.
16279 (eval_agent_expr): Handle gdb_agent_op_printf.
16280
94d5e490
TT
162812011-02-18 Tom Tromey <tromey@redhat.com>
16282
16283 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16284 (tracepoint.o): Likewise.
16285 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16286 (gdb_agent_op_names): Likewise.
16287
c7f96d2b
TT
162882011-02-18 Tom Tromey <tromey@redhat.com>
16289
16290 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16291 gdb_agent_op_rot>: New constants.
16292 (gdb_agent_op_names): Add pick and roll.
16293 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16294 cases.
16295
0feedb2c
JK
162962011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16297
16298 * aclocal.m4: Regenerated with aclocal-1.11.1.
16299
b3b9301e
PA
163002011-02-14 Pedro Alves <pedro@codesourcery.com>
16301
16302 * server.c (handle_qxfer_traceframe_info): New.
16303 (qxfer_packets): Register "traceframe-info".
16304 (handle_query): Report support for qXfer:traceframe-info:read+.
16305 * tracepoint.c (match_blocktype): New.
16306 (traceframe_find_block_type): Rename to ...
16307 (traceframe_walk_blocks): ... this. Add callback filter argument,
16308 and use it.
16309 (traceframe_find_block_type): New, reimplemented on top of
16310 traceframe_walk_blocks.
16311 (build_traceframe_info_xml): New.
16312 (traceframe_read_info): New.
16313 * server.h (traceframe_read_info): Declare.
16314
4f3e6fb7
YQ
163152011-02-11 Yao Qi <yao@codesourcery.com>
16316
16317 * configure.ac: Call AC_PROG_RANLIB.
16318 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16319 * configure: Regenerate.
16320
764880b7
PA
163212011-02-07 Pedro Alves <pedro@codesourcery.com>
16322
16323 * server.c (gdb_read_memory): Change return semantics to allow
16324 partial transfers.
16325 (handle_search_memory_1): Adjust.
16326 (process_serial_event) <'m' packet>: Handle partial transfers.
16327 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16328
1c79eb8a
PA
163292011-01-28 Pedro Alves <pedro@codesourcery.com>
16330
16331 * regcache.c (init_register_cache): Initialize
16332 regcache->register_status.
16333 (free_register_cache): Release regcache->register_status.
16334 (regcache_cpy): Copy register_status.
16335 (registers_to_string): Print 'x's for unavailable registers.
16336 (supply_register): Mark the register's status valid or
16337 unavailable, depending on whether a buffer was passed in or not.
16338 (supply_register_zeroed): New.
16339 (supply_regblock): Mark the registers' status valid or
16340 unavailable, depending on whether a buffer was passed in or not.
16341 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16342 (struct regcache): New `register_status' field.
16343 (supply_register_zeroed): Declare.
16344 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16345 supply_register_zeroed, rather than passing a NULL buffer to
16346 supply_register.
16347 * tracepoint.c (fetch_traceframe_registers): Update comment.
16348
85724a0e
PA
163492011-01-28 Pedro Alves <pedro@codesourcery.com>
16350
16351 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16352 buffer explicit.
16353
d08aafef
PA
163542011-01-25 Pedro Alves <pedro@codesourcery.com>
16355
16356 * server.h (decode_xfer_write): Change prototype.
16357 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16358 and don't extract the annex here.
16359 * server.c (decode_xfer_read): Remove `annex' parameter,
16360 and don't extract the annex here.
16361 (decode_xfer): New.
16362 (struct qxfer): New.
16363 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16364 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16365 (handle_qxfer_statictrace): New functions, abstracted out from
16366 handle_query, and made to use the struct qxfer interface.
16367 (handle_threads_qxfer_proper): Rename to ...
16368 (handle_qxfer_threads_proper): ... this.
16369 (handle_threads_qxfer): Rename to ...
16370 (handle_qxfer_threads): ... this. Adjust.
16371 (qxfer_packets): New array.
16372 (handle_qxfer): New function.
16373 (handle_query): Use handle_qxfer.
16374
493e2a69
MS
163752011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16376
16377 * gdbreplay.c: Shorten lines of >= 80 columns.
16378 * linux-low.c: Ditto.
16379 * linux-ppc-low.c: Ditto.
16380 * linux-s390-low.c: Ditto.
16381 * linux-sparc-low.c: Ditto.
16382 * linux-x86-low.c: Ditto.
16383 * linux-xtensa-low.c: Ditto.
16384 * mem-break.c: Ditto.
16385 * nto-low.c: Ditto.
16386 * regcache.h: Ditto.
16387 * remote-utils.c: Ditto.
16388 * server.c: Ditto.
16389 * server.h: Ditto.
16390 * thread-db.c: Ditto.
16391 * tracepoint.c: Ditto.
16392 * utils.c: Ditto.
16393 * win32-low.h: Ditto.
16394
44944448
JB
163952011-01-05 Joel Brobecker <brobecker@adacore.com>
16396
16397 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16398 update.
16399
71ce852c
JB
164002011-01-01 Joel Brobecker <brobecker@adacore.com>
16401
16402 * server.c (gdbserver_version): Update copyright year in version
16403 output.
16404 * gdbreplay.c (gdbreplay_version): Ditto.
16405
eb826dc6
MF
164062010-12-29 Jie Zhang <jie.zhang@analog.com>
16407
16408 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16409 * linux-bfin-low.c: New file.
16410 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16411 PT_DATA_ADDR for BFIN targets.
16412 * Makefile.in (SFILES): Add linux-bfin-low.c.
16413 (clean): Remove reg-bfin.c.
16414 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16415 * README: Mention supported Blackfin targets.
16416
39ab222a
MF
164172010-12-23 Mike Frysinger <vapier@gentoo.org>
16418
16419 * .gitignore: New file.
16420
a1f2ce7d
MF
164212010-11-16 Mike Frysinger <vapier@gentoo.org>
16422
16423 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16424
f474844c
JZ
164252010-10-22 Jie Zhang <jie@codesourcery.com>
16426
16427 * Makefile.in: Add FLAGS_TO_PASS variable.
16428 (install): Remove dependency of install-only and recursively
16429 invoke make for install-only.
16430
f1048712
DE
164312010-10-04 Doug Evans <dje@google.com>
16432
16433 * Makefile.in (uninstall): Use $(DESTDIR).
16434
b53a1623
PA
164352010-09-24 Pedro Alves <pedro@codesourcery.com>
16436
e6ee044d
PA
16437 PR gdb/11842
16438
b53a1623
PA
16439 * linux-x86-low.c (compat_siginfo_from_siginfo)
16440 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16441 si_code is < 0. Check for si_code == SI_TIMER before checking for
16442 si_code < 0.
16443
fa1bd1e4
JB
164442010-09-13 Joel Brobecker <brobecker@adacore.com>
16445
16446 * lynx-i386-low.c: New file.
16447 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16448
47fac8f8
JB
164492010-09-13 Joel Brobecker <brobecker@adacore.com>
16450
16451 * lynx-low.c (ptrace_request_to_str): Remove handling for
16452 request values that have been removed in LynxOS 5.x.
16453
1adfc54d
JB
164542010-09-13 Joel Brobecker <brobecker@adacore.com>
16455
16456 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16457 <ptrace.h>
16458
c2a66c29
NS
164592010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16460
16461 * configure.ac: Add --enable-inprocess-agent option.
16462 * configure: Rebuilt.
16463
32fcada3
YQ
164642010-09-06 Yao Qi <yao@codesourcery.com>
16465
16466 * linux-low.c (linux_kill): Remove unused variable.
16467 (linux_stabilize_threads): Likewise.
16468 * server.c (start_inferior): Likewise.
16469 (queue_stop_reply_callback): Likewise.
16470 * tracepoint.c (do_action_at_tracepoint): Likewise.
16471
0cccb683
YQ
164722010-09-06 Yao Qi <yao@codesourcery.com>
16473
16474 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16475 on return.
16476
423ec54c
JK
164772010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16478
16479 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16480
12ac6819
PA
164812010-09-06 Pedro Alves <pedro@codesourcery.com>
16482
16483 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16484 "$(IPA_DEPFILES)".
16485
8ed54b31
JB
164862010-09-01 Joel Brobecker <brobecker@adacore.com>
16487
16488 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16489 gdbserver/lynx-ppc-low.c: New files.
16490 * Makefile.in (lynx_low_h): New variable.
16491 (lynx-low.o, lynx-ppc-low.o): New rules.
16492 * configure.ac: On LynxOS, link with -lnetinet.
16493 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16494 * configure: regenerate.
16495
bb0116a4
JB
164962010-09-01 Joel Brobecker <brobecker@adacore.com>
16497
16498 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16499 * configure.ac: Add check for vasprintf and vsnprintf.
16500 * configure, config.in: Regenerate.
16501 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16502
a778ab81 165032010-09-01 Joel Brobecker <brobecker@adacore.com>
16504
16505 * gdbreplay.c: Move include of alloca.h up, next to include of
16506 malloc.h.
16507 * server.h: Add include of malloc.h.
16508 * mem-break.c: Remove include of malloc.h.
16509 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16510
8b034a19 165112010-09-01 Joel Brobecker <brobecker@adacore.com>
16512
16513 * Makefile.in (memmem.o): Build with -Wno-error.
16514
165152010-09-01 Joel Brobecker <brobecker@adacore.com>
16516
16517 * utils.c (xsnprintf): Make non-static.
16518 * server.h: Add xsnprintf declaration.
16519 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16520 replace calls to snprintf by calls to xsnprintf throughout.
16521
165222010-09-01 Joel Brobecker <brobecker@adacore.com>
16523
16524 * configure.ac: Add configure check for alloca.
16525 * configure, config.in: Regenerate.
16526 * server.h: Include alloca.h if it exists.
16527 * gdbreplay.c: Include alloca.h if it exists.
16528
1a981360
PA
165292010-08-28 Pedro Alves <pedro@codesourcery.com>
16530
16531 * linux-low.c (__SIGRTMIN): Define if not already defined.
16532 (linux_create_inferior): Check for __ANDROID__ rather than
16533 __SIGRTMIN.
16534 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16535 are already deferred.
16536 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16537 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16538 stopped and already has a pending signal to report.
16539 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16540 a pending signal to report or is moving out of a jump pad.
16541 (linux_init_signals): Check for __ANDROID__ rather than
16542 __SIGRTMIN.
16543
b4d51a55
PA
165442010-08-28 Pedro Alves <pedro@codesourcery.com>
16545
16546 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16547 debug_threads check. Avoid a linear search when not doing debug
16548 output.
16549
ec48365d
PA
165502010-08-27 Pedro Alves <pedro@codesourcery.com>
16551
16552 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16553 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16554 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16555 (process_event): Change local fd's type to gdb_fildes_t.
16556 (create_file_handler): Adjust prototype.
16557 (delete_file_handler): Adjust prototype.
16558 (handle_file_event): Adjust prototype. Use pfildes.
16559 (create_file_event): Adjsut prototype.
16560 * remote-utils.c (remote_desc, listen_desc): Change type to
16561 gdb_fildes_t.
16562 * server.h: New gdb_fildes_t typedef.
16563 [USE_WIN32API]: Include winsock2.h.
16564 (delete_file_handler, add_file_handler): Adjust prototypes.
16565 (pfildes): Declare.
16566 * utils.c (pfildes): New.
16567
854d88f0
PA
165682010-08-27 Pedro Alves <pedro@codesourcery.com>
16569
16570 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16571 * configure: Regenerate.
16572
0146f85b
PA
165732010-08-27 Pedro Alves <pedro@codesourcery.com>
16574
16575 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16576 (linux_done_accessing_memory): ... this.
16577 (linux_target_ops): Adjust.
16578 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16579 * nto-low.c (nto_target_ops): Adjust comment.
16580 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16581 * spu-low.c (spu_target_ops): Adjust comment.
16582 * target.h (target_ops): Rename unprepare_to_access_memory field
16583 to done_accessing_memory.
16584 (unprepare_to_access_memory): Rename to ...
16585 (done_accessing_memory): ... this.
16586
90d74c30
PA
165872010-08-26 Pedro Alves <pedro@codesourcery.com>
16588
16589 * linux-low.c (linux_prepare_to_access_memory): New.
16590 (linux_unprepare_to_access_memory): New.
16591 (linux_target_ops): Install them.
16592 * server.c (read_memory): Rename to ...
16593 (gdb_read_memory): ... this. Use
16594 prepare_to_access_memory/prepare_to_access_memory.
16595 (write_memory): Rename to ...
16596 (gdb_write_memory): ... this. Use
16597 prepare_to_access_memory/prepare_to_access_memory.
16598 (handle_search_memory_1): Adjust.
16599 (process_serial_event): Adjust.
16600 * target.h (struct target_ops): New fields
16601 prepare_to_access_memory and unprepare_to_access_memory.
16602 (prepare_to_access_memory, unprepare_to_access_memory): New.
16603 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16604 prepare_to_access_memory/prepare_to_access_memory.
16605 * nto-low.c (nto_target_ops): Adjust.
16606 * spu-low.c (spu_target_ops): Adjust.
16607 * win32-low.c (win32_target_ops): Adjust.
16608
fd467969
PA
166092010-08-26 Pedro Alves <pedro@codesourcery.com>
16610
16611 * Makefile.in (WARN_CFLAGS): Get it from configure.
16612 (WERROR_CFLAGS): New.
16613 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16614 * configure.ac: Introduce --enable-werror, which adds -Werror to
16615 the compiler command line. Enabled by default. Disable with
16616 --disable-werror. Add -Wdeclaration-after-statement
16617 Wpointer-arith and -Wformat-nonliteral to warning flags.
16618 * configure: Regenerate.
16619
331e2f5f
PA
166202010-08-26 Pedro Alves <pedro@codesourcery.com>
16621
16622 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16623
e581f2b4
PA
166242010-08-26 Pedro Alves <pedro@codesourcery.com>
16625
16626 * gdbreplay.c (remote_error): New.
16627 (gdbchar): New.
16628 (expect): Use gdbchar. Check for error reading from GDB.
16629 Clarify sync error output.
16630 (play): Check for errors writing to GDB.
16631 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16632 * remote-utils.c (getpkt): Check for errors writing to the remote
16633 descriptor.
16634
3c11dd79
PA
166352010-08-25 Pedro Alves <pedro@codesourcery.com>
16636
16637 * linux-low.c (linux_wait_1): Move non-debugging code out of
16638 `debug_threads' control.
16639
d20a8ad9
PA
166402010-08-25 Pedro Alves <pedro@codesourcery.com>
16641
16642 * linux-low.c (linux_wait_1): Don't set last_status here.
16643 * server.c (push_event, queue_stop_reply_callback): Assert we're
16644 not pushing a TARGET_WAITKIND_IGNORE event.
16645 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16646 (myresume, handle_target_event): Set the thread's last_resume_kind
16647 and last_status from the target returned status.
16648
964e4306
PA
166492010-08-25 Pedro Alves <pedro@codesourcery.com>
16650
16651 PR threads/10729
16652
16653 * linux-x86-low.c (update_debug_registers_callback): New.
16654 (i386_dr_low_set_addr): Use it.
16655 (i386_dr_low_get_addr): New.
16656 (i386_dr_low_set_control): Use update_debug_registers_callback.
16657 (i386_dr_low_get_control): New.
16658 (i386_dr_low_get_status): Adjust.
16659 * linux-low.c (linux_stop_lwp): New.
16660 * linux-low.h (linux_stop_lwp): Declare.
16661
16662 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16663 argument instead of a i386_debug_reg_state.
16664 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16665 a i386_debug_reg_state.
16666 (i386_insert_aligned_watchpoint): Adjust.
16667 (i386_remove_aligned_watchpoint): Adjust.
16668 (i386_low_stopped_data_address): Read the debug registers from the
16669 inferior instead of from the mirrors.
16670 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16671 (i386_dr_low_get_addr): Declare.
16672 (i386_dr_low_get_control): Declare.
16673 (i386_dr_low_get_status): Change prototype.
16674
16675 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16676 (i386_dr_low_get_addr): New.
16677 (i386_dr_low_get_control): New.
16678 (i386_dr_low_get_status): Adjust prototype. Return
16679 dr_status_mirror.
16680 (i386_initial_stuff): Clear dr_status_mirror and
16681 dr_control_mirror.
16682 (i386_get_thread_context): Adjust.
16683 (i386_set_thread_context): Adjust.
16684 (i386_thread_added): Adjust.
16685
5f21a75b
PA
166862010-08-24 Pedro Alves <pedro@codesourcery.com>
16687
16688 * linux-low.h (linux_thread_area): Delete declaration.
16689
3e4c1235
TS
166902010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16691
16692 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16693 after its termination.
16694
1971b033
PA
166952010-08-09 Pedro Alves <pedro@codesourcery.com>
16696
16697 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16698 (gdb_wants_all_stopped): Delete.
16699 (linux_wait_1): Don't call them.
16700 * server.c (handle_v_cont): Tag all threads as want-stopped.
16701 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16702 stopped as "client-wants-stopped".
16703
310444ac
PA
167042010-07-31 Pedro Alves <pedro@codesourcery.com>
16705
16706 * Makefile.in (signals_h): New.
16707 (server_h): Depend on it.
16708 (server.o): Don't depend on $(signals_def).
16709 (signals.o): Depend on $(signals_def).
16710
a19cae16
JK
167112010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16712
16713 * Makefile.in (signals_def): New.
16714 (server_h): Append include/gdb/signals.h and signals_def.
16715 (server.o): Append signals_def.
16716
30d50328
JK
167172010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16718
16719 * server.c (handle_target_event): Use target_signal_to_host for
16720 resume_info.sig initialization.
16721 * target.h (struct thread_resume) <sig>: New comment.
16722
5c3216e2
OS
167232010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16724
c6f46ca0
OS
16725 * server.c (handle_query): strcpy() the returned string from paddress()
16726 instead of sprintf().
5c3216e2
OS
16727 * utils.c (paddress): Return phex_nz().
16728
6bd31874
JB
167292010-07-07 Joel Brobecker <brobecker@adacore.com>
16730
16731 * server.c (handle_v_cont): Call mourn_inferior if process
16732 just exited.
16733 (myresume): Likewise.
16734
0fb4aa4b
PA
167352010-07-01 Pedro Alves <pedro@codesourcery.com>
16736
16737 Static tracepoints, and integration with UST.
16738
16739 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16740 * mem-break.c (uninsert_all_breakpoints)
16741 (reinsert_all_breakpoints): New.
16742 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16743 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16744 (gdb_agent_ust_loaded, helper_thread_id)
16745 (gdb_agent_helper_thread_id): New macros.
16746 (struct ipa_sym_addresses): Add addr_ust_loaded,
16747 addr_helper_thread_id, addr_cmd_buf.
16748 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16749 (in_process_agent_loaded_ust): New.
16750 (write_e_ust_not_loaded): New.
16751 (maybe_write_ipa_ust_not_loaded): New.
16752 (struct collect_static_trace_data_action): New.
16753 (enum tracepoint_type) <static_tracepoint>: New.
16754 (struct tracepoint) <handle>: Mention static tracepoints.
16755 (struct static_tracepoint_ctx): New.
16756 (CMD_BUF_SIZE): New.
16757 (add_tracepoint_action): Handle static tracepoint actions.
16758 (unprobe_marker_at): New.
16759 (clear_installed_tracepoints): Handle static tracepoints.
16760 (cmd_qtdp): Handle static tracepoints.
16761 (probe_marker_at): New.
16762 (cmd_qtstart): Handle static tracepoints.
16763 (response_tracepoint): Handle static tracepoints.
16764 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16765 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16766 (get_context_regcache): Handle static tracepoints.
16767 (do_action_at_tracepoint): Handle static tracepoint actions.
16768 (traceframe_find_block_type): Handle static trace data blocks.
16769 (traceframe_read_sdata): New.
16770 (download_tracepoints): Download static tracepoint actions.
16771 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16772 (GDB_PROBE_NAME): New.
16773 (ust_ops): New.
16774 (GET_UST_SYM): New.
16775 (USTF): New.
16776 (dlsym_ust): New.
16777 (ust_marker_to_static_tracepoint): New.
16778 (gdb_probe): New.
16779 (collect_ust_data_at_tracepoint): New.
16780 (gdb_ust_probe): New.
16781 (UNIX_PATH_MAX, SOCK_DIR): New.
16782 (gdb_ust_connect_sync_socket): New.
16783 (resume_thread, stop_thread): New.
16784 (run_inferior_command): New.
16785 (init_named_socket): New.
16786 (gdb_ust_socket_init): New.
16787 (cstr_to_hexstr): New.
16788 (next_st): New.
16789 (first_marker, next_marker): New.
16790 (response_ust_marker): New.
16791 (cmd_qtfstm, cmd_qtsstm): New.
16792 (unprobe_marker_at, probe_marker_at): New.
16793 (cmd_qtstmat, gdb_ust_thread): New.
16794 (gdb_ust_init): New.
16795 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16796 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16797 (ST_REGENTRY): New.
16798 (x86_64_st_collect_regmap): New.
16799 (X86_64_NUM_ST_COLLECT_GREGS): New.
16800 (AMD64_RIP_REGNUM): New.
16801 (supply_static_tracepoint_registers): New.
16802 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16803 (ST_REGENTRY): New.
16804 (i386_st_collect_regmap): New.
16805 (i386_NUM_ST_COLLECT_GREGS): New.
16806 (supply_static_tracepoint_registers): New.
16807 * server.c (handle_query): Handle qXfer:statictrace:read.
16808 <qSupported>: Report support for StaticTracepoints, and
16809 qXfer:statictrace:read features.
16810 * server.h (traceframe_read_sdata)
16811 (supply_static_tracepoint_registers): Declare.
16812 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16813 (unpack_varlen_hex): Include in IPA build.
16814 * Makefile.in (ustlibs, ustinc): New.
16815 (IPA_OBJS): Add remote-utils-ipa.o.
16816 ($(IPA_LIB)): Link -ldl and -lpthread.
16817 (UST_CFLAGS): New.
16818 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16819 * config.in, configure: Regenerate.
16820
9e4344e5
PA
168212010-06-20 Ian Lance Taylor <iant@google.com>
16822 Pedro Alves <pedro@codesourcery.com>
16823
16824 * linux-x86-low.c (always_true): Delete.
16825 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16826 trying to fool the compiler with always_true.
16827
c6beb2cb
PA
168282010-06-20 Pedro Alves <pedro@codesourcery.com>
16829
16830 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16831 conditions in gdbserver.
16832
d2ed6730
UW
168332010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16834
16835 * spu-low.c (spu_read_memory): Wrap around local store limit.
16836 (spu_write_memory): Likewise.
16837
4e29fb54
PA
168382010-06-15 Pedro Alves <pedro@codesourcery.com>
16839
16840 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16841 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16842 LONGEST uses.
16843 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16844 uses.
16845 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16846 uses with LONGEST uses.
16847
6a271cae
PA
168482010-06-14 Stan Shebs <stan@codesourcery.com>
16849 Pedro Alves <pedro@codesourcery.com>
16850
16851 Bytecode compiler.
16852
16853 * linux-x86-low.c: Include limits.h.
16854 (add_insns): New.
16855 (always_true): New.
16856 (EMIT_ASM): New.
16857 (EMIT_ASM32): New.
16858 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16859 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16860 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16861 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16862 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16863 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16864 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16865 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16866 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16867 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16868 (amd64_emit_void_call_2): New.
16869 (amd64_emit_ops): New.
16870 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16871 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16872 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16873 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16874 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16875 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16876 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16877 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16878 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16879 (i386_emit_stack_adjust, i386_emit_int_call_1)
16880 (i386_emit_void_call_2): New.
16881 (i386_emit_ops): New.
16882 (x86_emit_ops): New.
16883 (the_low_target): Install x86_emit_ops.
16884 * server.h (struct emit_ops): New.
16885 (get_raw_reg_func_addr): Declare.
16886 (current_insn_ptr, emit_error): Declare.
16887 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16888 (set_trace_state_variable_value): New defines.
16889 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16890 addr_get_trace_state_variable_value and
16891 addr_set_trace_state_variable_value.
16892 (symbol_list): New fields for get_raw_reg,
16893 get_trace_state_variable_value and set_trace_state_variable_value.
16894 (condfn): New typedef.
16895 (struct tracepoint): New field `compiled_cond'.
16896 (do_action_at_tracepoint): Clear compiled_cond.
16897 (get_trace_state_variable_value, set_trace_state_variable_value):
16898 Export in the IPA.
16899 (condition_true_at_tracepoint): If there's a compiled condition,
16900 run that.
16901 (current_insn_ptr, emit_error): New globals.
16902 (struct bytecode_address): New.
16903 (get_raw_reg_func_addr): New.
16904 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16905 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16906 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16907 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16908 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16909 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16910 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16911 (compile_tracepoint_condition, compile_bytecodes): New.
16912 * target.h (emit_ops): Forward declare.
16913 (struct target_ops): New field emit_ops.
16914 (target_emit_ops): New.
16915 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16916 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16917 * linux-low.c (linux_emit_ops): New.
16918 (linux_target_ops): Install it.
16919 * linux-low.h (struct linux_target_ops): New field emit_ops.
16920
92b72907
UW
169212010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16922
16923 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16924 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16925
fa593d66
PA
169262010-06-01 Pedro Alves <pedro@codesourcery.com>
16927 Stan Shebs <stan@codesourcery.com>
16928
16929 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16930 (all): Depend on $(extra_libraries).
16931 (install-only): Install the IPA.
16932 (IPA_OBJS, IPA_LIB): New.
16933 (clean): Remove the IPA lib.
16934 (IPAGENT_CFLAGS): New.
16935 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
16936 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
16937 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
16938 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
16939 * configure.ac: Check for atomic builtins support in the compiler.
16940 (IPA_DEPFILES, extra_libraries): Define.
16941 * configure.srv (ipa_obj): Add description.
16942 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
16943 (i[34567]86-*-linux*): Set ipa_obj.
16944 (x86_64-*-linux*): Set ipa_obj.
16945 * linux-low.c (stabilizing_threads): New.
16946 (supports_fast_tracepoints): New.
16947 (linux_detach): Stabilize threads before detaching.
16948 (handle_tracepoints): Handle internal tracing breakpoints. Assert
16949 the lwp is either not stabilizing, or is moving out of a jump pad.
16950 (linux_fast_tracepoint_collecting): New.
16951 (maybe_move_out_of_jump_pad): New.
16952 (enqueue_one_deferred_signal): New.
16953 (dequeue_one_deferred_signal): New.
16954 (linux_wait_for_event_1): If moving out of a jump pad, defer
16955 pending signals to later.
16956 (linux_stabilize_threads): New.
16957 (linux_wait_1): Check if threads need moving out of jump pads, and
16958 do it if so.
16959 (stuck_in_jump_pad_callback): New.
16960 (move_out_of_jump_pad_callback): New.
16961 (lwp_running): New.
16962 (linux_resume_one_lwp): Handle moving out of jump pads.
16963 (linux_set_resume_request): Dequeue deferred signals.
16964 (need_step_over_p): Also step over fast tracepoint jumps.
16965 (start_step_over): Also uninsert fast tracepoint jumps.
16966 (finish_step_over): Also reinsert fast tracepoint jumps.
16967 (linux_install_fast_tracepoint_jump): New.
16968 (linux_target_ops): Install linux_stabilize_threads and
16969 linux_install_fast_tracepoint_jump_pad.
16970 * linux-low.h (linux_target_ops) <get_thread_area,
16971 install_fast_tracepoint_jump_pad>: New fields.
16972 (struct lwp_info) <collecting_fast_tracepoint,
16973 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
16974 (linux_get_thread_area): Declare.
16975 * linux-x86-low.c (jump_insn): New.
16976 (x86_get_thread_area): New.
16977 (append_insns): New.
16978 (push_opcode): New.
16979 (amd64_install_fast_tracepoint_jump_pad): New.
16980 (i386_install_fast_tracepoint_jump_pad): New.
16981 (x86_install_fast_tracepoint_jump_pad): New.
16982 (the_low_target): Install x86_get_thread_area and
16983 x86_install_fast_tracepoint_jump_pad.
16984 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
16985 (struct fast_tracepoint_jump): New.
16986 (fast_tracepoint_jump_insn): New.
16987 (fast_tracepoint_jump_shadow): New.
16988 (find_fast_tracepoint_jump_at): New.
16989 (fast_tracepoint_jump_here): New.
16990 (delete_fast_tracepoint_jump): New.
16991 (set_fast_tracepoint_jump): New.
16992 (uninsert_fast_tracepoint_jumps_at): New.
16993 (reinsert_fast_tracepoint_jumps_at): New.
16994 (set_breakpoint_at): Use write_inferior_memory.
16995 (uninsert_raw_breakpoint): Use write_inferior_memory.
16996 (check_mem_read): Mask out fast tracepoint jumps.
16997 (check_mem_write): Mask out fast tracepoint jumps.
16998 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
16999 (set_fast_tracepoint_jump): Declare.
17000 (delete_fast_tracepoint_jump)
17001 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17002 (reinsert_fast_tracepoint_jumps_at): Declare.
17003 * regcache.c: Don't compile many functions when building the
17004 in-process agent library.
17005 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17006 the register buffer in the heap.
17007 (free_register_cache): If the register buffer isn't owned by the
17008 regcache, don't free it.
17009 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17010 pre-existing register caches.
17011 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17012 type.
17013 (convert_ascii_to_int): : Constify `from' parameter type.
17014 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17015 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17016 the needed buffer in-place.
17017 (relocate_instruction): New.
17018 * server.c (handle_query) <qSymbols>: If the target supports
17019 tracepoints, give it a chance of looking up symbols. Report
17020 support for fast tracepoints.
17021 (handle_status): Stabilize threads.
17022 (process_serial_event): Adjust.
17023 * server.h (struct fast_tracepoint_jump): Forward declare.
17024 (struct process_info) <fast_tracepoint_jumps>: New field.
17025 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17026 (decode_X_packet, decode_M_packet): Adjust.
17027 (relocate_instruction): Declare.
17028 (in_process_agent_loaded): Declare.
17029 (tracepoint_look_up_symbols): Declare.
17030 (struct fast_tpoint_collect_status): Declare.
17031 (fast_tracepoint_collecting): Declare.
17032 (force_unlock_trace_buffer): Declare.
17033 (handle_tracepoint_bkpts): Declare.
17034 (initialize_low_tracepoint)
17035 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17036 * target.h (struct target_ops) <stabilize_threads,
17037 install_fast_tracepoint_jump_pad>: New fields.
17038 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17039 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17040 [HAVE_STDINT_H]: Include stdint.h.
17041 (trace_debug_1): Rename to ...
17042 (trace_vdebug): ... this.
17043 (trace_debug): Rename to ...
17044 (trace_debug_1): ... this. Add `level' parameter.
17045 (trace_debug): New.
17046 (ATTR_USED, ATTR_NOINLINE): New.
17047 (IP_AGENT_EXPORT): New.
17048 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17049 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17050 (about_to_request_buffer_space, trace_buffer_is_full)
17051 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17052 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17053 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17054 (traceframe_write_count, traceframes_created)
17055 (trace_state_variables)
17056 New renaming defines.
17057 (struct ipa_sym_addresses): New.
17058 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17059 (symbol_list): New.
17060 (ipa_sym_addrs): New.
17061 (all_tracepoint_symbols_looked_up): New.
17062 (in_process_agent_loaded): New.
17063 (write_e_ipa_not_loaded): New.
17064 (maybe_write_ipa_not_loaded): New.
17065 (tracepoint_look_up_symbols): New.
17066 (debug_threads) [IN_PROCESS_AGENT]: New.
17067 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17068 (UNKNOWN_SIDE_EFFECTS): New.
17069 (stop_tracing): New.
17070 (flush_trace_buffer): New.
17071 (stop_tracing_bkpt): New.
17072 (flush_trace_buffer_bkpt): New.
17073 (read_inferior_integer): New.
17074 (read_inferior_uinteger): New.
17075 (read_inferior_data_pointer): New.
17076 (write_inferior_data_pointer): New.
17077 (write_inferior_integer): New.
17078 (write_inferior_uinteger): New.
17079 (struct collect_static_trace_data_action): Delete.
17080 (enum tracepoint_type): New.
17081 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17082 <actions_str, step_actions, step_actions_str>: Only include in
17083 GDBserver.
fa593d66
PA
17084 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17085 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17086 (tracepoints): Use IP_AGENT_EXPORT.
17087 (last_tracepoint): Don't include in the IPA.
17088 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17089 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17090 (alloced_trace_state_variables): New.
17091 (trace_state_variables): Use IP_AGENT_EXPORT.
17092 (traceframe_t): Delete unused variable.
17093 (circular_trace_buffer): Don't include in the IPA.
17094 (trace_buffer_start): Delete.
17095 (struct trace_buffer_control): New.
17096 (trace_buffer_free): Delete.
17097 (struct ipa_trace_buffer_control): New.
17098 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17099 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17100 New.
17101 (trace_buffer_ctrl): New.
17102 (TRACE_BUFFER_CTRL_CURR): New.
17103 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17104 Reimplement as macros.
17105 (trace_buffer_wrap): Delete.
17106 (traceframe_write_count, traceframe_read_count)
17107 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17108 (struct tracepoint_hit_ctx) <type>: New field.
17109 (struct fast_tracepoint_ctx): New.
17110 (memory_barrier): New.
17111 (cmpxchg): New.
17112 (record_tracepoint_error): Update atomically in the IPA.
17113 (clear_inferior_trace_buffer): New.
17114 (about_to_request_buffer_space): New.
17115 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17116 updating the same buffer.
17117 (add_tracepoint): Default the tracepoint's type to trap
17118 tracepoint, and orig_size to -1.
17119 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17120 internal variables.
17121 (create_trace_state_variable): New parameter `gdb'. Handle it.
17122 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17123 (cmd_qtdp): Handle fast tracepoints.
17124 (cmd_qtdv): Adjust.
17125 (max_jump_pad_size): New.
17126 (gdb_jump_pad_head): New.
17127 (get_jump_space_head): New.
17128 (claim_jump_space): New.
17129 (sort_tracepoints): New.
17130 (MAX_JUMP_SIZE): New.
17131 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17132 IPA.
17133 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17134 support. Upload fast traceframes, and delete internal IPA
17135 breakpoints.
17136 (stop_tracing_handler): New.
17137 (flush_trace_buffer_handler): New.
17138 (cmd_qtstop): Upload fast tracepoints.
17139 (response_tracepoint): Handle fast tracepoints.
17140 (tracepoint_finished_step): Upload fast traceframes. Set the
17141 tracepoint hit context's tracepoint type.
17142 (handle_tracepoint_bkpts): New.
17143 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17144 type. Add comment about fast tracepoints.
17145 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17146 non-existing action_str field.
17147 (get_context_regcache): Handle fast tracepoints.
17148 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17149 to the regcache.
17150 (fast_tracepoint_from_jump_pad_address): New.
17151 (fast_tracepoint_from_ipa_tpoint_address): New.
17152 (collecting_t): New.
17153 (force_unlock_trace_buffer): New.
17154 (fast_tracepoint_collecting): New.
17155 (collecting): New.
17156 (gdb_collect): New.
17157 (write_inferior_data_ptr): New.
17158 (target_tp_heap): New.
17159 (target_malloc): New.
17160 (download_agent_expr): New.
17161 (UALIGN): New.
17162 (download_tracepoints): New.
17163 (download_trace_state_variables): New.
17164 (upload_fast_traceframes): New.
17165 (IPA_FIRST_TRACEFRAME): New.
17166 (IPA_NEXT_TRACEFRAME_1): New.
17167 (IPA_NEXT_TRACEFRAME): New.
17168 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17169 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17170 (gdb_jump_pad_buffer_end): New.
17171 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17172 (initialize_tracepoint): Adjust.
17173 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17174 buffer. Initialize the low module.
17175 * utils.c (PREFIX, TOOLNAME): New.
17176 (malloc_failure): Use PREFIX.
17177 (error): In the IPA, an error causes an exit.
17178 (fatal, warning): Use PREFIX.
17179 (internal_error): Use TOOLNAME.
17180 (NUMCELLS): Increase to 10.
17181 * configure, config.in: Regenerate.
17182
d149dd1d
PA
171832010-06-01 Pedro Alves <pedro@codesourcery.com>
17184
17185 * server.c (handle_query) <qSupported>: Do two passes over the
17186 qSupported string to avoid nesting strtok.
17187
f6528abd
JK
171882010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17189
17190 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17191 (CDEPS): New.
17192 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17193 -Wl,--dynamic-list.
17194 * configure: Regenerate.
17195 * proc-service.list: New.
17196
ca2a87a0
JK
171972010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17198
17199 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17200 New comment.
17201
363a6e9f
OS
172022010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17203
17204 * gdbreplay.c (remote_open): Check error return from socket() call by
17205 its equality to -1 not by it being negative.
17206 * remote-utils.c (remote_open): Likewise.
17207
d23b6cb1
PA
172082010-05-23 Pedro Alves <pedro@codesourcery.com>
17209
17210 * config.h: Regenerate.
17211
28d3cf85
MK
172122010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17213
17214 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17215 doesn't provide PTRACE_GET_THREAD_AREA.
17216
fea36a59
MK
172172010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17218
17219 * linux-m68k-low.c: Include <asm/ptrace.h>
17220 (ps_get_thread_area): Implement.
17221
24b066ba
DE
172222010-05-03 Doug Evans <dje@google.com>
17223
17224 * event-loop.c (struct callback_event): New struct.
17225 (callback_list): New global.
17226 (append_callback_event, delete_callback_event): New functions.
17227 (process_callback): New function.
17228 (start_event_loop): Call it.
17229 * remote-utils.c (NOT_SCHEDULED): Define.
17230 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17231 moved out of readchar.
17232 (readchar): Rewrite. Call reschedule before returning.
17233 (reset_readchar): New function.
17234 (remote_close): Call it.
17235 (process_remaining, reschedule): New functions.
17236 * server.h (callback_handler_func): New typedef.
17237 (append_callback_event, delete_callback_event): Declare.
17238
9836d6ea
PA
172392010-05-03 Pedro Alves <pedro@codesourcery.com>
17240
17241 * proc-service.c (ps_pglobal_lookup): Use
17242 thread_db_look_up_one_symbol.
17243 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17244 parameter. Use it instead of all_symbols_looked_up.
17245 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17246 field.
17247 (all_symbols_looked_up): Don't declare.
17248 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17249 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17250 field.
17251 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17252 Set all_symbols_looked_up here.
17253 (thread_db_look_up_one_symbol): New.
17254 (thread_db_get_tls_address): Adjust.
17255 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17256 thread_db object on the heap, and tentatively set it in the
17257 process structure.
17258 (thread_db_init): Don't set all_symbols_looked_up here.
17259 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17260
7984d532
PA
172612010-05-03 Pedro Alves <pedro@codesourcery.com>
17262
17263 * linux-low.c (linux_kill, linux_detach): Adjust.
17264 (status_pending_p_callback): Remove redundant statement. Check
17265 for !TARGET_WAITIKIND_IGNORE, instead of
17266 TARGET_WAITKIND_STOPPED.
17267 (handle_tracepoints): Make sure LWP is locked. Adjust.
17268 (linux_wait_for_event_1): Adjust.
17269 (linux_cancel_breakpoints): New.
17270 (unsuspend_one_lwp): New.
17271 (unsuspend_all_lwps): New.
17272 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17273 (send_sigstop_callback): Change return type to int, add new
17274 `except' parameter and handle it.
17275 (suspend_and_send_sigstop_callback): New.
17276 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17277 pass them down. If SUSPEND, also increment the lwp's suspend
17278 count.
17279 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17280 (need_step_over_p): Don't consider suspended LWPs.
17281 (start_step_over): Adjust.
17282 (proceed_one_lwp): Change return type to int, add new `except'
17283 parameter and handle it.
17284 (unsuspend_and_proceed_one_lwp): New.
17285 (proceed_all_lwps): Use find_inferior instead of
17286 for_each_inferior.
17287 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17288 also decrement the suspend count of LWPs. Pass `except' down,
17289 instead of hacking its suspend count.
17290 (linux_pause_all): Add `freeze' parameter. Adjust.
17291 (linux_unpause_all): New.
17292 (linux_target_ops): Install linux_unpause_all.
17293 * server.c (handle_status): Adjust.
17294 * target.h (struct target_ops): New fields `unpause_all' and
17295 `cancel_breakpoints'. Add new parameter to `pause_all'.
17296 (pause_all): Add new `freeze' parameter.
17297 (unpause_all): New.
17298 (cancel_breakpoints): New.
17299 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17300 cancel breakpoints.
17301 (cmd_qtstart): Pause threads.
17302 (stop_tracing): Pause threads, and cancel breakpoints.
17303 * win32-low.c (win32_target_ops): Adjust.
17304
e471f25b
PA
173052010-05-03 Pedro Alves <pedro@codesourcery.com>
17306
17307 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17308 the inferior right away from here...
17309 (linux_wait_1): ... to here, and adjust to check the thread's
17310 last_resume_kind instead of the lwp's step or stop_expected flags.
17311
1915ef4f
PA
173122010-05-02 Pedro Alves <pedro@codesourcery.com>
17313
17314 * README: Use consistent `GDB' and `GDBserver' spellings.
17315
f9e39928
PA
173162010-05-02 Pedro Alves <pedro@codesourcery.com>
17317
17318 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17319 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17320 (linux_detach_one_lwp): Assume the lwp is stopped.
17321 (any_thread_of): Delete.
17322 (linux_detach): Stop all lwps here. Don't blindly delete all
17323 breakpoints.
17324 (delete_lwp_callback): New.
17325 (linux_mourn): Delete all lwps of the process that is gone.
17326 (linux_wait_1): Don't delete the last lwp of the process here.
17327 * mem-break.h (mark_breakpoints_out): Declare.
17328 * mem-break.c (mark_breakpoints_out): New.
17329 (free_all_breakpoints): Use it.
17330 * server.c (handle_target_event): If the process is gone, mark
17331 breakpoints out.
17332 * thread-db.c (struct thread_db) <create_bp>: New field.
17333 (thread_db_enable_reporting): Fix prototype. Store a thread event
17334 breakpoint reference in the thread_db struct.
17335 (thread_db_load_search): Clear the thread_db object.
17336 (try_thread_db_load_1): Ditto.
17337 (switch_to_process): New.
17338 (disable_thread_event_reporting): Use it.
17339 (remove_thread_event_breakpoints): New.
17340 (thread_db_detach, thread_db_mourn): Use it.
17341
1e7fc18c
PA
173422010-05-01 Pedro Alves <pedro@codesourcery.com>
17343
17344 * linux-low.c (linux_enable_event_reporting): New.
17345 (linux_wait_for_event_1, handle_extended_wait): Use it.
17346
02fc4de7
PA
173472010-04-30 Pedro Alves <pedro@codesourcery.com>
17348
17349 * linux-low.c (linux_kill_one_lwp, linux_kill)
17350 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17351 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17352 SIGSTOP even if the LWP is stopped.
17353 (send_sigstop_callback): New.
17354 (stop_all_lwps): Use send_sigstop_callback instead.
17355 (linux_resume_one_thread): Adjust.
17356 (proceed_one_lwp): Still proceed an LWP that the client has
17357 requested to stop, if we haven't reported it as stopped yet. Make
17358 sure that LWPs the client want stopped, have a pending SIGSTOP.
17359
bc3b5632
DE
173602010-04-26 Doug Evans <dje@google.com>
17361
ae1ada35
DE
17362 * server.c (handle_general_set): Make static.
17363
bc3b5632
DE
17364 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17365 Print received char after testing for error/eof instead of before.
17366 (input_interrupt): Tweak comment.
17367
65730243
DE
173682010-04-23 Doug Evans <dje@google.com>
17369
17370 * server.c (start_inferior): Print inferior argv if --debug.
17371
a8ae7dc0
AR
173722010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17373
17374 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17375 * nto-x86-low.c: Include server.h
17376
1c07cc19
PM
173772010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17378
17379 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17380 be consistent with other sources of this directory.
17381 (init_registers_amd64): Correct name of source file of this function
17382 in the comment.
17383
e0a61e09
PM
173842010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17385
17386 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17387 64-bit executables.
17388
54709339
PM
173892010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17390
17391 * win32-i386-low.c: Add 64-bit support.
17392 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17393 (init_registers_amd64): Declare.
17394 (mappings): Add 64-bit version of array.
17395 (init_windows_x86): New function.
17396 (the_low_target): Change init_arch field to init_windows_x86.
17397
e8f0053d
PM
173982010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17399
17400 * win32-low.c: Adapt to support also 64-bit architecture.
17401 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17402 (get_image_name): Use SIZE_T type for local variable `done'.
17403 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17404 (toolhelp_get_dll_name): Idem.
17405 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17406 Use uintptr_t typecast to avoid warning.
17407 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17408 (handle_exception): Use phex_nz to avoid warning.
17409 (win32_wait): Remove unused local variable `process'.
17410
c481e77e
PM
174112010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17412
17413 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17414 `amd64-avx.o'.
17415
12ea4b69
PM
174162010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17417
17418 * configure.ac: Use `ws2_32' library for srv_mingw.
17419 * configure: Regenerate.
17420 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17421 * remote-utils.c: Likewise.
17422
f6d1620c
L
174232010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17424
17425 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17426 if __x86_64__ is defined.
17427
8e642873
PM
174282010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17429
17430 * configure: Regenerate.
17431
711e434b
PM
174322010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17433
17434 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17435 * target.h (target_ops): New get_tib_address field.
17436 * win32-low.h (win32_thread_info): Add thread_local_base field.
17437 * win32-low.c (child_add_thread): Add tlb argument.
17438 Set thread_local_base field to TLB.
17439 (get_child_debug_event): Adapt to child_add_thread change.
17440 (win32_get_tib_address): New function.
17441 (win32_target_ops): Set get_tib_address field to
17442 win32_get_tib_address.
17443 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17444
505106cd
PA
174452010-04-12 Pedro Alves <pedro@codesourcery.com>
17446
505106cd
PA
17447 * linux-low.c (linux_mourn): Also remove the process.
17448 * server.c (handle_target_event): Don't remove the process here.
17449 * nto-low.c (nto_mourn): New.
17450 (nto_target_ops): Install it.
17451 * spu-low.c (spu_mourn): New.
17452 (spu_target_ops): Install it.
17453 * win32-low.c (win32_mourn): New.
17454 (win32_target_ops): Install it.
17455
e8470a06
PA
174562010-04-12 Pedro Alves <pedro@codesourcery.com>
17457
17458 * server.h (buffer_xml_printf): Remove redundant `;'.
17459
45ba0d02
PA
174602010-04-12 Pedro Alves <pedro@codesourcery.com>
17461
17462 * regcache.c (set_register_cache): Invalidate regcaches before
17463 changing the register cache layout.
17464 (regcache_invalidate_one): Allow a NULL regcache.
17465 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17466 regcaches before changing the register cache layout or the target
17467 regsets.
17468
59e04013
L
174692010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17470
17471 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17472 variable warning on Linux/x86-64.
17473
8336d594
PA
174742010-04-11 Pedro Alves <pedro@codesourcery.com>
17475
17476 GDBserver disconnected tracing support.
17477
17478 * linux-low.c (linux_remove_process): Delete.
17479 (add_lwp): Don't set last_resume_kind here.
17480 (linux_kill): Use `mourn'.
17481 (linux_detach): Use `thread_db_detach', and `mourn'.
17482 (linux_mourn): New.
17483 (linux_attach_lwp_1): Adjust comment.
17484 (linux_attach): last_resume_kind moved the thread_info; adjust.
17485 (status_pending_p_callback): Adjust.
17486 (linux_wait_for_event_1): Adjust.
17487 (count_events_callback, select_singlestep_lwp_callback)
17488 (select_event_lwp_callback, cancel_breakpoints_callback)
17489 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17490 (proceed_one_lwp): Adjust.
17491 (linux_async): Add debug output.
17492 (linux_thread_stopped): New.
17493 (linux_pause_all): New.
17494 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17495 linux_pause_all.
17496 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17497 (thread_db_free): Delete declaration.
17498 (thread_db_detach, thread_db_mourn): Declare.
17499 * thread-db.c (thread_db_init): Use thread_db_mourn.
17500 (thread_db_free): Delete, split in two.
17501 (disable_thread_event_reporting): New.
17502 (thread_db_detach): New.
17503 (thread_db_mourn): New.
17504
17505 * server.h (struct thread_info) <last_resume_kind>: New field.
17506 <attached>: Add comment.
17507 <gdb_detached>: New field.
17508 (handler_func): Change return type to int.
17509 (handle_serial_event, handle_target_event): Ditto.
17510 (gdb_connected): Declare.
17511 (tracing): Delete.
17512 (disconnected_tracing): Declare.
17513 (stop_tracing): Declare.
17514
17515 * server.c (handle_query) <qSupported>: Report support for
17516 disconnected tracing.
17517 (queue_stop_reply_callback): Account for running threads.
17518 (gdb_wants_thread_stopped): New.
17519 (gdb_wants_all_threads_stopped): New.
17520 (gdb_reattached_process): New.
17521 (handle_status): Clear the `gdb_detached' flag of all processes.
17522 In all-stop, stop all threads.
17523 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17524 (process_serial_event): If the remote connection breaks, or if an
17525 exit was forced with "monitor exit", force an event loop exit.
17526 Handle disconnected tracing on detach.
17527 (handle_serial_event): Adjust.
17528 (handle_target_event): If GDB isn't connected, forward events back
17529 to the inferior, unless the last process exited, in which case,
17530 exit gdbserver. Adjust interface.
17531
17532 * remote-utils.c (remote_open): Don't block in accept. Instead
17533 register an event loop source on the listen socket file
17534 descriptor. Refactor bits into ...
17535 (listen_desc): ... this new global.
17536 (gdb_connected): ... this new function.
17537 (enable_async_notification): ... this new function.
17538 (handle_accept_event): ... this new function.
17539 (remote_close): Clear remote_desc.
17540
17541 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17542
17543 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17544 New fields.
17545 (mourn_inferior): Define.
17546 (target_process_qsupported): Avoid the dangling else problem.
17547 (thread_stopped): Define.
17548 (pause_all): Define.
17549 (target_waitstatus_to_string): Declare.
17550 * target.c (target_waitstatus_to_string): New.
17551
17552 * tracepoint.c (tracing): Make extern.
17553 (disconnected_tracing): New.
17554 (stop_tracing): Make extern. Handle tracing stops due to GDB
17555 disconnecting.
17556 (cmd_qtdisconnected): New.
17557 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17558 (handle_tracepoint_general_set): Handle QTDisconnected.
17559
17560 * event-loop.c (event_handler_func): Change return type to int.
17561 (process_event): Bail out if the event handler wants the event
17562 loop to stop.
17563 (handle_file_event): Ditto.
17564 (start_event_loop): Bail out if the event handler wants the event
17565 loop to stop.
17566
17567 * nto-low.c (nto_target_ops): Adjust.
17568 * spu-low.c (spu_wait): Don't remove the process here.
17569 (spu_target_ops): Adjust.
17570 * win32-low.c (win32_wait): Don't remove the process here.
17571 (win32_target_ops): Adjust.
17572
5d267c4c
PA
175732010-04-11 Pedro Alves <pedro@codesourcery.com>
17574
17575 * regcache.c (realloc_register_cache): Invalidate inferior's
17576 regcache before recreating it.
17577
623ccd72
PA
175782010-04-09 Pedro Alves <pedro@codesourcery.com>
17579
17580 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17581
219f2f23
PA
175822010-04-09 Stan Shebs <stan@codesourcery.com>
17583 Pedro Alves <pedro@codesourcery.com>
17584
17585 * server.h (LONGEST): New.
17586 (struct thread_info) <while_stepping>: New field.
17587 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17588 Declare.
17589 (initialize_tracepoint, handle_tracepoint_general_set)
17590 (handle_tracepoint_query, tracepoint_finished_step)
17591 (tracepoint_was_hit, release_while_stepping_state_list):
17592 (current_traceframe): Declare.
17593 * server.c (handle_general_set): Handle tracepoint packets.
17594 (read_memory): New.
17595 (write_memory): New.
17596 (handle_search_memory_1): Use read_memory.
17597 (handle_query): Report support for conditional tracepoints, trace
17598 state variables, and tracepoint sources. Handle tracepoint
17599 queries.
17600 (main): Initialize the tracepoints module.
17601 (process_serial_event): Handle traceframe reads/writes.
17602
17603 * linux-low.c (handle_tracepoints): New.
17604 (linux_wait_1): Call it.
17605 (linux_resume_one_lwp): Handle while-stepping.
17606 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17607 (linux_target_ops): Install them.
17608 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17609 New field.
17610 * linux-x86-low.c (x86_supports_tracepoints): New.
17611 (the_low_target). Install it.
17612
17613 * mem-break.h (delete_breakpoint): Declare.
17614 * mem-break.c (delete_breakpoint): Make external.
17615
17616 * target.h (struct target_ops): Add `supports_tracepoints',
17617 `read_pc', and `write_pc' fields.
17618 (target_supports_tracepoints): Define.
17619 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17620 (phex_nz): New.
17621
17622 * regcache.h (struct regcache) <registers_owned>: New field.
17623 (init_register_cache, regcache_cpy): Declare.
17624 (regcache_read_pc, regcache_write_pc): Declare.
17625 (register_cache_size): Declare.
17626 (supply_regblock): Declare.
17627 * regcache.c (init_register_cache): New.
17628 (new_register_cache): Use it.
17629 (regcache_cpy): New.
17630 (register_cache_size): New.
17631 (supply_regblock): New.
17632 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17633
219f2f23
PA
17634 * tracepoint.c: New.
17635
17636 * Makefile.in (OBS): Add tracepoint.o.
17637 (tracepoint.o): New rule.
17638
3a13a53b
L
176392010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17640
17641 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17642 (i386-mmx.o): New.
17643 (i386-mmx.c): Likewise.
17644 (i386-mmx-linux.o): Likewise.
17645 (i386-mmx-linux.c): Likewise.
17646
17647 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17648 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17649 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17650 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17651
17652 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17653 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17654 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17655
1570b33e
L
176562010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17657
17658 * Makefile.in (clean): Updated.
17659 (i386-avx.o): New.
17660 (i386-avx.c): Likewise.
17661 (i386-avx-linux.o): Likewise.
17662 (i386-avx-linux.c): Likewise.
17663 (amd64-avx.o): Likewise.
17664 (amd64-avx.c): Likewise.
17665 (amd64-avx-linux.o): Likewise.
17666 (amd64-avx-linux.c): Likewise.
17667
17668 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17669 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17670 (srv_amd64_regobj): Add amd64-avx.o.
17671 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17672 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17673 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17674 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17675 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17676 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17677 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17678
17679 * i387-fp.c: Include "i386-xstate.h".
17680 (i387_xsave): New.
17681 (i387_cache_to_xsave): Likewise.
17682 (i387_xsave_to_cache): Likewise.
17683 (x86_xcr0): Likewise.
17684
17685 * i387-fp.h (i387_cache_to_xsave): Likewise.
17686 (i387_xsave_to_cache): Likewise.
17687 (x86_xcr0): Likewise.
17688
17689 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17690 * linux-crisv32-low.c (target_regsets): Likewise.
17691 * linux-m68k-low.c (target_regsets): Likewise.
17692 * linux-mips-low.c (target_regsets): Likewise.
17693 * linux-ppc-low.c (target_regsets): Likewise.
17694 * linux-s390-low.c (target_regsets): Likewise.
17695 * linux-sh-low.c (target_regsets): Likewise.
17696 * linux-sparc-low.c (target_regsets): Likewise.
17697 * linux-xtensa-low.c (target_regsets): Likewise.
17698
17699 * linux-low.c: Include <sys/uio.h>.
17700 (regsets_fetch_inferior_registers): Support nt_type.
17701 (regsets_store_inferior_registers): Likewise.
17702 (linux_process_qsupported): New.
17703 (linux_target_ops): Add linux_process_qsupported.
17704
17705 * linux-low.h (regset_info): Add nt_type.
17706 (linux_target_ops): Add process_qsupported.
17707
17708 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17709 and <sys/uio.h>.
17710 (init_registers_i386_avx_linux): New.
17711 (init_registers_amd64_avx_linux): Likewise.
17712 (xmltarget_i386_linux_no_xml): Likewise.
17713 (xmltarget_amd64_linux_no_xml): Likewise.
17714 (PTRACE_GETREGSET): Likewise.
17715 (PTRACE_SETREGSET): Likewise.
17716 (x86_fill_xstateregset): Likewise.
17717 (x86_store_xstateregset): Likewise.
17718 (use_xml): Likewise.
17719 (x86_linux_update_xmltarget): Likewise.
17720 (x86_linux_process_qsupported): Likewise.
17721 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17722 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17723 init_registers_i386_linux here. Call
17724 x86_linux_update_xmltarget.
17725 (the_low_target): Add x86_linux_process_qsupported.
17726
17727 * server.c (handle_query): Call target_process_qsupported.
17728
17729 * target.h (target_ops): Add process_qsupported.
17730 (target_process_qsupported): New.
17731
fc7238bb
PA
177322010-04-03 Pedro Alves <pedro@codesourcery.com>
17733
17734 * inferiors.c (add_thread): Set last_status kind to
17735 TARGET_WAITKIND_IGNORE.
17736 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17737 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17738 (linux_wait_1): Move `thread' local definition to block that uses
17739 it. Don't NULL initialize `event_child'.
17740 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17741 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17742 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17743
bdabb078
PA
177442010-04-01 Pedro Alves <pedro@codesourcery.com>
17745
17746 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17747 an extended waitstatus, or by a watchpoint.
17748 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17749 thread was stepping or has been stopped by a watchpoint.
17750
d3bbe7a0
PA
177512010-04-01 Pedro Alves <pedro@codesourcery.com>
17752
17753 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17754 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17755 of another, then delete the previous, and validate all
17756 breakpoints.
17757 (validate_inserted_breakpoint): New.
17758 (delete_disabled_breakpoints): New.
17759 (validate_breakpoints): New.
17760 (check_mem_read): Validate breakpoints before trusting their
17761 shadow. Delete disabled breakpoints.
17762 (check_mem_write): Validate breakpoints before trusting they
17763 should be inserted. Delete disabled breakpoints.
17764 * mem-break.h (validate_breakpoints):
17765 * server.c (handle_query): Validate breakpoints when we see a
17766 qSymbol query.
17767
8b07ae33
PA
177682010-04-01 Pedro Alves <pedro@codesourcery.com>
17769
17770 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17771 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17772 if we could tell there's a GDB breakpoint at stop_pc.
17773 (need_step_over_p): Don't do a step over if we find a GDB
17774 breakpoint at the resume PC.
17775
17776 * mem-break.c (struct raw_breakpoint): New.
17777 (enum bkpt_type): New type `gdb_breakpoint'.
17778 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17779 fields. New field `raw'.
17780 (find_raw_breakpoint_at): New.
17781 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17782 breakpoint instead.
17783 (set_breakpoint_at): Adjust.
17784 (delete_raw_breakpoint): New.
17785 (release_breakpoint): New.
17786 (delete_breakpoint): Rename to...
17787 (delete_breakpoint_1): ... this. Add proc parameter. Use
17788 release_breakpoint. Return ENOENT.
17789 (delete_breakpoint): Reimplement.
17790 (find_breakpoint_at): Delete.
17791 (find_gdb_breakpoint_at): New.
17792 (delete_breakpoint_at): Delete.
17793 (set_gdb_breakpoint_at): New.
17794 (delete_gdb_breakpoint_at): New.
17795 (gdb_breakpoint_here): New.
17796 (set_reinsert_breakpoint): Use release_breakpoint.
17797 (uninsert_breakpoint): Rename to ...
17798 (uninsert_raw_breakpoint): ... this.
17799 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17800 (reinsert_raw_breakpoint): Change parameter type to
17801 raw_breakpoint.
17802 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17803 instead.
17804 (check_breakpoints): Adjust. Use release_breakpoint.
17805 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17806 (breakpoint_inserted_here): Ditto.
17807 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17808 Don't trust the breakpoint's shadow if it is not inserted.
17809 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17810 (delete_all_breakpoints): Adjust.
17811 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17812 use delete_breakpoint_1.
17813
17814 * mem-break.h (breakpoints_supported): Delete declaration.
17815 (set_gdb_breakpoint_at): Declare.
17816 (gdb_breakpoint_here): Declare.
17817 (delete_breakpoint_at): Delete.
17818 (delete_gdb_breakpoint_at): Declare.
17819
17820 * server.h (struct raw_breakpoint): Forward declare.
17821 (struct process_info): New field `raw_breakpoints'.
17822
17823 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17824 breakpoints.
17825
6bf5e0ba
PA
178262010-03-24 Pedro Alves <pedro@codesourcery.com>
17827
17828 * linux-low.c (status_pending_p_callback): Fix comment.
17829 (linux_wait_for_event_1): Move most of the internal breakpoint
17830 handling from here...
17831 (linux_wait_1): ... to here.
17832 (count_events_callback): New.
17833 (select_singlestep_lwp_callback): New.
17834 (select_event_lwp_callback): New.
17835 (cancel_breakpoints_callback): New.
17836 (select_event_lwp): New.
17837 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17838 priority to all LWPs that have had events that should be reported
17839 to the client. Cancel breakpoints when about to reporting the
17840 event to the client, not while stopping lwps. No longer cancel
17841 finished single-steps here.
17842 (cancel_finished_single_step): Delete.
17843 (cancel_finished_single_steps): Delete.
17844
414a389f
PA
178452010-03-24 Pedro Alves <pedro@codesourcery.com>
17846
17847 * mem-break.c (enum bkpt_type): New.
17848 (struct breakpoint): New field `type'.
17849 (set_breakpoint_at): Change return type to struct breakpoint
17850 pointer. Set type to `other_breakpoint' by default.
17851 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17852 in the breakpoint list.
17853 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17854 (reinsert_breakpoint): Rename to ...
17855 (reinsert_raw_breakpoint): ... this.
17856 (reinsert_breakpoints_at): Adjust.
17857 * mem-break.h (struct breakpoint): Declare.
17858 (set_breakpoint_at): Change return type to struct breakpoint
17859 pointer.
17860
2280c721
PA
178612010-03-24 Pedro Alves <pedro@codesourcery.com>
17862
17863 * server.c (handle_query): Assign, not compare.
17864
d50171e4
PA
178652010-03-24 Pedro Alves <pedro@codesourcery.com>
17866
17867 Teach linux gdbserver to step-over-breakpoints.
17868
17869 * linux-low.c (can_hardware_single_step): New.
17870 (supports_breakpoints): New.
17871 (handle_extended_wait): If stopping threads, read the stop pc of
17872 the new cloned LWP.
17873 (get_pc): New.
17874 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17875 low target doesn't support retrieving the PC.
17876 (add_lwp): Set last_resume_kind to resume_continue.
17877 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17878 (linux_attach): Don't clear stop_expected. Set the lwp's
17879 last_resume_kind to resume_stop.
17880 (linux_detach_one_lwp): Don't check for removed breakpoints.
17881 (check_removed_breakpoint): Delete.
17882 (status_pending_p): Rename to ...
17883 (status_pending_p_callback): ... this. Don't check for removed
17884 breakpoints. Don't consider threads that are stopped from GDB's
17885 perspective.
17886 (linux_wait_for_lwp): Always read the stop_pc here.
17887 (cancel_breakpoint): New.
17888 (step_over_bkpt): New global.
17889 (linux_wait_for_event_1): Implement stepping over breakpoints.
17890 (gdb_wants_lwp_stopped): New.
17891 (gdb_wants_all_stopped): New.
17892 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17893 single-step traps here. Store the thread's last reported target
17894 wait status.
17895 (send_sigstop): Don't clear stop_expected. Always set it,
17896 instead.
17897 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17898 (cancel_finished_single_step): New.
17899 (cancel_finished_single_steps): New.
17900 (wait_for_sigstop): Don't cancel finished single-step traps here.
17901 (linux_resume_one_lwp): Don't check for removed breakpoints.
17902 Don't set `step' on non-hardware step archs.
17903 (linux_set_resume_request): Ignore resume_stop requests if already
17904 stopping or stopped. Set the lwp's last_resume_kind.
17905 (resume_status_pending_p): Don't check for removed breakpoints.
17906 (need_step_over_p): New.
17907 (start_step_over): New.
17908 (finish_step_over): New.
17909 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17910 requests. Clear the thread's last reported target waitstatus.
17911 Don't use the `suspended' flag. Don't consider pending breakpoints.
17912 (linux_resume): Start a step-over if necessary.
17913 (proceed_one_lwp): New.
17914 (proceed_all_lwps): New.
17915 (unstop_all_lwps): New.
17916 * linux-low.h (struct lwp_info): Rewrite comment for the
17917 `suspended' flag. Add the `stop_pc' field. Delete the
17918 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17919 Add `'last_resume_kind' and `need_step_over' fields.
17920 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17921 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17922 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17923 (set_raw_breakpoint_at): New.
17924 (set_breakpoint_at): Rewrite to use it.
17925 (reinsert_breakpoint_handler): Delete.
17926 (set_reinsert_breakpoint): New.
17927 (reinsert_breakpoint_by_bp): Delete.
17928 (delete_reinsert_breakpoints): New.
17929 (uninsert_breakpoint): Rewrite.
17930 (uninsert_breakpoints_at): New.
17931 (reinsert_breakpoint): Rewrite.
17932 (reinsert_breakpoints_at): New.
17933 (check_breakpoints): Rewrite.
17934 (breakpoint_here): New.
17935 (breakpoint_inserted_here): New.
17936 (check_mem_read): Adjust.
17937 * mem-break.h (breakpoints_supported, breakpoint_here)
17938 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
17939 (reinsert_breakpoint_by_bp): Delete declaration.
17940 (delete_reinsert_breakpoints): Declare.
17941 (reinsert_breakpoint): Delete declaration.
17942 (reinsert_breakpoints_at): Declare.
17943 (uninsert_breakpoint): Delete declaration.
17944 (uninsert_breakpoints_at): Declare.
17945 (check_breakpoints): Adjust prototype.
17946 * server.h: Adjust include order.
17947 (struct thread_info): Declare here. Add a `last_status' field.
17948
30ba68cb
MS
179492010-03-23 Michael Snyder <msnyder@vmware.com>
17950
17951 * server.c (crc32): New function.
17952 (handle_query): Add handling for 'qCRC:' request.
17953
b9a881c2
PA
179542010-03-23 Pedro Alves <pedro@codesourcery.com>
17955
17956 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
17957 lwp had been stopped by a watchpoint.
17958
e92d13d5
PA
179592010-03-16 Pedro Alves <pedro@codesourcery.com>
17960
17961 * server.h (internal_error): Declare.
17962 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
17963 * utils.c (internal_error): New function.
17964
64daa791
AS
179652010-03-15 Andreas Schwab <schwab@redhat.com>
17966
17967 * configure.srv: Fix typo setting srv_regobj.
17968
f52cd8cd
PA
179692010-03-15 Pedro Alves <pedro@codesourcery.com>
17970
17971 * linux-low.c (fetch_register): Avoid passing a non string literal
17972 format to `error'.
17973 (usr_store_inferior_registers): Ditto.
17974
93ae6fdc
PA
179752010-03-14 Pedro Alves <pedro@codesourcery.com>
17976
17977 * linux-low.c (linux_write_memory): Bail out early if peeking
17978 memory failed.
17979
c3adc08c
PA
179802010-03-14 Pedro Alves <pedro@codesourcery.com>
17981
17982 * linux-low.h (struct lwp_info): New fields
17983 `stopped_by_watchpoint' and `stopped_data_address'.
17984 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
17985 here, and cache them in the lwp object.
17986 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
17987 directly.
17988 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
17989 field.
17990 (linux_stopped_by_watchpoint): Rewrite.
17991 (linux_stopped_data_address): Rewrite.
17992
bce522a2
PA
179932010-03-06 Simo Melenius <simo.melenius@iki.fi>
17994
17995 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
17996 switching the current inferior, not before.
17997
90884b2b
L
179982010-03-01 H.J. Lu <hongjiu.lu@intel.com>
17999
18000 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18001 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18002 i386-linux.c and amd64-linux.c.
18003 (reg-i386.o): Removed.
18004 (reg-i386.c): Likewise.
18005 (reg-i386-linux.o): Likewise.
18006 (reg-i386-linux.c): Likewise.
18007 (reg-x86-64.o): Likewise.
18008 (reg-x86-64.c): Likewise.
18009 (reg-x86-64-linux.o): Likewise.
18010 (reg-x86-64-linux.c): Likewise.
18011 (i386.o): New.
18012 (i386.c): Likewise.
18013 (i386-linux.o): Likewise.
18014 (i386-linux.c): Likewise.
18015 (amd64.o): Likewise.
18016 (amd64.c): Likewise.
18017 (amd64-linux.o): Likewise.
18018 (amd64-linux.c): Likewise.
18019
18020 * configure.srv (srv_i386_regobj): New.
18021 (srv_i386_linux_regobj): Likewise.
18022 (srv_amd64_regobj): Likewise.
18023 (srv_amd64_linux_regobj): Likewise.
18024 (srv_i386_32bit_xmlfiles): Likewise.
18025 (srv_i386_64bit_xmlfiles): Likewise.
18026 (srv_i386_xmlfiles): Likewise.
18027 (srv_amd64_xmlfiles): Likewise.
18028 (srv_i386_linux_xmlfiles): Likewise.
18029 (srv_amd64_linux_xmlfiles): Likewise.
18030 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18031 srv_xmlfiles to $srv_i386_xmlfiles.
18032 (i[34567]86-*-mingw32ce*): Likewise.
18033 (i[34567]86-*-mingw*): Likewise.
18034 (i[34567]86-*-nto*): Likewise.
18035 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18036 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18037 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18038 (x86_64-*-linux*): Likewise.
18039
18040 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18041 (init_registers_amd64_linux): New.
18042 (x86_arch_setup): Replace init_registers_x86_64_linux with
18043 init_registers_amd64_linux.
18044
193f13e6
MK
180452010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18046
18047 * configure.ac: Check for libdl. If it is not available link against
18048 static libthread_db.
18049 * configure: Regenerate.
18050
85d721b8
PA
180512010-02-22 Pedro Alves <pedro@codesourcery.com>
18052
18053 PR9605
18054
18055 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18056 handing a read watchpoint.
18057 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18058
6076632b
DE
180592010-02-12 Doug Evans <dje@google.com>
18060
18061 * linux-low.c (linux_supports_tracefork_flag): Document.
18062 (linux_look_up_symbols): Add comment.
18063
3327ccf7
L
180642010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18065
18066 * regcache.c (supply_register): Clear regcache if buf is NULL.
18067
0718675c 180682010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18069 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18070
18071 * inferiors.c (find_inferior): Add function documentation.
18072 (unloaded_dll): Handle the case where the unloaded dll has not
18073 been previously registered in the dll list.
18074
177321bd
DJ
180752010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18076
18077 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18078 (thumb2_breakpoint): New.
18079 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18080
2b009048
DJ
180812010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18082
18083 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18084 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18085 breakpoints.
18086
3be029c7
PA
180872010-01-21 Pedro Alves <pedro@codesourcery.com>
18088
18089 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18090
18f5de3b
JK
180912010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18092
18093 * linux-s390-low.c (s390_collect_ptrace_register)
18094 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18095
3743bb4f
DE
180962010-01-21 Doug Evans <dje@google.com>
18097
14ce3065
DE
18098 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18099 (PTRACE_ARG4_TYPE): New macro.
18100 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18101 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18102 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18103 (usr_store_inferior_registers): Ditto.
18104 (linux_read_memory, linux_write_memory): Ditto.
18105 (linux_test_for_tracefork): Ditto.
18106
3743bb4f
DE
18107 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18108 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18109
8b315be5
PA
181102010-01-21 Pedro Alves <pedro@codesourcery.com>
18111
18112 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18113 target.
18114
85492558
PA
181152010-01-21 Pedro Alves <pedro@codesourcery.com>
18116
18117 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18118 prototype to take a regcache. Adjust.
18119
442ea881
PA
181202010-01-20 Pedro Alves <pedro@codesourcery.com>
18121
18122 * regcache.h (struct thread_info): Forward declare.
18123 (struct regcache): New.
18124 (new_register_cache): Adjust prototype.
18125 (get_thread_regcache): Declare.
18126 (free_register_cache): Adjust prototype.
18127 (registers_to_string, registers_from_string): Ditto.
18128 (supply_register, supply_register_by_name, collect_register)
18129 (collect_register_as_string, collect_register_by_name): Ditto.
18130 * regcache.c (struct inferior_regcache_data): Delete.
18131 (get_regcache): Rename to ...
18132 (get_thread_regcache): ... this. Adjust. Switch inferior before
18133 fetching registers.
18134 (regcache_invalidate_one): Adjust.
18135 (regcache_invalidate): Fix prototype.
18136 (new_register_cache): Return the new register cache.
18137 (free_register_cache): Change prototype.
18138 (realloc_register_cache): Adjust.
18139 (registers_to_string): Change prototype to take a regcache. Adjust.
18140 (registers_from_string): Ditto.
18141 (register_data): Ditto.
18142 (supply_register): Ditto.
18143 (supply_register_by_name): Ditto.
18144 (collect_register): Ditto.
18145 (collect_register_as_string): Ditto.
18146 (collect_register_by_name): Ditto.
18147 * server.c (process_serial_event): Adjust.
18148 * linux-low.h (regset_fill_func, regset_store_func): Change
18149 prototype.
18150 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18151 Change prototype.
18152 * linux-low.c (get_stop_pc): Adjust.
18153 (check_removed_breakpoint): Adjust.
18154 (linux_wait_for_event): Adjust.
18155 (linux_resume_one_lwp): Adjust.
18156 (fetch_register): Add regcache parameter. Adjust.
18157 (usr_store_inferior_registers): Ditto.
18158 (regsets_fetch_inferior_registers): Ditto.
18159 (regsets_store_inferior_registers): Ditto.
18160 (linux_fetch_registers, linux_store_registers): Ditto.
18161 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18162 regcache. Adjust.
43aaf8b6
PA
18163 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18164 Ditto.
442ea881
PA
18165 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18166 prototype to take a regcache.
18167 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18168 * remote-utils.c (convert_ascii_to_int, outreg)
18169 (prepare_resume_reply): Change prototype to take a regcache.
18170 Adjust.
18171 * target.h (struct target_ops) <fetch_registers, store_registers>:
18172 Change prototype to take a regcache.
18173 (fetch_inferior_registers, store_inferior_registers): Change
18174 prototype to take a regcache. Adjust.
18175 * proc-service.c (ps_lgetregs): Adjust.
18176 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18177 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18178 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18179 take a regcache. Adjust.
18180 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18181 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18182 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18183 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18184 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18185 (cris_cannot_fetch_register):
18186 (cris_breakpoint_at): Change prototype to take a regcache.
18187 Adjust.
18188 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18189 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18190 to take a regcache. Adjust.
18191 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18192 Adjust.
18193 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18194 take a regcache. Adjust.
18195 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18196 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18197 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18198 * linux-mips-low.c (mips_get_pc):
18199 (mips_set_pc): Change prototype to take a regcache. Adjust.
18200 (mips_reinsert_addr): Adjust.
18201 (mips_collect_register): Change prototype to take a regcache.
18202 Adjust.
18203 (mips_supply_register):
18204 (mips_collect_register_32bit, mips_supply_register_32bit)
18205 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18206 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18207 * linux-ppc-low.c (ppc_supply_ptrace_register)
18208 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18209 (parse_spufs_run): Adjust.
18210 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18211 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18212 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18213 take a regcache. Adjust.
18214 * linux-s390-low.c (s390_collect_ptrace_register)
18215 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18216 (s390_set_pc): Change prototype to take a regcache. Adjust.
18217 (s390_arch_setup): Adjust.
18218 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18219 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18220 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18221 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18222 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18223 regcache. Adjust.
18224 (sparc_breakpoint_at): Adjust.
18225 * linux-xtensa-low.c (xtensa_fill_gregset):
18226 (xtensa_store_gregset):
18227 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18228 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18229 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18230 prototype to take a regcache. Adjust.
18231 * win32-arm-low.c (arm_fetch_inferior_register)
18232 (arm_store_inferior_register): Change prototype to take a
18233 regcache. Adjust.
18234 * win32-i386-low.c (i386_fetch_inferior_register)
18235 (i386_store_inferior_register): Change prototype to take a
18236 regcache. Adjust.
18237 * win32-low.c (child_fetch_inferior_registers)
18238 (child_store_inferior_registers): Change prototype to take a
18239 regcache. Adjust.
18240 (win32_wait): Adjust.
18241 (win32_fetch_inferior_registers): Change prototype to take a
18242 regcache. Adjust.
18243 (win32_store_inferior_registers): Adjust.
18244 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18245 store_inferior_register>: Change prototype to take a regcache.
18246
60c3d7b0
DE
182472010-01-20 Doug Evans <dje@google.com>
18248
18249 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18250 #ifdef.
18251 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18252 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18253
dc146f7c
VP
182542010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18255
18256 * linux-low.c (linux_core_of_thread): New.
18257 (compare_ints, show_process, list_threads): New.
18258 (linux_qxfer_osdata): Report threads and cores.
18259 (linux_target_op): Register linux_core_of_thread.
18260 * remote-utils.c (prepare_resume_reply): Report the core.
18261 (buffer_xml_printf): Support %d specifier.
18262 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18263 New.
18264 (handle_query): Handle qXfer:threads. Announce availability
18265 thereof.
18266 * target.h (struct target_ops): New field core_of_thread.
18267
7803799a
UW
182682010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18269
18270 * Makefile.in (clean): Remove new generated files.
18271 (reg-s390.o, reg-s390.c): Remove rules.
18272 (reg-s390x.o, reg-s390x.c): Likewise.
18273 (s390-linux32.o, s390-linux32.c): Add rules.
18274 (s390-linux64.o, s390-linux64.c): Likewise.
18275 (s390x-linux64.o, s390x-linux64.c): Likewise.
18276 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18277 * linux-s390-low.c: Include <elf.h>.
18278 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18279 (init_registers_s390): Remove prototype.
18280 (init_registers_s390x): Likewise.
18281 (init_registers_s390_linux32): Add prototype.
18282 (init_registers_s390_linux64): Likewise.
18283 (init_registers_s390x_linux64): Likewise.
18284 (s390_num_regs_3264): New define.
18285 (s390_regmap_3264): New global variable.
18286 (s390_cannot_fetch_register): Remove obsolete check.
18287 (s390_cannot_store_register): Likewise.
18288 (s390_collect_ptrace_register): Handle upper/lower register halves.
18289 (s390_supply_ptrace_register): Likewise.
18290 (s390_fill_gregset): Update to register number changes.
18291 (s390_get_hwcap): New routine.
18292 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18293 Install appropriate regmap and register set.
18294
6e7ffa39
JB
182952010-01-01 Joel Brobecker <brobecker@adacore.com>
18296
18297 * server.c (gdbserver_version): Update copyright year to 2010.
18298 * gdbreplay.c (gdbreplay_version): Likewise.
18299
957f3f49
DE
183002009-12-28 Doug Evans <dje@google.com>
18301
18302 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18303 elf/external.h. Include <elf.h> instead but only if necessary.
18304
ca5c370d
PA
183052009-12-28 Pedro Alves <pedro@codesourcery.com>
18306
18307 * linux-low.c (linux_remove_process): Remove `detaching'
18308 parameter. Don't release/detach from thread_db here.
18309 (linux_kill): Release/detach from thread_db here, ...
18310 (linux_detach): ... and here, before actually detaching.
18311 (linux_wait_1): ... and here, when a process exits.
18312 * thread-db.c (any_thread_of): New.
18313 (thread_db_free): Switch the current inferior to a thread of the
18314 passed in process.
18315
4ee62156
DE
183162009-12-21 Doug Evans <dje@google.com>
18317
d90e6a88
DE
18318 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18319
c5f62d5f
DE
18320 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18321 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18322 warning ifndef __NR_tkill. Move setting of errno there too.
18323 Delete unnecessary resetting of errno after syscall.
18324 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18325
10e86dd7
DE
18326 * configure.ac: Check for dladdr.
18327 * config.in: Regenerate.
18328 * configure: Regenerate.
18329 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18330 (try_thread_db_load): Update.
18331
4ee62156
DE
18332 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18333
00f515da
DE
183342009-12-18 Doug Evans <dje@google.com>
18335
e9464885
DE
18336 * event-loop.c: Include unistd.h if it exists.
18337
07d4f67e
DE
18338 * linux-low.c (my_waitpid): Move definition away from being in
18339 between linux_tracefork_child/linux_test_for_tracefork.
18340
00f515da
DE
18341 * gdb_proc_service.h (psaddr_t): Fix type.
18342 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18343 signature to match glibc.
18344
1de1badb
DE
183452009-12-16 Doug Evans <dje@google.com>
18346
18347 * linux-low.c (linux_read_memory): Fix argument to read.
18348
aeeb81d1
PA
183492009-11-26 Pedro Alves <pedro@codesourcery.com>
18350
18351 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18352 events, don't leave current_inferior pointing at null.
18353
10357975
PA
183542009-11-26 Pedro Alves <pedro@codesourcery.com>
18355
18356 * win32-low.c (LOG): Delete.
18357 (OUTMSG): Output to stderr.
18358 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18359 on compile time LOG macro.
18360 (win32_wait): Fix debug output.
18361
cf6e3471
PA
183622009-11-26 Pedro Alves <pedro@codesourcery.com>
18363
18364 * win32-low.c (win32_add_one_solib): If the dll name is
18365 "ntdll.dll", prepend the system directory to the dll path.
18366
0c85e18e
MK
183672009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18368
18369 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18370
9ac544ce 183712009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18372 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18373
18374 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18375 * configure.ac: Check for __mcoldfire__ and set
18376 gdb_cv_m68k_is_coldfire.
18377 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18378 reg-cf.o and reg-m68k.o.
18379 * configure: Regenerated.
18380
fd7dd3e6
PA
183812009-11-16 Pedro Alves <pedro@codesourcery.com>
18382
18383 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18384 Pass it to thread_db_free.
18385 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18386 proper `detaching' argument to linux_remove_process.
18387 * linux-low.h (thread_db_free): Add `detaching' parameter.
18388 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18389 to thread_db_free.
18390 (thread_db_free): Add `detaching' parameter. Only
18391 call td_ta_clear_event if detaching from process.
18392
75aa492e
MK
183932009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18394
18395 * thread-db.c (thread_db_free): Fix typo.
18396
21e1bee4
PP
183972009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18398
18399 PR gdb/10838
18400 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18401
8838b45e
NS
184022009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18403
18404 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18405 with an i686 compiler.
18406 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18407 needed.
18408 * configure: Rebuilt.
18409
8a35fb51
SL
184102009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18411
18412 PR gdb/10783
18413
18414 * server.c (handle_search_memory_1): Correct read_addr initialization
18415 in loop for searching subsequent chunks.
18416
96f15937
PP
184172009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18418
18419 * configure.ac: New --with-libthread-db option.
18420 * thread-db.c: Allow direct dependence on libthread_db.
18421 (thread_db_free): Adjust.
18422 * config.in: Regenerate.
18423 * configure: Likewise.
889bf7c5 18424
5f7d1694
PP
184252009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18426
18427 PR gdb/10757
18428 * thread-db.c (attach_thread): New function.
18429 (maybe_attach_thread): Return success/failure.
18430 (find_new_threads_callback): Adjust.
889bf7c5
PA
18431 (thread_db_find_new_threads): Loop until no new threads.
18432
88e3b899
PA
184332009-10-13 Pedro Alves <pedro@codesourcery.com>
18434
18435 * proc-service.c (ps_lgetregs): Formatting.
18436
cdbfd419
PP
184372009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18438
18439 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18440 * configure.ac: Adjust.
18441 * linux-low.h (struct process_info_private): Move members to struct
18442 thread_db.
18443 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18444 * linux-low.c (linux_remove_process): Adjust.
18445 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18446 * server.c (handle_query): Move code ...
18447 (handle_monitor_command): ... here. New function.
18448 * target.h (struct target_ops): New member.
18449 * thread-db.c (struct thread_db): New.
18450 (libthread_db_search_path): New variable.
18451 (thread_db_create_event, thread_db_enable_reporting)
18452 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18453 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18454 (try_thread_db_load_1, dladdr_to_soname): New functions.
18455 (try_thread_db_load, thread_db_load_search): New functions.
18456 (thread_db_init): Search for libthread_db.
18457 (thread_db_free): New function.
18458 (thread_db_handle_monitor_command): Likewise.
18459 * config.in: Regenerate.
18460 * configure: Regenerate.
889bf7c5 18461
4168d2d6
UW
184622009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18463
18464 * spu-low.c (spu_kill): Wait for inferior to terminate.
18465 Call clear_inferiors.
18466 (spu_detach): Call clear_inferiors.
18467
81ecdfbb
RW
184682009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18469
18470 * aclocal.m4: Regenerate.
18471 * config.in: Likewise.
18472 * configure: Likewise.
18473
0b9ff2c0
UW
184742009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18475
18476 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18477 (parse_spufs_run): New function.
18478 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18479 (ppc_breakpoint_at): Handle SPU breakpoints.
18480
efcbbd14
UW
184812009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18482
18483 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18484 (SPUFS_MAGIC): Define.
18485 (spu_enumerate_spu_ids): New function.
18486 (linux_qxfer_spu): New function.
18487 (linux_target_ops): Install linux_qxfer_spu.
18488
f4d9bade
UW
184892009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18490
18491 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18492 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18493 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18494 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18495 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18496 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18497 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18498 (init_registers_powerpc_cell32l): Add prototype.
18499 (init_registers_powerpc_cell64l): Likewise.
18500 (ppc_arch_setup): Detect Cell/B.E. architecture.
18501
96e946ca
RW
185022009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18503
18504 * Makefile.in (datarootdir): New variable.
18505
58d6951d
DJ
185062009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18507
18508 * linux-low.c (linux_write_memory): Update debugging output.
18509 * Makefile.in (clean): Add new descriptions.
18510 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18511 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18512 * configure.srv: Add new files for arm*-*-linux*.
18513 * linux-arm-low.c: Add new declarations.
18514 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18515 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18516 (HWCAP_VFPv3D16): New.
18517 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18518 instead of __IWMMXT__.
18519 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18520 (arm_arch_setup): New.
18521 (target_regsets): Remove #ifdef. Add VFP regset.
18522 (the_low_target): Use arm_arch_setup.
18523
12b42a12
DJ
185242009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18525
18526 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18527 the main thread again.
18528
ac8c974e
AR
185292009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18530
18531 Adding Neutrino gdbserver.
18532 * configure: Regenerated.
18533 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18534 * configure.srv (i[34567]86-*-nto*): New target.
18535 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18536 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18537 (nto_comctrl) [__QNX__]: New function.
18538 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18539
4424e0c3 185402009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18541
18542 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18543 srv_tgtobj.
18544
912cf4ba
PA
185452009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18546 Pedro Alves <pedro@codesourcery.com>
18547
18548 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18549 don't support CONTEXT_EXTENDED_REGISTERS.
18550 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18551 (the_low_target): Install them.
18552 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18553 failing with ERROR_PIPE_NOT_CONNECTED.
18554
aa5ca48f
DE
185552009-06-30 Doug Evans <dje@google.com>
18556 Pierre Muller <muller@ics.u-strasbg.fr>
18557
18558 Add h/w watchpoint support to x86-linux, win32-i386.
18559 * Makefile.in (SFILES): Add i386-low.c
18560 (i386_low_h): Define.
18561 (i386-low.o): Add dependencies.
18562 (linux-x86-low.o): Add i386-low.h dependency.
18563 (win32-i386-low.o): Ditto.
18564 * i386-low.c: New file.
18565 * i386-low.h: New file.
18566 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18567 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18568 * linux-low.c (linux_add_process): Initialize arch_private.
18569 (linux_remove_process): Free arch_private.
18570 (add_lwp): Initialize arch_private.
18571 (delete_lwp): Free arch_private.
18572 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18573 provided.
18574 * linux-low.h (process_info_private): New member arch_private.
18575 (lwp_info): New member arch_private.
18576 (linux_target_ops): New members new_process, new_thread,
18577 prepare_to_resume.
18578 (ptid_of): New macro.
18579 * linux-x86-low.c: Include stddef.h, i386-low.h.
18580 (arch_process_info): New struct.
18581 (arch_lwp_info): New struct.
18582 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18583 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18584 (i386_dr_low_get_status): New function.
18585 (x86_insert_point, x86_remove_point): New functions.
18586 (x86_stopped_by_watchpoint): New function.
18587 (x86_stopped_data_address): New function.
18588 (x86_linux_new_process, x86_linux_new_thread): New functions.
18589 (x86_linux_prepare_to_resume): New function.
18590 (the_low_target): Add entries for insert_point, remove_point,
18591 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18592 prepare_to_resume.
18593 * server.c (debug_hw_points): New global.
18594 (monitor_show_help): Document set debug-hw-points.
18595 (handle_query): Process "set debug-hw-points".
18596 * server.h (debug_hw_points): Declare.
18597 (paddress): Declare.
18598 * utils.c (NUMCELLS, CELLSIZE): New macros.
18599 (get_sell, xsnprintf, paddress): New functions.
18600 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18601 remove_point, stopped_by_watchpoint, stopped_data_address.
18602 * win32-i386-low.c: Include i386-low.h.
18603 (debug_reg_state): Replaces dr.
18604 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18605 (i386_dr_low_get_status): New function.
18606 (i386_insert_point, i386_remove_point): New functions.
18607 (i386_stopped_by_watchpoint): New function.
18608 (i386_stopped_data_address): New function.
18609 (i386_initial_stuff): Update.
18610 (get_thread_context,set_thread_context,i386_thread_added): Update.
18611 (the_low_target): Add entries for insert_point,
18612 remove_point, stopped_by_watchpoint, stopped_data_address.
18613 * win32-low.c (win32_insert_watchpoint): New function.
18614 (win32_remove_watchpoint): New function.
18615 (win32_stopped_by_watchpoint): New function.
18616 (win32_stopped_data_address): New function.
18617 (win32_target_ops): Add entries for insert_watchpoint,
18618 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18619 * win32-low.h (win32_target_ops): New members insert_point,
18620 remove_point, stopped_by_watchpoint, stopped_data_address.
18621
d993e290
PA
186222009-06-25 Pedro Alves <pedro@codesourcery.com>
18623
18624 * server.c (process_serial_event): Re-return unsupported, not
18625 error, if the type isn't recognized. Re-allow supporting only
18626 insert or remove packets. Also call require_running for
18627 breakpoints. Add missing break statement to default case. Tidy.
18628 * target.h (struct target_ops): Rename insert_watchpoint to
18629 insert_point, and remove_watchpoint to remove_point.
18630
18631 * linux-low.h (struct linux_target_ops): Likewise.
18632 * linux-low.c (linux_insert_watchpoint): Rename to ...
18633 (linux_insert_point): ... this. Adjust.
18634 (linux_remove_watchpoint): Rename to ...
18635 (linux_remove_point): ... this. Adjust.
18636 (linux_target_ops): Adjust.
18637 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18638 (cris_insert_point): ... this.
18639 (cris_remove_watchpoint): Rename to ...
18640 (cris_remove_point): ... this.
18641 (the_low_target): Adjust.
18642
0f54c268
PM
186432009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18644
18645 * server.c (handle_v_kill): Pass signal_pid to
18646 kill_inferior if multi_process is zero.
18647
c6314022
AR
186482009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18649
18650 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18651 * target.h (target_ops): Comment for *_watchpoint to make it clear
18652 the functions can get types '0' and '1'.
18653
4463ce24
AR
186542009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18655
18656 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18657 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18658 * regcache.c (get_regcache): Likewise.
18659 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18660 * win32-low.c (child_fetch_inferior_registers): Remove check for
18661 regno 0.
18662
cf8fd78b
PA
186632009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18664 Pedro Alves <pedro@codesourcery.com>
18665
18666 * target.h (struct target_ops) <supports_multi_process>: New
18667 callback.
18668 (target_supports_multi_process): New.
18669 * server.c (handle_query): Even if GDB reports support, only
18670 enable multi-process if the target also supports it. Report
18671 multi-process support only if the target backend supports it.
18672 * linux-low.c (linux_supports_multi_process): New function.
18673 (linux_target_ops): Install it as target_supports_multi_process
18674 callback.
18675
47c0c975
DE
186762009-05-24 Doug Evans <dje@google.com>
18677
e09875d4
DE
18678 Global renaming of find_thread_pid to find_thread_ptid.
18679 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18680 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18681 All callers updated.
18682
e27d73f6
DE
18683 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18684 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18685 directly.
18686
47c0c975
DE
18687 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18688 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18689 (linux_resume_one_lwp): Ditto.
18690
2acc282a
DE
186912009-05-23 Doug Evans <dje@google.com>
18692
18693 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18694 from struct inferior_list_entry * to struct lwp_info *.
18695 All callers updated.
18696
9f1036c1
DE
186972009-05-13 Doug Evans <dje@google.com>
18698
18699 * linux-x86-low.c: Don't include assert.h.
18700 (x86_siginfo_fixup): Use fatal, not assert.
18701 (x86_arch_setup): Fix comment.
18702
d0722149
DE
187032009-05-12 Doug Evans <dje@google.com>
18704
18705 Biarch support for i386/amd64 gdbserver.
18706 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18707 Add linux-x86-low.c.
18708 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18709 (linux-x86-low.o): Add.
18710 * linux-x86-64-low.c: Delete.
18711 * linux-i386-low.c: Delete.
18712 * linux-x86-low.c: New file.
18713 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18714 linux-x86-low.o.
18715 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18716 linux-x86-low.o.
18717 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18718 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18719 (linux_child_pid_to_exec_file): New function.
18720 (elf_64_header_p, elf_64_file_p): New functions.
18721 (siginfo_fixup): New function.
18722 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18723 give target a chance to convert layout.
18724 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18725 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18726
fdeb2a12
DE
187272009-05-07 Doug Evans <dje@google.com>
18728
18729 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18730 (regsets_store_inferior_registers): Ditto.
18731
a6dbe5df
PA
187322009-05-06 Pedro Alves <pedro@codesourcery.com>
18733
18734 PR server/10048
18735
18736 * linux-low.c (must_set_ptrace_flags): Delete.
18737 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18738 of the global.
18739 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18740 `lwp->must_set_ptrace_flags' instead.
ba42693b 18741 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
18742 (linux_wait_1): ... not here.
18743
5091eb23
DE
187442009-04-30 Doug Evans <dje@google.com>
18745
9f767825
DE
18746 * inferiors.c (started_inferior_callback): New function.
18747 (attached_inferior_callback): New function.
18748 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18749 * server.c (print_started_pid, print_attached_pid): New functions.
18750 (detach_or_kill_for_exit): New function.
18751 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18752 * server.h (have_started_inferiors_p): Declare.
18753 (have_attached_inferiors_p): Declare.
18754
5091eb23
DE
18755 * inferiors.c (remove_process): Fix memory leak, free process.
18756 * linux-low.c (linux_remove_process): New function.
18757 (linux_kill): Call it instead of remove_process.
18758 (linux_detach, linux_wait_1): Ditto.
18759
155c8968
PA
187602009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18761
18762 * configure.srv: Add x86 Windows CE target.
18763
7fe519cb
UW
187642009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18765
18766 * inferiors.c (get_thread_process): Make global.
18767 * server.h (get_thread_process): Add prototype.
18768 * thread-db.c (find_one_thread): Use get_thread_process
18769 instead of current_process.
18770 (thread_db_get_tls_address): Do not crash if called when
18771 thread layer is not yet initialized.
18772
5472f405
UW
187732009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18774
18775 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18776 * spu-low.c (current_tid): Rename to ...
18777 (current_ptid): ... this.
18778 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18779 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18780 ptid_get_lwp (current_ptid) instead of current_tid.
18781 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18782 instead of current_tid. Use find_process_pid to verify pid
18783 argument is valid. Pass proper argument to remove_process.
18784 (spu_thread_alive): Compare current_ptid instead of current_tid.
18785 (spu_resume): Likewise.
18786
55ac2b99
PA
187872009-04-02 Pedro Alves <pedro@codesourcery.com>
18788
18789 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18790 variable.
18791
95954743
PA
187922009-04-01 Pedro Alves <pedro@codesourcery.com>
18793
18794 Implement the multiprocess extensions, and add linux multiprocess
18795 support.
18796
18797 * server.h (ULONGEST): Declare.
18798 (struct ptid, ptid_t): New.
18799 (minus_one_ptid, null_ptid): Declare.
18800 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18801 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18802 (struct inferior_list_entry): Change `id' type from unsigned from
18803 to ptid_t.
18804 (struct sym_cache, struct breakpoint, struct
18805 process_info_private): Forward declare.
18806 (struct process_info): Declare.
18807 (current_process): Declare.
18808 (all_processes): Declare.
18809 (initialize_inferiors): Declare.
18810 (add_thread): Adjust to use ptid_t.
18811 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18812 (add_process, remove_process, find_thread_pid): Declare.
18813 (find_inferior_id): Adjust to use ptid_t.
18814 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18815 (multi_process): Declare.
18816 (push_event): Adjust to use ptid_t.
18817 (read_ptid, write_ptid): Declare.
18818 (prepare_resume_reply): Adjust to use ptid_t.
18819 (clear_symbol_cache): Declare.
18820 * inferiors.c (all_processes): New.
18821 (null_ptid, minus_one_ptid): New.
18822 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18823 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18824 (add_thread): Change unsigned long to ptid. Remove gdb_id
18825 parameter. Adjust.
18826 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18827 (gdb_id_to_thread): Rename to ...
18828 (find_thread_pid): ... this. Change unsigned long to ptid.
18829 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18830 (loaded_dll, pull_pid_from_list): Adjust.
18831 (add_process, remove_process, find_process_pid)
18832 (get_thread_process, current_process, initialize_inferiors): New.
18833 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18834 (struct target_waitstatus) <related_pid>: Ditto.
18835 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18836 return type to int.
18837 (struct target_ops) <join>: Add `pid' argument.
18838 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18839 (struct target_ops) <wait>: Add `ptid' field. Change return type
18840 to ptid.
18841 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18842 (mywait): Add `ptid' argument. Change return type to ptid_t.
18843 (target_pid_to_str): Declare.
18844 * target.c (set_desired_inferior): Adjust to use ptids.
18845 (mywait): Add new `ptid' argument. Adjust.
18846 (target_pid_to_str): New.
18847 * mem-break.h (free_all_breakpoints): Declare.
18848 * mem-break.c (breakpoints): Delelete.
18849 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18850 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18851 to use per-process breakpoint list.
18852 (free_all_breakpoints): New.
18853 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18854 (symbol_cache, all_symbols_looked_up): Delete.
18855 (hexchars): New.
18856 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18857 read_ptid): New.
18858 (prepare_resume_reply): Change ptid argument's type from unsigned
18859 long to ptid_t. Adjust. Implement W;process and X;process.
18860 (free_sym_cache, clear_symbol_cache): New.
18861 (look_up_one_symbol): Adjust to per-process symbol cache. *
18862 * server.c (cont_thread, general_thread, step_thread): Change type
18863 to ptid_t.
18864 (attached): Delete.
18865 (multi_process): New.
18866 (last_ptid): Change type to ptid_t.
18867 (struct vstop_notif) <ptid>: Change type to ptid_t.
18868 (queue_stop_reply, push_event): Change `ptid' argument's type to
18869 ptid_t.
18870 (discard_queued_stop_replies): Add `pid' argument.
18871 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18872 changes. Don't reference the `attached' global.
18873 (attach_inferior): Adjust to mywait interface changes.
18874 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18875 features. Handle and report "multiprocess+". Handle
18876 "qAttached:PID".
18877 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18878 changes.
18879 (handle_v_kill): New.
18880 (handle_v_stopped): Adjust to use target_pid_to_str.
18881 (handle_v_requests): Allow multiple attaches and runs when
18882 multiprocess extensions are in effect. Handle "vKill".
18883 (myresume): Adjust to use ptids.
18884 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18885 (handle_status): Adjust to discard_queued_stop_replies interface
18886 change.
18887 (first_thread_of, kill_inferior_callback)
18888 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18889 (main): Call initialize_inferiors. Adjust to use ptids, killing
18890 and detaching from all inferiors. Handle multiprocess packet
18891 variants.
18892 * linux-low.h: Include gdb_proc_service.h.
18893 (struct process_info_private): New.
18894 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18895 <lwpid_of>: Use ptid_get_lwp.
18896 (get_lwp_thread): Adjust.
18897 (struct lwp_info): Add `dead' member.
18898 (find_lwp_pid): Declare.
18899 * linux-low.c (thread_db_active): Delete.
18900 (new_inferior): Adjust comment.
18901 (inferior_pid): Delete.
18902 (linux_add_process): New.
18903 (handle_extended_wait): Adjust.
18904 (add_lwp): Change unsigned long to ptid.
18905 (linux_create_inferior): Add process to processes table. Adjust
18906 to use ptids. Don't set new_inferior here.
18907 (linux_attach_lwp): Rename to ...
18908 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18909 it. Adjust to use ptids.
18910 (linux_attach_lwp): New.
18911 (linux_attach): Add process to processes table. Don't set
18912 new_inferior here.
18913 (struct counter): New.
18914 (second_thread_of_pid_p, last_thread_of_process_p): New.
18915 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18916 multiple processes.
18917 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18918 processes. Remove process from process table.
18919 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18920 to multiple processes.
18921 (any_thread_of): New.
18922 (linux_detach): Add `pid' argument, and handle it. Remove process
18923 from processes table.
18924 (linux_join): Add `pid' argument. Handle it.
18925 (linux_thread_alive): Change unsighed long argument to ptid_t.
18926 Consider dead lwps as not being alive.
18927 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18928 threads we're not interested in.
18929 (same_lwp, find_lwp_pid): New.
18930 (linux_wait_for_lwp): Change `pid' argument's type from int to
18931 ptid_t. Adjust.
18932 (linux_wait_for_event): Rename to ...
18933 (linux_wait_for_event_1): ... this. Change `pid' argument's type
18934 from int to ptid_t. Adjust.
18935 (linux_wait_for_event): New.
18936 (linux_wait_1): Add `ptid' argument. Change return type to
18937 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
18938 that exit from the process table.
18939 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
18940 Adjust.
18941 (mark_lwp_dead): New.
18942 (wait_for_sigstop): Adjust to use ptids. If a process exits while
18943 stopping all threads, mark its main lwp as dead.
18944 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
18945 ptids.
18946 (fetch_register, usr_store_inferior_registers)
18947 (regsets_fetch_inferior_registers)
18948 (regsets_store_inferior_registers, linux_read_memory)
18949 (linux_write_memory): Inline `inferior_pid'.
18950 (linux_look_up_symbols): Adjust to use per-process
18951 `thread_db_active'.
18952 (linux_request_interrupt): Adjust to use ptids.
18953 (linux_read_auxv): Inline `inferior_pid'.
18954 (initialize_low): Don't reference thread_db_active.
18955 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
18956 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
18957 (ps_getpid): Return the pid of the current inferior.
18958 * thread-db.c (proc_handle, thread_agent): Delete.
18959 (thread_db_create_event, thread_db_enable_reporting): Adjust to
18960 per-process data.
18961 (find_one_thread): Change argument type to ptid_t. Adjust to
18962 per-process data.
18963 (maybe_attach_thread): Adjust to per-process data and ptids.
18964 (thread_db_find_new_threads): Ditto.
18965 (thread_db_init): Ditto.
18966 * spu-low.c (spu_create_inferior, spu_attach): Add process to
18967 processes table. Adjust to use ptids.
18968 (spu_kill, spu_detach): Adjust interface. Remove process from
18969 processes table.
18970 (spu_join, spu_thread_alive): Adjust interface.
18971 (spu_wait): Adjust interface. Remove process from processes
18972 table. Adjust to use ptids.
18973 * win32-low.c (current_inferior_tid): Delete.
18974 (current_inferior_ptid): New.
18975 (debug_event_ptid): New.
18976 (thread_rec): Take a ptid. Adjust.
18977 (child_add_thread): Add `pid' argument. Adjust to use ptids.
18978 (child_delete_thread): Ditto.
18979 (do_initial_child_stuff): Add `attached' argument. Add process to
18980 processes table.
18981 (child_fetch_inferior_registers, child_store_inferior_registers):
18982 Adjust.
18983 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
18984 (win32_attach): Pass 1 to do_initial_child_stuff.
18985 (win32_kill): Adjust interface. Remove process from processes
18986 table.
18987 (win32_detach): Ditto.
18988 (win32_join): Adjust interface.
18989 (win32_thread_alive): Take a ptid.
18990 (win32_resume): Adjust to use ptids.
18991 (get_child_debug_event): Ditto.
18992 (win32_wait): Adjust interface. Remove exiting process from
18993 processes table.
18994
bd99dc85
PA
189952009-04-01 Pedro Alves <pedro@codesourcery.com>
18996
18997 Non-stop mode support.
18998
18999 * server.h (non_stop): Declare.
19000 (gdb_client_data, handler_func): Declare.
19001 (delete_file_handler, add_file_handler, start_event_loop):
19002 Declare.
19003 (handle_serial_event, handle_target_event, push_event)
19004 (putpkt_notif): Declare.
19005 * target.h (enum resume_kind): New.
19006 (struct thread_resume): Replace `step' field by `kind' field.
19007 (TARGET_WNOHANG): Define.
19008 (struct target_ops) <wait>: Add `options' argument.
19009 <supports_non_stop, async, start_non_stop>: New fields.
19010 (target_supports_non_stop, target_async): New.
19011 (start_non_stop): Declare.
19012 (mywait): Add `options' argument.
19013 * target.c (mywait): Add `options' argument. Print child exit
19014 notifications here.
19015 (start_non_stop): New.
19016 * server.c (non_stop, own_buf, mem_buf): New globals.
19017 (struct vstop_notif): New.
19018 (notif_queue): New global.
19019 (queue_stop_reply, push_event, discard_queued_stop_replies)
19020 (send_next_stop_reply): New.
19021 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19022 interface changes.
19023 (attach_inferior): In non-stop mode, don't wait for the target
19024 here.
19025 (handle_general_set): Handle QNonStop.
19026 (handle_query): When handling qC, return the current general
19027 thread, instead of the first thread of the list.
19028 (handle_query): If the backend supports non-stop mode, include
19029 QNonStop+ in the qSupported query response.
19030 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19031 and non-stop mode.
19032 (handle_v_attach, handle_v_run): Handle non-stop mode.
19033 (handle_v_stopped): New.
19034 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19035 (myresume): Adjust to use resume_kind. Handle non-stop.
19036 (queue_stop_reply_callback): New.
19037 (handle_status): Handle non-stop mode.
19038 (main): Clear non_stop flag on reconnection. Use the event-loop.
19039 Refactor serial protocol handling from here ...
19040 (process_serial_event): ... to this new function. When GDB
19041 selects any thread, select one here. In non-stop mode, wait until
19042 GDB acks all pending events before exiting.
19043 (handle_serial_event, handle_target_event): New.
19044 * remote-utils.c (remote_open): Install remote_desc in the event
19045 loop.
19046 (remote_close): Remove remote_desc from the event loop.
19047 (putpkt_binary): Rename to...
19048 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19049 (putpkt_binary): New as wrapper around putpkt_binary_1.
19050 (putpkt_notif): New.
19051 (prepare_resume_reply): In non-stop mode, don't change the
19052 general_thread.
19053 * event-loop.c: New.
19054 * Makefile.in (OBJ): Add event-loop.o.
19055 (event-loop.o): New rule.
19056
19057 * linux-low.h (pid_of): Moved here.
19058 (lwpid_of): New.
19059 (get_lwp_thread): Use lwpid_of.
19060 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19061 * linux-low.c (pid_of): Delete.
19062 (inferior_pid): Use lwpid_of.
19063 (linux_event_pipe): New.
19064 (target_is_async_p): New.
19065 (delete_lwp): New.
19066 (handle_extended_wait): Use lwpid_of.
19067 (add_lwp): Don't set lwpid field.
19068 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19069 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19070 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19071 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19072 first. Adjust to linux_wait_for_event interface changes. Use
19073 lwpid_of.
19074 (linux_detach): Don't delete the main lwp here.
19075 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19076 (status_pending_p): Don't consider explicitly suspended lwps.
19077 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19078 pointer. Add OPTIONS argument. Change return type to int. Use
19079 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19080 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19081 pointer. Add status pointer argument. Return a pid instead of a
19082 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19083 changes. In non-stop mode, don't switch to a random thread.
19084 (linux_wait): Rename to...
19085 (linux_wait_1): ... this. Add target_options argument, and handle
19086 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19087 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19088 clean exit and signal exit code. Don't stop all threads in
19089 non-stop mode. In all-stop mode, only stop all threads when
19090 reporting a stop to GDB. Handle explicit thread stop requests.
19091 (async_file_flush, async_file_mark): New.
19092 (linux_wait): New.
19093 (send_sigstop): Use lwpid_of.
19094 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19095 interface changes. In non-stop mode, don't switch to a random
19096 thread.
19097 (linux_resume_one_lwp): Use lwpid_of.
19098 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19099 (linux_resume_one_thread): ... this. Handle resume_stop. In
19100 non-stop mode, don't look for pending flag in all threads.
19101 (resume_status_pending_p): Don't consider explicitly suspended
19102 threads.
19103 (my_waitpid): Reimplement. Emulate __WALL.
19104 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19105 Use lwpid_of.
19106 (sigchld_handler, linux_supports_non_stop, linux_async)
19107 (linux_start_non_stop): New.
19108 (linux_target_ops): Register linux_supports_non_stop, linux_async
19109 and linux_start_non_stop.
19110 (initialize_low): Install SIGCHLD handler.
19111 * thread-db.c (thread_db_create_event, find_one_thread)
19112 (thread_db_get_tls_address): Use lwpid_of.
19113 * win32-low.c (win32_detach): Adjust to use resume_kind.
19114 (win32_wait): Add `options' argument.
19115 * spu-low.c (spu_resume): Adjust to use resume_kind.
19116 (spu_wait): Add `options' argument.
19117
5b1c542e
PA
191182009-04-01 Pedro Alves <pedro@codesourcery.com>
19119
19120 Decouple target code from remote protocol.
19121
19122 * target.h (enum target_waitkind): New.
19123 (struct target_waitstatus): New.
19124 (struct target_ops) <wait>: Return an unsigned long. Take a
19125 target_waitstatus pointer instead of a char pointer.
19126 (mywait): Likewise.
19127 * target.c (mywait): Change prototype to return an unsigned long.
19128 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19129 * server.h (thread_from_wait, old_thread_from_wait): Delete
19130 declarations.
19131 (prepare_resume_reply): Change prototype to take a
19132 target_waitstatus.
19133 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19134 (last_status, last_ptid): New.
19135 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19136 pid instead of a signal.
19137 (attach_inferior): Remove "status" and "signal" parameters.
19138 Adjust.
19139 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19140 not as an address.
19141 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19142 (handle_v_requests, myresume): Remove "status" and "signal"
19143 parameters. Adjust.
19144 (handle_status): New.
19145 (main): Delete local `status'. Adjust.
19146 * remote-utils.c: Include target.h.
19147 (prepare_resume_reply): Change prototype to take a
19148 target_waitstatus. Adjust.
19149
19150 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19151 interface.
19152 * spu-low.c (spu_wait): Adjust.
19153 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19154 Delete.
19155 (win32_wait): Adjust.
19156
2bd7c093
PA
191572009-04-01 Pedro Alves <pedro@codesourcery.com>
19158
19159 * target.h (struct thread_resume): Delete leave_stopped member.
19160 (struct target_ops): Add a `n' argument to the `resume' callback.
19161 * server.c (start_inferior): Adjust.
19162 (handle_v_cont, myresume): Adjust.
19163 * linux-low.c (check_removed_breakpoint): Adjust to resume
19164 interface change, and to removed leave_stopped field.
19165 (resume_ptr): Delete.
19166 (struct thread_resume_array): New.
19167 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19168 resume interface change.
19169 (linux_continue_one_thread, linux_queue_one_thread)
19170 (resume_status_pending_p): Check if the resume field is NULL
19171 instead of checking the leave_stopped member.
19172 (linux_resume): Adjust to the target resume interface change.
19173 * spu-low.c (spu_resume): Adjust to the target resume interface
19174 change.
19175 * win32-low.c (win32_detach, win32_resume): Ditto.
19176
c35fafde
PA
191772009-04-01 Pedro Alves <pedro@codesourcery.com>
19178
19179 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19180 flag.
19181 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19182 pending.
19183 (linux_continue_one_thread): Only preserve the stepping flag if
19184 there's a pending breakpoint.
19185
0a59d50b
PA
191862009-03-31 Pedro Alves <pedro@codesourcery.com>
19187
19188 * server.c (main): After the inferior having exited, call
19189 remote_close before exiting gdbserver.
19190
f04c6d38
TJB
191912009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19192
19193 Fix size of FPSCR in Power 7 processors.
19194 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19195 (PPC_FEATURE_HAS_DFP): New #define.
19196 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19197 size of the FPSCR.
19198
78e5cee6
PA
191992009-03-23 Pedro Alves <pedro@codesourcery.com>
19200
19201 * server.c (handle_query) Whitespace and formatting.
19202
1b3f6016
PA
192032009-03-22 Pedro Alves <pedro@codesourcery.com>
19204
19205 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19206 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19207 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19208 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19209 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19210 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19211 Makefile.in, configure.ac: Fix whitespace throughout.
19212 * configure: Regenerate.
19213
a07b2135
PA
192142009-03-22 Pedro Alves <pedro@codesourcery.com>
19215
19216 * inferiors.c (find_inferior): Make it safe for the callback
19217 function to delete the currently iterated inferior.
19218
67cc2626
PA
192192009-03-22 Pedro Alves <pedro@codesourcery.com>
19220
19221 * Makefile.in (linuw_low_h): Move higher.
19222 (thread-db.o): Depend on $(linux_low_h).
19223
54a0b537
PA
192242009-03-17 Pedro Alves <pedro@codesourcery.com>
19225
19226 Rename "process" to "lwp" throughout.
19227
19228 * linux-low.c (all_processes): Rename to...
19229 (all_lwps): ... this.
19230 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19231 (add_process): Rename to ...
19232 (add_lwp): ... this. Adjust.
19233 (linux_create_inferior): Adjust.
19234 (linux_attach_lwp): Adjust.
19235 (linux_attach): Adjust.
19236 (linux_kill_one_process): Rename to ...
19237 (linux_kill_one_lwp): ... this. Adjust.
19238 (linux_kill): Adjust.
19239 (linux_detach_one_process): Rename to ...
19240 (linux_detach_one_lwp): ... this. Adjust.
19241 (linux_detach): Adjust.
19242 (check_removed_breakpoint): Adjust.
19243 (status_pending_p): Adjust.
19244 (linux_wait_for_process): Rename to ...
19245 (linux_wait_for_lwp): ... this. Adjust.
19246 (linux_wait_for_event): Adjust.
19247 (send_sigstop): Adjust.
19248 (wait_for_sigstop): Adjust.
19249 (stop_all_processes): Rename to ...
19250 (stop_all_lwps): ... this.
19251 (linux_resume_one_process): Rename to ...
19252 (linux_resume_one_lwp): ... this. Adjust.
19253 (linux_set_resume_request, linux_continue_one_thread)
19254 (linux_queue_one_thread, resume_status_pending_p)
19255 (usr_store_inferior_registers, regsets_store_inferior_registers)
19256 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19257 Adjust.
19258 * linux-low.h (get_process): Rename to ...
19259 (get_lwp): ... this. Adjust.
19260 (get_thread_process): Rename to ...
19261 (get_thread_lwp): ... this. Adjust.
19262 (get_process_thread): Rename to ...
19263 (get_lwp_thread): ... this. Adjust.
19264 (struct process_info): Rename to ...
19265 (struct lwp_info): ... this.
19266 (all_processes): Rename to ...
19267 (all_lwps): ... this.
19268 * proc-service.c (ps_lgetregs): Adjust.
19269 * thread-db.c (thread_db_create_event, find_one_thread)
19270 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19271
0b16c5cf
PA
192722009-03-14 Pedro Alves <pedro@codesourcery.com>
19273
19274 * server.c (handle_query): Handle "qAttached".
19275
32de4b9d
NS
192762009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19277
19278 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19279 GPLv3, update license URL.
19280
2aecd87f
DE
192812009-03-01 Doug Evans <dje@google.com>
19282
93efd302 19283 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19284 (server_h): Add gdb_signals.h.
19285 (signals.o): Update.
19286 * server.h (target_signal_from_host,target_signal_to_host_p)
19287 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19288
86b1f9c5
PM
192892009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19290
19291 * remote-utils.c (getpkt): Also generate remote-debug
19292 information if noack_mode is set.
19293
4aa995e1
PA
192942009-02-06 Pedro Alves <pedro@codesourcery.com>
19295
19296 * server.c (handle_query): Report qXfer:siginfo:read and
19297 qXfer:siginfo:write as supported and handle them.
19298 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19299 * linux-low.c (linux_xfer_siginfo): New.
19300 (linux_target_ops): Set it.
19301
62709adf
PA
193022009-01-26 Pedro Alves <pedro@codesourcery.com>
19303
19304 * server.c (gdbserver_usage): Mention --remote-debug.
19305 (main): Accept '--remote-debug' switch.
19306
aef93bd7
DE
193072009-01-18 Doug Evans <dje@google.com>
19308
19309 * regcache.c (new_register_cache): No need to check result of xcalloc.
19310 * server.c (handle_search_memory): Back out calls to xmalloc,
19311 result is checked and error is returned to user upon failure.
19312 (handle_query): Ditto. Add more checks for result of malloc.
19313 (handle_v_cont): Check result of malloc, report error back to
19314 user upon failure.
19315 (handle_v_run): Ditto. Call freeargv.
19316 * server.h (freeargv): Declare.
19317 * utils.c (freeargv): New fn.
19318
54363045
DE
193192009-01-15 Doug Evans <dje@google.com>
19320
f626972c
DE
19321 * gdbreplay.c (perror_with_name): Make arg const char *.
19322 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19323 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19324 * utils.c (perror_with_name): Make arg const char *.
54363045 19325
18aae699
PA
193262009-01-14 Pedro Alves <pedro@codesourcery.com>
19327
19328 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19329 when handling a EXIT_PROCESS_DEBUG_EVENT.
19330
ff703abe
JB
193312009-01-06 Joel Brobecker <brobecker@adacore.com>
19332
19333 * gdbreplay.c (gdbreplay_version): Update copyright year.
19334 * server.c (gdbserver_version): Likewise.
19335
f21cc1a2 193362009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19337
19338 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19339 (handle_extended_wait): Improve comment.
0e21c1ec 19340
bca929d3
DE
193412008-12-13 Doug Evans <dje@google.com>
19342
19343 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19344 * server.h (ATTR_MALLOC): New macro.
19345 (xmalloc,xcalloc,xstrdup): Declare.
19346 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19347 * inferiors.c: Ditto.
19348 * linux-low.c: Ditto.
19349 * mem-break.c: Ditto.
19350 * regcache.c: Ditto.
19351 * remote-utils.c: Ditto.
19352 * server.c: Ditto.
19353 * target.c: Ditto.
19354 * win32-low.c: Ditto.
19355
97438e3f
DE
193562008-12-12 Doug Evans <dje@google.com>
19357
896c7fbb
DE
19358 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19359 in debugging printf.
19360
97438e3f
DE
19361 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19362
e3b886f8
DE
193632008-12-09 Doug Evans <dje@google.com>
19364
19365 * linux-low.h (struct process_info): Delete member tid, unused.
19366 * thread-db.c (find_one_thread): Update.
19367 (maybe_attach_thread): Update.
19368
07e059b5
VP
193692008-12-02 Pedro Alves <pedro@codesourcery.com>
19370
889bf7c5
PA
19371 * target.h (struct target_ops): Add qxfer_osdata member.
19372 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19373 and dirent.h.
19374 (linux_qxfer_osdata): New functions.
19375 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19376 callback.
19377 * server.c (handle_query): Handle "qXfer:osdata:read:".
19378 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19379 (buffer_xml_printf): New functions.
19380 * server.h (struct buffer): New.
19381 (buffer_grow_str, buffer_grow_str0): New macros.
19382 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19383 (buffer_xml_printf): Declare.
07e059b5 19384
4cab47ab
DE
193852008-11-24 Doug Evans <dje@google.com>
19386
19387 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19388
f142445f
DJ
193892008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19390
19391 * server.c (handle_v_run): Always use the supplied argument list.
19392
d0107bb6 193932008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19394
d0107bb6
BW
19395 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19396 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19397
2c4ad781
TJB
193982008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19399
19400 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19401 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19402 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19403 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19404 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19405 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19406 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19407 XML target descriptions.
19408 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19409 when inferior is running on an ISA 2.05 or later processor. Add
19410 special case to return offset for full 64-bit slot of FPSCR when
19411 in 32-bits.
19412
dfb64f85
DJ
194132008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19414
19415 * Makefile.in (SFILES, clean): Added sparc64 files.
19416 (reg-sparc64.o, reg-sparc64.c): New.
19417 * configure.srv (sparc*-*-linux*): New configuration.
19418 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19419 syscall arguments for SPARC.
19420 (regsets_store_inferior_registers): Likewise.
19421 * linux-sparc-low.c: New file.
19422
66b6e1dd
DE
194232008-10-21 Doug Evans <dje@google.com>
19424
19425 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19426 (READLINE_DIR,READLINE_DEP): Delete.
19427 (INTERNAL_CFLAGS): Update.
19428 (LINTFLAGS): Update.
19429
9b710a42
PA
194302008-10-10 Pedro Alves <pedro@codesourcery.com>
19431
19432 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19433 whole argv from the last run, not just argv[0].
19434
5822d809
PA
194352008-09-08 Pedro Alves <pedro@codesourcery.com>
19436
19437 * regcache.c (new_register_cache): Return NULL if the register
19438 cache size isn't known yet.
19439 (free_register_cache): Avoid dereferencing a NULL regcache.
19440
74aac56f
DJ
194412008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19442
19443 * configure.srv: Merge MIPS and MIPS64.
19444
400b20f5
MR
194452008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19446
19447 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19448
677c5bb1
LM
194492008-08-18 Luis Machado <luisgpm@br.ibm.com>
19450
19451 * Makefile.in: Add required vsx dependencies.
19452
19453 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19454 Declare init_registers_powerpc_vsx32l.
19455 Declare init_registers_powerpc_vsx64l.
19456 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19457 (ppc_arch_setup): Check for VSX in hwcap.
19458 (ppc_fill_vsxregset): New function.
19459 (ppc_store_vsxregset): New function.
19460 Add new VSX entry in regset_info target_regsets.
19461
19462 * configure.srv: Add new VSX dependencies.
19463
a6f3e723
SL
194642008-08-12 Pedro Alves <pedro@codesourcery.com>
19465
19466 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19467 (remote_open): Set or clear transport_is_reliable.
19468 (putpkt_binary): Don't expect acks in noack mode.
19469 (getpkt): Don't send ack/nac in noack mode.
19470 * server.c (handle_general_set): Handle QStartNoAckMode.
19471 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19472 qSupported.
19473 (main): Reset noack_mode on every connection.
19474 * server.h (noack_mode): Declare.
19475
a417dc56
RW
194762008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19477
19478 * Makefile.in (GDBREPLAY_OBS): New variable.
19479 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19480
3221518c
UW
194812008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19482 Daniel Jacobowitz <dan@codesourcery.com>
19483
19484 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19485 (usr_store_inferior_registers): Likewise.
19486 (regsets_store_inferior_registers): Likewise.
19487
ec56be1b
PA
194882008-07-31 Rolf Jansen <rj@surtec.com>
19489 Pedro Alves <pedro@codesourcery.com>
19490
19491 * configure.ac: Check for memmem declaration.
19492 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19493 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19494 (disable_packet_qfThreadInfo): Unconditionally compile.
19495 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19496 * configure, config.in: Regenerate.
19497
2fe5e3ff
DE
194982008-07-28 Doug Kwan <dougkwan@google.com>
19499
19500 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19501 (linux_write_memory): Remove declaration of errno.
19502
836acd6d
UW
195032008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19504
19505 * linux-low.c (handle_extended_wait): Do not use "status"
19506 variable uninitialized.
19507
aeba519e
PA
195082008-07-07 Pedro Alves <pedro@codesourcery.com>
19509
19510 * server.c (handle_v_attach): Inhibit reporting dll changes.
19511
db42f210
PA
195122008-06-27 Pedro Alves <pedro@codesourcery.com>
19513
19514 * remote-utils.c (prepare_resume_reply): If requested, don't
19515 output "thread:TID" in the T stop reply.
19516
19517 * server.c (disable_packet_vCont, disable_packet_Tthread)
19518 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19519 (handle_query): If requested, disable support for qC, qfThreadInfo
19520 and qsThreadInfo.
19521 (handle_v_requests): If requested, disable support for vCont.
19522 (gdbserver_show_disableable): New.
19523 (main): Handle --disable-packet and --disable-packet=LIST.
19524
19525 * server.h (disable_packet_vCont, disable_packet_Tthread)
19526 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19527
8e4c5421
CD
195282008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19529
19530 * server.c (gdbserver_usage): Mention --version.
19531
6e23a804
DJ
195322008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19533
19534 * Makefile.in (gdbreplay.o): New rule.
19535
90aa6a40
JM
195362008-06-06 Joseph Myers <joseph@codesourcery.com>
19537
19538 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19539 message, not gdbserver.
19540
c16158bc 195412008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19542 Nathan Sidwell <nathan@codesourcery.com>
19543 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19544
19545 * acinclude.m4: Include ../../config/acx.m4.
19546 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19547 * configure, config.in: Regenerate.
19548 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19549 * server.c (gdbserver_version): Print PKGVERSION.
19550 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19551 (main): Adjust gdbserver_usage calls.
19552 * gdbreplay.c (version, host_name): Add declarations.
19553 (gdbreplay_version, gdbreplay_usage): New.
19554 (main): Accept --version and --help options.
19555
aeb75bf5
DJ
195562008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19557
19558 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19559 (arm_breakpoint_at): Handle Thumb.
19560 (the_low_target): Add comment.
19561
76b233dd
UW
195622008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19563
19564 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19565
08388c79
DE
195662008-05-09 Doug Evans <dje@google.com>
19567
a3c83fae
DE
19568 * server.h (decode_search_memory_packet): Declare.
19569 * remote-utils.c (decode_search_memory_packet): New fn.
19570 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19571 (handle_search_memory): New fn.
19572 (handle_query): Process qSearch:memory packets.
19573
bb9c3d36
UW
195742008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19575
19576 * regcache.c (registers_length): Remove.
19577 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19578 full register packet.
19579 * regcache.h (registers_length): Remove prototype.
19580 * server.h (PBUFSIZ): Define to 16384.
19581
7284e1be
UW
195822008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19583
19584 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19585 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19586 powerpc-64l.o, and powerpc-altivec64l.o.
19587 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19588 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19589 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19590 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19591 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19592 to srv_xmlfiles.
19593
19594 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19595 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19596 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19597 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19598 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19599 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19600 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19601 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19602 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19603 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19604 (clean): Update.
19605
19606 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19607 (init_registers_powerpc_32l): ... this new prototype.
19608 (init_registers_powerpc_32): Remove, replace by ...
19609 (init_registers_powerpc_altivec32l): ... this new prototype.
19610 (init_registers_powerpc_e500): Remove, replace by ...
19611 (init_registers_powerpc_e500l): ... this new prototype.
19612 (init_registers_ppc64): Remove, replace by ...
19613 (init_registers_powerpc_64l): ... this new prototype.
19614 (init_registers_powerpc_64): Remove, replace by ...
19615 (init_registers_powerpc_altivec64l): ... this new prototype.
19616 (ppc_num_regs): Set to 73.
19617 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19618 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19619 (ppc_cannot_store_register): Handle orig_r3 and trap.
19620 (ppc_arch_setup): Update init_registers_... calls.
19621 (ppc_fill_gregset): Handle orig_r3 and trap.
19622
19623 * inferiors.c (clear_inferiors): Reset current_inferior.
19624
fdc59709
PB
196252008-04-23 Paolo Bonzini <bonzini@gnu.org>
19626
889bf7c5
PA
19627 * acinclude.m4: Add override.m4.
19628 * configure: Regenerate.
fdc59709 19629
c9b2f845
UW
196302008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19631
19632 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19633 initial call to init_register_ppc64.
19634
550512b8
UW
196352008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19636
43aaf8b6
PA
19637 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19638 single powerpc*-*-linux* case.
550512b8
UW
19639 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19640
b6430ec3
UW
196412008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19642
19643 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19644 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19645 from reg_xmlfiles.
19646 * linux-ppc-low.c: Include <elf.h>.
19647 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19648 (ppc_hwcap): New global variable.
19649 (ppc_regmap): Remove __SPE__ #ifdef sections.
19650 (ppc_regmap_e500): New global variable.
19651 (ppc_cannot_store_register): Update __SPE__ special case.
19652 (ppc_get_hwcap): New function.
19653 (ppc_arch_setup): Use it to determine whether inferior supports
19654 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19655 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19656 Do not access registers if target does not support AltiVec.
19657 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19658 Do not access registers if target does not support SPE.
19659 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19660
52fa2412
UW
196612008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19662
19663 * linux-low.c (disabled_regsets, num_regsets): New.
19664 (use_regsets_p): Delete.
19665 (linux_wait_for_process): Clear disabled_regsets.
19666 (regsets_fetch_inferior_registers): Check and set it.
19667 (regsets_store_inferior_registers): Likewise.
19668 (linux_fetch_registers, linux_store_registers): Do not use
19669 use_regsets_p.
19670 (initialize_low): Allocate disabled_regsets.
19671
e28b3332
DJ
196722008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19673
19674 * Makefile.in (LIBOBJS): New.
19675 (OBS): Use LIBOBJS.
19676 (memmem.o): New rule.
19677 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19678 * configure: Regenerated.
19679
4536995d
UW
196802008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19681
19682 * server.c (handle_query): Never return "unsupported" for
19683 qXfer:features:read queries.
19684
221c031f
UW
196852008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19686
19687 * server.c (get_features_xml): Fix inverted condition.
19688 (handle_query): Always support qXfer:feature:read.
19689
ccd213ac
DJ
196902008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19691
19692 * server.c (wrapper_argv): New.
19693 (start_inferior): Handle wrapper_argv. If set, expect an extra
19694 trap.
19695 (gdbserver_usage): Document --wrapper.
19696 (main): Parse --wrapper.
19697
6fe305f7
UW
196982008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19699
19700 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19701 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19702 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19703 (ppc_set_pc): Likewise.
19704 (ppc_arch_setup): New function.
19705 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19706 of collect_register.
889bf7c5 19707 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 19708
5b0a002e
UW
197092008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19710
19711 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19712 instead of linux-ppc64-low.o.
19713 * linux-ppc64-low.c: Remove file.
19714 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19715 (linux-ppc64-low.o): Remove rule.
19716
19717 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19718 (init_registers_powerpc_64): Likewise.
19719 (ppc_regmap): Conditionally define depending on __powerpc64__.
19720 (ppc_cannot_store_register): Do not special-case "fpscr" when
19721 compiled on __powerpc64__.
19722 (ppc_collect_ptrace_register): New function.
19723 (ppc_supply_ptrace_register): New function.
19724 (ppc_breakpoint): Change type to "unsigned int".
19725 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19726 (the_low_target): Conditionally provide initializers for the
889bf7c5 19727 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
19728 collect_ptrace_register and supply_ptrace_register members.
19729
9b4b61c8
UW
197302008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19731
19732 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19733 * server.c (gdbserver_xmltarget): Define.
19734 (get_features_xml): Use it to replace "target.xml" and arch_string.
19735
19736 * configure.srv: Remove srv_xmltarget. Add XML files that were
19737 mentioned there to srv_xmlfiles instead. Remove conditional tests
19738 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19739 srv_xmlfiles and srv_regobj to include all possible choices.
19740 * configure.ac (srv_xmltarget): Remove.
19741 (srv_xmlfiles): Do not add "target.xml".
19742 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19743 checks for supplementary target information.
19744 * configure: Regenerate.
19745 * Makefile.in (XML_TARGET): Remove.
19746 (target.xml): Remove rule.
19747 (clean): Do not clean up target.xml.
19748 (.PRECIOUS): Do not mention target.xml.
19749
19750 * target.h (struct target_ops): Remove arch_string member.
19751 * linux-low.c (linux_arch_string): Remove.
19752 (linux_target_ops): Remove arch_string initializer.
19753 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19754 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19755 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19756 * spu-low.c (spu_arch_string): Remove.
19757 (spu_target_ops): Remove arch_string initializer.
19758 * win32-low.c (win32_arch_string): Remove.
19759 (win32_target_ops): Remove arch_string initializer.
19760 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19761 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19762 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19763
ee1a7ae4
UW
197642008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19765
19766 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19767 by collect_ptrace_register and supply_ptrace_register hooks.
19768 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19769 instead of checking for the_low_target.left_pad_xfer.
19770 (usr_store_inferior_registers): Use collect_ptrace_register callback
19771 instead of checking for the_low_target.left_pad_xfer.
19772
19773 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19774 (s390_supply_ptrace_register): Likewise.
19775 (s390_fill_gregset): Call s390_collect_ptrace_register.
19776 (the_low_target): Update.
19777
19778 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19779 (ppc_supply_ptrace_register): Likewise.
19780 (the_low_target): Update.
19781
19782 * linux-i386-low.c (the_low_target): Update.
19783 * linux-x86-64-low.c (the_low_target): Update.
19784
d61ddec4
UW
197852008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19786
19787 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19788 reg-s390.o and reg-s390x.o.
19789
19790 * linux-low.c (new_inferior): New global variable.
19791 (linux_create_inferior, linux_attach): Set it.
19792 (linux_wait_for_process): Call the_low_target.arch_setup after the
19793 target has stopped for the first time.
19794 (initialize_low): Do not call the_low_target.arch_setup.
19795
19796 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19797 (s390_set_pc): Likewise.
19798 (s390_arch_setup): New function.
19799 (the_low_target): Use s390_arch_setup as arch_setup routine.
19800
19801 * regcache.c (realloc_register_cache): New function.
19802 (set_register_cache): Call it for each existing regcache.
19803
d05b4ac3
UW
198042008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19805
19806 * server.h (init_registers): Remove prototype.
19807
19808 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19809 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19810 instead of init_registers ().
19811 * linux-arm-low.c (init_registers_arm): Add prototype.
19812 (init_registers_arm_with_iwmmxt): Likewise.
19813 (the_low_target): Add initializer for arch_setup field.
19814 * linux-cris-low.c (init_registers_cris): Add prototype.
19815 (the_low_target): Add initializer for arch_setup field.
19816 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19817 (the_low_target): Add initializer for arch_setup field.
19818 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19819 (the_low_target): Add initializer for arch_setup field.
19820 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19821 (the_low_target): Add initializer for arch_setup field.
19822 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19823 (the_low_target): Add initializer for arch_setup field.
19824 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19825 (the_low_target): Add initializer for arch_setup field.
19826 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19827 (init_registers_mips64_linux): Likewise.
19828 (the_low_target): Add initializer for arch_setup field.
19829 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19830 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19831 (the_low_target): Add initializer for arch_setup field.
19832 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19833 (init_registers_powerpc_64): Likewise.
19834 (the_low_target): Add initializer for arch_setup field.
19835 * linux-s390-low.c (init_registers_s390): Add prototype.
19836 (init_registers_s390x): Likewise.
19837 (the_low_target): Add initializer for arch_setup field.
19838 * linux-sh-low.c (init_registers_sh): Add prototype.
19839 (the_low_target): Add initializer for arch_setup field.
19840 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19841 (the_low_target): Add initializer for arch_setup field.
19842 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19843 (the_low_target): Add initializer for arch_setup field.
19844
19845 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19846 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19847 instead of init_registers ().
19848 * win32-arm-low.c (init_registers_arm): Add prototype.
19849 (the_low_target): Add initializer for arch_setup field.
19850 * win32-i386-low.c (init_registers_i386): Add prototype.
19851 (the_low_target): Add initializer for arch_setup field.
19852
19853 * spu-low.c (init_registers_spu): Add prototype.
19854 (initialize_low): Call initialie_registers_spu () instead of
19855 initialize_registers ().
19856
fd96d250
PA
198572008-02-19 Pedro Alves <pedro@codesourcery.com>
19858
19859 * server.c (handle_v_requests): When handling the vRun and vAttach
19860 packets, if already debugging a process, don't kill it. Return an
19861 error instead.
19862
d41b6bb4
DJ
198632008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19864
19865 * server.c (handle_query): Correct length check.
19866
5ac588cf
PA
198672008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19868
19869 * win32-low.c (do_initial_child_stuff): Add process handle
19870 parameter. Set current_process_handle and current_process_id from the
19871 parameters. Clear globals.
19872 (win32_create_inferior): Don't set current_process_handle and
19873 current_process_id here. Instead pass them on the call to
19874 do_initial_child_stuff.
19875 (win32_attach): Likewise.
19876 (win32_clear_inferiors): New.
19877 (win32_kill): Don't close the current process handle or the
19878 current thread handle here. Instead call win32_clear_inferiors.
19879 (win32_detach): Don't open a new handle to the process. Call
19880 win32_clear_inferiors.
19881 (win32_join): Don't rely on current_process_handle; open a new
19882 handle using the process id.
19883 (win32_wait): Call win32_clear_inferiors when the inferior process
19884 has exited.
19885
ecd7ecbc
DJ
198862008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19887
19888 * server.c (monitor_show_help): Add "exit".
19889
1525d545
MG
198902008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19891
ecd7ecbc 19892 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
19893 (clean): Add reg-xtensa.c.
19894 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
19895 * configure.srv (xtensa*-*-linux*) New target.
19896 * linux-xtensa-low.c: New.
19897 * xtensa-xtregs.c: New.
1525d545 19898
59a016f0
PA
198992008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19900
19901 * hostio.c: Don't include errno.h.
19902 (errno_to_fileio_errno): Move to hostio-errno.
19903 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19904 error number outputting to the target->hostio_last_error callback.
19905 (hostio_packet_error): Use FILEIO_EINVAL directly.
19906 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19907 calls to hostio_error.
19908 * hostio-errno.c: New.
19909 * server.h (hostio_last_error_from_errno): Declare.
19910 * target.h (target_ops): Add hostio_last_error member.
19911 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19912 as hostio_last_error handler.
889bf7c5 19913 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
19914 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19915 (wince_hostio_last_error): New functions.
19916 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19917 as hostio_last_error handler.
19918 (win32_target_ops) [!_WIN32_WCE]: Register
19919 hostio_last_error_from_errno as hostio_last_error handler.
19920 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19921 (hostio-errno.o): New rule.
19922 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19923 * configure.srv (srv_hostio_err_objs): New variable. Default to
19924 hostio-errno.o.
19925 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19926 * configure: Regenerate.
19927
2d717e4f
DJ
199282008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19929
19930 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
19931 (linux_kill, linux_detach): Clean up the process list.
19932 * remote-utils.c (remote_open): Improve port number parsing.
19933 (putpkt_binary, input_interrupt): Only send interrupts if the target
19934 is running.
19935 * server.c (extended_protocol): Make static.
19936 (attached): Define earlier.
19937 (exit_requested, response_needed, program_argv): New variables.
19938 (target_running): New.
19939 (start_inferior): Clear attached here.
19940 (attach_inferior): Set attached here.
19941 (require_running): Define.
19942 (handle_query): Use require_running and target_running. Implement
19943 "monitor exit".
19944 (handle_v_attach, handle_v_run): New.
19945 (handle_v_requests): Use require_running. Handle vAttach and vRun.
19946 (gdbserver_usage): Update.
19947 (main): Redo argument parsing. Handle --debug and --multi. Handle
19948 --attach along with other options or after the port. Save
19949 program_argv. Support no initial program. Resynchronize
19950 communication with GDB after an error. Handle "monitor exit".
19951 Use require_running and target_running. Always allow the extended
19952 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
19953 restart in extended mode.
19954 * README: Refer to the GDB manual. Update --attach usage.
19955
7407e2de
AS
199562007-12-20 Andreas Schwab <schwab@suse.de>
19957
19958 * linux-low.c (STACK_SIZE): Define.
19959 (linux_tracefork_child): Use it. Use __clone2 on ia64.
19960 (linux_test_for_tracefork): Likewise.
19961
b65d95c5
DJ
199622007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
19963
19964 * linux-low.c (linux_wait_for_event): Update messages. Do not
19965 reinsert auto-delete breakpoints.
19966 * mem-break.c (struct breakpoint): Change return type of handler to
19967 int.
19968 (set_breakpoint_at): Update handler type.
19969 (reinsert_breakpoint_handler): Return 1 instead of calling
19970 delete_breakpoint.
19971 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
19972 setting a new one.
19973 (check_breakpoints): Delete auto-delete breakpoints and return 2.
19974 * mem-break.h (set_breakpoint_at): Update handler type.
19975 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
19976 * win32-low.c (auto_delete_breakpoint): New.
19977 (get_child_debug_event): Use it.
19978
4e799345
DJ
199792007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
19980
19981 * configure.ac: Check for pread and pwrite.
19982 * hostio.c (handle_pread): Fall back to lseek and read.
19983 (handle_pwrite): Fall back to lseek and write.
19984 * config.in, configure: Regenerated.
19985
27524b67
DJ
199862007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
19987
19988 * server.c (myresume): Add own_buf argument.
19989 (main): Update calls.
19990
a20d5e98
DJ
199912007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
19992
19993 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
19994 * remote-utils.c (remote_open): Do not call disable_async_io.
19995 (block_async_io): Delete.
19996 (unblock_async_io): Make static.
19997 (initialize_async_io): New.
19998 * server.c (handle_v_cont): Handle async I/O here.
19999 (myresume): Likewise. Move other common resume tasks here...
20000 (main): ... from here. Call initialize_async_io. Disable async
20001 I/O before the main loop.
20002 * server.h (initialize_async_io): Declare.
20003 (block_async_io, unblock_async_io): Delete prototypes.
20004 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20005
b79d787e
DJ
200062007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20007
20008 * remote-utils.c (readchar): Allow binary data in received messages.
20009
d97903b2
PA
200102007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20011
20012 * win32-low.c (attaching): New global.
20013 (win32_create_inferior): Clear the `attaching' global.
20014 (win32_attach): Set the `attaching' global.
20015 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20016 attaching. Only set a breakpoint at the entry point if not
20017 attaching.
20018
311de423
PA
200192007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20020
20021 * server.c (main): Don't report dll events on the initial
20022 connection on attaches.
20023
6c2d16d2
PA
200242007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20025
20026 * server.c (main): Relax numerical bases supported for the pid of
20027 the --attach command line argument.
20028
5ca906e6
PA
200292007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20030
20031 * win32-low.c (win32_attach): Call OpenProcess before
20032 DebugActiveProcess, not after. Add last error output to error
20033 call.
20034
9c6c8194
PA
200352007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20036
20037 * win32-low.c (win32_get_thread_context)
20038 (win32_set_thread_context): New functions.
20039 (thread_rec): Use win32_get_thread_context.
20040 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20041 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20042 field.
20043
4d5d1aaa
PA
200442007-12-03 Leo Zayas
20045 Pedro Alves <pedro_alves@portugalmail.pt>
20046
20047 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20048 global variables.
20049 (child_add_thread): Minor cleanup.
20050 (child_continue): Resume artificially suspended threads before
20051 calling ContinueDebugEvent.
20052 (suspend_one_thread): New.
20053 (fake_breakpoint_event): New.
20054 (get_child_debug_event): Change return type to int. Check here if
20055 gdb sent an interrupt request. If a soft interrupt was requested,
20056 fake a breakpoint event. Return 0 if there is no event to handle,
20057 and 1 otherwise.
20058 (win32_wait): Don't check here if gdb sent an interrupt request.
20059 Ensure there is a valid event to handle.
20060 (win32_request_interrupt): Add soft interruption method as last
20061 resort.
20062
c436e841
PA
200632007-12-03 Leo Zayas
20064 Pedro Alves <pedro_alves@portugalmail.pt>
20065
20066 * win32-low.h (win32_thread_info): Add descriptions to the
20067 structure members. Replace `suspend_count' counter by a
20068 `suspended' flag.
20069 * win32-low.c (thread_rec): Update condition of when to get the
20070 context from the inferior. Rely on ContextFlags being set if it
20071 has already been retrieved. Only suspend the inferior thread if
20072 we haven't already. Warn if that fails.
20073 (continue_one_thread): s/suspend_count/suspended/. Only call
20074 ResumeThread once. Warn if that fails.
20075
e7b5fa67
PA
200762007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20077
20078 * win32-low.c (win32_wait): Don't read from the inferior when it
20079 has already exited.
20080
a385171d
PA
200812007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20082
20083 * Makefile.in (win32_low_h): New variable.
20084 (win32-low.o): Add dependency on $(win32_low_h).
20085 (win32-arm-low.o, win32-i386-low.o): New rules.
20086
f80c84b3
DJ
200872007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20088
20089 * hostio.c: Correct copyright year.
20090
a6b151f1
DJ
200912007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20092
20093 * Makefile.in (OBS): Add hostio.o.
20094 (hostio.o): New rule.
20095 * server.h (handle_vFile): Declare.
20096 * hostio.c: New file.
20097 * server.c (handle_v_requests): Take packet_len and new_packet_len
20098 for binary packets. Call handle_vFile.
20099 (main): Update call to handle_v_requests.
20100
f9387fc3
DJ
201012007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20102
20103 * linux-low.c: Include <sched.h>.
20104
51c2684e
DJ
201052007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20106
20107 * linux-low.c (linux_tracefork_grandchild): New.
20108 (linux_tracefork_child): Use clone.
20109 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20110
75f83163
JB
201112007-10-31 Joel Brobecker <brobecker@adacore.com>
20112
20113 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20114
da5898ce
DJ
201152007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20116
20117 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20118
24a09b5f
DJ
201192007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20120
20121 * inferiors.c (change_inferior_id): Delete.
20122 (add_pid_to_list, pull_pid_from_list): New.
20123 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20124 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20125 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20126 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20127 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20128 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20129 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20130 (using_threads): Always set to 1.
20131 (handle_extended_wait): New.
20132 (add_process): Do not set TID.
20133 (linux_create_inferior): Set must_set_ptrace_flags.
20134 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20135 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20136 (linux_thread_alive): Rename TID argument to LWPID.
20137 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20138 (linux_wait_for_event): Do not use TID or check using_threads. Update
20139 call to dead_thread_notify. Call handle_extended_wait.
20140 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20141 (send_sigstop): Delete sigstop_sent.
20142 (wait_for_sigstop): Avoid TID.
20143 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20144 (linux_test_for_tracefork): New.
20145 (linux_lookup_signals): Use thread_db_active and
20146 linux_supports_tracefork_flag.
20147 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20148 * linux-low.h (get_process_thread): Avoid TID.
20149 (struct process_ifo): Move thread_known and tid to the end. Remove
20150 sigstop_sent.
20151 (linux_attach_lwp, thread_db_init): Update prototypes.
20152 * server.h (change_inferior_id): Delete prototype.
20153 (add_pid_to_list, pull_pid_from_list): New prototypes.
20154 * thread-db.c (thread_db_use_events): New.
20155 (find_first_thread): Rename to...
20156 (find_one_thread): ...this. Update callers and messages. Do not
20157 call fatal. Check thread_db_use_events. Do not call
20158 change_inferior_id or new_thread_notify.
20159 (maybe_attach_thread): Update. Do not call new_thread_notify.
20160 (thread_db_init): Set thread_db_use_events. Check use_events.
20161 * utils.c (fatal, warning): Correct message prefix.
20162
30ed0a8f
DJ
201632007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20164
20165 * Makefile.in (clean): Remove new files.
20166 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20167 (powerpc-64.o, powerpc-64.c): New rules.
20168 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20169 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20170 with SPE.
20171 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20172 SPE targets.
20173 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20174 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20175 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20176 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20177 (target_regsets): Add AltiVec and SPE register sets.
20178 * configure.ac: Check for AltiVec and SPE.
20179 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20180 (ppc_fill_vrregset, ppc_store_vrregset): New.
20181 (target_regsets): Add AltiVec register set.
20182 * configure: Regenerated.
20183
fd462a61
DJ
201842007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20185
20186 * linux-low.c (O_LARGEFILE): Define.
20187 (linux_read_memory): Use /proc/PID/mem.
20188 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20189 * configure, config.in: Regenerated.
20190
69f223ed
DJ
201912007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20192
20193 * linux-low.c (linux_wait_for_event): Do not pass signals while
20194 single-stepping.
20195
aec18585
PA
201962007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20197
20198 * win32-low.c (create_process): New.
20199 (win32_create_inferior): Use create_process instead of
20200 CreateProcess. If create_process failed retry appending an ".exe"
20201 suffix. Store the GetLastError result immediatelly after
20202 create_process calls and use it on the call to error.
20203
34d86ddd
PA
202042007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20205
20206 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20207
5a0e3bd0
JB
202082007-08-23 Joel Brobecker <brobecker@adacore.com>
20209
20210 * configure.ac: Switch license to GPLv3.
20211
f88c79e6
MS
202122007-08-01 Michael Snyder <msnyder@access-company.com>
20213
20214 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20215
6b3d9b83
PA
202162007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20217
20218 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20219 typedef.
20220 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20221 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20222 CloseToolhelp32Snapshot.
20223 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20224 CloseToolhelp32Snapshot.
20225
c588c53c
MS
202262007-07-27 Michael Snyder <michael.snyder@access-company.com>
20227
20228 * server.c (main): Check for inferior exit before main loop.
20229
aa0403d9
PA
202302007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20231
20232 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20233 instead of on tmp_desc.
20234
255e7678
DJ
202352007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20236 Daniel Jacobowitz <dan@codesourcery.com>
20237
20238 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20239 (add_thread): Minor cleanups.
20240 (clear_inferiors): Move lower in the file. Clear the DLL
20241 list.
20242 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20243 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20244 (xml_escape_text): New.
20245 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20246 for qSupported.
20247 (handle_v_cont): Report errors.
20248 (gdbserver_version): Update.
20249 (main): Correct size of own_buf. Do not report initial DLL events.
20250 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20251 (unloaded_dll, xml_escape_text): New.
20252 * win32-low.c (enum target_waitkind): Update comments.
20253 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20254 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20255 (win32_EnumProcessModules, win32_GetModuleInformation)
20256 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20257 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20258 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20259 (win32_Module32First, win32_Module32Next, load_toolhelp)
20260 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20261 (get_child_debug_event): Handle DLL events.
20262 (win32_wait): Likewise.
20263
0d37add9
DJ
202642007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20265
20266 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20267 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20268
45e2715e
PA
202692007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20270
20271 * win32-low.c (handle_output_debug_string): Ignore event if not
20272 waiting.
20273
c5674cf1
PA
202742007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20275
20276 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20277
2bbe3cc1
DJ
202782007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20279
20280 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20281
ae13219e
DJ
202822007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20283
20284 * inferiors.c (change_inferior_id): Add comment.
20285 * linux-low.c (check_removed_breakpoint): Add an early
20286 prototype. Improve debug output.
20287 (linux_attach): Doc update.
20288 (linux_detach_one_process, linux_detach): Clean up before releasing
20289 each process.
20290 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20291 * linux-low.h (struct process_info): Doc improvement.
20292 * mem-break.c (delete_all_breakpoints): New.
20293 * mem-break.h (delete_all_breakpoints): New prototype.
20294 * thread-db.c (find_first_thread): New.
20295 (thread_db_create_event): Call it instead of
20296 thread_db_find_new_threads. Clean up unused variables.
20297 (maybe_attach_thread): Remove first thread handling.
20298 (thread_db_find_new_threads): Use find_first_thread.
20299 (thread_db_get_tls_address): Likewise.
20300
4105de34
DJ
203012007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20302
20303 * thread-db.c (thread_db_find_new_threads): Add prototype.
20304 (thread_db_create_event): Check for the main thread before adding
20305 a new thread.
20306 (maybe_attach_thread): Only enable event reporting if TID == 0.
20307 (thread_db_get_tls_address): Check for new threads.
20308
2b876972
DJ
203092007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20310
20311 * linux-low.c (linux_create_inferior): Try execv before execvp.
20312 * spu-low.c (spu_create_inferior): Likewise.
20313
7a245884
DJ
203142007-06-13 Mike Frysinger <vapier@gentoo.org>
20315
20316 * linux-low.c (linux_create_inferior): Change execv to execvp.
20317 * spu-low.c (spu_create_inferior): Likewies.
20318
117ce543
DJ
203192007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20320
20321 * Makefile.in (clean): Clean new files instead of deleted ones.
20322 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20323 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20324 rules.
20325 * configure.srv: Specify XML files and new regformats for MIPS and
20326 MIPS64 GNU/Linux.
20327 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20328 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20329 an entry for the restart register.
20330 (mips_cannot_fetch_register, mips_cannot_store_register)
20331 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20332 register names to match the XML descriptions.
20333 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20334 restart register instead of $0.
20335
0e7f50da
UW
203362007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20337 Markus Deuling <deuling@de.ibm.com>
20338
20339 * remote-utils.c (decode_xfer_write): New function.
20340 * server.h (decode_xfer_write): Add prototype.
20341 * server.c (handle_query): Add PACKET_LEN argument. Support
20342 qXfer:spu:read and qXfer:spu:write packets.
20343 (main): Pass packet_len to handle_query.
20344 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20345 * target.h (target_ops): Add qxfer_spu.
20346
374c1d38
UW
203472007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20348
20349 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20350 accessing non-seekable spufs files.
20351
bb63802a
UW
203522007-05-16 Markus Deuling <deuling@de.ibm.com>
20353
889bf7c5 20354 * server.c (handle_query): Add reply for qC packet.
bb63802a 20355
7390519e
PA
203562007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20357 Leo Zayas <lerele@champenstudios@com>
20358
20359 * server.h (check_remote_input_interrupt_request): New function.
20360 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20361 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20362 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20363 (check_remote_input_interrupt_request): New function.
20364 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20365 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20366 winapi_GenerateConsoleCtrlEvent): New typedefs.
20367 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20368 to 250 ms.
20369 (win32_wait): Check for remote interrupt request
20370 with check_remote_input_interrupt_request.
20371 (win32_request_interrupt): New function.
20372 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20373
34b34921
PA
203742007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20375
20376 * win32-low.c (debug_registers_changed,
20377 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20378 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20379 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20380 (thread_rec): Get context using the low target.
20381 (child_add_thread): Call thread_added on the low target,
20382 which does the same thing.
20383 (regptr): Delete.
20384 (do_initial_child_stuff): Remove debug registers references.
20385 Set context using the low target. Resume threads after
20386 setting the contexts.
20387 (child_continue): Remove dead variable. Remove debug
20388 registers references.
20389 (child_fetch_inferior_registers): Go through the low target.
20390 (do_child_store_inferior_registers): Remove.
20391 (child_store_inferior_registers): Go through the low target.
20392 (win32_resume): Remove debug registers references.
20393 Set context using the low target.
20394 (handle_exception): Change return type to void. Don't record
20395 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20396 first chance exception.
889bf7c5 20397 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20398 goto loop. Always return after waiting for debug event.
20399 (win32_wait): Convert to switch statement. Handle spurious
20400 events.
20401
20402 * win32-i386-low.c (debug_registers_changed,
20403 debug_registers_used): New.
20404 (initial_stuff): Rename to ...
20405 (i386_initial_stuff): ... this. Clear debug registers
20406 state variables.
20407 (store_debug_registers): Delete.
20408 (i386_get_thread_context): New.
20409 (load_debug_registers): Delete.
20410 (i386_set_thread_context): New.
20411 (i386_thread_added): New.
20412 (single_step): Rename to ...
20413 (i386_single_step): ... this.
20414 (do_fetch_inferior_registers): Rename to ...
20415 (i386_fetch_inferior_register): ... this.
20416 (i386_store_inferior_register): New.
20417 (the_low_target): Adapt to new interface.
20418
20419 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20420 (arm_get_thread_context): New.
20421 (arm_set_thread_context): New.
20422 (regptr): New.
20423 (do_fetch_inferior_registers): Rename to ...
20424 (arm_fetch_inferior_register): ... this.
20425 (arm_store_inferior_register): New.
20426 (arm_wince_breakpoint): Reimplement as unsigned long.
20427 (arm_wince_breakpoint_len): Define.
20428 (the_low_target): Adapt to new interface.
20429
20430 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20431 load_debug_registers. Add get_thread_context, set_thread_context,
20432 thread_added and store_inferior_register. Rename
20433 fetch_inferior_registers to fetch_inferior_register.
20434 (regptr): Remove declaration.
20435
dd6953e1
PA
204362007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20437
20438 * linux-low.c (linux_detach): Change return type to int. Return 0.
20439 * spu-low.c (spu_detach): Likewise.
20440
444d6139
PA
204412007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20442
20443 * target.h (target_ops): Change return type of detach to int.
20444 Add join.
20445 (join_inferior): New.
20446 * server.c (main): Don't skip detach support on mingw32.
20447 If the inferior doesn't support detaching return error.
20448 Call join_inferior instead of using waitpid.
20449 * linux-low.c (linux_join): New.
20450 (linux_target_op): Add linux_join.
20451 * spu-low.c (spu_join): New.
20452 (spu_target_ops): Add spu_join.
20453 * win32-low.c (win32_detach): Adapt to new interface.
20454 Reopen current_process_handle before detaching. Issue a child
20455 resume before detaching.
20456 (win32_join): New.
20457 (win32_target_op): Add win32_join.
20458
1d5315fe
PA
204592007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20460
20461 * win32-low.c (win32-attach): Fix return value.
20462 * target.h (target_ops): Describe ATTACH return values.
20463
bf914831
PA
204642007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20465
20466 * win32-low.c (GETPROCADDRESS): Define.
20467 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20468 (winapi_DebugSetProcessKillOnExit): Likewise.
20469 (win32_create_inferior): Force usage of ansi CreateProcessA.
20470 (win32_attach): Use GETPROCADDRESS.
20471 (win32_detach): Likewise.
20472
f72f3e60
PA
204732007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20474
20475 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20476
ed50f18f
PA
204772007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20478
20479 * win32-low.c: Commit leftover changes from 2007-03-29.
20480
0c2ead7e
DJ
204812007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20482
20483 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20484 fields short instead of int. Add explicit padding.
20485 (i387_cache_to_fsave): Remove unnecessary casts.
20486 (i387_fsave_to_cache): Doc fix.
20487 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20488
73725ff3
DJ
204892007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20490
20491 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20492 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20493
d99f33d8
PA
204942007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20495
20496 * configure.srv (arm*-*-mingw32ce*): Move near the other
20497 arm targets.
20498
68070c10
PA
204992007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20500
2482afc6 20501 * configure.ac: Add errno checking.
68070c10
PA
20502 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20503 sys/file.h and malloc.h.
20504 (AC_CHECK_DECLS): Add perror.
20505 (srv_mingwce): Handle.
2482afc6 20506 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20507 win32-i386-low.o to srv_tgtobj.
20508 (i[34567]86-*-mingw*): Likewise.
20509 (arm*-*-mingw32ce*): Add case.
20510 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20511 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20512 [__MINGW32CE__] (strerror): New function.
20513 [__MINGW32CE__] (errno): Define to GetLastError.
20514 [__MINGW32CE__] (COUNTOF): New macro.
20515 (remote_open): Remove extra close call.
20516 * mem-break.c (delete_breakpoint_at): New function.
20517 * mem-break.h (delete_breakpoint_at): Declare.
20518 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20519 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20520 [USE_WIN32API] (read, write): Add char* casts.
20521 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20522 * server.h: Include wincecompat.h on Windows CE.
20523 [HAVE_ERRNO_H]: Check.
20524 (perror): Declare if not declared.
20525 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20526 (perror_with_name): Remove errno declaration.
20527 * wincecompat.h: New.
20528 * wincecompat.c: New.
20529 * win32-low.h: New.
20530 * win32-arm-low.c: New.
20531 * win32-i386-low.c: New.
20532 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20533 (OUTMSG2): Make it safe.
20534 (_T): New macro.
20535 (COUNTOF): New macro.
20536 (NUM_REGS): Get it from the low target.
20537 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20538 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20539 (thread_rec): Let low target handle debug registers.
20540 (child_add_thread): Likewise.
20541 (child_init_thread_list): Likewise.
20542 (continue_one_thread): Likewise.
20543 (regptr): New.
20544 (do_child_fetch_inferior_registers): Move to ...
20545 * win32-i386-low.c: ... here, and rename to ...
20546 (do_fetch_inferior_registers): ... this.
889bf7c5 20547 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20548 Go through the low target.
20549 (do_child_store_inferior_registers): Use regptr.
20550 (strwinerror): New function.
20551 (win32_create_inferior): Handle Windows CE.
20552 Use strwinerror instead of strerror on Windows error
20553 codes. Add program to the error output.
20554 Don't close the main thread handle on Windows CE.
20555 (win32_attach): Use coredll.dll on Windows CE.
20556 (win32_kill): Close current process and current
20557 thread handles.
20558 (win32_detach): Use coredll.dll on Windows CE.
20559 (win32_resume): Let low target handle debug registers, and
20560 step request.
20561 (handle_exception): Add/Remove initial breakpoint. Avoid
20562 non-existant WSTOPSIG on Windows CE.
20563 (win32_read_inferior_memory): Cast to remove warning.
20564 (win32_arch_string): Go through the low target.
20565 (initialize_low): Call set_breakpoint_data with the low
20566 target's breakpoint.
20567 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20568 FOP_REGNUM, mappings): Move to ...
20569 * win32-i386-low.c: ... here.
20570 * win32-low.c (win32_thread_info): Move to ...
20571 * win32-low.h: ... here.
20572 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20573 win32-arm-low.c and wincecompat.c.
20574 (all:): Add $EXEEXT.
20575 (install-only:): Likewise.
20576 (gdbserver:): Likewise.
20577 (gdbreplay:): Likewise.
20578 * config.in: Regenerate.
20579 * configure: Regenerate.
20580
41093d81
PA
205812007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20582
20583 * win32-low.c: Rename typedef thread_info to
20584 win32_thread_info throughout.
20585
544afa54
PA
205862007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20587
20588 * win32-i386-low.c: Rename to ...
20589 * win32-low.c: ... this.
20590 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20591 * Makefile.in: Likewise.
20592
bce7165d
PA
205932007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20594
20595 * remote-utils.c (monitor_output): Constify msg parameter.
20596 * server.h (monitor_output): Likewise.
20597 * win32-i386-low.c (handle_output_debug_string): New.
20598 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20599 handle_output_debug_string.
20600 (get_child_debug_event): Likewise.
20601
506c7aa0
DJ
206022007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20603
20604 * server.c (main): Correct strtoul check.
20605
42c81e2a
DJ
206062007-03-27 Jon Ringle <jon@ringle.org>
20607
20608 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20609
9453113a
DJ
206102007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20611
20612 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20613
64a69107
DJ
206142007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20615
20616 * terminal.h: Check HAVE_SGTTY_H.
20617
206182007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20619
20620 * remote-utils.c (remote_open): Print out the assigned port number.
20621
c74d0ad8
DJ
206222007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20623
20624 * remote-utils.c (monitor_output): New function.
20625 * server.c (debug_threads): Define here.
20626 (monitor_show_help): New function.
20627 (handle_query): Handle qRcmd.
20628 (main): Do not handle 'd' packet.
20629 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20630 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20631 of debug_threads.
20632
de7c3b4a
PA
206332007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20634
20635 * Makefile.in (EXEEXT): New.
20636 (clean): Use $(EXEEXT).
20637
ef57601b
PA
206382007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20639
20640 * target.h (target_ops): Rename send_signal to request_interrupt,
20641 and remove enum target_signal parameter.
20642 * linux-low.c (linux_request_interrupt): Rename from
20643 linux_send_signal, and always send SIGINT.
20644 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20645 and always send SIGINT.
20646 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20647 of send_signal.
20648 (input_interrupt): Likewise.
20649
820f2bda
PA
206502007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20651
20652 * server.c (get_features_xml): Check if target implemented
20653 arch_string.
20654 * win32-i386-low.c (win32_arch_string): New.
20655 (win32_target_ops): Add win32_arch_string as arch_string member.
20656
ab39bf24
UW
206572007-02-22 Markus Deuling <deuling@de.ibm.com>
20658
20659 * spu-low.c (spu_arch_string): New.
20660 (spu_target_ops): Add spu_arch_string.
20661
61ff6e04
DJ
206622007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20663
20664 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20665 * configure.ac: Do not check for terminal.h.
20666 * configure, config.in: Regenerated.
20667
fb1e4ffc
DJ
206682007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20669
20670 * Makefile.in (OBS): Add $(XML_BUILTIN).
20671 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20672 (clean): Update.
20673 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20674 (arm-with-iwmmxt.c): New.
20675 * config.in, configure: Regenerate.
20676 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20677 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20678 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20679 (arm*-*-linux*): Add iWMMXt and regset support.
20680 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20681 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20682 (arm_store_wmmxregset, target_regsets): New.
20683 * server.c (get_features_xml): Take annex argument. Check builtin
20684 XML documents.
20685 (handle_query): Handle multiple annexes.
20686
0f48aa01
DJ
206872007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20688
20689 * remote-utils.c [USE_WIN32API] (read, write): Define.
20690 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20691 write.
20692
23181151
DJ
206932007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20694
20695 * linux-i386-low.c (the_low_target): Set arch_string.
20696 * linux-x86-64-low.c (the_low_target): Likewise.
20697 * linux-low.c (linux_arch_string): New.
20698 (linux_target_ops): Add it.
20699 * linux-low.h (struct linux_target_ops): Add arch_string.
20700 * server.c (write_qxfer_response): Use const void * for DATA.
20701 (get_features_xml): New.
20702 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20703 * target.h (struct target_ops): Add arch_string method.
20704
9d606399
DJ
207052007-01-03 Denis Pilat <denis.pilat@st.com>
20706 Daniel Jacobowitz <dan@codesourcery.com>
20707
20708 * linux-low.c (linux_kill): Handle being called with no threads.
20709 * win32-i386-low.c (win32_kill): Likewise.
20710 (get_child_debug_event): Clear current_process_handle.
20711
207122006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
20713 Daniel Jacobowitz <dan@codesourcery.com>
20714
20715 * remote-utils.c (remote_open): Check the type of specified
20716 serial port devices before opening them.
20717 * server.c (main): Kill the inferior if an error occurs during
20718 the first remote_open.
20719
a5e13d24
DJ
207202006-12-05 Markus Deuling <deuling@de.ibm.com>
20721
20722 * README: Update supported targets.
20723
186947f7
DJ
207242006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20725
20726 * Makefile.in (clean): Remove reg-mips64.c.
20727 (reg-mips64.c, reg-mips64.o): New rules.
20728 * configure.srv: Handle mips64. Include regset support for mips.
20729 * linux-mips-low.c (union mips_register): New.
20730 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20731 (mips_breakpoint, mips_breakpoint_at): Use int.
20732 (mips_collect_register, mips_supply_register)
20733 (mips_collect_register_32bit, mips_supply_register_32bit)
20734 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20735 (mips_store_fpregset, target_regsets): New.
20736 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20737
a13e2c95
UW
207382006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20739
20740 * configure.srv: Add target "spu*-*-*".
20741 * Makefile.in (clean): Remove reg-spu.c.
20742 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20743 * spu-low.c: New file.
20744
cb7283db
DJ
207452006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20746
20747 * configure.ac: Correct td_thr_tls_get_addr test.
20748 * configure: Regenerated.
20749
89be2091
DJ
207502006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20751
20752 * linux-low.c (linux_wait_for_event): Reformat. Use the
20753 pass_signals array.
20754 * remote-utils.c (decode_address_to_semicolon): New.
20755 * server.c (pass_signals, handle_general_set): New.
20756 (handle_query): Mention QPassSignals for qSupported.
20757 (main): Call handle_general_set.
20758 * server.h (pass_signals, decode_address_to_semicolon): New.
20759
000ef4f0
DJ
207602006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20761
20762 * server.c (handle_query): Correct error handling for read_auxv.
20763
b7149293
UW
207642005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20765
20766 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20767 and srv_linux_thread_db to yes.
20768 * linux-s390-low.c (s390_fill_gregset): New function.
20769 (target_regsets): Define data structure.
20770
dae5f5cf
DJ
207712006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20772
20773 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20774 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20775 * config.in, configure: Regenerated.
20776 * inferiors.c (gdb_id_to_thread): New function.
20777 (gdb_id_to_thread_id): Use it.
20778 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20779 * linux-low.h (struct process_info): Add th member.
20780 (thread_db_get_tls_address): New prototype.
20781 * remote-utils.c (decode_address): Make non-static.
20782 * server.c (handle_query): Handle qGetTLSAddr.
20783 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20784 * target.h (struct target_ops): Add get_tls_address.
20785 * thread-db.c (maybe_attach_thread): Save the thread handle.
20786 (thread_db_get_tls_address): New.
20787
32ca6d61
DJ
207882006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20789
20790 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20791 (linux_resume_one_process): Take a siginfo_t *. Update all
20792 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20793 (struct pending_signals): Add a siginfo_t.
20794 (linux_wait_for_process): Always set last_status.
20795 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20796 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20797 * linux-low.h (struct process_info): Add last_status.
20798
5ffff7c1
DJ
207992006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20800
20801 * remote-utils.c (try_rle): New function.
20802 (putpkt_binary): Use it.
20803
8695c747
DJ
208042006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20805
20806 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20807 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20808 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20809 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20810 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20811 point registers.
20812
290fadea
RS
208132006-08-08 Richard Sandiford <richard@codesourcery.com>
20814
20815 * server.c (terminal_fd): New variable.
20816 (old_foreground_pgrp): Likewise.
20817 (restore_old_foreground_pgrp): New function.
20818 (start_inferior): Record the terminal file descriptor in terminal_fd
20819 and its original foreground group in old_foreground_pgrp. Register
20820 restore_old_foreground_pgrp with atexit().
20821
9f2e1e63
DJ
208222006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20823
20824 * server.c (handle_query): Correct qPart to qXfer.
20825
b80864fb
DJ
208262006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20827
20828 * configure.ac: Check for more headers which are missing on
20829 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20830 * configure.srv: Add Cygwin and mingw32.
20831 * remote-utils.c: Don't include headers unconditionally which
20832 are missing on mingw32. Include <winsock.h> for mingw32.
20833 (remote_open): Adjust for mingw32 support. Flush
20834 standard error after writing to it.
20835 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20836 (unblock_async_io, enable_async_io, disable_async_io)
20837 (readchar, getpkt): Update for Winsock support.
20838 (prepare_resume_reply): Expect a protocol signal number.
20839 * server.c: Disable <sys/wait.h> on mingw32.
20840 (start_inferior): Adjust for mingw32 support. Flush
20841 standard error after writing to it.
20842 (attach_inferior): Likewise. Use protocol signal
20843 numbers.
20844 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20845 and names.
20846 * win32-i386-low.c: New file.
20847 * Makefile.in (XM_CLIBS): Set.
20848 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20849 (win32-i386-low.o): New dependency rule.
20850 * linux-low.c (linux_wait): Use target signal numbers.
20851 * target.h (struct target_ops): Doc fix.
20852 * server.h (target_signal_to_name): New prototype.
20853 * gdbreplay.c: Don't include headers unconditionally which
20854 are missing on mingw32. Include <winsock.h> for mingw32.
20855 (remote_close, remote_open): Adjust for Winsock support.
20856 * configure, config.in: Regenerated.
20857
0876f84a
DJ
208582006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20859
20860 * server.c (decode_xfer_read, write_qxfer_response): New.
20861 (handle_query): Take a packet length argument. Handle
20862 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20863 the qSupported response.
20864 (main): Update call to handle_query.
20865
01f9e8fa
DJ
208662006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20867
20868 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20869 (putpkt_binary): Renamed from putpkt and adjusted for binary
20870 data.
20871 (putpkt): New wrapper for putpkt_binary.
20872 (readchar): Don't mask off the high bit.
20873 (decode_X_packet): New function.
20874 * server.c (main): Call putpkt_binary if a handler sets the packet
20875 length. Save the length of the incoming packet. Handle 'X'.
20876 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20877
be2a5f71
DJ
208782006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20879
20880 * server.c (handle_query): Handle qSupported.
20881
ea025f5f
DJ
208822006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20883
20884 * remote-utils.c (all_symbols_looked_up): New variable.
20885 (look_up_one_symbol): Check it.
20886 * server.h (look_up_one_symbol): New declaration.
20887 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20888
9308fc88
DJ
208892006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20890
20891 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 20892 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
20893 (PTRACE_GET_THREAD_AREA): Define.
20894 (ps_get_thread_area): New function.
20895
52fb6437
NS
208962006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20897
20898 * configure.srv (m68k*-*-uclinux*): New target.
20899 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20900 (linux_resume_one_process): Remove extraneous cast.
20901 (linux_read_offsets): New.
20902 (linux_target_op): Add linux_read_offsets on mmuless systems.
20903 * server.c (handle_query): Add qOffsets logic.
20904 * target.h (struct target_ops): Add read_offsets.
20905
21b0f40c
DJ
209062006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20907
20908 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20909 (PTRACE_GET_THREAD_AREA): Define.
20910 (ps_get_thread_area): New function.
20911 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20912 (linux-x86-64-low.o): Update.
20913
0050a760
DJ
209142006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20915
20916 * configure.ac: Remove checks for prfpregset_t.
20917 * gdb_proc_service.h: New file.
20918 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20919 new "gdb_proc_service.h".
20920 * proc-service.c: Likewise.
20921 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20922 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20923 * Makefile.in (gdb_proc_service_h): Updated.
20924 * configure, config.in: Regenerated.
20925
b92a518e
DJ
209262006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20927
20928 * remote-utils.c (prepare_resume_reply): Move declaration
20929 of gdb_id_from_wait to the top of the block.
20930
545587ee
DJ
209312006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20932
20933 * linux-low.c (regsets_store_inferior_registers): Read the regset
20934 from the target before filling it.
20935
9db87ebd
DJ
209362006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20937
20938 * server.c (attach_inferior): Return SIGTRAP for a successful
20939 attach.
20940
dd24457d
DJ
209412006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
20942
20943 * Makefile.in (OBS): Add version.o.
20944 (STAGESTUFF): Delete.
20945 (version.o): Add dependencies.
20946 (version.c): Replace rule.
20947 (clean): Remove version.c.
20948 * server.c (gdbserver_version): New.
20949 (gdbserver_usage): Use printf.
20950 (main): Handle --version and --help.
20951 * server.h (version, host_name): Add declarations.
20952
6f0f660e
EZ
209532005-12-23 Eli Zaretskii <eliz@gnu.org>
20954
889bf7c5
PA
20955 * linux-arm-low.c:
20956 * linux-arm-low.c:
20957 * inferiors.c:
20958 * i387-fp.h:
20959 * i387-fp.c:
20960 * gdbreplay.c:
20961 * regcache.c:
20962 * proc-service.c:
20963 * mem-break.h:
20964 * mem-break.c:
20965 * linux-x86-64-low.c:
20966 * linux-sh-low.c:
20967 * linux-s390-low.c:
20968 * linux-ppc64-low.c:
20969 * linux-ppc-low.c:
20970 * linux-mips-low.c:
20971 * linux-m68k-low.c:
20972 * linux-m32r-low.c:
20973 * linux-low.h:
20974 * linux-low.c:
20975 * linux-ia64-low.c:
20976 * linux-i386-low.c:
20977 * linux-crisv32-low.c:
20978 * thread-db.c:
20979 * terminal.h:
20980 * target.h:
20981 * target.c:
20982 * server.h:
20983 * server.c:
20984 * remote-utils.c:
20985 * regcache.h:
20986 * utils.c:
20987 * Makefile.in:
20988 * configure.ac:
6f0f660e
EZ
20989 * gdbserver.1: Add (C) after Copyright. Update the FSF
20990 address.
20991
9d1fb177
DJ
209922005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
20993
20994 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
20995 (arm_breakpoint_at): Recognize both breakpoints.
20996 (the_low_target): Use the correct breakpoint instruction.
20997
011a70c2
DJ
209982005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
20999
21000 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21001 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21002 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21003 (the_low_target): Update.
21004
7fb85e41
AS
210052005-10-25 Andreas Schwab <schwab@suse.de>
21006
21007 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21008
21009 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21010 (ia64_num_regs): Reduce to 462.
21011
3db0444b
DJ
210122005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21013
21014 * acinclude.m4: Correct quoting.
21015 * aclocal.m4: Regenerated.
21016
21017 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21018 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21019 (thread_db_init): Call thread_db_err_str.
21020 * configure.ac: Check for TD_VERSION.
21021 * config.in, configure: Regenerated.
21022
bee0189a
DJ
210232005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21024
21025 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21026
e9d25b98
DJ
210272005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21028
21029 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21030 is not available. Define HAVE_PTRACE_GETREGS if it is.
21031 * config.in, configure: Regenerated.
21032 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21033 * linux-i386-low.c, linux-m68k-low.c: Update to use
21034 HAVE_PTRACE_GETREGS.
21035 * linux-low.c (regsets_fetch_inferior_registers)
21036 (regsets_store_inferior_registers): Only return 0 if we processed
21037 GENERAL_REGS.
21038 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21039 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21040
a06660f7
DJ
210412005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21042
21043 * inferiors.c (struct thread_info): Add gdb_id.
21044 (add_thread): Add gdb_id argument.
21045 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21046 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21047 calls to add_thread.
21048 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21049 * server.c (handle_query): Use thread_to_gdb_id.
21050 (handle_v_cont, main): Use gdb_id_to_thread_id.
21051 * server.h (add_thread): Update prototype.
21052 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21053 prototypes.
21054
5a1f5858
DJ
210552005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21056
21057 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21058 left-padded registers.
21059 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21060 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21061
e122f1f5
SE
210622005-07-01 Steve Ellcey <sje@cup.hp.com>
21063
21064 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21065 * configure: Regenerate.
21066 * config.in: Regenerate.
21067 * server.h (NEED_DECLARATION_STRERROR):
21068 Replace with !HAVE_DECL_STRERROR.
21069
d592fa2f
DJ
210702005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21071
21072 * linux-low.c (linux_wait, linux_send_signal): Don't test
21073 an unsigned long variable for > 0 if it could be MAX_ULONG.
21074 * server.c (myresume): Likewise.
21075 * target.c (set_desired_inferior): Likewise.
21076
ccbd4912
MK
210772005-06-13 Mark Kettenis <kettenis@gnu.org>
21078
21079 * configure.ac: Simplify and improve check for socklen_t.
21080 * configure, config.in: Regenerate.
21081
f450004a
DJ
210822005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21083
21084 * acconfig.h: Remove.
21085 * configure.ac: Add a test for socklen_t. Use three-argument
21086 AC_DEFINE throughout.
21087 * config.in: Regenerated using autoheader 2.59.
21088 * configure: Regenerated.
21089
21090 * gdbreplay.c (socklen_t): Provide a default.
21091 (remote_open): Use socklen_t.
21092 * remote-utils.c (socklen_t): Provide a default.
21093 (remote_open): Use socklen_t.
21094 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21095 unsigned char.
21096
21097 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21098 char for buffers.
21099 * linux-low.c (linux_read_memory, linux_write_memory)
21100 (linux_read_auxv): Likewise.
21101 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21102 (check_mem_write): Likewise.
21103 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21104 Likewise.
21105 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21106 (registers_from_string, register_data): Likewise.
21107 * server.c (handle_query, main): Likewise.
21108 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21109 (decode_M_packet): Likewise.
21110 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21111 * target.h (struct target_ops): Update read_memory, write_memory,
21112 and read_auxv.
21113 (read_inferior_memory, write_inferior_memory): Update.
21114 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21115 to unsigned char *.
21116 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21117 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21118 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21119 linux-s390-low.c, linux-sh-low.c: Update for changes in
21120 read_inferior_memory and the_low_target->breakpoint.
21121
eee84df1
DJ
211222005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21123
21124 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21125 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21126 * configure.srv: Add powerpc64-*-linux*.
21127 * linux-ppc64-low.c: New file.
21128
45b134e5
OF
211292005-05-23 Orjan Friberg <orjanf@axis.com>
21130
21131 * linux-cris-low.c: New file with support for CRIS.
21132 * linux-crisv32-low.c: Ditto for CRISv32.
21133 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21134 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21135 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21136 reg-crisv32.o, and reg-crisv32.c to make rules.
21137 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21138 recognized targets.
21139
48d93c75
UW
211402005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21141
21142 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21143 of sizeof (PTRACE_XFER_TYPE).
21144 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21145
e013ee27
OF
211462005-05-12 Orjan Friberg <orjanf@axis.com>
21147
889bf7c5 21148 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21149 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21150 pointers for hardware watchpoint support.
21151 * linux-low.h (struct linux_target_ops): Ditto.
21152 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21153 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21154 to linux_target_ops.
21155 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21156 reply packet.
21157 * server.c (main): Recognize 'Z' and 'z' packets.
21158
b0ded00b
UW
211592005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21160
21161 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21162 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21163 (the_low_target): Add new members.
21164
8643e2ad
DJ
211652005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21166
21167 * proc-service.c (ps_lgetregs): Search all_processes instead of
21168 all_threads.
21169
fc620387
DJ
211702005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21171
21172 * server.c (start_inferior): Change return type to int.
21173 (attach_inferior): Change sigptr to int *.
21174 (handle_v_cont, handle_v_requests): Change signal to int *.
21175 (main): Change signal to int.
21176
211772005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21178
21179 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21180 * configure.srv: Add m32r*-*-linux*.
21181 * linux-m32r-low.c: New file.
21182
e0e76420
DJ
211832005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21184
21185 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21186
a1928bad
DJ
211872005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21188
21189 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21190 Take unsigned long arguments for PIDs.
21191 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21192 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21193 (wait_for_sigstop, linux_resume_one_process)
21194 (regsets_fetch_inferior_registers, linux_send_signal)
21195 (linux_read_auxv): Likewise. Update the types of variables holding
21196 PIDs. Update format string specifiers.
21197 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21198 * remote-utils.c (prepare_resume_reply): Likewise.
21199 * server.c (cont_thread, general_thread, step_thread)
21200 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21201 unsigned long.
21202 (handle_query): Update format specifiers.
21203 (handle_v_cont, main): Use strtoul for thread IDs.
21204 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21205 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21206 (general_thread, step_thread, thread_from_wait)
21207 (old_thread_from_wait): Update.
21208 * target.h (struct thread_resume): Use unsigned long for THREAD.
21209 (struct target_ops): Use unsigned long for arguments to attach and
21210 thread_alive.
21211
dcdb98d2
DJ
212122005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21213
21214 * acinclude.m4: Include bfd/bfd.m4 directly.
21215 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21216 <agriffis@toolchain.org>.
21217 * aclocal.m4, configure: Regenerated.
21218
bec39cab
AC
212192005-01-07 Andrew Cagney <cagney@gnu.org>
21220
21221 * configure.ac: Rename configure.in, require autoconf 2.59.
21222 * configure: Re-generate.
21223
434c4c77
DJ
212242004-12-08 Daniel Jacobowitz <dan@debian.org>
21225
21226 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21227 LIBS when finished.
21228 * aclocal.m4: Regenerated.
21229 * configure: Regenerated.
21230
db1d3e1b
AS
212312004-11-21 Andreas Schwab <schwab@suse.de>
21232
21233 * linux-m68k-low.c (m68k_num_gregs): Define.
21234 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21235 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21236 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21237 (m68k_breakpoint_at): New. Add to the_low_target.
21238
21239 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21240 srv_linux_thread_db to yes.
21241
43360365
JB
212422004-10-20 Joel Brobecker <brobecker@gnat.com>
21243
21244 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21245 (ARCH_SET_FS): Likewise.
21246 (ARCH_GET_FS): Likewise.
21247 (ARCH_GET_GS): Likewise.
21248
fd500816
DJ
212492004-10-16 Daniel Jacobowitz <dan@debian.org>
21250
21251 * linux-i386-low.c (ps_get_thread_area): New.
21252 * linux-x86-64-low.c (ps_get_thread_area): New.
21253 * linux-low.c: Include <sys/syscall.h>.
21254 (linux_kill_one_process): Don't kill the first thread here.
21255 (linux_kill): Kill the first thread here.
21256 (kill_lwp): New function.
21257 (send_sigstop, linux_send_signal): Use it.
21258 * proc-service.c: Clean up #ifdefs.
21259 (fpregset_info): Delete.
21260 (ps_lgetregs): Update and enable implementation.
21261 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21262 implementations.
21263 * remote-utils.c (struct sym_cache, symbol_cache): New.
21264 (input_interrupt): Print a clearer message.
21265 (async_io_enabled): New variable.
21266 (enable_async_io, disable_async_io): Use it. Update comments.
21267 (look_up_one_symbol): Use the symbol cache.
21268 * thread-db.c (thread_db_look_up_symbols): New function.
21269 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21270
f6de3c42
DJ
212712004-10-16 Daniel Jacobowitz <dan@debian.org>
21272
21273 * configure.in: Test for -rdynamic.
21274 * configure: Regenerated.
21275 * Makefile (INTERNAL_LDFLAGS): New.
21276 (gdbserver, gdbreplay): Use it.
21277
2c0fc042
AC
212782004-09-02 Andrew Cagney <cagney@gnu.org>
21279
21280 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21281
075b3282
DJ
212822004-03-23 Daniel Jacobowitz <drow@mvista.com>
21283
21284 * linux-low.c (linux_wait): Clear all_processes list also.
21285
fa6a77dc
DJ
212862004-03-12 Daniel Jacobowitz <drow@mvista.com>
21287
21288 * linux-low.c: Include <errno.h>. Remove extern declaration of
21289 errno.
21290
6d782a97
DJ
212912004-03-12 Daniel Jacobowitz <drow@mvista.com>
21292
21293 * gdbreplay.c, server.h, utils.c: Update copyright years.
21294
3a7fb99b
DJ
212952004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21296
21297 * server.c (main): Print child status or termination signal from
21298 variable 'signal', not 'sig'.
21299
c3e735a6
DJ
213002004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21301
21302 * linux-low.c (linux_read_memory): Change return type to
21303 int. Check for and return error from ptrace().
21304 * target.c (read_inferior_memory): Change return type to int. Pass
21305 back return status from the_target->read_memory().
21306 * target.h (struct target_ops): Adapt *read_memory() prototype.
21307 Update comment.
21308 (read_inferior_memory): Adapt prototype.
21309 * server.c (main): Return an error packet if
21310 read_inferior_memory() returns an error.
21311
a59d1c82
DJ
213122004-03-04 Daniel Jacobowitz <drow@mvista.com>
21313
21314 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21315 Unify with other clean targets.
21316
dc3f8883
DJ
213172004-02-29 Daniel Jacobowitz <drow@mvista.com>
21318
21319 * server.c (handle_v_cont): Call set_desired_inferior.
21320
89a208da
DJ
213212004-02-29 Daniel Jacobowitz <drow@mvista.com>
21322
21323 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21324
62ea82f5
DJ
213252004-02-29 Daniel Jacobowitz <drow@mvista.com>
21326
21327 * linux-low.c (linux_wait): Unblock async I/O.
21328 (linux_resume): Block and enable async I/O.
21329 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21330 * server.h (block_async_io, unblock_async_io): Add prototypes.
21331
6910d122
DJ
213322004-02-29 Daniel Jacobowitz <drow@mvista.com>
21333
21334 * remote-utils.c (remote_open): Print a status notice after
21335 opening a TCP port.
21336 * server.c (attach_inferior): Print a status notice after
21337 attaching.
21338
213392004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21340
21341 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21342
c89dc5d4
DJ
213432004-02-26 Daniel Jacobowitz <drow@mvista.com>
21344
21345 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21346 error packet.
21347 * server.c, target.h: Update copyright years.
21348
4b8dad4a
RM
213492004-02-25 Roland McGrath <roland@redhat.com>
21350
21351 * target.h (struct target_ops): New member `read_auxv'.
21352 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21353 * linux-low.c (linux_read_auxv): New function.
21354 (linux_target_ops): Initialize `read_auxv' member to that.
21355
d7446758
JB
213562004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21357
21358 Committed by Jim Blandy <jimb@redhat.com>.
21359
21360 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21361 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21362 instead of GPR_SIZE to distiguish s390 and s390x targets.
21363
5544ad89
DJ
213642004-01-31 Daniel Jacobowitz <drow@mvista.com>
21365
21366 * linux-low.c: Update copyright year.
21367 (check_removed_breakpoint): Clear pending_is_breakpoint.
21368 (linux_set_resume_request, linux_queue_one_thread)
21369 (resume_status_pending_p): New functions.
21370 (linux_continue_one_thread): Use process->resume.
21371 (linux_resume): Only resume threads if there are no pending events.
21372 * linux-low.h (struct process_info): Add resume request
21373 pointer.
21374
2a68b70e
DJ
213752004-01-30 Daniel Jacobowitz <drow@mvista.com>
21376
21377 * regcache.c (new_register_cache): Clear the allocated register
21378 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21379
64386c31
DJ
213802003-10-13 Daniel Jacobowitz <drow@mvista.com>
21381
21382 * linux-low.c (linux_resume): Take a struct thread_resume *
21383 argument.
21384 (linux_wait): Update call.
21385 (resume_ptr): New static variable.
21386 (linux_continue_one_thread): Renamed from
21387 linux_continue_one_process. Use resume_ptr.
21388 (linux_resume): Use linux_continue_one_thread.
21389 * server.c (handle_v_cont, handle_v_requests): New functions.
21390 (myresume): New function.
21391 (main): Handle 'v' case.
21392 * target.h (struct thread_resume): New type.
21393 (struct target_ops): Change argument of "resume" to struct
21394 thread_resume *.
21395 (myresume): Delete macro.
21396
c938e9b0
L
213972003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21398
21399 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21400 (uninstall): Support DESTDIR.
21401
7f313d07
BC
21402Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21403
21404 * configure.srv: Add xscale*linux copy of arm*linux entry.
21405
3b2fc2ea
DJ
214062003-07-24 Daniel Jacobowitz <drow@mvista.com>
21407
21408 * linux-arm-low.c (arm_reinsert_addr): New function.
21409 (the_low_target): Add arm_reinsert_addr.
21410
1c0a559e
MK
214112003-07-08 Mark Kettenis <kettenis@gnu.org>
21412
21413 * mem-break.c: Remove whitespace at end of file.
21414
43d5792c
DJ
214152003-06-28 Daniel Jacobowitz <drow@mvista.com>
21416
21417 * configure.in: Check whether we need to prototype strerror.
21418 * server.h: Optionally prototype strerror.
21419 * gdbreplay.c (perror_with_name): Use strerror.
21420 * linux-low.c (linux_attach_lwp): Use strerror.
21421 * utils.c (perror_with_name): Use strerror.
21422 * config.in, configure: Regenerated.
21423
c8a86edf
DJ
214242003-06-28 Daniel Jacobowitz <drow@mvista.com>
21425
21426 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21427 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21428
73d37363
DJ
214292003-06-20 Daniel Jacobowitz <drow@mvista.com>
21430
21431 * Makefile.in (SFILES): Update.
21432 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21433 low-sun3.c: Remove files.
21434
6ad8ae5c
DJ
214352003-06-17 Daniel Jacobowitz <drow@mvista.com>
21436
21437 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21438 (linux_detach_one_process, linux_detach): New functions.
21439 (linux_target_ops): Add linux_detach.
21440 * server.c (main): Handle 'D' packet.
21441 * target.h (struct target_ops): Add "detach" member.
21442 (detach_inferior): Define.
21443
1581182a
MK
214442003-06-13 Mark Kettenis <kettenis@gnu.org>
21445
21446 From Kelley Cook <kelleycook@wideopenwest.com>:
21447 * configure.srv: Accept i[34567]86 variants.
21448
e5379b03
DJ
214492003-06-05 Daniel Jacobowitz <drow@mvista.com>
21450
21451 * linux-low.c (linux_wait_for_event): Correct comment typos.
21452 (linux_resume_one_process): Call check_removed_breakpoint.
21453 (linux_send_signal): New function.
21454 (linux_target_ops): Add linux_send_signal.
21455 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21456 of kill.
21457 * target.h (struct target_ops): Add send_signal.
21458
2ff29de4
JB
214592003-05-29 Jim Blandy <jimb@redhat.com>
21460
21461 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21462 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21463 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21464 away part of the register's value.
21465
254787d4
DJ
214662003-03-26 Daniel Jacobowitz <drow@mvista.com>
21467
21468 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21469 (linux_wait_for_event, linux_init_signals): Likewise.
21470
94e10508
DJ
214712003-03-17 Daniel Jacobowitz <drow@mvista.com>
21472
21473 * configure.in: Check for stdlib.h.
21474 * configure: Regenerated.
21475 * config.in: Regenerated.
21476
4c0711e0
DJ
214772003-01-04 Andreas Schwab <schwab@suse.de>
21478
21479 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21480
ef66e766
AC
214812003-01-02 Andrew Cagney <ac131313@redhat.com>
21482
21483 * Makefile.in: Remove obsolete code.
21484
a1358604
DJ
214852002-11-20 Daniel Jacobowitz <drow@mvista.com>
21486
21487 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21488 defined(PT_FPR0_HI).
21489
23ce3b1c
DJ
214902002-11-17 Stuart Hughes <seh@zee2.com>
21491
21492 * linux-arm-low.c (arm_num_regs): Increase.
21493 (arm_regmap): Include status register.
21494
214952002-11-17 Daniel Jacobowitz <drow@mvista.com>
21496
21497 * linux-low.c (register_addr): Remove incorrect -1 check.
21498
a9fa9f7d
DJ
214992002-08-29 Daniel Jacobowitz <drow@mvista.com>
21500
21501 * linux-low.c (linux_create_inferior): Call setpgid. Return
21502 the new PID.
21503 (unstopped_p, linux_signal_pid): Remove.
21504 (linux_target_ops): Remove linux_signal_pid.
21505 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21506 global instead of target method.
21507 * target.h (struct target_ops): Remove signal_pid. Update comment
21508 for create_inferior.
21509 * server.c (signal_pid): New variable.
21510 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21511 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21512 (attach_inferior): Set signal_pid.
21513
17574093
DJ
215142002-08-23 Daniel Jacobowitz <drow@mvista.com>
21515
21516 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21517
215182002-08-20 Jim Blandy <jimb@redhat.com>
21519
21520 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21521 default for this.
21522
215232002-08-01 Andrew Cagney <cagney@redhat.com>
21524
21525 * Makefile.in: Make chill references obsolete.
21526
215272002-07-24 Kevin Buettner <kevinb@redhat.com>
21528
21529 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21530 * configure: Regenerate.
21531 * config.in: Regenerate.
21532
215332002-07-09 David O'Brien <obrien@FreeBSD.org>
21534
21535 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21536 (perror_with_name, remote_close, remote_open, expect, play): Static.
21537
215382002-07-04 Michal Ludvig <mludvig@suse.cz>
21539
4b8dad4a 21540 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21541 byte offsets instead of an array of indexes.
21542 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21543
215442002-06-13 Daniel Jacobowitz <drow@mvista.com>
21545
21546 * regcache.c: Add comment.
21547
215482002-06-11 Daniel Jacobowitz <drow@mvista.com>
21549
21550 * thread-db.c: New file.
21551 * proc-service.c: New file.
21552 * acinclude.m4: New file.
21553 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21554 proc-service.o, and thread-db.o.
21555 (linux-low.o): Add USE_THREAD_DB.
21556 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21557 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21558 * aclocal.m4: Regenerated.
21559 * config.in: Regenerated.
21560 * configure: Regenerated.
21561 * configure.in: Check for proc_service.h, sys/procfs.h,
21562 thread_db.h, and linux/elf.h headrs.
21563 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21564 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21565 Check for -lthread_db and thread support.
21566 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21567 PowerPC, and SuperH.
21568 * i387-fp.c: Constify arguments.
21569 * i387-fp.h: Likewise.
21570 * inferiors.c: (struct thread_info): Renamed from
21571 `struct inferior_info'. Remove PID member. Use generic inferior
21572 list header. All uses updated.
21573 (inferiors, signal_pid): Removed.
21574 (all_threads): New variable.
21575 (get_thread): Define.
21576 (add_inferior_to_list): New function.
21577 (for_each_inferior): New function.
21578 (change_inferior_id): New function.
21579 (add_inferior): Removed.
21580 (remove_inferior): New function.
21581 (add_thread): New function.
21582 (free_one_thread): New function.
21583 (remove_thread): New function.
21584 (clear_inferiors): Use for_each_inferior and free_one_thread.
21585 (find_inferior): New function.
21586 (find_inferior_id): New function.
21587 (inferior_target_data): Update argument type.
21588 (set_inferior_target_data): Likewise.
21589 (inferior_regcache_data): Likewise.
21590 (set_inferior_regcache_data): Likewise.
21591 * linux-low.c (linux_bp_reinsert): Remove.
21592 (all_processes, stopping_threads, using_thrads)
21593 (struct pending_signals, debug_threads, pid_of): New.
21594 (inferior_pid): Replace with macro.
21595 (struct inferior_linux_data): Remove.
21596 (get_stop_pc, add_process): New functions.
21597 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21598 Use add_process and add_thread.
21599 (linux_attach_lwp): New function, based on old linux_attach. Use
21600 add_process and add_thread. Set stop_expected for new threads.
21601 (linux_attach): New function.
21602 (linux_kill_one_process): New function.
21603 (linux_kill): Kill all LWPs.
21604 (linux_thread_alive): Use find_inferior_id.
21605 (check_removed_breakpoints, status_pending_p): New functions.
21606 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21607 Update. Use WNOHANG. Wait for cloned processes also. Update process
21608 struct for the found process.
21609 (linux_wait_for_event): New function.
21610 (linux_wait): Use it. Support LWPs.
21611 (send_sigstop, wait_for_sigstop, stop_all_processes)
21612 (linux_resume_one_process, linux_continue_one_process): New functions.
21613 (linux_resume): Support LWPs.
21614 (REGISTER_RAW_SIZE): Remove.
21615 (fetch_register): Use register_size instead. Call supply_register.
21616 (usr_store_inferior_registers): Likewise. Call collect_register.
21617 Fix recursive case.
21618 (regsets_fetch_inferior_registers): Improve error message.
21619 (regsets_store_inferior_registers): Add debugging.
21620 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21621 (unstopped_p, linux_signal_pid): New functions.
21622 (linux_target_ops): Add linux_signal_pid.
21623 (linux_init_signals): New function.
21624 (initialize_low): Call it. Initialize using_threads.
21625 * regcache.c (inferior_regcache_data): Add valid
21626 flag.
21627 (get_regcache): Fetch registers lazily. Add fetch argument
21628 and update all callers.
21629 (regcache_invalidate_one, regcache_invalidate): New
21630 functions.
21631 (new_register_cache): Renamed from create_register_cache.
21632 Return the new regcache.
21633 (free_register_cache): Change argument to a void *.
21634 (registers_to_string, registers_from_string): Call get_regcache
21635 with fetch flag set.
21636 (register_data): Make static. Pass fetch flag to get_regcache.
21637 (supply_register): Call get_regcache with fetch flag clear.
21638 (collect_register): Call get_regcache with fetch flag set.
21639 (collect_register_as_string): New function.
21640 * regcache.h: Update.
21641 * remote-utils.c (putpkt): Flush after debug output and use
21642 stderr.
21643 Handle input interrupts while waiting for an ACK.
21644 (input_interrupt): Use signal_pid method.
21645 (getpkt): Flush after debug output and use stderr.
21646 (outreg): Use collect_register_as_string.
21647 (new_thread_notify, dead_thread_notify): New functions.
21648 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21649 and general_thread.
21650 (look_up_one_symbol): Flush after debug output.
21651 * server.c (step_thread, server_waiting): New variables.
21652 (start_inferior): Don't use signal_pid. Update call to mywait.
21653 (attach_inferior): Update call to mywait.
21654 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21655 (main): Don't fetch/store registers explicitly. Use
21656 set_desired_inferior. Support proposed ``Hs'' packet. Update
21657 calls to mywait.
21658 * server.h: Update.
21659 (struct inferior_list, struct_inferior_list_entry): New.
21660 * target.c (set_desired_inferior): New.
21661 (write_inferior_memory): Constify.
21662 (mywait): New function.
21663 * target.h: Update.
21664 (struct target_ops): New signal_pid method.
21665 (mywait): Removed macro, added prototype.
21666
21667 * linux-low.h (regset_func): Removed.
21668 (regset_fill_func, regset_store_func): New.
21669 (enum regset_type): New.
21670 (struct regset_info): Add type field. Use new operation types.
21671 (struct linux_target_ops): stop_pc renamed to get_pc.
21672 Add decr_pc_after_break and breakpoint_at.
21673 (get_process, get_thread_proess, get_process_thread)
21674 (strut process_info, all_processes, linux_attach_lwp)
21675 (thread_db_init): New.
21676
21677 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21678 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21679 (the_low_target): Add new members.
21680 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21681 (i386_store_fpxregset): Constify.
21682 (target_regsets): Add new kind identifier.
21683 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21684 (i386_set_pc): Add debugging.
21685 (i386_breakpoint_at): New function.
21686 (the_low_target): Add new members.
21687 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21688 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21689 (mips_breakpoint_at): New.
21690 (the_low_target): Add new members.
21691 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21692 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21693 (the_low_target): Add new members.
21694 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21695 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21696 (the_low_target): Add new members.
21697 * linux-x86-64-low.c (target_regsets): Add new kind
21698 identifier.
21699
217002002-05-15 Daniel Jacobowitz <drow@mvista.com>
21701
21702 From Martin Pool <mbp@samba.org>:
21703 * server.c (gdbserver_usage): New function.
21704 (main): Call it.
21705
217062002-05-14 Daniel Jacobowitz <drow@mvista.com>
21707
21708 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21709 stop_at -> stop_pc.
21710
217112002-05-04 Andrew Cagney <ac131313@redhat.com>
21712
21713 * Makefile.in: Remove obsolete code.
21714
217152002-04-24 Michal Ludvig <mludvig@suse.cz>
21716
21717 * linux-low.c (regsets_fetch_inferior_registers),
21718 (regsets_store_inferior_registers): Removed cast to int from
21719 ptrace() calls.
21720 * regcache.h: Added declaration of struct inferior_info.
21721
217222002-04-20 Daniel Jacobowitz <drow@mvista.com>
21723
21724 * inferiors.c (struct inferior_info): Add regcache_data.
21725 (add_inferior): Call create_register_cache.
21726 (clear_inferiors): Call free_register_cache.
21727 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21728 * regcache.c (struct inferior_regcache_data): New.
21729 (registers): Remove.
21730 (get_regcache): New function.
21731 (create_register_cache, free_register_cache): New functions.
21732 (set_register_cache): Don't initialize the register cache here.
21733 (registers_to_string, registers_from_string, register_data): Call
21734 get_regcache.
21735 * regcache.h: Add prototypes.
21736 * server.h: Likewise.
21737
217382002-04-20 Daniel Jacobowitz <drow@mvista.com>
21739
21740 * mem-break.c: New file.
21741 * mem-break.h: New file.
21742 * Makefile.in: Add mem-break.o rule; update server.h
21743 dependencies.
21744 * inferiors.c (struct inferior_info): Add target_data
21745 member.
21746 (clear_inferiors): Free target_data member if set.
21747 (inferior_target_data, set_inferior_target_data): New functions.
21748 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21749 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21750 * linux-low.c (linux_bp_reinsert): New variable.
21751 (struct inferior_linux_data): New.
21752 (linux_create_inferior): Use set_inferior_target_data.
21753 (linux_attach): Likewise. Call add_inferior.
21754 (linux_wait_for_one_inferior): New function.
21755 (linux_wait): Call it.
21756 (linux_write_memory): Add const.
21757 (initialize_low): Call set_breakpoint_data.
21758 * linux-low.h (struct linux_target_ops): Add breakpoint
21759 handling members.
21760 * server.c (attach_inferior): Remove extra add_inferior
21761 call.
21762 * server.h: Include mem-break.h. Update inferior.c
21763 prototypes.
21764 * target.c (read_inferior_memory)
21765 (write_inferior_memory): New functions.
21766 * target.h (read_inferior_memory)
21767 (write_inferior_memory): Change macros to prototypes.
21768 (struct target_ops): Update comments. Add const to write_memory
21769 definition.
21770
217712002-04-11 Daniel Jacobowitz <drow@mvista.com>
21772
21773 * linux-low.c (usr_store_inferior_registers): Support
21774 registers which are allowed to fail to store.
21775 * linux-low.h (linux_target_ops): Likewise.
21776 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21777 (ppc_cannot_store_register): FPSCR may not be storable.
21778
217792002-04-09 Daniel Jacobowitz <drow@mvista.com>
21780
21781 * server.h: Include <string.h> if HAVE_STRING_H.
21782 * ChangeLog: Correct paths in last ChangeLog entry.
21783
217842002-04-09 Daniel Jacobowitz <drow@mvista.com>
21785
21786 * linux-low.h: Remove obsolete prototypes.
21787 (struct linux_target_ops): New.
21788 (extern the_low_target): New.
21789 * linux-low.c (num_regs, regmap): Remove declarations.
21790 (register_addr): Use the_low_target explicitly.
21791 (fetch_register): Likewise.
21792 (usr_fetch_inferior_registers): Likewise.
21793 (usr_store_inferior_registers): Likewise.
21794 * linux-arm-low.c (num_regs): Remove.
21795 (arm_num_regs): Define.
21796 (arm_regmap): Renamed from regmap, made static.
21797 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21798 made static.
21799 (arm_cannot_store_register): Renamed from cannot_store_register,
21800 made static.
21801 (the_low_target): New.
21802 * linux-i386-low.c (num_regs): Remove.
21803 (i386_num_regs): Define.
21804 (i386_regmap): Renamed from regmap, made static.
21805 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21806 made static.
21807 (i386_cannot_store_register): Renamed from cannot_store_register,
21808 made static.
21809 (the_low_target): New.
21810 * linux-ia64-low.c (num_regs): Remove.
21811 (ia64_num_regs): Define.
21812 (ia64_regmap): Renamed from regmap, made static.
21813 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21814 made static.
21815 (ia64_cannot_store_register): Renamed from cannot_store_register,
21816 made static.
21817 (the_low_target): New.
21818 * linux-m68k-low.c (num_regs): Remove.
21819 (m68k_num_regs): Define.
21820 (m68k_regmap): Renamed from regmap, made static.
21821 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21822 made static.
21823 (m68k_cannot_store_register): Renamed from cannot_store_register,
21824 made static.
21825 (the_low_target): New.
21826 * linux-mips-low.c (num_regs): Remove.
21827 (mips_num_regs): Define.
21828 (mips_regmap): Renamed from regmap, made static.
21829 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21830 made static.
21831 (mips_cannot_store_register): Renamed from cannot_store_register,
21832 made static.
21833 (the_low_target): New.
21834 * linux-ppc-low.c (num_regs): Remove.
21835 (ppc_num_regs): Define.
21836 (ppc_regmap): Renamed from regmap, made static.
21837 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21838 made static.
21839 (ppc_cannot_store_register): Renamed from cannot_store_register,
21840 made static.
21841 (the_low_target): New.
21842 * linux-s390-low.c (num_regs): Remove.
21843 (s390_num_regs): Define.
21844 (s390_regmap): Renamed from regmap, made static.
21845 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21846 made static.
21847 (s390_cannot_store_register): Renamed from cannot_store_register,
21848 made static.
21849 (the_low_target): New.
21850 * linux-sh-low.c (num_regs): Remove.
21851 (sh_num_regs): Define.
21852 (sh_regmap): Renamed from regmap, made static.
21853 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21854 made static.
21855 (sh_cannot_store_register): Renamed from cannot_store_register,
21856 made static.
21857 (the_low_target): New.
21858 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21859 (the_low_target): New.
21860
218612002-04-09 Daniel Jacobowitz <drow@mvista.com>
21862
21863 * Makefile.in: Add stamp-h target.
21864 * configure.in: Create stamp-h.
21865 * configure: Regenerated.
21866
218672002-04-09 Daniel Jacobowitz <drow@mvista.com>
21868
21869 * inferiors.c: New file.
21870 * target.c: New file.
21871 * target.h: New file.
21872 * Makefile.in: Add target.o and inferiors.o. Update
21873 dependencies.
21874 * linux-low.c (inferior_pid): New static variable,
21875 moved from server.c.
21876 (linux_create_inferior): Renamed from create_inferior.
21877 Call add_inferior. Return 0 on success instead of a PID.
21878 (linux_attach): Renamed from myattach.
21879 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21880 (linux_thread_alive): Renamed from mythread_alive.
21881 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21882 child dies.
21883 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21884 (regsets_store_inferior_registers): Correct error message.
21885 Add missing ``return 0''.
21886 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21887 (linux_store_registers): Renamed from store_inferior_registers.
21888 (linux_read_memory): Renamed from read_inferior_memory.
21889 (linux_write_memory): Renamed from write_inferior_memory.
21890 (linux_target_ops): New structure.
21891 (initialize_low): Call set_target_ops ().
21892 * remote-utils.c (unhexify): New function.
21893 (hexify): New function.
21894 (input_interrupt): Send signals to ``signal_pid''.
21895 * server.c (inferior_pid): Remove.
21896 (start_inferior): Update create_inferior call.
21897 (attach_inferior): Call add_inferior.
21898 (handle_query): New function.
21899 (main): Call handle_query for `q' packets.
21900 * server.h: Include "target.h". Remove obsolete prototypes.
21901 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21902
219032002-04-09 Daniel Jacobowitz <drow@mvista.com>
21904
21905 * Makefile.in: Add WARN_CFLAGS. Update configury
21906 dependencies.
21907 * configure.in: Check for <string.h>
21908 * configure: Regenerate.
21909 * config.in: Regenerate.
21910 * gdbreplay.c: Include needed system headers.
21911 (remote_open): Remove strchr prototype.
21912 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21913 * regcache.c (supply_register): Change buf argument to const void *.
21914 (supply_register_by_name): Likewise.
21915 (collect_register): Change buf argument to void *.
21916 (collect_register_by_name): Likewise.
21917 * regcache.h: Add missing prototypes.
21918 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21919 * server.c (handle_query): New function.
21920 (attached): New static variable, moved out of main.
21921 (main): Quiet longjmp clobber warnings.
21922 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21923 * utils.c (error): Remove NORETURN.
21924 (fatal): Likewise.
This page took 4.260437 seconds and 4 git commands to generate.