]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
Handle pending stops from the Windows kernel
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
98a03287
TT
12020-04-08 Tom Tromey <tromey@adacore.com>
2
3 * win32-low.c (win32_require_context, suspend_one_thread): Use
4 windows_thread_info::suspend.
5 (continue_one_thread): Use windows_thread_info::resume.
6 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
7
62fe396b
TT
82020-04-08 Tom Tromey <tromey@adacore.com>
9
10 * win32-i386-low.c (update_debug_registers)
11 (i386_prepare_to_resume, i386_thread_added): Update.
12
e9534bd2
TT
132020-04-08 Tom Tromey <tromey@adacore.com>
14
15 * win32-low.c (child_add_thread): Use new.
16 (delete_thread_info): Use delete.
17
ae1f8880
TT
182020-04-08 Tom Tromey <tromey@adacore.com>
19
20 * win32-low.h (struct windows_thread_info): Remove.
21
e56f8ccb
TT
222020-04-08 Tom Tromey <tromey@adacore.com>
23
24 * win32-low.h (struct windows_thread_info): Rename from
25 win32_thread_info. Remove typedef.
26 (struct win32_target_ops, win32_require_context): Update.
27 * win32-low.c (win32_get_thread_context)
28 (win32_set_thread_context, win32_prepare_to_resume)
29 (win32_require_context, thread_rec, child_add_thread)
30 (delete_thread_info, continue_one_thread)
31 (child_fetch_inferior_registers, child_store_inferior_registers)
32 (win32_resume, suspend_one_thread, win32_get_tib_address):
33 Update.
34 * win32-i386-low.c (update_debug_registers)
35 (win32_get_current_dr, i386_get_thread_context)
36 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
37 (i386_fetch_inferior_register, i386_store_inferior_register):
38 Update.
39 * win32-arm-low.c (arm_get_thread_context)
40 (arm_fetch_inferior_register, arm_store_inferior_register):
41 Update.
42
0dd7b52e
TBA
432020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
44
45 * linux-low.h (struct linux_target_ops): Remove.
46 (the_low_target): Remove.
47 * linux-x86-low.cc (the_low_target): Remove.
48 * linux-aarch64-low.cc (the_low_target): Ditto.
49 * linux-arm-low.cc (the_low_target): Ditto.
50 * linux-bfin-low.cc (the_low_target): Ditto.
51 * linux-cris-low.cc (the_low_target): Ditto.
52 * linux-crisv32-low.cc (the_low_target): Ditto.
53 * linux-ia64-low.cc (the_low_target): Ditto.
54 * linux-m32r-low.cc (the_low_target): Ditto.
55 * linux-m68k-low.cc (the_low_target): Ditto.
56 * linux-mips-low.cc (the_low_target): Ditto.
57 * linux-nios2-low.cc (the_low_target): Ditto.
58 * linux-ppc-low.cc (the_low_target): Ditto.
59 * linux-riscv-low.cc (the_low_target): Ditto.
60 * linux-s390-low.cc (the_low_target): Ditto.
61 * linux-sh-low.cc (the_low_target): Ditto.
62 * linux-sparc-low.cc (the_low_target): Ditto.
63 * linux-tic6x-low.cc (the_low_target): Ditto.
64 * linux-tile-low.cc (the_low_target): Ditto.
65 * linux-xtensa-low.cc (the_low_target): Ditto.
66
fc5ecdb6
TBA
672020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
68
69 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
70 linux target define the op by overriding the declaration in
71 process_stratum_target.
72
73 * linux-low.h (struct linux_target_ops): Remove the op.
74 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
75 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
76 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
77 (x86_get_ipa_tdesc_idx): Turn into...
78 (x86_target::get_ipa_tdesc_idx): ...this.
79 (the_low_target): Remove the op field.
80 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
81 (ppc_get_ipa_tdesc_idx): Turn into...
82 (ppc_target::get_ipa_tdesc_idx): ...this.
83 (the_low_target): Remove the op field.
84 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
85 (s390_get_ipa_tdesc_idx): Turn into...
86 (s390_target::get_ipa_tdesc_idx): ...this.
87 (the_low_target): Remove the op field.
88
9eedd27d
TBA
892020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
90
91 Turn the 'get_syscall_trapinfo' linux target op into a method
92 of process_stratum_target.
93
94 * linux-low.h (struct linux_target_ops): Remove the op.
95 (class linux_process_target) <get_syscall_trapinfo>
96 <gdb_catch_this_syscall>
97 <low_supports_catch_syscall>
98 <low_get_syscall_trapinfo>: Declare.
99 * linux-low.cc (get_syscall_trapinfo): Turn into...
100 (linux_process_target::get_syscall_trapinfo): ...this.
101 (linux_process_target::low_get_syscall_trapinfo): Define.
102 (gdb_catch_this_syscall_p): Turn into...
103 (linux_process_target::gdb_catch_this_syscall): ...this.
104 (linux_process_target::low_supports_catch_syscall): Define.
105
106 Update the callers below.
107
108 (linux_process_target::wait_1)
109 (linux_process_target::supports_catch_syscall)
110
111 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
112 <low_get_syscall_trapinfo>: Declare.
113 (x86_target::low_supports_catch_syscall): Define.
114 (x86_get_syscall_trapinfo): Turn into...
115 (x86_target::low_get_syscall_trapinfo): ...this.
116 (the_low_target): Remove the op field.
117 * linux-aarch64-low.cc (class aarch64_target)
118 <low_supports_catch_syscall>
119 <low_get_syscall_trapinfo>: Declare.
120 (aarch64_target::low_supports_catch_syscall): Define.
121 (aarch64_get_syscall_trapinfo): Turn into...
122 (aarch64_target::low_get_syscall_trapinfo): ...this.
123 (the_low_target): Remove the op field.
124 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
125 <low_get_syscall_trapinfo>: Declare.
126 (arm_target::low_supports_catch_syscall): Define.
127 (arm_get_syscall_trapinfo): Turn into...
128 (arm_target::low_get_syscall_trapinfo): ...this.
129 (the_low_target): Remove the op field.
130 * linux-ppc-low.cc (the_low_target): Remove the op field.
131 * linux-s390-low.cc (the_low_target): Remove the op field.
132
b31cdfa6
TBA
1332020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
134
135 Remove the 'supports_hardware_single_step' linux target op and
136 override the process_stratum_target's op definition in
137 linux_process_target to return true.
138
139 * linux-low.h (struct linux_target_ops): Remove the op.
140 (class linux_process_target) <finish_step_over>
141 <maybe_hw_step>: Declare.
142 * linux-low.cc (can_hardware_single_step): Remove.
143 (maybe_hw_step): Turn into...
144 (linux_process_target::maybe_hw_step): ...this.
145 (finish_step_over): Turn into...
146 (linux_process_target::finish_step_over): ...this.
147 (linux_process_target::supports_hardware_single_step): Update
148 to return true.
149
150 Update the callers below.
151
152 (linux_process_target::single_step)
153 (linux_process_target::resume_one_lwp_throw)
154
155 * linux-arm-low.cc (class arm_target)
156 <supports_hardware_single_step>: Declare.
157 (arm_supports_hardware_single_step): Turn into...
158 (arm_target::supports_hardware_single_step): ...this.
159 (the_low_target): Remove the op field.
160 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
161 (the_low_target): Remove the op field.
162 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
163 Remove.
164 (the_low_target): Remove the op field.
165 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
166 (the_low_target): Remove the op field.
167 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
168 (the_low_target): Remove the op field.
169 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
170 (the_low_target): Remove the op field.
171 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
172 (the_low_target): Remove the op field.
173 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
174 (the_low_target): Remove the op field.
175 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
176 (the_low_target): Remove the op field.
177 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
178 (the_low_target): Remove the op field.
179 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
180 (the_low_target): Remove the op field.
181 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
182 (the_low_target): Remove the op field.
183 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
184 Remove.
185 (the_low_target): Remove the op field.
186
9cfd8715
TBA
1872020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
188
189 Turn the 'supports_range_stepping' linux target op into a method
190 of linux_process_target.
191
192 * linux-low.h (struct linux_target_ops): Remove the op.
193 (class linux_process_target) <low_supports_range_stepping>: Declare.
194 * linux-low.cc (linux_process_target::low_supports_range_stepping):
195 Define.
196 (linux_process_target::supports_range_stepping): Update the call
197 site.
198 * linux-x86-low.cc (class x86_target)
199 <low_supports_range_stepping>: Declare.
200 (x86_supports_range_stepping): Turn into...
201 (x86_target::low_supports_range_stepping): ...this.
202 (the_low_target): Remove the op field.
203 * linux-aarch64-low.cc (class aarch64_target)
204 <low_supports_range_stepping>: Declare.
205 (aarch64_supports_range_stepping): Turn into...
206 (aarch64_target::low_supports_range_stepping): ...this.
207 (the_low_target): Remove the op field.
208 * linux-arm-low.cc (the_low_target): Remove the op field.
209 * linux-bfin-low.cc (the_low_target): Ditto.
210 * linux-crisv32-low.cc (the_low_target): Ditto.
211 * linux-m32r-low.cc (the_low_target): Ditto.
212 * linux-m68k-low.cc (the_low_target): Ditto.
213 * linux-ppc-low.cc (the_low_target): Ditto.
214 * linux-s390-low.cc (the_low_target): Ditto.
215 * linux-sh-low.cc (the_low_target): Ditto.
216 * linux-tic6x-low.cc (the_low_target): Ditto.
217 * linux-tile-low.cc (the_low_target): Ditto.
218 * linux-xtensa-low.cc (the_low_target): Ditto.
219
ab64c999
TBA
2202020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
221
222 Remove the 'emit_ops' linux target ops and let the concrete
223 linux target define the op by overriding the declaration of
224 process_stratum_target.
225
226 * linux-low.h (struct linux_target_ops): Remove the op.
227 (class linux_process_target) <emit_ops>: Remove.
228 * linux-low.cc (linux_process_target::emit_ops): Remove.
229 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
230 (x86_emit_ops): Turn into...
231 (x86_target::emit_ops): ...this.
232 (the_low_target): Remove the op field.
233 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
234 (aarch64_emit_ops): Turn into...
235 (aarch64_target::emit_ops): ...this.
236 (the_low_target): Remove the op field.
237 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
238 (ppc_emit_ops): Turn into...
239 (ppc_target::emit_ops): ...this.
240 (the_low_target): Remove the op field.
241 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
242 (s390_emit_ops): Turn into...
243 (s390_target::emit_ops): ...this.
244 (the_low_target): Remove the op field.
245 * linux-arm-low.cc (the_low_target): Remove the op field.
246 * linux-bfin-low.cc (the_low_target): Ditto.
247 * linux-crisv32-low.cc (the_low_target): Ditto.
248 * linux-m32r-low.cc (the_low_target): Ditto.
249 * linux-m68k-low.cc (the_low_target): Ditto.
250 * linux-sh-low.cc (the_low_target): Ditto.
251 * linux-tic6x-low.cc (the_low_target): Ditto.
252 * linux-tile-low.cc (the_low_target): Ditto.
253 * linux-xtensa-low.cc (the_low_target): Ditto.
254
809a0c35
TBA
2552020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
256
257 Remove the 'install_fast_tracepoint_jump_pad' and
258 'get_min_fast_tracepoint_insn_len' linux target ops to let the
259 concrete linux target define the ops by overriding the declarations
260 of process_stratum_target.
261
262 * linux-low.h (struct linux_target_ops): Remove the ops.
263 (class linux_process_target) <supports_fast_tracepoints>
264 <install_fast_tracepoint_jump_pad>
265 <get_min_fast_tracepoint_insn_len>: Remove.
266 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
267 (linux_process_target::install_fast_tracepoint_jump_pad)
268 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
269 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
270 <install_fast_tracepoint_jump_pad>
271 <get_min_fast_tracepoint_insn_len>: Declare.
272 (x86_target::supports_fast_tracepoints): Define.
273 (x86_install_fast_tracepoint_jump_pad): Turn into...
274 (x86_target::install_fast_tracepoint_jump_pad): ...this.
275 (x86_get_min_fast_tracepoint_insn_len): Turn into...
276 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
277 (the_low_target): Remove the op fields.
278 * linux-aarch64-low.cc (class aarch64_target)
279 <supports_fast_tracepoints>
280 <install_fast_tracepoint_jump_pad>
281 <get_min_fast_tracepoint_insn_len>: Declare.
282 (aarch64_target::supports_fast_tracepoints): Define.
283 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
284 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
285 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
286 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
287 (the_low_target): Remove the op fields.
288 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
289 <install_fast_tracepoint_jump_pad>
290 <get_min_fast_tracepoint_insn_len>: Declare.
291 (ppc_target::supports_fast_tracepoints): Define.
292 (ppc_install_fast_tracepoint_jump_pad): Turn into...
293 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
294 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
295 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
296 (the_low_target): Remove the op fields.
297 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
298 <install_fast_tracepoint_jump_pad>
299 <get_min_fast_tracepoint_insn_len>: Declare.
300 (s390_target::supports_fast_tracepoints): Define.
301 (s390_install_fast_tracepoint_jump_pad): Turn into...
302 (s390_target::install_fast_tracepoint_jump_pad): ...this.
303 (s390_get_min_fast_tracepoint_insn_len): Turn into...
304 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
305 (the_low_target): Remove the op fields.
306 * linux-arm-low.cc (the_low_target): Remove the op fields.
307 * linux-bfin-low.cc (the_low_target): Ditto.
308 * linux-crisv32-low.cc (the_low_target): Ditto.
309 * linux-m32r-low.cc (the_low_target): Ditto.
310 * linux-m68k-low.cc (the_low_target): Ditto.
311 * linux-sh-low.cc (the_low_target): Ditto.
312 * linux-tic6x-low.cc (the_low_target): Ditto.
313 * linux-tile-low.cc (the_low_target): Ditto.
314 * linux-xtensa-low.cc (the_low_target): Ditto.
315
13e567af
TBA
3162020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
317
318 Turn the 'get_thread_area' linux target op into a method of
319 process_stratum_target.
320
321 * linux-low.h (struct linux_target_ops): Remove the op.
322 (class linux_process_target) <stuck_in_jump_pad>
323 <linux_fast_tracepoint_collecting>
324 <low_get_thread_area>: Declare.
325 * linux-low.cc (supports_fast_tracepoints): Remove.
326 (linux_fast_tracepoint_collecting): Turn into...
327 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
328 (linux_process_target::low_get_thread_area): Define.
329 (stuck_in_jump_pad_callback): Turn into...
330 (linux_process_target::stuck_in_jump_pad): ...this.
331
332 Update the caller below.
333
334 (linux_process_target::stabilize_threads)
335
336 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
337 Declare.
338 (x86_get_thread_area): Turn into...
339 (x86_target::low_get_thread_area): ...this.
340 (the_low_target): Remove the op field.
341 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
342 Declare.
343 (aarch64_get_thread_area): Turn into...
344 (aarch64_target::low_get_thread_area): ...this.
345 (the_low_target): Remove the op field.
346 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
347 Declare.
348 (ppc_get_thread_area): Turn into...
349 (ppc_target::low_get_thread_area): ...this.
350 (the_low_target): Remove the op field.
351 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
352 Declare.
353 (s390_get_thread_area): Turn into...
354 (s390_target::low_get_thread_area): ...this.
355 (the_low_target): Remove the op field.
356 * linux-arm-low.cc (the_low_target): Remove the op field.
357 * linux-bfin-low.cc (the_low_target): Ditto.
358 * linux-crisv32-low.cc (the_low_target): Ditto.
359 * linux-m32r-low.cc (the_low_target): Ditto.
360 * linux-m68k-low.cc (the_low_target): Ditto.
361 * linux-sh-low.cc (the_low_target): Ditto.
362 * linux-tic6x-low.cc (the_low_target): Ditto.
363 * linux-tile-low.cc (the_low_target): Ditto.
364 * linux-xtensa-low.cc (the_low_target): Ditto.
365
47f70aa7
TBA
3662020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
367
368 Remote the 'supports_tracepoints' linux target op and let the
369 concrete linux target define it by overriding the op declared in
370 process_stratum_target.
371
372 * linux-low.h (struct linux_target_ops): Remove the op.
373 (class linux_process_target) <supports_tracepoints>: Remove.
374 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
375 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
376 Declare.
377 (x86_supports_tracepoints): Turn into...
378 (x86_target::supports_tracepoints): ...this.
379 (the_low_target): Remove the op field.
380 * linux-aarch64-low.cc (class aarch64_target)
381 <supports_tracepoints>: Declare.
382 (aarch64_supports_tracepoints): Turn into...
383 (aarch64_target::supports_tracepoints): ...this.
384 (the_low_target): Remove the op field.
385 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
386 Declare.
387 (ppc_supports_tracepoints): Turn into...
388 (ppc_target::supports_tracepoints): ...this.
389 (the_low_target): Remove the op field.
390 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
391 Declare.
392 (s390_supports_tracepoints): Turn into...
393 (s390_target::supports_tracepoints): ...this.
394 (the_low_target): Remove the op field.
395 * linux-arm-low.cc (the_low_target): Remove the op field.
396 * linux-bfin-low.cc (the_low_target): Ditto.
397 * linux-crisv32-low.cc (the_low_target): Ditto.
398 * linux-m32r-low.cc (the_low_target): Ditto.
399 * linux-m68k-low.cc (the_low_target): Ditto.
400 * linux-sh-low.cc (the_low_target): Ditto.
401 * linux-tic6x-low.cc (the_low_target): Ditto.
402 * linux-tile-low.cc (the_low_target): Ditto.
403 * linux-xtensa-low.cc (the_low_target): Ditto.
404
a5b5da92
TBA
4052020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
406
407 Remove the 'process_qsupported' linux target op and let a concrete
408 linux target define the op by overriding the op declaration in
409 process_stratum_target.
410
411 * linux-low.h (struct linux_target_ops): Remove the op.
412 (class linux_process_target) <process_qsupported>: Remove.
413 * linux-low.cc (linux_process_target::process_qsupported): Remove.
414 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
415 (x86_linux_process_qsupported): Turn into...
416 (x86_target::process_qsupported): ...this.
417 (the_low_target): Remove the op field.
418 * linux-aarch64-low.cc (the_low_target): Remove the op
419 field.
420 * linux-arm-low.cc (the_low_target): Ditto.
421 * linux-bfin-low.cc (the_low_target): Ditto.
422 * linux-crisv32-low.cc (the_low_target): Ditto.
423 * linux-m32r-low.cc (the_low_target): Ditto.
424 * linux-m68k-low.cc (the_low_target): Ditto.
425 * linux-ppc-low.cc (the_low_target): Ditto.
426 * linux-s390-low.cc (the_low_target): Ditto.
427 * linux-sh-low.cc (the_low_target): Ditto.
428 * linux-tic6x-low.cc (the_low_target): Ditto.
429 * linux-tile-low.cc (the_low_target): Ditto.
430 * linux-xtensa-low.cc (the_low_target): Ditto.
431
d7599cc0
TBA
4322020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
433
434 Turn the 'prepare_to_resume' linux target op into a method of
435 linux_process_target.
436
437 * linux-low.h (struct linux_target_ops): Remove the op.
438 (class linux_process_target) <low_prepare_to_resume>: Declare.
439 * linux-low.cc (linux_process_target::low_prepare_to_resume):
440 Define.
441
442 Update the callers below:
443
444 (linux_process_target::resume_one_lwp_throw)
445 (linux_process_target::low_prepare_to_resume)
446
447 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
448 Declare.
449 (x86_target::low_prepare_to_resume): Define.
450 (the_low_target): Remove the op field.
451 * linux-aarch64-low.cc (class aarch64_target)
452 <low_prepare_to_resume>: Declare.
453 (aarch64_target::low_prepare_to_resume): Define.
454 (the_low_target): Remove the op field.
455 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
456 Declare.
457 (arm_prepare_to_resume): Turn into...
458 (arm_target::low_prepare_to_resume): ...this.
459 (the_low_target): Remove the op field.
460 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
461 Declare.
462 (mips_linux_prepare_to_resume): Turn into...
463 (mips_target::low_prepare_to_resume): ...this.
464 (the_low_target): Remove the op field.
465 * linux-bfin-low.cc (the_low_target): Remove the op field.
466 * linux-crisv32-low.cc (the_low_target): Ditto.
467 * linux-m32r-low.cc (the_low_target): Ditto.
468 * linux-m68k-low.cc (the_low_target): Ditto.
469 * linux-ppc-low.cc (the_low_target): Ditto.
470 * linux-s390-low.cc (the_low_target): Ditto.
471 * linux-sh-low.cc (the_low_target): Ditto.
472 * linux-tic6x-low.cc (the_low_target): Ditto.
473 * linux-tile-low.cc (the_low_target): Ditto.
474 * linux-xtensa-low.cc (the_low_target): Ditto.
475
fd000fb3
TBA
4762020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
477
478 Turn the 'new_process', 'delete_process', 'new_thread',
479 'delete_thread', and 'new_fork' linux target ops into methods
480 of linux_process_target.
481
482 * linux-low.h (struct linux_target_ops): Remove the ops.
483 (class linux_process_target) <add_linux_process>
484 <add_lwp>
485 <delete_lwp>
486 <attach_lwp>
487 <detach_one_lwp>
488 <check_zombie_leaders>
489 <filter_exit_event>
490 <low_new_process>
491 <low_delete_process>
492 <low_new_thread>
493 <low_delete_thread>
494 <low_new_fork>: Declare.
495 * linux-low.cc (delete_lwp): Turn into...
496 (linux_process_target::delete_lwp): ...this.
497 (linux_process_target::low_delete_thread): Define.
498 (linux_add_process): Turn into...
499 (linux_process_target::add_linux_process): ...this.
500 (linux_process_target::low_new_process): Define.
501 (linux_process_target::low_delete_process): Define.
502 (linux_process_target::low_new_fork): Define.
503 (add_lwp): Turn into...
504 (linux_process_target::add_lwp): ...this.
505 (linux_process_target::low_new_thread): Define.
506 (linux_attach_lwp): Turn into...
507 (linux_process_target::attach_lwp): ...this.
508 (linux_detach_one_lwp): Turn into...
509 (linux_process_target::detach_one_lwp): ...this.
510 (linux_detach_lwp_callback): Remove and inline...
511 (linux_process_target::detach): ...here.
512 (check_zombie_leaders): Turn into...
513 (linux_process_target::check_zombie_leaders): ...this.
514 (filter_exit_event): Turn into...
515 (linux_process_target::filter_exit_event): ...this.
516
517 Update the callers below.
518
519 (linux_process_target::handle_extended_wait)
520 (linux_process_target::create_inferior)
521 (attach_proc_task_lwp_callback)
522 (linux_process_target::attach)
523 (linux_process_target::detach)
524 (linux_process_target::mourn)
525 * thread-db.cc (attach_thread)
526
527 * linux-x86-low.cc (class x86_target) <low_new_process>
528 <low_delete_process>
529 <low_new_thread>
530 <low_delete_thread>
531 <low_new_fork>: Declare.
532 (x86_linux_new_process): Turn into...
533 (x86_target::low_new_process): ...this.
534 (x86_linux_delete_process): Turn into...
535 (x86_target::low_delete_process): ...this.
536 (x86_target::low_new_thread): Define.
537 (x86_target::low_delete_thread): Define.
538 (x86_linux_new_fork): Turn into...
539 (x86_target::low_new_fork): ...this.
540 (the_low_target): Remove the op fields.
541 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
542 <low_delete_process>
543 <low_new_thread>
544 <low_delete_thread>
545 <low_new_fork>: Declare.
546 (aarch64_linux_new_process): Turn into...
547 (aarch64_target::low_new_process): ...this.
548 (aarch64_linux_delete_process): Turn into...
549 (aarch64_target::low_delete_process): ...this.
550 (aarch64_target::low_new_thread): Define.
551 (aarch64_target::low_delete_thread): Define.
552 (aarch64_linux_new_fork): Turn into...
553 (aarch64_target::low_new_fork): ...this.
554 (the_low_target): Remove the op fields.
555 * linux-arm-low.cc (class arm_target) <low_new_process>
556 <low_delete_process>
557 <low_new_thread>
558 <low_delete_thread>
559 <low_new_fork>: Declare.
560 (arm_new_process): Turn into...
561 (arm_target::low_new_process): ...this.
562 (arm_delete_process): Turn into...
563 (arm_target::low_delete_process): ...this.
564 (arm_new_thread): Turn into...
565 (arm_target::low_new_thread): ...this.
566 (arm_delete_thread): Turn into...
567 (arm_target::low_delete_thread): ...this.
568 (arm_new_fork): Turn into...
569 (arm_target::low_new_fork): ...this.
570 (the_low_target): Remove the op fields.
571 * linux-mips-low.cc (class mips_target) <low_new_process>
572 <low_delete_process>
573 <low_new_thread>
574 <low_delete_thread>
575 <low_new_fork>: Declare.
576 (mips_linux_new_process): Turn into...
577 (mips_target::low_new_process): ...this.
578 (mips_linux_delete_process): Turn into...
579 (mips_target::low_delete_process): ...this.
580 (mips_linux_new_thread): Turn into...
581 (mips_target::low_new_thread): ...this.
582 (mips_linux_delete_thread): Turn into...
583 (mips_target::low_delete_thread): ...this.
584 (mips_linux_new_fork): Turn into...
585 (mips_target::low_new_fork): ...this.
586 (the_low_target): Remove the op fields.
587 * linux-bfin-low.cc (the_low_target): Remove the op fields.
588 * linux-crisv32-low.cc (the_low_target): Ditto.
589 * linux-m32r-low.cc (the_low_target): Ditto.
590 * linux-m68k-low.cc (the_low_target): Ditto.
591 * linux-ppc-low.cc (the_low_target): Ditto.
592 * linux-s390-low.cc (the_low_target): Ditto.
593 * linux-sh-low.cc (the_low_target): Ditto.
594 * linux-tic6x-low.cc (the_low_target): Ditto.
595 * linux-tile-low.cc (the_low_target): Ditto.
596 * linux-xtensa-low.cc (the_low_target): Ditto.
597
cb63de7c
TBA
5982020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
599
600 Turn the 'siginfo_fixup' linux target op into a method of
601 linux_process_target.
602
603 * linux-low.h (struct linux_target_ops): Remove the op.
604 (class linux_process_target) <siginfo_fixup>
605 <low_siginfo_fixup>: Declare.
606 * linux-low.cc (siginfo_fixup): Turn into...
607 (linux_process_target::siginfo_fixup): ...this.
608 (linux_process_target::low_siginfo_fixup): Define.
609 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
610 (x86_siginfo_fixup): Turn into...
611 (x86_target::low_siginfo_fixup): ...this.
612 (the_low_target): Remove the op field.
613 * linux-aarch64-low.cc (class aarch64_target):
614 <low_siginfo_fixup>: Declare.
615 (aarch64_linux_siginfo_fixup): Turn into...
616 (aarch64_target::low_siginfo_fixup): ...this.
617 (the_low_target): Remove the op field.
618 * linux-arm-low.cc (the_low_target): Remove the op field.
619 * linux-bfin-low.cc (the_low_target): Ditto.
620 * linux-crisv32-low.cc (the_low_target): Ditto.
621 * linux-m32r-low.cc (the_low_target): Ditto.
622 * linux-m68k-low.cc (the_low_target): Ditto.
623 * linux-mips-low.cc (the_low_target): Ditto.
624 * linux-ppc-low.cc (the_low_target): Ditto.
625 * linux-s390-low.cc (the_low_target): Ditto.
626 * linux-sh-low.cc (the_low_target): Ditto.
627 * linux-tic6x-low.cc (the_low_target): Ditto.
628 * linux-tile-low.cc (the_low_target): Ditto.
629 * linux-xtensa-low.cc (the_low_target): Ditto.
630
b35db733
TBA
6312020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
632
633 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
634 linux target ops into methods of linux_process_target.
635
636 * linux-low.h (struct linux_target_ops): Remove the ops.
637 (class linux_process_target) <low_collect_ptrace_register>
638 <low_store_ptrace_register>: Declare.
639 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
640 (linux_process_target::low_supply_ptrace_register): Define.
641
642 Update the callers below.
643
644 (linux_process_target::fetch_register)
645 (linux_process_target::store_register)
646
647 * linux-x86-low.cc (the_low_target): Remove the op fields.
648 * linux-aarch64-low.cc (the_low_target): Ditto.
649 * linux-arm-low.cc (the_low_target): Ditto.
650 * linux-bfin-low.cc (the_low_target): Ditto.
651 * linux-crisv32-low.cc (the_low_target): Ditto.
652 * linux-m32r-low.cc (the_low_target): Ditto.
653 * linux-m68k-low.cc (the_low_target): Ditto.
654 * linux-sh-low.cc (the_low_target): Ditto.
655 * linux-sparc-low.cc (the_low_target): Ditto.
656 * linux-tic6x-low.cc (the_low_target): Ditto.
657 * linux-tile-low.cc (the_low_target): Ditto.
658 * linux-xtensa-low.cc (the_low_target): Ditto.
659 * linux-mips-low.cc (class mips_target)
660 <low_collect_ptrace_register>
661 <low_supply_ptrace_register>: Declare.
662 (mips_collect_ptrace_register): Turn into ...
663 (mips_target::low_collect_ptrace_register): ...this.
664 (mips_supply_ptrace_register): Turn into...
665 (mips_target::low_supply_ptrace_register): ...this.
666 (the_low_target): Remove the op fields.
667 * linux-ppc-low.cc (class ppc_target)
668 <low_collect_ptrace_register>
669 <low_supply_ptrace_register>: Declare.
670 (ppc_collect_ptrace_register): Turn into ...
671 (ppc_target::low_collect_ptrace_register): ...this.
672 (ppc_supply_ptrace_register): Turn into ...
673 (ppc_target::low_supply_ptrace_register): ...this.
674 (ppc_fill_gregset): Update for the calls to
675 low_collect_ptrace_register.
676 (the_low_target): Remove the op fields.
677 * linux-s390-low.cc (class s390_target)
678 <low_collect_ptrace_register>
679 <low_supply_ptrace_register>: Declare.
680 (s390_collect_ptrace_register): Turn into ...
681 (s390_target::low_collect_ptrace_register): ...this.
682 (s390_supply_ptrace_register): Turn into ...
683 (s390_target::low_supply_ptrace_register): ...this.
684 (s390_fill_gregset): Update for the calls to
685 low_collect_ptrace_register.
686 (the_low_target): Remove the op fields.
687
ac1bbaca
TBA
6882020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
689
690 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
691 target ops into methods of linux_process_target.
692
693 * linux-low.h (struct linux_target_ops): Remove the ops.
694 (class linux_process_target) <check_stopped_by_watchpoint>
695 <low_stopped_by_watchpoint>
696 <low_stopped_data_address>: Declare.
697 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
698 (linux_process_target::check_stopped_by_watchpoint): ...this.
699 (linux_process_target::low_stopped_by_watchpoint): Define.
700 (linux_process_target::low_stopped_data_address): Define.
701 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
702 <low_stopped_data_address>: Declare.
703 (x86_stopped_by_watchpoint): Turn into...
704 (x86_target::low_stopped_by_watchpoint): ...this.
705 (x86_stopped_data_address): Turn into...
706 (x86_target::low_stopped_data_address): ...this.
707 (the_low_target): Remove the op fields.
708 * linux-aarch64-low.cc (class aarch64_target)
709 <low_stopped_by_watchpoint>
710 <low_stopped_data_address>: Declare.
711 (aarch64_stopped_by_watchpoint): Turn into...
712 (aarch64_target::low_stopped_by_watchpoint): ...this.
713 (aarch64_stopped_data_address): Turn into...
714 (aarch64_target::low_stopped_data_address): ...this.
715 (the_low_target): Remove the op fields.
716 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
717 <low_stopped_data_address>: Declare.
718 (arm_stopped_by_watchpoint): Turn into...
719 (arm_target::low_stopped_by_watchpoint): ...this.
720 (arm_stopped_data_address): Turn into...
721 (arm_target::low_stopped_data_address): ...this.
722 (the_low_target): Remove the op fields.
723 * linux-crisv32-low.cc (class crisv32_target)
724 <low_stopped_by_watchpoint>
725 <low_stopped_data_address>: Declare.
726 (cris_stopped_by_watchpoint): Turn into...
727 (crisv32_target::low_stopped_by_watchpoint): ...this.
728 (cris_stopped_data_address): Turn into...
729 (crisv32_target::low_stopped_data_address): ...this.
730 (the_low_target): Remove the op fields.
731 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
732 <low_stopped_data_address>: Declare.
733 (mips_stopped_by_watchpoint): Turn into...
734 (mips_target::low_stopped_by_watchpoint): ...this.
735 (mips_stopped_data_address): Turn into...
736 (mips_target::low_stopped_data_address): ...this.
737 (the_low_target): Remove the op fields.
738 * linux-bfin-low.cc (the_low_target): Remove the op fields.
739 * linux-m32r-low.cc (the_low_target): Ditto.
740 * linux-m68k-low.cc (the_low_target): Ditto.
741 * linux-ppc-low.cc (the_low_target): Ditto.
742 * linux-s390-low.cc (the_low_target): Ditto.
743 * linux-sh-low.cc (the_low_target): Ditto.
744 * linux-sparc-low.cc (the_low_target): Ditto.
745 * linux-tic6x-low.cc (the_low_target): Ditto.
746 * linux-tile-low.cc (the_low_target): Ditto.
747 * linux-xtensa-low.cc (the_low_target): Ditto.
748
9db9aa23
TBA
7492020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
750
751 Turn the 'insert_point' and 'remove_point' linux target ops into
752 methods of linux_process_target.
753
754 * linux-low.h (struct linux_target_ops): Remove the ops.
755 (class linux_process_target) <low_insert_point>
756 <low_remove_point>: Declare.
757 * linux-low.cc (linux_process_target::low_insert_point)
758 (linux_process_target::low_remove_point): Define.
759 (linux_process_target::insert_point)
760 (linux_process_target::remove_point): Update for calls to
761 low_insert_point and low_remove_point.
762 * linux-x86-low.cc (class x86_target) <low_insert_point>
763 <low_remove_point>: Declare.
764 (x86_insert_point): Turn into...
765 (x86_target::low_insert_point): ...this.
766 (x86_remove_point): Turn into...
767 (x86_target::low_remove_point): ...this.
768 (the_low_target): Remove the op fields.
769 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
770 <low_remove_point>: Declare.
771 (aarch64_insert_point): Turn into...
772 (aarch64_target::low_insert_point): ...this.
773 (aarch64_remove_point): Turn into...
774 (aarch64_target::low_remove_point): ...this.
775 (the_low_target): Remove the op fields.
776 * linux-arm-low.cc (class arm_target) <low_insert_point>
777 <low_remove_point>: Declare.
778 (arm_insert_point): Turn into...
779 (arm_target::low_insert_point): ...this.
780 (arm_remove_point): Turn into...
781 (arm_target::low_remove_point): ...this.
782 (the_low_target): Remove the op fields.
783 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
784 <low_remove_point>: Declare.
785 (crisv32_insert_point): Turn into...
786 (crisv32_target::low_insert_point): ...this.
787 (crisv32_remove_point): Turn into...
788 (crisv32_target::low_remove_point): ...this.
789 (the_low_target): Remove the op fields.
790 * linux-mips-low.cc (class mips_target) <low_insert_point>
791 <low_remove_point>: Declare.
792 (mips_insert_point): Turn into...
793 (mips_target::low_insert_point): ...this.
794 (mips_remove_point): Turn into...
795 (mips_target::low_remove_point): ...this.
796 (the_low_target): Remove the op fields.
797 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
798 <low_remove_point>: Declare.
799 (ppc_insert_point): Turn into...
800 (ppc_target::low_insert_point): ...this.
801 (ppc_remove_point): Turn into...
802 (ppc_target::low_remove_point): ...this.
803 (the_low_target): Remove the op fields.
804 * linux-bfin-low.cc (the_low_target): Remove the op fields.
805 * linux-m32r-low.cc (the_low_target): Ditto.
806 * linux-m68k-low.cc (the_low_target): Ditto.
807 * linux-s390-low.cc (the_low_target): Ditto.
808 * linux-sh-low.cc (the_low_target): Ditto.
809 * linux-sparc-low.cc (the_low_target): Ditto.
810 * linux-tic6x-low.cc (the_low_target): Ditto.
811 * linux-tile-low.cc (the_low_target): Ditto.
812 * linux-xtensa-low.cc (the_low_target): Ditto.
813
007c9b97
TBA
8142020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
815
816 Remove the 'supports_z_point_type' linux target op and let the
817 concrete linux target define it by overriding the op declared in
818 process_stratum_target.
819
820 * linux-low.cc (linux_process_target::supports_z_point_type):
821 Remove.
822 * linux-low.h (struct linux_target_ops): Remove the op.
823 (class linux_process_target) <supports_z_point_type>: Remove.
824 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
825 Declare.
826 (x86_supports_z_point_type): Turn into...
827 (x86_target::supports_z_point_type): ...this.
828 (the_low_target): Remove the op field.
829 * linux-aarch64-low.cc (class aarch64_target)
830 <supports_z_point_type>: Declare.
831 (aarch64_supports_z_point_type): Turn into...
832 (aarch64_target::supports_z_point_type): ...this.
833 (the_low_target): Remove the op field.
834 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
835 Declare.
836 (arm_supports_z_point_type): Turn into...
837 (arm_target::supports_z_point_type): ...this.
838 (the_low_target): Remove the op field.
839 * linux-crisv32-low.cc (class crisv32_target)
840 <supports_z_point_type>: Declare.
841 (cris_supports_z_point_type): Turn into...
842 (crisv32_target::supports_z_point_type): ...this.
843 (the_low_target): Remove the op field.
844 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
845 Declare.
846 (mips_supports_z_point_type): Turn into...
847 (mips_target::supports_z_point_type): ...this.
848 (the_low_target): Remove the op field.
849 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
850 Declare.
851 (ppc_supports_z_point_type): Turn into...
852 (ppc_target::supports_z_point_type): ...this.
853 (the_low_target): Remove the op field.
854 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
855 Declare.
856 (s390_supports_z_point_type): Turn into...
857 (s390_target::supports_z_point_type): ...this.
858 (the_low_target): Remove the op field.
859 * linux-bfin-low.cc (the_low_target): Remove the op field.
860 * linux-m32r-low.cc (the_low_target): Ditto.
861 * linux-m68k-low.cc (the_low_target): Ditto.
862 * linux-sh-low.cc (the_low_target): Ditto.
863 * linux-sparc-low.cc (the_low_target): Ditto.
864 * linux-tic6x-low.cc (the_low_target): Ditto.
865 * linux-tile-low.cc (the_low_target): Ditto.
866 * linux-xtensa-low.cc (the_low_target): Ditto.
867
d7146cda
TBA
8682020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
869
870 Turn the 'breakpoint_at' linux target op into a method of
871 linux_process_target.
872
873 * linux-low.h (struct linux_target_ops): Remove the op.
874 (class linux_process_target) <low_breakpoint_at>: Declare.
875
876 Update the callers below:
877
878 * linux-low.cc (linux_process_target::save_stop_reason)
879 (linux_process_target::thread_still_has_status_pending)
880 (linux_process_target::wait_1)
881
882 * linux-x86-low.cc (class x86_target)
883 <low_breakpoint_at>: Declare.
884 (x86_breakpoint_at): Turn into...
885 (x86_target::low_breakpoint_at): ...this.
886 (the_low_target): Remove the op field.
887 * linux-aarch64-low.cc (class aarch64_target)
888 <low_breakpoint_at>: Declare.
889 (aarch64_breakpoint_at): Turn into...
890 (aarch64_target::low_breakpoint_at): ...this.
891 (the_low_target): Remove the op field.
892 * linux-arm-low.cc (class arm_target)
893 <low_breakpoint_at>: Declare.
894 (arm_target::low_breakpoint_at): Define.
895 (the_low_target): Remove the op field.
896 * linux-bfin-low.cc (class bfin_target)
897 <low_breakpoint_at>: Declare.
898 (bfin_breakpoint_at): Turn into...
899 (bfin_target::low_breakpoint_at): ...this.
900 (the_low_target): Remove the op field.
901 * linux-cris-low.cc (class cris_target)
902 <low_breakpoint_at>: Declare.
903 (cris_breakpoint_at): Turn into...
904 (cris_target::low_breakpoint_at): ...this.
905 (the_low_target): Remove the op field.
906 * linux-crisv32-low.cc (class crisv32_target)
907 <low_breakpoint_at>: Declare.
908 (crisv32_breakpoint_at): Turn into...
909 (crisv32_target::low_breakpoint_at): ...this.
910 (the_low_target): Remove the op field.
911 * linux-ia64-low.cc (class ia64_target)
912 <low_breakpoint_at>: Declare.
913 (ia64_target::low_breakpoint_at): Define.
914 * linux-m32r-low.cc (class m32r_target)
915 <low_breakpoint_at>: Declare.
916 (m32r_breakpoint_at): Turn into...
917 (m32r_target::low_breakpoint_at): ...this.
918 (the_low_target): Remove the op field.
919 * linux-m68k-low.cc (class m68k_target)
920 <low_breakpoint_at>: Declare.
921 (m68k_breakpoint_at): Turn into...
922 (m68k_target::low_breakpoint_at): ...this.
923 (the_low_target): Remove the op field.
924 * linux-mips-low.cc (class mips_target)
925 <low_breakpoint_at>: Declare.
926 (mips_breakpoint_at): Turn into...
927 (mips_target::low_breakpoint_at): ...this.
928 (the_low_target): Remove the op field.
929 * linux-nios2-low.cc (class nios2_target)
930 <low_breakpoint_at>: Declare.
931 (nios2_breakpoint_at): Turn into...
932 (nios2_target::low_breakpoint_at): ...this.
933 (the_low_target): Remove the op field.
934 * linux-ppc-low.cc (class ppc_target)
935 <low_breakpoint_at>: Declare.
936 (ppc_breakpoint_at): Turn into...
937 (ppc_target::low_breakpoint_at): ...this.
938 (the_low_target): Remove the op field.
939 * linux-riscv-low.cc (class riscv_target)
940 <low_breakpoint_at>: Declare.
941 (riscv_breakpoint_at): Turn into...
942 (riscv_target::low_breakpoint_at): ...this.
943 (the_low_target): Remove the op field.
944 * linux-s390-low.cc (class s390_target)
945 <low_breakpoint_at>: Declare.
946 (s390_breakpoint_at): Turn into...
947 (s390_target::low_breakpoint_at): ...this.
948 (the_low_target): Remove the op field.
949 * linux-sh-low.cc (class sh_target)
950 <low_breakpoint_at>: Declare.
951 (sh_breakpoint_at): Turn into...
952 (sh_target::low_breakpoint_at): ...this.
953 (the_low_target): Remove the op field.
954 * linux-sparc-low.cc (class sparc_target)
955 <low_breakpoint_at>: Declare.
956 (sparc_breakpoint_at): Turn into...
957 (sparc_target::low_breakpoint_at): ...this.
958 (the_low_target): Remove the op field.
959 * linux-tic6x-low.cc (class tic6x_target)
960 <low_breakpoint_at>: Declare.
961 (tic6x_breakpoint_at): Turn into...
962 (tic6x_target::low_breakpoint_at): ...this.
963 (the_low_target): Remove the op field.
964 * linux-tile-low.cc (class tile_target)
965 <low_breakpoint_at>: Declare.
966 (tile_breakpoint_at): Turn into...
967 (tile_target::low_breakpoint_at): ...this.
968 (the_low_target): Remove the op field.
969 * linux-xtensa-low.cc (class xtensa_target)
970 <low_breakpoint_at>: Declare.
971 (xtensa_breakpoint_at): Turn into...
972 (xtensa_target::low_breakpoint_at): ...this.
973 (the_low_target): Remove the op field.
974
d4807ea2
TBA
9752020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
976
977 Turn the 'decr_pc_after_break' linux_target_ops field into
978 a method of linux_process_target.
979
980 * linux-low.h (struct linux_target_ops)
981 <decr_pc_after_break>: Remove.
982 (class linux_process_target) <low_decr_pc_after_break>: New method
983 declaration.
984 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
985 New method implementation.
986
987 Update the users below.
988
989 (linux_process_target::save_stop_reason)
990 (linux_process_target::wait_1)
991 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
992 New declaration.
993 (x86_target::low_decr_pc_after_break): New method implementation.
994 (the_low_target): Remove the field.
995 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
996 New declaration.
997 (bfin_target::low_decr_pc_after_break): New method implementation.
998 (the_low_target): Remove the field.
999 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1000 New declaration.
1001 (m68k_target::low_decr_pc_after_break): New method implementation.
1002 (the_low_target): Remove the field.
1003 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1004 New declaration.
1005 (s390_target::low_decr_pc_after_break): New method implementation.
1006 (the_low_target): Remove the field.
1007 * linux-aarch64-low.cc (the_low_target): Remove the field.
1008 * linux-arm-low.cc (the_low_target): Remove the field.
1009 * linux-cris-low.cc (the_low_target): Remove the field.
1010 * linux-crisv32-low.cc (the_low_target): Remove the field.
1011 * linux-m32r-low.cc (the_low_target): Remove the field.
1012 * linux-mips-low.cc (the_low_target): Remove the field.
1013 * linux-nios2-low.cc (the_low_target): Remove the field.
1014 * linux-ppc-low.cc (the_low_target): Remove the field.
1015 * linux-riscv-low.cc (the_low_target): Remove the field.
1016 * linux-sh-low.cc (the_low_target): Remove the field.
1017 * linux-sparc-low.cc (the_low_target): Remove the field.
1018 * linux-tic6x-low.cc (the_low_target): Remove the field.
1019 * linux-tile-low.cc (the_low_target): Remove the field.
1020 * linux-xtensa-low.cc (the_low_target): Remove the field.
1021
7582c77c
TBA
10222020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1023
1024 Remove the 'supports_software_single_step' linux target op and let
1025 the concrete linux target define it by overriding the op in
1026 process_stratum_target.
1027 Turn the 'get_next_pcs' linux target op into a method of
1028 linux_process_target.
1029
1030 * linux-low.h (struct linux_target_ops): Remove the ops.
1031 (class linux_process_target) <supports_software_single_step>:
1032 Remove.
1033 <low_get_next_pcs>: Declare.
1034 * linux-low.cc (can_software_single_step): Remove.
1035 (linux_process_target::low_get_next_pcs): Define.
1036 (linux_process_target::supports_software_single_step): Remove.
1037
1038 Update the callers below.
1039
1040 (linux_process_target::handle_extended_wait)
1041 (linux_process_target::wait_1)
1042 (linux_process_target::install_software_single_step_breakpoints)
1043 (linux_process_target::single_step)
1044 (linux_process_target::thread_needs_step_over)
1045 (linux_process_target::proceed_one_lwp)
1046 (linux_process_target::supports_range_stepping)
1047
1048 * linux-x86-low.cc (the_low_target): Remove the op field.
1049 * linux-aarch64-low.cc (the_low_target): Ditto.
1050 * linux-bfin-low.cc (the_low_target): Ditto.
1051 * linux-cris-low.cc (the_low_target): Ditto.
1052 * linux-crisv32-low.cc (the_low_target): Ditto.
1053 * linux-m32r-low.cc (the_low_target): Ditto.
1054 * linux-m68k-low.cc (the_low_target): Ditto.
1055 * linux-mips-low.cc (the_low_target): Ditto.
1056 * linux-nios2-low.cc (the_low_target): Ditto.
1057 * linux-ppc-low.cc (the_low_target): Ditto.
1058 * linux-riscv-low.cc (the_low_target): Ditto.
1059 * linux-s390-low.cc (the_low_target): Ditto.
1060 * linux-sh-low.cc (the_low_target): Ditto.
1061 * linux-sparc-low.cc (the_low_target): Ditto.
1062 * linux-tic6x-low.cc (the_low_target): Ditto.
1063 * linux-tile-low.cc (the_low_target): Ditto.
1064 * linux-xtensa-low.cc (the_low_target): Ditto.
1065 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1066 <supports_software_single_step>: Declare.
1067 (arm_target::supports_software_single_step): Define.
1068 (arm_gdbserver_get_next_pcs): Turn into...
1069 (arm_target::low_get_next_pcs): ...this.
1070 (the_low_target): Remove the op field.
1071
3ca4edb6
TBA
10722020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1073
1074 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1075 the concrete linux target define it by overriding the op
1076 in process_stratum_target.
1077
1078 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1079 Remove.
1080 * linux-low.h (struct linux_target_ops): Remove the op.
1081 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1082 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1083 Declare.
1084 (x86_sw_breakpoint_from_kind): Turn into...
1085 (x86_target::sw_breakpoint_from_kind): ...this.
1086 (the_low_target): Remove the op field.
1087 * linux-aarch64-low.cc (class aarch64_target)
1088 <sw_breakpoint_from_kind>: Declare.
1089 (aarch64_sw_breakpoint_from_kind): Turn into...
1090 (aarch64_target::sw_breakpoint_from_kind): ...this.
1091 (the_low_target): Remove the op field.
1092 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1093 Declare.
1094 (arm_target::sw_breakpoint_from_kind): Define.
1095 (the_low_target): Remove the op field.
1096 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1097 Declare.
1098 (bfin_sw_breakpoint_from_kind): Turn into...
1099 (bfin_target::sw_breakpoint_from_kind): ...this.
1100 (the_low_target): Remove the op field.
1101 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1102 Declare.
1103 (cris_sw_breakpoint_from_kind): Turn into...
1104 (cris_target::sw_breakpoint_from_kind): ...this.
1105 (the_low_target): Remove the op field.
1106 * linux-crisv32-low.cc (class crisv32_target)
1107 <sw_breakpoint_from_kind>: Declare.
1108 (cris_sw_breakpoint_from_kind): Turn into...
1109 (crisv32_target::sw_breakpoint_from_kind): ...this.
1110 (the_low_target): Remove the op field.
1111 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1112 Declare.
1113 (ia64_target::sw_breakpoint_from_kind): Define.
1114 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1115 Declare.
1116 (m32r_sw_breakpoint_from_kind): Turn into...
1117 (m32r_target::sw_breakpoint_from_kind): ...this.
1118 (the_low_target): Remove the op field.
1119 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1120 Declare.
1121 (m68k_sw_breakpoint_from_kind): Turn into...
1122 (m68k_target::sw_breakpoint_from_kind): ...this.
1123 (the_low_target): Remove the op field.
1124 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1125 Declare.
1126 (mips_sw_breakpoint_from_kind): Turn into...
1127 (mips_target::sw_breakpoint_from_kind): ...this.
1128 (the_low_target): Remove the op field.
1129 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1130 Declare.
1131 (nios2_sw_breakpoint_from_kind): Turn into...
1132 (nios2_target::sw_breakpoint_from_kind): ...this.
1133 (the_low_target): Remove the op field.
1134 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1135 Declare.
1136 (ppc_sw_breakpoint_from_kind): Turn into...
1137 (ppc_target::sw_breakpoint_from_kind): ...this.
1138 (the_low_target): Remove the op field.
1139 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1140 Declare.
1141 (riscv_sw_breakpoint_from_kind): Turn into...
1142 (riscv_target::sw_breakpoint_from_kind): ...this.
1143 (the_low_target): Remove the op field.
1144 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1145 Declare.
1146 (s390_sw_breakpoint_from_kind): Turn into...
1147 (s390_target::sw_breakpoint_from_kind): ...this.
1148 (the_low_target): Remove the op field.
1149 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1150 Declare.
1151 (sh_sw_breakpoint_from_kind): Turn into...
1152 (sh_target::sw_breakpoint_from_kind): ...this.
1153 (the_low_target): Remove the op field.
1154 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1155 Declare.
1156 (sparc_sw_breakpoint_from_kind): Turn into...
1157 (sparc_target::sw_breakpoint_from_kind): ...this.
1158 (the_low_target): Remove the op field.
1159 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1160 Declare.
1161 (tic6x_sw_breakpoint_from_kind): Turn into...
1162 (tic6x_target::sw_breakpoint_from_kind): ...this.
1163 (the_low_target): Remove the op field.
1164 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1165 Declare.
1166 (tile_sw_breakpoint_from_kind): Turn into...
1167 (tile_target::sw_breakpoint_from_kind): ...this.
1168 (the_low_target): Remove the op field.
1169 * linux-xtensa-low.cc (class xtensa_target)
1170 <sw_breakpoint_from_kind>: Declare.
1171 (xtensa_sw_breakpoint_from_kind): Turn into...
1172 (xtensa_target::sw_breakpoint_from_kind): ...this.
1173 (the_low_target): Remove the op field.
1174
06250e4e
TBA
11752020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1176
1177 Remove the 'breakpoint_kind_from_pc' and
1178 'breakpoint_kind_from_current_state' linux target ops, and let the
1179 concrete linux target define them by overriding the ops of
1180 process_stratum_target.
1181
1182 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1183 Remove.
1184 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1185 * linux-low.h (struct linux_target_ops): Remove ops.
1186 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1187 <breakpoint_kind_from_current_state>: Remove.
1188 * linux-x86-low.cc (the_low_target): Remove the op fields.
1189 * linux-bfin-low.cc (the_low_target): Ditto.
1190 * linux-cris-low.cc (the_low_target): Ditto.
1191 * linux-crisv32-low.cc (the_low_target): Ditto.
1192 * linux-m32r-low.cc (the_low_target): Ditto.
1193 * linux-m68k-low.cc (the_low_target): Ditto.
1194 * linux-mips-low.cc (the_low_target): Ditto.
1195 * linux-nios2-low.cc (the_low_target): Ditto.
1196 * linux-ppc-low.cc (the_low_target): Ditto.
1197 * linux-s390-low.cc (the_low_target): Ditto.
1198 * linux-sh-low.cc (the_low_target): Ditto.
1199 * linux-sparc-low.cc (the_low_target): Ditto.
1200 * linux-tic6x-low.cc (the_low_target): Ditto.
1201 * linux-tile-low.cc (the_low_target): Ditto.
1202 * linux-xtensa-low.cc (the_low_target): Ditto.
1203 * linux-aarch64-low.cc (class aarch64_target)
1204 <breakpoint_kind_from_pc>
1205 <breakpoint_kind_from_current_state>: Declare.
1206 (aarch64_breakpoint_kind_from_pc): Turn into...
1207 (aarch64_target::breakpoint_kind_from_pc): ...this.
1208 (aarch64_breakpoint_kind_from_current_state): Turn into...
1209 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1210 (the_low_target): Remove the op fields.
1211 * linux-arm-low.cc (class arm_target):
1212 <breakpoint_kind_from_pc>
1213 <breakpoint_kind_from_current_state>: Declare.
1214 (arm_target::breakpoint_kind_from_pc): Define.
1215 (arm_target::breakpoint_kind_from_current_state): Define.
1216 (the_low_target): Remove the op fields.
1217 * linux-riscv-low.cc (class riscv_target):
1218 <breakpoint_kind_from_pc>: Declare.
1219 (riscv_breakpoint_kind_from_pc): Turn into...
1220 (riscv_target::breakpoint_kind_from_pc): ...this.
1221 (the_low_target): Remove the op fields.
1222
bf9ae9d8
TBA
12232020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1224
1225 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1226 of linux_process_target.
1227
1228 * linux-low.h (struct linux_target_ops): Remove the ops.
1229 (class linux_process_target) <low_supports_breakpoints>
1230 <low_get_pc>
1231 <low_set_pc>: Declare.
1232 * linux-low.cc (supports_breakpoints): Turn into...
1233 (linux_process_target::low_supports_breakpoints): ...this.
1234 (linux_process_target::low_get_pc): Define.
1235 (linux_process_target::low_set_pc): Define.
1236
1237 Update the callers below.
1238
1239 (linux_process_target::get_pc)
1240 (linux_process_target::save_stop_reason)
1241 (linux_process_target::maybe_move_out_of_jump_pad)
1242 (linux_process_target::wait_1)
1243 (linux_process_target::resume_one_lwp_throw)
1244 (linux_process_target::resume)
1245 (linux_process_target::proceed_all_lwps)
1246 (linux_process_target::read_pc)
1247 (linux_process_target::write_pc)
1248
1249 * linux-x86-low.cc (class linux_process_target)
1250 <low_supports_breakpoints>
1251 <low_get_pc>
1252 <low_set_pc>: Declare.
1253 (x86_target::low_supports_breakpoints): Define.
1254 (x86_get_pc): Turn into...
1255 (x86_target::low_get_pc): ...this.
1256 (x86_set_pc): Turn into...
1257 (x86_target::low_set_pc): ...this.
1258 (the_low_target): Remove the op fields.
1259 * linux-arm-low.cc (class arm_target)
1260 <low_supports_breakpoints>
1261 <low_get_pc>
1262 <low_set_pc>: Declare.
1263 (arm_target::low_supports_breakpoints)
1264 (arm_target::low_get_pc)
1265 (arm_target::low_set_pc): Define.
1266 (the_low_target): Remove the op fields.
1267 * linux-bfin-low.cc (class bfin_target)
1268 <low_supports_breakpoints>
1269 <low_get_pc>
1270 <low_set_pc>: Declare.
1271 (bfin_target::low_supports_breakpoints)
1272 (bfin_target::low_get_pc)
1273 (bfin_target::low_set_pc): Define.
1274 (the_low_target): Remove the op fields.
1275 * linux-cris-low.cc (class cris_target)
1276 <low_supports_breakpoints>
1277 <low_get_pc>
1278 <low_set_pc>: Declare.
1279 (cris_target::low_supports_breakpoints)
1280 (cris_target::low_get_pc)
1281 (cris_target::low_set_pc): Define.
1282 (the_low_target): Remove the op fields.
1283 * linux-crisv32-low.cc (class crisv32_target)
1284 <low_supports_breakpoints>
1285 <low_get_pc>
1286 <low_set_pc>: Declare.
1287 (crisv32_target::low_supports_breakpoints)
1288 (crisv32_target::low_get_pc)
1289 (crisv32_target::low_set_pc): Define.
1290 (the_low_target): Remove the op fields.
1291 * linux-m32r-low.cc (class m32r_target)
1292 <low_supports_breakpoints>
1293 <low_get_pc>
1294 <low_set_pc>: Declare.
1295 (m32r_target::low_supports_breakpoints)
1296 (m32r_target::low_get_pc)
1297 (m32r_target::low_set_pc): Define.
1298 (the_low_target): Remove the op fields.
1299 * linux-m68k-low.cc (class m68k_target)
1300 <low_supports_breakpoints>
1301 <low_get_pc>
1302 <low_set_pc>: Declare.
1303 (m68k_target::low_supports_breakpoints)
1304 (m68k_target::low_get_pc)
1305 (m68k_target::low_set_pc): Define.
1306 (the_low_target): Remove the op fields.
1307 * linux-nios2-low.cc (class nios2_target)
1308 <low_supports_breakpoints>
1309 <low_get_pc>
1310 <low_set_pc>: Declare.
1311 (nios2_target::low_supports_breakpoints)
1312 (nios2_target::low_get_pc)
1313 (nios2_target::low_set_pc): Define.
1314 (the_low_target): Remove the op fields.
1315 * linux-sh-low.cc (class sh_target)
1316 <low_supports_breakpoints>
1317 <low_get_pc>
1318 <low_set_pc>: Declare.
1319 (sh_target::low_supports_breakpoints)
1320 (sh_target::low_get_pc)
1321 (sh_target::low_set_pc): Define.
1322 (the_low_target): Remove the op fields.
1323 * linux-xtensa-low.cc (class xtensa_target)
1324 <low_supports_breakpoints>
1325 <low_get_pc>
1326 <low_set_pc>: Declare.
1327 (xtensa_target::low_supports_breakpoints)
1328 (xtensa_target::low_get_pc)
1329 (xtensa_target::low_set_pc): Define.
1330 (the_low_target): Remove the op fields.
1331 * linux-sparc-low.cc (class sparc_target)
1332 <low_supports_breakpoints>
1333 <low_get_pc>: Declare.
1334 (sparc_target::low_supports_breakpoints)
1335 (sparc_target::low_get_pc): Define.
1336 (the_low_target): Remove the op fields.
1337 * linux-tile-low.cc (class tile_target)
1338 <low_supports_breakpoints>
1339 <low_get_pc>
1340 <low_set_pc>: Declare.
1341 (tile_target::low_supports_breakpoints)
1342 (tile_target::low_get_pc)
1343 (tile_target::low_set_pc): Define.
1344 (the_low_target): Remove the op fields.
1345 * linux-aarch64-low.cc (class aarch64_target)
1346 <low_supports_breakpoints>
1347 <low_get_pc>
1348 <low_set_pc>: Declare.
1349 (aarch64_target::low_supports_breakpoints): Define.
1350 (aarch64_get_pc): Turn into...
1351 (aarch64_target::low_get_pc): ...this.
1352 (aarch64_set_pc): Turn into...
1353 (aarch64_target::low_set_pc): ...this.
1354 (the_low_target): Remove the op fields.
1355 * linux-mips-low.cc (class mips_target)
1356 <low_supports_breakpoints>
1357 <low_get_pc>
1358 <low_set_pc>: Declare.
1359 (mips_target::low_supports_breakpoints): Define.
1360 (mips_get_pc): Turn into...
1361 (mips_target::low_get_pc): ...this.
1362 (mips_set_pc): Turn into...
1363 (mips_target::low_set_pc): ...this.
1364 (the_low_target): Remove the op fields.
1365 * linux-ppc-low.cc (class ppc_target)
1366 <low_supports_breakpoints>
1367 <low_get_pc>
1368 <low_set_pc>: Declare.
1369 (ppc_target::low_supports_breakpoints): Define.
1370 (ppc_get_pc): Turn into...
1371 (ppc_target::low_get_pc): ...this.
1372 (ppc_set_pc): Turn into...
1373 (ppc_target::low_set_pc): ...this.
1374 (the_low_target): Remove the op fields.
1375 * linux-riscv-low.cc (class riscv_target)
1376 <low_supports_breakpoints>
1377 <low_get_pc>
1378 <low_set_pc>: Declare.
1379 (riscv_target::low_supports_breakpoints): Define.
1380 (riscv_get_pc): Turn into...
1381 (riscv_target::low_get_pc): ...this.
1382 (riscv_set_pc): Turn into...
1383 (riscv_target::low_set_pc): ...this.
1384 (the_low_target): Remove the op fields.
1385 * linux-s390-low.cc (class s390_target)
1386 <low_supports_breakpoints>
1387 <low_get_pc>
1388 <low_set_pc>: Declare.
1389 (s390_target::low_supports_breakpoints): Define.
1390 (s390_get_pc): Turn into...
1391 (s390_target::low_get_pc): ...this.
1392 (s390_set_pc): Turn into...
1393 (s390_target::low_set_pc): ...this.
1394 (the_low_target): Remove the op fields.
1395 * linux-tic6x-low.cc (class tic6x_target)
1396 <low_supports_breakpoints>
1397 <low_get_pc>
1398 <low_set_pc>: Declare.
1399 (tic6x_target::low_supports_breakpoints): Define.
1400 (tic6x_get_pc): Turn into...
1401 (tic6x_target::low_get_pc): ...this.
1402 (tic6x_set_pc): Turn into...
1403 (tic6x_target::low_set_pc): ...this.
1404 (the_low_target): Remove the op fields.
1405
df95181f
TBA
14062020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1407
1408 Turn some more static methods in linux-low into private methods
1409 of linux_process_target.
1410
1411 * linux-low.cc (get_pc): Turn into...
1412 (linux_process_target::get_pc): ...this.
1413 (save_stop_reason): Turn into...
1414 (linux_process_target::save_stop_reason): ...this.
1415 (thread_still_has_status_pending_p): Turn into...
1416 (linux_process_target::thread_still_has_status_pending): ...this.
1417 (status_pending_p_callback): Turn into...
1418 (linux_process_target::status_pending_p_callback): ...this.
1419 (resume_stopped_resumed_lwps): Turn into...
1420 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1421 (install_software_single_step_breakpoints): Turn into...
1422 (linux_process_target::install_software_single_step_breakpoints):
1423 ...this.
1424 (single_step): Turn into...
1425 (linux_process_target::single_step): ...this.
1426 (linux_resume_one_lwp_throw): Turn into...
1427 (linux_process_target::resume_one_lwp_throw): ...this.
1428 (linux_resume_one_lwp): Turn into...
1429 (linux_process_target::resume_one_lwp): ...this.
1430 (resume_status_pending_p): Turn into...
1431 (linux_process_target::resume_status_pending): ...this.
1432 (need_step_over_p): Turn into...
1433 (linux_process_target::thread_needs_step_over): ...this.
1434 (linux_resume_one_thread): Turn into...
1435 (linux_process_target::resume_one_thread): ...this.
1436 (proceed_one_lwp): Turn into...
1437 (linux_process_target::proceed_one_lwp): ...this.
1438 (unsuspend_and_proceed_one_lwp): Turn into...
1439 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1440
1441 Update the calls/references to the above functions below.
1442
1443 (linux_process_target::handle_extended_wait)
1444 (linux_process_target::filter_event)
1445 (linux_process_target::wait_for_event_filtered)
1446 (linux_process_target::wait_1)
1447 (linux_process_target::move_out_of_jump_pad)
1448 (linux_process_target::start_step_over)
1449 (linux_process_target::resume)
1450 (linux_process_target::proceed_all_lwps)
1451 (regsets_store_inferior_registers)
1452 (linux_process_target::store_register)
1453
1454 * linux-low.h (class linux_process_target)
1455 <get_pc>
1456 <save_stop_reason>
1457 <thread_still_has_status_pending>
1458 <status_pending_p_callback>
1459 <resume_stopped_resumed_lwps>
1460 <install_software_single_step_breakpoints>
1461 <single_step>
1462 <resume_one_lwp_throw>
1463 <resume_one_lwp>
1464 <resume_status_pending>
1465 <thread_needs_step_over>
1466 <resume_one_thread>
1467 <proceed_one_lwp>
1468 <unsuspend_and_proceed_one_lwp>: Declare.
1469
bd70b1f2
TBA
14702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1471
1472 Turn the 'fetch_register' linux target op into a method of
1473 linux_process_target.
1474
1475 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1476 (class linux_process_target) <low_fetch_register>: Declare.
1477 * linux-x86-low.cc (the_low_target)
1478 * linux-aarch64-low.cc (the_low_target)
1479 * linux-arm-low.cc (the_low_target)
1480 * linux-bfin-low.cc (the_low_target)
1481 * linux-cris-low.cc (the_low_target)
1482 * linux-crisv32-low.cc (the_low_target)
1483 * linux-m32r-low.cc (the_low_target)
1484 * linux-m68k-low.cc (the_low_target)
1485 * linux-nios2-low.cc (the_low_target)
1486 * linux-ppc-low.cc (the_low_target)
1487 * linux-s390-low.cc (the_low_target)
1488 * linux-sh-low.cc (the_low_target)
1489 * linux-sparc-low.cc (the_low_target)
1490 * linux-tic6x-low.cc (the_low_target)
1491 * linux-tile-low.cc (the_low_target)
1492 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1493 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1494 Declare.
1495 (ia64_fetch_register): Turn into...
1496 (ia64_target::low_fetch_register): ...this.
1497 (the_low_target): Remove the op field.
1498 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1499 Declare.
1500 (mips_fetch_register): Turn into...
1501 (mips_target::low_fetch_register): ...this.
1502 (the_low_target): Remove the op field.
1503 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1504 Declare.
1505 (riscv_fetch_register): Turn into...
1506 (riscv_target::low_fetch_register): ...this.
1507 (the_low_target): Remove the op field.
1508
1509 Update the callers below.
1510
1511 * linux-low.cc (linux_process_target::fetch_registers)
1512 (linux_process_target::low_fetch_register)
1513
daca57a7
TBA
15142020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1515
1516 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1517 linux target ops into methods of linux_process_target.
1518
1519 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1520 (class linux_process_target) <fetch_register>
1521 <store_register>
1522 <usr_fetch_inferior_registers>
1523 <usr_store_inferior_registers>
1524 <low_cannot_fetch_register>
1525 <low_cannot_fetch_register> Declare.
1526 * linux-low.cc (fetch_register): Turn into...
1527 (linux_process_target::fetch_register): ...this.
1528 (store_register): Turn into ...
1529 (linux_process_target::store_register): ...this.
1530 (usr_fetch_inferior_registers): Turn into...
1531 (linux_process_target::usr_fetch_inferior_registers): ...this.
1532 (usr_store_inferior_registers): Turn into...
1533 (linux_process_target::usr_store_inferior_registers): ...this.
1534 * linux-x86-low.cc (class x86_target)
1535 <low_cannot_fetch_register>
1536 <low_cannot_store_register>: Declare.
1537 (x86_cannot_store_register): Turn into...
1538 (x86_target::low_cannot_store_register): ...this.
1539 (x86_cannot_fetch_register): Turn into...
1540 (x86_target::low_cannot_fetch_register): ...this.
1541 (the_low_target): Remove the target op fields.
1542 * linux-aarch64-low.cc (class aarch64_target)
1543 <low_cannot_fetch_register>
1544 <low_cannot_store_register>: Declare.
1545 (aarch64_target::low_cannot_fetch_register)
1546 (aarch64_target::low_cannot_store_register): Define.
1547 (the_low_target): Remove the op fields.
1548 * linux-arm-low.cc (class arm_target)
1549 <low_cannot_fetch_register>
1550 <low_cannot_store_register>: Declare.
1551 (arm_cannot_fetch_register): Turn into...
1552 (arm_target::low_cannot_fetch_register): ...this.
1553 (arm_cannot_store_register): Turn into...
1554 (arm_target::low_cannot_store_register): ...this.
1555 (the_low_target): Remove the op fields.
1556 * linux-bfin-low.cc (class bfin_target)
1557 <low_cannot_fetch_register>
1558 <low_cannot_store_register>: Declare.
1559 (bfin_cannot_fetch_register): Turn into...
1560 (bfin_target::low_cannot_fetch_register): ...this.
1561 (bfin_cannot_store_register): Turn into...
1562 (bfin_target::low_cannot_store_register): ...this.
1563 (the_low_target): Remove the op fields.
1564 * linux-cris-low.cc (class cris_target)
1565 <low_cannot_fetch_register>
1566 <low_cannot_store_register>: Declare.
1567 (cris_cannot_fetch_register): Turn into...
1568 (cris_target::low_cannot_fetch_register): ...this.
1569 (cris_cannot_store_register): Turn into...
1570 (cris_target::low_cannot_store_register): ...this.
1571 (the_low_target): Remove the op fields.
1572 * linux-crisv32-low.cc (class crisv32_target)
1573 <low_cannot_fetch_register>
1574 <low_cannot_store_register>: Declare.
1575 (crisv32_target::low_cannot_fetch_register)
1576 (crisv32_target::low_cannot_store_register): Define.
1577 (the_low_target): Remove the op fields.
1578 * linux-ia64-low.cc (class ia64_target)
1579 <low_cannot_fetch_register>
1580 <low_cannot_store_register>: Declare.
1581 (ia64_cannot_fetch_register): Turn into...
1582 (ia64_target::low_cannot_fetch_register): ...this.
1583 (ia64_cannot_store_register): Turn into...
1584 (ia64_target::low_cannot_store_register): ...this.
1585 (the_low_target): Remove the op fields.
1586 * linux-m32r-low.cc (class m32r_target)
1587 <low_cannot_fetch_register>
1588 <low_cannot_store_register>: Declare.
1589 (m32r_cannot_fetch_register): Turn into...
1590 (m32r_target::low_cannot_fetch_register): ...this.
1591 (m32r_cannot_store_register): Turn into...
1592 (m32r_target::low_cannot_store_register): ...this.
1593 (the_low_target): Remove the op fields.
1594 * linux-m68k-low.cc (class m68k_target)
1595 <low_cannot_fetch_register>
1596 <low_cannot_store_register>: Declare.
1597 (m68k_cannot_fetch_register): Turn into...
1598 (m68k_target::low_cannot_fetch_register): ...this.
1599 (m68k_cannot_store_register): Turn into...
1600 (m68k_target::low_cannot_store_register): ...this.
1601 (the_low_target): Remove the op fields.
1602 * linux-mips-low.cc (class mips_target)
1603 <low_cannot_fetch_register>
1604 <low_cannot_store_register>: Declare.
1605 (mips_cannot_fetch_register): Turn into...
1606 (mips_target::low_cannot_fetch_register): ...this.
1607 (mips_cannot_store_register): Turn into...
1608 (mips_target::low_cannot_store_register): ...this.
1609 (get_usrregs_info): Inline at the call sites in
1610 low_cannot_fetch_register and low_cannot_store_register,
1611 and remove.
1612 (the_low_target): Remove the op fields.
1613 * linux-nios2-low.cc (class nios2_target)
1614 <low_cannot_fetch_register>
1615 <low_cannot_store_register>: Declare.
1616 (nios2_cannot_fetch_register): Turn into...
1617 (nios2_target::low_cannot_fetch_register): ...this.
1618 (nios2_cannot_store_register): Turn into...
1619 (nios2_target::low_cannot_store_register): ...this.
1620 (the_low_target): Remove the op fields.
1621 * linux-ppc-low.cc (class ppc_target)
1622 <low_cannot_fetch_register>
1623 <low_cannot_store_register>: Declare.
1624 (ppc_cannot_fetch_register): Turn into...
1625 (ppc_target::low_cannot_fetch_register): ...this.
1626 (ppc_cannot_store_register): Turn into...
1627 (ppc_target::low_cannot_store_register): ...this.
1628 (the_low_target): Remove the op fields.
1629 * linux-riscv-low.cc (class riscv_target)
1630 <low_cannot_fetch_register>
1631 <low_cannot_store_register>: Declare.
1632 (riscv_target::low_cannot_fetch_register)
1633 (riscv_target::low_cannot_store_register): Define.
1634 (the_low_target): Remove the op fields.
1635 * linux-s390-low.cc (class s390_target)
1636 <low_cannot_fetch_register>
1637 <low_cannot_store_register>: Declare.
1638 (s390_cannot_fetch_register): Turn into...
1639 (s390_target::low_cannot_fetch_register): ...this.
1640 (s390_cannot_store_register): Turn into...
1641 (s390_target::low_cannot_store_register): ...this.
1642 (the_low_target): Remove the op fields.
1643 * linux-sh-low.cc (class sh_target)
1644 <low_cannot_fetch_register>
1645 <low_cannot_store_register>: Declare.
1646 (sh_cannot_fetch_register): Turn into...
1647 (sh_target::low_cannot_fetch_register): ...this.
1648 (sh_cannot_store_register): Turn into...
1649 (sh_target::low_cannot_store_register): ...this.
1650 (the_low_target): Remove the op fields.
1651 * linux-sparc-low.cc (class sparc_target)
1652 <low_cannot_fetch_register>
1653 <low_cannot_store_register>: Declare.
1654 (sparc_cannot_fetch_register): Turn into...
1655 (sparc_target::low_cannot_fetch_register): ...this.
1656 (sparc_cannot_store_register): Turn into...
1657 (sparc_target::low_cannot_store_register): ...this.
1658 (the_low_target): Remove the op fields.
1659 * linux-tic6x-low.cc (class tic6x_target)
1660 <low_cannot_fetch_register>
1661 <low_cannot_store_register>: Declare.
1662 (tic6x_cannot_fetch_register): Turn into...
1663 (tic6x_target::low_cannot_fetch_register): ...this.
1664 (tic6x_cannot_store_register): Turn into...
1665 (tic6x_target::low_cannot_store_register): ...this.
1666 (the_low_target): Remove the op fields.
1667 * linux-tile-low.cc (class tile_target)
1668 <low_cannot_fetch_register>
1669 <low_cannot_store_register>: Declare.
1670 (tile_cannot_fetch_register): Turn into...
1671 (tile_target::low_cannot_fetch_register): ...this.
1672 (tile_cannot_store_register): Turn into...
1673 (tile_target::low_cannot_store_register): ...this.
1674 (the_low_target): Remove the op fields.
1675 * linux-xtensa-low.cc (class xtensa_target)
1676 <low_cannot_fetch_register>
1677 <low_cannot_store_register>: Declare.
1678 (xtensa_target::low_cannot_fetch_register)
1679 (xtensa_target::low_cannot_store_register): Define.
1680 (the_low_target): Remove the op fields.
1681
aa8d21c9
TBA
16822020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1683
1684 Turn the 'regs_info' linux target op into a method of
1685 linux_process_target.
1686
1687 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1688 (class linux_process_target) <get_regs_info>: Define.
1689
1690 Update the callers below.
1691
1692 * linux-low.cc (linux_process_target::fetch_registers)
1693 (linux_process_target::store_registers)
1694 * proc-service.cc (gregset_info)
1695
1696 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1697 (x86_linux_regs_info): Turn into ...
1698 (x86_target::get_regs_info): ...this.
1699 (the_low_target): Remove the op field.
1700 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1701 Declare.
1702 (aarch64_regs_info): Turn into ...
1703 (aarch64_target::get_regs_info): ...this.
1704 (the_low_target): Remove the op field.
1705 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1706 (arm_regs_info): Turn into ...
1707 (arm_target::get_regs_info): ...this.
1708 (the_low_target): Remove the op field.
1709 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1710 (bfin_regs_info): Turn into ...
1711 (bfin_target::get_regs_info): ...this.
1712 (the_low_target): Remove the op field.
1713 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1714 (cris_regs_info): Turn into ...
1715 (cris_target::get_regs_info): ...this.
1716 (the_low_target): Remove the op field.
1717 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1718 Declare.
1719 (crisv32_regs_info): Turn into ...
1720 (crisv32_target::get_regs_info): ...this.
1721 (the_low_target): Remove the op field.
1722 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1723 (ia64_regs_info): Turn into ...
1724 (ia64_target::get_regs_info): ...this.
1725 (the_low_target): Remove the op field.
1726 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1727 (m32r_regs_info): Turn into ...
1728 (m32r_target::get_regs_info): ...this.
1729 (the_low_target): Remove the op field.
1730 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1731 (m68k_regs_info): Turn into ...
1732 (m68k_target::get_regs_info): ...this.
1733 (the_low_target): Remove the op field.
1734 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1735 (mips_regs_info): Turn into ...
1736 (mips_target::get_regs_info): ...this.
1737 (the_low_target): Remove the op field.
1738 (get_usrregs_info): Update the call to the op.
1739 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1740 (nios2_regs_info): Turn into ...
1741 (nios2_target::get_regs_info): ...this.
1742 (the_low_target): Remove the op field.
1743 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1744 (ppc_regs_info): Turn into ...
1745 (ppc_target::get_regs_info): ...this.
1746 (the_low_target): Remove the op field.
1747 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1748 (riscv_regs_info): Turn into ...
1749 (riscv_target::get_regs_info): ...this.
1750 (the_low_target): Remove the op field.
1751 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1752 (s390_regs_info): Turn into ...
1753 (s390_target::get_regs_info): ...this.
1754 (the_low_target): Remove the op field.
1755 (s390_collect_ptrace_register)
1756 (s390_supply_ptrace_register)
1757 (s390_fill_gregset): Update the call to the op.
1758 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1759 (sh_regs_info): Turn into ...
1760 (sh_target::get_regs_info): ...this.
1761 (the_low_target): Remove the op field.
1762 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1763 (sparc_regs_info): Turn into ...
1764 (sparc_target::get_regs_info): ...this.
1765 (the_low_target): Remove the op field.
1766 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1767 (tic6x_regs_info): Turn into ...
1768 (tic6x_target::get_regs_info): ...this.
1769 (the_low_target): Remove the op field.
1770 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1771 (tile_regs_info): Turn into ...
1772 (tile_target::get_regs_info): ...this.
1773 (the_low_target): Remove the op field.
1774 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1775 Declare.
1776 (xtensa_regs_info): Turn into ...
1777 (xtensa_target::get_regs_info): ...this.
1778 (the_low_target): Remove the op field.
1779
797bcff5
TBA
17802020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1781
1782 Turn the 'arch_setup' linux target op into a method of
1783 linux_process_target.
1784
1785 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1786 (class linux_process_target) <arch_setup_thread>
1787 <low_arch_setup>: New declarations.
1788 * linux-low.cc (linux_arch_setup): Delete.
1789 (linux_arch_setup_thread): Turn into...
1790 (linux_process_target::arch_setup_thread): ... this.
1791
1792 Update the callers below.
1793
1794 (linux_process_target::handle_extended_wait)
1795 (linux_process_target::post_create_inferior)
1796 (linux_process_target::filter_event)
1797
1798 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1799 declaration.
1800 (x86_linux_update_xmltarget): Turn into...
1801 (x86_target::update_xmltarget): ...this.
1802 (x86_linux_process_qsupported): Update the call to
1803 x86_linux_update_xmltarget.
1804 (x86_arch_setup): Turn into ...
1805 (x86_target::low_arch_setup): ...this.
1806 (the_low_target): Remove the op field.
1807 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1808 declaration.
1809 (aarch64_arch_setup): Turn into ...
1810 (aarch64_target::low_arch_setup): ...this.
1811 (the_low_target): Remove the op field.
1812 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1813 declaration.
1814 (arm_arch_setup): Turn into ...
1815 (arm_target::low_arch_setup): ...this.
1816 (the_low_target): Remove the op field.
1817 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1818 declaration.
1819 (bfin_arch_setup): Turn into ...
1820 (bfin_target::low_arch_setup): ...this.
1821 (the_low_target): Remove the op field.
1822 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1823 declaration.
1824 (cris_arch_setup): Turn into ...
1825 (cris_target::low_arch_setup): ...this.
1826 (the_low_target): Remove the op field.
1827 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1828 declaration.
1829 (crisv32_arch_setup): Turn into ...
1830 (crisv32_target::low_arch_setup): ...this.
1831 (the_low_target): Remove the op field.
1832 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1833 declaration.
1834 (ia64_arch_setup): Turn into ...
1835 (ia64_target::low_arch_setup): ...this.
1836 (the_low_target): Remove the op field.
1837 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1838 declaration.
1839 (m32r_arch_setup): Turn into ...
1840 (m32r_target::low_arch_setup): ...this.
1841 (the_low_target): Remove the op field.
1842 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1843 declaration.
1844 (m68k_arch_setup): Turn into ...
1845 (m68k_target::low_arch_setup): ...this.
1846 (the_low_target): Remove the op field.
1847 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1848 declaration.
1849 (mips_arch_setup): Turn into ...
1850 (mips_target::low_arch_setup): ...this.
1851 (the_low_target): Remove the op field.
1852 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1853 declaration.
1854 (nios2_arch_setup): Turn into ...
1855 (nios2_target::low_arch_setup): ...this.
1856 (the_low_target): Remove the op field.
1857 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1858 declaration.
1859 (ppc_arch_setup): Turn into ...
1860 (ppc_target::low_arch_setup): ...this.
1861 (the_low_target): Remove the op field.
1862 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1863 declaration.
1864 (riscv_arch_setup): Turn into ...
1865 (riscv_target::low_arch_setup): ...this.
1866 (the_low_target): Remove the op field.
1867 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1868 declaration.
1869 (s390_arch_setup): Turn into ...
1870 (s390_target::low_arch_setup): ...this.
1871 (the_low_target): Remove the op field.
1872 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1873 declaration.
1874 (sh_arch_setup): Turn into ...
1875 (sh_target::low_arch_setup): ...this.
1876 (the_low_target): Remove the op field.
1877 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1878 declaration.
1879 (sparc_arch_setup): Turn into ...
1880 (sparc_target::low_arch_setup): ...this.
1881 (the_low_target): Remove the op field.
1882 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1883 declaration.
1884 (tic6x_arch_setup): Turn into ...
1885 (tic6x_target::low_arch_setup): ...this.
1886 (the_low_target): Remove the op field.
1887 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1888 declaration.
1889 (tile_arch_setup): Turn into ...
1890 (tile_target::low_arch_setup): ...this.
1891 (the_low_target): Remove the op field.
1892 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1893 declaration.
1894 (xtensa_arch_setup): Turn into ...
1895 (xtensa_target::low_arch_setup): ...this.
1896 (the_low_target): Remove the op field.
1897
ef0478f6
TBA
18982020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1899
1900 * linux-low.h (the_linux_target): New extern declaration.
1901 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1902 'the_target'.
1903 (the_linux_target): Remove.
1904 * linux-x86-low.cc (class x86_target): New class.
1905 (the_x86_target): New static object.
1906 (the_linux_target): Define as pointer to the_x86_target.
1907 * linux-aarch64-low.cc (class aarch64_target): New class.
1908 (the_aarch64_target): New static object.
1909 (the_linux_target): Define as pointer to the_aarch64_target.
1910 * linux-arm-low.cc (class arm_target): New class.
1911 (the_arm_target): New static object.
1912 (the_linux_target): Define as pointer to the_arm_target.
1913 * linux-bfin-low.cc (class bfin_target): New class.
1914 (the_bfin_target): New static object.
1915 (the_linux_target): Define as pointer to the_bfin_target.
1916 * linux-cris-low.cc (class cris_target): New class.
1917 (the_cris_target): New static object.
1918 (the_linux_target): Define as pointer to the_cris_target.
1919 * linux-crisv32-low.cc (class crisv32_target): New class.
1920 (the_crisv32_target): New static object.
1921 (the_linux_target): Define as pointer to the_crisv32_target.
1922 * linux-ia64-low.cc (class ia64_target): New class.
1923 (the_ia64_target): New static object.
1924 (the_linux_target): Define as pointer to the_ia64_target.
1925 * linux-m32r-low.cc (class m32r_target): New class.
1926 (the_m32r_target): New static object.
1927 (the_linux_target): Define as pointer to the_m32r_target.
1928 * linux-m68k-low.cc (class m68k_target): New class.
1929 (the_m68k_target): New static object.
1930 (the_linux_target): Define as pointer to the_m68k_target.
1931 * linux-mips-low.cc (class mips_target): New class.
1932 (the_mips_target): New static object.
1933 (the_linux_target): Define as pointer to the_mips_target.
1934 * linux-nios2-low.cc (class nios2_target): New class.
1935 (the_nios2_target): New static object.
1936 (the_linux_target): Define as pointer to the_nios2_target.
1937 * linux-ppc-low.cc (class ppc_target): New class.
1938 (the_ppc_target): New static object.
1939 (the_linux_target): Define as pointer to the_ppc_target.
1940 * linux-riscv-low.cc (class riscv_target): New class.
1941 (the_riscv_target): New static object.
1942 (the_linux_target): Define as pointer to the_riscv_target.
1943 * linux-s390-low.cc (class s390_target): New class.
1944 (the_s390_target): New static object.
1945 (the_linux_target): Define as pointer to the_s390_target.
1946 * linux-sh-low.cc (class sh_target): New class.
1947 (the_sh_target): New static object.
1948 (the_linux_target): Define as pointer to the_sh_target.
1949 * linux-sparc-low.cc (class sparc_target): New class.
1950 (the_sparc_target): New static object.
1951 (the_linux_target): Define as pointer to the_sparc_target.
1952 * linux-tic6x-low.cc (class tic6x_target): New class.
1953 (the_tic6x_target): New static object.
1954 (the_linux_target): Define as pointer to the_tic6x_target.
1955 * linux-tile-low.cc (class tile_target): New class.
1956 (the_tile_target): New static object.
1957 (the_linux_target): Define as pointer to the_tile_target.
1958 * linux-xtensa-low.cc (class xtensa_target): New class.
1959 (the_xtensa_target): New static object.
1960 (the_linux_target): Define as pointer to the_xtensa_target.
1961
d16f3f6c
TBA
19622020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1963
1964 Turn some static functions in linux-low.cc into private methods of
1965 linux_process_target.
1966
1967 * linux-low.cc (handle_extended_wait): Turn into ...
1968 (linux_process_target::handle_extended_wait): ...this. Call
1969 'mourn' on 'this' object instead of 'the_target'.
1970 (maybe_move_out_of_jump_pad): Turn into...
1971 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
1972 (linux_low_filter_event): Turn into...
1973 (linux_process_target::filter_event): ...this.
1974 (linux_wait_for_event_filtered): Turn into...
1975 (linux_process_target::wait_for_event_filtered): ...this.
1976 (linux_wait_for_event): Turn into...
1977 (linux_process_target::wait_for_event): ...this.
1978 (linux_wait_1): Turn into...
1979 (linux_process_target::wait_1): ...this.
1980 (wait_for_sigstop): Turn into...
1981 (linux_process_target::wait_for_sigstop): ...this.
1982 (move_out_of_jump_pad_callback): Turn into...
1983 (linux_process_target::move_out_of_jump_pad): ...this.
1984 (stop_all_lwps): Turn into...
1985 (linux_process_target::stop_all_lwps): ...this.
1986 (start_step_over): Turn into...
1987 (linux_process_target::start_step_over): ...this.
1988 (complete_ongoing_step_over): Turn into...
1989 (linux_process_target::complete_ongoing_step_over): ...this.
1990 (proceed_all_lwps): Turn into...
1991 (linux_process_target::proceed_all_lwps): ...this.
1992 (unstop_all_lwps): Turn into...
1993 (linux_process_target::unstop_all_lwps): ...this.
1994
1995 * linux-low.h (class linux_process_target)
1996 <handle_extended_wait>
1997 <maybe_move_out_of_jump_pad>
1998 filter_event>
1999 <wait_for_event_filtered>
2000 <wait_for_event>
2001 <wait_1>
2002 <wait_for_sigstop>
2003 <move_out_of_jump_pad>
2004 <stop_all_lwps>
2005 <start_step_over>
2006 <complete_ongoing_step_over>
2007 <proceed_all_lwps>
2008 <unstop_all_lwps>: Declare.
2009
2010 Update the callers below.
2011
2012 * linux-low.cc (linux_process_target::attach): Update.
2013 (linux_process_target::stabilize_threads): Ditto.
2014 (linux_process_target::wait): Ditto.
2015
a5863204
TBA
20162020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2017
2018 * linux-low.h (struct linux_target_ops): Update the comment for
2019 'cannot_store_register' to return 0 or 1.
2020 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2021 of 2.
2022
c884cc46
SM
20232020-03-20 Simon Marchi <simon.marchi@efficios.com>
2024
2025 * config.in: Re-generate.
2026 * configure: Re-generate.
2027
5a82b8a1
KR
20282020-03-17 Kamil Rytarowski <n54@gmx.com>
2029
2030 * regcache.cc (find_register_by_number): Update.
2031 * tdesc.cc (init_target_desc): Likewise.
2032 * tdesc.h (target_desc::reg_defs): Likewise.
2033
4635ff97
TT
20342020-03-12 Tom Tromey <tom@tromey.com>
2035
2036 * configure: Rebuild.
2037 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2038 (WIN32APILIBS): New subst.
2039 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2040 gdbsupport files.
2041 (gdbsupport/%.o): Remove target.
2042 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2043 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2044 (WIN32APILIBS): New variable.
2045 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2046 (gdbreplay$(EXEEXT)): Likewise.
2047
9a665d62
TT
20482020-03-12 Tom Tromey <tom@tromey.com>
2049
2050 * config.in, configure: Rebuild.
2051 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2052 * acinclude.m4: Include gettext-sister.m4.
2053 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2054 variables.
2055 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2056 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2057
272cd5a3
SM
20582020-03-12 Simon Marchi <simon.marchi@efficios.com>
2059
2060 * acinclude.m4: Update path to selftest.m4.
2061
db6878ac
SM
20622020-03-12 Simon Marchi <simon.marchi@efficios.com>
2063
2064 * configure.ac: Don't source bfd/development.sh, move
2065 GDB_AC_COMMON higher.
2066 * configure: Re-generate.
2067
4d696a5c
SM
20682020-03-12 Simon Marchi <simon.marchi@efficios.com>
2069
2070 * configure: Re-generate.
2071
a0761e34
SM
20722020-03-11 Simon Marchi <simon.marchi@efficios.com>
2073
2074 * configure: Re-generate.
2075
20ea4a60
AB
20762020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2077
2078 * .dir-locals.el: New file.
2079
842806cb
TBA
20802020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2081
2082 * .gitattributes: New file.
2083
442131c1
AB
20842020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2085
2086 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2087 reply into an S reply.
2088 * server.cc (disable_packet_T): New global.
2089 (captured_main): Set new global when appropriate.
2090 * server.h (disable_packet_T): Declare.
2091
dda42c0b
TT
20922020-02-21 Tom Tromey <tom@tromey.com>
2093
2094 * Makefile.in (mostlyclean): New target.
2095
52405d85
TBA
20962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2097
2098 * target.h (struct process_stratum_target): Remove.
2099 (class process_target): Rename to ...
2100 (class process_stratum_target): ... this.
2101 * linux-low.h (class linux_process_target): Derive from
2102 'process_stratum_target'.
2103 * linux-low.cc (linux_target_ops): Remove.
2104 (initialize_low): Set the_target to the singleton instance of
2105 linux_process_target.
2106 * lynx-low.h (class lynx_process_target): Derive from
2107 'process_stratum_target'.
2108 * lynx-low.cc (lynx_target_ops): Remove.
2109 (initialize_low): Set the_target to the singleton instance of
2110 lynx_process_target.
2111 * nto-low.h (class nto_process_target): Derive from
2112 'process_stratum_target'.
2113 * nto-low.cc (nto_target_ops): Remove.
2114 (initialize_low): Set the_target to the singleton instance of
2115 nto_process_target.
2116 * win32-low.h (class win32_process_target): Derive from
2117 'process_stratum_target'.
2118 * win32-low.cc (win32_target_ops): Remove.
2119 (initialize_low): Set the_target to the singleton instance of
2120 win32_process_target.
2121
2122 Replace 'the_target->pt' with 'the_target' in the uses below.
2123
2124 * hostio.cc (hostio_error)
2125 (handle_setfs)
2126 (handle_open)
2127 (handle_unlink)
2128 (handle_readlink)
2129 * linux-aarch32-low.cc (arm_breakpoint_at)
2130 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2131 * linux-arm-low.cc (arm_sigreturn_next_pc)
2132 (arm_get_hwcap)
2133 (arm_get_syscall_trapinfo)
2134 * linux-cris-low.cc (cris_breakpoint_at)
2135 * linux-crisv32-low.cc (cris_breakpoint_at)
2136 * linux-low.cc (handle_extended_wait)
2137 (linux_wait_1)
2138 (linux_read_memory)
2139 (linux_process_target::breakpoint_kind_from_pc)
2140 (linux_get_auxv)
2141 * linux-m32r-low.cc (m32r_breakpoint_at)
2142 * linux-mips-low.cc (mips_breakpoint_at)
2143 * linux-nios2-low.cc (nios2_breakpoint_at)
2144 * linux-ppc-low.cc (ppc_breakpoint_at)
2145 * linux-s390-low.cc (s390_get_hwcap)
2146 * linux-sh-low.cc (sh_breakpoint_at)
2147 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2148 (sparc_store_gregset_from_stack)
2149 (sparc_breakpoint_at)
2150 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2151 * linux-tile-low.cc (tile_breakpoint_at)
2152 * linux-x86-low.cc (x86_breakpoint_at)
2153 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2154 * mem-break.cc (bp_size)
2155 (bp_opcode)
2156 (insert_memory_breakpoint)
2157 (set_raw_breakpoint_at)
2158 (delete_raw_breakpoint)
2159 (z_type_supported)
2160 (uninsert_raw_breakpoint)
2161 (reinsert_raw_breakpoint)
2162 (validate_inserted_breakpoint)
2163 * regcache.cc (regcache_read_pc)
2164 (regcache_write_pc)
2165 * remote-utils.cc (putpkt_binary_1)
2166 (input_interrupt)
2167 (getpkt)
2168 (prepare_resume_reply)
2169 * server.cc (handle_general_set)
2170 (handle_detach)
2171 (handle_qxfer_auxv)
2172 (handle_qxfer_exec_file)
2173 (handle_qxfer_libraries_svr4)
2174 (handle_qxfer_osdata)
2175 (handle_qxfer_siginfo)
2176 (handle_qxfer_fdpic)
2177 (handle_query)
2178 (resume)
2179 (handle_v_requests)
2180 (queue_stop_reply_callback)
2181 (captured_main)
2182 * target.cc (prepare_to_access_memory)
2183 (done_accessing_memory)
2184 (read_inferior_memory)
2185 (target_write_memory)
2186 (target_stop_and_wait)
2187 (target_wait)
2188 (target_mourn_inferior)
2189 (target_continue_no_signal)
2190 (target_continue)
2191 (target_supports_multi_process)
2192 (kill_inferior)
2193 * target.h
2194 (target_create_inferior)
2195 (target_post_create_inferior)
2196 (myattach)
2197 (target_supports_fork_events)
2198 (target_supports_vfork_events)
2199 (target_supports_exec_events)
2200 (target_handle_new_gdb_connection)
2201 (detach_inferior)
2202 (mythread_alive)
2203 (fetch_inferior_registers)
2204 (store_inferior_registers)
2205 (join_inferior)
2206 (target_supports_non_stop)
2207 (target_async)
2208 (target_process_qsupported)
2209 (target_supports_catch_syscall)
2210 (target_get_ipa_tdesc_idx)
2211 (target_supports_tracepoints)
2212 (target_supports_fast_tracepoints)
2213 (target_get_min_fast_tracepoint_insn_len)
2214 (target_thread_stopped)
2215 (target_pause_all)
2216 (target_unpause_all)
2217 (target_stabilize_threads)
2218 (target_install_fast_tracepoint_jump_pad)
2219 (target_emit_ops)
2220 (target_supports_disable_randomization)
2221 (target_supports_agent)
2222 (target_enable_btrace)
2223 (target_disable_btrace)
2224 (target_read_btrace)
2225 (target_read_btrace_conf)
2226 (target_supports_range_stepping)
2227 (target_supports_stopped_by_sw_breakpoint)
2228 (target_stopped_by_sw_breakpoint)
2229 (target_supports_stopped_by_hw_breakpoint)
2230 (target_supports_hardware_single_step)
2231 (target_stopped_by_hw_breakpoint)
2232 (target_breakpoint_kind_from_pc)
2233 (target_breakpoint_kind_from_current_state)
2234 (target_supports_software_single_step)
2235 (target_core_of_thread)
2236 (target_thread_name)
2237 (target_thread_handle)
2238 * win32-low.cc (do_initial_child_stuff)
2239
2240 Rename target op default definitions listed below.
2241
2242 * target.cc (process_target::post_create_inferior): Rename as ...
2243 (process_stratum_target::post_create_inferior): ... this.
2244 (process_target::prepare_to_access_memory): Rename as ...
2245 (process_stratum_target::prepare_to_access_memory): ... this.
2246 (process_target::done_accessing_memory): Rename as ...
2247 (process_stratum_target::done_accessing_memory): ... this.
2248 (process_target::look_up_symbols): Rename as ...
2249 (process_stratum_target::look_up_symbols): ... this.
2250 (process_target::supports_read_auxv): Rename as ...
2251 (process_stratum_target::supports_read_auxv): ... this.
2252 (process_target::read_auxv): Rename as ...
2253 (process_stratum_target::read_auxv): ... this.
2254 (process_target::supports_z_point_type): Rename as ...
2255 (process_stratum_target::supports_z_point_type): ... this.
2256 (process_target::insert_point): Rename as ...
2257 (process_stratum_target::insert_point): ... this.
2258 (process_target::remove_point): Rename as ...
2259 (process_stratum_target::remove_point): ... this.
2260 (process_target::stopped_by_sw_breakpoint): Rename as ...
2261 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2262 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2263 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2264 (process_target::stopped_by_hw_breakpoint): Rename as ...
2265 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2266 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2267 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2268 (process_target::supports_hardware_single_step): Rename as ...
2269 (process_stratum_target::supports_hardware_single_step): ... this.
2270 (process_target::stopped_by_watchpoint): Rename as ...
2271 (process_stratum_target::stopped_by_watchpoint): ... this.
2272 (process_target::stopped_data_address): Rename as ...
2273 (process_stratum_target::stopped_data_address): ... this.
2274 (process_target::supports_read_offsets): Rename as ...
2275 (process_stratum_target::supports_read_offsets): ... this.
2276 (process_target::read_offsets): Rename as ...
2277 (process_stratum_target::read_offsets): ... this.
2278 (process_target::supports_get_tls_address): Rename as ...
2279 (process_stratum_target::supports_get_tls_address): ... this.
2280 (process_target::get_tls_address): Rename as ...
2281 (process_stratum_target::get_tls_address): ... this.
2282 (process_target::hostio_last_error): Rename as ...
2283 (process_stratum_target::hostio_last_error): ... this.
2284 (process_target::supports_qxfer_osdata): Rename as ...
2285 (process_stratum_target::supports_qxfer_osdata): ... this.
2286 (process_target::qxfer_osdata): Rename as ...
2287 (process_stratum_target::qxfer_osdata): ... this.
2288 (process_target::supports_qxfer_siginfo): Rename as ...
2289 (process_stratum_target::supports_qxfer_siginfo): ... this.
2290 (process_target::qxfer_siginfo): Rename as ...
2291 (process_stratum_target::qxfer_siginfo): ... this.
2292 (process_target::supports_non_stop): Rename as ...
2293 (process_stratum_target::supports_non_stop): ... this.
2294 (process_target::async): Rename as ...
2295 (process_stratum_target::async): ... this.
2296 (process_target::start_non_stop): Rename as ...
2297 (process_stratum_target::start_non_stop): ... this.
2298 (process_target::supports_multi_process): Rename as ...
2299 (process_stratum_target::supports_multi_process): ... this.
2300 (process_target::supports_fork_events): Rename as ...
2301 (process_stratum_target::supports_fork_events): ... this.
2302 (process_target::supports_vfork_events): Rename as ...
2303 (process_stratum_target::supports_vfork_events): ... this.
2304 (process_target::supports_exec_events): Rename as ...
2305 (process_stratum_target::supports_exec_events): ... this.
2306 (process_target::handle_new_gdb_connection): Rename as ...
2307 (process_stratum_target::handle_new_gdb_connection): ... this.
2308 (process_target::handle_monitor_command): Rename as ...
2309 (process_stratum_target::handle_monitor_command): ... this.
2310 (process_target::core_of_thread): Rename as ...
2311 (process_stratum_target::core_of_thread): ... this.
2312 (process_target::supports_read_loadmap): Rename as ...
2313 (process_stratum_target::supports_read_loadmap): ... this.
2314 (process_target::read_loadmap): Rename as ...
2315 (process_stratum_target::read_loadmap): ... this.
2316 (process_target::process_qsupported): Rename as ...
2317 (process_stratum_target::process_qsupported): ... this.
2318 (process_target::supports_tracepoints): Rename as ...
2319 (process_stratum_target::supports_tracepoints): ... this.
2320 (process_target::read_pc): Rename as ...
2321 (process_stratum_target::read_pc): ... this.
2322 (process_target::write_pc): Rename as ...
2323 (process_stratum_target::write_pc): ... this.
2324 (process_target::supports_thread_stopped): Rename as ...
2325 (process_stratum_target::supports_thread_stopped): ... this.
2326 (process_target::thread_stopped): Rename as ...
2327 (process_stratum_target::thread_stopped): ... this.
2328 (process_target::supports_get_tib_address): Rename as ...
2329 (process_stratum_target::supports_get_tib_address): ... this.
2330 (process_target::get_tib_address): Rename as ...
2331 (process_stratum_target::get_tib_address): ... this.
2332 (process_target::pause_all): Rename as ...
2333 (process_stratum_target::pause_all): ... this.
2334 (process_target::unpause_all): Rename as ...
2335 (process_stratum_target::unpause_all): ... this.
2336 (process_target::stabilize_threads): Rename as ...
2337 (process_stratum_target::stabilize_threads): ... this.
2338 (process_target::supports_fast_tracepoints): Rename as ...
2339 (process_stratum_target::supports_fast_tracepoints): ... this.
2340 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2341 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2342 (process_target::emit_ops): Rename as ...
2343 (process_stratum_target::emit_ops): ... this.
2344 (process_target::supports_disable_randomization): Rename as ...
2345 (process_stratum_target::supports_disable_randomization): ... this.
2346 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2347 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2348 (process_target::qxfer_libraries_svr4): Rename as ...
2349 (process_stratum_target::qxfer_libraries_svr4): ... this.
2350 (process_target::supports_agent): Rename as ...
2351 (process_stratum_target::supports_agent): ... this.
2352 (process_target::enable_btrace): Rename as ...
2353 (process_stratum_target::enable_btrace): ... this.
2354 (process_target::disable_btrace): Rename as ...
2355 (process_stratum_target::disable_btrace): ... this.
2356 (process_target::read_btrace): Rename as ...
2357 (process_stratum_target::read_btrace): ... this.
2358 (process_target::read_btrace_conf): Rename as ...
2359 (process_stratum_target::read_btrace_conf): ... this.
2360 (process_target::supports_range_stepping): Rename as ...
2361 (process_stratum_target::supports_range_stepping): ... this.
2362 (process_target::supports_pid_to_exec_file): Rename as ...
2363 (process_stratum_target::supports_pid_to_exec_file): ... this.
2364 (process_target::pid_to_exec_file): Rename as ...
2365 (process_stratum_target::pid_to_exec_file): ... this.
2366 (process_target::supports_multifs): Rename as ...
2367 (process_stratum_target::supports_multifs): ... this.
2368 (process_target::multifs_open): Rename as ...
2369 (process_stratum_target::multifs_open): ... this.
2370 (process_target::multifs_unlink): Rename as ...
2371 (process_stratum_target::multifs_unlink): ... this.
2372 (process_target::multifs_readlink): Rename as ...
2373 (process_stratum_target::multifs_readlink): ... this.
2374 (process_target::breakpoint_kind_from_pc): Rename as ...
2375 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2376 (process_target::breakpoint_kind_from_current_state): Rename as ...
2377 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2378 (process_target::thread_name): Rename as ...
2379 (process_stratum_target::thread_name): ... this.
2380 (process_target::thread_handle): Rename as ...
2381 (process_stratum_target::thread_handle): ... this.
2382 (process_target::supports_software_single_step): Rename as ...
2383 (process_stratum_target::supports_software_single_step): ... this.
2384 (process_target::supports_catch_syscall): Rename as ...
2385 (process_stratum_target::supports_catch_syscall): ... this.
2386 (process_target::get_ipa_tdesc_idx): Rename as ...
2387 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2388
478f9adf
PA
23892020-02-20 Pedro Alves <palves@redhat.com>
2390
2391 * target.cc (set_target_ops): Simply copy the given target pointer
2392 instead of creating a copy of the pointed object.
2393
d633e831
TBA
23942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2395
2396 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2397 of process_target.
2398
2399 * target.h (struct process_stratum_target): Remove the target op.
2400 (class process_target): Add the target op.
2401 (target_get_ipa_tdesc_idx): Update the macro.
2402 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2403
2404 Update the derived classes and callers below.
2405
2406 * linux-low.cc (linux_target_ops): Update.
2407 (linux_get_ipa_tdesc_idx): Turn into ...
2408 (linux_process_target::get_ipa_tdesc_idx): ... this.
2409 * linux-low.h (class linux_process_target): Update.
2410 * lynx-low.cc (lynx_target_ops): Update.
2411 * nto-low.cc (nto_target_ops): Update.
2412 * win32-low.cc (win32_target_ops): Update.
2413
bc8d3ae4
TBA
24142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2415
2416 Turn process_stratum_target's supports_catch_syscall op into a
2417 method of process_target.
2418
2419 * target.h (struct process_stratum_target): Remove the target op.
2420 (class process_target): Add the target op.
2421 (target_supports_catch_syscall): Update the macro.
2422 * target.cc (process_target::supports_catch_syscall): Define.
2423
2424 Update the derived classes and callers below.
2425
2426 * linux-low.cc (linux_target_ops): Update.
2427 (linux_supports_catch_syscall): Turn into ...
2428 (linux_process_target::supports_catch_syscall): ... this.
2429 * linux-low.h (class linux_process_target): Update.
2430 * lynx-low.cc (lynx_target_ops): Update.
2431 * nto-low.cc (nto_target_ops): Update.
2432 * win32-low.cc (win32_target_ops): Update.
2433
5303a34f
TBA
24342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2435
2436 Turn process_stratum_target's supports_software_single_step op
2437 into a method of process_target.
2438
2439 * target.h (struct process_stratum_target): Remove the target op.
2440 (class process_target): Add the target op.
2441 (target_supports_software_single_step): Update the macro.
2442 * target.cc (process_target::supports_software_single_step): Define.
2443
2444 Update the derived classes and callers below.
2445
2446 * linux-low.cc (linux_target_ops): Update.
2447 (linux_supports_software_single_step): Turn into ...
2448 (linux_process_target::supports_software_single_step): ... this.
2449 * linux-low.h (class linux_process_target): Update.
2450 * lynx-low.cc (lynx_target_ops): Update.
2451 * nto-low.cc (nto_target_ops): Update.
2452 * win32-low.cc (win32_target_ops): Update.
2453
7f63b89b
TBA
24542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2455
2456 Turn process_stratum_target's thread_name and thread_handle ops
2457 into methods of process_target.
2458
2459 * target.h (struct process_stratum_target): Remove the target ops.
2460 (class process_target): Add the target ops.
2461 (target_thread_name): Update the macro.
2462 (target_thread_handle): Update the macro.
2463 * target.cc (process_target::thread_name): Define.
2464 (process_target::thread_handle): Define.
2465
2466 Update the derived classes and callers below.
2467
2468 * linux-low.cc (linux_target_ops): Update.
2469 (linux_process_target::thread_name): Define.
2470 (linux_process_target::thread_handle): Define.
2471 * linux-low.h (class linux_process_target): Update.
2472 * lynx-low.cc (lynx_target_ops): Update.
2473 * nto-low.cc (nto_target_ops): Update.
2474 * win32-low.cc (win32_target_ops): Update.
2475
d367006f
TBA
24762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2477
2478 Turn process_stratum_target's breakpoint_kind_from_pc,
2479 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2480 ops into methods of process_target.
2481
2482 * target.h (struct process_stratum_target): Remove the target op.
2483 (class process_target): Add the target op.
2484 (target_breakpoint_kind_from_pc): Update the macro.
2485 (target_breakpoint_kind_from_current_state): Update the macro.
2486 (default_breakpoint_kind_from_pc): Remove declaration.
2487 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2488 (process_target::breakpoint_kind_from_pc): ... this.
2489 (process_target::breakpoint_kind_from_current_state): Define.
2490
2491 Update the derived classes and callers below.
2492
2493 * mem-break.cc (bp_size): Update.
2494 (bp_opcode): Update.
2495 * linux-low.cc (linux_target_ops): Update.
2496 (linux_wait_1): Update.
2497 (linux_breakpoint_kind_from_pc): Turn into ...
2498 (linux_process_target::breakpoint_kind_from_pc): ... this.
2499 (linux_sw_breakpoint_from_kind): Turn into ...
2500 (linux_process_target::sw_breakpoint_from_kind): ... this.
2501 (linux_breakpoint_kind_from_current_state): Turn into ...
2502 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2503 * linux-low.h (class linux_process_target): Update.
2504 * lynx-low.cc (lynx_target_ops): Update.
2505 (lynx_process_target::sw_breakpoint_from_kind): Define.
2506 * lynx-low.h (class lynx_process_target): Update.
2507 * nto-low.cc (nto_target_ops): Update.
2508 (nto_sw_breakpoint_from_kind): Turn into ...
2509 (nto_process_target::sw_breakpoint_from_kind): ... this.
2510 * nto-low.h (class nto_process_target): Update.
2511 * win32-low.cc (win32_target_ops): Update.
2512 (win32_sw_breakpoint_from_kind): Turn into ...
2513 (win32_process_target::sw_breakpoint_from_kind): ... this.
2514 * win32-low.h (class win32_process_target): Update.
2515
c9b7b804
TBA
25162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2517
2518 Turn process_stratum_target's multifs_open, multifs_readlink,
2519 multifs_unlink ops into methods of process_target.
2520
2521 * target.h (struct process_stratum_target): Remove the target ops.
2522 (class process_target): Add the target ops. Also add
2523 'supports_multifs'.
2524 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2525 "sys/stat.h".
2526 (process_target::supports_multifs): Define.
2527 (process_target::multifs_open): Define.
2528 (process_target::multifs_readlink): Define.
2529 (process_target::multifs_unlink): Define.
2530
2531 Update the derived classes and callers below.
2532
2533 * hostio.cc (handle_setfs): Update.
2534 (handle_open): Update.
2535 (handle_unlink): Update.
2536 (handle_readlink): Update.
2537 * linux-low.cc (linux_target_ops): Update.
2538 (linux_process_target::supports_multifs): Define.
2539 (linux_process_target::multifs_open): Define.
2540 (linux_process_target::multifs_readlink): Define.
2541 (linux_process_target::multifs_unlink): Define.
2542 * linux-low.h (class linux_process_target): Update.
2543 * lynx-low.cc (lynx_target_ops): Update.
2544 * nto-low.cc (nto_target_ops): Update.
2545 * win32-low.cc (win32_target_ops): Update.
2546
8247b823
TBA
25472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2548
2549 Turn process_stratum_target's pid_to_exec_file op into a method
2550 of process_target.
2551
2552 * target.h (struct process_stratum_target): Remove the target op.
2553 (class process_target): Add the target op. Also add
2554 'supports_pid_to_exec_file'.
2555 * target.cc (process_target::pid_to_exec_file): Define.
2556 (process_target::supports_pid_to_exec_file): Define.
2557
2558 Update the derived classes and callers below.
2559
2560 * server.cc (handle_qxfer_exec_file): Update.
2561 (handle_query): Update.
2562 * linux-low.cc (linux_target_ops): Update.
2563 (linux_process_target::supports_pid_to_exec_file): Define.
2564 (linux_process_target::pid_to_exec_file): Define.
2565 * linux-low.h (class linux_process_target): Update.
2566 * lynx-low.cc (lynx_target_ops): Update.
2567 * nto-low.cc (nto_target_ops): Update.
2568 * win32-low.cc (win32_target_ops): Update.
2569
2526e0cd
TBA
25702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2571
2572 Turn process_stratum_target's supports_range_stepping op into a
2573 method of process_target.
2574
2575 * target.h (struct process_stratum_target): Remove the target op.
2576 (class process_target): Add the target op.
2577 (target_supports_range_stepping): Update the macro.
2578 * target.cc (process_target::supports_range_stepping): Define.
2579
2580 Update the derived classes and callers below.
2581
2582 * linux-low.cc (linux_target_ops): Update.
2583 (linux_supports_range_stepping): Turn into ...
2584 (linux_process_target::supports_range_stepping): ... this.
2585 * linux-low.h (class linux_process_target): Update.
2586 * lynx-low.cc (lynx_target_ops): Update.
2587 * nto-low.cc (nto_target_ops): Update.
2588 * win32-low.cc (win32_target_ops): Update.
2589
79597bdd
TBA
25902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2591
2592 Turn process_stratum_target's btrace-related ops (enable_btrace,
2593 disable_btrace, read_btrace, read_btrace_conf) into methods of
2594 process_target.
2595
2596 * target.h (struct process_stratum_target): Remove the target ops.
2597 (class process_target): Add the target ops.
2598 (target_enable_btrace): Update.
2599 (target_disable_btrace): Update.
2600 (target_read_btrace): Update.
2601 (target_read_btrace_conf): Update.
2602 * target.cc (process_target::enable_btrace): Define.
2603 (process_target::disable_btrace): Define.
2604 (process_target::read_btrace): Define.
2605 (process_target::read_btrace_conf): Define.
2606
2607 Update the derived classes and callers below.
2608
2609 * linux-low.cc (linux_target_ops): Update.
2610 (linux_process_target:enable_btrace): Define as a wrapper around
2611 linux_enable_btrace.
2612 (linux_low_disable_btrace): Turn into ...
2613 (linux_process_target::disable_btrace): ... this.
2614 (linux_low_read_btrace): Turn into ...
2615 (linux_process_target::read_btrace): ... this.
2616 (linux_low_btrace_conf): Turn into ...
2617 (linux_process_target::read_btrace_conf): ... this.
2618 * linux-low.h (class linux_process_target): Update.
2619 * lynx-low.cc (lynx_target_ops): Update.
2620 * nto-low.cc (nto_target_ops): Update.
2621 * win32-low.cc (win32_target_ops): Update.
2622
c0245cb9
TBA
26232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2624
2625 Turn process_stratum_target's supports_agent op into a method of
2626 process_target.
2627
2628 * target.h (struct process_stratum_target): Remove the target op.
2629 (class process_target): Add the target op.
2630 (target_supports_agent): Update the macro.
2631 * target.cc (process_target::supports_agent): Define.
2632
2633 Update the derived classes and callers below.
2634
2635 * linux-low.cc (linux_target_ops): Update.
2636 (linux_supports_agent): Turn into ...
2637 (linux_process_target::supports_agent): ... this.
2638 * linux-low.h (class linux_process_target): Update.
2639 * lynx-low.cc (lynx_target_ops): Update.
2640 * nto-low.cc (nto_target_ops): Update.
2641 * win32-low.cc (win32_target_ops): Update.
2642
974387bb
TBA
26432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2644
2645 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2646 method of process_target.
2647
2648 * target.h (struct process_stratum_target): Remove the target op.
2649 (class process_target): Add the target op. Also add
2650 'supports_qxfer_libraries_svr4'.
2651 * target.cc (process_target::qxfer_libraries_svr4): Define.
2652 (process_target::supports_qxfer_libraries_svr4): Define.
2653
2654 Update the derived classes and callers below.
2655
2656 * server.cc (handle_qxfer_libraries_svr4): Update.
2657 (handle_query): Update.
2658 * linux-low.cc (linux_target_ops): Update.
2659 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2660 (linux_qxfer_libraries_svr4): Turn into ...
2661 (linux_process_target::qxfer_libraries_svr4): ... this.
2662 * linux-low.h (class linux_process_target): Update.
2663 * lynx-low.cc (lynx_target_ops): Update.
2664 * nto-low.cc (nto_target_ops): Update.
2665 * win32-low.cc (win32_target_ops): Update.
2666
c756403b
TBA
26672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2668
2669 Turn process_stratum_target's supports_disable_randomization op
2670 into a method of process_target.
2671
2672 * target.h (struct process_stratum_target): Remove the target op.
2673 (class process_target): Add the target op.
2674 (target_supports_disable_randomization): Update the macro.
2675 * target.cc (process_target::supports_disable_randomization): Define.
2676
2677 Update the derived classes and callers below.
2678
2679 * linux-low.cc (linux_target_ops): Update.
2680 (linux_supports_disable_randomization): Turn into ...
2681 (linux_process_target::supports_disable_randomization): ... this.
2682 * linux-low.h (class linux_process_target): Update.
2683 * lynx-low.cc (lynx_target_ops): Update.
2684 * nto-low.cc (nto_target_ops): Update.
2685 * win32-low.cc (win32_target_ops): Update.
2686
345dafad
TBA
26872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2688
2689 Turn process_stratum_target's emit_ops op into a method of
2690 process_target.
2691
2692 * target.h (struct process_stratum_target): Remove the target op.
2693 (class process_target): Add the target op.
2694 (target_emit_ops): Update the macro.
2695 * target.cc (process_target::emit_ops): Define.
2696
2697 Update the derived classes and callers below.
2698
2699 * linux-low.cc (linux_target_ops): Update.
2700 (linux_emit_ops): Turn into ...
2701 (linux_process_target::emit_ops): ... this.
2702 * linux-low.h (class linux_process_target): Update.
2703 * lynx-low.cc (lynx_target_ops): Update.
2704 * nto-low.cc (nto_target_ops): Update.
2705 * win32-low.cc (win32_target_ops): Update.
2706
c23c9391
TBA
27072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2708
2709 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2710 and get_min_fast_tracepoint_insn_len ops into methods of
2711 process_target.
2712
2713 * target.h (struct process_stratum_target): Remove the target ops.
2714 (class process_target): Add the target ops. Also add
2715 'supports_fast_tracepoints'.
2716 (target_supports_fast_tracepoints): Update the macro.
2717 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2718 (install_fast_tracepoint_jump_pad): Update and rename the macro
2719 to ...
2720 (target_install_fast_tracepoint_jump_pad): ... this.
2721 * target.cc (process_target::supports_fast_tracepoints): Define.
2722 (process_target::install_fast_tracepoint_jump_pad): Define.
2723 (process_target::get_min_fast_tracepoint_insn_len): Define.
2724
2725 Update the derived classes and callers below.
2726
2727 * tracepoint.cc (install_fast_tracepoint): Update.
2728 * linux-low.cc (linux_target_ops): Update.
2729 (linux_process_target::supports_fast_tracepoints): Define.
2730 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2731 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2732 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2733 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2734 * linux-low.h (class linux_process_target): Update.
2735 * lynx-low.cc (lynx_target_ops): Update.
2736 * nto-low.cc (nto_target_ops): Update.
2737 * win32-low.cc (win32_target_ops): Update.
2738
5c9eb2f2
TBA
27392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2740
2741 Turn process_stratum_target's stabilize_threads op into a
2742 method of process_target.
2743
2744 * target.h (struct process_stratum_target): Remove the target op.
2745 (class process_target): Add the target op.
2746 (target_stabilize_threads): Update the macro.
2747 * target.cc (process_target::stabilize_threads): Define.
2748
2749 Update the derived classes and callers below.
2750
2751 * server.cc (handle_status): Update.
2752 * tracepoint.cc (cmd_qtdp): Update.
2753 (cmd_qtstart): Update.
2754 * linux-low.cc (linux_target_ops): Update.
2755 (linux_stabilize_threads): Turn into ...
2756 (linux_process_target::stabilize_threads): ... this.
2757 (linux_wait_1): Update.
2758 * linux-low.h (class linux_process_target): Update.
2759 * lynx-low.cc (lynx_target_ops): Update.
2760 * nto-low.cc (nto_target_ops): Update.
2761 * win32-low.cc (win32_target_ops): Update.
2762
29e8dc09
TBA
27632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2764
2765 Turn process_stratum_target's pause_all and unpause_all ops
2766 into methods of process_target.
2767
2768 * target.h (struct process_stratum_target): Remove the target ops.
2769 (class process_target): Add the target ops.
2770 (pause_all): Update the macro and rename to...
2771 (target_pause_all): ... this.
2772 (unpause_all): Update the macro and rename to...
2773 (target_unpause_all): ... this.
2774 * target.cc (process_target::pause_all): Define.
2775 (process_target::unpause_all): Define.
2776
2777 Update the derived classes and callers below.
2778
2779 * server.cc (handle_status): Update.
2780 * tracepoint.cc (clear_installed_tracepoints): Update.
2781 (cmd_qtdp): Update.
2782 (cmd_qtstart): Update.
2783 (stop_tracing): Update.
2784 (cmd_qtstatus): Update.
2785 (upload_fast_traceframes): Update.
2786 (run_inferior_command): Update.
2787 * linux-low.cc (linux_target_ops): Update.
2788 (linux_pause_all): Turn into ...
2789 (linux_process_target::pause_all): ... this.
2790 (linux_unpause_all): Turn into ...
2791 (linux_process_target::unpause_all): ... this.
2792 (linux_process_target::prepare_to_access_memory): Update.
2793 (linux_process_target::done_accessing_memory): Update.
2794 * linux-low.h (class linux_process_target): Update.
2795 * lynx-low.cc (lynx_target_ops): Update.
2796 * nto-low.cc (nto_target_ops): Update.
2797 * win32-low.cc (win32_target_ops): Update.
2798
4e2e869c
TBA
27992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2800
2801 Turn process_stratum_target's get_tib_address op into a method of
2802 process_target.
2803
2804 * target.h (struct process_stratum_target): Remove the target op.
2805 (class process_target): Add the target op. Also add
2806 'supports_get_tib_address'.
2807 * target.cc (process_target::get_tib_address): Define.
2808 (process_target::supports_get_tib_address): Define.
2809
2810 Update the derived classes and callers below.
2811
2812 * server.cc (handle_query): Update.
2813 * linux-low.cc (win32_target_ops): Update.
2814 * lynx-low.cc (lynx_target_ops): Update.
2815 * nto-low.cc (nto_target_ops): Update.
2816 * win32-low.cc (win32_target_ops): Update.
2817 (win32_process_target::supports_get_tib_address): Define.
2818 (win32_get_tib_address): Turn into ...
2819 (win32_process_target::get_tib_address): ... this.
2820 * win32-low.h (class win32_process_target): Update.
2821
68119632
TBA
28222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2823
2824 Turn process_stratum_target's thread_stopped op into a method of
2825 process_target.
2826
2827 * target.h (struct process_stratum_target): Remove the target op.
2828 (class process_target): Add the target op. Also add
2829 'supports_thread_stopped'.
2830 (target_thread_stopped): Update the macro.
2831 * target.cc (process_target::thread_stopped): Define.
2832 (process_target::supports_thread_stopped): Define.
2833 (prepare_to_access_memory): Update.
2834
2835 Update the derived classes and callers below.
2836
2837 * server.cc (queue_stop_reply_callback): Update.
2838 * linux-low.cc (linux_target_ops): Update.
2839 (linux_process_target::supports_thread_stopped): Define.
2840 (linux_thread_stopped): Turn into ...
2841 (linux_process_target::thread_stopped): ... this.
2842 * linux-low.h (class linux_process_target): Update.
2843 * lynx-low.cc (lynx_target_ops): Update.
2844 * nto-low.cc (nto_target_ops): Update.
2845 * win32-low.cc (win32_target_ops): Update.
2846
770d8f6a
TBA
28472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2848
2849 Turn process_stratum_target's read_pc and write_pc ops into
2850 methods of process_target.
2851
2852 * target.h (struct process_stratum_target): Remove the target ops.
2853 (class process_target): Add the target ops.
2854 * target.cc (process_target::read_pc): Define.
2855 (process_target::write_pc): Define.
2856
2857 Update the derived classes and callers below.
2858
2859 * regcache.cc (regcache_read_pc): Update.
2860 (regcache_write_pc): Update.
2861 * linux-low.cc (linux_target_ops): Update.
2862 (linux_read_pc): Turn into ...
2863 (linux_process_target::read_pc): ... this.
2864 (linux_write_pc): Turn into ...
2865 (linux_process_target::write_pc): ... this.
2866 * linux-low.h (class linux_process_target): Update.
2867 * lynx-low.cc (lynx_target_ops): Update.
2868 * nto-low.cc (nto_target_ops): Update.
2869 * win32-low.cc (win32_target_ops): Update.
2870
290732bf
TBA
28712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2872
2873 Turn process_stratum_target's supports_tracepoints op into a
2874 method of process_target.
2875
2876 * target.h (struct process_stratum_target): Remove the target op.
2877 (class process_target): Add the target op.
2878 (target_supports_tracepoints): Update the macro.
2879 * target.cc (process_target::supports_tracepoints): Define.
2880
2881 Update the derived classes and callers below.
2882
2883 * linux-low.cc (linux_target_ops): Update.
2884 (linux_supports_tracepoints): Turn into ...
2885 (linux_process_target::supports_tracepoints): ... this.
2886 * linux-low.h (class linux_process_target): Update.
2887 * lynx-low.cc (lynx_target_ops): Update.
2888 * nto-low.cc (nto_target_ops): Update.
2889 * win32-low.cc (win32_target_ops): Update.
2890
0df28b1b
TBA
28912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2892
2893 Turn process_stratum_target's process_qsupported op into a method
2894 of process_target.
2895
2896 * target.h (struct process_stratum_target): Remove the target op.
2897 (class process_target): Add the target op.
2898 (target_process_qsupported): Update the macro.
2899 * target.cc (process_target::process_qsupported): Define.
2900
2901 Update the derived classes and callers below.
2902
2903 * linux-low.cc (linux_target_ops): Update.
2904 (linux_process_qsupported): Turn into ...
2905 (linux_process_target::process_qsupported): ... this.
2906 * linux-low.h (class linux_process_target): Update.
2907 * lynx-low.cc (lynx_target_ops): Update.
2908 * nto-low.cc (nto_target_ops): Update.
2909 * win32-low.cc (win32_target_ops): Update.
2910
9da41fda
TBA
29112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2912
2913 Turn process_stratum_target's read_loadmap op into a method of
2914 process_target.
2915
2916 * target.h (struct process_stratum_target): Remove the target op.
2917 (class process_target): Add the target op. Also add
2918 'supports_read_loadmap'.
2919 * target.cc (process_target::read_loadmap): Define.
2920 (process_target::supports_read_loadmap): Define.
2921
2922 Update the derived classes and callers below.
2923
2924 * server.cc (handle_qxfer_fdpic): Update.
2925 (handle_query): Update.
2926 * linux-low.cc (linux_target_ops): Update.
2927 (linux_process_target::supports_read_loadmap): Define.
2928 (linux_read_loadmap): Turn into ...
2929 (linux_process_target::read_loadmap): ... this.
2930 * linux-low.h (class linux_process_target): Update.
2931 * lynx-low.cc (lynx_target_ops): Update.
2932 * nto-low.cc (nto_target_ops): Update.
2933 * win32-low.cc (win32_target_ops): Update.
2934
95a45fc1
TBA
29352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2936
2937 Turn process_stratum_target's core_of_thread op into a method of
2938 process_target.
2939
2940 * target.h (struct process_stratum_target): Remove the target op.
2941 (class process_target): Add the target op.
2942 (target_core_of_thread): Update the macro.
2943 * target.cc (process_target::core_of_thread): Define.
2944
2945 Update the derived classes and callers below.
2946
2947 * linux-low.cc (linux_target_ops): Update.
2948 (linux_process_target::core_of_thread): Define.
2949 * linux-low.h (class linux_process_target): Update.
2950 * lynx-low.cc (lynx_target_ops): Update.
2951 * nto-low.cc (nto_target_ops): Update.
2952 * win32-low.cc (win32_target_ops): Update.
2953
55cf3021
TBA
29542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2955
2956 Turn process_stratum_target's handle_monitor_command op into a
2957 method of process_target.
2958
2959 * target.h (struct process_stratum_target): Remove the target op.
2960 (class process_target): Add the target op.
2961 (target_handle_monitor_command): Update the macro.
2962 * target.cc (process_target::handle_monitor_command): Define.
2963
2964 Update the derived classes and callers below.
2965
2966 * server.cc (handle_query): Update.
2967 * linux-low.cc (linux_target_ops): Update.
2968 (linux_process_target::handle_monitor_command): Define.
2969 * linux-low.h (class linux_process_target): Update.
2970 * lynx-low.cc (lynx_target_ops): Update.
2971 * nto-low.cc (nto_target_ops): Update.
2972 * win32-low.cc (win32_target_ops): Update.
2973
fb00dfce
TBA
29742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2975
2976 Turn process_stratum_target's handle_new_gdb_connection op into a
2977 method of process_target.
2978
2979 * target.h (struct process_stratum_target): Remove the target op.
2980 (class process_target): Add the target op.
2981 (target_handle_new_gdb_connection): Update the macro.
2982 * target.cc (process_target::handle_new_gdb_connection): Define.
2983
2984 Update the derived classes and callers below.
2985
2986 * linux-low.cc (linux_target_ops): Update.
2987 (linux_handle_new_gdb_connection): Turn into ...
2988 (linux_process_target::handle_new_gdb_connection): ... this.
2989 * linux-low.h (class linux_process_target): Update.
2990 * lynx-low.cc (lynx_target_ops): Update.
2991 * nto-low.cc (nto_target_ops): Update.
2992 * win32-low.cc (win32_target_ops): Update.
2993
9690a72a
TBA
29942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2995
2996 Turn process_stratum_target's supports_fork_events,
2997 supports_vfork_events, and supports_exec_events ops into methods
2998 of process_target.
2999
3000 * target.h (struct process_stratum_target): Remove the target ops.
3001 (class process_target): Add the target ops.
3002 (target_supports_fork_events): Update the macro.
3003 (target_supports_vfork_events): Update the macro.
3004 (target_supports_exec_events): Update the macro.
3005 * target.cc (process_target::supports_fork_events): Define.
3006 (process_target::supports_vfork_events): Define.
3007 (process_target::supports_exec_events): Define.
3008
3009 Update the derived classes and callers below.
3010
3011 * linux-low.cc (linux_target_ops): Update.
3012 (linux_supports_fork_events): Turn into ...
3013 (linux_process_target::supports_fork_events): ... this.
3014 (linux_supports_vfork_events): Turn into ...
3015 (linux_process_target::supports_vfork_events): ... this.
3016 (linux_supports_exec_events): Turn into ...
3017 (linux_process_target::supports_exec_events): ... this.
3018 * linux-low.h (class linux_process_target): Update.
3019 * lynx-low.cc (lynx_target_ops): Update.
3020 * nto-low.cc (nto_target_ops): Update.
3021 * win32-low.cc (win32_target_ops): Update.
3022
652aef77
TBA
30232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3024
3025 Turn process_stratum_target's supports_multi_process op into a
3026 method of process_target.
3027
3028 * target.h (struct process_stratum_target): Remove the target op.
3029 (class process_target): Add the target op.
3030 * target.cc (process_target::supports_multi_process): Define.
3031 (target_supports_multi_process): Update.
3032
3033 Update the derived classes and callers below.
3034
3035 * linux-low.cc (linux_target_ops): Update.
3036 (linux_supports_multi_process): Turn into ...
3037 (linux_process_target::supports_multi_process): ... this.
3038 * linux-low.h (class linux_process_target): Update.
3039 * lynx-low.cc (lynx_target_ops): Update.
3040 * nto-low.cc (nto_target_ops): Update.
3041 * win32-low.cc (win32_target_ops): Update.
3042
0dc587d4
TBA
30432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3044
3045 Turn process_stratum_target's supports_non_stop, async, and
3046 start_non_stop ops into methods of process_target.
3047
3048 * target.h (struct process_stratum_target): Remove the target ops.
3049 (class process_target): Add the target ops.
3050 (target_supports_non_stop): Update the macro.
3051 (target_async): Update the macro.
3052 (start_non_stop): Remove declaration.
3053 * target.cc (process_target::supports_non_stop): Define.
3054 (process_target::async): Define.
3055 (process_target::start_non_stop): Define.
3056 (start_non_stop): Remove.
3057
3058 Update the derived classes and callers below.
3059
3060 * server.cc (handle_qxfer_siginfo): Update.
3061 (handle_query): Update.
3062 * linux-low.cc (linux_target_ops): Update.
3063 (linux_supports_non_stop): Turn into ...
3064 (linux_process_target::supports_non_stop): ... this.
3065 (linux_async): Turn into ...
3066 (linux_process_target::async): ... this.
3067 (linux_start_non_stop): Turn into ...
3068 (linux_process_target::start_non_stop): ... this.
3069 * linux-low.h (class linux_process_target): Update.
3070 * lynx-low.cc (lynx_target_ops): Update.
3071 * nto-low.cc (nto_target_ops): Update.
3072 (nto_supports_non_stop): Remove; rely on the default behavior
3073 instead.
3074 * win32-low.cc (win32_target_ops): Update.
3075
d7abedf7
TBA
30762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3077
3078 Turn process_stratum_target's qxfer_siginfo op into a method of
3079 process_target.
3080
3081 * target.h (struct process_stratum_target): Remove the target op.
3082 (class process_target): Add the target op. Also add
3083 'supports_qxfer_siginfo'.
3084 * target.cc (process_target::qxfer_siginfo): Define.
3085 (process_target::supports_qxfer_siginfo): Define.
3086
3087 Update the derived classes and callers below.
3088
3089 * server.cc (handle_qxfer_siginfo): Update.
3090 (handle_query): Update.
3091 * linux-low.cc (linux_target_ops): Update.
3092 (linux_process_target::supports_qxfer_siginfo): Define.
3093 (linux_xfer_siginfo): Turn into ...
3094 (linux_process_target::qxfer_siginfo): ... this.
3095 * linux-low.h (class linux_process_target): Update.
3096 * lynx-low.cc (lynx_target_ops): Update.
3097 * nto-low.cc (nto_target_ops): Update.
3098 * win32-low.cc (win32_target_ops): Update.
3099
2d0795ee
TBA
31002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3101
3102 Turn process_stratum_target's qxfer_osdata op into a method of
3103 process_target.
3104
3105 * target.h (struct process_stratum_target): Remove the target op.
3106 (class process_target): Add the target op. Also add
3107 'supports_qxfer_osdata'.
3108 * target.cc (process_target::qxfer_osdata): Define.
3109 (process_target::supports_qxfer_osdata): Define.
3110
3111 Update the derived classes and callers below.
3112
3113 * server.cc (handle_qxfer_osdata): Update.
3114 (handle_query): Update.
3115 * linux-low.cc (linux_target_ops): Update.
3116 (linux_process_target::supports_qxfer_osdata): Define.
3117 (linux_qxfer_osdata): Turn into ...
3118 (linux_process_target::qxfer_osdata): ... this.
3119 * linux-low.h (class linux_process_target): Update.
3120 * lynx-low.cc (lynx_target_ops): Update.
3121 * nto-low.cc (nto_target_ops): Update.
3122 * win32-low.cc (win32_target_ops): Update.
3123
ea06bbaa
TBA
31242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3125
3126 Turn process_stratum_target's hostio_last_error op into a
3127 method of process_target.
3128
3129 * target.h (struct process_stratum_target): Remove the target op.
3130 (class process_target): Add the target op.
3131 * target.cc: Add "hostio.h" to includes.
3132 (process_target::hostio_last_error): Define.
3133
3134 Update the derived classes and callers below.
3135
3136 * hostio.cc (hostio_error): Update.
3137 * linux-low.cc: Remove "hostio.h" from includes.
3138 (linux_target_ops): Update.
3139 * lynx-low.cc (lynx_target_ops): Update.
3140 * nto-low.cc (nto_target_ops): Update.
3141 * win32-low.h (class win32_process_target): Update.
3142 * win32-low.cc (win32_target_ops): Update.
3143 (wince_hostio_last_error): Turn into ...
3144 (win32_process_target::hostio_last_error): ... this.
3145
6e3fd7e9
TBA
31462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3147
3148 Turn process_stratum_target's get_tls_address op into a method of
3149 process_target.
3150
3151 * target.h (struct process_stratum_target): Remove the target op.
3152 (class process_target): Add the target op. Also add
3153 'supports_get_tls_address'.
3154 * target.cc (process_target::get_tls_address): Define.
3155 (process_target::supports_get_tls_address): Define.
3156
3157 Update the derived classes and callers below.
3158
3159 * server.cc (handle_query): Update.
3160 * linux-low.cc (linux_target_ops): Update.
3161 (linux_process_target::supports_get_tls_address): Define.
3162 (linux_process_target::get_tls_address): Define.
3163 * linux-low.h (class linux_process_target): Update.
3164 * lynx-low.cc (lynx_target_ops): Update.
3165 * nto-low.cc (nto_target_ops): Update.
3166 * win32-low.cc (win32_target_ops): Update.
3167
5203ae1e
TBA
31682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3169
3170 Turn process_stratum_target's read_offsets op into a method of
3171 process_target.
3172
3173 * target.h (struct process_stratum_target): Remove the target op.
3174 (class process_target): Add the target op. Also add
3175 'supports_read_offsets'.
3176 * target.cc (process_target::read_offsets): Define.
3177 (process_target::supports_read_offsets): Define.
3178
3179 Update the derived classes and callers below.
3180
3181 * server.cc (handle_query): Update.
3182 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3183 (linux_target_ops): Update.
3184 (linux_process_target::supports_read_offsets): Define.
3185 (linux_read_offsets): Turn into ...
3186 (linux_process_target::read_offsets): ... this.
3187 * linux-low.h (class linux_process_target): Update.
3188 * lynx-low.cc (lynx_target_ops): Update.
3189 * nto-low.cc (nto_target_ops): Update.
3190 * win32-low.cc (win32_target_ops): Update.
3191
6eeb5c55
TBA
31922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3193
3194 Turn process_stratum_target's stopped_by_watchpoint and
3195 stopped_data_address ops into methods of process_target.
3196
3197 * target.h (struct process_stratum_target): Remove the target ops.
3198 (class process_target): Add the target ops.
3199 * target.cc (process_target::stopped_by_watchpoint): Define.
3200 (process_target::stopped_data_address): Define.
3201
3202 Update the derived classes and callers below.
3203
3204 * remote-utils.cc (prepare_resume_reply): Update.
3205 * linux-low.cc (linux_target_ops): Update.
3206 (linux_stopped_by_watchpoint): Turn into ...
3207 (linux_process_target::stopped_by_watchpoint): ... this.
3208 (linux_stopped_data_address): Turn into ...
3209 (linux_process_target::stopped_data_address): ... this.
3210 * linux-low.h (class linux_process_target): Update.
3211 * lynx-low.cc (lynx_target_ops): Update.
3212 * nto-low.cc (nto_target_ops): Update.
3213 (nto_stopped_by_watchpoint): Turn into ...
3214 (nto_process_target::stopped_by_watchpoint): ... this.
3215 (nto_stopped_data_address): Turn into ...
3216 (nto_process_target::stopped_data_address): ... this.
3217 * nto-low.h (class nto_process_target): Update.
3218 * win32-low.cc (win32_target_ops): Update.
3219 (win32_stopped_by_watchpoint): Turn into ...
3220 (win32_process_target::stopped_by_watchpoint): ... this.
3221 (win32_stopped_data_address): Turn into ...
3222 (win32_process_target::stopped_data_address): ... this.
3223 * win32-low.h (class win32_process_target): Update.
3224
22aa6223
TBA
32252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3226
3227 Turn process_stratum_target's supports_hardware_single_step op into
3228 a method of process_target.
3229
3230 * target.h (struct process_stratum_target): Remove the target op.
3231 (class process_target): Add the target op.
3232 (target_supports_hardware_single_step): Update the macro.
3233 (target_can_do_hardware_single_step): Remove declaration.
3234 * target.cc (process_target::supports_hardware_single_step): Define.
3235 (target_can_do_hardware_single_step): Remove.
3236
3237 Update the derived classes and callers below.
3238
3239 * linux-low.h (class linux_process_target): Update.
3240 * linux-low.cc (linux_target_ops): Update.
3241 (linux_supports_hardware_single_step): Turn into ...
3242 (linux_process_target::supports_hardware_single_step): ... this.
3243 * lynx-low.h (class lynx_process_target): Update.
3244 * lynx-low.cc (lynx_target_ops): Update.
3245 (lynx_process_target::supports_hardware_single_step): Define.
3246 * nto-low.h (class nto_process_target): Update.
3247 * nto-low.cc (nto_target_ops): Update.
3248 (nto_process_target::supports_hardware_single_step): Define.
3249 * win32-low.h (class win32_process_target): Update.
3250 * win32-low.cc (win32_target_ops): Update.
3251 (win32_process_target::supports_hardware_single_step): Define.
3252
93fe88b2
TBA
32532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3254
3255 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3256 ops into methods of process_target.
3257
3258 * target.h (struct process_stratum_target): Remove the target ops.
3259 (class process_target): Add the target ops.
3260 (target_stopped_by_hw_breakpoint): Update the macro.
3261 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3262 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3263 (process_target::supports_stopped_by_hw_breakpoint): Define.
3264
3265 Update the derived classes and callers below.
3266
3267 * linux-low.cc (linux_target_ops): Update.
3268 (linux_stopped_by_hw_breakpoint): Turn into ...
3269 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3270 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3271 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3272 * linux-low.h (class linux_process_target): Update.
3273 * lynx-low.cc (lynx_target_ops): Update.
3274 * nto-low.cc (nto_target_ops): Update.
3275 * win32-low.cc (win32_target_ops): Update.
3276
84320c4e
TBA
32772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3278
3279 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3280 ops into methods of process_target.
3281
3282 * target.h (struct process_stratum_target): Remove the target ops.
3283 (class process_target): Add the target ops.
3284 (target_stopped_by_sw_breakpoint): Update the macro.
3285 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3286 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3287 (process_target::supports_stopped_by_sw_breakpoint): Define.
3288
3289 Update the derived classes and callers below.
3290
3291 * linux-low.cc (linux_target_ops): Update.
3292 (linux_stopped_by_sw_breakpoint): Turn into ...
3293 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3294 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3295 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3296 * linux-low.h (class linux_process_target): Update.
3297 * lynx-low.cc (lynx_target_ops): Update.
3298 * nto-low.cc (nto_target_ops): Update.
3299 * win32-low.cc (win32_target_ops): Update.
3300
7e0bde70
TBA
33012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3302
3303 Turn process_stratum_target's insert_point and remove_point ops
3304 into methods of process_target.
3305
3306 * target.h (struct process_stratum_target): Remove the target ops.
3307 (class process_target): Add the target ops.
3308 * target.cc (process_target::insert_point): Define.
3309 (process_target::remove_point): Define.
3310
3311 Update the derived classes and callers below.
3312
3313 * mem-break.cc (set_raw_breakpoint_at): Update.
3314 (delete_raw_breakpoint): Update.
3315 (uninsert_raw_breakpoint): Update.
3316 (reinsert_raw_breakpoint): Update.
3317 * linux-low.cc (linux_target_ops): Update.
3318 (linux_insert_point): Turn into ...
3319 (linux_process_target::insert_point): ... this.
3320 (linux_remove_point): Turn into ...
3321 (linux_process_target::remove_point): ... this.
3322 * linux-low.h (class linux_process_target): Update.
3323 * lynx-low.cc (lynx_target_ops): Update.
3324 * nto-low.cc (nto_target_ops): Update.
3325 (nto_insert_point): Turn into ...
3326 (nto_process_target::insert_point): ... this.
3327 (nto_remove_point): Turn into ...
3328 (nto_process_target::remove_point): ... this.
3329 * nto-low.h (class nto_process_target): Update.
3330 * win32-low.cc (win32_target_ops): Update.
3331 (win32_insert_point): Turn into ...
3332 (win32_process_target::insert_point): ... this.
3333 (win32_remove_point): Turn into ...
3334 (win32_process_target::remove_point): ... this.
3335 * win32-low.h (class win32_process_target): Update.
3336
a2b2297a
TBA
33372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3338
3339 Turn process_stratum_target's supports_z_point_type op into a
3340 method of process_target.
3341
3342 * target.h (struct process_stratum_target): Remove the target op.
3343 (class process_target): Add the target op.
3344 * target.cc (process_target::supports_z_point_type): Define.
3345
3346 Update the derived classes and callers below.
3347
3348 * mem-break.cc (z_type_supported): Update.
3349 * linux-low.cc (linux_target_ops): Update.
3350 (linux_supports_z_point_type): Turn into ...
3351 (linux_process_target::supports_z_point_type): ... this.
3352 * linux-low.h (class linux_process_target): Update.
3353 * lynx-low.cc (lynx_target_ops): Update.
3354 * nto-low.cc (nto_target_ops): Update.
3355 (nto_supports_z_point_type): Turn into ...
3356 (nto_process_target::supports_z_point_type): ... this.
3357 * nto-low.h (class nto_process_target): Update.
3358 * win32-low.cc (win32_target_ops): Update.
3359 (win32_supports_z_point_type): Turn into ...
3360 (win32_process_target::supports_z_point_type): ... this.
3361 * win32-low.h (class win32_process_target): Update.
3362
eac215cc
TBA
33632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3364
3365 Turn process_stratum_target's read_auxv op into a method of
3366 process_target.
3367
3368 * target.h (class process_stratum_target): Remove the target op.
3369 (struct process_target): Add the target op. Also add
3370 'supports_read_auxv'.
3371 * target.cc (process_target::read_auxv): Define.
3372 (process_target::supports_read_auxv): Define.
3373
3374 Update the derived classes and callers below.
3375
3376 * server.cc (handle_qxfer_auxv): Update.
3377 (handle_query): Update.
3378 * linux-low.cc (linux_target_ops): Update.
3379 (linux_process_target::supports_read_auxv): Define.
3380 (linux_read_auxv): Turn into ...
3381 (linux_process_target::read_auxv): ... this.
3382 * linux-low.h (class linux_process_target): Update.
3383 * lynx-low.cc (lynx_target_ops): Update.
3384 * nto-low.cc (nto_target_ops): Update.
3385 (nto_process_target::supports_read_auxv): Define.
3386 (nto_read_auxv): Turn into ...
3387 (nto_process_target::read_auxv): ... this.
3388 * nto-low.h (class nto_process_target): Update.
3389 * win32-low.cc (win32_target_ops): Update.
3390
eb497a2a
TBA
33912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3392
3393 Turn process_stratum_target's request_interrupt op into a method of
3394 process_target.
3395
3396 * target.h (struct process_stratum_target): Remove the target op.
3397 (class process_target): Add the target op.
3398
3399 Update the derived classes and callers below.
3400
3401 * remote-utils.cc (putpkt_binary_1): Update.
3402 (input_interrupt): Update.
3403 (getpkt): Update.
3404 * server.cc (handle_v_requests): Update.
3405 * linux-low.cc (linux_target_ops): Update.
3406 (linux_request_interrupt): Turn into ...
3407 (linux_process_target::request_interrupt): ... this.
3408 * linux-low.h (class linux_process_target): Update.
3409 * lynx-low.cc (lynx_target_ops): Update.
3410 (lynx_request_interrupt): Turn into ...
3411 (lynx_process_target::request_interrupt): ... this.
3412 * lynx-low.h (class lynx_process_target): Update.
3413 * nto-low.cc (nto_target_ops): Update.
3414 (nto_request_interrupt): Turn into ...
3415 (nto_process_target::request_interrupt): ... this.
3416 * nto-low.h (class nto_process_target): Update.
3417 * win32-low.cc (win32_target_ops): Update.
3418 (win32_request_interrupt): Turn into ...
3419 (win32_process_target::request_interrupt): ... this.
3420 * win32-low.h (class win32_process_target): Update.
3421
2a31c7aa
TBA
34222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3423
3424 Turn process_stratum_target's look_up_symbols op into a method of
3425 process_target.
3426
3427 * target.h (struct process_stratum_target): Remove the target op.
3428 (class process_target): Add the target op.
3429 * target.cc (process_target::look_up_symbols): Define.
3430
3431 Update the derived classes and callers below.
3432
3433 * server.cc (handle_query): Update.
3434 * linux-low.cc (linux_target_ops): Update.
3435 (linux_look_up_symbols): Turn into ...
3436 (linux_process_target::look_up_symbols): ... this.
3437 * linux-low.h (class linux_process_target): Update.
3438 * lynx-low.cc (lynx_target_ops): Update.
3439 * nto-low.cc (nto_target_ops): Update.
3440 * win32-low.cc (win32_target_ops): Update.
3441
e2558df3
TBA
34422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3443
3444 Turn process_stratum_target's read_memory and write_memory
3445 ops into methods of process_target.
3446
3447 * target.h (struct process_stratum_target): Remove the target ops.
3448 (class process_target): Add the target ops.
3449
3450 Update the derived classes and callers below.
3451
3452 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3453 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3454 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3455 (arm_get_syscall_trapinfo): Update.
3456 * linux-cris-low.cc (cris_breakpoint_at): Update.
3457 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3458 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3459 * linux-mips-low.cc (mips_breakpoint_at): Update.
3460 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3461 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3462 * linux-sh-low.cc (sh_breakpoint_at): Update.
3463 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3464 (sparc_store_gregset_from_stack): Update.
3465 (sparc_breakpoint_at): Update.
3466 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3467 * linux-tile-low.cc (tile_breakpoint_at): Update.
3468 * linux-x86-low.cc (x86_breakpoint_at): Update.
3469 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3470 * mem-brea.cc (insert_memory_breakpoint): Update.
3471 (validate_inserted_breakpoint): Update.
3472 * target.cc (read_inferior_memory): Update.
3473 (target_write_memory): Update.
3474 * linux-low.cc (linux_target_ops): Update.
3475 (linux_read_memory): Make a wrapper around the read_memory target
3476 op call.
3477 (linux_process_target::read_memory): Rename from linux_read_memory.
3478 (linux_write_memory): Turn into ...
3479 (linux_process_target::write_memory): ... this.
3480 * linux-low.h (class linux_process_target): Update.
3481 * lynx-low.cc (lynx_target_ops): Update.
3482 (lynx_read_memory): Turn into ...
3483 (lynx_process_target::read_memory): ... this.
3484 (lynx_write_memory): Turn into ...
3485 (lynx_process_target::write_memory): ... this.
3486 * lynx-low.h (class lynx_process_target): Update.
3487 * nto-low.cc (nto_target_ops): Update.
3488 (nto_read_memory): Turn into ...
3489 (nto_process_target::read_memory): ... this.
3490 (nto_write_memory): Turn into ...
3491 (nto_process_target::write_memory): ... this.
3492 * nto-low.h (class nto_process_target): Update.
3493 * win32-low.cc (win32_target_ops): Update.
3494 (win32_read_inferior_memory): Turn into ...
3495 (win32_process_target::read_memory): ... this.
3496 (win32_write_inferior_memory): Turn into ...
3497 (win32_process_target::write_memory): ... this.
3498 * win32-low.h (class win32_process_target): Update.
3499
79b44087
TBA
35002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3501
3502 Turn process_stratum_target's prepare_to_access_memory and
3503 done_accessing_memory ops into methods of process_target.
3504
3505 * target.h (struct process_stratum_target): Remove the target ops.
3506 (class process_target): Add the target ops.
3507 * target.cc (process_target::prepare_to_access_memory): Define.
3508 (process_target::done_accessing_memory): Define.
3509 (prepare_to_access_memory): Update.
3510 (done_accessing_memory): Update.
3511
3512 Update the derived classes and callers below.
3513
3514 * linux-low.cc (linux_target_ops): Update.
3515 (linux_prepare_to_access_memory): Turn into ...
3516 (linux_process_target::prepare_to_access_memory): ... this.
3517 (linux_done_accessing_memory): Turn into ...
3518 (linux_process_target::done_accessing_memory): ... this.
3519 * linux-low.h (class linux_process_target): Update.
3520 * lynx-low.cc (lynx_target_ops): Update.
3521 * nto-low.cc (nto_target_ops): Update.
3522 * win32-low.cc (win32_target_ops): Update.
3523
a5a4d4cd
TBA
35242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3525
3526 Turn process_stratum_target's fetch_registers and store_registers
3527 ops into methods of process_target.
3528
3529 * target.h (struct process_stratum_target): Remove the target ops.
3530 (class process_target): Add the target ops.
3531 (fetch_inferior_registers): Update the macro.
3532 (store_inferior_registers): Update the macro.
3533
3534 Update the derived classes and callers below.
3535
3536 * linux-low.cc (linux_target_ops): Update.
3537 (linux_fetch_registers): Turn into ...
3538 (linux_process_target::fetch_registers): ... this.
3539 (linux_store_registers): Turn into ...
3540 (linux_process_target::store_registers): ... this.
3541 * linux-low.h (class linux_process_target): Update.
3542 * lynx-low.cc (lynx_target_ops): Update.
3543 (lynx_fetch_registers): Turn into ...
3544 (lynx_process_target::fetch_registers): ... this.
3545 (lynx_store_registers): Turn into ...
3546 (lynx_process_target::store_registers): ... this.
3547 * lynx-low.h (class lynx_process_target): Update.
3548 * nto-low.cc (nto_target_ops): Update.
3549 (nto_fetch_registers): Turn into ...
3550 (nto_process_target::fetch_registers): ... this.
3551 (nto_store_registers): Turn into ...
3552 (nto_process_target::store_registers): ... this.
3553 * nto-low.h (class nto_process_target): Update.
3554 * win32-low.cc (win32_target_ops): Update.
3555 (win32_fetch_inferior_registers): Turn into ...
3556 (win32_process_target::fetch_registers): ... this.
3557 (win32_store_inferior_registers): Turn into ...
3558 (win32_process_target::store_registers): ... this.
3559 * win32-low.h (class win32_process_target): Update.
3560
6532e7e3
TBA
35612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3562
3563 Turn process_stratum_target's wait op into a method of
3564 process_target.
3565
3566 * target.h (struct process_stratum_target): Remove the target op.
3567 (class process_target): Add the target op.
3568
3569 Update the derived classes and callers below.
3570
3571 * target.cc (target_wait): Update.
3572 * linux-low.cc (linux_target_ops): Update.
3573 (linux_wait): Turn into ...
3574 (linux_process_target::wait): ... this.
3575 * linux-low.h (class linux_process_target): Update.
3576 * lynx-low.cc (lynx_target_ops): Update.
3577 (lynx_wait): Turn into ...
3578 (lynx_process_target::wait): ... this.
3579 * lynx-low.h (class lynx_process_target): Update.
3580 * nto-low.cc (nto_target_ops): Update.
3581 (nto_wait): Turn into ...
3582 (nto_process_target::wait): ... this.
3583 * nto-low.h (class nto_process_target): Update.
3584 * win32-low.cc (win32_target_ops): Update.
3585 (win32_wait): Turn into ...
3586 (win32_process_target::wait): ... this.
3587 (do_initial_child_stuff): Update.
3588 * win32-low.h (class win32_process_target): Update.
3589
0e4d7e35
TBA
35902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3591
3592 Turn process_stratum_target's resume op into a method of
3593 process_target.
3594
3595 * target.h (struct process_stratum_target): Remove the target op.
3596 (class process_target): Add the target op.
3597
3598 Update the derived classes and callers below.
3599
3600 * server.cc (resume): Update.
3601 * target.cc (target_stop_and_wait): Update.
3602 (target_continue_no_signal): Update.
3603 (target_continue): Update.
3604 * linux-low.cc (linux_target_ops): Update.
3605 (linux_resume): Turn into ...
3606 (linux_process_target::resume): ... this.
3607 * linux-low.h (class linux_process_target): Update.
3608 * lynx-low.cc (lynx_target_ops): Update.
3609 (lynx_resume): Turn into ...
3610 (lynx_process_target::resume): ... this.
3611 * lynx-low.h (class lynx_process_target): Update.
3612 * nto-low.cc (nto_target_ops): Update.
3613 (nto_resume): Turn into ...
3614 (nto_process_target::resume): ... this.
3615 * nto-low.h (class nto_process_target): Update.
3616 * win32-low.cc (win32_target_ops): Update.
3617 (win32_resume): Turn into ...
3618 (win32_process_target::resume): ... this.
3619 (win32_process_target::detach): Update.
3620 (do_initial_child_stuff): Update.
3621 * win32-low.h (class win32_process_target): Update.
3622
13d3d99b
TBA
36232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3624
3625 Turn process_stratum_target's thread_alive op into a method of
3626 process_target.
3627
3628 * target.h (struct process_stratum_target): Remove the target op.
3629 (class process_target): Add the target op.
3630 (mythread_alive): Update the macro.
3631
3632 Update the derived classes and callers below.
3633
3634 * linux-low.cc (linux_target_ops): Update.
3635 (linux_thread_alive): Turn into ...
3636 (linux_process_target::thread_alive): ... this.
3637 (wait_for_sigstop): Update.
3638 * linux-low.h (class linux_process_target): Update.
3639 * lynx-low.cc (lynx_target_ops): Update.
3640 (lynx_thread_alive): Turn into ...
3641 (lynx_process_target::thread_alive): ... this.
3642 * lynx-low.h (class lynx_process_target): Update.
3643 * nto-low.cc (nto_target_ops): Update.
3644 (nto_thread_alive): Turn into ...
3645 (nto_process_target::thread_alive): ... this.
3646 * nto-low.h (class nto_process_target): Update.
3647 * win32-low.cc (win32_target_ops): Update.
3648 (win32_thread_alive): Turn into ...
3649 (win32_process_target::thread_alive): ... this.
3650 * win32-low.h (class win32_process_target): Update.
3651
95a49a39
TBA
36522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3653
3654 Turn process_stratum_target's join op into a method of
3655 process_target.
3656
3657 * target.h (struct process_stratum_target): Remove the target op.
3658 (class process_target): Add the target op.
3659 (join_inferior): Update the macro.
3660
3661 Update the derived classes and callers below.
3662
3663 * linux-low.cc (linux_target_ops): Update.
3664 (linux_join): Turn into ...
3665 (linux_process_target::join): ... this.
3666 * linux-low.h (class linux_process_target): Update.
3667 * lynx-low.cc (lynx_target_ops): Update.
3668 (lynx_join): Turn into ...
3669 (lynx_process_target::join): ... this.
3670 * lynx-low.h (class lynx_process_target): Update.
3671 * nto-low.cc (nto_target_ops): Update.
3672 (nto_process_target::join): Define.
3673 * nto-low.h (class nto_process_target): Update.
3674 * win32-low.cc (win32_target_ops): Update.
3675 (win32_join): Turn into ...
3676 (win32_process_target::join): ... this.
3677 * win32-low.h (class win32_process_target): Update.
3678
8adb37b9
TBA
36792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3680
3681 Turn process_stratum_target's mourn op into a method of
3682 process_target.
3683
3684 * target.h (struct process_stratum_target): Remove the target op.
3685 (class process_target): Add the target op.
3686
3687 Update the derived classes and callers below.
3688
3689 * target.cc (target_mourn_inferior): Update.
3690 * linux-low.cc (linux_target_ops): Update.
3691 (linux_mourn): Turn into ...
3692 (linux_process_target::mourn): ... this.
3693 (handle_extended_wait): Update.
3694 (linux_process_target::kill): Update.
3695 (linux_process_target::detach): Update.
3696 * linux-low.h (class linux_process_target): Update.
3697 * lynx-low.cc (lynx_target_ops): Update.
3698 (lynx_mourn): Turn into ...
3699 (lynx_process_target::mourn): ... this.
3700 * lynx-low.h (class lynx_process_target): Update.
3701 * nto-low.cc (nto_target_ops): Update.
3702 (nto_mourn): Turn into ...
3703 (nto_process_target::mourn): ... this.
3704 * nto-low.h (class nto_process_target): Update.
3705 * win32-low.cc (win32_target_ops): Update.
3706 (win32_mourn): Turn into ...
3707 (win32_process_target::mourn): ... this.
3708 * win32-low.h (class win32_process_target): Update.
3709
9061c9cf
TBA
37102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3711
3712 Turn process_stratum_target's detach op into a method of
3713 process_target.
3714
3715 * target.h (struct process_stratum_target): Remove the target op.
3716 (class process_target): Add the target op.
3717 (detach_inferior): Update the macro.
3718
3719 Update the derived classes and callers below.
3720
3721 * linux-low.cc (linux_target_ops): Update.
3722 (linux_detach): Turn into ...
3723 (linux_process_target::detach): ... this.
3724 * linux-low.h (class linux_process_target): Update.
3725 * lynx-low.cc (lynx_target_ops): Update.
3726 (lynx_detach): Turn into ...
3727 (lynx_process_target::detach): ... this.
3728 * lynx-low.h (class lynx_process_target): Update.
3729 * nto-low.cc (nto_target_ops): Update.
3730 (nto_detach): Turn into ...
3731 (nto_process_target::detach): ... this.
3732 * nto-low.h (class nto_process_target): Update.
3733 * win32-low.cc (win32_target_ops): Update.
3734 (win32_detach): Turn into ...
3735 (win32_process_target::detach): ... this.
3736 * win32-low.h (class win32_process_target): Update.
3737
c6885a57
TBA
37382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3739
3740 Turn process_stratum_target's kill op into a method of
3741 process_target.
3742
3743 * target.h (struct process_stratum_target): Remove the target op.
3744 (class process_target): Add the target op.
3745
3746 Update the derived classes and callers below.
3747
3748 * target.cc (kill_inferior): Update.
3749 * linux-low.cc (linux_target_ops): Update.
3750 (linux_kill): Turn into ...
3751 (linux_process_target::kill): ... this.
3752 * linux-low.h (class linux_process_target): Update.
3753 * lynx-low.cc (lynx_target_ops): Update.
3754 (lynx_kill): Turn into ...
3755 (lynx_process_target::kill): ... this.
3756 * lynx-low.h (class lynx_process_target): Update.
3757 * nto-low.cc (nto_target_ops): Update.
3758 (nto_kill): Turn into ...
3759 (nto_process_target::kill): ... this.
3760 * nto-low.h (class nto_process_target): Update.
3761 * win32-low.cc (win32_target_ops): Update.
3762 (win32_kill): Turn into ...
3763 (win32_process_target::kill): ... this.
3764 * win32-low.h (class win32_process_target): Update.
3765
ef03dad8
TBA
37662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3767
3768 Turn process_stratum_target's attach op into a method of
3769 process_target.
3770
3771 * target.h (struct process_stratum_target): Remove the target op.
3772 (class process_target): Add the target op.
3773 (myattach): Update the macro.
3774
3775 Update the derived classes and callers below.
3776
3777 * linux-low.cc (linux_target_ops): Update.
3778 (linux_attach): Turn into ...
3779 (linux_process_target::attach): ... this.
3780 * linux-low.h (class linux_process_target): Update.
3781 * lynx-low.cc (lynx_target_ops): Update.
3782 (lynx_attach): Turn into ...
3783 (lynx_process_target::attach): ... this.
3784 * lynx-low.h (class lynx_process_target): Update.
3785 * nto-low.cc (nto_target_ops): Update.
3786 (nto_attach): Turn into ...
3787 (nto_process_target::attach): ... this.
3788 * nto-low.h (class nto_process_target): Update.
3789 * win32-low.cc (win32_target_ops): Update.
3790 (win32_attach): Turn into ...
3791 (win32_process_target::attach): ... this.
3792 * win32-low.h (class win32_process_target): Update.
3793
6dee9afb
TBA
37942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3795
3796 Turn process_stratum_target's post_create_inferior op into a method
3797 of process_target.
3798
3799 * target.h (struct process_stratum_target): Remove the target op.
3800 (class process_target): Add the target op.
3801 (target_post_create_inferior): Update the macro.
3802 * target.cc (process_target::post_create_inferior): Define.
3803
3804 Update the derived classes and callers below.
3805
3806 * linux-low.cc (linux_target_ops): Update.
3807 (linux_post_create_inferior): Turn into ...
3808 (linux_process_target::post_create_inferior): ... this.
3809 * linux-low.h (class linux_process_target): Update.
3810 * lynx-low.cc (lynx_target_ops): Update.
3811 * nto-low.cc (nto_target_ops): Update.
3812 * win32-low.cc (win32_target_ops): Update.
3813
15295543
TBA
38142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3815
3816 Turn process_stratum_target's create_inferior op into a method of
3817 process_target.
3818
3819 * target.h (struct process_stratum_target): Remove the target op.
3820 (class process_target): Add the target op.
3821 (create_inferior): Rename the macro to ...
3822 (target_create_inferior): ... this.
3823
3824 Update the derived classes and callers below.
3825
3826 * server.cc (handle_v_run): Update.
3827 (captured_main): Update.
3828 (process_serial_event): Update.
3829 * linux-low.cc (linux_target_ops): Update.
3830 (linux_create_inferior): Turn into ...
3831 (linux_process_target::create_inferior): ... this.
3832 * linux-low.h (class linux_process_target): Update.
3833 * lynx-low.cc (lynx_target_ops): Update.
3834 (lynx_create_inferior): Turn into ...
3835 (lynx_process_target::create_inferior): ... this.
3836 * lynx-low.h (class lynx_process_target): Update.
3837 * nto-low.cc (nto_target_ops): Update.
3838 (nto_create_inferior): Turn into ...
3839 (nto_process_target::create_inferior): ... this.
3840 * nto-low.h (class nto_process_target): Update.
3841 * win32-low.cc (win32_target_ops): Update.
3842 (win32_create_inferior): Turn into ...
3843 (win32_process_target::create_inferior): ... this.
3844 * win32-low.h (class win32_process_target): Update.
3845
5ef9273d
TBA
38462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3847
3848 * target.h (class process_target): New class definition.
3849 (struct process_stratum_target) <pt>: New field with type
3850 'process_target*'.
3851 * linux-low.h (class linux_process_target): Define as a derived
3852 class of 'process_target'.
3853 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3854 as the 'pt' field.
3855 * lynx-low.h (class lynx_process_target): Define as a derived
3856 class of 'process_target'.
3857 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3858 as the 'pt' field.
3859 * nto-low.h (class nto_process_target): Define as a derived
3860 class of 'process_target'.
3861 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3862 as the 'pt' field.
3863 * win32-low.h (class win32_process_target): Define as a derived
3864 class of 'process_target'.
3865 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3866 as the 'pt' field.
3867
9f1528a1
AB
38682020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3869
3870 * configure: Regenerate.
3871
bf84f706
MR
38722020-02-19 Maciej W. Rozycki <macro@wdc.com>
3873 Andrew Burgess <andrew.burgess@embecosm.com>
3874
3875 * linux-riscv-low.cc: New file.
3876 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3877 and nat/riscv-linux-tdesc.c.
3878 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3879 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3880 Define.
3881
1a627e7e
TT
38822020-02-14 Tom Tromey <tom@tromey.com>
3883
3884 * acinclude.m4: Don't include acx_configure_dir.m4.
3885 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3886 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3887 (all, install-only, uninstall, clean-info, clean)
3888 (maintainer-clean): Don't recurse.
3889 (subdir_do, all-lib): Remove.
3890 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3891 (GNULIB_H): Remove.
3892 (generated_files): Update.
3893 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3894 * configure: Rebuild.
3895 * configure.ac: Don't configure gnulib or libiberty.
3896 (GNULIB): Update.
3897
a9b34532
EZ
38982020-02-14 Eli Zaretskii <eliz@gnu.org>
3899
3900 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3901 preparing the command line for CreateProcess.
3902 (win32_create_inferior): Reflect the program name in debugging
3903 output that shows the process and its command line.
3904
feacfcac
SM
39052020-02-13 Simon Marchi <simon.marchi@efficios.com>
3906
3907 * Makefile.in: Rename source files from .c to .cc.
3908 * %.c: Rename to %.cc.
3909 * configure.ac: Rename server.c to server.cc.
3910 * configure: Re-generate.
3911
06b3c5bd
SM
39122020-02-13 Simon Marchi <simon.marchi@efficios.com>
3913
3914 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3915
052793ad
HD
39162020-02-12 Hannes Domani <ssbssa@yahoo.de>
3917
3918 * win32-low.c (win32_create_inferior): Set signal_pid.
3919
f20e3e82
MR
39202020-02-12 Maciej W. Rozycki <macro@wdc.com>
3921 Pedro Alves <palves@redhat.com>
3922
3923 Skip building gdbserver in a cross-configuration.
3924 * configure.srv: Set $gdbserver_host depending on whether $target
3925 is $host. Use $gdbserver_host instead of $host.
3926
8ddd8e0e
SM
39272020-02-11 Simon Marchi <simon.marchi@efficios.com>
3928
3929 * configure: Re-generate.
3930
898e7f60
SM
39312020-02-11 Simon Marchi <simon.marchi@efficios.com>
3932
3933 * configure: Re-generate.
3934
58df732b
SM
39352020-02-11 Simon Marchi <simon.marchi@efficios.com>
3936
3937 * acinclude.m4: Update warning.m4 path.
3938
7928d571
HD
39392020-02-09 Hannes Domani <ssbssa@yahoo.de>
3940
3941 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3942 (handle_exception): Set siginfo_er.
3943 (win32_xfer_siginfo): New function.
3944
919adfe8
TT
39452020-02-07 Tom Tromey <tom@tromey.com>
3946 Pedro Alves <palves@redhat.com>
3947
3948 * README: Update build documentation.
3949 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
3950 host, not target.
3951 * configure.ac: Update paths.
3952 * configure: Rebuild.
3953 * acinclude.m4: Update paths.
3954 * Makefile.in: Update include paths.
3955 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
3956 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
3957 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
3958 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
3959 (%-generated.c): Update paths.
3960 * Move entire directory from ../gdb/gdbserver.
3961
287c844a
MR
39622020-01-29 Maciej W. Rozycki <macro@wdc.com>
3963
3964 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3965
548a204f
PFC
39662020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3967
3968 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
3969 assignment instead of srv_linux_obj.
3970
a2236a08
HD
39712020-01-28 Hannes Domani <ssbssa@yahoo.de>
3972
3973 * server.c (handle_qxfer_libraries): Write segment-address with
3974 paddress.
3975
bdaed379
HD
39762020-01-24 Hannes Domani <ssbssa@yahoo.de>
3977
3978 * Makefile.in (install-strip): New target.
3979 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
3980 * aclocal.m4: Regenerate.
3981 * configure: Regenerate.
3982 * configure.ac: Add AM_PROG_INSTALL_STRIP.
3983
42cd72aa
MR
39842020-01-24 Maciej W. Rozycki <macro@wdc.com>
3985
3986 * Makefile.in (SFILES): Adjust paths to point to real files.
3987 (OBS): Move waitstatus.o to target/waitstatus.o.
3988 (TAGS): Transform paths appropriately.
3989 (%.o): Rename to...
3990 (nat/%.o): ... this pattern rule.
3991 (%.o): Rename to...
3992 (target/%.o): ... this pattern rule.
3993 * configure.srv: Adjust paths throughout to include nat/ prefix
3994 with the revant files.
3995 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
3996 * configure: Regenerate.
3997
42ba50ec
MR
39982020-01-24 Maciej W. Rozycki <macro@wdc.com>
3999
4000 * Makefile.in (TAGS): Remove config files from the recipe.
4001
05ea2a05
TT
40022020-01-14 Tom Tromey <tom@tromey.com>
4003
4004 * configure: Rebuild.
4005 * configure.ac: Remove any checks that were added to common.m4.
4006 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4007 lib-link.m4.
4008
01027315
TT
40092020-01-14 Tom Tromey <tom@tromey.com>
4010
4011 * server.h: Include config.h.
4012 * gdbreplay.c: Include config.h.
4013 * configure: Rebuild.
4014 * configure.ac: Don't source common.host.
4015 * acinclude.m4: Update path.
4016 * Makefile.in (INCSUPPORT): New variable.
4017 (INCLUDE_CFLAGS): Add INCSUPPORT.
4018 (SFILES): Update paths.
4019 (version-generated.c): Update path to create-version.sh.
4020 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4021
b2ceabe8
TT
40222020-01-14 Tom Tromey <tom@tromey.com>
4023
4024 * configure.ac (LIBS): Use WIN32APILIBS.
4025 (USE_WIN32API): Don't define.
4026 * configure: Rebuild.
4027
25c51f71
TT
40282020-01-14 Tom Tromey <tom@tromey.com>
4029
4030 * configure: Rebuild.
4031
c0bd321d
SM
40322020-01-13 Simon Marchi <simon.marchi@efficios.com>
4033
4034 * Makefile.in (%-generated.c): Remove rule for files from
4035 regformats/i386.
4036
bb564c58
SM
40372020-01-13 Simon Marchi <simon.marchi@efficios.com>
4038
4039 * configure: Re-generate.
4040
6e37c371
SM
40412020-01-13 Simon Marchi <simon.marchi@efficios.com>
4042
4043 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4044 Define to static.
4045 * tracepoint.c (stop_tracing, flush_trace_buffer,
4046 about_to_request_buffer_space, get_trace_state_variable_value,
4047 set_trace_state_variable_value, gdb_collect): Add declaration.
4048
df4a0200
SM
40492020-01-13 Simon Marchi <simon.marchi@efficios.com>
4050
4051 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4052 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4053 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4054 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4055 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4056 static.
4057
89e94ec9
SM
40582020-01-13 Simon Marchi <simon.marchi@efficios.com>
4059
4060 * inferiors.c: Include gdbsupport/common-inferior.h.
4061
2552728a
SM
40622020-01-13 Simon Marchi <simon.marchi@efficios.com>
4063
4064 * hostio-errno.c: Include hostio.h.
4065
4025fa09
SM
40662020-01-13 Simon Marchi <simon.marchi@efficios.com>
4067
4068 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4069 prerequisite.
4070
c0b0a142
SM
40712020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4072
4073 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4074 * linux-arm-tdesc.h: Include arch/arm.h.
4075
bb1183e2
SM
40762020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4077
4078 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4079
f5df0b5f
SM
40802020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4081
4082 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4083 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4084
5b6d1e4f
PA
40852020-01-10 Pedro Alves <palves@redhat.com>
4086
4087 * fork-child.c (post_fork_inferior): Pass target down to
4088 startup_inferior.
4089 * inferiors.c (switch_to_thread): Add process_stratum_target
4090 parameter.
4091 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4092 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4093 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4094 * remote-utils.c (prepare_resume_reply): Pass the target to
4095 switch_to_thread.
4096 * target.c (the_target): Now a process_stratum_target.
4097 (done_accessing_memory): Pass the target to switch_to_thread.
4098 (set_target_ops): Ajust to use process_stratum_target.
4099 * target.h (struct target_ops): Rename to ...
4100 (struct process_stratum_target): ... this.
4101 (the_target, set_target_ops): Adjust.
4102 (prepare_to_access_memory): Adjust comment.
4103 * win32-low.c (child_xfer_memory): Adjust to use
4104 process_stratum_target.
4105 (win32_target_ops): Now a process_stratum_target.
4106
559e7e50
EZ
41072020-01-06 Eli Zaretskii <eliz@gnu.org>
4108 Pedro Alves <palves@redhat.com>
4109
4110 * win32-low.c (get_child_debug_event): Extract the fatal exception
4111 from the exit status and convert to the equivalent Posix signal
4112 number.
4113 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4114 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4115
48189bec
HD
41162020-01-01 Hannes Domani <ssbssa@yahoo.de>
4117
4118 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4119
5dd8bf88
JB
41202020-01-01 Joel Brobecker <brobecker@adacore.com>
4121
4122 * server.c (gdbserver_version): Change copyright year to 2020.
4123 * gdbreplay.c (gdbreplay_version): Likewise.
4124
0ad6b8ee
CB
41252019-12-19 Christian Biesinger <cbiesinger@google.com>
4126
4127 * configure: Regenerate.
4128 * configure.ac: Quote variable arguments of test.
4129
1ee7b812
BE
41302019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4131
4132 * Makefile.in: Fix build with GNU Make 3.81
4133
d9fa87f4
TT
41342019-12-16 Tom Tromey <tromey@adacore.com>
4135
4136 * server.c (get_exec_file): Constify result.
4137
ab7d13f0
CB
41382019-12-10 Christian Biesinger <cbiesinger@google.com>
4139
4140 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4141 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4142 * config.in: Regenerate.
4143 * configure: Regenerate.
4144 * configure.ac: Don't check for strerror.
4145 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4146 Call safe_strerror instead of strerror.
4147 * server.h (strerror): Remove this now-unnecessary declaration.
4148 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4149 strerror.
4150 (gdb_agent_helper_thread): Likewise.
4151 * utils.c (perror_with_name): Likewise.
4152
4da8c3a8
TT
41532019-11-26 Tom Tromey <tom@tromey.com>
4154
4155 * configure, config.in: Rebuild.
4156
21987b9c
TT
41572019-11-26 Tom Tromey <tom@tromey.com>
4158
4159 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4160 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4161 gdb_sigmask.
4162 * configure, config.in: Rebuild.
4163
5e030278
TT
41642019-11-26 Tom Tromey <tom@tromey.com>
4165
4166 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4167 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4168 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4169 * acinclude.m4: Include ax_pthread.m4.
4170 * config.in, configure: Rebuild.
4171
6d91ce9a
CB
41722019-11-26 Christian Biesinger <cbiesinger@google.com>
4173
4174 * debug.c (debug_set_output): Call safe_strerror instead of
4175 strerror.
4176 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4177 (linux_kill_one_lwp): Likewise.
4178 (linux_detach_one_lwp): Likewise.
4179 (linux_wait_for_event_filtered): Likewise.
4180 (store_register): Likewise.
4181 * lynx-low.c (lynx_attach): Likewise.
4182 * mem-break.c (insert_memory_breakpoint): Likewise.
4183 (remove_memory_breakpoint): Likewise.
4184 (delete_fast_tracepoint_jump): Likewise.
4185 (set_fast_tracepoint_jump): Likewise.
4186 (uninsert_fast_tracepoint_jumps_at): Likewise.
4187 (reinsert_fast_tracepoint_jumps_at): Likewise.
4188 * nto-low.c (nto_xfer_memory): Likewise.
4189 (nto_resume): Likewise.
4190
6cdd651f
LM
41912019-11-20 Luis Machado <luis.machado@linaro.org>
4192
4193 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4194 instead of register count.
4195 * tdesc.c (tdesc_contains_feature): New function.
4196 * tdesc.h (tdesc_contains_feature): New prototype.
4197
cd850b40
CB
41982019-11-15 Christian Biesinger <cbiesinger@google.com>
4199
4200 * Makefile.in: Add safe-strerror.c.
4201 * configure: Regenerate.
4202 * configure.ac: Don't source common.host.
4203
5abebf3c
CB
42042019-11-15 Christian Biesinger <cbiesinger@google.com>
4205
4206 * config.in: Regenerate.
4207 * configure: Regenerate.
4208
e06f3d6e
AB
42092019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4210
4211 * ax.c (ax_printf): Handle size_t_arg.
4212
ca3a04f6
CB
42132019-11-06 Christian Biesinger <cbiesinger@google.com>
4214
4215 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4216 * mi/mi-main.c (output_cores): Likewise.
4217 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4218 (linux_xfer_osdata_modules): Likewise.
4219 * remote.c (register_remote_support_xml): Likewise.
4220 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4221 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4222
e48f6033
CB
42232019-11-01 Christian Biesinger <cbiesinger@google.com>
4224
4225 * configure: Regenerate.
4226 * configure.ac: Remove check for strerror_r.
4227
e7e97a2e
CB
42282019-10-31 Christian Biesinger <cbiesinger@google.com>
4229
4230 * config.in: Regenerate.
4231 * configure: Regenerate.
4232 * configure.ac: Also check for strerror_r.
4233
75cafaa6
CB
42342019-10-31 Christian Biesinger <cbiesinger@google.com>
4235
4236 * ax.h (debug_agent): Remove duplicate declaration.
4237
30baf67b
TV
42382019-10-26 Tom de Vries <tdevries@suse.de>
4239
4240 * linux-aarch64-low.c: Fix typos in comments.
4241 * linux-arm-low.c: Same.
4242 * linux-low.c: Same.
4243 * linux-ppc-low.c: Same.
4244 * proc-service.c: Same.
4245 * regcache.h: Same.
4246 * server.c: Same.
4247 * tracepoint.c: Same.
4248 * win32-low.c: Same.
4249
52c64cf7
TT
42502019-10-25 Tom Tromey <tromey@adacore.com>
4251
4252 * utils.c (xstrdup): Remove.
4253
c12d372d
TT
42542019-10-23 Tom Tromey <tom@tromey.com>
4255
4256 * configure, config.in: Rebuild.
4257
4d0b984b
TT
42582019-10-23 Tom Tromey <tom@tromey.com>
4259
4260 * configure: Rebuild.
4261 * acinclude.m4: Use m4_include, not sinclude.
4262
c5adaa19
TT
42632019-10-17 Tom Tromey <tromey@adacore.com>
4264
4265 * configure: Rebuild.
4266 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4267 in AC_CONFIG_FILES invocation.
4268 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4269 invocation.
4270
fec4e896
CB
42712019-10-16 Christian Biesinger <cbiesinger@google.com>
4272
4273 * server.c: Include xml-builtin.h.
4274 (get_xml_features): Don't declare xml_builtins here.
4275
00975ff6
AB
42762019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4277
4278 * Makefile.in: Remove references to vec-ipa.o.
4279
0dc32745
AB
42802019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4281
4282 * Makefile.in: Remove references to vec.c.
4283
3e6ec53a
CB
42842019-10-02 Christian Biesinger <cbiesinger@google.com>
4285
4286 * server.c (server_waiting): Change to bool.
4287 (extended_protocol): Likewise.
4288 (response_needed): Likewise.
4289 (exit_requested): Likewise.
4290 (run_once): Likewise.
4291 (report_no_resumed): Likewise.
4292 (non_stop): Likewise.
4293 (disable_packet_vCont): Likewise.
4294 (disable_packet_Tthread): Likewise.
4295 (disable_packet_qC): Likewise.
4296 (disable_packet_qfThreadInfo): Likewise.
4297 (handle_general_set): Update.
4298 (handle_detach): Update.
4299 (handle_monitor_command): Update.
4300 (handle_query): Update.
4301 (captured_main): Update.
4302 (process_serial_event): Update.
4303 * server.h (server_waiting): Change to bool.
4304 (disable_packet_vCont): Likewise.
4305 (disable_packet_Tthread): Likewise.
4306 (disable_packet_qC): Likewise.
4307 (disable_packet_qfThreadInfo): Likewise.
4308 (run_once): Likewise.
4309 (non_stop): Likewise.
4310 * target.c (target_stop_and_wait): Update.
4311
80fd2826
TT
43122019-10-02 Tom Tromey <tromey@adacore.com>
4313
4314 * Makefile.in (SFILES): Add common-inferior.c.
4315 (OBS): Add common-inferior.o.
4316 * server.c (startup_with_shell): Don't define.
4317
46f29a9a
AB
43182019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4319
4320 * linux-low.c (linux_low_read_btrace): Update for change to
4321 std::vector.
4322
f9d949fb
CB
43232019-09-20 Christian Biesinger <cbiesinger@google.com>
4324
4325 * debug.c (debug_threads): Remove comment in favor of the header.
4326 * debug.h (using_threads): Add declaration.
4327 (debug_threads): Add comment.
4328 * linux-aarch64-low.c: Include debug.h and remove declaration of
4329 debug_threads.
4330 * nto-low.c: Likewise.
4331 * remote-utils.c: Likewise.
4332 * thread-db.c: Likewise.
4333
abf516c6
UW
43342019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4335
4336 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4337 and powerpc-cell64l-ipa.o.
4338 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4339 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4340 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4341 (spu*-*-*): Remove.
4342
4343 * spu-low.c: Remove file.
4344
4345 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4346 (parse_spufs_run): Remove.
4347 (ppc_get_pc): Remove Cell/B.E. support.
4348 (ppc_set_pc): Likewise.
4349 (ppc_breakpoint_at): Likewise.
4350 (ppc_arch_setup): Likewise.
4351 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4352 tdesc_powerpc_cell32l.
4353 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4354 or init_registers_powerpc_cell32l.
4355 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4356 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4357 or init_registers_powerpc_cell32l.
4358 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4359 (init_registers_powerpc_cell32l): Remove prototype.
4360 (init_registers_powerpc_cell64l): Likewise.
4361
4362 * target.h (struct target_ops): Remove qxfer_spu member.
4363 * server.c (handle_qxfer_spu): Remove.
4364 (qxfer_packets): Remove entry for "spu".
4365 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4366 * linux-low.c (SPUFS_MAGIC): Remove.
4367 (spu_enumerate_spu_ids): Remove.
4368 (linux_qxfer_spu): Remove.
4369 (linux_target_ops): Remove qxfer_spu member.
4370 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4371 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4372 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4373
2d41fa11
SDJ
43742019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4375
4376 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4377 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4378 * config.in: Regenerate.
4379 * configure: Regenerate.
4380
d59b55f0
TT
43812019-08-15 Tom Tromey <tromey@adacore.com>
4382
4383 * target.c (target_write_memory): Use gdb::byte_vector.
4384
4196ab2a
TT
43852019-08-15 Tom Tromey <tromey@adacore.com>
4386
4387 * tracepoint.c (write_inferior_data_pointer)
4388 (write_inferior_integer, write_inferior_int8)
4389 (write_inferior_uinteger, m_tracepoint_action_download)
4390 (r_tracepoint_action_download, x_tracepoint_action_download)
4391 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4392 (download_agent_expr, download_tracepoint_1)
4393 (download_trace_state_variables, upload_fast_traceframes): Update.
4394 * server.c (gdb_write_memory): Update.
4395 * remote-utils.c (relocate_instruction): Update.
4396 * proc-service.c (ps_pdwrite): Update.
4397 * mem-break.c (remove_memory_breakpoint)
4398 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4399 (uninsert_fast_tracepoint_jumps_at)
4400 (reinsert_fast_tracepoint_jumps_at): Update.
4401 * linux-x86-low.c (append_insns)
4402 (i386_install_fast_tracepoint_jump_pad)
4403 (amd64_write_goto_address, i386_write_goto_address): Update.
4404 * linux-s390-low.c (append_insns, s390_write_goto_address):
4405 Update.
4406 * linux-ppc-low.c (ppc_relocate_instruction)
4407 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4408 (ppc_write_goto_address): Update.
4409 * linux-aarch64-low.c (append_insns): Update.
4410 * target.h (struct target_ops): Update.
4411 (write_inferior_memory): Don't declare.
4412 * target.c (target_write_memory): Rename from
4413 write_inferior_memory. Remove old target_write_memory.
4414
c6778d00
TT
44152019-08-15 Tom Tromey <tromey@adacore.com>
4416
4417 * target.c (write_inferior_memory): Use std::vector.
4418
404f2902
FCE
44192019-08-06 Frank Ch. Eigler <fche@redhat.com>
4420
4421 PR build/24886
4422 * configure.ac: Drop enable-libmcheck support.
4423 * configure, config.in: Rebuild.
4424 * acinclude.m4: Don't include it.
4425
4c5aa8e0
AH
44262019-07-19 Alan Hayward <alan.hayward@arm.com>
4427
4428 * configure.srv: Remove Arm xml files.
4429
7cc17433
AH
44302019-07-19 Alan Hayward <alan.hayward@arm.com>
4431
4432 * configure.srv: Add new files. Remove xml generated files.
4433 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4434 registers.
4435 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4436 * linux-aarch32-tdesc.c: New file.
4437 * linux-aarch32-tdesc.h: New file.
4438 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4439 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4440 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4441 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4442 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4443 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4444 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4445 (arm_read_description): Call arm_linux_read_description.
4446 (initialize_low_arch): Don't init registers.
4447 * linux-arm-tdesc.c: New file.
4448 * linux-arm-tdesc.h: New file.
4449
166a82be
AH
44502019-07-10 Alan Hayward <alan.hayward@arm.com>
4451
4452 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4453 Move counter inside for.
4454 (arm_read_description): Check ptrace earlier.
4455 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4456
268a13a5
TT
44572019-07-09 Tom Tromey <tom@tromey.com>
4458
4459 * configure: Rebuild.
4460 * configure.ac: Change common to gdbsupport.
4461 * acinclude.m4: Change common to gdbsupport.
4462 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4463 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4464 common to gdbsupport.
4465 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4466 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4467 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4468 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4469 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4470 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4471 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4472 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4473 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4474 common to gdbsupport.
4475
350fab54
AH
44762019-07-04 Alan Hayward <alan.hayward@arm.com>
4477
4478 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4479 defines.
4480 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4481
2b40fda7
AH
44822019-07-04 Alan Hayward <alan.hayward@arm.com>
4483
4484 * configure.srv: Remove legacy xml.
4485 * linux-aarch64-low.c (initialize_low_arch): Remove
4486 initialize_low_tdesc call.
4487 * linux-aarch64-tdesc-selftest.c: Remove file.
4488 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4489 * linux-x86-low.c (initialize_low_arch): Remove
4490 initialize_low_tdesc call.
4491 * linux-x86-tdesc-selftest.c: Remove file.
4492 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4493
7d10623d
TV
44942019-06-20 Tom de Vries <tdevries@suse.de>
4495
4496 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4497 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4498
8d6a48df
TV
44992019-06-19 Tom de Vries <tdevries@suse.de>
4500
4501 * debug.h (debug_write): Change return type to ssize_t.
4502 * debug.c (debug_write): Same.
4503
73cc7272
TT
45042019-06-14 Tom Tromey <tom@tromey.com>
4505
4506 * configure.ac: Use new path to gnulib.
4507 * configure: Rebuild.
4508 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4509 to gnulib.
4510
08f10e02
TT
45112019-06-11 Tom Tromey <tom@tromey.com>
4512
4513 * Makefile.in (SFILES): Add alloc.c.
4514 (OBS): Add alloc.o.
4515 (IPA_OBJS): Add alloc-ipa.o.
4516 (alloc-ipa.o): New target.
4517 (%.o: ../%.c): New pattern rule.
4518
422186a9
TT
45192019-06-10 Tom Tromey <tromey@adacore.com>
4520
4521 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4522 end warning with a newline.
4523 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4524 newline.
4525 * thread-db.c (attach_thread): Don't end warning with a newline.
4526 (thread_db_notice_clone): Likewise.
4527 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4528 newline.
4529 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4530 end warning with a newline.
4531
b02f78f9
PA
45322019-06-04 Pedro Alves <palves@redhat.com>
4533
4534 * server.c (captured_main): Use make_unique_xstrdup.
4535
88ed7edb
TT
45362019-06-02 Tom Tromey <tom@tromey.com>
4537
4538 * gdbreplay.c (fromhex): Remove.
4539 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4540
33a6bc35
TT
45412019-05-29 Tom Tromey <tromey@adacore.com>
4542
4543 * configure: Rebuild.
4544
e90a813d
KB
45452019-05-06 Kevin Buettner <kevinb@redhat.com>
4546
4547 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4548 sign extension code on 32-bit builds.
4549
353ea2d1
EZ
45502019-05-03 Eli Zaretskii <eliz@gnu.org>
4551
4552 * remote-utils.c:
4553 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4554
b494cdff
TT
45552019-04-19 Tom Tromey <tom@tromey.com>
4556
4557 * server.c (struct vstop_notif): Derive from notif_event.
4558 <base>: Remove.
4559 (queue_stop_reply): Update.
4560 (remove_all_on_match_ptid): Change type. Rewrite.
4561 (discard_queued_stop_replies): Rewrite.
4562 (in_queued_stop_replies_ptid): Change type.
4563 (in_queued_stop_replies): Rewrite.
4564 (notif_stop): Update.
4565 (queue_stop_reply_callback): Update.
4566 (captured_main): Don't call initialize_notif.
4567 (push_stop_notification): Update.
4568 * notif.c (notif_write_event, handle_notif_ack)
4569 (notif_event_enque, notif_push): Update.
4570 (notif_event_xfree, initialize_notif): Remove.
4571 * notif.h (struct notif_event): Include <list>, not
4572 "common/queue.h".
4573 (struct notif_server) <queue>: Now a std::list.
4574 (notif_event_p): Remove typedef.
4575 (initialize_notif): Don't declare.
4576 (struct notif_event): Add virtual destructor.
4577
a7e559cc
AH
45782019-04-17 Alan Hayward <alan.hayward@arm.com>
4579
4580 * ax.c (ax_vdebug): Call debug_printf.
4581 * debug.c (debug_write): New function.
4582 * debug.h (debug_write): New declaration.
4583 * linux-low.c (sigchld_handler): Call debug_write.
4584
aeb2e706
AH
45852019-04-17 Alan Hayward <alan.hayward@arm.com>
4586
4587 * debug.c (debug_set_output): New function.
4588 (debug_vprintf): Send output to debug_file.
4589 (debug_flush): Likewise.
4590 * debug.h (debug_set_output): New declaration.
4591 * server.c (handle_monitor_command): Add debug-file option.
4592 (captured_main): Likewise.
4593
c1bc0935
AH
45942019-04-17 Alan Hayward <alan.hayward@arm.com>
4595
4596 * debug.c (remote_debug): Add definition.
4597 * debug.h (remote_debug): Add declaration.
4598 * hostio.c (remote_debug): Remove declaration.
4599 * remote-utils.c (struct ui_file): Likewise.
4600 (remote_debug): Likewise.
4601 * remote-utils.h (remote_debug): Likewise,
4602 * server.c (remote_debug): Remove definition.
4603
3f52fdbc
KB
46042019-04-10 Kevin Buettner <kevinb@redhat.com>
4605
4606 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4607 when using a 64-bit gdbserver.
4608
b0319eaa
TT
46092019-04-09 Tom Tromey <tromey@adacore.com>
4610
4611 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4612
eedc3f4f
TT
46132019-04-08 Tom Tromey <tom@tromey.com>
4614
4615 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4616 throw.
4617 (linux_resume_one_lwp): Likewise.
4618
230d2906
TT
46192019-04-08 Tom Tromey <tom@tromey.com>
4620
4621 * gdbreplay.c: Update.
4622 * linux-low.c: Update.
4623 * server.c: Update.
4624
a70b8144
TT
46252019-04-08 Tom Tromey <tom@tromey.com>
4626
4627 * server.c: Use C++ exception handling.
4628 * linux-low.c: Use C++ exception handling.
4629 * gdbreplay.c: Use C++ exception handling.
4630
3d6e9d23
TT
46312019-04-08 Tom Tromey <tom@tromey.com>
4632
4633 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4634 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4635 (captured_main, main): Update.
4636 * gdbreplay.c (main): Update.
4637
0570503d
PFC
46382019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4639
4640 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4641 value in argument pointer, return 1 if the entry is found and 0
4642 otherwise. Move comment.
4643 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4644 * linux-low.h (linux_get_auxv): Declare.
4645 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4646
227a9e65
TT
46472019-04-05 Tom Tromey <tromey@adacore.com>
4648
4649 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4650 variables.
4651
69f4c9cc
AH
46522019-03-28 Alan Hayward <alan.hayward@arm.com>
4653
4654 * linux-low.c (AT_HWCAP2): Add define if not already included.
4655
974c89e0
AH
46562019-03-26 Alan Hayward <alan.hayward@arm.com>
4657
4658 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4659 (aarch64_arch_setup): Call linux_get_hwcap.
4660 * linux-arm-low.c (arm_get_hwcap): Remove function.
4661 (arm_read_description): Call linux_get_hwcap.
4662 * linux-low.c (linux_get_auxv): New function.
4663 (linux_get_hwcap): Likewise.
4664 (linux_get_hwcap2): Likewise.
4665 * linux-low.h (linux_get_hwcap): New declaration.
4666 (linux_get_hwcap2): Likewise.
4667 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4668 (ppc_arch_setup): Call linux_get_hwcap.
4669 * linux-s390-low.c (s390_get_hwcap): Remove function.
4670 (s390_arch_setup): Call linux_get_hwcap.
4671
1ef53e6b
AH
46722019-03-22 Alan Hayward <alan.hayward@arm.com>
4673 Jiong Wang <jiong.wang@arm.com>
4674
4675 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4676 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4677 to fail.
4678 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4679
ee4fbcfa
AH
46802019-03-22 Alan Hayward <alan.hayward@arm.com>
4681 Jiong Wang <jiong.wang@arm.com>
4682
4683 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4684 (aarch64_get_hwcap): New function.
4685 (aarch64_arch_setup): Read APIA hwcap.
4686
6dc0ebde
AH
46872019-03-22 Alan Hayward <alan.hayward@arm.com>
4688 Jiong Wang <jiong.wang@arm.com>
4689
4690 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4691 (initialize_low_tracepoint): Likewise.
4692 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4693 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4694 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4695 (aarch64_linux_read_description): Likewise.
4696 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4697
1163a4b7
JB
46982019-03-12 John Baldwin <jhb@FreeBSD.org>
4699
4700 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4701 i386_create_target_description for 'segments' parameter.
4702 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4703 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4704 * win32-i386-low.c (i386_arch_setup): Likewise.
4705
d3a70e03
TT
47062019-03-12 Tom Tromey <tromey@adacore.com>
4707
4708 * linux-low.c (iterate_over_lwps): Update.
4709
37991b4f
TT
47102019-03-06 Tom Tromey <tom@tromey.com>
4711
4712 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4713 (captured_main): Use SCOPE_EXIT.
4714
45950eb6
SDJ
47152019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4716
4717 * configure.srv: Use '$enable_unittest' instead of '$development'
4718 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4719 case.
4720
43ac54fc
TT
47212019-02-27 Tom Tromey <tromey@adacore.com>
4722
4723 * gdbreplay.c (logchar): Handle \r\n.
4724
df0da8a2
AH
47252019-02-07 Alan Hayward <alan.hayward@arm.com>
4726
4727 * linux-low.c (linux_attach): Add process before lwp.
4728 * server.c (attach_inferior): Check if already attached.
4729
1a5c2598
TT
47302019-02-07 Tom Tromey <tom@tromey.com>
4731
4732 * x86-tdesc.h: Rename include guard.
4733 * x86-low.h: Add include guard.
4734 * wincecompat.h: Rename include guard.
4735 * win32-low.h: Add include guard.
4736 * utils.h: Rename include guard.
4737 * tracepoint.h: Rename include guard.
4738 * tdesc.h: Rename include guard.
4739 * target.h: Rename include guard.
4740 * server.h: Rename include guard.
4741 * remote-utils.h: Rename include guard.
4742 * regcache.h: Rename include guard.
4743 * nto-low.h: Rename include guard.
4744 * notif.h: Add include guard.
4745 * mem-break.h: Rename include guard.
4746 * lynx-low.h: Add include guard.
4747 * linux-x86-tdesc.h: Add include guard.
4748 * linux-s390-tdesc.h: Add include guard.
4749 * linux-ppc-tdesc-init.h: Add include guard.
4750 * linux-low.h: Add include guard.
4751 * linux-aarch64-tdesc.h: Add include guard.
4752 * linux-aarch32-low.h: Add include guard.
4753 * inferiors.h: Rename include guard.
4754 * i387-fp.h: Rename include guard.
4755 * hostio.h: Rename include guard.
4756 * gdbthread.h: Rename include guard.
4757 * gdb_proc_service.h: Rename include guard.
4758 * event-loop.h: Rename include guard.
4759 * dll.h: Rename include guard.
4760 * debug.h: Rename include guard.
4761 * ax.h: Rename include guard.
4762
956cc47c
SN
47632018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4764
4765 PR gdb/23985
4766 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4767 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4768
a0707f3c
TT
47692019-01-25 Tom Tromey <tom@tromey.com>
4770
4771 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4772
0747795c
TT
47732019-01-25 Tom Tromey <tom@tromey.com>
4774
4775 * win32-low.c: Fix common/ includes.
4776 * win32-i386-low.c: Fix common/ includes.
4777 * tracepoint.c: Fix common/ includes.
4778 * thread-db.c: Fix common/ includes.
4779 * target.h: Fix common/ includes.
4780 * symbol.c: Fix common/ includes.
4781 * spu-low.c: Fix common/ includes.
4782 * server.h: Fix common/ includes.
4783 * server.c: Fix common/ includes.
4784 * remote-utils.c: Fix common/ includes.
4785 * regcache.h: Fix common/ includes.
4786 * regcache.c: Fix common/ includes.
4787 * nto-x86-low.c: Fix common/ includes.
4788 * notif.h: Fix common/ includes.
4789 * mem-break.h: Fix common/ includes.
4790 * lynx-low.c: Fix common/ includes.
4791 * lynx-i386-low.c: Fix common/ includes.
4792 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4793 * linux-x86-low.c: Fix common/ includes.
4794 * linux-low.c: Fix common/ includes.
4795 * inferiors.h: Fix common/ includes.
4796 * i387-fp.c: Fix common/ includes.
4797 * hostio.c: Fix common/ includes.
4798 * hostio-errno.c: Fix common/ includes.
4799 * gdbthread.h: Fix common/ includes.
4800 * gdbreplay.c: Fix common/ includes.
4801 * fork-child.c: Fix common/ includes.
4802 * event-loop.c: Fix common/ includes.
4803 * ax.c:
4804 (enum gdb_agent_op): Fix common/ includes.
4805
be6d4f74
TT
48062019-01-21 Tom Tromey <tom@tromey.com>
4807
4808 * tracepoint.c: Fix includes.
4809 * remote-utils.c: Fix includes.
4810 * linux-x86-low.c: Fix includes.
4811
66d91b39
JB
48122019-01-01 Joel Brobecker <brobecker@adacore.com>
4813
4814 * gdbreplay.c (gdbreplay_version): Update copyright year in
4815 version message.
4816 * server.c (gdbserver_version): Likewise.
4817
754e3168
AH
48182018-12-05 Alan Hayward <alan.hayward@arm.com>
4819
4820 * linux-low.c (add_lwp): Switch ordering.
4821
d105de22
TT
48222018-11-29 Tom Tromey <tom@tromey.com>
4823
4824 * win32-low.c (win32_join): Take pid, not process.
4825 * target.h (struct target_ops) <join>: Change argument type.
4826 (join_inferior): Change argument name.
4827 * spu-low.c (spu_join): Take pid, not process.
4828 * server.c (handle_detach): Preserve pid before destroying
4829 process.
4830 * lynx-low.c (lynx_join): Take pid, not process.
4831 * linux-low.c (linux_join): Take pid, not process.
4832
50138245
AH
48332018-11-23 Alan Hayward <alan.hayward@arm.com>
4834
4835 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4836 (aarch64_cannot_fetch_register): Likewise.
4837 (struct linux_target_ops): Update references.
4838
64f57f3d
PFC
48392018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4840
4841 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4842
8d619c01
EBM
48432018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4844
4845 * configure.srv (ipa_ppc_linux_regobj): Add
4846 powerpc-isa207-htm-vsx32l-ipa.o and
4847 powerpc-isa207-htm-vsx64l-ipa.o.
4848 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4849 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4850 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4851 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4852 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4853 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4854 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4855 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4856 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4857 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4858 (init_registers_powerpc_isa207_htm_vsx32l)
4859 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4860 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4861 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4862 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4863 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4864 (ppc_store_tm_ctarregset): New functions.
4865 (ppc_regsets): Add entries for HTM regsets.
4866 (ppc_arch_setup): Set htm in features struct when needed. Set
4867 sizes for the HTM regsets.
4868 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4869 (initialize_low_arch): Call
4870 init_registers_powerpc_isa207_htm_vsx32l and
4871 init_registers_powerpc_isa207_htm_vsx64l.
4872 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4873 PPC_TDESC_ISA207_HTM_VSX.
4874 (initialize_low_tracepoint): Call
4875 init_registers_powerpc_isa207_htm_vsx32l and
4876 init_registers_powerpc_isa207_htm_vsx64l.
4877
232bfb86
EBM
48782018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4879
4880 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4881 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4882 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4883 (ppc_store_pmuregset): New functions.
4884 (ppc_regsets): Add entries for ebb and pmu regsets.
4885 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4886 pmu regsets are available. Set sizes for these regsets.
4887
f2cf6173
EBM
48882018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4889
4890 * configure.srv (ipa_ppc_linux_regobj): Add
4891 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4892 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4893 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4894 rs6000/powerpc-isa207-vsx32l.xml, and
4895 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4896 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4897 <PPC_TDESC_ISA207_VSX>: New enum value.
4898 (init_registers_powerpc_isa207_vsx32l): Declare.
4899 (init_registers_powerpc_isa207_vsx64l): Declare.
4900 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4901 (ppc_store_tarregset): New function.
4902 (ppc_regsets): Add entry for the TAR regset.
4903 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4904 size for the TAR regsets.
4905 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4906 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4907 and init_registers_powerpc_isa207_vsx64l.
4908 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4909 (initialize_low_tracepoint): Call
4910 init_registers_powerpc_isa207_vsx32l and
4911 init_registers_powerpc_isa207_vsx64l.
4912
7ca18ed6
EBM
49132018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4914 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4915
4916 * configure.srv (ipa_ppc_linux_regobj): Add
4917 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4918 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4919 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4920 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4921 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4922 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4923 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4924 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4925 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4926 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4927 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4928 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4929 (ppc_hwcap): Add comment.
4930 (ppc_hwcap2): New global.
4931 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4932 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4933 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4934 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4935 when needed. Set sizes for the the DSCR and PPR regsets.
4936 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4937 (initialize_low_arch): Call
4938 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4939 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4940 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4941 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4942 (initialize_low_tracepoint): Call
4943 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4944 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4945
5c849b22
PFC
49462018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4947
4948 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4949
8ecfd7bd
SDJ
49502018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4951 Simon Marchi <simark@simark.ca>
4952
4953 * acinclude.m4: Include "../selftest.m4".
4954 * configure: Regenerate.
4955 * configure.ac: Use "GDB_AC_SELFTEST".
4956 * configure.srv: Use "$enable_unittests" instead of
4957 "$development" when checking whether unit tests have been
4958 enabled.
4959 * server.c (captured_main): Update message informing that
4960 selftests have been disabled.
4961
96643e35
TT
49622018-10-04 Tom Tromey <tom@tromey.com>
4963
4964 * configure: Rebuild.
4965
da4ae14a
TT
49662018-10-04 Tom Tromey <tom@tromey.com>
4967
4968 * server.c (handle_status): Rename inner "thread".
4969 (process_serial_event): Declare "res" in 'm' case.
4970 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
4971 (iterate_over_lwps): Rename inner "thread".
4972 (linux_qxfer_libraries_svr4): Rename inner "len".
4973 * gdbthread.h (find_thread_in_random): Rename inner "thread".
4974
7c619dbd
GB
49752018-10-01 Gary Benson <gbenson@redhat.com>
4976
4977 * gdb_proc_service.h: Moved common code to
4978 common/gdb_proc_service.h.
4979
3795e814
GB
49802018-10-01 Gary Benson <gbenson@redhat.com>
4981
4982 * gdb_proc_service.h: Synchronize comments and whitespace with
4983 GDB's version of this file.
4984
49b036f1
TT
49852018-09-25 Tom Tromey <tom@tromey.com>
4986
4987 * configure: Rebuild.
4988 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
4989
8ff03f0b
SM
49902018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4991
4992 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
4993 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
4994 ($(IPA_LIB)): Sort IPA_OBJS.
4995
a1cd91dc
SM
49962018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4997
4998 * Makefile.in: Remove references to $(ADD_DEPS).
4999
752312ba
TT
50002018-09-16 Tom Tromey <tom@tromey.com>
5001
5002 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5003 variables.
5004 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5005 variables.
5006
f1628857
TT
50072018-09-05 Tom Tromey <tom@tromey.com>
5008
5009 * configure: Rebuild.
5010
ad202fcc
SM
50112018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5012
5013 PR build/23399
5014 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5015
d3d8724a
TT
50162018-08-27 Tom Tromey <tom@tromey.com>
5017
5018 PR build/23087:
5019 * configure: Rebuild.
5020
b4f183d2
TT
50212018-08-27 Tom Tromey <tom@tromey.com>
5022
5023 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5024 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5025 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5026 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5027 (s390x_emit_stack_adjust): Add casts to unsigned char.
5028
4e2aa472
SM
50292018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5030
5031 PR gdb/23374
5032 PR gdb/23375
5033 * server.h (struct client_state) <disable_randomization>:
5034 Initialize to 1.
5035
cf4088a9
SM
50362018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5037
5038 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5039 variable.
5040 (mips_supply_ptrace_register): Likewise.
5041
a0de763e
TT
50422018-07-22 Tom Tromey <tom@tromey.com>
5043
5044 * configure: Rebuild.
5045
b0a7723d
TT
50462018-07-22 Tom Tromey <tom@tromey.com>
5047
5048 * win32-low.c (win32_create_inferior): Remove unused variables.
5049 * gdbreplay.c (remote_open): Remove unused variable.
5050 * remote-utils.c (remote_prepare): Remove unused variable.
5051 * x86-tdesc.h (X86_TDESC_H): Define.
5052 (amd64_expedite_regs): Define conditionally.
5053 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5054 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5055 * remote-utils.c (readchar): Remove unused variable.
5056
a780ef4f
PA
50572018-07-13 Pedro Alves <palves@redhat.com>
5058
5059 * linux-low.c (linux_kill): Change parameter to process_info
5060 pointer instead of pid. Adjust.
5061 * lynx-low.c (lynx_kill): Likewise.
5062 * nto-low.c (nto_kill): Likewise.
5063 * spu-low.c (spu_kill): Likewise.
5064 * win32-low.c (win32_kill): Likewise.
5065 * server.c (handle_v_kill, kill_inferior_callback)
5066 (detach_or_kill_for_exit): Adjust.
5067 * target.c (kill_inferior): Change parameter to process_info
5068 pointer instead of pid. Adjust.
5069 * target.h (struct target_ops) <kill>: Change parameter to
5070 process_info pointer instead of pid. Adjust all implementations
5071 and callers.
5072 (kill_inferior): Likewise.
5073
ef2ddb33
PA
50742018-07-13 Pedro Alves <palves@redhat.com>
5075
5076 * linux-low.c (linux_detach, linux_join): Change parameter to
5077 process_info pointer instead of pid. Adjust.
5078 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5079 * nto-low.c (nto_detach): Likewise.
5080 * spu-low.c (spu_detach, spu_join): Likewise.
5081 * win32-low.c (win32_detach, win32_join): Likewise.
5082 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5083 * target.h (struct target_ops) <detach, join>: Change parameter to
5084 process_info pointer instead of pid. Adjust all implementations
5085 and callers.
5086 (detach_inferior, join_inferior): Rename 'pid' parameter to
5087 'proc'.
5088
c7ab0aef
SDJ
50892018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5090 Jan Kratochvil <jan.kratochvil@redhat.com>
5091 Paul Fertser <fercerpav@gmail.com>
5092 Tsutomu Seki <sekiriki@gmail.com>
5093
5094 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5095 (OBS): Add 'common/netstuff.o'.
5096 (GDBREPLAY_OBS): Likewise.
5097 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5098 (remote_open): Implement support for IPv6
5099 connections.
5100 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5101 and 'wspiapi.h'.
5102 (handle_accept_event): Accept connections from IPv6 sources.
5103 (remote_prepare): Handle IPv6-style hostnames; implement
5104 support for IPv6 connections.
5105 (remote_open): Implement support for printing connections from
5106 IPv6 sources.
5107
31445d10
PA
51082018-07-11 Pedro Alves <palves@redhat.com>
5109
5110 PR gdb/23377
5111 * mem-break.c (any_persistent_commands): Add process_info
5112 parameter and use it instead of relying on the current process.
5113 Change return type to bool.
5114 * mem-break.h (any_persistent_commands): Add process_info
5115 parameter and change return type to bool.
5116 * server.c (handle_detach): Remove require_running_or_return call.
5117 Look up the process_info for the process we're about to detach.
5118 If not found, return back error to GDB. Adjust
5119 any_persistent_commands call to pass down a process pointer.
5120
cb197132
PA
51212018-07-11 Pedro Alves <palves@redhat.com>
5122
5123 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5124 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5125 instead of collect_register_by_name.
5126 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5127 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5128
1b919490
VB
51292018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5130 Pedro Alves <palves@redhat.com>
5131
5132 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5133
d7e15655
TT
51342018-07-03 Tom Tromey <tom@tromey.com>
5135
5136 * linux-low.c: Update.
5137 * lynx-low.c: Update.
5138 * mem-break.c: Update.
5139 * nto-low.c: Update.
5140 * remote-utils.c: Update.
5141 * server.c: Update.
5142 * spu-low.c: Update.
5143 * target.c: Update.
5144 * win32-low.c: Update.
5145
26a57c92
TT
51462018-07-03 Tom Tromey <tom@tromey.com>
5147
5148 * server.c: Update.
5149
0e998d96
TT
51502018-07-03 Tom Tromey <tom@tromey.com>
5151
5152 * linux-low.c: Update.
5153
cc6bcb54
TT
51542018-07-03 Tom Tromey <tom@tromey.com>
5155
5156 * target.c: Update.
5157
e38504b3
TT
51582018-07-03 Tom Tromey <tom@tromey.com>
5159
5160 * linux-low.c: Update.
5161 * linux-mips-low.c: Update.
5162 * lynx-low.c: Update.
5163 * nto-low.c: Update.
5164 * remote-utils.c: Update.
5165 * server.c: Update.
5166 * spu-low.c: Update.
5167 * target.c: Update.
5168 * thread-db.c: Update.
5169
e99b03dc
TT
51702018-07-03 Tom Tromey <tom@tromey.com>
5171
5172 * linux-low.c: Update.
5173 * linux-mips-low.c: Update.
5174 * lynx-low.c: Update.
5175 * mem-break.c: Update.
5176 * nto-low.c: Update.
5177 * remote-utils.c: Update.
5178 * server.c: Update.
5179 * spu-low.c: Update.
5180 * target.c: Update.
5181 * tracepoint.c: Update.
5182
f2907e49
TT
51832018-07-03 Tom Tromey <tom@tromey.com>
5184
5185 * linux-low.c: Update.
5186 * linux-ppc-low.c: Update.
5187 * linux-x86-low.c: Update.
5188 * proc-service.c: Update.
5189 * server.c: Update.
5190 * spu-low.c: Update.
5191 * thread-db.c: Update.
5192 * win32-low.c: Update.
5193
fd79271b
TT
51942018-07-03 Tom Tromey <tom@tromey.com>
5195
5196 * linux-low.c: Update.
5197 * lynx-low.c: Update.
5198 * nto-low.c: Update.
5199 * remote-utils.c: Update.
5200 * spu-low.c: Update.
5201 * thread-db.c: Update.
5202 * win32-low.c: Update.
5203
c0867626
SDJ
52042018-06-29 Joel Brobecker <brobecker@adacore.com>
5205
5206 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5207 parameter in call to 'amd64_create_target_description'.
5208
2512d7ef
JK
52092018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5210
5211 * x86-tdesc.h: Remove executable permission flag.
5212
d0ac1c44
SM
52132018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5214
5215 * configure.ac: Remove AC_PREREQ, add missing quoting.
5216 * configure: Re-generate.
5217 * config.in: Re-generate.
5218 * aclocal.m4: Re-generate.
5219
c4eb05ff
SM
52202018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5221
5222 * tracepoint.h (current_traceframe): Remove declaration.
5223
02895270
AH
52242018-06-18 Alan Hayward <alan.hayward@arm.com>
5225
5226 * linux-aarch64-low.c (is_sve_tdesc): New function.
5227 (aarch64_sve_regs_copy_to_regcache): Likewise.
5228 (aarch64_sve_regs_copy_from_regcache): Likewise.
5229 (aarch64_regs_info): Add SVE checks.
5230 (initialize_low_arch): Initialize SVE.
5231
e9902bfc
AH
52322018-06-18 Alan Hayward <alan.hayward@arm.com>
5233
5234 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5235
fefa175e
AH
52362018-06-11 Alan Hayward <alan.hayward@arm.com>
5237
5238 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5239 (initialize_low_tracepoint): Likewise
5240 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5241 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5242 param.
5243 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5244 checks.
5245 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5246
b91ad3ff
AH
52472018-06-11 Alan Hayward <alan.hayward@arm.com>
5248
5249 * server.h (PBUFSIZ): Increase size
5250
f868386e
AH
52512018-06-11 Alan Hayward <alan.hayward@arm.com>
5252
5253 * regcache.c (regcache::raw_compare): New function.
5254 * regcache.h (regcache::raw_compare): New declaration.
5255
9c861883
AH
52562018-06-11 Alan Hayward <alan.hayward@arm.com>
5257
5258 * regcache.c (new_register_cache): Use new.
5259 (free_register_cache): Use delete.
5260 (register_data): Use const.
5261 (supply_register): Move body inside regcache.
5262 (regcache::raw_supply): New override function.
5263 (collect_register): Move body inside regcache.
5264 (regcache::raw_collect): New override function.
5265 (regcache::get_register_status): New override function.
5266 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5267
40591844
TT
52682018-06-09 Tom Tromey <tom@tromey.com>
5269
5270 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5271 declare queue.
5272 (event_queue): Use std::queue.
5273 (gdb_event_xfree): Remove.
5274 (initialize_event_loop, process_event, wait_for_event): Update.
5275
6341380d
SC
52762018-06-08 Stan Cox <scox@redhat.com>
5277
5278 * win32-low.c (win32_create_inferior): last_ptid and last_status
5279 moved to client_state.
5280
03349c93
PA
52812018-06-08 Pedro Alves <palves@redhat.com>
5282
5283 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5284 common/common-exceptions.o, common/common-utils.o,
5285 common/errors.o, common/print-utils.o and utils.o.
5286 * gdbreplay.c: Include "common-defs.h" instead of the two
5287 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5288 string.h or alloca.h.
5289 (perror_with_name): Delete.
5290 (remote_open): Use xstrdup instead of strdup.
5291 (main): Rename to ...
5292 (captured_main): ... this.
5293 (main): New.
5294
8dcc53b3
TT
52952018-06-08 Tom Tromey <tom@tromey.com>
5296
5297 * linux-low.c (linux_low_read_btrace): Update.
5298
c12a5089
SC
52992018-06-04 Stan Cox <scox@redhat.com>
5300
5301 * server.h (struct client_state): New.
5302 * server.c (cont_thread, general_thread, multi_process)
5303 (report_fork_events, report_vfork_events, report_exec_events)
5304 (report_thread_events, swbreak_feature, hwbreak_feature)
5305 (vCont_supported, disable_randomization, pass_signals)
5306 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5307 Moved to client_state.
5308 * remote-utils.c (remote_debug, noack_mode)
5309 (transport_is_reliable): Moved to client_state.
5310 * tracepoint.c (current_traceframe): Moved to client_state.
5311
5312 Update all callers.
5313 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5314 linux-low.c, remote-utils.h, target.c: Use client_state.
5315
122394f1
AH
53162018-05-31 Alan Hayward <alan.hayward@arm.com>
5317
5318 * configure.srv: Add new c/h file.
5319
95228a0d
AH
53202018-05-31 Alan Hayward <alan.hayward@arm.com>
5321
5322 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5323 null VQ.
5324
d8dab6c3
MR
53252018-05-25 Maciej W. Rozycki <macro@mips.com>
5326
5327 * gdb.arch/mips-fpregset-core.exp: New test.
5328 * gdb.arch/mips-fpregset-core.c: New test source.
5329
81e25b7c
EK
53302018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5331
5332 PR server/23198
5333 * hostio.c (require_int): Do not report overflow for integers
5334 between 0xfffffff and 0x7fffffff.
5335
7e947ad3
MR
53362018-05-22 Maciej W. Rozycki <macro@mips.com>
5337
5338 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5339 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5340 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5341 functions.
5342 (the_low_target): Wire them.
5343
1d75a658
PFC
53442018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5345
5346 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5347 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5348 mode. Call collect_register_by_name with vscr using
5349 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5350 (ppc_store_vrregset): Add and set vscr_offset variable as in
5351 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5352 vscr_offset.
5353
d078308a
PFC
53542018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5355
5356 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5357 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5358 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5359
7273b5fc
PFC
53602018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5361
5362 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5363 (ppc_store_vsxregset): Likewise.
5364 (ppc_fill_vrregset): Likewise.
5365 (ppc_store_vrregset): Likewise.
5366 (ppc_fill_evrregset): Likewise.
5367 (ppc_store_evrregset): Likewise.
5368 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5369 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5370 needed.
5371
2e077f5e
PFC
53722018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5373
5374 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5375 wordsize of the inferior. Call ppc_linux_target_wordsize.
5376
bd64614e
PFC
53772018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5378
5379 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5380 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5381 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5382 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5383 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5384 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5385 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5386 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5387 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5388 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5389 (tdesc_powerpc_e500l): Remove.
5390 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5391 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5392 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5393 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5394 linux-ppc-tdesc.h.
5395 (ppc_arch_setup): Remove target description matching code. Fill a
5396 ppc_linux_features struct and call ppc_linux_match_description
5397 with it.
5398
75d74cca
MR
53992018-05-22 Maciej W. Rozycki <macro@mips.com>
5400
5401 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5402 width of the requested register exceeds the width of the
5403 `ptrace' data type.
5404 (mips_cannot_store_register): Likewise.
5405
e4439e43
MR
54062018-05-21 Maciej W. Rozycki <macro@mips.com>
5407
5408 * linux-mips-low.c (mips_fetch_register): New function. Update
5409 preceding comment.
5410 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5411 (the_low_target): Wire `mips_fetch_register'.
5412
55271bf9
JB
54132018-05-10 Joel Brobecker <brobecker@adacore.com>
5414
5415 * lynx-i386-low.c (LYNXOS_178): New macro.
5416 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5417 the layout on LynxOS-178.
5418 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5419 handle floating point registers that are not supported by
5420 LynxOS-178.
5421
1a34f210
TT
54222018-05-10 Tom Tromey <tom@tromey.com>
5423
5424 * configure: Rebuild.
5425
190852c8
JB
54262018-05-10 Joel Brobecker <brobecker@adacore.com>
5427
5428 PR server/23158:
5429 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5430 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5431 Use it to set the expedite_regs field in the given tdesc.
5432 * x86-tdesc.h: New file.
5433 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5434 Adjust following the addition of the new expedite_regs parameter
5435 to init_target_desc.
5436 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5437 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5438 (i386_linux_read_description, amd64_linux_read_description):
5439 Adjust following the addition of the new expedite_regs parameter
5440 to init_target_desc.
5441 * lynx-i386-low.c: #include "x86-tdesc.h".
5442 (lynx_i386_arch_setup): Adjust following the addition of the new
5443 expedite_regs parameter to init_target_desc.
5444 * nto-x86-low.c: #include "x86-tdesc.h".
5445 (nto_x86_arch_setup): Adjust following the addition of the new
5446 expedite_regs parameter to init_target_desc.
5447 * win32-i386-low.c: #include "x86-tdesc.h".
5448 (i386_arch_setup): Adjust following the addition of the new
5449 expedite_regs parameter to init_target_desc.
5450
7dbac825
JB
54512018-05-10 Joel Brobecker <brobecker@adacore.com>
5452
5453 PR server/23158:
5454 * win32-low.c (win32_create_inferior): Add call to my_wait
5455 setting last_status global.
5456
906994d9
JB
54572018-05-10 Joel Brobecker <brobecker@adacore.com>
5458
5459 PR server/23158:
5460 * win32-low.c (create_process): Only call gdb_tilde_expand if
5461 inferior_cwd is not NULL.
5462
8ee22052
AB
54632018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5464
5465 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5466 registers to the cache if their values have changed.
5467 (i387_xsave_to_cache): Provide default values for x87 control
5468 registers when these features are available, but disabled.
5469 * regcache.c (supply_register_by_name_zeroed): New function.
5470 * regcache.h (supply_register_by_name_zeroed): Declare new
5471 function.
5472
aff689d3
TT
54732018-05-07 Tom Tromey <tom@tromey.com>
5474
5475 * configure: Rebuild.
5476
85e26832
TT
54772018-05-04 Tom Tromey <tom@tromey.com>
5478
5479 * configure: Rebuild.
5480
a3b60e45
JK
54812018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5482 Pedro Alves <palves@redhat.com>
5483
5484 * linux-aarch64-low.c (aarch64_stopped_data_address):
5485 Likewise.
5486
632e107b
TT
54872018-04-27 Tom Tromey <tom@tromey.com>
5488
5489 * configure: Rebuild.
5490
458412c3
TT
54912018-04-23 Tom Tromey <tom@tromey.com>
5492
5493 * configure: Rebuild.
5494
f31c089e
SM
54952018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5496
5497 * Makefile.in (depcomp): Add "..".
5498 (all_deps_files): New and use it.
5499
b319b098
AH
55002018-04-18 Alan Hayward <alan.hayward@arm.com>
5501
5502 * configure.srv (aarch64*-*-linux*): Don't include xml.
5503 (i[34567]86-*-cygwin*): Likewise.
5504 (i[34567]86-*-linux*): Likewise.
5505 (i[34567]86-*-lynxos*): Likewise.
5506 (i[34567]86-*-mingw32ce*): Likewise.
5507 (i[34567]86-*-mingw*): Likewise.
5508 (i[34567]86-*-nto*): Likewise.
5509 (tic6x-*-uclinux): Likewise.
5510 (x86_64-*-linux*): Likewise.
5511 (x86_64-*-mingw*): Likewise.
5512 (x86_64-*-cygwin*): Likewise.
5513
3b74854b
AH
55142018-04-18 Alan Hayward <alan.hayward@arm.com>
5515
5516 * tdesc.c: Remove xml parameter.
5517
e98577a9
AH
55182018-04-18 Alan Hayward <alan.hayward@arm.com>
5519
5520 * server.c (get_features_xml): Remove cast.
5521 * tdesc.c (void target_desc::accept): Fill in function.
5522 (tdesc_get_features_xml): Remove old xml creation.
5523 (print_xml_feature::visit_pre): Add xml vistor.
5524 * tdesc.h (struct target_desc): Make xmltarget mutable.
5525 (tdesc_get_features_xml): Remove declaration.
5526
d278f585
AH
55272018-04-18 Alan Hayward <alan.hayward@arm.com>
5528
5529 * tdesc.c (tdesc_architecture_name): Add new function.
5530 (tdesc_osabi_name): Likewise.
5531 (tdesc_get_features_xml): Use new functions.
5532
eee8a18d
AH
55332018-04-18 Alan Hayward <alan.hayward@arm.com>
5534
5535 * tdesc.c (tdesc_create_flags): Remove.
5536 (tdesc_add_flag): Likewise.
5537 (tdesc_named_type): Likewise.
5538 (tdesc_create_union): Likewise.
5539 (tdesc_create_struct): Likewise.
5540 (tdesc_create_vector): Likewise.
5541 (tdesc_add_bitfield): Likewise.
5542 (tdesc_add_field): Likewise.
5543 (tdesc_set_struct_size): Likewise.
5544
82ec9bc7
AH
55452018-04-18 Alan Hayward <alan.hayward@arm.com>
5546
5547 * tdesc.c (~target_desc): Remove implictly deleted items.
5548 (init_target_desc): Iterate all features.
5549 (tdesc_get_features_xml): Use vector.
5550 (tdesc_create_feature): Create feature.
5551 * tdesc.h (tdesc_feature) Remove
5552 (target_desc): Add features.
5553
ea3e7d71
AH
55542018-04-18 Alan Hayward <alan.hayward@arm.com>
5555
5556 * Makefile.in: Add common/tdesc.c
5557 * tdesc.c (init_target_desc): init all reg_defs from register
5558 vector.
5559 (tdesc_create_reg): Create tdesc_reg.
5560 * tdesc.h (tdesc_feature): Add register vector.
5561
17d08cd4
SM
55622018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5563
5564 * tdesc.h (struct target_desc) <features>: Change type to
5565 std::vector<std::string>.
5566 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5567 changes.
5568 (tdesc_get_features_xml): Likewise.
5569 (tdesc_create_feature): Likewise.
5570
5cd3e386
AH
55712018-03-26 Alan Hayward <alan.hayward@arm.com>
5572
5573 * regcache.c (find_register_by_number): Return a ref.
5574 (find_regno): Use references.
5575 (register_size): Likewise.
5576 (register_data): Likewise.
5577 * tdesc.c (target_desc::~target_desc): Remove free calls.
5578 (target_desc::operator==): Use std::vector compare.
5579 (init_target_desc): Use reference.
5580 (tdesc_create_reg): Use reg constructors.
5581 * tdesc.h (struct target_desc): Replace pointer with object.
5582
dff7492c
AH
55832018-03-23 Alan Hayward <alan.hayward@arm.com>
5584
5585 * regcache.c (find_register_by_number): Make static.
5586 (find_regno): Use find_register_by_number
5587 * regcache.h (struct reg): Remove declaration.
5588
d80e5242
AH
55892018-03-23 Alan Hayward <alan.hayward@arm.com>
5590
5591 * tdesc.c (target_desc::~target_desc): Move to here.
5592 (target_desc::operator==): Likewise.
5593 * tdesc.h (target_desc::~target_desc): Move from here.
5594 (target_desc::operator==): Likewise.
5595
f69c5afb
AA
55962018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5597
5598 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5599
ce29f843
AA
56002018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5601
5602 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5603 S390_TDESC_GS.
5604 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5605 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5606 and init_registers_s390_gs_linux64.
5607
c49bd90b
AA
56082018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5609
5610 * linux-s390-low.c (s390_fill_gs): Remove function.
5611 (s390_fill_gsbc): Remove function.
5612 (s390_regsets): Set fill functions for the guarded storage regsets
5613 to NULL.
5614
7edb9bd3
AA
56152018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5616
5617 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5618 the word size. Add comment.
5619 (s390_get_wordsize): New function.
5620 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5621 pswm with it. Instead, use s390_get_wordsize to determine the
5622 word size first and derive the correct tdesc from that directly.
5623
39be3c7e
SM
56242018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5625
5626 * Makefile.in: Include silent-rules.mk.
5627 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5628 (COMPILE): Add ECHO_CXX.
5629 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5630 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5631 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5632 (version-generated.c): Add ECHO_GEN.
5633 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5634 (IPAGENT_COMPILE): Add ECHO_CXX.
5635 (%-generated.c): Add ECHO_REGDAT.
5636
3ae9ce5d
TT
56372018-03-14 Tom Tromey <tom@tromey.com>
5638
5639 PR cli/14977:
5640 * ax.c (ax_printf): Special case for NULL.
5641
e6a58aa8
SM
56422018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5643
5644 * linux-low.c (linux_qxfer_libraries_svr4): Use
5645 xml_escape_text_append.
5646
f6e8a41e
SM
56472018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5648
5649 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5650
b9671caf
SM
56512018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5652
5653 * server.c (handle_general_set): Remove unnecessary xstrdup.
5654
e80aaf61
SM
56552018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5656
5657 * server.c (parse_debug_format_options): Adjust to
5658 delim_string_to_char_ptr_vec changes.
5659 * thread-db.c (thread_db_load_search): Adjust to
5660 dirnames_to_char_ptr_vec changes.
5661
b1223e78
MM
56622018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5663
5664 * target.h (target_enable_btrace, target_disable_btrace)
5665 (target_read_btrace, target_read_btrace_conf): Turn macro into
5666 inline function. Throw error if target method is not defined.
5667 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5668 check for btrace target method. Be prepared to handle exceptions
5669 from btrace target methods.
5670
81561546
SDJ
56712018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5672
5673 * server.c (captured_main): Change order of error message printed
5674 when the current working directory cannot be found.
5675
25e3c82c
SDJ
56762018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5677
5678 * server.c: Include "filenames.h" and "pathstuff.h".
5679 (program_name): Delete variable.
5680 (program_path): New anonymous class.
5681 (get_exec_wrapper): Use "program_path" instead of
5682 "program_name".
5683 (handle_v_run): Likewise.
5684 (captured_main): Likewise.
5685 (process_serial_event): Likewise.
5686
b4987c95
SDJ
56872018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5688
5689 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5690 (OBJS): Add "pathstuff.o".
5691 * server.c (current_directory): New global variable.
5692 (captured_main): Initialize "current_directory".
5693
f46cd62a
AH
56942018-02-26 Alan Hayward <alan.hayward@arm.com>
5695
5696 * tdesc.c: Use common/tdesc.h.
5697 * tdesc.h: Likewise.
5698
a543c5ca
AH
56992018-02-20 Alan Hayward <alan.hayward@arm.com>
5700 Simon Marchi <simon.marchi@ericsson.com>
5701
5702 * Makefile.in: Switch order of make rules.
5703
b5884fa7
AH
57042018-02-19 Alan Hayward <alan.hayward@arm.com>
5705
5706 * Makefile.in: Add common directory in build.
5707 * configure.ac: Add common reference.
5708 * configure: Regenerate.
5709
de6242d3
MM
57102018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5711
5712 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5713 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5714 * spu-low.c (spu_target_ops): Likewise.
5715 * win32-low.c (win32_target_ops): Likewise.
5716 * server.c (supported_btrace_packets): Report packets unconditionally.
5717 * target.h (target_ops) <supports_btrace>: Remove.
5718 (target_supports_btrace): Remove.
5719
9ee23a85
MM
57202018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5721
5722 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5723 (handle_btrace_disable): Change return type to void. Use exceptions
5724 to report errors.
5725 (handle_btrace_general_set): Catch exception and copy message to
5726 return message.
5727
8ce47547
TT
57282018-02-08 Tom Tromey <tom@tromey.com>
5729
5730 * linux-low.c (install_software_single_step_breakpoints): Use
5731 make_scoped_restore.
5732 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5733 (do_restore_current_thread_cleanup): Remove.
5734 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5735 declare.
5736
45dd3607
TT
57372018-02-08 Tom Tromey <tom@tromey.com>
5738
5739 * mem-break.c (set_raw_breakpoint_at): Use
5740 gdb::unique_xmalloc_ptr.
5741
e671cd59
PA
57422018-01-30 Pedro Alves <palves@redhat.com>
5743
5744 PR gdb/13211
5745 * target.c (target_terminal::terminal_state): Rename to ...
5746 (target_terminal::m_terminal_state): ... this.
5747
a0aad537
JC
57482018-01-19 James Clarke <jrtc27@jrtc27.com>
5749
5750 * linux-low.c (handle_extended_wait): Surround call to
5751 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5752
4d9b86e1
SM
57532018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5754
5755 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5756 linux_ptrace_attach_fail_reason_string now returning an
5757 std::string.
5758 (linux_attach): Likewise.
5759 * thread-db.c (attach_thread): Likewise.
5760
f517c180
EA
57612018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5762
5763 PR gdb/21559
5764 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5765 checking for fs_base/gs_base fields in struct user_regs_struct.
5766 * configure: Regenerate.
5767
9a70f35c
YQ
57682018-01-16 Yao Qi <yao.qi@linaro.org>
5769
5770 PR gdb/18749
5771 * linux-low.c (fetch_register): Call supply_register instead of
5772 error.
5773
605fd3c6
YQ
57742018-01-08 Yao Qi <yao.qi@linaro.org>
5775 Simon Marchi <simon.marchi@ericsson.com>
5776
5777 * Makefile.in (OBS): Remove selftest.o.
5778 * configure.ac: Set srv_selftest_objs if $development is true.
5779 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5780 * configure: Re-generated.
5781 * server.c (captured_main): Wrap variable selftest_filter with
5782 GDB_SELF_TEST.
5783
2cc05030
SM
57842018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5785
5786 * server.c (parse_debug_format_options): Return std::string.
5787 (handle_monitor_command, captured_main): Adjust.
5788
e379cee6
PA
57892018-01-05 Pedro Alves <palves@redhat.com>
5790
5791 PR gdb/18653
5792 * server.c (captured_main): Pass quiet=false to
5793 save_original_signals_state.
5794
82e1e79a
JB
57952018-01-01 Joel Brobecker <brobecker@adacore.com>
5796
5797 * gdbreplay.c (gdbreplay_version): Update copyright year in
5798 version message.
5799 * server.c (gdbserver_version): Likewise.
5800
8e481c3b
TT
58012017-12-08 Tom Tromey <tom@tromey.com>
5802
5803 * ax.c (ax_printf): Update.
5804
a8806230
YQ
58052017-12-07 Yao Qi <yao.qi@linaro.org>
5806
5807 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5808 aarch64_linux_read_description.
5809 * linux-amd64-ipa.c (idx2mask): New array.
5810 (get_ipa_tdesc): Move idx2mask out.
5811 (initialize_low_tracepoint): Initialize target descriptions.
5812 * linux-i386-ipa.c (idx2mask): New array.
5813 (get_ipa_tdesc): Move idx2mask out.
5814 (initialize_low_tracepoint): Initialize target descriptions.
5815
d4a0e8b5
SM
58162017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5817
5818 * tdesc.c (struct tdesc_type): Change return type.
5819 (tdesc_add_flag): Change parameter type.
5820 (tdesc_add_bitfield): Likewise.
5821 (tdesc_add_field): Likewise.
5822 (tdesc_set_struct_size): Likewise.
5823
798a7429
SM
58242017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5825
5826 * regcache.c (registers_to_string): Remove unused variable.
5827
c0e15c9b
SM
58282017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5829
5830 * inferiors.c (for_each_inferior_with_data): Remove.
5831 * inferiors.h (for_each_inferior_with_data): Remove.
5832 * server.c (handle_qxfer_threads_worker): Change parameter type.
5833 (handle_qxfer_threads_proper): Use for_each_thread.
5834
f0045347
SM
58352017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5836
5837 * inferiors.c (for_each_inferior): Remove.
5838 (clear_inferiors): Use for_each_thread.
5839 * inferiors.h (for_each_inferior): Remove.
5840 * linux-low.c (linux_wait_for_event_filtered): Use
5841 for_each_thread.
5842 (linux_stabilize_threads): Likewise.
5843 * regcache.c (regcache_release): Likewise.
5844 * server.c (gdb_wants_all_threads_stopped): Likewise.
5845 (clear_pending_status_callback): Remove.
5846 (handle_status): Use for_each_thread.
5847 (captured_main): Likewise.
5848 * win32-low.c (child_init_thread_list): Likewise.
5849 (win32_clear_inferiors): Likewise.
5850 (fake_breakpoint_event): Likewise.
5851
9521758b
SM
58522017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5853
5854 * inferiors.h (find_inferior): Remove.
5855 * inferiors.c (find_inferior): Remove.
5856
8f86d7aa
SM
58572017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5858
5859 * linux-low.c (resume_status_pending_p): Update comment.
5860 (need_step_over_p): Update comment.
5861
e2b44075
SM
58622017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5863
5864 * linux-low.c (proceed_one_lwp): Return void, change parameter
5865 type.
5866 (unsuspend_and_proceed_one_lwp): Likewise.
5867 (proceed_all_lwps): Use for_each_thread.
5868 (unstop_all_lwps): Likewise.
5869
c80825ff
SM
58702017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5871
5872 * linux-low.c (linux_resume_one_thread): Return void, take
5873 parameter directly.
5874 (linux_resume): Use for_each_thread.
5875
df3e4dbe
SM
58762017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5877
5878 * linux-low.c (send_sigstop_callback): Return void, change
5879 parameter type. Rename to...
5880 (send_sigstop): ... this.
5881 (suspend_and_send_sigstop_callback): Return void, change parameter
5882 type. Rename to...
5883 (suspend_and_send_sigstop): ... this.
5884 (stop_all_lwps): Use for_each_thread.
5885
5a6b0a41
SM
58862017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5887
5888 * linux-low.c (lwp_running): Return bool, remove unused
5889 argument.
5890 (linux_stabilize_threads): Use find_thread.
5891
39a64da5
SM
58922017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5893
5894 * linux-low.c (select_singlestep_lwp_callback): Remove.
5895 (count_events_callback): Remove.
5896 (select_event_lwp_callback): Remove.
5897 (select_event_lwp): Use find_thread/for_each_thread.
5898
a1385b7b
SM
58992017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5900
5901 * linux-low.c (not_stopped_callback): Return bool, take filter
5902 argument directly.
5903 (linux_wait_for_event_filtered): Use find_thread.
5904 (linux_wait_1): Likewise.
5905
454296a2
SM
59062017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5907
5908 * linux-low.c (same_lwp): Remove.
5909 (find_lwp_pid): Use find_thread.
5910
6b2a85da
SM
59112017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5912
5913 * linux-low.c (delete_lwp_callback): Remove.
5914 (linux_mourn): Use for_each_thread.
5915
798a38e8
SM
59162017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5917
5918 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5919 args parameter, don't check for pid.
5920 (linux_detach): Use for_each_thread.
5921
e4eb0dec
SM
59222017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5923
5924 * linux-low.c (struct counter): Remove.
5925 (second_thread_of_pid_p): Remove.
5926 (last_thread_of_process_p): Use find_thread.
5927
83e1b6c1
SM
59282017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5929
5930 * inferiors.c (find_inferior_in_random): Remove.
5931 * inferiors.h (find_inferior_in_random): Remove.
5932 * linux-low.c (status_pending_p_callback): Return bool, accept
5933 parameter ptid directly.
5934 (linux_wait_for_event_filtered): Use find_thread_in_random.
5935 (linux_wait_1): Likewise.
5936
8dc7b443
SM
59372017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5938
5939 * inferiors.c (find_inferior_id): Remove.
5940 (find_thread_ptid): Move implemention from find_inferior_id to
5941 here.
5942 * inferiors.h (find_inferior_id): Remove.
5943 * server.c (handle_status): Use find_thread_ptid.
5944 (process_serial_event): Likewise.
5945 * thread-db.c (find_one_thread): Likewise.
5946 (thread_db_thread_handle): Likewise.
5947 * win32-low.c (thread_rec): Likewise.
5948 (child_delete_thread): Likewise.
5949 (win32_thread_alive): Likewise.
5950 (get_child_debug_event): Likewise.
5951
da25033c
SM
59522017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5953
5954 * linux-mips-low.c (update_watch_registers_callback): Return
5955 void, remove pid_p parameter, don't check for pid.
5956 (mips_insert_point, mips_remove_point): Use for_each_thread.
5957
c91bb56b
SM
59582017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5959
5960 * lynx.low (lynx_delete_thread_callback): Remove.
5961 (lynx_mourn): Use for_each_thread.
5962
634a3254
SM
59632017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5964
5965 * regcache.c (regcache_invalidate_one): Remove.
5966 (regcache_invalidate_pid): use for_each_thread.
5967
41272101
TT
59682017-11-26 Tom Tromey <tom@tromey.com>
5969
5970 * linux-low.c (linux_create_inferior): Update.
5971
f5291a6f
UW
59722017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5973
5974 * spu-low.c (spu_create_inferior): Fix typo in argument name.
5975
6654d750
AH
59762017-11-24 Alan Hayward <alan.hayward@arm.com>
5977
5978 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
5979 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5980 * linux-aarch64-tdesc-selftest.c: New file.
5981 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5982
59832017-11-24 Alan Hayward <alan.hayward@arm.com>
5984
5985 * configure.srv: Add new file.
5986 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5987 * linux-aarch64-tdesc-selftest.c: New file.
5988 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5989
49bdb7ee
AH
59902017-11-24 Alan Hayward <alan.hayward@arm.com>
5991
5992 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
5993 * linux-aarch64-low.c (initialize_low_arch): Remove init.
5994 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
5995
d6d7ce56
AH
59962017-11-24 Alan Hayward <alan.hayward@arm.com>
5997
5998 * configure.srv: Add new files.
5999 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6000 aarch64_linux_read_description.
6001 * linux-aarch64-low.c (aarch64_linux_read_description):
6002 Merge with aarch64_arch_setup.
6003 (aarch64_arch_setup): Call aarch64_linux_read_description.
6004 * linux-aarch64-tdesc.c: New file.
6005 * linux-aarch64-tdesc.h: New file.
6006
506fe5f4
YQ
60072017-11-24 Yao Qi <yao.qi@linaro.org>
6008
6009 * configure.srv: Set $srv_regobj for tic6x-linux.
6010 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6011 (tic6x_read_description): Move some code to tic6x_arch_setup.
6012 (tic6x_tdesc_test): New function.
6013 (initialize_low_arch): Call selftests::register_test.
6014
29f9a567
YQ
60152017-11-22 Yao Qi <yao.qi@linaro.org>
6016
6017 * remote-utils.c (prepare_resume_reply): Use memcpy.
6018
578290ec
SM
60192017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6020
6021 * linux-low.c (kill_one_lwp_callback): Return void, take
6022 argument directly, don't filter on pid.
6023 (linux_kill): Use for_each_thread.
6024
eca55aec
SM
60252017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6026
6027 * linux-low.c (need_step_over_p): Return bool, remove dummy
6028 argument.
6029 (linux_resume, proceed_all_lwps): Use find_thread.
6030
25c28b4d
SM
60312017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6032
6033 * linux-low.c (resume_status_pending_p): Return bool, remove
6034 flag_p argument.
6035 (linux_resume): Use find_thread.
6036
5fdda392
SM
60372017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6038
6039 * linux-low.c (struct thread_resume_array): Remove.
6040 (linux_set_resume_request): Return void, take arguments
6041 directly.
6042 (linux_resume): Use for_each_thread.
6043
fcb056a5
SM
60442017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6045
6046 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6047 return bool, remove data argument.
6048 (linux_stabilize_threads): Use find_thread.
6049
139720c5
SM
60502017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6051
6052 * linux-low.c (unsuspend_one_lwp): Remove.
6053 (unsuspend_all_lwps): Use for_each_thread, inline code from
6054 unsuspend_one_lwp.
6055
6d1e5673
SM
60562017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6057
6058 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6059 * linux-low.c (struct iterate_over_lwps_args): Remove.
6060 (iterate_over_lwps_filter): Remove.
6061 (iterate_over_lwps): Use find_thread.
6062
bbf550d5
SM
60632017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6064
6065 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6066 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6067 code from reset_lwp_ptrace_options_callback.
6068
00192f77
SM
60692017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6070
6071 * linux-arm-low.c (struct update_registers_data): Remove.
6072 (update_registers_callback): Return void, take arguments
6073 directly, don't check thread's pid.
6074 (arm_insert_point, arm_remove_point): Use for_each_thread.
6075
2bee2b6c
SM
60762017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6077
6078 * win32-low.c (continue_one_thread): Return void, take argument
6079 directly.
6080 (child_continue): Use for_each_thread.
6081
0b360f19
SM
60822017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6083
6084 * win32-i386-low.c (update_debug_registers_callback): Rename
6085 to ...
6086 (update_debug_registers): ... this, return void, remove pid_p arg.
6087 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6088
f27866ba
SM
60892017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6090
6091 * inferiors.h (struct process_info): Add constructor, initialize
6092 fields..
6093 <syscalls_to_catch>: Change type to std::vector<int>.
6094 * inferiors.c (add_process): Allocate process_info with new.
6095 (remove_process): Free process_info with delete.
6096 * linux-low.c (handle_extended_wait): Adjust.
6097 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6098 * server.c (handle_general_set): Adjust.
6099
e849ea89
PA
61002017-11-16 Pedro Alves <palves@redhat.com>
6101
6102 * remote-utils.c (remote_close): Block SIGIO signals instead of
6103 uninstalling the SIGIO handler.
6104
1d0aa65c
AH
61052017-11-16 Alan Hayward <alan.hayward@arm.com>
6106
6107 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6108
3491a34c
YQ
61092017-11-16 Yao Qi <yao.qi@linaro.org>
6110
6111 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6112 (tic6x_store_gregset): Likewise.
6113 (tic6x_usrregs_info): Move it up.
6114
a602f924
AH
61152017-11-15 Alan Hayward <alan.hayward@arm.com>
6116
6117 * Makefile.in: Update arch rules.
6118 * configure.srv: Explicitly mark arch/ files.
6119
5616b6c3
AS
61202017-11-13 Andreas Schwab <schwab@suse.de>
6121
6122 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6123 function.
6124 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6125
d1928160
PA
61262017-11-06 Pedro Alves <palves@redhat.com>
6127
6128 * config.in, configure: Regenerate.
6129
bac608e7
SM
61302017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6131
6132 * target.c (struct thread_search): Remove.
6133 (thread_search_callback): Remove.
6134 (prepare_to_access_memory): Use for_each_thread instead of
6135 find_inferior. Inline code from thread_search_callback.
6136
eaddb425
SM
61372017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6138
6139 * server.c (struct visit_actioned_threads_data): Remove.
6140 (visit_actioned_threads): Change prototype to take arguments
6141 directly.
6142 (resume): Use find_thread instead of find_inferior.
6143
99078d34
SM
61442017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6145
6146 * server.c (queue_stop_reply_callback): Change prototype, return
6147 void.
6148 (find_status_pending_thread_callback): Remove.
6149 (handle_status): Replace find_inferior with find_thread and
6150 for_each_thread.
6151
cc628f3d
AH
61522017-10-25 Alan Hayward <alan.hayward@arm.com>
6153
6154 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6155 with REGNO.
6156 (aarch64_store_gregset): Likewise.
6157 (aarch64_fill_fpregset): Likewise.
6158 (aarch64_store_fpregset): Likewise.
6159
4d3bb80e
SM
61602017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6161
6162 * gdbthread.h (find_thread, for_each_thread): New functions.
6163 * inferiors.c (thread_of_pid): Remove.
6164 (find_any_thread_of_pid): Use find_thread.
6165 * linux-low.c (num_lwps): Use for_each_thread.
6166
7a7cdfa0
YQ
61672017-10-17 Yao Qi <yao.qi@linaro.org>
6168
6169 * Makefile.in: Remove one rule.
6170 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6171
e675d170
YQ
61722017-10-17 Yao Qi <yao.qi@linaro.org>
6173
6174 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6175 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6176
7eb4e0f9
YQ
61772017-10-17 Yao Qi <yao.qi@linaro.org>
6178
6179 * configure.srv: Rename arm.o with arch/arm.o.
6180
60d6cfc9
YQ
61812017-10-17 Yao Qi <yao.qi@linaro.org>
6182
6183 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6184 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6185 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6186 (arch-i386.o, arch-amd64.o): Remove rules.
6187 (arch/%.o): New rule.
6188 Update POSTCOMPILE and COMPILE.pre.
6189 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6190 * configure: Re-generated.
6191 * configure.srv: Replace arch-i386.o with arch/i386.o.
6192 Replace arch-amd64.o with arch/amd64.o.
6193
5bfda255
YQ
61942017-10-16 Yao Qi <yao.qi@linaro.org>
6195
6196 * configure: Regenerated.
6197
9c80ecd6
SM
61982017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6199
6200 * inferiors.h: (struct inferior_list): Remove.
6201 (struct inferior_list_entry); Remove.
6202 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6203 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6204 get_first_inferior): Remove.
6205 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6206 find_inferior_id, find_inferior_in_random): Change signature.
6207 * inferiors.c (all_threads): Change type to
6208 std::list<thread_info *>.
6209 (get_thread): Remove macro.
6210 (find_inferior, find_inferior_id): Change signature, implement
6211 using find_thread.
6212 (find_inferior_in_random): Change signature, implement using
6213 find_thread_in_random.
6214 (for_each_inferior, for_each_inferior_with_data): Change
6215 signature, implement using for_each_thread.
6216 (add_inferior_to_list, remove_inferior): Remove.
6217 (add_thread, get_first_thread, thread_of_pid,
6218 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6219 (get_first_inferior, one_inferior_p, clear_inferior_list):
6220 Remove.
6221 (clear_inferiors, get_thread_process): Update.
6222 * gdbthread.h: Include <list>.
6223 (struct thread_info) <entry>: Remove field.
6224 <id>: New field.
6225 (all_threads): Change type to std::list<thread_info *>.
6226 (get_first_inferior): Add doc.
6227 (find_thread, for_each_thread, find_thread_in_random): New
6228 functions.
6229 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6230 * linux-arm-low.c (update_registers_callback): Update.
6231 * linux-low.c (second_thread_of_pid_p): Update.
6232 (kill_one_lwp_callback, linux_detach_lwp_callback,
6233 delete_lwp_callback, status_pending_p_callback, same_lwp,
6234 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6235 iterate_over_lwps, not_stopped_callback,
6236 resume_stopped_resumed_lwps, count_events_callback,
6237 select_singlestep_lwp_callback, select_event_lwp_callback,
6238 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6239 suspend_and_send_sigstop_callback, wait_for_sigstop,
6240 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6241 lwp_running, linux_set_resume_request, resume_status_pending_p,
6242 need_step_over_p, start_step_over, linux_resume_one_thread,
6243 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6244 reset_lwp_ptrace_options_callback): Update.
6245 * linux-mips-low.c (update_watch_registers_callback): Update.
6246 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6247 Update.
6248 (free_register_cache_thread_one): Remove.
6249 (regcache_release): Update.
6250 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6251 handle_qxfer_threads_worker): Update.
6252 (handle_query): Update, use list iterator.
6253 (visit_actioned_threads, handle_pending_status,
6254 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6255 clear_pending_status_callback, set_pending_status_callback,
6256 find_status_pending_thread_callback, handle_status,
6257 process_serial_event): Update.
6258 * target.c (thread_search_callback): Update.
6259 * thread-db.c (thread_db_get_tls_address): Update.
6260 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6261 Update.
6262 * win32-i386-low.c (update_debug_registers_callback): Update.
6263 * win32-low.c (delete_thread_info, child_delete_thread,
6264 continue_one_thread, suspend_one_thread,
6265 get_child_debug_event): Adjust.
6266
9179355e
SM
62672017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6268
6269 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6270 * inferiors.h: Include <list>.
6271 (struct process_info) <entry>: Remove field.
6272 <pid>: New field.
6273 (pid_of): Change macro to function.
6274 (ptid_of, lwpid_of): Remove macro.
6275 (all_processes): Change type to std::list<process_info *>.
6276 (ALL_PROCESSES): Remove macro.
6277 (for_each_process, find_process): New function.
6278 * inferiors.c (all_processes): Change type to
6279 std::list<process_info *>.
6280 (find_thread_process): Adjust.
6281 (add_process): Likewise.
6282 (remove_process): Likewise.
6283 (find_process_pid): Likewise.
6284 (get_first_process): Likewise.
6285 (started_inferior_callback): Remove.
6286 (have_started_inferiors_p): Adjust.
6287 (attached_inferior_callback): Remove.
6288 (have_attached_inferiors_p): Adjust.
6289 * linux-low.c (check_zombie_leaders): Likewise.
6290 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6291 (x86_linux_update_xmltarget): Adjust.
6292 * server.c (handle_query): Likewise.
6293 (gdb_reattached_process): Remove.
6294 (handle_status): Adjust.
6295 (kill_inferior_callback): Likewise.
6296 (detach_or_kill_inferior): Remove.
6297 (print_started_pid): Likewise.
6298 (print_attached_pid): Likewise.
6299 (detach_or_kill_for_exit): Update.
6300 (process_serial_event): Likewise.
6301 * linux-arm-low.c (arm_new_fork): Likewise.
6302
c9cb8905
SM
63032017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6304
6305 * dll.h: Include <list>.
6306 (struct dll_info): Add constructor.
6307 <entry>: Remove field.
6308 (all_dlls): Change type to std::list<dll_info>.
6309 * dll.c: Include <algorithm>.
6310 (get_dll): Remove macro.
6311 (all_dlls): Change type to std::list<dll_info *>.
6312 (free_one_dll): Remove.
6313 (match_dll): Likewise.
6314 (loaded_dll): Adjust.
6315 (unloaded_dll): Adjust to all_dlls type change, use
6316 std::find_if. Inline code from match_dll.
6317 (clear_dlls): Adjust to all_dlls type change.
6318 * server.c (emit_dll_description): Remove.
6319 (handle_qxfer_libraries): Adjust to all_dlls type change,
6320 integrate emit_dll_description's functionality.
6321
04ec7890
SM
63222017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6323
6324 * linux-low.h (struct linux_target_ops) <delete_process>: New
6325 field.
6326 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6327 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6328 (struct linux_target_ops): Add delete_process callback.
6329 * linux-arm-low.c (arm_delete_process): New.
6330 (struct linux_target_ops): Add delete_process callback.
6331 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6332 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6333 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6334 * linux-mips-low.c (mips_linux_delete_process): New.
6335 (struct linux_target_ops): Add delete_process callback.
6336 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6337 * linux-s390-low.c (struct linux_target_ops): Likewise.
6338 * linux-sh-low.c (struct linux_target_ops): Likewise.
6339 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6340 * linux-tile-low.c (struct linux_target_ops): Likewise.
6341 * linux-x86-low.c (x86_linux_delete_process): New.
6342 (struct linux_target_ops): Add delete_process callback.
6343 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6344
466eecee
SM
63452017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6346
6347 * linux-aarch64-low.c (the_low_target): Add thread delete
6348 callback.
6349 * linux-arm-low.c (arm_delete_thread): New function.
6350 (the_low_target): Add thread delete callback.
6351 * linux-bfin-low.c (the_low_target): Likewise.
6352 * linux-crisv32-low.c (the_low_target): Likewise.
6353 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6354 set.
6355 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6356 field.
6357 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6358 * linux-mips-low.c (mips_linux_delete_thread): New function.
6359 (the_low_target): Add thread delete callback.
6360 * linux-ppc-low.c (the_low_target): Likewise.
6361 * linux-s390-low.c (the_low_target): Likewise.
6362 * linux-sh-low.c (the_low_target): Likewise.
6363 * linux-tic6x-low.c (the_low_target): Likewise.
6364 * linux-tile-low.c (the_low_target): Likewise.
6365 * linux-x86-low.c (the_low_target): Likewise.
6366 * linux-xtensa-low.c (the_low_target): Likewise.
6367
b79f7801
YZ
63682017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6369
6370 * win32-low.c: Include "common-inferior.h".
6371
bc3b087d
SDJ
63722017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6373
6374 * inferiors.c (set_inferior_cwd): New function.
6375 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6376 (handle_query): Inform that QSetWorkingDir is supported.
6377 * win32-low.c (create_process): Pass the inferior's cwd to
6378 CreateProcess.
6379
d092c5a2
SDJ
63802017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6381
6382 * inferiors.c (current_inferior_cwd): New global variable.
6383 (get_inferior_cwd): New function.
6384 * inferiors.h (struct process_info) <cwd>: New field.
6385
7da0a886
SDJ
63862017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6387
6388 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6389 (OBS): Add gdb_tilde_expand.o.
6390
289a6840
SM
63912017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6392
6393 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6394 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6395
256642e8
PA
63962017-09-29 Pedro Alves <palves@redhat.com>
6397
6398 * ax.c (gdb_parse_agent_expr): Constify.
6399 * ax.h (gdb_parse_agent_expr): Constify.
6400 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6401 Constify.
6402 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6403 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6404 * remote-utils.h (read_ptid): Constify.
6405 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6406 (process_point_options, process_serial_event): Constify.
6407 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6408 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6409 (cmd_qtbuffer): Constify.
6410
5b9ca4d4
PA
64112017-09-29 Pedro Alves <palves@redhat.com>
6412
6413 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6414 fails.
6415
94c207e0
PA
64162017-09-29 Pedro Alves <palves@redhat.com>
6417
6418 * linux-low.c (handle_extended_wait): Pass parent thread instead
6419 of process to thread_db_notice_clone.
6420 * linux-low.h (thread_db_notice_clone): Replace parent process
6421 parameter with parent thread parameter.
6422 * thread-db.c (find_one_thread): Add comment.
6423 (thread_db_notice_clone): Replace parent process parameter with
6424 parent thread parameter. Temporarily switch to the parent thread.
6425
75352e28
SDJ
64262017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6427
6428 * gdbthread.h: Include "common-gdbthread.h".
6429 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6430 "if" when validating the ptid.
6431 * remote-utils.c: Include "gdbthread.h".
6432 (prepare_resume_reply): Use "switch_to_thread".
6433 * target.c (done_accessing_memory): Likewise.
6434
ad339634
AA
64352017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6436
6437 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6438 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6439 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6440 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6441 s390x-gs-linux64-ipa.o to ipa_obj.
6442 * linux-s390-low.c (HWCAP_S390_GS): New define.
6443 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6444 New functions.
6445 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6446 (s390_arch_setup): Check for guarded-storage support and choose
6447 appropriate tdesc.
6448 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6449 init_registers_s390x_gs_linux64.
6450 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6451 enum value.
6452 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6453 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6454
cc4d742f
SM
64552017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6456
6457 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6458
f6327dcb
KB
64592017-09-21 Kevin Buettner <kevinb@redhat.com>
6460
6461 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6462 (thread_db_thread_handle): Declare.
6463 * linux-low.c (linux_target_ops): Initialize thread_handle.
6464 * server.c (handle_qxfer_threads_worker): Add support for
6465 "handle" attribute.
6466 * target.h (struct target_ops): Add new function pointer,
6467 thread_handle.
6468 (target_thread_handle): Define.
6469 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6470 field in lwp.
6471 (thread_db_thread_handle): New function.
6472
86299109
KB
64732017-09-21 Kevin Buettner <kevinb@redhat.com>
6474
6475 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6476 * linux-low.h (thread_db_notice_clone): Declare.
6477 * thread-db.c (thread_db_notice_clone): New function.
6478
f557a88a
PA
64792017-09-21 Pedro Alves <palves@redhat.com>
6480
6481 * server.c (gdb_read_memory, handle_status, process_serial_event)
6482 (handle_serial_event, handle_target_event): Adjust to
6483 set_desired_thread prototype change.
6484 * target.c (set_desired_thread): Remove 'use_general' parameter
6485 and adjust.
6486 * target.h (set_desired_thread): Remove 'use_general' parameter.
6487
223ffa71
TT
64882017-09-20 Tom Tromey <tom@tromey.com>
6489
6490 * target.c (target_terminal::terminal_state): Define.
6491 (target_terminal::init): Rename from target_terminal_init.
6492 (target_terminal::inferior): Rename from
6493 target_terminal_inferior.
6494 (target_terminal::ours): Rename from target_terminal_ours.
6495 (target_terminal::ours_for_output, target_terminal::info): New.
6496
04fd3ba9
SM
64972017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6498
6499 * server.c (accumulate_file_name_length): Remove.
6500 (emit_dll_description): Adjust to std::string change.
6501 (handle_qxfer_libraries): Use std::string to hold document.
6502
5e187554
SM
65032017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6504
6505 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6506 return type of xml_escape_text.
6507 * server.c (emit_dll_description): Likewise.
6508
1526853e
SM
65092017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6510
6511 * server.c (captured_main): Accept argument for --selftest.
6512 Update run_tests call.
6513 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6514 when registering selftests.
6515
c4dfafab
SDJ
65162017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6517
6518 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6519 instead of "VEC" for "target_desc.reg_defs".
6520 (regcache_cpy): Likewise.
6521 (registers_to_string): Likewise.
6522 (registers_from_string): Likewise.
6523 (find_regno): Likewise.
6524 (supply_regblock): Likewise.
6525 (regcache_raw_read_unsigned): Likewise.
6526 * tdesc.c (init_target_desc): Likewise.
6527 (tdesc_create_reg): Likewise.
6528 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6529 (struct target_desc) <reg_defs>: Convert to "std::vector".
6530 (target_desc): Do not initialize "reg_defs".
6531 (~target_desc): Update code to use "std::vector" instead of "VEC"
6532 for "target_desc.reg_defs".
6533 (operator==): Likewise.
6534
124aceb4
SM
65352017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6536
6537 * inferiors.h (thread_to_gdb_id): Remove.
6538 * inferiors.c (thread_to_gdb_id): Remove.
6539 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6540 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6541 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6542 Likewise.
6543 * nto-low.c (nto_fetch_registers, nto_store_registers,
6544 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6545
96cde54f
SM
65462017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6547
6548 * inferiors.h (gdb_id_to_thread_id): Remove.
6549 * inferiors.c (gdb_id_to_thread_id): Remove.
6550 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6551 removal. Move pid declaration closer to where it's used.
6552
e8ca139e
SM
65532017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6554
6555 * server.c (handle_detach): New function.
6556 (process_serial_event): Move code out, call handle_detach.
6557
f8a4e119
SM
65582017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6559
6560 * server.c (require_running): Rename to ...
6561 (require_running_or_return): ... this ...
6562 (require_running_or_break): ... and this.
6563 (handle_query, process_serial_event): Adjust.
6564
0eb0a407
SM
65652017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6566
6567 * linux-low.c (linux_set_resume_request): Remove unused
6568 variables.
6569
785922a5
SM
65702017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6571
6572 * server.c (first_thread_of): Remove.
6573 (process_serial_event): Replace usage of first_thread_of with
6574 find_any_thread_of_pid.
6575 * tracepoint.c (same_process_p): Remove.
6576 (gdb_agent_about_to_close): Replace usage of same_process_p with
6577 find_any_thread_of_pid.
6578 * linux-x86-low.c (same_process_callback): Remove.
6579 (x86_arch_setup_process_callback): Replace usage of
6580 same_process_callback with find_any_thread_of_pid.
6581 * thread-db.c (any_thread_of): Remove.
6582 (switch_to_process): Replace usage of any_thread_of with
6583 find_any_thread_of_pid.
6584 * inferiors.c (thread_pid_matches_callback): Remove.
6585 (find_thread_process): Adjust to use find_any_thread_of_pid.
6586
a059f00c
SDJ
65872017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6588
6589 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6590 with "!VEC_empty".
a059f00c 6591
cc397f3a
SDJ
65922017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6593
6594 * linux-low.c (handle_extended_wait): Use
6595 "allocate_target_description" instead of "XNEW".
6596 * linux-x86-low.c (initialize_low_arch): Likewise.
6597
22916b07
YQ
65982017-09-05 Yao Qi <yao.qi@linaro.org>
6599
6600 * configure.srv (srv_i386_regobj): Remove.
6601 (srv_amd64_regobj): Remove.
6602 (srv_regobj): Set it to "" for x86 non-linux targets.
6603 * linux-x86-tdesc.c (i386_linux_read_description):
6604 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6605 (init_registers_i386): Remove the declaration.
6606 (tdesc_i386): Remove the declaration.
6607 (lynx_i386_arch_setup): Call i386_create_target_description.
6608 * nto-x86-low.c: Likewise.
6609 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6610 [!__x86_64__]: include arch/i386.h.
6611 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6612
38602d55
YQ
66132017-09-05 Yao Qi <yao.qi@linaro.org>
6614
6615 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6616 i386/amd64-XXX-linux from it.
6617
44b886ff
YQ
66182017-09-05 Yao Qi <yao.qi@linaro.org>
6619
6620 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6621 false.
6622 (ipa_amd64_linux_regobj): Remove.
6623 (ipa_x32_linux_regobj): Remove.
6624
b4570e4b
YQ
66252017-09-05 Yao Qi <yao.qi@linaro.org>
6626
6627 * Makefile.in (arch-amd64.o): New rule.
6628 * configure.srv: Append arch-amd64.o.
6629 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6630 (get_ipa_tdesc): Call amd64_linux_read_description.
6631 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6632 and init_registers_amd64_XXX.
6633 * linux-x86-low.c (x86_linux_read_description): Call
6634 amd64_linux_read_description.
6635 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6636 (initialize_low_arch): Don't call init_registers_x32_XXX and
6637 init_registers_amd64_XXX.
6638 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6639 and tdesc_amd64_XXX.
6640 [__x86_64__] (amd64_tdesc_test): New function.
6641 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6642 and init_registers_amd64_XXX.
6643 * linux-x86-tdesc.c: Include arch/amd64.h.
6644 (xcr0_to_tdesc_idx): New function.
6645 (i386_linux_read_description): New function.
6646 (amd64_get_ipa_tdesc_idx): New function.
6647 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6648 (amd64_get_ipa_tdesc): Declare.
6649
d1f28ea2
YQ
66502017-09-05 Yao Qi <yao.qi@linaro.org>
6651
6652 * configure.srv (srv_i386_linux_xmlfiles): Remove
6653 i386/i386-XXX-linux.xml from it.
6654
25a93583
YQ
66552017-09-05 Yao Qi <yao.qi@linaro.org>
6656
6657 * configure.srv: Set srv_i386_linux_regobj empty if $development
6658 is false.
6659 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6660 initialize_low_tdesc.
6661 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6662 with #if initialize_low_tdesc.
6663 * linux-x86-tdesc-selftest.c: New file.
6664 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6665
5f035c07
YQ
66662017-09-05 Yao Qi <yao.qi@linaro.org>
6667
6668 * Makefile.in (arch-i386.o): New rule.
6669 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6670 (x86_64-*-linux*): Likewise.
6671 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6672 include arch/i386.h.
6673 (i386_linux_read_description): Remove code and call
6674 i386_create_target_description.
6675 * tdesc.c (allocate_target_description): New function.
6676 * tdesc.h (set_tdesc_architecture): Remove declaration.
6677 (set_tdesc_osabi): Likewise.
6678
0abe8a89
YQ
66792017-09-05 Yao Qi <yao.qi@linaro.org>
6680
6681 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6682 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6683 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6684 .xmltarget.
6685 * server.c (get_features_xml): Call tdesc_get_features_xml.
6686 * tdesc.c (set_tdesc_architecture): New function.
6687 (set_tdesc_osabi): New function.
6688 (tdesc_get_features_xml): New function.
6689 (tdesc_create_feature): Add an argument.
6690 * tdesc.h (struct target_desc) <features>: New field.
6691 <arch, osabi>: New field.
6692 (~target_desc): xfree features, arch, and osabi.
6693 (target_desc::oerator==): Don't compare .xmltarget.
6694 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6695 (set_tdesc_osabi): Likewise.
6696 (tdesc_get_features_xml): Likewise.
6697
0a188386
YQ
66982017-09-05 Yao Qi <yao.qi@linaro.org>
6699
6700 * linux-x86-tdesc.c: Include selftest.h.
6701 (i386_tdesc_test): New function.
6702 (initialize_low_tdesc): Call selftests::register_test.
6703 * tdesc.h: Include regdef.h.
6704 (target_desc): Override operator == and !=.
6705
f49ff000
YQ
67062017-09-05 Yao Qi <yao.qi@linaro.org>
6707
6708 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6709 (ipa_obj): Likewise.
6710 * linux-i386-ipa.c: Include common/x86-xstate.h
6711 (get_ipa_tdesc): Call i386_linux_read_description.
6712 (initialize_low_tracepoint): Don't call init_registers_XXX
6713 functions, call initialize_low_tdesc instead.
6714 * linux-x86-low.c (x86_linux_read_description): Call
6715 i386_linux_read_description.
6716 (initialize_low_arch): Don't call init_registers_i386_XXX
6717 functions, call initialize_low_tdesc.
6718 * linux-x86-tdesc.c: New file.
6719 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6720 (i386_get_ipa_tdesc_idx): Declare.
6721 (i386_get_ipa_tdesc): Declare.
6722 (initialize_low_tdesc): Declare.
6723
2b68ef2f
YQ
67242017-09-05 Yao Qi <yao.qi@linaro.org>
6725
6726 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6727 instead of 0.
6728
f7000548
YQ
67292017-09-05 Yao Qi <yao.qi@linaro.org>
6730
6731 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6732 * regcache.c (get_thread_regcache): Use VEC_length.
6733 (init_register_cache): Likewise.
6734 (regcache_cpy): Likewise.
6735 (registers_to_string): Iterate reg_defs via VEC_iterate.
6736 (find_regno): Likewise.
6737 (find_register_by_number): Use VEC_index.
6738 (register_size): Call find_register_by_number.
6739 (register_data): Call find_register_by_number.
6740 (supply_regblock): Use VEC_length.
6741 (regcache_raw_read_unsigned): Likewise.
6742 * tdesc.c (init_target_desc): Iterate reg_defs via
6743 VEC_iterate.
6744 (default_description): Update initializer.
6745 (copy_target_description): Don't update field num_registers.
6746 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6747 <num_registers>: Remove.
6748
50a421ac
SM
67492017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6750
6751 * Makefile.in (.SECONDARY): Define target.
6752
23fdd69e
SM
67532017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6754
6755 * linux-low.c (linux_wait_1): Adjust.
6756 * server.c (queue_stop_reply_callback): Adjust.
6757
0a2dde4a
SDJ
67582017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6759
6760 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6761 QEnvironmentUnset and QEnvironmentReset packets.
6762 (handle_query): Inform remote that QEnvironmentHexEncoded,
6763 QEnvironmentUnset and QEnvironmentReset are supported.
6764
6afd337d
SM
67652017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6766
6767 * inferiors.h (inferior_target_data): Rename to ...
6768 (thread_target_data): ... this.
6769 (inferior_regcache_data): Rename to ...
6770 (thread_regcache_data): ... this.
6771 (set_inferior_regcache_data): Rename to ...
6772 (set_thread_regcache_data): ... this.
6773 * inferiors.c (inferior_target_data): Rename to ...
6774 (thread_target_data): ... this.
6775 (inferior_regcache_data): Rename to ...
6776 (thread_regcache_data): ... this.
6777 (set_inferior_regcache_data): Rename to ...
6778 (set_thread_regcache_data): ... this.
6779 (free_one_thread): Update.
6780 * linux-low.h (get_thread_lwp): Update.
6781 * regcache.c (get_thread_regcache): Update.
6782 (regcache_invalidate_thread): Update.
6783 (free_register_cache_thread): Update.
6784 * win32-i386-low.c (update_debug_registers_callback): Update.
6785 (win32_get_current_dr): Update.
6786 * win32-low.c (thread_rec): Update.
6787 (delete_thread_info): Update.
6788 (continue_one_thread): Update.
6789 (suspend_one_thread): Update.
6790
a160cc46
SM
67912017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6792
6793 * inferiors.c (set_inferior_target_data): Remove.
6794 * inferiors.h (set_inferior_target_data): Remove.
6795
6d580b63
YQ
67962017-08-18 Yao Qi <yao.qi@linaro.org>
6797
6798 * Makefile.in (OBS): Add selftest.o.
6799 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6800 * configure, config.in: Re-generated.
6801 * server.c: Include common/sefltest.h.
6802 (captured_main): Handle option --selftest.
6803
f5a29eb0
YQ
68042017-08-09 Yao Qi <yao.qi@linaro.org>
6805
6806 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6807 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6808 i386-avx-mpx.o and i386-mmx.o.
6809 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6810 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6811 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6812 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6813 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6814 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6815 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6816 i386/amd64-avx-mpx.xml.
6817
57757c2f
YQ
68182017-08-09 Yao Qi <yao.qi@linaro.org>
6819
6820 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6821 and x32-avx-avx512.o.
6822 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6823 i386/x32-avx-avx512.xml.
6824
229d26fc
SM
68252017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6826
6827 * tracepoint.h (enum class fast_tpoint_collect_result): New
6828 enumeration.
6829 (fast_tracepoint_collecting): Change return type to
6830 fast_tpoint_collect_result.
6831 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6832 * linux-low.h: Include tracepoint.h.
6833 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6834 fast_tpoint_collect_result.
6835 * linux-low.c (handle_tracepoints): Adjust.
6836 (linux_fast_tracepoint_collecting): Change return type to
6837 fast_tpoint_collect_result.
6838 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6839 linux_wait_1, stuck_in_jump_pad_callback,
6840 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6841 proceed_one_lwp): Adjust to type change.
6842
2e1e43e1
YQ
68432017-07-10 Yao Qi <yao.qi@linaro.org>
6844
6845 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6846
adc764e7
YQ
68472017-06-29 Yao Qi <yao.qi@linaro.org>
6848
6849 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6850 Remove.
6851 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6852
a206891a
SM
68532017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6854
6855 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6856
9a6c7d9c
SDJ
68572017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6858
6859 * linux-low.c (linux_create_inferior): Adjust code to access the
6860 environment information via 'gdb_environ' class.
6861 * lynx-low.c (lynx_create_inferior): Likewise.
6862 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6863 (get_environ): Return a pointer to 'our_environ'.
6864 (captured_main): Initialize 'our_environ'.
6865 * server.h (get_environ): Adjust prototype.
6866 * spu-low.c (spu_create_inferior): Adjust code to access the
6867 environment information via 'gdb_environ' class.
6868
ae3e2ccf
SM
68692017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6870
6871 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6872 usage of "register" keyword.
6873
3e019bdc
SM
68742017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6875
6876 * configure: Re-generate.
6877
8465943a
SM
68782017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6879
6880 * configure: Re-generate.
6881
cf0dd6f0
SM
68822017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6883
6884 * Makefile.in (COMPILE.pre): Add "-x c++".
6885
9845682b
SDJ
68862017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6887
6888 * fork-child.c: Conditionally include <signal.h>.
6889
aefd8b33
SDJ
68902017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6891
6892 * server.c (handle_general_set): Handle new packet
6893 "QStartupWithShell".
6894 (handle_query): Add "QStartupWithShell" to the list of supported
6895 packets.
6896 (gdbserver_usage): Add help text explaining the
6897 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6898 options.
6899 (captured_main): Recognize and act upon the presence of the new
6900 CLI options.
6901
2090129c
SDJ
69022017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6903 Pedro Alves <palves@redhat.com>
6904
6905 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6906 * configure: Regenerate.
6907 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6908 "fork-inferior.o".
6909 (i[34567]86-*-lynxos*): Likewise.
6910 (spu*-*-*): Likewise.
6911 * fork-child.c: New file.
6912 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6913 and "environ.h".
6914 (linux_ptrace_fun): New function.
6915 (linux_create_inferior): Adjust function prototype to reflect
6916 change on "target.h". Adjust function code to use
6917 "fork_inferior".
6918 (linux_request_interrupt): Delete "signal_pid".
6919 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6920 (lynx_ptrace_fun): New function.
6921 (lynx_create_inferior): Adjust function prototype to reflect
6922 change on "target.h". Adjust function code to use
6923 "fork_inferior".
6924 * nto-low.c (nto_create_inferior): Adjust function prototype and
6925 code to reflect change on "target.h". Update comments.
6926 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6927 "common-terminal.h" and "environ.h".
6928 (terminal_fd): Moved to fork-child.c.
6929 (old_foreground_pgrp): Likewise.
6930 (restore_old_foreground_pgrp): Likewise.
6931 (last_status): Make it global.
6932 (last_ptid): Likewise.
6933 (our_environ): New variable.
6934 (startup_with_shell): Likewise.
6935 (program_name): Likewise.
6936 (program_argv): Rename to...
6937 (program_args): ...this.
6938 (wrapper_argv): New variable.
6939 (start_inferior): Delete function.
6940 (get_exec_wrapper): New function.
6941 (get_exec_file): Likewise.
6942 (get_environ): Likewise.
6943 (prefork_hook): Likewise.
6944 (post_fork_inferior): Likewise.
6945 (postfork_hook): Likewise.
6946 (postfork_child_hook): Likewise.
6947 (handle_v_run): Update code to deal with arguments coming from the
6948 remote host. Update calls from "start_inferior" to
6949 "create_inferior".
6950 (captured_main): Likewise. Initialize environment variable. Call
6951 "have_job_control".
6952 * server.h (post_fork_inferior): New prototype.
6953 (get_environ): Likewise.
6954 (last_status): Declare.
6955 (last_ptid): Likewise.
6956 (signal_pid): Likewise.
6957 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6958 (spu_ptrace_fun): New function.
6959 (spu_create_inferior): Adjust function prototype to reflect change
6960 on "target.h". Adjust function code to use "fork_inferior".
6961 * target.c (target_terminal_init): New function.
6962 (target_terminal_inferior): Likewise.
6963 (target_terminal_ours): Likewise.
6964 * target.h: Include <vector>.
6965 (struct target_ops) <create_inferior>: Update prototype.
6966 (create_inferior): Update macro.
6967 * utils.c (gdb_flush_out_err): New function.
6968 * win32-low.c (win32_create_inferior): Adjust function prototype
6969 and code to reflect change on "target.h".
6970
043a4934
SDJ
69712017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6972
6973 * inferiors.c (switch_to_thread): New function.
6974
15652511
SDJ
69752017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6976
6977 * Makefile.in (SFILE): Add "common/job-control.c".
6978 (OBS): Add "job-control.o".
6979
21ea5acd
SDJ
69802017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6981
6982 * Makefile: Remove "@host_makefile_frag@".
6983
e13cb306
PA
69842017-05-05 Pedro Alves <palves@redhat.com>
6985
6986 * configure: Regenerate.
6987
c94fee56
SDJ
69882017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6989
6990 * configure: Regenerate.
6991
a0ff9e1a
SM
69922017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6993
6994 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
6995 software_single_step change of return type to
6996 std::vector<CORE_ADDR>.
6997 * linux-low.c (install_software_single_step_breakpoints):
6998 Likewise.
6999 * linux-low.h (install_software_single_step_breakpoints):
7000 Likewise.
7001
be628ab8
SDJ
70022017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7003
7004 * remote-utils.c: Include "gdb_termios.h" instead of
7005 "terminal.h".
7006 * terminal.h: Delete file.
7007
7c5ded6a
SDJ
70082017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7009
7010 * server.c: Include <vector>.
7011 <program_argv, wrapper_argv>: Convert to std::vector.
7012 (start_inferior): Rewrite function to use C++.
7013 (handle_v_run): Likewise. Update code that calculates the argv
7014 based on the vRun packet; use C++.
7015 (captured_main): Likewise.
7016
436252de
SM
70172017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7018
7019 * server.c (handle_v_cont): Initialize thread_resume::thread
7020 with null_ptid.
7021
9bf2a700
PA
70222017-04-05 Pedro Alves <palves@redhat.com>
7023
7024 * configure: Regenerate.
7025
a121b7c1
PA
70262017-04-05 Pedro Alves <palves@redhat.com>
7027
7028 * gdbreplay.c (sync_error): Constify.
7029 * linux-x86-low.c (push_opcode): Constify.
7030
21c8a587
PA
70312017-04-05 Pedro Alves <palves@redhat.com>
7032
7033 * win32-low.c (get_child_debug_event)
7034 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7035 Report TARGET_WAITKIND_SPURIOUS instead.
7036
fb32b4f7
PA
70372017-04-05 Pedro Alves <palves@redhat.com>
7038
e79be6e5
SM
7039 * remote-utils.c (remote_prepare, remote_open): Constify.
7040 * remote-utils.h (remote_prepare, remote_open): Constify.
7041 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7042
65dd1e59
SM
70432017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7044
7045 * Makefile.in (clean): Clear .deps.
7046
8fa5b777
SM
70472017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7048
7049 * .gitignore: Remove generated files, replace with wildcard.
7050 * (clean): Replace removal of generated files with wildcard.
7051 (version.c): Replace with...
7052 (version-generated.c): ...this.
7053 (xml-builtin.c): Replace with...
7054 (xml-builtin-generated.c): ...this.
7055 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7056 (%.c: *regformats*): Replace with...
7057 (%-generated.c: *regformats*): ...this.
7058
a12e714b
MF
70592017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7060
7061 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7062 (xtensa_fill_gregset): Call collect_register_by_name for
7063 threadptr register.
7064 (xtensa_store_gregset): Call supply_register_by_name for
7065 threadptr register.
7066
1a09b50a
MF
70672017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7068
7069 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7070 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7071 (xtensa_store_gregset): Call supply_register for all registers in
7072 a0_regnum..a0_regnum + C0_NREGS range.
7073
1a01e7c6
SM
70742017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7075
7076 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7077 (ax-ipa.o: ax.c): Remove.
7078 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7079 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7080 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7081 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7082 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7083
36bc18a8
SM
70842017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7085
7086 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7087 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7088 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7089 (errors-ipa.o: ../common/errors.c): Remove.
7090 (format-ipa.o: ../common/format.c): Remove.
7091 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7092
a8ebe3d5
SM
70932017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7094
7095 * Makefile.in (%-ipa.o: %.c): New rule.
7096 (tracepoint-ipa.o: tracepoint.c): Remove.
7097 (utils-ipa.o: utils.c): Remove.
7098 (remote-utils-ipa.o: remote-utils.c): Remove.
7099 (regcache-ipa.o: regcache.c): Remove.
7100 (i386-linux-ipa.o: i386-linux.c): Remove.
7101 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7102 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7103 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7104 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7105 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7106 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7107 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7108 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7109 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7110 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7111 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7112 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7113 (aarch64-ipa.o: aarch64.c): Remove.
7114 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7115 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7116 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7117 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7118 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7119 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7120 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7121 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7122 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7123 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7124 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7125 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7126 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7127 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7128 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7129 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7130 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7131 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7132 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7133 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7134 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7135 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7136 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7137 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7138 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7139 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7140 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7141 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7142 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7143 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7144 (tdesc-ipa.o: tdesc.c): Remove.
7145 (x32-linux-ipa.o: x32-linux.c): Remove.
7146 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7147 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7148
50cfacb7
SM
71492017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7150
7151 * Makefile.in (%.o: ../arch/%.c): New rule.
7152 (arm.o: ../arch/arm.c): Remove.
7153 (arm-linux.o: ../arch/arm-linux.c): Remove.
7154 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7155 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7156
c5a22423
SM
71572017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7158
7159 * Makefile.in (%.o: ../nat/%.c): New rule.
7160 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7161 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7162 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7163 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7164 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7165 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7166 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7167 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7168 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7169 (linux-personality.o: ../nat/linux-personality.c): Remove.
7170 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7171 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7172 (x86-linux.o: ../nat/x86-linux.c): Remove.
7173 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7174 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7175
6bda016b
SM
71762017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7177
7178 * Makefile.in (%.o: ../common/%.c): New rule.
7179 (signals.o: ../common/signals.c): Remove.
7180 (print-utils.o: ../common/print-utils.c): Remove.
7181 (rsp-low.o: ../common/rsp-low.c): Remove.
7182 (common-utils.o: ../common/common-utils.c): Remove.
7183 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7184 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7185 (vec.o: ../common/vec.c): Remove.
7186 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7187 (xml-utils.o: ../common/xml-utils.c): Remove.
7188 (ptid.o: ../common/ptid.c): Remove.
7189 (buffer.o: ../common/buffer.c): Remove.
7190 (format.o: ../common/format.c): Remove.
7191 (filestuff.o: ../common/filestuff.c): Remove.
7192 (agent.o: ../common/agent.c): Remove.
7193 (errors.o: ../common/errors.c): Remove.
7194 (environ.o: ../common/environ.c): Remove.
7195 (common-debug.o: ../common/common-debug.c): Remove.
7196 (cleanups.o: ../common/cleanups.c): Remove.
7197 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7198 (fileio.o: ../common/fileio.c): Remove.
7199 (common-regcache.o: ../common/common-regcache.c): Remove.
7200 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7201 (new-op.o: ../common/new-op.c): Remove.
7202 (btrace-common.o: ../common/btrace-common.c): Remove.
7203
21122961
SM
72042017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7205
7206 * Makefile.in (%.o: ../target/%.c): New rule.
7207 (waitstatus.o: ../target/waitstatus.c): Remove.
7208
c362e621
SM
72092017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7210
7211 * Makefile.in
7212 (%.c: ../regformats/%.dat,
7213 (%.c: ../regformats/arm/%.dat,
7214 (%.c: ../regformats/i386/%.dat,
7215 (%.c: ../regformats/rs6000/%.dat): New rules.
7216 (aarch64.c): Remove.
7217 (reg-arm.c): Remove.
7218 (arm-with-iwmmxt.c): Remove.
7219 (arm-with-vfpv2.c): Remove.
7220 (arm-with-vfpv3.c): Remove.
7221 (arm-with-neon.c): Remove.
7222 (reg-bfin.c): Remove.
7223 (reg-cris.c): Remove.
7224 (reg-crisv32.c): Remove.
7225 (i386.c): Remove.
7226 (i386-linux.c): Remove.
7227 (i386-avx.c): Remove.
7228 (i386-avx-linux.c): Remove.
7229 (i386-avx-avx512.c): Remove.
7230 (i386-avx-avx512-linux.c): Remove.
7231 (i386-mpx.c): Remove.
7232 (i386-mpx-linux.c): Remove.
7233 (i386-avx-mpx-avx512-pku.c): Remove.
7234 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7235 (i386-avx-mpx.c): Remove.
7236 (i386-avx-mpx-linux.c): Remove.
7237 (i386-mmx.c): Remove.
7238 (i386-mmx-linux.c): Remove.
7239 (reg-ia64.c): Remove.
7240 (reg-m32r.c): Remove.
7241 (reg-m68k.c): Remove.
7242 (reg-cf.c): Remove.
7243 (mips-linux.c): Remove.
7244 (mips-dsp-linux.c): Remove.
7245 (mips64-linux.c): Remove.
7246 (mips64-dsp-linux.c): Remove.
7247 (nios2-linux.c): Remove.
7248 (powerpc-32.c): Remove.
7249 (powerpc-32l.c): Remove.
7250 (powerpc-altivec32l.c): Remove.
7251 (powerpc-cell32l.c): Remove.
7252 (powerpc-vsx32l.c): Remove.
7253 (powerpc-isa205-32l.c): Remove.
7254 (powerpc-isa205-altivec32l.c): Remove.
7255 (powerpc-isa205-vsx32l.c): Remove.
7256 (powerpc-e500l.c): Remove.
7257 (powerpc-64l.c): Remove.
7258 (powerpc-altivec64l.c): Remove.
7259 (powerpc-cell64l.c): Remove.
7260 (powerpc-vsx64l.c): Remove.
7261 (powerpc-isa205-64l.c): Remove.
7262 (powerpc-isa205-altivec64l.c): Remove.
7263 (powerpc-isa205-vsx64l.c): Remove.
7264 (s390-linux32.c): Remove.
7265 (s390-linux32v1.c): Remove.
7266 (s390-linux32v2.c): Remove.
7267 (s390-linux64.c): Remove.
7268 (s390-linux64v1.c): Remove.
7269 (s390-linux64v2.c): Remove.
7270 (s390-te-linux64.c): Remove.
7271 (s390-vx-linux64.c): Remove.
7272 (s390-tevx-linux64.c): Remove.
7273 (s390x-linux64.c): Remove.
7274 (s390x-linux64v1.c): Remove.
7275 (s390x-linux64v2.c): Remove.
7276 (s390x-te-linux64.c): Remove.
7277 (s390x-vx-linux64.c): Remove.
7278 (s390x-tevx-linux64.c): Remove.
7279 (tic6x-c64xp-linux.c): Remove.
7280 (tic6x-c64x-linux.c): Remove.
7281 (tic6x-c62x-linux.c): Remove.
7282 (reg-sh.c): Remove.
7283 (reg-sparc64.c): Remove.
7284 (reg-spu.c): Remove.
7285 (amd64.c): Remove.
7286 (amd64-linux.c): Remove.
7287 (amd64-avx.c): Remove.
7288 (amd64-avx-linux.c): Remove.
7289 (amd64-avx-avx512.c): Remove.
7290 (amd64-avx-avx512-linux.c): Remove.
7291 (amd64-mpx.c): Remove.
7292 (amd64-mpx-linux.c): Remove.
7293 (amd64-avx-mpx-avx512-pku.c): Remove.
7294 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7295 (amd64-avx-mpx.c): Remove.
7296 (amd64-avx-mpx-linux.c): Remove.
7297 (x32.c): Remove.
7298 (x32-linux.c): Remove.
7299 (x32-avx.c): Remove.
7300 (x32-avx-linux.c): Remove.
7301 (x32-avx-avx512.c): Remove.
7302 (x32-avx-avx512-linux.c): Remove.
7303 (reg-xtensa.c): Remove.
7304 (reg-tilegx.c): Remove.
7305 (reg-tilegx32.c): Remove.
7306
1672e0d9
SDJ
73072017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7308
7309 * Makefile.in (SFILES): Add "common/environ.c".
7310 (OBJS): Add "common/environ.h".
7311
239b6d10
WT
73122017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7313
7314 * configure.ac: Check if the fs_base and gs_base members of
7315 `struct user_regs_struct' exist.
7316 * config.in: Regenerated.
7317 * configure: Likewise.
7318
694b382c
AT
73192017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7320
7321 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7322 target_read_memory.
7323 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7324 (get_next_pcs_syscall_next_pc): Likewise.
7325
7dc53023
LM
73262016-12-23 Luis Machado <lgustavo@codesourcery.com>
7327
7328 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7329 * nto-x86-low.c: Likewise.
7330
ad02e4fe
SM
73312016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7332
7333 * Makefile.in: Include disable-implicit-rules.mk.
7334
dcb07cfa
PA
73352016-11-23 Pedro Alves <palves@redhat.com>
7336
7337 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7338 (debug_vprintf): Use std::chrono::steady_clock instead of
7339 gettimeofday. Use '.' instead of ':'.
7340 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7341 (get_timestamp): Use std::chrono::steady_clock instead of
7342 gettimeofday.
7343
8629c02c
SM
73442016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7345
7346 * Makefile.in: Fix whitespace formatting.
7347
b593ecca
SM
73482016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7349
7350 * Makefile.in (SFILES, OBS): Flatten list and order
7351 alphabetically.
7352
9986ba08
PA
73532016-11-23 Pedro Alves <palves@redhat.com>
7354
7355 * event-loop.c (handle_file_event): Use warning.
7356 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7357 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7358 Use warning.
7359
4eefa7bc
PA
73602016-11-23 Pedro Alves <palves@redhat.com>
7361
7362 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7363 output.
7364 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7365 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7366 debug_printf and debug_flush for debug output.
7367 * server.c (handle_general_set): Likewise.
7368 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7369 output.
7370
5443506e
SM
73712016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7372
7373 * Makefile.in (.c.o): Replace rule with ...
7374 (%.o: %.c): ... this one.
7375
3b165252
SM
73762016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7377
7378 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7379 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7380 make.
7381 * configure.ac: Remove checks for the make program.
7382 * configure: Re-generate.
7383
0bcda685
PA
73842016-10-28 Pedro Alves <palves@redhat.com>
7385
7386 * Makefile.in (CXX_DIALECT): Get from configure.
7387 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7388 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7389 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7390 * config.in: Regenerate.
7391 * configure: Regenerate.
7392
c3805894
YQ
73932016-10-27 Yao Qi <yao.qi@linaro.org>
7394
7395 * linux-low.c (linux_supports_range_stepping): Return true if
7396 can_software_single_step return true.
7397
89342618
YQ
73982016-10-27 Yao Qi <yao.qi@linaro.org>
7399
7400 * inferiors.c (find_inferior_in_random): New function.
7401 * inferiors.h (find_inferior_in_random): Declare.
7402 * linux-low.c (linux_wait_for_event_filtered): Call
7403 find_inferior_in_random instead of find_inferior.
7404
e3652c84
YQ
74052016-10-27 Yao Qi <yao.qi@linaro.org>
7406
7407 * linux-low.c (linux_wait_1): If single-step breakpoints are
7408 inserted, remove them.
7409
5a04c4cf
PA
74102016-10-26 Pedro Alves <palves@redhat.com>
7411
7412 * linux-low.c (handle_extended_wait): Link parent/child fork
7413 threads.
7414 (linux_wait_1): Unlink them.
7415 (linux_set_resume_request): Ignore resume requests for
7416 already-resumed and unhandled fork child threads.
7417 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7418 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7419 New functions.
7420 (handle_v_requests) <vCont>: Don't call require_running.
7421 * server.h (in_queued_stop_replies): New declaration.
7422
cb93dc7f
YQ
74232016-10-24 Yao Qi <yao.qi@linaro.org>
7424
7425 PR server/20733
7426 * linux-aarch64-low.c (append_insns): Cast the return value to
7427 'uint32_t *'.
7428
a1078bea
YQ
74292016-10-10 Yao Qi <yao.qi@linaro.org>
7430
7431 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7432
1fb77080
SDJ
74332016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7434
7435 * target.c (target_supports_multi_process): New function, moved
7436 from...
7437 * target.h (target_supports_multi_process): ... here. Remove
7438 macro.
7439
39b5a3b9
TT
74402016-10-05 Tom Tromey <tom@tromey.com>
7441
7442 PR remote/20655:
7443 * tracepoint.c (handle_tracepoint_bkpts): Check
7444 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7445
c1d0b70a
YQ
74462016-10-05 Yao Qi <yao.qi@linaro.org>
7447
7448 * configure.srv: Update the path of arm-*.xml files.
7449
0a69eedb
YQ
74502016-10-05 Terry Guo <terry.guo@arm.com>
7451 Yao Qi <yao.qi@linaro.org>
7452
7453 * Makefile.in: Adjust the path of rules.
7454 * configure.srv: Update the path of xml files.
7455 * regformats/arm-with-iwmmxt.dat: Regenerated.
7456 * regformats/arm-with-neon.dat: Likewise.
7457 * regformats/arm-with-vfpv2.dat: Likewise.
7458 * regformats/arm-with-vfpv3.dat Likewise.
7459
17e16485
YQ
74602016-09-30 Yao Qi <yao.qi@linaro.org>
7461
7462 PR gdbserver/20627
7463 * target.c (target_stop_and_wait): Don't call
7464 target_continue_no_signal, use resume_stop instead.
7465
edeeb602
YQ
74662016-09-26 Yao Qi <yao.qi@linaro.org>
7467
7468 * linux-low.c (linux_wait_1): Call debug_exit.
7469
503b1c39
PA
74702016-09-23 Pedro Alves <palves@redhat.com>
7471
7472 * Makefile.in (SFILES): Add common/new-op.c.
7473 (OBS): Add common/new-op.o.
7474 (new-op.o): New rule.
7475
74172ecf
SM
74762016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7477
7478 * .gitinore: Ignore more files.
7479
fc6cda2e
YQ
74802016-09-21 Yao Qi <yao.qi@linaro.org>
7481
7482 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7483 23.
7484
bc1e6c81
SDJ
74852016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7486
7487 * server.c (start_inferior): Call target_mourn_inferior instead of
7488 mourn_inferior; pass ptid_t argument to it.
7489 (resume): Likewise.
7490 (handle_target_event): Likewise.
7491 * target.c (target_mourn_inferior): New function.
7492 * target.h (mourn_inferior): Delete macro.
7493
0e00e962
AA
74942016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7495
7496 * linux-low.c (lwp_is_stepping): New function.
7497
1d8cb77d
CL
74982016-09-06 Carl Love <cel@us.ibm.com>
7499
7500 * server.c (start_inferior): Fixed comment, requested comment change
7501 didn't get updated correctly. Removed reference to ptrace () call as
7502 it is only true on Linux systems.
7503
7313bced
CL
75042016-09-06 Carl Love <cel@us.ibm.com>
7505
7506 * server.c (start_inferior): Do not call
7507 function target_post_create_inferior () if the
7508 inferior process has already exited.
7509
cf6de44d
PA
75102016-09-05 Pedro Alves <palves@redhat.com>
7511
7512 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7513 (COMPILE.pre, CC_LD): Use CXX directly.
7514 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7515 * acinclude.m4: Don't include build-with-cxx.m4.
7516 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7517 * configure: Regenerate.
7518
c1da6748
AT
75192016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7520
7521 PR gdb/19495
7522 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7523 call writing data to own_buf.
7524
f2b9e3df
SDJ
75252016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7526
7527 * target.c (mywait): Call target_wait instead of
7528 the_target->wait.
7529 (target_wait): New function.
7530
049a8570
SDJ
75312016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7532
7533 * server.c (start_inferior): New variable 'ptid'. Replace calls
7534 to the_target->resume by target_continue{,_no_signal}, depending
7535 on the case.
7536 * target.c (target_stop_and_wait): Call target_continue_no_signal
7537 instead of the_target->resume.
7538 (target_continue): New function.
7539
3aa5cfa0
AT
75402016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7541
7542 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7543
754653a7
AZ
75442016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7545
7546 PR server/20491
7547 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7548 ps_prochandle.
7549 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7550 * linux-arm-low.c (ps_get_thread_area): Likewise.
7551 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7552 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7553 * linux-mips-low.c (ps_get_thread_area): Likewise.
7554 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7555 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7556 * linux-x86-low.c (ps_get_thread_area): Likewise.
7557 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7558
ed036b40
PA
75592016-08-19 Pedro Alves <palves@redhat.com>
7560
7561 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7562
c8ef42ee
PA
75632016-08-19 Pedro Alves <palves@redhat.com>
7564
7565 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7566 comment. Use memcpy instead of casting through unsigned long.
7567
9c235a72
PA
75682016-08-19 Pedro Alves <palves@redhat.com>
7569
7570 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7571 allocating around 0x80000000.
7572
201506da
PA
75732016-08-19 Pedro Alves <palves@redhat.com>
7574
7575 PR gdb/20415
7576 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7577 (x32-avx512-linux-ipa.o): New rules.
7578 * configure.ac (x86_64-*-linux*): New x32 check.
7579 * configure.srv (ipa_x32_linux_regobj): New.
7580 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7581 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7582 descriptions.
7583 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7584 descriptions.
7585 * configure: Regenerate.
7586
f348d89a
PA
75872016-08-09 Pedro Alves <palves@redhat.com>
7588
7589 PR gdb/18653
7590 * Makefile.in (OBS): Add signals-state-save-restore.o.
7591 (signals-state-save-restore.o): New rule.
7592 * config.in: Regenerate.
7593 * configure: Regenerate.
7594 * linux-low.c: Include "signals-state-save-restore.h".
7595 (linux_create_inferior): Call
7596 restore_original_signals_state.
7597 * server.c: Include "dispositions-save-restore.h".
7598 (captured_main): Call save_original_signals_state.
7599
1baf5149
PA
76002016-08-05 Pedro Alves <palves@redhat.com>
7601
7602 * configure: Regenerate.
7603
fcd4a73d
YQ
76042016-08-04 Yao Qi <yao.qi@linaro.org>
7605
7606 * linux-low.c (regsets_fetch_inferior_registers): Check
7607 errno is ESRCH or not.
7608
979659d0
YQ
76092016-08-02 Yao Qi <yao.qi@linaro.org>
7610
7611 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7612 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7613 (thread_db_load_search): Update.
7614 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7615 td_ta_set_event and td_ta_event_getmsg.
7616
6598661d
PA
76172016-07-26 Pedro Alves <palves@redhat.com>
7618
7619 PR server/20414
7620 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7621 of unsigned long for 64-bit registers and use uint32_t instead of
7622 unsigned int for 32-bit registers.
7623
9cf12d57
PA
76242016-07-26 Pedro Alves <palves@redhat.com>
7625
7626 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7627 to 'ptrace'.
7628
305450ed
TT
76292016-07-21 Tom Tromey <tom@tromey.com>
7630
7631 * configure: Rebuild.
7632
2583da7c
YQ
76332016-07-21 Yao Qi <yao.qi@linaro.org>
7634
7635 * mem-break.c (find_gdb_breakpoint): Cast bp to
7636 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7637
21536b36
YQ
76382016-07-21 Yao Qi <yao.qi@linaro.org>
7639
7640 * server.c (handle_v_requests): Support s and S actions
7641 if target_supports_software_single_step return true.
7642
8901d193
YQ
76432016-07-21 Yao Qi <yao.qi@linaro.org>
7644
7645 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7646 is resume_step, call maybe_hw_step.
7647 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7648 and unstop them.
7649 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7650 breakpoints or not.
7651 (proceed_one_lwp): If resume request is resume_step, install
7652 reinsert breakpoints and call maybe_hw_step.
7653
0e9a339e
YQ
76542016-07-21 Yao Qi <yao.qi@linaro.org>
7655
7656 * linux-low.c (proceed_one_lwp): Declare.
7657 (linux_resume_one_thread): Remove local variable 'step'.
7658 Lift code enqueue signal. Call proceed_one_lwp instead of
7659 linux_resume_one_lwp.
7660
4281b351
YQ
76612016-07-21 Yao Qi <yao.qi@linaro.org>
7662
7663 * linux-low.c (linux_resume_one_thread): Call
7664 enqueue_pending_signal.
7665
984a2c04
YQ
76662016-07-21 Yao Qi <yao.qi@linaro.org>
7667
7668 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7669 * inferiors.c (do_restore_current_thread_cleanup): New function.
7670 (make_cleanup_restore_current_thread): Likewise.
7671 * linux-low.c (install_software_single_step_breakpoints): Call
7672 make_cleanup_restore_current_thread. Switch current_thread to
7673 thread.
7674
bec903c9
YQ
76752016-07-21 Yao Qi <yao.qi@linaro.org>
7676
7677 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7678 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7679 (clone_one_breakpoint): Likewise.
7680 (delete_reinsert_breakpoints): Change parameter to thread.
7681 Callers updated.
7682 (has_reinsert_breakpoints): Likewise.
7683 (uninsert_reinsert_breakpoints): Likewise.
7684 (reinsert_reinsert_breakpoints): Likewise.
7685 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7686 (delete_reinsert_breakpoints): Likewise.
7687 (reinsert_reinsert_breakpoints): Likewise.
7688 (uninsert_reinsert_breakpoints): Likewise.
7689 (has_reinsert_breakpoints): Likewise.
7690
63c40ec7
YQ
76912016-07-21 Yao Qi <yao.qi@linaro.org>
7692
7693 * inferiors.c (get_thread_process): Make parameter const.
7694 * inferiors.h (get_thread_process): Update declaration.
7695 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7696 Add new parameters child_thread and parent_thread. Callers
7697 updated.
7698 * mem-break.h (clone_all_breakpoints): Update declaration.
7699
9aa76cd0
YQ
77002016-07-21 Yao Qi <yao.qi@linaro.org>
7701
7702 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7703 <command_list, handler>: Remove.
7704 (struct gdb_breakpoint): New.
7705 (struct other_breakpoint): New.
7706 (struct reinsert_breakpoint): New.
7707 (is_gdb_breakpoint): New function.
7708 (any_persistent_commands): Update command_list if
7709 is_gdb_breakpoint returns true.
7710 (set_breakpoint): Create breakpoints according to their types.
7711 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7712 (set_gdb_breakpoint_1): Likewise.
7713 (set_gdb_breakpoint): Likewise.
7714 (clear_breakpoint_conditions): Change parameter type to
7715 'struct gdb_breakpoint *'.
7716 (clear_breakpoint_commands): Likewise.
7717 (clear_breakpoint_conditions_and_commands): Likewise.
7718 (add_condition_to_breakpoint): Likewise.
7719 (add_breakpoint_condition): Likewise.
7720 (add_commands_to_breakpoint): Likewise.
7721 (check_breakpoints): Check other_breakpoint.
7722 (clone_one_breakpoint): Clone breakpopint according to its type.
7723 * mem-break.h (struct gdb_breakpoint): Declare.
7724 (set_gdb_breakpoint): Update declaration.
7725 (clear_breakpoint_conditions_and_commands): Likewise.
7726 (add_breakpoint_condition): Likewise.
7727 (add_breakpoint_commands): Likewise.
7728 * server.c (process_point_options): Change parameter type to
7729 'struct gdb_breakpoint *'.
7730
811f8301
YQ
77312016-07-21 Yao Qi <yao.qi@linaro.org>
7732
7733 * mem-break.c (set_breakpoint_at): Rename it to ...
7734 (set_breakpoint_type_at): ... it.
7735 (set_breakpoint_at): Call set_breakpoint_type_at.
7736 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7737 * mem-break.h (set_breakpoint_at): Update comments.
7738
b1c51e36
CLT
77392016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7740
7741 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7742 to buf parameter.
7743 (nios2_store_gregset): Likewise.
7744
ced2dffb
PA
77452016-07-01 Pedro Alves <palves@redhat.com>
7746 Antoine Tremblay <antoine.tremblay@ericsson.com>
7747
7748 * linux-low.c: Change interface to take the target lwp_info
7749 pointer directly and return void. Handle detaching from a zombie
7750 thread.
7751 (linux_detach_lwp_callback): New function.
7752 (linux_detach): Detach from the leader thread after detaching from
7753 the clone threads.
7754
2ac09a5b
YQ
77552016-06-28 Yao Qi <yao.qi@linaro.org>
7756
7757 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7758 for variable new_offset.
7759 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7760 (aarch64_ftrace_insn_reloc_cb): Likewise.
7761 (aarch64_ftrace_insn_reloc_tb): Likewise.
7762 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7763 PRIx64 instead of PRIx32.
7764
79e7fd4f
YQ
77652016-06-28 Yao Qi <yao.qi@linaro.org>
7766
7767 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7768 (the_low_target): Install arm_get_syscall_trapinfo.
7769
061fc021
YQ
77702016-06-28 Yao Qi <yao.qi@linaro.org>
7771
7772 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7773 function.
7774 (the_low_target): Install aarch64_get_syscall_trapinfo.
7775
4cc32bec
YQ
77762016-06-28 Yao Qi <yao.qi@linaro.org>
7777
7778 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7779 Callers updated.
7780 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7781 Remove parameter sysno.
7782 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7783 sysret.
7784
782c1122
AA
77852016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7786
7787 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7788 (s390_emit_ne_goto): Likewise.
7789 (s390_emit_lt_goto): Likewise.
7790 (s390_emit_le_goto): Likewise.
7791 (s390_emit_gt_goto): Likewise.
7792 (s390_emit_ge_goto): Likewise.
7793 (s390x_emit_eq_goto): Likewise.
7794 (s390x_emit_ne_goto): Likewise.
7795 (s390x_emit_lt_goto): Likewise.
7796 (s390x_emit_le_goto): Likewise.
7797 (s390x_emit_gt_goto): Likewise.
7798 (s390x_emit_ge_goto): Likewise.
7799 (s390_emit_ops_impl): Mark variable static.
7800 (s390x_emit_ops): Likewise.
7801
2e7b624b
YQ
78022016-06-17 Yao Qi <yao.qi@linaro.org>
7803
7804 * linux-low.c (handle_extended_wait): Call
7805 uninsert_reinsert_breakpoints for the parent process. Remove
7806 reinsert breakpoints from the child process. Reinsert them to
7807 the parent process when vfork is done.
7808 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7809 (reinsert_reinsert_breakpoints): New function.
7810 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7811 (reinsert_reinsert_breakpoints): Declare.
7812
8a81c5d7
YQ
78132016-06-17 Yao Qi <yao.qi@linaro.org>
7814
7815 * linux-low.c (handle_extended_wait): If the parent is doing
7816 step-over, remove the reinsert breakpoints from the forked child.
7817
f50bf8e5
YQ
78182016-06-17 Yao Qi <yao.qi@linaro.org>
7819
7820 * linux-low.c (unsuspend_all_lwps): Declare.
7821 (linux_low_filter_event): If thread exited, call finish_step_over.
7822 If step-over is finished, unsuspend other threads.
7823
8376a3cb
YQ
78242016-06-17 Yao Qi <yao.qi@linaro.org>
7825
7826 * linux-low.c (linux_resume_one_lwp_throw): Assert
7827 has_reinsert_breakpoints returns false.
7828 * mem-break.c (delete_disabled_breakpoints): Assert
7829 bp type isn't reinsert_breakpoint.
7830
f79b145d
YQ
78312016-06-17 Yao Qi <yao.qi@linaro.org>
7832
7833 * linux-low.c (maybe_hw_step): New function.
7834 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7835 (finish_step_over): Switch current_thread to lwp temporarily,
7836 and assert has_reinsert_breakpoints returns true.
7837 (proceed_one_lwp): Call maybe_hw_step.
7838 * mem-break.c (has_reinsert_breakpoints): New function.
7839 * mem-break.h (has_reinsert_breakpoints): Declare.
7840
0ae534d2
JT
78412016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7842
7843 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7844
fcdad592
YQ
78452016-05-17 Yao Qi <yao.qi@linaro.org>
7846
7847 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7848 instead of find_inferior.
7849
9e784964
YQ
78502016-05-05 Yao Qi <yao.qi@linaro.org>
7851
7852 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7853 Initialize res to zero.
7854
cf2ebb6e
YQ
78552016-05-05 Yao Qi <yao.qi@linaro.org>
7856
7857 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7858 to uint32_t.
7859
c1aebf87
UW
78602016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7861
7862 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7863 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7864 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7865
35fd2deb 78662016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 7867 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
7868
7869 * tracepoint.c (write_inferior_int8): New function.
7870 (cmd_qtenable_disable): Write enable flag using
7871 write_inferior_int8.
7872
484b3c32
YQ
78732016-04-25 Yao Qi <yao.qi@linaro.org>
7874
7875 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7876 (need_step_over_p): Return zero if the LWP has pending signals
7877 can be delivered on software single step target.
7878
85ba7d86
YQ
78792016-04-25 Yao Qi <yao.qi@linaro.org>
7880
7881 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7882 return instead of error.
7883
3539aa13
YQ
78842016-04-22 Yao Qi <yao.qi@linaro.org>
7885
7886 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7887 to 23.
7888
5b061e98
YQ
78892016-04-22 Yao Qi <yao.qi@linaro.org>
7890
7891 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7892 signal when stepping over breakpoint with software single
7893 step.
7894
3451269c
PA
78952016-04-21 Pedro Alves <palves@redhat.com>
7896
7897 * linux-s390-low.c (s390_collect_ptrace_register)
7898 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7899 add casts.
7900 (s390_check_regset): Use void * instead of gdb_byte *.
7901
a2358508
PA
79022016-04-20 Pedro Alves <palves@redhat.com>
7903
7904 * configure: Renegerate.
7905
6885166d
YQ
79062016-04-20 Yao Qi <yao.qi@linaro.org>
7907
7908 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7909 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7910 number 16.
7911 (arm_store_gregset): Likewise.
7912
2b863f51
WT
79132016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7914
7915 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7916 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7917 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7918 (amd64-avx-mpx-linux.c): New rules.
7919 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7920 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7921 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7922 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7923 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7924 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7925 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7926 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7927 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7928 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7929 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7930 * linux-x86-low.c (x86_linux_read_description): Add case for
7931 X86_XSTATE_AVX_MPX_MASK.
7932 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7933 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7934 init_registers_i386_avx_mpx_linux.
7935 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7936 (initialize_low_tracepoint): Call
7937 init_registers_i386_avx_mpx_linux.
7938 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7939 (initialize_low_tracepoint): Call
7940 init_registers_amd64_avx_mpx_linux.
7941 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7942 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7943 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7944 declarations.
7945
9b30624b
PA
79462016-04-18 Pedro Alves <palves@redhat.com>
7947
7948 * configure: Regenerate.
7949
45e3745e
AT
79502016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7951
7952 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7953 (aarch64_emit_sub): Likewise.
7954
2afc13ff
PA
79552016-04-12 Pedro Alves <palves@redhat.com>
7956
7957 * utils.c (prepare_to_throw_exception): Delete.
7958
6e774b13
SM
79592016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7960
7961 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7962
4dca19f8
MK
79632016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7964
7965 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7966
d0a9981f
MK
79672016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
7968
7969 * linux-aarch64-ipa.c: Add <elf.h> include.
7970 * linux-ppc-ipa.c: Add <elf.h> include.
7971 * linux-s390-ipa.c: Add <elf.h> include.
7972
252db07e
MK
79732016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7974
7975 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
7976 (get_raw_reg_ptr): Likewise.
7977 (get_trace_state_variable_value_ptr): Likewise.
7978 (set_trace_state_variable_value_ptr): Likewise.
7979 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
7980 char *.
7981
14e2b6d9
MK
79822016-03-31 Wei-cheng Wang <cole945@gmail.com>
7983 Marcin Kościelnicki <koriakin@0x04.net>
7984
7985 PR/17221
7986 * linux-ppc-low.c (emit_insns): New function.
7987 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
7988 (ppc_emit_prologue): New function.
7989 (ppc_emit_epilogue): New function.
7990 (ppc_emit_add): New function.
7991 (ppc_emit_sub): New function.
7992 (ppc_emit_mul): New function.
7993 (ppc_emit_lsh): New function.
7994 (ppc_emit_rsh_signed): New function.
7995 (ppc_emit_rsh_unsigned): New function.
7996 (ppc_emit_ext): New function.
7997 (ppc_emit_zero_ext): New function.
7998 (ppc_emit_log_not): New function.
7999 (ppc_emit_bit_and): New function.
8000 (ppc_emit_bit_or): New function.
8001 (ppc_emit_bit_xor): New function.
8002 (ppc_emit_bit_not): New function.
8003 (ppc_emit_equal): New function.
8004 (ppc_emit_less_signed): New function.
8005 (ppc_emit_less_unsigned): New function.
8006 (ppc_emit_ref): New function.
8007 (ppc_emit_const): New function.
8008 (ppc_emit_reg): New function.
8009 (ppc_emit_pop): New function.
8010 (ppc_emit_stack_flush): New function.
8011 (ppc_emit_swap): New function.
8012 (ppc_emit_stack_adjust): New function.
8013 (ppc_emit_call): New function.
8014 (ppc_emit_int_call_1): New function.
8015 (ppc_emit_void_call_2): New function.
8016 (ppc_emit_if_goto): New function.
8017 (ppc_emit_goto): New function.
8018 (ppc_emit_eq_goto): New function.
8019 (ppc_emit_ne_goto): New function.
8020 (ppc_emit_lt_goto): New function.
8021 (ppc_emit_le_goto): New function.
8022 (ppc_emit_gt_goto): New function.
8023 (ppc_emit_ge_goto): New function.
8024 (ppc_write_goto_address): New function.
8025 (ppc_emit_ops_impl): New static variable.
8026 (ppc64v1_emit_prologue): New function.
8027 (ppc64v2_emit_prologue): New function.
8028 (ppc64_emit_epilogue): New function.
8029 (ppc64_emit_add): New function.
8030 (ppc64_emit_sub): New function.
8031 (ppc64_emit_mul): New function.
8032 (ppc64_emit_lsh): New function.
8033 (ppc64_emit_rsh_signed): New function.
8034 (ppc64_emit_rsh_unsigned): New function.
8035 (ppc64_emit_ext): New function.
8036 (ppc64_emit_zero_ext): New function.
8037 (ppc64_emit_log_not): New function.
8038 (ppc64_emit_bit_and): New function.
8039 (ppc64_emit_bit_or): New function.
8040 (ppc64_emit_bit_xor): New function.
8041 (ppc64_emit_bit_not): New function.
8042 (ppc64_emit_equal): New function.
8043 (ppc64_emit_less_signed): New function.
8044 (ppc64_emit_less_unsigned): New function.
8045 (ppc64_emit_ref): New function.
8046 (ppc64_emit_const): New function.
8047 (ppc64v1_emit_reg): New function.
8048 (ppc64v2_emit_reg): New function.
8049 (ppc64_emit_pop): New function.
8050 (ppc64_emit_stack_flush): New function.
8051 (ppc64_emit_swap): New function.
8052 (ppc64v1_emit_call): New function.
8053 (ppc64v2_emit_call): New function.
8054 (ppc64v1_emit_int_call_1): New function.
8055 (ppc64v2_emit_int_call_1): New function.
8056 (ppc64v1_emit_void_call_2): New function.
8057 (ppc64v2_emit_void_call_2): New function.
8058 (ppc64_emit_if_goto): New function.
8059 (ppc64_emit_eq_goto): New function.
8060 (ppc64_emit_ne_goto): New function.
8061 (ppc64_emit_lt_goto): New function.
8062 (ppc64_emit_le_goto): New function.
8063 (ppc64_emit_gt_goto): New function.
8064 (ppc64_emit_ge_goto): New function.
8065 (ppc64v1_emit_ops_impl): New static variable.
8066 (ppc64v2_emit_ops_impl): New static variable.
8067 (ppc_emit_ops): New function.
8068 (linux_low_target): Wire in ppc_emit_ops.
8069
a2174ba4
MK
80702016-03-31 Wei-cheng Wang <cole945@gmail.com>
8071 Marcin Kościelnicki <koriakin@0x04.net>
8072
8073 PR/17221
8074 * Makefile.in: Add powerpc-*-ipa.o
8075 * configure.srv: Add ipa_obj for powerpc*-linux.
8076 * linux-ppc-ipa.c: New file.
8077 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8078 includes.
8079 (PPC_FIELD): New macro.
8080 (PPC_SEXT): New macro.
8081 (PPC_OP6): New macro.
8082 (PPC_BO): New macro.
8083 (PPC_LI): New macro.
8084 (PPC_BD): New macro.
8085 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8086 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8087 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8088 (ppc_get_thread_area): New function.
8089 (is_elfv2_inferior): New function.
8090 (gen_ds_form): New function.
8091 (GEN_STD): New macro.
8092 (GEN_STDU): New macro.
8093 (GEN_LD): New macro.
8094 (GEN_LDU): New macro.
8095 (gen_d_form): New function.
8096 (GEN_ADDI): New macro.
8097 (GEN_ADDIS): New macro.
8098 (GEN_LI): New macro.
8099 (GEN_LIS): New macro.
8100 (GEN_ORI): New macro.
8101 (GEN_ORIS): New macro.
8102 (GEN_LWZ): New macro.
8103 (GEN_STW): New macro.
8104 (GEN_STWU): New macro.
8105 (gen_xfx_form): New function.
8106 (GEN_MFSPR): New macro.
8107 (GEN_MTSPR): New macro.
8108 (GEN_MFCR): New macro.
8109 (GEN_MTCR): New macro.
8110 (GEN_SYNC): New macro.
8111 (GEN_LWSYNC): New macro.
8112 (gen_x_form): New function.
8113 (GEN_OR): New macro.
8114 (GEN_MR): New macro.
8115 (GEN_LWARX): New macro.
8116 (GEN_STWCX): New macro.
8117 (GEN_CMPW): New macro.
8118 (gen_md_form): New function.
8119 (GEN_RLDICL): New macro.
8120 (GEN_RLDICR): New macro.
8121 (gen_i_form): New function.
8122 (GEN_B): New macro.
8123 (GEN_BL): New macro.
8124 (gen_b_form): New function.
8125 (GEN_BNE): New macro.
8126 (GEN_LOAD): New macro.
8127 (GEN_STORE): New macro.
8128 (gen_limm): New function.
8129 (gen_atomic_xchg): New function.
8130 (gen_call): New function.
8131 (ppc_relocate_instruction): New function.
8132 (ppc_install_fast_tracepoint_jump_pad): New function.
8133 (ppc_get_min_fast_tracepoint_insn_len): New function.
8134 (ppc_get_ipa_tdesc_idx): New function.
8135 (the_low_target): Wire in the new functions.
8136 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8137 tdescs.
8138 * linux-ppc-tdesc.h: New file.
8139
a13c4696
MK
81402016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8141
8142 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8143 (alloc_jump_pad_buffer): New function.
8144 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8145 (alloc_jump_pad_buffer): New function.
8146 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8147 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8148 (alloc_jump_pad_buffer): New function.
8149 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8150 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8151 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8152 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8153
1cda1512
MK
81542016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8155
8156 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8157 * linux-amd64-ipa.c: Likewise.
8158 * linux-i386-ipa.c: Likewise.
8159 * linux-s390-ipa.c: Likewise.
8160 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8161 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8162 set_trace_state_variable_value_ptr.
8163 (struct ipa_sym_addresses): Likewise.
8164 (symbol_list): Likewise.
8165 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8166 accessing gdb_collect directly.
8167 (gdb_collect_ptr_type): New typedef.
8168 (get_raw_reg_ptr_type): New typedef.
8169 (get_trace_state_variable_value_ptr_type): New typedef.
8170 (set_trace_state_variable_value_ptr_type): New typedef.
8171 (gdb_collect_ptr): New global.
8172 (get_raw_reg_ptr): New global.
8173 (get_trace_state_variable_value_ptr): New global.
8174 (set_trace_state_variable_value_ptr): New global.
8175 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8176 accessing get_raw_reg directly.
8177 (get_get_tsv_func_addr): Likewise for
8178 get_trace_state_variable_value_ptr.
8179 (get_set_tsv_func_addr): Likewise for
8180 set_trace_state_variable_value_ptr.
8181 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8182
72fb5488
SM
81832016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8184
8185 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8186
28170b88
MK
81872016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8188
8189 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8190 packets.
8191 (relocate_instruction): Remove own_buf.
8192 * server.c (own_buf): Make global.
8193 (handle_v_requests): Make global.
8194 * server.h (own_buf): New declaration.
8195 (handle_v_requests): New prototype.
8196
f39e8743
MK
81972016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8198
8199 PR 18377
8200 * linux-s390-low.c (add_insns): New function.
8201 (s390_emit_prologue): New function.
8202 (s390_emit_epilogue): New function.
8203 (s390_emit_add): New function.
8204 (s390_emit_sub): New function.
8205 (s390_emit_mul): New function.
8206 (s390_emit_lsh): New function.
8207 (s390_emit_rsh_signed): New function.
8208 (s390_emit_rsh_unsigned): New function.
8209 (s390_emit_ext): New function.
8210 (s390_emit_log_not): New function.
8211 (s390_emit_bit_and): New function.
8212 (s390_emit_bit_or): New function.
8213 (s390_emit_bit_xor): New function.
8214 (s390_emit_bit_not): New function.
8215 (s390_emit_equal): New function.
8216 (s390_emit_less_signed): New function.
8217 (s390_emit_less_unsigned): New function.
8218 (s390_emit_ref): New function.
8219 (s390_emit_if_goto): New function.
8220 (s390_emit_goto): New function.
8221 (s390_write_goto_address): New function.
8222 (s390_emit_litpool): New function.
8223 (s390_emit_const): New function.
8224 (s390_emit_call): New function.
8225 (s390_emit_reg): New function.
8226 (s390_emit_pop): New function.
8227 (s390_emit_stack_flush): New function.
8228 (s390_emit_zero_ext): New function.
8229 (s390_emit_swap): New function.
8230 (s390_emit_stack_adjust): New function.
8231 (s390_emit_set_r2): New function.
8232 (s390_emit_int_call_1): New function.
8233 (s390_emit_void_call_2): New function.
8234 (s390_emit_eq_goto): New function.
8235 (s390_emit_ne_goto): New function.
8236 (s390_emit_lt_goto): New function.
8237 (s390_emit_le_goto): New function.
8238 (s390_emit_gt_goto): New function.
8239 (s390_emit_ge_goto): New function.
8240 (s390x_emit_prologue): New function.
8241 (s390x_emit_epilogue): New function.
8242 (s390x_emit_add): New function.
8243 (s390x_emit_sub): New function.
8244 (s390x_emit_mul): New function.
8245 (s390x_emit_lsh): New function.
8246 (s390x_emit_rsh_signed): New function.
8247 (s390x_emit_rsh_unsigned): New function.
8248 (s390x_emit_ext): New function.
8249 (s390x_emit_log_not): New function.
8250 (s390x_emit_bit_and): New function.
8251 (s390x_emit_bit_or): New function.
8252 (s390x_emit_bit_xor): New function.
8253 (s390x_emit_bit_not): New function.
8254 (s390x_emit_equal): New function.
8255 (s390x_emit_less_signed): New function.
8256 (s390x_emit_less_unsigned): New function.
8257 (s390x_emit_ref): New function.
8258 (s390x_emit_if_goto): New function.
8259 (s390x_emit_const): New function.
8260 (s390x_emit_call): New function.
8261 (s390x_emit_reg): New function.
8262 (s390x_emit_pop): New function.
8263 (s390x_emit_stack_flush): New function.
8264 (s390x_emit_zero_ext): New function.
8265 (s390x_emit_swap): New function.
8266 (s390x_emit_stack_adjust): New function.
8267 (s390x_emit_int_call_1): New function.
8268 (s390x_emit_void_call_2): New function.
8269 (s390x_emit_eq_goto): New function.
8270 (s390x_emit_ne_goto): New function.
8271 (s390x_emit_lt_goto): New function.
8272 (s390x_emit_le_goto): New function.
8273 (s390x_emit_gt_goto): New function.
8274 (s390x_emit_ge_goto): New function.
8275 (s390_emit_ops): New function.
8276 (struct linux_target_ops): Fill in emit_ops hook.
8277
abd9baf9
MK
82782016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8279
8280 PR 18377
8281 * Makefile.in: Add s390 IPA files.
8282 * configure.srv: Build IPA for s390.
8283 * linux-s390-ipa.c: New file.
8284 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8285 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8286 (tdesc_s390_linux32): Likewise.
8287 (init_registers_s390_linux32v1): Likewise.
8288 (tdesc_s390_linux32v1): Likewise.
8289 (init_registers_s390_linux32v2): Likewise.
8290 (tdesc_s390_linux32v2): Likewise.
8291 (init_registers_s390_linux64): Likewise.
8292 (tdesc_s390_linux64): Likewise.
8293 (init_registers_s390_linux64v1): Likewise.
8294 (tdesc_s390_linux64v1): Likewise.
8295 (init_registers_s390_linux64v2): Likewise.
8296 (tdesc_s390_linux64v2): Likewise.
8297 (init_registers_s390_te_linux64): Likewise.
8298 (tdesc_s390_te_linux64): Likewise.
8299 (init_registers_s390_vx_linux64): Likewise.
8300 (tdesc_s390_vx_linux64): Likewise.
8301 (init_registers_s390_tevx_linux64): Likewise.
8302 (tdesc_s390_tevx_linux64): Likewise.
8303 (init_registers_s390x_linux64): Likewise.
8304 (tdesc_s390x_linux64): Likewise.
8305 (init_registers_s390x_linux64v1): Likewise.
8306 (tdesc_s390x_linux64v1): Likewise.
8307 (init_registers_s390x_linux64v2): Likewise.
8308 (tdesc_s390x_linux64v2): Likewise.
8309 (init_registers_s390x_te_linux64): Likewise.
8310 (tdesc_s390x_te_linux64): Likewise.
8311 (init_registers_s390x_vx_linux64): Likewise.
8312 (tdesc_s390x_vx_linux64): Likewise.
8313 (init_registers_s390x_tevx_linux64): Likewise.
8314 (tdesc_s390x_tevx_linux64): Likewise.
8315 (have_hwcap_s390_vx): New static variable.
8316 (s390_arch_setup): Fill have_hwcap_s390_vx.
8317 (s390_get_thread_area): New function.
8318 (s390_ft_entry_gpr_esa): New const.
8319 (s390_ft_entry_gpr_zarch): New const.
8320 (s390_ft_entry_misc): New const.
8321 (s390_ft_entry_fr): New const.
8322 (s390_ft_entry_vr): New const.
8323 (s390_ft_main_31): New const.
8324 (s390_ft_main_64): New const.
8325 (s390_ft_exit_fr): New const.
8326 (s390_ft_exit_vr): New const.
8327 (s390_ft_exit_misc): New const.
8328 (s390_ft_exit_gpr_esa): New const.
8329 (s390_ft_exit_gpr_zarch): New const.
8330 (append_insns): New function.
8331 (s390_relocate_instruction): New function.
8332 (s390_install_fast_tracepoint_jump_pad): New function.
8333 (s390_get_min_fast_tracepoint_insn_len): New function.
8334 (s390_get_ipa_tdesc_idx): New function.
8335 (struct linux_target_ops): Wire in the above functions.
8336 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8337 * linux-s390-tdesc.h: New file.
8338
a4105d04
MK
83392016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8340
8341 * linux-s390-low.c (s390_supports_tracepoints): New function.
8342 (struct linux_target_ops): Fill supports_tracepoints hook.
8343
35ac8b3e
YQ
83442016-03-18 Yao Qi <yao.qi@linaro.org>
8345
8346 * linux-low.c (lwp_signal_can_be_delivered): New function.
8347 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8348
94610ec4
YQ
83492016-03-18 Yao Qi <yao.qi@linaro.org>
8350
8351 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8352 0 if signal is enqueued. Remove 'signal' from one debugging
8353 message. Move one debugging message to some lines below.
8354 Remove code setting 'signal' to 0.
8355
80aea927
YQ
83562016-03-18 Yao Qi <yao.qi@linaro.org>
8357
8358 * linux-low.c (linux_low_filter_event): Remove redundant
8359 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8360
b04fd3be
MK
83612016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8362
8363 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8364 (struct linux_target_ops): Wire in the above.
8365
c40c8d4b
YQ
83662016-03-03 Yao Qi <yao.qi@linaro.org>
8367
8368 * linux-low.c: Update comments to start_step_over.
8369
0f8288ae
YQ
83702016-03-03 Yao Qi <yao.qi@linaro.org>
8371
8372 PR server/19736
8373 * linux-low.c (handle_extended_wait): Set child suspended
8374 if event_lwp->bp_reinsert isn't zero.
8375
fdbd04a8
YQ
83762016-03-02 Yao Qi <yao.qi@linaro.org>
8377
8378 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8379 enqueue_pending_signal.
8380
6896a8fa
MK
83812016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8382
8383 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8384 is actually loaded.
8385
ab503087
MK
83862016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8387
8388 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8389 (s390_regmap_3264) [!__s390x__]: New global.
8390 (s390_collect_ptrace_register): Skip map entries containing -1.
8391 (s390_supply_ptrace_register): Ditto.
8392 (s390_fill_gprs_high): New function.
8393 (s390_store_gprs_high): New function.
8394 (s390_regsets): Add NT_S390_HIGH_GPRS.
8395 (s390_get_hwcap): Enable on 31-bit.
8396 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8397 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8398 Detect NT_S390_HIGH_GPRS.
8399 (s390_usrregs_info_3264): Enable on 31-bit.
8400 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8401 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8402
ae91f625
MK
84032016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8404
8405 PR gdb/13808
8406 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8407 * configure.srv: Ditto.
8408 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8409 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8410 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8411 (init_registers_amd64_linux): Remove prototype.
8412 (tdesc_amd64_linux): Remove declaration.
8413 (get_ipa_tdesc): New function.
8414 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8415 initialize remaining tdescs.
8416 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8417 (init_registers_i386_linux): Remove prototype.
8418 (tdesc_i386_linux): Remove declaration.
8419 (get_ipa_tdesc): New function.
8420 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8421 initialize remaining tdescs.
8422 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8423 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8424 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8425 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8426 (x86_get_ipa_tdesc_idx): New function.
8427 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8428 * linux-x86-tdesc.h: New file.
8429 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8430 (target_get_ipa_tdesc_idx): New macro.
8431 * tracepoint.c (ipa_tdesc_idx): New macro.
8432 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8433 (symbol_list): Add ipa_tdesc_idx.
8434 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8435 (ipa_tdesc): Remove.
8436 (ipa_tdesc_idx): New variable.
8437 (get_context_regcache): Use get_ipa_tdesc.
8438 (gdb_collect): Ditto.
8439 (gdb_probe): Ditto.
8440 * tracepoint.h (get_ipa_tdesc): New prototype.
8441 (ipa_tdesc): Remove.
8442
e7ad2f14
PA
84432016-02-24 Pedro Alves <palves@redhat.com>
8444
8445 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8446 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8447 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8448 Factor out common code between the USE_SIGTRAP_SIGINFO and
8449 !USE_SIGTRAP_SIGINFO blocks.
8450 (linux_low_filter_event): Call save_stop_reason instead of
8451 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8452 Update comments.
8453 (linux_wait_1): Update comments.
8454
657f9cde
WW
84552016-02-24 Wei-cheng Wang <cole945@gmail.com>
8456
8457 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8458 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8459 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8460 ppc_insert_point, ppc_remove_point.
8461
b00b61e1
MK
84622016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8463
8464 * linux-s390-low.c (s390_supports_z_point_type): New function.
8465 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8466
553cb527
YQ
84672016-02-16 Yao Qi <yao.qi@linaro.org>
8468
8469 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8470 PC. Get pc from regcache_read_pc.
8471
a5652c21
YQ
84722016-02-12 Yao Qi <yao.qi@linaro.org>
8473
8474 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8475 or linux_get_pc_32bit.
8476 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8477
ed443b61
YQ
84782016-02-12 Yao Qi <yao.qi@linaro.org>
8479
8480 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8481 arm_linux_get_next_pcs_fixup.
8482
020ecd38
MK
84832016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8484
8485 * tracepoint.c (x_tracepoint_action_download): Change
8486 write_inferior_data_ptr to write_inferior_data_pointer.
8487 (cmd_qtstart): Likewise.
8488 (write_inferior_data_ptr): Remove.
8489 (download_agent_expr): Change write_inferior_data_ptr to
8490 write_inferior_data_pointer.
8491 (download_tracepoint_1): Likewise.
8492 (download_tracepoint): Likewise.
8493 (download_trace_state_variables): Likewise.
8494
7cae9051
WW
84952016-02-11 Wei-cheng Wang <cole945@gmail.com>
8496 Marcin Kościelnicki <koriakin@0x04.net>
8497
8498 * tracepoint.c (struct tracepoint_action_ops): Remove.
8499 (struct tracepoint_action): Remove ops.
8500 (m_tracepoint_action_download, r_tracepoint_action_download)
8501 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8502 size and offset accordingly.
8503 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8504 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8505 (tracepoint_action_send, tracepoint_action_download): New functions.
8506 Helpers for trace action handlers.
8507 (add_tracepoint_action): Remove setup actions ops.
8508 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8509
9f6a71b4
YQ
85102016-02-10 Yao Qi <yao.qi@linaro.org>
8511
8512 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8513
1e94266c
SM
85142016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8515
8516 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8517 to AC_OUTPUT.
8518 * configure: Regenerate.
8519
8adce034
SM
85202016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8521
8522 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8523 void * to gdb_byte *.
8524 * linux-low.c (siginfo_fixup): Likewise.
8525 (linux_xfer_siginfo): Likewise.
8526 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8527 Likewise.
8528 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8529
93813b37
WT
85302016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8531
8532 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8533 to srv_tgtobj.
8534 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8535 to srv_tgtobj.
8536 * linux-x86-low.c [__x86_64__]: Include
8537 "nat/amd64-linux-siginfo.h".
8538 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8539 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8540 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8541 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8542 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8543 (cpt_si_fd, si_timerid, si_overrun): Move from
8544 nat/amd64-linux-siginfo.c.
8545 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8546
8424cc97
SM
85472016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8548
8549 * server.c (skip_to_semicolon): Remove.
8550 (process_point_options): Use strchrnul instead of
8551 skip_to_semicolon.
8552
4d18591b
YQ
85532016-01-26 Yao Qi <yao.qi@linaro.org>
8554
8555 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8556 * linux-low.c (install_software_single_step_breakpoints): Don't
8557 call regcache_read_pc.
8558 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8559 argument pc.
8560
d8020970
YQ
85612016-01-26 Yao Qi <yao.qi@linaro.org>
8562
8563 * linux-low.c (install_software_single_step_breakpoints): Call
8564 regcache_read_pc instead of get_pc.
8565
8b207339
YQ
85662016-01-26 Yao Qi <yao.qi@linaro.org>
8567
8568 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8569 (unblock_async_io): Rename to ...
8570 (block_unblock_async_io): ... it. New function.
8571 (enable_async_io): Don't install SIGIO handler. Unblock it
8572 instead.
8573 (disable_async_io): Don't ignore SIGIO. Block it instead.
8574 (initialize_async_io): Install SIGIO handler. Don't call
8575 unblock_async_io.
8576
18879fef
YQ
85772016-01-26 Yao Qi <yao.qi@linaro.org>
8578
8579 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8580 first character is '\003', call *the_target->request_interrupt.
8581
a0f8e08a
YQ
85822016-01-25 Yao Qi <yao.qi@linaro.org>
8583
8584 * remote-utils.c (new_thread_notify): Remove.
8585 (dead_thread_notify): Likewise.
8586 * remote-utils.h (new_thread_notify): Remove declaration.
8587 (dead_thread_notify): Likewise.
8588
cc5fd9ab
MK
85892016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8590
8591 * gdb.trace/pending.exp: Fix expected message on continue.
8592
99e8eb11
MK
85932016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8594
8595 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8596 it works properly on big-endian machines where sizeof (CORE_ADDR)
8597 != sizeof (void *).
8598
a994041d
PA
85992016-01-21 Pedro Alves <palves@redhat.com>
8600
8601 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8602 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8603 * configure: Regenerate.
8604
f7a6a40d
YQ
86052016-01-21 Yao Qi <yao.qi@linaro.org>
8606
8607 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8608 is_thumb and set it according to CPSR saved on the stack.
8609 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8610 arm_sigreturn_next_pc.
8611
6f69e520
YQ
86122016-01-18 Yao Qi <yao.qi@linaro.org>
8613
8614 * linux-low.c (linux_set_pc_64bit): New function.
8615 (linux_get_pc_64bit): New function.
8616 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8617 Declare.
8618 * linux-sparc-low.c (debug_threads): Remove declaration.
8619 (sparc_get_pc): Remove.
8620 (the_low_target): Use linux_get_pc_64bit instead of
8621 sparc_get_pc.
8622 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8623 (the_low_target): Use linux_get_pc_64bit and
8624 linux_set_pc_64bit.
8625
276d4552
YQ
86262016-01-18 Yao Qi <yao.qi@linaro.org>
8627
8628 * linux-arm-low.c (debug_threads): Remove declaration.
8629 (arm_get_pc, arm_set_pc): Remove.
8630 (the_low_target): Use linux_get_pc_32bit and
8631 linux_set_pc_32bit.
8632 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8633 (the_low_target): Use linux_get_pc_32bit and
8634 linux_set_pc_32bit.
8635 * linux-cris-low.c (debug_threads): Remove declaration.
8636 (cris_get_pc, cris_set_pc,): Remove.
8637 (the_low_target): Use linux_get_pc_32bit and
8638 linux_set_pc_32bit.
8639 * linux-crisv32-low.c (debug_threads): Remove declaration.
8640 (cris_get_pc, cris_set_pc): Remove.
8641 (the_low_target): Use linux_get_pc_32bit and
8642 linux_set_pc_32bit.
8643 * linux-low.c: Include inttypes.h.
8644 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8645 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8646 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8647 (the_low_target): Use linux_get_pc_32bit and
8648 linux_set_pc_32bit.
8649 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8650 (the_low_target): Use linux_get_pc_32bit and
8651 linux_set_pc_32bit.
8652 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8653 (the_low_target): Use linux_get_pc_32bit and
8654 linux_set_pc_32bit.
8655 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8656 (the_low_target): Use linux_get_pc_32bit and
8657 linux_set_pc_32bit.
8658 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8659 (the_low_target): Use linux_get_pc_32bit and
8660 linux_set_pc_32bit.
8661
eb0edac8
GB
86622016-01-18 Gary Benson <gbenson@redhat.com>
8663
8664 * configure.ac (AC_FUNC_FORK): New check.
8665 * config.in: Regenerate.
8666 * configure: Likewise.
8667
1b451dda
YQ
86682016-01-14 Yao Qi <yao.qi@linaro.org>
8669
8670 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8671 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8672 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8673 arm_get_next_pcs_ctor.
8674
82075af2
JS
86752016-01-12 Josh Stone <jistone@redhat.com>
8676 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8677
8678 * inferiors.h: Include "gdb_vecs.h".
8679 (struct process_info): Add syscalls_to_catch.
8680 * inferiors.c (remove_process): Free syscalls_to_catch.
8681 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8682 syscall_return stops.
8683 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8684 * server.c (handle_general_set): Handle QCatchSyscalls.
8685 (handle_query): Report support for QCatchSyscalls.
8686 * target.h (struct target_ops): Add supports_catch_syscall.
8687 (target_supports_catch_syscall): New macro.
8688 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8689 (struct lwp_info): Add syscall_state.
8690 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8691 Maintain syscall_state and syscalls_to_catch across exec.
8692 (get_syscall_trapinfo): New function, proxy to the_low_target.
8693 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8694 (linux_low_filter_event): Toggle syscall_state entry/return for
8695 syscall traps, and set it ignored for all others.
8696 (gdb_catching_syscalls_p): New function.
8697 (gdb_catch_this_syscall_p): New function.
8698 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8699 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8700 (linux_supports_catch_syscall): New function.
8701 (linux_target_ops): Install it.
8702 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8703 (the_low_target): Install it.
8704
8f13a3ce
MF
87052016-01-12 Mike Frysinger <vapier@gentoo.org>
8706
8707 * acinclude.m4: Include new ../warning.m4 file.
8708 * configure: Regenerated.
8709 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8710
5b3da067
MF
87112016-01-12 Mike Frysinger <vapier@gentoo.org>
8712
8713 * ax.c (is_goto_target): Mark static.
8714 * linux-low.c (register_addr): Likewise.
8715 (linux_fetch_registers, linux_store_registers): Likewise.
8716 * mem-break.c (any_persistent_commands): Fix old prototype.
8717 (add_commands_to_breakpoint): Mark static.
8718 * regcache.c (find_register_by_name): Delete unused func.
8719 * remote-utils.c (hex_or_minus_one): Mark static.
8720 * server.c (monitor_show_help): Mark static.
8721 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8722 handle_v_requests): Likewise.
8723
bc504a31
PA
87242016-01-12 Pedro Alves <palves@redhat.com>
8725
8726 Remove use of the registered trademark symbol throughout.
8727
5a0dd67a
YQ
87282016-01-08 Yao Qi <yao.qi@linaro.org>
8729
8730 * remote-utils.c (getpkt): If c is '\003', call target hook
8731 request_interrupt.
8732
b2ca446f
YQ
87332016-01-06 Yao Qi <yao.qi@linaro.org>
8734
8735 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8736 linux-aarch32-low.c.
8737 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8738 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8739 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8740 (thumb2_breakpoint): Declare.
8741 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8742 linux-aarch32-low.h.
8743 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8744 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8745 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8746
edd88788
JB
87472016-01-01 Joel Brobecker <brobecker@adacore.com>
8748
8749 * gdbreplay.c (gdbreplay_version): Change copyright year in
8750 version message.
8751 * server.c (gdbserver_version): Likewise.
8752
65da7f14
PP
87532015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8754
8755 * server.c (crc32_table): Delete.
8756 (crc32): Use libiberty's xcrc32 function.
8757
4abd5ed2
JB
87582015-12-22 Joel Brobecker <brobecker@adacore.com>
8759
8760 * lynx-low.c (lynx_delete_thread_callback): New function.
8761 (lynx_mourn): Properly delete our process and all of its
8762 threads. Remove call to clear_inferiors.
8763
0e50fe5c
JB
87642015-12-22 Joel Brobecker <brobecker@adacore.com>
8765
8766 * target.c (thread_search_callback): Add check that
8767 the thread_stopped target callback is not NULL before
8768 calling it.
8769
35adc03f
YQ
87702015-12-21 Yao Qi <yao.qi@linaro.org>
8771
8772 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8773 arm breakpoint.
8774
bd2b2909
AT
87752015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8776
8777 * server.c (handle_query): Call target_supports_software_single_step.
8778
7fe5e27e
AT
87792015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8780
8781 * linux-low.c (single_step): New function.
8782 (linux_resume_one_lwp_throw): Call single_step.
8783 (start_step_over): Likewise.
8784
d9311bfa
AT
87852015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8786
8787 * Makefile.in (SFILES): Append arch/arm-linux.c,
8788 arch/arm-get-next-pcs.c.
8789 (arm-linux.o): New rule.
8790 (arm-get-next-pcs.o): New rule.
8791 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8792 arm-linux.o.
8793 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8794 to linux-aarch32-low.c.
8795 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8796 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8797 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8798 (thumb2_breakpoint_len): Likewise.
8799 (arm_is_thumb_mode): Make non-static.
8800 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8801 from linux-aarch32-low.c.
8802 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8803 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8804 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8805 (thumb2_breakpoint_len): Likewise.
8806 (arm_is_thumb_mode): New declaration.
8807 * linux-arm-low.c: Include arch/arm-linux.h
8808 aarch/arm-get-next-pcs.h, sys/syscall.h.
8809 (get_next_pcs_ops): New struct.
8810 (get_next_pcs_addr_bits_remove): New function.
8811 (get_next_pcs_is_thumb): New function.
8812 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8813 (arm_sigreturn_next_pc): Likewise.
8814 (get_next_pcs_syscall_next_pc): Likewise.
8815 (arm_gdbserver_get_next_pcs): Likewise.
8816 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8817 Initialize.
8818 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8819 * server.h: Include gdb_vecs.h.
8820
68ce2059
AT
88212015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8822
8823 * Makefile.in (SFILES): Append common/common-regcache.c.
8824 (OBS): Append common-regcache.o.
8825 (common-regcache.o): New rule.
8826 * regcache.c (init_register_cache): Initialize cache to
8827 REG_UNAVAILABLE.
8828 (regcache_raw_read_unsigned): New function.
8829 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8830 register_status enum.
8831
fa5308bd
AT
88322015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8833
8834 * linux-aarch64-low.c (the_low_targets): Rename
8835 breakpoint_reinsert_addr to get_next_pcs.
8836 * linux-arm-low.c (the_low_targets): Likewise.
8837 * linux-bfin-low.c (the_low_targets): Likewise.
8838 * linux-cris-low.c (the_low_targets): Likewise.
8839 * linux-crisv32-low.c (the_low_targets): Likewise.
8840 * linux-low.c (can_software_single_step): Likewise.
8841 (install_software_single_step_breakpoints): New function.
8842 (start_step_over): Use install_software_single_step_breakpoints.
8843 * linux-low.h: New CORE_ADDR vector.
8844 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8845 get_next_pcs.
8846 * linux-mips-low.c (the_low_targets): Likewise.
8847 * linux-nios2-low.c (the_low_targets): Likewise.
8848 * linux-sparc-low.c (the_low_targets): Likewise.
8849
4a6ed09b
PA
88502015-12-17 Pedro Alves <palves@redhat.com>
8851
8852 * linux-low.c (linux_kill_one_lwp): Remove references to
8853 LinuxThreads.
8854 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8855 to 'kill'.
8856 (linux_init_signals): Delete.
8857 (initialize_low): Adjust.
8858 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8859
7544db95
PA
88602015-12-16 Pedro Alves <palves@redhat.com>
8861
8862 * configure.ac (compiler warning flags): When testing a
8863 -Wno-foo option, check whether -Wfoo works instead.
8864 * configure: Regenerate.
8865
8020350c
DB
88662015-12-11 Don Breazeal <donb@codesourcery.com>
8867
8868 * server.c (process_serial_event): Don't exit from gdbserver
8869 in remote mode if there are still active inferiors.
8870
db91f502
YQ
88712015-12-11 Yao Qi <yao.qi@linaro.org>
8872
8873 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8874 arm_breakpoint_at if the process is 32-bit.
8875
b37a6290
YQ
88762015-12-11 Yao Qi <yao.qi@linaro.org>
8877
8878 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8879 arm breakpoint.
8880
17b1509a
YQ
88812015-12-07 Yao Qi <yao.qi@linaro.org>
8882
8883 * configure.srv: Append arm.o to srv_tgtobj for
8884 aarch64*-*-linux* target.
8885 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8886 from linux-arm-low.c.
8887 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8888 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8889 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8890 (thumb2_breakpoint_len): Likewise.
8891 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8892 (arm_breakpoint_kinds): Likewise.
8893 (arm_breakpoint_kind_from_pc): Likewise.
8894 (arm_sw_breakpoint_from_kind): Likewise.
8895 (arm_breakpoint_kind_from_current_state): Likewise.
8896 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8897 (arm_sw_breakpoint_from_kind): Declare.
8898 (arm_breakpoint_kind_from_current_state): Declare.
8899 (arm_breakpoint_at): Declare.
8900 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8901 arm_sw_breakpoint_from_kind if process is 32-bit.
8902 (aarch64_breakpoint_kind_from_pc): New function.
8903 (aarch64_breakpoint_kind_from_current_state): New function.
8904 (the_low_target): Initialize fields breakpoint_kind_from_pc
8905 and breakpoint_kind_from_current_state.
8906 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8907 linux-aarch32-low.c.
8908 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8909 (arm_breakpoint, arm_breakpoint_len): Likewise.
8910 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8911 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8912 (arm_is_thumb_mode): Likewise.
8913 (arm_breakpoint_at): Likewise.
8914 (arm_breakpoint_kind_from_pc): Likewise.
8915 (arm_sw_breakpoint_from_kind): Likewise.
8916 (arm_breakpoint_kind_from_current_state): Likewise.
8917
8918 Revert:
8919 2015-08-04 Yao Qi <yao.qi@linaro.org>
8920
8921 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8922 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8923 * server.c (extended_protocol): Remove "static".
8924 * server.h (extended_protocol): Declare it.
8925
ece66d65
JS
89262015-12-04 Josh Stone <jistone@redhat.com>
8927
8928 * target.h (struct target_ops) <arch_setup>: Rename to ...
8929 (struct target_ops) <post_create_inferior>: ... this.
8930 (target_arch_setup): Rename to ...
8931 (target_post_create_inferior): ... this, calling post_create_inferior.
8932 * server.c (start_inferior): Update target_arch_setup calls to
8933 target_post_create_inferior.
8934 * linux-low.c (linux_low_ptrace_options): Forward declare.
8935 (linux_arch_setup): Update its comment for general use.
8936 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8937 (struct linux_target_ops): Use linux_post_create_inferior.
8938 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8939 to post_create_inferior.
8940 * nto-low.c (struct nto_target_ops): Likewise.
8941 * spu-low.c (struct spu_target_ops): Likewise.
8942 * win32-low.c (struct win32_target_ops): Likewise.
8943
e58c48b4
AT
89442015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8945
8946 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8947
fbec8956
AT
89482015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8949
8950 * linux-arm-low.c (arm_reinsert_addr): Remove function.
8951 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
8952 * linux-cris-low.c (cris_reinsert_addr> Remove function.
8953 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8954 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
8955 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8956 * linux-mips-low.c (mips_reinsert_addr): Remove function.
8957 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8958 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
8959 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8960 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
8961 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8962
9b4c5f87
AT
89632015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8964
8965 * linux-low.c (linux_look_up_symbols): Don't call
8966 linux_supports_traceclone.
8967 * linux-low.h (thread_db_init): Remove use_events argument.
8968 * thread-db.c (thread_db_use_event): Remove global variable.
8969 (struct thread_db) <td_thr_event_enable_p>: Remove field.
8970 (struct thread_db) <td_create_bp>: Remove field.
8971 (thread_db_create_event): Remove function.
8972 (thread_db_enable_reporting): Likewise.
8973 (find_one_thread): Don't check for thread_db_use_events.
8974 (attach_thread): Likewise.
8975 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
8976 (try_thread_db_load_1): Don't check for thread_db_use_events.
8977 (thread_db_init): Remove use_events argument and thread events
8978 handling.
8979 (remove_thread_event_breakpoints): Remove function.
8980 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
8981
7d00775e
AT
89822015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8983
8984 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
8985 New function.
8986 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8987 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
8988 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8989 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
8990 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
8991 Initialize.
8992 * linux-crisv32-low.c (cris_supports_hardware_single_step):
8993 New function.
8994 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8995 * linux-low.c (can_hardware_single_step): Use
8996 supports_hardware_single_step.
8997 (can_software_single_step): New function.
8998 (start_step_over): Call can_software_single_step.
8999 (linux_supports_hardware_single_step): New function.
9000 (struct target_ops) <supports_software_single_step>: Initialize.
9001 * linux-low.h (struct linux_target_ops)
9002 <supports_hardware_single_step>: Initialize.
9003 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9004 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9005 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9006 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9007 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9008 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9009 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9010 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9011 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9012 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9013 Initialize.
9014 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9015 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9016 Initialize.
9017 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9018 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9019 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9020 New function.
9021 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9022 * target.h (struct target_ops): <supports_software_single_step>:
9023 New field.
9024 (target_supports_software_single_step): New macro.
9025
2d97cd35
AT
90262015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9027
9028 * linux-low.c (linux_wait_1): Fix pc advance condition.
9029 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9030 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9031
769ef81f
AT
90322015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9033
9034 * linux-arm-low.c (arm_is_thumb_mode): New function.
9035 (arm_breakpoint_at): Use arm_is_thumb_mode.
9036 (arm_breakpoint_kind_from_current_state): New function.
9037 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9038 Initialize.
9039 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9040 (linux_breakpoint_kind_from_current_state): New function.
9041 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9042 * linux-low.h (struct linux_target_ops)
9043 <breakpoint_kind_from_current_state>: New field.
9044 * target.h (struct target_ops): Likewise.
9045 (target_breakpoint_kind_from_current_state): New macro.
9046
1bebeeca
PA
90472015-11-30 Pedro Alves <palves@redhat.com>
9048
9049 * linux-low.c (linux_resume): Wake up the event loop before
9050 returning.
9051
a67a9fae
PA
90522015-11-30 Pedro Alves <palves@redhat.com>
9053
9054 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9055 check.
9056 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9057 to -1.
9058 * target.c (struct thread_search): New structure.
9059 (thread_search_callback): New function.
9060 (prev_general_thread): New global.
9061 (prepare_to_access_memory, done_accessing_memory): New functions.
9062 * target.h (prepare_to_access_memory, done_accessing_memory):
9063 Replace macros with function declarations.
9064
f2faf941
PA
90652015-11-30 Pedro Alves <palves@redhat.com>
9066
9067 PR 14618
9068 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9069 report TARGET_WAITKIND_NO_RESUMED.
9070 * remote-utils.c (prepare_resume_reply): Handle
9071 TARGET_WAITKIND_NO_RESUMED.
9072 * server.c (report_no_resumed): New global.
9073 (handle_query) <qSupported>: Handle "no-resumed+". Report
9074 "no-resumed+" support.
9075 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9076 return error if the client doesn't support no-resumed events.
9077 (push_stop_notification): New function.
9078 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9079 events if the client supports them.
9080
a681f9c9
PA
90812015-11-30 Pedro Alves <palves@redhat.com>
9082
9083 * linux-low.c (thread_still_has_status_pending_p): Don't check
9084 vCont;t here.
9085 (lwp_resumed): New function.
9086 (status_pending_p_callback): Return early if the LWP is not
9087 supposed to be resumed.
9088
65706a29
PA
90892015-11-30 Pedro Alves <palves@redhat.com>
9090
9091 * linux-low.c (handle_extended_wait): Assert that the LWP's
9092 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9093 thread create events, leave the new child's status pending.
9094 (linux_low_filter_event): If GDB wants to hear about thread exit
9095 events, leave the LWP marked dead and don't delete it.
9096 (linux_wait_for_event_filtered): Don't check for thread exit.
9097 (filter_exit_event): New function.
9098 (linux_wait_1): Use it, when returning an exit event.
9099 (linux_resume_one_lwp_throw): Assert that the LWP's
9100 waitstatus is TARGET_WAITKIND_IGNORE.
9101 * remote-utils.c (prepare_resume_reply): Handle
9102 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9103 * server.c (report_thread_events): New global.
9104 (handle_general_set): Handle QThreadEvents.
9105 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9106 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9107 TARGET_WAITKIND_THREAD_EXITED.
9108 * server.h (report_thread_events): Declare.
9109
56cf4bed
PA
91102015-11-30 Pedro Alves <palves@redhat.com>
9111
9112 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9113 the thread's last_resume_kind was resume_stop.
9114
500c1d85
PA
91152015-11-30 Pedro Alves <palves@redhat.com>
9116
9117 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9118 before returning.
9119
de979965
PA
91202015-11-30 Pedro Alves <palves@redhat.com>
9121
9122 * server.c (handle_v_requests): Handle vCtrlC.
9123
34c65914
PA
91242015-11-30 Pedro Alves <palves@redhat.com>
9125
9126 * gdbthread.h (find_any_thread_of_pid): Declare.
9127 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9128 functions.
9129 * server.c (handle_query): If current_thread is NULL, look for
9130 another thread of the selected process.
9131
79efa585 91322015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9133 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9134
9135 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9136 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9137 name in reply.
9138 * target.h (struct target_ops) <thread_name>: New field.
9139 (target_thread_name): New macro.
9140
80d82c19
JB
91412015-11-23 Joel Brobecker <brobecker@adacore.com>
9142
9143 * regcache.h (regcache_invalidate_pid): Add declaration.
9144 * regcache.c (regcache_invalidate_pid): New function, extracted
9145 from regcache_invalidate.
9146 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9147 Add trivial documentation comment.
9148 * lynx-low.c: Use regcache_invalidate_pid instead of
9149 regcache_invalidate.
9150
64da5dd5
JB
91512015-11-23 Joel Brobecker <brobecker@adacore.com>
9152
9153 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9154 and Elf64_auxv_t if the target is Android.
9155
37ce4055
DE
91562015-11-22 Doug Evans <xdje42@gmail.com>
9157
9158 * target.h: #include <sys/types.h>.
9159
06e03fff
PA
91602015-11-19 Pedro Alves <palves@redhat.com>
9161
9162 * linux-low.c (linux_process_qsupported): Change prototype.
9163 Adjust.
9164 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9165 Change prototype.
9166 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9167 and adjust to loop over all features.
9168 * server.c (handle_query) <qSupported>: Adjust to call
9169 target_process_qsupported once, passing it a vector of unprocessed
9170 features.
9171 * target.h (struct target_ops) <process_qsupported>: Change
9172 prototype.
9173 (target_process_qsupported): Adjust.
9174
9a084706
PA
91752015-11-19 Pedro Alves <palves@redhat.com>
9176
9177 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9178 mode.
9179 * configure: Regenerate.
9180
dad44a1f
PA
91812015-11-19 Pedro Alves <palves@redhat.com>
9182
9183 * configure: Regenerate.
9184
231c0592
YQ
91852015-11-19 Yao Qi <yao.qi@linaro.org>
9186
9187 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9188 type to uint32_t.
9189
6c1c9a8b
YQ
91902015-11-19 Yao Qi <yao.qi@linaro.org>
9191
9192 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9193 (struct aarch64_operand): Move enum out.
9194
9caa3311
YQ
91952015-11-19 Yao Qi <yao.qi@linaro.org>
9196
9197 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9198 struct user_fpsimd_state *.
9199 (aarch64_store_fpregset): Likewise.
9200
6a69a054
YQ
92012015-11-19 Yao Qi <yao.qi@linaro.org>
9202
9203 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9204 struct user_pt_regs *.
9205 (aarch64_store_gregset): Likewise.
9206
1798301e
PA
92072015-11-18 Pedro Alves <palves@redhat.com>
9208
9209 * Makefile.in (all_object_files): Add $IPA_OBJS.
9210
ce7715e2
PA
92112015-11-17 Pedro Alves <palves@redhat.com>
9212
9213 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9214 GDB_SIGNAL_0 and gdb_signal_to_string.
9215
c0879059
PA
92162015-11-17 Pedro Alves <palves@redhat.com>
9217
9218 * win32-low.c (handle_output_debug_string): Remove parameter.
9219 (win32_kill): Remove our_status local and adjust call to
9220 handle_output_debug_string.
9221 (get_child_debug_event): Adjust call to
9222 handle_output_debug_string.
9223
1996e237
SM
92242015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9225
9226 * linux-mips-low.c (mips_fill_gregset): Add cast.
9227 (mips_store_gregset): Likewise.
9228 (mips_fill_fpregset): Likewise.
9229 (mips_store_fpregset): Likewise.
9230
cbec665b
SM
92312015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9232
9233 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9234 priv.
9235
eb3e3c67
SM
92362015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9237
9238 * linux-mips-low.c (mips_linux_new_thread): Change type of
9239 watch_type to enum target_hw_bp_type.
9240
171de4b8
SM
92412015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9242
9243 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9244 Change return type to arm_hwbp_type.
9245
04248ead
SM
92462015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9247
9248 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9249 (arm_store_gregset): Likewise.
9250 * linux-arm-low.c (arm_get_hwcap): Likewise.
9251 (arm_read_description): Likewise.
9252
04b3479c
SM
92532015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9254
9255 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9256
2bc84e8a
SM
92572015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9258
9259 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9260 (ppc_fill_vsxregset): Likewise.
9261 (ppc_store_vsxregset): Likewise.
9262 (ppc_fill_vrregset): Likewise.
9263 (ppc_store_vrregset): Likewise.
9264 (ppc_fill_evrregset): Likewise.
9265 (ppc_store_evrregset): Likewise.
9266
e6c5bb05
SM
92672015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9268
9269 * linux-ppc-low.c (ppc_usrregs_info): Remove
9270 forward-declaration.
9271 (ppc_arch_setup): Move lower in file.
9272
7ea45d72
SM
92732015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9274
9275 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9276 (ps_pdwrite): Likewise.
9277
69291610
HW
92782015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9279
9280 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9281 to after assert checks.
9282
b42945fd
SM
92832015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9284
9285 * proc-service.c (ps_pdread): Add/adjust casts.
9286 (ps_pdwrite): Add/adjust casts.
9287
d6f85c84
SM
92882015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9289
9290 * server.c (handle_search_memory_1): Cast return value of
9291 memmem.
9292
f98cd059
SM
92932015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9294
9295 * server.c (write_qxfer_response): Change type of data to
9296 gdb_byte *.
9297
d2412fa5
PA
92982015-10-29 Pedro Alves <palves@redhat.com>
9299
9300 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9301
c17414a2
PA
93022015-10-29 Pedro Alves <palves@redhat.com>
9303
9304 * tracepoint.c (clear_installed_tracepoints): Add casts.
9305
e053fbc4
PA
93062015-10-29 Pedro Alves <palves@redhat.com>
9307
9308 * server.c (handle_v_cont, process_serial_event): Add enum
9309 gdb_signal casts to signal parsing code.
9310
add67df8
PA
93112015-10-29 Pedro Alves <palves@redhat.com>
9312
9313 * linux-low.h (NULL_REGSET): Define.
9314 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9315 * linux-arm-low.c (arm_regsets): Likewise.
9316 * linux-crisv32-low.c (cris_regsets): Likewise.
9317 * linux-m68k-low.c (m68k_regsets): Likewise.
9318 * linux-mips-low.c (mips_regsets): Likewise.
9319 * linux-nios2-low.c (nios2_regsets): Likewise.
9320 * linux-ppc-low.c (ppc_regsets): Likewise.
9321 * linux-s390-low.c (s390_regsets): Likewise.
9322 * linux-sh-low.c (sh_regsets): Likewise.
9323 * linux-sparc-low.c (sparc_regsets): Likewise.
9324 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9325 * linux-tile-low.c (tile_regsets): Likewise.
9326 * linux-x86-low.c (x86_regsets): Likewise.
9327 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9328
50bc912a
PA
93292015-10-29 Pedro Alves <palves@redhat.com>
9330
9331 * linux-low.h (NULL_REGSET): Define.
9332 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9333 * linux-arm-low.c (arm_regsets): Likewise.
9334 * linux-crisv32-low.c (cris_regsets): Likewise.
9335 * linux-m68k-low.c (m68k_regsets): Likewise.
9336 * linux-mips-low.c (mips_regsets): Likewise.
9337 * linux-nios2-low.c (nios2_regsets): Likewise.
9338 * linux-ppc-low.c (ppc_regsets): Likewise.
9339 * linux-s390-low.c (s390_regsets): Likewise.
9340 * linux-sh-low.c (sh_regsets): Likewise.
9341 * linux-sparc-low.c (sparc_regsets): Likewise.
9342 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9343 * linux-tile-low.c (tile_regsets): Likewise.
9344 * linux-x86-low.c (x86_regsets): Likewise.
9345 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9346
682b2546
DE
93472015-10-26 Doug Evans <dje@google.com>
9348
9349 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9350
963843d4
DE
93512015-10-26 Doug Evans <dje@google.com>
9352
9353 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9354
d41401ac
DE
93552015-10-26 Doug Evans <dje@google.com>
9356
9357 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9358 for debug_printf.
9359 (attach_thread, find_new_threads_callback): Ditto.
9360
3db28855
AT
93612015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9362
9363 * mem-break.h (set_breakpoint_data): Remove.
9364
fb78e89c
AT
93652015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9366
9367 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9368 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9369 (initialize_low): Remove set_breakpoint_data call.
9370 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9371 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9372 (initialize_low): Remove set_breakpoint_data call.
9373 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9374 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9375 (initialize_low): Remove set_breakpoint_data call.
9376
2e6ee069
AT
93772015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9378
9379 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9380 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9381 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9382 * target.h (target_breakpoint_kind_from_pc): New macro.
9383
1652a986
AT
93842015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9385
9386 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9387 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9388 the default breakpoint kind.
9389
abeead09
AT
93902015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9391
9392 * linux-arm-low.c (arm_supports_z_point_type): Add software
9393 breakpoint support.
9394
b0b4b501
AT
93952015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9396
9397 * linux-arm-low.c: Refactor breakpoint definitions.
9398 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9399 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9400
8689682c
AT
94012015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9402
9403 * Makefile.in: Add arm.c/o.
9404 * configure.srv: Likewise.
9405 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9406 (arm_breakpoint_kind_from_pc): New function.
9407 (arm_sw_breakpoint_from_kind): Return proper kind.
9408 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9409
27165294
AT
94102015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9411
9412 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9413 removal.
9414 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9415 (struct raw_breakpoint) <size>: Remove.
9416 (struct raw_breakpoint) <kind>: Add.
9417 (bp_size): New function.
9418 (bp_opcode): Likewise.
9419 (find_raw_breakpoint_at): Adjust for kind.
9420 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9421 (remove_memory_breakpoint): Adjust for kind call bp_size.
9422 (set_raw_breakpoint_at): Adjust for kind.
9423 (set_breakpoint): Likewise.
9424 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9425 (delete_raw_breakpoint): Adjust for kind.
9426 (delete_breakpoint): Likewise.
9427 (find_gdb_breakpoint): Likewise.
9428 (set_gdb_breakpoint_1): Likewise.
9429 (set_gdb_breakpoint): Likewise.
9430 (delete_gdb_breakpoint_1): Likewise.
9431 (delete_gdb_breakpoint): Likewise.
9432 (uninsert_raw_breakpoint): Likewise.
9433 (reinsert_raw_breakpoint): Likewise.
9434 (set_breakpoint_data): Remove.
9435 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9436 (check_mem_read): Adjust for kind call bp_size.
9437 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9438 (clone_one_breakpoint): Adjust for kind.
9439 * mem-break.h (set_gdb_breakpoint): Likewise.
9440 (delete_gdb_breakpoint): Likewise.
9441 * server.c (process_serial_event): Likewise.
9442
dd373349
AT
94432015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9444
9445 * linux-aarch64-low.c (aarch64_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-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9451 (arm_sw_breakpoint_from_kind): New function.
9452 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9453 (struct linux_target_ops) <breakpoint>: Remove.
9454 (struct linux_target_ops) <breakpoint_len>: Remove.
9455 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9456 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9457 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9458 (struct linux_target_ops) <breakpoint>: Remove.
9459 (struct linux_target_ops) <breakpoint_len>: Remove.
9460 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9461 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9462 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9463 (struct linux_target_ops) <breakpoint>: Remove.
9464 (struct linux_target_ops) <breakpoint_len>: Remove.
9465 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9466 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9467 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9468 and sw_breakpoint_from_kind to increment the pc.
9469 (linux_breakpoint_kind_from_pc): New function.
9470 (linux_sw_breakpoint_from_kind): New function.
9471 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9472 (initialize_low): Call breakpoint_kind_from_pc and
9473 sw_breakpoint_from_kind to replace breakpoint_data/len.
9474 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9475 New field.
9476 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9477 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9478 (struct linux_target_ops) <breakpoint>: Remove.
9479 (struct linux_target_ops) <breakpoint_len>: Remove.
9480 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9481 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9482 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9483 (struct linux_target_ops) <breakpoint>: Remove.
9484 (struct linux_target_ops) <breakpoint_len>: Remove.
9485 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9486 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9487 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9488 (struct linux_target_ops) <breakpoint>: Remove.
9489 (struct linux_target_ops) <breakpoint_len>: Remove.
9490 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9491 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9492 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9493 (struct linux_target_ops) <breakpoint>: Remove.
9494 (struct linux_target_ops) <breakpoint_len>: Remove.
9495 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9496 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9497 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9498 (struct linux_target_ops) <breakpoint>: Remove.
9499 (struct linux_target_ops) <breakpoint_len>: Remove.
9500 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9501 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9502 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9503 (struct linux_target_ops) <breakpoint>: Remove.
9504 (struct linux_target_ops) <breakpoint_len>: Remove.
9505 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9506 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9507 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9508 (struct linux_target_ops) <breakpoint>: Remove.
9509 (struct linux_target_ops) <breakpoint_len>: Remove.
9510 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9511 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9512 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9513 (struct linux_target_ops) <breakpoint>: Remove.
9514 (struct linux_target_ops) <breakpoint_len>: Remove.
9515 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9516 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9517 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9518 (struct linux_target_ops) <breakpoint>: Remove.
9519 (struct linux_target_ops) <breakpoint_len>: Remove.
9520 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9521 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9522 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9523 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9524 (struct linux_target_ops) <breakpoint>: Remove.
9525 (struct linux_target_ops) <breakpoint_len>: Remove.
9526 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9527 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9528 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9529 (struct linux_target_ops) <breakpoint>: Remove.
9530 (struct linux_target_ops) <breakpoint_len>: Remove.
9531 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9532 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9533
4cd98a19
AT
95342015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9535
9536 * linux-cris-low.c (cris_get_pc): Remove void arg.
9537
774ee6d2
AR
95382015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9539
9540 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9541 variable name.
9542
833dcd29
AR
95432015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9544
9545 * inferiors.c (thread_pid_matches_callback): New function.
9546 (find_thread_process): New function.
9547 (remove_thread): Reset current_thread.
9548 (remove_process): Assert threads have been removed first.
9549
8d689ee5
YQ
95502015-10-15 Yao Qi <yao.qi@linaro.org>
9551
9552 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9553 if it is 3.
9554 (aarch64_remove_point): Likewise.
9555 * regcache.c (regcache_register_size): New function.
9556
1c2e1515
YQ
95572015-10-12 Yao Qi <yao.qi@linaro.org>
9558
9559 * linux-aarch64-low.c: Update all callers as emit_load_store
9560 is renamed to aarch64_emit_load_store.
9561
e1c587c3
YQ
95622015-10-12 Yao Qi <yao.qi@linaro.org>
9563
9564 * linux-aarch64-low.c: Update all callers of function renaming
9565 from emit_insn to aarch64_emit_insn.
9566
b6542f81
YQ
95672015-10-12 Yao Qi <yao.qi@linaro.org>
9568
9569 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9570 arch/aarch64-insn.h.
9571 (struct aarch64_memory_operand): Likewise.
9572 (ENCODE): Likewise.
9573 (emit_insn): Move to arch/aarch64-insn.c.
9574 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9575 (emit_load_store): Move to arch/aarch64-insn.c.
9576 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9577 (can_encode_int32): Remove.
9578
246994ce
YQ
95792015-10-12 Yao Qi <yao.qi@linaro.org>
9580
9581 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9582 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9583 (aarch64_relocate_instruction): Likewise.
9584 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9585 (struct aarch64_insn_visitor): Likewise.
9586
0badd99f
YQ
95872015-10-12 Yao Qi <yao.qi@linaro.org>
9588
9589 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9590 (struct aarch64_insn_visitor): New.
9591 (struct aarch64_insn_relocation_data): New.
9592 (aarch64_ftrace_insn_reloc_b): New function.
9593 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9594 (aarch64_ftrace_insn_reloc_cb): Likewise.
9595 (aarch64_ftrace_insn_reloc_tb): Likewise.
9596 (aarch64_ftrace_insn_reloc_adr): Likewise.
9597 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9598 (aarch64_ftrace_insn_reloc_others): Likewise.
9599 (visitor): New.
9600 (aarch64_relocate_instruction): Use visitor.
9601
dfaffe9d
YQ
96022015-10-12 Yao Qi <yao.qi@linaro.org>
9603
9604 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9605 int. Add argument buf.
9606 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9607 aarch64_relocate_instruction.
9608
70b439f0
YQ
96092015-10-12 Yao Qi <yao.qi@linaro.org>
9610
9611 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9612 argument insn. Remove local variable insn. Don't call
9613 target_read_uint32.
9614 (aarch64_install_fast_tracepoint_jump_pad): Call
9615 target_read_uint32.
9616
7781c06f
YQ
96172015-09-30 Yao Qi <yao.qi@linaro.org>
9618
9619 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9620 (emit_load_store_pair): Likewise.
9621
9a3c8263
SM
96222015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9623
9624 * dll.c (match_dll): Add cast(s).
9625 (unloaded_dll): Likewise.
9626 * linux-low.c (second_thread_of_pid_p): Likewise.
9627 (delete_lwp_callback): Likewise.
9628 (count_events_callback): Likewise.
9629 (select_event_lwp_callback): Likewise.
9630 (linux_set_resume_request): Likewise.
9631 * server.c (accumulate_file_name_length): Likewise.
9632 (emit_dll_description): Likewise.
9633 (handle_qxfer_threads_worker): Likewise.
9634 (visit_actioned_threads): Likewise.
9635 * thread-db.c (any_thread_of): Likewise.
9636 * tracepoint.c (same_process_p): Likewise.
9637 (match_blocktype): Likewise.
9638 (build_traceframe_info_xml): Likewise.
9639
224c3ddb
SM
96402015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9641
9642 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9643 assignment.
9644 (gdb_unparse_agent_expr): Likewise.
9645 * hostio.c (require_data): Likewise.
9646 (handle_pread): Likewise.
9647 * linux-low.c (disable_regset): Likewise.
9648 (fetch_register): Likewise.
9649 (store_register): Likewise.
9650 (get_dynamic): Likewise.
9651 (linux_qxfer_libraries_svr4): Likewise.
9652 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9653 (set_fast_tracepoint_jump): Likewise.
9654 (uninsert_fast_tracepoint_jumps_at): Likewise.
9655 (reinsert_fast_tracepoint_jumps_at): Likewise.
9656 (validate_inserted_breakpoint): Likewise.
9657 (clone_agent_expr): Likewise.
9658 * regcache.c (init_register_cache): Likewise.
9659 * remote-utils.c (putpkt_binary_1): Likewise.
9660 (decode_M_packet): Likewise.
9661 (decode_X_packet): Likewise.
9662 (look_up_one_symbol): Likewise.
9663 (relocate_instruction): Likewise.
9664 (monitor_output): Likewise.
9665 * server.c (handle_search_memory): Likewise.
9666 (handle_qxfer_exec_file): Likewise.
9667 (handle_qxfer_libraries): Likewise.
9668 (handle_qxfer): Likewise.
9669 (handle_query): Likewise.
9670 (handle_v_cont): Likewise.
9671 (handle_v_run): Likewise.
9672 (captured_main): Likewise.
9673 * target.c (write_inferior_memory): Likewise.
9674 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9675 * tracepoint.c (init_trace_buffer): Likewise.
9676 (add_tracepoint_action): Likewise.
9677 (add_traceframe): Likewise.
9678 (add_traceframe_block): Likewise.
9679 (cmd_qtdpsrc): Likewise.
9680 (cmd_qtdv): Likewise.
9681 (cmd_qtstatus): Likewise.
9682 (response_source): Likewise.
9683 (response_tsv): Likewise.
9684 (cmd_qtnotes): Likewise.
9685 (gdb_collect): Likewise.
9686 (initialize_tracepoint): Likewise.
9687
afbe19f8
PL
96882015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9689
9690 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9691 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9692 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9693 <NOP>: New.
9694 (enum aarch64_condition_codes): New enum.
9695 (w0): New static global.
9696 (fp): Likewise.
9697 (lr): Likewise.
9698 (struct aarch64_memory_operand) <type>: New
9699 MEMORY_OPERAND_POSTINDEX type.
9700 (postindex_memory_operand): New helper function.
9701 (emit_ret): New function.
9702 (emit_load_store_pair): New function, factored out of emit_stp
9703 with support for MEMORY_OPERAND_POSTINDEX.
9704 (emit_stp): Rewrite using emit_load_store_pair.
9705 (emit_ldp): New function.
9706 (emit_load_store): Likewise.
9707 (emit_ldr): Mention post-index instruction in comment.
9708 (emit_ldrh): New function.
9709 (emit_ldrb): New function.
9710 (emit_ldrsw): Mention post-index instruction in comment.
9711 (emit_str): Likewise.
9712 (emit_subs): New function.
9713 (emit_cmp): Likewise.
9714 (emit_and): Likewise.
9715 (emit_orr): Likewise.
9716 (emit_orn): Likewise.
9717 (emit_eor): Likewise.
9718 (emit_mvn): Likewise.
9719 (emit_lslv): Likewise.
9720 (emit_lsrv): Likewise.
9721 (emit_asrv): Likewise.
9722 (emit_mul): Likewise.
9723 (emit_sbfm): Likewise.
9724 (emit_sbfx): Likewise.
9725 (emit_ubfm): Likewise.
9726 (emit_ubfx): Likewise.
9727 (emit_csinc): Likewise.
9728 (emit_cset): Likewise.
9729 (emit_nop): Likewise.
9730 (emit_ops_insns): New helper function.
9731 (emit_pop): Likewise.
9732 (emit_push): Likewise.
9733 (aarch64_emit_prologue): New function.
9734 (aarch64_emit_epilogue): Likewise.
9735 (aarch64_emit_add): Likewise.
9736 (aarch64_emit_sub): Likewise.
9737 (aarch64_emit_mul): Likewise.
9738 (aarch64_emit_lsh): Likewise.
9739 (aarch64_emit_rsh_signed): Likewise.
9740 (aarch64_emit_rsh_unsigned): Likewise.
9741 (aarch64_emit_ext): Likewise.
9742 (aarch64_emit_log_not): Likewise.
9743 (aarch64_emit_bit_and): Likewise.
9744 (aarch64_emit_bit_or): Likewise.
9745 (aarch64_emit_bit_xor): Likewise.
9746 (aarch64_emit_bit_not): Likewise.
9747 (aarch64_emit_equal): Likewise.
9748 (aarch64_emit_less_signed): Likewise.
9749 (aarch64_emit_less_unsigned): Likewise.
9750 (aarch64_emit_ref): Likewise.
9751 (aarch64_emit_if_goto): Likewise.
9752 (aarch64_emit_goto): Likewise.
9753 (aarch64_write_goto_address): Likewise.
9754 (aarch64_emit_const): Likewise.
9755 (aarch64_emit_call): Likewise.
9756 (aarch64_emit_reg): Likewise.
9757 (aarch64_emit_pop): Likewise.
9758 (aarch64_emit_stack_flush): Likewise.
9759 (aarch64_emit_zero_ext): Likewise.
9760 (aarch64_emit_swap): Likewise.
9761 (aarch64_emit_stack_adjust): Likewise.
9762 (aarch64_emit_int_call_1): Likewise.
9763 (aarch64_emit_void_call_2): Likewise.
9764 (aarch64_emit_eq_goto): Likewise.
9765 (aarch64_emit_ne_goto): Likewise.
9766 (aarch64_emit_lt_goto): Likewise.
9767 (aarch64_emit_le_goto): Likewise.
9768 (aarch64_emit_gt_goto): Likewise.
9769 (aarch64_emit_ge_got): Likewise.
9770 (aarch64_emit_ops_impl): New static global variable.
9771 (aarch64_emit_ops): New target function, return
9772 &aarch64_emit_ops_impl.
9773 (struct linux_target_ops): Install it.
9774
bb903df0
PL
97752015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9776
9777 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9778 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9779 aarch64-ipa.o.
9780 * linux-aarch64-ipa.c: New file.
9781 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9782 and endian.h.
9783 (aarch64_get_thread_area): New target method.
9784 (extract_signed_bitfield): New helper function.
9785 (aarch64_decode_ldr_literal): New function.
9786 (enum aarch64_opcodes): New enum.
9787 (struct aarch64_register): New struct.
9788 (struct aarch64_operand): New struct.
9789 (x0): New static global.
9790 (x1): Likewise.
9791 (x2): Likewise.
9792 (x3): Likewise.
9793 (x4): Likewise.
9794 (w2): Likewise.
9795 (ip0): Likewise.
9796 (sp): Likewise.
9797 (xzr): Likewise.
9798 (aarch64_register): New helper function.
9799 (register_operand): Likewise.
9800 (immediate_operand): Likewise.
9801 (struct aarch64_memory_operand): New struct.
9802 (offset_memory_operand): New helper function.
9803 (preindex_memory_operand): Likewise.
9804 (enum aarch64_system_control_registers): New enum.
9805 (ENCODE): New macro.
9806 (emit_insn): New helper function.
9807 (emit_b): New function.
9808 (emit_bcond): Likewise.
9809 (emit_cb): Likewise.
9810 (emit_tb): Likewise.
9811 (emit_blr): Likewise.
9812 (emit_stp): Likewise.
9813 (emit_ldp_q_offset): Likewise.
9814 (emit_stp_q_offset): Likewise.
9815 (emit_load_store): Likewise.
9816 (emit_ldr): Likewise.
9817 (emit_ldrsw): Likewise.
9818 (emit_str): Likewise.
9819 (emit_ldaxr): Likewise.
9820 (emit_stxr): Likewise.
9821 (emit_stlr): Likewise.
9822 (emit_data_processing_reg): Likewise.
9823 (emit_data_processing): Likewise.
9824 (emit_add): Likewise.
9825 (emit_sub): Likewise.
9826 (emit_mov): Likewise.
9827 (emit_movk): Likewise.
9828 (emit_mov_addr): Likewise.
9829 (emit_mrs): Likewise.
9830 (emit_msr): Likewise.
9831 (emit_sevl): Likewise.
9832 (emit_wfe): Likewise.
9833 (append_insns): Likewise.
9834 (can_encode_int32_in): New helper function.
9835 (aarch64_relocate_instruction): New function.
9836 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9837 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9838 (struct linux_target_ops): Install aarch64_get_thread_area,
9839 aarch64_install_fast_tracepoint_jump_pad and
9840 aarch64_get_min_fast_tracepoint_insn_len.
9841
787749ea
PL
98422015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9843
9844 * Makefile.in (aarch64-insn.o): New rule.
9845 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9846
9812b2e6
YQ
98472015-09-21 Yao Qi <yao.qi@linaro.org>
9848
9849 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9850
18fe412b
YQ
98512015-09-21 Yao Qi <yao.qi@linaro.org>
9852
9853 * tracepoint.c (max_jump_pad_size): Remove.
9854
a0cc84cd
YQ
98552015-09-18 Yao Qi <yao.qi@linaro.org>
9856
9857 * linux-aarch64-low.c: Don't include sys/uio.h.
9858 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9859
d78908cf
WW
98602015-09-16 Wei-cheng Wang <cole945@gmail.com>
9861
9862 * tracepoint.c (eval_result_type): Change prototype.
9863 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9864
d57e0d50
PA
98652015-09-15 Pedro Alves <palves@redhat.com>
9866
9867 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9868 Check whether to report exec events instead of checking whether
9869 multiprocess is enabled.
9870
5a676acc
PA
98712015-09-15 Pedro Alves <palves@redhat.com>
9872
9873 PR remote/18965
9874 * remote-utils.c (prepare_resume_reply): Merge
9875 TARGET_WAITKIND_VFORK_DONE switch case with the
9876 TARGET_WAITKIND_FORKED case.
9877
7c5d0fad
YQ
98782015-09-15 Yao Qi <yao.qi@linaro.org>
9879
9880 * server.c (handle_query): Check string comparison using
9881 "else if" instead of "if".
9882
750ce8d1
YQ
98832015-09-15 Yao Qi <yao.qi@linaro.org>
9884
9885 * server.c (vCont_supported): New global variable.
9886 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9887 matches. Append ";vContSupported+" to own_buf.
9888 (handle_v_requests): Append ";s;S" to own_buf if target supports
9889 hardware single step or vCont_supported is false.
9890 (capture_main): Set vCont_supported to zero.
9891
70b90b91
YQ
98922015-09-15 Yao Qi <yao.qi@linaro.org>
9893
9894 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9895 it to ...
9896 (linux_supports_hardware_single_step): ... New function.
9897 (linux_target_ops): Update.
9898 * lynx-low.c (lynx_target_ops): Set field
9899 supports_hardware_single_step to target_can_do_hardware_single_step.
9900 * nto-low.c (nto_target_ops): Likewise.
9901 * spu-low.c (spu_target_ops): Likewise.
9902 * win32-low.c (win32_target_ops): Likewise.
9903 * target.c (target_can_do_hardware_single_step): New function.
9904 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9905 Remove. <supports_hardware_single_step>: New field.
9906 (target_supports_conditional_breakpoints): Remove.
9907 (target_supports_hardware_single_step): New macro.
9908 (target_can_do_hardware_single_step): Declare.
9909 * server.c (handle_query): Use target_supports_hardware_single_step
9910 instead of target_supports_conditional_breakpoints.
9911
ade90bde
YQ
99122015-09-15 Yao Qi <yao.qi@linaro.org>
9913
9914 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9915 function.
9916 (struct linux_target_ops the_low_target): Install
9917 aarch64_linux_siginfo_fixup.
9918
94585166
DB
99192015-09-11 Don Breazeal <donb@codesourcery.com>
9920 Luis Machado <lgustavo@codesourcery.com>
9921
9922 * linux-low.c (linux_mourn): Static declaration.
9923 (linux_arch_setup): Move in front of
9924 handle_extended_wait.
9925 (linux_arch_setup_thread): New function.
9926 (handle_extended_wait): Handle exec events. Call
9927 linux_arch_setup_thread. Make event_lwp argument a
9928 pointer-to-a-pointer.
9929 (check_zombie_leaders): Do not check stopped threads.
9930 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9931 (linux_low_filter_event): Add lwp and thread for exec'ing
9932 non-leader thread if leader thread has been deleted.
9933 Refactor code into linux_arch_setup_thread and call it.
9934 Pass child lwp pointer by reference to handle_extended_wait.
9935 (linux_wait_for_event_filtered): Update comment.
9936 (linux_wait_1): Prevent clobbering exec event status.
9937 (linux_supports_exec_events): New function.
9938 (linux_target_ops) <supports_exec_events>: Initialize new member.
9939 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9940 new member.
9941 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9942 * server.c (report_exec_events): New global variable.
9943 (handle_query): Handle qSupported query for exec-events feature.
9944 (captured_main): Initialize report_exec_events.
9945 * server.h (report_exec_events): Declare new global variable.
9946 * target.h (struct target_ops) <supports_exec_events>: New
9947 member.
9948 (target_supports_exec_events): New macro.
9949 * win32-low.c (win32_target_ops) <supports_exec_events>:
9950 Initialize new member.
9951
0568462b
MM
99522015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9953
9954 * linux-low.c (linux_low_enable_btrace): Remove.
9955 (linux_target_ops): Replace linux_low_enable_btrace with
9956 linux_enable_btrace.
9957
39edd165
YQ
99582015-09-03 Yao Qi <yao.qi@linaro.org>
9959
9960 * linux-aarch64-low.c (aarch64_insert_point): Call
9961 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
9962 returns true.
9963
1db33b5a
UW
99642015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9965
9966 * linux-low.c (check_stopped_by_breakpoint): Use
9967 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
9968
ab290430
PA
99692015-08-27 Pedro Alves <palves@redhat.com>
9970
9971 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9972
8d749320
SM
99732015-08-26 Simon Marchi <simon.marchi@ericsson.com>
9974
6711b7f8
SM
9975 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
9976 the XNEW-family equivalent.
8d749320
SM
9977 (compile_bytecodes): Likewise.
9978 * dll.c (loaded_dll): Likewise.
9979 * event-loop.c (append_callback_event): Likewise.
9980 (create_file_handler): Likewise.
9981 (create_file_event): Likewise.
9982 * hostio.c (handle_open): Likewise.
9983 * inferiors.c (add_thread): Likewise.
9984 (add_process): Likewise.
9985 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
9986 * linux-arm-low.c (arm_new_process): Likewise.
9987 (arm_new_thread): Likewise.
9988 * linux-low.c (add_to_pid_list): Likewise.
9989 (linux_add_process): Likewise.
9990 (handle_extended_wait): Likewise.
9991 (add_lwp): Likewise.
9992 (enqueue_one_deferred_signal): Likewise.
9993 (enqueue_pending_signal): Likewise.
9994 (linux_resume_one_lwp_throw): Likewise.
9995 (linux_resume_one_thread): Likewise.
9996 (linux_read_memory): Likewise.
9997 (linux_write_memory): Likewise.
9998 * linux-mips-low.c (mips_linux_new_process): Likewise.
9999 (mips_linux_new_thread): Likewise.
10000 (mips_add_watchpoint): Likewise.
10001 * linux-x86-low.c (initialize_low_arch): Likewise.
10002 * lynx-low.c (lynx_add_process): Likewise.
10003 * mem-break.c (set_raw_breakpoint_at): Likewise.
10004 (set_breakpoint): Likewise.
10005 (add_condition_to_breakpoint): Likewise.
10006 (add_commands_to_breakpoint): Likewise.
10007 (clone_agent_expr): Likewise.
10008 (clone_one_breakpoint): Likewise.
10009 * regcache.c (new_register_cache): Likewise.
10010 * remote-utils.c (look_up_one_symbol): Likewise.
10011 * server.c (queue_stop_reply): Likewise.
10012 (start_inferior): Likewise.
10013 (queue_stop_reply_callback): Likewise.
10014 (handle_target_event): Likewise.
10015 * spu-low.c (fetch_ppc_memory): Likewise.
10016 (store_ppc_memory): Likewise.
10017 * target.c (set_target_ops): Likewise.
10018 * thread-db.c (thread_db_load_search): Likewise.
10019 (try_thread_db_load_1): Likewise.
10020 * tracepoint.c (add_tracepoint): Likewise.
10021 (add_tracepoint_action): Likewise.
10022 (create_trace_state_variable): Likewise.
10023 (cmd_qtdpsrc): Likewise.
10024 (cmd_qtro): Likewise.
10025 (add_while_stepping_state): Likewise.
10026 * win32-low.c (child_add_thread): Likewise.
10027 (get_image_name): Likewise.
10028
ed8b7b42
YQ
100292015-08-25 Yao Qi <yao.qi@linaro.org>
10030
10031 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10032
db3cb7cb
YQ
100332015-08-25 Yao Qi <yao.qi@linaro.org>
10034
10035 * Makefile.in (aarch64-linux.o): New rule.
10036 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10037 srv_tgtobj.
10038 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10039 (aarch64_init_debug_reg_state): Make it extern.
10040 (aarch64_linux_prepare_to_resume): Remove.
10041
f6011a1c
YQ
100422015-08-25 Yao Qi <yao.qi@linaro.org>
10043
10044 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10045 lwp_arch_private_info and ptid_of_lwp.
10046
88e2cf7e
YQ
100472015-08-25 Yao Qi <yao.qi@linaro.org>
10048
10049 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10050 Find proc_info by find_process_pid. All callers updated.
10051
5e35436e
YQ
100522015-08-25 Yao Qi <yao.qi@linaro.org>
10053
10054 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10055 Remove.
10056 (debug_reg_change_callback): Remove.
10057 (aarch64_notify_debug_reg_change): Remove.
10058
4a8a7965
YQ
100592015-08-25 Yao Qi <yao.qi@linaro.org>
10060
10061 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10062 Call current_lwp_ptid.
10063
32a271ee
YQ
100642015-08-25 Yao Qi <yao.qi@linaro.org>
10065
10066 * linux-aarch64-low.c (debug_reg_change_callback): Use
10067 debug_printf.
10068
0d51c8d7
YQ
100692015-08-25 Yao Qi <yao.qi@linaro.org>
10070
10071 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10072
31a43dd5
YQ
100732015-08-25 Yao Qi <yao.qi@linaro.org>
10074
10075 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10076
8ee52567
YQ
100772015-08-25 Yao Qi <yao.qi@linaro.org>
10078
10079 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10080 the code.
10081
ff3f0f45
YQ
100822015-08-25 Yao Qi <yao.qi@linaro.org>
10083
10084 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10085 Remove.
10086 (debug_reg_change_callback): Remove argument entry and add argument
10087 lwp. Remove local variable thread. Don't print thread id in the
10088 debugging output. Don't check whether pid of thread equals to pid.
10089 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10090 iterate_over_lwps instead find_inferior.
10091
3d40fbb5
PA
100922015-08-24 Pedro Alves <palves@redhat.com>
10093
10094 * inferiors.c (get_first_process): New function.
10095 * inferiors.h (get_first_process): New declaration.
10096 * remote-utils.c (read_ptid): Default to the first process in the
10097 list, instead of to the current thread's process.
10098
438e1e42
PA
100992015-08-24 Pedro Alves <palves@redhat.com>
10100
10101 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10102 * event-loop.c: Likewise.
10103 * remote-utils.c: Likewise.
10104 * tracepoint.c: Likewise.
10105
a8c6d4fc
PA
101062015-08-24 Pedro Alves <palves@redhat.com>
10107
10108 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10109 ptid_get_lwp.
10110
99b0bb12
PA
101112015-08-21 Pedro Alves <palves@redhat.com>
10112
10113 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10114 instead of literal 1.
10115
f8904751
PA
101162015-08-21 Pedro Alves <palves@redhat.com>
10117
10118 * tdesc.c (default_description): Explicitly zero-initialize.
10119
465a859e
PA
101202015-08-21 Pedro Alves <palves@redhat.com>
10121
10122 PR gdb/18749
10123 * inferiors.c (remove_thread): Discard any pending stop reply for
10124 this thread.
10125 * server.c (remove_all_on_match_pid): Rename to ...
10126 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10127 instead of a pid.
10128 (discard_queued_stop_replies): Change parameter to a ptid. Now
10129 extern.
10130 (handle_v_kill, kill_inferior_callback, captured_main)
10131 (process_serial_event): Adjust.
10132 * server.h (discard_queued_stop_replies): Declare.
10133
f0db101d
PA
101342015-08-21 Pedro Alves <palves@redhat.com>
10135
10136 * linux-low.c (wait_for_sigstop): Always switch to no thread
10137 selected if the previously current thread dies.
10138 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10139 process instead of the current thread's.
10140 * remote-utils.c (input_interrupt): Don't check if there's no
10141 current thread.
10142 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10143 current thread to the general thread fails, error out.
10144 (handle_qxfer_auxv, handle_qxfer_libraries)
10145 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10146 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10147 (handle_query): Check if there's a thread selected instead of
10148 checking whether there's any thread in the thread list.
10149 (handle_qxfer_threads, handle_qxfer_btrace)
10150 (handle_qxfer_btrace_conf): Don't error out early if there's no
10151 thread in the thread list.
10152 (handle_v_cont, myresume): Don't set the current thread to the
10153 continue thread.
10154 (process_serial_event) <Hg handling>: Also set thread_id if the
10155 previous general thread is still alive.
10156 (process_serial_event) <g/G handling>: If setting the current
10157 thread to the general thread fails, error out.
10158 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10159 thread's lwp instead of the current thread's.
10160 * target.c (set_desired_thread): If the desired thread was not
10161 found, leave the current thread pointing to NULL. Return an int
10162 (boolean) indicating success.
10163 * target.h (set_desired_thread): Change return type to int.
10164
40045d91
MF
101652015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10166
10167 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10168 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10169 #includes.
10170 (ps_get_thread_area): New function.
10171
45face3b
GB
101722015-08-19 Gary Benson <gbenson@redhat.com>
10173
10174 * hostio.c (handle_pread): Do not attempt to read more data
10175 than hostio_reply_with_data can fit in a packet.
10176
16d5f642
JB
101772015-08-18 Joel Brobecker <brobecker@adacore.com>
10178
10179 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10180
a738da3a
MF
101812015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10182
10183 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10184
33ebda9d
PA
101852015-08-06 Pedro Alves <palves@redhat.com>
10186
10187 * tracepoint.c (expr_eval_result): Now an int.
10188
a44892be
PA
101892015-08-06 Pedro Alves <palves@redhat.com>
10190
10191 * gdbthread.h (struct regcache): Forward declare.
10192 (struct thread_info) <regcache_data>: Now a struct regcache
10193 pointer.
10194 * inferiors.c (inferior_regcache_data)
10195 (set_inferior_regcache_data): Now work with struct regcache
10196 pointers.
10197 * inferiors.h (struct regcache): Forward declare.
10198 (inferior_regcache_data, set_inferior_regcache_data): Now work
10199 with struct regcache pointers.
10200 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10201 (free_register_cache_thread): Remove struct regcache pointer
10202 casts.
10203
608a1e46
PA
102042015-08-06 Pedro Alves <palves@redhat.com>
10205
10206 * server.c (captured_main): On error, print the exception message
10207 to stderr, and if run_once is set, throw a quit.
10208
f0ce0d3a
PA
102092015-08-06 Pedro Alves <palves@redhat.com>
10210
10211 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10212 the current thread.
10213
bf47e248
PA
102142015-08-06 Pedro Alves <palves@redhat.com>
10215
10216 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10217 reading beyond the passed in buffer length.
10218
b6b9ffcc
PL
102192015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10220
10221 * tracepoint.c (symbol_list) <required>: Remove.
10222
863d01bd
PA
102232015-08-06 Pedro Alves <palves@redhat.com>
10224
10225 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10226 count if stopping and suspending threads.
10227 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10228 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10229 (linux_detach): Complete an ongoing step-over.
10230 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10231 throughout.
10232 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10233 (linux_wait_1): If passing a signal to the inferior after
10234 finishing a step-over, unsuspend and re-resume all lwps. If we
10235 see a single-step event but the thread should be continuing, don't
10236 pass the trap to gdb.
10237 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10238 internal_error instead of gdb_assert.
10239 (enqueue_pending_signal): New function.
10240 (check_ptrace_stopped_lwp_gone): Add debug output.
10241 (start_step_over): Use internal_error instead of gdb_assert.
10242 (complete_ongoing_step_over): New function.
10243 (linux_resume_one_thread): Don't resume a suspended thread.
10244 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10245 it stepping.
10246
00db26fa
PA
102472015-08-06 Pedro Alves <palves@redhat.com>
10248
10249 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10250 (linux_thread_alive): Use lwp_is_marked_dead.
10251 (extended_event_reported): Delete.
10252 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10253 instead of extended_event_reported.
10254 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10255 as well.
10256 (lwp_is_marked_dead): New function.
10257 (lwp_running): Use lwp_is_marked_dead.
10258 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10259 comment.
10260
ad071a30
PA
102612015-08-06 Pedro Alves <palves@redhat.com>
10262
10263 * linux-low.c (linux_wait_1): Move fork event output out of the
10264 !report_to_gdb check. Pass event_child->waitstatus to
10265 target_waitstatus_to_string instead of ourstatus.
10266
524b57e6
YQ
102672015-08-04 Yao Qi <yao.qi@linaro.org>
10268
10269 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10270 if current_thread is 32 bit.
10271
6085d6f6
YQ
102722015-08-04 Yao Qi <yao.qi@linaro.org>
10273
10274 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10275 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10276 * server.c (extended_protocol): Remove "static".
10277 * server.h (extended_protocol): Declare it.
10278
8a7e4587
YQ
102792015-08-04 Yao Qi <yao.qi@linaro.org>
10280
10281 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10282 both aarch64 and aarch32.
10283 (aarch64_set_pc): Likewise.
10284
3b53ae99
YQ
102852015-08-04 Yao Qi <yao.qi@linaro.org>
10286
10287 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10288 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10289 arm-with-neon.xml to srv_xmlfiles.
10290 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10291 (is_64bit_tdesc): New function.
10292 (aarch64_linux_read_description): New function.
10293 (aarch64_arch_setup): Call aarch64_linux_read_description.
10294 (regs_info): Rename to regs_info_aarch64.
10295 (aarch64_regs_info): Return right regs_info.
10296 (initialize_low_arch): Call initialize_low_arch_aarch32.
10297
bd9e6534
YQ
102982015-08-04 Yao Qi <yao.qi@linaro.org>
10299
10300 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10301 * linux-aarch32-low.c: New file.
10302 * linux-aarch32-low.h: New file.
10303 * linux-arm-low.c (arm_fill_gregset): Move it to
10304 linux-aarch32-low.c.
10305 (arm_store_gregset): Likewise.
10306 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10307 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10308 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10309 (regs_info): Rename to regs_info_arm.
10310 (arm_regs_info): Return regs_info_aarch32 if
10311 have_ptrace_getregset is 1 and target description is
10312 arm_with_neon or arm_with_vfpv3.
10313 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10314 Call initialize_low_arch_aarch32 instead.
10315
ded48a5e
YQ
103162015-08-04 Yao Qi <yao.qi@linaro.org>
10317
10318 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10319 * linux-low.c: ... here.
10320 * linux-low.h (have_ptrace_getregset): Declare it.
10321
96e9210f
PA
103222015-08-04 Pedro Alves <palves@redhat.com>
10323
10324 * thread-db.c (struct thread_db): Use new typedefs.
10325 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10326 CHK calls.
10327 (disable_thread_event_reporting): Cast result of dlsym to
10328 destination function pointer type.
10329 (thread_db_mourn): Use td_ta_delete_ftype.
10330
af60a1ef
SL
103312015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10332
10333 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10334 arch variant.
10335 (CDX_BREAKPOINT): Define for R2.
10336 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10337 (the_low_target): Add comments.
10338
e8b41681
YQ
103392015-07-30 Yao Qi <yao.qi@linaro.org>
10340
10341 * linux-arm-low.c (arm_hwcap): Remove it.
10342 (arm_read_description): New local variable arm_hwcap. Don't
10343 set arm_hwcap to zero.
10344
89abb039
YQ
103452015-07-30 Yao Qi <yao.qi@linaro.org>
10346
10347 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10348 Use regcache->tdesc instead.
10349 (arm_store_wmmxregset): Likewise.
10350 (arm_fill_vfpregset): Likewise.
10351 (arm_store_vfpregset): Likewise.
10352
deca266c
YQ
103532015-07-30 Yao Qi <yao.qi@linaro.org>
10354
10355 * linux-arm-low.c: Include arch/arm.h.
10356 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10357 (arm_store_gregset): Likewise.
10358
aa58a496
SM
103592015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10360
10361 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10362 ptrace's 4th parameter.
10363
50904b25
YQ
103642015-07-27 Yao Qi <yao.qi@linaro.org>
10365
10366 * configure.srv (case aarch64*-*-linux*): Don't set
10367 srv_linux_usrregs.
10368
5826e159
PA
103692015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10370
10371 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10372 sys/ptrace.h.
10373 * linux-arm-low.c: Likewise.
10374 * linux-cris-low.c: Likewise.
10375 * linux-crisv32-low.c: Likewise.
10376 * linux-low.c: Likewise.
10377 * linux-m68k-low.c: Likewise.
10378 * linux-mips-low.c: Likewise.
10379 * linux-nios2-low.c: Likewise.
10380 * linux-s390-low.c: Likewise.
10381 * linux-sparc-low.c: Likewise.
10382 * linux-tic6x-low.c: Likewise.
10383 * linux-tile-low.c: Likewise.
10384 * linux-x86-low.c: Likewise.
10385
54019719
PA
103862015-07-24 Pedro Alves <palves@redhat.com>
10387
10388 * config.in: Regenerate.
10389 * configure: Regenerate.
10390
eb7aa561
PA
103912015-07-24 Pedro Alves <palves@redhat.com>
10392
10393 * acinclude.m4: Include ../ptrace.m4.
10394 * configure.ac: Call GDB_AC_PTRACE.
10395 * config.in, configure: Regenerate.
10396
55d7b841
YQ
103972015-07-24 Yao Qi <yao.qi@linaro.org>
10398
10399 * linux-low.c (linux_create_inferior): Remove setting to
10400 proc->priv->new_inferior.
10401 (linux_attach): Likewise.
10402 (linux_low_filter_event): Likewise.
10403 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10404
c06cbd92
YQ
104052015-07-24 Yao Qi <yao.qi@linaro.org>
10406
10407 * linux-low.c (linux_arch_setup): New function.
10408 (linux_low_filter_event): If proc->tdesc is NULL and
10409 proc->attached is true, call the_low_target.arch_setup.
10410 Otherwise, keep status pending, and return.
10411 (linux_resume_one_lwp_throw): Don't call get_pc if
10412 thread->while_stepping isn't NULL. Don't call
10413 get_thread_regcache if proc->tdesc is NULL.
10414 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10415 (linux_target_ops): Install arch_setup.
10416 * server.c (start_inferior): Call the_target->arch_setup.
10417 * target.h (struct target_ops) <arch_setup>: New field.
10418 (target_arch_setup): New marco.
10419 * lynx-low.c (lynx_target_ops): Update.
10420 * nto-low.c (nto_target_ops): Update.
10421 * spu-low.c (spu_target_ops): Update.
10422 * win32-low.c (win32_target_ops): Update.
10423
5ae3ebba
YQ
104242015-07-24 Yao Qi <yao.qi@linaro.org>
10425
10426 * linux-low.c (linux_add_process): Don't set
10427 proc->priv->new_inferior.
10428 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10429 (linux_attach): Likewise.
10430
eb97750b
YQ
104312015-07-24 Yao Qi <yao.qi@linaro.org>
10432
10433 * server.c (start_inferior): Code refactor.
10434
51aee833
YQ
104352015-07-24 Yao Qi <yao.qi@linaro.org>
10436
10437 * server.c (process_serial_event): Set general_thread.
10438
af1b22f3
YQ
104392015-07-21 Yao Qi <yao.qi@linaro.org>
10440
10441 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10442 aarch64_linux_get_debug_reg_capacity.
10443
554717a3
YQ
104442015-07-17 Yao Qi <yao.qi@linaro.org>
10445
10446 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10447 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10448 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10449 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10450 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10451 (AARCH64_HWP_ALIGNMENT): Likewise.
10452 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10453 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10454 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10455 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10456 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10457 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10458 (struct aarch64_debug_reg_state): Likewise.
10459 (struct arch_lwp_info): Likewise.
10460 (aarch64_align_watchpoint): Likewise.
10461 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10462 (aarch64_watchpoint_length): Likewise.
10463 (aarch64_point_encode_ctrl_reg): Likewise
10464 (aarch64_point_is_aligned): Likewise.
10465 (aarch64_align_watchpoint): Likewise.
10466 (aarch64_linux_set_debug_regs):
10467 (aarch64_dr_state_insert_one_point): Likewise.
10468 (aarch64_dr_state_remove_one_point): Likewise.
10469 (aarch64_handle_breakpoint): Likewise.
10470 (aarch64_handle_aligned_watchpoint): Likewise.
10471 (aarch64_handle_unaligned_watchpoint): Likewise.
10472 (aarch64_handle_watchpoint): Likewise.
10473
c67ca4de
YQ
104742015-07-17 Yao Qi <yao.qi@linaro.org>
10475
10476 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10477 and don't aarch64_get_debug_reg_state. All callers update.
10478 (aarch64_handle_aligned_watchpoint): Likewise.
10479 (aarch64_handle_unaligned_watchpoint): Likewise.
10480 (aarch64_handle_watchpoint): Likewise.
10481 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10482 (aarch64_remove_point): Likewise.
10483
25abf979
YQ
104842015-07-17 Yao Qi <yao.qi@linaro.org>
10485
10486 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10487 debug_printf.
10488 (aarch64_handle_unaligned_watchpoint): Likewise.
10489
db1ff28b
JK
104902015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10491
10492 Revert the previous 3 commits:
10493 Move gdb_regex* to common/
10494 Move linux_find_memory_regions_full & co.
10495 gdbserver build-id attribute generator
10496
700ca40f
JK
104972015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10498 Jan Kratochvil <jan.kratochvil@redhat.com>
10499
10500 gdbserver build-id attribute generator.
10501 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10502 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10503 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10504 (find_phdr): New.
10505 (get_dynamic): Use find_pdhr to traverse program headers.
10506 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10507 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10508 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10509 (get_hex_build_id): New.
10510 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10511 to reply XML document.
10512
9904185c
JK
105132015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10514 Jan Kratochvil <jan.kratochvil@redhat.com>
10515
10516 * target.c: Include target/target-utils.h and fcntl.h.
10517 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10518 (target_fileio_read_stralloc): New functions.
10519
6e5b4429
JK
105202015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10521
10522 * Makefile.in (OBS): Add gdb_regex.o.
10523 (gdb_regex.o): New.
10524 * config.in: Rebuilt.
10525 * configure: Rebuilt.
10526
ddc98fbf
JK
105272015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10528 Jan Kratochvil <jan.kratochvil@redhat.com>
10529
10530 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10531 * Makefile.in (OBS): Add target-utils.o.
10532 (linux-maps.o, target-utils.o): New.
10533 * configure.srv (srv_linux_obj): Add linux-maps.o.
10534
e57bb7a0
PL
105352015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10536
10537 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10538 function, return 1.
10539 (the_low_target): Install it.
10540
586b02a9
PA
105412015-07-14 Pedro Alves <palves@redhat.com>
10542
10543 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10544 Instead, ignore ECHILD, and throw an error for other errnos.
10545
58c1b36c
PA
105462015-07-10 Pedro Alves <palves@redhat.com>
10547
10548 * event-loop.c (struct callback_event) <data>: Change type to
10549 gdb_client_data instance instead of gdb_client_data pointer.
10550 (append_callback_event): Adjust.
10551
421530db
PL
105522015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10553
10554 * linux-aarch64-low.c: Add comments for each linux_target_ops
10555 method. Remove comments already covered in target_ops and
10556 linux_target_ops definitions.
10557 (the_low_target): Add comments for each unimplemented method.
10558
c2d65f38
YQ
105592015-07-09 Yao Qi <yao.qi@linaro.org>
10560
10561 * linux-aarch64-low.c (aarch64_regmap): Remove.
10562 (aarch64_usrregs_info): Remove.
10563 (regs_info): Set field usrregs to NULL.
10564
b20a6524
MM
105652015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10566
10567 * linux-low.c: Include "rsp-low.h"
10568 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10569 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10570 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10571 (handle_btrace_enable_pt): New.
10572 (handle_btrace_general_set): Support "pt".
10573 (handle_btrace_conf_general_set): Support "pt:size".
10574
96c97461
PL
105752015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10576
10577 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10578 Z_PACKET_SW_BP.
10579
37d66942
PL
105802015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10581
10582 * linux-aarch64-low.c: Remove comment about endianness.
10583 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10584 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10585 memcmp.
10586
dc06243f
GB
105872015-06-24 Gary Benson <gbenson@redhat.com>
10588
10589 * linux-i386-ipa.c (stdint.h): Do not include.
10590 * lynx-i386-low.c (stdint.h): Likewise.
10591 * lynx-ppc-low.c (stdint.h): Likewise.
10592 * mem-break.c (stdint.h): Likewise.
10593 * thread-db.c (stdint.h): Likewise.
10594 * tracepoint.c (stdint.h): Likewise.
10595 * win32-low.c (stdint.h): Likewise.
10596
124e13d9
SM
105972015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10598
10599 * server.c (write_qxfer_response): Update call to
10600 remote_escape_output.
10601
909c2cda
JK
106022015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10603 Jan Kratochvil <jan.kratochvil@redhat.com>
10604
10605 Merge multiple hex conversions.
10606 * gdbreplay.c (tohex): Rename to 'fromhex'.
10607 (logchar): Use fromhex.
10608
24c05f46
JK
106092015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10610
10611 * server.c (handle_qxfer_libraries): Set `version' attribute for
10612 <library-list>.
10613
14d2069a
GB
106142015-06-10 Gary Benson <gbenson@redhat.com>
10615
10616 * target.h (struct target_ops) <multifs_open>: New field.
10617 <multifs_unlink>: Likewise.
10618 <multifs_readlink>: Likewise.
10619 * linux-low.c (nat/linux-namespaces.h): New include.
10620 (linux_target_ops): Initialize the_target->multifs_open,
10621 the_target->multifs_unlink and the_target->multifs_readlink.
10622 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10623 * hostio.c (hostio_fs_pid): New static variable.
10624 (hostio_handle_new_gdb_connection): New function.
10625 (handle_setfs): Likewise.
10626 (handle_open): Use the_target->multifs_open as appropriate.
10627 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10628 (handle_readlink): Use the_target->multifs_readlink as
10629 appropriate.
10630 (handle_vFile): Handle vFile:setfs packets.
10631 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10632 after target_handle_new_gdb_connection.
10633
4b8b5e72
GB
106342015-06-10 Gary Benson <gbenson@redhat.com>
10635
10636 * configure.ac (AC_CHECK_FUNCS): Add setns.
10637 * config.in: Regenerate.
10638 * configure: Likewise.
10639 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10640 (linux-namespaces.o): New rule.
10641 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10642
3ac2e371
GB
106432015-06-09 Gary Benson <gbenson@redhat.com>
10644
10645 * hostio.c (handle_open): Process mode argument with
10646 fileio_to_host_mode.
10647
ca9b78ce
YQ
106482015-06-01 Yao Qi <yao.qi@linaro.org>
10649
10650 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10651 * linux-x86-low.c: Likewise.
10652
bfacd19d
DB
106532015-05-28 Don Breazeal <donb@codesourcery.com>
10654
10655 * linux-low.c (handle_extended_wait): Initialize
10656 thread_info.last_resume_kind for new fork children.
10657
452003ef
PA
106582015-05-15 Pedro Alves <palves@redhat.com>
10659
10660 * target.h (target_handle_new_gdb_connection): Rewrite using if
10661 wrapped in do/while.
10662
1041a03c
JB
106632015-05-14 Joel Brobecker <brobecker@adacore.com>
10664
10665 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10666 * configure, config.in: Regenerate.
10667 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10668 Declare typedef.
10669
c269dbdb
DB
106702015-05-12 Don Breazeal <donb@codesourcery.com>
10671
10672 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10673 PTRACE_EVENT_VFORK_DONE.
10674 (linux_low_ptrace_options, extended_event_reported): Add vfork
10675 events.
10676 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10677 and "vforkdone" for RSP 'T' Stop Reply Packet.
10678 * server.h (report_vfork_events): Declare
10679 global variable.
10680
3a8a0396
DB
106812015-05-12 Don Breazeal <donb@codesourcery.com>
10682
10683 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10684 (the_low_target) <new_fork>: Initialize new member.
10685 * linux-arm-low.c (arm_new_fork): New function.
10686 (the_low_target) <new_fork>: Initialize new member.
10687 * linux-low.c (handle_extended_wait): Call new target function
10688 new_fork.
10689 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10690 * linux-mips-low.c (mips_add_watchpoint): New function
10691 extracted from mips_insert_point.
10692 (the_low_target) <new_fork>: Initialize new member.
10693 (mips_linux_new_fork): New function.
10694 (mips_insert_point): Call mips_add_watchpoint.
10695 * linux-x86-low.c (x86_linux_new_fork): New function.
10696 (the_low_target) <new_fork>: Initialize new member.
10697
de0d863e
DB
106982015-05-12 Don Breazeal <donb@codesourcery.com>
10699
10700 * linux-low.c (handle_extended_wait): Implement return value,
10701 rename argument 'event_child' to 'event_lwp', handle
10702 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10703 (linux_low_ptrace_options): New function.
10704 (linux_low_filter_event): Call linux_low_ptrace_options,
10705 use different argument fo linux_enable_event_reporting,
10706 use return value from handle_extended_wait.
10707 (extended_event_reported): New function.
10708 (linux_wait_1): Call extended_event_reported and set
10709 status to report fork events.
10710 (linux_write_memory): Add pid to debug message.
10711 (reset_lwp_ptrace_options_callback): New function.
10712 (linux_handle_new_gdb_connection): New function.
10713 (linux_target_ops): Initialize new structure member.
10714 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10715 * lynx-low.c: Initialize new structure member.
10716 * remote-utils.c (prepare_resume_reply): Implement stop reason
10717 "fork" for "T" stop message.
10718 * server.c (handle_query): Call handle_new_gdb_connection.
10719 * server.h (report_fork_events): Declare global flag.
10720 * target.h (struct target_ops) <handle_new_gdb_connection>:
10721 New member.
10722 (target_handle_new_gdb_connection): New macro.
10723 * win32-low.c: Initialize new structure member.
10724
ddcbc397
DB
107252015-05-12 Don Breazeal <donb@codesourcery.com>
10726
10727 * mem-break.c (APPEND_TO_LIST): Define macro.
10728 (clone_agent_expr): New function.
10729 (clone_one_breakpoint): New function.
10730 (clone_all_breakpoints): New function.
10731 * mem-break.h: Declare new functions.
10732
89245bc0
DB
107332015-05-12 Don Breazeal <donb@codesourcery.com>
10734
10735 * linux-low.c (linux_supports_fork_events): New function.
10736 (linux_supports_vfork_events): New function.
10737 (linux_target_ops): Initialize new structure members.
10738 (initialize_low): Call linux_check_ptrace_features.
10739 * lynx-low.c (lynx_target_ops): Initialize new structure
10740 members.
10741 * server.c (report_fork_events, report_vfork_events):
10742 New global flags.
10743 (handle_query): Add new features to qSupported packet and
10744 response.
10745 (captured_main): Initialize new global variables.
10746 * target.h (struct target_ops) <supports_fork_events>:
10747 New member.
10748 <supports_vfork_events>: New member.
10749 (target_supports_fork_events): New macro.
10750 (target_supports_vfork_events): New macro.
10751 * win32-low.c (win32_target_ops): Initialize new structure
10752 members.
10753
835205d0
GB
107542015-05-12 Gary Benson <gbenson@redhat.com>
10755
10756 * server.c (handle_qxfer_exec_file): Use current process
10757 if annex is empty.
10758
21e94bd9
SL
107592015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10760
10761 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10762 Remove HAVE_PTRACE_GETREGS conditionals.
10763 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10764 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10765
45614f15
YQ
107662015-05-08 Yao Qi <yao.qi@linaro.org>
10767
10768 * linux-low.c (linux_supports_conditional_breakpoints): New
10769 function.
10770 (linux_target_ops): Install new target method.
10771 * lynx-low.c (lynx_target_ops): Install NULL hook for
10772 supports_conditional_breakpoints.
10773 * nto-low.c (nto_target_ops): Likewise.
10774 * spu-low.c (spu_target_ops): Likewise.
10775 * win32-low.c (win32_target_ops): Likewise.
10776 * server.c (handle_query): Check
10777 target_supports_conditional_breakpoints.
10778 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10779 New field.
10780 (target_supports_conditional_breakpoints): New macro.
10781
80ad801e
PA
107822015-05-06 Pedro Alves <palves@redhat.com>
10783
10784 PR server/18081
10785 * server.c (start_inferior): If the process exits, mourn it.
10786
819843c7
GB
107872015-04-21 Gary Benson <gbenson@redhat.com>
10788
10789 * hostio.c (fileio_open_flags_to_host): Factored out to
10790 fileio_to_host_openflags in common/fileio.c. Single use
10791 updated.
10792
a2d5a9d7
MF
107932015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10794
10795 * linux-xtensa-low.c (xtensa_fill_gregset)
10796 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10797 XCHAL_HAVE_LOOP.
10798
deb44829
MF
107992015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10800
10801 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10802 (regs_info): Replace usrregs pointer with NULL.
10803
e57f1de3
GB
108042015-04-17 Gary Benson <gbenson@redhat.com>
10805
10806 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10807 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10808 * server.c (handle_qxfer_exec_file): New function.
10809 (qxfer_packets): Add exec-file entry.
10810 (handle_query): Report qXfer:exec-file:read as supported packet.
10811
62828379
RN
108122015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10813
10814 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10815
b88bb450
GB
108162015-04-09 Gary Benson <gbenson@redhat.com>
10817
10818 * hostio-errno.c (errno_to_fileio_error): Remove function.
10819 Update caller to use remote_fileio_to_fio_error.
10820
c8f4bfdd
YQ
108212015-04-09 Yao Qi <yao.qi@linaro.org>
10822
10823 * linux-low.c (linux_insert_point): Call
10824 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10825 (linux_remove_point): Call remove_memory_breakpoint if type is
10826 raw_bkpt_type_sw.
10827 * linux-x86-low.c (x86_insert_point): Don't call
10828 insert_memory_breakpoint.
10829 (x86_remove_point): Don't call remove_memory_breakpoint.
10830
41f98f02
PA
108312015-04-01 Pedro Alves <palves@redhat.com>
10832 Cleber Rosa <crosa@redhat.com>
10833
10834 * server.c (gdbserver_usage): Reorganize and extend the usage
10835 message.
10836
2bf6fb9d
PA
108372015-03-24 Pedro Alves <palves@redhat.com>
10838
10839 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10840 output. Also dump TRAP_TRACE.
10841 (linux_low_filter_event): In debug output, distinguish a
10842 resume_stop SIGSTOP from a delayed SIGSTOP.
10843
369f6daa
GB
108442015-03-24 Gary Benson <gbenson@redhat.com>
10845
10846 * linux-x86-low.c (x86_linux_new_thread): Moved to
10847 nat/x86-linux.c.
10848 (x86_linux_prepare_to_resume): Likewise.
10849
8e5d4070
GB
108502015-03-24 Gary Benson <gbenson@redhat.com>
10851
10852 * Makefile.in (x86-linux-dregs.o): New rule.
10853 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10854 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10855 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10856 (x86_linux_dr_get): Likewise.
10857 (x86_linux_dr_set): Likewise.
10858 (update_debug_registers_callback): Likewise.
10859 (x86_linux_dr_set_addr): Likewise.
10860 (x86_linux_dr_get_addr): Likewise.
10861 (x86_linux_dr_set_control): Likewise.
10862 (x86_linux_dr_get_control): Likewise.
10863 (x86_linux_dr_get_status): Likewise.
10864 (x86_linux_update_debug_registers): Likewise.
10865
2b95d440
GB
108662015-03-24 Gary Benson <gbenson@redhat.com>
10867
10868 * linux-x86-low.c (x86_linux_update_debug_registers):
10869 New function, factored out from...
10870 (x86_linux_prepare_to_resume): ...this.
10871
14b0bc68
GB
108722015-03-24 Gary Benson <gbenson@redhat.com>
10873
10874 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10875 (x86_linux_dr_set): Likewise.
10876 (update_debug_registers_callback): Likewise.
10877 (x86_linux_dr_set_addr): Likewise.
10878 (x86_linux_dr_get_addr): Likewise.
10879 (x86_linux_dr_set_control): Likewise.
10880 (x86_linux_dr_get_control): Likewise.
10881 (x86_linux_dr_get_status): Likewise.
10882 (x86_linux_prepare_to_resume): Likewise.
10883
5dfe6ca8
GB
108842015-03-24 Gary Benson <gbenson@redhat.com>
10885
10886 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10887 Use perror_with_name. Pass string through gettext.
10888 (x86_linux_dr_set): Likewise.
10889
d33472ad
GB
108902015-03-24 Gary Benson <gbenson@redhat.com>
10891
10892 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10893 (x86_linux_dr_set_addr): ...this.
10894 (x86_dr_low_get_addr): Rename to...
10895 (x86_linux_dr_get_addr): ...this.
10896 (x86_dr_low_set_control): Rename to...
10897 (x86_linux_dr_set_control): ...this.
10898 (x86_dr_low_get_control): Rename to...
10899 (x86_linux_dr_get_control): ...this.
10900 (x86_dr_low_get_status): Rename to...
10901 (x86_linux_dr_get_status): ...this.
10902 (x86_dr_low): Update with new function names.
10903
4b134ca1
GB
109042015-03-24 Gary Benson <gbenson@redhat.com>
10905
10906 * Makefile.in (x86-linux.o): New rule.
10907 * configure.srv: Add x86-linux.o to relevant targets.
10908 * linux-low.c (lwp_set_arch_private_info): New function.
10909 (lwp_arch_private_info): Likewise.
10910 * linux-x86-low.c: Include nat/x86-linux.h.
10911 (arch_lwp_info): Removed structure.
10912 (update_debug_registers_callback):
10913 Use lwp_set_debug_registers_changed.
10914 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10915 and lwp_set_debug_registers_changed.
10916 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10917
34c703da
GB
109182015-03-24 Gary Benson <gbenson@redhat.com>
10919
10920 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10921 * linux-arm-low.c (arm_new_thread): Likewise.
10922 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10923 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10924 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10925 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10926
cff068da
GB
109272015-03-24 Gary Benson <gbenson@redhat.com>
10928
10929 * linux-low.c (ptid_of_lwp): New function.
10930 (lwp_is_stopped): Likewise.
10931 (lwp_stop_reason): Likewise.
10932 * linux-x86-low.c (update_debug_registers_callback):
10933 Use lwp_is_stopped.
10934 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10935 lwp_stop_reason.
10936
b2f7c7e8
GB
109372015-03-24 Gary Benson <gbenson@redhat.com>
10938
10939 * linux-low.h (linux_stop_lwp): Remove declaration.
10940
6d4ee8c6
GB
109412015-03-24 Gary Benson <gbenson@redhat.com>
10942
10943 * linux-low.h: Include nat/linux-nat.h.
10944 * linux-low.c (iterate_over_lwps_args): New structure.
10945 (iterate_over_lwps_filter): New function.
10946 (iterate_over_lwps): Likewise.
10947 * linux-x86-low.c (update_debug_registers_callback):
10948 Update signature to what iterate_over_lwps expects.
10949 Remove PID check that iterate_over_lwps now performs.
10950 (x86_dr_low_set_addr): Use iterate_over_lwps.
10951 (x86_dr_low_set_control): Likewise.
10952
70a0bb6b
GB
109532015-03-24 Gary Benson <gbenson@redhat.com>
10954
10955 * linux-x86-low.c (x86_debug_reg_state): New function.
10956 (x86_linux_prepare_to_resume): Use the above.
10957
7b669087
GB
109582015-03-24 Gary Benson <gbenson@redhat.com>
10959
10960 * linux-low.c (current_lwp_ptid): New function.
10961 * linux-x86-low.c: Include nat/linux-nat.h.
10962 (x86_dr_low_get_addr): Use current_lwp_ptid.
10963 (x86_dr_low_get_control): Likewise.
10964 (x86_dr_low_get_status): Likewise.
10965
eef49a3d
PA
109662015-03-20 Pedro Alves <palves@redhat.com>
10967
10968 * tracepoint.c (cmd_qtstatus): Make "str" const.
10969
b2333d22
PA
109702015-03-20 Pedro Alves <palves@redhat.com>
10971
10972 * server.c (handle_general_set): Make "req_str" const.
10973
23f238d3
PA
109742015-03-19 Pedro Alves <palves@redhat.com>
10975
10976 * linux-low.c (linux_resume_one_lwp): Rename to ...
10977 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10978 instead call perror_with_name.
10979 (check_ptrace_stopped_lwp_gone): New function.
10980 (linux_resume_one_lwp): Reimplement as wrapper around
10981 linux_resume_one_lwp_throw that swallows errors if the LWP is
10982 gone.
10983
91baf43f
PA
109842015-03-19 Pedro Alves <palves@redhat.com>
10985
10986 * linux-low.c (count_events_callback, select_event_lwp_callback):
10987 No longer check whether the thread has resume_stop as last resume
10988 kind.
10989
8bf3b159
PA
109902015-03-19 Pedro Alves <palves@redhat.com>
10991
10992 * linux-low.c (count_events_callback, select_event_lwp_callback):
10993 Use the lwp's status_pending_p field, not the thread's.
10994
b90fc188
PA
109952015-03-19 Pedro Alves <palves@redhat.com>
10996
10997 * linux-low.c (select_event_lwp_callback): Update comments to
10998 no longer mention SIGTRAP.
10999
464b0089
GB
110002015-03-18 Gary Benson <gbenson@redhat.com>
11001
11002 * server.c (handle_query): Do not report vFile:fstat as supported.
11003
aa9e327f
GB
110042015-03-11 Gary Benson <gbenson@redhat.com>
11005
11006 * hostio.c (sys/types.h): New include.
11007 (sys/stat.h): Likewise.
11008 (common-remote-fileio.h): Likewise.
11009 (handle_fstat): New function.
11010 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11011
791c0056
GB
110122015-03-11 Gary Benson <gbenson@redhat.com>
11013
11014 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11015 struct stat.st_blocks and struct stat.st_blksize.
11016 * configure: Regenerate.
11017 * config.in: Likewise.
11018 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11019 (OBS): Add common-remote-fileio.o.
11020 (common-remote-fileio.o): New rule.
11021
9a9df970
PA
110222015-03-09 Pedro Alves <palves@redhat.com>
11023
11024 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11025 'struct sockaddr' pointer in 'accept' call.
11026
9eb1356e
PA
110272015-03-09 Pedro Alves <palves@redhat.com>
11028
11029 Revert:
11030 2015-03-07 Pedro Alves <palves@redhat.com>
11031 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11032 or <winsock2.h> here. Instead include "gdb_socket.h".
11033 (remote_open): Use union gdb_sockaddr_u.
11034 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11035 or <winsock2.h> here. Instead include "gdb_socket.h".
11036 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11037 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11038 or <sys/un.h>.
11039 (init_named_socket, gdb_agent_helper_thread): Use union
11040 gdb_sockaddr_u.
11041
aac331e4
PA
110422015-03-07 Pedro Alves <palves@redhat.com>
11043
11044 * configure.ac (build_warnings): Move
11045 -Wdeclaration-after-statement to the C-specific set.
11046 * configure: Regenerate.
11047
366c75fc
PA
110482015-03-07 Pedro Alves <palves@redhat.com>
11049
11050 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11051 or <winsock2.h> here. Instead include "gdb_socket.h".
11052 (remote_open): Use union gdb_sockaddr_u.
11053 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11054 or <winsock2.h> here. Instead include "gdb_socket.h".
11055 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11056 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11057 or <sys/un.h>.
11058 (init_named_socket, gdb_agent_helper_thread): Use union
11059 gdb_sockaddr_u.
11060
492d29ea
PA
110612015-03-07 Pedro Alves <palves@redhat.com>
11062
11063 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11064 instead.
11065
60a191ed
YQ
110662015-03-06 Yao Qi <yao.qi@linaro.org>
11067
11068 * linux-aarch64-low.c (aarch64_insert_point): Use
11069 show_debug_regs as a boolean.
11070 (aarch64_remove_point): Likewise.
11071
f5771b1d
PA
110722015-03-05 Pedro Alves <palves@redhat.com>
11073
11074 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11075 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11076 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11077 * nto-low.c (nto_target_ops): Likewise.
11078 * spu-low.c (spu_target_ops): Likewise.
11079 * win32-low.c (win32_target_ops): Likewise.
11080
3e572f71
PA
110812015-03-04 Pedro Alves <palves@redhat.com>
11082
72f4393d 11083 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11084 Decide whether a breakpoint triggered based on the SIGTRAP's
11085 siginfo.si_code.
72f4393d
L
11086 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11087 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11088 (linux_low_filter_event): Check for breakpoints before checking
11089 watchpoints.
11090 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11091 siginfo.si_code.
72f4393d
L
11092 (linux_stopped_by_sw_breakpoint)
11093 (linux_supports_stopped_by_sw_breakpoint)
11094 (linux_stopped_by_hw_breakpoint)
11095 (linux_supports_stopped_by_hw_breakpoint): New functions.
11096 (linux_target_ops): Install new target methods.
3e572f71 11097
1ec68e26
PA
110982015-03-04 Pedro Alves <palves@redhat.com>
11099
11100 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11101 * server.c (swbreak_feature, hwbreak_feature): New globals.
11102 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11103 (captured_main): Clear swbreak_feature and hwbreak_feature.
11104 * server.h (swbreak_feature, hwbreak_feature): Declare.
11105 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11106 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11107 supports_stopped_by_hw_breakpoint>: New fields.
11108 (target_supports_stopped_by_sw_breakpoint)
11109 (target_stopped_by_sw_breakpoint)
11110 (target_supports_stopped_by_hw_breakpoint)
11111 (target_stopped_by_hw_breakpoint): Declare.
11112
15c66dd6
PA
111132015-03-04 Pedro Alves <palves@redhat.com>
11114
11115 enum lwp_stop_reason -> enum target_stop_reason
11116 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11117 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11118 (linux_wait_1, stuck_in_jump_pad_callback)
11119 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11120 (linux_stopped_by_watchpoint):
11121 * linux-low.h (enum lwp_stop_reason): Delete.
11122 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11123 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11124
98fc70d6
YQ
111252015-03-04 Yao Qi <yao.qi@linaro.org>
11126
11127 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11128
dd2ac174
GB
111292015-03-03 Gary Benson <gbenson@redhat.com>
11130
11131 * hostio.c (handle_vFile): Fix prefix lengths.
11132
d68e53f4
MM
111332015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11134
11135 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11136 ptr_bits.
11137
bf2d68ab
AA
111382015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11139
11140 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11141 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11142 (clean): Add "rm -f" for above C files.
11143 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11144 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11145 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11146 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11147 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11148 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11149 (init_registers_s390x_vx_linux64)
11150 (init_registers_s390x_tevx_linux64)
11151 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11152 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11153 declarations.
11154 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11155 (s390_store_vxrs_high): New functions.
11156 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11157 NT_S390_VXRS_HIGH.
11158 (s390_arch_setup): Add logic for selecting one of the new target
11159 descriptions. Activate the new vector regsets if applicable.
11160 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11161 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11162 and init_registers_s390x_tevx_linux64.
11163
c966a859
PA
111642015-03-01 Pedro Alves <palves@redhat.com>
11165
11166 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11167 parameter.
11168
4180215b
PA
111692015-02-27 Pedro Alves <palves@redhat.com>
11170
11171 * linux-x86-low.c (u_debugreg_offset): New function.
11172 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11173
749bab01
PA
111742015-02-27 Pedro Alves <palves@redhat.com>
11175
11176 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11177 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11178 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11179 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11180 (ps_lsetfpregs, ps_getpid)
11181 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11182 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11183 (ps_lsetxregs, ps_plog): Declare.
11184
3c14e5a3
PA
111852015-02-27 Pedro Alves <palves@redhat.com>
11186
11187 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11188 IP_AGENT_EXPORT_FUNC.
11189 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11190 IP_AGENT_EXPORT_FUNC.
11191 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11192 (IP_AGENT_EXPORT): Delete.
11193 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11194 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11195 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11196 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11197 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11198 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11199 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11200 (traceframe_read_count, traceframe_write_count)
11201 (traceframes_created, trace_state_variables, get_raw_reg)
11202 (get_trace_state_variable_value, set_trace_state_variable_value)
11203 (ust_loaded, helper_thread_id, cmd_buf): Use
11204 IPA_SYM_EXPORTED_NAME.
11205 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11206 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11207 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11208 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11209 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11210 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11211 EXTERN_C_PUSH/EXTERN_C_POP.
11212 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11213 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11214 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11215 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11216 (traceframe_write_count, traceframe_read_count)
11217 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11218 (about_to_request_buffer_space, get_trace_state_variable_value)
11219 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11220 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11221 EXTERN_C_PUSH/EXTERN_C_POP.
11222 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11223 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11224 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11225 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11226 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11227 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11228 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11229 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11230 Define.
11231 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11232 (IP_AGENT_EXPORT_VAR_DECL): Define.
11233 (tracing): Declare.
11234 (gdb_agent_get_raw_reg): Declare.
11235
fe978cb0
PA
112362015-02-27 Tom Tromey <tromey@redhat.com>
11237 Pedro Alves <palves@redhat.com>
11238
11239 Rename symbols whose names are reserved C++ keywords throughout.
11240
3bc3d82a
PA
112412015-02-27 Pedro Alves <palves@redhat.com>
11242
11243 * Makefile.in (COMPILER): New, get it from autoconf.
11244 (CXX): Get from autoconf instead.
11245 (COMPILE.pre): Use COMPILER.
11246 (CC-LD): Rename to ...
11247 (CC_LD): ... this. Use COMPILER.
11248 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11249 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11250 * acinclude.m4: Include build-with-cxx.m4.
11251 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11252 Disable -Werror by default if building in C++ mode.
11253 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11254 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11255 the C++ compiler. Save/restore CXXFLAGS too.
11256 * configure: Regenerate.
11257
07697489
PA
112582015-02-27 Pedro Alves <palves@redhat.com>
11259
11260 * acinclude.m4: Include libiberty.m4.
11261 * configure.ac: Call libiberty_INIT.
11262 * config.in, configure: Regenerate.
11263
9beb7c4e
PA
112642015-02-26 Pedro Alves <palves@redhat.com>
11265
11266 * linux-low.c (linux_wait_1): When incrementing the PC past a
11267 program breakpoint always use the_low_target.breakpoint_len as
11268 increment, rather than the maximum between that and
11269 the_low_target.decr_pc_after_break.
11270
8090aef2
PA
112712015-02-23 Pedro Alves <palves@redhat.com>
11272
11273 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11274 thread was doing a step-over; always adjust the PC if
11275 we stepped over a permanent breakpoint.
11276 (linux_wait_1): If we stepped over breakpoint that was on top of a
11277 permanent breakpoint, manually advance the PC past it.
11278
bc9540e8
PA
112792015-02-23 Pedro Alves <palves@redhat.com>
11280
11281 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11282 modes.
11283 (x86_fill_gregset, x86_store_gregset): Use it when handling
11284 $orig_eax.
11285
2db9a427
PA
112862015-02-20 Pedro Alves <palves@redhat.com>
11287
11288 * thread-db.c: Include "nat/linux-procfs.h".
11289 (thread_db_init): Skip listing new threads if the kernel supports
11290 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11291
afa8d396
PA
112922015-02-20 Pedro Alves <palves@redhat.com>
11293
11294 * linux-low.c (status_pending_p_callback): Use ptid_match.
11295
c9587f88
AT
112962015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11297
11298 PR breakpoints/16812
11299 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11300 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11301 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11302
b05ec7a5
AT
113032015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11304
11305 PR breakpoints/15956
11306 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11307
d33501a5
MM
113082015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11309
11310 * linux-low.c (linux_low_btrace_conf): Print size.
11311 * server.c (handle_btrace_conf_general_set): New.
11312 (hanle_general_set): Call handle_btrace_conf_general_set.
11313 (handle_query): Report Qbtrace-conf:bts:size as supported.
11314
f4abbc16
MM
113152015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11316
11317 * linux-low.c (linux_low_enable_btrace): Update parameters.
11318 (linux_low_btrace_conf): New.
11319 (linux_target_ops)<to_btrace_conf>: Initialize.
11320 * server.c (current_btrace_conf): New.
11321 (handle_btrace_enable): Rename to ...
11322 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11323 to target_enable_btrace. Update comment. Update users.
11324 (handle_qxfer_btrace_conf): New.
11325 (qxfer_packets): Add btrace-conf entry.
11326 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11327 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11328 (target_ops)<read_btrace_conf>: New.
11329 (target_enable_btrace): Update parameters.
11330 (target_read_btrace_conf): New.
11331
043c3577
MM
113322015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11333
11334 * server.c (handle_btrace_general_set): Remove call to
11335 target_supports_btrace.
11336 (supported_btrace_packets): New.
11337 (handle_query): Call supported_btrace_packets.
11338 * target.h: include btrace-common.h.
11339 (btrace_target_info): Removed.
11340 (supports_btrace, target_supports_btrace): Update parameters.
11341
734b0e4b
MM
113422015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11343
11344 * Makefile.in (SFILES): Add common/btrace-common.c.
11345 (OBS): Add common/btrace-common.o.
11346 (btrace-common.o): Add build rules.
11347 * linux-low: Include btrace-common.h.
11348 (linux_low_read_btrace): Use struct btrace_data. Call
11349 btrace_data_init and btrace_data_fini.
11350
d6c146e9
PA
113512015-02-06 Pedro Alves <palves@redhat.com>
11352
11353 * thread-db.c (find_new_threads_callback): Add debug output.
11354
20ba1ce6
PA
113552015-02-04 Pedro Alves <palves@redhat.com>
11356
11357 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11358 (resume_stopped_resumed_lwps): New function.
11359 (linux_wait_for_event_filtered): Use it.
11360
8cc73a39
SDJ
113612015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11362
11363 * Makefile.in (SFILES): Add linux-personality.c.
11364 (linux-personality.o): New rule.
11365 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11366 list of objects to be built.
11367 * linux-low.c: Include nat/linux-personality.h.
11368 (linux_create_inferior): Remove code to disable address space
11369 randomization (moved to ../nat/linux-personality.c). Create
11370 cleanup to disable address space randomization.
11371
fb23d554
SDJ
113722015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11373
11374 * Makefile.in (posix-strerror.o): New rule.
11375 (mingw-strerror.o): Likewise.
11376 * configure: Regenerated.
11377 * configure.ac: Source file ../common/common.host. Initialize new
11378 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11379
cdf43629
YQ
113802015-01-14 Yao Qi <yao@codesourcery.com>
11381
11382 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11383 (ppc-linux.o): New rule.
11384 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11385 * configure.ac: AC_CHECK_FUNCS(getauxval).
11386 * config.in: Re-generated.
11387 * configure: Re-generated.
11388 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11389 ppc64_64bit_inferior_p
11390
514c5338
YQ
113912015-01-14 Yao Qi <yao@codesourcery.com>
11392
11393 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11394 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11395 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11396 (PT_ORIG_R3, PT_TRAP): Likewise.
11397 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11398 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11399 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11400
3368c1e5
JB
114012015-01-10 Joel Brobecker <brobecker@adacore.com>
11402
11403 * i387-fp.c (i387_cache_to_xsave): In look over
11404 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11405 zmmh_low_space field by use of zmmh_high_space.
11406
582511be
PA
114072015-01-09 Pedro Alves <palves@redhat.com>
11408
11409 * linux-low.c (step_over_bkpt): Move higher up in the file.
11410 (handle_extended_wait): Don't store the stop_pc here.
11411 (get_stop_pc): Adjust comments and rename to ...
11412 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11413 stopped for a software breakpoint or hardware breakpoint.
11414 (thread_still_has_status_pending_p): New function.
11415 (status_pending_p_callback): Use
11416 thread_still_has_status_pending_p. If the event is no longer
11417 interesting, resume the LWP.
11418 (handle_tracepoints): Add assert.
11419 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11420 (wstatus_maybe_breakpoint): New function.
11421 (cancel_breakpoint): Delete function.
11422 (check_stopped_by_watchpoint): New function, factored out from
11423 linux_low_filter_event.
11424 (lp_status_maybe_breakpoint): Delete function.
11425 (linux_low_filter_event): Remove filter_ptid argument.
11426 Leave thread group exits pending here. Store the LWP's stop PC.
11427 Always leave events pending.
11428 (linux_wait_for_event_filtered): Pull all events out of the
11429 kernel, and leave them all pending.
11430 (count_events_callback, select_event_lwp_callback): Consider all
11431 events.
11432 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11433 (select_event_lwp): Only give preference to the stepping LWP in
11434 all-stop mode. Adjust comments.
11435 (ignore_event): New function.
11436 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11437 references to cancel_breakpoints. Adjust to renames. Also give
11438 equal priority to all LWPs that have had events in non-stop mode.
11439 If reporting a software breakpoint event, unadjust the LWP's PC.
11440 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11441 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11442 Adjust.
11443 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11444 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11445 (linux_stopped_by_watchpoint): Adjust.
11446 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11447 * linux-low.h (enum lwp_stop_reason): New.
11448 (struct lwp_info) <stop_pc>: Adjust comment.
11449 <stopped_by_watchpoint>: Delete field.
11450 <stop_reason>: New field.
11451 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11452 * mem-break.c (software_breakpoint_inserted_here)
11453 (hardware_breakpoint_inserted_here): New function.
11454 * mem-break.h (software_breakpoint_inserted_here)
11455 (hardware_breakpoint_inserted_here): Declare.
11456 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11457 (cancel_breakpoints): Delete.
11458 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11459 (upload_fast_traceframes): Remove references to
11460 cancel_breakpoints.
11461
a33e3959
PA
114622015-01-09 Pedro Alves <palves@redhat.com>
11463
11464 * thread-db.c (find_new_threads_callback): Ignore thread if the
11465 kernel thread ID is -1.
11466
8784d563
PA
114672015-01-09 Pedro Alves <palves@redhat.com>
11468
11469 * linux-low.c (linux_attach_fail_reason_string): Move to
11470 nat/linux-ptrace.c, and rename.
11471 (linux_attach_lwp): Update comment.
11472 (attach_proc_task_lwp_callback): New function.
11473 (linux_attach): Adjust to rename and use
11474 linux_proc_attach_tgid_threads.
11475 (linux_attach_fail_reason_string): Delete declaration.
11476
76f2b779
JB
114772015-01-01 Joel Brobecker <brobecker@adacore.com>
11478
11479 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11480 * server.c (gdbserver_version): Likewise.
11481
fafcc06a
SDJ
114822014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11483
11484 * remote-utils.c: Include ctype.h.
11485 (input_interrupt): Explicitly handle the case when the char
11486 received is the NUL byte. Improve the printing of non-ASCII
11487 characters.
11488
beed38b8
JB
114892014-12-16 Joel Brobecker <brobecker@adacore.com>
11490
11491 * linux-low.c (linux_low_filter_event): Update call to
11492 linux_enable_event_reporting following the addition of
11493 a new parameter to that function.
11494
bf330350
CU
114952014-12-16 Catalin Udma <catalin.udma@freescale.com>
11496
11497 PR server/17457
11498 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11499 (AARCH64_FPCR_REGNO): Likewise.
11500 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11501 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11502 (aarch64_store_fpregset): Likewise.
11503
5227d625
JB
115042014-12-15 Joel Brobecker <brobecker@adacore.com>
11505
11506 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11507 Remove FIXME comment about assumption about N.
11508
f93b65a0
JB
115092014-12-13 Joel Brobecker <brobecker@adacore.com>
11510
11511 * configure.ac: If large-file support is disabled in GDBserver,
11512 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11513 * configure: Regenerate.
11514
e5a9158d
AA
115152014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11516
11517 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11518 warning upon ENODATA from ptrace.
11519 * linux-s390-low.c (s390_store_tdb): New.
11520 (s390_regsets): Add regset for NT_S390_TDB.
11521
feea5f36
AA
115222014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11523
11524 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11525 without a fill_function.
11526 * linux-s390-low.c (s390_fill_last_break): Remove.
11527 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11528 (s390_arch_setup): Use regset's size instead of fill_function for
11529 loop end condition.
11530
098dbe61
AA
115312014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11532
11533 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11534 the regset's store function when ptrace returned an error.
11535 * regcache.c (get_thread_regcache): Invalidate register cache
11536 before fetching inferior's registers.
11537
28eef672
AA
115382014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11539
11540 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11541 while-loop as for-loop.
11542 (regsets_store_inferior_registers): Likewise.
11543
bdca27a2
YQ
115442014-11-28 Yao Qi <yao@codesourcery.com>
11545
11546 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11547 * config.in, configure: Re-generate.
11548 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11549 is defined.
11550
9c232dda
YQ
115512014-11-21 Yao Qi <yao@codesourcery.com>
11552
11553 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11554 (AC_CHECK_HEADERS): Remove malloc.h.
11555 * configure: Re-generated.
11556 * config.in: Re-generated.
11557 * server.h: Don't include alloca.h and malloc.h.
11558 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11559 Don't include malloc.h.
11560
43968415
JB
115612014-11-17 Joel Brobecker <brobecker@adacore.com>
11562
11563 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11564 corresponding ERRNO check in same block.
11565
40e91bc7
PA
115662014-11-12 Pedro Alves <palves@redhat.com>
11567
11568 * server.c (cont_thread): Update comment.
11569 (start_inferior, attach_inferior): No longer clear cont_thread.
11570 (handle_v_cont): No longer set cont_thread.
11571 (captured_main): Clear cont_thread each time a GDB connects.
11572
c2c118cf
PA
115732014-11-12 Pedro Alves <palves@redhat.com>
11574
11575 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11576 thread, and don't resume all threads if the Hc thread has exited.
11577
78708b7c
PA
115782014-11-12 Pedro Alves <palves@redhat.com>
11579
11580 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11581 the process group instead of to a specific LWP.
11582
a2abc7de
PA
115832014-10-15 Pedro Alves <palves@redhat.com>
11584
11585 PR server/17487
11586 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11587 parameter.
11588 (arm_set_thread_context): Delete.
11589 (the_low_target): Adjust.
11590 * win32-i386-low.c (debug_registers_changed)
11591 (debug_registers_used): Delete.
11592 (update_debug_registers_callback): New function.
11593 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11594 needing to update their debug registers.
11595 (win32_get_current_dr): New function.
11596 (x86_dr_low_get_addr, x86_dr_low_get_control)
11597 (x86_dr_low_get_status): Fetch the debug register from the thread
11598 record's context.
11599 (i386_initial_stuff): Adjust.
11600 (i386_get_thread_context): Remove current_event parameter. Don't
11601 clear debug_registers_changed nor copy DR values to
11602 debug_reg_state.
11603 (i386_set_thread_context): Delete.
11604 (i386_prepare_to_resume): New function.
11605 (i386_thread_added): Mark the thread as needing to update irs
11606 debug registers.
11607 (the_low_target): Remove i386_set_thread_context and install
11608 i386_prepare_to_resume.
11609 * win32-low.c (win32_get_thread_context): Adjust.
11610 (win32_set_thread_context): Use SetThreadContext
11611 directly.
11612 (win32_prepare_to_resume): New function.
11613 (win32_require_context): New function, factored out from ...
11614 (thread_rec): ... this.
11615 (continue_one_thread): Call win32_prepare_to_resume on each thread
11616 we're about to continue.
11617 (win32_resume): Call win32_prepare_to_resume on the event thread.
11618 * win32-low.h (struct win32_thread_info)
11619 <debug_registers_changed>: New field.
11620 (struct win32_target_ops): Change prototype of set_thread_context,
11621 delete set_thread_context and add prepare_to_resume.
11622 (win32_require_context): New declaration.
11623
a442d071
GB
116242014-10-08 Gary Benson <gbenson@redhat.com>
11625
11626 * server.h: Do not include common-exceptions.h.
11627
6f1947e8
GB
116282014-10-08 Gary Benson <gbenson@redhat.com>
11629
11630 * server.h: Do not include cleanups.h.
11631
63b434a4
JH
116322014-09-30 James Hogan <james.hogan@imgtec.com>
11633
11634 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11635 mips64-dsp-linux.c.
11636
c4d9ceb6
YQ
116372014-09-23 Yao Qi <yao@codesourcery.com>
11638
11639 * linux-low.c (lp_status_maybe_breakpoint): New function.
11640 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11641 (count_events_callback): Likewise.
11642 (select_event_lwp_callback): Likewise.
11643 (cancel_breakpoints_callback): Likewise.
11644
89a5711c
DB
116452014-09-19 Don Breazeal <donb@codesourcery.com>
11646
11647 * linux-low.c (handle_extended_wait): Call
11648 linux_ptrace_get_extended_event.
11649 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11650 linux_is_extended_waitstatus.
11651
bffc0964
JB
116522014-09-16 Joel Brobecker <brobecker@adacore.com>
11653
11654 * Makefile.in (CPPFLAGS): Define.
11655 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11656 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11657
0bfdf32f
GB
116582014-09-16 Gary Benson <gbenson@redhat.com>
11659
11660 * inferiors.h (current_inferior): Renamed as...
11661 (current_thread): New variable. All uses updated.
11662 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11663 (maybe_move_out_of_jump_pad): Likewise.
11664 (cancel_breakpoint): Likewise.
11665 (linux_low_filter_event): Likewise.
11666 (wait_for_sigstop): Likewise.
11667 (linux_resume_one_lwp): Likewise.
11668 (need_step_over_p): Likewise.
11669 (start_step_over): Likewise.
11670 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11671 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11672 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11673 and save_inferior as saved_thread.
11674 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11675 saved_thread.
11676 (regcache_invalidate_thread): Likewise.
11677 * remote-utils.c (prepare_resume_reply): Likewise.
11678 * thread-db.c (thread_db_get_tls_address): Likewise.
11679 (disable_thread_event_reporting): Likewise.
11680 (remove_thread_event_breakpoints): Likewise.
11681 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11682 as saved_thread.
11683 * target.h (set_desired_inferior): Renamed as...
11684 (set_desired_thread): New declaration. All uses updated.
11685 * server.c (myresume): Updated comment to reference thread instead
11686 of inferior.
11687 (handle_serial_event): Likewise.
11688 (handle_target_event): Likewise.
11689
361c8ade
GB
116902014-09-12 Tom Tromey <tromey@redhat.com>
11691 Gary Benson <gbenson@redhat.com>
11692
11693 * regcache.h: Include common-regcache.h.
11694 (regcache_read_pc): Don't declare.
11695 * regcache.c (get_thread_regcache_for_ptid): New function.
11696
bd9269f7
GB
116972014-09-11 Tom Tromey <tromey@redhat.com>
11698 Gary Benson <gbenson@redhat.com>
11699
11700 * symbol.c: New file.
11701 * Makefile.in (SFILES): Add symbol.c.
11702 (OBS): Add symbol.o.
11703
f8c1d06b
GB
117042014-09-11 Gary Benson <gbenson@redhat.com>
11705
11706 * target.c (target_stop_ptid, target_continue_ptid): New
11707 functions.
11708
721ec300
GB
117092014-09-11 Tom Tromey <tromey@redhat.com>
11710 Gary Benson <gbenson@redhat.com>
11711
11712 * target.h: Include target/target.h.
11713 * target.c (target_read_memory, target_read_uint32)
11714 (target_write_memory): New functions.
11715
c5e92cca
GB
117162014-09-11 Gary Benson <gbenson@redhat.com>
11717
11718 * server.h (debug_hw_points): Don't declare.
11719 * server.c (debug_hw_points): Don't define. Replace all uses
11720 with show_debug_regs.
11721 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11722 all uses with show_debug_regs.
11723
2e4bb98a
EBM
117242014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11725
11726 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11727 endianness into account.
11728 (ppc_supply_ptrace_register): Likewise.
11729
ac740bc7
JH
117302014-09-03 James Hogan <james.hogan@imgtec.com>
11731
11732 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11733 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11734
97ea6506
GB
117352014-09-03 Gary Benson <gbenson@redhat.com>
11736
11737 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11738 ALL_DEBUG_ADDRESS_REGISTERS.
11739
df7e5265
GB
117402014-09-02 Gary Benson <gbenson@redhat.com>
11741
11742 * i386-low.h: Renamed as...
11743 * x86-low.h: New file. All type, function and variable name
11744 prefixes changed from "i386_" to "x86_". All references updated.
11745 * i386-low.c: Renamed as...
11746 * x86-low.c: New file. All type, function and variable name
11747 prefixes changed from "i386_" to "x86_". All references updated.
11748
ed859da7
GB
117492014-09-02 Gary Benson <gbenson@redhat.com>
11750
11751 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11752 (x86_linux_new_thread): Likewise.
11753
860789c7
GB
117542014-08-29 Gary Benson <gbenson@redhat.com>
11755
11756 * server.h (setjmp.h): Do not include.
11757 (toplevel): Do not declare.
11758 (common-exceptions.h): Include.
11759 (cleanups.h): Likewise.
11760 * server.c (toplevel): Do not define.
11761 (exit_code): New static global.
11762 (detach_or_kill_for_exit_cleanup): New function.
11763 (main): New function. Original main renamed to...
11764 (captured_main): New function.
11765 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11766
ff55e1b5
GB
117672014-08-29 Gary Benson <gbenson@redhat.com>
11768
11769 * Makefile.in (SFILES): Add common/common-exceptions.c.
11770 (OBS): Add common-exceptions.o.
11771 (common-exceptions.o): New rule.
11772 * utils.c (prepare_to_throw_exception): New function.
11773
e9bcb658
GB
117742014-08-29 Gary Benson <gbenson@redhat.com>
11775
11776 * config.in: Regenerate.
11777 * configure: Likewise.
11778
e3180625
GB
117792014-08-29 Gary Benson <gbenson@redhat.com>
11780
11781 * Makefile.in (SFILES): Add common/cleanups.c.
11782 (OBS): cleanups.o.
11783 (cleanups.o): New rule.
11784
e3d6ba5d
GB
117852014-08-29 Gary Benson <gbenson@redhat.com>
11786
11787 * utils.c (internal_vwarning): New function.
11788
7096e886
GB
117892014-08-28 Gary Benson <gbenson@redhat.com>
11790
11791 * utils.h (fatal): Remove declaration.
11792 * utils.c (fatal): Remove function.
11793
14ce3192
GB
117942014-08-28 Gary Benson <gbenson@redhat.com>
11795
11796 * tracepoint.c (gdb_agent_init): Replace fatal with
11797 perror_with_name.
11798 (initialize_tracepoint): Likewise.
11799
50278d59
GB
118002014-08-28 Gary Benson <gbenson@redhat.com>
11801
11802 * remote-utils.c (remote_prepare): Replace fatal with error.
11803
aa96c426
GB
118042014-08-28 Gary Benson <gbenson@redhat.com>
11805
11806 * linux-low.c (linux_async): Replace fatal with warning.
11807 Tidy up and return.
11808 (linux_start_non_stop): Return -1 if linux_async failed.
11809
f7160e97
GB
118102014-08-28 Gary Benson <gbenson@redhat.com>
11811
11812 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11813 gdb_assert.
11814 (i386_dr_low_get_addr): Remove vague comment.
11815 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11816 gdb_assert.
11817
38e08fca
GB
118182014-08-28 Gary Benson <gbenson@redhat.com>
11819
11820 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11821 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11822 internal_error.
11823 (linux_resume_one_lwp): Likewise.
11824 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11825 gdb_assert.
11826 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11827 with internal_error.
11828 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11829 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11830 (find_register_by_name): Replace fatal with internal_error.
11831 (find_regno): Likewise.
11832 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11833 * thread-db.c (thread_db_create_event): Likewise.
11834 (thread_db_load_search): Likewise.
11835 (try_thread_db_load_1): Likewise.
11836 * tracepoint.c (get_jump_space_head): Replace fatal with
11837 internal_error.
11838 (claim_trampoline_space): Likewise.
11839 (have_fast_tracepoint_trampoline_buffer): Likewise.
11840 (cmd_qtstart): Likewise.
11841 (stop_tracing): Likewise.
11842 (fast_tracepoint_collecting): Likewise.
11843 (target_malloc): Likewise.
11844 (download_tracepoint): Likewise.
11845 (download_trace_state_variables): Replace check with gdb_assert.
11846 (upload_fast_traceframes): Replace fatal with internal_error.
11847
34abf635
GB
118482014-08-19 Tom Tromey <tromey@redhat.com>
11849 Gary Benson <gbenson@redhat.com>
11850
11851 * Makefile.in (SFILES): Add common/common-debug.c.
11852 (OBS): Add common-debug.o.
11853 (common-debug.o): New rule.
11854 * debug.h (debug_printf): Don't declare.
11855 * debug.c (debug_printf): Renamed and rewritten as...
11856 (debug_vprintf): New function.
11857
f6e94d78
GB
118582014-08-19 Gary Benson <gbenson@redhat.com>
11859
11860 * utils.h: Do not include print-utils.h.
11861
9239eeab
GB
118622014-08-19 Tom Tromey <tromey@redhat.com>
11863 Gary Benson <gbenson@redhat.com>
11864
11865 * server.h: Add static assertion.
11866 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11867
ef87c8bb
GB
118682014-08-19 Tom Tromey <tromey@redhat.com>
11869 Gary Benson <gbenson@redhat.com>
11870
11871 * Makefile.in (SFILES): Add common/errors.c.
11872 (OBS): Add errors.o.
11873 (IPA_OBS): Add errors-ipa.o.
11874 (errors.o): New rule.
11875 (errors-ipa.o): Likewise.
11876 * utils.h (perror_with_name, error, warning): Don't declare.
11877 * utils.c (warning): Renamed and rewritten as...
11878 (vwarning): New function.
11879 (error): Renamed and rewritten as...
11880 (verror): New function.
11881 (internal_error): Renamed and rewritten as...
11882 (internal_verror): New function.
11883
bb974a24
GB
118842014-08-07 Gary Benson <gbenson@redhat.com>
11885
11886 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11887 * configure: Regenerate.
11888 * config.in: Likewise.
11889 * server.h: Do not include errno.h.
11890 * event-loop.c: Likewise.
11891 * hostio-errno.c: Likewise.
11892 * linux-low.c: Likewise.
11893 * remote-utils.c: Likewise.
11894 * spu-low.c: Likewise.
11895 * utils.c: Likewise.
11896 * gdbreplay.c: Unconditionally include errno.h.
11897
6d3d12eb
GB
118982014-08-07 Gary Benson <gbenson@redhat.com>
11899
11900 * server.h: Do not include string.h.
11901 * event-loop.c: Likewise.
11902 * linux-low.c: Likewise.
11903 * regcache.c: Likewise.
11904 * remote-utils.c: Likewise.
11905 * spu-low.c: Likewise.
11906 * utils.c: Likewise.
11907
dccbb609
GB
119082014-08-07 Gary Benson <gbenson@redhat.com>
11909
11910 * server.h: Do not include gdb_assert.h.
11911
e76df0d0
GB
119122014-08-07 Gary Benson <gbenson@redhat.com>
11913
11914 * server.h: Do not include common-utils.h.
11915
4cb9c816
GB
119162014-08-07 Gary Benson <gbenson@redhat.com>
11917
11918 * server.h: Do not include ptid.h.
11919 * notif.h: Likewise.
11920
3995eeee
GB
119212014-08-07 Gary Benson <gbenson@redhat.com>
11922
11923 * server.h: Do not include gdb_locale.h.
11924
cb9f1a9b
GB
119252014-08-07 Gary Benson <gbenson@redhat.com>
11926
11927 * server.h: Do not include gdb/signals.h.
11928 * win32-low.c: Likewise.
11929
a5fceff8
GB
119302014-08-07 Gary Benson <gbenson@redhat.com>
11931
11932 * server.h: Do not include pathmax.h.
11933
b9391142
GB
119342014-08-07 Gary Benson <gbenson@redhat.com>
11935
11936 * server.h: Do not include libiberty.h.
11937 * linux-bfin-low.c: Likewise.
11938
0e443c87
GB
119392014-08-07 Gary Benson <gbenson@redhat.com>
11940
11941 * server.h: Do not include ansidecl.h.
11942
8ebb3f56
GB
119432014-08-07 Gary Benson <gbenson@redhat.com>
11944
11945 * linux-x86-low.c: Do not include stddef.h.
11946 * lynx-ppc-low.c: Likewise.
11947 * tracepoint.c: Likewise.
11948
8980bdf6
GB
119492014-08-07 Gary Benson <gbenson@redhat.com>
11950
11951 * server.h: Do not include stdarg.h.
11952 * nto-low.c: Likewise.
11953
d7096f71
GB
119542014-08-07 Gary Benson <gbenson@redhat.com>
11955
11956 * server.h: Do not include stdlib.h.
11957 * inferiors.c: Likewise.
11958 * linux-low.c: Likewise.
11959 * regcache.c: Likewise.
11960 * spu-low.c: Likewise.
11961 * tracepoint.c: Likewise.
11962 * utils.c: Likewise.
11963
d02f550d
GB
119642014-08-07 Gary Benson <gbenson@redhat.com>
11965
11966 * server.h: Do not include stdio.h.
11967 * linux-low.c: Likewise.
11968 * remote-utils.c: Likewise.
11969 * spu-low.c: Likewise.
11970 * utils.c: Likewise.
11971 * wincecompat.c: Likewise.
11972
87f6c4e3
GB
119732014-08-06 Gary Benson <gbenson@redhat.com>
11974
11975 * regcache.c (init_register_cache): Move conditionals inside if.
11976
7089dca4
GB
119772014-08-06 Gary Benson <gbenson@redhat.com>
11978
11979 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
11980
462f517e
GB
119812014-07-31 Gary Benson <gbenson@redhat.com>
11982
11983 * ax.h: Do not include server.h.
11984 * gdbthread.h: Likewise.
11985 * lynx-low.h: Likewise.
11986 * notif.h: Likewise.
11987
976411d6
GB
119882014-07-30 Gary Benson <gbenson@redhat.com>
11989
11990 * server.h: Include common-defs.h.
11991 Do not include config.h or build-gnulib-gdbserver/config.h.
11992
d41f6d8e
GB
119932014-07-30 Gary Benson <gbenson@redhat.com>
11994
11995 * hostio-errno.c: Move server.h to top of includes list.
11996 * inferiors.c: Likewise.
11997 * linux-x86-low.c: Likewise.
11998 * notif.c: Include server.h.
11999
314c6a35
TT
120002014-07-24 Tom Tromey <tromey@redhat.com>
12001 Gary Benson <gbenson@redhat.com>
12002
12003 * server.h (CORE_ADDR): Now unsigned.
12004
69ff6be5
PA
120052014-07-16 Pedro Alves <palves@redhat.com>
12006
12007 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12008
ce9e3fe7
PA
120092014-07-15 Pedro Alves <palves@redhat.com>
12010
12011 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12012 copy.
12013
e76126e8
PA
120142014-07-11 Pedro Alves <palves@redhat.com>
12015
12016 * linux-low.c (kill_wait_lwp): New function, based on
12017 kill_one_lwp_callback, but use my_waitpid directly.
12018 (kill_one_lwp_callback, linux_kill): Use it.
12019
8e9db26e
PA
120202014-06-23 Pedro Alves <palves@redhat.com>
12021
12022 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12023 before setting DR0..DR3.
12024
698b3e08
GB
120252014-06-20 Gary Benson <gbenson@redhat.com>
12026
12027 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12028 * configure: Regenerated.
12029 * config.in: Likewise.
12030
125f8a3d
GB
120312014-06-20 Gary Benson <gbenson@redhat.com>
12032
12033 * Makefile.in (SFILES): Update locations for files moved
12034 from common to nat.
12035 (object file files): Reordered.
12036
42995dbd
GB
120372014-06-20 Gary Benson <gbenson@redhat.com>
12038
12039 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12040 (i386_dr_low_set_addr): Likewise.
12041 (i386_dr_low_get_addr): Likewise.
12042 (i386_dr_low_can_set_control): Likewise.
12043 (i386_dr_low_set_control): Likewise.
12044 (i386_dr_low_get_control): Likewise.
12045 (i386_dr_low_get_status): Likewise.
12046 (i386_get_debug_register_length): Likewise.
12047 * linux-x86-low.c (i386_dr_low_set_addr):
12048 Changed signature. Made static.
12049 (i386_dr_low_get_addr): Likewise.
12050 (i386_dr_low_set_control): Likewise.
12051 (i386_dr_low_get_control): Likewise.
12052 (i386_dr_low_get_status): Likewise.
12053 (i386_dr_low): New global variable.
12054 * win32-i386-low.c (i386_dr_low_set_addr):
12055 Changed signature. Made static.
12056 (i386_dr_low_get_addr): Likewise.
12057 (i386_dr_low_set_control): Likewise.
12058 (i386_dr_low_get_control): Likewise.
12059 (i386_dr_low_get_status): Likewise.
12060 (i386_dr_low): New global variable.
12061
e1d2394b
MS
120622014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12063
12064 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12065 * Makefile.in (AR, AR_FLAGS): Define.
12066 * configure: Regenerate.
12067
3a8ee006
GB
120682014-06-19 Gary Benson <gbenson@redhat.com>
12069
12070 * Makefile.in (i386-dregs.o): New rule.
12071 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12072 * i386-low.c (target.h): Remove include.
12073 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12074 (DR_CONTROL_SHIFT): Likewise.
12075 (DR_CONTROL_SIZE): Likewise.
12076 (DR_RW_EXECUTE): Likewise.
12077 (DR_RW_WRITE): Likewise.
12078 (DR_RW_READ): Likewise.
12079 (DR_RW_IORW): Likewise.
12080 (DR_LEN_1): Likewise.
12081 (DR_LEN_2): Likewise.
12082 (DR_LEN_4): Likewise.
12083 (DR_LEN_8): Likewise.
12084 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12085 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12086 (DR_ENABLE_SIZE): Likewise.
12087 (DR_LOCAL_SLOWDOWN): Likewise.
12088 (DR_GLOBAL_SLOWDOWN): Likewise.
12089 (DR_CONTROL_RESERVED): Likewise.
12090 (I386_DR_CONTROL_MASK): Likewise.
12091 (I386_DR_VACANT): Likewise.
12092 (I386_DR_LOCAL_ENABLE): Likewise.
12093 (I386_DR_GLOBAL_ENABLE): Likewise.
12094 (I386_DR_DISABLE): Likewise.
12095 (I386_DR_SET_RW_LEN): Likewise.
12096 (I386_DR_GET_RW_LEN): Likewise.
12097 (I386_DR_WATCH_HIT): Likewise.
12098 (i386_wp_op_t): Likewise.
12099 (i386_show_dr): Likewise.
12100 (i386_length_and_rw_bits): Likewise.
12101 (i386_insert_aligned_watchpoint): Likewise.
12102 (i386_remove_aligned_watchpoint): Likewise.
12103 (i386_handle_nonaligned_watchpoint): Likewise.
12104 i386_update_inferior_debug_regs(): Likewise.
12105 (i386_dr_insert_watchpoint): Likewise.
12106 (i386_dr_remove_watchpoint): Likewise.
12107 (i386_dr_region_ok_for_watchpoint): Likewise.
12108 (i386_dr_stopped_data_address): Likewise.
12109 (i386_dr_stopped_by_watchpoint): Likewise.
12110
8f26655c
GB
121112014-06-19 Gary Benson <gbenson@redhat.com>
12112
12113 * i386-low.c (i386_dr_show): Renamed to
12114 i386_show_dr and made static. All uses updated.
12115 (i386_dr_length_and_rw_bits): Renamed to
12116 i386_length_and_rw_bits and made static.
12117 All uses updated.
12118 (i386_dr_insert_aligned_watchpoint): Renamed to
12119 i386_insert_aligned_watchpoint and made static.
12120 All uses updated.
12121 (i386_dr_remove_aligned_watchpoint): Renamed to
12122 i386_remove_aligned_watchpoint and made static.
12123 All uses updated.
12124 (i386_dr_update_inferior_debug_regs): Renamed to
12125 i386_update_inferior_debug_regs and made static.
12126 All uses updated.
12127
b9228891
GB
121282014-06-18 Gary Benson <gbenson@redhat.com>
12129
5171def3
GB
12130 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12131 (i386_dr_low_can_set_control): Likewise.
12132 (i386_get_debug_register_length): Likewise.
12133 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12134 (i386_dr_low_can_set_control): Likewise.
12135 (i386_get_debug_register_length): Likewise.
12136
121372014-06-17 Gary Benson <gbenson@redhat.com>
12138
b9228891
GB
12139 * i386-low.h (i386-dregs.h): New include.
12140 (DR_FIRSTADDR): Now in i386-dregs.h.
12141 (DR_LASTADDR): Likewise.
12142 (DR_NADDR): Likewise.
12143 (DR_STATUS): Likewise.
12144 (DR_CONTROL): Likewise.
12145 (i386_debug_reg_state): Likewise.
12146 (i386_dr_insert_watchpoint): Likewise.
12147 (i386_dr_remove_watchpoint): Likewise.
12148 (i386_dr_region_ok_for_watchpoint): Likewise.
12149 (i386_dr_stopped_data_address): Likewise.
12150 (i386_dr_stopped_by_watchpoint): Likewise.
12151 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12152
4be83cc2
GB
121532014-06-18 Gary Benson <gbenson@redhat.com>
12154
12155 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12156 i386_dr_insert_watchpoint.
12157 (i386_low_remove_watchpoint): Renamed to
12158 i386_dr_remove_watchpoint.
12159 (i386_low_region_ok_for_watchpoint): Renamed to
12160 i386_dr_region_ok_for_watchpoint.
12161 (i386_low_stopped_data_address): Renamed to
12162 i386_dr_stopped_data_address.
12163 (i386_low_stopped_by_watchpoint): Renamed to
12164 i386_dr_stopped_by_watchpoint.
12165 * i386-low.c (i386_show_dr): Renamed to
12166 i386_dr_show and made nonstatic. All uses updated.
12167 (i386_length_and_rw_bits): Renamed to
12168 i386_dr_length_and_rw_bits and made nonstatic.
12169 All uses updated.
12170 (i386_insert_aligned_watchpoint): Renamed to
12171 i386_dr_insert_aligned_watchpoint and made nonstatic.
12172 All uses updated.
12173 (i386_remove_aligned_watchpoint): Renamed to
12174 i386_dr_remove_aligned_watchpoint and made nonstatic.
12175 All uses updated.
12176 (i386_update_inferior_debug_regs): Renamed to
12177 i386_dr_update_inferior_debug_regs and made nonstatic.
12178 All uses updated.
12179 (i386_low_insert_watchpoint): Renamed to
12180 i386_dr_insert_watchpoint. All uses updated.
12181 (i386_low_remove_watchpoint): Renamed to
12182 i386_dr_remove_watchpoint. All uses updated.
12183 (i386_low_region_ok_for_watchpoint): Renamed to
12184 i386_dr_region_ok_for_watchpoint. All uses updated.
12185 (i386_low_stopped_data_address): Renamed to
12186 i386_dr_stopped_data_address. All uses updated.
12187 (i386_low_stopped_by_watchpoint): Renamed to
12188 i386_dr_stopped_by_watchpoint. All uses updated.
12189
131aa0d4
GB
121902014-06-18 Gary Benson <gbenson@redhat.com>
12191
12192 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12193 (i386_dr_low_can_set_control): Likewise.
12194 (i386_insert_aligned_watchpoint): New check.
12195
d9305f7f
GB
121962014-06-18 Gary Benson <gbenson@redhat.com>
12197
12198 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12199 Renamed to state.
12200
e927c9fc
GB
122012014-06-18 Gary Benson <gbenson@redhat.com>
12202
12203 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12204 instead of fatal and error.
12205 (i386_handle_nonaligned_watchpoint): Likewise.
12206
1b6d4134
GB
122072014-06-18 Gary Benson <gbenson@redhat.com>
12208
12209 * i386-low.c (i386_get_debug_register_length): New macro.
12210 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12211 (i386_show_dr): Use debug_printf instead of fprintf. Use
12212 phex to format values.
12213
6e62758f
GB
122142014-06-18 Gary Benson <gbenson@redhat.com>
12215
12216 * i386-low.h: Comment changes.
12217 * i386-low.c: Likewise.
12218
fc6e2f03
GB
122192014-06-18 Gary Benson <gbenson@redhat.com>
12220
12221 * i386-low.c: Whitespace changes.
12222
f9d1eeed
TT
122232014-06-12 Tom Tromey <tromey@redhat.com>
12224
12225 * utils.c (freeargv): Remove.
12226
0b04e523
TT
122272014-06-12 Tom Tromey <tromey@redhat.com>
12228
12229 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12230 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12231 (parse_debug_format_options): Likewise.
12232 (gdbserver_usage): Likewise.
12233 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12234 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12235 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12236 against libiberty.
12237 ($(LIBGNU)): Depend on libiberty.
12238 (all-lib): Recurse into all subdirs.
12239 (install-only): Invoke "install" target in subdirs.
12240 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12241 targets.
12242 * configure: Rebuild.
12243 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12244 for vasprintf, vsnprintf, or gettimeofday.
12245 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12246 srv_tgtobj.
12247
270c9937
JB
122482014-06-05 Joel Brobecker <brobecker@adacore.com>
12249
12250 * development.sh: Delete.
12251 * Makefile.in (config.status): Adjust dependency on development.sh.
12252 * configure.ac: Adjust development.sh source call.
12253 * configure: Regenerate.
12254
0a261ed8
PA
122552014-06-02 Pedro Alves <palves@redhat.com>
12256
12257 * ax.c (gdb_free_agent_expr): New function.
12258 * ax.h (gdb_free_agent_expr): New declaration.
12259 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12260 list.
12261 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12262 static.
12263 (clear_breakpoint_conditions_and_commands): New function.
12264 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12265 (clear_breakpoint_conditions_and_commands): New declaration.
12266
e9dae05e
RR
122672014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12268
12269 * linux-aarch64-low.c (asm/ptrace.h): Include.
12270
5876f503
JK
122712014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12272
12273 Fix TLS access for -static -pthread.
12274 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12275 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12276 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12277
802e8e6d
PA
122782014-05-20 Pedro Alves <palves@redhat.com>
12279
12280 * linux-aarch64-low.c (aarch64_insert_point)
12281 (aarch64_remove_point): No longer check whether the type is
12282 supported here. Adjust to new interface.
12283 (the_low_target): Install aarch64_supports_z_point_type as
12284 supports_z_point_type method.
12285 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12286 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12287 instead of a Z packet char. Adjust.
12288 (arm_supports_z_point_type): New function.
12289 (arm_insert_point, arm_remove_point): Adjust to new interface.
12290 (the_low_target): Install arm_supports_z_point_type.
12291 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12292 (cris_insert_point, cris_remove_point): Adjust to new interface.
12293 Don't check whether the type is supported here.
12294 (the_low_target): Install cris_supports_z_point_type.
12295 * linux-low.c (linux_supports_z_point_type): New function.
12296 (linux_insert_point, linux_remove_point): Adjust to new interface.
12297 * linux-low.h (struct linux_target_ops) <insert_point,
12298 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12299 raw_breakpoint pointer parameter.
12300 <supports_z_point_type>: New method.
12301 * linux-mips-low.c (mips_supports_z_point_type): New function.
12302 (mips_insert_point, mips_remove_point): Adjust to new interface.
12303 Use mips_supports_z_point_type.
12304 (the_low_target): Install mips_supports_z_point_type.
12305 * linux-ppc-low.c (the_low_target): Install NULL as
12306 supports_z_point_type method.
12307 * linux-s390-low.c (the_low_target): Install NULL as
12308 supports_z_point_type method.
12309 * linux-sparc-low.c (the_low_target): Install NULL as
12310 supports_z_point_type method.
12311 * linux-x86-low.c (x86_supports_z_point_type): New function.
12312 (x86_insert_point): Adjust to new insert_point interface. Use
12313 insert_memory_breakpoint. Adjust to new
12314 i386_low_insert_watchpoint interface.
12315 (x86_remove_point): Adjust to remove_point interface. Use
12316 remove_memory_breakpoint. Adjust to new
12317 i386_low_remove_watchpoint interface.
12318 (the_low_target): Install x86_supports_z_point_type.
12319 * lynx-low.c (lynx_target_ops): Install NULL as
12320 supports_z_point_type callback.
12321 * nto-low.c (nto_supports_z_point_type): New.
12322 (nto_insert_point, nto_remove_point): Adjust to new interface.
12323 (nto_target_ops): Install nto_supports_z_point_type.
12324 * mem-break.c: Adjust intro comment.
12325 (struct raw_breakpoint) <raw_type, size>: New fields.
12326 <inserted>: Update comment.
12327 <shlib_disabled>: Delete field.
12328 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12329 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12330 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12331 (raw_bkpt_type_to_target_hw_bp_type): New function.
12332 (find_enabled_raw_code_breakpoint_at): New function.
12333 (find_raw_breakpoint_at): New type and size parameters. Use them.
12334 (insert_memory_breakpoint): New function, based off
12335 set_raw_breakpoint_at.
12336 (remove_memory_breakpoint): New function.
12337 (set_raw_breakpoint_at): Reimplement.
12338 (set_breakpoint): New, based on set_breakpoint_at.
12339 (set_breakpoint_at): Reimplement.
12340 (delete_raw_breakpoint): Go through the_target->remove_point
12341 instead of assuming memory breakpoints.
12342 (find_gdb_breakpoint_at): Delete.
12343 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12344 (find_gdb_breakpoint): New function.
12345 (set_gdb_breakpoint_at): Delete.
12346 (z_type_supported): New function.
12347 (set_gdb_breakpoint_1): New function, loosely based off
12348 set_gdb_breakpoint_at.
12349 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12350 (delete_gdb_breakpoint_at): Delete.
12351 (delete_gdb_breakpoint_1): New function, loosely based off
12352 delete_gdb_breakpoint_at.
12353 (delete_gdb_breakpoint): New function.
12354 (clear_gdb_breakpoint_conditions): Rename to ...
12355 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12356 breakpoint.
12357 (add_condition_to_breakpoint): Make static.
12358 (add_breakpoint_condition): Take a struct breakpoint pointer
12359 instead of an address. Adjust.
12360 (gdb_condition_true_at_breakpoint): Rename to ...
12361 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12362 z_type parameter.
12363 (gdb_condition_true_at_breakpoint): Reimplement.
12364 (add_breakpoint_commands): Take a struct breakpoint pointer
12365 instead of an address. Adjust.
12366 (gdb_no_commands_at_breakpoint): Rename to ...
12367 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12368 parameter. Return true if no breakpoint was found. Change debug
12369 output.
12370 (gdb_no_commands_at_breakpoint): Reimplement.
12371 (run_breakpoint_commands): Rename to ...
12372 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12373 and change return type to boolean.
12374 (run_breakpoint_commands): New function.
12375 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12376 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12377 breakpoint. Go through the_target->remove_point instead of
12378 assuming memory breakpoint.
12379 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12380 software and hardware breakpoints.
12381 (reinsert_raw_breakpoint): Go through the_target->insert_point
12382 instead of assuming memory breakpoint.
12383 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12384 software and hardware breakpoints.
12385 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12386 Check both software and hardware breakpoints.
12387 (validate_inserted_breakpoint): Assert the breakpoint is a
12388 software breakpoint. Set the inserted flag to -1 instead of
12389 setting shlib_disabled.
12390 (delete_disabled_breakpoints): Adjust.
12391 (validate_breakpoints): Only validate software breakpoints.
12392 Adjust to inserted flag change.
12393 (check_mem_read, check_mem_write): Skip breakpoint types other
12394 than software breakpoints. Adjust to inserted flag change.
12395 * mem-break.h (enum raw_bkpt_type): New enum.
12396 (raw_breakpoint, struct process_info): Forward declare.
12397 (Z_packet_to_target_hw_bp_type): Delete declaration.
12398 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12399 (set_gdb_breakpoint, delete_gdb_breakpoint)
12400 (clear_breakpoint_conditions): New declarations.
12401 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12402 (breakpoint_inserted_here): Update comment.
12403 (add_breakpoint_condition, add_breakpoint_commands): Replace
12404 address parameter with a breakpoint pointer parameter.
12405 (gdb_breakpoint_here): Update comment.
12406 (delete_gdb_breakpoint_at): Delete.
12407 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12408 * server.c (process_point_options): Take a struct breakpoint
12409 pointer instead of an address. Adjust.
12410 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12411 delete_gdb_breakpoint.
12412 * spu-low.c (spu_target_ops): Install NULL as
12413 supports_z_point_type method.
12414 * target.h: Include mem-break.h.
12415 (struct target_ops) <prepare_to_access_memory>: Update comment.
12416 <supports_z_point_type>: New field.
12417 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12418 instead of a char. Also take a raw breakpoint pointer.
12419 * win32-arm-low.c (the_low_target): Install NULL as
12420 supports_z_point_type.
12421 * win32-i386-low.c (i386_supports_z_point_type): New function.
12422 (i386_insert_point, i386_remove_point): Adjust to new interface.
12423 (the_low_target): Install i386_supports_z_point_type.
12424 * win32-low.c (win32_supports_z_point_type): New function.
12425 (win32_insert_point, win32_remove_point): Adjust to new interface.
12426 (win32_target_ops): Install win32_supports_z_point_type.
12427 * win32-low.h (struct win32_target_ops):
12428 <supports_z_point_type>: New method.
12429 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12430 instead of a char. Also take a raw breakpoint pointer.
12431
932539e3
PA
124322014-05-20 Pedro Alves <palves@redhat.com>
12433
12434 * mem-break.h: Include break-common.h.
12435 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12436 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12437 (Z_packet_to_target_hw_bp_type): New declaration.
12438 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12439 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12440 (Z_PACKET_ACCESS_WP): Delete macros.
12441 (Z_packet_to_hw_type): Delete function.
12442 * i386-low.h: Don't include break-common.h here.
12443 (Z_packet_to_hw_type): Delete declaration.
12444 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12445 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12446 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12447 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12448 * linux-aarch64-low.c: Don't include break-common.h here.
12449 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12450 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12451 (Z_packet_to_target_hw_bp_type): Delete function.
12452 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12453 function.
12454 (mips_insert_point, mips_remove_point): Use
12455 Z_packet_to_target_hw_bp_type.
12456
4ff0d3d8
PA
124572014-05-20 Pedro Alves <palves@redhat.com>
12458
12459 * linux-aarch64-low.c: Include break-common.h.
12460 (enum target_point_type): Delete.
12461 (Z_packet_to_point_type): Rename to ...
12462 (Z_packet_to_target_hw_bp_type): ... this, and return a
12463 target_hw_bp_type instead.
12464 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12465 instead of an enum target_point_type.
12466 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12467 breakpoint type.
12468 (aarch64_dr_state_insert_one_point)
12469 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12470 (aarch64_handle_aligned_watchpoint)
12471 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12472 Take an enum target_hw_bp_type instead of an enum
12473 target_point_type.
12474 (aarch64_supports_z_point_type): New function.
12475 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12476 use Z_packet_to_target_hw_bp_type.
12477
786dc519
JB
124782014-05-20 Joel Brobecker <brobecker@adacore.com>
12479
12480 * configure.ac: Only use -Werror by default when DEVELOPMENT
12481 is true.
12482 * configure: Regenerate.
12483
9e0aa64f
JK
124842014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12485
12486 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12487 * linux-x86-low.c (X86_64_USER_REGS): New.
12488 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12489
2b577b92
YQ
124902014-04-28 Yao Qi <yao@codesourcery.com>
12491
12492 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12493 name.
12494
94611da2
PA
124952014-04-25 Pedro Alves <palves@redhat.com>
12496
12497 PR server/16255
12498 * linux-low.c (linux_attach_fail_reason_string): New function.
12499 (linux_attach_lwp): Delete.
12500 (linux_attach_lwp_1): Rename to ...
12501 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12502 argument. Remove "initial" parameter. Return int instead of
12503 void. Don't error or warn here.
12504 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12505 failure to attach to the tgid. Call warning when failing to
12506 attach to an lwp.
12507 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12508 argument. Remove "initial" parameter. Return int instead of
12509 void. Don't error or warn here.
12510 (linux_attach_fail_reason_string): New declaration.
12511 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12512 interface change. Use linux_attach_fail_reason_string.
12513
01f9f808
MS
125142014-04-24 Michael Sturm <michael.sturm@mintel.com>
12515 Walfred Tedeschi <walfred.tedeschi@intel.com>
12516
12517 * Makefile.in: Added rules to handle new files
12518 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12519 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12520 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12521 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12522 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12523 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12524 x32-avx512-linux.o.
12525 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12526 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12527 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12528 i386/x32-avx512.xml.
12529 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12530 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12531 i386/x32-avx512-linux.xml.
12532 * i387-fp.c (num_avx512_k_registers): New constant for number
12533 of K registers.
12534 (num_avx512_zmmh_low_registers): New constant for number of
12535 lower ZMM registers (0-15).
12536 (num_avx512_zmmh_high_registers): New constant for number of
12537 higher ZMM registers (16-31).
12538 (num_avx512_ymmh_registers): New contant for number of higher
12539 YMM registers (ymm16-31 added by avx521 on x86_64).
12540 (num_avx512_xmm_registers): New constant for number of higher
12541 XMM registers (xmm16-31 added by AVX512 on x86_64).
12542 (struct i387_xsave): Add space for AVX512 registers.
12543 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12544 Add code to handle AVX512 registers.
12545 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12546 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12547 prototypei from generated file.
12548 (tdesc_amd64_avx512_linux): Likewise.
12549 (init_registers_x32_avx512_linux): Likewise.
12550 (tdesc_x32_avx512_linux): Likewise.
12551 (init_registers_i386_avx512_linux): Likewise.
12552 (tdesc_i386_avx512_linux): Likewise.
12553 (x86_64_regmap): Add AVX512 registers.
12554 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12555 mask.
12556 (initialize_low_arch): Add code to initialize AVX512 registers.
12557
51aa91f9
PA
125582014-04-23 Pedro Alves <palves@redhat.com>
12559
12560 * mem-break.c (find_gdb_breakpoint_at): Make static.
12561 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12562
a4165e94
PA
125632014-04-23 Pedro Alves <palves@redhat.com>
12564
12565 * i386-low.c: Don't include break-common.h here.
12566 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12567 prototype to take target_hw_bp_type as argument instead of a Z
12568 packet char.
12569 * i386-low.h: Include break-common.h here.
12570 (Z_packet_to_hw_type): Declare.
12571 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12572 prototypes.
12573 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12574 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12575 (x86_remove_point): Convert the packet number to a
12576 target_hw_bp_type before calling i386_low_remove_watchpoint.
12577 * win32-i386-low.c (i386_insert_point): Convert the packet number
12578 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12579 (i386_remove_point): Convert the packet number to a
12580 target_hw_bp_type before calling i386_low_remove_watchpoint.
12581
b8acf843
PA
125822014-04-23 Pedro Alves <palves@redhat.com>
12583
12584 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12585
d708bcd1
PA
125862014-04-10 Pedro Alves <palves@redhat.com>
12587
12588 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12589 Check if the condition or command is NULL before checking if the
12590 breakpoint is known. On success, return true.
12591 * mem-break.h (add_breakpoint_condition): Document return.
12592 (add_breakpoint_commands): Add describing comment.
12593 * server.c (skip_to_semicolon): New function.
12594 (process_point_options): Use it.
12595
2eec7d5b
PA
125962014-04-09 Pedro Alves <palves@redhat.com>
12597
12598 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12599 to lwpid_of.
12600
fa96cb38
PA
126012014-02-27 Pedro Alves <palves@redhat.com>
12602
12603 PR 12702
12604 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12605 macros.
12606 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12607 output.
12608 (last_thread_of_process_p): Take a PID argument instead of a
12609 thread pointer.
12610 (linux_wait_for_lwp): Delete.
12611 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12612 functions.
12613 (linux_low_filter_event): New function, party factored out from
12614 linux_wait_for_event.
12615 (linux_wait_for_event): Rename to ...
12616 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12617 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12618 sigsuspend. Check for zombie leaders.
12619 (linux_wait_for_event): Reimplement as wrapper around
12620 linux_wait_for_event_filtered.
12621 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12622 a normal or signal exit is seen, it's the whole process exiting.
12623 (wait_for_sigstop): No longer a for_each_inferior callback.
12624 Rewrite on top of linux_wait_for_event_filtered.
12625 (stop_all_lwps): Call wait_for_sigstop directly.
12626 * server.c (resume, handle_target_event): Handle
12627 TARGET_WAITKIND_NO_RESUMED.
12628
d763de10
JB
126292014-02-26 Joel Brobecker <brobecker@adacore.com>
12630
12631 * win32-low.c (psapi_get_dll_name,
12632 * win32_CreateToolhelp32Snapshot): Delete.
12633 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12634 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12635 Delete.
12636 (handle_load_dll): Add function description.
12637 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12638
850a0f76
JB
126392014-02-26 Joel Brobecker <brobecker@adacore.com>
12640
12641 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12642 Add comment.
12643 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12644 base address when calling win32_add_one_solib.
12645 (handle_load_dll): Delete local variable load_addr.
12646 Remove 0x1000 offset applied to DLL base address when calling
12647 win32_add_one_solib.
12648 (handle_unload_dll): Add comment.
12649
f25b3fc3
JB
126502014-02-26 Joel Brobecker <brobecker@adacore.com>
12651
12652 * win32-low.c (win32_add_all_dlls): Renames
12653 win32_ensure_ntdll_loaded. Rewrite function documentation.
12654 Adjust implementation to always load all DLLs.
12655 Add 0x1000 offset to DLL base address when calling
12656 win32_add_one_solib.
12657 (child_initialization_done): New static global.
12658 (do_initial_child_stuff): Set child_initialization_done to
12659 zero during child initialization, and 1 after. Replace call
12660 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12661 Add comment.
12662 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12663 (handle_unload_dll): Add function documentation.
12664 (get_child_debug_event): Ignore load and unload DLL events
12665 during child initialization.
12666
d86d4aaf
DE
126672014-02-20 Doug Evans <dje@google.com>
12668
3bc32da3 12669 Remove global all_lwps.
d86d4aaf
DE
12670 * inferiors.h (ptid_of): Move here from linux-low.h.
12671 (pid_of, lwpid_of): Ditto.
12672 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12673 parameter is a struct thread_info * now.
12674 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12675 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12676 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12677 directly.
12678 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12679 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12680 * linux-arm-low.c (update_registers_callback): Update, "entry"
12681 parameter is a struct thread_info * now.
12682 Fetch lwpid from current_inferior directly.
12683 (arm_insert_point): Pass &all_threads to find_inferior instead of
12684 &all_lwps.
12685 (arm_remove_point): Ditto.
12686 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12687 (arm_prepare_to_resume): Fetch pid from thread.
12688 (arm_read_description): Fetch lwpid from current_inferior directly.
12689 * linux-low.c (all_lwps): Delete.
12690 (delete_lwp): Delete call to remove_inferior.
12691 (handle_extended_wait): Fetch lwpid from thread.
12692 (add_lwp): Don't set lwp->entry.id. Remove call to
12693 add_inferior_to_list.
12694 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12695 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12696 (kill_one_lwp_callback): Ditto.
12697 (linux_kill): Don't dereference NULL pointer.
12698 Fetch ptid,lwpid from thread.
12699 (get_detach_signal): Fetch ptid from thread.
12700 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12701 Simplify call to regcache_invalidate_thread.
12702 (delete_lwp_callback): Update, "entry" parameter is a
12703 struct thread_info * now. Fetch pid from thread.
12704 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12705 (status_pending_p_callback): Update, "entry" parameter is a
12706 struct thread_info * now. Fetch ptid from thread.
12707 (find_lwp_pid): Update, "entry" parameter is a
12708 struct thread_info * now.
12709 (linux_wait_for_lwp): Fetch pid from thread.
12710 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12711 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12712 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12713 (dequeue_one_deferred_signal): Ditto.
12714 (cancel_breakpoint): Fetch ptid from current_inferior.
12715 (linux_wait_for_event): Pass &all_threads to find_inferior,
12716 not &all_lwps. Fetch ptid, lwpid from thread.
12717 (count_events_callback): Update, "entry" parameter is a
12718 struct thread_info * now.
12719 (select_singlestep_lwp_callback): Ditto.
12720 (select_event_lwp_callback): Ditto.
12721 (cancel_breakpoints_callback): Ditto.
12722 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12723 not &all_lwps.
12724 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12725 (unsuspend_one_lwp): Update, "entry" parameter is a
12726 struct thread_info * now.
12727 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12728 not &all_lwps.
12729 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12730 Fetch lwpid from thread, not lwp.
12731 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12732 Pass &all_threads to find_inferior, not &all_lwps.
12733 (send_sigstop): Fetch lwpid from thread, not lwp.
12734 (send_sigstop_callback): Update, "entry" parameter is a
12735 struct thread_info * now.
12736 (suspend_and_send_sigstop_callback): Ditto.
12737 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12738 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12739 struct thread_info * now.
12740 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12741 from thread, lwp.
12742 (lwp_running): Update, "entry" parameter is a
12743 struct thread_info * now.
12744 (stop_all_lwps): Fetch ptid from thread.
12745 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12746 (linux_resume_one_lwp): Fetch lwpid from thread.
12747 (linux_set_resume_request): Update, "entry" parameter is a
12748 struct thread_info * now. Fetch pid, lwpid from thread.
12749 (resume_status_pending_p): Update, "entry" parameter is a
12750 struct thread_info * now.
12751 (need_step_over_p): Ditto. Fetch lwpid from thread.
12752 (start_step_over): Fetch lwpid from thread.
12753 (linux_resume_one_thread): Update, "entry" parameter is a
12754 struct thread_info * now. Fetch lwpid from thread.
12755 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12756 (proceed_one_lwp): Update, "entry" parameter is a
12757 struct thread_info * now. Fetch lwpid from thread.
12758 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12759 struct thread_info * now.
12760 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12761 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12762 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12763 directly.
12764 (regsets_store_inferior_registers): Ditto.
12765 (fetch_register, store_register): Ditto.
12766 (linux_read_memory, linux_write_memory): Ditto.
12767 (linux_request_interrupt): Ditto.
12768 (linux_read_auxv): Ditto.
12769 (linux_xfer_siginfo): Ditto.
12770 (linux_qxfer_spu): Ditto.
12771 (linux_qxfer_libraries_svr4): Ditto.
12772 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12773 moved to inferiors.h.
12774 (get_lwp): Delete.
12775 (get_thread_lwp): Update.
12776 (struct lwp_info): Delete member "entry". Simplify comment for
12777 member "thread".
12778 (all_lwps): Delete.
12779 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12780 current_inferior directly.
12781 (update_watch_registers_callback): Update, "entry" parameter is a
12782 struct thread_info * now. Fetch pid from thread.
12783 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12784 (mips_insert_point): Fetch lwpid from current_inferior.
12785 Pass &all_threads to find_inferior, not &all_lwps.
12786 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12787 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12788 directly.
12789 (mips_stopped_data_address): Ditto.
12790 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12791 directly.
12792 * linux-tile-low.c (tile_arch_setup): Ditto.
12793 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12794 (update_debug_registers_callback): Update, "entry" parameter is a
12795 struct thread_info * now. Fetch pid from thread.
12796 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12797 Pass &all_threads to find_inferior, not &all_lwps.
12798 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12799 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12800 Pass &all_threads to find_inferior, not &all_lwps.
12801 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12802 (i386_dr_low_get_status): Ditto.
12803 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12804 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12805 (x86_linux_read_description): Ditto.
12806 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12807
3b8361aa
DE
128082014-02-20 Doug Evans <dje@google.com>
12809
12810 * inferiors.c (get_first_inferior): Fix buglet.
12811
f7667f0d
DE
128122014-02-19 Doug Evans <dje@google.com>
12813
12814 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12815 * inferiors.c (add_thread): Change result type to struct thread_info *.
12816 All callers updated.
12817 (add_lwp): Call add_thread here instead of in callers.
12818 All callers updated.
12819 * linux-low.h (get_lwp_thread): Rewrite.
12820 (struct lwp_info): New member "thread".
12821
b3312d80
DE
128222014-02-19 Doug Evans <dje@google.com>
12823
12824 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12825 All callers updated.
12826
ecc6f45c
DE
128272014-02-19 Doug Evans <dje@google.com>
12828
12829 * inferiors.c (add_thread): Fix whitespace.
12830
649ebbca
DE
128312014-02-19 Doug Evans <dje@google.com>
12832
12833 * dll.c (clear_dlls): Replace accessing list implemention details
12834 with API function.
12835 * gdbthread.h (get_first_thread): Declare.
12836 * inferiors.c (for_each_inferior_with_data): New function.
12837 (get_first_thread): New function.
12838 (find_thread_ptid): Simplify.
12839 (get_first_inferior): New function.
12840 (clear_list): Delete.
12841 (one_inferior_p): New function.
12842 (clear_inferior_list): New function.
12843 (clear_inferiors): Update.
12844 * inferiors.h (for_each_inferior_with_data): Declare.
12845 (clear_inferior_list): Declare.
12846 (one_inferior_p): Declare.
12847 (get_first_inferior): Declare.
12848 * linux-low.c (linux_wait_for_event): Replace accessing list
12849 implemention details with API function.
12850 * server.c (target_running): Ditto.
12851 (accumulate_file_name_length): New function.
12852 (emit_dll_description): New function.
12853 (handle_qxfer_libraries): Replace accessing list implemention
12854 details with API function.
12855 (handle_qxfer_threads_worker): New function.
12856 (handle_qxfer_threads_proper): Replace accessing list implemention
12857 details with API function.
12858 (handle_query): Ditto.
12859 (visit_actioned_threads_callback_ftype): New typedef.
12860 (visit_actioned_threads_data): New struct.
12861 (visit_actioned_threads): Rewrite to be find_inferior callback.
12862 (resume): Call find_inferior.
12863 (handle_status): Replace accessing list implemention
12864 details with API function.
12865 (process_serial_event): Replace accessing list implemention details
12866 with API function.
12867 * target.c (set_desired_inferior): Replace accessing list implemention
12868 details with API function.
12869 * tracepoint.c (same_process_p): New function.
12870 (gdb_agent_about_to_close): Replace accessing list implemention
12871 details with API function.
12872 * win32-low.c (child_delete_thread): Replace accessing list
12873 implemention details with API function.
12874 (match_dll_by_basename): New function.
12875 (dll_is_loaded_by_basename): New function.
12876 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12877 details call to dll_is_loaded_by_basename.
12878
80894984
DE
128792014-02-19 Doug Evans <dje@google.com>
12880
12881 * dll.h (struct dll_info): Add comment.
12882 * gdbthread.h (struct thread_info): Add comment.
12883 (current_ptid): Simplify.
12884 * inferiors.c (add_process): Update.
12885 (remove_process): Update.
12886 * inferiors.h (struct process_info): Rename member "head" to "entry".
12887 * linux-low.c (delete_lwp): Update.
12888 (add_lwp): Update.
12889 (last_thread_of_process_p): Update.
12890 (kill_one_lwp_callback, linux_kill): Update.
12891 (status_pending_p_callback): Update.
12892 (wait_for_sigstop): Update. Simplify read of ptid.
12893 (start_step_over): Update.
12894 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12895 (get_lwp_thread): Update.
12896 (struct lwp_info): Rename member "head" to "entry".
12897 * regcache.h (inferior_list_entry): Delete.
12898 * server.c (kill_inferior_callback): Update.
12899 (detach_or_kill_inferior_callback): Update.
12900 (print_started_pid): Update.
12901 (print_attached_pid): Update.
12902 (process_serial_event): Simplify read of ptid.
12903 * thread-db.c (thread_db_create_event): Update.
12904 (thread_db_get_tls_address): Update.
12905 * win32-low.c (current_inferior_ptid): Simplify.
12906
46917d26
TT
129072014-02-19 Tom Tromey <tromey@redhat.com>
12908
12909 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12910 argument.
12911 (target_supports_btrace): Update.
12912
0759a81e
YQ
129132014-02-14 Yao Qi <yao@codesourcery.com>
12914
12915 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12916 (rsp-low-ipa.o): New target.
12917
a7191e8b
TT
129182014-02-12 Tom Tromey <tromey@redhat.com>
12919
12920 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12921 convert_ascii_to_int.
12922 * regcache.c (registers_to_string): Likewise.
12923 * remote-utils.c (decode_M_packet): Likewise.
12924 * server.c (process_serial_event): Likewise.
12925
ff0e980e
TT
129262014-02-12 Tom Tromey <tromey@redhat.com>
12927
12928 * server.c (handle_query, handle_v_run): Use hex2bin, not
12929 unhexify.
12930 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12931
e9371aff
TT
129322014-02-12 Tom Tromey <tromey@redhat.com>
12933
12934 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12935 convert_int_to_ascii.
12936 * regcache.c (registers_to_string, collect_register_as_string):
12937 Likewise.
12938 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12939 Likewise.
12940 * server.c (process_serial_event): Likewise.
12941 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12942 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12943
971dc0b8
TT
129442014-02-12 Tom Tromey <tromey@redhat.com>
12945
12946 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12947 bin2hex, not hexify.
12948 * tracepoint.c (cmd_qtstatus): Likewise.
12949
0a822afb
TT
129502014-02-12 Tom Tromey <tromey@redhat.com>
12951
12952 * remote-utils.c (monitor_output): Pass explicit length to
12953 hexify.
12954
9c3d6531
TT
129552014-02-12 Tom Tromey <tromey@redhat.com>
12956
12957 * tracepoint.c: Include rsp-low.h.
12958 * server.c: Include rsp-low.h.
12959 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
12960 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
12961 declare.
12962 * remote-utils.c: Include rsp-low.h.
12963 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
12964 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
12965 (convert_int_to_ascii, convert_ascii_to_int): Move to
12966 common/rsp-low.c.
12967 * regcache.c: Include rsp-low.h.
12968 * ax.c: Include rsp-low.h.
12969 * Makefile.in (SFILES): Add common/rsp-low.c.
12970 (OBS): Add rsp-low.o.
12971 (rsp-low.o): New target.
12972
01fd3ea5
TT
129732014-02-12 Tom Tromey <tromey@redhat.com>
12974
12975 * utils.h (pulongest, plongest, phex_nz): Don't declare.
12976 Include print-utils.h.
12977 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12978 (plongest, thirty_two, phex_nz): Remove.
12979 * Makefile.in (SFILES): Add common/print-utils.c.
12980 (OBS): Add print-utils.o.
12981 (print-utils-ipa.o): New target.
12982 (print-utils.o): New target.
12983 (IPA_OBJS): Add print-utils-ipa.o.
12984
e99dc820
TT
129852014-02-06 Tom Tromey <tromey@redhat.com>
12986
12987 * Makefile.in (SFILES): Fix indentation.
12988
ee1e2d4f
DE
129892014-02-05 Doug Evans <dje@google.com>
12990
12991 * linux-low.c (linux_wait_for_event): Improve comment.
12992 (linux_wait_1): Keep current_inferior in sync with event_child.
12993
f5a02773
DE
129942014-01-22 Doug Evans <dje@google.com>
12995
12996 * gdbthread.h (gdb_id_to_thread): Delete, unused.
12997
87ce2a04
DE
129982014-01-22 Doug Evans <dje@google.com>
12999
13000 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13001 * configure: Regenerate.
13002 * config.in: Regenerate.
13003 * Makefile.in (SFILES): Add debug.c.
13004 (OBS): Add debug.o.
13005 * debug.c: New file.
13006 * debug.h: New file.
13007 * linux-aarch64-low.c (*): Update all debugging printfs to use
13008 debug_printf instead of fprintf.
13009 * linux-arm-low.c (*): Ditto.
13010 * linux-cris-low.c (*): Ditto.
13011 * linux-crisv32-low.c (*): Ditto.
13012 * linux-m32r-low.c (*): Ditto.
13013 * linux-sparc-low.c (*): Ditto.
13014 * linux-x86.c (*): Ditto.
13015 * linux-low.c (*): Ditto.
13016 (linux_wait_1): Add calls to debug_enter, debug_exit.
13017 (linux_wait): Remove redundant debugging printf.
13018 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13019 (linux_resume, unstop_all_lwps): Ditto.
13020 * mem-break.c (*): Update all debugging printfs to use
13021 debug_printf instead of fprintf.
13022 * remote-utils.c (*): Ditto.
13023 * thread-db.c (*): Ditto.
13024 * server.c #include <ctype.h>, "gdb_vecs.h".
13025 (debug_threads): Moved to debug.c.
13026 (*): Update all debugging printfs to use debug_printf instead of
13027 fprintf.
13028 (start_inferior): Replace call to fflush with call to debug_flush.
13029 (monitor_show_help): Mention set debug-format.
13030 (parse_debug_format_options): New function.
13031 (handle_monitor_command): Handle "monitor set debug-format".
13032 (gdbserver_usage): Mention --debug-format.
13033 (main): Parse --debug-format.
13034 * server.h (debug_threads): Declaration moved to debug.h.
13035 #include "debug.h".
13036 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13037 trace_debug_1 that uses debug_printf.
13038 (tracepoint_look_up_symbols): Update all debugging printfs to use
13039 debug_printf instead of fprintf.
13040
e671835b
BS
130412014-01-20 Baruch Siach <baruch@tkos.co.il>
13042
13043 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13044 sys/ptrace.h.
13045
b5737fa9
PA
130462014-01-17 Pedro Alves <palves@redhat.com>
13047
ea38d2a9 13048 PR build/16445
c7faa97a
PA
13049 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13050 defined after including gdb_proc_service.h.
b5737fa9 13051
40ed484e
DE
130522014-01-16 Doug Evans <dje@google.com>
13053
13054 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13055 (match_dll): Use it.
13056
969c39fb
MM
130572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13058
13059 * target.h (target_ops) <read_btrace>: Change parameters and
13060 return type to allow error reporting.
13061 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13062 trace reading errors on.
13063 * linux-low.c (linux_low_read_btrace): Pass trace reading
13064 errors on.
13065 (linux_low_disable_btrace): New.
13066
ab7f45ba
DE
130672014-01-15 Doug Evans <dje@google.com>
13068
13069 * inferiors.c (thread_id_to_gdb_id): Delete.
13070 * inferiors.h (thread_id_to_gdb_id): Delete.
13071
66af0f44
EZ
130722014-01-13 Eli Zaretskii <eliz@gnu.org>
13073
13074 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13075 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13076 versions.
13077
9939e131
PA
130782014-01-08 Pedro Alves <palves@redhat.com>
13079
13080 * server.c (handle_status): Don't discard previous queued stop
13081 replies or thread's pending status here.
13082 (main) <disconnection>: Do it here instead.
13083
b7ea362b
PA
130842014-01-08 Pedro Alves <palves@redhat.com>
13085
13086 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13087 * server.c (visit_actioned_threads, handle_pending_status): New
13088 function.
13089 (handle_v_cont): Factor out parts to ...
13090 (resume): ... this new function. If in all-stop, and a thread
13091 being resumed has a pending status, report it without actually
13092 resuming.
13093 (myresume): Adjust to use the new 'resume' function.
13094 (clear_pending_status_callback, set_pending_status_callback)
13095 (find_status_pending_thread_callback): New functions.
13096 (handle_status): Handle the case of multiple threads having
13097 interesting statuses to report. Report threads' real last signal
13098 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13099 with an interesting thread to report the status for, instead of
13100 always reporting the status of the first thread.
13101
28498c42
JB
131022014-01-01 Joel Brobecker <brobecker@adacore.com>
13103
13104 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13105 * gdbreplay.c (gdbreplay_version): Likewise.
13106
f45c82da
YZ
131072013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13108
13109 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13110 iov.iov_len with the real length in use.
13111
379a5e2d
JB
131122013-12-13 Joel Brobecker <brobecker@adacore.com>
13113
13114 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13115 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13116 for all targets that use win32-low.c.
13117 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13118 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13119
4210d83e
PA
131202013-12-13 Pedro Alves <palves@redhat.com>
13121
13122 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13123 if equal to TARGET_WAITKIND_LOADED.
13124 * win32-low.c (cached_status): New static global.
13125 (win32_wait): Add declaration.
13126 (do_initial_child_stuff): Flush all initial pending debug events
13127 up to the initial breakpoint.
13128 (win32_wait): If CACHED_STATUS was set, return that instead
13129 of doing a real wait. Remove the code resuming the execution
13130 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13131 during the initial phase. Also remove the code changing
13132 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13133 TARGET_WAITKIND_STOPPED.
13134
e7f0d979
YQ
131352013-12-11 Yao Qi <yao@codesourcery.com>
13136
13137 * notif.c (handle_notif_ack): Return 0 if no notification
13138 matches.
13139
ebcf782c
DE
131402013-11-20 Doug Evans <dje@google.com>
13141
13142 * linux-low.c (linux_set_resume_request): Fix comment.
13143
20ad9378
DE
131442013-11-20 Doug Evans <dje@google.com>
13145
13146 * linux-low.c (resume_status_pending_p): Tweak comment.
13147
a196ebeb
WT
131482013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13149
13150 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13151 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13152 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13153 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13154 (srv_amd64_regobj): Add amd64-mpx.o.
13155 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13156 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13157 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13158 * i387-fp.c (num_pl_bnd_register) Added constant.
13159 (num_pl_bnd_cfg_registers) Added constant.
13160 (struct i387_xsave) Added reserved area and MPX fields.
13161 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13162 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13163 function.
13164 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13165 (init_registers_amd64_mpx_linux): Declare new function.
13166 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13167 (x86_64_regmap): Add MPX registers.
13168 (x86_linux_read_description): Add MPX case.
13169 (initialize_low_arch): Initialize MPX targets.
13170
0080a2f6
TT
131712013-11-18 Tom Tromey <tromey@redhat.com>
13172
13173 * configure: Rebuild.
13174 * configure.ac: Don't check for stdlib.h.
13175 * gdbreplay.c: Unconditionally include stdlib.h.
13176
2978b111
TT
131772013-11-18 Tom Tromey <tromey@redhat.com>
13178
13179 * config.in: Rebuild.
13180 * configure: Rebuild.
13181 * configure.ac: Don't use AC_HEADER_DIRENT.
13182
a3d08894
TT
131832013-11-18 Tom Tromey <tromey@redhat.com>
13184
13185 * server.h: Don't check HAVE_STRING_H.
13186 * gdbreplay.c: Don't check HAVE_STRING_H.
13187 * configure: Rebuild.
13188
0a5dd17d
TT
131892013-11-18 Tom Tromey <tromey@redhat.com>
13190
13191 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13192 LIBGNU.
13193
1bd2f0ba
TT
131942013-11-08 Tom Tromey <tromey@redhat.com>
13195
13196 * configure, config.in: Rebuild.
13197 * configure.ac: Remove unused configury.
13198
3266f10b
TT
131992013-11-08 Tom Tromey <tromey@redhat.com>
13200
13201 * acinclude.m4: Include common.m4, codeset.m4.
13202 * configure, config.in: Rebuild.
13203 * configure.ac: Use GDB_AC_COMMON.
13204
6682d959
AA
132052013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13206
13207 * linux-s390-low.c (HWCAP_S390_TE): New define.
13208 (s390_arch_setup): Consider the TE field in the HWCAP for
13209 determining 'have_regset_tdb'.
13210
fd0a4d76
SDJ
132112013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13212
13213 PR gdb/16014
13214 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13215 call to sizeof.
13216
1a3d890b
PA
132172013-10-02 Pedro Alves <palves@redhat.com>
13218
13219 * server.c (process_serial_event): Don't output "GDBserver
13220 exiting" if GDB is connected through stdio.
13221 * target.c (mywait): Likewise, be silent if GDB is connected
13222 through stdio.
13223
97ad4581
JB
132242013-10-01 Joel Brobecker <brobecker@adacore.com>
13225
13226 * lynx-low.c (lynx_add_threads_after_attach): New function.
13227 (lynx_attach): Remove call to add_thread. Add call to
13228 lynx_add_threads_after_attach instead.
13229
5b4e221c
MF
132302013-09-28 Mike Frysinger <vapier@gentoo.org>
13231
13232 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13233 * config.in, configure: Regenerated.
13234
ee47b2f8
YQ
132352013-09-18 Yao Qi <yao@codesourcery.com>
13236
13237 PR server/15959
13238 * server.c (start_inferior): Clear 'resume_info'.
13239
d6707650 132402013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13241
d6707650
JW
13242 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13243 for each register.
13244
9243dd0e 132452013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13246
9243dd0e
JW
13247 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13248 linux-tile-low.o to srv_tgtobj.
13249
c623a6ef
WN
132502013-09-16 Will Newton <will.newton@linaro.org>
13251
13252 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13253 out regs.
13254
fb71d39e
PA
132552013-09-06 Pedro Alves <palves@redhat.com>
13256
13257 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13258 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13259 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13260 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13261 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13262 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13263
8e7e9910
PA
132642013-09-06 Pedro Alves <palves@redhat.com>
13265
13266 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13267 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13268
7c3a12ca
PA
132692013-09-06 Pedro Alves <palves@redhat.com>
13270
13271 * linux-amd64-ipa.c: Include tracepoint.h.
13272 * linux-i386-ipa.c: Include tracepoint.h.
13273
8eb3d7b6
RW
132742013-09-06 Ricard Wanderlof <ricardw@axis.com>
13275
13276 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13277 (ps_get_thread_area): New function.
13278
eddddb9d
RW
132792013-09-06 Ricard Wanderlof <ricardw@axis.com>
13280
13281 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13282 (initialize_low_arch): Call init_registers_crisv32 rather than
13283 init_register_crisv32.
13284
533b0600
PA
132852013-09-05 Pedro Alves <palves@redhat.com>
13286
13287 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13288 to ...
13289 * hostio.h: ... this new file.
13290 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13291 win32-low.c: Include hostio.h.
13292
0ce3d3b5
PA
132932013-09-05 Pedro Alves <palves@redhat.com>
13294
13295 * server.h (gdb_client_data, handler_func, callback_handler_func)
13296 (delete_file_handler, add_file_handler, append_callback_event)
13297 (delete_callback_event, start_event_loop, initialize_event_loop):
13298 Move to event-loop.h and include it.
13299 * event-loop.h: New file.
13300
799cdc37
PA
133012013-09-05 Pedro Alves <palves@redhat.com>
13302
13303 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13304 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13305 (loaded_dll, unloaded_dll): Move to ...
13306 * dll.h: ... this new file.
13307 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13308
6a6bbd9d
PA
133092013-09-05 Pedro Alves <palves@redhat.com>
13310
13311 * server.h (current_process, get_thread_process, all_processes)
13312 (add_inferior_to_list, for_each_inferior, current_inferior)
13313 (remove_inferior, add_process, remove_process, find_process_pid)
13314 (have_started_inferiors_p, have_attached_inferiors_p)
13315 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13316 (clear_inferiors, find_inferior, find_inferior_id)
13317 (inferior_target_data, set_inferior_target_data)
13318 (inferior_regcache_data, set_inferior_regcache_data): Move to
13319 inferiors.h, and include it.
13320 * inferiors.h: New file.
13321
f699aaba
PA
133222013-09-05 Pedro Alves <palves@redhat.com>
13323
13324 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13325 Move ...
72f4393d 13326 * ax.h: ... here.
f699aaba 13327
c144c7a0
PA
133282013-09-05 Pedro Alves <palves@redhat.com>
13329
13330 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13331 tracepoint.h.
13332 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13333 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13334 (handle_tracepoint_general_set, handle_tracepoint_query)
13335 (tracepoint_finished_step, tracepoint_was_hit)
13336 (release_while_stepping_state_list, current_traceframe)
13337 (in_readonly_region, traceframe_read_mem)
13338 (fetch_traceframe_registers, traceframe_read_sdata)
13339 (traceframe_read_info, struct fast_tpoint_collect_status)
13340 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13341 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13342 (supply_fast_tracepoint_registers)
13343 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13344 (ipa_tdesc, claim_trampoline_space)
13345 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13346 (agent_mem_read, agent_get_trace_state_variable_value)
13347 (agent_set_trace_state_variable_value, agent_tsv_read)
13348 (agent_mem_read_string, get_raw_reg_func_addr)
13349 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13350 * tracepoint.h: ... this new file.
13351
ff42e6ab
PA
133522013-09-05 Pedro Alves <palves@redhat.com>
13353
13354 * server.h (perror_with_name, error, fatal, warning, paddress)
13355 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13356 include it.
13357 * utils.h: New file.
13358
541af0f4
PA
133592013-09-05 Pedro Alves <palves@redhat.com>
13360
13361 * server.h (remote_debug, noack_mode, transport_is_reliable)
13362 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13363 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13364 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13365 (write_enn, initialize_async_io, enable_async_io)
13366 (disable_async_io, check_remote_input_interrupt_request)
13367 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13368 (dead_thread_notify, prepare_resume_reply)
13369 (decode_address_to_semicolon, decode_address, decode_m_packet)
13370 (decode_M_packet, decode_X_packet, decode_xfer_write)
13371 (decode_search_memory_packet, unhexify, hexify)
13372 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13373 (look_up_one_symbol, relocate_instruction)
13374 (monitor_output): Move to remote-utils.h, and include it.
13375 * remote-utils.h: New file.
13376
eebdf26b
PA
133772013-09-05 Pedro Alves <palves@redhat.com>
13378
13379 * server.h (_): Delete.
13380
3aafd2ff
PA
133812013-09-02 Pedro Alves <palves@redhat.com>
13382
13383 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13384 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13385 allocated.
13386 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13387
cee83bcb
PM
133882013-09-02 Pierre Muller <muller@sourceware.org>
13389
13390 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13391 or WriteProcessMemory complete successfully and handle
13392 ERROR_PARTIAL_COPY error.
13393
9a13b2fa
PA
133942013-09-02 Pedro Alves <palves@redhat.com>
13395
13396 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13397 error instead of EIO.
13398
602e3198
JK
133992013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13400
13401 PR server/15604
13402 * linux-low.c: Include filestuff.h.
13403 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13404 * lynx-low.c: Include filestuff.h.
13405 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13406 * server.c: Include filestuff.h.
13407 (main): Call notice_open_fds.
13408 * spu-low.c: Include filestuff.h.
13409 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13410
96d7229d
LM
134112013-08-22 Luis Machado <lgustavo@codesourcery.com>
13412
13413 * Makefile.in: Explain why ../target and ../nat are not
13414 listed as include file search paths.
13415 (linux-waitpid.o): New object file rule.
13416 * configure.srv (srv_native_linux_obj): New variable.
13417 Replace all occurrences of linux native object files with
13418 $srv_native_linux_obj.
13419 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13420 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13421 (linux_enable_event_reporting): Remove declaration.
13422 (my_waitpid): Moved to common/linux-waitpid.c.
13423 (linux_wait_for_event): Pass ptid when calling
13424 linux_enable_event_reporting.
13425 (linux_supports_tracefork_flag): Remove.
13426 (linux_enable_event_reporting): Likewise.
13427 (linux_tracefork_grandchild): Remove.
13428 (STACK_SIZE): Moved to common/linux-ptrace.c.
13429 (linux_tracefork_child): Remove.
13430 (linux_test_for_tracefork): Remove.
13431 (linux_look_up_symbols): Call linux_supports_traceclone.
13432 (initialize_low): Remove call to linux_test_for_tracefork.
13433 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13434 common/linux-ptrace.h.
13435 (PTRACE_TYPE_ARG4): Likewise.
13436 Include linux-ptrace.h.
13437
32940073
PA
134382013-08-21 Pedro Alves <palves@redhat.com>
13439
13440 * config.in: Renegerate.
13441
33b60d58 134422013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13443
33b60d58
LM
13444 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13445 (SFILES): Remove $(srcdir)/common/target-common.c and
13446 add $(srcdir)/target/waitstatus.c.
13447 (OBS): Remove target-common.o and add waitstatus.o.
13448 (server_h): Remove $(srcdir)/../common/target-common.h and
13449 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13450 and $(srcdir)/../target/waitstatus.h.
13451 (target-common.o): Remove.
13452 (waitstatus.o): New target object file.
13453 * target.h: Do not include target-common.h and
13454 include target/resume.h, target/wait.h and
13455 target/waitstatus.h.
13456
b8e1b30e
LM
134572013-08-13 Luis Machado <lgustavo@codesourcery.com>
13458
13459 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13460 to PTRACE_TYPE_ARG3.
13461 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13462 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13463 PTRACE_TYPE_ARG4.
13464 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13465 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13466
7a60ad40
YQ
134672013-07-27 Jie Zhang <jie@codesourcery.com>
13468 Daniel Jacobowitz <dan@codesourcery.com>
13469 Yao Qi <yao@codesourcery.com>
13470
13471 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13472 (mips-linux-watch.o): New rule.
13473 (mips_linux_watch_h): New variable.
13474 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13475 srv_tgtobj.
13476 * linux-mips-low.c: Include mips-linux-watch.h.
13477 (struct arch_process_info, struct arch_lwp_info): New.
13478 (update_watch_registers_callback): New function.
13479 (mips_linux_new_process, mips_linux_new_thread) New functions.
13480 (mips_linux_prepare_to_resume, mips_insert_point): New
13481 functions.
13482 (mips_remove_point, mips_stopped_by_watchpoint): New
13483 functions.
13484 (rsp_bp_type_to_target_hw_bp_type): New function.
13485 (mips_stopped_data_address): New function.
13486 (the_low_target): Add watchpoint support functions.
13487
de6f69ad
YQ
134882013-07-27 Yao Qi <yao@codesourcery.com>
13489
13490 * i386-low.c: Include break-common.h.
13491 (enum target_hw_bp_type): Remove.
13492
3360c0bf
LM
134932013-07-24 Luis Machado <lgustavo@codesourcery.com>
13494
13495 * Makefile.in (SFILES): /common/target-common.c.
13496 (OBS): Add target-common.o.
13497 (server_h): Add $(srcdir)/../common/target-common.h.
13498 (target-common.o): New target.
13499 * server.c (queue_stop_reply_callback): Free
13500 status string after use.
13501 * target.c (target_waitstatus_to_string): Remove.
13502 * target.h: Include target-common.h.
13503 (resume_kind): Likewise.
13504 (target_waitkind): Likewise.
13505 (target_waitstatus): Likewise.
13506 (TARGET_WNOHANG): Likewise.
13507
bd885420
YQ
135082013-07-04 Yao Qi <yao@codesourcery.com>
13509
13510 * Makefile.in (host_alias): Use @host_noncanonical@.
13511 (target_alias): Use @target_noncanonical@.
13512 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13513 ACX_NONCANONICAL_HOST.
13514 * configure: Regenerated.
13515
13516 Revert:
13517 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13518
13519 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13520 * configure: Rebuild.
13521 * Makefile.in (version_host, version_target): Get from configure.
13522 (version.c): Use $(version_host) and $(version_target).
13523
17ef446e
PA
135242013-07-03 Pedro Alves <palves@redhat.com>
13525
13526 * Makefile.in (config.status): Depend on development.sh.
13527 * acinclude.m4: Include libmcheck.m4.
13528 * configure: Regenerate.
13529
7a9a7487
MG
135302013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13531
13532 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13533 attribute inside the parentheses.
13534 (winapi_DebugSetProcessKillOnExit): Ditto.
13535 (winapi_DebugBreakProcess): Ditto.
13536 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13537
49b64de6
MG
135382013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13539
13540 * notif.h (notif_event): Add a dummy member to avoid compiler
13541 errors.
13542
d5749ee7
PA
135432013-07-01 Pedro Alves <palves@redhat.com>
13544
13545 * hostio.c (HOSTIO_PATH_MAX): Define.
13546 (require_filename, handle_open, handle_unlink, handle_readlink):
13547 Use it.
13548
d8d2a3ee
PA
135492013-07-01 Pedro Alves <palves@redhat.com>
13550
13551 * server.h: Include "pathmax.h".
13552 * linux-low.c: Don't include sys/param.h.
13553 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13554 MAXPATHLEN.
13555 * win32-low.c: Don't include sys/param.h.
13556 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13557
bc7dea8d
PA
135582013-07-01 Pedro Alves <palves@redhat.com>
13559
13560 * event-loop.c: Don't check HAVE_UNISTD_H before including
13561 <unistd.h>.
13562 * gdbreplay.c: Likewise.
13563 * remote-utils.c: Likewise.
13564 * server.c: Likewise.
13565 * configure.ac: Don't check for unistd.h.
13566 * configure: Regenerate.
13567
d6c2da54
TT
135682013-06-28 Tom Tromey <tromey@redhat.com>
13569
13570 * Makefile.in (version.c): Use version.in, not
13571 common/version.in.
13572
257b6bec
MG
135732013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13574
13575 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13576 * configure: Rebuild.
13577 * Makefile.in (version_host, version_target): Get from configure.
13578 (version.c): Use $(version_host) and $(version_target).
13579
86ebe149
DK
135802013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13581
13582 Fix trace-status to output user name without trailing colon.
13583 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13584
f30aa5af
DK
135852013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13586
13587 Fix trace-status to output proper start-time and stop-time.
13588 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13589 output start time and stop time in hex as gdb expects.
13590
28a93511
YQ
135912013-06-26 Pedro Alves <pedro@codesourcery.com>
13592
13593 * tracepoint.c (build_traceframe_info_xml): Output trace state
13594 variables present in the trace buffer.
13595
01208463
TT
135962013-06-24 Tom Tromey <tromey@redhat.com>
13597
13598 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13599 create-version.sh.
13600 (version.o): Remove.
13601 * gdbreplay.c: Include version.h.
13602 (version, host_name): Don't declare.
13603 * server.h: Include version.h.
13604 (version, host_name): Don't declare.
13605
760256f9
PA
136062013-06-12 Pedro Alves <palves@redhat.com>
13607
13608 * linux-x86-low.c (linux_is_elf64): Delete global.
13609 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13610 with local linux_pid_exe_is_elf_64_file use.
13611
030031ee
PA
136122013-06-11 Pedro Alves <palves@redhat.com>
13613
13614 * linux-low.c (regset_disabled, disable_regset): New functions.
13615 (regsets_fetch_inferior_registers)
13616 (regsets_store_inferior_registers): Use them.
13617 (initialize_regsets_info); Don't allocate the disabled_regsets
13618 array here.
13619 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13620 comment.
13621
5da6eb0a
PA
136222013-06-11 Pedro Alves <palves@redhat.com>
13623
13624 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13625 xmalloc.
13626
7e5aaa09
PA
136272013-06-11 Pedro Alves <palves@redhat.com>
13628
13629 * linux-x86-low.c (initialize_low_arch): Call
13630 init_registers_x32_avx_linux.
13631
d878444c
JK
136322013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13633
13634 Fix compatibility with Android Bionic.
13635 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13636 it is not empty.
13637
3aee8918
PA
136382013-06-07 Pedro Alves <palves@redhat.com>
13639
5f2b57b5 13640 PR server/14823
3aee8918
PA
13641 * Makefile.in (OBS): Add tdesc.o.
13642 (IPA_OBJS): Add tdesc-ipa.o.
13643 (tdesc-ipa.o): New rule.
13644 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13645 interface.
13646 * linux-low.c (new_inferior): Delete.
13647 (disabled_regsets, num_regsets): Delete.
13648 (linux_add_process): Adjust to set the new per-process
13649 new_inferior flag.
13650 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13651 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13652 was a stop. When calling arch_setup, switch the current inferior
13653 to the thread that got an event.
13654 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13655 (regsets_fetch_inferior_registers)
13656 (regsets_store_inferior_registers): New regsets_info parameter.
13657 Adjust to use it.
13658 (linux_register_in_regsets): New regs_info parameter. Adjust to
13659 use it.
13660 (register_addr, fetch_register, store_register): New usrregs_info
13661 parameter. Adjust to use it.
13662 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13663 parameter regs_info. Adjust to use it.
13664 (linux_fetch_registers): Get the current inferior's regs_info, and
13665 adjust to use it.
13666 (linux_store_registers): Ditto.
13667 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13668 (initialize_low): Don't initialize the target_regsets here. Call
13669 initialize_low_arch.
13670 * linux-low.h (target_regsets): Delete declaration.
13671 (struct regsets_info): New.
13672 (struct usrregs_info): New.
13673 (struct regs_info): New.
13674 (struct process_info_private) <new_inferior>: New field.
13675 (struct linux_target_ops): Delete the num_regs, regmap, and
13676 regset_bitmap fields. New field regs_info.
13677 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13678 * i387-fp.c (num_xmm_registers): Delete.
13679 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13680 calls to new interface.
13681 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13682 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13683 Infer the number of xmm registers from the regcache's target
13684 description.
13685 * i387-fp.h (num_xmm_registers): Delete.
13686 * inferiors.c (add_thread): Don't install the thread's regcache
13687 here.
13688 * proc-service.c (gregset_info): Fetch the current inferior's
13689 regs_info. Adjust to use it.
13690 * regcache.c: Include tdesc.h.
13691 (register_bytes, reg_defs, num_registers)
13692 (gdbserver_expedite_regs): Delete.
13693 (get_thread_regcache): If the thread doesn't have a regcache yet,
13694 create one, instead of aborting gdbserver.
13695 (regcache_invalidate_one): Rename to ...
13696 (regcache_invalidate_thread): ... this.
13697 (regcache_invalidate_one): New.
13698 (regcache_invalidate): Only invalidate registers of the current
13699 process.
13700 (init_register_cache): Add target_desc parameter, and use it.
13701 (new_register_cache): Ditto. Assert the target description has a
13702 non zero registers_size.
13703 (regcache_cpy): Add assertions. Adjust.
13704 (realloc_register_cache, set_register_cache): Delete.
13705 (registers_to_string, registers_from_string): Adjust.
13706 (find_register_by_name, find_regno, find_register_by_number)
13707 (register_cache_size): Add target_desc parameter, and use it.
13708 (free_register_cache_thread, free_register_cache_thread_one)
13709 (regcache_release, register_cache_size): New.
13710 (register_size): Add target_desc parameter, and use it.
13711 (register_data, supply_register, supply_register_zeroed)
13712 (supply_regblock, supply_register_by_name, collect_register)
13713 (collect_register_as_string, collect_register_by_name): Adjust.
13714 * regcache.h (struct target_desc): Forward declare.
13715 (struct regcache) <tdesc>: New field.
13716 (init_register_cache, new_register_cache): Add target_desc
13717 parameter.
13718 (regcache_invalidate_thread): Declare.
13719 (regcache_invalidate_one): Delete declaration.
13720 (regcache_release): Declare.
13721 (find_register_by_number, register_cache_size, register_size)
13722 (find_regno): Add target_desc parameter.
13723 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13724 declarations.
13725 * remote-utils.c: Include tdesc.h.
13726 (outreg, prepare_resume_reply): Adjust.
13727 * server.c: Include tdesc.h.
13728 (gdbserver_xmltarget): Delete declaration.
13729 (get_features_xml, process_serial_event): Adjust.
13730 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13731 declare.
13732 (struct process_info) <tdesc>: New field.
13733 (ipa_tdesc): Declare.
13734 * tdesc.c: New file.
13735 * tdesc.h: New file.
13736 * tracepoint.c: Include tdesc.h.
13737 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13738 (get_context_regcache): Adjust to pass ipa_tdesc down.
13739 (do_action_at_tracepoint): Adjust to get the register cache size
13740 from the context regcache's description.
13741 (traceframe_walk_blocks): Adjust to get the register cache size
13742 from the current trace frame's description.
13743 (traceframe_get_pc): Adjust to get current trace frame's
13744 description and pass it down.
13745 (gdb_collect): Adjust to get the register cache size from the
13746 IPA's description.
13747 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13748 (gdbserver_xmltarget): Delete.
13749 (initialize_low_tracepoint): Set the ipa's target description.
13750 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13751 (initialize_low_tracepoint): Set the ipa's target description.
13752 * linux-x86-low.c: Include tdesc.h.
13753 [__x86_64__] (is_64bit_tdesc): New.
13754 (ps_get_thread_area, x86_get_thread_area): Use it.
13755 (i386_cannot_store_register): Rename to ...
13756 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13757 (i386_cannot_fetch_register): Rename to ...
13758 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13759 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13760 to new interface.
13761 (target_regsets): Rename to ...
13762 (x86_regsets): ... this.
13763 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13764 interface.
13765 (x86_siginfo_fixup): Use is_64bit_tdesc.
13766 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13767 (tdesc_x32_avx_linux, tdesc_x32_linux)
13768 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13769 Declare.
13770 (x86_linux_update_xmltarget): Delete.
13771 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13772 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13773 (AMD64_LINUX_USER64_CS): New.
13774 (x86_linux_read_description): New, based on
13775 x86_linux_update_xmltarget.
13776 (same_process_callback): New.
13777 (x86_arch_setup_process_callback): New.
13778 (x86_linux_update_xmltarget): New.
13779 (x86_regsets_info): New.
13780 (amd64_linux_regs_info): New.
13781 (i386_linux_usrregs_info): New.
13782 (i386_linux_regs_info): New.
13783 (x86_linux_regs_info): New.
13784 (x86_arch_setup): Reimplement.
13785 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13786 (x86_emit_ops): Ditto.
13787 (the_low_target): Adjust. Install x86_linux_regs_info,
13788 x86_cannot_fetch_register, and x86_cannot_store_register.
13789 (initialize_low_arch): New.
13790 * linux-ia64-low.c (tdesc_ia64): Declare.
13791 (ia64_fetch_register): Adjust.
13792 (ia64_usrregs_info, regs_info): New globals.
13793 (ia64_regs_info): New function.
13794 (the_low_target): Adjust.
13795 (initialize_low_arch): New function.
13796 * linux-sparc-low.c (tdesc_sparc64): Declare.
13797 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13798 Adjust.
13799 (sparc_arch_setup): New function.
13800 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13801 (the_low_target): Adjust.
13802 (initialize_low_arch): New function.
13803 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13804 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13805 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13806 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13807 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13808 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13809 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13810 (tdesc_powerpc_isa205_vsx64l): Declare.
13811 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13812 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13813 (ppc_set_pc, ppc_get_hwcap): Adjust.
13814 (ppc_usrregs_info): Forward declare.
13815 (!__powerpc64__) ppc_regmap_adjusted: New global.
13816 (ppc_arch_setup): Adjust to the current process'es target
13817 description.
13818 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13819 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13820 (ppc_store_evrregset): Adjust.
13821 (target_regsets): Rename to ...
13822 (ppc_regsets): ... this, and make static.
13823 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13824 (ppc_regs_info): New function.
13825 (the_low_target): Adjust.
13826 (initialize_low_arch): New function.
13827 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13828 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13829 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13830 (tdesc_s390x_linux64v2): Declare.
13831 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13832 (s390_fill_gregset, s390_store_last_break): Adjust.
13833 (target_regsets): Rename to ...
13834 (s390_regsets): ... this, and make static.
13835 (s390_get_pc, s390_set_pc): Adjust.
13836 (s390_get_hwcap): New target_desc parameter, and use it.
13837 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13838 (s390_arch_setup): Adjust to set the current process'es target
13839 description. Don't adjust the regmap.
13840 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13841 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13842 (regs_info_3264): New globals.
13843 (s390_regs_info): New function.
13844 (the_low_target): Adjust.
13845 (initialize_low_arch): New function.
13846 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13847 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13848 [__mips64] (init_registers_mips_linux)
13849 (init_registers_mips_dsp_linux): Delete defines.
13850 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13851 (have_dsp): New global.
13852 (mips_read_description): New, based on mips_arch_setup.
13853 (mips_arch_setup): Reimplement.
13854 (get_usrregs_info): New function.
13855 (mips_cannot_fetch_register, mips_cannot_store_register)
13856 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13857 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13858 (target_regsets): Rename to ...
13859 (mips_regsets): ... this, and make static.
13860 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13861 (dsp_regs_info, regs_info): New globals.
13862 (mips_regs_info): New function.
13863 (the_low_target): Adjust.
13864 (initialize_low_arch): New function.
13865 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13866 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13867 Declare.
13868 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13869 (arm_read_description): New, with bits factored from
13870 arm_arch_setup.
13871 (arm_arch_setup): Reimplement.
13872 (target_regsets): Rename to ...
13873 (arm_regsets): ... this, and make static.
13874 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13875 (arm_regs_info): New function.
13876 (the_low_target): Adjust.
13877 (initialize_low_arch): New function.
13878 * linux-m68k-low.c (tdesc_m68k): Declare.
13879 (target_regsets): Rename to ...
13880 (m68k_regsets): ... this, and make static.
13881 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13882 (m68k_regs_info): New function.
13883 (m68k_arch_setup): New function.
13884 (the_low_target): Adjust.
13885 (initialize_low_arch): New function.
13886 * linux-sh-low.c (tdesc_sharch): Declare.
13887 (target_regsets): Rename to ...
13888 (sh_regsets): ... this, and make static.
13889 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13890 (sh_regs_info, sh_arch_setup): New functions.
13891 (the_low_target): Adjust.
13892 (initialize_low_arch): New function.
13893 * linux-bfin-low.c (tdesc_bfin): Declare.
13894 (bfin_arch_setup): New function.
13895 (bfin_usrregs_info, regs_info): New globals.
13896 (bfin_regs_info): New function.
13897 (the_low_target): Adjust.
13898 (initialize_low_arch): New function.
13899 * linux-cris-low.c (tdesc_cris): Declare.
13900 (cris_arch_setup): New function.
13901 (cris_usrregs_info, regs_info): New globals.
13902 (cris_regs_info): New function.
13903 (the_low_target): Adjust.
13904 (initialize_low_arch): New function.
13905 * linux-cris-low.c (tdesc_crisv32): Declare.
13906 (cris_arch_setup): New function.
13907 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13908 (cris_regs_info): New function.
13909 (the_low_target): Adjust.
13910 (initialize_low_arch): New function.
13911 * linux-m32r-low.c (tdesc_m32r): Declare.
13912 (m32r_arch_setup): New function.
13913 (m32r_usrregs_info, regs_info): New globals.
13914 (m32r_regs_info): Adjust.
13915 (initialize_low_arch): New function.
13916 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13917 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13918 (tic6x_usrregs_info): Forward declare.
13919 (tic6x_read_description): New function, based on ...
13920 (tic6x_arch_setup): ... this. Reimplement.
13921 (target_regsets): Rename to ...
13922 (tic6x_regsets): ... this, and make static.
13923 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13924 (tic6x_regs_info): New function.
13925 (the_low_target): Adjust.
13926 (initialize_low_arch): New function.
13927 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13928 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13929 (target_regsets): Rename to ...
13930 (xtensa_regsets): ... this, and make static.
13931 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13932 globals.
13933 (xtensa_arch_setup, xtensa_regs_info): New functions.
13934 (the_low_target): Adjust.
13935 (initialize_low_arch): New function.
13936 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13937 (nios2_arch_setup): Set the current process'es tdesc.
13938 (target_regsets): Rename to ...
13939 (nios2_regsets): ... this.
13940 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13941 (nios2_regs_info): New function.
13942 (the_low_target): Adjust.
13943 (initialize_low_arch): New function.
a261b8f5
PA
13944 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13945 (aarch64_arch_setup): Set the current process'es tdesc.
13946 (target_regsets): Rename to ...
13947 (aarch64_regsets): ... this.
13948 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
13949 (aarch64_regs_info): New function.
13950 (the_low_target): Adjust.
13951 (initialize_low_arch): New function.
3aee8918
PA
13952 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
13953 globals.
13954 (target_regsets): Rename to ...
13955 (tile_regsets): ... this.
13956 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
13957 (tile_regs_info): New function.
13958 (tile_arch_setup): Set the current process'es tdesc.
13959 (the_low_target): Adjust.
13960 (initialize_low_arch): New function.
13961 * spu-low.c (tdesc_spu): Declare.
13962 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
13963 * win32-arm-low.c (tdesc_arm): Declare.
13964 (arm_arch_setup): New function.
13965 (the_low_target): Install arm_arch_setup instead of
13966 init_registers_arm.
13967 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
13968 (init_windows_x86): Rename to ...
13969 (i386_arch_setup): ... this. Set `win32_tdesc'.
13970 (the_low_target): Adjust.
13971 * win32-low.c (win32_tdesc): New global.
13972 (child_add_thread): Don't create the thread cache here.
13973 (do_initial_child_stuff): Set the new process'es tdesc.
13974 * win32-low.h (struct target_desc): Forward declare.
13975 (win32_tdesc): Declare.
13976 * lynx-i386-low.c (tdesc_i386): Declare global.
13977 (lynx_i386_arch_setup): Set `lynx_tdesc'.
13978 * lynx-low.c (lynx_tdesc): New global.
13979 (lynx_add_process): Set the new process'es tdesc.
13980 * lynx-low.h (struct target_desc): Forward declare.
13981 (lynx_tdesc): Declare global.
13982 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
13983 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
13984 * nto-low.c (nto_tdesc): New global.
13985 (do_attach): Set the new process'es tdesc.
13986 * nto-low.h (struct target_desc): Forward declare.
13987 (nto_tdesc): Declare.
13988 * nto-x86-low.c (tdesc_i386): Declare.
13989 (nto_x86_arch_setup): Set `nto_tdesc'.
13990
b1fbec62
GB
139912013-06-04 Gary Benson <gbenson@redhat.com>
13992
13993 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
13994 to qSupported response when appropriate.
13995 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
13996 with nonzero-length annex.
13997 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
13998 arguments supplied in annex.
13999
d1ec4ce7
DE
140002013-05-31 Doug Evans <dje@google.com>
14001
ac44adcb 14002 PR server/15594
d1ec4ce7
DE
14003 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14004 64 bits in 64-cross-32 environment.
14005
9b25f2d3
PA
140062013-05-28 Pedro Alves <palves@redhat.com>
14007
14008 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14009 (aarch64-without-fpu.c): Delete rule.
14010 * configure.srv (aarch64*-*-linux*): Remove references to
14011 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14012 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14013 declaration.
14014
6740dc9c
PA
140152013-05-24 Pedro Alves <palves@redhat.com>
14016
14017 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14018 instead of strchr/decode_address. Error if the range isn't split
14019 with a ','. Don't assume there's be a ':' in the action.
14020
c2d6af84
PA
140212013-05-23 Yao Qi <yao@codesourcery.com>
14022 Pedro Alves <palves@redhat.com>
14023
14024 * linux-low.c (lwp_in_step_range): New function.
14025 (linux_wait_1): If the thread was range stepping and stopped
14026 outside the stepping range, report the stop to GDB. Otherwise,
14027 continue stepping. Add range stepping debug output.
14028 (linux_set_resume_request): Copy the step range from the resume
14029 request to the lwp.
14030 (linux_supports_range_stepping): New.
14031 (linux_target_ops) <supports_range_stepping>: Set to
14032 linux_supports_range_stepping.
14033 * linux-low.h (struct linux_target_ops)
14034 <supports_range_stepping>: New field.
14035 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14036 * linux-x86-low.c (x86_supports_range_stepping): New.
14037 (the_low_target) <supports_range_stepping>: Set to
14038 x86_supports_range_stepping.
14039 * server.c (handle_v_cont): Handle 'r' action.
14040 (handle_v_requests): Append ";r" if the target supports range
14041 stepping.
14042 * target.h (struct thread_resume) <step_range_start,
14043 step_range_end>: New fields.
14044 (struct target_ops) <supports_range_stepping>:
14045 New field.
14046 (target_supports_range_stepping): New macro.
14047
58794e1a
JB
140482013-05-17 Joel Brobecker <brobecker@adacore.com>
14049
14050 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14051 confusion in comment.
14052
d631c5a7
JB
140532013-05-17 Joel Brobecker <brobecker@adacore.com>
14054
14055 * lynx-low.c (struct process_info_private): New type.
14056 (lynx_add_process): New function.
14057 (lynx_create_inferior, lynx_attach): Replace calls to
14058 add_process by calls to lynx_add_process.
14059 (lynx_resume): If PTID is null, then try using
14060 current_process()->private->last_wait_event_ptid.
14061 Add comments.
14062 (lynx_clear_inferiors): Delete. The contents of that function
14063 has been inlined in lynx_mourn;
14064 (lynx_wait_1): Save the ptid in the process's private data.
14065 (lynx_mourn): Free the process' private data. Replace call
14066 to lynx_clear_inferiors by call to clear_inferiors.
14067
96f7a20f
YQ
140682013-05-17 Yao Qi <yao@codesourcery.com>
14069
14070 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14071 the right place.
14072
db0dfaa0
LM
140732013-05-16 Luis Machado <lgustavo@codesourcery.com>
14074
14075 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14076 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14077 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14078 PT_TEXT_END_ADDR guards. Update comments.
14079 (linux_target_op) <read_offsets>: Conditionally define to
14080 linux_read_offsets if the target is UCLIBC and if it defines
14081 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14082
68f5f838
SL
140832013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14084 Andrew Jenner <andrew@codesourcery.com>
14085
14086 * Makefile.in (SFILES): Add linux-nios2-low.c.
14087 (clean): Add action to delete nios2-linux.c.
14088 (nios2-linux.c): New rule.
14089 * configure.srv: Add nios2*-*-linux*.
14090 * linux-nios2-low.c: New.
14091
1ebff1fd
HAQ
140922013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14093
14094 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14095
f6150862
HZ
140962013-04-25 Hui Zhu <hui@codesourcery.com>
14097
14098 PR gdb/15186
f6150862
HZ
14099 * ax.c (ax_printf): Add fflush.
14100
614c279d
TT
141012013-04-22 Tom Tromey <tromey@redhat.com>
14102
14103 * Makefile.in (SFILES): Add filestuff.c.
14104 (OBS): Add filestuff.o.
14105 (filestuff.o): New target.
14106 * config.in, configure: Rebuild.
14107 * configure.ac: Check for fdwalk, pipe2.
14108
7d4e5717
PA
141092013-04-17 Pedro Alves <palves@redhat.com>
14110
14111 * configure.ac (USE_THREAD_DB): Delete variable.
14112 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14113 Don't AC_SUBST USE_THREAD_DB.
14114 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14115 * config.in, configure: Regenerate.
14116
d5c93e41
PA
141172013-04-16 Pedro Alves <palves@redhat.com>
14118
14119 * linux-low.h (struct lwp_info) <thread_known>: Move under
14120 the USE_THREAD_DB #ifdef.
14121
04f5fe89
PA
141222013-04-16 Pedro Alves <palves@redhat.com>
14123
14124 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14125 (linux-low.o): Delete rule.
14126 * linux-low.h: Always include "gdb_thread_db.h" instead of
14127 conditionally including thread_db.h.
14128 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14129 HAVE_THREAD_DB_H.
14130
480b27bf
JK
141312013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14132
14133 * Makefile.in (install-only): Fix make install regression.
14134
43662968
JK
141352013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14136
14137 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14138 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14139 installation.
14140 * gdbserver.1: Remove.
14141
3e74e146
PA
141422013-03-22 Pedro Alves <palves@redhat.com>
14143
14144 * linux-low.c (handle_extended_wait): Don't call
14145 linux_enable_event_reporting.
14146
a8347a2a
TT
141472013-03-15 Tony Theodore <tonyt@logyst.com>
14148
14149 PR build/9098:
14150 * Makefile.in (SHELL): Use @SHELL@.
14151
eeb56fa7
SDJ
141522013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14153
14154 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14155 compiler warning.
14156
4fa7e2ff
JB
141572013-03-13 Joel Brobecker <brobecker@adacore.com>
14158
14159 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14160 Remove extraneous NULL element.
14161
8ddb1965
YQ
141622013-03-13 Yao Qi <yao@codesourcery.com>
14163
14164 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14165 'V' block in trace frame.
14166
9accd112
MM
141672013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14168
14169 * target.h (struct target_ops): Add btrace ops.
14170 (target_supports_btrace): New macro.
14171 (target_enable_btrace): New macro.
14172 (target_disable_btrace): New macro.
14173 (target_read_btrace): New macro.
14174 * gdbthread.h (struct thread_info): Add btrace field.
14175 * server.c: Include btrace-common.h.
14176 (handle_btrace_general_set): New function.
14177 (handle_btrace_enable): New function.
14178 (handle_btrace_disable): New function.
14179 (handle_general_set): Call handle_btrace_general_set.
14180 (handle_qxfer_btrace): New function.
14181 (struct qxfer qxfer_packets[]): Add btrace entry.
14182 * inferiors.c (remove_thread): Disable btrace.
14183 * linux-low: Include linux-btrace.h.
14184 (linux_low_enable_btrace): New function.
14185 (linux_low_read_btrace): New function.
14186 (linux_target_ops): Add btrace ops.
14187 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14188 Add srv_linux_btrace=yes.
14189 (x86_64-*-linux*): Add linux-btrace.o.
14190 Add srv_linux_btrace=yes.
14191 * configure.ac: Define HAVE_LINUX_BTRACE.
14192 * config.in: Regenerated.
14193 * configure: Regenerated.
14194
5cc22e4c
MM
141952013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14196
14197 * server.c (handle_qxfer): Preserve error message if -3 is
14198 returned.
14199 (qxfer): Document the -3 return value.
14200
7c97f91e
MM
142012013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14202
14203 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14204 (linux_btrace_h): New variable.
14205 (linux-btrace.o): New rule.
14206
be9a119c 142072013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14208 Hafiz Abid Qadeer <abidh@codesourcery.com>
14209
14210 * tracepoint.c (trace_buffer_size): New global.
14211 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14212 (init_trace_buffer): Change to one-argument function. Allocate
14213 trace buffer memory.
14214 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14215 handle QTBuffer:size packet.
14216 (cmd_bigqtbuffer_size): New function.
14217 (initialize_tracepoint): Call init_trace_buffer with
14218 DEFAULT_TRACE_BUFFER_SIZE.
14219 * server.c (handle_query): Add QTBuffer:size in the
14220 supported packets.
14221
e64f7499
YQ
142222013-03-07 Yao Qi <yao@codesourcery.com>
14223
14224 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14225 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14226 of -1.
14227 (cmd_qtsp): Adjust condition. Do post increment.
14228 Set cur_action and cur_step_action back to 0.
14229
f0ae6fc3
PA
142302013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14231
14232 PR server/15236
14233 * linux-low.c (linux_write_memory): Return early success if LEN is
14234 zero.
14235
b5b0b0af
CV
142362013-03-05 Corinna Vinschen <vinschen@redhat.de>
14237
334ad4a8 14238 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14239
589bc927
TT
142402013-02-28 Tom Tromey <tromey@redhat.com>
14241
14242 * configure.ac: Invoke AC_SYS_LARGEFILE.
14243 * configure, config.in: Rebuild.
14244
dfe07582
CV
142452013-02-28 Corinna Vinschen <vinschen@redhat.com>
14246
14247 * win32-low.c: Throughout, fix format strings and casts of
14248 printf-like functions to avoid type related warnings on all
14249 platforms.
14250 (get_child_debug_event): Print dwDebugEventCode as hex since
14251 that's how it's usually documented.
14252
736cd585
YQ
142532013-02-28 Yao Qi <yao@codesourcery.com>
14254
14255 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14256 pulongest.
14257
e1f58301
JW
142582013-02-27 Jiong Wang <jiwang@tilera.com>
14259
14260 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14261 (reg-tilegx32.c): New rule.
14262 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14263 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14264 different register info initializer according to elf class.
14265 (init_registers_tilgx32): New function. The tilegx32 register info
14266 initializer.
14267 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14268 (tile_store_gregset): Likewise.
14269
d171ca78
YQ
142702013-02-27 Yao Qi <yao@codesourcery.com>
14271
14272 * server.c (process_point_options): Print debug message when
14273 debug_threads is true.
14274
282bbdf3
YQ
142752013-02-26 Yao Qi <yao@codesourcery.com>
14276
14277 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14278
aca22551
PA
142792013-02-19 Pedro Alves <palves@redhat.com>
14280 Kai Tietz <ktietz@redhat.com>
14281
14282 PR gdb/15161
14283
14284 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14285 instead of strtoul to extract address from packet.
14286 (process_serial_event) <'z'>: Likewise.
14287
4f3cee1c
YQ
142882013-02-18 Yao Qi <yao@codesourcery.com>
14289
14290 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14291
8e1d55a3
PA
142922013-02-14 Pedro Alves <palves@redhat.com>
14293
14294 Plug memory leak.
14295
14296 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14297 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14298
458820da
PA
142992013-02-14 Pedro Alves <palves@redhat.com>
14300
14301 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14302
baea0dae
PA
143032013-02-14 Pedro Alves <palves@redhat.com>
14304
14305 * tracepoint.c (save_string): Delete.
14306 (add_tracepoint_action): Use savestring instead of save_string.
14307
0b1afbb3
PA
143082013-02-12 Pedro Alves <palves@redhat.com>
14309
14310 * linux-xtensa-low.c: Ditto.
14311 * xtensa-xtregs.c: Ditto.
14312
8a4ac37e
PA
143132013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14314
14315 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14316 thread_db.
14317
148de6bb
MS
143182013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14319
14320 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14321 aarch64_num_wp_regs and aarch64_num_bp_regs to
14322 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14323
55fac6e0
MS
143242013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14325
14326 * linux-aarch64-low.c (ps_get_thread_area): Replace
14327 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14328
176eb98c
MS
143292013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14330 Marcus Shawcroft <marcus.shawcroft@arm.com>
14331 Nigel Stephens <nigel.stephens@arm.com>
14332 Yufeng Zhang <yufeng.zhang@arm.com>
14333
14334 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14335 (aarch64.c, aarch64-without-fpu.c): New targets.
14336 * configure.srv (aarch64*-*-linux*): New.
14337 * linux-aarch64-low.c: New file.
14338
56f7af9c
MS
143392013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14340
43aaf8b6 14341 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14342 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14343 (dequeue_one_deferred_signal, linux_resume_one_thread)
14344 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14345 (linux_tracefork_grandchild, linux_test_for_tracefork)
14346 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14347 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14348 where the argument is 0.
14349
60f662b0
YQ
143502013-01-25 Yao Qi <yao@codesourcery.com>
14351
14352 * event-loop.c: Include "queue.h".
14353 (gdb_event_p): New typedef.
14354 (struct gdb_event) <next_event>: Remove.
14355 (event_queue): Change to QUEUE(gdb_event_p).
14356 (async_queue_event): Remove.
14357 (gdb_event_xfree): New.
14358 (initialize_event_loop): New.
14359 (process_event): Use API from QUEUE.
14360 (wait_for_event): Likewise.
14361 * server.c (main): Call initialize_event_loop.
14362 * server.h (initialize_event_loop): Declare.
14363
5ae4861a
YQ
143642013-01-18 Yao Qi <yao@codesourcery.com>
14365
14366 * ax.h (struct eval_agent_expr_context): New.
14367 (gdb_eval_agent_expr): Update declaration.
14368 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14369 TFRAME. Add new argument CTX.
14370 * server.h (struct eval_agent_expr_context): Declare.
14371 (agent_mem_read, agent_tsv_read): Update declaration.
14372 (agent_mem_read_string): Likewise.
14373 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14374 (add_traceframe_block): Add new argument TPOINT.
14375 Increase TPOINT->traceframe_usage.
14376 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14377 eval_tracepoint_agent_expr.
14378 (condition_true_at_tracepoint): Likewise.
14379 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14380 (agent_mem_read_string, agent_tsv_read): Likewise.
14381
85e00e85
YQ
143822013-01-16 Yao Qi <yao@codesourcery.com>
14383
14384 * linux-low.c (linux_resume_one_lwp): Don't check
14385 'lwp->bp_reinsert != 0'.
14386
4039cf45
JB
143872013-01-07 Joel Brobecker <brobecker@adacore.com>
14388 Pedro Alves <palves@redhat.com>
14389
14390 * lynx-low.c (ptrace_request_to_str): Define a temporary
14391 macro and use it to simplify this function's implementation.
14392
9044dee2
JB
143932013-01-07 Joel Brobecker <brobecker@adacore.com>
14394
14395 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14396 sets errno.
14397
e6352c8f
JB
143982013-01-07 Joel Brobecker <brobecker@adacore.com>
14399
14400 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14401
50681a27
JB
144022013-01-07 Joel Brobecker <brobecker@adacore.com>
14403
14404 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14405
3f6e77ef
JB
144062013-01-07 Joel Brobecker <brobecker@adacore.com>
14407
14408 * lynx-low.c (lynx_resume): Use the resume_info parameter
14409 to determine the ptid for the lynx_ptrace call, unless
14410 it is equal to minus_one_ptid, in which case we use the
14411 ptid of the current_inferior.
14412 (lynx_wait_1): After having received a thread create/exit
14413 event, resume the inferior's execution using the signaling
14414 thread's ptid, rather than the old ptid.
14415
7fda33ae
JB
144162013-01-07 Joel Brobecker <brobecker@adacore.com>
14417
14418 * lynx-low.c (lynx_resume): Delete variable ret.
14419
b9786c74
JB
144202013-01-01 Joel Brobecker <brobecker@adacore.com>
14421
14422 * gdbreplay.c (gdbreplay_version): Update copyright year.
14423 * server.c (gdbserver_version): Likewise.
14424
8b93d60f
JB
144252012-12-17 Joel Brobecker <brobecker@adacore.com>
14426
14427 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14428 new thread.
14429
037335a7
JB
144302012-12-17 Joel Brobecker <brobecker@adacore.com>
14431
14432 * lynx-low.c (ptrace_request_to_str): Add handling for
14433 PTRACE_GETTRACESIG.
14434
52d4cbd8
JB
144352012-12-17 Joel Brobecker <brobecker@adacore.com>
14436
14437 * lynx-low.c (lynx_attach): Delete variable new_process.
14438
ab8f6ca9
JB
144392012-12-17 Joel Brobecker <brobecker@adacore.com>
14440
14441 * lynx-low.c (lynx_create_inferior): Delete variable
14442 new_process.
14443
78cbc024
JB
144442012-12-17 Joel Brobecker <brobecker@adacore.com>
14445
14446 * lynx-low.c (ptrace_request_to_str): Do not handle
14447 PTRACE_GETTHREADLIST if this macro does not exist.
14448
14a00470
YQ
144492012-12-15 Yao Qi <yao@codesourcery.com>
14450
14451 * Makefile.in (OBS): Add notif.o.
14452 * notif.c, notif.h: New.
14453 * server.c: Include "notif.h".
14454 (struct vstop_notif) <next>: Remove.
14455 <base>: New field.
14456 (queue_stop_reply): Update.
14457 (push_event, send_next_stop_reply): Remove.
14458 (discard_queued_stop_replies): Update.
14459 (notif_stop): New variable.
14460 (handle_v_stopped): Remove.
14461 (handle_v_requests): Don't call handle_v_stopped. Call
14462 handle_ack_notif instead.
14463 (queue_stop_reply_callback): Call notif_event_enque instead
14464 of queue_stop_reply.
14465 (handle_status): Don't call send_next_stop_reply, call
14466 notif_write_event instead.
14467 (kill_inferior_callback): Likewise.
14468 (detach_or_kill_inferior_callback): Likewise.
14469 (main): Call initialize_notif.
14470 (process_serial_event): Call QUEUE_is_empty.
14471 (handle_target_event): Call notif_push instead of push event.
14472 * server.h (push_event): Remove declaration.
14473
61c125b9
TT
144742012-12-10 Tom Tromey <tromey@redhat.com>
14475
14476 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14477 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14478 macros.
14479 (.c.o): Rewrite.
14480 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14481 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14482 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14483 (amd64-linux-ipa.o, ax.o): Rewrite.
14484 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14485 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14486 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14487 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14488 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14489 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14490 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14491 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14492 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14493 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14494 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14495 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14496 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14497 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14498 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14499 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14500 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14501 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14502 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14503 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14504 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14505 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14506 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14507 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14508 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14509 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14510 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14511 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14512 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14513 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14514 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14515 (reg-tilegx.o): Remove.
14516 (all_object_files): New macro.
14517 Include .deps files.
14518 * aclocal.m4, configure: Rebuild.
14519 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14520 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14521 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14522
e90e9ad9
TT
145232012-12-05 Tom Tromey <tromey@redhat.com>
14524
14525 PR gdb/14917:
14526 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14527
02d403bf 145282012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14529
14530 * configure.ac: Check for linux/perf_event.h.
14531 * config.in: Regenerated.
14532 * configure: Regenerated.
14533
0270a750
PA
145342012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14535
14536 * hostio.c (handle_readlink): Decrease buffer size
14537 parameter passed to readlink by one byte.
14538
8c29b58e
YQ
145392012-11-26 Yao Qi <yao@codesourcery.com>
14540
14541 * configure.ac (build_warnings): Append '-Wempty-body'.
14542 * configure: Regenerated.
14543 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14544 body.
14545
8bdce1ff
PM
145462012-11-15 Pierre Muller <muller@sourceware.org>
14547
14548 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14549 * config.in: Regenerate.
14550 * configure: Regenerate.
14551 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14552 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14553 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14554 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14555 header.
14556 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14557 instead of <sys/wait.h> header.
14558 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14559
02d403bf 145602012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14561
14562 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14563 (various make rules): Remove -DGDBSERVER
14564
fbd5db48
YQ
145652012-11-09 Yao Qi <yao@codesourcery.com>
14566
14567 * spu-low.c (current_ptid): Move it to ..
14568 * gdbthread.h: ... here. New.
14569 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14570 * server.c (myresume, process_serial_event): Likewise.
14571 * thread-db.c (thread_db_find_new_threads): Likewise.
14572 * tracepoint.c (run_inferior_command): Likewise.
14573
b3dc46ff
AB
145742012-10-01 Andrew Burgess <aburgess@broadcom.com>
14575
14576 * server.c (handle_search_memory_1): Include access length in
14577 warning message.
14578
07c04788
HPN
145792012-09-05 Michael Brandt <michael.brandt@axis.com>
14580
14581 * linux-crisv32-low.c: Fix compile errors.
14582
918d227b
YQ
145832012-09-04 Yao Qi <yao@codesourcery.com>
14584
14585 * tracepoint.c (cmd_qtsv): Adjust debug message.
14586 Don't check CUR_TPOINT.
14587
18c1b81a
YQ
145882012-08-28 Yao Qi <yao@codesourcery.com>
14589
14590 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14591 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14592 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14593 Remove declarations of xmalloc, xreallloc, xstrdup and
14594 freeargv.
14595 * Makefile.in (libiberty_h): New.
14596 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14597 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14598
dc82f37b
YQ
145992012-08-23 Yao Qi <yao@codesourcery.com>
14600
14601 * server.h: Remove declaration of 'xsnprintf'.
14602
406b1477
KS
146032012-08-22 Keith Seitz <keiths@redhat.com>
14604
14605 * server.h: Include build-gnulib-gbserver/config.h.
14606 * gdbreplay.c: Likewise.
14607
e6712ff1
DE
146082012-08-08 Doug Evans <dje@google.com>
14609
14610 * Makefile.in (SFILES): Add gdb_vecs.c.
14611 (OBS): Add gdb_vecs.o.
14612 (gdb_vecs_h, host_defs_h): New variables.
14613 (thread-db.o): Add $(gdb_vecs_h) dependency.
14614 (gdb_vecs.o): New rule.
14615 * thread-db.c: #include "gdb_vecs.h".
14616 (thread_db_load_search): Use a vector to iterate over path elements.
14617 Handle text appearing after "$pdir".
14618
14619 * configure.ac: Add check for strstr.
14620 * config.in: Regenerate.
14621 * configure: Regenerate.
14622
7c3270ae
UW
146232012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14624
14625 * hostio.c (handle_pread): If pread fails, fall back to attempting
14626 lseek/read.
14627 (handle_pwrite): Likewise for pwrite.
14628
b62e2b27
UW
146292012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14630
14631 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14632 between unsupported TYPE and unimplementable ADDR/LEN combination.
14633 (arm_insert_point): Act on new return value.
14634
78a99e91
PA
146352012-07-31 Pedro Alves <palves@redhat.com>
14636
14637 * server.c (process_point_options): Only skip tokens if we find
14638 one that is unrecognized. Don't treat 'X' specially while
14639 skipping unrecognized tokens.
14640
fcf303ab
UW
146412012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14642
14643 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14644 to 4-byte-align HW breakpoint addresses for Thumb.
14645
7255706c
YQ
146462012-07-27 Yao Qi <yao@codesourcery.com>
14647
14648 PR remote/14161.
14649
14650 * server.h: Declare gdb_agent_about_to_close.
14651 * target.c (kill_inferior): Include "agent.h".
14652 New. Send command 'kill'.
14653 * target.h (kill_inferior): Removed macro.
14654 * tracepoint.c (gdb_agent_about_to_close): New.
14655 (gdb_agent_helper_thread): Handle command 'close'.
14656 Wait endlessly until the inferior stops.
14657 Install gdb_agent_remove_socket to atexit hook.
14658 (agent_socket_name): New static variable.
14659 (gdb_agent_socket_init): Replace local variable 'name' with
14660 'agent_socket_name'.
14661 (gdb_agent_remove_socket): New.
14662
5a3f286f
YQ
146632012-07-27 Yao Qi <yao@codesourcery.com>
14664
14665 * server.c (process_point_options): Stop at 'X' when parsing.
14666
961bd387
ME
146672012-07-19 Michael Eager <eager@eagercon.com>
14668
a261b8f5 14669 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14670 to hw_execute.
14671 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14672 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14673 hardware breakpoint.
14674
aa7c7447
JK
146752012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14676
14677 * gdbserver/linux-low.c (initialize_low): Call
14678 linux_ptrace_init_warnings.
14679
7f216e7c
DE
146802012-07-02 Doug Evans <dje@google.com>
14681
14682 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14683 pointer to int.
14684
d3ce09f5
SS
146852012-07-02 Stan Shebs <stan@codesourcery.com>
14686
14687 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14688 (ax.o): Add it to build rule.
14689 (ax-ipa.o): Ditto.
14690 (OBS): Add format.o.
14691 (IPA_OBS): Add format.o.
14692 * server.c (handle_query): Claim support for breakpoint commands.
14693 (process_point_options): Add command case.
14694 (process_serial_event): Leave running if there are printfs in
14695 effect.
14696 * mem-break.h (any_persistent_commands): Declare.
14697 (add_breakpoint_commands): Declare.
14698 (gdb_no_commands_at_breakpoint): Declare.
14699 (run_breakpoint_commands): Declare.
14700 * mem-break.c (struct point_command_list): New struct.
14701 (struct breakpoint): New field command_list.
14702 (any_persistent_commands): New function.
14703 (add_commands_to_breakpoint): New function.
14704 (add_breakpoint_commands): New function.
14705 (gdb_no_commands_at_breakpoint): New function.
14706 (run_breakpoint_commands): New function.
14707 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14708 locally.
14709 * ax.c: Include format.h.
14710 (ax_printf): New function.
14711 (gdb_eval_agent_expr): Add printf opcode.
14712
2f8f6aed
YQ
147132012-06-13 Yao Qi <yao@codesourcery.com>
14714
14715 * server.c (start_inferior): Remove duplicated writes to fields
14716 'last_resume_kind' and 'last_status' of 'current_inferior'.
14717
0c9070b3
YQ
147182012-06-12 Yao Qi <yao@codesourcery.com>
14719 Pedro Alves <palves@redhat.com>
14720
14721 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14722 comment.
14723 * server.c (handle_v_cont): Extend comment.
14724
c52daf70
YQ
147252012-06-11 Yao Qi <yao@codesourcery.com>
14726
14727 * linux-low.c (linux_attach): Add 'static'.
14728
d38bbb0a
YQ
147292012-06-06 Yao Qi <yao@codesourcery.com>
14730
14731 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14732
89dc0afd
JK
147332012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14734
14735 Fix gcc -flto compilation warning.
14736 * server.c (main): Make variable multi_mode and attach volatile.
14737
75f62ce7
TJB
147382012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14739
14740 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14741 if the platform doesn't know about it.
14742
65f479b6
PA
147432012-05-30 Jeff Kenton <jkenton@tilera.com>
14744
14745 * Makefile.in (SFILES): Add linux-tile-low.c.
14746 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14747 * configure.srv: Handle tilegx-*-linux*.
14748 * linux-tile-low.c: New file.
14749
0c5bf5a9
JK
147502012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14751
14752 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14753
a493e3e2
PA
147542012-05-24 Pedro Alves <palves@redhat.com>
14755
14756 PR gdb/7205
14757
43aaf8b6 14758 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 14759
2ea28649
PA
147602012-05-24 Pedro Alves <palves@redhat.com>
14761
14762 PR gdb/7205
14763
14764 Replace target_signal with gdb_signal throughout.
14765
8d409d16
MR
147662012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14767
14768 * linux-low.c (linux_store_registers): Avoid the copying sequence
14769 when no data has been retrieved by ptrace.
14770
23512c01
MGD
147712012-05-22 Will Deacon <will.deacon@arm.com>
14772
14773 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14774 Include asm/ptrace.h.
14775 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14776 already defined.
14777
4934b29e
MR
147782012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14779
14780 * linux-low.c (linux_store_registers): Don't re-retrieve data
14781 with ptrace that has already been obtained from /proc. Always
14782 copy any data retrieved with ptrace to the buffer supplied.
14783
bde24c0a
PA
147842012-05-11 Yao Qi <yao@codesourcery.com>
14785 Pedro Alves <palves@redhat.com>
14786
14787 * linux-low.c (enum stopping_threads_kind): New.
14788 (stopping_threads): Change type to `enum stopping_threads_kind'.
14789 (handle_extended_wait): If stopping and suspending threads, leave
14790 the new_lwp suspended too.
14791 (linux_wait_for_event): Adjust.
14792 (stop_all_lwps): Set `stopping_threads' to
14793 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14794 whether we're suspending threads or just stopping them. Assert no
14795 recursion happens.
14796
623b6bdf
YQ
147972012-04-29 Yao Qi <yao@codesourcery.com>
14798
14799 * server.h: Move some code to ...
14800 * gdbthread.h: ... here. New.
14801 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14802 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14803 (nto-low.o, win32-low.o): Likewise.
14804 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14805 * regcache.c, remote-utils.c, server.c: Likewise.
14806 * target.c, tracepoint.c, win32-low.c: Likewise.
14807
f15f9948
TJB
148082012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14809
14810 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14811 (PTRACE_ARG4_TYPE): Likewise.
14812 (PTRACE_XFER_TYPE): Likewise.
14813 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14814 ptrace to PTRACE_ARG3_TYPE.
14815 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14816 (PTRACE_ARG4_TYPE): Likewise.
14817 (PTRACE_XFER_TYPE): Likewise.
14818 (linux_detach_one_lwp): Cast fourth argument of
14819 ptrace to long then PTRACE_ARG4_TYPE.
14820 (regsets_fetch_inferior_registers): Cast third argument of
14821 ptrace to long then PTRACE_ARG3_TYPE.
14822 (regsets_store_inferior_registers): Likewise.
14823
38ea300a
PA
148242012-04-20 Pedro Alves <palves@redhat.com>
14825
14826 * configure: Regenerate.
14827
c971b7fa
PA
148282012-04-19 Pedro Alves <palves@redhat.com>
14829
43aaf8b6 14830 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 14831 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
14832 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14833 (all, install-only, uninstall, clean-info, all-lib, clean): No
14834 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14835 (maintainer-clean realclean distclean): Use subdir_do.
14836 (subdir_do): New.
14837 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 14838 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
14839 * acinclude.m4: Include acx_configure_dir.m4.
14840 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14841 calls. Call AC_PROG_RANLIB. Configure gnulib using
14842 ACX_CONFIGURE_DIR.
14843 (GNULIB): New.
14844 (GNULIB_STDINT_H): Adjust.
14845 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14846 * gdbreplay.c: Include build-gnulib/config.h.
14847 * server.h: Likewise.
14848 * aclocal.m4: Regenerate.
14849 * config.in: Regenerate.
14850 * configure: Regenerate.
c971b7fa 14851
809277f8
PA
148522012-04-19 Pedro Alves <palves@redhat.com>
14853
14854 * Makefile.in (LIBGNU, INCGNU): Adjust.
14855 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14856 (all, install-only, uninstall, clean-info, all-lib, clean)
14857 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14858 * configure.ac: Adjust AC_OUTPUT output.
14859 * aclocal.m4: Regenerate.
14860 * configure: Regenerate.
14861
fd9bb8b8
PA
148622012-04-19 Pedro Alves <palves@redhat.com>
14863
14864 * Makefile.in (generated_files): New.
14865 (server_h): Remove the explicit dependency on config.h, and depend
14866 on $generated_files.
14867
1c298c66
PA
148682012-04-19 Pedro Alves <palves@redhat.com>
14869
14870 * Makefile.in (INCGNU): Add -Ignulib.
14871
57c4b50b
PA
148722012-04-19 Pedro Alves <palves@redhat.com>
14873
14874 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14875 (INCGNU): ... this, and spell out -I here.
14876 (GNULIB_LIB): Rename to ...
14877 (LIBGNU): ... this.
14878 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14879
1030e047
PA
148802012-04-19 Pedro Alves <palves@redhat.com>
14881
14882 * config.in: Regenerate.
14883
447d4319
PA
148842012-04-19 Pedro Alves <palves@redhat.com>
14885
14886 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14887 * server.h (memmem): Remove declaration.
14888 * config.in: Regenerate.
14889 * configure: Regenerate.
14890
aad9eab9
YQ
148912012-04-19 Yao Qi <yao@codesourcery.com>
14892
14893 * Makefile.in (SFILES): Add common/vec.c.
14894 (OBS): Add vec.o.
14895 (vec.o): New rule.
14896
3e10640f
YQ
148972012-04-19 Yao Qi <yao@codesourcery.com>
14898
14899 * remote-utils.c (prepare_resume_reply): Replace with macro
14900 target_core_of_thread.
14901 * server.c (handle_qxfer_threads_proper): Likewise.
14902 * target.h (traget_core_of_thread): New macro.
14903
71622373
PA
149042012-04-18 Pedro Alves <palves@redhat.com>
14905
14906 * aclocal.m4: Regenerate.
14907 * configure: Regenerate.
14908
80d26939
YQ
149092012-04-16 Yao Qi <yao@codesourcery.com>
14910
14911 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14912 duplicated on address.
14913
42476b70
YQ
149142012-04-16 Yao Qi <yao@codesourcery.com>
14915
14916 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14917 (struct tracepoint_action_ops) <send>: New field.
14918 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14919 (agent_expr_send, x_tracepoint_action_send): New.
14920 (l_tracepoint_action_send): New.
14921 (cmd_qtdp): Download and install tracepoint
14922 according to `use_agent'.
14923 (run_inferior_command): Add one more parameter `len'.
14924 Update callers.
14925 (tracepoint_send_agent): New.
14926 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14927
7bc83639
YQ
149282012-04-16 Yao Qi <yao@codesourcery.com>
14929
14930 * tracepoint.c (download_tracepoints): Moved to ...
14931 (cmd_qtstart): ... here.
14932
5f18041e
YQ
149332012-04-14 Yao Qi <yao@codesourcery.com>
14934
14935 * tracepoint.c: Include inttypes.h.
14936 (struct collect_memory_action): Use sized types.
14937 (struct tracepoint): Likewise.
14938 (cmd_qtdp, stop_tracing): Update print specifiers.
14939 (cmd_qtp, response_tracepoint): Likewise.
14940 (collect_data_at_tracepoint): Likewise.
14941 (collect_data_at_step): Likewise.
14942
55a8c076
YQ
149432012-04-14 Yao Qi <yao@codesourcery.com>
14944
14945 Import gnulib module inttypes.
14946 * aclocal.m4, config.in, configure: Regenerated.
14947
dc750257
YQ
149482012-04-14 Yao Qi <yao@codesourcery.com>
14949
14950 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14951 Makefile and config.status at last.
14952
0ab5faf9
YQ
149532012-04-13 Yao Qi <yao@codesourcery.com>
14954
14955 * tracepoint.c: Include stdint.h unconditionally.
14956
18f5fd81
TJB
149572012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14958
14959 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
14960 on BFD_HAVE_SYS_PROCFS_TYPE.
14961 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
14962 * configure: Regenerate.
14963 * config.in: Likewise.
14964
4d47af5c
L
149652012-04-13 H.J. Lu <hongjiu.lu@intel.com>
14966
14967 * Makefile.in (clean): Also remove x32.c x32-linux.c
14968 x32-avx.c x32-avx-linux.c.
14969 (x32.o): New target.
14970 (x32.c): Likewise.
14971 (x32-linux.o): Likewise.
14972 (x32-linux.c): Likewise.
14973 (x32-avx.o): Likewise.
14974 (x32-avx.c): Likewise.
14975 (x32-avx-linux.o): Likewise.
14976 (x32-avx-linux.c): Likewise.
14977
14978 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
14979 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
14980 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
14981 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
14982 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
14983 i386/x32-avx-linux.xml.
14984
14985 * linux-x86-low.c (init_registers_x32_linux): New prototype.
14986 (init_registers_x32_avx_linux): Likwise.
14987 (x86_linux_update_xmltarget): Call init_registers_x32_linux
14988 or init_registers_x32_avx_linux if linux_is_elf64 is false.
14989
ecedbe58
PA
149902012-04-13 Pedro Alves <palves@redhat.com>
14991
14992 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
14993 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
14994 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
14995 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
14996 the sub-make.
14997
c92b5177
L
149982012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14999
15000 * linux-x86-low.c (compat_x32_clock_t): New.
15001 (compat_x32_siginfo_t): Likewise.
15002 (compat_x32_siginfo_from_siginfo): Likewise.
15003 (siginfo_from_compat_x32_siginfo): Likewise.
15004 (linux_is_elf64): Likewise.
15005 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15006 and siginfo_from_compat_x32_siginfo for x32.
15007 (x86_arch_setup): Set linux_is_elf64.
15008
214d508e
L
150092012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15010
15011 PR gdb/13969
15012 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15013 e_machine field.
15014 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15015 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15016 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15017 compatible with process.
15018
c9a1864a
YQ
150192012-04-12 Yao Qi <yao@codesourcery.com>
15020
15021 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15022 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15023 (install-only, install-info, clean): Handle sub dir gnulib.
15024 (all-lib, am--refresh): New targets.
15025 (memmem.o): Remove target.
15026 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15027 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15028 (AC_REPLACE_FUNCS): Remove memmem.
15029 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15030 (AC_OUTPUT): Generate Makefile in gnulib/.
15031 * aclocal.m4, config.in, configure: Regenerated.
15032
367ba2c2
MR
150332012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15034
15035 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15036
9d236627
PA
150372012-04-05 Pedro Alves <palves@redhat.com>
15038
15039 -Werror=strict-aliasing
15040
15041 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15042 pointer.
15043
111217b3
PA
150442012-04-04 Pedro Alves <palves@redhat.com>
15045
15046 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15047 (sparc_store_gregset_from_stack, sparc_store_gregset)
15048 (sparc_breakpoint_at): Fix formatting.
15049
8365dcf5
TJB
150502012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15051
15052 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15053 are available.
15054 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15055 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15056 * config.in: Regenerate.
15057 * configure: Likewise.
15058
689cc2ae
PA
150592012-03-29 Pedro Alves <palves@redhat.com>
15060
15061 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15062 Correct ptrace arguments.
15063
c14dfd32
PA
150642012-03-28 Pedro Alves <palves@redhat.com>
15065
15066 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15067 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15068 (IA64_FR1_REGNUM): New defines.
15069 (ia64_fetch_register): New.
15070 (the_low_target): Install it.
15071 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15072 field.
15073 * linux-low.c (linux_fetch_registers): Try the
15074 the_low_target.fetch_register hook first.
15075
15076 * linux-arm-low.c (the_low_target): Adjust.
15077 * linux-bfin-low.c (the_low_target): Adjust.
15078 * linux-cris-low.c (the_low_target): Adjust.
15079 * linux-crisv32-low.c (the_low_target): Adjust.
15080 * linux-m32r-low.c (the_low_target): Adjust.
15081 * linux-m68k-low.c (the_low_target): Adjust.
15082 * linux-mips-low.c (the_low_target): Adjust.
15083 * linux-ppc-low.c (the_low_target): Adjust.
15084 * linux-s390-low.c (the_low_target): Adjust.
15085 * linux-sh-low.c (the_low_target): Adjust.
15086 * linux-sparc-low.c (the_low_target): Adjust.
15087 * linux-tic6x-low.c (the_low_target): Adjust.
15088 * linux-x86-low.c (the_low_target): Adjust.
15089 * linux-xtensa-low.c (the_low_target): Adjust.
15090
63c88e13
PA
150912012-03-26 Pedro Alves <palves@redhat.com>
15092
15093 * server.c (handle_qxfer_libraries): Don't bail early if
15094 the_target->qxfer_libraries_svr4 is not NULL.
15095
fb723180
PA
150962012-03-26 Pedro Alves <palves@redhat.com>
15097
15098 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15099
0afae3cf
PA
151002012-03-23 Pedro Alves <palves@redhat.com>
15101
15102 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15103 "library-list-svr4" element's start tag when the the DSO list is
15104 empty.
15105
485f1ee4
PA
151062012-03-23 Pedro Alves <palves@redhat.com>
15107
15108 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15109 a variable whose type size is the same as the inferior's pointer
15110 size.
15111
a5362b9a
TS
151122012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15113
15114 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15115 struct siginfo.
15116 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15117 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15118 * linux-low.h: Include <signal.h>.
15119 (struct siginfo): Remove forward declaration.
15120 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15121 struct siginfo.
15122
d226c142
MF
151232012-03-21 Mike Frysinger <vapier@gentoo.org>
15124
15125 * .gitignore: Ignore more files.
15126
122f36ef
PA
151272012-03-19 Pedro Alves <palves@redhat.com>
15128 Jan Kratochvil <jan.kratochvil@redhat.com>
15129
15130 * server.c (cont_thread, general_thread): Add describing comments.
15131 (start_inferior): Clear `cont_thread'.
15132 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15133 of a process.
15134
fc3e5175
YQ
151352012-03-15 Yao Qi <yao@codesourcery.com>
15136
15137 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15138 handling to ...
15139 (cmd_qtdp): ... here.
15140
8d0d92cd
YQ
151412012-03-15 Yao Qi <yao@codesourcery.com>
15142
15143 * tracepoint.c (struct tracepoint_action_ops): New.
15144 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15145 (m_tracepoint_action_download): New.
15146 (r_tracepoint_action_download): New.
15147 (x_tracepoint_action_download): New.
15148 (l_tracepoint_action_download): New.
15149 (add_tracepoint_action): Install `action->ops' according type.
15150 (download_tracepoint_1): Move code `download' function pointer
15151 of various tracepoint_action_ops.
15152
87b0bb13
JK
151532012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15154
15155 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15156 linux_ptrace_attach_warnings.
15157
5f572dec
JK
151582012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15159
15160 * Makefile.in (linux-ptrace.o): New.
15161 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15162 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15163 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15164 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15165 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15166 of these targets.
15167 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15168
f4647387
YQ
151692012-03-08 Yao Qi <yao@codesourcery.com>
15170 Pedro Alves <palves@redhat.com>
15171
15172 Fix PR server/13392.
15173 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15174 offset of JMP insn.
15175 * tracepoint.c (remove_tracepoint): New.
15176 (cmd_qtdp): Call remove_tracepoint when failed to install.
15177
9b224c5e
PA
151782012-03-07 Pedro Alves <palves@redhat.com>
15179
15180 * linux-low.c (get_detach_signal): New.
15181 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15182 Pass on pending signals to PTRACE_DETACH. Check the result of the
15183 ptrace call.
15184 * server.c (program_signals, program_signals_p): New.
15185 (handle_general_set): Handle QProgramSignals.
15186 * server.h (program_signals, program_signals_p): Declare.
15187
e237a7e2
JK
151882012-03-05 Pedro Alves <palves@redhat.com>
15189 Jan Kratochvil <jan.kratochvil@redhat.com>
15190
15191 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15192 New comment why.
15193
5808517f
YQ
151942012-03-03 Yao Qi <yao@codesourcery.com>
15195
15196 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15197 agent_look_up_symbols.
15198
58b4daa5
YQ
151992012-03-03 Yao Qi <yao@codesourcery.com>
15200
15201 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15202 (linux-x86-low.o): Likewise.
15203 * server.h: Remove in_process_agent_loaded.
15204 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15205 common/agent.c.
15206 Update callers.
15207
8ffcbaaf
YQ
152082012-03-03 Yao Qi <yao@codesourcery.com>
15209
15210 * tracepoint.c (gdb_agent_capability): New global.
15211 (in_process_agent_loaded_ust): Renamed to
15212 `in_process_agent_supports_ust'.
15213 Update callers.
15214 (in_process_agent_supports_ust): Call agent_capability_check.
15215 (clear_installed_tracepoints): Assert that agent supports
15216 agent.
15217
d1feda86
YQ
152182012-03-03 Yao Qi <yao@codesourcery.com>
15219
15220 * linux-low.c (linux_supports_agent): New.
15221 (linux_target_ops): Initialize field `supports_agent' with
15222 linux_supports_agent.
15223 * target.h (struct target_ops) <supports_agent>: New.
15224 (target_supports_agent): New macro.
15225 * server.c (handle_general_set): Handle packet 'QAgent'.
15226 (handle_query): Send `QAgent+'.
15227 * Makefile.in (server.o): Depends on agent.h.
15228
2fa291ac
YQ
152292012-03-03 Yao Qi <yao@codesourcery.com>
15230
15231 * Makefile.in (OBS): Add agent.o.
15232 Add new rule for agent.o.
15233 Track dependence of tracepoint.c on agent.h.
15234 * tracepoint.c (run_inferior_command_1):
15235 (run_inferior_command): Call agent_run_command.
15236 (gdb_ust_connect_sync_socket): Deleted. Move it to
15237 common/agent.c.
15238 (resume_thread, stop_thread): Likewise.
15239 (gdb_ust_socket_init): Renamed to ...
15240 (gdb_agent_socket_init): ... New.
15241 (gdb_ust_thread): Renamed to ...
15242 (gdb_agent_helper_thread): ... New.
15243 (gdb_ust_init): Move some code to ...
15244 (gdb_agent_init): ... here. New.
15245 [HAVE_UST]: Call gdb_ust_init.
15246 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15247 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15248 * config.in, configure: Regenerated.
15249
05044653
PA
152502012-03-02 Pedro Alves <palves@redhat.com>
15251
15252 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15253 * linux-low.c (struct simple_pid_list): New.
15254 (stopped_pids): New a struct simple_pid_list pointer.
15255 (add_to_pid_list, pull_pid_from_list): New.
15256 (handle_extended_wait): Don't assume the first signal new children
15257 report is SIGSTOP. Adjust call to pull_pid_from_list.
15258 (linux_wait_for_lwp): Adjust.
15259
8d00225b
YQ
152602012-03-02 Yao Qi <yao@codesourcery.com>
15261
15262 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15263 debug log.
15264
19560ba5
YQ
152652012-03-02 Yao Qi <yao@codesourcery.com>
15266
15267 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15268 `stop_pc' and `tpoint'. Update caller.
15269
1faeff08
MR
152702012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15271
15272 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15273 * linux-low.c (use_linux_regsets): New macro.
15274 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15275 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15276 (linux_register_in_regsets): New function.
15277 (usr_fetch_inferior_registers): Skip registers covered by
15278 regsets.
15279 (usr_store_inferior_registers): Likewise.
15280 (usr_fetch_inferior_registers): New macro.
15281 (usr_store_inferior_registers): Likewise.
15282 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15283 (linux_store_registers): Likewise.
15284 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15285 prototype.
15286 (init_registers_mips64_dsp_linux): Likewise.
15287 (init_registers_mips_linux): New macro.
15288 (init_registers_mips_dsp_linux): Likewise.
15289 (mips_dsp_num_regs): Likewise.
15290 (DSP_BASE, DSP_CONTROL): New fallback macros.
15291 (mips_base_regs): New macro.
15292 (mips_regmap): Use it. Fix the size.
15293 (mips_dsp_regmap): New variable.
15294 (mips_dsp_regset_bitmap): Likewise.
15295 (mips_arch_setup): New function.
15296 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15297 than mips_regmap.
15298 (mips_cannot_store_register): Likewise.
15299 (the_low_target): Update .arch_setup, .num_regs and .regmap
15300 initializers. Add .regset_bitmap initializer.
15301 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15302 initializer.
15303 * linux-bfin-low.c (the_low_target): Likewise.
15304 * linux-cris-low.c (the_low_target): Likewise.
15305 * linux-crisv32-low.c (the_low_target): Likewise.
15306 * linux-ia64-low.c (the_low_target): Likewise.
15307 * linux-m32r-low.c (the_low_target): Likewise.
15308 * linux-m68k-low.c (the_low_target): Likewise.
15309 * linux-ppc-low.c (the_low_target): Likewise.
15310 * linux-s390-low.c (the_low_target): Likewise.
15311 * linux-sh-low.c (the_low_target): Likewise.
15312 * linux-sparc-low.c (the_low_target): Likewise.
15313 * linux-tic6x-low.c (the_low_target): Likewise.
15314 * linux-x86-low.c (the_low_target): Likewise.
15315 * linux-xtensa-low.c (the_low_target): Likewise.
15316 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15317 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15318 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15319 srv_xmlfiles.
15320 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15321 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15322
c03e6ccc
YQ
153232012-02-29 Yao Qi <yao@codesourcery.com>
15324 Pedro Alves <palves@redhat.com>
15325
15326 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15327 `step_over_finished' is true.
15328
644cebc9
PA
153292012-02-27 Pedro Alves <palves@redhat.com>
15330
15331 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15332 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15333
c14d7ab2
PA
153342012-02-27 Pedro Alves <palves@redhat.com>
15335
15336 PR server/9684
15337 * linux-low.c (pid_is_stopped): New.
15338 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15339
412c89dd
LM
153402012-02-25 Luis Machado <lgustavo@codesourcery.com>
15341
15342 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15343 of conditions.
15344
b745defe
MR
153452012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15346
15347 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15348
9f3a5c85
LM
153492012-02-24 Luis Machado <lgustavo@codesourcery>
15350
15351 * server.c (handle_query): Advertise support for target-side
15352 breakpoint condition evaluation.
15353 (process_point_options): New function.
15354 (process_serial_event): When inserting a breakpoint, check for
15355 a target-side condition that should be evaluated.
15356
15357 * mem-break.c: Include regcache.h and ax.h.
15358 (point_cond_list_t): New data structure.
15359 (breakpoint) <cond_list>: New field.
15360 (find_gdb_breakpoint_at): Make non-static.
15361 (delete_gdb_breakpoint_at): Clear any target-side
15362 conditions.
15363 (clear_gdb_breakpoint_conditions): New function.
15364 (add_condition_to_breakpoint): Likewise.
15365 (add_breakpoint_condition): Likewise.
15366 (gdb_condition_true_at_breakpoint): Likewise.
15367 (gdb_breakpoint_here): Return result directly instead
15368 of going through a local variable.
15369
15370 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15371 (clear_gdb_breakpoint_conditions): Likewise.
15372 (add_breakpoint_condition): Likewise.
15373 (gdb_condition_true_at_breakpoint): Likewise.
15374
15375 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15376 (need_step_over_p): Take target-side breakpoint condition into
15377 consideration.
15378
5e1dc496
LM
153792012-02-24 Luis Machado <lgustavo@codesourcery>
15380
15381 * server.h: Include tracepoint.h.
15382 (agent_mem_read, agent_get_trace_state_variable_value,
15383 agent_set_trace_state_variable_value,
15384 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15385 get_set_tsv_func_addr): New prototypes.
15386
15387 * ax.h: New include file.
15388 * ax.c: New source file.
15389
15390 * tracepoint.c: Include ax.h.
15391 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15392 agent_expr, eval_result_type): Move to ax.h.
15393 (parse_agent_expr): Rename to ...
15394 (gdb_parse_agent_expr): ... this, make it non-static and move
15395 to ax.h.
15396 (unparse_agent_expr) Rename to ...
15397 (gdb_unparse_agent_expr): ... this, make it non-static and move
15398 to ax.h.
15399 (eval_agent_expr): Rename to ...
15400 (eval_tracepoint_agent_expr): ... this.
15401 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15402 forward declarations.
15403 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15404 (agent_get_trace_state_variable_value): New function.
15405 (agent_set_trace_state_variable_value): New function.
15406 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15407 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15408 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15409 (condition_true_at_tracepoint): Likewise.
15410 (parse_agent_expr): Rename to ...
15411 (gdb_parse_agent_expr): ... this and move to ax.c.
15412 (unparse_agent_expr): Rename to ...
15413 (gdb_unparse_agent_expr): ... this and move to ax.c.
15414 (gdb_agent_op_name): Move to ax.c.
15415 (eval_agent_expr): Rename to ...
15416 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15417 and move to ax.c.
15418 (eval_tracepoint_agent_expr): New function.
15419 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15420 non-static.
5e1dc496
LM
15421 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15422 ax.c.
15423 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15424 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15425 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15426 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15427 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15428 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15429 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15430 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15431 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15432 (compile_bytecodes): Remove forward declaration.
15433 (is_goto_target): Move to ax.c.
15434 (compile_bytecodes): Move to ax.c and call
15435 agent_get_trace_state_variable_value (...) and
15436 agent_set_trace_state_variable_value (...).
15437
15438 * Makefile.in: Update ax.c and IPA dependencies.
15439
277e4e52
PA
154402012-02-24 Pedro Alves <palves@redhat.com>
15441
15442 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15443 (cmd_bigqtbuffer_circular): ... this. Only handle
15444 'QTBuffer:circular:'.
15445 (handle_tracepoint_general_set): Adjust.
15446
bf4c19f7
YQ
154472012-02-16 Yao Qi <yao@codesourcery.com>
15448
15449 * inferiors.c: Move code to ...
15450 * dll.c: .... here. New.
15451 * server.h: Declare clear_dlls.
15452 * Makefile.in (SFILES): Add dll.c.
15453 (OBS): Add dll.o
15454 (dll.o): New rule.
15455
d73f2619
YQ
154562012-02-11 Yao Qi <yao@codesourcery.com>
15457
15458 * server.c: (handle_monitor_command): Add a new parameter
15459 `own_buf'.
15460 (handle_query): Update caller.
15461
f8255c2a
JB
154622012-02-09 Joel Brobecker <brobecker@adacore.com>
15463
15464 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15465 * configure, config.in: Regenerate.
15466 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15467 is not defined.
15468
da84f473
PA
154692012-02-02 Pedro Alves <palves@redhat.com>
15470
15471 Try SIGKILL first, then PTRACE_KILL.
15472 * linux-low.c (linux_kill_one_lwp): New.
15473 (linux_kill_one_lwp): Rename to ...
15474 (kill_one_lwp_callback): ... this. Use the new
15475 linux_kill_one_lwp.
15476
e886a173
PA
154772012-02-02 Pedro Alves <palves@redhat.com>
15478
15479 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15480 inferior.
15481
be07f1a2
PA
154822012-01-27 Pedro Alves <palves@redhat.com>
15483
15484 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15485 (elf_64_file_p): Make static.
15486 (linux_pid_exe_is_elf_64_file): New.
15487 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15488 Delete declarations.
15489 (linux_pid_exe_is_elf_64_file): Declare.
15490 * linux-x86-low.c (x86_arch_setup): Use
15491 linux_pid_exe_is_elf_64_file.
15492
d8301ad1
JK
154932012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15494
15495 * linux-low.c (linux_wait_for_event_1): Rename to ...
15496 (linux_wait_for_event): ... here and merge it with former
15497 linux_wait_for_event - new variable wait_ptid, use it.
15498 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15499
01b17894
PA
155002012-01-23 Pedro Alves <palves@redhat.com>
15501
15502 * server.c (main): Avoid yet another case of infinite loop while
15503 detaching/killing after a longjmp.
15504
e825046f
JK
155052012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15506
15507 Code cleanup.
15508 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15509
b9e7b9c3
UW
155102012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15511
15512 * hostio.c (handle_readlink): New function.
15513 (handle_vFile): Call it to handle "vFile:readlink" packets.
15514
901f9912
UW
155152012-01-20 Pedro Alves <palves@redhat.com>
15516 Ulrich Weigand <ulrich.weigand@linaro.org>
15517
15518 * server.c (handle_v_requests): Only support vAttach and vRun to
15519 start multiple processes when in extended protocol mode.
15520
fc1ab1a0
PA
155212012-01-17 Pedro Alves <palves@redhat.com>
15522
15523 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15524 memalign plus mprotect to allocate the scratch buffer.
15525
7d5d4e98
PA
155262012-01-13 Pedro Alves <palves@redhat.com>
15527
15528 * server.c (attach_inferior): Clear `cont_thread'.
15529
f128d5e9
PA
155302012-01-13 Pedro Alves <palves@redhat.com>
15531
15532 * server.c (main): Avoid infinite loop while detaching/killing
15533 after a longjmp.
15534
06db92f0
DE
155352012-01-09 Doug Evans <dje@google.com>
15536
15537 * server.c (start_inferior): Set last_ptid in --wrapper case.
15538
32d92999
YQ
155392012-01-06 Yao Qi <yao@codesourcery.com>
15540
15541 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15542 defined.
15543 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15544
5e0a92a9
YQ
155452012-01-04 Yao Qi <yao@codesourcery.com>
15546
15547 * tracepoint.c (cmd_qtdp): Print debug message
15548 for static tracepoint.
15549
ae639e8c
YQ
155502012-01-04 Yao Qi <yao@codesourcery.com>
15551
15552 * tracepoint.c (trace_vdebug): Differentiate debug message
15553 between gdbserver and IPA.
15554
f72429c5
YQ
155552012-01-03 Yao Qi <yao@codesourcery.com>
15556
15557 * tracepoint.c (tracepoint_was_hit): Don't collect for
15558 static tracepoint.
15559
12c3e59c
JB
155602012-01-02 Joel Brobecker <brobecker@adacore.com>
15561
15562 * terminal.h: Reformat copyright header.
15563
67827812
JB
155642012-01-02 Joel Brobecker <brobecker@adacore.com>
15565
15566 * server.c (gdbserver_version): Update copyright year.
15567 * gdbreplay.c (gdbreplay_version): Likewise.
15568
3e52c33d
JK
155692011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15570
15571 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15572
15573 Revert:
15574 2011-12-18 Hui Zhu <teawater@gmail.com>
15575 * linux-low.c (linux_create_inferior): Save return value to ret.
15576
66f1260e
HZ
155772011-12-18 Hui Zhu <teawater@gmail.com>
15578
15579 * linux-low.c (linux_create_inferior): Save return value to ret.
15580
e77616d7
DE
155812011-12-16 Doug Evans <dje@google.com>
15582
e7b06c57
DE
15583 * linux-low.c (linux_create_inferior): If stdio connection,
15584 redirect stdin from /dev/null, stdout to stderr.
15585 * remote-utils.c (remote_is_stdio): New static global.
15586 (remote_connection_is_stdio): New function.
15587 (remote_prepare): Handle stdio connection.
15588 (remote_open): Ditto.
15589 (remote_close): Don't close stdin for stdio connections.
15590 (read_prim,write_prim): New functions. Replace all calls to
15591 read/write to these.
15592 * server.c (main): Watch for "-" argument. Move call to
15593 remote_prepare before start_inferior.
15594 * server.h (STDIO_CONNECTION_NAME): New macro.
15595 (remote_connection_is_stdio): Declare.
15596
e77616d7
DE
15597 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15598 in debugging output.
15599
82067193
YQ
156002011-12-15 Yao Qi <yao@codesourcery.com>
15601
15602 * tracepoint.c: Include sys/syscall.h.
15603 (gdb_ust_thread): Remove preprocessor conditional.
15604
82bfbe7e
PA
156052011-12-14 Pedro Alves <pedro@codesourcery.com>
15606
15607 * linux-low.c (linux_detach_one_lwp): Call
15608 the_low_target.prepare_to_resume before detaching.
15609
712c6575
YQ
156102011-12-14 Yao Qi <yao@codesourcery.com>
15611
15612 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15613 of write.
15614
d54d1edf
YQ
156152011-12-14 Yao Qi <yao@codesourcery.com>
15616
15617 * i386-low.c (i386_low_stopped_data_address): Initialize local
15618 variable `control'.
15619
6210a125
PA
156202011-12-13 Pedro Alves <pedro@codesourcery.com>
15621
15622 PR remote/13492
15623
15624 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15625 DR_CONTROL unless necessary. Extend comments.
15626 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15627 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15628
2ece8244
YQ
156292011-12-13 Yao Qi <yao@codesourcery.com>
15630
15631 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15632 macros.
15633 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15634
784867a5
JK
156352011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15636
15637 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15638 Print new debug message for such case.
15639
6bf36717
JK
156402011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15641
15642 Fix overlapping memcpy.
15643 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15644 the read_inferior_memory transfer.
15645 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15646 write_inferior_memory transfer.
15647 (set_fast_tracepoint_jump): New variable buf. Use it for the
15648 read_inferior_memory and write_inferior_memory transfers.
15649 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15650 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15651 Use it for the write_inferior_memory transfer.
15652 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15653 buffers.
15654
50275556
MR
156552011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15656
15657 * linux-low.c (fetch_register, store_register): Make code
15658 consistent, fix formatting.
15659
7325beb4
MR
156602011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15661
15662 * linux-low.c (usr_store_inferior_registers): Factor out code
15663 to handle individual registers into...
15664 (store_register): ... this new function.
15665
c642a434
UW
156662011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15667
15668 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15669 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15670 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15671 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15672 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15673 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15674 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15675 (srv_xmlfiles): Add new XML files.
15676
15677 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15678 and <sys/uio.h>.
15679 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15680 (init_registers_s390_linux32v1): Add prototype.
15681 (init_registers_s390_linux32v2): Likewise.
15682 (init_registers_s390_linux64v1): Likewise.
15683 (init_registers_s390_linux64v2): Likewise.
15684 (init_registers_s390x_linux64v1): Likewise.
15685 (init_registers_s390x_linux64v2): Likewise.
15686 (s390_num_regs): Increment to 52.
15687 (s390_regmap): Add orig_r2 register.
15688 (s390_num_regs_3264): Increment to 68.
15689 (s390_regmap_3264): Add orig_r2 register.
15690 (s390_collect_ptrace_register): Handle orig_r2 register.
15691 (s390_supply_ptrace_register): Likewise.
15692 (s390_fill_last_break): New function.
15693 (s390_store_last_break): Likewise.
15694 (s390_fill_system_call): New function.
15695 (s390_store_system_call): Likewise.
15696 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15697 register sets.
15698 (s390_check_regset): New function.
15699 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15700 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15701 Update target_regsets for available register sets.
15702
2268b414
JK
157032011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15704 Jan Kratochvil <jan.kratochvil@redhat.com>
15705
15706 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15707 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15708 New.
15709 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15710 * linux-low.h (struct process_info_private): New member r_debug.
15711 * server.c (handle_qxfer_libraries): Call
15712 the_target->qxfer_libraries_svr4.
15713 (handle_qxfer_libraries_svr4): New function.
15714 (qxfer_packets): New entry "libraries-svr4".
15715 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15716 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15717 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15718 PACKET_qXfer_libraries_svr4.
15719
d6db1fab
UW
157202011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15721
15722 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15723 PSW address/mask between 8-byte and 16-byte formats.
15724 (s390_supply_ptrace_register): Likewise.
15725 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15726 basic addressing mode bit.
15727
242f5f1c
SS
157282011-11-24 Stan Shebs <stan@codesourcery.com>
15729
15730 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15731
f196051f
SS
157322011-11-17 Stan Shebs <stan@codesourcery.com>
15733
15734 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15735 (tracing_start_time): New global.
15736 (tracing_stop_time): New global.
15737 (tracing_user_name): New global.
15738 (tracing_notes): New global.
15739 (tracing_stop_note): New global.
15740 (cmd_qtstart): Set traceframe_usage, start_time.
15741 (stop_tracing): Set stop_time.
15742 (cmd_qtstatus): Report additional status.
15743 (cmd_qtp): New function.
15744 (handle_tracepoint_query): Call it.
15745 (cmd_qtnotes): New function.
15746 (handle_tracepoint_general_set): Call it.
15747 (get_timestamp): Rename from tsv_get_timestamp.
15748
405f8e94
SS
157492011-11-14 Stan Shebs <stan@codesourcery.com>
15750 Kwok Cheung Yeung <kcy@codesourcery.com>
15751
15752 * linux-x86-low.c (small_jump_insn): New.
15753 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15754 trampoline and error message, build a trampoline and issue a small
15755 jump instruction to it.
15756 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15757 trampoline and error message.
15758 (x86_get_min_fast_tracepoint_insn_len): New.
15759 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15760 * linux-low.h (struct linux_target_ops): Add arguments to
15761 install_fast_tracepoint_jump_pad operation, add new operation.
15762 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15763 arguments.
15764 (linux_get_min_fast_tracepoint_insn_len): New function.
15765 (linux_target_op): Add new operation.
15766 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15767 (gdb_trampoline_buffer_end): Ditto.
15768 (gdb_trampoline_buffer_error): Ditto.
15769 (struct ipa_sym_addresses): Add fields for new IPA variables.
15770 (symbol_list): Add entries for new IPA variables.
15771 (struct tracepoint): Add fields to hold the address range of the
15772 trampoline used by the tracepoint.
15773 (trampoline_buffer_head): New static variable.
15774 (trampoline_buffer_tail): Ditto.
15775 (claim_trampoline_space): New function.
15776 (have_fast_tracepoint_trampoline_buffer): New function.
15777 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15778 structure.
15779 (install_fast_tracepoint): Ditto, also add error buffer argument.
15780 (cmd_qtminftpilen): New function.
15781 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15782 (fast_tracepoint_from_trampoline_address): New function.
15783 (fast_tracepoint_collecting): Handle trampoline as part of jump
15784 pad space.
15785 (set_trampoline_buffer_space): New function.
15786 (initialize_tracepoint): Initialize new IPA variables.
15787 * target.h (struct target_ops): Add arguments to
15788 install_fast_tracepoint_jump_pad operation, add new
15789 get_min_fast_tracepoint_insn_len operation.
15790 (target_get_min_fast_tracepoint_insn_len): New.
15791 (install_fast_tracepoint_jump_pad): Add arguments.
15792 * server.h (IPA_BUFSIZ): Define.
15793 * linux-i386-ipa.c: Include extra header files.
15794 (initialize_fast_tracepoint_trampoline_buffer): New function.
15795 (initialize_low_tracepoint): Call it.
15796 * server.h (set_trampoline_buffer_space): Declare.
15797 (claim_trampoline_space): Ditto.
15798 (have_fast_tracepoint_trampoline_buffer): Ditto.
15799
1e4d1764
YQ
158002011-11-14 Yao Qi <yao@codesourcery.com>
15801
15802 * server.c (handle_query): Handle InstallInTrace for qSupported.
15803 * tracepoint.c (add_tracepoint): Sort list.
15804 (install_tracepoint, download_tracepoint): New.
15805 (cmd_qtdp): Call them to install and download tracepoints.
15806 (sort_tracepoints): Removed.
15807 (cmd_qtstart): Update.
15808
5c73ff4e
YQ
158092011-11-14 Yao Qi <yao@codesourcery.com>
15810
15811 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15812 * mem-break.h: Declare.
15813 * tracepoint.c (cmd_qtstart): Move some code to ...
15814 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15815 New.
15816 (download_tracepoints): Move some code to ...
15817 (download_tracepoint_1): ... here. New.
15818
86a30030
YQ
158192011-11-08 Yao Qi <yao@codesourcery.com>
15820
15821 * remote-utils.c (relocate_instruction): A comment fix.
15822
8d26e50c
JB
158232011-11-07 Joel Brobecker <brobecker@adacore.com>
15824
15825 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15826 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15827 dr_status_mirror and dr_control_mirror from debug_reg_state.
15828 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15829 (i386_initial_stuff): Remove use of deleted globals.
15830 (i386_get_thread_context, i386_set_thread_context,
15831 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15832 from debug_reg_state.
15833
a59306a3
YQ
158342011-11-05 Yao Qi <yao@codesourcery.com>
15835
15836 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15837 address as TPOINT's.
15838
3065dfb6
SS
158392011-11-02 Stan Shebs <stan@codesourcery.com>
15840
15841 * tracepoint.c (agent_mem_read_string): New function.
15842 (eval_agent_expr): Call it for tracenz.
15843 * server.c (handle_query): Report support for tracenz.
15844
fd0d8c7c
YQ
158452011-11-02 Yao Qi <yao@codesourcery.com>
15846
15847 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15848
609086b1
YQ
158492011-11-02 Yao Qi <yao@codesourcery.com>
15850
15851 * target.h: Fix a typo in comment.
15852
b9fd1791
PA
158532011-10-31 Pedro Alves <pedro@codesourcery.com>
15854
15855 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15856 clobber the breakpoints' shadows with fast tracepoint jumps.
15857 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15858 * target.c (write_inferior_memory): Also pass MYADDR down to
15859 check_mem_write.
15860
03583c20
UW
158612011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15862
15863 * configure.ac: Check support for personality routine.
15864 * configure: Regenerate.
15865 * config.in: Likewise.
15866 * linux-low.c: Include <sys/personality.h>.
15867 Define ADDR_NO_RANDOMIZE if necessary.
15868 (linux_create_inferior): Disable address space randomization when
15869 forking inferior, if requested.
15870 (linux_supports_disable_randomization): New function.
15871 (linux_target_ops): Install it.
15872 * server.h (disable_randomization): Declare.
15873 * server.c (disable_randomization): New global variable.
15874 (handle_general_set): Handle QDisableRandomization.
15875 (handle_query): Likewise for qSupported.
15876 (main): Support --disable-randomization and --no-disable-randomization
15877 command line arguments.
15878 * target.h (struct target_ops): Add supports_disable_randomization.
15879 (target_supports_disable_randomization): New macro.
15880
723b724b
MF
158812011-09-29 Mike Frysinger <vapier@gentoo.org>
15882
15883 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15884 ifdef check.
15885 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15886 [!PT_GETDSBT] (target_loadmap): New definition.
15887 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15888 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15889 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15890 and PT_GETDSBT to LINUX_LOADMAP.
15891 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15892 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15893
55329a5c 158942011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
15895
15896 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15897 (arm_linux_hwbp_cap): New static variable.
15898 (arm_linux_get_hwbp_cap): Replace by ...
15899 (arm_linux_init_hwbp_cap): ... this new function.
15900 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15901 (arm_linux_get_hw_watchpoint_count): Likewise.
15902 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15903 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15904 (arm_prepare_to_resume): Use perror_with_name instead of error.
15905
55329a5c 159062011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
15907
15908 * linux-arm-low.c: Include <signal.h>.
15909 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15910 (struct arm_linux_hwbp_cap): New data type.
15911 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15912 (struct arm_linux_hw_breakpoint): New data type.
15913 (MAX_BPTS, MAX_WPTS): Define.
15914 (struct arch_process_info, struct arch_lwp_info): New data types.
15915 (arm_linux_get_hwbp_cap): New function.
15916 (arm_linux_get_hw_breakpoint_count): Likewise.
15917 (arm_linux_get_hw_watchpoint_count): Likewise.
15918 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15919 (arm_hwbp_control_initialize): Likewise.
15920 (arm_hwbp_control_is_enabled): Likewise.
15921 (arm_hwbp_control_is_initialized): Likewise.
15922 (arm_hwbp_control_disable): Likewise.
15923 (arm_linux_hw_breakpoint_equal): Likewise.
15924 (arm_linux_hw_point_initialize): Likewise.
15925 (struct update_registers_data): New data structure.
15926 (update_registers_callback: New function.
15927 (arm_insert_point): Likewise.
15928 (arm_remove_point): Likewise.
15929 (arm_stopped_by_watchpoint): Likewise.
15930 (arm_stopped_data_address): Likewise.
15931 (arm_new_process): Likewise.
15932 (arm_new_thread): Likewise.
15933 (arm_prepare_to_resume): Likewise.
15934 (the_low_target): Register arm_insert_point, arm_remove_point,
15935 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15936 arm_new_thread, and arm_prepare_to_resume.
15937
6b9801d4
SS
159382011-09-15 Stan Shebs <stan@codesourcery.com>
15939
15940 * server.h (struct emit_ops): Add compare-goto fields.
15941 * tracepoint.c (gdb_agent_op_sizes): New table.
15942 (emit_eq_goto): New function.
15943 (emit_ne_goto): New function.
15944 (emit_lt_goto): New function.
15945 (emit_le_goto): New function.
15946 (emit_gt_goto): New function.
15947 (emit_ge_goto): New function.
15948 (is_goto_target): New function.
15949 (compile_bytecodes): Recognize special cases of compare-goto
15950 combinations and call specialized emitters for them.
15951 * linux-x86-low.c (amd64_emit_eq_goto): New function.
15952 (amd64_emit_ne_goto): New function.
15953 (amd64_emit_lt_goto): New function.
15954 (amd64_emit_le_goto): New function.
15955 (amd64_emit_gt_goto): New function.
15956 (amd64_emit_ge_goto): New function.
15957 (amd64_emit_ops): Add the new functions.
15958 (i386_emit_eq_goto): New function.
15959 (i386_emit_ne_goto): New function.
15960 (i386_emit_lt_goto): New function.
15961 (i386_emit_le_goto): New function.
15962 (i386_emit_gt_goto): New function.
15963 (i386_emit_ge_goto): New function.
15964 (i386_emit_ops): Add the new functions.
15965
bf15cbda
SS
159662011-09-08 Stan Shebs <stan@codesourcery.com>
15967
15968 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
15969 (i386_emit_epilogue): Restore %ebx.
15970
943ca1dd
JZ
159712011-08-31 Jie Zhang <jzhang918@gmail.com>
15972
15973 * server.c (step_thread): Remove definition.
15974 (process_serial_event): Don't handle Hs.
15975 * server.h (step_thread): Remove declaration.
15976 * target.c (set_desired_inferior): Remove use of step_thread.
15977
e3deef73
LM
159782011-08-24 Luis Machado <lgustavo@codesourcery.com>
15979
15980 * linux-low.c: Include linux-procfs.h.
15981 (linux_attach_lwp_1): Update comments.
15982 (linux_attach): Scan for existing threads when attaching to a
15983 process that is the tgid.
15984 * Makefile.in: Update dependencies.
15985
13da1c97
LM
159862011-08-24 Luis Machado <lgustavo@codesourcery.com>
15987
15988 * configure.srv: Add linux-procfs.o dependencies.
15989
881127c9
YQ
159902011-08-14 Yao Qi <yao@codesourcery.com>
15991
15992 * target.h (struct target_ops): Fix indent.
15993 * win32-low.c (win32_target_ops): Fix comment.
15994
58dbd541
YQ
159952011-08-14 Andrew Jenner <andrew@codesourcery.com>
15996 Yao Qi <yao@codesourcery.com>
15997
15998 * Makefile.in (clean): Remove tic6x-*.c files.
15999 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16000 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16001 (tic6x-c64xp-linux.c): Likewise.
16002 * configure.srv: Add support for tic6x-*-uclinux.
16003 * linux-tic6x-low.c: New.
16004 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16005
78d85199
YQ
160062011-08-14 Andrew Stubbs <ams@codesourcery.com>
16007 Yao Qi <yao@codesourcery.com>
16008
16009 * target.h (struct target_ops): Add read_loadmap.
16010 * linux-low.c (struct target_loadseg): New type.
16011 (struct target_loadmap): New type.
16012 (linux_read_loadmap): New function.
16013 (linux_target_ops): Add linux_read_loadmap.
16014 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16015 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16016 to NULL.
78d85199 16017
a959a88d
EZ
160182011-08-05 Eli Zaretskii <eliz@gnu.org>
16019
16020 * win32-low.c: Include <stdint.h>.
16021
1ced966e
PA
160222011-07-22 Pedro Alves <pedro@codesourcery.com>
16023
16024 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16025 to the inferior here.
16026 (i386_remove_aligned_watchpoint): Ditto.
16027 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16028 fit part of the watchpoint in the debug registers.
16029 (i386_update_inferior_debug_regs): New.
16030 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16031 registers, and only update the inferior on success.
16032 (i386_low_remove_watchpoint): Ditto.
16033
d26e3629
KY
160342011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16035
16036 * linux-low.c (compare_ints, unique, list_threads, show_process,
16037 linux_core_of_thread): Delete.
16038 (linux_target_ops): Change linux_core_of_thread to
16039 linux_common_core_of_thread.
16040 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16041 * utils.c (malloc_failure): Change type of argument.
16042 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16043 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16044 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16045 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16046 (IPA_OBJS): Add common-utils-ipa.o.
16047 (ptid_h, linux_osdata_h): New macros.
16048 (server_h): Add common/common-utils.h, common/xml-utils.h,
16049 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16050 common/ptid.h.
16051 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16052 ptid.o, buffer.o): New rules.
16053 (linux-low.o): Add common/linux-osdata.h as a dependency.
16054 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16055 * configure.ac: Add AC_HEADER_DIRENT check.
16056 * config.in: Regenerate.
16057 * configure: Regenerate.
16058 * remote-utils.c (xml_escape_text): Delete.
16059 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16060 buffer_xml_printf): Move to common/buffer.c.
16061 * server.c (main): Remove call to initialize_inferiors.
16062 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16063 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16064 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16065 internal_error, gdb_assert, gdb_assert_fail): Delete.
16066 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16067 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16068 common/buffer.h.
16069 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16070 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16071 initialize_inferiors): Delete.
16072
2275a1a7
PA
160732011-07-20 Pedro Alves <pedro@codesourcery.com>
16074
16075 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16076 symbol error.
16077
0a5b1e09
PA
160782011-05-31 Pedro Alves <pedro@codesourcery.com>
16079
16080 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16081 assertion.
16082 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16083
6938fd34
YQ
160842011-05-26 Yao Qi <yao@codesourcery.com>
16085
16086 * Makefile.in (thread-db.o): Track dependence to
16087 common/gdb_thread_db.h.
16088 * thread-db.c: include gdb_thread_db.h from right place.
16089
b481f9e0
TT
160902011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16091
16092 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16093 __FILE__ and __LINE__ to internal_error.
16094
98a5dd13
DE
160952011-05-13 Doug Evans <dje@google.com>
16096
16097 * thread-db.c (try_thread_db_load_from_sdir): New function.
16098 (try_thread_db_load_from_dir): New function.
16099 (thread_db_load_search): Handle $sdir, ignore $pdir.
16100 Remove trying of system directories if search of
16101 libthread-db-search-path fails, that is now done via $sdir.
16102
d248b706
KY
161032011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16104
16105 * server.c (handle_query): Add EnableDisableTracepoints to the list
16106 of supported features.
43aaf8b6 16107 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16108 tracepoints.
43aaf8b6
PA
16109 (cmd_qtenable_disable): New.
16110 (cmd_qtstart): Install tracepoints even if disabled.
16111 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16112 receiving a QTEnable or QTDisable packet.
16113 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16114 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16115 tracepoints.
16116 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16117
84e578fb
DE
161182011-05-10 Doug Evans <dje@google.com>
16119
16120 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16121
71f55dd8
DE
161222011-05-04 Doug Evans <dje@google.com>
16123
16124 * linux-low.c (linux_join): Skip process lookup.
16125 * spu-low.c (spu_join): Ditto.
16126 * server.c (join_inferiors_callback): Delete.
16127 (process_serial_event): For 'D' packet (detach) call join_inferior
16128 directly.
16129
4d393d60
JM
161302011-05-04 Joseph Myers <joseph@codesourcery.com>
16131
16132 * README: Don't mention xscale*-*-linux*.
16133 * configure.srv (xscale*-*-linux*): Don't handle target.
16134
b00ad6ff
NF
161352011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16136
16137 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16138 casting pointers.
16139 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16140 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16141 (i386_emit_void_call_2): Likewise.
16142
af96c192
YQ
161432011-04-26 Yao Qi <yao@codesourcery.com>
16144
43aaf8b6
PA
16145 * linux-low.c: Move common macros to linux-ptrace.h.
16146 Include linux-ptrace.h.
af96c192
YQ
16147 * Makefile.in (linux_ptrace_h): New.
16148 (linux-low.o): Depends on linux-ptrace.h.
16149
03f2bd59
JK
161502011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16151
16152 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16153 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16154 (remote_prepare): New function with most of the TCP code from ...
16155 (remote_open): ... here. Detect PORT here unconditionally. Move also
16156 setting transport_is_reliable.
16157 * server.c (run_once): New variable.
16158 (gdbserver_usage): Document it.
16159 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16160 the first run if RUN_ONCE.
16161 * server.h (run_once, remote_prepare): New declarations.
16162
7a9dd1b2
TT
161632011-04-19 Tom Tromey <tromey@redhat.com>
16164
16165 * win32-low.c (handle_load_dll): Remove duplicate "the".
16166
81239425
PM
161672011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16168
16169 Remove support for old Cygwin 1.5 versions.
16170 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16171 function to avoid warning.
16172 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16173 warning.
16174
9e0627f1
PM
161752011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16176
16177 * gdbserver/server.h (Macro _): Define it if not available.
16178
588eebee
MS
161792011-03-14 Michael Snyder <msnyder@vmware.com>
16180
348af9f7 16181 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16182
43f70d4c
JB
161832011-03-10 Joel Brobecker <brobecker@adacore.com>
16184
16185 * Makefile.in (maintainer-clean realclean distclean): Remove
16186 "make ... subdir_do" command.
16187
348af9f7
MS
161882011-03-10 Michael Snyder <msnyder@vmware.com>
16189
16190 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16191
16192 * server.c (handle_v_run): Free alloced buffer on early return.
16193
e637a4f5
YQ
161942011-03-09 Yao Qi <yao@codesourcery.com>
16195
16196 Revert:
16197 2011-03-04 Yao Qi <yao@codesourcery.com>
16198
16199 * Makefile.in: Remove GNU make feature --directory.
16200
16201 2011-03-05 Yao Qi <yao@codesourcery.com>
16202
16203 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16204 (subdir_do): New make target. Copied from gdb/Makefile.
16205 (maintainer-clean, realclean, distclean, clean): Call corresponding
16206 make targets in common/Makefile.
16207
16208 2011-02-11 Yao Qi <yao@codesourcery.com>
16209
16210 * configure.ac: Call AC_PROG_RANLIB.
16211 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16212 * configure: Regenerate.
16213
e6edda56
JK
162142011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16215
16216 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16217
e5141119
JB
162182011-03-06 Yao Qi <yao@codesourcery.com>
16219
16220 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16221
64794aa4
JB
162222011-03-05 Yao Qi <yao@codesourcery.com>
16223
16224 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16225 (subdir_do): New make target. Copied from gdb/Makefile.
16226 (maintainer-clean, realclean, distclean, clean): Call corresponding
16227 make targets in common/Makefile.
16228
7a762829
YQ
162292011-03-04 Yao Qi <yao@codesourcery.com>
16230
16231 * Makefile.in: Remove GNU make feature --directory.
16232
348af9f7
MS
162332011-03-04 Michael Snyder <msnyder@vmware.com>
16234
16235 * server.c (queue_stop_reply): Call xmalloc not malloc.
16236
162372011-03-02 Michael Snyder <msnyder@vmware.com>
16238
16239 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16240
9f72fee2
MS
162412011-02-28 Michael Snyder <msnyder@vmware.com>
16242
588eebee
MS
16243 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16244 (cmd_qtframe): Ditto.
16245 (cmd_qtbuffer): Ditto.
16246 (cmd_bigqtbuffer): Ditto.
16247
9f72fee2
MS
16248 * utils.c (decimal2str): Initialize 'width' to nine, then
16249 don't mess with it.
16250
8040bd49
UW
162512011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16252
16253 * hostio.c (require_data): Free *data, not data.
16254
7e52cbd0
JK
162552011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16256
16257 * hostio.c (require_data): Use free, not xfree.
16258
9130f83e
MS
162592011-02-27 Michael Snyder <msnyder@vmware.com>
16260
4b812f4e
MS
16261 * server.c (handle_query): Discard unused value.
16262
9130f83e
MS
16263 * hostio.c (require_data): Free malloc memory before returning
16264 error.
16265
69d37113
MS
162662011-02-26 Michael Snyder <msnyder@vmware.com>
16267
16268 * linux-low.c (list_threads): Call closedir for dirent.
16269
35f5825a
MS
162702011-02-27 Michael Snyder <msnyder@vmware.com>
16271
2a589cef
MS
16272 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16273 a case statement falls through.
16274
0adea5f7
MS
16275 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16276
35f5825a
MS
16277 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16278 in comparison.
16279
238f1c74
MS
162802011-02-26 Michael Snyder <msnyder@vmware.com>
16281
16282 * utils.c (decimal2str): Eliminate dead code and dead param.
16283 (pulongest): Drop dead param from call to decimal2str.
16284 (plongest): Ditto.
16285
633ff500
JB
162862011-02-24 Joel Brobecker <brobecker@adacore.com>
16287
16288 Revert the following patch (not approved yet):
16289 2011-02-21 Hui Zhu <teawater@gmail.com>
16290 * tracepoint.c (tp_printf): New function.
16291 (eval_agent_expr): Handle gdb_agent_op_printf.
16292
f9c6ff72
HZ
162932011-02-21 Hui Zhu <teawater@gmail.com>
16294
16295 * tracepoint.c (tp_printf): New function.
16296 (eval_agent_expr): Handle gdb_agent_op_printf.
16297
94d5e490
TT
162982011-02-18 Tom Tromey <tromey@redhat.com>
16299
16300 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16301 (tracepoint.o): Likewise.
16302 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16303 (gdb_agent_op_names): Likewise.
16304
c7f96d2b
TT
163052011-02-18 Tom Tromey <tromey@redhat.com>
16306
16307 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16308 gdb_agent_op_rot>: New constants.
16309 (gdb_agent_op_names): Add pick and roll.
16310 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16311 cases.
16312
0feedb2c
JK
163132011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16314
16315 * aclocal.m4: Regenerated with aclocal-1.11.1.
16316
b3b9301e
PA
163172011-02-14 Pedro Alves <pedro@codesourcery.com>
16318
16319 * server.c (handle_qxfer_traceframe_info): New.
16320 (qxfer_packets): Register "traceframe-info".
16321 (handle_query): Report support for qXfer:traceframe-info:read+.
16322 * tracepoint.c (match_blocktype): New.
16323 (traceframe_find_block_type): Rename to ...
16324 (traceframe_walk_blocks): ... this. Add callback filter argument,
16325 and use it.
16326 (traceframe_find_block_type): New, reimplemented on top of
16327 traceframe_walk_blocks.
16328 (build_traceframe_info_xml): New.
16329 (traceframe_read_info): New.
16330 * server.h (traceframe_read_info): Declare.
16331
4f3e6fb7
YQ
163322011-02-11 Yao Qi <yao@codesourcery.com>
16333
16334 * configure.ac: Call AC_PROG_RANLIB.
16335 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16336 * configure: Regenerate.
16337
764880b7
PA
163382011-02-07 Pedro Alves <pedro@codesourcery.com>
16339
16340 * server.c (gdb_read_memory): Change return semantics to allow
16341 partial transfers.
16342 (handle_search_memory_1): Adjust.
16343 (process_serial_event) <'m' packet>: Handle partial transfers.
16344 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16345
1c79eb8a
PA
163462011-01-28 Pedro Alves <pedro@codesourcery.com>
16347
16348 * regcache.c (init_register_cache): Initialize
16349 regcache->register_status.
16350 (free_register_cache): Release regcache->register_status.
16351 (regcache_cpy): Copy register_status.
16352 (registers_to_string): Print 'x's for unavailable registers.
16353 (supply_register): Mark the register's status valid or
16354 unavailable, depending on whether a buffer was passed in or not.
16355 (supply_register_zeroed): New.
16356 (supply_regblock): Mark the registers' status valid or
16357 unavailable, depending on whether a buffer was passed in or not.
16358 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16359 (struct regcache): New `register_status' field.
16360 (supply_register_zeroed): Declare.
16361 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16362 supply_register_zeroed, rather than passing a NULL buffer to
16363 supply_register.
16364 * tracepoint.c (fetch_traceframe_registers): Update comment.
16365
85724a0e
PA
163662011-01-28 Pedro Alves <pedro@codesourcery.com>
16367
16368 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16369 buffer explicit.
16370
d08aafef
PA
163712011-01-25 Pedro Alves <pedro@codesourcery.com>
16372
16373 * server.h (decode_xfer_write): Change prototype.
16374 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16375 and don't extract the annex here.
16376 * server.c (decode_xfer_read): Remove `annex' parameter,
16377 and don't extract the annex here.
16378 (decode_xfer): New.
16379 (struct qxfer): New.
16380 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16381 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16382 (handle_qxfer_statictrace): New functions, abstracted out from
16383 handle_query, and made to use the struct qxfer interface.
16384 (handle_threads_qxfer_proper): Rename to ...
16385 (handle_qxfer_threads_proper): ... this.
16386 (handle_threads_qxfer): Rename to ...
16387 (handle_qxfer_threads): ... this. Adjust.
16388 (qxfer_packets): New array.
16389 (handle_qxfer): New function.
16390 (handle_query): Use handle_qxfer.
16391
493e2a69
MS
163922011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16393
16394 * gdbreplay.c: Shorten lines of >= 80 columns.
16395 * linux-low.c: Ditto.
16396 * linux-ppc-low.c: Ditto.
16397 * linux-s390-low.c: Ditto.
16398 * linux-sparc-low.c: Ditto.
16399 * linux-x86-low.c: Ditto.
16400 * linux-xtensa-low.c: Ditto.
16401 * mem-break.c: Ditto.
16402 * nto-low.c: Ditto.
16403 * regcache.h: Ditto.
16404 * remote-utils.c: Ditto.
16405 * server.c: Ditto.
16406 * server.h: Ditto.
16407 * thread-db.c: Ditto.
16408 * tracepoint.c: Ditto.
16409 * utils.c: Ditto.
16410 * win32-low.h: Ditto.
16411
44944448
JB
164122011-01-05 Joel Brobecker <brobecker@adacore.com>
16413
16414 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16415 update.
16416
71ce852c
JB
164172011-01-01 Joel Brobecker <brobecker@adacore.com>
16418
16419 * server.c (gdbserver_version): Update copyright year in version
16420 output.
16421 * gdbreplay.c (gdbreplay_version): Ditto.
16422
eb826dc6
MF
164232010-12-29 Jie Zhang <jie.zhang@analog.com>
16424
16425 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16426 * linux-bfin-low.c: New file.
16427 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16428 PT_DATA_ADDR for BFIN targets.
16429 * Makefile.in (SFILES): Add linux-bfin-low.c.
16430 (clean): Remove reg-bfin.c.
16431 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16432 * README: Mention supported Blackfin targets.
16433
39ab222a
MF
164342010-12-23 Mike Frysinger <vapier@gentoo.org>
16435
16436 * .gitignore: New file.
16437
a1f2ce7d
MF
164382010-11-16 Mike Frysinger <vapier@gentoo.org>
16439
16440 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16441
f474844c
JZ
164422010-10-22 Jie Zhang <jie@codesourcery.com>
16443
16444 * Makefile.in: Add FLAGS_TO_PASS variable.
16445 (install): Remove dependency of install-only and recursively
16446 invoke make for install-only.
16447
f1048712
DE
164482010-10-04 Doug Evans <dje@google.com>
16449
16450 * Makefile.in (uninstall): Use $(DESTDIR).
16451
b53a1623
PA
164522010-09-24 Pedro Alves <pedro@codesourcery.com>
16453
e6ee044d
PA
16454 PR gdb/11842
16455
b53a1623
PA
16456 * linux-x86-low.c (compat_siginfo_from_siginfo)
16457 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16458 si_code is < 0. Check for si_code == SI_TIMER before checking for
16459 si_code < 0.
16460
fa1bd1e4
JB
164612010-09-13 Joel Brobecker <brobecker@adacore.com>
16462
16463 * lynx-i386-low.c: New file.
16464 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16465
47fac8f8
JB
164662010-09-13 Joel Brobecker <brobecker@adacore.com>
16467
16468 * lynx-low.c (ptrace_request_to_str): Remove handling for
16469 request values that have been removed in LynxOS 5.x.
16470
1adfc54d
JB
164712010-09-13 Joel Brobecker <brobecker@adacore.com>
16472
16473 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16474 <ptrace.h>
16475
c2a66c29
NS
164762010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16477
16478 * configure.ac: Add --enable-inprocess-agent option.
16479 * configure: Rebuilt.
16480
32fcada3
YQ
164812010-09-06 Yao Qi <yao@codesourcery.com>
16482
16483 * linux-low.c (linux_kill): Remove unused variable.
16484 (linux_stabilize_threads): Likewise.
16485 * server.c (start_inferior): Likewise.
16486 (queue_stop_reply_callback): Likewise.
16487 * tracepoint.c (do_action_at_tracepoint): Likewise.
16488
0cccb683
YQ
164892010-09-06 Yao Qi <yao@codesourcery.com>
16490
16491 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16492 on return.
16493
423ec54c
JK
164942010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16495
16496 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16497
12ac6819
PA
164982010-09-06 Pedro Alves <pedro@codesourcery.com>
16499
16500 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16501 "$(IPA_DEPFILES)".
16502
8ed54b31
JB
165032010-09-01 Joel Brobecker <brobecker@adacore.com>
16504
16505 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16506 gdbserver/lynx-ppc-low.c: New files.
16507 * Makefile.in (lynx_low_h): New variable.
16508 (lynx-low.o, lynx-ppc-low.o): New rules.
16509 * configure.ac: On LynxOS, link with -lnetinet.
16510 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16511 * configure: regenerate.
16512
bb0116a4
JB
165132010-09-01 Joel Brobecker <brobecker@adacore.com>
16514
16515 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16516 * configure.ac: Add check for vasprintf and vsnprintf.
16517 * configure, config.in: Regenerate.
16518 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16519
a778ab81 165202010-09-01 Joel Brobecker <brobecker@adacore.com>
16521
16522 * gdbreplay.c: Move include of alloca.h up, next to include of
16523 malloc.h.
16524 * server.h: Add include of malloc.h.
16525 * mem-break.c: Remove include of malloc.h.
16526 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16527
8b034a19 165282010-09-01 Joel Brobecker <brobecker@adacore.com>
16529
16530 * Makefile.in (memmem.o): Build with -Wno-error.
16531
165322010-09-01 Joel Brobecker <brobecker@adacore.com>
16533
16534 * utils.c (xsnprintf): Make non-static.
16535 * server.h: Add xsnprintf declaration.
16536 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16537 replace calls to snprintf by calls to xsnprintf throughout.
16538
165392010-09-01 Joel Brobecker <brobecker@adacore.com>
16540
16541 * configure.ac: Add configure check for alloca.
16542 * configure, config.in: Regenerate.
16543 * server.h: Include alloca.h if it exists.
16544 * gdbreplay.c: Include alloca.h if it exists.
16545
1a981360
PA
165462010-08-28 Pedro Alves <pedro@codesourcery.com>
16547
16548 * linux-low.c (__SIGRTMIN): Define if not already defined.
16549 (linux_create_inferior): Check for __ANDROID__ rather than
16550 __SIGRTMIN.
16551 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16552 are already deferred.
16553 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16554 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16555 stopped and already has a pending signal to report.
16556 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16557 a pending signal to report or is moving out of a jump pad.
16558 (linux_init_signals): Check for __ANDROID__ rather than
16559 __SIGRTMIN.
16560
b4d51a55
PA
165612010-08-28 Pedro Alves <pedro@codesourcery.com>
16562
16563 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16564 debug_threads check. Avoid a linear search when not doing debug
16565 output.
16566
ec48365d
PA
165672010-08-27 Pedro Alves <pedro@codesourcery.com>
16568
16569 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16570 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16571 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16572 (process_event): Change local fd's type to gdb_fildes_t.
16573 (create_file_handler): Adjust prototype.
16574 (delete_file_handler): Adjust prototype.
16575 (handle_file_event): Adjust prototype. Use pfildes.
16576 (create_file_event): Adjsut prototype.
16577 * remote-utils.c (remote_desc, listen_desc): Change type to
16578 gdb_fildes_t.
16579 * server.h: New gdb_fildes_t typedef.
16580 [USE_WIN32API]: Include winsock2.h.
16581 (delete_file_handler, add_file_handler): Adjust prototypes.
16582 (pfildes): Declare.
16583 * utils.c (pfildes): New.
16584
854d88f0
PA
165852010-08-27 Pedro Alves <pedro@codesourcery.com>
16586
16587 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16588 * configure: Regenerate.
16589
0146f85b
PA
165902010-08-27 Pedro Alves <pedro@codesourcery.com>
16591
16592 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16593 (linux_done_accessing_memory): ... this.
16594 (linux_target_ops): Adjust.
16595 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16596 * nto-low.c (nto_target_ops): Adjust comment.
16597 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16598 * spu-low.c (spu_target_ops): Adjust comment.
16599 * target.h (target_ops): Rename unprepare_to_access_memory field
16600 to done_accessing_memory.
16601 (unprepare_to_access_memory): Rename to ...
16602 (done_accessing_memory): ... this.
16603
90d74c30
PA
166042010-08-26 Pedro Alves <pedro@codesourcery.com>
16605
16606 * linux-low.c (linux_prepare_to_access_memory): New.
16607 (linux_unprepare_to_access_memory): New.
16608 (linux_target_ops): Install them.
16609 * server.c (read_memory): Rename to ...
16610 (gdb_read_memory): ... this. Use
16611 prepare_to_access_memory/prepare_to_access_memory.
16612 (write_memory): Rename to ...
16613 (gdb_write_memory): ... this. Use
16614 prepare_to_access_memory/prepare_to_access_memory.
16615 (handle_search_memory_1): Adjust.
16616 (process_serial_event): Adjust.
16617 * target.h (struct target_ops): New fields
16618 prepare_to_access_memory and unprepare_to_access_memory.
16619 (prepare_to_access_memory, unprepare_to_access_memory): New.
16620 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16621 prepare_to_access_memory/prepare_to_access_memory.
16622 * nto-low.c (nto_target_ops): Adjust.
16623 * spu-low.c (spu_target_ops): Adjust.
16624 * win32-low.c (win32_target_ops): Adjust.
16625
fd467969
PA
166262010-08-26 Pedro Alves <pedro@codesourcery.com>
16627
16628 * Makefile.in (WARN_CFLAGS): Get it from configure.
16629 (WERROR_CFLAGS): New.
16630 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16631 * configure.ac: Introduce --enable-werror, which adds -Werror to
16632 the compiler command line. Enabled by default. Disable with
16633 --disable-werror. Add -Wdeclaration-after-statement
16634 Wpointer-arith and -Wformat-nonliteral to warning flags.
16635 * configure: Regenerate.
16636
331e2f5f
PA
166372010-08-26 Pedro Alves <pedro@codesourcery.com>
16638
16639 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16640
e581f2b4
PA
166412010-08-26 Pedro Alves <pedro@codesourcery.com>
16642
16643 * gdbreplay.c (remote_error): New.
16644 (gdbchar): New.
16645 (expect): Use gdbchar. Check for error reading from GDB.
16646 Clarify sync error output.
16647 (play): Check for errors writing to GDB.
16648 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16649 * remote-utils.c (getpkt): Check for errors writing to the remote
16650 descriptor.
16651
3c11dd79
PA
166522010-08-25 Pedro Alves <pedro@codesourcery.com>
16653
16654 * linux-low.c (linux_wait_1): Move non-debugging code out of
16655 `debug_threads' control.
16656
d20a8ad9
PA
166572010-08-25 Pedro Alves <pedro@codesourcery.com>
16658
16659 * linux-low.c (linux_wait_1): Don't set last_status here.
16660 * server.c (push_event, queue_stop_reply_callback): Assert we're
16661 not pushing a TARGET_WAITKIND_IGNORE event.
16662 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16663 (myresume, handle_target_event): Set the thread's last_resume_kind
16664 and last_status from the target returned status.
16665
964e4306
PA
166662010-08-25 Pedro Alves <pedro@codesourcery.com>
16667
16668 PR threads/10729
16669
16670 * linux-x86-low.c (update_debug_registers_callback): New.
16671 (i386_dr_low_set_addr): Use it.
16672 (i386_dr_low_get_addr): New.
16673 (i386_dr_low_set_control): Use update_debug_registers_callback.
16674 (i386_dr_low_get_control): New.
16675 (i386_dr_low_get_status): Adjust.
16676 * linux-low.c (linux_stop_lwp): New.
16677 * linux-low.h (linux_stop_lwp): Declare.
16678
16679 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16680 argument instead of a i386_debug_reg_state.
16681 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16682 a i386_debug_reg_state.
16683 (i386_insert_aligned_watchpoint): Adjust.
16684 (i386_remove_aligned_watchpoint): Adjust.
16685 (i386_low_stopped_data_address): Read the debug registers from the
16686 inferior instead of from the mirrors.
16687 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16688 (i386_dr_low_get_addr): Declare.
16689 (i386_dr_low_get_control): Declare.
16690 (i386_dr_low_get_status): Change prototype.
16691
16692 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16693 (i386_dr_low_get_addr): New.
16694 (i386_dr_low_get_control): New.
16695 (i386_dr_low_get_status): Adjust prototype. Return
16696 dr_status_mirror.
16697 (i386_initial_stuff): Clear dr_status_mirror and
16698 dr_control_mirror.
16699 (i386_get_thread_context): Adjust.
16700 (i386_set_thread_context): Adjust.
16701 (i386_thread_added): Adjust.
16702
5f21a75b
PA
167032010-08-24 Pedro Alves <pedro@codesourcery.com>
16704
16705 * linux-low.h (linux_thread_area): Delete declaration.
16706
3e4c1235
TS
167072010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16708
16709 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16710 after its termination.
16711
1971b033
PA
167122010-08-09 Pedro Alves <pedro@codesourcery.com>
16713
16714 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16715 (gdb_wants_all_stopped): Delete.
16716 (linux_wait_1): Don't call them.
16717 * server.c (handle_v_cont): Tag all threads as want-stopped.
16718 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16719 stopped as "client-wants-stopped".
16720
310444ac
PA
167212010-07-31 Pedro Alves <pedro@codesourcery.com>
16722
16723 * Makefile.in (signals_h): New.
16724 (server_h): Depend on it.
16725 (server.o): Don't depend on $(signals_def).
16726 (signals.o): Depend on $(signals_def).
16727
a19cae16
JK
167282010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16729
16730 * Makefile.in (signals_def): New.
16731 (server_h): Append include/gdb/signals.h and signals_def.
16732 (server.o): Append signals_def.
16733
30d50328
JK
167342010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16735
16736 * server.c (handle_target_event): Use target_signal_to_host for
16737 resume_info.sig initialization.
16738 * target.h (struct thread_resume) <sig>: New comment.
16739
5c3216e2
OS
167402010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16741
c6f46ca0
OS
16742 * server.c (handle_query): strcpy() the returned string from paddress()
16743 instead of sprintf().
5c3216e2
OS
16744 * utils.c (paddress): Return phex_nz().
16745
6bd31874
JB
167462010-07-07 Joel Brobecker <brobecker@adacore.com>
16747
16748 * server.c (handle_v_cont): Call mourn_inferior if process
16749 just exited.
16750 (myresume): Likewise.
16751
0fb4aa4b
PA
167522010-07-01 Pedro Alves <pedro@codesourcery.com>
16753
16754 Static tracepoints, and integration with UST.
16755
16756 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16757 * mem-break.c (uninsert_all_breakpoints)
16758 (reinsert_all_breakpoints): New.
16759 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16760 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16761 (gdb_agent_ust_loaded, helper_thread_id)
16762 (gdb_agent_helper_thread_id): New macros.
16763 (struct ipa_sym_addresses): Add addr_ust_loaded,
16764 addr_helper_thread_id, addr_cmd_buf.
16765 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16766 (in_process_agent_loaded_ust): New.
16767 (write_e_ust_not_loaded): New.
16768 (maybe_write_ipa_ust_not_loaded): New.
16769 (struct collect_static_trace_data_action): New.
16770 (enum tracepoint_type) <static_tracepoint>: New.
16771 (struct tracepoint) <handle>: Mention static tracepoints.
16772 (struct static_tracepoint_ctx): New.
16773 (CMD_BUF_SIZE): New.
16774 (add_tracepoint_action): Handle static tracepoint actions.
16775 (unprobe_marker_at): New.
16776 (clear_installed_tracepoints): Handle static tracepoints.
16777 (cmd_qtdp): Handle static tracepoints.
16778 (probe_marker_at): New.
16779 (cmd_qtstart): Handle static tracepoints.
16780 (response_tracepoint): Handle static tracepoints.
16781 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16782 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16783 (get_context_regcache): Handle static tracepoints.
16784 (do_action_at_tracepoint): Handle static tracepoint actions.
16785 (traceframe_find_block_type): Handle static trace data blocks.
16786 (traceframe_read_sdata): New.
16787 (download_tracepoints): Download static tracepoint actions.
16788 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16789 (GDB_PROBE_NAME): New.
16790 (ust_ops): New.
16791 (GET_UST_SYM): New.
16792 (USTF): New.
16793 (dlsym_ust): New.
16794 (ust_marker_to_static_tracepoint): New.
16795 (gdb_probe): New.
16796 (collect_ust_data_at_tracepoint): New.
16797 (gdb_ust_probe): New.
16798 (UNIX_PATH_MAX, SOCK_DIR): New.
16799 (gdb_ust_connect_sync_socket): New.
16800 (resume_thread, stop_thread): New.
16801 (run_inferior_command): New.
16802 (init_named_socket): New.
16803 (gdb_ust_socket_init): New.
16804 (cstr_to_hexstr): New.
16805 (next_st): New.
16806 (first_marker, next_marker): New.
16807 (response_ust_marker): New.
16808 (cmd_qtfstm, cmd_qtsstm): New.
16809 (unprobe_marker_at, probe_marker_at): New.
16810 (cmd_qtstmat, gdb_ust_thread): New.
16811 (gdb_ust_init): New.
16812 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16813 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16814 (ST_REGENTRY): New.
16815 (x86_64_st_collect_regmap): New.
16816 (X86_64_NUM_ST_COLLECT_GREGS): New.
16817 (AMD64_RIP_REGNUM): New.
16818 (supply_static_tracepoint_registers): New.
16819 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16820 (ST_REGENTRY): New.
16821 (i386_st_collect_regmap): New.
16822 (i386_NUM_ST_COLLECT_GREGS): New.
16823 (supply_static_tracepoint_registers): New.
16824 * server.c (handle_query): Handle qXfer:statictrace:read.
16825 <qSupported>: Report support for StaticTracepoints, and
16826 qXfer:statictrace:read features.
16827 * server.h (traceframe_read_sdata)
16828 (supply_static_tracepoint_registers): Declare.
16829 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16830 (unpack_varlen_hex): Include in IPA build.
16831 * Makefile.in (ustlibs, ustinc): New.
16832 (IPA_OBJS): Add remote-utils-ipa.o.
16833 ($(IPA_LIB)): Link -ldl and -lpthread.
16834 (UST_CFLAGS): New.
16835 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16836 * config.in, configure: Regenerate.
16837
9e4344e5
PA
168382010-06-20 Ian Lance Taylor <iant@google.com>
16839 Pedro Alves <pedro@codesourcery.com>
16840
16841 * linux-x86-low.c (always_true): Delete.
16842 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16843 trying to fool the compiler with always_true.
16844
c6beb2cb
PA
168452010-06-20 Pedro Alves <pedro@codesourcery.com>
16846
16847 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16848 conditions in gdbserver.
16849
d2ed6730
UW
168502010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16851
16852 * spu-low.c (spu_read_memory): Wrap around local store limit.
16853 (spu_write_memory): Likewise.
16854
4e29fb54
PA
168552010-06-15 Pedro Alves <pedro@codesourcery.com>
16856
16857 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16858 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16859 LONGEST uses.
16860 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16861 uses.
16862 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16863 uses with LONGEST uses.
16864
6a271cae
PA
168652010-06-14 Stan Shebs <stan@codesourcery.com>
16866 Pedro Alves <pedro@codesourcery.com>
16867
16868 Bytecode compiler.
16869
16870 * linux-x86-low.c: Include limits.h.
16871 (add_insns): New.
16872 (always_true): New.
16873 (EMIT_ASM): New.
16874 (EMIT_ASM32): New.
16875 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16876 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16877 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16878 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16879 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16880 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16881 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16882 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16883 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16884 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16885 (amd64_emit_void_call_2): New.
16886 (amd64_emit_ops): New.
16887 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16888 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16889 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16890 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16891 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16892 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16893 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16894 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16895 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16896 (i386_emit_stack_adjust, i386_emit_int_call_1)
16897 (i386_emit_void_call_2): New.
16898 (i386_emit_ops): New.
16899 (x86_emit_ops): New.
16900 (the_low_target): Install x86_emit_ops.
16901 * server.h (struct emit_ops): New.
16902 (get_raw_reg_func_addr): Declare.
16903 (current_insn_ptr, emit_error): Declare.
16904 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16905 (set_trace_state_variable_value): New defines.
16906 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16907 addr_get_trace_state_variable_value and
16908 addr_set_trace_state_variable_value.
16909 (symbol_list): New fields for get_raw_reg,
16910 get_trace_state_variable_value and set_trace_state_variable_value.
16911 (condfn): New typedef.
16912 (struct tracepoint): New field `compiled_cond'.
16913 (do_action_at_tracepoint): Clear compiled_cond.
16914 (get_trace_state_variable_value, set_trace_state_variable_value):
16915 Export in the IPA.
16916 (condition_true_at_tracepoint): If there's a compiled condition,
16917 run that.
16918 (current_insn_ptr, emit_error): New globals.
16919 (struct bytecode_address): New.
16920 (get_raw_reg_func_addr): New.
16921 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16922 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16923 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16924 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16925 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16926 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16927 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16928 (compile_tracepoint_condition, compile_bytecodes): New.
16929 * target.h (emit_ops): Forward declare.
16930 (struct target_ops): New field emit_ops.
16931 (target_emit_ops): New.
16932 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16933 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16934 * linux-low.c (linux_emit_ops): New.
16935 (linux_target_ops): Install it.
16936 * linux-low.h (struct linux_target_ops): New field emit_ops.
16937
92b72907
UW
169382010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16939
16940 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16941 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16942
fa593d66
PA
169432010-06-01 Pedro Alves <pedro@codesourcery.com>
16944 Stan Shebs <stan@codesourcery.com>
16945
16946 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16947 (all): Depend on $(extra_libraries).
16948 (install-only): Install the IPA.
16949 (IPA_OBJS, IPA_LIB): New.
16950 (clean): Remove the IPA lib.
16951 (IPAGENT_CFLAGS): New.
16952 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
16953 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
16954 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
16955 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
16956 * configure.ac: Check for atomic builtins support in the compiler.
16957 (IPA_DEPFILES, extra_libraries): Define.
16958 * configure.srv (ipa_obj): Add description.
16959 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
16960 (i[34567]86-*-linux*): Set ipa_obj.
16961 (x86_64-*-linux*): Set ipa_obj.
16962 * linux-low.c (stabilizing_threads): New.
16963 (supports_fast_tracepoints): New.
16964 (linux_detach): Stabilize threads before detaching.
16965 (handle_tracepoints): Handle internal tracing breakpoints. Assert
16966 the lwp is either not stabilizing, or is moving out of a jump pad.
16967 (linux_fast_tracepoint_collecting): New.
16968 (maybe_move_out_of_jump_pad): New.
16969 (enqueue_one_deferred_signal): New.
16970 (dequeue_one_deferred_signal): New.
16971 (linux_wait_for_event_1): If moving out of a jump pad, defer
16972 pending signals to later.
16973 (linux_stabilize_threads): New.
16974 (linux_wait_1): Check if threads need moving out of jump pads, and
16975 do it if so.
16976 (stuck_in_jump_pad_callback): New.
16977 (move_out_of_jump_pad_callback): New.
16978 (lwp_running): New.
16979 (linux_resume_one_lwp): Handle moving out of jump pads.
16980 (linux_set_resume_request): Dequeue deferred signals.
16981 (need_step_over_p): Also step over fast tracepoint jumps.
16982 (start_step_over): Also uninsert fast tracepoint jumps.
16983 (finish_step_over): Also reinsert fast tracepoint jumps.
16984 (linux_install_fast_tracepoint_jump): New.
16985 (linux_target_ops): Install linux_stabilize_threads and
16986 linux_install_fast_tracepoint_jump_pad.
16987 * linux-low.h (linux_target_ops) <get_thread_area,
16988 install_fast_tracepoint_jump_pad>: New fields.
16989 (struct lwp_info) <collecting_fast_tracepoint,
16990 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
16991 (linux_get_thread_area): Declare.
16992 * linux-x86-low.c (jump_insn): New.
16993 (x86_get_thread_area): New.
16994 (append_insns): New.
16995 (push_opcode): New.
16996 (amd64_install_fast_tracepoint_jump_pad): New.
16997 (i386_install_fast_tracepoint_jump_pad): New.
16998 (x86_install_fast_tracepoint_jump_pad): New.
16999 (the_low_target): Install x86_get_thread_area and
17000 x86_install_fast_tracepoint_jump_pad.
17001 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17002 (struct fast_tracepoint_jump): New.
17003 (fast_tracepoint_jump_insn): New.
17004 (fast_tracepoint_jump_shadow): New.
17005 (find_fast_tracepoint_jump_at): New.
17006 (fast_tracepoint_jump_here): New.
17007 (delete_fast_tracepoint_jump): New.
17008 (set_fast_tracepoint_jump): New.
17009 (uninsert_fast_tracepoint_jumps_at): New.
17010 (reinsert_fast_tracepoint_jumps_at): New.
17011 (set_breakpoint_at): Use write_inferior_memory.
17012 (uninsert_raw_breakpoint): Use write_inferior_memory.
17013 (check_mem_read): Mask out fast tracepoint jumps.
17014 (check_mem_write): Mask out fast tracepoint jumps.
17015 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17016 (set_fast_tracepoint_jump): Declare.
17017 (delete_fast_tracepoint_jump)
17018 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17019 (reinsert_fast_tracepoint_jumps_at): Declare.
17020 * regcache.c: Don't compile many functions when building the
17021 in-process agent library.
17022 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17023 the register buffer in the heap.
17024 (free_register_cache): If the register buffer isn't owned by the
17025 regcache, don't free it.
17026 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17027 pre-existing register caches.
17028 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17029 type.
17030 (convert_ascii_to_int): : Constify `from' parameter type.
17031 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17032 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17033 the needed buffer in-place.
17034 (relocate_instruction): New.
17035 * server.c (handle_query) <qSymbols>: If the target supports
17036 tracepoints, give it a chance of looking up symbols. Report
17037 support for fast tracepoints.
17038 (handle_status): Stabilize threads.
17039 (process_serial_event): Adjust.
17040 * server.h (struct fast_tracepoint_jump): Forward declare.
17041 (struct process_info) <fast_tracepoint_jumps>: New field.
17042 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17043 (decode_X_packet, decode_M_packet): Adjust.
17044 (relocate_instruction): Declare.
17045 (in_process_agent_loaded): Declare.
17046 (tracepoint_look_up_symbols): Declare.
17047 (struct fast_tpoint_collect_status): Declare.
17048 (fast_tracepoint_collecting): Declare.
17049 (force_unlock_trace_buffer): Declare.
17050 (handle_tracepoint_bkpts): Declare.
17051 (initialize_low_tracepoint)
17052 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17053 * target.h (struct target_ops) <stabilize_threads,
17054 install_fast_tracepoint_jump_pad>: New fields.
17055 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17056 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17057 [HAVE_STDINT_H]: Include stdint.h.
17058 (trace_debug_1): Rename to ...
17059 (trace_vdebug): ... this.
17060 (trace_debug): Rename to ...
17061 (trace_debug_1): ... this. Add `level' parameter.
17062 (trace_debug): New.
17063 (ATTR_USED, ATTR_NOINLINE): New.
17064 (IP_AGENT_EXPORT): New.
17065 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17066 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17067 (about_to_request_buffer_space, trace_buffer_is_full)
17068 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17069 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17070 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17071 (traceframe_write_count, traceframes_created)
17072 (trace_state_variables)
17073 New renaming defines.
17074 (struct ipa_sym_addresses): New.
17075 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17076 (symbol_list): New.
17077 (ipa_sym_addrs): New.
17078 (all_tracepoint_symbols_looked_up): New.
17079 (in_process_agent_loaded): New.
17080 (write_e_ipa_not_loaded): New.
17081 (maybe_write_ipa_not_loaded): New.
17082 (tracepoint_look_up_symbols): New.
17083 (debug_threads) [IN_PROCESS_AGENT]: New.
17084 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17085 (UNKNOWN_SIDE_EFFECTS): New.
17086 (stop_tracing): New.
17087 (flush_trace_buffer): New.
17088 (stop_tracing_bkpt): New.
17089 (flush_trace_buffer_bkpt): New.
17090 (read_inferior_integer): New.
17091 (read_inferior_uinteger): New.
17092 (read_inferior_data_pointer): New.
17093 (write_inferior_data_pointer): New.
17094 (write_inferior_integer): New.
17095 (write_inferior_uinteger): New.
17096 (struct collect_static_trace_data_action): Delete.
17097 (enum tracepoint_type): New.
17098 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17099 <actions_str, step_actions, step_actions_str>: Only include in
17100 GDBserver.
fa593d66
PA
17101 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17102 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17103 (tracepoints): Use IP_AGENT_EXPORT.
17104 (last_tracepoint): Don't include in the IPA.
17105 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17106 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17107 (alloced_trace_state_variables): New.
17108 (trace_state_variables): Use IP_AGENT_EXPORT.
17109 (traceframe_t): Delete unused variable.
17110 (circular_trace_buffer): Don't include in the IPA.
17111 (trace_buffer_start): Delete.
17112 (struct trace_buffer_control): New.
17113 (trace_buffer_free): Delete.
17114 (struct ipa_trace_buffer_control): New.
17115 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17116 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17117 New.
17118 (trace_buffer_ctrl): New.
17119 (TRACE_BUFFER_CTRL_CURR): New.
17120 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17121 Reimplement as macros.
17122 (trace_buffer_wrap): Delete.
17123 (traceframe_write_count, traceframe_read_count)
17124 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17125 (struct tracepoint_hit_ctx) <type>: New field.
17126 (struct fast_tracepoint_ctx): New.
17127 (memory_barrier): New.
17128 (cmpxchg): New.
17129 (record_tracepoint_error): Update atomically in the IPA.
17130 (clear_inferior_trace_buffer): New.
17131 (about_to_request_buffer_space): New.
17132 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17133 updating the same buffer.
17134 (add_tracepoint): Default the tracepoint's type to trap
17135 tracepoint, and orig_size to -1.
17136 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17137 internal variables.
17138 (create_trace_state_variable): New parameter `gdb'. Handle it.
17139 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17140 (cmd_qtdp): Handle fast tracepoints.
17141 (cmd_qtdv): Adjust.
17142 (max_jump_pad_size): New.
17143 (gdb_jump_pad_head): New.
17144 (get_jump_space_head): New.
17145 (claim_jump_space): New.
17146 (sort_tracepoints): New.
17147 (MAX_JUMP_SIZE): New.
17148 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17149 IPA.
17150 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17151 support. Upload fast traceframes, and delete internal IPA
17152 breakpoints.
17153 (stop_tracing_handler): New.
17154 (flush_trace_buffer_handler): New.
17155 (cmd_qtstop): Upload fast tracepoints.
17156 (response_tracepoint): Handle fast tracepoints.
17157 (tracepoint_finished_step): Upload fast traceframes. Set the
17158 tracepoint hit context's tracepoint type.
17159 (handle_tracepoint_bkpts): New.
17160 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17161 type. Add comment about fast tracepoints.
17162 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17163 non-existing action_str field.
17164 (get_context_regcache): Handle fast tracepoints.
17165 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17166 to the regcache.
17167 (fast_tracepoint_from_jump_pad_address): New.
17168 (fast_tracepoint_from_ipa_tpoint_address): New.
17169 (collecting_t): New.
17170 (force_unlock_trace_buffer): New.
17171 (fast_tracepoint_collecting): New.
17172 (collecting): New.
17173 (gdb_collect): New.
17174 (write_inferior_data_ptr): New.
17175 (target_tp_heap): New.
17176 (target_malloc): New.
17177 (download_agent_expr): New.
17178 (UALIGN): New.
17179 (download_tracepoints): New.
17180 (download_trace_state_variables): New.
17181 (upload_fast_traceframes): New.
17182 (IPA_FIRST_TRACEFRAME): New.
17183 (IPA_NEXT_TRACEFRAME_1): New.
17184 (IPA_NEXT_TRACEFRAME): New.
17185 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17186 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17187 (gdb_jump_pad_buffer_end): New.
17188 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17189 (initialize_tracepoint): Adjust.
17190 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17191 buffer. Initialize the low module.
17192 * utils.c (PREFIX, TOOLNAME): New.
17193 (malloc_failure): Use PREFIX.
17194 (error): In the IPA, an error causes an exit.
17195 (fatal, warning): Use PREFIX.
17196 (internal_error): Use TOOLNAME.
17197 (NUMCELLS): Increase to 10.
17198 * configure, config.in: Regenerate.
17199
d149dd1d
PA
172002010-06-01 Pedro Alves <pedro@codesourcery.com>
17201
17202 * server.c (handle_query) <qSupported>: Do two passes over the
17203 qSupported string to avoid nesting strtok.
17204
f6528abd
JK
172052010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17206
17207 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17208 (CDEPS): New.
17209 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17210 -Wl,--dynamic-list.
17211 * configure: Regenerate.
17212 * proc-service.list: New.
17213
ca2a87a0
JK
172142010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17215
17216 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17217 New comment.
17218
363a6e9f
OS
172192010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17220
17221 * gdbreplay.c (remote_open): Check error return from socket() call by
17222 its equality to -1 not by it being negative.
17223 * remote-utils.c (remote_open): Likewise.
17224
d23b6cb1
PA
172252010-05-23 Pedro Alves <pedro@codesourcery.com>
17226
17227 * config.h: Regenerate.
17228
28d3cf85
MK
172292010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17230
17231 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17232 doesn't provide PTRACE_GET_THREAD_AREA.
17233
fea36a59
MK
172342010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17235
17236 * linux-m68k-low.c: Include <asm/ptrace.h>
17237 (ps_get_thread_area): Implement.
17238
24b066ba
DE
172392010-05-03 Doug Evans <dje@google.com>
17240
17241 * event-loop.c (struct callback_event): New struct.
17242 (callback_list): New global.
17243 (append_callback_event, delete_callback_event): New functions.
17244 (process_callback): New function.
17245 (start_event_loop): Call it.
17246 * remote-utils.c (NOT_SCHEDULED): Define.
17247 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17248 moved out of readchar.
17249 (readchar): Rewrite. Call reschedule before returning.
17250 (reset_readchar): New function.
17251 (remote_close): Call it.
17252 (process_remaining, reschedule): New functions.
17253 * server.h (callback_handler_func): New typedef.
17254 (append_callback_event, delete_callback_event): Declare.
17255
9836d6ea
PA
172562010-05-03 Pedro Alves <pedro@codesourcery.com>
17257
17258 * proc-service.c (ps_pglobal_lookup): Use
17259 thread_db_look_up_one_symbol.
17260 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17261 parameter. Use it instead of all_symbols_looked_up.
17262 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17263 field.
17264 (all_symbols_looked_up): Don't declare.
17265 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17266 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17267 field.
17268 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17269 Set all_symbols_looked_up here.
17270 (thread_db_look_up_one_symbol): New.
17271 (thread_db_get_tls_address): Adjust.
17272 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17273 thread_db object on the heap, and tentatively set it in the
17274 process structure.
17275 (thread_db_init): Don't set all_symbols_looked_up here.
17276 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17277
7984d532
PA
172782010-05-03 Pedro Alves <pedro@codesourcery.com>
17279
17280 * linux-low.c (linux_kill, linux_detach): Adjust.
17281 (status_pending_p_callback): Remove redundant statement. Check
17282 for !TARGET_WAITIKIND_IGNORE, instead of
17283 TARGET_WAITKIND_STOPPED.
17284 (handle_tracepoints): Make sure LWP is locked. Adjust.
17285 (linux_wait_for_event_1): Adjust.
17286 (linux_cancel_breakpoints): New.
17287 (unsuspend_one_lwp): New.
17288 (unsuspend_all_lwps): New.
17289 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17290 (send_sigstop_callback): Change return type to int, add new
17291 `except' parameter and handle it.
17292 (suspend_and_send_sigstop_callback): New.
17293 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17294 pass them down. If SUSPEND, also increment the lwp's suspend
17295 count.
17296 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17297 (need_step_over_p): Don't consider suspended LWPs.
17298 (start_step_over): Adjust.
17299 (proceed_one_lwp): Change return type to int, add new `except'
17300 parameter and handle it.
17301 (unsuspend_and_proceed_one_lwp): New.
17302 (proceed_all_lwps): Use find_inferior instead of
17303 for_each_inferior.
17304 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17305 also decrement the suspend count of LWPs. Pass `except' down,
17306 instead of hacking its suspend count.
17307 (linux_pause_all): Add `freeze' parameter. Adjust.
17308 (linux_unpause_all): New.
17309 (linux_target_ops): Install linux_unpause_all.
17310 * server.c (handle_status): Adjust.
17311 * target.h (struct target_ops): New fields `unpause_all' and
17312 `cancel_breakpoints'. Add new parameter to `pause_all'.
17313 (pause_all): Add new `freeze' parameter.
17314 (unpause_all): New.
17315 (cancel_breakpoints): New.
17316 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17317 cancel breakpoints.
17318 (cmd_qtstart): Pause threads.
17319 (stop_tracing): Pause threads, and cancel breakpoints.
17320 * win32-low.c (win32_target_ops): Adjust.
17321
e471f25b
PA
173222010-05-03 Pedro Alves <pedro@codesourcery.com>
17323
17324 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17325 the inferior right away from here...
17326 (linux_wait_1): ... to here, and adjust to check the thread's
17327 last_resume_kind instead of the lwp's step or stop_expected flags.
17328
1915ef4f
PA
173292010-05-02 Pedro Alves <pedro@codesourcery.com>
17330
17331 * README: Use consistent `GDB' and `GDBserver' spellings.
17332
f9e39928
PA
173332010-05-02 Pedro Alves <pedro@codesourcery.com>
17334
17335 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17336 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17337 (linux_detach_one_lwp): Assume the lwp is stopped.
17338 (any_thread_of): Delete.
17339 (linux_detach): Stop all lwps here. Don't blindly delete all
17340 breakpoints.
17341 (delete_lwp_callback): New.
17342 (linux_mourn): Delete all lwps of the process that is gone.
17343 (linux_wait_1): Don't delete the last lwp of the process here.
17344 * mem-break.h (mark_breakpoints_out): Declare.
17345 * mem-break.c (mark_breakpoints_out): New.
17346 (free_all_breakpoints): Use it.
17347 * server.c (handle_target_event): If the process is gone, mark
17348 breakpoints out.
17349 * thread-db.c (struct thread_db) <create_bp>: New field.
17350 (thread_db_enable_reporting): Fix prototype. Store a thread event
17351 breakpoint reference in the thread_db struct.
17352 (thread_db_load_search): Clear the thread_db object.
17353 (try_thread_db_load_1): Ditto.
17354 (switch_to_process): New.
17355 (disable_thread_event_reporting): Use it.
17356 (remove_thread_event_breakpoints): New.
17357 (thread_db_detach, thread_db_mourn): Use it.
17358
1e7fc18c
PA
173592010-05-01 Pedro Alves <pedro@codesourcery.com>
17360
17361 * linux-low.c (linux_enable_event_reporting): New.
17362 (linux_wait_for_event_1, handle_extended_wait): Use it.
17363
02fc4de7
PA
173642010-04-30 Pedro Alves <pedro@codesourcery.com>
17365
17366 * linux-low.c (linux_kill_one_lwp, linux_kill)
17367 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17368 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17369 SIGSTOP even if the LWP is stopped.
17370 (send_sigstop_callback): New.
17371 (stop_all_lwps): Use send_sigstop_callback instead.
17372 (linux_resume_one_thread): Adjust.
17373 (proceed_one_lwp): Still proceed an LWP that the client has
17374 requested to stop, if we haven't reported it as stopped yet. Make
17375 sure that LWPs the client want stopped, have a pending SIGSTOP.
17376
bc3b5632
DE
173772010-04-26 Doug Evans <dje@google.com>
17378
ae1ada35
DE
17379 * server.c (handle_general_set): Make static.
17380
bc3b5632
DE
17381 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17382 Print received char after testing for error/eof instead of before.
17383 (input_interrupt): Tweak comment.
17384
65730243
DE
173852010-04-23 Doug Evans <dje@google.com>
17386
17387 * server.c (start_inferior): Print inferior argv if --debug.
17388
a8ae7dc0
AR
173892010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17390
17391 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17392 * nto-x86-low.c: Include server.h
17393
1c07cc19
PM
173942010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17395
17396 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17397 be consistent with other sources of this directory.
17398 (init_registers_amd64): Correct name of source file of this function
17399 in the comment.
17400
e0a61e09
PM
174012010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17402
17403 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17404 64-bit executables.
17405
54709339
PM
174062010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17407
17408 * win32-i386-low.c: Add 64-bit support.
17409 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17410 (init_registers_amd64): Declare.
17411 (mappings): Add 64-bit version of array.
17412 (init_windows_x86): New function.
17413 (the_low_target): Change init_arch field to init_windows_x86.
17414
e8f0053d
PM
174152010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17416
17417 * win32-low.c: Adapt to support also 64-bit architecture.
17418 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17419 (get_image_name): Use SIZE_T type for local variable `done'.
17420 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17421 (toolhelp_get_dll_name): Idem.
17422 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17423 Use uintptr_t typecast to avoid warning.
17424 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17425 (handle_exception): Use phex_nz to avoid warning.
17426 (win32_wait): Remove unused local variable `process'.
17427
c481e77e
PM
174282010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17429
17430 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17431 `amd64-avx.o'.
17432
12ea4b69
PM
174332010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17434
17435 * configure.ac: Use `ws2_32' library for srv_mingw.
17436 * configure: Regenerate.
17437 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17438 * remote-utils.c: Likewise.
17439
f6d1620c
L
174402010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17441
17442 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17443 if __x86_64__ is defined.
17444
8e642873
PM
174452010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17446
17447 * configure: Regenerate.
17448
711e434b
PM
174492010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17450
17451 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17452 * target.h (target_ops): New get_tib_address field.
17453 * win32-low.h (win32_thread_info): Add thread_local_base field.
17454 * win32-low.c (child_add_thread): Add tlb argument.
17455 Set thread_local_base field to TLB.
17456 (get_child_debug_event): Adapt to child_add_thread change.
17457 (win32_get_tib_address): New function.
17458 (win32_target_ops): Set get_tib_address field to
17459 win32_get_tib_address.
17460 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17461
505106cd
PA
174622010-04-12 Pedro Alves <pedro@codesourcery.com>
17463
505106cd
PA
17464 * linux-low.c (linux_mourn): Also remove the process.
17465 * server.c (handle_target_event): Don't remove the process here.
17466 * nto-low.c (nto_mourn): New.
17467 (nto_target_ops): Install it.
17468 * spu-low.c (spu_mourn): New.
17469 (spu_target_ops): Install it.
17470 * win32-low.c (win32_mourn): New.
17471 (win32_target_ops): Install it.
17472
e8470a06
PA
174732010-04-12 Pedro Alves <pedro@codesourcery.com>
17474
17475 * server.h (buffer_xml_printf): Remove redundant `;'.
17476
45ba0d02
PA
174772010-04-12 Pedro Alves <pedro@codesourcery.com>
17478
17479 * regcache.c (set_register_cache): Invalidate regcaches before
17480 changing the register cache layout.
17481 (regcache_invalidate_one): Allow a NULL regcache.
17482 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17483 regcaches before changing the register cache layout or the target
17484 regsets.
17485
59e04013
L
174862010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17487
17488 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17489 variable warning on Linux/x86-64.
17490
8336d594
PA
174912010-04-11 Pedro Alves <pedro@codesourcery.com>
17492
17493 GDBserver disconnected tracing support.
17494
17495 * linux-low.c (linux_remove_process): Delete.
17496 (add_lwp): Don't set last_resume_kind here.
17497 (linux_kill): Use `mourn'.
17498 (linux_detach): Use `thread_db_detach', and `mourn'.
17499 (linux_mourn): New.
17500 (linux_attach_lwp_1): Adjust comment.
17501 (linux_attach): last_resume_kind moved the thread_info; adjust.
17502 (status_pending_p_callback): Adjust.
17503 (linux_wait_for_event_1): Adjust.
17504 (count_events_callback, select_singlestep_lwp_callback)
17505 (select_event_lwp_callback, cancel_breakpoints_callback)
17506 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17507 (proceed_one_lwp): Adjust.
17508 (linux_async): Add debug output.
17509 (linux_thread_stopped): New.
17510 (linux_pause_all): New.
17511 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17512 linux_pause_all.
17513 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17514 (thread_db_free): Delete declaration.
17515 (thread_db_detach, thread_db_mourn): Declare.
17516 * thread-db.c (thread_db_init): Use thread_db_mourn.
17517 (thread_db_free): Delete, split in two.
17518 (disable_thread_event_reporting): New.
17519 (thread_db_detach): New.
17520 (thread_db_mourn): New.
17521
17522 * server.h (struct thread_info) <last_resume_kind>: New field.
17523 <attached>: Add comment.
17524 <gdb_detached>: New field.
17525 (handler_func): Change return type to int.
17526 (handle_serial_event, handle_target_event): Ditto.
17527 (gdb_connected): Declare.
17528 (tracing): Delete.
17529 (disconnected_tracing): Declare.
17530 (stop_tracing): Declare.
17531
17532 * server.c (handle_query) <qSupported>: Report support for
17533 disconnected tracing.
17534 (queue_stop_reply_callback): Account for running threads.
17535 (gdb_wants_thread_stopped): New.
17536 (gdb_wants_all_threads_stopped): New.
17537 (gdb_reattached_process): New.
17538 (handle_status): Clear the `gdb_detached' flag of all processes.
17539 In all-stop, stop all threads.
17540 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17541 (process_serial_event): If the remote connection breaks, or if an
17542 exit was forced with "monitor exit", force an event loop exit.
17543 Handle disconnected tracing on detach.
17544 (handle_serial_event): Adjust.
17545 (handle_target_event): If GDB isn't connected, forward events back
17546 to the inferior, unless the last process exited, in which case,
17547 exit gdbserver. Adjust interface.
17548
17549 * remote-utils.c (remote_open): Don't block in accept. Instead
17550 register an event loop source on the listen socket file
17551 descriptor. Refactor bits into ...
17552 (listen_desc): ... this new global.
17553 (gdb_connected): ... this new function.
17554 (enable_async_notification): ... this new function.
17555 (handle_accept_event): ... this new function.
17556 (remote_close): Clear remote_desc.
17557
17558 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17559
17560 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17561 New fields.
17562 (mourn_inferior): Define.
17563 (target_process_qsupported): Avoid the dangling else problem.
17564 (thread_stopped): Define.
17565 (pause_all): Define.
17566 (target_waitstatus_to_string): Declare.
17567 * target.c (target_waitstatus_to_string): New.
17568
17569 * tracepoint.c (tracing): Make extern.
17570 (disconnected_tracing): New.
17571 (stop_tracing): Make extern. Handle tracing stops due to GDB
17572 disconnecting.
17573 (cmd_qtdisconnected): New.
17574 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17575 (handle_tracepoint_general_set): Handle QTDisconnected.
17576
17577 * event-loop.c (event_handler_func): Change return type to int.
17578 (process_event): Bail out if the event handler wants the event
17579 loop to stop.
17580 (handle_file_event): Ditto.
17581 (start_event_loop): Bail out if the event handler wants the event
17582 loop to stop.
17583
17584 * nto-low.c (nto_target_ops): Adjust.
17585 * spu-low.c (spu_wait): Don't remove the process here.
17586 (spu_target_ops): Adjust.
17587 * win32-low.c (win32_wait): Don't remove the process here.
17588 (win32_target_ops): Adjust.
17589
5d267c4c
PA
175902010-04-11 Pedro Alves <pedro@codesourcery.com>
17591
17592 * regcache.c (realloc_register_cache): Invalidate inferior's
17593 regcache before recreating it.
17594
623ccd72
PA
175952010-04-09 Pedro Alves <pedro@codesourcery.com>
17596
17597 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17598
219f2f23
PA
175992010-04-09 Stan Shebs <stan@codesourcery.com>
17600 Pedro Alves <pedro@codesourcery.com>
17601
17602 * server.h (LONGEST): New.
17603 (struct thread_info) <while_stepping>: New field.
17604 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17605 Declare.
17606 (initialize_tracepoint, handle_tracepoint_general_set)
17607 (handle_tracepoint_query, tracepoint_finished_step)
17608 (tracepoint_was_hit, release_while_stepping_state_list):
17609 (current_traceframe): Declare.
17610 * server.c (handle_general_set): Handle tracepoint packets.
17611 (read_memory): New.
17612 (write_memory): New.
17613 (handle_search_memory_1): Use read_memory.
17614 (handle_query): Report support for conditional tracepoints, trace
17615 state variables, and tracepoint sources. Handle tracepoint
17616 queries.
17617 (main): Initialize the tracepoints module.
17618 (process_serial_event): Handle traceframe reads/writes.
17619
17620 * linux-low.c (handle_tracepoints): New.
17621 (linux_wait_1): Call it.
17622 (linux_resume_one_lwp): Handle while-stepping.
17623 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17624 (linux_target_ops): Install them.
17625 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17626 New field.
17627 * linux-x86-low.c (x86_supports_tracepoints): New.
17628 (the_low_target). Install it.
17629
17630 * mem-break.h (delete_breakpoint): Declare.
17631 * mem-break.c (delete_breakpoint): Make external.
17632
17633 * target.h (struct target_ops): Add `supports_tracepoints',
17634 `read_pc', and `write_pc' fields.
17635 (target_supports_tracepoints): Define.
17636 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17637 (phex_nz): New.
17638
17639 * regcache.h (struct regcache) <registers_owned>: New field.
17640 (init_register_cache, regcache_cpy): Declare.
17641 (regcache_read_pc, regcache_write_pc): Declare.
17642 (register_cache_size): Declare.
17643 (supply_regblock): Declare.
17644 * regcache.c (init_register_cache): New.
17645 (new_register_cache): Use it.
17646 (regcache_cpy): New.
17647 (register_cache_size): New.
17648 (supply_regblock): New.
17649 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17650
219f2f23
PA
17651 * tracepoint.c: New.
17652
17653 * Makefile.in (OBS): Add tracepoint.o.
17654 (tracepoint.o): New rule.
17655
3a13a53b
L
176562010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17657
17658 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17659 (i386-mmx.o): New.
17660 (i386-mmx.c): Likewise.
17661 (i386-mmx-linux.o): Likewise.
17662 (i386-mmx-linux.c): Likewise.
17663
17664 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17665 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17666 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17667 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17668
17669 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17670 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17671 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17672
1570b33e
L
176732010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17674
17675 * Makefile.in (clean): Updated.
17676 (i386-avx.o): New.
17677 (i386-avx.c): Likewise.
17678 (i386-avx-linux.o): Likewise.
17679 (i386-avx-linux.c): Likewise.
17680 (amd64-avx.o): Likewise.
17681 (amd64-avx.c): Likewise.
17682 (amd64-avx-linux.o): Likewise.
17683 (amd64-avx-linux.c): Likewise.
17684
17685 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17686 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17687 (srv_amd64_regobj): Add amd64-avx.o.
17688 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17689 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17690 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17691 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17692 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17693 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17694 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17695
17696 * i387-fp.c: Include "i386-xstate.h".
17697 (i387_xsave): New.
17698 (i387_cache_to_xsave): Likewise.
17699 (i387_xsave_to_cache): Likewise.
17700 (x86_xcr0): Likewise.
17701
17702 * i387-fp.h (i387_cache_to_xsave): Likewise.
17703 (i387_xsave_to_cache): Likewise.
17704 (x86_xcr0): Likewise.
17705
17706 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17707 * linux-crisv32-low.c (target_regsets): Likewise.
17708 * linux-m68k-low.c (target_regsets): Likewise.
17709 * linux-mips-low.c (target_regsets): Likewise.
17710 * linux-ppc-low.c (target_regsets): Likewise.
17711 * linux-s390-low.c (target_regsets): Likewise.
17712 * linux-sh-low.c (target_regsets): Likewise.
17713 * linux-sparc-low.c (target_regsets): Likewise.
17714 * linux-xtensa-low.c (target_regsets): Likewise.
17715
17716 * linux-low.c: Include <sys/uio.h>.
17717 (regsets_fetch_inferior_registers): Support nt_type.
17718 (regsets_store_inferior_registers): Likewise.
17719 (linux_process_qsupported): New.
17720 (linux_target_ops): Add linux_process_qsupported.
17721
17722 * linux-low.h (regset_info): Add nt_type.
17723 (linux_target_ops): Add process_qsupported.
17724
17725 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17726 and <sys/uio.h>.
17727 (init_registers_i386_avx_linux): New.
17728 (init_registers_amd64_avx_linux): Likewise.
17729 (xmltarget_i386_linux_no_xml): Likewise.
17730 (xmltarget_amd64_linux_no_xml): Likewise.
17731 (PTRACE_GETREGSET): Likewise.
17732 (PTRACE_SETREGSET): Likewise.
17733 (x86_fill_xstateregset): Likewise.
17734 (x86_store_xstateregset): Likewise.
17735 (use_xml): Likewise.
17736 (x86_linux_update_xmltarget): Likewise.
17737 (x86_linux_process_qsupported): Likewise.
17738 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17739 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17740 init_registers_i386_linux here. Call
17741 x86_linux_update_xmltarget.
17742 (the_low_target): Add x86_linux_process_qsupported.
17743
17744 * server.c (handle_query): Call target_process_qsupported.
17745
17746 * target.h (target_ops): Add process_qsupported.
17747 (target_process_qsupported): New.
17748
fc7238bb
PA
177492010-04-03 Pedro Alves <pedro@codesourcery.com>
17750
17751 * inferiors.c (add_thread): Set last_status kind to
17752 TARGET_WAITKIND_IGNORE.
17753 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17754 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17755 (linux_wait_1): Move `thread' local definition to block that uses
17756 it. Don't NULL initialize `event_child'.
17757 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17758 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17759 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17760
bdabb078
PA
177612010-04-01 Pedro Alves <pedro@codesourcery.com>
17762
17763 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17764 an extended waitstatus, or by a watchpoint.
17765 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17766 thread was stepping or has been stopped by a watchpoint.
17767
d3bbe7a0
PA
177682010-04-01 Pedro Alves <pedro@codesourcery.com>
17769
17770 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17771 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17772 of another, then delete the previous, and validate all
17773 breakpoints.
17774 (validate_inserted_breakpoint): New.
17775 (delete_disabled_breakpoints): New.
17776 (validate_breakpoints): New.
17777 (check_mem_read): Validate breakpoints before trusting their
17778 shadow. Delete disabled breakpoints.
17779 (check_mem_write): Validate breakpoints before trusting they
17780 should be inserted. Delete disabled breakpoints.
17781 * mem-break.h (validate_breakpoints):
17782 * server.c (handle_query): Validate breakpoints when we see a
17783 qSymbol query.
17784
8b07ae33
PA
177852010-04-01 Pedro Alves <pedro@codesourcery.com>
17786
17787 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17788 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17789 if we could tell there's a GDB breakpoint at stop_pc.
17790 (need_step_over_p): Don't do a step over if we find a GDB
17791 breakpoint at the resume PC.
17792
17793 * mem-break.c (struct raw_breakpoint): New.
17794 (enum bkpt_type): New type `gdb_breakpoint'.
17795 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17796 fields. New field `raw'.
17797 (find_raw_breakpoint_at): New.
17798 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17799 breakpoint instead.
17800 (set_breakpoint_at): Adjust.
17801 (delete_raw_breakpoint): New.
17802 (release_breakpoint): New.
17803 (delete_breakpoint): Rename to...
17804 (delete_breakpoint_1): ... this. Add proc parameter. Use
17805 release_breakpoint. Return ENOENT.
17806 (delete_breakpoint): Reimplement.
17807 (find_breakpoint_at): Delete.
17808 (find_gdb_breakpoint_at): New.
17809 (delete_breakpoint_at): Delete.
17810 (set_gdb_breakpoint_at): New.
17811 (delete_gdb_breakpoint_at): New.
17812 (gdb_breakpoint_here): New.
17813 (set_reinsert_breakpoint): Use release_breakpoint.
17814 (uninsert_breakpoint): Rename to ...
17815 (uninsert_raw_breakpoint): ... this.
17816 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17817 (reinsert_raw_breakpoint): Change parameter type to
17818 raw_breakpoint.
17819 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17820 instead.
17821 (check_breakpoints): Adjust. Use release_breakpoint.
17822 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17823 (breakpoint_inserted_here): Ditto.
17824 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17825 Don't trust the breakpoint's shadow if it is not inserted.
17826 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17827 (delete_all_breakpoints): Adjust.
17828 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17829 use delete_breakpoint_1.
17830
17831 * mem-break.h (breakpoints_supported): Delete declaration.
17832 (set_gdb_breakpoint_at): Declare.
17833 (gdb_breakpoint_here): Declare.
17834 (delete_breakpoint_at): Delete.
17835 (delete_gdb_breakpoint_at): Declare.
17836
17837 * server.h (struct raw_breakpoint): Forward declare.
17838 (struct process_info): New field `raw_breakpoints'.
17839
17840 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17841 breakpoints.
17842
6bf5e0ba
PA
178432010-03-24 Pedro Alves <pedro@codesourcery.com>
17844
17845 * linux-low.c (status_pending_p_callback): Fix comment.
17846 (linux_wait_for_event_1): Move most of the internal breakpoint
17847 handling from here...
17848 (linux_wait_1): ... to here.
17849 (count_events_callback): New.
17850 (select_singlestep_lwp_callback): New.
17851 (select_event_lwp_callback): New.
17852 (cancel_breakpoints_callback): New.
17853 (select_event_lwp): New.
17854 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17855 priority to all LWPs that have had events that should be reported
17856 to the client. Cancel breakpoints when about to reporting the
17857 event to the client, not while stopping lwps. No longer cancel
17858 finished single-steps here.
17859 (cancel_finished_single_step): Delete.
17860 (cancel_finished_single_steps): Delete.
17861
414a389f
PA
178622010-03-24 Pedro Alves <pedro@codesourcery.com>
17863
17864 * mem-break.c (enum bkpt_type): New.
17865 (struct breakpoint): New field `type'.
17866 (set_breakpoint_at): Change return type to struct breakpoint
17867 pointer. Set type to `other_breakpoint' by default.
17868 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17869 in the breakpoint list.
17870 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17871 (reinsert_breakpoint): Rename to ...
17872 (reinsert_raw_breakpoint): ... this.
17873 (reinsert_breakpoints_at): Adjust.
17874 * mem-break.h (struct breakpoint): Declare.
17875 (set_breakpoint_at): Change return type to struct breakpoint
17876 pointer.
17877
2280c721
PA
178782010-03-24 Pedro Alves <pedro@codesourcery.com>
17879
17880 * server.c (handle_query): Assign, not compare.
17881
d50171e4
PA
178822010-03-24 Pedro Alves <pedro@codesourcery.com>
17883
17884 Teach linux gdbserver to step-over-breakpoints.
17885
17886 * linux-low.c (can_hardware_single_step): New.
17887 (supports_breakpoints): New.
17888 (handle_extended_wait): If stopping threads, read the stop pc of
17889 the new cloned LWP.
17890 (get_pc): New.
17891 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17892 low target doesn't support retrieving the PC.
17893 (add_lwp): Set last_resume_kind to resume_continue.
17894 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17895 (linux_attach): Don't clear stop_expected. Set the lwp's
17896 last_resume_kind to resume_stop.
17897 (linux_detach_one_lwp): Don't check for removed breakpoints.
17898 (check_removed_breakpoint): Delete.
17899 (status_pending_p): Rename to ...
17900 (status_pending_p_callback): ... this. Don't check for removed
17901 breakpoints. Don't consider threads that are stopped from GDB's
17902 perspective.
17903 (linux_wait_for_lwp): Always read the stop_pc here.
17904 (cancel_breakpoint): New.
17905 (step_over_bkpt): New global.
17906 (linux_wait_for_event_1): Implement stepping over breakpoints.
17907 (gdb_wants_lwp_stopped): New.
17908 (gdb_wants_all_stopped): New.
17909 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17910 single-step traps here. Store the thread's last reported target
17911 wait status.
17912 (send_sigstop): Don't clear stop_expected. Always set it,
17913 instead.
17914 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17915 (cancel_finished_single_step): New.
17916 (cancel_finished_single_steps): New.
17917 (wait_for_sigstop): Don't cancel finished single-step traps here.
17918 (linux_resume_one_lwp): Don't check for removed breakpoints.
17919 Don't set `step' on non-hardware step archs.
17920 (linux_set_resume_request): Ignore resume_stop requests if already
17921 stopping or stopped. Set the lwp's last_resume_kind.
17922 (resume_status_pending_p): Don't check for removed breakpoints.
17923 (need_step_over_p): New.
17924 (start_step_over): New.
17925 (finish_step_over): New.
17926 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17927 requests. Clear the thread's last reported target waitstatus.
17928 Don't use the `suspended' flag. Don't consider pending breakpoints.
17929 (linux_resume): Start a step-over if necessary.
17930 (proceed_one_lwp): New.
17931 (proceed_all_lwps): New.
17932 (unstop_all_lwps): New.
17933 * linux-low.h (struct lwp_info): Rewrite comment for the
17934 `suspended' flag. Add the `stop_pc' field. Delete the
17935 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17936 Add `'last_resume_kind' and `need_step_over' fields.
17937 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17938 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17939 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17940 (set_raw_breakpoint_at): New.
17941 (set_breakpoint_at): Rewrite to use it.
17942 (reinsert_breakpoint_handler): Delete.
17943 (set_reinsert_breakpoint): New.
17944 (reinsert_breakpoint_by_bp): Delete.
17945 (delete_reinsert_breakpoints): New.
17946 (uninsert_breakpoint): Rewrite.
17947 (uninsert_breakpoints_at): New.
17948 (reinsert_breakpoint): Rewrite.
17949 (reinsert_breakpoints_at): New.
17950 (check_breakpoints): Rewrite.
17951 (breakpoint_here): New.
17952 (breakpoint_inserted_here): New.
17953 (check_mem_read): Adjust.
17954 * mem-break.h (breakpoints_supported, breakpoint_here)
17955 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
17956 (reinsert_breakpoint_by_bp): Delete declaration.
17957 (delete_reinsert_breakpoints): Declare.
17958 (reinsert_breakpoint): Delete declaration.
17959 (reinsert_breakpoints_at): Declare.
17960 (uninsert_breakpoint): Delete declaration.
17961 (uninsert_breakpoints_at): Declare.
17962 (check_breakpoints): Adjust prototype.
17963 * server.h: Adjust include order.
17964 (struct thread_info): Declare here. Add a `last_status' field.
17965
30ba68cb
MS
179662010-03-23 Michael Snyder <msnyder@vmware.com>
17967
17968 * server.c (crc32): New function.
17969 (handle_query): Add handling for 'qCRC:' request.
17970
b9a881c2
PA
179712010-03-23 Pedro Alves <pedro@codesourcery.com>
17972
17973 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
17974 lwp had been stopped by a watchpoint.
17975
e92d13d5
PA
179762010-03-16 Pedro Alves <pedro@codesourcery.com>
17977
17978 * server.h (internal_error): Declare.
17979 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
17980 * utils.c (internal_error): New function.
17981
64daa791
AS
179822010-03-15 Andreas Schwab <schwab@redhat.com>
17983
17984 * configure.srv: Fix typo setting srv_regobj.
17985
f52cd8cd
PA
179862010-03-15 Pedro Alves <pedro@codesourcery.com>
17987
17988 * linux-low.c (fetch_register): Avoid passing a non string literal
17989 format to `error'.
17990 (usr_store_inferior_registers): Ditto.
17991
93ae6fdc
PA
179922010-03-14 Pedro Alves <pedro@codesourcery.com>
17993
17994 * linux-low.c (linux_write_memory): Bail out early if peeking
17995 memory failed.
17996
c3adc08c
PA
179972010-03-14 Pedro Alves <pedro@codesourcery.com>
17998
17999 * linux-low.h (struct lwp_info): New fields
18000 `stopped_by_watchpoint' and `stopped_data_address'.
18001 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18002 here, and cache them in the lwp object.
18003 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18004 directly.
18005 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18006 field.
18007 (linux_stopped_by_watchpoint): Rewrite.
18008 (linux_stopped_data_address): Rewrite.
18009
bce522a2
PA
180102010-03-06 Simo Melenius <simo.melenius@iki.fi>
18011
18012 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18013 switching the current inferior, not before.
18014
90884b2b
L
180152010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18016
18017 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18018 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18019 i386-linux.c and amd64-linux.c.
18020 (reg-i386.o): Removed.
18021 (reg-i386.c): Likewise.
18022 (reg-i386-linux.o): Likewise.
18023 (reg-i386-linux.c): Likewise.
18024 (reg-x86-64.o): Likewise.
18025 (reg-x86-64.c): Likewise.
18026 (reg-x86-64-linux.o): Likewise.
18027 (reg-x86-64-linux.c): Likewise.
18028 (i386.o): New.
18029 (i386.c): Likewise.
18030 (i386-linux.o): Likewise.
18031 (i386-linux.c): Likewise.
18032 (amd64.o): Likewise.
18033 (amd64.c): Likewise.
18034 (amd64-linux.o): Likewise.
18035 (amd64-linux.c): Likewise.
18036
18037 * configure.srv (srv_i386_regobj): New.
18038 (srv_i386_linux_regobj): Likewise.
18039 (srv_amd64_regobj): Likewise.
18040 (srv_amd64_linux_regobj): Likewise.
18041 (srv_i386_32bit_xmlfiles): Likewise.
18042 (srv_i386_64bit_xmlfiles): Likewise.
18043 (srv_i386_xmlfiles): Likewise.
18044 (srv_amd64_xmlfiles): Likewise.
18045 (srv_i386_linux_xmlfiles): Likewise.
18046 (srv_amd64_linux_xmlfiles): Likewise.
18047 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18048 srv_xmlfiles to $srv_i386_xmlfiles.
18049 (i[34567]86-*-mingw32ce*): Likewise.
18050 (i[34567]86-*-mingw*): Likewise.
18051 (i[34567]86-*-nto*): Likewise.
18052 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18053 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18054 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18055 (x86_64-*-linux*): Likewise.
18056
18057 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18058 (init_registers_amd64_linux): New.
18059 (x86_arch_setup): Replace init_registers_x86_64_linux with
18060 init_registers_amd64_linux.
18061
193f13e6
MK
180622010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18063
18064 * configure.ac: Check for libdl. If it is not available link against
18065 static libthread_db.
18066 * configure: Regenerate.
18067
85d721b8
PA
180682010-02-22 Pedro Alves <pedro@codesourcery.com>
18069
18070 PR9605
18071
18072 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18073 handing a read watchpoint.
18074 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18075
6076632b
DE
180762010-02-12 Doug Evans <dje@google.com>
18077
18078 * linux-low.c (linux_supports_tracefork_flag): Document.
18079 (linux_look_up_symbols): Add comment.
18080
3327ccf7
L
180812010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18082
18083 * regcache.c (supply_register): Clear regcache if buf is NULL.
18084
0718675c 180852010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18086 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18087
18088 * inferiors.c (find_inferior): Add function documentation.
18089 (unloaded_dll): Handle the case where the unloaded dll has not
18090 been previously registered in the dll list.
18091
177321bd
DJ
180922010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18093
18094 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18095 (thumb2_breakpoint): New.
18096 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18097
2b009048
DJ
180982010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18099
18100 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18101 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18102 breakpoints.
18103
3be029c7
PA
181042010-01-21 Pedro Alves <pedro@codesourcery.com>
18105
18106 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18107
18f5de3b
JK
181082010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18109
18110 * linux-s390-low.c (s390_collect_ptrace_register)
18111 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18112
3743bb4f
DE
181132010-01-21 Doug Evans <dje@google.com>
18114
14ce3065
DE
18115 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18116 (PTRACE_ARG4_TYPE): New macro.
18117 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18118 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18119 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18120 (usr_store_inferior_registers): Ditto.
18121 (linux_read_memory, linux_write_memory): Ditto.
18122 (linux_test_for_tracefork): Ditto.
18123
3743bb4f
DE
18124 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18125 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18126
8b315be5
PA
181272010-01-21 Pedro Alves <pedro@codesourcery.com>
18128
18129 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18130 target.
18131
85492558
PA
181322010-01-21 Pedro Alves <pedro@codesourcery.com>
18133
18134 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18135 prototype to take a regcache. Adjust.
18136
442ea881
PA
181372010-01-20 Pedro Alves <pedro@codesourcery.com>
18138
18139 * regcache.h (struct thread_info): Forward declare.
18140 (struct regcache): New.
18141 (new_register_cache): Adjust prototype.
18142 (get_thread_regcache): Declare.
18143 (free_register_cache): Adjust prototype.
18144 (registers_to_string, registers_from_string): Ditto.
18145 (supply_register, supply_register_by_name, collect_register)
18146 (collect_register_as_string, collect_register_by_name): Ditto.
18147 * regcache.c (struct inferior_regcache_data): Delete.
18148 (get_regcache): Rename to ...
18149 (get_thread_regcache): ... this. Adjust. Switch inferior before
18150 fetching registers.
18151 (regcache_invalidate_one): Adjust.
18152 (regcache_invalidate): Fix prototype.
18153 (new_register_cache): Return the new register cache.
18154 (free_register_cache): Change prototype.
18155 (realloc_register_cache): Adjust.
18156 (registers_to_string): Change prototype to take a regcache. Adjust.
18157 (registers_from_string): Ditto.
18158 (register_data): Ditto.
18159 (supply_register): Ditto.
18160 (supply_register_by_name): Ditto.
18161 (collect_register): Ditto.
18162 (collect_register_as_string): Ditto.
18163 (collect_register_by_name): Ditto.
18164 * server.c (process_serial_event): Adjust.
18165 * linux-low.h (regset_fill_func, regset_store_func): Change
18166 prototype.
18167 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18168 Change prototype.
18169 * linux-low.c (get_stop_pc): Adjust.
18170 (check_removed_breakpoint): Adjust.
18171 (linux_wait_for_event): Adjust.
18172 (linux_resume_one_lwp): Adjust.
18173 (fetch_register): Add regcache parameter. Adjust.
18174 (usr_store_inferior_registers): Ditto.
18175 (regsets_fetch_inferior_registers): Ditto.
18176 (regsets_store_inferior_registers): Ditto.
18177 (linux_fetch_registers, linux_store_registers): Ditto.
18178 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18179 regcache. Adjust.
43aaf8b6
PA
18180 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18181 Ditto.
442ea881
PA
18182 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18183 prototype to take a regcache.
18184 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18185 * remote-utils.c (convert_ascii_to_int, outreg)
18186 (prepare_resume_reply): Change prototype to take a regcache.
18187 Adjust.
18188 * target.h (struct target_ops) <fetch_registers, store_registers>:
18189 Change prototype to take a regcache.
18190 (fetch_inferior_registers, store_inferior_registers): Change
18191 prototype to take a regcache. Adjust.
18192 * proc-service.c (ps_lgetregs): Adjust.
18193 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18194 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18195 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18196 take a regcache. Adjust.
18197 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18198 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18199 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18200 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18201 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18202 (cris_cannot_fetch_register):
18203 (cris_breakpoint_at): Change prototype to take a regcache.
18204 Adjust.
18205 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18206 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18207 to take a regcache. Adjust.
18208 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18209 Adjust.
18210 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18211 take a regcache. Adjust.
18212 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18213 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18214 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18215 * linux-mips-low.c (mips_get_pc):
18216 (mips_set_pc): Change prototype to take a regcache. Adjust.
18217 (mips_reinsert_addr): Adjust.
18218 (mips_collect_register): Change prototype to take a regcache.
18219 Adjust.
18220 (mips_supply_register):
18221 (mips_collect_register_32bit, mips_supply_register_32bit)
18222 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18223 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18224 * linux-ppc-low.c (ppc_supply_ptrace_register)
18225 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18226 (parse_spufs_run): Adjust.
18227 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18228 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18229 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18230 take a regcache. Adjust.
18231 * linux-s390-low.c (s390_collect_ptrace_register)
18232 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18233 (s390_set_pc): Change prototype to take a regcache. Adjust.
18234 (s390_arch_setup): Adjust.
18235 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18236 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18237 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18238 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18239 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18240 regcache. Adjust.
18241 (sparc_breakpoint_at): Adjust.
18242 * linux-xtensa-low.c (xtensa_fill_gregset):
18243 (xtensa_store_gregset):
18244 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18245 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18246 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18247 prototype to take a regcache. Adjust.
18248 * win32-arm-low.c (arm_fetch_inferior_register)
18249 (arm_store_inferior_register): Change prototype to take a
18250 regcache. Adjust.
18251 * win32-i386-low.c (i386_fetch_inferior_register)
18252 (i386_store_inferior_register): Change prototype to take a
18253 regcache. Adjust.
18254 * win32-low.c (child_fetch_inferior_registers)
18255 (child_store_inferior_registers): Change prototype to take a
18256 regcache. Adjust.
18257 (win32_wait): Adjust.
18258 (win32_fetch_inferior_registers): Change prototype to take a
18259 regcache. Adjust.
18260 (win32_store_inferior_registers): Adjust.
18261 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18262 store_inferior_register>: Change prototype to take a regcache.
18263
60c3d7b0
DE
182642010-01-20 Doug Evans <dje@google.com>
18265
18266 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18267 #ifdef.
18268 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18269 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18270
dc146f7c
VP
182712010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18272
18273 * linux-low.c (linux_core_of_thread): New.
18274 (compare_ints, show_process, list_threads): New.
18275 (linux_qxfer_osdata): Report threads and cores.
18276 (linux_target_op): Register linux_core_of_thread.
18277 * remote-utils.c (prepare_resume_reply): Report the core.
18278 (buffer_xml_printf): Support %d specifier.
18279 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18280 New.
18281 (handle_query): Handle qXfer:threads. Announce availability
18282 thereof.
18283 * target.h (struct target_ops): New field core_of_thread.
18284
7803799a
UW
182852010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18286
18287 * Makefile.in (clean): Remove new generated files.
18288 (reg-s390.o, reg-s390.c): Remove rules.
18289 (reg-s390x.o, reg-s390x.c): Likewise.
18290 (s390-linux32.o, s390-linux32.c): Add rules.
18291 (s390-linux64.o, s390-linux64.c): Likewise.
18292 (s390x-linux64.o, s390x-linux64.c): Likewise.
18293 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18294 * linux-s390-low.c: Include <elf.h>.
18295 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18296 (init_registers_s390): Remove prototype.
18297 (init_registers_s390x): Likewise.
18298 (init_registers_s390_linux32): Add prototype.
18299 (init_registers_s390_linux64): Likewise.
18300 (init_registers_s390x_linux64): Likewise.
18301 (s390_num_regs_3264): New define.
18302 (s390_regmap_3264): New global variable.
18303 (s390_cannot_fetch_register): Remove obsolete check.
18304 (s390_cannot_store_register): Likewise.
18305 (s390_collect_ptrace_register): Handle upper/lower register halves.
18306 (s390_supply_ptrace_register): Likewise.
18307 (s390_fill_gregset): Update to register number changes.
18308 (s390_get_hwcap): New routine.
18309 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18310 Install appropriate regmap and register set.
18311
6e7ffa39
JB
183122010-01-01 Joel Brobecker <brobecker@adacore.com>
18313
18314 * server.c (gdbserver_version): Update copyright year to 2010.
18315 * gdbreplay.c (gdbreplay_version): Likewise.
18316
957f3f49
DE
183172009-12-28 Doug Evans <dje@google.com>
18318
18319 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18320 elf/external.h. Include <elf.h> instead but only if necessary.
18321
ca5c370d
PA
183222009-12-28 Pedro Alves <pedro@codesourcery.com>
18323
18324 * linux-low.c (linux_remove_process): Remove `detaching'
18325 parameter. Don't release/detach from thread_db here.
18326 (linux_kill): Release/detach from thread_db here, ...
18327 (linux_detach): ... and here, before actually detaching.
18328 (linux_wait_1): ... and here, when a process exits.
18329 * thread-db.c (any_thread_of): New.
18330 (thread_db_free): Switch the current inferior to a thread of the
18331 passed in process.
18332
4ee62156
DE
183332009-12-21 Doug Evans <dje@google.com>
18334
d90e6a88
DE
18335 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18336
c5f62d5f
DE
18337 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18338 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18339 warning ifndef __NR_tkill. Move setting of errno there too.
18340 Delete unnecessary resetting of errno after syscall.
18341 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18342
10e86dd7
DE
18343 * configure.ac: Check for dladdr.
18344 * config.in: Regenerate.
18345 * configure: Regenerate.
18346 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18347 (try_thread_db_load): Update.
18348
4ee62156
DE
18349 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18350
00f515da
DE
183512009-12-18 Doug Evans <dje@google.com>
18352
e9464885
DE
18353 * event-loop.c: Include unistd.h if it exists.
18354
07d4f67e
DE
18355 * linux-low.c (my_waitpid): Move definition away from being in
18356 between linux_tracefork_child/linux_test_for_tracefork.
18357
00f515da
DE
18358 * gdb_proc_service.h (psaddr_t): Fix type.
18359 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18360 signature to match glibc.
18361
1de1badb
DE
183622009-12-16 Doug Evans <dje@google.com>
18363
18364 * linux-low.c (linux_read_memory): Fix argument to read.
18365
aeeb81d1
PA
183662009-11-26 Pedro Alves <pedro@codesourcery.com>
18367
18368 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18369 events, don't leave current_inferior pointing at null.
18370
10357975
PA
183712009-11-26 Pedro Alves <pedro@codesourcery.com>
18372
18373 * win32-low.c (LOG): Delete.
18374 (OUTMSG): Output to stderr.
18375 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18376 on compile time LOG macro.
18377 (win32_wait): Fix debug output.
18378
cf6e3471
PA
183792009-11-26 Pedro Alves <pedro@codesourcery.com>
18380
18381 * win32-low.c (win32_add_one_solib): If the dll name is
18382 "ntdll.dll", prepend the system directory to the dll path.
18383
0c85e18e
MK
183842009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18385
18386 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18387
9ac544ce 183882009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18389 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18390
18391 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18392 * configure.ac: Check for __mcoldfire__ and set
18393 gdb_cv_m68k_is_coldfire.
18394 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18395 reg-cf.o and reg-m68k.o.
18396 * configure: Regenerated.
18397
fd7dd3e6
PA
183982009-11-16 Pedro Alves <pedro@codesourcery.com>
18399
18400 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18401 Pass it to thread_db_free.
18402 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18403 proper `detaching' argument to linux_remove_process.
18404 * linux-low.h (thread_db_free): Add `detaching' parameter.
18405 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18406 to thread_db_free.
18407 (thread_db_free): Add `detaching' parameter. Only
18408 call td_ta_clear_event if detaching from process.
18409
75aa492e
MK
184102009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18411
18412 * thread-db.c (thread_db_free): Fix typo.
18413
21e1bee4
PP
184142009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18415
18416 PR gdb/10838
18417 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18418
8838b45e
NS
184192009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18420
18421 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18422 with an i686 compiler.
18423 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18424 needed.
18425 * configure: Rebuilt.
18426
8a35fb51
SL
184272009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18428
18429 PR gdb/10783
18430
18431 * server.c (handle_search_memory_1): Correct read_addr initialization
18432 in loop for searching subsequent chunks.
18433
96f15937
PP
184342009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18435
18436 * configure.ac: New --with-libthread-db option.
18437 * thread-db.c: Allow direct dependence on libthread_db.
18438 (thread_db_free): Adjust.
18439 * config.in: Regenerate.
18440 * configure: Likewise.
889bf7c5 18441
5f7d1694
PP
184422009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18443
18444 PR gdb/10757
18445 * thread-db.c (attach_thread): New function.
18446 (maybe_attach_thread): Return success/failure.
18447 (find_new_threads_callback): Adjust.
889bf7c5
PA
18448 (thread_db_find_new_threads): Loop until no new threads.
18449
88e3b899
PA
184502009-10-13 Pedro Alves <pedro@codesourcery.com>
18451
18452 * proc-service.c (ps_lgetregs): Formatting.
18453
cdbfd419
PP
184542009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18455
18456 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18457 * configure.ac: Adjust.
18458 * linux-low.h (struct process_info_private): Move members to struct
18459 thread_db.
18460 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18461 * linux-low.c (linux_remove_process): Adjust.
18462 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18463 * server.c (handle_query): Move code ...
18464 (handle_monitor_command): ... here. New function.
18465 * target.h (struct target_ops): New member.
18466 * thread-db.c (struct thread_db): New.
18467 (libthread_db_search_path): New variable.
18468 (thread_db_create_event, thread_db_enable_reporting)
18469 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18470 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18471 (try_thread_db_load_1, dladdr_to_soname): New functions.
18472 (try_thread_db_load, thread_db_load_search): New functions.
18473 (thread_db_init): Search for libthread_db.
18474 (thread_db_free): New function.
18475 (thread_db_handle_monitor_command): Likewise.
18476 * config.in: Regenerate.
18477 * configure: Regenerate.
889bf7c5 18478
4168d2d6
UW
184792009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18480
18481 * spu-low.c (spu_kill): Wait for inferior to terminate.
18482 Call clear_inferiors.
18483 (spu_detach): Call clear_inferiors.
18484
81ecdfbb
RW
184852009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18486
18487 * aclocal.m4: Regenerate.
18488 * config.in: Likewise.
18489 * configure: Likewise.
18490
0b9ff2c0
UW
184912009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18492
18493 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18494 (parse_spufs_run): New function.
18495 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18496 (ppc_breakpoint_at): Handle SPU breakpoints.
18497
efcbbd14
UW
184982009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18499
18500 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18501 (SPUFS_MAGIC): Define.
18502 (spu_enumerate_spu_ids): New function.
18503 (linux_qxfer_spu): New function.
18504 (linux_target_ops): Install linux_qxfer_spu.
18505
f4d9bade
UW
185062009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18507
18508 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18509 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18510 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18511 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18512 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18513 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18514 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18515 (init_registers_powerpc_cell32l): Add prototype.
18516 (init_registers_powerpc_cell64l): Likewise.
18517 (ppc_arch_setup): Detect Cell/B.E. architecture.
18518
96e946ca
RW
185192009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18520
18521 * Makefile.in (datarootdir): New variable.
18522
58d6951d
DJ
185232009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18524
18525 * linux-low.c (linux_write_memory): Update debugging output.
18526 * Makefile.in (clean): Add new descriptions.
18527 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18528 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18529 * configure.srv: Add new files for arm*-*-linux*.
18530 * linux-arm-low.c: Add new declarations.
18531 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18532 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18533 (HWCAP_VFPv3D16): New.
18534 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18535 instead of __IWMMXT__.
18536 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18537 (arm_arch_setup): New.
18538 (target_regsets): Remove #ifdef. Add VFP regset.
18539 (the_low_target): Use arm_arch_setup.
18540
12b42a12
DJ
185412009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18542
18543 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18544 the main thread again.
18545
ac8c974e
AR
185462009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18547
18548 Adding Neutrino gdbserver.
18549 * configure: Regenerated.
18550 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18551 * configure.srv (i[34567]86-*-nto*): New target.
18552 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18553 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18554 (nto_comctrl) [__QNX__]: New function.
18555 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18556
4424e0c3 185572009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18558
18559 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18560 srv_tgtobj.
18561
912cf4ba
PA
185622009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18563 Pedro Alves <pedro@codesourcery.com>
18564
18565 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18566 don't support CONTEXT_EXTENDED_REGISTERS.
18567 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18568 (the_low_target): Install them.
18569 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18570 failing with ERROR_PIPE_NOT_CONNECTED.
18571
aa5ca48f
DE
185722009-06-30 Doug Evans <dje@google.com>
18573 Pierre Muller <muller@ics.u-strasbg.fr>
18574
18575 Add h/w watchpoint support to x86-linux, win32-i386.
18576 * Makefile.in (SFILES): Add i386-low.c
18577 (i386_low_h): Define.
18578 (i386-low.o): Add dependencies.
18579 (linux-x86-low.o): Add i386-low.h dependency.
18580 (win32-i386-low.o): Ditto.
18581 * i386-low.c: New file.
18582 * i386-low.h: New file.
18583 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18584 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18585 * linux-low.c (linux_add_process): Initialize arch_private.
18586 (linux_remove_process): Free arch_private.
18587 (add_lwp): Initialize arch_private.
18588 (delete_lwp): Free arch_private.
18589 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18590 provided.
18591 * linux-low.h (process_info_private): New member arch_private.
18592 (lwp_info): New member arch_private.
18593 (linux_target_ops): New members new_process, new_thread,
18594 prepare_to_resume.
18595 (ptid_of): New macro.
18596 * linux-x86-low.c: Include stddef.h, i386-low.h.
18597 (arch_process_info): New struct.
18598 (arch_lwp_info): New struct.
18599 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18600 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18601 (i386_dr_low_get_status): New function.
18602 (x86_insert_point, x86_remove_point): New functions.
18603 (x86_stopped_by_watchpoint): New function.
18604 (x86_stopped_data_address): New function.
18605 (x86_linux_new_process, x86_linux_new_thread): New functions.
18606 (x86_linux_prepare_to_resume): New function.
18607 (the_low_target): Add entries for insert_point, remove_point,
18608 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18609 prepare_to_resume.
18610 * server.c (debug_hw_points): New global.
18611 (monitor_show_help): Document set debug-hw-points.
18612 (handle_query): Process "set debug-hw-points".
18613 * server.h (debug_hw_points): Declare.
18614 (paddress): Declare.
18615 * utils.c (NUMCELLS, CELLSIZE): New macros.
18616 (get_sell, xsnprintf, paddress): New functions.
18617 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18618 remove_point, stopped_by_watchpoint, stopped_data_address.
18619 * win32-i386-low.c: Include i386-low.h.
18620 (debug_reg_state): Replaces dr.
18621 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18622 (i386_dr_low_get_status): New function.
18623 (i386_insert_point, i386_remove_point): New functions.
18624 (i386_stopped_by_watchpoint): New function.
18625 (i386_stopped_data_address): New function.
18626 (i386_initial_stuff): Update.
18627 (get_thread_context,set_thread_context,i386_thread_added): Update.
18628 (the_low_target): Add entries for insert_point,
18629 remove_point, stopped_by_watchpoint, stopped_data_address.
18630 * win32-low.c (win32_insert_watchpoint): New function.
18631 (win32_remove_watchpoint): New function.
18632 (win32_stopped_by_watchpoint): New function.
18633 (win32_stopped_data_address): New function.
18634 (win32_target_ops): Add entries for insert_watchpoint,
18635 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18636 * win32-low.h (win32_target_ops): New members insert_point,
18637 remove_point, stopped_by_watchpoint, stopped_data_address.
18638
d993e290
PA
186392009-06-25 Pedro Alves <pedro@codesourcery.com>
18640
18641 * server.c (process_serial_event): Re-return unsupported, not
18642 error, if the type isn't recognized. Re-allow supporting only
18643 insert or remove packets. Also call require_running for
18644 breakpoints. Add missing break statement to default case. Tidy.
18645 * target.h (struct target_ops): Rename insert_watchpoint to
18646 insert_point, and remove_watchpoint to remove_point.
18647
18648 * linux-low.h (struct linux_target_ops): Likewise.
18649 * linux-low.c (linux_insert_watchpoint): Rename to ...
18650 (linux_insert_point): ... this. Adjust.
18651 (linux_remove_watchpoint): Rename to ...
18652 (linux_remove_point): ... this. Adjust.
18653 (linux_target_ops): Adjust.
18654 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18655 (cris_insert_point): ... this.
18656 (cris_remove_watchpoint): Rename to ...
18657 (cris_remove_point): ... this.
18658 (the_low_target): Adjust.
18659
0f54c268
PM
186602009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18661
18662 * server.c (handle_v_kill): Pass signal_pid to
18663 kill_inferior if multi_process is zero.
18664
c6314022
AR
186652009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18666
18667 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18668 * target.h (target_ops): Comment for *_watchpoint to make it clear
18669 the functions can get types '0' and '1'.
18670
4463ce24
AR
186712009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18672
18673 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18674 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18675 * regcache.c (get_regcache): Likewise.
18676 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18677 * win32-low.c (child_fetch_inferior_registers): Remove check for
18678 regno 0.
18679
cf8fd78b
PA
186802009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18681 Pedro Alves <pedro@codesourcery.com>
18682
18683 * target.h (struct target_ops) <supports_multi_process>: New
18684 callback.
18685 (target_supports_multi_process): New.
18686 * server.c (handle_query): Even if GDB reports support, only
18687 enable multi-process if the target also supports it. Report
18688 multi-process support only if the target backend supports it.
18689 * linux-low.c (linux_supports_multi_process): New function.
18690 (linux_target_ops): Install it as target_supports_multi_process
18691 callback.
18692
47c0c975
DE
186932009-05-24 Doug Evans <dje@google.com>
18694
e09875d4
DE
18695 Global renaming of find_thread_pid to find_thread_ptid.
18696 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18697 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18698 All callers updated.
18699
e27d73f6
DE
18700 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18701 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18702 directly.
18703
47c0c975
DE
18704 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18705 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18706 (linux_resume_one_lwp): Ditto.
18707
2acc282a
DE
187082009-05-23 Doug Evans <dje@google.com>
18709
18710 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18711 from struct inferior_list_entry * to struct lwp_info *.
18712 All callers updated.
18713
9f1036c1
DE
187142009-05-13 Doug Evans <dje@google.com>
18715
18716 * linux-x86-low.c: Don't include assert.h.
18717 (x86_siginfo_fixup): Use fatal, not assert.
18718 (x86_arch_setup): Fix comment.
18719
d0722149
DE
187202009-05-12 Doug Evans <dje@google.com>
18721
18722 Biarch support for i386/amd64 gdbserver.
18723 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18724 Add linux-x86-low.c.
18725 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18726 (linux-x86-low.o): Add.
18727 * linux-x86-64-low.c: Delete.
18728 * linux-i386-low.c: Delete.
18729 * linux-x86-low.c: New file.
18730 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18731 linux-x86-low.o.
18732 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18733 linux-x86-low.o.
18734 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18735 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18736 (linux_child_pid_to_exec_file): New function.
18737 (elf_64_header_p, elf_64_file_p): New functions.
18738 (siginfo_fixup): New function.
18739 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18740 give target a chance to convert layout.
18741 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18742 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18743
fdeb2a12
DE
187442009-05-07 Doug Evans <dje@google.com>
18745
18746 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18747 (regsets_store_inferior_registers): Ditto.
18748
a6dbe5df
PA
187492009-05-06 Pedro Alves <pedro@codesourcery.com>
18750
18751 PR server/10048
18752
18753 * linux-low.c (must_set_ptrace_flags): Delete.
18754 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18755 of the global.
18756 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18757 `lwp->must_set_ptrace_flags' instead.
ba42693b 18758 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
18759 (linux_wait_1): ... not here.
18760
5091eb23
DE
187612009-04-30 Doug Evans <dje@google.com>
18762
9f767825
DE
18763 * inferiors.c (started_inferior_callback): New function.
18764 (attached_inferior_callback): New function.
18765 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18766 * server.c (print_started_pid, print_attached_pid): New functions.
18767 (detach_or_kill_for_exit): New function.
18768 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18769 * server.h (have_started_inferiors_p): Declare.
18770 (have_attached_inferiors_p): Declare.
18771
5091eb23
DE
18772 * inferiors.c (remove_process): Fix memory leak, free process.
18773 * linux-low.c (linux_remove_process): New function.
18774 (linux_kill): Call it instead of remove_process.
18775 (linux_detach, linux_wait_1): Ditto.
18776
155c8968
PA
187772009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18778
18779 * configure.srv: Add x86 Windows CE target.
18780
7fe519cb
UW
187812009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18782
18783 * inferiors.c (get_thread_process): Make global.
18784 * server.h (get_thread_process): Add prototype.
18785 * thread-db.c (find_one_thread): Use get_thread_process
18786 instead of current_process.
18787 (thread_db_get_tls_address): Do not crash if called when
18788 thread layer is not yet initialized.
18789
5472f405
UW
187902009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18791
18792 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18793 * spu-low.c (current_tid): Rename to ...
18794 (current_ptid): ... this.
18795 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18796 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18797 ptid_get_lwp (current_ptid) instead of current_tid.
18798 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18799 instead of current_tid. Use find_process_pid to verify pid
18800 argument is valid. Pass proper argument to remove_process.
18801 (spu_thread_alive): Compare current_ptid instead of current_tid.
18802 (spu_resume): Likewise.
18803
55ac2b99
PA
188042009-04-02 Pedro Alves <pedro@codesourcery.com>
18805
18806 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18807 variable.
18808
95954743
PA
188092009-04-01 Pedro Alves <pedro@codesourcery.com>
18810
18811 Implement the multiprocess extensions, and add linux multiprocess
18812 support.
18813
18814 * server.h (ULONGEST): Declare.
18815 (struct ptid, ptid_t): New.
18816 (minus_one_ptid, null_ptid): Declare.
18817 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18818 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18819 (struct inferior_list_entry): Change `id' type from unsigned from
18820 to ptid_t.
18821 (struct sym_cache, struct breakpoint, struct
18822 process_info_private): Forward declare.
18823 (struct process_info): Declare.
18824 (current_process): Declare.
18825 (all_processes): Declare.
18826 (initialize_inferiors): Declare.
18827 (add_thread): Adjust to use ptid_t.
18828 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18829 (add_process, remove_process, find_thread_pid): Declare.
18830 (find_inferior_id): Adjust to use ptid_t.
18831 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18832 (multi_process): Declare.
18833 (push_event): Adjust to use ptid_t.
18834 (read_ptid, write_ptid): Declare.
18835 (prepare_resume_reply): Adjust to use ptid_t.
18836 (clear_symbol_cache): Declare.
18837 * inferiors.c (all_processes): New.
18838 (null_ptid, minus_one_ptid): New.
18839 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18840 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18841 (add_thread): Change unsigned long to ptid. Remove gdb_id
18842 parameter. Adjust.
18843 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18844 (gdb_id_to_thread): Rename to ...
18845 (find_thread_pid): ... this. Change unsigned long to ptid.
18846 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18847 (loaded_dll, pull_pid_from_list): Adjust.
18848 (add_process, remove_process, find_process_pid)
18849 (get_thread_process, current_process, initialize_inferiors): New.
18850 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18851 (struct target_waitstatus) <related_pid>: Ditto.
18852 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18853 return type to int.
18854 (struct target_ops) <join>: Add `pid' argument.
18855 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18856 (struct target_ops) <wait>: Add `ptid' field. Change return type
18857 to ptid.
18858 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18859 (mywait): Add `ptid' argument. Change return type to ptid_t.
18860 (target_pid_to_str): Declare.
18861 * target.c (set_desired_inferior): Adjust to use ptids.
18862 (mywait): Add new `ptid' argument. Adjust.
18863 (target_pid_to_str): New.
18864 * mem-break.h (free_all_breakpoints): Declare.
18865 * mem-break.c (breakpoints): Delelete.
18866 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18867 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18868 to use per-process breakpoint list.
18869 (free_all_breakpoints): New.
18870 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18871 (symbol_cache, all_symbols_looked_up): Delete.
18872 (hexchars): New.
18873 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18874 read_ptid): New.
18875 (prepare_resume_reply): Change ptid argument's type from unsigned
18876 long to ptid_t. Adjust. Implement W;process and X;process.
18877 (free_sym_cache, clear_symbol_cache): New.
18878 (look_up_one_symbol): Adjust to per-process symbol cache. *
18879 * server.c (cont_thread, general_thread, step_thread): Change type
18880 to ptid_t.
18881 (attached): Delete.
18882 (multi_process): New.
18883 (last_ptid): Change type to ptid_t.
18884 (struct vstop_notif) <ptid>: Change type to ptid_t.
18885 (queue_stop_reply, push_event): Change `ptid' argument's type to
18886 ptid_t.
18887 (discard_queued_stop_replies): Add `pid' argument.
18888 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18889 changes. Don't reference the `attached' global.
18890 (attach_inferior): Adjust to mywait interface changes.
18891 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18892 features. Handle and report "multiprocess+". Handle
18893 "qAttached:PID".
18894 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18895 changes.
18896 (handle_v_kill): New.
18897 (handle_v_stopped): Adjust to use target_pid_to_str.
18898 (handle_v_requests): Allow multiple attaches and runs when
18899 multiprocess extensions are in effect. Handle "vKill".
18900 (myresume): Adjust to use ptids.
18901 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18902 (handle_status): Adjust to discard_queued_stop_replies interface
18903 change.
18904 (first_thread_of, kill_inferior_callback)
18905 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18906 (main): Call initialize_inferiors. Adjust to use ptids, killing
18907 and detaching from all inferiors. Handle multiprocess packet
18908 variants.
18909 * linux-low.h: Include gdb_proc_service.h.
18910 (struct process_info_private): New.
18911 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18912 <lwpid_of>: Use ptid_get_lwp.
18913 (get_lwp_thread): Adjust.
18914 (struct lwp_info): Add `dead' member.
18915 (find_lwp_pid): Declare.
18916 * linux-low.c (thread_db_active): Delete.
18917 (new_inferior): Adjust comment.
18918 (inferior_pid): Delete.
18919 (linux_add_process): New.
18920 (handle_extended_wait): Adjust.
18921 (add_lwp): Change unsigned long to ptid.
18922 (linux_create_inferior): Add process to processes table. Adjust
18923 to use ptids. Don't set new_inferior here.
18924 (linux_attach_lwp): Rename to ...
18925 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18926 it. Adjust to use ptids.
18927 (linux_attach_lwp): New.
18928 (linux_attach): Add process to processes table. Don't set
18929 new_inferior here.
18930 (struct counter): New.
18931 (second_thread_of_pid_p, last_thread_of_process_p): New.
18932 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18933 multiple processes.
18934 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18935 processes. Remove process from process table.
18936 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18937 to multiple processes.
18938 (any_thread_of): New.
18939 (linux_detach): Add `pid' argument, and handle it. Remove process
18940 from processes table.
18941 (linux_join): Add `pid' argument. Handle it.
18942 (linux_thread_alive): Change unsighed long argument to ptid_t.
18943 Consider dead lwps as not being alive.
18944 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18945 threads we're not interested in.
18946 (same_lwp, find_lwp_pid): New.
18947 (linux_wait_for_lwp): Change `pid' argument's type from int to
18948 ptid_t. Adjust.
18949 (linux_wait_for_event): Rename to ...
18950 (linux_wait_for_event_1): ... this. Change `pid' argument's type
18951 from int to ptid_t. Adjust.
18952 (linux_wait_for_event): New.
18953 (linux_wait_1): Add `ptid' argument. Change return type to
18954 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
18955 that exit from the process table.
18956 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
18957 Adjust.
18958 (mark_lwp_dead): New.
18959 (wait_for_sigstop): Adjust to use ptids. If a process exits while
18960 stopping all threads, mark its main lwp as dead.
18961 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
18962 ptids.
18963 (fetch_register, usr_store_inferior_registers)
18964 (regsets_fetch_inferior_registers)
18965 (regsets_store_inferior_registers, linux_read_memory)
18966 (linux_write_memory): Inline `inferior_pid'.
18967 (linux_look_up_symbols): Adjust to use per-process
18968 `thread_db_active'.
18969 (linux_request_interrupt): Adjust to use ptids.
18970 (linux_read_auxv): Inline `inferior_pid'.
18971 (initialize_low): Don't reference thread_db_active.
18972 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
18973 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
18974 (ps_getpid): Return the pid of the current inferior.
18975 * thread-db.c (proc_handle, thread_agent): Delete.
18976 (thread_db_create_event, thread_db_enable_reporting): Adjust to
18977 per-process data.
18978 (find_one_thread): Change argument type to ptid_t. Adjust to
18979 per-process data.
18980 (maybe_attach_thread): Adjust to per-process data and ptids.
18981 (thread_db_find_new_threads): Ditto.
18982 (thread_db_init): Ditto.
18983 * spu-low.c (spu_create_inferior, spu_attach): Add process to
18984 processes table. Adjust to use ptids.
18985 (spu_kill, spu_detach): Adjust interface. Remove process from
18986 processes table.
18987 (spu_join, spu_thread_alive): Adjust interface.
18988 (spu_wait): Adjust interface. Remove process from processes
18989 table. Adjust to use ptids.
18990 * win32-low.c (current_inferior_tid): Delete.
18991 (current_inferior_ptid): New.
18992 (debug_event_ptid): New.
18993 (thread_rec): Take a ptid. Adjust.
18994 (child_add_thread): Add `pid' argument. Adjust to use ptids.
18995 (child_delete_thread): Ditto.
18996 (do_initial_child_stuff): Add `attached' argument. Add process to
18997 processes table.
18998 (child_fetch_inferior_registers, child_store_inferior_registers):
18999 Adjust.
19000 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19001 (win32_attach): Pass 1 to do_initial_child_stuff.
19002 (win32_kill): Adjust interface. Remove process from processes
19003 table.
19004 (win32_detach): Ditto.
19005 (win32_join): Adjust interface.
19006 (win32_thread_alive): Take a ptid.
19007 (win32_resume): Adjust to use ptids.
19008 (get_child_debug_event): Ditto.
19009 (win32_wait): Adjust interface. Remove exiting process from
19010 processes table.
19011
bd99dc85
PA
190122009-04-01 Pedro Alves <pedro@codesourcery.com>
19013
19014 Non-stop mode support.
19015
19016 * server.h (non_stop): Declare.
19017 (gdb_client_data, handler_func): Declare.
19018 (delete_file_handler, add_file_handler, start_event_loop):
19019 Declare.
19020 (handle_serial_event, handle_target_event, push_event)
19021 (putpkt_notif): Declare.
19022 * target.h (enum resume_kind): New.
19023 (struct thread_resume): Replace `step' field by `kind' field.
19024 (TARGET_WNOHANG): Define.
19025 (struct target_ops) <wait>: Add `options' argument.
19026 <supports_non_stop, async, start_non_stop>: New fields.
19027 (target_supports_non_stop, target_async): New.
19028 (start_non_stop): Declare.
19029 (mywait): Add `options' argument.
19030 * target.c (mywait): Add `options' argument. Print child exit
19031 notifications here.
19032 (start_non_stop): New.
19033 * server.c (non_stop, own_buf, mem_buf): New globals.
19034 (struct vstop_notif): New.
19035 (notif_queue): New global.
19036 (queue_stop_reply, push_event, discard_queued_stop_replies)
19037 (send_next_stop_reply): New.
19038 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19039 interface changes.
19040 (attach_inferior): In non-stop mode, don't wait for the target
19041 here.
19042 (handle_general_set): Handle QNonStop.
19043 (handle_query): When handling qC, return the current general
19044 thread, instead of the first thread of the list.
19045 (handle_query): If the backend supports non-stop mode, include
19046 QNonStop+ in the qSupported query response.
19047 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19048 and non-stop mode.
19049 (handle_v_attach, handle_v_run): Handle non-stop mode.
19050 (handle_v_stopped): New.
19051 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19052 (myresume): Adjust to use resume_kind. Handle non-stop.
19053 (queue_stop_reply_callback): New.
19054 (handle_status): Handle non-stop mode.
19055 (main): Clear non_stop flag on reconnection. Use the event-loop.
19056 Refactor serial protocol handling from here ...
19057 (process_serial_event): ... to this new function. When GDB
19058 selects any thread, select one here. In non-stop mode, wait until
19059 GDB acks all pending events before exiting.
19060 (handle_serial_event, handle_target_event): New.
19061 * remote-utils.c (remote_open): Install remote_desc in the event
19062 loop.
19063 (remote_close): Remove remote_desc from the event loop.
19064 (putpkt_binary): Rename to...
19065 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19066 (putpkt_binary): New as wrapper around putpkt_binary_1.
19067 (putpkt_notif): New.
19068 (prepare_resume_reply): In non-stop mode, don't change the
19069 general_thread.
19070 * event-loop.c: New.
19071 * Makefile.in (OBJ): Add event-loop.o.
19072 (event-loop.o): New rule.
19073
19074 * linux-low.h (pid_of): Moved here.
19075 (lwpid_of): New.
19076 (get_lwp_thread): Use lwpid_of.
19077 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19078 * linux-low.c (pid_of): Delete.
19079 (inferior_pid): Use lwpid_of.
19080 (linux_event_pipe): New.
19081 (target_is_async_p): New.
19082 (delete_lwp): New.
19083 (handle_extended_wait): Use lwpid_of.
19084 (add_lwp): Don't set lwpid field.
19085 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19086 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19087 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19088 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19089 first. Adjust to linux_wait_for_event interface changes. Use
19090 lwpid_of.
19091 (linux_detach): Don't delete the main lwp here.
19092 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19093 (status_pending_p): Don't consider explicitly suspended lwps.
19094 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19095 pointer. Add OPTIONS argument. Change return type to int. Use
19096 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19097 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19098 pointer. Add status pointer argument. Return a pid instead of a
19099 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19100 changes. In non-stop mode, don't switch to a random thread.
19101 (linux_wait): Rename to...
19102 (linux_wait_1): ... this. Add target_options argument, and handle
19103 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19104 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19105 clean exit and signal exit code. Don't stop all threads in
19106 non-stop mode. In all-stop mode, only stop all threads when
19107 reporting a stop to GDB. Handle explicit thread stop requests.
19108 (async_file_flush, async_file_mark): New.
19109 (linux_wait): New.
19110 (send_sigstop): Use lwpid_of.
19111 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19112 interface changes. In non-stop mode, don't switch to a random
19113 thread.
19114 (linux_resume_one_lwp): Use lwpid_of.
19115 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19116 (linux_resume_one_thread): ... this. Handle resume_stop. In
19117 non-stop mode, don't look for pending flag in all threads.
19118 (resume_status_pending_p): Don't consider explicitly suspended
19119 threads.
19120 (my_waitpid): Reimplement. Emulate __WALL.
19121 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19122 Use lwpid_of.
19123 (sigchld_handler, linux_supports_non_stop, linux_async)
19124 (linux_start_non_stop): New.
19125 (linux_target_ops): Register linux_supports_non_stop, linux_async
19126 and linux_start_non_stop.
19127 (initialize_low): Install SIGCHLD handler.
19128 * thread-db.c (thread_db_create_event, find_one_thread)
19129 (thread_db_get_tls_address): Use lwpid_of.
19130 * win32-low.c (win32_detach): Adjust to use resume_kind.
19131 (win32_wait): Add `options' argument.
19132 * spu-low.c (spu_resume): Adjust to use resume_kind.
19133 (spu_wait): Add `options' argument.
19134
5b1c542e
PA
191352009-04-01 Pedro Alves <pedro@codesourcery.com>
19136
19137 Decouple target code from remote protocol.
19138
19139 * target.h (enum target_waitkind): New.
19140 (struct target_waitstatus): New.
19141 (struct target_ops) <wait>: Return an unsigned long. Take a
19142 target_waitstatus pointer instead of a char pointer.
19143 (mywait): Likewise.
19144 * target.c (mywait): Change prototype to return an unsigned long.
19145 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19146 * server.h (thread_from_wait, old_thread_from_wait): Delete
19147 declarations.
19148 (prepare_resume_reply): Change prototype to take a
19149 target_waitstatus.
19150 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19151 (last_status, last_ptid): New.
19152 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19153 pid instead of a signal.
19154 (attach_inferior): Remove "status" and "signal" parameters.
19155 Adjust.
19156 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19157 not as an address.
19158 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19159 (handle_v_requests, myresume): Remove "status" and "signal"
19160 parameters. Adjust.
19161 (handle_status): New.
19162 (main): Delete local `status'. Adjust.
19163 * remote-utils.c: Include target.h.
19164 (prepare_resume_reply): Change prototype to take a
19165 target_waitstatus. Adjust.
19166
19167 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19168 interface.
19169 * spu-low.c (spu_wait): Adjust.
19170 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19171 Delete.
19172 (win32_wait): Adjust.
19173
2bd7c093
PA
191742009-04-01 Pedro Alves <pedro@codesourcery.com>
19175
19176 * target.h (struct thread_resume): Delete leave_stopped member.
19177 (struct target_ops): Add a `n' argument to the `resume' callback.
19178 * server.c (start_inferior): Adjust.
19179 (handle_v_cont, myresume): Adjust.
19180 * linux-low.c (check_removed_breakpoint): Adjust to resume
19181 interface change, and to removed leave_stopped field.
19182 (resume_ptr): Delete.
19183 (struct thread_resume_array): New.
19184 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19185 resume interface change.
19186 (linux_continue_one_thread, linux_queue_one_thread)
19187 (resume_status_pending_p): Check if the resume field is NULL
19188 instead of checking the leave_stopped member.
19189 (linux_resume): Adjust to the target resume interface change.
19190 * spu-low.c (spu_resume): Adjust to the target resume interface
19191 change.
19192 * win32-low.c (win32_detach, win32_resume): Ditto.
19193
c35fafde
PA
191942009-04-01 Pedro Alves <pedro@codesourcery.com>
19195
19196 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19197 flag.
19198 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19199 pending.
19200 (linux_continue_one_thread): Only preserve the stepping flag if
19201 there's a pending breakpoint.
19202
0a59d50b
PA
192032009-03-31 Pedro Alves <pedro@codesourcery.com>
19204
19205 * server.c (main): After the inferior having exited, call
19206 remote_close before exiting gdbserver.
19207
f04c6d38
TJB
192082009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19209
19210 Fix size of FPSCR in Power 7 processors.
19211 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19212 (PPC_FEATURE_HAS_DFP): New #define.
19213 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19214 size of the FPSCR.
19215
78e5cee6
PA
192162009-03-23 Pedro Alves <pedro@codesourcery.com>
19217
19218 * server.c (handle_query) Whitespace and formatting.
19219
1b3f6016
PA
192202009-03-22 Pedro Alves <pedro@codesourcery.com>
19221
19222 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19223 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19224 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19225 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19226 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19227 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19228 Makefile.in, configure.ac: Fix whitespace throughout.
19229 * configure: Regenerate.
19230
a07b2135
PA
192312009-03-22 Pedro Alves <pedro@codesourcery.com>
19232
19233 * inferiors.c (find_inferior): Make it safe for the callback
19234 function to delete the currently iterated inferior.
19235
67cc2626
PA
192362009-03-22 Pedro Alves <pedro@codesourcery.com>
19237
19238 * Makefile.in (linuw_low_h): Move higher.
19239 (thread-db.o): Depend on $(linux_low_h).
19240
54a0b537
PA
192412009-03-17 Pedro Alves <pedro@codesourcery.com>
19242
19243 Rename "process" to "lwp" throughout.
19244
19245 * linux-low.c (all_processes): Rename to...
19246 (all_lwps): ... this.
19247 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19248 (add_process): Rename to ...
19249 (add_lwp): ... this. Adjust.
19250 (linux_create_inferior): Adjust.
19251 (linux_attach_lwp): Adjust.
19252 (linux_attach): Adjust.
19253 (linux_kill_one_process): Rename to ...
19254 (linux_kill_one_lwp): ... this. Adjust.
19255 (linux_kill): Adjust.
19256 (linux_detach_one_process): Rename to ...
19257 (linux_detach_one_lwp): ... this. Adjust.
19258 (linux_detach): Adjust.
19259 (check_removed_breakpoint): Adjust.
19260 (status_pending_p): Adjust.
19261 (linux_wait_for_process): Rename to ...
19262 (linux_wait_for_lwp): ... this. Adjust.
19263 (linux_wait_for_event): Adjust.
19264 (send_sigstop): Adjust.
19265 (wait_for_sigstop): Adjust.
19266 (stop_all_processes): Rename to ...
19267 (stop_all_lwps): ... this.
19268 (linux_resume_one_process): Rename to ...
19269 (linux_resume_one_lwp): ... this. Adjust.
19270 (linux_set_resume_request, linux_continue_one_thread)
19271 (linux_queue_one_thread, resume_status_pending_p)
19272 (usr_store_inferior_registers, regsets_store_inferior_registers)
19273 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19274 Adjust.
19275 * linux-low.h (get_process): Rename to ...
19276 (get_lwp): ... this. Adjust.
19277 (get_thread_process): Rename to ...
19278 (get_thread_lwp): ... this. Adjust.
19279 (get_process_thread): Rename to ...
19280 (get_lwp_thread): ... this. Adjust.
19281 (struct process_info): Rename to ...
19282 (struct lwp_info): ... this.
19283 (all_processes): Rename to ...
19284 (all_lwps): ... this.
19285 * proc-service.c (ps_lgetregs): Adjust.
19286 * thread-db.c (thread_db_create_event, find_one_thread)
19287 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19288
0b16c5cf
PA
192892009-03-14 Pedro Alves <pedro@codesourcery.com>
19290
19291 * server.c (handle_query): Handle "qAttached".
19292
32de4b9d
NS
192932009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19294
19295 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19296 GPLv3, update license URL.
19297
2aecd87f
DE
192982009-03-01 Doug Evans <dje@google.com>
19299
93efd302 19300 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19301 (server_h): Add gdb_signals.h.
19302 (signals.o): Update.
19303 * server.h (target_signal_from_host,target_signal_to_host_p)
19304 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19305
86b1f9c5
PM
193062009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19307
19308 * remote-utils.c (getpkt): Also generate remote-debug
19309 information if noack_mode is set.
19310
4aa995e1
PA
193112009-02-06 Pedro Alves <pedro@codesourcery.com>
19312
19313 * server.c (handle_query): Report qXfer:siginfo:read and
19314 qXfer:siginfo:write as supported and handle them.
19315 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19316 * linux-low.c (linux_xfer_siginfo): New.
19317 (linux_target_ops): Set it.
19318
62709adf
PA
193192009-01-26 Pedro Alves <pedro@codesourcery.com>
19320
19321 * server.c (gdbserver_usage): Mention --remote-debug.
19322 (main): Accept '--remote-debug' switch.
19323
aef93bd7
DE
193242009-01-18 Doug Evans <dje@google.com>
19325
19326 * regcache.c (new_register_cache): No need to check result of xcalloc.
19327 * server.c (handle_search_memory): Back out calls to xmalloc,
19328 result is checked and error is returned to user upon failure.
19329 (handle_query): Ditto. Add more checks for result of malloc.
19330 (handle_v_cont): Check result of malloc, report error back to
19331 user upon failure.
19332 (handle_v_run): Ditto. Call freeargv.
19333 * server.h (freeargv): Declare.
19334 * utils.c (freeargv): New fn.
19335
54363045
DE
193362009-01-15 Doug Evans <dje@google.com>
19337
f626972c
DE
19338 * gdbreplay.c (perror_with_name): Make arg const char *.
19339 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19340 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19341 * utils.c (perror_with_name): Make arg const char *.
54363045 19342
18aae699
PA
193432009-01-14 Pedro Alves <pedro@codesourcery.com>
19344
19345 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19346 when handling a EXIT_PROCESS_DEBUG_EVENT.
19347
ff703abe
JB
193482009-01-06 Joel Brobecker <brobecker@adacore.com>
19349
19350 * gdbreplay.c (gdbreplay_version): Update copyright year.
19351 * server.c (gdbserver_version): Likewise.
19352
f21cc1a2 193532009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19354
19355 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19356 (handle_extended_wait): Improve comment.
0e21c1ec 19357
bca929d3
DE
193582008-12-13 Doug Evans <dje@google.com>
19359
19360 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19361 * server.h (ATTR_MALLOC): New macro.
19362 (xmalloc,xcalloc,xstrdup): Declare.
19363 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19364 * inferiors.c: Ditto.
19365 * linux-low.c: Ditto.
19366 * mem-break.c: Ditto.
19367 * regcache.c: Ditto.
19368 * remote-utils.c: Ditto.
19369 * server.c: Ditto.
19370 * target.c: Ditto.
19371 * win32-low.c: Ditto.
19372
97438e3f
DE
193732008-12-12 Doug Evans <dje@google.com>
19374
896c7fbb
DE
19375 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19376 in debugging printf.
19377
97438e3f
DE
19378 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19379
e3b886f8
DE
193802008-12-09 Doug Evans <dje@google.com>
19381
19382 * linux-low.h (struct process_info): Delete member tid, unused.
19383 * thread-db.c (find_one_thread): Update.
19384 (maybe_attach_thread): Update.
19385
07e059b5
VP
193862008-12-02 Pedro Alves <pedro@codesourcery.com>
19387
889bf7c5
PA
19388 * target.h (struct target_ops): Add qxfer_osdata member.
19389 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19390 and dirent.h.
19391 (linux_qxfer_osdata): New functions.
19392 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19393 callback.
19394 * server.c (handle_query): Handle "qXfer:osdata:read:".
19395 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19396 (buffer_xml_printf): New functions.
19397 * server.h (struct buffer): New.
19398 (buffer_grow_str, buffer_grow_str0): New macros.
19399 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19400 (buffer_xml_printf): Declare.
07e059b5 19401
4cab47ab
DE
194022008-11-24 Doug Evans <dje@google.com>
19403
19404 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19405
f142445f
DJ
194062008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19407
19408 * server.c (handle_v_run): Always use the supplied argument list.
19409
d0107bb6 194102008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19411
d0107bb6
BW
19412 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19413 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19414
2c4ad781
TJB
194152008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19416
19417 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19418 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19419 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19420 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19421 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19422 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19423 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19424 XML target descriptions.
19425 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19426 when inferior is running on an ISA 2.05 or later processor. Add
19427 special case to return offset for full 64-bit slot of FPSCR when
19428 in 32-bits.
19429
dfb64f85
DJ
194302008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19431
19432 * Makefile.in (SFILES, clean): Added sparc64 files.
19433 (reg-sparc64.o, reg-sparc64.c): New.
19434 * configure.srv (sparc*-*-linux*): New configuration.
19435 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19436 syscall arguments for SPARC.
19437 (regsets_store_inferior_registers): Likewise.
19438 * linux-sparc-low.c: New file.
19439
66b6e1dd
DE
194402008-10-21 Doug Evans <dje@google.com>
19441
19442 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19443 (READLINE_DIR,READLINE_DEP): Delete.
19444 (INTERNAL_CFLAGS): Update.
19445 (LINTFLAGS): Update.
19446
9b710a42
PA
194472008-10-10 Pedro Alves <pedro@codesourcery.com>
19448
19449 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19450 whole argv from the last run, not just argv[0].
19451
5822d809
PA
194522008-09-08 Pedro Alves <pedro@codesourcery.com>
19453
19454 * regcache.c (new_register_cache): Return NULL if the register
19455 cache size isn't known yet.
19456 (free_register_cache): Avoid dereferencing a NULL regcache.
19457
74aac56f
DJ
194582008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19459
19460 * configure.srv: Merge MIPS and MIPS64.
19461
400b20f5
MR
194622008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19463
19464 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19465
677c5bb1
LM
194662008-08-18 Luis Machado <luisgpm@br.ibm.com>
19467
19468 * Makefile.in: Add required vsx dependencies.
19469
19470 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19471 Declare init_registers_powerpc_vsx32l.
19472 Declare init_registers_powerpc_vsx64l.
19473 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19474 (ppc_arch_setup): Check for VSX in hwcap.
19475 (ppc_fill_vsxregset): New function.
19476 (ppc_store_vsxregset): New function.
19477 Add new VSX entry in regset_info target_regsets.
19478
19479 * configure.srv: Add new VSX dependencies.
19480
a6f3e723
SL
194812008-08-12 Pedro Alves <pedro@codesourcery.com>
19482
19483 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19484 (remote_open): Set or clear transport_is_reliable.
19485 (putpkt_binary): Don't expect acks in noack mode.
19486 (getpkt): Don't send ack/nac in noack mode.
19487 * server.c (handle_general_set): Handle QStartNoAckMode.
19488 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19489 qSupported.
19490 (main): Reset noack_mode on every connection.
19491 * server.h (noack_mode): Declare.
19492
a417dc56
RW
194932008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19494
19495 * Makefile.in (GDBREPLAY_OBS): New variable.
19496 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19497
3221518c
UW
194982008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19499 Daniel Jacobowitz <dan@codesourcery.com>
19500
19501 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19502 (usr_store_inferior_registers): Likewise.
19503 (regsets_store_inferior_registers): Likewise.
19504
ec56be1b
PA
195052008-07-31 Rolf Jansen <rj@surtec.com>
19506 Pedro Alves <pedro@codesourcery.com>
19507
19508 * configure.ac: Check for memmem declaration.
19509 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19510 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19511 (disable_packet_qfThreadInfo): Unconditionally compile.
19512 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19513 * configure, config.in: Regenerate.
19514
2fe5e3ff
DE
195152008-07-28 Doug Kwan <dougkwan@google.com>
19516
19517 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19518 (linux_write_memory): Remove declaration of errno.
19519
836acd6d
UW
195202008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19521
19522 * linux-low.c (handle_extended_wait): Do not use "status"
19523 variable uninitialized.
19524
aeba519e
PA
195252008-07-07 Pedro Alves <pedro@codesourcery.com>
19526
19527 * server.c (handle_v_attach): Inhibit reporting dll changes.
19528
db42f210
PA
195292008-06-27 Pedro Alves <pedro@codesourcery.com>
19530
19531 * remote-utils.c (prepare_resume_reply): If requested, don't
19532 output "thread:TID" in the T stop reply.
19533
19534 * server.c (disable_packet_vCont, disable_packet_Tthread)
19535 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19536 (handle_query): If requested, disable support for qC, qfThreadInfo
19537 and qsThreadInfo.
19538 (handle_v_requests): If requested, disable support for vCont.
19539 (gdbserver_show_disableable): New.
19540 (main): Handle --disable-packet and --disable-packet=LIST.
19541
19542 * server.h (disable_packet_vCont, disable_packet_Tthread)
19543 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19544
8e4c5421
CD
195452008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19546
19547 * server.c (gdbserver_usage): Mention --version.
19548
6e23a804
DJ
195492008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19550
19551 * Makefile.in (gdbreplay.o): New rule.
19552
90aa6a40
JM
195532008-06-06 Joseph Myers <joseph@codesourcery.com>
19554
19555 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19556 message, not gdbserver.
19557
c16158bc 195582008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19559 Nathan Sidwell <nathan@codesourcery.com>
19560 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19561
19562 * acinclude.m4: Include ../../config/acx.m4.
19563 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19564 * configure, config.in: Regenerate.
19565 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19566 * server.c (gdbserver_version): Print PKGVERSION.
19567 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19568 (main): Adjust gdbserver_usage calls.
19569 * gdbreplay.c (version, host_name): Add declarations.
19570 (gdbreplay_version, gdbreplay_usage): New.
19571 (main): Accept --version and --help options.
19572
aeb75bf5
DJ
195732008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19574
19575 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19576 (arm_breakpoint_at): Handle Thumb.
19577 (the_low_target): Add comment.
19578
76b233dd
UW
195792008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19580
19581 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19582
08388c79
DE
195832008-05-09 Doug Evans <dje@google.com>
19584
a3c83fae
DE
19585 * server.h (decode_search_memory_packet): Declare.
19586 * remote-utils.c (decode_search_memory_packet): New fn.
19587 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19588 (handle_search_memory): New fn.
19589 (handle_query): Process qSearch:memory packets.
19590
bb9c3d36
UW
195912008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19592
19593 * regcache.c (registers_length): Remove.
19594 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19595 full register packet.
19596 * regcache.h (registers_length): Remove prototype.
19597 * server.h (PBUFSIZ): Define to 16384.
19598
7284e1be
UW
195992008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19600
19601 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19602 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19603 powerpc-64l.o, and powerpc-altivec64l.o.
19604 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19605 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19606 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19607 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19608 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19609 to srv_xmlfiles.
19610
19611 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19612 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19613 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19614 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19615 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19616 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19617 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19618 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19619 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19620 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19621 (clean): Update.
19622
19623 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19624 (init_registers_powerpc_32l): ... this new prototype.
19625 (init_registers_powerpc_32): Remove, replace by ...
19626 (init_registers_powerpc_altivec32l): ... this new prototype.
19627 (init_registers_powerpc_e500): Remove, replace by ...
19628 (init_registers_powerpc_e500l): ... this new prototype.
19629 (init_registers_ppc64): Remove, replace by ...
19630 (init_registers_powerpc_64l): ... this new prototype.
19631 (init_registers_powerpc_64): Remove, replace by ...
19632 (init_registers_powerpc_altivec64l): ... this new prototype.
19633 (ppc_num_regs): Set to 73.
19634 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19635 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19636 (ppc_cannot_store_register): Handle orig_r3 and trap.
19637 (ppc_arch_setup): Update init_registers_... calls.
19638 (ppc_fill_gregset): Handle orig_r3 and trap.
19639
19640 * inferiors.c (clear_inferiors): Reset current_inferior.
19641
fdc59709
PB
196422008-04-23 Paolo Bonzini <bonzini@gnu.org>
19643
889bf7c5
PA
19644 * acinclude.m4: Add override.m4.
19645 * configure: Regenerate.
fdc59709 19646
c9b2f845
UW
196472008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19648
19649 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19650 initial call to init_register_ppc64.
19651
550512b8
UW
196522008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19653
43aaf8b6
PA
19654 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19655 single powerpc*-*-linux* case.
550512b8
UW
19656 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19657
b6430ec3
UW
196582008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19659
19660 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19661 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19662 from reg_xmlfiles.
19663 * linux-ppc-low.c: Include <elf.h>.
19664 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19665 (ppc_hwcap): New global variable.
19666 (ppc_regmap): Remove __SPE__ #ifdef sections.
19667 (ppc_regmap_e500): New global variable.
19668 (ppc_cannot_store_register): Update __SPE__ special case.
19669 (ppc_get_hwcap): New function.
19670 (ppc_arch_setup): Use it to determine whether inferior supports
19671 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19672 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19673 Do not access registers if target does not support AltiVec.
19674 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19675 Do not access registers if target does not support SPE.
19676 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19677
52fa2412
UW
196782008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19679
19680 * linux-low.c (disabled_regsets, num_regsets): New.
19681 (use_regsets_p): Delete.
19682 (linux_wait_for_process): Clear disabled_regsets.
19683 (regsets_fetch_inferior_registers): Check and set it.
19684 (regsets_store_inferior_registers): Likewise.
19685 (linux_fetch_registers, linux_store_registers): Do not use
19686 use_regsets_p.
19687 (initialize_low): Allocate disabled_regsets.
19688
e28b3332
DJ
196892008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19690
19691 * Makefile.in (LIBOBJS): New.
19692 (OBS): Use LIBOBJS.
19693 (memmem.o): New rule.
19694 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19695 * configure: Regenerated.
19696
4536995d
UW
196972008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19698
19699 * server.c (handle_query): Never return "unsupported" for
19700 qXfer:features:read queries.
19701
221c031f
UW
197022008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19703
19704 * server.c (get_features_xml): Fix inverted condition.
19705 (handle_query): Always support qXfer:feature:read.
19706
ccd213ac
DJ
197072008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19708
19709 * server.c (wrapper_argv): New.
19710 (start_inferior): Handle wrapper_argv. If set, expect an extra
19711 trap.
19712 (gdbserver_usage): Document --wrapper.
19713 (main): Parse --wrapper.
19714
6fe305f7
UW
197152008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19716
19717 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19718 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19719 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19720 (ppc_set_pc): Likewise.
19721 (ppc_arch_setup): New function.
19722 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19723 of collect_register.
889bf7c5 19724 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 19725
5b0a002e
UW
197262008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19727
19728 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19729 instead of linux-ppc64-low.o.
19730 * linux-ppc64-low.c: Remove file.
19731 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19732 (linux-ppc64-low.o): Remove rule.
19733
19734 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19735 (init_registers_powerpc_64): Likewise.
19736 (ppc_regmap): Conditionally define depending on __powerpc64__.
19737 (ppc_cannot_store_register): Do not special-case "fpscr" when
19738 compiled on __powerpc64__.
19739 (ppc_collect_ptrace_register): New function.
19740 (ppc_supply_ptrace_register): New function.
19741 (ppc_breakpoint): Change type to "unsigned int".
19742 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19743 (the_low_target): Conditionally provide initializers for the
889bf7c5 19744 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
19745 collect_ptrace_register and supply_ptrace_register members.
19746
9b4b61c8
UW
197472008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19748
19749 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19750 * server.c (gdbserver_xmltarget): Define.
19751 (get_features_xml): Use it to replace "target.xml" and arch_string.
19752
19753 * configure.srv: Remove srv_xmltarget. Add XML files that were
19754 mentioned there to srv_xmlfiles instead. Remove conditional tests
19755 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19756 srv_xmlfiles and srv_regobj to include all possible choices.
19757 * configure.ac (srv_xmltarget): Remove.
19758 (srv_xmlfiles): Do not add "target.xml".
19759 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19760 checks for supplementary target information.
19761 * configure: Regenerate.
19762 * Makefile.in (XML_TARGET): Remove.
19763 (target.xml): Remove rule.
19764 (clean): Do not clean up target.xml.
19765 (.PRECIOUS): Do not mention target.xml.
19766
19767 * target.h (struct target_ops): Remove arch_string member.
19768 * linux-low.c (linux_arch_string): Remove.
19769 (linux_target_ops): Remove arch_string initializer.
19770 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19771 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19772 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19773 * spu-low.c (spu_arch_string): Remove.
19774 (spu_target_ops): Remove arch_string initializer.
19775 * win32-low.c (win32_arch_string): Remove.
19776 (win32_target_ops): Remove arch_string initializer.
19777 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19778 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19779 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19780
ee1a7ae4
UW
197812008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19782
19783 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19784 by collect_ptrace_register and supply_ptrace_register hooks.
19785 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19786 instead of checking for the_low_target.left_pad_xfer.
19787 (usr_store_inferior_registers): Use collect_ptrace_register callback
19788 instead of checking for the_low_target.left_pad_xfer.
19789
19790 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19791 (s390_supply_ptrace_register): Likewise.
19792 (s390_fill_gregset): Call s390_collect_ptrace_register.
19793 (the_low_target): Update.
19794
19795 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19796 (ppc_supply_ptrace_register): Likewise.
19797 (the_low_target): Update.
19798
19799 * linux-i386-low.c (the_low_target): Update.
19800 * linux-x86-64-low.c (the_low_target): Update.
19801
d61ddec4
UW
198022008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19803
19804 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19805 reg-s390.o and reg-s390x.o.
19806
19807 * linux-low.c (new_inferior): New global variable.
19808 (linux_create_inferior, linux_attach): Set it.
19809 (linux_wait_for_process): Call the_low_target.arch_setup after the
19810 target has stopped for the first time.
19811 (initialize_low): Do not call the_low_target.arch_setup.
19812
19813 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19814 (s390_set_pc): Likewise.
19815 (s390_arch_setup): New function.
19816 (the_low_target): Use s390_arch_setup as arch_setup routine.
19817
19818 * regcache.c (realloc_register_cache): New function.
19819 (set_register_cache): Call it for each existing regcache.
19820
d05b4ac3
UW
198212008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19822
19823 * server.h (init_registers): Remove prototype.
19824
19825 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19826 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19827 instead of init_registers ().
19828 * linux-arm-low.c (init_registers_arm): Add prototype.
19829 (init_registers_arm_with_iwmmxt): Likewise.
19830 (the_low_target): Add initializer for arch_setup field.
19831 * linux-cris-low.c (init_registers_cris): Add prototype.
19832 (the_low_target): Add initializer for arch_setup field.
19833 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19834 (the_low_target): Add initializer for arch_setup field.
19835 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19836 (the_low_target): Add initializer for arch_setup field.
19837 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19838 (the_low_target): Add initializer for arch_setup field.
19839 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19840 (the_low_target): Add initializer for arch_setup field.
19841 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19842 (the_low_target): Add initializer for arch_setup field.
19843 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19844 (init_registers_mips64_linux): Likewise.
19845 (the_low_target): Add initializer for arch_setup field.
19846 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19847 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19848 (the_low_target): Add initializer for arch_setup field.
19849 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19850 (init_registers_powerpc_64): Likewise.
19851 (the_low_target): Add initializer for arch_setup field.
19852 * linux-s390-low.c (init_registers_s390): Add prototype.
19853 (init_registers_s390x): Likewise.
19854 (the_low_target): Add initializer for arch_setup field.
19855 * linux-sh-low.c (init_registers_sh): Add prototype.
19856 (the_low_target): Add initializer for arch_setup field.
19857 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19858 (the_low_target): Add initializer for arch_setup field.
19859 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19860 (the_low_target): Add initializer for arch_setup field.
19861
19862 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19863 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19864 instead of init_registers ().
19865 * win32-arm-low.c (init_registers_arm): Add prototype.
19866 (the_low_target): Add initializer for arch_setup field.
19867 * win32-i386-low.c (init_registers_i386): Add prototype.
19868 (the_low_target): Add initializer for arch_setup field.
19869
19870 * spu-low.c (init_registers_spu): Add prototype.
19871 (initialize_low): Call initialie_registers_spu () instead of
19872 initialize_registers ().
19873
fd96d250
PA
198742008-02-19 Pedro Alves <pedro@codesourcery.com>
19875
19876 * server.c (handle_v_requests): When handling the vRun and vAttach
19877 packets, if already debugging a process, don't kill it. Return an
19878 error instead.
19879
d41b6bb4
DJ
198802008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19881
19882 * server.c (handle_query): Correct length check.
19883
5ac588cf
PA
198842008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19885
19886 * win32-low.c (do_initial_child_stuff): Add process handle
19887 parameter. Set current_process_handle and current_process_id from the
19888 parameters. Clear globals.
19889 (win32_create_inferior): Don't set current_process_handle and
19890 current_process_id here. Instead pass them on the call to
19891 do_initial_child_stuff.
19892 (win32_attach): Likewise.
19893 (win32_clear_inferiors): New.
19894 (win32_kill): Don't close the current process handle or the
19895 current thread handle here. Instead call win32_clear_inferiors.
19896 (win32_detach): Don't open a new handle to the process. Call
19897 win32_clear_inferiors.
19898 (win32_join): Don't rely on current_process_handle; open a new
19899 handle using the process id.
19900 (win32_wait): Call win32_clear_inferiors when the inferior process
19901 has exited.
19902
ecd7ecbc
DJ
199032008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19904
19905 * server.c (monitor_show_help): Add "exit".
19906
1525d545
MG
199072008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19908
ecd7ecbc 19909 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
19910 (clean): Add reg-xtensa.c.
19911 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
19912 * configure.srv (xtensa*-*-linux*) New target.
19913 * linux-xtensa-low.c: New.
19914 * xtensa-xtregs.c: New.
1525d545 19915
59a016f0
PA
199162008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19917
19918 * hostio.c: Don't include errno.h.
19919 (errno_to_fileio_errno): Move to hostio-errno.
19920 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19921 error number outputting to the target->hostio_last_error callback.
19922 (hostio_packet_error): Use FILEIO_EINVAL directly.
19923 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19924 calls to hostio_error.
19925 * hostio-errno.c: New.
19926 * server.h (hostio_last_error_from_errno): Declare.
19927 * target.h (target_ops): Add hostio_last_error member.
19928 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19929 as hostio_last_error handler.
889bf7c5 19930 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
19931 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19932 (wince_hostio_last_error): New functions.
19933 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19934 as hostio_last_error handler.
19935 (win32_target_ops) [!_WIN32_WCE]: Register
19936 hostio_last_error_from_errno as hostio_last_error handler.
19937 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19938 (hostio-errno.o): New rule.
19939 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19940 * configure.srv (srv_hostio_err_objs): New variable. Default to
19941 hostio-errno.o.
19942 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19943 * configure: Regenerate.
19944
2d717e4f
DJ
199452008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19946
19947 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
19948 (linux_kill, linux_detach): Clean up the process list.
19949 * remote-utils.c (remote_open): Improve port number parsing.
19950 (putpkt_binary, input_interrupt): Only send interrupts if the target
19951 is running.
19952 * server.c (extended_protocol): Make static.
19953 (attached): Define earlier.
19954 (exit_requested, response_needed, program_argv): New variables.
19955 (target_running): New.
19956 (start_inferior): Clear attached here.
19957 (attach_inferior): Set attached here.
19958 (require_running): Define.
19959 (handle_query): Use require_running and target_running. Implement
19960 "monitor exit".
19961 (handle_v_attach, handle_v_run): New.
19962 (handle_v_requests): Use require_running. Handle vAttach and vRun.
19963 (gdbserver_usage): Update.
19964 (main): Redo argument parsing. Handle --debug and --multi. Handle
19965 --attach along with other options or after the port. Save
19966 program_argv. Support no initial program. Resynchronize
19967 communication with GDB after an error. Handle "monitor exit".
19968 Use require_running and target_running. Always allow the extended
19969 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
19970 restart in extended mode.
19971 * README: Refer to the GDB manual. Update --attach usage.
19972
7407e2de
AS
199732007-12-20 Andreas Schwab <schwab@suse.de>
19974
19975 * linux-low.c (STACK_SIZE): Define.
19976 (linux_tracefork_child): Use it. Use __clone2 on ia64.
19977 (linux_test_for_tracefork): Likewise.
19978
b65d95c5
DJ
199792007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
19980
19981 * linux-low.c (linux_wait_for_event): Update messages. Do not
19982 reinsert auto-delete breakpoints.
19983 * mem-break.c (struct breakpoint): Change return type of handler to
19984 int.
19985 (set_breakpoint_at): Update handler type.
19986 (reinsert_breakpoint_handler): Return 1 instead of calling
19987 delete_breakpoint.
19988 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
19989 setting a new one.
19990 (check_breakpoints): Delete auto-delete breakpoints and return 2.
19991 * mem-break.h (set_breakpoint_at): Update handler type.
19992 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
19993 * win32-low.c (auto_delete_breakpoint): New.
19994 (get_child_debug_event): Use it.
19995
4e799345
DJ
199962007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
19997
19998 * configure.ac: Check for pread and pwrite.
19999 * hostio.c (handle_pread): Fall back to lseek and read.
20000 (handle_pwrite): Fall back to lseek and write.
20001 * config.in, configure: Regenerated.
20002
27524b67
DJ
200032007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20004
20005 * server.c (myresume): Add own_buf argument.
20006 (main): Update calls.
20007
a20d5e98
DJ
200082007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20009
20010 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20011 * remote-utils.c (remote_open): Do not call disable_async_io.
20012 (block_async_io): Delete.
20013 (unblock_async_io): Make static.
20014 (initialize_async_io): New.
20015 * server.c (handle_v_cont): Handle async I/O here.
20016 (myresume): Likewise. Move other common resume tasks here...
20017 (main): ... from here. Call initialize_async_io. Disable async
20018 I/O before the main loop.
20019 * server.h (initialize_async_io): Declare.
20020 (block_async_io, unblock_async_io): Delete prototypes.
20021 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20022
b79d787e
DJ
200232007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20024
20025 * remote-utils.c (readchar): Allow binary data in received messages.
20026
d97903b2
PA
200272007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20028
20029 * win32-low.c (attaching): New global.
20030 (win32_create_inferior): Clear the `attaching' global.
20031 (win32_attach): Set the `attaching' global.
20032 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20033 attaching. Only set a breakpoint at the entry point if not
20034 attaching.
20035
311de423
PA
200362007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20037
20038 * server.c (main): Don't report dll events on the initial
20039 connection on attaches.
20040
6c2d16d2
PA
200412007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20042
20043 * server.c (main): Relax numerical bases supported for the pid of
20044 the --attach command line argument.
20045
5ca906e6
PA
200462007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20047
20048 * win32-low.c (win32_attach): Call OpenProcess before
20049 DebugActiveProcess, not after. Add last error output to error
20050 call.
20051
9c6c8194
PA
200522007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20053
20054 * win32-low.c (win32_get_thread_context)
20055 (win32_set_thread_context): New functions.
20056 (thread_rec): Use win32_get_thread_context.
20057 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20058 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20059 field.
20060
4d5d1aaa
PA
200612007-12-03 Leo Zayas
20062 Pedro Alves <pedro_alves@portugalmail.pt>
20063
20064 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20065 global variables.
20066 (child_add_thread): Minor cleanup.
20067 (child_continue): Resume artificially suspended threads before
20068 calling ContinueDebugEvent.
20069 (suspend_one_thread): New.
20070 (fake_breakpoint_event): New.
20071 (get_child_debug_event): Change return type to int. Check here if
20072 gdb sent an interrupt request. If a soft interrupt was requested,
20073 fake a breakpoint event. Return 0 if there is no event to handle,
20074 and 1 otherwise.
20075 (win32_wait): Don't check here if gdb sent an interrupt request.
20076 Ensure there is a valid event to handle.
20077 (win32_request_interrupt): Add soft interruption method as last
20078 resort.
20079
c436e841
PA
200802007-12-03 Leo Zayas
20081 Pedro Alves <pedro_alves@portugalmail.pt>
20082
20083 * win32-low.h (win32_thread_info): Add descriptions to the
20084 structure members. Replace `suspend_count' counter by a
20085 `suspended' flag.
20086 * win32-low.c (thread_rec): Update condition of when to get the
20087 context from the inferior. Rely on ContextFlags being set if it
20088 has already been retrieved. Only suspend the inferior thread if
20089 we haven't already. Warn if that fails.
20090 (continue_one_thread): s/suspend_count/suspended/. Only call
20091 ResumeThread once. Warn if that fails.
20092
e7b5fa67
PA
200932007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20094
20095 * win32-low.c (win32_wait): Don't read from the inferior when it
20096 has already exited.
20097
a385171d
PA
200982007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20099
20100 * Makefile.in (win32_low_h): New variable.
20101 (win32-low.o): Add dependency on $(win32_low_h).
20102 (win32-arm-low.o, win32-i386-low.o): New rules.
20103
f80c84b3
DJ
201042007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20105
20106 * hostio.c: Correct copyright year.
20107
a6b151f1
DJ
201082007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20109
20110 * Makefile.in (OBS): Add hostio.o.
20111 (hostio.o): New rule.
20112 * server.h (handle_vFile): Declare.
20113 * hostio.c: New file.
20114 * server.c (handle_v_requests): Take packet_len and new_packet_len
20115 for binary packets. Call handle_vFile.
20116 (main): Update call to handle_v_requests.
20117
f9387fc3
DJ
201182007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20119
20120 * linux-low.c: Include <sched.h>.
20121
51c2684e
DJ
201222007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20123
20124 * linux-low.c (linux_tracefork_grandchild): New.
20125 (linux_tracefork_child): Use clone.
20126 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20127
75f83163
JB
201282007-10-31 Joel Brobecker <brobecker@adacore.com>
20129
20130 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20131
da5898ce
DJ
201322007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20133
20134 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20135
24a09b5f
DJ
201362007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20137
20138 * inferiors.c (change_inferior_id): Delete.
20139 (add_pid_to_list, pull_pid_from_list): New.
20140 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20141 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20142 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20143 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20144 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20145 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20146 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20147 (using_threads): Always set to 1.
20148 (handle_extended_wait): New.
20149 (add_process): Do not set TID.
20150 (linux_create_inferior): Set must_set_ptrace_flags.
20151 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20152 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20153 (linux_thread_alive): Rename TID argument to LWPID.
20154 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20155 (linux_wait_for_event): Do not use TID or check using_threads. Update
20156 call to dead_thread_notify. Call handle_extended_wait.
20157 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20158 (send_sigstop): Delete sigstop_sent.
20159 (wait_for_sigstop): Avoid TID.
20160 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20161 (linux_test_for_tracefork): New.
20162 (linux_lookup_signals): Use thread_db_active and
20163 linux_supports_tracefork_flag.
20164 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20165 * linux-low.h (get_process_thread): Avoid TID.
20166 (struct process_ifo): Move thread_known and tid to the end. Remove
20167 sigstop_sent.
20168 (linux_attach_lwp, thread_db_init): Update prototypes.
20169 * server.h (change_inferior_id): Delete prototype.
20170 (add_pid_to_list, pull_pid_from_list): New prototypes.
20171 * thread-db.c (thread_db_use_events): New.
20172 (find_first_thread): Rename to...
20173 (find_one_thread): ...this. Update callers and messages. Do not
20174 call fatal. Check thread_db_use_events. Do not call
20175 change_inferior_id or new_thread_notify.
20176 (maybe_attach_thread): Update. Do not call new_thread_notify.
20177 (thread_db_init): Set thread_db_use_events. Check use_events.
20178 * utils.c (fatal, warning): Correct message prefix.
20179
30ed0a8f
DJ
201802007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20181
20182 * Makefile.in (clean): Remove new files.
20183 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20184 (powerpc-64.o, powerpc-64.c): New rules.
20185 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20186 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20187 with SPE.
20188 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20189 SPE targets.
20190 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20191 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20192 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20193 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20194 (target_regsets): Add AltiVec and SPE register sets.
20195 * configure.ac: Check for AltiVec and SPE.
20196 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20197 (ppc_fill_vrregset, ppc_store_vrregset): New.
20198 (target_regsets): Add AltiVec register set.
20199 * configure: Regenerated.
20200
fd462a61
DJ
202012007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20202
20203 * linux-low.c (O_LARGEFILE): Define.
20204 (linux_read_memory): Use /proc/PID/mem.
20205 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20206 * configure, config.in: Regenerated.
20207
69f223ed
DJ
202082007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20209
20210 * linux-low.c (linux_wait_for_event): Do not pass signals while
20211 single-stepping.
20212
aec18585
PA
202132007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20214
20215 * win32-low.c (create_process): New.
20216 (win32_create_inferior): Use create_process instead of
20217 CreateProcess. If create_process failed retry appending an ".exe"
20218 suffix. Store the GetLastError result immediatelly after
20219 create_process calls and use it on the call to error.
20220
34d86ddd
PA
202212007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20222
20223 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20224
5a0e3bd0
JB
202252007-08-23 Joel Brobecker <brobecker@adacore.com>
20226
20227 * configure.ac: Switch license to GPLv3.
20228
f88c79e6
MS
202292007-08-01 Michael Snyder <msnyder@access-company.com>
20230
20231 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20232
6b3d9b83
PA
202332007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20234
20235 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20236 typedef.
20237 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20238 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20239 CloseToolhelp32Snapshot.
20240 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20241 CloseToolhelp32Snapshot.
20242
c588c53c
MS
202432007-07-27 Michael Snyder <michael.snyder@access-company.com>
20244
20245 * server.c (main): Check for inferior exit before main loop.
20246
aa0403d9
PA
202472007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20248
20249 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20250 instead of on tmp_desc.
20251
255e7678
DJ
202522007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20253 Daniel Jacobowitz <dan@codesourcery.com>
20254
20255 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20256 (add_thread): Minor cleanups.
20257 (clear_inferiors): Move lower in the file. Clear the DLL
20258 list.
20259 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20260 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20261 (xml_escape_text): New.
20262 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20263 for qSupported.
20264 (handle_v_cont): Report errors.
20265 (gdbserver_version): Update.
20266 (main): Correct size of own_buf. Do not report initial DLL events.
20267 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20268 (unloaded_dll, xml_escape_text): New.
20269 * win32-low.c (enum target_waitkind): Update comments.
20270 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20271 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20272 (win32_EnumProcessModules, win32_GetModuleInformation)
20273 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20274 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20275 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20276 (win32_Module32First, win32_Module32Next, load_toolhelp)
20277 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20278 (get_child_debug_event): Handle DLL events.
20279 (win32_wait): Likewise.
20280
0d37add9
DJ
202812007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20282
20283 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20284 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20285
45e2715e
PA
202862007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20287
20288 * win32-low.c (handle_output_debug_string): Ignore event if not
20289 waiting.
20290
c5674cf1
PA
202912007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20292
20293 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20294
2bbe3cc1
DJ
202952007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20296
20297 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20298
ae13219e
DJ
202992007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20300
20301 * inferiors.c (change_inferior_id): Add comment.
20302 * linux-low.c (check_removed_breakpoint): Add an early
20303 prototype. Improve debug output.
20304 (linux_attach): Doc update.
20305 (linux_detach_one_process, linux_detach): Clean up before releasing
20306 each process.
20307 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20308 * linux-low.h (struct process_info): Doc improvement.
20309 * mem-break.c (delete_all_breakpoints): New.
20310 * mem-break.h (delete_all_breakpoints): New prototype.
20311 * thread-db.c (find_first_thread): New.
20312 (thread_db_create_event): Call it instead of
20313 thread_db_find_new_threads. Clean up unused variables.
20314 (maybe_attach_thread): Remove first thread handling.
20315 (thread_db_find_new_threads): Use find_first_thread.
20316 (thread_db_get_tls_address): Likewise.
20317
4105de34
DJ
203182007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20319
20320 * thread-db.c (thread_db_find_new_threads): Add prototype.
20321 (thread_db_create_event): Check for the main thread before adding
20322 a new thread.
20323 (maybe_attach_thread): Only enable event reporting if TID == 0.
20324 (thread_db_get_tls_address): Check for new threads.
20325
2b876972
DJ
203262007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20327
20328 * linux-low.c (linux_create_inferior): Try execv before execvp.
20329 * spu-low.c (spu_create_inferior): Likewise.
20330
7a245884
DJ
203312007-06-13 Mike Frysinger <vapier@gentoo.org>
20332
20333 * linux-low.c (linux_create_inferior): Change execv to execvp.
20334 * spu-low.c (spu_create_inferior): Likewies.
20335
117ce543
DJ
203362007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20337
20338 * Makefile.in (clean): Clean new files instead of deleted ones.
20339 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20340 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20341 rules.
20342 * configure.srv: Specify XML files and new regformats for MIPS and
20343 MIPS64 GNU/Linux.
20344 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20345 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20346 an entry for the restart register.
20347 (mips_cannot_fetch_register, mips_cannot_store_register)
20348 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20349 register names to match the XML descriptions.
20350 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20351 restart register instead of $0.
20352
0e7f50da
UW
203532007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20354 Markus Deuling <deuling@de.ibm.com>
20355
20356 * remote-utils.c (decode_xfer_write): New function.
20357 * server.h (decode_xfer_write): Add prototype.
20358 * server.c (handle_query): Add PACKET_LEN argument. Support
20359 qXfer:spu:read and qXfer:spu:write packets.
20360 (main): Pass packet_len to handle_query.
20361 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20362 * target.h (target_ops): Add qxfer_spu.
20363
374c1d38
UW
203642007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20365
20366 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20367 accessing non-seekable spufs files.
20368
bb63802a
UW
203692007-05-16 Markus Deuling <deuling@de.ibm.com>
20370
889bf7c5 20371 * server.c (handle_query): Add reply for qC packet.
bb63802a 20372
7390519e
PA
203732007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20374 Leo Zayas <lerele@champenstudios@com>
20375
20376 * server.h (check_remote_input_interrupt_request): New function.
20377 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20378 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20379 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20380 (check_remote_input_interrupt_request): New function.
20381 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20382 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20383 winapi_GenerateConsoleCtrlEvent): New typedefs.
20384 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20385 to 250 ms.
20386 (win32_wait): Check for remote interrupt request
20387 with check_remote_input_interrupt_request.
20388 (win32_request_interrupt): New function.
20389 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20390
34b34921
PA
203912007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20392
20393 * win32-low.c (debug_registers_changed,
20394 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20395 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20396 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20397 (thread_rec): Get context using the low target.
20398 (child_add_thread): Call thread_added on the low target,
20399 which does the same thing.
20400 (regptr): Delete.
20401 (do_initial_child_stuff): Remove debug registers references.
20402 Set context using the low target. Resume threads after
20403 setting the contexts.
20404 (child_continue): Remove dead variable. Remove debug
20405 registers references.
20406 (child_fetch_inferior_registers): Go through the low target.
20407 (do_child_store_inferior_registers): Remove.
20408 (child_store_inferior_registers): Go through the low target.
20409 (win32_resume): Remove debug registers references.
20410 Set context using the low target.
20411 (handle_exception): Change return type to void. Don't record
20412 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20413 first chance exception.
889bf7c5 20414 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20415 goto loop. Always return after waiting for debug event.
20416 (win32_wait): Convert to switch statement. Handle spurious
20417 events.
20418
20419 * win32-i386-low.c (debug_registers_changed,
20420 debug_registers_used): New.
20421 (initial_stuff): Rename to ...
20422 (i386_initial_stuff): ... this. Clear debug registers
20423 state variables.
20424 (store_debug_registers): Delete.
20425 (i386_get_thread_context): New.
20426 (load_debug_registers): Delete.
20427 (i386_set_thread_context): New.
20428 (i386_thread_added): New.
20429 (single_step): Rename to ...
20430 (i386_single_step): ... this.
20431 (do_fetch_inferior_registers): Rename to ...
20432 (i386_fetch_inferior_register): ... this.
20433 (i386_store_inferior_register): New.
20434 (the_low_target): Adapt to new interface.
20435
20436 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20437 (arm_get_thread_context): New.
20438 (arm_set_thread_context): New.
20439 (regptr): New.
20440 (do_fetch_inferior_registers): Rename to ...
20441 (arm_fetch_inferior_register): ... this.
20442 (arm_store_inferior_register): New.
20443 (arm_wince_breakpoint): Reimplement as unsigned long.
20444 (arm_wince_breakpoint_len): Define.
20445 (the_low_target): Adapt to new interface.
20446
20447 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20448 load_debug_registers. Add get_thread_context, set_thread_context,
20449 thread_added and store_inferior_register. Rename
20450 fetch_inferior_registers to fetch_inferior_register.
20451 (regptr): Remove declaration.
20452
dd6953e1
PA
204532007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20454
20455 * linux-low.c (linux_detach): Change return type to int. Return 0.
20456 * spu-low.c (spu_detach): Likewise.
20457
444d6139
PA
204582007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20459
20460 * target.h (target_ops): Change return type of detach to int.
20461 Add join.
20462 (join_inferior): New.
20463 * server.c (main): Don't skip detach support on mingw32.
20464 If the inferior doesn't support detaching return error.
20465 Call join_inferior instead of using waitpid.
20466 * linux-low.c (linux_join): New.
20467 (linux_target_op): Add linux_join.
20468 * spu-low.c (spu_join): New.
20469 (spu_target_ops): Add spu_join.
20470 * win32-low.c (win32_detach): Adapt to new interface.
20471 Reopen current_process_handle before detaching. Issue a child
20472 resume before detaching.
20473 (win32_join): New.
20474 (win32_target_op): Add win32_join.
20475
1d5315fe
PA
204762007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20477
20478 * win32-low.c (win32-attach): Fix return value.
20479 * target.h (target_ops): Describe ATTACH return values.
20480
bf914831
PA
204812007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20482
20483 * win32-low.c (GETPROCADDRESS): Define.
20484 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20485 (winapi_DebugSetProcessKillOnExit): Likewise.
20486 (win32_create_inferior): Force usage of ansi CreateProcessA.
20487 (win32_attach): Use GETPROCADDRESS.
20488 (win32_detach): Likewise.
20489
f72f3e60
PA
204902007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20491
20492 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20493
ed50f18f
PA
204942007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20495
20496 * win32-low.c: Commit leftover changes from 2007-03-29.
20497
0c2ead7e
DJ
204982007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20499
20500 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20501 fields short instead of int. Add explicit padding.
20502 (i387_cache_to_fsave): Remove unnecessary casts.
20503 (i387_fsave_to_cache): Doc fix.
20504 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20505
73725ff3
DJ
205062007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20507
20508 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20509 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20510
d99f33d8
PA
205112007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20512
20513 * configure.srv (arm*-*-mingw32ce*): Move near the other
20514 arm targets.
20515
68070c10
PA
205162007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20517
2482afc6 20518 * configure.ac: Add errno checking.
68070c10
PA
20519 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20520 sys/file.h and malloc.h.
20521 (AC_CHECK_DECLS): Add perror.
20522 (srv_mingwce): Handle.
2482afc6 20523 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20524 win32-i386-low.o to srv_tgtobj.
20525 (i[34567]86-*-mingw*): Likewise.
20526 (arm*-*-mingw32ce*): Add case.
20527 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20528 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20529 [__MINGW32CE__] (strerror): New function.
20530 [__MINGW32CE__] (errno): Define to GetLastError.
20531 [__MINGW32CE__] (COUNTOF): New macro.
20532 (remote_open): Remove extra close call.
20533 * mem-break.c (delete_breakpoint_at): New function.
20534 * mem-break.h (delete_breakpoint_at): Declare.
20535 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20536 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20537 [USE_WIN32API] (read, write): Add char* casts.
20538 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20539 * server.h: Include wincecompat.h on Windows CE.
20540 [HAVE_ERRNO_H]: Check.
20541 (perror): Declare if not declared.
20542 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20543 (perror_with_name): Remove errno declaration.
20544 * wincecompat.h: New.
20545 * wincecompat.c: New.
20546 * win32-low.h: New.
20547 * win32-arm-low.c: New.
20548 * win32-i386-low.c: New.
20549 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20550 (OUTMSG2): Make it safe.
20551 (_T): New macro.
20552 (COUNTOF): New macro.
20553 (NUM_REGS): Get it from the low target.
20554 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20555 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20556 (thread_rec): Let low target handle debug registers.
20557 (child_add_thread): Likewise.
20558 (child_init_thread_list): Likewise.
20559 (continue_one_thread): Likewise.
20560 (regptr): New.
20561 (do_child_fetch_inferior_registers): Move to ...
20562 * win32-i386-low.c: ... here, and rename to ...
20563 (do_fetch_inferior_registers): ... this.
889bf7c5 20564 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20565 Go through the low target.
20566 (do_child_store_inferior_registers): Use regptr.
20567 (strwinerror): New function.
20568 (win32_create_inferior): Handle Windows CE.
20569 Use strwinerror instead of strerror on Windows error
20570 codes. Add program to the error output.
20571 Don't close the main thread handle on Windows CE.
20572 (win32_attach): Use coredll.dll on Windows CE.
20573 (win32_kill): Close current process and current
20574 thread handles.
20575 (win32_detach): Use coredll.dll on Windows CE.
20576 (win32_resume): Let low target handle debug registers, and
20577 step request.
20578 (handle_exception): Add/Remove initial breakpoint. Avoid
20579 non-existant WSTOPSIG on Windows CE.
20580 (win32_read_inferior_memory): Cast to remove warning.
20581 (win32_arch_string): Go through the low target.
20582 (initialize_low): Call set_breakpoint_data with the low
20583 target's breakpoint.
20584 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20585 FOP_REGNUM, mappings): Move to ...
20586 * win32-i386-low.c: ... here.
20587 * win32-low.c (win32_thread_info): Move to ...
20588 * win32-low.h: ... here.
20589 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20590 win32-arm-low.c and wincecompat.c.
20591 (all:): Add $EXEEXT.
20592 (install-only:): Likewise.
20593 (gdbserver:): Likewise.
20594 (gdbreplay:): Likewise.
20595 * config.in: Regenerate.
20596 * configure: Regenerate.
20597
41093d81
PA
205982007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20599
20600 * win32-low.c: Rename typedef thread_info to
20601 win32_thread_info throughout.
20602
544afa54
PA
206032007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20604
20605 * win32-i386-low.c: Rename to ...
20606 * win32-low.c: ... this.
20607 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20608 * Makefile.in: Likewise.
20609
bce7165d
PA
206102007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20611
20612 * remote-utils.c (monitor_output): Constify msg parameter.
20613 * server.h (monitor_output): Likewise.
20614 * win32-i386-low.c (handle_output_debug_string): New.
20615 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20616 handle_output_debug_string.
20617 (get_child_debug_event): Likewise.
20618
506c7aa0
DJ
206192007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20620
20621 * server.c (main): Correct strtoul check.
20622
42c81e2a
DJ
206232007-03-27 Jon Ringle <jon@ringle.org>
20624
20625 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20626
9453113a
DJ
206272007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20628
20629 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20630
64a69107
DJ
206312007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20632
20633 * terminal.h: Check HAVE_SGTTY_H.
20634
206352007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20636
20637 * remote-utils.c (remote_open): Print out the assigned port number.
20638
c74d0ad8
DJ
206392007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20640
20641 * remote-utils.c (monitor_output): New function.
20642 * server.c (debug_threads): Define here.
20643 (monitor_show_help): New function.
20644 (handle_query): Handle qRcmd.
20645 (main): Do not handle 'd' packet.
20646 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20647 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20648 of debug_threads.
20649
de7c3b4a
PA
206502007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20651
20652 * Makefile.in (EXEEXT): New.
20653 (clean): Use $(EXEEXT).
20654
ef57601b
PA
206552007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20656
20657 * target.h (target_ops): Rename send_signal to request_interrupt,
20658 and remove enum target_signal parameter.
20659 * linux-low.c (linux_request_interrupt): Rename from
20660 linux_send_signal, and always send SIGINT.
20661 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20662 and always send SIGINT.
20663 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20664 of send_signal.
20665 (input_interrupt): Likewise.
20666
820f2bda
PA
206672007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20668
20669 * server.c (get_features_xml): Check if target implemented
20670 arch_string.
20671 * win32-i386-low.c (win32_arch_string): New.
20672 (win32_target_ops): Add win32_arch_string as arch_string member.
20673
ab39bf24
UW
206742007-02-22 Markus Deuling <deuling@de.ibm.com>
20675
20676 * spu-low.c (spu_arch_string): New.
20677 (spu_target_ops): Add spu_arch_string.
20678
61ff6e04
DJ
206792007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20680
20681 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20682 * configure.ac: Do not check for terminal.h.
20683 * configure, config.in: Regenerated.
20684
fb1e4ffc
DJ
206852007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20686
20687 * Makefile.in (OBS): Add $(XML_BUILTIN).
20688 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20689 (clean): Update.
20690 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20691 (arm-with-iwmmxt.c): New.
20692 * config.in, configure: Regenerate.
20693 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20694 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20695 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20696 (arm*-*-linux*): Add iWMMXt and regset support.
20697 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20698 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20699 (arm_store_wmmxregset, target_regsets): New.
20700 * server.c (get_features_xml): Take annex argument. Check builtin
20701 XML documents.
20702 (handle_query): Handle multiple annexes.
20703
0f48aa01
DJ
207042007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20705
20706 * remote-utils.c [USE_WIN32API] (read, write): Define.
20707 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20708 write.
20709
23181151
DJ
207102007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20711
20712 * linux-i386-low.c (the_low_target): Set arch_string.
20713 * linux-x86-64-low.c (the_low_target): Likewise.
20714 * linux-low.c (linux_arch_string): New.
20715 (linux_target_ops): Add it.
20716 * linux-low.h (struct linux_target_ops): Add arch_string.
20717 * server.c (write_qxfer_response): Use const void * for DATA.
20718 (get_features_xml): New.
20719 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20720 * target.h (struct target_ops): Add arch_string method.
20721
9d606399
DJ
207222007-01-03 Denis Pilat <denis.pilat@st.com>
20723 Daniel Jacobowitz <dan@codesourcery.com>
20724
20725 * linux-low.c (linux_kill): Handle being called with no threads.
20726 * win32-i386-low.c (win32_kill): Likewise.
20727 (get_child_debug_event): Clear current_process_handle.
20728
207292006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
20730 Daniel Jacobowitz <dan@codesourcery.com>
20731
20732 * remote-utils.c (remote_open): Check the type of specified
20733 serial port devices before opening them.
20734 * server.c (main): Kill the inferior if an error occurs during
20735 the first remote_open.
20736
a5e13d24
DJ
207372006-12-05 Markus Deuling <deuling@de.ibm.com>
20738
20739 * README: Update supported targets.
20740
186947f7
DJ
207412006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20742
20743 * Makefile.in (clean): Remove reg-mips64.c.
20744 (reg-mips64.c, reg-mips64.o): New rules.
20745 * configure.srv: Handle mips64. Include regset support for mips.
20746 * linux-mips-low.c (union mips_register): New.
20747 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20748 (mips_breakpoint, mips_breakpoint_at): Use int.
20749 (mips_collect_register, mips_supply_register)
20750 (mips_collect_register_32bit, mips_supply_register_32bit)
20751 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20752 (mips_store_fpregset, target_regsets): New.
20753 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20754
a13e2c95
UW
207552006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20756
20757 * configure.srv: Add target "spu*-*-*".
20758 * Makefile.in (clean): Remove reg-spu.c.
20759 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20760 * spu-low.c: New file.
20761
cb7283db
DJ
207622006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20763
20764 * configure.ac: Correct td_thr_tls_get_addr test.
20765 * configure: Regenerated.
20766
89be2091
DJ
207672006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20768
20769 * linux-low.c (linux_wait_for_event): Reformat. Use the
20770 pass_signals array.
20771 * remote-utils.c (decode_address_to_semicolon): New.
20772 * server.c (pass_signals, handle_general_set): New.
20773 (handle_query): Mention QPassSignals for qSupported.
20774 (main): Call handle_general_set.
20775 * server.h (pass_signals, decode_address_to_semicolon): New.
20776
000ef4f0
DJ
207772006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20778
20779 * server.c (handle_query): Correct error handling for read_auxv.
20780
b7149293
UW
207812005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20782
20783 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20784 and srv_linux_thread_db to yes.
20785 * linux-s390-low.c (s390_fill_gregset): New function.
20786 (target_regsets): Define data structure.
20787
dae5f5cf
DJ
207882006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20789
20790 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20791 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20792 * config.in, configure: Regenerated.
20793 * inferiors.c (gdb_id_to_thread): New function.
20794 (gdb_id_to_thread_id): Use it.
20795 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20796 * linux-low.h (struct process_info): Add th member.
20797 (thread_db_get_tls_address): New prototype.
20798 * remote-utils.c (decode_address): Make non-static.
20799 * server.c (handle_query): Handle qGetTLSAddr.
20800 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20801 * target.h (struct target_ops): Add get_tls_address.
20802 * thread-db.c (maybe_attach_thread): Save the thread handle.
20803 (thread_db_get_tls_address): New.
20804
32ca6d61
DJ
208052006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20806
20807 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20808 (linux_resume_one_process): Take a siginfo_t *. Update all
20809 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20810 (struct pending_signals): Add a siginfo_t.
20811 (linux_wait_for_process): Always set last_status.
20812 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20813 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20814 * linux-low.h (struct process_info): Add last_status.
20815
5ffff7c1
DJ
208162006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20817
20818 * remote-utils.c (try_rle): New function.
20819 (putpkt_binary): Use it.
20820
8695c747
DJ
208212006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20822
20823 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20824 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20825 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20826 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20827 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20828 point registers.
20829
290fadea
RS
208302006-08-08 Richard Sandiford <richard@codesourcery.com>
20831
20832 * server.c (terminal_fd): New variable.
20833 (old_foreground_pgrp): Likewise.
20834 (restore_old_foreground_pgrp): New function.
20835 (start_inferior): Record the terminal file descriptor in terminal_fd
20836 and its original foreground group in old_foreground_pgrp. Register
20837 restore_old_foreground_pgrp with atexit().
20838
9f2e1e63
DJ
208392006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20840
20841 * server.c (handle_query): Correct qPart to qXfer.
20842
b80864fb
DJ
208432006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20844
20845 * configure.ac: Check for more headers which are missing on
20846 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20847 * configure.srv: Add Cygwin and mingw32.
20848 * remote-utils.c: Don't include headers unconditionally which
20849 are missing on mingw32. Include <winsock.h> for mingw32.
20850 (remote_open): Adjust for mingw32 support. Flush
20851 standard error after writing to it.
20852 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20853 (unblock_async_io, enable_async_io, disable_async_io)
20854 (readchar, getpkt): Update for Winsock support.
20855 (prepare_resume_reply): Expect a protocol signal number.
20856 * server.c: Disable <sys/wait.h> on mingw32.
20857 (start_inferior): Adjust for mingw32 support. Flush
20858 standard error after writing to it.
20859 (attach_inferior): Likewise. Use protocol signal
20860 numbers.
20861 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20862 and names.
20863 * win32-i386-low.c: New file.
20864 * Makefile.in (XM_CLIBS): Set.
20865 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20866 (win32-i386-low.o): New dependency rule.
20867 * linux-low.c (linux_wait): Use target signal numbers.
20868 * target.h (struct target_ops): Doc fix.
20869 * server.h (target_signal_to_name): New prototype.
20870 * gdbreplay.c: Don't include headers unconditionally which
20871 are missing on mingw32. Include <winsock.h> for mingw32.
20872 (remote_close, remote_open): Adjust for Winsock support.
20873 * configure, config.in: Regenerated.
20874
0876f84a
DJ
208752006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20876
20877 * server.c (decode_xfer_read, write_qxfer_response): New.
20878 (handle_query): Take a packet length argument. Handle
20879 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20880 the qSupported response.
20881 (main): Update call to handle_query.
20882
01f9e8fa
DJ
208832006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20884
20885 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20886 (putpkt_binary): Renamed from putpkt and adjusted for binary
20887 data.
20888 (putpkt): New wrapper for putpkt_binary.
20889 (readchar): Don't mask off the high bit.
20890 (decode_X_packet): New function.
20891 * server.c (main): Call putpkt_binary if a handler sets the packet
20892 length. Save the length of the incoming packet. Handle 'X'.
20893 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20894
be2a5f71
DJ
208952006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20896
20897 * server.c (handle_query): Handle qSupported.
20898
ea025f5f
DJ
208992006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20900
20901 * remote-utils.c (all_symbols_looked_up): New variable.
20902 (look_up_one_symbol): Check it.
20903 * server.h (look_up_one_symbol): New declaration.
20904 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20905
9308fc88
DJ
209062006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20907
20908 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 20909 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
20910 (PTRACE_GET_THREAD_AREA): Define.
20911 (ps_get_thread_area): New function.
20912
52fb6437
NS
209132006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20914
20915 * configure.srv (m68k*-*-uclinux*): New target.
20916 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20917 (linux_resume_one_process): Remove extraneous cast.
20918 (linux_read_offsets): New.
20919 (linux_target_op): Add linux_read_offsets on mmuless systems.
20920 * server.c (handle_query): Add qOffsets logic.
20921 * target.h (struct target_ops): Add read_offsets.
20922
21b0f40c
DJ
209232006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20924
20925 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20926 (PTRACE_GET_THREAD_AREA): Define.
20927 (ps_get_thread_area): New function.
20928 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20929 (linux-x86-64-low.o): Update.
20930
0050a760
DJ
209312006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20932
20933 * configure.ac: Remove checks for prfpregset_t.
20934 * gdb_proc_service.h: New file.
20935 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20936 new "gdb_proc_service.h".
20937 * proc-service.c: Likewise.
20938 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20939 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20940 * Makefile.in (gdb_proc_service_h): Updated.
20941 * configure, config.in: Regenerated.
20942
b92a518e
DJ
209432006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20944
20945 * remote-utils.c (prepare_resume_reply): Move declaration
20946 of gdb_id_from_wait to the top of the block.
20947
545587ee
DJ
209482006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20949
20950 * linux-low.c (regsets_store_inferior_registers): Read the regset
20951 from the target before filling it.
20952
9db87ebd
DJ
209532006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20954
20955 * server.c (attach_inferior): Return SIGTRAP for a successful
20956 attach.
20957
dd24457d
DJ
209582006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
20959
20960 * Makefile.in (OBS): Add version.o.
20961 (STAGESTUFF): Delete.
20962 (version.o): Add dependencies.
20963 (version.c): Replace rule.
20964 (clean): Remove version.c.
20965 * server.c (gdbserver_version): New.
20966 (gdbserver_usage): Use printf.
20967 (main): Handle --version and --help.
20968 * server.h (version, host_name): Add declarations.
20969
6f0f660e
EZ
209702005-12-23 Eli Zaretskii <eliz@gnu.org>
20971
889bf7c5
PA
20972 * linux-arm-low.c:
20973 * linux-arm-low.c:
20974 * inferiors.c:
20975 * i387-fp.h:
20976 * i387-fp.c:
20977 * gdbreplay.c:
20978 * regcache.c:
20979 * proc-service.c:
20980 * mem-break.h:
20981 * mem-break.c:
20982 * linux-x86-64-low.c:
20983 * linux-sh-low.c:
20984 * linux-s390-low.c:
20985 * linux-ppc64-low.c:
20986 * linux-ppc-low.c:
20987 * linux-mips-low.c:
20988 * linux-m68k-low.c:
20989 * linux-m32r-low.c:
20990 * linux-low.h:
20991 * linux-low.c:
20992 * linux-ia64-low.c:
20993 * linux-i386-low.c:
20994 * linux-crisv32-low.c:
20995 * thread-db.c:
20996 * terminal.h:
20997 * target.h:
20998 * target.c:
20999 * server.h:
21000 * server.c:
21001 * remote-utils.c:
21002 * regcache.h:
21003 * utils.c:
21004 * Makefile.in:
21005 * configure.ac:
6f0f660e
EZ
21006 * gdbserver.1: Add (C) after Copyright. Update the FSF
21007 address.
21008
9d1fb177
DJ
210092005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21010
21011 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21012 (arm_breakpoint_at): Recognize both breakpoints.
21013 (the_low_target): Use the correct breakpoint instruction.
21014
011a70c2
DJ
210152005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21016
21017 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21018 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21019 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21020 (the_low_target): Update.
21021
7fb85e41
AS
210222005-10-25 Andreas Schwab <schwab@suse.de>
21023
21024 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21025
21026 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21027 (ia64_num_regs): Reduce to 462.
21028
3db0444b
DJ
210292005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21030
21031 * acinclude.m4: Correct quoting.
21032 * aclocal.m4: Regenerated.
21033
21034 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21035 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21036 (thread_db_init): Call thread_db_err_str.
21037 * configure.ac: Check for TD_VERSION.
21038 * config.in, configure: Regenerated.
21039
bee0189a
DJ
210402005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21041
21042 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21043
e9d25b98
DJ
210442005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21045
21046 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21047 is not available. Define HAVE_PTRACE_GETREGS if it is.
21048 * config.in, configure: Regenerated.
21049 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21050 * linux-i386-low.c, linux-m68k-low.c: Update to use
21051 HAVE_PTRACE_GETREGS.
21052 * linux-low.c (regsets_fetch_inferior_registers)
21053 (regsets_store_inferior_registers): Only return 0 if we processed
21054 GENERAL_REGS.
21055 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21056 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21057
a06660f7
DJ
210582005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21059
21060 * inferiors.c (struct thread_info): Add gdb_id.
21061 (add_thread): Add gdb_id argument.
21062 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21063 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21064 calls to add_thread.
21065 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21066 * server.c (handle_query): Use thread_to_gdb_id.
21067 (handle_v_cont, main): Use gdb_id_to_thread_id.
21068 * server.h (add_thread): Update prototype.
21069 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21070 prototypes.
21071
5a1f5858
DJ
210722005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21073
21074 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21075 left-padded registers.
21076 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21077 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21078
e122f1f5
SE
210792005-07-01 Steve Ellcey <sje@cup.hp.com>
21080
21081 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21082 * configure: Regenerate.
21083 * config.in: Regenerate.
21084 * server.h (NEED_DECLARATION_STRERROR):
21085 Replace with !HAVE_DECL_STRERROR.
21086
d592fa2f
DJ
210872005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21088
21089 * linux-low.c (linux_wait, linux_send_signal): Don't test
21090 an unsigned long variable for > 0 if it could be MAX_ULONG.
21091 * server.c (myresume): Likewise.
21092 * target.c (set_desired_inferior): Likewise.
21093
ccbd4912
MK
210942005-06-13 Mark Kettenis <kettenis@gnu.org>
21095
21096 * configure.ac: Simplify and improve check for socklen_t.
21097 * configure, config.in: Regenerate.
21098
f450004a
DJ
210992005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21100
21101 * acconfig.h: Remove.
21102 * configure.ac: Add a test for socklen_t. Use three-argument
21103 AC_DEFINE throughout.
21104 * config.in: Regenerated using autoheader 2.59.
21105 * configure: Regenerated.
21106
21107 * gdbreplay.c (socklen_t): Provide a default.
21108 (remote_open): Use socklen_t.
21109 * remote-utils.c (socklen_t): Provide a default.
21110 (remote_open): Use socklen_t.
21111 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21112 unsigned char.
21113
21114 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21115 char for buffers.
21116 * linux-low.c (linux_read_memory, linux_write_memory)
21117 (linux_read_auxv): Likewise.
21118 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21119 (check_mem_write): Likewise.
21120 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21121 Likewise.
21122 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21123 (registers_from_string, register_data): Likewise.
21124 * server.c (handle_query, main): Likewise.
21125 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21126 (decode_M_packet): Likewise.
21127 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21128 * target.h (struct target_ops): Update read_memory, write_memory,
21129 and read_auxv.
21130 (read_inferior_memory, write_inferior_memory): Update.
21131 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21132 to unsigned char *.
21133 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21134 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21135 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21136 linux-s390-low.c, linux-sh-low.c: Update for changes in
21137 read_inferior_memory and the_low_target->breakpoint.
21138
eee84df1
DJ
211392005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21140
21141 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21142 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21143 * configure.srv: Add powerpc64-*-linux*.
21144 * linux-ppc64-low.c: New file.
21145
45b134e5
OF
211462005-05-23 Orjan Friberg <orjanf@axis.com>
21147
21148 * linux-cris-low.c: New file with support for CRIS.
21149 * linux-crisv32-low.c: Ditto for CRISv32.
21150 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21151 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21152 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21153 reg-crisv32.o, and reg-crisv32.c to make rules.
21154 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21155 recognized targets.
21156
48d93c75
UW
211572005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21158
21159 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21160 of sizeof (PTRACE_XFER_TYPE).
21161 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21162
e013ee27
OF
211632005-05-12 Orjan Friberg <orjanf@axis.com>
21164
889bf7c5 21165 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21166 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21167 pointers for hardware watchpoint support.
21168 * linux-low.h (struct linux_target_ops): Ditto.
21169 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21170 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21171 to linux_target_ops.
21172 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21173 reply packet.
21174 * server.c (main): Recognize 'Z' and 'z' packets.
21175
b0ded00b
UW
211762005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21177
21178 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21179 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21180 (the_low_target): Add new members.
21181
8643e2ad
DJ
211822005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21183
21184 * proc-service.c (ps_lgetregs): Search all_processes instead of
21185 all_threads.
21186
fc620387
DJ
211872005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21188
21189 * server.c (start_inferior): Change return type to int.
21190 (attach_inferior): Change sigptr to int *.
21191 (handle_v_cont, handle_v_requests): Change signal to int *.
21192 (main): Change signal to int.
21193
211942005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21195
21196 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21197 * configure.srv: Add m32r*-*-linux*.
21198 * linux-m32r-low.c: New file.
21199
e0e76420
DJ
212002005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21201
21202 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21203
a1928bad
DJ
212042005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21205
21206 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21207 Take unsigned long arguments for PIDs.
21208 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21209 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21210 (wait_for_sigstop, linux_resume_one_process)
21211 (regsets_fetch_inferior_registers, linux_send_signal)
21212 (linux_read_auxv): Likewise. Update the types of variables holding
21213 PIDs. Update format string specifiers.
21214 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21215 * remote-utils.c (prepare_resume_reply): Likewise.
21216 * server.c (cont_thread, general_thread, step_thread)
21217 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21218 unsigned long.
21219 (handle_query): Update format specifiers.
21220 (handle_v_cont, main): Use strtoul for thread IDs.
21221 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21222 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21223 (general_thread, step_thread, thread_from_wait)
21224 (old_thread_from_wait): Update.
21225 * target.h (struct thread_resume): Use unsigned long for THREAD.
21226 (struct target_ops): Use unsigned long for arguments to attach and
21227 thread_alive.
21228
dcdb98d2
DJ
212292005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21230
21231 * acinclude.m4: Include bfd/bfd.m4 directly.
21232 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21233 <agriffis@toolchain.org>.
21234 * aclocal.m4, configure: Regenerated.
21235
bec39cab
AC
212362005-01-07 Andrew Cagney <cagney@gnu.org>
21237
21238 * configure.ac: Rename configure.in, require autoconf 2.59.
21239 * configure: Re-generate.
21240
434c4c77
DJ
212412004-12-08 Daniel Jacobowitz <dan@debian.org>
21242
21243 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21244 LIBS when finished.
21245 * aclocal.m4: Regenerated.
21246 * configure: Regenerated.
21247
db1d3e1b
AS
212482004-11-21 Andreas Schwab <schwab@suse.de>
21249
21250 * linux-m68k-low.c (m68k_num_gregs): Define.
21251 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21252 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21253 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21254 (m68k_breakpoint_at): New. Add to the_low_target.
21255
21256 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21257 srv_linux_thread_db to yes.
21258
43360365
JB
212592004-10-20 Joel Brobecker <brobecker@gnat.com>
21260
21261 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21262 (ARCH_SET_FS): Likewise.
21263 (ARCH_GET_FS): Likewise.
21264 (ARCH_GET_GS): Likewise.
21265
fd500816
DJ
212662004-10-16 Daniel Jacobowitz <dan@debian.org>
21267
21268 * linux-i386-low.c (ps_get_thread_area): New.
21269 * linux-x86-64-low.c (ps_get_thread_area): New.
21270 * linux-low.c: Include <sys/syscall.h>.
21271 (linux_kill_one_process): Don't kill the first thread here.
21272 (linux_kill): Kill the first thread here.
21273 (kill_lwp): New function.
21274 (send_sigstop, linux_send_signal): Use it.
21275 * proc-service.c: Clean up #ifdefs.
21276 (fpregset_info): Delete.
21277 (ps_lgetregs): Update and enable implementation.
21278 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21279 implementations.
21280 * remote-utils.c (struct sym_cache, symbol_cache): New.
21281 (input_interrupt): Print a clearer message.
21282 (async_io_enabled): New variable.
21283 (enable_async_io, disable_async_io): Use it. Update comments.
21284 (look_up_one_symbol): Use the symbol cache.
21285 * thread-db.c (thread_db_look_up_symbols): New function.
21286 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21287
f6de3c42
DJ
212882004-10-16 Daniel Jacobowitz <dan@debian.org>
21289
21290 * configure.in: Test for -rdynamic.
21291 * configure: Regenerated.
21292 * Makefile (INTERNAL_LDFLAGS): New.
21293 (gdbserver, gdbreplay): Use it.
21294
2c0fc042
AC
212952004-09-02 Andrew Cagney <cagney@gnu.org>
21296
21297 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21298
075b3282
DJ
212992004-03-23 Daniel Jacobowitz <drow@mvista.com>
21300
21301 * linux-low.c (linux_wait): Clear all_processes list also.
21302
fa6a77dc
DJ
213032004-03-12 Daniel Jacobowitz <drow@mvista.com>
21304
21305 * linux-low.c: Include <errno.h>. Remove extern declaration of
21306 errno.
21307
6d782a97
DJ
213082004-03-12 Daniel Jacobowitz <drow@mvista.com>
21309
21310 * gdbreplay.c, server.h, utils.c: Update copyright years.
21311
3a7fb99b
DJ
213122004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21313
21314 * server.c (main): Print child status or termination signal from
21315 variable 'signal', not 'sig'.
21316
c3e735a6
DJ
213172004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21318
21319 * linux-low.c (linux_read_memory): Change return type to
21320 int. Check for and return error from ptrace().
21321 * target.c (read_inferior_memory): Change return type to int. Pass
21322 back return status from the_target->read_memory().
21323 * target.h (struct target_ops): Adapt *read_memory() prototype.
21324 Update comment.
21325 (read_inferior_memory): Adapt prototype.
21326 * server.c (main): Return an error packet if
21327 read_inferior_memory() returns an error.
21328
a59d1c82
DJ
213292004-03-04 Daniel Jacobowitz <drow@mvista.com>
21330
21331 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21332 Unify with other clean targets.
21333
dc3f8883
DJ
213342004-02-29 Daniel Jacobowitz <drow@mvista.com>
21335
21336 * server.c (handle_v_cont): Call set_desired_inferior.
21337
89a208da
DJ
213382004-02-29 Daniel Jacobowitz <drow@mvista.com>
21339
21340 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21341
62ea82f5
DJ
213422004-02-29 Daniel Jacobowitz <drow@mvista.com>
21343
21344 * linux-low.c (linux_wait): Unblock async I/O.
21345 (linux_resume): Block and enable async I/O.
21346 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21347 * server.h (block_async_io, unblock_async_io): Add prototypes.
21348
6910d122
DJ
213492004-02-29 Daniel Jacobowitz <drow@mvista.com>
21350
21351 * remote-utils.c (remote_open): Print a status notice after
21352 opening a TCP port.
21353 * server.c (attach_inferior): Print a status notice after
21354 attaching.
21355
213562004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21357
21358 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21359
c89dc5d4
DJ
213602004-02-26 Daniel Jacobowitz <drow@mvista.com>
21361
21362 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21363 error packet.
21364 * server.c, target.h: Update copyright years.
21365
4b8dad4a
RM
213662004-02-25 Roland McGrath <roland@redhat.com>
21367
21368 * target.h (struct target_ops): New member `read_auxv'.
21369 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21370 * linux-low.c (linux_read_auxv): New function.
21371 (linux_target_ops): Initialize `read_auxv' member to that.
21372
d7446758
JB
213732004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21374
21375 Committed by Jim Blandy <jimb@redhat.com>.
21376
21377 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21378 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21379 instead of GPR_SIZE to distiguish s390 and s390x targets.
21380
5544ad89
DJ
213812004-01-31 Daniel Jacobowitz <drow@mvista.com>
21382
21383 * linux-low.c: Update copyright year.
21384 (check_removed_breakpoint): Clear pending_is_breakpoint.
21385 (linux_set_resume_request, linux_queue_one_thread)
21386 (resume_status_pending_p): New functions.
21387 (linux_continue_one_thread): Use process->resume.
21388 (linux_resume): Only resume threads if there are no pending events.
21389 * linux-low.h (struct process_info): Add resume request
21390 pointer.
21391
2a68b70e
DJ
213922004-01-30 Daniel Jacobowitz <drow@mvista.com>
21393
21394 * regcache.c (new_register_cache): Clear the allocated register
21395 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21396
64386c31
DJ
213972003-10-13 Daniel Jacobowitz <drow@mvista.com>
21398
21399 * linux-low.c (linux_resume): Take a struct thread_resume *
21400 argument.
21401 (linux_wait): Update call.
21402 (resume_ptr): New static variable.
21403 (linux_continue_one_thread): Renamed from
21404 linux_continue_one_process. Use resume_ptr.
21405 (linux_resume): Use linux_continue_one_thread.
21406 * server.c (handle_v_cont, handle_v_requests): New functions.
21407 (myresume): New function.
21408 (main): Handle 'v' case.
21409 * target.h (struct thread_resume): New type.
21410 (struct target_ops): Change argument of "resume" to struct
21411 thread_resume *.
21412 (myresume): Delete macro.
21413
c938e9b0
L
214142003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21415
21416 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21417 (uninstall): Support DESTDIR.
21418
7f313d07
BC
21419Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21420
21421 * configure.srv: Add xscale*linux copy of arm*linux entry.
21422
3b2fc2ea
DJ
214232003-07-24 Daniel Jacobowitz <drow@mvista.com>
21424
21425 * linux-arm-low.c (arm_reinsert_addr): New function.
21426 (the_low_target): Add arm_reinsert_addr.
21427
1c0a559e
MK
214282003-07-08 Mark Kettenis <kettenis@gnu.org>
21429
21430 * mem-break.c: Remove whitespace at end of file.
21431
43d5792c
DJ
214322003-06-28 Daniel Jacobowitz <drow@mvista.com>
21433
21434 * configure.in: Check whether we need to prototype strerror.
21435 * server.h: Optionally prototype strerror.
21436 * gdbreplay.c (perror_with_name): Use strerror.
21437 * linux-low.c (linux_attach_lwp): Use strerror.
21438 * utils.c (perror_with_name): Use strerror.
21439 * config.in, configure: Regenerated.
21440
c8a86edf
DJ
214412003-06-28 Daniel Jacobowitz <drow@mvista.com>
21442
21443 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21444 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21445
73d37363
DJ
214462003-06-20 Daniel Jacobowitz <drow@mvista.com>
21447
21448 * Makefile.in (SFILES): Update.
21449 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21450 low-sun3.c: Remove files.
21451
6ad8ae5c
DJ
214522003-06-17 Daniel Jacobowitz <drow@mvista.com>
21453
21454 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21455 (linux_detach_one_process, linux_detach): New functions.
21456 (linux_target_ops): Add linux_detach.
21457 * server.c (main): Handle 'D' packet.
21458 * target.h (struct target_ops): Add "detach" member.
21459 (detach_inferior): Define.
21460
1581182a
MK
214612003-06-13 Mark Kettenis <kettenis@gnu.org>
21462
21463 From Kelley Cook <kelleycook@wideopenwest.com>:
21464 * configure.srv: Accept i[34567]86 variants.
21465
e5379b03
DJ
214662003-06-05 Daniel Jacobowitz <drow@mvista.com>
21467
21468 * linux-low.c (linux_wait_for_event): Correct comment typos.
21469 (linux_resume_one_process): Call check_removed_breakpoint.
21470 (linux_send_signal): New function.
21471 (linux_target_ops): Add linux_send_signal.
21472 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21473 of kill.
21474 * target.h (struct target_ops): Add send_signal.
21475
2ff29de4
JB
214762003-05-29 Jim Blandy <jimb@redhat.com>
21477
21478 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21479 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21480 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21481 away part of the register's value.
21482
254787d4
DJ
214832003-03-26 Daniel Jacobowitz <drow@mvista.com>
21484
21485 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21486 (linux_wait_for_event, linux_init_signals): Likewise.
21487
94e10508
DJ
214882003-03-17 Daniel Jacobowitz <drow@mvista.com>
21489
21490 * configure.in: Check for stdlib.h.
21491 * configure: Regenerated.
21492 * config.in: Regenerated.
21493
4c0711e0
DJ
214942003-01-04 Andreas Schwab <schwab@suse.de>
21495
21496 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21497
ef66e766
AC
214982003-01-02 Andrew Cagney <ac131313@redhat.com>
21499
21500 * Makefile.in: Remove obsolete code.
21501
a1358604
DJ
215022002-11-20 Daniel Jacobowitz <drow@mvista.com>
21503
21504 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21505 defined(PT_FPR0_HI).
21506
23ce3b1c
DJ
215072002-11-17 Stuart Hughes <seh@zee2.com>
21508
21509 * linux-arm-low.c (arm_num_regs): Increase.
21510 (arm_regmap): Include status register.
21511
215122002-11-17 Daniel Jacobowitz <drow@mvista.com>
21513
21514 * linux-low.c (register_addr): Remove incorrect -1 check.
21515
a9fa9f7d
DJ
215162002-08-29 Daniel Jacobowitz <drow@mvista.com>
21517
21518 * linux-low.c (linux_create_inferior): Call setpgid. Return
21519 the new PID.
21520 (unstopped_p, linux_signal_pid): Remove.
21521 (linux_target_ops): Remove linux_signal_pid.
21522 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21523 global instead of target method.
21524 * target.h (struct target_ops): Remove signal_pid. Update comment
21525 for create_inferior.
21526 * server.c (signal_pid): New variable.
21527 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21528 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21529 (attach_inferior): Set signal_pid.
21530
17574093
DJ
215312002-08-23 Daniel Jacobowitz <drow@mvista.com>
21532
21533 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21534
215352002-08-20 Jim Blandy <jimb@redhat.com>
21536
21537 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21538 default for this.
21539
215402002-08-01 Andrew Cagney <cagney@redhat.com>
21541
21542 * Makefile.in: Make chill references obsolete.
21543
215442002-07-24 Kevin Buettner <kevinb@redhat.com>
21545
21546 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21547 * configure: Regenerate.
21548 * config.in: Regenerate.
21549
215502002-07-09 David O'Brien <obrien@FreeBSD.org>
21551
21552 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21553 (perror_with_name, remote_close, remote_open, expect, play): Static.
21554
215552002-07-04 Michal Ludvig <mludvig@suse.cz>
21556
4b8dad4a 21557 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21558 byte offsets instead of an array of indexes.
21559 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21560
215612002-06-13 Daniel Jacobowitz <drow@mvista.com>
21562
21563 * regcache.c: Add comment.
21564
215652002-06-11 Daniel Jacobowitz <drow@mvista.com>
21566
21567 * thread-db.c: New file.
21568 * proc-service.c: New file.
21569 * acinclude.m4: New file.
21570 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21571 proc-service.o, and thread-db.o.
21572 (linux-low.o): Add USE_THREAD_DB.
21573 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21574 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21575 * aclocal.m4: Regenerated.
21576 * config.in: Regenerated.
21577 * configure: Regenerated.
21578 * configure.in: Check for proc_service.h, sys/procfs.h,
21579 thread_db.h, and linux/elf.h headrs.
21580 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21581 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21582 Check for -lthread_db and thread support.
21583 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21584 PowerPC, and SuperH.
21585 * i387-fp.c: Constify arguments.
21586 * i387-fp.h: Likewise.
21587 * inferiors.c: (struct thread_info): Renamed from
21588 `struct inferior_info'. Remove PID member. Use generic inferior
21589 list header. All uses updated.
21590 (inferiors, signal_pid): Removed.
21591 (all_threads): New variable.
21592 (get_thread): Define.
21593 (add_inferior_to_list): New function.
21594 (for_each_inferior): New function.
21595 (change_inferior_id): New function.
21596 (add_inferior): Removed.
21597 (remove_inferior): New function.
21598 (add_thread): New function.
21599 (free_one_thread): New function.
21600 (remove_thread): New function.
21601 (clear_inferiors): Use for_each_inferior and free_one_thread.
21602 (find_inferior): New function.
21603 (find_inferior_id): New function.
21604 (inferior_target_data): Update argument type.
21605 (set_inferior_target_data): Likewise.
21606 (inferior_regcache_data): Likewise.
21607 (set_inferior_regcache_data): Likewise.
21608 * linux-low.c (linux_bp_reinsert): Remove.
21609 (all_processes, stopping_threads, using_thrads)
21610 (struct pending_signals, debug_threads, pid_of): New.
21611 (inferior_pid): Replace with macro.
21612 (struct inferior_linux_data): Remove.
21613 (get_stop_pc, add_process): New functions.
21614 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21615 Use add_process and add_thread.
21616 (linux_attach_lwp): New function, based on old linux_attach. Use
21617 add_process and add_thread. Set stop_expected for new threads.
21618 (linux_attach): New function.
21619 (linux_kill_one_process): New function.
21620 (linux_kill): Kill all LWPs.
21621 (linux_thread_alive): Use find_inferior_id.
21622 (check_removed_breakpoints, status_pending_p): New functions.
21623 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21624 Update. Use WNOHANG. Wait for cloned processes also. Update process
21625 struct for the found process.
21626 (linux_wait_for_event): New function.
21627 (linux_wait): Use it. Support LWPs.
21628 (send_sigstop, wait_for_sigstop, stop_all_processes)
21629 (linux_resume_one_process, linux_continue_one_process): New functions.
21630 (linux_resume): Support LWPs.
21631 (REGISTER_RAW_SIZE): Remove.
21632 (fetch_register): Use register_size instead. Call supply_register.
21633 (usr_store_inferior_registers): Likewise. Call collect_register.
21634 Fix recursive case.
21635 (regsets_fetch_inferior_registers): Improve error message.
21636 (regsets_store_inferior_registers): Add debugging.
21637 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21638 (unstopped_p, linux_signal_pid): New functions.
21639 (linux_target_ops): Add linux_signal_pid.
21640 (linux_init_signals): New function.
21641 (initialize_low): Call it. Initialize using_threads.
21642 * regcache.c (inferior_regcache_data): Add valid
21643 flag.
21644 (get_regcache): Fetch registers lazily. Add fetch argument
21645 and update all callers.
21646 (regcache_invalidate_one, regcache_invalidate): New
21647 functions.
21648 (new_register_cache): Renamed from create_register_cache.
21649 Return the new regcache.
21650 (free_register_cache): Change argument to a void *.
21651 (registers_to_string, registers_from_string): Call get_regcache
21652 with fetch flag set.
21653 (register_data): Make static. Pass fetch flag to get_regcache.
21654 (supply_register): Call get_regcache with fetch flag clear.
21655 (collect_register): Call get_regcache with fetch flag set.
21656 (collect_register_as_string): New function.
21657 * regcache.h: Update.
21658 * remote-utils.c (putpkt): Flush after debug output and use
21659 stderr.
21660 Handle input interrupts while waiting for an ACK.
21661 (input_interrupt): Use signal_pid method.
21662 (getpkt): Flush after debug output and use stderr.
21663 (outreg): Use collect_register_as_string.
21664 (new_thread_notify, dead_thread_notify): New functions.
21665 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21666 and general_thread.
21667 (look_up_one_symbol): Flush after debug output.
21668 * server.c (step_thread, server_waiting): New variables.
21669 (start_inferior): Don't use signal_pid. Update call to mywait.
21670 (attach_inferior): Update call to mywait.
21671 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21672 (main): Don't fetch/store registers explicitly. Use
21673 set_desired_inferior. Support proposed ``Hs'' packet. Update
21674 calls to mywait.
21675 * server.h: Update.
21676 (struct inferior_list, struct_inferior_list_entry): New.
21677 * target.c (set_desired_inferior): New.
21678 (write_inferior_memory): Constify.
21679 (mywait): New function.
21680 * target.h: Update.
21681 (struct target_ops): New signal_pid method.
21682 (mywait): Removed macro, added prototype.
21683
21684 * linux-low.h (regset_func): Removed.
21685 (regset_fill_func, regset_store_func): New.
21686 (enum regset_type): New.
21687 (struct regset_info): Add type field. Use new operation types.
21688 (struct linux_target_ops): stop_pc renamed to get_pc.
21689 Add decr_pc_after_break and breakpoint_at.
21690 (get_process, get_thread_proess, get_process_thread)
21691 (strut process_info, all_processes, linux_attach_lwp)
21692 (thread_db_init): New.
21693
21694 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21695 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21696 (the_low_target): Add new members.
21697 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21698 (i386_store_fpxregset): Constify.
21699 (target_regsets): Add new kind identifier.
21700 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21701 (i386_set_pc): Add debugging.
21702 (i386_breakpoint_at): New function.
21703 (the_low_target): Add new members.
21704 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21705 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21706 (mips_breakpoint_at): New.
21707 (the_low_target): Add new members.
21708 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21709 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21710 (the_low_target): Add new members.
21711 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21712 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21713 (the_low_target): Add new members.
21714 * linux-x86-64-low.c (target_regsets): Add new kind
21715 identifier.
21716
217172002-05-15 Daniel Jacobowitz <drow@mvista.com>
21718
21719 From Martin Pool <mbp@samba.org>:
21720 * server.c (gdbserver_usage): New function.
21721 (main): Call it.
21722
217232002-05-14 Daniel Jacobowitz <drow@mvista.com>
21724
21725 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21726 stop_at -> stop_pc.
21727
217282002-05-04 Andrew Cagney <ac131313@redhat.com>
21729
21730 * Makefile.in: Remove obsolete code.
21731
217322002-04-24 Michal Ludvig <mludvig@suse.cz>
21733
21734 * linux-low.c (regsets_fetch_inferior_registers),
21735 (regsets_store_inferior_registers): Removed cast to int from
21736 ptrace() calls.
21737 * regcache.h: Added declaration of struct inferior_info.
21738
217392002-04-20 Daniel Jacobowitz <drow@mvista.com>
21740
21741 * inferiors.c (struct inferior_info): Add regcache_data.
21742 (add_inferior): Call create_register_cache.
21743 (clear_inferiors): Call free_register_cache.
21744 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21745 * regcache.c (struct inferior_regcache_data): New.
21746 (registers): Remove.
21747 (get_regcache): New function.
21748 (create_register_cache, free_register_cache): New functions.
21749 (set_register_cache): Don't initialize the register cache here.
21750 (registers_to_string, registers_from_string, register_data): Call
21751 get_regcache.
21752 * regcache.h: Add prototypes.
21753 * server.h: Likewise.
21754
217552002-04-20 Daniel Jacobowitz <drow@mvista.com>
21756
21757 * mem-break.c: New file.
21758 * mem-break.h: New file.
21759 * Makefile.in: Add mem-break.o rule; update server.h
21760 dependencies.
21761 * inferiors.c (struct inferior_info): Add target_data
21762 member.
21763 (clear_inferiors): Free target_data member if set.
21764 (inferior_target_data, set_inferior_target_data): New functions.
21765 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21766 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21767 * linux-low.c (linux_bp_reinsert): New variable.
21768 (struct inferior_linux_data): New.
21769 (linux_create_inferior): Use set_inferior_target_data.
21770 (linux_attach): Likewise. Call add_inferior.
21771 (linux_wait_for_one_inferior): New function.
21772 (linux_wait): Call it.
21773 (linux_write_memory): Add const.
21774 (initialize_low): Call set_breakpoint_data.
21775 * linux-low.h (struct linux_target_ops): Add breakpoint
21776 handling members.
21777 * server.c (attach_inferior): Remove extra add_inferior
21778 call.
21779 * server.h: Include mem-break.h. Update inferior.c
21780 prototypes.
21781 * target.c (read_inferior_memory)
21782 (write_inferior_memory): New functions.
21783 * target.h (read_inferior_memory)
21784 (write_inferior_memory): Change macros to prototypes.
21785 (struct target_ops): Update comments. Add const to write_memory
21786 definition.
21787
217882002-04-11 Daniel Jacobowitz <drow@mvista.com>
21789
21790 * linux-low.c (usr_store_inferior_registers): Support
21791 registers which are allowed to fail to store.
21792 * linux-low.h (linux_target_ops): Likewise.
21793 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21794 (ppc_cannot_store_register): FPSCR may not be storable.
21795
217962002-04-09 Daniel Jacobowitz <drow@mvista.com>
21797
21798 * server.h: Include <string.h> if HAVE_STRING_H.
21799 * ChangeLog: Correct paths in last ChangeLog entry.
21800
218012002-04-09 Daniel Jacobowitz <drow@mvista.com>
21802
21803 * linux-low.h: Remove obsolete prototypes.
21804 (struct linux_target_ops): New.
21805 (extern the_low_target): New.
21806 * linux-low.c (num_regs, regmap): Remove declarations.
21807 (register_addr): Use the_low_target explicitly.
21808 (fetch_register): Likewise.
21809 (usr_fetch_inferior_registers): Likewise.
21810 (usr_store_inferior_registers): Likewise.
21811 * linux-arm-low.c (num_regs): Remove.
21812 (arm_num_regs): Define.
21813 (arm_regmap): Renamed from regmap, made static.
21814 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21815 made static.
21816 (arm_cannot_store_register): Renamed from cannot_store_register,
21817 made static.
21818 (the_low_target): New.
21819 * linux-i386-low.c (num_regs): Remove.
21820 (i386_num_regs): Define.
21821 (i386_regmap): Renamed from regmap, made static.
21822 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21823 made static.
21824 (i386_cannot_store_register): Renamed from cannot_store_register,
21825 made static.
21826 (the_low_target): New.
21827 * linux-ia64-low.c (num_regs): Remove.
21828 (ia64_num_regs): Define.
21829 (ia64_regmap): Renamed from regmap, made static.
21830 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21831 made static.
21832 (ia64_cannot_store_register): Renamed from cannot_store_register,
21833 made static.
21834 (the_low_target): New.
21835 * linux-m68k-low.c (num_regs): Remove.
21836 (m68k_num_regs): Define.
21837 (m68k_regmap): Renamed from regmap, made static.
21838 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21839 made static.
21840 (m68k_cannot_store_register): Renamed from cannot_store_register,
21841 made static.
21842 (the_low_target): New.
21843 * linux-mips-low.c (num_regs): Remove.
21844 (mips_num_regs): Define.
21845 (mips_regmap): Renamed from regmap, made static.
21846 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21847 made static.
21848 (mips_cannot_store_register): Renamed from cannot_store_register,
21849 made static.
21850 (the_low_target): New.
21851 * linux-ppc-low.c (num_regs): Remove.
21852 (ppc_num_regs): Define.
21853 (ppc_regmap): Renamed from regmap, made static.
21854 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21855 made static.
21856 (ppc_cannot_store_register): Renamed from cannot_store_register,
21857 made static.
21858 (the_low_target): New.
21859 * linux-s390-low.c (num_regs): Remove.
21860 (s390_num_regs): Define.
21861 (s390_regmap): Renamed from regmap, made static.
21862 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21863 made static.
21864 (s390_cannot_store_register): Renamed from cannot_store_register,
21865 made static.
21866 (the_low_target): New.
21867 * linux-sh-low.c (num_regs): Remove.
21868 (sh_num_regs): Define.
21869 (sh_regmap): Renamed from regmap, made static.
21870 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21871 made static.
21872 (sh_cannot_store_register): Renamed from cannot_store_register,
21873 made static.
21874 (the_low_target): New.
21875 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21876 (the_low_target): New.
21877
218782002-04-09 Daniel Jacobowitz <drow@mvista.com>
21879
21880 * Makefile.in: Add stamp-h target.
21881 * configure.in: Create stamp-h.
21882 * configure: Regenerated.
21883
218842002-04-09 Daniel Jacobowitz <drow@mvista.com>
21885
21886 * inferiors.c: New file.
21887 * target.c: New file.
21888 * target.h: New file.
21889 * Makefile.in: Add target.o and inferiors.o. Update
21890 dependencies.
21891 * linux-low.c (inferior_pid): New static variable,
21892 moved from server.c.
21893 (linux_create_inferior): Renamed from create_inferior.
21894 Call add_inferior. Return 0 on success instead of a PID.
21895 (linux_attach): Renamed from myattach.
21896 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21897 (linux_thread_alive): Renamed from mythread_alive.
21898 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21899 child dies.
21900 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21901 (regsets_store_inferior_registers): Correct error message.
21902 Add missing ``return 0''.
21903 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21904 (linux_store_registers): Renamed from store_inferior_registers.
21905 (linux_read_memory): Renamed from read_inferior_memory.
21906 (linux_write_memory): Renamed from write_inferior_memory.
21907 (linux_target_ops): New structure.
21908 (initialize_low): Call set_target_ops ().
21909 * remote-utils.c (unhexify): New function.
21910 (hexify): New function.
21911 (input_interrupt): Send signals to ``signal_pid''.
21912 * server.c (inferior_pid): Remove.
21913 (start_inferior): Update create_inferior call.
21914 (attach_inferior): Call add_inferior.
21915 (handle_query): New function.
21916 (main): Call handle_query for `q' packets.
21917 * server.h: Include "target.h". Remove obsolete prototypes.
21918 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21919
219202002-04-09 Daniel Jacobowitz <drow@mvista.com>
21921
21922 * Makefile.in: Add WARN_CFLAGS. Update configury
21923 dependencies.
21924 * configure.in: Check for <string.h>
21925 * configure: Regenerate.
21926 * config.in: Regenerate.
21927 * gdbreplay.c: Include needed system headers.
21928 (remote_open): Remove strchr prototype.
21929 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21930 * regcache.c (supply_register): Change buf argument to const void *.
21931 (supply_register_by_name): Likewise.
21932 (collect_register): Change buf argument to void *.
21933 (collect_register_by_name): Likewise.
21934 * regcache.h: Add missing prototypes.
21935 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21936 * server.c (handle_query): New function.
21937 (attached): New static variable, moved out of main.
21938 (main): Quiet longjmp clobber warnings.
21939 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21940 * utils.c (error): Remove NORETURN.
21941 (fatal): Likewise.